PageSourceSearch

https://bvks-test-fd55c.web.app/main.caf4b0e24eb5ca80782a.js

js bvks-test-fd55c.web.app collected 2026-10-03 12:19:02 UTC 3,149,292 bytes, 1 lines download raw bytes

1(self.webpackChunkproject=self.webpackChunkproject||[]).push([[179],{8255:e=>{function t(e){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=()=>[],t.resolve=t,t.id=8255,e.exports=t},1116:(e,t,n)=>{"use strict";n.d(t,{mr:()=>b,Ov:()=>Ee,ez:()=>Te,K0:()=>l,uU:()=>Ie,Do:()=>w,V_:()=>h,Ye:()=>C,S$:()=>v,mk:()=>le,$G:()=>ce,sg:()=>he,O5:()=>Ae,RF:()=>me,n9:()=>ve,tP:()=>ye,b0:()=>_,lw:()=>c,OU:()=>xe,EM:()=>Oe,JF:()=>Me,NF:()=>ke,PM:()=>Pe,w_:()=>a,bD:()=>Be,q:()=>o,Mx:()=>ae,HT:()=>s});var r=n(5366);let i=null;function o(){return i}function s(e){i||(i=e)}class a{}const l=new r.InjectionToken("DocumentToken");let c=(()=>{class e{historyGo(e){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,r["\u0275\u0275defineInjectable"])({factory:u,token:e,providedIn:"platform"}),e})();function u(){return(0,r["\u0275\u0275inject"])(d)}const h=new r.InjectionToken("Location Initialized");let d=(()=>{class e extends c{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(e){const t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){const t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.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,t,n){A()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){A()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](l))},e.\u0275prov=(0,r["\u0275\u0275defineInjectable"])({factory:p,token:e,providedIn:"platform"}),e})();function A(){return!!window.history.pushState}function p(){return new d((0,r["\u0275\u0275inject"])(l))}function f(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function g(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function m(e){return e&&"?"!==e[0]?"?"+e:e}let v=(()=>{class e{historyGo(e){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,r["\u0275\u0275defineInjectable"])({factory:y,token:e,providedIn:"root"}),e})();function y(e){const t=(0,r["\u0275\u0275inject"])(l).location;return new _((0,r["\u0275\u0275inject"])(c),t&&t.origin||"")}const b=new r.InjectionToken("appBaseHref");let _=(()=>{class e extends v{constructor(e,t){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}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 f(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+m(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const i=this.prepareExternalUrl(n+m(r));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){const i=this.prepareExternalUrl(n+m(r));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var t,n;null===(n=(t=this._platformLocation).historyGo)||void 0===n||n.call(t,e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](c),r["\u0275\u0275inject"](b,8))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),w=(()=>{class e extends v{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=t&&(this._baseHref=t)}
1ngOnDestroy(){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 t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=f(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let i=this.prepareExternalUrl(n+m(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){let i=this.prepareExternalUrl(n+m(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var t,n;null===(n=(t=this._platformLocation).historyGo)||void 0===n||n.call(t,e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](c),r["\u0275\u0275inject"](b,8))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),C=(()=>{class e{constructor(e,t){this._subject=new r.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=g(E(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+m(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,E(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+m(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+m(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var t,n;null===(n=(t=this._platformStrategy).historyGo)||void 0===n||n.call(t,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](v),r["\u0275\u0275inject"](c))},e.normalizeQueryParams=m,e.joinWithSlash=f,e.stripTrailingSlash=g,e.\u0275prov=(0,r["\u0275\u0275defineInjectable"])({factory:S,token:e,providedIn:"root"}),e})();function S(){return new C((0,r["\u0275\u0275inject"])(v),(0,r["\u0275\u0275inject"])(c))}function E(e){return e.replace(/\/index.html$/,"")}var I=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),x=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),T=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),B=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),k=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function P(e,t){return N((0,r["\u0275findLocaleData"])(e)[r["\u0275LocaleDataIndex"].DateFormat],t)}function O(e,t){return N((0,r["\u0275findLocaleData"])(e)[r["\u0275LocaleDataIndex"].TimeFormat],t)}function F(e,t){return N((0,r["\u0275findLocaleData"])(e)[r["\u0275LocaleDataIndex"].DateTimeFormat],t)}function L(e,t){const n=(0,r["\u0275findLocaleData"])(e),i=n[r["\u0275LocaleDataIndex"].NumberSymbols][t];if(void 0===i){if(t===k.CurrencyDecimal)return n[r["\u0275LocaleDataIndex"].NumberSymbols][k.Decimal];if(t===k.CurrencyGroup)return n[r["\u0275LocaleDataIndex"].NumberSymbols][k.Group]}return i}const M=r["\u0275getLocalePluralCase"];function D(e){if(!e[r["\u0275LocaleDataIndex"].ExtraData])throw new Error(`Missing extra locale data for the locale "${e[r["\u0275LocaleDataIndex"].LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function N(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function R(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const U=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,j={},Q=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var H=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),V=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),q=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function K(e,t,n,r){let i=function(e){if(ie(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[t,n=1,r=1]=e.split("-").map(e=>+e);return G(t,n-1,r)}const t=parseFloat(e);
vendor: 7,085 bytes, line 1
1if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(U))return function(e){const t=new Date(0);let n=0,r=0;const i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,s,a,l,c),t}(n)}const t=new Date(e);if(!ie(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=z(n,t)||t;let o,s=[];for(;t;){if(o=Q.exec(t),!o){s.push(t);break}{s=s.concat(o.slice(1));const e=s.pop();if(!e)break;t=e}}let a=i.getTimezoneOffset();r&&(a=re(r,a),i=function(e,t,n){const r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(re(t,r)-r))}(i,r));let l="";return s.forEach(e=>{const t=function(e){if(ne[e])return ne[e];let t;switch(e){case"G":case"GG":case"GGG":t=X(q.Eras,T.Abbreviated);break;case"GGGG":t=X(q.Eras,T.Wide);break;case"GGGGG":t=X(q.Eras,T.Narrow);break;case"y":t=Y(V.FullYear,1,0,!1,!0);break;case"yy":t=Y(V.FullYear,2,0,!0,!0);break;case"yyy":t=Y(V.FullYear,3,0,!1,!0);break;case"yyyy":t=Y(V.FullYear,4,0,!1,!0);break;case"Y":t=te(1);break;case"YY":t=te(2,!0);break;case"YYY":t=te(3);break;case"YYYY":t=te(4);break;case"M":case"L":t=Y(V.Month,1,1);break;case"MM":case"LL":t=Y(V.Month,2,1);break;case"MMM":t=X(q.Months,T.Abbreviated);break;case"MMMM":t=X(q.Months,T.Wide);break;case"MMMMM":t=X(q.Months,T.Narrow);break;case"LLL":t=X(q.Months,T.Abbreviated,x.Standalone);break;case"LLLL":t=X(q.Months,T.Wide,x.Standalone);break;case"LLLLL":t=X(q.Months,T.Narrow,x.Standalone);break;case"w":t=ee(1);break;case"ww":t=ee(2);break;case"W":t=ee(1,!0);break;case"d":t=Y(V.Date,1);break;case"dd":t=Y(V.Date,2);break;case"c":case"cc":t=Y(V.Day,1);break;case"ccc":t=X(q.Days,T.Abbreviated,x.Standalone);break;case"cccc":t=X(q.Days,T.Wide,x.Standalone);break;case"ccccc":t=X(q.Days,T.Narrow,x.Standalone);break;case"cccccc":t=X(q.Days,T.Short,x.Standalone);break;case"E":case"EE":case"EEE":t=X(q.Days,T.Abbreviated);break;case"EEEE":t=X(q.Days,T.Wide);break;case"EEEEE":t=X(q.Days,T.Narrow);break;case"EEEEEE":t=X(q.Days,T.Short);break;case"a":case"aa":case"aaa":t=X(q.DayPeriods,T.Abbreviated);break;case"aaaa":t=X(q.DayPeriods,T.Wide);break;case"aaaaa":t=X(q.DayPeriods,T.Narrow);break;case"b":case"bb":case"bbb":t=X(q.DayPeriods,T.Abbreviated,x.Standalone,!0);break;case"bbbb":t=X(q.DayPeriods,T.Wide,x.Standalone,!0);break;case"bbbbb":t=X(q.DayPeriods,T.Narrow,x.Standalone,!0);break;case"B":case"BB":case"BBB":t=X(q.DayPeriods,T.Abbreviated,x.Format,!0);break;case"BBBB":t=X(q.DayPeriods,T.Wide,x.Format,!0);break;case"BBBBB":t=X(q.DayPeriods,T.Narrow,x.Format,!0);break;case"h":t=Y(V.Hours,1,-12);break;case"hh":t=Y(V.Hours,2,-12);break;case"H":t=Y(V.Hours,1);break;case"HH":t=Y(V.Hours,2);break;case"m":t=Y(V.Minutes,1);break;case"mm":t=Y(V.Minutes,2);break;case"s":t=Y(V.Seconds,1);break;case"ss":t=Y(V.Seconds,2);break;case"S":t=Y(V.FractionalSeconds,1);break;case"SS":t=Y(V.FractionalSeconds,2);break;case"SSS":t=Y(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=J(H.Short);break;case"ZZZZZ":t=J(H.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=J(H.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=J(H.Long);break;default:return null}return ne[e]=t,t}(e);l+=t?t(i,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function G(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function z(e,t){const n=function(e){return(0,r["\u0275findLocaleData"])(e)[r["\u0275LocaleDataIndex"].LocaleId]}(e);if(j[n]=j[n]||{},j[n][t])return j[n][t];let i="";switch(t){case"shortDate":i=P(e,B.Short);break;case"mediumDate":i=P(e,B.Medium);break;case"longDate":i=P(e,B.Long);break;case"fullDate":i=P(e,B.Full);break;case"shortTime":i=O(e,B.Short);break;case"mediumTime":i=O(e,B.Medium);break;case"longTime":i=O(e,B.Long);break;case"fullTime":i=O(e,B.Full);break;case"short":const t=z(e,"shortTime"),n=z(e,"shortDate");i=W(F(e,B.Short),[t,n]);break;case"medium":const r=z(e,"mediumTime"),o=z(e,"mediumDate");i=W(F(e,B.Medium),[r,o]);break;case"long":const s=z(e,"longTime"),a=z(e,"longDate");i=W(F(e,B.Long),[s,a]);break;case"full":const l=z(e,"fullTime"),c=z(e,"fullDate");i=W(F(e,B.Full),[l,c])}return i&&(j[n][t]=i),i}function W(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function $(e,t,n="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.substr(s.length-t)),o+s}function Y(e,t,n=0,r=!1,i=!1){return function(o,s){let a=function(e,t){switch(e){case V.FullYear:return t.getFullYear();case V.Month:return t.getMonth();case V.Date:return t.getDate();case V.Hours:return t.getHours();case V.Minutes:return t.getMinutes();case V.Seconds:return t.getSeconds();case V.FractionalSeconds:return t.getMilliseconds();case V.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,o);if((n>0||a>-n)&&(a+=n),e===V.Hours)0===a&&-12===n&&(a=12);else if(e===V.FractionalSeconds)return l=t,$(a,3).substr(0,l);var l;const c=L(s,k.MinusSign);return $(a,t,c,r,i)}}function X(e,t,n=x.Format,i=!1){return function(o,s){return function(e,t,n,i,o,s){switch(n){case q.Months:return function(e,t,n){const i=(0,r["\u0275findLocaleData"])(e),o=N([i[r["\u0275LocaleDataIndex"].MonthsFormat],i[r["\u0275LocaleDataIndex"].MonthsStandalone]],t);return N(o,n)}(t,o,i)[e.getMonth()];case q.Days:return function(e,t,n){const i=(0,r["\u0275findLocaleData"])(e),o=N([i[r["\u0275LocaleDataIndex"].DaysFormat],i[r["\u0275LocaleDataIndex"].DaysStandalone]],t);return N(o,n)}(t,o,i)[e.getDay()];case q.DayPeriods:const a=e.getHours(),l=e.getMinutes();if(s){const e=function(e){const t=(0,r["\u0275findLocaleData"])(e);return D(t),(t[r["\u0275LocaleDataIndex"].ExtraData][2]||[]).map(e=>"string"==typeof e?R(e):[R(e[0]),R(e[1])])}(t),n=function(e,t,n){const i=(0,r["\u0275findLocaleData"])(e);D(i);const o=N([i[r["\u0275LocaleDataIndex"].ExtraData][0],i[r["\u0275LocaleDataIndex"].ExtraData][1]],t)||[];return N(o,n)||[]}(t,o,i),s=e.findIndex(e=>{if(Array.isArray(e)){const[t,n]=e,r=a>=t.hours&&l>=t.minutes,i=a<n.hours||a===n.hours&&l<n.minutes;if(t.hours<n.hours){if(r&&i)return!0}else if(r||i)return!0}else if(e.hours===a&&e.minutes===l)return!0;return!1});if(-1!==s)return n[s]}return function(e,t,n){const i=(0,r["\u0275findLocaleData"])(e),o=N([i[r["\u0275LocaleDataIndex"].DayPeriodsFormat],i[r["\u0275LocaleDataIndex"].DayPeriodsStandalone]],t);return N(o,n)}(t,o,i)[a<12?0:1];case q.Eras:return function(e,t){return N((0,r["\u0275findLocaleData"])(e)[r["\u0275LocaleDataIndex"].Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(o,s,e,t,n,i)}}function J(e){return function(t,n,r){const i=-1*r,o=L(n,k.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case H.Short:return(i>=0?"+":"")+$(s,2,o)+$(Math.abs(i%60),2,o);case H.ShortGMT:return"GMT"+(i>
1=0?"+":"")+$(s,1,o);case H.Long:return"GMT"+(i>=0?"+":"")+$(s,2,o)+":"+$(Math.abs(i%60),2,o);case H.Extended:return 0===r?"Z":(i>=0?"+":"")+$(s,2,o)+":"+$(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}function Z(e){return G(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function ee(e,t=!1){return function(n,r){let i;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();i=1+Math.floor((t+e)/7)}else{const e=Z(n),t=function(e){const t=G(e,0,1).getDay();return G(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),r=e.getTime()-t.getTime();i=1+Math.round(r/6048e5)}return $(i,e,L(r,k.MinusSign))}}function te(e,t=!1){return function(n,r){return $(Z(n).getFullYear(),e,L(r,k.MinusSign),t)}}const ne={};function re(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function ie(e){return e instanceof Date&&!isNaN(e.valueOf())}class oe{}let se=(()=>{class e extends oe{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(M(t||this.locale)(e)){case I.Zero:return"zero";case I.One:return"one";case I.Two:return"two";case I.Few:return"few";case I.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](r.LOCALE_ID))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function ae(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(i)}return null}let le=(()=>{class e{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&((0,r["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,r["\u0275stringify"])(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.IterableDiffers),r["\u0275\u0275directiveInject"](r.KeyValueDiffers),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})(),ce=(()=>{class e{constructor(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}ngOnChanges(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const e=t.get(r.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(e.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(r.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngC
vendor: 5,560 bytes, line 1
1omponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[r["\u0275\u0275NgOnChangesFeature"]]}),e})();class ue{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let he=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ue(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new de(e,n);t.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const o=new de(e,i);t.push(o)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](r.IterableDiffers))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class de{constructor(e,t){this.record=e,this.view=t}}let Ae=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new pe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){fe("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){fe("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,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class pe{constructor(){this.$implicit=null,this.ngIf=null}}function fe(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${(0,r["\u0275stringify"])(t)}'.`)}class ge{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let me=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),ve=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new ge(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](me,9))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),ye=(()=>
1{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ViewContainerRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r["\u0275\u0275NgOnChangesFeature"]]}),e})();function be(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${(0,r["\u0275stringify"])(e)}'`)}class _e{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class we{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const Ce=new we,Se=new _e;let Ee=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if((0,r["\u0275isPromise"])(t))return Ce;if((0,r["\u0275isSubscribable"])(t))return Se;throw be(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ChangeDetectorRef,16))},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"async",type:e,pure:!1}),e})(),Ie=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",r,i){if(null==t||""===t||t!=t)return null;try{return K(t,n,i||this.locale,r)}catch(o){throw be(e,o.message)}}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.LOCALE_ID,16))},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"date",type:e,pure:!0}),e})(),xe=(()=>{class e{transform(t,n,r){if(null==t)return null;if(!this.supports(t))throw be(e,t);return t.slice(n,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"slice",type:e,pure:!1}),e})(),Te=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({providers:[{provide:oe,useClass:se}]}),e})();const Be="browser";function ke(e){return e===Be}function Pe(e){return"server"===e}let Oe=(()=>{class e{}return e.\u0275prov=(0,r["\u0275\u0275defineInjectable"])({token:e,providedIn:"root",factory:()=>new Fe((0,r["\u0275\u0275inject"])(l),window)}),e})();class Fe{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const e=r.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}r=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Le(this.window.history)||Le(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function Le(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Me{}},5366:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>Mn,APP_BOOTSTRAP_LISTENER:()=>$m,APP_ID:()=>Vm,APP_INITIALIZER:()=>Qm,ApplicationInitStatus:()=>Hm,ApplicationModule:()=>Ny,ApplicationRef:()=>$v,Attribute:()=>Fn,COMPILER_OPTIONS:()=>fv,CUSTOM_ELEMENTS_SCHEMA:()=>Ji,ChangeDetectionStrategy:()=>N,ChangeDetectorRef:()=>SA,Compiler:()=>pv,CompilerFactory:()=>gv,Component:()=>Im,ComponentFactory:()=>Nd,ComponentFactoryResolver:()=>Qd,ComponentRef:()=>Dd,ContentChild:()=>Rn,ContentChildren:()=>Nn,DEFAULT_CURRENCY_CODE:()=>Zm,DebugElement:()=>By,DebugEventListener:()=>ly,DebugNode:()=>Ty,DefaultIterableDiffer:()=>aA,Directive:()=>Em,ElementRef:()=>$d,EmbeddedViewRef:()=>ay,ErrorHandler:()=>Xi,EventEmitter:()=>Sg,Host:()=>Cr,HostBinding:()=>km,HostListener:()=>Pm,INJECTOR:()=>Aa,Inject:()=>yr,InjectFlags:()=>P,Injectable:()=>Kl,InjectionToken:()=>Ln,Injector:()=>ka,Input:()=>Tm,IterableDiffers:()=>gA,KeyValueDiffers:()=>vA,LOCALE_ID:()=>Jm,MissingTranslationStrategy:()=>nv,ModuleWithComponentFactories:()=>
1ov,NO_ERRORS_SCHEMA:()=>Zi,NgModule:()=>Rm,NgModuleFactory:()=>NA,NgModuleFactoryLoader:()=>Xv,NgModuleRef:()=>DA,NgProbeToken:()=>Qv,NgZone:()=>yv,Optional:()=>br,Output:()=>Bm,PACKAGE_ROOT_URL:()=>Ym,PLATFORM_ID:()=>Wm,PLATFORM_INITIALIZER:()=>zm,Pipe:()=>xm,PlatformRef:()=>zv,Query:()=>Dn,QueryList:()=>Ig,ReflectiveInjector:()=>fc,ReflectiveKey:()=>Jl,Renderer2:()=>Jd,RendererFactory2:()=>Xd,RendererStyleFlags2:()=>uo,ResolvedReflectiveFactory:()=>sc,Sanitizer:()=>nA,SecurityContext:()=>xi,Self:()=>_r,SimpleChange:()=>Ee,SkipSelf:()=>wr,SystemJsNgModuleLoader:()=>iy,SystemJsNgModuleLoaderConfig:()=>ny,TRANSLATIONS:()=>ev,TRANSLATIONS_FORMAT:()=>tv,TemplateRef:()=>PA,Testability:()=>Iv,TestabilityRegistry:()=>xv,Type:()=>Vn,VERSION:()=>iA,Version:()=>rA,ViewChild:()=>jn,ViewChildren:()=>Un,ViewContainerRef:()=>jA,ViewEncapsulation:()=>j,ViewRef:()=>sy,WrappedValue:()=>ul,asNativeElements:()=>hy,assertPlatform:()=>qv,createPlatform:()=>Hv,createPlatformFactory:()=>Vv,defineInjectable:()=>w,destroyPlatform:()=>Kv,enableProdMode:()=>Mv,forwardRef:()=>A,getDebugNode:()=>Sy,getModuleFactory:()=>ey,getPlatform:()=>Gv,inject:()=>fr,isDevMode:()=>Lv,platformCore:()=>ky,resolveForwardRef:()=>p,setTestabilityGetter:()=>Bv,"\u02750":()=>vr,"\u0275ALLOW_MULTIPLE_PLATFORMS":()=>jv,"\u0275APP_ID_RANDOM_PROVIDER":()=>Km,"\u0275CREATE_ATTRIBUTE_DECORATOR__POST_R3__":()=>On,"\u0275ChangeDetectorStatus":()=>R,"\u0275CodegenComponentFactoryResolver":()=>Hd,"\u0275Compiler_compileModuleAndAllComponentsAsync__POST_R3__":()=>dv,"\u0275Compiler_compileModuleAndAllComponentsSync__POST_R3__":()=>uv,"\u0275Compiler_compileModuleAsync__POST_R3__":()=>lv,"\u0275Compiler_compileModuleSync__POST_R3__":()=>sv,"\u0275ComponentFactory":()=>Nd,"\u0275Console":()=>Xm,"\u0275DEFAULT_LOCALE_ID":()=>_h,"\u0275EMPTY_ARRAY":()=>z,"\u0275EMPTY_MAP":()=>Qp,"\u0275INJECTOR_IMPL__POST_R3__":()=>Ta,"\u0275INJECTOR_SCOPE":()=>fa,"\u0275LifecycleHooksFeature":()=>Ya,"\u0275LocaleDataIndex":()=>yh,"\u0275NG_COMP_DEF":()=>W,"\u0275NG_DIR_DEF":()=>$,"\u0275NG_ELEMENT_ID":()=>ee,"\u0275NG_INJ_DEF":()=>T,"\u0275NG_MOD_DEF":()=>X,"\u0275NG_PIPE_DEF":()=>Y,"\u0275NG_PROV_DEF":()=>x,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR":()=>Ff,"\u0275NO_CHANGE":()=>as,"\u0275NgModuleFactory":()=>Jf,"\u0275NoopNgZone":()=>Ev,"\u0275ReflectionCapabilities":()=>rr,"\u0275Render3ComponentFactory":()=>Vf,"\u0275Render3ComponentRef":()=>qf,"\u0275Render3NgModuleRef":()=>Xf,"\u0275RuntimeError":()=>g,"\u0275SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__":()=>wA,"\u0275SWITCH_COMPILE_COMPONENT__POST_R3__":()=>Om,"\u0275SWITCH_COMPILE_DIRECTIVE__POST_R3__":()=>Fm,"\u0275SWITCH_COMPILE_INJECTABLE__POST_R3__":()=>Gl,"\u0275SWITCH_COMPILE_NGMODULE__POST_R3__":()=>Um,"\u0275SWITCH_COMPILE_PIPE__POST_R3__":()=>Lm,"\u0275SWITCH_ELEMENT_REF_FACTORY__POST_R3__":()=>zd,"\u0275SWITCH_IVY_ENABLED__POST_R3__":()=>rv,"\u0275SWITCH_RENDERER2_FACTORY__POST_R3__":()=>Zd,"\u0275SWITCH_TEMPLATE_REF_FACTORY__POST_R3__":()=>BA,"\u0275SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__":()=>RA,"\u0275_sanitizeHtml":()=>Ei,"\u0275_sanitizeUrl":()=>ai,"\u0275allowSanitizationBypassAndThrow":()=>$r,"\u0275and":()=>Ry,"\u0275angular_packages_core_core_a":()=>f,"\u0275angular_packages_core_core_b":()=>dr,"\u0275angular_packages_core_core_ba":()=>Dy,"\u0275angular_packages_core_core_bb":()=>wh,"\u0275angular_packages_core_core_bc":()=>If,"\u0275angular_packages_core_core_bd":()=>rp,"\u0275angular_packages_core_core_be":()=>xe,"\u0275angular_packages_core_core_bf":()=>Hf,"\u0275angular_packages_core_core_bg":()=>un,"\u0275angular_packages_core_core_bh":()=>nt,"\u0275angular_packages_core_core_bi":()=>At,"\u0275angular_packages_core_core_bj":()=>Ot,"\u0275angular_packages_core_core_bl":()=>ug,"\u0275angular_packages_core_core_bm":()=>hg,"\u0275angular_packages_core_core_bn":()=>dg,"\u0275angular_packages_core_core_bo":()=>Ag,"\u0275angular_packages_core_core_bp":()=>pg,"\u0275angular_packages_core_core_bq":()=>Mi,"\u0275angular_packages_core_core_br":()=>Pn,"\u0275angular_packages_core_core_bs":()=>kn,"\u0275angular_packages_core_core_bv":()=>l,"\u0275angular_packages_core_core_bw":()=>pa,"\u0275angular_packages_core_core_bx":()=>F,"\u0275angular_packages_core_core_bz":()=>Ve,"\u0275angular_packages_core_core_c":()=>mr,"\u0275angular_packages_core_core_cb":()=>fo,"\u0275angular_packages_core_core_cc":()=>bd,"\u0275angular_packages_core_core_d":()=>gc,"\u0275angular_packages_core_core_e":()=>rc,"\u0275angular_packages_core_core_f":()=>cc,"\u0275angular_packages_core_core_g":()=>qm,"\u0275angular_packages_core_core_h":()=>tA,"\u0275angular_packages_core_core_i":()=>Kd,"\u0275angular_packages_core_core_j":()=>Gd,"\u0275angular_packages_core_core_k":()=>Jv,"\u0275angular_packages_core_core_l":()=>LA,"\u0275angular_packages_core_core_m":()=>MA,"\u0275angular_packages_core_core_n":()=>QA,"\u0275angular_packages_core_core_o":()=>cy,"\u0275angular_packages_core_core_p":()=>uy,"\u0275angular_packages_core_core_q":()=>Ey,"\u0275angular_packages_core_core_r":()=>EA,"\u0275angular_packages_core_core_s":()=>oA,"\u0275angular_packages_core_core_t":()=>dA,"\u0275angular_packages_core_core_u":()=>fA,"\u0275angular_packages_core_core_v":()=>mA,"\u0275angular_packages_core_core_w":()=>Py,"\u0275angular_packages_core_core_x":()=>Oy,"\u0275angular_packages_core_core_y":()=>Fy,"\u0275angular_packages_core_core_z":()=>My,"\u0275bypassSanitizationTrustHtml":()=>Xr,"\u0275bypassSanitizationTrustResourceUrl":()=>ti,"\u0275bypassSanitizationTrustScript":()=>Zr,"\u0275bypassSanitizationTrustStyle":()=>Jr,"\u0275bypassSanitizationTrustUrl":()=>ei,"\u0275ccf":()=>ef,"\u0275clearOverrides":()=>d_,"\u0275clearResolutionOfComponentResourcesQueue":()=>Or,"\u0275cmf":()=>A_,"\u0275compileComponent":()=>lm,"\u0275compileDirective":()=>cm,"\u0275compileNgModule":()=>Xg,"\u0275compileNgModuleDefs":()=>
1Jg,"\u0275compileNgModuleFactory__POST_R3__":()=>Nv,"\u0275compilePipe":()=>Cm,"\u0275createInjector":()=>ba,"\u0275crt":()=>hp,"\u0275defaultIterableDiffers":()=>xA,"\u0275defaultKeyValueDiffers":()=>TA,"\u0275detectChanges":()=>ha,"\u0275devModeEqual":()=>cl,"\u0275did":()=>Cf,"\u0275eld":()=>Uy,"\u0275findLocaleData":()=>ph,"\u0275flushModuleScopingQueueAsMuchAsPossible":()=>$g,"\u0275getComponentViewDefinitionFactory":()=>tf,"\u0275getDebugNodeR2":()=>Iy,"\u0275getDebugNode__POST_R3__":()=>Cy,"\u0275getDirectives":()=>Da,"\u0275getHostElement":()=>Ra,"\u0275getInjectableDef":()=>S,"\u0275getLContext":()=>Ri,"\u0275getLocaleCurrencyCode":()=>fh,"\u0275getLocalePluralCase":()=>gh,"\u0275getModuleFactory__POST_R3__":()=>Zv,"\u0275getSanitizationBypassType":()=>Yr,"\u0275global":()=>K,"\u0275initServicesIfNeeded":()=>xb,"\u0275inlineInterpolate":()=>Up,"\u0275interpolate":()=>Rp,"\u0275isBoundToModule__POST_R3__":()=>Uv,"\u0275isDefaultChangeDetectionStrategy":()=>U,"\u0275isListLikeIterable":()=>hl,"\u0275isObservable":()=>kc,"\u0275isPromise":()=>Tc,"\u0275isSubscribable":()=>Bc,"\u0275ivyEnabled":()=>iv,"\u0275makeDecorator":()=>Tn,"\u0275markDirty":()=>da,"\u0275mod":()=>zp,"\u0275mpd":()=>Gp,"\u0275ncd":()=>$y,"\u0275noSideEffects":()=>D,"\u0275nov":()=>Af,"\u0275overrideComponentView":()=>h_,"\u0275overrideProvider":()=>u_,"\u0275pad":()=>Jy,"\u0275patchComponentDefWithScope":()=>rm,"\u0275pid":()=>Sf,"\u0275pod":()=>Zy,"\u0275ppd":()=>Xy,"\u0275prd":()=>Ef,"\u0275publishDefaultGlobalUtils":()=>qa,"\u0275publishGlobalUtil":()=>Ka,"\u0275qud":()=>qy,"\u0275registerLocaleData":()=>Ah,"\u0275registerModuleFactory":()=>zf,"\u0275registerNgModuleType":()=>$f,"\u0275renderComponent":()=>Ga,"\u0275resetCompiledComponents":()=>tm,"\u0275resetJitOptions":()=>Gg,"\u0275resolveComponentResources":()=>Tr,"\u0275setClassMetadata":()=>Kf,"\u0275setCurrentInjector":()=>hr,"\u0275setDocument":()=>Ne,"\u0275setLocaleId":()=>xh,"\u0275store":()=>Ul,"\u0275stringify":()=>u,"\u0275ted":()=>tb,"\u0275transitiveScopesFor":()=>im,"\u0275unregisterLocaleData":()=>vh,"\u0275unv":()=>lp,"\u0275unwrapSafeValue":()=>Wr,"\u0275vid":()=>ib,"\u0275whenRendered":()=>Xa,"\u0275\u0275CopyDefinitionFeature":()=>sl,"\u0275\u0275FactoryTarget":()=>Qn,"\u0275\u0275InheritDefinitionFeature":()=>Za,"\u0275\u0275NgOnChangesFeature":()=>Ie,"\u0275\u0275ProvidersFeature":()=>Md,"\u0275\u0275advance":()=>ls,"\u0275\u0275attribute":()=>yl,"\u0275\u0275attributeInterpolate1":()=>Bl,"\u0275\u0275attributeInterpolate2":()=>kl,"\u0275\u0275attributeInterpolate3":()=>Pl,"\u0275\u0275attributeInterpolate4":()=>Ol,"\u0275\u0275attributeInterpolate5":()=>Fl,"\u0275\u0275attributeInterpolate6":()=>Ll,"\u0275\u0275attributeInterpolate7":()=>Ml,"\u0275\u0275attributeInterpolate8":()=>Dl,"\u0275\u0275attributeInterpolateV":()=>Nl,"\u0275\u0275classMap":()=>hu,"\u0275\u0275classMapInterpolate1":()=>Mu,"\u0275\u0275classMapInterpolate2":()=>Du,"\u0275\u0275classMapInterpolate3":()=>Nu,"\u0275\u0275classMapInterpolate4":()=>Ru,"\u0275\u0275classMapInterpolate5":()=>Uu,"\u0275\u0275classMapInterpolate6":()=>ju,"\u0275\u0275classMapInterpolate7":()=>Qu,"\u0275\u0275classMapInterpolate8":()=>Hu,"\u0275\u0275classMapInterpolateV":()=>Vu,"\u0275\u0275classProp":()=>lu,"\u0275\u0275contentQuery":()=>Rg,"\u0275\u0275defineComponent":()=>ne,"\u0275\u0275defineDirective":()=>ue,"\u0275\u0275defineInjectable":()=>_,"\u0275\u0275defineInjector":()=>C,"\u0275\u0275defineNgModule":()=>ae,"\u0275\u0275definePipe":()=>he,"\u0275\u0275directiveInject":()=>mc,"\u0275\u0275disableBindings":()=>tt,"\u0275\u0275element":()=>Cc,"\u0275\u0275elementContainer":()=>Ic,"\u0275\u0275elementContainerEnd":()=>Ec,"\u0275\u0275elementContainerStart":()=>Sc,"\u0275\u0275elementEnd":()=>wc,"\u0275\u0275elementStart":()=>_c,"\u0275\u0275enableBindings":()=>et,"\u0275\u0275getCurrentView":()=>xc,"\u0275\u0275getInheritedFactory":()=>wn,"\u0275\u0275hostProperty":()=>lh,"\u0275\u0275i18n":()=>Cd,"\u0275\u0275i18nApply":()=>Id,"\u0275\u0275i18nAttributes":()=>Sd,"\u0275\u0275i18nEnd":()=>wd,"\u0275\u0275i18nExp":()=>
vendor: 4,649 bytes, line 1
1Ed,"\u0275\u0275i18nPostprocess":()=>xd,"\u0275\u0275i18nStart":()=>_d,"\u0275\u0275inject":()=>Ar,"\u0275\u0275injectAttribute":()=>Sn,"\u0275\u0275invalidFactory":()=>vc,"\u0275\u0275invalidFactoryDep":()=>pr,"\u0275\u0275listener":()=>Pc,"\u0275\u0275loadQuery":()=>Ug,"\u0275\u0275namespaceHTML":()=>Rt,"\u0275\u0275namespaceMathML":()=>Nt,"\u0275\u0275namespaceSVG":()=>Dt,"\u0275\u0275nextContext":()=>Dc,"\u0275\u0275ngDeclareClassMetadata":()=>g_,"\u0275\u0275ngDeclareComponent":()=>m_,"\u0275\u0275ngDeclareDirective":()=>f_,"\u0275\u0275ngDeclareFactory":()=>v_,"\u0275\u0275ngDeclareInjectable":()=>y_,"\u0275\u0275ngDeclareInjector":()=>b_,"\u0275\u0275ngDeclareNgModule":()=>__,"\u0275\u0275ngDeclarePipe":()=>w_,"\u0275\u0275pipe":()=>fg,"\u0275\u0275pipeBind1":()=>gg,"\u0275\u0275pipeBind2":()=>mg,"\u0275\u0275pipeBind3":()=>vg,"\u0275\u0275pipeBind4":()=>yg,"\u0275\u0275pipeBindV":()=>bg,"\u0275\u0275projection":()=>Uc,"\u0275\u0275projectionDef":()=>Rc,"\u0275\u0275property":()=>yc,"\u0275\u0275propertyInterpolate":()=>jc,"\u0275\u0275propertyInterpolate1":()=>Qc,"\u0275\u0275propertyInterpolate2":()=>Hc,"\u0275\u0275propertyInterpolate3":()=>Vc,"\u0275\u0275propertyInterpolate4":()=>qc,"\u0275\u0275propertyInterpolate5":()=>Kc,"\u0275\u0275propertyInterpolate6":()=>Gc,"\u0275\u0275propertyInterpolate7":()=>zc,"\u0275\u0275propertyInterpolate8":()=>Wc,"\u0275\u0275propertyInterpolateV":()=>$c,"\u0275\u0275pureFunction0":()=>Zf,"\u0275\u0275pureFunction1":()=>eg,"\u0275\u0275pureFunction2":()=>tg,"\u0275\u0275pureFunction3":()=>ng,"\u0275\u0275pureFunction4":()=>rg,"\u0275\u0275pureFunction5":()=>ig,"\u0275\u0275pureFunction6":()=>og,"\u0275\u0275pureFunction7":()=>sg,"\u0275\u0275pureFunction8":()=>ag,"\u0275\u0275pureFunctionV":()=>lg,"\u0275\u0275queryRefresh":()=>Dg,"\u0275\u0275reference":()=>jl,"\u0275\u0275resolveBody":()=>lo,"\u0275\u0275resolveDocument":()=>ao,"\u0275\u0275resolveWindow":()=>so,"\u0275\u0275restoreView":()=>it,"\u0275\u0275sanitizeHtml":()=>Ti,"\u0275\u0275sanitizeResourceUrl":()=>Pi,"\u0275\u0275sanitizeScript":()=>Oi,"\u0275\u0275sanitizeStyle":()=>Bi,"\u0275\u0275sanitizeUrl":()=>ki,"\u0275\u0275sanitizeUrlOrResourceUrl":()=>Di,"\u0275\u0275setComponentScope":()=>re,"\u0275\u0275setNgModuleScope":()=>le,"\u0275\u0275styleMap":()=>cu,"\u0275\u0275styleMapInterpolate1":()=>qu,"\u0275\u0275styleMapInterpolate2":()=>Ku,"\u0275\u0275styleMapInterpolate3":()=>Gu,"\u0275\u0275styleMapInterpolate4":()=>zu,"\u0275\u0275styleMapInterpolate5":()=>Wu,"\u0275\u0275styleMapInterpolate6":()=>$u,"\u0275\u0275styleMapInterpolate7":()=>Yu,"\u0275\u0275styleMapInterpolate8":()=>Xu,"\u0275\u0275styleMapInterpolateV":()=>Ju,"\u0275\u0275styleProp":()=>au,"\u0275\u0275stylePropInterpolate1":()=>Zu,"\u0275\u0275stylePropInterpolate2":()=>eh,"\u0275\u0275stylePropInterpolate3":()=>th,"\u0275\u0275stylePropInterpolate4":()=>nh,"\u0275\u0275stylePropInterpolate5":()=>rh,"\u0275\u0275stylePropInterpolate6":()=>ih,"\u0275\u0275stylePropInterpolate7":()=>oh,"\u0275\u0275stylePropInterpolate8":()=>sh,"\u0275\u0275stylePropInterpolateV":()=>ah,"\u0275\u0275syntheticHostListener":()=>Oc,"\u0275\u0275syntheticHostProperty":()=>ch,"\u0275\u0275template":()=>Rl,"\u0275\u0275templateRefExtractor":()=>Vg,"\u0275\u0275text":()=>Su,"\u0275\u0275textInterpolate":()=>Eu,"\u0275\u0275textInterpolate1":()=>Iu,"\u0275\u0275textInterpolate2":()=>xu,"\u0275\u0275textInterpolate3":()=>Tu,"\u0275\u0275textInterpolate4":()=>Bu,"\u0275\u0275textInterpolate5":()=>ku,"\u0275\u0275textInterpolate6":()=>Pu,"\u0275\u0275textInterpolate7":()=>Ou,"\u0275\u0275textInterpolate8":()=>Fu,"\u0275\u0275textInterpolateV":()=>Lu,"\u0275\u0275trustConstantHtml":()=>Fi,"\u0275\u0275trustConstantResourceUrl":()=>Li,"\u0275\u0275viewQuery":()=>Ng});var r=n(5959),i=n(7570),o=n(1784),s=n(1906),a=n(1055);function l(e){for(let t in e)if(e[t]===l)return t;throw Error("Could not find renamed property on target object.")}function c(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function u(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(u).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function h(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const d=l({__forward_ref__:l});function A(e){return e.__forward_ref__=A,e.toString=function(){return u(this())},e}function p(e){return f(e)?e():e}function f(e){return"function"==typeof e&&e.hasOwnProperty(d)&&e.__forward_ref__===A}
1class g extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function m(e){return"string"==typeof e?e:null==e?"":String(e)}function v(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():m(e)}function y(e,t){const n=t?` in ${t}`:"";throw new g("201",`No provider for ${v(e)} found${n}`)}function b(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function _(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const w=_;function C(e){return{providers:e.providers||[],imports:e.imports||[]}}function S(e){return E(e,x)||E(e,B)}function E(e,t){return e.hasOwnProperty(t)?e[t]:null}function I(e){return e&&(e.hasOwnProperty(T)||e.hasOwnProperty(k))?e[T]:null}const x=l({"\u0275prov":l}),T=l({"\u0275inj":l}),B=l({ngInjectableDef:l}),k=l({ngInjectorDef:l});var P=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});let O;function F(){return O}function L(e){const t=O;return O=e,t}function M(e,t,n){const r=S(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&P.Optional?null:void 0!==t?t:void y(u(e),"Injector")}function D(e){return{toString:e}.toString()}var N=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),R=function(e){return e[e.CheckOnce=0]="CheckOnce",e[e.Checked=1]="Checked",e[e.CheckAlways=2]="CheckAlways",e[e.Detached=3]="Detached",e[e.Errored=4]="Errored",e[e.Destroyed=5]="Destroyed",e}({});function U(e){return null==e||e===N.Default}var j=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const Q="undefined"!=typeof globalThis&&globalThis,H="undefined"!=typeof window&&window,V="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,q="undefined"!=typeof global&&global,K=Q||q||H||V,G={},z=[],W=l({"\u0275cmp":l}),$=l({"\u0275dir":l}),Y=l({"\u0275pipe":l}),X=l({"\u0275mod":l}),J=l({"\u0275loc":l}),Z=l({"\u0275fac":l}),ee=l({__NG_ELEMENT_ID__:l});let te=0;function ne(e){return D(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===N.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||z,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||j.Emulated,id:"c",styles:e.styles||z,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=te++,n.inputs=ce(e.inputs,t),n.outputs=ce(e.outputs),i&&i.forEach(e=>e(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(ie):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(oe):null,n})}function re(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(ie),r.pipeDefs=()=>n.map(oe)}function ie(e){return de(e)||Ae(e)}function oe(e){return pe(e)}const se={};function ae(e){return D(()=>{const t={type:e.type,bootstrap:e.bootstrap||z,declarations:e.declarations||z,imports:e.imports||z,exports:e.exports||z,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(se[e.id]=e.type),t})}function le(e,t){return D(()=>{const n=fe(e,!0);n.declarations=t.declarations||z,n.imports=t.imports||z,n.exports=t.exports||z})}function ce(e,t){if(null==e)return G;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const ue=ne;function he(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function de(e){return e[W]||null}function Ae(e){return e[$]||null}function pe(e){return e[Y]||null}function fe(e,t){const n=e[X]||null;if(!n&&!0===t)throw new Error(`Type ${u(e)} does not have '\u0275mod' property.`);return n}const ge=20,me=10;function ve(e){return Array.isArray(e)&&"object"==typeof e[1]}function ye(e){return Array.isArray(e)&&!0===e[1]}function be(e){return 0!=(8&e.flags)}function _e(e){return 2==(2&e.flags)}function we(e){return 1==(1&e.flags)}function Ce(e){return null!==e.template}function Se(e,t){return e.hasOwnProperty(Z)?e[Z]:null}class Ee{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ie(){return xe}function xe(e){return e.type.prototype.ngOnChanges&&(e.setInput=Be),Te}function Te(){const e=ke(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===G)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Be(e,t,n,r){const i=ke(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:G,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],l=s[a];o[a]=new Ee(l&&l.currentValue,t,s===G),e[r]=t}function ke(e){return e.__ngSimpleChanges__||null}Ie.ngInherit=!0;let Pe=null;const Oe=e=>{Pe=e},Fe=function(e,t,n){null!=Pe&&Pe(e,t,n)},Le="http://www.w3.org/2000/svg",Me="http://www.w3.org/1998/MathML/";let De;function Ne(e){De=e}function Re(){return void 0!==De?De:"undefined"!=typeof document?document:void 0}function Ue(e){return!!e.listen}const je={createRenderer:(e,t)=>Re()};function Qe(e){for(;Array.isArray(e);)e=e[0];return e}function He(e,t){return Qe(t[e])}function Ve(e,t){return Qe(t[e.index])}function qe(e,t){return e.data[t]}function Ke(e,t){return e[t]}function Ge(e,t){const n=t[e];return ve(n)?n:n[0]}function ze(e){return 4==(4&e[2])}function We(e){return 128==(128&e[2])}function $e(e,t){return null==t?null:e[t]}function Ye(e){e[18]=0}function Xe(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Je={lFrame:Tt(null),bindingsEnabled:!0,isInCheckNoChangesMo
vendor: 6,056 bytes, line 1
1de:!1};function Ze(){return Je.bindingsEnabled}function et(){Je.bindingsEnabled=!0}function tt(){Je.bindingsEnabled=!1}function nt(){return Je.lFrame.lView}function rt(){return Je.lFrame.tView}function it(e){return Je.lFrame.contextLView=e,e[8]}function ot(){let e=st();for(;null!==e&&64===e.type;)e=e.parent;return e}function st(){return Je.lFrame.currentTNode}function at(){const e=Je.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function lt(e,t){const n=Je.lFrame;n.currentTNode=e,n.isParent=t}function ct(){return Je.lFrame.isParent}function ut(){Je.lFrame.isParent=!1}function ht(){return Je.isInCheckNoChangesMode}function dt(e){Je.isInCheckNoChangesMode=e}function At(){const e=Je.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function pt(){return Je.lFrame.bindingIndex}function ft(e){return Je.lFrame.bindingIndex=e}function gt(){return Je.lFrame.bindingIndex++}function mt(e){const t=Je.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function vt(e){Je.lFrame.inI18n=e}function yt(e,t){const n=Je.lFrame;n.bindingIndex=n.bindingRootIndex=e,bt(t)}function bt(e){Je.lFrame.currentDirectiveIndex=e}function _t(e){const t=Je.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function wt(){return Je.lFrame.currentQueryIndex}function Ct(e){Je.lFrame.currentQueryIndex=e}function St(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Et(e,t,n){if(n&P.SkipSelf){let r=t,i=e;for(;r=r.parent,!(null!==r||n&P.Host||(r=St(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}const r=Je.lFrame=xt();return r.currentTNode=t,r.lView=e,!0}function It(e){const t=xt(),n=e[1];Je.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function xt(){const e=Je.lFrame,t=null===e?null:e.child;return null===t?Tt(e):t}function Tt(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Bt(){const e=Je.lFrame;return Je.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const kt=Bt;function Pt(){const e=Bt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ot(e){return(Je.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Je.lFrame.contextLView))[8]}function Ft(){return Je.lFrame.selectedIndex}function Lt(e){Je.lFrame.selectedIndex=e}function Mt(){const e=Je.lFrame;return qe(e.tView,e.selectedIndex)}function Dt(){Je.lFrame.currentNamespace=Le}function Nt(){Je.lFrame.currentNamespace=Me}function Rt(){Je.lFrame.currentNamespace=null}function Ut(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:i,ngAfterViewInit:o,ngAfterViewChecked:s,ngOnDestroy:a}=t;r&&(e.contentHooks||(e.contentHooks=[])).push(-n,r),i&&((e.contentHooks||(e.contentHooks=[])).push(n,i),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,i)),o&&(e.viewHooks||(e.viewHooks=[])).push(-n,o),s&&((e.viewHooks||(e.viewHooks=[])).push(n,s),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,s)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function jt(e,t,n){Vt(e,t,3,n)}function Qt(e,t,n,r){(3&e[2])===n&&Vt(e,t,n,r)}function Ht(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Vt(e,t,n,r){const i=null!=r?r:-1,o=t.length-1;let s=0;for(let a=void 0!==r?65535&e[18]:0;a<o;a++)if("number"==typeof t[a+1]){if(s=t[a],null!=r&&s>=r)break}else t[a]<0&&(e[18]+=65536),(s<i||-1==i)&&(qt(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function qt(e,t,n,r){const i=n[r]<0,o=n[r+1],s=e[i?-n[r]:n[r]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,Fe(4,s,o);try{o.call(s)}finally{Fe(5,s,o)}}}else{Fe(4,s,o);try{o.call(s)}finally{Fe(5,s,o)}}}const Kt=-1;class Gt{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function zt(e,t,n){const r=Ue(e);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const s=n[i++],a=n[i++],l=n[i++];r?e.setAttribute(t,a,l,s):t.setAttributeNS(s,a,l)}else{const s=o,a=n[++i];$t(s)?r&&e.setProperty(t,s,a):r?e.setAttribute(t,s,a):t.setAttribute(s,a),i++}}return i}function Wt(e){return 3===e||4===e||6===e}function $t(e){return 64===e.charCodeAt(0)}function Yt(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||Xt(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function Xt(e,t,n,r,i){let o=0,s=e.length;if(-1===t)s=-1;else for(;o<e.length;){const n=e[o++];if("number"==typeof n){if(n===t){s=-1;break}if(n>t){s=o-1;break}}}for(;o<e.length;){const t=e[o];if("number"==typeof t)break;if(t===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function Jt(e){return e!==Kt}function Zt(e){return 32767&e}function en(e,t){let n=e>>16,r=t;for(;n>0;)r=r[15],n--;return r}let tn=!0;function nn(e){const t=tn;return tn=e,t}let rn=0;function on(e,t){const n=an(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,sn(r.data,e),sn(t,null),sn(r.blueprint,null));const i=ln(e,t),o=e.injectorIndex;if(Jt(i)){const e=Zt(i),n=en(i,t),r=n[1].data;for(let i=0;i<8;i++)t[o+i]=n[e+i]|r[e+i]}return t[o+8]=i,o}function sn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function an(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ln(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;
1for(;null!==i;){const e=i[1],t=e.type;if(r=2===t?e.declTNode:1===t?i[6]:null,null===r)return Kt;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Kt}function cn(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ee)&&(r=n[ee]),null==r&&(r=n[ee]=rn++);const i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function un(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let r=0;for(;r<e;){const i=n[r];if(Wt(i))break;if(0===i)r+=2;else if("number"==typeof i)for(r++;r<e&&"string"==typeof n[r];)r++;else{if(i===t)return n[r+1];r+=2}}}return null}function hn(e,t,n){if(n&P.Optional)return e;y(t,"NodeInjector")}function dn(e,t,n,r){if(n&P.Optional&&void 0===r&&(r=null),0==(n&(P.Self|P.Host))){const i=e[9],o=L(void 0);try{return i?i.get(t,r,n&P.Optional):M(t,r,n&P.Optional)}finally{L(o)}}return hn(r,t,n)}function An(e,t,n,r=P.Default,i){if(null!==e){const o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(ee)?e[ee]:void 0;return"number"==typeof t?t>=0?255&t:fn:t}(n);if("function"==typeof o){if(!Et(t,e,r))return r&P.Host?hn(i,n,r):dn(t,n,r,i);try{const e=o(r);if(null!=e||r&P.Optional)return e;y(n)}finally{kt()}}else if("number"==typeof o){let i=null,s=an(e,t),a=Kt,l=r&P.Host?t[16][6]:null;for((-1===s||r&P.SkipSelf)&&(a=-1===s?ln(e,t):t[s+8],a!==Kt&&bn(r,!1)?(i=t[1],s=Zt(a),t=en(a,t)):s=-1);-1!==s;){const e=t[1];if(yn(o,s,e.data)){const e=gn(s,t,n,i,r,l);if(e!==pn)return e}a=t[s+8],a!==Kt&&bn(r,t[1].data[s+8]===l)&&yn(o,s,t)?(i=e,s=Zt(a),t=en(a,t)):s=-1}}}return dn(t,n,r,i)}const pn={};function fn(){return new _n(ot(),nt())}function gn(e,t,n,r,i,o){const s=t[1],a=s.data[e+8],l=mn(a,s,n,null==r?_e(a)&&tn:r!=s&&0!=(3&a.type),i&P.Host&&o===a);return null!==l?vn(t,s,l,a):pn}function mn(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,l=e.directiveStart,c=o>>20,u=i?a+c:e.directiveEnd;for(let h=r?a:a+c;h<u;h++){const e=s[h];if(h<l&&n===e||h>=l&&e.type===n)return h}if(i){const e=s[l];if(e&&Ce(e)&&e.type===n)return l}return null}function vn(e,t,n,r){let i=e[n];const o=t.data;if(i instanceof Gt){const s=i;s.resolving&&function(e,t){throw new g("200",`Circular dependency in DI detected for ${e}`)}(v(o[n]));const a=nn(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?L(s.injectImpl):null;Et(e,r,P.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const r=xe(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==l&&L(l),nn(a),s.resolving=!1,kt()}}return i}function yn(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function bn(e,t){return!(e&P.Self||e&P.Host&&t)}class _n{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return An(this._tNode,this._lView,e,void 0,t)}}function wn(e){return D(()=>{const t=e.prototype.constructor,n=t[Z]||Cn(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const e=i[Z]||Cn(i);if(e&&e!==n)return e;i=Object.getPrototypeOf(i)}return e=>new e})}function Cn(e){return f(e)?()=>{const t=Cn(p(e));return t&&t()}:Se(e)}function Sn(e){return un(ot(),e)}const En="__annotations__",In="__parameters__",xn="__prop__metadata__";function Tn(e,t,n,r,i){return D(()=>{const o=Bn(t);function s(...e){if(this instanceof s)return o.call(this,...e),this;const t=new s(...e);return function(n){return i&&i(n,...e),(n.hasOwnProperty(En)?n[En]:Object.defineProperty(n,En,{value:[]})[En]).push(t),r&&r(n),n}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function Bn(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}function kn(e,t,n){return D(()=>{const r=Bn(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty(In)?e[In]:Object.defineProperty(e,In,{value:[]})[In];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Pn(e,t,n,r){return D(()=>{const i=Bn(t);function o(...e){if(this instanceof o)return i.apply(this,e),this;const t=new o(...e);return function(n,i){const o=n.constructor,s=o.hasOwnProperty(xn)?o[xn]:Object.defineProperty(o,xn,{value:{}}
1)[xn];s[i]=s.hasOwnProperty(i)&&s[i]||[],s[i].unshift(t),r&&r(n,i,...e)}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function On(){return kn("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Sn(e)}))}const Fn=On();class Ln{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=_({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Mn=new Ln("AnalyzeForEntryComponents");class Dn{}const Nn=Pn("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),Dn),Rn=Pn("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Dn),Un=Pn("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),Dn),jn=Pn("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Dn);var Qn=function(e){return e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule",e}({});function Hn(){const e=K.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}const Vn=Function;function qn(e){return"function"==typeof e}function Kn(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),Kn(r,t)):t!==e&&t.push(r)}return t}function Gn(e,t){e.forEach(e=>Array.isArray(e)?Gn(e,t):t(e))}function zn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Wn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function $n(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Yn(e,t,n){let r=Jn(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Xn(e,t){const n=Jn(e,t);if(n>=0)return e[1|n]}function Jn(e,t){return function(e,t,n){let r=0,i=e.length>>1;for(;i!==r;){const n=r+(i-r>>1),o=e[n<<1];if(t===o)return n<<1;o>t?i=n:r=n+1}return~(i<<1)}(e,t)}const Zn=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\))\)/,er=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,tr=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,nr=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class rr{constructor(e){this._reflect=e||K.Reflect}isReflectionEnabled(){return!0}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=$n(void 0===e?t.length:e.length);for(let r=0;r<n.length;r++)n[r]=void 0===e?[]:e[r]&&e[r]!=Object?[e[r]]:[],t&&null!=t[r]&&(n[r]=n[r].concat(t[r]));return n}_ownParameters(e,t){if(n=e.toString(),Zn.test(n)||nr.test(n)||er.test(n)&&!tr.test(n))return null;var n;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;const r=e.ctorParameters;if(r&&r!==t.ctorParameters){const e="function"==typeof r?r():r,t=e.map(e=>e&&e.type),n=e.map(e=>e&&ir(e.decorators));return this._zipTypesAndAnnotations(t,n)}const i=e.hasOwnProperty(In)&&e[In],o=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return o||i?this._zipTypesAndAnnotations(o,i):$n(e.length)}parameters(e){if(!qn(e))return[];const t=or(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?ir(e.decorators):e.hasOwnProperty(En)?e[En]:null}annotations(e){if(!qn(e))return[];const t=or(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};
1return Object.keys(t).forEach(e=>{n[e]=ir(t[e])}),n}return e.hasOwnProperty(xn)?e[xn]:null}propMetadata(e){if(!qn(e))return{};const t=or(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach(t=>{n[t]=e[t]})}const r=this._ownPropMetadata(e,t);return r&&Object.keys(r).forEach(e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...r[e]),n[e]=t}),n}ownPropMetadata(e){return qn(e)&&this._ownPropMetadata(e,or(e))||{}}hasLifecycleHook(e,t){return e instanceof Vn&&t in e.prototype}guards(e){return{}}getter(e){return new Function("o","return o."+e+";")}setter(e){return new Function("o","v","return o."+e+" = v;")}method(e){return new Function("o","args",`if (!o.${e}) throw new Error('"${e}" is undefined');\n        return o.${e}.apply(o, args);`)}importUri(e){return"object"==typeof e&&e.filePath?e.filePath:`./${u(e)}`}resourceUri(e){return`./${u(e)}`}resolveIdentifier(e,t,n,r){return r}resolveEnum(e,t){return e[t]}}function ir(e){return e?e.map(e=>new(0,e.type.annotationCls)(...e.args?e.args:[])):[]}function or(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const sr={},ar=/\n/gm,lr="__source",cr=l({provide:String,useValue:l});let ur;function hr(e){const t=ur;return ur=e,t}function dr(e,t=P.Default){if(void 0===ur)throw new Error("inject() must be called from an injection context");return null===ur?M(e,void 0,t):ur.get(e,t&P.Optional?null:void 0,t)}function Ar(e,t=P.Default){return(F()||dr)(p(e),t)}function pr(e){throw new Error("invalid")}const fr=Ar;function gr(e){const t=[];for(let n=0;n<e.length;n++){const r=p(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let e,n=P.Default;for(let t=0;t<r.length;t++){const i=r[t],o=i.__NG_DI_FLAG__;"number"==typeof o?-1===o?e=i.token:n|=o:e=i}t.push(Ar(e,n))}else t.push(Ar(r))}return t}function mr(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}const vr=e=>({token:e}),yr=mr(kn("Inject",vr),-1),br=mr(kn("Optional"),8),_r=mr(kn("Self"),2),wr=mr(kn("SkipSelf"),4),Cr=mr(kn("Host"),1);let Sr=null;function Er(){return Sr=Sr||new rr}function Ir(e){return xr(Er().parameters(e))}function xr(e){return e.map(e=>function(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n<e.length;n++){const r=e[n];if(void 0===r)continue;const i=Object.getPrototypeOf(r);if(r instanceof br||"Optional"===i.ngMetadataName)t.optional=!0;else if(r instanceof wr||"SkipSelf"===i.ngMetadataName)t.skipSelf=!0;else if(r instanceof _r||"Self"===i.ngMetadataName)t.self=!0;else if(r instanceof Cr||"Host"===i.ngMetadataName)t.host=!0;else if(r instanceof yr)t.token=r.token;else if(r instanceof Fn){if(void 0===r.attributeName)throw new Error("Attribute name must be defined.");t.attribute=r.attributeName}else t.token=r}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(e))}function Tr(e){const t=[],n=new Map;function r(t){let r=n.get(t);if(!r){const i=e(t);n.set(t,r=i.then(Fr))}return r}return Br.forEach((e,n)=>{const i=[];e.templateUrl&&i.push(r(e.templateUrl).then(t=>{e.template=t}));const o=e.styleUrls,s=e.styles||(e.styles=[]),a=e.styles.length;o&&o.forEach((t,n)=>{s.push(""),i.push(r(t).then(r=>{s[a+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)}))});const l=Promise.all(i).then(()=>function(e){kr.delete(e)}(n));t.push(l)}),Or(),Promise.all(t).then(()=>{})}let Br=new Map;const kr=new Set;function Pr(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function Or(){const e=Br;return Br=new Map,e}function Fr(e){return"string"==typeof e?e:e.text()}let Lr,Mr;function Dr(){if(void 0===Lr&&(Lr=null,K.trustedTypes))try{Lr=K.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Lr}function Nr(e){var t;return(null===(t=Dr())||void 0===t?void 0:t.createHTML(e))||e}function Rr(){if(void 0===Mr&&(Mr=null,K.trustedTypes))try{Mr=K.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Mr}function Ur(e){var t;return(null===(t=Rr())||void 0===t?void 0:t.createHTML(e))||e}function jr(e){var t;return(null===(t=Rr())||void 0===t?void 0:t.createScript(e))||e}function Qr(e){var t;return(null===(t=Rr())||void 0===t?void 0:t.createScriptURL(e))||e}class Hr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Vr extends Hr{getTypeName(){return"HTML"}}class qr extends Hr{getTypeName(){return"Style"}}
vendor: 6,322 bytes, line 1
1class Kr extends Hr{getTypeName(){return"Script"}}class Gr extends Hr{getTypeName(){return"URL"}}class zr extends Hr{getTypeName(){return"ResourceURL"}}function Wr(e){return e instanceof Hr?e.changingThisBreaksApplicationSecurity:e}function $r(e,t){const n=Yr(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Yr(e){return e instanceof Hr&&e.getTypeName()||null}function Xr(e){return new Vr(e)}function Jr(e){return new qr(e)}function Zr(e){return new Kr(e)}function ei(e){return new Gr(e)}function ti(e){return new zr(e)}function ni(e){const t=new ii(e);return function(){try{return!!(new window.DOMParser).parseFromString(Nr(""),"text/html")}catch(e){return!1}}()?new ri(t):t}class ri{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Nr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class ii{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Nr(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=Nr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const oi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,si=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ai(e){return(e=String(e)).match(oi)||e.match(si)?e:"unsafe:"+e}function li(e){return(e=String(e)).split(",").map(e=>ai(e.trim())).join(", ")}function ci(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ui(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const hi=ci("area,br,col,hr,img,wbr"),di=ci("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ai=ci("rp,rt"),pi=ui(Ai,di),fi=ui(hi,ui(di,ci("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")),ui(Ai,ci("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")),pi),gi=ci("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mi=ci("srcset"),vi=ui(gi,mi,ci("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ci("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")),yi=ci("script,style,template");class bi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!fi.hasOwnProperty(t))return this.sanitizedSomething=!0,!yi.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r),t=e.name,i=t.toLowerCase();if(!vi.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=e.value;gi[i]&&(o=ai(o)),mi[i]&&(o=li(o)),this.buf.push(" ",t,'="',Ci(o),'"')}return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();fi.hasOwnProperty(t)&&!hi.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Ci(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const _i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wi=/([^\#-~ |!])/g;function Ci(e){return e.replace(/&/g,"&amp;").replace(_i,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(wi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Si;function Ei(e,t){let n=null;try{Si=Si||ni(e);let r=t?String(t):"";n=Si.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Si.getInertBodyElement(r)}while(r!==o);return Nr((new bi).sanitizeChildren(Ii(n)||n))}finally{if(n){const e=Ii(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}
1function Ii(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var xi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Ti(e){const t=Ni();return t?Ur(t.sanitize(xi.HTML,e)||""):$r(e,"HTML")?Ur(Wr(e)):Ei(Re(),m(e))}function Bi(e){const t=Ni();return t?t.sanitize(xi.STYLE,e)||"":$r(e,"Style")?Wr(e):m(e)}function ki(e){const t=Ni();return t?t.sanitize(xi.URL,e)||"":$r(e,"URL")?Wr(e):ai(m(e))}function Pi(e){const t=Ni();if(t)return Qr(t.sanitize(xi.RESOURCE_URL,e)||"");if($r(e,"ResourceURL"))return Qr(Wr(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Oi(e){const t=Ni();if(t)return jr(t.sanitize(xi.SCRIPT,e)||"");if($r(e,"Script"))return jr(Wr(e));throw new Error("unsafe value used in a script context")}function Fi(e){return Nr(e[0])}function Li(e){return function(e){var t;return(null===(t=Dr())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Mi(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Pi:ki}function Di(e,t,n){return Mi(t,n)(e)}function Ni(){const e=nt();return e&&e[12]}function Ri(e){let t=Hi(e);if(t){if(Array.isArray(t)){const r=t;let i,o,s;if((n=e)&&n.constructor&&n.constructor.\u0275cmp){if(i=Gi(r,e),-1==i)throw new Error("The provided component was not found in the application");o=e}else if(function(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(i=function(e,t){let n=e[1].firstChild;for(;n;){const r=n.directiveEnd;for(let i=n.directiveStart;i<r;i++)if(e[i]===t)return n.index;n=Ki(n)}return-1}(r,e),-1==i)throw new Error("The provided directive was not found in the application");s=zi(i,r,!1)}else if(i=qi(r,e),-1==i)return null;const a=Qe(r[i]),l=Hi(a),c=l&&!Array.isArray(l)?l:Ui(r,i,a);if(o&&void 0===c.component&&(c.component=o,Qi(c.component,c)),s&&void 0===c.directives){c.directives=s;for(let e=0;e<s.length;e++)Qi(s[e],c)}Qi(c.native,c),t=c}}else{const n=e;let r=n;for(;r=r.parentNode;){const e=Hi(r);if(e){let r;if(r=Array.isArray(e)?e:e.lView,!r)return null;const i=qi(r,n);if(i>=0){const e=Qe(r[i]),n=Ui(r,i,e);Qi(e,n),t=n;break}}}}var n;return t||null}function Ui(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function ji(e){let t,n=Hi(e);if(Array.isArray(n)){const r=Gi(n,e);t=Ge(r,n);const i=Ui(n,r,t[0]);i.component=e,Qi(e,i),Qi(i.native,i)}else t=Ge(n.nodeIndex,n.lView);return t}function Qi(e,t){e.__ngContext__=t}function Hi(e){return e.__ngContext__||null}function Vi(e){const t=Hi(e);return t?Array.isArray(t)?t:t.lView:null}function qi(e,t){const n=e[1];for(let r=ge;r<n.bindingStartIndex;r++)if(Qe(e[r])===t)return r;return-1}function Ki(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function Gi(e,t){const n=e[1].components;if(n)for(let r=0;r<n.length;r++){const i=n[r];if(Ge(i,e)[8]===t)return i}else if(Ge(ge,e)[8]===t)return ge;return-1}function zi(e,t,n){const r=t[1].data[e];let i=r.directiveStart;return 0==i?z:(!n&&2&r.flags&&i++,t.slice(i,r.directiveEnd))}function Wi(e){return e.ngDebugContext}function $i(e){return e.ngOriginalError}function Yi(e,...t){e.error(...t)}class Xi{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||Yi}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Wi(e)?Wi(e):this._findContext($i(e)):null}_findOriginalError(e){let t=$i(e);for(;t&&$i(t);)t=$i(t);return t}}const Ji={name:"custom-elements"},Zi={name:"no-errors-schema"},eo=/^>|^->|<!--|-->|--!>|<!-$/g,to=/(<|>)/;function no(e){return e.replace(eo,e=>e.replace(to,"\u200b$1\u200b"))}const ro=/([A-Z])/g;function io(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}const oo=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(K))();function so(e){return e.ownerDocument.defaultView}function ao(e){return e.ownerDocument}function lo(e){return e.ownerDocument.body}function co(e){return e instanceof Function?e():e}var uo=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let ho;function Ao(e,t){return ho(e,t)}function po(e){const t=e[3];return ye(t)?t[3]:t}function fo(e){return function(e){let t=ve(e)?e:Vi(e);for(;t&&!(512&t[2]);)t=po(t);return t}(e)[8]}function go(e){return vo(e[13])}function mo(e){return vo(e[4])}function vo(e){for(;null!==e&&!ye(e);)e=e[4];return e}function yo(e,t,n,r,i){if(null!=r){let o,s=!1;ye(r)?o=r:ve(r)&&(s=!0,r=r[0]);const a=Qe(r);0===e&&null!==n?null==i?Po(t,n,a):ko(t,n,a,i||null,!0):1===e&&null!==n?ko(t,n,a,i||null,!0):2===e?Vo(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,r,i){const o=n[7];o!==Qe(n)&&yo(t,e,r,o,i);for(let s=me;s<n.length;s++){const i=n[s];Ko(i[1],i,e,t,r,o)}}(t,e,o,n,i)}}function bo(e,t){return Ue(e)?e.createText(t):e.createTextNode(t)}function _o(e,t,n){Ue(e)?e.setValue(t,n):t.textContent=n}function wo(e,t){return e.createComment(no(t))}function Co(e,t,n){return Ue(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function So(e,t){const n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,Xe(i,-1)),n.splice(r,1)}function Eo(e,t){if(e.length<=me)return;const n=me+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&So(o,r),t>0&&(e[n-1][4]=r[4]);const s=Wn(e,me+t);Ko(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;const a=s[19];null!==a&&a.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}var i;return r}function Io(e,t){if(!(256&t[2])){const n=t[11];Ue(n)&&n.destroyNode&&Ko(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return xo(e[1],e);for(;t;){let n=null;if(ve(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)ve(t)&&xo(t[1],t),t=t[3];null===t&&(t=e),ve(t)&&xo(t[1],t),n=t&&t[4]}t=n}}(t)}}function xo(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const e=t[n[r]];if(!(e instanceof Gt)){const t=n[r+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2){const r=e[t[n]],i=t[n+1];Fe(4,r,i);
1try{i.call(r)}finally{Fe(5,r,i)}}else{Fe(4,e,t);try{t.call(e)}finally{Fe(5,e,t)}}}}}(e,t),function(e,t){const n=e.cleanup,r=t[7];let i=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const e=n[o+1],s="function"==typeof e?e(t):Qe(t[e]),a=r[i=n[o+2]],l=n[o+3];"boolean"==typeof l?s.removeEventListener(n[o],a,l):l>=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{const e=r[i=n[o+1]];n[o].call(e)}if(null!==r){for(let e=i+1;e<r.length;e++)(0,r[e])();t[7]=null}}(e,t),1===t[1].type&&Ue(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&ye(t[3])){n!==t[3]&&So(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function To(e,t,n){return Bo(e,t.parent,n)}function Bo(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const t=e.data[r.directiveStart].encapsulation;if(t===j.None||t===j.Emulated)return null}return Ve(r,n)}function ko(e,t,n,r,i){Ue(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function Po(e,t,n){Ue(e)?e.appendChild(t,n):t.appendChild(n)}function Oo(e,t,n,r,i){null!==r?ko(e,t,n,r,i):Po(e,t,n)}function Fo(e,t){return Ue(e)?e.parentNode(t):t.parentNode}function Lo(e,t,n){return No(e,t,n)}function Mo(e,t,n){return 40&e.type?Ve(e,n):null}let Do,No=Mo;function Ro(e,t){No=e,Do=t}function Uo(e,t,n,r){const i=To(e,r,t),o=t[11],s=Lo(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(let a=0;a<n.length;a++)Oo(o,i,n[a],s,!1);else Oo(o,i,n,s,!1);void 0!==Do&&Do(o,r,t,n,i)}function jo(e,t){if(null!==t){const n=t.type;if(3&n)return Ve(t,e);if(4&n)return Ho(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return jo(e,n);{const n=e[t.index];return ye(n)?Ho(-1,n):Qe(n)}}if(32&n)return Ao(t,e)()||Qe(e[t.index]);{const n=Qo(e,t);return null!==n?Array.isArray(n)?n[0]:jo(po(e[16]),n):jo(e,t.next)}}return null}function Qo(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Ho(e,t){const n=me+e+1;if(n<t.length){const e=t[n],r=e[1].firstChild;if(null!==r)return jo(e,r)}return t[7]}function Vo(e,t,n){const r=Fo(e,t);r&&function(e,t,n,r){Ue(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function qo(e,t,n,r,i,o,s){for(;null!=n;){const a=r[n.index],l=n.type;if(s&&0===t&&(a&&Qi(Qe(a),r),n.flags|=4),64!=(64&n.flags))if(8&l)qo(e,t,n.child,r,i,o,!1),yo(t,e,i,a,o);else if(32&l){const s=Ao(n,r);let l;for(;l=s();)yo(t,e,i,l,o);yo(t,e,i,a,o)}else 16&l?Go(e,t,r,n,i,o):yo(t,e,i,a,o);n=s?n.projectionNext:n.next}}function Ko(e,t,n,r,i,o){qo(n,r,e.firstChild,t,i,o,!1)}function Go(e,t,n,r,i,o){const s=n[16],a=s[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)yo(t,e,i,a[l],o);else qo(e,t,a,s[3],i,o,!0)}function zo(e,t,n){Ue(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Wo(e,t,n){Ue(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function $o(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const n=t.length;if(i+n===r||e.charCodeAt(i+n)<=32)return i}n=i+1}}const Yo="ng-template";function Xo(e,t,n){let r=0;for(;r<e.length;){let i=e[r++];
vendor: 9,349 bytes, line 1
1if(n&&"class"===i){if(i=e[r],-1!==$o(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function Jo(e){return 4===e.type&&e.value!==Yo}function Zo(e,t,n){return t===(4!==e.type||n?e.value:Yo)}function es(e,t,n){let r=4;const i=e.attrs||[],o=function(e){for(let t=0;t<e.length;t++)if(Wt(e[t]))return t;return e.length}(i);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!Zo(e,l,n)||""===l&&1===t.length){if(ts(r))return!1;s=!0}}else{const c=8&r?l:t[++a];if(8&r&&null!==e.attrs){if(!Xo(e.attrs,c,n)){if(ts(r))return!1;s=!0}continue}const u=ns(8&r?"class":l,i,Jo(e),n);if(-1===u){if(ts(r))return!1;s=!0;continue}if(""!==c){let e;e=u>o?"":i[u+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==$o(t,c,0)||2&r&&c!==e){if(ts(r))return!1;s=!0}}}}else{if(!s&&!ts(r)&&!ts(l))return!1;if(s&&ts(l))continue;s=!1,r=l|1&r}}return ts(r)||s}function ts(e){return 0==(1&e)}function ns(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let n=!1;for(;i<t.length;){const r=t[i];if(r===e)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let e=t[++i];for(;"string"==typeof e;)e=t[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function rs(e,t,n=!1){for(let r=0;r<t.length;r++)if(es(e,t[r],n))return!0;return!1}function is(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let t=0;t<e.length;t++)if(e[t]!==r[t])continue e;return!0}}return!1}function os(e,t){return e?":not("+t.trim()+")":t}function ss(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const t=e[++n];i+="["+s+(t.length>0?'="'+t+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||ts(s)||(t+=os(o,i),i=""),r=s,o=o||!ts(r);n++}return""!==i&&(t+=os(o,i)),t}const as={};function ls(e){cs(rt(),nt(),Ft()+e,ht())}function cs(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&jt(t,r,n)}else{const r=e.preOrderHooks;null!==r&&Qt(t,r,0,n)}Lt(n)}function us(e,t){return e<<17|t<<2}function hs(e){return e>>17&32767}function ds(e){return 2|e}function As(e){return(131068&e)>>2}function ps(e,t){return-131069&e|t<<2}function fs(e){return 1|e}const gs=(()=>Promise.resolve(null))();function ms(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const n=e.data[o];Ct(i),n.contentQueries(2,t[o],o)}}}function vs(e,t,n,r,i,o,s,a,l,c){const u=t.blueprint.slice();return u[0]=i,u[2]=140|r,Ye(u),u[3]=u[15]=e,u[8]=n,u[10]=s||e&&e[10],u[11]=a||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=o,u[16]=2==t.type?e[16]:u,u}function ys(e,t,n,r,i){let o=e.data[t];if(null===o)o=bs(e,t,n,r,i),Je.lFrame.inI18n&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const e=at();o.injectorIndex=null===e?-1:e.injectorIndex}return lt(o,!0),o}function bs(e,t,n,r,i){const o=st(),s=ct(),a=e.data[t]=function(e,t,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=a),null!==o&&(s?null==o.child&&null!==a.parent&&(o.child=a):null===o.next&&(o.next=a)),a}function _s(e,t,n,r){if(0===n)return-1;const i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function ws(e,t,n){It(t);try{const r=e.viewQuery;null!==r&&na(1,r,n);const i=e.template;null!==i&&Es(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&ms(e,t),e.staticViewQueries&&na(2,e.viewQuery,n);const o=e.components;null!==o&&function(e,t){for(let n=0;n<t.length;n++)Ys(e,t[n])}(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),r}finally{t[2]&=-5,Pt()}}function Cs(e,t,n,r){const i=t[2];if(256==(256&i))return;It(t);const o=ht();try{Ye(t),ft(e.bindingStartIndex),null!==n&&Es(e,t,n,2,r);const s=3==(3&i);if(!o)if(s){const n=e.preOrderCheckHooks;null!==n&&jt(t,n,null)}else{const n=e.preOrderHooks;null!==n&&Qt(t,n,0,null),Ht(t,0)}if(function(e){for(let t=go(e);null!==t;t=mo(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],r=n[3];0==(1024&n[2])&&Xe(r,1),n[2]|=1024}}}(t),function(e){for(let t=go(e);null!==t;t=mo(t))for(let e=me;e<t.length;e++){const n=t[e],r=n[1];We(n)&&Cs(r,n,r.template,n[8])}}(t),null!==e.contentQueries&&ms(e,t),!o)if(s){const n=e.contentCheckHooks;null!==n&&jt(t,n)}else{const n=e.contentHooks;null!==n&&Qt(t,n,1),Ht(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const r=n[e];if(r<0)Lt(~r);else{const i=r,o=n[++e],s=n[++e];yt(o,i),s(2,t[i])}}}finally{Lt(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)Ws(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&na(2,l,r),!o)if(s){const n=e.viewCheckHooks;null!==n&&jt(t,n)}else{const n=e.viewHooks;null!==n&&Qt(t,n,2),Ht(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Xe(t[3],-1))}finally{Pt()}}function Ss(e,t,n,r){const i=t[10],o=!ht(),s=ze(t);try{o&&!s&&i.begin&&i.begin(),s&&ws(e,t,r),Cs(e,t,n,r)}finally{o&&!s&&i.end&&i.end()}}function Es(e,t,n,r,i){const o=Ft(),s=2&r;try{Lt(-1),s&&t.length>ge&&cs(e,t,ge,ht()),Fe(s?2:0,i),n(r,i)}finally{Lt(o),Fe(s?3:1,i)}}function Is(e,t,n){if(be(t)){const r=t.directiveEnd;for(let i=t.directiveStart;i<r;i++){const t=e.data[i];t.contentQueries&&t.contentQueries(1,n[i],i)}}}function xs(e,t,n){Ze()&&(function(e,t,n,r){const i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||on(n,t),Qi(r,t);const s=n.initialInputs;for(let a=i;a<o;a++){const r=e.data[a],o=Ce(r);o&&Hs(t,n,r);const l=vn(t,e,a,n);Qi(l,t),null!==s&&Ks(0,a-i,l,r,0,s),o&&(Ge(n.index,t)[8]=l)}}(e,t,n,Ve(n,t)),128==(128&n.flags)&&function(e,t,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,s=Je.lFrame.currentDirectiveIndex;try{Lt(o);for(let n=r;n<i;n++){const r=e.data[n],i=t[n];bt(n),null===r.hostBindings&&0===r.hostVars&&null===r.hostAttrs||Ns(r,i)}}finally{Lt(-1),bt(s)}}(e,t,n))}function Ts(e,t,n=Ve){const r=t.localNames;if(null!==r){let i=t.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(t,e):e[s];e[i++]=a}}}function Bs(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=ks(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function ks(e,t,n,r,i,o,s,a,l,c){const u=ge+r,h=u+i,d=function(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:as);return n}(u,h),A="function"==typeof c?c():c;return d[1]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:A,incompleteFirstPass:!1}}function Ps(e,t,n){if(Ue(e))return e.selectRootElement(t,n===j.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}function Os(e,t,n,r){const i=ia(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&oa(e).push(r,i.length-1))}function Fs(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function Ls(e,t,n,r,i,o,s,a){const l=Ve(t,n);let c,u=t.inputs;var h;!a&&null!=u&&(c=u[r])?(la(e,n,c,r,i),_e(t)&&function(e,t){const n=Ge(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,i=null!=s?s(i,t.value||"",r):i,Ue(o)?o.setProperty(l,r,i):$t(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Ms(e,t,n,r){let i=!1;if(Ze()){const o=function(e,t,n){const r=e.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];rs(n,s.selectors,!1)&&(i||(i=[]),cn(on(n,t),e,s.type),Ce(s)?(Rs(e,n),i.unshift(s)):i.push(s))}return i}(e,t,n),s=null===r?null:{"":-1};if(null!==o){i=!0,js(n,e.data.length,o.length);for(let e=0;e<o.length;e++){const t=o[e];t.providersResolver&&t.providersResolver(t)}let r=!1,a=!1,l=_s(e,t,o.length,null);for(let i=0;i<o.length;i++){const c=o[i];n.mergedAttrs=Yt(n.mergedAttrs,c.hostAttrs),Qs(e,n,t,l,c),Us(l,c,s),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!r&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),r=!0),a||!u.ngOnChanges&&!u.ngDoC
1heck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(e,t){const n=t.directiveEnd,r=e.data,i=t.attrs,o=[];let s=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=r[l],n=e.inputs,c=null===i||Jo(t)?null:Gs(n,i);o.push(c),s=Fs(n,l,s),a=Fs(e.outputs,l,a)}null!==s&&(s.hasOwnProperty("class")&&(t.flags|=16),s.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=s,t.outputs=a}(e,n)}s&&function(e,t,n){if(t){const r=e.localNames=[];for(let e=0;e<t.length;e+=2){const i=n[t[e+1]];if(null==i)throw new g("301",`Export of name '${t[e+1]}' not found!`);r.push(t[e],i)}}}(n,r,s)}return n.mergedAttrs=Yt(n.mergedAttrs,n.attrs),i}function Ds(e,t,n,r,i,o){const s=o.hostBindings;if(s){let n=e.hostBindingOpCodes;null===n&&(n=e.hostBindingOpCodes=[]);const o=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(r,i,s)}}function Ns(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Rs(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Us(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ce(t)&&(n[""]=e)}}function js(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Qs(e,t,n,r,i){e.data[r]=i;const o=i.factory||(i.factory=Se(i.type)),s=new Gt(o,Ce(i),null);e.blueprint[r]=s,n[r]=s,Ds(e,t,0,r,_s(e,n,i.hostVars,as),i)}function Hs(e,t,n){const r=Ve(t,e),i=Bs(n),o=e[10],s=Xs(e,vs(e,i,null,n.onPush?64:16,r,t,o,o.createRenderer(r,n),null,null));e[t.index]=s}function Vs(e,t,n,r,i,o){const s=Ve(e,t);qs(t[11],s,o,e.value,n,r,i)}function qs(e,t,n,r,i,o,s){if(null==o)Ue(e)?e.removeAttribute(t,i,n):t.removeAttribute(i);else{const a=null==s?m(o):s(o,r||"",i);Ue(e)?e.setAttribute(t,i,a,n):n?t.setAttributeNS(n,i,a):t.setAttribute(i,a)}}function Ks(e,t,n,r,i,o){const s=o[t];if(null!==s){const e=r.setInput;for(let t=0;t<s.length;){const i=s[t++],o=s[t++],a=s[t++];null!==e?r.setInput(n,a,i,o):n[o]=a}}}function Gs(e,t){let n=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function zs(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function Ws(e,t){const n=Ge(t,e);if(We(n)){const e=n[1];80&n[2]?Cs(e,n,e.template,n[8]):n[5]>0&&$s(n)}}function $s(e){for(let n=go(e);null!==n;n=mo(n))for(let e=me;e<n.length;e++){const t=n[e];if(1024&t[2]){const e=t[1];Cs(e,t,e.template,t[8])}else t[5]>0&&$s(t)}const t=e[1].components;if(null!==t)for(let n=0;n<t.length;n++){const r=Ge(t[n],e);We(r)&&r[5]>0&&$s(r)}}function Ys(e,t){const n=Ge(t,e),r=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),ws(r,n,n[8])}function Xs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Js(e){for(;e;){e[2]|=64;const t=po(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function Zs(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=Vi(n),i=r[1];Ss(i,r,i.template,n)}}function ea(e,t,n){const r=t[10];r.begin&&r.begin();try{Cs(e,t,e.template,n)}catch(i){throw aa(t,i),i}finally{r.end&&r.end()}}function ta(e){Zs(e[8])}function na(e,t,n){Ct(0),t(e,n)}const ra=gs;function ia(e){return e[7]||(e[7]=[])}function oa(e){return e.cleanup||(e.cleanup=[])}function sa(e,t,n){return(null===e||Ce(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function aa(e,t){const n=e[9],r=n?n.get(Xi,null):null;r&&r.handleError(t)}function la(e,t,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],l=t[s],c=e.data[s];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}function ca(e,t,n){const r=He(t,e);_o(e[11],r,n)}function ua(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let s=0;s<t.length;s++){const e=t[s];"number"==typeof e?o=e:1==o?i=h(i,e):2==o&&(r=h(r,e+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function ha(e){const t=ji(e);ea(t[1],t,e)}function da(e){!function(e,t){if(0===e.flags&&e.clean==gs){let t;e.flags|=1,e.clean=new Promise(e=>t=e),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Zs(e)),2&e.flags){e.flags&=-3;const t=e.playerHandler;t&&t.flushPlayers()}e.clean=gs,t(null)})}}(Js(ji(e))[8])}const Aa=new Ln("INJECTOR",-1);class pa{get(e,t=sr){if(t===sr){const t=new Error(`NullInjectorError: No provider for ${u(e)}!`);throw t.name="NullInjectorError",t}return t}}const fa=new Ln("Set Injector scope."),ga={},ma={};let va;function ya(){return void 0===va&&(va=new pa),va}function ba(e,t=null,n=null,r){const i=_a(e,t,n,r);return i._resolveInjectorDefTypes(),i}function _a(e,t=null,n=null,r){return new wa(e,n,t||ya(),r)}class wa{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];t&&Gn(t,n=>this.processProvider(n,e,t)),Gn([e],e=>this.processInjectorType(e,[],i)),this.records.set(Aa,Ea(void 0,this));const o=this.records.get(fa);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:u(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;
1try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=sr,n=P.Default){this.assertNotDestroyed();const r=hr(this);try{if(!(n&P.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(i=e)||"object"==typeof i&&i instanceof Ln)&&S(e);t=n&&this.injectableDefInScope(n)?Ea(Ca(e),ga):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&P.Self?ya():this.parent).get(e,t=n&P.Optional&&t===sr?null:t)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(u(e)),r)throw o;return function(e,t,n,r){const i=e.ngTempTokenPath;throw t[lr]&&i.unshift(t[lr]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=u(t);if(Array.isArray(t))i=t.map(u).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):u(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(ar,"\n  ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(o,e,"R3InjectorError",this.source)}throw o}finally{hr(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(u(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=p(e)))return!1;let r=I(e);const i=null==r&&e.ngModule||void 0,o=void 0===i?e:i,s=-1!==n.indexOf(o);if(void 0!==i&&(r=I(i)),null==r)return!1;if(null!=r.imports&&!s){let e;n.push(o);try{Gn(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:r}=e[t];Gn(r,e=>this.processProvider(e,n,r||z))}}this.injectorDefTypes.add(o);const a=Se(o)||(()=>new o);this.records.set(o,Ea(a,ga));const l=r.providers;if(null!=l&&!s){const t=e;Gn(l,e=>this.processProvider(e,t,l))}return void 0!==i&&void 0!==e.providers}processProvider(e,t,n){let r=xa(e=p(e))?e:p(e&&e.provide);const i=function(e,t,n){return Ia(e)?Ea(void 0,e.useValue):Ea(Sa(e),ga)}(e);if(xa(e)||!0!==e.multi)this.records.get(r);else{let t=this.records.get(r);t||(t=Ea(void 0,ga,!0),t.factory=()=>gr(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,i)}hydrate(e,t){var n;return t.value===ga&&(t.value=ma,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=p(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Ca(e){const t=S(e),n=null!==t?t.factory:Se(e);if(null!==n)return n;if(e instanceof Ln)throw new Error(`Token ${u(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=$n(t,"?");throw new Error(`Can't resolve all parameters for ${u(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[x]||e[B]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Sa(e,t,n){let r;if(xa(e)){const t=p(e);return Se(t)||Ca(t)}if(Ia(e))r=()=>p(e.useValue);else if((i=e)&&i.useFactory)r=()=>e.useFactory(...gr(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>Ar(p(e.useExisting));else{const t=p(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Se(t)||Ca(t);r=()=>new t(...gr(e.deps))}var i;return r}function Ea(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ia(e){return null!==e&&"object"==typeof e&&cr in e}function xa(e){return"function"==typeof e}function Ta(e,t,n){return ba({name:n},t,e,n)}const Ba=Ta;let ka=(()=>{class e{static create(e,t){return Array.isArray(e)?Ba(e,t,""):Ba(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=sr,e.NULL=new pa,e.\u0275prov=_({token:e,providedIn:"any",factory:()=>Ar(Aa)}),e.__NG_ELEMENT_ID__=-1,e})();function Pa(e){Qa(e);const t=Ri(e);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function Oa(e){Qa(e);const t=Ri(e);return null===t?null:t.lView[8]}function Fa(e){const t=Ri(e);if(null===t)return null;let n,r=t.lView;for(;2===r[1].type&&(n=po(r));)r=n;return 512&r[2]?null:r[8]}function La(e){return[...fo(e).components]}function Ma(e){const t=Ri(e);return null===t?ka.NULL:new _n(t.lView[1].data[t.nodeIndex],t.lView)}function Da(e){if(e instanceof Text)return[];const t=Ri(e);if(null===t)return[];const n=t.lView,r=n[1],i=t.nodeIndex;return(null==r?void 0:r.data[i])?(void 0===t.directives&&(t.directives=zi(i,n,!1)),null===t.directives?[]:[...t.directives]):[]}function Na(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const n=de(t);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?N.OnPush:N.Default};const r=Ae(t);return r?{inputs:r.inputs,outputs:r.outputs}:null}function Ra(e){return Ri(e).native}function Ua(e){Qa(e);const t=Ri(e);if(null===t)return[];const n=t.lView,r=n[7],i=n[1].cleanup,o=[];if(i&&r)for(let s=0;s<i.length;){const t=i[s++],a=i[s++];if("string"==typeof t){const l=t,c=Qe(n[a]),u=r[i[s++]],h=i[s++],d="boolean"==typeof h||h>=0?"dom":"output",A="boolean"==typeof h&&h;e==c&&o.push({element:e,name:l,callback:u,useCapture:A,type:d})}}return o.sort(ja),o}function ja(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function Qa(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}
1function Ha(e){da(e),La(e).forEach(e=>ha(e))}let Va=!1;function qa(){Va||(Va=!0,Ka("\u0275setProfiler",Oe),Ka("getDirectiveMetadata",Na),Ka("getComponent",Pa),Ka("getContext",Oa),Ka("getListeners",Ua),Ka("getOwningComponent",Fa),Ka("getHostElement",Ra),Ka("getInjector",Ma),Ka("getRootComponents",La),Ka("getDirectives",Da),Ka("applyChanges",Ha))}function Ka(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=K;if(n){let r=n.ng;r||(r=n.ng={}),r[e]=t}}}function Ga(e,t={}){const n=t.rendererFactory||je,r=t.sanitizer||null,i=de(e);i.type!=e&&(i.type=e);const o=i.selectors[0][0],s=Ps(n.createRenderer(null,null),t.host||o,i.encapsulation),a=i.onPush?576:528,l=$a(t.scheduler,t.playerHandler),c=n.createRenderer(s,i),u=ks(0,null,null,1,0,null,null,null,null,null),h=vs(null,u,l,a,null,null,n,c,null,t.injector||null);let d;It(h);try{n.begin&&n.begin(),d=Wa(za(s,i,h,n,c,r),i,h,l,t.hostFeatures||null),ws(u,h,null),Cs(u,h,null,null)}finally{Pt(),n.end&&n.end()}return d}function za(e,t,n,r,i,o){const s=n[1];n[20]=e;const a=ys(s,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(ua(a,l,!0),null!==e&&(zt(i,e,l),null!==a.classes&&Wo(i,e,a.classes),null!==a.styles&&zo(i,e,a.styles)));const c=r.createRenderer(e,t),u=vs(n,Bs(t),null,t.onPush?64:16,n[20],a,r,c,o||null,null);return s.firstCreatePass&&(cn(on(a,n),s,t.type),Rs(s,a),js(a,n.length,1)),Xs(n,u),n[20]=u}function Wa(e,t,n,r,i){const o=n[1],s=function(e,t,n){const r=ot();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Qs(e,r,t,_s(e,t,1,null),n));const i=vn(t,e,r.directiveStart,r);Qi(i,t);const o=Ve(r,t);return o&&Qi(o,t),i}(o,n,t);if(r.components.push(s),e[8]=s,i&&i.forEach(e=>e(s,t)),t.contentQueries){const e=ot();t.contentQueries(1,s,e.directiveStart)}const a=ot();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Lt(a.index),Ds(n[1],a,0,a.directiveStart,a.directiveEnd,t),Ns(t,s)),s}function $a(e,t){return{components:[],scheduler:e||oo,clean:ra,playerHandler:t||null,flags:0}}function Ya(e,t){Ut(Vi(e)[1],ot())}function Xa(e){return fo(e).clean}function Ja(e){return Object.getPrototypeOf(e.prototype).constructor}function Za(e){let t=Ja(e.type),n=!0;const r=[e];for(;t;){let i;if(Ce(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);const t=e;t.inputs=el(e.inputs),t.declaredInputs=el(e.declaredInputs),t.outputs=el(e.outputs);const n=i.hostBindings;n&&rl(e,n);const o=i.viewQuery,s=i.contentQueries;if(o&&tl(e,o),s&&nl(e,s),c(e.inputs,i.inputs),c(e.declaredInputs,i.declaredInputs),c(e.outputs,i.outputs),Ce(i)&&i.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(i.data.animation)}}const t=i.features;if(t)for(let r=0;r<t.length;r++){const i=t[r];i&&i.ngInherit&&i(e),i===Za&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Yt(i.hostAttrs,n=Yt(n,i.hostAttrs))}}(r)}function el(e){return e===G?{}:e===z?[]:e}function tl(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function nl(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,i)=>{t(e,r,i),n(e,r,i)}:t}function rl(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}const il=["providersResolver"],ol=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function sl(e){let t,n=Ja(e.type);t=Ce(e)?n.\u0275cmp:n.\u0275dir;const r=e;for(const i of il)r[i]=t[i];if(Ce(t))for(const i of ol)r[i]=t[i]}let al=null;function ll(){if(!al){const e=K.Symbol;if(e&&e.iterator)al=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(al=n)}}}return al}function cl(e,t){const n=hl(e),r=hl(t);if(n&&r)return function(e,t,n){const r=e[ll()](),i=t[ll()]();for(;;){const e=r.next(),t=i.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,cl);{const i=e&&("object"==typeof e||"function"==typeof e),o=t&&("object"==typeof t||"function"==typeof t);return!(n||!i||r||!o)||Object.is(e,t)}}class ul{constructor(e){this.wrapped=e}static wrap(e){return new ul(e)}static unwrap(e){return ul.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof ul}}function hl(e){return!!dl(e)&&(Array.isArray(e)||!(e instanceof Map)&&ll()in e)}function dl(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Al(e,t,n){return e[t]=n}function pl(e,t){return e[t]}function fl(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function gl(e,t,n,r){const i=fl(e,t,n);return fl(e,t+1,r)||i}function ml(e,t,n,r,i){const o=gl(e,t,n,r);return fl(e,t+2,i)||o}function vl(e,t,n,r,i,o){const s=gl(e,t,n,r);return gl(e,t+2,i,o)||s}function yl(e,t,n,r){const i=nt();return fl(i,gt(),t)&&(rt(),Vs(Mt(),i,e,t,n,r)),yl}function bl(e,t){let n=!1,r=pt();for(let o=1;o<t.length;o+=2)n=fl(e,r++,t[o])||n;if(ft(r),!n)return as;let i=t[0];for(let o=1;o<t.length;o+=2)i+=m(t[o])+t[o+1];return i}function _l(e,t,n,r){return fl(e,gt(),n)?t+m(n)+r:as}function wl(e,t,n,r,i,o){const s=gl(e,pt(),n,i);return mt(2),s?t+m(n)+r+m(i)+o:as}function Cl(e,t,n,r,i,o,s,a){const l=ml(e,pt(),n,i,s);return mt(3),l?t+m(n)+r+m(i)+o+m(s)+a:as}function Sl(e,t,n,r,i,o,s,a,l,c){const u=vl(e,pt(),n,i,s,l);return mt(4),u?t+m(n)+r+m(i)+o+m(s)+a+m(l)+c:as}function El(e,t,n,r,i,o,s,a,l,c,u,h){const d=pt();let A=vl(e,d,n,i,s,l);return A=fl(e,d+4,u)||A,mt(5),A?t+m(n)+r+m(i)+o+m(s)+a+m(l)+c+m(u)+h:as}function Il(e,t,n,r,i,o,s,a,l,c,u,h,d,A){const p=pt();let f=vl(e,p,n,i,s,l);return f=gl(e,p+4,u,d)||f,mt(6),f?t+m(n)+r+m(i)+o+m(s)+a+m(l)+c+m(u)+h+m(d)+A:as}function xl(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f){const g=pt();let v=vl(e,g,n,i,s,l);return v=ml(e,g+4,u,d,p)||v,mt(7),v?t+m(n)+r+m(i)+o+m(s)+a+m(l)+c+m(u)+h+m(d)+A+m(p)+f:as}function Tl(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g,v){const y=pt();let b=vl(e,y,n,i,s,l);return b=vl(e,y+4,u,d,p,g)||b,mt(8),b?t+m(n)+r+m(i)+o+m(s)+a+m(l)+c+m(u)+h+m(d)+A+m(p)+f+m(g)+v:as}function Bl(e,t,n,r,i,o){const s=nt(),a=_l(s,t,n,r);return a!==as&&Vs(Mt(),s,e,a,i,o),Bl}function kl(e,t,n,r,i,o,s,a){const l=nt(),c=wl(l,t,n,r,i,o);return c!==as&&Vs(Mt(),l,e,c,s,a),kl}function Pl(e,t,n,r,i,o,s,a,l,c){const u=nt(),h=Cl(u,t,n,r,i,o,s,a);return h!==as&&Vs(Mt(),u,e,h,l,c),Pl}function Ol(e,t,n,r,i,o,s,a,l,c,u,h){const d=nt(),A=Sl(d,t,n,r,i,o,s,a,l,c);return A!==as&&Vs(Mt(),d,e,A,u,h),Ol}function Fl(e,t,n,r,i,o,s,a,l,c,u,h,d,A){const p=nt(),f=El(p,t,n,r,i,o,s,a,l,c,u,h);return f!==as&&Vs(Mt(),p,e,f,d,A),Fl}function Ll(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f){const g=nt(),m=Il(g,t,n,r,i,o,s,a,l,c,u,h,d,A);return m!==as&&Vs(Mt(),g,e,m,p,f),Ll}function Ml(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g,m){const v=nt(),y=xl(v,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f);return y!==as&&Vs(Mt(),v,e,y,g,m),Ml}function Dl(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g,m,v,y){const b=nt(),_=Tl(b,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g,m);return _!==as&&Vs(Mt(),b,e,_,v,y),Dl}function Nl(e,t,n,r){const i=nt(),o=bl(i,t);return o!==as&&Vs(Mt(),i,e,o,n,r),Nl}function Rl(e,t,n,r,i,o,s,a){const l=nt(),c=rt(),u=e+ge,h=c.firstCreatePass?function(e,t,n,r,i,o,s,a,l){const c=t.consts,u=ys(t,e,4,s||null,$e(c,a));Ms(t,n,u,$e(c,l)),Ut(t,u);const h=u.tViews=ks(2,u,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),h.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,n,r,i,o,s):c.data[u];lt(h,!1);const d=l[11].createComment("");Uo(c,l,d,h),Qi(d,l),Xs(l,l[u]=zs(d,l,d,h)),we(h)&&xs(c,l,h),null!=s&&Ts(l,h,a)}function Ul(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function jl(e){return Ke(Je.lFrame.contextLView,ge+e)}const Ql={"\u0275\u0275defineInjectable":_,"\u0275\u0275defineInjector":C,"\u0275\u0275inject":Ar,"\u0275\u0275invalidFactoryDep":pr,resolveForwardRef:p},Hl=l({provide:String,useValue:l});function Vl(e){return void 0!==e.useClass}function ql(e){return void 0!==e.useFactory}const Kl=Tn("Injectable",void 0,void 0,void 0,(e,t)=>zl(e,t)),Gl=function(e,t){let n=null,r=null;e.hasOwnProperty(x)||Object.defineProperty(e,x,{get:()=>(null===n&&(n=Hn().compileInjectable(Ql,`ng:///${e.name}/\u0275prov.js`,function(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(Vl(n)||ql(n))&&void 0!==n.deps&&(r.deps=xr(n.deps)),Vl(n)?r.useClass=n.useClass:function(e){return Hl in e}(n)?r.useValue=n.useValue:ql(n)?r.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))),n)}),e.hasOwnProperty(Z)||Object.defineProperty(e,Z,{get:()=>{if(null===r){const t=Hn();r=t.compileFactory(Ql,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Ir(e),target:t.FactoryTarget.Injectable})}return r},configurable:!0})},zl=Gl;function Wl(e){return e.length>1?" ("+function(e){const t=[];for(let n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(e=>u(e.token)).join(" -> ")+")":""}function $l(e,t,n,r){const i=[t],o=n(i),s=r?function(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r.ngOriginalError=t,r}(o,r):Error(o);return s.addKey=Yl,s.keys=i,s.injectors=[e],s.constructResolvingMessage=n,s.ngOriginalError=r,s}function Yl(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Xl(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const e=t[r];n.push(e&&0!=e.length?e.map(u).join(" "):"?")}return Error("Cannot resolve all parameters for '"+u(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+u(e)+"' is decorated with Injectable.")}class Jl{constructor(e,t){if(this.token=e,this.id=t,!e)throw new Error("Token must be defined!");this.displayName=u(this.token)}static get(e){return ec.get(p(e))}static get numberOfKeys(){return ec.numberOfKeys}}class Zl{constructor(){this._allKeys=new Map}get(e){if(e instanceof Jl)return e;if(this._allKeys.has(e))return this._allKeys.get(e);const t=new Jl(e,Jl.numberOfKeys);return this._allKeys.set(e,t),t}get numberOfKeys(){return this._allKeys.size}}const ec=new Zl;class tc{constructor(e){this.reflectionCapabilities=e}updateCapabilities(e){this.reflectionCapabilities=e}factory(e){return this.reflectionCapabilities.factory(e)}parameters(e){return this.reflectionCapabilities.parameters(e)}annotations(e){return this.reflectionCapabilities.annotations(e)}propMetadata(e){return this.reflectionCapabilities.propMetadata(e)}hasLifecycleHook(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)}getter(e){return this.reflectionCapabilities.getter(e)}setter(e){return this.reflectionCapabilities.setter(e)}method(e){return this.reflectionCapabilities.method(e)}importUri(e){return this.reflectionCapabilities.importUri(e)}resourceUri(e){return this.reflectionCapabilities.resourceUri(e)}resolveIdentifier(e,t,n,r){return this.reflectionCapabilities.resolveIdentifier(e,t,n,r)}resolveEnum(e,t){return this.reflectionCapabilities.resolveEnum(e,t)}}const nc=new tc(new rr);class rc{constructor(e,t,n){this.key=e,this.optional=t,this.visibility=n}static fromKey(e){return new rc(e,!1,null)}}const ic=[];class oc{constructor(e,t,n){this.key=e,this.resolvedFactories=t,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}class sc{constructor(e,t){this.factory=e,this.dependencies=t}}function ac(e){let t,n;if(e.useClass){const r=p(e.useClass);t=nc.factory(r),n=hc(r)}else e.useExisting?(t=e=>e,n=[rc.fromKey(Jl.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){const n=t.map(e=>[e]);return t.map(t=>dc(e,t,n))}return hc(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=ic);return new sc(t,n)}function lc(e){return new oc(Jl.get(e.provide),[ac(e)],e.multi||!1)}function cc(e){const t=function(e,t){for(let n=0;n<e.length;n++){const r=e[n],i=t.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw Error(`Cannot mix multi providers and regular providers, got: ${i} ${r}`);if(r.multiProvider)for(let e=0;e<r.resolvedFactories.length;e++)i.resolvedFactories.push(r.resolvedFactories[e]);else t.set(r.key.id,r)}else{let e;e=r.multiProvider?new oc(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,e)}}return t}(uc(e,[]).map(lc),new Map);return Array.from(t.values())}
1function uc(e,t){return e.forEach(e=>{if(e instanceof Vn)t.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)t.push(e);else{if(!Array.isArray(e))throw Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`);uc(e,t)}}),t}function hc(e){const t=nc.parameters(e);if(!t)return[];if(t.some(e=>null==e))throw Xl(e,t);return t.map(n=>dc(e,n,t))}function dc(e,t,n){let r=null,i=!1;if(!Array.isArray(t))return Ac(t instanceof yr?t.token:t,i,null);let o=null;for(let s=0;s<t.length;++s){const e=t[s];e instanceof Vn?r=e:e instanceof yr?r=e.token:e instanceof br?i=!0:e instanceof _r||e instanceof wr?o=e:e instanceof Ln&&(r=e)}if(r=p(r),null!=r)return Ac(r,i,o);throw Xl(e,n)}function Ac(e,t,n){return new rc(Jl.get(e),t,n)}const pc={};class fc{static resolve(e){return cc(e)}static resolveAndCreate(e,t){const n=fc.resolve(e);return fc.fromResolvedProviders(n,t)}static fromResolvedProviders(e,t){return new gc(e,t)}}let gc=(()=>{class e{constructor(e,t){this._constructionCounter=0,this._providers=e,this.parent=t||null;const n=e.length;this.keyIds=[],this.objs=[];for(let r=0;r<n;r++)this.keyIds[r]=e[r].key.id,this.objs[r]=pc}get(e,t=sr){return this._getByKey(Jl.get(e),null,t)}resolveAndCreateChild(e){const t=fc.resolve(e);return this.createChildFromResolved(t)}createChildFromResolved(t){const n=new e(t);return n.parent=this,n}resolveAndInstantiate(e){return this.instantiateResolved(fc.resolve([e])[0])}instantiateResolved(e){return this._instantiateProvider(e)}getProviderAtIndex(e){if(e<0||e>=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(e);return this._providers[e]}_new(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw $l(this,e.key,function(e){return`Cannot instantiate cyclic dependency!${Wl(e)}`});return this._instantiateProvider(e)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(e){if(e.multiProvider){const t=[];for(let n=0;n<e.resolvedFactories.length;++n)t[n]=this._instantiate(e,e.resolvedFactories[n]);return t}return this._instantiate(e,e.resolvedFactories[0])}_instantiate(e,t){const n=t.factory;let r,i;try{r=t.dependencies.map(e=>this._getByReflectiveDependency(e))}catch(s){throw s.addKey&&s.addKey(this,e.key),s}try{i=n(...r)}catch(s){throw $l(this,e.key,function(e){const t=u(e[0].token);return`${o.message}: Error during instantiation of ${t}!${Wl(e)}.`},o=s)}var o;return i}_getByReflectiveDependency(e){return this._getByKey(e.key,e.visibility,e.optional?null:sr)}_getByKey(t,n,r){return t===e.INJECTOR_KEY?this:n instanceof _r?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,n)}_getObjByKeyId(e){for(let t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===e)return this.objs[t]===pc&&(this.objs[t]=this._new(this._providers[t])),this.objs[t];return pc}_throwOrNull(e,t){if(t!==sr)return t;throw function(e,t){return $l(e,t,function(e){return`No provider for ${u(e[0].token)}!${Wl(e)}`})}(this,e)}_getByKeySelf(e,t){const n=this._getObjByKeyId(e.id);return n!==pc?n:this._throwOrNull(e,t)}_getByKeyDefault(t,n,r){let i;for(i=r instanceof wr?this.parent:this;i instanceof e;){const e=i,n=e._getObjByKeyId(t.id);if(n!==pc)return n;i=e.parent}return null!==i?i.get(t.token,n):this._throwOrNull(t,n)}get displayName(){return`ReflectiveInjector(providers: [${function(e,t){const n=[];for(let r=0;r<e._providers.length;++r)n[r]=' "'+e.getProviderAtIndex(r).key.displayName+'" ';return n}(this).join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=Jl.get(ka),e})();function mc(e,t=P.Default){const n=nt();return null===n?Ar(e,t):An(ot(),n,p(e),t)}function vc(){throw new Error("invalid")}function yc(e,t,n){const r=nt();return fl(r,gt(),t)&&Ls(rt(),Mt(),r,e,t,r[11],n,!1),yc}function bc(e,t,n,r,i){const o=i?"class":"style";la(e,n,t.inputs[o],o,r)}function _c(e,t,n,r){const i=nt(),o=rt(),s=ge+e,a=i[11],l=i[s]=Co(a,t,Je.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,r,i,o,s){const a=t.consts,l=ys(t,e,2,i,$e(a,o));return Ms(t,n,l,$e(a,s)),null!==l.attrs&&ua(l,l.attrs,!1),null!==l.mergedAttrs&&ua(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,o,i,0,t,n,r):o.data[s];lt(c,!0);const u=c.mergedAttrs;null!==u&&zt(a,l,u);const h=c.classes;null!==h&&Wo(a,l,h);const d=c.styles;null!==d&&zo(a,l,d),64!=(64&c.flags)&&Uo(o,i,l,c),0===Je.lFrame.elementDepthCount&&Qi(l,i),Je.lFrame.elementDepthCount++,we(c)&&(xs(o,i,c),Is(o,c,i)),null!==r&&Ts(i,c)}function wc(){let e=ot();ct()?ut():(e=e.parent,lt(e,!1));const t=e;Je.lFrame.elementDepthCount--;const n=rt();n.firstCreatePass&&(Ut(n,e),be(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&bc(n,t,nt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&bc(n,t,nt(),t.stylesWithoutHost,!1)}function Cc(e,t,n,r){_c(e,t,n,r),wc()}function Sc(e,t,n){const r=nt(),i=rt(),o=e+ge,s=i.firstCreatePass?function(e,t,n,r,i){const o=t.consts,s=$e(o,r),a=ys(t,e,8,"ng-container",s);return null!==s&&ua(a,s,!0),Ms(t,n,a,$e(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}
1(o,i,r,t,n):i.data[o];lt(s,!0);const a=r[o]=r[11].createComment("");Uo(i,r,a,s),Qi(a,r),we(s)&&(xs(i,r,s),Is(i,s,r)),null!=n&&Ts(r,s)}function Ec(){let e=ot();const t=rt();ct()?ut():(e=e.parent,lt(e,!1)),t.firstCreatePass&&(Ut(t,e),be(e)&&t.queries.elementEnd(e))}function Ic(e,t,n){Sc(e,t,n),Ec()}function xc(){return nt()}function Tc(e){return!!e&&"function"==typeof e.then}function Bc(e){return!!e&&"function"==typeof e.subscribe}const kc=Bc;function Pc(e,t,n,r){const i=nt(),o=rt(),s=ot();return Fc(o,i,i[11],s,e,t,!!n,r),Pc}function Oc(e,t){const n=ot(),r=nt(),i=rt();return Fc(i,r,sa(_t(i.data),n,r),n,e,t,!1),Oc}function Fc(e,t,n,r,i,o,s,a){const l=we(r),c=e.firstCreatePass&&oa(e),u=t[8],h=ia(t);let d=!0;if(3&r.type||a){const A=Ve(r,t),p=a?a(A):A,f=h.length,g=a?e=>a(Qe(e[r.index])):r.index;if(Ue(n)){let s=null;if(!a&&l&&(s=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const e=i[o];if(e===n&&i[o+1]===r){const e=t[7],n=i[o+2];return e.length>n?e[n]:null}"string"==typeof e&&(o+=2)}return null}(e,t,i,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,d=!1;else{o=Mc(r,t,u,o,!1);const e=n.listen(p,i,o);h.push(o,e),c&&c.push(i,g,f,f+1)}}else o=Mc(r,t,u,o,!0),p.addEventListener(i,o,s),h.push(o),c&&c.push(i,g,f,s)}else o=Mc(r,t,u,o,!1);const A=r.outputs;let p;if(d&&null!==A&&(p=A[i])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=t[p[n]][p[n+1]].subscribe(o),s=h.length;h.push(o,e),c&&c.push(i,r.index,s,-(s+1))}}}function Lc(e,t,n,r){try{return Fe(6,t,n),!1!==n(r)}catch(i){return aa(e,i),!1}finally{Fe(7,t,n)}}function Mc(e,t,n,r,i){return function o(s){if(s===Function)return r;const a=2&e.flags?Ge(e.index,t):t;0==(32&t[2])&&Js(a);let l=Lc(t,n,r,s),c=o.__ngNextListenerFn__;for(;c;)l=Lc(t,n,c,s)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Dc(e=1){return Ot(e)}function Nc(e,t){let n=null;const r=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let i=0;i<t.length;i++){const o=t[i];if("*"!==o){if(null===r?rs(e,o,!0):is(r,o))return i}else n=i}return n}function Rc(e){const t=nt()[16][6];if(!t.projection){const n=t.projection=$n(e?e.length:1,null),r=n.slice();let i=t.child;for(;null!==i;){const t=e?Nc(i,e):0;null!==t&&(r[t]?r[t].projectionNext=i:n[t]=i,r[t]=i),i=i.next}}}function Uc(e,t=0,n){const r=nt(),i=rt(),o=ys(i,ge+e,16,null,n||null);null===o.projection&&(o.projection=t),ut(),64!=(64&o.flags)&&function(e,t,n){Go(t[11],0,t,n,To(e,n,t),Lo(n.parent||t[6],n,t))}(i,r,o)}function jc(e,t,n){return Qc(e,"",t,"",n),jc}function Qc(e,t,n,r,i){const o=nt(),s=_l(o,t,n,r);return s!==as&&Ls(rt(),Mt(),o,e,s,o[11],i,!1),Qc}function Hc(e,t,n,r,i,o,s){const a=nt(),l=wl(a,t,n,r,i,o);return l!==as&&Ls(rt(),Mt(),a,e,l,a[11],s,!1),Hc}function Vc(e,t,n,r,i,o,s,a,l){const c=nt(),u=Cl(c,t,n,r,i,o,s,a);return u!==as&&Ls(rt(),Mt(),c,e,u,c[11],l,!1),Vc}function qc(e,t,n,r,i,o,s,a,l,c,u){const h=nt(),d=Sl(h,t,n,r,i,o,s,a,l,c);return d!==as&&Ls(rt(),Mt(),h,e,d,h[11],u,!1),qc}function Kc(e,t,n,r,i,o,s,a,l,c,u,h,d){const A=nt(),p=El(A,t,n,r,i,o,s,a,l,c,u,h);return p!==as&&Ls(rt(),Mt(),A,e,p,A[11],d,!1),Kc}function Gc(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p){const f=nt(),g=Il(f,t,n,r,i,o,s,a,l,c,u,h,d,A);return g!==as&&Ls(rt(),Mt(),f,e,g,f[11],p,!1),Gc}function zc(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g){const m=nt(),v=xl(m,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f);return v!==as&&Ls(rt(),Mt(),m,e,v,m[11],g,!1),zc}function Wc(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g,m,v){const y=nt(),b=Tl(y,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g,m);return b!==as&&Ls(rt(),Mt(),y,e,b,y[11],v,!1),Wc}function $c(e,t,n){const r=nt(),i=bl(r,t);return i!==as&&Ls(rt(),Mt(),r,e,i,r[11],n,!1),$c}function Yc(e,t,n,r,i){const o=e[n+1],s=null===t;let a=r?hs(o):As(o),l=!1;for(;0!==a&&(!1===l||s);){const n=e[a+1];Xc(e[a],t)&&(l=!0,e[a+1]=r?fs(n):ds(n)),a=r?hs(n):As(n)}l&&(e[n+1]=r?ds(o):fs(o))}function Xc(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Jn(e,t)>=0}const Jc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0}
1;function Zc(e){return e.substring(Jc.key,Jc.keyEnd)}function eu(e){return e.substring(Jc.value,Jc.valueEnd)}function tu(e,t){const n=Jc.textEnd;return n===t?-1:(t=Jc.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Jc.key=t,n),iu(e,t,n))}function nu(e,t){const n=Jc.textEnd;let r=Jc.key=iu(e,t,n);return n===r?-1:(r=Jc.keyEnd=function(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=ou(e,r,n),r=Jc.value=iu(e,r,n),r=Jc.valueEnd=function(e,t,n){let r=-1,i=-1,o=-1,s=t,a=s;for(;s<n;){const l=e.charCodeAt(s++);if(59===l)return a;34===l||39===l?a=s=su(e,l,s,n):t===s-4&&85===o&&82===i&&76===r&&40===l?a=s=su(e,41,s,n):l>32&&(a=s),o=i,i=r,r=-33&l}return a}(e,r,n),ou(e,r,n))}function ru(e){Jc.key=0,Jc.keyEnd=0,Jc.value=0,Jc.valueEnd=0,Jc.textEnd=e.length}function iu(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function ou(e,t,n,r){return(t=iu(e,t,n))<n&&t++,t}function su(e,t,n,r){let i=-1,o=n;for(;o<r;){const n=e.charCodeAt(o++);if(n==t&&92!==i)return o;i=92==n&&92===i?0:n}throw new Error}function au(e,t,n){return Au(e,t,n,!1),au}function lu(e,t){return Au(e,t,null,!0),lu}function cu(e){pu(yu,uu,e,!1)}function uu(e,t){for(let n=function(e){return ru(e),nu(e,iu(e,0,Jc.textEnd))}(t);n>=0;n=nu(t,n))yu(e,Zc(t),eu(t))}function hu(e){pu(Yn,du,e,!0)}function du(e,t){for(let n=function(e){return ru(e),tu(e,iu(e,0,Jc.textEnd))}(t);n>=0;n=tu(t,n))Yn(e,Zc(t),!0)}function Au(e,t,n,r){const i=nt(),o=rt(),s=mt(2);o.firstUpdatePass&&gu(o,e,s,r),t!==as&&fl(i,s,t)&&bu(o,o.data[Ft()],i,i[11],e,i[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=u(Wr(e)))),e}(t,n),r,s)}function pu(e,t,n,r){const i=rt(),o=mt(2);i.firstUpdatePass&&gu(i,null,o,r);const s=nt();if(n!==as&&fl(s,o,n)){const a=i.data[Ft()];if(Cu(a,r)&&!fu(i,o)){let e=r?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=h(e,n||"")),bc(i,a,s,n,r)}else!function(e,t,n,r,i,o,s,a){i===as&&(i=z);let l=0,c=0,u=0<i.length?i[0]:null,h=0<o.length?o[0]:null;for(;null!==u||null!==h;){const d=l<i.length?i[l+1]:void 0,A=c<o.length?o[c+1]:void 0;let p,f=null;u===h?(l+=2,c+=2,d!==A&&(f=h,p=A)):null===h||null!==u&&u<h?(l+=2,f=u):(c+=2,f=h,p=A),null!==f&&bu(e,t,n,r,f,p,s,a),u=l<i.length?i[l]:null,h=c<o.length?o[c]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function(e,t,n){if(null==n||""===n)return z;const r=[],i=Wr(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&e(r,o,i[o]);else"string"==typeof i&&t(r,i);return r}(e,t,n),r,o)}}function fu(e,t){return t>=e.expandoStartIndex}function gu(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[Ft()],s=fu(e,n);Cu(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const i=_t(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=vu(n=mu(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=mu(i,e,t,n,r),null===o){let n=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==As(r))return e[hs(r)]}(e,t,r);void 0!==n&&Array.isArray(n)&&(n=mu(null,e,t,n[1],r),n=vu(n,t.attrs,r),function(e,t,n,r){e[hs(n?t.classBindings:t.styleBindings)]=r}(e,t,r,n))}else o=function(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++)r=vu(r,e[o].hostAttrs,n);return vu(r,t.attrs,n)}(e,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),n}(i,o,t,r),function(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=hs(s),l=As(s);e[r]=n;let c,u=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||Jn(e,c)>0)&&(u=!0)}else c=n;if(i)if(0!==l){const t=hs(e[a+1]);e[r+1]=us(t,a),0!==t&&(e[t+1]=ps(e[t+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=us(a,0),0!==a&&(e[a+1]=ps(e[a+1],r)),a=r;else e[r+1]=us(l,0),0===a?a=r:e[l+1]=ps(e[l+1],r),l=r;u&&(e[r+1]=ds(e[r+1])),Yc(e,c,r,!0),Yc(e,c,r,!1),function(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Jn(o,t)>=0&&(n[r+1]=fs(n[r+1]))}(t,c,e,r,o),s=us(a,l),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function mu(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;
1for(-1===a?a=n.directiveStart:a++;a<s&&(o=t[a],r=vu(r,o.hostAttrs,i),o!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function vu(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let o=0;o<t.length;o++){const s=t[o];"number"==typeof s?i=s:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Yn(e,s,!!n||t[++o]))}return void 0===e?null:e}function yu(e,t,n){Yn(e,t,Wr(n))}function bu(e,t,n,r,i,o,s,a){if(!(3&t.type))return;const l=e.data,c=l[a+1];wu(1==(1&c)?_u(l,t,n,i,As(c),s):void 0)||(wu(o)||2==(2&c)&&(o=_u(l,null,n,i,a,s)),function(e,t,n,r,i){const o=Ue(e);if(t)i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r);else{let t=-1===r.indexOf("-")?void 0:uo.DashCase;if(null==i)o?e.removeStyle(n,r,t):n.style.removeProperty(r);else{const s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),t|=uo.Important),o?e.setStyle(n,r,i,t):n.style.setProperty(r,i,s?"important":"")}}}(r,s,He(Ft(),n),i,o))}function _u(e,t,n,r,i,o){const s=null===t;let a;for(;i>0;){const t=e[i],o=Array.isArray(t),l=o?t[1]:t,c=null===l;let u=n[i+1];u===as&&(u=c?z:void 0);let h=c?Xn(u,r):l===r?u:void 0;if(o&&!wu(h)&&(h=Xn(t,r)),wu(h)&&(a=h,s))return a;const d=e[i+1];i=s?hs(d):As(d)}if(null!==t){let e=o?t.residualClasses:t.residualStyles;null!=e&&(a=Xn(e,r))}return a}function wu(e){return void 0!==e}function Cu(e,t){return 0!=(e.flags&(t?16:32))}function Su(e,t=""){const n=nt(),r=rt(),i=e+ge,o=r.firstCreatePass?ys(r,i,1,t,null):r.data[i],s=n[i]=bo(n[11],t);Uo(r,n,s,o),lt(o,!1)}function Eu(e){return Iu("",e,""),Eu}function Iu(e,t,n){const r=nt(),i=_l(r,e,t,n);return i!==as&&ca(r,Ft(),i),Iu}function xu(e,t,n,r,i){const o=nt(),s=wl(o,e,t,n,r,i);return s!==as&&ca(o,Ft(),s),xu}function Tu(e,t,n,r,i,o,s){const a=nt(),l=Cl(a,e,t,n,r,i,o,s);return l!==as&&ca(a,Ft(),l),Tu}function Bu(e,t,n,r,i,o,s,a,l){const c=nt(),u=Sl(c,e,t,n,r,i,o,s,a,l);return u!==as&&ca(c,Ft(),u),Bu}function ku(e,t,n,r,i,o,s,a,l,c,u){const h=nt(),d=El(h,e,t,n,r,i,o,s,a,l,c,u);return d!==as&&ca(h,Ft(),d),ku}function Pu(e,t,n,r,i,o,s,a,l,c,u,h,d){const A=nt(),p=Il(A,e,t,n,r,i,o,s,a,l,c,u,h,d);return p!==as&&ca(A,Ft(),p),Pu}function Ou(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p){const f=nt(),g=xl(f,e,t,n,r,i,o,s,a,l,c,u,h,d,A,p);return g!==as&&ca(f,Ft(),g),Ou}function Fu(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g){const m=nt(),v=Tl(m,e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g);return v!==as&&ca(m,Ft(),v),Fu}function Lu(e){const t=nt(),n=bl(t,e);return n!==as&&ca(t,Ft(),n),Lu}function Mu(e,t,n){pu(Yn,du,_l(nt(),e,t,n),!0)}function Du(e,t,n,r,i){pu(Yn,du,wl(nt(),e,t,n,r,i),!0)}function Nu(e,t,n,r,i,o,s){pu(Yn,du,Cl(nt(),e,t,n,r,i,o,s),!0)}function Ru(e,t,n,r,i,o,s,a,l){pu(Yn,du,Sl(nt(),e,t,n,r,i,o,s,a,l),!0)}function Uu(e,t,n,r,i,o,s,a,l,c,u){pu(Yn,du,El(nt(),e,t,n,r,i,o,s,a,l,c,u),!0)}function ju(e,t,n,r,i,o,s,a,l,c,u,h,d){pu(Yn,du,Il(nt(),e,t,n,r,i,o,s,a,l,c,u,h,d),!0)}function Qu(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p){pu(Yn,du,xl(nt(),e,t,n,r,i,o,s,a,l,c,u,h,d,A,p),!0)}function Hu(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g){pu(Yn,du,Tl(nt(),e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g),!0)}function Vu(e){pu(Yn,du,bl(nt(),e),!0)}function qu(e,t,n){cu(_l(nt(),e,t,n))}function Ku(e,t,n,r,i){cu(wl(nt(),e,t,n,r,i))}function Gu(e,t,n,r,i,o,s){cu(Cl(nt(),e,t,n,r,i,o,s))}function zu(e,t,n,r,i,o,s,a,l){cu(Sl(nt(),e,t,n,r,i,o,s,a,l))}function Wu(e,t,n,r,i,o,s,a,l,c,u){cu(El(nt(),e,t,n,r,i,o,s,a,l,c,u))}function $u(e,t,n,r,i,o,s,a,l,c,u,h,d){cu(Il(nt(),e,t,n,r,i,o,s,a,l,c,u,h,d))}function Yu(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p){cu(xl(nt(),e,t,n,r,i,o,s,a,l,c,u,h,d,A,p))}function Xu(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g){cu(Tl(nt(),e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g))}function Ju(e){cu(bl(nt(),e))}function Zu(e,t,n,r,i){return Au(e,_l(nt(),t,n,r),i,!1),Zu}function eh(e,t,n,r,i,o,s){return Au(e,wl(nt(),t,n,r,i,o),s,!1),eh}function th(e,t,n,r,i,o,s,a,l){return Au(e,Cl(nt(),t,n,r,i,o,s,a),l,!1),th}function nh(e,t,n,r,i,o,s,a,l,c,u){return Au(e,Sl(nt(),t,n,r,i,o,s,a,l,c),u,!1),nh}function rh(e,t,n,r,i,o,s,a,l,c,u,h,d){return Au(e,El(nt(),t,n,r,i,o,s,a,l,c,u,h),d,!1),rh}function ih(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p){return Au(e,Il(nt(),t,n,r,i,o,s,a,l,c,u,h,d,A),p,!1),ih}function oh(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g){return Au(e,xl(nt(),t,n,r,i,o,s,a,l,c,u,h,d,A,p,f),g,!1),oh}function sh(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g,m,v){return Au(e,Tl(nt(),t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g,m),v,!1),sh}function ah(e,t,n){return Au(e,bl(nt(),t),n,!1),ah}function lh(e,t,n){const r=nt();return fl(r,gt(),t)&&Ls(rt(),Mt(),r,e,t,r[11],n,!0),lh}
1function ch(e,t,n){const r=nt();if(fl(r,gt(),t)){const i=rt(),o=Mt();Ls(i,o,r,e,t,sa(_t(i.data),o,r),n,!0)}return ch}const uh=void 0;var hh=["en",[["a","p"],["AM","PM"],uh],[["AM","PM"],uh,uh],[["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"]],uh,[["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"]],uh,[["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}",uh,"{1} 'at' {0}",uh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let dh={};function Ah(e,t,n){"string"!=typeof t&&(n=t,t=e[yh.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),dh[t]=e,n&&(dh[t][yh.ExtraData]=n)}function ph(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=mh(t);if(n)return n;const r=t.split("-")[0];if(n=mh(r),n)return n;if("en"===r)return hh;throw new Error(`Missing locale data for the locale "${e}".`)}function fh(e){return ph(e)[yh.CurrencyCode]||null}function gh(e){return ph(e)[yh.PluralCase]}function mh(e){return e in dh||(dh[e]=K.ng&&K.ng.common&&K.ng.common.locales&&K.ng.common.locales[e]),dh[e]}function vh(){dh={}}var yh=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});const bh=["zero","one","two","few","many"],_h="en-US",wh="USD",Ch={marker:"element"},Sh={marker:"ICU"};var Eh=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}({});let Ih=_h;function xh(e){var t;null==(t=e)&&b("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&(Ih=e.toLowerCase().replace(/_/g,"-"))}function Th(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?Mo(e,0,n):Qe(n[i])}function Bh(e,t,n,r,i){const o=t.insertBeforeIndex;if(Array.isArray(o)){let s=r,a=null;if(3&t.type||(a=s,s=i),null!==s&&0==(2&t.flags))for(let t=1;t<o.length;t++)ko(e,s,n[o[t]],a,!1)}}function kh(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];Ph(r)||Oh(r,t)&&null===Fh(r)&&Lh(r,t.index)}}function Ph(e){return!(64&e.type)}function Oh(e,t){return Ph(t)||e.index>t.index}function Fh(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function Lh(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Ro(Th,Bh),e.insertBeforeIndex=t)}function Mh(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function Dh(e,t,n){const r=bs(e,n,64,null,null);return kh(t,r),r}function Nh(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}let Rh=0,Uh=0;function jh(e,t,n,r){const i=n[11];let o,s=null;for(let a=0;a<t.length;a++){const l=t[a];if("string"==typeof l){const e=t[++a];null===n[e]&&(n[e]=bo(i,l))}else if("number"==typeof l)switch(1&l){case 0:const c=l>>>17;let u,h;if(null===s&&(s=c,o=Fo(i,r)),c===s?(u=r,h=o):(u=null,h=Qe(n[c])),null!==h){const t=(131070&l)>>>1;ko(i,h,n[t],u,!1);const r=Mh(e,t);if(null!==r&&"object"==typeof r){const t=Nh(r,n);null!==t&&jh(e,r.create[t],n,n[r.anchorIdx])}}break;case 1:const d=t[++a],A=t[++a];qs(i,He(l>>>1,n),null,null,d,A,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case Sh:const e=t[++a],r=t[++a];null===n[r]&&Qi(n[r]=wo(i,e),n);break;case Ch:const o=t[++a],s=t[++a];null===n[s]&&Qi(n[s]=Co(i,o,null),n)}}}function Qh(e,t,n,r,i){for(let o=0;o<n.length;o++){const s=n[o],a=n[++o];if(s&i){let i="";for(let s=o+1;s<=o+a;s++){const o=n[s];if("string"==typeof o)i+=o;else if("number"==typeof o)if(o<0)i+=m(t[r-o]);else{const a=o>>>2;switch(3&o){case 1:const o=n[++s],l=n[++s],c=e.data[a];"string"==typeof c?qs(t[11],t[a],null,c,o,i,l):Ls(e,c,t,o,i,t[11],l,!1);break;case 0:const u=t[a];null!==u&&_o(t[11],u,i);break;case 2:Vh(e,Mh(e,a),t,i);break;case 3:Hh(e,Mh(e,a),r,t)}}}}else{const i=n[o+1];if(i>0&&3==(3&i)){const n=Mh(e,i>>>2);t[n.currentCaseLViewIndex]<0&&Hh(e,n,r,t)}}o+=a}}function Hh(e,t,n,r){let i=r[t.currentCaseLViewIndex];if(null!==i){let o=Rh;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),Qh(e,r,t.update[i],n,o)}}function Vh(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=gh(t)(p
1arseInt(e,10)),r=bh[n];return void 0!==r?r:"other"}(t,Ih);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(Nh(t,n)!==i&&(qh(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const r=n[t.anchorIdx];r&&jh(e,t.create[i],n,r)}}function qh(e,t,n){let r=Nh(t,n);if(null!==r){const i=t.remove[r];for(let t=0;t<i.length;t++){const r=i[t];if(r>0){const e=He(r,n);null!==e&&Vo(n[11],e)}else qh(e,Mh(e,~r),n)}}}const Kh=/\ufffd(\d+):?\d*\ufffd/gi,Gh=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,zh=/\ufffd(\d+)\ufffd/,Wh=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,$h=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Yh=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Xh=/\uE500/g;function Jh(e,t,n,r,i,o,s){const a=_s(e,r,1,null);let l=a<<Eh.SHIFT,c=at();t===c&&(c=null),null===c&&(l|=Eh.APPEND_EAGERLY),s&&(l|=Eh.COMMENT,void 0===ho&&(ho=function(){const e=[];let t,n,r=-1;function i(e,t){r=0;const i=Nh(e,t);n=null!==i?e.remove[i]:z}function o(){if(r<n.length){const s=n[r++];return s>0?t[s]:(e.push(r,n),i(t[1].data[~s],t),o())}return 0===e.length?null:(n=e.pop(),r=e.pop(),o())}return function(n,r){for(t=r;e.length;)e.pop();return i(n.value,r),o}}())),i.push(l,null===o?"":o);const u=bs(e,a,s?32:1,null===o?"":o,null);kh(n,u);const h=u.index;return lt(u,!1),null!==c&&t!==c&&function(e,t){let n=e.insertBeforeIndex;var r;null===n?(Ro(Th,Bh),n=e.insertBeforeIndex=[null,t]):("Expecting array here",(r=Array.isArray(n))!=!0&&b("Expecting array here",r,true,"=="),n.push(t))}(c,h),u}function Zh(e,t,n,r,i,o,s){const a=s.match(Kh),l=Jh(e,t,n,o,r,a?null:s,!1);a&&ed(i,s,l.index,null,0,null)}function ed(e,t,n,r,i,o){const s=e.length,a=s+1;e.push(null,null);const l=s+2,c=t.split(Kh);let u=0;for(let h=0;h<c.length;h++){const t=c[h];if(1&h){const n=i+parseInt(t,10);e.push(-1-n),u|=nd(n)}else""!==t&&e.push(t)}return e.push(n<<2|(r?1:0)),r&&e.push(r,o),e[s]=u,e[a]=e.length-l,u}function td(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];"number"==typeof r&&r<0&&t++}return t}function nd(e){return 1<<Math.min(e,31)}function rd(e){let t,n,r="",i=0,o=!1;for(;null!==(t=$h.exec(e));)o?t[0]===`\ufffd/*${n}\ufffd`&&(i=t.index,o=!1):(r+=e.substring(i,t.index+t[0].length),n=t[1],o=!0);return r+=e.substr(i),r}function id(e,t,n,r,i,o){let s=0;const a={type:i.type,currentCaseLViewIndex:_s(e,t,1,null),anchorIdx:o,cases:[],create:[],remove:[],update:[]};!function(e,t,n){e.push(nd(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}(n,i,o),function(e,t,n){const r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,o,a);const l=i.values;for(let c=0;c<l.length;c++){const o=l[c],u=[];for(let e=0;e<o.length;e++){const t=o[e];if("string"!=typeof t){const n=u.push(t)-1;o[e]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}s=ad(e,a,t,n,r,i.cases[c],o.join(""),u)|s}s&&function(e,t,n){e.push(t,1,n<<2|3)}(n,s,o)}function od(e){const t=[],n=[];let r=1,i=0;const o=sd(e=e.replace(Wh,function(e,t,n){return r="select"===n?0:1,i=parseInt(t.substr(1),10),""}));for(let s=0;s<o.length;){let e=o[s++].trim();1===r&&(e=e.replace(/\s*(?:=)?(\w+)\s*/,"$1")),e.length&&t.push(e);const i=sd(o[s++]);t.length>n.length&&n.push(i)}return{type:r,mainBinding:i,cases:t,values:n}}function sd(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(e);){const i=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const n=e.substring(t,i);Wh.test(n)?r.push(od(n)):r.push(n),t=i+1}}else{if(0==n.length){const n=e.substring(t,i);r.push(n),t=i+1}n.push("{")}}const s=e.substring(t);return r.push(s),r}function ad(e,t,n,r,i,o,s,a){const l=[],c=[],u=[];t.cases.push(o),t.create.push(l),t.remove.push(c),t.update.push(u);const h=ni(Re()).getInertBodyElement(s),d=Ii(h)||h;return d?ld(e,t,n,r,l,c,u,d,i,a,0):0}function ld(e,t,n,r,i,o,s,a,l,c,u){let h=0,d=a.firstChild;for(;d;){const a=_s(e,n,1,null);switch(d.nodeType){case Node.ELEMENT_NODE:const A=d,p=A.tagName.toLowerCase();if(fi.hasOwnProperty(p)){hd(i,Ch,p,l,a),e.data[a]=p;const f=A.attributes;for(let e=0;e<f.length;e++){const t=f.item(e),n=t.name.toLowerCase();
1t.value.match(Kh)?vi.hasOwnProperty(n)&&ed(s,t.value,a,t.name,0,gi[n]?ai:mi[n]?li:null):dd(i,a,t)}h=ld(e,t,n,r,i,o,s,d,a,c,u+1)|h,cd(o,a,u)}break;case Node.TEXT_NODE:const f=d.textContent||"",g=f.match(Kh);hd(i,null,g?"":f,l,a),cd(o,a,u),g&&(h=ed(s,f,a,null,0,null)|h);break;case Node.COMMENT_NODE:const m=zh.exec(d.textContent||"");if(m){const t=c[parseInt(m[1],10)];hd(i,Sh,"",l,a),id(e,n,r,l,t,a),ud(o,a,u)}}d=d.nextSibling}return h}function cd(e,t,n){0===n&&e.push(t)}function ud(e,t,n){0===n&&(e.push(~t),e.push(t))}function hd(e,t,n,r,i){null!==t&&e.push(t),e.push(n,i,0|r<<17|i<<1)}function dd(e,t,n){e.push(t<<1|1,n.name,n.value)}const Ad=/\[(\ufffd.+?\ufffd?)\]/,pd=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,fd=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,gd=/{([A-Z0-9_]+)}/g,md=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,vd=/\/\*/,yd=/\d+\:(\d+)/;function bd(e,t={}){let n=e;if(Ad.test(e)){const e={},t=[0];n=n.replace(pd,(n,r,i)=>{const o=r||i,s=e[o]||[];if(s.length||(o.split("|").forEach(e=>{const t=e.match(yd),n=t?parseInt(t[1],10):0,r=vd.test(e);s.push([n,r,e])}),e[o]=s),!s.length)throw new Error(`i18n postprocess: unmatched placeholder - ${o}`);const a=t[t.length-1];let l=0;for(let e=0;e<s.length;e++)if(s[e][0]===a){l=e;break}const[c,u,h]=s[l];return u?t.pop():a!==c&&t.push(c),s.splice(l,1),h})}return Object.keys(t).length?(n=n.replace(fd,(e,n,r,i,o,s)=>t.hasOwnProperty(r)?`${n}${t[r]}${s}`:e),n=n.replace(gd,(e,n)=>t.hasOwnProperty(n)?t[n]:e),n=n.replace(md,(e,n)=>{if(t.hasOwnProperty(n)){const r=t[n];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${e} with key: ${n}`);return r.shift()}return e}),n):n}function _d(e,t,n=-1){const r=rt(),i=nt(),o=ge+e,s=$e(r.consts,t),a=at();r.firstCreatePass&&function(e,t,n,r,i,o){const s=at(),a=[],l=[],c=[[]],u=(h=i=function(e,t){if(function(e){return-1===e}(t))return rd(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return rd(e.substring(n,r))}}(i,o),h.replace(Xh," ")).split(Yh);var h;for(let d=0;d<u.length;d++){let r=u[d];if(0==(1&d)){const o=sd(r);for(let r=0;r<o.length;r++){let u=o[r];if(0==(1&r)){const t=u;""!==t&&Zh(e,s,c[0],a,l,n,t)}else{const r=u;if("object"!=typeof r)throw new Error(`Unable to parse ICU expression in "${i}" message.`);id(e,n,l,t,r,Jh(e,s,c[0],n,a,"",!0).index)}}}else{const t=47===r.charCodeAt(0),n=(r.charCodeAt(t?1:0),ge+Number.parseInt(r.substring(t?2:1)));if(t)c.shift(),lt(at(),!1);else{const t=Dh(e,c[0],n);c.unshift([]),lt(t,!0)}}}e.data[r]={create:a,update:l}}(r,null===a?0:a.index,i,o,s,n);const l=r.data[o],c=Bo(r,a===i[6]?null:a,i);!function(e,t,n,r){const i=e[11];for(let o=0;o<t.length;o++){const s=t[o++],a=t[o],l=(s&Eh.COMMENT)===Eh.COMMENT,c=(s&Eh.APPEND_EAGERLY)===Eh.APPEND_EAGERLY,u=s>>>Eh.SHIFT;let h=e[u];null===h&&(h=e[u]=l?i.createComment(a):bo(i,a)),c&&null!==n&&ko(i,n,h,r,!1)}}(i,l.create,c,a&&8&a.type?i[a.index]:null),vt(!0)}function wd(){vt(!1)}function Cd(e,t,n){_d(e,t,n),wd()}function Sd(e,t){const n=rt(),r=$e(n.consts,t);!function(e,t,n){const r=ot().index,i=[];if(e.firstCreatePass&&null===e.data[t]){for(let e=0;e<n.length;e+=2){const t=n[e],o=n[e+1];if(""!==o){if(Gh.test(o))throw new Error(`ICU expressions are not supported in attributes. Message: "${o}".`);ed(i,o,r,t,td(i),null)}}e.data[t]=i}}(n,e+ge,r)}function Ed(e){return fl(nt(),gt(),e)&&(Rh|=1<<Math.min(Uh,31)),Uh++,Ed}function Id(e){!function(e,t,n){if(Uh>0){const r=e.data[n];Qh(e,t,Array.isArray(r)?r:r.update,pt()-Uh-1,Rh)}Rh=0,Uh=0}(rt(),nt(),e+ge)}function xd(e,t={}){return bd(e,t)}function Td(e,t,n,r,i){if(e=p(e),Array.isArray(e))for(let o=0;o<e.length;o++)Td(e[o],t,n,r,i);else{const o=rt(),s=nt();let a=xa(e)?e:p(e.provide),l=Sa(e);const c=ot(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(xa(e)||!e.multi){const r=new Gt(l,i,mc),A=Pd(a,t,i?u:u+d,h);-1===A?(cn(on(c,s),o,a),Bd(o,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(r),s.push(r)):(n[A]=r,s[A]=r)}else{const A=Pd(a,t,u+d,h),p=Pd(a,t,u,u+d),f=A>=0&&n[A],g=p>=0&&n[p];if(i&&!g||!i&&!f){cn(on(c,s),o,a);const u=function(e,t,n,r,i){const o=new Gt(e,n,mc);return o.multi=[],o.index=t,o.componentProviders=0,kd(o,i,r&&!n),o}(i?Fd:Od,n.length,i,r,l);!i&&g&&(n[p].providerFactory=u),Bd(o,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(u),s.push(u)}else Bd(o,e,A>-1?A:p,kd(n[i?p:A],l,!i&&r));!i&&r&&g&&n[p].componentProviders++}}}function Bd(e,t,n,r){const i=xa(t);if(i||t.useClass){const o=(t.useClass||t).prototype.ngOnDestroy;if(o){const s=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const e=s.indexOf(n);-1===e?s.push(n,[r,o]):s[e+1].push(r,o)}else s.push(n,o)}}}function kd(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Pd(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function Od(e,t,n,r){return Ld(this.multi,[])}function Fd(e,t,n,r){const i=this.multi;let o;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=vn(n,n[1],this.providerFactory.index,r);o=t.slice(0,e),Ld(i,o);for(let n=e;n<t.length;n++)o.push(t[n])}else o=[],Ld(i,o);return o}function Ld(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Md(e,t=[]){return n=>{n.providersResolver=(n,r)=>function(e,t,n){const r=rt();if(r.firstCreatePass){const i=Ce(e);Td(n,r.data,r.blueprint,i,!0),Td(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}class Dd{}class Nd{}function Rd(e){const t=Error(`No component factory found for ${u(e)}. Did you add it to @NgModule.entryComponents?`);return t[Ud]=e,t}const Ud="ngComponent";
vendor: 14,328 bytes, line 1
1class jd{resolveComponentFactory(e){throw Rd(e)}}let Qd=(()=>{class e{}return e.NULL=new jd,e})();class Hd{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r<e.length;r++){const t=e[r];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Rd(e);return new Vd(t,this._ngModule)}}class Vd extends Nd{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}function qd(...e){}function Kd(){return Gd(ot(),nt())}function Gd(e,t){return new $d(Ve(e,t))}const zd=Kd,Wd=zd;let $d=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=Wd,e})();function Yd(e){return e instanceof $d?e.nativeElement:e}class Xd{}let Jd=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>eA(),e})();const Zd=tA,eA=Zd;function tA(){const e=nt(),t=Ge(ot().index,e);return function(e){return e[11]}(ve(t)?t:e)}let nA=(()=>{class e{}return e.\u0275prov=_({token:e,providedIn:"root",factory:()=>null}),e})();class rA{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const iA=new rA("12.0.5");class oA{constructor(){}supports(e){return hl(e)}create(e){return new aA(e)}}const sA=(e,t)=>t;class aA{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||sA}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const o=!n||t&&t.currentIndex<hA(n,r,i)?t:n,s=hA(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);const e=s-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<i.length?i[n]:i[n]=0,o=r+n;t<=o&&o<e&&(i[n]=r+1)}i[o.previousIndex]=t-e}}s!==a&&e(o,s,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!hl(e))throw new Error(`Error trying to diff '${u(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,i=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,t)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,t),o=!0),i=i._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[ll()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,e,r,t)),Object.is(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),o=!0),i=i._next,t++}),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):e=this._addAfter(new lA(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new uA),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new uA),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class lA{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class cA{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class uA{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new cA,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function hA(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class dA{constructor(){}supports(e){return e instanceof Map||dl(e)}create(){return new AA}}class AA{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 null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||dl(e)))throw new Error(`Error trying to diff '${u(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new pA(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class pA{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function fA(){return new gA([new oA])}let gA=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||fA()),deps:[[e,new wr,new br]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=_({token:e,providedIn:"root",factory:fA}),e})();function mA(){return new vA([new dA])}let vA=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||mA()),deps:[[e,new wr,new br]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=_({token:e,providedIn:"root",factory:mA}),e})();function yA(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(Qe(o)),ye(o))for(let e=me;e<o.length;e++){const t=o[e],n=t[1].firstChild;null!==n&&yA(t[1],t,n,r)}const s=n.type;if(8&s)yA(e,t,n.child,r);else if(32&s){const e=Ao(n,t);let i;for(;i=e();)r.push(i)}else if(16&s){const e=Qo(t,n);if(Array.isArray(e))r.push(...e);else{const n=po(t[16]);yA(n[1],n,e,r,!0)}}n=i?n.projectionNext:n.next}return r}class bA{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return yA(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(ye(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Eo(e,n),Wn(t,n))}this._attachedToViewContainer=!1}Io(this._lView[1],this._lView)}onDestroy(e){Os(this._lView[1],this._lView,null,e)}markForCheck(){Js(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ea(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){dt(!0);try{ea(e,t,n)}finally{dt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,Ko(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a Vie
1wContainer!");this._appRef=e}}class _A extends bA{constructor(e){super(e),this._view=e}detectChanges(){ta(this._view)}checkNoChanges(){!function(e){dt(!0);try{ta(e)}finally{dt(!1)}}(this._view)}get context(){return null}}const wA=EA,CA=wA;let SA=(()=>{class e{}return e.__NG_ELEMENT_ID__=CA,e})();function EA(e){return function(e,t,n){if(_e(e)&&!n){const n=Ge(e.index,t);return new bA(n,n)}return 47&e.type?new bA(t[16],t):null}(ot(),nt(),16==(16&e))}const IA=[new dA],xA=new gA([new oA]),TA=new vA(IA),BA=LA,kA=BA;let PA=(()=>{class e{}return e.__NG_ELEMENT_ID__=kA,e})();const OA=PA,FA=class extends OA{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=vs(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),ws(t,n,e),new bA(n)}};function LA(){return MA(ot(),nt())}function MA(e,t){return 4&e.type?new FA(t,e,Gd(e,t)):null}class DA{}class NA{}const RA=QA,UA=RA;let jA=(()=>{class e{}return e.__NG_ELEMENT_ID__=UA,e})();function QA(){return GA(ot(),nt())}const HA=jA,VA=class extends HA{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Gd(this._hostTNode,this._hostLView)}get injector(){return new _n(this._hostTNode,this._hostLView)}get parentInjector(){const e=ln(this._hostTNode,this._hostLView);if(Jt(e)){const t=en(e,this._hostLView),n=Zt(e);return new _n(t[1].data[n+8],t)}return new _n(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=qA(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-me}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){const e=o.get(DA,null);e&&(i=e)}const s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}insert(e,t){const n=e._lView,r=n[1];if(ye(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new VA(t,t[6],t[3]);r.detach(r.indexOf(e))}}const i=this._adjustIndex(t),o=this._lContainer;!function(e,t,n,r){const i=me+r,o=n.length;r>0&&(n[i-1][4]=t),r<o-me?(t[4]=n[i],zn(n,me+r,t)):(n.push(t),t[4]=null),t[3]=n;const s=t[17];null!==s&&n!==s&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(r,n,o,i);const s=Ho(i,o),a=n[11],l=Fo(a,o[7]);return null!==l&&function(e,t,n,r,i,o){r[0]=i,r[6]=t,Ko(e,r,n,1,i,o)}(r,o[6],a,n,l,s),e.attachToViewContainerRef(),zn(KA(o),i,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=qA(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=Eo(this._lContainer,t);n&&(Wn(KA(this._lContainer),t),Io(n[1],n))}detach(e){const t=this._adjustIndex(e,-1),n=Eo(this._lContainer,t);return n&&null!=Wn(KA(this._lContainer),t)?new bA(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function qA(e){return e[8]}function KA(e){return e[8]||(e[8]=[])}function GA(e,t){let n;const r=t[e.index];if(ye(r))n=r;else{let i;if(8&e.type)i=Qe(r);else{const n=t[11];i=n.createComment("");const r=Ve(e,t);ko(n,Fo(n,r),i,function(e,t){return Ue(e)?e.nextSibling(t):t.nextSibling}(n,r),!1)}t[e.index]=n=zs(r,t,i,e),Xs(t,n)}return new VA(n,e,t)}function zA(e,t,n,r){let i=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return WA(n,t),n}(i,e)}function WA(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function $A(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function YA(e,t,n){const r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function XA(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}
1function JA(e,t){return e.nodes[t]}function ZA(e,t){return e.nodes[t]}function ep(e,t){return e.nodes[t]}function tp(e,t){return e.nodes[t]}function np(e,t){return e.nodes[t]}class rp{}const ip={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},op=()=>{},sp=new Map;function ap(e){let t=sp.get(e);return t||(t=u(e)+"_"+sp.size,sp.set(e,t)),t}function lp(e,t,n,r){if(ul.isWrapped(r)){r=ul.unwrap(r);const i=e.def.nodes[t].bindingIndex+n,o=ul.unwrap(e.oldValues[i]);e.oldValues[i]=new ul(o)}return r}const cp="$$undefined",up="$$empty";function hp(e){return{id:cp,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let dp=0;function Ap(e,t,n,r){return!(!(2&e.state)&&Object.is(e.oldValues[t.bindingIndex+n],r))}function pp(e,t,n,r){return!!Ap(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function fp(e,t,n,r){const i=e.oldValues[t.bindingIndex+n];if(1&e.state||!cl(i,r)){const o=t.bindings[n].name;throw zA(ip.createDebugContext(e,t.nodeIndex),`${o}: ${i}`,`${o}: ${r}`,0!=(1&e.state))}}function gp(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function mp(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function vp(e,t,n,r){try{return gp(33554432&e.def.nodes[t].flags?ZA(e,t).componentView:e),ip.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function yp(e){return e.parent?ZA(e.parent,e.parentNodeDef.nodeIndex):null}function bp(e){return e.parent?e.parentNodeDef.parent:null}function _p(e,t){switch(201347067&t.flags){case 1:return ZA(e,t.nodeIndex).renderElement;case 2:return JA(e,t.nodeIndex).renderText}}function wp(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Cp(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function Sp(e){return 1<<e%32}function Ep(e){const t={};let n=0;const r={};return e&&e.forEach(([e,i])=>{"number"==typeof e?(t[e]=i,n|=Sp(e)):r[e]=i}),{matchedQueries:t,references:r,matchedQueryIds:n}}function Ip(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,lr,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:ap(n)}})}function xp(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&(r.element.componentRendererType.encapsulation===j.ShadowDom||1===r.element.componentRendererType.encapsulation)?ZA(e,n.renderParent.nodeIndex).renderElement:void 0:t}const Tp=new WeakMap;function Bp(e){let t=Tp.get(e);return t||(t=e(()=>op),t.factory=e,Tp.set(e,t)),t}function kp(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(_p(e,e.def.lastRenderRootNode))),Pp(e,t,0,e.def.nodes.length-1,n,r,i)}function Pp(e,t,n,r,i,o,s){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&Fp(e,n,t,i,o,s),a+=n.childCount}}function Op(e,t,n,r,i,o){let s=e;for(;s&&!wp(s);)s=s.parent;const a=s.parent,l=bp(s),c=l.nodeIndex+l.childCount;for(let u=l.nodeIndex+1;u<=c;u++){const e=a.def.nodes[u];e.ngContentIndex===t&&Fp(a,e,n,r,i,o),u+=e.childCount}if(!a.parent){const s=e.root.projectableNodes[t];if(s)for(let t=0;t<s.length;t++)Lp(e,s[t],n,r,i,o)}}function Fp(e,t,n,r,i,o){if(8&t.flags)Op(e,t.ngContent.index,n,r,i,o);else{const s=_p(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&Lp(e,s,n,r,i,o),32&t.bindingFlags&&Lp(ZA(e,t.nodeIndex).componentView,s,n,r,i,o)):Lp(e,s,n,r,i,o),16777216&t.flags){const s=ZA(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<s.length;e++)kp(s[e],n,r,i,o)}1&t.flags&&!t.element.name&&Pp(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,i,o)}}function Lp(e,t,n,r,i,o){const s=e.renderer;switch(n){case 1:s.appendChild(r,t);break;case 2:s.insertBefore(r,t,i);break;case 3:s.removeChild(r,t);break;case 0:o.push(t)}}const Mp=/^:([^:]+):(.+)$/;function Dp(e){if(":"===e[0]){const t=e.match(Mp);return[t[1],t[2]]}return["",e]}function Np(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function Rp(e,t){let n="";for(let r=0;r<2*e;r+=2)n=n+t[r]+jp(t[r+1]);return n+t[2*e]}function Up(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g,m,v,y){switch(e){case 1:return t+jp(n)+r;case 2:return t+jp(n)+r+jp(i)+o;case 3:return t+jp(n)+r+jp(i)+o+jp(s)+a;case 4:return t+jp(n)+r+jp(i)+o+jp(s)+a+jp(l)+c;case 5:return t+jp(n)+r+jp(i)+o+jp(s)+a+jp(l)+c+jp(u)+h;case 6:return t+jp(n)+r+jp(i)+o+jp(s)+a+jp(l)+c+jp(u)+h+jp(d)+A;case 7:return t+jp(n)+r+jp(i)+o+jp(s)+a+jp(l)+c+jp(u)+h+jp(d)+A+jp(p)+f;case 8:return t+jp(n)+r+jp(i)+o+jp(s)+a+jp(l)+c+jp(u)+h+jp(d)+A+jp(p)+f+jp(g)+m;case 9:return t+jp(n)+r+jp(i)+o+jp(s)+a+jp(l)+c+jp(u)+h+jp(d)+A+jp(p)+f+jp(g)+m+jp(v)+y;default:throw new Error("Does not support more than 9 expressions")}}function jp(e){return null!=e?e.toString():""}const Qp={},Hp={},Vp=ap(ka),qp=ap(Aa),Kp=ap(DA);function Gp(e,t,n,r){return n=p(n),{index:-1,deps:Ip(r,u(t)),flags:e,token:t,value:n}}function zp(e){const t={},n=[];let r=null;for(let i=0;i<e.length;i++){const o=e[i];o.token===fa&&(r=o.value),1073741824&o.flags&&n.push(o.token),o.index=i,t[ap(o.token)]=o}return{factory:null,providersByKey:t,providers:e,modules:n,scope:r}}function Wp(e,t,n=ka.THROW_IF_NOT_FOUND){const r=hr(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const i=t.tokenKey;switch(i){case Vp:case qp:case Kp:return e}const o=e._def.providersByKey[i];let s;if(o){let t=e._providers[o.index];return void 0===t&&(t=e._providers[o.index]=$p(e,o)),t===Hp?void 0:t}if((s=S(t.token))&&function(e,t){const n=p(t.providedIn);return null!=n&&("any"===n||n===e._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(e,n))}(e,s)){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:s.factory,deps:[],index:n,token:t.token},e._providers[n]=Hp,e._providers[n]=$p(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{hr(r)}}function $p(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(Wp(e,n[0]));case 2:return new t(Wp(e,n[0]),Wp(e,n[1]));case 3:return new t(Wp(e,n[0]),Wp(e,n[1]),Wp(e,n[2]));default:const i=[];for(let t=0;t<r;t++)i[t]=Wp(e,n[t]);return new t(...i)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(Wp(e,n[0]));case 2:return t(Wp(e,n[0]),Wp(e,n[1]));case 3:return t(Wp(e,n[0]),Wp(e,n[1]),Wp(e,n[2]));default:const i=[];for(let t=0;t<r;t++)i[t]=Wp(e,n[t]);return t(...i)}}(e,t.value,t.deps);break;case 2048:n=Wp(e,t.deps[0]);break;case 256:n=t.value}return n===Hp||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Hp:n}function Yp(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,Wn(n,t),ip.dirtyParentQueries(r),Jp(r),r}
vendor: 4,516 bytes, line 1
1function Xp(e,t,n){const r=t?_p(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);kp(n,2,i,o,void 0)}function Jp(e){kp(e,3,null,null,void 0)}const Zp={};function ef(e,t,n,r,i,o){return new nf(e,t,n,r,i,o)}function tf(e){return e.viewDefFactory}class nf extends Nd{constructor(e,t,n,r,i,o){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=i,this.ngContentSelectors=o,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const i=Bp(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=ip.createRootView(e,t||[],n,i,r,Zp),a=ep(s,o).instance;return n&&s.renderer.setAttribute(ZA(s,0).renderElement,"ng-version",iA.full),new rf(s,new lf(s),a)}}class rf extends Dd{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new $d(ZA(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new df(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function of(e,t,n){return new sf(e,t,n)}class sf{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new $d(this._data.renderElement)}get injector(){return new df(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=bp(e),e=e.parent;return e?new df(e,t):new df(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Yp(this._data,e);ip.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new lf(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const o=n||this.parentInjector;i||e instanceof Vd||(i=o.get(DA));const s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let i=t.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=e,zn(i,n,r),function(e,t){const n=yp(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),ip.dirtyParentQueries(r),Xp(t,n>0?i[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,i=r[t];Wn(r,t),null==n&&(n=r.length),zn(r,n,i),ip.dirtyParentQueries(i),Jp(i),Xp(e,n>0?r[n-1]:null,i)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Yp(this._data,e);t&&ip.destroyView(t)}detach(e){const t=Yp(this._data,e);return t?new lf(t):null}}function af(e){return new lf(e)}class lf{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return kp(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}set context(e){this._view.context=e}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){gp(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{ip.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){ip.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),ip.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Jp(this._view),ip.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a Vie
1wContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function cf(e,t){return new uf(e,t)}class uf extends PA{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new lf(ip.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new $d(ZA(this._parentView,this._def.nodeIndex).renderElement)}}function hf(e,t){return new df(e,t)}class df{constructor(e,t){this.view=e,this.elDef=t}get(e,t=ka.THROW_IF_NOT_FOUND){return ip.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:ap(e)},t)}}function Af(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=ZA(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return JA(e,n.nodeIndex).renderText;if(20240&n.flags)return ep(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function pf(e,t,n,r){return new ff(e,t,n,r)}class ff{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=$n(t.providers.length);for(let r=0;r<t.providers.length;r++){const i=t.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=$p(e,i))}}(this)}get(e,t=ka.THROW_IF_NOT_FOUND,n=P.Default){let r=0;return n&P.SkipSelf?r|=1:n&P.Self&&(r|=4),Wp(this,{token:e,tokenKey:ap(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(Qd)}destroy(){if(this._destroyed)throw new Error(`The ng module ${u(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,r=new Set;for(let i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){const t=e._providers[i];if(t&&t!==Hp){const e=t.ngOnDestroy;"function"!=typeof e||r.has(t)||(e.apply(t),r.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const gf=ap(Jd),mf=ap($d),vf=ap(jA),yf=ap(PA),bf=ap(SA),_f=ap(ka),wf=ap(Aa);function Cf(e,t,n,r,i,o,s,a){const l=[];if(s)for(let u in s){const[e,t]=s[u];l[e]={flags:8,name:u,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const c=[];if(a)for(let u in a)c.push({type:1,propName:u,target:null,eventName:a[u]});return If(e,t|=16384,n,r,i,i,o,l,c)}function Sf(e,t,n){return If(-1,e|=16,null,0,t,t,n)}function Ef(e,t,n,r,i){return If(-1,e,t,0,n,r,i)}function If(e,t,n,r,i,o,s,a,l){const{matchedQueries:c,references:h,matchedQueryIds:d}=Ep(n);l||(l=[]),a||(a=[]),o=p(o);const A=Ip(s,u(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:d,references:h,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Np(a),outputs:l,element:null,provider:{token:i,value:o,deps:A},text:null,query:null,ngContent:null}}function xf(e,t){return Pf(e,t)}function Tf(e,t){let n=e;for(;n.parent&&!wp(n);)n=n.parent;return Of(n.parent,bp(n),!0,t.provider.value,t.provider.deps)}function Bf(e,t){const n=Of(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const i=t.outputs[r],o=n[i.propName];if(!kc(o))throw new Error(`@Output ${i.propName} not initialized in '${n.constructor.name}'.`);{const n=o.subscribe(kf(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function kf(e,t,n){return r=>vp(e,t,n,r)}function Pf(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Of(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){const o=i.length;switch(o){case 0:return r();case 1:return r(Lf(e,t,n,i[0]));case 2:return r(Lf(e,t,n,i[0]),Lf(e,t,n,i[1]));case 3:return r(Lf(e,t,n,i[0]),Lf(e,t,n,i[1]),Lf(e,t,n,i[2]));default:const s=[];for(let r=0;r<o;r++)s.push(Lf(e,t,n,i[r]));return r(...s)}}(e,t.parent,n,r.value,r.deps);case 2048:return Lf(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Of(e,t,n,r,i){const o=i.length;switch(o){case 0:return new r;case 1:return new r(Lf(e,t,n,i[0]));case 2:return new r(Lf(e,t,n,i[0]),Lf(e,t,n,i[1]));case 3:return new r(Lf(e,t,n,i[0]),Lf(e,t,n,i[1]),Lf(e,t,n,i[2]));default:const s=[];for(let r=0;r<o;r++)s.push(Lf(e,t,n,i[r]));return new r(...s)}}const Ff={};function Lf(e,t,n,r,i=ka.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const o=e;2&r.flags&&(i=null);const s=r.tokenKey;s===bf&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let a=e;for(;a;){if(t)switch(s){case gf:return Mf(a,t,n).renderer;case mf:return new $d(ZA(a,t.nodeIndex).renderElement);case vf:return ZA(a,t.nodeIndex).viewContainer;case yf:if(t.element.template)return ZA(a,t.nodeIndex).template;break;case bf:return af(Mf(a,t,n));case _f:case wf:return hf(a,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[s];if(e){let t=ep(a,e.nodeIndex);return t||(t={instance:Pf(a,e)},a.nodes[e.nodeIndex]=t),t.instance}}n=wp(a),t=bp(a),a=a.parent,4&r.flags&&(a=null)}const l=o.root.injector.get(r.token,Ff);return l!==Ff||i===Ff?l:o.root.ngModule.injector.get(r.token,i)}function Mf(e,t,n){let r;if(n)r=ZA(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!wp(r);)r=r.parent;return r}function Df(e,t,n,r,i,o){if(32768&n.flags){const t=ZA(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};const t=ul.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Ee(t,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function Nf(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let i=0;i<n.length;i++){const o=n[i];let s=o.parent;for(!s&&o.flags&t&&Uf(e,i,o.flags&t,r++),0==(o.childFlags&t)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&t&&(r=Rf(e,s,t,r)),s=s.parent}}function Rf(e,t,n,r){for(let i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){const t=e.def.nodes[i];t.flags&n&&Uf(e,i,t.flags&n,r++),i+=t.childCount}return r}function Uf(e,t,n,r){const i=ep(e,t);if(!i)return;const o=i.instance;o&&(ip.setCurrentNode(e,t),1048576&n&&XA(e,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&XA(e,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}class jf extends Qd{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=de(e);return new Vf(t,this.ngModule)}}function Qf(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Hf=new Ln("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>oo});class Vf extends Nd{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(ss).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Qf(this.componentDef.inputs)}get outputs(){return Qf(this.componentDef.outputs)}create(e,t,n,r){const i=(r=r||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const o=e.get(n,Ff,i);
1return o!==Ff||r===Ff?o:t.get(n,r,i)}}}(e,r.injector):e,o=i.get(Xd,je),s=i.get(nA,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?Ps(a,n,this.componentDef.encapsulation):Co(o.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?Le:"math"===t?Me:null}(l)),u=this.componentDef.onPush?576:528,h=$a(),d=ks(0,null,null,1,0,null,null,null,null,null),A=vs(null,d,h,u,null,null,o,a,s,i);let p,f;It(A);try{const e=za(c,this.componentDef,A,o,a);if(c)if(n)zt(a,c,["ng-version",iA.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!ts(i))break;i=o}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&zt(a,c,e),t&&t.length>0&&Wo(a,c,t.join(" "))}if(f=qe(d,ge),void 0!==t){const e=f.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=t[n];e.push(null!=r?Array.from(r):null)}}p=Wa(e,this.componentDef,A,h,[Ya]),ws(d,A,null)}finally{Pt()}return new qf(this.componentType,p,Gd(f,A),A,f)}}class qf extends Dd{constructor(e,t,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.instance=t,this.hostView=this.changeDetectorRef=new _A(r),this.componentType=e}get injector(){return new _n(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}function Kf(e,t,n,r){return D(()=>{const i=e;null!==t&&(i.hasOwnProperty("decorators")&&void 0!==i.decorators?i.decorators.push(...t):i.decorators=t),null!==n&&(i.ctorParameters=n),null!==r&&(i.propDecorators=i.hasOwnProperty("propDecorators")&&void 0!==i.propDecorators?Object.assign(Object.assign({},i.propDecorators),r):r)})}const Gf=new Map;function zf(e,t){const n=Gf.get(e);Wf(e,n&&n.moduleType,t.moduleType),Gf.set(e,t)}function Wf(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${u(t)} vs ${u(t.name)}`)}function $f(e){const t=new Set;!function e(n){const r=fe(n,!0),i=r.id;null!==i&&(Wf(i,Gf.get(i),n),Gf.set(i,n));const o=co(r.imports);for(const s of o)t.has(s)||(t.add(s),e(s))}(e)}function Yf(e){return Gf.get(e)||se[e]}class Xf extends DA{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new jf(this);const n=fe(e),r=e[J]||null;r&&xh(r),this._bootstrapComponents=co(n.bootstrap),this._r3Injector=_a(e,t,[{provide:DA,useValue:this},{provide:Qd,useValue:this.componentFactoryResolver}],u(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=ka.THROW_IF_NOT_FOUND,n=P.Default){return e===ka||e===DA||e===Aa?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Jf extends NA{constructor(e){super(),this.moduleType=e,null!==fe(e)&&$f(e)}create(e){return new Xf(this.moduleType,e)}}function Zf(e,t,n){const r=At()+e,i=nt();return i[r]===as?Al(i,r,n?t.call(n):t()):pl(i,r)}function eg(e,t,n,r){return ug(nt(),At(),e,t,n,r)}function tg(e,t,n,r,i){return hg(nt(),At(),e,t,n,r,i)}function ng(e,t,n,r,i,o){return dg(nt(),At(),e,t,n,r,i,o)}function rg(e,t,n,r,i,o,s){return Ag(nt(),At(),e,t,n,r,i,o,s)}function ig(e,t,n,r,i,o,s,a){const l=At()+e,c=nt(),u=vl(c,l,n,r,i,o);return fl(c,l+4,s)||u?Al(c,l+5,a?t.call(a,n,r,i,o,s):t(n,r,i,o,s)):pl(c,l+5)}function og(e,t,n,r,i,o,s,a,l){const c=At()+e,u=nt(),h=vl(u,c,n,r,i,o);return gl(u,c+4,s,a)||h?Al(u,c+6,l?t.call(l,n,r,i,o,s,a):t(n,r,i,o,s,a)):pl(u,c+6)}function sg(e,t,n,r,i,o,s,a,l,c){const u=At()+e,h=nt();let d=vl(h,u,n,r,i,o);return ml(h,u+4,s,a,l)||d?Al(h,u+7,c?t.call(c,n,r,i,o,s,a,l):t(n,r,i,o,s,a,l)):pl(h,u+7)}function ag(e,t,n,r,i,o,s,a,l,c,u){const h=At()+e,d=nt(),A=vl(d,h,n,r,i,o);return vl(d,h+4,s,a,l,c)||A?Al(d,h+8,u?t.call(u,n,r,i,o,s,a,l,c):t(n,r,i,o,s,a,l,c)):pl(d,h+8)}function lg(e,t,n,r){return pg(nt(),At(),e,t,n,r)}function cg(e,t){const n=e[t];return n===as?void 0:n}function ug(e,t,n,r,i,o){const s=t+n;return fl(e,s,i)?Al(e,s+1,o?r.call(o,i):r(i)):cg(e,s+1)}function hg(e,t,n,r,i,o,s){const a=t+n;return gl(e,a,i,o)?Al(e,a+2,s?r.call(s,i,o):r(i,o)):cg(e,a+2)}function dg(e,t,n,r,i,o,s,a){const l=t+n;return ml(e,l,i,o,s)?Al(e,l+3,a?r.call(a,i,o,s):r(i,o,s)):cg(e,l+3)}function Ag(e,t,n,r,i,o,s,a,l){const c=t+n;return vl(e,c,i,o,s,a)?Al(e,c+4,l?r.call(l,i,o,s,a):r(i,o,s,a)):cg(e,c+4)}function pg(e,t,n,r,i,o){let s=t+n,a=!1;for(let l=0;l<i.length;l++)fl(e,s++,i[l])&&(a=!0);return a?Al(e,s,r.apply(o,i)):cg(e,s)}function fg(e,t){const n=rt();let r;const i=e+ge;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new g("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Se(r.type)),s=L(mc);try{const e=nn(!1),t=o();return nn(e),Ul(n,nt(),i,t),t}finally{L(s)}}function gg(e,t,n){const r=e+ge,i=nt(),o=Ke(i,r);return wg(i,_g(i,r)?ug(i,At(),t,o.transform,n,o):o.transform(n))}function mg(e,t,n,r){const i=e+ge,o=nt(),s=Ke(o,i);return wg(o,_g(o,i)?hg(o,At(),t,s.transform,n,r,s):s.transform(n,r))}function vg(e,t,n,r,i){const o=e+ge,s=nt(),a=Ke(s,o);return wg(s,_g(s,o)?dg(s,At(),t,a.transform,n,r,i,a):a.transform(n,r,i))}function yg(e,t,n,r,i,o){const s=e+ge,a=nt(),l=Ke(a,s);return wg(a,_g(a,s)?Ag(a,At(),t,l.transform,n,r,i,o,l):l.transform(n,r,i,o))}function bg(e,t,n){const r=e+ge,i=nt(),o=Ke(i,r);return wg(i,_g(i,r)?pg(i,At(),t,o.transform,n,o):o.transform.apply(o,n))}function _g(e,t){return e[1].data[t].pure}function wg(e,t){return ul.isWrapped(t)&&(t=ul.unwrap(t),e[pt()]=as),t}function Cg(e){return t=>{setTimeout(e,void 0,t)}}const Sg=class extends r.xQ{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){var r,o,s;let a=e,l=t||(()=>null),c=n;if(e&&"object"==typeof e){const t=e;a=null===(r=t.next)||void 0===r?void 0:r.bind(t),l=null===(o=t.error)||void 0===o?void 0:o.bind(t),c=null===(s=t.complete)||void 0===s?void 0:s.bind(t)}this.__isAsync&&(l=Cg(l),a&&(a=Cg(a)),c&&(c=Cg(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof i.w&&e.add(u),u}};function Eg(){return this._results[ll()]()}class Ig{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=ll(),n=Ig.prototype;n[t]||(n[t]=Eg)}get changes(){return this._changes||(this._changes=new Sg)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}
vendor: 4,293 bytes, line 1
1forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const n=this;n.dirty=!1;const r=Kn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(n._results,r,t))&&(n._results=r,n.length=r.length,n.last=r[this.length-1],n.first=r[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class xg{constructor(e){this.queryList=e,this.matches=null}clone(){return new xg(this.queryList)}setDirty(){this.queryList.setDirty()}}class Tg{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);r.push(this.queries[n.indexInDeclarationView].clone())}return new Tg(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Hg(e,t).matches&&this.queries[t].setDirty()}}class Bg{constructor(e,t,n=null){this.predicate=e,this.flags=t,this.read=n}}class kg{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const r=null!==t?t.length:0,i=this.getByIndex(n).embeddedTView(e,r);i&&(i.indexInDeclarationView=n,null!==t?t.push(i):t=[i])}return null!==t?new kg(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Pg{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Pg(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const i=n[r];this.matchTNodeWithReadOption(e,t,Og(t,i)),this.matchTNodeWithReadOption(e,t,mn(t,e,i,!1,!1))}else n===PA?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,mn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===$d||r===jA||r===PA&&4&t.type)this.addMatch(t.index,-2);else{const n=mn(t,e,r,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function Og(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function Fg(e,t,n,r){return-1===n?function(e,t){return 11&e.type?Gd(e,t):4&e.type?MA(e,t):null}(t,e):-2===n?function(e,t,n){return n===$d?Gd(t,e):n===PA?MA(t,e):n===jA?GA(t,e):void 0}(e,t,r):vn(e,e[1],n,t)}function Lg(e,t,n,r){const i=t[19].queries[r];if(null===i.matches){const r=e.data,o=n.matches,s=[];for(let e=0;e<o.length;e+=2){const i=o[e];s.push(i<0?null:Fg(t,r[i],o[e+1],n.metadata.read))}i.matches=s}return i.matches}function Mg(e,t,n,r){const i=e.queries.getByIndex(n),o=i.matches;if(null!==o){const s=Lg(e,t,i,n);for(let e=0;e<o.length;e+=2){const n=o[e];if(n>0)r.push(s[e/2]);else{const i=o[e+1],s=t[-n];for(let e=me;e<s.length;e++){const t=s[e];t[17]===t[3]&&Mg(t[1],t,i,r)}if(null!==s[9]){const e=s[9];for(let t=0;t<e.length;t++){const n=e[t];Mg(n[1],n,i,r)}}}}}return r}function Dg(e){const t=nt(),n=rt(),r=wt();
1Ct(r+1);const i=Hg(n,r);if(e.dirty&&ze(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const o=i.crossesNgTemplate?Mg(n,t,r,[]):Lg(n,t,i,r);e.reset(o,Yd),e.notifyOnChanges()}return!0}return!1}function Ng(e,t,n){const r=rt();r.firstCreatePass&&(Qg(r,new Bg(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),jg(r,nt(),t)}function Rg(e,t,n,r){const i=rt();if(i.firstCreatePass){const o=ot();Qg(i,new Bg(t,n,r),o.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}jg(i,nt(),n)}function Ug(){return e=nt(),t=wt(),e[19].queries[t].queryList;var e,t}function jg(e,t,n){const r=new Ig(4==(4&n));Os(e,t,r,r.destroy),null===t[19]&&(t[19]=new Tg),t[19].queries.push(new xg(r))}function Qg(e,t,n){null===e.queries&&(e.queries=new kg),e.queries.track(new Pg(t,n))}function Hg(e,t){return e.queries.getByIndex(t)}function Vg(e,t){return MA(e,t)}const qg=(()=>({"\u0275\u0275attribute":yl,"\u0275\u0275attributeInterpolate1":Bl,"\u0275\u0275attributeInterpolate2":kl,"\u0275\u0275attributeInterpolate3":Pl,"\u0275\u0275attributeInterpolate4":Ol,"\u0275\u0275attributeInterpolate5":Fl,"\u0275\u0275attributeInterpolate6":Ll,"\u0275\u0275attributeInterpolate7":Ml,"\u0275\u0275attributeInterpolate8":Dl,"\u0275\u0275attributeInterpolateV":Nl,"\u0275\u0275defineComponent":ne,"\u0275\u0275defineDirective":ue,"\u0275\u0275defineInjectable":_,"\u0275\u0275defineInjector":C,"\u0275\u0275defineNgModule":ae,"\u0275\u0275definePipe":he,"\u0275\u0275directiveInject":mc,"\u0275\u0275getInheritedFactory":wn,"\u0275\u0275inject":Ar,"\u0275\u0275injectAttribute":Sn,"\u0275\u0275invalidFactory":vc,"\u0275\u0275invalidFactoryDep":pr,"\u0275\u0275templateRefExtractor":Vg,"\u0275\u0275NgOnChangesFeature":Ie,"\u0275\u0275ProvidersFeature":Md,"\u0275\u0275CopyDefinitionFeature":sl,"\u0275\u0275InheritDefinitionFeature":Za,"\u0275\u0275nextContext":Dc,"\u0275\u0275namespaceHTML":Rt,"\u0275\u0275namespaceMathML":Nt,"\u0275\u0275namespaceSVG":Dt,"\u0275\u0275enableBindings":et,"\u0275\u0275disableBindings":tt,"\u0275\u0275elementStart":_c,"\u0275\u0275elementEnd":wc,"\u0275\u0275element":Cc,"\u0275\u0275elementContainerStart":Sc,"\u0275\u0275elementContainerEnd":Ec,"\u0275\u0275elementContainer":Ic,"\u0275\u0275pureFunction0":Zf,"\u0275\u0275pureFunction1":eg,"\u0275\u0275pureFunction2":tg,"\u0275\u0275pureFunction3":ng,"\u0275\u0275pureFunction4":rg,"\u0275\u0275pureFunction5":ig,"\u0275\u0275pureFunction6":og,"\u0275\u0275pureFunction7":sg,"\u0275\u0275pureFunction8":ag,"\u0275\u0275pureFunctionV":lg,"\u0275\u0275getCurrentView":xc,"\u0275\u0275restoreView":it,"\u0275\u0275listener":Pc,"\u0275\u0275projection":Uc,"\u0275\u0275syntheticHostProperty":ch,"\u0275\u0275syntheticHostListener":Oc,"\u0275\u0275pipeBind1":gg,"\u0275\u0275pipeBind2":mg,"\u0275\u0275pipeBind3":vg,"\u0275\u0275pipeBind4":yg,"\u0275\u0275pipeBindV":bg,"\u0275\u0275projectionDef":Rc,"\u0275\u0275hostProperty":lh,"\u0275\u0275property":yc,"\u0275\u0275propertyInterpolate":jc,"\u0275\u0275propertyInterpolate1":Qc,"\u0275\u0275propertyInterpolate2":Hc,"\u0275\u0275propertyInterpolate3":Vc,"\u0275\u0275propertyInterpolate4":qc,"\u0275\u0275propertyInterpolate5":Kc,"\u0275\u0275propertyInterpolate6":Gc,"\u0275\u0275propertyInterpolate7":zc,"\u0275\u0275propertyInterpolate8":Wc,"\u0275\u0275propertyInterpolateV":$c,"\u0275\u0275pipe":fg,"\u0275\u0275queryRefresh":Dg,"\u0275\u0275viewQuery":Ng,"\u0275\u0275loadQuery":Ug,"\u0275\u0275contentQuery":Rg,"\u0275\u0275reference":jl,"\u0275\u0275classMap":hu,"\u0275\u0275classMapInterpolate1":Mu,"\u0275\u0275classMapInterpolate2":Du,"\u0275\u0275classMapInterpolate3":Nu,"\u0275\u0275classMapInterpolate4":Ru,"\u0275\u0275classMapInterpolate5":Uu,"\u0275\u0275classMapInterpolate6":ju,"\u0275\u0275classMapInterpolate7":Qu,"\u0275\u0275classMapInterpolate8":Hu,"\u0275\u0275classMapInterpolateV":Vu,"\u0275\u0275styleMap":cu,"\u0275\u0275styleMapInterpolate1":qu,"\u0275\u0275styleMapInterpolate2":Ku,"\u0275\u0275styleMapInterpolate3":Gu,"\u0275\u0275styleMapInterpolate4":zu,"\u0275\u0275styleMapInterpolate5":Wu,"\u0275\u0275styleMapInterpolate6":$u,"\u0275\u0275styleMapInterpolate7":Yu,"\u0275\u0275styleMapInterpolate8":Xu,"\u0275\u0275styleMapInterpolateV":Ju,"\u0275\u0275styleProp":au,"\u0275\u0275stylePropInterpolate1":Zu,"\u0275\u0275stylePropInterpolate2":eh,"\u0275\u0275stylePropInterpolate3":th,"\u0275\u0275stylePropInterpolate4":nh,"\u0275\u0275stylePropInterpolate5":rh,"\u0275\u0275stylePropInterpolate6":ih,"\u0275\u0275stylePropInterpolate7":oh,"\u0275\u0275stylePropInterpolate8":sh,"\u0275\u0275stylePropInterpolateV":ah,"\u0275\u0275classProp":lu,"\u0275\u0275advance":ls,"\u0275\u0275template":Rl,"\u0275\u0275text":Su,"\u0275\u0275textInterpolate":Eu,"\u0275\u0275textInterpolate1":Iu,"\u0275\u0275textInterpolate2":xu,"\u0275\u0275textInterpolate3":Tu,"\u0275\u0275textInterpolate4":Bu,"\u0275\u0275textInterpolate5":ku,"\u0275\u0275textInterpolate6":Pu,"\u0275\u0275textInterpolate7":Ou,"\u0275\u0275textInterpolate8":Fu,"\u0275\u0275textInterpolateV":Lu,"\u0275\u0275i18
1n":Cd,"\u0275\u0275i18nAttributes":Sd,"\u0275\u0275i18nExp":Ed,"\u0275\u0275i18nStart":_d,"\u0275\u0275i18nEnd":wd,"\u0275\u0275i18nApply":Id,"\u0275\u0275i18nPostprocess":xd,"\u0275\u0275resolveWindow":so,"\u0275\u0275resolveDocument":ao,"\u0275\u0275resolveBody":lo,"\u0275\u0275setComponentScope":re,"\u0275\u0275setNgModuleScope":le,"\u0275\u0275sanitizeHtml":Ti,"\u0275\u0275sanitizeStyle":Bi,"\u0275\u0275sanitizeResourceUrl":Pi,"\u0275\u0275sanitizeScript":Oi,"\u0275\u0275sanitizeUrl":ki,"\u0275\u0275sanitizeUrlOrResourceUrl":Di,"\u0275\u0275trustConstantHtml":Fi,"\u0275\u0275trustConstantResourceUrl":Li,forwardRef:A,resolveForwardRef:p}))();let Kg=null;function Gg(){Kg=null}const zg=[];let Wg=!1;function $g(){if(!Wg){Wg=!0;try{for(let e=zg.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=zg[e];n.declarations&&n.declarations.every(Yg)&&(zg.splice(e,1),nm(t,n))}}finally{Wg=!1}}}function Yg(e){return Array.isArray(e)?e.every(Yg):!!p(e)}function Xg(e,t={}){Jg(e,t),function(e,t){zg.push({moduleType:e,ngModule:t})}(e,t)}function Jg(e,t,n=!1){const r=Kn(t.declarations||z);let i=null;Object.defineProperty(e,X,{configurable:!0,get:()=>(null===i&&(i=Hn().compileNgModule(qg,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Kn(t.bootstrap||z).map(p),declarations:r.map(p),imports:Kn(t.imports||z).map(p).map(om),exports:Kn(t.exports||z).map(p).map(om),schemas:t.schemas?Kn(t.schemas):null,id:t.id||null}),i.schemas||(i.schemas=[])),i)});let o=null;Object.defineProperty(e,Z,{get:()=>{if(null===o){const t=Hn();o=t.compileFactory(qg,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Ir(e),target:t.FactoryTarget.NgModule,typeArgumentCount:0})}return o},configurable:!1});let s=null;Object.defineProperty(e,T,{get:()=>{if(null===s){const n={name:e.name,type:e,providers:t.providers||z,imports:[(t.imports||z).map(p),(t.exports||z).map(p)]};s=Hn().compileInjector(qg,`ng:///${e.name}/\u0275inj.js`,n)}return s},configurable:!1})}let Zg=new WeakMap,em=new WeakMap;function tm(){Zg=new WeakMap,em=new WeakMap,zg.length=0}function nm(e,t){const n=Kn(t.declarations||z),r=im(e);n.forEach(t=>{t.hasOwnProperty(W)?rm(de(t),r):t.hasOwnProperty($)||t.hasOwnProperty(Y)||(t.ngSelectorScope=e)})}function rm(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(e=>e.hasOwnProperty(W)?de(e):Ae(e)).filter(e=>!!e),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(e=>pe(e)),e.schemas=t.schemas,e.tView=null}function im(e){if(!sm(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=fe(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return co(t.imports).forEach(e=>{const t=e;if(!sm(t))throw new Error(`Importing ${t.name} which does not have a \u0275mod property`);const r=im(t);r.exported.directives.forEach(e=>n.compilation.directives.add(e)),r.exported.pipes.forEach(e=>n.compilation.pipes.add(e))}),co(t.declarations).forEach(e=>{pe(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)}),co(t.exports).forEach(e=>{const t=e;if(sm(t)){const e=im(t);e.exported.directives.forEach(e=>{n.compilation.directives.add(e),n.exported.directives.add(e)}),e.exported.pipes.forEach(e=>{n.compilation.pipes.add(e),n.exported.pipes.add(e)})}else pe(t)?n.exported.pipes.add(t):n.exported.directives.add(t)}),t.transitiveCompileScopes=n,n}function om(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function sm(e){return!!fe(e)}let am=0;function lm(e,t){let n=null;!function(e,t){Pr(t)&&(Br.set(e,t),kr.add(e))}(e,t),hm(e,t),Object.defineProperty(e,W,{get:()=>{if(null===n){const r=Hn();if(Pr(t)){const n=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&n.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&n.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),n.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(n.join("\n"))}const i=Kg;let o=t.preserveWhitespaces;
1void 0===o&&(o=null!==i&&void 0!==i.preserveWhitespaces&&i.preserveWhitespaces);let s=t.encapsulation;void 0===s&&(s=null!==i&&void 0!==i.defaultEncapsulation?i.defaultEncapsulation:j.Emulated);const a=t.templateUrl||`ng:///${e.name}/template.html`,l=Object.assign(Object.assign({},Am(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,a),template:t.template||"",preserveWhitespaces:o,styles:t.styles||z,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:s,interpolation:t.interpolation,viewProviders:t.viewProviders||null});am++;try{l.usesInheritance&&pm(e),n=r.compileComponent(qg,a,l)}finally{am--}if(0===am&&$g(),void 0!==e.ngSelectorScope){const t=im(e.ngSelectorScope);rm(n,t)}}return n},configurable:!1})}function cm(e,t){let n=null;hm(e,t||{}),Object.defineProperty(e,$,{get:()=>{if(null===n){const r=um(e,t||{});n=Hn().compileDirective(qg,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function um(e,t){const n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,i=Hn(),o=Am(e,t);return o.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),o.usesInheritance&&pm(e),{metadata:o,sourceMapUrl:r}}function hm(e,t){let n=null;Object.defineProperty(e,Z,{get:()=>{if(null===n){const r=um(e,t),i=Hn();n=i.compileFactory(qg,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Ir(e),target:i.FactoryTarget.Directive})}return n},configurable:!1})}function dm(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Am(e,t){const n=Er(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||G,propMetadata:r,inputs:t.inputs||z,outputs:t.outputs||z,queries:gm(e,r,mm),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!dm(e),exportAs:(i=t.exportAs,void 0===i?null:bm(i)),providers:t.providers||null,viewQueries:gm(e,r,vm)};var i}function pm(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)Ae(n)||de(n)||!wm(n)||cm(n,null),n=Object.getPrototypeOf(n)}function fm(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?bm(n):p(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly};var n}function gm(e,t,n){const r=[];for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];o.forEach(t=>{if(n(t)){if(!t.selector)throw new Error(`Can't construct a query for the property "${i}" of "${v(e)}" since the query selector wasn't defined.`);if(o.some(ym))throw new Error("Cannot combine @Input decorators with query decorators");r.push(fm(i,t))}})}return r}function mm(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function vm(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function ym(e){return"Input"===e.ngMetadataName}function bm(e){return e.split(",").map(e=>e.trim())}const _m=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function wm(e){const t=Er();if(_m.some(n=>t.hasLifecycleHook(e,n)))return!0;const n=t.propMetadata(e);for(const r in n){const e=n[r];for(let t=0;t<e.length;t++){const n=e[t],r=n.ngMetadataName;if(ym(n)||mm(n)||vm(n)||"Output"===r||"HostBinding"===r||"HostListener"===r)return!0}}return!1}function Cm(e,t){let n=null,r=null;Object.defineProperty(e,Z,{get:()=>{if(null===r){const n=Sm(e,t),i=Hn();r=i.compileFactory(qg,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n.type,typeArgumentCount:0,deps:Ir(e),target:i.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,Y,{get:()=>{if(null===n){const r=Sm(e,t);n=Hn().compilePipe(qg,`ng:///${r.name}/\u0275pipe.js`,r)}return n},configurable:!1})}function Sm(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const Em=Tn("Directive",(e={})=>e,void 0,void 0,(e,t)=>Dm(e,t)),Im=Tn("Component",(e={})=>Object.assign({changeDetection:N.Default},e),Em,void 0,(e,t)=>Mm(e,t)),xm=Tn("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>Nm(e,t)),Tm=Pn("Input",e=>({bindingPropertyName:e})),Bm=Pn("Output",e=>({bindingPropertyName:e})),km=Pn("HostBinding",e=>({hostPropertyName:e})),Pm=Pn("HostListener",(e,t)=>({eventName:e,args:t})),Om=lm,Fm=cm,Lm=Cm,Mm=Om,Dm=Fm,Nm=Lm,Rm=Tn("NgModule",e=>e,void 0,void 0,(e,t)=>jm(e,t)),Um=Xg,jm=Um,Qm=new Ln("Application Initializer");let Hm=(()=>{class e{constructor(e){this.appInits=e,this.resolve=qd,this.reject=qd,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>
1{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();if(Tc(t))e.push(t);else if(kc(t)){const n=new Promise((e,n)=>{t.subscribe({complete:e,error:n})});e.push(n)}}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(Ar(Qm,8))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();const Vm=new Ln("AppId");function qm(){return`${Gm()}${Gm()}${Gm()}`}const Km={provide:Vm,useFactory:qm,deps:[]};function Gm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const zm=new Ln("Platform Initializer"),Wm=new Ln("Platform ID"),$m=new Ln("appBootstrapListener"),Ym=new Ln("Application Packages Root URL");let Xm=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();const Jm=new Ln("LocaleId"),Zm=new Ln("DefaultCurrencyCode"),ev=new Ln("Translations"),tv=new Ln("TranslationsFormat");var nv=function(e){return e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore",e}({});const rv=!0,iv=rv;class ov{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const sv=function(e){return new Jf(e)},av=sv,lv=function(e){return Promise.resolve(sv(e))},cv=lv,uv=function(e){const t=sv(e),n=co(fe(e).declarations).reduce((e,t)=>{const n=de(t);return n&&e.push(new Vf(n)),e},[]);return new ov(t,n)},hv=uv,dv=function(e){return Promise.resolve(uv(e))},Av=dv;let pv=(()=>{class e{constructor(){this.compileModuleSync=av,this.compileModuleAsync=cv,this.compileModuleAndAllComponentsSync=hv,this.compileModuleAndAllComponentsAsync=Av}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();const fv=new Ln("compilerOptions");class gv{}const mv=(()=>Promise.resolve(0))();function vv(e){"undefined"==typeof Zone?mv.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class yv{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Sg(!1),this.onMicrotaskEmpty=new Sg(!1),this.onStable=new Sg(!1),this.onError=new Sg(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&t,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let e=K.requestAnimationFrame,t=K.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(K,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,wv(e),e.isCheckStableRunning=!0,_v(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),wv(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return Cv(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Sv(e)}},onInvoke:(n,r,i,o,s,a,l)=>{try{return Cv(e),n.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),Sv(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,wv(e),_v(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(r)}
vendor: 4,807 bytes, line 1
1static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!yv.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(yv.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,bv,qd,qd);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const bv={};function _v(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function wv(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Cv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Sv(e){e._nesting--,_v(e)}class Ev{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Sg,this.onMicrotaskEmpty=new Sg,this.onStable=new Sg,this.onError=new Sg}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}let Iv=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{yv.assertNotInAngularZone(),vv(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())vv(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(Ar(yv))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})(),xv=(()=>{class e{constructor(){this._applications=new Map,Pv.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Pv.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();class Tv{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function Bv(e){Pv=e}let kv,Pv=new Tv,Ov=!0,Fv=!1;function Lv(){return Fv=!0,Ov}function Mv(){if(Fv)throw new Error("Cannot enable prod mode after platform setup.");Ov=!1}let Dv=Nv;function Nv(e,t,n){const r=new Jf(n);return Promise.resolve(r)}let Rv=Uv;function Uv(e){return e.isBoundToModule}const jv=new Ln("AllowMultipleToken");class Qv{constructor(e,t){this.name=e,this.token=t}}function Hv(e){if(kv&&!kv.destroyed&&!kv.injector.get(jv,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");kv=e.get(zv);const t=e.get(zm,null);
1return t&&t.forEach(e=>e()),kv}function Vv(e,t,n=[]){const r=`Platform: ${t}`,i=new Ln(r);return(t=[])=>{let o=Gv();if(!o||o.injector.get(jv,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0},{provide:fa,useValue:"platform"});Hv(ka.create({providers:e,name:r}))}return qv(i)}}function qv(e){const t=Gv();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function Kv(){kv&&!kv.destroyed&&kv.destroy()}function Gv(){return kv&&!kv.destroyed?kv:null}let zv=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Ev:("zone.js"===e?void 0:e)||new yv({enableLongStackTrace:Lv(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:yv,useValue:n}];return n.run(()=>{const t=ka.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),o=i.injector.get(Xi,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{o.handleError(e)}});i.onDestroy(()=>{Yv(this._modules,i),e.unsubscribe()})}),function(e,t,n){try{const r=n();return Tc(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(o,n,()=>{const e=i.injector.get(Hm);return e.runInitializers(),e.donePromise.then(()=>(iv&&xh(i.injector.get(Jm,_h)||_h),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const n=Wv({},t);return Dv(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get($v);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${u(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(Ar(ka))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();function Wv(e,t){return Array.isArray(t)?t.reduce(Wv,e):Object.assign(Object.assign({},e),t)}let $v=(()=>{class e{constructor(e,t,n,r,i){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new o.y(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),c=new o.y(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{yv.assertNotInAngularZone(),vv(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{yv.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=(0,s.T)(l,c.pipe((0,a.B)()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializer
1s running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Nd?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=Rv(n)?void 0:this._injector.get(DA),i=n.create(ka.NULL,[],t||n.selector,r),o=i.location.nativeElement,s=i.injector.get(Iv,null),a=s&&i.injector.get(xv);return s&&a&&a.registerApplication(o,s),i.onDestroy(()=>{this.detachView(i.hostView),Yv(this.components,i),a&&a.unregisterApplication(o)}),this._loadComponent(i),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Yv(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get($m,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(Ar(yv),Ar(ka),Ar(Xi),Ar(Qd),Ar(Hm))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();function Yv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Xv{}function Jv(e){const t=Yf(e);if(!t)throw ty(e);return t}function Zv(e){const t=Yf(e);if(!t)throw ty(e);return new Jf(t)}const ey=Zv;function ty(e){return new Error(`No module with ID ${e} loaded`)}class ny{}const ry={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let iy=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||ry}load(e){return!iv&&this._compiler instanceof pv?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n(8255)(t).then(e=>e[r]).then(e=>oy(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n(8255)(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+i]).then(e=>oy(e,t,r))}}return e.\u0275fac=function(t){return new(t||e)(Ar(pv),Ar(ny,8))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e})();function oy(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class sy extends SA{}class ay extends sy{}class ly{constructor(e,t){this.name=e,this.callback=t}}class cy{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof uy&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class uy extends cy{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return dy(this,e,t),t}queryAllNodes(e){const t=[];return Ay(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof uy)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}function hy(e){return e.map(e=>e.nativeElement)}function dy(e,t,n){e.childNodes.forEach(e=>{e instanceof uy&&(t(e)&&n.push(e),dy(e,t,n))})}function Ay(e,t,n){e instanceof uy&&e.childNodes.forEach(e=>
1{t(e)&&n.push(e),e instanceof uy&&Ay(e,t,n)})}class py{constructor(e){this.nativeNode=e}get parent(){const e=this.nativeNode.parentNode;return e?new fy(e):null}get injector(){return Ma(this.nativeNode)}get componentInstance(){const e=this.nativeNode;return e&&(Pa(e)||Fa(e))}get context(){return Pa(this.nativeNode)||Oa(this.nativeNode)}get listeners(){return Ua(this.nativeNode).filter(e=>"dom"===e.type)}get references(){return function(e){const t=Ri(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const n=e[1].data[t];if(n&&n.localNames){const t={};let r=n.index+1;for(let i=0;i<n.localNames.length;i+=2)t[n.localNames[i]]=e[r],r++;return t}return null}(t.lView,t.nodeIndex)),t.localRefs||{})}(this.nativeNode)}get providerTokens(){return function(e){const t=Ri(e);if(null===t)return[];const n=t.lView[1],r=n.data[t.nodeIndex],i=[],o=r.directiveEnd;for(let a=1048575&r.providerIndexes;a<o;a++){let e=n.data[a];void 0!==(s=e).type&&void 0!==s.template&&void 0!==s.declaredInputs&&(e=e.type),i.push(e)}var s;return i}(this.nativeNode)}}class fy extends py{constructor(e){super(e)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const e=Ri(this.nativeNode);return null!==e?e.lView[1].data[e.nodeIndex].value:this.nativeNode.nodeName}get properties(){const e=Ri(this.nativeNode);if(null===e)return{};const t=e.lView,n=t[1].data,r=n[e.nodeIndex],i={};return function(e,t){if(e){let n=Object.getPrototypeOf(e);const r=Node.prototype;for(;null!==n&&n!==r;){const r=Object.getOwnPropertyDescriptors(n);for(let n in r)if(!n.startsWith("__")&&!n.startsWith("on")){const r=e[n];gy(r)&&(t[n]=r)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,i),function(e,t,n,r){let i=t.propertyBindings;if(null!==i)for(let o=0;o<i.length;o++){const t=i[o],s=r[t].split("\ufffd"),a=s[0];if(s.length>1){let r=s[1];for(let e=1;e<s.length-1;e++)r+=m(n[t+e-1])+s[e+1];e[a]=r}else e[a]=n[t]}}(i,r,t,n),i}get attributes(){const e={},t=this.nativeElement;if(!t)return e;const n=Ri(t);if(null===n)return{};const r=n.lView[1].data[n.nodeIndex].attrs,i=[];if(r){let t=0;for(;t<r.length;){const n=r[t];if("string"!=typeof n)break;e[n]=r[t+1],i.push(n.toLowerCase()),t+=2}}const o=t.attributes;for(let s=0;s<o.length;s++){const t=o[s],n=t.name.toLowerCase();-1===i.indexOf(n)&&(e[n]=t.value)}return e}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const e={},t=this.nativeElement.className;return(t&&"string"!=typeof t?t.baseVal.split(" "):t.split(" ")).forEach(t=>e[t]=!0),e}get childNodes(){const e=this.nativeNode.childNodes,t=[];for(let n=0;n<e.length;n++)t.push(Cy(e[n]));return t}get children(){const e=this.nativeElement;if(!e)return[];const t=e.children,n=[];for(let r=0;r<t.length;r++)n.push(Cy(t[r]));return n}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return my(this,e,t,!0),t}queryAllNodes(e){const t=[];return my(this,e,t,!1),t}triggerEventHandler(e,t){const n=this.nativeNode,r=[];this.listeners.forEach(i=>{if(i.name===e){const e=i.callback;e.call(n,t),r.push(e)}}),"function"==typeof n.eventListeners&&n.eventListeners(e).forEach(e=>{if(-1!==e.toString().indexOf("__ngUnwrap__")){const i=e("__ngUnwrap__");return-1===r.indexOf(i)&&i.call(n,t)}})}}function gy(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function my(e,t,n,r){const i=Ri(e.nativeNode);null!==i?vy(i.lView[1].data[i.nodeIndex],i.lView,t,n,r,e.nativeNode):_y(e.nativeNode,t,n,r)}function vy(e,t,n,r,i,o){const s=function(e,t){const n=null===e?-1:e.index;return-1!==n?Qe(t[n]):null}(e,t);if(11&e.type){if(by(s,n,r,i,o),_e(e)){const s=Ge(e.index,t);s&&s[1].firstChild&&vy(s[1].firstChild,s,n,r,i,o)}else e.child&&vy(e.child,t,n,r,i,o),s&&_y(s,n,r,i);const a=t[e.index];ye(a)&&yy(a,n,r,i,o)}else if(4&e.type){const s=t[e.index];by(s[7],n,r,i,o),yy(s,n,r,i,o)}else if(16&e.type){const s=t[16],a=s[6].projection[e.projection];if(Array.isArray(a))for(let e of a)by(e,n,r,i,o);else if(a){const e=s[3];vy(e[1].data[a.index],e,n,r,i,o)}}else e.child&&vy(e.child,t,n,r,i,o);if(o!==s){const s=4&e.flags?e.projectionNext:e.next;s&&vy(s,t,n,r,i,o)}}function yy(e,t,n,r,i){for(let o=me;o<e.length;o++){const s=e[o],a=s[1].firstChild;a&&vy(a,s,t,n,r,i)}}function by(e,t,n,r,i){if(i!==e){const i=Sy(e);if(!i)return;(r&&i instanceof fy&&t(i)&&-1===n.indexOf(i)||!r&&t(i)&&-1===n.indexOf(i))&&n.push(i)}}function _y(e,t,n,r){const i=e.childNodes,o=i.length;for(let s=0;s<o;s++){const e=i[s],o=Sy(e);o&&((r&&o instanceof fy&&t(o)&&-1===n.indexOf(o)||!r&&t(o)&&-1===n.indexOf(o))&&n.push(o),_y(e,t,n,r))}}const wy=new Map;function Cy(e){return e instanceof Node?(e.hasOwnProperty("__ng_debug__")||(e.__ng_debug__=e.nodeType==Node.ELEMENT_NODE?new fy(e):new py(e)),e.__ng_debug__):null}const Sy=Cy;function Ey(e){return function(e){return wy.get(e)||null}(e)}const Iy=function(e){return null};function xy(e){wy.set(e.nativeNode,e)}const Ty=py,By=fy,ky=Vv(null,"core",[{provide:Wm,useValue:"unknown"},{provide:zv,deps:[ka]},{provide:xv,deps:[]},{provide:Xm,deps:[]}]);function Py(){return xA}function Oy(){return TA}function Fy(e){return e=e||iv&&"undefined"!=typeof $localize&&$localize.locale||_h,iv&&xh(e),e}const Ly=wh,My=[{provide:$v,useClass:$v,deps:[yv,ka,Xi,Qd,Hm]},{provide:Hf,deps:[yv],useFactory:Dy},{provide:Hm,useClass:Hm,deps:[[new br,Qm]]}
1,{provide:pv,useClass:pv,deps:[]},Km,{provide:gA,useFactory:Py,deps:[]},{provide:vA,useFactory:Oy,deps:[]},{provide:Jm,useFactory:Fy,deps:[[new yr(Jm),new br,new wr]]},{provide:Zm,useValue:Ly}];function Dy(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}let Ny=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(Ar($v))},e.\u0275mod=ae({type:e}),e.\u0275inj=C({providers:My}),e})();function Ry(e,t,n,r,i,o){e|=1;const{matchedQueries:s,references:a,matchedQueryIds:l}=Ep(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?Bp(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||op},provider:null,text:null,query:null,ngContent:null}}function Uy(e,t,n,r,i,o,s=[],a,l,c,u,h){c||(c=op);const{matchedQueries:d,references:A,matchedQueryIds:p}=Ep(n);let f=null,g=null;o&&([f,g]=Dp(o)),a=a||[];const m=[];for(let b=0;b<a.length;b++){const[e,t,n]=a[b],[r,i]=Dp(t);let o,s;switch(15&e){case 4:s=n;break;case 1:case 8:o=n}m[b]={flags:e,ns:r,name:i,nonMinifiedName:i,securityContext:o,suffix:s}}l=l||[];const v=[];for(let b=0;b<l.length;b++){const[e,t]=l[b];v[b]={type:0,target:e,eventName:t,propName:null}}const y=(s=s||[]).map(([e,t])=>{const[n,r]=Dp(e);return[n,r,t]});return h=function(e){if(e&&e.id===cp){const t=null!=e.encapsulation&&e.encapsulation!==j.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+dp++:up}return e&&e.id===up&&(e=null),e||null}(h),u&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:p,references:A,ngContentIndex:r,childCount:i,bindings:m,bindingFlags:Np(m),outputs:v,element:{ns:f,name:g,attrs:y,template:null,componentProvider:null,componentView:u||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:c||op},provider:null,text:null,query:null,ngContent:null}}function jy(e,t,n){const r=n.element,i=e.root.selectorOrNode,o=e.renderer;let s;if(e.parent||!i){s=r.name?o.createElement(r.name,r.ns):o.createComment("");const i=xp(e,t,n);i&&o.appendChild(i,s)}else s=o.selectRootElement(i,!!r.componentRendererType&&r.componentRendererType.encapsulation===j.ShadowDom);if(r.attrs)for(let a=0;a<r.attrs.length;a++){const[e,t,n]=r.attrs[a];o.setAttribute(s,t,n,e)}return s}function Qy(e,t,n,r){for(let s=0;s<n.outputs.length;s++){const a=n.outputs[s],l=Hy(e,n.nodeIndex,(o=a.eventName,(i=a.target)?`${i}:${o}`:o));let c=a.target,u=e;"component"===a.target&&(c=null,u=t);const h=u.renderer.listen(c||r,a.eventName,l);e.disposables[n.outputIndex+s]=h}var i,o}function Hy(e,t,n){return r=>vp(e,t,n,r)}function Vy(e,t,n,r){if(!pp(e,t,n,r))return!1;const i=t.bindings[n],o=ZA(e,t.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,o){const s=t.securityContext;let a=s?e.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;const l=e.renderer;null!=o?l.setAttribute(n,i,a,r):l.removeAttribute(n,i,r)}(e,i,s,i.ns,a,r);break;case 2:!function(e,t,n,r){const i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,s,a,r);break;case 4:!function(e,t,n,r,i){let o=e.root.sanitizer.sanitize(xi.STYLE,i);if(null!=o){o=o.toString();const e=t.suffix;null!=e&&(o+=e)}else o=null;const s=e.renderer;null!=o?s.setStyle(n,r,o):s.removeStyle(n,r)}(e,i,s,a,r);break;case 8:!function(e,t,n,r,i){const o=t.securityContext;let s=o?e.root.sanitizer.sanitize(o,i):i;e.renderer.setProperty(n,r,s)}(33554432&t.flags&&32&i.flags?o.componentView:e,i,s,a,r)}return!0}
1function qy(e,t,n){let r=[];for(let i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:Sp(t),bindings:r},ngContent:null}}function Ky(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&Cp(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let i=0;i<=r;i++){const r=e.def.nodes[i];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&np(e,i).setDirty(),!(1&r.flags&&i+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(i+=r.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&np(e,n).setDirty(),n+=t.childCount}}function Gy(e,t){const n=np(e,t.nodeIndex);if(!n.dirty)return;let r,i;if(67108864&t.flags){const n=t.parent.parent;i=zy(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=ep(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=zy(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i,Yd);const o=t.query.bindings;let s=!1;for(let a=0;a<o.length;a++){const e=o[a];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,s=!0}r[e.propName]=t}s&&n.notifyOnChanges()}function zy(e,t,n,r,i){for(let o=t;o<=n;o++){const t=e.def.nodes[o],n=t.matchedQueries[r.id];if(null!=n&&i.push(Wy(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=ZA(e,o);if((t.childMatchedQueries&r.filterId)===r.filterId&&(zy(e,o+1,o+t.childCount,r,i),o+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const o=e[t],s=yp(o);s&&s===n&&zy(o,0,o.def.nodes.length-1,r,i)}}const s=n.template._projectedViews;if(s)for(let e=0;e<s.length;e++){const t=s[e];zy(t,0,t.def.nodes.length-1,r,i)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(o+=t.childCount)}return i}function Wy(e,t,n){if(null!=n)switch(n){case 1:return ZA(e,t.nodeIndex).renderElement;case 0:return new $d(ZA(e,t.nodeIndex).renderElement);case 2:return ZA(e,t.nodeIndex).template;case 3:return ZA(e,t.nodeIndex).viewContainer;case 4:return ep(e,t.nodeIndex).instance}}function $y(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function Yy(e,t,n){const r=xp(e,t,n);r&&Op(e,n.ngContent.index,1,r,null,void 0)}function Xy(e,t){return eb(128,e,$n(t+1))}function Jy(e,t){return eb(32,e,$n(t))}function Zy(e,t){const n=Object.keys(t),r=n.length,i=[];for(let o=0;o<r;o++)i.push(n[o]);return eb(64,e,i)}function eb(e,t,n){const r=[];for(let i=0;i<n.length;i++){const e=n[i];r.push({flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:Np(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function tb(e,t,n){const r=[];for(let i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function nb(e,t,n){let r;const i=e.renderer;r=i.createText(n.text.prefix);
vendor: 2,605 bytes, line 1
1const o=xp(e,t,n);return o&&i.appendChild(o,r),{renderText:r}}function rb(e,t){return(null!=e?e.toString():"")+t.suffix}function ib(e,t,n,r){let i=0,o=0,s=0,a=0,l=0,c=null,u=null,h=!1,d=!1,A=null;for(let p=0;p<t.length;p++){const e=t[p];if(e.nodeIndex=p,e.parent=c,e.bindingIndex=i,e.outputIndex=o,e.renderParent=u,s|=e.flags,l|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=c?c.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,h=!1,d=!1,e.element.template&&(l|=e.element.template.nodeMatchedQueries)}if(sb(c,e,t.length),i+=e.bindings.length,o+=e.outputs.length,!u&&3&e.flags&&(A=e),20224&e.flags){h||(h=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?c.element.publicProviders[ap(e.provider.token)]=e:(d||(d=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[ap(e.provider.token)]=e),t&&(c.element.componentProvider=e)}if(c?(c.childFlags|=e.flags,c.directChildFlags|=e.flags,c.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(c.childMatchedQueries|=e.element.template.nodeMatchedQueries)):a|=e.flags,e.childCount>0)c=e,ob(e)||(u=e);else for(;c&&p===c.nodeIndex+c.childCount;){const e=c.parent;e&&(e.childFlags|=c.childFlags,e.childMatchedQueries|=c.childMatchedQueries),c=e,u=c&&ob(c)?c.renderParent:c}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||op,updateRenderer:r||op,handleEvent:(e,n,r,i)=>t[n].element.handleEvent(e,r,i),bindingCount:i,outputCount:o,lastRenderRootNode:A}}function ob(e){return 0!=(1&e.flags)&&null===e.element.name}function sb(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;
1if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function ab(e,t,n,r){const i=ub(e.root,e.renderer,e,t,n);return hb(i,e.component,r),db(i),i}function lb(e,t,n){const r=ub(e,e.renderer,null,null,t);return hb(r,n,n),db(r),r}function cb(e,t,n,r){const i=t.element.componentRendererType;let o;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,ub(e.root,o,e,t.element.componentProvider,n)}function ub(e,t,n,r,i){const o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function hb(e,t,n){e.component=t,e.context=n}function db(e){let t;wp(e)&&(t=ZA(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let i=0;i<n.nodes.length;i++){const o=n.nodes[i];let s;switch(ip.setCurrentNode(e,i),201347067&o.flags){case 1:const n=jy(e,t,o);let a;if(33554432&o.flags){const t=Bp(o.element.componentView);a=ip.createComponentView(e,o,t,n)}Qy(e,a,o,n),s={renderElement:n,componentView:a,viewContainer:null,template:o.element.template?cf(e,o):void 0},16777216&o.flags&&(s.viewContainer=of(e,o,s));break;case 2:s=nb(e,t,o);break;case 512:case 1024:case 2048:case 256:s=r[i],s||4096&o.flags||(s={instance:xf(e,o)});break;case 16:s={instance:Tf(e,o)};break;case 16384:s=r[i],s||(s={instance:Bf(e,o)}),32768&o.flags&&hb(ZA(e,o.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new Ig(-2147483648==(-2147483648&o.flags));break;case 8:Yy(e,t,o),s=void 0}r[i]=s}_b(e,bb.CreateViewNodes),Eb(e,201326592,268435456,0)}function Ab(e){gb(e),ip.updateDirectives(e,1),wb(e,bb.CheckNoChanges),ip.updateRenderer(e,1),_b(e,bb.CheckNoChanges),e.state&=-97}function pb(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,YA(e,0,256),gb(e),ip.updateDirectives(e,0),wb(e,bb.CheckAndUpdate),Eb(e,67108864,536870912,0);let t=YA(e,256,512);Nf(e,2097152|(t?1048576:0)),ip.updateRenderer(e,0),_b(e,bb.CheckAndUpdate),Eb(e,134217728,536870912,0),t=YA(e,512,768),Nf(e,8388608|(t?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,YA(e,768,1024)}function fb(e,t,n,r,i,o,s,a,l,c,u,h,d){return 0===n?function(e,t,n,r,i,o,s,a,l,c,u,h){switch(201347067&t.flags){case 1:return function(e,t,n,r,i,o,s,a,l,c,u,h){const d=t.bindings.length;let A=!1;return d>0&&Vy(e,t,0,n)&&(A=!0),d>1&&Vy(e,t,1,r)&&(A=!0),d>2&&Vy(e,t,2,i)&&(A=!0),d>3&&Vy(e,t,3,o)&&(A=!0),d>4&&Vy(e,t,4,s)&&(A=!0),d>5&&Vy(e,t,5,a)&&(A=!0),d>6&&Vy(e,t,6,l)&&(A=!0),d>
vendor: 13,246 bytes, line 1
17&&Vy(e,t,7,c)&&(A=!0),d>8&&Vy(e,t,8,u)&&(A=!0),d>9&&Vy(e,t,9,h)&&(A=!0),A}(e,t,n,r,i,o,s,a,l,c,u,h);case 2:return function(e,t,n,r,i,o,s,a,l,c,u,h){let d=!1;const A=t.bindings,p=A.length;if(p>0&&pp(e,t,0,n)&&(d=!0),p>1&&pp(e,t,1,r)&&(d=!0),p>2&&pp(e,t,2,i)&&(d=!0),p>3&&pp(e,t,3,o)&&(d=!0),p>4&&pp(e,t,4,s)&&(d=!0),p>5&&pp(e,t,5,a)&&(d=!0),p>6&&pp(e,t,6,l)&&(d=!0),p>7&&pp(e,t,7,c)&&(d=!0),p>8&&pp(e,t,8,u)&&(d=!0),p>9&&pp(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;p>0&&(d+=rb(n,A[0])),p>1&&(d+=rb(r,A[1])),p>2&&(d+=rb(i,A[2])),p>3&&(d+=rb(o,A[3])),p>4&&(d+=rb(s,A[4])),p>5&&(d+=rb(a,A[5])),p>6&&(d+=rb(l,A[6])),p>7&&(d+=rb(c,A[7])),p>8&&(d+=rb(u,A[8])),p>9&&(d+=rb(h,A[9]));const f=JA(e,t.nodeIndex).renderText;e.renderer.setValue(f,d)}return d}(e,t,n,r,i,o,s,a,l,c,u,h);case 16384:return function(e,t,n,r,i,o,s,a,l,c,u,h){const d=ep(e,t.nodeIndex),A=d.instance;let p,f=!1;const g=t.bindings.length;return g>0&&Ap(e,t,0,n)&&(f=!0,p=Df(e,d,t,0,n,p)),g>1&&Ap(e,t,1,r)&&(f=!0,p=Df(e,d,t,1,r,p)),g>2&&Ap(e,t,2,i)&&(f=!0,p=Df(e,d,t,2,i,p)),g>3&&Ap(e,t,3,o)&&(f=!0,p=Df(e,d,t,3,o,p)),g>4&&Ap(e,t,4,s)&&(f=!0,p=Df(e,d,t,4,s,p)),g>5&&Ap(e,t,5,a)&&(f=!0,p=Df(e,d,t,5,a,p)),g>6&&Ap(e,t,6,l)&&(f=!0,p=Df(e,d,t,6,l,p)),g>7&&Ap(e,t,7,c)&&(f=!0,p=Df(e,d,t,7,c,p)),g>8&&Ap(e,t,8,u)&&(f=!0,p=Df(e,d,t,8,u,p)),g>9&&Ap(e,t,9,h)&&(f=!0,p=Df(e,d,t,9,h,p)),p&&A.ngOnChanges(p),65536&t.flags&&XA(e,256,t.nodeIndex)&&A.ngOnInit(),262144&t.flags&&A.ngDoCheck(),f}(e,t,n,r,i,o,s,a,l,c,u,h);case 32:case 64:case 128:return function(e,t,n,r,i,o,s,a,l,c,u,h){const d=t.bindings;let A=!1;const p=d.length;if(p>0&&pp(e,t,0,n)&&(A=!0),p>1&&pp(e,t,1,r)&&(A=!0),p>2&&pp(e,t,2,i)&&(A=!0),p>3&&pp(e,t,3,o)&&(A=!0),p>4&&pp(e,t,4,s)&&(A=!0),p>5&&pp(e,t,5,a)&&(A=!0),p>6&&pp(e,t,6,l)&&(A=!0),p>7&&pp(e,t,7,c)&&(A=!0),p>8&&pp(e,t,8,u)&&(A=!0),p>9&&pp(e,t,9,h)&&(A=!0),A){const A=tp(e,t.nodeIndex);let f;switch(201347067&t.flags){case 32:f=[],p>0&&f.push(n),p>1&&f.push(r),p>2&&f.push(i),p>3&&f.push(o),p>4&&f.push(s),p>5&&f.push(a),p>6&&f.push(l),p>7&&f.push(c),p>8&&f.push(u),p>9&&f.push(h);break;case 64:f={},p>0&&(f[d[0].name]=n),p>1&&(f[d[1].name]=r),p>2&&(f[d[2].name]=i),p>3&&(f[d[3].name]=o),p>4&&(f[d[4].name]=s),p>5&&(f[d[5].name]=a),p>6&&(f[d[6].name]=l),p>7&&(f[d[7].name]=c),p>8&&(f[d[8].name]=u),p>9&&(f[d[9].name]=h);break;case 128:const e=n;switch(p){case 1:f=e.transform(n);break;case 2:f=e.transform(r);break;case 3:f=e.transform(r,i);break;case 4:f=e.transform(r,i,o);break;case 5:f=e.transform(r,i,o,s);break;case 6:f=e.transform(r,i,o,s,a);break;case 7:f=e.transform(r,i,o,s,a,l);break;case 8:f=e.transform(r,i,o,s,a,l,c);break;case 9:f=e.transform(r,i,o,s,a,l,c,u);break;case 10:f=e.transform(r,i,o,s,a,l,c,u,h)}}A.value=f}return A}(e,t,n,r,i,o,s,a,l,c,u,h);default:throw"unreachable"}}(e,t,r,i,o,s,a,l,c,u,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let i=0;i<n.length;i++)Vy(e,t,i,n[i])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let i=!1;for(let o=0;o<n.length;o++)pp(e,t,o,n[o])&&(i=!0);if(i){let i="";for(let e=0;e<n.length;e++)i+=rb(n[e],r[e]);i=t.text.prefix+i;const o=JA(e,t.nodeIndex).renderText;e.renderer.setValue(o,i)}return i}(e,t,n);case 16384:return function(e,t,n){const r=ep(e,t.nodeIndex),i=r.instance;let o,s=!1;for(let a=0;a<n.length;a++)Ap(e,t,a,n[a])&&(s=!0,o=Df(e,r,t,a,n[a],o));return o&&i.ngOnChanges(o),65536&t.flags&&XA(e,256,t.nodeIndex)&&i.ngOnInit(),262144&t.flags&&i.ngDoCheck(),s}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let i=!1;for(let o=0;o<n.length;o++)pp(e,t,o,n[o])&&(i=!0);if(i){const i=tp(e,t.nodeIndex);let o;switch(201347067&t.flags){case 32:o=n;break;case 64:o={};for(let i=0;i<n.length;i++)o[r[i].name]=n[i];break;case 128:const e=n[0],t=n.slice(1);o=e.transform(...t)}i.value=o}return i}(e,t,n);default:throw"unreachable"}}(e,t,r)}function gb(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=ZA(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,mp(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function mb(e,t,n,r,i,o,s,a,l,c,u,h,d){return 0===n?function(e,t,n,r,i,o,s,a,l,c,u,h){const d=t.bindings.length;d>0&&fp(e,t,0,n),d>1&&fp(e,t,1,r),d>2&&fp(e,t,2,i),d>3&&fp(e,t,3,o),d>4&&fp(e,t,4,s),d>5&&fp(e,t,5,a),d>6&&fp(e,t,6,l),d>7&&fp(e,t,7,c),d>8&&fp(e,t,8,u),d>9&&fp(e,t,9,h)}(e,t,r,i,o,s,a,l,c,u,h,d):function(e,t,n){for(let r=0;r<n.length;r++)fp(e,t,r,n[r])}(e,t,r),!1}function vb(e,t){if(np(e,t.nodeIndex).dirty)throw zA(ip.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function yb(e){if(!(128&e.state)){if(wb(e,bb.Destroy),_b(e,bb.Destroy),Nf(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=yp(e);if(t){const n=t.template._projectedViews;n&&(Wn(n,n.indexOf(e)),ip.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(ZA(e,n).renderElement):2&t.flags?e.renderer.destroyNode(JA(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&np(e,n).destroy()}}(e),wp(e)&&e.renderer.destroy(),e.state|=128}}var bb=function(e){return e[e.CreateViewNodes=0]="CreateViewNodes",e[e.CheckNoChanges=1]="CheckNoChanges",e[e.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate=3]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",e[e.Destroy=5]="Destroy",e}({});function _b(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];33554432&i.flags?Cb(ZA(e,r).componentView,t):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function wb(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];if(16777216&i.flags){const n=ZA(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)Cb(n[e],t)}else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Cb(e,t){const n=e.state;switch(t){case bb.CheckNoChanges:0==(128&n)&&(12==(12&n)?Ab(e):64&n&&Sb(e,bb.CheckNoChangesProjectedViews));break;case bb.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Ab(e):64&n&&Sb(e,t));break;case bb.CheckAndUpdate:0==(128&n)&&(12==(12&n)?pb(e):64&n&&Sb(e,bb.CheckAndUpdateProjectedViews));break;case bb.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?pb(e):64&n&&Sb(e,t));break;case bb.Destroy:yb(e);break;case bb.CreateViewNodes:db(e)}}function Sb(e,t){wb(e,t),_b(e,t)}function Eb(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const i=e.def.nodes.length;for(let o=0;o<i;o++){const i=e.def.nodes[o];if(i.flags&t&&i.flags&n)switch(ip.setCurrentNode(e,i.nodeIndex),r){case 0:Gy(e,i);break;case 1:vb(e,i)}i.childFlags&t&&i.childFlags&n||(o+=i.childCount)}}let Ib=!1;function xb(){if(Ib)return;Ib=!0;const e=Lv()?{setCurrentNode:Yb,createRootView:Bb,createEmbeddedView:Pb,createComponentView:Ob,createNgModuleRef:Fb,overrideProvider:Nb,overrideComponentView:Rb,clearOverrides:Ub,checkAndUpdateView:Vb,checkNoChangesView:qb,destroyView:Kb,createDebugContext:(e,t)=>new i_(e,t),handleEvent:Xb,updateDirectives:Jb,updateRenderer:Zb}:{setCurrentNode:()=>{},createRootView:Tb,createEmbeddedView:ab,createComponentView:cb,createNgModuleRef:pf,overrideProvider:op,overrideComponentView:op,clearOverrides:op,checkAndUpdateView:pb,checkNoChangesView:Ab,destroyView:yb,createDebugContext:(e,t)=>new i_(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?Qb:Hb,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?Qb:Hb,e)};ip.setCurrentNode=e.setCurrentNode,ip.createRootView=e.createRootView,ip.createEmbeddedView=e.createEmbeddedView,ip.createComponentView=e.createComponentView,ip.createNgModuleRef=e.createNgModuleRef,ip.overrideProvider=e.overrideProvider,ip.overrideComponentView=e.overrideComponentView,ip.clearOverrides=e.clearOverrides,ip.checkAndUpdateView=e.checkAndUpdateView,ip.checkNoChangesView=e.checkNoChangesView,ip.destroyView=e.destroyView,ip.resolveDep=Lf,ip.createDebugContext=e.createDebugContext,ip.handleEvent=e.handleEvent,ip.updateDirectives=e.updateDirectives,ip.updateRenderer=e.updateRenderer,ip.dirtyParentQueries=Ky}function Tb(e,t,n,r,i,o){const s=i.injector.get(Xd);return lb(kb(e,i,s,t,n),r,o)}function Bb(e,t,n,r,i,o){const s=i.injector.get(Xd),a=kb(e,i,new l_(s),t,n),l=jb(r);return s_(Gb.create,lb,null,[a,l,o])}function kb(e,t,n,r,i){const o=t.injector.get(nA),s=t.injector.get(Xi),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:a,errorHandler:s}}function Pb(e,t,n,r){const i=jb(n);return s_(Gb.create,ab,null,[e,t,i,r])}function Ob(e,t,n,r){return n=Db.get(t.element.componentProvider.provider.token)||jb(n),s_(Gb.create,cb,null,[e,t,n,r])}function Fb(e,t,n,r){return pf(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===Lb.size||(e.providers.forEach(e=>{const r=Lb.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{Mb.forEach((r,i)=>{p(S(i).providedIn)===e&&(t=!0,n=n||r.deprecatedBehavior)})})),{hasOverrides:t,hasDeprecatedOverrides:n}}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const i=Lb.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=Ip(i.deps),r.value=i.value)}if(Mb.size>0){let t=new Set(e.modules);Mb.forEach((r,i)=>{if(t.has(p(S(i).providedIn))){let t={token:i,flags:r.flags|(n?4096:0),deps:Ip(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[ap(i)]=t}})}}(e=e.factory(()=>op)),e):e}(r))}const Lb=new Map,Mb=new Map,Db=new Map;function Nb(e){let t;Lb.set(e.token,e),"function"==typeof e.token&&(t=S(e.token))&&"function"==typeof t.providedIn&&Mb.set(e.token,e)}function Rb(e,t){const n=Bp(tf(t)),r=Bp(n.nodes[0].element.componentView);Db.set(e,r)}function Ub(){Lb.clear(),Mb.clear(),Db.clear()}function jb(e){if(0===Lb.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;r<e.nodes.length;r++){const i=e.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Lb.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>op);for(let r=0;r<t.length;r++)n(e,t[r]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=Lb.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=Ip(n.deps),e.value=n.value)}}}}function Qb(e,t,n,r,i,o,s,a,l,c,u,h,d){const A=e.def.nodes[t];return fb(e,A,n,r,i,o,s,a,l,c,u,h,d),224&A.flags?tp(e,t).value:void 0}function Hb(e,t,n,r,i,o,s,a,l,c,u,h,d){const A=e.def.nodes[t];return mb(e,A,n,r,i,o,s,a,l,c,u,h,d),224&A.flags?tp(e,t).value:void 0}function Vb(e){return s_(Gb.detectChanges,pb,null,[e])}function qb(e){return s_(Gb.checkNoChanges,Ab,null,[e])}function Kb(e){return s_(Gb.destroy,yb,null,[e])}var Gb=function(e){return e[e.create=0]="create",e[e.detectChanges=1]="detectChanges",e[e.checkNoChanges=2]="checkNoChanges",e[e.destroy=3]="destroy",e[e.handleEvent=4]="handleEvent",e}({});let zb,Wb,$b;function Yb(e,t){Wb=e,$b=t}function Xb(e,t,n,r){return Yb(e,t),s_(Gb.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function Jb(e,t){if(128&e.state)throw $A(Gb[zb]);return Yb(e,n_(e,0)),e.def.updateDirectives(function(e,n,r,...i){const o=e.def.nodes[n];return 0===t?e_(e,o,r,i):t_(e,o,r,i),16384&o.flags&&Yb(e,n_(e,n)),224&o.flags?tp(e,o.nodeIndex).value:void 0},e)}function Zb(e,t){if(128&e.state)throw $A(Gb[zb]);return Yb(e,r_(e,0)),e.def.updateRenderer(function(e,n,r,...i){const o=e.def.nodes[n];return 0===t?e_(e,o,r,i):t_(e,o,r,i),3&o.flags&&Yb(e,r_(e,n)),224&o.flags?tp(e,o.nodeIndex).value:void 0},e)}function e_(e,t,n,r){if(fb(e,t,n,...r)){const s=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],a=s[e];8&r.flags&&(n[(i=r.nonMinifiedName,o=void 0,o=i.replace(/[$@]/g,"_"),`ng-reflect-${i=o.replace(ro,(...e)=>"-"+e[1].toLowerCase())}`)]=io(a))}const r=t.parent,a=ZA(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(a,t,r):e.renderer.removeAttribute(a,t)}else e.renderer.setValue(a,no(`bindings=${JSON.stringify(n,null,2)}`))}}var i,o}function t_(e,t,n,r){mb(e,t,n,...r)}function n_(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function r_(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class i_{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,r=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=bp(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return ZA(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return hf(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];
1if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){o_(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&o_(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!wp(e);)e=e.parent;return e.parent?ZA(e.parent,bp(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?_p(this.view,this.nodeDef):_p(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const i=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let o=-1;n.factory(()=>(o++,o===i?e.error.bind(e,...t):op)),o<i&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function o_(e,t,n){for(let r in t.references)n[r]=Wy(e,t,t.references[r])}function s_(e,t,n,r){const i=zb,o=Wb,s=$b;try{zb=e;const a=t.apply(n,r);return Wb=o,$b=s,zb=i,a}catch(c){if(Wi(c)||!Wb)throw c;throw a=c,l=a_(),a instanceof Error||(a=new Error(a.toString())),WA(a,l),a}var a,l}function a_(){return Wb?new i_(Wb,$b):null}class l_{constructor(e){this.delegate=e}createRenderer(e,t){return new c_(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class c_{constructor(e){this.delegate=e,this.debugContextFactory=a_,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){const t=Sy(e);t&&(function(e){wy.delete(e.nativeNode)}(t),t instanceof cy&&(t.listeners.length=0)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new uy(n,null,r);t.name=e,xy(t)}return n}createComment(e){const t=this.delegate.createComment(no(e)),n=this.createDebugContext(t);return n&&xy(new cy(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&xy(new cy(t,null,n)),t}appendChild(e,t){const n=Sy(e),r=Sy(t);n&&r&&n instanceof uy&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n,r){const i=Sy(e),o=Sy(t),s=Sy(n);i&&o&&i instanceof uy&&i.insertBefore(s,o),this.delegate.insertBefore(e,t,n,r)}removeChild(e,t){const n=Sy(e),r=Sy(t);n&&r&&n instanceof uy&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=a_();return r&&xy(new uy(n,null,r)),n}setAttribute(e,t,n,r){const i=Sy(e);i&&i instanceof uy&&(i.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=Sy(e);r&&r instanceof uy&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=Sy(e);n&&n instanceof uy&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=Sy(e);n&&n instanceof uy&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const i=Sy(e);i&&i instanceof uy&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=Sy(e);r&&r instanceof uy&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=Sy(e);r&&r instanceof uy&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=Sy(e);r&&r.listeners.push(new ly(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function u_(e){return xb(),ip.overrideProvider(e)}function h_(e,t){return xb(),ip.overrideComponentView(e,t)}function d_(){return xb(),ip.clearOverrides()}function A_(e,t,n){return new p_(e,t,n)}class p_ extends NA{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){xb();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,scope:e.scope,providers:t,modules:n,providersByKey:r}}
1(Bp(this._ngModuleDefFactory));return ip.createNgModuleRef(this.moduleType,e||ka.NULL,this._bootstrapComponents,t)}}function f_(e){return Hn().compileDirectiveDeclaration(qg,`ng:///${e.type.name}/\u0275fac.js`,e)}function g_(e){var t,n;Kf(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function m_(e){return Hn().compileComponentDeclaration(qg,`ng:///${e.type.name}/\u0275cmp.js`,e)}function v_(e){return Hn().compileFactoryDeclaration(qg,`ng:///${e.type.name}/\u0275fac.js`,e)}function y_(e){return Hn().compileInjectableDeclaration(qg,`ng:///${e.type.name}/\u0275prov.js`,e)}function b_(e){return Hn().compileInjectorDeclaration(qg,`ng:///${e.type.name}/\u0275inj.js`,e)}function __(e){return Hn().compileNgModuleDeclaration(qg,`ng:///${e.type.name}/\u0275mod.js`,e)}function w_(e){return Hn().compilePipeDeclaration(qg,`ng:///${e.type.name}/\u0275pipe.js`,e)}},2346:(e,t,n)=>{"use strict";n.d(t,{hO:()=>I,xv:()=>y,Dh:()=>v,HU:()=>A,GT:()=>m,sI:()=>S,on:()=>_,ss:()=>p,pX:()=>g,yq:()=>w});var r=n(8489),i=n(8569),o=n(4019),s=n(2893),a=n(45),l=n(5366),c=n(1858);function u(){}e=n.hmd(e);class h{constructor(e,t=r.N){this.zone=e,this.delegate=t}now(){return this.delegate.now()}schedule(e,t,n){const r=this.zone;return this.delegate.schedule(function(t){r.runGuarded(()=>{e.apply(this,[t])})},t,n)}}class d{constructor(e){this.zone=e,this.task=null}call(e,t){const n=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",u,{},u,u)),t.pipe((0,o.b)({next:n,complete:n,error:n})).subscribe(e).add(n)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}class A{constructor(e){this.ngZone=e,this.outsideAngular=e.runOutsideAngular(()=>new h(Zone.current)),this.insideAngular=e.run(()=>new h(Zone.current,i.z))}}function p(e){return function(t){return(t=t.lift(new d(e.ngZone))).pipe((0,s.R)(e.outsideAngular),(0,a.QV)(e.insideAngular))}}const f=["ngOnDestroy"],g=(e,t,n,r={})=>new Proxy(e,{get:(i,o)=>n.runOutsideAngular(()=>{var i;if(e[o])return(null===(i=null==r?void 0:r.spy)||void 0===i?void 0:i.get)&&r.spy.get(o,e[o]),e[o];if(f.indexOf(o)>-1)return()=>{};const s=t.toPromise().then(e=>{const t=e&&e[o];return"function"==typeof t?t.bind(e):t&&t.then?t.then(e=>n.run(()=>e)):n.run(()=>t)});return new Proxy(()=>{},{get:(e,t)=>s[t],apply:(e,t,n)=>s.then(e=>{var t;const i=e&&e(...n);return(null===(t=null==r?void 0:r.spy)||void 0===t?void 0:t.apply)&&r.spy.apply(o,n,i),i})})})}),m=(e,t)=>{t.forEach(t=>{Object.getOwnPropertyNames(t.prototype||t).forEach(n=>{Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t.prototype||t,n))})})},v=new l.InjectionToken("angularfire2.app.options"),y=new l.InjectionToken("angularfire2.app.nameOrConfig"),b=new l.Version("6.1.5");function _(t,n,r){const i="object"==typeof r&&r||{};i.name=i.name||"string"==typeof r&&r||"[DEFAULT]";const o=c.Z.apps.filter(e=>e&&e.name===i.name)[0]||n.runOutsideAngular(()=>c.Z.initializeApp(t,i));try{JSON.stringify(t)!==JSON.stringify(o.options)&&C("error",`${o.name} Firebase App already initialized with different options${e.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch(s){}return o}const w=()=>{C("warn","You may need to import 'firebase/auth' manually in your component rather than rely on AngularFireAuth's dynamic import, when using the emulator suite https://github.com/angular/angularfire/issues/2656")},C=(e,...t)=>{(0,l.isDevMode)()&&"undefined"!=typeof console&&console[e](...t)};function S(t,n,r,i,o){const[s,...a]=globalThis.\u0275AngularfireInstanceCache.get(t)||[];if(s){try{o.some((e,t)=>{const n=a[t];return e&&"object"==typeof e?JSON.stringify(e)!==JSON.stringify(n):e!==n})&&C("error",`${n} was already initialized on the ${r.name} Firebase App instance with different settings.${e.hot?" You may need to reload as Firebase is not HMR aware.":""}`)}catch(l){}return s}{const e=i();return globalThis.\u0275AngularfireInstanceCache.set(t,[e,...o]),e}}globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=new Map);const E={provide:class{},useFactory:_,deps:[v,l.NgZone,[new l.Optional,y]]};let I=(()=>{class e{constructor(e){c.Z.registerVersion("angularfire",b.full,e.toString()),c.Z.registerVersion("angular",l.VERSION.full)}static initializeApp(t,n){return{ngModule:e,providers:[{provide:v,useValue:t},{provide:y,useValue:n}]}}}return e.\u0275fac=function(t){return new(t||e)(l["\u0275\u0275inject"](l.PLATFORM_ID))},e.\u0275mod=l["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=l["\u0275\u0275defineInjector"]({providers:[E]}),e})()}
1,1462:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AbstractControl:()=>be,AbstractControlDirective:()=>G,AbstractFormGroupDirective:()=>xe,COMPOSITION_BUFFER_MODE:()=>m,CheckboxControlValueAccessor:()=>f,CheckboxRequiredValidator:()=>gt,ControlContainer:()=>z,DefaultValueAccessor:()=>v,EmailValidator:()=>vt,FormArray:()=>Ce,FormArrayName:()=>Ye,FormBuilder:()=>Pt,FormControl:()=>_e,FormControlDirective:()=>qe,FormControlName:()=>Ze,FormGroup:()=>we,FormGroupDirective:()=>Ge,FormGroupName:()=>We,FormsModule:()=>Bt,MaxLengthValidator:()=>wt,MaxValidator:()=>ut,MinLengthValidator:()=>bt,MinValidator:()=>dt,NG_ASYNC_VALIDATORS:()=>w,NG_VALIDATORS:()=>_,NG_VALUE_ACCESSOR:()=>A,NgControl:()=>W,NgControlStatus:()=>X,NgControlStatusGroup:()=>J,NgForm:()=>Ie,NgModel:()=>Oe,NgModelGroup:()=>Be,NgSelectOption:()=>rt,NumberValueAccessor:()=>Me,PatternValidator:()=>St,RadioControlValueAccessor:()=>Ue,RangeValueAccessor:()=>Qe,ReactiveFormsModule:()=>kt,RequiredValidator:()=>ft,SelectControlValueAccessor:()=>nt,SelectMultipleControlValueAccessor:()=>st,VERSION:()=>Ot,Validators:()=>S,"\u0275InternalFormsSharedModule":()=>Tt,"\u0275NgNoValidate":()=>Fe,"\u0275NgSelectMultipleOption":()=>at,"\u0275angular_packages_forms_forms_a":()=>Et,"\u0275angular_packages_forms_forms_b":()=>It,"\u0275angular_packages_forms_forms_ba":()=>at,"\u0275angular_packages_forms_forms_bb":()=>Fe,"\u0275angular_packages_forms_forms_bc":()=>ct,"\u0275angular_packages_forms_forms_bd":()=>ht,"\u0275angular_packages_forms_forms_be":()=>At,"\u0275angular_packages_forms_forms_bf":()=>pt,"\u0275angular_packages_forms_forms_bg":()=>mt,"\u0275angular_packages_forms_forms_bh":()=>yt,"\u0275angular_packages_forms_forms_bi":()=>_t,"\u0275angular_packages_forms_forms_bj":()=>Ct,"\u0275angular_packages_forms_forms_bk":()=>E,"\u0275angular_packages_forms_forms_bl":()=>I,"\u0275angular_packages_forms_forms_bm":()=>x,"\u0275angular_packages_forms_forms_bn":()=>T,"\u0275angular_packages_forms_forms_bo":()=>B,"\u0275angular_packages_forms_forms_bp":()=>k,"\u0275angular_packages_forms_forms_bq":()=>P,"\u0275angular_packages_forms_forms_br":()=>O,"\u0275angular_packages_forms_forms_bs":()=>F,"\u0275angular_packages_forms_forms_c":()=>xt,"\u0275angular_packages_forms_forms_d":()=>Tt,"\u0275angular_packages_forms_forms_e":()=>p,"\u0275angular_packages_forms_forms_f":()=>h,"\u0275angular_packages_forms_forms_g":()=>d,"\u0275angular_packages_forms_forms_h":()=>g,"\u0275angular_packages_forms_forms_i":()=>$,"\u0275angular_packages_forms_forms_j":()=>Y,"\u0275angular_packages_forms_forms_k":()=>Se,"\u0275angular_packages_forms_forms_l":()=>ke,"\u0275angular_packages_forms_forms_m":()=>Te,"\u0275angular_packages_forms_forms_n":()=>Le,"\u0275angular_packages_forms_forms_o":()=>De,"\u0275angular_packages_forms_forms_p":()=>Ne,"\u0275angular_packages_forms_forms_q":()=>Re,"\u0275angular_packages_forms_forms_r":()=>je,"\u0275angular_packages_forms_forms_s":()=>He,"\u0275angular_packages_forms_forms_t":()=>Ve,"\u0275angular_packages_forms_forms_u":()=>Je,"\u0275angular_packages_forms_forms_v":()=>Ke,"\u0275angular_packages_forms_forms_w":()=>ze,"\u0275angular_packages_forms_forms_x":()=>$e,"\u0275angular_packages_forms_forms_y":()=>et,"\u0275angular_packages_forms_forms_z":()=>it});var r=n(5366),i=n(1116),o=n(1784),s=n(8470),a=n(9996),l=n(2056),c=n(9764);function u(e,t){return new o.y(n=>{const r=e.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let a=0;a<r;a++){const l=(0,c.D)(e[a]);let u=!1;n.add(l.subscribe({next:e=>{u||(u=!0,s++),i[a]=e},error:e=>n.error(e),complete:()=>{o++,o!==r&&u||(s===r&&n.next(t?t.reduce((e,t,n)=>(e[t]=i[n],e),{}):i),n.complete())}}))}})}let h=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e}),e})(),d=(()=>{class e extends h{}return e.\u0275fac=function(){let t;
1return function(n){return(t||(t=r["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const A=new r.InjectionToken("NgValueAccessor"),p={provide:A,useExisting:(0,r.forwardRef)(()=>f),multi:!0};let f=(()=>{class e extends d{writeValue(e){this.setProperty("checked",e)}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=r["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([p]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const g={provide:A,useExisting:(0,r.forwardRef)(()=>v),multi:!0},m=new r.InjectionToken("CompositionEventMode");let v=(()=>{class e extends h{constructor(e,t,n){super(e,t),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](m,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[r["\u0275\u0275ProvidersFeature"]([g]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();function y(e){return null==e||0===e.length}function b(e){return null!=e&&"number"==typeof e.length}const _=new r.InjectionToken("NgValidators"),w=new r.InjectionToken("NgAsyncValidators"),C=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class S{static min(e){return E(e)}static max(e){return I(e)}static required(e){return x(e)}static requiredTrue(e){return T(e)}static email(e){return B(e)}static minLength(e){return k(e)}static maxLength(e){return P(e)}static pattern(e){return O(e)}static nullValidator(e){return null}static compose(e){return U(e)}static composeAsync(e){return Q(e)}}function E(e){return t=>{if(y(t.value)||y(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function I(e){return t=>{if(y(t.value)||y(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function x(e){return y(e.value)?{required:!0}:null}function T(e){return!0===e.value?null:{required:!0}}function B(e){return y(e.value)||C.test(e.value)?null:{email:!0}}function k(e){return t=>y(t.value)||!b(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}function P(e){return t=>b(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function O(e){if(!e)return F;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(y(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}function F(e){return null}function L(e){return null!=e}
1function M(e){const t=(0,r["\u0275isPromise"])(e)?(0,c.D)(e):e;return(0,r["\u0275isObservable"])(t),t}function D(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function N(e,t){return t.map(t=>t(e))}function R(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function U(e){if(!e)return null;const t=e.filter(L);return 0==t.length?null:function(e){return D(N(e,t))}}function j(e){return null!=e?U(R(e)):null}function Q(e){if(!e)return null;const t=e.filter(L);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if((0,s.k)(t))return u(t,null);if((0,l.K)(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return u(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return u(e=1===e.length&&(0,s.k)(e[0])?e[0]:e,null).pipe((0,a.U)(e=>t(...e)))}return u(e,null)}(N(e,t).map(M)).pipe((0,a.U)(D))}}function H(e){return null!=e?Q(R(e)):null}function V(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function q(e){return e._rawValidators}function K(e){return e._rawAsyncValidators}let G=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=j(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=H(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e}),e})(),z=(()=>{class e extends G{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=r["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();class W extends G{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ${constructor(e){this._cd=e}is(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}const Y={"[class.ng-untouched]":'is("untouched")',"[class.ng-touched]":'is("touched")',"[class.ng-pristine]":'is("pristine")',"[class.ng-dirty]":'is("dirty")',"[class.ng-valid]":'is("valid")',"[class.ng-invalid]":'is("invalid")',"[class.ng-pending]":'is("pending")'};let X=(()=>{class e extends ${constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](W,2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),J=(()=>{class e extends ${constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](z,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();function Z(e,t){return[...t.path,e]}function ee(e,t){re(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&oe(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&oe(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function te(e,t,n=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),ie(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}
1function ne(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function re(e,t){const n=q(e);null!==t.validator?e.setValidators(V(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=K(e);null!==t.asyncValidator?e.setAsyncValidators(V(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();ne(t._rawValidators,i),ne(t._rawAsyncValidators,i)}function ie(e,t){let n=!1;if(null!==e){if(null!==t.validator){const r=q(e);if(Array.isArray(r)&&r.length>0){const i=r.filter(e=>e!==t.validator);i.length!==r.length&&(n=!0,e.setValidators(i))}}if(null!==t.asyncValidator){const r=K(e);if(Array.isArray(r)&&r.length>0){const i=r.filter(e=>e!==t.asyncValidator);i.length!==r.length&&(n=!0,e.setAsyncValidators(i))}}}const r=()=>{};return ne(t._rawValidators,r),ne(t._rawAsyncValidators,r),n}function oe(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function se(e,t){re(e,t)}function ae(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function le(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ce(e,t){if(!t)return null;let n,r,i;return Array.isArray(t),t.forEach(e=>{e.constructor===v?n=e:Object.getPrototypeOf(e.constructor)===d?r=e:i=e}),i||r||n||null}function ue(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const he="VALID",de="INVALID",Ae="PENDING",pe="DISABLED";function fe(e){return(ye(e)?e.validators:e)||null}function ge(e){return Array.isArray(e)?j(e):e||null}function me(e,t){return(ye(t)?t.asyncValidators:e)||null}function ve(e){return Array.isArray(e)?H(e):e||null}function ye(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class be{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=ge(this._rawValidators),this._composedAsyncValidatorFn=ve(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===he}get invalid(){return this.status===de}get pending(){return this.status==Ae}get disabled(){return this.status===pe}get enabled(){return this.status!==pe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=ge(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ve(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}
1markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Ae,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=pe,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=he,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==he&&this.status!==Ae||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pe:he}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Ae,this._hasOwnPendingAsyncValidator=!0;const t=M(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let r=e;return t.forEach(e=>{r=r instanceof we?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof Ce&&r.at(e)||null}),r}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new r.EventEmitter,this.statusChanges=new r.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?pe:this.errors?de:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ae)?Ae:this._anyControlsHaveStatus(de)?de:he}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ye(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class _e extends be{constructor(e=null,t,n){super(fe(t),me(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initOb
vendor: 4,098 bytes, line 1
1servables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ue(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ue(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class we extends be{constructor(e,t,n){super(fe(t),me(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof _e?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}
1_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Ce extends be{constructor(e,t,n){super(fe(t),me(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof _e?e.value:e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Se={provide:z,useExisting:(0,r.forwardRef)(()=>Ie)},Ee=(()=>Promise.resolve(null))();let Ie=(()=>{class e extends z{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.EventEmitter,this.form=new we({},j(e),H(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ee.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),ee(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}
1removeControl(e){Ee.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),ue(this._directives,e)})}addFormGroup(e){Ee.then(()=>{const t=this._findContainer(e.path),n=new we({});se(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ee.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ee.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,le(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](_,10),r["\u0275\u0275directiveInject"](w,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Se]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),xe=(()=>{class e extends z{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Z(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=r["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const Te={provide:z,useExisting:(0,r.forwardRef)(()=>Be)};let Be=(()=>{class e extends xe{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](z,5),r["\u0275\u0275directiveInject"](_,10),r["\u0275\u0275directiveInject"](w,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r["\u0275\u0275ProvidersFeature"]([Te]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const ke={provide:W,useExisting:(0,r.forwardRef)(()=>Oe)},Pe=(()=>Promise.resolve(null))();let Oe=(()=>{class e extends W{constructor(e,t,n,i){super(),this.control=new _e,this._registered=!1,this.update=new r.EventEmitter,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ce(0,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),ae(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Z(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ee(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Pe.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Pe.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](z,9),r["\u0275\u0275directiveInject"](_,10),r["\u0275\u0275directiveInject"](w,10),r["\u0275\u0275directiveInject"](A,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r["\u0275\u0275ProvidersFeature"]([ke]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e})(),Fe=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const Le={provide:A,useExisting:(0,r.forwardRef)(()=>Me),multi:!0};let Me=(()=>{class e extends d{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return e.\u0275fac=function(){let t;
1return function(n){return(t||(t=r["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([Le]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const De={provide:A,useExisting:(0,r.forwardRef)(()=>Ue),multi:!0};let Ne=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({}),e})(),Re=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,r["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:Ne}),e})(),Ue=(()=>{class e extends d{constructor(e,t,n,r){super(e,t),this._registry=n,this._injector=r,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(W),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](Re),r["\u0275\u0275directiveInject"](r.Injector))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r["\u0275\u0275ProvidersFeature"]([De]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const je={provide:A,useExisting:(0,r.forwardRef)(()=>Qe),multi:!0};let Qe=(()=>{class e extends d{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=r["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([je]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const He=new r.InjectionToken("NgModelWithFormControlWarning"),Ve={provide:W,useExisting:(0,r.forwardRef)(()=>qe)};let qe=(()=>{class e extends W{constructor(e,t,n,i){super(),this._ngModelWarningConfig=i,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=ce(0,n)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&te(t,this,!1),ee(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}ae(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}
1ngOnDestroy(){this.form&&te(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](_,10),r["\u0275\u0275directiveInject"](w,10),r["\u0275\u0275directiveInject"](A,10),r["\u0275\u0275directiveInject"](He,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Ve]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e._ngModelWarningSentOnce=!1,e})();const Ke={provide:z,useExisting:(0,r.forwardRef)(()=>Ge)};let Ge=(()=>{class e extends z{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new r.EventEmitter,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ie(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return ee(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}
1removeControl(e){te(e.control||null,e,!1),ue(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,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,le(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,n=this.form.get(e.path);t!==n&&(te(t||null,e),n instanceof _e&&(ee(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);se(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function(e,t){return ie(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){re(this.form,this),this._oldForm&&ie(this._oldForm,this)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](_,10),r["\u0275\u0275directiveInject"](w,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Ke]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e})();const ze={provide:z,useExisting:(0,r.forwardRef)(()=>We)};let We=(()=>{class e extends xe{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){Xe(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](z,13),r["\u0275\u0275directiveInject"](_,10),r["\u0275\u0275directiveInject"](w,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([ze]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const $e={provide:z,useExisting:(0,r.forwardRef)(()=>Ye)};let Ye=(()=>{class e extends z{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Z(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Xe(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](z,13),r["\u0275\u0275directiveInject"](_,10),r["\u0275\u0275directiveInject"](w,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([$e]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();function Xe(e){return!(e instanceof We||e instanceof Ge||e instanceof Ye)}const Je={provide:W,useExisting:(0,r.forwardRef)(()=>Ze)};let Ze=(()=>{class e extends W{constructor(e,t,n,i,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ce(0,i)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),ae(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 Z(null==this.name?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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](z,13),r["\u0275\u0275directiveInject"](_,10),r["\u0275\u0275directiveInject"](w,10),r["\u0275\u0275directiveInject"](A,10),r["\u0275\u0275directiveInject"](He,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r["\u0275\u0275ProvidersFeature"]([Je]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e._ngModelWarningSentOnce=!1,e})();const et={provide:A,useExisting:(0,r.forwardRef)(()=>nt),multi:!0};function tt(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let nt=(()=>{class e extends d{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this.setProperty("selectedIndex",-1);const n=tt(t,e);this.setProperty("value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(){let t;
1return function(n){return(t||(t=r["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[r["\u0275\u0275ProvidersFeature"]([et]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),rt=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(tt(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](nt,9))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const it={provide:A,useExisting:(0,r.forwardRef)(()=>st),multi:!0};function ot(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let st=(()=>{class e extends d{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const r=e.item(t),i=this._getOptionValue(r.value);n.push(i)}}else{const e=t.options;for(let t=0;t<e.length;t++){const r=e.item(t);if(r.selected){const e=this._getOptionValue(r.value);n.push(e)}}}this.value=n,e(n)}}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=r["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[r["\u0275\u0275ProvidersFeature"]([it]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),at=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(ot(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(ot(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](st,9))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),lt=(()=>
1{class e{constructor(){this._validator=F}handleChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._validator=this.createValidator(t),this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e}),e})();const ct={provide:_,useExisting:(0,r.forwardRef)(()=>ut),multi:!0};let ut=(()=>{class e extends lt{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>parseFloat(e),this.createValidator=e=>I(e)}ngOnChanges(e){this.handleChanges(e)}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=r["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,t){if(2&e){let e;r["\u0275\u0275attribute"]("max",null!==(e=t.max)&&void 0!==e?e:null)}},inputs:{max:"max"},features:[r["\u0275\u0275ProvidersFeature"]([ct]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e})();const ht={provide:_,useExisting:(0,r.forwardRef)(()=>dt),multi:!0};let dt=(()=>{class e extends lt{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>parseFloat(e),this.createValidator=e=>E(e)}ngOnChanges(e){this.handleChanges(e)}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=r["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,t){if(2&e){let e;r["\u0275\u0275attribute"]("min",null!==(e=t.min)&&void 0!==e?e:null)}},inputs:{min:"min"},features:[r["\u0275\u0275ProvidersFeature"]([ht]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e})();const At={provide:_,useExisting:(0,r.forwardRef)(()=>ft),multi:!0},pt={provide:_,useExisting:(0,r.forwardRef)(()=>gt),multi:!0};let ft=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?x(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},inputs:{required:"required"},features:[r["\u0275\u0275ProvidersFeature"]([At])]}),e})(),gt=(()=>{class e extends ft{validate(e){return this.required?T(e):null}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=r["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},features:[r["\u0275\u0275ProvidersFeature"]([pt]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const mt={provide:_,useExisting:(0,r.forwardRef)(()=>vt),multi:!0};let vt=(()=>{class e{constructor(){this._enabled=!1}set email(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}validate(e){return this._enabled?B(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[r["\u0275\u0275ProvidersFeature"]([mt])]}),e})();const yt={provide:_,useExisting:(0,r.forwardRef)(()=>bt),multi:!0};let bt=(()=>
1{class e{constructor(){this._validator=F}ngOnChanges(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null==this.minlength?null:this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=k("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[r["\u0275\u0275ProvidersFeature"]([yt]),r["\u0275\u0275NgOnChangesFeature"]]}),e})();const _t={provide:_,useExisting:(0,r.forwardRef)(()=>wt),multi:!0};let wt=(()=>{class e{constructor(){this._validator=F}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=P("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r["\u0275\u0275ProvidersFeature"]([_t]),r["\u0275\u0275NgOnChangesFeature"]]}),e})();const Ct={provide:_,useExisting:(0,r.forwardRef)(()=>St),multi:!0};let St=(()=>{class e{constructor(){this._validator=F}ngOnChanges(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=O(this.pattern)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[r["\u0275\u0275ProvidersFeature"]([Ct]),r["\u0275\u0275NgOnChangesFeature"]]}),e})();const Et=[Fe,rt,at,v,Me,Qe,f,nt,st,Ue,X,J,ft,bt,wt,St,gt,vt,dt,ut],It=[Oe,Be,Ie],xt=[qe,Ge,Ze,We,Ye];let Tt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({imports:[[Ne]]}),e})(),Bt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({imports:[Tt]}),e})(),kt=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:He,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({imports:[Tt]}),e})(),Pt=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let r,i=null,o=null;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,o=null!=t.asyncValidators?t.asyncValidators:null,r=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,o=null!=t.asyncValidator?t.asyncValidator:null)),new we(n,{asyncValidators:o,updateOn:r,validators:i})}control(e,t,n){return new _e(e,t,n)}array(e,t,n){const r=e.map(e=>this._createControl(e));return new Ce(r,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof _e||e instanceof we||e instanceof Ce?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,r["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:kt}),e})();const Ot=new r.Version("12.0.5")},9624:(e,t,n)=>{"use strict";n.r(t),n.d(t,{"\u0275getDOM":()=>r.q,BrowserModule:()=>ce,BrowserTransferStateModule:()=>Ie,By:()=>xe,DomSanitizer:()=>J,EVENT_MANAGER_PLUGINS:()=>_,EventManager:()=>w,HAMMER_GESTURE_CONFIG:()=>U,HAMMER_LOADER:()=>j,HammerGestureConfig:()=>Q,HammerModule:()=>G,Meta:()=>he,Title:()=>pe,TransferState:()=>Se,VERSION:()=>Te,disableDebugTools:()=>_e,enableDebugTools:()=>be,makeStateKey:()=>Ce,platformBrowser:()=>ae,"\u0275BROWSER_SANITIZATION_PROVIDERS":()=>se,"\u0275BROWSER_SANITIZATION_PROVIDERS__POST_R3__":()=>oe,"\u0275BrowserDomAdapter":()=>s,"\u0275BrowserGetTestability":()=>d,"\u0275DomEventsPlugin":()=>N,"\u0275DomRendererFactory2":()=>
1F,"\u0275DomSanitizerImpl":()=>ee,"\u0275DomSharedStylesHost":()=>E,"\u0275ELEMENT_PROBE_PROVIDERS":()=>b,"\u0275ELEMENT_PROBE_PROVIDERS__POST_R3__":()=>v,"\u0275HAMMER_PROVIDERS__POST_R3__":()=>V,"\u0275HammerGesturesPlugin":()=>H,"\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS":()=>ie,"\u0275KeyEventsPlugin":()=>X,"\u0275NAMESPACE_URIS":()=>x,"\u0275SharedStylesHost":()=>S,"\u0275TRANSITION_ID":()=>c,"\u0275angular_packages_platform_browser_platform_browser_a":()=>ne,"\u0275angular_packages_platform_browser_platform_browser_b":()=>re,"\u0275angular_packages_platform_browser_platform_browser_c":()=>le,"\u0275angular_packages_platform_browser_platform_browser_d":()=>ue,"\u0275angular_packages_platform_browser_platform_browser_e":()=>Ae,"\u0275angular_packages_platform_browser_platform_browser_f":()=>Ee,"\u0275angular_packages_platform_browser_platform_browser_g":()=>C,"\u0275angular_packages_platform_browser_platform_browser_h":()=>q,"\u0275angular_packages_platform_browser_platform_browser_i":()=>K,"\u0275angular_packages_platform_browser_platform_browser_j":()=>Z,"\u0275angular_packages_platform_browser_platform_browser_k":()=>u,"\u0275angular_packages_platform_browser_platform_browser_l":()=>h,"\u0275angular_packages_platform_browser_platform_browser_m":()=>m,"\u0275angular_packages_platform_browser_platform_browser_n":()=>y,"\u0275angular_packages_platform_browser_platform_browser_o":()=>A,"\u0275angular_packages_platform_browser_platform_browser_p":()=>o,"\u0275escapeHtml":()=>we,"\u0275flattenStyles":()=>P,"\u0275initDomAdapter":()=>te,"\u0275shimContentAttribute":()=>B,"\u0275shimHostAttribute":()=>k});var r=n(1116),i=n(5366);class o extends r.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class s extends o{static makeCurrent(){(0,r.HT)(new s)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==t?null:function(e){a=a||document.createElement("a"),a.setAttribute("href",e);const t=a.pathname;return"/"===t.charAt(0)?t:`/${t}`}(t)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return(0,r.Mx)(document.cookie,e)}}let a,l=null;const c=new i.InjectionToken("TRANSITION_ID");function u(e,t,n){return()=>{n.get(i.ApplicationInitStatus).donePromise.then(()=>{const n=(0,r.q)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}}const h=[{provide:i.APP_INITIALIZER,useFactory:u,deps:[c,r.K0,i.Injector],multi:!0}];class d{static init(){(0,i.setTestabilityGetter)(new d)}addToWindow(e){i["\u0275global"].getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},i["\u0275global"].getAllAngularTestabilities=()=>e.getAllTestabilities(),i["\u0275global"].getAllAngularRootElements=()=>e.getAllRootElements(),i["\u0275global"].frameworkStabilizers||(i["\u0275global"].frameworkStabilizers=[]),i["\u0275global"].frameworkStabilizers.push(e=>{const t=i["\u0275global"].getAllAngularTestabilities();let n=t.length,r=!1;const o=function(t){r=r||t,n--,0==n&&e(r)};t.forEach(function(e){e.whenStable(o)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:n?(0,r.q)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let A=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function p(e,t){"undefined"!=typeof COMPILED&&COMPILED||((i["\u0275global"].ng=i["\u0275global"].ng||{})[e]=t)}const f=(()=>({ApplicationRef:i.ApplicationRef,NgZone:i.NgZone}))();function g(e){return(0,i["\u0275getDebugNodeR2"])(e)}function m(e){return p("probe",g),p("coreTokens",Object.assign(Object.assign({},f),(e||[]).reduce((e,t)=>
1(e[t.name]=t.token,e),{}))),()=>g}const v=[],y=[{provide:i.APP_INITIALIZER,useFactory:m,deps:[[i.NgProbeToken,new i.Optional]],multi:!0}],b=v,_=new i.InjectionToken("EventManagerPlugins");let w=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](_),i["\u0275\u0275inject"](i.NgZone))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class C{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const i=(0,r.q)().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,n)}}let S=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),E=(()=>{class e extends S{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,n){e.forEach(e=>{const r=this._doc.createElement("style");r.textContent=e,n.push(t.appendChild(r))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(I),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,n)=>{this._addStylesToHost(e,n,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(I))}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](r.K0))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function I(e){(0,r.q)().remove(e)}const x={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/"},T=/%COMP%/g;function B(e){return"_ngcontent-%COMP%".replace(T,e)}function k(e){return"_nghost-%COMP%".replace(T,e)}function P(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?P(e,i,n):(i=i.replace(T,e),n.push(i))}return n}function O(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let F=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new L(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ViewEncapsulation.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new M(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case i.ViewEncapsulation.ShadowDom:return new D(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=P(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](w),i["\u0275\u0275inject"](E),i["\u0275\u0275inject"](i.APP_ID))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class L{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(x[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}
1" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const i=x[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=x[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(i.RendererStyleFlags2.DashCase|i.RendererStyleFlags2.Important)?e.style.setProperty(t,n,r&i.RendererStyleFlags2.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&i.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,O(n)):this.eventManager.addEventListener(e,t,O(n))}}class M extends L{constructor(e,t,n,r){super(e),this.component=n;const i=P(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr=B(r+"-"+n.id),this.hostAttr=k(r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class D extends L{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=P(r.id,r.styles,[]);for(let o=0;o<i.length;o++){const e=document.createElement("style");e.textContent=i[o],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let N=(()=>{class e extends C{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](r.K0))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const R={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},U=new i.InjectionToken("HammerGestureConfig"),j=new i.InjectionToken("HammerLoader");let Q=(()=>{class e{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),H=(()=>{class e extends C{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r,this._loaderPromise=null}supports(e){return!(!R.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let r=!1,i=()=>{r=!0};return this._loaderPromise.then(()=>{window.Hammer?r||(i=this.addEventListener(e,t,n)):i=()=>{}}
1).catch(()=>{i=()=>{}}),()=>{i()}}return r.runOutsideAngular(()=>{const i=this._config.buildHammer(e),o=function(e){r.runGuarded(function(){n(e)})};return i.on(t,o),()=>{i.off(t,o),"function"==typeof i.destroy&&i.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](r.K0),i["\u0275\u0275inject"](U),i["\u0275\u0275inject"](i["\u0275Console"]),i["\u0275\u0275inject"](j,8))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const V=[],q=[{provide:_,useClass:H,multi:!0,deps:[r.K0,U,i["\u0275Console"],[new i.Optional,j]]},{provide:U,useClass:Q,deps:[]}],K=V;let G=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({providers:q}),e})();const z=["alt","control","meta","shift"],W={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Y={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let X=(()=>{class e extends C{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,i){const o=e.parseEventName(n),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,r.q)().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=e._normalizeKey(n.pop());let o="";if(z.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&$.hasOwnProperty(t)&&(t=$[t]))}return W[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),z.forEach(r=>{r!=n&&(0,Y[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return i=>{e.getEventFullKey(i)===t&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](r.K0))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),J=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:function(){return(0,i["\u0275\u0275inject"])(ee)},token:e,providedIn:"root"}),e})();function Z(e){return new ee(e.get(r.K0))}let ee=(()=>{class e extends J{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.SecurityContext.NONE:return t;case i.SecurityContext.HTML:return(0,i["\u0275allowSanitizationBypassAndThrow"])(t,"HTML")?(0,i["\u0275unwrapSafeValue"])(t):(0,i["\u0275_sanitizeHtml"])(this._doc,String(t)).toString();case i.SecurityContext.STYLE:return(0,i["\u0275allowSanitizationBypassAndThrow"])(t,"Style")?(0,i["\u0275unwrapSafeValue"])(t):t;case i.SecurityContext.SCRIPT:if((0,i["\u0275allowSanitizationBypassAndThrow"])(t,"Script"))return(0,i["\u0275unwrapSafeValue"])(t);throw new Error("unsafe value used in a script context");case i.SecurityContext.URL:return(0,i["\u0275getSanitizationBypassType"])(t),(0,i["\u0275allowSanitizationBypassAndThrow"])(t,"URL")?(0,i["\u0275unwrapSafeValue"])(t):(0,i["\u0275_sanitizeUrl"])(String(t));case i.SecurityContext.RESOURCE_URL:if((0,i["\u0275allowSanitizationBypassAndThrow"])(t,"ResourceURL"))return(0,i["\u0275unwrapSafeValue"])(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,i["\u0275bypassSanitizationTrustHtml"])(e)}bypassSecurityTrustStyle(e){return(0,i["\u0275bypassSanitizationTrustStyle"])(e)}bypassSecurityTrustScript(e){return(0,i["\u0275bypassSanitizationTrustScript"])(e)}bypassSecurityTrustUrl(e){return(0,i["\u0275bypassSanitizationTrustUrl"])(e)}bypassSecurityTrustResourceUrl(e){return(0,i["\u0275bypassSanitizationTrustResourceUrl"])(e)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](r.K0))},e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:function(){return Z((0,i["\u0275\u0275inject"])(i.INJECTOR))},token:e,providedIn:"root"}),e})();function te(){s.makeCurrent(),d.init()}function ne(){return new i.ErrorHandler}function re(){return(0,i["\u0275setDocument"])(document),document}const ie=[{provide:i.PLATFORM_ID,useValue:r.bD},{provide:i.PLATFORM_INITIALIZER,useValue:te,multi:!0},{provide:r.K0,useFactory:re,deps:[]}],oe=[],se=oe,ae=(0,i.createPlatformFactory)(i.platformCore,"browser",ie),le=[se,{provide:i["\u0275INJECTOR_SCOPE"],useValue:"root"},{provide:i.ErrorHandler,useFactory:ne,deps:[]},{provide:_,useClass:N,multi:!0,deps:[r.K0,i.NgZone,i.PLATFORM_ID]},{provide:_,useClass:X,multi:!0,deps:[r.K0]},K,{provide:F,useClass:F,deps:[w,E,i.APP_ID]}
1,{provide:i.RendererFactory2,useExisting:F},{provide:S,useExisting:E},{provide:E,useClass:E,deps:[r.K0]},{provide:i.Testability,useClass:i.Testability,deps:[i.NgZone]},{provide:w,useClass:w,deps:[_,i.NgZone]},{provide:r.JF,useClass:A,deps:[]},b];let ce=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:i.APP_ID,useValue:t.appId},{provide:c,useExisting:i.APP_ID},h]}}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](e,12))},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({providers:le,imports:[r.ez,i.ApplicationModule]}),e})();function ue(){return new he((0,i["\u0275\u0275inject"])(r.K0))}let he=(()=>{class e{constructor(e){this._doc=e,this._dom=(0,r.q)()}addTag(e,t=!1){return e?this._getOrCreateElement(e,t):null}addTags(e,t=!1){return e?e.reduce((e,n)=>(n&&e.push(this._getOrCreateElement(n,t)),e),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const t=this._doc.querySelectorAll(`meta[${e}]`);return t?[].slice.call(t):[]}updateTag(e,t){if(!e)return null;t=t||this._parseSelector(e);const n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,t=!1){if(!t){const t=this._parseSelector(e),n=this.getTag(t);if(n&&this._containsAttributes(e,n))return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(e,n),this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(e,t){return Object.keys(e).forEach(n=>t.setAttribute(this._getMetaKeyMap(n),e[n])),t}_parseSelector(e){const t=e.name?"name":"property";return`${t}="${e[t]}"`}_containsAttributes(e,t){return Object.keys(e).every(n=>t.getAttribute(this._getMetaKeyMap(n))===e[n])}_getMetaKeyMap(e){return de[e]||e}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](r.K0))},e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:ue,token:e,providedIn:"root"}),e})();const de={httpEquiv:"http-equiv"};function Ae(){return new pe((0,i["\u0275\u0275inject"])(r.K0))}let pe=(()=>{class e{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](r.K0))},e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:Ae,token:e,providedIn:"root"}),e})();const fe="undefined"!=typeof window&&window||{};class ge{constructor(e,t){this.msPerTick=e,this.numTicks=t}}class me{constructor(e){this.appRef=e.injector.get(i.ApplicationRef)}timeChangeDetection(e){const t=e&&e.record,n="Change Detection",r=null!=fe.console.profile;t&&r&&fe.console.profile(n);const i=ve();let o=0;for(;o<5||ve()-i<500;)this.appRef.tick(),o++;const s=ve();t&&r&&fe.console.profileEnd(n);const a=(s-i)/o;return fe.console.log(`ran ${o} change detection cycles`),fe.console.log(`${a.toFixed(2)} ms per check`),new ge(a,o)}}function ve(){return fe.performance&&fe.performance.now?fe.performance.now():(new Date).getTime()}const ye="profiler";function be(e){return p(ye,new me(e)),e}function _e(){p(ye,null)}function we(e){const t={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return e.replace(/[&"'<>]/g,e=>t[e])}function Ce(e){return e}let Se=(()=>{class e{constructor(){this.store={},this.onSerializeCallbacks={}}static init(t){const n=new e;return n.store=t,n}get(e,t){return void 0!==this.store[e]?this.store[e]:t}set(e,t){this.store[e]=t}remove(e){delete this.store[e]}hasKey(e){return this.store.hasOwnProperty(e)}onSerialize(e,t){this.onSerializeCallbacks[e]=t}toJson(){for(const t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(e){console.warn("Exception in onSerialize callback: ",e)}return JSON.stringify(this.store)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function Ee(e,t){const n=e.getElementById(t+"-state");let r={};if(n&&n.textContent)try{r=JSON.parse(function(e){const t={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return e.replace(/&[^;]+;/g,e=>t[e])}(n.textContent))}catch(i){console.warn("Exception while restoring TransferState for app "+t,i)}return Se.init(r)}let Ie=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({providers:[{provide:Se,useFactory:Ee,deps:[r.K0,i.APP_ID]}]}),e})();class xe{static all(){return()=>!0}static css(e){return t=>null!=t.nativeElement&&function(e,t){return!!(0,r.q)().isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}(t.nativeElement,e)}static directive(e){return t=>-1!==t.providerTokens.indexOf(e)}}const Te=new i.Version("12.0.5")}
1,1062:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r,i,o=n(4762),s=n(250),a=n(5119),l=n(308),c=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),u=new s.LL("app","Firebase",c),h="@firebase/app",d="[DEFAULT]",A=((i={})[h]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/app-check"]="fire-app-check",i["@firebase/auth"]="fire-auth",i["@firebase/database"]="fire-rtdb",i["@firebase/functions"]="fire-fn",i["@firebase/installations"]="fire-iid",i["@firebase/messaging"]="fire-fcm",i["@firebase/performance"]="fire-perf",i["@firebase/remote-config"]="fire-rc",i["@firebase/storage"]="fire-gcs",i["@firebase/firestore"]="fire-fst",i["fire-js"]="fire-js",i["firebase-wrapper"]="fire-js-all",i),p=new l.Yd("@firebase/app"),f=function(){function e(e,t,n){var r=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=(0,s.p$)(e),this.container=new a.H0(t.name),this._addComponent(new a.wA("app",function(){return r},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(e){return r._addComponent(e)})}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise(function(t){e.checkDestroyed_(),t()}).then(function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map(function(e){return e.delete()}))}).then(function(){e.isDeleted_=!0})},e.prototype._getService=function(e,t){var n;void 0===t&&(t=d),this.checkDestroyed_();var r=this.container.getProvider(e);return r.isInitialized()||"EXPLICIT"!==(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)||r.initialize(),r.getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t=d),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){p.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw u.create("app-deleted",{appName:this.name_})},e}();f.prototype.name&&f.prototype.options||f.prototype.delete||console.log("dc");var g=function e(){var t=function(e){var t={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={}),"object"==typeof i&&null!==i||(i={name:i});var o=i;void 0===o.name&&(o.name=d);var a=o.name;if("string"!=typeof a||!a)throw u.create("bad-app-name",{appName:String(a)});if((0,s.r3)(t,a))throw u.create("duplicate-app",{appName:a});var l=new e(n,o,r);return t[a]=l,l},app:i,registerVersion:function(e,t,n){var r,i=null!==(r=A[e])&&void 0!==r?r:e;n&&(i+="-"+n);var s=i.match(/\s|\//),l=t.match(/\s|\//);if(s||l){var c=['Unable to register library "'+i+'" with version "'+t+'":'];return s&&c.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),s&&l&&c.push("and"),l&&c.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void p.warn(c.join(" "))}o(new a.wA(i+"-version",function(){return{library:i,version:t}},"VERSION"))},setLogLevel:l.Ub,onLog:function(e,t){if(null!==e&&"function"!=typeof e)throw u.create("invalid-log-argument");(0,l.Am)(e,t)},apps:null,SDK_VERSION:"8.10.0",INTERNAL:{registerComponent:o,removeApp:function(e){delete t[e]}
1,components:n,useAsService:function(e,t){return"serverAuth"===t?null:t}}};function i(e){if(!(0,s.r3)(t,e=e||d))throw u.create("no-app",{appName:e});return t[e]}function o(o){var a=o.name;if(n.has(a))return p.debug("There were multiple attempts to register component "+a+"."),"PUBLIC"===o.type?r[a]:null;if(n.set(a,o),"PUBLIC"===o.type){var l=function(e){if(void 0===e&&(e=i()),"function"!=typeof e[a])throw u.create("invalid-app-argument",{appName:a});return e[a]()};void 0!==o.serviceProps&&(0,s.ZB)(l,o.serviceProps),r[a]=l,e.prototype[a]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._getService.bind(this,a).apply(this,o.multipleInstances?e:[])}}for(var c=0,h=Object.keys(t);c<h.length;c++)t[h[c]]._addComponent(o);return"PUBLIC"===o.type?r[a]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(t).map(function(e){return t[e]})}}),i.App=e,r}(f);return t.INTERNAL=(0,o.pi)((0,o.pi)({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){(0,s.ZB)(t,e)},createSubscribe:s.ne,ErrorFactory:s.LL,deepExtend:s.ZB}),t}(),m=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){var t=e.getImmediate();return t.library+"/"+t.version}return null}).filter(function(e){return e}).join(" ")},e}();if((0,s.jU)()&&void 0!==self.firebase){p.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var v=self.firebase.SDK_VERSION;v&&v.indexOf("LITE")>=0&&p.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var y=g.initializeApp;g.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.UG)()&&p.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/@rollup/plugin-node-resolve\n      '),y.apply(void 0,e)};var b=g;!function(e,t){e.INTERNAL.registerComponent(new a.wA("platform-logger",function(e){return new m(e)},"PRIVATE")),e.registerVersion(h,"0.6.30",void 0),e.registerVersion("fire-js","")}(b);const _=b},5119:(e,t,n)=>{"use strict";n.d(t,{wA:()=>o,H0:()=>l});var r=n(4762),i=n(250),o=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e.prototype.setInstanceCreatedCallback=function(e){return this.onInstanceCreated=e,this},e}(),s="[DEFAULT]",a=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return e.prototype.get=function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new i.BH;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:t});r&&n.resolve(r)}catch(o){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t,n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),r=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");
1if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:s})}catch(h){}try{for(var i=(0,r.XA)(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var a=(0,r.CR)(o.value,2),l=a[1],c=this.normalizeInstanceIdentifier(a[0]);try{var u=this.getOrInitializeService({instanceIdentifier:c});l.resolve(u)}catch(h){}}}catch(d){t={error:d}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}},e.prototype.clearInstance=function(e){void 0===e&&(e=s),this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return(0,r.mG)(this,void 0,void 0,function(){var e;return(0,r.Jh)(this,function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all((0,r.ev)((0,r.ev)([],(0,r.CR)(e.filter(function(e){return"INTERNAL"in e}).map(function(e){return e.INTERNAL.delete()}))),(0,r.CR)(e.filter(function(e){return"_delete"in e}).map(function(e){return e._delete()}))))];case 1:return t.sent(),[2]}})})},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.isInitialized=function(e){return void 0===e&&(e=s),this.instances.has(e)},e.prototype.getOptions=function(e){return void 0===e&&(e=s),this.instancesOptions.get(e)||{}},e.prototype.initialize=function(e){var t,n;void 0===e&&(e={});var i=e.options,o=void 0===i?{}:i,s=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(s))throw Error(this.name+"("+s+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var a=this.getOrInitializeService({instanceIdentifier:s,options:o});try{for(var l=(0,r.XA)(this.instancesDeferred.entries()),c=l.next();!c.done;c=l.next()){var u=(0,r.CR)(c.value,2),h=u[1];s===this.normalizeInstanceIdentifier(u[0])&&h.resolve(a)}}catch(d){t={error:d}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return a},e.prototype.onInit=function(e,t){var n,r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);var o=this.instances.get(r);return o&&e(o,r),function(){i.delete(e)}},e.prototype.invokeOnInitCallbacks=function(e,t){var n,i,o=this.onInitCallbacks.get(t);if(o)try{for(var s=(0,r.XA)(o),a=s.next();!a.done;a=s.next()){var l=a.value;try{l(e,t)}catch(c){}}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},e.prototype.getOrInitializeService=function(e){var t,n=e.instanceIdentifier,r=e.options,i=void 0===r?{}:r,o=this.instances.get(n);if(!o&&this.component&&(o=this.component.instanceFactory(this.container,{instanceIdentifier:(t=n,t===s?void 0:t),options:i}),this.instances.set(n,o),this.instancesOptions.set(n,i),this.invokeOnInitCallbacks(o,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,o)}catch(a){}return o||null},e.prototype.normalizeInstanceIdentifier=function(e){return void 0===e&&(e=s),this.component?this.component.multipleInstances?e:s:e},e.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},e}(),l=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new a(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}()},308:(e,t,n)=>{"use strict";function r(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}var i;n.d(t,{in:()=>s,Yd:()=>h,Ub:()=>d,Am:()=>A});var o=[],s=function(e){return e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.E
1RROR=4]="ERROR",e[e.SILENT=5]="SILENT",e}({}),a={debug:s.DEBUG,verbose:s.VERBOSE,info:s.INFO,warn:s.WARN,error:s.ERROR,silent:s.SILENT},l=s.INFO,c=((i={})[s.DEBUG]="log",i[s.VERBOSE]="log",i[s.INFO]="info",i[s.WARN]="warn",i[s.ERROR]="error",i),u=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(t<e.logLevel)){var o=(new Date).toISOString(),s=c[t];if(!s)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[s].apply(console,r(["["+o+"]  "+e.name+":"],n))}},h=function(){function e(e){this.name=e,this._logLevel=l,this._logHandler=u,this._userLogHandler=null,o.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in s))throw new TypeError('Invalid value "'+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),e.prototype.setLogLevel=function(e){this._logLevel="string"==typeof e?a[e]:e},Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!1,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.DEBUG],e)),this._logHandler.apply(this,r([this,s.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.VERBOSE],e)),this._logHandler.apply(this,r([this,s.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.INFO],e)),this._logHandler.apply(this,r([this,s.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.WARN],e)),this._logHandler.apply(this,r([this,s.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,s.ERROR],e)),this._logHandler.apply(this,r([this,s.ERROR],e))},e}();function d(e){o.forEach(function(t){t.setLogLevel(e)})}function A(e,t){for(var n=function(n){var r=null;t&&t.level&&(r=a[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var a=i.map(function(e){if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(t){return null}}).filter(function(e){return e}).join(" ");n>=(null!=r?r:t.logLevel)&&e({level:s[n].toLowerCase(),message:a,args:i,type:t.name})}},r=0,i=o;r<i.length;r++)n(i[r])}},250:(e,t,n)=>{"use strict";n.d(t,{BH:()=>c,LL:()=>w,ZR:()=>_,r3:()=>E,Sg:()=>u,ne:()=>I,p$:()=>a,ZB:()=>l,m9:()=>B,z$:()=>h,jU:()=>p,ru:()=>f,d:()=>m,w1:()=>v,uI:()=>d,UG:()=>A,b$:()=>g,G6:()=>b,Mn:()=>y});var r=n(4762),i=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},o={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var o=e[i],s=i+1<e.length,a=s?e[i+1]:0,l=i+2<e.length,c=l?e[i+2]:0,u=(15&a)<<2|c>>6,h=63&c;l||(h=64,s||(u=64)),r.push(n[o>>2],n[(3&o)<<4|a>>4],n[u],n[h])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(i(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var s=((7&i)<<18|(63&(o=e[n++]))<<12|(63&(a=e[n++]))<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(s>>10)),t[r++]=String.fromCharCode(56320+(1023&s))}else{o=e[n++];var a=e[n++];
1t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var o=n[e.charAt(i++)],s=i<e.length?n[e.charAt(i)]:0,a=++i<e.length?n[e.charAt(i)]:64,l=++i<e.length?n[e.charAt(i)]:64;if(++i,null==o||null==s||null==a||null==l)throw Error();r.push(o<<2|s>>4),64!==a&&(r.push(s<<4&240|a>>2),64!==l&&r.push(a<<6&192|l))}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},s=function(e){return function(e){var t=i(e);return o.encodeByteArray(t,!0)}(e).replace(/\./g,"")};function a(e){return l(void 0,e)}function l(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=l(e[n],t[n]));return e}var c=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"==typeof e&&(t.promise.catch(function(){}),1===e.length?e(n):e(n,r))}},e}();function u(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=t||"demo-project",i=e.iat||0,o=e.sub||e.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var a=(0,r.pi)({iss:"https://securetoken.google.com/"+n,aud:n,iat:i,exp:i+3600,auth_time:i,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},e);return[s(JSON.stringify({alg:"none",type:"JWT"})),s(JSON.stringify(a)),""].join(".")}function h(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function d(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())}function A(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(e){return!1}}function p(){return"object"==typeof self&&self.self===self}function f(){var e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function g(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function m(){return h().indexOf("Electron/")>=0}function v(){var e=h();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function y(){return h().indexOf("MSAppHost/")>=0}function b(){return!A()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}var _=function(e){function t(n,r,i){var o=e.call(this,r)||this;return o.code=n,o.customData=i,o.name="FirebaseError",Object.setPrototypeOf(o,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,w.prototype.create),o}return(0,r.ZT)(t,e),t}(Error),w=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t[0]||{},i=this.service+"/"+e,o=this.errors[e],s=o?C(o,r):"Error",a=this.serviceName+": "+s+" ("+i+").",l=new _(i,a,r);return l},e}();function C(e,t){return e.replace(S,function(e,n){var r=t[n];return null!=r?String(r):"<"+n+"?>"})}var S=/\{\$([^}]+)}/g;function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function I(e,t){var n=new x(e,t);return n.subscribe.bind(n)}var x=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
1ise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(function(){e(n)}).catch(function(e){n.error(e)})}return e.prototype.next=function(e){this.forEachObserver(function(t){t.next(e)})},e.prototype.error=function(e){this.forEachObserver(function(t){t.error(e)}),this.close(e)},e.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},e.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=0,r=["next","error","complete"];n<r.length;n++){var i=r[n];if(i in e&&"function"==typeof e[i])return!0}return!1}(e)?e:{next:e,error:t,complete:n}).next&&(r.next=T),void 0===r.error&&(r.error=T),void 0===r.complete&&(r.complete=T);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}}),this.observers.push(r),o},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(r){"undefined"!=typeof console&&console.error&&console.error(r)}})},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(function(){t.observers=void 0,t.onNoObservers=void 0}))},e}();function T(){}function B(e){return e&&e._delegate?e._delegate:e}},4917:(e,t,n)=>{"use strict";var r=n(2231),i=n(6549),o=n(5390);function s(e,t,n){var r=e;return o(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=i({},t,{uri:e}),r.callback=n,r}function a(e,t,n){return l(t=s(e,t,n))}function l(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function r(){var e=void 0;if(e=c.response?c.response:c.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;if(""===e.responseType&&(!e.responseXML||"parsererror"!==e.responseXML.documentElement.nodeName))return e.responseXML}catch(t){}return null}(c),g)try{e=JSON.parse(e)}catch(t){}return e}function i(e){return clearTimeout(u),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,m)}function o(){if(!l){var t;clearTimeout(u);var i=m,o=null;return 0!==(t=e.useXDR&&void 0===c.status?200:1223===c.status?204:c.status)?(i={body:r(),statusCode:t,method:d,headers:{},url:h,rawRequest:c},c.getAllResponseHeaders&&(i.headers=function(e){var t={};return e?(e.trim().split("\n").forEach(function(e){var n=e.indexOf(":"),r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}),t):t}(c.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),n(o,i,i.body)}}var s,l,c=e.xhr||null;c||(c=e.cors||e.useXDR?new a.XDomainRequest:new a.XMLHttpRequest);var u,h=c.url=e.uri||e.url,d=c.method=e.method||"GET",A=e.body||e.data,p=c.headers=e.headers||{},f=!!e.sync,g=!1,m={body:void 0,headers:{},statusCode:0,method:d,url:h,rawRequest:c};if("json"in e&&!1!==e.json&&(g=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),A=JSON.stringify(!0===e.json?A:e.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(o,0)},c.onload=o,c.onerror=i,c.onprogress=function(){},c.onabort=function(){l=!0},c.ontimeout=i,c.open(d,h,!f,e.username,e.password),f||(c.withCredentials=!!e.withCredentials),!f&&e.timeout>0&&(u=setTimeout(function(){if(!l){l=!0,c.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",i(e)}},e.timeout)),c.setRequestHeader)for(s in p)p.hasOwnProperty(s)&&c.setRequestHeader(s,p[s]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(c.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(c),c.send(A||null),c}
1e.exports=a,e.exports.default=a,a.XMLHttpRequest=r.XMLHttpRequest||function(){},a.XDomainRequest="withCredentials"in new a.XMLHttpRequest?a.XMLHttpRequest:r.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){a["delete"===e?"del":e]=function(t,n,r){return(n=s(t,n,r)).method=e.toUpperCase(),l(n)}})},5186:(e,t,n)=>{"use strict";var r=n(5366),i=n(1462),o=n(9624),s=n(1436),a=n(5366);t.wR={provide:i.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return l}),multi:!0};var l=function(){function e(e,t,n){var r;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.textMaskConfig={mask:[],guide:!0,placeholderChar:"_",pipe:void 0,keepCharPositions:!1},this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=o.\u0275getDOM()?o.\u0275getDOM().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return e.prototype.ngOnChanges=function(e){this._setupMask(!0),void 0!==this.textMaskInputElement&&this.textMaskInputElement.update(this.inputElement.value)},e.prototype.writeValue=function(e){this._setupMask(),this._renderer.setProperty(this.inputElement,"value",null==e?"":e),void 0!==this.textMaskInputElement&&this.textMaskInputElement.update(e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&(this._setupMask(),void 0!==this.textMaskInputElement&&(this.textMaskInputElement.update(e),this.onChange(e=this.inputElement.value)))},e.prototype._setupMask=function(e){void 0===e&&(e=!1),this.inputElement||(this.inputElement="INPUT"===this._elementRef.nativeElement.tagName.toUpperCase()?this._elementRef.nativeElement:this._elementRef.nativeElement.getElementsByTagName("INPUT")[0]),this.inputElement&&e&&(this.textMaskInputElement=s.createTextMaskInputElement(Object.assign({inputElement:this.inputElement},this.textMaskConfig)))},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this._handleInput(e)},e.propDecorators={textMaskConfig:[{type:r.Input,args:["textMask"]}]},e.\u0275fac=function(t){return new(t||e)(a.\u0275\u0275directiveInject(a.Renderer2),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(i.COMPOSITION_BUFFER_MODE,8))},e.\u0275dir=a.\u0275\u0275defineDirective({type:e,selectors:[["","textMask",""]],hostBindings:function(e,t){1&e&&a.\u0275\u0275listener("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},inputs:{textMaskConfig:["textMask","textMaskConfig"]},exportAs:["textMask"],features:[a.\u0275\u0275ProvidersFeature([t.wR]),a.\u0275\u0275NgOnChangesFeature]}),e}();t.hd=l,t.QA=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=a.\u0275\u0275defineInjector({}),e}(),n(1436)},2051:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");
1n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,o,s){var a=i.URL||i.webkitURL,l=document.createElement("a");l.download=o=o||e.name||"download",l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?r(l):n(l.href)?t(e,o,s):r(l,l.target="_blank")):(l.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(l.href)},4e4),setTimeout(function(){r(l)},0))}:"msSaveOrOpenBlob"in navigator?function(e,i,o){if(i=i||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),i);else if(n(e))t(e,i,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){r(s)})}}:function(e,n,r,s){if((s=s||open("","_blank"))&&(s.document.title=s.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var a="application/octet-stream"===e.type,l=/constructor/i.test(i.HTMLElement)||i.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&l||o)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),s?s.location.href=e:location=e,s=null},u.readAsDataURL(e)}else{var h=i.URL||i.webkitURL,d=h.createObjectURL(e);s?s.location=d:location.href=d,s=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});i.saveAs=s.saveAs=s,e.exports=s})?n.apply(t,[]):n)||(e.exports=r)},1858:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r.Z});var r=n(1062),i="8.10.0";r.Z.registerVersion("firebase",i,"app"),r.Z.SDK_VERSION=i},7805:(e,t,n)=>{var r,i="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},o=n(5893);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=r},2231:e=>{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e.exports=t},4213:function(e){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(t){o(t)}}function a(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}function i(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function o(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||t)}for(var s=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,i){return new e(this.left+t,this.top+n,this.width+r,this.height+i)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=n[0];return r?new e(r.x+t.windowBounds.left,r.y+t.windowBounds.top,r.width,r.height):e.EMPTY}
1,e.EMPTY=new e(0,0,0,0),e}(),a=function(e,t){return s.fromClientRect(e,t.getBoundingClientRect())},l=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,o="";++i<n;){var s=e[i];s<=65535?r.push(s):r.push(55296+((s-=65536)>>10),s%1024+56320),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d<u.length;d++)h[u.charCodeAt(d)]=d;var A,p,f,g,m,v,y,b,_=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},w=function(){function e(e,t,n,r,i,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return this.data[t=((t=this.index[e>>5])<<2)+(31&e)];if(e<=65535)return this.data[t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e)];if(e<this.highStart)return t=this.index[t=2080+(e>>11)],this.data[t=((t=this.index[t+=e>>5&63])<<2)+(31&e)];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),C=10,S=13,E=15,I=17,x=18,T=19,B=20,k=21,P=22,O=24,F=25,L=26,M=27,D=28,N=30,R=32,U=33,j=34,Q=35,H=37,V=38,q=39,K=40,G=42,z=[9001,65288],W="\xd7",$="\xf7",Y=(g=function(e){var t,n,r,i,o,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<a;t+=4)n=h[e.charCodeAt(t)],r=h[e.charCodeAt(t+1)],i=h[e.charCodeAt(t+2)],o=h[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c}(
vendor: 52,890 bytes, line 1
1"KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="
vendor: 4,182 bytes, line 1
1),m=Array.isArray(g)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(g):new Uint32Array(g),v=Array.isArray(g)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(g):new Uint16Array(g),y=_(v,12,m[4]/2),b=2===m[5]?_(v,(24+m[4])/2):(A=m,p=Math.ceil((24+m[4])/4),A.slice?A.slice(p,f):new Uint32Array(Array.prototype.slice.call(A,p,f))),new w(m[0],m[1],m[2],m[3],y,b)),X=[N,36],J=[1,2,3,5],Z=[C,8],ee=[M,L],te=J.concat(Z),ne=[V,q,K,j,Q],re=[E,S],ie=function(e,t,n,r){var i=r[n];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var o=n;o<=r.length;){if((l=r[++o])===t)return!0;if(l!==C)break}if(i===C)for(o=n;o>0;){var s=r[--o];if(Array.isArray(e)?-1!==e.indexOf(s):e===s)for(var a=n;a<=r.length;){var l;if((l=r[++a])===t)return!0;if(l!==C)break}if(s!==C)break}return!1},oe=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==C)return r;n--}return 0},se=function(e,t,n,r,i){if(0===n[r])return W;var o=r-1;if(Array.isArray(i)&&!0===i[o])return W;var s=o-1,a=o+1,l=t[o],c=s>=0?t[s]:0,u=t[a];if(2===l&&3===u)return W;if(-1!==J.indexOf(l))return"!";if(-1!==J.indexOf(u))return W;if(-1!==Z.indexOf(u))return W;if(8===oe(o,t))return $;if(11===Y.get(e[o]))return W;if((l===R||l===U)&&11===Y.get(e[a]))return W;if(7===l||7===u)return W;if(9===l)return W;if(-1===[C,S,E].indexOf(l)&&9===u)return W;if(-1!==[I,x,T,O,D].indexOf(u))return W;if(oe(o,t)===P)return W;if(ie(23,P,o,t))return W;if(ie([I,x],k,o,t))return W;if(ie(12,12,o,t))return W;if(l===C)return $;if(23===l||23===u)return W;if(16===u||16===l)return $;if(-1!==[S,E,k].indexOf(u)||14===l)return W;if(36===c&&-1!==re.indexOf(l))return W;if(l===D&&36===u)return W;if(u===B)return W;if(-1!==X.indexOf(u)&&l===F||-1!==X.indexOf(l)&&u===F)return W;if(l===M&&-1!==[H,R,U].indexOf(u)||-1!==[H,R,U].indexOf(l)&&u===L)return W;if(-1!==X.indexOf(l)&&-1!==ee.indexOf(u)||-1!==ee.indexOf(l)&&-1!==X.indexOf(u))return W;if(-1!==[M,L].indexOf(l)&&(u===F||-1!==[P,E].indexOf(u)&&t[a+1]===F)||-1!==[P,E].indexOf(l)&&u===F||l===F&&-1!==[F,D,O].indexOf(u))return W;if(-1!==[F,D,O,I,x].indexOf(u))for(var h=o;h>=0;){if((d=t[h])===F)return W;if(-1===[D,O].indexOf(d))break;h--}if(-1!==[M,L].indexOf(u))for(h=-1!==[I,x].indexOf(l)?s:o;h>=0;){var d;if((d=t[h])===F)return W;if(-1===[D,O].indexOf(d))break;h--}if(V===l&&-1!==[V,q,j,Q].indexOf(u)||-1!==[q,j].indexOf(l)&&-1!==[q,K].indexOf(u)||-1!==[K,Q].indexOf(l)&&u===K)return W;if(-1!==ne.indexOf(l)&&-1!==[B,L].indexOf(u)||-1!==ne.indexOf(u)&&l===M)return W;if(-1!==X.indexOf(l)&&-1!==X.indexOf(u))return W;if(l===O&&-1!==X.indexOf(u))return W;if(-1!==X.concat(F).indexOf(l)&&u===P&&-1===z.indexOf(e[a])||-1!==X.concat(F).indexOf(u)&&l===x)return W;if(41===l&&41===u){for(var A=n[o],p=1;A>0&&41===t[--A];)p++;if(p%2!=0)return W}return l===R&&u===U?W:$},ae=function(){function e(e,t,n,r){this.codePoints=e,this.required="!"===t,this.start=n,this.end=r}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),le=45,ce=43,ue=-1,he=function(e){return e>=48&&e<=57},de=function(e){return he(e)||e>=65&&e<=70||e>=97&&e<=102},Ae=function(e){return 10===e||9===e||32===e},pe=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},fe=function(e){return pe(e)||he(e)||e===le},ge=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},me=function(e,t){return 92===e&&10!==t},ve=function(e,t,n){return e===le?pe(t)||me(t,n):!!pe(e)||!(92!==e||!me(e,t))},ye=function(e,t,n){return e===ce||e===le?!!he(t)||46===t&&he(n):he(46===e?t:e)},be=function(e){var t=0,n=1;e[t]!==ce&&e[t]!==le||(e[t]===le&&(n=-1),t++);for(var r=[];he(e[t]);)r.push(e[t++]);var i=r.length?parseInt(c.apply(void 0,r),10):0;46===e[t]&&t++;for(var o=[];he(e[t]);)o.push(e[t++]);var s=o.length,a=s?parseInt(c.apply(void 0,o),10):0;69!==e[t]&&101!==e[t]||t++;var l=1;e[t]!==ce&&e[t]!==le||(e[t]===le&&(l=-1),t++);for(var u=[];he(e[t]);)u.push(e[t++]);var h=u.length?parseInt(c.apply(void 0,u),10):0;return n*(i+a*Math.pow(10,-s))*Math.pow(10,l*h)},_e={type:2},we={type:3},Ce={type:4},Se={type:13},Ee={type:8}
vendor: 9,263 bytes, line 1
1,Ie={type:21},xe={type:9},Te={type:10},Be={type:11},ke={type:12},Pe={type:14},Oe={type:23},Fe={type:1},Le={type:25},Me={type:24},De={type:26},Ne={type:27},Re={type:28},Ue={type:29},je={type:31},Qe={type:32},He=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Qe;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(fe(t)||me(n,r)){var i=ve(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:i}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Se;break;case 39:return this.consumeStringToken(39);case 40:return _e;case 41:return we;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Pe;break;case ce:if(ye(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return Ce;case le:var o=e,s=this.peekCodePoint(0),a=this.peekCodePoint(1);if(ye(o,s,a))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(ve(o,s,a))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(s===le&&62===a)return this.consumeCodePoint(),this.consumeCodePoint(),Me;break;case 46:if(ye(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(42===l&&47===(l=this.consumeCodePoint()))return this.consumeToken();if(l===ue)return this.consumeToken()}break;case 58:return De;case 59:return Ne;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===le&&this.peekCodePoint(2)===le)return this.consumeCodePoint(),this.consumeCodePoint(),Le;break;case 64:var u=this.peekCodePoint(0),h=this.peekCodePoint(1),d=this.peekCodePoint(2);if(ve(u,h,d))return{type:7,value:this.consumeName()};break;case 91:return Re;case 92:if(me(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Ue;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ee;break;case 123:return Be;case 125:return ke;case 117:case 85:var A=this.peekCodePoint(0),p=this.peekCodePoint(1);return A!==ce||!de(p)&&63!==p||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xe;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Ie;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Te;break;case ue:return Qe}return Ae(e)?(this.consumeWhiteSpace(),je):he(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):pe(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();de(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(c.apply(void 0,e.map(function(e){return 63===e?48:e})),16),end:parseInt(c.apply(void 0,e.map(function(e){return 63===e?70:e})),16)};var r=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===le&&de(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];de(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(c.apply(void 0,i),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ue)return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ue||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Oe)}for(;;){var r=this.consumeCodePoint();if(r===ue||41===r)return{type:22,value:c.apply(void 0,e)};if(Ae(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ue||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Oe);if(34===r||39===r||40===r||ge(r))return this.consumeBadUrlRemnants(),Oe;if(92===r){if(!me(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Oe;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;Ae(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||e===ue)return;me(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(6e4,e);t+=c.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===ue||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(10===r)return this._value.splice(0,n),Fe;if(92===r){var i=this._value[n+1];i!==ue&&void 0!==i&&(10===i?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):me(r,i)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(n!==ce&&n!==le||e.push(this.consumeCodePoint());he(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&he(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;he(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===n||101===n)&&((r===ce||r===le)&&he(i)||he(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;he(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[be(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);return ve(r,i,o)?{type:15,number:t,flags:n,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(de(e)){for(var t=c(e);de(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());Ae(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return e===ue?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(fe(t))e+=c(t);else{if(!me(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Ve=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new He;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||Je(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Qe:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),qe=function(e){return 15===e.type},Ke=function(e){return 17===e.type},Ge=function(e){return 20===e.type},ze=function(e){return 0===e.type},We=function(e,t){return Ge(e)&&e.value===t}
vendor: 5,229 bytes, line 1
1,$e=function(e){return 31!==e.type},Ye=function(e){return 31!==e.type&&4!==e.type},Xe=function(e){var t=[],n=[];return e.forEach(function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)}),n.length&&t.push(n),t},Je=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},Ze=function(e){return 17===e.type||15===e.type},et=function(e){return 16===e.type||Ze(e)},tt=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},nt={type:17,number:0,flags:4},rt={type:16,number:50,flags:4},it={type:16,number:100,flags:4},ot=function(e,t,n){var r=e[0],i=e[1];return[st(r,t),st(void 0!==i?i:r,n)]},st=function(e,t){if(16===e.type)return e.number/100*t;if(qe(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},at="grad",lt="turn",ct=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case at:return Math.PI/200*t.number;case"rad":return t.number;case lt:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},ut=function(e){return 15===e.type&&("deg"===e.unit||e.unit===at||"rad"===e.unit||e.unit===lt)},ht=function(e){switch(e.filter(Ge).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[nt,nt];case"to top":case"bottom":return dt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[nt,it];case"to right":case"left":return dt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[it,it];case"to bottom":case"top":return dt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[it,nt];case"to left":case"right":return dt(270)}return 0},dt=function(e){return Math.PI*e/180},At=function(e,t){if(18===t.type){var n=wt[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);return gt(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),1)}if(4===t.value.length){r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);var s=t.value.substring(3,4);return gt(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),parseInt(s+s,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),gt(parseInt(r,16),parseInt(i,16),parseInt(o,16),1);if(8===t.value.length)return r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),s=t.value.substring(6,8),gt(parseInt(r,16),parseInt(i,16),parseInt(o,16),parseInt(s,16)/255)}if(20===t.type){var a=St[t.value.toUpperCase()];if(void 0!==a)return a}return St.TRANSPARENT},pt=function(e){return 0==(255&e)},ft=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+r+","+n+","+t/255+")":"rgb("+i+","+r+","+n+")"},gt=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r)<<0)>>>0},mt=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},vt=function(e,t){var n=t.filter(Ye);if(3===n.length){var r=n.map(mt);return gt(r[0],r[1],r[2],1)}if(4===n.length){var i=n.map(mt);return gt(i[0],i[1],i[2],i[3])}return 0};function yt(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var bt,_t=function(e,t){var n=t.filter(Ye),r=n[0],i=n[1],o=n[2],s=n[3],a=(17===r.type?dt(r.number):ct(0,r))/(2*Math.PI),l=et(i)?i.number/100:0,c=et(o)?o.number/100:0,u=void 0!==s&&et(s)?st(s,1):1;if(0===l)return gt(255*c,255*c,255*c,1);var h=c<=.5?c*(l+1):c+l-c*l,d=2*c-h,A=yt(d,h,a+1/3),p=yt(d,h,a),f=yt(d,h,a-1/3);return gt(255*A,255*p,255*f,u)},wt={hsl:_t,hsla:_t,rgb:vt,rgba:vt},Ct=function(e,t){return At(e,Ve.create(t).parseComponentValue())},St={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:404164
11215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};!function(e){e[e.BORDER_BOX=0]="BORDER_BOX",e[e.PADDING_BOX=1]="PADDING_BOX",e[e.CONTENT_BOX=2]="CONTENT_BOX"}(bt||(bt={}));var Et,It,xt,Tt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Ge(e))switch(e.value){case"padding-box":return bt.PADDING_BOX;case"content-box":return bt.CONTENT_BOX}return bt.BORDER_BOX})}},Bt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},kt=function(e,t){var n=At(e,t[0]),r=t[1];return r&&et(r)?{color:n,stop:r}:{color:n,stop:null}},Pt=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=nt),null===r.stop&&(r.stop=it);for(var i=[],o=0,s=0;s<e.length;s++){var a=e[s].stop;if(null!==a){var l=st(a,t);i.push(l>o?l:o),o=l}else i.push(null)}var c=null;for(s=0;s<i.length;s++){var u=i[s];if(null===u)null===c&&(c=s);else if(null!==c){for(var h=s-c,d=(u-i[c-1])/(h+1),A=1;A<=h;A++)i[c+A-1]=d*A;c=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,i[n]/t),0)}})},Ot=function(e,t){return Math.sqrt(e*e+t*t)},Ft=function(e,t,n,r,i){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var o=Ot(n-t[0],r-t[1]);return(i?o<e.optimumDistance:o>e.optimumDistance)?{optimumCorner:t,optimumDistance:o}:e},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Lt=function(e,t){var n=dt(180),r=[];return Xe(t).forEach(function(t,i){if(0===i){var o=t[0];if(20===o.type&&-1!==["top","left","right","bottom"].indexOf(o.value))return void(n=ht(t));if(ut(o))return void(n=(ct(0,o)+dt(270))%dt(360))}var s=kt(e,t);r.push(s)}),{angle:n,stops:r,type:Et.LINEAR_GRADIENT}},Mt="closest-side",Dt="farthest-side",Nt="closest-corner",Rt="farthest-corner",Ut="circle",jt="ellipse",Qt="cover",Ht="contain",Vt=function(e,t){var n=It.CIRCLE,r=xt.FARTHEST_CORNER,i=[],o=[];return Xe(t).forEach(function(t,s){var a=!0;if(0===s?a=t.reduce(function(e,t){if(Ge(t))switch(t.value){case"center":return o.push(rt),!1;case"top":case"left":return o.push(nt),!1;case"right":case"bottom":return o.push(it),!1}else if(et(t)||Ze(t))return o.push(t),!1;return e},a):1===s&&(a=t.reduce(function(e,t){if(Ge(t))switch(t.value){case Ut:return n=It.CIRCLE,!1;case jt:return n=It.ELLIPSE,!1;case Ht:case Mt:return r=xt.CLOSEST_SIDE,!1;case Dt:return r=xt.FARTHEST_SIDE,!1;case Nt:return r=xt.CLOSEST_CORNER,!1;case Qt:case Rt:return r=xt.FARTHEST_CORNER,!1}else if(Ze(t)||et(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},a)),a){var l=kt(e,t);i.push(l)}}),{size:r,shape:n,stops:i,position:o,type:Et.RADIAL_GRADIENT}};!function(e){e[e.URL=0]="URL",e[e.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",e[e.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(Et||(Et={}
1)),function(e){e[e.CIRCLE=0]="CIRCLE",e[e.ELLIPSE=1]="ELLIPSE"}(It||(It={})),function(e){e[e.CLOSEST_SIDE=0]="CLOSEST_SIDE",e[e.FARTHEST_SIDE=1]="FARTHEST_SIDE",e[e.CLOSEST_CORNER=2]="CLOSEST_CORNER",e[e.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(xt||(xt={}));var qt,Kt=function(e,t){if(22===t.type){var n={url:t.value,type:Et.URL};return e.cache.addImage(t.value),n}if(18===t.type){var r=Gt[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)},Gt={"linear-gradient":function(e,t){var n=dt(180),r=[];return Xe(t).forEach(function(t,i){if(0===i){var o=t[0];if(20===o.type&&"to"===o.value)return void(n=ht(t));if(ut(o))return void(n=ct(0,o))}var s=kt(e,t);r.push(s)}),{angle:n,stops:r,type:Et.LINEAR_GRADIENT}},"-moz-linear-gradient":Lt,"-ms-linear-gradient":Lt,"-o-linear-gradient":Lt,"-webkit-linear-gradient":Lt,"radial-gradient":function(e,t){var n=It.CIRCLE,r=xt.FARTHEST_CORNER,i=[],o=[];return Xe(t).forEach(function(t,s){var a=!0;if(0===s){var l=!1;a=t.reduce(function(e,t){if(l)if(Ge(t))switch(t.value){case"center":return o.push(rt),e;case"top":case"left":return o.push(nt),e;case"right":case"bottom":return o.push(it),e}else(et(t)||Ze(t))&&o.push(t);else if(Ge(t))switch(t.value){case Ut:return n=It.CIRCLE,!1;case jt:return n=It.ELLIPSE,!1;case"at":return l=!0,!1;case Mt:return r=xt.CLOSEST_SIDE,!1;case Qt:case Dt:return r=xt.FARTHEST_SIDE,!1;case Ht:case Nt:return r=xt.CLOSEST_CORNER,!1;case Rt:return r=xt.FARTHEST_CORNER,!1}else if(Ze(t)||et(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},a)}if(a){var c=kt(e,t);i.push(c)}}),{size:r,shape:n,stops:i,position:o,type:Et.RADIAL_GRADIENT}},"-moz-radial-gradient":Vt,"-ms-radial-gradient":Vt,"-o-radial-gradient":Vt,"-webkit-radial-gradient":Vt,"-webkit-gradient":function(e,t){var n=dt(180),r=[],i=Et.LINEAR_GRADIENT,o=It.CIRCLE,s=xt.FARTHEST_CORNER;return Xe(t).forEach(function(t,n){var o=t[0];if(0===n){if(Ge(o)&&"linear"===o.value)return void(i=Et.LINEAR_GRADIENT);if(Ge(o)&&"radial"===o.value)return void(i=Et.RADIAL_GRADIENT)}if(18===o.type)if("from"===o.name){var s=At(e,o.values[0]);r.push({stop:nt,color:s})}else if("to"===o.name)s=At(e,o.values[0]),r.push({stop:it,color:s});else if("color-stop"===o.name){var a=o.values.filter(Ye);if(2===a.length){s=At(e,a[1]);var l=a[0];Ke(l)&&r.push({stop:{type:16,number:100*l.number,flags:l.flags},color:s})}}}),i===Et.LINEAR_GRADIENT?{angle:(n+dt(180))%dt(360),stops:r,type:i}:{size:s,shape:o,stops:r,position:[],type:i}}},zt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter(function(e){return Ye(e)&&function(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Gt[e.name])}(e)}).map(function(t){return Kt(e,t)})}},Wt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Ge(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$t={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Xe(t).map(function(e){return e.filter(et)}).map(tt)}};!function(e){e[e.REPEAT=0]="REPEAT",e[e.NO_REPEAT=1]="NO_REPEAT",e[e.REPEAT_X=2]="REPEAT_X",e[e.REPEAT_Y=3]="REPEAT_Y"}(qt||(qt={}));var Yt,Xt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Xe(t).map(function(e){return e.filter(Ge).map(function(e){return e.value}).join(" ")}).map(Jt)}},Jt=function(e){switch(e){case"no-repeat":return qt.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return qt.REPEAT_X;case"repeat-y":case"no-repeat repeat":return qt.REPEAT_Y;case"repeat":default:return qt.REPEAT}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(Yt||(Yt={}));var Zt,en={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Xe(t).map(function(e){return e.filter(tn)})}},tn=function(e){return Ge(e)||et(e)},nn=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},rn=nn("top"),on=nn("right"),sn=nn("bottom"),an=nn("left"),ln=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return tt(t.filter(et))}}},cn=ln("top-left"),un=ln("top-right"),hn=ln("bottom-right"),dn=ln("bottom-left");!function(e){e[e.NONE=0]="NONE",e[e.SOLID=1]="SOLID",e[e.DASHED=2]="DASHED",e[e.DOTTED=3]="DOTTED",e[e.DOUBLE=4]="DOUBLE"}(Zt||(Zt={}));var An,pn=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return Zt.NONE;case"dashed":return Zt.DASHED;case"dotted":return Zt.DOTTED;case"double":return Zt.DOUBLE}return Zt.SOLID}}},fn=pn("top"),gn=pn("right"),mn=pn("bottom"),vn=pn("left"),yn=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return qe(t)?t.number:0}}},bn=yn("top"),_n=yn("right"),wn=yn("bottom"),Cn=yn("left"),Sn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},En={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}}
1,In={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Ge).reduce(function(e,t){return e|xn(t.value)},0)}},xn=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!function(e){e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.INLINE_START=3]="INLINE_START",e[e.INLINE_END=4]="INLINE_END"}(An||(An={}));var Tn,Bn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return An.LEFT;case"right":return An.RIGHT;case"inline-start":return An.INLINE_START;case"inline-end":return An.INLINE_END}return An.NONE}},kn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Tn||(Tn={}));var Pn,On={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return Tn.STRICT;case"normal":default:return Tn.NORMAL}}},Fn={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ln=function(e,t){return Ge(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:et(e)?st(e,t):t},Mn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Kt(e,t)}};!function(e){e[e.INSIDE=0]="INSIDE",e[e.OUTSIDE=1]="OUTSIDE"}(Pn||(Pn={}));var Dn,Nn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return Pn.INSIDE;case"outside":default:return Pn.OUTSIDE}}};!function(e){e[e.NONE=-1]="NONE",e[e.DISC=0]="DISC",e[e.CIRCLE=1]="CIRCLE",e[e.SQUARE=2]="SQUARE",e[e.DECIMAL=3]="DECIMAL",e[e.CJK_DECIMAL=4]="CJK_DECIMAL",e[e.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",e[e.LOWER_ROMAN=6]="LOWER_ROMAN",e[e.UPPER_ROMAN=7]="UPPER_ROMAN",e[e.LOWER_GREEK=8]="LOWER_GREEK",e[e.LOWER_ALPHA=9]="LOWER_ALPHA",e[e.UPPER_ALPHA=10]="UPPER_ALPHA",e[e.ARABIC_INDIC=11]="ARABIC_INDIC",e[e.ARMENIAN=12]="ARMENIAN",e[e.BENGALI=13]="BENGALI",e[e.CAMBODIAN=14]="CAMBODIAN",e[e.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",e[e.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",e[e.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",e[e.DEVANAGARI=18]="DEVANAGARI",e[e.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",e[e.GEORGIAN=20]="GEORGIAN",e[e.GUJARATI=21]="GUJARATI",e[e.GURMUKHI=22]="GURMUKHI",e[e.HEBREW=22]="HEBREW",e[e.HIRAGANA=23]="HIRAGANA",e[e.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",e[e.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",e[e.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",e[e.KANNADA=27]="KANNADA",e[e.KATAKANA=28]="KATAKANA",e[e.KATAKANA_IROHA=29]="KATAKA
1NA_IROHA",e[e.KHMER=30]="KHMER",e[e.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",e[e.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",e[e.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",e[e.LAO=34]="LAO",e[e.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",e[e.MALAYALAM=36]="MALAYALAM",e[e.MONGOLIAN=37]="MONGOLIAN",e[e.MYANMAR=38]="MYANMAR",e[e.ORIYA=39]="ORIYA",e[e.PERSIAN=40]="PERSIAN",e[e.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",e[e.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",e[e.TAMIL=43]="TAMIL",e[e.TELUGU=44]="TELUGU",e[e.THAI=45]="THAI",e[e.TIBETAN=46]="TIBETAN",e[e.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",e[e.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",e[e.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",e[e.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",e[e.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Dn||(Dn={}));var Rn,Un={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return Dn.DISC;case"circle":return Dn.CIRCLE;case"square":return Dn.SQUARE;case"decimal":return Dn.DECIMAL;case"cjk-decimal":return Dn.CJK_DECIMAL;case"decimal-leading-zero":return Dn.DECIMAL_LEADING_ZERO;case"lower-roman":return Dn.LOWER_ROMAN;case"upper-roman":return Dn.UPPER_ROMAN;case"lower-greek":return Dn.LOWER_GREEK;case"lower-alpha":return Dn.LOWER_ALPHA;case"upper-alpha":return Dn.UPPER_ALPHA;case"arabic-indic":return Dn.ARABIC_INDIC;case"armenian":return Dn.ARMENIAN;case"bengali":return Dn.BENGALI;case"cambodian":return Dn.CAMBODIAN;case"cjk-earthly-branch":return Dn.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Dn.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Dn.CJK_IDEOGRAPHIC;case"devanagari":return Dn.DEVANAGARI;case"ethiopic-numeric":return Dn.ETHIOPIC_NUMERIC;case"georgian":return Dn.GEORGIAN;case"gujarati":return Dn.GUJARATI;case"gurmukhi":return Dn.GURMUKHI;case"hebrew":return Dn.HEBREW;case"hiragana":return Dn.HIRAGANA;case"hiragana-iroha":return Dn.HIRAGANA_IROHA;case"japanese-formal":return Dn.JAPANESE_FORMAL;case"japanese-informal":return Dn.JAPANESE_INFORMAL;case"kannada":return Dn.KANNADA;case"katakana":return Dn.KATAKANA;case"katakana-iroha":return Dn.KATAKANA_IROHA;case"khmer":return Dn.KHMER;case"korean-hangul-formal":return Dn.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Dn.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Dn.KOREAN_HANJA_INFORMAL;case"lao":return Dn.LAO;case"lower-armenian":return Dn.LOWER_ARMENIAN;case"malayalam":return Dn.MALAYALAM;case"mongolian":return Dn.MONGOLIAN;case"myanmar":return Dn.MYANMAR;case"oriya":return Dn.ORIYA;case"persian":return Dn.PERSIAN;case"simp-chinese-formal":return Dn.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Dn.SIMP_CHINESE_INFORMAL;case"tamil":return Dn.TAMIL;case"telugu":return Dn.TELUGU;case"thai":return Dn.THAI;case"tibetan":return Dn.TIBETAN;case"trad-chinese-formal":return Dn.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Dn.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Dn.UPPER_ARMENIAN;case"disclosure-open":return Dn.DISCLOSURE_OPEN;case"disclosure-closed":return Dn.DISCLOSURE_CLOSED;case"none":default:return Dn.NONE}}},jn=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Qn=jn("top"),Hn=jn("right"),Vn=jn("bottom"),qn=jn("left");!function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.SCROLL=2]="SCROLL",e[e.CLIP=3]="CLIP",e[e.AUTO=4]="AUTO"}(Rn||(Rn={}));var Kn,Gn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Ge).map(function(e){switch(e.value){case"hidden":return Rn.HIDDEN;case"scroll":return Rn.SCROLL;case"clip":return Rn.CLIP;case"auto":return Rn.AUTO;case"visible":default:return Rn.VISIBLE}})}},zn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Wn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},$n=Wn("top"),Yn=Wn("right"),Xn=Wn("bottom"),Jn=Wn("left");!function(e){e[e.LEFT=0]="LEFT",e[e.CENTER=1]="CENTER",e[e.RIGHT=2]="RIGHT"}(Kn||(Kn={}));var Zn,er={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return Kn.RIGHT;case"center":case"justify":return Kn.CENTER;case"left":default:return Kn.LEFT}}};!function(e){e[e.STATIC=0]="STATIC",e[e.RELATIVE=1]="RELATIVE",e[e.ABSOLUTE=2]="ABSOLUTE",e[e.FIXED=3]="FIXED",e[e.STICKY=4]="STICKY"}(Zn||(Zn={}));var tr,nr={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return Zn.RELATIVE;case"absolute":return Zn.ABSOLUTE;case"fixed":return Zn.FIXED;case"sticky":return Zn.STICKY}return Zn.STATIC}},rr={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&We(t[0],"none")?[]:Xe(t).map(function(t){for(var n={color:St.TRANSPARENT,offsetX:nt,offsetY:nt,blur:nt},r=0,i=0;i<t.length;i++){var o=t[i];Ze(o)?(0===r?n.offsetX=o:1===r?n.offsetY=o:n.blur=o,r++):n.color=At(e,o)}return n})}};!function(e){e[e.NONE=0]="NONE",e[e.LOWERCASE=1]="LOWERCASE",e[e.UPPERCASE=2]="UPPERCASE",e[e.CAPITALIZE=3]="CAPITALIZE"}(tr||(tr={}));var ir,or={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return tr.UPPERCASE;case"lowercase":return tr.LOWERCASE;case"capitalize":return tr.CAPITALIZE}return tr.NONE}},sr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=ar[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},ar={matrix:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 16===t.length?[t[0],t[1],t[4],t[5],t[12],t[13]]:null}},lr={type:16,number:50,flags:4},cr=[lr,lr],ur={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(et);return 2!==n.length?cr:[n[0],n[1]]}};!function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.COLLAPSE=2]="COLLAPSE"}(ir||(ir={}));var hr,dr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return ir.HIDDEN;case"collapse":return ir.COLLAPSE;case"visible":default:return ir.VISIBLE}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(hr||(hr={}));var Ar,pr={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return hr.BREAK_ALL;case"keep-all":return hr.KEEP_ALL;case"normal":default:return hr.NORMAL}}},fr={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(Ke(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},gr=function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")},mr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Ke(t)?t.number:1}},vr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Ge).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}}
1,br={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],r=[];return t.forEach(function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}}),n.length&&r.push(n.join(" ")),r.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},_r={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},wr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Ke(t))return t.number;if(Ge(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Cr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Ge).map(function(e){return e.value})}};!function(e){e.NORMAL="normal",e.ITALIC="italic",e.OBLIQUE="oblique"}(Ar||(Ar={}));var Sr,Er={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return Ar.OBLIQUE;case"italic":return Ar.ITALIC;case"normal":default:return Ar.NORMAL}}},Ir=function(e,t){return 0!=(e&t)},xr={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t}},Tr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],i=t.filter($e),o=0;o<i.length;o++){var s=i[o],a=i[o+1];if(20===s.type){var l=a&&Ke(a)?a.number:1;r.push({counter:s.value,increment:l})}}return r}},Br={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],r=t.filter($e),i=0;i<r.length;i++){var o=r[i],s=r[i+1];if(Ge(o)&&"none"!==o.value){var a=s&&Ke(s)?s.number:0;n.push({counter:o.value,reset:a})}}return n}},kr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(qe).map(function(e){return gr(0,e)})}},Pr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var r=[],i=t.filter(ze);if(i.length%2!=0)return null;for(var o=0;o<i.length;o+=2)r.push({open:i[o].value,close:i[o+1].value});return r}},Or=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},Fr={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&We(t[0],"none")?[]:Xe(t).map(function(t){for(var n={color:255,offsetX:nt,offsetY:nt,blur:nt,spread:nt,inset:!1},r=0,i=0;i<t.length;i++){var o=t[i];We(o,"inset")?n.inset=!0:Ze(o)?(0===r?n.offsetX=o:1===r?n.offsetY=o:2===r?n.blur=o:n.spread=o,r++):n.color=At(e,o)}return n})}};!function(e){e[e.FILL=0]="FILL",e[e.STROKE=1]="STROKE",e[e.MARKERS=2]="MARKERS"}(Sr||(Sr={}));for(var Lr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[Sr.FILL,Sr.STROKE,Sr.MARKERS],r=[];return t.filter(Ge).forEach(function(e){switch(e.value){case"stroke":r.push(Sr.STROKE);break;case"fill":r.push(Sr.FILL);break;case"markers":r.push(Sr.MARKERS)}}),n.forEach(function(e){-1===r.indexOf(e)&&r.push(e)}),r}},Mr={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Dr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return qe(t)?t.number:0}},Nr=function(){function e(e,t){var n,r;this.animationDuration=jr(e,kr,t.animationDuration),this.backgroundClip=jr(e,Tt,t.backgroundClip),this.backgroundColor=jr(e,Bt,t.backgroundColor),this.backgroundImage=jr(e,zt,t.backgroundImage),this.backgroundOrigin=jr(e,Wt,t.backgroundOrigin),this.backgroundPosition=jr(e,$t,t.backgroundPosition),this.backgroundRepeat=jr(e,Xt,t.backgroundRepeat),this.backgroundSize=jr(e,en,t.backgroundSize),this.borderTopColor=jr(e,rn,t.borderTopColor),this.borderRightColor=jr(e,on,t.borderRightColor),this.borderBottomColor=jr(e,sn,t.borderBottomColor),this.borderLeftColor=jr(e,an,t.borderLeftColor),this.borderTopLeftRadius=jr(e,cn,t.borderTopLeftRadius),this.borderTopRightRadius=jr(e,un,t.borderTopRightRadius),this.borderBottomRightRadius=jr(e,hn,t.borderBottomRightRadius),this.borderBottomLeftRadius=jr(e,dn,t.borderBottomLeftRadius),this.borderTopStyle=jr(e,fn,t.borderTopStyle),this.borderRightStyle=jr(e,gn,t.borderRightStyle),this.borderBottomStyle=jr(e,mn,t.borderBottomStyle),this.borderLeftStyle=jr(e,vn,t.borderLeftStyle),this.borderTopWidth=jr(e,bn,t.borderTopWidth),this.borderRightWidth=jr(e,_n,t.borderRightWidth),this.borderBottomWidth=jr(e,wn,t.borderBottomWidth),this.borderLeftWidth=jr(e,Cn,t.borderLeftWidth),this.boxShadow=jr(e,Fr,t.boxShadow),this.color=jr(e,Sn,t.color),this.direction=jr(e,En,t.direction),this.display=jr(e,In,t.display),this.float=jr(e,Bn,t.cssFloat),this.fontFamily=jr(e,br,t.fontFamily),this.fontSize=jr(e,_r,t.fontSize),this.fontStyle=jr(e,Er,t.fontStyle),this.fontVariant=jr(e,Cr,t.fontVariant),this.fontWeight=jr(e,wr,t.fontWeight),this.letterSpacing=jr(e,kn,t.letterSpacing),this.lineBreak=jr(e,On,t.lineBreak),this.lineHeight=jr(e,Fn,t.lineHeight),this.listStyleImage=jr(e,Mn,t.listStyleImage),this.listStylePosition=jr(e,Nn,t.listStylePosition),this.listStyleType=jr(e,Un,t.listStyleType),this.marginTop=jr(e,Qn,t.marginTop),this.marginRight=jr(e,Hn,t.marginRight),this.marginBottom=jr(e,Vn,t.marginBottom),this.marginLeft=jr(e,qn,t.marginLeft),this.opacity=jr(e,mr,t.opacity);var i=jr(e,Gn,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=jr(e,zn,t.overflowWrap),this.paddingTop=jr(e,$n,t.paddingTop),this.paddingRight=jr(e,Yn,t.paddingRight),this.paddingBottom=jr(e,Xn,t.paddingBottom),this.paddingLeft=jr(e,Jn,t.paddingLeft),this.paintOrder=jr(e,Lr,t.paintOrder),this.position=jr(e,nr,t.position),this.textAlign=jr(e,er,t.textAlign),this.textDecorationColor=jr(e,vr,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=jr(e,
1yr,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=jr(e,rr,t.textShadow),this.textTransform=jr(e,or,t.textTransform),this.transform=jr(e,sr,t.transform),this.transformOrigin=jr(e,ur,t.transformOrigin),this.visibility=jr(e,dr,t.visibility),this.webkitTextStrokeColor=jr(e,Mr,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=jr(e,Dr,t.webkitTextStrokeWidth),this.wordBreak=jr(e,pr,t.wordBreak),this.zIndex=jr(e,fr,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===ir.VISIBLE},e.prototype.isTransparent=function(){return pt(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return this.position!==Zn.STATIC},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==An.NONE},e.prototype.isInlineLevel=function(){return Ir(this.display,4)||Ir(this.display,33554432)||Ir(this.display,268435456)||Ir(this.display,536870912)||Ir(this.display,67108864)||Ir(this.display,134217728)},e}(),Rr=function(e,t){this.content=jr(e,xr,t.content),this.quotes=jr(e,Pr,t.quotes)},Ur=function(e,t){this.counterIncrement=jr(e,Tr,t.counterIncrement),this.counterReset=jr(e,Br,t.counterReset)},jr=function(e,t,n){var r=new He,i=null!=n?n.toString():t.initialValue;r.write(i);var o=new Ve(r.read());switch(t.type){case 2:var s=o.parseComponentValue();return t.parse(e,Ge(s)?s.value:t.initialValue);case 0:return t.parse(e,o.parseComponentValue());case 1:return t.parse(e,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(t.format){case"angle":return ct(0,o.parseComponentValue());case"color":return At(e,o.parseComponentValue());case"image":return Kt(e,o.parseComponentValue());case"length":var a=o.parseComponentValue();return Ze(a)?a:nt;case"length-percentage":var l=o.parseComponentValue();return et(l)?l:nt;case"time":return gr(0,o.parseComponentValue())}}},Qr=function(e,t){var n=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===n||t===n},Hr=function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Qr(t,3),this.styles=new Nr(e,window.getComputedStyle(t,null)),Vi(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=a(this.context,t),Qr(t,4)&&(this.flags|=16)},Vr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Kr=0;Kr<Vr.length;Kr++)qr[Vr.charCodeAt(Kr)]=Kr;for(var Gr=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},zr=function(){function e(e,t,n,r,i,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return this.data[t=((t=this.index[e>>5])<<2)+(31&e)];if(e<=65535)return this.data[t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e)];if(e<this.highStart)return t=this.index[t=2080+(e>>11)],this.data[t=((t=this.index[t+=e>>5&63])<<2)+(31&e)];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Wr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Yr=0;Yr<Wr.length;Yr++)$r[Wr.charCodeAt(Yr)]=Yr;var Xr,Jr=8,Zr=9,ei=11,ti=12,ni=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,o="";++i<n;){var s=e[i];s<=65535?r.push(s):r.push(55296+((s-=65536)>>10),s%1024+56320),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},ri=function(e,t){var n,r,i,o=function(e){var t,n,r,i,o,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<a;t+=4)n=qr[e.charCodeAt(t)],r=qr[e.charCodeAt(t+1)],i=qr[e.charCodeAt(t+2)],o=qr[e.charCodeAt(t+3)],u[l++]=n<<2|r>>
14,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c}(
vendor: 26,158 bytes, line 1
1"AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="
vendor: 4,542 bytes, line 1
1),s=Array.isArray(o)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(o):new Uint32Array(o),a=Array.isArray(o)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(o):new Uint16Array(o),l=Gr(a,12,s[4]/2),c=2===s[5]?Gr(a,(24+s[4])/2):(n=s,r=Math.ceil((24+s[4])/4),n.slice?n.slice(r,i):new Uint32Array(Array.prototype.slice.call(n,r,i)));return new zr(s[0],s[1],s[2],s[3],l,c)}(),ii="\xd7",oi=function(e){return ri.get(e)},si=function(e,t,n){var r=n-2,i=t[r],o=t[n-1],s=t[n];if(2===o&&3===s)return ii;if(2===o||3===o||4===o)return"\xf7";if(2===s||3===s||4===s)return"\xf7";if(o===Jr&&-1!==[Jr,Zr,ei,ti].indexOf(s))return ii;if(!(o!==ei&&o!==Zr||s!==Zr&&10!==s))return ii;if((o===ti||10===o)&&10===s)return ii;if(13===s||5===s)return ii;if(7===s)return ii;if(1===o)return ii;if(13===o&&14===s){for(;5===i;)i=t[--r];if(14===i)return ii}if(15===o&&15===s){for(var a=0;15===i;)a++,i=t[--r];if(a%2==0)return ii}return"\xf7"},ai=function(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e),n=t.length,r=0,i=0,o=t.map(oi);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e=ii;r<n&&(e=si(0,o,++r))===ii;);if(e!==ii||r===n){var s=ni.apply(null,t.slice(i,r));return i=r,{value:s,done:!1}}return{done:!0,value:null}}}},li=function(e){for(var t,n=ai(e),r=[];!(t=n.next()).done;)t.value&&r.push(t.value.slice());return r},ci=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},ui=function(e,t,n,r,i){var o="http://www.w3.org/2000/svg",s=document.createElementNS(o,"svg"),a=document.createElementNS(o,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(i),s},hi=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},di={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),i=Math.round(r.height);if(e.body.removeChild(n),123===i)return!0}}return!1}(document);return Object.defineProperty(di,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=di.SUPPORT_RANGE_BOUNDS&&function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=t.firstChild,i=l(r.data).map(function(e){return c(e)}),o=0,s={},a=i.every(function(e,t){n.setStart(r,o),n.setEnd(r,o+e.length);var i=n.getBoundingClientRect();o+=e.length;var a=i.x>s.x||i.y>s.y;return s=i,0===t||a});return e.body.removeChild(t),a}(document);return Object.defineProperty(di,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(i){return!1}return!0}(document);return Object.defineProperty(di,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,o=t.toDataURL();i.src=o;var s=ui(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),hi(s).then(function(t){r.drawImage(t,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var s=e.createElement("div");return s.style.backgroundImage="url("+o+")",s.style.height="100px",ci(i)?hi(ui(n,n,0,0,s)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),ci(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})}
1(document):Promise.resolve(!1);return Object.defineProperty(di,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(di,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(di,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(di,"SUPPORT_CORS_XHR",{value:e}),e}},Ai=function(e,t){this.text=e,this.bounds=t},pi=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(e,t),i.setEnd(e,t+n),i},fi=[32,160,4961,65792,65793,4153,4241],gi=function(e,t){for(var n,r=function(e,t){var n=l(e),r=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],r=[],i=[];return e.forEach(function(e,o){var s=Y.get(e);if(s>50?(i.push(!0),s-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(o),n.push(16);if(4===s||11===s){if(0===o)return r.push(o),n.push(N);var a=n[o-1];return-1===te.indexOf(a)?(r.push(r[o-1]),n.push(a)):(r.push(o),n.push(N))}return r.push(o),31===s?n.push("strict"===t?k:H):s===G||29===s?n.push(N):43===s?n.push(e>=131072&&e<=196605||e>=196608&&e<=262141?H:N):void n.push(s)}),[r,n,i]}(e,t.lineBreak),r=n[0],i=n[1],o=n[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(i=i.map(function(e){return-1!==[F,N,G].indexOf(e)?H:e})),[r,i,"keep-all"===t.wordBreak?o.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0]}(n,t),i=r[0],o=r[1],s=r[2],a=n.length,c=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};for(var e=W;u<a&&(e=se(n,o,i,++u,s))===W;);if(e!==W||u===a){var t=new ae(n,e,c,u);return c=u,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),i=[],o=function(){if(n.value){var e=n.value.slice(),t=l(e),r="";t.forEach(function(e){-1===fi.indexOf(e)?r+=c(e):(r.length&&i.push(r),i.push(c(e)),r="")}),r.length&&i.push(r)}};!(n=r.next()).done;)o();return i},mi=function(e,t,n){this.text=vi(t.data,n.textTransform),this.textBounds=function(e,t,n,r){var i=function(e,t){return 0!==t.letterSpacing?li(e):gi(e,t)}(t,n),o=[],l=0;return i.forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(di.SUPPORT_RANGE_BOUNDS)o.push(new Ai(t,di.SUPPORT_WORD_BREAKING?function(e,t,n,r){return s.fromClientRect(e,pi(t,n,r).getBoundingClientRect())}(e,r,l,t.length):s.fromDOMRectList(e,pi(r,l,t.length).getClientRects())));else{var i=r.splitText(t.length);o.push(new Ai(t,function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(r,t);var o=a(e,r);return r.firstChild&&i.replaceChild(r.firstChild,r),o}}
1return s.EMPTY}(e,r))),r=i}else di.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));l+=t.length}),o}(e,this.text,n,t)},vi=function(e,t){switch(t){case tr.LOWERCASE:return e.toLowerCase();case tr.CAPITALIZE:return e.replace(yi,bi);case tr.UPPERCASE:return e.toUpperCase();default:return e}},yi=/(^|\s|:|-|\(|\))([a-z])/g,bi=function(e,t,n){return e.length>0?t+n.toUpperCase():e},_i=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(Hr),wi=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(Hr),Ci=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=new XMLSerializer,o=a(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(Hr),Si=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(Hr),Ei=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(Hr),Ii=[{type:15,flags:0,unit:"px",number:3}],xi=[{type:16,flags:0,number:50}],Ti="checkbox",Bi="radio",ki=707406591,Pi=function(e){function n(t,n){var r,i,o,a=e.call(this,t,n)||this;switch(a.type=n.type.toLowerCase(),a.checked=n.checked,a.value=0===(o="password"===(i=n).type?new Array(i.value.length+1).join("\u2022"):i.value).length?i.placeholder||"":o,a.type!==Ti&&a.type!==Bi||(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=Zt.SOLID,a.styles.backgroundClip=[bt.BORDER_BOX],a.styles.backgroundOrigin=[0],a.bounds=(r=a.bounds).width>r.height?new s(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new s(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r),a.type){case Ti:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=Ii;break;case Bi:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=xi}return a}return t(n,e),n}(Hr),Oi=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return t(n,e),n}(Hr),Fi=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(Hr),Li=function(e){function n(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;
vendor: 3,105 bytes, line 1
1try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=Ri(t,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?Ct(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):St.TRANSPARENT,o=n.contentWindow.document.body?Ct(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):St.TRANSPARENT;r.backgroundColor=pt(i)?pt(o)?r.styles.backgroundColor:o:i}}catch(s){}return r}return t(n,e),n}(Hr),Mi=["OL","UL","MENU"],Di=function(e,t,n,r){for(var i=t.firstChild,o=void 0;i;i=o)if(o=i.nextSibling,Qi(i)&&i.data.trim().length>0)n.textNodes.push(new mi(e,i,n.styles));else if(Hi(i))if(ro(i)&&i.assignedNodes)i.assignedNodes().forEach(function(t){return Di(e,t,n,r)});else{var s=Ni(e,i);s.styles.isVisible()&&(Ui(i,s,r)?s.flags|=4:ji(s.styles)&&(s.flags|=2),-1!==Mi.indexOf(i.tagName)&&(s.flags|=8),n.elements.push(s),i.shadowRoot?Di(e,i.shadowRoot,s,r):to(i)||Wi(i)||no(i)||Di(e,i,s,r))}},Ni=function(e,t){return Xi(t)?new _i(e,t):Yi(t)?new wi(e,t):Wi(t)?new Ci(e,t):Ki(t)?new Si(e,t):Gi(t)?new Ei(e,t):zi(t)?new Pi(e,t):no(t)?new Oi(e,t):to(t)?new Fi(e,t):Ji(t)?new Li(e,t):new Hr(e,t)},Ri=function(e,t){var n=Ni(e,t);return n.flags|=4,Di(e,t,n,n),n},Ui=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||$i(e)&&n.styles.isTransparent()},ji=function(e){return e.isPositioned()||e.isFloating()},Qi=function(e){return e.nodeType===Node.TEXT_NODE},Hi=function(e){return e.nodeType===Node.ELEMENT_NODE},Vi=function(e){return Hi(e)&&void 0!==e.style&&!qi(e)},qi=function(e){return"object"==typeof e.className},Ki=function(e){return"LI"===e.tagName},Gi=function(e){return"OL"===e.tagName},zi=function(e){return"INPUT"===e.tagName},Wi=function(e){return"svg"===e.tagName},$i=function(e){return"BODY"===e.tagName},Yi=function(e){return"CANVAS"===e.tagName},Xi=function(e){return"IMG"===e.tagName},Ji=function(e){return"IFRAME"===e.tagName},Zi=function(e){return"STYLE"===e.tagName},eo=function(e){return"SCRIPT"===e.tagName},to=function(e){return"TEXTAREA"===e.tagName},no=function(e){return"SELECT"===e.tagName},ro=function(e){return"SLOT"===e.tagName},io=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,i=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)});var o=[];return i&&r.forEach(function(e){var n=t.counters[e.counter];o.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),o},e}(),oo={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},so={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,9
10,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},ao={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},lo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},co=function(e,t,n,r,i,o){return e<t||e>n?yo(e,i,o.length>0):r.integers.reduce(function(t,n,i){for(;e>=n;)e-=n,t+=r.values[i];return t},"")+o},uo=function(e,t,n,r){var i="";do{n||e--,i=r(e)+i,e/=t}while(e*t>=t);return i},ho=function(e,t,n,r,i){var o=n-t+1;return(e<0?"-":"")+(uo(Math.abs(e),o,r,function(e){return c(Math.floor(e%o)+t)})+i)},Ao=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return uo(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},po=function(e,t,n,r,i,o){if(e<-9999||e>9999)return yo(e,Dn.CJK_DECIMAL,i.length>0);var s=Math.abs(e),a=i;if(0===s)return t[0]+a;for(var l=0;s>0&&l<=4;l++){var c=s%10;0===c&&Ir(o,1)&&""!==a?a=t[c]+a:c>1||1===c&&0===l||1===c&&1===l&&Ir(o,2)||1===c&&1===l&&Ir(o,4)&&e>100||1===c&&l>1&&Ir(o,8)?a=t[c]+(l>0?n[l-1]:"")+a:1===c&&l>0&&(a=n[l-1]+a),s=Math.floor(s/10)}return(e<0?r:"")+a},fo="\u5341\u767e\u5343\u842c",go="\u62fe\u4f70\u4edf\u842c",mo="\u30de\u30a4\u30ca\u30b9",vo="\ub9c8\uc774\ub108\uc2a4",yo=function(e,t,n){var r=n?". ":"",i=n?"\u3001":"",o=n?", ":"",s=n?" ":"";switch(t){case Dn.DISC:return"\u2022"+s;case Dn.CIRCLE:return"\u25e6"+s;case Dn.SQUARE:return"\u25fe"+s;case Dn.DECIMAL_LEADING_ZERO:var a=ho(e,48,57,!0,r);return a.length<4?"0"+a:a;case Dn.CJK_DECIMAL:return Ao(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",i);case Dn.LOWER_ROMAN:return co(e,1,3999,oo,Dn.DECIMAL,r).toLowerCase();case Dn.UPPER_ROMAN:return co(e,1,3999,oo,Dn.DECIMAL,r);case Dn.LOWER_GREEK:return ho(e,945,969,!1,r);case Dn.LOWER_ALPHA:return ho(e,97,122,!1,r);case Dn.UPPER_ALPHA:return ho(e,65,90,!1,r);case Dn.ARABIC_INDIC:return ho(e,1632,1641,!0,r);case Dn.ARMENIAN:case Dn.UPPER_ARMENIAN:return co(e,1,9999,so,Dn.DECIMAL,r);case Dn.LOWER_ARMENIAN:return co(e,1,9999,so,Dn.DECIMAL,r).toLowerCase();case Dn.BENGALI:return ho(e,2534,2543,!0,r);case Dn.CAMBODIAN:case Dn.KHMER:return ho(e,6112,6121,!0,r);case Dn.CJK_EARTHLY_BRANCH:return Ao(e,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",i);case Dn.CJK_HEAVENLY_STEM:return Ao(e,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",i);case Dn.CJK_IDEOGRAPHIC:case Dn.TRAD_CHINESE_INFORMAL:return po(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",fo,"\u8ca0",i,14);case Dn.TRAD_CHINESE_FORMAL:return po(e,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396",go,"\u8ca0",i,15);case Dn.SIMP_CHINESE_INFORMAL:return po(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",fo,"\u8d1f",i,14);case Dn.SIMP_CHINESE_FORMAL:return po(e,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396",go,"\u8d1f",i,15);case Dn.JAPANESE_INFORMAL:return po(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07",mo,i,0);case Dn.JAPANESE_FORMAL:return po(e,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07",mo,i,7);case Dn.KOREAN_HANGUL_FORMAL:return po(e,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc",vo,o,7);case Dn.KOREAN_HANJA_INFORMAL:return po(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c",vo,o,0);case Dn.KOREAN_HANJA_FORMAL:return po(e,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343",vo,o,7);case Dn.DEVANAGARI:return ho(e,2406,2415,!0,r);case Dn.GEORGIAN:return co(e,1,19999,lo,Dn.DECIMAL,r);case Dn.GUJARATI:return ho(e,2790,2799,!0,r);case Dn.GURMUKHI:return ho(e,2662,2671,!0,r);case Dn.HEBREW:return co(e,1,10999,ao,Dn.DECIMAL,r);case Dn.HIRAGANA:return Ao(e,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case Dn.HIRAGANA_IROHA:return Ao(e,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case Dn.KANNADA:return ho(e,3302,3311,!0,r);case Dn.KATAKANA:return Ao(e,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",i);case Dn.KATAKANA_IROHA:return Ao(e,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",i);case Dn.LAO:return ho(e,3792,3801,!0,r);case Dn.MONGOLIAN:return ho(e,6160,6169,!0,r);case Dn.MYANMAR:return ho(e,4160,4169,!0,r);case Dn.ORIYA:return ho(e,2918,2927,!0,r);case Dn.PERSIAN:return ho(e,1776,1785,!0,r);case Dn.TAMIL:return ho(e,3046,3055,!0,r);case Dn.TELUGU:return ho(e,3174,3183,!0,r);case Dn.THAI:return ho(e,3664,3673,!0,r);case Dn.TIBETAN:return ho(e,3872,3881,!0,r);case Dn.DECIMAL:default:return ho(e,48,57,!0,r)}},bo="data-html2canvas-ignore",_o=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new io,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement)}return e.prototype.toIFrame=function(e,t){var n=this,o=Co(e,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var s=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,l=o.contentWindow,c=l.document,u=Io(o).then(function(){return r(n,void 0,void 0,function(){var e,n;return i(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEac
vendor: 1,608 bytes, line 1
1h(Po),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Eo(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(c,n)}).then(function(){return o})]:[2,o]}})})});return c.open(),c.write(Bo(document.doctype)+"<html></html>"),ko(this.referenceElement.ownerDocument,s,a),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},e.prototype.createElementClone=function(e){if(Qr(e,2),Yi(e))return this.createCanvasClone(e);if(Zi(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Xi(t)&&(Xi(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),"SecurityError"!==i.name)throw i}return e.cloneNode(!1)}
vendor: 4,112 bytes, line 1
1,e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(l){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var i=e.getContext("2d"),o=r.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var s=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(s){var a=s.getContextAttributes();!1===(null==a?void 0:a.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return r}catch(l){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.cloneNode=function(e){if(Qi(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&Hi(e)&&(Vi(e)||qi(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var r=t.getComputedStyle(e),i=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&Vi(n)&&(this.clonedReferenceElement=n),$i(n)&&Mo(n);for(var s=this.counters.parse(new Ur(this.context,r)),a=this.resolvePseudoContent(e,n,i,Xr.BEFORE),l=e.firstChild;l;l=l.nextSibling)Hi(l)&&(eo(l)||l.hasAttribute(bo)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(l))||this.options.copyStyles&&Hi(l)&&Zi(l)||n.appendChild(this.cloneNode(l));a&&n.insertBefore(a,n.firstChild);var c=this.resolvePseudoContent(e,n,o,Xr.AFTER);return c&&n.appendChild(c),this.counters.pop(s),r&&(this.options.copyStyles||qi(e))&&!Ji(e)&&To(r,n),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(to(e)||no(e))&&(to(n)||no(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var i=this;if(n){var o=n.content,s=t.ownerDocument;if(s&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new Ur(this.context,n));var a=new Rr(this.context,n),l=s.createElement("html2canvaspseudoelement");To(n,l),a.content.forEach(function(t){if(0===t.type)l.appendChild(s.createTextNode(t.value));else if(22===t.type){var n=s.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Ge);r.length&&l.appendChild(s.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(Ye),c=o[1];if((d=o[0])&&Ge(d)){var u=i.counters.getCounterValue(d.value),h=c&&Ge(c)?Un.parse(i.context,c.value):Dn.DECIMAL;l.appendChild(s.createTextNode(yo(u,h,!1)))}}else if("counters"===t.name){var d,A=t.values.filter(Ye),p=A[1];if(c=A[2],(d=A[0])&&Ge(d)){var f=i.counters.getCounterValues(d.value),g=c&&Ge(c)?Un.parse(i.context,c.value):Dn.DECIMAL,m=p&&0===p.type?p.value:"",v=f.map(function(e){return yo(e,g,!1)}).join(m);l.appendChild(s.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":l.appendChild(s.createTextNode(Or(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode(Or(a.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(t.value))}}),l.className=Oo+" "+Fo;var c=r===Xr.BEFORE?" "+Oo:" "+Fo;return qi(t)?t.className.baseValue+=c:t.className+=c,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Xr||(Xr={}));var wo,Co=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(bo,"true"),e.body.appendChild(n),n},So=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},Eo=function(e){return Promise.all([].slice.call(e.images,0).map(So)
vendor: 11,543 bytes, line 1
1)},Io=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),t(e))},50)}})},xo=["all","d","content"],To=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===xo.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},Bo=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},ko=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},Po=function(e){var t=e[0],n=e[2];t.scrollLeft=e[1],t.scrollTop=n},Oo="___html2canvas___pseudoelement_before",Fo="___html2canvas___pseudoelement_after",Lo='{\n    content: "" !important;\n    display: none !important;\n}',Mo=function(e){Do(e,"."+Oo+":before"+Lo+"\n         ."+Fo+":after"+Lo)},Do=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},No=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),Ro=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Ko(e)||Ho(e)?((this._cache[e]=this.loadImage(e)).catch(function(){}),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s=this;return i(this,function(i){switch(i.label){case 0:return t=No.isSameOrigin(e),n=!Vo(e)&&!0===this._options.useCORS&&di.SUPPORT_CORS_IMAGES&&!t,r=!Vo(e)&&!t&&!Ko(e)&&"string"==typeof this._options.proxy&&di.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Vo(e)||Ko(e)||r||n?(o=e,r?[4,this.proxy(o)]:[3,2]):[2];case 1:o=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(qo(o)||n)&&(r.crossOrigin="anonymous"),r.src=o,!0===r.complete&&setTimeout(function(){return e(r)},500),s._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,o){var s=di.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===s)i(a.response);else{var e=new FileReader;e.addEventListener("load",function(){return i(e.result)},!1),e.addEventListener("error",function(e){return o(e)},!1),e.readAsDataURL(a.response)}else o("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=o;var l=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+s),"text"!==s&&a instanceof XMLHttpRequest&&(a.responseType=s),t._options.imageTimeout){var c=t._options.imageTimeout;a.timeout=c,a.ontimeout=function(){return o("Timed out ("+c+"ms) proxying "+r)}}a.send()})},e}(),Uo=/^data:image\/svg\+xml/i,jo=/^data:image\/.*;base64,/i,Qo=/^data:image\/.*/i,Ho=function(e){return di.SUPPORT_SVG_DRAWING||!Go(e)},Vo=function(e){return Qo.test(e)},qo=function(e){return jo.test(e)},Ko=function(e){return"blob"===e.substr(0,4)},Go=function(e){return"svg"===e.substr(-3).toLowerCase()||Uo.test(e)};!function(e){e[e.VECTOR=0]="VECTOR",e[e.BEZIER_CURVE=1]="BEZIER_CURVE"}(wo||(wo={}));var zo,Wo=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},$o=function(){function e(e,t){this.type=wo.VECTOR,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Yo=function(e,t,n){return new $o(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Xo=function(){function e(e,t,n,r){this.type=wo.BEZIER_CURVE,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=Yo(this.start,this.startControl,t),i=Yo(this.startControl,this.endControl,t),o=Yo(this.endControl,this.end,t),s=Yo(r,i,t),a=Yo(i,o,t),l=Yo(s,a,t);return n?new e(this.start,r,s,l):new e(l,a,o,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Jo=function(e){return e.type===wo.BEZIER_CURVE},Zo=function(e){var t=e.styles,n=e.bounds,r=ot(t.borderTopLeftRadius,n.width,n.height),i=r[0],o=r[1],s=ot(t.borderTopRightRadius,n.width,n.height),a=s[0],l=s[1],c=ot(t.borderBottomRightRadius,n.width,n.height),u=c[0],h=c[1],d=ot(t.borderBottomLeftRadius,n.width,n.height),A=d[0],p=d[1],f=[];f.push((i+a)/n.width),f.push((A+u)/n.width),f.push((o+p)/n.height),f.push((l+h)/n.height);var g=Math.max.apply(Math,f);g>1&&(i/=g,o/=g,a/=g,l/=g,u/=g,h/=g,A/=g,p/=g);var m=n.width-a,v=n.height-h,y=n.width-u,b=n.height-p,_=t.borderTopWidth,w=t.borderRightWidth,C=t.borderBottomWidth,S=t.borderLeftWidth,E=st(t.paddingTop,e.bounds.width),I=st(t.paddingRight,e.bounds.width),x=st(t.paddingBottom,e.bounds.width),T=st(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?es(n.left+S/3,n.top+_/3,i-S/3,o-_/3,zo.TOP_LEFT):new $o(n.left+S/3,n.top+_/3),this.topRightBorderDoubleOuterBox=i>0||o>0?es(n.left+m,n.top+_/3,a-w/3,l-_/3,zo.TOP_RIGHT):new $o(n.left+n.width-w/3,n.top+_/3),this.bottomRightBorderDoubleOuterBox=u>0||h>0?es(n.left+y,n.top+v,u-w/3,h-C/3,zo.BOTTOM_RIGHT):new $o(n.left+n.width-w/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=A>0||p>0?es(n.left+S/3,n.top+b,A-S/3,p-C/3,zo.BOTTOM_LEFT):new $o(n.left+S/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?es(n.left+2*S/3,n.top+2*_/3,i-2*S/3,o-2*_/3,zo.TOP_LEFT):new $o(n.left+2*S/3,n.top+2*_/3),this.topRightBorderDoubleInnerBox=i>0||o>0?es(n.left+m,n.top+2*_/3,a-2*w/3,l-2*_/3,zo.TOP_RIGHT):new $o(n.left+n.width-2*w/3,n.top+2*_/3),this.bottomRightBorderDoubleInnerBox=u>0||h>0?es(n.left+y,n.top+v,u-2*w/3,h-2*C/3,zo.BOTTOM_RIGHT):new $o(n.left+n.width-2*w/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=A>0||p>0?es(n.left+2*S/3,n.top+b,A-2*S/3,p-2*C/3,zo.BOTTOM_LEFT):new $o(n.left+2*S/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=i>0||o>0?es(n.left+S/2,n.top+_/2,i-S/2,o-_/2,zo.TOP_LEFT):new $o(n.left+S/2,n.top+_/2),this.topRightBorderStroke=i>0||o>0?es(n.left+m,n.top+_/2,a-w/2,l-_/2,zo.TOP_RIGHT):new $o(n.left+n.width-w/2,n.top+_/2),this.bottomRightBorderStroke=u>0||h>0?es(n.left+y,n.top+v,u-w/2,h-C/2,zo.BOTTOM_RIGHT):new $o(n.left+n.width-w/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=A>0||p>0?es(n.left+S/2,n.top+b,A-S/2,p-C/2,zo.BOTTOM_LEFT):new $o(n.left+S/2,n.top+n.height-C/2),this.topLeftBorderBox=i>0||o>0?es(n.left,n.top,i,o,zo.TOP_LEFT):new $o(n.left,n.top),this.topRightBorderBox=a>0||l>0?es(n.left+m,n.top,a,l,zo.TOP_RIGHT):new $o(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||h>0?es(n.left+y,n.top+v,u,h,zo.BOTTOM_RIGHT):new $o(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=A>0||p>0?es(n.left,n.top+b,A,p,zo.BOTTOM_LEFT):new $o(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?es(n.left+S,n.top+_,Math.max(0,i-S),Math.max(0,o-_),zo.TOP_LEFT):new $o(n.left+S,n.top+_),this.topRightPaddingBox=a>0||l>0?es(n.left+Math.min(m,n.width-w),n.top+_,m>n.width+w?0:Math.max(0,a-w),Math.max(0,l-_),zo.TOP_RIGHT):new $o(n.left+n.width-w,n.top+_),this.bottomRightPaddingBox=u>0||h>0?es(n.left+Math.min(y,n.width-S),n.top+Math.min(v,n.height-C),Math.max(0,u-w),Math.max(0,h-C),zo.BOTTOM_RIGHT):new $o(n.left+n.width-w,n.top+n.height-C),this.bottomLeftPaddingBox=A>0||p>0?es(n.left+S,n.top+Math.min(b,n.height-C),Math.max(0,A-S),Math.max(0,p-C),zo.BOTTOM_LEFT):new $o(n.left+S,n.top+n.height-C),this.topLeftContentBox=i>0||o>0?es(n.left+S+T,n.top+_+E,Math.max(0,i-(S+T)),Math.max(0,o-(_+E)),zo.TOP_LEFT):new $o(n.left+S+T,n.top+_+E),this.topRightContentBox=a>0||l>0?es(n.left+Math.min(m,n.width+S+T),n.top+_+E,m>n.width+S+T?0:a-S+T,l-(_+E),zo.TOP_RIGHT):new $o(n.left+n.width-(w+I),n.top+_+E),this.bottomRightContentBox=u>0||h>0?es(n.left+Math.min(y,n.width-(S+T)),n.top+Math.min(v,n.height+_+E),Math.max(0,u-(w+I)),h-(C+x),zo.BOTTOM_RIGHT):new $o(n.left+n.width-(w+I),n.top+n.height-(C+x)),this.bottomLeftContentBox=A>0||p>0?es(n.left+S+T,n.top+b,Math.max(0,A-(S+T)),p-(C+x),zo.BOTTOM_LEFT):new $o(n.left+S+T,n.top+n.height-(C+x))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(zo||(zo={}));var es=function(e,t,n,r,i){var o=(Math.sqrt(2)-1)/3*4,s=n*o,a=r*o,l=e+n,c=t+r;switch(i){case zo.TOP_LEFT:return new Xo(new $o(e,c),new $o(e,c-a),new $o(l-s,t),new $o(l,t));case zo.TOP_RIGHT:return new Xo(new $o(e,t),new $o(e+s,t),new $o(l,c-a),new $o(l,c));case zo.BOTTOM_RIGHT:return new Xo(new $o(l,t),new $o(l,t+a),new $o(e+s,c),new $o(e,c));case zo.BOTTOM_LEFT:default:return new Xo(new $o(l,c),new $o(l-s,c),new $o(e,t+a),new $o(e,t))}},ts=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},ns=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},rs=function(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6},is=function(e,t){this.path=e,this.target=t,this.type=1},os=function(e){this.opacity=e,this.type=2,this.target=6},ss=function(e){return 1===e.type},as=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},ls=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Zo(this.container),this.container.styles.opacity<1&&this.effects.push(new os(this.container.styles.opacity)),null!==this.container.styles.transform&&this.effects.push(new rs(this.container.bounds.left+this.container.styles.transformOrigin[0].number,this.container.bounds.top+this.container.styles.transformOrigin[1].number,this.container.styles.transform)),this.container.styles.overflowX!==Rn.VISIBLE){var n=ts(this.curves),r=ns(this.curves);Wo(n,r)?this.effects.push(new is(n,6)):(this.effects.push(new is(n,2)),this.effects.push(new is(r,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[Zn.ABSOLUTE,Zn.FIXED].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(e){return!ss(e)});if(t||n.container.styles.position!==Zn.STATIC||!n.parent){if(r.unshift.apply(r,i),t=-1===[Zn.ABSOLUTE,Zn.FIXED].indexOf(n.container.styles.position),n.container.styles.overflowX!==Rn.VISIBLE){var o=ts(n.curves),s=ns(n.curves);Wo(o,s)||r.unshift(new is(s,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(t){return Ir(t.target,e)})},e}
vendor: 8,826 bytes, line 1
1(),cs=function(e,t,n,r){e.container.elements.forEach(function(i){var o=Ir(i.flags,4),s=Ir(i.flags,2),a=new ls(i,e);Ir(i.styles.display,2048)&&r.push(a);var l=Ir(i.flags,8)?[]:r;if(o||s){var c=o||i.styles.isPositioned()?n:t,u=new as(a);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var h=i.styles.zIndex.order;if(h<0){var d=0;c.negativeZIndex.some(function(e,t){return h>e.element.container.styles.zIndex.order?(d=t,!1):d>0}),c.negativeZIndex.splice(d,0,u)}else if(h>0){var A=0;c.positiveZIndex.some(function(e,t){return h>=e.element.container.styles.zIndex.order?(A=t+1,!1):A>0}),c.positiveZIndex.splice(A,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);cs(a,u,o?u:n,l)}else i.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),cs(a,t,n,l);Ir(i.flags,8)&&us(i,l)})},us=function(e,t){for(var n=e instanceof Ei?e.start:1,r=e instanceof Ei&&e.reversed,i=0;i<t.length;i++){var o=t[i];o.container instanceof Si&&"number"==typeof o.container.value&&0!==o.container.value&&(n=o.container.value),o.listValue=yo(n,o.container.styles.listStyleType,!0),n+=r?-1:1}},hs=function(e,t){switch(t){case 0:return As(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return As(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return As(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return As(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},ds=function(e,t){var n=[];return Jo(e)?n.push(e.subdivide(.5,!1)):n.push(e),Jo(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},As=function(e,t,n,r){var i=[];return Jo(e)?i.push(e.subdivide(.5,!1)):i.push(e),Jo(n)?i.push(n.subdivide(.5,!0)):i.push(n),Jo(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),Jo(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},ps=function(e){var t=e.styles;return e.bounds.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},fs=function(e){var t=e.styles,n=e.bounds,r=st(t.paddingLeft,n.width),i=st(t.paddingRight,n.width),o=st(t.paddingTop,n.width),s=st(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+i),-(t.borderTopWidth+t.borderBottomWidth+o+s))},gs=function(e,t,n){var r=function(e,t){return 0===e?t.bounds:2===e?fs(t):ps(t)}(bs(e.styles.backgroundOrigin,t),e),i=function(e,t){return e===bt.BORDER_BOX?t.bounds:e===bt.CONTENT_BOX?fs(t):ps(t)}(bs(e.styles.backgroundClip,t),e),o=ys(bs(e.styles.backgroundSize,t),n,r),s=o[0],a=o[1],l=ot(bs(e.styles.backgroundPosition,t),r.width-s,r.height-a);return[_s(bs(e.styles.backgroundRepeat,t),l,o,r,i),Math.round(r.left+l[0]),Math.round(r.top+l[1]),s,a]},ms=function(e){return Ge(e)&&e.value===Yt.AUTO},vs=function(e){return"number"==typeof e},ys=function(e,t,n){var r=t[0],i=t[1],o=t[2],s=e[0],a=e[1];if(!s)return[0,0];if(et(s)&&a&&et(a))return[st(s,n.width),st(a,n.height)];var l=vs(o);if(Ge(s)&&(s.value===Yt.CONTAIN||s.value===Yt.COVER))return vs(o)?n.width/n.height<o!=(s.value===Yt.COVER)?[n.width,n.width/o]:[n.height*o,n.height]:[n.width,n.height];var c=vs(r),u=vs(i),h=c||u;if(ms(s)&&(!a||ms(a)))return c&&u?[r,i]:l||h?h&&l?[c?r:i*o,u?i:r/o]:[c?r:n.width,u?i:n.height]:[n.width,n.height];if(l){var d=0,A=0;return et(s)?d=st(s,n.width):et(a)&&(A=st(a,n.height)),ms(s)?d=A*o:a&&!ms(a)||(A=d/o),[d,A]}var p=null,f=null;if(et(s)?p=st(s,n.width):a&&et(a)&&(f=st(a,n.height)),null===p||a&&!ms(a)||(f=c&&u?p/r*i:n.height),null!==f&&ms(s)&&(p=c&&u?f/i*r:n.width),null!==p&&null!==f)return[p,f];throw new Error("Unable to calculate background-size for element")},bs=function(e,t){var n=e[t];return void 0===n?e[0]:n},_s=function(e,t,n,r,i){var o=t[0],s=t[1],a=n[0],l=n[1];switch(e){case qt.REPEAT_X:return[new $o(Math.round(r.left),Math.round(r.top+s)),new $o(Math.round(r.left+r.width),Math.round(r.top+s)),new $o(Math.round(r.left+r.width),Math.round(l+r.top+s)),new $o(Math.round(r.left),Math.round(l+r.top+s))];case qt.REPEAT_Y:return[new $o(Math.round(r.left+o),Math.round(r.top)),new $o(Math.round(r.left+o+a),Math.round(r.top)),new $o(Math.round(r.left+o+a),Math.round(r.height+r.top)),new $o(Math.round(r.left+o),Math.round(r.height+r.top))];case qt.NO_REPEAT:return[new $o(Math.round(r.left+o),Math.round(r.top+s)),new $o(Math.round(r.left+o+a),Math.round(r.top+s)),new $o(Math.round(r.left+o+a),Math.round(r.top+s+l)),new $o(Math.round(r.left+o),Math.round(r.top+s+l))];default:return[new $o(Math.round(i.left),Math.round(i.top)),new $o(Math.round(i.left+i.width),Math.round(i.top)),new $o(Math.round(i.left+i.width),Math.round(i.height+i.top)),new $o(Math.round(i.left),Math.round(i.height+i.top))]}},ws="Hidden Text",Cs=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",o.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(ws)),n.appendChild(i),n.appendChild(r);var s=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(ws)),n.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:s,middle:a}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),Ss=function(e,t){this.context=e,this.options=t},Es=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new Cs(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return t(n,e),n.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return t.applyEffect(e)})},n.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 2===e.type}(e)&&(this.ctx.globalAlpha=e.opacity),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),ss(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return Ir(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):li(e.text).reduce(function(t,i){return r.ctx.fillText(i,t,e.bounds.top+n),t+r.ctx.measureText(i).width},e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=e.fontFamily.join(", "),r=qe(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,function(){var n,r,o,s,a,l,c,u=this;return i(this,function(i){return n=this.createFontStyle(t),r=n[1],o=n[2],this.ctx.font=n[0],this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(r,o),a=s.baseline,l=s.middle,c=t.paintOrder,e.textBounds.forEach(function(e){c.forEac
vendor: 8,479 bytes, line 1
1h(function(n){switch(n){case Sr.FILL:u.ctx.fillStyle=ft(t.color),u.renderTextWithLetterSpacing(e,t.letterSpacing,a);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach(function(n){u.ctx.shadowColor=ft(n.color),u.ctx.shadowOffsetX=n.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=n.offsetY.number*u.options.scale,u.ctx.shadowBlur=n.blur.number,u.renderTextWithLetterSpacing(e,t.letterSpacing,a)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=ft(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+a),e.bounds.width,1);break;case 2:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:u.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+l),e.bounds.width,1)}}));break;case Sr.STROKE:t.webkitTextStrokeWidth&&e.text.trim().length&&(u.ctx.strokeStyle=ft(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+a)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter"}})}),[2]})})},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=fs(e),i=ns(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,o,a,l,c,u,h,d,A,p,f,g,m,v,y;return i(this,function(i){switch(i.label){case 0:this.applyEffects(e.getEffects(4)),r=e.curves,o=(t=e.container).styles,a=0,l=t.textNodes,i.label=1;case 1:return a<l.length?[4,this.renderTextNode(l[a],o)]:[3,4];case 2:i.sent(),i.label=3;case 3:return a++,[3,1];case 4:if(!(t instanceof _i))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return g=i.sent(),this.renderReplacedElement(t,r,g),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof wi&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof Ci))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return g=i.sent(),this.renderReplacedElement(t,r,g),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Li&&t.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:c=i.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),i.label=14;case 14:if(t instanceof Pi&&(u=Math.min(t.bounds.width,t.bounds.height),t.type===Ti?t.checked&&(this.ctx.save(),this.path([new $o(t.bounds.left+.39363*u,t.bounds.top+.79*u),new $o(t.bounds.left+.16*u,t.bounds.top+.5549*u),new $o(t.bounds.left+.27347*u,t.bounds.top+.44071*u),new $o(t.bounds.left+.39694*u,t.bounds.top+.5649*u),new $o(t.bounds.left+.72983*u,t.bounds.top+.23*u),new $o(t.bounds.left+.84*u,t.bounds.top+.34085*u),new $o(t.bounds.left+.39363*u,t.bounds.top+.79*u)]),this.ctx.fillStyle=ft(ki),this.ctx.fill(),this.ctx.restore()):t.type===Bi&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+u/2,t.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=ft(ki),this.ctx.fill(),this.ctx.restore())),Is(t)&&t.value.length){switch(h=this.createFontStyle(o),d=this.fontMetrics.getMetrics(v=h[0],h[1]).baseline,this.ctx.font=v,this.ctx.fillStyle=ft(o.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ts(t.styles.textAlign),y=fs(t),A=0,t.styles.textAlign){case Kn.CENTER:A+=y.width/2;break;case Kn.RIGHT:A+=y.width}p=y.add(A,0,0,-y.height/2+1),this.ctx.save(),this.path([new $o(y.left,y.top),new $o(y.left+y.width,y.top),new $o(y.left+y.width,y.top+y.height),new $o(y.left,y.top+y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ai(t.value,p),o.letterSpacing,d),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ir(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if((f=t.styles.listStyleImage).type!==Et.URL)return[3,18];g=void 0,m=f.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(m)];case 16:return g=i.sent(),this.ctx.drawImage(g,t.bounds.left-(g.width+10),t.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+m),[3,18];case 18:return[3,20];case 19:e.listValue&&t.styles.listStyleType!==Dn.NONE&&(v=this.createFontStyle(o)[0],this.ctx.font=v,this.ctx.fillStyle=ft(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",y=new s(t.bounds.left,t.bounds.top+st(t.styles.paddingTop,t.bounds.width),t.bounds.width,Ln(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ai(e.listValue,y),o.letterSpacing,Ln(o.lineHeight,o.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s,a,l,c,u,h,d,A,p,f;return i(this,function(i){switch(i.label){case 0:return Ir(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:i.sent(),t=0,n=e.negativeZIndex,i.label=2;case 2:return t<n.length?[4,this.renderStack(n[t])]:[3,5];case 3:i.sent(),i.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:i.sent(),r=0,o=e.nonInlineLevel,i.label=7;case 7:return r<o.length?[4,this.renderNode(o[r])]:[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:s=0,a=e.nonPositionedFloats,i.label=11;case 11:return s<a.length?[4,this.renderStack(a[s])]:[3,14];case 12:i.sent(),i.label=13;case 13:return s++,[3,11];case 14:l=0,c=e.nonPositionedInlineLevel,i.label=15;case 15:return l<c.length?[4,this.renderStack(c[l])]:[3,18];case 16:i.sent(),i.label=17;case 17:return l++,[3,15];case 18:u=0,h=e.inlineLevel,i.label=19;case 19:return u<h.length?[4,this.renderNode(h[u])]:[3,22];case 20:i.sent(),i.label=21;case 21:return u++,[3,19];case 22:d=0,A=e.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return d<A.length?[4,this.renderStack(A[d])]:[3,26];case 24:i.sent(),i.label=25;case 25:return d++,[3,23];case 26:p=0,f=e.positiveZIndex,i.label=27;case 27:return p<f.length?[4,this.renderStack(f[p])]:[3,30];case 28:i.sent(),i.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=Jo(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),Jo(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},n.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(e,t,n){var r;if(e.width===t&&e.height===n)return e;var i=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return i.width=Math.max(1,t),i.height=Math.max(1,n),i.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),i},n.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s;return i(this,function(a){switch(a.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var o,s,a,l,c,u,h,d,A,p,f,g,m,v,y,b,_,w,C,S,E,I,x,T,B,k,P,O,F,L,M;return i(this,function(i){switch(i.label){case 0:if(n.type!==Et.URL)return[3,5];o=void 0,s=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(s)];case 2:return o=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error("Error loading background-image "+s),[3,4];case 4:return o&&(a=gs(e,t,[o.width,o.height,o.width/o.height]),b=a[0],I=a[1],x=a[2],v=r.ctx.createPattern(r.resizeImage(o,C=a[3],S=a[4]),"repeat"),r.renderRepeat(b,v,I,x)),[3,6];
1case 5:n.type===Et.LINEAR_GRADIENT?(l=gs(e,t,[null,null,null]),b=l[0],I=l[1],x=l[2],c=function(e,t,n){var r="number"==typeof e?e:function(e,t,n){var r=t/2,i=n/2,o=st(e[0],t)-r,s=i-st(e[1],n);return(Math.atan2(s,o)+2*Math.PI)%(2*Math.PI)}(e,t,n),i=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),o=t/2,s=n/2,a=i/2,l=Math.sin(r-Math.PI/2)*a,c=Math.cos(r-Math.PI/2)*a;return[i,o-c,o+c,s-l,s+l]}(n.angle,C=l[3],S=l[4]),u=c[0],h=c[1],d=c[2],A=c[3],p=c[4],(f=document.createElement("canvas")).width=C,f.height=S,g=f.getContext("2d"),m=g.createLinearGradient(h,A,d,p),Pt(n.stops,u).forEach(function(e){return m.addColorStop(e.stop,ft(e.color))}),g.fillStyle=m,g.fillRect(0,0,C,S),C>0&&S>0&&(v=r.ctx.createPattern(f,"repeat"),r.renderRepeat(b,v,I,x))):n.type===Et.RADIAL_GRADIENT&&(y=gs(e,t,[null,null,null]),b=y[0],_=y[1],w=y[2],S=y[4],I=st((E=0===n.position.length?[rt]:n.position)[0],C=y[3]),x=st(E[E.length-1],S),T=function(e,t,n,r,i){var o=0,s=0;switch(e.size){case xt.CLOSEST_SIDE:e.shape===It.CIRCLE?o=s=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===It.ELLIPSE&&(o=Math.min(Math.abs(t),Math.abs(t-r)),s=Math.min(Math.abs(n),Math.abs(n-i)));break;case xt.CLOSEST_CORNER:if(e.shape===It.CIRCLE)o=s=Math.min(Ot(t,n),Ot(t,n-i),Ot(t-r,n),Ot(t-r,n-i));else if(e.shape===It.ELLIPSE){var a=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),l=Ft(r,i,t,n,!0);s=a*(o=Ot(l[0]-t,(l[1]-n)/a))}break;case xt.FARTHEST_SIDE:e.shape===It.CIRCLE?o=s=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===It.ELLIPSE&&(o=Math.max(Math.abs(t),Math.abs(t-r)),s=Math.max(Math.abs(n),Math.abs(n-i)));break;case xt.FARTHEST_CORNER:if(e.shape===It.CIRCLE)o=s=Math.max(Ot(t,n),Ot(t,n-i),Ot(t-r,n),Ot(t-r,n-i));else if(e.shape===It.ELLIPSE){a=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r));var c=Ft(r,i,t,n,!1);s=a*(o=Ot(c[0]-t,(c[1]-n)/a))}}return Array.isArray(e.size)&&(o=st(e.size[0],r),s=2===e.size.length?st(e.size[1],i):o),[o,s]}(n,I,x,C,S),k=T[1],(B=T[0])>0&&k>0&&(P=r.ctx.createRadialGradient(_+I,w+x,0,_+I,w+x,B),Pt(n.stops,2*B).forEach(function(e){return P.addColorStop(e.stop,ft(e.color))}),r.path(b),r.ctx.fillStyle=P,B!==k?(O=e.bounds.left+.5*e.bounds.width,F=e.bounds.top+.5*e.bounds.height,M=1/(L=k/B),r.ctx.save(),r.ctx.translate(O,F),r.ctx.transform(1,0,0,L,0,0),r.ctx.translate(-O,-F),r.ctx.fillRect(_,M*(w-F)+F,C,S*M),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return t--,[2]}})},r=this,o=0,s=e.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return o<s.length?[5,n(s[o])]:[3,4];case 2:a.sent(),a.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(e,t,n){return r(this,void 0,void 0,function(){return i(this,function(r){return this.path(hs(n,t)),this.ctx.fillStyle=ft(e),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(e,t,n,o){return r(this,void 0,void 0,function(){var r,s;return i(this,function(i){switch(i.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,o)]:[3,2];case 1:return i.sent(),[2];case 2:return r=function(e,t){switch(t){case 0:return As(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return As(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return As(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return As(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}}(o,n),this.path(r),this.ctx.fillStyle=ft(e),this.ctx.fill(),s=function(e,t){switch(t){case 0:return As(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return As(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return As(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return As(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}}(o,n),this.path(s),this.ctx.fill(),[2]}})})}
1,n.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,s,a,l,c,u=this;return i(this,function(i){switch(i.label){case 0:return this.applyEffects(e.getEffects(2)),n=!pt((t=e.container.styles).backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],o=xs(bs(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),pt(t.backgroundColor)||(this.ctx.fillStyle=ft(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){u.ctx.save();var n,r,i,o,s=ts(e.curves),a=t.inset?0:1e4,l=(n=(t.inset?1:-1)*t.spread.number-a,r=(t.inset?1:-1)*t.spread.number,i=t.spread.number*(t.inset?-2:2),o=t.spread.number*(t.inset?-2:2),s.map(function(e,t){switch(t){case 0:return e.add(n,r);case 1:return e.add(n+i,r);case 2:return e.add(n+i,r+o);case 3:return e.add(n,r+o)}return e}));t.inset?(u.path(s),u.ctx.clip(),u.mask(l)):(u.mask(s),u.ctx.clip(),u.path(l)),u.ctx.shadowOffsetX=t.offsetX.number+a,u.ctx.shadowOffsetY=t.offsetY.number,u.ctx.shadowColor=ft(t.color),u.ctx.shadowBlur=t.blur.number,u.ctx.fillStyle=t.inset?ft(t.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()}),i.label=2;case 2:s=0,a=0,l=r,i.label=3;case 3:return a<l.length?(c=l[a]).style!==Zt.NONE&&!pt(c.color)&&c.width>0?c.style!==Zt.DASHED?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,s,e.curves,Zt.DASHED)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return c.style!==Zt.DOTTED?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,s,e.curves,Zt.DOTTED)];case 6:return i.sent(),[3,11];case 7:return c.style!==Zt.DOUBLE?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,s,e.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,s,e.curves)];case 10:i.sent(),i.label=11;case 11:s++,i.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,o,s){return r(this,void 0,void 0,function(){var r,a,l,c,u,h,d,A,p,f,g,m,v,y,b,_;return i(this,function(i){return this.ctx.save(),r=function(e,t){switch(t){case 0:return ds(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return ds(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return ds(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return ds(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(o,n),a=hs(o,n),s===Zt.DASHED&&(this.path(a),this.ctx.clip()),Jo(a[0])?(l=a[0].start.x,c=a[0].start.y):(l=a[0].x,c=a[0].y),Jo(a[1])?(u=a[1].end.x,h=a[1].end.y):(u=a[1].x,h=a[1].y),d=0===n||2===n?Math.abs(l-u):Math.abs(c-h),this.ctx.beginPath(),this.formatPath(s===Zt.DOTTED?r:a.slice(0,2)),A=t<3?3*t:2*t,p=t<3?2*t:t,s===Zt.DOTTED&&(A=t,p=t),f=!0,d<=2*A?f=!1:d<=2*A+p?(A*=g=d/(2*A+p),p*=g):(m=Math.floor((d+p)/(A+p)),v=(d-m*A)/(m-1),p=(y=(d-(m+1)*A)/m)<=0||Math.abs(p-v)<Math.abs(p-y)?v:y),f&&this.ctx.setLineDash(s===Zt.DOTTED?[0,A+p]:[A,p]),s===Zt.DOTTED?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=ft(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===Zt.DASHED&&(Jo(a[0])&&(b=a[3],_=a[0],this.ctx.beginPath(),this.formatPath([new $o(b.end.x,b.end.y),new $o(_.start.x,_.start.y)]),this.ctx.stroke()),Jo(a[1])&&(b=a[1],_=a[2],this.ctx.beginPath(),this.formatPath([new $o(b.end.x,b.end.y),new $o(_.start.x,_.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ft(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=new ls(e,null),r=new as(n),cs(n,r,r,i=[]),us(n.container,i),[4,this.renderStack(r)];case 1:return t.sent(),this.applyEffects([]),[2,this.canvas]}var n,r,i})})},n}(Ss),Is=function(e){return e instanceof Fi||e instanceof Oi||e instanceof Pi&&e.type!==Bi&&e.type!==Ti},xs=function(e,t){switch(e){case bt.BORDER_BOX:return ts(t);case bt.CONTENT_BOX:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);case bt.PADDING_BOX:default:return ns(t)}},Ts=function(e){switch(e){case Kn.CENTER:return"center";case Kn.RIGHT:return"right";case Kn.LEFT:default:return"left"}},Bs=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return t(n,e),n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return t=ui(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,ks(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ft(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(Ss),ks=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},Ps=function(){function e(e){var t=e.enabled;this.id=e.id,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,o([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),Os=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new Ps({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new Ro(this,t)}return e.instanceCount=1,e}();"undefined"!=typeof window&&No.setContext(window);var Fs=function(e,t,n){var r=t.ownerDocument,i=r.documentElement?Ct(e,getComputedStyle(r.documentElement).backgroundColor):St.TRANSPARENT,o=r.body?Ct(e,getComputedStyle(r.body).backgroundColor):St.TRANSPARENT,s="string"==typeof n?Ct(e,n):null===n?St.TRANSPARENT:4294967295;return t===r.documentElement?pt(i)?pt(o)?s:o:i:s};return function(e,t){return void 0===t&&(t={}),function(e,t){return r(void 0,void 0,void 0,function(){var r,o,l,c,u,h,d,A,p,f,g,m,v,y,b,_,w,C,S,E,I,x,T,B,k,P,O,F,L,M,D,N,R,U,j,Q,H,V;return i(this,function(i){switch(i.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=e.ownerDocument))throw new Error("Element is not attached to a Document");
1if(!(o=r.defaultView))throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(x=t.allowTaint)&&void 0!==x&&x,imageTimeout:null!==(T=t.imageTimeout)&&void 0!==T?T:15e3,proxy:t.proxy,useCORS:null!==(B=t.useCORS)&&void 0!==B&&B},c=n({logging:null===(k=t.logging)||void 0===k||k,cache:t.cache},l),u={windowWidth:null!==(P=t.windowWidth)&&void 0!==P?P:o.innerWidth,windowHeight:null!==(O=t.windowHeight)&&void 0!==O?O:o.innerHeight,scrollX:null!==(F=t.scrollX)&&void 0!==F?F:o.pageXOffset,scrollY:null!==(L=t.scrollY)&&void 0!==L?L:o.pageYOffset},h=new s(u.scrollX,u.scrollY,u.windowWidth,u.windowHeight),d=new Os(c,h),A=null!==(M=t.foreignObjectRendering)&&void 0!==M&&M,p={allowTaint:null!==(D=t.allowTaint)&&void 0!==D&&D,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:A,copyStyles:A},d.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),f=new _o(d,e,p),(g=f.clonedReferenceElement)?[4,f.toIFrame(r,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=i.sent(),v=$i(g)||"HTML"===g.tagName?function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),i=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new s(0,0,r,i)}(g.ownerDocument):a(d,g),y=v.width,b=v.height,_=v.left,w=v.top,C=Fs(d,g,t.backgroundColor),S={canvas:t.canvas,backgroundColor:C,scale:null!==(R=null!==(N=t.scale)&&void 0!==N?N:o.devicePixelRatio)&&void 0!==R?R:1,x:(null!==(U=t.x)&&void 0!==U?U:0)+_,y:(null!==(j=t.y)&&void 0!==j?j:0)+w,width:null!==(Q=t.width)&&void 0!==Q?Q:Math.ceil(y),height:null!==(H=t.height)&&void 0!==H?H:Math.ceil(b)},A?(d.logger.debug("Document cloned, using foreign object rendering"),[4,new Bs(d,S).render(g)]):[3,3];case 2:return E=i.sent(),[3,5];case 3:return d.logger.debug("Document cloned, element located at "+_+","+w+" with size "+y+"x"+b+" using computed rendering"),d.logger.debug("Starting DOM parsing"),I=Ri(d,g),C===I.styles.backgroundColor&&(I.styles.backgroundColor=St.TRANSPARENT),d.logger.debug("Starting renderer for element at "+S.x+","+S.y+" with size "+S.width+"x"+S.height),[4,new Es(d,S).render(I)];case 4:E=i.sent(),i.label=5;case 5:return(null===(V=t.removeContainer)||void 0===V||V)&&(_o.destroy(m)||d.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),d.logger.debug("Finished rendering"),[2,E]}})})}(e,t)}}()},5390:e=>{e.exports=function(e){if(!e)return!1;var n=t.call(e);return"[object Function]"===n||"function"==typeof e&&"[object RegExp]"!==n||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var t=Object.prototype.toString},958:(e,t)=>{function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return s[e];var n,o=String(e);return(n=r[o.toLowerCase()])?n:(n=i[o.toLowerCase()])||(1===o.length?o.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var o;if(o=r[t.toLowerCase()])return o===n;if(o=i[t.toLowerCase()])return o===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(o=97;o<123;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)r[o-48]=o;for(o=1;o<13;o++)r["f"+o]=o+111;for(o=0;o<10;o++)r["numpad "+o]=o+96;var s=t.names=t.title={};for(o in r)s[r[o]]=o;for(var a in i)r[a]=i[a]},845:e=>{var t=Math.pow(2,32);e.exports=function(e){var n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:n.getUint32(4),timescale:n.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=n.getUint32(i),r.firstOffset=n.getUint32(i+4),i+=8):(r.earliestPresentationTime=n.getUint32(i)*t+n.getUint32(i+4),r.firstOffset=n.getUint32(i+8)*t+n.getUint32(i+12),i+=16);var o=n.getUint16(i+=2);for(i+=2;o>0;i+=12,o--)r.references.push({referenceType:(128&e[i])>>>7,referencedSize:2147483647&n.getUint32(i),subsegmentDuration:n.getUint32(i+4),startsWithSap:!!(128&e[i+8]),sapType:(112&e[i+8])>>>4,sapDeltaTime:268435455&n.getUint32(i+8)});return r}},3402:e=>{var t,n,r,i,o,s,a,l=9e4;o=function(e,n){return t(i(e,n))},s=function(e,t){return n(r(e),t)},a=function(e,t,n){return r(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:l,secondsToVideoTs:t=function(e){return e*l},secondsToAudioTs:n=function(e,t){return e*t},videoTsToSeconds:r=function(e){return e/l},audioTsToSeconds:i=function(e,t){return e/t},audioTsToVideoTs:o,videoTsToAudioTs:s,metadataTsToSeconds:a}},5230:e=>{var t=function(e){return e.replace(/^\s+|\s+$/g,"")};e.exports=function(e){if(!e)return{};for(var n={},r=t(e).split("\n"),i=0;i<r.length;i++){var o=r[i],s=o.indexOf(":"),a=t(o.slice(0,s)).toLowerCase(),l=t(o.slice(s+1));void 0===n[a]?n[a]=l:"[object Array]"===Object.prototype.toString.call(n[a]
1)?n[a].push(l):n[a]=[n[a],l]}return n}},3103:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(653),i=n(878),o=n(1225);let s=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return(0,i.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,r.c)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})()},1784:(e,t,n)=>{"use strict";n.d(t,{y:()=>c});var r=n(6673),i=n(5331),o=n(7498),s=n(6197),a=n(6541),l=n(1484);let c=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:s}=this,a=function(e,t,n){if(e){if(e instanceof r.L)return e;if(e[i.b])return e[i.b]()}return e||t||n?new r.L(e,t,n):new r.L(o.c)}(e,t,n);if(a.add(s?s.call(a,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(e){try{return this._subscribe(e)}catch(t){l.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof r.L?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=u(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(i){n(i),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[s.L](){return this}pipe(...e){return 0===e.length?this:(0,a.U)(e)(this)}toPromise(e){return new(e=u(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function u(e){if(e||(e=l.v.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},7498:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(1484),i=n(4294);const o={closed:!0,next(e){},error(e){if(r.v.useDeprecatedSynchronousErrorHandling)throw e;(0,i.z)(e)},complete(){}}},5959:(e,t,n)=>{"use strict";n.d(t,{Yc:()=>c,xQ:()=>u});var r=n(1784),i=n(6673),o=n(7570),s=n(3895),a=n(9291),l=n(5331);class c extends i.L{constructor(e){super(e),this.destination=e}}let u=(()=>{class e extends r.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new c(this)}lift(e){const t=new h(this,this);return t.operator=e,t}next(e){if(this.closed)throw new s.N;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].next(e)}}error(e){if(this.closed)throw new s.N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].error(e);this.observers.length=0}complete(){if(this.closed)throw new s.N;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new s.N;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new s.N;return this.hasError?(e.error(this.thrownError),o.w.EMPTY):this.isStopped?(e.complete(),o.w.EMPTY):(this.observers.push(e),new a.W(this,e))}asObservable(){const e=new r.y;return e.source=this,e}}return e.create=(e,t)=>new h(e,t),e})();class h extends u{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):o.w.EMPTY}}},9291:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(7570);class i extends r.w{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}
1unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},6673:(e,t,n)=>{"use strict";n.d(t,{L:()=>c});var r=n(5024),i=n(7498),o=n(7570),s=n(5331),a=n(1484),l=n(4294);class c extends o.w{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!e){this.destination=i.c;break}if("object"==typeof e){e instanceof c?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,e,t,n)}}[s.b](){return this}static create(e,t,n){const r=new c(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class u extends c{constructor(e,t,n,o){let s;super(),this._parentSubscriber=e;let a=this;(0,r.m)(t)?s=t:t&&(s=t.next,n=t.error,o=t.complete,t!==i.c&&(a=Object.create(t),(0,r.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=n,this._complete=o}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):(0,l.z)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;(0,l.z)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,l.z)(n)}}__tryOrSetError(e,t,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return a.v.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):((0,l.z)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},7570:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var r=n(8470),i=n(2056),o=n(5024);const s=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let a=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:c,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if((0,o.m)(c)){a&&(this._unsubscribe=void 0);try{c.call(this)}catch(h){t=h instanceof s?l(h.errors):[h]}}if((0,r.k)(u)){let e=-1,n=u.length;for(;++e<n;){const n=u[e];
1if((0,i.K)(n))try{n.unsubscribe()}catch(h){t=t||[],h instanceof s?t=t.concat(l(h.errors)):t.push(h)}}}if(t)throw new s(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}var t;return e.EMPTY=((t=new e).closed=!0,t),e})();function l(e){return e.reduce((e,t)=>e.concat(t instanceof s?t.errors:t),[])}},1484:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},6882:(e,t,n)=>{"use strict";n.d(t,{IY:()=>s,Ds:()=>a,ft:()=>l});var r=n(6673),i=n(1784),o=n(6015);class s extends r.L{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends r.L{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function l(e,t){if(t.closed)return;if(e instanceof i.y)return e.subscribe(t);let n;try{n=(0,o.s)(e)(t)}catch(r){t.error(r)}return n}},2875:(e,t,n)=>{"use strict";n.d(t,{c:()=>a,N:()=>l});var r=n(5959),i=n(1784),o=n(7570),s=n(1564);class a extends i.y{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new o.w,e.add(this.source.subscribe(new c(this.getSubject(),this))),e.closed&&(this._connection=null,e=o.w.EMPTY)),e}refCount(){return(0,s.x)()(this)}}const l=(()=>{const e=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class c extends r.Yc{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}},653:(e,t,n)=>{"use strict";n.d(t,{E:()=>i,c:()=>o});var r=n(1784);const i=new r.y(e=>e.complete());function o(e){return e?function(e){return new r.y(t=>e.schedule(()=>t.complete()))}(e):i}},9764:(e,t,n)=>{"use strict";n.d(t,{D:()=>h});var r=n(1784),i=n(6015),o=n(7570),s=n(6197),a=n(2570),l=n(5686),c=n(5168),u=n(9653);function h(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[s.L]}(e))return function(e,t){return new r.y(n=>{const r=new o.w;return r.add(t.schedule(()=>{const i=e[s.L]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if((0,c.t)(e))return function(e,t){return new r.y(n=>{const r=new o.w;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if((0,u.z)(e))return(0,a.r)(e,t);if(function(e){return e&&"function"==typeof e[l.hZ]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.y(n=>{const r=new o.w;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[l.hZ](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=i.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.y?e:new r.y((0,i.s)(e))}},9342:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(1784),i=n(625),o=n(2570);function s(e,t){return t?(0,o.r)(e,t):new r.y((0,i.V)(e))}},1906:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var r=n(1784),i=n(6163),o=n(7471),s=n(9342);function a(...e){let t=Number.POSITIVE_INFINITY,n=null,a=e[e.length-1];return(0,i.K)(a)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof a&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof r.y?e[0]:(0,o.J)(t)((0,s.n)(e,n))}},878:(e,t,n)=>{"use strict";n.d(t,{of:()=>s});var r=n(6163),i=n(9342),o=n(2570);function s(...e){let t=e[e.length-1];return(0,r.K)(t)?(e.pop(),(0,o.r)(e,t)):(0,i.n)(e)}},1225:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(1784);function i(e,t){return new r.y(t?n=>t.schedule(o,0,{error:e,subscriber:n}):t=>t.error(e))}function o({error:e,subscriber:t}){t.error(e)}},9996:(e,t,n)=>{"use strict";n.d(t,{U:()=>i});var r=n(6673);function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}class o{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new s(e,this.project,this.thisArg))}}class s extends r.L{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},7471:(e,t,n)=>{"use strict";n.d(t,{J:()=>
1o});var r=n(3982),i=n(3392);function o(e=Number.POSITIVE_INFINITY){return(0,r.zg)(i.y,e)}},3982:(e,t,n)=>{"use strict";n.d(t,{zg:()=>s,VS:()=>c});var r=n(9996),i=n(9764),o=n(6882);function s(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?o=>o.pipe(s((n,o)=>(0,i.D)(e(n,o)).pipe((0,r.U)((e,r)=>t(n,e,o,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new a(e,n)))}class a{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}class l extends o.Ds{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new o.IY(this),n=this.destination;n.add(t);const r=(0,o.ft)(e,t);r!==t&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const c=s},45:(e,t,n)=>{"use strict";n.d(t,{QV:()=>o,ht:()=>a});var r=n(6673),i=n(3103);function o(e,t=0){return function(n){return n.lift(new s(e,t))}}class s{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new a(e,this.scheduler,this.delay))}}class a extends r.L{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new l(e,this.destination)))}_next(e){this.scheduleMessage(i.P.createNext(e))}_error(e){this.scheduleMessage(i.P.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(i.P.createComplete()),this.unsubscribe()}}class l{constructor(e,t){this.notification=e,this.destination=t}}},1564:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(6673);function i(){return function(e){return e.lift(new o(e))}}class o{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new s(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class s extends r.L{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}},1055:(e,t,n)=>{"use strict";n.d(t,{B:()=>a});var r=n(2875),i=n(1564),o=n(5959);function s(){return new o.xQ}function a(){return e=>{return(0,i.x)()((t=s,function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,r.N);return i.source=e,i.subjectFactory=n,i})(e));var t}}},2893:(e,t,n)=>{"use strict";n.d(t,{R:()=>g});var r=n(1784);let i=1;const o=(()=>Promise.resolve())(),s={};function a(e){return e in s&&(delete s[e],!0)}const l={setImmediate(e){const t=i++;return s[t]=!0,o.then(()=>a(t)&&e()),t},clearImmediate(e){a(e)}};var c=n(8277);class u extends c.o{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=l.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(l.clearImmediate(t),e.scheduled=void 0)}}var h=n(1098);class d extends h.v{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r<i&&(e=t.shift()));if(this.active=!1,n){for(;++r<i&&(e=t.shift());)e.unsubscribe();throw n}}}const A=new d(u);var p=n(2293);class f extends r.y{constructor(e,t=0,n=A){super(),this.source=e,this.delayTime=t,this.scheduler
1=n,(!(0,p.k)(t)||t<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=A)}static create(e,t=0,n=A){return new f(e,t,n)}static dispatch(e){const{source:t,subscriber:n}=e;return this.add(t.subscribe(n))}_subscribe(e){return this.scheduler.schedule(f.dispatch,this.delayTime,{source:this.source,subscriber:e})}}function g(e,t=0){return function(n){return n.lift(new m(e,t))}}class m{constructor(e,t){this.scheduler=e,this.delay=t}call(e,t){return new f(t,this.delay,this.scheduler).subscribe(e)}}},4019:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(6673),i=n(6054),o=n(5024);function s(e,t,n){return function(r){return r.lift(new a(e,t,n))}}class a{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))}}class l extends r.L{constructor(e,t,n,r){super(e),this._tapNext=i.Z,this._tapError=i.Z,this._tapComplete=i.Z,this._tapError=n||i.Z,this._tapComplete=r||i.Z,(0,o.m)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||i.Z,this._tapError=t.error||i.Z,this._tapComplete=t.complete||i.Z)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}},2570:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var r=n(1784),i=n(7570);function o(e,t){return new r.y(n=>{const r=new i.w;let o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},8277:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(7570);class i extends r.w{constructor(e,t){super()}schedule(e,t=0){return this}}class o extends i{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,r=!1;try{this.work(e)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}},1098:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});let r=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class i extends r{constructor(e,t=r.now){super(e,()=>i.delegate&&i.delegate!==this?i.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return i.delegate&&i.delegate!==this?i.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}},8569:(e,t,n)=>{"use strict";n.d(t,{z:()=>i,P:()=>o});var r=n(8277);const i=new(n(1098).v)(r.o),o=i},8489:(e,t,n)=>{"use strict";n.d(t,{c:()=>l,N:()=>a});var r=n(8277);class i extends r.o{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}var o=n(1098);class s extends o.v{}const a=new s(i),l=a},5686:(e,t,n)=>{"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,{hZ:()=>i});const i=r()},6197:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},5331:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},3895:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},4294:(e,t,n)=>{"use strict";function r(e){setTimeout(()=>{throw e},0)}n.d(t,{z:()=>r})},3392:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{y:()=>r})},8470:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},9653:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});const r=e=>e&&"number"==typeof e.length&&"function"!=typeof e},5024:(e,t,n)=>{"use strict";function r(e){return"function"==typeof e}n.d(t,{m:()=>r})}
1,2293:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(8470);function i(e){return!(0,r.k)(e)&&e-parseFloat(e)+1>=0}},2056:(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,{K:()=>r})},5168:(e,t,n)=>{"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:()=>r})},6163:(e,t,n)=>{"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,{K:()=>r})},6054:(e,t,n)=>{"use strict";function r(){}n.d(t,{Z:()=>r})},6541:(e,t,n)=>{"use strict";n.d(t,{z:()=>i,U:()=>o});var r=n(3392);function i(...e){return o(e)}function o(e){return 0===e.length?r.y:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}},6015:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(625),i=n(4294),o=n(5686),s=n(6197),a=n(9653),l=n(5168),c=n(2056);const u=e=>{if(e&&"function"==typeof e[s.L])return u=e,e=>{const t=u[s.L]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if((0,a.z)(e))return(0,r.V)(e);if((0,l.t)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i.z),e);if(e&&"function"==typeof e[o.hZ])return t=e,e=>{const n=t[o.hZ]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=(0,c.K)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,u}},625:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});const r=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}},7574:e=>{e.exports=function(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(i){r=i}return[r,n]}},1436:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return r(i).default}});var o=n(2);Object.defineProperty(t,"adjustCaretPosition",{enumerable:!0,get:function(){return r(o).default}});var s=n(5);Object.defineProperty(t,"createTextMaskInputElement",{enumerable:!0,get:function(){return r(s).default}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.previousConformedValue,i=void 0===t?r:t,o=e.previousPlaceholder,s=void 0===o?r:o,a=e.currentCaretPosition,l=void 0===a?0:a,c=e.conformedValue,u=e.rawValue,h=e.placeholderChar,d=e.placeholder,A=e.indexesOfPipedChars,p=void 0===A?n:A,f=e.caretTrapIndexes,g=void 0===f?n:f;if(0===l||!u.length)return 0;var m=i.length,v=d.length,y=c.length,b=u.length-m,_=b>0;if(b>1&&!_&&0!==m)return l;var w=0,C=void 0,S=void 0;if(!_||i!==c&&c!==d){var E=c.toLowerCase(),I=u.toLowerCase().substr(0,l).split(r).filter(function(e){return-1!==E.indexOf(e)});S=I[I.length-1];var x=s.substr(0,I.length).split(r).filter(function(e){return e!==h}).length,T=d.substr(0,I.length).split(r).filter(function(e){return e!==h}).length;!_&&(T!==x||void 0!==s[I.length-1]&&void 0!==d[I.length-2]&&s[I.length-1]!==h&&s[I.length-1]!==d[I.length-1]&&s[I.length-1]===d[I.length-2])&&x>0&&d.indexOf(S)>-1&&void 0!==u[l]&&(C=!0,S=u[l]);for(var B=p.map(function(e){return E[e]}).filter(function(e){return e===S}).length,k=I.filter(function(e){return e===S}).length,P=d.substr(0,d.indexOf(h)).split(r).filter(function(e,t){return e===S&&u[t]!==e}).length+k+B+(C?1:0),O=0,F=0;F<y&&(w=F+1,E[F]===S&&O++,!(O>=P));F++);}else w=l-b;if(_){for(var L=w,M=w;M<=v;M++)if(d[M]===h&&(L=M),d[M]===h||-1!==g.indexOf(M)||M===v)return L}else if(C){for(var D=w-1;D>=0;D--)if(c[D]===S||-1!==g.indexOf(D)||0===D)return D}else for(var N=w;N>=0;N--)if(d[N-1]===h||-1!==g.indexOf(N)||0===N)return N};var n=[],r=""},function(e,t,n){"use strict";
vendor: 4,628 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,i.isArray)(t)){if((void 0===t?"undefined":r(t))!==o.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,i.processCaretTraps)(t).maskWithoutCaretTraps}var l=n.guide,c=void 0===l||l,u=n.previousConformedValue,h=void 0===u?a:u,d=n.placeholderChar,A=void 0===d?o.placeholderChar:d,p=n.placeholder,f=void 0===p?(0,i.convertMaskToPlaceholder)(t,A):p,g=n.keepCharPositions,m=!1===c&&void 0!==h,v=e.length,y=h.length,b=f.length,_=t.length,w=v-y,C=w>0,S=n.currentCaretPosition+(C?-w:0),E=S+Math.abs(w);if(!0===g&&!C){for(var I=a,x=S;x<E;x++)f[x]===A&&(I+=A);e=e.slice(0,S)+I+e.slice(S,v)}for(var T=e.split(a).map(function(e,t){return{char:e,isNew:t>=S&&t<E}}),B=v-1;B>=0;B--){var k=T[B].char;k!==A&&k===f[B>=S&&y===_?B-w:B]&&T.splice(B,1)}var P=a,O=!1;e:for(var F=0;F<b;F++){var L=f[F];if(L===A){if(T.length>0)for(;T.length>0;){var M=T.shift(),D=M.char,N=M.isNew;if(D===A&&!0!==m){P+=A;continue e}if(t[F].test(D)){if(!0===g&&!1!==N&&h!==a&&!1!==c&&C){for(var R=T.length,U=null,j=0;j<R;j++){var Q=T[j];if(Q.char!==A&&!1===Q.isNew)break;if(Q.char===A){U=j;break}}null!==U?(P+=D,T.splice(U,1)):F--}else P+=D;continue e}O=!0}!1===m&&(P+=f.substr(F,b));break}P+=L}if(m&&!1===C){for(var H=null,V=0;V<P.length;V++)f[V]===A&&(H=V);P=null!==H?P.substr(0,H+1):a}return{conformedValue:P,meta:{someCharsRejected:O}}};var i=n(4),o=n(1),s=[],a=""},function(e,t,n){"use strict";function r(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.placeholderChar;if(!r(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map(function(e){return e instanceof RegExp?t:e}).join("")},t.isArray=r,t.isString=function(e){return"string"==typeof e||e instanceof String},t.isNumber=function(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)},t.isNil=function(e){return null==e},t.processCaretTraps=function(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(s));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}};var i=n(1),o=[],s="[]"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){document.activeElement===e&&(f?g(function(){return e.setSelectionRange(t,t,A)},0):e.setSelectionRange(t,t,A))}function o(e){if((0,u.isString)(e))return e;if((0,u.isNumber)(e))return String(e);if(null==e)return d;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,A=r.inputElement,f=r.mask,g=r.guide,m=r.pipe,v=r.placeholderChar,y=void 0===v?h.placeholderChar:v,b=r.keepCharPositions,_=void 0!==b&&b,w=r.showMask,C=void 0!==w&&w;if(void 0===n&&(n=A.value),n!==t.previousConformedValue){(void 0===f?"undefined":a(f))===p&&void 0!==f.pipe&&void 0!==f.mask&&(m=f.pipe,f=f.mask);var S=void 0,E=void 0;if(f instanceof Array&&(S=(0,u.convertMaskToPlaceholder)(f,y)),!1!==f){var I=o(n),x=A.selectionEnd,T=t.previousConformedValue,B=t.previousPlaceholder,k=void 0;if((void 0===f?"undefined":a(f))===h.strFunction){if(!1===(E=f(I,{
1currentCaretPosition:x,previousConformedValue:T,placeholderChar:y})))return;var P=(0,u.processCaretTraps)(E);k=P.indexes,S=(0,u.convertMaskToPlaceholder)(E=P.maskWithoutCaretTraps,y)}else E=f;var O={previousConformedValue:T,guide:g,placeholderChar:y,pipe:m,placeholder:S,currentCaretPosition:x,keepCharPositions:_},F=(0,c.default)(I,E,O).conformedValue,L=(void 0===m?"undefined":a(m))===h.strFunction,M={};L&&(!1===(M=m(F,s({rawValue:I},O)))?M={value:T,rejected:!0}:(0,u.isString)(M)&&(M={value:M}));var D=L?M.value:F,N=(0,l.default)({previousConformedValue:T,previousPlaceholder:B,conformedValue:D,placeholder:S,rawValue:I,currentCaretPosition:x,placeholderChar:y,indexesOfPipedChars:M.indexesOfPipedChars,caretTrapIndexes:k}),R=D===S&&0===N?C?S:d:D;t.previousConformedValue=R,t.previousPlaceholder=S,A.value!==R&&(A.value=R,i(A,N))}}}}};var l=r(n(2)),c=r(n(3)),u=n(4),h=n(1),d="",A="none",p="object",f="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])},3879:e=>{function t(e){return e.replace(/\n\r?\s*/g,"")}e.exports=function(e){for(var n="",r=0;r<arguments.length;r++)n+=t(e[r])+(arguments[r+1]||"");return n}},3320:function(e){var t,n,r,i,o;t=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,n=/^([^\/?#]*)([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,i=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e.exports=o={buildAbsoluteURL:function(e,t,r){if(r=r||{},e=e.trim(),!(t=t.trim())){if(!r.alwaysNormalize)return e;var i=o.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=o.normalizePath(i.path),o.buildURLFromParts(i)}var s=o.parseURL(t);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return r.alwaysNormalize?(s.path=o.normalizePath(s.path),o.buildURLFromParts(s)):t;var a=o.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var l=n.exec(a.path);a.netLoc=l[1],a.path=l[2]}a.netLoc&&!a.path&&(a.path="/");var c={scheme:a.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(c.netLoc=a.netLoc,"/"!==s.path[0]))if(s.path){var u=a.path,h=u.substring(0,u.lastIndexOf("/")+1)+s.path;c.path=o.normalizePath(h)}else c.path=a.path,s.params||(c.params=a.params,s.query||(c.query=a.query));return null===c.path&&(c.path=r.alwaysNormalize?o.normalizePath(s.path):s.path),o.buildURLFromParts(c)},parseURL:function(e){var n=t.exec(e);return n?{scheme:n[1]||"",netLoc:n[2]||"",path:n[3]||"",params:n[4]||"",query:n[5]||"",fragment:n[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(r,"");e.length!==(e=e.replace(i,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}}},4741:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Jl});var r=n(2231),i=n.n(r),o=n(7805),s=n.n(o);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}var h=n(7574),d=n.n(h),A=n(958),p=n.n(A),f=n(4917),g=n.n(f),m=n(2814),v=n.n(m);function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function b(e,t,n){return(b=y()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}var _=n(3320),w=n.n(_),C="http://example.com";const S=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=i().location&&i().location.href||"");var n="function"==typeof i().URL,r=/^\/\//.test(e),o=!i().location&&!/\/\//i.test(e);
vendor: 4,641 bytes, line 1
1if(n?e=new(i().URL)(e,i().location||C):/\/\//i.test(e)||(e=w().buildAbsoluteURL(i().location&&i().location.href||"",e)),n){var s=new URL(t,e);return o?s.href.slice(C.length):r?s.href.slice(s.protocol.length):s.href}return w().buildAbsoluteURL(e,t)};var E=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r<n;++r)t[r].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),o=t.length,s=0;s<o;++s)t[s].apply(this,i)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();function I(e){for(var t,n=(t=e,i().atob?i().atob(t):Buffer.from(t,"base64").toString("binary")),r=new Uint8Array(n.length),o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r}var x,T,B=function(e){function t(){var t;return(t=e.call(this)||this).buffer="",t}return u(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(E),k=String.fromCharCode(9),P=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},O=function(e){for(var t,n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),r={},i=n.length;i--;)""!==n[i]&&((t=/([^=]*)=(.*)/.exec(n[i]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),r[t[0]]=t[1]);return r},F=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}u(t,e);var n=t.prototype;return n.push=function(e){var t,n,r=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce(function(t,n){var r=n(e);return r===e?t:t.concat([r])},[e]).forEach(function(e){for(var i=0;i<r.customParsers.length;i++)if(r.customParsers[i].call(r,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))r.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void r.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void r.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e))return n=a(P(t[1]),{type:"tag",tagType:"byterange"}),void r.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},t[1]){var o=O(t[1]);o.URI&&(n.uri=o.URI),o.BYTERANGE&&(n.byterange=P(o.BYTERANGE))}r.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=O(t[1]),n.attributes.RESOLUTION){var s=n.attributes.RESOLUTION.split("x"),l={};s[0]&&(l.width=parseInt(s[0],10)),s[1]&&(l.height=parseInt(s[1],10)),n.attributes.RESOLUTION=l}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}r.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=O(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e))r.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e))r.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return n={type:"tag",tagType:"program-date-time"}
1,t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e))return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=O(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void r.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e))return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=O(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void r.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return(n={type:"tag",tagType:"cue-out-cont"}).data=t[1]?t[1]:"",void r.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return(n={type:"tag",tagType:"cue-out"}).data=t[1]?t[1]:"",void r.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return(n={type:"tag",tagType:"cue-in"}).data=t[1]?t[1]:"",void r.trigger("data",n);if((t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"skip"}).attributes=O(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(k)),void r.trigger("data",n);if((t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"part"}).attributes=O(t[1]),["DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=P(n.attributes.BYTERANGE)),void r.trigger("data",n);if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"server-control"}).attributes=O(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),void r.trigger("data",n);if((t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"part-inf"}).attributes=O(t[1]),["PART-TARGET"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),void r.trigger("data",n);if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"preload-hint"}).attributes=O(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);var t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}}),void r.trigger("data",n);if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"rendition-report"}).attributes=O(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))}),void r.trigger("data",n);r.trigger("data",{type:"tag",data:e.slice(4)})}}}else r.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:e}))},n.addParser=function(e){var t=this,n=e.expression,r=e.customType,i=e.dataParser,o=e.segment;"function"!=typeof i&&(i=function(e){return e}),this.customParsers.push(function(e){if(n.exec(e))return t.trigger("data",{type:"custom",data:i(e),customType:r,segment:o}),!0})},n.addTagMapper=function(e){var t=e.expression,n=e.map;this.tagMappers.push(function(e){return t.test(e)?n(e):e})},t}(E),L=function(e){var t={};return Object.keys(e).forEach(function(n){var r;t[(r=n,r.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()}))]=e[n]}),t},M=function(e){var t=e.serverControl,n=e.targetDuration,r=e.partTargetDuration;
vendor: 8,723 bytes, line 1
1if(t){var i="#EXT-X-SERVER-CONTROL",o="holdBack",s="partHoldBack",a=n&&3*n,l=r&&2*r;n&&!t.hasOwnProperty(o)&&(t[o]=a,this.trigger("info",{message:i+" defaulting HOLD-BACK to targetDuration * 3 ("+a+")."})),a&&t[o]<a&&(this.trigger("warn",{message:i+" clamping HOLD-BACK ("+t[o]+") to targetDuration * 3 ("+a+")"}),t[o]=a),r&&!t.hasOwnProperty(s)&&(t[s]=3*r,this.trigger("info",{message:i+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[s]+")."})),r&&t[s]<l&&(this.trigger("warn",{message:i+" clamping PART-HOLD-BACK ("+t[s]+") to partTargetDuration * 2 ("+l+")."}),t[s]=l)}},D=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new B,t.parseStream=new F,t.lineStream.pipe(t.parseStream);var n,r,i=l(t),o=[],s={},c=!1,u=function(){},h={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},d=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var A=0,p=0;return t.on("end",function(){s.uri||!s.parts&&!s.preloadHints||(!s.map&&n&&(s.map=n),!s.key&&r&&(s.key=r),s.timeline||"number"!=typeof d||(s.timeline=d),t.manifest.preloadSegment=s)}),t.parseStream.on("data",function(e){var t,l;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(s.byterange=t,t.length=e.length,"offset"in e||(e.offset=A)),"offset"in e&&(s.byterange=t,t.offset=e.offset),A=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(s.duration=e.duration),0===e.duration&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=o},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:I(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}));e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(r.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,d=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={},e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),r&&(n.key=r)},"stream-inf":function(){this.manifest.playlists=o,this.manifest.mediaGroups=this.manifest.mediaGroups||h,e.attributes?(s.attributes||(s.attributes={}),a(s.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||h,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],(l={default:/yes/i.test(e.attributes.DEFAULT)}).autoselect=!!l.default||/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(l.language=e.attributes.LANGUAGE),e.attributes.URI&&(l.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(l.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(l.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(l.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=l}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){d+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(o.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),s.dateTimeString=e.dateTimeString,s.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,M.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){s.cueOut=e.data},"cue-out-cont":function(){s.cueOutCont=e.data},"cue-in":function(){s.cueIn=e.data},skip:function(){this.manifest.skip=L(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;c=!0;var n=this.manifest.segments.length,r=L(e.attributes);s.parts=s.parts||[],s.parts.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=p),p=r.byterange.offset+r.byterange.length),this.warnOnMissingAttributes_("#EXT-X-PART #"+(s.parts.length-1)+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(e,n){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var t=this.manifest.serverControl=L(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),M.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,n=L(e.attributes),r=n.type&&"PART"===n.type;s.preloadHints=s.preloadHints||[],s.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=r?p:0,r&&(p=n.byterange.offset+n.byterange.length)));var i=s.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+i+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var o=0;o<s.preloadHints.length-1;o++){var a=s.preloadHints[o];a.type&&a.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+i+" for segment #"+t+" has the same TYPE "+n.type+" as preload hint #"+o})}},"rendition-report":function(){var t=L(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var n=this.manifest.renditionReports.length-1,r=["LAST-MSN","URI"];c&&r.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,e.attributes,r)},"part-inf":function(){this.manifest.partInf=L(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),M.call(this,this.manifest)}}[e.tagType]||u).call(i)}
1,uri:function(){s.uri=e.uri,o.push(s),this.manifest.targetDuration&&!("duration"in s)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),s.duration=this.manifest.targetDuration),r&&(s.key=r),s.timeline=d,n&&(s.map=n),p=0,s={}},comment:function(){},custom:function(){e.segment?(s.custom=s.custom||{},s.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(i)}),t}u(t,e);var n=t.prototype;return n.warnOnMissingAttributes_=function(e,t,n){var r=[];n.forEach(function(e){t.hasOwnProperty(e)||r.push(e)}),r.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+r.join(", ")})},n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(E),N={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},R=["video","audio","text"],U=["Video","Audio","Text"],j=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)}):e},Q=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach(function(e){var t;e=e.trim(),R.forEach(function(r){var i=N[r].exec(e.toLowerCase());if(i&&!(i.length<=1)){t=r;var o=e.substring(0,i[1].length),s=e.replace(o,"");n.push({type:o,details:s,mediaType:r})}}),t||n.push({type:e,details:"",mediaType:"unknown"})}),n},H=function(e){return void 0===e&&(e=""),N.audio.test(e.trim().toLowerCase())},V=function(e){if(e&&"string"==typeof e){var t,n=e.toLowerCase().split(",").map(function(e){return j(e.trim())}),r="video";1===n.length&&H(n[0])?r="audio":1===n.length&&(void 0===(t=n[0])&&(t=""),N.text.test(t.trim().toLowerCase()))&&(r="application");var i="mp4";return n.every(function(e){return N.mp4.test(e)})?i="mp4":n.every(function(e){return N.webm.test(e)})?i="webm":n.every(function(e){return N.ogg.test(e)})&&(i="ogg"),r+"/"+i+';codecs="'+e+'"'}},q=function(e){return void 0===e&&(e=""),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(V(e))||!1},K=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<U.length;t++)if(N["muxer"+U[t]].test(e))return!0;return!1})},G="mp4a.40.2",z=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,W=/^application\/dash\+xml/i,$=function(e){return z.test(e)?"hls":W.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},Y=n(1787),X=function(e){return!!e&&"object"==typeof e},J=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce(function(t,n){return"object"!=typeof n||Object.keys(n).forEach(function(r){t[r]=Array.isArray(t[r])&&Array.isArray(n[r])?t[r].concat(n[r]):X(t[r])&&X(n[r])?e(t[r],n[r]):n[r]}),t},{})},Z=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},ee=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},te=function(e){var t=e.baseUrl,n=e.source,r=void 0===n?"":n,i=e.range,o=void 0===i?"":i,s=e.indexRange,a=void 0===s?"":s,l={uri:r,resolvedUri:S((void 0===t?"":t)||"",r)};if(o||a){var c=(o||a).split("-"),u=parseInt(c[0],10),h=parseInt(c[1],10);l.byterange={length:h-u+1,offset:u}}return l},ne=function(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},re={static:function(e){var t=e.duration,n=e.timescale,r=void 0===n?1:n,i=e.sourceDuration,o=ne(e.endNumber);return{start:0,end:"number"==typeof o?o:Math.ceil(i/(t/r))}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,r=e.availabilityStartTime,i=e.timescale,o=void 0===i?1:i,s=e.duration,a=e.start,l=void 0===a?0:a,c=e.minimumUpdatePeriod,u=void 0===c?0:c,h=e.timeShiftBufferDepth,d=void 0===h?1/0:h,A=ne(e.endNumber),p=(t+n)/1e3,f=r+l,g=Math.ceil((p+u-f)*o/s),m=Math.floor((p-f-d)*o/s),v=Math.floor((p-f)*o/s);return{start:Math.max(0,m),end:"number"==typeof A?A:Math.min(g,v)}}},ie=function(e){var t=e.type,n=void 0===t?"static":t,r=e.duration,i=e.timescale,o=void 0===i?1:i,s=e.sourceDuration,a=re[n](e),l=function(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n}(a.start,a.end).map(function(e){return function(t,n){var r=e.duration,i=e.timescale,o=e.startNumber;return{number:(void 0===o?1:o)+t,duration:r/(void 0===i?1:i),timeline:e.periodIndex,time:n*r}}}(e));if("static"===n){var c=l.length-1;l[c].duration=s-r/o*c}return l},oe=function(e){var t=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,i=e.sourceDuration,o=e.indexRange,s=void 0===o?"":o,a=e.duration;if(!t)throw new Error("NO_BASE_URL");var l=te({baseUrl:t,source:r.sourceURL,range:r.range}),c=te({baseUrl:t,source:t,indexRange:s});if(c.map=l,a){var u=ie(e);u.length&&(c.duration=u[0].duration,c.timeline=u[0].timeline)}else i&&(c.duration=i,c.timeline=0);return c.number=0,[c]},se=function(e,t,n){for(var r=e.sidx.map?e.sidx.map:null,i=e.sidx.duration,o=e.timeline||0,s=e.sidx.byterange,a=s.offset+s.length,l=t.timescale,c=t.references.filter(function(e){return 1!==e.referenceType}),u=[],h=a+t.firstOffset,d=0;d<c.length;d++){var A=t.references[d],p=A.referencedSize,f=oe({baseUrl:n,timescale:l,timeline:o,periodIndex:o,duration:A.subsegmentDuration,sourceDuration:i,indexRange:h+"-"+(h+p-1)})[0];r&&(f.map=r),u.push(f),h+=p}return e.segments=u,e},ae=function(e){return e&&e.uri+"-"+(t=e.byterange).offset+"-"+(t.offset+t.length-1);var t},le=function(e){var t;return(t=e.reduce(function(e,t){var n,r=t.attributes.id+(t.attributes.lang||"");return e[r]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[r].segments).push.apply(n,t.segments),t.attributes.contentProtection&&(e[r].attributes.contentProtection=t.attributes.contentProtection)):e[r]=t,e},{}
1),Object.keys(t).map(function(e){return t[e]})).map(function(e){return e.discontinuityStarts=e.segments.reduce(function(e,t,n){return t.discontinuity&&e.push(n),e},[]),e})},ce=function(e,t){var n=ae(e.sidx),r=n&&t[n]&&t[n].sidx;return r&&se(e,r,e.sidx.resolvedUri),e},ue=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=ce(e[n],t);return e},he=function(e){var t,n=e.attributes,r=e.segments,i=e.sidx,o={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1};return n.contentProtection&&(o.contentProtection=n.contentProtection),i&&(o.sidx=i),o},de=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},Ae=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},pe=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},fe=function(e,t,n){var r=e.timescale,i=e.start,o=e.minimumUpdatePeriod;return Math.ceil((((e.NOW+e.clientOffset)/1e3+(void 0===o?0:o)-(e.availabilityStartTime+(void 0===i?0:i)))*(void 0===r?1:r)-t)/n)},ge=function(e,t){for(var n=e.type,r=void 0===n?"static":n,i=e.minimumUpdatePeriod,o=void 0===i?0:i,s=e.media,a=void 0===s?"":s,l=e.sourceDuration,c=e.timescale,u=void 0===c?1:c,h=e.startNumber,d=void 0===h?1:h,A=e.periodIndex,p=[],f=-1,g=0;g<t.length;g++){var m=t[g],v=m.d,y=m.r||0,b=m.t||0;f<0&&(f=b),b&&b>f&&(f=b);var _=void 0;if(y<0){var w=g+1;_=w===t.length?"dynamic"===r&&o>0&&a.indexOf("$Number$")>0?fe(e,f,v):(l*u-f)/v:(t[w].t-f)/v}else _=y+1;for(var C=d+p.length+_,S=d+p.length;S<C;)p.push({number:S,duration:v/u,time:f,timeline:A}),f+=v,S++}return p},me=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,ve=function(e,t){return e.replace(me,function(e){return function(t,n,r,i){if("$$"===t)return"$";if(void 0===e[n])return t;var o=""+e[n];return"RepresentationID"===n?o:(i=r?parseInt(i,10):1,o.length>=i?o:""+new Array(i-o.length+1).join("0")+o)}}(t))},ye=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},r=e.initialization,i=void 0===r?{sourceURL:"",range:""}:r,o=te({baseUrl:e.baseUrl,source:ve(i.sourceURL,n),range:i.range});return function(e,t){return e.duration||t?e.duration?ie(e):ge(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]}(e,t).map(function(t){n.Number=t.number,n.Time=t.time;var r=ve(e.media||"",n),i={uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:S(e.baseUrl||"",r),map:o,number:t.number};return e.presentationTimeOffset&&(i.presentationTimeOffset=e.presentationTimeOffset),i})},be=function(e,t){var n=e.duration,r=e.segmentUrls,i=void 0===r?[]:r;if(!n&&!t||n&&t)throw new Error("SEGMENT_TIME_UNSPECIFIED");var o,s=i.map(function(t){return function(e,t){var n=e.baseUrl,r=e.initialization,i=void 0===r?{}:r,o=te({baseUrl:n,source:i.sourceURL,range:i.range}),s=te({baseUrl:n,source:t.media,range:t.mediaRange});return s.map=o,s}(e,t)});return n&&(o=ie(e)),t&&(o=ge(e,t)),o.map(function(e,t){if(s[t]){var n=s[t];return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n}}).filter(function(e){return e})},_e=function(e){var t,n,r=e.attributes,i=e.segmentInfo;i.template?(n=ye,t=J(r,i.template),i.template.presentationTimeOffset&&(t.presentationTimeOffset=i.template.presentationTimeOffset/i.template.timescale)):i.base?(n=oe,t=J(r,i.base)):i.list&&(n=be,t=J(r,i.list));var o={attributes:r};if(!n)return o;var s=n(t,i.timeline);if(t.duration){var a=t.timescale;t.duration=t.duration/(void 0===a?1:a)}else t.duration=s.length?s.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):0;return o.attributes=t,o.segments=s,i.base&&t.indexRange&&(o.sidx=s[0],o.segments=[]),o},we=function(e,t){return ee(e.childNodes).filter(function(e){return e.tagName===t})},Ce=function(e){return e.textContent.trim()},Se=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=t.slice(1),r=n[1],i=n[2],o=n[3],s=n[4],a=n[5];
1return 31536e3*parseFloat(n[0]||0)+2592e3*parseFloat(r||0)+86400*parseFloat(i||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(a||0)},Ee={mediaPresentationDuration:function(e){return Se(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return Se(e)},suggestedPresentationDelay:function(e){return Se(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return Se(e)},start:function(e){return Se(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?Se(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},Ie=function(e){return e&&e.attributes?ee(e.attributes).reduce(function(e,t){return e[t.name]=(Ee[t.name]||Ee.DEFAULT)(t.value),e},{}):{}},xe={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},Te=function(e,t){return t.length?Z(e.map(function(e){return t.map(function(t){return S(e,Ce(t))})})):e},Be=function(e){var t=we(e,"SegmentTemplate")[0],n=we(e,"SegmentList")[0],r=n&&we(n,"SegmentURL").map(function(e){return J({tag:"SegmentURL"},Ie(e))}),i=we(e,"SegmentBase")[0],o=n||t,s=o&&we(o,"SegmentTimeline")[0],a=n||i||t,l=a&&we(a,"Initialization")[0],c=t&&Ie(t);c&&l?c.initialization=l&&Ie(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var u={template:c,timeline:s&&we(s,"S").map(function(e){return Ie(e)}),list:n&&J(Ie(n),{segmentUrls:r,initialization:Ie(l)}),base:i&&J(Ie(i),{initialization:Ie(l)})};return Object.keys(u).forEach(function(e){u[e]||delete u[e]}),u},ke=function(e,t){return function(n,r){var o=Te(t,we(n,"BaseURL")),s=Ie(n),a=parseInt(s.id,10),l=i().isNaN(a)?r:a,c=J(e,{periodIndex:l}),u=we(n,"AdaptationSet"),h=Be(n);return Z(u.map(function(e,t,n){return function(r){var i,o=Ie(r),s=Te(t,we(r,"BaseURL")),a=we(r,"Role")[0],l={role:Ie(a)},c=J(e,o,l),u=we(r,"Accessibility")[0],h="urn:scte:dash:cc:cea-608:2015"===(i=Ie(u)).schemeIdUri?i.value.split(";").map(function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var r=e.split("=");t=r[0],n=r[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}}):"urn:scte:dash:cc:cea-708:2015"===i.schemeIdUri?i.value.split(";").map(function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),r=n[1],i=void 0===r?"":r;t.channel=n[0],t.language=e,i.split(",").forEach(function(e){var n=e.split(":"),r=n[0],i=n[1];"lang"===r?t.language=i:"er"===r?t.easyReader=Number(i):"war"===r?t.aspectRatio=Number(i):"3D"===r&&(t["3D"]=Number(i))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0;h&&(c=J(c,{captionServices:h}));var d=we(r,"Label")[0];if(d&&d.childNodes.length){var A=d.childNodes[0].nodeValue.trim();c=J(c,{label:A})}var p=we(r,"ContentProtection").reduce(function(e,t){var n=Ie(t),r=xe[n.schemeIdUri];if(r){e[r]={attributes:n};
1var i=we(t,"cenc:pssh")[0];if(i){var o=Ce(i),s=o&&I(o);e[r].pssh=s}}return e},{});Object.keys(p).length&&(c=J(c,{contentProtection:p}));var f=Be(r),g=we(r,"Representation"),m=J(n,f);return Z(g.map(function(e,t,n){return function(r){var i=we(r,"BaseURL"),o=Te(t,i),s=J(e,Ie(r)),a=Be(r);return o.map(function(e){return{segmentInfo:J(n,a),attributes:J(s,{baseUrl:e})}})}}(c,s,m)))}}(c,o,h)))}},Pe=function(e){if(""===e)throw new Error("DASH_EMPTY_MANIFEST");var t,n,r=new Y.a;try{n=(t=r.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(i){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error("DASH_INVALID_XML");return n},Oe=n(845),Fe=n.n(Oe),Le=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},Me=i().BigInt||Number,De=[Me("0x1"),Me("0x100"),Me("0x10000"),Me("0x1000000"),Me("0x100000000"),Me("0x10000000000"),Me("0x1000000000000"),Me("0x100000000000000"),Me("0x10000000000000000")],Ne=(x=new Uint16Array([65484]),new Uint8Array(x.buffer,x.byteOffset,x.byteLength),function(e,t){var n=void 0===t?{}:t,r=n.signed,i=void 0!==r&&r,o=n.le,s=void 0!==o&&o;e=Le(e);var a=s?"reduce":"reduceRight",l=(e[a]?e[a]:Array.prototype[a]).call(e,function(t,n,r){var i=s?r:Math.abs(r+1-e.length);return t+Me(n)*De[i]},Me(0));if(i){var c=De[e.length]/Me(2)-Me(1);(l=Me(l))>c&&(l-=c,l-=c,l-=Me(2))}return Number(l)}),Re=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n},Ue=function(e,t,n){var r=void 0===n?{}:n,i=r.offset,o=void 0===i?0:i,s=r.mask,a=void 0===s?[]:s;
vendor: 2,391 bytes, line 1
1return e=Le(e),(t=Le(t)).length&&e.length-o>=t.length&&(t.every?t.every:Array.prototype.every).call(t,function(t,n){return t===(a[n]?a[n]&e[o+n]:e[o+n])})},je=Le([73,68,51]),Qe=function e(t,n){return void 0===n&&(n=0),(t=Le(t)).length-n<10||!Ue(t,je,{offset:n})?n:(n+=function(e,t){void 0===t&&(t=0);var n=(e=Le(e))[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&e[t+5])>>4?n+20:n+10}(t,n),e(t,n))},He=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"==typeof e?Re(e):e}),Ve=function(e){e=Le(e);for(var t=[],n=0;e.length>n;){var r=e[n],i=0,o=0,s=e[++o];for(o++;128&s;)i=(127&s)<<7,s=e[o],o++;i+=127&s;for(var a=0;a<T.length;a++){var l=T[a];if(r===l.id){t.push((0,l.parser)(e.subarray(o,o+i)));break}}n+=i+o}return t};T=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var n=e[t.size];t.url=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,Le(e));try{return decodeURIComponent(escape(t))}catch(n){}return t}(e.subarray(t.size+1,t.size+1+n)),t.size+=n}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=Ve(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:Ve(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var qe=function e(t,n,r){void 0===r&&(r=!1),n=function(e){return Array.isArray(e)?e.map(function(e){return He(e)}):[He(e)]}(n),t=Le(t);var i=[];if(!n.length)return i;for(var o=0;o<t.length;){var s=(t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3])>>>0,a=t.subarray(o+4,o+8);if(0===s)break;var l=o+s;if(l>t.length){if(r)break;l=t.length}var c=t.subarray(o+8,l);Ue(a,n[0])&&(1===n.length?i.push(c):i.push.apply(i,e(c,n.slice(1),r))),o=l}return i},Ke={EBML:Le([26,69,223,163]),DocType:Le([66,130]),Segment:Le([24,83,128,103]),SegmentInfo:Le([21,73,169,102]),Tracks:Le([22,84,174,107]),Track:Le([174]),TrackNumber:Le([215]),DefaultDuration:Le([35,227,131]),TrackEntry:Le([174]),TrackType:Le([131]),FlagDefault:Le([136]),CodecID:Le([134]),CodecPrivate:Le([99,162]),VideoTrack:Le([224]),AudioTrack:Le([225]
1),Cluster:Le([31,67,182,117]),Timestamp:Le([231]),TimestampScale:Le([42,215,177]),BlockGroup:Le([160]),BlockDuration:Le([155]),Block:Le([161]),SimpleBlock:Le([163])},Ge=[128,64,32,16,8,4,2,1],ze=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var i=function(e){for(var t=1,n=0;n<Ge.length&&!(e&Ge[n]);n++)t++;return t}(e[t]),o=e.subarray(t,t+i);return n&&((o=Array.prototype.slice.call(e,t,t+i))[0]^=Ge[i-1]),{length:i,value:Ne(o,{signed:r}),bytes:o}},We=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?function(e,t){var n={}.le,r=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=Me(e);for(var i=Math.ceil(e.toString(2).length/8),o=new Uint8Array(new ArrayBuffer(i)),s=0;s<i;s++){var a=r?s:Math.abs(s+1-o.length);o[a]=Number(e/De[s]&Me(255)),e<0&&(o[a]=Math.abs(~o[a]),o[a]-=0===s?1:2)}return o}(t):t},$e=function e(t,n,r){if(r>=n.length)return n.length;var i=ze(n,r,!1);if(Ue(t.bytes,i.bytes))return r;var o=ze(n,r+i.length);return e(t,n,r+o.length+o.value+i.length)},Ye=function e(t,n){n=function(e){return Array.isArray(e)?e.map(function(e){return We(e)}):[We(e)]}(n),t=Le(t);var r=[];if(!n.length)return r;for(var i=0;i<t.length;){var o=ze(t,i,!1),s=ze(t,i+o.length),a=i+o.length+s.length;127===s.value&&(s.value=$e(o,t,a),s.value!==t.length&&(s.value-=a));var l=t.subarray(a,a+s.value>t.length?t.length:a+s.value);Ue(n[0],o.bytes)&&(1===n.length?r.push(l):r=r.concat(e(l,n.slice(1)))),i+=o.length+s.length+l.length}return r},Xe=Le([0,0,0,1]),Je=Le([0,0,1]),Ze=Le([0,0,3]),et=function(e){for(var t=[],n=1;n<e.length-2;)Ue(e.subarray(n,n+3),Ze)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var r=e.length-t.length,i=new Uint8Array(r),o=0;for(n=0;n<r;o++,n++)o===t[0]&&(o++,t.shift()),i[n]=e[o];return i},tt=function(e,t,n,r){void 0===r&&(r=1/0),e=Le(e),n=[].concat(n);for(var i,o=0,s=0;o<e.length&&(s<r||i);){var a=void 0;if(Ue(e.subarray(o),Xe)?a=4:Ue(e.subarray(o),Je)&&(a=3),a){if(s++,i)return et(e.subarray(i,o));var l=void 0;"h264"===t?l=31&e[o+a]:"h265"===t&&(l=e[o+a]>>1&63),-1!==n.indexOf(l)&&(i=o+a),o+=a+("h264"===t?1:2)}else o++}return e.subarray(0,0)},nt={webm:Le([119,101,98,109]),matroska:Le([109,97,116,114,111,115,107,97]),flac:Le([102,76,97,67]),ogg:Le([79,103,103,83]),ac3:Le([11,119]),riff:Le([82,73,70,70]),avi:Le([65,86,73]),wav:Le([87,65,86,69]),"3gp":Le([102,116,121,112,51,103]),mp4:Le([102,116,121,112]),fmp4:Le([115,116,121,112]),mov:Le([102,116,121,112,113,116]),moov:Le([109,111,111,118]),moof:Le([109,111,111,102])},rt={aac:function(e){var t=Qe(e);return Ue(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Qe(e);return Ue(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=Ye(e,[Ke.EBML,Ke.DocType])[0];return Ue(t,nt.webm)},mkv:function(e){var t=Ye(e,[Ke.EBML,Ke.DocType])[0];return Ue(t,nt.matroska)},mp4:function(e){return!rt["3gp"](e)&&!rt.mov(e)&&(!(!Ue(e,nt.mp4,{offset:4})&&!Ue(e,nt.fmp4,{offset:4}))||!(!Ue(e,nt.moof,{offset:4})&&!Ue(e,nt.moov,{offset:4}))||void 0)},mov:function(e){return Ue(e,nt.mov,{offset:4})},"3gp":function(e){return Ue(e,nt["3gp"],{offset:4})},ac3:function(e){var t=Qe(e);return Ue(e,nt.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Qe(e);return Ue(e,nt.flac,{offset:t})},ogg:function(e){return Ue(e,nt.ogg)},avi:function(e){return Ue(e,nt.riff)&&Ue(e,nt.avi,{offset:8})},wav:function(e){return Ue(e,nt.riff)&&Ue(e,nt.wav,{offset:8})},h264:function(e){return function(e,t,n){return tt(e,"h264",7,3)}(e).length},h265:function(e){return function(e,t,n){return tt(e,"h265",[32,33],3)}(e).length}},it=Object.keys(rt).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);it.forEach(function(e){var t=rt[e];rt[e]=function(e){return t(Le(e))}});for(var ot,st=rt,at=function(e){e=Le(e);for(var t=0;t<it.length;t++){var n=it[t];if(st[n](e))return n}return""},lt=n(3402),ct="7.14.3",ut={prefixed:!0},ht=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],dt=ht[0],At=0;At<ht.length;At++)if(ht[At][1]in s()){ot=ht[At];break}if(ot){for(var pt=0;pt<ot.length;pt++)ut[dt[pt]]=ot[pt];ut.prefixed=ot[0]!==dt[0]}var ft=[],gt=function e(t){var n,r="info",o=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n("log",r,t)};return n=function(e,t){return function(n,r,o){var s=t.levels[r],a=new RegExp("^("+s+")$");if("log"!==n&&o.unshift(n.toUpperCase()+":"),o.unshift(e+":"),ft){ft.push([].concat(o));var l=ft.length-1e3;ft.splice(0,l>0?l:0)}if(i().console){var c=i().console[n];c||"debug"!==n||(c=i().console.info||i().console.log),c&&s&&a.test(n)&&c[Array.isArray(o)?"apply":"call"](i().console,o)}}}(t,o),o.createLogger=function(n){return e(t+": "+n)},o.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},o.level=function(e){if("string"==typeof e){if(!o.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');r=e}return r},(o.history=function(){return ft?[].concat(ft):[]}).filter=function(e){return(ft||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},o.history.clear=function(){ft&&(ft.length=0)},o.history.disable=function(){null!==ft&&(ft.length=0,ft=null)},o.history.enable=function(){null===ft&&(ft=[])},o.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("error",r,t)},o.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("warn",r,t)},o.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("debug",r,t)},o}("VIDEOJS"),mt=gt.createLogger,vt=Object.prototype.toString,yt=function(e){return wt(e)?Object.keys(e):[]};
1function bt(e,t){yt(e).forEach(function(n){return t(e[n],n)})}function _t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign?a.apply(void 0,[e].concat(n)):(n.forEach(function(t){t&&bt(t,function(t,n){e[n]=t})}),e)}function wt(e){return!!e&&"object"==typeof e}function Ct(e){return wt(e)&&"[object Object]"===vt.call(e)&&e.constructor===Object}function St(e,t){if(!e||!t)return"";if("function"==typeof i().getComputedStyle){var n;try{n=i().getComputedStyle(e)}catch(r){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var Et,It,xt,Tt=i().navigator&&i().navigator.userAgent||"",Bt=/AppleWebKit\/([\d.]+)/i.exec(Tt),kt=Bt?parseFloat(Bt.pop()):null,Pt=/iPod/i.test(Tt),Ot=(Et=Tt.match(/OS (\d+)_/i))&&Et[1]?Et[1]:null,Ft=/Android/i.test(Tt),Lt=function(){var e=Tt.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),Mt=Ft&&Lt<5&&kt<537,Dt=/Firefox/i.test(Tt),Nt=/Edg/i.test(Tt),Rt=!Nt&&(/Chrome/i.test(Tt)||/CriOS/i.test(Tt)),Ut=function(){var e=Tt.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),jt=(!(xt=(It=/MSIE\s(\d+)\.\d/.exec(Tt))&&parseFloat(It[1]))&&/Trident\/7.0/i.test(Tt)&&/rv:11.0/.test(Tt)&&(xt=11),xt),Qt=/Safari/i.test(Tt)&&!Rt&&!Ft&&!Nt,Ht=/Windows/i.test(Tt),Vt=Boolean(Xt()&&("ontouchstart"in i()||i().navigator.maxTouchPoints||i().DocumentTouch&&i().document instanceof i().DocumentTouch)),qt=/iPad/i.test(Tt)||Qt&&Vt&&!/iPhone/i.test(Tt),Kt=/iPhone/i.test(Tt)&&!qt,Gt=Kt||qt||Pt,zt=(Qt||Gt)&&!Rt,Wt=Object.freeze({__proto__:null,IS_IPOD:Pt,IOS_VERSION:Ot,IS_ANDROID:Ft,ANDROID_VERSION:Lt,IS_NATIVE_ANDROID:Mt,IS_FIREFOX:Dt,IS_EDGE:Nt,IS_CHROME:Rt,CHROME_VERSION:Ut,IE_VERSION:jt,IS_SAFARI:Qt,IS_WINDOWS:Ht,TOUCH_ENABLED:Vt,IS_IPAD:qt,IS_IPHONE:Kt,IS_IOS:Gt,IS_ANY_SAFARI:zt});function $t(e){return"string"==typeof e&&Boolean(e.trim())}function Yt(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Xt(){return s()===i().document}function Jt(e){return wt(e)&&1===e.nodeType}function Zt(){try{return i().parent!==i().self}catch(e){return!0}}function en(e){return function(t,n){if(!$t(t))return s()[e](null);$t(n)&&(n=s().querySelector(n));var r=Jt(n)?n:s();return r[e]&&r[e](t)}}function tn(e,t,n,r){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var i=s().createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(gt.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),i.setAttribute(e,n)):"textContent"===e?nn(i,n):i[e]===n&&"tabIndex"!==e||(i[e]=n)}),Object.getOwnPropertyNames(n).forEach(function(e){i.setAttribute(e,n[e])}),r&&wn(i,r),i}function nn(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function rn(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function on(e,t){return Yt(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function sn(e,t){return e.classList?e.classList.add(t):on(e,t)||(e.className=(e.className+" "+t).trim()),e}function an(e,t){return e?(e.classList?e.classList.remove(t):(Yt(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e):(gt.warn("removeClass was called with an element that doesn't exist"),null)}
1function ln(e,t,n){var r=on(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!r),n!==r)return n?sn(e,t):an(e,t),e}function cn(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)})}function un(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,r=n.length-1;r>=0;r--){var i=n[r].name,o=n[r].value;"boolean"!=typeof e[i]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+i+",")||(o=null!==o),t[i]=o}return t}function hn(e,t){return e.getAttribute(t)}function dn(e,t,n){e.setAttribute(t,n)}function An(e,t){e.removeAttribute(t)}function pn(){s().body.focus(),s().onselectstart=function(){return!1}}function fn(){s().onselectstart=function(){return!0}}function gn(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(n[e]=t[e])}),n.height||(n.height=parseFloat(St(e,"height"))),n.width||(n.width=parseFloat(St(e,"width"))),n}}function mn(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,r=0,i=0;e.offsetParent&&e!==s()[ut.fullscreenElement];)r+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{left:r,top:i,width:t,height:n}}function vn(e,t){var n={x:0,y:0};if(Gt)for(var r=e;r&&"html"!==r.nodeName.toLowerCase();){var i=St(r,"transform");
1if(/^matrix/.test(i)){var o=i.slice(7,-1).split(/,\s/).map(Number);n.x+=o[4],n.y+=o[5]}else if(/^matrix3d/.test(i)){var s=i.slice(9,-1).split(/,\s/).map(Number);n.x+=s[12],n.y+=s[13]}r=r.parentNode}var a={},l=mn(t.target),c=mn(e),u=c.width,h=t.offsetY-(c.top-l.top),d=t.offsetX-(c.left-l.left);return t.changedTouches&&(d=t.changedTouches[0].pageX-c.left,h=t.changedTouches[0].pageY+c.top,Gt&&(d-=n.x,h-=n.y)),a.y=1-Math.max(0,Math.min(1,h/c.height)),a.x=Math.max(0,Math.min(1,d/u)),a}function yn(e){return wt(e)&&3===e.nodeType}function bn(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function _n(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),Jt(e)||yn(e)?e:"string"==typeof e&&/\S/.test(e)?s().createTextNode(e):void 0}).filter(function(e){return e})}function wn(e,t){return _n(t).forEach(function(t){return e.appendChild(t)}),e}function Cn(e,t){return wn(bn(e),t)}function Sn(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}var En,In=en("querySelector"),xn=en("querySelectorAll"),Tn=Object.freeze({__proto__:null,isReal:Xt,isEl:Jt,isInFrame:Zt,createEl:tn,textContent:nn,prependTo:rn,hasClass:on,addClass:sn,removeClass:an,toggleClass:ln,setAttributes:cn,getAttributes:un,getAttribute:hn,setAttribute:dn,removeAttribute:An,blockTextSelection:pn,unblockTextSelection:fn,getBoundingClientRect:gn,findPosition:mn,getPointerPosition:vn,isTextNode:yn,emptyEl:bn,normalizeContent:_n,appendContent:wn,insertContent:Cn,isSingleLeftClick:Sn,$:In,$$:xn}),Bn=!1,kn=function(){if(!1!==En.options.autoSetup){var e=Array.prototype.slice.call(s().getElementsByTagName("video")),t=Array.prototype.slice.call(s().getElementsByTagName("audio")),n=Array.prototype.slice.call(s().getElementsByTagName("video-js")),r=e.concat(t,n);if(r&&r.length>0)for(var i=0,o=r.length;i<o;i++){var a=r[i];if(!a||!a.getAttribute){Pn(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&En(a)}else Bn||Pn(1)}};function Pn(e,t){Xt()&&(t&&(En=t),i().setTimeout(kn,e))}function On(){Bn=!0,i().removeEventListener("load",On)}Xt()&&("complete"===s().readyState?On():i().addEventListener("load",On));var Fn,Ln=function(e){var t=s().createElement("style");return t.className=e,t},Mn=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Dn=3;function Nn(){return Dn++}i().WeakMap||(Fn=function(){function e(){this.vdata="vdata"+Math.floor(i().performance&&i().performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||Nn();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];gt("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var Rn,Un=i().WeakMap?new WeakMap:new Fn;function jn(e,t){if(Un.has(e)){var n=Un.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Un.delete(e)}}function Qn(e,t,n,r){n.forEach(function(n){e(t,n,r)})}function Hn(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var r=e||i().event;for(var o in e={},r)"layerX"!==o&&"layerY"!==o&&"keyLocation"!==o&&"webkitMovementX"!==o&&"webkitMovementY"!==o&&("returnValue"===o&&r.preventDefault||(e[o]=r[o]));if(e.target||(e.target=e.srcElement||s()),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!=e.clientX){var a=s().documentElement,l=s().body;e.pageX=e.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!=e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var Vn=["touchstart","touchmove"];
vendor: 12,020 bytes, line 1
1function qn(e,t,n){if(Array.isArray(t))return Qn(qn,e,t,n);Un.has(e)||Un.set(e,{});var r=Un.get(e);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),n.guid||(n.guid=Nn()),r.handlers[t].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,n){if(!r.disabled){t=Hn(t);var i=r.handlers[t.type];if(i)for(var o=i.slice(0),s=0,a=o.length;s<a&&!t.isImmediatePropagationStopped();s++)try{o[s].call(e,t,n)}catch(l){gt.error(l)}}}),1===r.handlers[t].length)if(e.addEventListener){var o=!1;(function(){if("boolean"!=typeof Rn){Rn=!1;try{var e=Object.defineProperty({},"passive",{get:function(){Rn=!0}});i().addEventListener("test",null,e),i().removeEventListener("test",null,e)}catch(t){}}return Rn})()&&Vn.indexOf(t)>-1&&(o={passive:!0}),e.addEventListener(t,r.dispatcher,o)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function Kn(e,t,n){if(Un.has(e)){var r=Un.get(e);if(r.handlers){if(Array.isArray(t))return Qn(Kn,e,t,n);var i=function(e,t){r.handlers[t]=[],jn(e,t)};if(void 0!==t){var o=r.handlers[t];if(o)if(n){if(n.guid)for(var s=0;s<o.length;s++)o[s].guid===n.guid&&o.splice(s--,1);jn(e,t)}else i(e,t)}else for(var a in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},a)&&i(e,a)}}}function Gn(e,t,n){var r=Un.has(e)?Un.get(e):{},i=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Hn(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&!0===t.bubbles)Gn.call(null,i,t,n);else if(!i&&!t.defaultPrevented&&t.target&&t.target[t.type]){Un.has(t.target)||Un.set(t.target,{});var o=Un.get(t.target);t.target[t.type]&&(o.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),o.disabled=!1)}return!t.defaultPrevented}function zn(e,t,n){if(Array.isArray(t))return Qn(zn,e,t,n);var r=function r(){Kn(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Nn(),qn(e,t,r)}function Wn(e,t,n){var r=function r(){Kn(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Nn(),qn(e,t,r)}var $n,Yn=Object.freeze({__proto__:null,fixEvent:Hn,on:qn,off:Kn,trigger:Gn,one:zn,any:Wn}),Xn=30,Jn=function(e,t,n){t.guid||(t.guid=Nn());var r=t.bind(e);return r.guid=n?n+"_"+t.guid:t.guid,r},Zn=function(e,t){var n=i().performance.now();return function(){var r=i().performance.now();r-n>=t&&(e.apply(void 0,arguments),n=r)}},er=function(){};er.prototype.allowedEvents_={},er.prototype.addEventListener=er.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},qn(this,e,t),this.addEventListener=n},er.prototype.removeEventListener=er.prototype.off=function(e,t){Kn(this,e,t)},er.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},zn(this,e,t),this.addEventListener=n},er.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Wn(this,e,t),this.addEventListener=n},er.prototype.dispatchEvent=er.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Hn(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Gn(this,e)},er.prototype.queueTrigger=function(e){var t=this;$n||($n=new Map);var n=e.type||e,r=$n.get(this);r||(r=new Map,$n.set(this,r));var o=r.get(n);r.delete(n),i().clearTimeout(o);var s=i().setTimeout(function(){0===r.size&&(r=null,$n.delete(t)),t.trigger(e)},0);r.set(n,s)};var tr=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},nr=function(e){return e instanceof er||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},rr=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},ir=function(e,t,n){if(!e||!e.nodeName&&!nr(e))throw new Error("Invalid target for "+tr(t)+"#"+n+"; must be a DOM node or evented object.")},or=function(e,t,n){if(!rr(e))throw new Error("Invalid event type for "+tr(t)+"#"+n+"; must be a non-empty string or array.")},sr=function(e,t,n){if("function"!=typeof e)throw new Error("Invalid listener for "+tr(t)+"#"+n+"; must be a function.")},ar=function(e,t,n){var r,i,o,s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return s?(r=e.eventBusEl_,t.length>=3&&t.shift(),i=t[0],o=t[1]):(r=t[0],i=t[1],o=t[2]),ir(r,e,n),or(i,e,n),sr(o,e,n),{isTargetingSelf:s,target:r,type:i,listener:o=Jn(e,o)}},lr=function(e,t,n,r){ir(e,e,t),e.nodeName?Yn[t](e,n,r):e[t](n,r)},cr={on:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=ar(this,n,"on"),o=i.isTargetingSelf,s=i.target,a=i.type,l=i.listener;if(lr(s,"on",a,l),!o){var c=function(){return e.off(s,a,l)};c.guid=l.guid;var u=function(){return e.off("dispose",c)};u.guid=l.guid,lr(this,"on","dispose",c),lr(s,"on","dispose",u)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=ar(this,n,"one"),o=i.isTargetingSelf,s=i.target,a=i.type,l=i.listener;if(o)lr(s,"one",a,l);else{var c=function t(){e.off(s,a,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];l.apply(null,r)};c.guid=l.guid,lr(s,"one",a,c)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=ar(this,n,"any"),o=i.isTargetingSelf,s=i.target,a=i.type,l=i.listener;if(o)lr(s,"any",a,l);else{var c=function t(){e.off(s,a,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];l.apply(null,r)};c.guid=l.guid,lr(s,"any",a,c)}},off:function(e,t,n){if(!e||rr(e))Kn(this.eventBusEl_,e,t);else{var r=e,i=t;ir(r,this,"off"),or(i,this,"off"),sr(n,this,"off"),n=Jn(this,n),this.off("dispose",n),r.nodeName?(Kn(r,i,n),Kn(r,"dispose",n)):nr(r)&&(r.off(i,n),r.off("dispose",n))}},trigger:function(e,t){if(ir(this.eventBusEl_,this,"trigger"),!rr(e&&"string"!=typeof e?e.type:e)){var n="Invalid event type for "+tr(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(n);(this.log||gt).error(n)}return Gn(this.eventBusEl_,e,t)}};function ur(e,t){void 0===t&&(t={});var n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=tn("span",{className:"vjs-event-bus"});return _t(e,cr),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),i().setTimeout(function(){e.eventBusEl_=null},0)}),e}var hr={state:{},setState:function(e){var t,n=this;return"function"==typeof e&&(e=e()),bt(e,function(e,r){n.state[r]!==e&&((t=t||{})[r]={from:n.state[r],to:e}),n.state[r]=e}),t&&nr(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function dr(e,t){return _t(e,hr),e.state=_t({},e.state,t),"function"==typeof e.handleStateChanged&&nr(e)&&e.on("statechanged",e.handleStateChanged),e}var Ar=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})},pr=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})};function fr(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&bt(t,function(t,n){Ct(t)?(Ct(e[n])||(e[n]={}),e[n]=fr(e[n],t)):e[n]=t})}),e}var gr=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),mr=i().Map?i().Map:gr,vr=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),yr=i().Set?i().Set:vr,br=function(){function e(e,t,n){if(this.player_=!e&&this.play?e=this:e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=fr({},this.options_),t=this.options_=fr(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+Nn()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(ur(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),dr(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new yr,this.setIntervalIds_=new yr,this.rafIds_=new yr,this.namedRafs_=new mr,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Un.has(this.el_)&&Un.delete(this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=fr(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return tn(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),o=i&&i[r],s=r&&r.split("-")[0],a=i&&i[s],l=n;return o&&o[e]?l=o[e]:a&&a[e]&&(l=a[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,n){var r=t[n-1],i=r;return void 0===r&&(i=e),i})),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce(function(e,t){return e.concat(t)},[]);for(var r=this,i=0;i<t.length;i++)if(!(r=r.getChild(t[i]))||!r.getChild)return;return r},t.addChild=function(t,n,r){var i,o;if(void 0===n&&(n={}),void 0===r&&(r=this.children_.length),"string"==typeof t){o=pr(t);var s=n.componentClass||o;n.name=o;var a=e.getComponent(s);if(!a)throw new Error("Component "+s+" does not exist");if("function"!=typeof a)return null;i=new a(this.player_||this,n)}else i=t;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(r,0,i),i.parentComponent_=this,"function"==typeof i.id&&(this.childIndex_[i.id()]=i),(o=o||i.name&&pr(i.name()))&&(this.childNameIndex_[o]=i,this.childNameIndex_[Ar(o)]=i),"function"==typeof i.el&&i.el()){var l=null;this.children_[r+1]&&(this.children_[r+1].el_?l=this.children_[r+1].el_:Jt(this.children_[r+1])&&(l=this.children_[r+1])),this.contentEl().insertBefore(i.el(),l)}return i},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[pr(e.name())]=null,this.childNameIndex_[Ar(e.name())]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var r,i=this.options_,o=e.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(e){return!r.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var r,i;return"string"==typeof e?i=n[r=e]||t.options_[r]||{}
1:(r=e.name,i=e),{name:r,opts:i}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||pr(t.name));return n&&!o.isTech(n)}).forEach(function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var o=t.addChild(n,r);o&&(t[n]=o)}})}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},t.$=function(e,t){return In(e,t||this.contentEl())},t.$$=function(e,t){return xn(e,t||this.contentEl())},t.hasClass=function(e){return on(this.el_,e)},t.addClass=function(e){sn(this.el_,e)},t.removeClass=function(e){an(this.el_,e)},t.toggleClass=function(e,t){ln(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return hn(this.el_,e)},t.setAttribute=function(e,t){dn(this.el_,e,t)},t.removeAttribute=function(e){An(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),this.el_.style[e]=-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?t:"auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+pr(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=St(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+pr(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=i().performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(n){var r=t.touches[0].pageX-n.pageX,i=t.touches[0].pageY-n.pageY;Math.sqrt(r*r+i*i)>10&&(e=!1)}});var r=function(){e=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",function(r){n=null,!0===e&&i().performance.now()-t<200&&(r.preventDefault(),this.trigger("tap"))})},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=Jn(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,r=this;return e=Jn(this,e),this.clearTimersOnDispose_(),n=i().setTimeout(function(){r.setTimeoutIds_.has(n)&&r.setTimeoutIds_.delete(n),e()},t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),i().clearTimeout(e)),e},t.setInterval=function(e,t){e=Jn(this,e),this.clearTimersOnDispose_();var n=i().setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),i().clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=Jn(this,e),t=i().requestAnimationFrame(function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=Jn(this,t);var r=this.requestAnimationFrame(function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)});return this.namedRafs_.set(e,r),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),i().cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
1h(function(t){var n=t[1];e[t[0]].forEach(function(t,r){return e[n](r)})}),e.clearingTimersOnDispose_=!1}))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r=e.getComponent("Tech"),i=r&&r.isTech(n),o=e===n||e.prototype.isPrototypeOf(n.prototype);if(i||!o)throw new Error('Illegal component, "'+t+'"; '+(i?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");t=pr(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var a=s.players,l=Object.keys(a);if(a&&l.length>0&&l.map(function(e){return a[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[Ar(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function _r(e,t,n,r){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,r,n.length-1),n[r][t]}function wr(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:_r.bind(null,"start",0,e),end:_r.bind(null,"end",1,e)}}function Cr(e,t){return Array.isArray(e)?wr(e):void 0===e||void 0===t?wr():wr([[e,t]])}function Sr(e,t){var n,r,i=0;if(!t)return 0;e&&e.length||(e=Cr(0,0));for(var o=0;o<e.length;o++)n=e.start(o),(r=e.end(o))>t&&(r=t),i+=r-n;return i/t}function Er(e){if(e instanceof Er)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:wt(e)&&("number"==typeof e.code&&(this.code=e.code),_t(this,e)),this.message||(this.message=Er.defaultMessages[this.code]||"")}br.prototype.supportsRaf_="function"==typeof i().requestAnimationFrame&&"function"==typeof i().cancelAnimationFrame,br.registerComponent("Component",br),Er.prototype.code=0,Er.prototype.message="",Er.prototype.status=null,Er.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Er.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Ir=0;Ir<Er.errorTypes.length;Ir++)Er[Er.errorTypes[Ir]]=Ir,Er.prototype[Er.errorTypes[Ir]]=Ir;function xr(e){return null!=e&&"function"==typeof e.then}function Tr(e){xr(e)&&e.then(null,function(e){})}var Br=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,r){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},kr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleKeyDown_=function(e){return r.handleKeyDown(e)},r.close_=function(e){return r.close(e)},r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=tn("div",{className:"vjs-modal-dialog-content"},{role:"document"}),r.descEl_=tn("p",{className:"vjs-modal-dialog-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),nn(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}u(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
vendor: 7,076 bytes, line 1
1n&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,r=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Cn(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t);var i=this.getChild("closeButton");i&&n.appendChild(i.el_)},n.empty=function(){this.trigger("beforemodalempty"),bn(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return void 0!==e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=s().activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),p().isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(p().isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),r=this.el_.querySelector(":focus"),i=0;i<n.length;i++)if(r===n[i]){t=i;break}s().activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof i().HTMLAnchorElement||e instanceof i().HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof i().HTMLInputElement||e instanceof i().HTMLSelectElement||e instanceof i().HTMLTextAreaElement||e instanceof i().HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof i().HTMLIFrameElement||e instanceof i().HTMLObjectElement||e instanceof i().HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},t}(br);kr.prototype.options_={pauseOnOpen:!0,temporary:!0},br.registerComponent("ModalDialog",kr);var Pr=function(e){function t(t){var n;void 0===t&&(t=[]),(n=e.call(this)||this).tracks_=[],Object.defineProperty(l(n),"length",{get:function(){return this.tracks_.length}});for(var r=0;r<t.length;r++)n.addTrack(t[r]);return n}u(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},nr(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,r=this.length;n<r;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},t}(er);for(var Or in Pr.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Pr.prototype.allowedEvents_)Pr.prototype["on"+Or]=null;var Fr=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},Lr=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].enabled){Fr(t,t[r]);break}return(n=e.call(this,t)||this).changing_=!1,n}u(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&Fr(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,Fr(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(Pr),Mr=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},Dr=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].selected){Mr(t,t[r]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(l(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}u(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&Mr(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,Mr(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(Pr),Nr=function(e){function t(){return e.apply(this,arguments)||this}u(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(Pr),Rr=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}
1),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),Ur=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;var i=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},e}(),jr={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Qr={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Hr={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Vr={disabled:"disabled",hidden:"hidden",showing:"showing"},qr=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var r={id:t.id||"vjs_track_"+Nn(),kind:t.kind||"",language:t.language||""},i=t.label||"",o=function(e){Object.defineProperty(l(n),e,{get:function(){return r[e]},set:function(){}})};for(var s in r)o(s);return Object.defineProperty(l(n),"label",{get:function(){return i},set:function(e){e!==i&&(i=e,this.trigger("labelchange"))}}),n}return u(t,e),t}(er),Kr=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=s().createElement("a");n.href=e;for(var r={},o=0;o<t.length;o++)r[t[o]]=n[t[o]];return"http:"===r.protocol&&(r.host=r.host.replace(/:80$/,"")),"https:"===r.protocol&&(r.host=r.host.replace(/:443$/,"")),r.protocol||(r.protocol=i().location.protocol),r.host||(r.host=i().location.host),r},Gr=function(e){if(!e.match(/^https?:\/\//)){var t=s().createElement("a");t.href=e,e=t.href}return e},zr=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},Wr=function(e,t){void 0===t&&(t=i().location);var n=Kr(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},$r=Object.freeze({__proto__:null,parseUrl:Kr,getAbsoluteURL:Gr,getFileExtension:zr,isCrossOrigin:Wr}),Yr=function(e,t){var n=new(i().WebVTT.Parser)(i(),i().vttjs,i().WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),r.length>0&&(i().console&&i().console.groupCollapsed&&i().console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(e){return gt.error(e)}),i().console&&i().console.groupEnd&&i().console.groupEnd()),n.flush()},Xr=function(e,t){var n={uri:e},r=Wr(e);r&&(n.cors=r);var o="use-credentials"===t.tech_.crossOrigin();o&&(n.withCredentials=o),g()(n,Jn(this,function(e,n,r){if(e)return gt.error(e,n);t.loaded_=!0,"function"!=typeof i().WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(e){if("vttjserror"!==e.type)return Yr(r,t);gt.error("vttjs failed to load, stopping trying to process "+t.src)}):Yr(r,t)}))},Jr=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var r=fr(t,{kind:Hr[t.kind]||"subtitles",language:t.language||t.srclang||""}),i=Vr[r.mode]||"disabled",o=r.default;"metadata"!==r.kind&&"chapters"!==r.kind||(i="hidden"),(n=e.call(this,r)||this).tech_=r.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var s=new Ur(n.cues_),a=new Ur(n.activeCues_),c=!1,u=Jn(l(n),function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,c&&(this.trigger("cuechange"),c=!1))});return n.tech_.one("dispose",function(){n.tech_.off("timeupdate",u)}),"disabled"!==i&&n.tech_.on("timeupdate",u),Object.defineProperties(l(n),{default:{get:function(){return o}
vendor: 6,619 bytes, line 1
1,set:function(){}},mode:{get:function(){return i},set:function(e){Vr[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||Xr(this.src,this),this.tech_.off("timeupdate",u),"disabled"!==i&&this.tech_.on("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?s:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return a;for(var e=this.tech_.currentTime(),t=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];(i.startTime<=e&&i.endTime>=e||i.startTime===i.endTime&&i.startTime<=e&&i.startTime+.5>=e)&&t.push(i)}if(c=!1,t.length!==this.activeCues_.length)c=!0;else for(var o=0;o<t.length;o++)-1===this.activeCues_.indexOf(t[o])&&(c=!0);return this.activeCues_=t,a.setCues_(this.activeCues_),a},set:function(){}}}),r.src?(n.src=r.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==r.kind&&"captions"!==r.kind)&&Xr(n.src,l(n))):n.loaded_=!0,n}u(t,e);var n=t.prototype;return n.addCue=function(e){var t=e;if(i().vttjs&&!(e instanceof i().vttjs.VTTCue)){for(var n in t=new(i().vttjs.VTTCue)(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var r=this.tech_.textTracks(),o=0;o<r.length;o++)r[o]!==this&&r[o].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(qr);Jr.prototype.allowedEvents_={cuechange:"cuechange"};var Zr=function(e){function t(t){var n;void 0===t&&(t={});var r=fr(t,{kind:Qr[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(l(n),"enabled",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),r.enabled&&(n.enabled=r.enabled),n.loaded_=!0,n}return u(t,e),t}(qr),ei=function(e){function t(t){var n;void 0===t&&(t={});var r=fr(t,{kind:jr[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(l(n),"selected",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),r.selected&&(n.selected=r.selected),n}return u(t,e),t}(qr),ti=function(e){function t(t){var n,r;void 0===t&&(t={}),n=e.call(this)||this;var i=new Jr(t);return n.kind=i.kind,n.src=i.src,n.srclang=i.language,n.label=i.label,n.default=i.default,Object.defineProperties(l(n),{readyState:{get:function(){return r}},track:{get:function(){return i}}}),r=0,i.addEventListener("loadeddata",function(){r=2,n.trigger({type:"load",target:l(n)})}),n}return u(t,e),t}(er);ti.prototype.allowedEvents_={load:"load"},ti.NONE=0,ti.LOADING=1,ti.LOADED=2,ti.ERROR=3;var ni={audio:{ListClass:Lr,TrackClass:Zr,capitalName:"Audio"},video:{ListClass:Dr,TrackClass:ei,capitalName:"Video"},text:{ListClass:Nr,TrackClass:Jr,capitalName:"Text"}};Object.keys(ni).forEach(function(e){ni[e].getterName=e+"Tracks",ni[e].privateName=e+"Tracks_"});var ri={remoteText:{ListClass:Nr,TrackClass:Jr,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Rr,TrackClass:ti,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},ii=a({},ni,ri);ri.names=Object.keys(ri),ni.names=Object.keys(ni),ii.names=[].concat(ri.names).concat(ni.names);var oi=function(e){function t(t,n){var r;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,(r=e.call(this,null,t,n)||this).onDurationChange_=function(e){return r.onDurationChange(e)},r.trackProgress_=function(e){return r.trackProgress(e)},r.trackCurrentTime_=function(e){return r.trackCurrentTime(e)},r.stopTrackingCurrentTime_=function(e){return r.stopTrackingCurrentTime(e)},r.disposeSourceHandler_=function(e){return r.disposeSourceHandler(e)},r.hasStarted_=!1,r.on("playing",function(){this.hasStarted_=!0}),r.on("loadstart",function(){this.hasStarted_=!1}),ii.names.forEach(function(e){var n=ii[e];t&&t[n.getterName]&&(r[n.privateName]=t[n.getterName])}),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===t["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)}),!1===t.nativeCaptions||!1===t.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.preloadTextTracks=!1!==t.preloadTextTracks,r.autoRemoteTextTracks_=new ii.text.ListClass,r.initTrackListeners(),t.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}u(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Jn(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Cr(0,0)},n.bufferedPercent=function(){return Sr(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(ni.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;
1(e=[].concat(e)).forEach(function(e){for(var n=t[e+"Tracks"]()||[],r=n.length;r--;){var i=n[r];"text"===e&&t.removeRemoteTextTrack(i),n.removeTrack(i)}})},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;)this.removeRemoteTextTrack(e[t])},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Er(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Cr(0,0):Cr()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;ni.names.forEach(function(t){var n=function(){e.trigger(t+"trackchange")},r=e[ni[t].getterName]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),e.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})},n.addWebVttScript_=function(){var e=this;if(!i().WebVTT)if(s().body.contains(this.el())){if(!this.options_["vtt.js"]&&Ct(v())&&Object.keys(v()).length>0)return void this.trigger("vttjsloaded");var t=s().createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),i().WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),r=function(e){return t.addTrack(e.track)},i=function(e){return t.removeTrack(e.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var o=function(){return e.trigger("texttrackchange")},s=function(){o();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};s(),t.addEventListener("change",s),t.addEventListener("addtrack",s),t.addEventListener("removetrack",s),this.on("dispose",function(){n.off("addtrack",r),n.off("removetrack",i),t.removeEventListener("change",s),t.removeEventListener("addtrack",s),t.removeEventListener("removetrack",s);for(var e=0;e<t.length;e++)t[e].removeEventListener("cuechange",o)})},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,r,i){void 0===i&&(i={});var o=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;var s=new ii.text.TrackClass(i);return o.addTrack(s),s}(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=fr(e,{tech:this});return new ri.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var r=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(gt.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==t&&this.ready(function(){return n.autoRemoteTextTracks_.addTrack(r.track)}),r},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||i().Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=pr(e),t.techs_[e]=n,t.techs_[Ar(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=pr(e),i()&&i().videojs&&i().videojs[e]?(gt.warn("The "+e+" tech w
1as added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),i().videojs[e]):void 0)},t}(br);ii.names.forEach(function(e){var t=ii[e];oi.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),oi.prototype.featuresVolumeControl=!0,oi.prototype.featuresMuteControl=!0,oi.prototype.featuresFullscreenResize=!1,oi.prototype.featuresPlaybackRate=!1,oi.prototype.featuresProgressEvents=!1,oi.prototype.featuresSourceset=!1,oi.prototype.featuresTimeupdateEvents=!1,oi.prototype.featuresNativeTextTracks=!1,oi.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n,r=e.sourceHandlers||[],i=0;i<r.length;i++)if(n=r[i].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var r=e.sourceHandlers||[],i=0;i<r.length;i++)if(r[i].canHandleSource(t,n))return r[i];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""},["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:gt.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},br.registerComponent("Tech",oi),oi.registerTech("Tech",oi),oi.defaultTechOrder_=[];var si={},ai={},li={};function ci(e,t,n){e.setTimeout(function(){return fi(t,si[t.type],n,e)},1)}function ui(e,t,n,r){void 0===r&&(r=null);var i="call"+pr(n),o=e.reduce(pi(i),r),s=o===li,a=s?null:t[n](o);return function(e,t,n,r){for(var i=e.length-1;i>=0;i--){var o=e[i];o[t]&&o[t](r,n)}}(e,n,a,s),a}var hi={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},di={setCurrentTime:1,setMuted:1,setVolume:1},Ai={play:1,pause:1};function pi(e){return function(t,n){return t===li?li:n[e]?n[e](t):t}}function fi(e,t,n,r,i,o){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===i&&(i=[]),void 0===o&&(o=!1);var s=t[0],a=t.slice(1);if("string"==typeof s)fi(e,si[s],n,r,i,o);else if(s){var l=function(e,t){var n=ai[e.id()],r=null;if(null==n)return r=t(e),ai[e.id()]=[[t,r]],r;for(var i=0;i<n.length;i++){var o=n[i];o[0]===t&&(r=o[1])}return null===r&&(r=t(e),n.push([t,r])),r}(r,s);if(!l.setSource)return i.push(l),fi(e,a,n,r,i,o);l.setSource(_t({},e),function(t,s){if(t)return fi(e,a,n,r,i,o);i.push(l),fi(s,e.type===s.type?a:si[s.type],n,r,i,o)})}else a.length?fi(e,a,n,r,i,o):o?n(e,i):fi(e,si["*"],n,r,i,!0)}var gi={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},mi=function(e){void 0===e&&(e="");var t=zr(e);return gi[t.toLowerCase()]||""},vi=function e(t){if(Array.isArray(t)){var n=[];t.forEach(function(t){t=e(t),Array.isArray(t)?n=n.concat(t):wt(t)&&n.push(t)}),t=n}else t="string"==typeof t&&t.trim()?[yi({src:t})]:wt(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[yi(t)]:[];return t};function yi(e){if(!e.type){var t=mi(e.src);t&&(e.type=t)}return e}var bi=function(e){function t(t,n,r){var i,o=fr({createEl:!1},n);if(i=e.call(this,t,o,r)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var s=0,a=n.playerOptions.techOrder;s<a.length;s++){var l=pr(a[s]),c=oi.getTech(l);if(l||(c=br.getComponent(l)),c&&c.isSupported()){t.loadTech_(l);break}}return i}return u(t,e),t}(br);br.registerComponent("MediaLoader",bi);var _i=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleMouseOver_=function(e){return r.handleMouseOver(e)},r.handleMouseOut_=function(e){return r.handleMouseOut(e)},r.handleClick_=function(e){return r.handleClick(e)},r.handleKeyDown_=function(e){return r.handleKeyDown(e)},r.emitTapEvents(),r.enable(),r}u(t,e);var n=t.prototype;return n.createEl=function(t,n,r){void 0===t&&(t="div"),void 0===n&&(n={}),void 0===r&&(r={}),n=_t({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&gt.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=_t({role:"button"},r),this.tabIndex_=n.tabIndex;var i=e.prototype.createEl.call(this,t,n,r);return this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=tn("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,nn(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){p().isEventKey(t,"Space")||p().isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(br);br.registerComponent("ClickableComponent",_i),br.registerComponent("PosterImage",function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update(),r.update_=function(e){return r.update(e)},t.on("posterchange",r.update_),r}u(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){return tn("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(jt||Nt)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Tr(this.player_.play()):this.player_.pause()}},t}(_i));var wi={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
1script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Ci(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Si(e,t,n){try{e.style[t]=n}catch(r){return}}br.registerComponent("TextTrackDisplay",function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var s=function(e){return o.updateDisplay(e)};return t.on("loadstart",function(e){return o.toggleDisplay(e)}),t.on("texttrackchange",s),t.on("loadedmetadata",function(e){return o.preselectTrack(e)}),t.ready(Jn(l(o),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",s),t.on("playerresize",s),i().addEventListener("orientationchange",s),t.on("dispose",function(){return i().removeEventListener("orientationchange",s)});for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}})),o}u(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,r={captions:1,subtitles:1},i=this.player_.textTracks(),o=this.player_.cache_.selectedLanguage,s=0;s<i.length;s++){var a=i[s];o&&o.enabled&&o.language&&o.language===a.language&&a.kind in r?a.kind===o.kind?n=a:n||(n=a):o&&!o.enabled?(n=null,e=null,t=null):a.default&&("descriptions"!==a.kind||e?a.kind in r&&!t&&(t=a):e=a)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof i().WebVTT&&i().WebVTT.processCues(i(),[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],r=0;r<e.length;++r){var i=e[r];"showing"===i.mode&&n.push(i)}this.updateForTrack(n)}else{for(var o=null,s=null,a=e.length;a--;){var l=e[a];"showing"===l.mode&&("descriptions"===l.kind?o=l:s=l)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):o&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(o))}},n.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,r=n.length;r--;){var o=n[r];if(o){var s=o.displayState;if(t.color&&(s.firstChild.style.color=t.color),t.textOpacity&&Si(s.firstChild,"color",Ci(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(s.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&Si(s.firstChild,"backgroundColor",Ci(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?Si(s,"backgroundColor",Ci(t.windowColor,t.windowOpacity)):s.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?s.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?s.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var a=i().parseFloat(s.style.fontSize);s.style.fontSize=a*t.fontPercent+"px",s.style.height="auto",s.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=wi[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof i().WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],n=0;n<e.length;++n)for(var r=e[n],o=0;o<r.activeCues.length;++o)t.push(r.activeCues[o]);i().WebVTT.processCues(i(),t,this.el_);for(var s=0;s<e.length;++s){for(var a=e[s],l=0;l<a.activeCues.length;++l){var c=a.activeCues[l].displayState;sn(c,"vjs-text-track-cue"),sn(c,"vjs-text-track-cue-"+(a.language?a.language:s))}this.player_.textTrackSettings&&this.updateDisplayState(a)}}},t}(br)),br.registerComponent("LoadingSpinner",function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"
1Video Player"),r=tn("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),i=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(r),i},t}(br));var Ei=function(e){function t(){return e.apply(this,arguments)||this}u(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={}),t=_t({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=_t({type:"button"},n);var r=br.prototype.createEl.call(this,"button",t,n);return this.createControlTextEl(r),r},n.addChild=function(e,t){return void 0===t&&(t={}),gt.warn("Adding an actionable (user controllable) child to a Button ("+this.constructor.name+") is not supported; use a ClickableComponent instead."),br.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){p().isEventKey(t,"Space")||p().isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(_i);br.registerComponent("Button",Ei);var Ii=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).mouseused_=!1,r.on("mousedown",function(e){return r.handleMouseDown(e)}),r}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Tr(t),void(!this.player_.tech(!0)||(jt||Nt)&&n||this.player_.tech(!0).focus())}var r=this.player_.getChild("controlBar"),i=r&&r.getChild("playToggle");if(i){var o=function(){return i.focus()};xr(t)?t.then(o,function(){}):this.setTimeout(o,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(Ei);Ii.prototype.controlText_="Play Video",br.registerComponent("BigPlayButton",Ii),br.registerComponent("CloseButton",function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).controlText(n&&n.controlText||r.localize("Close")),r}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){p().isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Ei));var xi=function(e){function t(t,n){var r;return void 0===n&&(n={}),r=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,r.on(t,"play",function(e){return r.handlePlay(e)}),r.on(t,"pause",function(e){return r.handlePause(e)}),n.replay&&r.on(t,"ended",function(e){return r.handleEnded(e)}),r}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?Tr(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})},t}(Ei);xi.prototype.controlText_="Play",br.registerComponent("PlayToggle",xi);var Ti=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),o=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),(i=i>0||s>0?i+":":"")+(r=((i||o>=10)&&r<10?"0"+r:r)+":")+(n<10?"0"+n:n)},Bi=Ti;function ki(e,t){return void 0===t&&(t=e),Bi(e,t)}var Pi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["timeupdate","ended"],function(e){return r.updateContent(e)}),r.updateTextNode_(),r}u(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text" role="presentation">'+this.localize(this.labelText_)+"\xa0</span>"});return this.contentEl_=tn("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=ki(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,gt.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=s().createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}}))},n.updateContent=function(e){},t}(br);Pi.prototype.labelText_="Time",Pi.prototype.controlText_="Time",br.registerComponent("TimeDisplay",Pi);var Oi=function(e){function t(){return e.apply(this,arguments)||this}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(Pi);Oi.prototype.labelText_="Current Time",Oi.prototype.controlText_="Current Time",br.registerComponent("CurrentTimeDisplay",Oi);var Fi=function(e){function t(t,n){var r,i=function(e){return r.updateContent(e)};
1return(r=e.call(this,t,n)||this).on(t,"durationchange",i),r.on(t,"loadstart",i),r.on(t,"loadedmetadata",i),r}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(Pi);Fi.prototype.labelText_="Duration",Fi.prototype.controlText_="Duration",br.registerComponent("DurationDisplay",Fi),br.registerComponent("TimeDivider",function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":!0})},t}(br));var Li=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"durationchange",function(e){return r.updateContent(e)}),r}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return t.insertBefore(tn("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(Pi);Li.prototype.labelText_="Remaining Time",Li.prototype.controlText_="Remaining Time",br.registerComponent("RemainingTimeDisplay",Li),br.registerComponent("LiveDisplay",function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateShowing(),r.on(r.player(),"durationchange",function(e){return r.updateShowing(e)}),r}u(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=tn("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"\xa0</span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(br));var Mi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateLiveEdgeStatus(),r.player_.liveTracker&&(r.updateLiveEdgeStatusHandler_=function(e){return r.updateLiveEdgeStatus(e)},r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatusHandler_)),r}u(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=tn("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(Ei);Mi.prototype.controlText_="Seek to live, currently playing live",br.registerComponent("SeekToLive",Mi);var Di=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},Ni=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleMouseDown_=function(e){return r.handleMouseDown(e)},r.handleMouseUp_=function(e){return r.handleMouseUp(e)},r.handleKeyDown_=function(e){return r.handleKeyDown(e)},r.handleClick_=function(e){return r.handleClick(e)},r.handleMouseMove_=function(e){return r.handleMouseMove(e)},r.update_=function(e){return r.update(e)},r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}u(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),n.className=n.className+" vjs-slider",n=_t({tabIndex:0},n),r=_t({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||Rt||e.preventDefault(),pn(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;fn(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"})),t}},n.getProgress=function(){return Number(Di(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=vn(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){p().isEventKey(t,"Left")||p().isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):p().isEventKey(t,"Right")||p().isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.addClass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal")},t}(br);br.registerComponent("Slider",Ni);
vendor: 9,813 bytes, line 1
1var Ri=function(e,t){return Di(e/t*100,0,100).toFixed(2)+"%"};br.registerComponent("LoadProgressBar",function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).partEls_=[],r.on(t,"progress",function(e){return r.update(e)}),r}u(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=tn("span",{className:"vjs-control-text"}),r=tn("span",{textContent:this.localize("Loaded")}),i=s().createTextNode(": ");return this.percentageEl_=tn("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(r),n.appendChild(i),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=t.player_.liveTracker,n=t.player_.buffered(),r=e&&e.isLive()?e.seekableEnd():t.player_.duration(),i=t.player_.bufferedEnd(),o=t.partEls_,s=Ri(i,r);t.percent_!==s&&(t.el_.style.width=s,nn(t.percentageEl_,s),t.percent_=s);for(var a=0;a<n.length;a++){var l=n.start(a),c=n.end(a),u=o[a];u||(u=t.el_.appendChild(tn()),o[a]=u),u.dataset.start===l&&u.dataset.end===c||(u.dataset.start=l,u.dataset.end=c,u.style.left=Ri(l,i),u.style.width=Ri(c-l,i))}for(var h=o.length;h>n.length;h--)t.el_.removeChild(o[h-1]);o.length=n.length})},t}(br)),br.registerComponent("TimeTooltip",function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Zn(Jn(l(r),r.update),Xn),r}u(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var r=mn(this.el_),i=gn(this.player_.el()),o=e.width*t;if(i&&r){var s=e.left-i.left+o,a=e.width-o+(i.right-e.right),l=r.width/2;s<l?l+=l-s:a<l&&(l=a),l<0?l=0:l>r.width&&(l=r.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(n)}},n.write=function(e){nn(this.el_,e)},n.updateTime=function(e,t,n,r){var i=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var o,s=i.player_.duration();if(i.player_.liveTracker&&i.player_.liveTracker.isLive()){var a=i.player_.liveTracker.liveWindow(),l=a-t*a;o=(l<1?"":"-")+ki(l,a)}else o=ki(n,s);i.update(e,t,o),r&&r()})},t}(br));var Ui=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Zn(Jn(l(r),r.update),Xn),r}u(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,r)}},t}(br);Ui.prototype.options_={children:[]},Gt||Ft||Ui.prototype.options_.children.push("timeTooltip"),br.registerComponent("PlayProgressBar",Ui);var ji=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Zn(Jn(l(r),r.update),Xn),r}u(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,r=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,r,function(){n.el_.style.left=e.width*t+"px"})},t}(br);ji.prototype.options_={children:["timeTooltip"]},br.registerComponent("MouseTimeDisplay",ji);var Qi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).setEventHandlers_(),r}u(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=Jn(this,this.update),this.update=Zn(this.update_,Xn),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in s()&&"visibilityState"in s()&&this.on(s(),"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===s().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Xn))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==s().visibilityState){var r=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,i=n.player_.duration();t&&t.isLive()&&(i=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===e&&n.duration_===i||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[ki(e,i),ki(i,i)],"{1} of {2}")),n.currentTime_=e,n.duration_=i),n.bar&&n.bar.update(gn(n.el()),n.getProgress())}),r}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){Sn(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e){if(Sn(e)){var t,n=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99)return void r.seekToLiveEdge();var i=r.seekableStart(),o=r.liveCurrentTime();if((t=i+n*r.liveWindow())>=o&&(t=o),t<=i&&(t=i+.1),t===1/0)return}else(t=n*this.player_.duration())===this.player_.duration()&&(t-=.1);this.userSeek_(t)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Tr(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(p().isEventKey(t,"Space")||p().isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(p().isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(p().isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(p()(t))){t.preventDefault(),t.stopPropagation();var r=10*(p().codes[p()(t)]-p().codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*r):this.userSeek_(this.player_.duration()*r)}else p().isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):p().isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in s()&&"visibilityState"in s()&&this.off(s(),"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(Ni);Qi.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Gt||Ft||Qi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),br.registerComponent("SeekBar",Qi);var Hi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleMouseMove=Zn(Jn(l(r),r.handleMouseMove),Xn),r.throttledHandleMouseSeek=Zn(Jn(l(r),r.handleMouseSeek),Xn),r.handleMouseUpHandler_=function(e){return r.handleMouseUp(e)},r.handleMouseDownHandler_=function(e){return r.handleMouseDown(e)},r.enable(),r}u(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),r=t.getChild("mouseTimeDisplay");if(n||r){var i=t.el(),o=mn(i),s=vn(i,e).x;s=Di(s,0,1),r&&r.update(o,s),n&&n.update(o,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_}
1,n.disable=function(){if(this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Tr(this.player_.play())}},n.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(br);Hi.prototype.options_={children:["seekBar"]},br.registerComponent("ProgressControl",Hi);var Vi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],function(e){return r.handlePictureInPictureChange(e)}),r.on(t,["disablepictureinpicturechanged","loadedmetadata"],function(e){return r.handlePictureInPictureEnabledChange(e)}),r.disable(),r}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){s().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(Ei);Vi.prototype.controlText_="Picture-in-Picture",br.registerComponent("PictureInPictureToggle",Vi);var qi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"fullscreenchange",function(e){return r.handleFullscreenChange(e)}),!1===s()[t.fsApi_.fullscreenEnabled]&&r.disable(),r}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Ei);qi.prototype.controlText_="Fullscreen",br.registerComponent("FullscreenToggle",qi),br.registerComponent("VolumeLevel",function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(br)),br.registerComponent("VolumeLevelTooltip",function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Zn(Jn(l(r),r.update),Xn),r}u(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,r){if(!n){var i=gn(this.el_),o=gn(this.player_.el()),s=e.width*t;if(!o||!i)return;var a=e.left-o.left+s,l=e.width-s+(o.right-e.right),c=i.width/2;a<c?c+=c-a:l<c&&(c=l),c<0?c=0:c>i.width&&(c=i.width),this.el_.style.right="-"+c+"px"}this.write(r+"%")},n.write=function(e){nn(this.el_,e)},n.updateVolume=function(e,t,n,r,i){var o=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){o.update(e,t,n,r.toFixed(0)),i&&i()})},t}(br));var Ki=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Zn(Jn(l(r),r.update),Xn),r}u(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var r=this,i=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,i,function(){n?r.el_.style.bottom=e.height*t+"px":r.el_.style.left=e.width*t+"px"})},t}(br);Ki.prototype.options_={children:["volumeLevelTooltip"]},br.registerComponent("MouseVolumeLevelDisplay",Ki);var Gi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on("slideractive",function(e){return r.updateLastVolume_(e)}),r.on(t,"volumechange",function(e){return r.updateARIAAttributes(e)}),t.ready(function(){return r.updateARIAAttributes()}),r}u(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){Sn(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),r=gn(n),i=this.vertical(),o=vn(n,e);o=Di(o=i?o.y:o.x,0,1),t.update(r,o,i)}Sn(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(Ni);Gi.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Gt||Ft||Gi.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Gi.prototype.playerEvent="volumechange",br.registerComponent("
1VolumeBar",Gi);var zi=function(e){function t(t,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||Ct(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(l(r=e.call(this,t,n)||this),t),r.throttledHandleMouseMove=Zn(Jn(l(r),r.handleMouseMove),Xn),r.handleMouseUpHandler_=function(e){return r.handleMouseUp(e)},r.on("mousedown",function(e){return r.handleMouseDown(e)}),r.on("touchstart",function(e){return r.handleMouseDown(e)}),r.on("mousemove",function(e){return r.handleMouseMove(e)}),r.on(r.volumeBar,["focus","slideractive"],function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")}),r.on(r.volumeBar,["blur","sliderinactive"],function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")}),r}u(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(br);zi.prototype.options_={children:["volumeBar"]},br.registerComponent("VolumeControl",zi);var Wi=function(e){function t(t,n){var r;return function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(l(r=e.call(this,t,n)||this),t),r.on(t,["loadstart","volumechange"],function(e){return r.update(e)}),r}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();0===t?(this.player_.volume(n<.1?.1:n),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;Gt&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)an(this.el_,"vjs-vol-"+n);sn(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(Ei);Wi.prototype.controlText_="Mute",br.registerComponent("MuteToggle",Wi);var $i=function(e){function t(t,n){var r;return void 0===n&&(n={}),n.inline=void 0===n.inline||n.inline,(void 0===n.volumeControl||Ct(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(r=e.call(this,t,n)||this).handleKeyPressHandler_=function(e){return r.handleKeyPress(e)},r.on(t,["loadstart"],function(e){return r.volumePanelState_(e)}),r.on(r.muteToggle,"keyup",function(e){return r.handleKeyPress(e)}),r.on(r.volumeControl,"keyup",function(e){return r.handleVolumeControlKeyUp(e)}),r.on("keydown",function(e){return r.handleKeyPress(e)}),r.on("mouseover",function(e){return r.handleMouseOver(e)}),r.on("mouseout",function(e){return r.handleMouseOut(e)}),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}u(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){p().isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),qn(s(),"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),Kn(s(),"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){p().isEventKey(e,"Esc")&&this.handleMouseOut()},t}(br);$i.prototype.options_={children:["muteToggle","volumeControl"]}
1,br.registerComponent("VolumePanel",$i);var Yi=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,n&&(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",function(e){return r.handleKeyDown(e)}),r.boundHandleBlur_=function(e){return r.handleBlur(e)},r.boundHandleTapClick_=function(e){return r.handleTapClick(e)},r}u(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof br&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof br&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){this.contentEl_=tn(this.options_.contentElType||"ul",{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var t=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),qn(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||s().activeElement;if(!this.children().some(function(e){return e.el()===t})){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter(function(t){return t.el()===e.target})[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){p().isEventKey(e,"Left")||p().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(p().isEventKey(e,"Right")||p().isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(br);br.registerComponent("Menu",Yi);var Xi=function(e){function t(t,n){var r;void 0===n&&(n={}),(r=e.call(this,t,n)||this).menuButton_=new Ei(t,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var i=Ei.prototype.buildCSSClass();r.menuButton_.el_.className=r.buildCSSClass()+" "+i,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0;var o=function(e){return r.handleClick(e)};return r.handleMenuKeyUp_=function(e){return r.handleMenuKeyUp(e)},r.on(r.menuButton_,"tap",o),r.on(r.menuButton_,"click",o),r.on(r.menuButton_,"keydown",function(e){return r.handleKeyDown(e)}),r.on(r.menuButton_,"mouseenter",function(){r.addClass("vjs-hover"),r.menu.show(),qn(s(),"keyup",r.handleMenuKeyUp_)}),r.on("mouseleave",function(e){return r.handleMouseLeave(e)}),r.on("keydown",function(e){return r.handleSubmenuKeyDown(e)}),r}u(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var e=new Yi(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=tn("li",{className:"vjs-menu-title",innerHTML:pr(this.options_.title),tabIndex:-1}),n=new br(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var r=0;r<this.items.length;r++)e.addItem(this.items[r]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";return"vjs-menu-button "+(t+=!0===this.options_.inline?"-inline":"-popup")+" "+Ei.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return"vjs-menu-button "+(t+=!0===this.options_.inline?"-inline":"-popup")+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),Kn(s(),"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){p().isEventKey(e,"Esc")||p().isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),p().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(p().isEventKey(e,"Up")||p().isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(p().isEventKey(e,"Esc")||p().isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(p().isEventKey(e,"Esc")||p().isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),p().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Gt&&Zt())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","fal
1se"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(br);br.registerComponent("MenuButton",Xi);var Ji=function(e){function t(t,n){var r,i=n.tracks;if((r=e.call(this,t,n)||this).items.length<=1&&r.hide(),!i)return l(r);var o=Jn(l(r),r.update);return i.addEventListener("removetrack",o),i.addEventListener("addtrack",o),i.addEventListener("labelchange",o),r.player_.on("ready",o),r.player_.on("dispose",function(){i.removeEventListener("removetrack",o),i.removeEventListener("addtrack",o),i.removeEventListener("labelchange",o)}),r}return u(t,e),t}(Xi);br.registerComponent("TrackButton",Ji);var Zi=["Tab","Esc","Up","Down","Right","Left"],eo=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.el_.setAttribute("role",r.selectable?r.multiSelectable?"menuitemcheckbox":"menuitemradio":"menuitem"),r}u(t,e);var n=t.prototype;return n.createEl=function(t,n,r){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",_t({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),r)},n.handleKeyDown=function(t){Zi.some(function(e){return p().isEventKey(t,e)})||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(_i);br.registerComponent("MenuItem",eo);var to=function(e){function t(t,n){var r,o=n.track,a=t.textTracks();n.label=o.label||o.language||"Unknown",n.selected="showing"===o.mode,(r=e.call(this,t,n)||this).track=o,r.kinds=(n.kinds||[n.kind||r.track.kind]).filter(Boolean);var c,u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(l(r),t)},h=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleSelectedLanguageChange.apply(l(r),t)};return t.on(["loadstart","texttrackchange"],u),a.addEventListener("change",u),a.addEventListener("selectedlanguagechange",h),r.on("dispose",function(){t.off(["loadstart","texttrackchange"],u),a.removeEventListener("change",u),a.removeEventListener("selectedlanguagechange",h)}),void 0===a.onchange&&r.on(["tap","click"],function(){if("object"!=typeof i().Event)try{c=new(i().Event)("change")}catch(e){}c||(c=s().createEvent("Event")).initEvent("change",!0,!0),a.dispatchEvent(c)}),r.handleTracksChange(),r}u(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,r=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),r)for(var i=0;i<r.length;i++){var o=r[i];-1!==this.kinds.indexOf(o.kind)&&(o===n?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(eo);br.registerComponent("TextTrackMenuItem",to);var no=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.track.label=n.label?n.label:n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}u(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];
vendor: 5,924 bytes, line 1
1if(this.options_.kinds.indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(to);br.registerComponent("OffTextTrackMenuItem",no);var ro=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return u(t,e),t.prototype.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=to),this.label_&&(n=this.label_+" off"),e.push(new no(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<r.length;i++){var o=r[i];if(this.kinds_.indexOf(o.kind)>-1){var s=new t(this.player_,{track:o,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+o.kind+"-menu-item"),e.push(s)}}return e},t}(Ji);br.registerComponent("TextTrackButton",ro);var io=function(e){function t(t,n){var r,i=n.track,o=n.cue,s=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=o.text,n.selected=o.startTime<=s&&s<o.endTime,(r=e.call(this,t,n)||this).track=i,r.cue=o,i.addEventListener("cuechange",Jn(l(r),r.update)),r}u(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(eo);br.registerComponent("ChaptersTrackMenuItem",io);var oo=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(pr(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,r=t.length;n<r;n++){var i=new io(this.player_,{track:this.track_,cue:t[n]});e.push(i)}return e},t}(ro);oo.prototype.kind_="chapters",oo.prototype.controlText_="Chapters",br.registerComponent("ChaptersButton",oo);var so=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=t.textTracks(),s=Jn(l(i),i.handleTracksChange);return o.addEventListener("change",s),i.on("dispose",function(){o.removeEventListener("change",s)}),i}u(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,r=0,i=t.length;r<i;r++){var o=t[r];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ro);so.prototype.kind_="descriptions",so.prototype.controlText_="Descriptions",br.registerComponent("DescriptionsButton",so);var ao=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ro);ao.prototype.kind_="subtitles",ao.prototype.controlText_="Subtitles",br.registerComponent("SubtitlesButton",ao);var lo=function(e){function t(t,n){var r;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(r=e.call(this,t,n)||this).addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}return u(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(to);br.registerComponent("CaptionSettingsMenuItem",lo);var co=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new lo(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(ro);co.prototype.kind_="captions",co.prototype.controlText_="Captions",br.registerComponent("CaptionsButton",co);var uo=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);
1return"captions"===this.options_.track.kind&&(i+='\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n        <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n      "),e.prototype.createEl.call(this,t,_t({innerHTML:i+="</span>"},n),r)},t}(to);br.registerComponent("SubsCapsMenuItem",uo);var ho=function(e){function t(t,n){var r;return void 0===n&&(n={}),(r=e.call(this,t,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(pr(r.label_)),r}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new lo(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t,uo)},t}(ro);ho.prototype.kinds_=["captions","subtitles"],ho.prototype.controlText_="Subtitles",br.registerComponent("SubsCapsButton",ho);var Ao=function(e){function t(t,n){var r,i=n.track,o=t.audioTracks();n.label=i.label||i.language||"Unknown",n.selected=i.enabled,(r=e.call(this,t,n)||this).track=i,r.addClass("vjs-"+i.kind+"-menu-item");var s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(l(r),t)};return o.addEventListener("change",s),r.on("dispose",function(){o.removeEventListener("change",s)}),r}u(t,e);var n=t.prototype;return n.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(i+='\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n        <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n      "),e.prototype.createEl.call(this,t,_t({innerHTML:i+="</span>"},n),r)},n.handleClick=function(t){e.prototype.handleClick.call(this,t),this.track.enabled=!0},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(eo);br.registerComponent("AudioTrackMenuItem",Ao);var po=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++)e.push(new Ao(this.player_,{track:t[n],selectable:!0,multiSelectable:!1}));return e},t}(Ji);po.prototype.controlText_="Audio Track",br.registerComponent("AudioTrackButton",po);var fo=function(e){function t(t,n){var r,i=n.rate,o=parseFloat(i,10);return n.label=i,n.selected=o===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(r=e.call(this,t,n)||this).label=i,r.rate=o,r.on(t,"ratechange",function(e){return r.update(e)}),r}u(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(eo);fo.prototype.contentElType="button",br.registerComponent("PlaybackRateMenuItem",fo);var go=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).menuButton_.el_.setAttribute("aria-describedby",r.labelElId_),r.updateVisibility(),r.updateLabel(),r.on(t,"loadstart",function(e){return r.updateVisibility(e)}),r.on(t,"ratechange",function(e){return r.updateLabel(e)}),r.on(t,"playbackrateschange",function(e){return r.handlePlaybackRateschange(e)}),r}u(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=tn("div",{className:"vjs-playback-rate-value",id:this.labelElId_,innerHTML:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var e=this.playbackRates(),t=[],n=e.length-1;n>=0;n--)t.push(new fo(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>t){r=n[i];break}this.player().playbackRate(r)},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(Xi);go.prototype.controlText_="Playback Rate",br.registerComponent("PlaybackRateMenuButton",go);var mo=function(e){function t(){return e.apply(this,arguments)||this}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(br);br.registerComponent("Spacer",mo),br.registerComponent("CustomControlSpacer",function(e){function t(){return e.apply(this,arguments)||this}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML="\xa0",t},t}(mo));var vo=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(br);vo.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in s()&&vo.prototype.options_.children.splice(vo.prototype.options_.children.length-1,0,"pictureInPictureToggle"),br.registerComponent("ControlBar",vo);var yo=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"error",function(e){return r.open(e)}),r}u(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(kr);yo.prototype.options_=a({}
1,kr.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),br.registerComponent("ErrorDisplay",yo);var bo="vjs-text-track-settings",_o=["#000","Black"],wo=["#00F","Blue"],Co=["#0FF","Cyan"],So=["#0F0","Green"],Eo=["#F0F","Magenta"],Io=["#F00","Red"],xo=["#FFF","White"],To=["#FF0","Yellow"],Bo=["1","Opaque"],ko=["0.5","Semi-Transparent"],Po=["0","Transparent"],Oo={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[_o,xo,Io,So,wo,To,Eo,Co]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Bo,ko,Po]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[xo,_o,Io,So,wo,To,Eo,Co]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Bo,ko]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Po,ko,Bo]}};function Fo(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}Oo.windowColor.options=Oo.backgroundColor.options,br.registerComponent("TextTrackSettings",function(e){function t(t,n){var r;return n.temporary=!1,(r=e.call(this,t,n)||this).updateDisplay=r.updateDisplay.bind(l(r)),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=tn("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings(),r.close()}),r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults(),r.updateDisplay()}),bt(Oo,function(e){r.on(r.$(e.selector),"change",r.updateDisplay)}),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}u(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var r=this;void 0===t&&(t=""),void 0===n&&(n="label");var i=Oo[e],o=i.id.replace("%s",this.id_),s=[t,o].join(" ").trim();return["<"+n+' id="'+o+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(i.label),"</"+n+">",'<select aria-labelledby="'+s+'">'].concat(i.options.map(function(e){var t=o+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+s+" "+t+'">',r.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return tn("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return tn("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return tn("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e,t,n,r=this;return t=function(e,t,n){var i,o=Fo((i=r.$(t.selector)).options[i.options.selectedIndex].value,t.parser);return void 0!==o&&(e[n]=o),e},void 0===(n={})&&(n=0),yt(e=Oo).reduce(function(n,r){return t(n,e[r],r)},n)},n.setValues=function(e){var t=this;bt(Oo,function(n,r){!function(e,t,n){if(t)for(var r=0;r<e.options.length;
vendor: 10,056 bytes, line 1
1r++)if(Fo(e.options[r].value,n)===t){e.selectedIndex=r;break}}(t.$(n.selector),e[r],n.parser)})},n.setDefaults=function(){var e=this;bt(Oo,function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n})},n.restoreSettings=function(){var e;try{e=JSON.parse(i().localStorage.getItem(bo))}catch(t){gt.warn(t)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?i().localStorage.setItem(bo,JSON.stringify(e)):i().localStorage.removeItem(bo)}catch(t){gt.warn(t)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(kr)),br.registerComponent("ResizeManager",function(e){function t(t,n){var r,o=n.ResizeObserver||i().ResizeObserver;null===n.ResizeObserver&&(o=!1);var s=fr({createEl:!o,reportTouchActivity:!1},n);return(r=e.call(this,t,s)||this).ResizeObserver=n.ResizeObserver||i().ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=function(e,t,n,r){var o;void 0===r&&(r=i());var s=function(){var t=this,n=arguments,i=function(){o=null,i=null,e.apply(t,n)};r.clearTimeout(o),o=r.setTimeout(i,100)};return s.cancel=function(){r.clearTimeout(o),o=null},s}(function(){r.resizeHandler()},0,0,l(r)),o?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(t.el())):(r.loadListener_=function(){if(r.el_&&r.el_.contentWindow){var e=r.debouncedHandler_,t=r.unloadListener_=function(){Kn(this,"resize",e),Kn(this,"unload",t),t=null};qn(r.el_.contentWindow,"unload",t),qn(r.el_.contentWindow,"resize",e)}},r.one("load",r.loadListener_)),r}u(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(br));var Lo={trackingThreshold:30,liveTolerance:15};br.registerComponent("LiveTracker",function(e){function t(t,n){var r,i=fr(Lo,n,{createEl:!1});return(r=e.call(this,t,i)||this).handleVisibilityChange_=function(e){return r.handleVisibilityChange(e)},r.trackLiveHandler_=function(){return r.trackLive_()},r.handlePlay_=function(e){return r.handlePlay(e)},r.handleFirstTimeupdate_=function(e){return r.handleFirstTimeupdate(e)},r.handleSeeked_=function(e){return r.handleSeeked(e)},r.seekToLiveEdge_=function(e){return r.seekToLiveEdge(e)},r.reset_(),r.on(r.player_,"durationchange",function(e){return r.handleDurationchange(e)}),r.one(r.player_,"canplay",function(){return r.toggleTracking()}),jt&&"hidden"in s()&&"visibilityState"in s()&&r.on(s(),"visibilitychange",r.handleVisibilityChange_),r}u(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(s().hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(i().performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var r=this.liveCurrentTime(),o=this.player_.currentTime(),s=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-o)>this.options_.liveTolerance;this.timeupdateSeen_&&r!==1/0||(s=!1),s!==this.behindLiveEdge_&&(this.behindLiveEdge_=s,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Xn),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(s(),"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(br));var Mo,Do=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),r=[],i="";if(!n.length)return!1;for(var o=0;o<n.length;o++){var s=n[o].src;s&&-1===r.indexOf(s)&&r.push(s)}return!!r.length&&(1===r.length&&(i=r[0]),e.triggerSourceset(i),!0)},No=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=s().createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=s().createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",i().Element.prototype.appendChild.call(this,n),this.innerHTML}}),Ro=function(e,t){for(var n={},r=0;r<e.length&&!((n=Object.getOwnPropertyDescriptor(e[r],t))&&n.set&&n.get);r++);return n.enumerable=!0,n.configurable=!0,n},Uo=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},r=function(e){return Ro([e.el(),i().HTMLMediaElement.prototype,i().Element.prototype,No],"innerHTML")}(e),o=function(n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=n.apply(t,i);return Do(e),s}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(n[e]=t[e],t[e]=o(n[e]))}),Object.defineProperty(t,"innerHTML",fr(r,{set:o(r.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach(function(e){t[e]=n[e]}),Object.defineProperty(t,"innerHTML",r)},e.one("sourceset",t.resetSourceWatch_)}},jo=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Gr(i().Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return i().Element.prototype.setAttribute.call(this,"src",e),e}}),Qo=function(e,t,n,r){void 0===r&&(r=!0);var i=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},o={configurable:!0,enumerable:!0,get:function(){var e=n();return i(e),e}};return r&&(o.set=i),Object.defineProperty(e,t,o)},Ho=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i=t.source,o=!1;if(i&&(r.el_.currentSrc!==i.src||t.tag&&3===t.tag.initNetworkState_)?r.setSource(i):r.handleLateInit_(r.el_),t.enableSourceset&&r.setupSourcesetHandling_(),r.isScrubbing_=!1,r.el_.hasChildNodes()){for(var s=r.el_.childNodes,a=s.length,l=[];a--;){var c=s[a];"track"===c.nodeName.toLowerCase()&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(c),r.remoteTextTracks().addTrack(c.track),r.textTracks().addTrack(c.track),o||r.el_.hasAttribute("crossorigin")||!Wr(c.src)||(o=!0)):l.push(c))}for(var u=0;u<l.length;u++)r.el_.removeChild(l[u])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&o&&gt.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),r.restoreMetadataTracksInIOSNativePlayer_(),(Vt||Kt||Mt)&&!0===t.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}u(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.dis
1poseMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){!function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return Ro([e.el(),i().HTMLMediaElement.prototype,jo],"src")}(e),r=t.setAttribute,o=t.load;Object.defineProperty(t,"src",fr(n,{set:function(r){var i=n.set.call(t,r);return e.triggerSourceset(t.src),i}})),t.setAttribute=function(n,i){var o=r.call(t,n,i);return/src/i.test(n)&&e.triggerSourceset(t.src),o},t.load=function(){var n=o.call(t);return Do(e)||(e.triggerSourceset(""),Uo(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Do(e)||Uo(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=o,t.setAttribute=r,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}}(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var r=t[n];"metadata"===r.kind&&e.push({track:r,storedMode:r.mode})}};n(),t.addEventListener("change",n),this.on("dispose",function(){return t.removeEventListener("change",n)});var r=function n(){for(var r=0;r<e.length;r++){var i=e[r];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",n),t.removeEventListener("change",r),t.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",r)})},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var r=e.toLowerCase();this[r+"TracksListeners_"]&&Object.keys(this[r+"TracksListeners_"]).forEach(function(e){n.el()[r+"Tracks"].removeEventListener(e,n[r+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[r+"TracksListeners_"]=null,this.proxyNativeTracksForType_(r)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=ni[e],r=this.el()[n.getterName],i=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var o={change:function(n){var r={type:"change",target:i,currentTarget:i,srcElement:i};i.trigger(r),"text"===e&&t[ri.remoteText.getterName]().trigger(r)},addtrack:function(e){i.addTrack(e.track)},removetrack:function(e){i.removeTrack(e.track)}},s=function(){for(var e=[],t=0;t<i.length;t++){for(var n=!1,o=0;o<r.length;o++)if(r[o]===i[t]){n=!0;break}n||e.push(i[t])}for(;e.length;)i.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=o,Object.keys(o).forEach(function(e){var n=o[e];r.addEventListener(e,n),t.on("dispose",function(t){return r.removeEventListener(e,n)})}),this.on("loadstart",s),this.on("dispose",function(e){return t.off("loadstart",s)})}},n.proxyNativeTracks_=function(){var e=this;ni.names.forEach(function(t){e.proxyNativeTracksForType_(t)})},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=s().createElement("video");var r=fr({},this.options_.tag&&un(this.options_.tag));Vt&&!0===this.options_.nativeControlsForTouch||delete r.controls,cn(e,_t(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&dn(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var i=["loop","muted","playsinline","autoplay"],o=0;o<i.length;o++){var a=i[o],l=this.options_[a];void 0!==l&&(l?dn(e,a,a):An(e,a),e[a]=l)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var r=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),t||this.trigger("loadstart")})}var i=["loadstart"];i.push("loadedmetadata"),e.readyState>=2&&i.push("loadeddata"),e.readyState>=3&&i.push("canplay"),e.readyState>
1=4&&i.push("canplaythrough"),this.ready(function(){i.forEach(function(e){this.trigger(e)},this)})}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&zt?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){gt(t,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;return this.el_.duration===1/0&&Ft&&Rt&&0===this.el_.currentTime?(this.on("timeupdate",function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN):this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=i().navigator&&i().navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Tr(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,r):e.prototype.addTextTrack.call(this,t,n,r)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=s().createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)t!==n[r]&&t!==n[r].track||this.el().removeChild(n[r])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),i().performance&&"function"==typeof i().performance.now?e.creationTime=i().performance.now():i().performance&&i().performance.timing&&"number"==typeof i().performance.timing.navigationStart&&(e.creationTime=i().Date.now()-i().performance.timing.navigationStart),e},t}(oi);Qo(Ho,"TEST_VID",function(){if(Xt()){var e=s().createElement("video"),t=s().createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}),Ho.isSupported=function(){try{Ho.TEST_VID.volume=.5}catch(e){return!1}return!(!Ho.TEST_VID||!Ho.TEST_VID.canPlayType)},Ho.canPlayType=function(e){return Ho.TEST_VID.canPlayType(e)},Ho.canPlaySource=function(e,t){return Ho.canPlayType(e.type)},Ho.canControlVolume=function(){try{var e=Ho.TEST_VID.volume;return Ho.TEST_VID.volume=e/2+.1,e!==Ho.TEST_VID.volume}catch(t){return!1}},Ho.canMuteVolume=function(){try{var e=Ho.TEST_VID.muted;return Ho.TEST_VID.muted=!e,Ho.TEST_VID.muted?dn(Ho.TEST_VID,"muted","muted"):An(Ho.TEST_VID,"muted"),e!==Ho.TEST_VID.muted}catch(t){return!1}},Ho.canControlPlaybackRate=function(){if(Ft&&Rt&&Ut<58)return!1;try{var e=Ho.TEST_VID.playbackRate;return Ho.TEST_VID.playbackRate=e/2+.1,e!==Ho.TEST_VID.playbackRate}catch(t){return!1}},Ho.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(s().createElement("video"),"src",{get:e,set:e}),Object.defineProperty(s().createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(s().createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(s().createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},Ho.supportsNativeTextTracks=function(){return zt||Gt&&Rt},Ho.supportsNativeVideoTracks=function(){return!(!Ho.TEST_VID||!Ho.TEST_VID.videoTracks)},Ho.supportsNativeAudioTracks=function(){return!(!Ho.TEST_VID||!Ho.TEST_VID.audioTracks)},Ho.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEac
vendor: 4,775 bytes, line 1
1h(function(e){var t=e[1];Qo(Ho.prototype,e[0],function(){return Ho[t]()},!0)}),Ho.prototype.movingMediaElementInDOM=!Gt,Ho.prototype.featuresFullscreenResize=!0,Ho.prototype.featuresProgressEvents=!0,Ho.prototype.featuresTimeupdateEvents=!0,Ho.patchCanPlayType=function(){Lt>=4&&!Dt&&!Rt&&(Mo=Ho.TEST_VID&&Ho.TEST_VID.constructor.prototype.canPlayType,Ho.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":Mo.call(this,e)})},Ho.unpatchCanPlayType=function(){var e=Ho.TEST_VID.constructor.prototype.canPlayType;return Mo&&(Ho.TEST_VID.constructor.prototype.canPlayType=Mo),e},Ho.patchCanPlayType(),Ho.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(t){}}()}},Ho.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Ho.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Ho.prototype["set"+pr(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){Ho.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){Ho.prototype["set"+pr(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Ho.prototype[e]=function(){return this.el_[e]()}}),oi.withSourceHandlers(Ho),Ho.nativeSourceHandler={},Ho.nativeSourceHandler.canPlayType=function(e){try{return Ho.TEST_VID.canPlayType(e)}catch(t){return""}},Ho.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Ho.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=zr(e.src);return Ho.nativeSourceHandler.canPlayType("video/"+n)}return""},Ho.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Ho.nativeSourceHandler.dispose=function(){},Ho.registerSourceHandler(Ho.nativeSourceHandler),oi.registerTech("Html5",Ho);var Vo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],qo={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Ko=["tiny","xsmall","small","medium","large","xlarge","huge"],Go={};Ko.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Go[e]="vjs-layout-"+t});var zo={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Wo=function(e){function t(n,r,i){var o;if(n.id=n.id||r.id||"vjs_video_"+Nn(),(r=_t(t.getTagSettings(n),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var a=n.closest("[lang]");a&&a.getAttribute&&(r.language=a.getAttribute("lang"))}else for(var c=n;c&&1===c.nodeType;){if(un(c).hasOwnProperty("lang")){r.language=c.getAttribute("lang");break}c=c.parentNode}if((o=e.call(this,null,r,i)||this).boundDocumentFullscreenChange_=function(e){return o.documentFullscreenChange_(e)},o.boundFullWindowOnEscKey_=function(e){return o.fullWindowOnEscKey(e)},o.boundUpdateStyleEl_=function(e){return o.updateStyleEl_(e)},o.boundApplyInitTime_=function(e){return o.applyInitTime_(e)},o.boundUpdateCurrentBreakpoint_=function(e){return o.updateCurrentBreakpoint_(e)},o.boundHandleTechClick_=function(e){return o.handleTechClick_(e)},o.boundHandleTechDoubleClick_=function(e){return o.handleTechDoubleClick_(e)},o.boundHandleTechTouchStart_=function(e){return o.handleTechTouchStart_(e)},o.boundHandleTechTouchMove_=function(e){return o.handleTechTouchMove_(e)},o.boundHandleTechTouchEnd_=function(e){return o.handleTechTouchEnd_(e)},o.boundHandleTechTap_=function(e){return o.handleTechTap_(e)},o.isFullscreen_=!1,o.log=mt(o.id_),o.fsApi_=ut,o.isPosterFromTech_=!1,o.queuedCallbacks_=[],o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,o.debugEnabled_=!1,!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(o.tag=n,o.tagAttributes=n&&un(n),o.language(o.options_.language),r.languages){var u={};
1Object.getOwnPropertyNames(r.languages).forEach(function(e){u[e.toLowerCase()]=r.languages[e]}),o.languages_=u}else o.languages_=t.prototype.options_.languages;o.resetCache_(),o.poster_=r.poster||"",o.controls_=!!r.controls,n.controls=!1,n.removeAttribute("controls"),o.changingSrc_=!1,o.playCallbacks_=[],o.playTerminatedQueue_=[],n.hasAttribute("autoplay")?o.autoplay(!0):o.autoplay(o.options_.autoplay),r.plugins&&Object.keys(r.plugins).forEach(function(e){if("function"!=typeof o[e])throw new Error('plugin "'+e+'" does not exist')}),o.scrubbing_=!1,o.el_=o.createEl(),ur(l(o),{eventBusKey:"el_"}),o.fsApi_.requestFullscreen&&(qn(s(),o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_),o.on(o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_)),o.fluid_&&o.on(["playerreset","resize"],o.boundUpdateStyleEl_);var h=fr(o.options_);r.plugins&&Object.keys(r.plugins).forEach(function(e){o[e](r.plugins[e])}),r.debug&&o.debug(!0),o.options_.playerOptions=h,o.middleware_=[],o.playbackRates(r.playbackRates),o.initChildren(),o.isAudio("audio"===n.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&&o.addClass("vjs-audio"),o.flexNotSupported_()&&o.addClass("vjs-no-flex"),Vt&&o.addClass("vjs-touch-enabled"),Gt||o.addClass("vjs-workinghover"),t.players[o.id_]=l(o);var d=ct.split(".")[0];return o.addClass("vjs-v"+d),o.userActive(!0),o.reportUserActivity(),o.one("play",function(e){return o.listenForUserActivity_(e)}),o.on("stageclick",function(e){return o.handleStageClick_(e)}),o.on("keydown",function(e){return o.handleKeyDown(e)}),o.on("languagechange",function(e){return o.handleLanguagechange(e)}),o.breakpoints(o.options_.breakpoints),o.responsive(o.options_.responsive),o}u(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),Kn(s(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Kn(s(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),ai[this.id()]=null,ii.names.forEach(function(e){var t=n[ii[e].getterName]();t&&t.off&&t.off()}),e.prototype.dispose.call(this)},n.createEl=function(){var t,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),o="video-js"===this.tag.tagName.toLowerCase();r?t=this.el_=n.parentNode:o||(t=this.el_=e.prototype.createEl.call(this,"div"));var a=un(n);if(o){for(t=this.el_=n,n=this.tag=s().createElement("video");t.children.length;)n.appendChild(t.firstChild);on(t,"video-js")||sn(t,"video-js"),t.appendChild(n),r=this.playerElIngest_=t,Object.keys(t).forEach(function(e){try{n[e]=t[e]}catch(r){}})}if(n.setAttribute("tabindex","-1"),a.tabindex="-1",(jt||Rt&&Ht)&&(n.setAttribute("role","application"),a.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach(function(e){o&&"class"===e||t.setAttribute(e,a[e]),o&&n.setAttribute(e,a[e])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==i().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Ln("vjs-styles-dimensions");var l=In(".vjs-styles-defaults"),c=In("head");c.insertBefore(this.styleEl_,l?l.nextSibling:c.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var u=n.getElementsByTagName("a"),h=0;h<u.length;h++){var d=u.item(h);sn(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!r&&n.parentNode.insertBefore(t,n),r
vendor: 4,061 bytes, line 1
1n(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_=t,t},n.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):gt.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(t);isNaN(r)?gt.error('Improper value "'+t+'" supplied for for '+e):(this[n]=r,this.updateStyleEl_())},n.fluid=function(e){var t,n,r=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,nr(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),n=function(){r.on(["playerreset","resize"],r.boundUpdateStyleEl_)},nr(t=this)?n():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==i().VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Mn(this.styleEl_,"\n      ."+n+" {\n        width: "+e+"px;\n        height: "+t+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+100*o+"%;\n      }\n    ")}else{var s="number"==typeof this.width_?this.width_:this.options_.width,a="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(s>=0&&(l.width=s),a>=0&&(l.height=a))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var r=pr(e),i=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==r&&this.tag&&(oi.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var o=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(o=!1);var s={source:t,autoplay:o,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+i+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};ii.names.forEach(function(e){var t=ii[e];s[t.getterName]=n[t.privateName]}),_t(s,this.options_[r]),_t(s,this.options_[i]),_t(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var a,l=oi.getTech(e);if(!l)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new l(s),this.tech_.ready(Jn(this,this.handleTechReady_),!0),a=this.tech_,(this.textTracksJson_||[]).forEach(function(e){var t=a.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return t.addCue(e)})}),a.textTracks(),Vo.forEach(function(e){n.on(n.tech_,e,function(t){return n["handleTech"+pr(e)+"_"](t)})}
1),Object.keys(qo).forEach(function(e){n.on(n.tech_,e,function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+qo[e]+"_"].bind(n),event:t}):n["handleTech"+qo[e]+"_"](t)})}),this.on(this.tech_,"loadstart",function(e){return n.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return n.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return n.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return n.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return n.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return n.handleTechPlay_(e)}),this.on(this.tech_,"firstplay",function(e){return n.handleTechFirstPlay_(e)}),this.on(this.tech_,"pause",function(e){return n.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return n.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return n.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return n.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return n.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return n.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return n.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return n.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return n.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return n.handleTechRateChange_(e)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||rn(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e,t,n,r=this;ii.names.forEach(function(e){var t=ii[e];r[t.privateName]=r[t.getterName]()}),this.textTracksJson_=(t=(e=this.tech_).$$("track"),n=Array.prototype.map.call(t,function(e){return e.track}),Array.prototype.map.call(t,function(e){var t=Br(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===n.indexOf(e)}).map(Br))),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&gt.warn("Using the tech directly can be dangerous. I hope you know 
1what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mouseup",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"mouseup",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,r=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var r=t.play();if(xr(r))return r.catch(function(e){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():r():xr(n=this.play())&&(n=n.catch(r)),xr(n))return n.then(function(){t.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){t.trigger({type:"autoplay-failure",autoplay:e})})}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter(function(e){return e.src===t});if(n.length)return n[0].type;for(var r=e.$$("source"),i=0;i<r.length;i++){var o=r[i];if(o.type&&o.src&&o.src===t)return o.type}return mi(t)}(this,t)),this.cache_.source=fr({},e,{src:t,type:n});for(var r=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),i=[],o=this.$$("source"),s=[],a=0;a<o.length;a++){var l=un(o[a]);i.push(l),l.src&&l.src===t&&s.push(l.src)}s.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},r=this.currentSource().src,i=e.src;r&&!/^blob:/.test(r)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==r)&&(n=function(){}),n(i),e.src||this.tech_.any(["sourceset","loadstart"],function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))})},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(gt.warn("Passing the `starttime` option to the player will be deprecated 
1in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){Sn(e)&&this.controls_&&(this.paused()?Tr(this.play()):this.pause())},n.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),r=s()[this.fsApi_.fullscreenElement]===n;!r&&n.matches?r=n.matches(":"+this.fsApi_.fullscreen):!r&&n.msMatchesSelector&&(r=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}},n.handleTechFullscreenChange_=function(e,t){t&&(t.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(e,t){this.ready(function(){if(e in di)return function(e,t,n,r){return t[n](e.reduce(pi(n),r))}(this.middleware_,this.tech_,e,t);if(e in Ai)return ui(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw gt(n),n}},!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in hi)return function(e,t,n){return e.reduceRight(pi(n),t[n]())}(this.middleware_,this.tech_,e);if(e in Ai)return ui(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw gt("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw gt("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw gt(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||i().Promise;return t?new t(function(t){e.play_(t)}):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=Tr),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!zt&&!Gt||this.load());var r=this.techGet_("play");null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Cr(0,0)},n.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Cr(0,0)),e},n.bufferedPercent=function(){return Sr(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||i().Promise;if(t){var n=this;return new t(function(t,r){function i(){n.off("fullscreenerror",s),n.off("fullscreenchange",o)}function o(){i(),t()}function s(e,t){i(),r(t)}n.one("fullscreenchange",o),n.one("fullscreenerror",s);var a=n.requestFullscreenHelper_(e);a&&(a.then(i,i),a.then(t,r))})}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var r=this.el_[this.fsApi_.requestFullscreen](t);return r&&r.then(function(){return n.isFullscreen(!0)},function(){return n.isFullscreen(!1)}),r}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e=this.options_.Promise||i().Promise;if(e){var t=this;return new e(function(e,n){function r(){t.off("fullscreenerror",o),t.off("fullscreenchange",i
1)}function i(){r(),e()}function o(e,t){r(),n(t)}t.one("fullscreenchange",i),t.one("fullscreenerror",o);var s=t.exitFullscreenHelper_();s&&(s.then(r,r),s.then(e,n))})}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=s()[this.fsApi_.exitFullscreen]();return t&&Tr(t.then(function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=s().documentElement.style.overflow,qn(s(),"keydown",this.boundFullWindowOnEscKey_),s().documentElement.style.overflow="hidden",sn(s().body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){p().isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Kn(s(),"keydown",this.boundFullWindowOnEscKey_),s().documentElement.style.overflow=this.docOrigOverflow,an(s().body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in s()&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in s())return s().exitPictureInPicture()},n.handleKeyDown=function(e){var t,n,r=this.options_.userActions;r&&r.hotkeys&&(n=(t=this.el_.ownerDocument.activeElement).tagName.toLowerCase(),t.isContentEditable||("input"===n?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type):-1!==["textarea"].indexOf(n))||("function"==typeof r.hotkeys?r.hotkeys.call(this,e):this.handleHotkeys(e)))},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,r=t.muteKey,i=void 0===r?function(e){return p().isEventKey(e,"m")}:r,o=t.playPauseKey,a=void 0===o?function(e){return p().isEventKey(e,"k")||p().isEventKey(e,"Space")}:o;if((void 0===n?function(e){return p().isEventKey(e,"f")}:n).call(this,e)){e.preventDefault(),e.stopPropagation();var l=br.getComponent("FullscreenToggle");!1!==s()[this.fsApi_.fullscreenEnabled]&&l.prototype.handleClick.call(this,e)}else i.call(this,e)?(e.preventDefault(),e.stopPropagation(),br.getComponent("MuteToggle").prototype.handleClick.call(this,e)):a.call(this,e)&&(e.preventDefault(),e.stopPropagation(),br.getComponent("PlayToggle").prototype.handleClick.call(this,e))},n.canPlayType=function(e){for(var t,n=0,r=this.options_.techOrder;n<r.length;n++){var i=r[n],o=oi.getTech(i);if(o||(o=br.getComponent(i)),o){if(o.isSupported()&&(t=o.canPlayType(e)))return t}else gt.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n=this,r=this.options_.techOrder.map(function(e){return[e,oi.getTech(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(gt.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(e,t,n){var r;return e.some(function(e){return t.some(function(t){if(r=n(e,t))return!0})}),r},o=function(e,t){var r=e[0];if(e[1].canPlaySource(t,n.options_[r.toLowerCase()]))return{source:t,tech:r}};return(this.options_.sourceOrder?i(e,r,(t=o,function(e,n){return t(n,e)})):i(r,e,o))||!1},n.handleSrc_=function(e,t){var n=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var r=vi(e);if(r.length){if(this.changingSrc_=!0,t||(this.cache_.sources=r),this.updateSourceCaches_(r[0]),ci(this,r[0],function(e,i){var o;if(n.middleware_=i,t||(n.cache_.sources=r),n.updateSourceCaches_(e),n.src_(e))return r.length>1?n.handleSrc_(r.slice(1)):(n.changingSrc_=!1,n.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void n.triggerReady());
1o=n.tech_,i.forEach(function(e){return e.setTech&&e.setTech(o)})}),this.options_.retryOnError&&r.length>1){var i=function(){n.error(null),n.handleSrc_(r.slice(1),!0)},o=function(){n.off("error",i)};this.one("error",i),this.one("playing",o),this.resetRetryOnError_=function(){n.off("error",i),n.off("playing",o)}}}else this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},n.src=function(e){return this.handleSrc_(e,!1)},n.src_=function(e){var t,n=this,r=this.selectSource([e]);return!r||(t=this.techName_,pr(r.tech)!==pr(t)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){n.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||i().Promise;this.paused()||!t?this.doReset_():Tr(this.play().then(function(){return e.doReset_()}))},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),nr(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;this.controls_!==(e=!!e)&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;this.usingNativeControls_!==(e=!!e)&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-control
1s"),this.trigger("usingcustomcontrols")))},n.error=function(e){if(void 0===e)return this.error_||null;if(this.options_.suppressNotSupportedError&&e&&4===e.code){var t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",function(){this.off(["click","touchstart"],t)})}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Er(e),this.addClass("vjs-error"),gt.error("(CODE:"+this.error_.code+" "+Er.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error")},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,r=Jn(this,this.reportUserActivity),i=function(t){r(),this.clearInterval(e)};this.on("mousedown",function(){r(),this.clearInterval(e),e=this.setInterval(r,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())}),this.on("mouseup",i),this.on("mouseleave",i);var o,s=this.getChild("controlBar");!s||Gt||Ft||(s.on("mouseenter",function(e){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout,this.player().options_.inactivityTimeout=0}),s.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),nr(this)&&this.trigger("languagechange"))},n.languages=function(){return fr(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=fr(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];(r=fr(r)).player=void 0,e.tracks[n]=r}return e},n.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var r=new kr(this,t);return this.addChild(r),r.on("dispose",function(){n.removeChild(r)}),r.open(),r},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<Ko.length;n++){var r=Ko[n];if(t<=this.breakpoints_[r]){if(e===r)return;e&&this.removeClass(Go[e]),this.addClass(Go[r]),this.breakpoint_=r;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=_t({},zo,e),this.updateCurrentBreakpoint_()),_t(this.breakpoints_)},n.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return Go[this.breakpoint_]||""},n.loadMedia=function(e,t){var n=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=fr(e);var r=this.cache_.media,i=r.poster,o=r.src,s=r.textTracks;!r.artwork&&i&&(this.cache_.media.artwork=[{src:i,type:mi(i)}
1]),o&&this.src(o),i&&this.poster(i),Array.isArray(s)&&s.forEach(function(e){return n.addRemoteTextTrack(e,!1)}),this.ready(t)}},n.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:mi(t.poster)}]),t}return fr(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=un(e),r=n["data-setup"];if(on(e,"vjs-fill")&&(n.fill=!0),on(e,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=d()(r||"{}"),o=i[0],s=i[1];o&&gt.error(o),_t(n,s)}if(_t(t,n),e.hasChildNodes())for(var a=e.childNodes,l=0,c=a.length;l<c;l++){var u=a[l],h=u.nodeName.toLowerCase();"source"===h?t.sources.push(un(u)):"track"===h&&t.tracks.push(un(u))}return t},n.flexNotSupported_=function(){var e=s().createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},n.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},n.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(function(e){return"number"==typeof e})&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},t}(br);ii.names.forEach(function(e){var t=ii[e];Wo.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),Wo.prototype.crossorigin=Wo.prototype.crossOrigin,Wo.players={};var $o=i().navigator;Wo.prototype.options_={techOrder:oi.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:$o&&($o.languages&&$o.languages[0]||$o.userLanguage||$o.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){Wo.prototype[e]=function(){return this.techGet_(e)}}),Vo.forEach(function(e){Wo.prototype["handleTech"+pr(e)+"_"]=function(){return this.trigger(e)}}),br.registerComponent("Player",Wo);var Yo="plugin",Xo={},Jo=function(e){return Xo.hasOwnProperty(e)},Zo=function(e){return Jo(e)?Xo[e]:void 0},es=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},ts=function(e,t,n){var r=(n?"before":"")+"pluginsetup";e.trigger(r,t),e.trigger(r+":"+t.name,t)},ns=function(e,t){return t.prototype.name=e,function(){ts(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=b(t,[this].concat(r));return this[e]=function(){return o},ts(this,o.getEventHash()),o}},rs=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),ur(this),delete this.trigger,dr(this,this.constructor.defaultState),es(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),Gn(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=ns(e,Xo[e])},e.isBasic=function(t){var n="string"==typeof t?Zo(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(Jo(t))gt.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Wo.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return Xo[t]=n,t!==Yo&&(Wo.prototype[t]=e.isBasic(n)?function(e,t){var n=function(){ts(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return es(this,e),ts(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n}(t,n):ns(t,n)),n},e.deregisterPlugin=function(e){if(e===Yo)throw new Error("Cannot de-register base plugin.");Jo(e)&&(delete Xo[e],delete Wo.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(Xo)),e.forEach(function(e){var n=Zo(e);n&&((t=t||{})[e]=n)}),t},e.getPluginVersion=function(e){var t=Zo(e);return t&&t.VERSION||""},e}();rs.getPlugin=Zo,rs.BASE_PLUGIN_NAME=Yo,rs.registerPlugin(Yo,rs),Wo.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},Wo.prototype.hasPlugin=function(e){return!!Jo(e)};var is=function(e){return 0===e.indexOf("#")?e.slice(1):e};function os(e,t,n){var r=os.getPlayer(e);if(r)return t&&gt.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof e?In("#"+is(e)):e;if(!Jt(i))throw new TypeError("The element or ID supplied is not val
1id. (videojs)");i.ownerDocument.defaultView&&i.ownerDocument.body.contains(i)||gt.warn("The element supplied is not included in the DOM"),t=t||{},os.hooks("beforesetup").forEach(function(e){var n=e(i,fr(t));wt(n)&&!Array.isArray(n)?t=fr(t,n):gt.error("please return an object in beforesetup hooks")});var o=br.getComponent("Player");return r=new o(i,t,n),os.hooks("setup").forEach(function(e){return e(r)}),r}if(os.hooks_={},os.hooks=function(e,t){return os.hooks_[e]=os.hooks_[e]||[],t&&(os.hooks_[e]=os.hooks_[e].concat(t)),os.hooks_[e]},os.hook=function(e,t){os.hooks(e,t)},os.hookOnce=function(e,t){os.hooks(e,[].concat(t).map(function(t){return function n(){return os.removeHook(e,n),t.apply(void 0,arguments)}}))},os.removeHook=function(e,t){var n=os.hooks(e).indexOf(t);return!(n<=-1||((os.hooks_[e]=os.hooks_[e].slice()).splice(n,1),0))},!0!==i().VIDEOJS_NO_DYNAMIC_STYLE&&Xt()){var ss=In(".vjs-styles-defaults");if(!ss){ss=Ln("vjs-styles-defaults");var as=In("head");as&&as.insertBefore(ss,as.firstChild),Mn(ss,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}Pn(1,os),os.VERSION=ct,os.options=Wo.prototype.options_,os.getPlayers=function(){return Wo.players},os.getPlayer=function(e){var t,n=Wo.players;if("string"==typeof e){var r=is(e),i=n[r];if(i)return i;t=In("#"+r)}else t=e;if(Jt(t)){var o=t.player,s=t.playerId;if(o||n[s])return o||n[s]}},os.getAllPlayers=function(){return Object.keys(Wo.players).map(function(e){return Wo.players[e]}).filter(Boolean)},os.players=Wo.players,os.getComponent=br.getComponent,os.registerComponent=function(e,t){oi.isTech(t)&&gt.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),br.registerComponent.call(br,e,t)},os.getTech=oi.getTech,os.registerTech=oi.registerTech,os.use=function(e,t){si[e]=si[e]||[],si[e].push(t)},Object.defineProperty(os,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(os.middleware,"TERMINATOR",{value:li,writeable:!1,enumerable:!0}),os.browser=Wt,os.TOUCH_ENABLED=Vt,os.extend=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},r={};for(var i in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(n,e),e&&(n.super_=e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},os.mergeOptions=fr,os.bind=Jn,os.registerPlugin=rs.registerPlugin,os.deregisterPlugin=rs.deregisterPlugin,os.plugin=function(e,t){return gt.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),rs.registerPlugin(e,t)},os.getPlugins=rs.getPlugins,os.getPlugin=rs.getPlugin,os.getPluginVersion=rs.getPluginVersion,os.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),(os.options.languages=fr(os.options.languages,((n={})[e]=t,n)))[e]},os.log=gt,os.createLogger=mt,os.createTimeRange=os.createTimeRanges=Cr,os.formatTime=ki,os.setFormatTime=function(e){Bi=e},os.resetFormatTime=function(){Bi=Ti},os.parseUrl=Kr,os.isCrossOrigin=Wr,os.EventTarget=er,os.on=qn,os.one=zn,os.off=Kn,os.trigger=Gn,os.xhr=g(),os.TextTrack=Jr,os.AudioTrack=Zr,os.VideoTrack=ei,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){os[e]=function(){return gt.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Tn[e].apply(null,arguments)}}),os.computedStyle=St,os.dom=Tn,os.url=$r,os.defineLazyProperty=Qo,os.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});var ls=S,cs=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},us=function(e){return os.log.debug?os.log.debug.bind(os,"VHS:",e+" >"):function(){}},hs=1/30,ds=.1,As=function(e,t){var n,r=[];if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&r.push([e.start(n),e.end(n)]);return os.createTimeRanges(r)},ps=function(e,t){return As(e,function(e,n){return e-ds<=t&&n+ds>=t})},fs=function(e,t){return As(e,function(e){return e-hs>=t})},gs=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},ms=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},vs=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},ys=os.createTimeRange,bs=function(e){return(e.segments||[]).reduce(function(e,t,n){return t.parts?t.parts.forEac
1h(function(r,i){e.push({duration:r.duration,segmentIndex:n,partIndex:i,part:r,segment:t})}):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e},[])},_s=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},ws=function(e){var t=e.preloadSegment;if(t){var n=t.parts;return(t.preloadHints||[]).reduce(function(e,t){return e+("PART"===t.type?1:0)},0)+(n&&n.length?n.length:0)}},Cs=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=_s(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},Ss=function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var r=function(e,t){var n=0,r=t-e.mediaSequence,i=e.segments[r];if(i){if(void 0!==i.start)return{result:i.start,precise:!0};if(void 0!==i.end)return{result:i.end-i.duration,precise:!0}}for(;r--;){if(void 0!==(i=e.segments[r]).end)return{result:n+i.end,precise:!0};if(n+=i.duration,void 0!==i.start)return{result:n+i.start,precise:!0}}return{result:n,precise:!1}}(e,t);if(r.precise)return r.result;var i=function(e,t){for(var n,r=0,i=t-e.mediaSequence;i<e.segments.length;i++){if(void 0!==(n=e.segments[i]).start)return{result:n.start-r,precise:!0};if(r+=n.duration,void 0!==n.end)return{result:n.end-r,precise:!0}}return{result:-1,precise:!1}}(e,t);return i.precise?i.result:r.result+n},Es=function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return i()[1/0]}return Ss(e,t,n)},Is=function(e){var t=e.defaultDuration,n=e.durationList,r=e.startIndex,i=e.endIndex,o=0;if(r>i){var s=[i,r];r=s[0],i=s[1]}if(r<0){for(var a=r;a<Math.min(0,i);a++)o+=t;r=0}for(var l=r;l<i;l++)o+=n[l].duration;return o},xs=function(e,t,n,r){if(!e||!e.segments)return null;if(e.endList)return Es(e);if(null===t)return null;var i=Ss(e,e.mediaSequence+e.segments.length,t=t||0);return n&&(i-=r="number"==typeof r?r:Cs(null,e)),Math.max(0,i)},Ts=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},Bs=function(e){return e.excludeUntil&&e.excludeUntil===1/0},ks=function(e){var t=Ts(e);return!e.disabled&&!t},Ps=function(e,t){return t.attributes&&t.attributes[e]},Os=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!ks(e)&&(e.attributes.BANDWIDTH||0)<n}).length},Fs=function(e,t){return!(!e&&!t||!e&&t||e&&!t||e!==t&&(!e.id||!t.id||e.id!==t.id)&&(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)&&(!e.uri||!t.uri||e.uri!==t.uri))},Ls=function(e,t){var n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},r=!1;for(var i in n){for(var o in n[i])if(r=t(n[i][o]))break;if(r)break}return!!r},Ms=function(e){if(!e||!e.playlists||!e.playlists.length)return Ls(e,function(e){return e.playlists&&e.playlists.length||e.uri});for(var t=function(t){var n=e.playlists[t],r=n.attributes&&n.attributes.CODECS;return r&&r.split(",").every(function(e){return H(e)})||Ls(e,function(e){return Fs(n,e)})?"continue":{v:!1}},n=0;n<e.playlists.length;n++){var r=t(n);if("continue"!==r&&"object"==typeof r)return r.v}return!0},Ds={liveEdgeDelay:Cs,duration:Es,seekable:function(e,t,n){var r=t||0,i=xs(e,t,!0,n);return null===i?ys():ys(r,i)},getMediaInfoForTime:function(e){for(var t=e.playlist,n=e.currentTime,r=e.startingSegmentIndex,i=e.startingPartIndex,o=e.startTime,s=n-o,a=bs(t),l=0,c=0;c<a.length;c++){var u=a[c];if(r===u.segmentIndex&&("number"!=typeof i||"number"!=typeof u.partIndex||i===u.partIndex)){l=c;break}}if(s<0){if(l>0)for(var h=l-1;h>=0;h--){var d=a[h];if((s+=d.duration)+hs>0)return{partIndex:d.partIndex,segmentIndex:d.segmentIndex,startTime:o-Is({defaultDuration:t.targetDuration,durationList:a,startIndex:l,endIndex:h})}}return{partIndex:a[0]&&a[0].partIndex||null,segmentIndex:a[0]&&a[0].segmentIndex||0,startTime:n}}if(l<0){for(var A=l;A<0;A++)if((s-=t.targetDuration)<0)return{partIndex:a[0]&&a[0].partIndex||null,segmentIndex:a[0]&&a[0].segmentIndex||0,startTime:n};l=0}for(var p=l;p<a.length;p++){var f=a[p];if((s-=f.duration)-hs<0)return{partIndex:f.partIndex,segmentIndex:f.segmentIndex,startTime:o+Is({defaultDuration:t.targetDuration,durationList:a,startIndex:l,endIndex:p})}}return{segmentIndex:a[a.length-1].segmentIndex,partIndex:a[a.length-1].partIndex,startTime:n}},isEnabled:ks,isDisabled:function(e){return e.disabled},isBlacklisted:Ts,isIncompatible:Bs,playlistEnd:xs,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:Ps,estimateSegmentRequestTime:function(e,t,n,r){return void 0===r&&(r=0),Ps("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*r)/t:NaN},isLowestEnabledRendition:Os,isAudioOnly:Ms,playlistMatch:Fs}
1,Ns=os.log,Rs=function(e,t){return e+"-"+t},Us=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(n){if(e.mediaGroups[n])for(var r in e.mediaGroups[n])for(var i in e.mediaGroups[n][r])t(e.mediaGroups[n][r][i],n,r,i)})},js=function(e){var t=e.playlist,n=e.uri;t.id=e.id,t.playlistErrors_=0,n&&(t.uri=n),t.attributes=t.attributes||{}},Qs=function(e,t){e.uri=t;for(var n=0;n<e.playlists.length;n++)e.playlists[n].uri||(e.playlists[n].uri="placeholder-uri-"+n);Us(e,function(t,n,r,i){var o="placeholder-uri-"+n+"-"+r+"-"+i;t.playlists&&t.playlists.length||(t.playlists=[a({},t)]),t.playlists.forEach(function(t,n){var r=Rs(n,o);t.uri?t.resolvedUri=t.resolvedUri||ls(e.uri,t.uri):(t.uri=0===n?o:r,t.resolvedUri=t.uri),t.id=t.id||r,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),function(e){for(var t=e.playlists.length;t--;){var n=e.playlists[t];js({playlist:n,id:Rs(t,n.uri)}),n.resolvedUri=ls(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||Ns.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(e),function(e){Us(e,function(t){t.uri&&(t.resolvedUri=ls(e.uri,t.uri))})}(e)},Hs=os.mergeOptions,Vs=function(e,t){if(!e)return t;var n=Hs(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(var r=0;r<t.parts.length;r++)e.parts&&e.parts[r]&&(n.parts[r]=Hs(e.parts[r],t.parts[r]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},qs=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=ls(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=ls(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=ls(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=ls(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(function(e){e.resolvedUri||(e.resolvedUri=ls(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(function(e){e.resolvedUri||(e.resolvedUri=ls(t,e.uri))})},Ks=function(e){var t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(var r=0;r<n.preloadHints.length;r++)if("MAP"===n.preloadHints[r].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},Gs=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence},zs=function(e,t,n){void 0===n&&(n=Gs);var r=Hs(e,{}),i=r.playlists[t.id];if(!i)return null;if(n(i,t))return null;t.segments=Ks(t);var o=Hs(i,t);if(o.preloadSegment&&!t.preloadSegment&&delete o.preloadSegment,i.segments){if(t.skip){t.segments=t.segments||[];for(var s=0;s<t.skip.skippedSegments;s++)t.segments.unshift({skipped:!0})}o.segments=function(e,t,n){var r=e.slice(),i=t.slice();n=n||0;for(var o,s=[],a=0;a<i.length;a++){var l=r[a+n],c=i[a];l?(o=l.map||o,s.push(Vs(l,c))):(o&&!c.map&&(c.map=o),s.push(c))}return s}(i.segments,t.segments,t.mediaSequence-i.mediaSequence)}o.segments.forEach(function(e){qs(e,o.resolvedUri)});for(var a=0;a<r.playlists.length;a++)r.playlists[a].id===t.id&&(r.playlists[a]=o);return r.playlists[t.id]=o,r.playlists[t.uri]=o,Us(e,function(e,n,r,i){if(e.playlists)for(var o=0;o<e.playlists.length;o++)t.id===e.playlists[o].id&&(e.playlists[o]=t)}),r},Ws=function(e,t){var n=e.segments[e.segments.length-1],r=n&&n.parts&&n.parts[n.parts.length-1],i=r&&r.duration||n&&n.duration;return t&&i?1e3*i:500*(e.partTargetDuration||e.targetDuration||10)},$s=function(e){function t(t,n,r){var i;if(void 0===r&&(r={}),i=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");i.logger_=us("PlaylistLoader");var o=r.withCredentials,s=void 0!==o&&o,a=r.handleManifestRedirects,c=void 0!==a&&a;i.src=t,i.vhs_=n,i.withCredentials=s,i.handleManifestRedirects=c;var u=n.options_;return i.customTagParsers=u&&u.customTagParsers||[],i.customTagMappers=u&&u.customTagMappers||[],i.experimentalLLHLS=u&&u.experimentalLLHLS||!1,i.state="HAVE_NOTHING",i.handleMediaupdatetimeout_=i.handleMediaupdatetimeout_.bind(l(i)),i.on("mediaupdatetimeout",i.handleMediaupdatetimeout_),i}u(t,e);var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),n=ls(this.master.uri,t.uri);this.experimentalLLHLS&&(n=function(e,t){if(t.endList)return e;var n=[];if(t.serverControl&&t.serverControl.canBlockReload){var r=t.preloadSegment,i=t.mediaSequence+t.segments.length;if(r){var o=r.parts||[],s=ws(t)-1;s>-1&&s!==o.length-1&&n.push("_HLS_part="+s),(s>-1||o.length)&&i--}n.unshift("_HLS_msn="+i)}return t.serverControl&&t.serverControl.canSkipUntil&&n.unshift("_HLS_skip="+(t.serverControl.canSkipDateranges?"v2":"YES")),n.forEac
1h(function(t,n){e+=(0===n?"?":"&")+t}),e}(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},function(t,n){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})})}},n.playlistRequestError=function(e,t,n){var r=t.uri,i=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[i],status:e.status,message:"HLS playlist request error at URL: "+r+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(e){var t=this,n=e.url;return function(e){var t=e.onwarn,n=e.oninfo,r=e.manifestString,i=e.customTagParsers,o=void 0===i?[]:i,s=e.customTagMappers,a=void 0===s?[]:s,l=e.experimentalLLHLS,c=new D;t&&c.on("warn",t),n&&c.on("info",n),o.forEach(function(e){return c.addParser(e)}),a.forEach(function(e){return c.addTagMapper(e)}),c.push(r),c.end();var u=c.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){u.hasOwnProperty(e)&&delete u[e]}),u.segments&&u.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!u.targetDuration){var h=10;u.segments&&u.segments.length&&(h=u.segments.reduce(function(e,t){return Math.max(e,t.duration)},0)),t&&t("manifest has no targetDuration defaulting to "+h),u.targetDuration=h}var d=_s(u);if(d.length&&!u.partTargetDuration){var A=d.reduce(function(e,t){return Math.max(e,t.duration)},0);t&&(t("manifest has no partTargetDuration defaulting to "+A),Ns.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),u.partTargetDuration=A}return u}({onwarn:function(e){return t.logger_("m3u8-parser warn for "+n+": "+e.message)},oninfo:function(e){return t.logger_("m3u8-parser info for "+n+": "+e.message)},manifestString:e.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(e){var t=this,n=e.playlistString,r=e.playlistObject,o=e.url,s=e.id;this.request=null,this.state="HAVE_METADATA";var a=r||this.parseManifest_({url:o,manifestString:n});a.lastRequest=Date.now(),js({playlist:a,uri:o,id:s});var l=zs(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,l?(this.master=l,this.media_=this.master.playlists[s]):this.trigger("playlistunchanged"),this.media().endList||(i().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=i().setTimeout(function(){t.trigger("mediaupdatetimeout")},Ws(this.media(),!!l))),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),i().clearTimeout(this.mediaUpdateTimeout),i().clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(i().clearTimeout(this.finalRenditionTimeout),t){var r=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=i().setTimeout(this.media.bind(this,e,!1),r)}else{var o=this.state,s=!this.media_||e.id!==this.media_.id,a=this.master.playlists[e.id];if(a&&a.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(s&&(this.trigger("mediachanging"),this.trigger("HAVE_MASTER"===o?"loadedmetadata":"mediachange")));if(s){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},function(t,r){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=cs(n.handleManifestRedirects,e.resolvedUri,r),t)return n.playlistRequestError(n.request,e,o);n.haveMetadata({playlistString:r.responseText,url:e.uri,id:e.id}),n.trigger("HAVE_MASTER"===o?"loadedmetadata":"mediachange")}})}}},n.pause=function(){this.stopRequest(),i().clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.state=this.media_?"HAVE_METADATA":"HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;i().clearTimeout(this.mediaUpdateTimeout);var n=this.media();if(e){var r=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=i().setTimeout(function(){return t.load()},r)}else this.started?this.trigger(n&&!n.endList?"mediaupdatetimeout":"loadedplaylist"):this.start()},n.start=function(){var e=this;
1if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=i().location.href),this.src.resolvedUri=this.src.uri,void setTimeout(function(){e.setupInitialPlaylist(e.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=cs(e.handleManifestRedirects,e.src,n);var r=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(r)}})},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,Qs(this.master,this.srcUri()),e.playlists.forEach(function(e){e.segments=Ks(e),e.segments.forEach(function(t){qs(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||i().location.href;this.master=function(e,t){var n=Rs(0,t),r={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:i().location.href,resolvedUri:i().location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return r.playlists[n]=r.playlists[0],r.playlists[t]=r.playlists[0],r}(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(os.EventTarget),Ys=os.xhr,Xs=os.mergeOptions,Js=function(e,t,n,r){var i="arraybuffer"===e.responseType?e.response:e.responseText;!t&&i&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=i.byteLength||i.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(i||e.responseText)))),r(t,e)},Zs=function(){var e=function e(t,n){t=Xs({timeout:45e3},t);var r=e.beforeRequest||os.Vhs.xhr.beforeRequest;if(r&&"function"==typeof r){var i=r(t);i&&(t=i)}var o=(!0===os.Vhs.xhr.original?Ys:os.Vhs.xhr)(t,function(e,t){return Js(o,e,t,n)}),s=o.abort;return o.abort=function(){return o.aborted=!0,s.apply(o,arguments)},o.uri=t.uri,o.requestTime=Date.now(),o};return e.original=!0,e},ea=function(e){var t,n={};return e.byterange&&(n.Range="bytes="+(t=e.byterange).offset+"-"+(t.offset+t.length-1)),n},ta=function(e,t){return e.start(t)+"-"+e.end(t)},na=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},ra=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},ia=function(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];t[n]=ArrayBuffer.isView(r)?{bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:r}),t},oa=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},sa=function(e){return e.resolvedUri},aa=function(e){for(var t=Array.prototype.slice.call(e),n=16,r="",i=0;i<t.length/n;i++)r+=t.slice(i*n,i*n+n).map(na).join("")+" "+t.slice(i*n,i*n+n).map(ra).join("")+"\n";return r},la=Object.freeze({__proto__:null,createTransferableMessage:ia,initSegmentId:oa,segmentKeyId:sa,hexDump:aa,tagDump:function(e){return aa(e.bytes)},textRanges:function(e){var t,n="";for(t=0;t<e.length;t++)n+=ta(e,t)+" ";return n}}),ca=function e(t){var n=t.programTime,r=t.playlist,i=t.retryCount,o=void 0===i?2:i,s=t.seekTo,a=t.pauseAfterSeek,l=void 0===a||a,c=t.tech,u=t.callback;if(!u)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!r||!s)return u({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!r.endList&&!c.hasStarted_)return u({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0}(r))return u({message:"programDateTime tags must be provided in the manifest "+r.resolvedUri});var h=function(e,t){var n;try{n=new Date(e)}catch(c){return null}if(!t||!t.segments||0===t.segments.length)return null;var r=t.segments[0];if(n<r.dateTimeObject)return null;for(var i=0;i<t.segments.length-1&&(r=t.segments[i],!(n<t.segments[i+1].dateTimeObject));i++);var o,s=t.segments[t.segments.length-1],a=s.dateTimeObject,l=s.videoTimingInfo?(o=s.videoTimingInfo).transmuxedPresentationEnd-o.transmuxedPresentationStart-o.transmuxerPrependedSeconds:s.duration+.25*s.duration;return n>new Date(a.getTime()+1e3*l)?null:(n>a&&(r=s),{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:Ds.duration(t,t.mediaSequence+t.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"})}(n,r);if(!h)return u({message:n+" was not found in the stream"});var d=h.segment,A=function(e,t){var n,r;try{n=new Date(e),r=new Date(t)}catch(o){}var i=n.getTime();return(r.getTime()-i)/1e3}(d.dateTimeObject,n);if("estimate"===h.type)return 0===o?u({message:n+" is not buffered yet. Try again"}):(s(h.estimatedStart+A),void c.one("seeked",function(){e({programTime:n,playlist:r,retryCount:o-1,seekTo:s,pauseAfterSeek:l,tech:c,callback:u})}));var p=d.start+A;c.one("seeked",function(){return u(null,c.currentTime())}),l&&c.pause(),s(p)},ua=function(e,t){if(4===e.readyState)return t()},ha=os.mergeOptions,da=function(e,t){if(!Gs(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var n=0;n<e.segments.length;n++){var r=e.segments[n],i=t.segments[n];if(r.uri!==i.uri)return!1;if(r.byterange||i.byterange){var o=r.byterange,s=i.byterange;if(o&&!s||!o&&s)return!1;if(o.offset!==s.offset||o.length!==s.length)return!1}}return!0},Aa=function(e,t){return(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},pa=function(e,t){var n={};for(var r in e){var i=e[r].sidx;if(i){var o=ae(i);if(!t[o])break;
1Aa(t[o].sidxInfo,i)&&(n[o]=t[o])}}return n},fa=function(e){function t(t,n,r,i){var o;void 0===r&&(r={}),(o=e.call(this)||this).masterPlaylistLoader_=i||l(o),i||(o.isMaster_=!0);var s=r.withCredentials,a=void 0!==s&&s,c=r.handleManifestRedirects,u=void 0!==c&&c;if(o.vhs_=n,o.withCredentials=a,o.handleManifestRedirects=u,!t)throw new Error("A non-empty playlist URL or object is required");return o.on("minimumUpdatePeriod",function(){o.refreshXml_()}),o.on("mediaupdatetimeout",function(){o.refreshMedia_(o.media().id)}),o.state="HAVE_NOTHING",o.loadedPlaylists_={},o.logger_=us("DashPlaylistLoader"),o.isMaster_?(o.masterPlaylistLoader_.srcUrl=t,o.masterPlaylistLoader_.sidxMapping_={}):o.childPlaylist_=t,o}u(t,e);var n=t.prototype;return n.requestErrored_=function(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(e,t,n){var r=this,o=e.sidx&&ae(e.sidx);if(e.sidx&&o&&!this.masterPlaylistLoader_.sidxMapping_[o]){var s=cs(this.handleManifestRedirects,e.sidx.resolvedUri),a=function(i,s){if(!r.requestErrored_(i,s,t)){var a,l=r.masterPlaylistLoader_.sidxMapping_;try{a=Fe()(Le(s.response).subarray(8))}catch(c){return void r.requestErrored_(c,s,t)}return l[o]={sidxInfo:e.sidx,sidx:a},se(e,a,e.sidx.resolvedUri),n(!0)}};this.request=function(e,t,n){var r,i=[],o=!1,s=function(e,t,r,i){return t.abort(),o=!0,n(e,t,r,i)},a=function(e,t){if(!o){if(e)return s(e,t,"",i);var n=t.responseText.substring(i&&i.byteLength||0,t.responseText.length);if(i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if((t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})).length<=1)return Le(t[0]);var r=t.reduce(function(e,t,n){return e+(t.byteLength||t.length)},0),i=new Uint8Array(r),o=0;return t.forEach(function(e){e=Le(e),i.set(e,o),o+=e.byteLength}),i}(i,Re(n,!0)),r=r||Qe(i),i.length<10||r&&i.length<r+2)return ua(t,function(){return s(e,t,"",i)});var a=at(i);return"ts"===a&&i.length<188||!a&&i.length<376?ua(t,function(){return s(e,t,"",i)}):s(null,t,a,i)}},l=t({uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function(t){return Js(e,null,{statusCode:e.status},a)})}},function(e,t){return Js(l,e,t,a)});return l}(s,this.vhs_.xhr,function(t,n,i,o){if(t)return a(t,n);if(!i||"mp4"!==i)return a({status:n.status,message:"Unsupported "+(i||"unknown")+" container type for sidx segment at URL: "+s,response:"",playlist:e,internal:!0,blacklistDuration:1/0,code:2},n);var l=e.sidx.byterange,c=l.offset,u=l.length;if(o.length>=u+c)return a(t,{response:o.subarray(c,c+u),status:n.status,uri:n.uri});r.request=r.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:ea({byterange:e.sidx.byterange})},a)})}else this.mediaRequest_=i().setTimeout(function(){return n(!1)},0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},i().clearTimeout(this.minimumUpdatePeriodTimeout_),i().clearTimeout(this.mediaRequest_),i().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var r=!this.media_||e.id!==this.media_.id;if(r&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(r&&(this.trigger("mediachanging"),this.trigger("mediachange")));r&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,function(r){t.haveMetadata({startingState:n,playlist:e})}))},n.haveMetadata=function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),this.trigger("HAVE_MASTER"===t?"loadedmetadata":"mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),i().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(i().clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;i().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(e){var r=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=i().setTimeout(function(){return t.load()},r)}else this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_(function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])}):this.mediaRequest_=i().setTimeout(function(){return e.haveMaster_()},0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(n,r){if(!t.requestErrored_(n,r)){var i=r.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=r.responseText,t.masterLoaded_=r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):Date.now(),t.masterPlaylistLoader_.srcUrl=cs(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,r),i?(t.handleMaster_(),void t.syncClientServerClock_(function(){return e(r,i)})):e(r,i)}"HAVE_NOTHING"===t.state&&(t.started=!1)})},n.syncClientServerClock_=function(e){var t=this,n=function(e){var t=we(e,"UTCTiming")[0];if(!t)return null;var n=Ie(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return n}(Pe(this.masterPlaylistLoader_.masterXml_));return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:ls(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},function(r,i){if(t.request){if(r)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var o;o="HEAD"===n.method?i.responseHeaders&&i.responseHeaders.date?Date.parse(i.responseHeaders.date):t.masterLoaded_:Date.parse(i.responseText),t.masterPlaylistLoader_.clientOffset_=o-Date.now(),e()}}))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e,t,n,r=(n=function(e,t){void 0===t&&(t={});var n=function(e,t){void 0===t&&(t={});var n=t,r=n.manifestUri,i=void 0===r?"":r,o=n.NOW,s=void 0===o?Date.now():o,a=n.clientOffset,l=void 0===a?0:a,c=we(e,"Period");
1if(!c.length)throw new Error("INVALID_NUMBER_OF_PERIOD");var u=we(e,"Location"),h=Ie(e),d=Te([i],we(e,"BaseURL"));return h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=s,h.clientOffset=l,u.length&&(h.locations=u.map(Ce)),{locations:h.locations,representationInfo:Z(c.map(ke(h,d)))}}(Pe(e),t);return function(e,t,n){var r;if(void 0===n&&(n={}),!e.length)return{};var i=e[0].attributes,o=i.sourceDuration,s=i.type,a=void 0===s?"static":s,l=i.suggestedPresentationDelay,c=i.minimumUpdatePeriod,u=le(e.filter(de)).map(he),h=le(e.filter(Ae)),d=e.filter(pe),A=e.map(function(e){return e.attributes.captionServices}).filter(Boolean),p={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(r={AUDIO:{},VIDEO:{}},r["CLOSED-CAPTIONS"]={},r.SUBTITLES={},r),uri:"",duration:o,playlists:ue(u,n)};return c>=0&&(p.minimumUpdatePeriod=1e3*c),t&&(p.locations=t),"dynamic"===a&&(p.suggestedPresentationDelay=l),h.length&&(p.mediaGroups.AUDIO.audio=function(e,t,n){var r;void 0===t&&(t={}),void 0===n&&(n=!1);var i=e.reduce(function(e,i){var o=i.attributes.role&&i.attributes.role.value||"",s=i.attributes.lang||"",a=i.attributes.label||"main";s&&!i.attributes.label&&(a=i.attributes.lang+(o?" ("+o+")":"")),e[a]||(e[a]={language:s,autoselect:!0,default:"main"===o,playlists:[],uri:""});var l=ce(function(e,t){var n,r=e.attributes,i=e.segments,o=e.sidx,s={attributes:(n={NAME:r.id,BANDWIDTH:r.bandwidth,CODECS:r.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===(r.type||"static"),timeline:r.periodIndex,resolvedUri:"",targetDuration:r.duration,segments:i,mediaSequence:i.length?i[0].number:1};return r.contentProtection&&(s.contentProtection=r.contentProtection),o&&(s.sidx=o),t&&(s.attributes.AUDIO="audio",s.attributes.SUBTITLES="subs"),s}(i,n),t);return e[a].playlists.push(l),void 0===r&&"main"===o&&((r=i).default=!0),e},{});return r||(i[Object.keys(i)[0]].default=!0),i}(h,n,0===p.playlists.length)),d.length&&(p.mediaGroups.SUBTITLES.subs=function(e,t){return void 0===t&&(t={}),e.reduce(function(e,n){var r=n.attributes.lang||"text";return e[r]||(e[r]={language:r,default:!1,autoselect:!1,playlists:[],uri:""}),e[r].playlists.push(ce(function(e){var t,n=e.attributes,r=e.segments;void 0===r&&(r=[{uri:n.baseUrl,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var i=((t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,t);return n.codecs&&(i.CODECS=n.codecs),{attributes:i,uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:n.baseUrl||"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1}}(n),t)),e},{})}(d,n)),A.length&&(p.mediaGroups["CLOSED-CAPTIONS"].cc=A.reduce(function(e,t){return t?(t.forEach(function(t){var n=t.language;e[n]={autoselect:!1,default:!1,instreamId:t.channel,language:n},t.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[n].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[n]["3D"]=t["3D"])}),e):e},{})),p}(n.representationInfo.map(_e),n.locations,t.sidxMapping)}((e={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_}).masterXml,{manifestUri:t=e.srcUrl,clientOffset:e.clientOffset,sidxMapping:e.sidxMapping}),Qs(n,t),n),i=this.masterPlaylistLoader_.master;i&&(r=function(e,t,n){for(var r=!0,i=ha(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod}),o=0;o<t.playlists.length;o++){var s=t.playlists[o];if(s.sidx){var a=ae(s.sidx);n&&n[a]&&n[a].sidx&&se(s,n[a].sidx,s.sidx.resolvedUri)}var l=zs(i,s,da);l&&(i=l,r=!1)}return Us(t,function(e,t,n,o){if(e.playlists&&e.playlists.length){var s=e.playlists[0].id,a=zs(i,e.playlists[0],da);a&&((i=a).mediaGroups[t][n][o].playlists[0]=i.playlists[s],r=!1)}}),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(r=!1),r?null:i}(i,r,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=r||i;var o=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return o&&o!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=o),(!i||r&&r.minimumUpdatePeriod!==i.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(r)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(i().clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;
10===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=i().setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)},n.refreshXml_=function(){var e=this;this.requestMaster_(function(t,n){var r,i,o;n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=(o=pa((r=e.masterPlaylistLoader_.master).playlists,i=e.masterPlaylistLoader_.sidxMapping_),Us(r,function(e,t,n,r){e.playlists&&e.playlists.length&&(o=ha(o,pa(e.playlists,i)))}),o),e.addSidxSegments_(e.media(),e.state,function(t){e.refreshMedia_(e.media().id)}))})},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,r=!this.media_||this.media_!==n[e];r?this.media_=n[e]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function e(){t.media().endList||(t.mediaUpdateTimeout=i().setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},Ws(t.media(),Boolean(r))))}(),this.trigger("loadedplaylist")},t}(os.EventTarget),ga={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},ma=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},va=function(e){return function(){var t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}}(e),n=ma(new Worker(t));n.objURL=t;var r=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),r.call(this)},n}},ya=function(e){return"var browserWorkerPolyFill = "+ma.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},ba=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},_a=va(ya(ba(function(){var e=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,o;if(n=e[t])if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(o=[],r=arguments.length,r=1;r<arguments.length;++r)o.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,o)}},this.dispose=function(){e={}}}};e.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var t,n,r,i,o,s,a,l,c,u,h,d,A,p,f,g,m,v,y,b,_,w,C,S,E,I,x,T,B,k,P,O,F,L,M,D,N,R,U,j,Q=e,H=Math.pow(2,32)-1;!function(){var e;if(w={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in w)w.hasOwnProperty(e)&&(w[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),E=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),S=new Uint8Array([0,0,0,1]),I=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),x=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),T={video:I,audio:x},P=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),k=new Uint8Array([0,0,0,0,0,0,0,0]),O=new 
vendor: 8,647 bytes, line 1
1Uint8Array([0,0,0,0,0,0,0,0]),F=O,L=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),M=O,B=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),t=function(e){var t,n,r=[],i=0;for(t=1;t<arguments.length;t++)r.push(arguments[t]);for(t=r.length;t--;)i+=r[t].byteLength;for(n=new Uint8Array(i+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,i=8;t<r.length;t++)n.set(r[t],i),i+=r[t].byteLength;return n},n=function(){return t(w.dinf,t(w.dref,P))},r=function(e){return t(w.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},f=function(e){return t(w.hdlr,T[e])},p=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(n[12]=e.samplerate>>>24&255,n[13]=e.samplerate>>>16&255,n[14]=e.samplerate>>>8&255,n[15]=255&e.samplerate),t(w.mdhd,n)},A=function(e){return t(w.mdia,p(e),f(e.type),s(e))},o=function(e){return t(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},s=function(e){return t(w.minf,"video"===e.type?t(w.vmhd,B):t(w.smhd,k),n(),m(e))},a=function(e,n){for(var r=[],i=n.length;i--;)r[i]=y(n[i]);return t.apply(null,[w.moof,o(e)].concat(r))},l=function(e){for(var n=e.length,r=[];n--;)r[n]=h(e[n]);return t.apply(null,[w.moov,u(4294967295)].concat(r).concat(c(e)))},c=function(e){for(var n=e.length,r=[];n--;)r[n]=b(e[n]);return t.apply(null,[w.mvex].concat(r))},u=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(w.mvhd,n)},g=function(e){var n,r,i=e.samples||[],o=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)o[r+4]=(n=i[r].flags).dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t(w.sdtp,o)},m=function(e){return t(w.stbl,v(e),t(w.stts,M),t(w.stsc,F),t(w.stsz,L),t(w.stco,O))},v=function(e){return t(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?D(e):N(e))},D=function(e){var n,r,i=e.sps||[],o=e.pps||[],s=[],a=[];for(n=0;n<i.length;n++)s.push((65280&i[n].byteLength)>>>8),s.push(255&i[n].byteLength),s=s.concat(Array.prototype.slice.call(i[n]));for(n=0;n<o.length;n++)a.push((65280&o[n].byteLength)>>>8),a.push(255&o[n].byteLength),a=a.concat(Array.prototype.slice.call(o[n]));if(r=[w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(w.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([i.length],s,[o.length],a))),t(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],c=e.sarRatio[1];r.push(t(w.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c])))}return t.apply(null,r)},N=function(e){return t(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))},d=function(e){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return t(w.tkhd,n)},y=function(e){var n,r,i,o,s,a;return n=t(w.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(e.baseMediaDecodeTime/(H+1)),a=Math.floor(e.baseMediaDecodeTime%(H+1)),r=t(w.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,a>>>24&255,a>>>16&255,a>>>8&255,255&a])),"audio"===e.type?(i=_(e,92),t(w.traf,n,r,i)):(o=g(e),i=_(e,o.length+92),t(w.traf,n,r,i,o))},h=function(e){return e.duration=e.duration||4294967295,t(w.trak,d(e),A(e))},b=function(e){var n=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(n[n.length-1]=0),t(w.trex,n)},j=function(e,t){var n=0,r=0,i=0,o=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(r=2),void 0!==e[0].flags&&(i=4),void 0!==e[0].compositionTimeOffset&&(o=8)),[0,0,n|r|i|o,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},U=function(e,n){var r,i,o,s,a,l;for(o=j(s=e.samples||[],n+=20+16*s.length),(i=new Uint8Array(o.length+16*s.length)).set(o),r=o.length,l=0;l<s.length;l++)i[r++]=(4278190080&(a=s[l]).duration)>>>24,i[r++]=(16711680&a.duration)>>>16,i[r++]=(65280&a.duration)>>>8,i[r++]=255&a.duration,i[r++]=(4278190080&a.size)>>>24,i[r++]=(16711680&a.size)>>>16,i[r++]=(65280&a.size)>>>8,i[r++]=255&a.size,i[r++]=a.flags.isLeading<<2|a.flags.dependsOn,i[r++]=a.flags.isDependedOn<<6|a.flags.hasRedundancy<<4|a.flags.paddingValue<<1|a.flags.isNonSyncSample,i[r++]=61440&a.flags.degradationPriority,i[r++]=15&a.flags.degradationPriority,i[r++]=(4278190080&a.compositionTimeOffset)>>>24,i[r++]=(16711680&a.compositionTimeOffset)>>>16,i[r++]=(65280&a.compositionTimeOffset)>>>8,i[r++]=255&a.compositionTimeOffset;return t(w.trun,i)},R=function(e,n){var r,i,o,s,a,l;for(o=j(s=e.samples||[],n+=20+8*s.length),(r=new Uint8Array(o.length+8*s.length)).set(o),i=o.length,l=0;l<s.length;l++)r[i++]=(4278190080&(a=s[l]).duration)>>>24,r[i++]=(16711680&a.duration)>>>16,r[i++]=(65280&a.duration)>>>8,r[i++]=255&a.duration,r[i++]=(4278190080&a.size)>>>24,r[i++]=(16711680&a.size)>>>16,r[i++]=(65280&a.size)>>>8,r[i++]=255&a.size;return t(w.trun,r)},_=function(e,t){return"audio"===e.type?R(e,t):U(e,t)},i=function(){return t(w.ftyp,C,S,C,E)};var V,q,K,G,z,W,$,Y,X=function(e){return t(w.mdat,e)},J=a,Z=function(e,t){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},ee=[33,16,5,32,164,27],te=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ne=function(e){for(var t=[];e--;)t.push(0);return t},re=9e4;W=function(e,t){return q(z(e,t))},$=function(e,t){return K(G(e),t)},Y=function(e,t,n){return G(n?e:e-t)};var ie=re,oe=q=function(e){return e*re},se=(K=function(e,t){return e*t},G=function(e){return e/re}),ae=(z=function(e,t){return e/t},W),le=$,ce=Y,ue=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},he=function(e,t){var n,r=e.minSegmentDts;return t||(r-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=r,n=Math.max(0,n),"audio"===e.type&&(n*=e.samplerate/9e4,n=Math.floor(n)),n},de=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),e.minSegmentPts=void 0===e.minSegmentPts?t.pts:Math.min(e.minSegmentPts,t.pts),e.maxSegmentPts=void 0===e.maxSegmentPts?t.pts:Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),e.minSegmentDts=void 0===e.minSegmentDts?t.dts:Math.min(e.minSegmentDts,t.dts),e.maxSegmentDts=void 0===e.maxSegmentDts?t.dts:Math.max(e.maxSegmentDts,t.dts))},Ae=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!=typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Ce(0,0),new Ce(0,1),new Ce(1,0),new Ce(1,1)],this.parse708captions_&&(this.cc708Stream_=new ve),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};(Ae.prototype=new Q).push=function(e){var t,n,r;
1if("sei_rbsp"===e.nalUnitType&&(t=function(e){for(var t=0,n={payloadType:-1,payloadSize:0},r=0,i=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)r+=255,t++;for(r+=e[t++];255===e[t];)i+=255,t++;if(i+=e[t++],!n.payload&&4===r){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){n.payloadType=r,n.payloadSize=i,n.payload=e.subarray(t,t+i);break}n.payload=void 0}t+=i,r=0,i=0}return n}(e.escapedRBSP)).payload&&4===t.payloadType&&(n=function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)}(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=function(e,t){var n,r,i,o,s=[];if(!(64&t[0]))return s;for(r=31&t[0],n=0;n<r;n++)o={type:3&t[2+(i=3*n)],pts:e},4&t[i+2]&&(o.ccData=t[i+3]<<8|t[i+4],s.push(o));return s}(e.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Ae.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},Ae.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},Ae.prototype.flush=function(){return this.flushStream("flush")},Ae.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ae.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},Ae.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Ae.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},Ae.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},Ae.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},Ae.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var pe={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},fe=function(e){return 32<=e&&e<=127||160<=e&&e<=255},ge=function(e){this.windowNum=e,this.reset()};ge.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},ge.prototype.getText=function(){return this.rows.join("\n")},ge.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},ge.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},ge.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},ge.prototype.addText=function(e){this.rows[this.rowIdx]+=e},ge.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var me=function(e){this.serviceNum=e,this.text="",this.currentWindow=new ge(-1),this.windows=[]};me.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new ge(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},me.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]};var ve=function e(){e.prototype.init.call(this);var t=this;this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(t.new708Packet(),t.add708Bytes(e)):(null===t.current708Packet&&t.new708Packet(),t.add708Bytes(e))}};ve.prototype=new Q,ve.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},ve.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,r=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(r)},ve.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,r=null,i=0,o=t[i++];for(e.seq=o>>6,e.sizeCode=63&o;i<t.length;i++)r=31&(o=t[i++]),7==(n=o>>5)&&r>0&&(n=o=t[i++]),this.pushServiceBlock(n,i,r),r>0&&(i+=r-1)},ve.prototype.pushServiceBlock=function(e,t,n){var r,i=t,o=this.current708Packet.data,s=this.services[e];for(s||(s=this.initService(e,i));i<t+n&&i<o.length;i++)fe(r=o[i])?i=this.handleText(i,s):16===r?i=this.extendedCommands(i,s):128<=r&&r<=135?i=this.setCurrentWindow(i,s):152<=r&&r<=159?i=this.defineWindow(i,s):136===r?i=this.clearWindows(i,s):140===r?i=this.deleteWindows(i,s):137===r?i=this.displayWindows(i,s):138===r?i=this.hideWindows(i,s):139===r?i=this.toggleWindows(i,s):151===r?i=this.setWindowAttributes(i,s):144===r?i=this.setPenAttributes(i,s):145===r?i=this.setPenColor(i,s):146===r?i=this.setPenLocation(i,s):143===r?s=this.reset(i,s):8===r?s.currentWindow.backspace():12===r?s.currentWindow.clearText():13===r?s.currentWindow.pendingNewLine=!0:14===r?s.currentWindow.clearText():141===r&&i++},ve.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data[++e];return fe(n)&&(e=this.handleText(e,t,!0)),e},ve.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},ve.prototype.initService=function(e,t){var n=this;return this.services[e]=new me(e),this.services[e].init(this.getPts(t),function(t){n.flushDisplayed(t,n.services[e])}),this.services[e]},ve.prototype.handleText=function(e,t,n){var r,i,o=(i=pe[r=(n?4096:0)|this.current708Packet.data[e]]||r,4096&r&&r===i?"":String.fromCharCode(i)),s=t.currentWindow;return s.pendingNewLine&&!s.isEmpty()&&s.newLine(this.getPts(e)),s.pendingNewLine=!1,s.addText(o),e},ve.prototype.setCurrentWindow=function(e,t){return t.setCurrentWindow(7&this.current708Packet.data[e]),e},ve.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,r=n[e];t.setCurrentWindow(7&r);var i=t.currentWindow;return r=n[++e],i.visible=(32&r)>>5,i.rowLock=(16&r)>>4,i.columnLock=(8&r)>>3,i.priority=7&r,r=n[++e],i.relativePositioning=(128&r)>>
vendor: 6,154 bytes, line 1
17,i.anchorVertical=127&r,r=n[++e],i.anchorHorizontal=r,r=n[++e],i.anchorPoint=(240&r)>>4,i.rowCount=15&r,r=n[++e],i.columnCount=63&r,r=n[++e],i.windowStyle=(56&r)>>3,i.penStyle=7&r,i.virtualRowCount=i.rowCount+1,e},ve.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.winAttr;return r=n[++e],i.fillOpacity=(192&r)>>6,i.fillRed=(48&r)>>4,i.fillGreen=(12&r)>>2,i.fillBlue=3&r,r=n[++e],i.borderType=(192&r)>>6,i.borderRed=(48&r)>>4,i.borderGreen=(12&r)>>2,i.borderBlue=3&r,r=n[++e],i.borderType+=(128&r)>>5,i.wordWrap=(64&r)>>6,i.printDirection=(48&r)>>4,i.scrollDirection=(12&r)>>2,i.justify=3&r,r=n[++e],i.effectSpeed=(240&r)>>4,i.effectDirection=(12&r)>>2,i.displayEffect=3&r,e},ve.prototype.flushDisplayed=function(e,t){for(var n=[],r=0;r<8;r++)t.windows[r].visible&&!t.windows[r].isEmpty()&&n.push(t.windows[r].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},ve.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},ve.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&(t.windows[i].visible=1);return e},ve.prototype.hideWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&(t.windows[i].visible=0);return e},ve.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&(t.windows[i].visible^=1);return e},ve.prototype.clearWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&t.windows[i].clearText();return e},ve.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&t.windows[i].reset();return e},ve.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.penAttr;return r=n[++e],i.textTag=(240&r)>>4,i.offset=(12&r)>>2,i.penSize=3&r,r=n[++e],i.italics=(128&r)>>7,i.underline=(64&r)>>6,i.edgeType=(56&r)>>3,i.fontStyle=7&r,e},ve.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.penColor;return r=n[++e],i.fgOpacity=(192&r)>>6,i.fgRed=(48&r)>>4,i.fgGreen=(12&r)>>2,i.fgBlue=3&r,r=n[++e],i.bgOpacity=(192&r)>>6,i.bgRed=(48&r)>>4,i.bgGreen=(12&r)>>2,i.bgBlue=3&r,r=n[++e],i.edgeRed=(48&r)>>4,i.edgeGreen=(12&r)>>2,i.edgeBlue=3&r,e},ve.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,r=n[++e],i.row=15&r,r=n[++e],i.column=63&r,e},ve.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var ye={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},be=function(e){return null===e?"":(e=ye[e]||e,String.fromCharCode(e))},_e=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],we=function(){for(var e=[],t=15;t--;)e.push("");return e},Ce=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,r,i,o;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),r=t>>>8,i=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=we();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=we();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=we()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(r,i))o=be((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isExtCharacter(r,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),o=be((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&i)&&this.addFormatting(e.pts,["i"]),1==(1&i)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(r,i))this.column_+=3&i;else if(this.isPAC(r,i)){var s=_e.indexOf(7968&t);"rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)
vendor: 4,819 bytes, line 1
1),s!==this.row_&&(this.clearFormatting(e.pts),this.row_=s),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(i)&&14==(14&i)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(r)&&(0===i&&(i=null),o=be(r),o+=be(i),this[this.mode_](e.pts,o),this.column_+=o.length)}else this.lastControlCode_=null}};Ce.prototype=new Q,Ce.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e,t){try{return e.trim()}catch(n){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},Ce.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=we(),this.nonDisplayed_=we(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Ce.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ce.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Ce.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Ce.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Ce.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Ce.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Ce.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Ce.prototype.isNormalChar=function(e){return e>=32&&e<=127},Ce.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=we(),this.displayed_=we()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Ce.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,n)},Ce.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},Ce.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];this.nonDisplayed_[this.row_]=n+=t},Ce.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];this.displayed_[this.row_]=n+=t},Ce.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},Ce.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];this.displayed_[this.row_]=n+=t};var Se={CaptionStream:Ae,Cea608Stream:Ce,Cea708Stream:ve},Ee={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ie="shared",xe=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},Te=function e(t){var n,r;e.prototype.init.call(this),this.type_=t||Ie,this.push=function(e){this.type_!==Ie&&e.type!==this.type_||(void 0===r&&(r=e.dts),e.dts=xe(e.dts,r),e.pts=xe(e.pts,r),n=e.dts,this.trigger("data",e))},this.flush=function(){r=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){r=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Te.prototype=new Q;var Be,ke=Te,Pe=xe,Oe=function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i},Fe=function(e,t,n){return decodeURIComponent(Oe(e,t,n))},Le=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Me={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Fe(e.data,1,t),e.value=Fe(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Fe(e.data,1,t),e.url=Fe(e.data,t+1,e.data.length);break}},PRIV:function(e){var t;for(t=0;t<e.data.length;
vendor: 6,110 bytes, line 1
1t++)if(0===e.data[t]){e.owner=unescape(Oe(e.data,0,t));break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};(Be=function(e){var t,n={descriptor:e&&e.descriptor},r=0,i=[],o=0;if(Be.prototype.init.call(this),this.dispatchType=Ee.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,s,a,l;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(o=0,i.length=0),0===i.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(i.push(e),o+=e.data.byteLength,1===i.length&&(r=Le(e.data.subarray(6,10)),r+=10),!(o<r)){for(t={data:new Uint8Array(r),frames:[],pts:i[0].pts,dts:i[0].dts},l=0;l<r;)t.data.set(i[0].data.subarray(0,r-l),l),l+=i[0].data.byteLength,o-=i[0].data.byteLength,i.shift();n=10,64&t.data[5]&&(n+=4,n+=Le(t.data.subarray(10,14)),r-=Le(t.data.subarray(16,20)));do{if((s=Le(t.data.subarray(n+4,n+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if((a={id:String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),data:t.data.subarray(n+10,n+s+10)}).key=a.id,Me[a.id]&&(Me[a.id](a),"com.apple.streaming.transportStreamTimestamp"===a.owner)){var c=a.data,u=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;u*=4,a.timeStamp=u+=3&c[7],void 0===t.pts&&void 0===t.dts&&(t.pts=a.timeStamp,t.dts=a.timeStamp),this.trigger("timestamp",a)}t.frames.push(a),n+=10,n+=s}while(n<r);this.trigger("data",t)}}}).prototype=new Q;var De,Ne,Re,Ue=Be,je=ke,Qe=188;(De=function(){var e=new Uint8Array(Qe),t=0;De.prototype.init.call(this),this.push=function(n){var r,i=0,o=Qe;for(t?((r=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),r.set(n,t),t=0):r=n;o<r.byteLength;)71!==r[i]||71!==r[o]?(i++,o++):(this.trigger("data",r.subarray(i,o)),i+=Qe,o+=Qe);i<r.byteLength&&(e.set(r.subarray(i),0),t=r.byteLength-i)},this.flush=function(){t===Qe&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new Q,(Ne=function(){var e,t,n,r;Ne.prototype.init.call(this),r=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,r){var i=0;r.payloadUnitStartIndicator&&(i+=e[i]+1),"pat"===r.type?t(e.subarray(i),r):n(e.subarray(i),r)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],r.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=r.pmtPid},n=function(e,t){var n,i;if(1&e[5]){for(r.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,i=12+((15&e[10])<<8|e[11]);i<n;){var o=e[i],s=(31&e[i+1])<<8|e[i+2];o===Ee.H264_STREAM_TYPE&&null===r.programMapTable.video?r.programMapTable.video=s:o===Ee.ADTS_STREAM_TYPE&&null===r.programMapTable.audio?r.programMapTable.audio=s:o===Ee.METADATA_STREAM_TYPE&&(r.programMapTable["timed-metadata"][s]=o),i+=5+((15&e[i+3])<<8|e[i+4])}t.programMapTable=r.programMapTable}},this.push=function(t){var n={},r=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(r+=t[r]+1),0===n.pid)n.type="pat",e(t.subarray(r),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(r),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,r,n]):this.processPes_(t,r,n)},this.processPes_=function(e,t,n){n.streamType=n.pid===this.programMapTable.video?Ee.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?Ee.ADTS_STREAM_TYPE:this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}}).prototype=new Q,Ne.STREAM_TYPES={h264:27,adts:15},(Re=function(){var e,t=this,n=!1,r={data:[],size:0},i={data:[],size:0},o={data:[],size:0},s=function(e,n,r){var i,o,s=new Uint8Array(e.size),a={type:n},l=0,c=0;if(e.data.length&&!(e.size<9)){for(a.trackId=e.data[0].pid,l=0;l<e.data.length;l++)s.set((o=e.data[l]).data,c),c+=o.data.byteLength;var u,h,d,A;A=(u=s)[0]<<16|u[1]<<8|u[2],(h=a).data=new Uint8Array,1===A&&(h.packetLength=6+(u[4]<<8|u[5]),h.dataAlignmentIndicator=0!=(4&u[6]),192&(d=u[7])&&(h.pts=(14&u[9])<<27|(255&u[10])<<20|(254&u[11])<<12|(255&u[12])<<5|(254&u[13])>>>3,h.pts*=4,h.pts+=(6&u[13])>>>1,h.dts=h.pts,64&d&&(h.dts=(14&u[14])<<27|(255&u[15])<<20|(254&u[16])<<12|(255&u[17])<<5|(254&u[18])>>>3,h.dts*=4,h.dts+=(6&u[18])>>>1)),h.data=u.subarray(9+u[8])),i="video"===n||a.packetLength<=e.size,(r||i)&&(e.size=0,e.data.length=0),i&&t.trigger("data",a)}};Re.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var e,t;switch(a.streamType){case Ee.H264_STREAM_TYPE:e=r,t="video";break;case Ee.ADTS_STREAM_TYPE:e=i,t="audio";break;case Ee.METADATA_STREAM_TYPE:e=o,t="timed-metadata";break;default:return}a.payloadUnitStartIndicator&&s(e,t,!0),e.data.push(a),e.size+=a.data.byteLength},pmt:function(){var r={type:"metadata",tracks:[]};null!==(e=a.programMapTable).video&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",r)}})[a.type]()},this.reset=function(){r.size=0,r.data.length=0,i.size=0,i.data.length=0,this.trigger("reset")},this.flushStreams_=function(){s(r,"video"),s(i,"audio"),s(o,"timed-metadata")},this.flush=function(){if(!n&&e){var r={type:"metadata",tracks:[]};null!==e.video&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",r)}n=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new Q;var He={PAT_PID:0,MP2T_PACKET_LENGTH:Qe,TransportPacketStream:De,TransportParseStream
vendor: 6,466 bytes, line 1
1:Ne,ElementaryStream:Re,TimestampRolloverStream:je,CaptionStream:Se.CaptionStream,Cea608Stream:Se.Cea608Stream,Cea708Stream:Se.Cea708Stream,MetadataStream:Ue};for(var Ve in Ee)Ee.hasOwnProperty(Ve)&&(He[Ve]=Ee[Ve]);var qe,Ke=He,Ge=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(qe=function(e){var t,n=0;qe.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(r){var i,o,s,a,l,c=0;if(e||(n=0),"audio"===r.type){var u;for(t&&t.length?(s=t,(t=new Uint8Array(s.byteLength+r.data.byteLength)).set(s),t.set(r.data,s.byteLength)):t=r.data;c+7<t.length;)if(255===t[c]&&240==(246&t[c+1])){if("number"==typeof u&&(this.skipWarn_(u,c),u=null),o=2*(1&~t[c+1]),l=9e4*(a=1024*(1+(3&t[c+6])))/Ge[(60&t[c+2])>>>2],t.byteLength-c<(i=(3&t[c+3])<<11|t[c+4]<<3|(224&t[c+5])>>5))break;this.trigger("data",{pts:r.pts+n*l,dts:r.dts+n*l,sampleCount:a,audioobjecttype:1+(t[c+2]>>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:Ge[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+o,c+i)}),n++,c+=i}else"number"!=typeof u&&(u=c),c++;"number"==typeof u&&(this.skipWarn_(u,c),u=null),t=t.subarray(c)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new Q;var ze,We,$e,Ye=qe,Xe=function(e){var t=e.byteLength,n=0,r=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+r},this.loadWord=function(){var i=e.byteLength-t,o=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw new Error("no bytes available");o.set(e.subarray(i,i+s)),n=new DataView(o.buffer).getUint32(0),r=8*s,t-=s},this.skipBits=function(e){var i;r>e?(n<<=e,r-=e):(e-=r,e-=8*(i=Math.floor(e/8)),t-=i,this.loadWord(),n<<=e,r-=e)},this.readBits=function(e){var i=Math.min(r,e),o=n>>>32-i;return(r-=i)>0?n<<=i:t>0&&this.loadWord(),(i=e-i)>0?o<<i|this.readBits(i):o},this.skipLeadingZeros=function(){var e;for(e=0;e<r;++e)if(0!=(n&2147483648>>>e))return n<<=e,r-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(We=function(){var e,t,n=0;We.prototype.init.call(this),this.push=function(r){var i;t?((i=new Uint8Array(t.byteLength+r.data.byteLength)).set(t),i.set(r.data,t.byteLength),t=i):t=r.data;for(var o=t.byteLength;n<o-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<o;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<o);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new Q,$e={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(ze=function(){var e,t,n,r,i,o,s,a=new We;ze.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,r=e.dts,a.push(e))},a.on("data",function(s){var a={trackId:t,pts:n,dts:r,data:s,nalUnitTypeCode:31&s[0]};switch(a.nalUnitTypeCode){case 5:a.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:a.nalUnitType="sei_rbsp",a.escapedRBSP=i(s.subarray(1));break;case 7:a.nalUnitType="seq_parameter_set_rbsp",a.escapedRBSP=i(s.subarray(1)),a.config=o(a.escapedRBSP);break;case 8:a.nalUnitType="pic_parameter_set_rbsp";break;case 9:a.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",a)}),a.on("done",function(){e.trigger("done")}),a.on("partialdone",function(){e.trigger("partialdone")}),a.on("reset",function(){e.trigger("reset")}),a.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){a.flush()},this.partialFlush=function(){a.partialFlush()},this.reset=function(){a.reset()},this.endTimeline=function(){a.endTimeline()},s=function(e,t){var n,r=8,i=8;for(n=0;n<e;n++)0!==i&&(i=(r+t.readExpGolomb()+256)%256),r=0===i?r:i},i=function(e){for(var t,n,r=e.byteLength,i=[],o=1;o<r-2;)0===e[o]&&0===e[o+1]&&3===e[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var s=0;for(o=0;o<t;s++,o++)s===i[0]&&(s++,i.shift()),n[o]=e[s];return n},o=function(e){var t,n,r,i,o,a,l,c,u,h,d,A,p=0,f=0,g=0,m=0,v=[1,1];if(n=(t=new Xe(e)).readUnsignedByte(),i=t.readUnsignedByte(),r=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),$e[n]&&(3===(o=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(d=3!==o?8:12,A=0;A<d;A++)t.readBoolean()&&s(A<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(a=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===a)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),A=0;A<l;A++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),c=t.readUnsignedExpGolomb(),u=t.readUnsignedExpGolomb(),0===(h=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(p=t.readUnsignedExpGolomb(),f=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean())switch(t.readUnsignedByte()){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:v=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}return{profileIdc:n,levelIdc:r,profileCompatibility:i,width:16*(c+1)-2*p-2*f,height:(2-h)*(u+1)*16-2*g-2*m,s
1arRatio:v}}}).prototype=new Q;var Je,Ze={H264Stream:ze,NalByteStream:We},et=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],tt=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return n=n>=0?n:0,(16&e[t+5])>>4?n+20:n+10},nt=function e(t,n){return t.length-n<10||t[n]!=="I".charCodeAt(0)||t[n+1]!=="D".charCodeAt(0)||t[n+2]!=="3".charCodeAt(0)?n:e(t,n+=tt(t,n))},rt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},it={isLikelyAacData:function(e){var t=nt(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:tt,parseAdtsSize:function(e,t){return 6144&e[t+3]|e[t+4]<<3|(224&e[t+5])>>5},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return et[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,r;t=10,64&e[5]&&(t+=4,t+=rt(e.subarray(10,14)));do{if((n=rt(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){r=e.subarray(t+10,t+n+10);for(var i=0;i<r.byteLength;i++)if(0===r[i]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(e,t,n){var r,i="";for(r=0;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i}(r,0,i))){var o=r.subarray(i+1),s=(1&o[3])<<30|o[4]<<22|o[5]<<14|o[6]<<6|o[7]>>>2;return(s*=4)+(3&o[7])}break}}t+=10,t+=n}while(t<e.byteLength);return null}};(Je=function(){var e=new Uint8Array,t=0;Je.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var r,i,o,s=0,a=0;for(e.length?(o=e.length,(e=new Uint8Array(n.byteLength+o)).set(e.subarray(0,o)),e.set(n,o)):e=n;e.length-a>=3;)if(e[a]!=="I".charCodeAt(0)||e[a+1]!=="D".charCodeAt(0)||e[a+2]!=="3".charCodeAt(0))if(255!=(255&e[a])||240!=(240&e[a+1]))a++;else{if(e.length-a<7)break;if(a+(s=it.parseAdtsSize(e,a))>e.length)break;i={type:"audio",data:e.subarray(a,a+s),pts:t,dts:t},this.trigger("data",i),a+=s}else{if(e.length-a<10)break;if(a+(s=it.parseId3TagSize(e,a))>e.length)break;r={type:"timed-metadata",data:e.subarray(a,a+s)},this.trigger("data",r),a+=s}e=e.length-a>0?e.subarray(a):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new Q;var ot,st,at,lt,ct=Je,ut=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],ht=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],dt=Ze.H264Stream,At=it.isLikelyAacData,pt=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},ft=function(e,t,n,r,i,o){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(r-t),pts:e+(i-n)},prependedContentDuration:o,baseMediaDecodeTime:e}};(st=function(e,t){var n=[],r=0,i=0,o=0,s=1/0;t=t||{},st.prototype.init.call(this),this.push=function(t){de(e,t),e&&ut.forEach(function(n){e[n]=t[n]}),n.push(t)},this.setEarliestDts=function(e){i=e},this.setVideoBaseMediaDecodeTime=function(e){s=e},this.setAudioAppendStart=function(e){o=e},this.flush=function(){var a,l,c,u,h,d,A;0!==n.length?(a=function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))}(n,e,i),e.baseMediaDecodeTime=he(e,t.keepOriginalTimestamps),A=function(e,t,n,r){var i,o,s,a,l,c=0,u=0,h=0;if(t.length&&(i=ae(e.baseMediaDecodeTime,e.samplerate),o=Math.ceil(ie/(e.samplerate/1024)),n&&r&&(c=i-Math.max(n,r),h=(u=Math.floor(c/o))*o),!(u<1||h>45e3))){for((s=function(){if(!V){var e={96e3:[ee,[227,64],ne(154),[56]],88200:[ee,[231],ne(170),[56]],64e3:[ee,[248,192],ne(240),[56]],48e3:[ee,[255,192],ne(268),[55,148,128],ne(54),[112]],44100:[ee,[255,192],ne(268),[55,163,128],ne(84),[112]],32e3:[ee,[255,192],ne(268),[55,234],ne(226),[112]],24e3:[ee,[255,192],ne(268),[55,255,128],ne(268),[111,112],ne(126),[224]],16e3:[ee,[255,192],ne(268),[55,255,128],ne(268),[111,255],ne(269),[223,108],ne(195),[1,192]],12e3:[te,ne(268),[3,127,248],ne(268),[6,255,240],ne(268),[13,255,224],ne(268),[27,253,128],ne(259),[56]],11025:[te,ne(268),[3,127,248],ne(268),[6,255,240],ne(268),[13,255,224],ne(268),[27,255,192],ne(268),[55,175,128],ne(108),[112]],8e3:[te,ne(268),[3,121,16],ne(47),[7]]};t=e,V=Object.keys(t).reduce(function(e,n){return e[n]=new Uint8Array(t[n].reduce(function(e,t){return e.concat(t)},[])),e},{})}var t;return V}()[e.samplerate])||(s=t[0].data),a=0;a<u;a++)t.splice(0,0,{data:s,dts:(l=t[0]).dts-o,pts:l.pts-o});return e.baseMediaDecodeTime-=Math.floor(le(h,e.samplerate)),h}}(e,a,o,s),e.samples=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push({size:e[t].data.byteLength,duration:1024});return n}(a),c=X(function(e){var t,n,r=0,i=new Uint8Array(function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n}(e));for(t=0;t<e.length;t++)i.set((n=e[t]).data,r),r+=n.data.byteLength;return i}(a)),n=[],l=J(r,[e]),u=new Uint8Array(l.byteLength+c.byteLength),r++,u.set(l),u.set(c,l.byteLength),ue(e),h=Math.ceil(9216e4/e.samplerate),a.length&&(d=a.length*h,this.trigger("segmentTimingInfo",ft(ae(e.baseMediaDecodeTime,e.samplerate),a[0].dts,a[0].pts,a[0].dts+d,a[0].pts+d,A||0)),this.trigger("timingInfo",{start:a[0].pts,end:a[0].pts+d})),this.trigger("data",{track:e,boxes:u}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){ue(e),n=[],this.trigger("reset")}}).prototype=new Q,(ot=function(e,t){var n,r,i=0,o=[],s=[];t=t||{},ot.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){de(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],ht.forEach(function(t){e[t]=n[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),o.push(t)},this.flush=function(){for(var n,r,a,l,c,u,h,d=0;o.length&&"access_unit_delimiter_rbsp"!==o[0].nalUnitType;)o.shift();
1if(0===o.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if((r=function(e){var t,n,r=[],i=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(r.length&&(i.push(r),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration),(r=[n]).nalCount=n.length,r.byteLength=n.byteLength,r.pts=n.pts,r.dts=n.dts,r.duration=n.duration):(r.duration+=n.duration,r.nalCount+=n.length,r.byteLength+=n.byteLength,r.push(n));return i.length&&r.duration<=0&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration,i.push(r),i}(function(e){var t,n,r=[],i=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,r.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(r.length&&(r.duration=n.dts-r.dts,i.byteLength+=r.byteLength,i.nalCount+=r.length,i.duration+=r.duration,i.push(r)),(r=[n]).byteLength=n.data.byteLength,r.pts=n.pts,r.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(r.keyFrame=!0),r.duration=n.dts-r.dts,r.byteLength+=n.data.byteLength,r.push(n));return i.length&&(!r.duration||r.duration<=0)&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.length,i.duration+=r.duration,i.push(r),i}(o)))[0][0].keyFrame||((n=this.getGopForFusion_(o[0],e))?(d=n.duration,r.unshift(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.pts=n.pts,r.dts=n.dts,r.duration+=n.duration):r=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e}(r)),s.length){var A;if(!(A=t.alignGopsAtEnd?this.alignGopsAtEnd_(r):this.alignGopsAtStart_(r)))return this.gopCache_.unshift({gop:r.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");ue(e),r=A}de(e,r),e.samples=function(e,t){var n,r,i,o,s=0,a=[];for(n=0;n<e.length;n++)for(o=e[n],r=0;r<o.length;r++)s+=(i=Z(o[r],s)).size,a.push(i);return a}(r),l=X(function(e){var t,n,r,i,o,s,a=0,l=new Uint8Array(e.byteLength+4*e.nalCount),c=new DataView(l.buffer);for(t=0;t<e.length;t++)for(i=e[t],n=0;n<i.length;n++)for(o=i[n],r=0;r<o.length;r++)c.setUint32(a,(s=o[r]).data.byteLength),l.set(s.data,a+=4),a+=s.data.byteLength;return l}(r)),e.baseMediaDecodeTime=he(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",r.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),this.trigger("segmentTimingInfo",ft(e.baseMediaDecodeTime,(u=r[0]).dts,u.pts,(h=r[r.length-1]).dts+h.duration,h.pts+h.duration,d)),this.trigger("timingInfo",{start:r[0].pts,end:r[r.length-1].pts+r[r.length-1].duration}),this.gopCache_.unshift({gop:r.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),a=J(i,[e]),c=new Uint8Array(a.byteLength+l.byteLength),i++,c.set(a),c.set(l,a.byteLength),this.trigger("data",{track:e,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),o=[],this.gopCache_.length=0,s.length=0,this.trigger("reset")},this.resetStream_=function(){ue(e),n=void 0,r=void 0},this.getGopForFusion_=function(t){var n,r,i,o,s,a=1/0;for(s=0;s<this.gopCache_.length;s++)i=(o=this.gopCache_[s]).gop,e.pps&&pt(e.pps[0],o.pps[0])&&e.sps&&pt(e.sps[0],o.sps[0])&&(i.dts<e.timelineStartInfo.dts||(n=t.dts-i.dts-i.duration)>=-1e4&&n<=45e3&&(!r||a>n)&&(r=o,a=n));return r?r.gop:null},this.alignGopsAtStart_=function(e){var t,n,r,i,o,a,l,c;for(o=e.byteLength,a=e.nalCount,l=e.duration,t=n=0;t<s.length&&n<e.length&&(r=s[t]).pts!==(i=e[n]).pts;)i.pts>r.pts?t++:(n++,o-=i.byteLength,a-=i.nalCount,l-=i.duration);return 0===n?e:n===e.length?null:((c=e.slice(n)).byteLength=o,c.duration=l,c.nalCount=a,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(e){var t,n,r,i,o,a,l;for(t=s.length-1,n=e.length-1,o=null,a=!1;t>=0&&n>=0;){if((r=s[t]).pts===(i=e[n]).pts){a=!0;break}r.pts>i.pts?t--:(t===s.length-1&&(o=n),n--)}if(!a&&null===o)return null;if(0===(l=a?n:o))return e;var c=e.slice(l),u=c.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return c.byteLength=u.byteLength,c.duration=u.duration,c.nalCount=u.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(e){s=e}}).prototype=new Q,(lt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,this.remuxTracks=void 0===(e=e||{}).remux||!!e.remux,this.keepOriginalTimestamps="boolean"==typeof e.keepOriginalTimestamps&&e.keepOriginalTimestamps,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,lt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}).prototype=new Q,lt.prototype.flush=function(e){var t,n,r,o,s=0,a={captions:[],captionStream
1s:{},metadata:[],info:{}},c=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(c=this.videoTrack.timelineStartInfo.pts,ht.forEach(function(e){a.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(c=this.audioTrack.timelineStartInfo.pts,ut.forEach(function(e){a.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(a.type=1===this.pendingTracks.length?this.pendingTracks[0].type:"combined",this.emittedTracks+=this.pendingTracks.length,r=function(e){var t,n=i(),r=l(e);return(t=new Uint8Array(n.byteLength+r.byteLength)).set(n),t.set(r,n.byteLength),t}(this.pendingTracks),a.initSegment=new Uint8Array(r.byteLength),a.initSegment.set(r),a.data=new Uint8Array(this.pendingBytes),o=0;o<this.pendingBoxes.length;o++)a.data.set(this.pendingBoxes[o],s),s+=this.pendingBoxes[o].byteLength;for(o=0;o<this.pendingCaptions.length;o++)(t=this.pendingCaptions[o]).startTime=ce(t.startPts,c,this.keepOriginalTimestamps),t.endTime=ce(t.endPts,c,this.keepOriginalTimestamps),a.captionStreams[t.stream]=!0,a.captions.push(t);for(o=0;o<this.pendingMetadata.length;o++)(n=this.pendingMetadata[o]).cueTime=ce(n.pts,c,this.keepOriginalTimestamps),a.metadata.push(n);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),o=0;o<a.captions.length;o++)this.trigger("caption",t=a.captions[o]);for(o=0;o<a.metadata.length;o++)this.trigger("id3Frame",n=a.metadata[o])}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},lt.prototype.setRemux=function(e){this.remuxTracks=e},(at=function(e){var t,n,r=this,i=!0;at.prototype.init.call(this),this.baseMediaDecodeTime=(e=e||{}).baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="aac",i.metadataStream=new Ke.MetadataStream,i.aacStream=new ct,i.audioTimestampRolloverStream=new Ke.TimestampRolloverStream("audio"),i.timedMetadataTimestampRolloverStream=new Ke.TimestampRolloverStream("timed-metadata"),i.adtsStream=new Ye,i.coalesceStream=new lt(e,i.metadataStream),i.headOfPipeline=i.aacStream,i.aacStream.pipe(i.audioTimestampRolloverStream).pipe(i.adtsStream),i.aacStream.pipe(i.timedMetadataTimestampRolloverStream).pipe(i.metadataStream).pipe(i.coalesceStream),i.metadataStream.on("timestamp",function(e){i.aacStream.setTimestamp(e.timeStamp)}),i.aacStream.on("data",function(o){"timed-metadata"!==o.type&&"audio"!==o.type||i.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:r.baseMediaDecodeTime},codec:"adts",type:"audio"},i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new st(n,e),i.audioSegmentStream.on("log",r.getLogTrigger_("audioSegmentStream")),i.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="ts",i.metadataStream=new Ke.MetadataStream,i.packetStream=new Ke.TransportPacketStream,i.parseStream=new Ke.TransportParseStream,i.elementaryStream=new Ke.ElementaryStream,i.timestampRolloverStream=new Ke.TimestampRolloverStream,i.adtsStream=new Ye,i.h264Stream=new dt,i.captionStream=new Ke.CaptionStream(e),i.coalesceStream=new lt(e,i.metadataStream),i.headOfPipeline=i.packetStream,i.packetStream.pipe(i.parseStream).pipe(i.elementaryStream).pipe(i.timestampRolloverStream),i.timestampRolloverStream.pipe(i.h264Stream),i.timestampRolloverStream.pipe(i.adtsStream),i.timestampRolloverStream.pipe(i.metadataStream).pipe(i.coalesceStream),i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream),i.elementaryStream.on("data",function(o){var s;if("metadata"===o.type){for(s=o.tracks.length;s--;)t||"video"!==o.tracks[s].type?n||"audio"!==o.tracks[s].type||((n=o.tracks[s]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime):(t=o.tracks[s]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime;t&&!i.videoSegmentStream&&(i.coalesceStream.numberOfTracks++,i.videoSegmentStream=new ot(t,e),i.videoSegmentStream.on("log",r.getLogTrigger_("videoSegmentStream")),i.videoSegmentStream.on("timelineStartInfo",function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,i.audioSegmentStream.setEarliestDts(t.dts-r.baseMediaDecodeTime))}),i.videoSegmentStream.on("processedGopsInfo",r.trigger.bind(r,"gopInfo")),i.videoSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"videoSegmentTimingInfo")),i.videoSegmentStream.on("baseMediaDecodeTime",function(e){n&&i.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),i.videoSegmentStream.on("timingInfo",r.trigger.bind(r,"videoTimingInfo")),i.h264Stream.pipe(i.videoSegmentStream).pipe(i.coalesceStream)),n&&!i.audioSegmentStream&&(i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new st(n,e),i.audioSegmentStream.on("log",r.getLogTrigger_("audioSegmentStream")),i.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),i.audioSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"audioSegmentTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("id3Frame",function(e){e.dispatchType=i.metadataStream.dispatchType,r.trigger("id3Frame",e)}),i.coalesceStream.on("caption",this.trigger.bind(this,"caption")),i.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(r){var i=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=r),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,ue(n),i.audioTimestampRolloverStream&&i.audioTimestampRolloverStream.discontinuity()),t&&(i.videoSegmentStream&&(i.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,ue(t),i.captionStream.reset()),i.timestampRolloverStream&&i.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(i){var t=At(e);if(t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),this.transmuxPipeline_)for(var n=Object.keys(this.transmuxPipeline_),r=0;r<n.length;r++){var o=n[r];"headOfPipeline"!==o&&this.transmuxPipeline_[o].on&&this.transmuxPipeline_[o].on("log",this.getLogTrigger_(o))}i=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){i=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new Q;var gt,mt={Transmuxer:at,VideoSegmentStream:ot,AudioSegmentStream:st,AUDIO_PROPERTIES:ut,VIDEO_PROPERTIES:ht,generateSegmentTimingInfo:ft},vt=function(e){return e>>>0},yt=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),(t+=String.fromCharCode(e[2]))+String.fromCharCode(e[3])},bt=vt,_t=function e(t,n){var r,i,o,s,a,l=[];
1if(!n.length)return null;for(r=0;r<t.byteLength;)i=bt(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]),o=yt(t.subarray(r+4,r+8)),s=i>1?r+i:t.byteLength,o===n[0]&&(1===n.length?l.push(t.subarray(r+8,s)):(a=e(t.subarray(r+8,s),n.slice(1))).length&&(l=l.concat(a))),r=s;return l},wt=vt,Ct=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},St=function(e){for(var t,n,r=e.byteLength,i=[],o=1;o<r-2;)0===e[o]&&0===e[o+1]&&3===e[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var s=0;for(o=0;o<t;s++,o++)s===i[0]&&(s++,i.shift()),n[o]=e[s];return n},Et=Se.CaptionStream,It=function(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(n<i.size)return i;n-=i.size}return null},xt=function(){var e,t,n,r,i,o,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new Et,s=!0,o=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/r,e.endTime=e.endPts/r,i.captions.push(e),i.captionStreams[e.stream]=!0}),e.on("log",function(e){i.logs.push(e)})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length||n===e[0]&&r===t[n])},this.parse=function(e,o,s){var a;if(!this.isInitialized())return null;if(!o||!s)return null;if(this.isNewInit(o,s))r=s[n=o[0]];else if(null===n||!r)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,o,s)}return(a=function(e,t,n){if(null===t)return null;var r=function(e,t){var n=_t(e,["moof","traf"]),r=_t(e,["mdat"]),i={},o=[];return r.forEach(function(e,t){o.push({mdat:e,traf:n[t]})}),o.forEach(function(e){var n,r=e.mdat,o=e.traf,s=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},i=1&r.flags[2],o=2&r.flags[2],s=8&r.flags[2],a=16&r.flags[2],l=32&r.flags[2],c=65536&r.flags[0],u=131072&r.flags[0];return t=8,i&&(t+=4,r.baseDataOffset=n.getUint32(12),t+=4),o&&(r.sampleDescriptionIndex=n.getUint32(t),t+=4),s&&(r.defaultSampleDuration=n.getUint32(t),t+=4),a&&(r.defaultSampleSize=n.getUint32(t),t+=4),l&&(r.defaultSampleFlags=n.getUint32(t)),c&&(r.durationIsEmpty=!0),!i&&u&&(r.baseDataOffsetIsMoof=!0),r}(_t(o,["tfhd"])[0]),a=s.trackId,l=_t(o,["tfdt"]),c=l.length>0?function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:wt(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=wt(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t}(l[0]).baseMediaDecodeTime:0,u=_t(o,["trun"]);t===a&&u.length>0&&(n=function(e,t,n){var r,i,o,s,a=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(i=0;i+4<e.length;i+=o)if(o=a.getUint32(i),i+=4,!(o<=0))switch(31&e[i]){case 6:var c=e.subarray(i+1,i+1+o),u=It(i,t);if(r={nalUnitType:"sei_rbsp",size:o,data:c,escapedRBSP:St(c),trackId:n},u)r.pts=u.pts,r.dts=u.dts,s=u;else{if(!s){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+i+" for trackId "+n+". See mux.js#223."});break}r.pts=s.pts,r.dts=s.dts}l.seiNals.push(r)}return l}(r,function(e,t,n){var r=t,i=n.defaultSampleDuration||0,o=n.defaultSampleSize||0,s=n.trackId,a=[];return e.forEach(function(e){var t=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=1&n.flags[2],o=4&n.flags[2],s=1&n.flags[1],a=2&n.flags[1],l=4&n.flags[1],c=8&n.flags[1],u=r.getUint32(4),h=8;for(i&&(n.dataOffset=r.getInt32(h),h+=4),o&&u&&(t={flags:Ct(e.subarray(h,h+4))},h+=4,s&&(t.duration=r.getUint32(h),h+=4),a&&(t.size=r.getUint32(h),h+=4),c&&(t.compositionTimeOffset=1===n.version?r.getInt32(h):r.getUint32(h),h+=4),n.samples.push(t),u--);u--;)t={},s&&(t.duration=r.getUint32(h),h+=4),a&&(t.size=r.getUint32(h),h+=4),l&&(t.flags=Ct(e.subarray(h,h+4)),h+=4),c&&(t.compositionTimeOffset=1===n.version?r.getInt32(h):r.getUint32(h),h+=4),n.samples.push(t);return n}(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=o),e.trackId=s,e.dts=r,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),e.pts=r+e.compositionTimeOffset,r+=e.duration}),a=a.concat(t)}),a}(u,c,s),a),i[a]||(i[a]={seiNals:[],logs:[]}),i[a].seiNals=i[a].seiNals.concat(n.seiNals),i[a].logs=i[a].logs.concat(n.logs))}),i}(e,t)[t]||{};return{seiNals:r.seiNals,logs:r.logs,timescale:n}}(e,n,r))&&a.logs&&(i.logs=i.logs.concat(a.logs)),null!==a&&a.seiNals?(this.pushNals(a.seiNals),this.flushStream(),i):i.logs.length?{logs:i.logs,captions:[],captionStream
1s:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;o?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){i.captions=[],i.captionStreams={},i.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,r=null,i?this.clearParsedCaptions():i={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},Tt=vt,Bt=function(e){return("00"+e.toString(16)).slice(-2)},kt=(gt=function(e){var t=0===e[0]?12:20;return Tt(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},function(e){var t=31&e[1];return(t<<=8)|e[2]}),Pt=function(e){return!!(64&e[1])},Ot=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Ft=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Lt=Pe,Mt={};Mt.ts={parseType:function(e,t){var n=kt(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=Pt(e),n=4+Ot(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=Pt(e),r=4+Ot(e);if(n&&(r+=e[r]+1),1&e[r+5]){var i;i=3+((15&e[r+1])<<8|e[r+2])-4;for(var o=12+((15&e[r+10])<<8|e[r+11]);o<i;){var s=r+o;t[(31&e[s+1])<<8|e[s+2]]=e[s],o+=5+((15&e[s+3])<<8|e[s+4])}return t}},parsePayloadUnitStartIndicator:Pt,parsePesType:function(e,t){switch(t[kt(e)]){case Ee.H264_STREAM_TYPE:return"video";case Ee.ADTS_STREAM_TYPE:return"audio";case Ee.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!Pt(e))return null;var t=4+Ot(e);if(t>=e.byteLength)return null;var n,r=null;return 192&(n=e[t+7])&&((r={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,r.pts*=4,r.pts+=(6&e[t+13])>>>1,r.dts=r.pts,64&n&&(r.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,r.dts*=4,r.dts+=(6&e[t+18])>>>1)),r},videoPacketContainsKeyFrame:function(e){for(var t=4+Ot(e),n=e.subarray(t),r=0,i=0,o=!1;i<n.byteLength-3;i++)if(1===n[i+2]){r=i+5;break}for(;r<n.byteLength;)switch(n[r]){case 0:if(0!==n[r-1]){r+=2;break}if(0!==n[r-2]){r++;break}i+3!==r-2&&"slice_layer_without_partitioning_rbsp_idr"===Ft(31&n[i+3])&&(o=!0);do{r++}while(1!==n[r]&&r<n.length);i=r-2,r+=3;break;case 1:if(0!==n[r-1]||0!==n[r-2]){r+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Ft(31&n[i+3])&&(o=!0),i=r-2,r+=3;break;default:r+=3}return n=n.subarray(i),r-=i,i=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===Ft(31&n[i+3])&&(o=!0),o}},Mt.aac=it;var Dt=ie,Nt=188,Rt=71,Ut=function(e,t,n){for(var r,i,o,s,a=0,l=Nt,c=!1;l<=e.byteLength;)if(e[a]!==Rt||e[l]!==Rt&&l!==e.byteLength)a++,l++;else{switch(r=e.subarray(a,l),Mt.ts.parseType(r,t.pid)){case"pes":i=Mt.ts.parsePesType(r,t.table),o=Mt.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&o&&(s=Mt.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),c=!0)}if(c)break;a+=Nt,l+=Nt}for(a=(l=e.byteLength)-Nt,c=!1;a>=0;)if(e[a]!==Rt||e[l]!==Rt&&l!==e.byteLength)a--,l--;else{switch(r=e.subarray(a,l),Mt.ts.parseType(r,t.pid)){case"pes":i=Mt.ts.parsePesType(r,t.table),o=Mt.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&o&&(s=Mt.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),c=!0)}if(c)break;a-=Nt,l-=Nt}},jt=function(e,t,n){for(var r,i,o,s,a,l,c,u=0,h=Nt,d=!1,A={data:[],size:0};h<e.byteLength;)if(e[u]!==Rt||e[h]!==Rt)u++,h++;else{switch(r=e.subarray(u,h),Mt.ts.parseType(r,t.pid)){case"pes":if(i=Mt.ts.parsePesType(r,t.table),o=Mt.ts.parsePayloadUnitStartIndicator(r),"video"===i&&(o&&!d&&(s=Mt.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),d=!0),!n.firstKeyFrame)){if(o&&0!==A.size){for(a=new Uint8Array(A.size),l=0;A.data.length;)c=A.data.shift(),a.set(c,l),l+=c.byteLength;if(Mt.ts.videoPacketContainsKeyFrame(a)){var p=Mt.ts.parsePesTime(a);p?(n.firstKeyFrame=p,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}A.size=0}A.data.push(r),A.size+=r.byteLength}}if(d&&n.firstKeyFrame)break;u+=Nt,h+=Nt}for(u=(h=e.byteLength)-Nt,d=!1;u>=0;)if(e[u]!==Rt||e[h]!==Rt)u--,h--;else{switch(r=e.subarray(u,h),Mt.ts.parseType(r,t.pid)){case"pes":i=Mt.ts.parsePesType(r,t.table),o=Mt.ts.parsePayloadUnitStartIndicator(r),"video"===i&&o&&(s=Mt.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),d=!0)}if(d)break;u-=Nt,h-=Nt}},Qt=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new mt.Transmuxer(this.options),function(e,t){t.on("data",function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var r=t.data;t.data=r.buffer,e.postMessage({action:"data",segment:t,byteOffset:r.byteOffset,byteLength:r.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){var n={start:{decode:se(t.start.dts),presentation:se(t.start.pts)},end:{decode:se(t.end.dts),presentation:se(t.end.pts)},baseMediaDecodeTime:se(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=se(t.prepe
1ndedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})}),t.on("audioSegmentTimingInfo",function(t){var n={start:{decode:se(t.start.dts),presentation:se(t.start.pts)},end:{decode:se(t.end.dts),presentation:se(t.end.pts)},baseMediaDecodeTime:se(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=se(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:se(t.start),end:se(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:se(t.start),end:se(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})}(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new xt,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.data,n=function(e,t){var n,r,i;return n=_t(t,["moof","traf"]),r=[].concat.apply([],n.map(function(t){return _t(t,["tfhd"]).map(function(n){var r,i,o;return r=Tt(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),i=e[r]||9e4,(o="number"!=typeof(o=_t(t,["tfdt"]).map(function(e){var t,n;return t=e[0],n=Tt(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),1===t&&(n*=Math.pow(2,32),n+=Tt(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),n})[0])||isNaN(o)?1/0:o)/i})})),i=Math.min.apply(null,r),isFinite(i)?i:0}(e.timescales,t);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:t},[t.buffer])},t.probeMp4Tracks=function(e){var t=e.data,n=function(e){var t=_t(e,["moov","trak"]),n=[];return t.forEach(function(e){var t,r,i={},o=_t(e,["tkhd"])[0];o&&(r=(t=new DataView(o.buffer,o.byteOffset,o.byteLength)).getUint8(0),i.id=t.getUint32(0===r?12:20));var s=_t(e,["mdia","hdlr"])[0];if(s){var a=yt(s.subarray(8,12));i.type="vide"===a?"video":"soun"===a?"audio":a}var l=_t(e,["mdia","minf","stbl","stsd"])[0];if(l){var c=l.subarray(8);i.codec=yt(c.subarray(4,8));var u,h=_t(c,[i.codec])[0];h&&(/^[a-z]vc[1-9]$/i.test(i.codec)?(u=h.subarray(78),"avcC"===yt(u.subarray(4,8))&&u.length>11?(i.codec+=".",i.codec+=Bt(u[9]),i.codec+=Bt(u[10]),i.codec+=Bt(u[11])):i.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(i.codec)?(u=h.subarray(28),"esds"===yt(u.subarray(4,8))&&u.length>20&&0!==u[19]?(i.codec+="."+Bt(u[19]),i.codec+="."+Bt(u[20]>>>2&63).replace(/^0/,"")):i.codec="mp4a.40.2"):i.codec=i.codec.toLowerCase())}var d=_t(e,["mdia","mdhd"])[0];d&&(i.timescale=gt(d)),n.push(i)}),n}(t);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,n=e.baseStartTime,r=function(e,t){var n;return(n=Mt.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,r=0,i=null,o=null,s=0,a=0;e.length-a>=3;){switch(Mt.aac.parseType(e,a)){case"timed-metadata":if(e.length-a<10){n=!0;break}if((s=Mt.aac.parseId3TagSize(e,a))>e.length){n=!0;break}null===o&&(t=e.subarray(a,a+s),o=Mt.aac.parseAacTimestamp(t)),a+=s;break;case"audio":if(e.length-a<7){n=!0;break}if((s=Mt.aac.parseAdtsSize(e,a))>e.length){n=!0;break}null===i&&(t=e.subarray(a,a+s),i=Mt.aac.parseSampleRate(t)),r++,a+=s;break;default:a++}if(n)return null}if(null===i||null===o)return null;var l=Dt/i;return{audio:[{type:"audio",dts:o,pts:o},{type:"audio",dts:o+1024*r*l,pts:o+1024*r*l}]}}(e):function(e){var t={pid:null,table:null},n={};for(var r in function(e,t){for(var n,r=0,i=Nt;i<e.byteLength;)if(e[r]!==Rt||e[i]!==Rt)r++,i++;else{switch(n=e.subarray(r,i),Mt.ts.parseType(n,t.pid)){case"pat":t.pid=Mt.ts.parsePat(n);break;case"pmt":var o=Mt.ts.parsePmt(n);t.table=t.table||{},Object.keys(o).forEach(function(e){t.table[e]=o[e]})}r+=Nt,i+=Nt}}(e,t),t.table)if(t.table.hasOwnProperty(r))switch(t.table[r]){case Ee.H264_STREAM_TYPE:n.video=[],jt(e,t,n),0===n.video.length&&delete n.video;break;case Ee.ADTS_STREAM_TYPE:n.audio=[],Ut(e,t,n),0===n.audio.length&&delete n.audio}return n}(e))&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;
1(void 0===n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach(function(e){e.dts=Lt(e.dts,n),e.pts=Lt(e.pts,n),e.dtsTime=e.dts/Dt,e.ptsTime=e.pts/Dt})}if(e.video&&e.video.length){var r=t;if((void 0===r||isNaN(r))&&(r=e.video[0].dts),e.video.forEach(function(e){e.dts=Lt(e.dts,r),e.pts=Lt(e.pts,r),e.dtsTime=e.dts/Dt,e.ptsTime=e.pts/Dt}),e.firstKeyFrame){var i=e.firstKeyFrame;i.dts=Lt(i.dts,r),i.pts=Lt(i.pts,r),i.dtsTime=i.dts/Dt,i.ptsTime=i.pts/Dt}}}(n,t),n):null}(t,"number"!=typeof n||isNaN(n)?void 0:n*ie),i=null;r&&((i={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(i.videoStart=r.video[0].ptsTime),i.hasAudio&&(i.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:i,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){this.transmuxer.setBaseMediaDecodeTime(Math.round(oe(e.timestampOffset||0)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(oe(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new Qt(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new Qt(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}))),wa=function(e){var t=e.transmuxer,n=e.bytes,r=e.audioAppendStart,i=e.gopsToAlignWith,o=e.remux,s=e.onData,a=e.onTrackInfo,l=e.onAudioTimingInfo,c=e.onVideoTimingInfo,u=e.onVideoSegmentTimingInfo,h=e.onAudioSegmentTimingInfo,d=e.onId3,A=e.onCaptions,p=e.onDone,f=e.onEndedTimeline,g=e.onTransmuxerLog,m=e.isEndOfTimeline,v={buffer:[]},y=m;if(t.onmessage=function(n){t.currentTransmux===e&&("data"===n.data.action&&function(e,t,n){var r=e.data.segment,i=r.type,o=r.initSegment,s=r.videoFrameDtsTime,a=r.videoFramePtsTime;t.buffer.push({captions:r.captions,captionStreams:r.captionStreams,metadata:r.metadata});var l=e.data.segment.boxes||{data:e.data.segment.data},c={type:i,data:new Uint8Array(l.data,l.data.byteOffset,l.data.byteLength),initSegment:new Uint8Array(o.data,o.byteOffset,o.byteLength)};void 0!==s&&(c.videoFrameDtsTime=s),void 0!==a&&(c.videoFramePtsTime=a),n(c)}(n,v,s),"trackinfo"===n.data.action&&a(n.data.trackInfo),"gopInfo"===n.data.action&&function(e,t){t.gopInfo=e.data.gopInfo}(n,v),"audioTimingInfo"===n.data.action&&l(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&c(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&u(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&h(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&d([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&A(n.data.caption),"endedtimeline"===n.data.action&&(y=!1,f()),"log"===n.data.action&&g(n.data.log),"transmuxed"===n.data.type&&(y||(t.onmessage=null,function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)}({transmuxedData:v,callback:p}),Ca(t))))},r&&t.postMessage({action:"setAudioAppendStart",appendStart:r}),Array.isArray(i)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:i}),void 0!==o&&t.postMessage({action:"setRemux",remux:o}),n.byteLength){var b=n instanceof ArrayBuffer?n:n.buffer,_=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:b,byteOffset:_,byteLength:n.byteLength},[b])}m&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},Ca=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():wa(e.currentTransmux))},Sa=function(e,t){e.postMessage({action:t}),Ca(e)},Ea=function(e){!function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void Sa(t,e);t.transmuxQueue.push(Sa.bind(null,t,e))}("reset",e)},Ia=function(e){var t=e.transmuxer,n=e.endAction||e.action,r=e.callback,i=a({},e,{endAction:null,transmuxer:null,callback:null});if(t.addEventListener("message",function i(o){o.data.action===n&&(t.removeEventListener("message",i),o.data.data&&(o.data.data=new Uint8Array(o.data.data,e.byteOffset||0,e.byteLength||o.data.data.byteLength),e.data&&(e.data=o.data.data)),r(o.data))}),e.data){var o=e.data instanceof ArrayBuffer;i.byteOffset=o?0:e.data.byteOffset,i.byteLength=e.data.byteLength,t.postMessage(i,[o?e.data:e.data.buffer])}else t.postMessage(i)},xa=-101,Ta=-102,Ba=function(e){e.forEach(function(e){e.abort()})},ka=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:xa,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Ta,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:2,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:2,xhr:t}:null},Pa=function(e,t,n){return function(r,i){var o=i.response,s=ka(r,i);if(s)return n(s,e);if(16!==o.byteLength)return n({status:i.status,message:"Invalid HLS key at URL: "+i.uri,code:2,xhr:i},e);for(var a=new DataView(o),l=new Uint32Array([a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12)]),c=0;c<t.length;c++)t[c].bytes=l;return n(null,e)}},Oa=function(e,t){var n=at(e.map.bytes);if("mp4"!==n)return t({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+(e.map.resolvedUri||e.map.uri),code:2});Ia({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var r=n.tracks;return e.map.bytes=n.data,r.forEach(function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))}),t(null)}})},Fa=function(e){var t=e.segment,n=e.bytes,r=e.trackInfoFn,i=e.timingInfoFn,o=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,a=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,h=e.dataFn,d=e.doneFn,A=e.onTransmuxerLog,p=new Uint8Array(n);if(function(e){return qe(e,["moof"]).length>0}(p)){t.isFmp4=!0;var f=t.map.tracks,g={isFmp4:!0,hasVideo:!!f.video,hasAudio:!!f.audio};f.audio&&f.audio.codec&&"enca"!==f.audio.codec&&(g.audioCodec=f.audio.codec),f.video&&f.video.codec&&"encv"!==f.video.codec&&(g.videoCodec=f.video.codec),f.video&&f.audio&&(g.isMuxed=!0),r(t,g);var m=function(e){h(t,{data:p,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&l(t,e),d(null,t,{})};Ia({action:"probeMp4StartTime",timescales:t.map.timescales,data:p,transmuxer:t.transmuxer,callback:function(e){var r=e.data,o=e.startTime;n=r.buffer,t.bytes=p=r,g.hasAudio&&!g.isMuxed&&i(t,"audio","start",o),g.hasVideo&&i(t,"video","start",o),f.video&&r.byteLength&&t.transmuxer?Ia({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:p,timescales:t.map.timescales,trackIds:[f.video.id],callback:function(e){n=e.data.buffer,t.bytes=p=e.data,e.logs.forEac
1h(function(e){A(os.mergeOptions(e,{stream:"mp4CaptionParser"}))}),m(e.captions)}}):m()}})}else if(t.transmuxer){if(void 0===t.container&&(t.container=at(p)),"ts"!==t.container&&"aac"!==t.container)return r(t,{hasAudio:!1,hasVideo:!1}),void d(null,t,{});!function(e){var t=e.segment,n=e.bytes,r=e.trackInfoFn,i=e.timingInfoFn,o=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,a=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,h=e.dataFn,d=e.doneFn,A=e.onTransmuxerLog,p=t.map&&t.map.tracks||{},f=Boolean(p.audio&&p.video),g=i.bind(null,t,"audio","start"),m=i.bind(null,t,"audio","end"),v=i.bind(null,t,"video","start"),y=i.bind(null,t,"video","end");Ia({action:"probeTs",transmuxer:t.transmuxer,data:n,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=n=e.data;var i=e.result;i&&(r(t,{hasAudio:i.hasAudio,hasVideo:i.hasVideo,isMuxed:f}),r=null,i.hasAudio&&!f&&g(i.audioStart),i.hasVideo&&v(i.videoStart),g=null,v=null),function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void wa(e);e.transmuxer.transmuxQueue.push(e)}({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:f,onData:function(e){e.type="combined"===e.type?"video":e.type,h(t,e)},onTrackInfo:function(e){r&&(f&&(e.isMuxed=!0),r(t,e))},onAudioTimingInfo:function(e){g&&void 0!==e.start&&(g(e.start),g=null),m&&void 0!==e.end&&m(e.end)},onVideoTimingInfo:function(e){v&&void 0!==e.start&&(v(e.start),v=null),y&&void 0!==e.end&&y(e.end)},onVideoSegmentTimingInfo:function(e){o(e)},onAudioSegmentTimingInfo:function(e){s(e)},onId3:function(e,n){a(t,e,n)},onCaptions:function(e){l(t,[e])},isEndOfTimeline:c,onEndedTimeline:function(){u()},onTransmuxerLog:A,onDone:function(e){d&&(e.type="combined"===e.type?"video":e.type,d(null,t,e))}})}})}({segment:t,bytes:n,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:h,doneFn:d,onTransmuxerLog:A})}else d(null,t,{})},La=function(e,t){var n,r=e.id,i=e.key,o=e.encryptedBytes,s=e.decryptionWorker;s.addEventListener("message",function e(n){if(n.data.source===r){s.removeEventListener("message",e);var i=n.data.decrypted;t(new Uint8Array(i.bytes,i.byteOffset,i.byteLength))}}),n=i.bytes.slice?i.bytes.slice():new Uint32Array(Array.prototype.slice.call(i.bytes)),s.postMessage(ia({source:r,encrypted:o,key:n,iv:i.iv}),[o.buffer,n.buffer])},Ma=us("CodecUtils"),Da=function(e,t){var n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},Na=function(e){var t={};return e.forEach(function(e){var n=e.mediaType,r=e.type,i=e.details;t[n]=t[n]||[],t[n].push(j(""+r+i))}),Object.keys(t).forEach(function(e){if(t[e].length>1)return Ma("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]}),t},Ra=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},Ua=function(e,t){var n=t.attributes||{},r=Na(function(e){var t=e.attributes||{};if(t.CODECS)return Q(t.CODECS)}(t)||[]);if(Da(e,t)&&!r.audio&&!function(e,t){if(!Da(e,t))return!0;var n=e.mediaGroups.AUDIO[(t.attributes||{}).AUDIO];for(var r in n)if(!n[r].uri&&!n[r].playlists)return!0;return!1}(e,t)){var i=Na(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var r in n){var i=n[r];if(i.default&&i.playlists)return Q(i.playlists[0].attributes.CODECS)}return null}(e,n.AUDIO)||[]);i.audio&&(r.audio=i.audio)}return r},ja=us("PlaylistSelector"),Qa=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},Ha=function(e,t){if(!e)return"";var n=i().getComputedStyle(e);return n?n[t]:""},Va=function(e,t){var n=e.slice();e.sort(function(e,r){var i=t(e,r);return 0===i?n.indexOf(e)-n.indexOf(r):i})},qa=function(e,t){var n,r;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||i().Number.MAX_VALUE,t.attributes.BANDWIDTH&&(r=t.attributes.BANDWIDTH),n-(r||i().Number.MAX_VALUE)},Ka=function(e,t,n,r,o,s){if(e){var a={bandwidth:t,width:n,height:r,limitRenditionByPlayerDimensions:o},l=e.playlists;Ds.isAudioOnly(e)&&(l=s.getAudioTrackPlaylists_(),a.audioOnly=!0);var c=l.map(function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||i().Number.MAX_VALUE,width:t,height:n,playlist:e}});Va(c,function(e,t){return e.bandwidth-t.bandwidth});var u=(c=c.filter(function(e){return!Ds.isIncompatible(e.playlist)})).filter(function(e){return Ds.isEnabled(e.playlist)});u.length||(u=c.filter(function(e){return!Ds.isDisabled(e.playlist)}));var h=u.filter(function(e){return e.bandwidth*ga.BANDWIDTH_VARIANCE<t}),d=h[h.length-1],A=h.filter(function(e){return e.bandwidth===d.bandwidth})[0];if(!1===o){var p=A||u[0]||c[0];if(p&&p.playlist){var f="sortedPlaylistReps";return A&&(f="bandwidthBestRep"),u[0]&&(f="enabledPlaylistReps"),ja("choosing "+Qa(p)+" using "+f+" with options",a),p.playlist}return ja("could not choose a playlist with options",a),null}var g=h.filter(function(e){return e.width&&e.height});Va(g,function(e,t){return e.width-t.width});var m=g.filter(function(e){return e.width===n&&e.height===r});d=m[m.length-1];var v,y,b,_=m.filter(function(e){return e.bandwidth===d.bandwidth})[0];_||(y=(v=g.filter(function(e){return e.width>n||e.height>r})).filter(function(e){return e.width===v[0].width&&e.height===v[0].height}),d=y[y.length-1],b=y.filter(function(e){return e.bandwidth===d.bandwidth})[0]);var w=b||_||A||u[0]||c[0];if(w&&w.playlist){var C="sortedPlaylistReps";return b?C="resolutionPlusOneRep":_?C="resolutionBestRep":A?C="bandwidthBestRep":u[0]&&(C="enabledPlaylistReps"),ja("choosing "+Qa(w)+" using "+C+" with options",a),w.playlist}return ja("could not choose a playlist with options",a),null}},Ga=function(){var e=this.useDevicePixelRatio&&i().devicePixelRatio||1;return Ka(this.playlists.master,this.systemBandwidth,parseInt(Ha(this.tech_.el(),"width"),10)*e,parseInt(Ha(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},za=function(e,t,n){var r,i;if(n&&n.cues)for(r=n.cues.length;r--;)(i=n.cues[r]).startTime>=e&&i.endTime<=t&&n.removeCue(i)},Wa=function(e){return"number"==typeof e&&isFinite(e)},$a=1/60,Ya=function(e){var t=e.startOfSegment,n=e.duration,r=e.segment,i=e.part,o=e.playlist,s=o.mediaSequence,a=o.id,l=o.segments,c=e.mediaIndex,u=e.partIndex,h=e.timeline,d=(void 0===l?[]:l).length-1,A="mediaIndex/partIndex increment";e.getMediaInfoForTime?A="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(A="getSyncSegmentCandidate (isSyncRequest)");var p="number"==typeof u,f=e.segment.uri?"segment":"pre-segment",g=p?ws({preloadSegment:r})-1:0;return f+" ["+(s+c)+"/"+(s+d)+"]"+(p?" part ["+u+"/"+g+"]":"")+" segment start/end ["+r.start+" =>
1 "+r.end+"]"+(p?" part start/end ["+i.start+" => "+i.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+h+"] selected by ["+A+"] playlist ["+a+"]"},Xa=function(e){return e+"TimingInfo"},Ja=function(e){var t=e.timelineChangeController,n=e.segmentTimeline,r=e.loaderType,i=e.audioDisabled;if(e.currentTimeline===n)return!1;if("audio"===r){var o=t.lastTimelineChange({type:"main"});return!o||o.to!==n}if("main"===r&&i){var s=t.pendingTimelineChange({type:"audio"});return!s||s.to!==n}return!1},Za=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+hs},el=function(e){function t(t,n){var r;if(r=e.call(this)||this,!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return r.bandwidth=t.bandwidth,r.throughput={rate:0,count:0},r.roundTrip=NaN,r.resetStats_(),r.mediaIndex=null,r.partIndex=null,r.hasPlayed_=t.hasPlayed,r.currentTime_=t.currentTime,r.seekable_=t.seekable,r.seeking_=t.seeking,r.duration_=t.duration,r.mediaSource_=t.mediaSource,r.vhs_=t.vhs,r.loaderType_=t.loaderType,r.currentMediaInfo_=void 0,r.startingMediaInfo_=void 0,r.segmentMetadataTrack_=t.segmentMetadataTrack,r.goalBufferLength_=t.goalBufferLength,r.sourceType_=t.sourceType,r.sourceUpdater_=t.sourceUpdater,r.inbandTextTracks_=t.inbandTextTracks,r.state_="INIT",r.timelineChangeController_=t.timelineChangeController,r.shouldSaveSegmentTimingInfo_=!0,r.parse708captions_=t.parse708captions,r.checkBufferTimeout_=null,r.error_=void 0,r.currentTimeline_=-1,r.pendingSegment_=null,r.xhrOptions_=null,r.pendingSegments_=[],r.audioDisabled_=!1,r.isPendingTimestampOffset_=!1,r.gopBuffer_=[],r.timeMapping_=0,r.safeAppend_=os.browser.IE_VERSION>=11,r.appendInitSegment_={audio:!0,video:!0},r.playlistOfLastInitSegment_={audio:null,video:null},r.callQueue_=[],r.loadQueue_=[],r.metadataQueue_={id3:[],caption:[]},r.waitingOnRemove_=!1,r.quotaExceededErrorRetryTimeout_=null,r.activeInitSegmentId_=null,r.initSegments_={},r.cacheEncryptionKeys_=t.cacheEncryptionKeys,r.keyCache_={},r.decrypter_=t.decrypter,r.syncController_=t.syncController,r.syncPoint_={segmentIndex:0,time:0},r.transmuxer_=r.createTransmuxer_(),r.triggerSyncInfoUpdate_=function(){return r.trigger("syncinfoupdate")},r.syncController_.on("syncinfoupdate",r.triggerSyncInfoUpdate_),r.mediaSource_.addEventListener("sourceopen",function(){r.isEndOfStream_()||(r.ended_=!1)}),r.fetchAtBuffer_=!1,r.logger_=us("SegmentLoader["+r.loaderType_+"]"),Object.defineProperty(l(r),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),r.sourceUpdater_.on("ready",function(){r.hasEnoughInfoToAppend_()&&r.processCallQueue_()}),"main"===r.loaderType_&&r.timelineChangeController_.on("pendingtimelinechange",function(){r.hasEnoughInfoToAppend_()&&r.processCallQueue_()}),"audio"===r.loaderType_&&r.timelineChangeController_.on("timelinechange",function(){r.hasEnoughInfoToLoad_()&&r.processLoadQueue_(),r.hasEnoughInfoToAppend_()&&r.processCallQueue_()}),r}u(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return function(e){var t=new _a;t.currentTransmux=null,t.transmuxQueue=[];var n=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t}({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&i().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,i().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e
1:(this.state="READY",!0)},n.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&Ea(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return os.createTimeRanges();if("main"===this.loaderType_){var t=e.hasVideo;if(t&&e.hasAudio&&!this.audioDisabled_&&!e.isMuxed)return this.sourceUpdater_.buffered();if(t)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=oa(e),r=this.initSegments_[n];return t&&!r&&e.bytes&&(this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),r||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=sa(e),r=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!r&&e.bytes&&(this.keyCache_[n]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});var i={resolvedUri:(r||e).resolvedUri};return r&&(i.bytes=r.bytes),i},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var i=null;if(n&&(n.id?i=n.id:n.uri&&(i=n.uri)),this.logger_("playlist update ["+i+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&this.resyncLoader(),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var o=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+o+"]"),null!==this.mediaIndex)if(this.mediaIndex-=o,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var s=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!s.parts||!s.parts.length||!s.parts[this.partIndex])){var a=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=a}}r&&(r.mediaIndex-=o,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex]),r.partIndex>=0&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(i().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"})},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&Ea(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,r){if(void 0===n&&(n=function(){}),void 0===r&&(r=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var i=1,o=function(){0==--i&&n()};for(var s in!r&&this.audioDisabled_||(i++,this.sourceUpdater_.removeAudio(e,t,o)),(r||"main"===this.loaderType_)&&(this.gopBuffer_=function(e,t,n,r){for(var i=Math.ceil((t-r)*lt.ONE_SECOND_IN_TS),o=Math.ceil((n-r)*lt.ONE_SECOND_IN_TS),s=e.slice(),a=e.length;a--&&!(e[a].pts<=o););if(-1===a)return s;for(var l=a+1;l--&&!(e[l].pts<=i););return l=Math.max(l,0),s.splice(l,a-l+1),s}(this.gopBuffer_,e,t,this.timeMapping_),i++,this.sourceUpdater_.removeVideo(e,t,o)),this.inbandTextTracks_)za(e,t,this.inbandTextTracks_[s]);za(e,t,this.segmentMetadataTrack_),o()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&i().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=i().setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&i().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=i().setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var r="number"==typeof e&&t.segments[e];return t.endList&&"open"===this.mediaSource_.readyState&&e+1===t.segments.length&&(!r||!r.parts||n+1===r.parts.length)},n.chooseNextRequest_=function(){var e=vs(this.buffered_())||0,t=Math.max(0,e-this.currentTime_()),n=!this.hasPlayed_()&&t>=1,r=t>=this.goalBufferLength_(),i=this.playlist_.segments;if(!i.length||n||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest)o.mediaIndex=function(e,t,n){t=t||[];for(var r=[],i=0,o=0;o<t.length;o++){var s=t[o];if(e===s.timeline&&(r.push(o),(i+=s.duration)>n))return o}return 0===r.length?0:r[r.length-1]}(this.currentTimeline_,i,e);else if(null!==this.mediaIndex){var s=i[this.mediaIndex],a="number"==typeof this.partIndex?this.partIndex:-1;o.startOfSegment=s.end?s.end:e,s.parts&&s.parts[a+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=a+1):o.mediaIndex=this.mediaIndex+1}else{var l=Ds.getMediaInfoForTime({playlist:this.playlist_,currentTime:this.fetchAtBuffer_?e:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),c=l.segmentIndex,u=l.startTime,h=l.partIndex;o.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd":"currentTime",o.mediaIndex=c,o.startOfSegment=u,o.partIndex=h}var d=i[o.mediaIndex];return d&&("number"!=typeof o.partIndex||d&&"number"==typeof o.partIndex&&d.parts&&d.parts[o.partIndex])?("number"!=typeof o.partIndex&&d.parts&&(o.partIndex=0),o.mediaIndex>=i.length-1&&this.mediaSource_&&"ended"===this.mediaSource_.readyState&&!this.seeking_()?null:this.generateSegmentInfo_(o)):null},n.generateSegmentInfo_=function(e){var t=e.playlist,n=e.mediaIndex,r=e.startOfSegment,i=e.isSyncRequest,o=e.partIndex,s=e.forceTimestampOffset,a=e.getMediaInfoForTime,l=t.segments[n],c="number"==typeof o&&l.parts[o],u={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||l.resolvedUri,mediaIndex:n,partIndex:c?o:null,isSyncRequest:i,startOfSegment:r,playlist:t,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:l.timeline,duration:c&&c.duration||l.duration,segment:l,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:a},h=void 0!==s?s:this.isPendingTimestampOffset_;u.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:l.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});
1var d=vs(this.sourceUpdater_.audioBuffered());return"number"==typeof d&&(u.audioAppendStart=d-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(u.gopsToAlignWith=function(e,t,n){if(null==t||!e.length)return[];var r,i=Math.ceil((t-n+3)*lt.ONE_SECOND_IN_TS);for(r=0;r<e.length&&!(e[r].pts>i);r++);return e.slice(r)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),u},n.timestampOffsetForSegment_=function(e){return n=(t=e).segmentTimeline,r=t.currentTimeline,i=t.startOfSegment,o=t.buffered,t.overrideCheck||n!==r?n<r?i:o.length?o.end(o.length-1):i:null;var t,n,r,i,o},n.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),n=e.bandwidth,r=this.pendingSegment_.duration,i=Ds.estimateSegmentRequestTime(r,n,this.playlist_,e.bytesReceived),o=function(e,t,n){return void 0===n&&(n=1),((e.length?e.end(e.length-1):0)-t)/n}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(i<=o)){var s=function(e){var t=e.currentTime,n=e.bandwidth,r=e.duration,i=e.segmentDuration,o=e.timeUntilRebuffer,s=e.currentTimeline,a=e.syncController,l=e.master.playlists.filter(function(e){return!Ds.isIncompatible(e)}),c=l.filter(Ds.isEnabled);c.length||(c=l.filter(function(e){return!Ds.isDisabled(e)}));var u=c.filter(Ds.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var l=a.getSyncPoint(e,r,s,t)?1:2;return{playlist:e,rebufferingImpact:Ds.estimateSegmentRequestTime(i,n,e)*l-o}}),h=u.filter(function(e){return e.rebufferingImpact<=0});return Va(h,function(e,t){return qa(t.playlist,e.playlist)}),h.length?h[0]:(Va(u,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),u[0]||null)}({master:this.vhs_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:o,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(s){var a=.5;o<=hs&&(a=1),!s.playlist||s.playlist.uri===this.playlist_.uri||i-o-s.rebufferingImpact<a||(this.bandwidth=s.playlist.attributes.BANDWIDTH*ga.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(e){this.logger_("Aborting "+Ya(e)),this.mediaRequestsAborted+=1},n.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var n=Object.keys(e).sort(),r=Object.keys(t).sort();if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(o!==r[i])return!1;if(e[o]!==t[o])return!1}return!0}(this.currentMediaInfo_,t=t||{})||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(e,t,n,r){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var i=this.pendingSegment_,o=Xa(t);i[o]=i[o]||{},i[o][n]=r,this.logger_("timinginfo: "+t+" - "+n+" - "+r),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(e,t){var n=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length)if(this.pendingSegment_.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),o={};t.forEach(function(e){o[e.stream]=o[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=o[e.stream];t.startTime=Math.min(t.startTime,e.startTime+r),t.endTime=Math.max(t.endTime,e.endTime+r),t.captions.push(e)}),Object.keys(o).forEach(function(e){var t=o[e],s=t.startTime,a=t.endTime,l=t.captions,c=n.inbandTextTracks_;n.logger_("adding cues from "+s+" -> "+a+" for "+e),function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var r=n;/^cc708_/.test(n)&&(r="SERVICE"+n.split("_")[1]);var i=t.textTracks().getTrackById(r);if(i)e[n]=i;else{var o=n,s=n,a=!1,l=(t.options_.vhs&&t.options_.vhs.captionServices||{})[r];l&&(o=l.label,s=l.language,a=l.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:r,default:a,label:o,language:s},!1).track}}}(c,n.vhs_.tech_,e),za(s,a,c[e]),function(e){var t=e.inbandTextTracks,n=e.captionArray,r=e.timestampOffset;if(n){var o=i().WebKitDataCue||i().VTTCue;
1n.forEach(function(e){t[e.stream].addCue(new o(e.startTime+r,e.endTime+r,e.text))})}}({captionArray:l,inbandTextTracks:c,timestampOffset:r})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.pendingSegment_.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}(this.inbandTextTracks_,n,this.vhs_.tech_),function(e){var t=e.inbandTextTracks,n=e.metadataArray,r=e.timestampOffset,o=e.videoDuration;if(n){var s=i().WebKitDataCue||i().VTTCue,a=t.metadataTrack_;if(a&&(n.forEach(function(e){var t=e.cueTime+r;!("number"!=typeof t||i().isNaN(t)||t<0)&&t<1/0&&e.frames.forEach(function(e){var n=new s(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return os.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return os.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return os.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(n),a.addCue(n)})}),a.cues&&a.cues.length)){for(var l=a.cues,c=[],u=0;u<l.length;u++)l[u]&&c.push(l[u]);var h=c.reduce(function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e},{}),d=Object.keys(h).sort(function(e,t){return Number(e)-Number(t)});d.forEach(function(e,t){var n=h[e],r=Number(d[t+1])||o;n.forEach(function(e){e.endTime=r})})}}}({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:r,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!(!e||this.getCurrentMediaInfo_()&&Ja({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();return!(!e||!t||t.hasVideo&&!e.videoTimingInfo||t.hasAudio&&!this.audioDisabled_&&!t.isMuxed&&!e.audioTimingInfo||Ja({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[Xa(t.type)].start;else{var r,i=this.getCurrentMediaInfo_(),o="main"===this.loaderType_&&i&&i.hasVideo;o&&(r=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:o,firstVideoFrameTimeForData:r,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var s=this.chooseNextRequest_();if(s.mediaIndex!==n.mediaIndex||s.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,r=e.map,i=e.playlist;if(r){var o=oa(r);if(this.activeInitSegmentId_===o)return null;n=this.initSegmentForMap(r,!0).bytes,this.activeInitSegmentId_=o}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=i,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(e,t){var n=this,r=e.segmentInfo,o=e.type,s=e.bytes,a=this.sourceUpdater_.audio
1Buffered(),l=this.sourceUpdater_.videoBuffered();a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+ms(a).join(", ")),l.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+ms(l).join(", "));var c=a.length?a.start(0):0,u=a.length?a.end(a.length-1):0,h=l.length?l.start(0):0,d=l.length?l.end(l.length-1):0;if(u-c<=1&&d-h<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+s.byteLength+", audio buffer: "+ms(a).join(", ")+", video buffer: "+ms(l).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:r,type:o,bytes:s}));var A=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+A),this.remove(0,A,function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=i().setTimeout(function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()},1e3)},!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,r=e.type,i=e.bytes;t&&(22!==t.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(r+" append of "+i.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:r,bytes:i}))},n.appendToSourceBuffer_=function(e){var t,n,r,i=e.segmentInfo,o=e.type,s=e.initSegment,a=e.data,l=e.bytes;if(!l){var c=[a],u=a.byteLength;s&&(c.unshift(s),u+=s.byteLength),r=0,(t={bytes:u,segments:c}).bytes&&(n=new Uint8Array(t.bytes),t.segments.forEach(function(e){n.set(e,r),r+=e.byteLength})),l=n}this.sourceUpdater_.appendBuffer({segmentInfo:i,type:o,bytes:l},this.handleAppendError_.bind(this,{segmentInfo:i,type:o,bytes:l}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var r=this.pendingSegment_.segment,i=e+"TimingInfo";r[i]||(r[i]={}),r[i].transmuxerPrependedSeconds=n.prependedContentDuration||0,r[i].transmuxedPresentationStart=n.start.presentation,r[i].transmuxedDecodeStart=n.start.decode,r[i].transmuxedPresentationEnd=n.end.presentation,r[i].transmuxedDecodeEnd=n.end.decode,r[i].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(e,t){var n=t.type,r=t.data;if(r&&r.byteLength&&("audio"!==n||!this.audioDisabled_)){var i=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:i,data:r})}},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push(function(){var n=a({},e,{forceTimestampOffset:!0});a(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)})},n.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var n=this.createSimplifiedSegmentObj_(e),r=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)||null!==this.mediaIndex&&e.timeline!==this.currentTimeline_&&e.timeline>0;this.logger_("Requesting "+Ya(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=function(e){var t=e.xhr,n=e.xhrOptions,r=e.segment,i=e.abortFn,o=e.progressFn,s=e.trackInfoFn,a=e.timingInfoFn,l=e.videoSegmentTimingInfoFn,c=e.audioSegmentTimingInfoFn,u=e.id3Fn,h=e.captionsFn,d=e.isEndOfTimeline,A=e.endedTimelineFn,p=e.dataFn,f=[],g=function(e){var t=e.activeXhrs,n=e.decryptionWorker,r=e.trackInfoFn,i=e.timingInfoFn,o=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,a=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,h=e.dataFn,d=e.doneFn,A=e.onTransmuxerLog,p=0,f=!1;return function(e,g){if(!f){if(e)return f=!0,Ba(t),d(e,g);if((p+=1)===t.length){var m=function(){if(g.encryptedBytes)return function(e){var t=e.segment,n=e.trackInfoFn,r=e.timingInfoFn,i=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,a=e.captionsFn,l=e.isEndOfTimeline,c=e.endedTimelineFn,u=e.dataFn,h=e.doneFn,d=e.onTransmuxerLog;La({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e.decryptionWorker},function(e){t.bytes=e,Fa({segment:t,bytes:t.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:i,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:c,dataFn:u,doneFn:h,onTransmuxerLog:d})})}({decryptionWorker:n,segment:g,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:h,doneFn:d,onTransmuxerLog:A});Fa({segment:g,bytes:g.bytes,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:s,id3Fn:a,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:h,doneFn:d,onTransmuxerLog:A})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return La({decryptionWorker:n,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},function(e){g.map.bytes=e,Oa(g,function(e){if(e)return Ba(t),d(e,g);m()})});m()}}}}({activeXhrs:f,decryptionWorker:e.decryptionWorker,trackInfoFn:s,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:A,dataFn:p,doneFn:e.doneFn,onTransmuxerLog:e.onTransmuxerLog});if(r.key&&!r.key.bytes){var m=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&m.push(r.map.key);
1var v=t(os.mergeOptions(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),Pa(r,m,g));f.push(v)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var y=t(os.mergeOptions(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),Pa(r,[r.map.key],g));f.push(y)}var b=t(os.mergeOptions(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:ea(r.map)}),function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,r){var i=ka(e,r);if(i)return n(i,t);var o=new Uint8Array(r.response);if(t.map.key)return t.map.encryptedBytes=o,n(null,t);t.map.bytes=o,Oa(t,function(e){if(e)return e.xhr=r,e.status=r.status,n(e,t);n(null,t)})}}({segment:r,finishProcessingFn:g}));f.push(b)}var _=os.mergeOptions(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:ea(r)}),w=t(_,function(e){var t=e.segment,n=e.finishProcessingFn,r=e.responseType;return function(e,i){var o=ka(e,i);if(o)return n(o,t);var s="arraybuffer"!==r&&i.responseText?function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer}(i.responseText.substring(t.lastReachedChar||0)):i.response;return t.stats=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}}(i),t.key?t.encryptedBytes=new Uint8Array(s):t.bytes=new Uint8Array(s),n(null,t)}}({segment:r,finishProcessingFn:g,responseType:_.responseType}));w.addEventListener("progress",function(e){var t=e.segment,n=e.progressFn;return function(e){if(!e.target.aborted)return t.stats=os.mergeOptions(t.stats,(i=(r=e).target,(o={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-i.requestTime||0}).bytesReceived=r.loaded,o.bandwidth=Math.floor(o.bytesReceived/o.roundTripTime*8*1e3),o)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),n(e,t);var r,i,o}}({segment:r,progressFn:o,trackInfoFn:s,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:u,captionsFn:h,isEndOfTimeline:d,endedTimelineFn:A,dataFn:p})),f.push(w);var C={};return f.forEach(function(e){e.addEventListener("loadend",function(e){var t=e.loadendState,n=e.abortFn;return function(e){e.target.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}}({loadendState:C,abortFn:i}))}),function(){return Ba(f)}}({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:r,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var r=n.message,i=n.level,o=n.stream;t.logger_(Ya(e)+" logged from transmuxer stream "+o+" as a "+i+": "+r)}})},n.trimBackBuffer_=function(e){var t,n,r,i,o=(t=this.seekable_(),n=this.currentTime_(),r=this.playlist_.targetDuration||10,i=n-ga.BACK_BUFFER_LENGTH,t.length&&(i=Math.max(i,t.start(0))),Math.min(n-r,i));o>0&&this.remove(0,o)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n=e.part,r={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},i=e.playlist.segments[e.mediaIndex-1];if(i&&i.timeline===t.timeline&&(i.videoTimingInfo?r.baseStartTime=i.videoTimingInfo.transmuxedDecodeEnd:i.audioTimingInfo&&(r.baseStartTime=i.audioTimingInfo.transmuxedDecodeEnd)),t.key){var o=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);r.key=this.segmentKey(t.key),r.key.iv=o}return t.map&&(r.map=this.initSegmentForMap(t.map)),r},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<$a?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record 0.016666666666666666"):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},n.segmentRequestFinished_=function(e,t,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if
1(e){if(this.pendingSegment_=null,this.state="READY",e.code===Ta)return;return this.pause(),e.code===xa?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),r.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=function(e,t,n){if(!t.length)return e;if(n)return t.slice();for(var r=t[0].pts,i=0;i<e.length&&!(e[i].pts>=r);i++);return e.slice(0,i).concat(t)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(r)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},n.updateMediaSecondsLoaded_=function(e){this.mediaSecondsLoaded+="number"==typeof e.start&&"number"==typeof e.end?e.end-e.start:e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.mediaIndex,r=e.firstVideoFrameTimeForData;if(void 0!==t)return t;if(!e.useVideoTimingInfo)return e.audioTimingInfo.start;var i=e.playlist.segments[n-1];return 0!==n&&i&&void 0!==i.start&&i.end===r+e.currentVideoTimestampOffset?e.videoTimingInfo.start:r},n.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n="main"===this.loaderType_&&t.hasVideo,r=!this.audioDisabled_&&t.hasAudio&&!t.isMuxed;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);n&&e.waitingOnAppends++,r&&e.waitingOnAppends++,n&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),r&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=e.timingInfo.start,e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=function(e,t){if("hls"!==t)return null;var n,r,i=(n=e.audioTimingInfo,r=e.videoTimingInfo,Math.max(n&&"number"==typeof n.start&&"number"==typeof n.end?n.end-n.start:0,r&&"number"==typeof r.start&&"number"==typeof r.end?r.end-r.start:0));if(!i)return null;var o=e.playlist.targetDuration,s=Za({segmentDuration:i,maxDuration:2*o}),a=Za({segmentDuration:i,maxDuration:o});return s||a?{severity:s?"warn":"info",message:"Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+i+" when the reported duration is "+e.duration+" and the target duration is "+o+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1"}:null}(e,this.sourceType_);if(t&&("warn"===t.severity?os.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+Ya(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var n=e.segment;n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration?this.resetEverything():(null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_
vendor: 4,651 bytes, line 1
1(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_())}else this.logger_("Throwing away un-appended sync request "+Ya(e))},n.recordThroughput_=function(e){if(e.duration<$a)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record 0.016666666666666666");else{var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,r=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(r-t)/++this.throughput.count}},n.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,r=t.end;if(Wa(n)&&Wa(r)){za(n,r,this.segmentMetadataTrack_);var o=i().WebKitDataCue||i().VTTCue,s={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:n,end:r},a=new o(n,r,JSON.stringify(s));a.value=s,this.segmentMetadataTrack_.addCue(a)}}},t}(os.EventTarget);function tl(){}var nl,rl=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},il=["video","audio"],ol=function(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]},sl=function e(t,n){if(0!==n.queue.length){var r=0,i=n.queue[r];if("mediaSource"!==i.type){if("mediaSource"!==t&&n.ready()&&"closed"!==n.mediaSource.readyState&&!ol(t,n)){if(i.type!==t){if(null===(r=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];if("mediaSource"===r.type)return null;if(r.type===e)return n}return null}(t,n.queue)))return;i=n.queue[r]}return n.queue.splice(r,1),n.queuePending[t]=i,i.action(t,n),i.doneFn?void 0:(n.queuePending[t]=null,void e(t,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),i.action(n),i.doneFn&&i.doneFn(),e("audio",n),e("video",n))}},al=function(e,t){var n=t[e+"Buffer"],r=rl(e);n&&(n.removeEventListener("updateend",t["on"+r+"UpdateEnd_"]),n.removeEventListener("error",t["on"+r+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},ll=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},cl=function(e,t,n){return function(r,i){var o=i[r+"Buffer"];if(ll(i.mediaSource,o)){i.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" bytes to "+r+"Buffer");try{o.appendBuffer(e)}catch(s){i.logger_("Error with code "+s.code+" "+(22===s.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+r+"Buffer"),i.queuePending[r]=null,n(s)}}}},ul=function(e,t){return function(n,r){var i=r[n+"Buffer"];if(ll(r.mediaSource,i)){r.logger_("Removing "+e+" to "+t+" from "+n+"Buffer");try{i.remove(e,t)}catch(o){r.logger_("Remove "+e+" to "+t+" from "+n+"Buffer failed")}}}},hl=function(e){return function(t,n){var r=n[t+"Buffer"];ll(n.mediaSource,r)&&(n.logger_("Setting "+t+"timestampOffset to "+e),r.timestampOffset=e)}},dl=function(e){return function(t,n){e()}},Al=function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(n){os.log.warn("Failed to call media source endOfStream",n)}}}},pl=function(e,t){return function(n){var r=rl(e),i=V(t);n.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var o=n.mediaSource.addSourceBuffer(i);o.addEventListener("updateend",n["on"+r+"UpdateEnd_"]),o.addEventListener("error",n["on"+r+"Error_"]),n.codecs[e]=t,n[e+"Buffer"]=o}},fl=function(e){return function(t){var n=t[e+"Buffer"];if(al(e,t),ll(t.mediaSource,n)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(n)}catch(r){os.log.warn("Failed to removeSourceBuffer "+e+"Buffer",r)}}}},gl=function(e){return function(t,n){var r=n[t+"Buffer"],i=V(e);ll(n.mediaSource,r)&&n.codecs[t]!==e&&(n.logger_("changing "+t+"Buffer codec from "+n.codecs[t]+" to "+e),r.changeType(i),n.codecs[t]=e)}},ml=function(e){var t=e.type,n=e.sourceUpdater;n.queue.push({type:t,action:e.action,doneFn:e.doneFn,name:e.name}),sl(t,n)},vl=function(e,t){return function(n){if(t.queuePending[e]){var r=t.queuePending[e].doneFn;t.queuePending[e]=null,r&&r(t[e+"Error_"])}sl(e,t)}},yl=function(e){function t(t){var n;return(n=e.call(this)||this).mediaSource=t,n.sourceopenListener_=function(){return sl("mediaSource",l(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=us("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null}
vendor: 9,949 bytes, line 1
1,n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=vl("video",l(n)),n.onAudioUpdateEnd_=vl("audio",l(n)),n.onVideoError_=function(e){n.videoError_=e},n.onAudioError_=function(e){n.audioError_=e},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}u(t,e);var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(e,t){ml({type:"mediaSource",sourceUpdater:this,action:pl(e,t),name:"addSourceBuffer"})},n.abort=function(e){ml({type:e,sourceUpdater:this,action:function(e,t){if("open"===t.mediaSource.readyState){var n=t[e+"Buffer"];if(ll(t.mediaSource,n)){t.logger_("calling abort on "+e+"Buffer");try{n.abort()}catch(r){os.log.warn("Failed to abort on "+e+"Buffer",r)}}}},name:"abort"})},n.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?ml({type:"mediaSource",sourceUpdater:this,action:fl(e),name:"removeSourceBuffer"}):os.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!os.browser.IE_VERSION&&!os.browser.IS_FIREFOX&&i().MediaSource&&i().MediaSource.prototype&&"function"==typeof i().MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return i().SourceBuffer&&i().SourceBuffer.prototype&&"function"==typeof i().SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(e,t){this.canChangeType()?ml({type:e,sourceUpdater:this,action:gl(t),name:"changeType"}):os.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(function(n){var r=e[n];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(n,r);t.canChangeType()&&t.changeType(n,r)})},n.appendBuffer=function(e,t){var n=this,r=e.segmentInfo,i=e.type,o=e.bytes;if(this.processedAppend_=!0,"audio"===i&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+o.length+" until video append");if(ml({type:i,sourceUpdater:this,action:cl(o,r||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===i){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var s=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+s.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,s.forEach(function(e){n.appendBuffer.apply(n,e)})}},n.audioBuffered=function(){return ll(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:os.createTimeRange()},n.videoBuffered=function(){return ll(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:os.createTimeRange()},n.buffered=function(){var e=ll(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=ll(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){var n=null,r=null,i=0,o=[],s=[];if(!(e&&e.length&&t&&t.length))return os.createTimeRange();for(var a=e.length;a--;)o.push({time:e.start(a),type:"start"}),o.push({time:e.end(a),type:"end"});for(a=t.length;a--;)o.push({time:t.start(a),type:"start"}),o.push({time:t.end(a),type:"end"});for(o.sort(function(e,t){return e.time-t.time}),a=0;a<o.length;a++)"start"===o[a].type?2==++i&&(n=o[a].time):"end"===o[a].type&&1==--i&&(r=o[a].time),null!==n&&null!==r&&(s.push([n,r]),n=null,r=null);return os.createTimeRanges(s)}(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(e,t){var n;void 0===t&&(t=tl),ml({type:"mediaSource",sourceUpdater:this,action:(n=e,function(e){e.logger_("Setting mediaSource duration to "+n);try{e.mediaSource.duration=n}catch(t){os.log.warn("Failed to set media source duration",t)}}),name:"duration",doneFn:t})},n.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=tl),"string"!=typeof e&&(e=void 0),ml({type:"mediaSource",sourceUpdater:this,action:Al(e),name:"endOfStream",doneFn:t})},n.removeAudio=function(e,t,n){void 0===n&&(n=tl),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?ml({type:"audio",sourceUpdater:this,action:ul(e,t),doneFn:n,name:"remove"}):n()},n.removeVideo=function(e,t,n){void 0===n&&(n=tl),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?ml({type:"video",sourceUpdater:this,action:ul(e,t),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!ol("audio",this)&&!ol("video",this))},n.audioTimestampOffset=function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(ml({type:"audio",sourceUpdater:this,action:hl(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},n.videoTimestampOffset=function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(ml({type:"video",sourceUpdater:this,action:hl(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},n.audioQueueCallback=function(e){this.audioBuffer&&ml({type:"audio",sourceUpdater:this,action:dl(e),name:"callback"})},n.videoQueueCallback=function(e){this.videoBuffer&&ml({type:"video",sourceUpdater:this,action:dl(e),name:"callback"})},n.dispose=function(){var e=this;this.trigger("dispose"),il.forEach(function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"](function(){return al(t,e)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(os.EventTarget),bl=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},_l=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),wl=function(e){function t(t,n){var r;return void 0===n&&(n={}),(r=e.call(this,t,n)||this).mediaSource_=null,r.subtitlesTrack_=null,r.loaderType_="subtitle",r.featuresNativeTextTracks_=t.featuresNativeTextTracks,r.shouldSaveSegmentTimingInfo_=!1,r}u(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return os.createTimeRanges();var e=this.subtitlesTrack_.cues;return os.createTimeRanges([[e[0].startTime,e[e.length-1].startTime]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=oa(e),r=this.initSegments_[n];if(t&&!r&&e.bytes){var i=new Uint8Array(_l.byteLength+e.bytes.byteLength);i.set(e.bytes),i.set(_l,e.bytes.byteLength),this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:i}}return r||e},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(e,t){za(e,t,this.subtitlesTrack_)},n.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline))return this.syncController_.one("timestampoffset",function(){e.state="READY",e.paused()||e.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE");this.loadSegment_(t)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var r=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===xa&&this.handleTimeout_(),e.code===Ta?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var o=this.pendingSegment_;this.saveBandwidthRelatedStats_(o.duration,t.stats),this.state="APPENDING",this.trigger("appending");var s=o.segment;if(s.map&&(s.map.bytes=t.map.bytes),o.bytes=t.bytes,"function"!=typeof i().WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var a,l=function(){r.subtitlesTrack_.tech_.off("vttjsloaded",a),r.stopForError({message:"Error loading vtt.js"})};return a=function(){r.subtitlesTrack_.tech_.off("vttjserror",l),r.segmentRequestFinished_(e,t,n)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",a),void this.subtitlesTrack_.tech_.one("vttjserror",l)}s.requested=!0;try{this.parseVTTCues_(o)}catch(c){return void this.stopForError({message:c.message})}if(this.updateTimeMapping_(o,this.syncController_.timelines[o.timeline],this.playlist_),o.timingInfo=o.cues.length?{start:o.cues[0].startTime,end:o.cues[o.cues.length-1].endTime}:{start:o.startOfSegment,end:o.startOfSegment+o.duration},o.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");o.byteLength=o.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,o.cues.forEac
1h(function(e){r.subtitlesTrack_.addCue(r.featuresNativeTextTracks_?new(i().VTTCue)(e.startTime,e.endTime,e.text):e)}),function(e){var t=e.cues;if(t)for(var n=0;n<t.length;n++){for(var r=[],i=0,o=0;o<t.length;o++)t[n].startTime===t[o].startTime&&t[n].endTime===t[o].endTime&&t[n].text===t[o].text&&++i>1&&r.push(t[o]);r.length&&r.forEach(function(t){return e.removeCue(t)})}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;"function"==typeof i().TextDecoder?t=new(i().TextDecoder)("utf8"):(t=i().WebVTT.StringDecoder(),n=!0);var r=new(i().WebVTT.Parser)(i(),i().vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=function(t){e.timestampmap=t},r.onparsingerror=function(e){os.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var o=e.segment.map.bytes;n&&(o=bl(o)),r.parse(o)}var s=e.bytes;n&&(s=bl(s)),r.parse(s),r.flush()},n.updateTimeMapping_=function(e,t,n){var r=e.segment;if(t)if(e.cues.length){var i=e.timestampmap,o=i.MPEGTS/lt.ONE_SECOND_IN_TS-i.LOCAL+t.mapping;e.cues.forEach(function(e){e.startTime+=o,e.endTime+=o}),n.syncInfo||(n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(e.cues[0].startTime,e.cues[e.cues.length-1].startTime-r.duration)})}else r.empty=!0},t}(el),Cl=function(e,t){for(var n=e.cues,r=0;r<n.length;r++){var i=n[r];if(t>=i.adStartTime&&t<=i.adEndTime)return i}return null},Sl=[{name:"VOD",run:function(e,t,n,r,i){return n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null}},{name:"ProgramDateTime",run:function(e,t,n,r,i){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var o=null,s=null,a=bs(t);i=i||0;for(var l=0;l<a.length;l++){var c=a[t.endList||0===i?l:a.length-(l+1)],u=c.segment,h=e.timelineToDatetimeMappings[u.timeline];if(h&&u.dateTimeObject){var d=u.dateTimeObject.getTime()/1e3+h;if(u.parts&&"number"==typeof c.partIndex)for(var A=0;A<c.partIndex;A++)d+=u.parts[A].duration;var p=Math.abs(i-d);if(null!==s&&(0===p||s<p))break;s=p,o={time:d,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}}return o}},{name:"Segment",run:function(e,t,n,r,i){var o=null,s=null;i=i||0;for(var a=bs(t),l=0;l<a.length;l++){var c=a[t.endList||0===i?l:a.length-(l+1)],u=c.segment,h=c.part&&c.part.start||u&&u.start;if(u.timeline===r&&void 0!==h){var d=Math.abs(i-h);if(null!==s&&s<d)break;(!o||null===s||s>=d)&&(s=d,o={time:h,segmentIndex:c.segmentIndex,partIndex:c.partIndex})}}return o}},{name:"Discontinuity",run:function(e,t,n,r,i){var o=null;if(i=i||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var s=null,a=0;a<t.discontinuityStarts.length;a++){var l=t.discontinuityStarts[a],c=e.discontinuities[t.discontinuitySequence+a+1];if(c){var u=Math.abs(i-c.time);if(null!==s&&s<u)break;(!o||null===s||s>=u)&&(s=u,o={time:c.time,segmentIndex:l,partIndex:null})}}return o}},{name:"Playlist",run:function(e,t,n,r,i){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],El=function(e){function t(t){var n;return(n=e.call(this)||this).timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=us("SyncController"),n}u(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,r){var i=this.runStrategies_(e,t,n,r);return i.length?this.selectSyncPoint_(i,{key:"time",value:r}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var r=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+Is({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:r.segmentIndex,endIndex:0}))},n.runStrategies_=function(e,t,n,r){for(var i=[],o=0;o<Sl.length;o++){var s=Sl[o],a=s.run(this,e,t,n,r);a&&(a.strategy=s.name,i.push({strategy:s.name,syncPoint:a}))}return i},n.selectSyncPoint_=function(e,t){for(var n=e[0].syncPoint,r=Math.abs(e[0].syncPoint[t.key]-t.value),i=e[0].strategy,o=1;o<e.length;o++){var s=Math.abs(e[o].syncPoint[t.key]-t.value);s<r&&(r=s,n=e[o].syncPoint,i=e[o].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+i+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"==typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(e,t){for(var n=t.mediaSequence-e.mediaSequence-1;n>=0;n--){var r=e.segments[n];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+n,time:r.start}
vendor: 12,476 bytes, line 1
1,this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping,r=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),i=t.segment;r&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:i.start}));var o=i.dateTimeObject;i.discontinuity&&n&&o&&(this.timelineToDatetimeMappings[i.timeline]=-o.getTime()/1e3)},n.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var r,i,o=e.segment,s=e.part,a=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)a={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+a.time+"] [mapping: "+a.mapping+"]")),r=e.startOfSegment,i=t.end+a.mapping;else{if(!a)return!1;r=t.start+a.mapping,i=t.end+a.mapping}return s&&(s.start=r,s.end=i),(!o.start||r<o.start)&&(o.start=r),o.end=i,!0},n.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var r=0;r<t.discontinuityStarts.length;r++){var i,o=t.discontinuityStarts[r],s=t.discontinuitySequence+r+1,a=o-e.mediaIndex,l=Math.abs(a);if(!this.discontinuities[s]||this.discontinuities[s].accuracy>l)i=a<0?n.start-Is({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:o}):n.end+Is({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:o}),this.discontinuities[s]={time:i,accuracy:l}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(os.EventTarget),Il=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}u(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from,r=e.to;return"number"==typeof n&&"number"==typeof r&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:r},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from,r=e.to;return"number"==typeof n&&"number"==typeof r&&(this.lastTimelineChanges_[t]={type:t,from:n,to:r},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(os.EventTarget),xl=va(ya(ba(function(){function e(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var t=e(function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0}),n=e(function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(n,r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),r=e(function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0}),i=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r<n;++r)t[r].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),o=t.length,s=0;s<o;++s)t[s].apply(this,i)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),o=null,s=function(){function e(e){var t,n,r;o||(o=function(){var e,t,n,r,i,o,s,a,l=[[[],[],[],[],[]],[[],[],[],[],[]]],c=l[0],u=l[1],h=c[4],d=u[4],A=[],p=[];for(e=0;e<256;e++)p[(A[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!h[t];t^=r||1,n=p[n]||1)for(h[t]=o=(o=n^n<<1^n<<2^n<<3^n<<4)>>8^255&o^99,d[o]=t,a=16843009*A[i=A[r=A[t]]]^65537*i^257*r^16843008*t,s=257*A[o]^16843008*o,e=0;e<4;e++)c[e][t]=s=s<<24^s>>>8,u[e][o]=a=a<<24^a>>>8;for(e=0;e<5;e++)c[e]=c[e].slice(0),u[e]=u[e].slice(0);return l}()),this._tables=[[o[0][0].slice(),o[0][1].slice(),o[0][2].slice(),o[0][3].slice(),o[0][4].slice()],[o[1][0].slice(),o[1][1].slice(),o[1][2].slice(),o[1][3].slice(),o[1][4].slice()]];var i=this._tables[0][4],s=this._tables[1],a=e.length,l=1;if(4!==a&&6!==a&&8!==a)throw new Error("Invalid aes key size");var c=e.slice(0),u=[];for(this._key=[c,u],t=a;t<4*a+28;t++)r=c[t-1],(t%a==0||8===a&&t%a==4)&&(r=i[r>>>24]<<24^i[r>>16&255]<<16^i[r>>8&255]<<8^i[255&r],t%a==0&&(r=r<<8^r>>>24^l<<24,l=l<<1^283*(l>>7))),c[t]=c[t-a]^r;for(n=0;t;n++,t--)r=c[3&n?t:t-4],u[n]=t<=4||n<4?r:s[0][i[r>>>24]]^s[1][i[r>>16&255]]^s[2][i[r>>8&255]]^s[3][i[255&r]]}return e.prototype.decrypt=function(e,t,n,r,i,o){var s,a,l,c,u=this._key[1],h=e^u[0],d=r^u[1],A=n^u[2],p=t^u[3],f=u.length/4-2,g=4,m=this._tables[1],v=m[0],y=m[1],b=m[2],_=m[3],w=m[4];for(c=0;c<f;c++)s=v[h>>>24]^y[d>>16&255]^b[A>>8&255]^_[255&p]^u[g],a=v[d>>>24]^y[A>>16&255]^b[p>>8&255]^_[255&h]^u[g+1],l=v[A>>>24]^y[p>>16&255]^b[h>>8&255]^_[255&d]^u[g+2],p=v[p>>>24]^y[h>>16&255]^b[d>>8&255]^_[255&A]^u[g+3],g+=4,h=s,d=a,A=l;for(c=0;c<4;c++)i[(3&-c)+o]=w[h>>>24]<<24^w[d>>16&255]<<16^w[A>>8&255]<<8^w[255&p]^u[g++],s=h,h=d,d=A,A=p,p=s},e}(),a=function(e){function t(){var t;return(t=e.call(this,i)||this).jobs=[],t.delay=1,t.timeout_=null,t}r(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.timeout_=this.jobs.length?setTimeout(this.processJob_.bind(this),this.delay):null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(i),l=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},c=function(){function e(t,n,r,i){var o=e.STEP,s=new Int32Array(t.buffer),c=new Uint8Array(t.byteLength),u=0;for(this.asyncStream_=new a,this.asyncStream_.push(this.decryptChunk_(s.subarray(u,u+o),n,r,c)),u=o;u<s.length;u+=o)r=new Uint32Array([l(s[u-4]),l(s[u-3]),l(s[u-2]),l(s[u-1])]),this.asyncStream_.push(this.decryptChunk_(s.subarray(u,u+o),n,r,c));this.asyncStream_.push(function(){var e;i(null,(e=c).subarray(0,e.byteLength-e[e.byteLength-1]))})}return e.prototype.decryptChunk_=function(e,t,n,r){return function(){var i=function(e,t,n){var r,i,o,a,c,u,h,d,A,p=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),f=new s(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),m=new Int32Array(g.buffer);for(r=n[0],i=n[1],o=n[2],a=n[3],A=0;A<p.length;A+=4)c=l(p[A]),u=l(p[A+1]),h=l(p[A+2]),d=l(p[A+3]),f.decrypt(c,u,h,d,m,A),m[A]=l(m[A]^r),m[A+1]=l(m[A+1]^i),m[A+2]=l(m[A+2]^o),m[A+3]=l(m[A+3]^a),r=c,i=u,o=h,a=d;return g}(e,t,n);r.set(i,e.byteOffset)}},t(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}();self.onmessage=function(e){var t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),r=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),i=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new c(n,r,i,function(e,n){var r,i;self.postMessage((r={source:t.source,decrypted:n},i={},Object.keys(r).forEach(function(e){var t=r[e];i[e]=ArrayBuffer.isView(t)?{bytes:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength}:t}),i),[n.buffer])})}}))),Tl=function(e){var t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Bl=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},kl=function(e,t){t.activePlaylistLoader=e,e.load()},Pl={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;Bl(t.segmentLoaders[e],n);var i=n.activeTrack(),o=n.activeGroup(),s=(o.filter(function(e){return e.default})[0]||o[0]).id,a=n.tracks[s];if(i!==a){for(var l in os.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),n.tracks)n.tracks[l].enabled=n.tracks[l]===a;n.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],r=t.mediaTypes[e];os.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),Bl(n,r);var i=r.activeTrack();i&&(i.mode="disabled"),r.onTrackChanged()}}},Ol={AUDIO:function(e,t,n){if(t){var r=n.tech,i=n.requestOptions,o=n.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();o.playlist(e,i),(!r.paused()||e.endList&&"none"!==r.preload())&&o.load()}),t.on("loadedplaylist",function(){o.playlist(t.media(),i),r.paused()||o.load()}),t.on("error",Pl[e](e,n))}},SUBTITLES:function(e,t,n){var r=n.tech,i=n.requestOptions,o=n.segmentLoaders[e],s=n.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();o.playlist(e,i),o.track(s.activeTrack()),(!r.paused()||e.endList&&"none"!==r.preload())&&o.load()}),t.on("loadedplaylist",function(){o.playlist(t.media(),i),r.paused()||o.load()}),t.on("error",Pl[e](e,n))}},Fl={AUDIO:function(e,t){var n=t.vhs,r=t.sourceType,i=t.segmentLoaders[e],o=t.requestOptions,s=t.master.mediaGroups,a=t.mediaTypes[e],l=a.groups,c=a.tracks,u=a.logger_,h=t.masterPlaylistLoader,d=Ms(h.master);for(var A in s[e]&&0!==Object.keys(s[e]).length||(s[e]={main:{default:{default:!0}}},d&&(s[e].main.default.playlists=h.master.playlists)),s[e])for(var p in l[A]||(l[A]=[]),s[e][A]){var f=s[e][A][p],g=void 0;if(d?(u("AUDIO group '"+A+"' label '"+p+"' is a master playlist"),f.isMasterPlaylist=!0,g=null):g="vhs-json"===r&&f.playlists?new $s(f.playlists[0],n,o):f.resolvedUri?new $s(f.resolvedUri,n,o):f.playlists&&"dash"===r?new fa(f.playlists[0],n,o,h):null,f=os.mergeOptions({id:p,playlistLoader:g},f),Ol[e](e,f.playlistLoader,t),l[A].push(f),void 0===c[p]){var m=new os.AudioTrack({id:p,kind:Tl(f),enabled:!1,language:f.language,default:f.default,label:p});c[p]=m}}i.on("error",Pl[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,r=t.vhs,i=t.sourceType,o=t.segmentLoaders[e],s=t.requestOptions,a=t.master.mediaGroups,l=t.mediaTypes[e],c=l.groups,u=l.tracks,h=t.masterPlaylistLoader;for(var d in a[e])for(var A in c[d]||(c[d]=[]),a[e][d])if(!a[e][d][A].forced){var p=a[e][d][A],f=void 0;if("hls"===i)f=new $s(p.resolvedUri,r,s);else if("dash"===i){if(!p.playlists.filter(function(e){return e.excludeUntil!==1/0}).length)return;f=new fa(p.playlists[0],r,s,h)}else"vhs-json"===i&&(f=new $s(p.playlists?p.playlists[0]:p.resolvedUri,r,s));if(p=os.mergeOptions({id:A,playlistLoader:f},p),Ol[e](e,p.playlistLoader,t),c[d].push(p),void 0===u[A]){var g=n.addRemoteTextTrack({id:A,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:A},!1).track;u[A]=g}}o.on("error",Pl[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,r=t.master.mediaGroups,i=t.mediaTypes[e],o=i.groups,s=i.tracks;for(var a in r[e])for(var l in o[a]||(o[a]=[]),r[e][a]){var c=r[e][a][l];if(/^(?:CC|SERVICE)/.test(c.instreamId)){var u=n.options_.vhs&&n.options_.vhs.captionServices||{},h={label:l,language:c.language,instreamId:c.instreamId,default:c.default&&c.autoselect};if(u[h.instreamId]&&(h=os.mergeOptions(h,u[h.instreamId])),void 0===h.default&&delete h.default,o[a].push(os.mergeOptions({id:l},c)),void 0===s[l]){var d=n.addRemoteTextTrack({id:h.instreamId,
1kind:"captions",default:h.default,language:h.language,label:h.label},!1).track;s[l]=d}}}}},Ll=function e(t,n){for(var r=0;r<t.length;r++){if(Fs(n,t[r]))return!0;if(t[r].playlists&&e(t[r].playlists,n))return!0}return!1},Ml={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var r in n)if(n[r].enabled)return n[r];return null}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var r in n)if("showing"===n[r].mode||"hidden"===n[r].mode)return n[r];return null}}},Dl=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Nl=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},Rl=function(e){function t(t){var n;n=e.call(this)||this;var r=t.src,o=t.handleManifestRedirects,s=t.withCredentials,a=t.tech,c=t.bandwidth,u=t.externVhs,h=t.useCueTags,d=t.blacklistDuration,A=t.enableLowInitialPlaylist,p=t.sourceType,f=t.cacheEncryptionKeys,g=t.experimentalBufferBasedABR;if(!r)throw new Error("A non-empty playlist URL or JSON manifest string is required");var m=t.maxPlaylistRetries;null==m&&(m=1/0),nl=u,n.experimentalBufferBasedABR=Boolean(g),n.withCredentials=s,n.tech_=a,n.vhs_=a.vhs,n.sourceType_=p,n.useCueTags_=h,n.blacklistDuration=d,n.maxPlaylistRetries=m,n.enableLowInitialPlaylist=A,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:s,handleManifestRedirects:o,maxPlaylistRetries:m,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:tl,activeTrack:tl,getActiveGroup:tl,onGroupChanged:tl,onTrackChanged:tl,lastTrack_:null,logger_:us("MediaGroups["+t+"]")}}),e}(),n.mediaSource=new(i().MediaSource),n.handleDurationChange_=n.handleDurationChange_.bind(l(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(l(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(l(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=os.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new El(t),n.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new xl,n.sourceUpdater_=new yl(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new Il;var v={vhs:n.vhs_,parse708captions:t.parse708captions,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:c,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:f,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_};n.masterPlaylistLoader_="dash"===n.sourceType_?new fa(r,n.vhs_,n.requestOptions_):new $s(r,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new el(os.mergeOptions(v,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new el(os.mergeOptions(v,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new wl(os.mergeOptions(v,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),t),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",function(){return n.startABRTimer_()}),n.tech_.on("pause",function(){return n.stopABRTimer_()}),n.tech_.on("play",function(){return n.startABRTimer_()})),Dl.forEach(function(e){n[e+"_"]=Nl.bind(l(n),e)}),n.logger_=us("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var y="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(y,function(){var e=Date.now();n.tech_.one("loadeddata",function(){n.timeToLoadedData__=Date.now()-e,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends})}),n}u(t,e);var n=t.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(){var e=this.selectPlaylist();this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,"abr")},n.switchMedia_=function(e,t,n){var r=this.media(),i=r&&(r.id||r.uri),o=e.id||e.uri;i&&i!==o&&(this.logger_("switch media "+i+" -> "+o+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=i().setInterval(function(){return e.checkABR_()},250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(i().clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master();if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return e&&e.playlists||[];var t,n=e.mediaGroups.AUDIO,r=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)t=this.mediaTypes_.AUDIO.activeTrack();else{var i=n.main||r.length&&n[r[0]];for(var o in i)if(i[o].default){t={label:o};break}}if(!t)return[];var s=[];for(var a in n)if(n[a][t.label]){var l=n[a][t.label];l.playlists?s.push.apply(s,l.playlists):s.push(l)}return s},n.setupMasterPlaylistLoaderListeners_=function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;e.requestOptions_.timeout=Os(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?0:n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){Fl[t](t,e)});var t=e.mediaTypes,n=e.masterPlaylistLoader,r=e.tech,i=e.vhs,o=e.segmentLoaders,s=o.AUDIO,a=o.main;["AUDIO","SUBTITLES"].forEach(function(n){t[n].activeGroup=function(e,t){return function(n){var r=t.mediaTypes[e].groups,i=t.masterPlaylistLoader.media();if(!i)return null;var o=null;i.attributes[e]&&(o=r[i.attributes[e]]);var s=Object.keys(r);if(!o)if("AUDIO"===e&&s.length>1&&Ms(t.master))for(var a=0;a<s.length;a++){var l=r[s[a]];if(Ll(l,i)){o=l;break}}else r.main?o=r.main:1===s.length&&(o=r[s[0]]);return void 0===n?o:null!==n&&o&&o.filter(function(e){return e.id===n.id})[0]||null}}(n,e),t[n].activeTrack=Ml[n](n,e),t[n].onGroupChanged=function(e,t){return function(){var n=t.segmentLoaders,r=n[e],i=n.main,o=t.mediaTypes[e],s=o.activeTrack(),a=o.getActiveGroup(),l=o.activePlaylistLoader,c=o.lastGroup_;a&&c&&a.id===c.id||(o.lastGroup_=a,o.lastTrack_=s,Bl(r,o),a&&!a.isMasterPlaylist&&(a.playlistLoader?(r.resyncLoader(),kl(a.playlistLoader,o)):l&&i.resetEverything()))}}(n,e),t[n].onGroupChanging=function(e,t){return function(){var n=t.segmentLoaders[e];t.mediaTypes[e].lastGroup_=null,n.abort(),n.pause()}}(n,e),t[n].onTrackChanged=function(e,t){return function(){var n=t.masterPlaylistLoader,r=t.segmentLoaders,i=r[e],o=r.main,s=t.mediaTypes[e],a=s.activeTrack(),l=s.getActiveGroup(),c=s.activePlaylistLoader,u=s.lastTrack_;if((!u||!a||u.id!==a.id)&&(s.lastGroup_=l,s.lastTrack_=a,Bl(i,s),l)){if(l.isMasterPlaylist){if(!a||!u||a.id===u.id)return;var h=t.vhs.masterPlaylistController_,d=h.selectPlaylist();if(h.media()===d)return;return s.logger_("track change. Switching master audio from "+u.id+" to "+a.id),n.pause(),o.resetEverything(),void h.fastQualityChange_(d)}
1if("AUDIO"===e){if(!l.playlistLoader)return o.setAudio(!0),void o.resetEverything();i.setAudio(!0),o.setAudio(!1)}c!==l.playlistLoader?(i.track&&i.track(a),i.resetEverything(),kl(l.playlistLoader,s)):kl(l.playlistLoader,s)}}}(n,e),t[n].getActiveGroup=function(e,t){var n=t.mediaTypes;return function(){var t=n[e].activeTrack();return t?n[e].activeGroup(t):null}}(n,e)});var l=t.AUDIO.activeGroup();if(l){var c=(l.filter(function(e){return e.default})[0]||l[0]).id;t.AUDIO.tracks[c].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),s.setAudio(!0)):a.setAudio(!0)}n.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanged()})}),n.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanging()})});var u=function(){t.AUDIO.onTrackChanged(),r.trigger({type:"usage",name:"vhs-audio-change"}),r.trigger({type:"usage",name:"hls-audio-change"})};for(var h in r.audioTracks().addEventListener("change",u),r.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),i.on("dispose",function(){r.audioTracks().removeEventListener("change",u),r.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),r.clearTracks("audio"),t.AUDIO.tracks)r.audioTracks().addTrack(t.AUDIO.tracks[h])}({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,vhs:e.vhs_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){e.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.masterPlaylistLoader_.media();if(!t){var n;if(e.excludeUnsupportedVariants_(),e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),!n||!e.shouldSwitchToMedia_(n))return;if(e.initialMedia_=n,e.switchMedia_(e.initialMedia_,"initial"),"vhs-json"!==e.sourceType_||!e.initialMedia_.segments)return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)}),this.masterPlaylistLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;e.requestOptions_.timeout=Os(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?0:n,e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var t=e.masterPlaylistLoader_.media();"playlist-unchanged"!==t.lastExcludeReason_&&e.stuckAtPlaylistEnd_(t)&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),e.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})},n.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(e,t){var n=e.mediaGroups||{},r=!0,i=Object.keys(n.AUDIO);for(var o in n.AUDIO)for(var s in n.AUDIO[o])n.AUDIO[o][s].uri||(r=!1);r&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),nl.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),i.length&&Object.keys(n.AUDIO[i[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media(),n=this.tech_.buffered();return function(e){var t=e.currentPlaylist,n=e.nextPlaylist,r=e.forwardBuffer,i=e.bufferLowWaterLine,o=e.bufferHighWaterLine,s=e.duration,a=e.experimentalBufferBasedABR,l=e.log;if(!n)return os.log.warn("We received no playlist to switch to. Please check your stream."),!1;var c="allowing switch "+(t&&t.id||"null")+" -> "+n.id;if(!t||!t.endList)return l(c+" as current playlist "+(t?"is live":"is not set")),!0;if(n.id===t.id)return!1;var u=a?ga.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:ga.MAX_BUFFER_LOW_WATER_LINE;if(s<u)return l(c+" as duration < max low water line ("+s+" < "+u+")"),!0;var h=n.attributes.BANDWIDTH,d=t.attributes.BANDWIDTH;if(h<d&&(!a||r<o)){var A=c+" as next bandwidth < current bandwidth ("+h+" < "+d+")";return a&&(A+=" and forwardBuffer < bufferHighWaterLine ("+r+" < "+o+")"),l(A),!0}if((!a||h>d)&&r>=i){var p=c+" as forwardBuffer >= bufferLowWaterLine ("+r+" >= "+i+")";return a&&(p+=" and next bandwidth > current bandwidth ("+h+" > "+d+")"),l(p),!0}return l("not "+c+" as no switching criteria met"),!1}({currentPlaylist:t,nextPlaylist:e,forwardBuffer:n.length?n.end(n.length-1)-this.tech_.currentTime():0,bufferLowWaterLine:this.bufferLowWaterLine(),bufferHighWaterLine:this.bufferHighWaterLine(),duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var e=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",function(){var t=e.selectPlaylist();e.shouldSwitchToMedia_(t)&&e.switchMedia_(t,"bandwidthupdate"),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")})),this.mainSegmentLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){e.logger_("main segment loader ended"),e.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))});var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()})},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){t.tech_.setCurrentTime(os.browser.IE_VERSION||os.browser.IS_EDGE?t.tech_.currentTime()+.04:t.tech_.currentTime())})):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}},n.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(os.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.tech_.setCurrentTime(n.end(0)),e.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")}
1,n.onEndOfStream=function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;var n=nl.Playlist.playlistEnd(e,t),r=this.tech_.currentTime(),i=this.tech_.buffered();if(!i.length)return n-r<=ds;var o=i.end(i.length-1);return o-r<=ds&&n-o<=ds},n.blacklistCurrentPlaylist=function(e,t){void 0===e&&(e={});var n=e.playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!n)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var r,i=this.masterPlaylistLoader_.master.playlists,o=i.filter(ks),s=1===o.length&&o[0]===n;if(1===i.length&&t!==1/0)return os.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(s);if(s){var a=!1;i.forEach(function(e){if(e!==n){var t=e.excludeUntil;void 0!==t&&t!==1/0&&(a=!0,delete e.excludeUntil)}}),a&&(os.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}r=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=r,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");(e.internal?this.logger_:os.log.warn)((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+(e.message?" "+e.message:"")+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var c=l.targetDuration/2*1e3||5e3,u="number"==typeof l.lastRequest&&Date.now()-l.lastRequest<=c;return this.switchMedia_(l,"exclude",s||u)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,r=[],i="all"===e;(i||"main"===e)&&r.push(this.masterPlaylistLoader_);var o=[];(i||"audio"===e)&&o.push("AUDIO"),(i||"subtitle"===e)&&(o.push("CLOSED-CAPTIONS"),o.push("SUBTITLES")),o.forEach(function(e){var t=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;t&&r.push(t)}),["main","audio","subtitle"].forEach(function(t){var i=n[t+"SegmentLoader_"];!i||e!==t&&"all"!==e||r.push(i)}),r.forEach(function(e){return t.forEach(function(t){"function"==typeof e[t]&&e[t]()})})},n.setCurrentTime=function(e){var t=ps(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:nl.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var r=this.masterPlaylistLoader_.master,i=nl.Playlist.seekable(t,n,nl.Playlist.liveEdgeDelay(r,t));if(0!==i.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=nl.Playlist.seekable(t,n,nl.Playlist.liveEdgeDelay(r,t))).length)return}var o,s;this.seekable_&&this.seekable_.length&&(o=this.seekable_.end(0),s=this.seekable_.start(0)),this.seekable_=e?e.start(0)>i.end(0)||i.start(0)>e.end(0)?i:os.createTimeRanges([[e.start(0)>i.start(0)?e.start(0):i.start(0),e.end(0)<i.end(0)?e.end(0):i.end(0)]]):i,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===o&&this.seekable_.start(0)===s||(this.logger_("seekable updated ["+gs(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){var t=this.seekable();if(!t.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1))}else{var n=this.tech_.buffered(),r=nl.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(r=Math.max(r,n.end(n.length-1))),this.mediaSource.duration!==r&&this.sourceUpdater_.setDuration(r)}},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(t){var n=e.mediaTypes_[t].groups;for(var r in n)n[r].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};t.video=t.main;var n=Ua(this.master(),this.media()),r={},i=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(r.video=n.video||t.main.videoCodec||"avc1.4d400d"),t.main.isMuxed&&(r.video+=","+(n.audio||t.main.audioCodec||G)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||i)&&(r.audio=n.audio||t.main.audioCodec||t.audio.audioCodec||G,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),r.audio||r.video){var o,s={};if(["video","audio"].forEach(function(e){if(r.hasOwnProperty(e)&&(i=r[e],!(t[e].isFmp4?q(i):K(i)))){var n=t[e].isFmp4?"browser":"muxer";s[n]=s[n]||[],s[n].push(r[e]),"audio"===e&&(o=n)}var i}),i&&o&&this.media().attributes.AUDIO){var a=this.media().attributes.AUDIO;
vendor: 5,287 bytes, line 1
1this.master().playlists.forEach(function(t){(t.attributes&&t.attributes.AUDIO)===a&&t!==e.media()&&(t.excludeUntil=1/0)}),this.logger_("excluding audio group "+a+" as "+o+' does not support codec(s): "'+r.audio+'"')}if(!Object.keys(s).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var l=[];if(["video","audio"].forEach(function(t){var n=(Q(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,i=(Q(r[t]||"")[0]||{}).type;n&&i&&n.toLowerCase()!==i.toLowerCase()&&l.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+r[t]+'"')}),l.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+l.join(", ")+".",blacklistDuration:1/0,internal:!0})}return r}var c=Object.keys(s).reduce(function(e,t){return e&&(e+=", "),e+(t+' does not support codec(s): "')+s[t].join(",")+'"'},"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:c,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach(function(r){var i=t[r];if(-1===n.indexOf(i.id)){n.push(i.id);var o=Ua(e.master,i),s=[];!o.audio||K(o.audio)||q(o.audio)||s.push("audio codec "+o.audio),!o.video||K(o.video)||q(o.video)||s.push("video codec "+o.video),o.text&&"stpp.ttml.im1t"===o.text&&s.push("text codec "+o.text),s.length&&(i.excludeUntil=1/0,e.logger_("excluding "+i.id+" for unsupported: "+s.join(", ")))}})},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],r=this.master().playlists,i=Na(Q(e)),o=Ra(i),s=i.video&&Q(i.video)[0]||null,a=i.audio&&Q(i.audio)[0]||null;Object.keys(r).forEach(function(e){var i=r[e];if(-1===n.indexOf(i.id)&&i.excludeUntil!==1/0){n.push(i.id);var l=[],c=Ua(t.masterPlaylistLoader_.master,i),u=Ra(c);if(c.audio||c.video){if(u!==o&&l.push('codec count "'+u+'" !== "'+o+'"'),!t.sourceUpdater_.canChangeType()){var h=c.video&&Q(c.video)[0]||null,d=c.audio&&Q(c.audio)[0]||null;h&&s&&h.type.toLowerCase()!==s.type.toLowerCase()&&l.push('video codec "'+h.type+'" !== "'+s.type+'"'),d&&a&&d.type.toLowerCase()!==a.type.toLowerCase()&&l.push('audio codec "'+d.type+'" !== "'+a.type+'"')}l.length&&(i.excludeUntil=1/0,t.logger_("blacklisting "+i.id+": "+l.join(" && ")))}}})},n.updateAdCues_=function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),function(e,t,n){if(void 0===n&&(n=0),e.segments)for(var r,o=n,s=0;s<e.segments.length;s++){var a=e.segments[s];if(r||(r=Cl(t,o+a.duration/2)),r){if("cueIn"in a){r.endTime=o,r.adEndTime=o,o+=a.duration,r=null;continue}if(o<r.endTime){o+=a.duration;continue}r.endTime+=a.duration}else if("cueOut"in a&&((r=new(i().VTTCue)(o,o+a.duration,a.cueOut)).adStartTime=o,r.adEndTime=o+parseFloat(a.cueOut),t.addCue(r)),"cueOutCont"in a){var l=a.cueOutCont.split("/").map(parseFloat),c=l[0],u=l[1];(r=new(i().VTTCue)(o,o+a.duration,"")).adStartTime=o-c,r.adEndTime=r.adStartTime+u,t.addCue(r)}o+=a.duration}}(e,this.cueTagsTrack_,t)},n.goalBufferLength=function(){var e=this.tech_.currentTime(),t=ga.GOAL_BUFFER_LENGTH,n=ga.GOAL_BUFFER_LENGTH_RATE,r=Math.max(t,ga.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,r)},n.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=ga.BUFFER_LOW_WATER_LINE,n=ga.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(t,ga.MAX_BUFFER_LOW_WATER_LINE),i=Math.max(t,ga.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.experimentalBufferBasedABR?i:r)},n.bufferHighWaterLine=function(){return ga.BUFFER_HIGH_WATER_LINE},t}(os.EventTarget),Ul=function(e,t,n){var r,i,o,s=e.masterPlaylistController_,a=s[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(s);if(t.attributes){var l=t.attributes.RESOLUTION;this.width=l&&l.width,this.height=l&&l.height,this.bandwidth=t.attributes.BANDWIDTH}this.codecs=Ua(s.master(),t),this.playlist=t,this.id=n,this.enabled=(r=e.playlists,i=t.id,o=a,function(e){var t=r.master.playlists[i],n=Bs(t),s=ks(t);return void 0===e?s:(e?delete t.disabled:t.disabled=!0,e===s||n||(o(),r.trigger(e?"renditionenabled":"renditiondisabled")),e)})},jl=["seeking","seeked","pause","playing","error"],Ql=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=us("PlaybackWatcher"),this.logger_("initialize");var n=function(){return t.monitorCurrentTime_()},r=function(){return t.monitorCurrentTime_()},o=function(){return t.techWaiting_()},s=function(){return t.cancelTimer_()},a=function(){return t.fixesBadSeeks_()},l=this.masterPlaylistController_,c=["main","subtitle","audio"],u={};
1c.forEach(function(e){u[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},l[e+"SegmentLoader_"].on("appendsdone",u[e].updateend),l[e+"SegmentLoader_"].on("playlistupdate",u[e].reset),t.tech_.on(["seeked","seeking"],u[e].reset)}),this.tech_.on("seekablechanged",a),this.tech_.on("waiting",o),this.tech_.on(jl,s),this.tech_.on("canplay",r),this.tech_.one("play",n),this.dispose=function(){t.logger_("dispose"),t.tech_.off("seekablechanged",a),t.tech_.off("waiting",o),t.tech_.off(jl,s),t.tech_.off("canplay",r),t.tech_.off("play",n),c.forEach(function(e){l[e+"SegmentLoader_"].off("appendsdone",u[e].updateend),l[e+"SegmentLoader_"].off("playlistupdate",u[e].reset),t.tech_.off(["seeked","seeking"],u[e].reset)}),t.checkCurrentTimeTimeout_&&i().clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&i().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=i().setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],r=n.buffered_(),i=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1}(this[e+"Buffered_"],r);this[e+"Buffered_"]=r,i?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:ms(r)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+ds>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),n=this.tech_.currentTime();if(this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),this.beforeSeekableWindow_(t,n)){var r=t.start(0);e=r+(r===t.end(0)?0:ds)}if(void 0!==e)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+gs(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;var i=this.tech_.buffered();return!!function(e){var t=e.buffered,n=e.targetDuration,r=e.currentTime;return!(!t.length||t.end(0)-t.start(0)<2*n||r>t.start(0)||!(t.start(0)-r<n))}({buffered:i,targetDuration:this.media().targetDuration,currentTime:n})&&(e=i.start(0)+ds,this.logger_("Buffered region starts ("+i.start(0)+")  just beyond seek point ("+n+"). Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0)},t.waiting_=function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=ps(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;
vendor: 4,832 bytes, line 1
1if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var r=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,i=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:r.audioBuffered(),videoBuffered:r.videoBuffered(),currentTime:t}))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var o=fs(i,t);if(o.length>0){var s=o.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+s+", seeking to "+o.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*s,t),!0}return!1},t.afterSeekableWindow_=function(e,t,n,r){if(void 0===r&&(r=!1),!e.length)return!1;var i=e.end(e.length-1)+ds;return!n.endList&&r&&(i=e.end(e.length-1)+3*n.targetDuration),t>i},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t=e.videoBuffered,n=e.audioBuffered,r=e.currentTime;if(t){var i;if(t.length&&n.length){var o=ps(t,r-3),s=ps(t,r),a=ps(n,r);a.length&&!s.length&&o.length&&(i={start:o.end(0),end:a.end(0)})}else fs(t,r).length||(i=this.gapFromVideoUnderflow_(t,r));return!!i&&(this.logger_("Encountered a gap in video from "+i.start+" to "+i.end+". Seeking to current time "+r),!0)}},t.skipTheGap_=function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),r=fs(t,n);this.cancelTimer_(),0!==r.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+hs),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},t.gapFromVideoUnderflow_=function(e,t){for(var n=function(e){if(e.length<2)return os.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var r=e.end(n-1),i=e.start(n);t.push([r,i])}return os.createTimeRanges(t)}(e),r=0;r<n.length;r++){var i=n.start(r),o=n.end(r);if(t-i<4&&t-i>2)return{start:i,end:o}}return null},e}(),Hl={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Vl=function e(t,n){var r=0,i=0,o=os.mergeOptions(Hl,n);t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var s=function(){i&&t.currentTime(i)},a=function(e){null!=e&&(i=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",s),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){return Date.now()-r<1e3*o.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):o.getSource&&"function"==typeof o.getSource?(r=Date.now(),o.getSource.call(t,a)):void os.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},c=function e(){t.off("loadedmetadata",s),t.off("error",l),t.off("dispose",e)};t.on("error",l),t.on("dispose",c),t.reloadSourceOnError=function(n){c(),e(t,n)}},ql=function(e){Vl(this,e)},Kl="2.9.2",Gl={PlaylistLoader:$s,Playlist:Ds,utils:la,STANDARD_PLAYLIST_SELECTOR:Ga,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.master.playlists.filter(Ds.isEnabled);return Va(t,function(e,t){return qa(e,t)}),t.filter(function(t){return!!Ua(e.playlists.master,t).video})[0]||null},lastBandwidthSelector:Ga,movingAverageBandwidthSelector:function(e){var t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var r=this.useDevicePixelRatio&&i().devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),Ka(this.playlists.master,t,parseInt(Ha(this.tech_.el(),"width"),10)*r,parseInt(Ha(this.tech_.el(),"height"),10)*r,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:qa,comparePlaylistResolution:function(e,t){var n,r;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||i().Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(r=t.attributes.RESOLUTION.width),n===(r=r||i().Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-r},xhr:Zs()};
1Object.keys(ga).forEach(function(e){Object.defineProperty(Gl,e,{get:function(){return os.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),ga[e]},set:function(t){os.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?os.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):ga[e]=t}})});var zl="videojs-vhs",Wl=function(e,t){for(var n=t.media(),r=-1,i=0;i<e.length;i++)if(e[i].id===n.id){r=i;break}e.selectedIndex_=r,e.trigger({selectedIndex:r,type:"change"})};Gl.canPlaySource=function(){return os.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var $l=function(){if(!i().localStorage)return null;var e=i().localStorage.getItem(zl);if(!e)return null;try{return JSON.parse(e)}catch(t){return null}};Gl.supportsNativeHls=function(){if(!s()||!s().createElement)return!1;var e=s().createElement("video");return!!os.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),Gl.supportsNativeDash=!!(s()&&s().createElement&&os.getTech("Html5").isSupported())&&/maybe|probably/i.test(s().createElement("video").canPlayType("application/dash+xml")),Gl.supportsTypeNatively=function(e){return"hls"===e?Gl.supportsNativeHls:"dash"===e&&Gl.supportsNativeDash},Gl.isSupported=function(){return os.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Yl=function(e){function t(t,n,r){var i;if(i=e.call(this,n,os.mergeOptions(r.hls,r.vhs))||this,r.hls&&Object.keys(r.hls).length&&os.log.warn("Using hls options is deprecated. Use vhs instead."),"number"==typeof r.initialBandwidth&&(i.options_.bandwidth=r.initialBandwidth),i.logger_=us("VhsHandler"),n.options_&&n.options_.playerId){var o=os(n.options_.playerId);o.hasOwnProperty("hls")||Object.defineProperty(o,"hls",{get:function(){return os.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),l(i)},configurable:!0}),o.hasOwnProperty("vhs")||Object.defineProperty(o,"vhs",{get:function(){return os.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),l(i)},configurable:!0}),o.hasOwnProperty("dash")||Object.defineProperty(o,"dash",{get:function(){return os.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),l(i)},configurable:!0}),i.player_=o}if(i.tech_=n,i.source_=t,i.stats={},i.ignoreNextSeekingEvent_=!1,i.setOptions_(),i.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(i.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return i.on(s(),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=s().fullscreenElement||s().webkitFullscreenElement||s().mozFullScreenElement||s().msFullscreenElement;t&&t.contains(i.tech_.el())?i.masterPlaylistController_.fastQualityChange_():i.masterPlaylistController_.checkABR_()}),i.on(i.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),i.on(i.tech_,"error",function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),i.on(i.tech_,"play",i.play),i}u(t,e);var n=t.prototype;return n.setOptions_=function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=$l();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=ga.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===ga.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS"].forEach(function(t){void 0!==e.source_[t]&&(e.options_[t]=e.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(e,t){var n=this;if(e){var r;this.setOptions_(),this.options_.src=0===(r=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(r.substring(r.indexOf(",")+1)):r,this.options_.tech=this.tech_,this.options_.externVhs=Gl,this.options_.sourceType=$(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&os.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Rl(this.options_);var o=os.mergeOptions({liveRangeSafeTimeDelta:ds},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new Ql(o),this.masterPlaylistController_.on("error",function(){var e=os.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});var s=this.options_.experimentalBufferBasedABR?Gl.movingAverageBandwidthSelector(.55):Gl.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Gl.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth}
1,set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){return Math.floor(1/(1/(this.bandwidth||1)+(this.throughput>0?1/this.throughput:0)))},set:function(){os.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return ms(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return ms(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){n.options_.useBandwidthFromLocalStorage&&function(e){if(!i().localStorage)return!1;var t=$l();t=t?os.mergeOptions(t,e):e;try{i().localStorage.setItem(zl,JSON.stringify(t))}catch(n){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){var e;(e=n).representations=function(){var t=e.masterPlaylistController_.master(),n=Ms(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter(function(e){return!Bs(e)}).map(function(t,n){return new Ul(e,t,t.id)}):[]}}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){n.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=i().URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.setupEme_=function(){var e,t,n,r=this,i=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,o=(t=(e={player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:i&&i.media()}).player,!(!(n=function(e,t,n){if(!e)return e;var r={};t&&t.attributes&&t.attributes.CODECS&&(r=Na(Q(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(r.audio=n.attributes.CODECS);var i=V(r.video),o=V(r.audio),s={};for(var a in e)s[a]={}
1,o&&(s[a].audioContentType=o),i&&(s[a].videoContentType=i),t.contentProtection&&t.contentProtection[a]&&t.contentProtection[a].pssh&&(s[a].pssh=t.contentProtection[a].pssh),"string"==typeof e[a]&&(s[a].url=e[a]);return os.mergeOptions(e,s)}(e.sourceKeySystems,e.media,e.audioMedia))||(t.currentSource().keySystems=n,n&&!t.eme&&(os.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1))));11!==os.browser.IE_VERSION&&o?(this.logger_("waiting for EME key session creation"),function(e){var t=e.player,n=e.sourceKeySystems,r=e.audioMedia,i=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var o,s,a=(o=r?i.concat([r]):i,s=Object.keys(n),o.reduce(function(e,t){if(!t.contentProtection)return e;var n=s.reduce(function(e,n){var r=t.contentProtection[n];return r&&r.pssh&&(e[n]={pssh:r.pssh}),e},{});return Object.keys(n).length&&e.push(n),e},[])),l=[],c=[];return a.forEach(function(e){c.push(new Promise(function(e,n){t.tech_.one("keysessioncreated",e)})),l.push(new Promise(function(n,r){t.eme.initializeMediaKeys({keySystems:e},function(e){e?r(e):n()})}))}),Promise.race([Promise.all(l),Promise.race(c)])}({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:i&&i.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){r.logger_("created EME key session"),r.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(e){r.logger_("error while creating EME key session",e),r.player_.error({message:"Failed to initialize media keys for EME",code:3})})):this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=os.players[this.tech_.options_.playerId];
1t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var t,n;t=e.qualityLevels_,(n=e).representations().forEach(function(e){t.addQualityLevel(e)}),Wl(t,n.playlists)}),this.playlists.on("mediachange",function(){Wl(e.qualityLevels_,e.playlists)}))},t.version=function(){return{"@videojs/http-streaming":Kl,"mux.js":"5.12.2","mpd-parser":"0.17.0","m3u8-parser":"4.7.0","aes-decrypter":"3.1.2"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return yl.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&i().URL.revokeObjectURL&&(i().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),e.prototype.dispose.call(this)},n.convertToProgramTime=function(e,t){return function(e){var t=e.playlist,n=e.time,r=void 0===n?void 0:n,i=e.callback;if(!i)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===r)return i({message:"getProgramTime: playlist and time must be provided"});var o=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,r=0,i=0;i<t.segments.length&&!(e<=(r=(n=t.segments[i]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:r+n.duration));i++);var o=t.segments[t.segments.length-1];if(o.videoTimingInfo&&o.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>r){if(e>r+.25*o.duration)return null;n=o}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:r-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(r,t);if(!o)return i({message:"valid programTime was not found"});if("estimate"===o.type)return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:o.estimatedStart});var s={mediaSeconds:r},a=function(e,t){if(!t.dateTimeObject)return null;var n=e-(t.videoTimingInfo.transmuxedPresentationStart+t.videoTimingInfo.transmuxerPrependedSeconds);return new Date(t.dateTimeObject.getTime()+1e3*n)}(r,o.segment);return a&&(s.programDateTime=a.toISOString()),i(null,s)}({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},n.seekToProgramTime=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=2),ca({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:r,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(os.getComponent("Component")),Xl={name:"videojs-http-streaming",VERSION:Kl,canHandleSource:function(e,t){void 0===t&&(t={});var n=os.mergeOptions(os.options,t);return Xl.canPlayType(e.type,n)},handleSource:function(e,t,n){void 0===n&&(n={});var r=os.mergeOptions(os.options,n);return t.vhs=new Yl(e,t,r),os.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return os.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=Zs(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var n=os.mergeOptions(os.options,t).vhs.overrideNative,r=void 0===n?!os.browser.IS_ANY_SAFARI:n,i=$(e);return!i||Gl.supportsTypeNatively(i)&&!r?"":"maybe"}};q("avc1.4d400d,mp4a.40.2")&&os.getTech("Html5").registerSourceHandler(Xl,0),os.VhsHandler=Yl,Object.defineProperty(os,"HlsHandler",{get:function(){return os.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),Yl},configurable:!0}),os.VhsSourceHandler=Xl,Object.defineProperty(os,"HlsSourceHandler",{get:function(){return os.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),Xl},configurable:!0}),os.Vhs=Gl,Object.defineProperty(os,"Hls",{get:function(){return os.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Gl},configurable:!0}),os.use||(os.registerComponent("Hls",Gl),os.registerComponent("
1Vhs",Gl)),os.options.vhs=os.options.vhs||{},os.options.hls=os.options.hls||{},os.registerPlugin?os.registerPlugin("reloadSourceOnError",ql):os.plugin("reloadSourceOnError",ql);const Jl=os},8202:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(9651))&&r.__esModule?r:{default:r},o={thumbnailSize:190,playlistItems:3,hideIcons:!1,upNext:!0,hideSidebar:!1},s=void 0,a=0,l=[],c=null,u=function(e){p(0,e);var t=l.splice(0,1);for(l.push(t[0]);c.firstChild;)c.removeChild(c.firstChild);l.map(function(e,t){c.appendChild(function(e,t,n){var r=document.createElement("li"),i=document.createElement("div");if(i.className="vjs-playlist-video-title",0==e&&o.upNext){var s=document.createElement("div");s.className="vjs-playlist-video-upnext",s.innerText="UP Next",i.appendChild(s)}if(t){var a=document.createElement("div");a.innerText=t,i.appendChild(a),r.appendChild(i)}return r.setAttribute("style","background-image: url('"+n+"');"),r.setAttribute("data-index",e),r.onclick=function(e){var t=parseInt(e.target.getAttribute("data-index"));l.splice(0,t).map(function(e){l.push(e)}),u(!0)},r}(t,e.title,e.thumbnail))})},h=function(){f()},d=function(e){f()},A=function(e){g()},p=function(e,t){if(s.src({type:l[e].type,src:l[e].src}),s.poster(l[e].thumbnail),t||s.options_.autoplay)try{s.play()}catch(n){}},f=function(){a<l.length?a++:a=0,u(!0)},g=function(){a>0?a--:a=l.length-1,p(a,!0)},m=function(e){var t=this;this.ready(function(){s=t,function(e,t){l=t.videos,t.playlist&&t.playlist.thumbnailSize&&(o.thumbnailSize=t.playlist.thumbnailSize.toString().replace("px","")),t.playlist&&t.playlist.items&&(o.playlistItems=t.playlist.items),t.playlist&&t.playlist.hideIcons&&(o.hideIcons=t.playlist.hideIcons),t.playlist&&t.playlist.hideSidebar&&(o.hideSidebar=t.playlist.hideSidebar),function(e,t){if((c=document.createElement("ul")).className="vjs-playlist-items",o.hideSidebar||e.el().appendChild(c),l.length>0&&u(!1),!o.hideIcons){var n=document.createElement("button");n.className="vjs-button-prev",n.onclick=A,e.controlBar.el().insertBefore(n,e.controlBar.playToggle.el());var r=document.createElement("button");r.className="vjs-button-next",r.onclick=d,e.controlBar.el().insertBefore(r,e.controlBar.volumeMenuButton.el())}e.on("ended",h),e.addClass("vjs-playlist")}(e),function(e){var t=function(e){var t=o.thumbnailSize,n=e.el().offsetWidth,r=e.el().offsetHeight,i=Math.round(r/o.playlistItems),s=(e.$(".vjs-tech"),n-t);if(s>=0){var a=document.createElement("style"),l=" .vjs-playlist .vjs-poster { width: "+s+"px !important; }.vjs-playlist .vjs-playlist-items { width: "+t+"px !important; }.vjs-playlist .vjs-playlist-items li { width: "+t+"px !important; height: "+i+"px !important; }.vjs-playlist .vjs-modal-dialog { width: "+s+"px !important; } .vjs-playlist .vjs-control-bar, .vjs-playlist .vjs-tech { width: "+s+"px !important; } .vjs-playlist .vjs-big-play-button, .vjs-playlist .vjs-loading-spinner { left: "+Math.round(s/2)+"px !important; } ";a.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(a),a.styleSheet?a.styleSheet.cssText=l:a.appendChild(document.createTextNode(l))}};o.hideSidebar||(window.onresize=function(){t(e)},e&&t(e))}(e)}(t,i.default.mergeOptions(o,e))})};i.default.plugin("playlist",m),m.VERSION="__VERSION__",t.default=m,e.exports=t.default},5219:(e,t,n)=>{var r="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},i=n(8181);if("undefined"!=typeof document)e.exports=document;else{var o=r["__GLOBAL_DOCUMENT_CACHE@4"];o||(o=r["__GLOBAL_DOCUMENT_CACHE@4"]=i),e.exports=o}},4071:e=>{e.exports="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}},5261:(e,t,n)=>{"use strict";t.__esModule=!0;var r=o(n(537)),i=o(n(3312));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.mouseused_=!1,i.on("mousedown",i.handleMouseDown),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var t=this.player_.play();if(!(this.mouseused_&&e.clientX&&e.clientY)){var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");
1if(r){var i=function(){return r.focus()};t&&t.then?t.then(i,function(){}):this.setTimeout(i,1)}else this.player_.focus()}},t.prototype.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(r.default);s.prototype.controlText_="Play Video",i.default.registerComponent("BigPlayButton",s),t.default=s},537:(e,t,n)=>{"use strict";t.__esModule=!0;var r=a(n(1255)),i=a(n(3312)),o=a(n(4484)),s=n(7750);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),c(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=(0,s.assign)({className:this.buildCSSClass()},t),"button"!==e&&(o.default.warn("Creating a Button with an HTML element of "+e+" is deprecated; use ClickableComponent instead."),t=(0,s.assign)({tabIndex:0},t),n=(0,s.assign)({role:"button"},n)),n=(0,s.assign)({type:"button","aria-live":"polite"},n);var r=i.default.prototype.createEl.call(this,e,t,n);return this.createControlTextEl(r),r},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return o.default.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),i.default.prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(r.default);i.default.registerComponent("Button",u),t.default=u},1255:(e,t,n)=>{"use strict";t.__esModule=!0;var r=h(n(3312)),i=u(n(3683)),o=u(n(8963)),s=u(n(5287)),a=h(n(4484)),l=h(n(5219)),c=n(7750);function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function h(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.emitTapEvents(),i.enable(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=(0,c.assign)({className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&a.default.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=(0,c.assign)({role:"button","aria-live":"polite"},r),this.tabIndex_=n.tabIndex;var i=e.prototype.createEl.call(this,t,n,r);return this.createControlTextEl(i),i},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=i.createEl("span",{className:"vjs-control-text"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);return this.controlText_=e,this.controlTextEl_.innerHTML=n,this.nonIconControl||t.setAttribute("title",n),this},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},t.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){o.on(l.default,"keydown",s.bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleClick(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){o.off(l.default,"keydown",s.bind(this,this.handleKeyPress))},t}(r.default);r.default.registerComponent("ClickableComponent",d),t.default=d}
1,9438:(e,t,n)=>{"use strict";t.__esModule=!0;var r=o(n(537)),i=o(n(3312));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.controlText(r&&r.controlText||i.localize("Close")),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(r.default);i.default.registerComponent("CloseButton",s),t.default=s},3312:(e,t,n)=>{"use strict";t.__esModule=!0;var r=d(n(4071)),i=h(n(3683)),o=h(n(5287)),s=h(n(1937)),a=h(n(8963)),l=d(n(4484)),c=d(n(9756)),u=d(n(6067));function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}var A=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player_=!t&&this.play?t=this:t,this.options_=(0,u.default)({},this.options_),n=this.options_=(0,u.default)(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var i=t&&t.id&&t.id()||"no_player";this.id_=i+"_component_"+s.newGUID()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(r),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),i.removeElData(this.el_),this.el_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return l.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=(0,u.default)(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,n){return i.createEl(e,t,n)},e.prototype.localize=function(e){var t=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages();if(!t||!n)return e;var r=n[t];if(r&&r[e])return r[e];var i=n[t.split("-")[0]];return i&&i[e]?i[e]:e},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=(0,c.default)(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,i=void 0,o=void 0;if("string"==typeof t){o=(0,c.default)(t),n||(n={}),!0===n&&(l.default.warn("Initializing a child component with `true` is deprecated.Children should be defined in an array when possible, but if necessary use an object instead of `true`."),n={});var s=n.componentClass||o;n.name=o;var a=e.getComponent(s);if(!a)throw new Error("Component "+s+" does not exist");if("function"!=typeof a)return null;i=new a(this.player_||this,n)}else i=t;if(this.children_.splice(r,0,i),"function"==typeof i.id&&(this.childIndex_[i.id()]=i),(o=o||i.name&&(0,c.default)(i.name()))&&(this.childNameIndex_[o]=i),"function"==typeof i.el&&i.el()){var u=this.contentEl().children,h=u[r]||null;this.contentEl().insertBefore(i.el(),h)}return i},e.prototype.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t=this,n=this.options_.children;if(n){var r=this.options_,i=void 0,o=e.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(e){return!i.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var r=void 0,i=void 0;return"string"==typeof e?i=n[r=e]||t.options_[r]||{}
1:(r=e.name,i=e),{name:r,opts:i}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||(0,c.default)(t.name));return n&&!o.isTech(n)}).forEach(function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var o=t.addChild(n,i);o&&(t[n]=o)}})}},e.prototype.buildCSSClass=function(){return""},e.prototype.on=function(e,t,n){var r=this;if("string"==typeof e||Array.isArray(e))a.on(this.el_,e,o.bind(this,t));else{var i=e,s=t,l=o.bind(this,n),c=function(){return r.off(i,s,l)};c.guid=l.guid,this.on("dispose",c);var u=function(){return r.off("dispose",c)};u.guid=l.guid,e.nodeName?(a.on(i,s,l),a.on(i,"dispose",u)):"function"==typeof e.on&&(i.on(s,l),i.on("dispose",u))}return this},e.prototype.off=function(e,t,n){if(!e||"string"==typeof e||Array.isArray(e))a.off(this.el_,e,t);else{var r=e,i=t,s=o.bind(this,n);this.off("dispose",s),e.nodeName?(a.off(r,i,s),a.off(r,"dispose",s)):(r.off(i,s),r.off("dispose",s))}return this},e.prototype.one=function(e,t,n){var r=this,i=arguments;if("string"==typeof e||Array.isArray(e))a.one(this.el_,e,o.bind(this,t));else{var s=e,l=t,c=o.bind(this,n),u=function e(){r.off(s,l,e),c.apply(null,i)};u.guid=c.guid,this.on(s,l,u)}return this},e.prototype.trigger=function(e,t){return a.trigger(this.el_,e,t),this},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(this.isReady_?t?e.call(this):this.setTimeout(e,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e))),this},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},e.prototype.$=function(e,t){return i.$(e,t||this.contentEl())},e.prototype.$$=function(e,t){return i.$$(e,t||this.contentEl())},e.prototype.hasClass=function(e){return i.hasElClass(this.el_,e)},e.prototype.addClass=function(e){return i.addElClass(this.el_,e),this},e.prototype.removeClass=function(e){return i.removeElClass(this.el_,e),this},e.prototype.toggleClass=function(e,t){return i.toggleElClass(this.el_,e,t),this},e.prototype.show=function(){return this.removeClass("vjs-hidden"),this},e.prototype.hide=function(){return this.addClass("vjs-hidden"),this},e.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},e.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},e.prototype.getAttribute=function(e){return i.getAttribute(this.el_,e)},e.prototype.setAttribute=function(e,t){return i.setAttribute(this.el_,e,t),this},e.prototype.removeAttribute=function(e){return i.removeAttribute(this.el_,e),this},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){return this.width(e,!0).height(t)},e.prototype.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),this.el_.style[e]=-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?t:"auto"===t?"":t+"px",n||this.trigger("resize"),this;if(!this.el_)return 0;var r=this.el_.style[e],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+(0,c.default)(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"==typeof r.default.getComputedStyle){var n=r.default.getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}if(0===(t=parseFloat(t))){var i="offset"+(0,c.default)(e);t=this.el_[i]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,n=void 0;this.on("touchstart",function(r){1===r.touches.length&&(t={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},e=(new Date).getTime(),n=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)n=!1;else if(t){var r=e.touches[0].pageX-t.pageX,i=e.touches[0].pageY-t.pageY;Math.sqrt(r*r+i*i)>10&&(n=!1)}});var r=function(){n=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",function(r){t=null,!0===n&&(new Date).getTime()-e<200&&(r.preventDefault(),this.trigger("tap"))})},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e=o.bind(this.player(),this.player().reportUserActivity),t=void 0;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.prototype.setTimeout=function(e,t){e=o.bind(this,e);var n=r.default.setTimeout(e,t),i=function(){this.clearTimeout(n)};return i.guid="vjs-timeout-"+n,this.on("dispose",i),n},e.prototype.clearTimeout=function(e){r.default.clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},e.prototype.setInterval=function(e,t){e=o.bind(this,e);var n=r.default.setInterval(e,t),i=function(){this.clearInterval(n)};return i.guid="vjs-interval-"+n,this.on("dispose",i),n},e.prototype.clearInterval=function(e){r.default.clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e}
1,e.registerComponent=function(t,n){if(t){if(t=(0,c.default)(t),e.components_||(e.components_={}),"Player"===t&&e.components_[t]){var r=e.components_[t];if(r.players&&Object.keys(r.players).length>0&&Object.keys(r.players).map(function(e){return r.players[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created")}return e.components_[t]=n,n}},e.getComponent=function(t){if(t)return t=(0,c.default)(t),e.components_&&e.components_[t]?e.components_[t]:r.default&&r.default.videojs&&r.default.videojs[t]?(l.default.warn("The "+t+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),r.default.videojs[t]):void 0},e.extend=function(t){t=t||{},l.default.warn("Component.extend({}) has been deprecated,  use videojs.extend(Component, {}) instead");var n=t.init||t.init||this.prototype.init||this.prototype.init||function(){},r=function(){n.apply(this,arguments)};for(var i in(r.prototype=Object.create(this.prototype)).constructor=r,r.extend=e.extend,t)t.hasOwnProperty(i)&&(r.prototype[i]=t[i]);return r},e}();A.registerComponent("Component",A),t.default=A},1512:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(7777)),i=s(n(3312)),o=s(n(6775));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,t),r.tracks=n.audioTracks&&n.audioTracks();var i=l(this,e.call(this,n,r));return i.el_.setAttribute("aria-label","Audio Menu"),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;var t=this.player_.audioTracks&&this.player_.audioTracks();if(!t)return e;for(var n=0;n<t.length;n++){var r=t[n];e.push(new o.default(this.player_,{track:r,selectable:!0}))}return e},t}(r.default);c.prototype.controlText_="Audio Track",i.default.registerComponent("AudioTrackButton",c),t.default=c},6775:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(7104)),i=s(n(3312)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5287));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=r.track,s=n.audioTracks();r.label=i.label||i.language||"Unknown",r.selected=i.enabled;var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));if(a.track=i,s){var l=o.bind(a,a.handleTracksChange);s.addEventListener("change",l),a.on("dispose",function(){s.removeEventListener("change",l)})}return a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleClick=function(t){var n=this.player_.audioTracks();if(e.prototype.handleClick.call(this,t),n)for(var r=0;r<n.length;r++){var i=n[r];i.enabled=i===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(r.default);i.default.registerComponent("AudioTrackMenuItem",a),t.default=a},9141:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(3312))&&r.__esModule?r:{default:r};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n(8050),n(618),n(7012),n(1074),n(5123),n(6172),n(3414),n(3178),n(5835),n(5314),n(8840),n(2660),n(3841),n(5307),n(3298),n(1512),n(3372),n(4810);var a=function(e){function t(){return o(this,t),s(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t}(i.default);a.prototype.options_={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},i.default.registerComponent("ControlBar",a),t.default=a},3178:(e,t,n)=>{"use strict";t.__esModule=!0;var r=o(n(537)),i=o(n(3312));
1function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.on(n,"fullscreenchange",i.handleFullscreenChange),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(r.default);s.prototype.controlText_="Fullscreen",i.default.registerComponent("FullscreenToggle",s),t.default=s},6172:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(3312))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3683)),s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.updateShowing(),i.on(i.player(),"durationchange",i.updateShowing),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=o.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(i.default);i.default.registerComponent("LiveDisplay",s),t.default=s},8840:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(537)),i=s(n(3312)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3683));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.on(n,"volumechange",i.update),n.tech_&&!1===n.tech_.featuresVolumeControl&&i.addClass("vjs-hidden"),i.on(n,"loadstart",function(){this.update(),!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){var t=this.player_.volume(),n=3;this.player_.muted()?n=0:t<.33?n=1:t<.67&&(n=2);var r=this.player_.muted()?"Unmute":"Mute";this.controlText()!==r&&this.controlText(r);for(var i=0;i<4;i++)o.removeElClass(this.el_,"vjs-vol-"+i);o.addElClass(this.el_,"vjs-vol-"+n)},t}(r.default);a.prototype.controlText_="Mute",i.default.registerComponent("MuteToggle",a),t.default=a},8050:(e,t,n)=>{"use strict";t.__esModule=!0;var r=o(n(537)),i=o(n(3312));
1function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.on(n,"play",i.handlePlay),i.on(n,"pause",i.handlePause),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handlePlay=function(e){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t}(r.default);s.prototype.controlText_="Play",i.default.registerComponent("PlayToggle",s),t.default=s},3372:(e,t,n)=>{"use strict";t.__esModule=!0;var r=l(n(1969)),i=l(n(5636)),o=l(n(4706)),s=l(n(3312)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3683));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.updateVisibility(),i.updateLabel(),i.on(n,"loadstart",i.updateVisibility),i.on(n,"ratechange",i.updateLabel),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=a.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.labelEl_),t},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},t.prototype.createMenu=function(){var e=new i.default(this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new o.default(this.player(),{rate:t[n]+"x"}));return e},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>t){r=n[i];break}this.player().playbackRate(r)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(r.default);c.prototype.controlText_="Playback Rate",s.default.registerComponent("PlaybackRateMenuButton",c),t.default=c},4706:(e,t,n)=>{"use strict";t.__esModule=!0;var r=o(n(7104)),i=o(n(3312));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=r.rate,o=parseFloat(i,10);r.label=i,r.selected=1===o,r.selectable=!0;var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return s.label=i,s.rate=o,s.on(n,"ratechange",s.update),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(r.default);s.prototype.contentElType="button",i.default.registerComponent("PlaybackRateMenuItem",s),t.default=s},1084:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(3312))&&r.__esModule?r:{default:r}
1,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3683)),s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.partEls_=[],i.on(n,"progress",i.update),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.update=function(e){var t=this.player_.buffered(),n=this.player_.duration(),r=this.player_.bufferedEnd(),i=this.partEls_,s=function(e,t){var n=e/t||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=s(r,n);for(var a=0;a<t.length;a++){var l=t.start(a),c=t.end(a),u=i[a];u||(u=this.el_.appendChild(o.createEl()),i[a]=u),u.style.left=s(l,r),u.style.width=s(c-l,r)}for(var h=i.length;h>t.length;h--)this.el_.removeChild(i[h-1]);i.length=t.length},t}(i.default);i.default.registerComponent("LoadProgressBar",s),t.default=s},9382:(e,t,n)=>{"use strict";t.__esModule=!0;var r=c(n(3312)),i=l(n(3683)),o=l(n(5287)),s=c(n(2191)),a=c(n(761));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(s.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),s.keepTooltipsInside&&(s.tooltip=i.createEl("div",{className:"vjs-time-tooltip"}),s.el().appendChild(s.tooltip),s.addClass("vjs-keep-tooltips-inside")),s.update(0,0),n.on("ready",function(){s.on(n.controlBar.progressControl.el(),"mousemove",o.throttle(o.bind(s,s.handleMouseMove),25))}),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.handleMouseMove=function(e){var t=this.player_.duration(),n=this.calculateDistance(e)*t,r=e.pageX-i.findElPosition(this.el().parentNode).left;this.update(n,r)},t.prototype.update=function(e,t){var n=(0,s.default)(e,this.player_.duration());if(this.el().style.left=t+"px",this.el().setAttribute("data-current-time",n),this.keepTooltipsInside){var r=t-this.clampPosition_(t)+1,i=parseFloat((0,a.default)(this.tooltip,"width"))/2;this.tooltip.innerHTML=n,this.tooltip.style.right="-"+(i-r)+"px"}},t.prototype.calculateDistance=function(e){return i.getPointerPosition(this.el().parentNode,e).x},t.prototype.clampPosition_=function(e){if(!this.keepTooltipsInside)return e;var t=parseFloat((0,a.default)(this.player().el(),"width")),n=parseFloat((0,a.default)(this.tooltip,"width"))/2,r=e;return e<n?r=Math.ceil(n):e>t-n&&(r=Math.floor(t-n)),r},t}(r.default);r.default.registerComponent("MouseTimeDisplay",u),t.default=u},213:(e,t,n)=>{"use strict";t.__esModule=!0;
1var r=s(n(3312)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5287)),o=s(n(2191));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return o.updateDataAttr(),o.on(n,"timeupdate",o.updateDataAttr),n.ready(i.bind(o,o.updateDataAttr)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(o.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),o.keepTooltipsInside&&o.addClass("vjs-keep-tooltips-inside"),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.updateDataAttr=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",(0,o.default)(t,this.player_.duration()))},t}(r.default);r.default.registerComponent("PlayProgressBar",a),t.default=a},3414:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(3312))&&r.__esModule?r:{default:r};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n(2060),n(9382);var a=function(e){function t(){return o(this,t),s(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t}(i.default);a.prototype.options_={children:["seekBar"]},i.default.registerComponent("ProgressControl",a),t.default=a},2060:(e,t,n)=>{"use strict";t.__esModule=!0;var r=l(n(7110)),i=l(n(3312)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5287)),s=l(n(2191)),a=l(n(761));function l(e){return e&&e.__esModule?e:{default:e}}n(1084),n(213),n(9036);var c=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.on(n,"timeupdate",i.updateProgress),i.on(n,"ended",i.updateProgress),n.ready(o.bind(i,i.updateProgress)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(i.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),i.keepTooltipsInside&&(i.tooltipProgressBar=i.addChild("TooltipProgressBar")),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},t.prototype.updateProgress=function(e){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var t=parseFloat((0,a.default)(this.player().el(),"width")),n=parseFloat((0,a.default)(this.tooltipProgressBar.tooltip,"width")),r=this.tooltipProgressBar.el().style;r.maxWidth=Math.floor(t-n/2)+"px",r.minWidth=Math.ceil(n/2)+"px",r.right="-"+n/2+"px"}},t.prototype.updateAriaAttributes=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();e.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),e.setAttribute("aria-valuetext",(0,s.default)(t,this.player_.duration()))},t.prototype.getPercent=function(){var e=this.player_.currentTime()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},t}(r.default);c.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},c.prototype.playerEvent="timeupdate",i.default.registerComponent("SeekBar",c),t.default=c},9036:(e,t,n)=>{"use strict";t.__esModule=!0;
1var r=s(n(3312)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5287)),o=s(n(2191));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return o.updateDataAttr(),o.on(n,"timeupdate",o.updateDataAttr),n.ready(i.bind(o,o.updateDataAttr)),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"></div>\n        <span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"});return this.tooltip=t.querySelector(".vjs-time-tooltip"),t},t.prototype.updateDataAttr=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n=(0,o.default)(t,this.player_.duration());this.el_.setAttribute("data-current-time",n),this.tooltip.innerHTML=n},t}(r.default);r.default.registerComponent("TooltipProgressBar",a),t.default=a},4810:(e,t,n)=>{"use strict";t.__esModule=!0;var r=o(n(8018)),i=o(n(3312));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return s(this,t),a(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML="&nbsp;",t},t}(r.default);i.default.registerComponent("CustomControlSpacer",l),t.default=l},8018:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(3312))&&r.__esModule?r:{default:r};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(i.default);i.default.registerComponent("Spacer",a),t.default=a},6558:(e,t,n)=>{"use strict";t.__esModule=!0;var r=o(n(2439)),i=o(n(3312));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r.track={player:n,kind:r.kind,label:r.kind+" settings",selectable:!1,default:!1,mode:"disabled"},r.selectable=!1;var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.addClass("vjs-texttrack-settings"),i.controlText(", opens "+r.kind+" settings dialog"),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},t}(r.default);i.default.registerComponent("CaptionSettingsMenuItem",s),t.default=s}
1,3298:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(4583)),i=s(n(3312)),o=s(n(6558));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r,i));return o.el_.setAttribute("aria-label","Captions Menu"),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(t.push(new o.default(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(r.default);a.prototype.kind_="captions",a.prototype.controlText_="Captions",i.default.registerComponent("CaptionsButton",a),t.default=a},2660:(e,t,n)=>{"use strict";t.__esModule=!0;var r=a(n(4583)),i=a(n(3312)),o=a(n(202)),s=a(n(9756));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r,i));return o.el_.setAttribute("aria-label","Chapters Menu"),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},t.prototype.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},t.prototype.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}}
1,t.prototype.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize((0,s.default)(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,r=t.length;n<r;n++){var i=new o.default(this.player_,{track:this.track_,cue:t[n]});e.push(i)}return e},t}(r.default);l.prototype.kind_="chapters",l.prototype.controlText_="Chapters",i.default.registerComponent("ChaptersButton",l),t.default=l},202:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(7104)),i=s(n(3312)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5287));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=r.track,s=r.cue,a=n.currentTime();r.selectable=!0,r.label=s.text,r.selected=s.startTime<=a&&a<s.endTime;var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return l.track=i,l.cue=s,i.addEventListener("cuechange",o.bind(l,l.update)),l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(r.default);i.default.registerComponent("ChaptersTrackMenuItem",a),t.default=a},3841:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(4583)),i=s(n(3312)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5287));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r,i));s.el_.setAttribute("aria-label","Descriptions Menu");var a=n.textTracks();if(a){var l=o.bind(s,s.handleTracksChange);a.addEventListener("change",l),s.on("dispose",function(){a.removeEventListener("change",l)})}return s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,r=0,i=t.length;r<i;r++){var o=t[r];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t}(r.default);a.prototype.kind_="descriptions",a.prototype.controlText_="Descriptions",i.default.registerComponent("DescriptionsButton",a),t.default=a},8726:(e,t,n)=>{"use strict";t.__esModule=!0;var r=o(n(2439)),i=o(n(3312));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r.track={player:n,kind:r.kind,label:r.kind+" off",default:!1,mode:"disabled"},r.selectable=!0;var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.selected(!0),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];if(o.kind===this.track.kind&&"showing"===o.mode){n=!1;break}}this.selected(n)},t}(r.default);i.default.registerComponent("OffTextTrackMenuItem",s),t.default=s},5307:(e,t,n)=>{"use strict";t.__esModule=!0;var r=o(n(4583)),i=o(n(3312));
1function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r,i));return o.el_.setAttribute("aria-label","Subtitles Menu"),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t}(r.default);s.prototype.kind_="subtitles",s.prototype.controlText_="Subtitles",i.default.registerComponent("SubtitlesButton",s),t.default=s},4583:(e,t,n)=>{"use strict";t.__esModule=!0;var r=a(n(7777)),i=a(n(3312)),o=a(n(2439)),s=a(n(8726));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(this,t),r.tracks=n.textTracks(),c(this,e.call(this,n,r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.push(new s.default(this.player_,{kind:this.kind_})),this.hideThreshold_+=1;var t=this.player_.textTracks();if(!t)return e;for(var n=0;n<t.length;n++){var r=t[n];r.kind===this.kind_&&e.push(new o.default(this.player_,{track:r,selectable:!0}))}return e},t}(r.default);i.default.registerComponent("TextTrackButton",u),t.default=u},2439:(e,t,n)=>{"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(n(7104)),o=c(n(3312)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5287)),a=c(n(4071)),l=c(n(5219));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=i.track,c=n.textTracks();i.label=o.label||o.language||"Unknown",i.selected=o.default||"showing"===o.mode;var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,i));if(u.track=o,c){var h=s.bind(u,u.handleTracksChange);n.on(["loadstart","texttrackchange"],h),c.addEventListener("change",h),u.on("dispose",function(){c.removeEventListener("change",h)})}if(c&&void 0===c.onchange){var d=void 0;u.on(["tap","click"],function(){if("object"!==r(a.default.Event))try{d=new a.default.Event("change")}catch(e){}d||(d=l.default.createEvent("Event")).initEvent("change",!0,!0),c.dispatchEvent(d)})}return u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.handleClick=function(t){var n=this.track.kind,r=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),r)for(var i=0;i<r.length;i++){var o=r[i];o.kind===n&&(o===this.track?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled"))}},t.prototype.handleTracksChange=function(e){this.selected("showing"===this.track.mode)},t}(i.default);o.default.registerComponent("TextTrackMenuItem",u),t.default=u},618:(e,t,n)=>{"use strict";t.__esModule=!0;
1var r=s(n(3312)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3683)),o=s(n(2191));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.on(n,"timeupdate",i.updateContent),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=i.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n=this.localize("Current Time"),r=(0,o.default)(t,this.player_.duration());r!==this.formattedTime_&&(this.formattedTime_=r,this.contentEl_.innerHTML='<span class="vjs-control-text">'+n+"</span> "+r)},t}(r.default);r.default.registerComponent("CurrentTimeDisplay",a),t.default=a},7012:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(3312)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3683)),o=s(n(2191));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.on(n,"durationchange",i.updateContent),i.on(n,"timeupdate",i.updateContent),i.on(n,"loadedmetadata",i.updateContent),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=i.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(e){var t=this.player_.duration();if(t&&this.duration_!==t){this.duration_=t;var n=this.localize("Duration Time"),r=(0,o.default)(t);this.contentEl_.innerHTML='<span class="vjs-control-text">'+n+"</span> "+r}},t}(r.default);r.default.registerComponent("DurationDisplay",a),t.default=a},5123:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(3312)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3683)),o=s(n(2191));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.on(n,"timeupdate",i.updateContent),i.on(n,"durationchange",i.updateContent),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=i.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.updateContent=function(e){if(this.player_.duration()){var t=this.localize("Remaining Time"),n=(0,o.default)(this.player_.remainingTime());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"</span> -"+n)}},t}(r.default);r.default.registerComponent("RemainingTimeDisplay",a),t.default=a}
1,1074:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(3312))&&r.__esModule?r:{default:r};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(i.default);i.default.registerComponent("TimeDivider",a),t.default=a},7777:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(1969)),i=s(n(3312)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5287));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=r.tracks,s=a(this,e.call(this,n,r));if(s.items.length<=1&&s.hide(),!i)return a(s);var l=o.bind(s,s.update);return i.addEventListener("removetrack",l),i.addEventListener("addtrack",l),s.player_.on("dispose",function(){i.removeEventListener("removetrack",l),i.removeEventListener("addtrack",l)}),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default);i.default.registerComponent("TrackButton",l),t.default=l},1094:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(7110)),i=s(n(3312)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5287));function s(e){return e&&e.__esModule?e:{default:e}}n(2674);var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.on(n,"volumechange",i.updateARIAAttributes),n.ready(o.bind(i,i.updateARIAAttributes)),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},t.prototype.handleMouseMove=function(e){this.checkMuted(),this.player_.volume(this.calculateDistance(e))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var t=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t}(r.default);a.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},a.prototype.playerEvent="volumechange",i.default.registerComponent("
1VolumeBar",a),t.default=a},5835:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(3312))&&r.__esModule?r:{default:r};n(1094);var o=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return n.tech_&&!1===n.tech_.featuresVolumeControl&&i.addClass("vjs-hidden"),i.on(n,"loadstart",function(){!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},t}(i.default);o.prototype.options_={children:["volumeBar"]},i.default.registerComponent("VolumeControl",o),t.default=o},2674:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(3312))&&r.__esModule?r:{default:r};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(i.default);i.default.registerComponent("VolumeLevel",a),t.default=a},5314:(e,t,n)=>{"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5287)),i=c(n(3312)),o=c(n(4478)),s=c(n(4818)),a=c(n(8840)),l=c(n(1094));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,t),void 0===r.inline&&(r.inline=!0),void 0===r.vertical&&(r.vertical=!r.inline),r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=!!r.vertical;var i=h(this,e.call(this,n,r));function o(){n.tech_&&!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}return i.on(n,"volumechange",i.volumeUpdate),i.on(n,"loadstart",i.volumeUpdate),o.call(i),i.on(n,"loadstart",o),i.on(i.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),i.on(i.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),i.on(i.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),i.on(i.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){var t;return t=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+e.prototype.buildCSSClass.call(this)+" "+t},t.prototype.createPopup=function(){var e=new o.default(this.player_,{contentElType:"div"}),t=new l.default(this.player_,this.options_.volumeBar);return e.addChild(t),this.menuContent=e,this.volumeBar=t,this.attachVolumeBarEvents(),e},t.prototype.handleClick=function(t){a.default.prototype.handleClick.call(this),e.prototype.handleClick.call(this)},t.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],r.bind(this,this.handleMouseDown))},t.prototype.handleMouseDown=function(e){this.on(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},t.prototype.handleMouseUp=function(e){this.off(["mousemove","touchmove"],r.bind(this.volumeBar,this.volumeBar.handleMouseMove))},t}(s.default);d.prototype.volumeUpdate=a.default.prototype.update,d.prototype.controlText_="Mute",i.default.registerComponent("
1VolumeMenuButton",d),t.default=d},6552:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(3312)),i=s(n(669)),o=s(n(6067));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.on(n,"error",i.open),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(i.default);a.prototype.options_=(0,o.default)(i.default.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),r.default.registerComponent("ErrorDisplay",a),t.default=a},1804:(e,t,n)=>{"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(8963)),i=function(){};i.prototype.allowedEvents_={},i.prototype.addEventListener=i.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},r.on(this,e,t),this.addEventListener=n},i.prototype.removeEventListener=i.prototype.off=function(e,t){r.off(this,e,t)},i.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},r.one(this,e,t),this.addEventListener=n},i.prototype.dispatchEvent=i.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=r.fixEvent(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),r.trigger(this,e)},t.default=i},9049:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=(r=n(4484))&&r.__esModule?r:{default:r},s=n(7750),a=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":i(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){e.apply(this,arguments)},r={};for(var i in(0,s.isObject)(t)?("function"==typeof t.init&&(o.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),t.constructor=t.init),t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),a(n,e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n}},1233:(e,t,n)=>{"use strict";t.__esModule=!0;for(var r,i=(r=n(5219))&&r.__esModule?r:{default:r},o={},s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],a=s[0],l=void 0,c=0;c<s.length;c++)if(s[c][1]in i.default){l=s[c];break}if(l)for(var u=0;u<l.length;u++)o[a[u]]=l[u];t.default=o},9502:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(3312))&&r.__esModule?r:{default:r};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t}(i.default);i.default.registerComponent("LoadingSpinner",a),t.default=a},231:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(7750);function i(e){if(e instanceof i)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:(0,r.isObject)(e)&&("number"==typeof e.code&&(this.code=e.code),(0,r.assign)(this,e)),this.message||(this.message=i.defaultMessages[this.code]||"")}i.prototype.code=0,i.prototype.message="",i.prototype.status=null,i.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],i.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var o=0;o<i.errorTypes.length;o++)i[i.errorTypes[o]]=o,i.prototype[i.errorTypes[o]]=o;t.default=i},1969:(e,t,n)=>{"use strict";t.__esModule=!0;var r=u(n(1255)),i=u(n(3312)),o=u(n(5636)),s=c(n(3683)),a=c(n(5287)),l=u(n(9756));
1function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function u(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var A=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,t);var i=d(this,e.call(this,n,r));return i.update(),i.enabled_=!0,i.el_.setAttribute("aria-haspopup","true"),i.el_.setAttribute("role","menuitem"),i.on("keydown",i.handleSubmenuKeyPress),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.update=function(){var e=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new o.default(this.player_);if(this.hideThreshold_=0,this.options_.title){var t=s.createEl("li",{className:"vjs-menu-title",innerHTML:(0,l.default)(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),s.insertElFirst(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e},t.prototype.createItems=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return"vjs-menu-button "+(t+=!0===this.options_.inline?"-inline":"-popup")+" "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",a.bind(this,function(e){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&&this.unpressButton(),9!==t.which&&t.preventDefault()):38===t.which||40===t.which?this.buttonPressed_||(this.pressButton(),t.preventDefault()):e.prototype.handleKeyPress.call(this,t)},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&e.preventDefault())},t.prototype.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded","true"),this.menu.focus())},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.el_.focus())},t.prototype.disable=function(){return this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.enabled_=!1,e.prototype.disable.call(this)},t.prototype.enable=function(){return this.enabled_=!0,e.prototype.enable.call(this)},t}(r.default);i.default.registerComponent("MenuButton",A),t.default=A},7104:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(1255)),i=s(n(3312)),o=n(7750);function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.selectable=r.selectable,i.selected(r.selected),i.el_.setAttribute("role",i.selectable?"menuitemcheckbox":"menuitem"),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(t,n,r){return this.nonIconControl
1=!0,e.prototype.createEl.call(this,"li",(0,o.assign)({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},n),r)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText("")))},t}(r.default);i.default.registerComponent("MenuItem",a),t.default=a},5636:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(3312))&&r.__esModule?r:{default:r},o=l(n(3683)),s=l(n(5287)),a=l(n(8963));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var c=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.focusedChild_=-1,i.on("keydown",i.handleKeyPress),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",s.bind(this,function(e){this.unlockShowing()}))},t.prototype.createEl=function(){this.contentEl_=o.createEl(this.options_.contentElType||"ul",{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var t=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return t.setAttribute("role","presentation"),t.appendChild(this.contentEl_),a.on(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice(),n=t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className);n&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(i.default);i.default.registerComponent("Menu",c),t.default=c},669:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=a(n(3683)),o=a(n(5287)),s=(r=n(3312))&&r.__esModule?r:{default:r};function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var l=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return o.opened_=o.hasBeenOpened_=o.hasBeenFilled_=!1,o.closeable(!o.options_.uncloseable),o.content(o.options_.content),o.contentEl_=i.createEl("div",{className:"vjs-modal-dialog-content"},{role:"document"}),o.descEl_=i.createEl("p",{className:"vjs-modal-dialog-description vjs-offscreen",id:o.el().getAttribute("aria-describedby")}),i.textContent(o.descEl_,o.description()),o.el_.appendChild(o.descEl_),o.el_.appendChild(o.contentEl_),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){27===e.which&&this.closeable()&&this.close()},t.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},t.prototype.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.prototype.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
1n&&this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",o.bind(this,this.handleKeyPress)),e.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},t.prototype.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",o.bind(this,this.handleKeyPress)),e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},t.prototype.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close)}!t&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},t.prototype.fill=function(){return this.fillWith(this.content())},t.prototype.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,r=t.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),i.insertContent(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t),this},t.prototype.empty=function(){return this.trigger("beforemodalempty"),i.emptyEl(this.contentEl()),this.trigger("modalempty"),this},t.prototype.content=function(e){return void 0!==e&&(this.content_=e),this.content_},t}(s.default);l.prototype.options_={pauseOnOpen:!0,temporary:!0},s.default.registerComponent("ModalDialog",l),t.default=l},2187:(e,t,n)=>{"use strict";t.__esModule=!0;var r=x(n(3312)),i=x(n(5219)),o=x(n(4071)),s=I(n(8963)),a=I(n(3683)),l=I(n(5287)),c=I(n(1937)),u=I(n(2385)),h=x(n(4484)),d=x(n(9756)),A=n(7481),p=n(6964),f=I(n(889)),g=x(n(1233)),m=x(n(231)),v=x(n(7574)),y=n(7750),b=x(n(6067)),_=x(n(4054)),w=x(n(669)),C=x(n(3941)),S=x(n(3858)),E=x(n(2008));function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}n(724),n(3970),n(9569),n(2956),n(9502),n(5261),n(9438),n(9141),n(6552),n(7698),n(6088);var T=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],B=function(e){function t(n,r,i){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n.id=n.id||"vjs_video_"+c.newGUID(),(r=(0,y.assign)(t.getTagSettings(n),r)).initChildren=!1,r.createEl=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var o=n.closest("[lang]");o&&(r.language=o.getAttribute("lang"))}else for(var s=n;s&&1===s.nodeType;){if(a.getElAttributes(s).hasOwnProperty("lang")){r.language=s.getAttribute("lang");break}s=s.parentNode}var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,null,r,i));if(!l.options_||!l.options_.techOrder||!l.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(l.tag=n,l.tagAttributes=n&&a.getElAttributes(n),l.language(l.options_.language),r.languages){var d={};Object.getOwnPropertyNames(r.languages).forEach(function(e){d[e.toLowerCase()]=r.languages[e]}),l.languages_=d}else l.languages_=t.prototype.options_.languages;l.cache_={},l.poster_=r.poster||"",l.controls_=!!r.controls,n.controls=!1,l.scrubbing_=!1,l.el_=l.createEl();var A=(0,b.default)(l.options_);if(r.plugins){var p=r.plugins;Object.getOwnPropertyNames(p).forEach(function(e){"function"==typeof this[e]?this[e](p[e]):h.default.error("Unable to find plugin:",e)},l)}l.options_.playerOptions=A,l.initChildren(),l.isAudio("audio"===n.nodeName.toLowerCase()),l.controls()?l.addClass("vjs-controls-enabled"):l.addClass("vjs-controls-disabled"),l.el_.setAttribute("role","regi
1on"),l.isAudio()?l.el_.setAttribute("aria-label","audio player"):l.el_.setAttribute("aria-label","video player"),l.isAudio()&&l.addClass("vjs-audio"),l.flexNotSupported_()&&l.addClass("vjs-no-flex"),u.IS_IOS||l.addClass("vjs-workinghover"),t.players[l.id_]=l;var f="5.20.5".split(".")[0];return l.addClass("vjs-v"+f),l.userActive(!0),l.reportUserActivity(),l.listenForUserActivity_(),l.on("fullscreenchange",l.handleFullscreenChange_),l.on("stageclick",l.handleStageClick_),l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var t=this.tag,n=void 0,r=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");n=this.el_=r?t.parentNode:e.prototype.createEl.call(this,"div"),t.setAttribute("tabindex","-1"),t.removeAttribute("width"),t.removeAttribute("height");var i=a.getElAttributes(t);if(Object.getOwnPropertyNames(i).forEach(function(e){"class"===e?n.className+=" "+i[e]:n.setAttribute(e,i[e])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=n.player=this,this.addClass("vjs-paused"),!0!==o.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=f.createStyleElement("vjs-styles-dimensions");var s=a.$(".vjs-styles-defaults"),l=a.$("head");l.insertBefore(this.styleEl_,s?s.nextSibling:l.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var c=t.getElementsByTagName("a"),u=0;u<c.length;u++){var h=c.item(u);a.addElClass(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!r&&t.parentNode.insertBefore(n,t),a.insertElFirst(t,n),this.children_.unshift(t),this.el_=n,n},t.prototype.width=function(e){return this.dimension("width",e)},t.prototype.height=function(e){return this.dimension("height",e)},t.prototype.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t)this[n]=void 0;else{var r=parseFloat(t);if(isNaN(r))return h.default.error('Improper value "'+t+'" supplied for for '+e),this;this[n]=r}return this.updateStyleEl_(),this},t.prototype.fluid=function(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,e?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){if(!0!==o.default.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),i=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/i:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*i,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),f.setTextContent(this.styleEl_,"\n      ."+n+" {\n        width: "+e+"px;\n        height: "+t+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+100*i+"%;\n      }\n    ")}else{var s="number"==typeof this.width_?this.width_:this.options_.width,a="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(s>=0&&(l.width=s),a>=0&&(l.height=a))}},t.prototype.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_(),"Html5"!==e&&this.tag&&(C.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=e,this.isReady_=!1;var i=(0,y.assign)({source:t,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+e+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"]},this.options_[e.toLowerCase()]);this.tag&&(i.tag=this.tag),t&&(this.currentType_=t.type,t.src===this.cache_.src&&this.cache_.currentTime>0&&(i.startTime=this.cache_.currentTime),this.cache_.sources=null,this.cache_.source=t,this.cache_.src=t.src);var o=C.default.getTech(e);o||(o=r.default.getComponent(e)),this.tech_=new o(i),this.tech_.ready(l.bind(this,this.handleTechReady_),!0),_.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),T.forEach(function(e){n.on(n.tech_,e,n["handleTech"+(0,d.default)(e)+"_"])}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"
1waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===e&&this.tag||a.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks(),this.textTracks_=this.textTracks(),this.audioTracks_=this.audioTracks(),this.textTracksJson_=_.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},t.prototype.tech=function(e){if(e&&e.IWillNotUseThisInPlugins)return this.tech_;var t="\n      Please make sure that you are not using this inside of a plugin.\n      To disable this alert and error, please pass in an object with\n      `IWillNotUseThisInPlugins` to the `tech` method. See\n      https://github.com/videojs/video.js/issues/2617 for more info.\n    ";throw o.default.alert(t),new Error(t)},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(e){(0,h.default)("deleting tag.poster throws in some browsers",e)}this.play()}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(e){return void 0!==e?(this.hasStarted_!==e&&(this.hasStarted_=e,e?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(h.default.warn("Passing the `starttime` option to the player will be deprecated 
1in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(e){0===e.button&&this.controls()&&(this.paused()?this.play():this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(e){e.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(e,t){t&&this.isFullscreen(t.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,t){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[e](t)},!0);else try{this.tech_&&this.tech_[e](t)}catch(n){throw(0,h.default)(n),n}},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[e]()}catch(t){throw void 0===this.tech_[e]?(0,h.default)("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t):"TypeError"===t.name?((0,h.default)("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1):(0,h.default)(t),t}},t.prototype.play=function(){return this.src()||this.currentSrc()?this.techCall_("play"):this.tech_.one("loadstart",function(){this.play()}),this},t.prototype.pause=function(){return this.techCall_("pause"),this},t.prototype.paused=function(){return!1!==this.techGet_("paused")},t.prototype.scrubbing=function(e){return void 0!==e?(this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},t.prototype.currentTime=function(e){return void 0!==e?(this.techCall_("setCurrentTime",e),this):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},t.prototype.duration=function(e){return void 0===e?void 0!==this.cache_.duration?this.cache_.duration:NaN:((e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=(0,A.createTimeRange)(0,0)),e},t.prototype.bufferedPercent=function(){return(0,p.bufferedPercent)(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},t.prototype.volume=function(e){var t=void 0;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),this):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(e){return void 0!==e?(this.techCall_("setMuted",e),this):this.techGet_("muted")||!1},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){return void 0!==e?(this.isFullscreen_=!!e,this):!!this.isFullscreen_},t.prototype.requestFullscreen=function(){var e=g.default;return this.isFullscreen(!0),e.requestFullscreen?(s.on(i.default,e.fullscreenchange,l.bind(this,function t(n){this.isFullscreen(i.default[e.fullscreenElement]),!1===this.isFullscreen()&&s.off(i.default,e.fullscreenchange,t),this.trigger("fullscreenchange")})),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.exitFullscreen=function(){var e=g.default;return this.isFullscreen(!1),e.requestFullscreen?i.default[e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=i.default.documentElement.style.overflow,s.on(i.default,"keydown",l.bind(this,this.fullWindowOnEscKey)),i.default.documentElement.style.overflow="hidden",a.addElClass(i.default.body,"vjs-full-window"),this.trigger("enterFullWindow")}
1,t.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,s.off(i.default,"keydown",this.fullWindowOnEscKey),i.default.documentElement.style.overflow=this.docOrigOverflow,a.removeElClass(i.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(e){for(var t=void 0,n=0,i=this.options_.techOrder;n<i.length;n++){var o=(0,d.default)(i[n]),s=C.default.getTech(o);if(s||(s=r.default.getComponent(o)),s){if(s.isSupported()&&(t=s.canPlayType(e)))return t}else h.default.error('The "'+o+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var t,n=this,i=this.options_.techOrder.map(d.default).map(function(e){return[e,C.default.getTech(e)||r.default.getComponent(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(h.default.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),o=function(e,t,n){var r=void 0;return e.some(function(e){return t.some(function(t){if(r=n(e,t))return!0})}),r},s=function(e,t){var r=e[0];if(e[1].canPlaySource(t,n.options_[r.toLowerCase()]))return{source:t,tech:r}};return(this.options_.sourceOrder?o(e,i,(t=s,function(e,n){return t(n,e)})):o(i,e,s))||!1},t.prototype.src=function(e){if(void 0===e)return this.techGet_("src");var t=C.default.getTech(this.techName_);return t||(t=r.default.getComponent(this.techName_)),Array.isArray(e)?this.sourceList_(e):"string"==typeof e?this.src({src:e}):e instanceof Object&&(e.type&&!t.canPlaySource(e,this.options_[this.techName_.toLowerCase()])?this.sourceList_([e]):(this.cache_.sources=null,this.cache_.source=e,this.cache_.src=e.src,this.currentType_=e.type||"",this.ready(function(){t.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),"auto"===this.options_.preload&&this.load(),this.options_.autoplay&&this.play()},!0))),this},t.prototype.sourceList_=function(e){var t=this.selectSource(e);t?(t.tech===this.techName_?this.src(t.source):this.loadTech_(t.tech,t.source),this.cache_.sources=e):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},t.prototype.load=function(){return this.techCall_("load"),this},t.prototype.reset=function(){return this.loadTech_((0,d.default)(this.options_.techOrder[0]),null),this.techCall_("reset"),this},t.prototype.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},t.prototype.currentSource=function(){var e={},t=this.currentSrc();return t&&(e.src=t),this.cache_.source||e},t.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},t.prototype.currentType=function(){return this.currentType_||""},t.prototype.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),this.options_.preload=e,this):this.techGet_("preload")},t.prototype.autoplay=function(e){return void 0!==e?(this.techCall_("setAutoplay",e),this.options_.autoplay=e,this):this.techGet_("autoplay",e)},t.prototype.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},t.prototype.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),this.options_.loop=e,this):this.techGet_("loop")},t.prototype.poster=function(e){return void 0===e?this.poster_:(e||(e=""),this.poster_=e,this.techCall_("setPoster",e),this.trigger("posterchange"),this)},t.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},t.prototype.controls=function(e){return void 0!==e?(this.controls_!==(e=!!e)&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),e?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
1sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},t.prototype.usingNativeControls=function(e){return void 0!==e?(this.usingNativeControls_!==(e=!!e)&&(this.usingNativeControls_=e,e?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},t.prototype.error=function(e){return void 0===e?this.error_||null:null===e?(this.error_=e,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close(),this):(this.error_=new m.default(e),this.addClass("vjs-error"),h.default.error("(CODE:"+this.error_.code+" "+m.default.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=function(e){return void 0!==e?((e=!!e)!==this.userActive_&&(this.userActive_=e,e?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.userActivity_=!1,this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.userActive_},t.prototype.listenForUserActivity_=function(){var e=void 0,t=void 0,n=void 0,r=l.bind(this,this.reportUserActivity);this.on("mousedown",function(){r(),this.clearInterval(e),e=this.setInterval(r,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())}),this.on("mouseup",function(t){r(),this.clearInterval(e)}),this.on("keydown",r),this.on("keyup",r);var i=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(i);var e=this.options_.inactivityTimeout;e>0&&(i=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},t.prototype.playbackRate=function(e){return void 0!==e?(this.techCall_("setPlaybackRate",e),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.isAudio=function(e){return void 0!==e?(this.isAudio_=!!e,this):!!this.isAudio_},t.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new E.default,this.videoTracks_)},t.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new S.default,this.audioTracks_)},t.prototype.textTracks=function(){if(this.tech_)return this.tech_.textTracks()},t.prototype.remoteTextTracks=function(){if(this.tech_)return this.tech_.remoteTextTracks()},t.prototype.remoteTextTrackEls=function(){if(this.tech_)return this.tech_.remoteTextTrackEls()},t.prototype.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},t.prototype.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},t.prototype.removeRemoteTextTrack=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.track,n=void 0===t?arguments[0]:t;if(this.tech_)return this.tech_.removeRemoteTextTrack(n)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(e){return void 0===e?this.language_:(this.language_=String(e).toLowerCase(),this)},t.prototype.languages=function(){return(0,b.default)(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=(0,b.default)(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];(r=(0,b.default)(r)).player=void 0,e.tracks[n]=r}return e},t.prototype.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var r=new w.default(this,t);return this.addChild(r),r.on("dispose",function(){n.removeChild(r)}),r.open()},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=a.getElAttributes(e),r=n["data-setup"];if(a.hasElClass(e,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=(0,v.default)(r||"{}"),o=i[0],s=i[1];o&&h.default.error(o),(0,y.assign)(n,s)}if((0,y.assign)(t,n),e.hasChildNodes())for(var l=e.childNodes,c=0,u=l.length;c<u;c++){var d=l[c],A=d.nodeName.toLowerCase();"source"===A?t.sources.push(a.getElAttributes(d)):"track"===A&&t.tracks.push(a.getElAttributes(d))}return t},t.prototype.flexNotSupported_=function(){var e=i.default.createElement("i");
1return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(r.default);B.players={};var k=o.default.navigator;B.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:k&&(k.languages&&k.languages[0]||k.userLanguage||k.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){B.prototype[e]=function(){return this.techGet_(e)}}),T.forEach(function(e){B.prototype["handleTech"+(0,d.default)(e)+"_"]=function(){return this.trigger(e)}}),r.default.registerComponent("Player",B),t.default=B},89:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(2187))&&r.__esModule?r:{default:r};t.default=function(e,t){i.default.prototype[e]=t}},4818:(e,t,n)=>{"use strict";t.__esModule=!0;var r=o(n(1255)),i=o(n(3312));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,t);var i=a(this,e.call(this,n,r));return i.update(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.update=function(){var e=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=e,this.addChild(e),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},t.prototype.createPopup=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return"vjs-menu-button "+(t+=!0===this.options_.inline?"-inline":"-popup")+" "+e.prototype.buildCSSClass.call(this)},t}(r.default);i.default.registerComponent("PopupButton",l),t.default=l},4478:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(3312))&&r.__esModule?r:{default:r},o=l(n(3683)),s=l(n(5287)),a=l(n(8963));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){return c(this,t),u(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",s.bind(this,function(){this.unlockShowing()}))},t.prototype.createEl=function(){this.contentEl_=o.createEl(this.options_.contentElType||"ul",{className:"vjs-menu-content"});var t=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),a.on(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t},t}(i.default);i.default.registerComponent("Popup",h),t.default=h},9569:(e,t,n)=>{"use strict";t.__esModule=!0;var r=c(n(1255)),i=c(n(3312)),o=l(n(5287)),s=l(n(3683)),a=l(n(2385));
1function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.update(),n.on("posterchange",o.bind(i,i.update)),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=s.createEl("div",{className:"vjs-poster",tabIndex:-1});return a.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=s.createEl("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())},t}(r.default);i.default.registerComponent("PosterImage",u),t.default=u},5037:(e,t,n)=>{"use strict";t.__esModule=!0,t.hasLoaded=t.autoSetupTimeout=t.autoSetup=void 0;var r=l(n(3683)),i=l(n(8963)),o=a(n(5219)),s=a(n(4071));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}
1var c=!1,u=void 0,h=function(){if(r.isReal()){var e=o.default.getElementsByTagName("video"),t=o.default.getElementsByTagName("audio"),n=[];if(e&&e.length>0)for(var i=0,s=e.length;i<s;i++)n.push(e[i]);if(t&&t.length>0)for(var a=0,l=t.length;a<l;a++)n.push(t[a]);if(n&&n.length>0)for(var h=0,A=n.length;h<A;h++){var p=n[h];if(!p||!p.getAttribute){d(1);break}void 0===p.player&&null!==p.getAttribute("data-setup")&&u(p)}else c||d(1)}};function d(e,t){t&&(u=t),s.default.setTimeout(h,e)}r.isReal()&&"complete"===o.default.readyState?c=!0:i.one(s.default,"load",function(){c=!0}),t.autoSetup=h,t.autoSetupTimeout=d,t.hasLoaded=function(){return c}},7110:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(3312))&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3683)),s=n(7750),a=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.on("mousedown",i.handleMouseDown),i.on("touchstart",i.handleMouseDown),i.on("focus",i.handleFocus),i.on("blur",i.handleBlur),i.on("click",i.handleClick),i.on(n,"controlsvisible",i.update),i.on(n,i.playerEvent,i.update),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=(0,s.assign)({tabIndex:0},n),r=(0,s.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;e.preventDefault(),o.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;o.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!=typeof e||e!=e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%";this.vertical()?t.el().style.height=n:t.el().style.width=n}}},t.prototype.calculateDistance=function(e){var t=o.getPointerPosition(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){return void 0===e?this.vertical_||!1:(this.vertical_=!!e,this.addClass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal"),this)},t}(i.default);i.default.registerComponent("Slider",a),t.default=a},8615:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},e.streamFromParts=function(e,t){return e+"&"+t},e.streamToParts=function(e){var t={connection:"",stream:""};if(!e)return t;var n=e.search(/&(?!\w+=)/),r=void 0;return-1!==n?r=n+1:0===(n=r=e.lastIndexOf("/")+1)&&(n=r=e.length),t.connection=e.substring(0,n),t.stream=e.substring(r,e.length),t},e.isStreamingType=function(t){return t in e.streamingFormats},e.RTMP_RE=/^rtmp[set]?:\/\//i,e.isStreamingSrc=function(t){return e.RTMP_RE.test(t)},e.rtmpSourceHandler={},e.rtmpSourceHandler.canPlayType=function(t){return e.isStreamingType(t)?"maybe":""},e.rtmpSourceHandler.canHandleSource=function(t,n){return e.rtmpSourceHandler.canPlayType(t.type)||(e.isStreamingSrc(t.src)?"maybe":"")},e.rtmpSourceHandler.handleSource=function(t,n,r){var i=e.streamToParts(t.src);n.setRtmpConnection(i.connection),n.setRtmpStream(i.stream)},e.registerSourceHandler(e.rtmpSourceHandler),e}},3970:(e,t,n)=>{"use strict";t.__esModule=!0;var r=d(n(3941)),i=h(n(3683)),o=h(n(2500)),s=n(7481),a=d(n(8615)),l=d(n(3312)),c=d(n(4071)),u=n(7750);
1function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}var A=c.default.navigator,p=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return n.source&&i.ready(function(){this.setSource(n.source)},!0),n.startTime&&i.ready(function(){this.load(),this.play(),this.currentTime(n.startTime)},!0),c.default.videojs=c.default.videojs||{},c.default.videojs.Flash=c.default.videojs.Flash||{},c.default.videojs.Flash.onReady=t.onReady,c.default.videojs.Flash.onEvent=t.onEvent,c.default.videojs.Flash.onError=t.onError,i.on("seeked",function(){this.lastSeekTarget_=void 0}),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createEl=function(){var e=this.options_;e.swf||(e.swf="//vjs.zencdn.net/swf/5.4.1/video-js.swf");var n=e.techId,r=(0,u.assign)({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:e.autoplay,preload:e.preload,loop:e.loop,muted:e.muted},e.flashVars),i=(0,u.assign)({wmode:"opaque",bgcolor:"#000000"},e.params),o=(0,u.assign)({id:n,name:n,class:"vjs-tech"},e.attributes);return this.el_=t.embed(e.swf,r,i,o),this.el_.tech=this,this.el_},t.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},t.prototype.pause=function(){this.el_.vjs_pause()},t.prototype.src=function(e){return void 0===e?this.currentSrc():this.setSrc(e)},t.prototype.setSrc=function(e){var t=this;e=o.getAbsoluteURL(e),this.el_.vjs_src(e),this.autoplay()&&this.setTimeout(function(){return t.play()},0)},t.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},t.prototype.setCurrentTime=function(t){var n=this.seekable();n.length&&(t=(t=t>n.start(0)?t:n.start(0))<n.end(n.length-1)?t:n.end(n.length-1),this.lastSeekTarget_=t,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",t),e.prototype.setCurrentTime.call(this))},t.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},t.prototype.duration=function(){if(0===this.readyState())return NaN;var e=this.el_.vjs_getProperty("duration");return e>=0?e:1/0},t.prototype.load=function(){this.el_.vjs_load()},t.prototype.poster=function(){this.el_.vjs_getProperty("poster")},t.prototype.setPoster=function(){},t.prototype.seekable=function(){var e=this.duration();return 0===e?(0,s.createTimeRange)():(0,s.createTimeRange)(0,e)},t.prototype.buffered=function(){var e=this.el_.vjs_getProperty("buffered");return 0===e.length?(0,s.createTimeRange)():(0,s.createTimeRange)(e[0][0],e[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t.prototype.getVideoPlaybackQuality=function(){var e=this.el_.vjs_getProperty("getVideoPlaybackQuality");return c.default.performance&&"function"==typeof c.default.performance.now?e.creationTime=c.default.performance.now():c.default.performance&&c.default.performance.timing&&"number"==typeof c.default.performance.timing.navigationStart&&(e.creationTime=c.default.Date.now()-c.default.performance.timing.navigationStart),e},t}(r.default),f=p.prototype,g="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),m="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(",");function v(e){var t=e.charAt(0).toUpperCase()+e.slice(1);f["set"+t]=function(t){return this.el_.vjs_setProperty(e,t)}}function y(e){f[e]=function(){return this.el_.vjs_getProperty(e)}}for(var b=0;b<g.length;b++)y(g[b]),v(g[b]);for(var _=0;_<m.length;_++)y(m[_]);p.isSupported=function(){return p.version()[0]>=10},r.default.withSourceHandlers(p),p.nativeSourceHandler={},p.nativeSourceHandler.canPlayType=function(e){return e in p.formats?"maybe":""},p.nativeSourceHandler.canHandleSource=function(e,t){var n,r;return r=e.type?e.type.replace(/;.*/,"").toLowerCase():(n=o.getFileExtension(e.src))?"video/"+n:"",p.nativeSourceHandler.canPlayType(r)},p.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},p.nativeSourceHandler.dispose=function(){},p.registerSourceHandler(p.nativeSourceHandler),p.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},p.onReady=function(e){var t=i.getEl(e),n=t&&t.tech;n&&n.el()&&p.checkReady(n)},p.checkReady=function(e){e.el()&&(e.el().vjs_getProperty?e.triggerReady():this.setTimeout(function(){p.checkReady(e)},50))},p.onEvent=function(e,t){var n=i.getEl(e).tech,r=Array.prototype.slice.call(arguments,2);n.setTimeout(function(){n.trigger(t,r)},1)},p.onError=function(e,t){var n=i.getEl(e).tech;if("srcnotfound"===t)return n.error(4);n.error("FLASH: "+t)},p.version=function(){var e="0,0,0";try{e=new c.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{A.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(e=(A.plugins["Shockwave Flash 2.0"]||A.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(n){}}return e.split(",")},p.embed=function(e,t,n,r){var o=p.getEmbedCode(e,t,n,r);return i.createEl("div",{innerHTML:o}).childNodes[0]},p.getEmbedCode=function(e,t,n,r){var i="",o="",s="";return t&&Object.getOwnPropertyNames(t).forEach(function(e){i+=e+"="+t[e]+"&amp;"}),n=(0,u.assign)({movie:e,flashvars:i,allowScriptAccess:"always",allowNetworking:"all"}
1,n),Object.getOwnPropertyNames(n).forEach(function(e){o+='<param name="'+e+'" value="'+n[e]+'" />'}),r=(0,u.assign)({data:e,width:"100%",height:"100%"},r),Object.getOwnPropertyNames(r).forEach(function(e){s+=e+'="'+r[e]+'" '}),'<object type="application/x-shockwave-flash" '+s+">"+o+"</object>"},(0,a.default)(p),l.default.registerComponent("Flash",p),r.default.registerTech("Flash",p),t.default=p},6088:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=((r=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."]).raw=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n            This may prevent text tracks from loading."],r),o=y(n(3941)),s=y(n(3312)),a=v(n(3683)),l=v(n(2500)),c=v(n(5287)),u=y(n(4484)),h=y(n(3879)),d=v(n(2385)),A=y(n(5219)),p=y(n(4071)),f=n(7750),g=y(n(6067)),m=y(n(9756));function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function y(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r)),s=n.source,a=!1;if(s&&(o.el_.currentSrc!==s.src||n.tag&&3===n.tag.initNetworkState_)?o.setSource(s):o.handleLateInit_(o.el_),o.el_.hasChildNodes()){for(var A=o.el_.childNodes,p=A.length,f=[];p--;){var g=A[p];"track"===g.nodeName.toLowerCase()&&(o.featuresNativeTextTracks?(o.remoteTextTrackEls().addTrackElement_(g),o.remoteTextTracks().addTrack_(g.track),a||o.el_.hasAttribute("crossorigin")||!l.isCrossOrigin(g.src)||(a=!0)):f.push(g))}for(var v=0;v<f.length;v++)o.el_.removeChild(f[v])}return["audio","video"].forEach(function(e){var t=o.el()[e+"Tracks"],n=o[e+"Tracks"](),r=(0,m.default)(e);o["featuresNative"+r+"Tracks"]&&t&&t.addEventListener&&(o["handle"+r+"TrackChange_"]=function(e){n.trigger({type:"change",target:n,currentTarget:n,srcElement:n})},o["handle"+r+"TrackAdd_"]=function(e){return n.addTrack(e.track)},o["handle"+r+"TrackRemove_"]=function(e){return n.removeTrack(e.track)},t.addEventListener("change",o["handle"+r+"TrackChange_"]),t.addEventListener("addtrack",o["handle"+r+"TrackAdd_"]),t.addEventListener("removetrack",o["handle"+r+"TrackRemove_"]),o["removeOld"+r+"Tracks_"]=function(e){return o.removeOldTracks_(n,t)},o.on("loadstart",o["removeOld"+r+"Tracks_"]))}),o.featuresNativeTextTracks&&(a&&u.default.warn((0,h.default)(i)),o.handleTextTrackChange_=c.bind(o,o.handleTextTrackChange),o.handleTextTrackAdd_=c.bind(o,o.handleTextTrackAdd),o.handleTextTrackRemove_=c.bind(o,o.handleTextTrackRemove),o.proxyNativeTextTracks_()),o.restoreMetadataTracksInIOSNativePlayer_(),(d.TOUCH_ENABLED||d.IS_IPHONE||d.IS_NATIVE_ANDROID)&&!0===n.nativeControlsForTouch&&o.setControls(!0),o.proxyWebkitFullscreen_(),o.triggerReady(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.dispose=function(){var n=this;["audio","video","text"].forEach(function(e){var t=(0,m.default)(e),r=n.el_[e+"Tracks"];r&&r.removeEventListener&&(r.removeEventListener("change",n["handle"+t+"TrackChange_"]),r.removeEventListener("addtrack",n["handle"+t+"TrackAdd_"]),r.removeEventListener("removetrack",n["handle"+t+"TrackRemove_"])),r&&n.off("loadstart",n["removeOld"+t+"Tracks_"])}),t.disposeMediaElement(this.el_),e.prototype.dispose.call(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),t=void 0,n=function(){t=[];for(var n=0;n<e.length;n++){var r=e[n];"metadata"===r.kind&&t.push({track:r,storedMode:r.mode})}};n(),e.addEventListener("change",n);var r=function n(){for(var r=0;r<t.length;r++){var i=t[r];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",n),e.removeEventListener("change",r),e.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",r)})},t.prototype.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=A.default.createElement("video");var r=this.options_.tag&&a.getElAttributes(this.options_.tag),i=(0,g.default)({},r);
1d.TOUCH_ENABLED&&!0===this.options_.nativeControlsForTouch||delete i.controls,a.setElAttributes(e,(0,f.assign)(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&a.setAttribute(e,"preload",this.options_.preload);for(var o=["loop","muted","playsinline","autoplay"],s=o.length-1;s>=0;s--){var l=o[s],c=this.options_[l];void 0!==c&&(c?a.setAttribute(e,l,l):a.removeAttribute(e,l),e[l]=c)}return e},t.prototype.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var r=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),t||this.trigger("loadstart")})}var i=["loadstart"];i.push("loadedmetadata"),e.readyState>=2&&i.push("loadeddata"),e.readyState>=3&&i.push("canplay"),e.readyState>=4&&i.push("canplaythrough"),this.ready(function(){i.forEach(function(e){this.trigger(e)},this)})}},t.prototype.proxyNativeTextTracks_=function(){var e=this.el().textTracks;if(e){for(var t=0;t<e.length;t++)this.textTracks().addTrack_(e[t]);e.addEventListener&&(e.addEventListener("change",this.handleTextTrackChange_),e.addEventListener("addtrack",this.handleTextTrackAdd_),e.addEventListener("removetrack",this.handleTextTrackRemove_)),this.on("loadstart",this.removeOldTextTracks_)}},t.prototype.handleTextTrackChange=function(e){var t=this.textTracks();this.textTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},t.prototype.handleTextTrackAdd=function(e){this.textTracks().addTrack_(e.track)},t.prototype.handleTextTrackRemove=function(e){this.textTracks().removeTrack_(e.track)},t.prototype.removeOldTracks_=function(e,t){var n=[];if(t){for(var r=0;r<e.length;r++){for(var i=e[r],o=!1,s=0;s<t.length;s++)if(t[s]===i){o=!0;break}o||n.push(i)}for(var a=0;a<n.length;a++)e.removeTrack_(n[a])}},t.prototype.removeOldTextTracks_=function(e){var t=this.textTracks(),n=this.el().textTracks;this.removeOldTracks_(t,n)},t.prototype.play=function(){var e=this.el_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(t){(0,u.default)(t,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var e=this;return this.el_.duration===1/0&&d.IS_ANDROID&&d.IS_CHROME&&0===this.el_.currentTime?(this.on("timeupdate",function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN):this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},t.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=p.default.navigator&&p.default.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(t,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,r):e.prototype.addTextTrack.call(this,t,n,r)},t.prototype.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=A.default.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},t.prototype.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},t.prototype.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)t!==n[r]&&t!==n[r].track||this.el().removeChild(n[r])},t.prototype.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),p.default.performance&&"function"==typeof p.default.performance.now?e.creationTime=p.default.performance.now():p.default.performance&&p.default.performance.timing&&"number"==typeof p.default.performance.timing.navigationStart&&(e.creationTime=p.default.Date.now()-p.default.performance.timing.navigationStart),e},t}(o.default);
1if(a.isReal()){b.TEST_VID=A.default.createElement("video");var _=A.default.createElement("track");_.kind="captions",_.srclang="en",_.label="English",b.TEST_VID.appendChild(_)}b.isSupported=function(){try{b.TEST_VID.volume=.5}catch(e){return!1}return!(!b.TEST_VID||!b.TEST_VID.canPlayType)},b.canControlVolume=function(){try{var e=b.TEST_VID.volume;return b.TEST_VID.volume=e/2+.1,e!==b.TEST_VID.volume}catch(t){return!1}},b.canControlPlaybackRate=function(){if(d.IS_ANDROID&&d.IS_CHROME&&d.CHROME_VERSION<58)return!1;try{var e=b.TEST_VID.playbackRate;return b.TEST_VID.playbackRate=e/2+.1,e!==b.TEST_VID.playbackRate}catch(t){return!1}},b.supportsNativeTextTracks=function(){return d.IS_ANY_SAFARI},b.supportsNativeVideoTracks=function(){return!(!b.TEST_VID||!b.TEST_VID.videoTracks)},b.supportsNativeAudioTracks=function(){return!(!b.TEST_VID||!b.TEST_VID.audioTracks)},b.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],b.prototype.featuresVolumeControl=b.canControlVolume(),b.prototype.featuresPlaybackRate=b.canControlPlaybackRate(),b.prototype.movingMediaElementInDOM=!d.IS_IOS,b.prototype.featuresFullscreenResize=!0,b.prototype.featuresProgressEvents=!0,b.prototype.featuresTimeupdateEvents=!0,b.prototype.featuresNativeTextTracks=b.supportsNativeTextTracks(),b.prototype.featuresNativeVideoTracks=b.supportsNativeVideoTracks(),b.prototype.featuresNativeAudioTracks=b.supportsNativeAudioTracks();var w=b.TEST_VID&&b.TEST_VID.constructor.prototype.canPlayType,C=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,S=/^video\/mp4/i;b.patchCanPlayType=function(){d.ANDROID_VERSION>=4&&!d.IS_FIREFOX?b.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&C.test(e)?"maybe":w.call(this,e)}:d.IS_OLD_ANDROID&&(b.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&S.test(e)?"maybe":w.call(this,e)})},b.unpatchCanPlayType=function(){var e=b.TEST_VID.constructor.prototype.canPlayType;return b.TEST_VID.constructor.prototype.canPlayType=w,e},b.patchCanPlayType(),b.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(t){}}()}},b.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){b.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){b.prototype["set"+(0,m.default)(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){b.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate"].forEach(function(e){b.prototype["set"+(0,m.default)(e)]=function(t){this.el_[e]=t}}),["pause","load"].forEach(function(e){b.prototype[e]=function(){return this.el_[e]()}}),o.default.withSourceHandlers(b),b.nativeSourceHandler={},b.nativeSourceHandler.canPlayType=function(e){try{return b.TEST_VID.canPlayType(e)}catch(t){return""}},b.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return b.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=l.getFileExtension(e.src);return b.nativeSourceHandler.canPlayType("video/"+n)}return""},b.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},b.nativeSourceHandler.dispose=function(){},b.registerSourceHandler(b.nativeSourceHandler),s.default.registerComponent("Html5",b),o.default.registerTech("Html5",b),t.default=b},724:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(3312)),i=s(n(3941)),o=s(n(9756));
1function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,s,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,s,a));if(s.playerOptions.sources&&0!==s.playerOptions.sources.length)n.src(s.playerOptions.sources);else for(var c=0,u=s.playerOptions.techOrder;c<u.length;c++){var h=(0,o.default)(u[c]),d=i.default.getTech(h);if(h||(d=r.default.getComponent(h)),d&&d.isSupported()){n.loadTech_(h);break}}return l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default);r.default.registerComponent("MediaLoader",a),t.default=a},3941:(e,t,n)=>{"use strict";t.__esModule=!0;var r=y(n(3312)),i=y(n(9725)),o=y(n(3623)),s=y(n(6067)),a=y(n(4623)),l=y(n(141)),c=y(n(2008)),u=y(n(3858)),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5287)),d=y(n(4484)),A=n(7481),p=n(6964),f=y(n(231)),g=y(n(4071)),m=y(n(5219)),v=n(7750);function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var w=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};b(this,t),n.reportTouchActivity=!1;var i=_(this,e.call(this,null,n,r));return i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),i.textTracks_=n.textTracks,i.videoTracks_=n.videoTracks,i.audioTracks_=n.audioTracks,i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===n["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)}),!1===n.nativeCaptions&&(i.featuresNativeTextTracks=!1),i.featuresNativeTextTracks||i.emulateTextTracks(),i.autoRemoteTextTracks_=new l.default,i.initTextTrackListeners(),i.initTrackListeners(),n.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(h.bind(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return(0,A.createTimeRange)(0,0)},t.prototype.bufferedPercent=function(){return(0,p.bufferedPercent)(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;
1(e=[].concat(e)).forEach(function(e){for(var n=t[e+"Tracks"]()||[],r=n.length;r--;){var i=n[r];"text"===e&&t.removeRemoteTextTrack(i),n.removeTrack_(i)}})},t.prototype.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;)this.removeRemoteTextTrack(e[t])},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new f.default(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?(0,A.createTimeRange)(0,0):(0,A.createTimeRange)()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTextTrackListeners=function(){var e=h.bind(this,function(){this.trigger("texttrackchange")}),t=this.textTracks();t&&(t.addEventListener("removetrack",e),t.addEventListener("addtrack",e),this.on("dispose",h.bind(this,function(){t.removeEventListener("removetrack",e),t.removeEventListener("addtrack",e)})))},t.prototype.initTrackListeners=function(){var e=this;["video","audio"].forEach(function(t){var n=function(){e.trigger(t+"trackchange")},r=e[t+"Tracks"]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),e.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})},t.prototype.addWebVttScript_=function(){var e=this;if(!g.default.WebVTT)if(m.default.body.contains(this.el())){var t=n(7170);if(!this.options_["vtt.js"]&&(0,v.isPlain)(t)&&Object.keys(t).length>0)return void this.trigger("vttjsloaded");var r=m.default.createElement("script");r.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",r.onload=function(){e.trigger("vttjsloaded")},r.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){r.onload=null,r.onerror=null}),g.default.WebVTT=!0,this.el().parentNode.appendChild(r)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,t=this.textTracks();if(t){var n=this.remoteTextTracks(),r=function(e){return t.addTrack_(e.track)},i=function(e){return t.removeTrack_(e.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var o=function(){return e.trigger("texttrackchange")},s=function(){o();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};s(),t.addEventListener("change",s),t.addEventListener("addtrack",s),t.addEventListener("removetrack",s),this.on("dispose",function(){n.off("addtrack",r),n.off("removetrack",i),t.removeEventListener("change",s),t.removeEventListener("addtrack",s),t.removeEventListener("removetrack",s);for(var e=0;e<t.length;e++)t[e].removeEventListener("cuechange",o)})}},t.prototype.videoTracks=function(){return this.videoTracks_=this.videoTracks_||new c.default,this.videoTracks_},t.prototype.audioTracks=function(){return this.audioTracks_=this.audioTracks_||new u.default,this.audioTracks_},t.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new l.default,this.textTracks_},t.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new l.default,this.remoteTextTracks_},t.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new o.default,this.remoteTextTrackEls_},t.prototype.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;var s=new a.default(i);return o.addTrack_(s),s}(this,e,t,n)},t.prototype.createRemoteTextTrack=function(e){var t=(0,s.default)(e,{tech:this});return new i.default(t)},t.prototype.addRemoteTextTrack=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(d.default.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),!0!==t&&this.autoRemoteTextTracks_.addTrack_(n.track),n},t.prototype.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack_(e),this.autoRemoteTextTracks_.removeTrack_(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");return t.techs_[e]=n,n},t.getTech=function(e){return t.techs_&&t.techs_[e]?t.techs_[e]:g.default&&g.default.videojs&&g.default.videojs[e]?(d.default.warn("The "+e+" tech w
1as added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),g.default.videojs[e]):void 0},t}(r.default);w.prototype.featuresVolumeControl=!0,w.prototype.featuresFullscreenResize=!1,w.prototype.featuresPlaybackRate=!1,w.prototype.featuresProgressEvents=!1,w.prototype.featuresTimeupdateEvents=!1,w.prototype.featuresNativeTextTracks=!1,w.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n=e.sourceHandlers||[],r=void 0,i=0;i<n.length;i++)if(r=n[i].canPlayType(t))return r;return""},e.selectSourceHandler=function(t,n){for(var r=e.sourceHandlers||[],i=0;i<r.length;i++)if(r[i].canHandleSource(t,n))return r[i];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""},["seekable","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);return n||(e.nativeSourceHandler?n=e.nativeSourceHandler:d.default.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==e.nativeSourceHandler&&(this.currentSource_=t,this.off(this.el_,"loadstart",e.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",e.prototype.successiveLoadStartListener_),this.one(this.el_,"loadstart",e.prototype.firstLoadStartListener_)),this.sourceHandler_=n.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler),this},e.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",e.prototype.successiveLoadStartListener_)},e.prototype.successiveLoadStartListener_=function(){this.disposeSourceHandler(),this.one(this.el_,"loadstart",e.prototype.successiveLoadStartListener_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.off(this.el_,"loadstart",e.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",e.prototype.successiveLoadStartListener_),this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},r.default.registerComponent("Tech",w),r.default.registerComponent("MediaTechController",w),w.registerTech("Tech",w),t.default=w},3858:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(3145)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2385)),o=s(n(5219));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e,t){for(var n=0;n<e.length;n++)t.id!==e[n].id&&(e[n].enabled=!1)},u=function(e){function t(){var n,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(this,t);for(var u=void 0,h=s.length-1;h>=0;h--)if(s[h].enabled){c(s,s[h]);break}if(i.IS_IE8){for(var d in u=o.default.createElement("custom"),r.default.prototype)"constructor"!==d&&(u[d]=r.default.prototype[d]);for(var A in t.prototype)"constructor"!==A&&(u[A]=t.prototype[A])}return(u=n=l(this,e.call(this,s,u))).changing_=!1,l(n,u)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.addTrack_=function(t){var n=this;t.enabled&&c(this,t),e.prototype.addTrack_.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,c(n,t),n.changing_=!1,n.trigger("change"))})},t.prototype.addTrack=function(e){this.addTrack_(e)},t.prototype.removeTrack=function(t){e.prototype.removeTrack_.call(this,t)},t}(r.default);t.default=u},197:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(3098),i=a(n(9783)),o=a(n(6067)),s=function(e){if(e&&e.__esMo
1dule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2385));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,t);var a=(0,o.default)(i,{kind:r.AudioTrackKind[i.kind]||""}),u=n=c(this,e.call(this,a)),h=!1;if(s.IS_IE8)for(var d in t.prototype)"constructor"!==d&&(u[d]=t.prototype[d]);return Object.defineProperty(u,"enabled",{get:function(){return h},set:function(e){"boolean"==typeof e&&e!==h&&(h=e,this.trigger("enabledchange"))}}),a.enabled&&(u.enabled=a.enabled),u.loaded_=!0,c(n,u)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default);t.default=u},3623:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2385)),o=(r=n(5219))&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,e);var n=this;if(i.IS_IE8)for(var r in n=o.default.createElement("custom"),e.prototype)"constructor"!==r&&(n[r]=e.prototype[r]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var a=0,l=t.length;a<l;a++)n.addTrackElement_(t[a]);if(i.IS_IE8)return n}return e.prototype.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},e.prototype.getTrackElementByTrack_=function(e){for(var t=void 0,n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},e.prototype.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},e}();t.default=a},9725:(e,t,n)=>{"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2385)),i=a(n(5219)),o=a(n(1804)),s=a(n(4623));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,t);var o=c(this,e.call(this)),a=void 0,u=o;if(r.IS_IE8)for(var h in u=i.default.createElement("custom"),t.prototype)"constructor"!==h&&(u[h]=t.prototype[h]);var d=new s.default(n);return u.kind=d.kind,u.src=d.src,u.srclang=d.language,u.label=d.label,u.default=d.default,Object.defineProperty(u,"readyState",{get:function(){return a}}),Object.defineProperty(u,"track",{get:function(){return d}}),a=0,d.addEventListener("loadeddata",function(){a=2,u.trigger({type:"load",target:u})}),r.IS_IE8?c(o,u):o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default);u.prototype.allowedEvents_={load:"load"},u.NONE=0,u.LOADING=1,u.LOADED=2,u.ERROR=3,t.default=u},570:(e,t,n)=>{"use strict";t.__esModule=!0;
1var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2385)),o=(r=n(5219))&&r.__esModule?r:{default:r},s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=this;if(i.IS_IE8)for(var r in n=o.default.createElement("custom"),e.prototype)"constructor"!==r&&(n[r]=e.prototype[r]);if(e.prototype.setCues_.call(n,t),Object.defineProperty(n,"length",{get:function(){return this.length_}}),i.IS_IE8)return n}return e.prototype.setCues_=function(e){var t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;var i=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)},e.prototype.getCueById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},e}();t.default=s},2956:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(3312)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5287)),o=s(n(4071));function s(e){return e&&e.__esModule?e:{default:e}}var a={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function l(e,t){return"rgba("+parseInt(e[1]+e[1],16)+","+parseInt(e[2]+e[2],16)+","+parseInt(e[3]+e[3],16)+","+t+")"}function c(e,t,n){try{e.style[t]=n}catch(r){return}}var u=function(e){function t(n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r,o));return n.on("loadstart",i.bind(s,s.toggleDisplay)),n.on("texttrackchange",i.bind(s,s.updateDisplay)),n.ready(i.bind(s,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",i.bind(this,this.updateDisplay));for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);var r={captions:1,subtitles:1},o=this.player_.textTracks(),s=void 0,a=void 0;if(o){for(var l=0;l<o.length;l++){var c=o[l];c.default&&("descriptions"!==c.kind||s?c.kind in r&&!a&&(a=c):s=c)}a?a.mode="showing":s&&(s.mode="showing")}}})),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){"function"==typeof o.default.WebVTT&&o.default.WebVTT.processCues(o.default,[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();if(this.clearDisplay(),e){for(var t=null,n=null,r=e.length;r--;){var i=e[r];"showing"===i.mode&&("descriptions"===i.kind?t=i:n=i)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):t&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(t))}},t.prototype.updateForTrack=function(e){if("function"==typeof o.default.WebVTT&&e.activeCues){for(var t=this.player_.textTrackSettings.getValues(),n=[],r=0;r<e.activeCues.length;r++)n.push(e.activeCues[r]);o.default.WebVTT.processCues(o.default,n,this.el_);for(var i=n.length;i--;){var s=n[i];if(s){var u=s.displayState;if(t.color&&(u.firstChild.style.color=t.color),t.textOpacity&&c(u.firstChild,"color",l(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(u.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&c(u.firstChild,"backgroundColor",l(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?c(u,"backgroundColor",l(t.windowColor,t.windowOpacity)):u.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?u.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?u.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?u.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(u.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var h=o.default.parseFloat(u.style.fontSize);u.style.fontSize=h*t.fontPercent+"px",u.style.height="auto",u.style.top="auto",u.style.bottom="2px"}
1t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?u.firstChild.style.fontVariant="small-caps":u.firstChild.style.fontFamily=a[t.fontFamily])}}}},t}(r.default);r.default.registerComponent("TextTrackDisplay",u),t.default=u},4054:(e,t)=>{"use strict";t.__esModule=!0;var n=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,r){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})};t.default={textTracksToJson:function(e){var t=e.$$("track"),r=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=n(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===r.indexOf(e)}).map(n))},jsonToTextTracks:function(e,t){return e.forEach(function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return n.addCue(e)})}),t.textTracks()},trackToJson_:n}},141:(e,t,n)=>{"use strict";t.__esModule=!0;var r=l(n(3145)),i=a(n(5287)),o=a(n(2385)),s=l(n(5219));function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];c(this,t);var a=void 0;if(o.IS_IE8){for(var l in a=s.default.createElement("custom"),r.default.prototype)"constructor"!==l&&(a[l]=r.default.prototype[l]);for(var h in t.prototype)"constructor"!==h&&(a[h]=t.prototype[h])}return n=u(this,e.call(this,i,a)),u(n,a=n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.addTrack_=function(t){e.prototype.addTrack_.call(this,t),t.addEventListener("modechange",i.bind(this,function(){this.trigger("change")}))},t}(r.default);t.default=h},7698:(e,t,n)=>{"use strict";t.__esModule=!0;var r=u(n(4071)),i=u(n(3312)),o=n(3683),s=c(n(5287)),a=c(n(7750)),l=u(n(4484));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function u(e){return e&&e.__esModule?e:{default:e}}var h="vjs-text-track-settings",d=["#000","Black"],A=["#00F","Blue"],p=["#0FF","Cyan"],f=["#0F0","Green"],g=["#F0F","Magenta"],m=["#F00","Red"],v=["#FFF","White"],y=["#FF0","Yellow"],b=["1","Opaque"],_=["0.5","Semi-Transparent"],w=["0","Transparent"],C={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[d,v,m,f,A,y,g,p]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[b,_,w]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[v,d,m,f,A,y,g,p]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity >
1 select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[b,_]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[w,_,b]}};function S(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}C.windowColor.options=C.backgroundColor.options;var E=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i.setDefaults(),i.hide(),i.updateDisplay=s.bind(i,i.updateDisplay),void 0===r.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.hide()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),a.each(C,function(e){i.on(i.$(e.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createElSelect_=function(e){var t=this,n=C[e],r=n.id.replace("%s",this.id_);return[(0,o.createEl)("label",{className:"vjs-label",textContent:n.label},{for:r}),(0,o.createEl)("select",{id:r},void 0,n.options.map(function(e){return(0,o.createEl)("option",{textContent:t.localize(e[1]),value:e[0]})}))]},t.prototype.createElFgColor_=function(){var e=(0,o.createEl)("legend",{textContent:this.localize("Text")}),t=this.createElSelect_("color"),n=(0,o.createEl)("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.createElSelect_("textOpacity"));return(0,o.createEl)("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[e].concat(t,n))},t.prototype.createElBgColor_=function(){var e=(0,o.createEl)("legend",{textContent:this.localize("Background")}),t=this.createElSelect_("backgroundColor"),n=(0,o.createEl)("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.createElSelect_("backgroundOpacity"));return(0,o.createEl)("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[e].concat(t,n))},t.prototype.createElWinColor_=function(){var e=(0,o.createEl)("legend",{textContent:this.localize("Window")}),t=this.createElSelect_("windowColor"),n=(0,o.createEl)("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.createElSelect_("windowOpacity"));return(0,o.createEl)("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[e].concat(t,n))},t.prototype.createElColors_=function(){return(0,o.createEl)("div",{className:"vjs-tracksettings-colors"},void 0,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])},t.prototype.createElFont_=function(){var e=(0,o.createEl)("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.createElSelect_("fontPercent")),t=(0,o.createEl)("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.createElSelect_("edgeStyle")),n=(0,o.createEl)("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.createElSelect_("fontFamily"));return(0,o.createEl)("div",{className:"vjs-tracksettings-font"},void 0,[e,t,n])},t.prototype.createElControls_=function(){var e=(0,o.createEl)("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),t=(0,o.createEl)("button",{className:"vjs-done-button",textContent:"Done"});return(0,o.createEl)("div",{className:"vjs-tracksettings-controls"},void 0,[e,t])},t.prototype.createEl=function(){var e=(0,o.createEl)("div",{className:"vjs-tracksettings"},void 0,[this.createElColors_(),this.createElFont_(),this.createElControls_()]),t=(0,o.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),n=(0,o.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),r=(0,o.createEl)("div",void 0,{role:"document"},[t,n,e]);return(0,o.createEl)("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":t.id,"aria-describedby":n.id},r)},t.prototype.getValues=function(){var e=this;return a.reduce(C,function(t,n,r){var i,o=S((i=e.$(n.selector)).options[i.options.selectedIndex].value,n.parser);return void 0!==o&&(t[r]=o),t},{})},t.prototype.setValues=function(e){var t=this;a.each(C,function(n,r){!function(e,t,n){if(t)for(var r=0;r<e.options.length;
1r++)if(S(e.options[r].value,n)===t){e.selectedIndex=r;break}}(t.$(n.selector),e[r],n.parser)})},t.prototype.setDefaults=function(){var e=this;a.each(C,function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n})},t.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(r.default.localStorage.getItem(h))}catch(t){l.default.warn(t)}e&&this.setValues(e)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?r.default.localStorage.setItem(h,JSON.stringify(e)):r.default.localStorage.removeItem(h)}catch(t){l.default.warn(t)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t}(i.default);i.default.registerComponent("TextTrackSettings",E),t.default=E},4623:(e,t,n)=>{"use strict";t.__esModule=!0;var r=p(n(570)),i=A(n(5287)),o=n(3098),s=p(n(4484)),a=p(n(4071)),l=p(n(9783)),c=n(2500),u=p(n(8673)),h=p(n(6067)),d=A(n(2385));function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=function(e,t){var n=new a.default.WebVTT.Parser(a.default,a.default.vttjs,a.default.WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),r.length>0&&(a.default.console&&a.default.console.groupCollapsed&&a.default.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(e){return s.default.error(e)}),a.default.console&&a.default.console.groupEnd&&a.default.console.groupEnd()),n.flush()},v=function(e,t){var n={uri:e},r=(0,c.isCrossOrigin)(e);r&&(n.cors=r),(0,u.default)(n,i.bind(this,function(e,n,r){if(e)return s.default.error(e,n);if(t.loaded_=!0,"function"!=typeof a.default.WebVTT){if(t.tech_){var i=function(){return m(r,t)};t.tech_.on("vttjsloaded",i),t.tech_.on("vttjserror",function(){s.default.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",i)})}}else m(r,t)}))},y=function(e){function t(){var n,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(f(this,t),!s.tech)throw new Error("A tech was not provided.");var a=(0,h.default)(s,{kind:o.TextTrackKind[s.kind]||"subtitles",language:s.language||s.srclang||""}),l=o.TextTrackMode[a.mode]||"disabled",c=a.default;"metadata"!==a.kind&&"chapters"!==a.kind||(l="hidden");var u=n=g(this,e.call(this,a));if(u.tech_=a.tech,d.IS_IE8)for(var A in t.prototype)"constructor"!==A&&(u[A]=t.prototype[A]);u.cues_=[],u.activeCues_=[];var p=new r.default(u.cues_),m=new r.default(u.activeCues_),y=!1,b=i.bind(u,function(){y&&(this.trigger("cuechange"),y=!1)});return"disabled"!==l&&u.tech_.ready(function(){u.tech_.on("timeupdate",b)},!0),Object.defineProperty(u,"default",{get:function(){return c},set:function(){}}),Object.defineProperty(u,"mode",{get:function(){return l},set:function(e){var t=this;o.TextTrackMode[e]&&("showing"===(l=e)&&this.tech_.ready(function(){t.tech_.on("timeupdate",b)},!0),this.trigger("modechange"))}}),Object.defineProperty(u,"cues",{get:function(){return this.loaded_?p:null},set:function(){}}),Object.defineProperty(u,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return m;for(var e=this.tech_.currentTime(),t=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];(i.startTime<=e&&i.endTime>=e||i.startTime===i.endTime&&i.startTime<=e&&i.startTime+.5>=e)&&t.push(i)}if(y=!1,t.length!==this.activeCues_.length)y=!0;else for(var o=0;o<t.length;o++)-1===this.activeCues_.indexOf(t[o])&&(y=!0);return this.activeCues_=t,m.setCues_(this.activeCues_),m},set:function(){}}),a.src?(u.src=a.src,v(a.src,u)):u.loaded_=!0,g(n,u)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.addCue=function(e){var t=e;if(a.default.vttjs&&!(e instanceof a.default.vttjs.VTTCue)){for(var n in t=new a.default.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}var r=this.tech_.textTracks();if(r)for(var i=0;i<r.length;i++)r[i]!==this&&r[i].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(l.default);y.prototype.allowedEvents_={cuechange:"cuechange"},t.default=y},3098:(e,t)=>
1{"use strict";t.__esModule=!0,t.VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},t.AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},t.TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},t.TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"}},3145:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(1804)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2385)),o=s(n(5219));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;a(this,t);var s=l(this,e.call(this));if(!r&&(r=s,i.IS_IE8))for(var c in r=o.default.createElement("custom"),t.prototype)"constructor"!==c&&(r[c]=t.prototype[c]);r.tracks_=[],Object.defineProperty(r,"length",{get:function(){return this.tracks_.length}});for(var u=0;u<n.length;u++)r.addTrack_(n[u]);return l(s,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.addTrack_=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},t.prototype.removeTrack_=function(e){for(var t=void 0,n=0,r=this.length;n<r;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},t}(r.default);for(var u in c.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},c.prototype.allowedEvents_)c.prototype["on"+u]=null;t.default=c}
1,9783:(e,t,n)=>{"use strict";t.__esModule=!0;var r=a(n(2385)),i=s(n(5219)),o=a(n(1937));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,t);var s=c(this,e.call(this)),a=s;if(r.IS_IE8)for(var u in a=i.default.createElement("custom"),t.prototype)"constructor"!==u&&(a[u]=t.prototype[u]);var h={id:n.id||"vjs_track_"+o.newGUID(),kind:n.kind||"",label:n.label||"",language:n.language||""},d=function(e){Object.defineProperty(a,e,{get:function(){return h[e]},set:function(){}})};for(var A in h)d(A);return c(s,a)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(s(n(1804)).default);t.default=u},2008:(e,t,n)=>{"use strict";t.__esModule=!0;var r=s(n(3145)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2385)),o=s(n(5219));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e,t){for(var n=0;n<e.length;n++)t.id!==e[n].id&&(e[n].selected=!1)},u=function(e){function t(){var n,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a(this,t);for(var u=void 0,h=s.length-1;h>=0;h--)if(s[h].selected){c(s,s[h]);break}if(i.IS_IE8){for(var d in u=o.default.createElement("custom"),r.default.prototype)"constructor"!==d&&(u[d]=r.default.prototype[d]);for(var A in t.prototype)"constructor"!==A&&(u[A]=t.prototype[A])}return(u=n=l(this,e.call(this,s,u))).changing_=!1,Object.defineProperty(u,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),l(n,u)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.addTrack_=function(t){var n=this;t.selected&&c(this,t),e.prototype.addTrack_.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,c(n,t),n.changing_=!1,n.trigger("change"))})},t.prototype.addTrack=function(e){this.addTrack_(e)},t.prototype.removeTrack=function(t){e.prototype.removeTrack_.call(this,t)},t}(r.default);t.default=u},6687:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(3098),i=a(n(9783)),o=a(n(6067)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2385));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,t);var a=(0,o.default)(i,{kind:r.VideoTrackKind[i.kind]||""}),u=n=c(this,e.call(this,a)),h=!1;if(s.IS_IE8)for(var d in t.prototype)"constructor"!==d&&(u[d]=t.prototype[d]);return Object.defineProperty(u,"selected",{get:function(){return h},set:function(e){"boolean"==typeof e&&e!==h&&(h=e,this.trigger("selectedchange"))}}),a.selected&&(u.selected=a.selected),c(n,u)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default);t.default=u},2385:(e,t,n)=>{"use strict";t.__esModule=!0,t.BACKGROUND_SIZE_SUPPORTED=t.TOUCH_ENABLED=t.IS_ANY_SAFARI=t.IS_SAFARI=t.IE_VERSION=t.IS_IE8=t.CHROME_VERSION=t.IS_CHROME=t.IS_EDGE=t.IS_FIREFOX=t.IS_NATIVE_ANDROID=t.IS_OLD_ANDROID=t.ANDROID_VERSION=t.IS_ANDROID=t.IOS_VERSION=t.IS_IOS=t.IS_IPOD=t.IS_IPHONE=t.IS_IPAD=void 0;
1var r,i,o,s,a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(3683)),l=(r=n(4071))&&r.__esModule?r:{default:r},c=l.default.navigator&&l.default.navigator.userAgent||"",u=/AppleWebKit\/([\d.]+)/i.exec(c),h=u?parseFloat(u.pop()):null,d=t.IS_IPAD=/iPad/i.test(c),A=t.IS_IPHONE=/iPhone/i.test(c)&&!d,p=t.IS_IPOD=/iPod/i.test(c),f=t.IS_IOS=A||d||p,g=(t.IOS_VERSION=(i=c.match(/OS (\d+)_/i))&&i[1]?i[1]:null,t.IS_ANDROID=/Android/i.test(c)),m=t.ANDROID_VERSION=function(){var e=c.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),v=(t.IS_OLD_ANDROID=g&&/webkit/i.test(c)&&m<2.3,t.IS_NATIVE_ANDROID=g&&m<5&&h<537,t.IS_FIREFOX=/Firefox/i.test(c),t.IS_EDGE=/Edge/i.test(c)),y=t.IS_CHROME=!v&&/Chrome/i.test(c),b=(t.CHROME_VERSION=function(){var e=c.match(/Chrome\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),t.IS_IE8=/MSIE\s8\.0/.test(c),t.IE_VERSION=(!(s=(o=/MSIE\s(\d+)\.\d/.exec(c))&&parseFloat(o[1]))&&/Trident\/7.0/i.test(c)&&/rv:11.0/.test(c)&&(s=11),s),t.IS_SAFARI=/Safari/i.test(c)&&!y&&!g&&!v);t.IS_ANY_SAFARI=b||f,t.TOUCH_ENABLED=a.isReal()&&("ontouchstart"in l.default||l.default.DocumentTouch&&l.default.document instanceof l.default.DocumentTouch),t.BACKGROUND_SIZE_SUPPORTED=a.isReal()&&"backgroundSize"in l.default.document.createElement("video").style},6964:(e,t,n)=>{"use strict";t.__esModule=!0,t.bufferedPercent=function(e,t){var n=0,i=void 0,o=void 0;if(!t)return 0;e&&e.length||(e=(0,r.createTimeRange)(0,0));for(var s=0;s<e.length;s++)i=e.start(s),(o=e.end(s))>t&&(o=t),n+=o-i;return n/t};var r=n(7481)},761:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(!e||!t)return"";if("function"==typeof i.default.getComputedStyle){var n=i.default.getComputedStyle(e);return n?n[t]:""}return e.currentStyle[t]||""};var r,i=(r=n(4071))&&r.__esModule?r:{default:r}},3683:(e,t,n)=>{"use strict";t.__esModule=!0,t.$$=t.$=void 0;var r,i=((r=["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]).raw=["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],r);t.isReal=function(){return o.default===s.default.document&&void 0!==o.default.createElement},t.isEl=p,t.getEl=function(e){return 0===e.indexOf("#")&&(e=e.slice(1)),o.default.getElementById(e)},t.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3],s=o.default.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(l.default.warn((0,c.default)(i,e,n)),s.setAttribute(e,n)):"textContent"===e?g(s,n):s[e]=n}),Object.getOwnPropertyNames(n).forEach(function(e){s.setAttribute(e,n[e])}),r&&I(s,r),s},t.textContent=g,t.insertElFirst=function(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},t.getElData=function(e){var t=e[v];return t||(t=e[v]=a.newGUID()),m[t]||(m[t]={}),m[t]},t.hasElData=function(e){var t=e[v];return!!t&&!!Object.getOwnPropertyNames(m[t]).length},t.removeElData=function(e){var t=e[v];if(t){delete m[t];try{delete e[v]}catch(n){e.removeAttribute?e.removeAttribute(v):e[v]=null}}},t.hasElClass=y,t.addElClass=b,t.removeElClass=_,t.toggleElClass=function(e,t,n){var r=y(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!r),n!==r)return n?b(e,t):_(e,t),e},t.setElAttributes=function(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)})},t.getElAttributes=function(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,r=n.length-1;r>=0;r--){var i=n[r].name,o=n[r].value;
1"boolean"!=typeof e[i]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+i+",")||(o=null!==o),t[i]=o}return t},t.getAttribute=function(e,t){return e.getAttribute(t)},t.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.removeAttribute=function(e,t){e.removeAttribute(t)},t.blockTextSelection=function(){o.default.body.focus(),o.default.onselectstart=function(){return!1}},t.unblockTextSelection=function(){o.default.onselectstart=function(){return!0}},t.findElPosition=w,t.getPointerPosition=function(e,t){var n={},r=w(e),i=e.offsetWidth,o=e.offsetHeight,s=r.left,a=t.pageY,l=t.pageX;return t.changedTouches&&(l=t.changedTouches[0].pageX,a=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(r.top-a+o)/o)),n.x=Math.max(0,Math.min(1,(l-s)/i)),n},t.isTextNode=C,t.emptyEl=S,t.normalizeContent=E,t.appendContent=I,t.insertContent=function(e,t){return I(S(e),t)};var o=h(n(5219)),s=h(n(4071)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1937)),l=h(n(4484)),c=h(n(3879)),u=n(7750);function h(e){return e&&e.__esModule?e:{default:e}}function d(e){return"string"==typeof e&&/\S/.test(e)}function A(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function p(e){return(0,u.isObject)(e)&&1===e.nodeType}function f(e){return function(t,n){if(!d(t))return o.default[e](null);d(n)&&(n=o.default.querySelector(n));var r=p(n)?n:o.default;return r[e]&&r[e](t)}}function g(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}var m={},v="vdata"+(new Date).getTime();function y(e,t){return A(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function b(e,t){return e.classList?e.classList.add(t):y(e,t)||(e.className=(e.className+" "+t).trim()),e}function _(e,t){return e.classList?e.classList.remove(t):(A(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function w(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=o.default.documentElement,r=o.default.body,i=t.top+(s.default.pageYOffset||r.scrollTop)-(n.clientTop||r.clientTop||0);return{left:Math.round(t.left+(s.default.pageXOffset||r.scrollLeft)-(n.clientLeft||r.clientLeft||0)),top:Math.round(i)}}function C(e){return(0,u.isObject)(e)&&3===e.nodeType}function S(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function E(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),p(e)||C(e)?e:"string"==typeof e&&/\S/.test(e)?o.default.createTextNode(e):void 0}).filter(function(e){return e})}function I(e,t){return E(t).forEach(function(t){return e.appendChild(t)}),e}t.$=f("querySelector"),t.$$=f("querySelectorAll")},8963:(e,t,n)=>{"use strict";t.__esModule=!0,t.fixEvent=d,t.on=f,t.off=g,t.trigger=function e(t,n,i){var o=r.hasElData(t)?r.getElData(t):{},s=t.parentNode||t.ownerDocument;if("string"==typeof n&&(n={type:n,target:t}),n=d(n),o.dispatcher&&o.dispatcher.call(t,n,i),s&&!n.isPropagationStopped()&&!0===n.bubbles)e.call(null,s,n,i);else if(!s&&!n.defaultPrevented){var a=r.getElData(n.target);n.target[n.type]&&(a.disabled=!0,"function"==typeof n.target[n.type]&&n.target[n.type](),a.disabled=!1)}return!n.defaultPrevented},t.one=function e(t,n,r){if(Array.isArray(n))return h(e,t,n,r);var o=function e(){g(t,n,e),r.apply(this,arguments)};o.guid=r.guid=r.guid||i.newGUID(),f(t,n,o)};var r=c(n(3683)),i=c(n(1937)),o=l(n(4484)),s=l(n(4071)),a=l(n(5219));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function u(e,t){var n=r.getElData(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&r.removeElData(e)}
1function h(e,t,n,r){n.forEach(function(n){e(t,n,r)})}function d(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var r=e||s.default.event;for(var i in e={},r)"layerX"!==i&&"layerY"!==i&&"keyLocation"!==i&&"webkitMovementX"!==i&&"webkitMovementY"!==i&&("returnValue"===i&&r.preventDefault||(e[i]=r[i]));if(e.target||(e.target=e.srcElement||a.default),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!=e.clientX){var o=a.default.documentElement,l=a.default.body;e.pageX=e.clientX+(o&&o.scrollLeft||l&&l.scrollLeft||0)-(o&&o.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(o&&o.scrollTop||l&&l.scrollTop||0)-(o&&o.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!=e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var A=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){A=!0}});s.default.addEventListener("test",null,e)}catch(t){}}();var p=["touchstart","touchmove"];function f(e,t,n){if(Array.isArray(t))return h(f,e,t,n);var s=r.getElData(e);if(s.handlers||(s.handlers={}),s.handlers[t]||(s.handlers[t]=[]),n.guid||(n.guid=i.newGUID()),s.handlers[t].push(n),s.dispatcher||(s.disabled=!1,s.dispatcher=function(t,n){if(!s.disabled){t=d(t);var r=s.handlers[t.type];if(r)for(var i=r.slice(0),a=0,l=i.length;a<l&&!t.isImmediatePropagationStopped();a++)try{i[a].call(e,t,n)}catch(c){o.default.error(c)}}}),1===s.handlers[t].length)if(e.addEventListener){var a=!1;A&&p.indexOf(t)>-1&&(a={passive:!0}),e.addEventListener(t,s.dispatcher,a)}else e.attachEvent&&e.attachEvent("on"+t,s.dispatcher)}function g(e,t,n){if(r.hasElData(e)){var i=r.getElData(e);if(i.handlers){if(Array.isArray(t))return h(g,e,t,n);var o=function(t){i.handlers[t]=[],u(e,t)};if(t){var s=i.handlers[t];if(s)if(n){if(n.guid)for(var a=0;a<s.length;a++)s[a].guid===n.guid&&s.splice(a--,1);u(e,t)}else o(t)}else for(var l in i.handlers)o(l)}}}},5287:(e,t,n)=>{"use strict";t.__esModule=!0,t.throttle=t.bind=void 0;var r=n(1937);t.bind=function(e,t,n){t.guid||(t.guid=(0,r.newGUID)());var i=function(){return t.apply(e,arguments)};return i.guid=n?n+"_"+t.guid:t.guid,i},t.throttle=function(e,t){var n=Date.now();return function(){var r=Date.now();r-n>=t&&(e.apply(void 0,arguments),n=r)}}},2191:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;e=e<0?0:e;var n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),o=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),(i=i>0||s>0?i+":":"")+(r=((i||o>=10)&&r<10?"0"+r:r)+":")+(n<10?"0"+n:n)}},1937:(e,t)=>{"use strict";t.__esModule=!0,t.newGUID=function(){return n++};var n=1},4484:(e,t,n)=>{"use strict";t.__esModule=!0,t.logByType=void 0;var r,i=(r=n(4071))&&r.__esModule?r:{default:r},o=n(2385),s=n(7750),a=void 0,l=t.logByType=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!!o.IE_VERSION&&o.IE_VERSION<11;"log"!==e&&t.unshift(e.toUpperCase()+":"),a.history.push(t),t.unshift("VIDEOJS:");var r=i.default.console&&i.default.console[e];r&&(n&&(t=t.map(function(e){if((0,s.isObject)(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)}).join(" ")),r.apply?r[Array.isArray(t)?"apply":"call"](i.default.console,t):r(t))};(a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l("log",t)}).history=[],a.error=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return l("error",t)},a.warn=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return l("warn",t)},t.default=a},6067:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function e(){for(var t={},n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];
1return i.forEach(function(n){n&&(0,r.each)(n,function(n,i){(0,r.isPlain)(n)?((0,r.isPlain)(t[i])||(t[i]={}),t[i]=e(t[i],n)):t[i]=n})}),t};var r=n(7750)},7750:(e,t)=>{"use strict";t.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.each=o,t.reduce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return i(e).reduce(function(n,r){return t(n,e[r],r)},n)},t.assign=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign?Object.assign.apply(Object,[e].concat(n)):(n.forEach(function(t){t&&o(t,function(t,n){e[n]=t})}),e)},t.isObject=s,t.isPlain=function(e){return s(e)&&"[object Object]"===r.call(e)&&e.constructor===Object};var r=Object.prototype.toString,i=function(e){return s(e)?Object.keys(e):[]};function o(e,t){i(e).forEach(function(n){return t(e[n],n)})}function s(e){return!!e&&"object"===(void 0===e?"undefined":n(e))}}
1,889:(e,t,n)=>{"use strict";t.__esModule=!0,t.setTextContent=t.createStyleElement=void 0;var r,i=(r=n(5219))&&r.__esModule?r:{default:r};t.createStyleElement=function(e){var t=i.default.createElement("style");return t.className=e,t},t.setTextContent=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t}},7481:(e,t,n)=>{"use strict";t.__esModule=!0,t.createTimeRange=void 0,t.createTimeRanges=a;var r,i=(r=n(4484))&&r.__esModule?r:{default:r};function o(e,t,n,r){return void 0===r&&(i.default.warn("DEPRECATED: Function '"+e+"' on 'TimeRanges' called without an index argument."),r=0),function(e,t,n){if(t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is greater than or equal to the maximum bound ("+n+").")}(e,r,n.length-1),n[r][t]}function s(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:o.bind(null,"start",0,e),end:o.bind(null,"end",1,e)}}function a(e,t){return Array.isArray(e)?s(e):void 0===e||void 0===t?s():s([[e,t]])}t.createTimeRange=a},9756:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}},2500:(e,t,n)=>{"use strict";t.__esModule=!0,t.isCrossOrigin=t.getFileExtension=t.getAbsoluteURL=t.parseUrl=void 0;var r=o(n(5219)),i=o(n(4071));function o(e){return e&&e.__esModule?e:{default:e}}var s=t.parseUrl=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=r.default.createElement("a");n.href=e;var i=""===n.host&&"file:"!==n.protocol,o=void 0;i&&((o=r.default.createElement("div")).innerHTML='<a href="'+e+'"></a>',n=o.firstChild,o.setAttribute("style","display:none; position:absolute;"),r.default.body.appendChild(o));for(var s={},a=0;a<t.length;a++)s[t[a]]=n[t[a]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),i&&r.default.body.removeChild(o),s};t.getAbsoluteURL=function(e){if(!e.match(/^https?:\/\//)){var t=r.default.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},t.getFileExtension=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(e);if(t)return t.pop().toLowerCase()}return""},t.isCrossOrigin=function(e){var t=i.default.location,n=s(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host}},9651:(e,t,n)=>{"use strict";var r;t.__esModule=!0,"function"==typeof Symbol&&Symbol;var i=k(n(4071)),o=k(n(5219)),s=B(n(2385)),a=B(n(3683)),l=B(n(5037)),c=B(n(889)),u=k(n(3312)),h=k(n(1804)),d=B(n(8963)),A=k(n(2187)),p=k(n(89)),f=k(n(6067)),g=B(n(5287)),m=k(n(4623)),v=k(n(197)),y=k(n(6687)),b=n(7481),_=k(n(2191)),w=k(n(4484)),C=B(n(2500)),S=n(7750),E=k(n(761)),I=k(n(9049)),x=k(n(8673)),T=k(n(3941));function B(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n){var r=void 0;if("string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),P.getPlayers()[e])return t&&w.default.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&P.getPlayers()[e].ready(n),P.getPlayers()[e];r=a.getEl(e)}else r=e;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(r.player||A.default.players[r.playerId])return r.player||A.default.players[r.playerId];t=t||{},P.hooks("beforesetup").forEach(function(e){var n=e(r,(0,f.default)(t));(0,S.isObject)(n)&&!Array.isArray(n)?t=(0,f.default)(t,n):w.default.error("please return an object in beforesetup hooks")});var i=new(u.default.getComponent("Player"))(r,t,n);return P.hooks("setup").forEach(function(e){return e(i)}),i}if("undefined"==typeof HTMLVideoElement&&a.isReal()&&(o.default.createElement("video"),o.default.createElement("audio"),o.default.createElement("track")),P.hooks_={},P.hooks=function(e,t){return P.hooks_[e]=P.hooks_[e]||[],t&&(P.hooks_[e]=P.hooks_[e].concat(t)),P.hooks_[e]},P.hook=function(e,t){P.hooks(e,t)},P.removeHook=function(e,t){var n=P.hooks(e).indexOf(t);return!(n<=-1||((P.hooks_[e]=P.hooks_[e].slice()).splice(n,1),0))}
1,!0!==i.default.VIDEOJS_NO_DYNAMIC_STYLE&&a.isReal()){var O=a.$(".vjs-styles-defaults");if(!O){O=c.createStyleElement("vjs-styles-defaults");var F=a.$("head");F&&F.insertBefore(O,F.firstChild),c.setTextContent(O,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}l.autoSetupTimeout(1,P),P.VERSION="5.20.5",P.options=A.default.prototype.options_,P.getPlayers=function(){return A.default.players},P.players=A.default.players,P.getComponent=u.default.getComponent,P.registerComponent=function(e,t){T.default.isTech(t)&&w.default.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),u.default.registerComponent.call(u.default,e,t)},P.getTech=T.default.getTech,P.registerTech=T.default.registerTech,P.browser=s,P.TOUCH_ENABLED=s.TOUCH_ENABLED,P.extend=I.default,P.mergeOptions=f.default,P.bind=g.bind,P.plugin=p.default,P.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),(P.options.languages=(0,f.default)(P.options.languages,((n={})[e]=t,n)))[e]},P.log=w.default,P.createTimeRange=P.createTimeRanges=b.createTimeRanges,P.formatTime=_.default,P.parseUrl=C.parseUrl,P.isCrossOrigin=C.isCrossOrigin,P.EventTarget=h.default,P.on=d.on,P.one=d.one,P.off=d.off,P.trigger=d.trigger,P.xhr=x.default,P.TextTrack=m.default,P.AudioTrack=v.default,P.VideoTrack=y.default,P.isEl=a.isEl,P.isTextNode=a.isTextNode,P.createEl=a.createEl,P.hasClass=a.hasElClass,P.addClass=a.addElClass,P.removeClass=a.removeElClass,P.toggleClass=a.toggleElClass,P.setAttributes=a.setElAttributes,P.getAttributes=a.getElAttributes,P.emptyEl=a.emptyEl,P.appendContent=a.appendContent,P.insertContent=a.insertContent,P.computedStyle=E.default,void 0===(r=(function(){return P}).apply(t,[]))||(e.exports=r),t.default=P},7170:(e,t,n)=>{var r=n(8433),i=e.exports={WebVTT:n(593),VTTCue:n(3137),VTTRegion:n(9717)};r.vttjs=i,r.WebVTT=i.WebVTT;var o=i.VTTCue,s=i.VTTRegion,a=r.VTTCue,l=r.VTTRegion;i.shim=function(){r.VTTCue=o,r.VTTRegion=s},i.restore=function(){r.VTTCue=a,r.VTTRegion=l},r.VTTCue||i.shim()},593:e=>{var t=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function n(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function r(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function i(){this.values=t(null)}function o(e,t,n,r){var i=r?e.split(r):[e];for(var o in i)if("string"==typeof i[o]){var s=i[o].split(n);2===s.length&&t(s[0],s[1])}}function s(e,t,s){var a=e;function l(){var t=r(e);if(null===t)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+a);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=l(),c(),"--\x3e"!==e.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+a);e=e.substr(3),c(),t.endTime=l(),c(),function(e,t){var n=new i;o(e,function(e,t){switch(e){case"region":for(var r=s.length-1;r>=0;r--)if(s[r].id===t){n.set(e,s[r].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var i=t.split(","),o=i[0];n.integer(e,o),n.percent(e,o)&&n.set("snapToLines",!1),n.alt(e,o,["auto"]),2===i.length&&n.alt("lineAlign",i[1],["start","middle","end"]);break;case"position":i=t.split(","),n.percent(e,i[0]),2===i.length&&n.alt("positionAlign",i[1],["start","middle","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical",""),t.line=n.get("line","auto"),t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100),t.align=n.get("align","middle"),t.position=n.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align),t.positionAlign=n.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}(e,t)}(n.prototype=t(Error.prototype)).constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},i.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var a={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"\u200e","&rlm;":"\u200f","&nbsp;":"\xa0"},l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},c={v:"title",lang:"lang"},u={rt:"ruby"};function h(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>
1]*>?)?/);return t=t.substr((e=n[1]?n[1]:n[2]).length),e}function i(e){return a[e]}function o(e){for(;v=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(v[0],i);return e}function s(e,t){return!u[t.localName]||u[t.localName]===e.localName}function h(t,n){var r=l[t];if(!r)return null;var i=e.document.createElement(r);i.localName=r;var o=c[t];return o&&n&&(i[o]=n.trim()),i}for(var d,A=e.document.createElement("div"),p=A,f=[];null!==(d=n());)if("<"!==d[0])p.appendChild(e.document.createTextNode(o(d)));else{if("/"===d[1]){f.length&&f[f.length-1]===d.substr(2).replace(">","")&&(f.pop(),p=p.parentNode);continue}var g,m=r(d.substr(1,d.length-2));if(m){g=e.document.createProcessingInstruction("timestamp",m),p.appendChild(g);continue}var v=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(g=h(v[1],v[3])))continue;if(!s(p,g))continue;v[2]&&(g.className=v[2].substr(1).replace("."," ")),f.push(v[1]),p.appendChild(g),p=g}return A}var d=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function A(e){for(var t=0;t<d.length;t++){var n=d[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function p(){}function f(e,t,n){var r=/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",o="rgba(0, 0, 0, 0.8)";r&&(i="rgb(255, 255, 255)",o="rgb(0, 0, 0)"),p.call(this),this.cue=t,this.cueDiv=h(e,t.text);var s={color:i,backgroundColor:o,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};r||(s.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=e.document.createElement("div"),s={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},r||(s.direction=function(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(r(e,t),i(e)):void 0}for(r(t,e);n=i(t);)for(var o=0;o<n.length;o++)if(A(n.charCodeAt(o)))return"rtl";return"ltr"}(this.cueDiv),s.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(s),this.div.appendChild(this.cueDiv);var a=0;switch(t.positionAlign){case"start":a=t.position;break;case"middle":a=t.position-t.size/2;break;case"end":a=t.position-t.size}this.applyStyles(""===t.vertical?{left:this.formatStyle(a,"%"),width:this.formatStyle(t.size,"%")}:{top:this.formatStyle(a,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")}
vendor: 6,934 bytes, line 1
1)}}function g(e){var t,n,r,i,o=/MSIE\s8\.0/.test(navigator.userAgent);if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var s=(s=e.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();e=e.div.getBoundingClientRect(),t=s?Math.max(s[0]&&s[0].height||0,e.height/s.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight,o&&!this.lineHeight&&(this.lineHeight=13)}function m(e,t,n,r){var i=new g(t),o=t.cue,s=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return-1*++r}(o),a=[];if(o.snapToLines){var l;switch(o.vertical){case"":a=["+y","-y"],l="height";break;case"rl":a=["+x","-x"],l="width";break;case"lr":a=["-x","+x"],l="width"}var c=i.lineHeight,u=c*Math.round(s),h=n[l]+c,d=a[0];Math.abs(u)>h&&(u=u<0?-1:1,u*=Math.ceil(h/c)*c),s<0&&(u+=""===o.vertical?n.height:n.width,a=a.reverse()),i.move(d,u)}else{var A=i.lineHeight/n.height*100;switch(o.lineAlign){case"middle":s-=A/2;break;case"end":s-=A}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}a=["+y","-x","+x","-y"],i=new g(t)}var p=function(e,t){for(var i,o=new g(e),s=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(n,t[a])||e.within(n)&&e.overlapsAny(r);)e.move(t[a]);if(e.within(n))return e;var l=e.intersectPercentage(n);s>l&&(i=new g(e),s=l),e=new g(o)}return i||o}(i,a);t.move(p.toCSSCompatValues(n))}function v(){}p.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},p.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(f.prototype=t(p.prototype)).constructor=f,g.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},g.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},g.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},g.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},g.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},g.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},g.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},g.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},v.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},v.convertCueToDOMTree=function(e,t){return e&&t?h(e,t):null},v.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var i=[],o=g.getSimpleBoxPosition(r),s={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,a,l=0;l<t.length;l++)n=new f(e,a=t[l],s),r.appendChild(n.div),m(0,n,o,i),a.displayState=n.div,i.push(g.getSimpleBoxPosition(n))}()}else for(var a=0;a<t.length;a++)r.appendChild(t[a].displayState)},(v.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof n))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t,a=this;function l(){for(var e=a.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var n=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,a.buffer=e.substr(t),n}e&&(a.buffer+=a.decoder.decode(e,{stream:!0}));try{var c;if("INITIAL"===a.state){if(!/\r\n|\n/.test(a.buffer))return this;var u=(c=l()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new n(n.Errors.BadSignature);a.state="HEADER"}for(var h=!1;a.buffer;){if(!/\r\n|\n/.test(a.buffer))return this;switch(h?h=!1:c=l(),a.state){case"HEADER":/:/.test(c)?(t=c).match(/X-TIMESTAMP-MAP/)?o(t,function(e,t){switch(e){case"X-TIMESTAMP-MAP":!function(e){var t=new i;o(e,function(e,n){switch(e){case"MPEGT":t.integer(e+"S",n);break;case"LOCA":t.set(e+"L",r(n))}},/[^\d]:/,/,/),a.ontimestampmap&&a.ontimestampmap({MPEGTS:t.get("MPEGTS"),LOCAL:t.get("LOCAL")})}(t)}},/=/):o(t,function(e,t){switch(e){case"Region":!function(e){var t=new i;if(o(e,function(e,n){switch(e){case"id":t.set(e,n);break;case"width":t.percent(e,n);break;case"lines":t.integer(e,n);break;case"regionanchor":case"viewportanchor":var r=n.split(",");if(2!==r.length)break;var o=new i;if(o.percent("x",r[0]),o.percent("y",r[1]),!o.has("x")||!o.has("y"))break;t.set(e+"X",o.get("x")),t.set(e+"Y",o.get("y"));break;case"scroll":t.alt(e,n,["up"])}},/=/,/\s/),t.has("id")){var n=new(a.vttjs.VTTRegion||a.window.VTTRegion);n.width=t.get("width",100),n.lines=t.get("lines",3),n.regionAnchorX=t.get("regionanchorX",0),n.regionAnchorY=t.get("regionanchorY",100),n.viewportAnchorX=t.get("viewportanchorX",0),n.viewportAnchorY=t.get("viewportanchorY",100),n.scroll=t.get("scroll",""),a.onregion&&a.onregion(n),a.regionList.push({id:t.get("id"),region:n})}}(t)}},/:/):c||(a.state="ID");continue;case"NOTE":c||(a.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(c)){a.state="NOTE";break}if(!c)continue;if(a.cue=new(a.vttjs.VTTCue||a.window.VTTCue)(0,0,""),a.state="CUE",-1===c.indexOf("--\x3e")){a.cue.id=c;continue}case"CUE":try{s(c,a.cue,a.regionList)}catch(A){a.reportOrThrowError(A),a.cue=null,a.state="BADCUE";continue}a.state="CUETEXT";continue;case"CUETEXT":var d=-1!==c.indexOf("--\x3e");
1if(!c||d&&(h=!0)){a.oncue&&a.oncue(a.cue),a.cue=null,a.state="ID";continue}a.cue.text&&(a.cue.text+="\n"),a.cue.text+=c;continue;case"BADCUE":c||(a.state="ID");continue}}}catch(A){a.reportOrThrowError(A),"CUETEXT"===a.state&&a.cue&&a.oncue&&a.oncue(a.cue),a.cue=null,a.state="INITIAL"===a.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new n(n.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=v},3137:e=>{var t={"":!0,lr:!0,rl:!0},n={start:!0,middle:!0,end:!0,left:!0,right:!0};function r(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function o(e,n,o){var s=this,a=/MSIE\s8\.0/.test(navigator.userAgent),l={};a?s=document.createElement("custom"):l.enumerable=!0,s.hasBeenReset=!1;var c="",u=!1,h=e,d=n,A=o,p=null,f="",g=!0,m="auto",v="start",y=50,b="middle",_=50,w="middle";if(Object.defineProperty(s,"id",i({},l,{get:function(){return c},set:function(e){c=""+e}})),Object.defineProperty(s,"pauseOnExit",i({},l,{get:function(){return u},set:function(e){u=!!e}})),Object.defineProperty(s,"startTime",i({},l,{get:function(){return h},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");h=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",i({},l,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",i({},l,{get:function(){return A},set:function(e){A=""+e,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",i({},l,{get:function(){return p},set:function(e){p=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",i({},l,{get:function(){return f},set:function(e){var n=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===n)throw new SyntaxError("An invalid or illegal string was specified.");f=n,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",i({},l,{get:function(){return g},set:function(e){g=!!e,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",i({},l,{get:function(){return m},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",i({},l,{get:function(){return v},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",i({},l,{get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",i({},l,{get:function(){return b},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",i({},l,{get:function(){return _},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",i({},l,{get:function(){return w},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");w=t,this.hasBeenReset=!0}})),s.displayState=void 0,a)return s}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=o},9717:e=>{var t={"":!0,up:!0};function n(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,r=3,i=0,o=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!n(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return r},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");r=e}},regionAnchorY:{enumerable:!0,get:function(){return o}
vendor: 4,528 bytes, line 1
1,set:function(e){if(!n(e))throw new Error("RegionAnchorX must be between 0 and 100.");o=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!n(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!n(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!n(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var n=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===n)throw new SyntaxError("An invalid or illegal string was specified.");l=n}}})}},8433:e=>{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e.exports=t},2814:(e,t,n)=>{var r=n(2231),i=e.exports={WebVTT:n(4757),VTTCue:n(7573),VTTRegion:n(4643)};r.vttjs=i,r.WebVTT=i.WebVTT;var o=i.VTTCue,s=i.VTTRegion,a=r.VTTCue,l=r.VTTRegion;i.shim=function(){r.VTTCue=o,r.VTTRegion=s},i.restore=function(){r.VTTCue=a,r.VTTRegion=l},r.VTTCue||i.shim()},4757:(e,t,n)=>{var r=n(7805),i=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function o(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function s(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function a(){this.values=i(null)}function l(e,t,n,r){var i=r?e.split(r):[e];for(var o in i)if("string"==typeof i[o]){var s=i[o].split(n);2===s.length&&t(s[0],s[1])}}function c(e,t,n){var r=e;function i(){var t=s(e);if(null===t)throw new o(o.Errors.BadTimeStamp,"Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=i(),c(),"--\x3e"!==e.substr(0,3))throw new o(o.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.substr(3),c(),t.endTime=i(),c(),function(e,t){var r=new a;l(e,function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),s=o[0];r.integer(e,s),r.percent(e,s)&&r.set("snapToLines",!1),r.alt(e,s,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=t.split(","),r.percent(e,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start","center","end"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");try{t.line=r.get("line","auto")}catch(i){}t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100);try{t.align=r.get("align","center")}catch(i){t.align=r.get("align","middle")}try{t.position=r.get("position","auto")}catch(i){t.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}(o.prototype=i(Error.prototype)).constructor=o,o.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},a.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var u=r.createElement&&r.createElement("textarea"),h={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},A={v:"title",lang:"lang"},p={rt:"ruby"};function f(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>
1]*>?)?/);return t=t.substr((e=n[1]?n[1]:n[2]).length),e}function r(e,t){return!p[t.localName]||p[t.localName]===e.localName}function i(t,n){var r=h[t];if(!r)return null;var i=e.document.createElement(r),o=A[t];return o&&n&&(i[o]=n.trim()),i}for(var o,a,l=e.document.createElement("div"),c=l,f=[];null!==(o=n());)if("<"!==o[0])c.appendChild(e.document.createTextNode((u.innerHTML=o,a=u.textContent,u.textContent="",a)));else{if("/"===o[1]){f.length&&f[f.length-1]===o.substr(2).replace(">","")&&(f.pop(),c=c.parentNode);continue}var g,m=s(o.substr(1,o.length-2));if(m){g=e.document.createProcessingInstruction("timestamp",m),c.appendChild(g);continue}var v=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(g=i(v[1],v[3])))continue;if(!r(c,g))continue;if(v[2]){var y=v[2].split(".");y.forEach(function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;d.hasOwnProperty(n)&&(g.style[t?"background-color":"color"]=d[n])}),g.className=y.join(" ")}f.push(v[1]),c.appendChild(g),c=g}return l}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function m(e){for(var t=0;t<g.length;t++){var n=g[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function v(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(r(e,t),i(e)):void 0}for(r(t,e);n=i(t);)for(var o=0;o<n.length;o++)if(m(n.charCodeAt(o)))return"rtl";return"ltr"}function y(){}function b(e,t,n){y.call(this),this.cue=t,this.cueDiv=f(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=e.document.createElement("div"),r={direction:v(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":i=t.position;break;case"center":i=t.position-t.size/2;break;case"end":i=t.position-t.size}this.applyStyles(""===t.vertical?{left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}:{top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")}
vendor: 5,630 bytes, line 1
1)}}function _(e){var t,n,r,i;if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var o=(o=e.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();e=e.div.getBoundingClientRect(),t=o?Math.max(o[0]&&o[0].height||0,e.height/o.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight}function w(e,t,n,r){var i=new _(t),o=t.cue,s=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return-1*++r}(o),a=[];if(o.snapToLines){var l;switch(o.vertical){case"":a=["+y","-y"],l="height";break;case"rl":a=["+x","-x"],l="width";break;case"lr":a=["-x","+x"],l="width"}var c=i.lineHeight,u=c*Math.round(s),h=n[l]+c,d=a[0];Math.abs(u)>h&&(u=u<0?-1:1,u*=Math.ceil(h/c)*c),s<0&&(u+=""===o.vertical?n.height:n.width,a=a.reverse()),i.move(d,u)}else{var A=i.lineHeight/n.height*100;switch(o.lineAlign){case"center":s-=A/2;break;case"end":s-=A}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}a=["+y","-x","+x","-y"],i=new _(t)}var p=function(e,t){for(var i,o=new _(e),s=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(n,t[a])||e.within(n)&&e.overlapsAny(r);)e.move(t[a]);if(e.within(n))return e;var l=e.intersectPercentage(n);s>l&&(i=new _(e),s=l),e=new _(o)}return i||o}(i,a);t.move(p.toCSSCompatValues(n))}function C(){}y.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},y.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(b.prototype=i(y.prototype)).constructor=b,_.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},_.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},_.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},_.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},_.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},_.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},_.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},_.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},C.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},C.convertCueToDOMTree=function(e,t){return e&&t?f(e,t):null},C.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var i=[],o=_.getSimpleBoxPosition(r),s={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,a,l=0;l<t.length;l++)n=new b(e,a=t[l],s),r.appendChild(n.div),w(0,n,o,i),a.displayState=n.div,i.push(_.getSimpleBoxPosition(n))}()}else for(var a=0;a<t.length;a++)r.appendChild(t[a].displayState)},(C.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof o))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t,n=this;function r(){for(var e=n.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var r=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,n.buffer=e.substr(t),r}e&&(n.buffer+=n.decoder.decode(e,{stream:!0}));try{var i;if("INITIAL"===n.state){if(!/\r\n|\n/.test(n.buffer))return this;var u=(i=r()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new o(o.Errors.BadSignature);n.state="HEADER"}for(var h=!1;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(h?h=!1:i=r(),n.state){case"HEADER":/:/.test(i)?(t=i).match(/X-TIMESTAMP-MAP/)?l(t,function(e,t){switch(e){case"X-TIMESTAMP-MAP":!function(e){var t=new a;l(e,function(e,n){switch(e){case"MPEGT":t.integer(e+"S",n);break;case"LOCA":t.set(e+"L",s(n))}},/[^\d]:/,/,/),n.ontimestampmap&&n.ontimestampmap({MPEGTS:t.get("MPEGTS"),LOCAL:t.get("LOCAL")})}(t)}},/=/):l(t,function(e,t){switch(e){case"Region":!function(e){var t=new a;
vendor: 5,304 bytes, line 1
1if(l(e,function(e,n){switch(e){case"id":t.set(e,n);break;case"width":t.percent(e,n);break;case"lines":t.integer(e,n);break;case"regionanchor":case"viewportanchor":var r=n.split(",");if(2!==r.length)break;var i=new a;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;t.set(e+"X",i.get("x")),t.set(e+"Y",i.get("y"));break;case"scroll":t.alt(e,n,["up"])}},/=/,/\s/),t.has("id")){var r=new(n.vttjs.VTTRegion||n.window.VTTRegion);r.width=t.get("width",100),r.lines=t.get("lines",3),r.regionAnchorX=t.get("regionanchorX",0),r.regionAnchorY=t.get("regionanchorY",100),r.viewportAnchorX=t.get("viewportanchorX",0),r.viewportAnchorY=t.get("viewportanchorY",100),r.scroll=t.get("scroll",""),n.onregion&&n.onregion(r),n.regionList.push({id:t.get("id"),region:r})}}(t)}},/:/):i||(n.state="ID");continue;case"NOTE":i||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){n.state="NOTE";break}if(!i)continue;n.cue=new(n.vttjs.VTTCue||n.window.VTTCue)(0,0,"");try{n.cue.align="center"}catch(A){n.cue.align="middle"}if(n.state="CUE",-1===i.indexOf("--\x3e")){n.cue.id=i;continue}case"CUE":try{c(i,n.cue,n.regionList)}catch(A){n.reportOrThrowError(A),n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":var d=-1!==i.indexOf("--\x3e");if(!i||d&&(h=!0)){n.oncue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}n.cue.text&&(n.cue.text+="\n"),n.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(n.state="ID");continue}}}catch(A){n.reportOrThrowError(A),"CUETEXT"===n.state&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state="INITIAL"===n.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new o(o.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=C},7573:e=>{var t={"":1,lr:1,rl:1},n={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function r(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}function i(e,n,i){this.hasBeenReset=!1;var o="",s=!1,a=e,l=n,c=i,u=null,h="",d=!0,A="auto",p="start",f="auto",g="auto",m=100,v="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return o},set:function(e){o=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");a=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(e){c=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(e){var n=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===n)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=n,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return d},set:function(e){d=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return A},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");A=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return p},set:function(e){var t=r(e);t?(p=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return f},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");f=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(e){var t=r(e);t?(g=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");m=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(e){var t=r(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");v=t,this.hasBeenReset=!0}}}),this.displayState=void 0}i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=i},4643:e=>{var t={"":!0,up:!0};function n(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,r=3,i=0,o=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!n(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return r},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");r=e}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!n(e))throw new Error("RegionAnchorX must be between 0 and 100.");o=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!n(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return a}
1,set:function(e){if(!n(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!n(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var n=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);!1===n?console.warn("Scroll: an invalid or illegal string was specified."):l=n}}})}},6258:function(e,t,n){var r;r=n(4741),e.exports=function(e){"use strict";var t,n,r,i,o,s,a,l=e.browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,c=e.getTech("Tech"),u=e.extend(c,{constructor:function(e,t){c.call(this,e,t),this.setPoster(e.poster),this.setSrc(this.options_.source,!0),this.setTimeout((function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",l&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),u.isApiReady?this.initYTPlayer():u.apiReadyQueue.push(this))}).bind(this))},dispose:function(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var e=u.apiReadyQueue.indexOf(this);-1!==e&&u.apiReadyQueue.splice(e,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),c.prototype.dispose.call(this)},createEl:function(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),e.setAttribute("class","vjs-tech");var t=document.createElement("div");if(t.appendChild(e),!l&&!this.options_.ytControls){var n=document.createElement("div");n.setAttribute("class","vjs-iframe-blocker"),n.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),n.onclick=(function(){this.pause()}).bind(this),t.appendChild(n)}return t},initYTPlayer:function(){var e={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};if(void 0!==this.options_.autohide&&(e.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(e.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(e.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(e.disablekb=this.options_.disablekb),void 0!==this.options_.color&&(e.color=this.options_.color),e.controls?void 0!==this.options_.fs&&(e.fs=this.options_.fs):e.fs=0,-1!==this.options_.source.src.indexOf("end=")){var t=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(t[1])}if(void 0!==this.options_.end&&(e.end=this.options_.end),void 0!==this.options_.hl?e.hl=this.options_.hl:void 0!==this.options_.language&&(e.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(e.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?e.list=this.options_.list:this.url&&void 0!==this.url.listId&&(e.list=this.url.listId),void 0!==this.options_.listType&&(e.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(e.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(e.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(e.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(e.rel=this.options_.rel),void 0!==this.options_.showinfo&&(e.showinfo=this.options_.showinfo),-1!==this.options_.source.src.indexOf("start=")){var n=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt(n[1])}if(void 0!==this.options_.start&&(e.start=this.options_.start),void 0!==this.options_.theme&&(e.theme=this.options_.theme),void 0!==this.options_.customVars){var r=this.options_.customVars;Object.keys(r).forEach(function(t){e[t]=r[t]})}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=e.list;var i={videoId:this.activeVideoId,playerVars:e,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};void 0!==this.options_.enablePrivacyEnhancedMode&&this.options_.enablePrivacyEnhancedMode&&(i.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,i)},onPlayerReady:function(){this.options_.muted&&this.ytPlayer.mute(),this.ytPlayer.getAvailablePlaybackRates().length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)},onPlayerPlaybackQualityChange:function(){},onPlayerPlaybackRateChange:function(){this.trigger("ratechange")},onPlayerStateChange:function(e){var t=e.data;if(t!==this.lastState&&!this.errorNumber)switch(this.lastState=t,t){case-1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}},onPlayerVolumeChange:function(){this.trigger("volumechange")},onPlayerError:function(e){this.errorNumber=e.data,this.trigger("pause"),this.trigger("error")},error:function(){var e=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:e,message:"Error while trying to play the video"};case 2:case 100:return{code:e,message:"Unable to find the video"};case 101:case 150:return{code:e,message:"Playback on other Websites has been disabled by the video owner."}}return{code:e,message:"YouTube unknown error ("+this.errorNumber+")"}},loadVideoById_:function(e){var t={videoId:e};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endSeconds=this.options_.end),this.ytPlayer.loadVideoById(t)},cueVideoById_:function(e){var t={videoId:e};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endSeconds=this.options_.end),this.ytPlayer.cueVideoById(t)},src:function(e){return e&&this.setSrc({src:e}),this.source},poster:function(){return l?null:this.poster_},setPoster:function(e){this.poster_=e},setSrc:function(e){e&&e.src&&(delete this.errorNumber,this.source=e,this.url=u.parseUrl(e.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!l?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))},autoplay:function(){return this.options_.autoplay},setAutoplay:function(e){this.options_.autoplay=e},loop:function(){return this.options_.loop},setLoop:function(e){this.options_.loop=e},play:function(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))},pause:function(){this.ytPlayer&&this.ytPlayer.pauseVideo()},paused:function(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING},currentTime:function(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0},setCurrentTime:function(e){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(e,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==e&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval((function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}).bind(this),250))},seeking:function(){return this.isSeeking},seekable:function(){return this.ytPlayer?e.createTimeRange(0,this.ytPlayer.getDuration()):e.createTimeRange()},onSeeked:function(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")},playbackRate:function(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1},setPlaybackRate:function(e){this.ytPlayer&&this.ytPlayer.setPlaybackRate(e)},duration:function(){return this.ytPlayer?this.ytPlayer.getDuration():0},currentSrc:function(){return this.source&&this.source.src},ended:function(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED},volume:function(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1},setVolume:function(e){this.ytPlayer&&this.ytPlayer.setVolume(100*e)},muted:function(){return!!this.ytPlayer&&this.ytPlayer.isMuted()},setMuted:function(e){this.ytPlayer&&(this.muted(!0),e?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout(function(){this.trigger("volumechange")},50))},buffered:function(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return e.createTimeRange();var t=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return e.createTimeRange(0,t)},preload:function(){},load:function(){},reset:function(){},networkState:function(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 3:return 2;default:return 1}},readyState:function(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 5:return 1;case 3:return 2;default:return 4}},supportsFullScreen:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled},checkHighResPoster:function(){var e="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var t=new Image;t.onload=(function(){if("naturalHeight"in t){if(t.naturalHeight<=90||t.naturalWi
1dth<=120)return}else if(t.height<=90||t.width<=120)return;this.poster_=e,this.trigger("posterchange")}).bind(this),t.onerror=function(){},t.src=e}catch(n){}}});u.isSupported=function(){return!0},u.canPlaySource=function(e){return u.canPlayType(e.type)},u.canPlayType=function(e){return"video/youtube"===e},u.parseUrl=function(e){var t={videoId:null},n=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return n&&11===n[2].length&&(t.videoId=n[2]),(n=e.match(/[?&]list=([^#\&\?]+)/))&&n[1]&&(t.listId=n[1]),t},u.apiReadyQueue=[],"undefined"!=typeof document&&("https://www.youtube.com/iframe_api",i=function(){YT.ready(function(){u.isApiReady=!0;for(var e=0;e<u.apiReadyQueue.length;++e)u.apiReadyQueue[e].initYTPlayer()})},o=!1,s=document.createElement("script"),(a=document.getElementsByTagName("script")[0])&&(a.parentNode.insertBefore(s,a),s.onload=function(){o||(o=!0,i())},s.onreadystatechange=function(){o||"complete"!==this.readyState&&"loaded"!==this.readyState||(o=!0,i())},s.src="https://www.youtube.com/iframe_api"),t=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",n=document.head||document.getElementsByTagName("head")[0],(r=document.createElement("style")).type="text/css",r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t)),n.appendChild(r)),void 0!==e.registerTech?e.registerTech("Youtube",u):e.registerComponent("Youtube",u)}(r.default||r)},8673:(e,t,n)=>{"use strict";var r=n(8066),i=n(5390),o=n(5230),s=n(5504);function a(e,t,n){var r=e;return i(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=s(t,{uri:e}),r.callback=n,r}function l(e,t,n){return c(t=a(e,t,n))}function c(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function r(){var e=void 0;if(e=h.response?h.response:h.responseText||function(e){return"document"===e.responseType?e.responseXML:""!==e.responseType||204===e.status&&e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName?null:e.responseXML}(h),v)try{e=JSON.parse(e)}catch(t){}return e}var i={body:void 0,headers:{},statusCode:0,method:p,url:A,rawRequest:h};function s(e){return clearTimeout(d),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,i)}function a(){if(!u){var t;clearTimeout(d);var s=i,a=null;return 0!==(t=e.useXDR&&void 0===h.status?200:1223===h.status?204:h.status)?(s={body:r(),statusCode:t,method:p,headers:{},url:A,rawRequest:h},h.getAllResponseHeaders&&(s.headers=o(h.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,s,s.body)}}var c,u,h=e.xhr||null;h||(h=e.cors||e.useXDR?new l.XDomainRequest:new l.XMLHttpRequest);var d,A=h.url=e.uri||e.url,p=h.method=e.method||"GET",f=e.body||e.data||null,g=h.headers=e.headers||{},m=!!e.sync,v=!1;if("json"in e&&(v=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),f=JSON.stringify(e.json))),h.onreadystatechange=function(){4===h.readyState&&a()},h.onload=a,h.onerror=s,h.onprogress=function(){},h.ontimeout=s,h.open(p,A,!m,e.username,e.password),m||(h.withCredentials=!!e.withCredentials),!m&&e.timeout>0&&(d=setTimeout(function(){u=!0,h.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",s(e)},e.timeout)),h.setRequestHeader)for(c in g)g.hasOwnProperty(c)&&h.setRequestHeader(c,g[c]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(h.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(h),h.send(f),h}e.exports=l,l.XMLHttpRequest=r.XMLHttpRequest||function(){},l.XDomainRequest="withCredentials"in new l.XMLHttpRequest?l.XMLHttpRequest:r.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){l["delete"===e?"del":e]=function(t,n,r){return(n=a(t,
1n,r)).method=e.toUpperCase(),c(n)}})},8066:e=>{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e.exports=t},1787:(e,t,n)=>{function r(e){this.options=e||{locator:{}}}function i(){this.cdata=!1}function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function s(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function a(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function l(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new h,o=n.domBuilder||new i,a=n.errorHandler,l=n.locator,u=n.xmlns||{},d=/\/x?html?$/.test(t),A=d?c.entityMap:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return l&&o.setDocumentLocator(l),r.errorHandler=function(e,t,n){if(!e){if(t instanceof i)return t;e=t}var r={},o=e instanceof Function;function a(t){var i=e[t];!i&&o&&(i=2==e.length?function(n){e(t,n)}:e),r[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+s(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),r}(a,o,l),r.domBuilder=n.domBuilder||o,d&&(u[""]="http://www.w3.org/1999/xhtml"),u.xml=u.xml||"http://www.w3.org/XML/1998/namespace",e&&"string"==typeof e?r.parse(e,u,A):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new A).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,s=i.createElementNS(e,n||t),a=r.length;l(this,s),this.currentElement=s,this.locator&&o(this.locator,s);for(var c=0;c<a;c++){e=r.getURI(c);var u=r.getValue(c),h=(n=r.getQName(c),i.createAttributeNS(e,n));this.locator&&o(r.getLocator(c),h),h.value=h.nodeValue=u,s.setAttributeNode(h)}},endElement:function(e,t,n){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&o(this.locator,n),l(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=a.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&o(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=a.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&o(this.locator,r),l(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&o(this.locator,i),l(this,i)}},warning:function(e){console.warn("[xmldom warning]\t"+e,s(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,s(this.locator))},fatalError:function(e){throw new d(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){i.prototype[e]=function(){return null}});var c=n(3627),u=n(8095),h=u.XMLReader,d=u.ParseError,A=n(3911).DOMImplementation;n(3911),t.a=r},3911:(e,t)=>{function n(e,t){for(var n in e)t[n]=e[n]}function r(e,t){var r=e.prototype;if(!(r instanceof t)){function i(){}i.prototype=t.prototype,n(r,i=new i),e.prototype=r=i}r.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),r.constructor=e)}var i={},o=i.ELEMENT_NODE=1,s=i.ATTRIBUTE_NODE=2,a=i.TEXT_NODE=3,l=i.CDATA_SECTION_NODE=4,c=i.ENTITY_REFERENCE_NODE=5,u=i.ENTITY_NODE=6,h=i.PROCESSING_INSTRUCTION_NODE=7,d=i.COMMENT_NODE=8,A=i.DOCUMENT_NODE=9,p=i.DOCUMENT_TYPE_NODE=10,f=i.DOCUMENT_FRAGMENT_NODE=11,g=i.NOTATION_NODE=12,m={},v={},y=(m.INDEX_SIZE_ERR=(v[1]="Index size error",1),m.DOMSTRING_SIZE_ERR=(v[2]="DOMString size error",2),m.HIERARCHY_REQUEST_ERR=(v[3]="Hierarchy request error",3)),b=(m.WRONG_DOCUMENT_ERR=(v[4]="Wrong document",4),m.INVALID_CHARACTER_ERR=(v[5]="Invalid character",5),m.NO_DATA_ALLOWED_ER
vendor: 10,623 bytes, line 1
1R=(v[6]="No data allowed",6),m.NO_MODIFICATION_ALLOWED_ERR=(v[7]="No modification allowed",7),m.NOT_FOUND_ERR=(v[8]="Not found",8)),_=(m.NOT_SUPPORTED_ERR=(v[9]="Not supported",9),m.INUSE_ATTRIBUTE_ERR=(v[10]="Attribute in use",10));function w(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,v[e]),this.message=v[e],Error.captureStackTrace&&Error.captureStackTrace(this,w);return n.code=e,t&&(this.message=this.message+": "+t),n}function C(){}function S(e,t){this._node=e,this._refresh=t,E(this)}function E(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);te(e,"length",r.length),n(r,e),e._inc=t}}function I(){}function x(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function T(e,t,n,r){if(r?t[x(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&M(i,e,r),function(e,t,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(i,e,n))}}function B(e,t,n){var r=x(t,n);if(!(r>=0))throw w(b,new Error(e.tagName+"@"+n));for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var o=e.ownerDocument;o&&(M(o,e,n),n.ownerElement=null)}}function k(e){if(this._features={},e)for(var t in e)this._features=e[t]}function P(){}function O(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function F(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(F(e,t))return!0}while(e=e.nextSibling)}function L(){}function M(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function D(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o}}}function N(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,D(e.ownerDocument,e),t}function R(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===f){var i=t.firstChild;if(null==i)return t;var o=t.lastChild}else i=o=t;var s=n?n.previousSibling:e.lastChild;i.previousSibling=s,o.nextSibling=n,s?s.nextSibling=i:e.firstChild=i,null==n?e.lastChild=o:n.previousSibling=o;do{i.parentNode=e}while(i!==o&&(i=i.nextSibling));return D(e.ownerDocument||e,e),t.nodeType==f&&(t.firstChild=t.lastChild=null),t}function U(){this._nsMap={}}function j(){}function Q(){}function H(){}function V(){}function q(){}function K(){}function G(){}function z(){}function W(){}function $(){}function Y(){}function X(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!r&&!i)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=n.length;o--;){var s=n[o];if(s.prefix==r)return s.namespace!=i}return!0}function J(e,t,n,r,i){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case o:i||(i=[]);var u=e.attributes,g=u.length,m=e.firstChild,v=e.tagName;n="http://www.w3.org/1999/xhtml"===e.namespaceURI||n,t.push("<",v);for(var y=0;y<g;y++)"xmlns"==(b=u.item(y)).prefix?i.push({prefix:b.localName,namespace:b.value}):"xmlns"==b.nodeName&&i.push({prefix:"",namespace:b.value});for(y=0;y<g;y++){var b,_,w;X(b=u.item(y),0,i)&&(t.push((_=b.prefix||"")?" xmlns:"+_:" xmlns",'="',w=b.namespaceURI,'"'),i.push({prefix:_,namespace:w})),J(b,t,n,r,i)}if(X(e,0,i)&&(t.push((_=e.prefix||"")?" xmlns:"+_:" xmlns",'="',w=e.namespaceURI,'"'),i.push({prefix:_,namespace:w})),m||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(v)){if(t.push(">"),n&&/^script$/i.test(v))for(;m;)m.data?t.push(m.data):J(m,t,n,r,i),m=m.nextSibling;else for(;m;)J(m,t,n,r,i),m=m.nextSibling;t.push("</",v,">")}else t.push("/>");return;case A:case f:for(m=e.firstChild;m;)J(m,t,n,r,i),m=m.nextSibling;return;case s:return t.push(" ",e.name,'="',e.value.replace(/[&"]/g,O),'"');case a:return t.push(e.data.replace(/[<&]/g,O).replace(/]]>/g,"]]&gt;"));case l:return t.push("<![CDATA[",e.data,"]]>");case d:return t.push("\x3c!--",e.data,"--\x3e");case p:var C=e.publicId,S=e.systemId;if(t.push("<!DOCTYPE ",e.name),C)t.push(" PUBLIC ",C),S&&"."!=S&&t.push(" ",S),t.push(">");else if(S&&"."!=S)t.push(" SYSTEM ",S,">");else{var E=e.internalSubset;E&&t.push(" [",E,"]"),t.push(">")}return;case h:return t.push("<?",e.target," ",e.data,"?>");case c:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function Z(e,t,n){var r;switch(t.nodeType){case o:(r=t.cloneNode(!1)).ownerDocument=e;case f:break;case s:n=!0}if(r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null,n)for(var i=t.firstChild;i;)r.appendChild(Z(e,i,n)),i=i.nextSibling;return r}function ee(e,t,n){var r=new t.constructor;for(var i in t){var a=t[i];"object"!=typeof a&&a!=r[i]&&(r[i]=a)}switch(t.childNodes&&(r.childNodes=new C),r.ownerDocument=e,r.nodeType){case o:var l=t.attributes,c=r.attributes=new I,u=l.length;c._ownerElement=r;for(var h=0;h<u;h++)r.setAttributeNode(ee(e,l.item(h),!0));break;case s:n=!0}if(n)for(var d=t.firstChild;d;)r.appendChild(ee(e,d,n)),d=d.nextSibling;return r}function te(e,t,n){e[t]=n}m.INVALID_STATE_ERR=(v[11]="Invalid state",11),m.SYNTAX_ERR=(v[12]="Syntax error",12),m.INVALID_MODIFICATION_ERR=(v[13]="Invalid modification",13),m.NAMESPACE_ERR=(v[14]="Invalid namespace",14),m.INVALID_ACCESS_ERR=(v[15]="Invalid access",15),w.prototype=Error.prototype,n(m,w),C.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)J(this[r],n,e,t);return n.join("")}},S.prototype.item=function(e){return E(this),this[e]},r(S,C),I.prototype={length:0,item:C.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new w(_);var n=this.getNamedItem(e.nodeName);return T(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new w(_);return t=this.getNamedItemNS(e.namespaceURI,e.localName),T(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return B(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return B(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},k.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!(!n||t&&!(t in n))},createDocument:function(e,t,n){var r=new L;if(r.implementation=this,r.childNodes=new C,r.doctype=n,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new K;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},P.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return R(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return N(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return ee(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==a&&e.nodeType==a?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==s?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==s?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},n(i,P),n(i,P.prototype),L.prototype={nodeName:"#document",nodeType:A,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==f){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==o&&(this.documentElement=e),R(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),N(this,e)},importNode:function(e,t){return Z(this,e,t)},getElementById:function(e){var t=null;return F(this.documentElement,function(n){if(n.nodeType==o&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=new RegExp("(^|\\s)"+e+"(\\s|$)");return new S(this,function(e){var n=[];return F(e.documentElement,function(r){r!==e&&r.nodeType==o&&t.test(r.getAttribute("class"))&&n.push(r)}),n})},createElement:function(e){var t=new U;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new C,(t.attributes=new I)._ownerElement=t,t},createDocumentFragment:function(){var e=new $;return e.ownerDocument=this,e.childNodes=new C,e},createTextNode:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new V;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new q;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Y;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new j;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new W;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new U,r=t.split(":"),i=n.attributes=new I;return n.childNodes=new C,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new j,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},r(L,P),L.prototype.getElementsByTagName=(U.prototype={nodeType:o,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
1,appendChild:function(e){return e.nodeType===f?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t),r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,D(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new S(this,function(t){var n=[];return F(t,function(r){r===t||r.nodeType!=o||"*"!==e&&r.tagName!=e||n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new S(this,function(n){var r=[];return F(n,function(i){i===n||i.nodeType!==o||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)}),r})}}).getElementsByTagName,L.prototype.getElementsByTagNameNS=U.prototype.getElementsByTagNameNS,r(U,P),j.prototype.nodeType=s,r(j,P),Q.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){this.nodeValue=this.data=e=this.data+e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(v[y])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);this.nodeValue=this.data=n=r+n+i,this.length=n.length}},r(Q,P),H.prototype={nodeName:"#text",nodeType:a,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(H,Q),V.prototype={nodeName:"#comment",nodeType:d},r(V,Q),q.prototype={nodeName:"#cdata-section",nodeType:l},r(q,Q),K.prototype.nodeType=p,r(K,P),G.prototype.nodeType=g,r(G,P),z.prototype.nodeType=u,r(z,P),W.prototype.nodeType=c,r(W,P),$.prototype.nodeName="#document-fragment",$.prototype.nodeType=f,r($,P),Y.prototype.nodeType=h,r(Y,P),P.prototype.toString=function(e,t){var n=[],r=9==this.nodeType&&this.documentElement||this,i=r.prefix,o=r.namespaceURI;if(o&&null==i&&null==(i=r.lookupPrefix(o)))var s=[{namespace:o,prefix:null}];return J(this,n,e,t,s),n.join("")};try{if(Object.defineProperty){function ne(e){switch(e.nodeType){case o:case f:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(ne(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(S.prototype,"length",{get:function(){return E(this),this.$$length}}),Object.defineProperty(P.prototype,"textContent",{get:function(){return ne(this)},set:function(e){switch(this.nodeType){case o:case f:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),te=function(e,t,n){e["$$"+t]=n}}}catch(re){}t.DOMImplementation=k},3627:(e,t)=>{t.entityMap={lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslas
1h:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",euro:"\u20ac",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}},8095:(e,t)=>{var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$");function o(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,o)}function s(){}function a(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function l(e,t,n,r,i,o){function s(e,t,r){e in n.attributeNames&&o.fatalError("Attribute "+e+" redefined"),n.addValue(e,t,r)}for(var a,l=++t,c=0;;){var u=e.charAt(l);switch(u){case"=":if(1===c)a=e.slice(t,l),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(o.warning('attribute value must after "="'),a=e.slice(t,l)),!((l=e.indexOf(u,t=l+1))>0))throw new Error("attribute value no end '"+u+"' match");s(a,h=e.slice(t,l).replace(/&#?\w+;/g,i),t-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');s(a,h=e.slice(t,l).replace(/&#?\w+;/g,i),t),o.warning('attribute "'+a+'" missed start quot('+u+")!!"),t=l+1,c=5}break;case"/":switch(c){case 0:n.setTagName(e.slice(t,l));case 5:case 6:case 7:c=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==c&&n.setTagName(e.slice(t,l)),l;case">":switch(c){case 0:n.setTagName(e.slice(t,l));
1case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,l)).slice(-1)&&(n.closed=!0,h=h.slice(0,-1));case 2:2===c&&(h=a),4==c?(o.warning('attribute "'+h+'" missed quot(")!'),s(a,h.replace(/&#?\w+;/g,i),t)):("http://www.w3.org/1999/xhtml"===r[""]&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,t));break;case 3:throw new Error("attribute value missed!!")}return l;case"\x80":u=" ";default:if(u<=" ")switch(c){case 0:n.setTagName(e.slice(t,l)),c=6;break;case 1:a=e.slice(t,l),c=2;break;case 4:var h=e.slice(t,l).replace(/&#?\w+;/g,i);o.warning('attribute "'+h+'" missed quot(")!!'),s(a,h,t);case 5:c=6}else switch(c){case 2:"http://www.w3.org/1999/xhtml"===r[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),s(a,a,t),t=l,c=1;break;case 5:o.warning('attribute space is required"'+a+'"!!');case 6:c=1,t=l;break;case 3:c=4,t=l;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}l++}}function c(e,t,n){for(var r=e.tagName,i=null,o=e.length;o--;){var s=e[o],a=s.qName,l=s.value;if((A=a.indexOf(":"))>0)var c=s.prefix=a.slice(0,A),u=a.slice(A+1),h="xmlns"===c&&u;else u=a,c=null,h="xmlns"===a&&"";s.localName=u,!1!==h&&(null==i&&(i={},d(n,n={})),n[h]=i[h]=l,s.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(h,l))}for(o=e.length;o--;)(c=(s=e[o]).prefix)&&("xml"===c&&(s.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==c&&(s.uri=n[c||""]));var A;(A=r.indexOf(":"))>0?(c=e.prefix=r.slice(0,A),u=e.localName=r.slice(A+1)):(c=null,u=e.localName=r);var p=e.uri=n[c||""];if(t.startElement(p,u,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=i,!0;if(t.endElement(p,u,r),i)for(c in i)t.endPrefixMapping(c)}function u(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),s=e.substring(t+1,o);if(/[&<]/.test(s))return/^script$/i.test(n)?(i.characters(s,0,s.length),o):(s=s.replace(/&#?\w+;/g,r),i.characters(s,0,s.length),o)}return t+1}function h(e,t,n,r){var i=r[n];return null==i&&((i=e.lastIndexOf("</"+n+">"))<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function d(e,t){for(var n in e)t[n]=e[n]}function A(e,t,n,r){switch(e.charAt(t+2)){case"-":return"-"===e.charAt(t+3)?(i=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,i-t-4),i+3):(r.error("Unclosed comment"),-1):-1;default:if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var o=function(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=t,i.exec(e);n=i.exec(e);)if(r.push(n),n[1])return r}(e,t),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var a=o[1][0],l=!1,c=!1;s>3&&(/^public$/i.test(o[2][0])?(l=o[3][0],c=s>4&&o[4][0]):/^system$/i.test(o[2][0])&&(c=o[3][0]));var u=o[s-1];return n.startDTD(a,l,c),n.endDTD(),u.index+u[0].length}}return-1}function p(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function f(){this.attributeNames={}}(o.prototype=new Error).name=o.name,s.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),d(t,t={}),function(e,t,n,r,i){function s(e){var t,r=e.slice(1,-1);return r in n?n[r]:"#"===r.charAt(0)?(t=parseInt(r.substr(1).replace("x","0x")))>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):String.fromCharCode(t):(i.error("entity not found:"+e),e)}function d(t){if(t>C){var n=e.substring(C,t).replace(/&#?\w+;/g,s);b&&g(C),r.characters(n,0,t-C),C=t}}function g(t,n){for(;t>=v&&(n=y.exec(e));)v=(m=n.index)+n[0].length,b.lineNumber++;b.columnNumber=t-m+1}for(var m=0,v=0,y=/.*(?:\r\n?|\n)|.*$/g,b=r.locator,_=[{currentNSMap:t}],w={},C=0;;){try{var S=e.indexOf("<",C);if(S<0){if(!e.substr(C).match(/^\s*$/)){var E=r.doc,I=E.createTextNode(e.substr(C));E.appendChild(I),r.currentElement=I}return}switch(S>C&&d(S),e.charAt(S+1)){case"/":var x=e.indexOf(">",S+3),T=e.substring(S+2,x),B=_.pop();x<0?(T=e.substring(S+2).replace(/[\s<].*/,""),i.error("end tag name: "+T+" is not complete:"+B.tagName),x=S+1+T.length):T.match(/\s</)&&(T=T.replace(/[\s<].*/,""),i.error("end tag name: "+T+" maybe not complete"),x=S+1+T.length);var k=B.localNSMap,P=B.tagName==T;if(P||B.tagName&&B.tagName.toLowerCase()==T.toLowerCase()){if(r.endElement(B.uri,B.localName,T),k)for(var O in k)r.endPrefixMapping(O);P||i.fatalError("end tag name: "+T+" is not match the current start tagName:"+B.tagName)}else _.push(B);x++;break;case"?":b&&g(S),x=p(e,S,r);break;case"!":b&&g(S),x=A(e,S,r,i);break;default:b&&g(S);var F=new f,L=_[_.length-1].currentNSMap,M=(x=l(e,S,F,L,s,i),F.length);if(!F.closed&&h(e,x,F.tagName,w)&&(F.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),b&&M){for(var D=a(b,{}),N=0;N<M;N++){var R=F[N];g(R.offset),R.locator=a(b,{})}
1r.locator=D,c(F,r,L)&&_.push(F),r.locator=b}else c(F,r,L)&&_.push(F);"http://www.w3.org/1999/xhtml"!==F.uri||F.closed?x++:x=u(e,x,F.tagName,s,r)}}catch(U){if(U instanceof o)throw U;i.error("element parse error: "+U),x=-1}x>C?C=x:d(Math.max(S,C)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},f.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!i.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=s,t.ParseError=o},5504:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},2268:(e,t,n)=>{"use strict";var r=n(9624),i=n(5366);class o{}const s="*";function a(e,t){return{type:7,name:e,definitions:t,options:{}}}function l(e,t=null){return{type:4,styles:t,timings:e}}function c(e,t=null){return{type:2,steps:e,options:t}}function u(e){return{type:6,styles:e,offset:null}}function h(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function d(e=null){return{type:9,options:e}}function A(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function p(e,t){return{type:12,timings:e,animation:t}}function f(e){Promise.resolve(null).then(e)}class g{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class m{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0;const i=this.players.length;0==i?f(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==i&&this._onFinish()}),e.onDestroy(()=>{++n==i&&this._onDestroy()}),e.onStart(()=>{++r==i&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;
1this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function v(){return"undefined"!=typeof window&&void 0!==window.document}function y(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function b(e){switch(e.length){case 0:return new g;case 1:return e[0];default:return new m(e)}}function _(e,t,n,r,i={},o={}){const a=[],l=[];let c=-1,u=null;if(r.forEach(e=>{const n=e.offset,r=n==c,h=r&&u||{};Object.keys(e).forEach(n=>{let r=n,l=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,a),l){case"!":l=i[n];break;case s:l=o[n];break;default:l=t.normalizeStyleValue(n,r,l,a)}h[r]=l}),r||l.push(h),u=h,c=n}),a.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${a.join(e)}`)}return l}function w(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&C(n,"start",e)));break;case"done":e.onDone(()=>r(n&&C(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&C(n,"destroy",e)))}}function C(e,t,n){const r=n.totalTime,i=S(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function S(e,t,n,r,i="",o=0,s){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function E(e,t,n){let r;return e instanceof Map?(r=e.get(t),r||e.set(t,r=n)):(r=e[t],r||(r=e[t]=n)),r}function I(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let x=(e,t)=>!1,T=(e,t)=>!1,B=(e,t,n)=>[];const k=y();(k||"undefined"!=typeof Element)&&(x=v()?(e,t)=>{for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:(e,t)=>e.contains(t),T=(()=>{if(k||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):T}})(),B=(e,t,n)=>{let r=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e<n.length;e++)r.push(n[e])}else{const n=e.querySelector(t);n&&r.push(n)}return r});let P=null,O=!1;function F(e){P||(P=("undefined"!=typeof document?document.body:null)||{},O=!!P.style&&"WebkitAppearance"in P.style);let t=!0;return P.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in P.style,!t&&O)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in P.style),t}const L=T,M=x,D=B;function N(e){const t={};return Object.keys(e).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}let R=(()=>{class e{validateStyleProperty(e){return F(e)}matchesElement(e,t){return L(e,t)}containsElement(e,t){return M(e,t)}query(e,t,n){return D(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,r,i,o=[],s){return new g(n,r)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),U=(()=>{class e{}return e.NOOP=new R,e})();const j="ng-enter",Q="ng-leave",H="ng-trigger",V=".ng-trigger",q="ng-animating",K=".ng-animating";function G(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:z(parseFloat(t[1]),t[2])}function z(e,t){switch(t){case"s":return 1e3*e;default:return e}}function W(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let r,i=0,o="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};r=z(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(i=z(parseFloat(s),n[4]));const a=n[5];a&&(o=a)}else r=e;if(!n){let n=!1,o=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(o,0,`The provided timing value "${e}
1" is invalid.`)}return{duration:r,delay:i,easing:o}}(e,t,n)}function $(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Y(e,t,n={}){if(t)for(let r in e)n[r]=e[r];else $(e,n);return n}function X(e,t,n){return n?t+":"+n+";":""}function J(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style.item(n);t+=X(0,r,e.style.getPropertyValue(r))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=X(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function Z(e,t,n){e.style&&(Object.keys(t).forEach(r=>{const i=ae(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[i]),e.style[i]=t[r]}),y()&&J(e))}function ee(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=ae(t);e.style[n]=""}),y()&&J(e))}function te(e){return Array.isArray(e)?1==e.length?e[0]:c(e):e}const ne=new RegExp("{{\\s*(.+?)\\s*}}","g");function re(e){let t=[];if("string"==typeof e){let n;for(;n=ne.exec(e);)t.push(n[1]);ne.lastIndex=0}return t}function ie(e,t,n){const r=e.toString(),i=r.replace(ne,(e,r)=>{let i=t[r];return t.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),i=""),i.toString()});return i==r?e:i}function oe(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const se=/-+([a-z0-9])/g;function ae(e){return e.replace(se,(...e)=>e[1].toUpperCase())}function le(e,t){return 0===e||0===t}function ce(e,t,n){const r=Object.keys(n);if(r.length&&t.length){let o=t[0],s=[];if(r.forEach(e=>{o.hasOwnProperty(e)||s.push(e),o[e]=n[e]}),s.length)for(var i=1;i<t.length;i++){let n=t[i];s.forEach(function(t){n[t]=he(e,t)})}}return t}function ue(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function he(e,t){return window.getComputedStyle(e)[t]}const de="*";function Ae(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const i=r[1],o=r[2],s=r[3];t.push(ge(i,s)),"<"!=o[0]||i==de&&s==de||t.push(ge(s,i))}(e,n,t)):n.push(e),n}const pe=new Set(["true","1"]),fe=new Set(["false","0"]);function ge(e,t){const n=pe.has(e)||fe.has(e),r=pe.has(t)||fe.has(t);return(i,o)=>{let s=e==de||e==i,a=t==de||t==o;return!s&&n&&"boolean"==typeof i&&(s=i?pe.has(e):fe.has(e)),!a&&r&&"boolean"==typeof o&&(a=o?pe.has(t):fe.has(t)),s&&a}}const me=new RegExp("s*:selfs*,?","g");function ve(e,t,n){return new ye(e).build(t,n)}class ye{constructor(e){this._driver=e}build(e,t){const n=new be(t);return this._resetContextStyleTimingState(n),ue(this,te(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const i=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,r=n.name;r.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,i.push(this.visitState(n,t))}),n.name=r}else if(1==e.type){const i=this.visitTransition(e,t);n+=i.queryCount,r+=i.depCount,o.push(i)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:i,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const i=new Set,o=r||{};
1if(n.styles.forEach(e=>{if(_e(e)){const t=e;Object.keys(t).forEach(e=>{re(t[e]).forEach(e=>{o.hasOwnProperty(e)||i.add(e)})})}}),i.size){const n=oe(i.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=ue(this,te(e.animation),t);return{type:1,matchers:Ae(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:we(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>ue(this,e,t)),options:we(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const i=e.steps.map(e=>{t.currentTime=n;const i=ue(this,e,t);return r=Math.max(r,t.currentTime),i});return t.currentTime=r,{type:3,steps:i,options:we(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Ce(W(e,t).duration,0,"");const r=e;if(r.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=Ce(0,0,"");return e.dynamic=!0,e.strValue=r,e}return n=n||W(r,t),Ce(n.duration,n.delay,n.easing)}(e.timings,t.errors);let r;t.currentAnimateTimings=n;let i=e.styles?e.styles:u({});if(5==i.type)r=this.visitKeyframes(i,t);else{let i=e.styles,o=!1;if(!i){o=!0;const e={};n.easing&&(e.easing=n.easing),i=u(e)}t.currentTime+=n.duration+n.delay;const s=this.visitStyle(i,t);s.isEmptyStep=o,r=s}return t.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==s?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let r=!1,i=null;return n.forEach(e=>{if(_e(e)){const t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(let e in t)if(t[e].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=t.currentTime,i=t.currentTime;n&&i>0&&(i-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=t.collectedStyles[t.currentQuerySelector],s=o[n];let a=!0;s&&(i!=r&&i>=s.startTime&&r<=s.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${r}ms"`),a=!1),i=s.startTime),a&&(o[n]={startTime:i,endTime:r}),t.options&&function(e,t,n){const r=t.params||{},i=re(e);i.length&&i.forEach(e=>{r.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const i=[];let o=!1,s=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(_e(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(_e(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=l&&(r++,c=n.offset=l),s=s||c<0||c>1,o=o||c<a,a=c,i.push(c),n});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&t.errors.push("Please ensure that all keyframe offsets are in order");const c=e.steps.length;let u=0;r>0&&r<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(u=1/(c-1));const h=c-1,d=t.currentTime,A=t.currentAnimateTimings,p=A.duration;return l.forEach((e,r)=>{const o=u>0?r==h?1:u*r:i[r],s=o*p;
1t.currentTime=d+A.delay+s,A.duration=s,this._validateStyleAst(e,t),e.offset=o,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:ue(this,te(e.animation),t),options:we(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:we(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:we(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[i,o]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(me,"")),[e=e.replace(/@\*/g,V).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,K),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+i:i,E(t.collectedStyles,t.currentQuerySelector,{});const s=ue(this,te(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:s,originalSelector:e.selector,options:we(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:W(e.timings,t.errors,!0);return{type:12,animation:ue(this,te(e.animation),t),timings:n,options:null}}}class be{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function _e(e){return!Array.isArray(e)&&"object"==typeof e}function we(e){var t;return e?(e=$(e)).params&&(e.params=(t=e.params)?$(t):null):e={},e}function Ce(e,t,n){return{duration:e,delay:t,easing:n}}function Se(e,t,n,r,i,o,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class Ee{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const Ie=new RegExp(":enter","g"),xe=new RegExp(":leave","g");function Te(e,t,n,r,i,o={},s={},a,l,c=[]){return(new Be).buildKeyframes(e,t,n,r,i,o,s,a,l,c)}class Be{buildKeyframes(e,t,n,r,i,o,s,a,l,c=[]){l=l||new Ee;const u=new Pe(e,t,l,r,i,c,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),ue(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(s).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([s],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[Se(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime;const i=null!=n.duration?G(n.duration):null,o=null!=n.delay?G(n.delay):null;return 0!==i&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),ue(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const i=e.options;if(i&&(i.params||i.delay)&&(r=t.createSubContext(i),r.transformIntoNewTimeline(),null!=i.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ke);const e=G(i.delay);r.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>ue(this,e,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?G(e.options.delay):0;e.steps.forEach(o=>{const s=t.createSubContext(e.options);i&&s.delayNextStep(i),ue(this,o,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}
vendor: 3,213 bytes, line 1
1),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return W(t.params?ie(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(e=>{o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},i=r.delay?G(r.delay):0;i&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ke);let o=n;const s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;let a=null;s.forEach((n,r)=>{t.currentQueryIndex=r;const s=t.createSubContext(e.options,n);i&&s.delayNextStep(i),n===t.element&&(a=s.currentTimeline),ue(this,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),s=o*(t.currentQueryTotal-1);let a=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;ue(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const ke={};class Pe{constructor(e,t,n,r,i,o,s,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ke,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Oe(this._driver,t,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=G(n.duration)),null!=n.delay&&(r.delay=G(n.delay));const i=n.params;if(i){let e=r.params;e||(e=this.options.params={}
1),Object.keys(i).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=ie(i[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const r=t||this.element,i=new Pe(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=ke,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new Fe(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,i,o){let s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(Ie,"."+this._enterClassName)).replace(xe,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),s.push(...t)}return i||0!=s.length||o.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),s}}class Oe{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Oe(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||s,this._currentKeyframe[e]=s}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&(this._previousKeyframe.easing=t);const i=r&&r.params||{},o=function(e,t){const n={};let r;return e.forEach(e=>{"*"===e?(r=r||Object.keys(t),r.forEach(e=>{n[e]=s})):Y(e,!1,n)}),n}(e,this._globalTimelineStyles);
1Object.keys(o).forEach(e=>{const t=ie(o[e],i,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:s),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],r=e._styleSummary[t];(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((i,o)=>{const a=Y(i,!0);Object.keys(a).forEach(n=>{const r=a[n];"!"==r?e.add(n):r==s&&t.add(n)}),n||(a.offset=o/this.duration),r.push(a)});const i=e.size?oe(e.values()):[],o=t.size?oe(t.values()):[];if(n){const e=r[0],t=$(e);e.offset=0,t.offset=1,r=[e,t]}return Se(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}}class Fe extends Oe{constructor(e,t,n,r,i,o,s=!1){super(e,t,o.delay),this.element=t,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=s,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],o=n+t,s=t/o,a=Y(e[0],!1);a.offset=0,i.push(a);const l=Y(e[0],!1);l.offset=Le(s),i.push(l);const c=e.length-1;for(let r=1;r<=c;r++){let s=Y(e[r],!1);s.offset=Le((t+s.offset*n)/o),i.push(s)}n=o,t=0,r="",e=i}return Se(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function Le(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class Me{}class De extends Me{normalizePropertyName(e,t){return ae(e)}normalizeStyleValue(e,t,n,r){let i="";const o=n.toString().trim();if(Ne[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&r.push(`Please provide a CSS unit value for ${e}:${n}`)}return o+i}}const Ne=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Re(e,t,n,r,i,o,s,a,l,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const Ue={};class je{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function(e,t,n,r,i){return e.some(e=>e(t,n,r,i))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){const r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o}build(e,t,n,r,i,o,s,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||Ue,d=this.buildStyles(n,s&&s.params||Ue,u),A=a&&a.params||Ue,p=this.buildStyles(r,A,u),f=new Set,g=new Map,m=new Map,v="void"===r,y={params:Object.assign(Object.assign({},h),A)},b=c?[]:Te(e,t,this.ast.animation,i,o,d,p,y,l,u);let _=0;if(b.forEach(e=>{_=Math.max(e.duration+e.delay,_)}),u.length)return Re(t,this._triggerName,n,r,v,d,p,[],[],g,m,_,u);b.forEach(e=>{const n=e.element,r=E(g,n,{});e.preStyleProps.forEach(e=>r[e]=!0);const i=E(m,n,{});
1e.postStyleProps.forEach(e=>i[e]=!0),n!==t&&f.add(n)});const w=oe(f.values());return Re(t,this._triggerName,n,r,v,d,p,b,w,g,m,_)}}class Qe{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},r=$(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const i=e;Object.keys(i).forEach(e=>{let o=i[e];o.length>1&&(o=ie(o,r,t)),n[e]=o})}}),n}}class He{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new Qe(e.style,e.options&&e.options.params||{})}),Ve(this.states,"true","1"),Ve(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new je(e,t,this.states))}),this.fallbackTransition=new je(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(i=>i.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Ve(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const qe=new Ee;class Ke{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],r=ve(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=r}_buildPlayer(e,t,n){const r=e.element,i=_(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const r=[],i=this._animations[e];let o;const a=new Map;if(i?(o=Te(this._driver,t,i,j,Q,{},{},n,qe,r),o.forEach(e=>{const t=E(a,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);a.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,s)})});const l=b(o.map(e=>{const t=a.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,r){const i=S(t,"","","");return w(this._getPlayer(e),n,i,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,t,r[0]||{});const i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const Ge="ng-animate-queued",ze="ng-animate-disabled",We=".ng-animate-disabled",$e=[],Ye={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Xe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Je{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(r=n?e.value:e)?r:null,n){const t=$(e);delete t.value,this.options=t}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Ze="void",et=new Je(Ze);class tt{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+e,lt(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var i;const o=E(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};o.push(s);const a=E(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(lt(e,H),lt(e,"ng-trigger-"+t),a[t]=et),()=>{this._engine.afterFlush(()=>{const e=o.indexOf(s);e>=0&&o.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,r=!0){const i=this._getTrigger(t),o=new rt(this.id,t,e);let s=this._engine.statesByElement.get(e);s||(lt(e,H),lt(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));let a=s[t];const l=new Je(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),s[t]=l,a||(a=et),l.value!==Ze&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const r=n[i];if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}return!0}(a.params,l.params)){const t=[],n=i.matchStyles(a.value,a.params,t),r=i.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{ee(e,n),Z(e,r)})}return}const c=E(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=i.matchTransition(a.value,l.value,e,l.params),h=!1;if(!u){if(!r)return;u=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:l,player:o,isFallbackTransition:h}),h||(lt(e,Ge),o.onStart(()=>{ct(e,Ge)})),o.onDone(()=>{let t=this.players.indexOf(o);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(o);e>=0&&n.splice(e,1)}}),this.players.push(o),c.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,V,!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,r){const i=this._engine.statesByElement.get(e);if(i){const o=[];
1if(Object.keys(i).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,Ze,r);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&b(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const r=new Set;t.forEach(t=>{const i=t.name;if(r.has(i))return;r.add(i);const o=this._triggers[i].fallbackTransition,s=n[i]||et,a=new Je(Ze),l=new rt(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:o,fromState:s,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)r=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{const r=e.__ng_removed;r&&r!==Ye||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){lt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const i=n.element,o=this._elementListeners.get(i);o&&o.forEach(t=>{if(t.name==n.triggerName){const r=S(i,n.triggerName,n.fromState.value,n.toState.value);r._data=e,w(n.player,t.phase,r,t.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,r=t.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class nt{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new tt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let r=0;r<e.length;r++){const i=n[e[r]].namespaceId;if(i){const e=this._fetchNamespace(i);e&&t.add(e)}}}return t}trigger(e,t,n,r){if(it(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!it(t))return;const i=t.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const r=this._fetchNamespace(e);
1r&&r.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),lt(e,ze)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ct(e,ze))}removeNode(e,t,n,r){if(it(t)){const i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,r,i){return it(t)?this._fetchNamespace(e).listen(t,n,r,i):()=>{}}_buildInstruction(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,V,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,K,!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return b(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Ye,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,We)&&this.markElementAsDisabled(e,!1),this.driver.query(e,We,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)lt(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?b(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new Ee,r=[],i=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(e=>{u.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)u.add(t[n])});const h=this.bodyNode,d=Array.from(this.statesByElement.keys()),A=at(d,this.collectedEnterElements),p=new Map;let f=0;A.forEach((e,t)=>{const n=j+f++;p.set(t,n),e.forEach(e=>lt(e,n))});const g=[],m=new Set,v=new Set;for(let s=0;s<this.collectedLeaveElements.length;s++){const e=this.collectedLeaveElements[s],t=e.__ng_removed;t&&t.setForRemoval&&(g.push(e),m.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>m.add(e)):v.add(e))}const y=new Map,_=at(d,Array.from(m));_.forEach((e,t)=>{const n=Q+f++;y.set(t,n),e.forEach(e=>lt(e,n))}),e.push(()=>{A.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>ct(e,n))}),_.forEach((e,t)=>{const n=y.get(t);e.forEach(e=>ct(e,n))}),g.forEach(e=>{this.processLeaveNode(e)})});const w=[],C=[];for(let s=this._namespaceList.length-1;s>=0;s--)this._namespaceList[s].drainQueuedTransitions(t).forEach(e=>{const t=e.player,i=e.element;if(w.push(t),this.collectedEnterElements.length){const e=i.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const s=!h||!this.driver.containsElement(h,i),u=y.get(i),d=p.get(i),A=this._buildInstruction(e,n,d,u,s);if(A.errors&&A.errors.length)C.push(A);else{if(s)return t.onStart(()=>ee(i,A.fromStyles)),t.onDestroy(()=>Z(i,A.toStyles)),void r.push(t);if(e.isFallbackTransition)return t.onStart(()=>ee(i,A.fromStyles)),t.onDestroy(()=>Z(i,A.toStyles)),void r.push(t);
1A.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(i,A.timelines),o.push({instruction:A,player:t,element:i}),A.queriedElements.forEach(e=>E(a,e,[]).push(t)),A.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=l.get(t);e||l.set(t,e=new Set),n.forEach(t=>e.add(t))}}),A.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let r=c.get(t);r||c.set(t,r=new Set),n.forEach(e=>r.add(e))})}});if(C.length){const e=[];C.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),w.forEach(e=>e.destroy()),this.reportError(e)}const S=new Map,I=new Map;o.forEach(e=>{const t=e.element;n.has(t)&&(I.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,S))}),r.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{E(S,t,[]).push(e),e.destroy()})});const x=g.filter(e=>dt(e,l,c)),T=new Map;st(T,this.driver,v,c,s).forEach(e=>{dt(e,l,c)&&x.push(e)});const B=new Map;A.forEach((e,t)=>{st(B,this.driver,new Set(e),l,"!")}),x.forEach(e=>{const t=T.get(e),n=B.get(e);T.set(e,Object.assign(Object.assign({},t),n))});const k=[],P=[],O={};o.forEach(e=>{const{element:t,player:o,instruction:s}=e;if(n.has(t)){if(u.has(t))return o.onDestroy(()=>Z(t,s.toStyles)),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);let e=O;if(I.size>1){let n=t;const r=[];for(;n=n.parentNode;){const t=I.get(n);if(t){e=t;break}r.push(n)}r.forEach(t=>I.set(t,e))}const n=this._buildAnimation(o.namespaceId,s,S,i,B,T);if(o.setRealPlayer(n),e===O)k.push(o);else{const t=this.playersByElement.get(e);t&&t.length&&(o.parentPlayer=b(t)),r.push(o)}}else ee(t,s.fromStyles),o.onDestroy(()=>Z(t,s.toStyles)),P.push(o),u.has(t)&&r.push(o)}),P.forEach(e=>{const t=i.get(e.element);if(t&&t.length){const n=b(t);e.setRealPlayer(n)}}),r.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let s=0;s<g.length;s++){const e=g[s],t=e.__ng_removed;if(ct(e,Q),t&&t.hasAnimation)continue;let n=[];if(a.size){let t=a.get(e);t&&t.length&&n.push(...t);let r=this.driver.query(e,K,!0);for(let e=0;e<r.length;e++){let t=a.get(r[e]);t&&t.length&&n.push(...t)}}const r=n.filter(e=>!e.destroyed);r.length?ut(this,e,r):this.processLeaveNode(e)}return g.length=0,k.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),k}elementContainsData(e,t){let n=!1;const r=t.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,i){let o=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(o=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||i==Ze;t.forEach(t=>{t.queued||(e||t.triggerName==r)&&o.push(t)})}}return(n||r)&&(o=o.filter(e=>!(n&&n!=e.namespaceId||r&&r!=e.triggerName))),o}_beforeAnimationBuild(e,t,n){const r=t.element,i=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:t.triggerName;for(const s of t.timelines){const e=s.element,a=e!==r,l=E(n,e,[]);this._getPreviousPlayers(e,a,i,o,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}ee(r,t.fromStyles)}_buildAnimation(e,t,n,r,i,o){const s=t.triggerName,a=t.element,l=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new g(t.duration,t.delay);const A=h!==a,p=function(e){const t=[];return ht(e,t),t}((n.get(h)||$e).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),f=i.get(h),m=o.get(h),v=_(0,this._normalizer,0,t.keyframes,f,m),y=this._buildPlayer(t,v,p);if(t.subTimeline&&r&&u.add(h),A){const t=new rt(e,s,h);t.setRealPlayer(y),l.push(t)}return y});l.forEach(e=>{E(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let r;if(e instanceof Map){if(r=e.get(t),r){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&e.delete(t)}}else if(r=e[t],r){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&delete e[t]}return r}(this.playersByQueriedElement,e.element,e))}
1),c.forEach(e=>lt(e,q));const d=b(h);return d.onDestroy(()=>{c.forEach(e=>ct(e,q)),Z(a,t.toStyles)}),u.forEach(e=>{E(r,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new g(e.duration,e.delay)}}class rt{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new g,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>w(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){E(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function it(e){return e&&1===e.nodeType}function ot(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function st(e,t,n,r,i){const o=[];n.forEach(e=>o.push(ot(e)));const s=[];r.forEach((n,r)=>{const o={};n.forEach(e=>{const n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=Xe,s.push(r))}),e.set(r,o)});let a=0;return n.forEach(e=>ot(e,o[a++])),s}function at(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const r=new Set(t),i=new Map;function o(e){if(!e)return 1;let t=i.get(e);if(t)return t;const s=e.parentNode;return t=n.has(s)?s:r.has(s)?1:o(s),i.set(e,t),t}return t.forEach(e=>{const t=o(e);1!==t&&n.get(t).push(e)}),n}function lt(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function ct(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function ut(e,t,n){b(n).onDone(()=>e.processLeaveNode(t))}function ht(e,t){for(let n=0;n<e.length;n++){const r=e[n];r instanceof m?ht(r.players,t):t.push(r)}}function dt(e,t,n){const r=n.get(e);if(!r)return!1;let i=t.get(e);return i?r.forEach(e=>i.add(e)):t.set(e,r),n.delete(e),!0}class At{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new nt(e,t,n),this._timelineEngine=new Ke(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,r,i){const o=e+"-"+r;let s=this._triggerCache[o];if(!s){const e=[],t=ve(this._driver,i,e);if(e.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);s=function(e,t){return new He(e,t)}(r,t),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(t,r,s)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[e,i]=I(n);this._timelineEngine.command(e,t,i,r)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,i){if("@"==n.charAt(0)){const[e,r]=I(n);return this._timelineEngine.listen(e,t,r,i)}return this._transitionEngine.listen(e,t,n,r,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function pt(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=gt(t[0]),t.length>1&&(r=gt(t[t.length-1]))):t&&(n=gt(t)),n||r?new ft(e,n,r):null}let ft=(()=>{class e{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Z(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Z(this._element,this._initialStyles),this._endStyles&&(Z(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ee(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),Z(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function gt(e){let t=null;const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=n[r];mt(i)&&(t=t||{},t[i]=e[i])}return t}function mt(e){return"display"===e||"position"===e}const vt="animation",yt="animationend";class bt{constructor(e,t,n,r,i,o,s){this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e
1=>this._handleCallback(e)}apply(){!function(e,t){const n=It(e,"").trim();n.length&&(function(e,t){let n=0;for(let r=0;r<e.length;r++)","===e.charAt(r)&&n++}(n),t=`${n}, ${t}`),Et(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),St(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){_t(this._element,this._name,"paused")}resume(){_t(this._element,this._name,"running")}setPosition(e){const t=wt(this._element,this._name);this._position=e*this._duration,Et(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),St(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=It(e,"").split(","),r=Ct(n,t);r>=0&&(n.splice(r,1),Et(e,"",n.join(",")))}(this._element,this._name))}}function _t(e,t,n){Et(e,"PlayState",n,wt(e,t))}function wt(e,t){const n=It(e,"");return n.indexOf(",")>0?Ct(n.split(","),t):Ct([n],t)}function Ct(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function St(e,t,n){n?e.removeEventListener(yt,t):e.addEventListener(yt,t)}function Et(e,t,n,r){const i=vt+t;if(null!=r){const t=e.style[i];if(t.length){const e=t.split(",");e[r]=n,n=e.join(",")}}e.style[i]=n}function It(e,t){return e.style[vt+t]||""}class xt{constructor(e,t,n,r,i,o,s,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+i,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new bt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:he(this.element,n))})}this.currentSnapshot=e}}class Tt extends g{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=N(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class Bt{constructor(){this._count=0}validateStyleProperty(e){return F(e)}matchesElement(e,t){return L(e,t)}containsElement(e,t){return M(e,t)}query(e,t,n){return D(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>N(e));let r=`@keyframes ${t} {\n`,i="";
1n.forEach(e=>{i=" ";const t=parseFloat(e.offset);r+=`${i}${100*t}% {\n`,i+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=`${i}animation-timing-function: ${n};\n`));default:return void(r+=`${i}${t}: ${n};\n`)}}),r+=`${i}}\n`}),r+="}\n";const o=document.createElement("style");return o.textContent=r,o}animate(e,t,n,r,i,o=[],s){const a=o.filter(e=>e instanceof xt),l={};le(n,r)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=ce(e,t,l));if(0==n)return new Tt(e,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,u,t);(function(e){var t;const n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(h);const d=pt(e,t),A=new xt(e,t,u,n,r,i,c,d);return A.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),A}}class kt{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:he(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Pt{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ot().toString()),this._cssKeyframesDriver=new Bt}validateStyleProperty(e){return F(e)}matchesElement(e,t){return L(e,t)}containsElement(e,t){return M(e,t)}query(e,t,n){return D(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,r,i,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);const l={},c=o.filter(e=>e instanceof kt);le(n,r)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=pt(e,t=ce(e,t=t.map(e=>Y(e,!1)),l));return new kt(e,t,a,u)}}function Ot(){return v()&&Element.prototype.animate||{}}var Ft=n(1116);let Lt=(()=>{class e extends o{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?c(e):e;return Nt(this._renderer,null,t,"register",[n]),new Mt(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](i.RendererFactory2),i["\u0275\u0275inject"](Ft.K0))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class Mt extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new Dt(this._id,e,t||{},this._renderer)}}class Dt{constructor(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return Nt(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function Nt(e,t,n,r,i){return e.setProperty(t,`@@${n}:${r}`,i)}const Rt="@",Ut="@.disabled";let jt=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>
1{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new Qt("",n,this.engine),this._rendererCache.set(n,e)),e}const r=t.id,i=t.id+"-"+this._currentId;this._currentId++,this.engine.register(i,e);const o=t=>{Array.isArray(t)?t.forEach(o):this.engine.registerTrigger(r,i,e,t.name,t)};return t.data.animation.forEach(o),new Ht(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](i.RendererFactory2),i["\u0275\u0275inject"](At),i["\u0275\u0275inject"](i.NgZone))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class Qt{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,r=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==Rt&&t==Ut?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class Ht extends Qt{constructor(e,t,n,r){super(t,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==Rt?"."==t.charAt(1)&&t==Ut?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==Rt){const r=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let i=t.substr(1),o="";return i.charAt(0)!=Rt&&([i,o]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(i)),this.engine.listen(this.namespaceId,r,i,o,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let Vt=(()=>{class e extends At{constructor(e,t,n){super(e.body,t,n)}ngOnDestroy(){this.flush()}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Ft.K0),i["\u0275\u0275inject"](U),i["\u0275\u0275inject"](Me))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const qt=new i.InjectionToken("AnimationModuleType"),Kt=[{provide:o,useClass:Lt},{provide:Me,useFactory:function(){return new De}},{provide:At,useClass:Vt},{provide:i.RendererFactory2,useFactory:function(e,t,n){return new jt(e,t,n)},deps:[r["\u0275DomRendererFactory2"],At,i.NgZone]}],Gt=[{provide:U,useFactory:function(){return"function"==typeof Ot()?new Pt:new Bt}},{provide:qt,useValue:"BrowserAnimations"},...Kt],zt=[{provide:U,useClass:R},{provide:qt,useValue:"NoopAnimations"},...Kt];let Wt=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?zt:Gt}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({providers:Gt,imports:[r.BrowserModule]}),e})();var $t=n(1462),Yt=n(878),Xt=n(1784),Jt=n(3982);function Zt(e,t){return(0,Jt.zg)(e,t,1)}var en=n(6673);function tn(e,t){return function(n){return n.lift(new nn(e,t))}}class nn{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new rn(e,this.predicate,this.thisArg))}}class rn extends en.L{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}var on=n(9996);class sn{}class an{}class ln{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>
vendor: 4,191 bytes, line 1
1{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),r=n.toLowerCase(),i=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof ln?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new ln;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof ln?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const i=e.value;if(i){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===i.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class cn{encodeKey(e){return un(e)}encodeValue(e){return un(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function un(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function hn(e){return`${e}`}class dn{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new cn,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const r=e.indexOf("="),[i,o]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],s=n.get(i)||[];s.push(o),n.set(i,s)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const r=e[n];Array.isArray(r)?r.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new dn({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEac
vendor: 5,232 bytes, line 1
1h(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(hn(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(hn(e.value));-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class An{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}keys(){return this.map.keys()}}function pn(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function fn(e){return"undefined"!=typeof Blob&&e instanceof Blob}function gn(e){return"undefined"!=typeof FormData&&e instanceof FormData}class mn{constructor(e,t,n,r){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new ln),this.context||(this.context=new An),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new dn,this.urlWithParams=t}serializeBody(){return null===this.body?null:pn(this.body)||fn(this.body)||gn(this.body)||"string"==typeof this.body?this.body:this.body instanceof dn?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||gn(this.body)?null:fn(this.body)?this.body.type||null:pn(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof dn?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){var t;const n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,a=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let l=e.headers||this.headers,c=e.params||this.params;const u=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),c)),new mn(n,r,o,{params:c,headers:l,context:u,reportProgress:a,responseType:i,withCredentials:s})}}var vn=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class yn{constructor(e,t=200,n="OK"){this.headers=e.headers||new ln,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class bn extends yn{constructor(e={}){super(e),this.type=vn.ResponseHeader}clone(e={}){return new bn({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class _n extends yn{constructor(e={}){super(e),this.type=vn.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new _n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class wn extends yn{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function Cn(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Sn=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof mn)r=e;else{let i,o;i=n.headers instanceof ln?n.headers:new ln(n.headers),n.params&&(o=n.params instanceof dn?n.params:new dn({fromObject:n.params})),r=new mn(e,t,void 0!==n.body?n.body:null,{headers:i,context:n.context,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=(0,Yt.of)(r).pipe(Zt(e=>this.handler.handle(e)));if(e instanceof mn||"events"===n.observe)return i;const o=i.pipe(tn(e=>e instanceof _n));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pi
1pe((0,on.U)(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return o.pipe((0,on.U)(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return o.pipe((0,on.U)(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return o.pipe((0,on.U)(e=>e.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new dn).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,Cn(n,t))}post(e,t,n={}){return this.request("POST",e,Cn(n,t))}put(e,t,n={}){return this.request("PUT",e,Cn(n,t))}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](sn))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();class En{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const In=new i.InjectionToken("HTTP_INTERCEPTORS");let xn=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const Tn=/^\)\]\}',?\n/;let Bn=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Xt.y(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const r=e.serializeBody();let i=null;const o=()=>{if(null!==i)return i;const t=1223===n.status?204:n.status,r=n.statusText||"OK",o=new ln(n.getAllResponseHeaders()),s=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return i=new bn({headers:o,status:t,statusText:r,url:s}),i},s=()=>{let{headers:r,status:i,statusText:s,url:a}=o(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let c=i>=200&&i<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(Tn,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=e,c&&(c=!1,l={error:u,text:l})}}c?(t.next(new _n({body:l,headers:r,status:i,statusText:s,url:a||void 0})),t.complete()):t.error(new wn({error:l,headers:r,status:i,statusText:s,url:a||void 0}))},a=e=>{const{url:r}=o(),i=new wn({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(i)};let l=!1;const c=r=>{l||(t.next(o()),l=!0);let i={type:vn.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===e.responseType&&n.responseText&&(i.partialText=n.responseText),t.next(i)},u=e=>{let n={type:vn.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),t.next({type:vn.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Ft.JF))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const kn=new i.InjectionToken("XSRF_COOKIE_NAME"),Pn=new i.InjectionToken("XSRF_HEADER_NAME");class On{}let Fn=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Ft.Mx)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Ft.K0),i["\u0275\u0275inject"](i.PLATFORM_ID),i["\u0275\u0275inject"](kn))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Ln=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](On),i["\u0275\u0275inject"](Pn))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Mn=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(In,[]);this.chain=e.reduceRight((e,t)=>new En(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](an),i["\u0275\u0275inject"](i.Injector))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Dn=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Ln,useClass:xn}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:kn,useValue:t.cookieName}:[],t.headerName?{provide:Pn,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({providers:[Ln,{provide:In,useExisting:Ln,multi:!0},{provide:On,useClass:Fn},{provide:kn,useValue:"XSRF-TOKEN"},{provide:Pn,useValue:"X-XSRF-TOKEN"}
1]}),e})(),Nn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({providers:[Sn,{provide:sn,useClass:Mn},Bn,{provide:an,useExisting:Bn}],imports:[[Dn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();var Rn=n(5959),Un=n(9764),jn=n(1906),Qn=n(45),Hn=n(6882);function Vn(e,t){return"function"==typeof t?n=>n.pipe(Vn((n,r)=>(0,Un.D)(e(n,r)).pipe((0,on.U)((e,i)=>t(n,e,r,i))))):t=>t.lift(new qn(e))}class qn{constructor(e){this.project=e}call(e,t){return t.subscribe(new Kn(e,this.project))}}class Kn extends Hn.Ds{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new Hn.IY(this),r=this.destination;r.add(n),this.innerSubscription=(0,Hn.ft)(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}var Gn=n(8489),zn=n(7570),Wn=n(3895),$n=n(9291);class Yn extends Rn.xQ{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new Xn(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let o;if(this.closed)throw new Wn.N;if(this.isStopped||this.hasError?o=zn.w.EMPTY:(this.observers.push(e),o=new $n.W(this,e)),r&&e.add(e=new Qn.ht(e,r)),t)for(let s=0;s<i&&!e.closed;s++)e.next(n[s]);else for(let s=0;s<i&&!e.closed;s++)e.next(n[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||Gn.c).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length;let o=0;for(;o<i&&!(e-r[o].time<n);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r}}class Xn{constructor(e,t){this.time=e,this.value=t}}function Jn(e,t,n){let r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},e=>e.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let i,o,s=0,a=!1,l=!1;return function(c){let u;s++,!i||a?(a=!1,i=new Yn(e,t,r),u=i.subscribe(this),o=c.subscribe({next(e){i.next(e)},error(e){a=!0,i.error(e)},complete(){l=!0,o=void 0,i.complete()}}),l&&(o=void 0)):u=i.subscribe(this),this.add(()=>{s--,u.unsubscribe(),u=void 0,o&&!l&&n&&0===s&&(o.unsubscribe(),o=void 0,i=void 0)})}}(r))}const Zn=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})(),er=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();var tr=n(653);function nr(e){return t=>0===e?(0,tr.c)():t.lift(new rr(e))}class rr{constructor(e){if(this.total=e,this.total<0)throw new er}call(e,t){return t.subscribe(new ir(e,this.total))}}class ir extends en.L{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function or(e=null){return t=>t.lift(new sr(e))}class sr{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new ar(e,this.defaultValue))}}class ar extends en.L{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function lr(e=hr){return t=>t.lift(new cr(e))}class cr{constructor(e){this.errorFactory=e}
1call(e,t){return t.subscribe(new ur(e,this.errorFactory))}}class ur extends en.L{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(bB){e=bB}this.destination.error(e)}}}function hr(){return new Zn}var dr=n(3392);function Ar(e,t){const n=arguments.length>=2;return r=>r.pipe(e?tn((t,n)=>e(t,n,r)):dr.y,nr(1),n?or(t):lr(()=>new Zn))}function pr(e,t){return t?Vn(()=>e,t):Vn(()=>e)}var fr=n(2893),gr=n(2346);const mr=new i.InjectionToken("angularfire2.auth.use-emulator"),vr=new i.InjectionToken("angularfire2.auth.settings"),yr=new i.InjectionToken("angularfire2.auth.tenant-id"),br=new i.InjectionToken("angularfire2.auth.langugage-code"),_r=new i.InjectionToken("angularfire2.auth.use-device-language"),wr=new i.InjectionToken("angularfire.auth.persistence");let Cr=(()=>{class e{constructor(e,t,r,i,o,s,a,l,c,u){const h=new gr.HU(i),d=(0,gr.ss)(h),A=new Rn.xQ,p=(0,Yt.of)(void 0).pipe((0,Qn.QV)(h.outsideAngular),Vn(()=>i.runOutsideAngular(()=>n.e(420).then(n.bind(n,7420)))),(0,on.U)(()=>(0,gr.on)(e,i,t)),(0,on.U)(e=>i.runOutsideAngular(()=>{const t=o,n=s;return(0,gr.sI)(`${e.name}.auth`,"AngularFireAuth",e,()=>{const r=i.runOutsideAngular(()=>e.auth());if(t&&r.useEmulator(`http://${t.join(":")}`),a&&(r.tenantId=a),r.languageCode=l,c&&r.useDeviceLanguage(),n)for(const[e,t]of Object.entries(n))r.settings[e]=t;return u&&r.setPersistence(u),r},[t,a,l,c,n,u])})),Jn({bufferSize:1,refCount:!1}));if((0,Ft.PM)(r))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,Yt.of)(null);else{p.pipe(Ar()).subscribe();const e=p.pipe(Vn(e=>e.getRedirectResult().then(e=>e,()=>null)),d,Jn({bufferSize:1,refCount:!1})),t=e=>new Xt.y(t=>({unsubscribe:i.runOutsideAngular(()=>e(t))})),n=p.pipe(Vn(e=>t(e.onAuthStateChanged.bind(e)))),r=p.pipe(Vn(e=>t(e.onIdTokenChanged.bind(e))));this.authState=e.pipe(pr(n),(0,fr.R)(h.outsideAngular),(0,Qn.QV)(h.insideAngular)),this.user=e.pipe(pr(r),(0,fr.R)(h.outsideAngular),(0,Qn.QV)(h.insideAngular)),this.idToken=this.user.pipe(Vn(e=>e?(0,Un.D)(e.getIdToken()):(0,Yt.of)(null))),this.idTokenResult=this.user.pipe(Vn(e=>e?(0,Un.D)(e.getIdTokenResult()):(0,Yt.of)(null))),this.credential=(0,jn.T)(e,A,this.authState.pipe(tn(e=>!e))).pipe((0,on.U)(e=>(null==e?void 0:e.user)?e:null),(0,fr.R)(h.outsideAngular),(0,Qn.QV)(h.insideAngular))}return(0,gr.pX)(this,p,i,{spy:{apply:(e,t,n)=>{(e.startsWith("signIn")||e.startsWith("createUser"))&&n.then(e=>A.next(e))}}})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](gr.Dh),i["\u0275\u0275inject"](gr.xv,8),i["\u0275\u0275inject"](i.PLATFORM_ID),i["\u0275\u0275inject"](i.NgZone),i["\u0275\u0275inject"](mr,8),i["\u0275\u0275inject"](vr,8),i["\u0275\u0275inject"](yr,8),i["\u0275\u0275inject"](br,8),i["\u0275\u0275inject"](_r,8),i["\u0275\u0275inject"](wr,8))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({factory:function(){return new e(i["\u0275\u0275inject"](gr.Dh),i["\u0275\u0275inject"](gr.xv,8),i["\u0275\u0275inject"](i.PLATFORM_ID),i["\u0275\u0275inject"](i.NgZone),i["\u0275\u0275inject"](mr,8),i["\u0275\u0275inject"](vr,8),i["\u0275\u0275inject"](yr,8),i["\u0275\u0275inject"](br,8),i["\u0275\u0275inject"](_r,8),i["\u0275\u0275inject"](wr,8))},token:e,providedIn:"any"}),e})();(0,gr.GT)(Cr,[{app:null,applyActionCode:null,checkActionCode:null,confirmPasswordReset:null,createUserWithEmailAndPassword:null,currentUser:null,fetchSignInMethodsForEmail:null,isSignInWithEmailLink:null,getRedirectResult:null,languageCode:null,settings:null,onAuthStateChanged:null,onIdTokenChanged:null,sendSignInLinkToEmail:null,sendPasswordResetEmail:null,setPersistence:null,signInAndRetrieveDataWithCredential:null,signInAnonymously:null,signInWithCredential:null,signInWithCustomToken:null,signInWithEmailAndPassword:null,signInWithPhoneNumber:null,signInWithEmailLink:null,signInWithPopup:null,signInWithRedirect:null,signOut:null,tenantId:null,updateCurrentUser:null,useDeviceLanguage:null,useEmulator:null,verifyPasswordResetCode:null}]);let Sr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({providers:[Cr]}),e})();var Er=n(4762),Ir=n(1858),xr=n(1225),Tr=n(7471);function Br(...e){return(0,Tr.J)(1)((0,Yt.of)(...e))}function kr(e){return function(t){const n=new Pr(e),r=t.lift(n);return n.caught=r}}class Pr{constructor(e){this.selector=e}call(e,t){return t.subscribe(new Or(e,this.selector,this.caught))}}class Or extends Hn.Ds{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new Hn.IY(this);this.add(r);const i=(0,Hn.ft)(n,r);i!==r&&this.add(i)}}}const Fr=new i.InjectionToken("angularfire2.messaging.vapid-key"),Lr=new i.InjectionToken("angularfire2.messaging.service-worker-registeration"),Mr=parseInt(Ir.Z.SDK_VERSION,10)<8;let Dr=(()=>{class e{constructor(e,t,r,i,o,s){const a=new gr.HU(i),l=s,c=(0,Yt.of)(void 0).pipe((0,fr.R)(a.outsideAngular),(0,Qn.QV)(a.insideAngular),Vn(()=>(0,Ft.PM)(r)?tr.E:n.e(995).then(n.bind(n,8995))),(0,on.U)(()=>(0,gr.on)(e,i,t)),Vn(e=>(0,gr.sI)(`${e.name}.messaging`,"AngularFireMessaging",e,()=>(0,Er.mG)(this,void 0,void 0,function*(){const t=e.messaging();return Mr&&(o&&t.usePublicVapidKey(o),l&&t.useServiceWorker(yield l)),t}),[o,l])),Jn({bufferSize:1,refCount:!1}));this.requestPermission=c.pipe((0,fr.R)(a.outsideAngular),(0,Qn.QV)(a.insideAngular),Vn(e=>Ir.Z.messaging.isSupported()?e.requestPermission():(0,xr._)("Not supported."))),this.getToken=c.pipe((0,fr.R)(a.outsideAngular),(0,Qn.QV)(a.insideAngular),Vn(e=>(0,Er.mG)(this,void 0,void 0,function*(){if(Ir.Z.messaging.isSupported()&&"granted"===Notification.permission){if(Mr)return yield e.getToken();{const t=l?yield l:null;return yield e.getToken({vapidKey:o,serviceWorkerRegistration:t})}}return null})));const u=new Xt.y(e=>{navigator.permissions.query({name:"notifications"}).then(t=>{t.onchange=()=>e.next()})}),h=c.pipe((0,fr.R)(a.outsideAngular),(0,Qn.QV)(a.insideAngular),pr(u),pr(this.getToken));return this.tokenChanges=c.pipe((0,fr.R)(a.outsideAngular),(0,Qn.QV)(a.insideAngular),Vn(()=>
1Ir.Z.messaging.isSupported()?Br(this.getToken,h):tr.E)),this.messages=c.pipe((0,fr.R)(a.outsideAngular),(0,Qn.QV)(a.insideAngular),Vn(e=>Ir.Z.messaging.isSupported()?new Xt.y(t=>e.onMessage(e=>t.next(e),e=>t.error(e),()=>t.complete())):tr.E)),this.requestToken=(0,Yt.of)(void 0).pipe((0,fr.R)(a.outsideAngular),(0,Qn.QV)(a.insideAngular),Vn(()=>this.requestPermission),kr(()=>(0,Yt.of)(null)),(0,Jt.zg)(()=>this.tokenChanges)),this.deleteToken=e=>c.pipe((0,fr.R)(a.outsideAngular),(0,Qn.QV)(a.insideAngular),Vn(t=>t.deleteToken(e||void 0)),or(!1)),(0,gr.pX)(this,c,i)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](gr.Dh),i["\u0275\u0275inject"](gr.xv,8),i["\u0275\u0275inject"](i.PLATFORM_ID),i["\u0275\u0275inject"](i.NgZone),i["\u0275\u0275inject"](Fr,8),i["\u0275\u0275inject"](Lr,8))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({factory:function(){return new e(i["\u0275\u0275inject"](gr.Dh),i["\u0275\u0275inject"](gr.xv,8),i["\u0275\u0275inject"](i.PLATFORM_ID),i["\u0275\u0275inject"](i.NgZone),i["\u0275\u0275inject"](Fr,8),i["\u0275\u0275inject"](Lr,8))},token:e,providedIn:"any"}),e})();(0,gr.GT)(Dr,[{deleteToken:null,getToken:null,onMessage:null,onBackgroundMessage:null,onTokenRefresh:null,requestPermission:null,setBackgroundMessageHandler:null,useServiceWorker:null,usePublicVapidKey:null}]);let Nr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({providers:[Dr]}),e})();function Rr(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function Ur(e,t){return function(n,r){t(n,r,e)}}function jr(e){return null!=e}function Qr(e,t){return jr(e)?e:t}function Hr(e){let t=[];return e.find((e,n,r)=>(t=r,!0)),t}function Vr(e){return e instanceof HTMLInputElement&&!e.readOnly||e instanceof HTMLTextAreaElement&&!e.readOnly||e.isContentEditable}function qr(e,t,n){return null===e?null===t:null!==t&&n(e,t)}function Kr(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function Gr(e,t){return function(n,r){t(n,r,e)}}function zr(e){return new Xt.y(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?(0,Un.D)(n):(0,tr.c)()).subscribe(t)})}var Wr=n(8470),$r=n(5024);function Yr(e,t,n,r){return(0,$r.m)(n)&&(r=n,n=void 0),r?Yr(e,t,n).pipe((0,on.U)(e=>(0,Wr.k)(e)?r(...e):r(e))):new Xt.y(r=>{Xr(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}function Xr(e,t,n,r,i){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const r=e;e.addEventListener(t,n,i),o=()=>r.removeEventListener(t,n,i)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const r=e;e.on(t,n),o=()=>r.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const r=e;e.addListener(t,n),o=()=>r.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,s=e.length;o<s;o++)Xr(e[o],t,n,r,i)}r.add(o)}var Jr=n(1055),Zr=n(6163);function ei(...e){const t=e[e.length-1];return(0,Zr.K)(t)?(e.pop(),n=>Br(e,n,t)):t=>Br(e,t)}function ti(e,t){return n=>n.lift(new ni(e,t))}class ni{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new ri(e,this.compare,this.keySelector))}}class ri extends en.L{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}const ii=new i.InjectionToken("An abstraction over global window object",{factory:()=>{const{defaultView:e}=(0,i.inject)(Ft.K0);if(!e)throw new Error("Window is not available");return e}}),oi=new i.InjectionToken("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{const{requestAnimationFrame:e,cancelAnimationFrame:t}=(0,i.inject)(ii);return new Xt.y(n=>{let r=NaN;const i=t=>{n.next(t),r=e(i)};return r=e(i),()=>{t(r)}}).pipe((0,Jr.B)())}}),si=(new i.InjectionToken("An abstraction over window.caches object",{factory:()=>(0,i.inject)(ii).caches}),new i.InjectionToken("An abstraction over window.CSS object",{factory:()=>(0,i.inject)(ii).CSS||{escape:e=>e,supports:()=>!1}})),ai=new i.InjectionToken("An abstraction over window.history object",{factory:()=>(0,i.inject)(ii).history}),li=(new i.InjectionToken("An abstraction over window.localStorage object",{factory:()=>(0,i.inject)(ii).localStorage}),new i.InjectionToken("An abstraction over window.location object",{factory:()=>(0,i.inject)(ii).location}),new i.InjectionToken("An abstraction over window.navigator object",{factory:()=>(0,i.inject)(ii).navigator})),ci=(new i.InjectionToken("An abstraction over window.navigator.connection object",{factory:()=>(0,i.inject)(li).connection||null}),new i.InjectionToken("Shared Observable based on `document visibility changed`",{factory:()=>{const e=(0,i.inject)(Ft.K0);return Yr(e,"visibilitychange").pipe(ei(0),(0,on.U)(()=>"hidden"!==e.visibilityState),ti(),(0,Jr.B)())}}),new i.InjectionToken("An abstraction over window.performance object",{factory:()=>(0,i.inject)(ii).performance}),new i.InjectionToken("An abstraction over window.sessionStorage object",{factory:()=>(0,i.inject)(ii).sessionStorage}),new i.InjectionToken("An abstraction over SpeechRecognition class",{factory:()=>{const e=(0,i.inject)(ii);return e.speechRecogniton||e.webkitSpeechRecognition||null}}),new i.InjectionToken("An abstraction over window.speechSynthesis object",{factory:()=>(0,i.inject)(ii).speechSynthesis}),new i.InjectionToken("An abstraction over window.navigator.userAgent object",{factory:()=>(0,i.inject)(li).userAgent}));var ui=n(6541),hi=n(8569),di=n(2293);function Ai(e=0,t,n){let r=-1;return(0,di.k)(t)?r=Number(t)<1?1:Number(t):(0,Zr.K)(t)&&(n=t),(0,Zr.K)(n)||(n=hi.P),new Xt.y(t=>{const i=(0,di.k)(e)?e:+e-n.now();return n.schedule(pi,i,{index:0,period:r,subscriber:t})})}function pi(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}class fi{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new gi(e,this.predicate,this.inclusive))}}class gi extends en.L{constructor(e,t,n){super(e),this.predicate=t,this.inclusive=n,this.index=0}_next(e){const t=this.destination;let n;try{n=this.predicate(e,this.index++)}catch(r){return void t.error(r)}this.nextOrComplete(e,n)}nextOrComplete(e,t){const n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}class mi{constructor(e,t){this.count=e,this.source=t}call(e,t){return t.subscribe(new vi(e,this.count,this.source))}}class vi extends en.L{constructor(e,t,n){super(e),this.count=t,this.source=n}complete(){if(!this.isStopped){const{source:e,count:t}=this;if(0===t)return super.complete();t>-1&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}}}function yi(e){return t=>t.lift(new bi(e))}class bi{constructor(e){this.value=e}call(e,t){return t.subscribe(new _i(e,this.value))}}class _i extends en.L{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}class wi{call(e,t){return t.subscribe(new Ci(e))}}class Ci extends en.L{_next(e){}}class Si extends en.L{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Ei extends en.L{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var Ii=n(6015);function xi(e,t,n,r,i=new Ei(e,n,r)){if(!i.closed)return t instanceof Xt.y?t.subscribe(i):(0,Ii.s)(t)(i)}function Ti(...e){return t=>{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new Bi(e,n))}}class Bi{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new ki(e,this.observables,this.project))}}class ki extends Si{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const r=t.length;this.values=new Array(r);for(let i=0;i<r;i++)this.toRespond.push(i);for(let i=0;i<r;i++)this.add(xi(this,t[i],void 0,i))}notifyNext(e,t,n){this.values[n]=t;const r=this.toRespond;if(r.length>0){const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}var Pi=n(4019);const Oi=()=>!1,Fi=new i.QueryList,Li=[],Mi=()=>{},Di=(e,t)=>e===t||function(e,t){return Array.isArray(e)&&Array.isArray(t)&&!e.length&&!t.length}(e,t),Ni=a("tuiParentAnimation",[h(":enter",[u({overflow:"hidden"}),A("@*",[d()],{optional:!0})]),h(":leave",[u({overflow:"hidden"}),A("@*",[d()],{optional:!0})])]),Ri=1e3/15,Ui=e=>"ownerSVGElement"in e?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,ji="\xa0";function Qi(e){if(!e.activeElement||!e.activeElement.shadowRoot)return e.activeElement;let t=e.activeElement.shadowRoot.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Hi(e,t=!0,n=!1){t?e.focus({preventScroll:n}):e.blur()}function Vi(e){const t=Qi(e);t instanceof HTMLElement&&Hi(t,!1)}function qi(e){if(e.hasAttribute("disabled")||"-1"===e.getAttribute("tabIndex"))return!1;if(e instanceof HTMLElement&&e.isContentEditable||"0"===e.getAttribute("tabIndex"))return!0;switch(e.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return e.hasAttribute("controls");case"INPUT":return"hidden"!==e.getAttribute("type");case"A":case"LINK":return e.hasAttribute("href");default:return!1}}function Ki(e){return!e.hasAttribute("disabled")&&("-1"===e.getAttribute("tabIndex")||qi(e))}function Gi(e,t=!1,n,r=!0){if(!n.ownerDocument)return null;const i=r?qi:Ki,o=n.ownerDocument.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,Ui,!1);for(o.currentNode=e;t?o.previousNode():o.nextNode();)if(o.currentNode instanceof HTMLElement&&(e=o.currentNode),i(e))return e;return null}function zi(e){return!!e&&!!e.ownerDocument&&Qi(e.ownerDocument)===e}function Wi(e){if(!e.ownerDocument||!e.contains)return!1;const t=Qi(e.ownerDocument);return null!==t&&e.contains(t)}function $i(e,t,n){for(e+=n;e>=0&&e<t.length;){if(Hi(t[e]),zi(t[e]))return;e+=n}}function Yi(e,t,n={}){return Yr(e,t,n)}function Xi(e=0){return(0,ui.z)(pr(Ai(e).pipe(yi(!1),ei(!0))),ti())}let Ji,Zi;function eo(e){const{ownerDocument:t}=e;if(!t)throw new Error("element does not have ownerDocument");return Yi(e,"mousedown").pipe(tn(({isTrusted:e})=>e),pr((n=t,(0,jn.T)(Yi(n,"mouseup"),Yi(n,"dragend"))).pipe(yi(!1),nr(1),ei(!0))));var n}function to(){return(0,Pi.b)(e=>{e.preventDefault()})}function no(e){return new Xt.y(t=>{if(!e.valueChanges)throw new Error("Control does not have valueChanges");e.valueChanges.pipe(ei(e.value)).subscribe(t)})}function ro(e){return(0,Pi.b)(()=>{e.markForCheck()})}function io(e){return t=>new Xt.y(n=>e.runOutsideAngular(()=>t.subscribe(n)))}function oo(e){return(0,ui.z)(io(e),function(e){return t=>new Xt.y(n=>t.subscribe({next:t=>e.run(()=>n.next(t)),error:t=>e.run(()=>n.error(t)),complete:()=>e.run(()=>n.complete())}))}(e))}const so={enabled:!1,get assert(){return this.enabled?Function.prototype.bind.call(console.assert,console):Mi}};
1function ao(e,t,n){return so.assert(!isNaN(e)),so.assert(!isNaN(t)),so.assert(!isNaN(n)),so.assert(n>=t),Math.min(n,Math.max(t,e))}function lo(e,t,n){return so.assert(!isNaN(e)),so.assert(!isNaN(t)),so.assert(!isNaN(n)),so.assert(t<n),e>=t&&e<n}function co(e,t,n){return so.assert(Number.isInteger(t)),so.assert(Number.isInteger(n)),so.assert(t<=n),isNaN(e)||e<=t?t:e>=n?n:Math.round(e)}function uo(e,t,n,r){return n?function(e,t,n){let r=e;for(;r!==t.parentElement;){if(Math.floor(r.scrollTop)>0&&!n||Math.ceil(r.scrollTop+r.clientHeight)<r.scrollHeight&&n)return!0;if(!r.parentElement)return!1;r=r.parentElement}return!1}(e,t,r):function(e,t,n){let r=e;for(;r!==t.parentElement;){if(Math.floor(r.scrollLeft)>0&&!n||Math.ceil(r.scrollLeft+r.clientWidth)<r.scrollWidth&&n)return!0;if(!r.parentElement)return!1;r=r.parentElement}return!1}(e,t,r)}function ho(e,t){return e.contains(t)||!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Ao(e,{bubbles:t=!1,cancelable:n=!1,detail:r=null}={},i){if("function"==typeof CustomEvent)return new CustomEvent(e,{bubbles:t,cancelable:n,detail:r});const o=i.createEvent("CustomEvent");return o.initCustomEvent(e,t,n,r),o}function po(e){return"composedPath"in e?e.composedPath()[0]:e.target}function fo(e,t="text/plain"){return"clipboardData"in e&&null!==e.clipboardData?e.clipboardData.getData(t)||e.clipboardData.getData("text/plain"):e.target.ownerDocument.defaultView.clipboardData.getData("text")}function go(e){return"getRootNode"in e&&e.isConnected?e.getRootNode():e.ownerDocument}function mo(e,t=!0){return null===e?null:t&&e.scrollHeight>e.clientHeight||!t&&e.scrollWidth>e.clientWidth?e:mo(e.parentElement,t)}function vo({target:e,currentTarget:t}){return e===t}class yo extends Rn.xQ{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Wn.N;return this._value}next(e){super.next(this._value=e)}}function bo(e){return t=>t.lift(new _o(e))}class _o{constructor(e){this.notifier=e}call(e,t){const n=new wo(e),r=(0,Hn.ft)(this.notifier,new Hn.IY(n));return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}class wo extends Hn.Ds{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Co(e){return t=>t.lift(new So(e))}class So{constructor(e){this.notifier=e}call(e,t){return t.subscribe(new Eo(e,this.notifier,t))}}class Eo extends Hn.Ds{constructor(e,t,n){super(e),this.notifier=t,this.source=n,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:e,retriesSubscription:t}=this;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:e}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=e,this}subscribeToRetries(){let e;this.notifications=new Rn.xQ;try{const{notifier:t}=this;e=t(this.notifications)}catch(bB){return super.complete()}this.retries=e,this.retriesSubscription=(0,Hn.ft)(e,new Hn.IY(this))}}const Io=new i.InjectionToken("Element currently being removed by AnimationEngine",{factory:()=>{var e;const t={onRemovalComplete:()=>{}},n=new yo(null),r=null!==(e=(0,i.inject)(At,i.InjectFlags.Optional))&&void 0!==e?e:t,{onRemovalComplete:o=t.onRemovalComplete}=r;return r.onRemovalComplete=(e,t)=>{n.next(e),o(e,t)},n.pipe(Vn(e=>Ai(0).pipe(yi(null),ei(e))),(0,Jr.B)())}}),xo=new i.InjectionToken("Active element on the document for ActiveZone",{factory:()=>{const e=(0,i.inject)(Io),t=(0,i.inject)(ii),n=(0,i.inject)(Ft.K0),r=Yi(t,"focusout"),o=Yi(t,"focusin"),s=Yi(t,"blur"),a=Yi(t,"mousedown"),l=Yi(t,"mouseup");return(0,jn.T)(r.pipe(bo(a),Co(()=>l),Ti(e),tn(([{target:e},t])=>function(e,t){var n;return!((null===(n=e.ownerDocument)||void 0===n?void 0:n.activeElement)===e||e.disabled||t&&t.contains(e))}(e,t)),(0,on.U)(([{relatedTarget:e}])=>e)),s.pipe((0,on.U)(()=>n.activeElement),tn(e=>!!e&&e.matches("iframe"))),o.pipe(Vn(e=>{const t=po(e),r=go(t);return r===n?(0,Yt.of)(t):function(e){return(0,jn.T)(Yi(e,"focusin").pipe((0,on.U)(({target:e})=>e)),Yi(e,"focusout").pipe((0,on.U)(({relatedTarget:e})=>e)))}(r)})),a.pipe(Vn(e=>n.activeElement&&n.activeElement!==n.body?r.pipe(nr(1),bo(Ai(0)),yi(po(e))):(0,Yt.of)(po(e))))).pipe(ti(),(0,Jr.B)())}}),To=new i.InjectionToken("A Renderer2 for global services",{factory:()=>(0,i.inject)(i.RendererFactory2).createRenderer(null,null)}),Bo=new i.InjectionToken("A stream of dialogs"),ko=new i.InjectionToken("A component that can be focused"),Po=/ipad|iphone|ipod/,Oo=new i.InjectionToken("iOS browser detection",{providedIn:"root",factory:()=>Po.test((0,i.inject)(ci).toLowerCase())}),Fo=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/,Lo=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/,Mo=new i.InjectionToken("Mobile browser detection",{providedIn:"root",factory:()=>Fo.test((0,i.inject)(ci).toLowerCase())||Lo.test((0,i.inject)(ci).substr(0,4).toLowerCase())}),Do=(new i.InjectionToken("Mobile browser that is not iOS (technically includes Windows Phone, Blackberry etc.)",{providedIn:"root",factory:()=>(0,i.inject)(Mo)&&!(0,i.inject)(Oo)}),new i.InjectionToken("A custom Sanitizer to sanitize source before inlining"));new i.InjectionToken("Detect if app is running under Cypress",{factory:()=>!!(0,i.inject)(ii).Cypress});var No=n(3103);function Ro(e,t=hi.P){var n;const r=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new Uo(r,t))}class Uo{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new jo(e,this.delay,this.scheduler))}}class jo extends en.L{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,r=e.scheduler,i=e.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const t=Math.max(0,n[0].time-r.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(jo.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new Qo(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(No.P.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(No.P.createComplete()),this.unsubscribe()}}class Qo{constructor(e,t){this.time=e,this.notification=t}}const Ho={leading:!0,trailing:!1};function Vo(e,t=hi.P,n=Ho){return r=>r.lift(new qo(e,t,n.leading,n.trailing))}class qo{constructor(e,t,n,r){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=r}call(e,t){return t.subscribe(new Ko(e,this.duration,this.scheduler,this.leading,this.trailing))}}class Ko extends en.L{constructor(e,t,n,r,i){super(e),this.duration=t,this.scheduler=n,this.leading=r,this.trailing=i,this._hasTrailingValue=!1,this._trailingValue=null}_next(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Go,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}function Go(e){const{subscriber:t}=e;t.clearThrottle()}let zo=(()=>{let e=class extends Rn.xQ{ngOnDestroy(){this.next(),this.complete()}};return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:function(t){return e.\u0275fac(t)}}),e})(),Wo=(()=>{let e=class{constructor(e,t){this.documentRef=e,this.renderer=t}addStyle(e,t){if(this.documentRef.head.querySelector(`style[${t}]`))return;const n=this.renderer.createElement("style");this.renderer.setProperty(n,"textContent",e),this.renderer.setAttribute(n,t,""),this.documentRef.head.appendChild(n)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Ft.K0),i["\u0275\u0275inject"](To))},e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:function(){return new e((0,i["\u0275\u0275inject"])(Ft.K0),(0,i["\u0275\u0275inject"])(To))},token:e,providedIn:"root"}),e=Kr([Gr(0,(0,i.Inject)(Ft.K0)),Gr(1,(0,i.Inject)(To))],e),e})(),$o=(()=>{let e=class extends Xt.y{constructor({nativeElement:e},t,n){super(e=>this.focusVisible$.subscribe(e)),this.focusVisible$=function(e){const t=Yi(e,"blur"),{ownerDocument:n}=e;if(!n)throw new Error("element does not have ownerDocument");return Zi&&Ji||(Ji=Yi(n,"mouseup",{capture:!0}).pipe(Xi(),ei(!1),Jn(1)),Zi=Yi(n,"mousedown",{capture:!0}).pipe(Xi(),ei(!1),Jn(1))),(0,jn.T)(Br(Yi(e,"focus").pipe(nr(1)),t.pipe(tn(()=>!zi(e)),nr(1),function(e){return e.lift(new wi)})).pipe(function(e=-1){return t=>
10===e?(0,tr.c)():t.lift(new mi(e<0?-1:e-1,t))}(),Ti(Zi,Ji,(e,t,n)=>t||n),tn(e=>!e))).pipe(pr(t.pipe(yi(!1),nr(1),ei(!0))),ti())}(e).pipe(ro(t),bo(n))}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](i.ElementRef),i["\u0275\u0275inject"](i.ChangeDetectorRef),i["\u0275\u0275inject"](zo))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:function(t){return e.\u0275fac(t)}}),e=Kr([Gr(0,(0,i.Inject)(i.ElementRef)),Gr(1,(0,i.Inject)(i.ChangeDetectorRef)),Gr(2,(0,i.Inject)(zo))],e),e})(),Yo=(()=>{let e=class{constructor(e,t){this.ngZone=t,this.documentEvents$=(0,jn.T)(Yi(e,"mousemove"),Yi(e,"touchend"))}createHovered$(e,t={passive:!0}){return(0,jn.T)(Yi(e,"mouseenter",t),Yi(e,"touchstart",t)).pipe(Vn(()=>(0,jn.T)(Yi(e,"mouseleave",t),this.documentEvents$.pipe(tn(t=>!e.contains(po(t))),oo(this.ngZone),nr(1))).pipe(yi(!1),ei(!0))),ti())}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Ft.K0),i["\u0275\u0275inject"](i.NgZone))},e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:function(){return new e((0,i["\u0275\u0275inject"])(Ft.K0),(0,i["\u0275\u0275inject"])(i.NgZone))},token:e,providedIn:"root"}),e=Kr([Gr(0,(0,i.Inject)(Ft.K0)),Gr(1,(0,i.Inject)(i.NgZone))],e),e})();var Xo;let Jo=(()=>{let e=Xo=class{generate(){return`tui_${Xo.autoId++}${Date.now()}`}};return e.\u0275fac=function(t){return new(t||e)},e.autoId=0,e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Zo=(()=>{let e=class extends Xt.y{constructor({nativeElement:e},t){super(e=>this.callback$.subscribe(e)),this.callback$=zr(()=>{const n=[t,e];for(;e.parentElement;)n.push(e=e.parentElement);return(0,jn.T)(...n.map(e=>Yi(e,"scroll")))})}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](i.ElementRef),i["\u0275\u0275inject"](ii))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:function(t){return e.\u0275fac(t)}}),e=Kr([Gr(0,(0,i.Inject)(i.ElementRef)),Gr(1,(0,i.Inject)(ii))],e),e})(),es=(()=>{let e=class extends Xt.y{constructor(e,{nativeElement:t},n,r,i,o){super(e=>this.obscured$.subscribe(e)),this.obscured$=(0,jn.T)((0,jn.T)(e,Yr(r,"resize")).pipe(Ro(0)),o.pipe(Vo(Ri))).pipe((0,on.U)(()=>function(e){const{ownerDocument:t}=e;if(!t||!t.defaultView)return null;const{innerWidth:n,innerHeight:r}=t.defaultView,i=go(e),o=e.getBoundingClientRect(),s=ao(Math.round(o.left)+2,0,n),a=ao(Math.round(o.top)+2,0,r),l=ao(Math.round(o.right)-2,0,n),c=ao(Math.round(o.bottom)-2,0,r),u=ao(Math.round(o.left+o.width/2),0,n),h=ao(Math.round(o.top+o.height/2),0,r),d=[i.elementFromPoint(u,a),i.elementFromPoint(u,c),i.elementFromPoint(s,h),i.elementFromPoint(l,h)].filter(jr);if(!d.length)return d;const A=d.filter(t=>!e.contains(t));return 4===A.length?A:null}(t)),ei(null),ti(),oo(n),bo(i))}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Zo,2),i["\u0275\u0275inject"](i.ElementRef),i["\u0275\u0275inject"](i.NgZone),i["\u0275\u0275inject"](ii),i["\u0275\u0275inject"](zo),i["\u0275\u0275inject"](oi))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:function(t){return e.\u0275fac(t)}}),e=Kr([Gr(0,(0,i.Inject)(Zo)),Gr(0,(0,i.Self)()),Gr(1,(0,i.Inject)(i.ElementRef)),Gr(2,(0,i.Inject)(i.NgZone)),Gr(3,(0,i.Inject)(ii)),Gr(4,(0,i.Inject)(zo)),Gr(5,(0,i.Inject)(oi))],e),e})(),ts=(()=>{let e=class{constructor(){this.cache=new Map}request(e){const t=this.cache.get(e);if(t)return t;const n=new Xt.y(t=>{const n=new XMLHttpRequest;return n.onreadystatechange=()=>{if(4===n.readyState){const e=n.responseType?n.response:n.responseText;200===n.status?(t.next(e),t.complete()):t.error(e)}},n.open("GET",e),n.send(),()=>{n.abort()}}).pipe(Jn(1));return this.cache.set(e,n),n}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})();function ns(e,...t){return(n,r)=>{const{name:i}=n.constructor,o=function(e,t){return`Default value for ${String(e)} was not provided in ${t}, error in Taiga UI Angular Kit`}(r,i),s=function(e,t){return`Undefined was passed as ${String(e)} to ${t}
1, which is invalid input, using default value:`}(r,i);Object.defineProperty(n,r,{get(){so.assert(!1,o)},set(n){const o=void 0!==n,a=function(e,t){return`Undefined was passed as default value for ${String(e)} to ${t}, error in Taiga UI Angular Kit`}(r,i);let l=n;so.assert(o,a),o&&e&&so.assert(e.call(this,n),`${String(r)} in ${i} received:`,n,...t),Object.defineProperty(this,r,{get:()=>l,set(o){const a=void 0!==o,c=n;so.assert(a,s,String(c)),a&&e&&so.assert(e.call(this,o),`${String(r)} in ${i} received:`,o,...t),l=a?o:c}})}})}}function rs(e,t,{get:n,enumerable:r,value:i}){if(n)return{enumerable:r,get(){const e=n.call(this);return Object.defineProperty(this,t,{enumerable:r,value:e}),e}};if("function"!=typeof i)throw new Error("tuiPure can only be used with functions or getters");const o=i;return{enumerable:r,get(){let e,n=[];const r=(...t)=>(n.length===t.length&&t.every((e,t)=>e===n[t])||(n=t,e=o.apply(this,t)),e);return Object.defineProperty(this,t,{value:r}),r}}}function is(e,...t){return(n,r,{configurable:i,enumerable:o,get:s,set:a})=>{const{name:l}=n.constructor;return{configurable:i,enumerable:o,get:s,set(n){void 0!==n&&e&&so.assert(e.call(this,n),`${String(r)} in ${l} received:`,n,...t),a&&void 0!==n?a.call(this,n):so.assert(void 0!==n,function(e,t){return`Undefined was passed as ${String(e)} to ${t}, setter will not be called`}(r,l))}}}}class os{constructor(e){this.internalDirectiveInstance=e}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}}let ss=(()=>{let e=class{constructor(e,t){e.createEmbeddedView(t,new os(this))}static ngTemplateContextGuard(e,t){return!0}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ViewContainerRef),i["\u0275\u0275directiveInject"](i.TemplateRef))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"}}),e=Kr([Gr(0,(0,i.Inject)(i.ViewContainerRef)),Gr(1,(0,i.Inject)(i.TemplateRef))],e),e})(),as=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();var ls=function(e){return e.AD="AD",e.AE="AE",e.AF="AF",e.AG="AG",e.AI="AI",e.AL="AL",e.AM="AM",e.AN="AN",e.AO="AO",e.AR="AR",e.AT="AT",e.AU="AU",e.AW="AW",e.AZ="AZ",e.BA="BA",e.BB="BB",e.BD="BD",e.BE="BE",e.BF="BF",e.BG="BG",e.BH="BH",e.BI="BI",e.BJ="BJ",e.BM="BM",e.BN="BN",e.BO="BO",e.BR="BR",e.BS="BS",e.BT="BT",e.BW="BW",e.BY="BY",e.BZ="BZ",e.CD="CD",e.CF="CF",e.CG="CG",e.CH="CH",e.CI="CI",e.CL="CL",e.CM="CM",e.CN="CN",e.CO="CO",e.CR="CR",e.CU="CU",e.CV="CV",e.CY="CY",e.CZ="CZ",e.DE="DE",e.DJ="DJ",e.DK="DK",e.DM="DM",e.DO="DO",e.DZ="DZ",e.EC="EC",e.EE="EE",e.EG="EG",e.ER="ER",e.ES="ES",e.ET="ET",e.FI="FI",e.FJ="FJ",e.FK="FK",e.FM="FM",e.FR="FR",e.GA="GA",e.GD="GD",e.GE="GE",e.GH="GH",e.GI="GI",e.GL="GL",e.GM="GM",e.GN="GN",e.GQ="GQ",e.GR="GR",e.GT="GT",e.GW="GW",e.GY="GY",e.HK="HK",e.HN="HN",e.HR="HR",e.HT="HT",e.HU="HU",e.ID="ID",e.IE="IE",e.IL="IL",e.IN="IN",e.IQ="IQ",e.IR="IR",e.IS="IS",e.IT="IT",e.JM="JM",e.JO="JO",e.JP="JP",e.KE="KE",e.KG="KG",e.KH="KH",e.KM="KM",e.KN="KN",e.KP="KP",e.KR="KR",e.KW="KW",e.KY="KY",e.KZ="KZ",e.LA="LA",e.LB="LB",e.LC="LC",e.LI="LI",e.LK="LK",e.LR="LR",e.LS="LS",e.LT="LT",e.LU="LU",e.LV="LV",e.LY="LY",e.MA="MA",e.MC="MC",e.MD="MD",e.ME="ME",e.MG="MG",e.MK="MK",e.ML="ML",e.MM="MM",e.MN="MN",e.MO="MO",e.MR="MR",e.MS="MS",e.MT="MT",e.MU="MU",e.MV="MV",e.MW="MW",e.MX="MX",e.MY="MY",e.MZ="MZ",e.NA="NA",e.NE="NE",e.NG="NG",e.NI="NI",e.NL="NL",e.NO="NO",e.NP="NP",e.NZ="NZ",e.OM="OM",e.PA="PA",e.PE="PE",e.PF="PF",e.PG="PG",e.PH="PH",e.PK="PK",e.PL="PL",e.PT="PT",e.PW="PW",e.PY="PY",e.QA="QA",e.RO="RO",e.RS="RS",e.RU="RU",e.RW="RW",e.SA="SA",e.SB="SB",e.SC="SC",e.SD="SD",e.SE="SE",e.SG="SG",e.SH="SH",e.SI="SI",e.SK="SK",e.SL="SL",e.SM="SM",e.SN="SN",e.SO="SO",e.SR="SR",e.ST="ST",e.SV="SV",e.SY="SY",e.SZ="SZ",e.TC="TC",e.TD="TD",e.TG="TG",e.TH="TH",e.TJ="TJ",e.TL="TL",e.TM="TM",e.TN="TN",e.TO="TO",e.TR="TR",e.TT="TT",e.TW="TW",e.TZ="TZ",e.UA="UA",e.UG="UG",e.UK="UK",e.UY="UY",e.UZ="UZ",e.VC="VC",e.VE="VE",e.VG="VG",e.VN="VN",e.VU="VU",e.WS="WS",e.YE="YE",e.ZA="ZA",e.ZM="ZM",e.ZW="ZW",e.US="US",e.CA="CA",e}({});const cs=Object.assign(Object.assign(Object.assign(Object.assign({},{months:["January","February","March","April","May","June","July","August","September","October","November","December"],close:"Close",nothingFoundMessage:"Nothing found",defaultErrorMessage:"Value is invali
1d",spinTexts:["Previous","Next"],shortWeekDays:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],countries:{[ls.AD]:"Andorra",[ls.AE]:"United Arab Emirates",[ls.AF]:"Afghanistan",[ls.AG]:"Antigua and Barbuda",[ls.AI]:"Anguilla",[ls.AL]:"Albania",[ls.AM]:"Armenia",[ls.AN]:"Netherlands Antilles",[ls.AO]:"Angola",[ls.AR]:"Argentina",[ls.AT]:"Austria",[ls.AU]:"Australia",[ls.AW]:"Aruba",[ls.AZ]:"Azerbaijan",[ls.BA]:"Bosnia and Herzegovina",[ls.BB]:"Barbados",[ls.BD]:"Bangladesh",[ls.BE]:"Belgium",[ls.BF]:"Burkina Faso",[ls.BG]:"Bulgaria",[ls.BH]:"Bahrain",[ls.BI]:"Burundi",[ls.BJ]:"Benin",[ls.BM]:"Bermuda",[ls.BN]:"Brunei Darussalam",[ls.BO]:"Bolivia",[ls.BR]:"Brazil",[ls.BS]:"Bahamas",[ls.BT]:"Bhutan",[ls.BW]:"Botswana",[ls.BY]:"Belarus",[ls.BZ]:"Belize",[ls.CA]:"Canada",[ls.CD]:"Dem. Rep. Congo (Kinshasa)",[ls.CF]:"Central African Republic",[ls.CG]:"Congo (Brazzaville)",[ls.CH]:"Switzerland",[ls.CI]:"Ivory Coast",[ls.CL]:"Chile",[ls.CM]:"Cameroon",[ls.CN]:"China",[ls.CO]:"Colombia",[ls.CR]:"Costa Rica",[ls.CU]:"Cuba",[ls.CV]:"Cape Verde",[ls.CY]:"Cyprus",[ls.CZ]:"Czech Republic",[ls.DE]:"Germany",[ls.DJ]:"Djibouti",[ls.DK]:"Denmark",[ls.DM]:"Dominica",[ls.DO]:"Dominican Republic",[ls.DZ]:"Algeria",[ls.EC]:"Ecuador",[ls.EE]:"Estonia",[ls.EG]:"Egypt",[ls.ER]:"Eritrea",[ls.ES]:"Spain",[ls.ET]:"Ethiopia",[ls.FI]:"Finland",[ls.FJ]:"Fiji",[ls.FK]:"Falkland Islands",[ls.FM]:"F.S. of Micronesia",[ls.FR]:"France",[ls.GA]:"Gabon",[ls.GD]:"Grenada",[ls.GE]:"Georgia",[ls.GH]:"Ghana",[ls.GI]:"Gibraltar",[ls.GL]:"Greenland",[ls.GM]:"Gambia",[ls.GN]:"Guinea",[ls.GQ]:"Equatorial Guinea",[ls.GR]:"Greece",[ls.GT]:"Guatemala",[ls.GW]:"Guinea-Bissau",[ls.GY]:"Guyana",[ls.HK]:"Hong Kong",[ls.HN]:"Honduras",[ls.HR]:"Croatia",[ls.HT]:"Haiti",[ls.HU]:"Hungary",[ls.ID]:"Indonesia",[ls.IE]:"Ireland",[ls.IL]:"Israel",[ls.IN]:"India",[ls.IQ]:"Iraq",[ls.IR]:"Iran",[ls.IS]:"Iceland",[ls.IT]:"Italy",[ls.JM]:"Jamaica",[ls.JO]:"Jordan",[ls.JP]:"Japan",[ls.KE]:"Kenya",[ls.KG]:"Kyrgyzstan",[ls.KH]:"Cambodia",[ls.KM]:"Comoros",[ls.KN]:"Saint Kitts and Nevis",[ls.KP]:"Korean PDR",[ls.KR]:"Rep. Korea",[ls.KW]:"Kuwait",[ls.KY]:"Cayman Islands",[ls.KZ]:"Kazakhstan",[ls.LA]:"Laos",[ls.LB]:"Lebanon",[ls.LC]:"Saint Lucia",[ls.LI]:"Liechtenstein",[ls.LK]:"Sri Lanka",[ls.LR]:"Liberia",[ls.LS]:"Lesotho",[ls.LT]:"Lithuania",[ls.LU]:"Luxembourg",[ls.LV]:"Latvia",[ls.LY]:"Libya",[ls.MA]:"Morocco",[ls.MC]:"Monaco",[ls.MD]:"Moldova",[ls.ME]:"Montenegro",[ls.MG]:"Madagascar",[ls.MK]:"Rep. of North Macedonia",[ls.ML]:"Mali",[ls.MM]:"Burma (Myanmar)",[ls.MN]:"Mongolia",[ls.MO]:"Macau",[ls.MR]:"Mauritania",[ls.MS]:"Montserrat",[ls.MT]:"Malta",[ls.MU]:"Mauritius",[ls.MV]:"Maldives",[ls.MW]:"Malawi",[ls.MX]:"Mexico",[ls.MY]:"Malaysia",[ls.MZ]:"Mozambique",[ls.NA]:"Namibia",[ls.NE]:"Niger",[ls.NG]:"Nigeria",[ls.NI]:"Nicaragua",[ls.NL]:"Netherlands",[ls.NO]:"Norway",[ls.NP]:"Nepal",[ls.NZ]:"New Zealand",[ls.OM]:"Oman",[ls.PA]:"Panama",[ls.PE]:"Peru",[ls.PF]:"French Polynesia (Tahiti)",[ls.PG]:"Papua New Guinea",[ls.PH]:"Philippines",[ls.PK]:"Pakistan",[ls.PL]:"Poland",[ls.PT]:"Portugal",[ls.PW]:"Palau",[ls.PY]:"Paraguay",[ls.QA]:"Qatar",[ls.RO]:"Romania",[ls.RS]:"Serbia",[ls.RU]:"Russia",[ls.RW]:"Rwanda",[ls.SA]:"Saudi Arabia",[ls.SB]:"Solomon Islands",[ls.SC]:"Seychelles",[ls.SD]:"Sudan",[ls.SE]:"Sweden",[ls.SG]:"Singapore",[ls.SH]:"Saint Helena",[ls.SI]:"Slovenia",[ls.SK]:"Slovakia",[ls.SL]:"Sierra Leone",[ls.SM]:"San Marino",[ls.SN]:"Senegal",[ls.SO]:"Somalia",[ls.SR]:"Suriname",[ls.ST]:"Sao Tome and Principe",[ls.SV]:"El Salvador",[ls.SY]:"Syrian Arab Republic",[ls.SZ]:"Swaziland",[ls.TC]:"Turks and Caicos",[ls.TD]:"Chad",[ls.TG]:"Togo",[ls.TH]:"Thailand",[ls.TJ]:"Tajikistan",[ls.TL]:"East Timor",[ls.TM]:"Turkmenistan",[ls.TN]:"Tunisia",[ls.TO]:"Tonga",[ls.TR]:"Turkey",[ls.TT]:"Trinidad and Tobago",[ls.TW]:"Taiwan",[ls.TZ]:"Tanzania",[ls.UA]:"Ukraine",[ls.UG]:"Uganda",[ls.UK]:"United Kingdom",[ls.US]:"USA",[ls.UY]:"Uruguay",[ls.UZ]:"Uzbekistan",[ls.VC]:"Saint Vincent and the Grenadines",[ls.VE]:"Venezuela",[ls.VG]:"British Virgin Islands",[ls.VN]:"Vietnam",[ls.VU]:"Vanuatu",[ls.WS]:"Samoa",[ls.YE]:"Yemen",[ls.ZA]:"South Africa",[ls.ZM]:"Zambia",[ls.ZW]:"Zimbabwe"}}),{cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",mobileCalendarTexts:["Choose day","Choose range"],range:["from","to"],countTexts:["Plus","Minus"],time:{"HH:MM":"HH:MM","HH:MM:SS":"HH:MM:SS","HH:MM:SS.MSS":"HH:MM:SS.MSS"},dateTexts:{DMY:"dd.mm.yyyy",MDY:"mm.dd.yyyy",YMD:"yyyy.mm.dd"},digitalInformationUnits:["B","KB","MB"],passwordTexts:["Show password","Hide password"],copyTexts:["Copy","Copied"],shortCalendarMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pagination:["Previous page","Next page"],fileTexts:{loadingError:"Loading error",preview:"Preview",remove:"Remove"},inputFileTexts:{defaultLabelSingle:"or drag\xa0it\xa0here",defaultLabelMultiple:"or drag\xa0them\xa0here",defaultLinkSingle:"Cho
1ose a file",defaultLinkMultiple:"Choose files",maxSizeRejectionReason:"File exceeds size ",formatRejectionReason:"Wrong file format",drop:"Drop file here",dropMultiple:"Drop files here"}}),{showHideText:"Show/Hide",paginationTexts:{pages:"Pages",linesPerPage:"Lines per page",of:"of"}}),{cardNumber:["Number","Card number"],cardExpiry:["Expiry","Card expiry"]}),us=new i.InjectionToken("Language for Taiga UI libraries i18n",{factory:()=>(0,Yt.of)(cs)});function hs(e){return()=>(0,i.inject)(us).pipe((0,on.U)(t=>t[e]))}const ds=()=>Li,As=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"],ps=/\d/,fs=/\D+/g;function gs(e,t,n=!1,r=!1,i=!1){let o=e?16:12;return t&&(o+=24),n&&(o+=24),r&&(o+=24),i&&(o+=40),o}const ms=["xs","s","m","l","xl","xxl"];function vs(e,t="s"){return ms.indexOf(e)>ms.indexOf(t)}const ys=new i.InjectionToken("Duration of all Taiga UI animations in ms",{factory:()=>300}),bs=new i.InjectionToken("Options for Taiga UI animations",{factory:()=>({params:{duration:(0,i.inject)(ys)}})}),_s=new i.InjectionToken("Flag to enable assertions across Taiga UI",{factory:()=>(0,i.isDevMode)()}),ws=new i.InjectionToken("Accessor for options"),Cs=new i.InjectionToken("DataList controller"),Ss=(new i.InjectionToken("Document or ShadowRoot"),new i.InjectionToken("Directive controlling TuiDropdownBoxComponent")),Es=new i.InjectionToken("ElementRef when you cannot use @Input for single time injection"),Is=new i.InjectionToken("Localized months names",{factory:hs("months")}),xs=new i.InjectionToken("i18n 'close' word",{factory:hs("close")}),Ts=new i.InjectionToken("i18n 'Nothing found' message",{factory:hs("nothingFoundMessage")}),Bs=(new i.InjectionToken("i18n of error message",{factory:hs("defaultErrorMessage")}),new i.InjectionToken("spin i18n texts",{factory:hs("spinTexts")})),ks=new i.InjectionToken("calendars i18n texts",{factory:hs("shortWeekDays")}),Ps=new i.InjectionToken("A key/value dictionary of icon names and src to be defined with TuiSvgService",{factory:()=>({})}),Os=new i.InjectionToken("A handler to retrieve USE id for icon by name",{factory:()=>function(e){const t="/"===e[e.length-1]?e:e+"/";return e=>e.startsWith("tuiIcon")?`${t}${e}.svg#${e}`:(e=>e.includes(".svg#")?e:`#${e}`)(e)}("assets/taiga-ui/icons/")}),Fs=new i.InjectionToken("Mode stream for private providers"),Ls=new i.InjectionToken("Content for tuiOption component"),Ms=Do,Ds=new i.InjectionToken("Scrollable container"),Ns=new i.InjectionToken("Appearance for inputs",{factory:()=>"textfield"}),Rs=new i.InjectionToken("Buffer token to pass NG_VALUE_ACCESSOR to a different Injector"),Us=new i.InjectionToken("The first day of the week index",{factory:()=>1}),js=e=>{const t=e.length-1;return[e[t],...e.slice(0,t)]},Qs=new i.InjectionToken("Ordered calendars i18n texts",{factory:()=>{const e=(0,i.inject)(Us);return(0,i.inject)(ks).pipe((0,on.U)(js),(0,on.U)(t=>[...t.slice(e),...t.slice(0,e)]))}});var Hs;let Vs=(()=>{let e=Hs=class{constructor(){this.hovered=!1,this.pressed=!1,this.focusVisible=!1,this.pseudoHovered=null,this.pseudoPressed=null,this.pseudoFocused=null,this.focusable=!0,this.nativeId="",this.focusedChange=new i.EventEmitter,this.pressedChange=new i.EventEmitter,this.hoveredChange=new i.EventEmitter,this.focusVisibleChange=new i.EventEmitter,this.autoIdString=`tui_interactive_${Hs.autoId++}${Date.now()}`}get computedDisabled(){return this.disabled}get computedHovered(){return!this.computedDisabled&&Qr(this.pseudoHovered,this.hovered)}get computedPressed(){return!this.computedDisabled&&Qr(this.pseudoPressed,this.pressed)}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get computedFocused(){return!this.computedDisabled&&Qr(this.pseudoFocused,this.focused)}get computedFocusVisible(){return!this.computedDisabled&&Qr(this.pseudoFocused,this.focusVisible)}get id(){return this.nativeId?this.nativeId:this.autoIdString}updateHovered(e){this.hovered!==e&&(this.hovered=e,this.hoveredChange.emit(e))}updatePressed(e){this.pressed!==e&&(this.pressed=e,this.pressedChange.emit(e))}updateFocused(e){this.focusedChange.emit(e)}updateFocusVisible(e){this.focusVisible!==e&&(this.focusVisible=e,this.focusVisibleChange.emit(e))}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,hostVars:10,hostBindings:function(e,t){2&e&&i["\u0275\u0275classProp"]("_disabled",t.computedDisabled)("_hovered",t.computedHovered)("_pressed",t.computedPressed)("_focused",t.computedFocused)("_focus-visible",t.computedFocusVisible)},inputs:{pseudoHovered:"pseudoHovered",pseudoPressed:"pseudoPressed",pseudoFocused:"pseudoFocused",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",pressedChange:"pressedChange",hoveredChange:"hoveredChange",focusVisibleChange:"focusVisibleChange"}}),e.autoId=0,Kr([ns()],e.prototype,"pseudoHovered",void 0),Kr([ns()],e.prototype,"pseudoPressed",void 0),Kr([ns()],e.prototype,"pseudoFocused",void 0),Kr([ns()],e.prototype,"focusable",void 0),Kr([ns()],e.prototype,"nativeId",void 0),e})(),qs=(()=>{let e=class extends Vs{constructor(e,t){super(),this.ngControl=e,this.changeDetectorRef=t,this.onTouched=Mi,this.onChange=Mi,this.fallbackValue=this.getFallbackValue(),this.destroy$=new Rn.xQ,this.readOnly=!1,this.pseudoInvali
1d=null,null===this.ngControl?so.assert(!1,`NgControl not injected in ${this.constructor.name}!\n`,"Use [(ngModel)] or [formControl] or formControlName for correct work."):this.ngControl.valueAccessor=this}get computedInvalid(){return!this.readOnly&&!this.disabled&&(null!==this.pseudoInvalid?this.pseudoInvalid:this.touched&&this.invalid)}get value(){return Qr(this.previousInternalValue,this.fallbackValue)}get safeCurrentValue(){return Qr(this.rawValue,this.fallbackValue)}get invalid(){return this.safeNgControlData(({invalid:e})=>e,!1)}get valid(){return this.safeNgControlData(({valid:e})=>e,!1)}get touched(){return this.safeNgControlData(({touched:e})=>e,!1)}get disabled(){return this.safeNgControlData(({disabled:e})=>e,!1)}get control(){return this.safeNgControlData(({control:e})=>e,null)}get computedName(){return this.controlName}get controlName(){return this.ngControl&&this.ngControl.name}get rawValue(){const{ngControl:e}=this;if(null!==e)return e instanceof $t.NgModel&&void 0===this.previousInternalValue?e.viewModel:e.value}ngOnInit(){this.ngControl&&this.ngControl.valueChanges&&this.ngControl.statusChanges&&(0,jn.T)(this.ngControl.valueChanges,this.ngControl.statusChanges).pipe(bo(this.destroy$)).subscribe(()=>{this.refreshLocalValue(this.safeCurrentValue)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkControlUpdate(){this.changeDetectorRef.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(){this.checkControlUpdate()}writeValue(e){this.refreshLocalValue(this.ngControl instanceof $t.NgModel&&void 0===this.previousInternalValue?this.ngControl.model:e)}updateFocused(e){e||this.controlMarkAsTouched(),super.updateFocused(e)}updateValue(e){this.disabled||this.valueIdenticalComparator(this.value,e)||(this.previousInternalValue=e,this.controlSetValue(e))}valueIdenticalComparator(e,t){return e===t}safeNgControlData(e,t){return Qr(this.ngControl&&e(this.ngControl),t)}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(e){this.onChange(e),this.checkControlUpdate()}refreshLocalValue(e){this.previousInternalValue=e,this.checkControlUpdate()}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"]($t.NgControl),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,hostVars:4,hostBindings:function(e,t){2&e&&i["\u0275\u0275classProp"]("_readonly",t.readOnly)("_invalid",t.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[i["\u0275\u0275InheritDefinitionFeature"]]}),Kr([ns()],e.prototype,"readOnly",void 0),Kr([ns()],e.prototype,"pseudoInvalid",void 0),e})(),Ks=(()=>{class e{constructor(){this.change$=new Rn.xQ}ngOnChanges(){this.change$.next()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,features:[i["\u0275\u0275NgOnChangesFeature"]]}),e})(),Gs=(()=>{let e=class extends Xt.y{constructor(e){super(e=>this.dialogs$.subscribe(e)),this.idService=e,this.dialogs$=new yo([])}open(e,t={}){return new Xt.y(n=>{const r=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{content:e,completeWith:e=>{n.next(e),n.complete()},$implicit:n,component:this.component,createdAt:Date.now(),id:this.idService.generate()});return this.dialogs$.next([...this.dialogs$.value,r]),()=>{this.dialogs$.next(this.dialogs$.value.filter(e=>e!==r))}})}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Jo))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:function(t){return e.\u0275fac(t)}}),e=Kr([Gr(0,(0,i.Inject)(Jo))],e),e})(),zs=(()=>{let e=class extends qs{getFallbackValue(){return null}};return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,features:[i["\u0275\u0275InheritDefinitionFeature"]]}),e})();function Ws(e,t){const n="edge/";return parseInt(t.slice(t.toLowerCase().indexOf(n)+n.length),10)<e}function $s(e){return e.toLowerCase().includes("trident")}function Ys(e){const t=e.ownerDocument,n=t&&t.defaultView;return!!n&&"safari"in n}function Xs(){return e=>e.lift(new Js)}class Js{call(e,t){return t.subscribe(new Zs(e))}}class Zs extends en.L{constructor(e){super(e),this.hasPrev=!1}_next(e){let t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}const ea=["polymorpheus-outlet",""];function ta(e,t){if(1&e&&(i["\u0275\u0275elementContainer"](0,6),i["\u0275\u0275pipe"](1,"injector")),2&e){i["\u0275\u0275nextContext"](2);const e=i["\u0275\u0275reference"](1),t=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("ngComponentOutlet",t.content.component)("ngComponentOutletInjector",i["\u0275\u0275pipeBind2"](1,2,t.content,e.context))}}function na(e,t){if(1&e&&i["\u0275\u0275template"](0,ta,2,5,"ng-container",5),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275property"]("ngIf",e.guard(e.content))}}function ra(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0,2,3),i["\u0275\u0275template"](2,na,1,1,"ng-template",null,4,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=i["\u0275\u0275reference"](3),t=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("ngTemplateOutlet",t.getTemplate(t.content,e))("ngTemplateOutletContext",t.context)}}function ia(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275text"](1),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate"](e.primitive)}}const oa=function(e){return{$implicit:e}};function sa(e,t){if(1&e&&i["\u0275\u0275elementContainer"](0,9),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275property"]("ngTemplateOutlet",e.template)("ngTemplateOutletContext",i["\u0275\u0275pureFunction1"](2,oa,e.primitive))}}function aa(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275template"](1,ia,2,1,"ng-container",7),i["\u0275\u0275template"](2,sa,1,4,"ng-template",null,8,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=i["\u0275\u0275reference"](3),t=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!t.template)("ngIfElse",e)}}const la=new i.InjectionToken("Context from polymorpheus-outlet");class ca{constructor(e,t=null){this.component=e,this.injector=t}createInjector(e,t){return i.Injector.create({parent:this.injector||e,providers:[{provide:la,useValue:t}]})}}let ua=(()=>{class e{constructor(e,t){this.template=e,this.changeDetectorRef=t,this.polymorpheus=""}check(){this.changeDetectorRef.markForCheck()}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.TemplateRef,2),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"]}),e})(),ha=(()=>{class e{constructor(){this.template=null,this.content=null}get primitive(){return!this.content||this.isAdvanced(this.content)?"":"function"==typeof this.content?this.content(this.context):this.content}isAdvanced(e){return function(e){return da(e)||e instanceof i.TemplateRef}(e)||Aa(e)}getTemplate(e,t){return Aa(e)?t:da(e)?e.template:e}guard(e){return Aa(e)}ngOnChanges({content:e,context:t}){const n=!e&&t&&this.outlet&&this.outlet._componentRef;n&&n.injector.get(i.ChangeDetectorRef).markForCheck()}ngDoCheck(){da(this.content)&&this.content.check()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["","polymorpheus-outlet",""]],contentQueries:function(e,t,n){if(1&e&&i["\u0275\u0275contentQuery"](n,i.TemplateRef,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.template=e.first)}},viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](Ft.$G,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.outlet=e.first)}},inputs:{content:"content",context:"context"},features:[i["\u0275\u0275NgOnChangesFeature"]],attrs:ea,decls:2,vars:2,consts:[["context","",3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],["context","",3,"ngTemplateOutlet","ngTemplateOutletContext"],["mutableContext","context"],["component",""],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngIf"],[3,"ngComponentOutlet","ngComponentOutletInjector"],[4,"ngIf","ngIfElse"],["child",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,t){1&e&&(i["\u0275\u0275template"](0,ra,4,2,"ng-container",0),i["\u0275\u0275template"](1,aa,4,2,"ng-container",1)),2&e&&(i["\u0275\u0275property"]("ngIf",t.isAdvanced(t.content)),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.primitive))},directives:function(){return[Ft.O5,pa,Ft.tP,Ft.$G]},pipes:function(){return[fa]},encapsulation:2,changeDetection:0}),e})();function da(e){return e instanceof ua}function Aa(e){return e instanceof ca}let pa=(()=>
1{class e{constructor(e){this.viewContainerRef=e}get context(){const e=this.viewContainerRef.get(0);return e&&e.context}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ViewContainerRef))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","context",""]],exportAs:["context"]}),e})(),fa=(()=>{class e{constructor(e){this.injector=e}transform(e,t){return e.createInjector(this.injector,t)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.Injector,16))},e.\u0275pipe=i["\u0275\u0275definePipe"]({name:"injector",type:e,pure:!0}),e})(),ga=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez]]}),e})();function ma(e,t){if(1&e&&(i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275namespaceHTML"](),i["\u0275\u0275element"](0,"div",6)),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275classProp"]("text_horizontal",e.isHorizontal),i["\u0275\u0275property"]("content",e.textContent)}}function va(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",2),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](1,"svg",3),i["\u0275\u0275element"](2,"circle",4),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](3,ma,1,3,"div",5),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275classProp"]("loader_horizontal",e.isHorizontal)("loader_inherit-color",e.inheritColor),i["\u0275\u0275attribute"]("data-tui-element-size",e.size),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngIf",e.hasText)}}const ya=["*"];let ba=(()=>{let e=class{constructor(e,t,n,r){this.documentRef=e,this.elementRef=t,this.userAgent=n,this.isIos=r,this.size="m",this.inheritColor=!1,this.overlay=!1,this.textContent=null,this.loading=!0,this.animatedWithJs=Ws(17,this.userAgent)||$s(this.userAgent),this.isApple=Ys(this.elementRef.nativeElement)||this.isIos}set showLoader(e){e&&this.focused&&Vi(this.documentRef),this.loading=e}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!vs(this.size)}get focused(){return Wi(this.elementRef.nativeElement)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Ft.K0),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](ci),i["\u0275\u0275directiveInject"](Oo))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-loader"]],hostVars:4,hostBindings:function(e,t){2&e&&i["\u0275\u0275classProp"]("_loading",t.loading)("_animated-with-js",t.animatedWithJs)},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},ngContentSelectors:ya,decls:3,vars:6,consts:[[1,"content",3,"disabled"],["class","loader",3,"loader_horizontal","loader_inherit-color",4,"ngIf"],[1,"loader"],["automation-id","tui-loader__loader","focusable","false","viewBox","0 0 100 100","xmlns","http://www.w3.org/2000/svg",1,"icon"],["cx","50","cy","50","r","50","stroke-dasharray","314",1,"circle"],["polymorpheus-outlet","","automation-id","tui-loader__text","class","text",3,"text_horizontal","content",4,"ngIf"],["polymorpheus-outlet","","automation-id","tui-loader__text",1,"text",3,"content"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275elementStart"](0,"fieldset",0),i["\u0275\u0275projection"](1),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](2,va,4,6,"div",1)),2&e&&(i["\u0275\u0275classProp"]("content_has-overlay",t.hasOverlay)("content_loading",t.loading),i["\u0275\u0275property"]("disabled",t.loading&&!t.isApple),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.loading))},directives:function(){return[Ft.O5,wa,ha]},styles:["@-webkit-keyframes tuiLoaderDashOffset{0%,100%{stroke-dashoffset:-66}50%{stroke-dashoffset:-314}}@keyframes tuiLoaderDashOffset{0%,100%{stroke-dashoffset:-66}50%{stroke-dashoffset:-314}}@-webkit-keyframes tuiLoaderRotate{0%{transform:rotate(0)}50%{transform:rotate(1turn)}100%{transform:rotate(3turn)}}@keyframes tuiLoaderRotate{0%{transform:rotate(0)}50%{transform:rotate(1turn)}100%{transform:rotate(3turn)}}[_nghost-%COMP%]{position:relative;display:flex}._loading[_nghost-%COMP%]{overflow:hidden}.content[_ngcontent-%COMP%]{z-index:0;min-width:100%;height:100%;padding:0;margin:0;border:none}.content_has-overlay[_ngcontent-%COMP%]{opacity:.3}.content_loading[_ngcontent-%COMP%]{pointer-events:none}.loader[_ngcontent-%COMP%]{position:relative;
1left:-100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100%;flex-shrink:0;-ms-grid-row-align:center;align-self:center;color:var(--tui-text-01);stroke:var(--tui-primary);-webkit-animation:tuiFadeIn var(--tui-duration);animation:tuiFadeIn var(--tui-duration)}.loader.loader_horizontal[_ngcontent-%COMP%]{flex-direction:row}.loader.loader_inherit-color[_ngcontent-%COMP%]{color:inherit;stroke:currentColor}.loader[data-tui-element-size=xs][_ngcontent-%COMP%]{font-size:.75rem;stroke-width:38}.loader[data-tui-element-size='s'][_ngcontent-%COMP%]{font-size:1rem;stroke-width:25}.loader[data-tui-element-size='m'][_ngcontent-%COMP%]{font-size:1.5rem;stroke-width:17}.loader[data-tui-element-size='l'][_ngcontent-%COMP%]{font-size:2.5rem;stroke-width:15}.loader[data-tui-element-size=xl][_ngcontent-%COMP%]{font-size:3.5rem;stroke-width:14}.loader[data-tui-element-size=xxl][_ngcontent-%COMP%]{font-size:5rem;stroke-width:10}.text[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1rem;color:inherit;max-width:100%;text-align:center;stroke-width:0}.text_horizontal[_ngcontent-%COMP%]{margin:0 0 0 1rem}.icon[_ngcontent-%COMP%]{display:block;min-width:1em;max-width:1em;min-height:1em;max-height:1em;margin:.25rem -.5em;border-radius:100%;overflow:hidden;transform:scale(1,-1)}[_nghost-%COMP%]:not(._animated-with-js)   .icon[_ngcontent-%COMP%]{-webkit-animation:3s linear infinite tuiLoaderRotate;animation:3s linear infinite tuiLoaderRotate}.circle[_ngcontent-%COMP%]{fill:none;stroke:inherit;stroke-width:inherit;-webkit-animation:3s linear infinite tuiLoaderDashOffset;animation:3s linear infinite tuiLoaderDashOffset}"],changeDetection:0}),Rr([ns()],e.prototype,"size",void 0),Rr([ns()],e.prototype,"inheritColor",void 0),Rr([ns()],e.prototype,"overlay",void 0),Rr([ns()],e.prototype,"textContent",void 0),Rr([is()],e.prototype,"showLoader",null),e=Rr([Ur(0,(0,i.Inject)(Ft.K0)),Ur(1,(0,i.Inject)(i.ElementRef)),Ur(2,(0,i.Inject)(ci)),Ur(3,(0,i.Inject)(Oo))],e),e})();const _a=314;let wa=(()=>{let e=class{constructor(e,t,n,r,i){this.elementRef=r,this.strokeDasharray=_a,this.strokeDashoffset=0,(Ws(17,i)||$s(i))&&e.pipe(io(t),Xs(),bo(n)).subscribe(([e,t])=>{this.animate(t-e)})}animate(e){this.strokeDasharray<0&&(this.strokeDasharray=628,this.strokeDashoffset=0);const t=Math.abs(this.strokeDasharray-_a),n=1e3/e,r=1+Math.floor(this.strokeDasharray/_a),{style:i}=this.elementRef.nativeElement;i.strokeDashoffset=this.strokeDashoffset.toString(),i.strokeDasharray=_a-t+" "+t,this.strokeDasharray-=_a/1.5/n,this.strokeDashoffset+=r*_a/1.5/n}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](oi),i["\u0275\u0275directiveInject"](i.NgZone),i["\u0275\u0275directiveInject"](zo),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](ci))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["circle"]],features:[i["\u0275\u0275ProvidersFeature"]([zo])]}),e=Rr([Ur(0,(0,i.Inject)(oi)),Ur(1,(0,i.Inject)(i.NgZone)),Ur(2,(0,i.Inject)(zo)),Ur(3,(0,i.Inject)(i.ElementRef)),Ur(4,(0,i.Inject)(ci))],e),e})(),Ca=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,ga]]}),e})();function Sa(e){return!(!e||"undefined"==typeof getComputedStyle)&&("fixed"===getComputedStyle(e).getPropertyValue("position")||Sa(e.parentElement))}const Ea='width="',Ia='height="',xa="<svg";let Ta=(()=>{let e=class extends yo{constructor(){super([]),this.directives=[]}add(e){this.next(this.value.concat(e))}remove(e){this.value.includes(e)&&this.next(this.value.filter(t=>t!==e))}register(e){this.directives=[...this.directives,e]}unregister(e){this.remove(e),this.directives=this.directives.filter(t=>t!==e)}showHintForId(e){const t=this.findDirectiveWithHintId(e);t&&this.add(t)}hideHintForId(e){const t=this.findDirectiveWithHintId(e);t&&this.remove(t)}findDirectiveWithHintId(e){return this.directives.find(t=>t.tuiHintId===e)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Ba=(()=>{let e=class{constructor(e,t,n){this.tuiSanitizer=e,this.sanitizer=t,this.items$=new yo(new Map),this.originals={},this.define(n)}define(e){const{value:t}=this.items$;Object.keys(e).forEach(n=>{this.defineIcon(n,e[n],t)}
1),this.items$.next(t)}getOriginal(e){return this.originals[e]||null}defineIcon(e,t,n){if(n.has(e))return;const r=this.parseSrc(e,t);r?(n.set(e,r),this.originals=Object.assign(Object.assign({},this.originals),{[e]:t})):so.assert(!1,"Unable to parse given SVG src")}parseSrc(e,t){return this.sanitize(function(e,t){if(e.includes(`id="${t}"`))return e;const n=e.substring(e.indexOf(xa)),r=n.substring(0,n.indexOf(">"));if(!r||!r.includes(Ea)||!r.includes(Ia))return n.replace(xa,`<svg xmlns="http://www.w3.org/2000/svg"><g id="${t}" xmlns="http://www.w3.org/2000/svg"><svg`)+"</g></svg>";const i=r.indexOf(Ea),o=r.indexOf(Ia),s=i+Ea.length,a=o+Ia.length,l=r.substring(s,r.indexOf('"',s)),c=r.substring(a,r.indexOf('"',a));return!c||!l||l.includes("%")||c.includes("%")?n.replace(xa,`<svg id="${t}"`):`<g id="${t}" xmlns="http://www.w3.org/2000/svg" transform="translate(-${parseInt(l,10)/2},-${parseInt(c,10)/2})"><svg x="50%" y="50%">${n}</svg></g>`}(t,e))}sanitize(e){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(i.SecurityContext.HTML,e):this.sanitizer.sanitize(i.SecurityContext.HTML,e))||"")}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Ms,8),i["\u0275\u0275inject"](r.DomSanitizer),i["\u0275\u0275inject"](Ps))},e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:function(){return new e((0,i["\u0275\u0275inject"])(Ms,8),(0,i["\u0275\u0275inject"])(r.DomSanitizer),(0,i["\u0275\u0275inject"])(Ps))},token:e,providedIn:"root"}),e=Rr([Ur(0,(0,i.Optional)()),Ur(0,(0,i.Inject)(Ms)),Ur(1,(0,i.Inject)(r.DomSanitizer)),Ur(2,(0,i.Inject)(Ps))],e),e})();function ka(e,t){if(1&e&&i["\u0275\u0275element"](0,"div",3),2&e){const e=i["\u0275\u0275nextContext"]().tuiLet;i["\u0275\u0275property"]("innerHTML",e,i["\u0275\u0275sanitizeHtml"])}}function Pa(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](0,"svg",4),i["\u0275\u0275listener"]("error",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"](2).onError()}),i["\u0275\u0275element"](1,"use"),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275attribute"]("href",e.use,null,"xlink")}}function Oa(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275template"](1,ka,1,1,"div",1),i["\u0275\u0275template"](2,Pa,2,1,"ng-template",null,2,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=i["\u0275\u0275reference"](3),t=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.isInnerHTML)("ngIfElse",e)}}let Fa=(()=>{let e=class{constructor(e,t,n,r,i,o,s,a,l){this.documentRef=e,this.windowRef=t,this.iconsPath=n,this.tuiSanitizer=r,this.svgService=i,this.staticRequestService=o,this.sanitizer=s,this.elementRef=a,this.userAgent=l,this.icon="",this.src$=new Yn(1),this.isIE=$s(this.userAgent),this.innerHTML$=this.src$.pipe(Vn(()=>this.isExternal?this.getExternalIcon(this.icon):(0,Yt.of)(this.getSafeHtml(this.icon))),ei(""))}set src(e){this.icon=e,this.src$.next()}get use(){return this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.iconsPath)}get isInnerHTML(){return this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return go(this.elementRef.nativeElement)!==this.documentRef}get isUse(){return this.use.includes(".svg#")}get isExternal(){return this.isUrl||this.isIE&&this.isUse||this.isCrossDomain}get isUrl(){return this.icon.endsWith(".svg")}get isSrc(){return function(e){const t=e.trim();return t.startsWith("<")&&t.endsWith(">")}(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){const{use:e,isUse:t,windowRef:n}=this;return t&&e.startsWith("http")&&!!n.origin&&!e.startsWith(n.origin)}onError(e="External icon is missing on the given URL"){const{icon:t}=this,n=Ao("tui-icon-error",{bubbles:!0,detail:{message:e,icon:t}},this.documentRef);so.assert(!1,e,t),this.elementRef.nativeElement.dispatchEvent(n)}resolveName(e,t){return t(e)}getSafeHtml(e){return this.isSrc?this.sanitize(e):this.process(e)}process(e){const t=this.svgService.getOriginal(e);return this.isName&&!t&&e&&this.onError("Attempted to use undefined named icon"),this.isShadowDOM&&this.isName?this.sanitize(t||""):""}sanitize(e){return this.tuiSanitizer?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(i.SecurityContext.HTML,e)||""):e}getExternalIcon(e){const t=e.includes(".svg")?e:this.use;return this.staticRequestService.request(t).pipe(kr(()=>(this.onError("Failed to load external SVG"),(0,Yt.of)(""))),(0,on.U)(e=>this.sanitize(e.replace("<svg",'<svg focusable="false"'))))}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Ft.K0),i["\u0275\u0275directiveInject"](ii),i["\u0275\u0275directiveInject"](Os),i["\u0275\u0275directiveInject"](Ms,8),i["\u0275\u0275directiveInject"](Ba),i["\u0275\u0275directiveInject"](ts),i["\u0275\u0275directiveInject"](r.DomSanitizer),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-svg"]],inputs:{src:"src"},decls:2,vars:3,consts:[[4,"tuiLet"],["class","src",3,"innerHTML",4,"ngIf","ngIfElse"],["useTemplate",""],[1,"src",3,"innerHTML"],["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","focusable","false","width","100%","height","100%",3,"error"]],template:function(e,t){1&e&&(i["\u0275\u0275template"](0,Oa,4,2,"ng-container",0),i["\u0275\u0275pipe"](1,"async")),2&e&&i["\u0275\u0275property"]("tuiLet",i["\u0275\u0275pipeBind1"](1,1,t.innerHTML$))},directives:[ss,Ft.O5],pipes:[Ft.Ov],styles:["[_nghost-%COMP%]{display:inline-block;vertical-align:middle;flex-shrink:0;line-height:0;height:1.5rem;width:1.5rem;fill:currentColor}.src[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center}"],changeDetection:0}),Rr([is()],e.prototype,"src",null),Rr([rs],e.prototype,"resolveName",null),e=Rr([Ur(0,(0,i.Inject)(Ft.K0)),Ur(1,(0,i.Inject)(ii)),Ur(2,(0,i.Inject)(Os)),Ur(3,(0,i.Optional)()),Ur(3,(0,i.Inject)(Ms)),Ur(4,(0,i.Inject)(Ba)),Ur(5,(0,i.Inject)(ts)),Ur(6,(0,i.Inject)(r.DomSanitizer)),Ur(7,(0,i.Inject)(i.ElementRef)),Ur(8,(0,i.Inject)(ci))],e),e})(),La=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,as]]}),e})(),Ma=(()=>{let e=class extends Ks{constructor(){super(...arguments),this.mode=null}};return e.\u0275fac=function(){let t;
1return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiMode",""]],inputs:{mode:["tuiMode","mode"]},features:[i["\u0275\u0275InheritDefinitionFeature"]]}),e})(),Da=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();function Na(e,t,n){return e.change$.pipe(ro(t),bo(n)).subscribe(),e}const Ra={provide:Fs,deps:[[new i.Optional,Ma],i.ElementRef],useFactory:function(e,{nativeElement:t}){const n=e?e.change$.pipe(ei(null),(0,on.U)(()=>e.mode)):tr.E;return t["$.data-mode.attr"]=n}},Ua=["*"];let ja=(()=>{let e=class{constructor(e,t){this.isMobile=e,this.mode$=t,this.disabled=!1,this.readOnly=!1,this.hovered=!1,this.pressed=!1,this.focused=!1,this.invalid=!1,this.appearance=""}get computedInvalid(){return!this.disabled&&!this.readOnly&&this.invalid}get computedFocused(){return this.focused&&!this.disabled}get interactiveState(){return this.disabled?"disabled":this.readOnly?"readonly":this.pressed&&!this.isMobile?"pressed":this.hovered&&!this.isMobile?"hovered":null}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Mo),i["\u0275\u0275directiveInject"](Fs))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-wrapper"]],hostVars:6,hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("$.data-mode.attr",function(){return t.mode$}),2&e&&(i["\u0275\u0275attribute"]("data-appearance",t.appearance)("data-state",t.interactiveState),i["\u0275\u0275classProp"]("_invalid",t.computedInvalid)("_focused",t.computedFocused))},inputs:{disabled:"disabled",readOnly:"readOnly",hovered:"hovered",pressed:"pressed",focused:"focused",invalid:"invalid",appearance:"appearance"},features:[i["\u0275\u0275ProvidersFeature"]([Ra])],ngContentSelectors:Ua,decls:1,vars:0,template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275projection"](0))},styles:["[_nghost-%COMP%]{transition-property:color,background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:relative;display:block;height:100%;width:100%;text-align:left;border-radius:inherit}[_nghost-%COMP%]:after{transition-property:box-shadow;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;border:1px solid currentColor;pointer-events:none;color:transparent}._focused[_nghost-%COMP%]:after{border-width:2px;color:var(--tui-focus)}[data-state=disabled][_nghost-%COMP%]{pointer-events:none}"],changeDetection:0}),e=Rr([Ur(0,(0,i.Inject)(Mo)),Ur(1,(0,i.Inject)(Fs))],e),e})(),Qa=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();const Ha=["tuiButton",""];function Va(e,t){1&e&&i["\u0275\u0275element"](0,"tui-svg",6),2&e&&i["\u0275\u0275property"]("src",t.$implicit)}function qa(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"span",5),i["\u0275\u0275template"](1,Va,1,1,"ng-template"),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("content",e.icon)}}function Ka(e,t){1&e&&i["\u0275\u0275element"](0,"tui-svg",6),2&e&&i["\u0275\u0275property"]("src",t.$implicit)}function Ga(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"span",7),i["\u0275\u0275template"](1,Ka,1,1,"ng-template"),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("content",e.iconRight)}}function za(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-loader",8),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("size",e.loaderSize)("inheritColor",!0)}}const Wa=["*"];var $a;let Ya=(()=>{let e=$a=class extends Vs{constructor(e,t,n,r,i){super(),this.elementRef=e,this.appearance="primary",this.disabled=!1,this.icon="",this.iconRight="",this.shape=null,this.showLoader=!1,this.size="l",n.createHovered$(e.nativeElement).pipe(ro(i),bo(r)).subscribe(e=>{this.updateHovered(e)}),eo(e.nativeElement).pipe(ro(i),bo(r)).subscribe(e=>{this.updatePressed(e)}),t.subscribe(e=>{this.updateFocusVisible(e)})}get nativeFocusableElement(){return this.nativeDisabled?null:this.elementRef.nativeElement}get focused(){return!this.showLoader&&zi(this.elementRef.nativeElement)}get loaderSize(){return"l"===this.size||"xl"===this.size?"m":"s"}get nativeDisabled(){return this.computedDisabled||this.showLoader?"":null}get tabIndex(){return this.focusable?0:-1}
1onFocused(e){this.updateFocused(e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"]($o),i["\u0275\u0275directiveInject"](Yo),i["\u0275\u0275directiveInject"](zo),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["button","tuiButton",""],["button","tuiIconButton",""],["a","tuiButton",""],["a","tuiIconButton",""]],hostVars:7,hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("focusin",function(){return t.onFocused(!0)})("focusout",function(){return t.onFocused(!1)}),2&e&&(i["\u0275\u0275hostProperty"]("tabIndex",t.tabIndex),i["\u0275\u0275attribute"]("data-appearance",t.appearance)("data-tui-host-shape",t.shape)("data-tui-host-size",t.size)("disabled",t.nativeDisabled),i["\u0275\u0275classProp"]("_loading",t.showLoader))},inputs:{appearance:"appearance",disabled:"disabled",icon:"icon",iconRight:"iconRight",shape:"shape",showLoader:"showLoader",size:"size"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ko,useExisting:(0,i.forwardRef)(()=>$a)},zo,$o]),i["\u0275\u0275InheritDefinitionFeature"]],attrs:Ha,ngContentSelectors:Wa,decls:6,vars:8,consts:[[1,"wrapper",3,"appearance","hovered","pressed","disabled","focused"],[1,"content"],["class","left","polymorpheus-outlet","",3,"content",4,"ngIf"],["class","right","polymorpheus-outlet","",3,"content",4,"ngIf"],["class","loader",3,"size","inheritColor",4,"ngIf"],["polymorpheus-outlet","",1,"left",3,"content"],[1,"icon",3,"src"],["polymorpheus-outlet","",1,"right",3,"content"],[1,"loader",3,"size","inheritColor"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275elementStart"](0,"tui-wrapper",0),i["\u0275\u0275elementStart"](1,"span",1),i["\u0275\u0275template"](2,qa,2,1,"span",2),i["\u0275\u0275projection"](3),i["\u0275\u0275template"](4,Ga,2,1,"span",3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](5,za,1,2,"tui-loader",4),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("appearance",t.appearance)("hovered",t.computedHovered)("pressed",t.computedPressed)("disabled",t.computedDisabled)("focused",t.computedFocusVisible),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.icon),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.iconRight),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.showLoader))},directives:[ja,Ft.O5,ha,Fa,ba],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:0 0;font-size:inherit;line-height:inherit;font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:inline-block;flex-shrink:0;vertical-align:top;border-radius:var(--tui-radius-m);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;font-weight:700;outline:0}[disabled][_nghost-%COMP%]{pointer-events:none}[tuiIconButton][_nghost-%COMP%]   .left[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%]   .right[_ngcontent-%COMP%]{margin:0}[data-tui-host-shape=rounded][_nghost-%COMP%]{border-radius:6.25rem}[data-tui-host-size=xs][_nghost-%COMP%]{height:var(--tui-height-xs);font-weight:400}[data-tui-host-size=xs][data-tui-host-shape=square][_nghost-%COMP%], [data-tui-host-size=xs][tuiIconButton][_nghost-%COMP%]{height:var(--tui-height-xs);width:var(--tui-height-xs)}[data-tui-host-size='s'][_nghost-%COMP%]{height:var(--tui-height-s);font-weight:400}[data-tui-host-size='s'][data-tui-host-shape=square][_nghost-%COMP%], [data-tui-host-size='s'][tuiIconButton][_nghost-%COMP%]{height:var(--tui-height-s);width:var(--tui-height-s)}[data-tui-host-size='m'][_nghost-%COMP%]{height:var(--tui-height-m);font-size:.9375rem}[data-tui-host-size='m'][data-tui-host-shape=square][_nghost-%COMP%], [data-tui-host-size='m'][tuiIconButton][_nghost-%COMP%]{height:var(--tui-height-m);width:var(--tui-height-m)}[data-tui-host-size='l'][_nghost-%COMP%]{height:var(--tui-height-l);font-size:.9375rem}[data-tui-host-size='l'][data-tui-host-shape=square][_nghost-%COMP%], [data-tui-host-size='l'][tuiIconButton][_nghost-%COMP%]{height:var(--tui-height-l);width:var(--tui-height-l)}[data-tui-host-size=xl][_nghost-%COMP%]{height:3.75rem;font-size:.9375rem}[data-tui-host-size=xl][data-tui-host-shape=square][_nghost-%COMP%], [data-tui-host-size=xl][tuiIconButton][_nghost-%COMP%]{height:3.75rem;width:3.75rem}.loader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;cursor:default}.left[_ngcontent-%COMP%]{margin:0 .5rem 0 -.25rem}.right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .5rem}.icon[_ngcontent-%COMP%]{display:block}[data-tui-host-size='s'][_nghost-%COMP%]   .icon[_ngcontent-%COMP%], [data-tui-host-size=xs][_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{width:1rem;height:1rem}[tuiIconButton][_nghost-%COMP%]   .icon[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%]   .left[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%]   .right[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;align-items:center;justify-content:center}.wrapper[_ngcontent-%COMP%]{position:relative;z-index:0;box-sizing:border-box;
1cursor:pointer}[data-tui-host-size=xs][_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]{padding:0 .5rem}[data-tui-host-size='s'][_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]{padding:0 .75rem}[data-tui-host-size='m'][_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]{padding:0 1.5rem}[data-tui-host-size='l'][_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]{padding:0 2.25rem}[data-tui-host-size=xl][_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]{padding:0 2.5rem}[data-tui-host-shape=square][_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]{padding:0}.content[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center;text-align:center}._loading[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{opacity:0}"],changeDetection:0}),Rr([ns()],e.prototype,"appearance",void 0),Rr([ns()],e.prototype,"disabled",void 0),Rr([ns()],e.prototype,"icon",void 0),Rr([ns()],e.prototype,"iconRight",void 0),Rr([ns()],e.prototype,"shape",void 0),Rr([ns()],e.prototype,"showLoader",void 0),Rr([ns()],e.prototype,"size",void 0),e=$a=Rr([Ur(0,(0,i.Inject)(i.ElementRef)),Ur(1,(0,i.Inject)($o)),Ur(2,(0,i.Inject)(Yo)),Ur(3,(0,i.Inject)(zo)),Ur(4,(0,i.Inject)(i.ChangeDetectorRef))],e),e})(),Xa=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,ga,Qa,La,Ca]]}),e})();function Ja(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-svg",3),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("src",e.icon)}}function Za(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"button",4),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().close.emit()}),i["\u0275\u0275pipe"](1,"async"),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("title",i["\u0275\u0275pipeBind1"](1,1,e.closeWord$))}}const el=["*"],tl={info:"tuiIconInfo",success:"tuiIconCheckCircle",error:"tuiIconCancel",warning:"tuiIconAttention"};let nl=(()=>{let e=class{constructor(e){this.closeWord$=e,this.hasIcon=!0,this.status="info",this.close=new i.EventEmitter}get icon(){return tl[this.status]}get hasClose(){return!!this.close.observers.length}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](xs))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-notification"]],hostVars:5,hostBindings:function(e,t){2&e&&(i["\u0275\u0275attribute"]("data-tui-host-status",t.status),i["\u0275\u0275classProp"]("_has-icon",t.hasIcon)("_has-close-button",t.hasClose))},inputs:{hasIcon:"hasIcon",status:"status"},outputs:{close:"close"},ngContentSelectors:el,decls:4,vars:2,consts:[["automation-id","tui-notification__icon","class","icon",3,"src",4,"ngIf"],[1,"content"],["tuiIconButton","","type","button","automation-id","tui-notification__close","size","xs","class","close","icon","tuiIconCloseLarge","appearance","icon",3,"title","click",4,"ngIf"],["automation-id","tui-notification__icon",1,"icon",3,"src"],["tuiIconButton","","type","button","automation-id","tui-notification__close","size","xs","icon","tuiIconCloseLarge","appearance","icon",1,"close",3,"title","click"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275template"](0,Ja,1,1,"tui-svg",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275projection"](2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](3,Za,2,3,"button",2)),2&e&&(i["\u0275\u0275property"]("ngIf",t.hasIcon),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngIf",t.hasClose))},directives:[Ft.O5,Fa,Ya],pipes:[Ft.Ov],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;padding:.8125rem 1rem .6875rem;border-radius:var(--tui-radius-m);background:#fff;background:var(--tui-base-01);overflow:hidden}[_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:'';pointer-events:none}._has-close-button[_nghost-%COMP%]{padding-right:2rem}._has-icon[_nghost-%COMP%]{padding-left:2.75rem}[data-tui-host-status=info][_nghost-%COMP%]{color:var(--tui-info-fill)}[data-tui-host-status=info][_nghost-%COMP%]:after{background:var(--tui-info-bg)}[data-tui-host-status=success][_nghost-%COMP%]{color:var(--tui-success-fill)}[data-tui-host-status=success][_nghost-%COMP%]:after{background:var(--tui-success-bg)}[data-tui-host-status=error][_nghost-%COMP%]{color:var(--tui-error-fill)}[data-tui-host-status=error][_nghost-%COMP%]:after{background:var(--tui-error-bg)}[data-tui-host-status=warning][_nghost-%COMP%]{color:var(--tui-warning-fill)}[data-tui-host-status=warning][_nghost-%COMP%]:after{background:var(--tui-warning-bg)}.content[_ngcontent-%COMP%]{word-wrap:break-word;color:var(--tui-text-01)}.icon[_ngcontent-%COMP%]{position:absolute;top:0;left:1rem;display:flex;width:1rem;height:100%;max-height:3rem;align-items:center}.close[_ngcontent-%COMP%]{position:absolute;top:.625rem;right:.5rem}"],changeDetection:0}),Rr([ns()],e.prototype,"hasIcon",void 0),Rr([ns()],e.prototype,"status",void 0),e=Rr([Ur(0,(0,i.Inject)(xs))],e),e})(),rl=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,La,Xa]]}),e})();const il="{{duration}}ms ease-in-out",ol={params:{duration:300}},sl=300,al=(a("tuiHeightCollapse",[h(":enter",[u({height:0}),l(il,u({height:"*"}))],ol),h(":leave",[u({height:"*"}),l(il,u({height:0}))],ol)]),a("tuiHeightCollapseList",[h("* => *",[A(":enter",[u({height:0}),p(sl,[l(il,u({height:"*"}))])],{optional:!0}),A(":leave",[u({height:"*"}),p(sl,[l(il,u({height:0}))])],{optional:!0})],ol)])),ll=(a("tuiWidthCollapse",[h(":enter",[u({width:0}),l(il,u({width:"*"}))],ol),h(":leave",[u({width:"*"}),l(il,u({width:0}))],ol)]),a("tuiWidthCollapseList",[h("* => *",[A(":enter",[u({width:0}),p(sl,[l(il,u({width:"*"}))])],{optional:!0}),A(":leave",[u({width:"*"}),p(sl,[l(il,u({width:0}))])],{optional:!0})],ol)]),a("tuiFadeIn",[h(":enter",[u({opacity:0}
1),l(il,u({opacity:1}))],ol),h(":leave",[u({opacity:1}),l(il,u({opacity:0}))],ol)])),cl=a("tuiFadeInList",[h("* => *",[A(":enter",[u({opacity:0}),p(sl,[l(il,u({opacity:1}))])],{optional:!0}),A(":leave",[u({opacity:1}),p(sl,[l(il,u({opacity:0}))])],{optional:!0})],ol)]),ul=(a("tuiFadeInTop",[h(":enter",[u({transform:"translateY(-10px)",opacity:0}),l(il,u({transform:"translateY(0)",opacity:1}))],ol),h(":leave",[u({transform:"translateY(0)",opacity:1}),l(il,u({transform:"translateY(-10px)",opacity:0}))],ol)]),a("tuiFadeInBottom",[h(":enter",[u({transform:"translateY(10px)",opacity:0}),l(il,u({transform:"translateY(0)",opacity:1}))],ol),h(":leave",[u({transform:"translateY(0)",opacity:1}),l(il,u({transform:"translateY(10px)",opacity:0}))],ol)]),a("tuiDropdownAnimation",[h("* => fadeInTop",[u({transform:"translateY(-10px)",opacity:0}),l(il,u({transform:"translateY(0)",opacity:1}))],ol),h("* => fadeInBottom",[u({transform:"translateY(10px)",opacity:0}),l(il,u({transform:"translateY(0)",opacity:1}))],ol),h("fadeInBottom => *",[u({transform:"translateY(0)",opacity:1}),l(il,u({transform:"translateY(10px)",opacity:0}))],ol),h("fadeInTop => *",[u({transform:"translateY(0)",opacity:1}),l(il,u({transform:"translateY(-10px)",opacity:0}))],ol)])),hl=a("tuiScaleIn",[h(":enter",[u({transform:"scale(0)"}),l(il,u({transform:"scale(1)"}))],ol),h(":leave",[u({transform:"scale(1)"}),l(il,u({transform:"scale(0)"}))],ol)]),dl=(a("tuiScaleInList",[h("* => *",[A(":enter",[u({transform:"scale(0)"}),p(sl,[l(il,u({transform:"scale(1)"}))])],{optional:!0}),A(":leave",[u({transform:"scale(1)"}),p(sl,[l(il,u({transform:"scale(0)"}))])],{optional:!0})],ol)]),a("tuiSlideIn",[h("* => left",[u({transform:"translateX(-100%)"}),l(il,u({transform:"translateX(0)"}))],ol),h("left => *",[u({transform:"translateX(0)"}),l(il,u({transform:"translateX(-100%)"}))],ol),h("* => right",[u({transform:"translateX(100%)"}),l(il,u({transform:"translateX(0)"}))],ol),h("right => *",[u({transform:"translateX(0)"}),l(il,u({transform:"translateX(100%)"}))],ol)]),a("tuiSlideInLeft",[h(":enter",[u({transform:"translateX(-100%)"}),l(il,u({transform:"translateX(0)"}))],ol),h(":leave",[u({transform:"translateX(0)"}),l(il,u({transform:"translateX(-100%)"}))],ol)]),a("tuiSlideInLeftList",[h("* => *",[A(":enter",[u({transform:"translateX(-100%)"}),p(sl,[l(il,u({transform:"translateX(0)"}))])],{optional:!0}),A(":leave",[u({transform:"translateX(0)"}),p(sl,[l(il,u({transform:"translateX(-100%)"}))])],{optional:!0})],ol)]),a("tuiSlideInRight",[h(":enter",[u({transform:"translateX(100%)"}),l(il,u({transform:"translateX(0)"}))],ol),h(":leave",[u({transform:"translateX(0)"}),l(il,u({transform:"translateX(100%)"}))],ol)]),a("tuiSlideInRightList",[h("* => *",[A(":enter",[u({transform:"translateX(100%)"}),p(sl,[l(il,u({transform:"translateX(0)"}))])],{optional:!0}),A(":leave",[u({transform:"translateX(0)"}),p(sl,[l(il,u({transform:"translateX(100%)"}))])],{optional:!0})],ol)])),Al=a("tuiSlideInTop",[h(":enter",[u({transform:"translate3d(0,{{start}},0)"}),l(il,u({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),h(":leave",[u({transform:"translate3d(0,{{end}},0)"}),l(il,u({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]);function pl(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"label",5),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e.safeItem.label," ")}}function fl(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"tui-notification",2),i["\u0275\u0275listener"]("close",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().closeNotification()}),i["\u0275\u0275template"](1,pl,2,1,"label",3),i["\u0275\u0275element"](2,"div",4),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("status",e.safeItem.status)("hasIcon",e.safeItem.hasIcon),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.safeItem.label),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("content",e.safeItem.content)("context",e.context)}}function gl(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"label",5),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e.safeItem.label," ")}}function ml(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"tui-notification",6),i["\u0275\u0275template"](1,gl,2,1,"label",3),i["\u0275\u0275element"](2,"div",4),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("status",e.safeItem.status)("hasIcon",e.safeItem.hasIcon),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.safeItem.label),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("content",e.safeItem.content)("context",e.context)}}function vl(e,t){1&e&&i["\u0275\u0275element"](0,"tui-notification-alert",4),2&e&&i["\u0275\u0275property"]("item",t.$implicit)}function yl(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",2),i["\u0275\u0275template"](1,vl,1,1,"tui-notification-alert",3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]().tuiLet,t=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("@tuiFadeInList",t.getAnimation(e.length))("@tuiHeightCollapseList",t.getAnimation(e.length))("@tuiSlideInRightList",t.getAnimation(e.length)),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",e)}}function bl(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275template"](1,yl,2,4,"div",1),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=t.tuiLet;i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.length)}}a("tuiSlideInTopList",[h("* => *",[A(":enter",[u({transform:"translateY(100%)"}),p(sl,[l(il,u({transform:"translateY(0)"}))])],{optional:!0}),A(":leave",[u({transform:"translateY(0)"}),p(sl,[l(il,u({transform:"translateY(100%)"}))])],{optional:!0})],ol)]),a("tuiSlideInBottom",[h(":enter",[u({transform:"translateY(-100%)"}),l(il,u({transform:"translateY(0)"}))],ol),h(":leave",[u({transform:"translateY(0)"}),l(il,u({transform:"translateY(-100%)"}))],ol)]),a("tuiSlideInBottomList",[h("* => *",[A(":enter",[u({transform:"translateY(-100%)"}),p(sl,[l(il,u({transform:"translateY(0)"}))])],{optional:!0}),A(":leave",[u({transform:"translateY(0)"}),p(sl,[l(il,u({transform:"translateY(-100%)"}))])],{optional:!0})],ol)]);let _l=(()=>{let e=class{constructor(e,t){this.elementRef=e,this.destroy$=t}ngOnInit(){this.initAutoClose()}get safeItem(){if(!this.item)throw new Error("Notification was created as undefined");return this.item}get context(){return this.calculateContext(this.safeItem)}closeNotification(){this.safeItem.observer.complete()}calculateContext({status:e,data:t,label:n,observer:r}){return{$implicit:e,data:t,label:n,closeHook:()=>{r.complete()},emitHook:e=>{r.next(e)},emitAndCloseHook:e=>{r.next(e),r.complete()}}}initAutoClose(){var e;this.safeItem.autoClose&&Ai((e=this.safeItem.autoClose,"number"==typeof e?this.safeItem.autoClose:3e3)).pipe(bo(Yr(this.elementRef.nativeElement,"mouseenter")),Co(()=>Yr(this.elementRef.nativeElement,"mouseleave")),bo(this.destroy$)).subscribe(()=>this.closeNotification())}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](zo))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-notification-alert"]],inputs:{item:"item"},features:[i["\u0275\u0275ProvidersFeature"]([zo])],decls:3,vars:2,consts:[[3,"status","hasIcon","close",4,"ngIf","ngIfElse"],["noClose",""],[3,"status","hasIcon","close"],["automation-id","tui-notification-alert__heading","class","heading",4,"ngIf"],["polymorpheus-outlet","","automation-id","tui-notification-alert__content",1,"content",3,"content","context"],["automation-id","tui-notification-alert__heading",1,"heading"],[3,"status","hasIcon"]],template:function(e,t){if(1&e&&(i["\u0275\u0275template"](0,fl,3,5,"tui-notification",0),i["\u0275\u0275template"](1,ml,3,5,"ng-template",null,1,i["\u0275\u0275templateRefExtractor"])),2&e){const e=i["\u0275\u0275reference"](2);i["\u0275\u0275property"]("ngIf",t.safeItem.hasCloseButton)("ngIfElse",e)}},directives:[Ft.O5,nl,ha],styles:["[_nghost-%COMP%]{box-shadow:0 .5rem 1rem rgba(51,51,51,.2);display:block;border-radius:var(--tui-radius-m)}.heading[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem;font-weight:700;margin:0}.content[_ngcontent-%COMP%]{color:var(--tui-text-01);word-wrap:break-word}.content[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0}),Rr([rs],e.prototype,"calculateContext",null),e=Rr([Ur(0,(0,i.Inject)(i.ElementRef)),Ur(1,(0,i.Inject)(zo))],e),e})(),wl=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,ga,rl]]}),e})();class Cl{constructor(e,t,n){const{label:r="",status:i="info",hasIcon:o=!0,autoClose:s=!0,hasCloseButton:a=!0}=n;this.observer=e,this.content=t,this.label=r,this.status=i,this.hasIcon=o,this.autoClose=s,this.hasCloseButton=a,n&&this.withData(n)&&(this.data=n.data)}withData(e){return"data"in e}}let Sl=(()=>{let e=class{constructor(){this.items$=new yo([])}show(e,t={}){return new Xt.y(n=>{so.assert(!!this.items$.observers.length,"Notifications are disabled, enable support by adding TuiNotificationsModule to your main app module");const r=new Cl(n,e,t);
1return this.items$.next([...this.items$.value,r]),()=>{this.items$.next(this.items$.value.filter(e=>e!==r))}})}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})(),El=(()=>{let e=class{constructor(e,t){this.options=e,this.service=t}getAnimation(e){return Object.assign({value:String(e)},this.options)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](bs),i["\u0275\u0275directiveInject"](Sl))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-notifications-host"]],decls:2,vars:3,consts:[[4,"tuiLet"],["class","wrapper",4,"ngIf"],[1,"wrapper"],["class","alert","role","alert",3,"item",4,"ngFor","ngForOf"],["role","alert",1,"alert",3,"item"]],template:function(e,t){1&e&&(i["\u0275\u0275template"](0,bl,2,1,"ng-container",0),i["\u0275\u0275pipe"](1,"async")),2&e&&i["\u0275\u0275property"]("tuiLet",i["\u0275\u0275pipeBind1"](1,1,t.service.items$))},directives:[ss,Ft.O5,Ft.sg,_l],pipes:[Ft.Ov],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}.wrapper[_ngcontent-%COMP%]{width:18rem;margin-left:auto;padding:2rem 3rem 0 0}@media screen and (max-width:63.9375em){.wrapper[_ngcontent-%COMP%]{padding:1rem 1rem 0 0}}@media screen and (min-width:85em){.wrapper[_ngcontent-%COMP%]{width:23rem}}.alert[_ngcontent-%COMP%]:not(:first-child){margin-top:.75rem}"],data:{animation:[cl,dl,al]},changeDetection:0}),Rr([rs],e.prototype,"getAnimation",null),e=Rr([Ur(0,(0,i.Inject)(bs)),Ur(1,(0,i.Inject)(Sl))],e),e})();const Il=El;let xl=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({providers:[{provide:El,useValue:Il}],imports:[[Ft.ez,wl,as]]}),e})(),Tl=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();const Bl=["positionFixedOffset"],kl=["*"];let Pl=(()=>{let e=class{get safeHost(){if(!this.host)throw new Error("Portals cannot be used without TuiPortalHostComponent");return this.host}attach(e){this.host=e}add(e,t){return this.safeHost.addComponentChild(e,t)}remove({hostView:e}){e.destroy()}addTemplate(e,t){return this.safeHost.addTemplateChild(e,t)}removeTemplate(e){e.destroy()}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:"root"}),e})();var Ol;const Fl={bottom:0,height:0,left:0,right:0,top:0,width:0};let Ll=(()=>{let e=Ol=class{constructor(e,t,n){this.viewContainerRef=e,this.elementRef=t,n.attach(this)}get clientRect(){return this.elementRef.nativeElement.getBoundingClientRect()}addComponentChild(e,t){return this.viewContainerRef.createComponent(e,void 0,i.Injector.create({parent:t,providers:[{provide:Ol,useValue:this}]}))}addTemplateChild(e,t){return this.viewContainerRef.createEmbeddedView(e,t)}fixedPositionOffset(){return this.positionFixedOffsetRef?this.positionFixedOffsetRef.nativeElement.getBoundingClientRect():Fl}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ViewContainerRef),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Pl))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-portal-host"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](Bl,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.positionFixedOffsetRef=e.first)}},ngContentSelectors:kl,decls:3,vars:0,consts:[[1,"position-fixed-offset"],["positionFixedOffset",""]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275element"](0,"div",0,1),i["\u0275\u0275projection"](2))},styles:["[_nghost-%COMP%]{position:relative;display:block;height:100%;z-index:0}[_nghost-%COMP%]:before{content:'';display:block;overflow:hidden}.position-fixed-offset[_ngcontent-%COMP%]{position:fixed;left:0;top:0;pointer-events:none;visibility:hidden;width:100%;height:100%}"],changeDetection:0}),e=Ol=Kr([Gr(0,(0,i.Inject)(i.ViewContainerRef)),Gr(1,(0,i.Inject)(i.ElementRef)),Gr(2,(0,i.Inject)(Pl))],e),e})(),Ml=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();var Dl=n(9342);const Nl={};function Rl(...e){let t,n;return(0,Zr.K)(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&(0,Wr.k)(e[0])&&(e=e[0]),(0,Dl.n)(e,n).lift(new Ul(t))}class Ul{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new jl(e,this.resultSelector))}}class jl extends Si{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Nl),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++)this.add(xi(this,e[n],void 0,n))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const r=this.values,i=this.toRespond?r[n]===Nl?--this.toRespond:this.toRespond:0;r[n]=t,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}let Ql=(()=>{let e=class{constructor(e,t,n){this.documentRef=e,this.elementRef=t,this.renderer=n,this.activeElement=Qi(this.documentRef),Promise.resolve().then(()=>{Hi(this.elementRef.nativeElement)})}onBlur(){this.renderer.removeAttribute(this.elementRef.nativeElement,"tabIndex")}
1onFocusIn(e){if(ho(this.elementRef.nativeElement,e))return;const t=Gi(this.elementRef.nativeElement,!1,this.elementRef.nativeElement);t&&Hi(t)}ngOnDestroy(){Vi(this.documentRef),Promise.resolve().then(()=>{this.activeElement instanceof HTMLElement&&Hi(this.activeElement)})}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Ft.K0),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](i.Renderer2))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("blur",function(){return t.onBlur()})("focusin.silent",function(e){return t.onFocusIn(e.target)},!1,i["\u0275\u0275resolveWindow"])}}),e=Kr([Gr(0,(0,i.Inject)(Ft.K0)),Gr(1,(0,i.Inject)(i.ElementRef)),Gr(2,(0,i.Inject)(i.Renderer2))],e),e})(),Hl=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})(),Vl=(()=>{let e=class{constructor({nativeElement:e},t,n){this.mode="scroll",Yi(e,"wheel",{passive:!1}).pipe(tn(()=>this.enabled),bo(n),oo(t)).subscribe(e=>{this.processEvent(e,!!e.deltaY,e.deltaY?e.deltaY<0:e.deltaX<0)}),Yi(e,"touchstart",{passive:!0}).pipe(Vn(({touches:n})=>{let r,{clientX:i,clientY:o}=n[0],s=0,a=0;return Yi(e,"touchmove",{passive:!1}).pipe(tn(()=>this.enabled),oo(t),(0,Pi.b)(e=>{const t=e.changedTouches[0];s=i-t.clientX,a=o-t.clientY,i=t.clientX,o=t.clientY,void 0===r&&(r=Math.abs(a)>Math.abs(s)),this.processEvent(e,r,r?a<0:s<0)}))}),bo(n)).subscribe()}get enabled(){return"none"!==this.mode}get overscrollBehavior(){return this.enabled?"contain":null}processEvent(e,t,n){const{target:r,currentTarget:i,cancelable:o}=e;o&&r instanceof Element&&("all"!==this.mode||(!t||i.contains(mo(r)))&&(t||i.contains(mo(r,!1)))?t&&(n&&!uo(r,i,!0,!1)||!n&&!uo(r,i,!0,!0))?e.preventDefault():t||(!n||uo(r,i,!1,!1))&&(n||uo(r,i,!1,!0))||e.preventDefault():e.preventDefault())}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](i.NgZone),i["\u0275\u0275directiveInject"](zo))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiOverscroll",""]],hostVars:2,hostBindings:function(e,t){2&e&&i["\u0275\u0275styleProp"]("overscroll-behavior",t.overscrollBehavior)},inputs:{mode:["tuiOverscroll","mode"]},features:[i["\u0275\u0275ProvidersFeature"]([zo])]}),e=Kr([Gr(0,(0,i.Inject)(i.ElementRef)),Gr(1,(0,i.Inject)(i.NgZone)),Gr(2,(0,i.Inject)(zo))],e),e})(),ql=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();function Kl(e,t){if(1&e&&i["\u0275\u0275element"](0,"section",3),2&e){const e=t.$implicit;i["\u0275\u0275property"]("content",e.component)("context",e)("@tuiParentAnimation",void 0),i["\u0275\u0275attribute"]("aria-labelledby",e.id)}}function Gl(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275template"](1,Kl,1,4,"section",1),i["\u0275\u0275elementStart"](2,"div",2),i["\u0275\u0275listener"]("popstate",function(){const t=i["\u0275\u0275restoreView"](e).ngIf;return i["\u0275\u0275nextContext"]().closeLast(t)},!1,i["\u0275\u0275resolveWindow"])("transitionend",function(t){const n=i["\u0275\u0275restoreView"](e).ngIf;return i["\u0275\u0275nextContext"]().onDialog(t,!!n.length)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementContainerEnd"]()}if(2&e){const e=t.ngIf;i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",e),i["\u0275\u0275advance"](1),i["\u0275\u0275classProp"]("overlay_visible",e.length)}}const zl={label:"ignoreMe"};let Wl=(()=>{let e=class{constructor(e,t,n,r){this.dialogsByType=e,this.windowRef=t,this.historyRef=n,this.titleService=r,this.dialogs$=Rl(this.dialogsByType).pipe((0,on.U)(e=>(new Array).concat(...e).sort((e,t)=>e.createdAt-t.createdAt))),this.isCloseOnBackNavDisabled=function(e){return e.parent!==e}(this.windowRef)}closeLast(e){if(this.isCloseOnBackNavDisabled)return;const[t]=e.slice(-1);t&&(e.length>1&&this.historyRef.pushState(zl,this.titleService.getTitle()),t.$implicit.complete())}onDialog({propertyName:e},t){var n;this.isCloseOnBackNavDisabled||"letter-spacing"!==e||(t?this.historyRef.pushState(zl,this.titleService.getTitle()):(null==(n=this.historyRef.state)?void 0:n.label)===zl.label&&this.historyRef.back())}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Bo),i["\u0275\u0275directiveInject"](ii),i["\u0275\u0275directiveInject"](ai),i["\u0275\u0275directiveInject"](r.Title))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-dialog-host"]],decls:2,vars:3,consts:[[4,"ngIf"],["polymorpheus-outlet","","tuiFocusTrap","","tuiOverscroll","all","class","dialog","role","dialog","aria-modal","true",3,"content","context",4,"ngFor","ngForOf"],[1,"overlay",3,"popstate","transitionend"],["polymorpheus-outlet","","tuiFocusTrap","","tuiOverscroll","all","role","dialog","aria-modal","true",1,"dialog",3,"content","context"]],template:function(e,t){1&e&&(i["\u0275\u0275template"](0,Gl,3,3,"ng-container",0),i["\u0275\u0275pipe"](1,"async")),2&e&&i["\u0275\u0275property"]("ngIf",i["\u0275\u0275pipeBind1"](1,1,t.dialogs$))}
1,directives:[Ft.O5,Ft.sg,ha,Ql,Vl],pipes:[Ft.Ov],styles:["[_nghost-%COMP%]{position:fixed;left:0;bottom:0;width:100%;height:0}.dialog[_ngcontent-%COMP%], .overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:flex-start;outline:0;overflow:auto;overflow:overlay}.overlay[_ngcontent-%COMP%]{pointer-events:none;opacity:0;letter-spacing:normal;transition:opacity var(--tui-duration),letter-spacing 10ms;background:rgba(0,0,0,.75)}.overlay_visible[_ngcontent-%COMP%]{opacity:1;letter-spacing:1px}.dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}"],data:{animation:[Ni]},changeDetection:0}),e=Kr([Gr(0,(0,i.Inject)(Bo)),Gr(1,(0,i.Inject)(ii)),Gr(2,(0,i.Inject)(ai)),Gr(3,(0,i.Inject)(r.Title))],e),e})(),$l=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,ga,ql,Hl]]}),e})();class Yl{supports(e){return-1!==e.split(".").indexOf(this.modifier)}addGlobalEventListener(e,t,n){throw new Error(`Global event targets are not supported by ${this.modifier} plugin`)}unwrap(e){return e.split(".").filter(e=>e!==this.modifier).join(".")}}let Xl=(()=>{class e extends Yl{constructor(){super(...arguments),this.modifier="$"}addEventListener(e,t){var n;e[t]=null!==(n=e[t])&&void 0!==n?n:tr.E;const r=this.getMethod(e,t),i=Br(this.manager.getZone().onStable.pipe(function(e,t=!1){return n=>n.lift(new fi(e,t))}(()=>e[t]===tr.E)),zr(()=>e[t])).subscribe(r);return()=>i.unsubscribe()}getMethod(e,t){const[,n,r,i=""]=t.split(".");return t.endsWith(".attr")?t=>null===t?e.removeAttribute(n):e.setAttribute(n,String(t)):"class"===n?t=>e.classList.toggle(r,!!t):"style"===n?t=>e.style.setProperty(r.replace(/[a-z][A-Z]/g,e=>`${e[0]}-${e[1].toLowerCase()}`),`${t}${i}`):t=>e[n]=t}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Jl=(()=>{class e extends Yl{constructor(){super(...arguments),this.modifier="capture"}supports(e){const t=e.split(".");return 2===t.length&&-1!==t.indexOf(this.modifier)}addEventListener(e,t,n){return e.addEventListener(this.unwrap(t),n,!0),()=>e.removeEventListener(this.unwrap(t),n)}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Zl=(()=>{class e extends Yl{constructor(){super(...arguments),this.modifier="prevent"}addEventListener(e,t,n){return this.manager.addEventListener(e,this.unwrap(t),e=>{e.preventDefault(),n(e)})}addGlobalEventListener(e,t,n){return this.manager.addGlobalEventListener(e,this.unwrap(t),e=>{e.preventDefault(),n(e)})}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),ec=(()=>{class e extends Yl{constructor(){super(...arguments),this.modifier="silent"}addEventListener(e,t,n){return this.manager.getZone().runOutsideAngular(()=>this.manager.addEventListener(e,this.unwrap(t),n))}addGlobalEventListener(e,t,n){return this.manager.getZone().runOutsideAngular(()=>this.manager.addGlobalEventListener(e,this.unwrap(t),n))}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const tc=[{provide:r.EVENT_MANAGER_PLUGINS,useClass:ec,multi:!0},{provide:r.EVENT_MANAGER_PLUGINS,useClass:Zl,multi:!0},{provide:r.EVENT_MANAGER_PLUGINS,useClass:(()=>{class e extends Yl{constructor(){super(...arguments),this.modifier="stop"}addEventListener(e,t,n){return this.manager.addEventListener(e,this.unwrap(t),e=>{e.stopPropagation(),n(e)})}addGlobalEventListener(e,t,n){return this.manager.addGlobalEventListener(e,this.unwrap(t),e=>{e.stopPropagation(),n(e)})}}return e.\u0275fac=function(){let t;
1return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),multi:!0},{provide:r.EVENT_MANAGER_PLUGINS,useClass:(()=>{class e extends Yl{constructor(){super(...arguments),this.modifier="init"}addEventListener(e,t,n){return this.handle(n)}addGlobalEventListener(e,t,n){return this.handle(n)}handle(e){const t=this.manager.getZone(),n=t.onStable.subscribe(()=>{n.unsubscribe(),e(t)});return()=>{}}}return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),multi:!0},{provide:r.EVENT_MANAGER_PLUGINS,useClass:Jl,multi:!0},{provide:r.EVENT_MANAGER_PLUGINS,useClass:Xl,multi:!0}];function nc(e,t,n=" "){const r=t-e.length;return r<=0?e:n.repeat(r/n.length).slice(0,r)+e}function rc(e){return so.assert(Number.isFinite(e),"Value must be finite number"),`${e}px`}function ic(e){return t=>t.lift(new oc(e))}class oc{constructor(e){this.total=e}call(e,t){return t.subscribe(new sc(e,this.total))}}class sc extends en.L{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}var ac;let lc=(()=>{let e=ac=class{constructor(e,t,n,r){this.active$=e,this.ngZone=t,this.elementRef=n,this.directParentActiveZone=r,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe((0,on.U)(e=>!!e&&this.contains(e)),ei(!1),ti(),ic(1),oo(this.ngZone)),this.directParentActiveZone&&this.directParentActiveZone.addSubActiveZone(this)}set tuiActiveZoneParentSetter(e){this.tuiActiveZoneParent&&this.tuiActiveZoneParent.removeSubActiveZone(this),e&&e.addSubActiveZone(this),this.tuiActiveZoneParent=e}ngOnDestroy(){this.directParentActiveZone&&this.directParentActiveZone.removeSubActiveZone(this),this.tuiActiveZoneParent&&this.tuiActiveZoneParent.removeSubActiveZone(this)}contains(e){return this.elementRef.nativeElement.contains(e)||this.subActiveZones.some((t,n,r)=>r.indexOf(t)===n&&t.contains(e))}addSubActiveZone(e){this.subActiveZones=[...this.subActiveZones,e]}removeSubActiveZone(e){const t=this.subActiveZones.findIndex(t=>t===e);this.subActiveZones=[...this.subActiveZones.slice(0,t),...this.subActiveZones.slice(t+1)]}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](xo),i["\u0275\u0275directiveInject"](i.NgZone),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](ac,12))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],inputs:{tuiActiveZoneParentSetter:["tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"]}),Kr([ns()],e.prototype,"tuiActiveZoneParentSetter",null),e=ac=Kr([Gr(0,(0,i.Inject)(xo)),Gr(1,(0,i.Inject)(i.NgZone)),Gr(2,(0,i.Inject)(i.ElementRef)),Gr(3,(0,i.Optional)()),Gr(3,(0,i.SkipSelf)()),Gr(3,(0,i.Inject)(ac))],e),e})(),cc=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();function uc(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",3),i["\u0275\u0275element"](1,"div",4),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]().tuiLet,t=i["\u0275\u0275nextContext"]();i["\u0275\u0275classProp"]("bar_has-horizontal",e[1]),i["\u0275\u0275property"]("@tuiFadeIn",t.animation)}}function hc(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",5),i["\u0275\u0275element"](1,"div",6),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]().tuiLet,t=i["\u0275\u0275nextContext"]();i["\u0275\u0275classProp"]("bar_has-vertical",e[0]),i["\u0275\u0275property"]("@tuiFadeIn",t.animation)}}function dc(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275template"](1,uc,2,3,"div",1),i["\u0275\u0275template"](2,hc,2,3,"div",2),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=t.tuiLet;i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e[0]),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e[1])}}let Ac=(()=>{let e=class{constructor(e,t,n,r,i,o,s,a,l,c){this.wrapper=i,this.container=o,this.documentRef=s,this.windowRef=a,this.elementRef=l,this.viewportScroller=c,this.tuiScrollbar="vertical";const{nativeElement:u}=this.elementRef,h=Yi(u,"mousedown"),d=Yi(this.documentRef,"mousemove"),A=Yi(this.documentRef,"mouseup"),p=Yi(i.nativeElement,"mousedown");(0,jn.T)(p.pipe(to(),(0,on.U)(e=>this.getScrolled(e,.5,.5))),h.pipe(to(),(0,Pi.b)(e=>{e.stopPropagation()}),Vn(e=>{const t=u.getBoundingClientRect(),n=function({clientY:e},{top:t,height:n}){return(e-t)/n}(e,t),r=function({clientX:e},{left:t,width:n}){return(e-t)/n}(e,t);return d.pipe((0,on.U)(e=>this.getScrolled(e,n,r)),bo(A))}))).pipe(bo(n),io(e)).subscribe(([e,n])=>{const[r,i]=this.viewportScroller.getScrollPosition();this.container?"vertical"===this.tuiScrollbar?t.setProperty(this.container.nativeElement,"scrollTop",e):t.setProperty(this.container.nativeElement,"scrollLeft",n):this.viewportScroller.scrollToPosition(["vertical"===this.tuiScrollbar?r:n,"vertical"===this.tuiScrollbar?e:i])}),(0,jn.T)(Yr(this.container?this.container.nativeElement:this.windowRef,"scroll"),r.pipe(Vo(Ri))).pipe(bo(n),io(e)).subscribe(()=>{"vertical"===this.tuiScrollbar?(t.setStyle(u,"top",100*this.thumb+"%"),t.setStyle(u,"height",100*this.view+"%")):(t.setStyle(u,"left",100*this.thumb+"%"),t.setStyle(u,"width",100*this.view+"%"))})}get scrolled(){const{scrollTop:e,scrollHeight:t,clientHeight:n,scrollLeft:r,scrollWidth:i,clientWidth:o}=this.computedContainer;return"vertical"===this.tuiScrollbar?e/(t-n):r/(i-o)}get compensation(){const{clientHeight:e,scrollHeight:t,clientWidth:n,scrollWidth:r}=this.computedContainer;return e*e/t>24&&"vertical"===this.tuiScrollbar||n*n/r>24&&"horizontal"===this.tuiScrollbar?0:"vertical"===this.tuiScrollbar?24/e:24/n}get thumb(){return this.scrolled*(1-(this.compensation||this.view))}get view(){const{clientHeight:e,scrollHeight:t,clientWidth:n,scrollWidth:r}=this.computedContainer;return"vertical"===this.tuiScrollbar?Math.ceil(e/t*100)/100:Math.ceil(n/r*100)/100}get computedContainer(){return this.container?this.container.nativeElement:this.documentRef.documentElement}getScrolled({clientY:e,clientX:t},n,r){const{offsetHeight:i,offsetWidth:o}=this.elementRef.nativeElement,{top:s,left:a,width:l,height:c}=this.wrapper.nativeElement.getBoundingClientRect();return[(e-s-i*n)/(c-i)*(this.computedContainer.scrollHeight-c),(t-a-o*r)/(l-o)*(this.computedContainer.scrollWidth-l)]}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.NgZone),i["\u0275\u0275directiveInject"](i.Renderer2),i["\u0275\u0275directiveInject"](zo),i["\u0275\u0275directiveInject"](oi),i["\u0275\u0275directiveInject"](Es),i["\u0275\u0275directiveInject"](Ds,8),i["\u0275\u0275directiveInject"](Ft.K0),i["\u0275\u0275directiveInject"](ii),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Ft.EM))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[i["\u0275\u0275ProvidersFeature"]([zo])]}),e=Rr([Ur(0,(0,i.Inject)(i.NgZone)),Ur(1,(0,i.Inject)(i.Renderer2)),Ur(2,(0,i.Inject)(zo)),Ur(3,(0,i.Inject)(oi)),Ur(4,(0,i.Inject)(Es)),Ur(5,(0,i.Optional)()),Ur(5,(0,i.Inject)(Ds)),Ur(6,(0,i.Inject)(Ft.K0)),Ur(7,(0,i.Inject)(ii)),Ur(8,(0,i.Inject)(i.ElementRef)),Ur(9,(0,i.Inject)(Ft.EM))],e),e})(),pc=(()=>{let e=class{constructor(e,t,n,r,i,o){this.options=e,this.ngZone=t,this.documentRef=n,this.scrollRef=r,this.animationFrame$=i,this.mode$=o,this.refresh$=this.animationFrame$.pipe(Vo(300),(0,on.U)(()=>this.scrollbars),ei([!1,!1]),ti((e,t)=>e[0]===t[0]&&e[1]===t[1]),oo(this.ngZone)),this.animation=Object.assign({value:""},this.options)}get scrollbars(){const{clientHeight:e,scrollHeight:t,clientWidth:n,scrollWidth:r}=this.scrollRef?this.scrollRef.nativeElement:this.documentRef.documentElement;return[Math.ceil(e/t*100)<100,Math.ceil(n/r*100)<100]}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](bs),i["\u0275\u0275directiveInject"](i.NgZone),i["\u0275\u0275directiveInject"](Ft.K0),i["\u0275\u0275directiveInject"](Ds,8),i["\u0275\u0275directiveInject"](oi),i["\u0275\u0275directiveInject"](Fs))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-scroll-control
1s"]],hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("$.data-mode.attr",function(){return t.mode$})},features:[i["\u0275\u0275ProvidersFeature"]([Ra])],decls:2,vars:3,consts:[[4,"tuiLet"],["tuiScrollbarWrapper","","class","bar bar_vertical",3,"bar_has-horizontal",4,"ngIf"],["tuiScrollbarWrapper","","class","bar bar_horizontal",3,"bar_has-vertical",4,"ngIf"],["tuiScrollbarWrapper","",1,"bar","bar_vertical"],["tuiScrollbar","vertical",1,"thumb"],["tuiScrollbarWrapper","",1,"bar","bar_horizontal"],["tuiScrollbar","horizontal",1,"thumb"]],template:function(e,t){1&e&&(i["\u0275\u0275template"](0,dc,3,2,"ng-container",0),i["\u0275\u0275pipe"](1,"async")),2&e&&i["\u0275\u0275property"]("tuiLet",i["\u0275\u0275pipeBind1"](1,1,t.refresh$))},directives:function(){return[ss,Ft.O5,fc,Ac]},pipes:function(){return[Ft.Ov]},styles:["[_nghost-%COMP%]{position:-webkit-sticky;position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - .0625rem);min-height:calc(100% - .0625rem);float:left;margin-right:calc(-100% + .0625rem);pointer-events:none}.bar[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;pointer-events:auto}.bar_vertical[_ngcontent-%COMP%]{top:0;width:.875rem}.bar_horizontal[_ngcontent-%COMP%]{left:0;height:.875rem}.bar_has-horizontal[_ngcontent-%COMP%]{bottom:.5rem}.bar_has-vertical[_ngcontent-%COMP%]{right:.5rem}.thumb[_ngcontent-%COMP%]{transition-duration:.15s;transition-timing-function:ease-in-out;position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;background:var(--tui-text-01);background-clip:content-box;box-sizing:border-box;transition-property:width,height;opacity:.2}.thumb[_ngcontent-%COMP%]:hover{opacity:.24}.thumb[_ngcontent-%COMP%]:active{opacity:.48}[data-mode=onDark][_nghost-%COMP%]   .thumb[_ngcontent-%COMP%]{background-color:var(--tui-text-01-night)}.bar_vertical[_ngcontent-%COMP%]   .thumb[_ngcontent-%COMP%]{right:0;width:.75rem;min-height:1.5rem}.bar_vertical[_ngcontent-%COMP%]   .thumb[_ngcontent-%COMP%]:active, .bar_vertical[_ngcontent-%COMP%]:hover   .thumb[_ngcontent-%COMP%]{width:.875rem}.bar_horizontal[_ngcontent-%COMP%]   .thumb[_ngcontent-%COMP%]{bottom:0;height:.75rem;min-width:1.5rem}.bar_horizontal[_ngcontent-%COMP%]   .thumb[_ngcontent-%COMP%]:active, .bar_horizontal[_ngcontent-%COMP%]:hover   .thumb[_ngcontent-%COMP%]{height:.875rem}"],data:{animation:[ll]},changeDetection:0}),e=Rr([Ur(0,(0,i.Inject)(bs)),Ur(1,(0,i.Inject)(i.NgZone)),Ur(2,(0,i.Inject)(Ft.K0)),Ur(3,(0,i.Optional)()),Ur(3,(0,i.Inject)(Ds)),Ur(4,(0,i.Inject)(oi)),Ur(5,(0,i.Inject)(Fs))],e),e})(),fc=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiScrollbarWrapper",""]],features:[i["\u0275\u0275ProvidersFeature"]([{provide:Es,useExisting:i.ElementRef}])]}),e})(),gc=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,as]]}),e})();function mc(e,t){1&e&&i["\u0275\u0275element"](0,"tui-scroll-controls")}const vc=["*"];let yc=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiScrollable",""]]}),e})();var bc;function _c({browserScrollRef:e}){return e}let wc=(()=>{let e=bc=class{constructor(e,t,n){this.cssRef=e,this.elementRef=t,this.userAgent=n,this.hidden=!1,this.isLegacy=!this.cssRef.supports("position","sticky")||function(e){return e.toLowerCase().includes("firefox")}(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none")}get showScrollbars(){return!(this.hidden||this.isLegacy&&!this.scrollable)}get browserScrollRef(){return this.scrollable||this.elementRef}get showNative(){return this.isLegacy&&!this.hidden&&!this.scrollable}scrollIntoView(e){const{detail:t}=e,{nativeElement:n}=this.browserScrollRef;e.stopPropagation();const{offsetTop:r,offsetLeft:i}=function(e,t){so.assert(e.contains(t),"Host must contain element");let{offsetTop:n,offsetLeft:r,offsetParent:i}=t;
1for(;i&&i instanceof HTMLElement&&i!==e;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return{offsetTop:n,offsetLeft:r}}(n,t);n.scrollTop=r+t.offsetHeight/2-n.clientHeight/2,n.scrollLeft=i+t.offsetWidth/2-n.clientWidth/2}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](si),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](ci))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-scrollbar"]],contentQueries:function(e,t,n){if(1&e&&i["\u0275\u0275contentQuery"](n,yc,5,i.ElementRef),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.scrollable=e.first)}},hostVars:4,hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("tui-scroll-into-view",function(e){return t.scrollIntoView(e)}),2&e&&i["\u0275\u0275classProp"]("_legacy",t.showNative)("_container",t.scrollable)},inputs:{hidden:"hidden"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:Ds,deps:[bc],useFactory:_c}])],ngContentSelectors:vc,decls:3,vars:1,consts:[[4,"ngIf"],[1,"content"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275template"](0,mc,1,0,"tui-scroll-controls",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275projection"](2),i["\u0275\u0275elementEnd"]()),2&e&&i["\u0275\u0275property"]("ngIf",t.showScrollbars)},directives:[Ft.O5,pc],styles:["[_nghost-%COMP%]{z-index:0;position:relative;display:flex;overflow:auto}[_nghost-%COMP%]:not(._legacy){scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar, [_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}._legacy[_nghost-%COMP%]{overflow:overlay}@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){._legacy[_nghost-%COMP%]::-webkit-scrollbar, ._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:6px solid transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar{background-color:transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}._container[_nghost-%COMP%]   tui-scroll-controls[_ngcontent-%COMP%]{position:absolute}.content[_ngcontent-%COMP%]{position:relative;z-index:0;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:-moz-max-content;height:max-content}"],changeDetection:0}),Rr([ns()],e.prototype,"hidden",void 0),e=bc=Rr([Ur(0,(0,i.Inject)(si)),Ur(1,(0,i.Inject)(i.ElementRef)),Ur(2,(0,i.Inject)(ci))],e),e})(),Cc=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,gc]]}),e})();const Sc=["content"];let Ec=(()=>{let e=class{constructor(e,t,n,r,i,o,s,a){this.directive=n,this.windowRef=r,this.elementRef=i,this.portalHost=o,this.options=s,this.animationTop=Object.assign({value:"fadeInTop"},this.options),this.animationBottom=Object.assign({value:"fadeInBottom"},this.options),this.prevDirectionIsTop=!1,(0,jn.T)(a.pipe(Vo(Ri)),this.directive.refresh$,Yr(this.windowRef,"resize")).pipe(io(t),bo(e)).subscribe(()=>{this.calculatePositionAndSize()})}get overscroll(){return this.inModal?"all":"scroll"}getContext(e,t){return Object.assign(Object.assign({},e),{activeZone:t})}ngAfterViewChecked(){this.calculatePositionAndSize()}onTopFocus(){this.moveFocusOutside(!0)}onBottomFocus(){this.moveFocusOutside(!1)}get inModal(){return!!function(e,t){const n=Element.prototype.closest;if(n)return n.call(e,t);const r=Element.prototype.matches||Element.prototype.msMatchesSelector;do{if(r.call(e,t))return e;e=e.parentElement}while(null!==e);return null}(this.directive.host,"tui-dialog-host")}calculatePositionAndSize(){const{clientRect:e}=this.directive,{style:t}=this.elementRef.nativeElement,n=this.directive.fixed?this.portalHost.fixedPositionOffset():this.portalHost.clientRect;t.position=this.directive.fixed?"fixed":"absolute",this.calculateVerticalPosition(t,e,n),this.calculateHorizontalPosition(t,e,n),this.calculateWidth(t,e)}getFinalAlign(e,t){const n=this.elementRef.nativeElement.getBoundingClientRect(),r=this.elementRef.nativeElement.offsetWidth,i=(o=this.windowRef.document,Math.max(o.documentElement.clientWidth,o.defaultView?o.defaultView.innerWidth:0));var o;const s=t.left+r<i||t.right-r>0,a=n.right<=i&&n.left>=0;let l=this.directive.align;switch(this.directive.align){case"left":s&&n.right>i&&(l="right");break;case"right":s&&n.left<0&&(l="left")}return"auto"===e.right&&a&&(l="left"),"auto"===e.left&&a&&(l="right"),l}calculateHorizontalPosition(e,t,n){const r=this.directive.sided?this.elementRef.nativeElement.getBoundingClientRect().width+4:0,i=Math.ceil(t.left-n.left-r),o=Math.floor(n.right-t.right-r);switch(this.getFinalAlign(e,t)){case"left":o+4>this.windowRef.innerWidth||lo(i+4,0,this.windowRef.innerWidth)?(e.left=rc(i),e.right="auto"):(e.left="auto",e.right=rc(o));break;case"right":lo(o+4,0,this.windowRef.innerWidth)||i+4>this.windowRef.innerWidth?(e.left="auto",e.right=rc(o)):(e.left=rc(i),e.right="auto")}}
1calculateVerticalPosition(e,t,n){const r=this.windowRef.innerHeight,i=Math.min(this.directive.maxHeight,r-8),o=this.directive.sided?4-t.height:8,s=t.top-o,a=r-t.bottom-o,l=this.getFinalDirection(t);this.prevDirectionIsTop="top"===l,"top"===l?(this.dropdownAnimation=this.animationBottom,e.maxHeight=rc(Math.min(i,s)),e.top="auto",e.bottom=rc(n.bottom-t.top-4+o)):(this.dropdownAnimation=this.animationTop,e.maxHeight=rc(Math.min(i,a)),e.top=rc(t.bottom-n.top-4+o),e.bottom="auto")}getFinalDirection(e){const t=this.windowRef.innerHeight,n=this.directive.sided?4-e.height:8,r=e.top-n,i=t-e.bottom-n;let o=null;switch(this.directive.direction){case"top":r>=this.directive.minHeight&&(o="top");break;case"bottom":i>=this.directive.minHeight&&(o="bottom")}const s=Math.min(this.directive.maxHeight,t-8);if(null===o&&this.contentElementRef){const e=Math.min(this.contentElementRef.nativeElement.getBoundingClientRect().height+(this.elementRef.nativeElement.offsetHeight-this.elementRef.nativeElement.clientHeight),s);o=this.prevDirectionIsTop&&r>=e?"top":i>=e||i>=r?"bottom":"top"}return o}calculateWidth(e,t){if(e.width="fixed"!==this.directive.limitMinWidth||this.directive.sided?"":rc(t.width),"min"===this.directive.limitMinWidth&&!this.directive.sided)return e.minWidth=rc(t.width),void(e.maxWidth=rc(600));e.minWidth="",e.maxWidth=""}moveFocusOutside(e){const{host:t}=this.directive,{ownerDocument:n}=t,r=n?n.body:t;let i=Gi(t,e,r);for(;null!==i&&t.contains(i);)i=Gi(i,e,r);null!==i&&Hi(i)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](zo),i["\u0275\u0275directiveInject"](i.NgZone),i["\u0275\u0275directiveInject"](Ss),i["\u0275\u0275directiveInject"](ii),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Ll),i["\u0275\u0275directiveInject"](bs),i["\u0275\u0275directiveInject"](oi))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-dropdown-box"]],viewQuery:function(e,t){if(1&e&&(i["\u0275\u0275viewQuery"](lc,5),i["\u0275\u0275viewQuery"](Sc,5,i.ElementRef)),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.activeZone=e.first),i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.contentElementRef=e.first)}},hostVars:1,hostBindings:function(e,t){2&e&&i["\u0275\u0275syntheticHostProperty"]("@tuiDropdownAnimation",t.dropdownAnimation)},features:[i["\u0275\u0275ProvidersFeature"]([zo])],decls:6,vars:5,consts:[[1,"wrapper",3,"tuiOverscroll","tuiMode","tuiActiveZoneParent"],[1,"scroll"],["tabindex","0",3,"focus"],["polymorpheus-outlet","",1,"content",3,"content","context"],["content",""]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"tui-scrollbar",1),i["\u0275\u0275elementStart"](2,"div",2),i["\u0275\u0275listener"]("focus",function(){return t.onTopFocus()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275element"](3,"div",3,4),i["\u0275\u0275elementStart"](5,"div",2),i["\u0275\u0275listener"]("focus",function(){return t.onBottomFocus()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("tuiOverscroll",t.overscroll)("tuiMode",null)("tuiActiveZoneParent",t.directive.activeZone),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("content",t.directive.content)("context",t.getContext(t.directive.context,t.activeZone)))},directives:[Vl,Ma,lc,wc,ha],styles:["[_nghost-%COMP%]{z-index:0;box-shadow:0 .5rem 1rem rgba(51,51,51,.2);position:absolute;top:0;left:0;display:flex;background-color:#fff;background-color:var(--tui-base-01);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-base-03);box-sizing:border-box}.ng-animating[_nghost-%COMP%]{pointer-events:none}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:100%}.wrapper[_ngcontent-%COMP%]{flex-grow:1;max-width:100%;max-height:inherit;overflow:visible}.scroll[_ngcontent-%COMP%]{height:100%}"],data:{animation:[ul]}}),Rr([rs],e.prototype,"getContext",null),Rr([rs],e.prototype,"inModal",null),e=Rr([Ur(0,(0,i.Inject)(zo)),Ur(1,(0,i.Inject)(i.NgZone)),Ur(2,(0,i.Inject)(Ss)),Ur(3,(0,i.Inject)(ii)),Ur(4,(0,i.Inject)(i.ElementRef)),Ur(5,(0,i.Inject)(Ll)),Ur(6,(0,i.Inject)(bs)),Ur(7,(0,i.Inject)(oi))],e),e})(),Ic=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[cc,ga,ql,Cc,Da]]}),e})(),xc=(()=>{let e=class{constructor(e,t,n,r,i){this.componentFactoryResolver=e,this.injector=t,this.portalService=n,this.elementRef=r,this.activeZone=i,this.content="",this.tuiDropdownHost=null,this.minHeight=80,this.maxHeight=400,this.align="left",this.direction=null,this.sided=!1,this.limitMinWidth="min",this.dropdownBoxRef=null}ngOnDestroy(){this.closeDropdownBox()}ngAfterViewChecked(){null!==this.dropdownBoxRef&&(this.dropdownBoxRef.changeDetectorRef.detectChanges(),this.dropdownBoxRef.changeDetectorRef.markForCheck())}get clientRect(){return this.elementRef.nativeElement.getBoundingClientRect()}get host(){return this.tuiDropdownHost||this.elementRef.nativeElement}get fixed(){return Sa(this.elementRef.nativeElement)}openDropdownBox(){if(null!==this.dropdownBoxRef)return;
1const e=this.componentFactoryResolver.resolveComponentFactory(Ec);this.dropdownBoxRef=this.portalService.add(e,this.injector),this.dropdownBoxRef.changeDetectorRef.detectChanges()}closeDropdownBox(){null!==this.dropdownBoxRef&&(this.portalService.remove(this.dropdownBoxRef),this.dropdownBoxRef=null)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ComponentFactoryResolver),i["\u0275\u0275directiveInject"](i.Injector),i["\u0275\u0275directiveInject"](Pl),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](lc))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,inputs:{content:["tuiDropdownContent","content"],tuiDropdownHost:"tuiDropdownHost",minHeight:["tuiDropdownMinHeight","minHeight"],maxHeight:["tuiDropdownMaxHeight","maxHeight"],align:["tuiDropdownAlign","align"],direction:["tuiDropdownDirection","direction"],sided:["tuiDropdownSided","sided"],limitMinWidth:["tuiDropdownLimitWidth","limitMinWidth"]}}),Rr([ns()],e.prototype,"content",void 0),Rr([ns()],e.prototype,"tuiDropdownHost",void 0),Rr([ns()],e.prototype,"minHeight",void 0),Rr([ns()],e.prototype,"maxHeight",void 0),Rr([ns()],e.prototype,"align",void 0),Rr([ns()],e.prototype,"direction",void 0),Rr([ns()],e.prototype,"sided",void 0),Rr([ns()],e.prototype,"limitMinWidth",void 0),Rr([rs],e.prototype,"fixed",null),e})(),Tc=(()=>{let e=class{constructor(e,t){this.elementRef=e,this.hintService=t,this.mode=null,this.direction="bottom-left",this.content=""}ngOnDestroy(){this.hideTooltip()}showTooltip(){this.hintService.add(this)}hideTooltip(){this.hintService.remove(this)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Ta))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,inputs:{mode:["tuiHintMode","mode"],direction:["tuiHintDirection","direction"]}}),Rr([ns()],e.prototype,"mode",void 0),Rr([ns()],e.prototype,"direction",void 0),e})();const Bc=new i.InjectionToken("Accessible tooltip visibility stream"),kc=[zo,$o,{provide:Bc,deps:[$o,i.ElementRef],useFactory:function(e,{nativeElement:t}){return(0,jn.T)(e.pipe(tn(e=>e),pr(Ai(1e3).pipe(yi(!0),bo(Yi(t,"keydown")))),pr(Yi(t,"keydown").pipe(tn(({key:e})=>"Escape"===e),nr(1),(0,Pi.b)(e=>{e.stopPropagation()}),yi(!1),ei(!0)))),Yi(t,"blur").pipe(yi(!1))).pipe(ti())}}],Pc="_described-by";let Oc=(()=>{let e=class{constructor(e,t){this.tuiDescribedBy="",t.subscribe(t=>{this.tuiDescribedBy&&(t?e.showHintForId(this.tuiDescribedBy):e.hideHintForId(this.tuiDescribedBy))})}get computedDescribedBy(){return this.tuiDescribedBy?this.tuiDescribedBy+Pc:null}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Ta),i["\u0275\u0275directiveInject"](Bc))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiDescribedBy","",5,"ng-container"]],hostVars:1,hostBindings:function(e,t){2&e&&i["\u0275\u0275attribute"]("aria-describedby",t.computedDescribedBy)},inputs:{tuiDescribedBy:"tuiDescribedBy"},features:[i["\u0275\u0275ProvidersFeature"](kc)]}),Rr([ns()],e.prototype,"tuiDescribedBy",void 0),e=Rr([Ur(0,(0,i.Inject)(Ta)),Ur(1,(0,i.Inject)(Bc))],e),e})(),Fc=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();const Lc="_hint_hovered";let Mc=(()=>{let e=class extends Tc{constructor(e,t,n,r,i,o){super(t,n),this.renderer=e,this.componentHovered$=new Rn.xQ,this.tuiHintShowDelay=500,this.tuiHintHideDelay=200,this.tuiHintHost=null,Rl(o.createHovered$(t.nativeElement),this.componentHovered$.pipe(ei(!1))).pipe((0,on.U)(([e,t])=>e||t),Vn(e=>(this.toggleClass(e),(0,Yt.of)(e).pipe(Ro(e?this.tuiHintShowDelay:this.tuiHintHideDelay)))),Vn(e=>e&&"overflow"!==this.mode?i.pipe((0,on.U)(e=>!e),nr(2)):(0,Yt.of)(e)),ti(),bo(r)).subscribe(e=>{e?this.showTooltip():this.hideTooltip()}),this.hintService.register(this)}set tuiHint(e){if(!e)return this.hideTooltip(),void(this.content="");this.content=e}get id(){return this.tuiHintId?this.tuiHintId+Pc:null}get host(){return this.tuiHintHost?this.tuiHintHost:this.elementRef.nativeElement}getElementClientRect(){return this.host.getBoundingClientRect()}ngOnDestroy(){this.hintService.unregister(this)}showTooltip(){""!==this.content&&(this.toggleClass(!0),this.hintService.add(this))}hideTooltip(){this.toggleClass(!1),this.hintService.remove(this)}toggleClass(e){e?this.renderer.addClass(this.elementRef.nativeElement,Lc):this.renderer.removeClass(this.elementRef.nativeElement,Lc)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.Renderer2),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Ta),i["\u0275\u0275directiveInject"](zo),i["\u0275\u0275directiveInject"](es,2),i["\u0275\u0275directiveInject"](Yo))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{tuiHintShowDelay:"tuiHintShowDelay",tuiHintHideDelay:"tuiHintHideDelay",tuiHintHost:"tuiHintHost",tuiHint:"tuiHint",tuiHintId:"tuiHintId"},features:[i["\u0275\u0275ProvidersFeature"]([es,Zo,zo]),i["\u0275\u0275InheritDefinitionFeature"]]}),Rr([ns()],e.prototype,"tuiHintShowDelay",void 0),Rr([ns()],e.prototype,"tuiHintHideDelay",void 0),Rr([ns()],e.prototype,"tuiHintHost",void 0),Rr([is()],e.prototype,"tuiHint",null),e=Rr([Ur(0,(0,i.Inject)(i.Renderer2)),Ur(1,(0,i.Inject)(i.ElementRef)),Ur(2,(0,i.Inject)(Ta)),Ur(3,(0,i.Inject)(zo)),Ur(4,(0,i.Inject)(es)),Ur(4,(0,i.Self)()),Ur(5,(0,i.Inject)(Yo))],e),e})(),Dc=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})(),Nc=(()=>{let e=class{constructor({nativeElement:e},t){this.tuiHoveredChange=t.createHovered$(e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Yo))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"}}),e=Kr([Gr(0,(0,i.Inject)(i.ElementRef)),Gr(1,(0,i.Inject)(Yo))],e),e})(),Rc=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})(),Uc=(()=>{let e=class extends Tc{constructor(e,t,n,r){super(e,t),this.destroy$=n,this.tuiHintShowDelay=0,this.tuiHintHideDelay=0,this.content="",this.currentMouseRect=this.mousePositionToClientRect(),r.createHovered$(this.elementRef.nativeElement).pipe(tn(()=>!!this.content),ei(!1),ti()).pipe(Vn(e=>(0,Yt.of)(e).pipe(Ro(e?this.tuiHintShowDelay:this.tuiHintHideDelay))),bo(n)).subscribe({next:e=>{e?this.showTooltip():this.hideTooltip()},complete:()=>{this.hideTooltip()}}),this.initMouseMoveSubscription()}set tuiPointerHint(e){if(!e)return this.hideTooltip(),void(this.content="");this.content=e}getElementClientRect(){return this.currentMouseRect}initMouseMoveSubscription(){Yi(this.elementRef.nativeElement,"mousemove").pipe(bo(this.destroy$)).subscribe(({clientX:e,clientY:t})=>{this.currentMouseRect=this.mousePositionToClientRect(e,t)})}mousePositionToClientRect(e=0,t=0){return{left:e,right:e,top:t,bottom:t,width:0,height:0}}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Ta),i["\u0275\u0275directiveInject"](zo),i["\u0275\u0275directiveInject"](Yo))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiPointerHint","",5,"ng-container"]],inputs:{tuiHintShowDelay:"tuiHintShowDelay",tuiHintHideDelay:"tuiHintHideDelay",tuiPointerHint:"tuiPointerHint"},features:[i["\u0275\u0275ProvidersFeature"]([zo]),i["\u0275\u0275InheritDefinitionFeature"]]}),Rr([ns()],e.prototype,"tuiHintShowDelay",void 0),Rr([ns()],e.prototype,"tuiHintHideDelay",void 0),Rr([is()],e.prototype,"tuiPointerHint",null),e=Rr([Ur(0,(0,i.Inject)(i.ElementRef)),Ur(1,(0,i.Inject)(Ta)),Ur(2,(0,i.Inject)(zo)),Ur(3,(0,i.Inject)(Yo))],e),e})();function jc(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"span",3),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate"](e)}}function Qc(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"tui-hint-box",1),i["\u0275\u0275listener"]("tuiHoveredChange",function(t){const n=i["\u0275\u0275restoreView"](e).$implicit;return i["\u0275\u0275nextContext"]().onHovered(t,n)}),i["\u0275\u0275elementStart"](1,"div",2),i["\u0275\u0275template"](2,jc,2,1,"ng-template"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit,n=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("@tuiFadeIn",n.animation)("mode",e.mode)("direction",e.direction)("hint",e),i["\u0275\u0275attribute"]("id",e.id),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("content",e.content)}}const Hc=["arrow"];function Vc(e,t){1&e&&i["\u0275\u0275element"](0,"div",2,3)}const qc=["*"];let Kc=(()=>{let e=class{constructor(e,t,n){this.options=e,this.elementRef=t,this.hints$=n,this.animation=Object.assign({value:""},this.options)}get clientRect(){return this.elementRef.nativeElement.getBoundingClientRect()}onHovered(e,t){t instanceof Mc&&t.componentHovered$.next(e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](bs),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Ta))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-hints-host"]],hostAttrs:["aria-live","polite"],decls:2,vars:3,consts:[["role","tooltip",3,"mode","direction","hint","tuiHoveredChange",4,"ngFor","ngForOf"],["role","tooltip",3,"mode","direction","hint","tuiHoveredChange"],["polymorpheus-outlet","",3,"content"],[1,"text"]],template:function(e,t){1&e&&(i["\u0275\u0275template"](0,Qc,3,6,"tui-hint-box",0),i["\u0275\u0275pipe"](1,"async")),2&e&&i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind1"](1,1,t.hints$))},directives:function(){return[Ft.sg,$c,Nc,ha]},pipes:function(){return[Ft.Ov]},styles:["[_nghost-%COMP%]{position:fixed;bottom:0;left:0;width:100%;height:0}.text[_ngcontent-%COMP%]{white-space:pre-wrap}"],data:{animation:[ll]},changeDetection:0}),e=Rr([Ur(0,(0,i.Inject)(bs)),Ur(1,(0,i.Inject)(i.ElementRef)),Ur(2,(0,i.Inject)(Ta))],e),e})();const Gc=16+8*Math.sqrt(2)/2,zc={"top-left":"bottom-left","top-right":"bottom-right","bottom-left":"top-left","bottom-right":"top-right",left:"r
1ight",right:"left"},Wc={"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left",left:"right",right:"left"};let $c=(()=>{let e=class{constructor(e,t,n,r,i,o,s){this.elementRef=r,this.windowRef=i,this.isMobile=o,this.hintsHost=s,this.direction="bottom-left",this.mode=null,e.pipe(io(n),bo(t)).subscribe(()=>{this.calculatePosition()})}get isUntouchable(){return this.hint instanceof Uc}calculatePosition(){"overflow"!==this.mode?this.calculateCoordinates():this.setOverflowStyles()}calculateCoordinates(){if(this.isMobile)return void this.calculateMobileCoordinates();if(!this.hint)return;const e=this.hint.getElementClientRect(),t=this.hintsHost.clientRect,n=this.elementRef.nativeElement,{style:r}=n,i=n.getBoundingClientRect(),o=e.width>2*Gc,s=["left","right","bottom-left","bottom-right","top-left","top-right"];let a=0,l=0,{direction:c}=this;const u=e.top+e.height/2-i.height/2-t.top,h=e.left-i.width-8-t.left,d=e.left+e.width+8-t.left,A=e.bottom+8-t.top,p=e.top-i.height-8-t.top,f=o?e.left-t.left:e.left+e.width/2-Gc-t.left,g=o?e.left-i.width+e.width-t.left:e.left-i.width+e.width/2+Gc-t.left;for(s.splice(s.indexOf(c),1);;){switch(c){case"left":a=u,l=h;break;case"right":a=u,l=d;break;case"top-right":a=p,l=f;break;case"top-left":a=p,l=g;break;case"bottom-right":a=A,l=f;break;case"bottom-left":a=A,l=g}const e=a+t.top>8&&a+i.height+8+t.top<this.windowRef.innerHeight,n=l>8&&l+i.width+8+t.left<t.width;if(0===s.length||e&&n)break;c=e?Wc[c]:zc[c],c=s.splice(s.indexOf(c),1)[0]||c}r.top=rc(a),r.left=rc(l),n.setAttribute("data-tui-host-direction",c)}calculateMobileCoordinates(){if(!this.hint)throw new Error("Hint directive is missing");const e=this.hint.getElementClientRect(),t=this.hintsHost.clientRect,n=this.elementRef.nativeElement,{style:r}=n,i=n.getBoundingClientRect(),o=e.top-i.height-8-t.top,s=e.bottom+8-t.top,a=o+t.top>8&&e.top<this.windowRef.innerHeight,l=e.bottom>0&&e.bottom+16+i.height<this.windowRef.innerHeight,c=this.direction.includes("top")&&a||!l?"top":"bottom",u=t.left+e.left+e.width/2-i.width/2,h=Math.max(u+i.width+8>t.right?t.right-8-i.width:u,16);r.left=rc(h),r.top=rc("top"===c?o:s),this.arrow&&(this.arrow.nativeElement.style.left=rc(e.left<=16&&e.width>32?16:e.left+e.width/2-h-4)),n.setAttribute("data-tui-host-direction",c)}setOverflowStyles(){if(!this.hint)throw new Error("Hint directive is missing");const e=this.hint.getElementClientRect(),{style:t}=this.elementRef.nativeElement;t.top=rc(e.top-window.innerHeight-12-1),t.left=rc(e.left-16-1),t.width=rc(e.width+32+2)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](oi),i["\u0275\u0275directiveInject"](zo),i["\u0275\u0275directiveInject"](i.NgZone),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](ii),i["\u0275\u0275directiveInject"](Mo),i["\u0275\u0275directiveInject"](Kc))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-hint-box"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](Hc,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.arrow=e.first)}},hostVars:3,hostBindings:function(e,t){2&e&&(i["\u0275\u0275attribute"]("data-mode",t.mode),i["\u0275\u0275classProp"]("_untouchable",t.isUntouchable))},inputs:{direction:"direction",mode:"mode",hint:"hint"},features:[i["\u0275\u0275ProvidersFeature"]([zo])],ngContentSelectors:qc,decls:3,vars:1,consts:[["class","arrow",4,"ngIf"],["automation-id","tui-hint-box__tooltip",1,"tooltip"],[1,"arrow"],["arrow",""]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275template"](0,Vc,2,0,"div",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275projection"](2),i["\u0275\u0275elementEnd"]()),2&e&&i["\u0275\u0275property"]("ngIf",t.isMobile)},directives:[Ft.O5],styles:["[_nghost-%COMP%]{position:absolute;top:0;left:0;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box}[_nghost-%COMP%]   .arrow[_ngcontent-%COMP%], [_nghost-%COMP%]:not([data-mode=overflow]):before{content:'';position:absolute;width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background-color:inherit;transform:rotate(45deg)}[data-tui-host-direction=top][_nghost-%COMP%]   .arrow[_ngcontent-%COMP%]{bottom:-.25rem}[data-tui-host-direction=bottom][_nghost-%COMP%]   .arrow[_ngcontent-%COMP%]{top:-.25rem}[data-tui-host-direction=bottom][_nghost-%COMP%]:before, [data-tui-host-direction=top][_nghost-%COMP%]:before{display:none}[data-tui-host-direction=top-left][_nghost-%COMP%]:before, [data-tui-host-direction=top-right][_nghost-%COMP%]:before{bottom:-.25rem}[data-tui-host-direction=bottom-left][_nghost-%COMP%]:before, [data-tui-host-direction=bottom-right][_nghost-%COMP%]:before{top:-.25rem}[data-tui-host-direction=bottom-left][_nghost-%COMP%]:before, [data-tui-host-direction=top-left][_nghost-%COMP%]:before{right:1.075rem}[data-tui-host-direction=bottom-right][_nghost-%COMP%]:before, [data-tui-host-direction=top-right][_nghost-%COMP%]:before{left:1.075rem}[data-tui-host-direction=left][_nghost-%COMP%]:before, [data-tui-host-direction=right][_nghost-%COMP%]:before{top:50%;margin-top:-.25rem}[data-tui-host-direction=left][_nghost-%COMP%]:before{right:-.25rem}[data-tui-host-direction=right][_nghost-%COMP%]:before{left:-.25rem}[data-mode=error][_nghost-%COMP%]{background-color:var(--tui-error-fill)}[data-mode=onDark][_nghost-%COMP%], [data-mode=overflow][_nghost-%COMP%]{box-shadow:0 .5rem 1rem rgba(51,51,51,.2);border:1px solid var(--tui-base-03);background-color:var(--tui-base-01);color:var(--tui-text-01)}[data-mode=onDark][_nghost-%COMP%]:before, [data-mode=overflow][_nghost-%COMP%]:before{border:1px solid var(--tui-base-03)}[data-mode=onDark][data-tui-host-direction=left][_nghost-%COMP%]:before, [data-mode=overflow][data-tui-host-direction=left][_nghost-%COMP%]:before{border-left-color:transparent;border-bottom-color:transparent}[data-mode=onDark][data-tui-host-direction=right][_nghost-%COMP%]:before, [data-mode=overflow][data-tui-host-direction=right][_nghost-%COMP%]:before{border-right-color:transparent;border-top-color:transparent}[data-mode=onDark][data-tui-host-direction=top-left][_nghost-%COMP%]:before, [data-mode=onDark][data-tui-host-direction=top-right][_nghost-%COMP%]:before, [data-mode=overflow][data-tui-host-direction=top-left][_nghost-%COMP%]:before, [data-mode=overflow][data-tui-host-direction=top-right][_nghost-%COMP%]:before{border-left-color:transparent;border-top-color:transparent}[data-mode=onDark][data-tui-host-direction=bottom-left][_nghost-%COMP%]:before, [data-mode=onDark][data-tui-host-direction=bottom-right][_nghost-%COMP%]:before, [data-mode=overflow][data-tui-host-direction=bottom-left][_nghost-%COMP%]:before, [data-mode=overflow][data-tui-host-direction=bottom-right][_nghost-%COMP%]:before{border-right-color:transparent;border-bottom-color:transparent}[data-mode=overflow][_nghost-%COMP%]{max-width:none}._untouchable[_nghost-%COMP%]{pointer-events:none}.tooltip[_ngcontent-%COMP%]{font:var(--tui-font-text-s);word-wrap:break-word}[data-mode=overflow][_nghost-%COMP%]   .tooltip[_ngcontent-%COMP%]{font:inherit}"],changeDetection:0}),Rr([ns()],e.prototype,"direction",void 0),Rr([ns()],e.prototype,"mode",void 0),Rr([rs,(0,i.HostBinding)("class._untouchable")],e.prototype,"isUntouchable",null),e=Rr([Ur(0,(0,i.Inject)(oi)),Ur(1,(0,i.Inject)(zo)),Ur(2,(0,i.Inject)(i.NgZone)),Ur(3,(0,i.Inject)(i.ElementRef)),Ur(4,(0,i.Inject)(ii)),Ur(5,(0,i.Inject)(Mo
1)),Ur(6,(0,i.Inject)(Kc))],e),e})(),Yc=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez]]}),e})(),Xc=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,ga,Rc,Yc]]}),e})();function Jc(e,t){1&e&&(i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275element"](0,"defs",4)),2&e&&i["\u0275\u0275property"]("innerHTML",t.$implicit,i["\u0275\u0275sanitizeHtml"])}function Zc(e,t){if(1&e&&(i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275template"](1,Jc,1,1,"defs",3),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",e.items)}}function eu(e,t){if(1&e&&(i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](0,"defs"),i["\u0275\u0275element"](1,"svg",6),i["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("outerHTML",e,i["\u0275\u0275sanitizeHtml"])}}function tu(e,t){if(1&e&&(i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275template"](0,eu,2,1,"defs",5)),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("ngForOf",e.items)}}let nu=(()=>{let e=class{constructor(e,t,n,r,i){this.svgService=t,this.changeDetectorRef=n,this.destroy$=r,this.isBrowser=!0,this.isBrowser=!(0,Ft.PM)(i),function(e){if(void 0!==e.createElementNS("http://www.w3.org/2000/svg","svg").innerHTML)return;const t=new XMLSerializer,n=new DOMParser;Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function(){const e=[];let n=this.firstChild;for(;n;)e.push(t.serializeToString(n)),n=n.nextSibling;return e.join("")},set:function(e){for(;this.firstChild;)this.removeChild(this.firstChild);try{const t=n.parseFromString(e,"image/svg+xml").documentElement;this.ownerDocument&&this.appendChild(this.ownerDocument.importNode(t,!0))}catch(bB){throw new Error("Error parsing XML string")}}})}(e)}ngOnInit(){this.svgService.items$.pipe(bo(this.destroy$)).subscribe(e=>{this.items=e.values(),this.changeDetectorRef.detectChanges()})}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Ft.K0),i["\u0275\u0275directiveInject"](Ba),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](zo),i["\u0275\u0275directiveInject"](i.PLATFORM_ID))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-svg-defs-host"]],features:[i["\u0275\u0275ProvidersFeature"]([zo])],decls:4,vars:2,consts:[["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],[4,"ngIf","ngIfElse"],["server",""],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[3,"outerHTML"]],template:function(e,t){if(1&e&&(i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](0,"svg",0),i["\u0275\u0275template"](1,Zc,2,1,"ng-container",1),i["\u0275\u0275template"](2,tu,1,1,"ng-template",null,2,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](3);i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.isBrowser)("ngIfElse",e)}},directives:[Ft.O5,Ft.sg],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0}),e=Rr([Ur(0,(0,i.Inject)(Ft.K0)),Ur(1,(0,i.Inject)(Ba)),Ur(2,(0,i.Inject)(i.ChangeDetectorRef)),Ur(3,(0,i.Inject)(zo)),Ur(4,(0,i.Inject)(i.PLATFORM_ID))],e),e})(),ru=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,as]]}),e})();function iu(e,t){1&e&&i["\u0275\u0275element"](0,"tui-scroll-controls",4)}function ou(e,t){1&e&&i["\u0275\u0275element"](0,"tui-dialog-host")}function su(e,t){if(1&e&&i["\u0275\u0275elementContainer"](0,5),2&e){const e=i["\u0275\u0275nextContext"]();
1i["\u0275\u0275property"]("ngComponentOutlet",e.notificationsHost)}}const au=["*",[["tuiOverDialogs"]],[["tuiOverNotifications"]],[["tuiOverPortals"]],[["tuiOverHints"]]],lu=["*","tuiOverDialogs","tuiOverNotifications","tuiOverPortals","tuiOverHints"];let cu=(()=>{let e=class{constructor(e,t,n,r,i,o,s){this.duration=e,this.elementRef=t,this.dialogs=n,this.notificationsHost=r,this.isMobile=i,this.scrollbars$=this.dialogs&&!this.isMobile?(0,jn.T)(...this.dialogs).pipe((0,on.U)(({length:e})=>!e)):(0,Yt.of)(!this.isMobile),so.enabled=s,so.assert(!(o[0]instanceof ec),"PlatformBrowser or PlatformServer modules must come before TuiRootModule in your main module")}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](ys),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Bo,8),i["\u0275\u0275directiveInject"](El,8),i["\u0275\u0275directiveInject"](Mo),i["\u0275\u0275directiveInject"](r.EVENT_MANAGER_PLUGINS),i["\u0275\u0275directiveInject"](_s))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-root"]],hostAttrs:["data-tui-version","2.14.0"],hostVars:2,hostBindings:function(e,t){2&e&&i["\u0275\u0275styleProp"]("--tui-duration",t.duration+"ms")},ngContentSelectors:lu,decls:13,vars:5,consts:[["class","scrollbar",4,"ngIf"],[1,"content"],[4,"ngIf"],[3,"ngComponentOutlet",4,"ngIf"],[1,"scrollbar"],[3,"ngComponentOutlet"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](au),i["\u0275\u0275template"](0,iu,1,0,"tui-scroll-controls",0),i["\u0275\u0275pipe"](1,"async"),i["\u0275\u0275element"](2,"tui-svg-defs-host"),i["\u0275\u0275elementStart"](3,"tui-portal-host"),i["\u0275\u0275elementStart"](4,"div",1),i["\u0275\u0275projection"](5),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](6,ou,1,0,"tui-dialog-host",2),i["\u0275\u0275projection"](7,1),i["\u0275\u0275template"](8,su,1,1,"ng-container",3),i["\u0275\u0275projection"](9,2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275projection"](10,3),i["\u0275\u0275element"](11,"tui-hints-host"),i["\u0275\u0275projection"](12,4)),2&e&&(i["\u0275\u0275property"]("ngIf",i["\u0275\u0275pipeBind1"](1,3,t.scrollbars$)),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngIf",t.dialogs&&t.dialogs.length),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.notificationsHost))},directives:[Ft.O5,nu,Ll,Kc,pc,Wl,Ft.$G],pipes:[Ft.Ov],styles:["[_nghost-%COMP%]{position:relative;display:block;flex:1}.scrollbar[_ngcontent-%COMP%]{position:fixed;top:0;left:0;bottom:0;right:0;margin:0}.content[_ngcontent-%COMP%]{position:relative;z-index:0;height:100%}"],changeDetection:0}),e=Rr([Ur(0,(0,i.Inject)(ys)),Ur(1,(0,i.Inject)(i.ElementRef)),Ur(2,(0,i.Optional)()),Ur(2,(0,i.Inject)(Bo)),Ur(3,(0,i.Optional)()),Ur(3,(0,i.Inject)(El)),Ur(4,(0,i.Inject)(Mo)),Ur(5,(0,i.Inject)(r.EVENT_MANAGER_PLUGINS)),Ur(6,(0,i.Inject)(_s))],e),e})(),uu=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({providers:[tc],imports:[[Ft.ez,Tl,Ml,ru,Xc,$l,gc]]}),e})();const hu=["tuiLink",""];function du(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-svg",3),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("src",e.icon)}}function Au(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-svg",4),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("src",e.icon)}}const pu=["*"];var fu;let gu=(()=>{let e=fu=class{constructor(e,t,n){this.elementRef=e,this.mode$=t,this.pseudo=!1,this.icon=null,this.iconAlign="right",this.iconRotated=!1,this.mode=null,this.focusVisible=!1,n.subscribe(e=>{this.focusVisible=e})}get nativeFocusableElement(){return this.elementRef.nativeElement}get focused(){return zi(this.nativeFocusableElement)}get hasIcon(){return null!==this.icon}get iconAlignLeft(){return this.hasIcon&&"left"===this.iconAlign}get iconAlignRight(){return this.hasIcon&&"right"===this.iconAlign}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Fs),i["\u0275\u0275directiveInject"]($o))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostVars:7,hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("$.data-mode.attr",function(){return t.mode$}),2&e&&(i["\u0275\u0275attribute"]("data-host-mode",t.mode),i["\u0275\u0275classProp"]("_pseudo",t.pseudo)("_icon-rotated",t.iconRotated)("_focus-visible",t.focusVisible))},inputs:{pseudo:"pseudo",icon:"icon",iconAlign:"iconAlign",iconRotated:"iconRotated",mode:"mode"},exportAs:["tuiLink"],features:[i["\u0275\u0275ProvidersFeature"]([{provide:ko,useExisting:(0,i.forwardRef)(()=>fu)},$o,zo,Ra])],attrs:hu,ngContentSelectors:pu,decls:4,vars:2,consts:[["class","icon icon_left",3,"src",4,"ngIf"],[1,"content"],["class","icon icon_right",3,"src",4,"ngIf"],[1,"icon","icon_left",3,"src"],[1,"icon","icon_right",3,"src"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275template"](0,du,1,1,"tui-svg",0),i["\u0275\u0275elementStart"](1,"span",1),i["\u0275\u0275projection"](2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](3,Au,1,1,"tui-svg",2)),2&e&&(i["\u0275\u0275property"]("ngIf",t.iconAlignLeft),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngIf",t.iconAlignRight))},directives:[Ft.O5,Fa],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:0 0;font-size:inherit;line-height:inherit;transition-property:color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;color:var(--tui-link);text-decoration:none;text-align:left;text-transform:inherit;font-weight:inherit;cursor:pointer;outline:0}[_nghost-%COMP%]:hover{color:var(--tui-link-hover)}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}[data-mode=onLight]._active[_nghost-%COMP%], [data-mode=onLight][_nghost-%COMP%]:hover{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo._active[_nghost-%COMP%], [data-mode=onLight]._pseudo[_nghost-%COMP%]:hover{color:var(--tui-text-03)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative-night)}[data-mode=onLight][data-host-mode=negative]._active[_nghost-%COMP%], [data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:active, [data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:hover{color:var(--tui-negative-night-hover)}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark]._active[_nghost-%COMP%], [data-mode=onDark][_nghost-%COMP%]:active, [data-mode=onDark][_nghost-%COMP%]:hover{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo._active[_nghost-%COMP%], [data-mode=onDark]._pseudo[_nghost-%COMP%]:active, [data-mode=onDark]._pseudo[_nghost-%COMP%]:hover{color:var(--tui-text-03-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive-night)}[data-mode=onDark][data-host-mode=positive]._active[_nghost-%COMP%], [data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:active, [data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:hover{color:var(--tui-positive-night-hover)}[data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative)}[data-host-mode=negative][_nghost-%COMP%]:hover{color:var(--tui-negative-hover)}[data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive)}
1[data-host-mode=positive][_nghost-%COMP%]:hover{color:var(--tui-positive-hover)}.content[_ngcontent-%COMP%]{display:inline-block}._focus-visible[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{background:var(--tui-selection)}[data-mode=onLight]._focus-visible[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{background:var(--tui-text-01);color:var(--tui-base-01)}[data-mode=onDark]._focus-visible[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{background:var(--tui-base-01);color:var(--tui-text-01)}[data-host-mode=positive]._focus-visible[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{background:var(--tui-success-bg)}[data-host-mode=negative]._focus-visible[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{background:var(--tui-error-bg)}._pseudo[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{padding-bottom:.15em;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.icon[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;margin-top:-.125rem;opacity:.8}.icon_left[_ngcontent-%COMP%]{margin-right:.25rem}.icon_right[_ngcontent-%COMP%]{margin-left:.25rem}._hovered[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{opacity:1}._icon-rotated[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),Rr([ns()],e.prototype,"pseudo",void 0),Rr([ns()],e.prototype,"icon",void 0),Rr([ns()],e.prototype,"iconAlign",void 0),Rr([ns()],e.prototype,"iconRotated",void 0),Rr([ns()],e.prototype,"mode",void 0),e=fu=Rr([Ur(0,(0,i.Inject)(i.ElementRef)),Ur(1,(0,i.Inject)(Fs)),Ur(2,(0,i.Inject)($o))],e),e})(),mu=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,La]]}),e})();var vu;let yu=(()=>{let e=vu=class extends xc{constructor(e,t,n,r,i,o){super(e,t,n,r,i),this.refresh$=o}set open(e){e?this.openDropdownBox():this.closeDropdownBox()}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ComponentFactoryResolver),i["\u0275\u0275directiveInject"](i.Injector),i["\u0275\u0275directiveInject"](Pl),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](lc,8),i["\u0275\u0275directiveInject"](Zo))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{open:["tuiDropdown","open"]},features:[i["\u0275\u0275ProvidersFeature"]([{provide:Ss,useExisting:(0,i.forwardRef)(()=>vu)},Zo]),i["\u0275\u0275InheritDefinitionFeature"]]}),e=vu=Rr([Ur(0,(0,i.Inject)(i.ComponentFactoryResolver)),Ur(1,(0,i.Inject)(i.Injector)),Ur(2,(0,i.Inject)(Pl)),Ur(3,(0,i.Inject)(i.ElementRef)),Ur(4,(0,i.Inject)(lc)),Ur(4,(0,i.Optional)()),Ur(5,(0,i.Inject)(Zo))],e),e})(),bu=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ic]]}),e})();const _u=["tuiOption",""],wu=function(e){return{$implicit:e}};function Cu(e,t){if(1&e&&i["\u0275\u0275element"](0,"span",2),2&e){const e=i["\u0275\u0275nextContext"](),t=i["\u0275\u0275reference"](2);i["\u0275\u0275property"]("content",e.content)("context",i["\u0275\u0275pureFunction1"](2,wu,t))}}function Su(e,t){1&e&&i["\u0275\u0275element"](0,"tui-svg",4)}function Eu(e,t){if(1&e&&(i["\u0275\u0275projection"](0),i["\u0275\u0275template"](1,Su,1,0,"tui-svg",3)),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.dropdown)}}const Iu=["*"];function xu(e,t){if(1&e&&(i["\u0275\u0275element"](0,"div",2),i["\u0275\u0275pipe"](1,"async")),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("content",e.emptyContent||i["\u0275\u0275pipeBind1"](1,1,e.defaultEmptyContent$))}}function Tu({currentTarget:e}){return!zi(e)}let Bu=(()=>{let e=class{constructor(e,t,n,r,i){this.content=e,this.dataList=t,this.elementRef=n,this.host=r,this.dropdown=i,this.size="m",this.role="option",this.disabled=!1}get active(){return!!this.dropdown&&!!this.dropdown.dropdownBoxRef}onClick(){this.host&&void 0!==this.value&&this.host.handleOption(this.value)}onMouseMove({currentTarget:e}){Hi(e,!0,!0)}ngOnDestroy(){this.dataList.handleFocusLossIfNecessary(this.elementRef.nativeElement)}};var t;return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Ls,8),i["\u0275\u0275directiveInject"]((0,i.forwardRef)(()=>Pu)),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Cs,8),i["\u0275\u0275directiveInject"](yu,10))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["button","tuiOption",""],["a","tuiOption",""]],hostAttrs:["tabIndex","-1","type","button"],hostVars:5,hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("click",function(){return t.onClick()})("init.onMouseMove",function(e){return t.onMouseMove(e)})("mousemove.silent",function(e){return t.onMouseMove(e)}),2&e&&(i["\u0275\u0275attribute"]("disabled",t.disabled||null)("data-size",t.size)("role",t.role),i["\u0275\u0275classProp"]("_with-dropdown",t.active))},inputs:{size:"size",role:"role",disabled:"disabled",value:"value"},attrs:_u,ngContentSelectors:Iu,decls:3,vars:2,consts:[["polymorpheus-outlet","","class","content",3,"content","context",4,"ngIf","ngIfElse"],["base",""],["polymorpheus-outlet","",1,"content",3,"content","context"],["class","arrow","src","tuiIconChevronRight",4,"ngIf"],["src","tuiIconChevronRight",1,"arrow"]],template:function(e,t){if(1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275template"](0,Cu,1,4,"span",0),i["\u0275\u0275template"](1,Eu,2,1,"ng-template",null,1,i["\u0275\u0275templateRefExtractor"])),2&e){const e=i["\u0275\u0275reference"](2);i["\u0275\u0275property"]("ngIf",t.content)("ngIfElse",e)}},directives:[Ft.O5,ha,Fa],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0 1rem;border:0;background:padding-box;font-size:inherit;line-height:inherit;font:var(--tui-font-text-m);transition-property:background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:100%;align-items:center;justify-content:space-between;text-align:left;box-sizing:border-box;color:var(--tui-text-01);outline:0;text-decoration:none;cursor:pointer;border-top:8px solid transparent;
1border-bottom:8px solid transparent;margin:-.5rem 0}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}._with-dropdown[_nghost-%COMP%], [_nghost-%COMP%]:focus{background-color:var(--tui-base-02)}[data-size=xs][_nghost-%COMP%]{font:var(--tui-font-text-s);min-height:3rem}[data-size='s'][_nghost-%COMP%]{min-height:3rem}[data-size='m'][_nghost-%COMP%]{min-height:3.75rem}[data-size='l'][_nghost-%COMP%]{min-height:4.5rem}.content[_ngcontent-%COMP%]{display:flex;flex:1;max-width:100%}.arrow[_ngcontent-%COMP%]{margin:0 -.5rem 0 .75rem}"],changeDetection:0}),Rr([ns()],e.prototype,"size",void 0),Rr([ns()],e.prototype,"role",void 0),Rr([ns()],e.prototype,"disabled",void 0),Rr([(t=Tu,(e,n,r)=>{const{value:i}=r;r.value=function(){const e=arguments[0];Object.defineProperty(this,n,{value(...n){t.apply(this,n)&&e.run(()=>{i.apply(this,n)})}})}})],e.prototype,"onMouseMove",null),e=Rr([Ur(0,(0,i.Optional)()),Ur(0,(0,i.Inject)(Ls)),Ur(1,(0,i.Inject)((0,i.forwardRef)(()=>Pu))),Ur(2,(0,i.Inject)(i.ElementRef)),Ur(3,(0,i.Optional)()),Ur(3,(0,i.Inject)(Cs)),Ur(4,(0,i.Optional)()),Ur(4,(0,i.Self)()),Ur(4,(0,i.Inject)(yu))],e),e})();var ku;let Pu=(()=>{let e=ku=class{constructor(e,t){this.elementRef=e,this.defaultEmptyContent$=t,this.role="listbox",this.emptyContent="",this.options=Fi}get empty$(){return(e=this.options,e.changes.pipe((0,on.U)(()=>Hr(e)),ei(Hr(e)))).pipe((0,on.U)(({length:e})=>!e));var e}getOptions(e=!1){return this.options.toArray().filter(({disabled:t})=>e||!t).map(({value:e})=>e).filter(jr)}onFocusIn(e,t){t.contains(e)||this.origin||(this.origin=e)}noop(){}onKeyDownArrow(e,t){const{elements:n}=this;$i(n.indexOf(e),n,t)}onFocus(e,t){const{elements:n}=this;$i(t?-1:n.length,n,t?1:-1),this.handleFocusLossIfNecessary(e)}handleFocusLossIfNecessary(e){this.origin&&Wi(e)&&function(e,t=!0,n=!1){if(e.ownerDocument){if("function"==typeof Event)e.dispatchEvent(new Event("mousedown",{bubbles:!0,cancelable:!0}));else{const t=e.ownerDocument.createEvent("Event");t.initEvent("mousedown",!0,!0),e.dispatchEvent(t)}Hi(e,t,n)}}(this.origin,!0,!0)}get elements(){return Array.from(this.elementRef.nativeElement.querySelectorAll("[tuiOption]"))}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Ts))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-data-list"]],contentQueries:function(e,t,n){if(1&e&&i["\u0275\u0275contentQuery"](n,Bu,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.options=e)}},hostVars:1,hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("focusin",function(e){return t.onFocusIn(e.relatedTarget,e.currentTarget)})("mousedown.prevent",function(){return t.noop()})("keydown.arrowDown.prevent",function(e){return t.onKeyDownArrow(e.target,1)})("keydown.arrowUp.prevent",function(e){return t.onKeyDownArrow(e.target,-1)})("mouseleave",function(e){return t.handleFocusLossIfNecessary(e.target)}),2&e&&i["\u0275\u0275attribute"]("role",t.role)},inputs:{role:"role",emptyContent:"emptyContent"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ws,useExisting:(0,i.forwardRef)(()=>ku)}])],ngContentSelectors:Iu,decls:5,vars:3,consts:[["tabindex","0",1,"trap",3,"focusin"],["class","empty","polymorpheus-outlet","",3,"content",4,"ngIf"],["polymorpheus-outlet","",1,"empty",3,"content"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275listener"]("focusin",function(e){return t.onFocus(e.target,!0)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275projection"](1),i["\u0275\u0275template"](2,xu,2,3,"div",1),i["\u0275\u0275pipe"](3,"async"),i["\u0275\u0275elementStart"](4,"div",0),i["\u0275\u0275listener"]("focusin",function(e){return t.onFocus(e.target,!1)}),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",i["\u0275\u0275pipeBind1"](3,1,t.empty$)))},directives:[Ft.O5,ha],pipes:[Ft.Ov],styles:["tui-data-list{font:var(--tui-font-text-m);display:flex;flex-direction:column;padding:.5rem 0;color:var(--tui-text-03)}tui-data-list:focus-within .trap{display:none}tui-data-list:focus-within [tuiOption]._with-dropdown:not(:focus){background-color:transparent}tui-data-list>.empty{margin:.75rem 1rem}tui-opt-group{font:var(--tui-font-text-xs);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;display:flex;flex-direction:column;line-height:2rem;padding:.5rem 0;margin:-.5rem 0}tui-opt-group:empty:after,tui-opt-group:empty:before{display:none}tui-opt-group:before{content:attr(data-label);padding:0 1rem;color:var(--tui-text-02)}tui-opt-group:not(:empty)~tui-opt-group:before{padding-top:1rem}tui-opt-group:not(:empty)~tui-opt-group:after{content:'';position:absolute;
1left:0;right:0;top:.4375rem;height:.0625rem;background:var(--tui-base-03)}"],encapsulation:2,changeDetection:0}),Rr([ns()],e.prototype,"role",void 0),Rr([ns()],e.prototype,"emptyContent",void 0),Rr([rs],e.prototype,"empty$",null),e=ku=Rr([Ur(0,(0,i.Inject)(i.ElementRef)),Ur(1,(0,i.Inject)(Ts))],e),e})(),Ou=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["ng-template","tuiDataList",""]]}),e})(),Fu=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,La,ga]]}),e})(),Lu=(()=>{let e=class{constructor({nativeElement:e},t,n,r){Yr(e,r,{passive:!1}).pipe(io(t),to(),bo(n)).subscribe()}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](i.NgZone),i["\u0275\u0275directiveInject"](zo),i["\u0275\u0275injectAttribute"]("tuiPreventDefault"))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiPreventDefault",""]],features:[i["\u0275\u0275ProvidersFeature"]([zo])]}),e=Kr([Gr(0,(0,i.Inject)(i.ElementRef)),Gr(1,(0,i.Inject)(i.NgZone)),Gr(2,(0,i.Inject)(zo)),Gr(3,(0,i.Attribute)("tuiPreventDefault"))],e),e})(),Mu=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();function Du(e,t){if(1&e&&i["\u0275\u0275element"](0,"header",5),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("content",e.header)("context",e.context)}}function Nu(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275text"](0),i["\u0275\u0275elementStart"](1,"div",6),i["\u0275\u0275elementStart"](2,"button",7),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().context.$implicit.complete()}),i["\u0275\u0275text"](3," OK "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275textInterpolate1"](" ",t.$implicit," ")}function Ru(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",8),i["\u0275\u0275elementStart"](1,"button",9),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().close()}),i["\u0275\u0275pipe"](2,"async"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("title",i["\u0275\u0275pipeBind1"](2,1,e.closeWord$))}}const Uu=new i.InjectionToken("A stream to close dialogs",{factory:()=>tr.E}),ju=new i.InjectionToken("Dialogs closing stream"),Qu=[zo,{provide:ju,deps:[Ft.K0,ii,i.ElementRef,Uu,zo,la],useFactory:function(e,t,{nativeElement:n},r,i,{dismissible:o}){return o?(0,jn.T)(Yi(n,"click").pipe(tn(vo)),Yi(e,"keydown").pipe(tn(({key:e,target:t})=>"Escape"===e&&t instanceof Element&&(!ho(n,t)||n.contains(t)))),Yi(e,"mousedown").pipe(tn(({target:e,clientX:r})=>e instanceof Element&&t.innerWidth-r>17&&!ho(n,e)),pr(Yi(e,"mouseup").pipe(nr(1),tn(({target:e})=>e instanceof Element&&!ho(n,e))))),r).pipe(bo(i)):r}}],Hu=new Error("Required dialog was dismissed"),Vu=new ca((()=>{let e=class{constructor(e,t,n,r,i){this.duration=e,this.isMobile=t,this.context=n,this.closeWord$=i,this.animation={value:"",params:{start:"40px",duration:this.duration}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:this.duration}},r.subscribe(()=>{this.close()})}get size(){return this.context.size}get header(){return this.context.header}get h(){if(this.isMobile)return"h5";switch(this.size){case"s":return"h5";case"m":return"h4";default:return"h3"}}get slideInTop(){return"fullscreen"===this.size||"page"===this.size||this.isMobile?this.fullscreenAnimation:this.animation}close(){this.context.required?this.context.$implicit.error(Hu):this.context.$implicit.complete()}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](ys),i["\u0275\u0275directiveInject"](Mo),i["\u0275\u0275directiveInject"](la),i["\u0275\u0275directiveInject"](ju),i["\u0275\u0275directiveInject"](xs))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-dialog"]],hostVars:5,hostBindings:function(e,t){2&e&&(i["\u0275\u0275attribute"]("data-size",t.size),i["\u0275\u0275syntheticHostProperty"]("@tuiSlideInTop",t.slideInTop)("@tuiFadeIn",t.slideInTop),i["\u0275\u0275classProp"]("_centered",t.header))},features:[i["\u0275\u0275ProvidersFeature"](Qu)],decls:7,vars:9,consts:[["polymorpheus-outlet","","class","header",3,"content","context",4,"ngIf"],[1,"content"],[3,"id"],["polymorpheus-outlet","",3,"context","content"],["class","wrapper",4,"ngIf"],["polymorpheus-outlet","",1,"header",3,"content","context"],[1,"buttons"],["tuiButton","","size","m",3,"click"],[1,"wrapper"],["tuiIconButton","","tuiPreventDefault","mousedown","automation-id","tui-dialog__close","size","s","appearance","","icon","tuiIconCloseLarge","shape","rounded",1,"close",3,"title","click"]],template:function(e,t){1&e&&(i["\u0275\u0275template"](0,Du,1,2,"header",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275elementStart"](2,"h2",2),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"section",3),i["\u0275\u0275template"](5,Nu,4,1,"ng-template"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](6,Ru,3,3,"div",4)),2&e&&(i["\u0275\u0275property"]("ngIf",t.header),i["\u0275\u0275advance"](2),i["\u0275\u0275classMapInterpolate1"]("heading tui-text_",t.h,""),i["\u0275\u0275property"]("id",t.context.
1id),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate"](t.context.label),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("context",t.context)("content",t.context.content),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.context.closeable))},directives:[Ft.O5,ha,Ya,Lu],pipes:[Ft.Ov],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-m);position:relative;display:flex;flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1rem;border:40px solid transparent}[_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;box-shadow:0 1.125rem 1.875rem rgba(51,51,51,.52);content:'';border-radius:inherit;pointer-events:none}[data-size='s'][_nghost-%COMP%]{width:30rem}[data-size='s'][_nghost-%COMP%]   .content[_ngcontent-%COMP%]{padding:1.5rem}[data-size='s'][_nghost-%COMP%]   .heading[_ngcontent-%COMP%]{margin-bottom:.5rem}[data-size='m'][_nghost-%COMP%]{width:42.5rem}[data-size='m'][_nghost-%COMP%]   .heading[_ngcontent-%COMP%]{margin-bottom:.75rem}[data-size='l'][_nghost-%COMP%]{width:55rem}[data-size='l'][_nghost-%COMP%]   .heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=fullscreen][_nghost-%COMP%], [data-size=page][_nghost-%COMP%]{width:100vw;min-height:100vh;border-radius:0;border:none;background:var(--tui-base-01)}[data-size=fullscreen][_nghost-%COMP%]   .content[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%]   .content[_ngcontent-%COMP%]{padding:3rem calc(50vw - 45rem / 2)}[data-size=fullscreen][_nghost-%COMP%]   .heading[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%]   .heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=page][_nghost-%COMP%]   .content[_ngcontent-%COMP%]{padding:0}._centered[_nghost-%COMP%]{text-align:center}@media screen and (max-width:37.4375em){[data-size][_nghost-%COMP%]{min-width:100vw;width:100vw;max-width:100vw;border-radius:0;border:none;margin:auto 0 0}[data-size][_nghost-%COMP%]   .content[_ngcontent-%COMP%]{padding:2rem 1.5rem}[data-size][_nghost-%COMP%]   .heading[_ngcontent-%COMP%]{margin-bottom:.5rem}[data-size=fullscreen][_nghost-%COMP%]   .header[_ngcontent-%COMP%]{flex:1}}.heading[_ngcontent-%COMP%]{margin:0;word-wrap:break-word}.heading[_ngcontent-%COMP%]:empty{display:none}.header[_ngcontent-%COMP%]{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}.content[_ngcontent-%COMP%]{border-radius:inherit;padding:2rem;background:var(--tui-base-01)}.content[_ngcontent-%COMP%]:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.wrapper[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;order:-1}.close[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:0;right:0;color:var(--tui-base-01)}@media screen and (max-width:37.4375em){.close[_ngcontent-%COMP%]{background:0 0;color:var(--tui-base-06)}.close[_ngcontent-%COMP%]:hover{color:var(--tui-base-07)}}@media screen and (min-width:37.5em){.close[_ngcontent-%COMP%]{position:fixed;top:1.5rem;right:1.5rem;background:rgba(104,104,104,.96)}.close[_ngcontent-%COMP%]:hover{background:rgba(159,159,159,.86)}[_nghost-%COMP%]:not([data-size=fullscreen])   .close[_ngcontent-%COMP%]{-webkit-animation:tuiFadeIn var(--tui-duration);animation:tuiFadeIn var(--tui-duration)}[_nghost-%COMP%]:not([data-size=fullscreen]).ng-animating   .close[_ngcontent-%COMP%]{display:none}}.buttons[_ngcontent-%COMP%]{margin-top:1.25rem;text-align:right}"],data:{animation:[Al,ll]},changeDetection:0}),e=Rr([Ur(0,(0,i.Inject)(ys)),Ur(1,(0,i.Inject)(Mo)),Ur(2,(0,i.Inject)(la)),Ur(3,(0,i.Inject)(ju)),Ur(4,(0,i.Inject)(xs))],e),e})()),qu={size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""};let Ku=(()=>{let e=class extends Gs{constructor(){super(...arguments),this.component=Vu,this.defaultOptions=qu}};return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275prov=(0,i["\u0275\u0275defineInjectable"])({factory:function(){return new e((0,i["\u0275\u0275inject"])(Jo))},token:e,providedIn:"root"}),e})(),Gu=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({providers:[{provide:B
1o,useExisting:Ku,multi:!0}],imports:[[ga,Xa,Ft.ez,Mu]]}),e})();var zu=n(6054);const Wu=new Xt.y(zu.Z);class $u{constructor(e,t,n,r,i,o,s,a,l,c){this.change$=e,this.autocompleteDirective=t,this.cleanerDirective=n,this.customContentDirective=r,this.exampleTextDirective=i,this.inputModeDirective=o,this.labelOutsideDirective=s,this.maxLengthDirective=a,this.sizeDirective=l,this.typeDirective=c}get autocomplete(){return this.autocompleteDirective.autocomplete}get cleaner(){return this.cleanerDirective.cleaner}get customContent(){return this.customContentDirective.customContent||""}get exampleText(){return this.exampleTextDirective.exampleText}get inputMode(){return this.inputModeDirective.inputMode}get labelOutside(){return this.labelOutsideDirective.labelOutside}get maxLength(){return this.maxLengthDirective.maxLength}get size(){return this.sizeDirective.size}get type(){return this.typeDirective.type}}var Yu;const Xu=new i.InjectionToken("tuiTextfieldAutocomplete",{factory:function(){return new Ju}});let Ju=(()=>{let e=Yu=class extends Ks{constructor(){super(...arguments),this.autocomplete=null}};return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiTextfieldAutocomplete",""]],inputs:{autocomplete:["tuiTextfieldAutocomplete","autocomplete"]},features:[i["\u0275\u0275ProvidersFeature"]([{provide:Xu,useExisting:(0,i.forwardRef)(()=>Yu)}]),i["\u0275\u0275InheritDefinitionFeature"]]}),e})();var Zu;const eh=new i.InjectionToken("tuiTextfieldCleaner",{factory:function(){return new th}});let th=(()=>{let e=Zu=class extends Ks{constructor(){super(...arguments),this.cleaner=!1}};return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:["tuiTextfieldCleaner","cleaner"]},features:[i["\u0275\u0275ProvidersFeature"]([{provide:eh,useExisting:(0,i.forwardRef)(()=>Zu)}]),i["\u0275\u0275InheritDefinitionFeature"]]}),e})();var nh;const rh=new i.InjectionToken("tuiTextfieldCustomContent",{factory:function(){return new ih}});let ih=(()=>{let e=nh=class extends Ks{constructor(){super(...arguments),this.customContent=null}};return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:["tuiTextfieldCustomContent","customContent"]},features:[i["\u0275\u0275ProvidersFeature"]([{provide:rh,useExisting:(0,i.forwardRef)(()=>nh)}]),i["\u0275\u0275InheritDefinitionFeature"]]}),e})();var oh;const sh=new i.InjectionToken("tuiTextfieldExampleText",{factory:function(){return new ah}});let ah=(()=>{let e=oh=class extends Ks{constructor(){super(...arguments),this.exampleText=""}};return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiTextfieldExampleText",""]],inputs:{exampleText:["tuiTextfieldExampleText","exampleText"]},features:[i["\u0275\u0275ProvidersFeature"]([{provide:sh,useExisting:(0,i.forwardRef)(()=>oh)}]),i["\u0275\u0275InheritDefinitionFeature"]]}),e})();var lh;const ch=new i.InjectionToken("tuiTextfieldInputMode",{factory:function(){return new uh}});let uh=(()=>{let e=lh=class extends Ks{constructor(){super(...arguments),this.inputMode="text"}};return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiTextfieldInputMode",""]],inputs:{inputMode:["tuiTextfieldInputMode","inputMode"]},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ch,useExisting:(0,i.forwardRef)(()=>lh)}]),i["\u0275\u0275InheritDefinitionFeature"]]}),e})();var hh;const dh=new i.InjectionToken("tuiTextfieldLabelOutside",{factory:function(){return new Ah}});let Ah=(()=>{let e=hh=class extends Ks{constructor(){super(...arguments),this.labelOutside=!1}};return e.\u0275fac=function(){let t;
1return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:["tuiTextfieldLabelOutside","labelOutside"]},features:[i["\u0275\u0275ProvidersFeature"]([{provide:dh,useExisting:(0,i.forwardRef)(()=>hh)}]),i["\u0275\u0275InheritDefinitionFeature"]]}),e})();var ph;const fh=new i.InjectionToken("tuiTextfieldMaxLength",{factory:function(){return new gh}});let gh=(()=>{let e=ph=class extends Ks{constructor(){super(...arguments),this.maxLength=null}};return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiTextfieldMaxLength",""]],inputs:{maxLength:["tuiTextfieldMaxLength","maxLength"]},features:[i["\u0275\u0275ProvidersFeature"]([{provide:fh,useExisting:(0,i.forwardRef)(()=>ph)}]),i["\u0275\u0275InheritDefinitionFeature"]]}),e})();var mh;const vh=new i.InjectionToken("tuiTextfieldSize",{factory:function(){return new yh}});let yh=(()=>{let e=mh=class extends Ks{constructor(){super(...arguments),this.size="l"}};return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiTextfieldSize",""]],inputs:{size:["tuiTextfieldSize","size"]},features:[i["\u0275\u0275ProvidersFeature"]([{provide:vh,useExisting:(0,i.forwardRef)(()=>mh)}]),i["\u0275\u0275InheritDefinitionFeature"]]}),e})();var bh;const _h=new i.InjectionToken("tuiTextfieldType",{factory:function(){return new wh}});let wh=(()=>{let e=bh=class extends Ks{constructor(){super(...arguments),this.type="text"}};return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiTextfieldType",""]],inputs:{type:["tuiTextfieldType","type"]},features:[i["\u0275\u0275ProvidersFeature"]([{provide:_h,useExisting:(0,i.forwardRef)(()=>bh)}]),i["\u0275\u0275InheritDefinitionFeature"]]}),e})(),Ch=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();const Sh=new i.InjectionToken("watched textfield controller"),Eh=[zo,{provide:Sh,deps:[i.ChangeDetectorRef,zo,Xu,eh,rh,sh,ch,dh,fh,vh,_h],useFactory:function(e,t,...n){const r=(0,jn.T)(...n.map(({change$:e})=>e||Wu)).pipe(ro(e),bo(t));return r.subscribe(),new $u(r,...n)}}];let Ih=(()=>{let e=class{constructor(e,t,n){this.isMobile=n,this.content="",this.mode=null,this.direction="bottom-left",this.showDelay=500,this.hideDelay=200,this.describeId="",this.globalMode=null,t.pipe(bo(e)).subscribe(e=>{this.globalMode=e})}get computedMode(){return this.mode||this.globalMode}stopOnMobile(e){this.isMobile&&(e.preventDefault(),e.stopPropagation())}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](zo),i["\u0275\u0275directiveInject"](Fs),i["\u0275\u0275directiveInject"](Mo))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-tooltip"]],hostVars:1,hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("mousedown",function(e){return t.stopOnMobile(e)})("click",function(e){return t.stopOnMobile(e)}),2&e&&i["\u0275\u0275attribute"]("data-mode",t.computedMode)},inputs:{content:"content",mode:"mode",direction:"direction",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId"},features:[i["\u0275\u0275ProvidersFeature"]([zo,Ra])],decls:1,vars:6,consts:[["src","tuiIconTooltipLarge","automation-id","tui-tooltip__icon",1,"icon",3,"tuiHintId","tuiHint","tuiHintDirection","tuiHintShowDelay","tuiHintHideDelay","tuiHintMode"]],template:function(e,t){1&e&&i["\u0275\u0275element"](0,"tui-svg",0),2&e&&i["\u0275\u0275property"]("tuiHintId",t.describeId)("tuiHint",t.content)("tuiHintDirection",t.direction)("tuiHintShowDelay",t.showDelay)("tuiHintHideDelay",t.hideDelay)("tuiHintMode",t.computedMode)},directives:[Fa,Mc],styles:["[_nghost-%COMP%]{transition-property:color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:relative;display:inline-block;width:1.5rem;height:1.5rem;vertical-align:middle;font-size:0;line-height:0;cursor:pointer;color:var(--tui-text-03)}[_nghost-%COMP%]:hover{color:var(--tui-text-02)}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=error][_nghost-%COMP%]{color:var(--tui-error-fill)}.icon[_ngcontent-%COMP%]{transition-property:opacity,color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;width:100%;height:100%}[_nghost-%COMP%]:not([data-mode])   .icon._hint_hovered[_ngcontent-%COMP%]{color:var(--tui-text-02)}[data-mode=onDark][_nghost-%COMP%]   .icon[_ngcontent-%COMP%], [data-mode=onLight][_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}[data-mode=onDark][_nghost-%COMP%]   .icon._hint_hovered[_ngcontent-%COMP%], [data-mode=onDark][_nghost-%COMP%]   .icon[_ngcontent-%COMP%]:hover, [data-mode=onLight][_nghost-%COMP%]   .icon._hint_hovered[_ngcontent-%COMP%], [data-mode=onLight][_nghost-%COMP%]   .icon[_ngcontent-%COMP%]:hover{opacity:1}"],changeDetection:0}),Rr([ns()],e.prototype,"content",void 0),Rr([ns()],e.prototype,"mode",void 0),Rr([ns()],e.prototype,"direction",void 0),Rr([ns()],e.prototype,"showDelay",void 0),Rr([ns()],e.prototype,"hideDelay",void 0),Rr([ns()],e.prototype,"describeId",void 0),e=Rr([Ur(0,(0,i.Inject)(zo)),Ur(1,(0,i.Inject)(Fs)),Ur(2,(0,i.Inject)(Mo
1))],e),e})(),xh=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,La,Dc]]}),e})(),Th=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();function Bh(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function kh(e,t){return function(n,r){t(n,r,e)}}let Ph=(()=>{let e=class{constructor(e,t){this.enabled$=new Rn.xQ;const n=t.pipe((0,on.U)(t=>!!t&&(!e||!t.length||t.every(t=>!e.contains(t)))));this.tuiObscured=this.enabled$.pipe(Vn(e=>e?n:tr.E))}set tuiObscuredEnabled(e){this.enabled$.next(e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](lc,8),i["\u0275\u0275directiveInject"](es,2))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[i["\u0275\u0275ProvidersFeature"]([es,Zo,zo])]}),Kr([is()],e.prototype,"tuiObscuredEnabled",null),e=Kr([Gr(0,(0,i.Optional)()),Gr(0,(0,i.Inject)(lc)),Gr(1,(0,i.Self)()),Gr(1,(0,i.Inject)(es))],e),e})(),Oh=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();const Fh=new i.InjectionToken("Controls configuration of hints",{factory:()=>new Mh});var Lh;let Mh=(()=>{let e=Lh=class extends Ks{constructor(){super(...arguments),this.align="right",this.direction=null,this.limitWidth="auto",this.minHeight=80,this.maxHeight=400,this.sided=!1}};return e.\u0275fac=function(){let t;return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownSided",""]],inputs:{align:["tuiDropdownAlign","align"],direction:["tuiDropdownDirection","direction"],limitWidth:["tuiDropdownLimitWidth","limitWidth"],minHeight:["tuiDropdownMinHeight","minHeight"],maxHeight:["tuiDropdownMaxHeight","maxHeight"],sided:["tuiDropdownSided","sided"]},features:[i["\u0275\u0275ProvidersFeature"]([{provide:Fh,useExisting:(0,i.forwardRef)(()=>Lh)}]),i["\u0275\u0275InheritDefinitionFeature"]]}),Rr([ns()],e.prototype,"align",void 0),Rr([ns()],e.prototype,"direction",void 0),Rr([ns()],e.prototype,"limitWidth",void 0),Rr([ns()],e.prototype,"minHeight",void 0),Rr([ns()],e.prototype,"maxHeight",void 0),Rr([ns()],e.prototype,"sided",void 0),e})();const Dh=new i.InjectionToken("watched dropdown controller"),Nh=[zo,{provide:Dh,deps:[Fh,i.ChangeDetectorRef,zo],useFactory:Na}],Rh=["wrapper"];function Uh(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",3,4),i["\u0275\u0275listener"]("keydown.esc",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onKeyDownEsc(t)})("keydown",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onKeydown(t)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275element"](2,"div")}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("content",e.content)("context",e.contentContext)}}const jh=["*"];let Qh=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiHostedDropdownHost",""]]}),e})();var Hh;let Vh=(()=>{let e=Hh=class{constructor(e,t){this.elementRef=e,this.controller=t,this.content="",this.canOpen=!0,this.open=!1,this.openChange=new i.EventEmitter,this.focusedChange=new i.EventEmitter}get host(){return this.dropdownHost?this.dropdownHost.nativeElement:this.elementRef.nativeElement}get dropdown(){return this.dropdownDirective&&null!==this.dropdownDirective.dropdownBoxRef?this.dropdownDirective.dropdownBoxRef.location.nativeElement:null}get nativeFocusableElement(){return qi(this.host)?this.host:Gi(this.host,!1,this.elementRef.nativeElement)}get contentContext(){return this.calculateContentContext(this.activeZone)}get focused(){return Wi(this.host)||this.open&&!!this.wrapper&&Wi(this.wrapper.nativeElement)}onFocusIn(e){(this.dropdownHost?this.dropdownHost.nativeElement:this.nativeFocusableElement||this.elementRef.nativeElement).contains(e)||this.updateOpen(!1)}onClick(e){!this.hostEditable&&(this.dropdownHost?this.dropdownHost.nativeElement:this.nativeFocusableElement||this.host).contains(e)&&this.updateOpen(!this.open)}onKeyDownEsc(e){this.open&&(e.stopPropagation(),this.closeDropdown())}onArrow(e,t){this.focusDropdown(e,t)}onKeydown({key:e,target:t,defaultPrevented:n}){!n&&function(e){return 1===e.length||-1!==As.indexOf(e)}(e)&&this.hostEditable&&t instanceof HTMLElement&&!Vr(t)&&this.focusHost()}onActiveZone(e){this.updateFocused(e),e||this.updateOpen(!1)}onHostObscured(e){e&&this.closeDropdown()}updateOpen(e){e&&!this.canOpen||(this.open=e,this.openChange.emit(e))}get hostEditable(){const e=this.nativeFocusableElement||this.host;return e instanceof HTMLElement&&Vr(e)}calculateContentContext(e){return{$implicit:e}}focusDropdown(e,t){const n=this.nativeFocusableElement;if(!(n&&n instanceof HTMLElement&&e.target instanceof Node&&n.contains(e.target)))return;if(!(this.wrapper&&this.open&&null!==this.dropdown&&this.wrapper.nativeElement.nextElementSibling instanceof HTMLElement))return this.updateOpen(!0),void(Vr(n)||e.preventDefault());const r=Gi(t?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,!t,this.wrapper.nativeElement);null!==r&&(Hi(r),e.preventDefault())}closeDropdown(){this.focused&&this.focusHost(),this.updateOpen(!1)}focusHost(){const e=this.nativeFocusableElement;null!==e&&Hi(e,!0,!0)}updateFocused(e){this.focusedChange.emit(e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Dh))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-hosted-dropdown"]],contentQueries:function(e,t,n){if(1&e&&i["\u0275\u0275contentQuery"](n,Qh,5,i.ElementRef),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.dropdownHost=e.first)}},viewQuery:function(e,t){if(1&e&&(i["\u0275\u0275viewQuery"](lc,5),i["\u0275\u0275viewQuery"](Rh,5,i.ElementRef),i["\u0275\u0275viewQuery"](yu,5)),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.activeZone=e.first),i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.wrapper=e.first),i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.dropdownDirective=e.first)}},hostVars:2,hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("focusin",function(e){return t.onFocusIn(e.target)})("click",function(e){return t.onClick(e.target)})("keydown.esc",function(e){return t.onKeyDownEsc(e)})("keydown.arrowDown",function(e){return t.onArrow(e,!0)})("keydown.arrowUp",function(e){return t.onArrow(e,!1)}),2&e&&i["\u0275\u0275classProp"]("_hosted_dropdown_focused",t.focused)},inputs:{content:"content",canOpen:"canOpen",open:"open"},outputs:{openChange:"openChange",focusedChange:"focusedChange"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ko,useExisting:(0,i.forwardRef)(()=>Hh)},Nh])],ngContentSelectors:jh,decls:4,vars:10,consts:[[1,"wrapper",3,"tuiDropdownAlign","tuiDropdownDirection","tuiDropdownHost","tuiDropdownLimitWidth","tuiDropdownMinHeight","tuiDropdownMaxHeight","tuiDropdownSided","tuiDropdownContent","tuiDropdown","tuiObscuredEnabled","tuiObscured","tuiActiveZoneChange"],["polymorpheus",""],["dropdown","polymorpheus"],["polymorpheus-outlet","",3,"content","context","keydown.esc","keydown"],["wrapper",""]],template:function(e,t){if(1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275listener"]("tuiObscured",function(e){return t.onHostObscured(e)})("tuiActiveZoneChange",function(e){return t.onActiveZone(e)}),i["\u0275\u0275projection"](1),i["\u0275\u0275template"](2,Uh,3,2,"ng-template",1,2,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](3);i["\u0275\u0275property"]("tuiDropdownAlign",t.controller.align)("tuiDropdownDirection",t.controller.direction)("tuiDropdownHost",t.nativeFocusableElement)("tuiDropdownLimitWidth",t.controller.limitWidth)("tuiDropdownMinHeight",t.controller.minHeight)("tuiDropdownMaxHeight",t.controller.maxHeight)("tuiDropdownSided",t.controller.sided)("tuiDropdownContent",e)("tuiDropdown",t.open&&t.canOpen)("tuiObscuredEnabled",t.open)}},directives:[yu,Ph,lc,ua,ha],styles:["[_nghost-%COMP%]{display:inline-flex}.wrapper[_ngcontent-%COMP%]{border-radius:inherit;height:inherit;flex:1 1 auto;width:100%}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:0}"],changeDetection:0}),Rr([ns()],e.prototype,"content",void 0),Rr([ns()],e.prototype,"canOpen",void 0),Rr([ns()],e.prototype,"open",void 0),Rr([rs],e.prototype,"calculateContentContext",null),e=Hh=Rr([Ur(0,(0,i.Inject)(i.ElementRef)),Ur(1,(0,i.Inject)(Dh))],e),e})(),qh=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,Oh,ga,cc,bu]]}),e})(),Kh=(()=>{let e=class{constructor(){this.focusable=!0}get tabIndex(){return this.focusable?0:-1}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiFocusable",""]],hostVars:1,hostBindings:function(e,t){2&e&&i["\u0275\u0275hostProperty"]("tabIndex",t.tabIndex)},inputs:{focusable:["tuiFocusable","focusable"]}}),e})(),Gh=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})(),zh=(()=>{let e=class{constructor({nativeElement:e},t){this.tuiFocusedChange=(0,jn.T)(Yi(e,"focusin"),Yi(e,"focusout")).pipe((0,on.U)(()=>zi(e)),ei(!1),ti(),ic(1),oo(t))}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](i.NgZone))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiFocusedChange",""]],outputs:{tuiFocusedChange:"tuiFocusedChange"}}),e=Kr([Gr(0,(0,i.Inject)(i.ElementRef)),Gr(1,(0,i.Inject)(i.NgZone))],e),e})(),Wh=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})(),$h=(()=>{let e=class{constructor(e,t){this.pattern=e,this.isIOS=t,this.mode="text"}get patternAttribute(){return"numeric"===this.mode&&this.isIOS&&!this.pattern?"[0-9]*":this.pattern}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275injectAttribute"]("pattern"),i["\u0275\u0275directiveInject"](Oo))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["input","tuiInputMode",""]],hostVars:3,hostBindings:function(e,t){2&e&&i["\u0275\u0275attribute"]("inputmode",t.mode)("x-inputmode",t.mode)("pattern",t.patternAttribute)},inputs:{mode:["tuiInputMode","mode"]}}),e=Kr([Gr(0,(0,i.Attribute)("pattern")),Gr(1,(0,i.Inject)(Oo))],e),e})(),Yh=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();const Xh="tuiAutofillOn",Jh="tuiAutofillOff",Zh=`\n@keyframes ${Xh} {\n    from {\n        content: '1';\n    }\n\n    to {\n        content: '2';\n    }\n}\n\n@keyframes ${Jh} {\n    from {\n        content: '2';\n    }\n\n    to {\n        content: '1';\n    }\n}`;let ed=(()=>{let e=class{constructor(e,{nativeElement:t},n,r){this.tuiAutofilledChange=new i.EventEmitter,e.addStyle(Zh,"TuiAutofilledDirective"),Yi(t,"keydown").pipe(nr(1),bo(r),ro(n)).subscribe()}onAnimationStart({animationName:e}){e===Xh?this.tuiAutofilledChange.emit(!0):e===Jh&&this.tuiAutofilledChange.emit(!1)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Wo),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](zo))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["input","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("animationstart",function(e){return t.onAnimationStart(e)})},outputs:{tuiAutofilledChange:"tuiAutofilledChange"},features:[i["\u0275\u0275ProvidersFeature"]([zo])]}),e=Kr([Gr(0,(0,i.Inject)(Wo)),Gr(1,(0,i.Inject)(i.ElementRef)),Gr(2,(0,i.Inject)(i.ChangeDetectorRef)),Gr(3,(0,i.Inject)(zo))],e),e})(),td=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();const nd=new i.InjectionToken("Controls configuration of hints",{factory:()=>new id});var rd;let id=(()=>{let e=rd=class extends Ks{constructor(){super(...arguments),this.content=null,this.direction="bottom-left",this.mode=null,this.showDelay=500,this.hideDelay=200}};return e.\u0275fac=function(){let t;
1return function(n){return(t||(t=i["\u0275\u0275getInheritedFactory"](e)))(n||e)}}(),e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiHintContent",""]],inputs:{content:["tuiHintContent","content"],direction:["tuiHintDirection","direction"],mode:["tuiHintMode","mode"],showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},features:[i["\u0275\u0275ProvidersFeature"]([{provide:nd,useExisting:(0,i.forwardRef)(()=>rd)}]),i["\u0275\u0275InheritDefinitionFeature"]]}),Rr([ns()],e.prototype,"content",void 0),Rr([ns()],e.prototype,"direction",void 0),Rr([ns()],e.prototype,"mode",void 0),Rr([ns()],e.prototype,"showDelay",void 0),Rr([ns()],e.prototype,"hideDelay",void 0),e})(),od=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();const sd=new i.InjectionToken("watched hint controller"),ad=[zo,{provide:sd,deps:[nd,i.ChangeDetectorRef,zo],useFactory:Na}];function ld(e,t){return e?e[0]:t}let cd=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["input","tuiMaskAccessor",""]],features:[i["\u0275\u0275ProvidersFeature"]([{provide:$t.NG_VALUE_ACCESSOR,deps:[[new i.Optional,Rs],$t.DefaultValueAccessor],useFactory:ld,multi:!0}])]}),e})(),ud=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();const hd=["focusableElement"];function dd(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",14),i["\u0275\u0275projection"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275styleProp"]("padding-left",e.paddingLeft,"px")("border-right-width",e.paddingRight,"px")}}function Ad(e,t){1&e&&i["\u0275\u0275element"](0,"tui-svg",16),2&e&&i["\u0275\u0275property"]("src",t.$implicit)}function pd(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",15),i["\u0275\u0275template"](1,Ad,1,1,"ng-template"),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("content",e.iconContent)("context",e.context)}}function fd(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"label",17),i["\u0275\u0275projection"](1,1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275classProp"]("placeholder_raised",e.placeholderRaised),i["\u0275\u0275property"]("for",e.id)}}function gd(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"span",23),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275classProp"]("postfix_shifted",e.postfixShifted),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate"](e.postfix)}}function md(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",18),i["\u0275\u0275elementStart"](1,"span",19),i["\u0275\u0275elementStart"](2,"span",20),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"span",21),i["\u0275\u0275text"](5),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](6,gd,2,3,"span",22),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate"](e.value),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate"](e.computedFiller),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.hasPostfix)}}function vd(e,t){1&e&&i["\u0275\u0275element"](0,"tui-svg",25),2&e&&i["\u0275\u0275property"]("src",t.$implicit)}function yd(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",24),i["\u0275\u0275template"](1,vd,
11,1,"ng-template"),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("content",e.controller.customContent)}}function bd(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"tui-svg",26),i["\u0275\u0275listener"]("click.stop",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().clear()}),i["\u0275\u0275elementEnd"]()}}function _d(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-tooltip",27),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("describeId",e.id)("content",e.hintController.content)("direction",e.hintController.direction)("mode",e.hintController.mode)("showDelay",e.hintController.showDelay)("hideDelay",e.hintController.hideDelay)}}function wd(e,t){1&e&&i["\u0275\u0275element"](0,"tui-svg",16),2&e&&i["\u0275\u0275property"]("src",t.$implicit)}function Cd(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",28),i["\u0275\u0275template"](1,wd,1,1,"ng-template"),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("content",e.iconContent)("context",e.context)}}const Sd=[[["","polymorpheus-outlet",""]],"*"],Ed=["[polymorpheus-outlet]","*"],Id=[{provide:ko,useExisting:(0,i.forwardRef)(()=>xd)},Eh,ad,Ra];let xd=(()=>{let e=class extends Vs{constructor(e,t,n,r){super(),this.mode$=e,this.appearance=t,this.controller=n,this.hintController=r,this.editable=!0,this.filler="",this.iconAlign="right",this.iconContent=null,this.readOnly=!1,this.invalid=!1,this.disabled=!1,this.postfix="",this.value="",this.valueChange=new i.EventEmitter,this.autofilledChange=new i.EventEmitter,this.autofilled=!1}get nativeFocusableElement(){return this.computedDisabled||!this.focusableElement?null:this.focusableElement.nativeElement}get focused(){return zi(this.nativeFocusableElement)}get size(){return this.controller.size}get labelOutside(){return this.controller.labelOutside}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){return!!this.content}get hasTooltip(){return!!this.hintController&&!!this.hintController.content&&!this.disabled}get hasCustomContent(){return!!this.controller.customContent}get iconPaddingLeft(){return"s"===this.size?24:28}get paddingLeft(){return(this.iconAlignLeft?this.iconPaddingLeft:0)+gs(vs(this.size,"m"),!1)}get paddingRight(){return gs(vs(this.size,"m"),this.iconAlignRight,this.hasCleaner,this.hasTooltip,this.hasCustomContent)}get hasPlaceholder(){return this.big&&!this.labelOutside||!this.hasValue&&!this.hasExampleText&&!this.hasPostfix}get placeholderRaised(){return this.big&&!this.labelOutside&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)}get iconAlignLeft(){return this.hasIcon&&"left"===this.iconAlign}get iconAlignRight(){return this.hasIcon&&"right"===this.iconAlign}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.disabled&&!this.readOnly}get rightAligned(){return"table"===this.appearance&&("numeric"===this.controller.inputMode||"decimal"===this.controller.inputMode)}get hasValueDecoration(){return this.computedFocused&&!this.readOnly&&this.hasFillerOrExampleText||this.hasPostfix}get hasPostfix(){return(this.hasValue||this.computedFocused&&!this.readOnly)&&!!this.postfix}get hasFillerOrExampleText(){return this.hasValue?!!this.computedFiller:!!this.controller.exampleText}get postfixShifted(){return"%"!==this.postfix&&(this.hasFillerOrExampleText||this.hasValue)}get computedFiller(){return this.hasExampleText?this.controller.exampleText:this.filler.slice(this.value.length)}get name(){return"cc-exp"===this.controller.autocomplete?"ccexpiryyear":null}get context(){return this.getContext(this.size)}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(e){this.focusableElement&&e.target!==this.focusableElement.nativeElement&&(e.preventDefault(),Hi(this.focusableElement.nativeElement))}onModelChange(e){this.updateValue(e)}onHovered(e){this.updateHovered(e)}onFocused(e){this.updateFocused(e)}onAutofilled(e){this.updateAutofilled(e)}get big(){return"s"!==this.size}get hasIcon(){return!!this.iconContent}get hasExampleText(){return!!this.controller.exampleText&&this.computedFocused&&!this.hasValue&&!this.readOnly}getContext(e){return{$implicit:e}}updateAutofilled(e){this.autofilled!==e&&(this.autofilled=e,this.autofilledChange.emit(e))}updateValue(e){this.value=e,this.valueChange.emit(e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Fs),i["\u0275\u0275directiveInject"](Ns),i["\u0275\u0275directiveInject"](Sh),i["\u0275\u0275directiveInject"](sd))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-primitive-textfield"]],contentQueries:function(e,t,n){if(1&e&&i["\u0275\u0275contentQuery"](n,ha,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.content=e.first)}},viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](hd,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.focusableElement=e.first)}},hostVars:9,hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("$.data-mode.attr",function(){return t.mode$}),2&e&&(i["\u0275\u0275attribute"]("data-tui-host-size",t.size),i["\u0275\u0275classProp"]("_readonly",t.readOnly)("_label-outside",t.labelOutside)("_invalid",t.computedInvalid)("_right-aligned",t.rightAligned))}
1,inputs:{editable:"editable",filler:"filler",iconAlign:"iconAlign",iconContent:"iconContent",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",postfix:"postfix",value:"value"},outputs:{valueChange:"valueChange",autofilledChange:"autofilledChange"},features:[i["\u0275\u0275ProvidersFeature"](Id),i["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:Ed,decls:15,vars:35,consts:[["automation-id","tui-primitive-textfield__wrapper","tuiPreventDefault","click",3,"appearance","readOnly","disabled","focused","hovered","pressed","invalid","tuiHoveredChange","mousedown"],["tuiMaskAccessor","","automation-id","tui-primitive-textfield__native-input",1,"input",3,"autocomplete","type","id","readOnly","tuiInputMode","tuiFocusable","tuiDescribedBy","ngModel","ngModelChange","tuiFocusedChange","tuiAutofilledChange"],["focusableElement",""],["automation-id","tui-primitive-textfield__value","class","input input_template",3,"paddingLeft","borderRightWidth",4,"ngIf"],[1,"content"],["polymorpheus-outlet","","class","icon icon_left",3,"content","context",4,"ngIf"],[1,"wrapper"],["aria-hidden","true",1,"value"],["automation-id","tui-primitive-textfield__placeholder","class","placeholder",3,"placeholder_raised","for",4,"ngIf"],["class","value-decoration","automation-id","tui-primitive-textfield__value-decoration","aria-hidden","true",4,"ngIf"],["polymorpheus-outlet","","class","custom-content","automation-id","tui-primitive-textfield__custom-content",3,"content",4,"ngIf"],["class","cleaner","automation-id","tui-primitive-textfield__cleaner","src","tuiIconCloseLarge",3,"click.stop",4,"ngIf"],["automation-id","tui-primitive-textfield__tooltip",3,"describeId","content","direction","mode","showDelay","hideDelay",4,"ngIf"],["polymorpheus-outlet","","class","icon",3,"content","context",4,"ngIf"],["automation-id","tui-primitive-textfield__value",1,"input","input_template"],["polymorpheus-outlet","",1,"icon","icon_left",3,"content","context"],[3,"src"],["automation-id","tui-primitive-textfield__placeholder",1,"placeholder",3,"for"],["automation-id","tui-primitive-textfield__value-decoration","aria-hidden","true",1,"value-decoration"],[1,"value-decoration-inner"],[1,"ghost"],["automation-id","tui-primitive-textfield__example-text"],["class","postfix",3,"postfix_shifted",4,"ngIf"],[1,"postfix"],["polymorpheus-outlet","","automation-id","tui-primitive-textfield__custom-content",1,"custom-content",3,"content"],[1,"custom-icon",3,"src"],["automation-id","tui-primitive-textfield__cleaner","src","tuiIconCloseLarge",1,"cleaner",3,"click.stop"],["automation-id","tui-primitive-textfield__tooltip",3,"describeId","content","direction","mode","showDelay","hideDelay"],["polymorpheus-outlet","",1,"icon",3,"content","context"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](Sd),i["\u0275\u0275elementStart"](0,"tui-wrapper",0),i["\u0275\u0275listener"]("tuiHoveredChange",function(e){return t.onHovered(e)})("mousedown",function(e){return t.onMouseDown(e)}),i["\u0275\u0275elementStart"](1,"input",1,2),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.onModelChange(e)})("tuiFocusedChange",function(e){return t.onFocused(e)})("tuiAutofilledChange",function(e){return t.onAutofilled(e)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](3,dd,2,4,"div",3),i["\u0275\u0275elementStart"](4,"div",4),i["\u0275\u0275template"](5,pd,2,2,"div",5),i["\u0275\u0275elementStart"](6,"div",6),i["\u0275\u0275elementStart"](7,"span",7),i["\u0275\u0275text"](8),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](9,fd,2,3,"label",8),i["\u0275\u0275template"](10,md,7,3,"div",9),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](11,yd,2,1,"div",10),i["\u0275\u0275template"](12,bd,1,0,"tui-svg",11),i["\u0275\u0275template"](13,_d,1,6,"tui-tooltip",12),i["\u0275\u0275template"](14,Cd,2,2,"div",13),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("appearance",t.appearance)("readOnly",t.readOnly)("disabled",t.disabled)("focused",t.computedFocused)("hovered",t.computedHovered)("pressed",t.computedPressed)("invalid",t.computedInvalid),i["\u0275\u0275advance"](1),i["\u0275\u0275styleProp"]("padding-left",t.paddingLeft,"px")("padding-right",t.paddingRight,"px"),i["\u0275\u0275classProp"]("input_hidden",t.inputHidden),i["\u0275\u0275property"]("autocomplete",t.controller.autocomplete)("type",t.controller.type)("id",t.id)("readOnly",t.readOnly||!t.editable)("tuiInputMode",t.controller.inputMode)("tuiFocusable",t.computedFocusable)("tuiDescribedBy",t.id)("ngModel",t.value),i["\u0275\u0275attribute"]("disabled",t.computedDisabled||null)("maxLength",t.controller.maxLength)("name",t.name)("aria-placeholder",t.controller.exampleText)("aria-invalid",t.computedInvalid),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.inputHidden),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.iconAlignLeft),i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate"](t.value),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.hasPlaceholder),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.hasValueDecoration),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.hasCustomContent),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.hasCleaner),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.hasTooltip),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.iconAlignRight))}
1,directives:[ja,Lu,Nc,cd,$h,$t.DefaultValueAccessor,ed,Kh,Oc,$t.NgControlStatus,$t.NgModel,zh,Ft.O5,ha,Fa,Ih],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m)}[data-tui-host-size='s'][_nghost-%COMP%]{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}[data-tui-host-size='m'][_nghost-%COMP%]{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}[data-tui-host-size='l'][_nghost-%COMP%]{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font-size:.9375rem}.input[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0 .75rem;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit}.input[_ngcontent-%COMP%]:-webkit-autofill, .input[_ngcontent-%COMP%]:-webkit-autofill:focus, .input[_ngcontent-%COMP%]:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}[data-mode=onDark][_nghost-%COMP%]   .input[_ngcontent-%COMP%]:-webkit-autofill, [data-mode=onDark][_nghost-%COMP%]   .input[_ngcontent-%COMP%]:-webkit-autofill:focus, [data-mode=onDark][_nghost-%COMP%]   .input[_ngcontent-%COMP%]:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}[data-tui-host-size='s'][_nghost-%COMP%]   .input[_ngcontent-%COMP%]{padding:0 .5rem 0 .75rem}[data-tui-host-size='l'][_nghost-%COMP%]   .input[_ngcontent-%COMP%]{padding:0 1rem}._disabled[_nghost-%COMP%]   .input[_ngcontent-%COMP%]{pointer-events:none}._right-aligned[_nghost-%COMP%]   .input[_ngcontent-%COMP%]{text-align:right}[data-tui-host-size='l'][_nghost-%COMP%]:not(._label-outside)   .input[_ngcontent-%COMP%]{padding-top:1.25rem}[data-tui-host-size='l'][_nghost-%COMP%]:not(._label-outside)   .input[_ngcontent-%COMP%]:-webkit-autofill + .content[_ngcontent-%COMP%]   .placeholder[_ngcontent-%COMP%]{width:114%;transform:translateY(-.625rem) scale(.87)}[data-tui-host-size='m'][_nghost-%COMP%]:not(._label-outside)   .input[_ngcontent-%COMP%]{padding-top:1.125rem}[data-tui-host-size='m'][_nghost-%COMP%]:not(._label-outside)   .input[_ngcontent-%COMP%]:-webkit-autofill + .content[_ngcontent-%COMP%]   .placeholder[_ngcontent-%COMP%]{width:118%;transform:translateY(-.5rem) scale(.85)}.ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip}.filler[_ngcontent-%COMP%]{vertical-align:middle}.content[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;padding:0 .75rem;box-sizing:border-box;align-items:center;overflow:hidden}[data-tui-host-size='s'][_nghost-%COMP%]   .content[_ngcontent-%COMP%]{padding-right:.5rem}[data-tui-host-size='l'][_nghost-%COMP%]   .content[_ngcontent-%COMP%]{padding-left:1rem}.wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;padding-right:.25rem}.value-decoration[_ngcontent-%COMP%]{display:flex;align-items:center;height:1.25rem;margin:-1.25rem 0;padding:.625rem 0;box-sizing:content-box;color:var(--tui-text-03);letter-spacing:normal;text-transform:none}._right-aligned[_nghost-%COMP%]   .value-decoration[_ngcontent-%COMP%]{flex-direction:row-reverse;margin-right:-.25rem}[data-tui-host-size='m']._label-outside[_nghost-%COMP%]   .value-decoration[_ngcontent-%COMP%]{margin-top:-1.1875rem}[data-mode=onDark][_nghost-%COMP%]   .value-decoration[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}.value-decoration-inner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.postfix[_ngcontent-%COMP%]{transition-property:color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;color:var(--tui-text-01)}.postfix_shifted[_ngcontent-%COMP%]{margin-left:.5ch}[data-mode=onDark][_nghost-%COMP%]   .postfix[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}.placeholder[_ngcontent-%COMP%]{transition-property:transform,min-width,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;height:1.25rem;font-size:.8125rem;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--tui-text-02);transform-origin:left;letter-spacing:normal;text-transform:none}.placeholder_raised[_ngcontent-%COMP%]{width:114%;
1transform:translateY(-.625rem) scale(.87)}[data-tui-host-size='m'][_nghost-%COMP%]   .placeholder_raised[_ngcontent-%COMP%]{width:118%;transform:translateY(-.5rem) scale(.85);letter-spacing:.025rem}._invalid[_nghost-%COMP%]:not(._focused)   .placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused)._hovered   .placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill)}[data-mode=onDark]._invalid[_nghost-%COMP%]:not(._focused)   .placeholder_raised[_ngcontent-%COMP%], [data-mode=onDark]._invalid[_nghost-%COMP%]:not(._focused)._hovered   .placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill-night)}._focused[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%], [data-tui-host-size='l']._focused._label-outside[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%], [data-tui-host-size='m']._focused._label-outside[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-tui-host-size='l'][_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%]{font-size:.9375rem}[data-tui-host-size='l']._focused[_nghost-%COMP%]:not(._label-outside)   .placeholder[_ngcontent-%COMP%], [data-tui-host-size='m']._focused[_nghost-%COMP%]:not(._label-outside)   .placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01)}[data-mode=onDark][_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-tui-host-size='l'][data-mode=onDark]._focused[_nghost-%COMP%]:not(._label-outside)   .placeholder[_ngcontent-%COMP%], [data-tui-host-size='m'][data-mode=onDark]._focused[_nghost-%COMP%]:not(._label-outside)   .placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._focused[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%], [data-tui-host-size='l'][data-mode=onDark]._focused._label-outside[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%], [data-tui-host-size='m'][data-mode=onDark]._focused._label-outside[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}.cleaner[_ngcontent-%COMP%]{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.cleaner[_ngcontent-%COMP%]:hover{color:var(--tui-text-02)}._disabled[_nghost-%COMP%]   .cleaner[_ngcontent-%COMP%], ._readonly[_nghost-%COMP%]   .cleaner[_ngcontent-%COMP%]{pointer-events:none}[data-mode=onDark][_nghost-%COMP%]   .cleaner[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][_nghost-%COMP%]   .cleaner[_ngcontent-%COMP%]:hover{color:var(--tui-text-01-night)}.icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:var(--tui-text-03)}.icon_left[_ngcontent-%COMP%]{margin:0 .5rem 0 -.25rem}[data-tui-host-size='s'][_nghost-%COMP%]   .icon_left[_ngcontent-%COMP%]{margin-right:.25rem}.value[_ngcontent-%COMP%]{height:0;display:none;visibility:hidden;white-space:pre}table[_nghost-%COMP%]   .value[_ngcontent-%COMP%], table   [_nghost-%COMP%]   .value[_ngcontent-%COMP%]{display:block}.custom-content[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin-right:.25rem;pointer-events:none}.custom-icon[_ngcontent-%COMP%]{width:100%;height:100%}.icon[_ngcontent-%COMP%]{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);box-sizing:border-box;cursor:pointer;transition-property:color,transform;position:relative;pointer-events:none}.icon[_ngcontent-%COMP%]:hover{color:var(--tui-text-02)}._disabled[_nghost-%COMP%]   .icon[_ngcontent-%COMP%], ._readonly[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{pointer-events:none}[data-mode=onDark][_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][_nghost-%COMP%]   .icon[_ngcontent-%COMP%]:hover{color:var(--tui-text-01-night)}._hovered[_nghost-%COMP%]:not(._readonly)   .icon[_ngcontent-%COMP%]{color:var(--tui-text-02)}[data-mode=onDark]._hovered[_nghost-%COMP%]:not(._readonly)   .icon[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onLight]._hovered[_nghost-%COMP%]:not(._readonly)   .icon[_ngcontent-%COMP%]{color:var(--tui-text-01)}.input_hidden[_ngcontent-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}[data-tui-host-size][_nghost-%COMP%]   .input_template[_ngcontent-%COMP%]{display:flex;width:100%;max-width:100%;align-items:center;padding-right:0;border-right:0 solid transparent;pointer-events:none}.input[_ngcontent-%COMP%]::-webkit-caps-lock-indicator{margin-right:.375rem;
1align-self:center}[data-tui-host-size='l'][_nghost-%COMP%]:not(._label-outside)   .input[_ngcontent-%COMP%]::-webkit-caps-lock-indicator{margin-top:-1.25rem}.input[_ngcontent-%COMP%]::-webkit-contacts-auto-fill-button, .input[_ngcontent-%COMP%]::-webkit-credentials-auto-fill-button, .input[_ngcontent-%COMP%]::-webkit-credit-card-auto-fill-button{background-color:var(--tui-text-03)}[data-tui-host-size='l'][_nghost-%COMP%]:not(._label-outside)   .input[_ngcontent-%COMP%]::-webkit-contacts-auto-fill-button, [data-tui-host-size='l'][_nghost-%COMP%]:not(._label-outside)   .input[_ngcontent-%COMP%]::-webkit-credentials-auto-fill-button, [data-tui-host-size='l'][_nghost-%COMP%]:not(._label-outside)   .input[_ngcontent-%COMP%]::-webkit-credit-card-auto-fill-button{margin-top:-1.25rem}.input[_ngcontent-%COMP%]::-webkit-contacts-auto-fill-button:hover, .input[_ngcontent-%COMP%]::-webkit-credentials-auto-fill-button:hover, .input[_ngcontent-%COMP%]::-webkit-credit-card-auto-fill-button:hover{background-color:var(--tui-text-02)}.text-template[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0}),Rr([ns()],e.prototype,"editable",void 0),Rr([ns()],e.prototype,"filler",void 0),Rr([ns()],e.prototype,"iconAlign",void 0),Rr([ns()],e.prototype,"iconContent",void 0),Rr([ns()],e.prototype,"readOnly",void 0),Rr([ns()],e.prototype,"invalid",void 0),Rr([ns()],e.prototype,"disabled",void 0),Rr([ns()],e.prototype,"postfix",void 0),Rr([ns()],e.prototype,"value",void 0),Rr([rs],e.prototype,"getContext",null),e=Rr([Ur(0,(0,i.Inject)(Fs)),Ur(1,(0,i.Inject)(Ns)),Ur(2,(0,i.Inject)(Sh)),Ur(3,(0,i.Inject)(sd))],e),e})(),Td=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,$t.FormsModule,ud,Gh,Wh,Rc,Yh,ga,Qa,La,xh,td,Fc,Mu]]}),e})();const Bd=[{provide:Fh,deps:[[new i.Optional,Mh]],useFactory:function(e){return(e=e||new Mh).limitWidth="fixed",e}}],kd=[{provide:Fh,deps:[[new i.Optional,Mh]],useFactory:function(e){return(e=e||new Mh).align="left",e}}],Pd={provide:Rs,deps:[[new i.Optional,new i.Self,$t.NG_VALUE_ACCESSOR]],useFactory:function(e){return e}},Od=["*"],Fd=[Pd,Bd,{provide:ko,useExisting:(0,i.forwardRef)(()=>Ld)},{provide:Cs,useExisting:(0,i.forwardRef)(()=>Ld)}];let Ld=(()=>{let e=class extends qs{constructor(e,t){super(e,t),this.icon=null,this.iconAlign="left",this.open=!1,this.datalist=""}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){return zi(this.nativeFocusableElement)||!!this.hostedDropdown&&this.hostedDropdown.focused}get canOpen(){return!this.computedDisabled&&!this.readOnly&&!!this.datalist}onValueChange(e){this.updateValue(e),this.open=!0}onHovered(e){this.updateHovered(e)}onActiveZone(e){this.updateFocused(e)}handleOption(e){this.setNativeValue(String(e)),this.focusInput(),this.updateValue(String(e)),this.open=!1}getFallbackValue(){return""}focusInput(e=!1){this.nativeFocusableElement&&Hi(this.nativeFocusableElement,!0,e)}setNativeValue(e){this.nativeFocusableElement&&(this.nativeFocusableElement.value=e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"]($t.NgControl,10),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-input"]],contentQueries:function(e,t,n){if(1&e&&i["\u0275\u0275contentQuery"](n,Ou,5,i.TemplateRef),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.datalist=e.first)}},viewQuery:function(e,t){if(1&e&&(i["\u0275\u0275viewQuery"](Vh,5),i["\u0275\u0275viewQuery"](xd,5)),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.hostedDropdown=e.first),i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.textfield=e.first)}},inputs:{icon:"icon",iconAlign:"iconAlign"},features:[i["\u0275\u0275ProvidersFeature"](Fd),i["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:Od,decls:3,vars:13,consts:[[1,"hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["automation-id","tui-input__textfield",1,"textfield",3,"pseudoFocused","pseudoHovered","invali
1d","nativeId","readOnly","iconContent","iconAlign","disabled","focusable","value","valueChange","hoveredChange"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275elementStart"](0,"tui-hosted-dropdown",0),i["\u0275\u0275listener"]("openChange",function(e){return t.open=e})("tuiActiveZoneChange",function(e){return t.onActiveZone(e)}),i["\u0275\u0275elementStart"](1,"tui-primitive-textfield",1),i["\u0275\u0275listener"]("valueChange",function(e){return t.onValueChange(e)})("hoveredChange",function(e){return t.onHovered(e)}),i["\u0275\u0275projection"](2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("canOpen",t.canOpen)("content",t.datalist||"")("open",t.open),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("pseudoFocused",t.computedFocused)("pseudoHovered",t.computedHovered)("invalid",t.computedInvalid)("nativeId",t.nativeId)("readOnly",t.readOnly)("iconContent",t.icon)("iconAlign",t.iconAlign)("disabled",t.computedDisabled)("focusable",t.computedFocusable)("value",t.value))},directives:[Vh,lc,xd],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m)}._disabled[_nghost-%COMP%]{pointer-events:none}.hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.textfield[_ngcontent-%COMP%]{border-radius:inherit}"],changeDetection:0}),Bh([ns()],e.prototype,"icon",void 0),Bh([ns()],e.prototype,"iconAlign",void 0),e=Bh([kh(0,(0,i.Optional)()),kh(0,(0,i.Self)()),kh(0,(0,i.Inject)($t.NgControl)),kh(1,(0,i.Inject)(i.ChangeDetectorRef))],e),e})(),Md=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,cc,Td,qh]]}),e})();const Dd=new ca((()=>{let e=class{constructor(e,t){this.dropdown=e,this.textfieldSize=t}get arrowIcon(){return vs(this.textfieldSize.size)?"tuiIconChevronDownLarge":"tuiIconChevronDown"}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Vh),i["\u0275\u0275directiveInject"](vh))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-arrow"]],decls:2,vars:5,consts:[[1,"icon",3,"src"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"tui-svg",0),i["\u0275\u0275pipe"](1,"async"),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275classProp"]("icon_rotated",i["\u0275\u0275pipeBind1"](1,3,t.dropdown.openChange)),i["\u0275\u0275property"]("src",t.arrowIcon))},directives:[Fa],pipes:[Ft.Ov],styles:[".icon[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;cursor:pointer}.icon_rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),e=Bh([kh(0,(0,i.Inject)(Vh)),kh(1,(0,i.Inject)(vh))],e),e})());let Nd=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,La]]}),e})(),Rd=(()=>{let e=class{constructor(e,t,n){this.elementRef=e,this.documentRef=t,this.destroy$=n}set tuiScrollIntoView(e){e&&Ai(0).pipe(bo(this.destroy$)).subscribe(()=>{this.elementRef.nativeElement.dispatchEvent(Ao("tui-scroll-into-view",{bubbles:!0,detail:this.elementRef.nativeElement},this.documentRef))})}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](Ft.K0),i["\u0275\u0275directiveInject"](zo))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},features:[i["\u0275\u0275ProvidersFeature"]([zo])]}),Rr([is()],e.prototype,"tuiScrollIntoView",null),e=Rr([Ur(0,(0,i.Inject)(i.ElementRef)),Ur(1,(0,i.Inject)(Ft.K0)),Ur(2,(0,i.Inject)(zo))],e),e})(),Ud=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();
1function jd(e,t){1&e&&i["\u0275\u0275elementContainer"](0)}function Qd(e,t){1&e&&i["\u0275\u0275element"](0,"tui-svg",3),2&e&&i["\u0275\u0275property"]("tuiScrollIntoView",!0)}function Hd(e,t){1&e&&i["\u0275\u0275element"](0,"span",4)}const Vd=new ca((()=>{let e=class{constructor(e,t,n,r){this.context=e,this.host=t,this.option=n,this.control=r,this.selected$=no(this.control).pipe((0,on.U)(e=>jr(this.option.value)&&jr(e)&&this.matcher(e,this.option.value)))}get matcher(){return this.host.identityMatcher||Di}ngOnInit(){jr(this.option.value)&&this.host.checkOption&&this.host.checkOption(this.option.value)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](la),i["\u0275\u0275directiveInject"](Cs),i["\u0275\u0275directiveInject"](Bu),i["\u0275\u0275directiveInject"]($t.NgControl))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-select-option"]],decls:5,vars:5,consts:[[4,"ngTemplateOutlet"],["automation-id","tui-select-option__checkmark","class","checkmark","src","tuiIconCheckLarge",3,"tuiScrollIntoView",4,"ngIf","ngIfElse"],["dummy",""],["automation-id","tui-select-option__checkmark","src","tuiIconCheckLarge",1,"checkmark",3,"tuiScrollIntoView"],[1,"dummy"]],template:function(e,t){if(1&e&&(i["\u0275\u0275template"](0,jd,1,0,"ng-container",0),i["\u0275\u0275template"](1,Qd,1,1,"tui-svg",1),i["\u0275\u0275pipe"](2,"async"),i["\u0275\u0275template"](3,Hd,1,0,"ng-template",null,2,i["\u0275\u0275templateRefExtractor"])),2&e){const e=i["\u0275\u0275reference"](4);i["\u0275\u0275property"]("ngTemplateOutlet",t.context.$implicit),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",i["\u0275\u0275pipeBind1"](2,3,t.selected$))("ngIfElse",e)}},directives:[Ft.tP,Ft.O5,Fa,Rd],pipes:[Ft.Ov],styles:["[_nghost-%COMP%]{display:flex;flex:1;align-items:center;max-width:100%}.checkmark[_ngcontent-%COMP%]{margin:0 -.375rem 0 auto;border-left:5px solid transparent}.dummy[_ngcontent-%COMP%]{width:1.5rem}"],changeDetection:0}),e=Bh([kh(0,(0,i.Inject)(la)),kh(1,(0,i.Inject)(Cs)),kh(2,(0,i.Inject)(Bu)),kh(3,(0,i.Inject)($t.NgControl))],e),e})());let qd=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,La,Ud]]}),e})();function Kd(e,t){if(1&e&&i["\u0275\u0275element"](0,"div",3),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("content",e.computedContent)("context",e.computeContext(e.value,e.computedFocused))}}const Gd=["*"];var zd;const Wd=Vd;let $d=(()=>{let e=zd=class extends zs{constructor(e,t,n){super(e,t),this.textfieldCleaner=n,this.identityMatcher=Di,this.valueContent="",this.arrow=Dd,this.datalist=""}get nativeFocusableElement(){return this.textfield?this.textfield.nativeFocusableElement:null}get focused(){return zi(this.nativeFocusableElement)||!!this.hostedDropdown&&this.hostedDropdown.focused}get computedValue(){return null===this.value?"":String(this.value)||" "}get computedContent(){return this.valueContent||this.computedValue}get canOpen(){return!this.computedDisabled&&!this.readOnly}onValueChange(e){e||this.updateValue(null)}onActiveZone(e){this.updateFocused(e)}onHovered(e){this.updateHovered(e)}onKeyDownDelete(){this.textfieldCleaner.cleaner&&this.updateValue(null)}handleOption(e){this.focusInput(),this.updateValue(e),this.hostedDropdown&&this.hostedDropdown.updateOpen(!1)}computeContext(e,t){return{$implicit:e,active:t}}focusInput(e=!1){this.nativeFocusableElement&&Hi(this.nativeFocusableElement,!0,e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"]($t.NgControl,10),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](eh))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-select"]],contentQueries:function(e,t,n){if(1&e&&i["\u0275\u0275contentQuery"](n,Ou,5,i.TemplateRef),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.datalist=e.first)}},viewQuery:function(e,t){if(1&e&&(i["\u0275\u0275viewQuery"](xd,5),i["\u0275\u0275viewQuery"](Vh,5)),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.textfield=e.first),i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.hostedDropdown=e.first)}},inputs:{identityMatcher:"identityMatcher",valueContent:"valueContent"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ko,useExisting:(0,i.forwardRef)(()=>zd)},{provide:Cs,useExisting:(0,i.forwardRef)(()=>zd)},{provide:Ls,useValue:Wd},Bd]),i["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:Gd,decls:4,vars:13,consts:[[1,"hosted",3,"canOpen","content","tuiActiveZoneChange"],["automation-id","tui-select__textfield",1,"textfield",3,"editable","pseudoFocused","pseudoHovered","invali
1d","nativeId","readOnly","iconContent","disabled","focusable","value","valueChange","hoveredChange","keydown.delete.prevent","keydown.backspace.prevent"],["polymorpheus-outlet","","class","value","automation-id","tui-select__value",3,"content","context",4,"ngIf"],["polymorpheus-outlet","","automation-id","tui-select__value",1,"value",3,"content","context"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275elementStart"](0,"tui-hosted-dropdown",0),i["\u0275\u0275listener"]("tuiActiveZoneChange",function(e){return t.onActiveZone(e)}),i["\u0275\u0275elementStart"](1,"tui-primitive-textfield",1),i["\u0275\u0275listener"]("valueChange",function(e){return t.onValueChange(e)})("hoveredChange",function(e){return t.onHovered(e)})("keydown.delete.prevent",function(){return t.onKeyDownDelete()})("keydown.backspace.prevent",function(){return t.onKeyDownDelete()}),i["\u0275\u0275projection"](2),i["\u0275\u0275template"](3,Kd,1,2,"div",2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("canOpen",t.canOpen)("content",t.datalist||""),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("editable",!1)("pseudoFocused",t.computedFocused)("pseudoHovered",t.computedHovered)("invalid",t.computedInvalid)("nativeId",t.nativeId)("readOnly",t.readOnly)("iconContent",t.arrow)("disabled",t.computedDisabled)("focusable",t.computedFocusable)("value",t.computedValue),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",null!==t.value))},directives:[Vh,lc,xd,Ft.O5,ha],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m)}[_nghost-%COMP%]:not(._readonly)     input:not(:disabled){cursor:pointer}._readonly[_nghost-%COMP%]     input{cursor:default}.hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.textfield[_ngcontent-%COMP%]{border-radius:inherit}.value[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}"],changeDetection:0}),Bh([ns()],e.prototype,"identityMatcher",void 0),Bh([ns()],e.prototype,"valueContent",void 0),Bh([rs],e.prototype,"computeContext",null),e=zd=Bh([kh(0,(0,i.Optional)()),kh(0,(0,i.Self)()),kh(0,(0,i.Inject)($t.NgControl)),kh(1,(0,i.Inject)(i.ChangeDetectorRef)),kh(2,(0,i.Inject)(eh))],e),e})(),Yd=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,ga,cc,Td,qh,qd,Nd]]}),e})(),Xd=(()=>{let e=class{transform(e,t,...n){return t(e,...n)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i["\u0275\u0275definePipe"]({name:"tuiMapper",type:e,pure:!0}),e})(),Jd=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();function Zd(e){return"."===e?",":"."}function eA(e=0,t=",",n){so.assert(Number.isInteger(e)),so.assert(e>=0);let r=-1;const i=!!n&&Ys(n);return n&&i&&n.addEventListener("beforeinput",()=>{r=n.selectionStart||0}),(o,s)=>{if(n&&i&&zi(n)){const e=function(e="",t,n,r=","){const i=new RegExp(`${r}.+`),o=e.replace(i,""),s=t.replace(i,"");return Math.abs(o.length-s.length)>2?t.length:e.length===t.length?e.indexOf(r)<=n?function(e,t){for(let n=0;n<t.length;n++)if(e[n]!==t[n])return"0"===t[n]?n:n+1;return t.length}(e,t):o===s?n-1:n+1:0===e.length?1:n+(t.length-e.length)}(s.previousConformedValue,o,r);setTimeout(()=>{n.setSelectionRange(e,e)})}if(n&&n.ownerDocument!==go(n)&&zi(n)&&s.currentCaretPosition){const e=s.currentCaretPosition+function(e="",t){if(Math.abs(e.length-t.length)>2)return 0;const n=e.split(ji).length;return t.split(ji).length-n}(s.previousConformedValue,o);setTimeout(()=>{n.setSelectionRange(e,e)})}if(""===o||!e)return{value:o};const a=function(e,t=","){return-1===e.indexOf(t)?e+t:e}(o,t),l=a.split(t)[1];return{value:a+"0".repeat(e-l.length)}}}const tA=/[1-9]/;
1function nA({allowDecimal:e=!1,decimalSymbol:t=",",autoCorrectDecimalSymbol:n=!0,decimalLimit:r=2,requireDecimal:i=!1,allowNegative:o=!1,integerLimit:s=0}={}){return so.assert(Number.isInteger(r)),so.assert(r>0),so.assert(Number.isInteger(s)),so.assert(s>=0),(a,{previousConformedValue:l})=>{l&&i&&a.split(ji).join("")===l.split(ji).join("").split(",").join("")&&(a=l);const c=("-"===a[0]||"\u2013"===a[0])&&o;if(function(e,t,n){return n?/^[,.]$/.test(e):e===t}(a,t,n)&&e)return["0",t,ps];c&&(a=a.substr(1));const u=function(e,t,n){return n?Math.max(e.lastIndexOf(t),e.lastIndexOf(Zd(t))):e.lastIndexOf(t)}(a,t,n),h=-1!==u,d=h?a.slice(0,u):a,A=d.match(new RegExp(ji,"g"))||[];var p;const f=rA((p=(s?d.slice(0,s+A.length):d).replace(fs,"").replace(/^0+(?!\.|$)/,"0")).length>3?p.replace(/\B(?=(\d{3})+(?!\d))/g,ji):p);if(h&&e||i){const e=h?rA(a.slice(u+1).replace(fs,"")):[],n=r?e.slice(0,r):e;a[u]!==Zd(t)&&f.push("[]"),f.push(t,"[]",...n);for(let t=0;t<r-n.length;t++)f.push(ps)}return c&&(0===f.length&&f.push(ps),f.unshift("-")),function(e){const t=e.indexOf(ps);return-1!==t&&e[t+1]===ps&&(e[t]=tA),e}(f)}}function rA(e){return e.split("").map(e=>ps.test(e)?ps:e)}function iA(e){switch(e){case"":case"-":case",":case"-,":return!0;default:return!1}}function oA(e){return parseFloat(e.split(ji).join("").split(",").join("."))}let sA=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiValueAccessor",""]],features:[i["\u0275\u0275ProvidersFeature"]([Pd])]}),e})(),aA=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();var lA=n(5186);const cA=function(e,t,n,r,i){return[e,t,n,r,i]},uA=["*"];var hA;let dA=(()=>{let e=hA=class extends zs{constructor(e,t){super(e,t),this.min=-1/0,this.max=1/0,this.decimal="not-zero",this.precision=2,this.postfix="",this.mask=(e,t,n,r)=>({mask:nA({allowNegative:e,allowDecimal:"never"!==t,decimalLimit:n,requireDecimal:"always"===t}),pipe:eA("always"===t?n:0,",",r||void 0),guide:!1})}get nativeFocusableElement(){return!this.primitiveTextfield||this.computedDisabled?null:this.primitiveTextfield.nativeFocusableElement}get focused(){return!!this.primitiveTextfield&&this.primitiveTextfield.focused}get isNegativeAllowed(){return this.min<0}get inputMode(){return"never"===this.decimal?"numeric":"decimal"}get calculatedMaxLength(){return 18+("never"!==this.decimal&&this.nativeValue.includes(",")?this.precision+1:0)}get formattedValue(){const e=this.value||0,t=Math.abs(e)%1>0;let n="always"===this.decimal||t?this.precision:0;const r=t?e.toString().split(".")[1].substr(0,this.precision):"";return this.focused&&"always"!==this.decimal&&(n=r.length),function(e,t=null,n=",",r="\xa0"){const i=Math.floor(Math.abs(e)).toString(),o=e.toString().split(".")[1]||"",s=null===t?o:o.substr(0,t)+"0".repeat(Math.max(t-o.length,0)),a=i.length%3;let l=(e<0?"-":"")+i.charAt(0);for(let c=1;c<i.length;c++)c%3===a&&i.length>3&&(l+=r),l+=i.charAt(c);return s||t?l+n+s:l}(e,n)}get computedValue(){return this.focused||!this.isNativeValueInLimit?this.nativeValue:null===this.value?iA(this.nativeValue)?this.nativeValue:"":this.formattedValue}onValue(e){if(iA(e))return void this.updateValue(null);if(this.isNativeValueNotFinished)return;const t=this.absoluteCapInputValue(e);null===t||isNaN(t)||(this.updateValue(t),t!==oA(e)&&(this.nativeValue=this.formattedValue))}onKeyDown(e){","!==e.key&&"."!==e.key||("never"!==this.decimal?this.nativeValue.includes(",")&&(e.preventDefault(),this.setCaretAfterComma()):e.preventDefault())}onFocused(e){if(this.updateFocused(e),e)return;const t=oA(this.nativeValue);if(isNaN(t))return void this.clear();const n=Math.min(this.max,Math.max(this.min,t));this.updateValue(n),this.nativeValue=this.formattedValue}onHovered(e){this.updateHovered(e)}onPressed(e){this.updatePressed(e)}onZero(e){const t=this.nativeValue.split(",")[1]||"",{nativeFocusableElement:n}=this;t.length<this.precision||!n||!n.selectionStart||"0"!==this.nativeValue[n.selectionStart]||(e.preventDefault(),n.selectionStart++)}get isNativeValueInLimit(){if(""===this.nativeValue)return!0;const e=oA(this.nativeValue);return e>=this.min&&e<=this.max}get isNativeValueNotFinished(){const e=oA(this.nativeValue);return e<0?e>this.max:e<this.min}get nativeValue(){return this.nativeFocusableElement?this.nativeFocusableElement.value:""}set nativeValue(e){this.primitiveTextfield&&this.nativeFocusableElement&&(this.primitiveTextfield.value=e,this.nativeFocusableElement.value=e)}
1clear(){this.nativeValue="",this.updateValue(null)}absoluteCapInputValue(e){const t=oA(e),n=t<0?Math.max(this.min,t):Math.min(t,this.max);return isNaN(n)||n<this.min||n>this.max?null:n}setCaretAfterComma(){if(!this.nativeFocusableElement)return;const e=this.nativeValue.length-this.precision;this.nativeFocusableElement.setSelectionRange(e,e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"]($t.NgControl,10),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-input-number"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](xd,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.primitiveTextfield=e.first)}},hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("keydown.0",function(e){return t.onZero(e)})},inputs:{min:"min",max:"max",decimal:"decimal",precision:"precision",postfix:"postfix"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ko,useExisting:(0,i.forwardRef)(()=>hA)}]),i["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:uA,decls:3,vars:22,consts:[["tuiValueAccessor","","tuiTextfieldInputMode","decimal",1,"textfield",3,"pseudoHovered","pseudoFocused","invalid","tuiTextfieldMaxLength","readOnly","disabled","textMask","value","postfix","focusable","valueChange","hoveredChange","focusedChange","pressedChange","keydown"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275elementStart"](0,"tui-primitive-textfield",0),i["\u0275\u0275listener"]("valueChange",function(e){return t.onValue(e)})("hoveredChange",function(e){return t.onHovered(e)})("focusedChange",function(e){return t.onFocused(e)})("pressedChange",function(e){return t.onPressed(e)})("keydown",function(e){return t.onKeyDown(e)}),i["\u0275\u0275pipe"](1,"tuiMapper"),i["\u0275\u0275projection"](2),i["\u0275\u0275elementEnd"]()),2&e&&i["\u0275\u0275property"]("pseudoHovered",t.pseudoHovered)("pseudoFocused",t.computedFocused)("invalid",t.computedInvalid)("tuiTextfieldMaxLength",t.calculatedMaxLength)("readOnly",t.readOnly)("disabled",t.computedDisabled)("textMask",i["\u0275\u0275pipeBindV"](1,10,i["\u0275\u0275pureFunction5"](16,cA,t.isNegativeAllowed,t.mask,t.decimal,t.precision,t.nativeFocusableElement)))("value",t.computedValue)("postfix",t.postfix)("focusable",t.focusable)},directives:[xd,sA,uh,gh,lA.hd],pipes:[Xd],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m)}.textfield[_ngcontent-%COMP%]{border-radius:inherit}"],changeDetection:0}),Bh([ns()],e.prototype,"min",void 0),Bh([ns()],e.prototype,"max",void 0),Bh([ns()],e.prototype,"decimal",void 0),Bh([ns()],e.prototype,"precision",void 0),Bh([ns()],e.prototype,"postfix",void 0),e=hA=Bh([kh(0,(0,i.Optional)()),kh(0,(0,i.Self)()),kh(0,(0,i.Inject)($t.NgControl)),kh(1,(0,i.Inject)(i.ChangeDetectorRef))],e),e})(),AA=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[lA.QA,Jd,Td,Ch,aA]]}),e})(),pA=(()=>{let e=class{constructor(e,t){this.element=e,this.renderer=t,this.tuiCheckedChange=new i.EventEmitter,this.updateProperty("checked",!1)}set tuiChecked(e){this.updateProperty("checked",e||!1),this.updateProperty("indeterminate",null===e)}onChange({checked:e}){this.updateProperty("indeterminate",!1),this.tuiCheckedChange.emit(e)}updateProperty(e,t){this.renderer.setProperty(this.element.nativeElement,e,t)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](i.Renderer2))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["input","tuiChecked",""],["input","tuiCheckedChange",""]],hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target)})},inputs:{tuiChecked:"tuiChecked"},outputs:{tuiCheckedChange:"tuiCheckedChange"}}),e=Kr([Gr(0,(0,i.Inject)(i.ElementRef)),Gr(1,(0,i.Inject)(i.Renderer2))],e),e})(),fA=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})(),gA=(()=>
1{let e=class{constructor(e){this.elementRef=e,this.tuiPressedChange=eo(this.elementRef.nativeElement)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiPressedChange",""]],outputs:{tuiPressedChange:"tuiPressedChange"}}),e=Kr([Gr(0,(0,i.Inject)(i.ElementRef))],e),e})(),mA=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})(),vA=(()=>{let e=class{constructor(e){this.tuiFocusVisibleChange=e}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"]($o))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiFocusVisibleChange",""]],outputs:{tuiFocusVisibleChange:"tuiFocusVisibleChange"},features:[i["\u0275\u0275ProvidersFeature"]([zo,$o])]}),e=Kr([Gr(0,(0,i.Inject)($o))],e),e})(),yA=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();const bA=["*"];var _A;let wA=(()=>{let e=_A=class{constructor(){this.name="tui-radio-group-"+_A.index++}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-radio-group"]],inputs:{name:"name"},ngContentSelectors:bA,decls:1,vars:0,template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275projection"](0))},encapsulation:2,changeDetection:0}),e.index=0,Bh([ns()],e.prototype,"name",void 0),e})();const CA=["focusableElement"];function SA(e,t){if(1&e&&i["\u0275\u0275element"](0,"div",4),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("@tuiScaleIn",e.animation)}}const EA={size:"m",appearances:{unchecked:"outline",checked:"primary"}},IA=new i.InjectionToken("Default parameters for radio component",{factory:()=>EA});var xA;let TA=(()=>{let e=xA=class extends zs{constructor(e,t,n,r,i){super(e,t),this.animationOptions=n,this.options=r,this.radioGroup=i,this.identityMatcher=Di,this.name=null,this.size=this.options.size,this.pseudoDisabled=!1,this.animation=Object.assign({value:""},this.animationOptions)}get appearance(){return this.checked?this.options.appearances.checked:this.options.appearances.unchecked}get computedDisabled(){return this.disabled||this.pseudoDisabled}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){return zi(this.nativeFocusableElement)}get checked(){return null===this.value?null===this.item:void 0!==this.item&&this.identityMatcher(this.value,this.item)}get computedName(){return this.name||this.radioGroupName||this.controlName||null}get isFocusable(){return!this.readOnly&&this.computedFocusable}onChecked(e){e&&this.updateValue(void 0!==this.item?this.item:this.fallbackValue)}onFocused(e){this.updateFocused(e)}onHovered(e){this.updateHovered(e)}onPressed(e){this.updatePressed(e)}onFocusVisible(e){this.updateFocusVisible(e)}get radioGroupName(){return null===this.radioGroup?null:this.radioGroup.name}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"]($t.NgControl,10),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](bs),i["\u0275\u0275directiveInject"](IA),i["\u0275\u0275directiveInject"](wA,8))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-radio"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](CA,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.focusableElement=e.first)}},hostVars:3,hostBindings:function(e,t){2&e&&(i["\u0275\u0275attribute"]("data-tui-host-size",t.size),i["\u0275\u0275classProp"]("_disabled",t.computedDisabled))},inputs:{identityMatcher:"identityMatcher",name:"name",size:"size",pseudoDisabled:"pseudoDisabled",item:"item"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ko,useExisting:(0,i.forwardRef)(()=>xA)}]),i["\u0275\u0275InheritDefinitionFeature"]],decls:4,vars:12,consts:[[3,"appearance","disabled","focused","hovered","pressed","invali
1d"],["class","mark",4,"ngIf"],["type","radio",1,"native",3,"id","disabled","tuiChecked","tuiFocusable","tuiFocusedChange","tuiHoveredChange","tuiPressedChange","tuiCheckedChange","tuiFocusVisibleChange"],["focusableElement",""],[1,"mark"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"tui-wrapper",0),i["\u0275\u0275template"](1,SA,1,1,"div",1),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](2,"input",2,3),i["\u0275\u0275listener"]("tuiFocusedChange",function(e){return t.onFocused(e)})("tuiHoveredChange",function(e){return t.onHovered(e)})("tuiPressedChange",function(e){return t.onPressed(e)})("tuiCheckedChange",function(e){return t.onChecked(e)})("tuiFocusVisibleChange",function(e){return t.onFocusVisible(e)}),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("appearance",t.appearance)("disabled",t.computedDisabled)("focused",t.computedFocusVisible)("hovered",t.computedHovered)("pressed",t.computedPressed)("invalid",t.computedInvalid),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.checked),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("id",t.id)("disabled",t.computedDisabled)("tuiChecked",t.checked)("tuiFocusable",t.isFocusable),i["\u0275\u0275attribute"]("name",t.computedName))},directives:[ja,Ft.O5,pA,Kh,zh,Nc,gA,vA],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;flex-shrink:0;border-radius:100%}[data-tui-host-size='m'][_nghost-%COMP%]{width:1rem;height:1rem}[data-tui-host-size='l'][_nghost-%COMP%]{width:1.5rem;height:1.5rem}._readonly[_nghost-%COMP%]{pointer-events:none}.mark[_ngcontent-%COMP%]{position:absolute;background-color:currentColor;border-radius:100%}[data-tui-host-size='m'][_nghost-%COMP%]   .mark[_ngcontent-%COMP%]{margin:.25rem;width:.5rem;height:.5rem}[data-tui-host-size='l'][_nghost-%COMP%]   .mark[_ngcontent-%COMP%]{margin:.4375rem;width:.625rem;height:.625rem}.native[_ngcontent-%COMP%]{padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.native[_ngcontent-%COMP%]:-webkit-autofill, .native[_ngcontent-%COMP%]:-webkit-autofill:focus, .native[_ngcontent-%COMP%]:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}._disabled[_nghost-%COMP%]   .native[_ngcontent-%COMP%]{cursor:default}"],data:{animation:[hl]},changeDetection:0}),Bh([ns()],e.prototype,"identityMatcher",void 0),Bh([ns()],e.prototype,"name",void 0),Bh([ns()],e.prototype,"size",void 0),Bh([ns()],e.prototype,"pseudoDisabled",void 0),e=xA=Bh([kh(0,(0,i.Optional)()),kh(0,(0,i.Self)()),kh(0,(0,i.Inject)($t.NgControl)),kh(1,(0,i.Inject)(i.ChangeDetectorRef)),kh(2,(0,i.Inject)(bs)),kh(3,(0,i.Inject)(IA)),kh(4,(0,i.Optional)()),kh(4,(0,i.Inject)(wA))],e),e})(),BA=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,fA,Gh,Wh,Rc,mA,yA,Qa]]}),e})();function kA(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-svg",2),2&e){const e=t.$implicit,n=i["\u0275\u0275nextContext"]();i["\u0275\u0275classProp"]("mark_on",!n.empty),i["\u0275\u0275property"]("src",e)}}const PA={size:"m",appearances:{unchecked:"outline",checked:"primary",indeterminate:"primary"},icons:{checked:({$implicit:e})=>"m"===e?"tuiIconCheck":"tuiIconCheckLarge",indeterminate:({$implicit:e})=>"m"===e?"tuiIconMinus":"tuiIconMinusLarge"}},OA=new i.InjectionToken("Default parameters for checkbox component",{factory:()=>PA});let FA=(()=>{let e=class{constructor(e){this.options=e,this.icon=this.options.icons.checked,this.size=this.options.size,this.disabled=!1,this.focused=!1,this.hovered=!1,this.pressed=!1,this.invalid=!1,this.value=!1}set valueSetter(e){!1!==e&&this.setCurrentIcon(e),this.value=e}get appearance(){switch(this.value){case!1:return this.options.appearances.unchecked;case!0:return this.options.appearances.checked;default:return this.options.appearances.indeterminate}}get empty(){return!1===this.value}get context(){return this.getContext(this.size)}getContext(e){return{$implicit:e}}setCurrentIcon(e){this.icon=null===e?this.options.icons.indeterminate:this.options.icons.checked}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](OA))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-primitive-checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i["\u0275\u0275attribute"]("data-tui-host-size",t.size)},inputs:{size:"size",disabled:"disabled",focused:"focused",hovered:"hovered",pressed:"pressed",invali
1d:"invalid",valueSetter:["value","valueSetter"]},decls:3,vars:8,consts:[[3,"appearance","disabled","focused","hovered","pressed","invalid"],["polymorpheus-outlet","",3,"content","context"],[1,"mark",3,"src"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"tui-wrapper",0),i["\u0275\u0275elementStart"](1,"span",1),i["\u0275\u0275template"](2,kA,1,3,"ng-template"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("appearance",t.appearance)("disabled",t.disabled)("focused",t.focused)("hovered",t.hovered)("pressed",t.pressed)("invalid",t.invalid),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("content",t.icon)("context",t.context))},directives:[ja,ha,Fa],styles:["[_nghost-%COMP%]{display:block;font-size:0;flex-shrink:0}[data-tui-host-size='m'][_nghost-%COMP%]{width:1rem;height:1rem;border-radius:var(--tui-radius-xs)}[data-tui-host-size='l'][_nghost-%COMP%]{width:1.5rem;height:1.5rem;border-radius:var(--tui-radius-s)}.mark[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:block;width:100%;height:100%;transform:scale(0)}.mark_on[_ngcontent-%COMP%]{transform:scale(1)}"],changeDetection:0}),Rr([ns()],e.prototype,"size",void 0),Rr([ns()],e.prototype,"disabled",void 0),Rr([ns()],e.prototype,"focused",void 0),Rr([ns()],e.prototype,"hovered",void 0),Rr([ns()],e.prototype,"pressed",void 0),Rr([ns()],e.prototype,"invalid",void 0),Rr([ns()],e.prototype,"valueSetter",null),Rr([rs],e.prototype,"getContext",null),e=Rr([Ur(0,(0,i.Inject)(OA))],e),e})(),LA=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[La,Qa,ga]]}),e})();const MA=["focusableElement"];var DA;let NA=(()=>{let e=DA=class extends zs{constructor(e,t,n){super(e,n),this.options=t,this.size=this.options.size}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){return zi(this.nativeFocusableElement)}get computedFocusable(){return!this.computedDisabled&&!this.readOnly&&this.focusable}onChecked(e){this.updateValue(e)}onFocused(e){this.updateFocused(e)}onHovered(e){this.updateHovered(e)}onPressed(e){this.updatePressed(e)}onFocusVisible(e){this.updateFocusVisible(e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"]($t.NgControl,10),i["\u0275\u0275directiveInject"](OA),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-checkbox"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](MA,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.focusableElement=e.first)}},hostVars:1,hostBindings:function(e,t){2&e&&i["\u0275\u0275attribute"]("data-tui-host-size",t.size)},inputs:{size:"size"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ko,useExisting:(0,i.forwardRef)(()=>DA)}]),i["\u0275\u0275InheritDefinitionFeature"]],decls:3,vars:11,consts:[[3,"size","disabled","focused","hovered","pressed","invalid","value"],["type","checkbox","automation-id","tui-checkbox__native",1,"native",3,"disabled","id","tuiChecked","tuiFocusable","tuiFocusedChange","tuiHoveredChange","tuiPressedChange","tuiCheckedChange","tuiFocusVisibleChange"],["focusableElement",""]],template:function(e,t){1&e&&(i["\u0275\u0275element"](0,"tui-primitive-checkbox",0),i["\u0275\u0275elementStart"](1,"input",1,2),i["\u0275\u0275listener"]("tuiFocusedChange",function(e){return t.onFocused(e)})("tuiHoveredChange",function(e){return t.onHovered(e)})("tuiPressedChange",function(e){return t.onPressed(e)})("tuiCheckedChange",function(e){return t.onChecked(e)})("tuiFocusVisibleChange",function(e){return t.onFocusVisible(e)}),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("size",t.size)("disabled",t.disabled)("focused",t.computedFocusVisible)("hovered",t.computedHovered)("pressed",t.computedPressed)("invalid",t.computedInvalid)("value",t.value),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("disabled",t.disabled)("id",t.id)("tuiChecked",t.value)("tuiFocusable",t.computedFocusable))}
1,directives:[FA,pA,Kh,zh,Nc,gA,vA],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;flex-shrink:0}[data-tui-host-size='m'][_nghost-%COMP%]{width:1rem;height:1rem}[data-tui-host-size='l'][_nghost-%COMP%]{width:1.5rem;height:1.5rem}.native[_ngcontent-%COMP%]{padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.native[_ngcontent-%COMP%]:-webkit-autofill, .native[_ngcontent-%COMP%]:-webkit-autofill:focus, .native[_ngcontent-%COMP%]:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}._disabled[_nghost-%COMP%]   .native[_ngcontent-%COMP%], ._readonly[_nghost-%COMP%]   .native[_ngcontent-%COMP%]{pointer-events:none}"],changeDetection:0}),Bh([ns()],e.prototype,"size",void 0),e=DA=Bh([kh(0,(0,i.Optional)()),kh(0,(0,i.Self)()),kh(0,(0,i.Inject)($t.NgControl)),kh(1,(0,i.Inject)(OA)),kh(2,(0,i.Inject)(i.ChangeDetectorRef))],e),e})(),RA=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,fA,Gh,Wh,Rc,mA,yA,LA]]}),e})(),UA=(()=>{let e=class{constructor(){this.orientation="horizontal",this.adaptive=!1,this.collapsed=!1,this.rounded=!0,this.size="m"}get orientationHorizontal(){return"horizontal"===this.orientation}get orientationVertical(){return"vertical"===this.orientation}get sizeLarge(){return"l"===this.size}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiGroup","",5,"ng-container"]],hostAttrs:["role","group",1,"tui-group"],hostVars:12,hostBindings:function(e,t){2&e&&i["\u0275\u0275classProp"]("tui-group_adaptive",t.adaptive)("tui-group_collapsed",t.collapsed)("tui-group_rounded",t.rounded)("tui-group_orientation_horizontal",t.orientationHorizontal)("tui-group_orientation_vertical",t.orientationVertical)("tui-group_radius_large",t.sizeLarge)},inputs:{orientation:"orientation",adaptive:"adaptive",collapsed:"collapsed",rounded:"rounded",size:"size"}}),Rr([ns()],e.prototype,"orientation",void 0),Rr([ns()],e.prototype,"adaptive",void 0),Rr([ns()],e.prototype,"collapsed",void 0),Rr([ns()],e.prototype,"rounded",void 0),Rr([ns()],e.prototype,"size",void 0),e})(),jA=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez]]}),e})();class QA{constructor(e,t){this.openings=e,this.closingSelector=t}call(e,t){return t.subscribe(new HA(e,this.openings,this.closingSelector))}}class HA extends Si{constructor(e,t,n){super(e),this.openings=t,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=xi(this,t,t))}_next(e){const{contexts:t}=this;if(t){const n=t.length;for(let r=0;r<n;r++)t[r].window.next(e)}}_error(e){const{contexts:t}=this;if(this.contexts=null,t){const n=t.length;let r=-1;for(;++r<n;){const n=t[r];n.window.error(e),n.subscription.unsubscribe()}}super._error(e)}_complete(){const{contexts:e}=this;if(this.contexts=null,e){const t=e.length;let n=-1;for(;++n<t;){const t=e[n];t.window.complete(),t.subscription.unsubscribe()}}super._complete()}_unsubscribe(){const{contexts:e}=this;if(this.contexts=null,e){const t=e.length;let n=-1;for(;++n<t;){const t=e[n];t.window.unsubscribe(),t.subscription.unsubscribe()}}}notifyNext(e,t,n,r,i){if(e===this.openings){let e;try{const{closingSelector:n}=this;e=n(t)}catch(bB){return this.error(bB)}const n=new Rn.xQ,r=new zn.w,i={window:n,subscription:r};this.contexts.push(i);const o=xi(this,e,i);o.closed?this.closeWindow(this.contexts.length-1):(o.context=i,r.add(o)),this.destination.next(n)}else this.closeWindow(this.contexts.indexOf(e))}notifyError(e){this.error(e)}notifyComplete(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))}closeWindow(e){if(-1===e)return;const{contexts:t}=this,n=t[e],{window:r,subscription:i}=n;t.splice(e,1),r.complete(),i.unsubscribe()}}const VA=["*"],qA=new i.InjectionToken("A stream of selection changes"),KA=[zo,Bd,{provide:qA,deps:[zo,Ft.K0],useFactory:function(e,t){return Yr(t,"selectionchange").pipe((n=(0,jn.T)(Yr(t,"mouseup"),Yr(t,"keydown")),r=()=>Yr(t,"mousedown"),e=>e.lift(new QA(n,r))),(0,Jt.VS)(e=>e.pipe(ei(null))),bo(e));var n,r}}];var GA;
1const zA=/[ \-_\(\)]/g;let WA=(()=>{let e=GA=class extends qs{constructor(e,t,n,r){super(e,t),this.textfieldCleaner=r,this.phoneMaskAfterCountryCode="(###) ###-##-##",this.allowText=!1,this.search="",this.searchChange=new i.EventEmitter,this.textMaskOptions={mask:e=>!(this.allowText&&!this.value&&$A(e)&&"+"!==e)&&[...this.countryCode.split("")," ",...this.phoneMaskAfterCountryCode.replace(/[^#\- \(\)]+/g,"").split("").map(e=>"#"===e?/\d/:e)],pipe:e=>this.allowText?e:""===e&&this.focused&&!this.readOnly?`${this.countryCode} `:e.replace(/-$/,""),guide:!1},this.countryCode="+7",this.open=!1,n.subscribe(()=>{this.setCaretPosition()})}set countryCodeSetter(e){this.updateValueWithNewContryCode(e),this.countryCode=e}get nativeFocusableElement(){return!this.textfield||this.computedDisabled?null:this.textfield.nativeFocusableElement}get focused(){return zi(this.nativeFocusableElement)||!!this.dropdown&&this.dropdown.focused}get nativeValue(){return this.value?function(e,t,n){if(!e)return"";let r=t;t=t.replace(/[()]/g,""),e.startsWith(t)||(e=t+e.replace("+",""));const i=n.split(""),o=e.slice(t.length).split("");if(r+=" ",0===o.length)return r;for(let s=0;s<i.length&&0!==o.length;s++)"#"===i[s]?(r+=o[0]||"",o.splice(0,1)):r+=i[s];return r}(this.value,this.countryCode,this.phoneMaskAfterCountryCode):this.search||""}get inputMode(){return this.allowText?"text":"numeric"}get canOpen(){return!this.computedDisabled&&!this.readOnly&&!!this.datalist}get canClean(){return this.nativeValue!==this.countryCode&&this.textfieldCleaner.cleaner}onHovered(e){this.updateHovered(e)}onDrop(e){e.dataTransfer&&(this.setValueWithoutPrefix(e.dataTransfer.getData("text")),e.preventDefault())}onPaste(e){this.setValueWithoutPrefix(fo(e))}onActiveZone(e){this.updateFocused(e),!e||this.nativeValue||this.readOnly||this.allowText?(this.nativeValue===this.countryCode||null!==this.search&&isNaN(parseInt(this.search.replace(zA,""),10)))&&this.updateSearch(""):this.updateSearch(this.countryCode)}onBackspace(e){(e.target.selectionStart||0)<=this.nonRemovableLength&&e.target.selectionStart===e.target.selectionEnd&&e.preventDefault()}onValueChange(e){const t=$A(e=""===e?this.countryCode:e)?e:e.replace(zA,"");this.updateSearch(t),this.updateValue(t===this.countryCode||$A(t)?"":t),this.open=!0}handleOption(e){this.focusInput(),this.updateValue(e),this.updateSearch(""),this.open=!1}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(e){super.writeValue(e),this.updateSearch("")}getFallbackValue(){return""}get caretIsInForbiddenArea(){const{nativeFocusableElement:e}=this;if(!e)return!1;const{selectionStart:t,selectionEnd:n}=e;return zi(e)&&null!==t&&t<this.nonRemovableLength&&t===n}get nonRemovableLength(){return this.isTextValue?0:this.countryCode.length+1}get maxPhoneLength(){return this.countryCode.length+this.phoneMaskAfterCountryCode.replace(/[^#]+/g,"").length}get isTextValue(){return!!this.search&&$A(this.search)}setCaretPosition(){this.caretIsInForbiddenArea&&this.nativeFocusableElement&&this.nativeFocusableElement.setSelectionRange(this.nonRemovableLength,this.nonRemovableLength)}setValueWithoutPrefix(e){this.readOnly||(this.open=!0,this.updateValue(this.cleanValue(e)),this.updateSearch(this.allowText&&$A(e)?e:e.replace(zA,"")))}cleanValue(e){const t="+7"===this.countryCode?/^7|^8/:new RegExp(this.countryCode.substring(1)),n=this.value.length>this.countryCode.length&&this.value.length<this.maxPhoneLength,r=e.replace(zA,"").length,i=e.replace(/[^0-9]+/g,""),o=getSelection().toString().length;return n&&0===o?`${this.value}${i}`.slice(0,this.maxPhoneLength):r<this.maxPhoneLength-1?`${this.countryCode}${i}`.slice(0,this.maxPhoneLength):`${this.countryCode}${i.replace(t,"")}`.slice(0,this.maxPhoneLength)}focusInput(){this.nativeFocusableElement&&Hi(this.nativeFocusableElement,!0,!0)}updateSearch(e){this.search!==e&&(this.search=e,this.searchChange.emit(e))}updateValueWithNewContryCode(e){this.isTextValue||this.updateValue(this.value.replace(this.countryCode,e))}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"]($t.NgControl,10),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](qA),i["\u0275\u0275directiveInject"](eh))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-input-phone"]],contentQueries:function(e,t,n){if(1&e&&i["\u0275\u0275contentQuery"](n,Ou,5,i.TemplateRef),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.datalist=e.first)}},viewQuery:function(e,t){if(1&e&&(i["\u0275\u0275viewQuery"](Vh,5),i["\u0275\u0275viewQuery"](xd,5)),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.dropdown=e.first),i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.textfield=e.first)}},inputs:{phoneMaskAfterCountryCode:"phoneMaskAfterCountryCode",allowText:"allowText",search:"search",countryCodeSetter:["countryCode","countryCodeSetter"]},outputs:{searchChange:"searchChange"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ko,useExisting:(0,i.forwardRef)(()=>GA)},{provide:Cs,useExisting:(0,i.forwardRef)(()=>GA)},KA]),i["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:VA,decls:3,vars:14,consts:[[1,"hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["tuiValueAccessor","","tuiTextfieldType","tel",1,"textfield",3,"tuiTextfieldInputMode","pseudoHovered","pseudoFocused","invali
1d","nativeId","readOnly","disabled","focusable","textMask","value","tuiTextfieldCleaner","valueChange","hoveredChange","drop","keydown.backspace","paste.prevent"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275elementStart"](0,"tui-hosted-dropdown",0),i["\u0275\u0275listener"]("openChange",function(e){return t.open=e})("tuiActiveZoneChange",function(e){return t.onActiveZone(e)}),i["\u0275\u0275elementStart"](1,"tui-primitive-textfield",1),i["\u0275\u0275listener"]("valueChange",function(e){return t.onValueChange(e)})("hoveredChange",function(e){return t.onHovered(e)})("drop",function(e){return t.onDrop(e)})("keydown.backspace",function(e){return t.onBackspace(e)})("paste.prevent",function(e){return t.onPaste(e)}),i["\u0275\u0275projection"](2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("canOpen",t.canOpen)("content",t.datalist||"")("open",t.open),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("tuiTextfieldInputMode",t.inputMode)("pseudoHovered",t.pseudoHovered)("pseudoFocused",t.computedFocused)("invalid",t.computedInvalid)("nativeId",t.nativeId)("readOnly",t.readOnly)("disabled",t.computedDisabled)("focusable",t.focusable)("textMask",t.textMaskOptions)("value",t.nativeValue)("tuiTextfieldCleaner",t.canClean))},directives:[Vh,lc,xd,sA,wh,uh,lA.hd,th],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m)}._disabled[_nghost-%COMP%]{pointer-events:none}.hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.textfield[_ngcontent-%COMP%]{border-radius:inherit}"],changeDetection:0}),Bh([is()],e.prototype,"countryCodeSetter",null),Bh([ns()],e.prototype,"phoneMaskAfterCountryCode",void 0),Bh([ns()],e.prototype,"allowText",void 0),Bh([ns()],e.prototype,"search",void 0),e=GA=Bh([kh(0,(0,i.Optional)()),kh(0,(0,i.Self)()),kh(0,(0,i.Inject)($t.NgControl)),kh(1,(0,i.Inject)(i.ChangeDetectorRef)),kh(2,(0,i.Inject)(qA)),kh(3,(0,i.Inject)(eh))],e),e})();function $A(e){return isNaN(parseInt(e.replace(zA,""),10))}let YA=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[lA.QA,Td,qh,Ch,cc,aA]]}),e})();const XA=new i.InjectionToken("Stream that emits calendar data change"),JA=(new i.InjectionToken("A flag enabling mobile-specific behavior for supporting components",{factory:()=>!1}),new i.InjectionToken("A component for mobile data picker")),ZA=(new i.InjectionToken("Status for tags inside InputTag component",{factory:()=>"primary"}),new i.InjectionToken("Validation errors",{factory:()=>({})}),new i.InjectionToken("i18n 'cancel' word",{factory:hs("cancel")}),new i.InjectionToken("i18n 'done' word",{factory:hs("done")}),new i.InjectionToken("i18n 'more' word",{factory:hs("more")}),new i.InjectionToken("i18n 'Other date' text",{factory:hs("otherDate")})),ep=(new i.InjectionToken("choose day or range i18n texts",{factory:hs("mobileCalendarTexts")}),new i.InjectionToken("from and to i18n texts",{factory:hs("range")}),new i.InjectionToken("plus and minus i18n texts",{factory:hs("countTexts")}),new i.InjectionToken("time i18n texts",{factory:hs("time")}),new i.InjectionToken("date format i18n texts",{factory:hs("dateTexts")})),tp=(new i.InjectionToken("short bytes, kilobytes and megabytes i18n texts",{factory:hs("digitalInformationUnits")}),new i.InjectionToken("copy i18n texts",{factory:hs("copyTexts")}),new i.InjectionToken("password i18n texts",{factory:hs("passwordTexts")}),new i.InjectionToken("short calendar months i18n",{factory:hs("shortCalendarMonths")}),new i.InjectionToken("file i18n texts",{factory:hs("fileTexts")}),new i.InjectionToken("pagination i18n texts",{factory:hs("paginationTexts")}),new i.InjectionToken("tui-input-file i18n texts",{factory:hs("inputFileTexts")}),new i.InjectionToken("Localized countries names",{factory:hs("countries")}));function np(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"button",8),i["\u0275\u0275listener"]("click",function(){const t=i["\u0275\u0275restoreView"](e).$implicit;return i["\u0275\u0275nextContext"](3).onItemClick(t)}),i["\u0275\u0275element"](1,"img",9),i["\u0275\u0275elementStart"](2,"span",10),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"span",11),i["\u0275\u0275text"](5),i["\u0275\u0275pipe"](6,"tuiMapper"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit,n=i["\u0275\u0275nextContext"](2).tuiLet,r=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("src",r.getFlagPath(e),i["\u0275\u0275sanitizeUrl"]),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate"](n[e]),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](6,3,e,r.isoToCountryCodeMapper))}}function rp(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"tui-data-list"),i["\u0275\u0275template"](1,np,7,6,"button",7),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",e.countries)}}function ip(e,t){if(1&e&&i["\u0275\u0275element"](0,"img",12),2&e){const e=i["\u0275\u0275nextContext"]().tuiLet,t=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("alt",e[t.countryIsoCode])("src",t.countryFlagPath,i["\u0275\u0275sanitizeUrl"])}}function op(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"tui-hosted-dropdown",1),i["\u0275\u0275listener"]("openChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().open=t})("tuiActiveZoneChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onActiveZone(t)}),i["\u0275\u0275elementStart"](1,"div",2),i["\u0275\u0275element"](2,"tui-primitive-textfield",3),i["\u0275\u0275elementStart"](3,"tui-input-phone",4),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onModelChange(t)}
1),i["\u0275\u0275projection"](4),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](5,rp,2,1,"ng-template",null,5,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275template"](7,ip,1,2,"ng-template",null,6,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275reference"](6),t=i["\u0275\u0275reference"](8),n=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("content",e)("canOpen",!n.readOnly)("open",n.open),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("tuiTextfieldCustomContent",t)("tuiTextfieldLabelOutside",!0)("disabled",n.disabled)("focusable",n.focusable)("editable",!1)("iconContent",n.arrow)("pseudoFocused",n.open||null)("readOnly",n.readOnly)("tuiHintContent",null),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngModel",n.value)("focusable",n.focusable)("countryCode",n.inputPhoneCountryCode)("phoneMaskAfterCountryCode",n.phoneMaskAfterCountryCode)("readOnly",n.readOnly)("pseudoInvalid",n.computedInvalid)("pseudoFocused",n.pseudoFocused)("pseudoHovered",n.pseudoHovered)}}const sp=["*"],ap=Object.entries({[ls.AD]:{mask:"+376###-###",name:"\u0410\u043d\u0434\u043e\u0440\u0440\u0430"},[ls.AE]:{mask:"+971-#-###-####",name:"\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0435 \u0410\u0440\u0430\u0431\u0441\u043a\u0438\u0435 \u042d\u043c\u0438\u0440\u0430\u0442\u044b"},[ls.AF]:{mask:"+93##-###-####",name:"\u0410\u0444\u0433\u0430\u043d\u0438\u0441\u0442\u0430\u043d"},[ls.AG]:{mask:"+1(268) ###-####",name:"\u0410\u043d\u0442\u0438\u0433\u0443\u0430 \u0438 \u0411\u0430\u0440\u0431\u0443\u0434\u0430"},[ls.AI]:{mask:"+1(264) ###-####",name:"\u0410\u043d\u0433\u0438\u043b\u044c\u044f"},[ls.AL]:{mask:"+355(###) ###-###",name:"\u0410\u043b\u0431\u0430\u043d\u0438\u044f"},[ls.AM]:{mask:"+374##-###-###",name:"\u0410\u0440\u043c\u0435\u043d\u0438\u044f"},[ls.AN]:{mask:"+599-###-####",name:"\u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u0441\u043a\u0438\u0435 \u0410\u043d\u0442\u0438\u043b\u044c\u0441\u043a\u0438\u0435 \u043e\u0441\u0442\u0440\u043e\u0432\u0430"},[ls.AO]:{mask:"+244(###) ###-###",name:"\u0410\u043d\u0433\u043e\u043b\u0430"},[ls.AR]:{mask:"+54(###) ###-####",name:"\u0410\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0430"},[ls.AT]:{mask:"+43(###) ###-####",name:"\u0410\u0432\u0441\u0442\u0440\u0438\u044f"},[ls.AU]:{mask:"+61#-####-####",name:"\u0410\u0432\u0441\u0442\u0440\u0430\u043b\u0438\u044f"},[ls.AW]:{mask:"+297###-####",name:"\u0410\u0440\u0443\u0431\u0430"},[ls.AZ]:{mask:"+994##-###-##-##",name:"\u0410\u0437\u0435\u0440\u0431\u0430\u0439\u0434\u0436\u0430\u043d"},[ls.BA]:{mask:"+387##-#####",name:"\u0411\u043e\u0441\u043d\u0438\u044f \u0438 \u0413\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0430"},[ls.BB]:{mask:"+1(246) ###-####",name:"\u0411\u0430\u0440\u0431\u0430\u0434\u043e\u0441"},[ls.BD]:{mask:"+880##-###-###",name:"\u0411\u0430\u043d\u0433\u043b\u0430\u0434\u0435\u0448"},[ls.BE]:{mask:"+32(###) ###-###",name:"\u0411\u0435\u043b\u044c\u0433\u0438\u044f"},[ls.BF]:{mask:"+226##-##-####",name:"\u0411\u0443\u0440\u043a\u0438\u043d\u0430 \u0424\u0430\u0441\u043e"},[ls.BG]:{mask:"+359(###) ###-###",name:"\u0411\u043e\u043b\u0433\u0430\u0440\u0438\u044f"},[ls.BH]:{mask:"+973####-####",name:"\u0411\u0430\u0445\u0440\u0435\u0439\u043d"},[ls.BI]:{mask:"+257##-##-####",name:"\u0411\u0443\u0440\u0443\u043d\u0434\u0438"},[ls.BJ]:{mask:"+229##-##-####",name:"\u0411\u0435\u043d\u0438\u043d"},[ls.BM]:{mask:"+1(441) ###-####",name:"\u0411\u0435\u0440\u043c\u0443\u0434\u0441\u043a\u0438\u0435 \u043e\u0441\u0442\u0440\u043e\u0432\u0430"},[ls.BN]:{mask:"+673###-####",name:"\u0411\u0440\u0443\u043d\u0435\u0439-\u0414\u0430\u0440\u0443\u0441\u0441\u0430\u043b\u0430\u043c"},[ls.BO]:{mask:"+591#-###-####",name:"\u0411\u043e\u043b\u0438\u0432\u0438\u044f"},[ls.BR]:{mask:"+55(##) ####-####",name:"\u0411\u0440\u0430\u0437\u0438\u043b\u0438\u044f"},[ls.BS]:{mask:"+1(242) ###-####",name:"\u0411\u0430\u0433\u0430\u043c\u0441\u043a\u0438\u0435 \u041e\u0441\u0442\u0440\u043e\u0432\u0430"},[ls.BT]:{mask:"+975#-###-###",name:"\u0411\u0443\u0442\u0430\u043d"},[ls.BW]:{mask:"+267##-###-###",name:"\u0411\u043e\u0442\u0441\u0432\u0430\u043d\u0430"}
1,[ls.BY]:{mask:"+375(##) ###-##-##",name:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u044c (\u0411\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u0438\u044f)"},[ls.BZ]:{mask:"+501###-####",name:"\u0411\u0435\u043b\u0438\u0437"},[ls.CA]:{mask:"+1(###) ###-####",name:"\u041a\u0430\u043d\u0430\u0434\u0430"},[ls.CD]:{mask:"+243(###) ###-###",name:"\u0414\u0435\u043c. \u0420\u0435\u0441\u043f. \u041a\u043e\u043d\u0433\u043e (\u041a\u0438\u043d\u0448\u0430\u0441\u0430)"},[ls.CF]:{mask:"+236-##-##-####",name:"\u0426\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0430\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0430\u044f \u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a\u0430"},[ls.CG]:{mask:"+242##-###-####",name:"\u041a\u043e\u043d\u0433\u043e (\u0411\u0440\u0430\u0437\u0437\u0430\u0432\u0438\u043b\u044c)"},[ls.CH]:{mask:"+41##-###-####",name:"\u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0438\u044f"},[ls.CI]:{mask:"+225##-###-###",name:"\u041a\u043e\u0442-\u0434\u2019\u0418\u0432\u0443\u0430\u0440"},[ls.CL]:{mask:"+56#-####-####",name:"\u0427\u0438\u043b\u0438"},[ls.CM]:{mask:"+237####-####",name:"\u041a\u0430\u043c\u0435\u0440\u0443\u043d"},[ls.CN]:{mask:"+86(###) ####-####",name:"\u041a\u0438\u0442\u0430\u0439\u0441\u043a\u0430\u044f \u041d.\u0420."},[ls.CO]:{mask:"+57(###) ###-####",name:"\u041a\u043e\u043b\u0443\u043c\u0431\u0438\u044f"},[ls.CR]:{mask:"+506####-####",name:"\u041a\u043e\u0441\u0442\u0430-\u0420\u0438\u043a\u0430"},[ls.CU]:{mask:"+53#-###-####",name:"\u041a\u0443\u0431\u0430"},[ls.CV]:{mask:"+238(###) ##-##",name:"\u041a\u0430\u0431\u043e-\u0412\u0435\u0440\u0434\u0435"},[ls.CY]:{mask:"+357##-###-###",name:"\u041a\u0438\u043f\u0440"},[ls.CZ]:{mask:"+420(###) ###-###",name:"\u0427\u0435\u0445\u0438\u044f"},[ls.DE]:{mask:"+49(###) ###-###-##",name:"\u0413\u0435\u0440\u043c\u0430\u043d\u0438\u044f"},[ls.DJ]:{mask:"+253##-##-##-##",name:"\u0414\u0436\u0438\u0431\u0443\u0442\u0438"},[ls.DK]:{mask:"+45##-##-##-##",name:"\u0414\u0430\u043d\u0438\u044f"},[ls.DM]:{mask:"+1(767) ###-####",name:"\u0414\u043e\u043c\u0438\u043d\u0438\u043a\u0430"},[ls.DO]:{mask:"+1(###) ###-####",name:"\u0414\u043e\u043c\u0438\u043d\u0438\u043a\u0430\u043d\u0441\u043a\u0430\u044f \u0420\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a\u0430"},[ls.DZ]:{mask:"+213##-###-####",name:"\u0410\u043b\u0436\u0438\u0440"},[ls.EC]:{mask:"+593##-###-####",name:"\u042d\u043a\u0432\u0430\u0434\u043e\u0440 "},[ls.EE]:{mask:"+372####-####",name:"\u042d\u0441\u0442\u043e\u043d\u0438\u044f "},[ls.EG]:{mask:"+20(###) ###-####",name:"\u0415\u0433\u0438\u043f\u0435\u0442"},[ls.ER]:{mask:"+291#-###-###",name:"\u042d\u0440\u0438\u0442\u0440\u0435\u044f"},[ls.ES]:{mask:"+34(###) ###-###",name:"\u0418\u0441\u043f\u0430\u043d\u0438\u044f"},[ls.ET]:{mask:"+251##-###-####",name:"\u042d\u0444\u0438\u043e\u043f\u0438\u044f"},[ls.FI]:{mask:"+358(###) ###-##-##",name:"\u0424\u0438\u043d\u043b\u044f\u043d\u0434\u0438\u044f"},[ls.FJ]:{mask:"+679##-#####",name:"\u0424\u0438\u0434\u0436\u0438"},[ls.FK]:{mask:"+500#####",name:"\u0424\u043e\u043b\u043a\u043b\u0435\u043d\u0434\u0441\u043a\u0438\u0435 \u043e\u0441\u0442\u0440\u043e\u0432\u0430"},[ls.FM]:{mask:"+691###-####",name:"\u0424.\u0428. \u041c\u0438\u043a\u0440\u043e\u043d\u0435\u0437\u0438\u0438"},[ls.FR]:{mask:"+33(###) ###-###",name:"\u0424\u0440\u0430\u043d\u0446\u0438\u044f"},[ls.GA]:{mask:"+241#-##-##-##",name:"\u0413\u0430\u0431\u043e\u043d"},[ls.GD]:{mask:"+1(473) ###-####",name:"\u0413\u0440\u0435\u043d\u0430\u0434\u0430"},[ls.GE]:{mask:"+995(###) ###-###",name:"\u0413\u0440\u0443\u0437\u0438\u044f"},[ls.GH]:{mask:"+233(###) ###-###",name:"\u0413\u0430\u043d\u0430"},[ls.GI]:{mask:"+350###-#####",name:"\u0413\u0438\u0431\u0440\u0430\u043b\u0442\u0430\u0440"},[ls.GL]:{mask:"+299##-##-##",name:"\u0413\u0440\u0435\u043d\u043b\u0430\u043d\u0434\u0438\u044f"},[ls.GM]:{mask:"+220(###) ##-##",name:"\u0413\u0430\u043c\u0431\u0438\u044f"},[ls.GN]:{mask:"+224##-###-###",name:"\u0413\u0432\u0438\u043d\u0435\u044f"},[ls.GQ]:{mask:"+240##-###-####",name:"\u042d\u043a\u0432\u0430\u0442\u043e\u0440\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0413\u0432\u0438\u043d\u0435\u044f"},[ls.GR]:{mask:"+30(###) ###-####",name:"\u0413\u0440\u0435\u0446\u0438\u044f"},[ls.GT]:{mask:"+502#-###-####",name:"\u0413\u0432\u0430\u0442\u0435\u043c\u0430\u043b\u0430"},[ls.GW]:{mask:"+245#-######",name:"\u0413\u0432\u0438\u043d\u0435\u044f-\u0411\u0438\u0441\u0430\u0443"},[ls.GY]:{mask:"+592###-####",name:"\u0413\u0430\u0439\u0430\u043d\u0430"},[ls.HK]:{mask:"+852####-####",name:"\u0413\u043e\u043d\u043a\u043e\u043d\u0433"},[ls.HN]:{mask:"+504####-####",name:"\u0413\u043e\u043d\u0434\u0443\u0440\u0430\u0441"},[ls.HR]:{mask:"+385##-###-###",name:"\u0425\u043e\u0440\u0432\u0430\u0442\u0438\u044f"},[ls.HT]:{mask:"+509##-##-####",name:"\u0413\u0430\u0438\u0442\u0438"}
1,[ls.HU]:{mask:"+36(###) ###-###",name:"\u0412\u0435\u043d\u0433\u0440\u0438\u044f"},[ls.ID]:{mask:"+62(###) ###-##-###",name:"\u0418\u043d\u0434\u043e\u043d\u0435\u0437\u0438\u044f "},[ls.IE]:{mask:"+353(###) ###-###",name:"\u0418\u0440\u043b\u0430\u043d\u0434\u0438\u044f"},[ls.IL]:{mask:"+972##-###-####",name:"\u0418\u0437\u0440\u0430\u0438\u043b\u044c"},[ls.IN]:{mask:"+91(####) ###-###",name:"\u0418\u043d\u0434\u0438\u044f"},[ls.IQ]:{mask:"+964(###) ###-####",name:"\u0418\u0440\u0430\u043a"},[ls.IR]:{mask:"+98(###) ###-####",name:"\u0418\u0440\u0430\u043d"},[ls.IS]:{mask:"+354###-####",name:"\u0418\u0441\u043b\u0430\u043d\u0434\u0438\u044f"},[ls.IT]:{mask:"+39(###) ####-###",name:"\u0418\u0442\u0430\u043b\u0438\u044f"},[ls.JM]:{mask:"+1(876) ###-####",name:"\u042f\u043c\u0430\u0439\u043a\u0430"},[ls.JO]:{mask:"+962#-####-####",name:"\u0418\u043e\u0440\u0434\u0430\u043d\u0438\u044f"},[ls.JP]:{mask:"+81-##-####-####",name:"\u042f\u043f\u043e\u043d\u0438\u044f "},[ls.KE]:{mask:"+254###-######",name:"\u041a\u0435\u043d\u0438\u044f"},[ls.KG]:{mask:"+996(###) ###-###",name:"\u041a\u0438\u0440\u0433\u0438\u0437\u0438\u044f"},[ls.KH]:{mask:"+855##-###-###",name:"\u041a\u0430\u043c\u0431\u043e\u0434\u0436\u0430"},[ls.KM]:{mask:"+269##-#####",name:"\u041a\u043e\u043c\u043e\u0440\u044b"},[ls.KN]:{mask:"+1(869) ###-####",name:"\u0421\u0435\u043d\u0442-\u041a\u0438\u0442\u0441 \u0438 \u041d\u0435\u0432\u0438\u0441"},[ls.KP]:{mask:"+850####-#############",name:"\u041a\u043e\u0440\u0435\u0439\u0441\u043a\u0430\u044f \u041d\u0414\u0420"},[ls.KR]:{mask:"+82##-###-####",name:"\u0420\u0435\u0441\u043f. \u041a\u043e\u0440\u0435\u044f"},[ls.KW]:{mask:"+965####-####",name:"\u041a\u0443\u0432\u0435\u0439\u0442"},[ls.KY]:{mask:"+1(345) ###-####",name:"\u041a\u0430\u0439\u043c\u0430\u043d\u043e\u0432\u044b \u043e\u0441\u0442\u0440\u043e\u0432\u0430"},[ls.KZ]:{mask:"+7(###) ###-##-##",name:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d"},[ls.LA]:{mask:"+856##-##-###-###",name:"\u041b\u0430\u043e\u0441"},[ls.LB]:{mask:"+961##-###-###",name:"\u041b\u0438\u0432\u0430\u043d "},[ls.LC]:{mask:"+1(758) ###-####",name:"\u0421\u0435\u043d\u0442-\u041b\u044e\u0441\u0438\u044f"},[ls.LI]:{mask:"+423(###) ###-####",name:"\u041b\u0438\u0445\u0442\u0435\u043d\u0448\u0442\u0435\u0439\u043d"},[ls.LK]:{mask:"+94##-###-####",name:"\u0428\u0440\u0438-\u041b\u0430\u043d\u043a\u0430"},[ls.LR]:{mask:"+231##-###-###",name:"\u041b\u0438\u0431\u0435\u0440\u0438\u044f"},[ls.LS]:{mask:"+266#-###-####",name:"\u041b\u0435\u0441\u043e\u0442\u043e"},[ls.LT]:{mask:"+370(###) ##-###",name:"\u041b\u0438\u0442\u0432\u0430"},[ls.LU]:{mask:"+352(###) ###-###",name:"\u041b\u044e\u043a\u0441\u0435\u043c\u0431\u0443\u0440\u0433"},[ls.LV]:{mask:"+371##-###-###",name:"\u041b\u0430\u0442\u0432\u0438\u044f"},[ls.LY]:{mask:"+218##-###-####",name:"\u041b\u0438\u0432\u0438\u044f"},[ls.MA]:{mask:"+212##-####-###",name:"\u041c\u0430\u0440\u043e\u043a\u043a\u043e"},[ls.MC]:{mask:"+377###-###-###",name:"\u041c\u043e\u043d\u0430\u043a\u043e"},[ls.MD]:{mask:"+373####-####",name:"\u041c\u043e\u043b\u0434\u043e\u0432\u0430"},[ls.ME]:{mask:"+382##-###-###",name:"\u0427\u0435\u0440\u043d\u043e\u0433\u043e\u0440\u0438\u044f"},[ls.MG]:{mask:"+261##-##-#####",name:"\u041c\u0430\u0434\u0430\u0433\u0430\u0441\u043a\u0430\u0440"},[ls.MK]:{mask:"+389##-###-###",name:"\u0420\u0435\u0441\u043f. \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u044f"},[ls.ML]:{mask:"+223##-##-####",name:"\u041c\u0430\u043b\u0438"},[ls.MM]:{mask:"+95##-###-###",name:"\u0411\u0438\u0440\u043c\u0430 (\u041c\u044c\u044f\u043d\u043c\u0430)"},[ls.MN]:{mask:"+976##-##-####",name:"\u041c\u043e\u043d\u0433\u043e\u043b\u0438\u044f"},[ls.MO]:{mask:"+853####-####",name:"\u041c\u0430\u043a\u0430\u043e"},[ls.MR]:{mask:"+222##-##-####",name:"\u041c\u0430\u0432\u0440\u0438\u0442\u0430\u043d\u0438\u044f"},[ls.MS]:{mask:"+1(664) ###-####",name:"\u041c\u043e\u043d\u0442\u0441\u0435\u0440\u0440\u0430\u0442"},[ls.MT]:{mask:"+356####-####",name:"\u041c\u0430\u043b\u044c\u0442\u0430"},[ls.MU]:{mask:"+230###-####",name:"\u041c\u0430\u0432\u0440\u0438\u043a\u0438\u0439"},[ls.MV]:{mask:"+960###-####",name:"\u041c\u0430\u043b\u044c\u0434\u0438\u0432\u0441\u043a\u0438\u0435 \u043e\u0441\u0442\u0440\u043e\u0432\u0430"},[ls.MW]:{mask:"+265#-####-####",name:"\u041c\u0430\u043b\u0430\u0432\u0438"},[ls.MX]:{mask:"+52(###) ###-####",name:"\u041c\u0435\u043a\u0441\u0438\u043a\u0430"},[ls.MY]:{mask:"+60(###) ###-###",name:"\u041c\u0430\u043b\u0430\u0439\u0437\u0438\u044f"}
1,[ls.MZ]:{mask:"+258##-###-###",name:"\u041c\u043e\u0437\u0430\u043c\u0431\u0438\u043a"},[ls.NA]:{mask:"+264##-###-####",name:"\u041d\u0430\u043c\u0438\u0431\u0438\u044f"},[ls.NE]:{mask:"+227##-##-####",name:"\u041d\u0438\u0433\u0435\u0440"},[ls.NG]:{mask:"+234(###) ###-####",name:"\u041d\u0438\u0433\u0435\u0440\u0438\u044f"},[ls.NI]:{mask:"+505####-####",name:"\u041d\u0438\u043a\u0430\u0440\u0430\u0433\u0443\u0430"},[ls.NL]:{mask:"+31##-###-####",name:"\u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u044b"},[ls.NO]:{mask:"+47(###) ##-###",name:"\u041d\u043e\u0440\u0432\u0435\u0433\u0438\u044f"},[ls.NP]:{mask:"+977##-###-###",name:"\u041d\u0435\u043f\u0430\u043b"},[ls.NZ]:{mask:"+64(###) ###-####",name:"\u041d\u043e\u0432\u0430\u044f \u0417\u0435\u043b\u0430\u043d\u0434\u0438\u044f"},[ls.OM]:{mask:"+968##-###-###",name:"\u041e\u043c\u0430\u043d"},[ls.PA]:{mask:"+507###-####",name:"\u041f\u0430\u043d\u0430\u043c\u0430"},[ls.PE]:{mask:"+51(###) ###-###",name:"\u041f\u0435\u0440\u0443"},[ls.PF]:{mask:"+689##-##-##",name:"\u0424\u0440\u0430\u043d\u0446\u0443\u0437\u0441\u043a\u0430\u044f \u041f\u043e\u043b\u0438\u043d\u0435\u0437\u0438\u044f (\u0422\u0430\u0438\u0442\u0438)"},[ls.PG]:{mask:"+675(###) ##-###",name:"\u041f\u0430\u043f\u0443\u0430-\u041d\u043e\u0432\u0430\u044f \u0413\u0432\u0438\u043d\u0435\u044f"},[ls.PH]:{mask:"+63(###) ###-####",name:"\u0424\u0438\u043b\u0438\u043f\u043f\u0438\u043d\u044b"},[ls.PK]:{mask:"+92(###) ###-####",name:"\u041f\u0430\u043a\u0438\u0441\u0442\u0430\u043d"},[ls.PL]:{mask:"+48(###) ###-###",name:"\u041f\u043e\u043b\u044c\u0448\u0430"},[ls.PT]:{mask:"+351##-###-####",name:"\u041f\u043e\u0440\u0442\u0443\u0433\u0430\u043b\u0438\u044f"},[ls.PW]:{mask:"+680###-####",name:"\u041f\u0430\u043b\u0430\u0443"},[ls.PY]:{mask:"+595(###) ###-###",name:"\u041f\u0430\u0440\u0430\u0433\u0432\u0430\u0439"},[ls.QA]:{mask:"+974####-####",name:"\u041a\u0430\u0442\u0430\u0440"},[ls.RO]:{mask:"+40##-###-####",name:"\u0420\u0443\u043c\u044b\u043d\u0438\u044f"},[ls.RS]:{mask:"+381##-###-####",name:"\u0421\u0435\u0440\u0431\u0438\u044f"},[ls.RU]:{mask:"+7(###) ###-##-##",name:"\u0420\u043e\u0441\u0441\u0438\u044f"},[ls.RW]:{mask:"+250(###) ###-###",name:"\u0420\u0443\u0430\u043d\u0434\u0430"},[ls.SA]:{mask:"+966#-####-####",name:"\u0421\u0430\u0443\u0434\u043e\u0432\u0441\u043a\u0430\u044f \u0410\u0440\u0430\u0432\u0438\u044f "},[ls.SB]:{mask:"+677###-####",name:"\u0421\u043e\u043b\u043e\u043c\u043e\u043d\u043e\u0432\u044b \u041e\u0441\u0442\u0440\u043e\u0432\u0430 "},[ls.SC]:{mask:"+248#-###-###",name:"\u0421\u0435\u0439\u0448\u0435\u043b\u044b"},[ls.SD]:{mask:"+249##-###-####",name:"\u0421\u0443\u0434\u0430\u043d"},[ls.SE]:{mask:"+46##-###-####",name:"\u0428\u0432\u0435\u0446\u0438\u044f"},[ls.SG]:{mask:"+65####-####",name:"\u0421\u0438\u043d\u0433\u0430\u043f\u0443\u0440"},[ls.SH]:{mask:"+290####",name:"\u041e\u0441\u0442\u0440\u043e\u0432 \u0421\u0432\u044f\u0442\u043e\u0439 \u0415\u043b\u0435\u043d\u044b"},[ls.SI]:{mask:"+386##-###-###",name:"\u0421\u043b\u043e\u0432\u0435\u043d\u0438\u044f"},[ls.SK]:{mask:"+421(###) ###-###",name:"\u0421\u043b\u043e\u0432\u0430\u043a\u0438\u044f"},[ls.SL]:{mask:"+232##-######",name:"\u0421\u044c\u0435\u0440\u0440\u0430-\u041b\u0435\u043e\u043d\u0435"},[ls.SM]:{mask:"+378####-######",name:"\u0421\u0430\u043d-\u041c\u0430\u0440\u0438\u043d\u043e"},[ls.SN]:{mask:"+221##-###-####",name:"\u0421\u0435\u043d\u0435\u0433\u0430\u043b"},[ls.SO]:{mask:"+252##-###-###",name:"\u0421\u043e\u043c\u0430\u043b\u0438"},[ls.SR]:{mask:"+597###-####",name:"\u0421\u0443\u0440\u0438\u043d\u0430\u043c "},[ls.ST]:{mask:"+239##-#####",name:"\u0421\u0430\u043d-\u0422\u043e\u043c\u0435 \u0438 \u041f\u0440\u0438\u043d\u0441\u0438\u043f\u0438"},[ls.SV]:{mask:"+503##-##-####",name:"\u0421\u0430\u043b\u044c\u0432\u0430\u0434\u043e\u0440"},[ls.SY]:{mask:"+963##-####-###",name:"\u0421\u0438\u0440\u0438\u0439\u0441\u043a\u0430\u044f \u0430\u0440\u0430\u0431\u0441\u043a\u0430\u044f \u0440\u0435\u0441\u043f\u0443\u0431\u043b\u0438\u043a\u0430"},[ls.SZ]:{mask:"+268##-##-####",name:"\u0421\u0432\u0430\u0437\u0438\u043b\u0435\u043d\u0434"},[ls.TC]:{mask:"+1(649) ###-####",name:"\u0422\u0451\u0440\u043a\u0441 \u0438 \u041a\u0430\u0439\u043a\u043e\u0441"}
1,[ls.TD]:{mask:"+235##-##-##-##",name:"\u0427\u0430\u0434"},[ls.TG]:{mask:"+228##-###-###",name:"\u0422\u043e\u0433\u043e"},[ls.TH]:{mask:"+66##-###-####",name:"\u0422\u0430\u0438\u043b\u0430\u043d\u0434 "},[ls.TJ]:{mask:"+992##-###-####",name:"\u0422\u0430\u0434\u0436\u0438\u043a\u0438\u0441\u0442\u0430\u043d"},[ls.TL]:{mask:"+670###-#####",name:"\u0412\u043e\u0441\u0442\u043e\u0447\u043d\u044b\u0439 \u0422\u0438\u043c\u043e\u0440"},[ls.TM]:{mask:"+993#-###-####",name:"\u0422\u0443\u0440\u043a\u043c\u0435\u043d\u0438\u0441\u0442\u0430\u043d"},[ls.TN]:{mask:"+216##-###-###",name:"\u0422\u0443\u043d\u0438\u0441"},[ls.TO]:{mask:"+676#####",name:"\u0422\u043e\u043d\u0433\u0430"},[ls.TR]:{mask:"+90(###) ###-####",name:"\u0422\u0443\u0440\u0446\u0438\u044f"},[ls.TT]:{mask:"+1(868) ###-####",name:"\u0422\u0440\u0438\u043d\u0438\u0434\u0430\u0434 \u0438 \u0422\u043e\u0431\u0430\u0433\u043e"},[ls.TW]:{mask:"+886#-####-####",name:"\u0422\u0430\u0439\u0432\u0430\u043d\u044c"},[ls.TZ]:{mask:"+255##-###-####",name:"\u0422\u0430\u043d\u0437\u0430\u043d\u0438\u044f"},[ls.UA]:{mask:"+380(##) ###-##-##",name:"\u0423\u043a\u0440\u0430\u0438\u043d\u0430"},[ls.UG]:{mask:"+256(###) ###-###",name:"\u0423\u0433\u0430\u043d\u0434\u0430"},[ls.UK]:{mask:"+44##-####-####",name:"\u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u044f"},[ls.US]:{mask:"+1(###) ###-####",name:"\u0421\u0428\u0410"},[ls.UY]:{mask:"+598#-###-##-##",name:"\u0423\u0440\u0443\u0433\u0432\u0430\u0439"},[ls.UZ]:{mask:"+998##-###-####",name:"\u0423\u0437\u0431\u0435\u043a\u0438\u0441\u0442\u0430\u043d"},[ls.VC]:{mask:"+1(784) ###-####",name:"\u0421\u0435\u043d\u0442-\u0412\u0438\u043d\u0441\u0435\u043d\u0442 \u0438 \u0413\u0440\u0435\u043d\u0430\u0434\u0438\u043d\u044b"},[ls.VE]:{mask:"+58(###) ###-####",name:"\u0412\u0435\u043d\u0435\u0441\u0443\u044d\u043b\u0430"},[ls.VG]:{mask:"+1(284)###-####",name:"\u0411\u0440\u0438\u0442\u0430\u043d\u0441\u043a\u0438\u0435 \u0412\u0438\u0440\u0433\u0438\u043d\u0441\u043a\u0438\u0435 \u043e\u0441\u0442\u0440\u043e\u0432\u0430"},[ls.VN]:{mask:"+84(###) ####-###",name:"\u0412\u044c\u0435\u0442\u043d\u0430\u043c"},[ls.VU]:{mask:"+678##-#####",name:"\u0412\u0430\u043d\u0443\u0430\u0442\u0443 "},[ls.WS]:{mask:"+685##-####",name:"\u0421\u0430\u043c\u043e\u0430"},[ls.YE]:{mask:"+967###-###-###",name:"\u0419\u0435\u043c\u0435\u043d "},[ls.ZA]:{mask:"+27##-###-####",name:"\u042e\u0436\u043d\u043e-\u0410\u0444\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0430\u044f \u0420\u0435\u0441\u043f."},[ls.ZM]:{mask:"+260##-###-####",name:"\u0417\u0430\u043c\u0431\u0438\u044f"},[ls.ZW]:{mask:"+263#-######",name:"\u0417\u0438\u043c\u0431\u0430\u0431\u0432\u0435"}}).reduce(function(e,[t,{mask:n}]){return e[t]=n,e},{});var lp;const cp=/\([\#]+\)|[#\- ]/g;let up=(()=>{let e=lp=class extends qs{constructor(e,t,n,r){super(e,t),this.countriesNames$=r,this.countryIsoCode=ls.RU,this.countries=[],this.countryIsoCodeChange=new i.EventEmitter,this.open=!1,this.isoToCountryCodeMapper=e=>this.isoToCountryCode(e),this.arrow=Dd,this.staticPath=null,this.staticPath=n("tuiIcon").replace("tuiIcon.svg#tuiIcon","")}onPaste(e){const t=this.extractValue(e),n=this.countries.find(e=>t.startsWith(this.isoToCountryCode(e)));n&&(this.updateCountryIsoCode(n),this.updateValue("+"+t.replace(fs,"")))}get nativeFocusableElement(){return this.inputPhoneComponent&&!this.computedDisabled?this.inputPhoneComponent.nativeFocusableElement:null}get focused(){return!!this.primitiveTextfield&&this.primitiveTextfield.focused||!!this.inputPhoneComponent&&this.inputPhoneComponent.focused}get inputPhoneCountryCode(){return this.isoToCountryCode(this.countryIsoCode)}get phoneMaskAfterCountryCode(){const e=this.isoToCountryCode(this.countryIsoCode);return this.calculateMaskAfterCountryCode(ap[this.countryIsoCode],e)}get countryFlagPath(){return this.getFlagPath(this.countryIsoCode)}getFlagPath(e){return`${this.staticPath}${e}.png`}onItemClick(e){this.open=!1,this.updateCountryIsoCode(e),this.changeDetectorRef.detectChanges();const t=this.getMaxAllowedLength(e);this.value.length>
1t&&this.updateValue(this.value.slice(0,t)),this.nativeFocusableElement&&Hi(this.nativeFocusableElement)}setDisabledState(){super.setDisabledState(),this.close()}isoToCountryCode(e){return ap[e].replace(cp,"")}onModelChange(e){this.updateValue(e)}onActiveZone(e){this.updateFocused(e)}getFallbackValue(){return""}close(){this.open=!1}calculateMaskAfterCountryCode(e,t){return e.replace(t,"").trim()}getMaxAllowedLength(e){return ap[e].replace(/[()\- ]/g,"").length}extractValue(e){var t;return e instanceof DragEvent?(null===(t=e.dataTransfer)||void 0===t?void 0:t.getData("text/plain"))||"":fo(e)}updateCountryIsoCode(e){this.countryIsoCode=e,this.countryIsoCodeChange.emit(e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"]($t.NgControl,10),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](Os),i["\u0275\u0275directiveInject"](tp))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-input-phone-international"]],viewQuery:function(e,t){if(1&e&&(i["\u0275\u0275viewQuery"](WA,5),i["\u0275\u0275viewQuery"](xd,5)),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.inputPhoneComponent=e.first),i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.primitiveTextfield=e.first)}},hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("paste.capture.prevent.stop",function(e){return t.onPaste(e)})("drop.capture.prevent.stop",function(e){return t.onPaste(e)})},inputs:{countryIsoCode:"countryIsoCode",countries:"countries"},outputs:{countryIsoCodeChange:"countryIsoCodeChange"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ko,useExisting:(0,i.forwardRef)(()=>lp)},Bd]),i["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:sp,decls:2,vars:3,consts:[["class","hosted-dropdown",3,"content","canOpen","open","openChange","tuiActiveZoneChange",4,"tuiLet"],[1,"hosted-dropdown",3,"content","canOpen","open","openChange","tuiActiveZoneChange"],["tuiGroup",""],["tuiHostedDropdownHost","",1,"country-select","tui-group__auto-width-item",3,"tuiTextfieldCustomContent","tuiTextfieldLabelOutside","disabled","focusable","editable","iconContent","pseudoFocused","readOnly","tuiHintContent"],["tuiTextfieldAutocomplete","off",1,"input-phone","tui-group__auto-width-item",3,"ngModel","focusable","countryCode","phoneMaskAfterCountryCode","readOnly","pseudoInvalid","pseudoFocused","pseudoHovered","ngModelChange"],["dropdown",""],["countryValueContent",""],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"],["alt","",1,"country-item-flag",3,"src"],[1,"country-item-name"],[1,"country-item-code"],[1,"flag",3,"alt","src"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275template"](0,op,9,20,"tui-hosted-dropdown",0),i["\u0275\u0275pipe"](1,"async")),2&e&&i["\u0275\u0275property"]("tuiLet",i["\u0275\u0275pipeBind1"](1,1,t.countriesNames$))},directives:[ss,Vh,lc,UA,xd,Qh,ih,Ah,id,WA,Ju,$t.NgControlStatus,$t.NgModel,Pu,Ft.sg,Bu],pipes:[Ft.Ov,Xd],styles:["[_nghost-%COMP%]{display:block}._disabled[_nghost-%COMP%]{pointer-events:none}.hosted-dropdown[_ngcontent-%COMP%]{display:block}.country-select[_ngcontent-%COMP%]{width:5.625rem}.country-select[_ngcontent-%COMP%]:not(._readonly)     input:not(:disabled){cursor:pointer}.country-select._readonly[_ngcontent-%COMP%]     input{cursor:default}.arrow-icon[_ngcontent-%COMP%]{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.arrow-icon[_ngcontent-%COMP%]:hover{color:var(--tui-text-02)}._disabled[_nghost-%COMP%]   .arrow-icon[_ngcontent-%COMP%], ._readonly[_nghost-%COMP%]   .arrow-icon[_ngcontent-%COMP%]{pointer-events:none}[data-mode=onDark][_nghost-%COMP%]   .arrow-icon[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][_nghost-%COMP%]   .arrow-icon[_ngcontent-%COMP%]:hover{color:var(--tui-text-01-night)}.arrow-icon_open[_ngcontent-%COMP%]{transform:rotate(180deg)}.input-phone[_ngcontent-%COMP%]{flex:1}.flag[_ngcontent-%COMP%]{width:1.75rem;height:1.25rem;margin-left:-.5rem}.country-item-flag[_ngcontent-%COMP%]{width:1.75rem;height:1.25rem}
1.country-item-name[_ngcontent-%COMP%]{margin-left:.75rem;margin-right:auto}.country-item-code[_ngcontent-%COMP%]{color:var(--tui-text-02);margin-right:.25rem}"],changeDetection:0}),Bh([ns()],e.prototype,"countryIsoCode",void 0),Bh([rs],e.prototype,"calculateMaskAfterCountryCode",null),e=lp=Bh([kh(0,(0,i.Optional)()),kh(0,(0,i.Self)()),kh(0,(0,i.Inject)($t.NgControl)),kh(1,(0,i.Inject)(i.ChangeDetectorRef)),kh(2,(0,i.Inject)(Os)),kh(3,(0,i.Inject)(tp))],e),e})(),hp=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,$t.FormsModule,ga,La,YA,jA,Td,Ch,od,qh,Fu,Nd,as,Jd,cc]]}),e})(),dp=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez]]}),e})(),Ap=(()=>{let e=class extends i.ElementRef{constructor({nativeElement:e}){super(e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiElement",""]],exportAs:["elementRef"],features:[i["\u0275\u0275InheritDefinitionFeature"]]}),e=Kr([Gr(0,(0,i.Inject)(i.ElementRef))],e),e})(),pp=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();function fp(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"button",4,5),i["\u0275\u0275element"](2,"span",6),i["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit,n=i["\u0275\u0275reference"](1),r=i["\u0275\u0275nextContext"](2);i["\u0275\u0275property"]("size",r.size)("value",e)("disabled",r.disabledItemHandler(e)),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("content",r.itemContent)("context",r.getContext(e,n))}}function gp(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"tui-data-list",2),i["\u0275\u0275template"](1,fp,3,5,"button",3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("emptyContent",e.emptyContent),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",e.items)}}function mp(e,t){1&e&&i["\u0275\u0275element"](0,"tui-loader",7)}var vp;let yp=(()=>{let e=vp=class{constructor(){this.items=[],this.disabledItemHandler=Oi,this.emptyContent="",this.itemContent=({$implicit:e})=>String(e),this.size="m",this.options=Fi}getContext(e,{nativeElement:t}){return{$implicit:e,active:zi(t)}}getOptions(e=!1){return this.options.toArray().filter(({disabled:t})=>e||!t).map(({value:e})=>e).filter(jr)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-data-list-wrapper",3,"labels",""]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](Bu,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.options=e)}},inputs:{items:"items",disabledItemHandler:"disabledItemHandler",emptyContent:"emptyContent",itemContent:"itemContent",size:"size"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ws,useExisting:(0,i.forwardRef)(()=>vp)}])],decls:3,vars:2,consts:[[3,"emptyContent",4,"ngIf","ngIfElse"],["loading",""],[3,"emptyContent"],["tuiElement","","tuiOption","","automation-id","tui-data-list-wrapper__option",3,"size","value","disabled",4,"ngFor","ngForOf"],["tuiElement","","tuiOption","","automation-id","tui-data-list-wrapper__option",3,"size","value","disabled"],["elementRef","elementRef"],["polymorpheus-outlet","",1,"content",3,"content","context"],["automation-id","tui-data-list-wrapper__loader",1,"tui-space_vertical-3"]],template:function(e,t){if(1&e&&(i["\u0275\u0275template"](0,gp,2,2,"tui-data-list",0),i["\u0275\u0275template"](1,mp,1,0,"ng-template",null,1,i["\u0275\u0275templateRefExtractor"])),2&e){const e=i["\u0275\u0275reference"](2);i["\u0275\u0275property"]("ngIf",t.items)("ngIfElse",e)}},directives:[Ft.O5,Pu,Ft.sg,Bu,Ap,ha,ba],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{flex:1}"],changeDetection:0}),Bh([ns()],e.prototype,"items",void 0),Bh([ns()],e.prototype,"disabledItemHandler",void 0),Bh([ns()],e.prototype,"emptyContent",void 0),Bh([ns()],e.prototype,"itemContent",void 0),Bh([ns()],e.prototype,"size",void 0),e})(),bp=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,ga,pp,Fu,Ca]]}),e})();const _p=["focusableElement"];function wp(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-loader",8),2&e){const e=i["\u0275\u0275nextContext"]();
1i["\u0275\u0275property"]("size",e.loaderSize)("inheritColor",!0)("showLoader",e.checked)}}function Cp(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-svg",9),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("src",e.iconOn)}}function Sp(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-loader",8),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("size",e.loaderSize)("inheritColor",!0)("showLoader",!e.checked)}}function Ep(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-svg",10),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("src",e.iconOff)}}var Ip;let xp=(()=>{let e=Ip=class extends qs{constructor(e,t,n){super(e,t),this.modeDirective=n,this.singleColor=!1,this.showIcons=!1,this.showLoader=!1,this.size="m"}get nativeFocusableElement(){return this.focusableElement?this.focusableElement.nativeElement:null}get focused(){return zi(this.nativeFocusableElement)}get appearance(){return this.singleColor||this.checked?"primary":"secondary"}get sizeM(){return"m"===this.size}get checked(){return this.value}get iconOn(){return this.sizeM?"tuiIconToggleOn":"tuiIconToggleOnLarge"}get iconOff(){return this.sizeM?"tuiIconToggleOff":"tuiIconToggleOffLarge"}get loaderSize(){return this.sizeM?"xs":"s"}get hostMode(){return this.modeDirective?this.modeDirective.mode:null}onChecked(e){this.updateValue(e)}onFocused(e){this.updateFocused(e)}onHovered(e){this.updateHovered(e)}onPressed(e){this.updatePressed(e)}onFocusVisible(e){this.updateFocusVisible(e)}getFallbackValue(){return!1}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"]($t.NgControl,10),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](Ma,8))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-toggle"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](_p,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.focusableElement=e.first)}},hostVars:4,hostBindings:function(e,t){2&e&&(i["\u0275\u0275attribute"]("data-tui-host-size",t.size)("data-mode",t.hostMode),i["\u0275\u0275classProp"]("_checked",t.checked))},inputs:{singleColor:"singleColor",showIcons:"showIcons",showLoader:"showLoader",size:"size"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ko,useExisting:(0,i.forwardRef)(()=>Ip)}]),i["\u0275\u0275InheritDefinitionFeature"]],decls:9,vars:15,consts:[[3,"appearance","disabled","focused","hovered","pressed","invalid"],[1,"toggle"],["class","loader",3,"size","inheritColor","showLoader",4,"ngIf"],["class","icon","automation-id","tui-toggle__check-icon",3,"src",4,"ngIf"],[1,"circle"],["class","icon icon_off","automation-id","tui-toggle__cancel-icon",3,"src",4,"ngIf"],["type","checkbox","role","switch","automation-id","tui-toggle__checkbox",1,"checkbox",3,"id","disabled","tuiChecked","tuiFocusable","tuiCheckedChange","tuiFocusedChange","tuiHoveredChange","tuiPressedChange","tuiFocusVisibleChange"],["focusableElement",""],[1,"loader",3,"size","inheritColor","showLoader"],["automation-id","tui-toggle__check-icon",1,"icon",3,"src"],["automation-id","tui-toggle__cancel-icon",1,"icon","icon_off",3,"src"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"tui-wrapper",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275template"](2,wp,1,3,"tui-loader",2),i["\u0275\u0275template"](3,Cp,1,1,"tui-svg",3),i["\u0275\u0275element"](4,"div",4),i["\u0275\u0275template"](5,Sp,1,3,"tui-loader",2),i["\u0275\u0275template"](6,Ep,1,1,"tui-svg",5),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"input",6,7),i["\u0275\u0275listener"]("tuiCheckedChange",function(e){return t.onChecked(e)})("tuiFocusedChange",function(e){return t.onFocused(e)})("tuiHoveredChange",function(e){return t.onHovered(e)})("tuiPressedChange",function(e){return t.onPressed(e)})("tuiFocusVisibleChange",function(e){return t.onFocusVisible(e)}),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("appearance",t.appearance)("disabled",t.disabled)("focused",t.computedFocusVisible)("hovered",t.computedHovered)("pressed",t.computedPressed)("invalid",t.computedInvalid),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.showLoader),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.showIcons&&!t.showLoader),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.showLoader),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.showIcons&&!t.showLoader),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("id",t.id)("disabled",t.disabled)("tuiChecked",t.checked)("tuiFocusable",t.focusable),i["\u0275\u0275attribute"]("aria-checked",t.value))},directives:[ja,Ft.O5,pA,Kh,zh,Nc,gA,vA,ba,Fa],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;vertical-align:middle;overflow:hidden;border-radius:6.25rem}[data-tui-host-size='m'][_nghost-%COMP%]{width:2rem;height:1rem}[data-tui-host-size='l'][_nghost-%COMP%]{width:3rem;height:1.5rem}.checkbox[_ngcontent-%COMP%]{padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;height:100%;width:100%;opacity:0;cursor:pointer}.checkbox[_ngcontent-%COMP%]:-webkit-autofill, .checkbox[_ngcontent-%COMP%]:-webkit-autofill:focus, .checkbox[_ngcontent-%COMP%]:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}._disabled[_nghost-%COMP%]   .checkbox[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.toggle[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;align-items:center;justify-content:center}[data-tui-host-size='m'][_nghost-%COMP%]   .toggle[_ngcontent-%COMP%]{width:3rem;height:1rem;transform:translateX(-1rem)}[data-tui-host-size='l'][_nghost-%COMP%]   .toggle[_ngcontent-%COMP%]{width:4.5rem;height:1.5rem;transform:translateX(-1.5rem)}._checked[_nghost-%COMP%]   .toggle[_ngcontent-%COMP%]{transform:translateX(0)}
1.circle[_ngcontent-%COMP%]{margin:.125rem 0;flex-shrink:0;border-radius:100%;background-color:var(--tui-base-01)}._disabled[_nghost-%COMP%]   .circle_light[_ngcontent-%COMP%]{opacity:.24}[data-tui-host-size='m'][_nghost-%COMP%]   .circle[_ngcontent-%COMP%]{width:.75rem;height:.75rem}[data-tui-host-size='l'][_nghost-%COMP%]   .circle[_ngcontent-%COMP%]{width:1rem;height:1rem}._disabled[_nghost-%COMP%]   .circle[_ngcontent-%COMP%]{background-color:var(--tui-base-01)}[_nghost-%COMP%]:not(._checked)   .loader[_ngcontent-%COMP%]{color:var(--tui-base-06)}[_nghost-%COMP%]:not(._checked)._disabled   .loader[_ngcontent-%COMP%]{color:var(--tui-base-05)}[_nghost-%COMP%]:not(._checked)[data-mode=onDark]   .loader[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[_nghost-%COMP%]:not(._checked)[data-mode=onDark]._disabled   .loader[_ngcontent-%COMP%]{color:var(--tui-clear-inverse-active)}[_nghost-%COMP%]:not(._checked)[data-mode=onLight]   .loader[_ngcontent-%COMP%]{color:var(--tui-text-03)}[_nghost-%COMP%]:not(._checked)[data-mode=onLight]._disabled   .loader[_ngcontent-%COMP%]{color:var(--tui-clear-active)}[data-tui-host-size='m'][_nghost-%COMP%]   .loader[_ngcontent-%COMP%]{width:.75rem;margin:0 .2rem;transform:scale(.75)}[data-tui-host-size='l'][_nghost-%COMP%]   .loader[_ngcontent-%COMP%]{width:1rem;margin:0 .25rem}.icon[_ngcontent-%COMP%]{opacity:.8}.icon_off[_ngcontent-%COMP%]{color:var(--tui-base-06)}._disabled[_nghost-%COMP%]   .icon_off[_ngcontent-%COMP%]{color:var(--tui-base-05)}[data-mode=onDark][_nghost-%COMP%]   .icon_off[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark]._disabled[_nghost-%COMP%]   .icon_off[_ngcontent-%COMP%]{color:var(--tui-clear-inverse-active)}[data-mode=onLight][_nghost-%COMP%]   .icon_off[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-mode=onLight]._disabled[_nghost-%COMP%]   .icon_off[_ngcontent-%COMP%]{color:var(--tui-clear-active)}[data-tui-host-size='m'][_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{width:1rem;height:1rem;transform:scale(.75)}[data-tui-host-size='l'][_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{margin:0 .125rem;width:1.5rem;height:1.5rem}._hovered[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0}),Bh([ns()],e.prototype,"singleColor",void 0),Bh([ns()],e.prototype,"showIcons",void 0),Bh([ns()],e.prototype,"showLoader",void 0),Bh([ns()],e.prototype,"size",void 0),e=Ip=Bh([kh(0,(0,i.Optional)()),kh(0,(0,i.Self)()),kh(0,(0,i.Inject)($t.NgControl)),kh(1,(0,i.Inject)(i.ChangeDetectorRef)),kh(2,(0,i.Optional)()),kh(2,(0,i.Inject)(Ma))],e),e})(),Tp=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,Wh,Gh,Rc,mA,yA,fA,Qa,La,Ca]]}),e})();const Bp=["focusableElement"];function kp(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",14),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate2"](" ",e.value.length,"/",e.controller.maxLength," ")}}function Pp(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",15),i["\u0275\u0275projection"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275classProp"]("placeholder_raised",e.placeholderRaised)}}function Op(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",16),i["\u0275\u0275elementStart"](1,"span",17),i["\u0275\u0275text"](2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate1"](" ",e.controller.exampleText," ")}}function Fp(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-tooltip",18),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("direction",e.hintController.direction)("mode",e.hintController.mode)("content",e.hintController.content)("showDelay",e.hintController.showDelay)("hideDelay",e.hintController.hideDelay)}}const Lp=["*"],Mp=[{provide:ko,useExisting:(0,i.forwardRef)(()=>Dp)},Eh,ad,Ra];let Dp=(()=>{let e=class extends qs{constructor(e,t,n,r,i,o,s){super(e,t),this.appearance=n,this.isIOS=r,this.mode$=i,this.controller=o,this.hintController=s,this.rows=20,this.expandable=!1}get labelOutside(){return this.controller.labelOutside}get nativeFocusableElement(){return this.computedDisabled||!this.focusableElement?null:this.focusableElement.nativeElement}get focused(){return zi(this.nativeFocusableElement)}get size(){return this.controller.size}get hasTooltip(){return!!this.hintController.content&&!this.disabled}get hasValue(){return""!==this.value}get hasCounter(){return!!this.controller.maxLength&&!this.disabled&&!this.readOnly}get hasPlaceholder(){return!this.controller.labelOutside||!this.hasValue&&!this.hasExampleText}get hasExampleText(){return!!this.controller.exampleText&&this.focused&&!this.hasValue&&!this.readOnly}get computeMaxHeight(){return this.expandable?this.rows*this.lineHeight:null}get placeholderRaised(){return!this.controller.labelOutside&&(this.computedFocused&&!this.readOnly||this.hasValue)}get fittedContent(){return this.value.slice(0,this.controller.maxLength||1/0)}get extraContent(){return this.value.slice(this.controller.maxLength||1/0)}onFocused(e){this.updateFocused(e)}onHovered(e){this.updateHovered(e)}
1onPressed(e){this.updatePressed(e)}onValue(e){this.updateValue(e)}onMouseDown(e){e.target!==this.nativeFocusableElement&&(e.preventDefault(),this.nativeFocusableElement&&Hi(this.nativeFocusableElement))}getFallbackValue(){return""}get lineHeight(){return"m"===this.controller.size?20:24}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"]($t.NgControl,10),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](Ns),i["\u0275\u0275directiveInject"](Oo),i["\u0275\u0275directiveInject"](Fs),i["\u0275\u0275directiveInject"](Sh),i["\u0275\u0275directiveInject"](sd))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-text-area"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](Bp,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.focusableElement=e.first)}},hostVars:13,hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("$.data-mode.attr",function(){return t.mode$}),2&e&&(i["\u0275\u0275attribute"]("data-tui-host-size",t.size),i["\u0275\u0275classProp"]("_ios",t.isIOS)("_expandable",t.expandable)("_label-outside",t.labelOutside)("_has-tooltip",t.hasTooltip)("_has-value",t.hasValue)("_has-counter",t.hasCounter))},inputs:{rows:"rows",expandable:"expandable"},features:[i["\u0275\u0275ProvidersFeature"](Mp),i["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:Lp,decls:18,vars:19,consts:[["automation-id","tui-text-area__wrapper",1,"outline",3,"appearance","disabled","focused","hovered","readOnly","invalid"],["automation-id","tui-text-area__counter","class","counter",4,"ngIf"],[1,"content",3,"tuiHoveredChange","mousedown"],[1,"wrapper"],["automation-id","tui-text-area__placeholder","class","placeholder",3,"placeholder_raised",4,"ngIf"],["automation-id","tui-text-area__example-text","class","example-text",4,"ngIf"],["automation-id","tui-text-area__scrollbar",1,"box"],[1,"input-wrapper"],[1,"relative"],["aria-hidden","true",1,"pseudo-content"],[1,"pseudo-content__extra"],["automation-id","tui-text-area__native",1,"input",3,"id","tuiFocusable","disabled","ngModel","readOnly","tuiFocusedChange","ngModelChange"],["focusableElement",""],["automation-id","tui-text-area__tooltip","class","tooltip","describeId","placeholer_until_accesibility_is_added",3,"direction","mode","content","showDelay","hideDelay",4,"ngIf"],["automation-id","tui-text-area__counter",1,"counter"],["automation-id","tui-text-area__placeholder",1,"placeholder"],["automation-id","tui-text-area__example-text",1,"example-text"],[1,"example-text-inner"],["automation-id","tui-text-area__tooltip","describeId","placeholer_until_accesibility_is_added",1,"tooltip",3,"direction","mode","content","showDelay","hideDelay"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275elementStart"](0,"tui-wrapper",0),i["\u0275\u0275template"](1,kp,2,2,"div",1),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](2,"label",2),i["\u0275\u0275listener"]("tuiHoveredChange",function(e){return t.onHovered(e)})("mousedown",function(e){return t.onMouseDown(e)}),i["\u0275\u0275elementStart"](3,"div",3),i["\u0275\u0275template"](4,Pp,2,2,"div",4),i["\u0275\u0275template"](5,Op,3,1,"div",5),i["\u0275\u0275elementStart"](6,"tui-scrollbar",6),i["\u0275\u0275elementStart"](7,"div",7),i["\u0275\u0275elementStart"](8,"div",8),i["\u0275\u0275elementStart"](9,"div",9),i["\u0275\u0275elementStart"](10,"span"),i["\u0275\u0275text"](11),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"span",10),i["\u0275\u0275text"](13),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](14," \xa0 "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](15,"textarea",11,12),i["\u0275\u0275listener"]("tuiFocusedChange",function(e){return t.onFocused(e)})("ngModelChange",function(e){return t.onValue(e)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](17,Fp,1,5,"tui-tooltip",13),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("appearance",t.appearance)("disabled",t.disabled)("focused",t.computedFocused)("hovered",t.computedHovered)("readOnly",t.readOnly)("invalid",t.computedInvalid),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.hasCounter),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngIf",t.hasPlaceholder),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.hasExampleText),i["\u0275\u0275advance"](1),i["\u0275\u0275styleProp"]("max-height",t.computeMaxHeight,"px"),i["\u0275\u0275advance"](5),i["\u0275\u0275textInterpolate"](t.fittedContent),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate"](t.extraContent),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("id",t.id)("tuiFocusable",t.focusable)("disabled",t.disabled)("ngModel",t.value)("readOnly",t.readOnly),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.hasTooltip))},directives:[ja,Ft.O5,Nc,wc,$t.DefaultValueAccessor,Kh,$t.NgControlStatus,$t.NgModel,zh,Ih],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-m);position:relative;z-index:0;display:flex;flex-direction:column;min-height:6.75rem;border-radius:var(--tui-radius-m);color:var(--tui-text-01)}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-tui-host-size='m'][_nghost-%COMP%]{font:var(--tui-font-text-s);min-height:5.5rem}[data-tui-host-size='m']._has-counter[_nghost-%COMP%]{min-height:6.625rem}[data-tui-host-size='l']._has-counter[_nghost-%COMP%]{min-height:7.875rem}.outline[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.content[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;min-height:inherit;width:100%;box-sizing:border-box;overflow:hidden;cursor:text}@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){.content[_ngcontent-%COMP%]::-webkit-scrollbar, .content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:6px solid transparent}.content[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent}.content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}._disabled[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{cursor:auto;opacity:var(--tui-disabled-opacity)}[_nghost-%COMP%]:not(._expandable)   .content[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:.0625rem;right:0;min-height:auto}._has-counter[_nghost-%COMP%]:not(._expandable)   .content[_ngcontent-%COMP%]{bottom:1.6875rem}.wrapper[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;min-height:inherit;padding-bottom:.4375rem;box-sizing:border-box}[data-tui-host-size='m']._label-outside[_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]{padding-top:.75rem}[data-tui-host-size='l']._label-outside[_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]{padding-top:1rem}[data-tui-host-size='m'][_nghost-%COMP%]:not(._label-outside)   .wrapper[_ngcontent-%COMP%]{padding-top:1.375rem}[data-tui-host-size='l'][_nghost-%COMP%]:not(._label-outside)   .wrapper[_ngcontent-%COMP%]{padding-top:1.625rem}.input-wrapper[_ngcontent-%COMP%]{min-height:inherit;width:100%;flex:1}.relative[_ngcontent-%COMP%]{position:relative;min-height:inherit}.box[_ngcontent-%COMP%]{display:flex;min-height:100%;width:100%}[_nghost-%COMP%]:not(._expandable)   .box[_ngcontent-%COMP%]{height:100%}._has-counter._expandable[_nghost-%COMP%]   .box[_ngcontent-%COMP%]{margin-bottom:1.25rem}.pseudo-content[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;pointer-events:none;color:transparent;overflow:hidden}[data-tui-host-size='m'][_nghost-%COMP%]   .pseudo-content[_ngcontent-%COMP%]{padding:0 .75rem}[data-tui-host-size='l'][_nghost-%COMP%]   .pseudo-content[_ngcontent-%COMP%]{padding:0 1rem}._focused._has-tooltip[_nghost-%COMP%]   .pseudo-content[_ngcontent-%COMP%], ._has-value._has-tooltip[_nghost-%COMP%]   .pseudo-content[_ngcontent-%COMP%]{margin-right:2.5rem}.pseudo-content__extra[_ngcontent-%COMP%]{background-color:var(--tui-error-bg-night)}.input[_ngcontent-%COMP%]{padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;box-sizing:border-box;height:100%;resize:none;overflow:hidden}.input[_ngcontent-%COMP%]:-webkit-autofill, .input[_ngcontent-%COMP%]:-webkit-autofill:focus, .input[_ngcontent-%COMP%]:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.input[_ngcontent-%COMP%]:focus{outline:0}[data-tui-host-size='m'][_nghost-%COMP%]   .input[_ngcontent-%COMP%]{padding:0 .75rem}[data-tui-host-size='l'][_nghost-%COMP%]   .input[_ngcontent-%COMP%]{padding:0 1rem}._focused._has-tooltip[_nghost-%COMP%]   .input[_ngcontent-%COMP%], ._has-value._has-tooltip[_nghost-%COMP%]   .input[_ngcontent-%COMP%]{padding-right:2.5rem}._ios[_nghost-%COMP%]   .input[_ngcontent-%COMP%]{padding-left:.8125rem}[data-mode=onDark]._disabled[_nghost-%COMP%]   .input[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}.placeholder[_ngcontent-%COMP%]{transition-property:transform,min-width,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;height:1.25rem;font-size:.8125rem;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--tui-text-02);transform-origin:left;letter-spacing:normal;text-transform:none;position:absolute;max-width:calc(100% - 1.5rem)}.placeholder_raised[_ngcontent-%COMP%]{width:114%;
1transform:translateY(-.625rem) scale(.87);max-width:calc(113% - 2rem)}[data-tui-host-size='m'][_nghost-%COMP%]   .placeholder_raised[_ngcontent-%COMP%]{width:118%;transform:translateY(-.5rem) scale(.85);letter-spacing:.025rem}._invalid[_nghost-%COMP%]:not(._focused)   .placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused)._hovered   .placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill)}[data-mode=onDark]._invalid[_nghost-%COMP%]:not(._focused)   .placeholder_raised[_ngcontent-%COMP%], [data-mode=onDark]._invalid[_nghost-%COMP%]:not(._focused)._hovered   .placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill-night)}._focused[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%], [data-tui-host-size='l']._focused._label-outside[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%], [data-tui-host-size='m']._focused._label-outside[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-tui-host-size='l']._focused[_nghost-%COMP%]:not(._label-outside)   .placeholder[_ngcontent-%COMP%], [data-tui-host-size='m']._focused[_nghost-%COMP%]:not(._label-outside)   .placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01)}[data-mode=onDark][_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-tui-host-size='l'][data-mode=onDark]._focused[_nghost-%COMP%]:not(._label-outside)   .placeholder[_ngcontent-%COMP%], [data-tui-host-size='m'][data-mode=onDark]._focused[_nghost-%COMP%]:not(._label-outside)   .placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._focused[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%], [data-tui-host-size='l'][data-mode=onDark]._focused._label-outside[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%], [data-tui-host-size='m'][data-mode=onDark]._focused._label-outside[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-tui-host-size='m'][_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%]{top:.75rem;left:.75rem}[data-tui-host-size='l'][_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%]{font-size:.9375rem;top:1rem;left:1rem}._has-tooltip[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%]{max-width:calc(100% - 3.25rem)}._label-outside[_nghost-%COMP%]   .placeholder[_ngcontent-%COMP%]{overflow:initial;height:auto;white-space:initial}.example-text[_ngcontent-%COMP%]{position:absolute;max-width:calc(100% - 1.5rem);color:var(--tui-text-03);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}._has-tooltip._focused[_nghost-%COMP%]   .example-text[_ngcontent-%COMP%], ._has-tooltip._has-value[_nghost-%COMP%]   .example-text[_ngcontent-%COMP%]{max-width:calc(100% - 3.25rem)}[data-tui-host-size='m'][_nghost-%COMP%]   .example-text[_ngcontent-%COMP%]{left:.75rem}[data-tui-host-size='l'][_nghost-%COMP%]   .example-text[_ngcontent-%COMP%]{left:1rem}.tooltip[_ngcontent-%COMP%]{position:absolute;top:1rem;right:.75rem}.counter[_ngcontent-%COMP%]{font:var(--tui-font-text-s);position:absolute;bottom:.5rem;right:.75rem;pointer-events:none;margin-top:auto;text-align:right;color:var(--tui-text-03)}[data-mode=onDark][_nghost-%COMP%]   .counter[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}"],changeDetection:0}),Bh([ns()],e.prototype,"rows",void 0),Bh([ns()],e.prototype,"expandable",void 0),e=Bh([kh(0,(0,i.Optional)()),kh(0,(0,i.Self)()),kh(0,(0,i.Inject)($t.NgControl)),kh(1,(0,i.Inject)(i.ChangeDetectorRef)),kh(2,(0,i.Inject)(Ns)),kh(3,(0,i.Inject)(Oo)),kh(4,(0,i.Inject)(Fs)),kh(5,(0,i.Inject)(Sh)),kh(6,(0,i.Inject)(sd))],e),e})(),Np=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,$t.FormsModule,Gh,Wh,Rc,Cc,xh,Qa]]}),e})();class Rp{}class Up{}class jp extends Up{}class Qp extends Up{}class Hp extends Up{}class Vp extends Up{}let qp=(()=>{class e{constructor(e,t){this.document=e,this.platformId=t,this.documentIsAccessible=(0,Ft.NF)(this.platformId)}check(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}get(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);const t=this.getCookieRegExp(e).exec(this.document.cookie);return decodeURIComponent(t[1])}return null}getAll(){if(!this.documentIsAccessible)return{};const e={},t=this.document;if(t.cookie&&""!==t.cookie){const n=t.cookie.split(";");for(let t=0;t<n.length;t+=1){const r=n[t].split("=");r[0]=r[0].replace(/^ /,""),e[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}}return e}put(e,t,n={sameSite:"None",secure:!0}){if(!this.documentIsAccessible)return;let r=encodeURIComponent(e)+"="+encodeURIComponent(t)+";";n.expires&&(r+="number"==typeof n.expires?"expires="+new Date((new Date).getTime()+1e3*n.expires*60*60*24).toUTCString()+";":"expires="+n.expires.toUTCString()+";"),n.path&&(r+="path="+n.path+";"),n.domain&&(r+="domain="+n.domain+";"),n.secure&&(r+="secure;"),n.sameSite&&(r+="sameSite="+n.sameSite+";"),this.document.cookie=r}remove(e,t,n){this.documentIsAccessible&&this.put(e,"",{path:t,domain:n,expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT")})}removeAll(e,t){if(!this.documentIsAccessible)return;const n=this.getAll();for(const r in n)n.hasOwnProperty(r)&&this.remove(r,e,t)}getCookieRegExp(e){const t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Ft.K0),i["\u0275\u0275inject"](i.PLATFORM_ID))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Kp=(()=>{class e{constructor(e){this.cookieService=e}get length(){return Object.keys(this.cookieService.getAll()).length}clear(){this.cookieService.removeAll()}getItem(e){const t=this.cookieService.get(e);return null!=t?t:null}key(e){const t=Object.keys(this.cookieService.getAll());return e>=0&&e<t.length?t[e]:null}removeItem(e){this.cookieService.remove(e)}setItem(e,t,n={path:"/"}){this.cookieService.put(e,t,n)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Rp))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function Gp(e){let t;try{t=window[e];const n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(bB){return bB instanceof DOMException&&(22===bB.code||1014===bB.code||"QuotaExceededError"===bB.name||"NS_ERROR_DOM_QUOTA_REACHED"===bB.name)&&t&&0!==t.length}}let zp=(()=>{class e{constructor(e,t){this.memoryStorage=e,this.platformId=t,this.storage=(0,Ft.NF)(this.platformId)&&Gp("localStorage")?window.localStorage:this.memoryStorage}get length(){return this.storage.length}clear(){this.storage.clear()}getItem(e){return this.storage.getItem(e)}key(e){return this.storage.key(e)}removeItem(e){this.storage.removeItem(e)}setItem(e,t){this.storage.setItem(e,t)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Hp),i["\u0275\u0275inject"](i.PLATFORM_ID))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Wp=(()=>{class e{constructor(){this.data={}}get length(){return Object.keys(this.data).length}clear(){this.data={}}getItem(e){return e in this.data?this.data[e]:null}key(e){const t=Object.keys(this.data);return e>=0&&t.length<e?t[e]:null}removeItem(e){delete this.data[e]}setItem(e,t){this.data[e]=t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),$p=(()=>{class e{constructor(e,t){this.memoryStorage=e,this.platformId=t,this.storage=Gp("sessionStorage")?window.sessionStorage:this.memoryStorage}get length(){return this.storage.length}clear(){this.storage.clear()}getItem(e){return this.storage.getItem(e)}key(e){return this.storage.key(e)}removeItem(e){this.storage.removeItem(e)}setItem(e,t){this.storage.setItem(e,t)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Hp),i["\u0275\u0275inject"](i.PLATFORM_ID))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),Yp=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[{provide:Rp,useClass:t.cookieService||qp},{provide:jp,useClass:t.cookieStorage||Kp},{provide:Qp,useClass:t.localStorage||zp},{provide:Hp,useClass:t.memoryStorage||Wp},{provide:Vp,useClass:t.sessionStorage||$p}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();const Xp="https://download.bvksdigital.com",Jp={apiKey:"AIzaSyCXFbWCZyoeHL8hxbojbexI-kRKPDcirj8",authDomain:"bvks-ee662.firebaseapp.com",databaseURL:"https://bvks-ee662.firebaseio.com",projectId:"bvks-ee662",storageBucket:"bvks-ee662.appspot.com",messagingSenderId:"184985407900",appId:"1:184985407900:web:c3632eef8c2104e727b859",measurementId:"G-09LVQMCEL5"}
1,Zp="https://bvks-d1ac.kxcdn.com/wp-content/uploads/2018/05/20151503/Untitled-2.jpg",ef={key:"rzp_test_LvDUh4q43pNF8G",handler:null,amount:"50000",currency:"INR",name:"BVKS",description:"BVKS Transaction",image:"https://bvks-d1ac.kxcdn.com/wp-content/uploads/2018/05/20151503/Untitled-2.jpg",callback_url:"",prefill:{name:"",email:"",contact:""},notes:{address:""},theme:{color:"#fd7e14"}};function tf(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new nf(e,t,n))}}class nf{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new rf(e,this.accumulator,this.seed,this.hasSeed))}}class rf extends en.L{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}var of=n(1062),sf=n(250),af=n(308),lf=function(e,t){return(lf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function cf(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var uf,hf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},df=df||{},Af=hf||self;function pf(){}function ff(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function gf(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var mf="closure_uid_"+(1e9*Math.random()>>>0),vf=0;function yf(e,t,n){return e.call.apply(e.bind,arguments)}function bf(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function _f(e,t,n){return(_f=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?yf:bf).apply(null,arguments)}function wf(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function Cf(e,t){function n(){}n.prototype=t.prototype,e.Z=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Vb=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}function Sf(){this.s=this.s,this.o=this.o}var Ef={};Sf.prototype.s=!1,Sf.prototype.na=function(){if(!this.s&&(this.s=!0,this.M(),0)){var e=function(e){return Object.prototype.hasOwnProperty.call(e,mf)&&e[mf]||(e[mf]=++vf)}(this);delete Ef[e]}},Sf.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var If=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},xf=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i="string"==typeof e?e.split(""):e,o=0;o<r;o++)o in i&&t.call(n,i[o],o,e)};function Tf(e){return Array.prototype.concat.apply([],arguments)}function Bf(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function kf(e){return/^[\s\xa0]*$/.test(e)}var Pf,Of=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function Ff(e,t){return-1!=e.indexOf(t)}function Lf(e,t){return e<t?-1:e>t?1:0}e:{var Mf=Af.navigator;if(Mf){var Df=Mf.userAgent;if(Df){Pf=Df;break e}}Pf=""}function Nf(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function Rf(e){var t={};for(var n in e)t[n]=e[n];return t}var Uf="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1ing toString valueOf".split(" ");function jf(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var o=0;o<Uf.length;o++)n=Uf[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function Qf(e){return Qf[" "](e),e}Qf[" "]=pf;var Hf,Vf=Ff(Pf,"Opera"),qf=Ff(Pf,"Trident")||Ff(Pf,"MSIE"),Kf=Ff(Pf,"Edge"),Gf=Kf||qf,zf=Ff(Pf,"Gecko")&&!(Ff(Pf.toLowerCase(),"webkit")&&!Ff(Pf,"Edge"))&&!(Ff(Pf,"Trident")||Ff(Pf,"MSIE"))&&!Ff(Pf,"Edge"),Wf=Ff(Pf.toLowerCase(),"webkit")&&!Ff(Pf,"Edge");function $f(){var e=Af.document;return e?e.documentMode:void 0}e:{var Yf="",Xf=function(){var e=Pf;return zf?/rv:([^\);]+)(\)|;)/.exec(e):Kf?/Edge\/([\d\.]+)/.exec(e):qf?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):Wf?/WebKit\/(\S+)/.exec(e):Vf?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(Xf&&(Yf=Xf?Xf[1]:""),qf){var Jf=$f();if(null!=Jf&&Jf>parseFloat(Yf)){Hf=String(Jf);break e}}Hf=Yf}var Zf={};var eg=Af.document&&qf&&($f()||parseInt(Hf,10))||void 0,tg=function(){if(!Af.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{Af.addEventListener("test",pf,t),Af.removeEventListener("test",pf,t)}catch(bR){}return e}();function ng(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}function rg(e,t){if(ng.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(zf){e:{try{Qf(t.nodeName);var i=!0;break e}catch(SR){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:ig[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&rg.Z.h.call(this)}}ng.prototype.h=function(){this.defaultPrevented=!0},Cf(rg,ng);var ig={2:"touch",3:"pen",4:"mouse"};rg.prototype.h=function(){rg.Z.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var og="closure_listenable_"+(1e6*Math.random()|0),sg=0;function ag(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ia=i,this.key=++sg,this.ca=this.fa=!1}function lg(e){e.ca=!0,e.listener=null,e.proxy=null,e.src=null,e.ia=null}function cg(e){this.src=e,this.g={},this.h=0}function ug(e,t){var n=t.type;if(n in e.g){var r,i=e.g[n],o=If(i,t);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(lg(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function hg(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.ca&&o.listener==t&&o.capture==!!n&&o.ia==r)return i}return-1}cg.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.g[o])||(e=this.g[o]=[],this.h++);var s=hg(e,t,r,i);return-1<s?(t=e[s],n||(t.fa=!1)):((t=new ag(t,this.src,o,!!r,i)).fa=n,e.push(t)),t};var dg="closure_lm_"+(1e6*Math.random()|0),Ag={};function pg(e,t,n,r,i){if(r&&r.once)return gg(e,t,n,r,i);if(Array.isArray(t)){for(var o=0;o<t.length;o++)pg(e,t[o],n,r,i);return null}return n=Cg(n),e&&e[og]?e.N(t,n,gf(r)?!!r.capture:!!r,i):fg(e,t,n,!1,r,i)}function fg(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var s=gf(i)?!!i.capture:!!i,a=_g(e);if(a||(e[dg]=a=new cg(e)),(n=a.add(t,n,r,s,o)).proxy)return n;if(r=function(){var e=bg;return function t(n){return e.call(t.src,t.listener,n)}}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)tg||(i=s),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(yg(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function gg(e,t,n,r,i){if(Array.isArray(t)){for(var o=0;o<t.length;o++)gg(e,t[o],n,r,i);return null}return n=Cg(n),e&&e[og]?e.O(t,n,gf(r)?!!r.capture:!!r,i):fg(e,t,n,!0,r,i)}function mg(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)mg(e,t[o],n,r,i);else r=gf(r)?!!r.capture:!!r,n=Cg(n),e&&e[og]?(e=e.i,(t=String(t).toString())in e.g&&-1<(n=hg(o=e.g[t],n,r,i))&&(lg(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.g[t],e.h--))
vendor: 23,909 bytes, line 1
1):e&&(e=_g(e))&&(t=e.g[t.toString()],e=-1,t&&(e=hg(t,n,r,i)),(n=-1<e?t[e]:null)&&vg(n))}function vg(e){if("number"!=typeof e&&e&&!e.ca){var t=e.src;if(t&&t[og])ug(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(yg(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=_g(t))?(ug(n,e),0==n.h&&(n.src=null,t[dg]=null)):lg(e)}}}function yg(e){return e in Ag?Ag[e]:Ag[e]="on"+e}function bg(e,t){if(e.ca)e=!0;else{t=new rg(t,this);var n=e.listener,r=e.ia||e.src;e.fa&&vg(e),e=n.call(r,t)}return e}function _g(e){return(e=e[dg])instanceof cg?e:null}var wg="__closure_events_fn_"+(1e9*Math.random()>>>0);function Cg(e){return"function"==typeof e?e:(e[wg]||(e[wg]=function(t){return e.handleEvent(t)}),e[wg])}function Sg(){Sf.call(this),this.i=new cg(this),this.P=this,this.I=null}function Eg(e,t){var n,r=e.I;if(r)for(n=[];r;r=r.I)n.push(r);if(e=e.P,r=t.type||t,"string"==typeof t)t=new ng(t,e);else if(t instanceof ng)t.target=t.target||e;else{var i=t;jf(t=new ng(r,e),i)}if(i=!0,n)for(var o=n.length-1;0<=o;o--){var s=t.g=n[o];i=Ig(s,r,!0,t)&&i}if(i=Ig(s=t.g=e,r,!0,t)&&i,i=Ig(s,r,!1,t)&&i,n)for(o=0;o<n.length;o++)i=Ig(s=t.g=n[o],r,!1,t)&&i}function Ig(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var s=t[o];if(s&&!s.ca&&s.capture==n){var a=s.listener,l=s.ia||s.src;s.fa&&ug(e.i,s),i=!1!==a.call(l,r)&&i}}return i&&!r.defaultPrevented}Cf(Sg,Sf),Sg.prototype[og]=!0,Sg.prototype.removeEventListener=function(e,t,n,r){mg(this,e,t,n,r)},Sg.prototype.M=function(){if(Sg.Z.M.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)lg(n[r]);delete t.g[e],t.h--}}this.I=null},Sg.prototype.N=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},Sg.prototype.O=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};var xg=Af.JSON.stringify;function Tg(){var e=Dg,t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var Bg,kg=function(){function e(){this.h=this.g=null}return e.prototype.add=function(e,t){var n=Pg.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n},e}(),Pg=new(function(){function e(e,t){this.i=e,this.j=t,this.h=0,this.g=null}return e.prototype.get=function(){var e;return 0<this.h?(this.h--,this.g=(e=this.g).next,e.next=null):e=this.i(),e},e}())(function(){return new Og},function(e){return e.reset()}),Og=function(){function e(){this.next=this.g=this.h=null}return e.prototype.set=function(e,t){this.h=e,this.g=t,this.next=null},e.prototype.reset=function(){this.next=this.g=this.h=null},e}();function Fg(e){Af.setTimeout(function(){throw e},0)}function Lg(e,t){Bg||function(){var e=Af.Promise.resolve(void 0);Bg=function(){e.then(Ng)}}(),Mg||(Bg(),Mg=!0),Dg.add(e,t)}var Mg=!1,Dg=new kg;function Ng(){for(var e;e=Tg();){try{e.h.call(e.g)}catch(bR){Fg(bR)}var t=Pg;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}Mg=!1}function Rg(e,t){Sg.call(this),this.h=e||1,this.g=t||Af,this.j=_f(this.kb,this),this.l=Date.now()}function Ug(e){e.da=!1,e.S&&(e.g.clearTimeout(e.S),e.S=null)}function jg(e,t,n){if("function"==typeof e)n&&(e=_f(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=_f(e.handleEvent,e)}return 2147483647<Number(t)?-1:Af.setTimeout(e,t||0)}function Qg(e){e.g=jg(function(){e.g=null,e.i&&(e.i=!1,Qg(e))},e.j);var t=e.h;e.h=null,e.m.apply(null,t)}Cf(Rg,Sg),(uf=Rg.prototype).da=!1,uf.S=null,uf.kb=function(){if(this.da){var e=Date.now()-this.l;0<e&&e<.8*this.h?this.S=this.g.setTimeout(this.j,this.h-e):(this.S&&(this.g.clearTimeout(this.S),this.S=null),Eg(this,"tick"),this.da&&(Ug(this),this.start()))}},uf.start=function(){this.da=!0,this.S||(this.S=this.g.setTimeout(this.j,this.h),this.l=Date.now())},uf.M=function(){Rg.Z.M.call(this),Ug(this),delete this.g};var Hg=function(e){function t(t,n){var r=e.call(this)||this;return r.m=t,r.j=n,r.h=null,r.i=!1,r.g=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}lf(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.l=function(e){this.h=arguments,this.g?this.i=!0:Qg(this)},t.prototype.M=function(){e.prototype.M.call(this),this.g&&(Af.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)},t}(Sf);function Vg(e){Sf.call(this),this.h=e,this.g={}}Cf(Vg,Sf);var qg=[];function Kg(e,t,n,r){Array.isArray(n)||(n&&(qg[0]=n.toString()),n=qg);for(var i=0;i<n.length;i++){var o=pg(t,n[i],r||e.handleEvent,!1,e.h||e);if(!o)break;e.g[o.key]=o}}function Gg(e){Nf(e.g,function(e,t){this.g.hasOwnProperty(t)&&vg(e)},e),e.g={}}function zg(){this.g=!0}function Wg(e,t,n,r){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var s=1;s<i.length;s++)i[s]=""}}}return xg(n)}catch(a){return t}}(e,n)+(r?" "+r:"")})}Vg.prototype.M=function(){Vg.Z.M.call(this),Gg(this)},Vg.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},zg.prototype.Aa=function(){this.g=!1},zg.prototype.info=function(){};var $g={},Yg=null;function Xg(){return Yg=Yg||new Sg}function Jg(e){ng.call(this,$g.Ma,e)}function Zg(e){var t=Xg();Eg(t,new Jg(t,e))}function em(e,t){ng.call(this,$g.STAT_EVENT,e),this.stat=t}function tm(e){var t=Xg();Eg(t,new em(t,e))}function nm(e,t){ng.call(this,$g.Na,e),this.size=t}function rm(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return Af.setTimeout(function(){e()},t)}$g.Ma="serverreachability",Cf(Jg,ng),$g.STAT_EVENT="statevent",Cf(em,ng),$g.Na="timingevent",Cf(nm,ng);var im={NO_ERROR:0,lb:1,yb:2,xb:3,sb:4,wb:5,zb:6,Ja:7,TIMEOUT:8,Cb:9},om={qb:"complete",Mb:"success",Ka:"error",Ja:"abort",Eb:"ready",Fb:"readystatechange",TIMEOUT:"timeout",Ab:"incrementaldata",Db:"progress",tb:"downloadprogress",Ub:"uploadprogress"};function sm(){}function am(){}sm.prototype.h=null;var lm,cm={OPEN:"a",pb:"b",Ka:"c",Bb:"d"};function um(){ng.call(this,"d")}function hm(){ng.call(this,"c")}function dm(){}function Am(e,t,n,r){this.l=e,this.j=t,this.m=n,this.X=r||1,this.V=new Vg(this),this.P=fm,this.W=new Rg(e=Gf?125:void 0),this.H=null,this.i=!1,this.s=this.A=this.v=this.K=this.F=this.Y=this.B=null,this.D=[],this.g=null,this.C=0,this.o=this.u=null,this.N=-1,this.I=!1,this.O=0,this.L=null,this.aa=this.J=this.$=this.U=!1,this.h=new pm}function pm(){this.i=null,this.g="",this.h=!1}Cf(um,ng),Cf(hm,ng),Cf(dm,sm),dm.prototype.g=function(){return new XMLHttpRequest},dm.prototype.i=function(){return{}},lm=new dm;var fm=45e3,gm={},mm={};function vm(e,t,n){e.K=1,e.v=Qm(Mm(t)),e.s=n,e.U=!0,ym(e,null)}function ym(e,t){e.F=Date.now(),Cm(e),e.A=Mm(e.v);var n=e.A,r=e.X;Array.isArray(r)||(r=[String(r)]),ev(n.h,"t",r),e.C=0,n=e.l.H,e.h=new pm,e.g=ty(e.l,n?t:null,!e.s),0<e.O&&(e.L=new Hg(_f(e.Ia,e,e.g),e.O)),Kg(e.V,e.g,"readystatechange",e.gb),t=e.H?Rf(e.H):{},e.s?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.s,t)):(e.u="GET",e.g.ea(e.A,e.u,null,t)),Zg(1),function(e,t,n,r,i,o){e.info(function(){if(e.g)if(o)for(var s="",a=o.split("&"),l=0;l<a.length;l++){var c=a[l].split("=");if(1<c.length){var u=c[0];c=c[1];var h=u.split("_");s=2<=h.length&&"type"==h[1]?s+(u+"=")+c+"&":s+(u+"=redacted&")}}else s=null;else s=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+s})}(e.j,e.u,e.A,e.m,e.X,e.s)}function bm(e){return!!e.g&&"GET"==e.u&&2!=e.K&&e.l.Ba}function _m(e,t,n){for(var r,i=!0;!e.I&&e.C<n.length;){if((r=wm(e,n))==mm){4==t&&(e.o=4,tm(14),i=!1),Wg(e.j,e.m,null,"[Incomplete Response]");break}if(r==gm){e.o=4,tm(15),Wg(e.j,e.m,n,"[Invalid Chunk]"),i=!1;break}Wg(e.j,e.m,r,null),Tm(e,r)}bm(e)&&r!=mm&&r!=gm&&(e.h.g="",e.C=0),4!=t||0!=n.length||e.h.h||(e.o=1,tm(16),i=!1),e.i=e.i&&i,i?0<n.length&&!e.aa&&(e.aa=!0,(t=e.l).g==e&&t.$&&!t.L&&(t.h.info("Great, no buffering proxy detected. Bytes received: "+n.length),zv(t),t.L=!0,tm(11))):(Wg(e.j,e.m,n,"[Invalid Chunked Response]"),xm(e),Im(e))}function wm(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?mm:(n=Number(t.substring(n,r)),isNaN(n)?gm:(r+=1)+n>t.length?mm:(t=t.substr(r,n),e.C=r+n,t))}function Cm(e){e.Y=Date.now()+e.P,Sm(e,e.P)}function Sm(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=rm(_f(e.eb,e),t)}function Em(e){e.B&&(Af.clearTimeout(e.B),e.B=null)}function Im(e){0==e.l.G||e.I||Yv(e.l,e)}function xm(e){Em(e);var t=e.L;t&&"function"==typeof t.na&&t.na(),e.L=null,Ug(e.W),Gg(e.V),e.g&&(t=e.g,e.g=null,t.abort(),t.na())}function Tm(e,t){try{var n=e.l;if(0!=n.G&&(n.g==e||av(n.i,e)))if(n.I=e.N,!e.J&&av(n.i,e)&&3==n.G){try{var r=n.Ca.g.parse(t)}catch(o){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.u){if(n.g){if(!(n.g.F+3e3<e.F))break e;$v(n),Rv(n)}Gv(n),tm(18)}}else n.ta=i[1],0<n.ta-n.U&&37500>i[2]&&n.N&&0==n.A&&!n.v&&(n.v=rm(_f(n.ab,n),6e3));if(1>=sv(n.i)&&n.ka){try{n.ka()}catch(o){}n.ka=void 0}}else Jv(n,11)}else if((e.J||n.g==e)&&$v(n),!kf(t))for(i=n.Ca.g.parse(t),t=0;t<i.length;t++){var o=i[t];if(n.U=o[0],o=o[1],2==n.G)if("c"==o[0]){n.J=o[1],n.la=o[2];var s=o[3];null!=s&&(n.ma=s,n.h.info("VER="+n.ma));var a=o[4];null!=a&&(n.za=a,n.h.info("SVER="+n.za));var l=o[5];null!=l&&"number"==typeof l&&0<l&&(n.K=r=1.5*l,n.h.info("backChannelRequestTimeoutMs_="+r)),r=n;var c=e.g;if(c){var u=c.g?c.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(u){var h=r.i;!h.g&&(Ff(u,"spdy")||Ff(u,"quic")||Ff(u,"h2"))&&(h.j=h.l,h.g=new Set,h.h&&(lv(h,h.h),h.h=null))}if(r.D){var d=c.g?c.g.getResponseHeader("X-HTTP-Session-Id"):null;d&&(r.sa=d,jm(r.F,r.D,d))}}n.G=3,n.j&&n.j.xa(),n.$&&(n.O=Date.now()-e.F,n.h.info("Handshake RTT: "+n.O+"ms"));var A=e;if((r=n).oa=ey(r,r.H?r.la:null,r.W),A.J){cv(r.i,A);var p=A,f=r.K;f&&p.setTimeout(f),p.B&&(Em(p),Cm(p)),r.g=A}else Kv(r);0<n.l.length&&Qv(n)}else"stop"!=o[0]&&"close"!=o[0]||Jv(n,7);else 3==n.G&&("stop"==o[0]||"close"==o[0]?"stop"==o[0]?Jv(n,7):Nv(n):"noop"!=o[0]&&n.j&&n.j.wa(o),n.A=0)}Zg(4)}catch(o){}}function Bm(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(ff(e)||"string"==typeof e)xf(e,t,void 0);else{if(e.T&&"function"==typeof e.T)var n=e.T();else if(e.R&&"function"==typeof e.R)n=void 0;else if(ff(e)||"string"==typeof e){n=[];for(var r=e.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,e)n[r++]=i;i=(r=function(e){if(e.R&&"function"==typeof e.R)return e.R();if("string"==typeof e)return e.split("");if(ff(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e)).length;for(var o=0;o<i;o++)t.call(void 0,r[o],n&&n[o],e)}}function km(e,t){this.h={},this.g=[],this.i=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof km)for(n=e.T(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function Pm(e){if(e.i!=e.g.length){for(var t=0,n=0;t<e.g.length;){var r=e.g[t];Om(e.h,r)&&(e.g[n++]=r),t++}e.g.length=n}if(e.i!=e.g.length){var i={};for(n=t=0;t<e.g.length;)Om(i,r=e.g[t])||(e.g[n++]=r,i[r]=1),t++;e.g.length=n}}function Om(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(uf=Am.prototype).setTimeout=function(e){this.P=e},uf.gb=function(e){e=e.target;var t=this.L;t&&3==Ov(e)?t.l():this.Ia(e)},uf.Ia=function(e){try{if(e==this.g)e:{var t=Ov(this.g),n=this.g.Da(),r=this.g.ba();if(!(3>t)&&(3!=t||Gf||this.g&&(this.h.h||this.g.ga()||Fv(this.g)))){this.I||4!=t||7==n||Zg(8==n||0>=r?3:2),Em(this);var i=this.g.ba();this.N=i;t:if(bm(this)){var o=Fv(this.g);e="";var s=o.length,a=4==Ov(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){xm(this),Im(this);var l="";break t}this.h.i=new Af.TextDecoder}for(n=0;n<s;n++)this.h.h=!0,e+=this.h.i.decode(o[n],{stream:a&&n==s-1});o.splice(0,s),this.h.g+=e,this.C=0,l=this.h.g}else l=this.g.ga();if(this.i=200==i,function(e,t,n,r,i,o,s){e.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+o+" "+s})}(this.j,this.u,this.A,this.m,this.X,t,i),this.i){if(this.$&&!this.J){t:{if(this.g){var c,u=this.g;if((c=u.g?u.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!kf(c)){var h=c;break t}}h=null}if(!(i=h)){this.i=!1,this.o=3,tm(12),xm(this),Im(this);break e}Wg(this.j,this.m,i,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,Tm(this,i)}this.U?(_m(this,t,l),Gf&&this.i&&3==t&&(Kg(this.V,this.W,"tick",this.fb),this.W.start())):(Wg(this.j,this.m,l,null),Tm(this,l)),4==t&&xm(this),this.i&&!this.I&&(4==t?Yv(this.l,this):(this.i=!1,Cm(this)))}else 400==i&&0<l.indexOf("Unknown SID")?(this.o=3,tm(12)):(this.o=0,tm(13)),xm(this),Im(this)}}}catch(t){}},uf.fb=function(){if(this.g){var e=Ov(this.g),t=this.g.ga();this.C<t.length&&(Em(this),_m(this,e,t),this.i&&4!=e&&Cm(this))}},uf.cancel=function(){this.I=!0,xm(this)},uf.eb=function(){this.B=null;var e=Date.now();0<=e-this.Y?(function(e,t){e.info(function(){return"TIMEOUT: "+t})}(this.j,this.A),2!=this.K&&(Zg(3),tm(17)),xm(this),this.o=2,Im(this)):Sm(this,this.Y-e)},(uf=km.prototype).R=function(){Pm(this);for(var e=[],t=0;t<this.g.length;t++)e.push(this.h[this.g[t]]);return e},uf.T=function(){return Pm(this),this.g.concat()},uf.get=function(e,t){return Om(this.h,e)?this.h[e]:t},uf.set=function(e,t){Om(this.h,e)||(this.i++,this.g.push(e)),this.h[e]=t},uf.forEach=function(e,t){for(var n=this.T(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);e.call(t,o,i,this)}};var Fm=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Lm(e,t){if(this.i=this.s=this.j="",this.m=null,this.o=this.l="",this.g=!1,e instanceof Lm){this.g=void 0!==t?t:e.g,Dm(this,e.j),this.s=e.s,Nm(this,e.i),Rm(this,e.m),this.l=e.l,t=e.h;var n=new Ym;n.i=t.i,t.g&&(n.g=new km(t.g),n.h=t.h),Um(this,n),this.o=e.o}else e&&(n=String(e).match(Fm))?(this.g=!!t,Dm(this,n[1]||"",!0),this.s=Hm(n[2]||""),Nm(this,n[3]||"",!0),Rm(this,n[4]),this.l=Hm(n[5]||"",!0),Um(this,n[6]||"",!0),this.o=Hm(n[7]||"")):(this.g=!!t,this.h=new Ym(null,this.g))}function Mm(e){return new Lm(e)}function Dm(e,t,n){e.j=n?Hm(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function Nm(e,t,n){e.i=n?Hm(t,!0):t}function Rm(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.m=t}else e.m=null}function Um(e,t,n){t instanceof Ym?(e.h=t,function(e,t){t&&!e.j&&(Xm(e),e.i=null,e.g.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(Jm(this,t),ev(this,n,e))},e)),e.j=t}(e.h,e.g)):(n||(t=Vm(t,Wm)),e.h=new Ym(t,e.g))}function jm(e,t,n){e.h.set(t,n)}function Qm(e){return jm(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function Hm(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Vm(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,qm),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function qm(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Lm.prototype.toString=function(){var e=[],t=this.j;t&&e.push(Vm(t,Km,!0),":");var n=this.i;return(n||"file"==t)&&(e.push("//"),(t=this.s)&&e.push(Vm(t,Km,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&e.push(":",String(n))),(n=this.l)&&(this.i&&"/"!=n.charAt(0)&&e.push("/"),e.push(Vm(n,"/"==n.charAt(0)?zm:Gm,!0))),(n=this.h.toString())&&e.push("?",n),(n=this.o)&&e.push("#",Vm(n,$m)),e.join("")};var Km=/[#\/\?@]/g,Gm=/[#\?:]/g,zm=/[#\?]/g,Wm=/[#\?@]/g,$m=/#/g;function Ym(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function Xm(e){e.g||(e.g=new km,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function Jm(e,t){Xm(e),t=tv(e,t),Om(e.g.h,t)&&(e.i=null,e.h-=e.g.get(t).length,Om((e=e.g).h,t)&&(delete e.h[t],e.i--,e.g.length>2*e.i&&Pm(e)))}function Zm(e,t){return Xm(e),t=tv(e,t),Om(e.g.h,t)}function ev(e,t,n){Jm(e,t),0<n.length&&(e.i=null,e.g.set(tv(e,t),Bf(n)),e.h+=n.length)}function tv(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}(uf=Ym.prototype).add=function(e,t){Xm(this),this.i=null,e=tv(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},uf.forEach=function(e,t){Xm(this),this.g.forEach(function(n,r){xf(n,function(n){e.call(t,n,r,this)},this)},this)},uf.T=function(){Xm(this);for(var e=this.g.R(),t=this.g.T(),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},uf.R=function(e){Xm(this);var t=[];if("string"==typeof e)Zm(this,e)&&(t=Tf(t,this.g.get(tv(this,e))));else{e=this.g.R();for(var n=0;n<e.length;n++)t=Tf(t,e[n])}return t},uf.set=function(e,t){return Xm(this),this.i=null,Zm(this,e=tv(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},uf.get=function(e,t){return e&&0<(e=this.R(e)).length?String(e[0]):t},uf.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var e=[],t=this.g.T(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.R(r);for(var o=0;o<r.length;o++){var s=i;""!==r[o]&&(s+="="+encodeURIComponent(String(r[o]))),e.push(s)}}return this.i=e.join("&")};var nv=function(){return function(e,t){this.h=e,this.g=t}}();function rv(e){this.l=e||iv,e=Af.PerformanceNavigationTiming?0<(e=Af.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):!!(Af.g&&Af.g.Ea&&Af.g.Ea()&&Af.g.Ea().Zb),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var iv=10;function ov(e){return!!e.h||!!e.g&&e.g.size>=e.j}function sv(e){return e.h?1:e.g?e.g.size:0}function av(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function lv(e,t){e.g?e.g.add(t):e.h=t}function cv(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function uv(e){var t,n;if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){var r=e.i;try{for(var i=cf(e.g.values()),o=i.next();!o.done;o=i.next())r=r.concat(o.value.D)}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}return Bf(e.i)}function hv(){}function dv(){this.g=new hv}function Av(e,t,n){var r=n||"";try{Bm(e,function(e,n){var i=e;gf(e)&&(i=xg(e)),t.push(r+n+"="+encodeURIComponent(i))})}catch(bB){throw t.push(r+"type="+encodeURIComponent("_badmap")),bB}}function pv(e,t,n,r,i){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(SR){}}function fv(e){this.l=e.$b||null,this.j=e.ib||!1}function gv(e,t){Sg.call(this),this.D=e,this.u=t,this.m=void 0,this.readyState=mv,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}rv.prototype.cancel=function(){var e,t;if(this.i=uv(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){try{for(var n=cf(this.g.values()),r=n.next();!r.done;r=n.next())r.value.cancel()}catch(i){e={error:i}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.g.clear()}},hv.prototype.stringify=function(e){return Af.JSON.stringify(e,void 0)},hv.prototype.parse=function(e){return Af.JSON.parse(e,void 0)},Cf(fv,sm),fv.prototype.g=function(){return new gv(this.l,this.j)},fv.prototype.i=function(e){return function(){return e}}({}),Cf(gv,Sg);var mv=0;function vv(e){e.j.read().then(e.Sa.bind(e)).catch(e.ha.bind(e))}function yv(e){e.readyState=4,e.l=null,e.j=null,e.A=null,bv(e)}function bv(e){e.onreadystatechange&&e.onreadystatechange.call(e)}(uf=gv.prototype).open=function(e,t){if(this.readyState!=mv)throw this.abort(),Error("Error reopening a connection");this.C=e,this.B=t,this.readyState=1,bv(this)},uf.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var t={headers:this.v,method:this.C,credentials:this.m,cache:void 0};e&&(t.body=e),(this.D||Af).fetch(new Request(this.B,t)).then(this.Va.bind(this),this.ha.bind(this))},uf.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted."),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,yv(this)),this.readyState=mv},uf.Va=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,bv(this)),this.g&&(this.readyState=3,bv(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Ta.bind(this),this.ha.bind(this));else if(void 0!==Af.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;vv(this)}else e.text().then(this.Ua.bind(this),this.ha.bind(this))},uf.Sa=function(e){if(this.g){if(this.u&&e.value)this.response.push(e.value);else if(!this.u){var t=e.value?e.value:new Uint8Array(0);(t=this.A.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?yv(this):bv(this),3==this.readyState&&vv(this)}},uf.Ua=function(e){this.g&&(this.response=this.responseText=e,yv(this))},uf.Ta=function(e){this.g&&(this.response=e,yv(this))},uf.ha=function(){this.g&&yv(this)},uf.setRequestHeader=function(e,t){this.v.append(e,t)},uf.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},uf.getAllResponseHeaders=function(){if(!this.h)return"";for(var e=[],t=this.h.entries(),n=t.next();!n.done;)e.push((n=n.value)[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(gv.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}});var _v=Af.JSON.parse;function wv(e){Sg.call(this),this.headers=new km,this.u=e||null,this.h=!1,this.C=this.g=null,this.H="",this.m=0,this.j="",this.l=this.F=this.v=this.D=!1,this.B=0,this.A=null,this.J=Cv,this.K=this.L=!1}Cf(wv,Sg);var Cv="",Sv=/^https?$/i,Ev=["POST","PUT"];function Iv(e){return"content-type"==e.toLowerCase()}function xv(e,t){e.h=!1,e.g&&(e.l=!0,e.g.abort(),e.l=!1),e.j=t,e.m=5,Tv(e),kv(e)}function Tv(e){e.D||(e.D=!0,Eg(e,"complete"),Eg(e,"error"))}function Bv(e){if(e.h&&void 0!==df&&(!e.C[1]||4!=Ov(e)||2!=e.ba()))if(e.v&&4==Ov(e))jg(e.Fa,0,e);else if(Eg(e,"readystatechange"),4==Ov(e)){e.h=!1;try{var t,n=e.ba();e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var o=String(e.H).match(Fm)[1]||null;if(!o&&Af.self&&Af.self.location){var s=Af.self.location.protocol;o=s.substr(0,s.length-1)}i=!Sv.test(o?o.toLowerCase():"")}t=i}if(t)Eg(e,"complete"),Eg(e,"success");else{e.m=6;try{var a=2<Ov(e)?e.g.statusText:""}catch(_R){a=""}e.j=a+" ["+e.ba()+"]",Tv(e)}}finally{kv(e)}}}function kv(e,t){if(e.g){Pv(e);var n=e.g,r=e.C[0]?pf:null;e.g=null,e.C=null,t||Eg(e,"ready");try{n.onreadystatechange=r}catch(bB){}}}function Pv(e){e.g&&e.K&&(e.g.ontimeout=null),e.A&&(Af.clearTimeout(e.A),e.A=null)}function Ov(e){return e.g?e.g.readyState:0}function Fv(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.J){case Cv:case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(kR){return null}}function Lv(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=function(e){var t="";return Nf(e,function(e,n){t+=n,t+=":",t+=e,t+="\r\n"}),t}(n),"string"==typeof e?null!=n&&encodeURIComponent(String(n)):jm(e,t,n))}
1function Mv(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function Dv(e){this.za=0,this.l=[],this.h=new zg,this.la=this.oa=this.F=this.W=this.g=this.sa=this.D=this.aa=this.o=this.P=this.s=null,this.Za=this.V=0,this.Xa=Mv("failFast",!1,e),this.N=this.v=this.u=this.m=this.j=null,this.X=!0,this.I=this.ta=this.U=-1,this.Y=this.A=this.C=0,this.Pa=Mv("baseRetryDelayMs",5e3,e),this.$a=Mv("retryDelaySeedMs",1e4,e),this.Ya=Mv("forwardChannelMaxRetries",2,e),this.ra=Mv("forwardChannelRequestTimeoutMs",2e4,e),this.qa=e&&e.xmlHttpFactory||void 0,this.Ba=e&&e.Yb||!1,this.K=void 0,this.H=e&&e.supportsCrossDomainXhr||!1,this.J="",this.i=new rv(e&&e.concurrentRequestLimit),this.Ca=new dv,this.ja=e&&e.fastHandshake||!1,this.Ra=e&&e.Wb||!1,e&&e.Aa&&this.h.Aa(),e&&e.forceLongPolling&&(this.X=!1),this.$=!this.ja&&this.X&&e&&e.detectBufferingProxy||!1,this.ka=void 0,this.O=0,this.L=!1,this.B=null,this.Wa=!e||!1!==e.Xb}function Nv(e){if(Uv(e),3==e.G){var t=e.V++,n=Mm(e.F);jm(n,"SID",e.J),jm(n,"RID",t),jm(n,"TYPE","terminate"),Vv(e,n),(t=new Am(e,e.h,t,void 0)).K=2,t.v=Qm(Mm(n)),n=!1,Af.navigator&&Af.navigator.sendBeacon&&(n=Af.navigator.sendBeacon(t.v.toString(),"")),!n&&Af.Image&&((new Image).src=t.v,n=!0),n||(t.g=ty(t.l,null),t.g.ea(t.v)),t.F=Date.now(),Cm(t)}Zv(e)}function Rv(e){e.g&&(zv(e),e.g.cancel(),e.g=null)}function Uv(e){Rv(e),e.u&&(Af.clearTimeout(e.u),e.u=null),$v(e),e.i.cancel(),e.m&&("number"==typeof e.m&&Af.clearTimeout(e.m),e.m=null)}function jv(e,t){e.l.push(new nv(e.Za++,t)),3==e.G&&Qv(e)}function Qv(e){ov(e.i)||e.m||(e.m=!0,Lg(e.Ha,e),e.C=0)}function Hv(e,t){var n;n=t?t.m:e.V++;var r=Mm(e.F);jm(r,"SID",e.J),jm(r,"RID",n),jm(r,"AID",e.U),Vv(e,r),e.o&&e.s&&Lv(r,e.o,e.s),n=new Am(e,e.h,n,e.C+1),null===e.o&&(n.H=e.s),t&&(e.l=t.D.concat(e.l)),t=qv(e,n,1e3),n.setTimeout(Math.round(.5*e.ra)+Math.round(.5*e.ra*Math.random())),lv(e.i,n),vm(n,r,t)}function Vv(e,t){e.j&&Bm({},function(e,n){jm(t,n,e)})}function qv(e,t,n){n=Math.min(e.l.length,n);var r=e.j?_f(e.j.Oa,e.j,e):null;e:for(var i=e.l,o=-1;;){var s=["count="+n];-1==o?0<n?s.push("ofs="+(o=i[0].h)):o=0:s.push("ofs="+o);for(var a=!0,l=0;l<n;l++){var c=i[l].h,u=i[l].g;if(0>(c-=o))o=Math.max(0,i[l].h-100),a=!1;else try{Av(u,s,"req"+c+"_")}catch(Ly){r&&r(u)}}if(a){r=s.join("&");break e}}return e=e.l.splice(0,n),t.D=e,r}function Kv(e){e.g||e.u||(e.Y=1,Lg(e.Ga,e),e.A=0)}function Gv(e){return!(e.g||e.u||3<=e.A||(e.Y++,e.u=rm(_f(e.Ga,e),Xv(e,e.A)),e.A++,0))}function zv(e){null!=e.B&&(Af.clearTimeout(e.B),e.B=null)}function Wv(e){e.g=new Am(e,e.h,"rpc",e.Y),null===e.o&&(e.g.H=e.s),e.g.O=0;var t=Mm(e.oa);jm(t,"RID","rpc"),jm(t,"SID",e.J),jm(t,"CI",e.N?"0":"1"),jm(t,"AID",e.U),Vv(e,t),jm(t,"TYPE","xmlhttp"),e.o&&e.s&&Lv(t,e.o,e.s),e.K&&e.g.setTimeout(e.K);var n=e.g;e=e.la,n.K=1,n.v=Qm(Mm(t)),n.s=null,n.U=!0,ym(n,e)}function $v(e){null!=e.v&&(Af.clearTimeout(e.v),e.v=null)}function Yv(e,t){var n=null;if(e.g==t){$v(e),zv(e),e.g=null;var r=2}else{if(!av(e.i,t))return;n=t.D,cv(e.i,t),r=1}if(e.I=t.N,0!=e.G)if(t.i)if(1==r){n=t.s?t.s.length:0,t=Date.now()-t.F;var i=e.C;Eg(r=Xg(),new nm(r,n,t,i)),Qv(e)}else Kv(e);else if(3==(i=t.o)||0==i&&0<e.I||!(1==r&&function(e,t){return!(sv(e.i)>=e.i.j-(e.m?1:0)||(e.m?(e.l=t.D.concat(e.l),0):1==e.G||2==e.G||e.C>=(e.Xa?0:e.Ya)||(e.m=rm(_f(e.Ha,e,t),Xv(e,e.C)),e.C++,0)))}(e,t)||2==r&&Gv(e)))switch(n&&0<n.length&&(t=e.i,t.i=t.i.concat(n)),i){case 1:Jv(e,5);break;case 4:Jv(e,10);break;case 3:Jv(e,6);break;default:Jv(e,2)}}function Xv(e,t){var n=e.Pa+Math.floor(Math.random()*e.$a);return e.j||(n*=2),n*t}function Jv(e,t){if(e.h.info("Error code "+t),2==t){var n=null;e.j&&(n=null);var r=_f(e.jb,e);n||(n=new Lm("//www.google.com/images/cleardot.gif"),Af.location&&"http"==Af.location.protocol||Dm(n,"https"),Qm(n)),function(e,t){var n=new zg;if(Af.Image){var r=new Image;r.onload=wf(pv,n,r,"TestLoadImage: loaded",!0,t),r.onerror=wf(pv,n,r,"TestLoadImage: error",!1,t),r.onabort=wf(pv,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=wf(pv,n,r,"TestLoadImage: timeout",!1,t),Af.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}else t(!1)}(n.toString(),r)}else tm(2);e.G=0,e.j&&e.j.va(t),Zv(e),Uv(e)}function Zv(e){e.G=0,e.I=-1,e.j&&(0==uv(e.i).length&&0==e.l.length||(e.i.i.length=0,Bf(e.l),e.l.length=0),e.j.ua())}
1function ey(e,t,n){var r=function(e){return e instanceof Lm?Mm(e):new Lm(e,void 0)}(n);if(""!=r.i)t&&Nm(r,t+"."+r.i),Rm(r,r.m);else{var i=Af.location;r=function(e,t,n,r){var i=new Lm(null,void 0);return e&&Dm(i,e),t&&Nm(i,t),n&&Rm(i,n),r&&(i.l=r),i}(i.protocol,t?t+"."+i.hostname:i.hostname,+i.port,n)}return e.aa&&Nf(e.aa,function(e,t){jm(r,t,e)}),n=e.sa,(t=e.D)&&n&&jm(r,t,n),jm(r,"VER",e.ma),Vv(e,r),r}function ty(e,t,n){if(t&&!e.H)throw Error("Can't create secondary domain capable XhrIo object.");return(t=new wv(n&&e.Ba&&!e.qa?new fv({ib:!0}):e.qa)).L=e.H,t}function ny(){}function ry(){if(qf&&!(10<=Number(eg)))throw Error("Environmental error: no available transport.")}function iy(e,t){Sg.call(this),this.g=new Dv(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.s=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.ya&&(e?e["X-WebChannel-Client-Profile"]=t.ya:e={"X-WebChannel-Client-Profile":t.ya}),this.g.P=e,(e=t&&t.httpHeadersOverwriteParam)&&!kf(e)&&(this.g.o=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!kf(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&t in(e=this.h)&&delete e[t]),this.j=new ay(this)}function oy(e){um.call(this);var t=e.__sm__;if(t){e:{for(var n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function sy(){hm.call(this),this.status=1}function ay(e){this.g=e}(uf=wv.prototype).ea=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+e);t=t?t.toUpperCase():"GET",this.H=e,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=this.u?this.u.g():lm.g(),this.C=function(e){return e.h||(e.h=e.i())}(this.u?this.u:lm),this.g.onreadystatechange=_f(this.Fa,this);try{this.F=!0,this.g.open(t,String(e),!0),this.F=!1}catch(SR){return void xv(this,SR)}e=n||"";var i=new km(this.headers);r&&Bm(r,function(e,t){i.set(t,e)}),r=function(e){e:{for(var t=Iv,n=e.length,r="string"==typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:"string"==typeof e?e.charAt(t):e[t]}(i.T()),n=Af.FormData&&e instanceof Af.FormData,!(0<=If(Ev,t))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach(function(e,t){this.g.setRequestHeader(t,e)},this),this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{Pv(this),0<this.B&&((this.K=function(e){return qf&&function(e){var t=Zf;return Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=function(){for(var e=0,t=Of(String(Hf)).split("."),n=Of("9").split("."),r=Math.max(t.length,n.length),i=0;0==e&&i<r;i++){var o=t[i]||"",s=n[i]||"";do{if(o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==o[0].length&&0==s[0].length)break;e=Lf(0==o[1].length?0:parseInt(o[1],10),0==s[1].length?0:parseInt(s[1],10))||Lf(0==o[2].length,0==s[2].length)||Lf(o[2],s[2]),o=o[3],s=s[3]}while(0==e)}return 0<=e}()}()&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=_f(this.pa,this)):this.A=jg(this.pa,this.B,this)),this.v=!0,this.g.send(e),this.v=!1}catch(SR){xv(this,SR)}},uf.pa=function(){void 0!==df&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,Eg(this,"timeout"),this.abort(8))},uf.abort=function(e){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=e||7,Eg(this,"complete"),Eg(this,"abort"),kv(this))},uf.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),kv(this,!0)),wv.Z.M.call(this)},uf.Fa=function(){this.s||(this.F||this.v||this.l?Bv(this):this.cb())},uf.cb=function(){Bv(this)},uf.ba=function(){try{return 2<Ov(this)?this.g.status:-1}catch(mR){return-1}},uf.ga=function(){try{return this.g?this.g.responseText:""}catch(mR){return""}},uf.Qa=function(e){if(this.g){var t=this.g.responseText;
1return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),_v(t)}},uf.Da=function(){return this.m},uf.La=function(){return"string"==typeof this.j?this.j:String(this.j)},(uf=Dv.prototype).ma=8,uf.G=1,uf.hb=function(e){try{this.h.info("Origin Trials invoked: "+e)}catch(kR){}},uf.Ha=function(e){if(this.m)if(this.m=null,1==this.G){if(!e){this.V=Math.floor(1e5*Math.random()),e=this.V++;var t=new Am(this,this.h,e,void 0),n=this.s;if(this.P&&(n?jf(n=Rf(n),this.P):n=this.P),null===this.o&&(t.H=n),this.ja)e:{for(var r=0,i=0;i<this.l.length;i++){var o=this.l[i];if(void 0===(o="__data__"in o.g&&"string"==typeof(o=o.g.__data__)?o.length:void 0))break;if(4096<(r+=o)){r=i;break e}if(4096===r||i===this.l.length-1){r=i+1;break e}}r=1e3}else r=1e3;r=qv(this,t,r),jm(i=Mm(this.F),"RID",e),jm(i,"CVER",22),this.D&&jm(i,"X-HTTP-Session-Id",this.D),Vv(this,i),this.o&&n&&Lv(i,this.o,n),lv(this.i,t),this.Ra&&jm(i,"TYPE","init"),this.ja?(jm(i,"$req",r),jm(i,"SID","null"),t.$=!0,vm(t,i,null)):vm(t,i,r),this.G=2}}else 3==this.G&&(e?Hv(this,e):0==this.l.length||ov(this.i)||Hv(this))},uf.Ga=function(){if(this.u=null,Wv(this),this.$&&!(this.L||null==this.g||0>=this.O)){var e=2*this.O;this.h.info("BP detection timer enabled: "+e),this.B=rm(_f(this.bb,this),e)}},uf.bb=function(){this.B&&(this.B=null,this.h.info("BP detection timeout reached."),this.h.info("Buffering proxy detected and switch to long-polling!"),this.N=!1,this.L=!0,tm(10),Rv(this),Wv(this))},uf.ab=function(){null!=this.v&&(this.v=null,Rv(this),Gv(this),tm(19))},uf.jb=function(e){e?(this.h.info("Successfully pinged google.com"),tm(2)):(this.h.info("Failed to ping google.com"),tm(1))},(uf=ny.prototype).xa=function(){},uf.wa=function(){},uf.va=function(){},uf.ua=function(){},uf.Oa=function(){},ry.prototype.g=function(e,t){return new iy(e,t)},Cf(iy,Sg),iy.prototype.m=function(){this.g.j=this.j,this.A&&(this.g.H=!0);var e=this.g,t=this.l,n=this.h||void 0;e.Wa&&(e.h.info("Origin Trials enabled."),Lg(_f(e.hb,e,t))),tm(0),e.W=t,e.aa=n||{},e.N=e.X,e.F=ey(e,null,e.W),Qv(e)},iy.prototype.close=function(){Nv(this.g)},iy.prototype.u=function(e){if("string"==typeof e){var t={};t.__data__=e,jv(this.g,t)}else this.v?((t={}).__data__=xg(e),jv(this.g,t)):jv(this.g,e)},iy.prototype.M=function(){this.g.j=null,delete this.j,Nv(this.g),delete this.g,iy.Z.M.call(this)},Cf(oy,um),Cf(sy,hm),Cf(ay,ny),ay.prototype.xa=function(){Eg(this.g,"a")},ay.prototype.wa=function(e){Eg(this.g,new oy(e))},ay.prototype.va=function(e){Eg(this.g,new sy(e))},ay.prototype.ua=function(){Eg(this.g,"b")},ry.prototype.createWebChannel=ry.prototype.g,iy.prototype.send=iy.prototype.u,iy.prototype.open=iy.prototype.m,iy.prototype.close=iy.prototype.close,im.NO_ERROR=0,im.TIMEOUT=8,im.HTTP_ERROR=6,om.COMPLETE="complete",am.EventType=cm,cm.OPEN="a",cm.CLOSE="b",cm.ERROR="c",cm.MESSAGE="d",Sg.prototype.listen=Sg.prototype.N,wv.prototype.listenOnce=wv.prototype.O,wv.prototype.getLastError=wv.prototype.La,wv.prototype.getLastErrorCode=wv.prototype.Da,wv.prototype.getStatus=wv.prototype.ba,wv.prototype.getResponseJson=wv.prototype.Qa,wv.prototype.getResponseText=wv.prototype.ga,wv.prototype.send=wv.prototype.ea;var ly=im,cy=om,uy=$g,hy=fv,dy=am,Ay=wv,py=function(){function e(e,t){var n=this;this.previousValue=e,t&&(t.sequenceNumberHandler=function(e){return n.t(e)},this.i=function(e){return t.writeSequenceNumber(e)})}return e.prototype.t=function(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue},e.prototype.next=function(){var e=++this.previousValue;return this.i&&this.i(e),e},e}();py.o=-1;var fy={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},gy=function(e){function t(t,n){var r=this;return(r=e.call(this,n)||this).code=t,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return(0,Er.ZT)(t,e),t}(Error),my=new af.Yd("@firebase/firestore");function vy(){return my.logLevel}function yy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(my.logLevel<=af.in.DEBUG){var r=t.map(wy);my.debug.apply(my,(0,Er.ev)(["Firestore (8.10.0): "+e],r))}}function by(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(my.logLevel<=af.in.ERROR){var r=t.map(wy);my.error.apply(my,(0,Er.ev)(["Firestore (8.10.0): "+e],r))}}function _y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(my.logLevel<=af.in.WARN){var r=t.map(wy);my.warn.apply(my,(0,Er.ev)(["Firestore (8.10.0): "+e],r))}}function wy(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(bB){return e}}function Cy(e){void 0===e&&(e="Unexpected state");var t="FIRESTORE (8.10.0) INTERNAL ASSERTION FAILED: "+e;throw by(t),new Error(t)}function Sy(e,t){e||Cy()}function Ey(e,t){return e}function Iy(e){var t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(var r=0;r<e;
1r++)n[r]=Math.floor(256*Math.random());return n}var xy=function(){function e(){}return e.u=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(256/e.length)*e.length,n="";n.length<20;)for(var r=Iy(40),i=0;i<r.length;++i)n.length<20&&r[i]<t&&(n+=e.charAt(r[i]%e.length));return n},e}();function Ty(e,t){return e<t?-1:e>t?1:0}function By(e,t,n){return e.length===t.length&&e.every(function(e,r){return n(e,t[r])})}function ky(e){return e+"\0"}var Py=function(){function e(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new gy(fy.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new gy(fy.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new gy(fy.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new gy(fy.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}return e.now=function(){return e.fromMillis(Date.now())},e.fromDate=function(t){return e.fromMillis(t.getTime())},e.fromMillis=function(t){var n=Math.floor(t/1e3);return new e(n,Math.floor(1e6*(t-1e3*n)))},e.prototype.toDate=function(){return new Date(this.toMillis())},e.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},e.prototype._compareTo=function(e){return this.seconds===e.seconds?Ty(this.nanoseconds,e.nanoseconds):Ty(this.seconds,e.seconds)},e.prototype.isEqual=function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds},e.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},e.prototype.toJSON=function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}},e.prototype.valueOf=function(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},e}(),Oy=function(){function e(e){this.timestamp=e}return e.fromTimestamp=function(t){return new e(t)},e.min=function(){return new e(new Py(0,0))},e.prototype.compareTo=function(e){return this.timestamp._compareTo(e.timestamp)},e.prototype.isEqual=function(e){return this.timestamp.isEqual(e.timestamp)},e.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},e.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},e.prototype.toTimestamp=function(){return this.timestamp},e}();function Fy(e){var t=0;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function Ly(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function My(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var Dy=function(){function e(e,t,n){void 0===t?t=0:t>e.length&&Cy(),void 0===n?n=e.length-t:n>e.length-t&&Cy(),this.segments=e,this.offset=t,this.len=n}return Object.defineProperty(e.prototype,"length",{get:function(){return this.len},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return 0===e.comparator(this,t)},e.prototype.child=function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach(function(e){n.push(e)}):n.push(t),this.construct(n)},e.prototype.limit=function(){return this.offset+this.length},e.prototype.popFirst=function(e){return this.construct(this.segments,this.offset+(e=void 0===e?1:e),this.length-e)},e.prototype.popLast=function(){return this.construct(this.segments,this.offset,this.length-1)},e.prototype.firstSegment=function(){return this.segments[this.offset]},e.prototype.lastSegment=function(){return this.get(this.length-1)},e.prototype.get=function(e){return this.segments[this.offset+e]},e.prototype.isEmpty=function(){return 0===this.length},e.prototype.isPrefixOf=function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.isImmediateParentOf=function(e){if(this.length+1!==e.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.forEach=function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])},e.prototype.toArray=function(){return this.segments.slice(this.offset,this.limit())},e.comparator=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.get(r),o=t.get(r);if(i<o)return-1;if(i>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0},e}(),Ny=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Er.ZT)(t,e),t.prototype.construct=function(e,n,r){return new t(e,n,r)},t.prototype.canonicalString=function(){return this.toArray().join("/")},t.prototype.toString=function(){return this.canonicalString()},t.fromString=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=[],i=0,o=e;i<o.length;i++){var s=o[i];if(s.indexOf("//")>=0)throw new gy(fy.INVALID_ARGUMENT,"Invalid segment ("+s+"). Paths must not contain // in them.");r.push.apply(r,s.split("/").filter(function(e){return e.length>0}))}return new t(r)},t.emptyPath=function(){return new t([])},t}(Dy),Ry=/^[_a-zA-Z][_a-zA-Z0-9]*$/,Uy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Er.ZT)(t,e),t.prototype.construct=function(e,n,r){return new t(e,n,r)},t.isValidIdentifier=function(e){return Ry.test(e)},t.prototype.canonicalString=function(){return this.toArray().map(function(e){return e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),t.isValidIdentifier(e)||(e="`"+e+"`"),e}).join(".")},t.prototype.toString=function(){return this.canonicalString()},t.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},t.keyField=function(){return new t(["__name__"])},t.fromServerFormat=function(e){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new gy(fy.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},s=!1;i<e.length;){var a=e[i];if("\\"===a){if(i+1===e.length)throw new gy(fy.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var l=e[i+1];if("\\"!==l&&"."!==l&&"`"!==l)throw new gy(fy.INVALID_ARGUMENT,"Path has invali
1d escape sequence: "+e);r+=l,i+=2}else"`"===a?(s=!s,i++):"."!==a||s?(r+=a,i++):(o(),i++)}if(o(),s)throw new gy(fy.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new t(n)},t.emptyPath=function(){return new t([])},t}(Dy),jy=function(){function e(e){this.fields=e,e.sort(Uy.comparator)}return e.prototype.covers=function(e){for(var t=0,n=this.fields;t<n.length;t++)if(n[t].isPrefixOf(e))return!0;return!1},e.prototype.isEqual=function(e){return By(this.fields,e.fields,function(e,t){return e.isEqual(t)})},e}(),Qy=function(){function e(e){this.binaryString=e}return e.fromBase64String=function(t){return new e(atob(t))},e.fromUint8Array=function(t){return new e(function(e){for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(t))},e.prototype.toBase64=function(){return btoa(this.binaryString)},e.prototype.toUint8Array=function(){return function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)},e.prototype.approximateByteSize=function(){return 2*this.binaryString.length},e.prototype.compareTo=function(e){return Ty(this.binaryString,e.binaryString)},e.prototype.isEqual=function(e){return this.binaryString===e.binaryString},e}();Qy.EMPTY_BYTE_STRING=new Qy("");var Hy=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Vy(e){if(Sy(!!e),"string"==typeof e){var t=0,n=Hy.exec(e);if(Sy(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),t=Number(r)}var i=new Date(e);return{seconds:Math.floor(i.getTime()/1e3),nanos:t}}return{seconds:qy(e.seconds),nanos:qy(e.nanos)}}function qy(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function Ky(e){return"string"==typeof e?Qy.fromBase64String(e):Qy.fromUint8Array(e)}function Gy(e){var t,n;return"server_timestamp"===(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function zy(e){var t=e.mapValue.fields.__previous_value__;return Gy(t)?zy(t):t}function Wy(e){var t=Vy(e.mapValue.fields.__local_write_time__.timestampValue);return new Py(t.seconds,t.nanos)}function $y(e){return null==e}function Yy(e){return 0===e&&1/e==-1/0}function Xy(e){return"number"==typeof e&&Number.isInteger(e)&&!Yy(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}var Jy=function(){function e(e){this.path=e}return e.fromPath=function(t){return new e(Ny.fromString(t))},e.fromName=function(t){return new e(Ny.fromString(t).popFirst(5))},e.prototype.hasCollectionId=function(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e},e.prototype.isEqual=function(e){return null!==e&&0===Ny.comparator(this.path,e.path)},e.prototype.toString=function(){return this.path.toString()},e.comparator=function(e,t){return Ny.comparator(e.path,t.path)},e.isDocumentKey=function(e){return e.length%2==0},e.fromSegments=function(t){return new e(new Ny(t.slice()))},e}();function Zy(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?Gy(e)?4:10:Cy()}function eb(e,t){var n=Zy(e);if(n!==Zy(t))return!1;switch(n){case 0:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return Wy(e).isEqual(Wy(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;var n=Vy(e.timestampValue),r=Vy(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return Ky(e.bytesValue).isEqual(Ky(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return qy(e.geoPointValue.latitude)===qy(t.geoPointValue.latitude)&&qy(e.geoPointValue.longitude)===qy(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return qy(e.integerValue)===qy(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){var n=qy(e.doubleValue),r=qy(t.doubleValue);return n===r?Yy(n)===Yy(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return By(e.arrayValue.values||[],t.arrayValue.values||[],eb);case 10:return function(e,t){var n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(Fy(n)!==Fy(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!eb(n[i],r[i])))return!1;return!0}(e,t);default:return Cy()}}function tb(e,t){return void 0!==(e.values||[]).find(function(e){return eb(e,t)})}function nb(e,t){var n=Zy(e),r=Zy(t);
1if(n!==r)return Ty(n,r);switch(n){case 0:return 0;case 1:return Ty(e.booleanValue,t.booleanValue);case 2:return function(e,t){var n=qy(e.integerValue||e.doubleValue),r=qy(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return rb(e.timestampValue,t.timestampValue);case 4:return rb(Wy(e),Wy(t));case 5:return Ty(e.stringValue,t.stringValue);case 6:return function(e,t){var n=Ky(e),r=Ky(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0;i<n.length&&i<r.length;i++){var o=Ty(n[i],r[i]);if(0!==o)return o}return Ty(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){var n=Ty(qy(e.latitude),qy(t.latitude));return 0!==n?n:Ty(qy(e.longitude),qy(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){for(var n=e.values||[],r=t.values||[],i=0;i<n.length&&i<r.length;++i){var o=nb(n[i],r[i]);if(o)return o}return Ty(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){var n=e.fields||{},r=Object.keys(n),i=t.fields||{},o=Object.keys(i);r.sort(),o.sort();for(var s=0;s<r.length&&s<o.length;++s){var a=Ty(r[s],o[s]);if(0!==a)return a;var l=nb(n[r[s]],i[o[s]]);if(0!==l)return l}return Ty(r.length,o.length)}(e.mapValue,t.mapValue);default:throw Cy()}}function rb(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return Ty(e,t);var n=Vy(e),r=Vy(t),i=Ty(n.seconds,r.seconds);return 0!==i?i:Ty(n.nanos,r.nanos)}function ib(e){return ob(e)}function ob(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){var t=Vy(e);return"time("+t.seconds+","+t.nanos+")"}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?Ky(e.bytesValue).toBase64():"referenceValue"in e?Jy.fromName(e.referenceValue).toString():"geoPointValue"in e?"geo("+(t=e.geoPointValue).latitude+","+t.longitude+")":"arrayValue"in e?function(e){for(var t="[",n=!0,r=0,i=e.values||[];r<i.length;r++)n?n=!1:t+=",",t+=ob(i[r]);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){for(var t="{",n=!0,r=0,i=Object.keys(e.fields||{}).sort();r<i.length;r++){var o=i[r];n?n=!1:t+=",",t+=o+":"+ob(e.fields[o])}return t+"}"}(e.mapValue):Cy();var t}function sb(e,t){return{referenceValue:"projects/"+e.projectId+"/databases/"+e.database+"/documents/"+t.path.canonicalString()}}function ab(e){return!!e&&"integerValue"in e}function lb(e){return!!e&&"arrayValue"in e}function cb(e){return!!e&&"nullValue"in e}function ub(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function hb(e){return!!e&&"mapValue"in e}function db(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){var t={mapValue:{fields:{}}};return Ly(e.mapValue.fields,function(e,n){return t.mapValue.fields[e]=db(n)}),t}if(e.arrayValue){for(var n={arrayValue:{values:[]}},r=0;r<(e.arrayValue.values||[]).length;++r)n.arrayValue.values[r]=db(e.arrayValue.values[r]);return n}return Object.assign({},e)}var Ab=function(){function e(e){this.value=e}return e.empty=function(){return new e({mapValue:{}})},e.prototype.field=function(e){if(e.isEmpty())return this.value;for(var t=this.value,n=0;n<e.length-1;++n)if(!hb(t=(t.mapValue.fields||{})[e.get(n)]))return null;return(t=(t.mapValue.fields||{})[e.lastSegment()])||null},e.prototype.set=function(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=db(t)},e.prototype.setAll=function(e){var t=this,n=Uy.emptyPath(),r={},i=[];e.forEach(function(e,o){if(!n.isImmediateParentOf(o)){var s=t.getFieldsMap(n);t.applyChanges(s,r,i),r={},i=[],n=o.popLast()}e?r[o.lastSegment()]=db(e):i.push(o.lastSegment())});var o=this.getFieldsMap(n);this.applyChanges(o,r,i)},e.prototype.delete=function(e){var t=this.field(e.popLast());hb(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]},e.prototype.isEqual=function(e){return eb(this.value,e.value)},e.prototype.getFieldsMap=function(e){var t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(var n=0;n<e.length;++n){var r=t.mapValue.fields[e.get(n)];hb(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields},e.prototype.applyChanges=function(e,t,n){Ly(t,function(t,n){return e[t]=n});for(var r=0,i=n;r<i.length;r++)delete e[i[r]]},e.prototype.clone=function(){return new e(db(this.value))},e}();function pb(e){var t=[];
1return Ly(e.fields,function(e,n){var r=new Uy([e]);if(hb(n)){var i=pb(n.mapValue).fields;if(0===i.length)t.push(r);else for(var o=0,s=i;o<s.length;o++)t.push(r.child(s[o]))}else t.push(r)}),new jy(t)}var fb=function(){function e(e,t,n,r,i){this.key=e,this.documentType=t,this.version=n,this.data=r,this.documentState=i}return e.newInvalidDocument=function(t){return new e(t,0,Oy.min(),Ab.empty(),0)},e.newFoundDocument=function(t,n,r){return new e(t,1,n,r,0)},e.newNoDocument=function(t,n){return new e(t,2,n,Ab.empty(),0)},e.newUnknownDocument=function(t,n){return new e(t,3,n,Ab.empty(),2)},e.prototype.convertToFoundDocument=function(e,t){return this.version=e,this.documentType=1,this.data=t,this.documentState=0,this},e.prototype.convertToNoDocument=function(e){return this.version=e,this.documentType=2,this.data=Ab.empty(),this.documentState=0,this},e.prototype.convertToUnknownDocument=function(e){return this.version=e,this.documentType=3,this.data=Ab.empty(),this.documentState=2,this},e.prototype.setHasCommittedMutations=function(){return this.documentState=2,this},e.prototype.setHasLocalMutations=function(){return this.documentState=1,this},Object.defineProperty(e.prototype,"hasLocalMutations",{get:function(){return 1===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasCommittedMutations",{get:function(){return 2===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.hasLocalMutations||this.hasCommittedMutations},enumerable:!1,configurable:!0}),e.prototype.isValidDocument=function(){return 0!==this.documentType},e.prototype.isFoundDocument=function(){return 1===this.documentType},e.prototype.isNoDocument=function(){return 2===this.documentType},e.prototype.isUnknownDocument=function(){return 3===this.documentType},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.documentType===t.documentType&&this.documentState===t.documentState&&this.data.isEqual(t.data)},e.prototype.clone=function(){return new e(this.key,this.documentType,this.version,this.data.clone(),this.documentState)},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+JSON.stringify(this.data.value)+", {documentType: "+this.documentType+"}), {documentState: "+this.documentState+"})"},e}(),gb=function(e,t,n,r,i,o,s){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=s,this.h=null};function mb(e,t,n,r,i,o,s){return void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),new gb(e,t,n,r,i,o,s)}function vb(e){var t=Ey(e);if(null===t.h){var n=t.path.canonicalString();null!==t.collectionGroup&&(n+="|cg:"+t.collectionGroup),n+="|f:",n+=t.filters.map(function(e){return function(e){return e.field.canonicalString()+e.op.toString()+ib(e.value)}(e)}).join(","),n+="|ob:",n+=t.orderBy.map(function(e){return function(e){return e.field.canonicalString()+e.dir}(e)}).join(","),$y(t.limit)||(n+="|l:",n+=t.limit),t.startAt&&(n+="|lb:",n+=Pb(t.startAt)),t.endAt&&(n+="|ub:",n+=Pb(t.endAt)),t.h=n}return t.h}function yb(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(var n=0;n<e.orderBy.length;n++)if(!Fb(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(var r=0;r<e.filters.length;r++)if((i=e.filters[r]).op!==(o=t.filters[r]).op||!i.field.isEqual(o.field)||!eb(i.value,o.value))return!1;var i,o;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!Mb(e.startAt,t.startAt)&&Mb(e.endAt,t.endAt)}function bb(e){return Jy.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}var _b=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).field=t,i.op=n,i.value=r,i}return(0,Er.ZT)(t,e),t.create=function(e,n,r){return e.isKeyField()?"in"===n||"not-in"===n?this.l(e,n,r):new wb(e,n,r):"array-contains"===n?new Ib(e,r):"in"===n?new xb(e,r):"not-in"===n?new Tb(e,r):"array-contains-any"===n?new Bb(e,r):new t(e,n,r)},t.l=function(e,t,n){return"in"===t?new Cb(e,n):new Sb(e,n)},t.prototype.matches=function(e){var t=e.data.field(this.field);return"!="===this.op?null!==t&&this.m(nb(t,this.value)):null!==t&&Zy(this.value)===Zy(t)&&this.m(nb(t,this.value))},t.prototype.m=function(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return Cy()}},t.prototype.g=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},t}(function(){}),wb=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n,r)||this).key=Jy.fromName(r.referenceValue),i}return(0,Er.ZT)(t,e),t.prototype.matches=function(e){var t=Jy.comparator(e.key,this.key);return this.m(t)}
1,t}(_b),Cb=function(e){function t(t,n){var r=this;return(r=e.call(this,t,"in",n)||this).keys=Eb(0,n),r}return(0,Er.ZT)(t,e),t.prototype.matches=function(e){return this.keys.some(function(t){return t.isEqual(e.key)})},t}(_b),Sb=function(e){function t(t,n){var r=this;return(r=e.call(this,t,"not-in",n)||this).keys=Eb(0,n),r}return(0,Er.ZT)(t,e),t.prototype.matches=function(e){return!this.keys.some(function(t){return t.isEqual(e.key)})},t}(_b);function Eb(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map(function(e){return Jy.fromName(e.referenceValue)})}var Ib=function(e){function t(t,n){return e.call(this,t,"array-contains",n)||this}return(0,Er.ZT)(t,e),t.prototype.matches=function(e){var t=e.data.field(this.field);return lb(t)&&tb(t.arrayValue,this.value)},t}(_b),xb=function(e){function t(t,n){return e.call(this,t,"in",n)||this}return(0,Er.ZT)(t,e),t.prototype.matches=function(e){var t=e.data.field(this.field);return null!==t&&tb(this.value.arrayValue,t)},t}(_b),Tb=function(e){function t(t,n){return e.call(this,t,"not-in",n)||this}return(0,Er.ZT)(t,e),t.prototype.matches=function(e){if(tb(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var t=e.data.field(this.field);return null!==t&&!tb(this.value.arrayValue,t)},t}(_b),Bb=function(e){function t(t,n){return e.call(this,t,"array-contains-any",n)||this}return(0,Er.ZT)(t,e),t.prototype.matches=function(e){var t=this,n=e.data.field(this.field);return!(!lb(n)||!n.arrayValue.values)&&n.arrayValue.values.some(function(e){return tb(t.value.arrayValue,e)})},t}(_b),kb=function(e,t){this.position=e,this.before=t};function Pb(e){return(e.before?"b":"a")+":"+e.position.map(function(e){return ib(e)}).join(",")}var Ob=function(e,t){void 0===t&&(t="asc"),this.field=e,this.dir=t};function Fb(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}function Lb(e,t,n){for(var r=0,i=0;i<e.position.length;i++){var o=t[i],s=e.position[i];if(r=o.field.isKeyField()?Jy.comparator(Jy.fromName(s.referenceValue),n.key):nb(s,n.data.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return e.before?r<=0:r<0}function Mb(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.before!==t.before||e.position.length!==t.position.length)return!1;for(var n=0;n<e.position.length;n++)if(!eb(e.position[n],t.position[n]))return!1;return!0}var Db=function(e,t,n,r,i,o,s,a){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o="F"),void 0===s&&(s=null),void 0===a&&(a=null),this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=o,this.startAt=s,this.endAt=a,this.p=null,this.T=null};function Nb(e,t,n,r,i,o,s,a){return new Db(e,t,n,r,i,o,s,a)}function Rb(e){return new Db(e)}function Ub(e){return!$y(e.limit)&&"F"===e.limitType}function jb(e){return!$y(e.limit)&&"L"===e.limitType}function Qb(e){return e.explicitOrderBy.length>0?e.explicitOrderBy[0].field:null}function Hb(e){for(var t=0,n=e.filters;t<n.length;t++){var r=n[t];if(r.g())return r.field}return null}function Vb(e){return null!==e.collectionGroup}function qb(e){var t=Ey(e);if(null===t.p){t.p=[];var n=Hb(t),r=Qb(t);if(null!==n&&null===r)n.isKeyField()||t.p.push(new Ob(n)),t.p.push(new Ob(Uy.keyField(),"asc"));else{for(var i=!1,o=0,s=t.explicitOrderBy;o<s.length;o++){var a=s[o];t.p.push(a),a.field.isKeyField()&&(i=!0)}if(!i){var l=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc";t.p.push(new Ob(Uy.keyField(),l))}}}return t.p}function Kb(e){var t=Ey(e);if(!t.T)if("F"===t.limitType)t.T=mb(t.path,t.collectionGroup,qb(t),t.filters,t.limit,t.startAt,t.endAt);else{for(var n=[],r=0,i=qb(t);r<i.length;r++){var o=i[r];n.push(new Ob(o.field,"desc"===o.dir?"asc":"desc"))}var s=t.endAt?new kb(t.endAt.position,!t.endAt.before):null,a=t.startAt?new kb(t.startAt.position,!t.startAt.before):null;t.T=mb(t.path,t.collectionGroup,n,t.filters,t.limit,s,a)}return t.T}function Gb(e,t,n){return new Db(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function zb(e,t){return yb(Kb(e),Kb(t))&&e.limitType===t.limitType}function Wb(e){return vb(Kb(e))+"|lt:"+e.limitType}function $b(e){return"Query(target="+function(e){var t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=", filters: ["+e.filters.map(function(e){return(t=e).field.canonicalString()+" "+t.op+" "+ib(t.value);var t}).join(", ")+"]"),$y(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=", orderBy: ["+e.orderBy.map(function(e){return function(e){return e.field.canonicalString()+" ("+e.dir+")"}(e)}).join(", ")+"]"),e.startAt&&(t+=", startAt: "+Pb(e.startAt)),e.endAt&&(t+=", endAt: "+Pb(e.endAt)),"Target("+t+")"}(Kb(e))+"; limitType="+e.limitType+")"}function Yb(e,t){return t.isFoundDocument()&&function(e,t){var n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):Jy.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){for(var n=0,r=e.explicitOrderBy;n<r.length;n++){var i=r[n];if(!i.field.isKeyField()&&null===t.data.field(i.field))return!1}return!0}(e,t)&&function(e,t){for(var n=0,r=e.filters;n<r.length;n++)if(!r[n].matches(t))return!1;return!0}(e,t)&&function(e,t){return!(e.startAt&&!Lb(e.startAt,qb(e),t)||e.endAt&&Lb(e.endAt,qb(e),t))}(e,t)}function Xb(e){return function(t,n){for(var r=!1,i=0,o=qb(e);i<o.length;i++){var s=o[i],a=Jb(s,t,n);if(0!==a)return a;r=r||s.field.isKeyField()}return 0}}function Jb(e,t,n){var r=e.field.isKeyField()?Jy.comparator(t.key,n.key):function(e,t,n){var r=t.data.field(e),i=n.data.field(e);return null!==r&&null!==i?nb(r,i):Cy()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return Cy()}}function Zb(e,t){if(e.I){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Yy(t)?"-0":t}}function e_(e){return{integerValue:""+e}}function t_(e,t){return Xy(t)?e_(t):Zb(e,t)}var n_=function(){this._=void 0};function r_(e,t,n){return e instanceof s_?function(e,t){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&(n.fields.__previous_value__=t),{mapValue:n}}(n,t):e instanceof a_?l_(e,t):e instanceof c_?u_(e,t):function(e,t){var n=o_(e,t),r=d_(n)+d_(e.A);return ab(n)&&ab(e.A)?e_(r):Zb(e.R,r)}(e,t)}function i_(e,t,n){return e instanceof a_?l_(e,t):e instanceof c_?u_(e,t):n}function o_(e,t){return e instanceof h_?ab(n=t)||function(e){return!!e&&"doubleValue"in e}(n)?t:{integerValue:0}:null;var n}var s_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Er.ZT)(t,e),t}(n_),a_=function(e){function t(t){var n=this;return(n=e.call(this)||this).elements=t,n}return(0,Er.ZT)(t,e),t}(n_);function l_(e,t){for(var n=A_(t),r=function(e){n.some(function(t){return eb(t,e)})||n.push(e)},i=0,o=e.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var c_=function(e){function t(t){var n=this;return(n=e.call(this)||this).elements=t,n}return(0,Er.ZT)(t,e),t}(n_);function u_(e,t){for(var n=A_(t),r=function(e){n=n.filter(function(t){return!eb(t,e)})},i=0,o=e.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var h_=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).R=t,r.A=n,r}return(0,Er.ZT)(t,e),t}(n_);function d_(e){return qy(e.integerValue||e.doubleValue)}function A_(e){return lb(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}var p_=function(e,t){this.field=e,this.transform=t},f_=function(e,t){this.version=e,this.transformResults=t},g_=function(){function e(e,t){this.updateTime=e,this.exists=t}return e.none=function(){return new e},e.exists=function(t){return new e(void 0,t)},e.updateTime=function(t){return new e(t)},Object.defineProperty(e.prototype,"isNone",{get:function(){return void 0===this.updateTime&&void 0===this.exists}
1,enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)},e}();function m_(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}var v_=function(){};function y_(e,t,n){e instanceof S_?function(e,t,n){var r=e.value.clone(),i=x_(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof E_?function(e,t,n){if(m_(e.precondition,t)){var r=x_(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(I_(e)),i.setAll(r),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}else t.convertToUnknownDocument(n.version)}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function b_(e,t,n){e instanceof S_?function(e,t,n){if(m_(e.precondition,t)){var r=e.value.clone(),i=T_(e.fieldTransforms,n,t);r.setAll(i),t.convertToFoundDocument(C_(t),r).setHasLocalMutations()}}(e,t,n):e instanceof E_?function(e,t,n){if(m_(e.precondition,t)){var r=T_(e.fieldTransforms,n,t),i=t.data;i.setAll(I_(e)),i.setAll(r),t.convertToFoundDocument(C_(t),i).setHasLocalMutations()}}(e,t,n):function(e,t){m_(e.precondition,t)&&t.convertToNoDocument(Oy.min())}(e,t)}function __(e,t){for(var n=null,r=0,i=e.fieldTransforms;r<i.length;r++){var o=i[r],s=t.data.field(o.field),a=o_(o.transform,s||null);null!=a&&(null==n&&(n=Ab.empty()),n.set(o.field,a))}return n||null}function w_(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&!!function(e,t){return void 0===e&&void 0===t||!(!e||!t)&&By(e,t,function(e,t){return function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof a_&&t instanceof a_||e instanceof c_&&t instanceof c_?By(e.elements,t.elements,eb):e instanceof h_&&t instanceof h_?eb(e.A,t.A):e instanceof s_&&t instanceof s_}(e.transform,t.transform)}(e,t)})}(e.fieldTransforms,t.fieldTransforms)&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}function C_(e){return e.isFoundDocument()?e.version:Oy.min()}var S_=function(e){function t(t,n,r,i){void 0===i&&(i=[]);var o=this;return(o=e.call(this)||this).key=t,o.value=n,o.precondition=r,o.fieldTransforms=i,o.type=0,o}return(0,Er.ZT)(t,e),t}(v_),E_=function(e){function t(t,n,r,i,o){void 0===o&&(o=[]);var s=this;return(s=e.call(this)||this).key=t,s.data=n,s.fieldMask=r,s.precondition=i,s.fieldTransforms=o,s.type=1,s}return(0,Er.ZT)(t,e),t}(v_);function I_(e){var t=new Map;return e.fieldMask.fields.forEach(function(n){if(!n.isEmpty()){var r=e.data.field(n);t.set(n,r)}}),t}function x_(e,t,n){var r=new Map;Sy(e.length===n.length);for(var i=0;i<n.length;i++){var o=e[i],s=o.transform,a=t.data.field(o.field);r.set(o.field,i_(s,a,n[i]))}return r}function T_(e,t,n){for(var r=new Map,i=0,o=e;i<o.length;i++){var s=o[i],a=s.transform,l=n.data.field(s.field);r.set(s.field,r_(a,l,t))}return r}var B_,k_,P_=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.precondition=n,r.type=2,r.fieldTransforms=[],r}return(0,Er.ZT)(t,e),t}(v_),O_=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.precondition=n,r.type=3,r.fieldTransforms=[],r}return(0,Er.ZT)(t,e),t}(v_),F_=function(e){this.count=e};function L_(e){switch(e){case fy.OK:return Cy();case fy.CANCELLED:case fy.UNKNOWN:case fy.DEADLINE_EXCEEDED:case fy.RESOURCE_EXHAUSTED:case fy.INTERNAL:case fy.UNAVAILABLE:case fy.UNAUTHENTICATED:return!1;case fy.INVALID_ARGUMENT:case fy.NOT_FOUND:case fy.ALREADY_EXISTS:case fy.PERMISSION_DENIED:case fy.FAILED_PRECONDITION:case fy.ABORTED:case fy.OUT_OF_RANGE:case fy.UNIMPLEMENTED:case fy.DATA_LOSS:return!0;default:return Cy()}}function M_(e){if(void 0===e)return by("GRPC error has no .code"),fy.UNKNOWN;switch(e){case B_.OK:return fy.OK;case B_.CANCELLED:return fy.CANCELLED;case B_.UNKNOWN:return fy.UNKNOWN;case B_.DEADLINE_EXCEEDED:return fy.DEADLINE_EXCEEDED;case B_.RESOURCE_EXHAUSTED:return fy.RESOURCE_EXHAUSTED;case B_.INTERNAL:return fy.INTERNAL;case B_.UNAVAILABLE:return fy.UNAVAILABLE;case B_.UNAUTHENTICATED:return fy.UNAUTHENTICATED;case B_.INVALID_ARGUMENT:return fy.INVALID_ARGUMENT;case B_.NOT_FOUND:return fy.NOT_FOUND;case B_.ALREADY_EXISTS:return fy.ALREADY_EXISTS;case B_.PERMISSION_DENIED:return fy.PERMISSION_DENIED;case B_.FAILED_PRECONDITION:return fy.FAILED_PRECONDITION;case B_.ABORTED:return fy.ABORTED;case B_.OUT_OF_RANGE:return fy.OUT_OF_RANGE;
1case B_.UNIMPLEMENTED:return fy.UNIMPLEMENTED;case B_.DATA_LOSS:return fy.DATA_LOSS;default:return Cy()}}(k_=B_||(B_={}))[k_.OK=0]="OK",k_[k_.CANCELLED=1]="CANCELLED",k_[k_.UNKNOWN=2]="UNKNOWN",k_[k_.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",k_[k_.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",k_[k_.NOT_FOUND=5]="NOT_FOUND",k_[k_.ALREADY_EXISTS=6]="ALREADY_EXISTS",k_[k_.PERMISSION_DENIED=7]="PERMISSION_DENIED",k_[k_.UNAUTHENTICATED=16]="UNAUTHENTICATED",k_[k_.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",k_[k_.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",k_[k_.ABORTED=10]="ABORTED",k_[k_.OUT_OF_RANGE=11]="OUT_OF_RANGE",k_[k_.UNIMPLEMENTED=12]="UNIMPLEMENTED",k_[k_.INTERNAL=13]="INTERNAL",k_[k_.UNAVAILABLE=14]="UNAVAILABLE",k_[k_.DATA_LOSS=15]="DATA_LOSS";var D_=function(){function e(e,t){this.comparator=e,this.root=t||R_.EMPTY}return e.prototype.insert=function(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,R_.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,R_.BLACK,null,null))},e.prototype.get=function(e){for(var t=this.root;!t.isEmpty();){var n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null},e.prototype.indexOf=function(e){for(var t=0,n=this.root;!n.isEmpty();){var r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1},e.prototype.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(e.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),e.prototype.minKey=function(){return this.root.minKey()},e.prototype.maxKey=function(){return this.root.maxKey()},e.prototype.inorderTraversal=function(e){return this.root.inorderTraversal(e)},e.prototype.forEach=function(e){this.inorderTraversal(function(t,n){return e(t,n),!1})},e.prototype.toString=function(){var e=[];return this.inorderTraversal(function(t,n){return e.push(t+":"+n),!1}),"{"+e.join(", ")+"}"},e.prototype.reverseTraversal=function(e){return this.root.reverseTraversal(e)},e.prototype.getIterator=function(){return new N_(this.root,null,this.comparator,!1)},e.prototype.getIteratorFrom=function(e){return new N_(this.root,e,this.comparator,!1)},e.prototype.getReverseIterator=function(){return new N_(this.root,null,this.comparator,!0)},e.prototype.getReverseIteratorFrom=function(e){return new N_(this.root,e,this.comparator,!0)},e}(),N_=function(){function e(e,t,n,r){this.isReverse=r,this.nodeStack=[];for(var i=1;!e.isEmpty();)if(i=t?n(e.key,t):1,r&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}return e.prototype.getNext=function(){var e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t},e.prototype.hasNext=function(){return this.nodeStack.length>0},e.prototype.peek=function(){if(0===this.nodeStack.length)return null;var e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}},e}(),R_=function(){function e(t,n,r,i,o){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:e.EMPTY,this.right=null!=o?o:e.EMPTY,this.size=this.left.size+1+this.right.size}return e.prototype.copy=function(t,n,r,i,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min=function(){return this.left.isEmpty()?this:this.left.min()},e.prototype.minKey=function(){return this.min().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp()},e.prototype.removeMin=function(){if(this.left.isEmpty())return e.EMPTY;var t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),(t=t.copy(null,null,null,t.left.removeMin(),null)).fixUp()},e.prototype.remove=function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(t,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(t,i.key)){if(i.right.isEmpty())return e.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(t,n))}return i.fixUp()},e.prototype.isRed=function(){return this.color},e.prototype.fixUp=function(){var e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e},e.prototype.moveRedLeft=function(){var e=this.colorFlip();return e.right.left.isRed()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight())).rotateLeft()).colorFlip()),e},e.prototype.moveRedRight=function(){var e=this.colorFlip();return e.left.left.isRed()&&(e=(e=e.rotateRight()).colorFlip()),e},e.prototype.rotateLeft=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth=function(){var e=this.check();return Math.pow(2,e)<=this.size+1},e.prototype.check=function(){if(this.isRed()&&this.left.isRed())throw Cy();if(this.right.isRed())throw Cy();var e=this.left.check();if(e!==this.right.check())throw Cy();return e+(this.isRed()?0:1)},e}();
1R_.EMPTY=null,R_.RED=!0,R_.BLACK=!1,R_.EMPTY=new(function(){function e(){this.size=0}return Object.defineProperty(e.prototype,"key",{get:function(){throw Cy()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){throw Cy()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){throw Cy()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){throw Cy()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){throw Cy()},enumerable:!1,configurable:!0}),e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new R_(e,t)},e.prototype.remove=function(e,t){return this},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.isRed=function(){return!1},e.prototype.checkMaxDepth=function(){return!0},e.prototype.check=function(){return 0},e}());var U_=function(){function e(e){this.comparator=e,this.data=new D_(this.comparator)}return e.prototype.has=function(e){return null!==this.data.get(e)},e.prototype.first=function(){return this.data.minKey()},e.prototype.last=function(){return this.data.maxKey()},Object.defineProperty(e.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),e.prototype.indexOf=function(e){return this.data.indexOf(e)},e.prototype.forEach=function(e){this.data.inorderTraversal(function(t,n){return e(t),!1})},e.prototype.forEachInRange=function(e,t){for(var n=this.data.getIteratorFrom(e[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}},e.prototype.forEachWhile=function(e,t){var n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return},e.prototype.firstAfterOrEqual=function(e){var t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null},e.prototype.getIterator=function(){return new j_(this.data.getIterator())},e.prototype.getIteratorFrom=function(e){return new j_(this.data.getIteratorFrom(e))},e.prototype.add=function(e){return this.copy(this.data.remove(e).insert(e,!0))},e.prototype.delete=function(e){return this.has(e)?this.copy(this.data.remove(e)):this},e.prototype.isEmpty=function(){return this.data.isEmpty()},e.prototype.unionWith=function(e){var t=this;return t.size<e.size&&(t=e,e=this),e.forEach(function(e){t=t.add(e)}),t},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data.getIterator(),r=t.data.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(0!==this.comparator(i,o))return!1}return!0},e.prototype.toArray=function(){var e=[];return this.forEach(function(t){e.push(t)}),e},e.prototype.toString=function(){var e=[];return this.forEach(function(t){return e.push(t)}),"SortedSet("+e.toString()+")"},e.prototype.copy=function(t){var n=new e(this.comparator);return n.data=t,n},e}(),j_=function(){function e(e){this.iter=e}return e.prototype.getNext=function(){return this.iter.getNext().key},e.prototype.hasNext=function(){return this.iter.hasNext()},e}(),Q_=new D_(Jy.comparator);function H_(){return Q_}var V_=new D_(Jy.comparator);function q_(){return V_}var K_=new D_(Jy.comparator);function G_(){return K_}var z_=new U_(Jy.comparator);function W_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=z_,r=0,i=e;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var $_=new U_(Ty);function Y_(){return $_}var X_=function(){function e(e,t,n,r,i){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}return e.createSynthesizedRemoteEventForCurrentChange=function(t,n){var r=new Map;return r.set(t,J_.createSynthesizedTargetChangeForCurrentChange(t,n)),new e(Oy.min(),r,Y_(),H_(),W_())},e}(),J_=function(){function e(e,t,n,r,i){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}return e.createSynthesizedTargetChangeForCurrentChange=function(t,n){return new e(Qy.EMPTY_BYTE_STRING,n,W_(),W_(),W_())},e}(),Z_=function(e,t,n,r){this.v=e,this.removedTargetIds=t,this.key=n,this.P=r},ew=function(e,t){this.targetId=e,this.V=t},tw=function(e,t,n,r){void 0===n&&(n=Qy.EMPTY_BYTE_STRING),void 0===r&&(r=null),this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r},nw=function(){function e(){this.S=0,this.D=ow(),this.C=Qy.EMPTY_BYTE_STRING,this.N=!1,this.k=!0}return Object.defineProperty(e.prototype,"current",{get:function(){return this.N}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resumeToken",{get:function(){return this.C},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"F",{get:function(){return 0!==this.S},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$",{get:function(){return this.k},enumerable:!1,configurable:!0}),e.prototype.O=function(e){e.approximateByteSize()>0&&(this.k=!0,this.C=e)},e.prototype.M=function(){var e=W_(),t=W_(),n=W_();return this.D.forEach(function(r,i){switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:Cy()}}),new J_(this.C,this.N,e,t,n)},e.prototype.L=function(){this.k=!1,this.D=ow()},e.prototype.B=function(e,t){this.k=!0,this.D=this.D.insert(e,t)},e.prototype.q=function(e){this.k=!0,this.D=this.D.remove(e)},e.prototype.U=function(){this.S+=1},e.prototype.K=function(){this.S-=1},e.prototype.j=function(){this.k=!0,this.N=!0},e}(),rw=function(){function e(e){this.W=e,this.G=new Map,this.H=H_(),this.J=iw(),this.Y=new U_(Ty)}return e.prototype.X=function(e){for(var t=0,n=e.v;t<n.length;t++){var r=n[t];e.P&&e.P.isFoundDocument()?this.Z(r,e.P):this.tt(r,e.key,e.P)}for(var i=0,o=e.removedTargetIds;i<o.length;i++)this.tt(r=o[i],e.key,e.P)},e.prototype.et=function(e){var t=this;this.forEachTarget(e,function(n){var r=t.nt(n);switch(e.state){case 0:t.st(n)&&r.O(e.resumeToken);break;case 1:r.K(),r.F||r.L(),r.O(e.resumeToken);break;case 2:r.K(),r.F||t.removeTarget(n);break;case 3:t.st(n)&&(r.j(),r.O(e.resumeToken));break;case 4:t.st(n)&&(t.it(n),r.O(e.resumeToken));break;default:Cy()}})},e.prototype.forEachTarget=function(e,t){var n=this;e.targetIds.length>0?e.targetIds.forEach(t):this.G.forEach(function(e,r){n.st(r)&&t(r)})},e.prototype.rt=function(e){var t=e.targetId,n=e.V.count,r=this.ot(t);if(r){var i=r.target;if(bb(i))if(0===n){var o=new Jy(i.path);this.tt(t,o,fb.newNoDocument(o,Oy.min()))}else Sy(1===n);else this.ct(t)!==n&&(this.it(t),this.Y=this.Y.add(t))}},e.prototype.ut=function(e){var t=this,n=new Map;this.G.forEach(function(r,i){var o=t.ot(i);if(o){if(r.current&&bb(o.target)){var s=new Jy(o.target.path);null!==t.H.get(s)||t.at(i,s)||t.tt(i,s,fb.newNoDocument(s,e))}r.$&&(n.set(i,r.M()),r.L())}});var r=W_();this.J.forEach(function(e,n){var i=!0;n.forEachWhile(function(e){var n=t.ot(e);return!n||2===n.purpose||(i=!1,!1)}),i&&(r=r.add(e))});var i=new X_(e,n,this.Y,this.H,r);return this.H=H_(),this.J=iw(),this.Y=new U_(Ty),i},e.prototype.Z=function(e,t){if(this.st(e)){var n=this.at(e,t.key)?2:0;this.nt(e).B(t.key,n),this.H=this.H.insert(t.key,t),this.J=this.J.insert(t.key,this.ht(t.key).add(e))}},e.prototype.tt=function(e,t,n){if(this.st(e)){var r=this.nt(e);this.at(e,t)?r.B(t,1):r.q(t),this.J=this.J.insert(t,this.ht(t).delete(e)),n&&(this.H=this.H.insert(t,n))}},e.prototype.removeTarget=function(e){this.G.delete(e)},e.prototype.ct=function(e){var t=this.nt(e).M();return this.W.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size},e.prototype.U=function(e){this.nt(e).U()},e.prototype.nt=function(e){var t=this.G.get(e);return t||(t=new nw,this.G.set(e,t)),t},e.prototype.ht=function(e){var t=this.J.get(e);return t||(t=new U_(Ty),this.J=this.J.insert(e,t)),t},e.prototype.st=function(e){var t=null!==this.ot(e);return t||yy("WatchChangeAggregator","Detected inactive target",e),t},e.prototype.ot=function(e){var t=this.G.get(e);return t&&t.F?null:this.W.lt(e)},e.prototype.it=function(e){var t=this;this.G.set(e,new nw),this.W.getRemoteKeysForTarget(e).forEach(function(n){t.tt(e,n,null)})},e.prototype.at=function(e,t){return this.W.getRemoteKeysForTarget(e).has(t)},e}();function iw(){return new D_(Jy.comparator)}function ow(){return new D_(Jy.comparator)}var sw={asc:"ASCENDING",desc:"DESCENDING"},aw={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},lw=function(e,t){this.databaseId=e,this.I=t};function cw(e,t){return e.I?new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+t.nanoseconds).slice(-9)+"Z":{seconds:""+t.seconds,nanos:t.nanoseconds}}function uw(e,t){return e.I?t.toBase64():t.toUint8Array()}function hw(e,t){return cw(e,t.toTimestamp())}function dw(e){return Sy(!!e),Oy.fromTimestamp(function(e){var t=Vy(e);return new Py(t.seconds,t.nanos)}(e))}function Aw(e,t){return function(e){return new Ny(["projects",e.projectId,"databases",e.database])}(e).child("documents").child(t).canonicalString()}function pw(e){var t=Ny.fromString(e);return Sy(Rw(t)),t}function fw(e,t){return Aw(e.databaseId,t.path)}function gw(e,t){var n=pw(t);if(n.get(1)!==e.databaseId.projectId)throw new gy(fy.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new gy(fy.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new Jy(bw(n))}function mw(e,t){return Aw(e.databaseId,t)}function vw(e){var t=pw(e);return 4===t.length?Ny.emptyPath():bw(t)}function yw(e){return new Ny(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function bw(e){return Sy(e.length>4&&"documents"===e.get(4)),e.popFirst(5)}
1function _w(e,t,n){return{name:fw(e,t),fields:n.value.mapValue.fields}}function ww(e,t,n){var r=gw(e,t.name),i=dw(t.updateTime),o=new Ab({mapValue:{fields:t.fields}}),s=fb.newFoundDocument(r,i,o);return n&&s.setHasCommittedMutations(),n?s.setHasCommittedMutations():s}function Cw(e,t){var n;if(t instanceof S_)n={update:_w(e,t.key,t.value)};else if(t instanceof P_)n={delete:fw(e,t.key)};else if(t instanceof E_)n={update:_w(e,t.key,t.data),updateMask:Nw(t.fieldMask)};else{if(!(t instanceof O_))return Cy();n={verify:fw(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map(function(e){return function(e,t){var n=t.transform;if(n instanceof s_)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof a_)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof c_)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof h_)return{fieldPath:t.field.canonicalString(),increment:n.A};throw Cy()}(0,e)})),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:hw(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:Cy()}(e,t.precondition)),n}function Sw(e,t){var n=t.currentDocument?function(e){return void 0!==e.updateTime?g_.updateTime(dw(e.updateTime)):void 0!==e.exists?g_.exists(e.exists):g_.none()}(t.currentDocument):g_.none(),r=t.updateTransforms?t.updateTransforms.map(function(t){return function(e,t){var n=null;"setToServerValue"in t?(Sy("REQUEST_TIME"===t.setToServerValue),n=new s_):"appendMissingElements"in t?n=new a_(t.appendMissingElements.values||[]):"removeAllFromArray"in t?n=new c_(t.removeAllFromArray.values||[]):"increment"in t?n=new h_(e,t.increment):Cy();var r=Uy.fromServerFormat(t.fieldPath);return new p_(r,n)}(e,t)}):[];if(t.update){var i=gw(e,t.update.name),o=new Ab({mapValue:{fields:t.update.fields}});if(t.updateMask){var s=function(e){return new jy((e.fieldPaths||[]).map(function(e){return Uy.fromServerFormat(e)}))}(t.updateMask);return new E_(i,o,s,n,r)}return new S_(i,o,n,r)}if(t.delete){var a=gw(e,t.delete);return new P_(a,n)}if(t.verify){var l=gw(e,t.verify);return new O_(l,n)}return Cy()}function Ew(e,t){return{documents:[mw(e,t.path)]}}function Iw(e,t){var n={structuredQuery:{}},r=t.path;null!==t.collectionGroup?(n.parent=mw(e,r),n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(n.parent=mw(e,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);var i=function(e){if(0!==e.length){var t=e.map(function(e){return function(e){if("=="===e.op){if(ub(e.value))return{unaryFilter:{field:Fw(e.field),op:"IS_NAN"}};if(cb(e.value))return{unaryFilter:{field:Fw(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(ub(e.value))return{unaryFilter:{field:Fw(e.field),op:"IS_NOT_NAN"}};if(cb(e.value))return{unaryFilter:{field:Fw(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Fw(e.field),op:Ow(e.op),value:e.value}}}(e)});return 1===t.length?t[0]:{compositeFilter:{op:"AND",filters:t}}}}(t.filters);i&&(n.structuredQuery.where=i);var o=function(e){if(0!==e.length)return e.map(function(e){return function(e){return{field:Fw(e.field),direction:Pw(e.dir)}}(e)})}(t.orderBy);o&&(n.structuredQuery.orderBy=o);var s=function(e,t){return e.I||$y(t)?t:{value:t}}(e,t.limit);return null!==s&&(n.structuredQuery.limit=s),t.startAt&&(n.structuredQuery.startAt=Bw(t.startAt)),t.endAt&&(n.structuredQuery.endAt=Bw(t.endAt)),n}function xw(e){var t=vw(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){Sy(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:t=t.child(o.collectionId)}var s=[];n.where&&(s=Tw(n.where));var a=[];n.orderBy&&(a=n.orderBy.map(function(e){return function(e){return new Ob(Lw(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e)}));var l=null;n.limit&&(l=function(e){var t;return $y(t="object"==typeof e?e.value:e)?null:t}(n.limit));var c=null;n.startAt&&(c=kw(n.startAt));var u=null;return n.endAt&&(u=kw(n.endAt)),Nb(t,i,a,s,l,"F",c,u)}function Tw(e){return e?void 0!==e.unaryFilter?[Dw(e)]:void 0!==e.fieldFilter?[Mw(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map(function(e){return Tw(e)}).reduce(function(e,t){return e.concat(t)}):Cy():[]}function Bw(e){return{before:e.before,values:e.position}}function kw(e){return new kb(e.values||[],!!e.before)}function Pw(e){return sw[e]}function Ow(e){return aw[e]}function Fw(e){return{fieldPath:e.canonicalString()}}function Lw(e){return Uy.fromServerFormat(e.fieldPath)}function Mw(e){return _b.create(Lw(e.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return Cy()}}(e.fieldFilter.op),e.fieldFilter.value)}function Dw(e){switch(e.unaryFilter.op){case"IS_NAN":var t=Lw(e.unaryFilter.field);return _b.create(t,"==",{doubleValue:NaN});case"IS_NULL":var n=Lw(e.unaryFilter.field);return _b.create(n,"==",{nullValue:"NULL_VALUE"});
1case"IS_NOT_NAN":var r=Lw(e.unaryFilter.field);return _b.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=Lw(e.unaryFilter.field);return _b.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return Cy()}}function Nw(e){var t=[];return e.fields.forEach(function(e){return t.push(e.canonicalString())}),{fieldPaths:t}}function Rw(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}function Uw(e){for(var t="",n=0;n<e.length;n++)t.length>0&&(t=Qw(t)),t=jw(e.get(n),t);return Qw(t)}function jw(e,t){for(var n=t,r=e.length,i=0;i<r;i++){var o=e.charAt(i);switch(o){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=o}}return n}function Qw(e){return e+"\x01\x01"}function Hw(e){var t=e.length;if(Sy(t>=2),2===t)return Sy("\x01"===e.charAt(0)&&"\x01"===e.charAt(1)),Ny.emptyPath();for(var n=t-2,r=[],i="",o=0;o<t;){var s=e.indexOf("\x01",o);switch((s<0||s>n)&&Cy(),e.charAt(s+1)){case"\x01":var a=e.substring(o,s),l=void 0;0===i.length?l=a:(l=i+=a,i=""),r.push(l);break;case"\x10":i+=e.substring(o,s),i+="\0";break;case"\x11":i+=e.substring(o,s+1);break;default:Cy()}o=s+2}return new Ny(r)}var Vw=function(e,t){this.seconds=e,this.nanoseconds=t},qw=function(e,t,n){this.ownerId=e,this.allowTabSynchronization=t,this.leaseTimestampMs=n};qw.store="owner",qw.key="owner";var Kw=function(e,t,n){this.userId=e,this.lastAcknowledgedBatchId=t,this.lastStreamToken=n};Kw.store="mutationQueues",Kw.keyPath="userId";var Gw=function(e,t,n,r,i){this.userId=e,this.batchId=t,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Gw.store="mutations",Gw.keyPath="batchId",Gw.userMutationsIndex="userMutationsIndex",Gw.userMutationsKeyPath=["userId","batchId"];var zw=function(){function e(){}return e.prefixForUser=function(e){return[e]},e.prefixForPath=function(e,t){return[e,Uw(t)]},e.key=function(e,t,n){return[e,Uw(t),n]},e}();zw.store="documentMutations",zw.PLACEHOLDER=new zw;var Ww=function(e,t){this.path=e,this.readTime=t},$w=function(e,t){this.path=e,this.version=t},Yw=function(e,t,n,r,i,o){this.unknownDocument=e,this.noDocument=t,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o};Yw.store="remoteDocuments",Yw.readTimeIndex="readTimeIndex",Yw.readTimeIndexPath="readTime",Yw.collectionReadTimeIndex="collectionReadTimeIndex",Yw.collectionReadTimeIndexPath=["parentPath","readTime"];var Xw=function(e){this.byteSize=e};Xw.store="remoteDocumentGlobal",Xw.key="remoteDocumentGlobalKey";var Jw=function(e,t,n,r,i,o,s){this.targetId=e,this.canonicalId=t,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=s};Jw.store="targets",Jw.keyPath="targetId",Jw.queryTargetsIndexName="queryTargetsIndex",Jw.queryTargetsKeyPath=["canonicalId","targetId"];var Zw=function(e,t,n){this.targetId=e,this.path=t,this.sequenceNumber=n};Zw.store="targetDocuments",Zw.keyPath=["targetId","path"],Zw.documentTargetsIndex="documentTargetsIndex",Zw.documentTargetsKeyPath=["path","targetId"];var eC=function(e,t,n,r){this.highestTargetId=e,this.highestListenSequenceNumber=t,this.lastRemoteSnapshotVersion=n,this.targetCount=r};eC.key="targetGlobalKey",eC.store="targetGlobal";var tC=function(e,t){this.collectionId=e,this.parent=t};tC.store="collectionParents",tC.keyPath=["collectionId","parent"];var nC=function(e,t,n,r){this.clientId=e,this.updateTimeMs=t,this.networkEnabled=n,this.inForeground=r};nC.store="clientMetadata",nC.keyPath="clientId";var rC=function(e,t,n){this.bundleId=e,this.createTime=t,this.version=n};rC.store="bundles",rC.keyPath="bundleId";var iC=function(e,t,n){this.name=e,this.readTime=t,this.bundledQuery=n};iC.store="namedQueries",iC.keyPath="name";var oC=(0,Er.ev)((0,Er.ev)([],(0,Er.ev)((0,Er.ev)([],(0,Er.ev)((0,Er.ev)([],(0,Er.ev)((0,Er.ev)([],[Kw.store,Gw.store,zw.store,Yw.store,Jw.store,qw.store,eC.store,Zw.store]),[nC.store])),[Xw.store])),[tC.store])),[rC.store,iC.store]),sC="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",aC=function(){function e(){this.onCommittedListeners=[]}return e.prototype.addOnCommittedListener=function(e){this.onCommittedListeners.push(e)},e.prototype.raiseOnCommittedEvent=function(){this.onCommittedListeners.forEac
1h(function(e){return e()})},e}(),lC=function(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})},cC=function(){function e(e){var t=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(function(e){t.isDone=!0,t.result=e,t.nextCallback&&t.nextCallback(e)},function(e){t.isDone=!0,t.error=e,t.catchCallback&&t.catchCallback(e)})}return e.prototype.catch=function(e){return this.next(void 0,e)},e.prototype.next=function(t,n){var r=this;return this.callbackAttached&&Cy(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(t,this.result):new e(function(e,i){r.nextCallback=function(n){r.wrapSuccess(t,n).next(e,i)},r.catchCallback=function(t){r.wrapFailure(n,t).next(e,i)}})},e.prototype.toPromise=function(){var e=this;return new Promise(function(t,n){e.next(t,n)})},e.prototype.wrapUserFunction=function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}},e.prototype.wrapSuccess=function(t,n){return t?this.wrapUserFunction(function(){return t(n)}):e.resolve(n)},e.prototype.wrapFailure=function(t,n){return t?this.wrapUserFunction(function(){return t(n)}):e.reject(n)},e.resolve=function(t){return new e(function(e,n){e(t)})}
1,e.reject=function(t){return new e(function(e,n){n(t)})},e.waitFor=function(t){return new e(function(e,n){var r=0,i=0,o=!1;t.forEach(function(t){++r,t.next(function(){++i,o&&i===r&&e()},function(e){return n(e)})}),o=!0,i===r&&e()})},e.or=function(t){for(var n=e.resolve(!1),r=function(t){n=n.next(function(n){return n?e.resolve(n):t()})},i=0,o=t;i<o.length;i++)r(o[i]);return n},e.forEach=function(e,t){var n=this,r=[];return e.forEach(function(e,i){r.push(t.call(n,e,i))}),this.waitFor(r)},e}(),uC=function(){function e(e,t){var n=this;this.action=e,this.transaction=t,this.aborted=!1,this.ft=new lC,this.transaction.oncomplete=function(){n.ft.resolve()},this.transaction.onabort=function(){t.error?n.ft.reject(new AC(e,t.error)):n.ft.resolve()},this.transaction.onerror=function(t){var r=vC(t.target.error);n.ft.reject(new AC(e,r))}}return e.open=function(t,n,r,i){try{return new e(n,t.transaction(i,r))}catch(t){throw new AC(n,t)}},Object.defineProperty(e.prototype,"dt",{get:function(){return this.ft.promise},enumerable:!1,configurable:!0}),e.prototype.abort=function(e){e&&this.ft.reject(e),this.aborted||(yy("SimpleDb","Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},e.prototype.store=function(e){var t=this.transaction.objectStore(e);return new fC(t)},e}(),hC=function(){function e(t,n,r){this.name=t,this.version=n,this.wt=r,12.2===e._t((0,sf.z$)())&&by("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return e.delete=function(e){return yy("SimpleDb","Removing database:",e),gC(window.indexedDB.deleteDatabase(e)).toPromise()},e.yt=function(){if("undefined"==typeof indexedDB)return!1;if(e.gt())return!0;var t=(0,sf.z$)(),n=e._t(t),r=0<n&&n<10,i=e.Et(t),o=0<i&&i<4.5;return!(t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||r||o)},e.gt=function(){var e;return"undefined"!=typeof process&&"YES"===(null===(e=process.env)||void 0===e?void 0:e.Tt)},e.It=function(e,t){return e.store(t)},e._t=function(e){var t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)},e.Et=function(e){var t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype.At=function(e){return(0,Er.mG)(this,void 0,void 0,function(){var t,n=this;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:return this.db?[3,2]:(yy("SimpleDb","Opening database:",this.name),t=this,[4,new Promise(function(t,r){var i=indexedDB.open(n.name,n.version);i.onsuccess=function(e){t(e.target.result)},i.onblocked=function(){r(new AC(e,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=function(t){var n=t.target.error;r("VersionError"===n.name?new gy(fy.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):new AC(e,n))},i.onupgradeneeded=function(e){yy("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',e.oldVersion),n.wt.Rt(e.target.result,i.transaction,e.oldVersion,n.version).next(function(){yy("SimpleDb","Database upgrade to version "+n.version+" complete")})}})]);case 1:t.db=r.sent(),r.label=2;case 2:return[2,(this.bt&&(this.db.onversionchange=function(e){return n.bt(e)}),this.db)]}})})},e.prototype.vt=function(e){this.bt=e,this.db&&(this.db.onversionchange=function(t){return e(t)})},e.prototype.runTransaction=function(e,t,n,r){return(0,Er.mG)(this,void 0,void 0,function(){var i,o,s,a,l;return(0,Er.Jh)(this,function(c){switch(c.label){case 0:i="readonly"===t,o=0,s=function(){var t,s,l,c,u;return(0,Er.Jh)(this,function(h){switch(h.label){case 0:++o,h.label=1;case 1:return h.trys.push([1,4,,5]),[4,a.At(e)];case 2:return a.db=h.sent(),t=uC.open(a.db,e,i?"readonly":"readwrite",n),s=r(t).catch(function(e){return t.abort(e),cC.reject(e)}).toPromise(),l={},s.catch(function(){}),[4,t.dt];case 3:return[2,(l.value=(h.sent(),s),l)];case 4:return yy("SimpleDb","Transaction failed with error:",(c=h.sent()).message,"Retrying:",u="FirebaseError"!==c.name&&o<3),a.close(),u?[3,5]:[2,{value:Promise.reject(c)}];case 5:return[2]}})},a=this,c.label=1;case 1:return[5,s()];case 2:if("object"==typeof(l=c.sent()))return[2,l.value];c.label=3;case 3:return[3,1];case 4:return[2]}})})},e.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},e}(),dC=function(){function e(e){this.Pt=e,this.Vt=!1,this.St=null}return Object.defineProperty(e.prototype,"isDone",{get:function(){return this.Vt}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Dt",{get:function(){return this.St},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{set:function(e){this.Pt=e},enumerable:!1,configurable:!0}),e.prototype.done=function(){this.Vt=!0},e.prototype.Ct=function(e){this.St=e},e.prototype.delete=function(){return gC(this.Pt.delete())},e}(),AC=function(e){function t(t,n){var r=this;return(r=e.call(this,fy.UNAVAILABLE,"IndexedDB transaction '"+t+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return(0,Er.ZT)(t,e),t}(gy);function pC(e){return"IndexedDbTransactionError"===e.name}var fC=function(){function e(e){this.store=e}return e.prototype.put=function(e,t){var n;return void 0!==t?(yy("SimpleDb","PUT",this.store.name,e,t),n=this.store.put(t,e)):(yy("SimpleDb","PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),gC(n)},e.prototype.add=function(e){return yy("SimpleDb","ADD",this.store.name,e,e),gC(this.store.add(e))},e.prototype.get=function(e){var t=this;return gC(this.store.get(e)).next(function(n){return void 0===n&&(n=null),yy("SimpleDb","GET",t.store.name,e,n),n})},e.prototype.delete=function(e){return yy("SimpleDb","DELETE",this.store.name,e),gC(this.store.delete(e))},e.prototype.count=function(){return yy("SimpleDb","COUNT",this.store.name),gC(this.store.count())},e.prototype.Nt=function(e,t){var n=this.cursor(this.options(e,t)),r=[];return this.xt(n,function(e,t){r.push(t)}).next(function(){return r})},e.prototype.kt=function(e,t){yy("SimpleDb","DELETE ALL",this.store.name);var n=this.options(e,t);n.Ft=!1;var r=this.cursor(n);return this.xt(r,function(e,t,n){return n.delete()})},e.prototype.$t=function(e,t){var n;t?n=e:(n={},t=e);var r=this.cursor(n);return this.xt(r,t)},e.prototype.Ot=function(e){var t=this.cursor({});return new cC(function(n,r){t.onerror=function(e){var t=vC(e.target.error);r(t)},t.onsuccess=function(t){var r=t.target.result;r?e(r.primaryKey,r.value).next(function(e){e?r.continue():n()}):n()}})},e.prototype.xt=function(e,t){var n=[];return new cC(function(r,i){e.onerror=function(e){i(e.target.error)},e.onsuccess=function(e){var i=e.target.result;if(i){var o=new dC(i),s=t(i.primaryKey,i.value,o);if(s instanceof cC){var a=s.catch(function(e){return o.done(),cC.reject(e)});n.push(a)}o.isDone?r():null===o.Dt?i.continue():i.continue(o.Dt)}else r()}}).next(function(){return cC.waitFor(n)})},e.prototype.options=function(e,t){var n;return void 0!==e&&("string"==typeof e?n=e:t=e),{index:n,range:t}},e.prototype.cursor=function(e){var t="next";if(e.reverse&&(t="prev"),e.index){var n=this.store.index(e.index);return e.Ft?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)},e}();function gC(e){return new cC(function(t,n){e.onsuccess=function(e){t(e.target.result)},e.onerror=function(e){var t=vC(e.target.error);n(t)}})}var mC=!1;function vC(e){var t=hC._t((0,sf.z$)());if(t>=12.2&&t<13){var n="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(n)>=0){var r=new gy("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return mC||(mC=!0,setTimeout(function(){throw r},0)),r}}return e}var yC=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).Mt=t,r.currentSequenceNumber=n,r}return(0,Er.ZT)(t,e),t}(aC);function bC(e,t){var n=Ey(e);return hC.It(n.Mt,t)}var _C=function(){function e(e,t,n,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=r}return e.prototype.applyToRemoteDocument=function(e,t){for(var n=t.mutationResults,r=0;r<this.mutations.length;r++){var i=this.mutations[r];i.key.isEqual(e.key)&&y_(i,e,n[r])}},e.prototype.applyToLocalView=function(e){for(var t=0,n=this.baseMutations;t<n.length;t++)(o=n[t]).key.isEqual(e.key)&&b_(o,e,this.localWriteTime);for(var r=0,i=this.mutations;r<i.length;r++){var o;(o=i[r]).key.isEqual(e.key)&&b_(o,e,this.localWriteTime)}},e.prototype.applyToLocalDocumentSet=function(e){var t=this;this.mutations.forEach(function(n){var r=e.get(n.key),i=r;
1t.applyToLocalView(i),r.isValidDocument()||i.convertToNoDocument(Oy.min())})},e.prototype.keys=function(){return this.mutations.reduce(function(e,t){return e.add(t.key)},W_())},e.prototype.isEqual=function(e){return this.batchId===e.batchId&&By(this.mutations,e.mutations,function(e,t){return w_(e,t)})&&By(this.baseMutations,e.baseMutations,function(e,t){return w_(e,t)})},e}(),wC=function(){function e(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}return e.from=function(t,n,r){Sy(t.mutations.length===r.length);for(var i=G_(),o=t.mutations,s=0;s<o.length;s++)i=i.insert(o[s].key,r[s].version);return new e(t,n,r,i)},e}(),CC=function(){function e(e,t,n,r,i,o,s){void 0===i&&(i=Oy.min()),void 0===o&&(o=Oy.min()),void 0===s&&(s=Qy.EMPTY_BYTE_STRING),this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=s}return e.prototype.withSequenceNumber=function(t){return new e(this.target,this.targetId,this.purpose,t,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)},e.prototype.withResumeToken=function(t,n){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t)},e.prototype.withLastLimboFreeSnapshotVersion=function(t){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,t,this.resumeToken)},e}(),SC=function(e){this.Lt=e};function EC(e,t){if(t.document)return ww(e.Lt,t.document,!!t.hasCommittedMutations);if(t.noDocument){var n=Jy.fromSegments(t.noDocument.path),r=kC(t.noDocument.readTime),i=fb.newNoDocument(n,r);return t.hasCommittedMutations?i.setHasCommittedMutations():i}if(t.unknownDocument){var o=Jy.fromSegments(t.unknownDocument.path);return r=kC(t.unknownDocument.version),fb.newUnknownDocument(o,r)}return Cy()}function IC(e,t,n){var r=xC(n),i=t.key.path.popLast().toArray();if(t.isFoundDocument()){var o=function(e,t){return{name:fw(e,t.key),fields:t.data.value.mapValue.fields,updateTime:cw(e,t.version.toTimestamp())}}(e.Lt,t),s=t.hasCommittedMutations;return new Yw(null,null,o,s,r,i)}if(t.isNoDocument()){var a=t.key.path.toArray(),l=BC(t.version);return s=t.hasCommittedMutations,new Yw(null,new Ww(a,l),null,s,r,i)}if(t.isUnknownDocument()){var c=t.key.path.toArray(),u=BC(t.version);return new Yw(new $w(c,u),null,null,!0,r,i)}return Cy()}function xC(e){var t=e.toTimestamp();return[t.seconds,t.nanoseconds]}function TC(e){var t=new Py(e[0],e[1]);return Oy.fromTimestamp(t)}function BC(e){var t=e.toTimestamp();return new Vw(t.seconds,t.nanoseconds)}function kC(e){var t=new Py(e.seconds,e.nanoseconds);return Oy.fromTimestamp(t)}function PC(e,t){for(var n=(t.baseMutations||[]).map(function(t){return Sw(e.Lt,t)}),r=0;r<t.mutations.length-1;++r)r+1<t.mutations.length&&void 0!==t.mutations[r+1].transform&&(t.mutations[r].updateTransforms=t.mutations[r+1].transform.fieldTransforms,t.mutations.splice(r+1,1),++r);var i=t.mutations.map(function(t){return Sw(e.Lt,t)}),o=Py.fromMillis(t.localWriteTimeMs);return new _C(t.batchId,o,n,i)}function OC(e){var t,n,r=kC(e.readTime),i=void 0!==e.lastLimboFreeSnapshotVersion?kC(e.lastLimboFreeSnapshotVersion):Oy.min();return void 0!==e.query.documents?(Sy(1===(n=e.query).documents.length),t=Kb(Rb(vw(n.documents[0])))):t=function(e){return Kb(xw(e))}(e.query),new CC(t,e.targetId,0,e.lastListenSequenceNumber,r,i,Qy.fromBase64String(e.resumeToken))}function FC(e,t){var n,r=BC(t.snapshotVersion),i=BC(t.lastLimboFreeSnapshotVersion);n=bb(t.target)?Ew(e.Lt,t.target):Iw(e.Lt,t.target);var o=t.resumeToken.toBase64();return new Jw(t.targetId,vb(t.target),r,o,t.sequenceNumber,i,n)}function LC(e){var t=xw({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?Gb(t,t.limit,"L"):t}var MC=function(){function e(){}return e.prototype.getBundleMetadata=function(e,t){return DC(e).get(t).next(function(e){if(e)return{id:(t=e).bundleId,createTime:kC(t.createTime),version:t.version};var t})},e.prototype.saveBundleMetadata=function(e,t){return DC(e).put({bundleId:(n=t).id,createTime:BC(dw(n.createTime)),version:n.version});var n}
1,e.prototype.getNamedQuery=function(e,t){return NC(e).get(t).next(function(e){if(e)return{name:(t=e).name,query:LC(t.bundledQuery),readTime:kC(t.readTime)};var t})},e.prototype.saveNamedQuery=function(e,t){return NC(e).put(function(e){return{name:e.name,readTime:BC(dw(e.readTime)),bundledQuery:e.bundledQuery}}(t))},e}();function DC(e){return bC(e,rC.store)}function NC(e){return bC(e,iC.store)}var RC=function(){function e(){this.Bt=new UC}return e.prototype.addToCollectionParentIndex=function(e,t){return this.Bt.add(t),cC.resolve()},e.prototype.getCollectionParents=function(e,t){return cC.resolve(this.Bt.getEntries(t))},e}(),UC=function(){function e(){this.index={}}return e.prototype.add=function(e){var t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new U_(Ny.comparator),i=!r.has(n);return this.index[t]=r.add(n),i},e.prototype.has=function(e){var t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)},e.prototype.getEntries=function(e){return(this.index[e]||new U_(Ny.comparator)).toArray()},e}(),jC=function(){function e(){this.qt=new UC}return e.prototype.addToCollectionParentIndex=function(e,t){var n=this;if(!this.qt.has(t)){var r=t.lastSegment(),i=t.popLast();e.addOnCommittedListener(function(){n.qt.add(t)});var o={collectionId:r,parent:Uw(i)};return QC(e).put(o)}return cC.resolve()},e.prototype.getCollectionParents=function(e,t){var n=[],r=IDBKeyRange.bound([t,""],[ky(t),""],!1,!0);return QC(e).Nt(r).next(function(e){for(var r=0,i=e;r<i.length;r++){var o=i[r];if(o.collectionId!==t)break;n.push(Hw(o.parent))}return n})},e}();function QC(e){return bC(e,tC.store)}var HC={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},VC=function(){function e(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}return e.withCacheSize=function(t){return new e(t,e.DEFAULT_COLLECTION_PERCENTILE,e.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)},e}();function qC(e,t,n){var r=e.store(Gw.store),i=e.store(zw.store),o=[],s=IDBKeyRange.only(n.batchId),a=0,l=r.$t({range:s},function(e,t,n){return a++,n.delete()});o.push(l.next(function(){Sy(1===a)}));for(var c=[],u=0,h=n.mutations;u<h.length;u++){var d=h[u],A=zw.key(t,d.key.path,n.batchId);o.push(i.delete(A)),c.push(d.key)}return cC.waitFor(o).next(function(){return c})}function KC(e){if(!e)return 0;var t;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw Cy();t=e.noDocument}return JSON.stringify(t).length}VC.DEFAULT_COLLECTION_PERCENTILE=10,VC.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,VC.DEFAULT=new VC(41943040,VC.DEFAULT_COLLECTION_PERCENTILE,VC.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),VC.DISABLED=new VC(-1,0,0);var GC=function(){function e(e,t,n,r){this.userId=e,this.R=t,this.Ut=n,this.referenceDelegate=r,this.Kt={}}return e.Qt=function(t,n,r,i){return Sy(""!==t.uid),new e(t.isAuthenticated()?t.uid:"",n,r,i)},e.prototype.checkEmpty=function(e){var t=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return WC(e).$t({index:Gw.userMutationsIndex,range:n},function(e,n,r){t=!1,r.done()}).next(function(){return t})},e.prototype.addMutationBatch=function(e,t,n,r){var i=this,o=$C(e),s=WC(e);return s.add({}).next(function(a){Sy("number"==typeof a);for(var l=new _C(a,t,n,r),c=function(e,t,n){var r=n.baseMutations.map(function(t){return Cw(e.Lt,t)}),i=n.mutations.map(function(t){return Cw(e.Lt,t)});return new Gw(t,n.batchId,n.localWriteTime.toMillis(),r,i)}(i.R,i.userId,l),u=[],h=new U_(function(e,t){return Ty(e.canonicalString(),t.canonicalString())}),d=0,A=r;d<A.length;d++){var p=A[d],f=zw.key(i.userId,p.key.path,a);h=h.add(p.key.path.popLast()),u.push(s.put(c)),u.push(o.put(f,zw.PLACEHOLDER))}return h.forEach(function(t){u.push(i.Ut.addToCollectionParentIndex(e,t))}),e.addOnCommittedListener(function(){i.Kt[a]=l.keys()}),cC.waitFor(u).next(function(){return l})})},e.prototype.lookupMutationBatch=function(e,t){var n=this;return WC(e).get(t).next(function(e){return e?(Sy(e.userId===n.userId),PC(n.R,e)):null})},e.prototype.jt=function(e,t){var n=this;return this.Kt[t]?cC.resolve(this.Kt[t]):this.lookupMutationBatch(e,t).next(function(e){if(e){var r=e.keys();return n.Kt[t]=r,r}return null})},e.prototype.getNextMutationBatchAfterBatchId=function(e,t){var n=this,r=t+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return WC(e).$t({index:Gw.userMutationsIndex,range:i},function(e,t,i){t.userId===n.userId&&(Sy(t.batchId>=r),o=PC(n.R,t)),i.done()}).next(function(){return o}
1)},e.prototype.getHighestUnacknowledgedBatchId=function(e){var t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return WC(e).$t({index:Gw.userMutationsIndex,range:t,reverse:!0},function(e,t,r){n=t.batchId,r.done()}).next(function(){return n})},e.prototype.getAllMutationBatches=function(e){var t=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return WC(e).Nt(Gw.userMutationsIndex,n).next(function(e){return e.map(function(e){return PC(t.R,e)})})},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,r=zw.prefixForPath(this.userId,t.path),i=IDBKeyRange.lowerBound(r),o=[];return $C(e).$t({range:i},function(r,i,s){var a=r[0],l=r[2],c=Hw(r[1]);if(a===n.userId&&t.path.isEqual(c))return WC(e).get(l).next(function(e){if(!e)throw Cy();Sy(e.userId===n.userId),o.push(PC(n.R,e))});s.done()}).next(function(){return o})},e.prototype.getAllMutationBatchesAffectingDocumentKeys=function(e,t){var n=this,r=new U_(Ty),i=[];return t.forEach(function(t){var o=zw.prefixForPath(n.userId,t.path),s=IDBKeyRange.lowerBound(o),a=$C(e).$t({range:s},function(e,i,o){var s=e[0],a=e[2],l=Hw(e[1]);s===n.userId&&t.path.isEqual(l)?r=r.add(a):o.done()});i.push(a)}),cC.waitFor(i).next(function(){return n.Wt(e,r)})},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){var n=this,r=t.path,i=r.length+1,o=zw.prefixForPath(this.userId,r),s=IDBKeyRange.lowerBound(o),a=new U_(Ty);return $C(e).$t({range:s},function(e,t,o){var s=e[0],l=e[2],c=Hw(e[1]);s===n.userId&&r.isPrefixOf(c)?c.length===i&&(a=a.add(l)):o.done()}).next(function(){return n.Wt(e,a)})},e.prototype.Wt=function(e,t){var n=this,r=[],i=[];return t.forEach(function(t){i.push(WC(e).get(t).next(function(e){if(null===e)throw Cy();Sy(e.userId===n.userId),r.push(PC(n.R,e))}))}),cC.waitFor(i).next(function(){return r})},e.prototype.removeMutationBatch=function(e,t){var n=this;return qC(e.Mt,this.userId,t).next(function(r){return e.addOnCommittedListener(function(){n.Gt(t.batchId)}),cC.forEach(r,function(t){return n.referenceDelegate.markPotentiallyOrphaned(e,t)})})},e.prototype.Gt=function(e){delete this.Kt[e]},e.prototype.performConsistencyCheck=function(e){var t=this;return this.checkEmpty(e).next(function(n){if(!n)return cC.resolve();
1var r=IDBKeyRange.lowerBound(zw.prefixForUser(t.userId)),i=[];return $C(e).$t({range:r},function(e,n,r){if(e[0]===t.userId){var o=Hw(e[1]);i.push(o)}else r.done()}).next(function(){Sy(0===i.length)})})},e.prototype.containsKey=function(e,t){return zC(e,this.userId,t)},e.prototype.zt=function(e){var t=this;return YC(e).get(this.userId).next(function(e){return e||new Kw(t.userId,-1,"")})},e}();function zC(e,t,n){var r=zw.prefixForPath(t,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),s=!1;return $C(e).$t({range:o,Ft:!0},function(e,n,r){e[0]===t&&e[1]===i&&(s=!0),r.done()}).next(function(){return s})}function WC(e){return bC(e,Gw.store)}function $C(e){return bC(e,zw.store)}function YC(e){return bC(e,Kw.store)}var XC=function(){function e(e){this.Ht=e}return e.prototype.next=function(){return this.Ht+=2,this.Ht},e.Jt=function(){return new e(0)},e.Yt=function(){return new e(-1)},e}(),JC=function(){function e(e,t){this.referenceDelegate=e,this.R=t}return e.prototype.allocateTargetId=function(e){var t=this;return this.Xt(e).next(function(n){var r=new XC(n.highestTargetId);return n.highestTargetId=r.next(),t.Zt(e,n).next(function(){return n.highestTargetId})})},e.prototype.getLastRemoteSnapshotVersion=function(e){return this.Xt(e).next(function(e){return Oy.fromTimestamp(new Py(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds))})},e.prototype.getHighestSequenceNumber=function(e){return this.Xt(e).next(function(e){return e.highestListenSequenceNumber})},e.prototype.setTargetsMetadata=function(e,t,n){var r=this;return this.Xt(e).next(function(i){return i.highestListenSequenceNumber=t,n&&(i.lastRemoteSnapshotVersion=n.toTimestamp()),t>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=t),r.Zt(e,i)})},e.prototype.addTargetData=function(e,t){var n=this;return this.te(e,t).next(function(){return n.Xt(e).next(function(r){return r.targetCount+=1,n.ee(t,r),n.Zt(e,r)})})},e.prototype.updateTargetData=function(e,t){return this.te(e,t)},e.prototype.removeTargetData=function(e,t){var n=this;return this.removeMatchingKeysForTargetId(e,t.targetId).next(function(){return ZC(e).delete(t.targetId)}).next(function(){return n.Xt(e)}).next(function(t){return Sy(t.targetCount>0),t.targetCount-=1,n.Zt(e,t)})},e.prototype.removeTargets=function(e,t,n){var r=this,i=0,o=[];return ZC(e).$t(function(s,a){var l=OC(a);l.sequenceNumber<=t&&null===n.get(l.targetId)&&(i++,o.push(r.removeTargetData(e,l)))}).next(function(){return cC.waitFor(o)}).next(function(){return i})},e.prototype.forEachTarget=function(e,t){return ZC(e).$t(function(e,n){var r=OC(n);t(r)})},e.prototype.Xt=function(e){return eS(e).get(eC.key).next(function(e){return Sy(null!==e),e})},e.prototype.Zt=function(e,t){return eS(e).put(eC.key,t)},e.prototype.te=function(e,t){return ZC(e).put(FC(this.R,t))},e.prototype.ee=function(e,t){var n=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,n=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,n=!0),n},e.prototype.getTargetCount=function(e){return this.Xt(e).next(function(e){return e.targetCount})},e.prototype.getTargetData=function(e,t){var n=vb(t),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return ZC(e).$t({range:r,index:Jw.queryTargetsIndexName},function(e,n,r){var o=OC(n);yb(t,o.target)&&(i=o,r.done())}).next(function(){return i})},e.prototype.addMatchingKeys=function(e,t,n){var r=this,i=[],o=tS(e);return t.forEach(function(t){var s=Uw(t.path);i.push(o.put(new Zw(n,s))),i.push(r.referenceDelegate.addReference(e,n,t))}),cC.waitFor(i)},e.prototype.removeMatchingKeys=function(e,t,n){var r=this,i=tS(e);return cC.forEach(t,function(t){var o=Uw(t.path);return cC.waitFor([i.delete([n,o]),r.referenceDelegate.removeReference(e,n,t)])})},e.prototype.removeMatchingKeysForTargetId=function(e,t){var n=tS(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(r)},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=IDBKeyRange.bound([t],[t+1],!1,!0),r=tS(e),i=W_();return r.$t({range:n,Ft:!0},function(e,t,n){var r=Hw(e[1]),o=new Jy(r);i=i.add(o)}).next(function(){return i})},e.prototype.containsKey=function(e,t){var n=Uw(t.path),r=IDBKeyRange.bound([n],[ky(n)],!1,!0),i=0;return tS(e).$t({index:Zw.documentTargetsIndex,Ft:!0,range:r},function(e,t,n){0!==e[0]&&(i++,n.done())}).next(function(){return i>0})},e.prototype.lt=function(e,t){return ZC(e).get(t).next(function(e){return e?OC(e):null})},e}();function ZC(e){return bC(e,Jw.store)}function eS(e){return bC(e,eC.store)}function tS(e){return bC(e,Zw.store)}function nS(e){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){if(e.code!==fy.FAILED_PRECONDITION||e.message!==sC)throw e;return yy("LocalStore","Unexpectedly lost primary lease"),[2]})})}function rS(e,t){var n=e[1],r=t[1],i=Ty(e[0],t[0]);return 0===i?Ty(n,r):i}var iS=function(){function e(e){this.ne=e,this.buffer=new U_(rS),this.se=0}return e.prototype.ie=function(){return++this.se},e.prototype.re=function(e){var t=[e,this.ie()];if(this.buffer.size<this.ne)this.buffer=this.buffer.add(t);else{var n=this.buffer.last();rS(t,n)<0&&(this.buffer=this.buffer.delete(n).add(t))}},Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.buffer.last()[0]}
1,enumerable:!1,configurable:!0}),e}(),oS=function(){function e(e,t){this.garbageCollector=e,this.asyncQueue=t,this.oe=!1,this.ce=null}return e.prototype.start=function(e){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.ue(e)},e.prototype.stop=function(){this.ce&&(this.ce.cancel(),this.ce=null)},Object.defineProperty(e.prototype,"started",{get:function(){return null!==this.ce},enumerable:!1,configurable:!0}),e.prototype.ue=function(e){var t=this,n=this.oe?3e5:6e4;yy("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.ce=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",n,function(){return(0,Er.mG)(t,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:this.ce=null,this.oe=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,e.collectGarbage(this.garbageCollector)];case 2:return n.sent(),[3,7];case 3:return pC(t=n.sent())?(yy("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",t),[3,6]):[3,4];case 4:return[4,nS(t)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.ue(e)];case 8:return n.sent(),[2]}})})})},e}(),sS=function(){function e(e,t){this.ae=e,this.params=t}return e.prototype.calculateTargetCount=function(e,t){return this.ae.he(e).next(function(e){return Math.floor(t/100*e)})},e.prototype.nthSequenceNumber=function(e,t){var n=this;if(0===t)return cC.resolve(py.o);var r=new iS(t);return this.ae.forEachTarget(e,function(e){return r.re(e.sequenceNumber)}).next(function(){return n.ae.le(e,function(e){return r.re(e)})}).next(function(){return r.maxValue})},e.prototype.removeTargets=function(e,t,n){return this.ae.removeTargets(e,t,n)},e.prototype.removeOrphanedDocuments=function(e,t){return this.ae.removeOrphanedDocuments(e,t)},e.prototype.collect=function(e,t){var n=this;return-1===this.params.cacheSizeCollectionThreshold?(yy("LruGarbageCollector","Garbage collection skipped; disabled"),cC.resolve(HC)):this.getCacheSize(e).next(function(r){return r<n.params.cacheSizeCollectionThreshold?(yy("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.cacheSizeCollectionThreshold),HC):n.fe(e,t)})},e.prototype.getCacheSize=function(e){return this.ae.getCacheSize(e)},e.prototype.fe=function(e,t){var n,r,i,o,s,a,l,c=this,u=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(function(t){return t>c.params.maximumSequenceNumbersToCollect?(yy("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+c.params.maximumSequenceNumbersToCollect+" from "+t),r=c.params.maximumSequenceNumbersToCollect):r=t,o=Date.now(),c.nthSequenceNumber(e,r)}).next(function(r){return n=r,s=Date.now(),c.removeTargets(e,n,t)}).next(function(t){return i=t,a=Date.now(),c.removeOrphanedDocuments(e,n)}).next(function(e){return l=Date.now(),vy()<=af.in.DEBUG&&yy("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-u)+"ms\n\tDetermined least recently used "+r+" in "+(s-o)+"ms\n\tRemoved "+i+" targets in "+(a-s)+"ms\n\tRemoved "+e+" documents in "+(l-a)+"ms\nTotal Duration: "+(l-u)+"ms"),cC.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:e})})},e}(),aS=function(){function e(e,t){this.db=e,this.garbageCollector=function(e,t){return new sS(e,t)}(this,t)}return e.prototype.he=function(e){var t=this.de(e);return this.db.getTargetCache().getTargetCount(e).next(function(e){return t.next(function(t){return e+t})})},e.prototype.de=function(e){var t=0;return this.le(e,function(e){t++}).next(function(){return t})},e.prototype.forEachTarget=function(e,t){return this.db.getTargetCache().forEachTarget(e,t)},e.prototype.le=function(e,t){return this.we(e,function(e,n){return t(n)})},e.prototype.addReference=function(e,t,n){return lS(e,n)},e.prototype.removeReference=function(e,t,n){return lS(e,n)},e.prototype.removeTargets=function(e,t,n){return this.db.getTargetCache().removeTargets(e,t,n)},e.prototype.markPotentiallyOrphaned=function(e,t){return lS(e,t)},e.prototype._e=function(e,t){return function(e,t){var n=!1;return YC(e).Ot(function(r){return zC(e,r,t).next(function(e){return e&&(n=!0),cC.resolve(!e)})}).next(function(){return n})}(e,t)},e.prototype.removeOrphanedDocuments=function(e,t){var n=this,r=this.db.getRemoteDocumentCache().newChangeBuffer(),i=[],o=0;return this.we(e,function(s,a){if(a<=t){var l=n._e(e,s).next(function(t){if(!t)return o++,r.getEntry(e,s).next(function(){return r.removeEntry(s),tS(e).delete([0,Uw(s.path)])})});i.push(l)}}).next(function(){return cC.waitFor(i)}).next(function(){return r.apply(e)}).next(function(){return o}
1)},e.prototype.removeTarget=function(e,t){var n=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,n)},e.prototype.updateLimboDocument=function(e,t){return lS(e,t)},e.prototype.we=function(e,t){var n,r=tS(e),i=py.o;return r.$t({index:Zw.documentTargetsIndex},function(e,r){var o=r.path,s=r.sequenceNumber;0===e[0]?(i!==py.o&&t(new Jy(Hw(n)),i),i=s,n=o):i=py.o}).next(function(){i!==py.o&&t(new Jy(Hw(n)),i)})},e.prototype.getCacheSize=function(e){return this.db.getRemoteDocumentCache().getSize(e)},e}();function lS(e,t){return tS(e).put(function(e,t){return new Zw(0,Uw(e.path),t)}(t,e.currentSequenceNumber))}var cS=function(){function e(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={}}return e.prototype.get=function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],s=o[1];if(this.equalsFn(o[0],e))return s}},e.prototype.has=function(e){return void 0!==this.get(e)},e.prototype.set=function(e,t){var n=this.mapKeyFn(e),r=this.inner[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return void(r[i]=[e,t]);r.push([e,t])}else this.inner[n]=[[e,t]]},e.prototype.delete=function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),!0;return!1},e.prototype.forEach=function(e){Ly(this.inner,function(t,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];e(o[0],o[1])}})},e.prototype.isEmpty=function(){return My(this.inner)},e}(),uS=function(){function e(){this.changes=new cS(function(e){return e.toString()},function(e,t){return e.isEqual(t)}),this.changesApplied=!1}return e.prototype.getReadTime=function(e){var t=this.changes.get(e);return t?t.readTime:Oy.min()},e.prototype.addEntry=function(e,t){this.assertNotApplied(),this.changes.set(e.key,{document:e,readTime:t})},e.prototype.removeEntry=function(e,t){void 0===t&&(t=null),this.assertNotApplied(),this.changes.set(e,{document:fb.newInvalidDocument(e),readTime:t})},e.prototype.getEntry=function(e,t){this.assertNotApplied();var n=this.changes.get(t);return void 0!==n?cC.resolve(n.document):this.getFromCache(e,t)},e.prototype.getEntries=function(e,t){return this.getAllFromCache(e,t)},e.prototype.apply=function(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)},e.prototype.assertNotApplied=function(){},e}(),hS=function(){function e(e,t){this.R=e,this.Ut=t}return e.prototype.addEntry=function(e,t,n){return pS(e).put(fS(t),n)},e.prototype.removeEntry=function(e,t){var n=pS(e),r=fS(t);return n.delete(r)},e.prototype.updateMetadata=function(e,t){var n=this;return this.getMetadata(e).next(function(r){return r.byteSize+=t,n.me(e,r)})},e.prototype.getEntry=function(e,t){var n=this;return pS(e).get(fS(t)).next(function(e){return n.ye(t,e)})},e.prototype.ge=function(e,t){var n=this;return pS(e).get(fS(t)).next(function(e){return{document:n.ye(t,e),size:KC(e)}})},e.prototype.getEntries=function(e,t){var n=this,r=H_();return this.pe(e,t,function(e,t){var i=n.ye(e,t);r=r.insert(e,i)}).next(function(){return r})},e.prototype.Ee=function(e,t){var n=this,r=H_(),i=new D_(Jy.comparator);return this.pe(e,t,function(e,t){var o=n.ye(e,t);r=r.insert(e,o),i=i.insert(e,KC(t))}).next(function(){return{documents:r,Te:i}})},e.prototype.pe=function(e,t,n){if(t.isEmpty())return cC.resolve();var r=IDBKeyRange.bound(t.first().path.toArray(),t.last().path.toArray()),i=t.getIterator(),o=i.getNext();return pS(e).$t({range:r},function(e,t,r){for(var s=Jy.fromSegments(e);o&&Jy.comparator(o,s)<0;)n(o,null),o=i.getNext();o&&o.isEqual(s)&&(n(o,t),o=i.hasNext()?i.getNext():null),o?r.Ct(o.path.toArray()):r.done()}).next(function(){for(;o;)n(o,null),o=i.hasNext()?i.getNext():null})},e.prototype.getDocumentsMatchingQuery=function(e,t,n){var r=this,i=H_(),o=t.path.length+1,s={};if(n.isEqual(Oy.min())){var a=t.path.toArray();s.range=IDBKeyRange.lowerBound(a)}else{var l=t.path.toArray(),c=xC(n);s.range=IDBKeyRange.lowerBound([l,c],!0),s.index=Yw.collectionReadTimeIndex}return pS(e).$t(s,function(e,n,s){if(e.length===o){var a=EC(r.R,n);t.path.isPrefixOf(a.key.path)?Yb(t,a)&&(i=i.insert(a.key,a)):s.done()}}).next(function(){return i})},e.prototype.newChangeBuffer=function(e){return new dS(this,!!e&&e.trackRemovals)},e.prototype.getSize=function(e){return this.getMetadata(e).next(function(e){return e.byteSize})},e.prototype.getMetadata=function(e){return AS(e).get(Xw.key).next(function(e){return Sy(!!e),e})},e.prototype.me=function(e,t){return AS(e).put(Xw.key,t)},e.prototype.ye=function(e,t){if(t){var n=EC(this.R,t);if(!n.isNoDocument()||!n.version.isEqual(Oy.min()))return n}return fb.newInvalidDocument(e)},e}(),dS=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).Ie=t,r.trackRemovals=n,r.Ae=new cS(function(e){return e.toString()},function(e,t){return e.isEqual(t)}),r}return(0,Er.ZT)(t,e),t.prototype.applyChanges=function(e){var t=this,n=[],r=0,i=new U_(function(e,t){return Ty(e.canonicalString(),t.canonicalString())});
1return this.changes.forEach(function(o,s){var a=t.Ae.get(o);if(s.document.isValidDocument()){var l=IC(t.Ie.R,s.document,t.getReadTime(o));i=i.add(o.path.popLast());var c=KC(l);r+=c-a,n.push(t.Ie.addEntry(e,o,l))}else if(r-=a,t.trackRemovals){var u=IC(t.Ie.R,fb.newNoDocument(o,Oy.min()),t.getReadTime(o));n.push(t.Ie.addEntry(e,o,u))}else n.push(t.Ie.removeEntry(e,o))}),i.forEach(function(r){n.push(t.Ie.Ut.addToCollectionParentIndex(e,r))}),n.push(this.Ie.updateMetadata(e,r)),cC.waitFor(n)},t.prototype.getFromCache=function(e,t){var n=this;return this.Ie.ge(e,t).next(function(e){return n.Ae.set(t,e.size),e.document})},t.prototype.getAllFromCache=function(e,t){var n=this;return this.Ie.Ee(e,t).next(function(e){var t=e.documents;return e.Te.forEach(function(e,t){n.Ae.set(e,t)}),t})},t}(uS);function AS(e){return bC(e,Xw.store)}function pS(e){return bC(e,Yw.store)}function fS(e){return e.path.toArray()}var gS=function(){function e(e){this.R=e}return e.prototype.Rt=function(e,t,n,r){var i=this;Sy(n<r&&n>=0&&r<=11);var o=new uC("createOrUpgrade",t);n<1&&r>=1&&(function(e){e.createObjectStore(qw.store)}(e),function(e){e.createObjectStore(Kw.store,{keyPath:Kw.keyPath}),e.createObjectStore(Gw.store,{keyPath:Gw.keyPath,autoIncrement:!0}).createIndex(Gw.userMutationsIndex,Gw.userMutationsKeyPath,{unique:!0}),e.createObjectStore(zw.store)}(e),mS(e),function(e){e.createObjectStore(Yw.store)}(e));var s=cC.resolve();return n<3&&r>=3&&(0!==n&&(function(e){e.deleteObjectStore(Zw.store),e.deleteObjectStore(Jw.store),e.deleteObjectStore(eC.store)}(e),mS(e)),s=s.next(function(){return function(e){var t=e.store(eC.store),n=new eC(0,0,Oy.min().toTimestamp(),0);return t.put(eC.key,n)}(o)})),n<4&&r>=4&&(0!==n&&(s=s.next(function(){return function(e,t){return t.store(Gw.store).Nt().next(function(n){e.deleteObjectStore(Gw.store),e.createObjectStore(Gw.store,{keyPath:Gw.keyPath,autoIncrement:!0}).createIndex(Gw.userMutationsIndex,Gw.userMutationsKeyPath,{unique:!0});var r=t.store(Gw.store),i=n.map(function(e){return r.put(e)});return cC.waitFor(i)})}(e,o)})),s=s.next(function(){!function(e){e.createObjectStore(nC.store,{keyPath:nC.keyPath})}(e)})),n<5&&r>=5&&(s=s.next(function(){return i.Re(o)})),n<6&&r>=6&&(s=s.next(function(){return function(e){e.createObjectStore(Xw.store)}(e),i.be(o)})),n<7&&r>=7&&(s=s.next(function(){return i.ve(o)})),n<8&&r>=8&&(s=s.next(function(){return i.Pe(e,o)})),n<9&&r>=9&&(s=s.next(function(){!function(e){e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")}(e),function(e){var t=e.objectStore(Yw.store);t.createIndex(Yw.readTimeIndex,Yw.readTimeIndexPath,{unique:!1}),t.createIndex(Yw.collectionReadTimeIndex,Yw.collectionReadTimeIndexPath,{unique:!1})}(t)})),n<10&&r>=10&&(s=s.next(function(){return i.Ve(o)})),n<11&&r>=11&&(s=s.next(function(){!function(e){e.createObjectStore(rC.store,{keyPath:rC.keyPath})}(e),function(e){e.createObjectStore(iC.store,{keyPath:iC.keyPath})}(e)})),s},e.prototype.be=function(e){var t=0;return e.store(Yw.store).$t(function(e,n){t+=KC(n)}).next(function(){var n=new Xw(t);return e.store(Xw.store).put(Xw.key,n)})},e.prototype.Re=function(e){var t=this,n=e.store(Kw.store),r=e.store(Gw.store);return n.Nt().next(function(n){return cC.forEach(n,function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Nt(Gw.userMutationsIndex,i).next(function(r){return cC.forEach(r,function(r){Sy(r.userId===n.userId);var i=PC(t.R,r);return qC(e,n.userId,i).next(function(){})})})})})},e.prototype.ve=function(e){var t=e.store(Zw.store),n=e.store(Yw.store);return e.store(eC.store).get(eC.key).next(function(e){var r=[];return n.$t(function(n,i){var o=new Ny(n),s=function(e){return[0,Uw(e)]}(o);r.push(t.get(s).next(function(n){return n?cC.resolve():function(n){return t.put(new Zw(0,Uw(n),e.highestListenSequenceNumber))}(o)}))}).next(function(){return cC.waitFor(r)})})},e.prototype.Pe=function(e,t){e.createObjectStore(tC.store,{keyPath:tC.keyPath});var n=t.store(tC.store),r=new UC,i=function(e){if(r.add(e)){var t=e.lastSegment(),i=e.popLast();return n.put({collectionId:t,parent:Uw(i)})}};return t.store(Yw.store).$t({Ft:!0},function(e,t){var n=new Ny(e);return i(n.popLast())}).next(function(){return t.store(zw.store).$t({Ft:!0},function(e,t){var n=Hw(e[1]);return i(n.popLast())})})},e.prototype.Ve=function(e){var t=this,n=e.store(Jw.store);return n.$t(function(e,r){var i=OC(r),o=FC(t.R,i);
1return n.put(o)})},e}();function mS(e){e.createObjectStore(Zw.store,{keyPath:Zw.keyPath}).createIndex(Zw.documentTargetsIndex,Zw.documentTargetsKeyPath,{unique:!0}),e.createObjectStore(Jw.store,{keyPath:Jw.keyPath}).createIndex(Jw.queryTargetsIndexName,Jw.queryTargetsKeyPath,{unique:!0}),e.createObjectStore(eC.store)}var vS="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",yS=function(){function e(t,n,r,i,o,s,a,l,c,u){if(this.allowTabSynchronization=t,this.persistenceKey=n,this.clientId=r,this.Se=o,this.window=s,this.document=a,this.De=c,this.Ce=u,this.Ne=null,this.xe=!1,this.isPrimary=!1,this.networkEnabled=!0,this.ke=null,this.inForeground=!1,this.Fe=null,this.$e=null,this.Oe=Number.NEGATIVE_INFINITY,this.Me=function(e){return Promise.resolve()},!e.yt())throw new gy(fy.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new aS(this,i),this.Le=n+"main",this.R=new SC(l),this.Be=new hC(this.Le,11,new gS(this.R)),this.qe=new JC(this.referenceDelegate,this.R),this.Ut=new jC,this.Ue=function(e,t){return new hS(e,t)}(this.R,this.Ut),this.Ke=new MC,this.window&&this.window.localStorage?this.Qe=this.window.localStorage:(this.Qe=null,!1===u&&by("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return e.prototype.start=function(){var e=this;return this.je().then(function(){if(!e.isPrimary&&!e.allowTabSynchronization)throw new gy(fy.FAILED_PRECONDITION,vS);return e.We(),e.Ge(),e.ze(),e.runTransaction("getHighestListenSequenceNumber","readonly",function(t){return e.qe.getHighestSequenceNumber(t)})}).then(function(t){e.Ne=new py(t,e.De)}).then(function(){e.xe=!0}).catch(function(t){return e.Be&&e.Be.close(),Promise.reject(t)})},e.prototype.He=function(e){var t=this;return this.Me=function(n){return(0,Er.mG)(t,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){return this.started?[2,e(n)]:[2]})})},e(this.isPrimary)},e.prototype.setDatabaseDeletedListener=function(e){var t=this;this.Be.vt(function(n){return(0,Er.mG)(t,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return null===n.newVersion?[4,e()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})})},e.prototype.setNetworkEnabled=function(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.Se.enqueueAndForget(function(){return(0,Er.mG)(t,void 0,void 0,function(){return(0,Er.Jh)(this,function(e){switch(e.label){case 0:return this.started?[4,this.je()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})}))},e.prototype.je=function(){var e=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",function(t){return _S(t).put(new nC(e.clientId,Date.now(),e.networkEnabled,e.inForeground)).next(function(){if(e.isPrimary)return e.Je(t).next(function(t){t||(e.isPrimary=!1,e.Se.enqueueRetryable(function(){return e.Me(!1)}))})}).next(function(){return e.Ye(t)}).next(function(n){return e.isPrimary&&!n?e.Xe(t).next(function(){return!1}):!!n&&e.Ze(t).next(function(){return!0})})}).catch(function(t){if(pC(t))return yy("IndexedDbPersistence","Failed to extend owner lease: ",t),e.isPrimary;if(!e.allowTabSynchronization)throw t;return yy("IndexedDbPersistence","Releasing owner lease after error during lease refresh",t),!1}).then(function(t){e.isPrimary!==t&&e.Se.enqueueRetryable(function(){return e.Me(t)}),e.isPrimary=t})},e.prototype.Je=function(e){var t=this;return bS(e).get(qw.key).next(function(e){return cC.resolve(t.tn(e))})},e.prototype.en=function(e){return _S(e).delete(this.clientId)},e.prototype.nn=function(){return(0,Er.mG)(this,void 0,void 0,function(){var e,t,n,r=this;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:return!this.isPrimary||this.sn(this.Oe,18e5)?[3,2]:(this.Oe=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",function(e){var t=bC(e,nC.store);return t.Nt().next(function(e){var n=r.rn(e,18e5),i=e.filter(function(e){return-1===n.indexOf(e)});return cC.forEach(i,function(e){return t.delete(e.clientId)}).next(function(){return i})})}).catch(function(){return[]})]);case 1:if(e=i.sent(),this.Qe)for(t=0,n=e;t<n.length;t++)this.Qe.removeItem(this.on(n[t].clientId));i.label=2;case 2:return[2]}})})},e.prototype.ze=function(){var e=this;this.$e=this.Se.enqueueAfterDelay("client_metadata_refresh",4e3,function(){return e.je().then(function(){return e.nn()}).then(function(){return e.ze()})})},e.prototype.tn=function(e){return!!e&&e.ownerId===this.clientId},e.prototype.Ye=function(e){var t=this;return this.Ce?cC.resolve(!0):bS(e).get(qw.key).next(function(n){if(null!==n&&t.sn(n.leaseTimestampMs,5e3)&&!t.cn(n.ownerId)){if(t.tn(n)&&t.networkEnabled)return!0;
1if(!t.tn(n)){if(!n.allowTabSynchronization)throw new gy(fy.FAILED_PRECONDITION,vS);return!1}}return!(!t.networkEnabled||!t.inForeground)||_S(e).Nt().next(function(e){return void 0===t.rn(e,5e3).find(function(e){return!(t.clientId===e.clientId||!(!t.networkEnabled&&e.networkEnabled||!t.inForeground&&e.inForeground&&t.networkEnabled===e.networkEnabled))})})}).next(function(e){return t.isPrimary!==e&&yy("IndexedDbPersistence","Client "+(e?"is":"is not")+" eligible for a primary lease."),e})},e.prototype.shutdown=function(){return(0,Er.mG)(this,void 0,void 0,function(){var e=this;return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return this.xe=!1,this.un(),this.$e&&(this.$e.cancel(),this.$e=null),this.an(),this.hn(),[4,this.Be.runTransaction("shutdown","readwrite",[qw.store,nC.store],function(t){var n=new yC(t,py.o);return e.Xe(n).next(function(){return e.en(n)})})];case 1:return t.sent(),this.Be.close(),this.ln(),[2]}})})},e.prototype.rn=function(e,t){var n=this;return e.filter(function(e){return n.sn(e.updateTimeMs,t)&&!n.cn(e.clientId)})},e.prototype.fn=function(){var e=this;return this.runTransaction("getActiveClients","readonly",function(t){return _S(t).Nt().next(function(t){return e.rn(t,18e5).map(function(e){return e.clientId})})})},Object.defineProperty(e.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),e.prototype.getMutationQueue=function(e){return GC.Qt(e,this.R,this.Ut,this.referenceDelegate)},e.prototype.getTargetCache=function(){return this.qe},e.prototype.getRemoteDocumentCache=function(){return this.Ue},e.prototype.getIndexManager=function(){return this.Ut},e.prototype.getBundleCache=function(){return this.Ke},e.prototype.runTransaction=function(e,t,n){var r,i=this;return yy("IndexedDbPersistence","Starting transaction:",e),this.Be.runTransaction(e,"readonly"===t?"readonly":"readwrite",oC,function(o){return r=new yC(o,i.Ne?i.Ne.next():py.o),"readwrite-primary"===t?i.Je(r).next(function(e){return!!e||i.Ye(r)}).next(function(t){if(!t)throw by("Failed to obtain primary lease for action '"+e+"'."),i.isPrimary=!1,i.Se.enqueueRetryable(function(){return i.Me(!1)}),new gy(fy.FAILED_PRECONDITION,sC);return n(r)}).next(function(e){return i.Ze(r).next(function(){return e})}):i.dn(r).next(function(){return n(r)})}).then(function(e){return r.raiseOnCommittedEvent(),e})},e.prototype.dn=function(e){var t=this;return bS(e).get(qw.key).next(function(e){if(null!==e&&t.sn(e.leaseTimestampMs,5e3)&&!t.cn(e.ownerId)&&!t.tn(e)&&!(t.Ce||t.allowTabSynchronization&&e.allowTabSynchronization))throw new gy(fy.FAILED_PRECONDITION,vS)})},e.prototype.Ze=function(e){var t=new qw(this.clientId,this.allowTabSynchronization,Date.now());return bS(e).put(qw.key,t)},e.yt=function(){return hC.yt()},e.prototype.Xe=function(e){var t=this,n=bS(e);return n.get(qw.key).next(function(e){return t.tn(e)?(yy("IndexedDbPersistence","Releasing primary lease."),n.delete(qw.key)):cC.resolve()})},e.prototype.sn=function(e,t){var n=Date.now();return!(e<n-t||e>n&&(by("Detected an update time that is in the future: "+e+" > "+n),1))},e.prototype.We=function(){var e=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Fe=function(){e.Se.enqueueAndForget(function(){return e.inForeground="visible"===e.document.visibilityState,e.je()})},this.document.addEventListener("visibilitychange",this.Fe),this.inForeground="visible"===this.document.visibilityState)},e.prototype.an=function(){this.Fe&&(this.document.removeEventListener("visibilitychange",this.Fe),this.Fe=null)},e.prototype.Ge=function(){var e,t=this;"function"==typeof(null===(e=this.window)||void 0===e?void 0:e.addEventListener)&&(this.ke=function(){t.un(),(0,sf.G6)()&&navigator.appVersion.match("Version/14")&&t.Se.enterRestrictedMode(!0),t.Se.enqueueAndForget(function(){return t.shutdown()})},this.window.addEventListener("pagehide",this.ke))},e.prototype.hn=function(){this.ke&&(this.window.removeEventListener("pagehide",this.ke),this.ke=null)},e.prototype.cn=function(e){var t;try{var n=null!==(null===(t=this.Qe)||void 0===t?void 0:t.getItem(this.on(e)));return yy("IndexedDbPersistence","Client '"+e+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(e){return by("IndexedDbPersistence","Failed to get zombied client id.",e),!1}},e.prototype.un=function(){if(this.Qe)try{this.Qe.setItem(this.on(this.clientId),String(Date.now()))}catch(e){by("Failed to set zombie client id.",e)}},e.prototype.ln=function(){if(this.Qe)try{this.Qe.removeItem(this.on(this.clientId))}catch(e){}},e.prototype.on=function(e){return"firestore_zombie_"+this.persistenceKey+"_"+e},e}();function bS(e){return bC(e,qw.store)}function _S(e){return bC(e,nC.store)}function wS(e,t){var n=e.projectId;return e.isDefaultDatabase||(n+="."+e.database),"firestore/"+t+"/"+n+"/"}var CS=function(e,t){this.progress=e,this.wn=t},SS=function(){function e(e,t,n){this.Ue=e,this._n=t,this.Ut=n}return e.prototype.mn=function(e,t){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKey(e,t).next(function(r){return n.yn(e,t,r)})},e.prototype.yn=function(e,t,n){return this.Ue.getEntry(e,t).next(function(e){for(var t=0,r=n;t<r.length;t++)r[t].applyToLocalView(e);return e})},e.prototype.gn=function(e,t){e.forEach(function(e,n){for(var r=0,i=t;r<i.length;r++)i[r].applyToLocalView(n)})},e.prototype.pn=function(e,t){var n=this;return this.Ue.getEntries(e,t).next(function(t){return n.En(e,t).next(function(){return t})})},e.prototype.En=function(e,t){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKeys(e,t).next(function(e){return n.gn(t,e)})},e.prototype.getDocumentsMatchingQuery=function(e,t,n){return function(e){return Jy.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}
1(t)?this.Tn(e,t.path):Vb(t)?this.In(e,t,n):this.An(e,t,n)},e.prototype.Tn=function(e,t){return this.mn(e,new Jy(t)).next(function(e){var t=q_();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t})},e.prototype.In=function(e,t,n){var r=this,i=t.collectionGroup,o=q_();return this.Ut.getCollectionParents(e,i).next(function(s){return cC.forEach(s,function(s){var a=function(e,t){return new Db(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,s.child(i));return r.An(e,a,n).next(function(e){e.forEach(function(e,t){o=o.insert(e,t)})})}).next(function(){return o})})},e.prototype.An=function(e,t,n){var r,i,o=this;return this.Ue.getDocumentsMatchingQuery(e,t,n).next(function(n){return r=n,o._n.getAllMutationBatchesAffectingQuery(e,t)}).next(function(t){return o.Rn(e,i=t,r).next(function(e){r=e;for(var t=0,n=i;t<n.length;t++)for(var o=n[t],s=0,a=o.mutations;s<a.length;s++){var l=a[s],c=l.key,u=r.get(c);null==u&&(u=fb.newInvalidDocument(c),r=r.insert(c,u)),b_(l,u,o.localWriteTime),u.isFoundDocument()||(r=r.remove(c))}})}).next(function(){return r.forEach(function(e,n){Yb(t,n)||(r=r.remove(e))}),r})},e.prototype.Rn=function(e,t,n){for(var r=W_(),i=0,o=t;i<o.length;i++)for(var s=0,a=o[i].mutations;s<a.length;s++){var l=a[s];l instanceof E_&&null===n.get(l.key)&&(r=r.add(l.key))}var c=n;return this.Ue.getEntries(e,r).next(function(e){return e.forEach(function(e,t){t.isFoundDocument()&&(c=c.insert(e,t))}),c})},e}(),ES=function(){function e(e,t,n,r){this.targetId=e,this.fromCache=t,this.bn=n,this.vn=r}return e.Pn=function(t,n){for(var r=W_(),i=W_(),o=0,s=n.docChanges;o<s.length;o++){var a=s[o];switch(a.type){case 0:r=r.add(a.doc.key);break;case 1:i=i.add(a.doc.key)}}return new e(t,n.fromCache,r,i)},e}(),IS=function(){function e(){}return e.prototype.Vn=function(e){this.Sn=e},e.prototype.getDocumentsMatchingQuery=function(e,t,n,r){var i=this;return function(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}(t)||n.isEqual(Oy.min())?this.Dn(e,t):this.Sn.pn(e,r).next(function(o){var s=i.Cn(t,o);return(Ub(t)||jb(t))&&i.Nn(t.limitType,s,r,n)?i.Dn(e,t):(vy()<=af.in.DEBUG&&yy("QueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),$b(t)),i.Sn.getDocumentsMatchingQuery(e,t,n).next(function(e){return s.forEach(function(t){e=e.insert(t.key,t)}),e}))})},e.prototype.Cn=function(e,t){var n=new U_(Xb(e));return t.forEach(function(t,r){Yb(e,r)&&(n=n.add(r))}),n},e.prototype.Nn=function(e,t,n,r){if(n.size!==t.size)return!0;var i="F"===e?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)},e.prototype.Dn=function(e,t){return vy()<=af.in.DEBUG&&yy("QueryEngine","Using full collection scan to execute query:",$b(t)),this.Sn.getDocumentsMatchingQuery(e,t,Oy.min())},e}(),xS=function(){function e(e,t,n,r){this.persistence=e,this.xn=t,this.R=r,this.kn=new D_(Ty),this.Fn=new cS(function(e){return vb(e)},yb),this.$n=Oy.min(),this._n=e.getMutationQueue(n),this.On=e.getRemoteDocumentCache(),this.qe=e.getTargetCache(),this.Mn=new SS(this.On,this._n,this.persistence.getIndexManager()),this.Ke=e.getBundleCache(),this.xn.Vn(this.Mn)}return e.prototype.collectGarbage=function(e){var t=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",function(n){return e.collect(n,t.kn)})},e}();function TS(e,t,n,r){return new xS(e,t,n,r)}function BS(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,Er.Jh)(this,function(s){switch(s.label){case 0:return n=Ey(e),r=n._n,i=n.Mn,[4,n.persistence.runTransaction("Handle user change","readonly",function(e){var o;return n._n.getAllMutationBatches(e).next(function(s){return o=s,r=n.persistence.getMutationQueue(t),i=new SS(n.On,r,n.persistence.getIndexManager()),r.getAllMutationBatches(e)}).next(function(t){for(var n=[],r=[],s=W_(),a=0,l=o;a<l.length;a++){var c=l[a];n.push(c.batchId);for(var u=0,h=c.mutations;u<h.length;u++)s=s.add(h[u].key)}for(var d=0,A=t;d<A.length;d++){var p=A[d];r.push(p.batchId);for(var f=0,g=p.mutations;f<g.length;f++)s=s.add(g[f].key)}return i.pn(e,s).next(function(e){return{Ln:e,removedBatchIds:n,addedBatchIds:r}})})})];case 1:return o=s.sent(),[2,(n._n=r,n.Mn=i,n.xn.Vn(n.Mn),o)]}})})}function kS(e,t){var n=Ey(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",function(e){var r=t.batch.keys(),i=n.On.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){var i=n.batch,o=i.keys(),s=cC.resolve();return o.forEach(function(e){s=s.next(function(){return r.getEntry(t,e)}).next(function(t){var o=n.docVersions.get(e);Sy(null!==o),t.version.compareTo(o)<0&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&r.addEntry(t,n.commitVersion))})}),s.next(function(){return e._n.removeMutationBatch(t,i)})}(n,e,t,i).next(function(){return i.apply(e)}).next(function(){return n._n.performConsistencyCheck(e)}).next(function(){return n.Mn.pn(e,r)})})}function PS(e){var t=Ey(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",function(e){return t.qe.getLastRemoteSnapshotVersion(e)})}function OS(e,t){var n=Ey(e),r=t.snapshotVersion,i=n.kn;return n.persistence.runTransaction("Apply remote event","readwrite-primary",function(e){var o=n.On.newChangeBuffer({trackRemovals:!0});i=n.kn;var s=[];
1t.targetChanges.forEach(function(t,o){var a=i.get(o);if(a){s.push(n.qe.removeMatchingKeys(e,t.removedDocuments,o).next(function(){return n.qe.addMatchingKeys(e,t.addedDocuments,o)}));var l=t.resumeToken;if(l.approximateByteSize()>0){var c=a.withResumeToken(l,r).withSequenceNumber(e.currentSequenceNumber);i=i.insert(o,c),function(e,t,n){return Sy(t.resumeToken.approximateByteSize()>0),0===e.resumeToken.approximateByteSize()||t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0}(a,c,t)&&s.push(n.qe.updateTargetData(e,c))}}});var a=H_();if(t.documentUpdates.forEach(function(r,i){t.resolvedLimboDocuments.has(r)&&s.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))}),s.push(FS(e,o,t.documentUpdates,r,void 0).next(function(e){a=e})),!r.isEqual(Oy.min())){var l=n.qe.getLastRemoteSnapshotVersion(e).next(function(t){return n.qe.setTargetsMetadata(e,e.currentSequenceNumber,r)});s.push(l)}return cC.waitFor(s).next(function(){return o.apply(e)}).next(function(){return n.Mn.En(e,a)}).next(function(){return a})}).then(function(e){return n.kn=i,e})}function FS(e,t,n,r,i){var o=W_();return n.forEach(function(e){return o=o.add(e)}),t.getEntries(e,o).next(function(e){var o=H_();return n.forEach(function(n,s){var a=e.get(n),l=(null==i?void 0:i.get(n))||r;s.isNoDocument()&&s.version.isEqual(Oy.min())?(t.removeEntry(n,l),o=o.insert(n,s)):!a.isValidDocument()||s.version.compareTo(a.version)>0||0===s.version.compareTo(a.version)&&a.hasPendingWrites?(t.addEntry(s,l),o=o.insert(n,s)):yy("LocalStore","Ignoring outdated watch update for ",n,". Current version:",a.version," Watch version:",s.version)}),o})}function LS(e,t){var n=Ey(e);return n.persistence.runTransaction("Get next mutation batch","readonly",function(e){return void 0===t&&(t=-1),n._n.getNextMutationBatchAfterBatchId(e,t)})}function MS(e,t){var n=Ey(e);return n.persistence.runTransaction("Allocate target","readwrite",function(e){var r;return n.qe.getTargetData(e,t).next(function(i){return i?cC.resolve(r=i):n.qe.allocateTargetId(e).next(function(i){return r=new CC(t,i,0,e.currentSequenceNumber),n.qe.addTargetData(e,r).next(function(){return r})})})}).then(function(e){var r=n.kn.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.kn=n.kn.insert(e.targetId,e),n.Fn.set(t,e.targetId)),e})}function DS(e,t,n){return(0,Er.mG)(this,void 0,void 0,function(){var r,i,o,s;return(0,Er.Jh)(this,function(a){switch(a.label){case 0:r=Ey(e),i=r.kn.get(t),o=n?"readwrite":"readwrite-primary",a.label=1;case 1:return a.trys.push([1,4,,5]),n?[3,3]:[4,r.persistence.runTransaction("Release target",o,function(e){return r.persistence.referenceDelegate.removeTarget(e,i)})];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:if(!pC(s=a.sent()))throw s;return yy("LocalStore","Failed to update sequence numbers for target "+t+": "+s),[3,5];case 5:return r.kn=r.kn.remove(t),r.Fn.delete(i.target),[2]}})})}function NS(e,t,n){var r=Ey(e),i=Oy.min(),o=W_();return r.persistence.runTransaction("Execute query","readonly",function(e){return function(e,t,n){var r=Ey(e),i=r.Fn.get(n);return void 0!==i?cC.resolve(r.kn.get(i)):r.qe.getTargetData(t,n)}(r,e,Kb(t)).next(function(t){if(t)return i=t.lastLimboFreeSnapshotVersion,r.qe.getMatchingKeysForTargetId(e,t.targetId).next(function(e){o=e})}).next(function(){return r.xn.getDocumentsMatchingQuery(e,t,n?i:Oy.min(),n?o:W_())}).next(function(e){return{documents:e,Bn:o}})})}function RS(e,t){var n=Ey(e),r=Ey(n.qe),i=n.kn.get(t);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",function(e){return r.lt(e,t).next(function(e){return e?e.target:null})})}function US(e){var t=Ey(e);return t.persistence.runTransaction("Get new document changes","readonly",function(e){return function(e,t,n){var r=Ey(e),i=H_(),o=xC(n),s=pS(t),a=IDBKeyRange.lowerBound(o,!0);return s.$t({index:Yw.readTimeIndex,range:a},function(e,t){var n=EC(r.R,t);i=i.insert(n.key,n),o=t.readTime}).next(function(){return{wn:i,readTime:TC(o)}})}(t.On,e,t.$n)}).then(function(e){var n=e.wn;return t.$n=e.readTime,n})}function jS(e){return(0,Er.mG)(this,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(n){return[2,(t=Ey(e)).persistence.runTransaction("Synchronize last document change read time","readonly",function(e){return function(e){var t=pS(e),n=Oy.min();return t.$t({index:Yw.readTimeIndex,reverse:!0},function(e,t,r){t.readTime&&(n=TC(t.readTime)),r.done()}).next(function(){return n})}(e)}).then(function(e){t.$n=e})]})})}function QS(e,t,n,r){return(0,Er.mG)(this,void 0,void 0,function(){var i,o,s,a,l,c,u,h,d,A;return(0,Er.Jh)(this,function(p){switch(p.label){case 0:for(i=Ey(e),o=W_(),s=H_(),a=G_(),l=0,c=n;l<c.length;l++)h=t.qn((u=c[l]).metadata.name),u.document&&(o=o.add(h)),s=s.insert(h,t.
1Un(u)),a=a.insert(h,t.Kn(u.metadata.readTime));return d=i.On.newChangeBuffer({trackRemovals:!0}),[4,MS(i,function(e){return Kb(Rb(Ny.fromString("__bundle__/docs/"+e)))}(r))];case 1:return A=p.sent(),[2,i.persistence.runTransaction("Apply bundle documents","readwrite",function(e){return FS(e,d,s,Oy.min(),a).next(function(t){return d.apply(e),t}).next(function(t){return i.qe.removeMatchingKeysForTargetId(e,A.targetId).next(function(){return i.qe.addMatchingKeys(e,o,A.targetId)}).next(function(){return i.Mn.En(e,t)}).next(function(){return t})})})]}})})}function HS(e,t,n){return void 0===n&&(n=W_()),(0,Er.mG)(this,void 0,void 0,function(){var r,i;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:return[4,MS(e,Kb(LC(t.bundledQuery)))];case 1:return r=o.sent(),[2,(i=Ey(e)).persistence.runTransaction("Save named query","readwrite",function(e){var o=dw(t.readTime);if(r.snapshotVersion.compareTo(o)>=0)return i.Ke.saveNamedQuery(e,t);var s=r.withResumeToken(Qy.EMPTY_BYTE_STRING,o);return i.kn=i.kn.insert(s.targetId,s),i.qe.updateTargetData(e,s).next(function(){return i.qe.removeMatchingKeysForTargetId(e,r.targetId)}).next(function(){return i.qe.addMatchingKeys(e,n,r.targetId)}).next(function(){return i.Ke.saveNamedQuery(e,t)})})]}})})}var VS=function(){function e(e){this.R=e,this.Qn=new Map,this.jn=new Map}return e.prototype.getBundleMetadata=function(e,t){return cC.resolve(this.Qn.get(t))},e.prototype.saveBundleMetadata=function(e,t){var n;return this.Qn.set(t.id,{id:(n=t).id,version:n.version,createTime:dw(n.createTime)}),cC.resolve()},e.prototype.getNamedQuery=function(e,t){return cC.resolve(this.jn.get(t))},e.prototype.saveNamedQuery=function(e,t){return this.jn.set(t.name,function(e){return{name:e.name,query:LC(e.bundledQuery),readTime:dw(e.readTime)}}(t)),cC.resolve()},e}(),qS=function(){function e(){this.Wn=new U_(KS.Gn),this.zn=new U_(KS.Hn)}return e.prototype.isEmpty=function(){return this.Wn.isEmpty()},e.prototype.addReference=function(e,t){var n=new KS(e,t);this.Wn=this.Wn.add(n),this.zn=this.zn.add(n)},e.prototype.Jn=function(e,t){var n=this;e.forEach(function(e){return n.addReference(e,t)})},e.prototype.removeReference=function(e,t){this.Yn(new KS(e,t))},e.prototype.Xn=function(e,t){var n=this;e.forEach(function(e){return n.removeReference(e,t)})},e.prototype.Zn=function(e){var t=this,n=new Jy(new Ny([])),r=new KS(n,e),i=new KS(n,e+1),o=[];return this.zn.forEachInRange([r,i],function(e){t.Yn(e),o.push(e.key)}),o},e.prototype.ts=function(){var e=this;this.Wn.forEach(function(t){return e.Yn(t)})},e.prototype.Yn=function(e){this.Wn=this.Wn.delete(e),this.zn=this.zn.delete(e)},e.prototype.es=function(e){var t=new Jy(new Ny([])),n=new KS(t,e),r=new KS(t,e+1),i=W_();return this.zn.forEachInRange([n,r],function(e){i=i.add(e.key)}),i},e.prototype.containsKey=function(e){var t=new KS(e,0),n=this.Wn.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)},e}(),KS=function(){function e(e,t){this.key=e,this.ns=t}return e.Gn=function(e,t){return Jy.comparator(e.key,t.key)||Ty(e.ns,t.ns)},e.Hn=function(e,t){return Ty(e.ns,t.ns)||Jy.comparator(e.key,t.key)},e}(),GS=function(){function e(e,t){this.Ut=e,this.referenceDelegate=t,this._n=[],this.ss=1,this.rs=new U_(KS.Gn)}return e.prototype.checkEmpty=function(e){return cC.resolve(0===this._n.length)},e.prototype.addMutationBatch=function(e,t,n,r){var i=this.ss;this.ss++;var o=new _C(i,t,n,r);this._n.push(o);for(var s=0,a=r;s<a.length;s++){var l=a[s];this.rs=this.rs.add(new KS(l.key,i)),this.Ut.addToCollectionParentIndex(e,l.key.path.popLast())}return cC.resolve(o)},e.prototype.lookupMutationBatch=function(e,t){return cC.resolve(this.os(t))},e.prototype.getNextMutationBatchAfterBatchId=function(e,t){var n=this.cs(t+1),r=n<0?0:n;return cC.resolve(this._n.length>r?this._n[r]:null)},e.prototype.getHighestUnacknowledgedBatchId=function(){return cC.resolve(0===this._n.length?-1:this.ss-1)},e.prototype.getAllMutationBatches=function(e){return cC.resolve(this._n.slice())},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,r=new KS(t,0),i=new KS(t,Number.POSITIVE_INFINITY),o=[];
1return this.rs.forEachInRange([r,i],function(e){var t=n.os(e.ns);o.push(t)}),cC.resolve(o)},e.prototype.getAllMutationBatchesAffectingDocumentKeys=function(e,t){var n=this,r=new U_(Ty);return t.forEach(function(e){var t=new KS(e,0),i=new KS(e,Number.POSITIVE_INFINITY);n.rs.forEachInRange([t,i],function(e){r=r.add(e.ns)})}),cC.resolve(this.us(r))},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){var n=t.path,r=n.length+1,i=n;Jy.isDocumentKey(i)||(i=i.child(""));var o=new KS(new Jy(i),0),s=new U_(Ty);return this.rs.forEachWhile(function(e){var t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(s=s.add(e.ns)),!0)},o),cC.resolve(this.us(s))},e.prototype.us=function(e){var t=this,n=[];return e.forEach(function(e){var r=t.os(e);null!==r&&n.push(r)}),n},e.prototype.removeMutationBatch=function(e,t){var n=this;Sy(0===this.hs(t.batchId,"removed")),this._n.shift();var r=this.rs;return cC.forEach(t.mutations,function(i){var o=new KS(i.key,t.batchId);return r=r.delete(o),n.referenceDelegate.markPotentiallyOrphaned(e,i.key)}).next(function(){n.rs=r})},e.prototype.Gt=function(e){},e.prototype.containsKey=function(e,t){var n=new KS(t,0),r=this.rs.firstAfterOrEqual(n);return cC.resolve(t.isEqual(r&&r.key))},e.prototype.performConsistencyCheck=function(e){return cC.resolve()},e.prototype.hs=function(e,t){return this.cs(e)},e.prototype.cs=function(e){return 0===this._n.length?0:e-this._n[0].batchId},e.prototype.os=function(e){var t=this.cs(e);return t<0||t>=this._n.length?null:this._n[t]},e}
1(),zS=function(){function e(e,t){this.Ut=e,this.ls=t,this.docs=new D_(Jy.comparator),this.size=0}return e.prototype.addEntry=function(e,t,n){var r=t.key,i=this.docs.get(r),o=i?i.size:0,s=this.ls(t);return this.docs=this.docs.insert(r,{document:t.clone(),size:s,readTime:n}),this.size+=s-o,this.Ut.addToCollectionParentIndex(e,r.path.popLast())},e.prototype.removeEntry=function(e){var t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)},e.prototype.getEntry=function(e,t){var n=this.docs.get(t);return cC.resolve(n?n.document.clone():fb.newInvalidDocument(t))},e.prototype.getEntries=function(e,t){var n=this,r=H_();return t.forEach(function(e){var t=n.docs.get(e);r=r.insert(e,t?t.document.clone():fb.newInvalidDocument(e))}),cC.resolve(r)},e.prototype.getDocumentsMatchingQuery=function(e,t,n){for(var r=H_(),i=new Jy(t.path.child("")),o=this.docs.getIteratorFrom(i);o.hasNext();){var s=o.getNext(),a=s.value,l=a.document,c=a.readTime;if(!t.path.isPrefixOf(s.key.path))break;c.compareTo(n)<=0||Yb(t,l)&&(r=r.insert(l.key,l.clone()))}return cC.resolve(r)},e.prototype.fs=function(e,t){return cC.forEach(this.docs,function(e){return t(e)})},e.prototype.newChangeBuffer=function(e){return new WS(this)},e.prototype.getSize=function(e){return cC.resolve(this.size)},e}(),WS=function(e){function t(t){var n=this;return(n=e.call(this)||this).Ie=t,n}return(0,Er.ZT)(t,e),t.prototype.applyChanges=function(e){var t=this,n=[];
1return this.changes.forEach(function(r,i){i.document.isValidDocument()?n.push(t.Ie.addEntry(e,i.document,t.getReadTime(r))):t.Ie.removeEntry(r)}),cC.waitFor(n)},t.prototype.getFromCache=function(e,t){return this.Ie.getEntry(e,t)},t.prototype.getAllFromCache=function(e,t){return this.Ie.getEntries(e,t)},t}(uS),$S=function(){function e(e){this.persistence=e,this.ds=new cS(function(e){return vb(e)},yb),this.lastRemoteSnapshotVersion=Oy.min(),this.highestTargetId=0,this.ws=0,this._s=new qS,this.targetCount=0,this.ys=XC.Jt()}return e.prototype.forEachTarget=function(e,t){return this.ds.forEach(function(e,n){return t(n)}),cC.resolve()},e.prototype.getLastRemoteSnapshotVersion=function(e){return cC.resolve(this.lastRemoteSnapshotVersion)},e.prototype.getHighestSequenceNumber=function(e){return cC.resolve(this.ws)},e.prototype.allocateTargetId=function(e){return this.highestTargetId=this.ys.next(),cC.resolve(this.highestTargetId)},e.prototype.setTargetsMetadata=function(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>
1this.ws&&(this.ws=t),cC.resolve()},e.prototype.te=function(e){this.ds.set(e.target,e);var t=e.targetId;t>this.highestTargetId&&(this.ys=new XC(t),this.highestTargetId=t),e.sequenceNumber>this.ws&&(this.ws=e.sequenceNumber)},e.prototype.addTargetData=function(e,t){return this.te(t),this.targetCount+=1,cC.resolve()},e.prototype.updateTargetData=function(e,t){return this.te(t),cC.resolve()},e.prototype.removeTargetData=function(e,t){return this.ds.delete(t.target),this._s.Zn(t.targetId),this.targetCount-=1,cC.resolve()},e.prototype.removeTargets=function(e,t,n){var r=this,i=0,o=[];return this.ds.forEach(function(s,a){a.sequenceNumber<=t&&null===n.get(a.targetId)&&(r.ds.delete(s),o.push(r.removeMatchingKeysForTargetId(e,a.targetId)),i++)}),cC.waitFor(o).next(function(){return i})},e.prototype.getTargetCount=function(e){return cC.resolve(this.targetCount)},e.prototype.getTargetData=function(e,t){var n=this.ds.get(t)||null;return cC.resolve(n)},e.prototype.addMatchingKeys=function(e,t,n){return this._s.Jn(t,n),cC.resolve()},e.prototype.removeMatchingKeys=function(e,t,n){this._s.Xn(t,n);var r=this.persistence.referenceDelegate,i=[];return r&&t.forEach(function(t){i.push(r.markPotentiallyOrphaned(e,t))}),cC.waitFor(i)},e.prototype.removeMatchingKeysForTargetId=function(e,t){return this._s.Zn(t),cC.resolve()},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=this._s.es(t);return cC.resolve(n)},e.prototype.containsKey=function(e,t){return cC.resolve(this._s.containsKey(t))},e}(),YS=function(){function e(e,t){var n=this;this.gs={},this.Ne=new py(0),this.xe=!1,this.xe=!0,this.referenceDelegate=e(this),this.qe=new $S(this),this.Ut=new RC,this.Ue=function(e,t){return new zS(e,function(e){return n.referenceDelegate.ps(e)})}(this.Ut),this.R=new SC(t),this.Ke=new VS(this.R)}return e.prototype.start=function(){return Promise.resolve()},e.prototype.shutdown=function(){return this.xe=!1,Promise.resolve()},Object.defineProperty(e.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),e.prototype.setDatabaseDeletedListener=function(){},e.prototype.setNetworkEnabled=function(){},e.prototype.getIndexManager=function(){return this.Ut},e.prototype.getMutationQueue=function(e){var t=this.gs[e.toKey()];return t||(t=new GS(this.Ut,this.referenceDelegate),this.gs[e.toKey()]=t),t},e.prototype.getTargetCache=function(){return this.qe},e.prototype.getRemoteDocumentCache=function(){return this.Ue},e.prototype.getBundleCache=function(){return this.Ke},e.prototype.runTransaction=function(e,t,n){var r=this;yy("MemoryPersistence","Starting transaction:",e);var i=new XS(this.Ne.next());return this.referenceDelegate.Es(),n(i).next(function(e){return r.referenceDelegate.Ts(i).next(function(){return e})}).toPromise().then(function(e){return i.raiseOnCommittedEvent(),e})},e.prototype.Is=function(e,t){return cC.or(Object.values(this.gs).map(function(n){return function(){return n.containsKey(e,t)}}))},e}(),XS=function(e){function t(t){var n=this;return(n=e.call(this)||this).currentSequenceNumber=t,n}return(0,Er.ZT)(t,e),t}(aC),JS=function(){function e(e){this.persistence=e,this.As=new qS,this.Rs=null}return e.bs=function(t){return new e(t)},Object.defineProperty(e.prototype,"vs",{get:function(){if(this.Rs)return this.Rs;throw Cy()},enumerable:!1,configurable:!0}),e.prototype.addReference=function(e,t,n){return this.As.addReference(n,t),this.vs.delete(n.toString()),cC.resolve()},e.prototype.removeReference=function(e,t,n){return this.As.removeReference(n,t),this.vs.add(n.toString()),cC.resolve()},e.prototype.markPotentiallyOrphaned=function(e,t){return this.vs.add(t.toString()),cC.resolve()},e.prototype.removeTarget=function(e,t){var n=this;this.As.Zn(t.targetId).forEach(function(e){return n.vs.add(e.toString())});var r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,t.targetId).next(function(e){e.forEach(function(e){return n.vs.add(e.toString())})}).next(function(){return r.removeTargetData(e,t)})},e.prototype.Es=function(){this.Rs=new Set},e.prototype.Ts=function(e){var t=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return cC.forEach(this.vs,function(r){var i=Jy.fromPath(r);return t.Ps(e,i).next(function(e){e||n.removeEntry(i)})}).next(function(){return t.Rs=null,n.apply(e)})},e.prototype.updateLimboDocument=function(e,t){var n=this;return this.Ps(e,t).next(function(e){e?n.vs.delete(t.toString()):n.vs.add(t.toString())})},e.prototype.ps=function(e){return 0},e.prototype.Ps=function(e,t){var n=this;return cC.or([function(){return cC.resolve(n.As.containsKey(t))},function(){return n.persistence.getTargetCache().containsKey(e,t)},function(){return n.persistence.Is(e,t)}])},e}(),ZS=function(){function e(e){this.uid=e}return e.prototype.isAuthenticated=function(){return null!=this.uid},e.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},e.prototype.isEqual=function(e){return e.uid===this.uid},e}();function eE(e,t){return"firestore_clients_"+e+"_"+t}function tE(e,t,n){var r="firestore_mutations_"+e+"_"+n;return t.isAuthenticated()&&(r+="_"+t.uid),r}function nE(e,t){return"firestore_targets_"+e+"_"+t}ZS.UNAUTHENTICATED=new ZS(null),ZS.GOOGLE_CREDENTIALS=new ZS("google-credentials-uid"),ZS.FIRST_PARTY=new ZS("first-party-uid"),ZS.MOCK_USER=new ZS("mock-user");var rE=function(){function e(e,t,n,r){this.user=e,this.batchId=t,this.state=n,this.error=r}return e.Vs=function(t,n,r){var i,o=JSON.parse(r),s="object"==typeof o&&-1!==["pending","acknowledged","rejected"].indexOf(o.state)&&(void 0===o.error||"object"==typeof o.error);return s&&o.error&&(s="string"==typeof o.error.message&&"string"==typeof o.error.code)&&(i=new gy(o.error.code,o.error.message)),s?new e(t,n,o.state,i):(by("SharedCl
1ientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},e.prototype.Ss=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),iE=function(){function e(e,t,n){this.targetId=e,this.state=t,this.error=n}return e.Vs=function(t,n){var r,i=JSON.parse(n),o="object"==typeof i&&-1!==["not-current","current","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error);return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(r=new gy(i.error.code,i.error.message)),o?new e(t,i.state,r):(by("SharedClientState","Failed to parse target state for ID '"+t+"': "+n),null)},e.prototype.Ss=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),oE=function(){function e(e,t){this.clientId=e,this.activeTargetIds=t}return e.Vs=function(t,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Y_(),s=0;i&&s<r.activeTargetIds.length;++s)i=Xy(r.activeTargetIds[s]),o=o.add(r.activeTargetIds[s]);return i?new e(t,o):(by("SharedClientState","Failed to parse client data for instance '"+t+"': "+n),null)},e}(),sE=function(){function e(e,t){this.clientId=e,this.onlineState=t}return e.Vs=function(t){var n=JSON.parse(t);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new e(n.clientId,n.onlineState):(by("SharedClientState","Failed to parse online state: "+t),null)},e}(),aE=function(){function e(){this.activeTargetIds=Y_()}return e.prototype.Ds=function(e){this.activeTargetIds=this.activeTargetIds.add(e)},e.prototype.Cs=function(e){this.activeTargetIds=this.activeTargetIds.delete(e)},e.prototype.Ss=function(){var e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)},e}(),lE=function(){function e(e,t,n,r,i){this.window=e,this.Se=t,this.persistenceKey=n,this.Ns=r,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.xs=this.ks.bind(this),this.Fs=new D_(Ty),this.started=!1,this.$s=[];var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.Os=eE(this.persistenceKey,this.Ns),this.Ms=function(e){return"firestore_sequence_number_"+e}(this.persistenceKey),this.Fs=this.Fs.insert(this.Ns,new aE),this.Ls=new RegExp("^firestore_clients_"+o+"_([^_]*)$"),this.Bs=new RegExp("^firestore_mutations_"+o+"_(\\d+)(?:_(.*))?$"),this.qs=new RegExp("^firestore_targets_"+o+"_(\\d+)$"),this.Us=function(e){return"firestore_online_state_"+e}(this.persistenceKey),this.Ks=function(e){return"firestore_bundle_loaded_"+e}(this.persistenceKey),this.window.addEventListener("storage",this.xs)}return e.yt=function(e){return!(!e||!e.localStorage)},e.prototype.start=function(){return(0,Er.mG)(this,void 0,void 0,function(){var e,t,n,r,i,o,s,a,l,c,u=this;return(0,Er.Jh)(this,function(h){switch(h.label){case 0:return[4,this.syncEngine.fn()];case 1:for(e=h.sent(),t=0,n=e;t<n.length;t++)(r=n[t])!==this.Ns&&(i=this.getItem(eE(this.persistenceKey,r)))&&(o=oE.Vs(r,i))&&(this.Fs=this.Fs.insert(o.clientId,o));for(this.Qs(),(s=this.storage.getItem(this.Us))&&(a=this.js(s))&&this.Ws(a),l=0,c=this.$s;l<c.length;l++)this.ks(c[l]);return this.$s=[],this.window.addEventListener("pagehide",function(){return u.shutdown()}),this.started=!0,[2]}})})},e.prototype.writeSequenceNumber=function(e){this.setItem(this.Ms,JSON.stringify(e))},e.prototype.getAllActiveQueryTargets=function(){return this.Gs(this.Fs)},e.prototype.isActiveQueryTarget=function(e){var t=!1;return this.Fs.forEach(function(n,r){r.activeTargetIds.has(e)&&(t=!0)}),t},e.prototype.addPendingMutation=function(e){this.zs(e,"pending")},e.prototype.updateMutationState=function(e,t,n){this.zs(e,t,n),this.Hs(e)},e.prototype.addLocalQueryTarget=function(e){var t="not-current";if(this.isActiveQueryTarget(e)){var n=this.storage.getItem(nE(this.persistenceKey,e));if(n){var r=iE.Vs(e,n);r&&(t=r.state)}}return this.Js.Ds(e),this.Qs(),t},e.prototype.removeLocalQueryTarget=function(e){this.Js.Cs(e),this.Qs()},e.prototype.isLocalQueryTarget=function(e){return this.Js.activeTargetIds.has(e)},e.prototype.clearQueryState=function(e){this.removeItem(nE(this.persistenceKey,e))}
1,e.prototype.updateQueryState=function(e,t,n){this.Ys(e,t,n)},e.prototype.handleUserChange=function(e,t,n){var r=this;t.forEach(function(e){r.Hs(e)}),this.currentUser=e,n.forEach(function(e){r.addPendingMutation(e)})},e.prototype.setOnlineState=function(e){this.Xs(e)},e.prototype.notifyBundleLoaded=function(){this.Zs()},e.prototype.shutdown=function(){this.started&&(this.window.removeEventListener("storage",this.xs),this.removeItem(this.Os),this.started=!1)},e.prototype.getItem=function(e){var t=this.storage.getItem(e);return yy("SharedClientState","READ",e,t),t},e.prototype.setItem=function(e,t){yy("SharedClientState","SET",e,t),this.storage.setItem(e,t)},e.prototype.removeItem=function(e){yy("SharedClientState","REMOVE",e),this.storage.removeItem(e)},e.prototype.ks=function(e){var t=this,n=e;if(n.storageArea===this.storage){if(yy("SharedClientState","EVENT",n.key,n.newValue),n.key===this.Os)return void by("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Se.enqueueRetryable(function(){return(0,Er.mG)(t,void 0,void 0,function(){var e,t,r,i,o,s;return(0,Er.Jh)(this,function(a){if(this.started){if(null!==n.key)if(this.Ls.test(n.key)){if(null==n.newValue)return e=this.ti(n.key),[2,this.ei(e,null)];if(t=this.ni(n.key,n.newValue))return[2,this.ei(t.clientId,t)]}else if(this.Bs.test(n.key)){if(null!==n.newValue&&(r=this.si(n.key,n.newValue)))return[2,this.ii(r)]}else if(this.qs.test(n.key)){if(null!==n.newValue&&(i=this.ri(n.key,n.newValue)))return[2,this.oi(i)]}else if(n.key===this.Us){if(null!==n.newValue&&(o=this.js(n.newValue)))return[2,this.Ws(o)]}else if(n.key===this.Ms)(s=function(e){var t=py.o;if(null!=e)try{var n=JSON.parse(e);Sy("number"==typeof n),t=n}catch(e){by("SharedClientState","Failed to read sequence number from WebStorage",e)}return t}(n.newValue))!==py.o&&this.sequenceNumberHandler(s);else if(n.key===this.Ks)return[2,this.syncEngine.ci()]}else this.$s.push(n);return[2]})})})}},Object.defineProperty(e.prototype,"Js",{get:function(){return this.Fs.get(this.Ns)},enumerable:!1,configurable:!0}),e.prototype.Qs=function(){this.setItem(this.Os,this.Js.Ss())},e.prototype.zs=function(e,t,n){var r=new rE(this.currentUser,e,t,n),i=tE(this.persistenceKey,this.currentUser,e);this.setItem(i,r.Ss())},e.prototype.Hs=function(e){var t=tE(this.persistenceKey,this.currentUser,e);this.removeItem(t)},e.prototype.Xs=function(e){this.storage.setItem(this.Us,JSON.stringify({clientId:this.Ns,onlineState:e}))},e.prototype.Ys=function(e,t,n){var r=nE(this.persistenceKey,e),i=new iE(e,t,n);this.setItem(r,i.Ss())},e.prototype.Zs=function(){this.setItem(this.Ks,"value-not-used")},e.prototype.ti=function(e){var t=this.Ls.exec(e);return t?t[1]:null},e.prototype.ni=function(e,t){var n=this.ti(e);return oE.Vs(n,t)},e.prototype.si=function(e,t){var n=this.Bs.exec(e),r=Number(n[1]);return rE.Vs(new ZS(void 0!==n[2]?n[2]:null),r,t)},e.prototype.ri=function(e,t){var n=this.qs.exec(e),r=Number(n[1]);return iE.Vs(r,t)}
1,e.prototype.js=function(e){return sE.Vs(e)},e.prototype.ii=function(e){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){return e.user.uid===this.currentUser.uid?[2,this.syncEngine.ui(e.batchId,e.state,e.error)]:(yy("SharedClientState","Ignoring mutation for non-active user "+e.user.uid),[2])})})},e.prototype.oi=function(e){return this.syncEngine.ai(e.targetId,e.state,e.error)},e.prototype.ei=function(e,t){var n=this,r=t?this.Fs.insert(e,t):this.Fs.remove(e),i=this.Gs(this.Fs),o=this.Gs(r),s=[],a=[];return o.forEach(function(e){i.has(e)||s.push(e)}),i.forEach(function(e){o.has(e)||a.push(e)}),this.syncEngine.hi(s,a).then(function(){n.Fs=r})},e.prototype.Ws=function(e){this.Fs.get(e.clientId)&&this.onlineStateHandler(e.onlineState)},e.prototype.Gs=function(e){var t=Y_();return e.forEach(function(e,n){t=t.unionWith(n.activeTargetIds)}),t},e}(),cE=function(){function e(){this.li=new aE,this.fi={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}return e.prototype.addPendingMutation=function(e){},e.prototype.updateMutationState=function(e,t,n){},e.prototype.addLocalQueryTarget=function(e){return this.li.Ds(e),this.fi[e]||"not-current"},e.prototype.updateQueryState=function(e,t,n){this.fi[e]=t},e.prototype.removeLocalQueryTarget=function(e){this.li.Cs(e)},e.prototype.isLocalQueryTarget=function(e){return this.li.activeTargetIds.has(e)},e.prototype.clearQueryState=function(e){delete this.fi[e]},e.prototype.getAllActiveQueryTargets=function(){return this.li.activeTargetIds},e.prototype.isActiveQueryTarget=function(e){return this.li.activeTargetIds.has(e)},e.prototype.start=function(){return this.li=new aE,Promise.resolve()},e.prototype.handleUserChange=function(e,t,n){},e.prototype.setOnlineState=function(e){},e.prototype.shutdown=function(){},e.prototype.writeSequenceNumber=function(e){},e.prototype.notifyBundleLoaded=function(){},e}(),uE=function(){function e(){}return e.prototype.di=function(e){},e.prototype.shutdown=function(){},e}(),hE=function(){function e(){var e=this;this.wi=function(){return e._i()},this.mi=function(){return e.yi()},this.gi=[],this.pi()}return e.prototype.di=function(e){this.gi.push(e)},e.prototype.shutdown=function(){window.removeEventListener("online",this.wi),window.removeEventListener("offline",this.mi)},e.prototype.pi=function(){window.addEventListener("online",this.wi),window.addEventListener("offline",this.mi)},e.prototype._i=function(){yy("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var e=0,t=this.gi;e<t.length;e++)(0,t[e])(0)},e.prototype.yi=function(){yy("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var e=0,t=this.gi;e<t.length;e++)(0,t[e])(1)},e.yt=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},e}(),dE={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},AE=function(){function e(e){this.Ei=e.Ei,this.Ti=e.Ti}return e.prototype.Ii=function(e){this.Ai=e},e.prototype.Ri=function(e){this.bi=e},e.prototype.onMessage=function(e){this.vi=e},e.prototype.close=function(){this.Ti()},e.prototype.send=function(e){this.Ei(e)},e.prototype.Pi=function(){this.Ai()},e.prototype.Vi=function(e){this.bi(e)},e.prototype.Si=function(e){this.vi(e)},e}(),pE=function(e){function t(t){var n=this;return(n=e.call(this,t)||this).forceLongPolling=t.forceLongPolling,n.autoDetectLongPolling=t.autoDetectLongPolling,n.useFetchStreams=t.useFetchStreams,n}return(0,Er.ZT)(t,e),t.prototype.Fi=function(e,t,n,r){return new Promise(function(i,o){var s=new Ay;s.listenOnce(cy.COMPLETE,function(){try{switch(s.getLastErrorCode()){case ly.NO_ERROR:var t=s.getResponseJson();yy("Connection","XHR received:",JSON.stringify(t)),i(t);break;case ly.TIMEOUT:yy("Connection",'RPC "'+e+'" timed out'),o(new gy(fy.DEADLINE_EXCEEDED,"Request time out"));break;case ly.HTTP_ERROR:var n=s.getStatus();if(yy("Connection",'RPC "'+e+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var r=s.getResponseJson().error;if(r&&r.status&&r.message){var a=function(e){var t=e.toLowerCase().replace(/_/g,"-");return Object.values(fy).indexOf(t)>=0?t:fy.UNKNOWN}(r.status);o(new gy(a,r.message))}else o(new gy(fy.UNKNOWN,"Server responded with status "+s.getStatus()))}else o(new gy(fy.UNAVAILABLE,"Connection failed."));break;default:Cy()}}finally{yy("Connection",'RPC "'+e+'" completed.')}});var a=JSON.stringify(r);s.send(t,"POST",a,n,15)})},t.prototype.Oi=function(e,t){var n=[this.Di,"/","google.firestore.v1.Firestore","/",e,"/channel"],r=new ry,i=Xg(),o={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database}
1,sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(o.xmlHttpFactory=new hy({})),this.ki(o.initMessageHeaders,t),(0,sf.uI)()||(0,sf.b$)()||(0,sf.d)()||(0,sf.w1)()||(0,sf.Mn)()||(0,sf.ru)()||(o.httpHeadersOverwriteParam="$httpHeaders");var s=n.join("");yy("Connection","Creating WebChannel: "+s,o);var a=r.createWebChannel(s,o),l=!1,c=!1,u=new AE({Ei:function(e){c?yy("Connection","Not sending because WebChannel is closed:",e):(l||(yy("Connection","Opening WebChannel transport."),a.open(),l=!0),yy("Connection","WebChannel sending:",e),a.send(e))},Ti:function(){return a.close()}}),h=function(e,t,n){e.listen(t,function(e){try{n(e)}catch(e){setTimeout(function(){throw e},0)}})};return h(a,dy.EventType.OPEN,function(){c||yy("Connection","WebChannel transport opened.")}),h(a,dy.EventType.CLOSE,function(){c||(c=!0,yy("Connection","WebChannel transport closed"),u.Vi())}),h(a,dy.EventType.ERROR,function(e){c||(c=!0,_y("Connection","WebChannel transport errored:",e),u.Vi(new gy(fy.UNAVAILABLE,"The operation could not be completed")))}),h(a,dy.EventType.MESSAGE,function(e){var t;if(!c){var n=e.data[0];Sy(!!n);var r=n.error||(null===(t=n[0])||void 0===t?void 0:t.error);if(r){yy("Connection","WebChannel received error:",r);var i=r.status,o=function(e){var t=B_[e];if(void 0!==t)return M_(t)}(i),s=r.message;void 0===o&&(o=fy.INTERNAL,s="Unknown error status: "+i+" with message "+r.message),c=!0,u.Vi(new gy(o,s)),a.close()}else yy("Connection","WebChannel received:",n),u.Si(n)}}),h(i,uy.STAT_EVENT,function(e){10===e.stat?yy("Connection","Detected buffering proxy"):11===e.stat&&yy("Connection","Detected no buffering proxy")}),setTimeout(function(){u.Pi()},0),u},t}(function(){function e(e){this.databaseInfo=e,this.databaseId=e.databaseId,this.Di=(e.ssl?"https":"http")+"://"+e.host,this.Ci="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return e.prototype.Ni=function(e,t,n,r){var i=this.xi(e,t);yy("RestConnection","Sending: ",i,n);var o={};return this.ki(o,r),this.Fi(e,i,o,n).then(function(e){return yy("RestConnection","Received: ",e),e},function(t){throw _y("RestConnection",e+" failed with error: ",t,"url: ",i,"request:",n),t})},e.prototype.$i=function(e,t,n,r){return this.Ni(e,t,n,r)},e.prototype.ki=function(e,t){if(e["X-Goog-Api-Client"]="gl-js/ fire/8.10.0",e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t)for(var n in t.authHeaders)t.authHeaders.hasOwnProperty(n)&&(e[n]=t.authHeaders[n])},e.prototype.xi=function(e,t){return this.Di+"/v1/"+t+":"+dE[e]},e}());function fE(){return"undefined"!=typeof window?window:null}function gE(){return"undefined"!=typeof document?document:null}function mE(e){return new lw(e,!0)}var vE=function(){function e(e,t,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.Se=e,this.timerId=t,this.Mi=n,this.Li=r,this.Bi=i,this.qi=0,this.Ui=null,this.Ki=Date.now(),this.reset()}return e.prototype.reset=function(){this.qi=0},e.prototype.Qi=function(){this.qi=this.Bi},e.prototype.ji=function(e){var t=this;this.cancel();var n=Math.floor(this.qi+this.Wi()),r=Math.max(0,Date.now()-this.Ki),i=Math.max(0,n-r);i>0&&yy("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.qi+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.Ui=this.Se.enqueueAfterDelay(this.timerId,i,function(){return t.Ki=Date.now(),e()}),this.qi*=this.Li,this.qi<this.Mi&&(this.qi=this.Mi),this.qi>this.Bi&&(this.qi=this.Bi)},e.prototype.Gi=function(){null!==this.Ui&&(this.Ui.skipDelay(),this.Ui=null)},e.prototype.cancel=function(){null!==this.Ui&&(this.Ui.cancel(),this.Ui=null)},e.prototype.Wi=function(){return(Math.random()-.5)*this.qi},e}(),yE=function(){function e(e,t,n,r,i,o){this.Se=e,this.zi=n,this.Hi=r,this.Ji=i,this.listener=o,this.state=0,this.Yi=0,this.Xi=null,this.stream=null,this.Zi=new vE(e,t)}return e.prototype.tr=function(){return 1===this.state||2===this.state||4===this.state},e.prototype.er=function(){return 2===this.state},e.prototype.start=function(){3!==this.state?this.auth():this.nr()},e.prototype.stop=function(){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(e){switch(e.label){case 0:return this.tr()?[4,this.close(0)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.sr=function(){this.state=0,this.Zi.reset()},e.prototype.ir=function(){var e=this;this.er()&&null===this.Xi&&(this.Xi=this.Se.enqueueAfterDelay(this.zi,6e4,function(){return e.rr()}))},e.prototype.cr=function(e){this.ur(),this.stream.send(e)},e.prototype.rr=function(){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(e){return this.er()?[2,this.close(0)]:[2]})})},e.prototype.ur=function(){this.Xi&&(this.Xi.cancel(),this.Xi=null)},e.prototype.close=function(e,t){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return this.ur(),this.Zi.cancel(),this.Yi++,3!==e?this.Zi.reset():t&&t.code===fy.RESOURCE_EXHAUSTED?(by(t.toString()),by("Using maximum backoff delay to prevent overloading the backend."),this.Zi.Qi()):t&&t.code===fy.UNAUTHENTICATED&&this.Ji.invalidateToken(),null!==this.stream&&(this.ar(),this.stream.close(),this.stream=null),this.state=e,[4,this.listener.Ri(t)];case 1:return n.sent(),[2]}})})},e.prototype.ar=function(){},e.prototype.auth=function(){var e=this;this.state=1;var t=this.hr(this.Yi),n=this.Yi;this.Ji.getToken().then(function(t){e.Yi===n&&e.lr(t)},function(n){t(function(){var t=new gy(fy.UNKNOWN,"Fetching auth token failed: "+n.message);return e.dr(t)})})},e.prototype.lr=function(e){var t=this,n=this.hr(this.Yi);this.stream=this.wr(e),this.stream.Ii(function(){n(function(){return t.state=2,t.listener.Ii()})}),this.stream.Ri(function(e){n(function(){return t.dr(e)})}),this.stream.onMessage(function(e){n(function(){return t.onMessage(e)})})},e.prototype.nr=function(){var e=this;this.state=4,this.Zi.ji(function(){return(0,Er.mG)(e,void 0,void 0,function(){return(0,Er.Jh)(this,function(e){return this.state=0,this.start(),[2]})})})},e.prototype.dr=function(e){return yy("PersistentStream","close with error: "+e),this.stream=null,this.close(3,e)},e.prototype.hr=function(e){var t=this;return function(n){t.Se.enqueueAndForget(function(){return t.Yi===e?n():(yy("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())})}},e}(),bE=function(e){function t(t,n,r,i,o){var s=this;return(s=e.call(this,t,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).R=i,s}return(0,Er.ZT)(t,e),t.prototype.wr=function(e){return this.Hi.Oi("Listen",e)},t.prototype.onMessage=function(e){this.Zi.reset();var t=function(e,t){var n;if("targetChange"in t){var r=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:Cy()}(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],o=function(e,t){return e.I?(Sy(void 0===t||"string"==typeof t),Qy.fromBase64String(t||"")):(Sy(void 0===t||t instanceof Uint8Array),Qy.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),s=(a=t.targetChange.cause)&&function(e){var t=void 0===e.code?fy.UNKNOWN:M_(e.code);return new gy(t,e.message||"")}(a);n=new tw(r,i,o,s||null)}else if("documentChange"in t){i=gw(e,(r=t.documentChange).document.name),o=dw(r.document.updateTime);var a=new Ab({mapValue:{fields:r.document.fields}}),l=(s=fb.newFoundDocument(i,o,a),r.targetIds||[]);n=new Z_(l,r.removedTargetIds||[],s.key,s)}else if("documentDelete"in t)i=gw(e,(r=t.documentDelete).document),o=r.readTime?dw(r.readTime):Oy.min(),a=fb.newNoDocument(i,o),n=new Z_([],s=r.removedTargetIds||[],a.key,a);else if("documentRemove"in t)i=gw(e,(r=t.documentRemove).document),n=new Z_([],o=r.removedTargetIds||[],i,null);else{if(!("filter"in t))return Cy();var c=t.filter;i=new F_(r=c.count||0),n=new ew(o=c.targetId,i)}return n}(this.R,e),n=function(e){if(!("targetChange"in e))return Oy.min();var t=e.targetChange;return t.targetIds&&t.targetIds.length?Oy.min():t.readTime?dw(t.readTime):Oy.min()}(e);return this.listener._r(t,n)},t.prototype.mr=function(e){var t={};t.database=yw(this.R),t.addTarget=function(e,t){var n,r=t.target;return(n=bb(r)?{documents:Ew(e,r)}:{query:Iw(e,r)}).targetId=t.targetId,t.resumeToken.approximateByteSize()>0?n.resumeToken=uw(e,t.resumeToken):t.snapshotVersion.compareTo(Oy.min())>0&&(n.readTime=cw(e,t.snapshotVersion.toTimestamp())),n}(this.R,e);var n=function(e,t){var n=function(e,t){switch(t){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return Cy()}}(0,t.purpose);return null==n?null:{"goog-listen-tags":n}}(0,e);n&&(t.labels=n),this.cr(t)},t.prototype.yr=function(e){var t={};t.database=yw(this.R),t.removeTarget=e,this.cr(t)},t}(yE),_E=function(e){function t(t,n,r,i,o){var s=this;return(s=e.call(this,t,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).R=i,s.gr=!1,s}return(0,Er.ZT)(t,e),Object.defineProperty(t.prototype,"pr",{get:function(){return this.gr}
1,enumerable:!1,configurable:!0}),t.prototype.start=function(){this.gr=!1,this.lastStreamToken=void 0,e.prototype.start.call(this)},t.prototype.ar=function(){this.gr&&this.Er([])},t.prototype.wr=function(e){return this.Hi.Oi("Write",e)},t.prototype.onMessage=function(e){if(Sy(!!e.streamToken),this.lastStreamToken=e.streamToken,this.gr){this.Zi.reset();var t=function(e,t){return e&&e.length>0?(Sy(void 0!==t),e.map(function(e){return function(e,t){var n=dw(e.updateTime?e.updateTime:t);return n.isEqual(Oy.min())&&(n=dw(t)),new f_(n,e.transformResults||[])}(e,t)})):[]}(e.writeResults,e.commitTime),n=dw(e.commitTime);return this.listener.Tr(n,t)}return Sy(!e.writeResults||0===e.writeResults.length),this.gr=!0,this.listener.Ir()},t.prototype.Ar=function(){var e={};e.database=yw(this.R),this.cr(e)},t.prototype.Er=function(e){var t=this,n={streamToken:this.lastStreamToken,writes:e.map(function(e){return Cw(t.R,e)})};this.cr(n)},t}(yE),wE=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).credentials=t,i.Hi=n,i.R=r,i.Rr=!1,i}return(0,Er.ZT)(t,e),t.prototype.br=function(){if(this.Rr)throw new gy(fy.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.Ni=function(e,t,n){var r=this;return this.br(),this.credentials.getToken().then(function(i){return r.Hi.Ni(e,t,n,i)}).catch(function(e){throw"FirebaseError"===e.name?(e.code===fy.UNAUTHENTICATED&&r.credentials.invalidateToken(),e):new gy(fy.UNKNOWN,e.toString())})},t.prototype.$i=function(e,t,n){var r=this;return this.br(),this.credentials.getToken().then(function(i){return r.Hi.$i(e,t,n,i)}).catch(function(e){throw"FirebaseError"===e.name?(e.code===fy.UNAUTHENTICATED&&r.credentials.invalidateToken(),e):new gy(fy.UNKNOWN,e.toString())})},t.prototype.terminate=function(){this.Rr=!0},t}(function(){}),CE=function(){function e(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.vr=0,this.Pr=null,this.Vr=!0}return e.prototype.Sr=function(){var e=this;0===this.vr&&(this.Dr("Unknown"),this.Pr=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,function(){return e.Pr=null,e.Cr("Backend didn't respond within 10 seconds."),e.Dr("Offline"),Promise.resolve()}))},e.prototype.Nr=function(e){"Online"===this.state?this.Dr("Unknown"):(this.vr++,this.vr>=1&&(this.kr(),this.Cr("Connection failed 1 times. Most recent error: "+e.toString()),this.Dr("Offline")))},e.prototype.set=function(e){this.kr(),this.vr=0,"Online"===e&&(this.Vr=!1),this.Dr(e)},e.prototype.Dr=function(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))},e.prototype.Cr=function(e){var t="Could not reach Cloud Firestore backend. "+e+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.Vr?(by(t),this.Vr=!1):yy("OnlineStateTracker",t)},e.prototype.kr=function(){null!==this.Pr&&(this.Pr.cancel(),this.Pr=null)},e}(),SE=function(e,t,n,r,i){var o=this;this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.Fr=[],this.$r=new Map,this.Or=new Set,this.Mr=[],this.Lr=i,this.Lr.di(function(e){n.enqueueAndForget(function(){return(0,Er.mG)(o,void 0,void 0,function(){return(0,Er.Jh)(this,function(e){switch(e.label){case 0:return FE(this)?(yy("RemoteStore","Restarting streams for network reachability change."),[4,function(e){return(0,Er.mG)(this,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return(t=Ey(e)).Or.add(4),[4,IE(t)];case 1:return n.sent(),t.Br.set("Unknown"),t.Or.delete(4),[4,EE(t)];case 2:return n.sent(),[2]}})})}(this)]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})})}),this.Br=new CE(n,r)};function EE(e){return(0,Er.mG)(this,void 0,void 0,function(){var t,n;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:if(!FE(e))return[3,4];t=0,n=e.Mr,r.label=1;case 1:return t<n.length?[4,(0,n[t])(!0)]:[3,4];case 2:r.sent(),r.label=3;case 3:return t++,[3,1];case 4:return[2]}})})}function IE(e){return(0,Er.mG)(this,void 0,void 0,function(){var t,n;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:t=0,n=e.Mr,r.label=1;case 1:return t<n.length?[4,(0,n[t])(!1)]:[3,4];case 2:r.sent(),r.label=3;case 3:return t++,[3,1];case 4:return[2]}})})}function xE(e,t){var n=Ey(e);n.$r.has(t.targetId)||(n.$r.set(t.targetId,t),OE(n)?PE(n):WE(n).er()&&BE(n,t))}function TE(e,t){var n=Ey(e),r=WE(n);n.$r.delete(t),r.er()&&kE(n,t),0===n.$r.size&&(r.er()?r.ir():FE(n)&&n.Br.set("Unknown"))}function BE(e,t){e.qr.U(t.targetId),WE(e).mr(t)}function kE(e,t){e.qr.U(t),WE(e).yr(t)}function PE(e){e.qr=new rw({getRemoteKeysForTarget:function(t){return e.remoteSyncer.getRemoteKeysForTarget(t)},lt:function(t){return e.$r.get(t)||null}}),WE(e).start(),e.Br.Sr()}function OE(e){return FE(e)&&!WE(e).tr()&&e.$r.size>0}function FE(e){return 0===Ey(e).Or.size}function LE(e){e.qr=void 0}function ME(e){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){return e.$r.forEach(function(t,n){BE(e,t)}),[2]})})}function DE(e,t){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(n){return LE(e),OE(e)?(e.Br.Nr(t),PE(e)):e.Br.set("Unknown"),[2]})})}function NE(e,t,n){return(0,Er.mG)(this,void 0,void 0,function(){var r,i,o;return(0,Er.Jh)(this,function(s){switch(s.label){case 0:if(e.Br.set("Online"),!(t instanceof tw&&2===t.state&&t.cause))return[3,6];s.label=1;case 1:return s.trys.push([1,3,,5]),[4,function(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i,o;return(0,Er.Jh)(this,function(s){switch(s.label){case 0:n=t.cause,r=0,i=t.targetIds,s.label=1;case 1:return r<i.length?e.$r.has(o=i[r])?[4,e.remoteSyncer.rejectListen(o,n)]:[3,3]:[3,5];case 2:s.sent(),e.$r.delete(o),e.qr.removeTarget(o),s.label=3;case 3:s.label=4;case 4:return r++,[3,1];case 5:return[2]}})})}(e,t)];case 2:return s.sent(),[3,5];case 3:return r=s.sent(),yy("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),r),[4,RE(e,r)];case 4:return s.sent(),[3,5];case 5:return[3,13];case 6:if(t instanceof Z_?e.qr.X(t):t instanceof ew?e.qr.rt(t):e.qr.et(t),n.isEqual(Oy.min()))return[3,13];s.label=7;case 7:return s.trys.push([7,11,,13]),[4,PS(e.localStore)];case 8:return i=s.sent(),n.compareTo(i)>=0?[4,function(e,t){var n=e.qr.ut(t);
1return n.targetChanges.forEach(function(n,r){if(n.resumeToken.approximateByteSize()>0){var i=e.$r.get(r);i&&e.$r.set(r,i.withResumeToken(n.resumeToken,t))}}),n.targetMismatches.forEach(function(t){var n=e.$r.get(t);if(n){e.$r.set(t,n.withResumeToken(Qy.EMPTY_BYTE_STRING,n.snapshotVersion)),kE(e,t);var r=new CC(n.target,t,1,n.sequenceNumber);BE(e,r)}}),e.remoteSyncer.applyRemoteEvent(n)}(e,n)]:[3,10];case 9:s.sent(),s.label=10;case 10:return[3,13];case 11:return yy("RemoteStore","Failed to raise snapshot:",o=s.sent()),[4,RE(e,o)];case 12:return s.sent(),[3,13];case 13:return[2]}})})}function RE(e,t,n){return(0,Er.mG)(this,void 0,void 0,function(){var r=this;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:if(!pC(t))throw t;return e.Or.add(1),[4,IE(e)];case 1:return i.sent(),e.Br.set("Offline"),n||(n=function(){return PS(e.localStore)}),e.asyncQueue.enqueueRetryable(function(){return(0,Er.mG)(r,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return yy("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return t.sent(),e.Or.delete(1),[4,EE(e)];case 2:return t.sent(),[2]}})})}),[2]}})})}function UE(e,t){return t().catch(function(n){return RE(e,n,t)})}function jE(e){return(0,Er.mG)(this,void 0,void 0,function(){var t,n,r,i,o;return(0,Er.Jh)(this,function(s){switch(s.label){case 0:t=Ey(e),n=$E(t),r=t.Fr.length>0?t.Fr[t.Fr.length-1].batchId:-1,s.label=1;case 1:if(!function(e){return FE(e)&&e.Fr.length<10}(t))return[3,7];s.label=2;case 2:return s.trys.push([2,4,,6]),[4,LS(t.localStore,r)];case 3:return null===(i=s.sent())?(0===t.Fr.length&&n.ir(),[3,7]):(r=i.batchId,function(e,t){e.Fr.push(t);var n=$E(e);n.er()&&n.pr&&n.Er(t.mutations)}(t,i),[3,6]);case 4:return o=s.sent(),[4,RE(t,o)];case 5:return s.sent(),[3,6];case 6:return[3,1];case 7:return QE(t)&&HE(t),[2]}})})}function QE(e){return FE(e)&&!$E(e).tr()&&e.Fr.length>0}function HE(e){$E(e).start()}function VE(e){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){return $E(e).Ar(),[2]})})}function qE(e){return(0,Er.mG)(this,void 0,void 0,function(){var t,n,r;return(0,Er.Jh)(this,function(i){for(t=$E(e),n=0,r=e.Fr;n<r.length;n++)t.Er(r[n].mutations);return[2]})})}function KE(e,t,n){return(0,Er.mG)(this,void 0,void 0,function(){var r,i;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:return r=e.Fr.shift(),i=wC.from(r,t,n),[4,UE(e,function(){return e.remoteSyncer.applySuccessfulWrite(i)})];case 1:return o.sent(),[4,jE(e)];case 2:return o.sent(),[2]}})})}function GE(e,t){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return t&&$E(e).pr?[4,function(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:return L_(r=t.code)&&r!==fy.ABORTED?(n=e.Fr.shift(),$E(e).sr(),[4,UE(e,function(){return e.remoteSyncer.rejectFailedWrite(n.batchId,t)})]):[3,3];case 1:return i.sent(),[4,jE(e)];case 2:i.sent(),i.label=3;case 3:return[2]}})})}(e,t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return QE(e)&&HE(e),[2]}})})}function zE(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:return n=Ey(e),t?(n.Or.delete(2),[4,EE(n)]):[3,2];case 1:return r.sent(),[3,5];case 2:return t?[3,4]:(n.Or.add(2),[4,IE(n)]);case 3:r.sent(),n.Br.set("Unknown"),r.label=4;case 4:r.label=5;case 5:return[2]}})})}function WE(e){var t=this;return e.Ur||(e.Ur=function(e,t,n){var r=Ey(e);return r.br(),new bE(t,r.Hi,r.credentials,r.R,n)}(e.datastore,e.asyncQueue,{Ii:ME.bind(null,e),Ri:DE.bind(null,e),_r:NE.bind(null,e)}),e.Mr.push(function(n){return(0,Er.mG)(t,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return n?(e.Ur.sr(),OE(e)?PE(e):e.Br.set("Unknown"),[3,3]):[3,1];case 1:return[4,e.Ur.stop()];case 2:t.sent(),LE(e),t.label=3;case 3:return[2]}})})})),e.Ur}function $E(e){var t=this;return e.Kr||(e.Kr=function(e,t,n){var r=Ey(e);return r.br(),new _E(t,r.Hi,r.credentials,r.R,n)}(e.datastore,e.asyncQueue,{Ii:VE.bind(null,e),Ri:GE.bind(null,e),Ir:qE.bind(null,e),Tr:KE.bind(null,e)}),e.Mr.push(function(n){return(0,Er.mG)(t,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return n?(e.Kr.sr(),[4,jE(e)]):[3,2];case 1:return t.sent(),[3,4];case 2:return[4,e.Kr.stop()];case 3:t.sent(),e.Fr.length>0&&(yy("RemoteStore","Stopping write stream with "+e.Fr.length+" pending writes"),e.Fr=[]),t.label=4;case 4:return[2]}})})})),e.Kr}var YE=function(){function e(e,t,n,r,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new lC,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(function(e){})}return e.createAndSchedule=function(t,n,r,i,o){var s=new e(t,n,Date.now()+r,i,o);return s.start(r),s},e.prototype.start=function(e){var t=this;this.timerHandle=setTimeout(function(){return t.handleDelayElapsed()},e)},e.prototype.skipDelay=function(){return this.handleDelayElapsed()},e.prototype.cancel=function(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new gy(fy.CANCELLED,"Operation cancelled"+(e?": "+e:""))))},e.prototype.handleDelayElapsed=function(){var e=this;this.asyncQueue.enqueueAndForget(function(){return null!==e.timerHandle?(e.clearTimeout(),e.op().then(function(t){return e.deferred.resolve(t)})):Promise.resolve()})},e.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},e}();function XE(e,t){if(by("AsyncQueue",t+": "+e),pC(e))return new gy(fy.UNAVAILABLE,t+": "+e);throw e}var JE=function(){function e(e){this.comparator=e?function(t,n){return e(t,n)||Jy.comparator(t.key,n.key)}:function(e,t){return Jy.comparator(e.key,t.key)},this.keyedMap=q_(),this.sortedSet=new D_(this.comparator)}return e.emptySet=function(t){return new e(t.comparator)},e.prototype.has=function(e){return null!=this.keyedMap.get(e)},e.prototype.get=function(e){return this.keyedMap.get(e)},e.prototype.first=function(){return this.sortedSet.minKey()},e.prototype.last=function(){return this.sortedSet.maxKey()},e.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},e.prototype.indexOf=function(e){var t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1},Object.defineProperty(e.prototype,"size",{get:function(){return this.sortedSet.size}
1,enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){this.sortedSet.inorderTraversal(function(t,n){return e(t),!1})},e.prototype.add=function(e){var t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))},e.prototype.delete=function(e){var t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.sortedSet.getIterator(),r=t.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(!i.isEqual(o))return!1}return!0},e.prototype.toString=function(){var e=[];return this.forEach(function(t){e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"},e.prototype.copy=function(t,n){var r=new e;return r.comparator=this.comparator,r.keyedMap=t,r.sortedSet=n,r},e}(),ZE=function(){function e(){this.Qr=new D_(Jy.comparator)}return e.prototype.track=function(e){var t=e.doc.key,n=this.Qr.get(t);n?0!==e.type&&3===n.type?this.Qr=this.Qr.insert(t,e):3===e.type&&1!==n.type?this.Qr=this.Qr.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.Qr=this.Qr.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.Qr=this.Qr.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.Qr=this.Qr.remove(t):1===e.type&&2===n.type?this.Qr=this.Qr.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.Qr=this.Qr.insert(t,{type:2,doc:e.doc}):Cy():this.Qr=this.Qr.insert(t,e)},e.prototype.jr=function(){var e=[];return this.Qr.inorderTraversal(function(t,n){e.push(n)}),e},e}(),eI=function(){function e(e,t,n,r,i,o,s,a){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=s,this.excludesMetadataChanges=a}return e.fromInitialDocuments=function(t,n,r,i){var o=[];return n.forEach(function(e){o.push({type:0,doc:e})}),new e(t,n,JE.emptySet(n),o,r,i,!0,!1)},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){if(!(this.fromCache===e.fromCache&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&zb(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0},e}(),tI=function(){this.Wr=void 0,this.listeners=[]},nI=function(){this.queries=new cS(function(e){return Wb(e)},zb),this.onlineState="Unknown",this.Gr=new Set};function rI(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i,o,s,a,l;return(0,Er.Jh)(this,function(c){switch(c.label){case 0:if(n=Ey(e),i=!1,(o=n.queries.get(r=t.query))||(i=!0,o=new tI),!i)return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),s=o,[4,n.onListen(r)];case 2:return s.Wr=c.sent(),[3,4];case 3:return a=c.sent(),l=XE(a,"Initialization of query '"+$b(t.query)+"' failed"),[2,void t.onError(l)];case 4:return n.queries.set(r,o),o.listeners.push(t),t.zr(n.onlineState),o.Wr&&t.Hr(o.Wr)&&aI(n),[2]}})})}function iI(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i,o,s;return(0,Er.Jh)(this,function(a){return n=Ey(e),i=!1,(o=n.queries.get(r=t.query))&&(s=o.listeners.indexOf(t))>=0&&(o.listeners.splice(s,1),i=0===o.listeners.length),i?[2,(n.queries.delete(r),n.onUnlisten(r))]:[2]})})}function oI(e,t){for(var n=Ey(e),r=!1,i=0,o=t;i<o.length;i++){var s=o[i],a=n.queries.get(s.query);if(a){for(var l=0,c=a.listeners;l<c.length;l++)c[l].Hr(s)&&(r=!0);a.Wr=s}}r&&aI(n)}function sI(e,t,n){var r=Ey(e),i=r.queries.get(t);if(i)for(var o=0,s=i.listeners;o<s.length;o++)s[o].onError(n);r.queries.delete(t)}function aI(e){e.Gr.forEach(function(e){e.next()})}var lI=function(){function e(e,t,n){this.query=e,this.Jr=t,this.Yr=!1,this.Xr=null,this.onlineState="Unknown",this.options=n||{}}return e.prototype.Hr=function(e){if(!this.options.includeMetadataChanges){for(var t=[],n=0,r=e.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&t.push(i)}e=new eI(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0)}var o=!1;return this.Yr?this.Zr(e)&&(this.Jr.next(e),o=!0):this.eo(e,this.onlineState)&&(this.no(e),o=!0),this.Xr=e,o},e.prototype.onError=function(e){this.Jr.error(e)},e.prototype.zr=function(e){this.onlineState=e;var t=!1;return this.Xr&&!this.Yr&&this.eo(this.Xr,e)&&(this.no(this.Xr),t=!0),t},e.prototype.eo=function(e,t){return!e.fromCache||!(this.options.so&&"Offline"!==t||e.docs.isEmpty()&&"Offline"!==t)},e.prototype.Zr=function(e){return e.docChanges.length>0||!!(e.syncStateChanged||this.Xr&&this.Xr.hasPendingWrites!==e.hasPendingWrites)&&!0===this.options.includeMetadataChanges},e.prototype.no=function(e){e=eI.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache),this.Yr=!0,this.Jr.next(e)},e}(),cI=function(){function e(e,t){this.payload=e,this.byteLength=t}return e.prototype.io=function(){return"metadata"in this.payload},e}(),uI=function(){function e(e){this.R=e}return e.prototype.qn=function(e){return gw(this.R,e)},e.prototype.Un=function(e){return e.metadata.exists?ww(this.R,e.document,!1):fb.newNoDocument(this.qn(e.metadata.name),this.Kn(e.metadata.readTime))},e.prototype.Kn=function(e){return dw(e)},e}();!function(){function e(e,t,n){this.ro=e,this.localStore=t,this.R=n,this.queries=[],this.documents=[],this.progress=function(e){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:e.totalDocuments,totalBytes:e.totalBytes}}(e)}e.prototype.oo=function(e){this.progress.bytesLoaded+=e.byteLength;var t=this.progress.documentsLoaded;return e.payload.namedQuery?this.queries.push(e.payload.namedQuery):e.payload.documentMetadata?(this.documents.push({metadata:e.payload.documentMetadata}),e.payload.documentMetadata.exists||++t):e.payload.document&&(this.documents[this.documents.length-1].document=e.payload.document,++t),t!==this.progress.documentsLoaded?(this.progress.documentsLoaded=t,Object.assign({},this.progress)):null},e.prototype.co=function(e){for(var t=new Map,n=new uI(this.R),r=0,i=e;r<i.length;r++){var o=i[r];if(o.metadata.queries)for(var s=n.qn(o.metadata.name),a=0,l=o.metadata.queries;a<l.length;a++){var c=l[a],u=(t.get(c)||W_()).add(s);t.set(c,u)}}return t},e.prototype.complete=function(){return(0,Er.mG)(this,void 0,void 0,function(){var e,t,n,r,i;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:return[4,QS(this.localStore,new uI(this.R),this.documents,this.ro.id)];case 1:e=o.sent(),t=this.co(this.documents),n=0,r=this.queries,o.label=2;case 2:return n<r.length?[4,HS(this.localStore,i=r[n],t.get(i.name))]:[3,5];case 3:o.sent(),o.label=4;case 4:return n++,[3,2];case 5:return[2,(this.progress.taskState="Success",new CS(Object.assign({},this.progress),e))]}})})}}();var hI=function(e){this.key=e},dI=function(e){this.key=e},AI=function(){function e(e,t){this.query=e,this.uo=t,this.ao=null,this.current=!1,this.ho=W_(),this.mutatedKeys=W_(),this.lo=Xb(e),this.fo=new JE(this.lo)}return Object.defineProperty(e.prototype,"wo",{get:function(){return this.uo}
1,enumerable:!1,configurable:!0}),e.prototype._o=function(e,t){var n=this,r=t?t.mo:new ZE,i=t?t.fo:this.fo,o=t?t.mutatedKeys:this.mutatedKeys,s=i,a=!1,l=Ub(this.query)&&i.size===this.query.limit?i.last():null,c=jb(this.query)&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal(function(e,t){var u=i.get(e),h=Yb(n.query,t)?t:null,d=!!u&&n.mutatedKeys.has(u.key),A=!!h&&(h.hasLocalMutations||n.mutatedKeys.has(h.key)&&h.hasCommittedMutations),p=!1;u&&h?u.data.isEqual(h.data)?d!==A&&(r.track({type:3,doc:h}),p=!0):n.yo(u,h)||(r.track({type:2,doc:h}),p=!0,(l&&n.lo(h,l)>0||c&&n.lo(h,c)<0)&&(a=!0)):!u&&h?(r.track({type:0,doc:h}),p=!0):u&&!h&&(r.track({type:1,doc:u}),p=!0,(l||c)&&(a=!0)),p&&(h?(s=s.add(h),o=A?o.add(e):o.delete(e)):(s=s.delete(e),o=o.delete(e)))}),Ub(this.query)||jb(this.query))for(;s.size>this.query.limit;){var u=Ub(this.query)?s.last():s.first();s=s.delete(u.key),o=o.delete(u.key),r.track({type:1,doc:u})}return{fo:s,mo:r,Nn:a,mutatedKeys:o}},e.prototype.yo=function(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations},e.prototype.applyChanges=function(e,t,n){var r=this,i=this.fo;this.fo=e.fo,this.mutatedKeys=e.mutatedKeys;var o=e.mo.jr();o.sort(function(e,t){return function(e,t){var n=function(e){switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Cy()}};return n(e)-n(t)}(e.type,t.type)||r.lo(e.doc,t.doc)}),this.po(n);var s=t?this.Eo():[],a=0===this.ho.size&&this.current?1:0,l=a!==this.ao;return this.ao=a,0!==o.length||l?{snapshot:new eI(this.query,e.fo,i,o,e.mutatedKeys,0===a,l,!1),To:s}:{To:s}},e.prototype.zr=function(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({fo:this.fo,mo:new ZE,mutatedKeys:this.mutatedKeys,Nn:!1},!1)):{To:[]}},e.prototype.Io=function(e){return!this.uo.has(e)&&!!this.fo.has(e)&&!this.fo.get(e).hasLocalMutations},e.prototype.po=function(e){var t=this;e&&(e.addedDocuments.forEach(function(e){return t.uo=t.uo.add(e)}),e.modifiedDocuments.forEach(function(e){}),e.removedDocuments.forEach(function(e){return t.uo=t.uo.delete(e)}),this.current=e.current)},e.prototype.Eo=function(){var e=this;if(!this.current)return[];var t=this.ho;this.ho=W_(),this.fo.forEach(function(t){e.Io(t.key)&&(e.ho=e.ho.add(t.key))});var n=[];return t.forEach(function(t){e.ho.has(t)||n.push(new dI(t))}),this.ho.forEach(function(e){t.has(e)||n.push(new hI(e))}),n},e.prototype.Ao=function(e){this.uo=e.Bn,this.ho=W_();var t=this._o(e.documents);return this.applyChanges(t,!0)},e.prototype.Ro=function(){return eI.fromInitialDocuments(this.query,this.fo,this.mutatedKeys,0===this.ao)},e}(),pI=function(e,t,n){this.query=e,this.targetId=t,this.view=n},fI=function(e){this.key=e,this.bo=!1},gI=function(){function e(e,t,n,r,i,o){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.vo={},this.Po=new cS(function(e){return Wb(e)},zb),this.Vo=new Map,this.So=new Set,this.Do=new D_(Jy.comparator),this.Co=new Map,this.No=new qS,this.xo={},this.ko=new Map,this.Fo=XC.Yt(),this.onlineState="Unknown",this.$o=void 0}return Object.defineProperty(e.prototype,"isPrimaryClient",{get:function(){return!0===this.$o},enumerable:!1,configurable:!0}),e}();function mI(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i,o,s;return(0,Er.Jh)(this,function(a){switch(a.label){case 0:return n=GI(e),(i=n.Po.get(t))?(n.sharedClientState.addLocalQueryTarget(i.targetId),r=i.view.Ro(),[3,4]):[3,1];case 1:return[4,MS(n.localStore,Kb(t))];case 2:return o=a.sent(),s=n.sharedClientState.addLocalQueryTarget(o.targetId),[4,vI(n,t,o.targetId,"current"===s)];case 3:r=a.sent(),n.isPrimaryClient&&xE(n.remoteStore,o),a.label=4;case 4:return[2,r]}})})}function vI(e,t,n,r){return(0,Er.mG)(this,void 0,void 0,function(){var i,o,s,a,l,c;return(0,Er.Jh)(this,function(u){switch(u.label){case 0:return e.Oo=function(t,n,r){return function(e,t,n,r){return(0,Er.mG)(this,void 0,void 0,function(){var i,o,s;return(0,Er.Jh)(this,function(a){switch(a.label){case 0:return(i=t.view._o(n)).Nn?[4,NS(e.localStore,t.query,!1).then(function(e){return t.view._o(e.documents,i)})]:[3,2];case 1:i=a.sent(),a.label=2;case 2:return o=r&&r.targetChanges.get(t.targetId),s=t.view.applyChanges(i,e.isPrimaryClient,o),[2,(PI(e,t.targetId,s.To),s.snapshot)]}})})}(e,t,n,r)},[4,NS(e.localStore,t,!0)];case 1:return i=u.sent(),o=new AI(t,i.Bn),s=o._o(i.documents),a=J_.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==e.onlineState),l=o.applyChanges(s,e.isPrimaryClient,a),PI(e,n,l.To),c=new pI(t,n,o),[2,(e.Po.set(t,c),e.Vo.has(n)?e.Vo.get(n).push(t):e.Vo.set(n,[t]),l.snapshot)]}})})}function yI(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:return n=Ey(e),r=n.Po.get(t),(i=n.Vo.get(r.targetId)).length>1?[2,(n.Vo.set(r.targetId,i.filter(function(e){return!zb(e,t)}
1)),void n.Po.delete(t))]:n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)?[3,2]:[4,DS(n.localStore,r.targetId,!1).then(function(){n.sharedClientState.clearQueryState(r.targetId),TE(n.remoteStore,r.targetId),BI(n,r.targetId)}).catch(nS)]):[3,3];case 1:o.sent(),o.label=2;case 2:return[3,5];case 3:return BI(n,r.targetId),[4,DS(n.localStore,r.targetId,!0)];case 4:o.sent(),o.label=5;case 5:return[2]}})})}function bI(e,t,n){return(0,Er.mG)(this,void 0,void 0,function(){var r,i,o,s;return(0,Er.Jh)(this,function(a){switch(a.label){case 0:r=zI(e),a.label=1;case 1:return a.trys.push([1,5,,6]),[4,function(e,t){var n,r=Ey(e),i=Py.now(),o=t.reduce(function(e,t){return e.add(t.key)},W_());return r.persistence.runTransaction("Locally write mutations","readwrite",function(e){return r.Mn.pn(e,o).next(function(o){n=o;for(var s=[],a=0,l=t;a<l.length;a++){var c=l[a],u=__(c,n.get(c.key));null!=u&&s.push(new E_(c.key,u,pb(u.value.mapValue),g_.exists(!0)))}return r._n.addMutationBatch(e,i,s,t)})}).then(function(e){return e.applyToLocalDocumentSet(n),{batchId:e.batchId,changes:n}})}(r.localStore,t)];
1case 2:return i=a.sent(),r.sharedClientState.addPendingMutation(i.batchId),function(e,t,n){var r=e.xo[e.currentUser.toKey()];r||(r=new D_(Ty)),r=r.insert(t,n),e.xo[e.currentUser.toKey()]=r}(r,i.batchId,n),[4,LI(r,i.changes)];case 3:return a.sent(),[4,jE(r.remoteStore)];case 4:return a.sent(),[3,6];case 5:return o=a.sent(),s=XE(o,"Failed to persist write"),n.reject(s),[3,6];case 6:return[2]}})})}function _I(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:n=Ey(e),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,OS(n.localStore,t)];case 2:return r=i.sent(),t.targetChanges.forEach(function(e,t){var r=n.Co.get(t);r&&(Sy(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1),e.addedDocuments.size>0?r.bo=!0:e.modifiedDocuments.size>0?Sy(r.bo):e.removedDocuments.size>0&&(Sy(r.bo),r.bo=!1))}),[4,LI(n,r,t)];case 3:return i.sent(),[3,6];case 4:return[4,nS(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}})})}function wI(e,t,n){var r=Ey(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){var i=[];r.Po.forEach(function(e,n){var r=n.view.zr(t);r.snapshot&&i.push(r.snapshot)}),function(e,t){var n=Ey(e);n.onlineState=t;var r=!1;n.queries.forEach(function(e,n){for(var i=0,o=n.listeners;i<o.length;i++)o[i].zr(t)&&(r=!0)}),r&&aI(n)}(r.eventManager,t),i.length&&r.vo._r(i),r.onlineState=t,r.isPrimaryClient&&r.sharedCl
1ientState.setOnlineState(t)}}function CI(e,t,n){return(0,Er.mG)(this,void 0,void 0,function(){var r,i,o,s,a,l;return(0,Er.Jh)(this,function(c){switch(c.label){case 0:return(r=Ey(e)).sharedClientState.updateQueryState(t,"rejected",n),i=r.Co.get(t),(o=i&&i.key)?(s=(s=new D_(Jy.comparator)).insert(o,fb.newNoDocument(o,Oy.min())),a=W_().add(o),l=new X_(Oy.min(),new Map,new U_(Ty),s,a),[4,_I(r,l)]):[3,2];case 1:return c.sent(),r.Do=r.Do.remove(o),r.Co.delete(t),FI(r),[3,4];case 2:return[4,DS(r.localStore,t,!1).then(function(){return BI(r,t,n)}).catch(nS)];case 3:c.sent(),c.label=4;case 4:return[2]}})})}function SI(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:n=Ey(e),r=t.batch.batchId,o.label=1;case 1:return o.trys.push([1,4,,6]),[4,kS(n.localStore,t)];case 2:return i=o.sent(),TI(n,r,null),xI(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),[4,LI(n,i)];case 3:return o.sent(),[3,6];case 4:return[4,nS(o.sent())];case 5:return o.sent(),[3,6];case 6:return[2]}})})}function EI(e,t,n){return(0,Er.mG)(this,void 0,void 0,function(){var r,i;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:r=Ey(e),o.label=1;case 1:return o.trys.push([1,4,,6]),[4,function(e,t){var n=Ey(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",function(e){var r;return n._n.lookupMutationBatch(e,t).next(function(t){return Sy(null!==t),r=t.keys(),n._n.removeMutationBatch(e,t)}).next(function(){return n._n.performConsistencyCheck(e)}).next(function(){return n.Mn.pn(e,r)})})}(r.localStore,t)];case 2:return i=o.sent(),TI(r,t,n),xI(r,t),r.sharedClientState.updateMutationState(t,"rejected",n),[4,LI(r,i)];case 3:return o.sent(),[3,6];case 4:return[4,nS(o.sent())];case 5:return o.sent(),[3,6];case 6:return[2]}})})}function II(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i,o,s;return(0,Er.Jh)(this,function(a){switch(a.label){case 0:FE((n=Ey(e)).remoteStore)||yy("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,function(e){var t=Ey(e);return t.persistence.runTransaction("Get highest unacknowledged batch id","readonly",function(e){return t._n.getHighestUnacknowledgedBatchId(e)})}(n.localStore)];case 2:return-1===(r=a.sent())?[2,void t.resolve()]:((i=n.ko.get(r)||[]).push(t),n.ko.set(r,i),[3,4]);case 3:return o=a.sent(),s=XE(o,"Initialization of waitForPendingWrites() operation failed"),t.reject(s),[3,4];case 4:return[2]}})})}function xI(e,t){(e.ko.get(t)||[]).forEach(function(e){e.resolve()}),e.ko.delete(t)}function TI(e,t,n){var r=Ey(e),i=r.xo[r.currentUser.toKey()];if(i){var o=i.get(t);o&&(n?o.reject(n):o.resolve(),i=i.remove(t)),r.xo[r.currentUser.toKey()]=i}}function BI(e,t,n){void 0===n&&(n=null),e.sharedClientState.removeLocalQueryTarget(t);for(var r=0,i=e.Vo.get(t);r<i.length;r++){var o=i[r];e.Po.delete(o),n&&e.vo.Mo(o,n)}e.Vo.delete(t),e.isPrimaryClient&&e.No.Zn(t).forEach(function(t){e.No.containsKey(t)||kI(e,t)})}function kI(e,t){e.So.delete(t.path.canonicalString());var n=e.Do.get(t);null!==n&&(TE(e.remoteStore,n),e.Do=e.Do.remove(t),e.Co.delete(n),FI(e))}function PI(e,t,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];o instanceof hI?(e.No.addReference(o.key,t),OI(e,o)):o instanceof dI?(yy("SyncEngine","Document no longer in limbo: "+o.key),e.No.removeReference(o.key,t),e.No.containsKey(o.key)||kI(e,o.key)):Cy()}}function OI(e,t){var n=t.key,r=n.path.canonicalString();e.Do.get(n)||e.So.has(r)||(yy("SyncEngine","New document in limbo: "+n),e.So.add(r),FI(e))}function FI(e){for(;e.So.size>0&&e.Do.size<e.maxConcurrentLimboResolutions;){var t=e.So.values().next().value;e.So.delete(t);var n=new Jy(Ny.fromString(t)),r=e.Fo.next();e.Co.set(r,new fI(n)),e.Do=e.Do.insert(n,r),xE(e.remoteStore,new CC(Kb(Rb(n.path)),r,2,py.o))}}function LI(e,t,n){return(0,Er.mG)(this,void 0,void 0,function(){var r,i,o,s;return(0,Er.Jh)(this,function(a){switch(a.label){case 0:return r=Ey(e),i=[],o=[],s=[],r.Po.isEmpty()?[3,3]:(r.Po.forEach(function(e,a){s.push(r.Oo(a,t,n).then(function(e){if(e){r.isPrimaryClient&&r.sharedCl
1ientState.updateQueryState(a.targetId,e.fromCache?"not-current":"current"),i.push(e);var t=ES.Pn(a.targetId,e);o.push(t)}}))}),[4,Promise.all(s)]);case 1:return a.sent(),r.vo._r(i),[4,function(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i,o,s,a,l,c;return(0,Er.Jh)(this,function(u){switch(u.label){case 0:n=Ey(e),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",function(e){return cC.forEach(t,function(t){return cC.forEach(t.bn,function(r){return n.persistence.referenceDelegate.addReference(e,t.targetId,r)}).next(function(){return cC.forEach(t.vn,function(r){return n.persistence.referenceDelegate.removeReference(e,t.targetId,r)})})})})];case 2:return u.sent(),[3,4];case 3:if(!pC(r=u.sent()))throw r;return yy("LocalStore","Failed to update sequence numbers: "+r),[3,4];case 4:for(i=0,o=t;i<o.length;i++)a=(s=o[i]).targetId,s.fromCache||(l=n.kn.get(a),c=l.withLastLimboFreeSnapshotVersion(l.snapshotVersion),n.kn=n.kn.insert(a,c));return[2]}})})}(r.localStore,o)];case 2:a.sent(),a.label=3;case 3:return[2]}})})}function MI(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:return(n=Ey(e)).currentUser.isEqual(t)?[3,3]:(yy("SyncEngine","User change. New user:",t.toKey()),[4,BS(n.localStore,t)]);case 1:return r=i.sent(),n.currentUser=t,function(e,t){e.ko.forEach(function(e){e.forEach(function(e){e.reject(new gy(fy.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),e.ko.clear()}(n),n.sharedClientState.handleUserChange(t,r.removedBatchIds,r.addedBatchIds),[4,LI(n,r.Ln)];case 2:i.sent(),i.label=3;case 3:return[2]}})})}function DI(e,t){var n=Ey(e),r=n.Co.get(t);if(r&&r.bo)return W_().add(r.key);var i=W_(),o=n.Vo.get(t);if(!o)return i;for(var s=0,a=o;s<a.length;s++){var l=n.Po.get(a[s]);i=i.unionWith(l.view.wo)}return i}function NI(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:return[4,NS((n=Ey(e)).localStore,t.query,!0)];case 1:return r=o.sent(),i=t.view.Ao(r),[2,(n.isPrimaryClient&&PI(n,t.targetId,i.To),i)]}})})}function RI(e){return(0,Er.mG)(this,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(n){return[2,US((t=Ey(e)).localStore).then(function(e){return LI(t,e)})]})})}function UI(e,t,n,r){return(0,Er.mG)(this,void 0,void 0,function(){var i,o;return(0,Er.Jh)(this,function(s){switch(s.label){case 0:return[4,function(e,t){var n=Ey(e),r=Ey(n._n);return n.persistence.runTransaction("Lookup mutation documents","readonly",function(e){return r.jt(e,t).next(function(t){return t?n.Mn.pn(e,t):cC.resolve(null)})})}((i=Ey(e)).localStore,t)];case 1:return null===(o=s.sent())?[3,6]:"pending"!==n?[3,3]:[4,jE(i.remoteStore)];case 2:return s.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(TI(i,t,r||null),xI(i,t),function(e,t){Ey(Ey(e)._n).Gt(t)}(i.localStore,t)):Cy(),s.label=4;case 4:return[4,LI(i,o)];case 5:return s.sent(),[3,7];case 6:yy("SyncEngine","Cannot apply mutation batch with id: "+t),s.label=7;case 7:return[2]}})})}function jI(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i,o,s,a,l;return(0,Er.Jh)(this,function(c){switch(c.label){case 0:return GI(n=Ey(e)),zI(n),!0!==t||!0===n.$o?[3,3]:(r=n.sharedClientState.getAllActiveQueryTargets(),[4,QI(n,r.toArray())]);case 1:return i=c.sent(),n.$o=!0,[4,zE(n.remoteStore,!0)];case 2:for(c.sent(),o=0,s=i;o<s.length;o++)xE(n.remoteStore,s[o]);return[3,7];case 3:return!1!==t||!1===n.$o?[3,7]:(a=[],l=Promise.resolve(),n.Vo.forEach(function(e,t){n.sharedClientState.isLocalQueryTarget(t)?a.push(t):l=l.then(function(){return BI(n,t),DS(n.localStore,t,!0)}),TE(n.remoteStore,t)}),[4,l]);case 4:return c.sent(),[4,QI(n,a)];case 5:return c.sent(),function(e){var t=Ey(e);t.Co.forEach(function(e,n){TE(t.remoteStore,n)}),t.No.ts(),t.Co=new Map,t.Do=new D_(Jy.comparator)}(n),n.$o=!1,[4,zE(n.remoteStore,!1)];case 6:c.sent(),c.label=7;case 7:return[2]}})})}function QI(e,t,n){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i,o,s,a,l,c,u,h,d,A,p;return(0,Er.Jh)(this,function(f){switch(f.label){case 0:n=Ey(e),r=[],i=[],o=0,s=t,f.label=1;case 1:return o<s.length?(l=void 0,(c=n.Vo.get(a=s[o]))&&0!==c.length?[4,MS(n.localStore,Kb(c[0]))]:[3,7]):[3,13];case 2:l=f.sent(),u=0,h=c,f.label=3;case 3:return u<h.length?(d=n.Po.get(h[u]),[4,NI(n,d)]):[3,6];case 4:(A=f.sent()).snapshot&&i.push(A.snapshot),f.label=5;case 5:return u++,[3,3];case 6:return[3,11];case 7:return[4,RS(n.localStore,a)];case 8:return p=f.sent(),[4,MS(n.localStore,p)];case 9:return l=f.sent(),[4,vI(n,HI(p),a,!1)];case 10:f.sent(),f.label=11;case 11:r.push(l),f.label=12;case 12:return o++,[3,1];case 13:return[2,(n.vo._r(i),r)]}})})}function HI(e){return Nb(e.path,e.collectionGroup,e.orderBy,e.filters,e.limit,"F",e.startAt,e.endAt)}function VI(e){var t=Ey(e);return Ey(Ey(t.localStore).persistence).fn()}function qI(e,t,n,r){return(0,Er.mG)(this,void 0,void 0,function(){var i,o,s;return(0,Er.Jh)(this,function(a){switch(a.label){case 0:return(i=Ey(e)).$o?(yy("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!i.Vo.has(t))return[3,8];switch(n){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,US(i.localStore)];case 3:return o=a.sent(),s=X_.createSynthesizedRemoteEventForCurrentChange(t,"current"===n),[4,LI(i,o,s)];case 4:return a.sent(),[3,8];case 5:return[4,DS(i.localStore,t,!0)];case 6:return a.sent(),BI(i,t,r),[3,8];case 7:Cy(),a.label=8;case 8:return[2]}})})}function KI(e,t,n){return(0,Er.mG)(this,void 0,void 0,function(){var r,i,o,s,a,l,c,u,h;return(0,Er.Jh)(this,function(d){switch(d.label){case 0:if(!(r=GI(e)).$o)return[3,10];i=0,o=t,d.label=1;case 1:return i<o.length?r.Vo.has(s=o[i])?(yy("SyncEngine","Adding an already active target "+s),[3,5]):[4,RS(r.localStore,s)]:[3,6];case 2:return a=d.sent(),[4,MS(r.localStore,a)];case 3:return l=d.sent(),[4,vI(r,HI(a),l.targetId,!1)];case 4:d.sent(),xE(r.remoteStore,l),d.label=5;case 5:return i++,[3,1];case 6:c=function(e){return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return r.Vo.has(e)?[4,DS(r.localStore,e,!1).then(function(){TE(r.remoteStore,e),BI(r,e)}).catch(nS)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})},u=0,h=n,d.label=7;case 7:return u<h.length?[5,c(h[u])]:[3,10];case 8:d.sent(),d.label=9;case 9:return u++,[3,7];case 10:return[2]}})})}function GI(e){var t=Ey(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=_I.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=DI.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=CI.bind(null,t),t.vo._r=oI.bind(null,t.eventManager),t.vo.Mo=sI.bind(null,t.eventManager),t}function zI(e){var t=Ey(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=SI.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=EI.bind(null,t),t}var WI=function(){function e(){this.synchronizeTabs=!1}return e.prototype.initialize=function(e){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return this.R=mE(e.databaseInfo.databaseId),this.sharedCl
1ientState=this.Bo(e),this.persistence=this.qo(e),[4,this.persistence.start()];case 1:return t.sent(),this.gcScheduler=this.Uo(e),this.localStore=this.Ko(e),[2]}})})},e.prototype.Uo=function(e){return null},e.prototype.Ko=function(e){return TS(this.persistence,new IS,e.initialUser,this.R)},e.prototype.qo=function(e){return new YS(JS.bs,this.R)},e.prototype.Bo=function(e){return new cE},e.prototype.terminate=function(){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(e){switch(e.label){case 0:return this.gcScheduler&&this.gcScheduler.stop(),[4,this.sharedClientState.shutdown()];case 1:return e.sent(),[4,this.persistence.shutdown()];case 2:return e.sent(),[2]}})})},e}(),$I=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).Qo=t,i.cacheSizeBytes=n,i.forceOwnership=r,i.synchronizeTabs=!1,i}return(0,Er.ZT)(t,e),t.prototype.initialize=function(t){return(0,Er.mG)(this,void 0,void 0,function(){var n=this;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:return[4,e.prototype.initialize.call(this,t)];case 1:return r.sent(),[4,jS(this.localStore)];case 2:return r.sent(),[4,this.Qo.initialize(this,t)];case 3:return r.sent(),[4,zI(this.Qo.syncEngine)];case 4:return r.sent(),[4,jE(this.Qo.remoteStore)];case 5:return r.sent(),[4,this.persistence.He(function(){return n.gcScheduler&&!n.gcScheduler.started&&n.gcScheduler.start(n.localStore),Promise.resolve()})];case 6:return r.sent(),[2]}})})},t.prototype.Ko=function(e){return TS(this.persistence,new IS,e.initialUser,this.R)},t.prototype.Uo=function(e){return new oS(this.persistence.referenceDelegate.garbageCollector,e.asyncQueue)},t.prototype.qo=function(e){var t=wS(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?VC.withCacheSize(this.cacheSizeBytes):VC.DEFAULT;return new yS(this.synchronizeTabs,t,e.clientId,n,e.asyncQueue,fE(),gE(),this.R,this.sharedClientState,!!this.forceOwnership)},t.prototype.Bo=function(e){return new cE},t}(WI),YI=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n,!1)||this).Qo=t,r.cacheSizeBytes=n,r.synchronizeTabs=!0,r}return(0,Er.ZT)(t,e),t.prototype.initialize=function(t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r=this;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:return[4,e.prototype.initialize.call(this,t)];case 1:return i.sent(),n=this.Qo.syncEngine,this.sharedClientState instanceof lE?(this.sharedClientState.syncEngine={ui:UI.bind(null,n),ai:qI.bind(null,n),hi:KI.bind(null,n),fn:VI.bind(null,n),ci:RI.bind(null,n)},[4,this.sharedClientState.start()]):[3,3];case 2:i.sent(),i.label=3;case 3:return[4,this.persistence.He(function(e){return(0,Er.mG)(r,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return[4,jI(this.Qo.syncEngine,e)];case 1:return t.sent(),this.gcScheduler&&(e&&!this.gcScheduler.started?this.gcScheduler.start(this.localStore):e||this.gcScheduler.stop()),[2]}})})})];case 4:return i.sent(),[2]}})})},t.prototype.Bo=function(e){var t=fE();if(!lE.yt(t))throw new gy(fy.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=wS(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey);return new lE(t,e.asyncQueue,n,e.clientId,e.initialUser)},t}($I),XI=function(){function e(){}return e.prototype.initialize=function(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n=this;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:return this.localStore?[3,2]:(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=function(e){return wI(n.syncEngine,e,1)},this.remoteStore.remoteSyncer.handleCredentialChange=MI.bind(null,this.syncEngine),[4,zE(this.remoteStore,this.syncEngine.isPrimaryClient)]);case 1:r.sent(),r.label=2;case 2:return[2]}})})},e.prototype.createEventManager=function(e){return new nI},e.prototype.createDatastore=function(e){var t=mE(e.databaseInfo.databaseId),n=new pE(e.databaseInfo);return function(e,t,n){return new wE(e,t,n)}(e.credentials,n,t)},e.prototype.createRemoteStore=function(e){var t,n,r,i,o,s=this;return t=this.localStore,n=this.datastore,r=e.asyncQueue,i=function(e){return wI(s.syncEngine,e,0)},o=hE.yt()?new hE:new uE,new SE(t,n,r,i,o)},e.prototype.createSyncEngine=function(e,t){return function(e,t,n,r,i,o,s){var a=new gI(e,t,n,r,i,o);return s&&(a.$o=!0),a}(this.localStore,this.remoteStore,this.eventManager,this.sharedCl
1ientState,e.initialUser,e.maxConcurrentLimboResolutions,t)},e.prototype.terminate=function(){return function(e){return(0,Er.mG)(this,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return t=Ey(e),yy("RemoteStore","RemoteStore shutting down."),t.Or.add(5),[4,IE(t)];case 1:return n.sent(),t.Lr.shutdown(),t.Br.set("Unknown"),[2]}})})}(this.remoteStore)},e}(),JI=function(){function e(e){this.observer=e,this.muted=!1}return e.prototype.next=function(e){this.observer.next&&this.jo(this.observer.next,e)},e.prototype.error=function(e){this.observer.error?this.jo(this.observer.error,e):console.error("Uncaught Error in snapshot listener:",e)},e.prototype.Wo=function(){this.muted=!0},e.prototype.jo=function(e,t){var n=this;this.muted||setTimeout(function(){n.muted||e(t)},0)},e}(),ZI=(function(){function e(e,t){var n=this;this.Go=e,this.R=t,this.metadata=new lC,this.buffer=new Uint8Array,this.zo=new TextDecoder("utf-8"),this.Ho().then(function(e){e&&e.io()?n.metadata.resolve(e.payload.metadata):n.metadata.reject(new Error("The first element of the bundle is not a metadata, it is\n             "+JSON.stringify(null==e?void 0:e.payload)))},function(e){return n.metadata.reject(e)})}e.prototype.close=function(){return this.Go.cancel()},e.prototype.getMetadata=function(){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(e){return[2,this.metadata.promise]})})},e.prototype.Lo=function(){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(e){switch(e.label){case 0:return[4,this.getMetadata()];case 1:return[2,(e.sent(),this.Ho())]}})})},e.prototype.Ho=function(){return(0,Er.mG)(this,void 0,void 0,function(){var e,t,n,r;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:return[4,this.Jo()];case 1:return null===(e=i.sent())?[2,null]:(t=this.zo.decode(e),n=Number(t),isNaN(n)&&this.Yo("length string ("+t+") is not valid number"),[4,this.Xo(n)]);case 2:return r=i.sent(),[2,new cI(JSON.parse(r),e.length+n)]}})})},e.prototype.Zo=function(){return this.buffer.findIndex(function(e){return e==="{".charCodeAt(0)})},e.prototype.Jo=function(){return(0,Er.mG)(this,void 0,void 0,function(){var e,t;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return this.Zo()<0?[4,this.tc()]:[3,3];case 1:if(n.sent())return[3,3];n.label=2;case 2:return[3,0];case 3:return 0===this.buffer.length?[2,null]:((e=this.Zo())<0&&this.Yo("Reached the end of bundle when a length string is expected."),t=this.buffer.slice(0,e),[2,(this.buffer=this.buffer.slice(e),t)])}})})},e.prototype.Xo=function(e){return(0,Er.mG)(this,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return this.buffer.length<e?[4,this.tc()]:[3,3];case 1:n.sent()&&this.Yo("Reached the end of bundle when more is expected."),n.label=2;case 2:return[3,0];case 3:return t=this.zo.decode(this.buffer.slice(0,e)),[2,(this.buffer=this.buffer.slice(e),t)]}})})},e.prototype.Yo=function(e){throw this.Go.cancel(),new Error("Invalid bundle format: "+e)},e.prototype.tc=function(){return(0,Er.mG)(this,void 0,void 0,function(){var e,t;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return[4,this.Go.read()];case 1:return(e=n.sent()).done||((t=new Uint8Array(this.buffer.length+e.value.length)).set(this.buffer),t.set(e.value,this.buffer.length),this.buffer=t),[2,e.done]}})})}}(),function(){function e(e){this.datastore=e,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}return e.prototype.lookup=function(e){return(0,Er.mG)(this,void 0,void 0,function(){var t,n=this;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:if(this.ensureCommitNotCalled(),this.mutations.length>0)throw new gy(fy.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i,o,s,a;return(0,Er.Jh)(this,function(l){switch(l.label){case 0:return n=Ey(e),r=yw(n.R)+"/documents",i={documents:t.map(function(e){return fw(n.R,e)})},[4,n.$i("BatchGetDocuments",r,i)];case 1:return o=l.sent(),s=new Map,o.forEach(function(e){var t=function(e,t){return"found"in t?function(e,t){Sy(!!t.found);var n=gw(e,t.found.name),r=dw(t.found.updateTime),i=new Ab({mapValue:{fields:t.found.fields}});return fb.newFoundDocument(n,r,i)}(e,t):"missing"in t?function(e,t){Sy(!!t.missing),Sy(!!t.readTime);var n=gw(e,t.missing),r=dw(t.readTime);return fb.newNoDocument(n,r)}(e,t):Cy()}(n.R,e);s.set(t.key.toString(),t)}),a=[],[2,(t.forEach(function(e){var t=s.get(e.toString());Sy(!!t),a.push(t)}),a)]}})})}(this.datastore,e)];
1case 1:return[2,((t=r.sent()).forEach(function(e){return n.recordVersion(e)}),t)]}})})},e.prototype.set=function(e,t){this.write(t.toMutation(e,this.precondition(e))),this.writtenDocs.add(e.toString())},e.prototype.update=function(e,t){try{this.write(t.toMutation(e,this.preconditionForUpdate(e)))}catch(e){this.lastWriteError=e}this.writtenDocs.add(e.toString())},e.prototype.delete=function(e){this.write(new P_(e,this.precondition(e))),this.writtenDocs.add(e.toString())},e.prototype.commit=function(){return(0,Er.mG)(this,void 0,void 0,function(){var e,t=this;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;return e=this.readVersions,this.mutations.forEach(function(t){e.delete(t.key.toString())}),e.forEach(function(e,n){var r=Jy.fromPath(n);t.mutations.push(new O_(r,t.precondition(r)))}),[4,function(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:return n=Ey(e),r=yw(n.R)+"/documents",i={writes:t.map(function(e){return Cw(n.R,e)})},[4,n.Ni("Commit",r,i)];case 1:return o.sent(),[2]}})})}(this.datastore,this.mutations)];case 1:return n.sent(),this.committed=!0,[2]}})})},e.prototype.recordVersion=function(e){var t;if(e.isFoundDocument())t=e.version;else{if(!e.isNoDocument())throw Cy();t=Oy.min()}var n=this.readVersions.get(e.key.toString());if(n){if(!t.isEqual(n))throw new gy(fy.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(e.key.toString(),t)},e.prototype.precondition=function(e){var t=this.readVersions.get(e.toString());return!this.writtenDocs.has(e.toString())&&t?g_.updateTime(t):g_.none()},e.prototype.preconditionForUpdate=function(e){var t=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&t){if(t.isEqual(Oy.min()))throw new gy(fy.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return g_.updateTime(t)}return g_.exists(!0)},e.prototype.write=function(e){this.ensureCommitNotCalled(),this.mutations.push(e)},e.prototype.ensureCommitNotCalled=function(){},e}()),ex=function(){function e(e,t,n,r){this.asyncQueue=e,this.datastore=t,this.updateFunction=n,this.deferred=r,this.ec=5,this.Zi=new vE(this.asyncQueue,"transaction_retry")}return e.prototype.run=function(){this.ec-=1,this.nc()},e.prototype.nc=function(){var e=this;this.Zi.ji(function(){return(0,Er.mG)(e,void 0,void 0,function(){var e,t,n=this;return(0,Er.Jh)(this,function(r){return e=new ZI(this.datastore),(t=this.sc(e))&&t.then(function(t){n.asyncQueue.enqueueAndForget(function(){return e.commit().then(function(){n.deferred.resolve(t)}).catch(function(e){n.ic(e)})})}).catch(function(e){n.ic(e)}),[2]})})})},e.prototype.sc=function(e){try{var t=this.updateFunction(e);return!$y(t)&&t.catch&&t.then?t:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(e){return this.deferred.reject(e),null}},e.prototype.ic=function(e){var t=this;this.ec>0&&this.rc(e)?(this.ec-=1,this.asyncQueue.enqueueAndForget(function(){return t.nc(),Promise.resolve()})):this.deferred.reject(e)},e.prototype.rc=function(e){if("FirebaseError"===e.name){var t=e.code;return"aborted"===t||"failed-precondition"===t||!L_(t)}return!1},e}(),tx=function(){function e(e,t,n){var r=this;this.credentials=e,this.asyncQueue=t,this.databaseInfo=n,this.user=ZS.UNAUTHENTICATED,this.clientId=xy.u(),this.credentialListener=function(){return Promise.resolve()},this.credentials.setChangeListener(t,function(e){return(0,Er.mG)(r,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return yy("FirestoreClient","Received user=",e.uid),[4,this.credentialListener(e)];case 1:return t.sent(),this.user=e,[2]}})})})}return e.prototype.getConfiguration=function(){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(e){return[2,{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,credentials:this.credentials,initialUser:this.user,maxConcurrentLimboResolutions:100}]})})},e.prototype.setCredentialChangeListener=function(e){this.credentialListener=e},e.prototype.verifyNotTerminated=function(){if(this.asyncQueue.isShuttingDown)throw new gy(fy.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.terminate=function(){var e=this;this.asyncQueue.enterRestrictedMode();var t=new lC;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(function(){return(0,Er.mG)(e,void 0,void 0,function(){var e,n;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),this.onlineComponents?[4,this.onlineComponents.terminate()]:[3,2];case 1:r.sent(),r.label=2;case 2:return this.offlineComponents?[4,this.offlineComponents.terminate()]:[3,4];case 3:r.sent(),r.label=4;case 4:return this.credentials.removeChangeListener(),t.resolve(),[3,6];case 5:return e=r.sent(),n=XE(e,"Failed to shutdown persistence"),t.reject(n),[3,6];case 6:return[2]}})})}),t.promise},e}();function nx(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r,i=this;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:return e.asyncQueue.verifyOperationInProgress(),yy("FirestoreClient","Initializing OfflineComponentProvider"),[4,e.getConfiguration()];case 1:return n=o.sent(),[4,t.initialize(n)];case 2:return o.sent(),r=n.initialUser,e.setCredentialChangeListener(function(e){return(0,Er.mG)(i,void 0,void 0,function(){return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return r.isEqual(e)?[3,2]:[4,BS(t.localStore,e)];case 1:n.sent(),r=e,n.label=2;case 2:return[2]}})})}),t.persistence.setDatabaseDeletedListener(function(){return e.terminate()}),e.offlineComponents=t,[2]}
1})})}function rx(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:return e.asyncQueue.verifyOperationInProgress(),[4,ix(e)];case 1:return n=i.sent(),yy("FirestoreClient","Initializing OnlineComponentProvider"),[4,e.getConfiguration()];case 2:return r=i.sent(),[4,t.initialize(n,r)];case 3:return i.sent(),e.setCredentialChangeListener(function(e){return function(e,t){return(0,Er.mG)(this,void 0,void 0,function(){var n,r;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:return(n=Ey(e)).asyncQueue.verifyOperationInProgress(),yy("RemoteStore","RemoteStore received new credentials"),r=FE(n),n.Or.add(3),[4,IE(n)];case 1:return i.sent(),r&&n.Br.set("Unknown"),[4,n.remoteSyncer.handleCredentialChange(t)];case 2:return i.sent(),n.Or.delete(3),[4,EE(n)];case 3:return i.sent(),[2]}})})}(t.remoteStore,e)}),e.onlineComponents=t,[2]}})})}function ix(e){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return e.offlineComponents?[3,2]:(yy("FirestoreClient","Using default OfflineComponentProvider"),[4,nx(e,new WI)]);case 1:t.sent(),t.label=2;case 2:return[2,e.offlineComponents]}})})}function ox(e){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return e.onlineComponents?[3,2]:(yy("FirestoreClient","Using default OnlineComponentProvider"),[4,rx(e,new XI)]);case 1:t.sent(),t.label=2;case 2:return[2,e.onlineComponents]}})})}function sx(e){return ix(e).then(function(e){return e.persistence})}function ax(e){return ix(e).then(function(e){return e.localStore})}function lx(e){return ox(e).then(function(e){return e.remoteStore})}function cx(e){return ox(e).then(function(e){return e.syncEngine})}function ux(e){return(0,Er.mG)(this,void 0,void 0,function(){var t,n;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:return[4,ox(e)];case 1:return t=r.sent(),[2,((n=t.eventManager).onListen=mI.bind(null,t.syncEngine),n.onUnlisten=yI.bind(null,t.syncEngine),n)]}})})}function hx(e,t,n){var r=this;void 0===n&&(n={});var i=new lC;return e.asyncQueue.enqueueAndForget(function(){return(0,Er.mG)(r,void 0,void 0,function(){var r;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:return r=function(e,t,n,r,i){var o=new JI({next:function(o){t.enqueueAndForget(function(){return iI(e,s)});var a=o.docs.has(n);!a&&o.fromCache?i.reject(new gy(fy.UNAVAILABLE,"Failed to get document because the client is offline.")):a&&o.fromCache&&r&&"server"===r.source?i.reject(new gy(fy.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(o)},error:function(e){return i.reject(e)}}),s=new lI(Rb(n.path),o,{includeMetadataChanges:!0,so:!0});return rI(e,s)},[4,ux(e)];case 1:return[2,r.apply(void 0,[o.sent(),e.asyncQueue,t,n,i])]}})})}),i.promise}function dx(e,t,n){var r=this;void 0===n&&(n={});var i=new lC;return e.asyncQueue.enqueueAndForget(function(){return(0,Er.mG)(r,void 0,void 0,function(){var r;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:return r=function(e,t,n,r,i){var o=new JI({next:function(n){t.enqueueAndForget(function(){return iI(e,s)}),n.fromCache&&"server"===r.source?i.reject(new gy(fy.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(e){return i.reject(e)}}),s=new lI(n,o,{includeMetadataChanges:!0,so:!0});return rI(e,s)},[4,ux(e)];case 1:return[2,r.apply(void 0,[o.sent(),e.asyncQueue,t,n,i])]}})})}),i.promise}var Ax=function(e,t,n,r,i,o,s,a){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=s,this.useFetchStreams=a},px=function(){function e(e,t){this.projectId=e,this.database=t||"(default)"}return Object.defineProperty(e.prototype,"isDefaultDatabase",{get:function(){return"(default)"===this.database}
1,enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database},e}(),fx=new Map,gx=function(e,t){this.user=t,this.type="OAuth",this.authHeaders={},this.authHeaders.Authorization="Bearer "+e},mx=function(){function e(){this.changeListener=null}return e.prototype.getToken=function(){return Promise.resolve(null)},e.prototype.invalidateToken=function(){},e.prototype.setChangeListener=function(e,t){this.changeListener=t,e.enqueueRetryable(function(){return t(ZS.UNAUTHENTICATED)})},e.prototype.removeChangeListener=function(){this.changeListener=null},e}(),vx=function(){function e(e){this.token=e,this.changeListener=null}return e.prototype.getToken=function(){return Promise.resolve(this.token)},e.prototype.invalidateToken=function(){},e.prototype.setChangeListener=function(e,t){var n=this;this.changeListener=t,e.enqueueRetryable(function(){return t(n.token.user)})},e.prototype.removeChangeListener=function(){this.changeListener=null},e}(),yx=function(){function e(e){var t=this;this.currentUser=ZS.UNAUTHENTICATED,this.oc=new lC,this.cc=0,this.forceRefresh=!1,this.auth=null,this.asyncQueue=null,this.uc=function(){t.cc++,t.currentUser=t.ac(),t.oc.resolve(),t.changeListener&&t.asyncQueue.enqueueRetryable(function(){return t.changeListener(t.currentUser)})};var n=function(e){yy("FirebaseCredentialsProvider","Auth detected"),t.auth=e,t.auth.addAuthTokenListener(t.uc)};e.onInit(function(e){return n(e)}),setTimeout(function(){if(!t.auth){var r=e.getImmediate({optional:!0});r?n(r):(yy("FirebaseCredentialsProvider","Auth not yet detected"),t.oc.resolve())}},0)}return e.prototype.getToken=function(){var e=this,t=this.cc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(function(n){return e.cc!==t?(yy("FirebaseCredentialsProvider","getToken aborted due to token change."),e.getToken()):n?(Sy("string"==typeof n.accessToken),new gx(n.accessToken,e.currentUser)):null}):Promise.resolve(null)},e.prototype.invalidateToken=function(){this.forceRefresh=!0},e.prototype.setChangeListener=function(e,t){var n=this;this.asyncQueue=e,this.asyncQueue.enqueueRetryable(function(){return(0,Er.mG)(n,void 0,void 0,function(){return(0,Er.Jh)(this,function(e){switch(e.label){case 0:return[4,this.oc.promise];case 1:return e.sent(),[4,t(this.currentUser)];case 2:return e.sent(),this.changeListener=t,[2]}})})})},e.prototype.removeChangeListener=function(){this.auth&&this.auth.removeAuthTokenListener(this.uc),this.changeListener=function(){return Promise.resolve()}},e.prototype.ac=function(){var e=this.auth&&this.auth.getUid();return Sy(null===e||"string"==typeof e),new ZS(e)},e}(),bx=function(){function e(e,t,n){this.hc=e,this.lc=t,this.fc=n,this.type="FirstParty",this.user=ZS.FIRST_PARTY}return Object.defineProperty(e.prototype,"authHeaders",{get:function(){var e={"X-Goog-AuthUser":this.lc},t=this.hc.auth.getAuthHeaderValueForFirstParty([]);return t&&(e.Authorization=t),this.fc&&(e["X-Goog-Iam-Authorization-Token"]=this.fc),e},enumerable:!1,configurable:!0}),e}(),_x=function(){function e(e,t,n){this.hc=e,this.lc=t,this.fc=n}return e.prototype.getToken=function(){return Promise.resolve(new bx(this.hc,this.lc,this.fc))},e.prototype.setChangeListener=function(e,t){e.enqueueRetryable(function(){return t(ZS.FIRST_PARTY)})},e.prototype.removeChangeListener=function(){},e.prototype.invalidateToken=function(){},e}();function wx(e,t,n){if(!n)throw new gy(fy.INVALID_ARGUMENT,"Function "+e+"() cannot be called with an empty "+t+".")}function Cx(e,t){if(void 0===t)return{merge:!1};if(void 0!==t.mergeFields&&void 0!==t.merge)throw new gy(fy.INVALID_ARGUMENT,"Invalid options passed to function "+e+'(): You cannot specify both "merge" and "mergeFields".');return t}function Sx(e,t,n,r){if(!0===t&&!0===r)throw new gy(fy.INVALID_ARGUMENT,e+" and "+n+" cannot be used together.")}function Ex(e){if(!Jy.isDocumentKey(e))throw new gy(fy.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e+" has "+e.length+".")}function Ix(e){if(Jy.isDocumentKey(e))throw new gy(fy.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e+" has "+e.length+".")}function xx(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=e.substring(0,20)+"..."),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";var t=function(e){if(e.constructor){var t=/function\s+([^\s(]+)\s*\(/.exec(e.constructor.toString());if(t&&t.length>1)return t[1]}return null}(e);return t?"a custom "+t+" object":"an object"}return"function"==typeof e?"a function":Cy()}function Tx(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new gy(fy.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=xx(e);throw new gy(fy.INVALID_ARGUMENT,"Expected type '"+t.name+"', but it was: "+n)}return e}function Bx(e,t){if(t<=0)throw new gy(fy.INVALID_ARGUMENT,"Function "+e+"() requires a positive number, but it was: "+t+".")}var kx=function(){function e(e){var t;if(void 0===e.host){if(void 0!==e.ssl)throw new gy(fy.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=null===(t=e.ssl)||void 0===t||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new gy(fy.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.useFetchStreams=!!e.useFetchStreams,Sx("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling)}return e.prototype.isEqual=function(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams},e}(),Px=function(){function e(e,t){this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new kx({}),this._settingsFrozen=!1,e instanceof px?(this._databaseId=e,this._credentials=new mx):(this._app=e,this._databaseId=function(e){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new gy(fy.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new px(e.options.projectId)}(e),this._credentials=new yx(t))}return Object.defineProperty(e.prototype,"app",{get:function(){if(!this._app)throw new gy(fy.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_initialized",{get:function(){return this._settingsFrozen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_terminated",{get:function(){return void 0!==this._terminateTask},enumerable:!1,configurable:!0}),e.prototype._setSettings=function(e){if(this._settingsFrozen)throw new gy(fy.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new kx(e),void 0!==e.credentials&&(this._credentials=function(e){if(!e)return new mx;switch(e.type){case"gapi":var t=e.client;return Sy(!("object"!=typeof t||null===t||!t.auth||!t.auth.getAuthHeaderValueForFirstParty)),new _x(t,e.sessionIndex||"0",e.iamToken||null);case"provider":return e.client;default:throw new gy(fy.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},e.prototype._getSettings=function(){return this._settings},e.prototype._freezeSettings=function(){return this._settingsFrozen=!0,this._settings},e.prototype._delete=function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask},e.prototype.toJSON=function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}},e.prototype._terminate=function(){return(e=fx.get(this))&&(yy("ComponentProvider","Removing Datastore"),fx.delete(this),e.terminate()),Promise.resolve();var e},e}(),Ox=function(){function e(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}return Object.defineProperty(e.prototype,"_path",{get:function(){return this._key.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new Lx(this.firestore,this.converter,this._key.path.popLast())},enumerable:!1,configurable:!0}),e.prototype.withConverter=function(t){return new e(this.firestore,t,this._key)},e}(),Fx=function(){function e(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}return e.prototype.withConverter=function(t){return new e(this.firestore,t,this._query)},e}(),Lx=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n,Rb(r))||this)._path=r,i.type="collection",i}return(0,Er.ZT)(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._path.popLast();return e.isEmpty()?null:new Ox(this.firestore,null,new Jy(e))},enumerable:!1,configurable:!0}),t.prototype.withConverter=function(e){return new t(this.firestore,e,this._path)},t}(Fx);function Mx(e,t){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(e=(0,sf.m9)(e),wx("collection","path",t),e instanceof Px)return Ix(n=Ny.fromString.apply(Ny,(0,Er.ev)([t],r))),new Lx(e,null,n);if(!(e instanceof Ox||e instanceof Lx))throw new gy(fy.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return Ix(n=Ny.fromString.apply(Ny,(0,Er.ev)([e.path],r)).child(Ny.fromString(t))),new Lx(e.firestore,null,n)}function Dx(e,t){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(e=(0,sf.m9)(e),1===arguments.length&&(t=xy.u()),wx("doc","path",t),e instanceof Px)return Ex(n=Ny.fromString.apply(Ny,(0,Er.ev)([t],r))),new Ox(e,null,new Jy(n));if(!(e instanceof Ox||e instanceof Lx))throw new gy(fy.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return Ex(n=e._path.child(Ny.fromString.apply(Ny,(0,Er.ev)([t],r)))),new Ox(e.firestore,e instanceof Lx?e.converter:null,new Jy(n))}function Nx(e,t){return e=(0,sf.m9)(e),t=(0,sf.m9)(t),(e instanceof Ox||e instanceof Lx)&&
1(t instanceof Ox||t instanceof Lx)&&e.firestore===t.firestore&&e.path===t.path&&e.converter===t.converter}function Rx(e,t){return e=(0,sf.m9)(e),t=(0,sf.m9)(t),e instanceof Fx&&t instanceof Fx&&e.firestore===t.firestore&&zb(e._query,t._query)&&e.converter===t.converter}var Ux=function(){function e(){var e=this;this.dc=Promise.resolve(),this.wc=[],this._c=!1,this.mc=[],this.yc=null,this.gc=!1,this.Ec=!1,this.Tc=[],this.Zi=new vE(this,"async_queue_retry"),this.Ic=function(){var t=gE();t&&yy("AsyncQueue","Visibility state changed to "+t.visibilityState),e.Zi.Gi()};var t=gE();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this.Ic)}return Object.defineProperty(e.prototype,"isShuttingDown",{get:function(){return this._c},enumerable:!1,configurable:!0}),e.prototype.enqueueAndForget=function(e){this.enqueue(e)},e.prototype.enqueueAndForgetEvenWhileRestricted=function(e){this.Ac(),this.Rc(e)},e.prototype.enterRestrictedMode=function(e){if(!this._c){this._c=!0,this.Ec=e||!1;var t=gE();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Ic)}},e.prototype.enqueue=function(e){var t=this;if(this.Ac(),this._c)return new Promise(function(){});var n=new lC;return this.Rc(function(){return t._c&&t.Ec?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)}).then(function(){return n.promise})},e.prototype.enqueueRetryable=function(e){var t=this;this.enqueueAndForget(function(){return t.wc.push(e),t.bc()})},e.prototype.bc=function(){return(0,Er.mG)(this,void 0,void 0,function(){var e,t=this;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:if(0===this.wc.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.wc[0]()];case 2:return n.sent(),this.wc.shift(),this.Zi.reset(),[3,4];case 3:if(!pC(e=n.sent()))throw e;return yy("AsyncQueue","Operation failed with retryable error: "+e),[3,4];case 4:this.wc.length>0&&this.Zi.ji(function(){return t.bc()}),n.label=5;case 5:return[2]}})})},e.prototype.Rc=function(e){var t=this,n=this.dc.then(function(){return t.gc=!0,e().catch(function(e){throw t.yc=e,t.gc=!1,by("INTERNAL UNHANDLED ERROR: ",function(e){var t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}(e)),e}).then(function(e){return t.gc=!1,e})});return this.dc=n,n},e.prototype.enqueueAfterDelay=function(e,t,n){var r=this;this.Ac(),this.Tc.indexOf(e)>-1&&(t=0);var i=YE.createAndSchedule(this,e,t,n,function(e){return r.vc(e)});return this.mc.push(i),i},e.prototype.Ac=function(){this.yc&&Cy()},e.prototype.verifyOperationInProgress=function(){},e.prototype.Pc=function(){return(0,Er.mG)(this,void 0,void 0,function(){var e;return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return[4,e=this.dc];case 1:t.sent(),t.label=2;case 2:if(e!==this.dc)return[3,0];t.label=3;case 3:return[2]}})})},e.prototype.Vc=function(e){for(var t=0,n=this.mc;t<n.length;t++)if(n[t].timerId===e)return!0;return!1},e.prototype.Sc=function(e){var t=this;return this.Pc().then(function(){t.mc.sort(function(e,t){return e.targetTimeMs-t.targetTimeMs});for(var n=0,r=t.mc;n<r.length;n++){var i=r[n];if(i.skipDelay(),"all"!==e&&i.timerId===e)break}return t.Pc()})},e.prototype.Dc=function(e){this.Tc.push(e)},e.prototype.vc=function(e){var t=this.mc.indexOf(e);this.mc.splice(t,1)},e}();function jx(e){return function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=e,r=0,i=["next","error","complete"];r<i.length;r++){var o=i[r];if(o in n&&"function"==typeof n[o])return!0}return!1}(e)}!function(){function e(){this._progressObserver={},this._taskCompletionResolver=new lC,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}e.prototype.onProgress=function(e,t,n){this._progressObserver={next:e,error:t,complete:n}},e.prototype.catch=function(e){return this._taskCompletionResolver.promise.catch(e)},e.prototype.then=function(e,t){return this._taskCompletionResolver.promise.then(e,t)},e.prototype._completeWith=function(e){this._updateProgress(e),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(e)},e.prototype._failWith=function(e){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(e),this._taskCompletionResolver.reject(e)},e.prototype._updateProgress=function(e){this._lastProgress=e,this._progressObserver.next&&this._progressObserver.next(e)}}();var Qx=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n)||this).type="firestore",r._queue=new Ux,r._persistenceKey="name"in t?t.name:"[DEFAULT]",r}return(0,Er.ZT)(t,e),t.prototype._terminate=function(){return this._firestoreClient||Vx(this),this._firestoreClient.terminate()},t}(Px);function Hx(e){return e._firestoreClient||Vx(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}function Vx(e){var t,n=e._freezeSettings(),r=function(e,t,n,r){return new Ax(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,r.useFetchStreams)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,n);e._firestoreClient=new tx(e._credentials,e._queue,r)}function qx(e,t,n){var r=this,i=new lC;return e.asyncQueue.enqueue(function(){return(0,Er.mG)(r,void 0,void 0,function(){var r;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,nx(e,n)];case 1:return o.sent(),[4,rx(e,t)];case 2:return o.sent(),i.resolve(),[3,4];case 3:if(!function(e){return"FirebaseError"===e.name?e.code===fy.FAILED_PRECONDITION||e.code===fy.UNIMPLEMENT
1ED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code}(r=o.sent()))throw r;return console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+r),i.reject(r),[3,4];case 4:return[2]}})})}).then(function(){return i.promise})}function Kx(e){if(e._initialized||e._terminated)throw new gy(fy.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}var Gx=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;++n)if(0===e[n].length)throw new gy(fy.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Uy(e)}return e.prototype.isEqual=function(e){return this._internalPath.isEqual(e._internalPath)},e}(),zx=function(){function e(e){this._byteString=e}return e.fromBase64String=function(t){try{return new e(Qy.fromBase64String(t))}catch(t){throw new gy(fy.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}},e.fromUint8Array=function(t){return new e(Qy.fromUint8Array(t))},e.prototype.toBase64=function(){return this._byteString.toBase64()},e.prototype.toUint8Array=function(){return this._byteString.toUint8Array()},e.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},e.prototype.isEqual=function(e){return this._byteString.isEqual(e._byteString)},e}(),Wx=function(e){this._methodName=e},$x=function(){function e(e,t){if(!isFinite(e)||e<-90||e>90)throw new gy(fy.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new gy(fy.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}return Object.defineProperty(e.prototype,"latitude",{get:function(){return this._lat},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this._long},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){return this._lat===e._lat&&this._long===e._long},e.prototype.toJSON=function(){return{latitude:this._lat,longitude:this._long}},e.prototype._compareTo=function(e){return Ty(this._lat,e._lat)||Ty(this._long,e._long)},e}(),Yx=/^__.*__$/,Xx=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutation=function(e,t){return null!==this.fieldMask?new E_(e,this.data,this.fieldMask,t,this.fieldTransforms):new S_(e,this.data,t,this.fieldTransforms)},e}(),Jx=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutation=function(e,t){return new E_(e,this.data,this.fieldMask,t,this.fieldTransforms)},e}();function Zx(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Cy()}}var eT=function(){function e(e,t,n,r,i,o){this.settings=e,this.databaseId=t,this.R=n,this.ignoreUndefinedProperties=r,void 0===i&&this.Cc(),this.fieldTransforms=i||[],this.fieldMask=o||[]}return Object.defineProperty(e.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Nc",{get:function(){return this.settings.Nc},enumerable:!1,configurable:!0}),e.prototype.xc=function(t){return new e(Object.assign(Object.assign({},this.settings),t),this.databaseId,this.R,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)},e.prototype.kc=function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.xc({path:n,Fc:!1});return r.$c(e),r},e.prototype.Oc=function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.xc({path:n,Fc:!1});return r.Cc(),r},e.prototype.Mc=function(e){return this.xc({path:void 0,Fc:!0})},e.prototype.Lc=function(e){return bT(e,this.settings.methodName,this.settings.Bc||!1,this.path,this.settings.qc)},e.prototype.contains=function(e){return void 0!==this.fieldMask.find(function(t){return e.isPrefixOf(t)})||void 0!==this.fieldTransforms.find(function(t){return e.isPrefixOf(t.field)})},e.prototype.Cc=function(){if(this.path)for(var e=0;e<this.path.length;e++)this.$c(this.path.get(e))},e.prototype.$c=function(e){if(0===e.length)throw this.Lc("Document fields must not be empty");if(Zx(this.Nc)&&Yx.test(e))throw this.Lc('Document fields cannot begin and end with "__"')},e}(),tT=function(){function e(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.R=n||mE(e)}return e.prototype.Uc=function(e,t,n,r){return void 0===r&&(r=!1),new eT({Nc:e,methodName:t,qc:n,path:Uy.emptyPath(),Fc:!1,Bc:r},this.databaseId,this.R,this.ignoreUndefinedProperties)},e}();function nT(e){var t=e._freezeSettings(),n=mE(e._databaseId);return new tT(e._databaseId,!!t.ignoreUndefinedProperties,n)}function rT(e,t,n,r,i,o){void 0===o&&(o={});var s=e.Uc(o.merge||o.mergeFields?2:0,t,n,i);gT("Data must be an object, but it was:",s,r);var a,l,c=pT(r,s);if(o.merge)a=new jy(s.fieldMask),l=s.fieldTransforms;else if(o.mergeFields){for(var u=[],h=0,d=o.mergeFields;h<d.length;h++){var A=mT(t,d[h],n);if(!s.contains(A))throw new gy(fy.INVALID_ARGUMENT,"Field '"+A+"' is specified in your field mask but missing from your input data.");_T(u,A)||u.push(A)}a=new jy(u),l=s.fieldTransforms.filter(function(e){return a.covers(e.field)})}else a=null,l=s.fieldTransforms;return new Xx(new Ab(c),a,l)}var iT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Er.ZT)(t,e),t.prototype._toFieldTransform=function(e){if(2!==e.Nc)throw e.Lc(1===e.Nc?this._methodName+"() can only appear at the top level of your update data":this._methodName+"() cannot be used with set() unless you pass {merge:true}");return e.fieldMask.push(e.path),null},t.prototype.isEqual=function(e){return e instanceof t},t}(Wx);function oT(e,t,n){return new eT({Nc:3,qc:t.settings.qc,methodName:e._methodName,Fc:n},t.databaseId,t.R,t.ignoreUndefinedProperties)}var sT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Er.ZT)(t,e),t.prototype._toFieldTransform=function(e){return new p_(e.path,new s_)},t.prototype.isEqual=function(e){return e instanceof t},t}(Wx),aT=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).Kc=n,r}return(0,Er.ZT)(t,e),t.prototype._toFieldTransform=function(e){var t=oT(this,e,!0),n=this.Kc.map(function(e){return AT(e,t)}),r=new a_(n);return new p_(e.path,r)},t.prototype.isEqual=function(e){return this===e},t}(Wx),lT=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).Kc=n,r}return(0,Er.ZT)(t,e),t.prototype._toFieldTransform=function(e){var t=oT(this,e,!0),n=this.Kc.map(function(e){return AT(e,t)}),r=new c_(n);return new p_(e.path,r)},t.prototype.isEqual=function(e){return this===e},t}(Wx),cT=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).Qc=n,r}return(0,Er.ZT)(t,e),t.prototype._toFieldTransform=function(e){var t=new h_(e.R,t_(e.R,this.Qc));return new p_(e.path,t)},t.prototype.isEqual=function(e){return this===e},t}(Wx);function uT(e,t,n,r){var i=e.Uc(1,t,n);gT("Data must be an object, but it was:",i,r);var o=[],s=Ab.empty();Ly(r,function(e,r){var a=yT(t,e,n);r=(0,sf.m9)(r);var l=i.Oc(a);if(r instanceof iT)o.push(a);else{var c=AT(r,l);null!=c&&(o.push(a),s.set(a,c))}});var a=new jy(o);return new Jx(s,a,i.fieldTransforms)}function hT(e,t,n,r,i,o){var s=e.Uc(1,t,n),a=[mT(t,r,n)],l=[i];if(o.length%2!=0)throw new gy(fy.INVALID_ARGUMENT,"Function "+t+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var c=0;c<o.length;c+=2)a.push(mT(t,o[c])),l.push(o[c+1]);for(var u=[],h=Ab.empty(),d=a.length-1;d>=0;--d)if(!_T(u,a[d])){var A=a[d],p=l[d];p=(0,sf.m9)(p);var f=s.Oc(A);if(p instanceof iT)u.push(A);else{var g=AT(p,f);null!=g&&(u.push(A),h.set(A,g))}}var m=new jy(u);return new Jx(h,m,s.fieldTransforms)}function dT(e,t,n,r){return void 0===r&&(r=!1),AT(n,e.Uc(r?4:3,t))}function AT(e,t){if(fT(e=(0,sf.m9)(e)))return gT("Unsupported field value:",t,e),pT(e,t);if(e instanceof Wx)return function(e,t){if(!Zx(t.Nc))throw t.Lc(e._methodName+"() can only be used with update(
1) and set()");if(!t.path)throw t.Lc(e._methodName+"() is not currently supported inside arrays");var n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.Fc&&4!==t.Nc)throw t.Lc("Nested arrays are not supported");return function(e,t){for(var n=[],r=0,i=0,o=e;i<o.length;i++){var s=AT(o[i],t.Mc(r));null==s&&(s={nullValue:"NULL_VALUE"}),n.push(s),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if(null===(e=(0,sf.m9)(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return t_(t.R,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){var n=Py.fromDate(e);return{timestampValue:cw(t.R,n)}}if(e instanceof Py)return n=new Py(e.seconds,1e3*Math.floor(e.nanoseconds/1e3)),{timestampValue:cw(t.R,n)};if(e instanceof $x)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof zx)return{bytesValue:uw(t.R,e._byteString)};if(e instanceof Ox){var r=e.firestore._databaseId;if(!r.isEqual(n=t.databaseId))throw t.Lc("Document reference is for database "+r.projectId+"/"+r.database+" but should be for database "+n.projectId+"/"+n.database);return{referenceValue:Aw(e.firestore._databaseId||t.databaseId,e._key.path)}}throw t.Lc("Unsupported field value: "+xx(e))}(e,t)}function pT(e,t){var n={};return My(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):Ly(e,function(e,r){var i=AT(r,t.kc(e));null!=i&&(n[e]=i)}),{mapValue:{fields:n}}}function fT(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof Py||e instanceof $x||e instanceof zx||e instanceof Ox||e instanceof Wx)}function gT(e,t,n){if(!fT(n)||!function(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}(n)){var r=xx(n);throw t.Lc("an object"===r?e+" a custom object":e+" "+r)}}function mT(e,t,n){if((t=(0,sf.m9)(t))instanceof Gx)return t._internalPath;if("string"==typeof t)return yT(e,t);throw bT("Field path arguments must be of type string or FieldPath.",e,!1,void 0,n)}var vT=new RegExp("[~\\*/\\[\\]]");function yT(e,t,n){if(t.search(vT)>=0)throw bT("Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'",e,!1,void 0,n);try{return(new(Gx.bind.apply(Gx,(0,Er.ev)([void 0],t.split(".")))))._internalPath}catch(bB){throw bT("Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'",e,!1,void 0,n)}}function bT(e,t,n,r,i){var o=r&&!r.isEmpty(),s=void 0!==i,a="Function "+t+"() called with invalid data";n&&(a+=" (via `toFirestore()`)");var l="";return(o||s)&&(l+=" (found",o&&(l+=" in field "+r),s&&(l+=" in document "+i),l+=")"),new gy(fy.INVALID_ARGUMENT,(a+=". ")+e+l)}function _T(e,t){return e.some(function(e){return e.isEqual(t)})}var wT=function(){function e(e,t,n,r,i){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=i}return Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ref",{get:function(){return new Ox(this._firestore,this._converter,this._key)},enumerable:!1,configurable:!0}),e.prototype.exists=function(){return null!==this._document},e.prototype.data=function(){if(this._document){if(this._converter){var e=new CT(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}},e.prototype.get=function(e){if(this._document){var t=this._document.data.field(ST("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}},e}(),CT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Er.ZT)(t,e),t.prototype.data=function(){return e.prototype.data.call(this)},t}(wT);function ST(e,t){return"string"==typeof t?yT(e,t):t instanceof Gx?t._internalPath:t._delegate._internalPath}var ET=function(){function e(e,t){this.hasPendingWrites=e,this.fromCache=t}return e.prototype.isEqual=function(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache},e}(),IT=function(e){function t(t,n,r,i,o,s){var a=this;return(a=e.call(this,t,n,r,i,s)||this)._firestore=t,a._firestoreImpl=t,a.metadata=o,a}return(0,Er.ZT)(t,e),t.prototype.exists=function(){return e.prototype.exists.call(this)},t.prototype.data=function(e){if(void 0===e&&(e={}),this._document){if(this._converter){var t=new xT(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}},t.prototype.get=function(e,t){if(void 0===t&&(t={}),this._document){var n=this._document.data.field(ST("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}},t}(wT),xT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Er.ZT)(t,e),t.prototype.data=function(t){return void 0===t&&(t={}),e.prototype.data.call(this,t)},t}(IT),TT=function(){function e(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new ET(r.hasPendingWrites,r.fromCache),this.query=n}return Object.defineProperty(e.prototype,"docs",{get:function(){var e=[];return this.forEach(function(t){return e.push(t)}),e}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return 0===this.size},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e,t){var n=this;this._snapshot.docs.forEach(function(r){e.call(t,new xT(n._firestore,n._userDataWriter,r.key,r,new ET(n._snapshot.mutatedKeys.has(r.key),n._snapshot.fromCache),n.query.converter))})},e.prototype.docChanges=function(e){void 0===e&&(e={});var t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new gy(fy.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){var n=0;return e._snapshot.docChanges.map(function(t){return{type:"added",doc:new xT(e._firestore,e._userDataWriter,t.doc.key,t.doc,new ET(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),oldIndex:-1,newIndex:n++}})}var r=e._snapshot.oldDocs;return e._snapshot.docChanges.filter(function(e){return t||3!==e.type}).map(function(t){var n=new xT(e._firestore,e._userDataWriter,t.doc.key,t.doc,new ET(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),i=-1,o=-1;return 0!==t.type&&(i=r.indexOf(t.doc.key),r=r.delete(t.doc.key)),1!==t.type&&(o=(r=r.add(t.doc)).indexOf(t.doc.key)),{type:BT(t.type),doc:n,oldIndex:i,newIndex:o}})}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges},e}();function BT(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Cy()}}function kT(e,t){return e instanceof IT&&t instanceof IT?e._firestore===t._firestore&&e._key.isEqual(t._key)&&(null===e._document?null===t._document:e._document.isEqual(t._document))&&e._converter===t._converter:e instanceof TT&&t instanceof TT&&e._firestore===t._firestore&&Rx(e.query,t.query)&&e.metadata.isEqual(t.metadata)&&e._snapshot.isEqual(t._snapshot)}function PT(e){if(jb(e)&&0===e.explicitOrderBy.length)throw new gy(fy.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var OT=function(){};function FT(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];e=o._apply(e)}return e}var LT=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).jc=t,i.Wc=n,i.Gc=r,i.type="where",i}return(0,Er.ZT)(t,e),t.prototype._apply=function(e){var t=nT(e.firestore),n=function(e,t,n,r,i,o,s){var a;if(i.isKeyField()){if("array-contains"===o||"array-contains-any"===o)throw new gy(fy.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o||"not-in"===o){QT(s,o);for(var l=[],c=0,u=s;c<u.length;c++)l.push(jT(r,e,u[c]));a={arrayValue:{values:l}}}else a=jT(r,e,s)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||QT(s,o),a=dT(n,"where",s,"in"===o||"not-in"===o);var h=_b.create(i,o,a);return function(e,t){if(t.g()){var n=Hb(e);if(null!==n&&!n.isEqual(t.field))throw new gy(fy.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+t.field.toString()+"'");var r=Qb(e);null!==r&&HT(0,t.field,r)}var i=function(e,t){for(var n=0,r=e.filters;n<r.length;n++){var i=r[n];if(t.indexOf(i.op)>=0)return i.op}return null}(e,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==i)throw new gy(fy.INVALID_ARGUMENT,i===t.op?"Invalid query. You cannot use more than one '"+t.op.toString()+"' filter.":"Invalid query. You cannot use '"+t.op.toString()+"' filters with '"+i.toString()+"' filters.")}(e,h),h}(e._query,0,t,e.firestore._databaseId,this.jc,this.Wc,this.Gc);return new Fx(e.firestore,e.converter,function(e,t){var n=e.filters.concat([t]);return new Db(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}(e._query,n))},t}(OT),MT=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).jc=t,r.zc=n,r.type="orderBy",r}return(0,Er.ZT)(t,e),t.prototype._apply=function(e){var t=function(e,t,n){if(null!==e.startAt)throw new gy(fy.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new gy(fy.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new Ob(t,n);return function(e,t){if(null===Qb(e)){var n=Hb(e);null!==n&&HT(0,n,t.field)}}(e,r),r}(e._query,this.jc,this.zc);return new Fx(e.firestore,e.converter,function(e,t){var n=e.explicitOrderBy.concat([t]);return new Db(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))},t}(OT),DT=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).type=t,i.Hc=n,i.Jc=r,i}return(0,Er.ZT)(t,e),t.prototype._apply=function(e){return new Fx(e.firestore,e.converter,Gb(e._query,this.Hc,this.Jc))},t}(OT),NT=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).type=t,i.Yc=n,i.Xc=r,i}return(0,Er.ZT)(t,e),t.prototype._apply=function(e){var t=UT(e,this.type,this.Y
1c,this.Xc);return new Fx(e.firestore,e.converter,function(e,t){return new Db(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,t,e.endAt)}(e._query,t))},t}(OT),RT=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).type=t,i.Yc=n,i.Xc=r,i}return(0,Er.ZT)(t,e),t.prototype._apply=function(e){var t=UT(e,this.type,this.Yc,this.Xc);return new Fx(e.firestore,e.converter,function(e,t){return new Db(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,t)}(e._query,t))},t}(OT);function UT(e,t,n,r){if(n[0]=(0,sf.m9)(n[0]),n[0]instanceof wT)return function(e,t,n,r,i){if(!r)throw new gy(fy.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],s=0,a=qb(e);s<a.length;s++){var l=a[s];if(l.field.isKeyField())o.push(sb(t,r.key));else{var c=r.data.field(l.field);if(Gy(c))throw new gy(fy.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+l.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===c){var u=l.field.canonicalString();throw new gy(fy.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+u+"' (used as the orderBy) does not exist.")}o.push(c)}}return new kb(o,i)}(e._query,e.firestore._databaseId,t,n[0]._document,r);var i=nT(e.firestore);return function(e,t,n,r,i,o){var s=e.explicitOrderBy;if(i.length>s.length)throw new gy(fy.INVALID_ARGUMENT,"Too many arguments provided to "+r+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var a=[],l=0;l<i.length;l++){var c=i[l];if(s[l].field.isKeyField()){if("string"!=typeof c)throw new gy(fy.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+r+"(), but got a "+typeof c);if(!Vb(e)&&-1!==c.indexOf("/"))throw new gy(fy.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+r+"() must be a plain document ID, but '"+c+"' contains a slash.");var u=e.path.child(Ny.fromString(c));if(!Jy.isDocumentKey(u))throw new gy(fy.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+r+"() must result in a valid document path, but '"+u+"' is not because it contains an odd number of segments.");var h=new Jy(u);a.push(sb(t,h))}else{var d=dT(n,r,c);a.push(d)}}return new kb(a,o)}(e._query,e.firestore._databaseId,i,t,n,r)}function jT(e,t,n){if("string"==typeof(n=(0,sf.m9)(n))){if(""===n)throw new gy(fy.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!Vb(t)&&-1!==n.indexOf("/"))throw new gy(fy.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var r=t.path.child(Ny.fromString(n));if(!Jy.isDocumentKey(r))throw new gy(fy.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+r+"' is not because it has an odd number of segments ("+r.length+").");return sb(e,new Jy(r))}if(n instanceof Ox)return sb(e,n._key);throw new gy(fy.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+xx(n)+".")}function QT(e,t){if(!Array.isArray(e)||0===e.length)throw new gy(fy.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+t.toString()+"' filters.");if(e.length>10)throw new gy(fy.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters support a maximum of 10 elements in the value array.")}function HT(e,t,n){if(!n.isEqual(t))throw new gy(fy.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '"+t.toString()+"' and so you must also use '"+t.toString()+"' as your first argument to orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}var VT=function(){function e(){}return e.prototype.convertValue=function(e,t){switch(void 0===t&&(t="none"),Zy(e)){case 0:return null;case 1:return e.booleanValue;case 2:return qy(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(Ky(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw Cy()}},e.prototype.convertObject=function(e,t){var n=this,r={};return Ly(e.fields,function(e,i){r[e]=n.convertValue(i,t)}),r},e.prototype.convertGeoPoint=function(e){return new $x(qy(e.latitude),qy(e.longitude))},e.prototype.convertArray=function(e,t){var n=this;return(e.values||[]).map(function(e){return n.convertValue(e,t)})},e.prototype.convertServerTimestamp=function(e,t){switch(t){case"previous":var n=zy(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(Wy(e));default:return null}},e.prototype.convertTimestamp=function(e){var t=Vy(e);return new Py(t.seconds,t.nanos)},e.prototype.convertDocumentKey=function(e,t){var n=Ny.fromString(e);Sy(Rw(n));var r=new px(n.get(1),n.get(3)),i=new Jy(n.popFirst(5));return r.isEqual(t)||by("Document "+i+" contains a document reference within a different database ("+r.projectId+"/"+r.database+") which is not supported. It will be treated as a reference in the current database ("+t.projectId+"/"+t.database+") instead."),i},e}();function qT(e,t,n){return e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t}var KT=function(e){function t(t){var n=this;return(n=e.call(this)||this).firestore=t,n}return(0,Er.ZT)(t,e),t.prototype.convertBytes=function(e){return new zx(e)},t.prototype.convertReference=function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);
1return new Ox(this.firestore,null,t)},t}(VT),GT=function(){function e(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=nT(e)}return e.prototype.set=function(e,t,n){this._verifyNotCommitted();var r=zT(e,this._firestore),i=qT(r.converter,t,n),o=rT(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(o.toMutation(r._key,g_.none())),this},e.prototype.update=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];this._verifyNotCommitted();var o,s=zT(e,this._firestore);return o="string"==typeof(t=(0,sf.m9)(t))||t instanceof Gx?hT(this._dataReader,"WriteBatch.update",s._key,t,n,r):uT(this._dataReader,"WriteBatch.update",s._key,t),this._mutations.push(o.toMutation(s._key,g_.exists(!0))),this},e.prototype.delete=function(e){this._verifyNotCommitted();var t=zT(e,this._firestore);return this._mutations=this._mutations.concat(new P_(t._key,g_.none())),this},e.prototype.commit=function(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()},e.prototype._verifyNotCommitted=function(){if(this._committed)throw new gy(fy.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},e}();function zT(e,t){if((e=(0,sf.m9)(e)).firestore!==t)throw new gy(fy.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}var WT=function(e){function t(t){var n=this;return(n=e.call(this)||this).firestore=t,n}return(0,Er.ZT)(t,e),t.prototype.convertBytes=function(e){return new zx(e)},t.prototype.convertReference=function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);return new Ox(this.firestore,null,t)},t}(VT);function $T(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];e=Tx(e,Ox);var o=Tx(e.firestore,Qx),s=nT(o);return XT(o,[("string"==typeof(t=(0,sf.m9)(t))||t instanceof Gx?hT(s,"updateDoc",e._key,t,n,r):uT(s,"updateDoc",e._key,t)).toMutation(e._key,g_.exists(!0))])}function YT(e){for(var t,n,r,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];e=(0,sf.m9)(e);var s={includeMetadataChanges:!1},a=0;"object"!=typeof i[a]||jx(i[a])||(s=i[a],a++);var l,c,u,h={includeMetadataChanges:s.includeMetadataChanges};if(jx(i[a])){var d=i[a];i[a]=null===(t=d.next)||void 0===t?void 0:t.bind(d),i[a+1]=null===(n=d.error)||void 0===n?void 0:n.bind(d),i[a+2]=null===(r=d.complete)||void 0===r?void 0:r.bind(d)}if(e instanceof Ox)c=Tx(e.firestore,Qx),u=Rb(e._key.path),l={next:function(t){i[a]&&i[a](JT(c,e,t))},error:i[a+1],complete:i[a+2]};else{var A=Tx(e,Fx);c=Tx(A.firestore,Qx),u=A._query;var p=new WT(c);l={next:function(e){i[a]&&i[a](new TT(c,p,A,e))},error:i[a+1],complete:i[a+2]},PT(e._query)}return function(e,t,n,r){var i=this,o=new JI(r),s=new lI(t,o,n);return e.asyncQueue.enqueueAndForget(function(){return(0,Er.mG)(i,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return t=rI,[4,ux(e)];case 1:return[2,t.apply(void 0,[n.sent(),s])]}})})}),function(){o.Wo(),e.asyncQueue.enqueueAndForget(function(){return(0,Er.mG)(i,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return t=iI,[4,ux(e)];case 1:return[2,t.apply(void 0,[n.sent(),s])]}})})})}}(Hx(c),u,h,l)}function XT(e,t){return function(e,t){var n=this,r=new lC;return e.asyncQueue.enqueueAndForget(function(){return(0,Er.mG)(n,void 0,void 0,function(){var n;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:return n=bI,[4,cx(e)];case 1:return[2,n.apply(void 0,[i.sent(),t,r])]}})})}),r.promise}(Hx(e),t)}function JT(e,t,n){var r=n.docs.get(t._key),i=new WT(e);return new IT(e,i,t._key,r,new ET(n.hasPendingWrites,n.fromCache),t.converter)}var ZT=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n)||this)._firestore=t,r}return(0,Er.ZT)(t,e),t.prototype.get=function(t){var n=this,r=zT(t,this._firestore),i=new WT(this._firestore);return e.prototype.get.call(this,t).then(function(e){return new IT(n._firestore,i,r._key,e._document,new ET(!1,!1),r.converter)})},t}(function(){function e(e,t){this._firestore=e,this._transaction=t,this._dataReader=nT(e)}return e.prototype.get=function(e){var t=this,n=zT(e,this._firestore),r=new KT(this._firestore);return this._transaction.lookup([n._key]).then(function(e){if(!e||1!==e.length)return Cy();var i=e[0];if(i.isFoundDocument())return new wT(t._firestore,r,i.key,i,n.converter);if(i.isNoDocument())return new wT(t._firestore,r,n._key,null,n.converter);throw Cy()})},e.prototype.set=function(e,t,n){var r=zT(e,this._firestore),i=qT(r.converter,t,n),o=rT(this._dataReader,"Transaction.set",r._key,i,null!==r.converter,n);return this._transaction.set(r._key,o),this},e.prototype.update=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];var o,s=zT(e,this._firestore);
1return o="string"==typeof(t=(0,sf.m9)(t))||t instanceof Gx?hT(this._dataReader,"Transaction.update",s._key,t,n,r):uT(this._dataReader,"Transaction.update",s._key,t),this._transaction.update(s._key,o),this},e.prototype.delete=function(e){var t=zT(e,this._firestore);return this._transaction.delete(t._key),this},e}());function eB(){if("undefined"==typeof Uint8Array)throw new gy(fy.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function tB(){if("undefined"==typeof atob)throw new gy(fy.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var nB=function(){function e(e){this._delegate=e}return e.fromBase64String=function(t){return tB(),new e(zx.fromBase64String(t))},e.fromUint8Array=function(t){return eB(),new e(zx.fromUint8Array(t))},e.prototype.toBase64=function(){return tB(),this._delegate.toBase64()},e.prototype.toUint8Array=function(){return eB(),this._delegate.toUint8Array()},e.prototype.isEqual=function(e){return this._delegate.isEqual(e._delegate)},e.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},e}(),rB=function(){function e(){}return e.prototype.enableIndexedDbPersistence=function(e,t){return function(e,t){Kx(e=Tx(e,Qx));var n=Hx(e),r=e._freezeSettings(),i=new XI;return qx(n,i,new $I(i,r.cacheSizeBytes,null==t?void 0:t.forceOwnership))}(e._delegate,{forceOwnership:t})},e.prototype.enableMultiTabIndexedDbPersistence=function(e){return function(e){Kx(e=Tx(e,Qx));var t=Hx(e),n=e._freezeSettings(),r=new XI;return qx(t,r,new YI(r,n.cacheSizeBytes))}(e._delegate)},e.prototype.clearIndexedDbPersistence=function(e){return function(e){var t=this;if(e._initialized&&!e._terminated)throw new gy(fy.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");var n=new lC;return e._queue.enqueueAndForgetEvenWhileRestricted(function(){return(0,Er.mG)(t,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,function(e){return(0,Er.mG)(this,void 0,void 0,function(){return(0,Er.Jh)(this,function(t){switch(t.label){case 0:return hC.yt()?[4,hC.delete(e+"main")]:[2,Promise.resolve()];case 1:return t.sent(),[2]}})})}(wS(e._databaseId,e._persistenceKey))];case 1:return r.sent(),n.resolve(),[3,3];case 2:return t=r.sent(),n.reject(t),[3,3];case 3:return[2]}})})}),n.promise}(e._delegate)},e}(),iB=function(){function e(e,t,n){var r=this;this._delegate=t,this.Zc=n,this.INTERNAL={delete:function(){return r.terminate()}},e instanceof px||(this.tu=e)}return Object.defineProperty(e.prototype,"_databaseId",{get:function(){return this._delegate._databaseId},enumerable:!1,configurable:!0}),e.prototype.settings=function(e){var t=this._delegate._getSettings();e.merge||t.host===e.host||_y("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),e.merge&&delete(e=Object.assign(Object.assign({},t),e)).merge,this._delegate._setSettings(e)},e.prototype.useEmulator=function(e,t,n){void 0===n&&(n={}),function(e,t,n,r){var i;void 0===r&&(r={});var o=(e=Tx(e,Px))._getSettings();if("firestore.googleapis.com"!==o.host&&o.host!==t&&_y("Host has been set in both settings() and useEmulator(), emulator host will be used"),e._setSettings(Object.assign(Object.assign({},o),{host:t+":"+n,ssl:!1})),r.mockUserToken){var s,a;if("string"==typeof r.mockUserToken)s=r.mockUserToken,a=ZS.MOCK_USER;else{s=(0,sf.Sg)(r.mockUserToken,null===(i=e._app)||void 0===i?void 0:i.options.projectId);var l=r.mockUserToken.sub||r.mockUserToken.user_id;if(!l)throw new gy(fy.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");a=new ZS(l)}e._credentials=new vx(new gx(s,a))}}(this._delegate,e,t,n)},e.prototype.enableNetwork=function(){return function(e){var t=this;return e.asyncQueue.enqueue(function(){return(0,Er.mG)(t,void 0,void 0,function(){var t,n;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:return[4,sx(e)];case 1:return t=r.sent(),[4,lx(e)];case 2:return n=r.sent(),[2,(t.setNetworkEnabled(!0),function(e){var t=Ey(e);return t.Or.delete(0),EE(t)}(n))]}})})})}(Hx(Tx(this._delegate,Qx)))},e.prototype.disableNetwork=function(){return function(e){var t=this;return e.asyncQueue.enqueue(function(){return(0,Er.mG)(t,void 0,void 0,function(){var t,n;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:return[4,sx(e)];case 1:return t=r.sent(),[4,lx(e)];case 2:return n=r.sent(),[2,(t.setNetworkEnabled(!1),function(e){return(0,Er.mG)(this,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return(t=Ey(e)).Or.add(0),[4,IE(t)];case 1:return n.sent(),t.Br.set("Offline"),[2]}})})}(n))]}})})})}(Hx(Tx(this._delegate,Qx)))},e.prototype.enablePersistence=function(e){var t=!1,n=!1;return e&&Sx("synchronizeTabs",t=!!e.synchronizeTabs,"experimentalForceOwningTab",n=!!e.experimentalForceOwningTab),t?this.Zc.enableMultiTabIndexedDbPersistence(this):this.Zc.enableIndexedDbPersistence(this,n)},e.prototype.clearPersistence=function(){return this.Zc.clearIndexedDbPersistence(this)},e.prototype.terminate=function(){return this.tu&&(this.tu._removeServiceInstance("firestore"),this.tu._removeServiceInstance("firestore-exp")),this._delegate._delete()},e.prototype.waitForPendingWrites=function(){return function(e){var t=this,n=new lC;return e.asyncQueue.enqueueAndForget(function(){return(0,Er.mG)(t,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(r){switch(r.label){case 0:return t=II,[4,cx(e)];case 1:return[2,t.apply(void 0,[r.sent(),n])]}})})}),n.promise}(Hx(Tx(this._delegate,Qx)))},e.prototype.onSnapshotsInSync=function(e){return function(e,t){return function(e,t){var n=this,r=new JI(t);return e.asyncQueue.enqueueAndForget(function(){return(0,Er.mG)(n,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return t=function(e,t){Ey(e).Gr.add(t),t.next()},[4,ux(e)];case 1:return[2,t.apply(void 0,[n.sent(),r])]}})})}),function(){r.Wo(),e.asyncQueue.enqueueAndForget(function(){return(0,Er.mG)(n,void 0,void 0,function(){var t;return(0,Er.Jh)(this,function(n){switch(n.label){case 0:return t=function(e,t){Ey(e).Gr.delete(t)},[4,ux(e)];case 1:return[2,t.apply(void 0,[n.sent(),r])]}})})})}}(Hx(e=Tx(e,Qx)),jx(t)?t:{next:t})}(this._delegate,e)},Object.defineProperty(e.prototype,"app",{get:function(){if(!this.tu)throw new gy(fy.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.tu}
1,enumerable:!1,configurable:!0}),e.prototype.collection=function(e){try{return new vB(this,Mx(this._delegate,e))}catch(e){throw uB(e,"collection()","Firestore.collection()")}},e.prototype.doc=function(e){try{return new cB(this,Dx(this._delegate,e))}catch(e){throw uB(e,"doc()","Firestore.doc()")}},e.prototype.collectionGroup=function(e){try{return new fB(this,function(e,t){if(e=Tx(e,Px),wx("collectionGroup","collection id",t),t.indexOf("/")>=0)throw new gy(fy.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function collectionGroup(). Collection IDs must not contain '/'.");return new Fx(e,null,function(e){return new Db(Ny.emptyPath(),e)}(t))}(this._delegate,e))}catch(e){throw uB(e,"collectionGroup()","Firestore.collectionGroup()")}},e.prototype.runTransaction=function(e){var t=this;return function(e,t){return function(e,t){var n=this,r=new lC;return e.asyncQueue.enqueueAndForget(function(){return(0,Er.mG)(n,void 0,void 0,function(){var n;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:return[4,function(e){return ox(e).then(function(e){return e.datastore})}(e)];case 1:return n=i.sent(),new ex(e.asyncQueue,n,t,r).run(),[2]}})})}),r.promise}(Hx(e),function(n){return t(new ZT(e,n))})}(this._delegate,function(n){return e(new sB(t,n))})},e.prototype.batch=function(){var e=this;return Hx(this._delegate),new aB(new GT(this._delegate,function(t){return XT(e._delegate,t)}))},e.prototype.loadBundle=function(e){throw new gy(fy.FAILED_PRECONDITION,'"loadBundle()" does not exist, have you imported "firebase/firestore/bundle"?')},e.prototype.namedQuery=function(e){throw new gy(fy.FAILED_PRECONDITION,'"namedQuery()" does not exist, have you imported "firebase/firestore/bundle"?')},e}(),oB=function(e){function t(t){var n=this;return(n=e.call(this)||this).firestore=t,n}return(0,Er.ZT)(t,e),t.prototype.convertBytes=function(e){return new nB(new zx(e))},t.prototype.convertReference=function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);return cB.eu(t,this.firestore,null)},t}(VT),sB=function(){function e(e,t){this._firestore=e,this._delegate=t,this._userDataWriter=new oB(e)}return e.prototype.get=function(e){var t=this,n=yB(e);return this._delegate.get(n).then(function(e){return new AB(t._firestore,new IT(t._firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,n.converter))})},e.prototype.set=function(e,t,n){var r=yB(e);return n?(Cx("Transaction.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this},e.prototype.update=function(e,t,n){for(var r,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=yB(e);return 2===arguments.length?this._delegate.update(s,t):(r=this._delegate).update.apply(r,(0,Er.ev)([s,t,n],i)),this},e.prototype.delete=function(e){var t=yB(e);return this._delegate.delete(t),this},e}(),aB=function(){function e(e){this._delegate=e}return e.prototype.set=function(e,t,n){var r=yB(e);return n?(Cx("WriteBatch.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this},e.prototype.update=function(e,t,n){for(var r,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=yB(e);return 2===arguments.length?this._delegate.update(s,t):(r=this._delegate).update.apply(r,(0,Er.ev)([s,t,n],i)),this},e.prototype.delete=function(e){var t=yB(e);return this._delegate.delete(t),this},e.prototype.commit=function(){return this._delegate.commit()},e}(),lB=function(){function e(e,t,n){this._firestore=e,this._userDataWriter=t,this._delegate=n}return e.prototype.fromFirestore=function(e,t){var n=new xT(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,null);return this._delegate.fromFirestore(new pB(this._firestore,n),null!=t?t:{})},e.prototype.toFirestore=function(e,t){return t?this._delegate.toFirestore(e,t):this._delegate.toFirestore(e)},e.nu=function(t,n){var r=e.su,i=r.get(t);i||(i=new WeakMap,r.set(t,i));var o=i.get(n);return o||(o=new e(t,new oB(t),n),i.set(n,o)),o},e}();lB.su=new WeakMap;var cB=function(){function e(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new oB(e)}return e.iu=function(t,n,r){if(t.length%2!=0)throw new gy(fy.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.canonicalString()+" has "+t.length);return new e(n,new Ox(n._delegate,r,new Jy(t)))},e.eu=function(t,n,r){return new e(n,new Ox(n._delegate,r,t))},Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new vB(this.firestore,this._delegate.parent)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),e.prototype.collection=function(e){try{return new vB(this.firestore,Mx(this._delegate,e))}catch(e){throw uB(e,"collection()","DocumentReference.collection()")}},e.prototype.isEqual=function(e){return(e=(0,sf.m9)(e))instanceof Ox&&Nx(this._delegate,e)},e.prototype.set=function(e,t){t=Cx("DocumentReference.set",t);try{return function(e,t,n){e=Tx(e,Ox);var r=Tx(e.firestore,Qx),i=qT(e.converter,t,n);return XT(r,[rT(nT(r),"setDoc",e._key,i,null!==e.converter,n).toMutation(e._key,g_.none())])}(this._delegate,e,t)}catch(e){throw uB(e,"setDoc()","DocumentReference.set()")}},e.prototype.update=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];try{return 1===arguments.length?$T(this._delegate,e):$T.apply(void 0,(0,Er.ev)([this._delegate,e,t],n))}catch(e){throw uB(e,"updateDoc()","DocumentReference.update()")}},e.prototype.delete=function(){return XT(Tx((e=this._delegate).firestore,Qx),[new P_(e._key,g_.none())]);var e},e.prototype.onSnapshot=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=hB(t),i=dB(t,function(t){return new AB(e.firestore,new IT(e.firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,e._delegate.converter))});return YT(this._delegate,r,i)},e.prototype.get=function(e){var t=this;return("cache"===(null==e?void 0:e.source)?function(e){e=Tx(e,Ox);var t=Tx(e.firestore,Qx),n=Hx(t),r=new WT(t);return function(e,t){var n=this,r=new lC;return e.asyncQueue.enqueueAndForget(function(){return(0,Er.mG)(n,void 0,void 0,function(){var n;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:return n=function(e,t,n){return(0,Er.mG)(this,void 0,void 0,function(){var r,i;return(0,Er.Jh)(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,function(e,t){var n=Ey(e);return n.persistence.runTransaction("read document","readonly",function(e){return n.Mn.mn(e,t)})}(e,t)];case 1:return(i=o.sent()).isFoundDocument()?n.resolve(i):i.isNoDocument()?n.resolve(null):n.reject(new gy(fy.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),[3,3];case 2:return r=o.sent(),i=XE(r,"Failed to get document '"+t+" from cache"),n.reject(i),[3,3];case 3:return[2]}})})},[4,ax(e)];case 1:return[2,n.apply(void 0,[i.sent(),t,r])]}})})}),r.promise}(n,e._key).then(function(n){return new IT(t,r,e._key,n,new ET(null!==n&&n.hasLocalMutations,!0),e.converter)})}(this._delegate):"server"===(null==e?void 0:e.source)?function(e){e=Tx(e,Ox);var t=Tx(e.firestore,Qx);return hx(Hx(t),e._key,{source:"server"}).then(function(n){return JT(t,e,n)})}(this._delegate):function(e){e=Tx(e,Ox);var t=Tx(e.firestore,Qx);return hx(Hx(t),e._key).then(function(n){return JT(t,e,n)})}(this._delegate)).then(function(e){return new AB(t.firestore,new IT(t.firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,t._delegate.converter))})},e.prototype.withConverter=function(t){return new e(this.firestore,this._delegate.withConverter(t?lB.nu(this.firestore,t):null))},e}();function uB(e,t,n){return e.message=e.message.replace(t,n),e}function hB(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if("object"==typeof r&&!jx(r))return r}return{}}function dB(e,t){var n,r,i;return{next:function(e){i.next&&i.next(t(e))},error:null===(n=(i=jx(e[0])?e[0]:jx(e[1])?e[1]:"function"==typeof e[0]?{next:e[0],error:e[1],complete:e[2]}:{next:e[1],error:e[2],complete:e[3]}).error)||void 0===n?void 0:n.bind(i),complete:null===(r=i.complete)||void 0===r?void 0:r.bind(i)}}var AB=function(){function e(e,t){this._firestore=e,this._delegate=t}return Object.defineProperty(e.prototype,"ref",{get:function(){return new cB(this._firestore,this._delegate.ref)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exists",{get:function(){return this._delegate.exists()},enumerable:!1,configurable:!0}),e.prototype.data=function(e){return this._delegate.data(e)},e.prototype.get=function(e,t){return this._delegate.get(e,t)},e.prototype.isEqual=function(e){return kT(this._delegate,e._delegate)},e}(),pB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,Er.ZT)(t,e),t.prototype.data=function(e){return this._delegate.data(e)},t}(AB),fB=function(){function e(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new oB(e)}return e.prototype.where=function(t,n,r){try{return new e(this.firestore,FT(this._delegate,function(e,t,n){var r=t,i=ST("where",e);return new LT(i,r,n)}(t,n,r)))}catch(t){throw uB(t,/(orderBy|where)\(\)/,"Query.$1()")}},e.prototype.orderBy=function(t,n){try{return new e(this.firestore,FT(this._delegate,function(e,t){void 0===t&&(t="asc");var n=t,r=ST("orderBy",e);return new MT(r,n)}(t,n)))}catch(t){throw uB(t,/(orderBy|where)\(\)/,"Query.$1()")}},e.prototype.limit=function(t){try{return new e(this.firestore,FT(this._delegate,function(e){return Bx("limit",e),new DT("limit",e,"F")}(t)))}catch(t){throw uB(t,"limit()","Query.limit()")}},e.prototype.limitToLast=function(t){try{return new e(this.firestore,FT(this._delegate,function(e){return Bx("limitToLast",e),new DT("limitToLast",e,"L")}(t)))}catch(t){throw uB(t,"limitToLast()","Query.limitToLast()")}},e.prototype.startAt=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return new e(this.firestore,FT(this._delegate,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new NT("startAt",e,!0)}).apply(void 0,t)))}catch(t){throw uB(t,"startAt()","Query.startAt()")}},e.prototype.startAfter=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return new e(this.firestore,FT(this._delegate,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new NT("startAfter",e,!1)}).apply(void 0,t)))}catch(t){throw uB(t,"startAfter()","Query.startAfter()")}},e.prototype.endBefore=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return new e(this.firestore,FT(this._delegate,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new RT("endBefore",e,!0)}).apply(void 0,t)))}catch(t){throw uB(t,"endBefore()","Query.endBefore()")}},e.prototype.endAt=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return new e(this.firestore,FT(this._delegate,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new RT("endAt",e,!1)}).apply(void 0,t)))}catch(t){throw uB(t,"endAt()","Query.endAt()")}},e.prototype.isEqual=function(e){return Rx(this._delegate,e._delegate)},e.prototype.get=function(e){var t=this;return("cache"===(null==e?void 0:e.source)?function(e){e=Tx(e,Fx);var t=Tx(e.firestore,Qx),n=Hx(t),r=new WT(t);return function(e,t){var n=this,r=new lC;return e.asyncQueue.enqueueAndForget(function(){return(0,Er.mG)(n,void 0,void 0,function(){var n;return(0,Er.Jh)(this,function(i){switch(i.label){case 0:return n=function(e,t,n){return(0,Er.mG)(this,void 0,void 0,function(){var r,i,o,s,a;return(0,Er.Jh)(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,NS(e,t,!0)];case 1:return a=l.sent(),r=new AI(t,a.Bn),i=r._o(a.documents),o=r.applyChanges(i,!1),n.resolve(o.snapshot),[3,3];case 2:return s=l.sent(),a=XE(s,"Failed to execute query '"+t+" against cache"),n.reject(a),[3,3];case 3:return[2]}})})},[4,ax(e)];case 1:return[2,n.apply(void 0,[i.sent(),t,r])]}})})}),r.promise}(n,e._query).then(function(n){return new TT(t,r,e,n)})}(this._delegate):"server"===(null==e?void 0:e.source)?function(e){e=Tx(e,Fx);var t=Tx(e.firestore,Qx),n=Hx(t),r=new WT(t);return dx(n,e._query,{source:"server"}).then(function(n){return new TT(t,r,e,n)})}(this._delegate):function(e){e=Tx(e,Fx);var t=Tx(e.firestore,Qx),n=Hx(t),r=new WT(t);return PT(e._query),dx(n,e._query).then(function(n){return new TT(t,r,e,n)})}
1(this._delegate)).then(function(e){return new mB(t.firestore,new TT(t.firestore._delegate,t._userDataWriter,t._delegate,e._snapshot))})},e.prototype.onSnapshot=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=hB(t),i=dB(t,function(t){return new mB(e.firestore,new TT(e.firestore._delegate,e._userDataWriter,e._delegate,t._snapshot))});return YT(this._delegate,r,i)},e.prototype.withConverter=function(t){return new e(this.firestore,this._delegate.withConverter(t?lB.nu(this.firestore,t):null))},e}(),gB=function(){function e(e,t){this._firestore=e,this._delegate=t}return Object.defineProperty(e.prototype,"type",{get:function(){return this._delegate.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"doc",{get:function(){return new pB(this._firestore,this._delegate.doc)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"oldIndex",{get:function(){return this._delegate.oldIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newIndex",{get:function(){return this._delegate.newIndex},enumerable:!1,configurable:!0}),e}(),mB=function(){function e(e,t){this._firestore=e,this._delegate=t}return Object.defineProperty(e.prototype,"query",{get:function(){return new fB(this._firestore,this._delegate.query)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._delegate.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this._delegate.empty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"docs",{get:function(){var e=this;return this._delegate.docs.map(function(t){return new pB(e._firestore,t)})},enumerable:!1,configurable:!0}),e.prototype.docChanges=function(e){var t=this;return this._delegate.docChanges(e).map(function(e){return new gB(t._firestore,e)})},e.prototype.forEach=function(e,t){var n=this;this._delegate.forEach(function(r){e.call(t,new pB(n._firestore,r))})},e.prototype.isEqual=function(e){return kT(this._delegate,e._delegate)},e}(),vB=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n)||this).firestore=t,r._delegate=n,r}return(0,Er.ZT)(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._delegate.parent;return e?new cB(this.firestore,e):null},enumerable:!1,configurable:!0}),t.prototype.doc=function(e){try{return new cB(this.firestore,void 0===e?Dx(this._delegate):Dx(this._delegate,e))}catch(e){throw uB(e,"doc()","CollectionReference.doc()")}},t.prototype.add=function(e){var t=this;return function(e,t){var n=Tx(e.firestore,Qx),r=Dx(e),i=qT(e.converter,t);return XT(n,[rT(nT(e.firestore),"addDoc",r._key,i,null!==e.converter,{}).toMutation(r._key,g_.exists(!1))]).then(function(){return r})}(this._delegate,e).then(function(e){return new cB(t.firestore,e)})},t.prototype.isEqual=function(e){return Nx(this._delegate,e._delegate)},t.prototype.withConverter=function(e){return new t(this.firestore,this._delegate.withConverter(e?lB.nu(this.firestore,e):null))},t}(fB);function yB(e){return Tx(e,Ox)}var bB,_B=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._delegate=new(Gx.bind.apply(Gx,(0,Er.ev)([void 0],e)))}return e.documentId=function(){return new e(Uy.keyField().canonicalString())},e.prototype.isEqual=function(e){return(e=(0,sf.m9)(e))instanceof Gx&&this._delegate._internalPath.isEqual(e._internalPath)},e}(),wB=function(){function e(e){this._delegate=e}return e.serverTimestamp=function(){var t=new sT("serverTimestamp");return t._methodName="FieldValue.serverTimestamp",new e(t)},e.delete=function(){var t=new iT("deleteField");return t._methodName="FieldValue.delete",new e(t)},e.arrayUnion=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new aT("arrayUnion",e)}).apply(void 0,t);return r._methodName="FieldValue.arrayUnion",new e(r)},e.arrayRemove=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new lT("arrayRemove",e)}).apply(void 0,t);return r._methodName="FieldValue.arrayRemove",new e(r)},e.increment=function(t){var n=function(e){return new cT("increment",e)}(t);return n._methodName="FieldValue.increment",new e(n)},e.prototype.isEqual=function(e){return this._delegate.isEqual(e._delegate)},e}(),CB=n(5119),SB={Firestore:iB,GeoPoint:$x,Timestamp:Py,Blob:nB,Transaction:sB,WriteBatch:aB,DocumentReference:cB,DocumentSnapshot:AB,Query:fB,QueryDocumentSnapshot:pB,QuerySnapsh
1ot:mB,CollectionReference:vB,FieldPath:_B,FieldValue:wB,setLogLevel:function(e){my.setLogLevel(e)},CACHE_SIZE_UNLIMITED:-1};function EB(e,t){return function(e,t=hi.z){return new Xt.y(n=>{let r;return null!=t?t.schedule(()=>{r=e.onSnapshot({includeMetadataChanges:!0},n)}):r=e.onSnapshot({includeMetadataChanges:!0},n),()=>{null!=r&&r()}})}(e,t)}function IB(e,t){return EB(e,t).pipe((0,on.U)(e=>({payload:e,type:"query"})))}function xB(e,t){return IB(e,t).pipe(ei(void 0),Xs(),(0,on.U)(([e,t])=>{const n=t.payload.docChanges(),r=n.map(e=>({type:e.type,payload:e}));return e&&JSON.stringify(e.payload.metadata)!==JSON.stringify(t.payload.metadata)&&t.payload.docs.forEach((t,i)=>{const o=n.find(e=>e.doc.ref.isEqual(t.ref)),s=null==e?void 0:e.payload.docs.find(e=>e.ref.isEqual(t.ref));o&&JSON.stringify(o.doc.metadata)===JSON.stringify(t.metadata)||!o&&s&&JSON.stringify(s.metadata)===JSON.stringify(t.metadata)||r.push({type:"modified",payload:{oldIndex:i,newIndex:i,type:"modified",doc:t}})}),r}))}function TB(e,t,n){return xB(e,n).pipe(tf((e,n)=>function(e,t,n){return t.forEach(t=>{n.indexOf(t.type)>-1&&(e=function(e,t){switch(t.type){case"added":if(!e[t.newIndex]||!e[t.newIndex].doc.ref.isEqual(t.doc.ref))return BB(e,t.newIndex,0,t);break;case"modified":if(null==e[t.oldIndex]||e[t.oldIndex].doc.ref.isEqual(t.doc.ref)){if(t.oldIndex!==t.newIndex){const n=e.slice();return n.splice(t.oldIndex,1),n.splice(t.newIndex,0,t),n}return BB(e,t.newIndex,1,t)}break;case"removed":if(e[t.oldIndex]&&e[t.oldIndex].doc.ref.isEqual(t.doc.ref))return BB(e,t.oldIndex,1)}return e}(e,t))}),e}(e,n.map(e=>e.payload),t),[]),ti(),(0,on.U)(e=>e.map(e=>({type:e.type,payload:e}))))}function BB(e,t,n,...r){const i=e.slice();return i.splice(t,n,...r),i}function kB(e){return e&&0!==e.length||(e=["added","removed","modified"]),e}(function(e,t){e.INTERNAL.registerComponent(new CB.wA("firestore",function(e){return function(e,t){return new iB(e,new Qx(e,t),new rB)}(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"))},"PUBLIC").setServiceProps(Object.assign({},SB)))})(bB=of.Z),bB.registerVersion("@firebase/firestore","2.4.0");class PB{constructor(e,t,n){this.ref=e,this.query=t,this.afs=n}stateChanges(e){let t=xB(this.query,this.afs.schedulers.outsideAngular);return e&&e.length>0&&(t=t.pipe((0,on.U)(t=>t.filter(t=>e.indexOf(t.type)>-1)))),t.pipe(ei(void 0),Xs(),tn(([e,t])=>t.length>0||!e),(0,on.U)(([e,t])=>t),this.afs.keepUnstableUntilFirst)}auditTrail(e){return this.stateChanges(e).pipe(tf((e,t)=>[...e,...t],[]))}snapshotChanges(e){const t=kB(e);return TB(this.query,t,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(e={}){return IB(this.query,this.afs.schedulers.outsideAngular).pipe((0,on.U)(t=>t.payload.docs.map(t=>e.idField?Object.assign(Object.assign({},t.data()),{[e.idField]:t.id}):t.data())),this.afs.keepUnstableUntilFirst)}get(e){return(0,Un.D)(this.query.get(e)).pipe((0,Qn.QV)(this.afs.schedulers.insideAngular))}add(e){return this.ref.add(e)}doc(e){return new OB(this.ref.doc(e),this.afs)}}class OB{constructor(e,t){this.ref=e,this.afs=t}set(e,t){return this.ref.set(e,t)}update(e){return this.ref.update(e)}delete(){return this.ref.delete()}collection(e,t){const n=this.ref.collection(e),{ref:r,query:i}=RB(n,t);return new PB(r,i,this.afs)}snapshotChanges(){return EB(this.ref,this.afs.schedulers.outsideAngular).pipe(ei(void 0),Xs(),(0,on.U)(([e,t])=>t.exists?(null==e?void 0:e.exists)?{payload:t,type:"modified"}:{payload:t,type:"added"}:{payload:t,type:"removed"})).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(e={}){return this.snapshotChanges().pipe((0,on.U)(({payload:t})=>e.idField?Object.assign(Object.assign({},t.data()),{[e.idField]:t.id}):t.data()))}get(e){return(0,Un.D)(this.ref.get(e)).pipe((0,Qn.QV)(this.afs.schedulers.insideAngular))}}class FB{constructor(e,t){this.query=e,this.afs=t}stateChanges(e){return e&&0!==e.length?xB(this.query,this.afs.schedulers.outsideAngular).pipe((0,on.U)(t=>t.filter(t=>e.indexOf(t.type)>-1)),tn(e=>e.length>0),this.afs.keepUnstableUntilFirst):xB(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(e){return this.stateChanges(e).pipe(tf((e,t)=>
1[...e,...t],[]))}snapshotChanges(e){const t=kB(e);return TB(this.query,t,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(e={}){return IB(this.query,this.afs.schedulers.outsideAngular).pipe((0,on.U)(t=>t.payload.docs.map(t=>e.idField?Object.assign({[e.idField]:t.id},t.data()):t.data())),this.afs.keepUnstableUntilFirst)}get(e){return(0,Un.D)(this.query.get(e)).pipe((0,Qn.QV)(this.afs.schedulers.insideAngular))}}const LB=new i.InjectionToken("angularfire2.enableFirestorePersistence"),MB=new i.InjectionToken("angularfire2.firestore.persistenceSettings"),DB=new i.InjectionToken("angularfire2.firestore.settings"),NB=new i.InjectionToken("angularfire2.firestore.use-emulator");function RB(e,t=(e=>e)){return{query:t(e),ref:e}}let UB=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l){this.schedulers=new gr.HU(o),this.keepUnstableUntilFirst=(0,gr.ss)(this.schedulers);const c=(0,gr.on)(e,o,t);!Ir.Z.auth&&l&&(0,gr.yq)();const u=a;[this.firestore,this.persistenceEnabled$]=(0,gr.sI)(`${c.name}.firestore`,"AngularFirestore",c,()=>{const e=o.runOutsideAngular(()=>c.firestore());if(r&&e.settings(r),u&&e.useEmulator(...u),n&&!(0,Ft.PM)(i)){const t=()=>{try{return(0,Un.D)(e.enablePersistence(s||void 0).then(()=>!0,()=>!1))}catch(bB){return"undefined"!=typeof console&&console.warn(bB),(0,Yt.of)(!1)}};return[e,o.runOutsideAngular(t)]}return[e,(0,Yt.of)(!1)]},[r,u,n])}collection(e,t){let n;n="string"==typeof e?this.firestore.collection(e):e;const{ref:r,query:i}=RB(n,t),o=this.schedulers.ngZone.run(()=>r);return new PB(o,i,this)}collectionGroup(e,t){const n=t||(e=>e),r=this.firestore.collectionGroup(e);return new FB(n(r),this)}doc(e){let t;t="string"==typeof e?this.firestore.doc(e):e;const n=this.schedulers.ngZone.run(()=>t);return new OB(n,this)}createId(){return this.firestore.collection("_").doc().id}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](gr.Dh),i["\u0275\u0275inject"](gr.xv,8),i["\u0275\u0275inject"](LB,8),i["\u0275\u0275inject"](DB,8),i["\u0275\u0275inject"](i.PLATFORM_ID),i["\u0275\u0275inject"](i.NgZone),i["\u0275\u0275inject"](MB,8),i["\u0275\u0275inject"](NB,8),i["\u0275\u0275inject"](mr,8))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({factory:function(){return new e(i["\u0275\u0275inject"](gr.Dh),i["\u0275\u0275inject"](gr.xv,8),i["\u0275\u0275inject"](LB,8),i["\u0275\u0275inject"](DB,8),i["\u0275\u0275inject"](i.PLATFORM_ID),i["\u0275\u0275inject"](i.NgZone),i["\u0275\u0275inject"](MB,8),i["\u0275\u0275inject"](NB,8),i["\u0275\u0275inject"](mr,8))},token:e,providedIn:"any"}),e})();var jB=n(2875);function QB(e){return function(t){return 0===e?(0,tr.c)():t.lift(new HB(e))}}class HB{constructor(e){if(this.total=e,this.total<0)throw new er}call(e,t){return t.subscribe(new VB(e,this.total))}}class VB extends en.L{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i<n;i++){const i=t++%n;e.next(r[i])}}e.complete()}}var qB=n(1564);class KB{constructor(e){this.callback=e}call(e,t){return t.subscribe(new GB(e,this.callback))}}class GB extends en.L{constructor(e,t){super(e),this.add(new zn.w(t))}}class zB{constructor(e,t){this.id=e,this.url=t}}class WB extends zB{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class $B extends zB{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class YB extends zB{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class XB extends zB{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class JB extends zB{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ZB extends zB{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ek extends zB{constructor(e,t,n,r,i){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class tk extends zB{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nk extends zB{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rk{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ik{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ok{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sk{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ak{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lk{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ck{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const uk="primary";class hk{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function dk(e){return new hk(e)}function Ak(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function pk(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const i={};for(let o=0;o<r.length;o++){const t=r[o],n=e[o];if(t.startsWith(":"))i[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function fk(e,t){const n=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!gk(e[i],t[i]))return!1;return!0}function gk(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every((e,t)=>r[t]===e)}return e===t}function mk(e){return Array.prototype.concat.apply([],e)}function vk(e){return e.length>0?e[e.length-1]:null}function yk(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function bk(e){return(0,i["\u0275isObservable"])(e)?e:(0,i["\u0275isProm
1ise"])(e)?(0,Un.D)(Promise.resolve(e)):(0,Yt.of)(e)}const _k={exact:function e(t,n,r){if(!kk(t.segments,n.segments))return!1;if(!Ik(t.segments,n.segments,r))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i],r))return!1}return!0},subset:Sk},wk={exact:function(e,t){return fk(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>gk(e[n],t[n]))},ignored:()=>!0};function Ck(e,t,n){return _k[n.paths](e.root,t.root,n.matrixParams)&&wk[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Sk(e,t,n){return Ek(e,t,t.segments,n)}function Ek(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!!kk(i,n)&&!t.hasChildren()&&!!Ik(i,n,r)}if(e.segments.length===n.length){if(!kk(e.segments,n))return!1;if(!Ik(e.segments,n,r))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!Sk(e.children[n],t.children[n],r))return!1}return!0}{const i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!kk(e.segments,i)&&!!Ik(e.segments,i,r)&&!!e.children.primary&&Ek(e.children.primary,t,o,r)}}function Ik(e,t,n){return t.every((t,r)=>wk[n](e[r].parameters,t.parameters))}class xk{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=dk(this.queryParams)),this._queryParamMap}toString(){return Fk.serialize(this)}}class Tk{constructor(e,t){this.segments=e,this.children=t,this.parent=null,yk(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lk(this)}}class Bk{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=dk(this.parameters)),this._parameterMap}toString(){return Qk(this)}}function kk(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class Pk{}class Ok{parse(e){const t=new Gk(e);return new xk(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`/${Mk(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Nk(t)}=${Nk(e)}`).join("&"):`${Nk(t)}=${Nk(n)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${function(e){return encodeURI(e)}(e.fragment)}`:""}`}}const Fk=new Ok;function Lk(e){return e.segments.map(e=>Qk(e)).join("/")}function Mk(e,t){if(!e.hasChildren())return Lk(e);if(t){const t=e.children.primary?Mk(e.children.primary,!1):"",n=[];return yk(e.children,(e,t)=>{t!==uk&&n.push(`${t}:${Mk(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return yk(e.children,(e,r)=>{r===uk&&(n=n.concat(t(e,r)))}),yk(e.children,(e,r)=>{r!==uk&&(n=n.concat(t(e,r)))}),n}(e,(t,n)=>n===uk?[Mk(e.children.primary,!1)]:[`${n}:${Mk(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${Lk(e)}/${t[0]}`:`${Lk(e)}/(${t.join("//")})`}}function Dk(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nk(e){return Dk(e).replace(/%3B/gi,";")}function Rk(e){return Dk(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Uk(e){return decodeURIComponent(e)}function jk(e){return Uk(e.replace(/\+/g,"%20"))}function Qk(e){return`${Rk(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Rk(e)}=${Rk(t[e])}`).join("")}`;var t}const Hk=/^[^\/()?;=#]+/;function Vk(e){const t=e.match(Hk);return t?t[0]:""}const qk=/^[^=?&#]+/,Kk=/^[^?&#]+/;class Gk{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Tk([],{}):new Tk([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}
vendor: 4,501 bytes, line 1
1parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Tk(e,t)),n}parseSegment(){const e=Vk(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Bk(Uk(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Vk(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Vk(this.remaining);e&&(n=e,this.capture(n))}e[Uk(t)]=Uk(n)}parseQueryParam(e){const t=function(e){const t=e.match(qk);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(Kk);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=jk(t),i=jk(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(i)}else e[r]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Vk(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=uk);const o=this.parseChildren();t[i]=1===Object.keys(o).length?o.primary:new Tk([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class zk{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Wk(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Wk(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=$k(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return $k(e,this._root).map(e=>e.value)}}function Wk(e,t){if(e===t.value)return t;for(const n of t.children){const t=Wk(e,n);if(t)return t}return null}function $k(e,t){if(e===t.value)return[t];for(const n of t.children){const r=$k(e,n);if(r.length)return r.unshift(t),r}return[]}class Yk{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Xk(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Jk extends zk{constructor(e,t){super(e),this.snapshot=t,iP(this,e)}toString(){return this.snapshot.toString()}}function Zk(e,t){const n=function(e,t){const n=new nP([],{},{},"",{},uk,t,null,e.root,-1,{});return new rP("",new Yk(n,[]))}(e,t),r=new yo([new Bk("",{})]),i=new yo({}),o=new yo({}),s=new yo({}),a=new yo(""),l=new eP(r,i,s,a,o,uk,t,n.root);return l.snapshot=n.root,new Jk(new Yk(l,[]),n)}class eP{constructor(e,t,n,r,i,o,s,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,on.U)(e=>dk(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,on.U)(e=>dk(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function tP(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>
1({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class nP{constructor(e,t,n,r,i,o,s,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=dk(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=dk(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class rP extends zk{constructor(e,t){super(t),this.url=e,iP(this,t)}toString(){return oP(this._root)}}function iP(e,t){t.value._routerState=e,t.children.forEach(t=>iP(e,t))}function oP(e){const t=e.children.length>0?` { ${e.children.map(oP).join(", ")} } `:"";return`${e.value}${t}`}function sP(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,fk(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),fk(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!fk(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),fk(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function aP(e,t){return fk(e.params,t.params)&&function(e,t){return kk(e,t)&&e.every((e,n)=>fk(e.parameters,t[n].parameters))}(e.url,t.url)&&!(!e.parent!=!t.parent)&&(!e.parent||aP(e.parent,t.parent))}function lP(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function(e,t,n){return t.children.map(t=>{for(const r of n.children)if(e.shouldReuseRoute(t.value,r.value.snapshot))return lP(e,t,r);return lP(e,t)})}(e,t,n);return new Yk(r,i)}{if(e.shouldAttach(t.value)){const n=e.retrieve(t.value);if(null!==n){const e=n.route;return cP(t,e),e}}const n=function(e){return new eP(new yo(e.url),new yo(e.params),new yo(e.queryParams),new yo(e.fragment),new yo(e.data),e.outlet,e.component,e)}(t.value),r=t.children.map(t=>lP(e,t));return new Yk(n,r)}}function cP(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)cP(e.children[n],t.children[n])}function uP(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function hP(e){return"object"==typeof e&&null!=e&&e.outlets}function dP(e,t,n,r,i){let o={};return r&&yk(r,(e,t)=>{o[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new xk(n.root===e?t:AP(n.root,e,t),o,i)}function AP(e,t,n){const r={};return yk(e.children,(e,i)=>{r[i]=e===t?n:AP(e,t,n)}),new Tk(e.segments,r)}class pP{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&uP(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(hP);if(r&&r!==vk(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class fP{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function gP(e,t,n){if(e||(e=new Tk([],{})),0===e.segments.length&&e.hasChildren())return mP(e,t,n);const r=function(e,t,n){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;const t=e.segments[i],s=n[r];if(hP(s))break;const a=`${s}`,l=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!_P(a,l,t))return o;r+=2}else{if(!_P(a,{},t))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new Tk(e.segments.slice(0,r.pathIndex),{});return t.children.primary=new Tk(e.segments.slice(r.pathIndex),e.children),mP(t,0,i)}return r.match&&0===i.length?new Tk(e.segments,{}):r.match&&!e.hasChildren()?vP(e,t,n):r.match?mP(e,0,i):vP(e,t,n)}function mP(e,t,n){if(0===n.length)return new Tk(e.segments,{});{const r=function(e){return hP(e[0])?e[0].outlets:{[uk]:e}}(n),i={};return yk(r,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(i[r]=gP(e.children[r],t,n))}),yk(e.children,(e,t)=>{void 0===r[t]&&(i[t]=e)}),new Tk(e.segments,i)}}function vP(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i<n.length;){const o=n[i];if(hP(o)){const e=yP(o.outlets);return new Tk(r,e)}if(0===i&&uP(n[0])){r.push(new Bk(e.segments[t].path,bP(n[0]))),i++;continue}const s=hP(o)?o.outlets.primary:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&uP(a)?(r.push(new Bk(s,bP(a))),i+=2):(r.push(new Bk(s,{})),i++)}return new Tk(r,{})}function yP(e){const t={};return yk(e,(e,n)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=vP(new Tk([],{}),0,e))}),t}function bP(e){const t={};return yk(e,(e,n)=>t[n]=`${e}`),t}function _P(e,t,n){return e==n.path&&fk(t,n.parameters)}class wP{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),sP(this.futureState.root),this.activateChildRoutes(t,n,e)}
1deactivateChildRoutes(e,t,n){const r=Xk(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),yk(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,i=Xk(e);for(const o of Object.keys(i))this.deactivateRouteAndItsChildren(i[o],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(e,t,n){const r=Xk(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new lk(e.value.snapshot))}),e.children.length&&this.forwardEvent(new sk(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(sP(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),CP(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),i=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=i,t.outlet&&t.outlet.activateWith(r,i),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function CP(e){sP(e.value),e.children.forEach(CP)}class SP{constructor(e,t){this.routes=e,this.module=t}}function EP(e){return"function"==typeof e}function IP(e){return e instanceof xk}const xP=Symbol("INITIAL_VALUE");function TP(){return Vn(e=>Rl(e.map(e=>e.pipe(nr(1),ei(xP)))).pipe(tf((e,t)=>{let n=!1;return t.reduce((e,r,i)=>{if(e!==xP)return e;if(r===xP&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||IP(r))return r}return e},e)},xP),tn(e=>e!==xP),(0,on.U)(e=>IP(e)?e:!0===e),nr(1)))}let BP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i["\u0275\u0275element"](0,"router-outlet")},directives:function(){return[xO]},encapsulation:2}),e})();function kP(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];PP(r,OP(t,r))}}function PP(e,t){e.children&&kP(e.children,t)}function OP(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function FP(e){const t=e.children&&e.children.map(FP),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==uk&&(n.component=BP),n}function LP(e){return e.outlet||uk}function MP(e,t){const n=e.filter(e=>LP(e)===t);return n.push(...e.filter(e=>LP(e)!==t)),n}const DP={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function NP(e,t,n){var r;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},DP):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(t.matcher||pk)(n,e,t);if(!i)return Object.assign({},DP);const o={};yk(i.posParams,(e,t)=>{o[t]=e.path});const s=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function RP(e,t,n,r,i="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>UP(e,t,n)&&LP(n)!==uk)}(e,n,r)){const i=new Tk(t,function(e,t,n,r){const i={};i.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const o of n)if(""===o.path&&LP(o)!==uk){const n=new Tk([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,i[LP(o)]=n}return i}(e,t,r,new Tk(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>UP(e,t,n))}(e,n,r)){const o=new Tk(e.segments,function(e,t,n,r,i,o){const s={};for(const a of r)if(UP(e,n,a)&&!i[LP(a)]){const n=new Tk([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[LP(a)]=n}return Object.assign(Object.assign({},i),s)}(e,t,n,r,e.children,i));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}const o=new Tk(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function UP(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function jP(e,t,n,r){return!!(LP(e)===r||r!==uk&&UP(t,n,e))&&("**"===e.path||NP(t,e,n).matched)}function QP(e,t,n){return 0===t.length&&!e.children[n]}class HP{constructor(e){this.segmentGroup=e||null}}class VP{constructor(e){this.urlTree=e}}function qP(e){return new Xt.y(t=>t.error(new HP(e)))}function KP(e){return new Xt.y(t=>t.error(new VP(e)))}function GP(e){return new Xt.y(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class zP{constructor(e,t,n,r,o){this.configLoader=t,this.urlSerializer
1=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(i.NgModuleRef)}apply(){const e=RP(this.urlTree.root,[],[],this.config).segmentGroup,t=new Tk(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,uk).pipe((0,on.U)(e=>this.createUrlTree(WP(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(kr(e=>{if(e instanceof VP)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof HP)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,uk).pipe((0,on.U)(t=>this.createUrlTree(WP(t),e.queryParams,e.fragment))).pipe(kr(e=>{if(e instanceof HP)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Tk([],{[uk]:e}):e;return new xk(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe((0,on.U)(e=>new Tk([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){const r=[];for(const i of Object.keys(n.children))"primary"===i?r.unshift(i):r.push(i);return(0,Un.D)(r).pipe(Zt(r=>{const i=n.children[r],o=MP(t,r);return this.expandSegmentGroup(e,o,i,r).pipe((0,on.U)(e=>({segment:e,outlet:r})))}),tf((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return r=>r.pipe(e?tn((t,n)=>e(t,n,r)):dr.y,QB(1),n?or(t):lr(()=>new Zn))}())}expandSegment(e,t,n,r,i,o){return(0,Un.D)(n).pipe(Zt(s=>this.expandSegmentAgainstRoute(e,t,n,s,r,i,o).pipe(kr(e=>{if(e instanceof HP)return(0,Yt.of)(null);throw e}))),Ar(e=>!!e),kr((e,n)=>{if(e instanceof Zn||"EmptyError"===e.name){if(QP(t,r,i))return(0,Yt.of)(new Tk([],{}));throw new HP(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,r,i,o,s){return jP(r,t,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):qP(t):qP(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?KP(i):this.lineralizeSegments(n,i).pipe((0,Jt.zg)(n=>{const i=new Tk(n,{});return this.expandSegment(e,i,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o){const{matched:s,consumedSegments:a,lastChild:l,positionalParamSegments:c}=NP(t,r,i);if(!s)return qP(t);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?KP(u):this.lineralizeSegments(r,u).pipe((0,Jt.zg)(r=>this.expandSegment(e,t,n,r.concat(i.slice(l)),o,!1)))}matchSegmentAgainstRoute(e,t,n,r,i){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,Yt.of)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe((0,on.U)(e=>(n._loadedConfig=e,new Tk(r,{})))):(0,Yt.of)(new Tk(r,{}));const{matched:o,consumedSegments:s,lastChild:a}=NP(t,n,r);if(!o)return qP(t);const l=r.slice(a);return this.getChildConfig(e,n,r).pipe((0,Jt.zg)(e=>{const r=e.module,o=e.routes,{segmentGroup:a,slicedSegments:c}=RP(t,s,l,o),u=new Tk(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(r,o,u).pipe((0,on.U)(e=>new Tk(s,e)));if(0===o.length&&0===c.length)return(0,Yt.of)(new Tk(s,{}));const h=LP(n)===i;return this.expandSegment(r,u,o,c,h?uk:i,!0).pipe((0,on.U)(e=>new Tk(s.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?(0,Yt.of)(new SP(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?(0,Yt.of)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe((0,Jt.zg)(n=>n?this.configLoader.load(e.injector,t).pipe((0,on.U)(e=>(t._loadedConfig=e,e))):function(e){return new Xt.y(t=>t.error(Ak(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):(0,Yt.of)(new SP([],e))}runCanLoadGuards(e,t,n){const r=t.canLoad;if(!r||0===r.length)return(0,Yt.of)(!0);const i=r.map(r=>{const i=e.get(r);let o;if(function(e){return e&&EP(e.canLoad)}(i))o=i.canLoad(t,n);else{if(!EP(i))throw new Error("Invalid CanLoad guard");o=i(t,n)}return bk(o)});return(0,Yt.of)(i).pipe(TP(),(0,Pi.b)(e=>{if(!IP(e))return;const t=Ak(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),(0,on.U)(e=>!0===e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return(0,Yt.of)(n);if(r.numberOfChildren>1||!r.children.primary)return GP(e.redirectTo);r=r.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const i=this.createSegmentGroup(e,t.root,n,r);return new xk(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return yk(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const i=this.createSegments(e,t.segments,n,r);let o={};return yk(t.children,(t,i)=>{o[i]=this.createSegmentGroup(e,t,n,r)}),new Tk(i,o)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function WP(e){const t={};for(const n of Object.keys(e.children)){const r=WP(e.children[n]);(r.segments.length>0||r.hasChildren())&&(t[n]=r)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new Tk(e.segments.concat(t.segments),t.children)}return e}(new Tk(e.segments,t))}class $P{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class YP{constructor(e,t){this.component=e,this.route=t}}function XP(e,t,n){const r=e._root;return ZP(r,t?t._root:null,n,[r.value])}function JP(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function ZP(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Xk(t);
1return e.children.forEach(e=>{!function(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!kk(e.url,t.url);case"pathParamsOrQueryParamsChange":return!kk(e.url,t.url)||!fk(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!aP(e,t)||!fk(e.queryParams,t.queryParams);case"paramsChange":default:return!aP(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new $P(r)):(o.data=s.data,o._resolvedData=s._resolvedData),ZP(e,t,o.component?a?a.children:null:n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new YP(a.outlet.component,s))}else s&&eO(t,a,i),i.canActivateChecks.push(new $P(r)),ZP(e,null,o.component?a?a.children:null:n,r,i)}(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),yk(o,(e,t)=>eO(e,n.getContext(t),i)),i}function eO(e,t,n){const r=Xk(e),i=e.value;yk(r,(e,r)=>{eO(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new YP(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}class tO{}function nO(e){return new Xt.y(t=>t.error(e))}class rO{constructor(e,t,n,r,i,o){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}recognize(){const e=RP(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,uk);if(null===t)return null;const n=new nP([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},uk,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Yk(n,t),i=new rP(this.url,r);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const t=e.value,n=tP(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=[];for(const i of Object.keys(t.children)){const r=t.children[i],o=MP(e,i),s=this.processSegmentGroup(o,r,i);if(null===s)return null;n.push(...s)}const r=oO(n);return r.sort((e,t)=>e.value.outlet===uk?-1:t.value.outlet===uk?1:e.value.outlet.localeCompare(t.value.outlet)),r}processSegment(e,t,n,r){for(const i of e){const e=this.processSegmentAgainstRoute(i,t,n,r);if(null!==e)return e}return QP(t,n,r)?[]:null}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo||!jP(e,t,n,r))return null;let i,o=[],s=[];if("**"===e.path){const r=n.length>0?vk(n).parameters:{};i=new nP(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,lO(e),LP(e),e.component,e,sO(t),aO(t)+n.length,cO(e))}else{const r=NP(t,e,n);if(!r.matched)return null;o=r.consumedSegments,s=n.slice(r.lastChild),i=new nP(o,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,lO(e),LP(e),e.component,e,sO(t),aO(t)+o.length,cO(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=RP(t,o,s,a.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return null===e?null:[new Yk(i,e)]}if(0===a.length&&0===c.length)return[new Yk(i,[])];const u=LP(e)===r,h=this.processSegment(a,l,c,u?uk:r);return null===h?null:[new Yk(i,h)]}}function iO(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function oO(e){const t=[],n=new Set;for(const r of e){if(!iO(r)){t.push(r);continue}const e=t.find(e=>r.value.routeConfig===e.value.routeConfig);void 0!==e?(e.children.push(...r.children),n.add(e)):t.push(r)}for(const r of n){const e=oO(r.children);t.push(new Yk(r.value,e))}return t.filter(e=>!n.has(e))}function sO(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function aO(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function lO(e){return e.data||{}}function cO(e){return e.resolve||{}}function uO(e){return Vn(t=>{const n=e(t);return n?(0,Un.D)(n).pipe((0,on.U)(()=>t)):(0,Yt.of)(t)})}class hO extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const dO=new i.InjectionToken("ROUTES");class AO{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe((0,on.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new SP(mk(r.injector.get(dO,void 0,i.InjectFlags.Self|i.InjectFlags.Optional)).map(FP),r)}),kr(e=>{throw t._loader$=void 0,e}));return t._loader$=new jB.c(n,()=>new Rn.xQ).pipe((0,qB.x)()),t._loader$}loadModuleFactory(e){return"string"==typeof e?(0,Un.D)(this.loader.load(e)):bk(e()).pipe((0,Jt.zg)(e=>e instanceof i.NgModuleFactory?(0,Yt.of)(e):(0,Un.D)(this.compiler.compileModuleAsync(e))))}}class pO{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new fO,this.attachRef=null}}class fO{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new pO,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class gO{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function mO(e){throw e}function vO(e,t,n){return t.parse("/")}function yO(e,t){return(0,Yt.of)(null)}const bO={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_O={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let wO=(()=>{class e{constructor(e,t,n,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer
1=t,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Rn.xQ,this.errorHandler=mO,this.malformedUriErrorHandler=vO,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:yO,afterPreactivation:yO},this.urlHandlingStrategy=new gO,this.routeReuseStrategy=new hO,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(i.NgModuleRef),this.console=o.get(i["\u0275Console"]);const c=o.get(i.NgZone);this.isNgZoneEnabled=c instanceof i.NgZone&&i.NgZone.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new xk(new Tk([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new AO(s,a,e=>this.triggerEvent(new rk(e)),e=>this.triggerEvent(new ik(e))),this.routerState=Zk(this.currentUrlTree,this.rootComponentType),this.transitions=new yo({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(tn(e=>0!==e.id),(0,on.U)(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Vn(e=>{let n=!1,r=!1;return(0,Yt.of)(e).pipe((0,Pi.b)(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Vn(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return(0,Yt.of)(e).pipe(Vn(e=>{const n=this.transitions.getValue();return t.next(new WB(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?tr.E:Promise.resolve(e)}),(r=this.ngModule.injector,i=this.configLoader,o=this.urlSerializer,s=this.config,Vn(e=>function(e,t,n,r,i){return new zP(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,s).pipe((0,on.U)(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),(0,Pi.b)(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,i){return(0,Jt.zg)(o=>function(e,t,n,r,i="emptyOnly",o="legacy"){try{const s=new rO(e,t,n,r,i,o).recognize();return null===s?nO(new tO):(0,Yt.of)(s)}catch(bB){return nO(bB)}}(e,t,o.urlAfterRedirects,n(o.urlAfterRedirects),r,i).pipe((0,on.U)(e=>Object.assign(Object.assign({},o),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Pi.b)(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,e),this.browserUrlTree=e.urlAfterRedirects);const n=new JB(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var r,i,o,s;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:o,extras:s}=e,a=new WB(n,this.serializeUrl(r),i,o);t.next(a);const l=Zk(r,this.rootComponentType).snapshot;return(0,Yt.of)(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}
1))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),tr.E}),uO(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),(0,Pi.b)(e=>{const t=new ZB(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),(0,on.U)(e=>Object.assign(Object.assign({},e),{guards:XP(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return(0,Jt.zg)(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?(0,Yt.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return(0,Un.D)(e).pipe((0,Jt.zg)(e=>function(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,Yt.of)(!0);const s=o.map(o=>{const s=JP(o,t,i);let a;if(function(e){return e&&EP(e.canDeactivate)}(s))a=bk(s.canDeactivate(e,t,n,r));else{if(!EP(s))throw new Error("Invalid CanDeactivate guard");a=bk(s(e,t,n,r))}return a.pipe(Ar())});return(0,Yt.of)(s).pipe(TP())}(e.component,e.route,n,t,r)),Ar(e=>!0!==e,!0))}(s,r,i,e).pipe((0,Jt.zg)(n=>n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,r){return(0,Un.D)(t).pipe(Zt(t=>Br(function(e,t){return null!==e&&t&&t(new ok(e)),(0,Yt.of)(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new ak(e)),(0,Yt.of)(!0)}(t.route,r),function(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>zr(()=>{const i=t.guards.map(i=>{const o=JP(i,t.node,n);let s;if(function(e){return e&&EP(e.canActivateChild)}(o))s=bk(o.canActivateChild(r,e));else{if(!EP(o))throw new Error("Invalid CanActivateChild guard");s=bk(o(r,e))}return s.pipe(Ar())});return(0,Yt.of)(i).pipe(TP())}));return(0,Yt.of)(i).pipe(TP())}(e,t.path,n),function(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return(0,Yt.of)(!0);const i=r.map(r=>zr(()=>{const i=JP(r,t,n);let o;if(function(e){return e&&EP(e.canActivate)}(i))o=bk(i.canActivate(t,e));else{if(!EP(i))throw new Error("Invalid CanActivate guard");o=bk(i(t,e))}return o.pipe(Ar())}));return(0,Yt.of)(i).pipe(TP())}(e,t.route,n))),Ar(e=>!0!==e,!0))}(r,o,e,t):(0,Yt.of)(n)),(0,on.U)(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),(0,Pi.b)(e=>{if(IP(e.guardsResult)){const t=Ak(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new ek(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),tn(e=>!!e.guardsResult||(this.cancelNavigationTransition(e,""),!1)),uO(e=>{if(e.guards.canActivateChecks.length)return(0,Yt.of)(e).pipe((0,Pi.b)(e=>{const t=new tk(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Vn(e=>{let t=!1;return(0,Yt.of)(e).pipe((n=this.paramsInheritanceStrategy,r=this.ngModule.injector,(0,Jt.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:i}}=e;if(!i.length)return(0,Yt.of)(e);let o=0;return(0,Un.D)(i).pipe(Zt(e=>function(e,t,n,r){return function(e,t,n,r){const i=Object.keys(e);if(0===i.length)return(0,Yt.of)({});const o={};return(0,Un.D)(i).pipe((0,Jt.zg)(i=>function(e,t,n,r){const i=JP(e,t,r);return bk(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe((0,Pi.b)(e=>{o[i]=e}))),QB(1),(0,Jt.zg)(()=>Object.keys(o).length===i.length?(0,Yt.of)(o):tr.E))}(e._resolve,e,t,r).pipe((0,on.U)(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),tP(e,n).resolve),null)))}(e.route,t,n,r)),(0,Pi.b)(()=>o++),QB(1),(0,Jt.zg)(t=>o===i.length?(0,Yt.of)(e):tr.E))})),(0,Pi.b)({next:()=>t=!0,complete:()=>{t||this.cancelNavigationTransition(e,"At least one route resolver didn't emit any value.")}}));var n,r}),(0,Pi.b)(e=>{const t=new nk(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),uO(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),(0,on.U)(e=>{const t=function(e,t,n){const r=lP(e,t._root,n?n._root:void 0);return new Jk(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),(0,Pi.b)(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,e),this.browserUrlTree=e.urlAfterRedirects)}),(o=this.rootContexts,s=this.routeReuseStrategy,a=e=>this.triggerEvent(e),(0,on.U)(e=>(new wP(s,e.targetRouterState,e.currentRouterState,a).activate(o),e))),(0,Pi.b)({next(){
1n=!0},complete(){n=!0}}),(i=()=>{n||r||this.cancelNavigationTransition(e,`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation=null},e=>e.lift(new KB(i))),kr(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=IP(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const i=new YB(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(i),r?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new XB(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(qb){e.reject(qb)}}var i;return tr.E}));var i,o,s,a}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:r}=t,i={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,delete e.\u0275routerPageId,0!==Object.keys(e).length&&(i.state=e)}this.scheduleNavigation(r,e,n,i)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){kP(e),this.config=e.map(FP),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:i,queryParamsHandling:o,preserveFragment:s}=t,a=n||this.routerState.root,l=s?this.currentUrlTree.fragment:i;let c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,i){if(0===n.length)return dP(t.root,t.root,t,r,i);const o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new pP(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return yk(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new pP(n,t,r)}(n);if(o.toRoot())return dP(t.root,new Tk([],{}),t,r,i);const s=function(e,t,n){if(e.isAbsolute)return new fP(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new fP(e,e===t.root,0)}const r=uP(e.commands[0])?0:1;return function(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new fP(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),a=s.processChildren?mP(s.segmentGroup,s.index,o.commands):gP(s.segmentGroup,s.index,o.commands);return dP(s.segmentGroup,a,t,r,i)}(a,this.currentUrlTree,e,c,null!=l?l:null)}navigateByUrl(e,t={skipLocationChange:!1}){const n=IP(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);let i=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||t.skipLocationChange||t.replaceUrl)&&(i=this.location.getState()),this.scheduleNavigation(r,"imperative",i,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(bB){t=this.malformedUriErrorHandler(bB,this.urlSerializer,e)}return t}isActive(e,t){let n;
1if(n=!0===t?Object.assign({},bO):!1===t?Object.assign({},_O):t,IP(e))return Ck(this.currentUrlTree,e,n);const r=this.parseUrl(e);return Ck(this.currentUrlTree,r,n)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new $B(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r,i){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),s="imperative"!==t&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===e.toString();if(s&&a)return Promise.resolve(!0);let l,c,u;i?(l=i.resolve,c=i.reject,u=i.promise):u=new Promise((e,t)=>{l=e,c=t});const h=++this.navigationId;let d;return d="computed"===this.canceledNavigationResolution?n&&n.\u0275routerPageId?n.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(e=>Promise.reject(e))}setBrowserUrl(e,t){const n=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl?this.location.replaceState(n,"",r):this.location.go(n,"",r)}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t){"computed"===this.canceledNavigationResolution?"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-e.targetPageId):this.resetUrlToCurrentUrlTree();const n=new YB(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](i.Type),i["\u0275\u0275inject"](Pk),i["\u0275\u0275inject"](fO),i["\u0275\u0275inject"](Ft.Ye),i["\u0275\u0275inject"](i.Injector),i["\u0275\u0275inject"](i.NgModuleFactoryLoader),i["\u0275\u0275inject"](i.Compiler),i["\u0275\u0275inject"](void 0))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),CO=(()=>{class e{constructor(e,t,n,r,i){this.router=e,this.route=t,this.commands=[],this.onChanges=new Rn.xQ,null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:EO(this.skipLocationChange),replaceUrl:EO(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:EO(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](eP),i["\u0275\u0275injectAttribute"]("tabindex"),i["\u0275\u0275directiveInject"](i.Renderer2),i["\u0275\u0275directiveInject"](i.ElementRef))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i["\u0275\u0275NgOnChangesFeature"]]}),e})(),SO=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new Rn.xQ,this.subscription=e.events.subscribe(e=>{e instanceof $B&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,r,i){if(0!==e||t||n||r||i)return!0;
1if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:EO(this.skipLocationChange),replaceUrl:EO(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:EO(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](eP),i["\u0275\u0275directiveInject"](Ft.S$))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(i["\u0275\u0275hostProperty"]("href",t.href,i["\u0275\u0275sanitizeUrl"]),i["\u0275\u0275attribute"]("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i["\u0275\u0275NgOnChangesFeature"]]}),e})();function EO(e){return""===e||!!e}let IO=(()=>{class e{constructor(e,t,n,r,i,o){this.router=e,this.element=t,this.renderer=n,this.cdr=r,this.link=i,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=e.events.subscribe(e=>{e instanceof $B&&this.update()})}ngAfterContentInit(){(0,Yt.of)(this.links.changes,this.linksWithHrefs.changes,(0,Yt.of)(null)).pipe((0,Tr.J)()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const t=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(e=>!!e).map(e=>e.onChanges);this.linkInputChangesSubscription=(0,Un.D)(t).pipe((0,Tr.J)()).subscribe(e=>{this.isActive!==this.isLinkActive(this.router)(e)&&this.update()})}set routerLinkActive(e){const t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(e=>!!e)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}))})}isLinkActive(e){const t="paths"in this.routerLinkActiveOptions?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>e.isActive(n.urlTree,t)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](i.Renderer2),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](CO,8),i["\u0275\u0275directiveInject"](SO,8))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){if(1&e&&(i["\u0275\u0275contentQuery"](n,CO,5),i["\u0275\u0275contentQuery"](n,SO,5)),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.links=e),i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.linksWithHrefs=e)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[i["\u0275\u0275NgOnChangesFeature"]]}),e})(),xO=(()=>{class e{constructor(e,t,n,r,o){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.EventEmitter,this.deactivateEvents=new i.EventEmitter,this.name=r||uk,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new TO(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](fO),i["\u0275\u0275directiveInject"](i.ViewContainerRef),i["\u0275\u0275directiveInject"](i.ComponentFactoryResolver),i["\u0275\u0275injectAttribute"]("name"),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class TO{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===eP?this.route:e===fO?this.childContexts:this.parent.get(e,t)}}class BO{}class kO{preload(e,t){return(0,Yt.of)(null)}}let PO=(()=>{class e{constructor(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=new AO(t,n,t=>e.triggerEvent(new rk(t)),t=>e.triggerEvent(new ik(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(tn(e=>e instanceof $B),Zt(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.NgModuleRef);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return(0,Un.D)(n).pipe((0,Tr.J)(),(0,on.U)(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,Yt.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,Jt.zg)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](wO),i["\u0275\u0275inject"](i.NgModuleFactoryLoader),i["\u0275\u0275inject"](i.Compiler),i["\u0275\u0275inject"](i.Injector),i["\u0275\u0275inject"](BO))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})(),OO=(()=>{class e{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anch
1orScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof WB?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof $B&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ck&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new ck(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](wO),i["\u0275\u0275inject"](Ft.EM),i["\u0275\u0275inject"](void 0))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();const FO=new i.InjectionToken("ROUTER_CONFIGURATION"),LO=new i.InjectionToken("ROUTER_FORROOT_GUARD"),MO=[Ft.Ye,{provide:Pk,useClass:Ok},{provide:wO,useFactory:function(e,t,n,r,i,o,s,a={},l,c){const u=new wO(null,e,t,n,r,i,o,mk(s));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(e=>{var t,n;null===(t=console.group)||void 0===t||t.call(console,`Router Event: ${e.constructor.name}`),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Pk,fO,Ft.Ye,i.Injector,i.NgModuleFactoryLoader,i.Compiler,dO,FO,[class{},new i.Optional],[class{},new i.Optional]]},fO,{provide:eP,useFactory:function(e){return e.routerState.root},deps:[wO]},{provide:i.NgModuleFactoryLoader,useClass:i.SystemJsNgModuleLoader},PO,kO,class{preload(e,t){return t().pipe(kr(()=>(0,Yt.of)(null)))}},{provide:FO,useValue:{enableTracing:!1}}];function DO(){return new i.NgProbeToken("Router",wO)}let NO=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[MO,QO(t),{provide:LO,useFactory:jO,deps:[[wO,new i.Optional,new i.SkipSelf]]},{provide:FO,useValue:n||{}},{provide:Ft.S$,useFactory:UO,deps:[Ft.lw,[new i.Inject(Ft.mr),new i.Optional],FO]},{provide:OO,useFactory:RO,deps:[wO,Ft.EM,FO]},{provide:BO,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:kO},{provide:i.NgProbeToken,multi:!0,useFactory:DO},[HO,{provide:i.APP_INITIALIZER,multi:!0,useFactory:VO,deps:[HO]},{provide:KO,useFactory:qO,deps:[HO]},{provide:i.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:KO}]]}}static forChild(t){return{ngModule:e,providers:[QO(t)]}}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](LO,8),i["\u0275\u0275inject"](wO,8))},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();function RO(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new OO(e,t,n)}function UO(e,t,n={}){return n.useHash?new Ft.Do(e,t):new Ft.b0(e,t)}function jO(e){return"guarded"}function QO(e){return[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:e},{provide:dO,multi:!0,useValue:e}]}let HO=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new Rn.xQ}appInitializer(){return this.injector.get(Ft.V_,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(wO),r=this.injector.get(FO);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,Yt.of)(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(FO),n=this.injector.get(PO),r=this.injector.get(OO),o=this.injector.get(wO),s=this.injector.get(i.ApplicationRef);e===s.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||o.initialNavigation(),n.setUpPreloading(),r.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](i.Injector))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})();function VO(e){return e.appInitializer.bind(e)}function qO(e){return e.bootstrapListener.bind(e)}const KO=new i.InjectionToken("Router Initializer");let GO=(()=>{class e{constructor(e,t,n,r){this._firebaseAuth=e,this._firestore=t,this._localStorage=n,this._router=r,this.onSignIn=new i.EventEmitter}init(){return(0,Er.mG)(this,void 0,void 0,function*(){this.user=yield this._firebaseAuth.user.pipe(nr(1)).toPromise(),this.user&&(this.isAuthorized=!0,this.onSignIn.emit())})}signIn(e){return(0,Er.mG)(this,void 0,void 0,function*(){this.isAuthorized=!0,this.user=e,this.refreshUserLocalStorage(e),this.onSignIn.emit()})}signInWithEmail(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){try{const n=yield this._firebaseAuth.signInWithEmailAndPassword(e,t);this.signIn(n.user)}catch(n){console.log(n)}})}signInWithGoogle(){return(0,Er.mG)(this,void 0,void 0,function*(){const e=new Ir.Z.auth.GoogleAuthProvider;try{const t=yield this._firebaseAuth.signInWithPopup(e);this.signIn(t.user)}catch(t){console.log(t)}})}signInWithAnyProvider(e){return(0,Er.mG)(this,void 0,void 0,function*(){const t=this.checkSignInProviders(e);try{const e=yield this._firebaseAuth.signInWithPopup(t);this.signIn(e.user)}catch(n){console.log(n)}})}checkSignInProviders(e){switch(e){case"google":return new Ir.Z.auth.GoogleAuthProvider;case"facebook":return new Ir.Z.auth.FacebookAuthProvider;case"apple":return new Ir.Z.auth.OAuthProvider("apple.com")}}signUp(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){try{const n=yield this._firebaseAuth.createUserWithEmailAndPassword(e,t);this.signIn(n.user)}catch(n){console.log(n)}})}getUser(){return this.user}restorePassword(e){return(0,Er.mG)(this,void 0,void 0,function*(){try{yield this._firebaseAuth.sendPasswordResetEmail(e)}catch(t){console.log(t)}})}logOut(){this.isAuthorized=!1,this._firebaseAuth.signOut(),this.deleteUserFromLocalStorage(),this._router.navigateByUrl("/login")}isUserLogged(){return(0,Er.mG)(this,void 0,void 0,function*(){return this.isAuthorized=yield this._firebaseAuth.authState.pipe(nr(1)).toPromise(),!!this.isAuthorized})}refreshUserLocalStorage(e){this._localStorage.setItem("user",JSON.stringify(e))}deleteUserFromLocalStorage(){this._localStorage.removeItem("user")}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Cr),i["\u0275\u0275inject"](UB),i["\u0275\u0275inject"](Qp),i["\u0275\u0275inject"](wO))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var zO=function(e){return e[e["dont-repeat"]=0]="dont-repeat",e[e["repeat-once"]=1]="repeat-once",e[e["repeat-alsways"]=2]="repeat-alsways",e}({}),WO=function(e){return e[e.select=0]="select",e[e.play_audio=1]="play_audio",e[e.open_lecture_page=2]="open_lecture_page",e}({}),$O=function(e){return e.ADD="ADD",e.DELETE="DELETE",e}({}),YO=function(e){return e.AUDIOS="Audio only (all lectures)",e.VIDEOS="Only lectures with video",e}({}),XO=function(e){return e.LECTURES="lectures",e.PLAYLISTS="playlists",e}({}),JO=function(e){return e.PRIVATE="Private",e.MYPUBLIC="MyPublic",e.ALL="All",e.ALLPUBLIC="AllPublic",e.FAVORITES="Favorites",e.RECOMMENDED="Recommended",e}({}),ZO=function(e){return e.DEFAULT="Default View",e.ALPHABETICALLY="Alphabetically (A
1-Z)",e.ALPHABETICALLYREVERSE="Alphabetically (Z-A)",e}({});let eF=(()=>{class e{constructor(){this.onFilterChanged=new i.EventEmitter,this.onSortChanged=new i.EventEmitter,this.onFavoritesChanged=new i.EventEmitter,this.onFavoritesLoaded=new i.EventEmitter,this.onProgressChanged=new i.EventEmitter,this.onHistorySortChanged=new i.EventEmitter,this.onFilterApply=new i.EventEmitter,this.onCategoryLecturesLoaded=new i.EventEmitter,this.onLecturesLoaded=new i.EventEmitter,this.onHistoryChanged=new i.EventEmitter,this.onPageIndexChanged=new i.EventEmitter,this.onPeriodChange=new i.EventEmitter,this.onPlaylistsFilterChange=new i.EventEmitter,this.onUserAgentCheck=new i.EventEmitter,this.onPlaylistsLoaded=new i.EventEmitter,this.onPlaylistDeleted=new i.EventEmitter,this.onRemovePlaylistFromFavoirte=new i.EventEmitter,this.onCreatePlaylist=new i.EventEmitter,this.onRemoveLectureFromPlaylist=new i.EventEmitter,this.onPlaylistSortChange=new i.EventEmitter,this._searchRequest="",this._sortRequest="",this._showRequest=YO.AUDIOS,this._historyRequest="",this._periodRequest="",this._playlistsSearchRequest="",this._playlistsShowRequest=JO.ALL,this._playlistsSortRequest=ZO.DEFAULT,this._allTime=!1,this.isUserWantToStay=!1,this.showRequest=YO.AUDIOS,this.sortRequest="Default View",this.historyRequest="All history"}get searchRequest(){return this._searchRequest}get playlistsSearchRequest(){return this._playlistsSearchRequest}set playlistsSearchRequest(e){this._playlistsSearchRequest=e,this.onPlaylistsFilterChange.emit()}set searchRequest(e){this._searchRequest=e,this.onFilterChanged.emit()}get showRequest(){return this._showRequest}set showRequest(e){this._showRequest=e,this.onFilterChanged.emit()}get playlistsShowRequest(){return this._playlistsShowRequest}set playlistsShowRequest(e){this._playlistsShowRequest=e,this.onPlaylistsFilterChange.emit(null)}get playlistsSortRequest(){return this._playlistsSortRequest}set playlistsSortRequest(e){this._playlistsSortRequest=e,this.onPlaylistSortChange.emit(null)}get historyRequest(){return this._historyRequest}set historyRequest(e){this._historyRequest=e,this.onFilterChanged.emit()}get sortRequest(){return this._sortRequest}set sortRequest(e){this._sortRequest=e,this.onSortChanged.emit()}set filterRequest(e){this.onFilterChanged.emit()}get periodRequest(){return this._periodRequest}set periodRequest(e){this._periodRequest=e,this.onPeriodChange.emit()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),tF=(()=>{class e{constructor(e,t,n){this._authorizationService=e,this._router=t,this._globalStateService=n}canActivate(e,t){return!(navigator.userAgent.match(/Android|Blackberry|iPhone/i)&&!this._globalStateService.isUserWantToStay)||this._router.parseUrl("/mobile")}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](GO),i["\u0275\u0275inject"](wO),i["\u0275\u0275inject"](eF))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),nF=(()=>{class e{constructor(e){this._globalStateService=e}ngOnInit(){this.applicationLink=navigator.userAgent.match(/iPhone/i)?"https://apps.apple.com/ru/app/bhakti-vikasa-swami/id1536451261?l=en":"https://play.google.com/store/apps/details?id=com.iskcon.bvks"}stayOnTheSite(){this._globalStateService.isUserWantToStay=!0}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](eF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-mobile"]],decls:13,vars:1,consts:[[1,"mobile-page"],[1,"container","mobile-page__container"],["src","../../../assets/img/ava.jpg","alt","Bhakti Vikasa Swami: Avatar",1,"tui-space_bottom-3"],[1,"mobile-page__title","tui-text_h5","tui-space_bottom-5"],[1,"mobile-page__title","tui-text_body-xl","tui-space_bottom-6"],["tuiButton","","type","button","size","m",3,"href"],[1,"tui-space_top-3","tui-space_bottom-3"],["tuiLink","","routerLink","/dashboard/categories",1,"mobile-page__link",3,"click"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275element"](2,"img",2),i["\u0275\u0275elementStart"](3,"h3",3),i["\u0275\u0275text"](4," Bhakti Vikasa Swami "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"p",4),i["\u0275\u0275text"](6," Use our mobile application "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"a",5),i["\u0275\u0275text"](8," Go! "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"span",6),i["\u0275\u0275text"](10,"or"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"a",7),i["\u0275\u0275listener"]("click",function(){return t.stayOnTheSite()}),i["\u0275\u0275text"](12,"Stay on the site"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](7),i["\u0275\u0275property"]("href",t.applicationLink,i["\u0275\u0275sanitizeUrl"]))},directives:[Ya,gu,SO],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;overflow:hidden}h3[_ngcontent-%COMP%]{text-align:center}.mobile-page__link[_ngcontent-%COMP%]{color:var(--primary-gray);border-bottom:1px solid var(--primary-gray)}"]}),e})();var rF=function(e){return e.PRIVATE="Private",e.PUBLIC="Public",e}({});const iF="AAAAKxH9UZw:APA91bEMT_5lEQW8a-DALrUEUww_b9k8rdrGzJWVMKYP2s59WlxURqs3NSILJMrgT6p78LZdytQQTAhB8rwfKTYCuSjbO-0xtw-Q5tjLUCgPkRgt05aGaNrQYI9J3hd1nGUEoc4ujGLV";let oF=(()=>{class e{constructor(e,t,n){this._messaging=e,this._localStorage=t,this.http=n,this.notification$=new yo(null)}requestPermission(){this._messaging.requestPermission.subscribe(()=>{},e=>{console.error(e)})}requestToken(){this._messaging.requestToken.subscribe(e=>{this.token$=e,this._localStorage.setItem("bvks-token",JSON.stringify(e))},e=>{console.error(e)})}deleteToken(){this._messaging.getToken.pipe((0,Jt.zg)(e=>this._messaging.deleteToken(e))).subscribe(()=>{})}setNotification(e){this.notification$.next(e)}getNotification(){return this.notification$.asObservable()}subcribeToTopic(e){this.http.post(`https://iid.googleapis.com/iid/v1/${this.token$}/rel/topics/${e}`,{},{headers:{Authorization:`key=${iF}`}})}unsubscribeFromTopic(e){this.http.delete(`https://iid.googleapis.com/iid/v1/${this.token$}/rel/topics/${e}`,{headers:{Authorization:`key=${iF}`}})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Dr),i["\u0275\u0275inject"](Qp),i["\u0275\u0275inject"](Sn))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),sF=(()=>{class e{constructor(e,t,n,r,i){this._firestore=e,this._firebaseAuth=t,this._globalState=n,this._notificationService=r,this._authService=i,this.selectedLectures=[],this.newLectureCount=0,this.userSettings=[],this.lecturesByCategories={latestUploads:[],topLectures:[],latestInEnglish:[],englishInHindi:[],bengalian:[],srimadBhagavatam:[],caritamrta:[],bhajans:[],bhagavad:[],visnu:[]},this.lecturesByCatIsReady=!1,this.popularLecturesIsReady=!1,this.lecturesIsReady=!1,this._firebaseAuth.authState.subscribe(e=>(0,Er.mG)(this,void 0,void 0,function*(){if(e){this.lectures=yield this._firestore.collection("lectures",e=>e.orderBy("dateOfRecording.year","desc").limit(1e3)).valueChanges().pipe(nr(1)).toPromise(),this.lectures=this.lectures.sort((e,t)=>
1new Date(+(null==t?void 0:t.dateOfRecording.year),+(null==t?void 0:t.dateOfRecording.month)-1,+(null==t?void 0:t.dateOfRecording.day)).getTime()-new Date(+(null==e?void 0:e.dateOfRecording.year),+(null==e?void 0:e.dateOfRecording.month)-1,+(null==e?void 0:e.dateOfRecording.day)).getTime()),this.allLectures=this.lectures,this.lectures.length&&(yield this.sortByCategories(),this.sortLecturesByDateOfRecording(),this.lecturesByCategories.latestUploads=this.lectures.sort((e,t)=>new Date(+(null==t?void 0:t.dateOfRecording.year),+(null==t?void 0:t.dateOfRecording.month)-1,+(null==t?void 0:t.dateOfRecording.day)).getTime()-new Date(+(null==e?void 0:e.dateOfRecording.year),+(null==e?void 0:e.dateOfRecording.month)-1,+(null==e?void 0:e.dateOfRecording.day)).getTime()).slice(0,5)),this.getPopularLectures(),this.getLatestLecturesInEnglish(),this.getLatestLecturesInBengalian(),this.getLatestLecturesInHindi();const e=yield this._firestore.collection("lectures",e=>e.orderBy("dateOfRecording","desc")).valueChanges().pipe(nr(1)).toPromise();this.lectures=this.allLectures=e,this.lectures=this.allLectures=this.lectures.filter(e=>e.length>10),this._globalState.onLecturesLoaded.emit(),this._globalState.onProgressChanged.emit(100),this.lecturesIsReady=!0,this.getTopLecturesData(),this._globalState.onCategoryLecturesLoaded.emit()}this.user=this._authService.getUser(),this.localLecturesCount=yield this.getAllLecturesLengthFromFirebase(),this.settingsObserver=this._firestore.collection(`/users/${this.user.uid}/Settings`).valueChanges().subscribe(e=>{this.userSettings=[];const t=e[0].notification;for(const[n,r]of Object.entries(t))if(!0===r&&!this.userSettings.includes(n))switch(n){case"hindi":this.userSettings.push("\u0939\u093f\u0928".toLowerCase());break;case"bengali":this.userSettings.push("\u09ac\u09be\u0982\u09b2\u09be".toLowerCase());break;case"english":this.userSettings.push("english")}}),this._firestore.collection("lectures").valueChanges().subscribe(e=>{const t=e.sort((e,t)=>new Date(+(null==t?void 0:t.dateOfRecording.year),+(null==t?void 0:t.dateOfRecording.month)-1,+(null==t?void 0:t.dateOfRecording.day)).getTime()-new Date(+(null==e?void 0:e.dateOfRecording.year),+(null==e?void 0:e.dateOfRecording.month)-1,+(null==e?void 0:e.dateOfRecording.day)).getTime());e.length-1===this.localLecturesCount&&(this._notificationService.setNotification({title:t[0].title.join(" "),date:t[0].dateOfRecording.day+"-"+t[0].dateOfRecording.month+"-"+t[0].dateOfRecording.year,category:t[0].category.join(" "),verse:t[0].legacyData.verse}),this.localLecturesCount+=1)})}))}getLectureById(e){return(0,Er.mG)(this,void 0,void 0,function*(){return JSON.parse(JSON.stringify(this.allLectures.find(t=>t.id===e)))})}getAllLecturesLengthFromFirebase(){return(0,Er.mG)(this,void 0,void 0,function*(){return(yield this._firestore.collection("lectures").valueChanges().pipe(nr(1)).toPromise()).length})}getLectureByIdFromFirebase(e){return(0,Er.mG)(this,void 0,void 0,function*(){return yield this._firestore.collection("lectures",t=>t.where("id","==",e)).valueChanges().pipe(nr(1)).toPromise()})}getTopLecturesData(){return(0,Er.mG)(this,void 0,void 0,function*(){this.getTopLecturesAllTime(),this._globalState.onPeriodChange.subscribe(()=>{"All-time"===this._globalState.periodRequest?this.getTopLecturesAllTime():this.getTopLecturesByPeriod()})})}getTopLecturesAllTime(){const e=this.allLectures.sort(function(e,t){return e.resources.audios[0].views>t.resources.audios[0].views?-1:e.resources.audios[0].views<t.resources.audios[0].views?1:0}).slice(0,100);this.topLectures=e,this.lecturesByCategories.topLectures=[...this.topLectures.slice(0,5)]}getTopLecturesByPeriod(){return(0,Er.mG)(this,void 0,void 0,function*(){const e=new Date;let t;switch(this._globalState.periodRequest){case"This month":const n=new Date(e.getFullYear(),e.getMonth()-1,e.getDate());t=n.getTime();break;case"This week":const r=new Date(e.getFullYear(),e.getMonth(),e.getDate()-7);t=r.getTime();break;case"Today":const i=new Date(e.getFullYear(),e.getMonth(),e.getDate()-1);t=i.getTime()}this.topLecturesId$=this._firestore.collection("TopLectures",e=>e.where("creationTimestamp",">=",t)).valueChanges().pipe(nr(1)).subscribe(e=>{const t=[];for(let i=0;i<e.length;i++)t.push(...e[i].playedIds);const n=t.reduce((e,t)=>
1(e[t]=(e[t]||0)+1,e),{}),r=Object.entries(n).sort((e,t)=>t[1]-e[1]).map(e=>Number(e[0])).slice(0,100).map(e=>this.allLectures.find(t=>t.id===e)).filter(e=>void 0!==e);this.topLectures=r})})}getLatestLecturesInEnglish(){this.lecturesByCategories.latestInEnglish=this.allLectures.filter(e=>"English"==e.language.main),this.lecturesByCategories.latestInEnglish=this.lecturesByCategories.latestInEnglish.sort((e,t)=>new Date(+(null==t?void 0:t.dateOfRecording.year),+(null==t?void 0:t.dateOfRecording.month)-1,+(null==t?void 0:t.dateOfRecording.day)).getTime()-new Date(+(null==e?void 0:e.dateOfRecording.year),+(null==e?void 0:e.dateOfRecording.month)-1,+(null==e?void 0:e.dateOfRecording.day)).getTime())}getLatestLecturesInHindi(){this.lecturesByCategories.englishInHindi=this.allLectures.filter(e=>"\u0939\u093f\u0928\u094d\u0926\u0940"==e.language.main),this.lecturesByCategories.englishInHindi=this.lecturesByCategories.englishInHindi.sort((e,t)=>new Date(+(null==t?void 0:t.dateOfRecording.year),+(null==t?void 0:t.dateOfRecording.month)-1,+(null==t?void 0:t.dateOfRecording.day)).getTime()-new Date(+(null==e?void 0:e.dateOfRecording.year),+(null==e?void 0:e.dateOfRecording.month)-1,+(null==e?void 0:e.dateOfRecording.day)).getTime())}getLatestLecturesInBengalian(){this.lecturesByCategories.bengalian=this.allLectures.filter(e=>"\u09ac\u09be\u0982\u09b2\u09be"==e.language.main)}getPopularLectures(){this.lecturesByCategories.popular=this.allLectures.filter(e=>e.resources.audios[0].views>10)}getLecturesByCatName(e){return this.lecturesByCategories[e]}getAllLectures(){if(this.allLectures)return this.allLectures}sortByCategories(){var e;return(0,Er.mG)(this,void 0,void 0,function*(){null===(e=this.lectures)||void 0===e||e.forEach(e=>{if(e.category)switch(e.category[0]){case"\u015ar\u012bmad-Bh\u0101gavatam":this.lecturesByCategories.srimadBhagavatam.push(e);break;case"\u0939\u093f\u0928\u094d\u0926\u0940":this.lecturesByCategories.englishInHindi.push(e);break;case"\u015ar\u012b Caitanya-carit\u0101m\u1e5bta":this.lecturesByCategories.caritamrta.push(e);break;case"Bhagavad-g\u012bt\u0101":this.lecturesByCategories.bhagavad.push(e);break;case"Bhajans":this.lecturesByCategories.bhajans.push(e);break;case"Vi\u1e63\u1e47u-sahasran\u0101ma":this.lecturesByCategories.visnu.push(e)}}),this.lecturesByCatIsReady=!0})}sortLecturesByDateOfRecording(){for(let e in this.lecturesByCategories)this.lecturesByCategories[e]=this.lecturesByCategories[e].sort((e,t)=>new Date(+(null==t?void 0:t.dateOfRecording.year),+(null==t?void 0:t.dateOfRecording.month)-1,+(null==t?void 0:t.dateOfRecording.day)).getTime()-new Date(+(null==e?void 0:e.dateOfRecording.year),+(null==e?void 0:e.dateOfRecording.month)-1,+(null==e?void 0:e.dateOfRecording.day)).getTime())}setLectures(e){this.lectures=e}getPlaylistsLectures(e){return this.allLectures.filter(t=>e.includes(t.id))}getTotalAudios(){var e;let t=0;return null===(e=this.allLectures)||void 0===e||e.forEach(e=>e.resources.audios.length?t+=1:null),t}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](UB),i["\u0275\u0275inject"](Cr),i["\u0275\u0275inject"](eF),i["\u0275\u0275inject"](oF),i["\u0275\u0275inject"](GO))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),aF=(()=>{class e{constructor(e,t,n,r,i){this._firestore=e,this._globalState=t,this._lectureService=n,this._firebaseAuth=r,this.notificationsService=i,this.publicPlaylists=[],this.privatePlaylists=[],this.allPlaylists=[],this.playlistsToAdd=[],this.admins=[],this.recommendedPlaylists=[]}get myPlaylists(){return this.allPlaylists.filter(e=>e.authorEmail===this.user.email)}get getRecommendedPlaylists(){return this.recommendedPlaylists}get getAllPlaylists(){return this.allPlaylists}get getPlaylistsToAdd(){return this.playlistsToAdd}set setPlaylistToAdd(e){this.playlistsToAdd=e}changePlaylistsToAdd(e){const t=this.playlistsToAdd.findIndex(t=>t===e);this.playlistsToAdd.includes(e)?this.playlistsToAdd.splice(t,1):this.playlistsToAdd.push(e)}getCertainPlaylist(e){return this.allPlaylists.find(t=>t.listID===e)}isMyPlaylist(e){return this.user.email===e}getPrivatePlaylists(){return this.privatePlaylists}getPublicPlaylists(){return this.publicPlaylists}getMyPublicPlaylists(){return this.publicPlaylists.filter(e=>e.authorEmail===this.user.email)}requestPlaylists(){return(0,Er.mG)(this,void 0,void 0,function*(){this.user=yield this._firebaseAuth.user.pipe(nr(1)).toPromise(),this.publicPlaylists=yield this._firestore.collection("PublicPlaylists").valueChanges({idField:"listID"}).pipe(nr(1)).toPromise(),this.privatePlaylists=yield this._firestore.collection("PrivatePlaylists").doc(this.user.uid).collection(this.user.email).valueChanges({idField:"listID"}).pipe(nr(1)).toPromise(),this.allPlaylists=[...this.privatePlaylists,...this.publicPlaylists],this.allPlaylists.forEac
1h(e=>this.addListIdToFirebase(e.listID,e.listType)),yield this.requestAdmins(),this.setRecommendedPlaylists(),this._globalState.onPlaylistsLoaded.emit(null)})}setRecommendedPlaylists(){this.recommendedPlaylists=this.allPlaylists.filter(e=>this.admins.includes(e.authorEmail)&&e.listType===rF.PUBLIC)}isLectureInMyPlaylist(e){return[...this.getMyPublicPlaylists(),...this.getPrivatePlaylists()].some(t=>t.lectureIds.includes(e))}requestAdmins(){return(0,Er.mG)(this,void 0,void 0,function*(){const e=yield this._firestore.collection("admins").valueChanges().pipe(nr(1)).toPromise();this.admins=e.map(e=>e.email)})}createPlaylist(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){let n={authorEmail:this.user.email,creationTime:Date.now(),discription:e.discription,docPath:"Public"===e.listType?`PublicPlaylists/${this.user.uid}`:`PrivatePlaylists/${this.user.uid}`,lastUpdate:Date.now(),lecturesCategory:e.lecturesCategory,lectureIds:t,listType:e.listType,thumbnail:"",title:e.title,lectureCount:t.length};"Public"===e.listType?yield this._firestore.collection("PublicPlaylists").add(n):yield this._firestore.collection("PrivatePlaylists").doc(this.user.uid).collection(this.user.email).add(n),yield this.requestPlaylists(),this._globalState.onCreatePlaylist.emit(null)})}addLectureToPlaylist(e){this.playlistsToAdd.forEach(t=>(0,Er.mG)(this,void 0,void 0,function*(){const n=this.allPlaylists.find(e=>e.listID===t.listID);e.forEach(e=>{n.lectureIds.includes(e)?this.notificationsService.show("",{label:"This lecture is already in playlist",status:"error"}).subscribe():n.lectureIds.push(e)}),n.listType===rF.PUBLIC?yield this._firestore.collection("PublicPlaylists").doc(n.listID).update({lectureIds:n.lectureIds,lectureCount:n.lectureIds.length}):yield this._firestore.collection("PrivatePlaylists").doc(this.user.uid).collection(this.user.email).doc(n.listID).update({lectureIds:n.lectureIds,lectureCount:n.lectureIds.length})}))}removePlaylist(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){const n=this.allPlaylists.findIndex(t=>t.listID===e);this.allPlaylists.splice(n,1),t===rF.PUBLIC?(this.publicPlaylists=this.publicPlaylists.filter(t=>t.listID!==e),yield this._firestore.collection("PublicPlaylists").doc(e).delete()):(this.privatePlaylists=this.privatePlaylists.filter(t=>t.listID!==e),yield this._firestore.collection("PrivatePlaylists").doc(this.user.uid).collection(this.user.email).doc(e).delete()),this._globalState.onPlaylistDeleted.emit(null)})}editPlaylist(e){return(0,Er.mG)(this,void 0,void 0,function*(){const t=this.allPlaylists.find(t=>t.listID===e.listID);t.title=e.title,t.lecturesCategory=e.lecturesCategory,t.discription=e.discription,e.listType!==t.listType?(t.listType=e.listType,yield this.copyPlaylist(t),t.listType===rF.PUBLIC?yield this.removePlaylist(t.listID,rF.PRIVATE):yield this.removePlaylist(t.listID,rF.PUBLIC)):e.listType===rF.PUBLIC?yield this._firestore.collection("PublicPlaylists").doc(e.listID).update({title:e.title,discription:e.discription,lecturesCategory:e.lecturesCategory,listType:e.listType}):yield this._firestore.collection("PrivatePlaylists").doc(this.user.uid).collection(this.user.email).doc(e.listID).update({title:e.title,discription:e.discription,lecturesCategory:e.lecturesCategory,listType:e.listType}),yield this.requestPlaylists()})}removeLectureFromPlaylist(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){const n=this.allPlaylists.find(e=>e.listID===t),r=n.lectureIds.findIndex(t=>t===e);n.lectureIds.splice(r,1),this._globalState.onRemoveLectureFromPlaylist.emit(null),n.listType===rF.PUBLIC?yield this._firestore.collection("PublicPlaylists").doc(n.listID).update({lectureIds:n.lectureIds,lectureCount:n.lectureIds.length}):yield this._firestore.collection("PrivatePlaylists").doc(this.user.uid).collection(this.user.email).doc(n.listID).update({lectureIds:n.lectureIds,lectureCount:n.lectureIds.length})})}copyPlaylist(e){return(0,Er.mG)(this,void 0,void 0,function*(){let t={authorEmail:this.user.email,creationTime:e.creationTime,discription:e.discription,docPath:"Public"===e.listType?`PublicPlaylists/${this.user.uid}`:`PrivatePlaylists/${this.user.uid}/${this.user.email}/${e.listID}`,lastUpdate:e.lastUpdate,lecturesCategory:e.lecturesCategory,lectureIds:e.lectureIds,listType:e.listType,thumbnail:e.thumbnail,title:e.title,listID:e.listID,lectureCount:e.lectureCount};"Public"===e.listType?yield this._firestore.collection("PublicPlaylists").doc(e.listID).set(t):yield this._firestore.collection("PrivatePlaylists").doc(this.user.uid).collection(this.user.email).doc(e.listID).set(t)})}addListIdToFirebase(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){t===rF.PUBLIC?yield this._firestore.collection("PublicPlaylists").doc(e).update({listID:e}):yield this._firestore.collection("PrivatePlaylists").doc(this.user.uid).collection(this.user.email).doc(e).update({listID:e})})}getPlaylistLecturesById(e){const t=this.getCertainPlaylist(e);if(t)return this._lectureService.getPlaylistsLectures(t.lectureIds)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](UB),i["\u0275\u0275inject"](eF),i["\u0275\u0275inject"](sF),i["\u0275\u0275inject"](Cr),i["\u0275\u0275inject"](Sl))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const lF=function(){return["Private","Public"]};function cF(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",10),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,lF))}let uF=(()=>{class e{constructor(e,t){this.context=e,this._playlistService=t,this.playlistInfo=e.data}ngOnInit(){this.form=new $t.FormGroup({title:new $t.FormControl(this.playlistInfo.title,[$t.Validators.required]),lecturesCategory:new $t.FormControl(this.playlistInfo.lecturesCategory,[$t.Validators.required]),discription:new $t.FormControl(this.playlistInfo.discription,[$t.Validators.required]),listType:new $t.FormControl(this.playlistInfo.listType,[$t.Validators.required])})}editPlaylist(){this._playlistService.editPlaylist({title:this.form.value.title,lecturesCategory:this.form.value.lecturesCategory,discription:this.form.value.discription,listType:this.form.value.listType,listID:this.playlistInfo.listID}),this.closeModal()}closeModal(){this.context.completeWith(!1)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](la),i["\u0275\u0275directiveInject"](aF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-edit-popup"]],decls:15,vars:2,consts:[[1,"playlist-dialog",3,"formGroup"],["src","../../../../../assets/icons/close.svg",1,"close-icon",3,"click"],["formControlName","title","tuiTextfieldSize","m",1,"tui-space_bottom-4"],[1,"playlist-dialog__select"],["formControlName","lecturesCategory","tuiTextfieldSize","m",1,"select-wrapper__select"],["tuiTextfieldSize","m","formControlName","listType",1,"select-wrapper__select"],[3,"items",4,"tuiDataList"],["formControlName","description",1,"tui-space_bottom-4"],[1,"playlist-dialog-btn","tui-space_right-6"],["tuiButton","","appearance","primary-yellow","type","button","size","s",3,"click"],[3,"items"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"form",0),i["\u0275\u0275elementStart"](1,"img",1),i["\u0275\u0275listener"]("click",function(){return t.closeModal()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](2,"tui-input",2),i["\u0275\u0275text"](3," Playlist name "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"div",3),i["\u0275\u0275elementStart"](5,"tui-input",4),i["\u0275\u0275text"](6," Category "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"tui-select",5),i["\u0275\u0275text"](8),i["\u0275\u0275template"](9,cF,1,2,"tui-data-list-wrapper",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"tui-text-area",7),i["\u0275\u0275text"](11,"Description"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"div",8),i["\u0275\u0275elementStart"](13,"button",9),i["\u0275\u0275listener"]("click",function(){return t.editPlaylist()}),i["\u0275\u0275text"](14," Save "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate1"](" ",t.form.value.listType," "))},directives:[$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,Ld,$t.NgControlStatus,$t.FormControlName,yh,$d,Ou,Dp,Ya,yp],styles:[".playlist-dialog-btn[_ngcontent-%COMP%]{text-align:right}.playlist-dialog__select[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:20px}.close-icon[_ngcontent-%COMP%]{position:absolute;top:20px;right:20px;width:10px;height:10px;cursor:pointer}"]}),e})(),hF=(()=>{class e{constructor(e){this._lecturesService=e,this.onFilterClear=new i.EventEmitter,this.search="",this.activeFilters={languages:[],countries:[],place:[],years:[],month:[],categories:[],translation:[]},this.localActiveFilterVariants={languages:[],countries:[],place:[],years:[],month:[],categories:[],translation:[]}}get allActiveFilters(){return this.activeFilters}get searchValue(){return this.search}toggleActiveFilter(e,t){if(this.isVariantActive(e,t)){const n=this.localActiveFilterVariants[e].findIndex(e=>e===t);this.localActiveFilterVariants[e].splice(n,1)}else this.localActiveFilterVariants[e].push(t)}isVariantActive(e,t){return this.localActiveFilterVariants[e].includes(t)}transferLocalFiltersToGlobal(){this.activeFilters={languages:[...this.localActiveFilterVariants.languages],countries:[...this.localActiveFilterVariants.countries],place:[...this.localActiveFilterVariants.place],years:[...this.localActiveFilterVariants.years],month:[...this.localActiveFilterVariants.month],categories:[...this.localActiveFilterVariants.categories],translation:[...this.localActiveFilterVariants.translation]}}getActiveFiltersCount(e){return this.localActiveFilterVariants[e].length}getAllActiveFiltersCount(){let e,t=0;for(e in this.activeFilters)t+=this.activeFilters[e].length;return t}resetLocalActiveFilters(){this.localActiveFilterVariants={languages:[...this.activeFilters.languages],countries:[...this.activeFilters.countries],place:[...this.activeFilters.place],years:[...this.activeFilters.years],month:[...this.activeFilters.month],categories:[...this.activeFilters.categories],translation:[...this.activeFilters.translation]}}clearActiveFilters(){let e;for(e in this.onFilterClear.emit(),this.localActiveFilterVariants)this.localActiveFilterVariants[e]=[];for(e in this.activeFilters)this.activeFilters[e]=[]}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](sF))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),dF=(()=>{class e{constructor(e){this._lecturesService=e,this.pageIndex=1}get pageIndexValue(){return this.pageIndex}getMoreLectures(){this._lecturesService.setLectures(this.paginatedLectures);const e=this._lecturesService.lectures.slice(0,20*this.pageIndex);this._lecturesService.setLectures(e)}paginateAll(e){this.paginatedLectures=e;const t=e.slice(0,20);this._lecturesService.setLectures(t)}setLecturesLimit(e){this.pageIndex=e}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](sF))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),AF=(()=>{class e{constructor(e,t,n,r){this._lecturesService=e,this._paginationService=t,this._filterService=n,this._globalState=r,this.selectedLectures=[],this.isSelectMode=!1,this.isSelectAfterSearch=!1,this.selectAllLectures=[],this.onSelectMode=new i.EventEmitter,this.onSelectedLecturesChange=new i.EventEmitter,this.onSelectAfterSearch=new i.EventEmitter}get pageIndex(){return this._paginationService.pageIndex}get getSelectedLectures(){return this.selectedLectures}get activeFiltersCount(){return this._filterService.getAllActiveFiltersCount()}setSelectAllLectures(e){this.selectAllLectures=e}searchSelectTrigger(e){this.isSelectAfterSearch=e,this.onSelectAfterSearch.emit(!0)}toggleSelectMode(){this.isSelectMode=!this.isSelectMode,this.onSelectMode.emit(null),this.isSelectMode||this.unchooseAll()}toggleLectureSelect(e){if(this.selectedLectures.includes(e)){const t=this.selectedLectures.findIndex(t=>t===e);this.selectedLectures.splice(t,1)}else this.selectedLectures.push(e);this.onSelectedLecturesChange.emit(null)}chooseAll(){let e=[];e=0!==this.activeFiltersCount||this._globalState.searchRequest.length||"Default View View"!==this._globalState.sortRequest?this.selectAllLectures.slice(0,20*this.pageIndex):this.selectAllLectures,this.selectedLectures=e,this.onSelectedLecturesChange.emit(null)}unchooseAll(){this.selectedLectures=[],this.isSelectMode=!1,this.onSelectedLecturesChange.emit(null),this.onSelectMode.emit(null)}getSelectedLecturesIds(){return this.selectedLectures}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](sF),i["\u0275\u0275inject"](dF),i["\u0275\u0275inject"](hF),i["\u0275\u0275inject"](eF))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),pF=(()=>{class e{constructor(e){this._filterService=e,this.variant="",this.activeTab="languages",this.checkBoxValue=!1}ngOnInit(){this.isFilterVariantActive=this._filterService.isVariantActive(this.activeTab.toLowerCase(),this.variant),this._filterService.onFilterClear.subscribe(()=>{this.isFilterVariantActive=!1})}toggleActiveFilter(){this._filterService.toggleActiveFilter(this.activeTab.toLowerCase(),this.variant)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](hF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-filter-variant"]],inputs:{variant:"variant",activeTab:"activeTab"},decls:4,vars:2,consts:[[1,"filter-variant","filter__variant"],["appearance","primary-orange","size","l","checked","fal
1se",1,"filter-variant__checkbox",3,"ngModel","ngModelChange"],[1,"filter-variant__text","tui-text_body-s"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"tui-checkbox",1),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.isFilterVariantActive=e})("ngModelChange",function(){return t.toggleActiveFilter()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](2,"legend",2),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngModel",t.isFilterVariantActive),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate1"](" ",t.variant," "))},directives:[NA,$t.NgControlStatus,$t.NgModel],styles:[""]}),e})();function fF(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"span"),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]().$implicit,t=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"]("(",t.getActiveFiltersCount(e),")")}}function gF(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"li",11),i["\u0275\u0275listener"]("click",function(){const t=i["\u0275\u0275restoreView"](e).$implicit;return i["\u0275\u0275nextContext"]().selectTab(t)}),i["\u0275\u0275elementStart"](1,"legend",12),i["\u0275\u0275text"](2),i["\u0275\u0275template"](3,fF,2,1,"span",13),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit,n=i["\u0275\u0275nextContext"]();i["\u0275\u0275classProp"]("filter-tab--active",e===n.activeTab),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate1"](" ",e," "),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",n.getActiveFiltersCount(e))}}function mF(e,t){if(1&e&&i["\u0275\u0275element"](0,"app-filter-variant",14),2&e){const e=t.$implicit,n=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("activeTab",n.activeTab)("variant",e)}}let vF=(()=>{class e{constructor(e,t,n,r){this._globalStateService=e,this._filterService=t,this._multiselectService=n,this.context=r,this.tabs=["Languages","Countries","Place","Years","Month","Categories","Translation"],this.activeTab="Languages",this.filterVariants={languages:["English","\u09ac\u09be\u0982\u09b2\u09be","\u0939\u093f\u0928\u094d\u0926\u0940"],countries:["Bangladesh","Canada","Croatia","Czech Republic","Finland","Germany","Hungary","India","Ireland","Poland","Russia","Slovenia","Sri Lanka","Sweden","UK","USA"],place:["Ahmedabad, Gujarat","Akkaraipattu, Tamil Nadu","Albuquerque, New Mexico","Ambur, Tamil Nadu","Amona, Goa","Ankleshwar, Gujarat","Bangalore, Karnataka","Baroda/Vadodara, Gujarat","Batticaloa, Sri Lanka","Bhaktivedanta Manor, London","Bharuch, Gujarat","Bhimavaram, Andhra Pradesh","Bhopal, Madhya Pradesh","Bilimora, Gujarat","Brahmanbaria, Bangladesh","Brazina","Cakovec, Croatia","Chattogram, Bangladesh","Chennai, Tamil Nadu","Chicago, Illinois","Chittagong, Bangladesh","Coimbatore, Tamil Nadu","Comilla, Bangladesh","Corvallis, Oregon","Dallas, Texas","Daltonganj, Jharkhand","Delhi","Denver, Colorado","Detroit, Michigan","Dhaka, Bangladesh","Dibrugarh, Assam","Dublin, Ireland","Erode, Tamil Nadu","Gauragrama, Telangana","Goa","Govardhan, Uttar Pradesh","Gurgaon, Delhi","Helsinki, Finland","Hyderabad, Telangana","Jamnagar, Gujarat","Javornik, Czech Republic","Juhu, Maharashtra","Kanchipuram, Tamil Nadu","Karumandurai, Salem, Tamil Nadu","Karwar, Karnataka","Katpadi, Karnataka","Kaveripakkam, Tamil Nadu","Kazan, Tatarstan","Krisna Volgy, Hungary","Laguna Beach, California","Leicester, United Kingdom","Lika, Croatia","Ljubljana, Slovenia","London","Los Angeles, California","Mahuva, Gujarat","Mangalore, Karnataka","Manipal, Karnataka","Mapusa, Goa","Mayapur, West Bengal","Mira Road, Mumbai","Moran, Assam","Moscow","Mumbai, Maharashtra","Muradnagar, Uttar Pradesh","Naberezhnye Chelny, Tatarstan","Namakkal, Tamil Nadu","Nandagrama, Gujarat","Navsari, Gujarat","New York City, New York","Noida, Delhi","Oregon","Pancavati, Tamil Nadu","Perm, Russia","Philadelphia, Pennsylvania","Ponda, Goa","Protivanov, Czech Republic","Pula, Croatia","Pune, Maharashtra","Rajapur, West Bengal","Ranipet, Tamil Nadu","Salem, Tamil Nadu","Sammamish, Washington","San Diego, California","Sant Nagar, Delhi","Saputara, Gujarat","Seattle, Washington","Secunderabad, Telangana","Simhacalam, Andhra Pradesh","Simi Valley, California","Sitakunda, Bangladesh","Sonapur, Assam","Srirangam, Tamil Nadu","St. Louis, Missouri","Stockholm","Surat, Gujarat","Thane, Mumbai","Thirukkovil, Sri Lanka","Tirupati, Andhra Pradesh","Toronto, Ontario","Tula, Russia","Udupi, Karnataka","Ujjain, Madhya Pradesh","Vallabh Vidyanagar, Gujarat","Vellore, Tamil Nadu","Vrindavana, Uttar Pradesh"],years:["2021","2020","2019","2018","2017","2016","2015","2014","2013","2012","2011","2010","2009","2008","2007","2006","2005","2004","2003","2002","2001","2000","1999","1998","1997","1996","1995","1994","1993"],month:["January","February","March","April","May","June","July","August","September","October","November","December"],categories:["ASK BVKS","Assorted Lectures","Bhagavad-g\u012bt\u0101","Bhajans","Conversations","Seminars","\u015ar\u012bmad-Bh\u0101gavatam","\u015ar\u012b Caitanya-carit\u0101m\u1e5bta","Vi\u1e63\u1e47u-sahasran\u0101ma"],translation:["Hrvatski (Croatian)","Portuguese","Sloven\u0161\u010dina (Slovenian)","\u010cesk\xfd (Czech)","\u0420\u0443\u0441\u0441\u043a\u0438\u0439 (Russian)","\u0939\u093f\u0928\u094d\u0926\u0940 (Hindi)","\u09ac\u09be\u0982\u09b2\u09be (Bengali)","\u0ba4\u0bae\u0bbf\u0bb4\u0bcd (Tamil)","\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41 (Telugu)"]}}ngOnInit(){this._filterService.resetLocalActiveFilters(),this.activeVariants=this.filterVariants.languages}selectTab(e){this.activeTab=e,this.activeVariants=this.filterVariants[e.toLowerCase()]}closeModal(){this._multiselectService.searchSelectTrigger(!1),this.context.completeWith(!1)}getActiveFiltersCount(e){return this._filterService.getActiveFiltersCount(e.toLowerCase())}clearActiveFilters(){this._filterService.clearActiveFilters(),this._globalStateService.onFilterApply.emit(),this._multiselectService.searchSelectTrigger(!1)}transferLocalFiltersToGlobal(){this._filterService.transferLocalFiltersToGlobal(),this._multiselectService.searchSelectTrigger(!0),this._globalStateService.onFilterApply.emit()}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](hF),i["\u0275\u0275directiveInject"](AF),i["\u0275\u0275directiveInject"](la))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-filter"]],inputs:{isVisible:"isVisible"},decls:13,vars:2,consts:[[1,"filter"],[1,"filter__close-btn"],["src","tuiIconCloseLarge",1,"filter__close-btn-icon",3,"click"],[1,"filter__content"],[1,"filter__tabs"],["class","filter-tab filter__tab",3,"filter-tab--active","click",4,"ngFor","ngForOf"],[1,"filter__scroll"],[3,"activeTab","variant",4,"ngFor","ngForOf"],[1,"filter__buttons-wrapper"],[1,"filter__button",3,"click"],[1,"filter__button","filter__button--apply",3,"click"],[1,"filter-tab","filter__tab",3,"click"],[1,"tui-text_body-s"],[4,"ngIf"],[3,"activeTab","variant"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"button",1),i["\u0275\u0275elementStart"](2,"tui-svg",2),i["\u0275\u0275listener"]("click",function(){return t.closeModal()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"div",3),i["\u0275\u0275elementStart"](4,"ul",4),i["\u0275\u0275template"](5,gF,4,4,"li",5),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"tui-scrollbar",6),i["\u0275\u0275template"](7,mF,1,2,"app-filter-variant",7),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](8,"div",8),i["\u0275\u0275elementStart"](9,"button",9),i["\u0275\u0275listener"]("click",function(){return t.clearActiveFilters()}),i["\u0275\u0275text"](10," Clear all "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"button",10),i["\u0275\u0275listener"]("click",function(){return t.transferLocalFiltersToGlobal(),t.closeModal()}),i["\u0275\u0275text"](12," Apply "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](5),i["\u0275\u0275property"]("ngForOf",t.tabs),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngForOf",t.activeVariants))},directives:[Fa,Ft.sg,wc,Ft.O5,pF],styles:['.filter[_ngcontent-%COMP%]{padding-top:30px}.filter__close-btn[_ngcontent-%COMP%]{position:absolute;top:16px;right:16px;background:#0000;border:none;cursor:pointer}.filter__close-btn-icon[_ngcontent-%COMP%]{color:#a4a5b1}.filter__tabs[_ngcontent-%COMP%]{width:-webkit-max-content;width:max-content;border-right:1px solid var(--light-gray)}.filter__content[_ngcontent-%COMP%]{display:flex;max-height:280px}.filter__scroll[_ngcontent-%COMP%]{width:100%;height:inherit;padding-left:14px;overflow-y:scroll}.filter-tab[_ngcontent-%COMP%]{position:relative;width:120px;padding:10px 0;cursor:pointer}.filter-tab[_ngcontent-%COMP%]   legend[_ngcontent-%COMP%]{position:relative;z-index:2}.filter-tab[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{position:relative}.filter-tab--active[_ngcontent-%COMP%]:after{position:absolute;top:0;right:0;bottom:0;left:-24px;z-index:1;display:block;width:calc(100% + 24px);height:100%;background:var(--light-gray);content:""}  .filter-variant{display:flex;align-items:center;padding-bottom:16px}  .filter-variant legend{padding-left:16px}  .filter-variant__checkbox tui-wrapper[data-appearance=primary][data-state=hovered]{background-color:var(--tui-support-08)!important}.filter__buttons-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:16px}.filter__button[_ngcontent-%COMP%]{padding:10px 24px;color:#1b1f3bcc;font-weight:800;font-size:15px;line-height:24px;background:#0000;border:none;cursor:pointer}.filter__button--apply[_ngcontent-%COMP%]{color:var(--tui-support-08)}tui-wrapper[data-appearance=primary][_ngcontent-%COMP%], tui-wrapper[data-state=hovered][_ngcontent-%COMP%]{background-color:var(--tui-support-08)}']}),e})(),yF=(()=>{class e{constructor(e,t,n,r,i){this._firestore=e,this._authService=t,this._lecturesService=n,this._globalStateService=r,this._multiselectService=i,this.favorites=[],this.favoriteLecturesIsLoaded=!1,this.favoritesId=[],this.favoritesData=[]}get allFavoriteLectures(){return this.favorites}initUserFavorites(){return(0,Er.mG)(this,void 0,void 0,function*(){if(this.user=this._authService.getUser(),!this.user)return;const e=yield this.getFavoritesIdFromFirebase();this.lecturesData=[...yield this._firestore.collection("users").doc(this.user.uid).collection("lectureInfo").valueChanges().pipe(nr(1)).toPromise()],(null==e?void 0:e.length)&&(this.favoritesId=e),this.favorites=yield this.getFavoriteLectures(),this.favoriteLecturesIsLoaded=!0})}toggleFavorites(e){return(0,Er.mG)(this,void 0,void 0,function*(){this.isLectureInFavorites(e)?this.removeFavorite(e):this.addToFavorites(e)})}addSelectedLecturesToFavorites(){this._multiselectService.getSelectedLectures.forEac
1h(e=>{this.addSelectedToFavorite(e)})}isLectureInFavorites(e){return this.favoritesId.includes(e)}addSelectedToFavorite(e){return(0,Er.mG)(this,void 0,void 0,function*(){if(!this.isLectureInFavorites(e)){const t=this.generateFavoriteLecture(e),n=this.getLectureById(e);this.favoritesId.push(e),this.favorites.push(n),this._firestore.collection("users").doc(this.user.uid).collection("lectureInfo").doc(t.documentId).set(t),this._globalStateService.onFavoritesChanged.emit()}})}getFavoriteLectures(){return(0,Er.mG)(this,void 0,void 0,function*(){const e=[];return this.favoritesId.forEach(t=>{const n=this._lecturesService.allLectures.find(e=>e.id===t);n&&e.push(n)}),e})}refreshLecturesData(){return(0,Er.mG)(this,void 0,void 0,function*(){this.favoritesData=[...yield this._firestore.collection("users").doc(this.user.uid).collection("lectureInfo",e=>e.where("isFavourite","==",!0)).valueChanges().pipe(nr(1)).toPromise()],this.lecturesData=[...yield this._firestore.collection("users").doc(this.user.uid).collection("lectureInfo").valueChanges().pipe(nr(1)).toPromise()]})}generateFavoriteLecture(e){const t=this._firestore.createId();let n=this.lecturesData.find(t=>t.id===e);return n?(n.documentId=(null==n?void 0:n.documentId)?null==n?void 0:n.documentId:t,n.isFavourite=!0):n={android:null,creationTimestamp:Date.now(),documentId:(null==n?void 0:n.documentId)?null==n?void 0:n.documentId:t,documentPath:`users/${this.user.uid}/lectureInfo/${t}`,downloadPlace:0,favouritePlace:0,id:e,ios:null,isCompleted:!1,isDownloaded:!1,isFavourite:!0,isInPrivateList:!1,isInPublicList:!1,lastModifiedTimestamp:Date.now(),lastPlayedPoint:0,privateListIDs:null,publicListIDs:null,totalPlayedNo:0,totalPlayedTime:0,totallength:0},n}toggleSelectedFavorites(e){return(0,Er.mG)(this,void 0,void 0,function*(){this._multiselectService.getSelectedLectures.forEach(t=>(0,Er.mG)(this,void 0,void 0,function*(){e===$O.ADD?yield this.addSelectedToFavorite(t):yield this.removeFavorite(t),this._multiselectService.unchooseAll()})),this.refreshLecturesData()})}getLectureById(e){return this._lecturesService.allLectures.find(t=>t.id===e)}addToFavorites(e){return(0,Er.mG)(this,void 0,void 0,function*(){yield this.refreshLecturesData();const t=this.generateFavoriteLecture(e),n=this.getLectureById(e);this.favoritesId.push(e),this.favorites.push(n),this._firestore.collection("users").doc(this.user.uid).collection("lectureInfo").doc(t.documentId).set(t)})}removeFavorite(e){return(0,Er.mG)(this,void 0,void 0,function*(){yield this.refreshLecturesData();const t=this.favorites.findIndex(t=>t.id===e);let n=this.favoritesData.find(t=>t.id===e);n.isFavourite=!1,this._firestore.collection("users").doc(this.user.uid).collection("lectureInfo").doc(null==n?void 0:n.documentId).set(n).then(()=>(0,Er.mG)(this,void 0,void 0,function*(){this.favoritesId=yield this.getFavoritesIdFromFirebase()})),this.favorites.splice(t,1),this._globalStateService.onFavoritesChanged.emit()})}getFavoritesIdFromFirebase(){return(0,Er.mG)(this,void 0,void 0,function*(){const e=new Set;return this.favoritesData=[...yield this._firestore.collection("users").doc(this.user.uid).collection("lectureInfo",e=>e.where("isFavourite","==",!0)).valueChanges().pipe(nr(1)).toPromise()],this.favoritesData.forEach(t=>e.add(t.id)),[...e]})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](UB),i["\u0275\u0275inject"](GO),i["\u0275\u0275inject"](sF),i["\u0275\u0275inject"](eF),i["\u0275\u0275inject"](AF))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),bF=(()=>{class e{constructor(e){this.http=e}get(e,t,n=!0){return this.request(e,"GET",t,null,n)}post(e,t,n=!0){return this.request(e,"POST",null,t,n)}delete(e,t,n=!1){return this.request(e,"DELETE",t,null,n)}patch(e,t,n=!0,r){return this.request(e,"PATCH",null,t,n)}request(e,t,n={},r=null,i=!0){return(0,Er.mG)(this,void 0,void 0,function*(){let o;const s=Object.assign({Authorization:`Bearer ${localStorage.getItem("accessToken")}`||""},n);r&&(s["Content-Type"]="application/json",o=r);try{return i?(yield this.http.request(t,Xp+e,{headers:s,body:o}).toPromise()).data:yield this.http.request(t,Xp+e,{headers:s,body:o}).toPromise()}catch(bB){const t=bB.error;throw null!=t&&null!=t.errorMessage&&""!==t.errorMessage&&alert(t),bB}})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Sn))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_F=(()=>{class e{constructor(e,t,n){this.context=e,this._downloadService=t,this._changeDetectorRef=n,this.downloadProgress=0}ngOnInit(){this._downloadService.onDownloadProgress.subscribe(e=>{this.downloadProgress=e,this._changeDetectorRef.detectChanges(),e>=100&&this.closeNotification()})}closeNotification(){var e;null===(e=this.context)||void 0===e||e.closeHook()}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](la),i["\u0275\u0275directiveInject"](IF),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-download-progress"]],decls:2,vars:1,template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"span"),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"]("",t.downloadProgress," %"))},styles:[""]}),e})(),wF=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-go-to-downloads"]],decls:2,vars:0,consts:[["tuiButton","","appearance","flat","type","button","size","s","routerLink","/dashboard/downloads",1,"tui-space_top-2"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"button",0),i["\u0275\u0275text"](1," Downloads\n"),i["\u0275\u0275elementEnd"]())},directives:[Ya,CO],styles:[""]}),e})();
1var CF=n(2051);let SF=(()=>{class e{get isFileSaverSupported(){try{return!!new Blob}catch(bB){return!1}}genType(e){if(!e||-1===e.lastIndexOf("."))return"text/plain";const t=e.substr(e.lastIndexOf(".")+1);switch(t){case"txt":return"text/plain";case"xml":case"html":return`text/${t}`;case"json":return"octet/stream";default:return`application/${t}`}}save(e,t,n,r){if(!e)throw new Error("Data argument should be a blob instance");const i=new Blob([e],{type:n||e.type||this.genType(t)});(0,CF.saveAs)(i,decodeURI(t||"download"),r)}saveText(e,t,n){const r=new Blob([e]);this.save(r,t,void 0,n)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),EF=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})(),IF=(()=>{class e extends bF{constructor(e,t,n,r,o){super(e),this._http=e,this._FileSaverService=t,this._authService=n,this._firebase=r,this.notificationsService=o,this.onDownloadProgress=new i.EventEmitter,this.counter=0,this.isActiveDownloads=!1,this.downloadsStatusChecker$=new Xt.y,this.downloadsStatusStorage=[]}get allDownloadStatuses(){return this.downloadsStatusStorage}getUser(){this.user||(this.user=this._authService.getUser())}donwloadSingleLecture(e){return(0,Er.mG)(this,void 0,void 0,function*(){if(this.isActiveDownloads)return;this.notificationsService.show(new ca(_F),{label:"Download progress",status:"info",autoClose:!1}).subscribe();const t=new mn("GET",e.resources.audios[0].url,{responseType:"arraybuffer",reportProgress:!0});this.http.request(t).subscribe(t=>{if(t.type===vn.DownloadProgress){this.isActiveDownloads=!0;const e=Math.round(100*t.loaded/t.total);this.onDownloadProgress.emit(e)}else if(t instanceof _n){this.isActiveDownloads=!1;let n=new Blob([t.body],{type:"audio/mp3"});this._FileSaverService.save(n,e.title.join(" "))}})})}pushStatusInStorage(e){this.downloadsStatusStorage=e}clearDownloadsStatusStorage(){this.downloadsStatusStorage.length=0}addLecturesToDownloads(e){return(0,Er.mG)(this,void 0,void 0,function*(){this.getUser();try{yield this.post("/download/",{userId:this.user.uid,lectureIds:e}),this.notificationsService.show(new ca(wF),{label:"Lectures are being zipped. Please go to:",status:"success"}).subscribe()}catch(t){this.notificationsService.show("",{label:t,status:"error"}).subscribe(),console.error(t)}})}getDownloadsLinksFromFB(){return(0,Er.mG)(this,void 0,void 0,function*(){if(this.getUser(),this.user)return this.downloadsStatusChecker$=this._firebase.collection("archives",e=>e.where("userId","==",this.user.uid)).valueChanges(),yield this._firebase.collection("archives",e=>e.where("userId","==",this.user.uid)).get().pipe((0,on.U)(e=>{let t=[];return e.docs.map(e=>{const n=e.data();t.push(n)}),t})).toPromise()})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Sn),i["\u0275\u0275inject"](SF),i["\u0275\u0275inject"](GO),i["\u0275\u0275inject"](UB),i["\u0275\u0275inject"](Sl))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),xF=(()=>{class e{constructor(e,t,n){this._firestore=e,this._globalStateService=t,this._authService=n,this._authService.onSignIn.subscribe(()=>this.initProgressSubscribe())}initProgressSubscribe(){this.user=this._authService.getUser(),this.user&&(this.lecturesProgressObserver&&this.lecturesProgressObserver.unsubscribe(),this.lecturesProgressObserver=this._firestore.collection(`/users/${this.user.uid}/lectureInfo/`).valueChanges().subscribe(e=>this.lecturesProgress=e))}getProgressInPercents(e){const t=this.getProgressByLectureId(e);return t?t.isCompleted?100:t.lastPlayedPoint&&t.totallength?t.totallength-t.lastPlayedPoint<2?100:t.lastPlayedPoint/(t.totallength/100):0:0}getProgressByLectureId(e){if(!this.user||!this.lecturesProgress)return;const t=this.lecturesProgress.find(t=>t.id===e);if(!t){const t=this._firestore.createId();return{android:null,creationTimestamp:Date.now(),documentId:t,documentPath:`/users/${this.user.uid}
1/lectureInfo/${t}`,downloadPlace:0,favouritePlace:0,id:e,ios:null,isCompleted:!1,isDownloaded:!1,isFavourite:!1,isInPrivateList:!1,isInPublicList:!1,lastModifiedTimestamp:Date.now(),lastPlayedPoint:0,privateListIDs:null,publicListIDs:null,totalPlayedNo:0,totalPlayedTime:0,totallength:0}}return t}updateLectureProgress(e){return(0,Er.mG)(this,void 0,void 0,function*(){const t=Date.now();try{yield this._firestore.doc(e.documentPath).update({lastPlayedPoint:e.lastPlayedPoint,lastModifiedTimestamp:t})}catch(n){try{yield this._firestore.doc(e.documentPath).set(Object.assign(Object.assign({},e),{lastModifiedTimestamp:t}))}catch(n){throw n}}this._globalStateService.onHistoryChanged.emit()})}markAsComplete(e){return(0,Er.mG)(this,void 0,void 0,function*(){const t=this.getProgressByLectureId(e);try{yield this._firestore.doc(t.documentPath).update({isCompleted:!0})}catch(n){yield this._firestore.doc(t.documentPath).set(Object.assign(Object.assign({},t),{lastModifiedTimestamp:Date.now()}))}})}resetCompletion(e){return(0,Er.mG)(this,void 0,void 0,function*(){const t=this.getProgressByLectureId(e);yield this._firestore.doc(t.documentPath).update({isCompleted:!1,lastPlayedPoint:0})})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](UB),i["\u0275\u0275inject"](eF),i["\u0275\u0275inject"](GO))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const TF=e=>{const t=[];return JSON.parse(JSON.stringify(e)).forEach(e=>{e.resources.videos.length?t.push(function(e){const t=e.title.join(" "),n=function(e){return"youtube"===e?"video/youtube":"video/mp4"}(e.resources.videos[0].type),r=e.thumbnail.length?e.thumbnail:Zp;return{name:t,sources:[{type:n,src:e.resources.videos[0].url}],youtube:{autoplay:1},poster:r,thumbnail:[{src:r}],lectureData:e}}(e)):e.resources.audios.length&&t.push(BF(e))}),t};function BF(e){const t=e.title.join(" "),n=e.thumbnail.length?e.thumbnail:Zp;return{name:t,sources:[{type:"audio/mp3",src:e.resources.audios[0].url}],poster:n,thumbnail:[{src:n}],lectureData:e}}let kF=(()=>{class e{constructor(){this.onDataSetup=new i.EventEmitter,this.onPlayerClose=new i.EventEmitter}setData(e,t,n){const r=(e=>{const t=[];return JSON.parse(JSON.stringify(e)).forEach(e=>{t.push(BF(e))}),t})(e);this.onDataSetup.emit({data:r,startPosition:t,startTime:n})}closePlayer(){this.onPlayerClose.emit(null)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),PF=(()=>{class e{constructor(e){this._router=e,this.oldPath="/dashboard/categories",this.videoMode=!1}navigateBack(){this._router.navigate([this.oldPath])}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](wO))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),OF=(()=>{class e{constructor(e,t,n){this._ref=e,this._paginationService=t,this._globalState=n,this._globalState.onFilterChanged.subscribe(()=>{this._paginationService.pageIndex=1}),this._globalState.onSortChanged.subscribe(()=>{this._paginationService.pageIndex=1})}onScroll(){clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this._ref.nativeElement.scrollHeight-1050<this._ref.nativeElement.scrollTop&&(this._paginationService.pageIndex+=1,this._globalState.onPageIndexChanged.emit(this._paginationService.pageIndex))},350)}ngOnInit(){(this._paginationService.pageIndex=1)&&(this._ref.nativeElement.scrollTop=0)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](dF),i["\u0275\u0275directiveInject"](eF))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","appPagination",""]],hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("scroll",function(){return t.onScroll()})},inputs:{limit:"limit"}}),e})(),FF=(()=>{class e{constructor(e){this.context=e}ngOnInit(){this.data=this.context.data}closeModal(){this.context.completeWith(!1)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](la))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-lecture-info"]],decls:55,vars:13,consts:[[1,"lecture-info"],[1,"lecture-info__close-btn"],["src","tuiIconCloseLarge",1,"lecture-info__close-btn-icon",3,"click"],[1,"tui-space_top-2","tui-space_bottom-1"],[1,"tui-space_bottom-1"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"button",1),i["\u0275\u0275elementStart"](2,"tui-svg",2),i["\u0275\u0275listener"]("click",function(){return t.closeModal()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"p",3),i["\u0275\u0275elementStart"](4,"strong"),i["\u0275\u0275text"](5,"Category"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"p",4),i["\u0275\u0275elementStart"](8,"strong"),i["\u0275\u0275text"](9,"Description"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](10),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"p",4),i["\u0275\u0275elementStart"](12,"strong"),i["\u0275\u0275text"](13,"Main language"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](14),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](15,"p",4),i["\u0275\u0275elementStart"](16,"strong"),i["\u0275\u0275text"](17,"Translations"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](18),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](19,"p",4),i["\u0275\u0275elementStart"](20,"strong"),i["\u0275\u0275text"](21,"Lecture code"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](22),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](23,"p",4),i["\u0275\u0275elementStart"](24,"strong"),i["\u0275\u0275text"](25,"WP ID"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](26),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](27,"p",4),i["\u0275\u0275elementStart"](28,"strong"),i["\u0275\u0275text"](29,"Country"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](30),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](31,"p",4),i["\u0275\u0275elementStart"](32,"strong"),i["\u0275\u0275text"](33,"Place"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](34),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](35,"p",4),i["\u0275\u0275elementStart"](36,"strong"),i["\u0275\u0275text"](37,"Verse"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](38),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](39,"p",4),i["\u0275\u0275elementStart"](40,"strong"),i["\u0275\u0275text"](41,"Tags"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](42),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](43,"p",4),i["\u0275\u0275elementStart"](44,"strong"),i["\u0275\u0275text"](45,"Advanced search"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](4
16),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](47,"p",4),i["\u0275\u0275elementStart"](48,"strong"),i["\u0275\u0275text"](49,"Simple search"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](50),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](51,"p"),i["\u0275\u0275elementStart"](52,"strong"),i["\u0275\u0275text"](53,"Length Type"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](54),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](6),i["\u0275\u0275textInterpolate1"](": ",null!=t.data.category&&t.data.category.length?t.data.category[0]:""," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](": ",t.data.description," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](": ",null==t.data.language?null:t.data.language.main," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](": ",null==t.data.language||null==t.data.language.translations?null:t.data.language.translations.join(", ")," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](": ",null==t.data.legacyData?null:t.data.legacyData.lectureCode," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](": ",null==t.data.legacyData?null:t.data.legacyData.wpId," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](": ",null==t.data.location?null:t.data.location.country," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](": ",t.data.place.length?t.data.place[0]:""," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](": ",null==t.data.legacyData?null:t.data.legacyData.verse," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](": ",null==t.data.tags?null:t.data.tags.join(", ")," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](": ",null==t.data.search?null:t.data.search.advanced," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](": ",null==t.data.search?null:t.data.search.simple," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](": ",null!=t.data.lengthType&&t.data.lengthType.length?t.data.lengthType[0]:""," "))},directives:[Fa],styles:[".lecture-info[_ngcontent-%COMP%]{position:relative}.lecture-info__close-btn[_ngcontent-%COMP%]{position:absolute;top:-40px;right:0;background:#0000;border:none;cursor:pointer}.lecture-info__close-btn-icon[_ngcontent-%COMP%]{color:#a4a5b1}"]}),e})(),LF=(()=>{class e{constructor(e,t){this._notificationService=e,this._httpClient=t}copyLinkToClipboard(e,t,n){return(0,Er.mG)(this,void 0,void 0,function*(){const r=yield this.generateShareLink(e,t,n);try{yield navigator.clipboard.writeText(r),this.showNotification("Link copied to clipboard","success")}catch(iT){this.showNotification(r,"success")}})}showNotification(e,t){this._notificationService.show(new ca(null),{label:e,status:t}).pipe(nr(1)).subscribe()}generateShareLink(e,t,n){return(0,Er.mG)(this,void 0,void 0,function*(){let r,i;r=n?`${location.protocol+"//"+location.host}/lecture/${e}?start_point=${t}&videoListType=all&videoListParams=null`:`${location.protocol+"//"+location.host}/dashboard?start_point=${t}&lecture_id=${e}`;const o=encodeURIComponent(r);try{i=yield this._httpClient.get("https://is.gd/create.php?format=json&url="+o).toPromise()}catch(iT){}return i?i.shorturl:r})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Sl),i["\u0275\u0275inject"](Sn))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),MF=(()=>{class e{constructor(e){this._playlistsServcie=e,this.checkBoxValue=!1}ngOnInit(){}onCheckboxChange(){this._playlistsServcie.changePlaylistsToAdd(this.playlist)}checkPlayListTypeImage(){return"Private"===this._playlistsServcie.allPlaylists.find(e=>e.listID===this.playlist.listID).listType?"../../../../../../assets/icons/private.svg":"../../../../../../assets/icons/public.svg"}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](aF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-playlist-checkbox"]],inputs:{playlist:"playlist"},decls:6,vars:3,consts:[[1,"playlist-variant","filter__variant"],["appearance","primary-orange","size","l","checked","fal
1se",1,"playlist-variant__checkbox",3,"ngModel","ngModelChange","click"],[1,"playlist-variant__text","tui-text_body-s"],["alt","",1,"playlist-type",3,"src"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"label",0),i["\u0275\u0275elementStart"](1,"tui-checkbox",1),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.checkBoxValue=e})("click",function(){return t.onCheckboxChange()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](2,"legend",2),i["\u0275\u0275element"](3,"img",3),i["\u0275\u0275elementStart"](4,"span"),i["\u0275\u0275text"](5),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngModel",t.checkBoxValue),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("src",t.checkPlayListTypeImage(),i["\u0275\u0275sanitizeUrl"]),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate1"](" ",t.playlist.title," "))},directives:[NA,$t.NgControlStatus,$t.NgModel],styles:[".playlist-type[_ngcontent-%COMP%]{width:12px;height:15px;margin-right:5px}"]}),e})();function DF(e,t){1&e&&i["\u0275\u0275element"](0,"app-playlist-checkbox",9),2&e&&i["\u0275\u0275property"]("playlist",t.$implicit)}let NF=(()=>{class e{constructor(e,t,n,r){this._playlistsService=e,this.context=t,this._modalService=n,this._multiselectService=r,this.playlists=[],this.searchRequest="",this.onSearchChange=new i.EventEmitter}get playlistsToAdd(){return this._playlistsService.playlistsToAdd}ngOnInit(){this.playlists=this._playlistsService.myPlaylists,this.form=new $t.FormGroup({playlistTitle:new $t.FormControl("")}),this.lectureDataForPlaylist=this._modalService.getLectureDataForPlaylist()}ngOnDestroy(){this._playlistsService.setPlaylistToAdd=[]}addToPlaylist(){this._playlistsService.addLectureToPlaylist(this.lectureDataForPlaylist),this.closeModal(),this._multiselectService.unchooseAll(),this._modalService.setLectureDataForPlaylist([])}closeModal(){this.context.completeWith(!1)}showCreateDialog(){this._modalService.showCreatePlaylistDialog(),this.closeModal()}searchPlaylists(){const e=this.searchRequest.toLowerCase().trim();this.playlists=this._playlistsService.myPlaylists.filter(t=>{if(t.title)return t.title.trim().toLowerCase().includes(e)})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](aF),i["\u0275\u0275directiveInject"](la),i["\u0275\u0275directiveInject"](QF),i["\u0275\u0275directiveInject"](AF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-add-to-playlist"]],decls:12,vars:5,consts:[[1,"playlist-dialog",3,"formGroup"],["src","../../../../../assets/icons/close.svg",1,"close-icon",3,"click"],["formControlName","playlistTitle","tuiTextfieldSize","m",1,"playlist-dialog__search","tui-space_bottom-4",3,"ngModel","ngModelChange"],[1,"playlist-dialog__scroll"],[3,"playlist",4,"ngFor","ngForOf"],[1,"playlist-dialog__create-playlist"],["tuiButton","","icon","../../../../../assets/img/sprite.svg#plus","appearance","flat","type","button","size","s",3,"click"],[1,"playlist-dialog-btn","tui-space_right-6"],["tuiButton","","appearance","primary-yellow","type","button","size","s",3,"disabled","click"],[3,"playlist"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"form",0),i["\u0275\u0275elementStart"](1,"img",1),i["\u0275\u0275listener"]("click",function(){return t.closeModal()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](2,"tui-input",2),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.searchRequest=e})("ngModelChange",function(){return t.searchPlaylists()}),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"tui-scrollbar",3),i["\u0275\u0275template"](5,DF,1,1,"app-playlist-checkbox",4),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"div",5),i["\u0275\u0275elementStart"](7,"button",6),i["\u0275\u0275listener"]("click",function(){return t.showCreateDialog()}),i["\u0275\u0275text"](8," Create new playlist "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"div",7),i["\u0275\u0275elementStart"](10,"button",8),i["\u0275\u0275listener"]("click",function(){return t.addToPlaylist()}),i["\u0275\u0275text"](11," Add "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngModel",t.searchRequest),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" Search ",t.searchRequest," "),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngForOf",t.playlists),i["\u0275\u0275advance"](5),i["\u0275\u0275property"]("disabled",0===t.playlistsToAdd.length))},directives:[$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,Ld,$t.NgControlStatus,$t.FormControlName,yh,wc,Ft.sg,Ya,MF],styles:[".playlist-dialog[_ngcontent-%COMP%]{padding-top:30px}.playlist-dialog__search[_ngcontent-%COMP%]{margin-bottom:26px}.playlist-dialog__close-btn[_ngcontent-%COMP%]{position:absolute;top:16px;right:16px;background:#0000;border:none;cursor:pointer}.playlist-dialog__close-btn-icon[_ngcontent-%COMP%]{color:#a4a5b1}.playlist-dialog__content[_ngcontent-%COMP%]{display:flex;max-height:280px}.playlist-dialog__scroll[_ngcontent-%COMP%]{width:100%;max-height:120px;margin-bottom:34px;padding-left:14px;overflow-y:scroll}.playlist-dialog__create-playlist[_ngcontent-%COMP%]{margin-bottom:36px}  .playlist-variant{display:flex;align-items:center;padding-bottom:16px;cursor:pointer}  .playlist-variant__text{display:flex;align-items:center}  .playlist-variant legend{padding-left:16px}  .playlist-variant__checkbox tui-wrapper[data-appearance=primary]{background-color:var(--tui-support-08)!important}tui-wrapper[data-appearance=primary][_ngcontent-%COMP%], tui-wrapper[data-state=hovered][_ngcontent-%COMP%]{background-color:var(--tui-support-08)}"]}),e})();const RF=function(){return["Private","Public"]};function UF(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",10),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,RF))}let jF=(()=>{class e{constructor(e,t,n,r){this.context=e,this._playlistsService=t,this._multiselectService=n,this._modalService=r,this.lectureIds=[],this.lectureDataForPlaylist=[]}ngOnInit(){this.form=new $t.FormGroup({title:new $t.FormControl("",[$t.Validators.required]),lecturesCategory:new $t.FormControl(""),discription:new $t.FormControl(""),listType:new $t.FormControl("Private")}),this.lectureIds=this._multiselectService.getSelectedLectures,this.lectureDataForPlaylist=this._modalService.getLectureDataForPlaylist()}ngOnDestroy(){this._modalService.setLectureDataForPlaylist([])}createPlaylist(){this.closeModal(),this._playlistsService.createPlaylist(this.form.value,this.lectureDataForPlaylist?this.lectureDataForPlaylist:this.lectureIds)}closeModal(){this.context.completeWith(!1),this._multiselectService.unchooseAll()}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](la),i["\u0275\u0275directiveInject"](aF),i["\u0275\u0275directiveInject"](AF),i["\u0275\u0275directiveInject"](QF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-create-playlist"]],decls:15,vars:3,consts:[[1,"playlist-dialog",3,"formGroup"],["src","../../../../../assets/icons/close.svg",1,"close-icon",3,"click"],["formControlName","title","tuiTextfieldSize","m",1,"tui-space_bottom-4"],[1,"playlist-dialog__select"],["formControlName","lecturesCategory","tuiTextfieldSize","m",1,"select-wrapper__select"],["tuiTextfieldSize","m","formControlName","listType",1,"select-wrapper__select"],[3,"items",4,"tuiDataList"],["formControlName","discription",1,"tui-space_bottom-4"],[1,"playlist-dialog-btn","tui-space_right-6"],["tuiButton","","appearance","primary-yellow","type","button","size","s",3,"disabled","click"],[3,"items"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"form",0),i["\u0275\u0275elementStart"](1,"img",1),i["\u0275\u0275listener"]("click",function(){return t.closeModal()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](2,"tui-input",2),i["\u0275\u0275text"](3," Playlist name "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"div",3),i["\u0275\u0275elementStart"](5,"tui-input",4),i["\u0275\u0275text"](6," Category "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"tui-select",5),i["\u0275\u0275text"](8),i["\u0275\u0275template"](9,UF,1,2,"tui-data-list-wrapper",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"tui-text-area",7),i["\u0275\u0275text"](11,"Description"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"div",8),i["\u0275\u0275elementStart"](13,"button",9),i["\u0275\u0275listener"]("click",function(){return t.createPlaylist()}),i["\u0275\u0275text"](14," Create "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate1"](" ",t.form.value.listType," "),i["\u0275\u0275advance"](5),i["\u0275\u0275property"]("disabled",t.form.invali
1d))},directives:[$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,Ld,$t.NgControlStatus,$t.FormControlName,yh,$d,Ou,Dp,Ya,yp],styles:[".playlist-dialog-btn[_ngcontent-%COMP%]{text-align:right}.playlist-dialog__select[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:20px}.close-icon[_ngcontent-%COMP%]{position:absolute;top:20px;right:20px;width:10px;height:10px;cursor:pointer}"]}),e})(),QF=(()=>{class e{constructor(e){this.dialogService=e,this.createPlaylistDialog=this.dialogService.open(new ca(jF),{data:237,dismissible:!0,label:"Create new playlist",size:"m",closeable:!1}),this.addToPlaylistDialog=this.dialogService.open(new ca(NF),{data:"",dismissible:!0,label:"Add to Playlist",size:"s",closeable:!1})}getLectureDataForPlaylist(){return this.lectureData}setLectureDataForPlaylist(e){this.lectureData=e}showCreatePlaylistDialog(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this.createPlaylistDialog.toPromise()})}addToPlaylist(e){return(0,Er.mG)(this,void 0,void 0,function*(){this.lectureData=e,yield this.addToPlaylistDialog.toPromise()})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](Ku))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),HF=(()=>{class e{transform(e,t){const n=this.checkNumberLength(Math.floor(e/60/60%24)+""),r=this.checkNumberLength(Math.floor(e/60%60)+"");let i=`${n}:${r}:${this.checkNumberLength(Math.floor(e%60)+"")}`;return t&&(i=`${n}:${r}`),i}checkNumberLength(e){return e.length<2?"0"+e:e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i["\u0275\u0275definePipe"]({name:"time",type:e,pure:!0}),e})(),VF=(()=>{class e{transform(e){return 100===e?"\u2714 Completed":Math.floor(e)+"%"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i["\u0275\u0275definePipe"]({name:"lectureProgress",type:e,pure:!0}),e})();const qF=["button"];function KF(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",12),i["\u0275\u0275element"](1,"tui-svg",13),i["\u0275\u0275elementEnd"]())}function GF(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"li",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"](2).toggleFavorites()}),i["\u0275\u0275element"](1,"tui-svg",22),i["\u0275\u0275text"](2," Add to favorites "),i["\u0275\u0275elementEnd"]()}}function zF(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"li",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"](2).toggleFavorites()}),i["\u0275\u0275element"](1,"tui-svg",22),i["\u0275\u0275text"](2," Remove from favorites "),i["\u0275\u0275elementEnd"]()}}function WF(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"li",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"](2).removeFromPlaylist()}),i["\u0275\u0275element"](1,"tui-svg",23),i["\u0275\u0275text"](2," Remove from Playlist "),i["\u0275\u0275elementEnd"]()}}function $F(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"ul",14),i["\u0275\u0275template"](1,GF,3,0,"li",15),i["\u0275\u0275template"](2,zF,3,0,"li",15),i["\u0275\u0275elementStart"](3,"li",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().downloadLecture()}),i["\u0275\u0275element"](4,"tui-svg",17),i["\u0275\u0275text"](5," Download "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"li",16),i["\u0275\u0275listener"]("click",function(){i["\u0275\u0275restoreView"](e);const t=i["\u0275\u0275nextContext"]();return 100===t.progress?t.resetCompletion():t.markAsComplete()}),i["\u0275\u0275element"](7,"tui-svg",18),i["\u0275\u0275text"](8),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"li",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().addToPlaylist()}),i["\u0275\u0275element"](10,"tui-svg",19),i["\u0275\u0275text"](11," Add to Playlist "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"li",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().openMoreInfoDialog()}),i["\u0275\u0275element"](13,"tui-svg",20),i["\u0275\u0275text"](14," More info "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](15,"li",16),i["\u0275\u0275listener"]("click",function(){i["\u0275\u0275restoreView"](e);const t=i["\u0275\u0275nextContext"]();return t.shareLink(null==t.lectureData?null:t.lectureData.id,0,!(null==t.lectureData||null==t.lectureData.resources||null==t.lectureData.resources.videos||!t.lectureData.resources.videos.length))}),i["\u0275\u0275element"](16,"tui-svg",21),i["\u0275\u0275text"](17," Share "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](18,WF,3,0,"li",15),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!e.isLectureInFavorites()),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.isLectureInFavorites()),i["\u0275\u0275advance"](6),i["\u0275\u0275textInterpolate1"](" ",100===e.progress?"Reset completion":"Mark as complete"," "),i["\u0275\u0275advance"](10),i["\u0275\u0275property"]("ngIf",e.isFromMyPlaylist)}}const YF=function(e){return{"tui-skeleton":e}},XF=function(e,t){return{"tui-skeleton":e,"tui-skeleton_text":t}},JF=function(e,t,n){return{"tui-skeleton":e,"tui-skeleton_text":t,"tui-skeleton_short":n}};let ZF=(()=>{class e{constructor(e,t,n,r,o,s,a,l,c,u,h){this._lecturesService=e,this._multiSelectService=t,this._notificationService=n,this._progressService=r,this._shareService=o,this._favoritesService=s,this._downloadService=a,this.dialogService=l,this._authService=c,this._modalService=u,this._playlistsService=h,this.onLectureClick=new i.EventEmitter,this.isLecturePopupActive=!1,this.showSkeleton=!0,this.selectedLectures=[],this.isSelectMode=!1,this.downloadProgress=0,this.isDropdownActive=!1}get lectureTitle(){var e;return null===(e=this.lectureData.title)||void 0===e?void 0:e.join(" ")}get progress(){return this._progressService.getProgressInPercents(this.lectureData.id)}ngOnInit(){return(0,Er.mG)(this,void 0,void 0,function*(){this.selectModeSubscr=this._multiSelectService.onSelectMode.subscribe(()=>{this.isSelectMode=this._multiSelectService.isSelectMode,this.isLectureSelected=this.isSelected()}),this.selectedLecturesSubscr=this._multiSelectService.onSelectedLecturesChange.subscribe(()=>{this.selectedLectures=this._multiSelectService.selectedLectures,this.isLectureSelected=this.isSelected()}),this.user=this._authService.getUser(),this.moreInfoDialog=this.dialogService.open(new ca(FF),{data:this.lectureData,dismissible:!0,label:"Lecture info",size:"s",closeable:!1})})}ngOnDestroy(){this.selectModeSubscr.unsubscribe(),this.selectedLecturesSubscr.unsubscribe()}checkLectureImage(){return this.lectureData.thumbnail?this.lectureData.thumbnail:Zp}hideSkeleton(){this.showSkeleton=!1}onDropdownClick(e){var t;(null===(t=this.button.nativeElement)||void 0===t?void 0:t.contains(e.target))||(this.isDropdownActive=!1)}playLecture(){this.isSelectMode&&this._multiSelectService.toggleLectureSelect(this.lectureData.id)}interrractWithLecture(){this.onLectureClick.emit()}toggleDropdown(){this.isDropdownActive=!this.isDropdownActive}downloadLecture(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this._downloadService.donwloadSingleLecture(this.lectureData),this._downloadService.onDownloadProgress.subscribe(e=>{this.downloadProgress=e}),this.toggleDropdown()})}isSelected(){return this.selectedLectures.includes(this.lectureData.id)}toggleFavorites(){this._favoritesService.toggleFavorites(this.lectureData.id),this.toggleDropdown()}isLectureInFavorites(){return this._favoritesService.isLectureInFavorites(this.lectureData.id)}markAsComplete(){this._progressService.markAsComplete(this.lectureData.id)}resetCompletion(){this._progressService.resetCompletion(this.lectureData.id)}addToPlaylist(){this._modalService.addToPlaylist([this.lectureData.id])}shareLink(e,t,n){this._shareService.copyLinkToClipboard(e,t,n)}openMoreInfoDialog(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this.moreInfoDialog.toPromise()})}removeFromPlaylist(){this._playlistsService.removeLectureFromPlaylist(this.lectureData.id,this.playlistID)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](sF),i["\u0275\u0275directiveInject"](AF),i["\u0275\u0275directiveInject"](Sl),i["\u0275\u0275directiveInject"](xF),i["\u0275\u0275directiveInject"](LF),i["\u0275\u0275directiveInject"](yF),i["\u0275\u0275directiveInject"](IF),i["\u0275\u0275directiveInject"](Ku),i["\u0275\u0275directiveInject"](GO),i["\u0275\u0275directiveInject"](QF),i["\u0275\u0275directiveInject"](aF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-lecture-post"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](qF,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.button=e.first)}},hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("click",function(e){return t.onDropdownClick(e)},!1,i["\u0275\u0275resolveDocument"])},inputs:{lectureData:"lectureData",isFromMyPlaylist:"isFromMyPlaylist",playlistID:"playlistID"},outputs:{onLectureClick:"onLectureClick"},decls:22,vars:41,consts:[[1,"lecture"],[1,"lecture__img-wrapper",3,"click"],["class","lecture__favorite-btn",4,"ngIf"],["alt","",1,"lecture__img",3,"src","load"],[1,"lecture__length"],[1,"lecture__length","lecture__length_progress"],[1,"lecture__text-wrapper"],[1,"lecture__other",3,"tuiDropdownContent","tuiDropdown","click"],["button",""],["src","tuiIconMoreVertLarge",1,"lecture__other-icon"],["otherDropdown",""],[1,"lecture__title"],[1,"lecture__favorite-btn"],["src","./../../../assets/img/sprite.svg#heart-filled",1,"icon"],[1,"dropdown"],["class","dropdown__item tui-text_body-m",3,"click",4,"ngIf"],[1,"dropdown__item","tui-text_body-m",3,"click"],["src","tuiIconDownloadLarge",1,"dropdown__item-icon"],["src","tuiIconCheckLarge",1,"dropdown__item-icon"],["src","./../../../assets/img/sprite.svg#playlists",1,"dropdown__item-icon"],["src","./../../../assets/img/sprite.svg#about",1,"dropdown__item-icon"],["src","./../../../assets/img/sprite.svg#share",1,"dropdown__item-icon"],["src","tuiIconHeartLarge",1,"dropdown__item-icon"],["src","tuiIconTrashLarge",1,"dropdown__item-icon"]],template:function(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"article",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275listener"]("click",function(){return t.interrractWithLecture()}),i["\u0275\u0275template"](2,KF,2,0,"div",2),i["\u0275\u0275elementStart"](3,"img",3),i["\u0275\u0275listener"]("load",function(){return t.hide
1Skeleton()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"legend",4),i["\u0275\u0275text"](5),i["\u0275\u0275pipe"](6,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"legend",5),i["\u0275\u0275text"](8),i["\u0275\u0275pipe"](9,"lectureProgress"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"div",6),i["\u0275\u0275elementStart"](11,"button",7,8),i["\u0275\u0275listener"]("click",function(){return t.toggleDropdown()}),i["\u0275\u0275element"](13,"tui-svg",9),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](14,$F,19,4,"ng-template",null,10,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementStart"](16,"h3",11),i["\u0275\u0275text"](17),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](18,"span"),i["\u0275\u0275text"](19),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](20,"p"),i["\u0275\u0275text"](21),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](15);i["\u0275\u0275advance"](1),i["\u0275\u0275classMap"](i["\u0275\u0275pureFunction1"](28,YF,t.showSkeleton)),i["\u0275\u0275classProp"]("isSelected",t.isSelected()),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.isLectureInFavorites()),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("src",t.checkLectureImage(),i["\u0275\u0275sanitizeUrl"]),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate1"](" ",i["\u0275\u0275pipeBind1"](6,24,null==t.lectureData?null:t.lectureData.length)," "),i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",i["\u0275\u0275pipeBind1"](9,26,t.progress)," "),i["\u0275\u0275advance"](3),i["\u0275\u0275classProp"]("lecture__other_active",t.isDropdownActive),i["\u0275\u0275property"]("tuiDropdownContent",e)("tuiDropdown",t.isDropdownActive),i["\u0275\u0275advance"](5),i["\u0275\u0275classMap"](i["\u0275\u0275pureFunction2"](30,XF,t.showSkeleton,t.showSkeleton)),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",t.lectureTitle," "),i["\u0275\u0275advance"](1),i["\u0275\u0275classMap"](i["\u0275\u0275pureFunction3"](33,JF,t.showSkeleton,t.showSkeleton,t.showSkeleton)),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate4"]("",t.lectureData.dateOfRecording.day,"/",t.lectureData.dateOfRecording.month,"/",t.lectureData.dateOfRecording.year," \xb7 ",null!=t.lectureData.category&&t.lectureData.category.length?t.lectureData.category[0]:""," "),i["\u0275\u0275advance"](1),i["\u0275\u0275classMap"](i["\u0275\u0275pureFunction3"](37,JF,t.showSkeleton,t.showSkeleton,t.showSkeleton)),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",null==t.lectureData.legacyData?null:t.lectureData.legacyData.verse," ")}},directives:[Ft.O5,yu,Fa],pipes:[HF,VF],styles:['.lecture[_ngcontent-%COMP%]{position:relative}.lecture__img[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:center}.lecture__img-wrapper[_ngcontent-%COMP%]{position:relative;width:100%;margin-bottom:8px;padding-bottom:56.25%;cursor:pointer}.lecture__img-wrapper[_ngcontent-%COMP%]:before{position:absolute;top:8px;left:8px;display:block;width:24px;height:24px;background-image:url(IconSelected.683a09946bb72226db94.svg);background-repeat:no-repeat;background-position:50%;background-size:contain;opacity:0;transition:.2s ease-in-out;content:""}.lecture__img-wrapper.isSelected[_ngcontent-%COMP%]{opacity:.5}.lecture__img-wrapper.isSelected[_ngcontent-%COMP%]:before{opacity:1}.lecture__title[_ngcontent-%COMP%]{max-width:calc(100% - 30px)}.lecture__favorite-btn[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;overflow:visible;color:#fff;background:#0000;stroke:red}.lecture__text-wrapper[_ngcontent-%COMP%]{position:relative;display:block}.lecture__length[_ngcontent-%COMP%]{position:absolute;right:9px;bottom:9px;padding:2px 4px;color:#fff;background-color:#323942;border-radius:4px}.lecture__length_progress[_ngcontent-%COMP%]{right:unset;left:9px}.lecture__other[_ngcontent-%COMP%]{position:absolute;right:-20px;padding:10px;color:#909090;background:#0000;border:none;border-radius:50%;cursor:pointer;transition:.3s}.lecture__other[_ngcontent-%COMP%]:active{background:#e0e0e0}.lecture__other_active[_ngcontent-%COMP%]{background:#f0f0f0}.dropdown[_ngcontent-%COMP%]{padding:10px 15px}.dropdown__icon[_ngcontent-%COMP%]{margin-right:5px;color:#000}.dropdown__item[_ngcontent-%COMP%]{cursor:pointer;transition:.4s}.dropdown__item-icon[_ngcontent-%COMP%]{margin-right:8px}.dropdown__item[_ngcontent-%COMP%]:hover{opacity:.6}.dropdown__item[_ngcontent-%COMP%]:not(:last-child){padding-bottom:8px}']}),e})();function eL(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",3),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"]();return o.interractWithLecture(n,o.lecturesData,r)}),i["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit,n=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("lectureData",e)("isFromMyPlaylist",n.isMyPlaylist)("playlistID",n.playlistID)}}let tL=(()=>{class e{constructor(e,t,n,r,o,s,a){this._lecturesService=e,this._filterService=t,this._paginationService=n,this._globalState=r,this._multiSelectService=o,this._router=s,this._audioPlayerService=a,this.allLectures=this._lecturesService.allLectures,this.onFilteredLecturesChange=new i.EventEmitter,this.lecturesMode=WO.open_lecture_page,this.isSelectMode=!1,this.lecturesData=[],this.allFilteredLectures=[],this.pageSize=20,this._globalState.onFilterChanged.subscribe(()=>{this.initLecturesFirstPage()}),this._globalState.onFilterApply.subscribe(()=>{this.initLecturesFirstPage()}),this._globalState.onSortChanged.subscribe(()=>{this.initLecturesFirstPage()}),this._globalState.onHistorySortChanged.subscribe(()=>{this.initLecturesFirstPage()}),this._globalState.onFavoritesChanged.subscribe(()=>{this.initLecturesFirstPage()}),this._globalState.onPageIndexChanged.subscribe(e=>{const t=this.getPaginatedLectures(this.allFilteredLectures,this._paginationService.pageIndex);this.lecturesData=this.lecturesData.concat(t)}),this._multiSelectService.onSelectMode.subscribe(()=>{this.isSelectMode=this._multiSelectService.isSelectMode,this.setLectureMode()}),this._multiSelectService.onSelectAfterSearch.subscribe(()=>{this._multiSelectService.setSelectAllLectures(this.allFilteredLectures.map(e=>e.id))})}get searchRequest(){return this._globalState.searchRequest}
1get sortRequest(){return this.setLectureMode(),this._globalState.sortRequest}get showRequest(){return this._globalState.showRequest}ngOnInit(){this._paginationService.pageIndex=1,this.initLecturesFirstPage()}initLecturesFirstPage(){this.lecturesData=this.getLecturesFirstPage()}interractWithLecture(e,t,n){switch(this.lecturesMode){case WO.play_audio:this._audioPlayerService.setData(t,n);break;case WO.open_lecture_page:this._router.navigate(["/lecture/",e.id],{queryParams:this.generateQueryParams()});break;case WO.select:this._multiSelectService.toggleLectureSelect(e.id)}}generateQueryParams(){return this.playlistID?{videoListType:"playlist",videoListParams:this.playlistID}:this.isFavoritesPlaylist?{videoListType:"favorites",videoListParams:null}:{videoListType:"all",videoListParams:null}}setLectureMode(){this.lecturesMode=this.isSelectMode?WO.select:this._globalState.showRequest===YO.AUDIOS?WO.play_audio:WO.open_lecture_page}getLecturesFirstPage(){const e=this.filterLectures(this.allLectures,this.searchRequest,this.showRequest);return this.allFilteredLectures=this.sortLectures(e,this.sortRequest),this._multiSelectService.searchSelectTrigger(this.allFilteredLectures.length>0),this.getPaginatedLectures(this.allFilteredLectures,1)}filterLectures(e,t,n){let r=this.filterLecturesByShowRequest(e,n);if(r=this.filterLecturesByVariants(r),null==t||""===t.trim())return r;const i=t.toLowerCase().trim();return null==r?void 0:r.filter(e=>{var t,n;const r=null===(t=e.title)||void 0===t?void 0:t.join(" ").trim().toLowerCase().includes(i),o=null===(n=e.search.advanced.join(" "))||void 0===n?void 0:n.toLowerCase().trim().includes(i.toLowerCase().trim());return r||o})}filterLecturesByShowRequest(e,t){return t.trim()!=YO.VIDEOS?e:e.filter(e=>null!=e.resources.videos&&e.resources.videos.length>0)}filterLecturesByVariants(e){return e=(()=>this._filterService.allActiveFilters.languages.length?e.filter(e=>this._filterService.allActiveFilters.languages.includes(e.language.main)):e)(),e=(()=>this._filterService.allActiveFilters.countries.length?e.filter(e=>this._filterService.allActiveFilters.countries.includes(e.location.country)):e)(),e=(()=>this._filterService.allActiveFilters.place.length?e.filter(e=>this._filterService.allActiveFilters.place.includes(e.place[0])):e)(),e=(()=>this._filterService.allActiveFilters.years.length?e.filter(e=>this._filterService.allActiveFilters.years.includes(e.dateOfRecording.year)):e)(),e=(()=>this._filterService.allActiveFilters.month.length?e.filter(e=>{let t;switch(e.dateOfRecording.month){case"01":t="January";break;case"02":t="February";break;case"03":t="March";break;case"04":t="April";break;case"05":t="May";break;case"06":t="June";break;case"07":t="July";break;case"08":t="August";break;case"09":t="September";break;case"10":t="October";break;case"11":t="November";break;case"12":t="December"}if(t)return this._filterService.allActiveFilters.month.includes(t)}):e)(),e=(()=>{var t;return(null===(t=this._filterService.allActiveFilters.categories)||void 0===t?void 0:t.length)?e.filter(e=>{var t;if(null===(t=e.category)||void 0===t?void 0:t.length)return this._filterService.allActiveFilters.categories.includes(e.category[0])}):e})(),(()=>this._filterService.allActiveFilters.translation.length?e.filter(e=>{var t;if(null===(t=e.language.translations)||void 0===t?void 0:t.length)return this._filterService.allActiveFilters.translation.includes(e.language.translations[0])}):e)()}getPaginatedLectures(e,t){return e.slice((t-1)*this.pageSize,t*this.pageSize)}sortLectures(e,t){const n=this.getSortFunction(t);return null==n?e:"Verse number"===this._globalState.sortRequest?[...e.filter(e=>e.legacyData.verse),...e.filter(e=>!e.legacyData.verse)].sort(n):e.sort(n)}getSortFunction(e){switch(e){case"Default View":case"":case void 0:return null;case"Duration (low to high)":return(e,t)=>e.length-t.length;case"Duration (high to low)":return(e,t)=>t.length-e.length;case"Rec date (oldest first)":return(e,t)=>new Date(+(null==e?void 0:e.dateOfRecording.year),+(null==e?void 0:e.dateOfRecording.month)-1,+(null==e?void 0:e.dateOfRecording.day)).getTime()-new Date(+(null==t?void 0:t.dateOfRecording.year),+(null==t?void 0:t.dateOfRecording.month)-1,+(null==t?void 0:t.dateOfRecording.day)).getTime();case"Rec date (latest first)":return(e,t)=>new Date(+(null==t?void 0:t.dateOfRecording.year),+(null==t?void 0:t.dateOfRecording.month)-1,+(null==t?void 0:t.dateOfRecording.day)).getTime()-new Date(+(null==e?void 0:e.dateOfRecording.year),+(null==e?void 0:e.dateOfRecording.month)-1,+(null==e?void 0:e.dateOfRecording.day)).getTime();
1case"Alphabetically (A-Z)":return(e,t)=>e.title>t.title?1:-1;case"Alphabetically (Z-A)":return(e,t)=>t.title>e.title?1:-1;case"Verse number":return(e,t)=>e.legacyData.verse>t.legacyData.verse?-1:1}return null}ngOnChanges(e){this.allLectures=e.allLectures.currentValue,this.initLecturesFirstPage()}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](sF),i["\u0275\u0275directiveInject"](hF),i["\u0275\u0275directiveInject"](dF),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](AF),i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](kF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-lectures"]],inputs:{allLectures:"allLectures",isMyPlaylist:"isMyPlaylist",isFavoritesPlaylist:"isFavoritesPlaylist",playlistID:"playlistID"},features:[i["\u0275\u0275NgOnChangesFeature"]],decls:3,vars:1,consts:[[1,"lectures"],["appPagination","",1,"lectures-wrapper"],[3,"lectureData","isFromMyPlaylist","playlistID","onLectureClick",4,"ngFor","ngForOf"],[3,"lectureData","isFromMyPlaylist","playlistID","onLectureClick"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275template"](2,eL,1,3,"app-lecture-post",2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngForOf",t.lecturesData))},directives:[OF,Ft.sg,ZF],styles:[".dashboard__wrapper[_ngcontent-%COMP%] >.content{padding-bottom:40px}.select-mode-wrapper[_ngcontent-%COMP%]{display:flex}.lectures-length[_ngcontent-%COMP%]{margin-bottom:10px;text-align:right}  .filter-badge{position:absolute;top:0;right:0;z-index:2;display:flex;align-items:center;justify-content:center;width:15px;height:15px;color:#fff;font-size:10px;background:var(--tui-support-08);border-radius:50%;transform:translate(50%,100%)}  .select-wrapper{position:relative}",""]}),e})();function nL(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"button",20),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"](2).removeSelectedFromPlaylist()}),i["\u0275\u0275text"](1," Remove from Playlist "),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength)}}function rL(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",13),i["\u0275\u0275elementStart"](1,"div",14),i["\u0275\u0275template"](2,nL,2,1,"button",15),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"div",14),i["\u0275\u0275elementStart"](4,"button",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().addSelectedToFavorites()}),i["\u0275\u0275text"](5," Add to Favorites "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"div",14),i["\u0275\u0275elementStart"](7,"button",17),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().downloadLectures()}),i["\u0275\u0275text"](8," Download "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"div",14),i["\u0275\u0275elementStart"](10,"button",18),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().markSelectedAsCompleted()}),i["\u0275\u0275text"](11," Mark as Complete "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"div",14),i["\u0275\u0275elementStart"](13,"button",19),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().selectAll()}),i["\u0275\u0275text"](14," Select All "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",e.isMyPlaylist),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength)}}const iL=function(){return["Audio only (all lectures)","Only lectures with video"]};function oL(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",28),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,iL))}const sL=function(){return["Default View","Duration (low to high)","Duration (high to low)","Rec date (oldest first)","Rec date (latest first)","Alphabetically (A
1-Z)","Alphabetically (Z-A)"]};function aL(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",28),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,sL))}function lL(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",29),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e.activeFiltersCount," ")}}function cL(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",14),i["\u0275\u0275elementStart"](1,"button",19),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"](2).showEditPopup()}),i["\u0275\u0275text"](2," Edit "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}}function uL(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",14),i["\u0275\u0275elementStart"](1,"h5",21),i["\u0275\u0275text"](2,"Playback Mode"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"tui-select",22),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().showRequest=t}),i["\u0275\u0275text"](4," 'Audio only (all lectures)' "),i["\u0275\u0275template"](5,oL,1,2,"tui-data-list-wrapper",23),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"div",14),i["\u0275\u0275elementStart"](7,"h5",21),i["\u0275\u0275text"](8,"Sort by"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"tui-select",24),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().sortRequest=t}),i["\u0275\u0275text"](10," Default View "),i["\u0275\u0275template"](11,aL,1,2,"tui-data-list-wrapper",23),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"div",14),i["\u0275\u0275template"](13,lL,2,1,"div",25),i["\u0275\u0275elementStart"](14,"button",26),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().showFilterDialog()}),i["\u0275\u0275text"](15," Filters "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](16,cL,3,0,"div",27)}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngModel",e.showRequest),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngModel",e.sortRequest),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",e.activeFiltersCount),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngIf",e.isMyPlaylist)}}function hL(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"h5",30),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" Selected: ",e.selectedLecturesLength," ")}}function dL(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",38),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](3);return o.interractWithLecture(n,o.playlistLectures,r,o.playlistListID)}),i["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit,n=i["\u0275\u0275nextContext"](3);i["\u0275\u0275property"]("isFromMyPlaylist",n.isMyPlaylist)("lectureData",e)("playlistID",n.playlistListID)}}function AL(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",36),i["\u0275\u0275template"](1,dL,1,3,"app-lecture-post",37),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",e.playlistLectures)}}function pL(e,t){if(1&e&&i["\u0275\u0275element"](0,"app-lectures",39),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275property"]("allLectures",e.playlistLectures)("isMyPlaylist",e.isMyPlaylist)("playlistID",e.playlistListID)}}function fL(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"tui-scrollbar",31),i["\u0275\u0275elementStart"](1,"div",32),i["\u0275\u0275elementStart"](2,"div",33),i["\u0275\u0275elementStart"](3,"span"),i["\u0275\u0275text"](4,"Date created"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"p"),i["\u0275\u0275text"](6),i["\u0275\u0275pipe"](7,"date"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](8,"div",33),i["\u0275\u0275elementStart"](9,"span"),i["\u0275\u0275text"](10,"Category"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"p"),i["\u0275\u0275text"](12),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](13,"div",33),i["\u0275\u0275elementStart"](14,"span"),i["\u0275\u0275text"](15,"Lectures"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](16,"p"),i["\u0275\u0275text"](17),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](18,"div",33),i["\u0275\u0275elementStart"](19,"span"),i["\u0275\u0275text"](20,"Description"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](21,"p"),i["\u0275\u0275text"](22),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](23,AL,2,1,"div",34),i["\u0275\u0275template"](24,pL,1,3,"app-lectures",35),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](6),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](7,6,null==e.activePlaylist?null:e.activePlaylist.creationTime,"MM/dd
1/yy")),i["\u0275\u0275advance"](6),i["\u0275\u0275textInterpolate"](null==e.activePlaylist?null:e.activePlaylist.lecturesCategory),i["\u0275\u0275advance"](5),i["\u0275\u0275textInterpolate"](null==e.activePlaylist?null:e.activePlaylist.lectureIds.length),i["\u0275\u0275advance"](5),i["\u0275\u0275textInterpolate"](null==e.activePlaylist?null:e.activePlaylist.description),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.isSortRequests()),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!e.isSortRequests())}}function gL(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-loader",40),2&e){i["\u0275\u0275nextContext"]();const e=i["\u0275\u0275reference"](17);i["\u0275\u0275property"]("showLoader",e)("overlay",!0)("inheritColor",!0)}}let mL=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,c,u,h,d){this._lecturesService=e,this._multiSelectService=t,this._globalState=n,this._favoriteService=r,this._downloadService=i,this._lectureProgressService=o,this._playlistsService=s,this._activatedRout=a,this._audioPlayerService=l,this._router=c,this._navigateBackService=u,this.dialogService=h,this._filterService=d,this.lecturesMode=WO.play_audio,this.isSelectMode=!1,this.playlistLectures=[],this._multiSelectService.onSelectedLecturesChange.subscribe(()=>{this.selectedLecturesLength=this._multiSelectService.getSelectedLectures.length}),this._multiSelectService.onSelectMode.subscribe(()=>{this.isSelectMode=this._multiSelectService.isSelectMode,this.setLectureMode()}),this._globalState.onPlaylistsLoaded.subscribe(()=>{this.init()}),this._globalState.onRemoveLectureFromPlaylist.subscribe(()=>{this.playlistLectures=this._lecturesService.getPlaylistsLectures(this.activePlaylist.lectureIds),this.activePlaylist=this._playlistsService.getCertainPlaylist(this.playlistListID)})}get searchRequest(){return this._globalState.searchRequest}get showRequest(){return this._globalState.showRequest}get activeFiltersCount(){return this._filterService.getAllActiveFiltersCount()}get sortRequest(){return this._globalState.sortRequest}set sortRequest(e){this._globalState.sortRequest=e,this.setLectureMode()}set showRequest(e){this._globalState.showRequest=e,this.setLectureMode()}ngOnInit(){this.init(),this._navigateBackService.oldPath=this._router.url}ngOnDestroy(){this._filterService.clearActiveFilters(),this._globalState.onFilterApply.emit(),this._globalState.sortRequest="Default View",this._globalState.showRequest=YO.AUDIOS}init(){var e,t,n;this.form=new $t.FormGroup({show:new $t.FormControl("All"),sort:new $t.FormControl("Default View"),filter:new $t.FormControl(null)}),this.playlistListID=this._activatedRout.snapshot.params.listID,this.activePlaylist=this._playlistsService.getCertainPlaylist(this.playlistListID),(null===(t=null===(e=this.activePlaylist)||void 0===e?void 0:e.lectureIds)||void 0===t?void 0:t.length)&&(this.playlistLectures=this._lecturesService.getPlaylistsLectures(this.activePlaylist.lectureIds)),this.selectedLecturesLength=this._multiSelectService.selectedLectures.length,this.editDialog=this.dialogService.open(new ca(uF),{data:this.activePlaylist,dismissible:!0,label:"Edit playlist",size:"m",closeable:!1}),this.filterDialog=this.dialogService.open(new ca(vF),{data:237,dismissible:!0,label:"Filters",size:"s",closeable:!1}),this.isMyPlaylist=this._playlistsService.isMyPlaylist(null===(n=this.activePlaylist)||void 0===n?void 0:n.authorEmail)}checkPlayListTypeImage(){var e;return"Private"===(null===(e=this.activePlaylist)||void 0===e?void 0:e.listType)?"../../../assets/icons/private.svg":"../../../assets/icons/public.svg"}setLectureMode(){this.lecturesMode=this.isSelectMode?WO.select:this._globalState.showRequest===YO.AUDIOS?WO.play_audio:WO.open_lecture_page}addSelectedToFavorites(){this._favoriteService.toggleSelectedFavorites($O.ADD)}downloadLectures(){const e=this._multiSelectService.getSelectedLecturesIds();this._downloadService.addLecturesToDownloads(e)}markSelectedAsCompleted(){this._multiSelectService.selectedLectures.forEach(e=>{this._lectureProgressService.markAsComplete(e)}),this._multiSelectService.unchooseAll()}selectAll(){0!==this.activeFiltersCount||this._globalState.searchRequest.length||"Default View"!==this.sortRequest||this.showRequest===YO.VIDEOS||this._multiSelectService.setSelectAllLectures(this.playlistLectures.map(e=>e.id)),this._multiSelectService.chooseAll()}toggleSelectMode(){this._multiSelectService.toggleSelectMode()}isSortRequests(){return!this.searchRequest.trim()&&"Default View"==this.sortRequest&&!this.activeFiltersCount&&this.showRequest==YO.AUDIOS}interractWithLecture(e,t,n,r){switch(this.lecturesMode){case WO.play_audio:this._audioPlayerService.setData(t,n);break;case WO.open_lecture_page:this._router.navigate(["/lecture/",e.id],{queryParams:{videoListType:"playlist",videoListParams:r}});case WO.select:this._multiSelectService.toggleLectureSelect(e.id)}}removeSelectedFromPlaylist(){this._multiSelectService.getSelectedLectures.forEac
1h(e=>{this._playlistsService.removeLectureFromPlaylist(e,this.playlistListID)}),this._multiSelectService.unchooseAll()}showEditPopup(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this.editDialog.toPromise()})}showFilterDialog(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this.filterDialog.toPromise()})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](sF),i["\u0275\u0275directiveInject"](AF),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](yF),i["\u0275\u0275directiveInject"](IF),i["\u0275\u0275directiveInject"](xF),i["\u0275\u0275directiveInject"](aF),i["\u0275\u0275directiveInject"](eP),i["\u0275\u0275directiveInject"](kF),i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](PF),i["\u0275\u0275directiveInject"](Ku),i["\u0275\u0275directiveInject"](hF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-playlist"]],decls:18,vars:10,consts:[[1,"dashboard-head"],[1,"dashboard-head__title","playlist-title","tui-text_h4"],["alt","",1,"playlist-title__type",3,"src"],[1,"playlist-title__name"],["tuiButton","","appearance","primary","size","s","leftIcon","tuiIconArrowLeft","routerLink","/dashboard/playlists"],[1,"dashboard-head__filters-wrapper",3,"formGroup"],["class","select-mode-wrapper",4,"ngIf","ngIfElse"],["filters",""],[1,"select-wrapper","select-mode-btn"],["class","select-wrapper__text lectures-length",4,"ngIf"],["tuiButton","","type","button","size","s",3,"appearance","click"],["class","dashboard__wrapper top-lectures","appPagination","",4,"ngIf","ngIfElse"],["contentLoader",""],[1,"select-mode-wrapper"],[1,"select-wrapper","tui-space_right-6"],["tuiButton","","icon","tuiIconTrash","appearance","flat","type","button","size","s",3,"disabled","click",4,"ngIf"],["tuiButton","","icon","./../../../assets/img/sprite.svg#heart","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","icon","./../../../assets/img/sprite.svg#download","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","icon","./../../../assets/img/sprite.svg#checkbox","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","appearance","outline","type","button","size","s",3,"click"],["tuiButton","","icon","tuiIconTrash","appearance","flat","type","button","size","s",3,"disabled","click"],[1,"select-wrapper__text"],["tuiTextfieldSize","s","formControlName","show",1,"select-wrapper__select",3,"ngModel","ngModelChange"],[3,"items",4,"tuiDataList"],["tuiTextfieldSize","s","formControlName","sort",1,"select-wrapper__select",3,"ngModel","ngModelChange"],["class","filter-badge",4,"ngIf"],["tuiButton","","icon","./../../../assets/img/sprite.svg#filter","appearance","outline","type","button","size","s",3,"click"],["class","select-wrapper tui-space_right-6",4,"ngIf"],[3,"items"],[1,"filter-badge"],[1,"select-wrapper__text","lectures-length"],["appPagination","",1,"dashboard__wrapper","top-lectures"],[1,"playlist-info"],[1,"playlist-info__item"],["class","lectures-wrapper",4,"ngIf"],[3,"allLectures","isMyPlaylist","playlistID",4,"ngIf"],[1,"lectures-wrapper"],[3,"isFromMyPlaylist","lectureData","playlistID","onLectureClick",4,"ngFor","ngForOf"],[3,"isFromMyPlaylist","lectureData","playlistID","onLectureClick"],[3,"allLectures","isMyPlaylist","playlistID"],["size","xxl",1,"content-loader",3,"showLoader","overlay","inheritColor"]],template:function(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"h2",1),i["\u0275\u0275element"](2,"img",2),i["\u0275\u0275elementStart"](3,"span",3),i["\u0275\u0275text"](4),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"button",4),i["\u0275\u0275text"](6," Back "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"form",5),i["\u0275\u0275template"](8,rL,15,4,"div",6),i["\u0275\u0275template"](9,uL,17,4,"ng-template",null,7,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementStart"](11,"div",8),i["\u0275\u0275template"](12,hL,2,1,"h5",9),i["\u0275\u0275elementStart"](13,"button",10),i["\u0275\u0275listener"]("click",function(){return t.toggleSelectMode()}),i["\u0275\u0275text"](14),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](15,fL,25,9,"tui-scrollbar",11),i["\u0275\u0275template"](16,gL,1,3,"ng-template",null,12,i["\u0275\u0275templateRefExtractor"])),2&e){const e=i["\u0275\u0275reference"](10),n=i["\u0275\u0275reference"](17);i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("src",t.checkPlayListTypeImage(),i["\u0275\u0275sanitizeUrl"]),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate1"](" ",null==t.activePlaylist?null:t.activePlaylist.title," "),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.isSelectMode)("ngIfElse",e),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",t.selectedLecturesLength>0),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("appearance",t.isSelectMode?"secondary":"outline"),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",t.isSelectMode?"Cancel":"Select Multiple Files"," "),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==t.activePlaylist?null:t.activePlaylist.listID)("ngIfElse",n)}},directives:[Ya,CO,$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,Ft.O5,$d,yh,$t.NgControlStatus,$t.FormControlName,Ou,yp,wc,OF,Ft.sg,ZF,tL,ba],pipes:[Ft.uU],styles:[".playlist-info[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.playlist-info__item[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-right:16px}.playlist-info__item[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{width:95px;min-width:0;color:var(--gray-dark);font-weight:400;font-size:11px;font-style:normal;line-height:16px}.playlist-info__item[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{align-self:flex-start;color:#000;font-size:13px;line-height:20px}.playlist-title[_ngcontent-%COMP%]{display:flex;align-items:center}.playlist-title__type[_ngcontent-%COMP%]{width:20px;margin-right:10px}.playlist-title__name[_ngcontent-%COMP%]{margin-right:10px}.playlist-title[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-top:5px}"]}),e})(),vL=(()=>{class e{constructor(e,t){this._authorizationService=e,this._router=t}canActivate(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){return!!(yield this._authorizationService.isUserLogged())||this._router.parseUrl("/login")})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](GO),i["\u0275\u0275inject"](wO))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),yL=(()=>{class e{constructor(e){this._multiselectService=e}get allSearchedLectures(){return this.searchedLectures}searchLectures(e){return(0,Er.mG)(this,void 0,void 0,function*(){if(e.trim())return this.searchedLectures=this.lecturesForSearch.filter(t=>t.title.join(" ").toLowerCase().trim().includes(e.toLowerCase().trim())||t.search.advanced.join(" ").includes(e)),this.searchedLectures})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](AF))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),bL=(()=>{class e{constructor(){this.isMenuActive=!0,this.onSearchFieldPlaceholderChange=new i.EventEmitter}toggleSidebar(e){this.isMenuActive=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const _L=["button"];function wL(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"button",18),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().goToPreviousPage()}),i["\u0275\u0275text"](1," Back "),i["\u0275\u0275elementEnd"]()}}function CL(e,t){1&e&&i["\u0275\u0275element"](0,"div",19)}function SL(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"ul",20),i["\u0275\u0275elementStart"](1,"li",21),i["\u0275\u0275text"](2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"li",22),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().logOut()}),i["\u0275\u0275element"](4,"tui-svg",23),i["\u0275\u0275text"](5,"Sign Out "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate1"](" ",e.userName," ")}}let EL=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,c,u,h,d){this._authorizationService=e,this._filterService=t,this._router=n,this._activatedRoute=r,this._dashboardService=i,this._searchService=o,this._lecturesService=s,this._paginationService=a,this._globalState=l,this._navigateBackService=c,this._localStorage=u,this._multiselectService=h,this._location=d,this.searchFieldText="Search here (E.g. surrender, love, Bg 4.34, SB 8.19.19, etc.)",this.searchMode=XO.LECTURES,this.searchTitle="lectures",this.open=!1,this.isDropdownActive=!1,this.search="",this.isBackBtnActive=!1,this.history=[],this._router.events.subscribe(e=>{e instanceof $B&&this.resetSearch(),e instanceof $B&&this.history.push(e.urlAfterRedirects),this.checkSearchMode()}),this._activatedRoute.url.subscribe(e=>{"lecture"===e[0].path&&(this.isBackBtnActive=!0)})}get isMenuActive(){return this._dashboardService.isMenuActive}set isMenuActive(e){this._dashboardService.isMenuActive=e}set searchRequest(e){this._filterService.search=e}ngOnInit(){this._dashboardService.onSearchFieldPlaceholderChange.subscribe(e=>{this.searchFieldText=e}),this.checkSearchMode(),this.form=new $t.FormGroup({search:new $t.FormControl("",[$t.Validators.required])}),this.shortUserName=this.getShortUserName(),this.userName=this.getUserName()}goToPreviousPage(){this._navigateBackService.videoMode=!0,this._navigateBackService.navigateBack()}checkSearchMode(){const e=this._router.url.split("/").includes("playlists"),t=this._router.url.split("/").length;e&&3===t?(this.searchMode=XO.PLAYLISTS,this.searchTitle=XO.PLAYLISTS):(this.searchMode=XO.LECTURES,this.searchTitle=XO.LECTURES)}getShortUserName(){const e=JSON.parse(this._localStorage.getItem("user"));let t;if(e.email)t=e.email.slice(0,2).toUpperCase();else if(e.displayName){const n=e.displayName.split(" ");t=`${n[0][0]}${n[1][0]}`.toUpperCase()}return t}onDropdownClick(e){this.button.nativeElement.contains(e.target)||(this.isDropdownActive=!1)}getUserName(){return JSON.parse(this._localStorage.getItem("user")).email?JSON.parse(this._localStorage.getItem("user")).email:JSON.parse(this._localStorage.getItem("user")).displayName}searchLectures(e){this.searchMode===XO.LECTURES?(clearTimeout(this.timeOut),this.timeOut=setTimeout(()=>(0,Er.mG)(this,void 0,void 0,function*(){var t,n;if((null===(t=this.search)||void 0===t?void 0:t.trim().length)>1||0==(null===(n=this.search)||void 0===n?void 0:n.trim().length))return this.searchRequest=e,void(this._globalState.searchRequest=e)}),350),this._multiselectService.searchSelectTrigger(!0)):(clearTimeout(this.timeOut),this.timeOut=setTimeout(()=>(0,Er.mG)(this,void 0,void 0,function*(){var t,n;((null===(t=this.search)||void 0===t?void 0:t.trim().length)>1||0==(null===(n=this.search)||void 0===n?void 0:n.trim().length))&&(this._globalState.playlistsSearchRequest=e)}),350))}resetSearch(){this.search="",this._globalState.searchRequest="",this._multiselectService.searchSelectTrigger(!1)}logOut(){this.toggleDropdown(),this._authorizationService.logOut()}toggleMenu(){this.isMenuActive=!this.isMenuActive}toggleDropdown(){this.isDropdownActive=!this.isDropdownActive}clearFilters(){this._globalState.searchRequest="",this.search="",this._globalState.sortRequest="Default View",this._globalState.showRequest=YO.AUDIOS,this._multiselectService.searchSelectTrigger(!1),this._filterService.clearActiveFilters()}isLecturesEmpty(){this._lecturesService.lectures?this.form.get("search").enable():this.form.get("search").disable()}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](GO),i["\u0275\u0275directiveInject"](hF),i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](eP),i["\u0275\u0275directiveInject"](bL),i["\u0275\u0275directiveInject"](yL),i["\u0275\u0275directiveInject"](sF),i["\u0275\u0275directiveInject"](dF),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](PF),i["\u0275\u0275directiveInject"](Qp),i["\u0275\u0275directiveInject"](AF),i["\u0275\u0275directiveInject"](Ft.Ye))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-header"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](_L,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.button=e.first)}},hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("click",function(e){return t.onDropdownClick(e)},!1,i["\u0275\u0275resolveDocument"])},decls:24,vars:11,consts:[[1,"header"],[1,"container","header__container"],["type","button",1,"menu-btn","tui-space_right-6",3,"click"],["src","tuiIconMenuLarge",1,"menu-btn__icon"],["routerLink","/dashboard/categories",1,"logo","header__logo",3,"click"],["src","../../../assets/img/ava.jpg","alt","Bhakti Vikasa Swami",1,"logo__img","header__logo-img","tui-space_right-4"],[1,"logo__title","tui-text_h6"],["tuiButton","","appearance","primary","type","button","size","s","leftIcon","tuiIconArrowLeft",3,"click",4,"ngIf"],[1,"search","header__search",3,"formGroup"],["class","form__block",4,"ngIf"],["tuiTextfieldExampleText","Type your search request","tuiTextfieldSize","s","formControlName","search",1,"search__field",3,"ngModel","tuiTextfieldCleaner","ngModelChange"],["tuiIconButton","","type","submit","appearance","primary-orange","icon","tuiIconSearch","size","s",1,"search-btn","tui-space_left-3"],[1,"user"],[1,"user__avatar","tui-text_h6"],[1,"user__drop-button",3,"tuiDropdownContent","tuiDropdown","click"],["button",""],["src","tuiIconChevronDown",1,"menu-btn__icon"],["dropdownContent",""],["tuiButton","","appearance","primary","type","button","size","s","leftIcon","tuiIconArrowLeft",3,"click"],[1,"form__block"],[1,"dropdown"],[1,"dropdown__item","dropdown__item--disabled"],[1,"dropdown__item",3,"click"],["src","tuiIconLogoutLarge",1,"dropdown__icon"]],template:function(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275elementStart"](2,"button",2),i["\u0275\u0275listener"]("click",function(){return t.toggleMenu()}),i["\u0275\u0275element"](3,"tui-svg",3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"div",4),i["\u0275\u0275listener"]("click",function(){return t.clearFilters()}),i["\u0275\u0275element"](5,"img",5),i["\u0275\u0275elementStart"](6,"h1",6),i["\u0275\u0275text"](7," Bhakti Vikasa Swami "),i["\u0275\u0275elementStart"](8,"span"),i["\u0275\u0275text"](9,"(Beta)"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](10,wL,2,0,"button",7),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"form",8),i["\u0275\u0275template"](12,CL,1,0,"div",9),i["\u0275\u0275elementStart"](13,"tui-input",10),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.search=e})("ngModelChange",function(){return t.searchLectures(t.search)}),i["\u0275\u0275text"](14),i["\u0275\u0275elementEnd"](),i["\u0275\u0275element"](15,"button",11),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](16,"div",12),i["\u0275\u0275elementStart"](17,"div",13),i["\u0275\u0275text"](18),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](19,"button",14,15),i["\u0275\u0275listener"]("click",function(){return t.toggleDropdown()}),i["\u0275\u0275element"](21,"tui-svg",16),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](22,SL,6,1,"ng-template",null,17,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](23);i["\u0275\u0275advance"](10),i["\u0275\u0275property"]("ngIf",t.isBackBtnActive),i["\u0275\u0275advance"](1),i["\u0275\u0275classProp"]("search-hide",t.is
1BackBtnActive),i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.isLecturesEmpty()),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngModel",t.search)("tuiTextfieldCleaner",!0),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",t.searchFieldText," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate"](t.shortUserName),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("tuiDropdownContent",e)("tuiDropdown",t.isDropdownActive)}},directives:[Fa,CO,Ft.O5,$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,Ld,ah,yh,$t.NgControlStatus,$t.FormControlName,th,Ya,yu],styles:[".header[_ngcontent-%COMP%]{padding:8px 0;border-bottom:1px solid #e0e0e0}.header__container[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}.menu-btn[_ngcontent-%COMP%]{color:var(--primary-gray);background:#0000;border:none;cursor:pointer}.logo[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.logo__img[_ngcontent-%COMP%]{width:40px;height:40px}.logo__title[_ngcontent-%COMP%]{display:block;margin-right:15px}.logo__title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#f4c430}.search[_ngcontent-%COMP%]{position:absolute;left:50%;display:flex;align-items:center;justify-self:center;transform:translateX(-50%)}.search.search-hide[_ngcontent-%COMP%]{display:none}.search__field[_ngcontent-%COMP%]{width:384px;min-width:0}.login-btn[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{margin-left:auto}.user[_ngcontent-%COMP%]{display:flex}.user__avatar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:#fff;font-size:16px;background:#161d6e;border-radius:50%}.user__drop-button[_ngcontent-%COMP%]{background:#0000;border:none;cursor:pointer}.dropdown[_ngcontent-%COMP%]{padding:20px}.dropdown__item[_ngcontent-%COMP%]{cursor:pointer;transition:.4s}.dropdown__item[_ngcontent-%COMP%]:not(:last-child){padding-bottom:15px}.dropdown__item[_ngcontent-%COMP%]:hover{opacity:.5}.dropdown__item--disabled[_ngcontent-%COMP%]{cursor:unset}.dropdown__item--disabled[_ngcontent-%COMP%]:hover{opacity:1}.dropdown__icon[_ngcontent-%COMP%]{margin-right:10px}.form[_ngcontent-%COMP%]{position:relative}.form__block[_ngcontent-%COMP%]{position:absolute;z-index:2;width:100%;height:100%;background-color:hsla(0,0%,100%,.575)}.search-btn[_ngcontent-%COMP%], .search__field[_ngcontent-%COMP%]{position:relative;z-index:1}"]}),e})();function IL(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"span",7),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]().$implicit;i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate"](e.text)}}function xL(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",3),i["\u0275\u0275elementStart"](1,"a",4),i["\u0275\u0275element"](2,"tui-svg",5),i["\u0275\u0275template"](3,IL,2,1,"span",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit,n=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("routerLink",e.link),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("src",e.iconPath),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",n.isMenuActive)}}function TL(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",3),i["\u0275\u0275elementStart"](1,"a",4),i["\u0275\u0275element"](2,"tui-svg",5),i["\u0275\u0275elementStart"](3,"span",7),i["\u0275\u0275text"](4),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("routerLink",e.link),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("src",e.iconPath),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate"](e.text)}}let BL=(()=>{class e{constructor(e,t){this._dashboardService=t,this.sidebarLinksGroup1=[{iconPath:"./../../../assets/img/sprite.svg#media",text:"Media Library",link:"/dashboard/categories"},{iconPath:"tuiIconStarLarge",text:"Popular",link:"/dashboard/top"},{iconPath:"./../../../assets/img/sprite.svg#playlists",text:"Playlists",link:"/dashboard/playlists"},{iconPath:"tuiIconHeartLarge",text:"Favorites",link:"/dashboard/favorites"}],this.sidebarLinksGroup2=[{iconPath:"./../../../assets/img/sprite.svg#history",text:"History",link:"/dashboard/history"},{iconPath:"./../../../assets/img/sprite.svg#statistic",text:"Statistics",link:"/dashboard/statistics"},{iconPath:"tuiIconDownloadLarge",text:"Downloads",link:"/dashboard/downloads"},{iconPath:"./../../../assets/img/sprite.svg#about",text:"About",link:"/dashboard/about"},{iconPath:"./../../../assets/img/sprite.svg#donate",text:"Donate",link:"/dashboard/donate"},{iconPath:"tuiIconSettingsLarge",text:"Settings",link:"/dashboard/settings"}]}get isMenuActive(){return this._dashboardService.isMenuActive}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Ba),i["\u0275\u0275directiveInject"](bL))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-sidebar"]],decls:5,vars:4,consts:[[1,"sidebar"],[1,"sidebar-group"],["class","sidebar-group__item",4,"ngFor","ngForOf"],[1,"sidebar-group__item"],["routerLinkActive","sidebar-group__item-link--active",1,"sidebar-group__item-link",3,"routerLink"],[1,"icon",3,"src"],["class","sidebar-group__item-span tui-text_body-s",4,"ngIf"],[1,"sidebar-group__item-span","tui-text_body-s"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"aside",0),i["\u0275\u0275elementStart"](1,"ul",1),i["\u0275\u0275template"](2,xL,4,3,"li",2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"ul",1),i["\u0275\u0275template"](4,TL,5,3,"li",2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275classProp"]("active",t.isMenuActive),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngForOf",t.sidebarLinksGroup1),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngForOf",t.sidebarLinksGroup2))},directives:[Ft.sg,SO,IO,Fa,Ft.O5],styles:['.sidebar[_ngcontent-%COMP%]{transition:transform .25s ease-out}.sidebar.active[_ngcontent-%COMP%]   .sidebar-group__item-span[_ngcontent-%COMP%]{display:block}.sidebar-group[_ngcontent-%COMP%]{padding:24px 24px 16px}.sidebar-group[_ngcontent-%COMP%]:last-child{padding-top:0}.sidebar-group[_ngcontent-%COMP%]:last-child   li[_ngcontent-%COMP%]{border-bottom:none}.sidebar-group__item[_ngcontent-%COMP%]{position:relative;z-index:2;padding-bottom:16px;transition:.4s}.sidebar-group__item[_ngcontent-%COMP%]:hover:after{position:absolute;top:-8px;bottom:0;left:-24px;z-index:-1;width:calc(100% + 48px);height:100%;background-color:var(--light-gray);content:""}.sidebar-group__item[_ngcontent-%COMP%]:last-child{border-bottom:1px solid #e0e0e0}.sidebar-group__item-span[_ngcontent-%COMP%]{display:none;color:#343a40}.sidebar-group__item-link[_ngcontent-%COMP%]{display:flex;align-items:center;color:#909090;text-decoration:none}.sidebar-group__item-link[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{min-width:134px;padding-left:16px;white-space:nowrap}.sidebar-group__item-link[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:24px;height:24px;
1fill:var(--primary-gray)}.sidebar-group__item-link--active[_ngcontent-%COMP%]{color:var(--tui-support-08)}.sidebar-group__item-link--active[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--tui-support-08);font-weight:700}.menu-btn[_ngcontent-%COMP%]{transition:.4s}.menu-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{min-width:110px}']}),e})(),kL=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,c,u,h){this._lecturesService=e,this._filterService=t,this._paginationService=n,this._searchService=r,this._globalState=i,this._audioPlayerService=o,this._lectureMethodsService=s,this._multiSelectService=a,this._navigateBackService=l,this._location=c,this._router=u,this.route=h,this.isSelectMode=!1,this.progressLineWidth=0,this._multiSelectService.onSelectedLecturesChange.subscribe(()=>{this.selectedLecturesLength=this._multiSelectService.selectedLectures.length}),this._multiSelectService.onSelectMode.subscribe(()=>{this.isSelectMode=this._multiSelectService.isSelectMode}),this.route.url.subscribe(()=>{this._multiSelectService.unchooseAll(),this._multiSelectService.searchSelectTrigger(!1),this.activateAudioPlayer()}),this._navigateBackService.videoMode&&(this._globalState.showRequest=YO.VIDEOS,this._navigateBackService.videoMode=!1)}get allLectures(){return this._lecturesService.allLectures}get searchRequest(){return this._lectureMethodsService.searchRequest}get sortRequest(){return this._lectureMethodsService.sortRequest}get showRequest(){return this._lectureMethodsService.showRequest}set showRequest(e){this._lectureMethodsService.showRequest=e}set sortRequest(e){this._lectureMethodsService.sortRequest=e}set searchRequest(e){this._lectureMethodsService.searchRequest=e}ngOnInit(){this.isSelectMode=this._multiSelectService.isSelectMode,this.form=new $t.FormGroup({show:new $t.FormControl(null),sort:new $t.FormControl(null),filter:new $t.FormControl(null)}),this.selectedLecturesLength=this._multiSelectService.selectedLectures.length}ngOnDestroy(){}toggleSelectMode(){this._multiSelectService.toggleSelectMode()}isSortRequests(){return!(!this.searchRequest.trim()&&"Default View"===this.sortRequest)}onSortChange(){this.showRequest!==YO.VIDEOS&&(this._paginationService.setLecturesLimit(1),this._paginationService.paginateAll(this.searchRequest?this._searchService.allSearchedLectures:this._lecturesService.allLectures))}activateAudioPlayer(){return(0,Er.mG)(this,void 0,void 0,function*(){const e=this.route.snapshot.queryParams;if(!(null==e?void 0:e.start_point)&&!(null==e?void 0:e.lecture_id))return;const t=yield this._lecturesService.getLectureByIdFromFirebase(+(null==e?void 0:e.lecture_id));this._audioPlayerService.setData([...t],0,e.start_point)})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](sF),i["\u0275\u0275directiveInject"](hF),i["\u0275\u0275directiveInject"](dF),i["\u0275\u0275directiveInject"](yL),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](kF),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](AF),i["\u0275\u0275directiveInject"](PF),i["\u0275\u0275directiveInject"](Ft.Ye),i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](eP))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-dashboard"]],decls:5,vars:0,consts:[[1,"dashboard"],[1,"dashboard__content"]],template:function(e,t){1&e&&(i["\u0275\u0275element"](0,"app-header"),i["\u0275\u0275elementStart"](1,"div",0),i["\u0275\u0275element"](2,"app-sidebar"),i["\u0275\u0275elementStart"](3,"div",1),i["\u0275\u0275element"](4,"router-outlet"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]())},directives:[EL,BL,xO],styles:[".dashboard__wrapper[_ngcontent-%COMP%] >.content{padding-bottom:40px}.select-mode-wrapper[_ngcontent-%COMP%]{display:flex}.lectures-length[_ngcontent-%COMP%]{margin-bottom:10px;text-align:right}  .filter-badge{position:absolute;top:0;right:0;z-index:2;display:flex;align-items:center;justify-content:center;width:15px;height:15px;color:#fff;font-size:10px;background:var(--tui-support-08);border-radius:50%;transform:translate(50%,100%)}  .select-wrapper{position:relative}"]}),e})();function PL(e,t){if(1&e&&i["\u0275\u0275text"](0),2&e){const e=i["\u0275\u0275nextContext"]().$implicit;i["\u0275\u0275textInterpolate1"](" ",e.lectureName," ")}}function OL(e,t){1&e&&i["\u0275\u0275element"](0,"tui-loader",12),2&e&&i["\u0275\u0275property"]("showLoader",!0)("inheritColor",!0)}function FL(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"a",13),i["\u0275\u0275element"](1,"img",14),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]().$implicit;i["\u0275\u0275property"]("href",e.url?e.url:"",i["\u0275\u0275sanitizeUrl"])}}function LL(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"tr"),i["\u0275\u0275elementStart"](1,"td",7),i["\u0275\u0275text"](2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](3,PL,1,1,"ng-template",null,8,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementStart"](5,"td"),i["\u0275\u0275text"](6),i["\u0275\u0275pipe"](7,"date"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](8,"td"),i["\u0275\u0275text"](9),i["\u0275\u0275pipe"](10,"date"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"td",9),i["\u0275\u0275template"](12,OL,1,2,"tui-loader",10),i["\u0275\u0275template"](13,FL,2,1,"a",11),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit,n=t.index,r=i["\u0275\u0275reference"](4),o=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("tuiHint",r),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e.lectureName," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](" ",i["\u0275\u0275pipeBind2"](7,6,1e3*e.createdDate.seconds,"MM.dd.yyyy HH:mm")," "),i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",i["\u0275\u0275pipeBind2"](10,9,1e3*(e.createdDate.seconds+172800),"MM.dd.yyyy HH:mm")," "),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngIf",null==o.downloadsStatuses||!o.downloadsStatuses.length||!o.downloadsStatuses[n]),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!(null==o.downloadsStatuses||!o.downloadsStatuses.length)&&o.downloadsStatuses[n])}}function ML(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"table",5),i["\u0275\u0275elementStart"](1,"thead"),i["\u0275\u0275elementStart"](2,"tr"),i["\u0275\u0275elementStart"](3,"th"),i["\u0275\u0275text"](4,"Name"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"th"),i["\u0275\u0275text"](6,"Date added"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"th"),i["\u0275\u0275text"](8,"Date of expiry"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"th"),i["\u0275\u0275text"](10,"Download"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"tbody"),i["\u0275\u0275template"](12,LL,14,12,"tr",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](12),i["\u0275\u0275property"]("ngForOf",e.data)}}let DL=(()=>{class e{constructor(e,t){this._downloadsService=e,this._globalState=t,this._globalState.onLecturesLoaded.subscribe(()=>(0,Er.mG)(this,void 0,void 0,function*(){yield this.refreshDownloadLinks(),this.downloadsStatusChecker=this._downloadsService.downloadsStatusChecker$.subscribe(e=>(0,Er.mG)(this,void 0,void 0,function*(){this.refreshDownloadStatuses(e),yield this.refreshDownloadLinks()}))}))}get downloadsStatuses(){return this._downloadsService.allDownloadStatuses}ngOnInit(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this.refreshDownloadLinks(),this.downloadsStatusChecker=this._downloadsService.downloadsStatusChecker$.subscribe(e=>(0,Er.mG)(this,void 0,void 0,function*(){this.refreshDownloadStatuses(e),yield this.refreshDownloadLinks()}))})}ngOnDestroy(){this.downloadsStatusChecker.unsubscribe()}refreshDownloadLinks(){return(0,Er.mG)(this,void 0,void 0,function*(){this.data=yield this._downloadsService.getDownloadsLinksFromFB()})}refreshDownloadStatuses(e){const t=[];this._downloadsService.clearDownloadsStatusStorage(),e.forEach(e
1=>{t.push("PENDING"!==e.status)}),this._downloadsService.pushStatusInStorage(t)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](IF),i["\u0275\u0275directiveInject"](eF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-downloads"]],decls:6,vars:4,consts:[[1,"dashboard-head"],[1,"dashboard-head__title","tui-text_h4"],["appPagination","",1,"dashboard__wrapper","downloads"],["class","table",4,"ngIf"],["size","xxl",1,"content-loader",3,"showLoader","overlay","inheritColor"],[1,"table"],[4,"ngFor","ngForOf"],["tuiHintDirection","top","tuiHintMode","onDark",3,"tuiHint"],["nameTooltip",""],[1,"td"],["class","inline-flex",3,"showLoader","inheritColor",4,"ngIf"],["target","blank",3,"href",4,"ngIf"],[1,"inline-flex",3,"showLoader","inheritColor"],["target","blank",3,"href"],["src","../../../../assets/img/download.svg","alt",""]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"h2",1),i["\u0275\u0275text"](2,"Downloads"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"tui-scrollbar",2),i["\u0275\u0275template"](4,ML,13,1,"table",3),i["\u0275\u0275element"](5,"tui-loader",4),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",t.data),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("showLoader",!t.data)("overlay",!0)("inheritColor",!0))},directives:[wc,OF,Ft.O5,ba,Ft.sg,Mc],pipes:[Ft.uU],styles:['.downloads[_ngcontent-%COMP%]{padding-top:20px;padding-right:30px;padding-left:15px}.downloads[_ngcontent-%COMP%]  .table{min-width:80%;max-width:100%}.downloads[_ngcontent-%COMP%]  .table td, .downloads[_ngcontent-%COMP%]  .table th{padding:0 10px}.downloads[_ngcontent-%COMP%]  .table td:first-child, .downloads[_ngcontent-%COMP%]  .table th:first-child{padding-left:6px}.downloads[_ngcontent-%COMP%]  .table th{padding-bottom:10px;font-weight:400;font-size:11px;line-height:16px;letter-spacing:.4px;text-align:start;border:0}.downloads[_ngcontent-%COMP%]  .table td{position:relative;z-index:1;max-width:50vw;height:32px;color:#000;font-weight:400;font-size:13px;line-height:20px;background:#0000;border:0}.downloads[_ngcontent-%COMP%]  .table td:first-child{max-width:45vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.downloads[_ngcontent-%COMP%]  .table td:last-child{width:100px}.downloads[_ngcontent-%COMP%]  .table tr{position:relative}.downloads[_ngcontent-%COMP%]  .table tbody tr:after{position:absolute;top:0;left:0;width:calc(100% - 60px);height:100%;background:#f4f4f4;border-radius:4px;opacity:0;transition:.17s ease-out;content:""}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.downloads[_ngcontent-%COMP%]  .table tbody tr:after{display:none}}}.downloads[_ngcontent-%COMP%]  .table tbody tr:hover:after{opacity:1}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.downloads[_ngcontent-%COMP%]  .table tbody tr:hover td{background:#f4f4f4;transition:.17s ease-out}}}.td[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translateX(-50%)}']}),e})();function NL(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",12),i["\u0275\u0275elementStart"](1,"div",13),i["\u0275\u0275elementStart"](2,"button",14),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().addSelectedToPlaylist()}),i["\u0275\u0275text"](3," Add to Playlist "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"div",13),i["\u0275\u0275elementStart"](5,"button",15),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().addSelectedToFavorites()}),i["\u0275\u0275text"](6," Add to Favorites "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"div",13),i["\u0275\u0275elementStart"](8,"button",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().downloadLectures()}),i["\u0275\u0275text"](9," Download "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"div",13),i["\u0275\u0275elementStart"](11,"button",17),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().markSelectedAsCompleted()}),i["\u0275\u0275text"](12," Mark as Complete "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](13,"div",13),i["\u0275\u0275elementStart"](14,"button",18),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().selectAll()}),i["\u0275\u0275text"](15," Select All "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength)}}const RL=function(){return["All-time","This month","This week","Today"]};function UL(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",26),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,RL))}const jL=function(){return["Audio only (all lectures)","Only lectures with video"]};function QL(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",26),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,jL))}const HL=function(){return["Default View","Duration (low to high)","Duration (high to low)","Rec date (oldest first)","Rec date (latest first)","Alphabetically (A
1-Z)","Alphabetically (Z-A)"]};function VL(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",26),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,HL))}function qL(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",27),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e.activeFiltersCount," ")}}function KL(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",13),i["\u0275\u0275elementStart"](1,"h5",19),i["\u0275\u0275text"](2,"Period"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"tui-select",20),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().periodRequest=t}),i["\u0275\u0275text"](4," All-time "),i["\u0275\u0275template"](5,UL,1,2,"tui-data-list-wrapper",21),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"div",13),i["\u0275\u0275elementStart"](7,"h5",19),i["\u0275\u0275text"](8,"Playback Mode"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"tui-select",22),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().showRequest=t}),i["\u0275\u0275text"](10," Audio only (all lectures) "),i["\u0275\u0275template"](11,QL,1,2,"tui-data-list-wrapper",21),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"div",13),i["\u0275\u0275elementStart"](13,"h5",19),i["\u0275\u0275text"](14,"Sort by"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](15,"tui-select",23),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().sortRequest=t}),i["\u0275\u0275text"](16," Default View View "),i["\u0275\u0275template"](17,VL,1,2,"tui-data-list-wrapper",21),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](18,"div",13),i["\u0275\u0275template"](19,qL,2,1,"div",24),i["\u0275\u0275elementStart"](20,"button",25),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().showDialog()}),i["\u0275\u0275text"](21," Filters "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngModel",e.periodRequest),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngModel",e.showRequest),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngModel",e.sortRequest),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",e.activeFiltersCount)}}function GL(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"h5",28),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" Selected: ",e.selectedLecturesLength," ")}}function zL(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",31),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](2);return o.interractWithLecture(n,o.topLectures,r)})("onClick",function(t){i["\u0275\u0275restoreView"](e);const n=i["\u0275\u0275nextContext"](2);return n.playLecture(t,n.topLectures)}),i["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit;i["\u0275\u0275property"]("lectureData",e)("lectureData",e)}}function WL(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",29),i["\u0275\u0275template"](1,zL,1,2,"app-lecture-post",30),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",e.topLectures)}}function $L(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-loader",32),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("showLoader",e.contentLoader)("overlay",!0)("inheritColor",!0)}}function YL(e,t){if(1&e&&i["\u0275\u0275element"](0,"app-lectures",33),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("allLectures",e.topLectures)}}let XL=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p){this._lecturesService=e,this._filterService=t,this._multiSelectService=n,this.route=r,this._paginationService=i,this._dialogService=o,this._searchService=s,this._downloadService=a,this._lectureProgressService=l,this._globalState=c,this._router=u,this._audioPlayerService=h,this._navigateBackService=d,this._favortieService=A,this._modalService=p,this.isSelectMode=!1,this.isLecturePopupActive=!1,this.isSelectAfterSearch=!1,this.lecturesMode=WO.play_audio,this.dialog=this._dialogService.open(new ca(vF),{data:237,dismissible:!0,label:"Filters",size:"s",closeable:!1}),this._multiSelectService.onSelectedLecturesChange.subscribe(()=>{this.selectedLecturesLength=this._multiSelectService.selectedLectures.length}),this._multiSelectService.onSelectMode.subscribe(()=>{this.isSelectMode=this._multiSelectService.isSelectMode,this.setLectureMode()}),this.route.url.subscribe(()=>{this._multiSelectService.unchooseAll(),this._multiSelectService.setSelectAllLectures([])})}get activeFiltersCount(){return this._filterService.getAllActiveFiltersCount()}get topLectures(){return this._lecturesService.topLectures}get popularLecturesIsReady(){return this._lecturesService.popularLecturesIsReady}get searchRequest(){return this._globalState.searchRequest}
1get sortRequest(){return this._globalState.sortRequest}get showRequest(){return this.setLectureMode(),this._globalState.showRequest}get periodRequest(){return this._globalState.periodRequest}set showRequest(e){this._globalState.showRequest=e}set sortRequest(e){this._globalState.sortRequest=e}set searchRequest(e){this._globalState.searchRequest=e}set periodRequest(e){this._globalState.periodRequest=e}ngOnInit(){this._navigateBackService.oldPath=this._router.url,console.log(this._router.url),this.isSelectMode=this._multiSelectService.isSelectMode,this.form=new $t.FormGroup({show:new $t.FormControl(null),sort:new $t.FormControl(null),filter:new $t.FormControl(null),period:new $t.FormControl(null)}),this._paginationService.pageIndex=1,this.periodRequest="All-time",this.selectedLecturesLength=this._multiSelectService.selectedLectures.length}downloadLectures(){const e=this._multiSelectService.getSelectedLecturesIds();this._downloadService.addLecturesToDownloads(e),this._multiSelectService.unchooseAll()}interractWithLecture(e,t,n){switch(this.lecturesMode){case WO.play_audio:this._audioPlayerService.setData(t,n);break;case WO.open_lecture_page:this._router.navigateByUrl("/lecture/"+e.id);case WO.select:this._multiSelectService.toggleLectureSelect(e.id)}}closeLecturePopup(){this.isLecturePopupActive=!1}showDialog(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this.dialog.toPromise()})}isSortRequests(){return!this.searchRequest.trim()&&"Default View"==this.sortRequest&&!this.activeFiltersCount&&this.showRequest==YO.AUDIOS}setLectureMode(){this.lecturesMode=this.isSelectMode?WO.select:this._globalState.showRequest===YO.AUDIOS?WO.play_audio:WO.open_lecture_page}toggleSelectMode(){this._multiSelectService.toggleSelectMode()}selectAll(){0!==this.activeFiltersCount||this._globalState.searchRequest.length||"Default View"!==this.sortRequest||this.showRequest===YO.VIDEOS||this._multiSelectService.setSelectAllLectures(this._lecturesService.topLectures.map(e=>e.id)),this._multiSelectService.chooseAll()}addSelectedToFavorites(){this._favortieService.addSelectedLecturesToFavorites(),this._multiSelectService.unchooseAll()}markSelectedAsCompleted(){this._multiSelectService.selectedLectures.forEach(e=>{this._lectureProgressService.markAsComplete(e)}),this._multiSelectService.unchooseAll()}addSelectedToPlaylist(){this._modalService.addToPlaylist(this._multiSelectService.getSelectedLectures),this._multiSelectService.unchooseAll()}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](sF),i["\u0275\u0275directiveInject"](hF),i["\u0275\u0275directiveInject"](AF),i["\u0275\u0275directiveInject"](eP),i["\u0275\u0275directiveInject"](dF),i["\u0275\u0275directiveInject"](Ku),i["\u0275\u0275directiveInject"](yL),i["\u0275\u0275directiveInject"](IF),i["\u0275\u0275directiveInject"](xF),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](kF),i["\u0275\u0275directiveInject"](PF),i["\u0275\u0275directiveInject"](yF),i["\u0275\u0275directiveInject"](QF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-top-lectures"]],decls:15,vars:9,consts:[[1,"dashboard-head"],[1,"dashboard-head__title","tui-text_h4"],[1,"dashboard-head__filters-wrapper",3,"formGroup"],["class","select-mode-wrapper",4,"ngIf","ngIfElse"],["filters",""],[1,"select-wrapper","select-mode-btn"],["class","select-wrapper__text lectures-length",4,"ngIf"],["tuiButton","","type","button","size","s",3,"appearance","click"],["appPagination","",1,"dashboard__wrapper","top-lectures"],["class","lectures-wrapper",4,"ngIf"],[3,"ngIf"],[3,"allLectures",4,"ngIf"],[1,"select-mode-wrapper"],[1,"select-wrapper","tui-space_right-6"],["tuiButton","","icon","./../../../assets/img/sprite.svg#addPlaylist","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","icon","./../../../assets/img/sprite.svg#heart","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","icon","./../../../assets/img/sprite.svg#download","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","icon","./../../../assets/img/sprite.svg#checkbox","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","appearance","outline","type","button","size","s",3,"click"],[1,"select-wrapper__text"],["tuiTextfieldSize","s","formControlName","period",1,"select-wrapper__select",3,"ngModel","ngModelChange"],[3,"items",4,"tuiDataList"],["tuiTextfieldSize","s","formControlName","show",1,"select-wrapper__select",3,"ngModel","ngModelChange"],["tuiTextfieldSize","s","formControlName","sort",1,"select-wrapper__select",3,"ngModel","ngModelChange"],["class","filter-badge",4,"ngIf"],["tuiButton","","icon","./../../../assets/img/sprite.svg#filter","appearance","outline","type","button","size","s",3,"click"],[3,"items"],[1,"filter-badge"],[1,"select-wrapper__text","lectures-length"],[1,"lectures-wrapper"],[3,"lectureData","onLectureClick","onClick",4,"ngFor","ngForOf"],[3,"lectureData","onLectureClick","onClick"],["size","xxl",1,"content-loader",3,"showLoader","overlay","inheritColor"],[3,"allLectures"]],template:function(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"h2",1),i["\u0275\u0275text"](2,"Popular"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"form",2),i["\u0275\u0275template"](4,NL,16,4,"div",3),i["\u0275\u0275template"](5,KL,22,4,"ng-template",null,4,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementStart"](7,"div",5),i["\u0275\u0275template"](8,GL,2,1,"h5",6),i["\u0275\u0275elementStart"](9,"button",7),i["\u0275\u0275listener"]("click",function(){return t.toggleSelectMode()}),i["\u0275\u0275text"](10),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"tui-scrollbar",8),i["\u0275\u0275template"](12,WL,2,1,"div",9),i["\u0275\u0275template"](13,$L,1,3,"ng-template",10),i["\u0275\u0275template"](14,YL,1,1,"app-lectures",11),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](6);i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.isSelectMode)("ngIfElse",e),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",t.selectedLecturesLength>0),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("appearance",t.isSelectMode?"secondary":"outline"),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",t.isSelectMode?"Cancel":"Select Multiple Files"," "),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.isSortRequests()),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.popularLecturesIsReady),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!t.isSortRequests())}},directives:[$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,Ft.O5,Ya,wc,OF,$d,yh,$t.NgControlStatus,$t.FormControlName,Ou,yp,Ft.sg,ZF,ba,tL],styles:[".dashboard__wrapper_top[_ngcontent-%COMP%]{padding-bottom:100%}"]}),e})();class JL{constructor(){this.data=[],this.pageIndex=0,this.size=20}setData(e){this.data=e}getNextPage(){return this.data.slice(this.size*this.pageIndex,this.size*++this.pageIndex)}}let ZL=(()=>{class e{constructor(){}sortLectures(e,t){switch(t){case"Default View":case"":case void 0:return e;case"Duration (low to high)":return null==e?void 0:e.sort((e,t)=>
1+(null==e?void 0:e.length)-+(null==t?void 0:t.length));case"Duration (high to low)":return null==e?void 0:e.sort((e,t)=>+(null==t?void 0:t.length)-+(null==e?void 0:e.length));case"Rec date (oldest)":return null==e?void 0:e.sort((e,t)=>+Date.parse(null==e?void 0:e.creationTimestamp)-+Date.parse(null==t?void 0:t.creationTimestamp));case"Rec date (latest)":return null==e?void 0:e.sort((e,t)=>+Date.parse(null==t?void 0:t.creationTimestamp)-+Date.parse(null==e?void 0:e.creationTimestamp));case"Alphabetically (A-Z)":return null==e?void 0:e.sort((e,t)=>(null==e?void 0:e.title)>(null==t?void 0:t.title)?1:(null==e?void 0:e.title)<(null==t?void 0:t.title)?-1:0);case"Alphabetically (Z-A)":return null==e?void 0:e.sort((e,t)=>(null==t?void 0:t.title)>(null==e?void 0:e.title)?1:(null==t?void 0:t.title)<(null==e?void 0:e.title)?-1:0)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function eM(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",12),i["\u0275\u0275elementStart"](1,"div",13),i["\u0275\u0275elementStart"](2,"button",14),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().removeFromFavorites()}),i["\u0275\u0275text"](3," Remove from favorites "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"div",13),i["\u0275\u0275elementStart"](5,"button",15),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().addSelectedToPlaylist()}),i["\u0275\u0275text"](6," Add to Playlist "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"div",13),i["\u0275\u0275elementStart"](8,"button",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().downloadLectures()}),i["\u0275\u0275text"](9," Download "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"div",13),i["\u0275\u0275elementStart"](11,"button",17),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().markSelectedAsCompleted()}),i["\u0275\u0275text"](12," Mark as Complete "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](13,"div",13),i["\u0275\u0275elementStart"](14,"button",18),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().selectAll()}),i["\u0275\u0275text"](15," Select All "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength)}}const tM=function(){return["Audio only (all lectures)","Only lectures with video"]};function nM(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",25),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,tM))}const rM=function(){return["Default View","Duration (low to high)","Duration (high to low)","Rec date (oldest)","Rec date (latest)","Alphabetically (A-Z)","Alphabetically (Z-A)"]};function iM(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",25),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,rM))}function oM(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",26),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e.activeFiltersCount," ")}}function sM(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",13),i["\u0275\u0275elementStart"](1,"h5",19),i["\u0275\u0275text"](2,"Playback Mode"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"tui-select",20),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().showRequest=t}),i["\u0275\u0275text"](4," Audio only (all lectures) "),i["\u0275\u0275template"](5,nM,1,2,"tui-data-list-wrapper",21),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"div",13),i["\u0275\u0275elementStart"](7,"h5",19),i["\u0275\u0275text"](8,"Sort by"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"tui-select",22),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().sortRequest=t}),i["\u0275\u0275text"](10," Default View "),i["\u0275\u0275template"](11,iM,1,2,"tui-data-list-wrapper",21),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"div",13),i["\u0275\u0275template"](13,oM,2,1,"div",23),i["\u0275\u0275elementStart"](14,"button",24),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().showDialog()}),i["\u0275\u0275text"](15," Filters "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngModel",e.showRequest),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngModel",e.sortRequest),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",e.activeFiltersCount)}}function aM(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"h5",27),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" Selected: ",e.selectedLecturesLength," ")}}function lM(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",30),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](2);return o.interractWithLecture(n,o.lectures,r)}),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275property"]("lectureData",t.$implicit)}function cM(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",28),i["\u0275\u0275template"](1,lM,1,1,"app-lecture-post",29),i["\u0275\u0275pipe"](2,"slice"),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind3"](2,1,e.lectures,0,20*e.paginationIndex))}}function uM(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-loader",31),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("showLoader",e.contentLoader)("overlay",!0)("inheritColor",!0)}}function hM(e,t){if(1&e&&i["\u0275\u0275element"](0,"app-lectures",32),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("isFavoritesPlaylist",!0)("allLectures",e.lectures)}}let dM=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p){this._sortService=e,this._paginationService=t,this._filterService=n,this._lectureMethodsService=r,this._dialogService=i,this._multiSelectService=o,this.route=s,this._favoritesService=a,this._downloadService=l,this._lectureProgressService=c,this._router=u,this._audioPlayerService=h,this._modalService=d,this._navigateBackService=A,this._globalStateService=p,this.isLecturePopupActive=!1,this.isSelectMode=!1,this.dataToRender=[],this.isSelectAfterSearch=!1,this.lecturesMode=WO.play_audio,this.dialog=this._dialogService.open(new ca(vF),{data:237,dismissible:!0,label:"Filters",size:"s",closeable:!1}),this._multiSelectService.onSelectedLecturesChange.subscribe(()=>{this.selectedLecturesLength=this._multiSelectService.selectedLectures.length}),this._multiSelectService.onSelectMode.subscribe(()=>{this.isSelectMode=this._multiSelectService.isSelectMode,this.setLectureMode()}),this.route.url.subscribe(()=>{this._multiSelectService.unchooseAll(),this._multiSelectService.setSelectAllLectures([])})}get favoriteLecturesIsLoaded(){return this._favoritesService.favoriteLecturesIsLoaded}get activeFiltersCount(){return this._filterService.getAllActiveFiltersCount()}get limit(){return this._paginationService.pageIndex}get lectures(){return this._favoritesService.allFavoriteLectures}get paginationIndex(){return this._paginationService.pageIndex}get searchRequest(){return this._lectureMethodsService.searchRequest}set searchRequest(e){this._lectureMethodsService.searchRequest=e}
1get sortRequest(){return this._lectureMethodsService.sortRequest}get showRequest(){return this.setLectureMode(),this._lectureMethodsService.showRequest}set showRequest(e){this._lectureMethodsService.showRequest=e}set sortRequest(e){this._lectureMethodsService.sortRequest=e}ngOnInit(){this._navigateBackService.oldPath=this._router.url,this.isSelectMode=this._multiSelectService.isSelectMode,this.form=new $t.FormGroup({show:new $t.FormControl(null),sort:new $t.FormControl(null),filter:new $t.FormControl(null)}),this._paginationService.pageIndex=1,this.data=this._favoritesService.favorites,this.paginator=new JL,this.paginator.setData(this.data),this.selectedLecturesLength=this._multiSelectService.selectedLectures.length}downloadLectures(){const e=this._multiSelectService.getSelectedLecturesIds();this._downloadService.addLecturesToDownloads(e),this._multiSelectService.unchooseAll()}checkLectureImage(e){return e||Zp}playLecture(e,t){this.activeLecture=t.findIndex(t=>t.id===e.id),this.activePlayList=t,this.isLecturePopupActive=!0}closeLecturePopup(){this.isLecturePopupActive=!1}isSortRequests(){return!this.searchRequest.trim()&&"Default View"==this.sortRequest&&!this.activeFiltersCount&&this.showRequest==YO.AUDIOS}showDialog(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this.dialog.toPromise()})}markSelectedAsCompleted(){this._multiSelectService.selectedLectures.forEach(e=>{this._lectureProgressService.markAsComplete(e)}),this._multiSelectService.unchooseAll()}toggleSelectMode(){this._multiSelectService.toggleSelectMode()}selectAll(){0!==this.activeFiltersCount||this._globalStateService.searchRequest||"Default View"!==this.sortRequest||this.showRequest===YO.VIDEOS||this._multiSelectService.setSelectAllLectures(this._favoritesService.allFavoriteLectures.map(e=>e.id)),this._multiSelectService.chooseAll()}interractWithLecture(e,t,n){switch(this.lecturesMode){case WO.play_audio:this._audioPlayerService.setData(t,n);break;case WO.open_lecture_page:this._router.navigateByUrl("/lecture/"+e.id);case WO.select:this._multiSelectService.toggleLectureSelect(e.id)}}setLectureMode(){this.lecturesMode=this.isSelectMode?WO.select:this._lectureMethodsService.showRequest===YO.AUDIOS?WO.play_audio:WO.open_lecture_page}removeFromFavorites(){this._favoritesService.toggleSelectedFavorites($O.DELETE)}addSelectedToPlaylist(){this._modalService.addToPlaylist(this._multiSelectService.getSelectedLectures)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](ZL),i["\u0275\u0275directiveInject"](dF),i["\u0275\u0275directiveInject"](hF),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](Ku),i["\u0275\u0275directiveInject"](AF),i["\u0275\u0275directiveInject"](eP),i["\u0275\u0275directiveInject"](yF),i["\u0275\u0275directiveInject"](IF),i["\u0275\u0275directiveInject"](xF),i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](kF),i["\u0275\u0275directiveInject"](QF),i["\u0275\u0275directiveInject"](PF),i["\u0275\u0275directiveInject"](eF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-favorites"]],decls:15,vars:9,consts:[[1,"dashboard-head"],[1,"dashboard-head__title","tui-text_h4"],[1,"dashboard-head__filters-wrapper",3,"formGroup"],["class","select-mode-wrapper",4,"ngIf","ngIfElse"],["filters",""],[1,"select-wrapper","select-mode-btn"],["class","select-wrapper__text lectures-length",4,"ngIf"],["tuiButton","","type","button","size","s",3,"appearance","click"],["appPagination","",1,"dashboard__wrapper","categories"],["class","lectures-wrapper",4,"ngIf"],[3,"ngIf"],[3,"isFavoritesPlaylist","allLectures",4,"ngIf"],[1,"select-mode-wrapper"],[1,"select-wrapper","tui-space_right-6"],["tuiButton","","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","icon","./../../../assets/img/sprite.svg#addPlaylist","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","icon","./../../../assets/img/sprite.svg#download","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","icon","./../../../assets/img/sprite.svg#checkbox","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","appearance","outline","type","button","size","s",3,"click"],[1,"select-wrapper__text"],["tuiTextfieldSize","s","formControlName","show",1,"select-wrapper__select",3,"ngModel","ngModelChange"],[3,"items",4,"tuiDataList"],["tuiTextfieldSize","s","formControlName","sort",1,"select-wrapper__select",3,"ngModel","ngModelChange"],["class","filter-badge",4,"ngIf"],["tuiButton","","icon","./../../../assets/img/sprite.svg#filter","appearance","outline","type","button","size","s",3,"click"],[3,"items"],[1,"filter-badge"],[1,"select-wrapper__text","lectures-length"],[1,"lectures-wrapper"],[3,"lectureData","onLectureClick",4,"ngFor","ngForOf"],[3,"lectureData","onLectureClick"],["size","xxl",1,"content-loader",3,"showLoader","overlay","inheritColor"],[3,"isFavoritesPlaylist","allLectures"]],template:function(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"h2",1),i["\u0275\u0275text"](2,"Favorites"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"form",2),i["\u0275\u0275template"](4,eM,16,4,"div",3),i["\u0275\u0275template"](5,sM,16,3,"ng-template",null,4,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementStart"](7,"div",5),i["\u0275\u0275template"](8,aM,2,1,"h5",6),i["\u0275\u0275elementStart"](9,"button",7),i["\u0275\u0275listener"]("click",function(){return t.toggleSelectMode()}),i["\u0275\u0275text"](10),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"tui-scrollbar",8),i["\u0275\u0275template"](12,cM,3,5,"div",9),i["\u0275\u0275template"](13,uM,1,3,"ng-template",10),i["\u0275\u0275template"](14,hM,1,2,"app-lectures",11),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](6);i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.isSelectMode)("ngIfElse",e),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",t.selectedLecturesLength>0),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("appearance",t.isSelectMode?"secondary":"outline"),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",t.isSelectMode?"Cancel":"Select Multiple Files"," "),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.isSortRequests()),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!t.favoriteLecturesIsLoaded),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!t.isSortRequests())}},directives:[$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,Ft.O5,Ya,wc,OF,$d,yh,$t.NgControlStatus,$t.FormControlName,Ou,yp,Ft.sg,ZF,ba,tL],pipes:[Ft.OU],styles:[""]}),e})();var AM=function(e){return e[e.citizen=0]="citizen",e[e.oci=1]="oci",e[e.notCitizen=2]="notCitizen",e}({}),pM=function(e){return e[e.indianBank=0]="indianBank",e[e.nonIndianBank=1]="nonIndianBank",e}({}),fM=function(e){return e[e.paymentGateway=0]="paymentGateway",e[e.directBank=1]="directBank",e}({});let gM=(()=>{class e{constructor(){this.onSuccessPayment=new i.EventEmitter}get nativeWindow(){return window}
1createPayment(e,t="indian"){let n=ef;n.key="indian"!==t?"rzp_test_YZH8BEeBIwwwpG":"rzp_test_LvDUh4q43pNF8G",e&&(n.prefill.name=null==e?void 0:e.name,n.prefill.contact=null==e?void 0:e.contact,n.prefill.email=null==e?void 0:e.email,n.currency=null==e?void 0:e.currency,n.amount=e.amount.toString()+"00",n.notes.address=null==e?void 0:e.address),n.handler=this.callSuccessPopup.bind(this),new this.nativeWindow.Razorpay(n).open()}callSuccessPopup(){this.onSuccessPayment.emit()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),mM=(()=>{class e{constructor(){this.onClose=new i.EventEmitter}ngOnInit(){}closePopup(){this.onClose.emit()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-thank-you-popup"]],outputs:{onClose:"onClose"},decls:9,vars:0,consts:[[1,"thanks-popup","thanks-popup_pos"],[1,"thanks-popup__content-wrapper"],[1,"thanks-popup__img-wrapper"],["src","../../../../../assets/icons/success.svg","alt","Success icon",1,"thanks-popup__img"],[1,"thanks-popup__text"],[1,"thanks-popup__button",3,"click"],[1,"thanks-popup__overlay",3,"click"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275elementStart"](2,"div",2),i["\u0275\u0275element"](3,"img",3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"h3",4),i["\u0275\u0275text"](5," Thank you! We have received your donation. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"button",5),i["\u0275\u0275listener"]("click",function(){return t.closePopup()}),i["\u0275\u0275text"](7,"Ok"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](8,"div",6),i["\u0275\u0275listener"]("click",function(){return t.closePopup()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]())},styles:[".thanks-popup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100vh}.thanks-popup_pos[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20}.thanks-popup__overlay[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100vh;background:#00000059}.thanks-popup__content-wrapper[_ngcontent-%COMP%]{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;width:400px;height:240px;padding:20px;background:#fff;border-radius:20px}.thanks-popup__img-wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:50%;display:flex;align-items:center;justify-content:center;width:88px;height:88px;background:linear-gradient(119.85deg,#02c34d -1.53%,#91ff8c 95.12%);border-radius:50%;transform:translate(-50%,-50%)}.thanks-popup__text[_ngcontent-%COMP%]{padding-top:30px;padding-bottom:30px;font-size:20px;line-height:140%;text-align:center}.thanks-popup__button[_ngcontent-%COMP%]{padding:12px 34px;color:#fff;font-weight:700;font-size:18px;background:var(--tui-support-08);border:none;border-radius:20px;cursor:pointer;transition:.4s}.thanks-popup__button[_ngcontent-%COMP%]:hover{opacity:.65}"]}),e})();function vM(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",6),i["\u0275\u0275elementStart"](1,"h4",17),i["\u0275\u0275text"](2,"How do you want to donate?"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"label"),i["\u0275\u0275elementStart"](4,"tui-radio",18),i["\u0275\u0275listener"]("change",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().selectBankType(0)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](5," Donating from an Indian Bank Account "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"label"),i["\u0275\u0275elementStart"](7,"tui-radio",19),i["\u0275\u0275listener"]("change",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().selectBankType(1)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](8," Donating from a non-indian Bank Account "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}}function yM(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",6),i["\u0275\u0275elementStart"](1,"h4",17),i["\u0275\u0275text"](2," Please select your payment method "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"label"),i["\u0275\u0275elementStart"](4,"tui-radio",20),i["\u0275\u0275listener"]("change",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().selectPaymentType(0)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](5," Payment Gateway "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"label"),i["\u0275\u0275elementStart"](7,"tui-radio",21),i["\u0275\u0275listener"]("change",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().selectPaymentType(1)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](8," Direct Bank Transfer "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}}const bM=function(){return["INR (Indian rupee)"]};function _M(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",38),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275property"]("items",0===e.bankType?i["\u0275\u0275pureFunction0"](1,bM):e.currencies)}}function wM(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",38),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275property"]("items",e.donateForVariants)}}function CM(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"tui-input",39),i["\u0275\u0275text"](1," Please Specify "),i["\u0275\u0275elementEnd"]())}function SM(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",22),i["\u0275\u0275elementStart"](1,"tui-input",23),i["\u0275\u0275text"](2," Name "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"tui-input",24),i["\u0275\u0275text"](4," Email "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"tui-input-phone-international",25),i["\u0275\u0275listener"]("countryIsoCodeChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().c
1ountryIsoCode=t}),i["\u0275\u0275text"](6," PhoneNumber "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"h4",26),i["\u0275\u0275text"](8,"Currency"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"tui-select",27),i["\u0275\u0275text"](10," Choose your currency "),i["\u0275\u0275template"](11,_M,1,2,"tui-data-list-wrapper",28),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"tui-input-number",29),i["\u0275\u0275text"](13," Amount "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](14,"h4",26),i["\u0275\u0275text"](15,"Donate for"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](16,"tui-select",30),i["\u0275\u0275text"](17," Choose your option "),i["\u0275\u0275template"](18,wM,1,1,"tui-data-list-wrapper",28),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](19,CM,2,0,"tui-input",31),i["\u0275\u0275elementStart"](20,"tui-input",32),i["\u0275\u0275text"](21," Address "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](22,"div",33),i["\u0275\u0275elementStart"](23,"tui-input",34),i["\u0275\u0275text"](24," City "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](25,"tui-input",35),i["\u0275\u0275text"](26," State "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](27,"tui-input",36),i["\u0275\u0275text"](28," Zip "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](29,"button",37),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().createPayment()}),i["\u0275\u0275text"](30," Continue "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](5),i["\u0275\u0275property"]("countries",e.countries)("countryIsoCode",e.countryIsoCode),i["\u0275\u0275advance"](14),i["\u0275\u0275property"]("ngIf","Other(s)"===e.form.get("donateFor").value),i["\u0275\u0275advance"](10),i["\u0275\u0275property"]("disabled",!e.form.valid)}}function EM(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",40),i["\u0275\u0275elementStart"](1,"p",41),i["\u0275\u0275text"](2,"For direct bank transfer:"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"p"),i["\u0275\u0275text"](4,"Beneficiary name: Bhagavat Shikshan Evam Gauraksha Trust"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"p"),i["\u0275\u0275text"](6,"State Bank of India - New Delhi branch."),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"p"),i["\u0275\u0275text"](8,"Account number: 40069468563"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"p"),i["\u0275\u0275text"](10,"IFS Code : SBI0000691"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"p"),i["\u0275\u0275text"](12,"Swift code : SBININBB104"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]())}function IM(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",40),i["\u0275\u0275elementStart"](1,"p",41),i["\u0275\u0275text"](2,"Kindly get in touch with us:"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"p"),i["\u0275\u0275text"](4,"Email: [email protected]"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"p"),i["\u0275\u0275text"](6,"Phone/WhatsApp: +917415128866"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]())}function xM(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-thank-you-popup",42),i["\u0275\u0275listener"]("onClose",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().toggleSuccessPopup(!1)}),i["\u0275\u0275elementEnd"]()}}let TM=(()=>{class e{constructor(e){this._paymentService=e,this.countries=Object.values(ls),this.countryIsoCode=ls.IN,this.isSuccessPopupActive=!1,this.citizenType=-1,this.paymentType=-1,this.bankType=-1,this.currencies=["AED (United Arab Emirates)","ALL (Albanian lek)","AMD (Armenian dram)","ARS (Argentine peso)","AUD (Australian dollar)","AWG (Aruban florin)","BBD (Barbadian dollar)","BDT (Bangladeshi taka)","BMD (Bermudian dollar)","BND (Brunei dollar)","BOB (Bolivian boliviano)","BSD (Bahamian dollar)","BWP (Botswana pula)","BZD (Belize dollar)","CAD (Canadian dollar)","CHF (Swiss franc)","CNY (Chinese Yuan Renminbi)","COP (Colombian peso)","CRC (Costa Rican colon)","CUP (Cuban peso)","CZK (Czech koruna)","DKK (Danish krone)","DOP (Dominican peso)","DZD (Algerian dinar)","EGP (Egyptian pound)","ETB (Ethiopian birr)","EUR (European euro)","FJD (Fijian dollar)","GBP (Pound sterling)","GIP (Gibraltar pound)","GMD (Gambian dalasi)","GTQ (Guatemalan quetzal)","GYD (Guyanese dollar)","HKD (Hong Kong dollar)","HNL (Honduran lempira)","HRK (Croatian kuna)","HTG (Haitian gourde)","HUF (Hungarian forint)","IDR (Indonesian rupiah)","INR (Indian rupee)","ILS (Israeli new shekel)","JMD (Jamaican dollar)","KES (Kenyan shilling)","KGS (Kyrgyzstani som)","KHR (Cambodian riel)","KYD (Cayman Islands dollar)","KZT (Kazakhstani tenge)","LAK (Lao kip)","LBP (Lebanese pound)","LKR (Sri Lankan rupee)","
1LRD (Liberian dollar)","LSL (Lesotho loti)","MAD (Moroccan dirham)","MDL (Moldovan leu)","MKD (Macedonian denar)","MMK (Myanmar kyat)","MNT (Mongolian tugrik)","MOP (Macanese pataca)","MUR (Mauritian rupee)","MVR (Maldivian rufiyaa)","MWK (Malawian kwacha)","MXN (Mexican peso)","MYR (Malaysian ringgit)","NAD (Namibian dollar)","NGN (Nigerian naira)","NIO (Nicaraguan cordoba)","NOK (Norwegian krone)","NPR (Nepalese rupee)","NZD (New Zealand dollar)","PEN (Peruvian sol)","PGK (Papua New Guinean kina)","PHP (Philippine peso)","PKR (Pakistani rupee)","QAR (Qatari riyal)","RUB (Russian ruble)","SAR (Saudi Arabian riyal)","SCR (Seychellois rupee)","SEK (Swedish krona)","SGD (Singapore dollar)","SLL (Sierra Leonean leone)","SOS (Somali shilling)","SSP (South Sudanese pound)","SVC (Salvadoran col\xf3n)","SZL (Swazi lilangeni)","THB (Thai baht)","TTD (Trinidad and Tobago dollar)","TZS (Tanzanian shilling)","USD (United States dollar)","UYU (Uruguayan peso)","UZS (Uzbekistani som)","YER (Yemeni rial)","ZAR (South African rand)"],this.donateForVariants=["BVKS Media Services (Website, Mobile Application, Audio/Video production, etc.)","Village Development","Gurukula Schools","Book Printing","No preference, BVKS Trust can decide","Other(s)"]}ngOnInit(){this.form=new $t.FormGroup({payment:new $t.FormControl(null),bank:new $t.FormControl(null),citizen:new $t.FormControl(null),name:new $t.FormControl(null,[$t.Validators.required]),email:new $t.FormControl(null,[$t.Validators.required,$t.Validators.email]),phone:new $t.FormControl(null,[$t.Validators.required]),currencyType:new $t.FormControl("INR (Indian rupee)"),donateFor:new $t.FormControl(null),others:new $t.FormControl(null),amount:new $t.FormControl(null,[$t.Validators.required]),address:new $t.FormControl(null,[$t.Validators.required]),city:new $t.FormControl(null,[$t.Validators.required]),state:new $t.FormControl(null,[$t.Validators.required]),zip:new $t.FormControl(null,[$t.Validators.required])}),this.createSuccessPaymentSubscribtion()}selectCitizenType(e){switch(this.resetRadioButtons(),e){case AM.citizen:this.citizenType=0;break;case AM.oci:this.citizenType=1;break;case AM.notCitizen:this.citizenType=2}}selectBankType(e){switch(this.paymentType=-1,this.form.get("currencyType").patchValue("INR (Indian rupee)"),this.form.get("payment").reset(),e){case pM.indianBank:this.bankType=0;break;case pM.nonIndianBank:this.bankType=1}}selectPaymentType(e){switch(e){case fM.paymentGateway:this.paymentType=0;break;case fM.directBank:this.paymentType=1}}resetRadioButtons(){this.paymentType=-1,this.bankType=-1,this.form.get("currencyType").patchValue("INR (Indian rupee)"),this.form.get("payment").reset(),this.form.get("bank").reset()}createPayment(){const e={name:this.form.get("name").value,contact:this.form.get("phone").value,email:this.form.get("email").value,address:`${this.form.get("address").value}, ${this.form.get("city").value}, ${this.form.get("state").value}, ${this.form.get("zip").value}`,currency:this.form.get("currencyType").value.substring(0,3),amount:this.form.get("amount").value};this._paymentService.createPayment(e,1!==this.citizenType&&2!==this.citizenType?"indian":"any")}toggleSuccessPopup(e){this.isSuccessPopupActive=e}createSuccessPaymentSubscribtion(){this._paymentService.onSuccessPayment.subscribe(()=>{this.toggleSuccessPopup(!0),this.form.reset(),this.citizenType=-1,this.paymentType=-1,this.bankType=-1})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](gM))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-donate-page"]],decls:35,vars:7,consts:[[1,"dashboard-head"],[1,"dashboard-head__title","tui-text_h4"],[1,"dashboard__wrapper","donate"],[1,"donate__text","tui-text_body-m"],[1,"donate-form",3,"formGroup"],[1,"donate-form__title","tui-text_h4"],[1,"donate-form__radio-group"],["formControlName","citizen","item","citizenOne",1,"tui-space_right-3",3,"change"],["formControlName","citizen","item","citizenTwo",1,"tui-space_right-3",3,"change"],["formControlName","citizen","item","citizenThree",1,"tui-space_right-3",3,"change"],["class","donate-form__radio-group",4,"ngIf"],["class","donate-form__inputs-group",4,"ngIf"],["class","donate__donate-text tui-space_bottom-4",4,"ngIf"],[1,"donate__postscript"],["href","mailto:[email protected]"],["href","tel:+917415128866"],[3,"onClose",4,"ngIf"],[1,"donate-form__title","tui-text_h6"],["formControlName","bank","item","bankOne",1,"tui-space_right-3",3,"change"],["formControlName","bank","item","bankTwo",1,"tui-space_right-3",3,"change"],["formControlName","payment","item","paymentOne",1,"tui-space_right-3",3,"change"],["formControlName","payment","item","paymentTwo",1,"tui-space_right-3",3,"change"],[1,"donate-form__inputs-group"],["tuiTextfieldSize","m","formControlName","name",1,"tui-space_bottom-3"],["tuiTextfieldSize","m","formControlName","email",1,"tui-space_bottom-3"],["tuiTextfieldSize","m","formControlName","phone",1,"tui-space_bottom-3",3,"countries","countryIsoCode","countryIsoCodeChange"],[1,"tui-space_bottom-3","tui-text_h6"],["tuiTextfieldSize","m","formControlName","currencyType",1,"tui-space_bottom-3"],[3,"items",4,"tuiDataList"],["formControlName","amount","tuiTextfieldSize","m",1,"tui-space_bottom-3"],["tuiTextfieldSize","m","formControlName","donateFor",1,"tui-space_bottom-3"],["class","tui-space_bottom-3","tuiTextfieldSize","m","formControlName","others",4,"ngIf"],["tuiTextfieldSize","m","formControlName","address",1,"tui-space_bottom-3"],[1,"donate-form__adress","tui-space_bottom-5"],["tuiTextfieldSize","m","formControlName","city",1,"donate-form__adress-input"],["tuiTextfieldSize","m","formControlName","state",1,"donate-form__adress-input"],["tuiTextfieldSize","m","formControlName","zip",1,"donate-form__adress-input"],["tuiButton","","type","button","appearance","primary-orange",3,"disabled","click"],[3,"items"],["tuiTextfieldSize","m","formControlName","others",1,"tui-space_bottom-3"],[1,"donate__donate-text","tui-space_bottom-4"],[1,"tui-space_bottom-2"],[3,"onClose"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"h2",1),i["\u0275\u0275text"](2,"Donate"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"tui-scrollbar",2),i["\u0275\u0275elementStart"](4,"p",3),i["\u0275\u0275text"](5," Donations are welcome for the upkeep of this site and for all other programs that His Holiness Bhakti Vikasa Swami is involved in. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"form",4),i["\u0275\u0275elementStart"](7,"h3",5),i["\u0275\u0275text"](8,"Dontation Form"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"div",6),i["\u0275\u0275elementStart"](10,"label"),i["\u0275\u0275elementStart"](11,"tui-radio",7),i["\u0275\u0275listener"]("change",function(){return t.selectCitizenType(0)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](12," I am a citizen of Indian/I am an NRI "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](13,"label"),i["\u0275\u0275elementStart"](14,"tui-radio",8),i["\u0275\u0275listener"]("change",function(){return t.selectCitizenType(1)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](15," I am an overseas citizen of India (OCI) "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](16,"label"),i["\u0275\u0275elementStart"](17,"tui-radio",9),i["\u0275\u0275listener"]("change",function(){return t.selectCitizenType(2)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](18," I am not a citizen of India "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](19,vM,9,0,"div",10),i["\u0275\u0275template"](20,yM,9,0,"div",10),i["\u0275\u0275template"](21,SM,31,4,"div",11),i["\u0275\u0275template"](22,EM,13,0,"div",12),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](23,IM,7,0,"div",12),i["\u0275\u0275elementStart"](24,"span",13),i["\u0275\u0275text"](25,"If you face any difficulty while donating, please contact us: "),i["\u0275\u0275element"](26,"br"),i["\u0275\u0275text"](27," Email: "),i["\u0275\u0275elementStart"](28,"a",14),i["\u0275\u0275text"](29,"[email protected]"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275element"](30,"br"),i["\u0275\u0275text"](31," WhatsApp and Regular phone calls: "),i["\u0275\u0275elementStart"](32,"a",15),i["\u0275\u0275text"](33,"+91 7415128866"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](34,xM,1,0,"app-thank-you-popup",16)),2&e&&(i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](13),i["\u0275\u0275property"]("ngIf",0===t.citizenType),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",1===t.citizenType||2===t.citizenType||0===t.bankType),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",0===t.paymentType),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",1===t.paymentType),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",1===t.bankType),i["\u0275\u0275advance"](11),i["\u0275\u0275property"]("ngIf",t.isSuccessPopupActive))},directives:[wc,$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,TA,$t.NgControlStatus,$t.FormControlName,Ft.O5,Ld,yh,up,$d,Ou,dA,Ya,yp,mM],styles:[".donate-form[_ngcontent-%COMP%]{max-width:900px;padding-right:30px;padding-bottom:96px}.donate-form__title[_ngcontent-%COMP%]{padding-bottom:24px;font-weight:700}.donate-form__radio-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.donate-form__radio-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:not(:last-child){padding-bottom:16px}.donate-form__radio-group[_ngcontent-%COMP%]:not(:last-child){margin-bottom:32px}.donate-form__adress[_ngcontent-%COMP%]{display:flex}.donate-form__adress-input[_ngcontent-%COMP%]{width:150px;margin-right:20px}.donate[_ngcontent-%COMP%]{padding-bottom:200px}.donate__text[_ngcontent-%COMP%]{max-width:647px;padding-bottom:24px}.donate__postscript[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--tui-support-08);text-decoration:none}"]}),e})();var BM=function(e){return e.BG="BG",e.CC="CC",e.SB="SB",e.Seminars="Seminars",e.VSN="VSN",e.others="others",e}({});let kM=(()=>{class e{constructor(e,t,n,r){this._firestoreService=e,this._authService=t,this._firestore=n,this._firebaseAuth=r,this.timeIncrementorInSeconds=10}getThisWeekListened(e){return this.calculateStatistic(this.calcThisWeekInfo(e))}getLastWeekListened(e){return this.calculateStatistic(this.calcLastWeekInfo(e))}getLastMonthListened(e){return this.calculateStatistic(this.calcLastMonthInfo(e))}getAllTimeListened(e){return this.calculateStatistic(e)}getCustomListened(e,t,n){return this.calculateStatistic(this.filterCustomInfo(e,t,n))}
1incrementLectureViews(e){return(0,Er.mG)(this,void 0,void 0,function*(){let t=yield this.getActuaLectureData(e);t.resources.audios[0].views+=1,this._firestoreService.collection("lectures").doc(t.fbId).update({resources:t.resources})})}getActuaLectureData(e){return(0,Er.mG)(this,void 0,void 0,function*(){return yield this._firestoreService.collection("lectures",t=>t.where("id","==",e)).get().pipe((0,on.U)(e=>Object.assign({fbId:e.docs[0].id},e.docs[0].data()))).toPromise()})}getListenInfo(){return(0,Er.mG)(this,void 0,void 0,function*(){if(this.user)return yield this._firestore.collection(`/users/${this.user.uid}/listenInfo/`).valueChanges().pipe(nr(1)).toPromise()})}requestTotalListened(){return(0,Er.mG)(this,void 0,void 0,function*(){if(this.user=yield this._firebaseAuth.user.pipe(nr(1)).toPromise(),this.user)return(yield this._firestore.collection(`/users/${this.user.uid}/lectureInfo/`,e=>e.where("isCompleted","==",!0)).valueChanges().pipe(nr(1)).toPromise()).length})}calculateStatistic(e){let t={};return t.audio=this.sum(e,"audioListen"),t.BG=this.sumCategory(e,BM.BG),t.CC=this.sumCategory(e,BM.CC),t.SB=this.sumCategory(e,BM.SB),t.Seminars=this.sumCategory(e,BM.Seminars),t.VSN=this.sumCategory(e,BM.VSN),t.others=this.sumCategory(e,BM.others),t}sum(e,t){return e.reduce((e,n)=>e+Number(n[t]),0)}sumCategory(e,t){return null==e?void 0:e.reduce((e,n)=>e+n.listenDetails[t],0)}filterCustomInfo(e,t,n){const r=Date.parse(new Date(e.year,e.month,e.day).toISOString()),i=Date.parse(new Date(t.year,t.month,t.day).toISOString());return n.filter(e=>e.creationTimestamp>=r&&e.creationTimestamp<=i)}calcLastMonthInfo(e){const t=(new Date).getMonth()+1;return e.filter(e=>e.dateOfRecord.month===t)}calcThisWeekInfo(e){const t=new Date,n=t.getDate()-t.getDay(),r=n+6;return e.filter(e=>e.dateOfRecord.day>=n&&e.dateOfRecord.day<=r)}calcLastWeekInfo(e){const t=new Date,n=t.getDate()-t.getDay()-7,r=n+6;return e.filter(e=>e.dateOfRecord.day>=n&&e.dateOfRecord.day<=r)}setListenInfo(e){return(0,Er.mG)(this,void 0,void 0,function*(){const t=new Date,n=this.generateDateId(t);this.user||(this.user=this._authService.getUser());let r=yield this.getListenInfoByDayFromFB(this.user,n);r?yield this.updateListenInfo(r,e):yield this.generateNewListenInfoObj(e,n)})}updateListenInfo(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){let n=JSON.parse(JSON.stringify(e));n.audioListen+=this.timeIncrementorInSeconds,n.playedIds.includes(t.id)||n.playedIds.push(t.id),this.updateCategoryTime(n,t.category),n.lastModifiedTimestamp=Date.now(),yield this._firestore.doc(n.documentPath).set(n)})}generateDateId(e){return`${e.getDate()}-${e.getMonth()+1}-${e.getFullYear()}`}getListenInfoByDayFromFB(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){return yield this._firestore.collection(`/users/${e.uid}/listenInfo/`).doc(t).valueChanges().pipe(nr(1)).toPromise()})}generateNewListenInfoObj(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){const n=new Date,r={audioListen:this.timeIncrementorInSeconds,creationTimestamp:Date.now(),date:n.toString(),dateOfRecord:{day:n.getDate(),month:n.getMonth(),year:n.getFullYear()},documentId:t,documentPath:`users/${this.user.uid}/listenInfo/${t}`,lastModifiedTimestamp:Date.now(),listenDetails:{BG:0,CC:0,SB:0,Seminars:0,VSN:0,others:0},playedIds:[e.id],videoListen:0};yield this._firestore.collection(`/users/${this.user.uid}/listenInfo/`).doc(t).set(r)})}updateCategoryTime(e,t){t&&t.length&&t.forEach(t=>{switch(t){case"Bhagavad-g\u012bt\u0101":e.listenDetails.BG+=this.timeIncrementorInSeconds;break;case"\u015ar\u012bmad-Bh\u0101gavatam":e.listenDetails.SB+=this.timeIncrementorInSeconds;break;case"\u015ar\u012b Caitanya-carit\u0101m\u1e5bta":e.listenDetails.CC+=this.timeIncrementorInSeconds;break;case"Seminars":e.listenDetails.Seminars+=this.timeIncrementorInSeconds;break;case"Vi\u1e63\u1e47u-sahasran\u0101ma":e.listenDetails.VSN+=this.timeIncrementorInSeconds;break;default:e.listenDetails.others+=this.timeIncrementorInSeconds}})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](UB),i["\u0275\u0275inject"](GO),i["\u0275\u0275inject"](UB),i["\u0275\u0275inject"](Cr))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var PM=n(4741),OM=(n(6258),function(e){var t=e.playlist.autoadvance_;t.timeout&&e.clearTimeout(t.timeout),t.trigger&&e.off("ended",t.trigger),t.timeout=null,t.trigger=null}),FM=function e(t,n){OM(t),function(e){return"number"==typeof e&&!isNaN(e)&&e>=0&&e<1/0}(n)?(t.playlist.autoadvance_.delay=n,t.playlist.autoadvance_.trigger=function(){var r=function(){return e(t,n)};t.one("play",r),t.playlist.autoadvance_.timeout=t.setTimeout(function(){OM(t),t.off("play",r),t.playlist.next()},1e3*n)},t.one("ended",t.playlist.autoadvance_.trigger)):t.playlist.autoadvance_.delay=null},LM=function(e){return!!e&&"object"==typeof e},MM=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].sources;if(Array.isArray(r))for(var i=0;i<r.length;i++){var o=r[i];if(o&&(l=void 0,c=void 0,l=s=o,c=a=t,"object"==typeof s&&(l=s.src),"object"==typeof a&&(c=a.src),/^\/\//.test(l)&&(c=c.slice(c.indexOf("//"))),/^\/\//.test(c)&&(l=l.slice(l.indexOf("//"))),l===c))return n}}var s,a,l,c;return-1},DM=function(e,t){!function(e,t,n){void 0===n&&(n=0);var r=null,i=!1,o=e.playlist=function(t,n){if(void 0===n&&(n=0),i)throw new Error("do not call playlist() during a playlist change");if(Array.isArray(t)){var s=Array.isArray(r)?r.slice():null,a=t.slice();(r=a.slice()).filter(function(e){return LM(e)}).length!==r.length&&(r=function(e){var t,n=[];return e.forEach(function(e){LM(e)?t=e:(t=Object(e)).originalValue=e,n.push(t)}),n}(r)),l=1,r.forEach(function(e){e.playlistItemId_=l++}),i=!0,e.trigger({type:"duringplaylistchange",nextIndex:n,nextPlaylist:a,previousIndex:o.currentIndex_,previousPlaylist:s||[]}),i=!1,-1!==n&&o.currentItem(n),s&&e.setTimeout(function(){e.trigger("playlistchange")},0)}var l;return r.map(function(e){return e.originalValue||e}).slice()};e.on("loadstart",function(){-1===o.currentItem()&&OM(e)}),o.currentIndex_=-1,o.player_=e,o.autoadvance_={},o.repeat_=!1,o.currentPlaylistItemId_=null,o.currentItem=function(e){if(i)return o.currentIndex_;if("number"==typeof e&&o.currentIndex_!==e&&e>=0&&e<r.length)return o.currentIndex_=e,function(e,t){var n=!e.paused()||e.ended();e.trigger("beforeplaylistitem",t.originalValue||t),t.playlistItemId_&&(e.playlist.currentPlaylistItemId_=t.playlistItemId_),e.poster(t.poster||""),e.src(t.sources),function(e){for(var t=e.remoteTextTracks(),n=t&&t.length||0;n--;)e.removeRemoteTextTrack(t[n])}
1(e),e.ready(function(){if((t.textTracks||[]).forEach(e.addRemoteTextTrack.bind(e)),e.trigger("playlistitem",t.originalValue||t),n){var r=e.play();void 0!==r&&"function"==typeof r.then&&r.then(null,function(e){})}FM(e,e.playlist.autoadvance_.delay)})}(o.player_,r[o.currentIndex_]),o.currentIndex_;var t=o.player_.currentSrc()||"";if(o.currentPlaylistItemId_){var n=function(e,t){for(var n=0;n<e.length;n++)if(e[n].playlistItemId_===t)return n;return-1}(r,o.currentPlaylistItemId_),s=r[n];if(s&&Array.isArray(s.sources)&&MM([s],t)>-1)return o.currentIndex_=n,o.currentIndex_;o.currentPlaylistItemId_=null}return o.currentIndex_=o.indexOf(t),o.currentIndex_},o.contains=function(e){return-1!==o.indexOf(e)},o.indexOf=function(e){if("string"==typeof e)return MM(r,e);for(var t=Array.isArray(e)?e:e.sources,n=0;n<t.length;n++){var i=t[n];if("string"==typeof i)return MM(r,i);if(i.src)return MM(r,i.src)}return-1},o.currentIndex=function(){return o.currentItem()},o.lastIndex=function(){return r.length-1},o.nextIndex=function(){var e=o.currentItem();if(-1===e)return-1;var t=o.lastIndex();return o.repeat_&&e===t?0:Math.min(e+1,t)},o.previousIndex=function(){var e=o.currentItem();return-1===e?-1:o.repeat_&&0===e?o.lastIndex():Math.max(e-1,0)},o.first=function(){if(!i){var e=o.currentItem(0);if(r.length)return r[e].originalValue||r[e];o.currentIndex_=-1}},o.last=function(){if(!i){var e=o.currentItem(o.lastIndex());if(r.length)return r[e].originalValue||r[e];o.currentIndex_=-1}},o.next=function(){if(!i){var e=o.nextIndex();if(e!==o.currentIndex_){var t=o.currentItem(e);return r[t].originalValue||r[t]}}},o.previous=function(){if(!i){var e=o.previousIndex();if(e!==o.currentIndex_){var t=o.currentItem(e);return r[t].originalValue||r[t]}}},o.autoadvance=function(e){FM(o.player_,e)},o.repeat=function(e){return void 0===e?o.repeat_:"boolean"==typeof e?(o.repeat_=!!e,o.repeat_):void PM.default.log.error("videojs-playlist: Invalid value for repeat",e)},o.sort=function(t){r.length&&(r.sort(t),i||e.trigger("playlistsorted"))},o.reverse=function(){r.length&&(r.reverse(),i||e.trigger("playlistsorted"))},o.shuffle=function(t){var n,s=(void 0===t?{}:t).rest,a=0,l=r;s&&(l=r.slice(a=o.currentIndex_+1)),l.length<=1||(function(e){for(var t=-1,n=e.length-1;++t<e.length;){var r=t+Math.floor(Math.random()*(n-t+1)),i=e[r];e[r]=e[t],e[t]=i}}(l),s&&(n=r).splice.apply(n,[a,l.length].concat(l)),i||e.trigger("playlistsorted"))},Array.isArray(t)?o(t.slice(),n):r=[]}(this,e,t)};(PM.default.registerPlugin||PM.default.plugin)("playlist",DM),DM.VERSION="4.3.1";var NM=n(7805),RM=n.n(NM);function UM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var jM,QM=PM.default.dom||PM.default,HM=PM.default.registerPlugin||PM.default.plugin,VM={className:"vjs-playlist",playOnSelect:!1,supportsCssPointerEvents:((jM=RM().createElement("x")).style.cssText="pointer-events:auto","auto"===jM.style.pointerEvents)},qM=function(e){e.addClass("vjs-selected")},KM=function(e){e.removeClass("vjs-selected"),e.thumbnail&&QM.removeClass(e.thumbnail,"vjs-playlist-now-playing")},GM=function(e){e.removeClass("vjs-up-next")},zM=PM.default.getComponent("Component"),WM=function(e){function t(t,n,r){var i;if(!n.item)throw new Error("Cannot construct a PlaylistMenuItem without an item option");return n.showDescription=r.showDescription,(i=e.call(this,t,n)||this).item=n.item,i.playOnSelect=r.playOnSelect,i.emitTapEvents(),i.on(["click","tap"],i.switchPlaylistItem_),i.on("keydown",i.handleKeyDown_),i}UM(t,e);var n=t.prototype;return n.handleKeyDown_=function(e){13!==e.which&&32!==e.which||this.switchPlaylistItem_()},n.switchPlaylistItem_=function(e){this.player_.playlist.currentItem(function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(this.player_.playlist(),this.item)),this.playOnSelect&&this.player_.play()},n.createEl=function(){var e=RM().createElement("li"),t=this.options_.item,n=this.options_.showDescription;if("object"==typeof t.data&&Object.keys(t.data).forEach(function(n){e.dataset[n]=t.data[n]}),e.className="vjs-playlist-item",e.setAttribute("tabIndex",0),this.thumbnail=function(e){if(!e){var t=RM().createElement("div");return t.className="vjs-playlist-thumbnail vjs-playlist-thumbnail-placeholder",t}var n=RM().createElement("picture");
1if(n.className="vjs-playlist-thumbnail","string"==typeof e){var r=RM().createElement("img");r.src=e,r.alt="",n.appendChild(r)}else{for(var i=0;i<e.length-1;i++){var o=e[i],s=RM().createElement("source");for(var a in o)s[a]=o[a];n.appendChild(s)}var l=e[e.length-1],c=RM().createElement("img");for(var u in c.alt="",l)c[u]=l[u];n.appendChild(c)}return n}(t.thumbnail),e.appendChild(this.thumbnail),t.duration){var r=RM().createElement("time"),i=PM.default.formatTime(t.duration);r.className="vjs-playlist-duration",r.setAttribute("datetime","PT0H0M"+t.duration+"S"),r.appendChild(RM().createTextNode(i)),e.appendChild(r)}var o=RM().createElement("span"),s=this.localize("Now Playing");o.className="vjs-playlist-now-playing-text",o.appendChild(RM().createTextNode(s)),o.setAttribute("title",s),this.thumbnail.appendChild(o);var a=RM().createElement("div");a.className="vjs-playlist-title-container",this.thumbnail.appendChild(a);var l=RM().createElement("span"),c=this.localize("Up Next");l.className="vjs-up-next-text",l.appendChild(RM().createTextNode(c)),l.setAttribute("title",c),a.appendChild(l);var u=RM().createElement("cite"),h=t.name||this.localize("Untitled Video");if(u.className="vjs-playlist-name",u.appendChild(RM().createTextNode(h)),u.setAttribute("title",h),a.appendChild(u),n){var d=RM().createElement("div"),A=t.description||"";d.className="vjs-playlist-description",d.appendChild(RM().createTextNode(A)),d.setAttribute("title",A),a.appendChild(d)}return e},t}(zM),$M=function(e){function t(t,n){var r;if(!t.playlist)throw new Error("videojs-playlist is required for the playlist component");return(r=e.call(this,t,n)||this).items=[],r.addClass(n.horizontal?"vjs-playlist-horizontal":"vjs-playlist-vertical"),n.supportsCssPointerEvents&&r.addClass("vjs-csspointerevents"),r.createPlaylist_(),PM.default.browser.TOUCH_ENABLED||r.addClass("vjs-mouse"),r.on(t,["loadstart","playlistchange","playlistsorted"],function(e){r.update()}),r.on(t,"adstart",function(){r.addClass("vjs-ad-playing")}),r.on(t,"adend",function(){r.removeClass("vjs-ad-playing")}),r.on("dispose",function(){r.empty_(),t.playlistMenu=null}),r.on(t,"dispose",function(){r.dispose()}),r}UM(t,e);var n=t.prototype;return n.createEl=function(){return QM.createEl("div",{className:this.options_.className})},n.empty_=function(){this.items&&this.items.length&&(this.items.forEach(function(e){return e.dispose()}),this.items.length=0)},n.createPlaylist_=function(){var e=this.player_.playlist()||[],t=this.el_.querySelector(".vjs-playlist-item-list"),n=this.el_.querySelector(".vjs-playlist-ad-overlay");t||((t=RM().createElement("ol")).className="vjs-playlist-item-list",this.el_.appendChild(t)),this.empty_();for(var r=0;r<e.length;r++){var i=new WM(this.player_,{item:e[r]},this.options_);this.items.push(i),t.appendChild(i.el_)}n||((n=RM().createElement("li")).className="vjs-playlist-ad-overlay"),t.appendChild(n);var o=this.player_.playlist.currentItem();if(this.items.length&&o>=0){qM(this.items[o]);var s=this.items[o].$(".vjs-playlist-thumbnail");s&&QM.addClass(s,"vjs-playlist-now-playing")}},n.update=function(){var e=this.player_.playlist();if(this.items.length===e.length){for(var t=0;t<this.items.length;t++)if(this.items[t].item!==e[t])return void this.createPlaylist_();for(var n=this.player_.playlist.currentItem(),r=0;r<this.items.length;r++){var i=this.items[r];r===n?(qM(i),RM().activeElement!==i.el()&&QM.addClass(i.thumbnail,"vjs-playlist-now-playing"),GM(i)):r===n+1?(KM(i),i.addClass("vjs-up-next")):(KM(i),GM(i))}}else this.createPlaylist_()},t}(zM),YM=function(e){for(var t=0;t<e.childNodes.length;t++)if(QM.isEl(e.childNodes[t]))return!0;return!1},XM=function(e){var t=this;if(!t.playlist)throw new Error("videojs-playlist plugin is required by the videojs-playlist-ui plugin");if(QM.isEl(e)&&(PM.default.log.warn('videojs-playlist-ui: Passing an element directly to playlistUi() is deprecated, use the "el" option instead!'),e={el:e}),e=PM.default.mergeOptions(VM,e),t.playlistMenu){var n=t.playlistMenu.el();if(n){var r=n.parentNode,i=n.nextSibling;t.playlistMenu.dispose(),QM.emptyEl(n),i?r.insertBefore(n,i):r.appendChild(n),e.el=n}}QM.isEl(e.el)||(e.el=function(e){for(var t,n=RM().querySelectorAll("."+e),r=0;r<n.length;r++)if(!YM(n[r])){t=n[r];break}return t}(e.className)),t.playlistMenu=new $M(t,e)};PM.default.registerComponent("PlaylistMenu",$M),PM.default.registerComponent("PlaylistMenuItem",WM),HM("playlistUi",XM),XM.VERSION="3.8.0",n(8202);const JM=["target"];function ZM(e,t){1&e&&i["\u0275\u0275element"](0,"img",25)}function eD(e,t){1&e&&i["\u0275\u0275element"](0,"img",26)}function tD(e,t){1&e&&i["\u0275\u0275element"](0,"img",27)}function nD(e,t){1&e&&(i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](0,"svg",17),i["\u0275\u0275element"](1,"use",28),i["\u0275\u0275elementEnd"]())}function rD(e,t){1&e&&(i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](0,"svg",17),i["\u0275\u0275element"](1,"use",29),i["\u0275\u0275elementEnd"]())}function iD(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275namespaceHTML"](),i["\u0275\u0275elementStart"](0,"button",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().toggleComplete()}),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](1,"svg",17),i["\u0275\u0275element"](2,"use",30),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3," Reset completion "),i["\u0275\u0275elementEnd"]()}}function oD(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275namespaceHTML"](),i["\u0275\u0275elementStart"](0,"button",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().toggleComplete()}),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](1,"svg",17),i["\u0275\u0275element"](2,"use",31),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3," Mark as complete "),i["\u0275\u0275elementEnd"]()}}let sD=(()=>{class e{constructor(e,t,n,r,o,s,a){this._lecturesProgressService=e,this._authService=t,this._favoritesService=n,this._statisticService=r,this._shareService=o,this._downloadService=s,this._modalService=a,this.onCurrentPlaylistItemChange=new i.EventEmitter,this.options={autoplay:!0,controls:!0,muted:!1,liveui:!0,width:800,playbackRates:[.5,.75,1,1.15,1.25,1.5,1.75,2],controlBar:{playToggle:!0},youtube:{autoplay:1}},this.isPlayerReady=!1,this.repeatType=0,this.isLectureFavorite=!1,this.isMoreOptionsOpen=!1}ngOnInit(){this.user=this._authService.getUser(),this.player=(0,PM.default)(this.target.nativeElement,this.options,
1()=>{this.player.playlist(this.sources),this.playlistLength=this.sources.length,this.player.playlist.currentItem(this.startPosition),this.currentItemIdx=this.startPosition,this.getLectureData(),this.player.playlist.autoadvance(0),this.player.playlistUi()}),this.player.controlBar.on("tap",()=>{this.sendLectureTimeStamp()}),this.player.on("beforeplaylistitem",()=>{this.sendLectureTimeStamp()}),this.player.on("ended",()=>{this.sendLectureTimeStamp(),clearInterval(this.updateTimer)}),this.player.on("play",()=>{this.player.currentTime()&&this.sendLectureTimeStamp()}),this.player.on("pause",()=>{this.player.currentTime()&&this.sendLectureTimeStamp()}),this.player.on("seeked",()=>{this.player.currentTime()<1||this.sendLectureTimeStamp()}),this.player.on("playlistitem",()=>{this.updateCurrentItemIdx(),this.resetPlayerAfterPlaylistChange(),this.getLectureData(),this.resetVideoLopping()}),this.player.on("firstplay",()=>{this.setCurrentTime(),this.incrementStatistic(),this.updateTimer=setInterval(()=>{this._statisticService.setListenInfo(this.lectureData),this.sendLectureTimeStamp()},1e4),this.playerLoopCheckTimer=setInterval(()=>{this.player.remainingTime()<2&&this.player.loop()&&this.player.currentTime(0)},1e3)})}updateCurrentItemIdx(){this.currentItemIdx=this.player.playlist.currentItem()}ngOnDestroy(){this.player&&(0!==this.player.currentTime()&&this.sendLectureTimeStamp(),this.player&&this.player.dispose(),clearInterval(this.updateTimer),clearInterval(this.playerLoopCheckTimer))}getLectureData(){this.lectureData=this.player.playlist()[this.currentItemIdx].lectureData,this.onCurrentPlaylistItemChange.emit(this.lectureData),this.thumbnail=this.lectureData.thumbnail?this.lectureData.thumbnail:Zp,this.lectureProgressData=this._lecturesProgressService.getProgressByLectureId(this.lectureData.id),this.isLectureFavorite=this._favoritesService.isLectureInFavorites(this.lectureData.id)}playNextLecture(){this.player.playlist.next(),this.resetPlayerAfterPlaylistChange()}playPrevLecture(){this.player.playlist.previous(),this.resetPlayerAfterPlaylistChange()}resetPlayerAfterPlaylistChange(){this.isPlayerReady=!1,clearInterval(this.updateTimer),this.toggleNextBtnDisplay(),this.togglePrevBtnDisplay()}togglePrevBtnDisplay(){this.isPrevBtnDisabled=this.currentItemIdx<=0&&2!==this.repeatType}toggleNextBtnDisplay(){this.isNextBtnDisabled=this.currentItemIdx===this.playlistLength-1&&2!==this.repeatType}goBackward(){const e=this.player.currentTime();this.setCurrentTime(),this.player.currentTime(e-10)}goForward(){const e=this.player.currentTime();this.setCurrentTime(),this.player.currentTime(e+10)}sendLectureTimeStamp(){if(!this.isPlayerReady)return;const e=this.player.currentTime(),t=this.player.duration();if(e+3>=t)return this.lectureProgressData.isCompleted=!0,void this._lecturesProgressService.markAsComplete(this.lectureData.id);this._lecturesProgressService.updateLectureProgress(Object.assign(Object.assign({},this.lectureProgressData),{lastPlayedPoint:e,totallength:t}))}setCurrentTime(){if(this.lectureProgressData)return this.startTime?(this.player.currentTime(this.startTime),void(this.startTime=null)):void(this.player.duration()<=this.lectureProgressData.lastPlayedPoint+3?this.player.currentTime(0):this.player.currentTime(this.lectureProgressData.lastPlayedPoint))}toggleComplete(){this.lectureProgressData.isCompleted?(this.lectureProgressData.isCompleted=!1,this._lecturesProgressService.resetCompletion(this.lectureData.id),this.sendLectureTimeStamp()):(this.lectureProgressData.isCompleted=!0,this._lecturesProgressService.markAsComplete(this.lectureData.id))}shuffle(){this.player.playlist.shuffle(),this.getLectureData()}changeRepeatFunc(){switch(this.repeatType+1===Object.keys(zO).length/2?this.repeatType=0:this.repeatType+=1,this.repeatType){case 0:this.player.playlist.repeat(!1),this.player.loop(!1);break;case 1:this.player.playlist.repeat(!1),this.player.loop(!0);break;case 2:this.player.playlist.repeat(!0),this.player.loop(!1)}this.toggleNextBtnDisplay(),this.togglePrevBtnDisplay()}toggleFavorite(){return(0,Er.mG)(this,void 0,void 0,function*(){this.isLectureFavorite=!this.isLectureFavorite;try{yield this._favoritesService.toggleFavorites(this.lectureData.id)}catch(e){this.isLectureFavorite=!this.isLectureFavorite}})}toggleMoreOptions(){this.isMoreOptionsOpen=!this.isMoreOptionsOpen}
1incrementStatistic(){this._statisticService.incrementLectureViews(this.lectureData.id)}downloadLecture(){this._downloadService.donwloadSingleLecture(this.lectureData)}addToPlaylist(){this._modalService.addToPlaylist([this.lectureData.id])}shareLink(){const e=this.player.currentTime();this._shareService.copyLinkToClipboard(this.lectureData.id,e,!0)}resetVideoLopping(){this.isPlayerReady=!0,1===this.repeatType&&(this.repeatType=0)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](xF),i["\u0275\u0275directiveInject"](GO),i["\u0275\u0275directiveInject"](yF),i["\u0275\u0275directiveInject"](kM),i["\u0275\u0275directiveInject"](LF),i["\u0275\u0275directiveInject"](IF),i["\u0275\u0275directiveInject"](QF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-vjs-player"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](JM,7),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.target=e.first)}},inputs:{sources:"sources",startPosition:"startPosition",startTime:"startTime"},outputs:{onCurrentPlaylistItemChange:"onCurrentPlaylistItemChange"},decls:38,vars:10,consts:[[1,"player-wrap"],["controls","","muted","","playsinline","","preload","none",1,"video-js","player"],["target",""],[1,"player__actions-bar"],[1,"player__player-btns"],["tuiButton","","appearance","flat","size","s",1,"player__player-btn",3,"ngSwitch","click"],["src","../../../assets/img/icons/repeat.svg","alt","",4,"ngSwitchCase"],["src","../../../assets/img/icons/repeat-once.svg","alt","",4,"ngSwitchCase"],["src","../../../assets/img/icons/repeat-always.svg","alt","",4,"ngSwitchCase"],["tuiButton","","appearance","flat","size","s",1,"player__player-btn",3,"disabled","click"],["src","../../../assets/img/icons/prev.svg","alt",""],["tuiButton","","appearance","flat","size","s",1,"player__player-btn",3,"click"],["src","../../../assets/img/icons/backward.svg","title","10 seconds backward","alt",""],["src","../../../assets/img/icons/forward.svg","title","10 seconds forward","alt",""],["src","../../../assets/img/icons/next.svg","alt",""],[1,"player__lecture-btns"],["tuiButton","","appearance","flat","size","s",1,"action-btn",3,"click"],[1,"action-btn__icon"],[0,"xlink","href","../../../assets/img/icons/lecture-page-icons.svg#addToPL"],["class","action-btn__icon",4,"ngIf","ngIfElse"],["likeHollow",""],[0,"xlink","href","../../../assets/img/icons/lecture-page-icons.svg#download"],["tuiButton","","appearance","flat","size","s","class","action-btn",3,"click",4,"ngIf","ngIfElse"],["reset",""],[0,"xlink","href","../../../assets/img/icons/lecture-page-icons.svg#share"],["src","../../../assets/img/icons/repeat.svg","alt",""],["src","../../../assets/img/icons/repeat-once.svg","alt",""],["src","../../../assets/img/icons/repeat-always.svg","alt",""],[0,"xlink","href","../../../assets/img/icons/lecture-page-icons.svg#like-filled"],[0,"xlink","href","../../../assets/img/icons/lecture-page-icons.svg#like"],[0,"xlink","href","../../../assets/img/icons/lecture-page-icons.svg#reset"],[0,"xlink","href","../../../assets/img/icons/lecture-page-icons.svg#complete"]],template:function(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275element"](1,"video",1,2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"div",3),i["\u0275\u0275elementStart"](4,"div",4),i["\u0275\u0275elementStart"](5,"button",5),i["\u0275\u0275listener"]("click",function(){return t.changeRepeatFunc()}),i["\u0275\u0275template"](6,ZM,1,0,"img",6),i["\u0275\u0275template"](7,eD,1,0,"img",7),i["\u0275\u0275template"](8,tD,1,0,"img",8),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"button",9),i["\u0275\u0275listener"]("click",function(){return t.playPrevLecture()}),i["\u0275\u0275element"](10,"img",10),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"button",11),i["\u0275\u0275listener"]("click",function(){return t.goBackward()}),i["\u0275\u0275element"](12,"img",12),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](13,"button",11),i["\u0275\u0275listener"]("click",function(){return t.goForward()}),i["\u0275\u0275element"](14,"img",13),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](15,"button",9),i["\u0275\u0275listener"]("click",function(){return t.playNextLecture()}),i["\u0275\u0275element"](16,"img",14),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](17,"div",15),i["\u0275\u0275elementStart"](18,"button",16),i["\u0275\u0275listener"]("click",function(){return t.addToPlaylist()}),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](19,"svg",17),i["\u0275\u0275element"](20,"use",18),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](21," Add To Playlist "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275namespaceHTML"](),i["\u0275\u0275elementStart"](22,"button",16),i["\u0275\u0275listener"]("click",function(){return t.toggleFavorite()}),i["\u0275\u0275template"](23,nD,2,0,"svg",19),i["\u0275\u0275template"](24,rD,2,0,"ng-template",null,20,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275text"](26," Add To Favorites "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](27,"button",16),i["\u0275\u0275listener"]("click",function(){return t.downloadLecture()}),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](28,"svg",17),i["\u0275\u0275element"](29,"use",21),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](30," Download "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](31,iD,4,0,"button",22),i["\u0275\u0275template"](32,oD,4,0,"ng-template",null,23,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275namespaceHTML"](),i["\u0275\u0275elementStart"](34,"button",16),i["\u0275\u0275listener"]("click",function(){return t.shareLink()}),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](35,"svg",17),i["\u0275\u0275element"](36,"use",24),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](37," Share "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](25),n=i["\u0275\u0275reference"](33);i["\u0275\u0275advance"](5),i["\u0275\u0275property"]("ngSwitch",t.repeatType),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngSwitchCase",0),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngSwitchCase",1),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngSwitchCase",2),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("disabled",t.isPrevBtnDisabled),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("disabled",t.isNextBtnDisabled),i["\u0275\u0275advance"](8),i["\u0275\u0275property"]("ngIf",t.isLectureFavorite)("ngIfElse",e),i["\u0275\u0275advance"](8),i["\u0275\u0275property"]("ngIf",null==t.lectureProgressData?null:t.lectureProgressData.isCompleted)("ngIfElse",n)}},directives:[Ya,Ft.RF,Ft.n9,Ft.O5],styles:['.vjs-playlist{padding:0;background-color:#1a1a1a;color:#fff;list-style-type:none}.vjs-playlist img{display:block;height:auto;width:auto}.vjs-playlist .vjs-playlist-item-list{position:relative;margin:0;padding:0;list-style:none}.vjs-playlist .vjs-playlist-item{position:relative;cursor:pointer;overflow:hidden}.vjs-playlist .vjs-playlist-thumbnail-placeholder{background:#303030}.vjs-playlist .vjs-playlist-now-playing-text{display:none;position:absolute;top:0;left:0;padding-left:2px;margin:.8rem}.vjs-playlist .vjs-playlist-duration{position:absolute;top:.5rem;left:.5rem;padding:2px 5px 3px;margin-left:2px;background-color:#1a1a1acc}.vjs-playlist .vjs-playlist-title-container{position:absolute;bottom:0;box-sizing:border-box;width:100%;padding:.5rem .8rem;text-shadow:1px 1px 2px #000,-1px 1px 2px #000,1px -1px 2px #000,-1px -1px 2px #000}.vjs-playlist .vjs-playlist-name{display:block;max-height:2.5em;padding:0 0 4px 2px;font-style:normal;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;line-height:20px}.vjs-playlist .vjs-playlist-description{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:block;font-size:14px;padding:0 0 0 2px}.vjs-playlist .vjs-up-next-text{display:none;padding:.1rem 2px;font-size:.8em;text-transform:uppercase}.vjs-playlist .vjs-up-next .vjs-up-next-text{display:block}.vjs-playlist .vjs-selected{background-color:#141a21}.vjs-playlist .vjs-selected img{opacity:.2}
1.vjs-playlist .vjs-selected .vjs-playlist-duration{display:none}.vjs-playlist .vjs-selected .vjs-playlist-now-playing-text{display:block}.vjs-playlist .vjs-selected .vjs-playlist-title-container{text-shadow:none}.vjs-playlist-vertical{overflow-x:hidden;overflow-y:auto}.vjs-playlist-vertical img{width:100%;min-height:54px}.vjs-playlist-vertical .vjs-playlist-item{margin-bottom:5px}.vjs-playlist-vertical .vjs-playlist-thumbnail{display:block;width:100%}.vjs-playlist-vertical .vjs-playlist-thumbnail-placeholder{height:100px}.vjs-playlist-horizontal{overflow-x:auto;overflow-y:hidden}.vjs-playlist-horizontal img{min-width:100px;height:100%}.vjs-playlist-horizontal .vjs-playlist-item-list{height:100%;white-space:nowrap}.vjs-playlist-horizontal .vjs-playlist-item{display:inline-block;height:100%;margin-right:5px}.vjs-playlist-horizontal .vjs-playlist-thumbnail{display:block;height:100%}.vjs-playlist-horizontal .vjs-playlist-thumbnail-placeholder{height:100%;width:180px}.vjs-playlist.vjs-ad-playing{overflow:hidden}.vjs-playlist.vjs-ad-playing.vjs-csspointerevents{pointer-events:none;overflow:auto}.vjs-playlist.vjs-ad-playing.vjs-csspointerevents .vjs-playlist-ad-overlay{pointer-events:auto}.vjs-playlist.vjs-ad-playing .vjs-playlist-ad-overlay{display:block;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#1a1a1a;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";background-color:#00000080}.vjs-playlist{font-size:14px}.vjs-playlist .vjs-playlist-description{height:28px;line-height:21px}.vjs-mouse.vjs-playlist{font-size:15px}.vjs-mouse.vjs-playlist .vjs-playlist-description{height:30px;line-height:23px}@media (min-width:600px){.vjs-mouse.vjs-playlist{font-size:17px}.vjs-mouse.vjs-playlist .vjs-playlist-description{height:34px;line-height:26px}.vjs-playlist .vjs-playlist-name{line-height:22px}}@media (max-width:520px){.vjs-mouse.vjs-playlist .vjs-selected .vjs-playlist-now-playing-text,.vjs-mouse.vjs-playlist .vjs-up-next .vjs-up-next-text,.vjs-playlist .vjs-selected .vjs-playlist-now-playing-text,.vjs-playlist .vjs-up-next .vjs-up-next-text{display:none}}@media (min-width:521px){.vjs-playlist img{min-height:85px}}@media (max-width:750px){.vjs-playlist .vjs-playlist-duration{display:none}}.player-wrap{display:flex;justify-content:center;width:100%;min-height:450px;background:#1d1b18}.player{max-width:calc(100vw - 24px * 2 - 16px - 206px);min-height:100%}.player__actions-bar{display:flex;align-items:center;justify-content:space-between;margin-top:14px}@media (max-width:1200px){.player__actions-bar{display:block}}.player__player-btn{width:24px;height:22px;margin-right:5px}.player__player-btns{display:flex}.player__player-btns button{padding:0;background:#0000;border:0;cursor:pointer}.player__lecture-btns{display:flex;align-items:center;color:#343a40;font-weight:600;font-size:13px;line-height:20px}@media (max-width:1200px){.player__lecture-btns{margin-top:25px}}.action-btn{display:flex;align-items:center;padding:0;background:#0000;border:0;cursor:pointer}.action-btn__icon{max-width:15px;max-height:15px;margin-right:5px}.video-js .vjs-control-bar{background:#1a2026}.video-js .vjs-current-time,.vjs-no-flex .vjs-current-time{display:block}'],encapsulation:2}),e})(),aD=(()=>{class e{transform(e){return`${e.day}/${e.month}/${e.year}`}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i["\u0275\u0275definePipe"]({name:"lectureDate",type:e,pure:!0}),e})();function lD(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-vjs-player",11),i["\u0275\u0275listener"]("onCurrentPlaylistItemChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().setLectureData(t)}),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("options",e.playerOptions)("sources",e.source)("startPosition",e.startPosition)("startTime",e.startTime)}}function cD(e,t){1&e&&i["\u0275\u0275element"](0,"div",12)}function uD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",19),i["\u0275\u0275elementStart"](1,"strong"),i["\u0275\u0275text"](2,"Category "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"]("",e.lectureData.category," ")}}function hD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",19),i["\u0275\u0275elementStart"](1,"strong"),i["\u0275\u0275text"](2,"Language "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"]("",e.lectureData.language.main," ")}}function dD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",20),i["\u0275\u0275elementStart"](1,"strong"),i["\u0275\u0275text"](2,"Category"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",e.lectureData.category[0]," ")}}function AD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",19),i["\u0275\u0275elementStart"](1,"strong"),i["\u0275\u0275text"](2,"Description"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",e.lectureData.description.join(", ")," ")}}function pD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",19),i["\u0275\u0275elementStart"](1,"strong"),i["\u0275\u0275text"](2,"Main language"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",null==e.lectureData.language?null:e.lectureData.language.main," ")}}function fD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",19),i["\u0275\u0275elementStart"](1,"strong"),i["\u0275\u0275text"](2,"Translations"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",null==e.lectureData.language||null==e.lectureData.language.translations?null:e.lectureData.language.translations.join(", ")," ")}}function gD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",19),i["\u0275\u0275elementStart"](1,"strong"),i["\u0275\u0275text"](2,"Lecture code"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",null==e.lectureData.legacyData?null:e.lectureData.legacyData.lectureCode," ")}}function mD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",19),i["\u0275\u0275elementStart"](1,"strong"),i["\u0275\u0275text"](2,"Country"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",null==e.lectureData.location?null:e.lectureData.location.country," ")}}function vD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",19),i["\u0275\u0275elementStart"](1,"strong"),i["\u0275\u0275text"](2,"Place"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",e.lectureData.place[0]," ")}}function yD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",19),i["\u0275\u0275elementStart"](1,"strong"),i["\u0275\u0275text"](2,"Verse"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",null==e.lectureData.legacyData?null:e.lectureData.legacyData.verse," ")}}function bD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"li",19),i["\u0275\u0275elementStart"](1,"strong"),i["\u0275\u0275text"](2,"Tags"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",null==e.lectureData.tags?null:e.lectureData.tags.join(", ")," ")}}function _D(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div"),i["\u0275\u0275elementStart"](1,"h2",13),i["\u0275\u0275text"](2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"ul",14),i["\u0275\u0275elementStart"](4,"li",15),i["\u0275\u0275text"](5),i["\u0275\u0275pipe"](6,"lectureDate"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"li",15),i["\u0275\u0275text"](8),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"ul",16),i["\u0275\u0275template"](10,uD,4,1,"li",17),i["\u0275\u0275template"](11,hD,4,1,"li",17),i["\u0275\u0275template"](12,dD,4,1,"li",18),i["\u0275\u0275template"](13,AD,4,1,"li",17),i["\u0275\u0275template"](14,pD,4,1,"li",17),i["\u0275\u0275template"](15,fD,4,1,"li",17),i["\u0275\u0275template"](16,gD,4,1,"li",17),i["\u0275\u0275template"](17,mD,4,1,"li",17),i["\u0275\u0275template"](18,vD,4,1,"li",17),i["\u0275\u0275template"](19,yD,4,1,"li",17),i["\u0275\u0275template"](20,bD,4,1,"li",17),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate"](e.place),i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",i["\u0275\u0275pipeBind1"](6,14,e.lectureData.dateOfRecording)," "),i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",e.contentType," "),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",e.lectureData.category),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.lectureData.language.main),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==e.lectureData.category?null:e.lectureData.category.length),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.lectureData.description[0]),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.lectureData.language.main),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==e.lectureData.language||null==e.lectureData.language.translations?null:e.lectureData.language.translations.length),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==e.lectureData.legacyData?null:e.lectureData.legacyData.lectureCode),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==e.lectureData.location?null:e.lectureData.location.country),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.lectureData.place.length),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==e.lectureData.legacyData?null:e.lectureData.legacyData.verse),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.lectureData.tags.length)}}function wD(e,t){1&e&&i["\u0275\u0275element"](0,"div",21)}const CD=function(e,t){return{"tui-skeleton":e,"tui-skeleton_text":t}},SD=function(e){return{"tui-skeleton":e}};let ED=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,c,u,h,d,A){this._lecturesService=e,this._router=t,this._authService=n,this._activatedRoute=r,this._progressService=i,this._favService=o,this._downloadService=s,this._shareService=a,this._statisticsService=l,this._globalStateService=c,this._location=u,this._playlistsService=h,this._audioplayerService=d,this._dashboardService=A,this.startPosition=0,this.isCompleted=!1,this.repeatType=0,this.subscriptions=[];const p=this._activatedRoute.snapshot.queryParams;(null==p?void 0:p.start_point)&&(this.startTime=null==p?void 0:p.start_point)}get place(){if(!this.lectureData)return;let e=this.lectureData.place[0];return this.lectureData.location.country&&(e+=", "+this.lectureData.location.country),this.lectureData.location.state&&(e+=", "+this.lectureData.location.state),this.lectureData.location.city&&(e+=", "+this.lectureData.location.city),e}ngOnInit(){return(0,Er.mG)(this,void 0,void 0,function*(){this.id=+this._activatedRoute.snapshot.params.id,this._audioplayerService.closePlayer(),this._dashboardService.toggleSidebar(!1),this.id=+this._activatedRoute.snapshot.params.id,this.queryParams=this._activatedRoute.snapshot.queryParams,"start_point"in this.queryParams&&(this.startTime=this.queryParams.start_point),(yield this._authService.isUserLogged())&&this.init(),this._authService.onSignIn.subscribe(()=>(0,Er.mG)(this,void 0,void 0,function*(){this.init()}))})}shareLink(){const e=+this._progressService.getProgressByLectureId(this.lectureData.id).lastPlayedPoint;this._shareService.copyLinkToClipboard(this.lectureData.id,e,!0)}ngOnDestroy(){for(const e of this.subscriptions)e.unsubscribe()}init(){return(0,Er.mG)(this,void 0,void 0,function*(){this.detectPlayListType(this.queryParams)})}setFunctionsBarState(){this.isCompleted=this._progressService.getProgressByLectureId(this.lectureData.id).isCompleted,this.isFavorite=this._favService.isLectureInFavorites(this.lectureData.id)}detectPlayListType(e){switch(e.videoListType){case"categories":this.constructQueryByCategorie(e.videoListParams);break;case"playlist":this.constructQueryByPlaylist(e.videoListParams);break;case"favorites":this.constructQueryByFavorites();break;case"all":this.constructQueryBylectureId()}}constructQueryByCategorie(e){const t=this._lecturesService.getLecturesByCatName(e);
1if(t.length)return this.source=TF(t),void(this.startPosition=this.detectStartPosition(t,this.id));const n=this._globalStateService.onCategoryLecturesLoaded.subscribe(()=>{const t=this._lecturesService.getLecturesByCatName(e);this.source=TF(t),this.startPosition=this.detectStartPosition(t,this.id)});this.subscriptions.push(n)}constructQueryByPlaylist(e){const t=this._playlistsService.getPlaylistLecturesById(e);if(t)return this.source=TF(t),void(this.startPosition=this.detectStartPosition(t,this.id));const n=this._globalStateService.onPlaylistsLoaded.subscribe(()=>{const t=this._playlistsService.getPlaylistLecturesById(e);this.source=TF(t),this.startPosition=this.detectStartPosition(t,this.id)});this.subscriptions.push(n)}constructQueryBylectureId(){const e=this._lecturesService.getAllLectures();if(e){const t=e.findIndex(e=>e.id===this.id);return void(this.source=TF(e.slice(t,t+35)))}const t=this._globalStateService.onLecturesLoaded.subscribe(()=>{const e=this._lecturesService.getAllLectures(),t=e.findIndex(e=>e.id===this.id);this.source=TF(e.slice(t,t+35))});this.subscriptions.push(t)}constructQueryByFavorites(){const e=this._favService.favorites;if(e&&e.length){const t=e.findIndex(e=>e.id===this.id);return this.source=TF(e),void(this.startPosition=t)}const t=this._globalStateService.onFavoritesLoaded.subscribe(()=>{const e=this._favService.favorites,t=e.findIndex(e=>e.id===this.id);this.source=TF(e),this.startPosition=t});this.subscriptions.push(t)}toggleFavorite(){return(0,Er.mG)(this,void 0,void 0,function*(){try{this.isFavorite=!this.isFavorite,yield this._favService.toggleFavorites(this.lectureData.id)}catch(e){console.error(e),this.isFavorite=!this.isFavorite}})}setLectureData(e){this.lectureData=e,this.setFunctionsBarState(),this._location.replaceState("/lecture/"+this.lectureData.id,this.convertQueryParamsToString())}convertQueryParamsToString(){return`videoListType=${this.queryParams.videoListType}&videoListParams=${this.queryParams.videoListParams}`}detectStartPosition(e,t){return e.findIndex(e=>e.id===t)}changeRepeatFunc(){if(this.repeatType+1===Object.keys(zO).length/2)return this.repeatType=0;this.repeatType+=1}markAsComplete(){this._progressService.markAsComplete(this.lectureData.id),this.isCompleted=!0}resetCompletion(){this._progressService.resetCompletion(this.lectureData.id),this.isCompleted=!1}downloadLecture(){this._downloadService.donwloadSingleLecture(this.lectureData)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](sF),i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](GO),i["\u0275\u0275directiveInject"](eP),i["\u0275\u0275directiveInject"](xF),i["\u0275\u0275directiveInject"](yF),i["\u0275\u0275directiveInject"](IF),i["\u0275\u0275directiveInject"](LF),i["\u0275\u0275directiveInject"](kM),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](Ft.Ye),i["\u0275\u0275directiveInject"](aF),i["\u0275\u0275directiveInject"](kF),i["\u0275\u0275directiveInject"](bL))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-lecture"]],decls:18,vars:14,consts:[[1,"lecture"],[1,"container"],[1,"lecture__player"],[3,"options","sources","startPosition","startTime","onCurrentPlaylistItemChange",4,"ngIf","ngIfElse"],["playerPlaceholder",""],[1,"lecture__title"],[4,"ngIf","ngIfElse"],["dataPlaceholder",""],[1,"lecture__next-videos"],[1,"vjs-playlist-wrap"],[1,"vjs-playlist"],[3,"options","sources","startPosition","startTime","onCurrentPlaylistItemChange"],[1,"lecture__player-placeholder"],[1,"lecture__subtitle"],[1,"lecture__train","train"],[1,"train__wagon"],[1,"lecture__list"],["class","lecture__list-item",4,"ngIf"],["class","tui-space_top-2 lecture__list-item",4,"ngIf"],[1,"lecture__list-item"],[1,"tui-space_top-2","lecture__list-item"],[1,"lecture__data-placeholder","tui-skeleton"]],template:function(e,t){if(1&e&&(i["\u0275\u0275element"](0,"app-header"),i["\u0275\u0275elementStart"](1,"div",0),i["\u0275\u0275element"](2,"app-sidebar"),i["\u0275\u0275elementStart"](3,"div",1),i["\u0275\u0275elementStart"](4,"div"),i["\u0275\u0275elementStart"](5,"div",2),i["\u0275\u0275template"](6,lD,1,4,"app-vjs-player",3),i["\u0275\u0275template"](7,cD,1,0,"ng-template",null,4,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"div"),i["\u0275\u0275elementStart"](10,"h1",5),i["\u0275\u0275text"](11),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](12,_D,21,16,"div",6),i["\u0275\u0275template"](13,wD,1,0,"ng-template",null,7,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](15,"div",8),i["\u0275\u0275elementStart"](16,"div",9),i["\u0275\u0275element"](17,"div",10),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](8),n=i["\u0275\u0275reference"](14);i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngIf",t.source)("ngIfElse",e),i["\u0275\u0275advance"](4),i["\u0275\u0275classMap"](i["\u0275\u0275pureFunction2"](9,CD,!t.lectureData,!t.lectureData)),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",null!=t.lectureData&&t.lectureData.title?t.lectureData.title.join(" "):""," "),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.lectureData)("ngIfElse",n),i["\u0275\u0275advance"](3),i["\u0275\u0275classMap"](i["\u0275\u0275pureFunction1"](12,SD,!t.source))}},directives:[EL,BL,Ft.O5,sD],pipes:[aD],styles:['@charset "UTF-8";.lecture[_ngcontent-%COMP%]{display:flex}.lecture[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{display:grid;grid-column-gap:16px;grid-template-columns:1fr 206px;max-width:min(1600px,100%);padding-top:16px}.lecture__title[_ngcontent-%COMP%]{font-weight:600;font-size:24px;line-height:32px}.lecture__list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:0;padding:0;color:#000;font-size:13px;line-height:20px;list-style:none}.lecture__list-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:8px;margin-right:20px;margin-bottom:10px;padding:5px 10px;background:hsla(0,0%,83%,.062);border:1px solid var(--tui-support-08);border-radius:12px}.lecture__list-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-of-type{color:#343a40}.lecture__player-placeholder[_ngcontent-%COMP%]{width:100%;height:450px;background:#1d1b18}.lecture__data-placeholder[_ngcontent-%COMP%]{width:300px;height:150px}.lecture[_ngcontent-%COMP%]  .vjs-playlist{max-height:calc(100vh - 100px);padding-right:8px;overflow:auto;background:#0000}.lecture[_ngcontent-%COMP%]  .vjs-playlist::-webkit-scrollbar{width:10px}.lecture[_ngcontent-%COMP%]  .vjs-playlist::-webkit-scrollbar-track{background:#e4e4e4;border-radius:8px}.lecture[_ngcontent-%COMP%]  .vjs-playlist::-webkit-scrollbar-thumb{background:#929292;border-radius:8px}.lecture[_ngcontent-%COMP%]  .sidebar{position:absolute;
1left:0;z-index:-1;height:100%;background:#fff;box-shadow:3px 0 4px 0 #cecece73;transform:translateX(calc(-100% - 15px))}.lecture[_ngcontent-%COMP%]  .sidebar.active{z-index:1;transform:translateX(0)}.train[_ngcontent-%COMP%]{display:flex;margin-top:16px;color:#343a40;font-size:13px;line-height:20px}.train__wagon[_ngcontent-%COMP%]:not(:first-child){margin-left:8px}.train__wagon[_ngcontent-%COMP%]:not(:first-child):before{margin-right:8px;content:"\u22c5"}']}),e})(),ID=(()=>{class e{constructor(e,t){this._authorizationService=e,this._router=t}ngOnInit(){this._authorizationService.isAuthorized&&this._router.navigate(["/dashboard"]),this.form=new $t.FormGroup({email:new $t.FormControl("",[$t.Validators.required,$t.Validators.email]),password:new $t.FormControl("",[$t.Validators.required,$t.Validators.minLength(6)])}),this._authorizationService.isAuthorized&&this._router.navigate(["/dashboard/categories"])}signIn(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){const n=yield this._authorizationService.signInWithEmail(e,t);this.checkUserAuthorization(n)})}checkUserAuthorization(e){this._authorizationService.isAuthorized?this._router.navigate(["/dashboard/categories"]):alert("\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u043d \u0438\u043b\u0438 \u043f\u0430\u0440\u043e\u043b\u044c")}signInWithGoogle(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this._authorizationService.signInWithGoogle(),this._router.navigate(["/dashboard/categories"])})}signInWithAnyProvider(e){return(0,Er.mG)(this,void 0,void 0,function*(){yield this._authorizationService.signInWithAnyProvider(e),this._router.navigate(["/dashboard/categories"])})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](GO),i["\u0275\u0275directiveInject"](wO))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-login-page"]],decls:31,vars:2,consts:[[1,"login","container"],[1,"form","login__form",3,"formGroup","ngSubmit"],["src","../../../assets/img/ava.jpg","alt","Bhakti avatar",1,"form__avatar","tui-space_bottom-5"],[1,"form__title","tui-text_h4","tui-space_bottom-10"],["tuiTextfieldExampleText","Enter your email","formControlName","email","tuiTextfieldSize","m","tuiHintContent","Email",1,"form__input","tui-space_bottom-4"],["email",""],["tuiTextfieldExampleText","Enter your password","formControlName","password","tuiTextfieldType","password","tuiTextfieldSize","m","tuiHintContent","Password",1,"form__input","tui-space_bottom-6"],["password",""],["tuiButton","","type","submit","size","m","appearance","primary-orange",1,"tui-space_bottom-5","form__button",3,"disabled"],["routerLink","/restore",1,"link","form__forgot","tui-space_bottom-6"],[1,"login__text","tui-space_bottom-1"],["routerLink","/register",1,"link","tui-space_left-2"],[1,"line"],[1,"tui-space_bottom-3","line__text","tui-text_body-s"],[1,"login__buttons-wrapper"],["tuiButton","","type","button","size","m","icon","./../../../assets/img/sprite.svg#google","appearance","outline-blue",1,"tui-col_8","tui-space_bottom-3",3,"click"],["tuiIconButton","","type","button","size","m","appearance","outline-blue",1,"login__icon-button",3,"click"],[0,"xlink","href","./../../../assets/img/sprite.svg#facebook"],[0,"xlink","href","./../../../assets/img/sprite.svg#apple"]],template:function(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"form",1),i["\u0275\u0275listener"]("ngSubmit",function(){i["\u0275\u0275restoreView"](e);const n=i["\u0275\u0275reference"](6),r=i["\u0275\u0275reference"](9);return t.signIn(n.value,r.value)}),i["\u0275\u0275element"](2,"img",2),i["\u0275\u0275elementStart"](3,"h3",3),i["\u0275\u0275text"](4," Bhakti Vikasa Swami "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"tui-input",4,5),i["\u0275\u0275text"](7," E-mail "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](8,"tui-input",6,7),i["\u0275\u0275text"](10," Password "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"button",8),i["\u0275\u0275text"](12," Sign In "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](13,"a",9),i["\u0275\u0275text"](14,"Forgot your password?"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](15,"p",10),i["\u0275\u0275text"](16," Not have an account yet? "),i["\u0275\u0275elementStart"](17,"a",11),i["\u0275\u0275text"](18,"Create one"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](19,"div",12),i["\u0275\u0275elementStart"](20,"p",13),i["\u0275\u0275text"](21,"or"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](22,"div",14),i["\u0275\u0275elementStart"](23,"button",15),i["\u0275\u0275listener"]("click",function(){return t.signInWithGoogle()}),i["\u0275\u0275text"](24," Continue with Google "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](25,"button",16),i["\u0275\u0275listener"]("click",function(){return t.signInWithAnyProvider("facebook")}),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](26,"svg"),i["\u0275\u0275element"](27,"use",17),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275namespaceHTML"](),i["\u0275\u0275elementStart"](28,"button",16),i["\u0275\u0275listener"]("click",function(){return t.signInWithAnyProvider("apple")}
1),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](29,"svg"),i["\u0275\u0275element"](30,"use",18),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}2&e&&(i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](10),i["\u0275\u0275property"]("disabled",t.form.invalid))},directives:[$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,Ld,ah,$t.NgControlStatus,$t.FormControlName,yh,wh,Ya,SO],styles:[".login[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100vh}.login__icon-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:24px;height:24px}.login__buttons-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.login__text[_ngcontent-%COMP%]{color:var(--tui-text-03)}.line[_ngcontent-%COMP%]{position:relative;width:100%;margin:40px 0;border-bottom:1px solid #edeff1}.line__text[_ngcontent-%COMP%]{position:absolute;top:-50%;left:50%;display:flex;justify-content:center;width:46px;color:#919191;background-color:#fff;transform:translate(-50%,-55%)}"]}),e})(),xD=(()=>{class e{constructor(e,t){this._authorizationService=e,this._router=t}ngOnInit(){this.form=new $t.FormGroup({name:new $t.FormControl("",[$t.Validators.required,$t.Validators.minLength(2)]),surname:new $t.FormControl("",[$t.Validators.required,$t.Validators.minLength(2)]),email:new $t.FormControl("",[$t.Validators.required,$t.Validators.email]),password:new $t.FormControl("",[$t.Validators.required,$t.Validators.minLength(6)]),passwordConfirm:new $t.FormControl("",[$t.Validators.required,$t.Validators.minLength(6)])}),this._authorizationService.isAuthorized&&this._router.navigate(["/dashboard/categories"])}signUp(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){yield this._authorizationService.signUp(e,t),this.checkingUserAuthorization()})}checkingUserAuthorization(){this._authorizationService.isAuthorized&&this._router.navigate(["/dashboard/categories"])}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](GO),i["\u0275\u0275directiveInject"](wO))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-register-page"]],decls:30,vars:2,consts:[[1,"register","container"],[1,"form","login__form","tui-col_4",3,"formGroup","ngSubmit"],["routerLink","/login",1,"back"],["src","tuiIconArrowLeftLarge",1,"back__icon"],[1,"form__title","tui-text_h4","tui-space_bottom-6"],["tuiTextfieldExampleText","Enter your first name","formControlName","name","tuiTextfieldSize","m",1,"form__input","tui-space_bottom-4"],["tuiTextfieldExampleText","Enter your surname","formControlName","surname","tuiTextfieldSize","m",1,"form__input","tui-space_bottom-4"],["tuiTextfieldExampleText","Enter your email","formControlName","email","tuiTextfieldType","email","tuiHintContent","Email","tuiTextfieldSize","m",1,"form__input","tui-space_bottom-4"],["email",""],["tuiTextfieldExampleText","Enter your password","tuiTextfieldType","password","tuiHintContent","Password","formControlName","password","tuiTextfieldSize","m",1,"form__input","tui-space_bottom-4"],["tuiTextfieldExampleText","Repeat your password","formControlName","passwordConfirm","tuiTextfieldType","password","tuiHintContent","Password","tuiTextfieldSize","m",1,"form__input","tui-space_bottom-4"],["password",""],["tuiButton","","type","submit","size","m","appearance","primary-orange",1,"tui-col_12","tui-space_bottom-3","tui-space_top-3","form__button",3,"disabled"],[1,"register__other","tui-text_body-xs"],["routerLink","https://bvks.com/privacy-policy-2/"]],template:function(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"form",1),i["\u0275\u0275listener"]("ngSubmit",function(){i["\u0275\u0275restoreView"](e);const n=i["\u0275\u0275reference"](13),r=i["\u0275\u0275reference"](18);return t.signUp(n.value,r.value)}),i["\u0275\u0275elementStart"](2,"button",2),i["\u0275\u0275element"](3,"tui-svg",3),i["\u0275\u0275elementStart"](4,"span"),i["\u0275\u0275text"](5,"Back"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"h3",4),i["\u0275\u0275text"](7," Create an account "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](8,"tui-input",5),i["\u0275\u0275text"](9," First name "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"tui-input",6),i["\u0275\u0275text"](11," Surname "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"tui-input",7,8),i["\u0275\u0275text"](14," E-mail "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](15,"tui-input",9),i["\u0275\u0275text"](16," Password "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](17,"tui-input",10,11),i["\u0275\u0275text"](19," Confirm password "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](20,"button",12),i["\u0275\u0275text"](21," Sign Up "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](22,"p",13),i["\u0275\u0275text"](23," By clicking Sign Up, you agree to our "),i["\u0275\u0275elementStart"](24,"a",14),i["\u0275\u0275text"](25,"Private Data Policy"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](26," and "),i["\u0275\u0275elementStart"](27,"a"),i["\u0275\u0275text"](28," Cookie Policy "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](29,". "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}2&e&&(i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](19),i["\u0275\u0275property"]("disabled",t.form.invali
1d))},directives:[$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,CO,Fa,Ld,ah,$t.NgControlStatus,$t.FormControlName,yh,wh,Ya,SO],styles:[".register[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100vh}.register__other[_ngcontent-%COMP%]{max-width:366px;color:var(--tui-text-03);text-align:center}.register__other[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--tui-support-08);text-decoration:none;cursor:pointer}.form[_ngcontent-%COMP%]{position:relative;padding-top:80px;padding-right:20px;padding-left:20px}.back[_ngcontent-%COMP%]{position:absolute;top:20px;left:24px;display:flex;align-items:center;background:#0000;border:none;cursor:pointer;transition:.4s}.back__icon[_ngcontent-%COMP%]{margin-right:8px}.back[_ngcontent-%COMP%]:hover{opacity:.5}"]}),e})(),TD=(()=>{class e{constructor(e){this._authorizationService=e}ngOnInit(){this.form=new $t.FormGroup({email:new $t.FormControl("",[$t.Validators.required,$t.Validators.email])})}sendEmailToRestorePassword(e){return(0,Er.mG)(this,void 0,void 0,function*(){yield this._authorizationService.restorePassword(e),alert("\u0417\u0430\u044f\u0432\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430")})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](GO))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-restore-page"]],decls:13,vars:2,consts:[[1,"restore","container"],[1,"form","login__form","tui-col_4",3,"formGroup","ngSubmit"],["src","../../../assets/img/ava.jpg","alt","Bhakti avatar",1,"form__avatar","tui-space_bottom-5"],[1,"form__title","tui-text_h4","tui-space_bottom-6"],[1,"tui-space_bottom-2","tui-col_12"],["tuiTextfieldExampleText","Field placeholder","formControlName","email","tuiHintContent","email"],["email",""],[1,"tui-required"],[1,"tui-col_12"],["tuiButton","","type","submit","appearance","primary-orange",1,"tui-col_12","tui-space_bottom-3","tui-space_top-3","form__button",3,"disabled"]],template:function(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"form",1),i["\u0275\u0275listener"]("ngSubmit",function(){i["\u0275\u0275restoreView"](e);const n=i["\u0275\u0275reference"](7);return t.sendEmailToRestorePassword(n.value)}),i["\u0275\u0275element"](2,"img",2),i["\u0275\u0275elementStart"](3,"h3",3),i["\u0275\u0275text"](4," Bhakti Vikasa Swami "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"div",4),i["\u0275\u0275elementStart"](6,"tui-input",5,6),i["\u0275\u0275text"](8," Email"),i["\u0275\u0275element"](9,"span",7),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"div",8),i["\u0275\u0275elementStart"](11,"button",9),i["\u0275\u0275text"](12," Reset Password "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}2&e&&(i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](10),i["\u0275\u0275property"]("disabled",t.form.invalid))},directives:[$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,Ld,ah,$t.NgControlStatus,$t.FormControlName,Ya],styles:[".restore[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100vh}"]}),e})(),BD=(()=>{class e{constructor(e,t,n,r,i){this._firestore=e,this._authService=t,this._firebaseAuth=n,this._playlistsService=r,this._globalState=i,this.favoritePlaylists=[],this.favoritePlaylistsIds=[]}get getallFavoritePlaylists(){return this.favoritePlaylists}initUserFavoritePlaylists(){return(0,Er.mG)(this,void 0,void 0,function*(){this.user=yield this._firebaseAuth.user.pipe(nr(1)).toPromise();const e=yield this._firestore.collection("users").doc(this.user.uid).valueChanges().pipe(nr(1)).toPromise();e.favoritePlaylistsIds&&(this.favoritePlaylistsIds=e.favoritePlaylistsIds),this.favoritePlaylists=this.getFavoritePlaylists()})}getFavoritePlaylists(){return this.favoritePlaylistsIds.map(e=>this._playlistsService.getAllPlaylists.find(t=>t.listID==e))}toggleFavorites(e){return(0,Er.mG)(this,void 0,void 0,function*(){this.addFavorite(e),yield this.setFavoritePlaylitsInFirebase(),this.favoritePlaylists=this.getFavoritePlaylists()})}addFavorite(e){this.isPlaylistInFavorites(e)?this.removeFavorite(e):this.favoritePlaylistsIds.push(e)}setFavoritePlaylitsInFirebase(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this._firestore.collection("users").doc(this.user.uid).set({favoritePlaylistsIds:this.favoritePlaylistsIds})})}isPlaylistInFavorites(e){return this.favoritePlaylistsIds.includes(e)}removeFavorite(e){const t=this.favoritePlaylistsIds.findIndex(t=>t===e);this.favoritePlaylistsIds.splice(t,1),this.favoritePlaylists.splice(t,1),this._globalState.onRemovePlaylistFromFavoirte.emit(null)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](UB),i["\u0275\u0275inject"](GO),i["\u0275\u0275inject"](Cr),i["\u0275\u0275inject"](aF),i["\u0275\u0275inject"](eF))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const kD=["button"];function PD(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",15),i["\u0275\u0275element"](1,"tui-svg",16),i["\u0275\u0275elementEnd"]())}function OD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"legend",17),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate2"](" ",null==e.playlistData.lectureIds?null:e.playlistData.lectureIds.length," ",(null==e.playlistData.lectureIds?null:e.playlistData.lectureIds.length)>1?"lectures":"lecture"," ")}}function FD(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"legend",17),i["\u0275\u0275text"](1,"No lectures"),i["\u0275\u0275elementEnd"]())}function LD(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"li",19),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"](2).removePlaylist()}),i["\u0275\u0275element"](1,"tui-svg",23),i["\u0275\u0275text"](2," Remove playlist "),i["\u0275\u0275elementEnd"]()}}function MD(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"ul",18),i["\u0275\u0275elementStart"](1,"li",19),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().toggleFavorites()}),i["\u0275\u0275element"](2,"tui-svg",20),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"li",19),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().downloadPlaylist()}),i["\u0275\u0275element"](5,"tui-svg",21),i["\u0275\u0275text"](6," Download "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](7,LD,3,0,"li",22),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",e.isPlaylistInFavorites()?"Remove from Favorites":"Add to Favorites"," "),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",e.isMyPlaylist)}}const DD=function(e){return{"tui-skeleton":e}},ND=function(e){return["/dashboard/playlists",e]},RD=function(e,t){return{"tui-skeleton":e,"tui-skeleton_text":t}},UD=function(e,t,n){return{"tui-skeleton":e,"tui-skeleton_text":t,"tui-skeleton_short":n}};let jD=(()=>{class e{constructor(e,t,n,r,i,o){this._playlistsService=e,this._authService=t,this._playlistsFavoritesService=n,this._downloadService=r,this._favoritePlaylistsService=i,this._lecturesService=o,this.showSkeleton=!0,this.isDropdownActive=!1,this.playlistTypeImage="",this.thumbnail=""}ngOnInit(){this.checkPlaylistImage(),this.user=this._authService.getUser(),this.isMyPlaylist=this.playlistData.authorEmail===this.user.email}checkPlaylistImage(){var e;this.thumbnail=(null===(e=this._lecturesService.getPlaylistsLectures(this.playlistData.lectureIds)[0])||void 0===e?void 0:e.thumbnail)||"../../../assets/img/playlist_thumbnail.jpg"}checkPlayListTypeImage(){return"Private"===this.playlistData.listType?"../../../assets/icons/private.svg":"../../../assets/icons/public.svg"}hideSkeleton(){this.showSkeleton=!1}onDropdownClick(e){this.button.nativeElement.contains(e.target)||(this.isDropdownActive=!1)}toggleDropdown(){this.isDropdownActive=!this.isDropdownActive}toggleFavorites(){this._playlistsFavoritesService.toggleFavorites(this.playlistData.listID),this.toggleDropdown()}isPlaylistInFavorites(){if(this.playlistData)return this._playlistsFavoritesService.isPlaylistInFavorites(this.playlistData.listID)}removePlaylist(){return(0,Er.mG)(this,void 0,void 0,function*(){this._favoritePlaylistsService.removeFavorite(this.playlistData.listID),yield this._favoritePlaylistsService.setFavoritePlaylitsInFirebase(),this._playlistsService.removePlaylist(this.playlistData.listID,this.playlistData.listType)})}downloadPlaylist(){this._downloadService.addLecturesToDownloads(this.playlistData.lectureIds)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](aF),i["\u0275\u0275directiveInject"](GO),i["\u0275\u0275directiveInject"](BD),i["\u0275\u0275directiveInject"](IF),i["\u0275\u0275directiveInject"](BD),i["\u0275\u0275directiveInject"](sF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-playlist-post"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](kD,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.button=e.first)}},hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("click",function(e){return t.onDropdownClick(e)},!1,i["\u0275\u0275resolveDocument"])},inputs:{playlistData:"playlistData"},decls:23,vars:34,consts:[[1,"playlist"],[1,"playlist__img-wrapper",3,"routerLink"],["class","playlist__favorite-btn",4,"ngIf"],["alt","",1,"playlist__img",3,"src","load"],["class","playlist__content",4,"ngIf","ngIfElse"],["nolectures",""],[1,"playlist__text-wrapper"],[1,"playlist__other",3,"tuiDropdownContent","tuiDropdown","click"],["button",""],["src","tuiIconMoreVertLarge",1,"playlist__other-icon"],["otherDropdown",""],[1,"playlist__title"],["alt","",1,"playlist__title-type",3,"src"],[1,"playlist__title-text"],[1,"playlist__author"],[1,"playlist__favorite-btn"],["src","./../../../assets/img/sprite.svg#heart-filled",1,"icon"],[1,"playlist__content"],[1,"dropdown"],[1,"dropdown__item","tui-text_body-m",3,"click"],["src","tuiIconHeartLarge",1,"dropdown__item-icon"],["src","tuiIconDownloadLarge",1,"dropdown__item-icon"],["class","dropdown__item tui-text_body-m",3,"click",4,"ngIf"],["src","tuiIconTrashLarge",1,"dropdown__item-icon"]],template:function(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"article",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275template"](2,PD,2,0,"div",2),i["\u0275\u0275elementStart"](3,"img",3),i["\u0275\u0275listener"]("load",function(){return t.hide
1Skeleton()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](4,OD,2,2,"legend",4),i["\u0275\u0275template"](5,FD,2,0,"ng-template",null,5,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"div",6),i["\u0275\u0275elementStart"](8,"button",7,8),i["\u0275\u0275listener"]("click",function(){return t.toggleDropdown()}),i["\u0275\u0275element"](10,"tui-svg",9),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](11,MD,8,2,"ng-template",null,10,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementStart"](13,"h3",11),i["\u0275\u0275element"](14,"img",12),i["\u0275\u0275elementStart"](15,"span",13),i["\u0275\u0275text"](16),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](17,"p",14),i["\u0275\u0275elementStart"](18,"span"),i["\u0275\u0275text"](19),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](20,"span"),i["\u0275\u0275text"](21),i["\u0275\u0275pipe"](22,"date"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](6),n=i["\u0275\u0275reference"](12);i["\u0275\u0275advance"](1),i["\u0275\u0275classMap"](i["\u0275\u0275pureFunction1"](23,DD,t.showSkeleton)),i["\u0275\u0275property"]("routerLink",i["\u0275\u0275pureFunction1"](25,ND,null==t.playlistData?null:t.playlistData.listID)),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.isPlaylistInFavorites()),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("src",t.thumbnail,i["\u0275\u0275sanitizeUrl"]),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.playlistData.lectureIds&&t.playlistData.lectureIds.length>0)("ngIfElse",e),i["\u0275\u0275advance"](4),i["\u0275\u0275classProp"]("playlist__other_active",t.isDropdownActive),i["\u0275\u0275property"]("tuiDropdownContent",n)("tuiDropdown",t.isDropdownActive),i["\u0275\u0275advance"](5),i["\u0275\u0275classMap"](i["\u0275\u0275pureFunction2"](27,RD,t.showSkeleton,t.showSkeleton)),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("src",t.checkPlayListTypeImage(),i["\u0275\u0275sanitizeUrl"]),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate1"](" ",t.playlistData.title," "),i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" by ",t.playlistData.authorEmail," "),i["\u0275\u0275advance"](1),i["\u0275\u0275classMap"](i["\u0275\u0275pureFunction3"](30,UD,t.showSkeleton,t.showSkeleton,t.showSkeleton)),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate2"]("",i["\u0275\u0275pipeBind2"](22,20,t.playlistData.creationTime,"dd/MM/YYYY")," \xb7 ",t.playlistData.lecturesCategory,"")}},directives:[CO,Ft.O5,yu,Fa],pipes:[Ft.uU],styles:[".playlist[_ngcontent-%COMP%]{cursor:pointer}.playlist__img[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:center}.playlist__img-wrapper[_ngcontent-%COMP%]{position:relative;width:100%;margin-bottom:8px;padding-bottom:56.25%}.playlist__favorite-btn[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;overflow:visible;color:#fff;background:#0000;stroke:red}.playlist__text-wrapper[_ngcontent-%COMP%]{position:relative;display:block}.playlist__content[_ngcontent-%COMP%]{position:absolute;right:9px;bottom:9px;padding:2px 4px;color:#fff;background-color:#323942;border-radius:4px}.playlist__title[_ngcontent-%COMP%]{display:flex;max-width:calc(100% - 30px)}.playlist__title-type[_ngcontent-%COMP%]{width:12px;height:15px;margin-right:5px}.playlist__title-text[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.playlist__other[_ngcontent-%COMP%]{position:absolute;top:-7px;right:-20px;padding:10px;color:#909090;background:#0000;border:none;border-radius:50%;cursor:pointer;transition:.3s}.playlist__other[_ngcontent-%COMP%]:active{background:#e0e0e0}.playlist__other_active[_ngcontent-%COMP%]{background:#f0f0f0}.dropdown[_ngcontent-%COMP%]{padding:10px 15px}.dropdown__icon[_ngcontent-%COMP%]{margin-right:5px;color:#000}.dropdown__item[_ngcontent-%COMP%]{cursor:pointer;transition:.4s}.dropdown__item-icon[_ngcontent-%COMP%]{margin-right:8px}.dropdown__item[_ngcontent-%COMP%]:hover{opacity:.6}.dropdown__item[_ngcontent-%COMP%]:not(:last-child){padding-bottom:8px}"]}),e})();function QD(e,t){1&e&&i["\u0275\u0275element"](0,"app-playlist-post",2),2&e&&i["\u0275\u0275property"]("playlistData",t.$implicit)}let HD=(()=>{class e{constructor(e,t,n){this._playlistService=e,this._globalState=t,this._favoritePlaylistService=n,this.allPlaylists=[],this.playlists=[],this.oldPlaylists=[],this._globalState.onPlaylistsFilterChange.subscribe(()=>{this.initPlaylists()}),this._globalState.onPlaylistDeleted.subscribe(()=>{this.initPlaylists()}),this._globalState.onRemovePlaylistFromFavoirte.subscribe(()=>{this.initPlaylists()}),this._globalState.onCreatePlaylist.subscribe(()=>{this.initPlaylists()}),this._globalState.onPlaylistSortChange.subscribe(()=>{this.initPlaylists()})}get searchRequest(){return this._globalState.playlistsSearchRequest}get showRequest(){return this._globalState.playlistsShowRequest}
1get sortRequest(){return this._globalState.playlistsSortRequest}set showRequest(e){this._globalState.playlistsShowRequest=e}ngOnInit(){this.initPlaylists()}initPlaylists(){this.playlists=this.getPlaylists(),this.oldPlaylists=this.playlists.concat()}getPlaylists(){const e=this.filterPlaylists(this.allPlaylists,this.searchRequest,this.showRequest);return this.sortPlaylists(e,this.sortRequest)}filterPlaylists(e,t,n){let r=this.filterPlaylistsByShowRequest(e,n);if(null==t||""===t.trim())return r;{const e=t.toLowerCase().trim();return null==r?void 0:r.filter(t=>{if(t.title)return t.title.trim().toLowerCase().includes(e)})}}filterPlaylistsByShowRequest(e,t){switch(t.trim()){case JO.ALL:return e;case JO.PRIVATE:return this._playlistService.getPrivatePlaylists();case JO.ALLPUBLIC:return this._playlistService.getPublicPlaylists();case JO.MYPUBLIC:return this._playlistService.getMyPublicPlaylists();case JO.RECOMMENDED:return this._playlistService.getRecommendedPlaylists;case JO.FAVORITES:return this._favoritePlaylistService.getallFavoritePlaylists;default:return e}}sortPlaylists(e,t){const n=this.getSortFunction(t);return null==n?this.oldPlaylists:e.sort(n)}getSortFunction(e){switch(e){case"Default View":case"":case void 0:return null;case"Alphabetically (A-Z)":return(e,t)=>e.title.toLowerCase()>t.title.toLowerCase()?1:-1;case"Alphabetically (Z-A)":return(e,t)=>t.title.toLowerCase()>e.title.toLowerCase()?1:-1}return null}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](aF),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](BD))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-search-playlists"]],inputs:{allPlaylists:"allPlaylists"},decls:2,vars:1,consts:[[1,"playlists-wrapper"],[3,"playlistData",4,"ngFor","ngForOf"],[3,"playlistData"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275template"](1,QD,1,1,"app-playlist-post",1),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",t.playlists))},directives:[Ft.sg,jD],styles:[""]}),e})();const VD=function(){return["All","Private","My Public","All Public","Recommended","Favorites"]};function qD(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",15),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,VD))}const KD=function(){return["Default View","Alphabetically (A-Z)","Alphabetically (Z-A)"]};function GD(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",15),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,KD))}function zD(e,t){1&e&&i["\u0275\u0275element"](0,"app-playlist-post",18),2&e&&i["\u0275\u0275property"]("playlistData",t.$implicit)}function WD(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",16),i["\u0275\u0275template"](1,zD,1,1,"app-playlist-post",17),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",e.oldPlaylists)}}function $D(e,t){if(1&e&&i["\u0275\u0275element"](0,"app-search-playlists",19),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("allPlaylists",e.playlists)}}let YD=(()=>{class e{constructor(e,t,n,r,i,o,s,a){this.dialogService=e,this._playlistsService=t,this._globalState=n,this._favoirtePlaylistsService=r,this._modalService=i,this._router=o,this._dashboardService=s,this._navigateBackService=a,this.playlists=[],this.oldPlaylists=[],this._globalState.onPlaylistsLoaded.subscribe(()=>{this.playlists=this._playlistsService.getAllPlaylists,this.oldPlaylists=[...this.playlists]})}get searchRequest(){return this._globalState.playlistsSearchRequest}get showRequest(){return this._globalState.playlistsShowRequest}set showRequest(e){this._globalState.playlistsShowRequest=e}get sortRequest(){return this._globalState.playlistsSortRequest}set sortRequest(e){this._globalState.playlistsSortRequest=e}ngOnInit(){this._dashboardService.onSearchFieldPlaceholderChange.emit("Search playlists here"),this.form=new $t.FormGroup({show:new $t.FormControl("All"),sort:new $t.FormControl("Default View")}),this.playlists=this._playlistsService.getAllPlaylists,this.oldPlaylists=[...this.playlists],this._navigateBackService.oldPath=this._router.url}ngOnDestroy(){this._dashboardService.onSearchFieldPlaceholderChange.emit("Search here (E.g. surrender, love, Bg 4.34, SB 8.19.19, etc"),this._globalState.playlistsSearchRequest=""}showCreateDialog(){this._modalService.showCreatePlaylistDialog()}isSortRequests(){return!this.searchRequest.trim()&&this.showRequest===JO.ALL&&this.sortRequest==ZO.DEFAULT}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Ku),i["\u0275\u0275directiveInject"](aF),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](BD),i["\u0275\u0275directiveInject"](QF),i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](bL),i["\u0275\u0275directiveInject"](PF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-playlists"]],decls:24,vars:5,consts:[[1,"dashboard-head"],[1,"dashboard-head__title","tui-text_h4"],[1,"dashboard-head__filters-wrapper",3,"formGroup"],[1,"select-wrapper","tui-space_right-6"],[1,"select-wrapper__text"],["tuiTextfieldSize","s","formControlName","show",1,"select-wrapper__select",3,"ngModel","ngModelChange"],[3,"items",4,"tuiDataList"],["tuiTextfieldSize","s","formControlName","sort",1,"select-wrapper__select",3,"ngModel","ngModelChange"],[1,"select-wrapper","select-mode-btn"],["tuiButton","","appearance","outline","size","s",1,"action-btn",3,"click"],[1,"action-btn__icon"],[0,"xlink","href","../../../assets/img/icons/playlists-page.svg#addPlaylist"],["appPagination","",1,"dashboard__wrapper","categories"],["class","playlists-wrapper",4,"ngIf"],[3,"allPlaylists",4,"ngIf"],[3,"items"],[1,"playlists-wrapper"],[3,"playlistData",4,"ngFor","ngForOf"],[3,"playlistData"],[3,"allPlaylists"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"h2",1),i["\u0275\u0275text"](2,"Playlists"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"form",2),i["\u0275\u0275elementStart"](4,"div",3),i["\u0275\u0275elementStart"](5,"h5",4),i["\u0275\u0275text"](6,"Show"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"tui-select",5),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.showRequest=e}),i["\u0275\u0275text"](8," All lectures "),i["\u0275\u0275template"](9,qD,1,2,"tui-data-list-wrapper",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"div",3),i["\u0275\u0275elementStart"](11,"h5",4),i["\u0275\u0275text"](12,"Sort by"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](13,"tui-select",7),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.sortRequest=e}),i["\u0275\u0275text"](14," Default View "),i["\u0275\u0275template"](15,GD,1,2,"tui-data-list-wrapper",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](16,"div",8),i["\u0275\u0275elementStart"](17,"button",9),i["\u0275\u0275listener"]("click",function(){return t.showCreateDialog()}),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](18,"svg",10),i["\u0275\u0275element"](19,"use",11),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](20," New playlist "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275namespaceHTML"](),i["\u0275\u0275elementStart"](21,"tui-scrollbar",12),i["\u0275\u0275template"](22,WD,2,1,"div",13),i["\u0275\u0275template"](23,$D,1,1,"app-search-playlists",14),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngModel",t.showRequest),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngModel",t.sortRequest),i["\u0275\u0275advance"](9),i["\u0275\u0275property"]("ngIf",t.isSortRequests()),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!t.isSortRequests()))},directives:[$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,$d,yh,$t.NgControlStatus,$t.FormControlName,Ou,Ya,wc,OF,Ft.O5,yp,Ft.sg,jD,HD],styles:[".playlists-wrapper[_ngcontent-%COMP%]{display:grid;grid-row-gap:25px;grid-column-gap:23px;grid-template-columns:repeat(5,minmax(0,1fr));padding-right:30px}"]}),e})(),XD=(()=>{class e{constructor(e,t,n,r,i){this._firestore=e,this._authService=t,this._notificationService=n,this._localStorage=r,this._lectureService=i,this.skeletonVisible=!1,this.notificationsForm=new $t.FormGroup({english:new $t.FormControl(!1),hindi:new $t.FormControl(!1),bengali:new $t.FormControl(!1)}),this._authService.onSignIn.subscribe(()=>this.getUserData())}ngOnInit(){this.getUserData()}getUserData(){this.skeletonVisible=!0,this.user=this._authService.getUser(),this.user&&(this.checkSettings(),this.settingsObserver&&this.settingsObserver.unsubscribe(),this.settingsObserver=this._firestore.collection(`/users/${this.user.uid}/Settings`).valueChanges().subscribe(e=>{this.userSettings=e[0],this.englishCheck=this.userSettings.notification.english,this.hindiCheck=this.userSettings.notification.hindi,this.bengaliCheck=this.userSettings.notification.bengali,this.skeletonVisible=!1}))}checkSettings(){this._firestore.doc(`/users/${this.user.uid}/Settings/userSettings`).get().toPromise().then(e=>{if(!e.exists){let e={lastModificationTime:Date.now(),notification:{english:!0,hindi:!0,bengali:!0}};this._firestore.doc(`users/${this.user.uid}/Settings/userSettings`).set(e),this._notificationService.subcribeToTopic("BVKS_ENGLISH"),this._notificationService.subcribeToTopic("BVKS_HINDI"),this._notificationService.subcribeToTopic("BVKS_BENGALI")}})}triggerNotification(){const e=this._lectureService.lectures[0];this._notificationService.setNotification({title:e.title.join(" "),date:"Date of recording: "+e.dateOfRecording.day+"-"+e.dateOfRecording.month+"-"+e.dateOfRecording.year,category:" Category: "+e.category.join(" "),verse:" Verse: "+e.legacyData.verse})}handleCheckboxSubcription(e,t){return(0,Er.mG)(this,void 0,void 0,function*(){let t,n;switch(e){case"english":t="BVKS_ENGLISH",n=this.englishCheck;break;case"hindi":t="BVKS_HINDI",n=this.hindiCheck;break;case"bengali":t="BVKS_BENGALI",n=this.bengaliCheck}n?this._notificationService.subcribeToTopic(t):this._notificationService.unsubscribeFromTopic(t);let r=Object.assign(Object.assign({},this.userSettings),{lastModificationTime:Date.now()});r.notification[e]=n;try{yield this._firestore.doc(`users/${this.user.uid}/Settings/userSettings`).update(r)}catch(i){throw i}})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](UB),i["\u0275\u0275directiveInject"](GO),i["\u0275\u0275directiveInject"](oF),i["\u0275\u0275directiveInject"](Qp),i["\u0275\u0275directiveInject"](sF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-settings"]],decls:20,vars:9,consts:[[1,"dashboard-head"],[1,"dashboard-head__title","tui-text_h4"],[1,"dashboard__wrapper","settings"],[1,"settings__title"],[1,"tui-text_body-s"],[1,"settings__toggles","tui-space_top-4"],[1,"settings__toggle-wrapper","tui-space_bottom-2"],["size","l","id","englishCheck","checked","fal
1se",3,"ngModel","ngModelChange"],["for","englishCheck","tui-label","",1,"tui-text_body-m","tui-space_left-3"],["appearance","primary-orange","size","l","name","hindiCheck","checked","false",3,"ngModel","ngModelChange"],["appearance","primary-orange","size","l","name","bengaliCheck","checked","false",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"h2",1),i["\u0275\u0275text"](2,"Settings"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"tui-scrollbar",2),i["\u0275\u0275elementStart"](4,"div",3),i["\u0275\u0275elementStart"](5,"p",4),i["\u0275\u0275text"](6," Choose the language(s) you wish to get notifications for: "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"div",5),i["\u0275\u0275elementStart"](8,"div",6),i["\u0275\u0275elementStart"](9,"tui-toggle",7),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.englishCheck=e})("ngModelChange",function(e){return t.handleCheckboxSubcription("english",e)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"label",8),i["\u0275\u0275text"](11,"English"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"div",6),i["\u0275\u0275elementStart"](13,"tui-toggle",9),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.hindiCheck=e})("ngModelChange",function(e){return t.handleCheckboxSubcription("hindi",e)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](14,"label",8),i["\u0275\u0275text"](15,"Hindi"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](16,"div",6),i["\u0275\u0275elementStart"](17,"tui-toggle",10),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.bengaliCheck=e})("ngModelChange",function(e){return t.handleCheckboxSubcription("bengali",e)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](18,"label",8),i["\u0275\u0275text"](19,"Bengali"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](8),i["\u0275\u0275classProp"]("tui-skeleton",t.skeletonVisible),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngModel",t.englishCheck),i["\u0275\u0275advance"](3),i["\u0275\u0275classProp"]("tui-skeleton",t.skeletonVisible),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngModel",t.hindiCheck),i["\u0275\u0275advance"](3),i["\u0275\u0275classProp"]("tui-skeleton",t.skeletonVisible),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngModel",t.bengaliCheck))},directives:[wc,xp,$t.NgControlStatus,$t.NgModel],styles:[".settings__toggles[_ngcontent-%COMP%]{width:200px}.settings__toggle-wrapper[_ngcontent-%COMP%]{display:flex}"]}
1),e})(),JD=(()=>{class e{transform(e=[],t){return"Videos Only"===t&&(e=e.filter(e=>e.resources.videos.length)),e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i["\u0275\u0275definePipe"]({name:"filterByResources",type:e,pure:!0}),e})();function ZD(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",13),i["\u0275\u0275elementStart"](1,"div",14),i["\u0275\u0275elementStart"](2,"button",15),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().addSelectedToPlaylist()}),i["\u0275\u0275text"](3," Add to Playlist "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"div",14),i["\u0275\u0275elementStart"](5,"button",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().addSelectedToFavorites()}),i["\u0275\u0275text"](6," Add to Favorites "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"div",14),i["\u0275\u0275elementStart"](8,"button",17),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().downloadLectures()}),i["\u0275\u0275text"](9," Download "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"div",14),i["\u0275\u0275elementStart"](11,"button",18),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().markSelectedAsCompleted()}),i["\u0275\u0275text"](12," Mark as Complete "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](13,"div",14),i["\u0275\u0275elementStart"](14,"button",19),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().selectAll()}),i["\u0275\u0275text"](15," Select All "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",0===e.selectedLecturesLength)}}const eN=function(){return["Audio only (all lectures)","Only lectures with video"]};function tN(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",26),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,eN))}const nN=function(){return["Default View","Duration (low to high)","Duration (high to low)","Rec date (oldest first)","Rec date (latest first)","Alphabetically (A-Z)","Alphabetically (Z-A)"]};function rN(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",26),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,nN))}function iN(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",27),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e.activeFiltersCount," ")}}function oN(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",14),i["\u0275\u0275elementStart"](1,"h5",20),i["\u0275\u0275text"](2,"Playback Mode"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"tui-select",21),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().showRequest=t}),i["\u0275\u0275text"](4," Audio only (all lectures) "),i["\u0275\u0275template"](5,tN,1,2,"tui-data-list-wrapper",22),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"div",14),i["\u0275\u0275elementStart"](7,"h5",20),i["\u0275\u0275text"](8,"Sort by"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"tui-select",23),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().sortRequest=t}),i["\u0275\u0275text"](10," Default View "),i["\u0275\u0275template"](11,rN,1,2,"tui-data-list-wrapper",22),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"div",14),i["\u0275\u0275template"](13,iN,2,1,"div",24),i["\u0275\u0275elementStart"](14,"button",25),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().showDialog()}),i["\u0275\u0275text"](15," Filters "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngModel",e.showRequest),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngModel",e.sortRequest),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",e.activeFiltersCount)}}function sN(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"h5",28),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" Selected: ",e.selectedLecturesLength," ")}}function aN(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",26),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,eN))}const lN=function(){return["Default View","Duration (low to high)","Duration (high to low)","Rec date (oldest)","Rec date (latest)","Alphabetically (A
1-Z)","Alphabetically (Z-A)"]};function cN(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",26),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,lN))}function uN(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",27),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e.activeFiltersCount," ")}}function hN(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",14),i["\u0275\u0275elementStart"](1,"h5",20),i["\u0275\u0275text"](2,"Playback Mode"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"tui-select",21),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().showRequest=t}),i["\u0275\u0275text"](4," Audio only (all lectures) "),i["\u0275\u0275template"](5,aN,1,2,"tui-data-list-wrapper",22),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"div",14),i["\u0275\u0275elementStart"](7,"h5",20),i["\u0275\u0275text"](8,"Sort by"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"tui-select",23),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().sortRequest=t})("ngModelChange",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onSortChange()}),i["\u0275\u0275text"](10," Default View "),i["\u0275\u0275template"](11,cN,1,2,"tui-data-list-wrapper",22),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"div",14),i["\u0275\u0275template"](13,uN,2,1,"div",24),i["\u0275\u0275elementStart"](14,"button",25),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().showDialog()}),i["\u0275\u0275text"](15," Filters "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngModel",e.showRequest),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngModel",e.sortRequest),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",e.activeFiltersCount)}}function dN(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",29),i["\u0275\u0275elementStart"](1,"app-filter",30),i["\u0275\u0275listener"]("onClose",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().toggleFilter()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("isVisible",e.isFilterVisible)}}function AN(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",35),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](3);return o.interractWithLecture(n,null==o.lecturesByCategories?null:o.lecturesByCategories.latestUploads,r,"latestUploads")}),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275property"]("lectureData",t.$implicit)}function pN(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",35),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](3);return o.interractWithLecture(n,o.lecturesByCategories.popular,r,"topLectures")}),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275property"]("lectureData",t.$implicit)}function fN(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",35),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](3);return o.interractWithLecture(n,o.lecturesByCategories.latestInEnglish,r,"latestInEnglish")}),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275property"]("lectureData",t.$implicit)}function gN(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",35),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](3);return o.interractWithLecture(n,o.lecturesByCategories.englishInHindi,r,"englishInHindi")}),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275property"]("lectureData",t.$implicit)}function mN(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",35),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](3);return o.interractWithLecture(n,o.lecturesByCategories.bengalian,r,"bengalian")}),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275property"]("lectureData",t.$implicit)}function vN(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",35),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](3);return o.interractWithLecture(n,null==o.lecturesByCategories?null:o.lecturesByCategories.bhagavad,r,"bhagavad")}),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275property"]("lectureData",t.$implicit)}function yN(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",35),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](3);return o.interractWithLecture(n,null==o.lecturesByCategories?null:o.lecturesByCategories.srimadBhagavatam,r,"srimadBhagavatam")}),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275property"]("lectureData",t.$implicit)}function bN(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",35),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](3);return o.interractWithLecture(n,null==o.lecturesByCategories?null:o.lecturesByCategories.caritamrta,r,"caritamrta")}),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275property"]("lectureData",t.$implicit)}function _N(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",35),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](3);return o.interractWithLecture(n,null==o.lecturesByCategories?null:o.lecturesByCategories.bhajans,r,"bhajans")}),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275property"]("lectureData",t.$implicit)}function wN(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",35),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](3);return o.interractWithLecture(n,null==o.lecturesByCategories?null:o.lecturesByCategories.visnu,r,"visnu")}),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275property"]("lectureData",t.$implicit)}function CN(e,t){1&e&&i["\u0275\u0275element"](0,"app-playlist-post",36),2&e&&i["\u0275\u0275property"]("playlistData",t.$implicit)}function SN(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div"),i["\u0275\u0275elementStart"](1,"h3",31),i["\u0275\u0275text"](2,"Latest uploads"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"div",32),i["\u0275\u0275template"](4,AN,1,1,"app-lecture-post",33),i["\u0275\u0275pipe"](5,"slice"),i["\u0275\u0275pipe"](6,"filterByRes
1ources"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"h3",31),i["\u0275\u0275text"](8,"Popular"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"div",32),i["\u0275\u0275template"](10,pN,1,1,"app-lecture-post",33),i["\u0275\u0275pipe"](11,"slice"),i["\u0275\u0275pipe"](12,"filterByResources"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](13,"h3",31),i["\u0275\u0275text"](14,"Latest in English"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](15,"div",32),i["\u0275\u0275template"](16,fN,1,1,"app-lecture-post",33),i["\u0275\u0275pipe"](17,"slice"),i["\u0275\u0275pipe"](18,"filterByResources"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](19,"h3",31),i["\u0275\u0275text"](20,"\u0939\u093f\u0928\u094d\u0926\u0940"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](21,"div",32),i["\u0275\u0275template"](22,gN,1,1,"app-lecture-post",33),i["\u0275\u0275pipe"](23,"slice"),i["\u0275\u0275pipe"](24,"filterByResources"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](25,"h3",31),i["\u0275\u0275text"](26,"\u09ac\u09be\u0982\u09b2\u09be"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](27,"div",32),i["\u0275\u0275template"](28,mN,1,1,"app-lecture-post",33),i["\u0275\u0275pipe"](29,"slice"),i["\u0275\u0275pipe"](30,"filterByResources"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](31,"h3",31),i["\u0275\u0275text"](32,"Bhagavad-gita"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](33,"div",32),i["\u0275\u0275template"](34,vN,1,1,"app-lecture-post",33),i["\u0275\u0275pipe"](35,"slice"),i["\u0275\u0275pipe"](36,"filterByResources"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](37,"h3",31),i["\u0275\u0275text"](38,"Srimad Bhagavatam"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](39,"div",32),i["\u0275\u0275template"](40,yN,1,1,"app-lecture-post",33),i["\u0275\u0275pipe"](41,"slice"),i["\u0275\u0275pipe"](42,"filterByResources"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](43,"h3",31),i["\u0275\u0275text"](44,"Caitanya-caritamrta"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](45,"div",32),i["\u0275\u0275template"](46,bN,1,1,"app-lecture-post",33),i["\u0275\u0275pipe"](47,"slice"),i["\u0275\u0275pipe"](48,"filterByResources"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](49,"h3",31),i["\u0275\u0275text"](50,"Bhajans"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](51,"div",32),i["\u0275\u0275template"](52,_N,1,1,"app-lecture-post",33),i["\u0275\u0275pipe"](53,"slice"),i["\u0275\u0275pipe"](54,"filterByResources"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](55,"h3",31),i["\u0275\u0275text"](56,"Visnu-sahasranama"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](57,"div",32),i["\u0275\u0275template"](58,wN,1,1,"app-lecture-post",33),i["\u0275\u0275pipe"](59,"slice"),i["\u0275\u0275pipe"](60,"filterByResources"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](61,"h3",31),i["\u0275\u0275text"](62,"Recommended Playlists"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](63,"div",32),i["\u0275\u0275template"](64,CN,1,1,"app-playlist-post",34),i["\u0275\u0275pipe"](65,"slice"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind3"](5,11,i["\u0275\u0275pipeBind2"](6,15,null==e.lecturesByCategories?null:e.lecturesByCategories.latestUploads,e.showRequest),0,5)),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind3"](11,18,i["\u0275\u0275pipeBind2"](12,22,e.lecturesByCategories.popular,e.showRequest),0,5)),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind3"](17,25,i["\u0275\u0275pipeBind2"](18,29,e.lecturesByCategories.latestInEnglish,e.showRequest),0,5)),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind3"](23,32,i["\u0275\u0275pipeBind2"](24,36,e.lecturesByCategories.englishInHindi,e.showRequest),
10,5)),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind3"](29,39,i["\u0275\u0275pipeBind2"](30,43,e.lecturesByCategories.bengalian,e.showRequest),0,5)),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind3"](35,46,i["\u0275\u0275pipeBind2"](36,50,null==e.lecturesByCategories?null:e.lecturesByCategories.bhagavad,e.showRequest),0,5)),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind3"](41,53,i["\u0275\u0275pipeBind2"](42,57,null==e.lecturesByCategories?null:e.lecturesByCategories.srimadBhagavatam,e.showRequest),0,5)),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind3"](47,60,i["\u0275\u0275pipeBind2"](48,64,null==e.lecturesByCategories?null:e.lecturesByCategories.caritamrta,e.showRequest),0,5)),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind3"](53,67,i["\u0275\u0275pipeBind2"](54,71,null==e.lecturesByCategories?null:e.lecturesByCategories.bhajans,e.showRequest),0,5)),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind3"](59,74,i["\u0275\u0275pipeBind2"](60,78,null==e.lecturesByCategories?null:e.lecturesByCategories.visnu,e.showRequest),0,5)),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind3"](65,81,e.recommendedPlaylists,0,5))}}function EN(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div"),i["\u0275\u0275template"](1,SN,66,85,"div",12),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.isSortRequests())}}function IN(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-loader",37),2&e){i["\u0275\u0275nextContext"]();const e=i["\u0275\u0275reference"](17);i["\u0275\u0275property"]("showLoader",e)("overlay",!0)("inheritColor",!0)}}function xN(e,t){1&e&&i["\u0275\u0275element"](0,"app-lectures")}let TN=(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,c,u,h,d,A,p){this._lecturesService=e,this._filterService=t,this.route=n,this._router=r,this._multiSelectService=i,this._paginationService=o,this._dialogService=s,this._downloadService=a,this._lectureProgressService=l,this._globalState=c,this._audioPlayerService=u,this._favoriteService=h,this._playlistsService=d,this._modalService=A,this._navigateBackService=p,this.isLecturePopupActive=!1,this.isSelectMode=!1,this.isFilterVisible=!1,this.lecturesMode=WO.play_audio,this.lastestlectures=[],this.topLectures=[],this.latestInEnglish=[],this.englishInHindi=[],this.bengalian=[],this.bhagavad=[],this.srimadBhagavatam=[],this.caritamrta=[],this.visnu=[],this.dialog=this._dialogService.open(new ca(vF),{data:237,dismissible:!0,label:"Filters",size:"s",closeable:!1}),this._multiSelectService.onSelectedLecturesChange.subscribe(()=>{this.selectedLecturesLength=this._multiSelectService.selectedLectures.length}),this._multiSelectService.onSelectMode.subscribe(()=>{this.isSelectMode=this._multiSelectService.isSelectMode,this.setLectureMode()}),this.route.url.subscribe(()=>this._multiSelectService.unchooseAll()),this._globalState.onCategoryLecturesLoaded.subscribe(()=>{this.lecturesByCategories=this._lecturesService.lecturesByCategories})}get lecturesByCatIsReady(){return this._lecturesService.lecturesByCatIsReady}get recommendedPlaylists(){return this._playlistsService.getRecommendedPlaylists}get searchRequest(){return this._globalState.searchRequest}get sortRequest(){return this._globalState.sortRequest}get showRequest(){return this.setLectureMode(),this._globalState.showRequest}get activeFiltersCount(){return this._filterService.getAllActiveFiltersCount()}set showRequest(e){this._globalState.showRequest=e,this.setLectureMode()}set sortRequest(e){this._globalState.sortRequest=e,this.setLectureMode()}set searchRequest(e){this._globalState.searchRequest=e}set filterRequest(e){this._globalState.filterRequest=e}ngOnInit(){this.lecturesByCategories=this._lecturesService.lecturesByCategories,this.isSelectMode=this._multiSelectService.isSelectMode,this.form=new $t.FormGroup({show:new $t.FormControl(null),sort:new $t.FormControl(null),filter:new $t.FormControl(null)}),this._paginationService.pageIndex=1,this.selectedLecturesLength=this._multiSelectService.selectedLectures.length,this._navigateBackService.oldPath=this._router.url}downloadLectures(){const e=this._multiSelectService.getSelectedLecturesIds();this._downloadService.addLecturesToDownloads(e),this._multiSelectService.unchooseAll()}resetLimit(){this._paginationService.pageIndex=1}setLectureMode(){this.lecturesMode=this.isSelectMode?WO.select:this._globalState.showRequest===YO.AUDIOS?WO.play_audio:WO.open_lecture_page}interractWithLecture(e,t,n,r){switch(this.lecturesMode){case WO.play_audio:this._audioPlayerService.setData(t,n);break;case WO.open_lecture_page:this._router.navigate(["/lecture/",e.id],{queryParams:{videoListType:"categories",videoListParams:r}});break;case WO.select:this._multiSelectService.toggleLectureSelect(e.id)}}showDialog(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this.dialog.toPromise()})}closeLecturePopup(){this.isLecturePopupActive=!1}isSortRequests(){return!this.searchRequest.trim()&&"Default View"==this.sortRequest&&!this._filterService.getAllActiveFiltersCount()}toggleFilter(){this.isFilterVisible=!this.isFilterVisible}toggleSelectMode(){this._multiSelectService.toggleSelectMode()}selectAll(){if(0==this._filterService.getAllActiveFiltersCount()&&!this._filterService.searchValue.length&&"Default View"===this._globalState.sortRequest){const e=[];Object.values(this._lecturesService.lecturesByCategories).forEac
1h(t=>{t.slice(0,5).forEach(t=>{e.push(t.id)})}),this._multiSelectService.setSelectAllLectures([...new Set(e)])}this._multiSelectService.chooseAll()}addSelectedToFavorites(){this._favoriteService.addSelectedLecturesToFavorites(),this._multiSelectService.unchooseAll()}markSelectedAsCompleted(){this._multiSelectService.selectedLectures.forEach(e=>{this._lectureProgressService.markAsComplete(e)}),this._multiSelectService.unchooseAll()}addSelectedToPlaylist(){this._modalService.addToPlaylist(this._multiSelectService.getSelectedLectures)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](sF),i["\u0275\u0275directiveInject"](hF),i["\u0275\u0275directiveInject"](eP),i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](AF),i["\u0275\u0275directiveInject"](dF),i["\u0275\u0275directiveInject"](Ku),i["\u0275\u0275directiveInject"](IF),i["\u0275\u0275directiveInject"](xF),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](kF),i["\u0275\u0275directiveInject"](yF),i["\u0275\u0275directiveInject"](aF),i["\u0275\u0275directiveInject"](QF),i["\u0275\u0275directiveInject"](PF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-categories"]],decls:19,vars:10,consts:[[1,"dashboard-head"],[1,"dashboard-head__title","tui-text_h4"],[1,"dashboard-head__filters-wrapper",3,"formGroup"],["class","select-mode-wrapper",4,"ngIf","ngIfElse"],["filters",""],[1,"select-wrapper","select-mode-btn"],["class","select-wrapper__text lectures-length",4,"ngIf"],["tuiButton","","type","button","size","s",3,"appearance","click"],["class","temp-popup",4,"ngIf"],["appPagination","",1,"dashboard__wrapper","categories"],[4,"ngIf","ngIfElse"],["contentLoader",""],[4,"ngIf"],[1,"select-mode-wrapper"],[1,"select-wrapper","tui-space_right-6"],["tuiButton","","icon","./../../../assets/img/sprite.svg#addPlaylist","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","icon","./../../../../assets/img/sprite.svg#heart","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","icon","./../../../assets/img/sprite.svg#download","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","icon","./../../../assets/img/sprite.svg#checkbox","appearance","flat","type","button","size","s",3,"disabled","click"],["tuiButton","","appearance","outline","type","button","size","s",3,"click"],[1,"select-wrapper__text"],["tuiTextfieldSize","s","formControlName","show",1,"select-wrapper__select",3,"ngModel","ngModelChange"],[3,"items",4,"tuiDataList"],["tuiTextfieldSize","s","formControlName","sort",1,"select-wrapper__select",3,"ngModel","ngModelChange"],["class","filter-badge",4,"ngIf"],["tuiButton","","icon","./../../../assets/img/sprite.svg#filter","appearance","outline","type","button","size","s",3,"click"],[3,"items"],[1,"filter-badge"],[1,"select-wrapper__text","lectures-length"],[1,"temp-popup"],[3,"isVisible","onClose"],[1,"dashboard__title","tui-text_h5"],[1,"lectures-wrapper"],[3,"lectureData","onLectureClick",4,"ngFor","ngForOf"],[3,"playlistData",4,"ngFor","ngForOf"],[3,"lectureData","onLectureClick"],[3,"playlistData"],["size","xxl",1,"content-loader",3,"showLoader","overlay","inheritColor"]],template:function(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"h2",1),i["\u0275\u0275text"](2,"Media library"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"form",2),i["\u0275\u0275template"](4,ZD,16,4,"div",3),i["\u0275\u0275template"](5,oN,16,3,"ng-template",null,4,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementStart"](7,"div",5),i["\u0275\u0275template"](8,sN,2,1,"h5",6),i["\u0275\u0275elementStart"](9,"button",7),i["\u0275\u0275listener"]("click",function(){return t.toggleSelectMode()}),i["\u0275\u0275text"](10),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](11,hN,16,3,"ng-template",null,4,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](13,dN,2,1,"div",8),i["\u0275\u0275elementStart"](14,"tui-scrollbar",9),i["\u0275\u0275template"](15,EN,2,1,"div",10),i["\u0275\u0275template"](16,IN,1,3,"ng-template",null,11,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275template"](18,xN,1,0,"app-lectures",12),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](6),n=i["\u0275\u0275reference"](17);i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.isSelectMode)("ngIfElse",e),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",t.selectedLecturesLength>0),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("appearance",t.isSelectMode?"secondary":"outline"),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",t.isSelectMode?"Cancel":"Select Multiple Files"," "),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngIf",t.isFilterVisible),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.lecturesByCatIsReady)("ngIfElse",n),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngIf",!t.isSortRequests())}},directives:[$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,Ft.O5,Ya,wc,OF,$d,yh,$t.NgControlStatus,$t.FormControlName,Ou,yp,vF,Ft.sg,ZF,jD,ba,tL],pipes:[Ft.OU,JD],styles:[".dashboard__wrapper[_ngcontent-%COMP%] >.content{padding-bottom:40px}.select-mode-wrapper[_ngcontent-%COMP%]{display:flex}.lectures-length[_ngcontent-%COMP%]{margin-bottom:10px;text-align:right}  .filter-badge{position:absolute;top:0;right:0;z-index:2;display:flex;align-items:center;justify-content:center;width:15px;height:15px;color:#fff;font-size:10px;background:var(--tui-support-08);border-radius:50%;transform:translate(50%,100%)}  .select-wrapper{position:relative}",".temp-popup[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:999;display:flex;align-items:center;justify-content:center;width:100%;height:100vh;background:rgba(0,0,0,.712)}"]}),e})();function BN(e){return(BN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var kN=Uint8Array,PN=Uint16Array,ON=Uint32Array,FN=new kN([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),LN=new kN([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),MN=new kN([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DN=function(e,t){for(var n=new PN(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new ON(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},NN=DN(FN,2),RN=NN[0],UN=NN[1];RN[28]=258,UN[258]=28;for(var jN=DN(LN,0),QN=jN[0],HN=jN[1],VN=new PN(32768),qN=0;qN<32768;++qN){var KN=(43690&qN)>>>1|(21845&qN)<<1;
vendor: 4,294 bytes, line 1
1VN[qN]=((65280&(KN=(61680&(KN=(52428&KN)>>>2|(13107&KN)<<2))>>>4|(3855&KN)<<4))>>>8|(255&KN)<<8)>>>1}var GN=function(e,t,n){for(var r=e.length,i=0,o=new PN(t);i<r;++i)++o[e[i]-1];var s,a=new PN(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new PN(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],u=t-e[i],h=a[e[i]-1]++<<u,d=h|(1<<u)-1;h<=d;++h)s[VN[h]>>>l]=c}else for(s=new PN(r),i=0;i<r;++i)s[i]=VN[a[e[i]-1]++]>>>15-e[i];return s},zN=new kN(288);for(qN=0;qN<144;++qN)zN[qN]=8;for(qN=144;qN<256;++qN)zN[qN]=9;for(qN=256;qN<280;++qN)zN[qN]=7;for(qN=280;qN<288;++qN)zN[qN]=8;var WN=new kN(32);for(qN=0;qN<32;++qN)WN[qN]=5;var $N=GN(zN,9,0),YN=GN(zN,9,1),XN=GN(WN,5,0),JN=GN(WN,5,1),ZN=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},eR=function(e,t,n){var r=t/8>>0;return(e[r]|e[r+1]<<8)>>>(7&t)&n},tR=function(e,t){var n=t/8>>0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>>(7&t)},nR=function(e){return(e/8>>0)+(7&e&&1)},rR=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof PN?PN:e instanceof ON?ON:kN)(n-t);return r.set(e.subarray(t,n)),r},iR=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8},oR=function(e,t,n){var r=t/8>>0;e[r]|=n<<=7&t,e[r+1]|=n>>>8,e[r+2]|=n>>>16},sR=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new kN(0),0];if(1==i){var s=new kN(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],c=0,u=1,h=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};u!=i-1;)a=n[n[c].f<n[h].f?c++:h++],l=n[c!=u&&n[c].f<n[h].f?c++:h++],n[u++]={s:-1,f:a.f+l.f,l:a,r:l};var d=o[0].s;for(r=1;r<i;++r)o[r].s>d&&(d=o[r].s);var A=new PN(d+1),p=aR(n[u-1],A,0);if(p>t){r=0;var f=0,g=p-t,m=1<<g;for(o.sort(function(e,t){return A[t.s]-A[e.s]||e.f-t.f});r<i;++r){var v=o[r].s;if(!(A[v]>t))break;f+=m-(1<<p-A[v]),A[v]=t}for(f>>>=g;f>0;){var y=o[r].s;A[y]<t?f-=1<<t-A[y]++-1:++r}for(;r>=0&&f;--r){var b=o[r].s;A[b]==t&&(--A[b],++f)}p=t}return[new kN(A),p]},aR=function(e,t,n){return-1==e.s?Math.max(aR(e.l,t,n+1),aR(e.r,t,n+1)):t[e.s]=n},lR=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new PN(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[n.subarray(0,r),t]},cR=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},uR=function(e,t,n){var r=n.length,i=nR(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},hR=function(e,t,n,r,i,o,s,a,l,c,u){iR(t,u++,n),++i[256];for(var h=sR(i,15),d=h[0],A=h[1],p=sR(o,15),f=p[0],g=p[1],m=lR(d),v=m[0],y=m[1],b=lR(f),_=b[0],w=b[1],C=new PN(19),S=0;S<v.length;++S)C[31&v[S]]++;for(S=0;S<_.length;++S)C[31&_[S]]++;for(var E=sR(C,7),I=E[0],x=E[1],T=19;T>4&&!I[MN[T-1]];--T);var B,k,P,O,F=c+5<<3,L=cR(i,zN)+cR(o,WN)+s,M=cR(i,d)+cR(o,f)+s+14+3*T+cR(C,I)+(2*C[16]+3*C[17]+7*C[18]);if(F<=L&&F<=M)return uR(t,u,e.subarray(l,l+c));if(iR(t,u,1+(M<L)),u+=2,M<L){B=GN(d,A,0),k=d,P=GN(f,g,0),O=f;var D=GN(I,x,0);for(iR(t,u,y-257),iR(t,u+5,w-1),iR(t,u+10,T-4),u+=14,S=0;S<T;++S)iR(t,u+3*S,I[MN[S]]);u+=3*T;for(var N=[v,_],R=0;R<2;++R){var U=N[R];for(S=0;S<U.length;++S)iR(t,u,D[j=31&U[S]]),u+=I[j],j>15&&(iR(t,u,U[S]>>>5&127),u+=U[S]>>>12)}}else B=$N,k=zN,P=XN,O=WN;for(S=0;S<a;++S)if(r[S]>255){var j;oR(t,u,B[257+(j=r[S]>>>18&31)]),u+=k[j+257],j>7&&(iR(t,u,r[S]>>>23&31),u+=FN[j]);var Q=31&r[S];oR(t,u,P[Q]),u+=O[Q],Q>3&&(oR(t,u,r[S]>>>5&8191),u+=LN[Q])}else oR(t,u,B[r[S]]),u+=k[r[S]];return oR(t,u,B[256]),u+k[256]},dR=new ON([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),AR=new kN(0);function pR(e,t){void 0===t&&(t={});var n=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length,s=0;s!=o;){for(var a=Math.min(s+5552,o);s<a;++s)i+=r+=n[s];r%=65521,i%=65521}e=r,t=i},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}}();n.p(e);var r=function(e,t,n,r,i){return function(e,t,n,r,i,o){var s=e.length,a=new kN(r+s+5*(1+Math.floor(s/7e3))+i),l=a.subarray(r,a.length-i),c=0;if(!t||s<8)for(var u=0;u<=s;u+=65535){var h=u+65535;
vendor: 2,252 bytes, line 1
1h<s?c=uR(l,c,e.subarray(u,h)):(l[u]=o,c=uR(l,c,e.subarray(u,s)))}else{for(var d=dR[t-1],A=d>>>13,p=8191&d,f=(1<<n)-1,g=new PN(32768),m=new PN(f+1),v=Math.ceil(n/3),y=2*v,b=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<y)&f},_=new ON(25e3),w=new PN(288),C=new PN(32),S=0,E=0,I=(u=0,0),x=0,T=0;u<s;++u){var B=b(u),k=32767&u,P=m[B];if(g[k]=P,m[B]=k,x<=u){var O=s-u;if((S>7e3||I>24576)&&O>423){c=hR(e,l,0,_,w,C,E,I,T,u-T,c),I=S=E=0,T=u;for(var F=0;F<286;++F)w[F]=0;for(F=0;F<30;++F)C[F]=0}var L=2,M=0,D=p,N=k-P&32767;if(O>2&&B==b(u-N))for(var R=Math.min(A,O)-1,U=Math.min(32767,u),j=Math.min(258,O);N<=U&&--D&&k!=P;){if(e[u+L]==e[u+L-N]){for(var Q=0;Q<j&&e[u+Q]==e[u+Q-N];++Q);if(Q>L){if(L=Q,M=N,Q>R)break;var H=Math.min(N,Q-2),V=0;for(F=0;F<H;++F){var q=u-N+F+32768&32767,K=q-g[q]+32768&32767;K>V&&(V=K,P=q)}}}N+=(k=P)-(P=g[k])+32768&32767}if(M){_[I++]=268435456|UN[L]<<18|HN[M];var G=31&UN[L],z=31&HN[M];E+=FN[G]+LN[z],++w[257+G],++C[z],x=u+L,++S}else _[I++]=e[u],++w[e[u]]}}c=hR(e,l,o,_,w,C,E,I,T,u-T,c),o||(c=uR(l,c,AR))}return rR(a,0,r+nR(c)+i)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)}(e,t,2,4);return function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)}(r,t),function(e,t,n){for(;n;++t)e[t]=n,n>>>=8}(r,r.length-4,n.d()),r}var fR=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function gR(){fR.console&&"function"==typeof fR.console.log&&fR.console.log.apply(fR.console,arguments)}var mR={log:gR,warn:function(e){fR.console&&("function"==typeof fR.console.warn?fR.console.warn.apply(fR.console,arguments):gR.call(null,arguments))},error:function(e){fR.console&&("function"==typeof fR.console.error?fR.console.error.apply(fR.console,arguments):gR(e))}};function vR(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){CR(r.response,t,n)},r.onerror=function(){mR.error("could not download file")},r.send()}function yR(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function bR(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");
vendor: 3,270 bytes, line 1
1t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var _R,wR,CR=fR.saveAs||("object"!==("undefined"==typeof window?"undefined":BN(window))||window!==fR?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=fR.URL||fR.webkitURL,i=document.createElement("a");i.download=t=t||e.name||"download",i.rel="noopener","string"==typeof e?(i.href=e,i.origin!==location.origin?yR(i.href)?vR(e,t,n):bR(i,i.target="_blank"):bR(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){bR(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"==typeof e)if(yR(e))vR(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){bR(r)})}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==BN(t)&&(mR.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return vR(e,t,n);var i="application/octet-stream"===e.type,o=/constructor/i.test(fR.HTMLElement)||fR.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&o)&&"object"===("undefined"==typeof FileReader?"undefined":BN(FileReader))){var a=new FileReader;a.onloadend=function(){var e=a.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},a.readAsDataURL(e)}else{var l=fR.URL||fR.webkitURL,c=l.createObjectURL(e);r?r.location=c:location.href=c,r=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});function SR(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
10",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var i=n[r].process,o=n[r].re.exec(e);o&&(t=i(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}function ER(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];n=xR(n,r,i,o,t[0],7,-680876936),o=xR(o,n,r,i,t[1],12,-389564586),i=xR(i,o,n,r,t[2],17,606105819),r=xR(r,i,o,n,t[3],22,-1044525330),n=xR(n,r,i,o,t[4],7,-176418897),o=xR(o,n,r,i,t[5],12,1200080426),i=xR(i,o,n,r,t[6],17,-1473231341),r=xR(r,i,o,n,t[7],22,-45705983),n=xR(n,r,i,o,t[8],7,1770035416),o=xR(o,n,r,i,t[9],12,-1958414417),i=xR(i,o,n,r,t[10],17,-42063),r=xR(r,i,o,n,t[11],22,-1990404162),n=xR(n,r,i,o,t[12],7,1804603682),o=xR(o,n,r,i,t[13],12,-40341101),i=xR(i,o,n,r,t[14],17,-1502002290),n=TR(n,r=xR(r,i,o,n,t[15],22,1236535329),i,o,t[1],5,-165796510),o=TR(o,n,r,i,t[6],9,-1069501632),i=TR(i,o,n,r,t[11],14,643717713),r=TR(r,i,o,n,t[0],20,-373897302),n=TR(n,r,i,o,t[5],5,-701558691),o=TR(o,n,r,i,t[10],9,38016083),i=TR(i,o,n,r,t[15],14,-660478335),r=TR(r,i,o,n,t[4],20,-405537848),n=TR(n,r,i,o,t[9],5,568446438),o=TR(o,n,r,i,t[14],9,-1019803690),i=TR(i,o,n,r,t[3],14,-187363961),r=TR(r,i,o,n,t[8],20,1163531501),n=TR(n,r,i,o,t[13],5,-1444681467),o=TR(o,n,r,i,t[2],9,-51403784),i=TR(i,o,n,r,t[7],14,1735328473),n=BR(n,r=TR(r,i,o,n,t[12],20,-1926607734),i,o,t[5],4,-378558),o=BR(o,n,r,i,t[8],11,-2022574463),i=BR(i,o,n,r,t[11],16,1839030562),r=BR(r,i,o,n,t[14],23,-35309556),n=BR(n,r,i,o,t[1],4,-1530992060),o=BR(o,n,r,i,t[4],11,1272893353),i=BR(i,o,n,r,t[7],16,-155497632),r=BR(r,i,o,n,t[10],23,-1094730640),n=BR(n,r,i,o,t[13],4,681279174),o=BR(o,n,r,i,t[0],11,-358537222),i=BR(i,o,n,r,t[3],16,-722521979),r=BR(r,i,o,n,t[6],23,76029189),n=BR(n,r,i,o,t[9],4,-640364487),o=BR(o,n,r,i,t[12],11,-421815835),i=BR(i,o,n,r,t[15],16,530742520),n=kR(n,r=BR(r,i,o,n,t[2],23,-995338651),i,o,t[0],6,-198630844),o=kR(o,n,r,i,t[7],10,1126891415),i=kR(i,o,n,r,t[14],15,-1416354905),r=kR(r,i,o,n,t[5],21,-57434055),n=kR(n,r,i,o,t[12],6,1700485571),o=kR(o,n,r,i,t[3],10,-1894986606),i=kR(i,o,n,r,t[10],15,-1051523),r=kR(r,i,o,n,t[1],21,-2054922799),n=kR(n,r,i,o,t[8],6,1873313359),o=kR(o,n,r,i,t[15],10,-30611744),i=kR(i,o,n,r,t[6],15,-1560198380),r=kR(r,i,o,n,t[13],21,1309151649),n=kR(n,r,i,o,t[4],6,-145523070),o=kR(o,n,r,i,t[11],10,-1120210379),i=kR(i,o,n,r,t[2],15,718787259),r=kR(r,i,o,n,t[9],21,-343485551),e[0]=RR(n,e[0]),e[1]=RR(r,e[1]),e[2]=RR(i,e[2]),e[3]=RR(o,e[3])}function IR(e,t,n,r,i,o){return t=RR(RR(t,e),RR(r,o)),RR(t<<i|t>>>32-i,n)}function xR(e,t,n,r,i,o,s){return IR(t&n|~t&r,e,t,i,o,s)}function TR(e,t,n,r,i,o,s){return IR(t&r|n&~r,e,t,i,o,s)}function BR(e,t,n,r,i,o,s){return IR(t^n^r,e,t,i,o,s)}function kR(e,t,n,r,i,o,s){return IR(n^(t|~r),e,t,i,o,s)}function PR(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)ER(r,OR(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(ER(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,ER(r,i),r}function OR(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}_R=fR.atob.bind(fR),wR=fR.btoa.bind(fR);var FR="0123456789abcdef".split("");function LR(e){for(var t="",n=0;n<4;n++)t+=FR[e>>8*n+4&15]+FR[e>>8*n&15];return t}function MR(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function DR(e){return PR(e).map(MR).join("")}var NR="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=LR(e[t]);return e.join("")}(PR("hello"));function RR(e,t){if(NR){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}function UR(e,t){var n,r,i;if(e!==n){for(var o=(i=e,new Array(1+(256/e.length>>0)+1).join(i)),s=[],a=0;a<256;a++)s[a]=a;var l=0;for(a=0;a<256;a++){var c=s[a];
vendor: 5,490 bytes, line 1
1l=(l+c+o.charCodeAt(a))%256,s[a]=s[l],s[l]=c}n=e,r=s}else s=r;var u=t.length,h=0,d=0,A="";for(a=0;a<u;a++)d=(d+(c=s[h=(h+1)%256]))%256,s[h]=s[d],s[d]=c,o=s[(s[h]+s[d])%256],A+=String.fromCharCode(t.charCodeAt(a)^o);return A}var jR={print:4,modify:8,copy:16,"annot-forms":32};function QR(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(e){if(void 0!==jR.perm)throw new Error("Invalid permission: "+e);i+=jR[e]}),this.padding="(\xbfN^Nu\x8aAd\0NV\xff\xfa\x01\b..\0\xb6\xd0h>\x80/\f\xa9\xfedSiz";var o=(t+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,s),this.P=-(1+(255^i)),this.encryptionKey=DR(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=UR(this.encryptionKey,this.padding)}function HR(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);t+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):e[r]}return t}function VR(e){if("object"!==BN(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[n,!!r],i},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in t[n]){var s=t[n][o];try{s[0].apply(e,r)}catch(n){fR.console&&mR.error("jsPDF PubSub Error",n.message,n)}s[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function qR(e){if(!(this instanceof qR))return new qR(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function KR(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function GR(e,t,n,r,i){if(!(this instanceof GR))return new GR(e,t,n,r,i);this.type="axial"===e?2:3,this.coords=t,this.colors=n,KR.call(this,r,i)}function zR(e,t,n,r,i){if(!(this instanceof zR))return new zR(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,KR.call(this,r,i)}function WR(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],i=arguments[2],o=arguments[3],s=[],a=1,l=16,c="S",u=null;"object"===BN(e=e||{})&&(n=e.orientation,r=e.unit||r,i=e.format||i,o=e.compress||e.compressPdf||o,null!==(u=e.encryption||null)&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),a="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),s=e.filters||(!0===o?["FlateEncode"]:s),r=r||"mm",n=(""+(n||"P")).toLowerCase();var h=e.putOnlyUsedFonts||!1,d={},A={internal:{},__private__:{}};A.__private__.PubSub=VR;var p="1.3",f=A.__private__.getPdfVersion=function(){return p};A.__private__.setPdfVersion=function(e){p=e};var g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};A.__private__.getPageFormats=function(){return g};var m=A.__private__.getPageFormat=function(e){return g[e]};i=i||"a4";var v={COMPAT:"compat",ADVANCED:"advanced"},y=v.COMPAT;function b(){this.saveGraphicsState(),J(new Oe(Ae,0,0,-Ae,0,In()*Ae).toString()+" cm"),this.setFontSize(this.getFontSize()/Ae),c="n",y=v.ADVANCED}function _(){this.restoreGraphicsState(),c="S",y=v.COMPAT}var w=A.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};A.advancedAPI=function(e){var t=y===v.COMPAT;return t&&b.call(this),"function"!=typeof e||(e(this),t&&_.call(this)),this},A.compatAPI=function(e){var t=y===v.ADVANCED;return t&&_.call(this),"function"!=typeof e||(e(this),t&&b.call(this)),this},A.isAdvancedAPI=function(){return y===v.ADVANCED};var C,S=function(e){if(y!==v.ADVANCED)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},E=A.roundToPrecision=A.__private__.roundToPrecision=function(e,n){var r=t||n;if(isNaN(e)||isNaN(r))throw new Error("Invalid argument passed to 
1jsPDF.roundToPrecision");return e.toFixed(r).replace(/0+$/,"")};C=A.hpf=A.__private__.hpf="number"==typeof l?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return E(e,l)}:"smart"===l?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return E(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return E(e,16)};var I=A.f2=A.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return E(e,2)},x=A.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return E(e,3)},T=A.scale=A.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return y===v.COMPAT?e*Ae:y===v.ADVANCED?e:void 0},B=function(e){return y===v.COMPAT?In()-e:y===v.ADVANCED?e:void 0},k=function(e){return T(B(e))};A.__private__.setPrecision=A.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var P,O="00000000000000000000000000000000",F=A.__private__.getFileId=function(){return O},L=A.__private__.setFileId=function(e){return O=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():O.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==u&&(Lt=new QR(u.userPermissions,u.userPassword,u.ownerPassword,O)),O};A.setFileId=function(e){return L(e),this},A.getFileId=function(){return F()};var M=A.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),i=Math.abs(t%60),o=[n,j(r),"'",j(i),"'"].join("");return["D:",e.getFullYear(),j(e.getMonth()+1),j(e.getDate()),j(e.getHours()),j(e.getMinutes()),j(e.getSeconds()),o].join("")},D=A.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),s=parseInt(e.substr(14,2),10);return new Date(t,n,r,i,o,s,0)},N=A.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=M(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return P=t},R=A.__private__.getCreationDate=function(e){var t=P;return"jsDate"===e&&(t=D(P)),t};A.setCreationDate=function(e){return N(e),this},A.getCreationDate=function(e){return R(e)};var U,j=A.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},Q=A.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},H=0,V=[],q=[],K=0,G=[],z=[],W=!1,$=q,Y=function(){H=0,K=0,q=[],V=[],G=[],je=Ne(),Qe=Ne()};A.__private__.setCustomOutputDestination=function(e){W=!0,$=e};var X=function(e){W||($=e)};A.__private__.resetCustomOutputDestination=function(){W=!1,$=q};var J=A.__private__.out=function(e){return e=e.toString(),K+=e.length+1,$.push(e),$},Z=A.__private__.write=function(e){return J(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},ee=A.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},te=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];A.__private__.getStandardFonts=function(){return te};var ne=e.fontSize||16;A.__private__.setFontSize=A.setFontSize=function(e){return ne=y===v.ADVANCED?e/Ae:e,this};var re,ie=A.__private__.getFontSize=A.getFontSize=function(){return y===v.COMPAT?ne:ne*Ae},oe=e.R2L||!1;A.__private__.setR2L=A.setR2L=function(e){return oe=e,this},A.__private__.getR2L=A.getR2L=function(){return oe};var se,ae=A.__private__.setZoomMode=function(e){if(/^\d*\.?\d*%$/.test(e))re=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');re=e}else re=parseInt(e,10)};A.__private__.getZoomMode=function(){return re};var le,ce=A.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');se=e};A.__private__.getPageMode=function(){return se};var ue=A.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');le=e};A.__private__.getLayoutMode=function(){return le},A.__private__.setDisplayMode=A.setDisplayMode=function(e,t,n){return ae(e),ue(t),ce(n),this};var he={title:"",subject:"",author:"",keywords:"",creator:""};A.__private__.getDocumentProperty=function(e){if(-1===Object.keys(he).indexOf(e))throw new Error("Invalid argument passed to 
1jsPDF.getDocumentProperty");return he[e]},A.__private__.getDocumentProperties=function(){return he},A.__private__.setDocumentProperties=A.setProperties=A.setDocumentProperties=function(e){for(var t in he)he.hasOwnProperty(t)&&e[t]&&(he[t]=e[t]);return this},A.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(he).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return he[e]=t};var de,Ae,pe,fe,ge,me={},ve={},ye=[],be={},_e={},we={},Ce={},Se=null,Ee=0,Ie=[],xe=new VR(A),Te=e.hotfixes||[],Be={},ke={},Pe=[],Oe=function e(t,n,r,i,o,s){if(!(this instanceof e))return new e(t,n,r,i,o,s);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(s)&&(s=0),this._matrix=[t,n,r,i,o,s]};Object.defineProperty(Oe.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Oe.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Oe.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Oe.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Oe.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Oe.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Oe.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Oe.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Oe.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Oe.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Oe.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Oe.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Oe.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Oe.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Oe.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Oe.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Oe.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(C).join(e)},Oe.prototype.multiply=function(e){return new Oe(e.sx*this.sx+e.shy*this.shx,e.sx*this.shy+e.shy*this.sy,e.shx*this.sx+e.sy*this.shx,e.shx*this.shy+e.sy*this.sy,e.tx*this.sx+e.ty*this.shx+this.tx,e.tx*this.shy+e.ty*this.sy+this.ty)},Oe.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,s=Math.sqrt(e*e+t*t),a=(e/=s)*n+(t/=s)*r;n-=e*a,r-=t*a;var l=Math.sqrt(n*n+r*r);return a/=l,e*(r/=l)<t*(n/=l)&&(e=-e,t=-t,a=-a,s=-s),{scale:new Oe(s,0,0,l,0,0),translate:new Oe(1,0,0,1,i,o),rotate:new Oe(e,t,-t,e,0,0),skew:new Oe(1,0,a,1,0,0)}},Oe.prototype.toString=function(e){return this.join(" ")},Oe.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,s=1/(e*r-t*n),a=r*s,l=-t*s,c=-n*s,u=e*s;return new Oe(a,l,c,u,-a*i-c*o,-l*i-u*o)},Oe.prototype.applyToPoint=function(e){return new vn(e.x*this.sx+e.y*this.shx+this.tx,e.x*this.shy+e.y*this.sy+this.ty)},Oe.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new vn(e.x+e.w,e.y+e.h));return new yn(t.x,t.y,n.x-t.x,n.y-t.y)},Oe.prototype.clone=function(){return new Oe(this.sx,this.shy,this.shx,this.sy,this.tx,this.ty)},A.Matrix=Oe;var Fe=A.matrixMult=function(e,t){return t.multiply(e)},Le=new Oe(1,0,0,1,0,0);A.unitMatrix=A.identityMatrix=Le;var Me=function(e,t){if(!_e[e]){var n=(t instanceof GR?"Sh":"P")+(Object.keys(be).length+1).toString(10);t.id=n,_e[e]=n,be[n]=t,xe.publish("addPattern",t)}};A.ShadingPattern=GR,A.TilingPattern=zR,A.addShadingPattern=function(e,t){return S("addShadingPattern()"),Me(e,t),this}
vendor: 4,950 bytes, line 1
1,A.beginTilingPattern=function(e){S("beginTilingPattern()"),_n(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},A.endTilingPattern=function(e,t){S("endTilingPattern()"),t.stream=z[U].join("\n"),Me(e,t),xe.publish("endTilingPattern",t),Pe.pop().restore()};var De=A.__private__.newObject=function(){var e=Ne();return Re(e,!0),e},Ne=A.__private__.newObjectDeferred=function(){return H++,V[H]=function(){return K},H},Re=function(e,t){return t="boolean"==typeof t&&t,V[e]=K,t&&J(e+" 0 obj"),e},Ue=A.__private__.newAdditionalObject=function(){var e={objId:Ne(),content:""};return G.push(e),e},je=Ne(),Qe=Ne(),He=A.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var n=parseFloat(t[0]);t=[n,n,n,"r"]}for(var r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(t[i])).toString(16)).slice(-2);return r},Ve=A.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var n=e.ch1,r=e.ch2,i=e.ch3,o=e.ch4,s="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var a=new SR(n);if(a.ok)n=a.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var l=parseInt(n.substr(1),16);n=l>>16&255,r=l>>8&255,i=255&l}if(void 0===r||void 0===o&&n===r&&r===i)if("string"==typeof n)t=n+" "+s[0];else switch(e.precision){case 2:t=I(n/255)+" "+s[0];break;case 3:default:t=x(n/255)+" "+s[0]}else if(void 0===o||"object"===BN(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",s[1]].join(" ");if("string"==typeof n)t=[n,r,i,s[1]].join(" ");else switch(e.precision){case 2:t=[I(n/255),I(r/255),I(i/255),s[1]].join(" ");break;default:case 3:t=[x(n/255),x(r/255),x(i/255),s[1]].join(" ")}}else if("string"==typeof n)t=[n,r,i,o,s[2]].join(" ");else switch(e.precision){case 2:t=[I(n),I(r),I(i),I(o),s[2]].join(" ");break;case 3:default:t=[x(n),x(r),x(i),x(o),s[2]].join(" ")}return t},qe=A.__private__.getFilters=function(){return s},Ke=A.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||qe(),r=e.alreadyAppliedFilters||[],i=e.addLength1||!1,o=t.length,s=e.objectId,a=function(e){return e};if(null!==u&&void 0===s)throw new Error("ObjectId must be passed to putStream for file encryption");null!==u&&(a=Lt.encryptor(s,0));var l={};!0===n&&(n=["FlateEncode"]);var c=e.additionalKeyValues||[],h=(l=void 0!==WR.API.processDataByFilters?WR.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==l.data.length&&(c.push({key:"Length",value:l.data.length}),!0===i&&c.push({key:"Length1",value:o})),0!=h.length)if(h.split("/").length-1==1)c.push({key:"Filter",value:h});else{c.push({key:"Filter",value:"["+h+"]"});for(var d=0;d<c.length;d+=1)if("DecodeParms"===c[d].key){for(var A=[],p=0;p<l.reverseChain.split("/").length-1;p+=1)A.push("null");A.push(c[d].value),c[d].value="["+A.join(" ")+"]"}}J("<<");for(var f=0;f<c.length;f++)J("/"+c[f].key+" "+c[f].value);J(">>"),0!==l.data.length&&(J("stream"),J(a(l.data)),J("endstream"))},Ge=A.__private__.putPage=function(e){var t=e.number,n=e.data,r=e.objId,i=e.contentsObjId;Re(r,!0),J("<</Type /Page"),J("/Parent "+e.rootDictionaryObjId+" 0 R"),J("/Resources "+e.resourceDictionaryObjId+" 0 R"),J("/MediaBox ["+parseFloat(C(e.mediaBox.bottomLeftX))+" "+parseFloat(C(e.mediaBox.bottomLeftY))+" "+C(e.mediaBox.topRightX)+" "+C(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&J("/CropBox ["+C(e.cropBox.bottomLeftX)+" "+C(e.cropBox.bottomLeftY)+" "+C(e.cropBox.topRightX)+" "+C(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&J("/BleedBox ["+C(e.bleedBox.bottomLeftX)+" "+C(e.bleedBox.bottomLeftY)+" "+C(e.bleedBox.topRightX)+" "+C(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&J("/TrimBox ["+C(e.trimBox.bottomLeftX)+" "+C(e.trimBox.bottomLeftY)+" "+C(e.trimBox.topRightX)+" "+C(e.trimBox.topRightY)+"]"),null!==e.artBox&&J("/ArtBox ["+C(e.artBox.bottomLeftX)+" "+C(e.artBox.bottomLeftY)+" "+C(e.artBox.topRightX)+" "+C(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&J("/UserUnit "+e.userUnit),xe.publish("putPage",{objId:r,pageContext:Ie[t],pageNumber:t,page:n}),J("/Contents "+i+" 0 R"),J(">>"),J("endobj");var o=n.join("\n");return y===v.ADVANCED&&(o+="\nQ"),Re(i,!0),Ke({data:o,filters:qe(),objectId:i}),J("endobj"),r},ze=A.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Ee;e++)Ie[e].objId=Ne(),Ie[e].contentsObjId=Ne();for(e=1;e<=Ee;e++)n.push(Ge({number:e,data:z[e],objId:Ie[e].objId,contentsObjId:Ie[e].contentsObjId,mediaBox:Ie[e].mediaBox,cropBox:Ie[e].cropBox,bleedBox:Ie[e].bleedBox,trimBox:Ie[e].trimBox,artBox:Ie[e].artBox,userUnit:
vendor: 4,462 bytes, line 1
1Ie[e].userUnit,rootDictionaryObjId:je,resourceDictionaryObjId:Qe}));Re(je,!0),J("<</Type /Pages");var r="/Kids [";for(t=0;t<Ee;t++)r+=n[t]+" 0 R ";J(r+"]"),J("/Count "+Ee),J(">>"),J("endobj"),xe.publish("postPutPages")},We=function(e){xe.publish("putFont",{font:e,out:J,newObject:De,putStream:Ke}),!0!==e.isAlreadyPutted&&(e.objectNumber=De(),J("<<"),J("/Type /Font"),J("/BaseFont /"+HR(e.postScriptName)),J("/Subtype /Type1"),"string"==typeof e.encoding&&J("/Encoding /"+e.encoding),J("/FirstChar 32"),J("/LastChar 255"),J(">>"),J("endobj"))},$e=function(){for(var e in me)me.hasOwnProperty(e)&&(!1===h||!0===h&&d.hasOwnProperty(e))&&We(me[e])},Ye=function(e){e.objectNumber=De();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[C(e.x),C(e.y),C(e.x+e.width),C(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");Ke({data:n,additionalKeyValues:t,objectId:e.objectNumber}),J("endobj")},Xe=function(){for(var e in Be)Be.hasOwnProperty(e)&&Ye(Be[e])},Je=function(e,t){var n,r=[],i=1/(t-1);for(n=0;n<1;n+=i)r.push(n);r.push(1),0!=e[0].offset&&e.unshift({offset:0,color:e[0].color}),1!=e[e.length-1].offset&&e.push({offset:1,color:e[e.length-1].color});for(var o="",s=0,a=0;a<r.length;a++){for(n=r[a];n>e[s+1].offset;)s++;var l=e[s].offset,c=(n-l)/(e[s+1].offset-l),u=e[s].color,h=e[s+1].color;o+=Q(Math.round((1-c)*u[0]+c*h[0]).toString(16))+Q(Math.round((1-c)*u[1]+c*h[1]).toString(16))+Q(Math.round((1-c)*u[2]+c*h[2]).toString(16))}return o.trim()},Ze=function(e,t){t||(t=21);var n=De(),r=Je(e.colors,t),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+t+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ke({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),J("endobj"),e.objectNumber=De(),J("<< /ShadingType "+e.type),J("/ColorSpace /DeviceRGB");var o="/Coords ["+C(parseFloat(e.coords[0]))+" "+C(parseFloat(e.coords[1]))+" ";o+=2===e.type?C(parseFloat(e.coords[2]))+" "+C(parseFloat(e.coords[3])):C(parseFloat(e.coords[2]))+" "+C(parseFloat(e.coords[3]))+" "+C(parseFloat(e.coords[4]))+" "+C(parseFloat(e.coords[5])),J(o+="]"),e.matrix&&J("/Matrix ["+e.matrix.toString()+"]"),J("/Function "+n+" 0 R"),J("/Extend [true true]"),J(">>"),J("endobj")},et=function(e,t){var n=Ne(),r=De();t.push({resourcesOid:n,objectOid:r}),e.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+e.boundingBox.map(C).join(" ")+"]"}),i.push({key:"XStep",value:C(e.xStep)}),i.push({key:"YStep",value:C(e.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),e.matrix&&i.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),Ke({data:e.stream,additionalKeyValues:i,objectId:e.objectNumber}),J("endobj")},tt=function(e){var t;for(t in be)be.hasOwnProperty(t)&&(be[t]instanceof GR?Ze(be[t]):be[t]instanceof zR&&et(be[t],e))},nt=function(e){for(var t in e.objectNumber=De(),J("<<"),e)switch(t){case"opacity":J("/ca "+I(e[t]));break;case"stroke-opacity":J("/CA "+I(e[t]))}J(">>"),J("endobj")},rt=function(){var e;for(e in we)we.hasOwnProperty(e)&&nt(we[e])},it=function(){for(var e in J("/XObject <<"),Be)Be.hasOwnProperty(e)&&Be[e].objectNumber>=0&&J("/"+e+" "+Be[e].objectNumber+" 0 R");xe.publish("putXobjectDict"),J(">>")},ot=function(){Lt.oid=De(),J("<<"),J("/Filter /Standard"),J("/V "+Lt.v),J("/R "+Lt.r),J("/U <"+Lt.toHexString(Lt.U)+">"),J("/O <"+Lt.toHexString(Lt.O)+">"),J("/P "+Lt.P),J(">>"),J("endobj")},st=function(){for(var e in J("/Font <<"),me)me.hasOwnProperty(e)&&(!1===h||!0===h&&d.hasOwnProperty(e))&&J("/"+e+" "+me[e].objectNumber+" 0 R");J(">>")},at=function(){if(Object.keys(be).length>0){for(var e in J("/Shading <<"),be)be.hasOwnProperty(e)&&be[e]instanceof GR&&be[e].objectNumber>=0&&J("/"+e+" "+be[e].objectNumber+" 0 R");xe.publish("putShadingPatternDict"),J(">>")}},lt=function(e){if(Object.keys(be).length>0){for(var t in J("/Pattern <<"),be)be.hasOwnProperty(t)&&be[t]instanceof A.TilingPattern&&be[t].objectNumber>=0&&be[t].objectNumber<e&&J("/"+t+" "+be[t].objectNumber+" 0 R");xe.publish("putTilingPatternDict"),J(">>")}},ct=function(){if(Object.keys(we).length>0){var e;
vendor: 16,291 bytes, line 1
1for(e in J("/ExtGState <<"),we)we.hasOwnProperty(e)&&we[e].objectNumber>=0&&J("/"+e+" "+we[e].objectNumber+" 0 R");xe.publish("putGStateDict"),J(">>")}},ut=function(e){Re(e.resourcesOid,!0),J("<<"),J("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),st(),at(),lt(e.objectOid),ct(),it(),J(">>"),J("endobj")},ht=function(){var e=[];$e(),rt(),Xe(),tt(e),xe.publish("putResources"),e.forEach(ut),ut({resourcesOid:Qe,objectOid:Number.MAX_SAFE_INTEGER}),xe.publish("postPutResources")},dt=function(){xe.publish("putAdditionalObjects");for(var e=0;e<G.length;e++){var t=G[e];Re(t.objId,!0),J(t.content),J("endobj")}xe.publish("postPutAdditionalObjects")},At=function(e){ve[e.fontName]=ve[e.fontName]||{},ve[e.fontName][e.fontStyle]=e.id},pt=function(e,t,n,r,i){var o={id:"F"+(Object.keys(me).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return xe.publish("addFont",{font:o,instance:this}),me[o.id]=o,At(o),o.id},ft=function(e){for(var t=0,n=te.length;t<n;t++){var r=pt.call(this,e[t][0],e[t][1],e[t][2],te[t][3],!0);!1===h&&(d[r]=!0);var i=e[t][0].split("-");At({id:r,fontName:i[0],fontStyle:i[1]||""})}xe.publish("addFonts",{fonts:me,dictionary:ve})},gt=function(e){return e.foo=function(){try{return e.apply(this,arguments)}catch(e){var t=e.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var n="Error in function "+t.split("\n")[0].split("<")[0]+": "+e.message;if(!fR.console)throw new Error(n);fR.console.error(n,e),fR.alert&&alert(n)}},e.foo.bar=e,e.foo},mt=function(e,t){var n,r,i,o,s,a,l,c,u;if(i=(t=t||{}).sourceEncoding||"Unicode",s=t.outputEncoding,(t.autoencode||s)&&me[de].metadata&&me[de].metadata[i]&&me[de].metadata[i].encoding&&(o=me[de].metadata[i].encoding,!s&&me[de].encoding&&(s=me[de].encoding),!s&&o.codePages&&(s=o.codePages[0]),"string"==typeof s&&(s=o[s]),s)){for(l=!1,a=[],n=0,r=e.length;n<r;n++)(c=s[e.charCodeAt(n)])?a.push(String.fromCharCode(c)):a.push(e[n]),a[n].charCodeAt(0)>>8&&(l=!0);e=a.join("")}for(n=e.length;void 0===l&&0!==n;)e.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return e;for(a=t.noBOM?[]:[254,255],n=0,r=e.length;n<r;n++){if((u=(c=e.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(u),a.push(c-(u<<8))}return String.fromCharCode.apply(void 0,a)},vt=A.__private__.pdfEscape=A.pdfEscape=function(e,t){return mt(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},yt=A.__private__.beginPage=function(e){z[++Ee]=[],Ie[Ee]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},wt(Ee),X(z[U])},bt=function(e,t){var r,o,s;switch(n=t||n,"string"==typeof e&&(r=m(e.toLowerCase()),Array.isArray(r)&&(o=r[0],s=r[1])),Array.isArray(e)&&(o=e[0]*Ae,s=e[1]*Ae),isNaN(o)&&(o=i[0],s=i[1]),(o>14400||s>14400)&&(mR.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),o=Math.min(14400,o),s=Math.min(14400,s)),i=[o,s],n.substr(0,1)){case"l":s>o&&(i=[s,o]);break;case"p":o>s&&(i=[s,o])}yt(i),en(Zt),J(cn),0!==fn&&J(fn+" J"),0!==gn&&J(gn+" j"),xe.publish("addPage",{pageNumber:Ee})},_t=function(e){e>0&&e<=Ee&&(z.splice(e,1),Ie.splice(e,1),Ee--,U>Ee&&(U=Ee),this.setPage(U))},wt=function(e){e>0&&e<=Ee&&(U=e)},Ct=A.__private__.getNumberOfPages=A.getNumberOfPages=function(){return z.length-1},St=function(e,t,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:me[de].fontStyle,r=(e=void 0!==e?e:me[de].fontName).toLowerCase(),void 0!==ve[r]&&void 0!==ve[r][t]?i=ve[r][t]:void 0!==ve[e]&&void 0!==ve[e][t]?i=ve[e][t]:!1===n.disableWarning&&mR.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=ve.times[t])&&(i=ve.times.normal),i},Et=A.__private__.putInfo=function(){var e=De(),t=function(e){return e};for(var n in null!==u&&(t=Lt.encryptor(e,0)),J("<<"),J("/Producer ("+vt(t("jsPDF "+WR.version))+")"),he)he.hasOwnProperty(n)&&he[n]&&J("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+vt(t(he[n]))+")");J("/CreationDate ("+vt(t(P))+")"),J(">>"),J("endobj")},It=A.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||je;switch(De(),J("<<"),J("/Type /Catalog"),J("/Pages "+t+" 0 R"),re||(re="fullwidth"),re){case"fullwidth":J("/OpenAction [3 0 R /FitH null]");break;case"fullheight":J("/OpenAction [3 0 R /FitV null]");break;case"fullpage":J("/OpenAction [3 0 R /Fit]");break;case"original":J("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+re;"%"===n.substr(n.length-1)&&(re=parseInt(re)/100),"number"==typeof re&&J("/OpenAction [3 0 R /XYZ null null "+I(re)+"]")}switch(le||(le="continuous"),le){case"continuous":J("/PageLayout /OneColumn");break;case"single":J("/PageLayout /SinglePage");break;case"two":case"twoleft":J("/PageLayout /TwoColumnLeft");break;case"tworight":J("/PageLayout /TwoColumnRight")}se&&J("/PageMode /"+se),xe.publish("putCatalog"),J(">>"),J("endobj")},xt=A.__private__.putTrailer=function(){J("trailer"),J("<<"),J("/Size "+(H+1)),J("/Root "+H+" 0 R"),J("/Info "+(H-1)+" 0 R"),null!==u&&J("/Encrypt "+Lt.oid+" 0 R"),J("/ID [ <"+O+"> <"+O+"> ]"),J(">>")},Tt=A.__private__.putHeader=function(){J("%PDF-"+p),J("%\xba\xdf\xac\xe0")},Bt=A.__private__.putXRef=function(){var e="0000000000";J("xref"),J("0 "+(H+1)),J("0000000000 65535 f ");for(var t=1;t<=H;t++)J("function"==typeof V[t]?(e+V[t]()).slice(-10)+" 00000 n ":void 0!==V[t]?(e+V[t]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},kt=A.__private__.buildDocument=function(){Y(),X(q),xe.publish("buildDocument"),Tt(),ze(),dt(),ht(),null!==u&&ot(),Et(),It();var e=K;return Bt(),xt(),J("startxref"),J(""+e),J("%%EOF"),X(z[U]),q.join("\n")},Pt=A.__private__.getBlob=function(e){return new Blob([ee(e)],{type:"application/pdf"})},Ot=A.output=A.__private__.output=gt(function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return kt();case"save":A.save(t.filename);break;case"arraybuffer":return ee(kt());case"blob":return Pt(kt());case"bloburi":case"bloburl":if(void 0!==fR.URL&&"function"==typeof fR.URL.createObjectURL)return fR.URL&&fR.URL.createObjectURL(Pt(kt()))||void 0;mR.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=kt();try{n=wR(r)}catch(e){n=wR(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+t.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(fR)){var i='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+(t.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",o=fR.open();return null!==o&&o.document.write(i),o}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(fR)){var s='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',a=fR.open();if(null!==a){a.document.write(s);var l=this;a.document.documentElement.querySelector("#pdfViewer").onload=function(){a.document.title=t.filename,a.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(l.output("bloburl"))}}return a}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(fR))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var c='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',u=fR.open();if(null!==u&&(u.document.write(c),u.document.title=t.filename),u||"undefined"==typeof safari)return u;break;case"datauri":case"dataurl":return fR.document.location.href=this.output("datauristring",t);default:return null}}),Ft=function(e){return!0===Array.isArray(Te)&&Te.indexOf(e)>-1};switch(r){case"pt":Ae=1;break;case"mm":Ae=72/25.4;break;case"cm":Ae=72/2.54;break;case"in":Ae=72;break;case"px":Ae=1==Ft("px_scaling")?.75:96/72;break;case"pc":case"em":Ae=12;break;case"ex":Ae=6;break;default:throw new Error("Invalid unit: "+r)}var Lt=null;N(),L();var Mt=function(e){return null!==u?Lt.encryptor(e,0):function(e){return e}},Dt=A.__private__.getPageInfo=A.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ie[e].objId,pageNumber:e,pageContext:Ie[e]}},Nt=A.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in Ie)if(Ie[t].objId===e)break;return Dt(t)},Rt=A.__private__.getCurrentPageInfo=A.getCurrentPageInfo=function(){return{objId:Ie[U].objId,pageNumber:U,pageContext:Ie[U]}};A.addPage=function(){return bt.apply(this,arguments),this},A.setPage=function(){return wt.apply(this,arguments),X.call(this,z[U]),this},A.insertPage=function(e){return this.addPage(),this.movePage(U,e),this},A.movePage=function(e,t){var n,r;if(e>t){n=z[e],r=Ie[e];for(var i=e;i>t;i--)z[i]=z[i-1],Ie[i]=Ie[i-1];z[t]=n,Ie[t]=r,this.setPage(t)}else if(e<t){n=z[e],r=Ie[e];for(var o=e;o<t;o++)z[o]=z[o+1],Ie[o]=Ie[o+1];z[t]=n,Ie[t]=r,this.setPage(t)}return this},A.deletePage=function(){return _t.apply(this,arguments),this},A.__private__.text=A.text=function(e,t,n,r,i){var o,s,a,l,c,u,h,A,p=(r=r||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof n||Array.isArray(n))){var f=n;n=t,t=e,e=f}if(arguments[3]instanceof Oe==0?(a=arguments[4],l=arguments[5],"object"===BN(h=arguments[3])&&null!==h||("string"==typeof a&&(l=a,a=null),"string"==typeof h&&(l=h,h=null),"number"==typeof h&&(a=h,h=null),r={flags:h,angle:a,align:l})):(S("The transform parameter of text() with a Matrix value"),A=i),isNaN(t)||isNaN(n)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return p;var g="",m=!1,b="number"==typeof r.lineHeightFactor?r.lineHeightFactor:Jt,_=p.internal.scaleFactor;function w(e){return e=e.split("\t").join(Array(r.TabLen||9).join(" ")),vt(e,h)}function E(e){for(var t,n=e.concat(),r=[],i=n.length;i--;)"string"==typeof(t=n.shift())?r.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function I(e,t){var n;if("string"==typeof e)n=t(e)[0];else if(Array.isArray(e)){for(var r,i,o=e.concat(),s=[],a=o.length;a--;)"string"==typeof(r=o.shift())?s.push(t(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(i=t(r[0],r[1],r[2]),s.push([i[0],i[1],i[2]]));n=s}return n}var x=!1,B=!0;if("string"==typeof e)x=!0;else if(Array.isArray(e)){var k=e.concat();s=[];for(var P,O=k.length;O--;)("string"!=typeof(P=k.shift())||Array.isArray(P)&&"string"!=typeof P[0])&&(B=!1);x=B}if(!1===x)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var F=ne/p.internal.scaleFactor,L=F*(Jt-1);switch(r.baseline){case"bottom":n-=L;break;case"top":n+=F-L;break;case"hanging":n+=F-2*L;break;case"middle":n+=F/2-L}if((u=r.maxWidth||0)>0&&("string"==typeof e?e=p.splitTextToSize(e,u):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce(function(e,t){return e.concat(p.splitTextToSize(t,u))},[]))),xe.publish("preProcessText",o={text:e,x:t,y:n,options:r,mutex:{pdfEscape:vt,activeFontKey:de,fonts:me,activeFontSize:ne}}),e=o.text,a=(r=o.options).angle,A instanceof Oe==0&&a&&"number"==typeof a){a*=Math.PI/180,0===r.rotationDirection&&(a=-a),y===v.ADVANCED&&(a=-a);var M=Math.cos(a),D=Math.sin(a);A=new Oe(M,D,-D,M,0,0)}else a&&a instanceof Oe&&(A=a);y!==v.ADVANCED||A||(A=Le),void 0!==(c=r.charSpace||An)&&(g+=C(T(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0));var N=-1,R=void 0!==r.renderingMode?r.renderingMode:r.stroke,U=p.internal.getCurrentPageInfo().pageContext;switch(R){case 0:case!1:case"fill":N=0;break;case 1:case!0:case"stroke":N=1;break;case 2:case"fillThenStroke":N=2;break;case 3:case"invisible":N=3;break;case 4:case"fillAndAddForClipping":N=4;break;case 5:case"strokeAndAddPathForClipping":N=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":N=6;break;case 7:case"addToPathForClipping":N=7}var j=void 0!==U.usedRenderingMode?U.usedRenderingMode:-1;-1!==N?g+=N+" Tr\n":-1!==j&&(g+="0 Tr\n"),-1!==N&&(U.usedRenderingMode=N),l=r.align||"left";var Q,H=ne*b,V=p.internal.pageSize.getWidth(),q=me[de];c=r.charSpace||An,u=r.maxWidth||0,h=Object.assign({autoencode:!0,noBOM:!0},r.flags);var K=[];if("[object Array]"===Object.prototype.toString.call(e)){var G;s=E(e),"left"!==l&&(Q=s.map(function(e){return p.getStringUnitWidth(e,{font:q,charSpace:c,fontSize:ne,doKerning:!1})*ne/_}));var z,W=0;if("right"===l){t-=Q[0],e=[],O=s.length;for(var $=0;$<O;$++)0===$?(z=on(t),G=sn(n)):(z=T(W-Q[$]),G=-H),e.push([s[$],z,G]),W=Q[$]}else if("center"===l){t-=Q[0]/2,e=[],O=s.length;for(var Y=0;Y<O;Y++)0===Y?(z=on(t),G=sn(n)):(z=T((W-Q[Y])/2),G=-H),e.push([s[Y],z,G]),W=Q[Y]}else if("left"===l){e=[],O=s.length;for(var X=0;X<O;X++)e.push(s[X])}else{if("justify"!==l)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');e=[],O=s.length,u=0!==u?u:V;for(var Z=0;Z<O;Z++)G=0===Z?sn(n):-H,z=0===Z?on(t):0,K.push(Z<O-1?C(T((u-Q[Z])/(s[Z].split(" ").length-1))):0),e.push([s[Z],z,G])}}var ee="boolean"==typeof r.R2L?r.R2L:oe;!0===ee&&(e=I(e,function(e,t,n){return[e.split("").reverse().join(""),t,n]})),xe.publish("postProcessText",o={text:e,x:t,y:n,options:r,mutex:{pdfEscape:vt,activeFontKey:de,fonts:me,activeFontSize:ne}}),e=o.text,m=o.mutex.isHex||!1;var te=me[de].encoding;"WinAnsiEncoding"!==te&&"StandardEncoding"!==te||(e=I(e,function(e,t,n){return[w(e),t,n]})),s=E(e),e=[];for(var re,ie,se,ae=0,le=1,ce=Array.isArray(s[0])?le:ae,ue="",he=function(e,t,n){var i="";return n instanceof Oe?(n="number"==typeof r.angle?Fe(n,new Oe(1,0,0,1,e,t)):Fe(new Oe(1,0,0,1,e,t),n),y===v.ADVANCED&&(n=Fe(new Oe(1,0,0,-1,0,0),n)),i=n.join(" ")+" Tm\n"):i=C(e)+" "+C(t)+" Td\n",i},Ae=0;Ae<s.length;Ae++){switch(ue="",ce){case le:se=(m?"<":"(")+s[Ae][0]+(m?">":")"),re=parseFloat(s[Ae][1]),ie=parseFloat(s[Ae][2]);break;case ae:se=(m?"<":"(")+s[Ae]+(m?">":")"),re=on(t),ie=sn(n)}void 0!==K&&void 0!==K[Ae]&&(ue=K[Ae]+" Tw\n"),0===Ae?e.push(ue+he(re,ie,A)+se):ce===ae?e.push(ue+se):ce===le&&e.push(ue+he(re,ie,A)+se)}e=e.join(ce===ae?" Tj\nT* ":" Tj\n"),e+=" Tj\n";var pe="BT\n/";return pe+=de+" "+ne+" Tf\n",pe+=C(ne*b)+" TL\n",pe+=hn+"\n",pe+=g,pe+=e,J(pe+="ET"),d[de]=!0,p};var Ut=A.__private__.clip=A.clip=function(e){return J("evenodd"===e?"W*":"W"),this};A.clipEvenOdd=function(){return Ut("evenodd")},A.__private__.discardPath=A.discardPath=function(){return J("n"),this};var jt=A.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};A.__private__.setDefaultPathOperation=A.setDefaultPathOperation=function(e){return jt(e)&&(c=e),this};var Qt=A.__private__.getStyle=A.getStyle=function(e){var t=c;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},Ht=A.close=function(){return J("h"),this};A.stroke=function(){return J("S"),this},A.fill=function(e){return Vt("f",e),this},A.fillEvenOdd=function(e){return Vt("f*",e),this},A.fillStroke=function(e){return Vt("B",e),this},A.fillStrokeEvenOdd=function(e){return Vt("B*",e),this};var Vt=function(e,t){"object"===BN(t)?Gt(t,e):J(e)},qt=function(e){null===e||y===v.ADVANCED&&void 0===e||(e=Qt(e),J(e))};function Kt(e,t,n,r,i){var o=new zR(t||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix
vendor: 4,159 bytes, line 1
1);o.stream=this.stream;var s=e+"$$"+this.cloneIndex+++"$$";return Me(s,o),o}var Gt=function(e,t){var n=_e[e.key],r=be[n];if(r instanceof GR)J("q"),J(zt(t)),r.gState&&A.setGState(r.gState),J(e.matrix.toString()+" cm"),J("/"+n+" sh"),J("Q");else if(r instanceof zR){var i=new Oe(1,0,0,-1,0,In());e.matrix&&(i=i.multiply(e.matrix||Le),n=Kt.call(r,e.key,e.boundingBox,e.xStep,e.yStep,i).id),J("q"),J("/Pattern cs"),J("/"+n+" scn"),r.gState&&A.setGState(r.gState),J(t),J("Q")}},zt=function(e){switch(e){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Wt=A.moveTo=function(e,t){return J(C(T(e))+" "+C(k(t))+" m"),this},$t=A.lineTo=function(e,t){return J(C(T(e))+" "+C(k(t))+" l"),this},Yt=A.curveTo=function(e,t,n,r,i,o){return J([C(T(e)),C(k(t)),C(T(n)),C(k(r)),C(T(i)),C(k(o)),"c"].join(" ")),this};A.__private__.line=A.line=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!jt(i))throw new Error("Invalid arguments passed to jsPDF.line");return y===v.COMPAT?this.lines([[n-e,r-t]],e,t,[1,1],i||"S"):this.lines([[n-e,r-t]],e,t,[1,1]).stroke()},A.__private__.lines=A.lines=function(e,t,n,r,i,o){var s,a,l,c,u,h,d,A;if("number"==typeof e&&(A=n,n=t,t=e,e=A),r=r||[1,1],o=o||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!jt(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(Wt(t,n),s=r[0],a=r[1],c=e.length,h=t,d=n,l=0;l<c;l++)2===(u=e[l]).length?$t(h=u[0]*s+h,d=u[1]*a+d):Yt(u[0]*s+h,u[1]*a+d,u[2]*s+h,u[3]*a+d,h=u[4]*s+h,d=u[5]*a+d);return o&&Ht(),qt(i),this},A.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.c;switch(n.op){case"m":Wt(r[0],r[1]);break;case"l":$t(r[0],r[1]);break;case"c":Yt.apply(this,r);break;case"h":Ht()}}return this},A.__private__.rect=A.rect=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!jt(i))throw new Error("Invalid arguments passed to jsPDF.rect");return y===v.COMPAT&&(r=-r),J([C(T(e)),C(k(t)),C(T(n)),C(T(r)),"re"].join(" ")),qt(i),this},A.__private__.triangle=A.triangle=function(e,t,n,r,i,o,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!jt(s))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-e,r-t],[i-n,o-r],[e-i,t-o]],e,t,[1,1],s,!0),this},A.__private__.roundedRect=A.roundedRect=function(e,t,n,r,i,o,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!jt(s))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),o=Math.min(o,.5*r),this.lines([[n-2*i,0],[i*a,0,i,o-o*a,i,o],[0,r-2*o],[0,o*a,-i*a,o,-i,o],[2*i-n,0],[-i*a,0,-i,-o*a,-i,-o],[0,2*o-r],[0,-o*a,i*a,-o,i,-o]],e+i,t,[1,1],s,!0),this},A.__private__.ellipse=A.ellipse=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!jt(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,s=4/3*(Math.SQRT2-1)*r;return Wt(e+n,t),Yt(e+n,t-s,e+o,t-r,e,t-r),Yt(e-o,t-r,e-n,t-s,e-n,t),Yt(e-n,t+s,e-o,t+r,e,t+r),Yt(e+o,t+r,e+n,t+s,e+n,t),qt(i),this},A.__private__.circle=A.circle=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||!jt(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,n,n,r)},A.setFont=function(e,t,n){return n&&(t=w(t,n)),de=St(e,t,{disableWarning:!1}),this};var Xt=A.__private__.getFont=A.getFont=function(){return me[St.apply(A,arguments)]};A.__private__.getFontList=A.getFontList=function(){var e,t,n={};for(e in ve)if(ve.hasOwnProperty(e))for(t in n[e]=[],ve[e])ve[e].hasOwnProperty(t)&&n[e].push(t);return n},A.addFont=function(e,t,n,r,i){var o=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==o.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==o.indexOf(arguments[3])&&(n=w(n,r)),pt.call(this,e,t,n,i=i||"Identity-H")};var Jt,Zt=e.lineWidth||.200025,en=A.__private__.setLineWidth=A.setLineWidth=function(e){return J(C(T(e))+" w"),this};A.__private__.setLineDash=WR.API.setLineDash=WR.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to 
1jsPDF.setLineDash");return e=e.map(function(e){return C(T(e))}).join(" "),t=C(T(t)),J("["+e+"] "+t+" d"),this};var tn=A.__private__.getLineHeight=A.getLineHeight=function(){return ne*Jt};A.__private__.getLineHeight=A.getLineHeight=function(){return ne*Jt};var nn=A.__private__.setLineHeightFactor=A.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(Jt=e),this},rn=A.__private__.getLineHeightFactor=A.getLineHeightFactor=function(){return Jt};nn(e.lineHeight);var on=A.__private__.getHorizontalCoordinate=function(e){return T(e)},sn=A.__private__.getVerticalCoordinate=function(e){return y===v.ADVANCED?e:Ie[U].mediaBox.topRightY-Ie[U].mediaBox.bottomLeftY-T(e)},an=A.__private__.getHorizontalCoordinateString=A.getHorizontalCoordinateString=function(e){return C(on(e))},ln=A.__private__.getVerticalCoordinateString=A.getVerticalCoordinateString=function(e){return C(sn(e))},cn=e.strokeColor||"0 G";A.__private__.getStrokeColor=A.getDrawColor=function(){return He(cn)},A.__private__.setStrokeColor=A.setDrawColor=function(e,t,n,r){return cn=Ve({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),J(cn),this};var un=e.fillColor||"0 g";A.__private__.getFillColor=A.getFillColor=function(){return He(un)},A.__private__.setFillColor=A.setFillColor=function(e,t,n,r){return un=Ve({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),J(un),this};var hn=e.textColor||"0 g",dn=A.__private__.getTextColor=A.getTextColor=function(){return He(hn)};A.__private__.setTextColor=A.setTextColor=function(e,t,n,r){return hn=Ve({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var An=e.charSpace,pn=A.__private__.getCharSpace=A.getCharSpace=function(){return parseFloat(An||0)};A.__private__.setCharSpace=A.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return An=e,this};var fn=0;A.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},A.__private__.setLineCap=A.setLineCap=function(e){var t=A.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fn=t,J(t+" J"),this};var gn=0;A.__private__.setLineJoin=A.setLineJoin=function(e){var t=A.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return gn=t,J(t+" j"),this},A.__private__.setLineMiterLimit=A.__private__.setMiterLimit=A.setLineMiterLimit=A.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return J(C(T(e))+" M"),this},A.GState=qR,A.setGState=function(e){(e="string"==typeof e?we[Ce[e]]:mn(null,e)).equals(Se)||(J("/"+e.id+" gs"),Se=e)};var mn=function(e,t){if(!e||!Ce[e]){var n=!1;for(var r in we)if(we.hasOwnProperty(r)&&we[r].equals(t)){n=!0;break}if(n)t=we[r];else{var i="GS"+(Object.keys(we).length+1).toString(10);we[i]=t,t.id=i}return e&&(Ce[e]=t.id),xe.publish("addGState",t),t}};A.addGState=function(e,t){return mn(e,t),this},A.saveGraphicsState=function(){return J("q"),ye.push({key:de,size:ne,color:hn}),this},A.restoreGraphicsState=function(){J("Q");var e=ye.pop();return de=e.key,ne=e.size,hn=e.color,Se=null,this},A.setCurrentTransformationMatrix=function(e){return J(e.toString()+" cm"),this},A.comment=function(e){return J("#"+e),this};var vn=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(e){i=e.toString()}}),this},yn=function(e,t,n,r){vn.call(this,e,t),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}});var o=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o}
vendor: 4,809 bytes, line 1
1,set:function(e){isNaN(e)||(o=parseFloat(e))}}),this},bn=function(){this.page=Ee,this.currentPage=U,this.pages=z.slice(0),this.pagesContext=Ie.slice(0),this.x=pe,this.y=fe,this.matrix=ge,this.width=Sn(U),this.height=In(U),this.outputDestination=$,this.id="",this.objectNumber=-1};bn.prototype.restore=function(){Ee=this.page,Ie=this.pagesContext,z=this.pages,pe=this.x,fe=this.y,ge=this.matrix,En(U=this.currentPage,this.width),xn(U,this.height),$=this.outputDestination};var _n=function(e,t,n,r,i){Pe.push(new bn),Ee=U=0,z=[],pe=e,fe=t,ge=i,yt([n,r])},wn=function(e){if(ke[e])Pe.pop().restore();else{var t=new bn,n="Xo"+(Object.keys(Be).length+1).toString(10);t.id=n,ke[e]=n,Be[n]=t,xe.publish("addFormObject",t),Pe.pop().restore()}};for(var Cn in A.beginFormObject=function(e,t,n,r,i){return _n(e,t,n,r,i),this},A.endFormObject=function(e){return wn(e),this},A.doFormObject=function(e,t){var n=Be[ke[e]];return J("q"),J(t.toString()+" cm"),J("/"+n.id+" Do"),J("Q"),this},A.getFormObject=function(e){var t=Be[ke[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},A.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(CR(Pt(kt()),e),"function"==typeof CR.unload&&fR.setTimeout&&setTimeout(CR.unload,911),this):new Promise(function(t,n){try{var r=CR(Pt(kt()),e);"function"==typeof CR.unload&&fR.setTimeout&&setTimeout(CR.unload,911),t(r)}catch(e){n(e.message)}})},WR.API)WR.API.hasOwnProperty(Cn)&&("events"===Cn&&WR.API.events.length?function(e,t){var n,r;for(r=t.length-1;-1!==r;r--)e.subscribe.apply(e,[t[r][0]].concat("function"==typeof(n=t[r][1])?[n]:n))}(xe,WR.API.events):A[Cn]=WR.API[Cn]);var Sn=A.getPageWidth=function(e){return(Ie[e=e||U].mediaBox.topRightX-Ie[e].mediaBox.bottomLeftX)/Ae},En=A.setPageWidth=function(e,t){Ie[e].mediaBox.topRightX=t*Ae+Ie[e].mediaBox.bottomLeftX},In=A.getPageHeight=function(e){return(Ie[e=e||U].mediaBox.topRightY-Ie[e].mediaBox.bottomLeftY)/Ae},xn=A.setPageHeight=function(e,t){Ie[e].mediaBox.topRightY=t*Ae+Ie[e].mediaBox.bottomLeftY};return A.internal={pdfEscape:vt,getStyle:Qt,getFont:Xt,getFontSize:ie,getCharSpace:pn,getTextColor:dn,getLineHeight:tn,getLineHeightFactor:rn,write:Z,getHorizontalCoordinate:on,getVerticalCoordinate:sn,getCoordinateString:an,getVerticalCoordinateString:ln,collections:{},newObject:De,newAdditionalObject:Ue,newObjectDeferred:Ne,newObjectDeferredBegin:Re,getFilters:qe,putStream:Ke,events:xe,scaleFactor:Ae,pageSize:{getWidth:function(){return Sn(U)},setWidth:function(e){En(U,e)},getHeight:function(){return In(U)},setHeight:function(e){xn(U,e)}},encryptionOptions:u,encryption:Lt,getEncryptor:Mt,output:Ot,getNumberOfPages:Ct,pages:z,out:J,f2:I,f3:x,getPageInfo:Dt,getPageInfoByObjId:Nt,getCurrentPageInfo:Rt,getPDFVersion:f,Point:vn,Rectangle:yn,Matrix:Oe,hasHotfix:Ft},Object.defineProperty(A.internal.pageSize,"width",{get:function(){return Sn(U)},set:function(e){En(U,e)},enumerable:!0,configurable:!0}),Object.defineProperty(A.internal.pageSize,"height",{get:function(){return In(U)},set:function(e){xn(U,e)},enumerable:!0,configurable:!0}),ft.call(A,te),de="F1",bt(i,n),xe.publish("initialized"),A}QR.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},QR.prototype.toHexString=function(e){return e.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},QR.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},QR.prototype.processOwnerPassword=function(e,t){return UR(DR(t).substr(0,5),e)},QR.prototype.encryptor=function(e,t){var n=DR(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return UR(n,e)}},qR.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||BN(e)!==BN(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return 0===r},WR.API={events:[]},WR.version="2.4.0";var $R=WR.API,YR=1,XR=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},JR=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ZR=function(e){return e.toFixed(2)},eU=function(e){return e.toFixed(5)};$R.__acroform__={};var tU=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},nU=function(e){return e*YR},rU=function(e){var t=new yU,n=FU.internal.getHeight(e)||0,r=FU.internal.getWidth(e)||0;return t.BBox=[0,0,Number(ZR(r)),Number(ZR(n))],t},iU=$R.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to 
1jsPDF.API.__acroform__.setBit");return e|1<<t},oU=$R.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},sU=$R.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(e&1<<t)?0:1},aU=$R.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return sU(e,t-1)},lU=$R.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return iU(e,t-1)},cU=$R.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return oU(e,t-1)},uU=$R.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],o=e[1],s=e[2],a=e[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(o+a)||0,l.upperRight_X=n(i+s)||0,l.upperRight_Y=r(o)||0,[Number(ZR(l.lowerLeft_X)),Number(ZR(l.lowerLeft_Y)),Number(ZR(l.upperRight_X)),Number(ZR(l.upperRight_Y))]},hU=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=dU(e,e._V||e.DV),r=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+r+" "+ZR(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=rU(e);return i.scope=e.scope,i.stream=t.join("\n"),i}},dU=function(e,t){var n=0===e.fontSize?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},i=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" "),o=n,s=FU.internal.getHeight(e)||0;s=s<0?-s:s;var a=FU.internal.getWidth(e)||0;a=a<0?-a:a;var l=function(t,n,r){return t+1<i.length&&AU(n+" "+i[t+1],e,r).width<=a-4};o++;e:for(;o>0;){t="",o--;var c,u,h=AU("3",e,o).height,d=e.multiline?s-o:(s-h)/2,A=d+=2,p=0,f=0;if(o<=0){t="(...) Tj\n",t+="% Width of Text: "+AU(t,e,o=12).width+", FieldWidth:"+a+"\n";break}var g="",m=0;for(var v in i)if(i.hasOwnProperty(v)){g=" "==(g+=i[v]+" ").substr(g.length-1)?g.substr(0,g.length-1):g;var y=parseInt(v),b=l(y,g,o),_=v>=i.length-1;if(b&&!_){g+=" ";continue}if(b||_){if(_)f=y;else if(e.multiline&&(h+2)*(m+2)+2>s)continue e}else{if(!e.multiline)continue e;if((h+2)*(m+2)+2>s)continue e;f=y}for(var w="",C=p;C<=f;C++)w+=i[C]+" ";switch(w=" "==w.substr(w.length-1)?w.substr(0,w.length-1):w,u=AU(w,e,o).width,e.textAlign){case"right":c=a-u-2;break;case"center":c=(a-u)/2;break;case"left":default:c=2}t+=ZR(c)+" "+ZR(A)+" Td\n",t+="("+XR(w)+") Tj\n",t+=-ZR(c)+" 0 Td\n",A=-(o+2),u=0,p=f+1,m++,g=""}break}return r.text=t,r.fontSize=o,r},AU=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},pU={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},fU=function(e,t){var n={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find(function(e){return e.type===n.type&&e.object===n.object})&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},gU=$R.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(e){return e};if(Array.isArray(e)){for(var i="[",o=0;o<e.length;o++)switch(0!==o&&(i+=" "),BN(e[o])){case"boolean":case"number":case"object":i+=e[o].toString();break;case"string":"/"!==e[o].substr(0,1)?(void 0!==t&&n&&(r=n.internal.getEncryptor(t)),i+="("+XR(r(e[o].toString()))+")"):i+=e[o].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},mU=function(e,t,n){var r=function(e){return e};return void 0!==t&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+XR(r(e))+")"},vU=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};vU.prototype.toString=function(){return this.objId+" 0 R"},vU.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},vU.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)});for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:gU(i,this.objId,this.scope)}):i instanceof vU?(i.scope=this.scope,e.push({key:r,value:i.objId+" 0 R"})):"function"!=typeof i&&e.push({key:r,value:i}))}return e};
vendor: 3,313 bytes, line 1
1var yU=function(){vU.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};tU(yU,vU);var bU=function(){vU.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+XR(t(e))+")"}},set:function(t){e=t}})};tU(bU,vU);var _U=function e(){vU.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(t,3))},set:function(e){this.F=!0===Boolean(e)?lU(t,3):cU(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof BU)return;o="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+XR(t(o))+")"},set:function(e){o=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(e){o=e}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a}
vendor: 6,583 bytes, line 1
1,set:function(e){a=e}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/YR:c},set:function(e){c=e}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(e){u=e}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof BU||this instanceof PU))return mU(h,this.objId,this.scope)},set:function(e){e=e.toString(),h=e}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof IU==0?mU(d,this.objId,this.scope):d},set:function(e){e=e.toString(),d=this instanceof IU==0?"("===e.substr(0,1)?JR(e.substr(1,e.length-2)):JR(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof IU==1?JR(d.substr(1,d.length-1)):d},set:function(e){e=e.toString(),d=this instanceof IU==1?"/"+e:e}});var A=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(A)return A},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(A)return this instanceof IU==0?mU(A,this.objId,this.scope):A},set:function(e){e=e.toString(),A=this instanceof IU==0?"("===e.substr(0,1)?JR(e.substr(1,e.length-2)):JR(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof IU==1?JR(A.substr(1,A.length-1)):A},set:function(e){e=e.toString(),A=this instanceof IU==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,f=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return f},set:function(e){e=Boolean(e),f=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(e){p=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,1))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,1):cU(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,2))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,2):cU(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,3))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,3):cU(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');g=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(g){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:g=2;break;case"center":case 1:g=1;break;case"left":case 0:default:g=0}}})};tU(_U,vU);var wU=function(){_U.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return gU(t,this.objId,this.scope)},set:function(e){var n,r;r=[],"string"==typeof(n=e)&&(r=function(e,t,n){n||(n=1);for(var r,i=[];r=t.exec(e);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,18))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,18):cU(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,19))},set:function(e){!0===this.combo&&(this.Ff=!0===Boolean(e)?lU(this.Ff,19):cU(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=lU(this.Ff,20),t.sort()):this.Ff=cU(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,22))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,22):cU(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,23))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,23):cU(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,27))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,27):cU(this.Ff,27)}}),this.hasAppearanceStream=!1};tU(wU,_U);var CU=function(){wU.call(this),this.fontName="helvetica",this.combo=!1};tU(CU,wU);var SU=function(){CU.call(this),this.combo=!0};tU(SU,CU);var EU=function(){SU.call(this),this.edit=!0};tU(EU,SU);var IU=function(){_U.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,15))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,15):cU(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,16))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,16):cU(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,17))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,17):cU(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,26))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,26):cU(this.Ff,26)}});var e,t={};
vendor: 4,509 bytes, line 1
1Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var n,r=[];for(n in r.push("<<"),t)r.push("/"+n+" ("+XR(e(t[n]))+")");return r.push(">>"),r.join("\n")}},set:function(e){"object"===BN(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};tU(IU,_U);var xU=function(){IU.call(this),this.pushButton=!0};tU(xU,IU);var TU=function(){IU.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};tU(TU,IU);var BU=function(){var e,t;_U.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push("<<"),r)n.push("/"+t+" ("+XR(e(r[t]))+")");return n.push(">>"),n.join("\n")},set:function(e){"object"===BN(e)&&(r=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(e){"string"==typeof e&&(r.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=FU.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};tU(BU,_U),TU.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},TU.prototype.createOption=function(e){var t=new BU;return t.Parent=this,t.optionName=e,this.Kids.push(t),LU.call(this.scope,t),t};var kU=function(){IU.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=FU.CheckBox.createAppearanceStream()};tU(kU,IU);var PU=function(){_U.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,13))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,13):cU(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,21))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,21):cU(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,23))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,23):cU(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,24))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,24):cU(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,25))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,25):cU(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,26))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,26):cU(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};tU(PU,_U);
vendor: 9,312 bytes, line 1
1var OU=function(){PU.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(aU(this.Ff,14))},set:function(e){this.Ff=!0===Boolean(e)?lU(this.Ff,14):cU(this.Ff,14)}}),this.password=!0};tU(OU,PU);var FU={CheckBox:{createAppearanceStream:function(){return{N:{On:FU.CheckBox.YesNormal},D:{On:FU.CheckBox.YesPushDown,Off:FU.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=rU(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),o=dU(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+ZR(FU.internal.getWidth(e))+" "+ZR(FU.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+ZR(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=rU(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],o=FU.internal.getHeight(e),s=FU.internal.getWidth(e),a=dU(e,e.caption);return i.push("1 g"),i.push("0 0 "+ZR(s)+" "+ZR(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+ZR(s-1)+" "+ZR(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+ZR(a.fontSize)+" Tf "+r),i.push(a.text),i.push("ET"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(e){var t=rU(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ZR(FU.internal.getWidth(e))+" "+ZR(FU.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:FU.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=FU.RadioButton.Circle.YesNormal,t.D[e]=FU.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=rU(e);t.scope=e.scope;var n=[],r=FU.internal.getWidth(e)<=FU.internal.getHeight(e)?FU.internal.getWidth(e)/4:FU.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((r*FU.internal.Bezier_C).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+eU(FU.internal.getWidth(e)/2)+" "+eU(FU.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=rU(e);t.scope=e.scope;var n=[],r=FU.internal.getWidth(e)<=FU.internal.getHeight(e)?FU.internal.getWidth(e)/4:FU.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*FU.internal.Bezier_C).toFixed(5)),s=Number((r*FU.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+eU(FU.internal.getWidth(e)/2)+" "+eU(FU.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+eU(FU.internal.getWidth(e)/2)+" "+eU(FU.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),n.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),n.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),n.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=rU(e);t.scope=e.scope;var n=[],r=FU.internal.getWidth(e)<=FU.internal.getHeight(e)?FU.internal.getWidth(e)/4:FU.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*FU.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+eU(FU.internal.getWidth(e)/2)+" "+eU(FU.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:FU.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=FU.RadioButton.Cross.YesNormal,t.D[e]=FU.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=rU(e);t.scope=e.scope;var n=[],r=FU.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+ZR(FU.internal.getWidth(e)-2)+" "+ZR(FU.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(ZR(r.x1.x)+" "+ZR(r.x1.y)+" m"),n.push(ZR(r.x2.x)+" "+ZR(r.x2.y)+" l"),n.push(ZR(r.x4.x)+" "+ZR(r.x4.y)+" m"),n.push(ZR(r.x3.x)+" "+ZR(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=rU(e);t.scope=e.scope;var n=FU.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+ZR(FU.internal.getWidth(e))+" "+ZR(FU.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ZR(FU.internal.getWidth(e)-2)+" "+ZR(FU.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ZR(n.x1.x)+" "+ZR(n.x1.y)+" m"),r.push(ZR(n.x2.x)+" "+ZR(n.x2.y)+" l"),r.push(ZR(n.x4.x)+" "+ZR(n.x4.y)+" m"),r.push(ZR(n.x3.x)+" "+ZR(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=rU(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ZR(FU.internal.getWidth(e))+" "+ZR(FU.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};FU.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=FU.internal.getWidth(e),n=FU.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},FU.internal.getWidth=function(e){var t=0;return"object"===BN(e)&&(t=nU(e.Rect[2])),t},FU.internal.getHeight=function(e){var t=0;return"object"===BN(e)&&(t=nU(e.Rect[3])),t};var LU=$R.addField=function(e){if(function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(_U.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(pU)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");YR=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new bU,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){!function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0}(e)}),e.internal.events.subscribe("buildDocument",function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.objId=void 0,r.hasAnnotation&&fU(r,e)}}(e)}),e.internal.events.subscribe("putCatalog",function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)}),e.internal.events.subscribe("postPutPages",function(t){!function(e,t){var n=!e;for(var r in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(r)){var i=e[r],o=[],s=i.Rect;if(i.Rect&&(i.Rect=uU(i.Rect,t)),t.internal.newObjectDeferredBegin(i.objId,!0),i.DA=FU.createDefaultAppearanceStream(i),"object"===BN(i)&&"function"==typeof i.getKeyValueListForStream&&(o=i.getKeyValueListForStream()),i.Rect=s,i.hasAppearanceStream&&!i.appearanceStreamContent){var a=hU(i);o.push({key:"AP",value:"<</N "+a+">>"}),t.internal.acroformPlugin.xForms.push(a)}if(i.appearanceStreamContent){var l="";for(var c in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(c)){var u=i.appearanceStreamContent[c];if(l+="/"+c+" ",l+="<<",Object.keys(u).length>=1||Array.isArray(u)){for(var r in u)if(u.hasOwnProperty(r)){var h=u[r];"function"==typeof h&&(h=h.call(t,i)),l+="/"+r+" "+h+" ",t.internal.acroformPlugin.xForms.indexOf(h)>=0||t.internal.acroformPlugin.xForms.push(h)}}else"function"==typeof(h=u)&&(h=h.call(t,i)),l+="/"+r+" "+h,t.internal.acroformPlugin.xForms.indexOf(h)>=0||t.internal.acroformPlugin.xForms.push(h);l+=">>"}o.push({key:"AP",value:"<<\n"+l+">>"})}t.internal.putStream({additionalKeyValues:o,objectId:i.objId}),t.internal.out("endobj")}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=n,i=e[n];t.internal.newObjectDeferredBegin(i.objId,!0),"object"===BN(i)&&"function"==typeof i.putStream&&i.putStream(),delete e[r]}}(t.internal.acroformPlugin.xForms,t)}(t,e)}),e.internal.acroformPlugin.isInitialized=!0}}(this,e),!(e instanceof _U))throw new Error("Invalid argument passed to 
1jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};function MU(e){return e.reduce(function(e,t,n){return e[t]=n,e},{})}$R.AcroFormChoiceField=wU,$R.AcroFormListBox=CU,$R.AcroFormComboBox=SU,$R.AcroFormEditBox=EU,$R.AcroFormButton=IU,$R.AcroFormPushButton=xU,$R.AcroFormRadioButton=TU,$R.AcroFormCheckBox=kU,$R.AcroFormTextField=PU,$R.AcroFormPasswordField=OU,$R.AcroFormAppearance=FU,$R.AcroForm={ChoiceField:wU,ListBox:CU,ComboBox:SU,EditBox:EU,Button:IU,PushButton:xU,RadioButton:TU,CheckBox:kU,TextField:PU,PasswordField:OU,Appearance:FU},WR.AcroForm={ChoiceField:wU,ListBox:CU,ComboBox:SU,EditBox:EU,Button:IU,PushButton:xU,RadioButton:TU,CheckBox:kU,TextField:PU,PasswordField:OU,Appearance:FU},function(e){e.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(e,r){var i,o,s,a,l,c=t;if("RGBA"===(r=r||t)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(w(e))for(l in n)for(s=n[l],i=0;i<s.length;i+=1){for(a=!0,o=0;o<s[i].length;o+=1)if(void 0!==s[i][o]&&s[i][o]!==e[o]){a=!1;break}if(!0===a){c=l;break}}else for(l in n)for(s=n[l],i=0;i<s.length;i+=1){for(a=!0,o=0;o<s[i].length;o+=1)if(void 0!==s[i][o]&&s[i][o]!==e.charCodeAt(o)){a=!1;break}if(!0===a){c=l;break}}return c===t&&r!==t&&(c=r),c},i=function e(t){for(var n=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var o=[];if(o.push({key:"Type",value:"/XObject"}),o.push({key:"Subtype",value:"/Image"}),o.push({key:"Width",value:t.width}),o.push({key:"Height",value:t.height}),t.colorSpace===g.INDEXED?o.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(o.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===g.DEVICE_CMYK&&o.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),o.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&o.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var s="",a=0,l=t.transparency.length;a<l;a++)s+=t.transparency[a]+" "+t.transparency[a]+" ";o.push({key:"Mask",value:"["+s+"]"})}if(void 0!==t.sMask&&o.push({key:"SMask",value:t.objectId+1+" 0 R"}),r({data:t.data,additionalKeyValues:o,alreadyAppliedFilters:void 0!==t.filter?["/"+t.filter]:void 0,objectId:t.objectId}),n("endobj"),"sMask"in t&&void 0!==t.sMask){var c={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:"/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,data:t.sMask};"filter"in t&&(c.filter=t.filter),e.call(this,c)}if(t.colorSpace===g.INDEXED){var u=this.internal.newObject();r({data:S(new Uint8Array(t.palette)),objectId:u}),n("endobj")}},o=function(){var e=this.internal.collections.addImage_images;for(var t in e)i.call(this,e[t])},s=function(){var e,t=this.internal.collections.addImage_images,n=this.internal.write;for(var r in t)n("/I"+(e=t[r]).index,e.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},l=function(){var e=this.internal.collections.addImage_images;return a.call(this),e},c=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(t){return"function"==typeof e["process"+t.toUpperCase()]},h=function(e){return"object"===BN(e)&&1===e.nodeType},d=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return _R(unescape(r).split("base64,").pop());var i=e.loadFile(r,!0);if(void 0!==i)return i}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var o;switch(n){case"PNG":o="image/png";break;case"WEBP":o="image/webp";break;case"JPEG":case"JPG":default:o="image/jpeg"}return _R(t.toDataURL(o,1).split("base64,").pop())}},A=function(e){var t=this.internal.collections.addImage_images;if(t)for(var n in t)if(e===t[n].alias)return t[n]},p=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),0===e&&(e=t*n.width/n.height),0===t&&(t=e*n.height/n.width),[e,t]},f=function(e,t,n,r,i,o){var s=p.call(this,n,r,i),a=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,u=l.call(this);if(n=s[0],r=s[1],u[i.index]=i,o){o*=Math.PI/180;var h=Math.cos(o),d=Math.sin(o),A=function(e){return e.toFixed(4)},f=[A(h),A(d),A(-1*d),A(h),0,0,"cm"]}this.internal.write("q"),o?(this.internal.write([1,"0","0",1,a(e),c(t+r),"cm"].join(" ")),this.internal.write(f.join(" ")),this.internal.write([a(n),"0","0",a(r),"0","0","cm"].join(" "))):this.internal.write([a(n),"0","0",a(r),a(e),c(t+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},g=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var m=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},v=e.__addimage__.sHashCode=function(e){var t,n,r=0;if("string"==typeof e)for(n=e.length,t=0;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;else if(w(e))for(n=e.byteLength/2,t=0;t<n;t++)r=(r<<5)-r+e[t],r|=0;return r}
vendor: 14,778 bytes, line 1
1,y=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},b=e.__addimage__.extractImageFromDataUrl=function(e){var t=(e=e||"").split("base64,"),n=null;if(2===t.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(t[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:t[1]})}return n},_=e.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};e.__addimage__.isArrayBuffer=function(e){return _()&&e instanceof ArrayBuffer};var w=e.__addimage__.isArrayBufferView=function(e){return _()&&"undefined"!=typeof Uint32Array&&(e instanceof Int8Array||e instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)},C=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},S=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",n=w(e)?e:new Uint8Array(e),r=0;r<n.length;r+=8192)t+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return t};e.addImage=function(){var e,n,r,i,o,s,l,c,u;if("number"==typeof arguments[1]?(n=t,r=arguments[1],i=arguments[2],o=arguments[3],s=arguments[4],l=arguments[5],c=arguments[6],u=arguments[7]):(n=arguments[1],r=arguments[2],i=arguments[3],o=arguments[4],s=arguments[5],l=arguments[6],c=arguments[7],u=arguments[8]),"object"===BN(e=arguments[0])&&!h(e)&&"imageData"in e){var d=e;e=d.imageData,n=d.format||n||t,r=d.x||r||0,i=d.y||i||0,o=d.w||d.width||o,s=d.h||d.height||s,l=d.alias||l,c=d.compression||c,u=d.rotation||d.angle||u}var A=this.internal.getFilters();if(void 0===c&&-1!==A.indexOf("FlateEncode")&&(c="SLOW"),isNaN(r)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var p=E.call(this,e,n,l,c);return f.call(this,r,i,o,s,p,u),this};var E=function(n,i,o,s){var a,l,p;if("string"==typeof n&&r(n)===t){n=unescape(n);var f=I(n,!1);(""!==f||void 0!==(f=e.loadFile(n,!0)))&&(n=f)}if(h(n)&&(n=d(n,i)),i=r(n,i),!u(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if((null==(p=o)||0===p.length)&&(o=function(e){return"string"==typeof e||w(e)?v(e):w(e.data)?v(e.data):null}(n)),(a=A.call(this,o))||(_()&&(n instanceof Uint8Array||"RGBA"===i||(l=n,n=C(n))),a=this["process"+i.toUpperCase()](n,c.call(this),o,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:m.NONE}(s),l)),!a)throw new Error("An unknown error occurred whilst processing the image.");return a},I=e.__addimage__.convertBase64ToBinaryString=function(e,t){var n;t="boolean"!=typeof t||t;var r,i="";if("string"==typeof e){r=null!==(n=b(e))?n.data:e;try{i=_R(r)}catch(e){if(t)throw y(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};e.getImageProperties=function(n){var i,o,s="";if(h(n)&&(n=d(n)),"string"==typeof n&&r(n)===t&&(""===(s=I(n,!1))&&(s=e.loadFile(n)||""),n=s),o=r(n),!u(o))throw new Error("addImage does not support files of type '"+o+"', please ensure that a plugin for '"+o+"' support is added.");if(!_()||n instanceof Uint8Array||(n=C(n)),!(i=this["process"+o.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return i.fileType=o,i}}(WR.API),function(e){var t=function(e){if(void 0!==e&&""!=e)return!0};WR.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(e){for(var n,r,i,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,a=this.internal.getPageInfoByObjId(e.objId),l=e.pageContext.annotations,c=!1,u=0;u<l.length&&!c;u++)switch((n=l[u]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(c=!0);break;case"reference":case"text":case"freetext":c=!0}if(0!=c){this.internal.write("/Annots [");for(var h=0;h<l.length;h++){n=l[h];var d=this.internal.pdfEscape,A=this.internal.getEncryptor(e.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),f=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(p.objId),m=n.title||"Note";i="<</Type /Annot /Subtype /Text "+(r="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+d(g(n.contents))+")",i+=" /Popup "+f.objId+" 0 R",i+=" /P "+a.objId+" 0 R",i+=" /T ("+d(g(m))+") >>",p.content=i;var v=p.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+o(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+v,n.open&&(i+=" /Open true"),f.content=i+=" >>",this.internal.write(p.objId,"0 R",f.objId,"0 R");break;case"freetext":r="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var y=n.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+d(A(n.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",i+=" /Border [0 0 0]",this.internal.write(i+=" >>");break;case"link":if(n.options.name){var b=this.annotations._nameMap[n.options.name];n.options.pageNumber=b.page,n.options.top=b.y}else n.options.top||(n.options.top=0);if(r="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",i="",n.options.url)i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+d(A(n.options.url))+") >>";else if(n.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,i+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var _=s(n.options.top);n.options.left=n.options.left||0,void 0===n.options.zoom&&(n.options.zoom=0),i+=" /XYZ "+n.options.left+" "+_+" "+n.options.zoom+"]"}""!=i&&this.internal.write(i+=" >>")}}this.internal.write("]")}}]),e.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},e.link=function(e,t,n,r,i){var o=this.internal.getCurrentPageInfo(),s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:s(e),y:a(t),w:s(e+n),h:a(t+r)},options:i,type:"link"})},e.textWithLink=function(e,t,n,r){var i=this.getTextWidth(e),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(e,t,n,r),"center"===r.align&&(t-=i/2),"right"===r.align&&(t-=i),this.link(t,(n+=.2*o)-o,i,o,r),i},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(WR.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},s=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},a=e.__arabicParser__.isArabicEndLetter=function(e){return s(e)&&o(e)&&t[e.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(e){return s(e)&&i.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return s(e)&&o(e)&&t[e.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return s(e)&&o(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return s(e)&&o(e)&&t[e.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return s(e)&&o(e)&&4==t[e.charCodeAt(0)].length},h=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,i="",o=0;for(t=0;t<e.length;t+=1)void 0!==r[e.charCodeAt(t)]?(o++,"number"==typeof(r=r[e.charCodeAt(t)])&&(i+=String.fromCharCode(r),r=n,o=0),t===e.length-1&&(r=n,i+=e.charAt(t-(o-1)),t-=o-1,o=0)):(r=n,i+=e.charAt(t-o),t-=o,o=0);return i};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==r[e.charCodeAt(0)]};var d=e.__arabicParser__.getCorrectForm=function(e,t,n){return s(e)?!1===o(e)?-1:!c(e)||!s(t)&&!s(n)||!s(n)&&a(t)||a(e)&&!s(t)||a(e)&&l(t)||a(e)&&a(t)?0:u(e)&&s(t)&&!a(t)&&s(n)&&c(n)?3:a(e)||!s(n)?1:2:-1},A=function(e){var n=0,r=0,i=0,o="",a="",l="",c=(e=e||"").split("\\s+"),u=[];for(n=0;n<c.length;n+=1){for(u.push(""),r=0;r<c[n].length;r+=1)a=c[n][r-1],l=c[n][r+1],s(o=c[n][r])?(i=d(o,a,l),u[n]+=-1!==i?String.fromCharCode(t[o.charCodeAt(0)][i]):o):u[n]+=o;u[n]=h(u[n])}return u.join(" ")},p=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var r=0;for(n=[],r=0;r<t.length;r+=1)Array.isArray(t[r])?n.push([A(t[r][0]),t[r][1],t[r][2]]):n.push([A(t[r])]);e=n}else e=A(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",p])}(WR.API),WR.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})}return this},function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(e){r=e}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(e){i=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(WR.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var o=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return o}
vendor: 4,418 bytes, line 1
1,set:function(e){o=e}});var s=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return s},set:function(e){s=e}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){r.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),i=t.font||this.getFont(),o=t.scaleFactor||this.internal.scaleFactor,s=0,a=0,l=0,c=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var u=t.maxWidth;u>0?"string"==typeof e?e=this.splitTextToSize(e,u):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce(function(e,t){return e.concat(c.splitTextToSize(t,u))},[])):e=Array.isArray(e)?e:[e];for(var h=0;h<e.length;h++)s<(l=this.getStringUnitWidth(e[h],{font:i})*n)&&(s=l);return 0!==s&&(a=e.length),{w:s/=o,h:Math.max((a*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/o,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var e;e=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var i=this.internal.__cell__.lastCell,s=this.internal.__cell__.padding,a=this.internal.__cell__.margins||t,l=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==i.lineNumber&&(i.lineNumber===e.lineNumber?(e.x=(i.x||0)+(i.width||0),e.y=i.y||0):i.y+i.height+e.height+a.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=a.top,c&&l&&(this.printHeaderRow(e.lineNumber,!0),e.y+=l[0].height)):e.y=i.y+i.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===n?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-s,e.y+s,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+s,{align:"center",baseline:"top",maxWidth:e.width-s-s}):this.text(e.text,e.x+s,e.y+s,{align:"left",baseline:"top",maxWidth:e.width-s-s})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,l,c,u){if(r.call(this),!l)throw new Error("No data for PDF table.");var h,d,A,p,f=[],g=[],m=[],v={},y={},b=[],_=[],w=(u=u||{}).autoSize||!1,C=!1!==u.printHeaders,S=u.css&&void 0!==u.css["font-size"]?16*u.css["font-size"]:u.fontSize||12,E=u.margins||Object.assign({width:this.getPageWidth()},t),I="number"==typeof u.padding?u.padding:3,x=u.headerBackgroundColor||"#c8c8c8",T=u.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=E,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=x,this.internal.__cell__.headerTextColor=T,this.setFontSize(S),null==c)g=f=Object.keys(l[0]),m=f.map(function(){return"left"});else if(Array.isArray(c)&&"object"===BN(c[0]))for(f=c.map(function(e){return e.name}),g=c.map(function(e){return e.prompt||e.name||""}),m=c.map(function(e){return e.align||"left"}),h=0;h<c.length;h+=1)y[c[h].name]=c[h].width*(19.049976/25.4);else Array.isArray(c)&&"string"==typeof c[0]&&(g=f=c,m=f.map(function(){return"left"}));if(w||Array.isArray(c)&&"string"==typeof c[0])for(h=0;h<f.length;h+=1){for(v[p=f[h]]=l.map(function(e){return e[p]}),this.setFont(void 0,"bold"),b.push(this.getTextDimensions(g[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=v[p],this.setFont(void 0,"normal"),A=0;A<d.length;A+=1)b.push(this.getTextDimensions(d[A],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);y[p]=Math.max.apply(null,b)+I+I,b=[]}if(C){var B={};for(h=0;h<f.length;h+=1)B[f[h]]={},B[f[h]].text=g[h],B[f[h]].align=m[h];var k=a.call(this,B,y);_=f.map(function(t){return new o(e,n,y[t],k,B[t].text,void 0,B[t].align)}),this.setTableHeaderRow(_),this.printHeaderRow(1,!1)}var P=c.reduce(function(e,t){return e[t.name]=t.align,e},{});for(h=0;h<l.length;
vendor: 4,604 bytes, line 1
1h+=1){"rowStart"in u&&u.rowStart instanceof Function&&u.rowStart({row:h,data:l[h]},this);var O=a.call(this,l[h],y);for(A=0;A<f.length;A+=1){var F=l[h][f[A]];"cellStart"in u&&u.cellStart instanceof Function&&u.cellStart({row:h,col:A,data:F},this),s.call(this,new o(e,n,y[f[A]],O,F,h+2,P[f[A]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var a=function(e,t){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(e).map(function(r){var i=e[r];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,t[r]-n-n)},this).map(function(e){return this.getLineHeightFactor()*e.length*r/i+n+n},this).reduce(function(e,t){return Math.max(e,t)},0)};e.setTableHeaderRow=function(e){r.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var i;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){i=this.internal.__cell__.tableHeaderRow[c].clone(),t&&(i.y=this.internal.__cell__.margins.top||0,l.push(i)),i.lineNumber=e;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,i),this.setTextColor(u)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(WR.API);var DU={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},NU=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],RU=MU(NU),UU=[100,200,300,400,500,600,700,800,900],jU=MU(UU);function QU(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(e){return DU[e=e||"normal"]?e:"normal"}(e.style),r=function(e){if(!e)return 400;if("number"==typeof e)return e>=100&&e<=900&&e%100==0?e:400;if(/^\d00$/.test(e))return parseInt(e);switch(e){case"bold":return 700;case"normal":default:return 400}}(e.weight),i=function(e){return"number"==typeof RU[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(" ")}}}function HU(e,t,n,r){var i;for(i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var VU={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},qU={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function KU(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function GU(e){return e.trimLeft()}function zU(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function WU(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var $U,YU,XU,JU=["times"];!function(e){var t,n,r,i,o,s,a,l,c,u=function(e){return this.isStrokeTransparent=(e=e||{}).isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new l,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new s,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new s,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new h(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,
vendor: 1,101 bytes, line 1
1s=this.internal.Point,a=this.internal.Rectangle,l=this.internal.Matrix,c=new u}]);var h=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(e){r=Boolean(e)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}});var o=0;Object.defineProperty(this,"posY",{get:function(){return o},set:function(e){isNaN(e)||(o=e)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),c.margin=t}});var s=!1;Object.defineProperty(this,"autoPaging",{get:function(){return s},set:function(e){s=e}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a}
vendor: 4,583 bytes, line 1
1,set:function(e){a=e}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(e){e instanceof u&&(c=e)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(e){c.path=e}});var h=[];Object.defineProperty(this,"ctxStack",{get:function(){return h},set:function(e){h=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=d(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=d(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):this.pdf.setDrawColor(t.r,t.g,t.b)}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var A=null;function p(e,t){if(null===A){var n=function(e){var t=[];return Object.keys(e).forEach(function(n){e[n].forEach(function(e){var r=null;switch(e){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:e},t.push(r))})}),t}(e.getFontList());A=function(e){for(var t={},n=0;n<e.length;++n){var r=QU(e[n]),i=r.family,o=r.stretch,s=r.style,a=r.weight;t[i]=t[i]||{},t[i][o]=t[i][o]||{},t[i][o][s]=t[i][o][s]||{},t[i][o][s][a]=r}return t}(n.concat(t))}return A}var f=null;Object.defineProperty(this,"fontFaces",{get:function(){return f},set:function(e){A=null,f=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(e))){var n=t[1],r=t[3],i=t[4],o=t[6],s=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===s?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===s?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var a=function(e){var t,n,r=[],i=e.trim();if(""===i)return JU;if(i in qU)return[qU[i]];for(;""!==i;){switch(n=null,t=(i=GU(i)).charAt(0)){case'"':case"'":n=zU(i.substring(1),t);break;default:n=WU(i)}if(null===n)return JU;if(r.push(n[0]),""!==(i=GU(n[1]))&&","!==i.charAt(0))return JU;i=i.replace(/^,/,"")}return r}(o);if(this.fontFaces){var l=function(e,t,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},VU,n.genericFontFamilies||{}),o=null,s=null,a=0;a<t.length;++a)if(i[(o=QU(t[a])).family]&&(o.family=i[o.family]),e.hasOwnProperty(o.family)){s=e[o.family];break}if(!(s=s||e[r]))throw new Error("Could not find a font-family for the rule '"+KU(o)+"' and default family '"+r+"'.");if(s=function(e,t){if(t[e])return t[e];var n=RU[e],r=HU(t,NU,n,n<=RU.normal?-1:1);if(!r)throw new Error("Could not find a matching font-stretch value for "+e);return r}(o.stretch,s),s=function(e,t){if(t[e])return t[e];for(var n=DU[e],r=0;r<n.length;++r)if(t[n[r]])return t[n[r]];throw new Error("Could not find a matching font-style for "+e)}(o.style,s),!(s=function(e,t){if(t[e])return t[e];
1if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var n=HU(t,UU,jU[e],e<400?-1:1);if(!n)throw new Error("Could not find a matching font-weight for value "+e);return n}(o.weight,s)))throw new Error("Failed to resolve a font for the rule '"+KU(o)+"'.");return s}(p(this.pdf,this.fontFaces),a.map(function(e){return{family:e,stretch:"normal",weight:r,style:n}}));this.pdf.setFont(l.ref.name,l.ref.style)}else{var c="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(c="bold"),"italic"===n&&(c+="italic"),0===c.length&&(c="normal");for(var u="",h={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},d=0;d<a.length;d++){if(void 0!==this.pdf.internal.getFont(a[d],c,{noFallback:!0,disableWarning:!0})){u=a[d];break}if("bolditalic"===c&&void 0!==this.pdf.internal.getFont(a[d],"bold",{noFallback:!0,disableWarning:!0}))u=a[d],c="bold";else if(void 0!==this.pdf.internal.getFont(a[d],"normal",{noFallback:!0,disableWarning:!0})){u=a[d],c="normal";break}}if(""===u)for(var A=0;A<a.length;A++)if(h[a[A]]){u=h[a[A]];break}this.pdf.setFont(u=""===u?"Times":u,c)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,N.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,N.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};h.prototype.setLineDash=function(e){this.lineDash=e},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){b.call(this,"fill",!1)},h.prototype.stroke=function(){b.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw mR.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(e,t)},h.prototype.closePath=function(){var e=new s(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===BN(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new s(this.path[t+1].x,this.path[t+1].y),this.path.push({type:"lt",x:e.x,y:e.y});break}"object"===BN(this.path[t+2])&&"number"==typeof this.path[t+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[t+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new s(e.x,e.y)},h.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw mR.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),b.call(this,null,!0)},h.prototype.quadraticCurveTo=function(e,t,n,r){if(isNaN(n)||isNaN(r)||isNaN(e)||isNaN(t))throw mR.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new s(n,r)),o=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new s(i.x,i.y)},h.prototype.bezierCurveTo=function(e,t,n,r,i,o){if(isNaN(i)||isNaN(o)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw mR.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to 
1jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new s(i,o)),l=this.ctx.transform.applyToPoint(new s(e,t)),c=this.ctx.transform.applyToPoint(new s(n,r));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:c.x,y2:c.y,x:a.x,y:a.y}),this.ctx.lastPoint=new s(a.x,a.y)},h.prototype.arc=function(e,t,n,r,i,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i))throw mR.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new s(e,t));e=a.x,t=a.y;var l=this.ctx.transform.applyToPoint(new s(0,n)),c=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(l.x-c.x,2)+Math.pow(l.y-c.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:r,endAngle:i,counterclockwise:o})},h.prototype.arcTo=function(e,t,n,r,i){throw new Error("arcTo not implemented.")},h.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw mR.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},h.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw mR.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!A.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},h.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw mR.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");p.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},h.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw mR.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,r))},h.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},h.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(e){var t,n,r,i;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,r=0,i=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==o)t=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof e&&"#"!==e.charAt(0)){var s=new SR(e);e=s.ok?s.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,r=e.substring(3,4),r+=r):(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:t,g:n,b:r,a:i,style:e}},A=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},p=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};h.prototype.fillText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw mR.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to 
1jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!A.call(this)){var i=L(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;T.call(this,{text:e,x:t,y:n,scale:o,angle:i,align:this.textAlign,maxWidth:r})}},h.prototype.strokeText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw mR.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!p.call(this)){r=isNaN(r)?void 0:r;var i=L(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;T.call(this,{text:e,x:t,y:n,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},h.prototype.measureText=function(e){if("string"!=typeof e)throw mR.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,n=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),i=t.getStringUnitWidth(e)*r/t.internal.scaleFactor,o=function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this};return new o({width:i*=Math.round(96*n/72*1e4)/1e4})},h.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw mR.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new l(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},h.prototype.rotate=function(e){if(isNaN(e))throw mR.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new l(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},h.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw mR.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new l(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},h.prototype.transform=function(e,t,n,r,i,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o))throw mR.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new l(e,t,n,r,i,o);this.ctx.transform=this.ctx.transform.multiply(s)},h.prototype.setTransform=function(e,t,n,r,i,o){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new l(e,t,n,r,i,o)};var f=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(e,t,n,r,i,o,s,c,u){var h=this.pdf.getImageProperties(e),d=1,A=1,p=1,m=1;void 0!==r&&void 0!==c&&(p=c/r,m=u/i,d=h.width/r*c/r,A=h.height/i*u/i),void 0===o&&(o=t,s=n,t=0,n=0),void 0!==r&&void 0===c&&(c=r,u=i),void 0===r&&void 0===c&&(c=h.width,u=h.height);for(var b,w=this.ctx.transform.decompose(),C=L(w.rotate.shx),S=new l,E=(S=(S=(S=S.multiply(w.translate)).multiply(w.skew)).multiply(w.scale)).applyToRectangle(new a(o-t*p,s-n*m,r*d,i*A)),I=g.call(this,E),x=[],T=0;T<I.length;T+=1)-1===x.indexOf(I[T])&&x.push(I[T]);if(y(x),this.autoPaging)for(var B=x[0],k=x[x.length-1],P=B;P<k+1;P++){this.pdf.setPage(P);var O=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],F=1===P?this.posY+this.margin[0]:this.margin[0],M=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],D=1===P?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(P-2)*M;if(0!==this.ctx.clip_path.length){var N=this.path;b=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(b,this.posX+this.margin[3],-D+F+this.ctx.prevPageLastElemOffset),_.call(this,"fill",!0),this.path=N}var R=JSON.parse(JSON.stringify(E));R=v([R],this.posX+this.margin[3],-D+F+this.ctx.prevPageLastElemOffset)[0];var U=(P>B||P<k)&&f.call(this);U&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],O,M,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",R.x,R.y,R.w,R.h,null,null,C),U&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(e,"JPEG",E.x,E.y,E.w,E.h,null,null,C)};var g=function(e,t,n){var r=[];t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":r.push(Math.floor((e.y+i)/n)+1);break;case"arc":r.push(Math.floor((e.y+i-e.radius)/n)+1),r.push(Math.floor((e.y+i+e.radius)/n)+1);break;case"qct":var o=M(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);r.push(Math.floor((o.y+i)/n)+1),r.push(Math.floor((o.y+o.h+i)/n)+1);break;case"bct":var s=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);r.push(Math.floor((s.y+i)/n)+1),r.push(Math.floor((s.y+s.h+i)/n)+1);break;
vendor: 59,815 bytes, line 1
1case"rect":r.push(Math.floor((e.y+i)/n)+1),r.push(Math.floor((e.y+e.h+i)/n)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)m.call(this);return r},m=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=o},v=function(e,t,n){for(var r=0;r<e.length;r++)switch(e[r].type){case"bct":e[r].x2+=t,e[r].y2+=n;case"qct":e[r].x1+=t,e[r].y1+=n;case"mt":case"lt":case"arc":default:e[r].x+=t,e[r].y+=n}return e},y=function(e){return e.sort(function(e,t){return e-t})},b=function(e,t){for(var n,r,i=this.fillStyle,o=this.strokeStyle,s=this.lineCap,a=this.lineWidth,l=Math.abs(a*this.ctx.transform.scaleX),c=this.lineJoin,u=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),d=[],A=0;A<h.length;A++)if(void 0!==h[A].x)for(var p=g.call(this,h[A]),b=0;b<p.length;b+=1)-1===d.indexOf(p[b])&&d.push(p[b]);for(var w=0;w<d.length;w++)for(;this.pdf.internal.getNumberOfPages()<d[w];)m.call(this);if(y(d),this.autoPaging)for(var C=d[0],S=d[d.length-1],E=C;E<S+1;E++){this.pdf.setPage(E),this.fillStyle=i,this.strokeStyle=o,this.lineCap=s,this.lineWidth=l,this.lineJoin=c;var I=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],x=1===E?this.posY+this.margin[0]:this.margin[0],T=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],B=1===E?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(E-2)*T;if(0!==this.ctx.clip_path.length){var k=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(n,this.posX+this.margin[3],-B+x+this.ctx.prevPageLastElemOffset),_.call(this,e,!0),this.path=k}if(r=JSON.parse(JSON.stringify(u)),this.path=v(r,this.posX+this.margin[3],-B+x+this.ctx.prevPageLastElemOffset),!1===t||0===E){var P=(E>C||E<S)&&f.call(this);P&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,T,null).clip().discardPath()),_.call(this,e,t),P&&this.pdf.restoreGraphicsState()}this.lineWidth=a}else this.lineWidth=l,_.call(this,e,t),this.lineWidth=a;this.path=u},_=function(e,t){if(("stroke"!==e||t||!p.call(this))&&("stroke"===e||t||!A.call(this))){for(var n,r,i=[],o=this.path,s=0;s<o.length;s++){var a=o[s];switch(a.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:a,deltas:[],abs:[]});break;case"lt":var l=i.length;if(!isNaN(o[s-1].x)&&(n=[a.x-o[s-1].x,a.y-o[s-1].y],l>0))for(;l>=0;l--)if(!0!==i[l-1].close&&!0!==i[l-1].begin){i[l-1].deltas.push(n),i[l-1].abs.push(a);break}break;case"bct":i[i.length-1].deltas.push(n=[a.x1-o[s-1].x,a.y1-o[s-1].y,a.x2-o[s-1].x,a.y2-o[s-1].y,a.x-o[s-1].x,a.y-o[s-1].y]);break;case"qct":i[i.length-1].deltas.push(n=[o[s-1].x+2/3*(a.x1-o[s-1].x)-o[s-1].x,o[s-1].y+2/3*(a.y1-o[s-1].y)-o[s-1].y,a.x+2/3*(a.x1-a.x)-o[s-1].x,a.y+2/3*(a.y1-a.y)-o[s-1].y,a.x-o[s-1].x,a.y-o[s-1].y]);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(a)}}r=t?null:"stroke"===e?"stroke":"fill";for(var c=0;c<i.length;c++){if(i[c].arc){for(var u=i[c].abs,h=0;h<u.length;h++){var d=u[h];"arc"===d.type?S.call(this,d.x,d.y,d.radius,d.startAngle,d.endAngle,d.counterclockwise,void 0,t):B.call(this,d.x,d.y)}E.call(this,r),this.pdf.internal.out("h")}i[c].arc||!0===i[c].close||!0===i[c].begin||k.call(this,i[c].deltas,i[c].start.x,i[c].start.y)}r&&E.call(this,r),t&&I.call(this)}},w=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-n;case"top":return e+t-n;case"hanging":return e+t-2*n;case"middle":return e+t/2-n;case"ideographic":return e;case"alphabetic":default:return e}},C=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(e,t,n,r,i,o,s,a){for(var l=O.call(this,n,r,i,o),c=0;c<l.length;c++){var u=l[c];0===c&&x.call(this,u.x1+e,u.y1+t),P.call(this,e,t,u.x2,u.y2,u.x3,u.y3,u.x4,u.y4)}a?I.call(this):E.call(this,s)},E=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},I=function(){this.pdf.clip(),this.pdf.discardPath()},x=function(e,t){this.pdf.internal.out(n(e)+" "+r(t)+" m")},T=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;case"left":case"start":default:t="left"}var n=this.pdf.getTextDimensions(e.text),r=w.call(this,e.y),i=C.call(this,r)-n.h,o=this.ctx.transform.applyToPoint(new s(e.x,r)),c=this.ctx.transform.decompose(),u=new l;u=(u=(u=u.multiply(c.translate)).multiply(c.skew)).multiply(c.scale);for(var h,d,A,p=this.ctx.transform.applyToRectangle(new a(e.x,r,n.w,n.h)),m=u.applyToRectangle(new a(e.x,i,n.w,n.h)),b=g.call(this,m),S=[],E=0;E<b.length;E+=1)-1===S.indexOf(b[E])&&S.push(b[E]);if(y(S),this.autoPaging)for(var I=S[0],x=S[S.length-1],T=I;T<x+1;T++){this.pdf.setPage(T);var B=1===T?this.posY+this.margin[0]:this.margin[0],k=this.pdf.internal.pageSize.height-this.margin[2],P=k-this.margin[0],O=this.pdf.internal.pageSize.width-this.margin[1],F=O-this.margin[3],L=1===T?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(T-2)*P;if(0!==this.ctx.clip_path.length){var M=this.path;h=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(h,this.posX+this.margin[3],-1*L+B),_.call(this,"fill",!0),this.path=M}var D=v([JSON.parse(JSON.stringify(m))],this.posX+this.margin[3],-L+B+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(d=this.pdf.internal.getFontSize(),this.pdf.setFontSize(d*e.scale),this.lineWidth=(A=this.lineWidth)*e.scale);var N="text"!==this.autoPaging;if(N||D.y+D.h<=k){if(N||D.y>=B&&D.x<=O){var R=N?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||O-D.x)[0],U=v([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-L+B+this.ctx.prevPageLastElemOffset)[0],j=N&&(T>I||T<x)&&f.call(this);j&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],F,P,null).clip().discardPath()),this.pdf.text(R,U.x,U.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),j&&this.pdf.restoreGraphicsState()}}else D.y<k&&(this.ctx.prevPageLastElemOffset+=k-D.y);e.scale>=.01&&(this.pdf.setFontSize(d),this.lineWidth=A)}else e.scale>=.01&&(d=this.pdf.internal.getFontSize(),this.pdf.setFontSize(d*e.scale),this.lineWidth=(A=this.lineWidth)*e.scale),this.pdf.text(e.text,o.x+this.posX,o.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(d),this.lineWidth=A)},B=function(e,t,i,o){o=o||0,this.pdf.internal.out(n(e+(i=i||0))+" "+r(t+o)+" l")},k=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},P=function(e,n,r,s,a,l,c,u){this.pdf.internal.out([t(i(r+e)),t(o(s+n)),t(i(a+e)),t(o(l+n)),t(i(c+e)),t(o(u+n)),"c"].join(" "))},O=function(e,t,n,r){for(var i=2*Math.PI,o=Math.PI/2;t>n;)t-=i;var s=Math.abs(n-t);s<i&&r&&(s=i-s);for(var a=[],l=r?-1:1,c=t;s>1e-5;){var u=c+l*Math.min(s,o);a.push(F.call(this,e,c,u)),s-=Math.abs(u-c),c=u}return a},F=function(e,t,n){var r=(n-t)/2,i=e*Math.cos(r),o=e*Math.sin(r),s=i,a=-o,l=s*s+a*a,c=l+s*i+a*o,u=4/3*(Math.sqrt(2*l*c)-c)/(s*o-a*i),h=s-u*a,d=a+u*s,A=h,p=-d,f=r+t,g=Math.cos(f),m=Math.sin(f);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:h*g-d*m,y2:h*m+d*g,x3:A*g-p*m,y3:A*m+p*g,x4:e*Math.cos(n),y4:e*Math.sin(n)}},L=function(e){return 180*e/Math.PI},M=function(e,t,n,r,i,o){var s=e+.5*(n-e),l=t+.5*(r-t),c=i+.5*(n-i),u=o+.5*(r-o),h=Math.min(e,i,s,c),d=Math.max(e,i,s,c),A=Math.min(t,o,l,u),p=Math.max(t,o,l,u);return new a(h,A,d-h,p-A)},D=function(e,t,n,r,i,o,s,l){var c,u,h,d,A,p,f,g,m,v,y,b,_,w,C=n-e,S=r-t,E=i-n,I=o-r,x=s-i,T=l-o;for(u=0;u<41;u++)m=(f=(h=e+(c=u/40)*C)+c*((A=n+c*E)-h))+c*(A+c*(i+c*x-A)-f),v=(g=(d=t+c*S)+c*((p=r+c*I)-d))+c*(p+c*(o+c*T-p)-g),0==u?(y=m,b=v,_=m,w=v):(y=Math.min(y,m),b=Math.min(b,v),_=Math.max(_,m),w=Math.max(w,v));return new a(Math.round(y),Math.round(b),Math.round(_-y),Math.round(w-b))},N=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==e&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=e)}}}(WR.API),function(e){var t=function(e){var t,n,r,i,o,s,a,l,c,u;for(/[^\x00-\xFF]/.test(e),n=[],r=0,i=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;i>r;r+=4)0!==(o=(e.charCodeAt(r)<<24)+(e.charCodeAt(r+1)<<16)+(e.charCodeAt(r+2)<<8)+e.charCodeAt(r+3))?(s=(o=((o=((o=((o=(o-(u=o%85))/85)-(c=o%85))/85)-(l=o%85))/85)-(a=o%85))/85)%85,n.push(s+33,a+33,l+33,c+33,u+33)):n.push(122);return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+"~>"},n=function(e){var t,n,r,i,o,s=String,a="length",l=255,c="charCodeAt",u="slice",h="replace";for(e[u](-2),e=e[u](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),r=[],i=0,o=(e+=t="uuuuu"[u](e[a]%5||5))[a];o>i;i+=5)n=52200625*(e[c](i)-33)+614125*(e[c](i+1)-33)+7225*(e[c](i+2)-33)+85*(e[c](i+3)-33)+(e[c](i+4)-33),r.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(r,t[a]),s.fromCharCode.apply(s,r)},r=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",r=0;r<e.length;r+=2)n+=String.fromCharCode("0x"+(e[r]+e[r+1]));return n},i=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=pR(t)).reduce(function(e,t){return e+String.fromCharCode(t)},"")};e.processDataByFilters=function(e,o){var s=0,a=e||"",l=[];for("string"==typeof(o=o||[])&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case"ASCII85Decode":case"/ASCII85Decode":a=n(a),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":a=t(a),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":a=r(a),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":a=a.split("").map(function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)}).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":a=i(a),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:a,reverseChain:l.reverse().join(" ")}}}(WR.API),function(e){e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(e,t,n){var r=new XMLHttpRequest,i=0,o=function(e){var t=e.length,n=[],r=String.fromCharCode;for(i=0;i<t;i+=1)n.push(r(255&e.charCodeAt(i)));return n.join("")};if(r.open("GET",e,!t),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(r.onload=function(){n(200===r.status?o(this.responseText):void 0)}),r.send(null),t&&200===r.status)return o(r.responseText)}(e,t,n)}catch(e){}return r}(e,t,n)},e.loadImageFile=e.loadFile}(WR.API),function(e){function t(){return(fR.html2canvas?Promise.resolve(fR.html2canvas):Promise.resolve().then(n.t.bind(n,4213,23))).catch(function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))}).then(function(e){return e.default?e.default:e})}function r(){return(fR.DOMPurify?Promise.resolve(fR.DOMPurify):n.e(33).then(n.t.bind(n,5033,23))).catch(function(e){return Promise.reject(new Error("Could not load dompurify: "+e))}).then(function(e){return e.default?e.default:e})}var i=function(e){var t=BN(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},o=function(e,t){var n=document.createElement(e);for(var r in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[r]=t.style[r];return n},s=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return(r=r.setProgress(1,e,1,[e])).set(t)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(e,t){return e.__proto__=t||s.prototype,e},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(e,t){return this.then(function(){switch(t=t||function(e){switch(i(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.then(r).then(function(t){return this.set({src:o("div",{innerHTML:e,dompurify:t})})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}})},s.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=function e(t,n){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),i=t.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(e(i,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft},!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(t).then(function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(t).then(function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var o=0;o<n.length;++o){var s=n[o],a=s.src.find(function(e){return"truetype"===e.format});a&&t.addFont(a.url,s.ref.name,s.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,e(this.prop.container,i)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e})},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},s.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},s.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(e,t)})},s.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}})},s.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},s.prototype.set=function(e){if("object"!==i(e))return this;var t=Object.keys(e||{}).map(function(t){if(t in s.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},s.prototype.get=function(e,t){return this.then(function(){var n=e in s.template.prop?this.prop[e]:this.opt[e];return t?t(n):n})},s.prototype.setMargin=function(e){return this.then(function(){switch(i(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e}).then(this.setPageSize)},s.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then(function(){(e=e||WR.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e})},s.prototype.setProgress=function(e,t,n,r){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},s.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return n.updateProgress(null,e),t}).then(e,t).then(function(e){return n.updateProgress(1),e})})},s.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then,e&&(e=e.bind(this)),t&&(t=t.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:s.convert(Object.assign({},this),Promise.prototype),i=n.call(r,e,t);return s.convert(i,this.__proto__)},s.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},s.prototype.thenList=function(e){var t=this;return e.forEach(function(e){t=t.thenCore(e)}),t},s.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return s.convert(t,this)},s.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},s.prototype.error=function(e){return this.then(function(){throw new Error(e)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,WR.getPageSize=function(e,t,n){if("object"===BN(e)){var r=e;e=r.orientation,t=r.unit||t,n=r.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var i,o=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+t}var a,l=0,c=0;if(s.hasOwnProperty(o))l=s[o][1]/i,c=s[o][0]/i;else try{l=n[1],c=n[0]}catch(Cf){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e)e="p",c>l&&(a=c,c=l,l=a);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",l>c&&(a=c,c=l,l=a)}return{width:c,height:l,unit:t,k:i,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(QU):null;var n=new s(t);return t.worker?n:n.from(e).doCallback()}}(WR.API),WR.API.addJS=function(e){return XU=e,this.internal.events.subscribe("postPutResources",function(){$U=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+($U+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),YU=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+XU+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==$U&&void 0!==YU&&this.internal.out("/Names <</JavaScript "+$U+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=e.outline.render().split(/\r\n/),i=0;i<r.length;i++){var o=r[i],s=n.exec(o);null!=s&&e.internal.newObjectDeferredBegin(s[1],!1),e.internal.write(o)}if(this.outline.createNamedDestinations){var a=this.internal.pages.length,l=[];for(i=0;i<a;i++){var c=e.internal.newObject();l.push(c);var u=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var h=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<l.length;i++)e.internal.write("(page_"+(i+1)+")"+l[i]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+h+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var r={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(r),r},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<t.children.length;r++){var i=t.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(t)),r>0&&this.line("/Prev "+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[r+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var s=e.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+s.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var a=0;a<t.children.length;a++)this.renderItems(t.children[a])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}(WR.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,r,i,o,s){var a,l=this.decode.DCT_DECODE,c=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=this.__addimage__.isArrayBuffer(e=o||e)?new Uint8Array(e):e,(a=function(e){for(var n,r=256*e.charCodeAt(4)+e.charCodeAt(5),i=e.length,o={width:0,height:0,numcomponents:1},s=4;s<i;s+=2){if(-1!==t.indexOf(e.charCodeAt((s+=r)+1))){n=256*e.charCodeAt(s+5)+e.charCodeAt(s+6),o={width:256*e.charCodeAt(s+7)+e.charCodeAt(s+8),height:n,numcomponents:e.charCodeAt(s+9)};break}r=256*e.charCodeAt(s+2)+e.charCodeAt(s+3)}return o}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}c={data:e,width:a.width,height:a.height,colorSpace:s,bitsPerComponent:8,filter:l,index:n,alias:r}}return c}}(WR.API);var ZU,ej,tj,nj,rj,ij=function(){var e,t,n;function r(e){var t,n,r,i,o,s,a,l,c,u,h,d,A;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(t=this.readUInt32(),l=(function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),r=this.readUInt16()||100,o.delay=1e3*i/r,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===l&&(this.pos+=4,t-=4),e=(null!=o?o.data:void 0)||this.imgData,h=0;0<=t?h<t:h>t;0<=t?++h:--h)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(n=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>n)throw new Error("More transparent colors than palette size");if((c=n-this.transparency.indexed.length)>0)for(d=0;0<=c?d<c:d>c;0<=c?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":s=(u=this.read(t)).indexOf(0),a=String.fromCharCode.apply(String,u.slice(0,s)),this.text[a]=String.fromCharCode.apply(String,u.slice(s+1));break;case"IEND":return o&&this.animation.frames.push(o),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=4===(A=this.colorType)||6===A,this.pixelBitlength=this.bits*(this.colors+(this.hasAlphaChannel?1:0)),this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(e){var t,n,r=this.pixelBitlength/8,i=new Uint8Array(this.width*this.height*r),o=0,s=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function a(t,n,a,l){var c,u,h,d,A,p,f,g,m,v,y,b,_,w,C,S,E,I,x,T,B=Math.ceil((s.width-t)/a),k=Math.ceil((s.height-n)/l),P=s.width==B&&s.height==k;for(_=r*B,y=P?i:new Uint8Array(_*k),p=e.length,b=0,u=0;b<k&&o<p;){switch(e[o++]){case 0:for(d=S=0;S<_;d=S+=1)y[u++]=e[o++];break;case 1:for(d=E=0;E<_;d=E+=1)c=e[o++],A=d<r?0:y[u-r],y[u++]=(c+A)%256;break;case 2:for(d=I=0;I<_;d=I+=1)c=e[o++],h=(d-d%r)/r,y[u++]=((w=b&&y[(b-1)*_+h*r+d%r])+c)%256;break;case 3:for(d=x=0;x<_;d=x+=1)c=e[o++],h=(d-d%r)/r,A=d<r?0:y[u-r],w=b&&y[(b-1)*_+h*r+d%r],y[u++]=(c+Math.floor((A+w)/2))%256;break;case 4:for(d=T=0;T<_;d=T+=1)c=e[o++],h=(d-d%r)/r,0===b?w=C=0:(w=y[(b-1)*_+h*r+d%r],C=h&&y[(b-1)*_+(h-1)*r+d%r]),f=(A=d<r?0:y[u-r])+w-C,g=Math.abs(f-A),m=Math.abs(f-w),v=Math.abs(f-C),y[u++]=(c+(g<=m&&g<=v?A:m<=v?w:C))%256;break;default:throw new Error("Invalid filter algorithm: "+e[o-1])}if(!P){var O=((n+b*l)*s.width+t)*r,F=b*_;for(d=0;d<B;d+=1){for(var L=0;L<r;L+=1)i[O++]=y[F++];O+=(a-1)*r}}b++}}return e=function(e,t,n){var r=e.length,i=!t||n,o=!n||n.i;n||(n={}),t||(t=new kN(3*r));var s=function(e){var n=t.length;if(e>n){var r=new kN(Math.max(2*n,e));r.set(t),t=r}},a=n.f||0,l=n.p||0,c=n.b||0,u=n.l,h=n.d,d=n.m,A=n.n,p=8*r;do{if(!u){n.f=a=eR(e,l,1);var f=eR(e,l+1,3);if(l+=3,!f){var g=e[(x=nR(l)+4)-4]|e[x-3]<<8,m=x+g;if(m>r){if(o)throw"unexpected EOF";break}i&&s(c+g),t.set(e.subarray(x,m),c),n.b=c+=g,n.p=l=8*m;continue}if(1==f)u=YN,h=JN,d=9,A=5;else{if(2!=f)throw"invalid block type";var v=eR(e,l,31)+257,y=eR(e,l+10,15)+4,b=v+eR(e,l+5,31)+1;l+=14;for(var _=new kN(b),w=new kN(19),C=0;C<y;++C)w[MN[C]]=eR(e,l+3*C,7);l+=3*y;var S=ZN(w),E=(1<<S)-1;if(!o&&l+b*(S+7)>p)break;var I=GN(w,S,1);for(C=0;C<b;){var x,T=I[eR(e,l,E)];if(l+=15&T,(x=T>>>4)<16)_[C++]=x;else{var B=0,k=0;for(16==x?(k=3+eR(e,l,3),l+=2,B=_[C-1]):17==x?(k=3+eR(e,l,7),l+=3):18==x&&(k=11+eR(e,l,127),l+=7);k--;)_[C++]=B}}var P=_.subarray(0,v),O=_.subarray(v);d=ZN(P),A=ZN(O),u=GN(P,d,1),h=GN(O,A,1)}if(l>p)throw"unexpected EOF"}i&&s(c+131072);for(var F=(1<<d)-1,L=(1<<A)-1,M=d+A+18;o||l+M<p;){var D=(B=u[tR(e,l)&F])>>>4;if((l+=15&B)>p)throw"unexpected EOF";if(!B)throw"invalid length/literal";if(D<256)t[c++]=D;else{if(256==D){u=null;break}var N=D-254;D>264&&(N=eR(e,l,(1<<(j=FN[C=D-257]))-1)+RN[C],l+=j);var R=h[tR(e,l)&L],U=R>>>4;if(!R)throw"invalid distance";if(l+=15&R,O=QN[U],U>3){var j=LN[U];O+=tR(e,l)&(1<<j)-1,l+=j}if(l>p)throw"unexpected EOF";i&&s(c+131072);for(var Q=c+N;c<Q;c+=4)t[c]=t[c-O],t[c+1]=t[c+1-O],t[c+2]=t[c+2-O],t[c+3]=t[c+3-O];c=Q}}n.l=u,n.p=l,n.b=c,u&&(a=1,n.m=d,n.d=h,n.n=A)}while(!a);return c==t.length?t:rR(t,0,c)}((function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"}(t=e),t.subarray(2,-4)),n),1==s.interlaceMethod?(a(0,0,8,8),a(4,0,8,8),a(0,4,4,8),a(2,0,4,4),a(0,2,2,4),a(1,0,2,2),a(0,1,1,2)):a(0,0,1,1),i},r.prototype.decodePalette=function(){var e,t,n,r,i,o,s,a,l;for(n=this.palette,o=this.transparency.indexed||[],i=new Uint8Array((o.length||0)+n.length),r=0,e=0,t=s=0,a=n.length;s<a;t=s+=3)i[r++]=n[t],i[r++]=n[t+1],i[r++]=n[t+2],i[r++]=null!=(l=o[e++])?l:255;return i},r.prototype.copyToImageData=function(e,t){var n,r,i,o,s,a,l,c,u,h,d;if(r=this.colors,u=null,n=this.hasAlphaChannel,this.palette.length&&(u=null!=(d=this._decodedPalette)?d:this._decodedPalette=this.decodePalette(),r=4,n=!0),c=(i=e.data||e).length,s=u||t,o=a=0,1===r)for(;o<c;)l=u?4*t[o/4]:a,h=s[l++],i[o++]=h,i[o++]=h,i[o++]=h,i[o++]=n?s[l++]:255,a=l;else for(;o<c;)l=u?4*t[o/4]:a,i[o++]=s[l++],i[o++]=s[l++],i[o++]=s[l++],i[o++]=n?s[l++]:255,a=l},r.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e};var i=function(){if("[object Window]"===Object.prototype.toString.call(fR)){try{t=fR.document.createElement("canvas"),n=t.getContext("2d")}catch(e){return!1}return!0}return!1};return i(),e=function(e){var r;if(!0===i())return n.width=e.width,n.height=e.height,n.clearRect(0,0,e.width,e.height),n.putImageData(e,0,0),(r=new Image).src=t.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(t){var n,r,i,o,s,a,l,c;if(this.animation){for(c=[],r=s=0,a=(l=this.animation.frames).length;s<a;r=++s)i=t.createImageData((n=l[r]).width,n.height),o=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(i,o),n.imageData=i,c.push(n.image=e(i));return c}},r.prototype.renderFrame=function(e,t){var n,r,i;return n=(r=this.animation.frames)[t],i=r[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?e.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&e.putImageData(i.imageData,i.xOffset,i.yOffset),0===n.blendOp&&e.clearRect(n.xOffset,n.yOffset,n.width,n.height),e.drawImage(n.image,n.xOffset,n.yOffset)},r.prototype.animate=function(e){var t,n,r,i,o,s,a=this;return n=0,i=(s=this.animation).numFrames,r=s.frames,o=s.numPlays,(t=function(){var s,l;if(s=n++%i,l=r[s],a.renderFrame(e,s),i>1&&n/i<o)return a.animation._timeout=setTimeout(t,l.delay)})()},r.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},r.prototype.render=function(e){var t,n;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(n=t.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),t.putImageData(n,0,0))},r}();function oj(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],o=1<<1+(7&i);t++,t++;var s=null,a=null;i>>7&&(s=t,a=o,t+=3*o);var l=!0,c=[],u=0,h=null,d=0,A=null;for(this.width=n,this.height=r;l&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,A=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var p=e[t++];u=e[t++]|e[t++]<<8,h=e[t++],0==(1&p)&&(h=null),d=p>>2&7,t++;break;case 254:for(;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var f=e[t++]|e[t++]<<8,g=e[t++]|e[t++]<<8,m=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,y=e[t++],b=y>>6&1,_=1<<1+(7&y),w=s,C=a,S=!1;y>>7&&(S=!0,w=t,C=_,t+=3*_);var E=t;for(t++;;){var I;if(!((I=e[t++])>=0))throw Error("Invalid block size");if(0===I)break;t+=I}c.push({x:f,y:g,width:m,height:v,has_local_palette:S,palette_offset:w,palette_size:C,data_offset:E,data_length:t-E,transparent_index:h,interlaced:!!b,delay:u,disposal:d});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return A},this.frameInfo=function(e){if(e<0||e>=c.length)throw new Error("Frame index out of range.");return c[e]},this.decodeAndBlitFrameBGRA=function(t,r){var i=this.frameInfo(t),o=i.width*i.height,s=new Uint8Array(o);sj(e,i.data_offset,s,o);var a=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var c=i.width,u=n-c,h=c,d=4*(i.y*n+i.x),A=4*((i.y+i.height)*n+i.x),p=d,f=4*u;!0===i.interlaced&&(f+=4*n*7);for(var g=8,m=0,v=s.length;m<v;++m){var y=s[m];if(0===h&&(h=c,(p+=f)>=A&&(f=4*u+4*n*(g-1),p=d+(c+u)*(g<<1),g>>=1)),y===l)p+=4;else{var b=e[a+3*y],_=e[a+3*y+1];r[p++]=e[a+3*y+2],r[p++]=_,r[p++]=b,r[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(t,r){var i=this.frameInfo(t),o=i.width*i.height,s=new Uint8Array(o);sj(e,i.data_offset,s,o);var a=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var c=i.width,u=n-c,h=c,d=4*(i.y*n+i.x),A=4*((i.y+i.height)*n+i.x),p=d,f=4*u;!0===i.interlaced&&(f+=4*n*7);for(var g=8,m=0,v=s.length;m<v;++m){var y=s[m];if(0===h&&(h=c,(p+=f)>=A&&(f=4*u+4*n*(g-1),p=d+(c+u)*(g<<1),g>>=1)),y===l)p+=4;else{var b=e[a+3*y+1],_=e[a+3*y+2];r[p++]=e[a+3*y],r[p++]=b,r[p++]=_,r[p++]=255}--h}}}function sj(e,t,n,r){for(var i=e[t++],o=1<<i,s=o+1,a=s+1,l=i+1,c=(1<<l)-1,u=0,h=0,d=0,A=e[t++],p=new Int32Array(4096),f=null;;){for(;u<16&&0!==A;)h|=e[t++]<<u,u+=8,1===A?A=e[t++]:--A;if(u<l)break;var g=h&c;if(h>>=l,u-=l,g!==o){if(g===s)break;for(var m=g<a?g:f,v=0,y=m;y>o;)y=p[y]>>8,++v;var b=y;if(d+v+(m!==g?1:0)>r)return void mR.log("Warning, gif stream longer than expected.");n[d++]=b;var _=d+=v;for(m!==g&&(n[d++]=b),y=m;v--;)n[--_]=255&(y=p[y]),y>>=8;null!==f&&a<4096&&(p[a++]=f<<8|b,a>=c+1&&l<12&&(++l,c=c<<1|1)),f=g}else a=s+1,c=(1<<(l=i+1))-1,f=null}return d!==r&&mR.log("Warning, gif stream shorter than expected."),n}function aj(e){var t,n,r,i,o,s=Math.floor,a=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),h=new Array(65535),d=new Array(65535),A=new Array(64),p=new Array(64),f=[],g=0,m=7,v=new Array(64),y=new Array(64),b=new Array(64),_=new Array(256),w=new Array(2048),C=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],S=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],E=[0,1,2,3,4,5,6,7,8,9,10,11],I=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],x=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],B=[0,1,2,3,4,5,6,7,8,9,10,11],k=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],P=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function O(e,t){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var s=1;s<=e[o];s++)i[t[r]]=[],i[t[r]][0]=n,i[t[r]][1]=o,r++,n++;n*=2}return i}function F(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(g|=1<<m),n--,--m<0&&(255==g?(L(255),L(0)):L(g),m=7,g=0)}function L(e){f.push(e)}function M(e){L(e>>8&255),L(255&e)}function D(e,t,n,r,i){for(var o,s=i[0],a=i[240],l=function(e,t){var n,r,i,o,s,a,l,c,u,h,d=0;for(u=0;u<8;++u){var p=(n=e[d])+(c=e[d+7]),f=n-c,g=(r=e[d+1])+(l=e[d+6]),m=r-l,v=(i=e[d+2])+(a=e[d+5]),y=i-a,b=(o=e[d+3])+(s=e[d+4]),_=o-s,w=p+b,C=p-b,S=g+v,E=g-v;e[d]=w+S,e[d+4]=w-S;var I=.707106781*(E+C);e[d+2]=C+I,e[d+6]=C-I;var x=.382683433*((w=_+y)-(E=m+f)),T=.5411961*w+x,B=1.306562965*E+x,k=.707106781*(S=y+m),P=f+k,O=f-k;e[d+5]=O+T,e[d+3]=O-T,e[d+1]=P+B,e[d+7]=P-B,d+=8}for(d=0,u=0;u<8;++u){var F=(n=e[d])+(c=e[d+56]),L=n-c,M=(r=e[d+8])+(l=e[d+48]),D=r-l,N=(i=e[d+16])+(a=e[d+40]),R=i-a,U=(o=e[d+24])+(s=e[d+32]),j=o-s,Q=F+U,H=F-U,V=M+N,q=M-N;e[d]=Q+V,e[d+32]=Q-V;var K=.707106781*(q+H);e[d+16]=H+K,e[d+48]=H-K;var G=.382683433*((Q=j+R)-(q=D+L)),z=.5411961*Q+G,W=1.306562965*q+G,$=.707106781*(V=R+D),Y=L+$,X=L-$;e[d+40]=X+z,e[d+24]=X-z,e[d+8]=Y+W,e[d+56]=Y-W,d++}for(u=0;u<64;++u)A[u]=(h=e[u]*t[u])>0?h+.5|0:h-.5|0;return A}(e,t),c=0;c<64;++c)p[C[c]]=l[c];var u=p[0]-n;n=p[0],0==u?F(r[0]):(F(r[d[o=32767+u]]),F(h[o]));for(var f=63;f>0&&0==p[f];)f--;if(0==f)return F(s),n;for(var g,m=1;m<=f;){for(var v=m;0==p[m]&&m<=f;)++m;var y=m-v;if(y>=16){g=y>>4;for(var b=1;b<=g;++b)F(a);y&=15}F(i[(y<<4)+d[o=32767+p[m]]]),F(h[o]),m++}return 63!=f&&F(s),n}function N(e){e=Math.min(Math.max(e,1),100),o!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=s((t[n]*e+50)/100);r=Math.min(Math.max(r,1),255),a[C[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var h=s((i[o]*e+50)/100);h=Math.min(Math.max(h,1),255),l[C[o]]=h}for(var d=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],A=0,p=0;p<8;p++)for(var f=0;f<8;f++)c[A]=1/(a[C[A]]*d[p]*d[f]*8),u[A]=1/(l[C[A]]*d[p]*d[f]*8),A++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),o=e)}this.encode=function(e,o){o&&N(o),f=new Array,g=0,m=7,M(65496),M(65504),M(16),L(74),L(70),L(73),L(70),L(0),L(1),L(1),L(0),M(1),M(1),L(0),L(0),function(){M(65499),M(132),L(0);for(var e=0;e<64;e++)L(a[e]);L(1);for(var t=0;t<64;t++)L(l[t])}(),function(e,t){M(65472),M(17),L(8),M(t),M(e),L(3),L(1),L(17),L(0),L(2),L(17),L(1),L(3),L(17),L(1)}(e.width,e.height),function(){M(65476),M(418),L(0);for(var e=0;e<16;e++)L(S[e+1]);for(var t=0;t<=11;t++)L(E[t]);L(16);for(var n=0;n<16;n++)L(I[n+1]);for(var r=0;r<=161;r++)L(x[r]);L(1);for(var i=0;i<16;i++)L(T[i+1]);for(var o=0;o<=11;o++)L(B[o]);L(17);for(var s=0;s<16;s++)L(k[s+1]);for(var a=0;a<=161;a++)L(P[a])}(),M(65498),M(12),L(3),L(1),L(0),L(2),L(17),L(3),L(17),L(0),L(63),L(0);var s=0,h=0,d=0;g=0,m=7,this.encode.displayName="_encode_";for(var A,p,_,C,O,R,U,j,Q,H=e.data,V=e.height,q=4*e.width,K=0;K<V;){for(A=0;A<q;){for(O=q*K+A,U=-1,j=0,Q=0;Q<64;Q++)R=O+(j=Q>>3)*q+(U=4*(7&Q)),K+j>=V&&(R-=q*(K+1+j-V)),A+U>=q&&(R-=A+U-q+4),p=H[R++],_=H[R++],C=H[R++],v[Q]=(w[p]+w[_+256>>0]+w[C+512>>0]>>16)-128,y[Q]=(w[p+768>>0]+w[_+1024>>0]+w[C+1280>>0]>>16)-128,b[Q]=(w[p+1280>>0]+w[_+1536>>0]+w[C+1792>>0]>>16)-128;s=D(v,c,s,t,r),h=D(y,u,h,n,i),d=D(b,u,d,n,i),A+=32}K+=8}if(m>=0){var G=[];G[1]=m+1,G[0]=(1<<m+1)-1,F(G)}return M(65497),new Uint8Array(f)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)_[t]=e(t)}(),t=O(S,E),n=O(T,B),r=O(I,x),i=O(k,P),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var r=e;r<t;r++)d[32767+r]=n,h[32767+r]=[],h[32767+r][1]=n,h[32767+r][0]=r;for(var i=-(t-1);i<=-e;i++)d[32767+i]=n,h[32767+i]=[],h[32767+i][1]=n,h[32767+i][0]=t-1+i;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)w[e]=19595*e,w[e+256>>0]=38470*e,w[e+512>>0]=7471*e+32768,w[e+768>>0]=-11059*e,w[e+1024>>0]=-21709*e,w[e+1280>>0]=32768*e+8421375,w[e+1536>>0]=-27439*e,w[e+1792>>0]=-5329*e}(),N(e)}function lj(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function cj(e){function t(e){if(!e)throw Error("assert :P")}function n(e,t,n){for(var r=0;4>r;r++)if(e[t+r]!=n.charCodeAt(r))return!0;return!1}function r(e,t,n,r,i){for(var o=0;o<i;o++)e[t+o]=n[r+o]}function i(e,t,n,r){for(var i=0;i<r;i++)e[t+i]=n}function o(e){return new Int32Array(e)}function s(e,t){for(var n=[],r=0;r<e;r++)n.push(new t);return n}function a(e,t){var n=[];return function e(n,r,i){for(var o=i[r],s=0;s<o&&(n.push(i.length>r+1?[]:new t),!(i.length<r+1));s++)e(n[s],r+1,i)}(n,0,e),n}var l=function(){var e=this;function l(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function c(e,n,r,i,o){t(!(i%r));do{e[n+(i-=r)]=o}while(0<i)}function u(e,n,r,i,s){if(t(2328>=s),512>=s)var a=o(512);else if(null==(a=o(s)))return 0;return function(e,n,r,i,s,a){var u,d,A=n,p=1<<r,f=o(16),g=o(16);for(t(0!=s),t(null!=i),t(null!=e),t(0<r),d=0;d<s;++d){if(15<i[d])return 0;++f[i[d]]}if(f[0]==s)return 0;for(g[1]=0,u=1;15>u;++u){if(f[u]>1<<u)return 0;g[u+1]=g[u]+f[u]}for(d=0;d<s;++d)u=i[d],0<i[d]&&(a[g[u]++]=d);if(1==g[15])return(i=new h).g=0,i.value=a[0],c(e,A,1,p,i),p;var m,v=-1,y=p-1,b=0,_=1,w=1,C=1<<r;for(d=0,u=1,s=2;u<=r;++u,s<<=1){if(_+=w<<=1,0>(w-=f[u]))return 0;for(;0<f[u];--f[u])(i=new h).g=u,i.value=a[d++],c(e,A+b,s,C,i),b=l(b,u)}for(u=r+1,s=2;15>=u;++u,s<<=1){if(_+=w<<=1,0>(w-=f[u]))return 0;for(;0<f[u];--f[u]){if(i=new h,(b&y)!=v){for(A+=C,m=1<<(v=u)-r;15>v&&!(0>=(m-=f[v]));)++v,m<<=1;p+=C=1<<(m=v-r),e[n+(v=b&y)].g=m+r,e[n+v].value=A-n-v}i.g=u-r,i.value=a[d++],c(e,A+(b>>r),s,C,i),b=l(b,u)}}return _!=2*g[15]-1?0:p}(e,n,r,i,s,a)}function h(){this.value=this.g=0}function d(){this.value=this.g=0}function A(){this.G=s(5,h),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(Un,d)}function p(e,n,r,i){t(null!=e),t(null!=n),t(2147483648>i),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=r,e.Jd=n,e.Yc=r+i,e.Zc=4<=i?r+i-4+1:r,I(e)}function f(e,t){for(var n=0;0<t--;)n|=T(e,128)<<t;return n}function g(e,t){var n=f(e,t);return x(e)?-n:n}function m(e,n,r,i){var o,s=0;for(t(null!=e),t(null!=n),t(4294967288>i),e.Sb=i,e.Ra=0,e.u=0,e.h=0,4<i&&(i=4),o=0;o<i;++o)s+=n[r+o]<<8*o;e.Ra=s,e.bb=i,e.oa=n,e.pa=r}function v(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<Hn-8>>>0,++e.bb,e.u-=8;C(e)&&(e.h=1,e.u=0)}function y(e,n){if(t(0<=n),!e.h&&n<=Qn){var r=w(e)&jn[n];return e.u+=n,v(e),r}return e.h=1,e.u=0}function b(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function _(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function w(e){return e.Ra>>>(e.u&Hn-1)>>>0}function C(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Hn}function S(e,t){e.u=t,e.h=C(e)}function E(e){e.u>=Vn&&(t(e.u>=Vn),v(e))}function I(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function x(e){return f(e,1)}function T(e,t){var n=e.Ca;0>e.b&&I(e);var r=e.b,i=n*t>>>8,o=(e.I>>>r>i)+0;for(o?(n-=i,e.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return e.b-=r=7^i+qn[r],e.Ca=(n<<r)-1,o}function B(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n>>0&255}function k(e,t){return e[t+0]<<0|e[t+1]<<8}function P(e,t){return k(e,t)|e[t+2]<<16}function O(e,t){return k(e,t)|k(e,t+2)<<16}function F(e,n){var r=1<<n;return t(null!=e),t(0<n),e.X=o(r),null==e.X?0:(e.Mb=32-n,e.Xa=n,1)}function L(e,n){t(null!=e),t(null!=n),t(e.Xa==n.Xa),r(n.X,0,e.X,0,1<<n.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function D(e,n,r,i){t(null!=r),t(null!=i);var o=r[0],s=i[0];return 0==o&&(o=(e*s+n/2)/n),0==s&&(s=(n*o+e/2)/e),0>=o||0>=s?0:(r[0]=o,i[0]=s,1)}function N(e,t){return e+(1<<t)-1>>>t}function R(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function U(t,n){e[n]=function(n,r,i,o,s,a,l){var c;for(c=0;c<s;++c){var u=e[t](a[l+c-1],i,o+c);a[l+c]=R(n[r+c],u)}}}function j(){this.ud=this.hd=this.jd=0}function Q(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function H(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function V(e,t){return H(e+(e-t+.5>>1))}function q(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function K(e,t,n,r,i,o,s){for(r=o[s-1],n=0;n<i;++n)o[s+n]=r=R(e[t+n],r)}function G(e,t,n,r,i){var o;for(o=0;o<n;++o){var s=e[t+o],a=s>>8&255,l=16711935&(l=(l=16711935&s)+((a<<16)+a));r[i+o]=(4278255360&s)+l>>>0}}function z(e,t){t.jd=e>>0&255,t.hd=e>>8&255,t.ud=e>>16&255}function W(e,t,n,r,i,o){var s;for(s=0;s<r;++s){var a=t[n+s],l=a>>>8,c=a,u=255&(u=(u=a>>>16)+((e.jd<<24>>24)*(l<<24>>24)>>>5));c=255&(c=(c+=(e.hd<<24>>24)*(l<<24>>24)>>>5)+((e.ud<<24>>24)*(u<<24>>24)>>>5)),i[o+s]=(4278255360&a)+(u<<16)+c}}function $(t,n,r,i,o){e[n]=function(e,t,n,r,s,a,l,c,u){for(r=l;r<c;++r)for(l=0;l<u;++l)s[a++]=o(n[i(e[t++])])},e[t]=function(t,n,s,a,l,c,u){var h=8>>t.b,d=t.Ea,A=t.K[0],p=t.w;if(8>h)for(t=(1<<t.b)-1,p=(1<<h)-1;n<s;++n){var f,g=0;for(f=0;f<d;++f)f&t||(g=i(a[l++])),c[u++]=o(A[g&p]),g>>=h}else e["VP8LMapColor"+r](a,l,A,p,c,u,n,s,d)}}function Y(e,t,n,r,i){for(n=t+n;t<n;){var o=e[t++];r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=o>>0&255}}function X(e,t,n,r,i){for(n=t+n;t<n;){var o=e[t++];r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=o>>0&255,r[i++]=o>>24&255}}function J(e,t,n,r,i){for(n=t+n;t<n;){var o=(s=e[t++])>>16&240|s>>12&15,s=s>>0&240|s>>28&15;r[i++]=o,r[i++]=s}}function Z(e,t,n,r,i){for(n=t+n;t<n;){var o=(s=e[t++])>>16&248|s>>13&7,s=s>>5&224|s>>3&31;r[i++]=o,r[i++]=s}}function ee(e,t,n,r,i){for(n=t+n;t<n;){var o=e[t++];r[i++]=o>>0&255,r[i++]=o>>8&255,r[i++]=o>>16&255}}function te(e,t,n,i,o,s){if(0==s)for(n=t+n;t<n;)B(i,((s=e[t++])[0]>>24|s[1]>>8&65280|s[2]<<8&16711680|s[3]<<24)>>>0),o+=32;else r(i,o,e,t,n)}function ne(t,n){e[n][0]=e[t+"0"],e[n][1]=e[t+"1"],e[n][2]=e[t+"2"],e[n][3]=e[t+"3"],e[n][4]=e[t+"4"],e[n][5]=e[t+"5"],e[n][6]=e[t+"6"],e[n][7]=e[t+"7"],e[n][8]=e[t+"8"],e[n][9]=e[t+"9"],e[n][10]=e[t+"10"],e[n][11]=e[t+"11"],e[n][12]=e[t+"12"],e[n][13]=e[t+"13"],e[n][14]=e[t+"0"],e[n][15]=e[t+"0"]}function re(e){return e==Vr||e==qr||e==Kr||e==Gr}function ie(){this.eb=[],this.size=this.A=this.fb=0}function oe(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function se(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ie,this.f.kb=new oe,this.sd=null}function ae(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function le(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ce(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ue(e,t){var n=e.T,i=t.ba.f.RGBA,o=i.eb,s=i.fb+e.ka*i.A,a=mi[t.ba.S],l=e.y,c=e.O,u=e.f,h=e.N,d=e.ea,A=e.W,p=t.cc,f=t.dc,g=t.Mc,m=t.Nc,v=e.ka,y=e.ka+e.T,b=e.U,_=b+1>>1;for(0==v?a(l,c,null,null,u,h,d,A,u,h,d,A,o,s,null,null,b):(a(t.ec,t.fc,l,c,p,f,g,m,u,h,d,A,o,s-i.A,o,s,b),++n);v+2<y;v+=2)a(l,(c+=2*e.fa)-e.fa,l,c,p=u,f=h,g=d,m=A,u,h+=e.Rc,d,A+=e.Rc,o,(s+=2*i.A)-i.A,o,s,b);return c+=e.fa,e.j+y<e.o?(r(t.ec,t.fc,l,c,b),r(t.cc,t.dc,u,h,_),r(t.Mc,t.Nc,d,A,_),n--):1&y||a(l,c,null,null,u,h,d,A,u,h,d,A,o,s+i.A,null,null,b),n}function he(e,n,r){var i=e.F,o=[e.J];if(null!=i){var s=e.U,a=n.ba.S,l=a==jr||a==Kr;n=n.ba.f.RGBA;var c=[0],u=e.ka;c[0]=e.T,e.Kb&&(0==u?--c[0]:(--u,o[0]-=e.width),e.j+e.ka+e.T==e.o&&(c[0]=e.o-e.j-u));var h=n.eb;e=Er(i,o[0],e.width,s,c,h,(u=n.fb+u*n.A)+(l?0:3),n.A),t(r==c),e&&re(a)&&Cr(h,u,l,s,c,n.A)}return 0}function de(e){var t=e.ma,n=t.ba.S,r=11>n,i=n==Nr||n==Ur||n==jr||n==Qr||12==n||re(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Dn(t.Oa,e,i?11:12))return 0;if(i&&re(n)&&yn(),e.da)alert("todo:use_scaling");else{if(r){if(t.Ib=ce,e.Kb){if(t.memory=o(e.U+2*(n=e.U+1>>1)),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=ue,yn()}}else alert("todo:EmitYUV");i&&(t.Jb=he,r&&mn())}if(r&&!Pi){for(e=0;256>e;++e)Oi[e]=89858*(e-128)+Ii>>Ei,Mi[e]=-22014*(e-128)+Ii,Li[e]=-45773*(e-128),Fi[e]=113618*(e-128)+Ii>>Ei;for(e=xi;e<Ti;++e)Di[e-xi]=Ke(t=76283*(e-16)+Ii>>Ei,255),Ni[e-xi]=Ke(t+8>>4,15);Pi=1}return 1}function Ae(e){var n=e.ma,r=e.U,i=e.T;return t(!(1&e.ka)),0>=r||0>=i?0:(r=n.Ib(e,n),null!=n.Jb&&n.Jb(e,n,r),n.Dc+=r,1)}function pe(e){e.ma.memory=null}function fe(e,t,n,r){return 47!=y(e,8)?0:(t[0]=y(e,14)+1,n[0]=y(e,14)+1,r[0]=y(e,1),0!=y(e,3)?0:!e.h)}function ge(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+y(t,n)+1}function me(e,t){return 120<t?t-120:1<=(n=((n=Jr[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function ve(e,t,n){var r=w(n),i=e[t+=255&r].g-8;return 0<i&&(S(n,n.u+8),r=w(n),t+=e[t].value,t+=r&(1<<i)-1),S(n,n.u+e[t].g),e[t].value}function ye(e,n,r){return r.g+=e.g,r.value+=e.value<<n>>>0,t(8>=r.g),e.g}function be(e,n,r){var i=e.xc;return t((n=0==i?0:e.vc[e.md*(r>>i)+(n>>i)])<e.Wb),e.Ya[n]}function _e(e,n,i,o){var s=e.ab,a=e.c*n,l=e.C;n=l+n;var c=i,u=o;for(o=e.Ta,i=e.Ua;0<s--;){var h=e.gc[s],d=l,A=n,p=c,f=u,g=(u=o,c=i,h.Ea);switch(t(d<A),t(A<=h.nc),h.hc){case 2:zn(p,f,(A-d)*g,u,c);break;case 0:var m=d,v=A,y=u,b=c,_=(I=h).Ea;0==m&&(Kn(p,f,null,null,1,y,b),K(p,f+1,0,0,_-1,y,b+1),f+=_,b+=_,++m);for(var w=1<<I.b,C=w-1,S=N(_,I.b),E=I.K,I=I.w+(m>>I.b)*S;m<v;){var x=E,T=I,B=1;for(Gn(p,f,y,b-_,1,y,b);B<_;){var k=(B&~C)+w;k>_&&(k=_),(0,Jn[x[T++]>>8&15])(p,f+ +B,y,b+B-_,k-B,y,b+B),B=k}f+=_,b+=_,++m&C||(I+=S)}A!=h.nc&&r(u,c-g,u,c+(A-d-1)*g,g);break;case 1:for(g=p,v=f,_=(p=h.Ea)-(b=p&~(y=(f=1<<h.b)-1)),m=N(p,h.b),w=h.K,h=h.w+(d>>h.b)*m;d<A;){for(C=w,S=h,E=new j,I=v+b,x=v+p;v<I;)z(C[S++],E),Zn(E,g,v,f,u,c),v+=f,c+=f;v<x&&(z(C[S++],E),Zn(E,g,v,_,u,c),v+=_,c+=_),++d&y||(h+=m)}break;case 3:if(p==u&&f==c&&0<h.b){for(v=u,p=g=c+(A-d)*g-(b=(A-d)*N(h.Ea,h.b)),f=u,y=c,m=[],b=(_=b)-1;0<=b;--b)m[b]=f[y+b];for(b=_-1;0<=b;--b)v[p+b]=m[b];Wn(h,d,A,u,g,u,c)}else Wn(h,d,A,p,f,u,c)}c=o,u=i}u!=i&&r(o,i,c,u,a)}function we(e,n){var r=e.V,i=e.Ba+e.c*e.C,o=n-e.C;if(t(n<=e.l.o),t(16>=o),0<o){var s=e.l,a=e.Ta,l=e.Ua,c=s.width;if(_e(e,o,r,i),o=l=[l],t((r=e.C)<(i=n)),t(s.v<s.va),i>s.o&&(i=s.o),r<s.j){var u=s.j-r;r=s.j,o[0]+=u*c}if(r>=i?r=0:(o[0]+=4*s.v,s.ka=r-s.j,s.U=s.va-s.v,s.T=i-r,r=1),r){if(l=l[0],11>(r=e.ca).S){var h=r.f.RGBA,d=(i=r.S,o=s.U,s=s.T,u=h.eb,h.A),A=s;for(h=h.fb+e.Ma*h.A;0<A--;){var p=a,f=l,g=o,m=u,v=h;switch(i){case Dr:er(p,f,g,m,v);break;case Nr:tr(p,f,g,m,v);break;case Vr:tr(p,f,g,m,v),Cr(m,v,0,g,1,0);break;case Rr:ir(p,f,g,m,v);break;case Ur:te(p,f,g,m,v,1);break;case qr:te(p,f,g,m,v,1),Cr(m,v,0,g,1,0);break;case jr:te(p,f,g,m,v,0);break;case Kr:te(p,f,g,m,v,0),Cr(m,v,1,g,1,0);break;case Qr:nr(p,f,g,m,v);break;case Gr:nr(p,f,g,m,v),Sr(m,v,g,1,0);break;case Hr:rr(p,f,g,m,v);break;default:t(0)}l+=c,h+=d}e.Ma+=s}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=r.height)}}e.C=n,t(e.C<=e.i)}function Ce(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,r=e.Ya[t].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function Se(e,n,r,i,o,s){if(0!=e.Z){var a=e.qd,l=e.rd;for(t(null!=gi[e.Z]);n<r;++n)gi[e.Z](a,l,i,o,i,o,s),a=i,l=o,o+=s;e.qd=a,e.rd=l}}function Ee(e,n){var r=e.l.ma,i=0==r.Z||1==r.Z?e.l.j:e.C;if(i=e.C<i?i:e.C,t(n<=e.l.o),n>i){var o=e.l.width,s=r.ca,a=r.tb+o*i,l=e.V,c=e.Ba+e.c*i,u=e.gc;t(1==e.ab),t(3==u[0].hc),Yn(u[0],i,n,l,c,s,a),Se(r,i,n,s,a,o)}e.C=e.Ma=n}function Ie(e,n,r,i,o,s,a){var l=e.$/i,c=e.$%i,u=e.m,h=e.s,d=r+e.$,A=d;o=r+i*o;var p=r+i*s,f=280+h.ua,g=e.Pb?l:16777216,m=0<h.ua?h.Wa:null,v=h.wc,y=d<p?be(h,c,l):null;t(e.C<s),t(p<=o);var b=!1;e:for(;;){for(;b||d<p;){var _=0;if(l>=g){var I=d-r;t((g=e).Pb),g.wd=g.m,g.xd=I,0<g.s.ua&&L(g.s.Wa,g.s.vb),g=l+ei}if(c&v||(y=be(h,c,l)),t(null!=y),y.Qb&&(n[d]=y.qb,b=!0),!b)if(E(u),y.jc){I=n;var x=d,T=y.pd[w(_=u)&Un-1];t(y.jc),256>T.g?(S(_,_.u+T.g),I[x]=T.value,_=0):(S(_,_.u+T.g-256),t(256<=T.value),_=T.value),0==_&&(b=!0)}else _=ve(y.G[0],y.H[0],u);if(u.h)break;if(b||256>_){if(!b)if(y.nd)n[d]=(y.qb|_<<8)>>>0;else{if(E(u),b=ve(y.G[1],y.H[1],u),E(u),I=ve(y.G[2],y.H[2],u),x=ve(y.G[3],y.H[3],u),u.h)break;n[d]=(x<<24|b<<16|_<<8|I)>>>0}if(b=!1,++d,++c>=i&&(c=0,++l,null!=a&&l<=s&&!(l%16)&&a(e,l),null!=m))for(;A<d;)_=n[A++],m.X[(506832829*_&4294967295)>>>m.Mb]=_}else if(280>_){if(_=ge(_-256,u),I=ve(y.G[4],y.H[4],u),E(u),I=me(i,I=ge(I,u)),u.h)break;if(d-r<I||o-d<_)break e;for(x=0;x<_;++x)n[d+x]=n[d+x-I];for(d+=_,c+=_;c>=i;)c-=i,++l,null!=a&&l<=s&&!(l%16)&&a(e,l);if(t(d<=o),c&v&&(y=be(h,c,l)),null!=m)for(;A<d;)_=n[A++],m.X[(506832829*_&4294967295)>>>m.Mb]=_}else{if(!(_<f))break e;for(b=_-280,t(null!=m);A<d;)_=n[A++],m.X[(506832829*_&4294967295)>>>m.Mb]=_;_=d,t(!(b>>>(I=m).Xa)),n[_]=I.X[b],b=!0}b||t(u.h==C(u))}if(e.Pb&&u.h&&d<o)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&L(e.s.vb,e.s.Wa);else{if(u.h)break e;null!=a&&a(e,l>s?s:l),e.a=0,e.$=d-r}return 1}return e.a=3,0}function xe(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;null!=n&&(n.X=null),e.vb=null,t(null!=e)}function Te(){var t=new an;return null==t?null:(t.a=0,t.xb=fi,ne("Predictor","VP8LPredictors"),ne("Predictor","VP8LPredictors_C"),ne("PredictorAdd","VP8LPredictorsAdd"),ne("PredictorAdd","VP8LPredictorsAdd_C"),zn=G,Zn=W,er=Y,tr=X,nr=J,rr=Z,ir=ee,e.VP8LMapColor32b=$n,e.VP8LMapColor8b=Xn,t)}
vendor: 5,706 bytes, line 1
1function Be(e,n,r,a,l){var c=1,d=[e],p=[n],f=a.m,g=a.s,m=null,v=0;e:for(;;){if(r)for(;c&&y(f,1);){var b=d,_=p,C=a,I=1,x=C.m,T=C.gc[C.ab],B=y(x,2);if(C.Oc&1<<B)c=0;else{switch(C.Oc|=1<<B,T.hc=B,T.Ea=b[0],T.nc=_[0],T.K=[null],++C.ab,t(4>=C.ab),B){case 0:case 1:T.b=y(x,3)+2,I=Be(N(T.Ea,T.b),N(T.nc,T.b),0,C,T.K),T.K=T.K[0];break;case 3:var k,P=y(x,8)+1,O=16<P?0:4<P?1:2<P?2:3;if(b[0]=N(T.Ea,O),T.b=O,k=I=Be(P,1,0,C,T.K)){var L,M=P,D=T,U=1<<(8>>D.b),j=o(U);if(null==j)k=0;else{var Q=D.K[0],H=D.w;for(j[0]=D.K[0][0],L=1;L<1*M;++L)j[L]=R(Q[H+L],j[L-1]);for(;L<4*U;++L)j[L]=0;D.K[0]=null,D.K[0]=j,k=1}}I=k;break;case 2:break;default:t(0)}c=I}}if(d=d[0],p=p[0],c&&y(f,1)&&!(c=1<=(v=y(f,4))&&11>=v)){a.a=3;break e}var V;if(V=c)t:{var q,K,G,z=a,W=d,$=p,Y=v,X=r,J=z.m,Z=z.s,ee=[null],te=1,ne=0,re=Zr[Y];n:for(;;){if(X&&y(J,1)){var ie=y(J,3)+2,oe=N(W,ie),se=N($,ie),ae=oe*se;if(!Be(oe,se,0,z,ee))break n;for(ee=ee[0],Z.xc=ie,q=0;q<ae;++q){var le=ee[q]>>8&65535;ee[q]=le,le>=te&&(te=le+1)}}if(J.h)break n;for(K=0;5>K;++K){var ce=$r[K];!K&&0<Y&&(ce+=1<<Y),ne<ce&&(ne=ce)}var ue=s(te*re,h),he=te,de=s(he,A);if(null==de)var Ae=null;else t(65536>=he),Ae=de;var pe=o(ne);if(null==Ae||null==pe||null==ue){z.a=1;break n}var fe=ue;for(q=G=0;q<te;++q){var ge=Ae[q],me=ge.G,ve=ge.H,be=0,_e=1,we=0;for(K=0;5>K;++K){ce=$r[K],me[K]=fe,ve[K]=G,!K&&0<Y&&(ce+=1<<Y);r:{var Ce,Se=ce,Ee=z,Te=pe,ke=fe,Pe=G,Oe=0,Fe=Ee.m,Le=y(Fe,1);if(i(Te,0,0,Se),Le){var Me=y(Fe,1)+1,De=y(Fe,1),Ne=y(Fe,0==De?1:8);Te[Ne]=1,2==Me&&(Te[Ne=y(Fe,8)]=1);var Re=1}else{var Ue=o(19),je=y(Fe,4)+4;if(19<je){Ee.a=3;var Qe=0;break r}for(Ce=0;Ce<je;++Ce)Ue[Xr[Ce]]=y(Fe,3);var He=void 0,Ve=void 0,qe=Ee,Ke=Ue,Ge=Se,ze=Te,We=0,$e=qe.m,Ye=8,Xe=s(128,h);i:for(;u(Xe,0,7,Ke,19);){if(y($e,1)){var Je=2+2*y($e,3);if((He=2+y($e,Je))>Ge)break i}else He=Ge;for(Ve=0;Ve<Ge&&He--;){E($e);var Ze=Xe[0+(127&w($e))];S($e,$e.u+Ze.g);var et=Ze.value;if(16>et)ze[Ve++]=et,0!=et&&(Ye=et);else{var tt=16==et,nt=et-16,rt=Wr[nt],it=y($e,zr[nt])+rt;if(Ve+it>Ge)break i;for(var ot=tt?Ye:0;0<it--;)ze[Ve++]=ot}}We=1;break i}We||(qe.a=3),Re=We}(Re=Re&&!Fe.h)&&(Oe=u(ke,Pe,8,Te,Se)),Re&&0!=Oe?Qe=Oe:(Ee.a=3,Qe=0)}if(0==Qe)break n;if(_e&&1==Yr[K]&&(_e=0==fe[G].g),be+=fe[G].g,G+=Qe,3>=K){var st,at=pe[0];for(st=1;st<ce;++st)pe[st]>at&&(at=pe[st]);we+=at}}if(ge.nd=_e,ge.Qb=0,_e&&(ge.qb=(me[3][ve[3]+0].value<<24|me[1][ve[1]+0].value<<16|me[2][ve[2]+0].value)>>>0,0==be&&256>me[0][ve[0]+0].value&&(ge.Qb=1,ge.qb+=me[0][ve[0]+0].value<<8)),ge.jc=!ge.Qb&&6>we,ge.jc){var lt,ct=ge;for(lt=0;lt<Un;++lt){var ut=lt,ht=ct.pd[ut],dt=ct.G[0][ct.H[0]+ut];256<=dt.value?(ht.g=dt.g+256,ht.value=dt.value):(ht.g=0,ht.value=0,ut>>=ye(dt,8,ht),ut>>=ye(ct.G[1][ct.H[1]+ut],16,ht),ut>>=ye(ct.G[2][ct.H[2]+ut],0,ht),ye(ct.G[3][ct.H[3]+ut],24,ht))}}}Z.vc=ee,Z.Wb=te,Z.Ya=Ae,Z.yc=ue,V=1;break t}V=0}if(!(c=V)){a.a=3;break e}if(0<v){if(g.ua=1<<v,!F(g.Wa,v)){a.a=1,c=0;break e}}else g.ua=0;var At=a,pt=d,ft=p,gt=At.s,mt=gt.xc;if(At.c=pt,At.i=ft,gt.md=N(pt,mt),gt.wc=0==mt?-1:(1<<mt)-1,r){a.xb=pi;break e}if(null==(m=o(d*p))){a.a=1,c=0;break e}c=(c=Ie(a,m,0,d,p,p,null))&&!f.h;break e}return c?(null!=l?l[0]=m:(t(null==m),t(r)),a.$=0,r||xe(g)):xe(g),c}function ke(e,n){var r=e.c*e.i,i=r+n+16*n;return t(e.c<=n),e.V=o(i),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+r+n,1)}function Pe(e,n){var r=e.C,i=n-r,o=e.V,s=e.Ba+e.c*r;for(t(n<=e.l.o);0<i;){var a=16<i?16:i,l=e.l.ma,c=e.l.width,u=c*a,h=l.ca,d=l.tb+c*r,A=e.Ta,p=e.Ua;_e(e,a,o,s),Ir(A,p,h,d,u),Se(l,r,r+a,h,d,c),i-=a,o+=a*e.c,r+=a}t(r==n),e.C=e.Ma=n}function Oe(){this.ub=this.yd=this.td=this.Rb=0}function Fe(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Le(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Me(){this.Yb=function(){var e=[];return function e(t,n,r){for(var i=r[n],o=0;o<i&&(t.push(r.length>n+1?[]:0),!(r.length<n+1));o++)e(t[o],n+1,r)}(e,0,[3,11]),e}()}function De(){this.jb=o(3),this.Wc=a([4,8],Me),this.Xc=a([4,17],Me)}function Ne(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Re(){this.ld=this.La=this.dd=this.tc=0}function Ue(){this.Na=this.la=0}function je(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Qe(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function He(){this.uc=this.M=this.Nb=0,this.wa=Array(new Re),this.Y=0,this.ya=Array(new Qe),this.aa=0,this.l=new Ge}function Ve(){this.y=o(16),this.f=o(8),this.ea=o(8)}function qe(){this.cb=this.a=0,this.sc="",this.m=new b,this.Od=new Oe,this.Kc=new Fe,this.ed=new Ne,this.Qa=new Le,this.Ic=this.$c=this.Aa=0,this.D=new He,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,b),this.ia=0,this.pb=s(4,je),this.Pa=new De,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ve),this.Hd=0,this.rb=Array(new Ue),this.sb=0,this.wa=Array(new Re),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Qe),this.L=this.aa=0,this.gd=a([4,2],Re),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ke(e,t){return 0>e?0:e>t?t:e}function Ge(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ze(){var e=new qe;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,ri||(ri=Xe)),e}function We(e,t,n){return 0==e.a&&(e.a=t,e.sc=n,e.cb=0),0}
vendor: 30,490 bytes, line 1
1function $e(e,t,n){return 3<=n&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Ye(e,n){if(null==e)return 0;if(e.a=0,e.sc="OK",null==n)return We(e,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,o=n.w,s=n.ha;if(4>s)return We(e,7,"Truncated header.");var a=r[o+0]|r[o+1]<<8|r[o+2]<<16,l=e.Od;if(l.Rb=!(1&a),l.td=a>>1&7,l.yd=a>>4&1,l.ub=a>>5,3<l.td)return We(e,3,"Incorrect keyframe parameters.");if(!l.yd)return We(e,4,"Frame not displayable.");o+=3,s-=3;var c=e.Kc;if(l.Rb){if(7>s)return We(e,7,"cannot parse picture header");if(!$e(r,o,s))return We(e,3,"Bad code word");c.c=16383&(r[o+4]<<8|r[o+3]),c.Td=r[o+4]>>6,c.i=16383&(r[o+6]<<8|r[o+5]),c.Ud=r[o+6]>>6,o+=7,s-=7,e.za=c.c+15>>4,e.Ub=c.i+15>>4,n.width=c.c,n.height=c.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,i((a=e.Pa).jb,0,255,a.jb.length),t(null!=(a=e.Qa)),a.Cb=0,a.Bb=0,a.Fb=1,i(a.Zb,0,0,a.Zb.length),i(a.Lb,0,0,a.Lb)}if(l.ub>s)return We(e,7,"bad partition length");p(a=e.m,r,o,l.ub),o+=l.ub,s-=l.ub,l.Rb&&(c.Ld=x(a),c.Kd=x(a)),c=e.Qa;var u,h=e.Pa;if(t(null!=a),t(null!=c),c.Cb=x(a),c.Cb){if(c.Bb=x(a),x(a)){for(c.Fb=x(a),u=0;4>u;++u)c.Zb[u]=x(a)?g(a,7):0;for(u=0;4>u;++u)c.Lb[u]=x(a)?g(a,6):0}if(c.Bb)for(u=0;3>u;++u)h.jb[u]=x(a)?f(a,8):255}else c.Bb=0;if(a.Ka)return We(e,3,"cannot parse segment header");if((c=e.ed).zd=x(a),c.Tb=f(a,6),c.wb=f(a,3),c.Pc=x(a),c.Pc&&x(a)){for(h=0;4>h;++h)x(a)&&(c.vd[h]=g(a,6));for(h=0;4>h;++h)x(a)&&(c.od[h]=g(a,6))}if(e.L=0==c.Tb?0:c.zd?1:2,a.Ka)return We(e,3,"cannot parse filter header");var d=s;if(s=u=o,o=u+d,c=d,e.Xb=(1<<f(e.m,2))-1,d<3*(h=e.Xb))r=7;else{for(u+=3*h,c-=3*h,d=0;d<h;++d){var A=r[s+0]|r[s+1]<<8|r[s+2]<<16;A>c&&(A=c),p(e.Jc[+d],r,u,A),u+=A,c-=A,s+=3}p(e.Jc[+h],r,u,c),r=u<o?0:5}if(0!=r)return We(e,r,"cannot parse partitions");for(r=f(u=e.m,7),s=x(u)?g(u,4):0,o=x(u)?g(u,4):0,c=x(u)?g(u,4):0,h=x(u)?g(u,4):0,u=x(u)?g(u,4):0,d=e.Qa,A=0;4>A;++A){if(d.Cb){var m=d.Zb[A];d.Fb||(m+=r)}else{if(0<A){e.pb[A]=e.pb[0];continue}m=r}var v=e.pb[A];v.Sc[0]=ti[Ke(m+s,127)],v.Sc[1]=ni[Ke(m+0,127)],v.Eb[0]=2*ti[Ke(m+o,127)],v.Eb[1]=101581*ni[Ke(m+c,127)]>>16,8>v.Eb[1]&&(v.Eb[1]=8),v.Qc[0]=ti[Ke(m+h,117)],v.Qc[1]=ni[Ke(m+u,127)],v.lc=m+u}if(!l.Rb)return We(e,4,"Not a key frame.");for(x(a),l=e.Pa,r=0;4>r;++r){for(s=0;8>s;++s)for(o=0;3>o;++o)for(c=0;11>c;++c)h=T(a,ci[r][s][o][c])?f(a,8):ai[r][s][o][c],l.Wc[r][s].Yb[o][c]=h;for(s=0;17>s;++s)l.Xc[r][s]=l.Wc[r][ui[s]]}return e.kc=x(a),e.kc&&(e.Bd=f(a,8)),e.cb=1}function Xe(e,t,n,r,i,o,s){var a=t[i].Yb[n];for(n=0;16>i;++i){if(!T(e,a[n+0]))return i;for(;!T(e,a[n+1]);)if(a=t[++i].Yb[0],n=0,16==i)return 16;var l=t[i+1].Yb;if(T(e,a[n+2])){var c=e,u=0;if(T(c,(d=a)[(h=n)+3]))if(T(c,d[h+6])){for(a=0,h=2*(u=T(c,d[h+8]))+(d=T(c,d[h+9+u])),u=0,d=ii[h];d[a];++a)u+=u+T(c,d[a]);u+=3+(8<<h)}else T(c,d[h+7])?(u=7+2*T(c,165),u+=T(c,145)):u=5+T(c,159);else u=T(c,d[h+4])?3+T(c,d[h+5]):2;a=l[2]}else u=1,a=l[1];l=s+oi[i],0>(c=e).b&&I(c);var h,d=c.b,A=(h=c.Ca>>1)-(c.I>>d)>>31;--c.b,c.Ca+=A,c.Ca|=1,c.I-=(h+1&A)<<d,o[l]=((u^A)-A)*r[(0<i)+0]}return 16}function Je(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,i(e.zc,0,0,e.zc.length),e.ja=0}function Ze(e,n){if(null==e)return 0;if(null==n)return We(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Ye(e,n))return 0;if(t(e.cb),null==n.ac||n.ac(n)){n.ob&&(e.L=0);var a=Ui[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=n.v-a>>4,e.zb=n.j-a>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+a>>4,e.Hb=n.va+15+a>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var l=e.ed;for(a=0;4>a;++a){var c;if(e.Qa.Cb){var u=e.Qa.Lb[a];e.Qa.Fb||(u+=l.Tb)}else u=l.Tb;for(c=0;1>=c;++c){var h=e.gd[a][c],d=u;if(l.Pc&&(d+=l.vd[0],c&&(d+=l.od[0])),0<(d=0>d?0:63<d?63:d)){var A=d;0<l.wb&&(A=4<l.wb?A>>2:A>>1)>9-l.wb&&(A=9-l.wb),1>A&&(A=1),h.dd=A,h.tc=2*d+A,h.ld=40<=d?2:15<=d?1:0}else h.tc=0;h.La=c}}}a=0}else We(e,6,"Frame setup failed"),a=e.a;if(a=0==a){if(a){e.$c=0,0<e.Aa||(e.Ic=Qi);e:{l=4*(A=e.za);var p=32*A,f=A+1,g=0<e.L?A*(0<e.Aa?2:1):0,m=(2==e.Aa?2:1)*A;if((h=l+832+(c=3*(16*(a=e.Ic)+Ui[e.L])/2*p)+(u=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=h)a=0;else{if(h>e.Vb){if(e.Vb=0,e.Ec=o(h),e.Fc=0,null==e.Ec){a=We(e,1,"no memory during frame initialization.");break e}e.Vb=h}d=e.Fc,e.Ac=h=e.Ec,e.Bc=d,d+=l,e.Gd=s(p,Ve),e.Hd=0,e.rb=s(f+1,Ue),e.sb=1,e.wa=g?s(g,Re):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=A),t(!0),e.oc=h,e.pc=d,d+=832,e.ya=s(m,Qe),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=A),e.R=16*A,e.B=8*A,A=(p=Ui[e.L])*e.R,p=p/2*e.B,e.sa=h,e.ta=d+A,e.qa=e.sa,e.ra=e.ta+16*a*e.R+p,e.Ha=e.qa,e.Ia=e.ra+8*a*e.B+p,e.$c=0,d+=c,e.mb=u?h:null,e.nb=u?d:null,t(d+u<=e.Fc+e.Vb),Je(e),i(e.Ac,e.Bc,0,l),a=1}}if(a){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!Pr){for(a=-255;255>=a;++a)xr[255+a]=0>a?-a:a;for(a=-1020;1020>=a;++a)Tr[1020+a]=-128>a?-128:127<a?127:a;for(a=-112;112>=a;++a)Br[112+a]=-16>a?-16:15<a?15:a;for(a=-255;510>=a;++a)kr[255+a]=0>a?0:255<a?255:a;Pr=1}or=ct,sr=ot,lr=st,cr=at,ur=lt,ar=it,hr=Wt,dr=$t,Ar=Jt,pr=Zt,fr=Yt,gr=Xt,mr=en,vr=tn,yr=Ht,br=Vt,_r=qt,wr=Kt,di[0]=St,di[1]=ht,di[2]=wt,di[3]=Ct,di[4]=Et,di[5]=xt,di[6]=It,di[7]=Tt,di[8]=kt,di[9]=Bt,hi[0]=mt,hi[1]=At,hi[2]=pt,hi[3]=ft,hi[4]=vt,hi[5]=yt,hi[6]=bt,Ai[0]=Lt,Ai[1]=dt,Ai[2]=Pt,Ai[3]=Ot,Ai[4]=Dt,Ai[5]=Mt,Ai[6]=Nt,a=1}else a=0}a&&(a=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var s,a=e.Jc[e.M&e.Xb],l=e.m,c=e;for(s=0;s<c.za;++s){var u=l,h=c,d=h.Ac,A=h.Bc+4*s,p=h.zc,f=h.ya[h.aa+s];if(f.$b=h.Qa.Bb?T(u,h.Pa.jb[0])?2+T(u,h.Pa.jb[2]):T(u,h.Pa.jb[1]):0,h.kc&&(f.Ad=T(u,h.Bd)),f.Za=!T(u,145)+0,f.Za){var g=f.Ob,m=0;for(h=0;4>h;++h){var v,y=p[0+h];for(v=0;4>v;++v){for(var b=si[T(u,(y=li[d[A+v]][y])[0])];0<b;)b=si[2*b+T(u,y[b])];d[A+v]=y=-b}r(g,m,d,A,4),m+=4,p[0+h]=y}}else y=T(u,156)?T(u,128)?1:3:T(u,163)?2:0,f.Ob[0]=y,i(d,A,y,4),i(p,0,y,4);f.Dd=T(u,142)?T(u,114)?T(u,183)?1:3:2:0}if(c.m.Ka)return We(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(c=a,u=(l=e).rb[l.sb-1],d=l.rb[l.sb+l.ja],s=l.ya[l.aa+l.ja],A=l.kc?s.Ad:0)u.la=d.la=0,s.Za||(u.Na=d.Na=0),s.Hc=0,s.Gc=0,s.ia=0;else{var _,w;if(u=d,d=c,A=l.Pa.Xc,f=l.pb[(p=l.ya[l.aa+l.ja]).$b],m=l.rb[l.sb-1],y=v=0,i(h=p.ad,g=0,0,384),p.Za)var C=0,S=A[3];else{b=o(16);var E=u.Na+m.Na;if(E=ri(d,A[1],E,f.Eb,0,b,0),u.Na=m.Na=(0<E)+0,1<E)or(b,0,h,g);else{var I=b[0]+3>>3;for(b=0;256>b;b+=16)h[g+b]=I}C=1,S=A[0]}var x=15&u.la,B=15&m.la;for(b=0;4>b;++b){var k=1&B;for(I=w=0;4>I;++I)x=x>>1|(k=(E=ri(d,S,E=k+(1&x),f.Sc,C,h,g))>C)<<7,w=w<<2|(3<E?3:1<E?2:0!=h[g+0]),g+=16;x>>=4,B=B>>1|k<<7,v=(v<<8|w)>>>0}for(S=x,C=B>>4,_=0;4>_;_+=2){for(w=0,x=u.la>>4+_,B=m.la>>4+_,b=0;2>b;++b){for(k=1&B,I=0;2>I;++I)x=x>>1|(k=0<(E=ri(d,A[2],E=k+(1&x),f.Qc,0,h,g)))<<3,w=w<<2|(3<E?3:1<E?2:0!=h[g+0]),g+=16;x>>=2,B=B>>1|k<<5}y|=w<<4*_,S|=x<<4<<_,C|=(240&B)<<_}u.la=S,m.la=C,p.Hc=v,p.Gc=y,p.ia=43690&y?0:f.ia,A=!(v|y)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[s.$b][s.Za],l.wa[l.Y+l.ja].La|=!A),c.Ka)return We(e,7,"Premature end-of-file encountered.")}if(Je(e),l=n,c=1,s=(a=e).D,u=0<a.L&&a.M>=a.zb&&a.M<=a.Va,0==a.Aa)e:{if(s.M=a.M,s.uc=u,Ln(a,s),c=1,s=(w=a.D).Nb,u=(y=Ui[a.L])*a.R,A=a.sa,p=a.ta-u+(b=16*s*a.R),f=a.qa,h=a.ra-(d=y/2*a.B)+(I=8*s*a.B),g=a.Ha,m=a.Ia-d+I,B=0==(x=w.M),v=x>=a.Va-1,2==a.Aa&&Ln(a,w),w.uc)for(k=(E=a).D.M,t(E.D.uc),w=E.yb;w<E.Hb;++w){S=k;var P=(O=(Q=E).D).Nb,O=O.wa[O.Y+(C=w)],F=Q.sa,L=Q.ta+16*P*(_=Q.R)+16*C,M=O.dd,D=O.tc;if(0!=D)if(t(3<=D),1==Q.L)0<C&&br(F,L,_,D+4),O.La&&wr(F,L,_,D),0<S&&yr(F,L,_,D+4),O.La&&_r(F,L,_,D);else{var N=Q.B,R=Q.qa,U=Q.ra+8*P*N+8*C,j=Q.Ha,Q=Q.Ia+8*P*N+8*C;P=O.ld,0<C&&(dr(F,L,_,D+4,M,P),pr(R,U,j,Q,N,D+4,M,P)),O.La&&(gr(F,L,_,D,M,P),vr(R,U,j,Q,N,D,M,P)),0<S&&(hr(F,L,_,D+4,M,P),Ar(R,U,j,Q,N,D+4,M,P)),O.La&&(fr(F,L,_,D,M,P),mr(R,U,j,Q,N,D,M,P))}}if(a.ia&&alert("todo:DitherRow"),null!=l.put){if(w=16*x,x=16*(x+1),B?(l.y=a.sa,l.O=a.ta+b,l.f=a.qa,l.N=a.ra+I,l.ea=a.Ha,l.W=a.Ia+I):(w-=y,l.y=A,l.O=p,l.f=f,l.N=h,l.ea=g,l.W=m),v||(x-=y),x>l.o&&(x=l.o),l.F=null,l.J=null,null!=a.Fa&&0<a.Fa.length&&w<x&&(l.J=dn(a,l,w,x-w),l.F=a.mb,null==l.F&&0==l.F.length)){c=We(a,3,"Could not decode alpha data.");break e}w<l.j&&(y=l.j-w,w=l.j,t(!(1&y)),l.O+=a.R*y,l.N+=a.B*(y>>1),l.W+=a.B*(y>>1),null!=l.F&&(l.J+=l.width*y)),w<x&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=w-l.j,l.U=l.va-l.v,l.T=x-w,c=l.put(l))}s+1!=a.Ic||v||(r(a.sa,a.ta-u,A,p+16*a.R,u),r(a.qa,a.ra-d,f,h+8*a.B,d),r(a.Ha,a.Ia-d,g,m+8*a.B,d))}if(!c)return We(e,6,"Output aborted.")}return 1}(e,n)),null!=n.bc&&n.bc(n),a&=1}return a?(e.cb=0,a):0}function et(e,t,n,r,i){e[t+n+32*r]=-256&(i=e[t+n+32*r]+(i>>3))?0>i?0:255:i}function tt(e,t,n,r,i,o){et(e,t,0,n,r+i),et(e,t,1,n,r+o),et(e,t,2,n,r-o),et(e,t,3,n,r-i)}function nt(e){return(20091*e>>16)+e}function rt(e,t,n,r){var i,s=0,a=o(16);for(i=0;4>i;++i){var l=e[t+0]+e[t+8],c=e[t+0]-e[t+8],u=(35468*e[t+4]>>16)-nt(e[t+12]),h=nt(e[t+4])+(35468*e[t+12]>>16);a[s+0]=l+h,a[s+1]=c+u,a[s+2]=c-u,a[s+3]=l-h,s+=4,t++}for(i=s=0;4>i;++i)l=(e=a[s+0]+4)+a[s+8],c=e-a[s+8],u=(35468*a[s+4]>>16)-nt(a[s+12]),et(n,r,0,0,l+(h=nt(a[s+4])+(35468*a[s+12]>>16))),et(n,r,1,0,c+u),et(n,r,2,0,c-u),et(n,r,3,0,l-h),s++,r+=32}function it(e,t,n,r){var i=e[t+0]+4,o=35468*e[t+4]>>16,s=nt(e[t+4]),a=35468*e[t+1]>>16;tt(n,r,0,i+s,e=nt(e[t+1]),a),tt(n,r,1,i+o,e,a),tt(n,r,2,i-o,e,a),tt(n,r,3,i-s,e,a)}function ot(e,t,n,r,i){rt(e,t,n,r),i&&rt(e,t+16,n,r+4)}function st(e,t,n,r){sr(e,t+0,n,r,1),sr(e,t+32,n,r+128,1)}function at(e,t,n,r){var i;for(e=e[t+0]+4,i=0;4>i;++i)for(t=0;4>t;++t)et(n,r,t,i,e)}function lt(e,t,n,r){e[t+0]&&cr(e,t+0,n,r),e[t+16]&&cr(e,t+16,n,r+4),e[t+32]&&cr(e,t+32,n,r+128),e[t+48]&&cr(e,t+48,n,r+128+4)}function ct(e,t,n,r){var i,s=o(16);for(i=0;4>i;++i){var a=e[t+0+i]+e[t+12+i],l=e[t+4+i]+e[t+8+i],c=e[t+4+i]-e[t+8+i],u=e[t+0+i]-e[t+12+i];s[0+i]=a+l,s[8+i]=a-l,s[4+i]=u+c,s[12+i]=u-c}for(i=0;4>i;++i)a=(e=s[0+4*i]+3)+s[3+4*i],c=s[1+4*i]-s[2+4*i],u=e-s[3+4*i],n[r+0]=a+(l=s[1+4*i]+s[2+4*i])>>3,n[r+16]=u+c>>3,n[r+32]=a-l>>3,n[r+48]=u-c>>3,r+=64}function ut(e,t,n){var r,i=t-32,o=Lr,s=255-e[i-1];for(r=0;r<n;++r){var a,l=o,c=s+e[t-1];for(a=0;a<n;++a)e[t+a]=l[c+e[i+a]];t+=32}}function ht(e,t){ut(e,t,4)}function dt(e,t){ut(e,t,8)}function At(e,t){ut(e,t,16)}function pt(e,t){var n;for(n=0;16>n;++n)r(e,t+32*n,e,t-32,16)}function ft(e,t){var n;for(n=16;0<n;--n)i(e,t,e[t-1],16),t+=32}function gt(e,t,n){var r;for(r=0;16>r;++r)i(t,n+32*r,e,16)}function mt(e,t){var n,r=16;for(n=0;16>n;++n)r+=e[t-1+32*n]+e[t+n-32];gt(r>>5,e,t)}function vt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t-1+32*n];gt(r>>4,e,t)}function yt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t+n-32];gt(r>>4,e,t)}function bt(e,t){gt(128,e,t)}function _t(e,t,n){return e+2*t+n+2>>2}function wt(e,t){var n,i=t-32;for(i=new Uint8Array([_t(e[i-1],e[i+0],e[i+1]),_t(e[i+0],e[i+1],e[i+2]),_t(e[i+1],e[i+2],e[i+3]),_t(e[i+2],e[i+3],e[i+4])]),n=0;4>n;++n)r(e,t+32*n,i,0,i.length)}function Ct(e,t){var n=e[t-1],r=e[t-1+32],i=e[t-1+64],o=e[t-1+96];B(e,t+0,16843009*_t(e[t-1-32],n,r)),B(e,t+32,16843009*_t(n,r,i)),B(e,t+64,16843009*_t(r,i,o)),B(e,t+96,16843009*_t(i,o,o))}function St(e,t){var n,r=4;for(n=0;4>n;++n)r+=e[t+n-32]+e[t-1+32*n];for(r>>=3,n=0;4>n;++n)i(e,t+32*n,r,4)}function Et(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],o=e[t-1-32],s=e[t+0-32],a=e[t+1-32],l=e[t+2-32],c=e[t+3-32];e[t+0+96]=_t(r,i,e[t-1+96]),e[t+1+96]=e[t+0+64]=_t(n,r,i),e[t+2+96]=e[t+1+64]=e[t+0+32]=_t(o,n,r),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=_t(s,o,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=_t(a,s,o),e[t+3+32]=e[t+2+0]=_t(l,a,s),e[t+3+0]=_t(c,l,a)}function It(e,t){var n=e[t+1-32],r=e[t+2-32],i=e[t+3-32],o=e[t+4-32],s=e[t+5-32],a=e[t+6-32],l=e[t+7-32];e[t+0+0]=_t(e[t+0-32],n,r),e[t+1+0]=e[t+0+32]=_t(n,r,i),e[t+2+0]=e[t+1+32]=e[t+0+64]=_t(r,i,o),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=_t(i,o,s),e[t+3+32]=e[t+2+64]=e[t+1+96]=_t(o,s,a),e[t+3+64]=e[t+2+96]=_t(s,a,l),e[t+3+96]=_t(a,l,l)}function xt(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],o=e[t-1-32],s=e[t+0-32],a=e[t+1-32],l=e[t+2-32],c=e[t+3-32];e[t+0+0]=e[t+1+64]=o+s+1>>1,e[t+1+0]=e[t+2+64]=s+a+1>>1,e[t+2+0]=e[t+3+64]=a+l+1>>1,e[t+3+0]=l+c+1>>1,e[t+0+96]=_t(i,r,n),e[t+0+64]=_t(r,n,o),e[t+0+32]=e[t+1+96]=_t(n,o,s),e[t+1+32]=e[t+2+96]=_t(o,s,a),e[t+2+32]=e[t+3+96]=_t(s,a,l),e[t+3+32]=_t(a,l,c)}function Tt(e,t){var n=e[t+0-32],r=e[t+1-32],i=e[t+2-32],o=e[t+3-32],s=e[t+4-32],a=e[t+5-32],l=e[t+6-32],c=e[t+7-32];e[t+0+0]=n+r+1>>1,e[t+1+0]=e[t+0+64]=r+i+1>>1,e[t+2+0]=e[t+1+64]=i+o+1>>1,e[t+3+0]=e[t+2+64]=o+s+1>>1,e[t+0+32]=_t(n,r,i),e[t+1+32]=e[t+0+96]=_t(r,i,o),e[t+2+32]=e[t+1+96]=_t(i,o,s),e[t+3+32]=e[t+2+96]=_t(o,s,a),e[t+3+64]=_t(s,a,l),e[t+3+96]=_t(a,l,c)}function Bt(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],o=e[t-1+96];e[t+0+0]=n+r+1>>1,e[t+2+0]=e[t+0+32]=r+i+1>>1,e[t+2+32]=e[t+0+64]=i+o+1>>1,e[t+1+0]=_t(n,r,i),e[t+3+0]=e[t+1+32]=_t(r,i,o),e[t+3+32]=e[t+1+64]=_t(i,o,o),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=o}function kt(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],o=e[t-1+96],s=e[t-1-32],a=e[t+0-32],l=e[t+1-32],c=e[t+2-32];e[t+0+0]=e[t+2+32]=n+s+1>>1,e[t+0+32]=e[t+2+64]=r+n+1>>1,e[t+0+64]=e[t+2+96]=i+r+1>>1,e[t+0+96]=o+i+1>>1,e[t+3+0]=_t(a,l,c),e[t+2+0]=_t(s,a,l),e[t+1+0]=e[t+3+32]=_t(n,s,a),e[t+1+32]=e[t+3+64]=_t(r,n,s),e[t+1+64]=e[t+3+96]=_t(i,r,n),e[t+1+96]=_t(o,i,r)}function Pt(e,t){var n;for(n=0;8>n;++n)r(e,t+32*n,e,t-32,8)}function Ot(e,t){var n;for(n=0;8>n;++n)i(e,t,e[t-1],8),t+=32}function Ft(e,t,n){var r;for(r=0;8>r;++r)i(t,n+32*r,e,8)}function Lt(e,t){var n,r=8;for(n=0;8>n;++n)r+=e[t+n-32]+e[t-1+32*n];Ft(r>>4,e,t)}function Mt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t+n-32];Ft(r>>3,e,t)}function Dt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t-1+32*n];Ft(r>>3,e,t)}function Nt(e,t){Ft(128,e,t)}function Rt(e,t,n){var r=e[t-n],i=e[t+0],o=3*(i-r)+Or[1020+e[t-2*n]-e[t+n]],s=Fr[112+(o+4>>3)];e[t-n]=Lr[255+r+Fr[112+(o+3>>3)]],e[t+0]=Lr[255+i-s]}function Ut(e,t,n,r){return Mr[255+e[t-2*n]-e[t-n]]>r||Mr[255+e[t+n]-e[t+0]]>r}function jt(e,t,n,r){return 4*Mr[255+e[t-n]-e[t+0]]+Mr[255+e[t-2*n]-e[t+n]]<=r}function Qt(e,t,n,r,i){var o=e[t-3*n],s=e[t-2*n],a=e[t-n],l=e[t+0],c=e[t+n],u=e[t+2*n];return 4*Mr[255+a-l]+Mr[255+s-c]>r?0:Mr[255+e[t-4*n]-o]<=i&&Mr[255+o-s]<=i&&Mr[255+s-a]<=i&&Mr[255+e[t+3*n]-u]<=i&&Mr[255+u-c]<=i&&Mr[255+c-l]<=i}function Ht(e,t,n,r){var i=2*r+1;for(r=0;16>r;++r)jt(e,t+r,n,i)&&Rt(e,t+r,n)}function Vt(e,t,n,r){var i=2*r+1;for(r=0;16>r;++r)jt(e,t+r*n,1,i)&&Rt(e,t+r*n,1)}function qt(e,t,n,r){var i;for(i=3;0<i;--i)Ht(e,t+=4*n,n,r)}function Kt(e,t,n,r){var i;for(i=3;0<i;--i)Vt(e,t+=4,n,r)}function Gt(e,t,n,r,i,o,s,a){for(o=2*o+1;0<i--;){if(Qt(e,t,n,o,s))if(Ut(e,t,n,a))Rt(e,t,n);else{var l=e,c=t,u=n,h=l[c-2*u],d=l[c-u],A=l[c+0],p=l[c+u],f=l[c+2*u],g=27*(v=Or[1020+3*(A-d)+Or[1020+h-p]])+63>>7,m=18*v+63>>7,v=9*v+63>>7;l[c-3*u]=Lr[255+l[c-3*u]+v],l[c-2*u]=Lr[255+h+m],l[c-u]=Lr[255+d+g],l[c+0]=Lr[255+A-g],l[c+u]=Lr[255+p-m],l[c+2*u]=Lr[255+f-v]}t+=r}}function zt(e,t,n,r,i,o,s,a){for(o=2*o+1;0<i--;){if(Qt(e,t,n,o,s))if(Ut(e,t,n,a))Rt(e,t,n);else{var l=e,c=t,u=n,h=l[c-u],d=l[c+0],A=l[c+u],p=Fr[112+(4+(f=3*(d-h))>>3)],f=Fr[112+(f+3>>3)],g=p+1>>1;l[c-2*u]=Lr[255+l[c-2*u]+g],l[c-u]=Lr[255+h+f],l[c+0]=Lr[255+d-p],l[c+u]=Lr[255+A-g]}t+=r}}function Wt(e,t,n,r,i,o){Gt(e,t,n,1,16,r,i,o)}function $t(e,t,n,r,i,o){Gt(e,t,1,n,16,r,i,o)}function Yt(e,t,n,r,i,o){var s;for(s=3;0<s;--s)zt(e,t+=4*n,n,1,16,r,i,o)}function Xt(e,t,n,r,i,o){var s;for(s=3;0<s;--s)zt(e,t+=4,1,n,16,r,i,o)}function Jt(e,t,n,r,i,o,s,a){Gt(e,t,i,1,8,o,s,a),Gt(n,r,i,1,8,o,s,a)}function Zt(e,t,n,r,i,o,s,a){Gt(e,t,1,i,8,o,s,a),Gt(n,r,1,i,8,o,s,a)}function en(e,t,n,r,i,o,s,a){zt(e,t+4*i,i,1,8,o,s,a),zt(n,r+4*i,i,1,8,o,s,a)}function tn(e,t,n,r,i,o,s,a){zt(e,t+4,1,i,8,o,s,a),zt(n,r+4,1,i,8,o,s,a)}function nn(){this.ba=new se,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new le,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function on(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function sn(){this.ua=0,this.Wa=new M,this.vb=new M,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new A,this.yc=new h}function an(){this.xb=this.a=0,this.l=new Ge,this.ca=new se,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new _,this.Pb=0,this.wd=new _,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new sn,this.ab=0,this.gc=s(4,on),this.Oc=0}function ln(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ge,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cn(e,t,n,r,i,o,s){for(e=null==e?0:e[t+0],t=0;t<s;++t)i[o+t]=e+n[r+t]&255,e=i[o+t]}function un(e,t,n,r,i,o,s){var a;if(null==e)cn(null,null,n,r,i,o,s);else for(a=0;a<s;++a)i[o+a]=e[t+a]+n[r+a]&255}function hn(e,t,n,r,i,o,s){if(null==e)cn(null,null,n,r,i,o,s);else{var a,l=e[t+0],c=l,u=l;for(a=0;a<s;++a)c=u+(l=e[t+a])-c,u=n[r+a]+(-256&c?0>c?0:255:c)&255,c=l,i[o+a]=u}}function dn(e,n,i,s){var a=n.width,l=n.o;if(t(null!=e&&null!=n),0>i||0>=s||i+s>l)return null;if(!e.Cc){if(null==e.ga){var c;if(e.ga=new ln,(c=null==e.ga)||(c=n.width*n.o,t(0==e.Gb.length),e.Gb=o(c),e.Uc=0,null==e.Gb?c=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,c=1),c=!c),!c){var u=e.Fa,h=e.P,d=e.qc,A=e.mb,p=e.nb,f=h+1,g=d-1,v=(c=e.ga).l;if(t(null!=u&&null!=A&&null!=n),gi[0]=null,gi[1]=cn,gi[2]=un,gi[3]=hn,c.ca=A,c.tb=p,c.c=n.width,c.i=n.height,t(0<c.c&&0<c.i),1>=d)n=0;else if(c.$a=u[h+0]>>0&3,c.Z=u[h+0]>>2&3,c.Lc=u[h+0]>>4&3,h=u[h+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||h)n=0;else if(v.put=Ae,v.ac=de,v.bc=pe,v.ma=c,v.width=n.width,v.height=n.height,v.Da=n.Da,v.v=n.v,v.va=n.va,v.j=n.j,v.o=n.o,c.$a)e:{t(1==c.$a),n=Te();t:for(;;){if(null==n){n=0;break e}if(t(null!=c),c.mc=n,n.c=c.c,n.i=c.i,n.l=c.l,n.l.ma=c,n.l.width=c.c,n.l.height=c.i,n.a=0,m(n.m,u,f,g),!Be(c.c,c.i,1,n,null))break t;if(1==n.ab&&3==n.gc[0].hc&&Ce(n.s)?(c.ic=1,u=n.c*n.i,n.Ta=null,n.Ua=0,n.V=o(u),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(c.ic=0,n=ke(n,c.c)),!n)break t;n=1;break e}c.mc=null,n=0}else n=g>=c.c*c.i;c=!n}if(c)return null;1!=e.ga.Lc?e.Ga=0:s=l-i}t(null!=e.ga),t(i+s<=l);e:{if(n=(u=e.ga).c,l=u.l.o,0==u.$a){if(f=e.rc,g=e.Vc,v=e.Fa,d=e.mb,A=e.nb+i*n,t((h=e.P+1+i*n)<=e.P+e.qc),0!=u.Z)for(t(null!=gi[u.Z]),c=0;c<s;++c)gi[u.Z](f,g,v,h,d,A,n),f=d,g=A,A+=n,h+=n;else for(c=0;c<s;++c)r(d,A,v,h,n),f=d,g=A,A+=n,h+=n;e.rc=f,e.Vc=g}else{if(t(null!=u.mc),n=i+s,t(null!=(c=u.mc)),t(n<=c.i),c.C>=n)n=1;else if(u.ic||mn(),u.ic){u=c.V,f=c.Ba;var y=c.i,b=(v=1,h=c.$/(g=c.c),d=c.$%g,A=c.m,p=c.s,c.$),_=g*y,w=g*n,S=p.wc,I=b<w?be(p,d,h):null;t(b<=_),t(n<=y),t(Ce(p));t:for(;;){for(;!A.h&&b<w;){if(d&S||(I=be(p,d,h)),t(null!=I),E(A),256>(y=ve(I.G[0],I.H[0],A)))u[f+b]=y,++b,++d>=g&&(d=0,++h<=n&&!(h%16)&&Ee(c,h));else{if(!(280>y)){v=0;break t}y=ge(y-256,A);var x,T=ve(I.G[4],I.H[4],A);if(E(A),!(b>=(T=me(g,T=ge(T,A)))&&_-b>=y)){v=0;break t}for(x=0;x<y;++x)u[f+b+x]=u[f+b+x-T];for(b+=y,d+=y;d>=g;)d-=g,++h<=n&&!(h%16)&&Ee(c,h);b<w&&d&S&&(I=be(p,d,h))}t(A.h==C(A))}Ee(c,h>n?n:h);break t}!v||A.h&&b<_?(v=0,c.a=A.h?5:3):c.$=b,n=v}else n=Ie(c,c.V,c.Ba,c.c,c.i,n,Pe);if(!n){s=0;break e}}i+s>=l&&(e.Cc=1),s=1}if(!s)return null;if(e.Cc&&(null!=(s=e.ga)&&(s.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+i*a}function An(e,t,n,r,i,o){for(;0<i--;){var s,a=e,l=t+(n?1:0),c=e,u=t+(n?0:3);for(s=0;s<r;++s){var h=c[u+4*s];255!=h&&(a[l+4*s+0]=a[l+4*s+0]*(h*=32897)>>23,a[l+4*s+1]=a[l+4*s+1]*h>>23,a[l+4*s+2]=a[l+4*s+2]*h>>23)}t+=o}}function pn(e,t,n,r,i){for(;0<r--;){var o;for(o=0;o<n;++o){var s=e[t+2*o+0],a=15&(c=e[t+2*o+1]),l=4369*a,c=(240&c|c>>4)*l>>16;e[t+2*o+0]=(240&s|s>>4)*l>>16&240|(15&s|s<<4)*l>>16>>4&15,e[t+2*o+1]=240&c|a}t+=i}}function fn(e,t,n,r,i,o,s,a){var l,c,u=255;for(c=0;c<i;++c){for(l=0;l<r;++l){var h=e[t+l];o[s+4*l]=h,u&=h}t+=n,s+=a}return 255!=u}function gn(e,t,n,r,i){var o;for(o=0;o<i;++o)n[r+o]=e[t+o]>>8}function mn(){Cr=An,Sr=pn,Er=fn,Ir=gn}function vn(n,r,i){e[n]=function(e,n,o,s,a,l,c,u,h,d,A,p,f,g,m,v,y){var b,_=y-1>>1,w=a[l+0]|c[u+0]<<16,C=h[d+0]|A[p+0]<<16;t(null!=e);var S=3*w+C+131074>>2;for(r(e[n+0],255&S,S>>16,f,g),null!=o&&r(o[s+0],255&(S=3*C+w+131074>>2),S>>16,m,v),b=1;b<=_;++b){var E=a[l+b]|c[u+b]<<16,I=h[d+b]|A[p+b]<<16,x=w+E+C+I+524296,T=x+2*(E+C)>>3;S=T+w>>1,w=(x=x+2*(w+I)>>3)+E>>1,r(e[n+2*b-1],255&S,S>>16,f,g+(2*b-1)*i),r(e[n+2*b-0],255&w,w>>16,f,g+(2*b-0)*i),null!=o&&(w=T+I>>1,r(o[s+2*b-1],255&(S=x+C>>1),S>>16,m,v+(2*b-1)*i),r(o[s+2*b+0],255&w,w>>16,m,v+(2*b+0)*i)),w=E,C=I}1&y||(r(e[n+y-1],255&(S=3*w+C+131074>>2),S>>16,f,g+(y-1)*i),null!=o&&r(o[s+y-1],255&(S=3*C+w+131074>>2),S>>16,m,v+(y-1)*i))}}function yn(){mi[Dr]=vi,mi[Nr]=bi,mi[Rr]=yi,mi[Ur]=_i,mi[jr]=wi,mi[Qr]=Ci,mi[Hr]=Si,mi[Vr]=bi,mi[qr]=_i,mi[Kr]=wi,mi[Gr]=Ci}function bn(e){return e&~ki?0>e?0:255:e>>Bi}function _n(e,t){return bn((19077*e>>8)+(26149*t>>8)-14234)}function wn(e,t,n){return bn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function Cn(e,t){return bn((19077*e>>8)+(33050*t>>8)-17685)}function Sn(e,t,n,r,i){r[i+0]=_n(e,n),r[i+1]=wn(e,t,n),r[i+2]=Cn(e,t)}function En(e,t,n,r,i){r[i+0]=Cn(e,t),r[i+1]=wn(e,t,n),r[i+2]=_n(e,n)}function In(e,t,n,r,i){var o=wn(e,t,n);t=o<<3&224|Cn(e,t)>>3,r[i+0]=248&_n(e,n)|o>>5,r[i+1]=t}function xn(e,t,n,r,i){var o=240&Cn(e,t)|15;r[i+0]=240&_n(e,n)|wn(e,t,n)>>4,r[i+1]=o}function Tn(e,t,n,r,i){r[i+0]=255,Sn(e,t,n,r,i+1)}function Bn(e,t,n,r,i){En(e,t,n,r,i),r[i+3]=255}function kn(e,t,n,r,i){Sn(e,t,n,r,i),r[i+3]=255}function Ke(e,t){return 0>e?0:e>t?t:e}function Pn(t,n,r){e[t]=function(e,t,i,o,s,a,l,c,u){for(var h=c+(-2&u)*r;c!=h;)n(e[t+0],i[o+0],s[a+0],l,c),n(e[t+1],i[o+0],s[a+0],l,c+r),t+=2,++o,++a,c+=2*r;1&u&&n(e[t+0],i[o+0],s[a+0],l,c)}}function On(e,t,n){return 0==n?0==e?0==t?6:5:0==t?4:0:n}function Fn(e,t,n,r,i){switch(e>>>30){case 3:sr(t,n,r,i,0);break;case 2:ar(t,n,r,i);break;case 1:cr(t,n,r,i)}}function Ln(e,t){var n,o,s=t.M,a=t.Nb,l=e.oc,c=e.pc+40,u=e.oc,h=e.pc+584,d=e.oc,A=e.pc+600;for(n=0;16>n;++n)l[c+32*n-1]=129;for(n=0;8>n;++n)u[h+32*n-1]=129,d[A+32*n-1]=129;for(0<s?l[c-1-32]=u[h-1-32]=d[A-1-32]=129:(i(l,c-32-1,127,21),i(u,h-32-1,127,9),i(d,A-32-1,127,9)),o=0;o<e.za;++o){var p=t.ya[t.aa+o];if(0<o){for(n=-1;16>n;++n)r(l,c+32*n-4,l,c+32*n+12,4);for(n=-1;8>n;++n)r(u,h+32*n-4,u,h+32*n+4,4),r(d,A+32*n-4,d,A+32*n+4,4)}var f=e.Gd,g=e.Hd+o,m=p.ad,v=p.Hc;if(0<s&&(r(l,c-32,f[g].y,0,16),r(u,h-32,f[g].f,0,8),r(d,A-32,f[g].ea,0,8)),p.Za){var y=l,b=c-32+16;for(0<s&&(o>=e.za-1?i(y,b,f[g].y[15],4):r(y,b,f[g+1].y,0,4)),n=0;4>n;n++)y[b+128+n]=y[b+256+n]=y[b+384+n]=y[b+0+n];for(n=0;16>n;++n,v<<=2)di[p.Ob[n]](y=l,b=c+Ri[n]),Fn(v,m,16*+n,y,b)}else if(y=On(o,s,p.Ob[0]),hi[y](l,c),0!=v)for(n=0;16>n;++n,v<<=2)Fn(v,m,16*+n,l,c+Ri[n]);for(n=p.Gc,y=On(o,s,p.Dd),Ai[y](u,h),Ai[y](d,A),v=m,y=u,b=h,255&(p=n>>0)&&(170&p?lr(v,256,y,b):ur(v,256,y,b)),p=d,v=A,255&(n>>=8)&&(170&n?lr(m,320,p,v):ur(m,320,p,v)),s<e.Ub-1&&(r(f[g].y,0,l,c+480,16),r(f[g].f,0,u,h+224,8),r(f[g].ea,0,d,A+224,8)),f=e.sa,g=e.ta+16*o+16*a*e.R,m=e.qa,p=e.ra+8*o+(n=8*a*e.B),v=e.Ha,y=e.Ia+8*o+n,n=0;16>n;++n)r(f,g+n*e.R,l,c+32*n,16);for(n=0;8>n;++n)r(m,p+n*e.B,u,h+32*n,8),r(v,y+n*e.B,d,A+32*n,8)}}function Mn(e,r,i,o,s,a,l,c,u){var h=[0],d=[0],A=0,p=null!=u?u.kd:0,f=null!=u?u:new rn;if(null==e||12>i)return 7;f.data=e,f.w=r,f.ha=i,r=[r],i=[i],f.gb=[f.gb];e:{var g=r,v=i,y=f.gb;if(t(null!=e),t(null!=v),t(null!=y),y[0]=0,12<=v[0]&&!n(e,g[0],"RIFF")){if(n(e,g[0]+8,"WEBP")){y=3;break e}var b=O(e,g[0]+4);if(12>b||4294967286<b){y=3;break e}if(p&&b>v[0]-8){y=7;break e}y[0]=b,g[0]+=12,v[0]-=12}y=0}if(0!=y)return y;for(b=0<f.gb[0],i=i[0];;){e:{var w=e;v=r,y=i;var C=h,S=d,E=g=[0];if((T=A=[A])[0]=0,8>y[0])y=7;else{if(!n(w,v[0],"VP8X")){if(10!=O(w,v[0]+4)){y=3;break e}if(18>y[0]){y=7;break e}var I=O(w,v[0]+8),x=1+P(w,v[0]+12);if(2147483648<=x*(w=1+P(w,v[0]+15))){y=3;break e}null!=E&&(E[0]=I),null!=C&&(C[0]=x),null!=S&&(S[0]=w),v[0]+=18,y[0]-=18,T[0]=1}y=0}}if(A=A[0],0!=y)return y;if(v=!!(2&(g=g[0])),!b&&A)return 3;if(null!=a&&(a[0]=!!(16&g)),null!=l&&(l[0]=v),null!=c&&(c[0]=0),l=h[0],g=d[0],A&&v&&null==u){y=0;break}if(4>i){y=7;break}if(b&&A||!b&&!A&&!n(e,r[0],"ALPH")){i=[i],f.na=[f.na],f.P=[f.P],f.Sa=[f.Sa];e:{y=r,b=i;var T=f.gb;C=f.na,S=f.P,E=f.Sa,x=22,t(null!=(I=e)),t(null!=b),w=y[0];var B=b[0];for(t(null!=C),t(null!=E),C[0]=null,S[0]=null,E[0]=0;;){if(y[0]=w,b[0]=B,8>B){y=7;break e}var k=O(I,w+4);if(4294967286<k){y=3;break e}var F=8+k+1&-2;if(x+=F,0<T&&x>T){y=3;break e}if(!n(I,w,"VP8 ")||!n(I,w,"VP8L")){y=0;break e}if(B[0]<F){y=7;break e}n(I,w,"ALPH")||(C[0]=I,S[0]=w+8,E[0]=k),w+=F,B-=F}}if(i=i[0],f.na=f.na[0],f.P=f.P[0],f.Sa=f.Sa[0],0!=y)break}i=[i],f.Ja=[f.Ja],f.xa=[f.xa];e:if(T=e,y=r,b=i,C=f.gb[0],S=f.Ja,E=f.xa,I=y[0],w=!n(T,I,"VP8 "),x=!n(T,I,"VP8L"),t(null!=T),t(null!=b),t(null!=S),t(null!=E),8>b[0])y=7;else{if(w||x){if(T=O(T,I+4),12<=C&&T>C-12){y=3;break e}if(p&&T>b[0]-8){y=7;break e}S[0]=T,y[0]+=8,b[0]-=8,E[0]=x}else E[0]=5<=b[0]&&47==T[I+0]&&!(T[I+4]>>5),S[0]=b[0];y=0}if(i=i[0],f.Ja=f.Ja[0],f.xa=f.xa[0],r=r[0],0!=y)break;if(4294967286<f.Ja)return 3;if(null==c||v||(c[0]=f.xa?2:1),l=[l],g=[g],f.xa){if(5>i){y=7;break}c=l,p=g,v=a,null==e||5>i?e=0:5<=i&&47==e[r+0]&&!(e[r+4]>>5)?(b=[0],T=[0],C=[0],m(S=new _,e,r,i),fe(S,b,T,C)?(null!=c&&(c[0]=b[0]),null!=p&&(p[0]=T[0]),null!=v&&(v[0]=C[0]),e=1):e=0):e=0}else{if(10>i){y=7;break}c=g,null==e||10>i||!$e(e,r+3,i-3)?e=0:(p=e[r+0]|e[r+1]<<8|e[r+2]<<16,v=16383&(e[r+7]<<8|e[r+6]),e=16383&(e[r+9]<<8|e[r+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=f.Ja||!v||!e?e=0:(l&&(l[0]=v),c&&(c[0]=e),e=1))}if(!e)return 3;if(l=l[0],g=g[0],A&&(h[0]!=l||d[0]!=g))return 3;null!=u&&(u[0]=f,u.offset=r-u.w,t(4294967286>r-u.w),t(u.offset==u.ha-i));break}return 0==y||7==y&&A&&null==u?(null!=a&&(a[0]|=null!=f.na&&0<f.na.length),null!=o&&(o[0]=l),null!=s&&(s[0]=g),0):y}function Dn(e,t,n){var r=t.width,i=t.height,o=0,s=0,a=r,l=i;if(t.Da=null!=e&&0<e.Da,t.Da&&(a=e.cd,l=e.bd,o=e.v,s=e.j,11>n||(o&=-2,s&=-2),0>o||0>s||0>=a||0>=l||o+a>r||s+l>i))return 0;if(t.v=o,t.j=s,t.va=o+a,t.o=s+l,t.U=a,t.T=l,t.da=null!=e&&0<e.da,t.da){if(!D(a,l,n=[e.ib],o=[e.hb]))return 0;t.ib=n[0],t.hb=o[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*r/4&&t.hb<3*i/4,t.Kb=0),1}function Nn(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else(t=e.f.kb).O+=((e=e.height)-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Rn(e,t,n,r){if(null==r||0>=e||0>=t)return 2;if(null!=n){if(n.Da){var i=n.cd,s=n.bd,a=-2&n.v,l=-2&n.j;if(0>a||0>l||0>=i||0>=s||a+i>e||l+s>t)return 2;e=i,t=s}if(n.da){if(!D(e,t,i=[n.ib],s=[n.hb]))return 2;e=i[0],t=s[0]}}r.width=e,r.height=t;e:{var c=r.width,u=r.height;if(e=r.S,0>=c||0>=u||!(e>=Dr&&13>e))e=2;else{if(0>=r.Rd&&null==r.sd){a=s=i=t=0;var h=(l=c*Hi[e])*u;if(11>e||(s=(u+1)/2*(t=(c+1)/2),12==e&&(a=(i=c)*u)),null==(u=o(h+2*s+a))){e=1;break e}r.sd=u,11>e?((c=r.f.RGBA).eb=u,c.fb=0,c.A=l,c.size=h):((c=r.f.kb).y=u,c.O=0,c.fa=l,c.Fd=h,c.f=u,c.N=0+h,c.Ab=t,c.Cd=s,c.ea=u,c.W=0+h+s,c.Db=t,c.Ed=s,12==e&&(c.F=u,c.J=0+h+2*s),c.Tc=a,c.lb=i)}if(t=1,s=r.width,a=r.height,(i=r.S)>=Dr&&13>i)if(11>i)e=r.f.RGBA,t&=(l=Math.abs(e.A))*(a-1)+s<=e.size,t&=l>=s*Hi[i],t&=null!=e.eb;else{e=r.f.kb,l=(s+1)/2,h=(a+1)/2,c=Math.abs(e.fa),u=Math.abs(e.Ab);var d=Math.abs(e.Db),A=Math.abs(e.lb);t&=c*(a-1)+s<=e.Fd,t&=u*(h-1)+l<=e.Cd,t=(t&=d*(h-1)+l<=e.Ed)&c>=s&u>=l&d>=l,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==i&&(t&=A>=s,t&=A*(a-1)+s<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=n&&n.fd&&(e=Nn(r)),e}var Un=64,jn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Qn=24,Hn=32,Vn=8,qn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];U("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return Q(Q(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return Q(e,t[n-1])},e.Predictor7=function(e,t,n){return Q(e,t[n+0])},e.Predictor8=function(e,t,n){return Q(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return Q(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return Q(Q(e,t[n-1]),Q(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var r=t[n+0];return 0>=q(r>>24&255,e>>24&255,(t=t[n-1])>>24&255)+q(r>>16&255,e>>16&255,t>>16&255)+q(r>>8&255,e>>8&255,t>>8&255)+q(255&r,255&e,255&t)?r:e},e.Predictor12=function(e,t,n){var r=t[n+0];return(H((e>>24&255)+(r>>24&255)-((t=t[n-1])>>24&255))<<24|H((e>>16&255)+(r>>16&255)-(t>>16&255))<<16|H((e>>8&255)+(r>>8&255)-(t>>8&255))<<8|H((255&e)+(255&r)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var r=t[n-1];return(V((e=Q(e,t[n+0]))>>24&255,r>>24&255)<<24|V(e>>16&255,r>>16&255)<<16|V(e>>8&255,r>>8&255)<<8|V(e>>0&255,r>>0&255))>>>0};var Kn=e.PredictorAdd0;e.PredictorAdd1=K,U("Predictor2","PredictorAdd2"),U("Predictor3","PredictorAdd3"),U("Predictor4","PredictorAdd4"),U("Predictor5","PredictorAdd5"),U("Predictor6","PredictorAdd6"),U("Predictor7","PredictorAdd7"),U("Predictor8","PredictorAdd8"),U("Predictor9","PredictorAdd9"),U("Predictor10","PredictorAdd10"),U("Predictor11","PredictorAdd11"),U("Predictor12","PredictorAdd12"),U("Predictor13","PredictorAdd13");var Gn=e.PredictorAdd2;$("ColorIndexInverseTransform","MapARGB","32b",function(e){return e>>8&255},function(e){return e}),$("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(e){return e},function(e){return e>>8&255});var zn,Wn=e.ColorIndexInverseTransform,$n=e.MapARGB,Yn=e.VP8LColorIndexInverseTransformAlpha,Xn=e.MapAlpha,Jn=e.VP8LPredictorsAdd=[];Jn.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Zn,er,tr,nr,rr,ir,or,sr,ar,lr,cr,ur,hr,dr,Ar,pr,fr,gr,mr,vr,yr,br,_r,wr,Cr,Sr,Er,Ir,xr=o(511),Tr=o(2041),Br=o(225),kr=o(767),Pr=0,Or=Tr,Fr=Br,Lr=kr,Mr=xr,Dr=0,Nr=1,Rr=2,Ur=3,jr=4,Qr=5,Hr=6,Vr=7,qr=8,Kr=9,Gr=10,zr=[2,3,7],Wr=[3,3,11],$r=[280,256,256,256,40],Yr=[0,1,1,1,0],Xr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Jr=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,3
vendor: 4,386 bytes, line 1
16,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Zr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ei=8,ti=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ni=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ri=null,ii=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],oi=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],si=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],ai=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,25
15,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],l
vendor: 7,698 bytes, line 1
1i=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ci=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],
vendor: 14,615 bytes, line 1
1ui=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],hi=[],di=[],Ai=[],pi=1,fi=2,gi=[],mi=[];vn("UpsampleRgbLinePair",Sn,3),vn("UpsampleBgrLinePair",En,3),vn("UpsampleRgbaLinePair",kn,4),vn("UpsampleBgraLinePair",Bn,4),vn("UpsampleArgbLinePair",Tn,4),vn("UpsampleRgba4444LinePair",xn,2),vn("UpsampleRgb565LinePair",In,2);var vi=e.UpsampleRgbLinePair,yi=e.UpsampleBgrLinePair,bi=e.UpsampleRgbaLinePair,_i=e.UpsampleBgraLinePair,wi=e.UpsampleArgbLinePair,Ci=e.UpsampleRgba4444LinePair,Si=e.UpsampleRgb565LinePair,Ei=16,Ii=1<<Ei-1,xi=-227,Ti=482,Bi=6,ki=(256<<Bi)-1,Pi=0,Oi=o(256),Fi=o(256),Li=o(256),Mi=o(256),Di=o(Ti-xi),Ni=o(Ti-xi);Pn("YuvToRgbRow",Sn,3),Pn("YuvToBgrRow",En,3),Pn("YuvToRgbaRow",kn,4),Pn("YuvToBgraRow",Bn,4),Pn("YuvToArgbRow",Tn,4),Pn("YuvToRgba4444Row",xn,2),Pn("YuvToRgb565Row",In,2);var Ri=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ui=[0,2,8],ji=[8,7,6,4,4,2,2,2,1,1,1,1],Qi=1;this.WebPDecodeRGBA=function(e,n,r,i,o){var s=Nr,a=new nn,l=new se;a.ba=l,l.S=s,l.width=[l.width],l.height=[l.height];var c=l.width,u=l.height,h=new ae;if(null==h||null==e)var d=2;else t(null!=h),d=Mn(e,n,r,h.width,h.height,h.Pd,h.Qd,h.format,null);if(0!=d?c=0:(null!=c&&(c[0]=h.width[0]),null!=u&&(u[0]=h.height[0]),c=1),c){l.width=l.width[0],l.height=l.height[0],null!=i&&(i[0]=l.width),null!=o&&(o[0]=l.height);e:{if(i=new Ge,(o=new rn).data=e,o.w=n,o.ha=r,o.kd=1,n=[0],t(null!=o),(0==(e=Mn(o.data,o.w,o.ha,null,null,null,n,null,o))||7==e)&&n[0]&&(e=4),0==(n=e)){if(t(null!=a),i.data=o.data,i.w=o.w+o.offset,i.ha=o.ha-o.offset,i.put=Ae,i.ac=de,i.bc=pe,i.ma=a,o.xa){if(null==(e=Te())){a=1;break e}if(function(e,n){var r=[0],i=[0],o=[0];t:for(;;){if(null==e)return 0;if(null==n)return e.a=2,0;if(e.l=n,e.a=0,m(e.m,n.data,n.w,n.ha),!fe(e.m,r,i,o)){e.a=3;break t}if(e.xb=fi,n.width=r[0],n.height=i[0],!Be(r[0],i[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,i)){if(i=0==(n=Rn(i.width,i.height,a.Oa,a.ba))){t:{i=e;n:for(;;){if(null==i){i=0;break t}if(t(null!=i.s.yc),t(null!=i.s.Ya),t(0<i.s.Wb),t(null!=(r=i.l)),t(null!=(o=r.ma)),0!=i.xb){if(i.ca=o.ba,i.tb=o.tb,t(null!=i.ca),!Dn(o.Oa,r,Ur)){i.a=2;break n}if(!ke(i,r.width))break n;if(r.da)break n;if((r.da||re(i.ca.S))&&mn(),11>i.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=i.ca.f.kb.F&&mn()),i.Pb&&0<i.s.ua&&null==i.s.vb.X&&!F(i.s.vb,i.s.Wa.Xa)){i.a=1;break n}i.xb=0}if(!Ie(i,i.V,i.Ba,i.c,i.i,r.o,we))break n;o.Dc=i.Ma,i=1;break t}t(0!=i.a),i=0}i=!i}i&&(n=e.a)}else n=e.a}else{if(null==(e=new ze)){a=1;break e}if(e.Fa=o.na,e.P=o.P,e.qc=o.Sa,Ye(e,i)){if(0==(n=Rn(i.width,i.height,a.Oa,a.ba))){if(e.Aa=0,r=a.Oa,t(null!=(o=e)),null!=r){if(0<(c=0>(c=r.Md)?0:100<c?255:255*c/100)){for(u=h=0;4>u;++u)12>(d=o.pb[u]).lc&&(d.ia=c*ji[0>d.lc?0:d.lc]>>3),h|=d.ia;h&&(alert("todo:VP8InitRandom"),o.ia=1)}o.Ga=r.Id,100<o.Ga?o.Ga=100:0>o.Ga&&(o.Ga=0)}Ze(e,i)||(n=e.a)}}else n=e.a}0==n&&null!=a.Oa&&a.Oa.fd&&(n=Nn(a.ba))}a=n}s=0!=a?null:11>s?l.f.RGBA.eb:l.f.kb.y}else s=null;return s};var Hi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(e,t){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(e[t++]);return n}function u(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16)>>>0}function h(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new l;var d=[0],A=[0],p=[],f=new l,g=e,m=function(e,t){var n={},r=0,i=!1,o=0,s=0;if(n.frames=[],!function(e,t,n,r){for(var i=0;i<4;i++)if(e[t+i]!="RIFF".charCodeAt(i))return!0;return!1}(e,t)){var a,l;for(h(e,t+=4),t+=8;t<e.length;){var d=c(e,t),A=h(e,t+=4);t+=4;var p=A+(1&A);switch(d){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(m=n.frames[r]).src_off=i?s:t-8,m.src_size=o+A+8,r++,i&&(i=!1,o=0,s=0);break;case"VP8X":(m=n.header={}).feature_flags=e[t];var f=t+4;m.canvas_width=1+u(e,f),m.canvas_height=1+u(e,f+=3),f+=3;break;case"ALPH":i=!0,o=p+8,s=t-8;break;case"ANIM":(m=n.header).bgcolor=h(e,t),m.loop_count=(a=e)[(l=f=t+4)+0]<<0|a[l+1]<<8,f+=2;break;case"ANMF":var g,m;(m=n.frames[r]={}).offset_x=2*u(e,t),m.offset_y=2*u(e,t+=3),m.width=1+u(e,t+=3),m.height=1+u(e,t+=3),m.duration=u(e,t+=3),t+=3,g=e[t++],m.dispose=1&g,m.blend=g>>1&1}"ANMF"!=d&&(t+=p)}return n}}(g,0);m.response=g,m.rgbaoutput=!0,m.dataurl=!1;var v=m.header?m.header:null,y=m.frames?m.frames:null;if(v){v.loop_counter=v.loop_count,d=[v.canvas_height],A=[v.canvas_width];for(var b=0;b<y.length&&0!=y[b].blend;b++);}var _=y[0],w=f.WebPDecodeRGBA(g,_.src_off,_.src_size,A,d);_.rgba=w,_.imgwidth=A[0],_.imgheight=d[0];for(var C=0;C<A[0]*d[0]*4;C++)p[C]=w[C];return this.width=A,this.height=d,this.data=p,this}!function(e){var t=function(t,r,l,c){var u=4,h=o;switch(c){case e.image_compression.FAST:u=1,h=i;break;case e.image_compression.MEDIUM:u=6,h=s;break;case e.image_compression.SLOW:u=9,h=a}var d=pR(t=n(t,r,l,h),{level:u});return e.__addimage__.arrayBufferToBinaryString(d)},n=function(e,t,n,r){for(var i,o,s,a=e.length/t,l=new Uint8Array(e.length+a),h=c(),d=0;d<a;d+=1){if(i=e.subarray(s=d*t,s+t),r)l.set(r(i,n,o),s+d);else{for(var A,p=h.length,f=[];A<p;A+=1)f[A]=h[A](i,n,o);var g=u(f.concat());l.set(f[g],s+d)}o=i}return l},r=function(e){var t=Array.apply([],e);return t.unshift(0),t},i=function(e,t){var n=[],r=e.length;n[0]=1;for(var i=0;i<r;i+=1)n[i+1]=e[i]-(e[i-t]||0)+256&255;return n},o=function(e,t,n){var r=[],i=e.length;r[0]=2;for(var o=0;o<i;o+=1)r[o+1]=e[o]-(n&&n[o]||0)+256&255;return r},s=function(e,t,n){var r=[],i=e.length;r[0]=3;for(var o=0;o<i;o+=1)r[o+1]=e[o]+256-((e[o-t]||0)+(n&&n[o]||0)>>>1)&255;return r},a=function(e,t,n){var r,i=[],o=e.length;i[0]=4;for(var s=0;s<o;s+=1)r=l(e[s-t]||0,n&&n[s]||0,n&&n[s-t]||0),i[s+1]=e[s]-r+256&255;return i},l=function(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),i=Math.abs(e-n),o=Math.abs(e+t-n-n);return r<=i&&r<=o?e:i<=o?t:n},c=function(){return[r,i,o,s,a]},u=function(e){var t=e.map(function(e){return e.reduce(function(e,t){return e+Math.abs(t)},0)});return t.indexOf(Math.min.apply(null,t))};e.processPNG=function(n,r,i,o){var s,a,l,c,u,h,d,A,p,f,g,m,v,y,b,_=this.decode.FLATE_DECODE,w="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(l=new ij(n)).imgData,a=l.bits,s=l.colorSpace,u=l.colors,-1!==[4,6].indexOf(l.colorType)){if(8===l.bits){p=(A=32==l.pixelBitlength?new Uint32Array(l.decodePixels().buffer):16==l.pixelBitlength?new Uint16Array(l.decodePixels().buffer):new Uint8Array(l.decodePixels().buffer)).length,g=new Uint8Array(p*l.colors),f=new Uint8Array(p);var C,S=l.pixelBitlength-l.bits;for(y=0,b=0;y<p;y++){for(v=A[y],C=0;C<S;)g[b++]=v>>>C&255,C+=l.bits;f[y]=v>>>C&255}}if(16===l.bits){p=(A=new Uint32Array(l.decodePixels().buffer)).length,g=new Uint8Array(p*(32/l.pixelBitlength)*l.colors),f=new Uint8Array(p*(32/l.pixelBitlength)),m=l.colors>1,y=0,b=0;for(var E=0;y<p;)v=A[y++],g[b++]=v>>>0&255,m&&(g[b++]=v>>>16&255,v=A[y++],g[b++]=v>>>0&255),f[E++]=v>>>16&255;a=8}o!==e.image_compression.NONE?(n=t(g,l.width*l.colors,l.colors,o),d=t(f,l.width,1,o)):(n=g,d=f,_=void 0)}if(3===l.colorType&&(s=this.color_spaces.INDEXED,h=l.palette,l.transparency.indexed)){var I=l.transparency.indexed,x=0;for(y=0,p=I.length;y<p;++y)x+=I[y];if((x/=255)==p-1&&-1!==I.indexOf(0))c=[I.indexOf(0)];else if(x!==p){for(A=l.decodePixels(),f=new Uint8Array(A.length),y=0,p=A.length;y<p;y++)f[y]=I[A[y]];d=t(f,l.width,1)}}var T=function(t){var n;switch(t){case e.image_compression.FAST:n=11;break;case e.image_compression.MEDIUM:n=13;break;case e.image_compression.SLOW:n=14;break;default:n=12}return n}(o);return _===this.decode.FLATE_DECODE&&(w="/Predictor "+T+" "),w+="/Colors "+u+" /BitsPerComponent "+a+" /Columns "+l.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(d&&this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),{alias:i,data:n,index:r,filter:_,decodeParameters:w,transparency:c,palette:h,sMask:d,predictor:T,width:l.width,height:l.height,bitsPerComponent:a,colorSpace:s}}}}(WR.API),function(e){e.processGIF89A=function(t,n,r,i){var o=new oj(t),s=o.width,a=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:s,height:a},u=new aj(100).encode(c,100);return e.processJPEG.call(this,u,n,r,i)},e.processGIF87A=e.processGIF89A}(WR.API),lj.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},lj.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP;this.data=new Uint8Array(this.width*this.height*4),this[e]()}catch(e){mR.log("bit decode error:"+e)}},lj.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*i*4,a=0;a<8&&8*i+a<this.width;a++){var l=this.palette[o>>7-a&1];this.data[s+4*a]=l.blue,this.data[s+4*a+1]=l.green,this.data[s+4*a+2]=l.red,this.data[s+4*a+3]=255}0!==n&&(this.pos+=4-n)}},lj.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var o=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*i*4,a=15&o,l=this.palette[o>>4];if(this.data[s]=l.blue,this.data[s+1]=l.green,this.data[s+2]=l.red,this.data[s+3]=255,2*i+1>=this.width)break;this.data[s+4]=(l=this.palette[a]).blue,this.data[s+4+1]=l.green,this.data[s+4+2]=l.red,this.data[s+4+3]=255}0!==t&&(this.pos+=4-t)}},lj.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var s=this.palette[i];this.data[o]=s.red,this.data[o+1]=s.green,this.data[o+2]=s.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!==e&&(this.pos+=4-e)}},lj.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,a=(o>>5&t)/t*255|0,l=o>>15?255:0,c=r*this.width*4+4*i;this.data[c]=(o>>10&t)/t*255|0,this.data[c+1]=a,this.data[c+2]=s,this.data[c+3]=l}this.pos+=e}},lj.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&t)/t*255|0,l=(s>>5&n)/n*255|0,c=i*this.width*4+4*o;this.data[c]=(s>>11)/t*255|0,this.data[c+1]=l,this.data[c+2]=a,this.data[c+3]=255}this.pos+=e}},lj.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},lj.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=s}},lj.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,i){var o=new lj(t,!1),s=o.width,a=o.height,l={data:o.getData(),width:s,height:a},c=new aj(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}}(WR.API),cj.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,i){var o=new cj(t,!1),s=o.width,a=o.height,l={data:o.getData(),width:s,height:a},c=new aj(100).encode(l,100);return e.processJPEG.call(this,c,n,r,i)}}(WR.API),WR.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,o=new Uint8Array(i/4*3),s=new Uint8Array(i/4),a=0,l=0,c=0;c<i;c+=4){var u=r[c+1],h=r[c+2],d=r[c+3];o[a++]=r[c],o[a++]=u,o[a++]=h,s[l++]=d}var A=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:A,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},WR.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canad
1a)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},ej=(ZU=WR.API).getCharWidthsArray=function(e,t){var n,r,i=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),a=t.widths?t.widths:i.metadata.Unicode.widths,l=a.fof?a.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,u=c.fof?c.fof:1,h=!1!==t.doKerning,d=0,A=e.length,p=0,f=a[0]||l,g=[];for(n=0;n<A;n++)r=e.charCodeAt(n),"function"==typeof i.metadata.widthOfString?g.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+s*(1e3/o)||0)/1e3):(d=h&&"object"===BN(c[r])&&!isNaN(parseInt(c[r][p],10))?c[r][p]/u:0,g.push((a[r]||f)/l+d)),p=r;return g},tj=ZU.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return ZU.processArabic&&(e=ZU.processArabic(e)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(e,n,i)/n:ej.apply(this,arguments).reduce(function(e,t){return e+t},0)},nj=function(e,t,n,r){for(var i=[],o=0,s=e.length,a=0;o!==s&&a+t[o]<n;)a+=t[o],o++;i.push(e.slice(0,o));var l=o;for(a=0;o!==s;)a+t[o]>r&&(i.push(e.slice(l,o)),a=0,l=o),a+=t[o],o++;return l!==o&&i.push(e.slice(l,o)),i},rj=function(e,t,n){n||(n={});var r,i,o,s,a,l,c=[],u=[c],h=n.textIndent||0,d=0,A=0,p=e.split(" "),f=ej.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?p[0].length+2:n.lineIndent||0){var g=Array(l).join(" "),m=[];p.map(function(e){(e=e.split(/\s*\n/)).length>1?m=m.concat(e.map(function(e,t){return(t&&e.length?"\n":"")+e})):m.push(e[0])}),p=m,l=tj.apply(this,[g,n])}for(o=0,s=p.length;o<s;o++){var v=0;if(r=p[o],l&&"\n"==r[0]&&(r=r.substr(1),v=1),h+d+(A=(i=ej.apply(this,[r,n])).reduce(function(e,t){return e+t},0))>t||v){if(A>t){for(a=nj.apply(this,[r,i,t-(h+d),t]),c.push(a.shift()),c=[a.pop()];a.length;)u.push([a.shift()]);A=i.slice(r.length-(c[0]?c[0].length:0)).reduce(function(e,t){return e+t},0)}else c=[r];u.push(c),h=A+l,d=f}else c.push(r),h+=d+A,d=f}return u.map(l?function(e,t){return(t?g:"")+e.join(" ")}:function(e){return e.join(" ")})},ZU.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=(function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle);return t.metadata.Unicode?{widths:t.metadata.Unicode.widths||{0:1},kerning:t.metadata.Unicode.kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var a,l,c=[];for(a=0,l=r.length;a<l;a++)c=c.concat(rj.apply(this,[r[a],s,o]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",n={},r={},i=0;i<t.length;i++)n[t[i]]="0123456789abcdef"[i],r["0123456789abcdef"[i]]=t[i];var o=function(e){return"0x"+parseInt(e,10).toString(16)},s=e.__fontmetrics__.compress=function(e){var t,n,i,a,l=["{"];for(var c in e){if(t=e[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=o(c).slice(2)).slice(0,-1)+r[n.slice(-1)]),"number"==typeof t)t<0?(i=o(t).slice(3),a="-"):(i=o(t).slice(2),a=""),i=a+i.slice(0,-1)+r[i.slice(-1)];
vendor: 1,093 bytes, line 1
1else{if("object"!==BN(t))throw new Error("Don't know what to do with value type "+BN(t)+".");i=s(t)}l.push(n+i)}return l.push("}"),l.join("")},a=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,r,i,o,s={},a=1,l=s,c=[],u="",h="",d=e.length-1,A=1;A<d;A+=1)"'"==(o=e[A])?t?(i=t.join(""),t=void 0):t=[]:t?t.push(o):"{"==o?(c.push([l,i]),l={},i=void 0):"}"==o?((r=c.pop())[0][r[1]]=l,i=void 0,l=r[0]):"-"==o?a=-1:void 0===i?n.hasOwnProperty(o)?(u+=n[o],i=parseInt(u,16)*a,a=1,u=""):u+=o:n.hasOwnProperty(o)?(h+=n[o],l[i]=parseInt(h,16)*a,a=1,i=void 0,h=""):h+=o;return s},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},u
vendor: 14,693 bytes, line 1
1={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":a("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};
vendor: 5,654 bytes, line 1
1e.events.push(["addFont",function(e){var t=e.font,n=u.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var r=c.Unicode[t.postScriptName];r&&(t.metadata.Unicode.encoding=r,t.encoding=r.codePages[0])}])}(WR.API),function(e){var t=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,o=n.instance;if(!i.isStandardFont){if(void 0===o)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(r=!1===o.existsFileInVFS(i.postScriptName)?o.loadFile(i.postScriptName):o.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?t(r):t(_R(r)),n.metadata=e.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(i,r)}}])}(WR),function(e){function t(){return(fR.canvg?Promise.resolve(fR.canvg):n.e(75).then(n.bind(n,5075))).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e})}WR.API.addSvgAsImage=function(e,n,r,i,o,s,a,l){if(isNaN(n)||isNaN(r))throw mR.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw mR.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=i,c.height=o;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return t().then(function(t){return t.fromString(u,e,h)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(e){return e.render(h)}).then(function(){d.addImage(c.toDataURL("image/jpeg",1),n,r,i,o,a,l)})}}(),WR.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},WR.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(s),l=[],c=0,u=0,h=0;function d(e,t){var n,r=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var A=a.length;for(h=0;h<A;h+=1)n[a[h]].value=n[a[h]].defaultValue,n[a[h]].explicitSet=!1}if("object"===BN(e))for(i in e)if(o=e[i],d(a,i)&&void 0!==o){if("boolean"===n[i].type&&"boolean"==typeof o)n[i].value=o;else if("name"===n[i].type&&d(n[i].valueSet,o))n[i].value=o;else if("integer"===n[i].type&&Number.isInteger(o))n[i].value=o;else if("array"===n[i].type){for(c=0;c<o.length;c+=1)if(r=!0,1===o[c].length&&"number"==typeof o[c][0])l.push(String(o[c]-1));else if(o[c].length>1){for(u=0;
vendor: 40,878 bytes, line 1
1u<o[c].length;u+=1)"number"!=typeof o[c][u]&&(r=!1);!0===r&&l.push([o[c][0]-1,o[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&t.push("name"===n[e].type?"/"+e+" /"+n[e].value:"/"+e+" "+n[e].value);0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(e){var t=function(){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(e)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),s=n.length+r.length+i.length+t.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+s+" >>"),this.internal.write("stream"),this.internal.write(t+n+r+i+o),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}(WR.API),function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,r=t.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],s=0,a=e.length;s<a;++s){if(n=t.metadata.characterToGlyph(e.charCodeAt(s)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(s),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(t.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(i[4-n.length],n)}return o.join("")},r=function(e){var t,n,r,i,o,s,a;for(o="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],s=0,a=(n=Object.keys(e).sort(function(e,t){return e-t})).length;s<a;s++)t=n[s],r.length>=100&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),null!=e[t]&&"function"==typeof e[t].toString&&(i=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),r.push("<"+t+"><"+i+">"));return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var n=t.font,i=t.out,o=t.newObject,s=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"Identity-H"===n.encoding){for(var a=n.metadata.Unicode.widths,l=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),c="",u=0;u<l.length;u++)c+=String.fromCharCode(l[u]);var h=o();s({data:c,addLength1:!0,objectId:h}),i("endobj");var d=o();s({data:r(n.metadata.toUnicode),addLength1:!0,objectId:d}),i("endobj");var A=o();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+HR(n.fontName)),i("/FontFile2 "+h+" 0 R"),i("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),i("/Flags "+n.metadata.flags),i("/StemV "+n.metadata.stemV),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i(">>"),i("endobj");var p=o();i("<<"),i("/Type /Font"),i("/BaseFont /"+HR(n.fontName)),i("/FontDescriptor "+A+" 0 R"),i("/W "+e.API.PDFObject.convert(a)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+n.encoding+")"),i(">>"),i(">>"),i("endobj"),n.objectNumber=o(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+d+" 0 R"),i("/BaseFont /"+HR(n.fontName)),i("/Encoding /"+n.encoding),i("/DescendantFonts ["+p+" 0 R]"),i(">>"),i("endobj"),n.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var n=t.font,i=t.out,o=t.newObject,s=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var a=n.metadata.rawData,l="",c=0;c<a.length;c++)l+=String.fromCharCode(a[c]);var u=o();s({data:l,addLength1:!0,objectId:u}),i("endobj");var h=o();s({data:r(n.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var d=o();i("<<"),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i("/StemV "+n.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+u+" 0 R"),i("/Flags 96"),i("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),i("/FontName /"+HR(n.fontName)),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i(">>"),i("endobj"),n.objectNumber=o();for(var A=0;A<n.metadata.hmtx.widths.length;A++)n.metadata.hmtx.widths[A]=parseInt(n.metadata.hmtx.widths[A]*(1e3/n.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+HR(n.fontName)+"/FontDescriptor "+d+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),i("endobj"),n.isAlreadyPutted=!0}}(t)}]);var i=function(e){var t,r=e.text||"",i=e.x,o=e.y,s=e.options||{},a=e.mutex||{},l=a.pdfEscape,c=a.activeFontKey,u=a.fonts,h=c,d="",A=0,p="",f=u[h].encoding;if("Identity-H"!==u[h].encoding)return{text:r,x:i,y:o,options:s,mutex:a};for(p=r,h=c,Array.isArray(r)&&(p=r[0]),A=0;A<p.length;A+=1)u[h].metadata.hasOwnProperty("cmap")&&(t=u[h].metadata.cmap.unicode.codeMap[p[A].charCodeAt(0)]),t||p[A].charCodeAt(0)<256&&u[h].metadata.hasOwnProperty("Unicode")?d+=p[A]:d+="";var g="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===f?g=l(d,h).split("").map(function(e){return e.charCodeAt(0).toString(16)}).join(""):"Identity-H"===f&&(g=n(d,u[h])),a.isHex=!0,{text:g,x:i,y:o,options:s,mutex:a}};t.events.push(["postProcessText",function(e){var t=e.text||"",n=[],r={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var o=0;for(o=0;o<t.length;o+=1)Array.isArray(t[o])&&3===t[o].length?n.push([i(Object.assign({},r,{text:t[o][0]})).text,t[o][1],t[o][2]]):n.push(i(Object.assign({},r,{text:t[o]})).text);e.text=n}else e.text=i(Object.assign({},r,{text:t})).text}])}(WR),function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(WR.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,r,i,o,s,a,l,c=t,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],d={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},A={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],f=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,m=0;this.__bidiEngine__={};var v=function(e){var t=e.charCodeAt(),n=t>>8,r=A[n];return void 0!==r?c[256*r+(255&t)]:252===n||253===n?"AL":f.test(n)?"L":8===n?"R":"N"},y=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=v(e.charAt(n))))return!1;if("R"===t)return!0}return!1},b=function(e,t,s,a){var l,c,u,h,d=t[a];switch(d){case"L":case"R":g=!1;break;case"N":case"AN":break;case"EN":g&&(d="AN");break;case"AL":g=!0,d="R";break;case"WS":d="N";break;case"CS":a<1||a+1>=t.length||"EN"!==(l=s[a-1])&&"AN"!==l||"EN"!==(c=t[a+1])&&"AN"!==c?d="N":g&&(c="AN"),d=c===l?c:"N";break;case"ES":d="EN"===(l=a>0?s[a-1]:"B")&&a+1<t.length&&"EN"===t[a+1]?"EN":"N";break;case"ET":if(a>0&&"EN"===s[a-1]){d="EN";break}if(g){d="N";break}for(u=a+1,h=t.length;u<h&&"ET"===t[u];)u++;d=u<h&&"EN"===t[u]?"EN":"N";break;case"NSM":if(i&&!o){for(h=t.length,u=a+1;u<h&&"NSM"===t[u];)u++;if(u<h){var A=e[a];if(l=t[u],(A>=1425&&A<=2303||64286===A)&&("R"===l||"AL"===l)){d="R";break}}}d=a<1||"B"===(l=t[a-1])?"N":s[a-1];break;case"B":g=!1,n=!0,d=m;break;case"S":r=!0,d="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"BN":d="N"}return d},_=function(e,t,n){var r=e.split("");return n&&w(r,n,{hiLevel:m}),r.reverse(),t&&t.reverse(),r.join("")},w=function(e,t,i){var o,s,a,l,c,A=-1,p=e.length,f=0,y=[],_=m?h:u,w=[];for(g=!1,n=!1,r=!1,s=0;s<p;s++)w[s]=v(e[s]);for(a=0;a<p;a++){if(c=f,y[a]=b(e,w,y,a),o=240&(f=_[c][d[y[a]]]),t[a]=l=_[f&=15][5],o>0)if(16===o){for(s=A;s<a;s++)t[s]=1;A=-1}else A=-1;if(_[f][6])-1===A&&(A=a);else if(A>-1){for(s=A;s<a;s++)t[s]=l;A=-1}"B"===w[a]&&(t[a]=0),i.hiLevel|=l}r&&function(e,t,n){for(var r=0;r<n;r++)if("S"===e[r]){t[r]=m;for(var i=r-1;i>=0&&"WS"===e[i];i--)t[i]=m}}(w,t,p)},C=function(e,t,r,i,o){if(!(o.hiLevel<e)){if(1===e&&1===m&&!n)return t.reverse(),void(r&&r.reverse());for(var s,a,l,c,u=t.length,h=0;h<u;){if(i[h]>=e){for(l=h+1;l<u&&i[l]>=e;)l++;for(c=h,a=l-1;c<a;c++,a--)s=t[c],t[c]=t[a],t[a]=s,r&&(s=r[c],r[c]=r[a],r[a]=s);h=l}h++}}},S=function(e,t,n){var r=e.split(""),i={hiLevel:m};return n||(n=[]),w(r,n,i),function(e,t,n){if(0!==n.hiLevel&&l)for(var r,i=0;i<e.length;i++)1===t[i]&&(r=p.indexOf(e[i]))>=0&&(e[i]=p[r+1])}(r,n,i),C(2,r,t,n,i),C(1,r,t,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;void 0===o&&(o=y(e)),void 0===a&&(a=y(e))}(e,t),i||!s||a)if(i&&s&&o^a)m=o?1:0,e=_(e,t,n);else if(!i&&s&&a)m=o?1:0,e=S(e,t,n),e=_(e,t);else if(!i||o||s||a){if(i&&!s&&o^a)e=_(e,t),o?(m=0,e=S(e,t,n)):(m=1,e=S(e,t,n),e=_(e,t));else if(i&&o&&!s&&a)m=1,e=S(e,t,n),e=_(e,t);else if(!i&&!s&&o^a){var r=l;o?(m=1,e=S(e,t,n),m=0,l=!1,e=S(e,t,n),l=r):(m=0,e=S(e,t,n),e=_(e,t),m=1,l=!1,e=S(e,t,n),l=r,e=_(e,t))}}else m=0,e=S(e,t,n);else m=o?1:0,e=S(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(i=e.isInputVisual,s=e.isOutputVisual,o=e.isInputRtl,a=e.isOutputRtl,l=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text,r=e.options||{},i=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(t)){var o=0;for(i=[],o=0;o<t.length;o+=1)"[object Array]"===Object.prototype.toString.call(t[o])?i.push([n.doBidiReorder(t[o][0]),t[o][1],t[o][2]]):i.push([n.doBidiReorder(t[o])]);e.text=i}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(WR),WR.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new hj(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new kj(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new dj(this.contents),this.head=new fj(this),this.name=new wj(this),this.cmap=new mj(this),this.toUnicode={},this.hhea=new vj(this),this.maxp=new Cj(this),this.hmtx=new Sj(this),this.post=new bj(this),this.os2=new yj(this),this.loca=new Bj(this),this.glyf=new Ij(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var e,t,n,r;for(r=[],e=0,t=(n=this.bbox).length;e<t;e++)r.push(Math.round(n[e]*this.scaleFactor));return r}).call(this),this.stemV=0,this.post.exists?(t=255&(n=this.post.italic_angle),0!=(32768&(e=n>>16))&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+t)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(r=this.familyClass)||2===r||3===r||4===r||5===r||7===r,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var r,i,o,s;for(o=0,i=0,s=(e=""+e).length;0<=s?i<s:i>s;i=0<=s?++i:--i)r=e.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/t)||0;return o*(t/1e3)},e.prototype.lineHeight=function(e,t){return null==t&&(t=!1),(this.ascender+(t?this.lineGap:0)-this.decender)/1e3*e},e}();var uj,hj=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,r;for(r=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)r.push(this.writeByte(e.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,r,i,o,s,a;return e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),a=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^s)+(255^a)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*i+65536*o+256*s+a},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,r;for(r=[],t=0,n=e.length;t<n;t++)r.push(this.writeByte(e[t]));return r},e}(),dj=function(){var e;function t(e){var t,n,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,r,i,o,s,a,l,c,u,h,d,A;for(A in h=Object.keys(t).length,s=Math.log(2),c=16*Math.floor(Math.log(h)/s),i=Math.floor(c/s),l=16*h-c,(r=new hj).writeInt(this.scalarType),r.writeShort(h),r.writeShort(c),r.writeShort(i),r.writeShort(l),a=r.pos+16*h,o=null,d=[],t)for(u=t[A],r.writeString(A),r.writeInt(e(u)),r.writeInt(a),r.writeInt(u.length),d=d.concat(u),"head"===A&&(o=a),a+=u.length;a%4;)d.push(0),a++;return r.write(d),n=2981146554-e(r.data),r.pos=o+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,i;for(e=Ej.call(e);e.length%4;)e.push(0);for(r=new hj(e),n=0,t=0,i=e.length;t<i;t=t+=4)n+=r.readUInt32();return 4294967295&n},t}(),Aj={}.hasOwnProperty,pj=function(e,t){for(var n in t)Aj.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};uj=function(){function e(e){var t;this.file=e,this.exists=!!(t=this.file.directory.tables[this.tag]),t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var fj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return pj(t,uj),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var t;return(t=new hj).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},t}(),gj=function(){function e(e,t){var n,r,i,o,s,a,l,c,u,h,d,A,p,f,g,m,v;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),u=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(a=0;a<256;++a)this.codeMap[a]=e.readByte();break;case 4:for(d=e.readUInt16(),h=d/2,e.pos+=6,i=function(){var t,n;for(n=[],a=t=0;0<=h?t<h:t>h;a=0<=h?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,p=function(){var t,n;for(n=[],a=t=0;0<=h?t<h:t>h;a=0<=h?++t:--t)n.push(e.readUInt16());return n}(),l=function(){var t,n;for(n=[],a=t=0;0<=h?t<h:t>h;a=0<=h?++t:--t)n.push(e.readUInt16());return n}(),c=function(){var t,n;for(n=[],a=t=0;0<=h?t<h:t>h;a=0<=h?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,s=function(){var t,n;for(n=[],a=t=0;0<=r?t<r:t>r;a=0<=r?++t:--t)n.push(e.readUInt16());return n}(),a=g=0,v=i.length;g<v;a=++g)for(f=i[a],n=m=A=p[a];A<=f?m<=f:m>=f;n=A<=f?++m:--m)0===c[a]?o=n+l[a]:0!==(o=s[c[a]/2+(n-A)-(h-a)]||0)&&(o+=l[a]),this.codeMap[n]=65535&o}e.pos=u}return e.encode=function(e,t){var n,r,i,o,s,a,l,c,u,h,d,A,p,f,g,m,v,y,b,_,w,C,S,E,I,x,T,B,k,P,O,F,L,M,D,N,R,U,j,Q,H,V,q,K,G;switch(T=new hj,o=Object.keys(e).sort(function(e,t){return e-t}),t){case"macroman":for(p=0,f=function(){var e=[];for(A=0;A<256;++A)e.push(0);return e}(),m={0:0},i={},B=0,F=o.length;B<F;B++)null==m[V=e[r=o[B]]]&&(m[V]=++p),i[r]={old:e[r],new:m[e[r]]},f[r]=m[e[r]];return T.writeUInt16(1),T.writeUInt16(0),T.writeUInt32(12),T.writeUInt16(0),T.writeUInt16(262),T.writeUInt16(0),T.write(f),{charMap:i,subtable:T.data,maxGlyphID:p+1};case"unicode":for(I=[],u=[],v=0,m={},n={},g=l=null,k=0,L=o.length;k<L;k++)null==m[y=e[r=o[k]]]&&(m[y]=++v),n[r]={old:y,new:m[y]},s=m[y]-r,null!=g&&s===l||(g&&u.push(g),I.push(r),l=s),g=r;for(g&&u.push(g),u.push(65535),I.push(65535),S=2*(C=I.length),w=2*Math.pow(Math.log(C)/Math.LN2,2),h=Math.log(w/2)/Math.LN2,_=2*C-w,a=[],b=[],d=[],A=P=0,M=I.length;P<M;A=++P){if(c=u[A],65535===(E=I[A])){a.push(0),b.push(0);break}if(E-(x=n[E].new)>=32768)for(a.push(0),b.push(2*(d.length+C-A)),r=O=E;E<=c?O<=c:O>=c;r=E<=c?++O:--O)d.push(n[r].new);else a.push(x-E),b.push(0)}for(T.writeUInt16(3),T.writeUInt16(1),T.writeUInt32(12),T.writeUInt16(4),T.writeUInt16(16+8*C+2*d.length),T.writeUInt16(0),T.writeUInt16(S),T.writeUInt16(w),T.writeUInt16(h),T.writeUInt16(_),Q=0,D=u.length;Q<D;Q++)T.writeUInt16(r=u[Q]);for(T.writeUInt16(0),H=0,N=I.length;H<N;H++)T.writeUInt16(r=I[H]);for(q=0,R=a.length;q<R;q++)T.writeUInt16(s=a[q]);for(K=0,U=b.length;K<U;K++)T.writeUInt16(b[K]);for(G=0,j=d.length;G<j;G++)T.writeUInt16(p=d[G]);return{charMap:n,subtable:T.data,maxGlyphID:v+1}}},e}(),mj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return pj(t,uj),t.prototype.tag="cmap",t.prototype.parse=function(e){var t,n,r;for(e.pos=this.offset,this.version=e.readUInt16(),r=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t=new gj(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},t.encode=function(e,t){var n,r;return null==t&&(t="macroman"),n=gj.encode(e,t),(r=new hj).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},t}(),vj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return pj(t,uj),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(),yj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return pj(t,uj),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(),bj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return pj(t,uj),t.prototype.tag="post",t.prototype.parse=function(e){var t,n,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:break;case 131072:var i;for(n=e.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)t=e.readByte(),r.push(this.names.push(e.readString(t)));return r;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 196608:break;case 262144:return this.map=(function(){var t,n,r;for(r=[],i=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;i=0<=n?++t:--t)r.push(e.readUInt32());return r}).call(this)}},t}(),_j=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},wj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return pj(t,uj),t.prototype.tag="name",t.prototype.parse=function(e){var t,n,r,i,o,s,a,l,c,u,h;for(e.pos=this.offset,e.readShort(),t=e.readShort(),s=e.readShort(),n=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+s+e.readShort()});for(a={},i=c=0,u=n.length;c<u;i=++c)e.pos=(r=n[i]).offset,l=e.readString(r.length),o=new _j(l,r),null==a[h=r.nameID]&&(a[h]=[]),a[r.nameID].push(o);this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5];try{this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=a[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},t}(),Cj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return pj(t,uj),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t}(),Sj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return pj(t,uj),t.prototype.tag="hmtx",t.prototype.parse=function(e){var t,n,r,i,o,s;for(e.pos=this.offset,this.metrics=[],t=0,o=this.file.hhea.numberOfMetrics;0<=o?t<o:t>o;t=0<=o?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],t=n=0;0<=r?n<r:n>r;t=0<=r?++n:--n)i.push(e.readInt16());return i}(),this.widths=(function(){var e,t,n,r;for(r=[],e=0,t=(n=this.metrics).length;e<t;e++)r.push(n[e].advance);return r}).call(this),n=this.widths[this.widths.length-1],s=[],t=i=0;0<=r?i<r:i>r;t=0<=r?++i:--i)s.push(this.widths.push(n));return s},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(),Ej=[].slice,Ij=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return pj(t,uj),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var t,n,r,i,o,s,a,l,c,u;return e in this.cache?this.cache[e]:(t=this.file.contents,n=(i=this.file.loca).indexOf(e),0===(r=i.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,o=(s=new hj(t.read(r))).readShort(),l=s.readShort(),u=s.readShort(),a=s.readShort(),c=s.readShort(),this.cache[e]=-1===o?new Tj(s,l,u,a,c):new xj(s,o,l,u,a,c),this.cache[e]))},t.prototype.encode=function(e,t,n){var r,i,o,s,a;for(o=[],i=[],s=0,a=t.length;s<a;s++)r=e[t[s]],i.push(o.length),r&&(o=o.concat(r.encode(n)));return i.push(o.length),{table:o,offsets:i}},t}(),xj=function(){function e(e,t,n,r,i,o){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Tj=function(){function e(e,t,n,r,i){var o,s;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new hj(Ej.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),Bj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return pj(t,uj),t.prototype.tag="loca",t.prototype.parse=function(e){var t;return e.pos=this.offset,this.offsets=0===this.file.head.indexToLocFormat?(function(){var n,r;for(r=[],t=0,n=this.length;t<n;t+=2)r.push(2*e.readUInt16());return r}).call(this):(function(){var n,r;for(r=[],t=0,n=this.length;t<n;t+=4)r.push(e.readUInt32());return r}).call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,o=0;o<n.length;++o)if(n[o]=r,i<t.length&&t[i]==o){++i,n[o]=r;var s=this.offsets[o+1]-this.offsets[o];s>0&&(r+=s)}for(var a=new Array(4*n.length),l=0;l<n.length;++l)a[4*l+3]=255&n[l],a[4*l+2]=(65280&n[l])>>8,a[4*l+1]=(16711680&n[l])>>16,a[4*l]=(4278190080&n[l])>>24;return a},t}(),kj=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,r;for(t in n=this.font.cmap.tables[0].codeMap,e={},r=this.subset)e[t]=n[r[t]];return e},e.prototype.glyphsFor=function(e){var t,n,r,i,o,s,a;for(r={},o=0,s=e.length;o<s;o++)r[i=e[o]]=this.font.glyf.glyphFor(i);
1for(i in t=[],r)(null!=(n=r[i])?n.compound:void 0)&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(i in a=this.glyphsFor(t))r[i]=n=a[i];return r},e.prototype.encode=function(e,t){var n,r,i,o,s,a,l,c,u,h,d,A,p,f;for(r in n=mj.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),h={0:0},f=n.charMap)h[(s=f[r]).old]=s.new;for(d in u=n.maxGlyphID,o)d in h||(h[d]=u++);return l=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(h),c=Object.keys(l).sort(function(e,t){return e-t}),A=function(){var e,t,n;for(n=[],e=0,t=c.length;e<t;e++)n.push(l[c[e]]);return n}(),i=this.font.glyf.encode(o,A,h),a=this.font.loca.encode(i.offsets,A),p={cmap:this.font.cmap.raw(),glyf:i.table,loca:a,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(p["OS/2"]=this.font.os2.raw()),this.font.directory.encode(p)},e}();WR.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var r,i;if(Array.isArray(n))return"["+function(){var e,r,i;for(i=[],e=0,r=n.length;e<r;e++)i.push(t.convert(n[e]));return i}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(r in i=["<<"],n)i.push("/"+r+" "+t.convert(n[r]));return i.push(">>"),i.join("\n")}return""+n},t}();var Pj=n(4213),Oj=n.n(Pj);let Fj=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-statistics-period"]],inputs:{title:"title",InfoListened:"InfoListened"},decls:65,vars:29,consts:[[1,"statistics-period"],[1,"statistcs-period__title"],[1,"statistics-period__content"],[1,"statistics-period__content-head"],[1,"statistics-item"],[1,"statistics-item__audio"],["src","../../../assets/icons/IconAudio.svg","alt",""],[1,"statistics-period__content-body"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275elementStart"](2,"h3"),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"div",2),i["\u0275\u0275elementStart"](5,"div",3),i["\u0275\u0275elementStart"](6,"div",4),i["\u0275\u0275elementStart"](7,"span",5),i["\u0275\u0275element"](8,"img",6),i["\u0275\u0275elementStart"](9,"span"),i["\u0275\u0275text"](10,"Audio"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](11,"span"),i["\u0275\u0275elementStart"](12,"b"),i["\u0275\u0275text"](13),i["\u0275\u0275pipe"](14,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](15," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](16,"div",7),i["\u0275\u0275elementStart"](17,"div",4),i["\u0275\u0275elementStart"](18,"span"),i["\u0275\u0275text"](19,"Srimad Bhagavatam"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](20,"span"),i["\u0275\u0275elementStart"](21,"b"),i["\u0275\u0275text"](22),i["\u0275\u0275pipe"](23,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](24," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](25,"div",4),i["\u0275\u0275elementStart"](26,"span"),i["\u0275\u0275text"](27,"Bhagavad-gita"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](28,"span"),i["\u0275\u0275elementStart"](29,"b"),i["\u0275\u0275text"](30),i["\u0275\u0275pipe"](31,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](32," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](33,"div",4),i["\u0275\u0275elementStart"](34,"span"),i["\u0275\u0275text"](35,"Caitanya-caritamrta"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](36,"span"),i["\u0275\u0275elementStart"](37,"b"),i["\u0275\u0275text"](38),i["\u0275\u0275pipe"](39,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](40," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](41,"div",4),i["\u0275\u0275elementStart"](42,"span"),i["\u0275\u0275text"](43,"Visnu-sahasranama"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](44,"span"),i["\u0275\u0275elementStart"](45,"b"),i["\u0275\u0275text"](4
16),i["\u0275\u0275pipe"](47,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](48," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](49,"div",4),i["\u0275\u0275elementStart"](50,"span"),i["\u0275\u0275text"](51,"Seminars"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](52,"span"),i["\u0275\u0275elementStart"](53,"b"),i["\u0275\u0275text"](54),i["\u0275\u0275pipe"](55,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](56," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](57,"div",4),i["\u0275\u0275elementStart"](58,"span"),i["\u0275\u0275text"](59,"Bhajans"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](60,"span"),i["\u0275\u0275elementStart"](61,"b"),i["\u0275\u0275text"](62),i["\u0275\u0275pipe"](63,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](64," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate"](t.title),i["\u0275\u0275advance"](10),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](14,8,null==t.InfoListened?null:t.InfoListened.audio,!0)),i["\u0275\u0275advance"](9),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](23,11,null==t.InfoListened?null:t.InfoListened.SB,!0)),i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](31,14,null==t.InfoListened?null:t.InfoListened.BG,!0)),i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](39,17,null==t.InfoListened?null:t.InfoListened.CC,!0)),i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](47,20,null==t.InfoListened?null:t.InfoListened.VSN,!0)),i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](55,23,null==t.InfoListened?null:t.InfoListened.Seminars,!0)),i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](63,26,null==t.InfoListened?null:t.InfoListened.others,!0)))},pipes:[HF],styles:[".statistics-period[_ngcontent-%COMP%]{width:100%;max-width:198px;min-height:334px;margin-right:24px}.statistics-period__title[_ngcontent-%COMP%] > h3[_ngcontent-%COMP%]{color:#000;font-weight:600;font-size:15px;text-align:left}.statistics-period__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-top:13px;padding:18px 17px 84px 20px;background:#f8f9fa;border-radius:4px}.statistics-period__content-head[_ngcontent-%COMP%]{margin-bottom:15px;border-bottom:1px solid #919191}.statistics-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:165px;margin-right:8px}.statistics-item__audio[_ngcontent-%COMP%], .statistics-item__video[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px}.statistics-item__audio[_ngcontent-%COMP%] > img[_ngcontent-%COMP%], .statistics-item__video[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:5px}.statistics-item__audio[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .statistics-item__video[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:var(--gray-dark);font-weight:400;font-size:11px;letter-spacing:.4px}.statistics-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{color:#000;font-weight:400;font-size:11px}.statistics-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-of-type{color:#909090}.statistics-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-of-type > b[_ngcontent-%COMP%]{color:#000;font-size:11px}"],changeDetection:0}),e})();const Lj=12,Mj="\xa0\u2013\xa0";class Dj{constructor(e){this.year=e,so.assert(Dj.isValidYear(e))}get formattedYear(){return nc(this.year.toString(),4,"0")}get isLeapYear(){return Dj.isLeapYear(this.year)}get absoluteLeapYears(){return Dj.getAbsoluteLeapYears(this.year)}get yearStartDaysOffset(){return Dj.getYearStartDaysOffset(this.year,this.absoluteLeapYears)}yearBefore({year:e}){return this.year<e}yearSameOrBefore({year:e}){return this.year<=e}yearSame({year:e}){return this.year===e}yearSameOrAfter({year:e}){return this.year>=e}yearAfter({year:e}){return this.year>e}append({year:e=0},t=!1){so.assert(Number.isInteger(e)),t&&(e*=-1);const n=this.year+e;return so.assert(Dj.isValidYear(n)),new Dj(n)}toString(){return this.formattedYear}toJSON(){return this.formattedYear}static isValidYear(e){return Number.isInteger(e)&&lo(e,0,1e4)}static isLeapYear(e){return so.assert(Dj.isValidYear(e)),e%400==0||e%4==0&&e%100!=0}static getAbsoluteLeapYears(e){return so.assert(Dj.isValidYear(e)),Math.ceil(e/4
100)+(Math.ceil(e/4)-Math.ceil(e/100))}static getYearStartDaysOffset(e,t){return so.assert(Dj.isValidYear(e)),so.assert(Number.isInteger(t)),so.assert(e>=t),so.assert(t>=0),(366*t+365*(e-t)+5)%7}static lengthBetween(e,t){return t.year-e.year}static normalizeYearPart(e){return co(e,0,9999)}}class Nj extends Dj{constructor(e,t){super(e),this.month=t,so.assert(Nj.isValidMonth(e,t))}get formattedMonthPart(){return nc((this.month+1).toString(),2,"0")}get formattedMonth(){return`${this.formattedMonthPart}.${this.formattedYear}`}get weeksRowsCount(){return Math.ceil((this.monthStartDaysOffset+this.daysCount)/7)}get daysCount(){return Nj.getMonthDaysCount(this.month,this.isLeapYear)}get monthStartDaysOffset(){let e=this.yearStartDaysOffset;for(let t=0;t<=this.month-1;t++)e+=Nj.getMonthDaysCount(t,this.isLeapYear);return e%7}monthBefore(e){return this.yearBefore(e)||this.yearSame(e)&&this.month<e.month}monthSameOrBefore(e){return this.yearBefore(e)||this.yearSame(e)&&this.month<=e.month}monthSame(e){return this.yearSame(e)&&this.month===e.month}monthSameOrAfter(e){return this.yearAfter(e)||this.yearSame(e)&&this.month>=e.month}monthAfter(e){return this.yearAfter(e)||this.yearSame(e)&&this.month>e.month}append({year:e=0,month:t=0},n=!1){n&&(e*=-1,t*=-1);const r=(this.year+e)*Lj+this.month+t;return new Nj(Math.floor(r/Lj),r%Lj)}toString(){return this.formattedMonth}toJSON(){return`${super.toJSON()}-${this.formattedMonthPart}`}toLocalNativeDate(){return new Date(this.year,this.month)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month))}static isValidMonth(e,t){return Dj.isValidYear(e)&&Nj.isValidMonthPart(t)}static getMonthDaysCount(e,t){switch(so.assert(Nj.isValidMonthPart(e)),e){case 1:return t?29:28;case 3:case 5:case 8:case 10:return 30;default:return 31}}static currentLocal(){const e=new Date;return new Nj(e.getFullYear(),e.getMonth())}static currentUtc(){const e=new Date;return new Nj(e.getUTCFullYear(),e.getUTCMonth())}static lengthBetween(e,t){return t.month+12*t.year-(e.month+12*e.year)}static normalizeMonthPart(e){return co(e,0,11)}static isValidMonthPart(e){return Number.isInteger(e)&&lo(e,0,12)}}class Rj extends Nj{constructor(e,t,n){super(e,t),this.day=n,so.assert(Rj.isValidDay(e,t,n))}get formattedDayPart(){return nc(this.day.toString(),2,"0")}get formattedDay(){return`${this.formattedDayPart}.${this.formattedMonth}`}dayOfWeek(e=!0){const t=e?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return t<0?6:t}dayBefore(e){return this.monthBefore(e)||this.monthSame(e)&&this.day<e.day}daySameOrBefore(e){return this.monthBefore(e)||this.monthSame(e)&&this.day<=e.day}daySame(e){return this.monthSame(e)&&this.day===e.day}daySameOrAfter(e){return this.monthAfter(e)||this.monthSame(e)&&this.day>=e.day}dayAfter(e){return this.monthAfter(e)||this.monthSame(e)&&this.day>e.day}dayLimit(e,t){return null!==e&&this.dayBefore(e)?e:null!==t&&this.dayAfter(t)?t:this}append({year:e=0,month:t=0,day:n=0},r=!1){r&&(e*=-1,t*=-1,n*=-1);const i=(this.year+e)*Lj+this.month+t;let o=Math.floor(i/Lj),s=i%Lj,a=Math.min(this.day,Nj.getMonthDaysCount(s,Dj.isLeapYear(o)))+n;for(;a>Nj.getMonthDaysCount(s,Dj.isLeapYear(o));)a-=Nj.getMonthDaysCount(s,Dj.isLeapYear(o)),11===s?(o++,s=0):s++;for(;a<1;)0===s?(o--,s=11):s--,a+=Nj.getMonthDaysCount(s,Dj.isLeapYear(o));return new Rj(o,s,a)}toString(){return this.formattedDay}toJSON(){return`${super.toJSON()}-${this.formattedDayPart}`}toLocalNativeDate(){return new Date(this.year,this.month,this.day)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month,this.day))}static fromLocalNativeDate(e){return new Rj(e.getFullYear(),e.getMonth(),e.getDate())}static fromUtcNativeDate(e){return new Rj(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}static isValidDay(e,t,n){return Nj.isValidMonth(e,t)&&Number.isInteger(n)&&lo(n,1,Nj.getMonthDaysCount(t,Dj.isLeapYear(e))+1)}static getDayFromMonthRowCol(e,t,n){so.assert(Number.isInteger(t)),so.assert(lo(t,0,6)),so.assert(Number.isInteger(n)),so.assert(lo(n,0,7));let r=7*t+n-e.monthStartDaysOffset+1;return r>e.daysCount&&(r-=e.daysCount,e=e.append({month:1})),r<=0&&(r=(e=e.append({month:-1})).daysCount+r),new Rj(e.year,e.month,r)}static currentLocal(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate();return new Rj(t,n,r)}static normalizeOf(e,t,n){const r=Dj.normalizeYearPart(e),i=Nj.normalizeMonthPart(t),o=Rj.normalizeDayPart(n,i,r);return new Rj(r,i,o)}static lengthBetween(e,t){return Math.round((t.toLocalNativeDate().getTime()-e.toLocalNativeDate().getTime())/864e5)}static normalizeParse(e){const t=parseInt(e.slice(0,2),10),n=parseInt(e.slice(3,5),10)-1,r=parseInt(e.slice(6,10),10);return Rj.normalizeOf(r,n,t)}static jsonParse(e){const t=parseInt(e.slice(8,10),10),n=parseInt(e.slice(5,7),10)-1,r=parseInt(e.slice(0,4),10);if(!Dj.isValidYear(r))throw new Error("Invalid year: "+r);if(!Nj.isValidMonth(r,n))throw new Error("Invalid month: "+n);if(!Number.isInteger(t)||!lo(t,1,Nj.getMonthDaysCount(n,Dj.isLeapYear(r))+1))throw new Error("Invalid day: "+t);return new Rj(r,n,t)}static normalizeDayPart(e,t,n){return so.assert(Nj.isValidMonth(n,t)),co(e,1,Nj.getMonthDaysCount(t,Dj.isLeapYear(n)))}}const Uj=new Rj(0,0,1),jj=new Rj(9999,11,31),Qj=new i.InjectionToken("date filler for Taiga UI",{factory:()=>"dd.mm.yyyy"}),Hj=(new i.InjectionToken("date range filler for Taiga UI",{factory:()=>{const e=(0,i.inject)(Qj);return`${e}\xa0\u2013\xa0${e}`}}),10),Vj=20+Mj.length;class qj{constructor(e,t){this.from=e,this.to=t,so.assert(e.monthSameOrBefore(t))}get isSingleMonth(){return this.from.monthSame(this.to)}get formattedMonthRange(){return`${this.from.formattedMonth}\xa0\u2013\xa0${this.to.formattedMonth}`}monthSame(e){return this.from.monthSame(e.from)&&this.to.monthSame(e.to)}toString(){return`${this.from}\xa0\u2013\xa0${this.to}`}static sort(e,t){return e.monthSameOrBefore(t)?new qj(e,t):new qj(t,e)}}class Kj extends qj{constructor(e,t){super(e,t),this.from=e,this.to=t,so.assert(e.daySameOrBefore(t))}get isSingleDay(){return this.from.daySame(this.to)}get formattedDayRange(){return`${this.from.formattedDay}\xa0\u2013\xa0${this.to.formattedDay}`}daySame(e){return this.from.daySame(e.from)&&this.to.daySame(e.to)}dayLimit(e,t){return new Kj(this.from.dayLimit(e,t),this.to.dayLimit(e,t))}static sort(e,t){return e.daySameOrBefore(t)?new Kj(e,t):new Kj(t,e)}static normalizeParse(e){const t=Rj.normalizeParse(e.slice(0,Hj));return e.length<Vj?new Kj(t,t):Kj.sort(t,Rj.normalizeParse(e.slice(Hj+Mj.length)))}}const Gj=new i.InjectionToken("Active date format for Taiga UI",{factory:()=>"DMY"}),zj={mask:()=>!1},Wj=[ps,ps,".",ps,ps,".",ps,ps,ps,ps],$j=[...Wj,ji,"\u2013",ji,...Wj],Yj=(e,t,n,r)=>{if(!t||!t.isSingleDay||!n)return e;const i=t.from.append(n,r).append({day:1},!r);return r?i.dayBefore(e)?e:i:e&&i.dayAfter(e)?e:i};function Xj(e,t){return Rj.normalizeParse(e.slice(0,Hj)).dayLimit(t.min,t.max)}function Jj(e,t){switch(e.length){case Hj:return Xj(e,t).toString();case Hj+Mj.length:return Xj(e,t).toString()+Mj;case Vj:return t.value&&t.value.toString()===e?e:Kj.sort(Xj(e.slice(0,Hj),t),Xj(e.slice(Hj+Mj.length),t)).toString();default:return e}}class Zj{constructor(e){this.$implicit=e}}let eQ=(()=>{let e=class{constructor(e,t){this.viewContainer=e,this.templateRef=t}set tuiRepeatTimesOf(e){const t=Math.floor(ao(e,0,65536)),{length:n}=this.viewContainer;e<n?this.removeContainers(n-e):this.addContainers(t)}addContainers(e){for(let t=this.viewContainer.length;t<e;t++)this.viewContainer.createEmbeddedView(this.templateRef,new Zj(t))}
1removeContainers(e){for(let t=0;t<e;t++)this.viewContainer.remove()}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](i.ViewContainerRef),i["\u0275\u0275directiveInject"](i.TemplateRef))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiRepeatTimes","","tuiRepeatTimesOf",""]],inputs:{tuiRepeatTimesOf:"tuiRepeatTimesOf"}}),Kr([is()],e.prototype,"tuiRepeatTimesOf",null),e=Kr([Gr(0,(0,i.Inject)(i.ViewContainerRef)),Gr(1,(0,i.Inject)(i.TemplateRef))],e),e})(),tQ=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})(),nQ=(()=>{let e=class{constructor(e){this.tuiColor="",this.tuiBackground="",e.addStyle("[data-tui-background='primary'] {\n    background-color: var(--tui-primary);\n}\n\n[data-tui-background='secondary'] {\n    background-color: var(--tui-info-fill);\n}\n\n[data-tui-background='success'] {\n    background-color: var(--tui-success-fill);\n}\n\n[data-tui-background='error'] {\n    background-color: var(--tui-error-fill);\n}\n\n[data-tui-background='support-mustard'],\n[data-tui-background='support-01'] {\n    background-color: var(--tui-support-01);\n}\n\n[data-tui-background='support-texas'],\n[data-tui-background='support-02'] {\n    background-color: var(--tui-support-02);\n}\n\n[data-tui-background='support-tan'],\n[data-tui-background='support-03'] {\n    background-color: var(--tui-support-03);\n}\n\n[data-tui-background='support-salmon'],\n[data-tui-background='support-04'] {\n    background-color: var(--tui-support-04);\n}\n\n[data-tui-background='support-sienna'],\n[data-tui-background='support-05'] {\n    background-color: var(--tui-support-05);\n}\n\n[data-tui-background='support-bittersweet'],\n[data-tui-background='support-06'] {\n    background-color: var(--tui-support-06);\n}\n\n[data-tui-background='support-pinkie'],\n[data-tui-background='support-07'] {\n    background-color: var(--tui-support-07);\n}\n\n[data-tui-background='support-charm'],\n[data-tui-background='support-08'] {\n    background-color: var(--tui-support-08);\n}\n\n[data-tui-background='support-amethyst'],\n[data-tui-background='support-09'] {\n    background-color: var(--tui-support-09);\n}\n\n[data-tui-background='support-helio'],\n[data-tui-background='support-10'] {\n    background-color: var(--tui-support-10);\n}\n\n[data-tui-background='support-lilac'],\n[data-tui-background='support-11'] {\n    background-color: var(--tui-support-11);\n}\n\n[data-tui-background='support-malibu'],\n[data-tui-background='support-12'] {\n    background-color: var(--tui-support-12);\n}\n\n[data-tui-background='support-havelock'],\n[data-tui-background='support-13'] {\n    background-color: var(--tui-support-13);\n}\n\n[data-tui-background='support-picton'],\n[data-tui-background='support-14'] {\n    background-color: var(--tui-support-14);\n}\n\n[data-tui-background='support-mint'],\n[data-tui-background='support-15'] {\n    background-color: var(--tui-support-15);\n}\n\n[data-tui-background='support-fountain'],\n[data-tui-background='support-16'] {\n    background-color: var(--tui-support-16);\n}\n\n[data-tui-background='support-puertorico'],\n[data-tui-background='support-17'] {\n    background-color: var(--tui-support-17);\n}\n\n[data-tui-background='support-bay'],\n[data-tui-background='support-18'] {\n    background-color: var(--tui-support-18);\n}\n\n[data-tui-background='support-forest'],\n[data-tui-background='support-19'] {\n    background-color: var(--tui-support-19);\n}\n\n[data-tui-background='support-york'],\n[data-tui-background='support-20'] {\n    background-color: var(--tui-support-20);\n}\n\n[data-tui-background='support-feijoa'],\n[data-tui-background='support-21'] {\n    background-color: var(--tui-support-21);\n}\n\n[data-tui-background='base-01'] {\n    background-color: var(--tui-base-01);\n}\n\n[data-tui-background='base-02'] {\n    background-color: var(--tui-base-02);\n}\n\n[data-tui-background='base-03'] {\n    background-color: var(--tui-base-03);\n}\n\n[data-tui-background='base-04'] {\n    background-color: var(--tui-base-04);\n}\n\n[data-tui-background='base-05'] {\n    background-color: var(--tui-base-05);\n}\n\n[data-tui-background='base-06'] {\n    background-color: var(--tui-base-06);\n}\n\n[data-tui-background='base-07'] {\n    background-color: var(--tui-base-0
17);\n}\n\n[data-tui-background='base-08'] {\n    background-color: var(--tui-base-08);\n}\n\n[data-tui-background='base-09'] {\n    background-color: var(--tui-base-09);\n}\n\n[data-tui-color='primary'] {\n    color: var(--tui-primary);\n}\n\n[data-tui-color='secondary'] {\n    color: var(--tui-info-fill);\n}\n\n[data-tui-color='success'] {\n    color: var(--tui-success-fill);\n}\n\n[data-tui-color='error'] {\n    color: var(--tui-error-fill);\n}\n\n[data-tui-color='support-mustard'],\n[data-tui-color='support-01'] {\n    color: var(--tui-support-01);\n}\n\n[data-tui-color='support-texas'],\n[data-tui-color='support-02'] {\n    color: var(--tui-support-02);\n}\n\n[data-tui-color='support-tan'],\n[data-tui-color='support-03'] {\n    color: var(--tui-support-03);\n}\n\n[data-tui-color='support-salmon'],\n[data-tui-color='support-04'] {\n    color: var(--tui-support-04);\n}\n\n[data-tui-color='support-sienna'],\n[data-tui-color='support-05'] {\n    color: var(--tui-support-05);\n}\n\n[data-tui-color='support-bittersweet'],\n[data-tui-color='support-06'] {\n    color: var(--tui-support-06);\n}\n\n[data-tui-color='support-pinkie'],\n[data-tui-color='support-07'] {\n    color: var(--tui-support-07);\n}\n\n[data-tui-color='support-charm'],\n[data-tui-color='support-08'] {\n    color: var(--tui-support-08);\n}\n\n[data-tui-color='support-amethyst'],\n[data-tui-color='support-09'] {\n    color: var(--tui-support-09);\n}\n\n[data-tui-color='support-helio'],\n[data-tui-color='support-10'] {\n    color: var(--tui-support-10);\n}\n\n[data-tui-color='support-lilac'],\n[data-tui-color='support-11'] {\n    color: var(--tui-support-11);\n}\n\n[data-tui-color='support-malibu'],\n[data-tui-color='support-12'] {\n    color: var(--tui-support-12);\n}\n\n[data-tui-color='support-havelock'],\n[data-tui-color='support-13'] {\n    color: var(--tui-support-13);\n}\n\n[data-tui-color='support-picton'],\n[data-tui-color='support-14'] {\n    color: var(--tui-support-14);\n}\n\n[data-tui-color='support-mint'],\n[data-tui-color='support-15'] {\n    color: var(--tui-support-15);\n}\n\n[data-tui-color='support-fountain'],\n[data-tui-color='support-16'] {\n    color: var(--tui-support-16);\n}\n\n[data-tui-color='support-puertorico'],\n[data-tui-color='support-17'] {\n    color: var(--tui-support-17);\n}\n\n[data-tui-color='support-bay'],\n[data-tui-color='support-18'] {\n    color: var(--tui-support-18);\n}\n\n[data-tui-color='support-forest'],\n[data-tui-color='support-19'] {\n    color: var(--tui-support-19);\n}\n\n[data-tui-color='support-york'],\n[data-tui-color='support-20'] {\n    color: var(--tui-support-20);\n}\n\n[data-tui-color='support-feijoa'],\n[data-tui-color='support-21'] {\n    color: var(--tui-support-21);\n}\n\n[data-tui-color='base-01'] {\n    color: var(--tui-base-01);\n}\n\n[data-tui-color='base-02'] {\n    color: var(--tui-base-02);\n}\n\n[data-tui-color='base-03'] {\n    color: var(--tui-base-03);\n}\n\n[data-tui-color='base-04'] {\n    color: var(--tui-base-04);\n}\n\n[data-tui-color='base-05'] {\n    color: var(--tui-base-05);\n}\n\n[data-tui-color='base-06'] {\n    color: var(--tui-base-06);\n}\n\n[data-tui-color='base-07'] {\n    color: var(--tui-base-07);\n}\n\n[data-tui-color='base-08'] {\n    color: var(--tui-base-08);\n}\n\n[data-tui-color='base-09'] {\n    color: var(--tui-base-09);\n}\n","TuiColorDirective")}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Wo))},e.\u0275dir=i["\u0275\u0275defineDirective"]({type:e,selectors:[["","tuiColor",""],["","tuiBackground",""]],hostVars:2,hostBindings:function(e,t){2&e&&i["\u0275\u0275attribute"]("data-tui-color",t.tuiColor)("data-tui-background",t.tuiBackground)},inputs:{tuiColor:"tuiColor",tuiBackground:"tuiBackground"}}),Rr([ns()],e.prototype,"tuiColor",void 0),Rr([ns()],e.prototype,"tuiBackground",void 0),e=Rr([Ur(0,(0,i.Inject)(Wo))],e),e})(),rQ=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();const iQ=({month:e,rowIndex:t,colIndex:n,firstDayOfWeek:r})=>{so.assert(Number.isInteger(t)),so.assert(lo(t,0,6)),so.assert(Number.isInteger(n)),so.assert(lo(n,0,7));let i=7*t+n-((e,t)=>{const n=new Date(e.year,e.month,1).getDay();return n>=t?n-t:7-(t-n)})(e,r)+1;return i>e.daysCount&&(i-=e.daysCount,e=e.append({month:1})),i<=0&&(i=(e=e.append({month:-1})).daysCount+i),new Rj(e.year,e.month,i)};let oQ=(()=>{let e=class{constructor(e){this.firstDayOfWeek=e,this.currentMonth=null,this.currentSheet=[]}transform(e,t=!1){if(null!==this.currentMonth&&this.currentMonth.monthSame(e))return this.currentSheet;const n=[];for(let r=0;r<6;r++){const i=[];for(let n=0;n<7;n++){const o=iQ({month:e,rowIndex:r,colIndex:n,firstDayOfWeek:this.firstDayOfWeek}),s=(t,n=e)=>t.year>n.year||t.month>n.month;if(!((t,n=e)=>t.year<n.year||t.month<n.month)(o)||t){if(s(o)&&!t)break;
1i.push(o)}}n.push(i)}return this.currentSheet=n.filter(e=>e.length),this.currentMonth=e,this.currentSheet}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Us,16))},e.\u0275pipe=i["\u0275\u0275definePipe"]({name:"tuiCalendarSheet",type:e,pure:!0}),e=Rr([Ur(0,(0,i.Inject)(Us))],e),e})(),sQ=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();function aQ(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",3),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate"](e)}}function lQ(e,t){if(1&e&&i["\u0275\u0275element"](0,"div",12),2&e){const e=i["\u0275\u0275nextContext"]().ngIf;i["\u0275\u0275property"]("tuiBackground",e[1])}}function cQ(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",11),i["\u0275\u0275element"](1,"div",12),i["\u0275\u0275template"](2,lQ,1,1,"div",13),i["\u0275\u0275elementEnd"]()),2&e){const e=t.ngIf;i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("tuiBackground",e[0]),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.length>1)}}function uQ(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",8),i["\u0275\u0275listener"]("tuiHoveredChange",function(t){i["\u0275\u0275restoreView"](e);const n=i["\u0275\u0275nextContext"]().tuiLet;return i["\u0275\u0275nextContext"](4).onItemHovered(t,n)})("tuiPressedChange",function(t){i["\u0275\u0275restoreView"](e);const n=i["\u0275\u0275nextContext"]().tuiLet;return i["\u0275\u0275nextContext"](4).onItemPressed(t,n)})("click",function(t){i["\u0275\u0275restoreView"](e);const n=i["\u0275\u0275nextContext"]().tuiLet;return i["\u0275\u0275nextContext"](4).onItemClick(t,n)}),i["\u0275\u0275elementStart"](1,"div",9),i["\u0275\u0275text"](2),i["\u0275\u0275template"](3,cQ,3,2,"div",10),i["\u0275\u0275pipe"](4,"tuiMapper"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]().tuiLet,t=i["\u0275\u0275nextContext"]().$implicit,n=i["\u0275\u0275nextContext"](3);i["\u0275\u0275classProp"]("cell_today",n.itemIsToday(e))("cell_interval",n.itemIsInterval(e)),i["\u0275\u0275attribute"]("data-tui-element-range",n.getItemRange(e))("data-tui-element-state",n.getItemState(e)),i["\u0275\u0275advance"](1),i["\u0275\u0275classProp"]("item_weekend",t>4)("item_unavailable",n.itemIsUnavailable(e)),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e.day," "),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",i["\u0275\u0275pipeBind4"](4,12,e,n.toMarkers,n.itemIsToday(e),!!n.getItemRange(e)))}}function hQ(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275template"](1,uQ,5,17,"div",7),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=t.tuiLet,n=i["\u0275\u0275nextContext"](4);i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!n.itemIsUnavailable(e)||n.showAdjacent)}}function dQ(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275template"](1,hQ,2,1,"ng-container",2),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=t.$implicit,n=i["\u0275\u0275nextContext"]().$implicit,r=i["\u0275\u0275nextContext"]().tuiLet;i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("tuiLet",r[n][e])}}function AQ(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",5),i["\u0275\u0275template"](1,dQ,2,1,"ng-container",6),i["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit,n=i["\u0275\u0275nextContext"]().tuiLet;i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("tuiRepeatTimesOf",n[e].length)}}function pQ(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div"),i["\u0275\u0275template"](1,AQ,2,1,"div",4),i["\u0275\u0275elementEnd"]()),2&e){const e=t.tuiLet;i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("tuiRepeatTimesOf",e.length)}}let fQ=(()=>{let e=class{constructor(e){this.weekDays$=e,this.month=Nj.currentLocal(),this.disabledItemHandler=Oi,this.markerHandler=ds,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new i.EventEmitter,this.dayClick=new i.EventEmitter,this.pressedItem=null,this.today=Rj.currentLocal(),this.toMarkers=(e,t,n)=>{if(t||n)return null;const r=this.markerHandler(e);return 0===r.length?null:r}}get isSingle(){return null!==this.value&&(this.value instanceof Rj||this.value.isSingleDay)}getItemState(e){const{disabledItemHandler:t,pressedItem:n,hoveredItem:r}=this;return t(e)?"disabled":null!==n&&n.daySame(e)?"pressed":null!==r&&r.daySame(e)?"hovered":null}getItemRange(e){const{value:t,hoveredItem:n}=this;return null===t?null:t instanceof Rj?t.daySame(e)?"single":null:t.from.daySame(e)&&!t.isSingleDay||null!==n&&n.dayAfter(t.from)&&t.from.daySame(e)&&t.isSingleDay||null!==n&&n.daySame(e)&&n.dayBefore(t.from)&&t.isSingleDay?"start":t.to.daySame(e)&&!t.isSingleDay||null!==n&&n.dayBefore(t.from)&&t.from.daySame(e)&&t.isSingleDay||null!==n&&n.daySame(e)&&n.dayAfter(t.from)&&t.isSingleDay?"end":t.isSingleDay&&t.from.daySame(e)?"single":null}itemIsDisabled(e){const{disabledItemHandler:t}=this;return t(e)}itemIsToday(e){return this.today.daySame(e)}itemIsUnavailable(e){return!this.month.monthSame(e)}itemIsInterval(e){const{value:t,hoveredItem:n}=this;if(null===t||t instanceof Rj)return!1;if(!t.isSingleDay)return t.from.daySameOrBefore(e)&&t.to.dayAfter(e);if(null===n)return!1;const r=Kj.sort(t.from,n);return r.from.daySameOrBefore(e)&&r.to.dayAfter(e)}onItemHovered(e,t){this.updateHoveredItem(e?t:null)}onItemPressed(e,t){this.updatePressedItem(e,t)}onItemClick(e,t){this.disabledItemHandler(t)||(e.preventDefault(),this.dayClick.emit(t))}updateHoveredItem(e){qr(this.hoveredItem,e,(e,t)=>e.daySame(t))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}updatePressedItem(e,t){this.pressedItem=e?t:null}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Qs))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-primitive-calendar"]],hostVars:2,hostBindings:function(e,t){2&e&&i["\u0275\u0275classProp"]("_single",t.isSingle)},inputs:{month:"month",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",value:"value",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent"},outputs:{hoveredItemChange:"hoveredItemChange",dayClick:"dayClick"},decls:5,vars:7,consts:[[1,"row","row_weekday"],["class","cell",4,"ngFor","ngForOf"],[4,"tuiLet"],[1,"cell"],["automation-id","tui-primitive-calendar__row","class","row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-calendar__row",1,"row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-calendar__cell","class","cell",3,"cell_today","cell_interval","tuiHoveredChange","tuiPressedCh
1ange","click",4,"ngIf"],["automation-id","tui-primitive-calendar__cell",1,"cell",3,"tuiHoveredChange","tuiPressedChange","click"],["automation-id","tui-primitive-calendar__item",1,"item"],["class","dots",4,"ngIf"],[1,"dots"],[1,"dot",3,"tuiBackground"],["class","dot",3,"tuiBackground",4,"ngIf"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275template"](1,aQ,2,1,"div",1),i["\u0275\u0275pipe"](2,"async"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](3,pQ,2,1,"div",2),i["\u0275\u0275pipe"](4,"tuiCalendarSheet")),2&e&&(i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBind1"](2,2,t.weekDays$)),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("tuiLet",i["\u0275\u0275pipeBind2"](4,4,t.month,!0)))},directives:[Ft.sg,ss,eQ,Ft.O5,Nc,gA,nQ],pipes:[Ft.Ov,oQ,Xd],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-m);display:block}.row[_ngcontent-%COMP%]{position:relative;z-index:0;display:flex;justify-content:space-between;height:2.25rem}.item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.item[_ngcontent-%COMP%]:after, .item[_ngcontent-%COMP%]:before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:2.25rem;text-align:center;outline:0;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:2px solid transparent}.cell[_ngcontent-%COMP%]:before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%,0);content:'';bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background-color:var(--tui-text-02)}.cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%]   .cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-2.25rem}.cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.cell_interval[_ngcontent-%COMP%]:first-child > .item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.cell_interval[_ngcontent-%COMP%]:last-child > .item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.cell_interval[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{border-radius:0}.cell[data-tui-element-range][_ngcontent-%COMP%]:after{background-color:var(--tui-primary-text)}.cell[data-tui-element-range][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.cell[data-tui-element-range][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:after, .cell[data-tui-element-range][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:before{background-color:var(--tui-primary)}.cell[data-tui-element-range][data-tui-element-state=hovered][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:after, .cell[data-tui-element-range][data-tui-element-state=hovered][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:before{background-color:var(--tui-primary-hover)}.cell[data-tui-element-range][data-tui-element-state=pressed][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:after, .cell[data-tui-element-range][data-tui-element-state=pressed][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:before{background-color:var(--tui-primary-active)}.cell[data-tui-element-range=end][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:before{left:.25rem}.cell[data-tui-element-range=end][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translateX(1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.cell[data-tui-element-range=start][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:before{right:.25rem}.cell[data-tui-element-range=start][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translateX(-1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.cell[data-tui-element-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.cell[data-tui-element-state=disabled][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{opacity:.36}.cell[data-tui-element-state=hovered][_ngcontent-%COMP%]:hover:not([data-tui-element-range]) > .item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.cell[data-tui-element-state=pressed][_ngcontent-%COMP%]:hover:not([data-tui-element-range]) > .item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}
1[_nghost-%COMP%]{width:15.75rem}.row[_ngcontent-%COMP%]{justify-content:flex-start}.row[_ngcontent-%COMP%]:first-child{justify-content:flex-end}.row_weekday[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none}.item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.item_weekend[_ngcontent-%COMP%]{color:var(--tui-negative)}.item_unavailable[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}.dots[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:-.5rem;padding-bottom:.25rem}.dot[_ngcontent-%COMP%]{display:inline-block;width:.25rem;height:.25rem;border-radius:100%;margin:0 .0625rem}"],changeDetection:0}),Rr([ns()],e.prototype,"month",void 0),Rr([ns()],e.prototype,"disabledItemHandler",void 0),Rr([ns()],e.prototype,"markerHandler",void 0),Rr([ns()],e.prototype,"value",void 0),Rr([ns()],e.prototype,"hoveredItem",void 0),Rr([ns()],e.prototype,"showAdjacent",void 0),e=Rr([Ur(0,(0,i.Inject)(Qs))],e),e})(),gQ=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,as,Jd,tQ,Rc,mA,rQ,sQ]]}),e})();function mQ(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",4),i["\u0275\u0275listener"]("tuiHoveredChange",function(t){const n=i["\u0275\u0275restoreView"](e).tuiLet;return i["\u0275\u0275nextContext"](3).onItemHovered(t,n)})("tuiPressedChange",function(t){const n=i["\u0275\u0275restoreView"](e).tuiLet;return i["\u0275\u0275nextContext"](3).onItemPressed(t,n)})("click",function(){const t=i["\u0275\u0275restoreView"](e).tuiLet;return i["\u0275\u0275nextContext"](3).onItemClick(t)}),i["\u0275\u0275elementStart"](1,"div",5),i["\u0275\u0275text"](2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=t.tuiLet,n=i["\u0275\u0275nextContext"](3);i["\u0275\u0275classProp"]("cell_today",n.itemIsToday(e))("cell_interval",n.itemIsInterval(e)),i["\u0275\u0275property"]("tuiScrollIntoView",n.scrollItemIntoView(e)),i["\u0275\u0275attribute"]("data-tui-element-range",n.getItemRange(e))("data-tui-element-state",n.getItemState(e)),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate"](e)}}function vQ(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275template"](1,mQ,3,8,"div",3),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=t.$implicit,n=i["\u0275\u0275nextContext"]().$implicit,r=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("tuiLet",r.getItem(n,e))}}function yQ(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",1),i["\u0275\u0275template"](1,vQ,2,1,"ng-container",2),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("tuiRepeatTimesOf",4))}let bQ=(()=>{let e=class{constructor(){this.value=null,this.initialItem=Nj.currentLocal(),this.min=Uj,this.max=jj,this.disabledItemHandler=Oi,this.yearClick=new i.EventEmitter,this.hoveredItem=null,this.pressedItem=null,this.currentYear=Nj.currentLocal().year}get isSingle(){const{value:e}=this;return!!e&&this.isRange(e)&&e.from.yearSame(e.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/4)}get calculatedMin(){const e=this.initialItem.year-100;return this.min.year>e?this.min.year:e}get calculatedMax(){const e=this.initialItem.year+100;return this.max.year<e?this.max.year+1:e}isRange(e){return e instanceof qj}scrollItemIntoView(e){return this.initialItem.year===e}getItem(e,t){return 4*e+t+this.calculatedMin}getItemState(e){const{disabledItemHandler:t,max:n,pressedItem:r,hoveredItem:i}=this;return n.year<e||t!==Oi&&t(e)?"disabled":r===e?"pressed":i===e?"hovered":null}getItemRange(e){const{value:t,hoveredItem:n}=this;return null===t?null:t instanceof Dj?t.year===e?"single":null:t.from.year===e&&!t.from.yearSame(t.to)||null!==n&&n>t.from.year&&t.from.year===e&&t.from.yearSame(t.to)||null!==n&&n===e&&n<t.from.year&&t.from.yearSame(t.to)?"start":t.to.year===e&&!t.from.yearSame(t.to)||null!==n&&n<t.from.year&&t.from.year===e&&t.from.yearSame(t.to)||null!==n&&n===e&&n>t.from.year&&t.from.yearSame(t.to)?"end":t.from.yearSame(t.to)&&t.from.year===e?"single":null}itemIsToday(e){return this.currentYear===e}itemIsInterval(e){const{value:t,hoveredItem:n}=this;return!(null===t||!this.isRange(t))&&(t.from.yearSame(t.to)?null!==n&&t.from.year!==n&&lo(e,Math.min(t.from.year,n),Math.max(t.from.year,n)):t.from.year<=e&&t.to.year>e)}onItemHovered(e,t){this.updateHoveredItem(e,t)}onItemPressed(e,t){this.updatePressedItem(e,t)}onItemClick(e){this.yearClick.emit(new Dj(e))}updateHoveredItem(e,t){this.hoveredItem=e?t:null}updatePressedItem(e,t){this.pressedItem=e?t:null}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-primitive-year-picker"]],hostVars:2,hostBindings:function(e,t){2&e&&i["\u0275\u0275classProp"]("_single",t.isSingle)},inputs:{value:"value",initialItem:"initialItem",min:"min",max:"max",disabledItemHandler:"disabledItemHandler"},outputs:{yearClick:"yearClick"},decls:1,vars:1,consts:[["automation-id","tui-primitive-year-picker__row","class","row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-year-picker__row",1,"row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-year-picker__cell","class","cell",3,"cell_today","cell_interval","tuiScrollIntoView","tuiHoveredChange","tuiPressedCh
1ange","click",4,"tuiLet"],["automation-id","tui-primitive-year-picker__cell",1,"cell",3,"tuiScrollIntoView","tuiHoveredChange","tuiPressedChange","click"],[1,"item"]],template:function(e,t){1&e&&i["\u0275\u0275template"](0,yQ,2,1,"div",0),2&e&&i["\u0275\u0275property"]("tuiRepeatTimesOf",t.rows)},directives:[eQ,ss,Rd,Nc,gA],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-m);display:block}.row[_ngcontent-%COMP%]{position:relative;z-index:0;display:flex;justify-content:space-between;height:2.25rem;margin:.875rem 0}.item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.item[_ngcontent-%COMP%]:after, .item[_ngcontent-%COMP%]:before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:3.9375rem;text-align:center;outline:0;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:2px solid transparent}.cell[_ngcontent-%COMP%]:before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%,0);content:'';bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background-color:var(--tui-text-02)}.cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%]   .cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-3.9375rem}.cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.cell_interval[_ngcontent-%COMP%]:first-child > .item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.cell_interval[_ngcontent-%COMP%]:last-child > .item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.cell_interval[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{border-radius:0}.cell[data-tui-element-range][_ngcontent-%COMP%]:after{background-color:var(--tui-primary-text)}.cell[data-tui-element-range][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.cell[data-tui-element-range][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:after, .cell[data-tui-element-range][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:before{background-color:var(--tui-primary)}.cell[data-tui-element-range][data-tui-element-state=hovered][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:after, .cell[data-tui-element-range][data-tui-element-state=hovered][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:before{background-color:var(--tui-primary-hover)}.cell[data-tui-element-range][data-tui-element-state=pressed][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:after, .cell[data-tui-element-range][data-tui-element-state=pressed][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:before{background-color:var(--tui-primary-active)}.cell[data-tui-element-range=end][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:before{left:.25rem}.cell[data-tui-element-range=end][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translateX(1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.cell[data-tui-element-range=start][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:before{right:.25rem}.cell[data-tui-element-range=start][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translateX(-1.4375rem) scaleY(.6) scaleX(.4) rotate(45deg)}.cell[data-tui-element-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.cell[data-tui-element-state=disabled][_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{opacity:.36}.cell[data-tui-element-state=hovered][_ngcontent-%COMP%]:hover:not([data-tui-element-range]) > .item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.cell[data-tui-element-state=pressed][_ngcontent-%COMP%]:hover:not([data-tui-element-range]) > .item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}
1[_nghost-%COMP%]{width:15.75rem}.row[_ngcontent-%COMP%]:first-child{margin-top:0}.row[_ngcontent-%COMP%]:last-child{margin-bottom:0}"],changeDetection:0}),Rr([ns()],e.prototype,"value",void 0),Rr([ns()],e.prototype,"initialItem",void 0),Rr([ns()],e.prototype,"min",void 0),Rr([ns()],e.prototype,"max",void 0),Rr([ns()],e.prototype,"disabledItemHandler",void 0),e})(),_Q=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Rc,mA,tQ,as,Ud]]}),e})();const wQ=["wrapper"];function CQ(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",1,2),i["\u0275\u0275listener"]("tuiFocusedChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onFocused(t)})("tuiFocusVisibleChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onFocusVisible(t)})("keydown.arrowLeft",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onLeftClick()})("keydown.arrowRight",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onRightClick()}),i["\u0275\u0275elementStart"](2,"button",3),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onLeftClick()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"span",4),i["\u0275\u0275projection"](4),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"button",5),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onRightClick()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=t.ngIf,n=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("tuiFocusable",n.computedFocusable),i["\u0275\u0275advance"](2),i["\u0275\u0275classProp"]("arrow_hidden",n.leftComputedDisabled),i["\u0275\u0275property"]("title",e[0])("focusable",!1),i["\u0275\u0275advance"](3),i["\u0275\u0275classProp"]("arrow_hidden",n.rightComputedDisabled),i["\u0275\u0275property"]("title",e[1])("focusable",!1)}}const SQ=["*"];let EQ=(()=>{let e=class extends Vs{constructor(e){super(),this.spinTexts$=e,this.disabled=!1,this.mode="flat",this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new i.EventEmitter,this.rightClick=new i.EventEmitter}get focused(){return!!this.wrapper&&zi(this.wrapper.nativeElement)}get leftComputedDisabled(){return this.computedDisabled||this.leftDisabled}get rightComputedDisabled(){return this.computedDisabled||this.rightDisabled}onLeftClick(){this.leftComputedDisabled||this.leftClick.emit()}onRightClick(){this.rightComputedDisabled||this.rightClick.emit()}onFocused(e){this.updateFocused(e)}onFocusVisible(e){this.updateFocusVisible(e)}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Bs))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-primitive-spin-button"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](wQ,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.wrapper=e.first)}},inputs:{disabled:"disabled",mode:"mode",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},features:[i["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:SQ,decls:2,vars:3,consts:[["class","wrapper","tuiPreventDefault","mousedown",3,"tuiFocusable","tuiFocusedChange","tuiFocusVisibleChange","keydown.arrowLeft","keydown.arrowRight",4,"ngIf"],["tuiPreventDefault","mousedown",1,"wrapper",3,"tuiFocusable","tuiFocusedChange","tuiFocusVisibleChange","keydown.arrowLeft","keydown.arrowRight"],["wrapper",""],["tuiIconButton","","type","button","size","xs","appearance","","automation-id","tui-primitive-spin-button__left","icon","tuiIconChevronLeftLarge",1,"arrow",3,"title","focusable","click"],[1,"content"],["tuiIconButton","","type","button","size","xs","appearance","","automation-id","tui-primitive-spin-button__right","icon","tuiIconChevronRightLarge",1,"arrow",3,"title","focusable","click"]],template:function(e,t){1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275template"](0,CQ,6,9,"div",0),i["\u0275\u0275pipe"](1,"async")),2&e&&i["\u0275\u0275property"]("ngIf",i["\u0275\u0275pipeBind1"](1,1,t.spinTexts$))},directives:[Ft.O5,Lu,Kh,zh,vA,Ya],pipes:[Ft.Ov],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-l);display:block;text-align:center;font-weight:700}.wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;outline:0}.arrow[_ngcontent-%COMP%]{margin:0 .25rem}.arrow_hidden[_ngcontent-%COMP%]{visibility:hidden}.content[_ngcontent-%COMP%]{padding:0 .5rem}._focus-visible[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{box-shadow:0 0 0 1px var(--tui-focus)}"],changeDetection:0}),Rr([ns()],e.prototype,"disabled",void 0),Rr([ns()],e.prototype,"mode",void 0),Rr([ns()],e.prototype,"leftDisabled",void 0),Rr([ns()],e.prototype,"rightDisabled",void 0),e=Rr([Ur(0,(0,i.Inject)(Bs))],e),e})(),IQ=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,yA,Wh,Gh,Mu,Xa]]}),e})(),xQ=(()=>{let e=class{constructor(e){this.months$=e}transform({month:e}){return this.months$.pipe((0,on.U)(t=>t[e]))}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](Is,16))},e.\u0275pipe=i["\u0275\u0275definePipe"]({name:"tuiMonth",type:e,pure:!0}),e=Rr([Ur(0,(0,i.Inject)(Is))],e),e})(),TQ=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({}),e})();function BQ(e,t){if(1&e&&(i["\u0275\u0275elementContainerStart"](0),i["\u0275\u0275text"](1),i["\u0275\u0275elementContainerEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e.value.formattedYear," ")}}function kQ(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"button",3),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onYearClick()}),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("tuiFocusable",!1),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e.value.formattedYear," ")}}let PQ=(()=>{let e=class{constructor(){this.value=Nj.currentLocal(),this.min=Uj,this.max=jj,this.valueChange=new i.EventEmitter,this.yearClick=new i.EventEmitter}get prevMonthDisabled(){return this.value.monthSameOrBefore(this.min)}get nextMonthDisabled(){return this.value.monthSameOrAfter(this.max)}get oneYear(){return this.min.year===this.max.year}onYearClick(){this.yearClick.next(this.value)}onPrevMonthClick(){this.appendValueWithLimit({month:-1})}onNextMonthClick(){this.appendValueWithLimit({month:1})}appendValueWithLimit(e){const t=this.value.append(e);
1this.min.monthSameOrAfter(t)?this.updateValue(this.min):this.max.monthSameOrBefore(t)?this.updateValue(this.max):this.updateValue(t)}updateValue(e){this.value.monthSame(e)||(this.value=e,this.valueChange.emit(e))}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-primitive-year-month-pagination"]],inputs:{value:"value",min:"min",max:"max"},outputs:{valueChange:"valueChange",yearClick:"yearClick"},decls:7,vars:10,consts:[[3,"focusable","leftDisabled","rightDisabled","leftClick","rightClick"],[4,"ngIf","ngIfElse"],["button",""],["automation-id","tui-primitive-year-month-pagination__year-button","tuiLink","","type","button",3,"tuiFocusable","click"]],template:function(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"tui-primitive-spin-button",0),i["\u0275\u0275listener"]("leftClick",function(){return t.onPrevMonthClick()})("rightClick",function(){return t.onNextMonthClick()}),i["\u0275\u0275text"](1),i["\u0275\u0275pipe"](2,"async"),i["\u0275\u0275pipe"](3,"tuiMonth"),i["\u0275\u0275template"](4,BQ,2,1,"ng-container",1),i["\u0275\u0275template"](5,kQ,2,2,"ng-template",null,2,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](6);i["\u0275\u0275property"]("focusable",!1)("leftDisabled",t.prevMonthDisabled)("rightDisabled",t.nextMonthDisabled),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",i["\u0275\u0275pipeBind1"](2,6,i["\u0275\u0275pipeBind1"](3,8,t.value))," "),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngIf",t.oneYear)("ngIfElse",e)}},directives:[EQ,Ft.O5,gu,Kh],pipes:[Ft.Ov,xQ],styles:["[_nghost-%COMP%]{display:block}"]}),Rr([ns()],e.prototype,"value",void 0),Rr([ns()],e.prototype,"min",void 0),Rr([ns()],e.prototype,"max",void 0),e})(),OQ=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,Gh,IQ,mu,TQ]]}),e})();function FQ(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"tui-scrollbar",2),i["\u0275\u0275elementStart"](1,"tui-primitive-year-picker",3),i["\u0275\u0275listener"]("yearClick",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onPickerYearClick(t)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("min",e.min)("max",e.max)("initialItem",e.year)("value",e.value)}}function LQ(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"tui-primitive-year-month-pagination",4),i["\u0275\u0275listener"]("valueChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onPaginationValueChange(t)})("yearClick",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onPaginationYearClick(t)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](1,"tui-primitive-calendar",5),i["\u0275\u0275listener"]("hoveredItemChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onHoveredItemChange(t)})("dayClick",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onDayCl
1ick(t)}),i["\u0275\u0275pipe"](2,"tuiMapper"),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("min",e.computedMinViewedMonth)("max",e.computedMaxViewedMonth)("value",e.month),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("showAdjacent",e.showAdjacent)("value",e.value)("month",e.month)("disabledItemHandler",i["\u0275\u0275pipeBind4"](2,9,e.disabledItemHandler,e.disabledItemHandlerMapper,e.min,e.max))("markerHandler",e.markerHandler)("hoveredItem",e.hoveredItem)}}let MQ=(()=>{let e=class{constructor(){this.month=Nj.currentLocal(),this.value=null,this.disabledItemHandler=Oi,this.min=Uj,this.max=jj,this.minViewedMonth=Uj,this.maxViewedMonth=jj,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=ds,this.dayClick=new i.EventEmitter,this.monthChange=new i.EventEmitter,this.hoveredItemChange=new i.EventEmitter,this.year=null,this.disabledItemHandlerMapper=(e,t,n)=>r=>r.dayBefore(t)||r.dayAfter(n)||e(r)}get computedMinViewedMonth(){return this.minViewedMonth.monthSameOrAfter(this.min)?this.minViewedMonth:this.min}get computedMaxViewedMonth(){return this.maxViewedMonth.monthSameOrBefore(this.max)?this.maxViewedMonth:this.max}onPaginationYearClick(e){this.year=e}onPickerYearClick({year:e}){this.year=null,this.updateViewedMonth(new Nj(e,this.month.month))}onPaginationValueChange(e){this.updateViewedMonth(e)}onDayClick(e){this.dayClick.emit(e)}onHoveredItemChange(e){this.updateHoveredDay(e)}updateViewedMonth(e){this.month.monthSame(e)||(this.month=e,this.monthChange.emit(e))}updateHoveredDay(e){qr(this.hoveredItem,e,(e,t)=>e.daySame(t))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-calendar"]],inputs:{month:"month",value:"value",disabledItemHandler:"disabledItemHandler",min:"min",max:"max",minViewedMonth:"minViewedMonth",maxViewedMonth:"maxViewedMonth",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent",markerHandler:"markerHandler"},outputs:{dayClick:"dayClick",monthChange:"monthChange",hoveredItemChange:"hoveredItemChange"},decls:3,vars:2,consts:[["class","scrollbar","automation-id","tui-calendar__scrollbar",4,"ngIf","ngIfElse"],["calendar",""],["automation-id","tui-calendar__scrollbar",1,"scrollbar"],["automation-id","tui-calendar__year",3,"min","max","initialItem","value","yearClick"],["automation-id","tui-calendar__pagination",1,"pagination",3,"min","max","value","valueChange","yearClick"],["automation-id","tui-calendar__calendar",3,"showAdjacent","value","month","disabledItemHandler","markerHandler","hoveredItem","hoveredItemChange","dayClick"]],template:function(e,t){if(1&e&&(i["\u0275\u0275template"](0,FQ,2,4,"tui-scrollbar",0),i["\u0275\u0275template"](1,LQ,3,14,"ng-template",null,1,i["\u0275\u0275templateRefExtractor"])),2&e){const e=i["\u0275\u0275reference"](2);i["\u0275\u0275property"]("ngIf",t.year)("ngIfElse",e)}},directives:[Ft.O5,wc,bQ,PQ,fQ],pipes:[Xd],styles:["[_nghost-%COMP%]{display:block;height:18.25rem;width:15.75rem;padding:1rem 1.125rem;box-sizing:content-box}.scrollbar[_ngcontent-%COMP%]{height:18.25rem;width:16.875rem}.pagination[_ngcontent-%COMP%]{margin-bottom:1rem}"],changeDetection:0}),Rr([ns()],e.prototype,"month",void 0),Rr([ns()],e.prototype,"value",void 0),Rr([ns()],e.prototype,"disabledItemHandler",void 0),Rr([ns()],e.prototype,"min",void 0),Rr([ns()],e.prototype,"max",void 0),Rr([ns()],e.prototype,"minViewedMonth",void 0),Rr([ns()],e.prototype,"maxViewedMonth",void 0),Rr([ns()],e.prototype,"hoveredItem",void 0),Rr([ns()],e.prototype,"showAdjacent",void 0),Rr([ns()],e.prototype,"markerHandler",void 0),e})(),DQ=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,OQ,gQ,_Q,Cc,Jd]]}),e})(),NQ=(()=>{let e=class{constructor(e,t,n){this.disabledItemHandler=Oi,this.markerHandler=ds,this.defaultViewedMonthFirst=Nj.currentLocal(),this.defaultViewedMonthSecond=Nj.currentLocal().append({month:1}),this.min=Uj,this.max=jj,this.value=null,this.dayClick=new i.EventEmitter,this.hoveredItem=null,this.monthOffset=(e,t)=>e.append({month:t}),this.userViewedMonthFirst=this.defaultViewedMonthFirst,this.userViewedMonthSecond=this.defaultViewedMonthSecond,e&&e.pipe(ro(t),bo(n)).subscribe(e=>{this.value=e,this.updateViewedMonths()})}get cappedUserViewedMonthSecond(){return this.userViewedMonthSecond.monthBefore(this.max)?this.userViewedMonthSecond:this.max}get cappedUserViewedMonthFirst(){return this.userViewedMonthFirst.monthSameOrBefore(this.userViewedMonthSecond)?this.userViewedMonthFirst:this.userViewedMonthSecond}ngOnInit(){this.updateViewedMonths()}onSectionFirstViewedMonth(e){this.userViewedMonthFirst=e,this.userViewedMonthSecond.year<this.userViewedMonthFirst.year&&(this.userViewedMonthSecond=this.userViewedMonthSecond.append({year:e.year-this.userViewedMonthSecond.year}))}onSectionSecondViewedMonth(e){this.userViewedMonthSecond=e,this.userViewedMonthFirst.year>this.userViewedMonthSecond.year&&(this.userViewedMonthFirst=this.userViewedMonthFirst.append({year:e.year-this.userViewedMonthFirst.year}))}onDayClick(e){this.dayClick.emit(e)}updateViewedMonths(){this.userViewedMonthFirst=null===this.value?this.defaultViewedMonthFirst:this.value.from,this.userViewedMonthSecond=null===this.value?this.defaultViewedMonthSecond:this.value.to,this.userViewedMonthFirst.monthSame(this.userViewedMonthSecond)&&(this.userViewedMonthSecond=this.userViewedMonthSecond.append({month:1}))}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](XA,8),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](zo))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-primitive-calendar-range"]],inputs:{disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",defaultViewedMonthFirst:"defaultViewedMonthFirst",defaultViewedMonthSecond:"defaultViewedMonthSecond",min:"min",max:"max",value:"value"},outputs:{dayClick:"dayClick"},features:[i["\u0275\u0275ProvidersFeature"]([zo])],decls:4,vars:26,consts:[[3,"min","max","month","markerHandler","maxViewedMonth","value","disabledItemHandler","showAdjacent","hoveredItem","hoveredItemChange","dayClick","monthChange"],[1,"border",3,"min","max","month","markerHandler","minViewedMonth","value","disabledItemHandler","showAdjacent","hoveredItem","hoveredItemChange","dayClick","monthChange"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"tui-calendar",0),i["\u0275\u0275listener"]("hoveredItemChange",function(e){return t.hoveredItem=e})("dayClick",function(e){return t.onDayClick(e)})("monthChange",function(e){return t.onSectionFirstViewedMonth(e)}),i["\u0275\u0275pipe"](1,"tuiMapper"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](2,"tui-calendar",1),i["\u0275\u0275listener"]("hoveredItemChange",function(e){return t.hoveredItem=e})("dayClick",function(e){return t.onDayClick(e)})("monthChange",function(e){return t.onSectionSecondViewedMonth(e)}),i["\u0275\u0275pipe"](3,"tuiMapper"),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("min",t.min)("max",t.max)("month",t.userViewedMonthFirst)("markerHandler",t.markerHandler)("maxViewedMonth",i["\u0275\u0275pipeBind3"](1,18,t.cappedUserViewedMonthSecond,t.monthOffset,
1-1))("value",t.value)("disabledItemHandler",t.disabledItemHandler)("showAdjacent",!1)("hoveredItem",t.hoveredItem),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("min",t.min)("max",t.max)("month",t.userViewedMonthSecond)("markerHandler",t.markerHandler)("minViewedMonth",i["\u0275\u0275pipeBind3"](3,22,t.cappedUserViewedMonthFirst,t.monthOffset,1))("value",t.value)("disabledItemHandler",t.disabledItemHandler)("showAdjacent",!1)("hoveredItem",t.hoveredItem))},directives:[MQ],pipes:[Xd],styles:["[_nghost-%COMP%]{display:flex}.border[_ngcontent-%COMP%]{border-left:1px solid var(--tui-base-03)}"],changeDetection:0}),Bh([ns()],e.prototype,"disabledItemHandler",void 0),Bh([ns()],e.prototype,"markerHandler",void 0),Bh([ns()],e.prototype,"defaultViewedMonthFirst",void 0),Bh([ns()],e.prototype,"defaultViewedMonthSecond",void 0),Bh([ns()],e.prototype,"min",void 0),Bh([ns()],e.prototype,"max",void 0),Bh([ns()],e.prototype,"value",void 0),e=Bh([kh(0,(0,i.Inject)(XA)),kh(0,(0,i.Optional)()),kh(1,(0,i.Inject)(i.ChangeDetectorRef)),kh(2,(0,i.Inject)(zo))],e),e})(),RQ=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Jd,Cc,DQ]]}),e})();const UQ=function(e,t,n,r){return[e,t,n,r,!0]},jQ=function(e,t,n,r){return[e,t,n,r,!1]};function QQ(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"tui-primitive-calendar-range",2),i["\u0275\u0275listener"]("dayClick",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onDayCl
1ick(t)}),i["\u0275\u0275pipe"](1,"tuiMapper"),i["\u0275\u0275pipe"](2,"tuiMapper"),i["\u0275\u0275pipe"](3,"tuiMapper"),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("markerHandler",e.markerHandler)("min",i["\u0275\u0275pipeBindV"](1,7,i["\u0275\u0275pureFunction4"](22,UQ,e.min,e.maxLengthMapper,e.value,e.maxLength)))("max",i["\u0275\u0275pipeBindV"](2,13,i["\u0275\u0275pureFunction4"](27,jQ,e.max,e.maxLengthMapper,e.value,e.maxLength)))("defaultViewedMonthFirst",e.defaultViewedMonth)("defaultViewedMonthSecond",i["\u0275\u0275pipeBind2"](3,19,e.defaultViewedMonth,e.monthShiftMapper))("disabledItemHandler",e.calculatedDisabledItemHandler)("value",e.value)}}function HQ(e,t){1&e&&i["\u0275\u0275element"](0,"tui-svg",9)}function VQ(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"button",7),i["\u0275\u0275listener"]("keydown.enter.prevent",function(){const t=i["\u0275\u0275restoreView"](e).$implicit;return i["\u0275\u0275nextContext"](2).onItemSelect(t)})("keydown.space.prevent",function(){const t=i["\u0275\u0275restoreView"](e).$implicit;return i["\u0275\u0275nextContext"](2).onItemSelect(t)})("click",function(){const t=i["\u0275\u0275restoreView"](e).$implicit;return i["\u0275\u0275nextContext"](2).onItemSelect(t)}),i["\u0275\u0275text"](1),i["\u0275\u0275template"](2,HQ,1,0,"tui-svg",8),i["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit,n=i["\u0275\u0275nextContext"](2);i["\u0275\u0275attribute"]("aria-checked",n.isItemActive(e)),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e," "),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",n.isItemActive(e))}}const qQ=function(e,t,n,r,i,o){return[e,t,n,r,i,o]};function KQ(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"div",3),i["\u0275\u0275elementStart"](1,"tui-calendar",4),i["\u0275\u0275listener"]("dayClick",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onDayCl
1ick(t)}),i["\u0275\u0275pipe"](2,"tuiMapper"),i["\u0275\u0275pipe"](3,"tuiMapper"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"tui-data-list",5),i["\u0275\u0275template"](5,VQ,3,3,"button",6),i["\u0275\u0275pipe"](6,"tuiMapper"),i["\u0275\u0275pipe"](7,"async"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("value",e.value)("markerHandler",e.markerHandler)("min",i["\u0275\u0275pipeBindV"](2,7,i["\u0275\u0275pureFunction4"](28,UQ,e.min,e.maxLengthMapper,e.value,e.maxLength)))("max",i["\u0275\u0275pipeBindV"](3,13,i["\u0275\u0275pureFunction4"](33,jQ,e.max,e.maxLengthMapper,e.value,e.maxLength)))("month",e.computedMonth)("disabledItemHandler",e.calculatedDisabledItemHandler),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngForOf",i["\u0275\u0275pipeBindV"](6,19,i["\u0275\u0275pureFunction6"](38,qQ,e.items,e.mapper,e.min,e.max,e.minLength,i["\u0275\u0275pipeBind1"](7,26,e.otherDateText$))))}}let GQ=(()=>{let e=class{constructor(e,t,n,r){this.otherDateText$=r,this.defaultViewedMonth=Nj.currentLocal(),this.disabledItemHandler=Oi,this.markerHandler=ds,this.items=[],this.min=Uj,this.max=jj,this.minLength=null,this.maxLength=null,this.value=null,this.valueChange=new i.EventEmitter,this.rangeChange=new i.EventEmitter,this.maxLengthMapper=Yj,this.monthShiftMapper=e=>e.append({month:1}),this.mapper=(e,t,n,r,i)=>[...e.filter(e=>(null===r||e.range.from.append(r).daySameOrBefore(e.range.to))&&e.range.to.daySameOrAfter(t)&&(null===n||e.range.from.daySameOrBefore(n))),i],e&&e.pipe(ro(t),bo(n)).subscribe(e=>{this.value=e})}get calculatedDisabledItemHandler(){return this.calculateDisabledItemHandler(this.disabledItemHandler,this.value,this.minLength)}get computedMonth(){return this.value?this.value.to:this.defaultViewedMonth}isItemActive(e){const{activePeriod:t}=this;return"string"==typeof e&&null===t||t===e}onRangeChange(e){this.updateValue(e)}onDayClick(e){const{value:t}=this;null!==t&&t.isSingleDay?this.updateValue(Kj.sort(t.from,e)):this.value=new Kj(e,e)}onItemSelect(e){"string"==typeof e?null!==this.activePeriod&&this.updateValue(null):this.updateValue(e.range.dayLimit(this.min,this.max))}updateValue(e){this.value=e,this.valueChange.emit(e),this.rangeChange.emit(e)}get activePeriod(){return this.items.find(e=>qr(this.value,e.range,(e,t)=>e.from.daySame(t.from.dayLimit(this.min,this.max))&&e.to.daySame(t.to.dayLimit(this.min,this.max))))||null}calculateDisabledItemHandler(e,t,n){return r=>{if(!t||!t.isSingleDay||!n)return e(r);const i=t.from.append(n,!0).append({day:1}),o=t.from.append(n).append({day:-1});return i.dayBefore(r)&&o.dayAfter(r)||e(r)}}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](XA,8),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](zo),i["\u0275\u0275directiveInject"](ZA))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-calendar-range"]],inputs:{defaultViewedMonth:"defaultViewedMonth",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength",value:"value"},outputs:{valueChange:"valueChange",rangeChange:"rangeChange"},features:[i["\u0275\u0275ProvidersFeature"]([zo])],decls:3,vars:2,consts:[["automation-id","tui-calendar-range__calendars","tuiPreventDefault","mousedown",3,"markerHandler","min","max","defaultViewedMonthFirst","defaultViewedMonthSecond","disabledItemHandler","value","dayClick",4,"ngIf","ngIfElse"],["presets",""],["automation-id","tui-calendar-range__calendars","tuiPreventDefault","mousedown",3,"markerHandler","min","max","defaultViewedMonthFirst","defaultViewedMonthSecond","disabledItemHandler","value","dayClick"],[1,"wrapper"],["automation-id","tui-calendar-range__calendar","tuiPreventDefault","mousedown",3,"value","markerHandler","min","max","month","disabledItemHandler","dayClick"],["role","menu","automation-id","tui-calendar-range__menu",1,"menu"],["tuiOption","","tuiPreventDefault","mousedown","role","menuitemradio","automation-id","tui-calendar-range__menu__item",3,"keydown.enter.prevent","keydown.space.prevent","click",4,"ngFor","ngForOf"],["tuiOption","","tuiPreventDefault","mousedown","role","menuitemradio","automation-id","tui-calendar-range__menu__item",3,"keydown.enter.prevent","keydown.space.prevent","click"],["automation-id","tui-calendar-range__checkmark","class","checkmark","src","tuiIconCheck",4,"ngIf"],["automation-id","tui-calendar-range__checkmark","src","tuiIconCheck",1,"checkmark"]
1],template:function(e,t){if(1&e&&(i["\u0275\u0275template"](0,QQ,4,32,"tui-primitive-calendar-range",0),i["\u0275\u0275template"](1,KQ,8,45,"ng-template",null,1,i["\u0275\u0275templateRefExtractor"])),2&e){const e=i["\u0275\u0275reference"](2);i["\u0275\u0275property"]("ngIf",!t.items.length)("ngIfElse",e)}},directives:[Ft.O5,NQ,Lu,MQ,Pu,Ft.sg,Bu,Fa],pipes:[Xd,Ft.Ov],styles:["[_nghost-%COMP%]{display:block}.wrapper[_ngcontent-%COMP%]{display:flex}.menu[_ngcontent-%COMP%]{width:11rem;border-left:1px solid var(--tui-base-03)}.checkmark[_ngcontent-%COMP%]{margin-left:auto;width:1rem;height:1rem}"],changeDetection:0}),Bh([ns()],e.prototype,"defaultViewedMonth",void 0),Bh([ns()],e.prototype,"disabledItemHandler",void 0),Bh([ns()],e.prototype,"markerHandler",void 0),Bh([ns()],e.prototype,"items",void 0),Bh([ns()],e.prototype,"min",void 0),Bh([ns()],e.prototype,"max",void 0),Bh([ns()],e.prototype,"minLength",void 0),Bh([ns()],e.prototype,"maxLength",void 0),Bh([ns()],e.prototype,"value",void 0),Bh([rs],e.prototype,"calculateDisabledItemHandler",null),e=Bh([kh(0,(0,i.Inject)(XA)),kh(0,(0,i.Optional)()),kh(1,(0,i.Inject)(i.ChangeDetectorRef)),kh(2,(0,i.Inject)(zo)),kh(3,(0,i.Inject)(ZA))],e),e})(),zQ=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,Jd,Mu,DQ,DQ,La,Fu,RQ]]}),e})();function WQ(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"tui-primitive-textfield",4),i["\u0275\u0275listener"]("valueChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onValueChange(t)})("hoveredChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onHovered(t)})("pressedChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onPressed(t)}),i["\u0275\u0275projection"](1),i["\u0275\u0275elementEnd"]()}if(2&e){const e=t.tuiLet,n=i["\u0275\u0275nextContext"](),r=i["\u0275\u0275reference"](4);i["\u0275\u0275property"]("pseudoFocused",n.innerPseudoFocused)("pseudoHovered",n.pseudoHovered)("pseudoPressed",n.pseudoPressed)("invalid",n.computedInvalid)("tuiTextfieldExampleText",n.computedExampleText)("nativeId",n.nativeId)("filler",n.getComputedRangeFiller(e))("readOnly",n.readOnly)("iconContent",n.computedMobile?r:n.calendarIcon)("disabled",n.computedDisabled)("textMask",n.computedMask)("value",n.computedValue)}}function $Q(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"tui-svg",5),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onMobileClick()}),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275classProp"]("icon",!e.computedDisabled),i["\u0275\u0275property"]("src",e.calendarIcon)}}function YQ(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"tui-calendar-range",6),i["\u0275\u0275listener"]("valueChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onRangeChange(t)}),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("defaultViewedMonth",e.defaultViewedMonth)("disabledItemHandler",e.disabledItemHandler)("items",e.items)("min",e.min)("max",e.max)("markerHandler",e.markerHandler)("minLength",e.minLength)("maxLength",e.maxLength)("value",e.value)}}const XQ=["*"];var JQ;const ZQ=function(e){return e?no(e):(0,Yt.of)(null)};let eH=(()=>{let e=JQ=class extends zs{constructor(e,t,n,r,i,o,s,a,l,c){var u;super(e,t),this.injector=n,this.isMobile=r,this.dialogService=i,this.mobileCalendar=o,this.textfieldSize=s,this.textfieldExampleText=a,this.dateFormat=l,this.dateTexts$=c,this.disabledItemHandler=Oi,this.markerHandler=ds,this.defaultViewedMonth=Nj.currentLocal(),this.items=[],this.min=Uj,this.max=jj,this.minLength=null,this.maxLength=null,this.open=!1,this.maxLengthMapper=Yj,this.dateFiller$=this.dateTexts$.pipe(function(...e){const t=e.length;if(0===t)throw new Error("list of properties cannot be empty.");return n=>(0,on.U)(function(e,t){return n=>{let r=n;for(let i=0;i<t;i++){const t=null!=r?r[e[i]]:void 0;if(void 0===t)return;r=t}return r}}(e,t))(n)}(this.dateFormat)),this.textMaskOptions={mask:$j,pipe:(u=this,e=>({value:Jj(e,u)})),guide:!1}}get nativeFocusableElement(){return this.textfield?this.textfield.nativeFocusableElement:null}get focused(){return!!this.textfield&&this.textfield.focused}get computedMobile(){return this.isMobile&&!!this.mobileCalendar}get calendarIcon(){return vs(this.textfieldSize.size)?"tuiIconCalendarLarge":"tuiIconCalendar"}get canOpen(){return!this.computedDisabled&&!this.readOnly&&!this.computedMobile}get computedExampleText(){return this.items.length?this.textfieldExampleText.exampleText:""}get computedMask(){return this.activePeriod?zj:this.textMaskOptions}get activePeriod(){return this.items.find(e=>qr(this.value,e.range,(e,t)=>e.from.daySame(t.from.dayLimit(this.min,this.max))&&e.to.daySame(t.to.dayLimit(this.min,this.max))))||null}get computedValue(){const{value:e,nativeValue:t,activePeriod:n}=this;return n?String(n):e?e.formattedDayRange:t}get innerPseudoFocused(){return!1!==this.pseudoFocused&&(!(!this.open&&!this.computedFocused)||null)}get nativeValue(){return this.nativeFocusableElement?this.nativeFocusableElement.value:""}set nativeValue(e){this.nativeFocusableElement&&(this.nativeFocusableElement.value=e)}getComputedRangeFiller(e){return this.activePeriod?"":this.getDateRangeFiller(e)}onMobileClick(){this.mobileCalendar?this.dialogService.open(new ca(this.mobileCalendar,this.injector),{size:"fullscreen",closeable:!1,data:{single:!1,min:this.maxLengthMapper(this.min,this.value,this.maxLength,!0),max:this.maxLengthMapper(this.max,this.value,this.maxLength,!1),disabledItemHandler:this.disabledItemHandler}}).pipe(bo(this.destroy$)).subscribe(e=>
1{this.updateValue(e)}):this.toggle()}onClick(){this.isMobile||this.toggle()}onOpenChange(e){this.open=e}onValueChange(e){if(this.control&&this.control.updateValueAndValidity({emitEvent:!1}),e.length!==Vj)return void this.updateValue(null);const t=Kj.normalizeParse(e);this.updateValue(this.minLength||this.maxLength?this.clampValue(t):t)}onRangeChange(e){this.toggle(),this.focusInput(),qr(this.value,e,(e,t)=>e.daySame(t))||this.updateValue(e)}onItemSelect(e){this.toggle(),this.focusInput(),"string"==typeof e?null!==this.activePeriod&&(this.updateValue(null),this.nativeValue=""):this.updateValue(e.range.dayLimit(this.min,this.max))}onHovered(e){this.updateHovered(e)}onPressed(e){this.updatePressed(e)}onActiveZone(e){this.updateFocused(e),e||this.itemSelected||this.nativeValue.length!==Hj&&this.nativeValue.length!==Hj+Mj.length||this.updateValue(Kj.normalizeParse(this.nativeValue))}writeValue(e){super.writeValue(e),this.nativeValue=e?this.computedValue:""}get itemSelected(){return-1!==this.items.findIndex(e=>String(e)===this.nativeValue)}toggle(){this.open=!this.open}focusInput(e=!1){this.nativeFocusableElement&&Hi(this.nativeFocusableElement,!0,e)}clampValue(e){const t=this.minLength&&e.from.append(this.minLength).dayAfter(e.to)?new Kj(e.from,e.from.append(this.minLength).append({day:-1})):e,n=this.maxLength?t.from.append(this.maxLength).append({day:-1}):this.max;return t.to.dayAfter(n)?new Kj(t.from,n):t}getDateRangeFiller(e){return`${e}\xa0\u2013\xa0${e}`}};return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"]($t.NgControl,10),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](i.Injector),i["\u0275\u0275directiveInject"](Mo),i["\u0275\u0275directiveInject"](Ku),i["\u0275\u0275directiveInject"](JA,8),i["\u0275\u0275directiveInject"](vh),i["\u0275\u0275directiveInject"](sh),i["\u0275\u0275directiveInject"](Gj),i["\u0275\u0275directiveInject"](ep))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["tui-input-date-range"]],viewQuery:function(e,t){if(1&e&&i["\u0275\u0275viewQuery"](xd,5),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.textfield=e.first)}},hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("click",function(){return t.onClick()})},inputs:{disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",defaultViewedMonth:"defaultViewedMonth",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:ko,useExisting:(0,i.forwardRef)(()=>JQ)},{provide:XA,deps:[[new i.Optional,new i.Self,$t.NgControl]],useFactory:ZQ},kd]),i["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:XQ,decls:7,vars:6,consts:[[1,"hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["automation-id","tui-input-date-range__textfield","class","textfield","tuiValueAccessor","",3,"pseudoFocused","pseudoHovered","pseudoPressed","invalid","tuiTextfieldExampleText","nativeId","filler","readOnly","iconContent","disabled","textMask","value","valueChange","hoveredChange","pressedChange",4,"tuiLet"],["iconContent",""],["dropdown",""],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"textfield",3,"pseudoFocused","pseudoHovered","pseudoPressed","invalid","tuiTextfieldExampleText","nativeId","filler","readOnly","iconContent","disabled","textMask","value","valueChange","hoveredChange","pressedChange"],["automation-id","tui-input-date-range__icon",3,"src","click"],[3,"defaultViewedMonth","disabledItemHandler","items","min","max","markerHandler","minLength","maxLength","value","valueChange"]],template:function(e,t){if(1&e&&(i["\u0275\u0275projectionDef"](),i["\u0275\u0275elementStart"](0,"tui-hosted-dropdown",0),i["\u0275\u0275listener"]("openChange",function(e){return t.onOpenChange(e)})("tuiActiveZoneChange",function(e){return t.onActiveZone(e)}),i["\u0275\u0275template"](1,WQ,2,12,"tui-primitive-textfield",1),i["\u0275\u0275pipe"](2,"async"),i["\u0275\u0275template"](3,$Q,1,3,"ng-template",null,2,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275template"](5,YQ,1,9,"ng-template",null,3,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](6);i["\u0275\u0275property"]("canOpen",t.canOpen)("content",e)("open",t.open&&t.canOpen),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("tuiLet",i["\u0275\u0275pipeBind1"](2,4,t.dateFiller$))}},directives:[Vh,lc,ss,xd,sA,ah,lA.hd,Fa,GQ],pipes:[Ft.Ov],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m)}._disabled[_nghost-%COMP%]{pointer-events:none}.hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.textfield[_ngcontent-%COMP%]{border-radius:inherit}.icon[_ngcontent-%COMP%]{pointer-events:auto}"]}),Bh([ns()],e.prototype,"disabledItemHandler",void 0),Bh([ns()],e.prototype,"markerHandler",void 0),Bh([ns()],e.prototype,"defaultViewedMonth",void 0),Bh([ns()],e.prototype,"items",void 0),Bh([ns()],e.prototype,"min",void 0),Bh([ns()],e.prototype,"max",void 0),Bh([ns()],e.prototype,"minLength",void 0),Bh([ns()],e.prototype,"maxLength",void 0),e=JQ=Bh([kh(0,(0,i.Optional)()),kh(0,(0,i.Self)()),kh(0,(0,i.Inject)($t.NgControl)),kh(1,(0,i.Inject)(i.ChangeDetectorRef)),kh(2,(0,i.Inject)(i.Injector)),kh(3,(0,i.Inject)(Mo
1)),kh(4,(0,i.Inject)(Ku)),kh(5,(0,i.Optional)()),kh(5,(0,i.Inject)(JA)),kh(6,(0,i.Inject)(vh)),kh(7,(0,i.Inject)(sh)),kh(8,(0,i.Inject)(Gj)),kh(9,(0,i.Inject)(ep))],e),e})(),tH=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,lA.QA,cc,as,ga,Td,Ch,qh,La,zQ,aA]]}),e})();function nH(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"form",11),i["\u0275\u0275elementStart"](1,"tui-input-date-range",12),i["\u0275\u0275listener"]("focusedChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onFocusedChange(t)}),i["\u0275\u0275text"](2," Choose dates "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("formGroup",e.dateForm),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("min",e.min)("max",e.max)}}let rH=(()=>{class e{constructor(e){this._statisticsService=e,this.allTime=!1,this.dateForm=new $t.FormGroup({dateValue:new $t.FormControl(new Kj(new Rj(2021,1,1),new Rj((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())))}),this.min=new Rj(2e3,2,20),this.max=new Rj(2040,2,20)}ngOnInit(){}onChange(e){this.allTime=e,e&&(this.InfoListened=this._statisticsService.calculateStatistic(this.listenInfo))}onFocusedChange(e){e||(this.InfoListened=this._statisticsService.getCustomListened(this.dateForm.value.dateValue.from,this.dateForm.value.dateValue.to,this.listenInfo))}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](kM))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-custom-statistics-period"]],inputs:{InfoListened:"InfoListened",listenInfo:"listenInfo"},decls:71,vars:30,consts:[[1,"statistics-period","custom"],[1,"statistcs-period__title","customTitle"],["size","l","checked","allTime",1,"tui-space_bottom-3",3,"ngModel","ngModelChange"],["inputEl",""],[1,"statistics-period__content"],["class","b-form",3,"formGroup",4,"ngIf"],[1,"statistics-period__content-head"],[1,"statistics-item"],[1,"statistics-item__audio"],["src","../../../assets/icons/IconAudio.svg","alt",""],[1,"statistics-period__content-body"],[1,"b-form",3,"formGroup"],["tuiUnfinishedValidator","Finish filling the field","formControlName","dateValue",3,"min","max","focusedChange"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275elementStart"](2,"h3"),i["\u0275\u0275text"](3,"Custom"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"label"),i["\u0275\u0275elementStart"](5,"tui-checkbox",2,3),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.allTime=e})("ngModelChange",function(e){return t.onChange(e)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"span"),i["\u0275\u0275text"](8," All time "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"div",4),i["\u0275\u0275template"](10,nH,3,3,"form",5),i["\u0275\u0275elementStart"](11,"div",6),i["\u0275\u0275elementStart"](12,"div",7),i["\u0275\u0275elementStart"](13,"span",8),i["\u0275\u0275element"](14,"img",9),i["\u0275\u0275elementStart"](15,"span"),i["\u0275\u0275text"](16,"Audio"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](17,"span"),i["\u0275\u0275elementStart"](18,"b"),i["\u0275\u0275text"](19),i["\u0275\u0275pipe"](20,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](21," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](22,"div",10),i["\u0275\u0275elementStart"](23,"div",7),i["\u0275\u0275elementStart"](24,"span"),i["\u0275\u0275text"](25,"Srimad Bhagavatam"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](26,"span"),i["\u0275\u0275elementStart"](27,"b"),i["\u0275\u0275text"](28),i["\u0275\u0275pipe"](29,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](30," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](31,"div",7),i["\u0275\u0275elementStart"](32,"span"),i["\u0275\u0275text"](33,"Bhagavad-gita"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](34,"span"),i["\u0275\u0275elementStart"](35,"b"),i["\u0275\u0275text"](36),i["\u0275\u0275pipe"](37,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](38," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](39,"div",7),i["\u0275\u0275elementStart"](40,"span"),i["\u0275\u0275text"](41,"Caitanya-caritamrta"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](42,"span"),i["\u0275\u0275elementStart"](43,"b"),i["\u0275\u0275text"](44),i["\u0275\u0275pipe"](45,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](4
16," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](47,"div",7),i["\u0275\u0275elementStart"](48,"span"),i["\u0275\u0275text"](49,"Visnu-sahasranama"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](50,"span"),i["\u0275\u0275elementStart"](51,"b"),i["\u0275\u0275text"](52),i["\u0275\u0275pipe"](53,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](54," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](55,"div",7),i["\u0275\u0275elementStart"](56,"span"),i["\u0275\u0275text"](57,"Seminars"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](58,"span"),i["\u0275\u0275elementStart"](59,"b"),i["\u0275\u0275text"](60),i["\u0275\u0275pipe"](61,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](62," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](63,"div",7),i["\u0275\u0275elementStart"](64,"span"),i["\u0275\u0275text"](65,"Bhajans"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](66,"span"),i["\u0275\u0275elementStart"](67,"b"),i["\u0275\u0275text"](68),i["\u0275\u0275pipe"](69,"time"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](70," h "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](5),i["\u0275\u0275property"]("ngModel",t.allTime),i["\u0275\u0275advance"](5),i["\u0275\u0275property"]("ngIf",!t.allTime),i["\u0275\u0275advance"](9),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](20,9,null==t.InfoListened?null:t.InfoListened.audio,!0)),i["\u0275\u0275advance"](9),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](29,12,null==t.InfoListened?null:t.InfoListened.SB,!0)),i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](37,15,null==t.InfoListened?null:t.InfoListened.BG,!0)),i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](45,18,null==t.InfoListened?null:t.InfoListened.CC,!0)),i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](53,21,null==t.InfoListened?null:t.InfoListened.VSN,!0)),i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](61,24,null==t.InfoListened?null:t.InfoListened.Seminars,!0)),i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind2"](69,27,null==t.InfoListened?null:t.InfoListened.others,!0)))},directives:[NA,$t.NgControlStatus,$t.NgModel,Ft.O5,$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,eH,$t.FormControlName],pipes:[HF],styles:[".statistics-period[_ngcontent-%COMP%]{width:100%;max-width:198px;min-height:334px;margin-right:24px}.statistics-period__title[_ngcontent-%COMP%] > h3[_ngcontent-%COMP%]{color:#000;font-weight:600;font-size:15px;text-align:left}.statistics-period__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:18px 17px 9px 20px;background:#f8f9fa;border-radius:4px}.statistics-period__content-head[_ngcontent-%COMP%]{margin-bottom:15px;border-bottom:1px solid #919191}.statistics-period__content[_ngcontent-%COMP%] > form[_ngcontent-%COMP%]{width:220px;margin-bottom:16px}.statistics-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:165px;margin-right:8px}.statistics-item__audio[_ngcontent-%COMP%], .statistics-item__video[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:16px}.statistics-item__audio[_ngcontent-%COMP%] > img[_ngcontent-%COMP%], .statistics-item__video[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:5px}.statistics-item__audio[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .statistics-item__video[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:var(--gray-dark);font-weight:400;font-size:11px;letter-spacing:.4px}.statistics-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{color:#000;font-weight:400;font-size:11px}.statistics-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-of-type{color:#909090}.statistics-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-of-type > b[_ngcontent-%COMP%]{color:#000;font-size:11px}.custom[_ngcontent-%COMP%]{max-width:234px}.customTitle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.customTitle[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:flex;font-weight:500;font-size:13px}.customTitle[_ngcontent-%COMP%] > label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-left:12px}.placeholder[_ngcontent-%COMP%]{margin-bottom:15px}.custom[_ngcontent-%COMP%]  .content .wrapper label{margin-bottom:15px}"]}),e})();function iH(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",5),i["\u0275\u0275elementStart"](1,"div",6),i["\u0275\u0275elementStart"](2,"div",7),i["\u0275\u0275elementStart"](3,"span"),i["\u0275\u0275text"](4,"Total audio files"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"span"),i["\u0275\u0275text"](6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"div",7),i["\u0275\u0275elementStart"](8,"span"),i["\u0275\u0275text"](9,"Total listened"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"span"),i["\u0275\u0275text"](11),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"div",8),i["\u0275\u0275element"](13,"a
1pp-statistics-period",9),i["\u0275\u0275element"](14,"app-statistics-period",10),i["\u0275\u0275element"](15,"app-statistics-period",11),i["\u0275\u0275element"](16,"app-custom-statistics-period",12),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](6),i["\u0275\u0275textInterpolate"](e.totalAudio),i["\u0275\u0275advance"](5),i["\u0275\u0275textInterpolate"](e.totalListened),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("InfoListened",e.thisWeek),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("InfoListened",e.lastWeek),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("InfoListened",e.lastWeek),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("InfoListened",e.allTime)("listenInfo",e.listenInfo)}}function oH(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-loader",13),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("showLoader",e.contentLoader)("overlay",!0)("inheritColor",!0)}}let sH=(()=>{class e{constructor(e,t,n){this._lecturesService=e,this._globalState=t,this._statisticsService=n,this.isLecturesInfoLoaded=!1,this._globalState.onLecturesLoaded.subscribe(()=>{this.initStats()})}ngOnInit(){this.initStats()}initStats(){return(0,Er.mG)(this,void 0,void 0,function*(){this.totalAudio=this._lecturesService.getTotalAudios(),this.totalListened=yield this._statisticsService.requestTotalListened(),this.listenInfo=yield this._statisticsService.getListenInfo(),console.log("listenInfo",this.listenInfo),this.thisWeek=this._statisticsService.getThisWeekListened(this.listenInfo),this.lastMonth=this._statisticsService.getLastMonthListened(this.listenInfo),this.lastWeek=this._statisticsService.getLastWeekListened(this.listenInfo),this.allTime=this._statisticsService.getAllTimeListened(this.listenInfo),this.isLecturesInfoLoaded=!0})}shareResults(){const e=document.getElementById("stats");this.generatePDF(e)}generatePDF(e){Oj()(e).then(e=>{let t=350*e.height/e.width;const n=e.toDataURL("image/png");let r=new WR("l","mm","a4");r.addImage(n,"PNG",0,20,350,t),r.save("Statistics.pdf")})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](sF),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](kM))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-statistics"]],decls:8,vars:1,consts:[[1,"dashboard-head"],[1,"dashboard-head__title","tui-text_h4"],["tuiButton","","appearance","outline","type","button","size","s",3,"click"],["class","dashboard__wrapper statistics","id","stats",4,"ngIfLoader","ngIf"],["loader",""],["id","stats",1,"dashboard__wrapper","statistics"],[1,"statistics-total"],[1,"statistics-total__item"],[1,"statistics-periods"],["title","This week",3,"InfoListened"],["title","Last week",3,"InfoListened"],["title","Last month",3,"InfoListened"],[3,"InfoListened","listenInfo"],["size","xxl",1,"content-loader",3,"showLoader","overlay","inheritColor"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"h2",1),i["\u0275\u0275text"](2,"Statistics"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"button",2),i["\u0275\u0275listener"]("click",function(){return t.shareResults()}),i["\u0275\u0275text"](4," Share results "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](5,iH,17,7,"div",3),i["\u0275\u0275template"](6,oH,1,3,"ng-template",null,4,i["\u0275\u0275templateRefExtractor"])),2&e&&(i["\u0275\u0275advance"](5),i["\u0275\u0275property"]("ngIf",t.isLecturesInfoLoaded))},directives:[Ya,Ft.O5,Fj,rH,ba],styles:[".statistics-total[_ngcontent-%COMP%]{display:flex;flex-direction:column}.statistics-total__item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;max-width:150px}.statistics-total__item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{margin-right:25px;color:var(--gray-dark);font-size:11px}.statistics-total__item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{color:#000;font-weight:500;font-size:13px}.statistics-periods[_ngcontent-%COMP%]{display:flex;margin-top:31px}"]}),e})(),aH=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-bhakti"]],decls:24,vars:0,consts:[["routerLink","../leaders",1,"about__link","tui-text_h6"],["src","tuiIconArrowLeft",1,"about__arrow-icon"],[1,"about__text-group","about__text-group--reverse"],["src","../../../../assets/img/bhakti1.jpg","alt","About: Bhakti Vik\u0101sa Swam\u012b",1,"about__photo"],[1,"text-wrapper"],[1,"text-wrapper__sub-title","tui-text_h6"],[1,"text-wrapper__title","tui-text_h2"],[1,"text-wrapper__text","tui-text_body-m"],[1,"about__text-group"],[1,"about-photos"],["src","../../../../../assets/img/bhakti-min-1.jpg","alt","Srila Prabhup\u0101da",1,"about-photos__photo"],["src","../../../../../assets/img/bhakti-min-2.jpg","alt","Srila Prabhup\u0101da",1,"about-photos__photo"],["src","../../../../../assets/img/bhakti-min-3.jpg","alt","Srila Prabhup\u0101da",1,"about-photos__photo"],["src","../../../../../assets/img/bhakti-min-4.jpg","alt","Srila Prabhup\u0101da",1,"about-photos__photo"],["src","../../../../../assets/img/bhakti-min-5.jpg","alt","Srila Prabhup\u0101da",1,"about-photos__photo"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"a",0),i["\u0275\u0275element"](1,"tui-svg",1),i["\u0275\u0275text"](2," Go back"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"div",2),i["\u0275\u0275element"](4,"img",3),i["\u0275\u0275elementStart"](5,"div",4),i["\u0275\u0275elementStart"](6,"strong",5),i["\u0275\u0275text"](7,"A DISCIPLE OF HIS DIVINE GRACE A.C. BHAKTIVEDANTA SWAMI PRABHUP\u0100DA"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](8,"h2",6),i["\u0275\u0275text"](9,"Bhakti Vik\u0101sa Swami"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"p",7),i["\u0275\u0275text"](11," His Holiness Bhakti Vik\u0101sa Swami appeared in this world in 1957 in 
1England. He joined the International Society for Krishna Consciousness (ISKCON) in London in 1975 and was initiated in that year with the name Il\u0101pati d\u0101sa by ISKCON\u2019s founder-\u0101c\u0101rya, His Divine Grace A.C. Bhaktived\u0101nta Swami Prabhup\u0101da.From 1977 to 1979 His Holiness was based in India, mostly traveling in West Bengal preaching K\u1e5b\u1e63\u1e47a consciousness and distributing \u015ar\u012bla Prabhup\u0101da\u2019s books. He then spent the following ten years helping to pioneer ISKCON\u2019s preaching in Bangladesh, Burma, Thailand, and Malaysia. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"p",7),i["\u0275\u0275text"](13," In 1989 he was granted the order of sanny\u0101sa, receiving the name Bhakti Vik\u0101sa Swami, and again made his base in India.He has since travelled widely throughout the subcontinent, lecturing in English, Hindi, and Bengali. His Holiness also travels to and preaches K\u1e5b\u1e63\u1e47a consciousness in other parts of the world. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](14,"div",8),i["\u0275\u0275elementStart"](15,"div",4),i["\u0275\u0275elementStart"](16,"p",7),i["\u0275\u0275text"](17," He continues to write books and magazine articles. His books have been translated into more than fifteen languages. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](18,"div",9),i["\u0275\u0275element"](19,"img",10),i["\u0275\u0275element"](20,"img",11),i["\u0275\u0275element"](21,"img",12),i["\u0275\u0275element"](22,"img",13),i["\u0275\u0275element"](23,"img",14),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]())},directives:[SO,Fa],styles:[".about-photos__photo[_ngcontent-%COMP%]{width:calc(100% / 5 - 20px)}.about__text-group[_ngcontent-%COMP%]:first-of-type{margin-top:40px}"]}),e})(),lH=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-srila"]],decls:58,vars:0,consts:[["routerLink","../leaders",1,"about__link","tui-text_h6"],["src","tuiIconArrowLeft",1,"about__arrow-icon"],[1,"about__text-group","about__text-group--reverse"],["src","../../../../assets/img/srila2.png","alt","About: Srila Prabhup\u0101da",1,"about__photo"],[1,"text-wrapper"],[1,"text-wrapper__sub-title","tui-text_h6"],[1,"text-wrapper__title","tui-text_h2"],[1,"text-wrapper__text","tui-text_body-m"],[1,"about__text-group"],["src","../../../../assets/img/srila3.png","alt","About: Srila Prabhup\u0101da",1,"about__photo"],[1,"about-photos"],["src","../../../../../assets/img/srila-min-1.jpg","alt","Srila Prabhup\u0101da",1,"about-photos__photo"],["src","../../../../../assets/img/srila-min-2.jpg","alt","Srila Prabhup\u0101da",1,"about-photos__photo"],["src","../../../../../assets/img/srila-min-3.jpg","alt","Srila Prabhup\u0101da",1,"about-photos__photo"],["src","../../../../../assets/img/srila-min-4.jpg","alt","Srila Prabhup\u0101da",1,"about-photos__photo"],["src","../../../../../assets/img/srila-min-5.jpg","alt","Srila Prabhup\u0101da",1,"about-photos__photo"],["src","../../../../../assets/img/srila-min-6.jpg","alt","Srila Prabhup\u0101da",1,"about-photos__photo"],[1,"text-wrapper__text","text-wrapper__text--bold","tui-text_body-m"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"a",0),i["\u0275\u0275element"](1,"tui-svg",1),i["\u0275\u0275text"](2," Go back"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"div",2),i["\u0275\u0275element"](4,"img",3),i["\u0275\u0275elementStart"](5,"div",4),i["\u0275\u0275elementStart"](6,"strong",5),i["\u0275\u0275text"](7,"FOUNDER-\u0100C\u0100RYA OF INTERNATIONAL SOCIETY FOR KRISHNA CONSCIOUSNESS"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](8,"h2",6),i["\u0275\u0275text"](9,"\u015ar\u012bla Prabhup\u0101da"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"p",7),i["\u0275\u0275text"](11," The honorific title Prabhup\u0101da is properly used for designating those very great spiritual masters who have made an outstanding contribution of literature or preaching to the world. Examples are \u015ar\u012bla R\u016bpa Gosv\u0101m\u012b Prabhup\u0101da, \u015ar\u012bla J\u012bva Gosv\u0101m\u012b Prabhup\u0101da, and \u015ar\u012bla Bhaktisiddh\u0101nta Sarasvati Gosv\u0101m\u012b Prabhup\u0101da. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"p",7),i["\u0275\u0275text"](13," When members of ISKCON speak of \u201c\u015ar\u012bla Prabhup\u0101da,\u201d they refer to His Divine Grace A.C. Bhaktived\u0101nta Sw\u0101m\u012b Prabhup\u0101da. A.C. Bhaktivedanta Swami is correctly addressed as \u015ar\u012bla Prabhup\u0101da because he occupies a unique position in the religious history of the world. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](14,"p",7),i["\u0275\u0275text"](15," In \u015ar\u012bmad-Bh\u0101gavatam (1.5.11), Vy\u0101sadeva states that the Bh\u0101gavatam \u201cis meant to bring about a revolution in the impious life of a misdirected civilization.\u201d This statement clearly refers to the preaching mission heralded by \u015
1ar\u012bla A.C. Bhaktivedanta Swami Prabhup\u0101da, whose purports on \u015ar\u012bmad-Bh\u0101gavatam, composed five thousand years after \u015ar\u012bla Vy\u0101sadeva\u2019s compilation of the Bh\u0101gavatam, have become the most important contribution for the revolutionary respiritualization of the entire human society, which was lost in the darkness of materialism. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](16,"p",7),i["\u0275\u0275text"](17," Lord Caitanya Mah\u0101prabhu also predicted that His holy name would be broadcast in every town and village of the world. \u0100c\u0101ryas of His samprad\u0101ya predicted that the spread of K\u1e5b\u1e63\u1e47a consciousness would usher in a ten-thousand year Golden Age within the dark age of Kali. And in Caitanya Mangala, Locana d\u0101sa \u1e6ch\u0101kura foretold that a great senapati (military general) would appear to widely and powerfully preach Lord Caitanya\u2019s message. That confidential task of spreading K\u1e5b\u1e63\u1e47a consciousness all over the world was entrusted to His Divine Grace A.C. Bhaktivedanta Swami Prabhup\u0101da. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](18,"p",7),i["\u0275\u0275text"](19," \u015ar\u012b Caitanya-carit\u0101m\u1e5bta confirms that unless one is specifically empowered by K\u1e5b\u1e63\u1e47a, he cannot infuse K\u1e5b\u1e63\u1e47a consciousness into the hearts of the masses. Bhaktivinoda \u1e6ch\u0101kura, a great Vai\u1e63\u1e47ava \u0101c\u0101rya who appeared in the nineteenth century, predicted that very soon a great personality would appear and spread K\u1e5b\u1e63\u1e47a consciousness all over the world. That person is clearly His Divine Grace A.C. Bhaktivedanta Swami Prabhup\u0101da. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](20,"div",8),i["\u0275\u0275elementStart"](21,"div",4),i["\u0275\u0275elementStart"](22,"p",7),i["\u0275\u0275text"](23," Bhaktivinoda \u1e6ch\u0101kura also said that the greatness of a Vai\u1e63\u1e47ava can be understood by seeing how many nondevotees he converts to Vai\u1e63\u1e47avism. To bring even a highly qualified person to K\u1e5b\u1e63\u1e47a consciousness is difficult, but \u015ar\u012bla Prabhup\u0101da was so empowered by K\u1e5b\u1e63\u1e47a that he went amongst the most unlikely candidates \u2014 the hedonistic youth of the Western countries \u2014 and made devotees by the thousands. No one can fully understand the extraordinary task \u015ar\u012bla Prabhup\u0101da performed. He went alone amongst persons with no standard of Vedic culture, persons brought up in a society which vigorously promotes meat-eating, illicit sex, gambling, and intoxication. They had no idea how to receive a s\u0101dhu and were almost completely disqualified as candidates for spiritual life. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](24,"p",7),i["\u0275\u0275text"](25," \u015ar\u012bla Prabhup\u0101da not only entered amongst such people, but gradually managed to train many of them to the extent that now they are accepted everywhere as first-class Vai\u1e63\u1e47avas and preachers, qualified to impart K\u1e5b\u1e63\u1e47a consciousness to others. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](26,"p",7),i["\u0275\u0275text"](27," In India\u2019s recent history, there were certainly many Vai\u1e63\u1e47avas who were devoted, learned, and renounced. However, the fact remains that only \u015ar\u012bla Prabhup\u0101da was sufficiently qualified to spread K\u1e5b\u1e63\u1e47a consciousness all over the world. Only he had sufficient faith in the instructions of Lord Caitanya, the order of his spiritual master, and the holy name of K\u1e5b\u1e63\u1e47a to seriously attempt spreading K\u1e5b\u1e63\u1e47a consciousness outside of India. Only he had enough compassion and vision to preach the message of Lord Caitanya to those who most needed it. Only one of the topmost confidential devotees of K\u1e5b\u1e63\u1e47a could perform such an extraordinary task. By his unparalleled achievements, it is clear that \u015ar\u012bla Prabhup\u0101da occupies a unique position in the history of Vai\u1e63\u1e47avism. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275element"](28,"img",9),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](29,"div",8),i["\u0275\u0275elementStart"](30,"div",4),i["\u0275\u0275elementStart"](31,"p",7),i["\u0275\u0275text"](32," \u
1015ar\u012bla Prabhup\u0101da was empowered to spread K\u1e5b\u1e63\u1e47a consciousness in a practical and straightforward way, just suitable for the modern world. Without changing or compromising the teachings of K\u1e5b\u1e63\u1e47a consciousness even slightly, he presented its esoteric truths in a clear and intelligible manner, suitable for both the layman and the scholar. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](33,"p",7),i["\u0275\u0275text"](34," \u015ar\u012bla Prabhup\u0101da personally oversaw the expansion and development of ISKCON. He personally set up the programs which were to form the basis of ISKCON\u2019s continued expansion: production and distribution of transcendental books, harin\u0101ma-sankirtana parties, temples, \u0101\u015brams, pras\u0101da distribution, transcendental farm communities, gurukulas, preaching to scientists and scholars, and so on. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](35,"p",7),i["\u0275\u0275text"](36," \u015ar\u012bla Prabhup\u0101da personally gave detailed directions about every aspect of K\u1e5b\u1e63\u1e47a consciousness: how to worship Deities, how to conduct s\u0101dhana, how to preach, how to wear a dhoti, how to cook for K\u1e5b\u1e63\u1e47a, how to chant mantras, and so forth. \u015ar\u012bla Prabhup\u0101da is thus the founder-\u0101c\u0101rya of ISKCON. Whatever standards and instructions comprise ISKCON have come from him. Therefore \u015ar\u012bla Prabhup\u0101da will always remain the preeminent \u015bik\u1e63\u0101-guru and \u0101c\u0101rya of ISKCON. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](37,"p",7),i["\u0275\u0275text"](38," Both scripture and tradition offer various approaches to K\u1e5b\u1e63\u1e47a consciousness, but followers of \u015ar\u012bla Prabhup\u0101da execute K\u1e5b\u1e63\u1e47a consciousness as he showed them, knowing that \u015ar\u012bla Prabhup\u0101da, as a faithful follower of his guru and the previous \u0101c\u0101ryas, presented K\u1e5b\u1e63\u1e47a consciousness in the best way for the modern age. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](39,"p",7),i["\u0275\u0275text"](40," Both scripture and tradition offer various approaches to K\u1e5b\u1e63\u1e47a consciousness, but followers of \u015ar\u012bla Prabhup\u0101da execute K\u1e5b\u1e63\u1e47a consciousness as he showed them, knowing that \u015ar\u012bla Prabhup\u0101da, as a faithful follower of his guru and the previous \u0101c\u0101ryas, presented K\u1e5b\u1e63\u1e47a consciousness in the best way for the modern age. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](41,"p",7),i["\u0275\u0275text"](42," \u015ar\u012bla Prabhup\u0101da\u2019s success is itself proof that his endeavors are approved, ordained, and blessed by the Supreme Lord K\u1e5b\u1e63\u1e47a Himself. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](43,"div",10),i["\u0275\u0275element"](44,"img",11),i["\u0275\u0275element"](45,"img",12),i["\u0275\u0275element"](46,"img",13),i["\u0275\u0275element"](47,"img",14),i["\u0275\u0275element"](48,"img",15),i["\u0275\u0275element"](49,"img",16),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](50,"p",7),i["\u0275\u0275text"](51," \u015ar\u012bla Prabhup\u0101da gave many instructions, but certain ones are absolutely necessary for initiated disciples to follow if they claim to be genuine and serious followers of Prabhup\u0101da. For instance, \u015ar\u012bla Prabhup\u0101da demanded that initiated devotees rise by 4.00 a.m., attend mangala-\u0101rat\u012b, chant at least sixteen rounds of the mah\u0101-mantra every day, and undeviatingly follow the four regulative principles. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](52,"p",7),i["\u0275\u0275text"](53," All such standards that \u015ar\u012bla Prabhup\u0101da clearly defined are the standards to be followed in ISKCON. A rightly situated, successful follower of \u015ar\u012bla Prabhup\u0101da is simply a faithful standard-bearer. He does not try to change or interpret the standards and programs given by Prabhup\u0101da, for he knows that whatever \u015ar\u012bla Prabhup\u0101da has given us is perfect and complete for the respiritualization of the entire human society \u2014 not only for the present, but for the next ten thousand years. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](54,"p",17),i["\u0275\u0275text"](55," -From Beginner\u2019s Guide to Krsna Consciousness "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](56,"p",7),i["\u0275\u0275text"](57," How can \u201cThe Significance of \u015ar\u012bla Prabhup\u0101da\u201d be rendered in three pages? Even if we could write millions of books, we could hardly begin to expound his glories. If we were to take the entire universe \u2014 with its planets, outer space, continents, oceans, mountains, men, demigods, and demons on one side \u2014 and one drop of dust from \u015ar\u012bla Prabhup\u0101da\u2019s lotus feet on the other, there would be no comparison. One drop of dust from \u015ar\u012bla Prabhup\u0101da\u2019s lotus feet is millions of times more valuable than anything the material world has to offer. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]())},directives:[SO,Fa],styles:[".about__text-group[_ngcontent-%COMP%]{margin-bottom:30px}.about__text-group[_ngcontent-%COMP%]:first-of-type{margin-top:40px}.about__text-group[_ngcontent-%COMP%]   .about__photo[_ngcontent-%COMP%]{object-fit:contain}"]}),e})(),cH=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-about"]],decls:2,vars:0,consts:[[1,"about","dashboard__wrapper"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"tui-scrollbar",0),i["\u0275\u0275element"](1,"router-outlet"),i["\u0275\u0275elementEnd"]())}
1,directives:[wc,xO],styles:[".about__text-group{display:flex;width:inherit;padding-right:32px}  .about__text-group:not(:last-child){margin-bottom:50px}  .about__text-group .about__photo{max-height:500px;margin-left:auto;object-fit:cover}  .about .about__text-group--reverse .about__photo{padding-right:100px;padding-left:0}  .about .about__photo{padding-left:100px}  .about__link{margin-bottom:40px;color:var(--tui-support-08);text-decoration:none;cursor:pointer;transition:.4s}  .about__link:hover{opacity:.5}  .text-wrapper__text:not(:last-child){padding-bottom:30px}  .text-wrapper__text--bold{font-weight:700}  .text-wrapper__title{padding:10px 0 20px}  .text-wrapper__sub-title{opacity:.5}  .about-photos{display:flex;justify-content:space-between;width:100%;max-width:100%;padding-bottom:30px;overflow:hidden}  .about-photos__photo{width:calc(100% / 6 - 20px)}"]}),e})(),uH=(()=>{class e{constructor(e,t,n){this._firestore=e,this._authorizationService=t,this._lecturesService=n,this.lectures=[],this.lecturesByWeek=[],this.lecturesByMonth=[],this.WEEK_IN_MS=6048e5,this.MONTH_IN_MS=2592e6}get allLectures(){return this.lectures}get allLecturesByWeek(){return this.lecturesByWeek}get allLecturesByMonth(){return this.lecturesByMonth}initUserHistory(){var e;return(0,Er.mG)(this,void 0,void 0,function*(){const t=(new Date).getTime()-this.WEEK_IN_MS,n=(new Date).getTime()-this.MONTH_IN_MS;this.historyLecturesIsReady=!1,this.userId=null===(e=this._authorizationService.user)||void 0===e?void 0:e.uid,this.lectures=(yield this.getLecturesInHistory(yield this.getLecturesId())).slice(0,100),this.lecturesByWeek=yield this.getLecturesInHistory(yield this.getLecturesIdByPeriod(t)),this.lecturesByMonth=yield this.getLecturesInHistory(yield this.getLecturesIdByPeriod(n)),this.historyLecturesIsReady=!0})}clearHistory(){return(0,Er.mG)(this,void 0,void 0,function*(){(yield this._firestore.collection("users",e=>e.where("lastPlayedPoint",">",0)).doc(this.userId).collection("lectureInfo").valueChanges().pipe(nr(1)).toPromise()).forEach(e=>{e.lastPlayedPoint=0,this._firestore.collection("users").doc(this.userId).collection("lectureInfo").doc(e.documentId).set(e)}),this.lectures.length=0,this.lecturesByWeek.length=0,this.lecturesByMonth.length=0})}getLecturesInHistory(e){return(0,Er.mG)(this,void 0,void 0,function*(){const t=yield e,n=[];for(let e=0;e<t.length;e++){const r=this._lecturesService.allLectures.find(n=>n.id===t[e]);r&&n.push(r)}return n})}getLecturesId(){return(0,Er.mG)(this,void 0,void 0,function*(){const e=new Set;let t=yield this._firestore.collection("users").doc(this.userId).collection("lectureInfo",e=>e.orderBy("lastModifiedTimestamp","desc")).valueChanges().pipe(nr(1)).toPromise();return t=t.filter(e=>e.lastPlayedPoint>0),t.forEach(t=>{t.id&&e.add(t.id)}),[...e]})}getLecturesIdByPeriod(e){return(0,Er.mG)(this,void 0,void 0,function*(){const t=new Set;let n=yield this._firestore.collection("users").doc(this.userId).collection("lectureInfo",t=>t.where("lastModifiedTimestamp",">",e)).valueChanges().pipe(nr(1)).toPromise();return n=n.filter(e=>e.lastPlayedPoint>0),n=null==n?void 0:n.sort((e,t)=>+(null==t?void 0:t.lastModifiedTimestamp)-+(null==e?void 0:e.lastModifiedTimestamp)),n.forEach(e=>{e.id&&t.add(e.id)}),[...t]})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275inject"](UB),i["\u0275\u0275inject"](GO),i["\u0275\u0275inject"](sF))},e.\u0275prov=i["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const hH=function(){return["All history","This week","This month"]};function dH(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",17),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,hH))}const AH=function(){return["Audio only (all lectures)","Only lectures with video"]};function pH(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",17),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,AH))}const fH=function(){return["Default View View","Duration (low to high)","Duration (high to low)","Rec date (oldest)","Rec date (latest)","Alphabetically (A
1-Z)","Alphabetically (Z-A)"]};function gH(e,t){1&e&&i["\u0275\u0275element"](0,"tui-data-list-wrapper",17),2&e&&i["\u0275\u0275property"]("items",i["\u0275\u0275pureFunction0"](1,fH))}function mH(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",18),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",e.activeFiltersCount," ")}}function vH(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"app-lecture-post",21),i["\u0275\u0275listener"]("onLectureClick",function(){const t=i["\u0275\u0275restoreView"](e),n=t.$implicit,r=t.index,o=i["\u0275\u0275nextContext"](2);return o.interractWithLecture(n,o.lectures,r)}),i["\u0275\u0275elementEnd"]()}2&e&&i["\u0275\u0275property"]("lectureData",t.$implicit)}function yH(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",19),i["\u0275\u0275template"](1,vH,1,1,"app-lecture-post",20),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",e.lectures)}}function bH(e,t){if(1&e&&i["\u0275\u0275element"](0,"tui-loader",22),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("showLoader",e.contentLoader)("overlay",!0)("inheritColor",!0)}}function _H(e,t){if(1&e&&i["\u0275\u0275element"](0,"app-lectures",23),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("allLectures",e.sortedLectures)}}const wH=[{path:"",redirectTo:"dashboard/categories",pathMatch:"full"},{path:"login",component:ID,canActivate:[tF]},{path:"register",component:xD,canActivate:[tF]},{path:"mobile",component:nF},{path:"restore",component:TD,canActivate:[tF]},{path:"dashboard",component:kL,canActivate:[vL,tF],children:[{path:"",redirectTo:"categories"},{path:"top",component:XL},{path:"categories",component:TN},{path:"donate",component:TM},{path:"favorites",component:dM},{path:"history",component:(()=>{class e{constructor(e,t,n,r,i,o,s,a,l,c,u,h,d){this._sortService=e,this._lectureMethodsService=t,this._multiSelectService=n,this._dialogService=r,this.route=i,this._historyService=o,this._globalStateService=s,this._filterService=a,this._downloadService=l,this._navigateBackService=c,this._lectureProgressService=u,this._router=h,this._audioPlayerService=d,this.isLecturePopupActive=!1,this.isSelectMode=!1,this.sortedLectures=[],this.dataToRender=[],this.isSelectAfterSearch=!1,this.lecturesMode=WO.play_audio,this.dialog=this._dialogService.open(new ca(vF),{data:237,dismissible:!0,label:"Filters",size:"s",closeable:!1}),this.route.url.subscribe(()=>this._multiSelectService.unchooseAll())}get historyLecturesIsLoaded(){return this._historyService.historyLecturesIsReady}get lectures(){return this._historyService.allLectures}get lecturesByWeek(){return this._historyService.allLecturesByWeek}get lecturesByMonth(){return this._historyService.allLecturesByMonth}get activeFiltersCount(){return this._filterService.getAllActiveFiltersCount()}get historyRequest(){return this._lectureMethodsService.historyRequest}set historyRequest(e){this._lectureMethodsService.historyRequest=e}get searchRequest(){return this._lectureMethodsService.searchRequest}set searchRequest(e){this._lectureMethodsService.searchRequest=e}get sortRequest(){return this._lectureMethodsService.sortRequest}get showRequest(){return this.setLectureMode(),this._lectureMethodsService.showRequest}set showRequest(e){this._lectureMethodsService.showRequest=e}set sortRequest(e){this._lectureMethodsService.sortRequest=e}ngOnInit(){this.isSelectMode=this._multiSelectService.isSelectMode,this.form=new $t.FormGroup({show:new $t.FormControl(null),sort:new $t.FormControl(null),history:new $t.FormControl(null),filter:new $t.FormControl(null)}),this._navigateBackService.oldPath=this._router.url}downloadLectures(){const e=this._multiSelectService.getSelectedLecturesIds();this._downloadService.addLecturesToDownloads(e)}checkLectureImage(e){return e||Zp}playLecture(e,t){this.activeLecture=t.findIndex(t=>t.id===e.id),this.activePlayList=t,this.isLecturePopupActive=!0}showDialog(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this.dialog.toPromise()})}closeLecturePopup(){this.isLecturePopupActive=!1}isSortRequests(){return!this.searchRequest.trim()&&"All history"===this.historyRequest&&"Default View"==this.sortRequest&&!this.activeFiltersCount&&this.showRequest==YO.AUDIOS}markSelectedAsCompleted(){this._multiSelectService.selectedLectures.forEac
1h(e=>{this._lectureProgressService.markAsComplete(e)}),this._multiSelectService.unchooseAll()}toggleSelectMode(){this._multiSelectService.toggleSelectMode()}sortLecturesByPeriod(){"This week"===this.historyRequest?(this.sortedLectures.length=0,this.sortedLectures.push(...this.lecturesByWeek)):"This month"===this.historyRequest?(this.sortedLectures.length=0,this.sortedLectures.push(...this.lecturesByMonth)):(this.sortedLectures.length=0,this.sortedLectures.push(...this.lectures)),this._lectureMethodsService.onHistorySortChanged.emit()}clearHistory(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this._historyService.clearHistory(),this.sortLecturesByPeriod()})}interractWithLecture(e,t,n){switch(this.lecturesMode){case WO.play_audio:this._audioPlayerService.setData(t,n);break;case WO.open_lecture_page:this._router.navigateByUrl("/lecture/"+e.id);case WO.select:this._multiSelectService.toggleLectureSelect(e.id)}}setLectureMode(){this.lecturesMode=this.isSelectMode?WO.select:this._lectureMethodsService.showRequest===YO.AUDIOS?WO.play_audio:WO.open_lecture_page}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](ZL),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](AF),i["\u0275\u0275directiveInject"](Ku),i["\u0275\u0275directiveInject"](eP),i["\u0275\u0275directiveInject"](uH),i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](hF),i["\u0275\u0275directiveInject"](IF),i["\u0275\u0275directiveInject"](PF),i["\u0275\u0275directiveInject"](xF),i["\u0275\u0275directiveInject"](wO),i["\u0275\u0275directiveInject"](kF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-history-page"]],decls:33,vars:8,consts:[[1,"dashboard-head"],[1,"dashboard-head__title","tui-text_h4"],[1,"dashboard-head__filters-wrapper",3,"formGroup"],[1,"select-wrapper","tui-space_right-6"],[1,"select-wrapper__text"],["tuiTextfieldSize","s","formControlName","history",1,"select-wrapper__select",3,"ngModel","ngModelChange"],[3,"items",4,"tuiDataList"],["tuiTextfieldSize","s","formControlName","show",1,"select-wrapper__select",3,"ngModel","ngModelChange"],["tuiTextfieldSize","s","formControlName","sort",1,"select-wrapper__select",3,"ngModel","ngModelChange"],["class","filter-badge",4,"ngIf"],["tuiButton","","icon","./../../../assets/img/sprite.svg#filter","appearance","outline","type","button","size","s",3,"click"],[1,"select-wrapper"],["tuiButton","","appearance","outline","type","button","size","s",3,"click"],["appPagination","",1,"dashboard__wrapper","categories"],["class","lectures-wrapper",4,"ngIf"],[3,"ngIf"],[3,"allLectures",4,"ngIf"],[3,"items"],[1,"filter-badge"],[1,"lectures-wrapper"],[3,"lectureData","onLectureClick",4,"ngFor","ngForOf"],[3,"lectureData","onLectureClick"],["size","xxl",1,"content-loader",3,"showLoader","overlay","inheritColor"],[3,"allLectures"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"h2",1),i["\u0275\u0275text"](2,"History"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"form",2),i["\u0275\u0275elementStart"](4,"div",3),i["\u0275\u0275elementStart"](5,"h5",4),i["\u0275\u0275text"](6,"Period"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"tui-select",5),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.historyRequest=e})("ngModelChange",function(){return t.sortLecturesByPeriod()}),i["\u0275\u0275text"](8," All history "),i["\u0275\u0275template"](9,dH,1,2,"tui-data-list-wrapper",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"div",3),i["\u0275\u0275elementStart"](11,"h5",4),i["\u0275\u0275text"](12,"Playback Mode"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](13,"tui-select",7),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.showRequest=e}),i["\u0275\u0275text"](14," All lectures "),i["\u0275\u0275template"](15,pH,1,2,"tui-data-list-wrapper",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](16,"div",3),i["\u0275\u0275elementStart"](17,"h5",4),i["\u0275\u0275text"](18,"Sort by"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](19,"tui-select",8),i["\u0275\u0275listener"]("ngModelChange",function(e){return t.sortRequest=e}),i["\u0275\u0275text"](20," Default View View "),i["\u0275\u0275template"](21,gH,1,2,"tui-data-list-wrapper",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](22,"div",3),i["\u0275\u0275template"](23,mH,2,1,"div",9),i["\u0275\u0275elementStart"](24,"button",10),i["\u0275\u0275listener"]("click",function(){return t.showDialog()}),i["\u0275\u0275text"](25," Filters "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](26,"div",11),i["\u0275\u0275elementStart"](27,"button",12),i["\u0275\u0275listener"]("click",function(){return t.clearHistory()}),i["\u0275\u0275text"](28," Clear history "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](29,"tui-scrollbar",13),i["\u0275\u0275template"](30,yH,2,1,"div",14),i["\u0275\u0275template"](31,bH,1,3,"ng-template",15),i["\u0275\u0275template"](32,_H,1,1,"app-lectures",16),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("formGroup",t.form),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngModel",t.historyRequest),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngModel",t.showRequest),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("ngModel",t.sortRequest),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",t.activeFiltersCount),i["\u0275\u0275advance"](7),i["\u0275\u0275property"]("ngIf",t.isSortRequests()),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!t.historyLecturesIsLoaded),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!t.isSortRequests()))},directives:[$t["\u0275NgNoValidate"],$t.NgControlStatusGroup,$t.FormGroupDirective,$d,yh,$t.NgControlStatus,$t.FormControlName,Ou,Ft.O5,Ya,wc,OF,yp,Ft.sg,ZF,ba,tL],styles:[""]}),e})()},{path:"playlists",component:YD},{path:"playlists/:listID",component:mL},{path:"downloads",component:DL},{path:"settings",component:XD},{path:"statistics",component:sH},{path:"about",component:cH,children:[{path:"",redirectTo:"leaders"},{path:"srila",component:lH},{path:"bhakti",component:aH},{path:"leaders",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-leaders"]],decls:28,vars:0,consts:[[1,"about__text-group"],[1,"text-wrapper"],[1,"text-wrapper__sub-title","tui-text_h6"],[1,"text-wrapper__title","tui-text_h2"],[1,"text-wrapper__text","tui-text_body-m"],["routerLink","../srila",1,"about__link","tui-text_h6"],["src","tuiIconArrowRight",1,"about__arrow-icon"],["src","../../../../assets/img/srila1.jpg","alt","About: Srila Prabhup\u0101da",1,"about__photo"],[1,"about__text-group","about__text-group--reverse"],["src","../../../../assets/img/bhakti1.jpg","alt","",1,"about__photo"],["routerLink","../bhakti",1,"about__link","tui-text_h6"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275elementStart"](2,"strong",2),i["\u0275\u0275text"](3,"FOUNDER-\u0100C\u0100RYA OF INTERNATIONAL SOCIETY FOR KRISHNA CONSCIOUSNESS"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](4,"h2",3),i["\u0275\u0275text"](5,"\u015ar\u012bla Prabhup\u0101da"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"p",4),i["\u0275\u0275text"](7," The honorific title Prabhup\u0101da is properly used for designating those very great spiritual masters who have made an outstanding contribution of literature or preaching to the world. Examples are \u015ar\u012bla R\u016bpa Gosv\u0101m\u012b Prabhup\u0101da, \u015ar\u012bla J\u012bva Gosv\u0101m\u012b Prabhup\u0101da, and \u015ar\u012bla Bhaktisiddh\u0101nta Sarasvati Gosv\u0101m\u012b Prabhup\u0101da. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](8,"p",4),i["\u0275\u0275text"](9," When members of ISKCON speak of \u201c\u015ar\u012bla Prabhup\u0101da,\u201d they refer to His Divine Grace A.C. Bhaktived\u0101nta Sw\u0101m\u012b Prabhup\u0101da. A.C. Bhaktivedanta Swami is correctly addressed as \u015ar\u012bla Prabhup\u0101da because he occupies a unique position in the religious history of the world. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"a",5),i["\u0275\u0275text"](11,"Read more "),i["\u0275\u0275element"](12,"tui-svg",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275element"](13,"img",7),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](14,"div",8),i["\u0275\u0275element"](15,"img",9),i["\u0275\u0275elementStart"](16,"div",1),i["\u0275\u0275elementStart"](17,"strong",2),i["\u0275\u0275text"](18,"A DISCIPLE OF HIS DIVINE GRACE A.C. BHAKTIVEDANTA SWAMI PRABHUP\u0100DA"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](19,"h2",3),i["\u0275\u0275text"](20,"Bhakti Vik\u0101sa Swami"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](21,"p",4),i["\u0275\u0275text"](22," His Holiness Bhakti Vik\u0101sa Swami appeared in this world in 1957 in 
1England. He joined the International Society for Krishna Consciousness (ISKCON) in London in 1975 and was initiated in that year with the name Il\u0101pati d\u0101sa by ISKCON\u2019s founder-\u0101c\u0101rya, His Divine Grace A.C. Bhaktivedanta Swam\u012b Prabhup\u0101da. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](23,"p",4),i["\u0275\u0275text"](24," From 1977 to 1979 His Holiness was based in India, mostly traveling in West Bengal preaching K\u1e5b\u1e63\u1e47a consciousness and distributing \u015ar\u012bla Prabhup\u0101da\u2019s books. He then spent the following ten years helping to pioneer ISKCON\u2019s preaching in Bangladesh, Burma, Thailand, and Malaysia. "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](25,"a",10),i["\u0275\u0275text"](26,"Read more "),i["\u0275\u0275element"](27,"tui-svg",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]())},directives:[SO,Fa],styles:[""]}),e})()}]}]},{path:"top",component:XL},{path:"playlists",component:YD},{path:"lecture/:id",component:ED,canActivate:[vL]},{path:"top-lecturtes",component:kL},{path:"favorites",component:dM},{path:"statistics",component:sH},{path:"settings",component:XD}];let CH=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[NO.forRoot(wH,{initialNavigation:"enabled",scrollPositionRestoration:"enabled"})],NO]}),e})(),SH=(()=>{class e{constructor(e,t){this._globalStateService=e,this._lecturesService=t,this.progressLineWidth=0,this.progressLineOpacity=1,this.createSubscriptionOnProgressChange()}ngOnInit(){this.createProgressUpInterval()}ngOnDestroy(){this.progressSubscription.unsubscribe()}createSubscriptionOnProgressChange(){this.progressSubscription=this._globalStateService.onProgressChanged.subscribe(e=>{this.changeProgressValue(e),100===e&&this.hideCompletedProgressBar()})}createProgressUpInterval(){this.progressUpInterval=setInterval(()=>{this.progressLineWidth>70?clearInterval(this.progressUpInterval):this.progressLineWidth+=10},800)}hideCompletedProgressBar(){setTimeout(()=>{this.progressLineOpacity=0},500)}changeProgressValue(e){this.progressLineWidth=e}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](sF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-progress-bar"]],decls:1,vars:4,consts:[[1,"progress-bar"]],template:function(e,t){1&e&&i["\u0275\u0275element"](0,"div",0),2&e&&i["\u0275\u0275styleProp"]("opacity",t.progressLineOpacity)("width",t.progressLineWidth+"%")},styles:[".progress-bar[_ngcontent-%COMP%]{height:5px;background-color:var(--tui-support-08);transition:.4s}"]}),e})();const EH=["audioplayer"],IH=["moreOptionsBtn"];function xH(e,t){if(1&e&&i["\u0275\u0275text"](0),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275textInterpolate1"](" ",e.lectureData.title.join(" ")," ")}}function TH(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"p",32),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){i["\u0275\u0275nextContext"]();const e=i["\u0275\u0275reference"](8),t=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("tuiHint",e),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",t.lectureData.category[0]," ")}}function BH(e,t){if(1&e&&i["\u0275\u0275text"](0),2&e){const e=i["\u0275\u0275nextContext"](2);i["\u0275\u0275textInterpolate1"](" ",e.lectureData.category[0]," ")}}function kH(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",26),i["\u0275\u0275element"](1,"img",27),i["\u0275\u0275elementStart"](2,"h2",28),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](4,xH,1,1,"ng-template",null,29,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275template"](6,TH,2,2,"p",30),i["\u0275\u0275template"](7,BH,1,1,"ng-template",null,31,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](5),t=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("src",t.thumbnail,i["\u0275\u0275sanitizeUrl"]),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("tuiHint",e),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",t.lectureData.title.join(" ")," "),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngIf",t.lectureData.category)}}function PH(e,t){1&e&&i["\u0275\u0275element"](0,"img",33)}function OH(e,t){1&e&&i["\u0275\u0275element"](0,"img",34)}function FH(e,t){1&e&&i["\u0275\u0275element"](0,"img",35)}function LH(e,t){1&e&&i["\u0275\u0275element"](0,"img",36)}function MH(e,t){1&e&&i["\u0275\u0275element"](0,"img",37)}function DH(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"ul",38),i["\u0275\u0275elementStart"](1,"li",39),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().downloadLecture()}),i["\u0275\u0275element"](2,"tui-svg",40),i["\u0275\u0275elementStart"](3,"span"),i["\u0275\u0275text"](4,"Download"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](5,"li",39),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().toggleComplete()}),i["\u0275\u0275element"](6,"tui-svg",41),i["\u0275\u0275elementStart"](7,"span"),i["\u0275\u0275text"](8),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](9,"li",39),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().addToPlaylist()}),i["\u0275\u0275element"](10,"tui-svg",42),i["\u0275\u0275elementStart"](11,"span"),i["\u0275\u0275text"](12,"Add to Playlist"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](8),i["\u0275\u0275textInterpolate1"](" ",e.lectureProgressData.isCompleted?"Reset completion":"Mark as complete"," ")}}let NH=(()=>{class e{constructor(e,t,n,r,i,o,s,a){this._lecturesProgressService=e,this._authService=t,this._shareService=n,this._favoritesService=r,this._audioplayerService=i,this._statisticService=o,this._downloadService=s,this._modalService=a,this.isPlayerEnabled=!1,this.options={autoplay:!0,controls:!0,muted:!1,height:0,width:800,playbackRates:[.5,.75,1,1.15,1.25,1.5,1.75,2],controlBar:{playToggle:!0},youtube:{autoplay:1}},this.isPlayerReady=!1,this.repeatType=0,this.isLectureFavorite=!1,this.isMoreOptionsOpen=!1}ngOnInit(){return(0,Er.mG)(this,void 0,void 0,function*(){this.user=this._authService.getUser(),this._audioplayerService.onPlayerClose.subscribe(()=>{this.closePlayer()}),this._audioplayerService.onDataSetup.subscribe(e=>{this.compareReceivedLecture(e)||(e.startTime&&(this.timeStampFromUrl=e.startTime),this.isPlayerEnabled?(this.player.playlist(e.data),this.playlistLength=e.data.length,this.player.playlist.currentItem(e.startPosition)):this.initPlayer(e))})})}initPlayer(e){this.isPlayerEnabled=!0,this.player=(0,PM.default)(this.target.nativeElement,this.options,
1()=>{this.player.playlist(e.data),this.playlistLength=e.data.length,this.player.playlist.currentItem(e.startPosition),this.player.playlist.autoadvance(0),this.updateCurrentItemIdx(),this.getLectureData()}),this.player.controlBar.on("tap",()=>{this.sendLectureTimeStamp()}),this.player.on("beforeplaylistitem",()=>{this.sendLectureTimeStamp()}),this.player.on("ended",()=>{this.sendLectureTimeStamp(),clearInterval(this.updateTimer)}),this.player.on("play",()=>{this.player.currentTime()&&this.sendLectureTimeStamp()}),this.player.on("pause",()=>{this.player.currentTime()&&this.sendLectureTimeStamp()}),this.player.on("seeked",()=>{this.player.currentTime()<1||this.sendLectureTimeStamp()}),this.player.on("playlistitem",()=>{this.updateCurrentItemIdx(),this.resetPlayerAfterPlaylistChange(),this.getLectureData()}),this.player.on("loadeddata",()=>{this.setCurrentTime(),this.incrementStatistic(),this.isPlayerReady=!0,this.updateTimer=setInterval(()=>{this._statisticService.setListenInfo(this.lectureData),this.sendLectureTimeStamp()},1e4)})}updateCurrentItemIdx(){this.currentItemIdx=this.player.playlist.currentItem()}getLectureData(){this.lectureData=this.player.playlist()[this.currentItemIdx].lectureData,this.thumbnail=this.lectureData.thumbnail?this.lectureData.thumbnail:Zp,this.lectureProgressData=this._lecturesProgressService.getProgressByLectureId(this.lectureData.id),this.isLectureFavorite=this._favoritesService.isLectureInFavorites(this.lectureData.id)}playNextLecture(){this.player.playlist.next(),this.resetPlayerAfterPlaylistChange()}playPrevLecture(){this.player.playlist.previous(),this.resetPlayerAfterPlaylistChange()}resetPlayerAfterPlaylistChange(){this.isPlayerReady=!1,clearInterval(this.updateTimer),this.toggleNextBtnDisplay(),this.togglePrevBtnDisplay()}togglePrevBtnDisplay(){this.isPrevBtnDisabled=this.currentItemIdx<=0&&2!==this.repeatType}toggleNextBtnDisplay(){this.isNextBtnDisabled=this.currentItemIdx===this.playlistLength-1&&2!==this.repeatType}goBackward(){const e=this.player.currentTime();this.setCurrentTime(),this.player.currentTime(e-10)}goForward(){const e=this.player.currentTime();this.setCurrentTime(),this.player.currentTime(e+10)}sendLectureTimeStamp(){if(!this.isPlayerReady)return;const e=this.player.currentTime(),t=this.player.duration();if(e+3>=t)return this.lectureProgressData.isCompleted=!0,void this._lecturesProgressService.markAsComplete(this.lectureData.id);this._lecturesProgressService.updateLectureProgress(Object.assign(Object.assign({},this.lectureProgressData),{lastPlayedPoint:e,totallength:t}))}setCurrentTime(){if(this.timeStampFromUrl)return this.player.currentTime(this.timeStampFromUrl),void(this.timeStampFromUrl=null);this.lectureProgressData&&(this.player.duration()<=this.lectureProgressData.lastPlayedPoint+3?this.player.currentTime(0):this.player.currentTime(this.lectureProgressData.lastPlayedPoint))}toggleComplete(){this.lectureProgressData.isCompleted?(this.lectureProgressData.isCompleted=!1,this._lecturesProgressService.resetCompletion(this.lectureData.id),this.sendLectureTimeStamp()):(this.lectureProgressData.isCompleted=!0,this._lecturesProgressService.markAsComplete(this.lectureData.id))}shuffle(){this.player.playlist.shuffle(),this.getLectureData()}changeRepeatFunc(){switch(this.repeatType+1===Object.keys(zO).length/2?this.repeatType=0:this.repeatType+=1,this.repeatType){case 0:this.player.playlist.repeat(!1),this.player.loop(!1);break;case 1:this.player.playlist.repeat(!1),this.player.loop(!0);break;case 2:this.player.playlist.repeat(!0),this.player.loop(!1)}this.toggleNextBtnDisplay(),this.togglePrevBtnDisplay()}toggleFavorite(){return(0,Er.mG)(this,void 0,void 0,function*(){this.isLectureFavorite=!this.isLectureFavorite;try{yield this._favoritesService.toggleFavorites(this.lectureData.id)}catch(e){this.isLectureFavorite=!this.isLectureFavorite}})}toggleMoreOptions(){this.isMoreOptionsOpen=!this.isMoreOptionsOpen}incrementStatistic(){this._statisticService.incrementLectureViews(this.lectureData.id)}downloadLecture(){this._downloadService.donwloadSingleLecture(this.lectureData)}addToPlaylist(){this._modalService.addToPlaylist([this.lectureData.id])}closePlayer(){this.player&&(this.isPlayerEnabled=!1,this.player.pause(),0!==this.player.currentTime()&&this.sendLectureTimeStamp(),clearInterval(this.updateTimer))}detectClickOutsideMoreOptions(e){var t;(null===(t=this.moreOptionsBtn.nativeElement)||void 0===t?void 0:t.contains(e.target))||(this.isMoreOptionsOpen=!1)}ngOnDestroy(){this.player&&(0!==this.player.currentTime()&&this.sendLectureTimeStamp(),this.player&&this.player.dis
1pose(),clearInterval(this.updateTimer))}shareLink(){const e=this.player.currentTime();this._shareService.copyLinkToClipboard(this.lectureData.id,e,!1)}compareReceivedLecture(e){if(void 0!==this.lectureData)return e.data[e.startPosition].lectureData.id===this.lectureData.id?(this.player.paused()?this.player.play():this.player.pause(),!0):void 0}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](xF),i["\u0275\u0275directiveInject"](GO),i["\u0275\u0275directiveInject"](LF),i["\u0275\u0275directiveInject"](yF),i["\u0275\u0275directiveInject"](kF),i["\u0275\u0275directiveInject"](kM),i["\u0275\u0275directiveInject"](IF),i["\u0275\u0275directiveInject"](QF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-audioplayer"]],viewQuery:function(e,t){if(1&e&&(i["\u0275\u0275viewQuery"](EH,7),i["\u0275\u0275viewQuery"](IH,5)),2&e){let e;i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.target=e.first),i["\u0275\u0275queryRefresh"](e=i["\u0275\u0275loadQuery"]())&&(t.moreOptionsBtn=e.first)}},hostBindings:function(e,t){1&e&&i["\u0275\u0275listener"]("click",function(e){return t.detectClickOutsideMoreOptions(e)},!1,i["\u0275\u0275resolveDocument"])},decls:31,vars:14,consts:[[1,"audioplayer"],[1,"audioplayer__close",3,"click"],["src","../../../assets/img/icons/close.svg","alt",""],[1,"audioplayer__wrap"],["class","audioplayer__main-info",4,"ngIf"],[1,"audioplayer__playlist-btns"],[1,"audioplayer__playlist-btn",3,"ngSwitch","click"],["src","../../../assets/img/icons/audioplayer/repeat.svg","alt","",4,"ngSwitchCase"],["src","../../../assets/img/icons/audioplayer/repeat-once.svg","alt","",4,"ngSwitchCase"],["src","../../../assets/img/icons/audioplayer/repeat-always.svg","alt","",4,"ngSwitchCase"],[1,"audioplayer__playlist-btn",3,"disabled","click"],["src","../../../assets/img/icons/audioplayer/prev.svg","title","prev lecture","alt",""],[1,"audioplayer__playlist-btn",3,"click"],["src","../../../assets/img/icons/audioplayer/backward.svg","title","10 seconds backward","alt",""],["src","../../../assets/img/icons/audioplayer/forward.svg","title","10 seconds forward","alt",""],["src","../../../assets/img/icons/audioplayer/next.svg","title","next lecture","alt",""],["controls","","muted","","playsinline","","preload","none",1,"video-js"],["audioplayer",""],[1,"audioplayer__playlist-btns","audioplayer__playlist-btns--large-spaces"],["src","../../../assets/img/icons/audioplayer/like.svg","height","18px","alt","add to favorites","title","add to favorites",4,"ngSwitchCase"],["src","../../../assets/img/icons/audioplayer/like-filled.svg","height","18px","alt","remove from favorites","title","remove from favorites",4,"ngSwitchCase"],["src","../../../assets/img/icons/share.svg","height","18px","alt","share","title","share"],[1,"audioplayer__playlist-btn",3,"tuiDropdownContent","tuiDropdown","click"],["moreOptionsBtn",""],["src","../../../assets/img/icons/audioplayer/more-options.svg","height","18px","alt","more options","title","more options"],["dropdownContent",""],[1,"audioplayer__main-info"],["alt","",1,"audioplayer__poster",3,"src"],["tuiHintDirection","top","tuiHintMode","onDark",1,"audioplayer__title",3,"tuiHint"],["fullTitleTooltip",""],["tuiHintDirection","top","tuiHintMode","onDark","class","audioplayer__category",3,"tuiHint",4,"ngIf"],["categoryTooltip",""],["tuiHintDirection","top","tuiHintMode","onDark",1,"audioplayer__category",3,"tuiHint"],["src","../../../assets/img/icons/audioplayer/repeat.svg","alt",""],["src","../../../assets/img/icons/audioplayer/repeat-once.svg","alt",""],["src","../../../assets/img/icons/audioplayer/repeat-always.svg","alt",""],["src","../../../assets/img/icons/audioplayer/like.svg","height","18px","alt","add to favorites","title","add to favorites"],["src","../../../assets/img/icons/audioplayer/like-filled.svg","height","18px","alt","remove from favorites","title","remove from favorites"],[1,"dropdown"],[1,"dropdown__item",3,"click"],["src","tuiIconDownloadLarge",1,"dropdown__item-icon"],["src","tuiIconCheckLarge",1,"dropdown__item-icon"],["src","./../../../assets/img/sprite.svg#playlists",1,"dropdown__item-icon"]],template:function(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"button",1),i["\u0275\u0275listener"]("click",function(){return t.closePlayer()}),i["\u0275\u0275element"](2,"img",2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"div",3),i["\u0275\u0275template"](4,kH,9,4,"div",4),i["\u0275\u0275elementStart"](5,"div",5),i["\u0275\u0275elementStart"](6,"button",6),i["\u0275\u0275listener"]("click",function(){return t.changeRepeatFunc()}),i["\u0275\u0275template"](7,PH,1,0,"img",7),i["\u0275\u0275template"](8,OH,1,0,"img",8),i["\u0275\u0275template"](9,FH,1,0,"img",9),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"button",10),i["\u0275\u0275listener"]("click",function(){return t.playPrevLecture()}),i["\u0275\u0275element"](11,"img",11),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](12,"button",12),i["\u0275\u0275listener"]("click",function(){return t.goBackward()}),i["\u0275\u0275element"](13,"img",13),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](14,"button",12),i["\u0275\u0275listener"]("click",function(){return t.goForward()}),i["\u0275\u0275element"](15,"img",14),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](16,"button",10),i["\u0275\u0275listener"]("click",function(){return t.playNextLecture()}),i["\u0275\u0275element"](17,"img",15),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275element"](18,"video",16,17),i["\u0275\u0275elementStart"](20,"div",18),i["\u0275\u0275elementStart"](21,"button",6),i["\u0275\u0275listener"]("click",function(){return t.toggleFavorite()}),i["\u0275\u0275template"](22,LH,1,0,"img",19),i["\u0275\u0275template"](23,MH,1,0,"img",20),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](24,"button",12),i["\u0275\u0275listener"]("click",function(){return t.shareLink()}),i["\u0275\u0275element"](25,"img",21),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](26,"button",22,23),i["\u0275\u0275listener"]("click",function(){return t.toggleMoreOptions()}),i["\u0275\u0275element"](28,"img",24),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](29,DH,13,1,"ng-template",null,25,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275reference"](30);i["\u0275\u0275classProp"]("active",t.isPlayerEnabled),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngIf",t.lectureData),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngSwitch",t.repeatType),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngSwitchCase",0),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngSwitchCase",1),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngSwitchCase",2),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("disabled",t.isPrevBtnDisabled),i["\u0275\u0275advance"](6),i["\u0275\u0275property"]("disabled",t.isNextBtnDisabled),i["\u0275\u0275advance"](5),i["\u0275\u0275property"]("ngSwitch",t.isLectureFavorite),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngSwitchCase",!1),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngSwitchCase",!0),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("tuiDropdownContent",e)("tuiDropdown",t.isMoreOptionsOpen)}},directives:[Ft.O5,Ft.RF,Ft.n9,yu,Mc,Fa],styles:[".audioplayer[_ngcontent-%COMP%]{position:fixed;top:100%;left:0;width:100%;height:60px;background:#fff;border-top:1px solid #e0e0e0;transition:.2s ease-out}.audioplayer.active[_ngcontent-%COMP%]{transform:translateY(-100%)}.audioplayer.active[_ngcontent-%COMP%]   .audioplayer__close[_ngcontent-%COMP%]{display:flex}.audioplayer__wrap[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;max-width:1400px;height:100%;margin:0 auto;padding:5px 25px}.audioplayer__main-info[_ngcontent-%COMP%]{display:grid;grid-gap:5px 8px;grid-template-columns:repeat(2,auto)}.audioplayer__poster[_ngcontent-%COMP%]{grid-row:1/3;grid-column:1/2;width:80px;height:45px;object-fit:cover;object-position:center}.audioplayer__category[_ngcontent-%COMP%], .audioplayer__title[_ngcontent-%COMP%]{grid-row:1/2;width:150px;overflow:hidden;font-size:14px;white-space:nowrap;text-overflow:ellipsis}.audioplayer__category[_ngcontent-%COMP%]{grid-row:2/3;font-size:14px}.audioplayer__playlist-btn[_ngcontent-%COMP%]{width:22px;height:22px}.audioplayer__playlist-btn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .audioplayer__playlist-btn[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{max-height:100%;transition:.18s ease-out}.audioplayer__playlist-btn[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%], .audioplayer__playlist-btn[_ngcontent-%COMP%]:hover   svg[_ngcontent-%COMP%]{filter:brightness(.5)}.audioplayer__playlist-btn[_ngcontent-%COMP%]:disabled{visibility:hidden}.audioplayer__playlist-btns[_ngcontent-%COMP%]{display:flex;margin-left:15px}.audioplayer__playlist-btns[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:7px;padding:0;background:#0000;border:0;border-radius:0;cursor:pointer}.audioplayer__playlist-btns--large-spaces[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(:last-child){margin-right:15px}.audioplayer[_ngcontent-%COMP%]   .video-js[_ngcontent-%COMP%]{flex:auto;height:100%}.audioplayer[_ngcontent-%COMP%]  .vjs-fullscreen-control, .audioplayer[_ngcontent-%COMP%]  .vjs-picture-in-picture-control, .audioplayer[_ngcontent-%COMP%]  .vjs-poster, .audioplayer[_ngcontent-%COMP%]  video{display:none}.audioplayer[_ngcontent-%COMP%]  .vjs-loading-spinner{z-index:4}.audioplayer[_ngcontent-%COMP%]  .vjs-big-play-button{top:7px;left:0;height:40px;color:var(--tui-support-08);line-height:1;background:#0000}.audioplayer[_ngcontent-%COMP%]  .vjs-playback-rate .vjs-playback-rate-value{font-weight:600;font-size:14px;font-family:Manrope;line-height:39px}.audioplayer[_ngcontent-%COMP%]  .video-js .vjs-mute-control, .audioplayer[_ngcontent-%COMP%]  .video-js .vjs-play-control{color:#909090;transition:.18s ease-out}.audioplayer[_ngcontent-%COMP%]  .video-js .vjs-mute-control:hover, .audioplayer[_ngcontent-%COMP%]  .video-js .vjs-play-control:hover{color:#484848}.audioplayer[_ngcontent-%COMP%]  .video-js, .audioplayer[_ngcontent-%COMP%]  .vjs-control-bar{background:#fff}.audioplayer[_ngcontent-%COMP%]  .vjs-control-bar{color:var(--tui-support-08);font-size:13px}.audioplayer[_ngcontent-%COMP%]  .video-js .vjs-play-progress, .audioplayer[_ngcontent-%COMP%]  .video-js .vjs-volume-level{background:var(--tui-support-08)}.audioplayer[_ngcontent-%COMP%]  .vjs-control-bar{top:5px}.audioplayer[_ngcontent-%COMP%]  .vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1}.audioplayer[_ngcontent-%COMP%]  .video-js .vjs-current-time, .audioplayer[_ngcontent-%COMP%]  .vjs-no-flex .vjs-current-time{display:block}.audioplayer[_ngcontent-%COMP%]  .video-js .vjs-time-control, .audioplayer[_ngcontent-%COMP%]  .vjs-current-time{color:#242424}.audioplayer__close[_ngcontent-%COMP%]{position:absolute;top:-50px;right:20px;
1display:flex;display:none;align-items:center;justify-content:center;width:35px;height:35px;background-color:#fff;border:0;border-radius:50%;box-shadow:0 1px 6px #84848487;cursor:pointer}.audioplayer__close[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%]{opacity:1}.audioplayer__close[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50%;opacity:.6;transition:all .15s ease}.dropdown[_ngcontent-%COMP%]{font-size:16px;border:0}.dropdown__item[_ngcontent-%COMP%]{display:flex;padding:8px 12px;background:#0000;border:0;cursor:pointer}.dropdown__item[_ngcontent-%COMP%]:hover{color:var(--tui-support-08);background:#ececec}.dropdown__item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-left:10px}"]}),e})();function RH(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",5),i["\u0275\u0275elementStart"](1,"span"),i["\u0275\u0275text"](2,"Verse: "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",null==e.notification?null:e.notification.verse," ")}}const UH=function(e){return{"show-notification":e}};let jH=(()=>{class e{constructor(e){this.notificationService=e}ngOnInit(){this.notificationSub=this.notificationService.getNotification().subscribe(e=>{this.notification=e,this.showPanel=null!==e,this.notificationTimeout=setTimeout(()=>{this.showPanel=!1},15e3)})}dismissNotification(){this.showPanel=!1}ngOnDestroy(){this.notificationSub.unsubscribe(),clearTimeout(this.notificationTimeout)}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](oF))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-notification"]],decls:18,vars:8,consts:[[1,"notification",3,"ngClass"],["status","success",3,"hasIcon"],[1,"notification__logo"],[1,"notification__content"],[1,"notification__title"],[1,"notification__body"],["class","notification__body",4,"ngIf"],[1,"notification__close",3,"click"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"tui-notification",1),i["\u0275\u0275element"](2,"div",2),i["\u0275\u0275elementStart"](3,"div",3),i["\u0275\u0275elementStart"](4,"h4",4),i["\u0275\u0275text"](5),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"div",5),i["\u0275\u0275elementStart"](7,"span"),i["\u0275\u0275text"](8,"Date of recording: "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](9),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"div",5),i["\u0275\u0275elementStart"](11,"span"),i["\u0275\u0275text"](12,"Category: "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275text"](13),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](14,RH,4,1,"div",6),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](15,"div",7),i["\u0275\u0275listener"]("click",function(){return t.dismissNotification()}),i["\u0275\u0275elementStart"](16,"span"),i["\u0275\u0275text"](17,"\u2716"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e&&(i["\u0275\u0275property"]("ngClass",i["\u0275\u0275pureFunction1"](6,UH,t.showPanel)),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("hasIcon",!0),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate"](null==t.notification?null:t.notification.title),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](" ",null==t.notification?null:t.notification.date," "),i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate1"](" ",null==t.notification?null:t.notification.category," "),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",!(null==t.notification||!t.notification.verse.length)))},directives:[Ft.mk,nl,Ft.O5],styles:[".notification{position:absolute;top:-100px;right:0;z-index:1000;display:none;width:400px;transition:top .5s}.notification svg{color:var(--tui-support-08)}.notification__content span{font-weight:700}.notification__close{position:absolute;top:50%;right:20px;font-size:16px;transform:translateY(-50%);cursor:pointer}.show-notification{top:50px!important;right:50px;display:block}tui-notification{box-shadow:2px 2px 10px #0000004d}"],encapsulation:2}),e})(),QH=(()=>{class e{constructor(e,t,n,r,i,o,s,a){this._globalStateService=e,this._lecturesProgressService=t,this._authService=n,this._historyService=r,this._favoritesService=i,this._playlistsService=o,this._notificationService=s,this._favoirtePlaylistsService=a,this._globalStateService.onPlaylistsLoaded.subscribe(()=>{this._favoirtePlaylistsService.initUserFavoritePlaylists()})}ngOnInit(){return(0,Er.mG)(this,void 0,void 0,function*(){yield this._authService.init(),this._favoritesService.initUserFavorites(),this._notificationService.requestToken(),this._lecturesProgressService.initProgressSubscribe(),this._globalStateService.onLecturesLoaded.subscribe(()=>{this._historyService.initUserHistory()}),this._globalStateService.onHistoryChanged.subscribe(()=>{this._historyService.initUserHistory()}),yield this._playlistsService.requestPlaylists(),yield this._favoirtePlaylistsService.initUserFavoritePlaylists()})}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](eF),i["\u0275\u0275directiveInject"](xF),i["\u0275\u0275directiveInject"](GO),i["\u0275\u0275directiveInject"](uH),i["\u0275\u0275directiveInject"](yF),i["\u0275\u0275directiveInject"](aF),i["\u0275\u0275directiveInject"](oF),i["\u0275\u0275directiveInject"](BD))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-root"]],decls:6,vars:0,consts:[[1,"progress-bar"],[1,"app"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"tui-root"),i["\u0275\u0275element"](1,"app-progress-bar",0),i["\u0275\u0275elementStart"](2,"main",1),i["\u0275\u0275element"](3,"router-outlet"),i["\u0275\u0275element"](4,"app-audioplayer"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275element"](5,"app-notification"),i["\u0275\u0275elementEnd"]())}
1,directives:[cu,SH,xO,NH,jH],styles:[".progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%}"]}),e})(),HH=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=i["\u0275\u0275defineInjector"]({imports:[[Ft.ez,$t.FormsModule,Rc,mA,RA]]}),e})(),VH=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i["\u0275\u0275defineNgModule"]({type:e,bootstrap:[QH]}),e.\u0275inj=i["\u0275\u0275defineInjector"]({providers:[],imports:[[r.BrowserModule.withServerTransition({appId:"serverApp"}),CH,Wt,$t.FormsModule,$t.ReactiveFormsModule,Nn,xl,Yp.forRoot(),gr.hO.initializeApp(Jp),Sr,Nr,uu,Xa,Md,mu,Yd,AA,Fu,BA,Th,La,RA,Gu,Dc,hp,Cc,Ca,dp,bp,Ch,bu,La,Gu,Tp,xh,Dc,EF,Np,Tp,rl,RA,HH,tH]]}),e})();(0,i.enableProdMode)(),document.addEventListener("DOMContentLoaded",()=>{r.platformBrowser().bootstrapModule(VH).catch(e=>console.error(e))})},6549:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,t.apply(this,arguments)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},4762:(e,t,n)=>{"use strict";n.d(t,{ZT:()=>i,pi:()=>o,mG:()=>s,Jh:()=>a,XA:()=>l,CR:()=>c,ev:()=>u});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(t){o(t)}}function a(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function l(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}},5893:()=>{},8181:()=>{}},e=>{"use strict";e(e.s=2268)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.