/*! For license information please see 685.a63e0684a99ec1ff2b74.js.LICENSE.txt */
(globalThis.webpackChunk_rio_rio_ui=globalThis.webpackChunk_rio_rio_ui||[]).push([[685],{10649(t,e,r){var n,i,o=r(1626),s=r(13786);n=t.exports,i=()=>a,Object.defineProperty(n,"BuddhistCalendar",{get:i,set:void 0,enumerable:!0,configurable:!0});class a extends s.GregorianCalendar{fromJulianDay(t){let e=super.fromJulianDay(t),r=(0,s.getExtendedYear)(e.era,e.year);return new(0,o.CalendarDate)(this,r- -543,e.month,e.day)}toJulianDay(t){return super.toJulianDay(A(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(A(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function A(t){let[e,r]=(0,s.fromExtendedYear)(t.year+-543);return new(0,o.CalendarDate)(e,r,t.month,t.day)}},1626(t,e,r){var n=r(34639),i=r(70656),o=r(46135),s=r(13786),a=r(21400),A=r(15869);function l(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}function c(t){let e,r="object"==typeof t[0]?t.shift():new(0,s.GregorianCalendar);if("string"==typeof t[0])e=t.shift();else{let t=r.getEras();e=t[t.length-1]}return[r,e,t.shift(),t.shift(),t.shift()]}l(t.exports,"CalendarDate",()=>u),l(t.exports,"Time",()=>f),l(t.exports,"CalendarDateTime",()=>g),l(t.exports,"ZonedDateTime",()=>y);var h=new WeakMap;class u{copy(){return this.era?new u(this.calendar,this.era,this.year,this.month,this.day):new u(this.calendar,this.year,this.month,this.day)}add(t){return(0,n.add)(this,t)}subtract(t){return(0,n.subtract)(this,t)}set(t){return(0,n.set)(this,t)}cycle(t,e,r){return(0,n.cycleDate)(this,t,e,r)}toDate(t){return(0,a.toDate)(this,t)}toString(){return(0,o.dateToString)(this)}compare(t){return(0,i.compareDate)(this,t)}constructor(...t){(0,A._)(this,h,{writable:!0,value:void 0});let[e,r,i,o,s]=c(t);this.calendar=e,this.era=r,this.year=i,this.month=o,this.day=s,(0,n.constrain)(this)}}var p=new WeakMap;class f{copy(){return new f(this.hour,this.minute,this.second,this.millisecond)}add(t){return(0,n.addTime)(this,t)}subtract(t){return(0,n.subtractTime)(this,t)}set(t){return(0,n.setTime)(this,t)}cycle(t,e,r){return(0,n.cycleTime)(this,t,e,r)}toString(){return(0,o.timeToString)(this)}compare(t){return(0,i.compareTime)(this,t)}constructor(t=0,e=0,r=0,i=0){(0,A._)(this,p,{writable:!0,value:void 0}),this.hour=t,this.minute=e,this.second=r,this.millisecond=i,(0,n.constrainTime)(this)}}var d=new WeakMap;class g{copy(){return this.era?new g(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new g(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return(0,n.add)(this,t)}subtract(t){return(0,n.subtract)(this,t)}set(t){return(0,n.set)((0,n.setTime)(this,t),t)}cycle(t,e,r){switch(t){case"era":case"year":case"month":case"day":return(0,n.cycleDate)(this,t,e,r);default:return(0,n.cycleTime)(this,t,e,r)}}toDate(t,e){return(0,a.toDate)(this,t,e)}toString(){return(0,o.dateTimeToString)(this)}compare(t){let e=(0,i.compareDate)(this,t);return 0===e?(0,i.compareTime)(this,(0,a.toCalendarDateTime)(t)):e}constructor(...t){(0,A._)(this,d,{writable:!0,value:void 0});let[e,r,i,o,s]=c(t);this.calendar=e,this.era=r,this.year=i,this.month=o,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,(0,n.constrain)(this)}}var m=new WeakMap;class y{copy(){return this.era?new y(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new y(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return(0,n.addZoned)(this,t)}subtract(t){return(0,n.subtractZoned)(this,t)}set(t,e){return(0,n.setZoned)(this,t,e)}cycle(t,e,r){return(0,n.cycleZoned)(this,t,e,r)}toDate(){return(0,a.zonedToDate)(this)}toString(){return(0,o.zonedDateTimeToString)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-(0,a.toZoned)(t,this.timeZone).toDate().getTime()}constructor(...t){(0,A._)(this,m,{writable:!0,value:void 0});let[e,r,i,o,s]=c(t),a=t.shift(),l=t.shift();this.calendar=e,this.era=r,this.year=i,this.month=o,this.day=s,this.timeZone=a,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,(0,n.constrain)(this)}}},39282(t){var e,r;e=t.exports,r=()=>i,Object.defineProperty(e,"DateFormatter",{get:r,set:void 0,enumerable:!0,configurable:!0});let n=new Map;class i{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,e){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(e)}`}formatRangeToParts(t,e){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),n=this.formatter.formatToParts(e);return[...r.map(t=>({...t,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(t=>({...t,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return null==A&&(A="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),A&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(t,e){if(!e.timeStyle&&!e.hour)return;t=t.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let r=s(t+=(t.includes("-u-")?"":"-u")+"-nu-latn",{...e,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(t=>"hour"===t.type).value,10),i=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(t=>"hour"===t.type).value,10);if(0===n&&23===i)return"h23";if(24===n&&23===i)return"h24";if(0===n&&11===i)return"h11";if(12===n&&11===i)return"h12";throw new Error("Unexpected hour cycle result")}(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===t.calendar&&(t.calendar="ethioaa"),t}constructor(t,e={}){this.formatter=s(t,e),this.options=e}}const o={true:{ja:"h11"},false:{}};function s(t,e={}){if("boolean"==typeof e.hour12&&(null==a&&(a="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),a)){e={...e};let r=o[String(e.hour12)][t.split("-")[0]],n=e.hour12?"h12":"h23";e.hourCycle=null!=r?r:n,delete e.hour12}let r=t+(e?Object.entries(e).sort((t,e)=>t[0]<e[0]?-1:1).join():"");if(n.has(r))return n.get(r);let i=new Intl.DateTimeFormat(t,e);return n.set(r,i),i}let a=null,A=null},55609(t,e,r){var n=r(1626);function i(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}i(t.exports,"EthiopicCalendar",()=>u),i(t.exports,"EthiopicAmeteAlemCalendar",()=>p),i(t.exports,"CopticCalendar",()=>f);const o=1723856,s=1824665,a=5500;function A(t,e,r,n){return t+365*e+Math.floor(e/4)+30*(r-1)+n-1}function l(t,e){let r=Math.floor(4*(e-t)/1461),n=1+Math.floor((e-A(t,r,1,1))/30);return[r,n,e+1-A(t,r,n,1)]}function c(t){return Math.floor(t%4/3)}function h(t,e){return e%13!=0?30:c(t)+5}class u{fromJulianDay(t){let[e,r,i]=l(o,t),s="AM";return e<=0&&(s="AA",e+=a),new(0,n.CalendarDate)(this,s,e,r,i)}toJulianDay(t){let e=t.year;return"AA"===t.era&&(e-=a),A(o,e,t.month,t.day)}getDaysInMonth(t){return h(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+c(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return"AA"===t.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class p extends u{fromJulianDay(t){let[e,r,i]=l(o,t);return e+=a,new(0,n.CalendarDate)(this,"AA",e,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class f extends u{fromJulianDay(t){let[e,r,i]=l(s,t),o="CE";return e<=0&&(o="BCE",e=1-e),new(0,n.CalendarDate)(this,o,e,r,i)}toJulianDay(t){let e=t.year;return"BCE"===t.era&&(e=1-e),A(s,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return"BCE"===t.era&&(e=1-e),h(e,t.month)}isInverseEra(t){return"BCE"===t.era}balanceDate(t){t.year<=0&&(t.era="BCE"===t.era?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return"BCE"===t.era?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}},13786(t,e,r){var n=r(1626),i=r(25563);function o(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}o(t.exports,"gregorianToJulianDay",()=>s),o(t.exports,"getExtendedYear",()=>A),o(t.exports,"isLeapYear",()=>a),o(t.exports,"fromExtendedYear",()=>l),o(t.exports,"GregorianCalendar",()=>h);function s(t,e,r,n){let i=(e=A(t,e))-1,o=-2;return r<=2?o=0:a(e)&&(o=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+o+n)}function a(t){return t%4==0&&(t%100!=0||t%400==0)}function A(t,e){return"BC"===t?1-e:e}function l(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const c={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class h{fromJulianDay(t){let e=t,r=e-1721426,o=Math.floor(r/146097),A=(0,i.mod)(r,146097),c=Math.floor(A/36524),h=(0,i.mod)(A,36524),u=Math.floor(h/1461),p=(0,i.mod)(h,1461),f=Math.floor(p/365),d=400*o+100*c+4*u+f+(4!==c&&4!==f?1:0),[g,m]=l(d),y=e-s(g,m,1,1),v=2;e<s(g,m,3,1)?v=0:a(m)&&(v=1);let b=Math.floor((12*(y+v)+373)/367),w=e-s(g,m,b,1)+1;return new(0,n.CalendarDate)(g,m,b,w)}toJulianDay(t){return s(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return c[a(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return a(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return"BC"===t.era}balanceDate(t){t.year<=0&&(t.era="BC"===t.era?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}},33519(t,e,r){var n,i,o=r(1626),s=r(25563);n=t.exports,i=()=>p,Object.defineProperty(n,"HebrewCalendar",{get:i,set:void 0,enumerable:!0,configurable:!0});const a=347997;function A(t){return(0,s.mod)(7*t+1,19)<7}function l(t){let e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return(0,s.mod)(3*(n+1),7)<3&&(n+=1),n}function c(t){return l(t)+function(t){let e=l(t-1),r=l(t);return l(t+1)-r===356?2:r-e===382?1:0}(t)}function h(t){return c(t+1)-c(t)}function u(t,e){if(e>=6&&!A(t)&&e++,4===e||7===e||9===e||11===e||13===e)return 29;let r=function(t){let e=h(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}(t);return 2===e?2===r?30:29:3===e?0===r?29:30:6===e?A(t)?30:0:30}class p{fromJulianDay(t){let e=t-a,r=25920*e/765433,n=Math.floor((19*r+234)/235)+1,i=c(n),s=Math.floor(e-i);for(;s<1;)n--,i=c(n),s=Math.floor(e-i);let A=1,l=0;for(;l<s;)l+=u(n,A),A++;A--,l-=u(n,A);let h=s-l;return new(0,o.CalendarDate)(this,n,A,h)}toJulianDay(t){let e=c(t.year);for(let r=1;r<t.month;r++)e+=u(t.year,r);return e+t.day+a}getDaysInMonth(t){return u(t.year,t.month)}getMonthsInYear(t){return A(t.year)?13:12}getDaysInYear(t){return h(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,e){e.year!==t.year&&(A(e.year)&&!A(t.year)&&e.month>6?t.month--:!A(e.year)&&A(t.year)&&e.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}},26915(t,e,r){var n,i,o=r(1626),s=r(13786);n=t.exports,i=()=>a,Object.defineProperty(n,"IndianCalendar",{get:i,set:void 0,enumerable:!0,configurable:!0});class a extends s.GregorianCalendar{fromJulianDay(t){let e,r,n,i=super.fromJulianDay(t),a=i.year-78,A=t-(0,s.gregorianToJulianDay)(i.era,i.year,1,1);if(A<80?(a--,e=(0,s.isLeapYear)(i.year-1)?31:30,A+=e+155+90+10):(e=(0,s.isLeapYear)(i.year)?31:30,A-=80),A<e)r=1,n=A+1;else{let t=A-e;t<155?(r=Math.floor(t/31)+2,n=t%31+1):(t-=155,r=Math.floor(t/30)+7,n=t%30+1)}return new(0,o.CalendarDate)(this,a,r,n)}toJulianDay(t){let e,r,n=t.year+78,[i,o]=(0,s.fromExtendedYear)(n);return(0,s.isLeapYear)(o)?(e=31,r=(0,s.gregorianToJulianDay)(i,o,3,21)):(e=30,r=(0,s.gregorianToJulianDay)(i,o,3,22)),1===t.month?r+t.day-1:(r+=e+31*Math.min(t.month-2,5),t.month>=8&&(r+=30*(t.month-7)),r+=t.day-1,r)}getDaysInMonth(t){return 1===t.month&&(0,s.isLeapYear)(t.year+78)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}},99988(t,e,r){var n=r(1626);function i(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}i(t.exports,"IslamicCivilCalendar",()=>u),i(t.exports,"IslamicTabularCalendar",()=>p),i(t.exports,"IslamicUmalquraCalendar",()=>b);const o=1948440,s=1948439,a=1300,A=1600;function l(t,e,r,n){return n+Math.ceil(29.5*(r-1))+354*(e-1)+Math.floor((3+11*e)/30)+t-1}function c(t,e,r){let i=Math.floor((30*(r-e)+10646)/10631),o=Math.min(12,Math.ceil((r-(29+l(e,i,1,1)))/29.5)+1),s=r-l(e,i,o,1)+1;return new(0,n.CalendarDate)(t,i,o,s)}function h(t){return(14+11*t)%30<11}class u{fromJulianDay(t){return c(this,o,t)}toJulianDay(t){return l(o,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return 12===t.month&&h(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return h(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class p extends u{fromJulianDay(t){return c(this,s,t)}toJulianDay(t){return l(s,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}let f,d;function g(t){return 460322+d[t-a]}function m(t,e){let r=1<<11-(e-1);return 0===(f[t-a]&r)?29:30}function y(t,e){let r=g(t);for(let n=1;n<e;n++)r+=m(t,n);return r}function v(t){return d[t+1-a]-d[t-a]}class b extends u{fromJulianDay(t){let e=t-o,r=g(a),i=g(A);if(e<r||e>i)return super.fromJulianDay(t);{let t=1299,r=1,i=1;for(;i>0;){t++,i=e-g(t)+1;let n=v(t);if(i===n){r=12;break}if(i<n){let e=m(t,r);for(r=1;i>e;)i-=e,r++,e=m(t,r);break}}return new(0,n.CalendarDate)(this,t,r,e-y(t,r)+1)}}toJulianDay(t){return t.year<a||t.year>A?super.toJulianDay(t):o+y(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<a||t.year>A?super.getDaysInMonth(t):m(t.year,t.month)}getDaysInYear(t){return t.year<a||t.year>A?super.getDaysInYear(t):v(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",f||(f=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),t=>t.charCodeAt(0)).buffer)),!d){d=new Uint32Array(301);let t=0;for(let e=a;e<=A;e++){d[e-a]=t;for(let r=1;r<=12;r++)t+=m(e,r)}}}}},60275(t,e,r){var n,i,o=r(1626),s=r(13786);n=t.exports,i=()=>p,Object.defineProperty(n,"JapaneseCalendar",{get:i,set:void 0,enumerable:!0,configurable:!0});const a=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],A=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],l=[1867,1911,1925,1988,2018],c=["meiji","taisho","showa","heisei","reiwa"];function h(t){const e=a.findIndex(([e,r,n])=>t.year<e||t.year===e&&t.month<r||t.year===e&&t.month===r&&t.day<n);return-1===e?a.length-1:0===e?0:e-1}function u(t){let e=l[c.indexOf(t.era)];if(!e)throw new Error("Unknown era: "+t.era);return new(0,o.CalendarDate)(t.year+e,t.month,t.day)}class p extends s.GregorianCalendar{fromJulianDay(t){let e=super.fromJulianDay(t),r=h(e);return new(0,o.CalendarDate)(this,c[r],e.year-l[r],e.month,e.day)}toJulianDay(t){return super.toJulianDay(u(t))}balanceDate(t){let e=u(t),r=h(e);c[r]!==t.era&&(t.era=c[r],t.year=e.year-l[r]),this.constrainDate(t)}constrainDate(t){let e=c.indexOf(t.era),r=A[e];if(null!=r){let[n,i,o]=r,s=n-l[e];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(i,t.month),t.month===i&&(t.day=Math.min(o,t.day)))}if(1===t.year&&e>=0){let[,r,n]=a[e];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(n,t.day))}}getEras(){return c}getYearsInEra(t){let e=c.indexOf(t.era),r=a[e],n=a[e+1];if(null==n)return 9999-r[0]+1;let i=n[0]-r[0];return(t.month<n[1]||t.month===n[1]&&t.day<n[2])&&i++,i}getDaysInMonth(t){return super.getDaysInMonth(u(t))}getMinimumMonthInYear(t){let e=f(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=f(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function f(t){if(1===t.year){let e=c.indexOf(t.era);return a[e]}}},5018(t,e,r){var n,i,o=r(1626),s=r(25563);n=t.exports,i=()=>A,Object.defineProperty(n,"PersianCalendar",{get:i,set:void 0,enumerable:!0,configurable:!0});const a=[0,31,62,93,124,155,186,216,246,276,306,336];class A{fromJulianDay(t){let e=t-1948320,r=1+Math.floor((33*e+3)/12053),n=e-(365*(r-1)+Math.floor((8*r+21)/33)),i=n<216?Math.floor(n/31):Math.floor((n-6)/30),s=n-a[i]+1;return new(0,o.CalendarDate)(this,r,i+1,s)}toJulianDay(t){let e=1948319+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=a[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||(0,s.mod)(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}},44594(t,e,r){var n,i,o=r(1626),s=r(13786);n=t.exports,i=()=>c,Object.defineProperty(n,"TaiwanCalendar",{get:i,set:void 0,enumerable:!0,configurable:!0});const a=1911;function A(t){return"minguo"===t.era?t.year+a:1-t.year+a}function l(t){let e=t-a;return e>0?["minguo",e]:["before_minguo",1-e]}class c extends s.GregorianCalendar{fromJulianDay(t){let e=super.fromJulianDay(t),r=(0,s.getExtendedYear)(e.era,e.year),[n,i]=l(r);return new(0,o.CalendarDate)(this,n,i,e.month,e.day)}toJulianDay(t){return super.toJulianDay(h(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,r]=l(A(t));t.era=e,t.year=r}isInverseEra(t){return"before_minguo"===t.era}getDaysInMonth(t){return super.getDaysInMonth(h(t))}getYearsInEra(t){return"before_minguo"===t.era?9999:8088}constructor(...t){super(...t),this.identifier="roc"}}function h(t){let[e,r]=(0,s.fromExtendedYear)(A(t));return new(0,o.CalendarDate)(e,r,t.month,t.day)}},21400(t,e,r){var n=r(1626),i=r(34639),o=r(13786),s=r(70656);function a(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}function A(t){return t=C(t,new(0,o.GregorianCalendar)),l((0,o.getExtendedYear)(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function l(t,e,r,n,i,o,s){let a=new Date;return a.setUTCHours(n,i,o,s),a.setUTCFullYear(t,e-1,r),a.getTime()}function c(t,e){if("UTC"===e)return 0;if(t>0&&e===(0,s.getLocalTimeZone)()&&!(0,s.isLocalTimeZoneOverridden)())return-6e4*new Date(t).getTimezoneOffset();let{year:r,month:n,day:i,hour:o,minute:a,second:A}=u(t,e);return l(r,n,i,o,a,A,0)-1e3*Math.floor(t/1e3)}a(t.exports,"epochFromDate",()=>A),a(t.exports,"toCalendar",()=>C),a(t.exports,"possibleAbsolutes",()=>f),a(t.exports,"toAbsolute",()=>g),a(t.exports,"toCalendarDateTime",()=>x),a(t.exports,"toDate",()=>m),a(t.exports,"fromAbsolute",()=>y),a(t.exports,"fromDate",()=>v),a(t.exports,"fromDateToLocal",()=>b),a(t.exports,"toCalendarDate",()=>w),a(t.exports,"toTime",()=>B),a(t.exports,"toZoned",()=>_),a(t.exports,"toTimeZone",()=>S),a(t.exports,"zonedToDate",()=>E),a(t.exports,"toLocalTimeZone",()=>I);const h=new Map;function u(t,e){let r=h.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),h.set(e,r));let n=r.formatToParts(new Date(t)),i={};for(let t of n)"literal"!==t.type&&(i[t.type]=t.value);return{year:"BC"===i.era||"B"===i.era?1-i.year:+i.year,month:+i.month,day:+i.day,hour:"24"===i.hour?0:+i.hour,minute:+i.minute,second:+i.second}}const p=864e5;function f(t,e){let r=A(t);return d(t,e,r-c(r-p,e),r-c(r+p,e))}function d(t,e,r,n){return(r===n?[r]:[r,n]).filter(r=>function(t,e,r){let n=u(r,e);return t.year===n.year&&t.month===n.month&&t.day===n.day&&t.hour===n.hour&&t.minute===n.minute&&t.second===n.second}(t,e,r))}function g(t,e,r="compatible"){let n=x(t);if("UTC"===e)return A(n);if(e===(0,s.getLocalTimeZone)()&&"compatible"===r&&!(0,s.isLocalTimeZoneOverridden)()){n=C(n,new(0,o.GregorianCalendar));let t=new Date,e=(0,o.getExtendedYear)(n.era,n.year);return t.setFullYear(e,n.month-1,n.day),t.setHours(n.hour,n.minute,n.second,n.millisecond),t.getTime()}let i=A(n),a=c(i-p,e),l=c(i+p,e),h=d(n,e,i-a,i-l);if(1===h.length)return h[0];if(h.length>1)switch(r){case"compatible":case"earlier":return h[0];case"later":return h[h.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(i-a,i-l);case"compatible":case"later":return Math.max(i-a,i-l);case"reject":throw new RangeError("No such absolute time found")}}function m(t,e,r="compatible"){return new Date(g(t,e,r))}function y(t,e){let r=c(t,e),i=new Date(t+r),o=i.getUTCFullYear(),s=i.getUTCMonth()+1,a=i.getUTCDate(),A=i.getUTCHours(),l=i.getUTCMinutes(),h=i.getUTCSeconds(),u=i.getUTCMilliseconds();return new(0,n.ZonedDateTime)(o<1?"BC":"AD",o<1?1-o:o,s,a,e,r,A,l,h,u)}function v(t,e){return y(t.getTime(),e)}function b(t){return v(t,(0,s.getLocalTimeZone)())}function w(t){return new(0,n.CalendarDate)(t.calendar,t.era,t.year,t.month,t.day)}function x(t,e){let r=0,i=0,o=0,s=0;if("timeZone"in t)({hour:r,minute:i,second:o,millisecond:s}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:i,second:o,millisecond:s}=e),new(0,n.CalendarDateTime)(t.calendar,t.era,t.year,t.month,t.day,r,i,o,s)}function B(t){return new(0,n.Time)(t.hour,t.minute,t.second,t.millisecond)}function C(t,e){if((0,s.isEqualCalendar)(t.calendar,e))return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),n=t.copy();return n.calendar=e,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,(0,i.constrain)(n),n}function _(t,e,r){return t instanceof n.ZonedDateTime?t.timeZone===e?t:S(t,e):y(g(t,e,r),e)}function E(t){let e=A(t)-t.offset;return new Date(e)}function S(t,e){return C(y(A(t)-t.offset,e),t.calendar)}function I(t){return S(t,(0,s.getLocalTimeZone)())}},75442(t,e,r){var n,i,o=r(10649),s=r(55609),a=r(13786),A=r(33519),l=r(26915),c=r(99988),h=r(60275),u=r(5018),p=r(44594);function f(t){switch(t){case"buddhist":return new(0,o.BuddhistCalendar);case"ethiopic":return new(0,s.EthiopicCalendar);case"ethioaa":return new(0,s.EthiopicAmeteAlemCalendar);case"coptic":return new(0,s.CopticCalendar);case"hebrew":return new(0,A.HebrewCalendar);case"indian":return new(0,l.IndianCalendar);case"islamic-civil":return new(0,c.IslamicCivilCalendar);case"islamic-tbla":return new(0,c.IslamicTabularCalendar);case"islamic-umalqura":return new(0,c.IslamicUmalquraCalendar);case"japanese":return new(0,h.JapaneseCalendar);case"persian":return new(0,u.PersianCalendar);case"roc":return new(0,p.TaiwanCalendar);default:return new(0,a.GregorianCalendar)}}n=t.exports,i=()=>f,Object.defineProperty(n,"createCalendar",{get:i,set:void 0,enumerable:!0,configurable:!0})},11702(t,e,r){var n=r(1626),i=r(13786),o=r(60275),s=r(10649),a=r(44594),A=r(5018),l=r(26915),c=r(99988),h=r(33519),u=r(55609),p=r(75442),f=r(21400),d=r(70656),g=r(46135),m=r(39282);function y(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}y(t.exports,"CalendarDate",()=>n.CalendarDate),y(t.exports,"CalendarDateTime",()=>n.CalendarDateTime),y(t.exports,"Time",()=>n.Time),y(t.exports,"ZonedDateTime",()=>n.ZonedDateTime),y(t.exports,"GregorianCalendar",()=>i.GregorianCalendar),y(t.exports,"JapaneseCalendar",()=>o.JapaneseCalendar),y(t.exports,"BuddhistCalendar",()=>s.BuddhistCalendar),y(t.exports,"TaiwanCalendar",()=>a.TaiwanCalendar),y(t.exports,"PersianCalendar",()=>A.PersianCalendar),y(t.exports,"IndianCalendar",()=>l.IndianCalendar),y(t.exports,"IslamicCivilCalendar",()=>c.IslamicCivilCalendar),y(t.exports,"IslamicTabularCalendar",()=>c.IslamicTabularCalendar),y(t.exports,"IslamicUmalquraCalendar",()=>c.IslamicUmalquraCalendar),y(t.exports,"HebrewCalendar",()=>h.HebrewCalendar),y(t.exports,"EthiopicCalendar",()=>u.EthiopicCalendar),y(t.exports,"EthiopicAmeteAlemCalendar",()=>u.EthiopicAmeteAlemCalendar),y(t.exports,"CopticCalendar",()=>u.CopticCalendar),y(t.exports,"createCalendar",()=>p.createCalendar),y(t.exports,"toCalendarDate",()=>f.toCalendarDate),y(t.exports,"toCalendarDateTime",()=>f.toCalendarDateTime),y(t.exports,"toTime",()=>f.toTime),y(t.exports,"toCalendar",()=>f.toCalendar),y(t.exports,"toZoned",()=>f.toZoned),y(t.exports,"toTimeZone",()=>f.toTimeZone),y(t.exports,"toLocalTimeZone",()=>f.toLocalTimeZone),y(t.exports,"fromDate",()=>f.fromDate),y(t.exports,"fromDateToLocal",()=>f.fromDateToLocal),y(t.exports,"fromAbsolute",()=>f.fromAbsolute),y(t.exports,"isSameDay",()=>d.isSameDay),y(t.exports,"isSameMonth",()=>d.isSameMonth),y(t.exports,"isSameYear",()=>d.isSameYear),y(t.exports,"isEqualDay",()=>d.isEqualDay),y(t.exports,"isEqualMonth",()=>d.isEqualMonth),y(t.exports,"isEqualYear",()=>d.isEqualYear),y(t.exports,"isToday",()=>d.isToday),y(t.exports,"getDayOfWeek",()=>d.getDayOfWeek),y(t.exports,"now",()=>d.now),y(t.exports,"today",()=>d.today),y(t.exports,"getHoursInDay",()=>d.getHoursInDay),y(t.exports,"getLocalTimeZone",()=>d.getLocalTimeZone),y(t.exports,"setLocalTimeZone",()=>d.setLocalTimeZone),y(t.exports,"resetLocalTimeZone",()=>d.resetLocalTimeZone),y(t.exports,"startOfMonth",()=>d.startOfMonth),y(t.exports,"startOfWeek",()=>d.startOfWeek),y(t.exports,"startOfYear",()=>d.startOfYear),y(t.exports,"endOfMonth",()=>d.endOfMonth),y(t.exports,"endOfWeek",()=>d.endOfWeek),y(t.exports,"endOfYear",()=>d.endOfYear),y(t.exports,"getMinimumMonthInYear",()=>d.getMinimumMonthInYear),y(t.exports,"getMinimumDayInMonth",()=>d.getMinimumDayInMonth),y(t.exports,"getWeeksInMonth",()=>d.getWeeksInMonth),y(t.exports,"minDate",()=>d.minDate),y(t.exports,"maxDate",()=>d.maxDate),y(t.exports,"isWeekend",()=>d.isWeekend),y(t.exports,"isWeekday",()=>d.isWeekday),y(t.exports,"isEqualCalendar",()=>d.isEqualCalendar),y(t.exports,"parseDate",()=>g.parseDate),y(t.exports,"parseDateTime",()=>g.parseDateTime),y(t.exports,"parseTime",()=>g.parseTime),y(t.exports,"parseAbsolute",()=>g.parseAbsolute),y(t.exports,"parseAbsoluteToLocal",()=>g.parseAbsoluteToLocal),y(t.exports,"parseZonedDateTime",()=>g.parseZonedDateTime),y(t.exports,"parseDuration",()=>g.parseDuration),y(t.exports,"DateFormatter",()=>m.DateFormatter)},34639(t,e,r){var n=r(21400),i=r(13786);function o(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}o(t.exports,"add",()=>a),o(t.exports,"constrain",()=>h),o(t.exports,"subtract",()=>p),o(t.exports,"set",()=>f),o(t.exports,"setTime",()=>d),o(t.exports,"constrainTime",()=>g),o(t.exports,"addTime",()=>v),o(t.exports,"subtractTime",()=>b),o(t.exports,"cycleDate",()=>w),o(t.exports,"cycleTime",()=>x),o(t.exports,"addZoned",()=>C),o(t.exports,"subtractZoned",()=>_),o(t.exports,"cycleZoned",()=>E),o(t.exports,"setZoned",()=>S);const s=36e5;function a(t,e){let r=t.copy(),n="hour"in r?y(r,e):0;A(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,l(r),c(r),r.day+=7*(e.weeks||0),r.day+=e.days||0,r.day+=n,function(t){for(;t.day<1;)t.month--,l(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,l(t)}(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let i=r.calendar.getYearsInEra(r);if(r.year>i){var o,s;let t=null===(o=(s=r.calendar).isInverseEra)||void 0===o?void 0:o.call(s,r);r.year=i,r.month=t?1:r.calendar.getMonthsInYear(r),r.day=t?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let a=r.calendar.getMonthsInYear(r);return r.month>a&&(r.month=a,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function A(t,e){var r,n;(null===(r=(n=t.calendar).isInverseEra)||void 0===r?void 0:r.call(n,t))&&(e=-e),t.year+=e}function l(t){for(;t.month<1;)A(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,A(t,1)}function c(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function h(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),c(t)}function u(t){let e={};for(let r in t)"number"==typeof t[r]&&(e[r]=-t[r]);return e}function p(t,e){return a(t,u(e))}function f(t,e){let r=t.copy();return null!=e.era&&(r.era=e.era),null!=e.year&&(r.year=e.year),null!=e.month&&(r.month=e.month),null!=e.day&&(r.day=e.day),h(r),r}function d(t,e){let r=t.copy();return null!=e.hour&&(r.hour=e.hour),null!=e.minute&&(r.minute=e.minute),null!=e.second&&(r.second=e.second),null!=e.millisecond&&(r.millisecond=e.millisecond),g(r),r}function g(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function m(t,e){let r=t%e;return r<0&&(r+=e),r}function y(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,function(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=m(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=m(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=m(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=m(t.hour,24),e}(t)}function v(t,e){let r=t.copy();return y(r,e),r}function b(t,e){return v(t,u(e))}function w(t,e,r,n){let i=t.copy();switch(e){case"era":{let e=t.calendar.getEras(),o=e.indexOf(t.era);if(o<0)throw new Error("Invalid era: "+t.era);o=B(o,r,0,e.length-1,null==n?void 0:n.round),i.era=e[o],h(i);break}case"year":var o,s;(null===(o=(s=i.calendar).isInverseEra)||void 0===o?void 0:o.call(s,i))&&(r=-r),i.year=B(t.year,r,-1/0,9999,null==n?void 0:n.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,t);break;case"month":i.month=B(t.month,r,1,t.calendar.getMonthsInYear(t),null==n?void 0:n.round);break;case"day":i.day=B(t.day,r,1,t.calendar.getDaysInMonth(t),null==n?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(i),h(i),i}function x(t,e,r,n){let i=t.copy();switch(e){case"hour":{let e=t.hour,o=0,s=23;if(12===(null==n?void 0:n.hourCycle)){let t=e>=12;o=t?12:0,s=t?23:11}i.hour=B(e,r,o,s,null==n?void 0:n.round);break}case"minute":i.minute=B(t.minute,r,0,59,null==n?void 0:n.round);break;case"second":i.second=B(t.second,r,0,59,null==n?void 0:n.round);break;case"millisecond":i.millisecond=B(t.millisecond,r,0,999,null==n?void 0:n.round);break;default:throw new Error("Unsupported field "+e)}return i}function B(t,e,r,n,i=!1){if(i){(t+=Math.sign(e))<r&&(t=n);let i=Math.abs(e);(t=e>0?Math.ceil(t/i)*i:Math.floor(t/i)*i)>n&&(t=r)}else(t+=e)<r?t=n-(r-t-1):t>n&&(t=r+(t-n-1));return t}function C(t,e){let r;if(null!=e.years&&0!==e.years||null!=e.months&&0!==e.months||null!=e.weeks&&0!==e.weeks||null!=e.days&&0!==e.days){let i=a((0,n.toCalendarDateTime)(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});r=(0,n.toAbsolute)(i,t.timeZone)}else r=(0,n.epochFromDate)(t)-t.offset;r+=e.milliseconds||0,r+=1e3*(e.seconds||0),r+=6e4*(e.minutes||0),r+=36e5*(e.hours||0);let i=(0,n.fromAbsolute)(r,t.timeZone);return(0,n.toCalendar)(i,t.calendar)}function _(t,e){return C(t,u(e))}function E(t,e,r,o){switch(e){case"hour":{let e=0,a=23;if(12===(null==o?void 0:o.hourCycle)){let r=t.hour>=12;e=r?12:0,a=r?23:11}let A=(0,n.toCalendarDateTime)(t),l=(0,n.toCalendar)(d(A,{hour:e}),new(0,i.GregorianCalendar)),c=[(0,n.toAbsolute)(l,t.timeZone,"earlier"),(0,n.toAbsolute)(l,t.timeZone,"later")].filter(e=>(0,n.fromAbsolute)(e,t.timeZone).day===l.day)[0],h=(0,n.toCalendar)(d(A,{hour:a}),new(0,i.GregorianCalendar)),u=[(0,n.toAbsolute)(h,t.timeZone,"earlier"),(0,n.toAbsolute)(h,t.timeZone,"later")].filter(e=>(0,n.fromAbsolute)(e,t.timeZone).day===h.day).pop(),p=(0,n.epochFromDate)(t)-t.offset,f=Math.floor(p/s),g=p%s;return p=B(f,r,Math.floor(c/s),Math.floor(u/s),null==o?void 0:o.round)*s+g,(0,n.toCalendar)((0,n.fromAbsolute)(p,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return x(t,e,r,o);case"era":case"year":case"month":case"day":{let i=w((0,n.toCalendarDateTime)(t),e,r,o),s=(0,n.toAbsolute)(i,t.timeZone);return(0,n.toCalendar)((0,n.fromAbsolute)(s,t.timeZone),t.calendar)}default:throw new Error("Unsupported field "+e)}}function S(t,e,r){let i=(0,n.toCalendarDateTime)(t),o=d(f(i,e),e);if(0===o.compare(i))return t;let s=(0,n.toAbsolute)(o,t.timeZone,r);return(0,n.toCalendar)((0,n.fromAbsolute)(s,t.timeZone),t.calendar)}},70656(t,e,r){var n=r(21400),i=r(32728);function o(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}function s(t,e){return e=(0,n.toCalendar)(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function a(t,e){return e=(0,n.toCalendar)(e,t.calendar),t=I(t),e=I(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function A(t,e){return e=(0,n.toCalendar)(e,t.calendar),t=T(t),e=T(e),t.era===e.era&&t.year===e.year}function l(t,e){return u(t.calendar,e.calendar)&&s(t,e)}function c(t,e){return u(t.calendar,e.calendar)&&a(t,e)}function h(t,e){return u(t.calendar,e.calendar)&&A(t,e)}function u(t,e){var r,n,i,o;return null!==(o=null!==(i=null===(r=t.isEqual)||void 0===r?void 0:r.call(t,e))&&void 0!==i?i:null===(n=e.isEqual)||void 0===n?void 0:n.call(e,t))&&void 0!==o?o:t.identifier===e.identifier}function p(t,e){return s(t,m(e))}o(t.exports,"isSameDay",()=>s),o(t.exports,"isSameMonth",()=>a),o(t.exports,"startOfMonth",()=>I),o(t.exports,"isSameYear",()=>A),o(t.exports,"startOfYear",()=>T),o(t.exports,"isEqualDay",()=>l),o(t.exports,"isEqualCalendar",()=>u),o(t.exports,"isEqualMonth",()=>c),o(t.exports,"isEqualYear",()=>h),o(t.exports,"isToday",()=>p),o(t.exports,"today",()=>m),o(t.exports,"getDayOfWeek",()=>d),o(t.exports,"now",()=>g),o(t.exports,"compareDate",()=>y),o(t.exports,"compareTime",()=>v),o(t.exports,"getHoursInDay",()=>w),o(t.exports,"getLocalTimeZone",()=>C),o(t.exports,"setLocalTimeZone",()=>_),o(t.exports,"resetLocalTimeZone",()=>E),o(t.exports,"isLocalTimeZoneOverridden",()=>S),o(t.exports,"endOfMonth",()=>F),o(t.exports,"endOfYear",()=>k),o(t.exports,"getMinimumMonthInYear",()=>L),o(t.exports,"getMinimumDayInMonth",()=>P),o(t.exports,"startOfWeek",()=>M),o(t.exports,"endOfWeek",()=>D),o(t.exports,"getWeeksInMonth",()=>Q),o(t.exports,"minDate",()=>R),o(t.exports,"maxDate",()=>j),o(t.exports,"isWeekend",()=>V),o(t.exports,"isWeekday",()=>z);const f={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function d(t,e,r){let n=t.calendar.toJulianDay(t),o=r?f[r]:function(t){let e=O.get(t);if(!e){if(Intl.Locale){let r=new Intl.Locale(t);if("getWeekInfo"in r&&(e=r.getWeekInfo(),e))return O.set(t,e),e.firstDay}let r=U(t);if(t.includes("-fw-")){let r=t.split("-fw-")[1].split("-")[0];e="mon"===r?{firstDay:1}:"tue"===r?{firstDay:2}:"wed"===r?{firstDay:3}:"thu"===r?{firstDay:4}:"fri"===r?{firstDay:5}:"sat"===r?{firstDay:6}:{firstDay:0}}else e=t.includes("-ca-iso8601")?{firstDay:1}:{firstDay:r&&i.weekStartData[r]||0};O.set(t,e)}return e.firstDay}(e),s=Math.ceil(n+1-o)%7;return s<0&&(s+=7),s}function g(t){return(0,n.fromAbsolute)(Date.now(),t)}function m(t){return(0,n.toCalendarDate)(g(t))}function y(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function v(t,e){return b(t)-b(e)}function b(t){return 36e5*t.hour+6e4*t.minute+1e3*t.second+t.millisecond}function w(t,e){let r=(0,n.toAbsolute)(t,e),i=t.add({days:1});return((0,n.toAbsolute)(i,e)-r)/36e5}let x=null,B=!1;function C(){return null==x&&(x=(new Intl.DateTimeFormat).resolvedOptions().timeZone),x}function _(t){B=!0,x=t}function E(){B=!1,x=null}function S(){return B}function I(t){return t.subtract({days:t.day-1})}function F(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function T(t){return I(t.subtract({months:t.month-1}))}function k(t){return F(t.add({months:t.calendar.getMonthsInYear(t)-t.month}))}function L(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function P(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function M(t,e,r){let n=d(t,e,r);return t.subtract({days:n})}function D(t,e,r){return M(t,e,r).add({days:6})}const N=new Map,O=new Map;function U(t){if(Intl.Locale){let e=N.get(t);return e||(e=new Intl.Locale(t).maximize().region,e&&N.set(t,e)),e}let e=t.split("-")[1];return"u"===e?void 0:e}function Q(t,e,r){let n=t.calendar.getDaysInMonth(t);return Math.ceil((d(I(t),e,r)+n)/7)}function R(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function j(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}const H={AF:[4,5],AE:[5,6],BH:[5,6],DZ:[5,6],EG:[5,6],IL:[5,6],IQ:[5,6],IR:[5,5],JO:[5,6],KW:[5,6],LY:[5,6],OM:[5,6],QA:[5,6],SA:[5,6],SD:[5,6],SY:[5,6],YE:[5,6]};function V(t,e){let r=t.calendar.toJulianDay(t),n=Math.ceil(r+1)%7;n<0&&(n+=7);let i=U(e),[o,s]=H[i]||[6,0];return n===o||n===s}function z(t,e){return!V(t,e)}},46135(t,e,r){var n=r(1626),i=r(21400),o=r(70656),s=r(13786);function a(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}a(t.exports,"parseTime",()=>g),a(t.exports,"parseDate",()=>m),a(t.exports,"parseDateTime",()=>y),a(t.exports,"parseZonedDateTime",()=>v),a(t.exports,"dateTimeToString",()=>_),a(t.exports,"parseAbsolute",()=>b),a(t.exports,"parseAbsoluteToLocal",()=>w),a(t.exports,"timeToString",()=>B),a(t.exports,"dateToString",()=>C),a(t.exports,"zonedDateTimeToString",()=>S),a(t.exports,"parseDuration",()=>I);const A=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,l=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,c=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,h=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::?(\d{2}))?(?::?(\d{2}))?)?\[(.*?)\]$/,u=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/,p=/^((?<negative>-)|\+)?P((?<years>\d*)Y)?((?<months>\d*)M)?((?<weeks>\d*)W)?((?<days>\d*)D)?((?<time>T)((?<hours>\d*[.,]?\d{1,9})H)?((?<minutes>\d*[.,]?\d{1,9})M)?((?<seconds>\d*[.,]?\d{1,9})S)?)?$/,f=["hours","minutes","seconds"],d=["years","months","weeks","days",...f];function g(t){let e=t.match(A);if(!e)throw new Error("Invalid ISO 8601 time string: "+t);return new(0,n.Time)(x(e[1],0,23),e[2]?x(e[2],0,59):0,e[3]?x(e[3],0,59):0,e[4]?1e3*x(e[4],0,1/0):0)}function m(t){let e=t.match(l);if(!e){if(u.test(t))throw new Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`);throw new Error("Invalid ISO 8601 date string: "+t)}let r=new(0,n.CalendarDate)(x(e[1],0,9999),x(e[2],1,12),1);return r.day=x(e[3],1,r.calendar.getDaysInMonth(r)),r}function y(t){let e=t.match(c);if(!e){if(u.test(t))throw new Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`);throw new Error("Invalid ISO 8601 date time string: "+t)}let r=x(e[1],-9999,9999),i=r<1?"BC":"AD",o=new(0,n.CalendarDateTime)(i,r<1?1-r:r,x(e[2],1,12),1,e[4]?x(e[4],0,23):0,e[5]?x(e[5],0,59):0,e[6]?x(e[6],0,59):0,e[7]?1e3*x(e[7],0,1/0):0);return o.day=x(e[3],0,o.calendar.getDaysInMonth(o)),o}function v(t,e){let r=t.match(h);if(!r)throw new Error("Invalid ISO 8601 date time string: "+t);let o=x(r[1],-9999,9999),s=o<1?"BC":"AD",a=new(0,n.ZonedDateTime)(s,o<1?1-o:o,x(r[2],1,12),1,r[11],0,r[4]?x(r[4],0,23):0,r[5]?x(r[5],0,59):0,r[6]?x(r[6],0,59):0,r[7]?1e3*x(r[7],0,1/0):0);a.day=x(r[3],0,a.calendar.getDaysInMonth(a));let A,l=(0,i.toCalendarDateTime)(a);if(r[8]){let t=x(r[8],-23,23);var c,u;if(a.offset=Math.sign(t)*(36e5*Math.abs(t)+6e4*x(null!==(c=r[9])&&void 0!==c?c:"0",0,59)+1e3*x(null!==(u=r[10])&&void 0!==u?u:"0",0,59)),A=(0,i.epochFromDate)(a)-a.offset,!(0,i.possibleAbsolutes)(l,a.timeZone).includes(A))throw new Error(`Offset ${E(a.offset)} is invalid for ${_(a)} in ${a.timeZone}`)}else A=(0,i.toAbsolute)((0,i.toCalendarDateTime)(l),a.timeZone,e);return(0,i.fromAbsolute)(A,a.timeZone)}function b(t,e){let r=t.match(u);if(!r)throw new Error("Invalid ISO 8601 date time string: "+t);let o=x(r[1],-9999,9999),s=o<1?"BC":"AD",a=new(0,n.ZonedDateTime)(s,o<1?1-o:o,x(r[2],1,12),1,e,0,r[4]?x(r[4],0,23):0,r[5]?x(r[5],0,59):0,r[6]?x(r[6],0,59):0,r[7]?1e3*x(r[7],0,1/0):0);var A;return a.day=x(r[3],0,a.calendar.getDaysInMonth(a)),r[8]&&(a.offset=36e5*x(r[8],-23,23)+6e4*x(null!==(A=r[9])&&void 0!==A?A:"0",0,59)),(0,i.toTimeZone)(a,e)}function w(t){return b(t,(0,o.getLocalTimeZone)())}function x(t,e,r){let n=Number(t);if(n<e||n>r)throw new RangeError(`Value out of range: ${e} <= ${n} <= ${r}`);return n}function B(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function C(t){let e,r=(0,i.toCalendar)(t,new(0,s.GregorianCalendar));return e="BC"===r.era?1===r.year?"0000":"-"+String(Math.abs(1-r.year)).padStart(6,"00"):String(r.year).padStart(4,"0"),`${e}-${String(r.month).padStart(2,"0")}-${String(r.day).padStart(2,"0")}`}function _(t){return`${C(t)}T${B(t)}`}function E(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let r=Math.floor(t/36e5),n=Math.floor(t%36e5/6e4),i=Math.floor(t%36e5%6e4/1e3),o=`${e}${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`;return 0!==i&&(o+=`:${String(i).padStart(2,"0")}`),o}function S(t){return`${_(t)}${E(t.offset)}[${t.timeZone}]`}function I(t){var e,r,n,i,o,s,a,A,l;const c=t.match(p);if(!c)throw new Error(`Invalid ISO 8601 Duration string: ${t}`);const h=(e,r)=>{if(!e)return 0;try{return(r?-1:1)*Number(e.replace(",","."))}catch{throw new Error(`Invalid ISO 8601 Duration string: ${t}`)}},u=!!(null===(e=c.groups)||void 0===e?void 0:e.negative),g=d.some(t=>{var e;return null===(e=c.groups)||void 0===e?void 0:e[t]});if(!g)throw new Error(`Invalid ISO 8601 Duration string: ${t}`);if(null===(r=c.groups)||void 0===r?void 0:r.time){const e=f.some(t=>{var e;return null===(e=c.groups)||void 0===e?void 0:e[t]});if(!e)throw new Error(`Invalid ISO 8601 Duration string: ${t}`)}const m={years:h(null===(n=c.groups)||void 0===n?void 0:n.years,u),months:h(null===(i=c.groups)||void 0===i?void 0:i.months,u),weeks:h(null===(o=c.groups)||void 0===o?void 0:o.weeks,u),days:h(null===(s=c.groups)||void 0===s?void 0:s.days,u),hours:h(null===(a=c.groups)||void 0===a?void 0:a.hours,u),minutes:h(null===(A=c.groups)||void 0===A?void 0:A.minutes,u),seconds:h(null===(l=c.groups)||void 0===l?void 0:l.seconds,u)};if(void 0!==m.hours&&m.hours%1!=0&&(m.minutes||m.seconds))throw new Error(`Invalid ISO 8601 Duration string: ${t} - only the smallest unit can be fractional`);if(void 0!==m.minutes&&m.minutes%1!=0&&m.seconds)throw new Error(`Invalid ISO 8601 Duration string: ${t} - only the smallest unit can be fractional`);return m}},25563(t){var e,r;function n(t,e){return t-e*Math.floor(t/e)}e=t.exports,r=()=>n,Object.defineProperty(e,"mod",{get:r,set:void 0,enumerable:!0,configurable:!0})},32728(t){var e,r;e=t.exports,r=()=>n,Object.defineProperty(e,"weekStartData",{get:r,set:void 0,enumerable:!0,configurable:!0});const n={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1}},25179(t){var e,r;e=t.exports,r=()=>n,Object.defineProperty(e,"MessageDictionary",{get:r,set:void 0,enumerable:!0,configurable:!0});class n{getStringForLocale(t,e){let r=this.messages[e];r||(r=function(t,e,r="en-US"){if(e[t])return e[t];let n=function(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}(t);if(e[n])return e[n];for(let t in e)if(t.startsWith(n+"-"))return e[t];return e[r]}(e,this.messages,this.defaultLocale),this.messages[e]=r);let n=r[t];if(!n)throw new Error(`Could not find intl message ${t} in ${e} locale`);return n}constructor(t,e="en-US"){this.messages=Object.fromEntries(Object.entries(t).filter(([,t])=>t)),this.defaultLocale=e}}},22035(t,e,r){var n,i,o=r(81133);n=t.exports,i=()=>s,Object.defineProperty(n,"MessageFormatter",{get:i,set:void 0,enumerable:!0,configurable:!0});class s{format(t,e){let r=this.cache[t];if(!r){let e=this.messages.getStringForLocale(t,this.locale);if(!e)throw new Error(`Could not find intl message ${t} in ${this.locale} locale`);r=new((n=o)&&n.__esModule?n.default:n)(e,this.locale),this.cache[t]=r}var n;let i;return e&&(i=Object.keys(e).reduce((t,r)=>(t[r]=null!=e[r]&&e[r],t),{})),r.format(i)}constructor(t,e){this.locale=t,this.messages=e,this.cache={}}}},17700(t,e,r){var n=r(25179),i=r(22035);function o(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}o(t.exports,"MessageDictionary",()=>n.MessageDictionary),o(t.exports,"MessageFormatter",()=>i.MessageFormatter)},48943(t){var e,r;e=t.exports,r=()=>a,Object.defineProperty(e,"NumberFormatter",{get:r,set:void 0,enumerable:!0,configurable:!0});let n=new Map,i=!1;try{i="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let o=!1;try{o="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}const s={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class a{format(t){let e="";if(e=i||null==this.options.signDisplay?this.numberFormatter.format(t):function(t,e,r){if("auto"===e)return t.format(r);if("never"===e)return t.format(Math.abs(r));{let n=!1;if("always"===e?n=r>0||Object.is(r,0):"exceptZero"===e&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let e=t.format(-r),n=t.format(r),i=e.replace(n,"").replace(/\u200e|\u061C/,"");return 1!==[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),e.replace(n,"!!!").replace(i,"+").replace("!!!",n)}return t.format(r)}}(this.numberFormatter,this.options.signDisplay,t),"unit"===this.options.style&&!o){var r;let{unit:t,unitDisplay:n="short",locale:i}=this.resolvedOptions();if(!t)return e;let o=null===(r=s[t])||void 0===r?void 0:r[n];e+=o[i]||o.default}return e}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,e){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(e)}`}formatRangeToParts(t,e){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),n=this.numberFormatter.formatToParts(e);return[...r.map(t=>({...t,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(t=>({...t,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return i||null==this.options.signDisplay||(t={...t,signDisplay:this.options.signDisplay}),o||"unit"!==this.options.style||(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,e={}){this.numberFormatter=function(t,e={}){let{numberingSystem:r}=e;if(r&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${r}`),"unit"===e.style&&!o){var i;let{unit:t,unitDisplay:r="short"}=e;if(!t)throw new Error('unit option must be provided with style: "unit"');if(!(null===(i=s[t])||void 0===i?void 0:i[r]))throw new Error(`Unsupported unit ${t} with unitDisplay = ${r}`);e={...e,style:"decimal"}}let a=t+(e?Object.entries(e).sort((t,e)=>t[0]<e[0]?-1:1).join():"");if(n.has(a))return n.get(a);let A=new Intl.NumberFormat(t,e);return n.set(a,A),A}(t,e),this.options=e}}},77126(t,e,r){var n,i,o=r(48943);n=t.exports,i=()=>A,Object.defineProperty(n,"NumberParser",{get:i,set:void 0,enumerable:!0,configurable:!0});const s=new RegExp("^.*\\(.*\\).*$"),a=["latn","arab","hanidec","deva","beng","fullwide"];class A{parse(t){return c(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,e,r){return c(this.locale,this.options,t).isValidPartialNumber(t,e,r)}getNumberingSystem(t){return c(this.locale,this.options,t).options.numberingSystem}constructor(t,e={}){this.locale=t,this.options=e}}const l=new Map;function c(t,e,r){let n=h(t,e);if(!t.includes("-nu-")&&!n.isValidPartialNumber(r))for(let i of a)if(i!==n.options.numberingSystem){let n=h(t+(t.includes("-u-")?"-nu-":"-u-nu-")+i,e);if(n.isValidPartialNumber(r))return n}return n}function h(t,e){let r=t+(e?Object.entries(e).sort((t,e)=>t[0]<e[0]?-1:1).join():""),n=l.get(r);return n||(n=new u(t,e),l.set(r,n)),n}class u{parse(t){let e=this.sanitize(t);if(this.symbols.group&&(e=d(e,this.symbols.group,"")),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(e=e.replace(this.symbols.minusSign,"-")),e=e.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let t=e.indexOf("-");e=e.replace("-",""),e=e.replace("+","");let r=e.indexOf(".");-1===r&&(r=e.length),e=e.replace(".",""),e=r-2==0?`0.${e}`:r-2==-1?`0.0${e}`:r-2==-2?"0.00":`${e.slice(0,r-2)}.${e.slice(r-2)}`,t>-1&&(e=`-${e}`)}let r=e?+e:NaN;if(isNaN(r))return NaN;if("percent"===this.options.style){var n,i;let t={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)+2,20),maximumFractionDigits:Math.min((null!==(i=this.options.maximumFractionDigits)&&void 0!==i?i:0)+2,20)};return new A(this.locale,t).parse(new(0,o.NumberFormatter)(this.locale,t).format(r))}return"accounting"===this.options.currencySign&&s.test(t)&&(r*=-1),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(t=(t=t.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(t=d(t,".",this.symbols.group))),"’"===this.symbols.group&&t.includes("'")&&(t=d(t,"'",this.symbols.group)),"fr-FR"===this.options.locale&&this.symbols.group&&(t=d(t," ",this.symbols.group),t=d(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,e=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&e<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),!(this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits||(this.symbols.group&&(t=d(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),0!==t.length))}constructor(t,e={}){var r,n;this.locale=t,1!==e.roundingIncrement&&null!=e.roundingIncrement&&(null==e.maximumFractionDigits&&null==e.minimumFractionDigits?(e.maximumFractionDigits=0,e.minimumFractionDigits=0):null==e.maximumFractionDigits?e.maximumFractionDigits=e.minimumFractionDigits:null==e.minimumFractionDigits&&(e.minimumFractionDigits=e.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,e),this.options=this.formatter.resolvedOptions(),this.symbols=function(t,e,r,n){var i,o,s,a;let A=new Intl.NumberFormat(t,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),l=A.formatToParts(-10000.111),c=A.formatToParts(10000.111),h=f.map(t=>A.formatToParts(t));var u;let d=null!==(u=null===(i=l.find(t=>"minusSign"===t.type))||void 0===i?void 0:i.value)&&void 0!==u?u:"-",m=null===(o=c.find(t=>"plusSign"===t.type))||void 0===o?void 0:o.value;m||"exceptZero"!==(null==n?void 0:n.signDisplay)&&"always"!==(null==n?void 0:n.signDisplay)||(m="+");let y=null===(s=new Intl.NumberFormat(t,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(t=>"decimal"===t.type))||void 0===s?void 0:s.value,v=null===(a=l.find(t=>"group"===t.type))||void 0===a?void 0:a.value,b=l.filter(t=>!p.has(t.type)).map(t=>g(t.value)),w=h.flatMap(t=>t.filter(t=>!p.has(t.type)).map(t=>g(t.value))),x=[...new Set([...b,...w])].sort((t,e)=>e.length-t.length),B=0===x.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${x.join("|")}|[\\p{White_Space}]`,"gu"),C=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),_=new Map(C.map((t,e)=>[t,e]));return{minusSign:d,plusSign:m,decimal:y,group:v,literals:B,numeral:new RegExp(`[${C.join("")}]`,"g"),index:t=>String(_.get(t))}}(t,this.formatter,this.options,e),"percent"===this.options.style&&((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)>18||(null!==(n=this.options.maximumFractionDigits)&&void 0!==n?n:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const p=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),f=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function d(t,e,r){return t.replaceAll?t.replaceAll(e,r):t.split(e).join(r)}function g(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},74849(t,e,r){var n=r(48943),i=r(77126);function o(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}o(t.exports,"NumberFormatter",()=>n.NumberFormatter),o(t.exports,"NumberParser",()=>i.NumberParser)},66802(t){var e,r;e=t.exports,r=()=>s,Object.defineProperty(e,"LocalizedStringDictionary",{get:r,set:void 0,enumerable:!0,configurable:!0});const n=Symbol.for("react-aria.i18n.locale"),i=Symbol.for("react-aria.i18n.strings");let o;class s{getStringForLocale(t,e){let r=this.getStringsForLocale(e)[t];if(!r)throw new Error(`Could not find intl message ${t} in ${e} locale`);return r}getStringsForLocale(t){let e=this.strings[t];return e||(e=function(t,e,r="en-US"){if(e[t])return e[t];let n=function(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}(t);if(e[n])return e[n];for(let t in e)if(t.startsWith(n+"-"))return e[t];return e[r]}(t,this.strings,this.defaultLocale),this.strings[t]=e),e}static getGlobalDictionaryForPackage(t){if("undefined"==typeof window)return null;let e=window[n];if(void 0===o){let t=window[i];if(!t)return null;o={};for(let r in t)o[r]=new s({[e]:t[r]},e)}let r=null==o?void 0:o[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,e="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,t])=>t)),this.defaultLocale=e}}},95808(t){var e,r;e=t.exports,r=()=>o,Object.defineProperty(e,"LocalizedStringFormatter",{get:r,set:void 0,enumerable:!0,configurable:!0});const n=new Map,i=new Map;class o{format(t,e){let r=this.strings.getStringForLocale(t,this.locale);return"function"==typeof r?r(e,this):r}plural(t,e,r="cardinal"){let i=e["="+t];if(i)return"function"==typeof i?i():i;let o=this.locale+":"+r,s=n.get(o);return s||(s=new Intl.PluralRules(this.locale,{type:r}),n.set(o,s)),i=e[s.select(t)]||e.other,"function"==typeof i?i():i}number(t){let e=i.get(this.locale);return e||(e=new Intl.NumberFormat(this.locale),i.set(this.locale,e)),e.format(t)}select(t,e){let r=t[e]||t.other;return"function"==typeof r?r():r}constructor(t,e){this.locale=t,this.strings=e}}},83604(t,e,r){var n=r(66802),i=r(95808);function o(t,e,r,n){Object.defineProperty(t,e,{get:r,set:n,enumerable:!0,configurable:!0})}o(t.exports,"LocalizedStringDictionary",()=>n.LocalizedStringDictionary),o(t.exports,"LocalizedStringFormatter",()=>i.LocalizedStringFormatter)},3892(t,e,r){"use strict";r.d(e,{A:()=>x});var n=r(67311),i=r(46980),o=r(42761),s=r(54818),a=r(22155),A=(r(77880),r(35284)),l=r(20051),c=r(64680),h=r(90905);function u(t,e){var r=t.timeout,n=t.style,i=void 0===n?{}:n;return{duration:i.transitionDuration||"number"==typeof r?r:r[e.mode]||0,delay:i.transitionDelay}}var p=r(14925),f=r(57919),d=r(41294),g=a.forwardRef(function(t,e){var r=t.children,i=t.classes,c=t.className,g=t.collapsedHeight,m=t.collapsedSize,y=void 0===m?"0px":m,v=t.component,b=void 0===v?"div":v,w=t.disableStrictModeCompat,x=void 0!==w&&w,B=t.in,C=t.onEnter,_=t.onEntered,E=t.onEntering,S=t.onExit,I=t.onExited,F=t.onExiting,T=t.style,k=t.timeout,L=void 0===k?h.p0.standard:k,P=t.TransitionComponent,M=void 0===P?l.Ay:P,D=(0,s.A)(t,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),N=(0,p.A)()||f.A,O=a.useRef(),U=a.useRef(null),Q=a.useRef(),R="number"==typeof(g||y)?"".concat(g||y,"px"):g||y;a.useEffect(function(){return function(){clearTimeout(O.current)}},[]);var j=N.unstable_strictMode&&!x,H=a.useRef(null),V=(0,d.A)(e,j?H:void 0),z=function(t){return function(e,r){if(t){var n=j?[H.current,e]:[e,r],i=(0,o.A)(n,2),s=i[0],a=i[1];void 0===a?t(s):t(s,a)}}},G=z(function(t,e){t.style.height=R,C&&C(t,e)}),K=z(function(t,e){var r=U.current?U.current.clientHeight:0,n=u({style:T,timeout:L},{mode:"enter"}).duration;if("auto"===L){var i=N.transitions.getAutoHeightDuration(r);t.style.transitionDuration="".concat(i,"ms"),Q.current=i}else t.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");t.style.height="".concat(r,"px"),E&&E(t,e)}),q=z(function(t,e){t.style.height="auto",_&&_(t,e)}),W=z(function(t){var e=U.current?U.current.clientHeight:0;t.style.height="".concat(e,"px"),S&&S(t)}),Y=z(I),X=z(function(t){var e=U.current?U.current.clientHeight:0,r=u({style:T,timeout:L},{mode:"exit"}).duration;if("auto"===L){var n=N.transitions.getAutoHeightDuration(e);t.style.transitionDuration="".concat(n,"ms"),Q.current=n}else t.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");t.style.height=R,F&&F(t)});return a.createElement(M,(0,n.A)({in:B,onEnter:G,onEntered:q,onEntering:K,onExit:W,onExited:Y,onExiting:X,addEndListener:function(t,e){var r=j?t:e;"auto"===L&&(O.current=setTimeout(r,Q.current||0))},nodeRef:j?H:void 0,timeout:"auto"===L?null:L},D),function(t,e){return a.createElement(b,(0,n.A)({className:(0,A.A)(i.root,i.container,c,{entered:i.entered,exited:!B&&"0px"===R&&i.hidden}[t]),style:(0,n.A)({minHeight:R},T),ref:V},e),a.createElement("div",{className:i.wrapper,ref:U},a.createElement("div",{className:i.wrapperInner},r)))})});g.muiSupportAuto=!0;const m=(0,c.A)(function(t){return{root:{height:0,overflow:"hidden",transition:t.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}},{name:"MuiCollapse"})(g);var y=a.forwardRef(function(t,e){var r=t.classes,i=t.className,o=t.component,l=void 0===o?"div":o,c=t.square,h=void 0!==c&&c,u=t.elevation,p=void 0===u?1:u,f=t.variant,d=void 0===f?"elevation":f,g=(0,s.A)(t,["classes","className","component","square","elevation","variant"]);return a.createElement(l,(0,n.A)({className:(0,A.A)(r.root,i,"outlined"===d?r.outlined:r["elevation".concat(p)],!h&&r.rounded),ref:e},g))});const v=(0,c.A)(function(t){var e={};return t.shadows.forEach(function(t,r){e["elevation".concat(r)]={boxShadow:t}}),(0,n.A)({root:{backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},rounded:{borderRadius:t.shape.borderRadius},outlined:{border:"1px solid ".concat(t.palette.divider)}},e)},{name:"MuiPaper"})(y);var b=r(60766),w=a.forwardRef(function(t,e){var r,l,c,h,u,p,f,d=t.children,g=t.classes,y=t.className,w=t.defaultExpanded,x=void 0!==w&&w,B=t.disabled,C=void 0!==B&&B,_=t.expanded,E=t.onChange,S=t.square,I=void 0!==S&&S,F=t.TransitionComponent,T=void 0===F?m:F,k=t.TransitionProps,L=(0,s.A)(t,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),P=(l=(r={controlled:_,default:x,name:"Accordion",state:"expanded"}).controlled,c=r.default,h=a.useRef(void 0!==l).current,p=(u=a.useState(c))[0],f=u[1],[h?l:p,a.useCallback(function(t){h||f(t)},[])]),M=(0,o.A)(P,2),D=M[0],N=M[1],O=a.useCallback(function(t){N(!D),E&&E(t,!D)},[D,E,N]),U=a.Children.toArray(d),Q=(0,i.A)(U),R=Q[0],j=Q.slice(1),H=a.useMemo(function(){return{expanded:D,disabled:C,toggle:O}},[D,C,O]);return a.createElement(v,(0,n.A)({className:(0,A.A)(g.root,y,D&&g.expanded,C&&g.disabled,!I&&g.rounded),ref:e,square:I},L),a.createElement(b.A.Provider,{value:H},R),a.createElement(T,(0,n.A)({in:D,timeout:"auto"},k),a.createElement("div",{"aria-labelledby":R.props.id,id:R.props["aria-controls"],role:"region"},j)))});const x=(0,c.A)(function(t){var e={duration:t.transitions.duration.shortest};return{root:{position:"relative",transition:t.transitions.create(["margin"],e),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:t.palette.divider,transition:t.transitions.create(["opacity","background-color"],e)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:t.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:t.shape.borderRadius,borderTopRightRadius:t.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:t.shape.borderRadius,borderBottomRightRadius:t.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}},{name:"MuiAccordion"})(w)},60766(t,e,r){"use strict";r.d(e,{A:()=>n});const n=r(22155).createContext({})},41991(t,e,r){"use strict";r.d(e,{A:()=>l});var n=r(67311),i=r(54818),o=r(22155),s=r(35284),a=r(64680),A=o.forwardRef(function(t,e){var r=t.classes,a=t.className,A=(0,i.A)(t,["classes","className"]);return o.createElement("div",(0,n.A)({className:(0,s.A)(r.root,a),ref:e},A))});const l=(0,a.A)(function(t){return{root:{display:"flex",padding:t.spacing(1,2,2)}}},{name:"MuiAccordionDetails"})(A)},77654(t,e,r){"use strict";r.d(e,{A:()=>O});var n=r(67311),i=r(54818),o=r(22155),s=r(35284),a=r(70316),A=r(41294),l="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function c(t){var e=o.useRef(t);return l(function(){e.current=t}),o.useCallback(function(){return e.current.apply(void 0,arguments)},[])}var h=r(64680),u=!0,p=!1,f=null,d={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function g(t){t.metaKey||t.altKey||t.ctrlKey||(u=!0)}function m(){u=!1}function y(){"hidden"===this.visibilityState&&p&&(u=!0)}function v(t){var e,r,n,i=t.target;try{return i.matches(":focus-visible")}catch(t){}return u||(r=(e=i).type,!("INPUT"!==(n=e.tagName)||!d[r]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable)}function b(){p=!0,window.clearTimeout(f),f=window.setTimeout(function(){p=!1},100)}function w(){return{isFocusVisible:v,onBlurVisible:b,ref:o.useCallback(function(t){var e,r=a.findDOMNode(t);null!=r&&((e=r.ownerDocument).addEventListener("keydown",g,!0),e.addEventListener("mousedown",m,!0),e.addEventListener("pointerdown",m,!0),e.addEventListener("touchstart",m,!0),e.addEventListener("visibilitychange",y,!0))},[])}}var x=r(58337),B=r(48994),C="undefined"==typeof window?o.useEffect:o.useLayoutEffect;const _=function(t){var e=t.classes,r=t.pulsate,n=void 0!==r&&r,i=t.rippleX,a=t.rippleY,A=t.rippleSize,l=t.in,h=t.onExited,u=void 0===h?function(){}:h,p=t.timeout,f=o.useState(!1),d=f[0],g=f[1],m=(0,s.A)(e.ripple,e.rippleVisible,n&&e.ripplePulsate),y={width:A,height:A,top:-A/2+a,left:-A/2+i},v=(0,s.A)(e.child,d&&e.childLeaving,n&&e.childPulsate),b=c(u);return C(function(){if(!l){g(!0);var t=setTimeout(b,p);return function(){clearTimeout(t)}}},[b,l,p]),o.createElement("span",{className:m,style:y},o.createElement("span",{className:v}))};var E=o.forwardRef(function(t,e){var r=t.center,a=void 0!==r&&r,A=t.classes,l=t.className,c=(0,i.A)(t,["center","classes","className"]),h=o.useState([]),u=h[0],p=h[1],f=o.useRef(0),d=o.useRef(null);o.useEffect(function(){d.current&&(d.current(),d.current=null)},[u]);var g=o.useRef(!1),m=o.useRef(null),y=o.useRef(null),v=o.useRef(null);o.useEffect(function(){return function(){clearTimeout(m.current)}},[]);var b=o.useCallback(function(t){var e=t.pulsate,r=t.rippleX,n=t.rippleY,i=t.rippleSize,s=t.cb;p(function(t){return[].concat((0,x.A)(t),[o.createElement(_,{key:f.current,classes:A,timeout:550,pulsate:e,rippleX:r,rippleY:n,rippleSize:i})])}),f.current+=1,d.current=s},[A]),w=o.useCallback(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.pulsate,i=void 0!==n&&n,o=e.center,s=void 0===o?a||e.pulsate:o,A=e.fakeElement,l=void 0!==A&&A;if("mousedown"===t.type&&g.current)g.current=!1;else{"touchstart"===t.type&&(g.current=!0);var c,h,u,p=l?null:v.current,f=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===t.clientX&&0===t.clientY||!t.clientX&&!t.touches)c=Math.round(f.width/2),h=Math.round(f.height/2);else{var d=t.touches?t.touches[0]:t,w=d.clientX,x=d.clientY;c=Math.round(w-f.left),h=Math.round(x-f.top)}if(s)(u=Math.sqrt((2*Math.pow(f.width,2)+Math.pow(f.height,2))/3))%2==0&&(u+=1);else{var B=2*Math.max(Math.abs((p?p.clientWidth:0)-c),c)+2,C=2*Math.max(Math.abs((p?p.clientHeight:0)-h),h)+2;u=Math.sqrt(Math.pow(B,2)+Math.pow(C,2))}t.touches?null===y.current&&(y.current=function(){b({pulsate:i,rippleX:c,rippleY:h,rippleSize:u,cb:r})},m.current=setTimeout(function(){y.current&&(y.current(),y.current=null)},80)):b({pulsate:i,rippleX:c,rippleY:h,rippleSize:u,cb:r})}},[a,b]),C=o.useCallback(function(){w({},{pulsate:!0})},[w]),E=o.useCallback(function(t,e){if(clearTimeout(m.current),"touchend"===t.type&&y.current)return t.persist(),y.current(),y.current=null,void(m.current=setTimeout(function(){E(t,e)}));y.current=null,p(function(t){return t.length>0?t.slice(1):t}),d.current=e},[]);return o.useImperativeHandle(e,function(){return{pulsate:C,start:w,stop:E}},[C,w,E]),o.createElement("span",(0,n.A)({className:(0,s.A)(A.root,l),ref:v},c),o.createElement(B.A,{component:null,exit:!0},u))});const S=(0,h.A)(function(t){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(t.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(t.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(t.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(t.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}},{flip:!1,name:"MuiTouchRipple"})(o.memo(E));var I=o.forwardRef(function(t,e){var r=t.action,l=t.buttonRef,h=t.centerRipple,u=void 0!==h&&h,p=t.children,f=t.classes,d=t.className,g=t.component,m=void 0===g?"button":g,y=t.disabled,v=void 0!==y&&y,b=t.disableRipple,x=void 0!==b&&b,B=t.disableTouchRipple,C=void 0!==B&&B,_=t.focusRipple,E=void 0!==_&&_,I=t.focusVisibleClassName,F=t.onBlur,T=t.onClick,k=t.onFocus,L=t.onFocusVisible,P=t.onKeyDown,M=t.onKeyUp,D=t.onMouseDown,N=t.onMouseLeave,O=t.onMouseUp,U=t.onTouchEnd,Q=t.onTouchMove,R=t.onTouchStart,j=t.onDragLeave,H=t.tabIndex,V=void 0===H?0:H,z=t.TouchRippleProps,G=t.type,K=void 0===G?"button":G,q=(0,i.A)(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),W=o.useRef(null),Y=o.useRef(null),X=o.useState(!1),J=X[0],Z=X[1];v&&J&&Z(!1);var $=w(),tt=$.isFocusVisible,et=$.onBlurVisible,rt=$.ref;function nt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C;return c(function(n){return e&&e(n),!r&&Y.current&&Y.current[t](n),!0})}o.useImperativeHandle(r,function(){return{focusVisible:function(){Z(!0),W.current.focus()}}},[]),o.useEffect(function(){J&&E&&!x&&Y.current.pulsate()},[x,E,J]);var it=nt("start",D),ot=nt("stop",j),st=nt("stop",O),at=nt("stop",function(t){J&&t.preventDefault(),N&&N(t)}),At=nt("start",R),lt=nt("stop",U),ct=nt("stop",Q),ht=nt("stop",function(t){J&&(et(t),Z(!1)),F&&F(t)},!1),ut=c(function(t){W.current||(W.current=t.currentTarget),tt(t)&&(Z(!0),L&&L(t)),k&&k(t)}),pt=function(){var t=a.findDOMNode(W.current);return m&&"button"!==m&&!("A"===t.tagName&&t.href)},ft=o.useRef(!1),dt=c(function(t){E&&!ft.current&&J&&Y.current&&" "===t.key&&(ft.current=!0,t.persist(),Y.current.stop(t,function(){Y.current.start(t)})),t.target===t.currentTarget&&pt()&&" "===t.key&&t.preventDefault(),P&&P(t),t.target===t.currentTarget&&pt()&&"Enter"===t.key&&!v&&(t.preventDefault(),T&&T(t))}),gt=c(function(t){E&&" "===t.key&&Y.current&&J&&!t.defaultPrevented&&(ft.current=!1,t.persist(),Y.current.stop(t,function(){Y.current.pulsate(t)})),M&&M(t),T&&t.target===t.currentTarget&&pt()&&" "===t.key&&!t.defaultPrevented&&T(t)}),mt=m;"button"===mt&&q.href&&(mt="a");var yt={};"button"===mt?(yt.type=K,yt.disabled=v):("a"===mt&&q.href||(yt.role="button"),yt["aria-disabled"]=v);var vt=(0,A.A)(l,e),bt=(0,A.A)(rt,W),wt=(0,A.A)(vt,bt),xt=o.useState(!1),Bt=xt[0],Ct=xt[1];o.useEffect(function(){Ct(!0)},[]);var _t=Bt&&!x&&!v;return o.createElement(mt,(0,n.A)({className:(0,s.A)(f.root,d,J&&[f.focusVisible,I],v&&f.disabled),onBlur:ht,onClick:T,onFocus:ut,onKeyDown:dt,onKeyUp:gt,onMouseDown:it,onMouseLeave:at,onMouseUp:st,onDragLeave:ot,onTouchEnd:lt,onTouchMove:ct,onTouchStart:At,ref:wt,tabIndex:v?-1:V},yt,q),p,_t?o.createElement(S,(0,n.A)({ref:Y,center:u},z)):null)});const F=(0,h.A)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(I);var T=r(68836),k=r(58195);function L(t){if("string"!=typeof t)throw new Error((0,k.A)(7));return t.charAt(0).toUpperCase()+t.slice(1)}var P=o.forwardRef(function(t,e){var r=t.edge,a=void 0!==r&&r,A=t.children,l=t.classes,c=t.className,h=t.color,u=void 0===h?"default":h,p=t.disabled,f=void 0!==p&&p,d=t.disableFocusRipple,g=void 0!==d&&d,m=t.size,y=void 0===m?"medium":m,v=(0,i.A)(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(F,(0,n.A)({className:(0,s.A)(l.root,c,"default"!==u&&l["color".concat(L(u))],f&&l.disabled,"small"===y&&l["size".concat(L(y))],{start:l.edgeStart,end:l.edgeEnd}[a]),centerRipple:!0,focusRipple:!g,disabled:f,ref:e},v),o.createElement("span",{className:l.label},A))});const M=(0,h.A)(function(t){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:t.palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,T.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:t.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:(0,T.X4)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:(0,T.X4)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:t.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}},{name:"MuiIconButton"})(P);var D=r(60766),N=o.forwardRef(function(t,e){var r=t.children,a=t.classes,A=t.className,l=t.expandIcon,c=t.focusVisibleClassName,h=t.IconButtonProps,u=void 0===h?{}:h,p=t.onClick,f=(0,i.A)(t,["children","classes","className","expandIcon","focusVisibleClassName","IconButtonProps","onClick"]),d=o.useContext(D.A),g=d.disabled,m=void 0!==g&&g,y=d.expanded,v=d.toggle;return o.createElement(F,(0,n.A)({focusRipple:!1,disableRipple:!0,disabled:m,component:"div","aria-expanded":y,className:(0,s.A)(a.root,A,m&&a.disabled,y&&a.expanded),focusVisibleClassName:(0,s.A)(a.focusVisible,a.focused,c),onClick:function(t){v&&v(t),p&&p(t)},ref:e},f),o.createElement("div",{className:(0,s.A)(a.content,y&&a.expanded)},r),l&&o.createElement(M,(0,n.A)({className:(0,s.A)(a.expandIcon,y&&a.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},u),l))});const O=(0,h.A)(function(t){var e={duration:t.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:t.transitions.create(["min-height","background-color"],e),padding:t.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused, &$focusVisible":{backgroundColor:t.palette.action.focus},"&$disabled":{opacity:t.palette.action.disabledOpacity}},expanded:{},focused:{},focusVisible:{},disabled:{},content:{display:"flex",flexGrow:1,transition:t.transitions.create(["margin"],e),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:t.transitions.create("transform",e),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}},{name:"MuiAccordionSummary"})(N)},76691(t,e,r){"use strict";r.d(e,{A:()=>A});var n=r(22155),i=r(70316),o=r(42915),s=r(41294),a="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;const A=n.forwardRef(function(t,e){var r=t.children,A=t.container,l=t.disablePortal,c=void 0!==l&&l,h=t.onRendered,u=n.useState(null),p=u[0],f=u[1],d=(0,s.A)(n.isValidElement(r)?r.ref:null,e);return a(function(){c||f(function(t){return t="function"==typeof t?t():t,i.findDOMNode(t)}(A)||document.body)},[A,c]),a(function(){if(p&&!c)return(0,o.A)(e,p),function(){(0,o.A)(e,null)}},[e,p,c]),a(function(){h&&(p||c)&&h()},[h,p,c]),c?n.isValidElement(r)?n.cloneElement(r,{ref:d}):r:p?i.createPortal(r,p):p})},68836(t,e,r){"use strict";r.d(e,{X4:()=>l,a:()=>h,e$:()=>c,eM:()=>a});var n=r(58195);function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(e,t),r)}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(function(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),r=t.match(e);return r&&1===r[0].length&&(r=r.map(function(t){return t+t})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(t,e){return e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3}).join(", "),")"):""}(t));var e=t.indexOf("("),r=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,n.A)(3,t));var i=t.substring(e+1,t.length-1).split(",");return{type:r,values:i=i.map(function(t){return parseFloat(t)})}}function s(t){var e=t.type,r=t.values;return-1!==e.indexOf("rgb")?r=r.map(function(t,e){return e<3?parseInt(t,10):t}):-1!==e.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(e,"(").concat(r.join(", "),")")}function a(t,e){var r=A(t),n=A(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function A(t){var e="hsl"===(t=o(t)).type?o(function(t){var e=(t=o(t)).values,r=e[0],n=e[1]/100,i=e[2]/100,a=n*Math.min(i,1-i),A=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+r/30)%12;return i-a*Math.max(Math.min(e-3,9-e,1),-1)},l="rgb",c=[Math.round(255*A(0)),Math.round(255*A(8)),Math.round(255*A(4))];return"hsla"===t.type&&(l+="a",c.push(e[3])),s({type:l,values:c})}(t)).values:t.values;return e=e.map(function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function l(t,e){return t=o(t),e=i(e),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),t.values[3]=e,s(t)}function c(t,e){if(t=o(t),e=i(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb"))for(var r=0;r<3;r+=1)t.values[r]*=1-e;return s(t)}function h(t,e){if(t=o(t),e=i(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(var r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;return s(t)}},57919(t,e,r){"use strict";r.d(e,{A:()=>it});var n=r(54818),i=r(57148),o=r(67311),s=["xs","sm","md","lg","xl"],a=r(55106);function A(t,e,r){var n;return(0,o.A)({gutters:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n      paddingLeft: theme.spacing(2),\n      paddingRight: theme.spacing(2),\n      [theme.breakpoints.up('sm')]: {\n        paddingLeft: theme.spacing(3),\n        paddingRight: theme.spacing(3),\n      },\n      "].join("\n")),(0,o.A)({paddingLeft:e(2),paddingRight:e(2)},r,(0,a.A)({},t.up("sm"),(0,o.A)({paddingLeft:e(3),paddingRight:e(3)},r[t.up("sm")])))},toolbar:(n={minHeight:56},(0,a.A)(n,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,a.A)(n,t.up("sm"),{minHeight:64}),n)},r)}var l=r(58195);const c={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},u="#7986cb",p="#3f51b5",f="#303f9f",d="#ff4081",g="#f50057",m="#c51162",y="#e57373",v="#f44336",b="#d32f2f",w="#ffb74d",x="#ff9800",B="#f57c00",C="#64b5f6",_="#2196f3",E="#1976d2",S="#81c784",I="#4caf50",F="#388e3c";var T=r(68836),k={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:c.white,default:h[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},L={text:{primary:c.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:h[800],default:"#303030"},action:{active:c.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function P(t,e,r,n){var i=n.light||n,o=n.dark||1.5*n;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:"light"===e?t.light=(0,T.a)(t.main,i):"dark"===e&&(t.dark=(0,T.e$)(t.main,o)))}function M(t){return Math.round(1e5*t)/1e5}function D(t){return M(t)}var N={textTransform:"uppercase"},O='"Roboto", "Helvetica", "Arial", sans-serif';function U(t,e){var r="function"==typeof e?e(t):e,s=r.fontFamily,a=void 0===s?O:s,A=r.fontSize,l=void 0===A?14:A,c=r.fontWeightLight,h=void 0===c?300:c,u=r.fontWeightRegular,p=void 0===u?400:u,f=r.fontWeightMedium,d=void 0===f?500:f,g=r.fontWeightBold,m=void 0===g?700:g,y=r.htmlFontSize,v=void 0===y?16:y,b=r.allVariants,w=r.pxToRem,x=(0,n.A)(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),B=l/14,C=w||function(t){return"".concat(t/v*B,"rem")},_=function(t,e,r,n,i){return(0,o.A)({fontFamily:a,fontWeight:t,fontSize:C(e),lineHeight:r},a===O?{letterSpacing:"".concat(M(n/e),"em")}:{},i,b)},E={h1:_(h,96,1.167,-1.5),h2:_(h,60,1.2,-.5),h3:_(p,48,1.167,0),h4:_(p,34,1.235,.25),h5:_(p,24,1.334,0),h6:_(d,20,1.6,.15),subtitle1:_(p,16,1.75,.15),subtitle2:_(d,14,1.57,.1),body1:_(p,16,1.5,.15),body2:_(p,14,1.43,.15),button:_(d,14,1.75,.4,N),caption:_(p,12,1.66,.4),overline:_(p,12,2.66,1,N)};return(0,i.A)((0,o.A)({htmlFontSize:v,pxToRem:C,round:D,fontFamily:a,fontSize:l,fontWeightLight:h,fontWeightRegular:p,fontWeightMedium:d,fontWeightBold:m},E),x,{clone:!1})}function Q(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const R=["none",Q(0,2,1,-1,0,1,1,0,0,1,3,0),Q(0,3,1,-2,0,2,2,0,0,1,5,0),Q(0,3,3,-2,0,3,4,0,0,1,8,0),Q(0,2,4,-1,0,4,5,0,0,1,10,0),Q(0,3,5,-1,0,5,8,0,0,1,14,0),Q(0,3,5,-1,0,6,10,0,0,1,18,0),Q(0,4,5,-2,0,7,10,1,0,2,16,1),Q(0,5,5,-3,0,8,10,1,0,3,14,2),Q(0,5,6,-3,0,9,12,1,0,3,16,2),Q(0,6,6,-3,0,10,14,1,0,4,18,3),Q(0,6,7,-4,0,11,15,1,0,4,20,3),Q(0,7,8,-4,0,12,17,2,0,5,22,4),Q(0,7,8,-4,0,13,19,2,0,5,24,4),Q(0,7,9,-4,0,14,21,2,0,5,26,4),Q(0,8,9,-5,0,15,22,2,0,6,28,5),Q(0,8,10,-5,0,16,24,2,0,6,30,5),Q(0,8,11,-5,0,17,26,2,0,6,32,5),Q(0,9,11,-5,0,18,28,2,0,7,34,6),Q(0,9,12,-6,0,19,29,2,0,7,36,6),Q(0,10,13,-6,0,20,31,3,0,8,38,7),Q(0,10,13,-6,0,21,33,3,0,8,40,7),Q(0,10,14,-6,0,22,35,3,0,8,42,7),Q(0,11,14,-7,0,23,36,3,0,9,44,8),Q(0,11,15,-7,0,24,38,3,0,9,46,8)],j={borderRadius:4};var H=r(42761),V=r(35681),z={xs:0,sm:600,md:960,lg:1280,xl:1920},G={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(z[t],"px)")}};const K=function(t,e){return e?(0,i.A)(t,e,{clone:!1}):t};var q,W,Y={m:"margin",p:"padding"},X={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},J={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Z=(q=function(t){if(t.length>2){if(!J[t])return[t];t=J[t]}var e=t.split(""),r=(0,H.A)(e,2),n=r[0],i=r[1],o=Y[n],s=X[i]||"";return Array.isArray(s)?s.map(function(t){return o+t}):[o+s]},W={},function(t){return void 0===W[t]&&(W[t]=q(t)),W[t]}),$=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function tt(t){var e=t.spacing||8;return"number"==typeof e?function(t){return e*t}:Array.isArray(e)?function(t){return e[t]}:"function"==typeof e?e:function(){}}function et(t){var e=tt(t.theme);return Object.keys(t).map(function(r){if(-1===$.indexOf(r))return null;var n=function(t,e){return function(r){return t.reduce(function(t,n){return t[n]=function(t,e){if("string"==typeof e||null==e)return e;var r=t(Math.abs(e));return e>=0?r:"number"==typeof r?-r:"-".concat(r)}(e,r),t},{})}}(Z(r),e),i=t[r];return function(t,e,r){if(Array.isArray(e)){var n=t.theme.breakpoints||G;return e.reduce(function(t,i,o){return t[n.up(n.keys[o])]=r(e[o]),t},{})}if("object"===(0,V.A)(e)){var i=t.theme.breakpoints||G;return Object.keys(e).reduce(function(t,n){return t[i.up(n)]=r(e[n]),t},{})}return r(e)}(t,i,n)}).reduce(K,{})}et.propTypes={},et.filterProps=$;var rt=r(90905);const nt={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const it=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.breakpoints,r=void 0===e?{}:e,a=t.mixins,M=void 0===a?{}:a,D=t.palette,N=void 0===D?{}:D,O=t.spacing,Q=t.typography,H=void 0===Q?{}:Q,V=(0,n.A)(t,["breakpoints","mixins","palette","spacing","typography"]),z=function(t){var e=t.primary,r=void 0===e?{light:u,main:p,dark:f}:e,s=t.secondary,a=void 0===s?{light:d,main:g,dark:m}:s,A=t.error,M=void 0===A?{light:y,main:v,dark:b}:A,D=t.warning,N=void 0===D?{light:w,main:x,dark:B}:D,O=t.info,U=void 0===O?{light:C,main:_,dark:E}:O,Q=t.success,R=void 0===Q?{light:S,main:I,dark:F}:Q,j=t.type,H=void 0===j?"light":j,V=t.contrastThreshold,z=void 0===V?3:V,G=t.tonalOffset,K=void 0===G?.2:G,q=(0,n.A)(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function W(t){return(0,T.eM)(t,L.text.primary)>=z?L.text.primary:k.text.primary}var Y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(t=(0,o.A)({},t)).main&&t[e]&&(t.main=t[e]),!t.main)throw new Error((0,l.A)(4,e));if("string"!=typeof t.main)throw new Error((0,l.A)(5,JSON.stringify(t.main)));return P(t,"light",r,K),P(t,"dark",n,K),t.contrastText||(t.contrastText=W(t.main)),t},X={dark:L,light:k};return(0,i.A)((0,o.A)({common:c,type:H,primary:Y(r),secondary:Y(a,"A400","A200","A700"),error:Y(M),warning:Y(N),info:Y(U),success:Y(R),grey:h,contrastThreshold:z,getContrastText:W,augmentColor:Y,tonalOffset:K},X[H]),q)}(N),G=function(t){var e=t.values,r=void 0===e?{xs:0,sm:600,md:960,lg:1280,xl:1920}:e,i=t.unit,a=void 0===i?"px":i,A=t.step,l=void 0===A?5:A,c=(0,n.A)(t,["values","unit","step"]);function h(t){var e="number"==typeof r[t]?r[t]:t;return"@media (min-width:".concat(e).concat(a,")")}function u(t,e){var n=s.indexOf(e);return n===s.length-1?h(t):"@media (min-width:".concat("number"==typeof r[t]?r[t]:t).concat(a,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof r[s[n+1]]?r[s[n+1]]:e)-l/100).concat(a,")")}return(0,o.A)({keys:s,values:r,up:h,down:function(t){var e=s.indexOf(t)+1,n=r[s[e]];return e===s.length?h("xs"):"@media (max-width:".concat(("number"==typeof n&&e>0?n:t)-l/100).concat(a,")")},between:u,only:function(t){return u(t,t)},width:function(t){return r[t]}},c)}(r),K=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var e=tt({spacing:t}),r=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return 0===r.length?e(1):1===r.length?e(r[0]):r.map(function(t){if("string"==typeof t)return t;var r=e(t);return"number"==typeof r?"".concat(r,"px"):r}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r}(O),q=(0,i.A)({breakpoints:G,direction:"ltr",mixins:A(G,K,M),overrides:{},palette:z,props:{},shadows:R,typography:U(z,H),spacing:K,shape:j,transitions:rt.Ay,zIndex:nt},V),W=arguments.length,Y=new Array(W>1?W-1:0),X=1;X<W;X++)Y[X-1]=arguments[X];return Y.reduce(function(t,e){return(0,i.A)(t,e)},q)}()},52269(t,e,r){"use strict";r.d(e,{A:()=>s});var n=r(67311),i=r(65567),o=r(57919);const s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.A)(t,(0,n.A)({defaultTheme:o.A},e))}},90905(t,e,r){"use strict";r.d(e,{Ay:()=>a,p0:()=>o});var n=r(54818),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function s(t){return"".concat(Math.round(t),"ms")}const a={easing:i,duration:o,create:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.duration,a=void 0===r?o.standard:r,A=e.easing,l=void 0===A?i.easeInOut:A,c=e.delay,h=void 0===c?0:c;return(0,n.A)(e,["duration","easing","delay"]),(Array.isArray(t)?t:[t]).map(function(t){return"".concat(t," ").concat("string"==typeof a?a:s(a)," ").concat(l," ").concat("string"==typeof h?h:s(h))}).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var e=t/36;return Math.round(10*(4+15*Math.pow(e,.25)+e/5))}}},64680(t,e,r){"use strict";r.d(e,{A:()=>h});var n=r(67311),i=r(54818),o=r(22155),s=r(4674),a=r.n(s),A=r(65567),l=r(14925);var c=r(57919);const h=function(t,e){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var s=e.defaultTheme,c=e.withTheme,h=void 0!==c&&c,u=e.name,p=(0,i.A)(e,["defaultTheme","withTheme","name"]),f=u,d=(0,A.A)(t,(0,n.A)({defaultTheme:s,Component:r,name:u||r.displayName,classNamePrefix:f},p)),g=o.forwardRef(function(t,e){t.classes;var a,A=t.innerRef,c=(0,i.A)(t,["classes","innerRef"]),p=d((0,n.A)({},r.defaultProps,t)),f=c;return("string"==typeof u||h)&&(a=(0,l.A)()||s,u&&(f=function(t){var e=t.theme,r=t.name,n=t.props;if(!e||!e.props||!e.props[r])return n;var i,o=e.props[r];for(i in o)void 0===n[i]&&(n[i]=o[i]);return n}({theme:a,name:u,props:c})),h&&!f.theme&&(f.theme=a)),o.createElement(r,(0,n.A)({ref:A||e,classes:p},f))});return a()(g,r),g}}(t,(0,n.A)({defaultTheme:c.A},e))}},42915(t,e,r){"use strict";function n(t,e){"function"==typeof t?t(e):t&&(t.current=e)}r.d(e,{A:()=>n})},41294(t,e,r){"use strict";r.d(e,{A:()=>o});var n=r(22155),i=r(42915);function o(t,e){return n.useMemo(function(){return null==t&&null==e?null:function(r){(0,i.A)(t,r),(0,i.A)(e,r)}},[t,e])}},65567(t,e,r){"use strict";r.d(e,{A:()=>ie});var n=r(54818),i=r(67311),o=r(22155),s=r(42346),a=r(134),A=r(32252),l=r(53378),c=r(1110),h={}.constructor;function u(t){if(null==t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(u);if(t.constructor!==h)return t;var e={};for(var r in t)e[r]=u(t[r]);return e}function p(t,e,r){void 0===t&&(t="unnamed");var n=r.jss,i=u(e);return n.plugins.onCreateRule(t,i,r)||(t[0],null)}var f=function(t,e){for(var r="",n=0;n<t.length&&"!important"!==t[n];n++)r&&(r+=e),r+=t[n];return r},d=function(t){if(!Array.isArray(t))return t;var e="";if(Array.isArray(t[0]))for(var r=0;r<t.length&&"!important"!==t[r];r++)e&&(e+=", "),e+=f(t[r]," ");else e=f(t,", ");return"!important"===t[t.length-1]&&(e+=" !important"),e};function g(t){return t&&!1===t.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function m(t,e){for(var r="",n=0;n<e;n++)r+="  ";return r+t}function y(t,e,r){void 0===r&&(r={});var n="";if(!e)return n;var i=r.indent,o=void 0===i?0:i,s=e.fallbacks;!1===r.format&&(o=-1/0);var a=g(r),A=a.linebreak,l=a.space;if(t&&o++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var h=s[c];for(var u in h){var p=h[u];null!=p&&(n&&(n+=A),n+=m(u+":"+l+d(p)+";",o))}}else for(var f in s){var y=s[f];null!=y&&(n&&(n+=A),n+=m(f+":"+l+d(y)+";",o))}for(var v in e){var b=e[v];null!=b&&"fallbacks"!==v&&(n&&(n+=A),n+=m(v+":"+l+d(b)+";",o))}return(n||r.allowEmpty)&&t?(n&&(n=""+A+n+A),m(""+t+l+"{"+n,--o)+m("}",o)):n}var v=/([[\].#*$><+~=|^:(),"'`\s])/g,b="undefined"!=typeof CSS&&CSS.escape,w=function(t){return b?b(t):t.replace(v,"\\$1")},x=function(){function t(t,e,r){this.type="style",this.isProcessed=!1;var n=r.sheet,i=r.Renderer;this.key=t,this.options=r,this.style=e,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return t.prototype.prop=function(t,e,r){if(void 0===e)return this.style[t];var n=!!r&&r.force;if(!n&&this.style[t]===e)return this;var i=e;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(e,t,this));var o=null==i||!1===i,s=t in this.style;if(o&&!s&&!n)return this;var a=o&&s;if(a?delete this.style[t]:this.style[t]=i,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,t):this.renderer.setProperty(this.renderable,t,i),this;var A=this.options.sheet;return A&&A.attached,this},t}(),B=function(t){function e(e,r,n){var i;i=t.call(this,e,r,n)||this;var o=n.selector,s=n.scoped,a=n.sheet,A=n.generateId;return o?i.selectorText=o:!1!==s&&(i.id=A((0,l.A)((0,l.A)(i)),a),i.selectorText="."+w(i.id)),i}(0,A.A)(e,t);var r=e.prototype;return r.applyTo=function(t){var e=this.renderer;if(e){var r=this.toJSON();for(var n in r)e.setProperty(t,n,r[n])}return this},r.toJSON=function(){var t={};for(var e in this.style){var r=this.style[e];"object"!=typeof r?t[e]=r:Array.isArray(r)&&(t[e]=d(r))}return t},r.toString=function(t){var e=this.options.sheet,r=e&&e.options.link?(0,i.A)({},t,{allowEmpty:!0}):t;return y(this.selectorText,this.style,r)},(0,a.A)(e,[{key:"selector",set:function(t){if(t!==this.selectorText){this.selectorText=t;var e=this.renderer,r=this.renderable;r&&e&&(e.setSelector(r,t)||e.replaceRule(r,this))}},get:function(){return this.selectorText}}]),e}(x),C={onCreateRule:function(t,e,r){return"@"===t[0]||r.parent&&"keyframes"===r.parent.type?null:new B(t,e,r)}},_={indent:1,children:!0},E=/@([\w-]+)/,S=function(){function t(t,e,r){this.type="conditional",this.isProcessed=!1,this.key=t;var n=t.match(E);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new X((0,i.A)({},r,{parent:this})),e)this.rules.add(o,e[o]);this.rules.process()}var e=t.prototype;return e.getRule=function(t){return this.rules.get(t)},e.indexOf=function(t){return this.rules.indexOf(t)},e.addRule=function(t,e,r){var n=this.rules.add(t,e,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},e.replaceRule=function(t,e,r){var n=this.rules.replace(t,e,r);return n&&this.options.jss.plugins.onProcessRule(n),n},e.toString=function(t){void 0===t&&(t=_);var e=g(t).linebreak;if(null==t.indent&&(t.indent=_.indent),null==t.children&&(t.children=_.children),!1===t.children)return this.query+" {}";var r=this.rules.toString(t);return r?this.query+" {"+e+r+e+"}":""},t}(),I=/@container|@media|@supports\s+/,F={onCreateRule:function(t,e,r){return I.test(t)?new S(t,e,r):null}},T={indent:1,children:!0},k=/@keyframes\s+([\w-]+)/,L=function(){function t(t,e,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=t.match(k);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,s=r.sheet,a=r.generateId;for(var A in this.id=!1===o?this.name:w(a(this,s)),this.rules=new X((0,i.A)({},r,{parent:this})),e)this.rules.add(A,e[A],(0,i.A)({},r,{parent:this}));this.rules.process()}return t.prototype.toString=function(t){void 0===t&&(t=T);var e=g(t).linebreak;if(null==t.indent&&(t.indent=T.indent),null==t.children&&(t.children=T.children),!1===t.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(t);return r&&(r=""+e+r+e),this.at+" "+this.id+" {"+r+"}"},t}(),P=/@keyframes\s+/,M=/\$([\w-]+)/g,D=function(t,e){return"string"==typeof t?t.replace(M,function(t,r){return r in e?e[r]:t}):t},N=function(t,e,r){var n=t[e],i=D(n,r);i!==n&&(t[e]=i)},O={onCreateRule:function(t,e,r){return"string"==typeof t&&P.test(t)?new L(t,e,r):null},onProcessStyle:function(t,e,r){return"style"===e.type&&r?("animation-name"in t&&N(t,"animation-name",r.keyframes),"animation"in t&&N(t,"animation",r.keyframes),t):t},onChangeValue:function(t,e,r){var n=r.options.sheet;if(!n)return t;switch(e){case"animation":case"animation-name":return D(t,n.keyframes);default:return t}}},U=function(t){function e(){return t.apply(this,arguments)||this}return(0,A.A)(e,t),e.prototype.toString=function(t){var e=this.options.sheet,r=e&&e.options.link?(0,i.A)({},t,{allowEmpty:!0}):t;return y(this.key,this.style,r)},e}(x),Q={onCreateRule:function(t,e,r){return r.parent&&"keyframes"===r.parent.type?new U(t,e,r):null}},R=function(){function t(t,e,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=t,this.style=e,this.options=r}return t.prototype.toString=function(t){var e=g(t).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=y(this.at,this.style[n]),this.style[n+1]&&(r+=e);return r}return y(this.at,this.style,t)},t}(),j=/@font-face/,H={onCreateRule:function(t,e,r){return j.test(t)?new R(t,e,r):null}},V=function(){function t(t,e,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=t,this.style=e,this.options=r}return t.prototype.toString=function(t){return y(this.key,this.style,t)},t}(),z={onCreateRule:function(t,e,r){return"@viewport"===t||"@-ms-viewport"===t?new V(t,e,r):null}},G=function(){function t(t,e,r){this.type="simple",this.isProcessed=!1,this.key=t,this.value=e,this.options=r}return t.prototype.toString=function(t){if(Array.isArray(this.value)){for(var e="",r=0;r<this.value.length;r++)e+=this.key+" "+this.value[r]+";",this.value[r+1]&&(e+="\n");return e}return this.key+" "+this.value+";"},t}(),K={"@charset":!0,"@import":!0,"@namespace":!0},q=[C,F,O,Q,H,z,{onCreateRule:function(t,e,r){return t in K?new G(t,e,r):null}}],W={process:!0},Y={force:!0,process:!0},X=function(){function t(t){this.map={},this.raw={},this.index=[],this.counter=0,this.options=t,this.classes=t.classes,this.keyframes=t.keyframes}var e=t.prototype;return e.add=function(t,e,r){var n=this.options,o=n.parent,s=n.sheet,a=n.jss,A=n.Renderer,l=n.generateId,c=n.scoped,h=(0,i.A)({classes:this.classes,parent:o,sheet:s,jss:a,Renderer:A,generateId:l,scoped:c,name:t,keyframes:this.keyframes,selector:void 0},r),u=t;t in this.raw&&(u=t+"-d"+this.counter++),this.raw[u]=e,u in this.classes&&(h.selector="."+w(this.classes[u]));var f=p(u,e,h);if(!f)return null;this.register(f);var d=void 0===h.index?this.index.length:h.index;return this.index.splice(d,0,f),f},e.replace=function(t,e,r){var n=this.get(t),o=this.index.indexOf(n);n&&this.remove(n);var s=r;return-1!==o&&(s=(0,i.A)({},r,{index:o})),this.add(t,e,s)},e.get=function(t){return this.map[t]},e.remove=function(t){this.unregister(t),delete this.raw[t.key],this.index.splice(this.index.indexOf(t),1)},e.indexOf=function(t){return this.index.indexOf(t)},e.process=function(){var t=this.options.jss.plugins;this.index.slice(0).forEach(t.onProcessRule,t)},e.register=function(t){this.map[t.key]=t,t instanceof B?(this.map[t.selector]=t,t.id&&(this.classes[t.key]=t.id)):t instanceof L&&this.keyframes&&(this.keyframes[t.name]=t.id)},e.unregister=function(t){delete this.map[t.key],t instanceof B?(delete this.map[t.selector],delete this.classes[t.key]):t instanceof L&&delete this.keyframes[t.name]},e.update=function(){var t,e,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(e=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],t=null),t)this.updateOne(this.get(t),e,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],e,r)},e.updateOne=function(e,r,n){void 0===n&&(n=W);var i=this.options,o=i.jss.plugins,s=i.sheet;if(e.rules instanceof t)e.rules.update(r,n);else{var a=e.style;if(o.onUpdate(r,e,s,n),n.process&&a&&a!==e.style){for(var A in o.onProcessStyle(e.style,e,s),e.style){var l=e.style[A];l!==a[A]&&e.prop(A,l,Y)}for(var c in a){var h=e.style[c],u=a[c];null==h&&h!==u&&e.prop(c,null,Y)}}}},e.toString=function(t){for(var e="",r=this.options.sheet,n=!!r&&r.options.link,i=g(t).linebreak,o=0;o<this.index.length;o++){var s=this.index[o].toString(t);(s||n)&&(e&&(e+=i),e+=s)}return e},t}(),J=function(){function t(t,e){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,i.A)({},e,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),e.Renderer&&(this.renderer=new e.Renderer(this)),this.rules=new X(this.options),t)this.rules.add(r,t[r]);this.rules.process()}var e=t.prototype;return e.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},e.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},e.addRule=function(t,e,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var i=this.rules.add(t,e,r);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(n?n.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},e.replaceRule=function(t,e,r){var n=this.rules.get(t);if(!n)return this.addRule(t,e,r);var i=this.rules.replace(t,e,r);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?n.renderable&&this.renderer.replaceRule(n.renderable,i):this.renderer.deleteRule(n)),i):i:(this.deployed=!1,i)},e.insertRule=function(t){this.renderer&&this.renderer.insertRule(t)},e.addRules=function(t,e){var r=[];for(var n in t){var i=this.addRule(n,t[n],e);i&&r.push(i)}return r},e.getRule=function(t){return this.rules.get(t)},e.deleteRule=function(t){var e="object"==typeof t?t:this.rules.get(t);return!(!e||this.attached&&!e.renderable)&&(this.rules.remove(e),!(this.attached&&e.renderable&&this.renderer)||this.renderer.deleteRule(e.renderable))},e.indexOf=function(t){return this.rules.indexOf(t)},e.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},e.update=function(){var t;return(t=this.rules).update.apply(t,arguments),this},e.updateOne=function(t,e,r){return this.rules.updateOne(t,e,r),this},e.toString=function(t){return this.rules.toString(t)},t}(),Z=function(){function t(){this.plugins={internal:[],external:[]},this.registry={}}var e=t.prototype;return e.onCreateRule=function(t,e,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var i=this.registry.onCreateRule[n](t,e,r);if(i)return i}return null},e.onProcessRule=function(t){if(!t.isProcessed){for(var e=t.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](t,e);t.style&&this.onProcessStyle(t.style,t,e),t.isProcessed=!0}},e.onProcessStyle=function(t,e,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)e.style=this.registry.onProcessStyle[n](e.style,e,r)},e.onProcessSheet=function(t){for(var e=0;e<this.registry.onProcessSheet.length;e++)this.registry.onProcessSheet[e](t)},e.onUpdate=function(t,e,r,n){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](t,e,r,n)},e.onChangeValue=function(t,e,r){for(var n=t,i=0;i<this.registry.onChangeValue.length;i++)n=this.registry.onChangeValue[i](n,e,r);return n},e.use=function(t,e){void 0===e&&(e={queue:"external"});var r=this.plugins[e.queue];-1===r.indexOf(t)&&(r.push(t),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(t,e){for(var r in e)r in t&&t[r].push(e[r]);return t},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},t}(),$=new(function(){function t(){this.registry=[]}var e=t.prototype;return e.add=function(t){var e=this.registry,r=t.options.index;if(-1===e.indexOf(t))if(0===e.length||r>=this.index)e.push(t);else for(var n=0;n<e.length;n++)if(e[n].options.index>r)return void e.splice(n,0,t)},e.reset=function(){this.registry=[]},e.remove=function(t){var e=this.registry.indexOf(t);this.registry.splice(e,1)},e.toString=function(t){for(var e=void 0===t?{}:t,r=e.attached,n=(0,c.A)(e,["attached"]),i=g(n).linebreak,o="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=r&&a.attached!==r||(o&&(o+=i),o+=a.toString(n))}return o},(0,a.A)(t,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),t}()),tt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),et="2f1acc6c3a606b082e5eef5e54414ffb";null==tt[et]&&(tt[et]=0);var rt=tt[et]++,nt=function(t){void 0===t&&(t={});var e=0;return function(r,n){e+=1;var i="",o="";return n&&(n.options.classNamePrefix&&(o=n.options.classNamePrefix),null!=n.options.jss.id&&(i=String(n.options.jss.id))),t.minify?""+(o||"c")+rt+i+e:o+r.key+"-"+rt+(i?"-"+i:"")+"-"+e}},it=function(t){var e;return function(){return e||(e=t()),e}},ot=function(t,e){try{return t.attributeStyleMap?t.attributeStyleMap.get(e):t.style.getPropertyValue(e)}catch(t){return""}},st=function(t,e,r){try{var n=r;if(Array.isArray(r)&&(n=d(r)),t.attributeStyleMap)t.attributeStyleMap.set(e,n);else{var i=n?n.indexOf("!important"):-1,o=i>-1?n.substr(0,i-1):n;t.style.setProperty(e,o,i>-1?"important":"")}}catch(t){return!1}return!0},at=function(t,e){try{t.attributeStyleMap?t.attributeStyleMap.delete(e):t.style.removeProperty(e)}catch(t){}},At=function(t,e){return t.selectorText=e,t.selectorText===e},lt=it(function(){return document.querySelector("head")});var ct=it(function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}),ht=function(t,e,r){try{"insertRule"in t?t.insertRule(e,r):"appendRule"in t&&t.appendRule(e)}catch(t){return!1}return t.cssRules[r]},ut=function(t,e){var r=t.cssRules.length;return void 0===e||e>r?r:e},pt=function(){function t(t){this.getPropertyValue=ot,this.setProperty=st,this.removeProperty=at,this.setSelector=At,this.hasInsertedRules=!1,this.cssRules=[],t&&$.add(t),this.sheet=t;var e,r=this.sheet?this.sheet.options:{},n=r.media,i=r.meta,o=r.element;this.element=o||((e=document.createElement("style")).textContent="\n",e),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),i&&this.element.setAttribute("data-meta",i);var s=ct();s&&this.element.setAttribute("nonce",s)}var e=t.prototype;return e.attach=function(){if(!this.element.parentNode&&this.sheet){!function(t,e){var r=e.insertionPoint,n=function(t){var e=$.registry;if(e.length>0){var r=function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n.attached&&n.options.index>e.index&&n.options.insertionPoint===e.insertionPoint)return n}return null}(e,t);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(t,e){for(var r=t.length-1;r>=0;r--){var n=t[r];if(n.attached&&n.options.insertionPoint===e.insertionPoint)return n}return null}(e,t),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=t.insertionPoint;if(n&&"string"==typeof n){var i=function(t){for(var e=lt(),r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===t)return n}return null}(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(e);if(!1!==n&&n.parent)n.parent.insertBefore(t,n.node);else if(r&&"number"==typeof r.nodeType){var i=r,o=i.parentNode;o&&o.insertBefore(t,i.nextSibling)}else lt().appendChild(t)}(this.element,this.sheet.options);var t=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&t&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var t=this.element.parentNode;t&&t.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},e.deploy=function(){var t=this.sheet;t&&(t.options.link?this.insertRules(t.rules):this.element.textContent="\n"+t.toString()+"\n")},e.insertRules=function(t,e){for(var r=0;r<t.index.length;r++)this.insertRule(t.index[r],r,e)},e.insertRule=function(t,e,r){if(void 0===r&&(r=this.element.sheet),t.rules){var n=t,i=r;if("conditional"===t.type||"keyframes"===t.type){var o=ut(r,e);if(!1===(i=ht(r,n.toString({children:!1}),o)))return!1;this.refCssRule(t,o,i)}return this.insertRules(n.rules,i),i}var s=t.toString();if(!s)return!1;var a=ut(r,e),A=ht(r,s,a);return!1!==A&&(this.hasInsertedRules=!0,this.refCssRule(t,a,A),A)},e.refCssRule=function(t,e,r){t.renderable=r,t.options.parent instanceof J&&this.cssRules.splice(e,0,r)},e.deleteRule=function(t){var e=this.element.sheet,r=this.indexOf(t);return-1!==r&&(e.deleteRule(r),this.cssRules.splice(r,1),!0)},e.indexOf=function(t){return this.cssRules.indexOf(t)},e.replaceRule=function(t,e){var r=this.indexOf(t);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(e,r))},e.getRules=function(){return this.element.sheet.cssRules},t}(),ft=0,dt=function(){function t(t){this.id=ft++,this.version="10.10.0",this.plugins=new Z,this.options={id:{minify:!1},createGenerateId:nt,Renderer:s.A?pt:null,plugins:[]},this.generateId=nt({minify:!1});for(var e=0;e<q.length;e++)this.plugins.use(q[e],{queue:"internal"});this.setup(t)}var e=t.prototype;return e.setup=function(t){return void 0===t&&(t={}),t.createGenerateId&&(this.options.createGenerateId=t.createGenerateId),t.id&&(this.options.id=(0,i.A)({},this.options.id,t.id)),(t.createGenerateId||t.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=t.insertionPoint&&(this.options.insertionPoint=t.insertionPoint),"Renderer"in t&&(this.options.Renderer=t.Renderer),t.plugins&&this.use.apply(this,t.plugins),this},e.createStyleSheet=function(t,e){void 0===e&&(e={});var r=e.index;"number"!=typeof r&&(r=0===$.index?0:$.index+1);var n=new J(t,(0,i.A)({},e,{jss:this,generateId:e.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},e.removeStyleSheet=function(t){return t.detach(),$.remove(t),this},e.createRule=function(t,e,r){if(void 0===e&&(e={}),void 0===r&&(r={}),"object"==typeof t)return this.createRule(void 0,t,e);var n=(0,i.A)({},r,{name:t,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=p(t,e,n);return o&&this.plugins.onProcessRule(o),o},e.use=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.forEach(function(e){t.plugins.use(e)}),this},t}(),gt=function(t){return new dt(t)},mt="object"==typeof CSS&&null!=CSS&&"number"in CSS;function yt(t){var e=null;for(var r in t){var n=t[r],i=typeof n;if("function"===i)e||(e={}),e[r]=n;else if("object"===i&&null!==n&&!Array.isArray(n)){var o=yt(n);o&&(e||(e={}),e[r]=o)}}return e}function vt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.baseClasses,r=t.newClasses;if(t.Component,!r)return e;var n=(0,i.A)({},e);return Object.keys(r).forEach(function(t){r[t]&&(n[t]="".concat(e[t]," ").concat(r[t]))}),n}gt();var bt={set:function(t,e,r,n){var i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(r,n)},get:function(t,e,r){var n=t.get(e);return n?n.get(r):void 0},delete:function(t,e,r){t.get(e).delete(r)}};const wt=bt;var xt=r(14925);const Bt="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var Ct=["checked","disabled","error","focused","focusVisible","required","expanded","selected"],_t=Date.now(),Et="fnValues"+_t,St="fnStyle"+ ++_t;var It="@global",Ft=function(){function t(t,e,r){for(var n in this.type="global",this.at=It,this.isProcessed=!1,this.key=t,this.options=r,this.rules=new X((0,i.A)({},r,{parent:this})),e)this.rules.add(n,e[n]);this.rules.process()}var e=t.prototype;return e.getRule=function(t){return this.rules.get(t)},e.addRule=function(t,e,r){var n=this.rules.add(t,e,r);return n&&this.options.jss.plugins.onProcessRule(n),n},e.replaceRule=function(t,e,r){var n=this.rules.replace(t,e,r);return n&&this.options.jss.plugins.onProcessRule(n),n},e.indexOf=function(t){return this.rules.indexOf(t)},e.toString=function(t){return this.rules.toString(t)},t}(),Tt=function(){function t(t,e,r){this.type="global",this.at=It,this.isProcessed=!1,this.key=t,this.options=r;var n=t.substr(8);this.rule=r.jss.createRule(n,e,(0,i.A)({},r,{parent:this}))}return t.prototype.toString=function(t){return this.rule?this.rule.toString(t):""},t}(),kt=/\s*,\s*/g;function Lt(t,e){for(var r=t.split(kt),n="",i=0;i<r.length;i++)n+=e+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}var Pt=/\s*,\s*/g,Mt=/&/g,Dt=/\$([\w-]+)/g;var Nt=/[A-Z]/g,Ot=/^ms-/,Ut={};function Qt(t){return"-"+t.toLowerCase()}const Rt=function(t){if(Ut.hasOwnProperty(t))return Ut[t];var e=t.replace(Nt,Qt);return Ut[t]=Ot.test(e)?"-"+e:e};function jt(t){var e={};for(var r in t)e[0===r.indexOf("--")?r:Rt(r)]=t[r];return t.fallbacks&&(Array.isArray(t.fallbacks)?e.fallbacks=t.fallbacks.map(jt):e.fallbacks=jt(t.fallbacks)),e}var Ht=mt&&CSS?CSS.px:"px",Vt=mt&&CSS?CSS.ms:"ms",zt=mt&&CSS?CSS.percent:"%";function Gt(t){var e=/(-[a-z])/g,r=function(t){return t[1].toUpperCase()},n={};for(var i in t)n[i]=t[i],n[i.replace(e,r)]=t[i];return n}var Kt=Gt({"animation-delay":Vt,"animation-duration":Vt,"background-position":Ht,"background-position-x":Ht,"background-position-y":Ht,"background-size":Ht,border:Ht,"border-bottom":Ht,"border-bottom-left-radius":Ht,"border-bottom-right-radius":Ht,"border-bottom-width":Ht,"border-left":Ht,"border-left-width":Ht,"border-radius":Ht,"border-right":Ht,"border-right-width":Ht,"border-top":Ht,"border-top-left-radius":Ht,"border-top-right-radius":Ht,"border-top-width":Ht,"border-width":Ht,"border-block":Ht,"border-block-end":Ht,"border-block-end-width":Ht,"border-block-start":Ht,"border-block-start-width":Ht,"border-block-width":Ht,"border-inline":Ht,"border-inline-end":Ht,"border-inline-end-width":Ht,"border-inline-start":Ht,"border-inline-start-width":Ht,"border-inline-width":Ht,"border-start-start-radius":Ht,"border-start-end-radius":Ht,"border-end-start-radius":Ht,"border-end-end-radius":Ht,margin:Ht,"margin-bottom":Ht,"margin-left":Ht,"margin-right":Ht,"margin-top":Ht,"margin-block":Ht,"margin-block-end":Ht,"margin-block-start":Ht,"margin-inline":Ht,"margin-inline-end":Ht,"margin-inline-start":Ht,padding:Ht,"padding-bottom":Ht,"padding-left":Ht,"padding-right":Ht,"padding-top":Ht,"padding-block":Ht,"padding-block-end":Ht,"padding-block-start":Ht,"padding-inline":Ht,"padding-inline-end":Ht,"padding-inline-start":Ht,"mask-position-x":Ht,"mask-position-y":Ht,"mask-size":Ht,height:Ht,width:Ht,"min-height":Ht,"max-height":Ht,"min-width":Ht,"max-width":Ht,bottom:Ht,left:Ht,top:Ht,right:Ht,inset:Ht,"inset-block":Ht,"inset-block-end":Ht,"inset-block-start":Ht,"inset-inline":Ht,"inset-inline-end":Ht,"inset-inline-start":Ht,"box-shadow":Ht,"text-shadow":Ht,"column-gap":Ht,"column-rule":Ht,"column-rule-width":Ht,"column-width":Ht,"font-size":Ht,"font-size-delta":Ht,"letter-spacing":Ht,"text-decoration-thickness":Ht,"text-indent":Ht,"text-stroke":Ht,"text-stroke-width":Ht,"word-spacing":Ht,motion:Ht,"motion-offset":Ht,outline:Ht,"outline-offset":Ht,"outline-width":Ht,perspective:Ht,"perspective-origin-x":zt,"perspective-origin-y":zt,"transform-origin":zt,"transform-origin-x":zt,"transform-origin-y":zt,"transform-origin-z":zt,"transition-delay":Vt,"transition-duration":Vt,"vertical-align":Ht,"flex-basis":Ht,"shape-margin":Ht,size:Ht,gap:Ht,grid:Ht,"grid-gap":Ht,"row-gap":Ht,"grid-row-gap":Ht,"grid-column-gap":Ht,"grid-template-rows":Ht,"grid-template-columns":Ht,"grid-auto-rows":Ht,"grid-auto-columns":Ht,"box-shadow-x":Ht,"box-shadow-y":Ht,"box-shadow-blur":Ht,"box-shadow-spread":Ht,"font-line-height":Ht,"text-shadow-x":Ht,"text-shadow-y":Ht,"text-shadow-blur":Ht});function qt(t,e,r){if(null==e)return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)e[n]=qt(t,e[n],r);else if("object"==typeof e)if("fallbacks"===t)for(var i in e)e[i]=qt(i,e[i],r);else for(var o in e)e[o]=qt(t+"-"+o,e[o],r);else if("number"==typeof e&&!1===isNaN(e)){var s=r[t]||Kt[t];return!s||0===e&&s===Ht?e.toString():"function"==typeof s?s(e).toString():""+e+s}return e}var Wt=r(83160);var Yt,Xt=gt({plugins:[{onCreateRule:function(t,e,r){if("function"!=typeof e)return null;var n=p(t,{},r);return n[St]=e,n},onProcessStyle:function(t,e){if(Et in e||St in e)return t;var r={};for(var n in t){var i=t[n];"function"==typeof i&&(delete t[n],r[n]=i)}return e[Et]=r,t},onUpdate:function(t,e,r,n){var i=e,o=i[St];o&&(i.style=o(t)||{});var s=i[Et];if(s)for(var a in s)i.prop(a,s[a](t),n)}},{onCreateRule:function(t,e,r){if(!t)return null;if(t===It)return new Ft(t,e,r);if("@"===t[0]&&"@global "===t.substr(0,8))return new Tt(t,e,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=t),null},onProcessRule:function(t,e){"style"===t.type&&e&&(function(t,e){var r=t.options,n=t.style,o=n?n[It]:null;if(o){for(var s in o)e.addRule(s,o[s],(0,i.A)({},r,{selector:Lt(s,t.selector)}));delete n[It]}}(t,e),function(t,e){var r=t.options,n=t.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===It){var s=Lt(o.substr(7),t.selector);e.addRule(s,n[o],(0,i.A)({},r,{selector:s})),delete n[o]}}(t,e))}},function(){function t(t,e){return function(r,n){var i=t.getRule(n)||e&&e.getRule(n);return i?i.selector:n}}function e(t,e){for(var r=e.split(Pt),n=t.split(Pt),i="",o=0;o<r.length;o++)for(var s=r[o],a=0;a<n.length;a++){var A=n[a];i&&(i+=", "),i+=-1!==A.indexOf("&")?A.replace(Mt,s):s+" "+A}return i}function r(t,e,r){if(r)return(0,i.A)({},r,{index:r.index+1});var n=t.options.nestingLevel;n=void 0===n?1:n+1;var o=(0,i.A)({},t.options,{nestingLevel:n,index:e.indexOf(t)+1});return delete o.name,o}return{onProcessStyle:function(n,o,s){if("style"!==o.type)return n;var a,A,l=o,c=l.options.parent;for(var h in n){var u=-1!==h.indexOf("&"),p="@"===h[0];if(u||p){if(a=r(l,c,a),u){var f=e(h,l.selector);A||(A=t(c,s)),f=f.replace(Dt,A);var d=l.key+"-"+h;"replaceRule"in c?c.replaceRule(d,n[h],(0,i.A)({},a,{selector:f})):c.addRule(d,n[h],(0,i.A)({},a,{selector:f}))}else p&&c.addRule(h,{},a).addRule(l.key,n[h],{selector:l.selector});delete n[h]}}return n}}}(),{onProcessStyle:function(t){if(Array.isArray(t)){for(var e=0;e<t.length;e++)t[e]=jt(t[e]);return t}return jt(t)},onChangeValue:function(t,e,r){if(0===e.indexOf("--"))return t;var n=Rt(e);return e===n?t:(r.prop(n,t),null)}},function(t){void 0===t&&(t={});var e=Gt(t);return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n in t)t[n]=qt(n,t[n],e);return t},onChangeValue:function(t,r){return qt(r,t,e)}}}(),"undefined"==typeof window?null:function(){function t(e){for(var r in e){var n=e[r];if("fallbacks"===r&&Array.isArray(n))e[r]=n.map(t);else{var i=!1,o=(0,Wt.u8)(r);o&&o!==r&&(i=!0);var s=!1,a=(0,Wt.cO)(o,d(n));a&&a!==n&&(s=!0),(i||s)&&(i&&delete e[r],e[o||r]=a||n)}}return e}return{onProcessRule:function(t){if("keyframes"===t.type){var e=t;e.at=(0,Wt.mR)(e.at)}},onProcessStyle:function(e,r){return"style"!==r.type?e:t(e)},onChangeValue:function(t,e){return(0,Wt.cO)(e,d(t))||t}}}(),(Yt=function(t,e){return t.length===e.length?t>e?1:-1:t.length-e.length},{onProcessStyle:function(t,e){if("style"!==e.type)return t;for(var r={},n=Object.keys(t).sort(Yt),i=0;i<n.length;i++)r[n[i]]=t[n[i]];return r}})]}),Jt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.disableGlobal,r=void 0!==e&&e,n=t.productionPrefix,i=void 0===n?"jss":n,o=t.seed,s=void 0===o?"":o,a=""===s?"":"".concat(s,"-"),A=0,l=function(){return A+=1};return function(t,e){var n=e.options.name;if(n&&0===n.indexOf("Mui")&&!e.options.link&&!r){if(-1!==Ct.indexOf(t.key))return"Mui-".concat(t.key);var o="".concat(a).concat(n,"-").concat(t.key);return e.options.theme[Bt]&&""===s?"".concat(o,"-").concat(l()):o}return"".concat(a).concat(i).concat(l())}}(),Zt={disableGeneration:!1,generateClassName:Jt,jss:Xt,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},$t=o.createContext(Zt),te=-1e9,ee=r(57148);const re={};function ne(t,e){var r=t.state,n=t.theme,o=t.stylesOptions,s=t.stylesCreator,a=t.name;if(!o.disableGeneration){var A=wt.get(o.sheetsManager,s,n);A||(A={refs:0,staticSheet:null,dynamicStyles:null},wt.set(o.sheetsManager,s,n,A));var l=(0,i.A)({},s.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===A.refs){var h;o.sheetsCache&&(h=wt.get(o.sheetsCache,s,n));var u=s.create(n,a);h||((h=o.jss.createStyleSheet(u,(0,i.A)({link:!1},l))).attach(),o.sheetsCache&&wt.set(o.sheetsCache,s,n,h)),c&&c.add(h),A.staticSheet=h,A.dynamicStyles=yt(u)}if(A.dynamicStyles){var p=o.jss.createStyleSheet(A.dynamicStyles,(0,i.A)({link:!0},l));p.update(e),p.attach(),r.dynamicSheet=p,r.classes=vt({baseClasses:A.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else r.classes=A.staticSheet.classes;A.refs+=1}}function ie(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.name,s=e.classNamePrefix,a=e.Component,A=e.defaultTheme,l=void 0===A?re:A,c=(0,n.A)(e,["name","classNamePrefix","Component","defaultTheme"]),h=function(t){var e="function"==typeof t;return{create:function(r,n){var o;try{o=e?t(r):t}catch(t){throw t}if(!n||!r.overrides||!r.overrides[n])return o;var s=r.overrides[n],a=(0,i.A)({},o);return Object.keys(s).forEach(function(t){a[t]=(0,ee.A)(a[t],s[t])}),a},options:{}}}(t),u=r||s||"makeStyles";return h.options={index:te+=1,name:r,meta:u,classNamePrefix:u},function(){var t,e,n,s,A,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=(0,xt.A)()||l,f=(0,i.A)({},o.useContext($t),c),d=o.useRef(),g=o.useRef();t=function(){var t={name:r,state:{},stylesCreator:h,stylesOptions:f,theme:p};return ne(t,u),g.current=!1,d.current=t,function(){!function(t){var e=t.state,r=t.theme,n=t.stylesOptions,i=t.stylesCreator;if(!n.disableGeneration){var o=wt.get(n.sheetsManager,i,r);o.refs-=1;var s=n.sheetsRegistry;0===o.refs&&(wt.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(o.staticSheet),s&&s.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),s&&s.remove(e.dynamicSheet))}}(t)}},e=[p,h],s=o.useRef([]),A=o.useMemo(function(){return{}},e),s.current!==A&&(s.current=A,n=t()),o.useEffect(function(){return function(){n&&n()}},[A]),o.useEffect(function(){g.current&&function(t,e){var r=t.state;r.dynamicSheet&&r.dynamicSheet.update(e)}(d.current,u),g.current=!0});var m=function(t,e,r){var n=t.state;if(t.stylesOptions.disableGeneration)return e||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,i=!0),e!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=e,i=!0),i&&(n.cacheClasses.value=vt({baseClasses:n.cacheClasses.lastJSS,newClasses:e,Component:r})),n.cacheClasses.value}(d.current,u.classes,a);return m}}},14925(t,e,r){"use strict";r.d(e,{A:()=>o});var n=r(22155);const i=n.createContext(null);function o(){return n.useContext(i)}},57148(t,e,r){"use strict";r.d(e,{A:()=>s});var n=r(67311),i=r(35681);function o(t){return t&&"object"===(0,i.A)(t)&&t.constructor===Object}function s(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=r.clone?(0,n.A)({},t):t;return o(t)&&o(e)&&Object.keys(e).forEach(function(n){"__proto__"!==n&&(o(e[n])&&n in t?i[n]=s(t[n],e[n],r):i[n]=e[n])}),i}},58195(t,e,r){"use strict";function n(t){for(var e="https://mui.com/production-error/?code="+t,r=1;r<arguments.length;r+=1)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+t+"; visit "+e+" for the full message."}r.d(e,{A:()=>n})},27477(t,e,r){"use strict";r.d(e,{Ay:()=>ct,qj:()=>nt,gi:()=>et,VC:()=>rt,J1:()=>$,Nh:()=>tt});var n=r(65959);function i(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}const o=/\r\n|[\n\r]/g;function s(t,e){let r=0,n=1;for(const s of t.body.matchAll(o)){if("number"==typeof s.index||i(!1),s.index>=e)break;r=s.index+s[0].length,n+=1}return{line:n,column:e+1-r}}function a(t){return A(t.source,s(t.source,t.start))}function A(t,e){const r=t.locationOffset.column-1,n="".padStart(r)+t.body,i=e.line-1,o=t.locationOffset.line-1,s=e.line+o,a=1===e.line?r:0,A=e.column+a,c=`${t.name}:${s}:${A}\n`,h=n.split(/\r\n|[\n\r]/g),u=h[i];if(u.length>120){const t=Math.floor(A/80),e=A%80,r=[];for(let t=0;t<u.length;t+=80)r.push(u.slice(t,t+80));return c+l([[`${s} |`,r[0]],...r.slice(1,t+1).map(t=>["|",t]),["|","^".padStart(e)],["|",r[t+1]]])}return c+l([[s-1+" |",h[i-1]],[`${s} |`,u],["|","^".padStart(A)],[`${s+1} |`,h[i+1]]])}function l(t){const e=t.filter(([t,e])=>void 0!==e),r=Math.max(...e.map(([t])=>t.length));return e.map(([t,e])=>t.padStart(r)+(e?" "+e:"")).join("\n")}class c extends Error{constructor(t,e,r,n,i,o,a){var A,l,u;super(t),this.name="GraphQLError",this.path=null!=i?i:void 0,this.originalError=null!=o?o:void 0,this.nodes=h(Array.isArray(e)?e:e?[e]:void 0);const p=h(null===(A=this.nodes)||void 0===A?void 0:A.map(t=>t.loc).filter(t=>null!=t));this.source=null!=r?r:null==p||null===(l=p[0])||void 0===l?void 0:l.source,this.positions=null!=n?n:null==p?void 0:p.map(t=>t.start),this.locations=n&&r?n.map(t=>s(r,t)):null==p?void 0:p.map(t=>s(t.source,t.start));const f="object"==typeof(d=null==o?void 0:o.extensions)&&null!==d?null==o?void 0:o.extensions:void 0;var d;this.extensions=null!==(u=null!=a?a:f)&&void 0!==u?u:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=o&&o.stack?Object.defineProperty(this,"stack",{value:o.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const e of this.nodes)e.loc&&(t+="\n\n"+a(e.loc));else if(this.source&&this.locations)for(const e of this.locations)t+="\n\n"+A(this.source,e);return t}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function h(t){return void 0===t||0===t.length?void 0:t}function u(t,e,r){return new c(`Syntax Error: ${r}`,void 0,t,[e])}var p=r(49270),f=r(34695);let d;!function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"}(d||(d={}));var g=r(55565),m=r(234);class y{constructor(t,e="GraphQL request",r={line:1,column:1}){"string"==typeof t||(0,m.U)(!1,`Body must be a string. Received: ${(0,g.N)(t)}.`),this.body=t,this.name=e,this.locationOffset=r,this.locationOffset.line>0||(0,m.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,m.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}let v;!function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(v||(v={}));var b=r(22359);function w(t){return t>=48&&t<=57}function x(t){return t>=97&&t<=122||t>=65&&t<=90}function B(t){return x(t)||95===t}function C(t){return x(t)||w(t)||95===t}class _{constructor(t){const e=new f.ou(d.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==d.EOF)do{if(t.next)t=t.next;else{const e=L(this,t.end);t.next=e,e.prev=t,t=e}}while(t.kind===d.COMMENT);return t}}function E(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function S(t,e){return I(t.charCodeAt(e))&&F(t.charCodeAt(e+1))}function I(t){return t>=55296&&t<=56319}function F(t){return t>=56320&&t<=57343}function T(t,e){const r=t.source.body.codePointAt(e);if(void 0===r)return d.EOF;if(r>=32&&r<=126){const t=String.fromCodePoint(r);return'"'===t?"'\"'":`"${t}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function k(t,e,r,n,i){const o=t.line,s=1+r-t.lineStart;return new f.ou(e,r,n,o,s,i)}function L(t,e){const r=t.source.body,n=r.length;let i=e;for(;i<n;){const e=r.charCodeAt(i);switch(e){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++t.line,t.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++t.line,t.lineStart=i;continue;case 35:return P(t,i);case 33:return k(t,d.BANG,i,i+1);case 36:return k(t,d.DOLLAR,i,i+1);case 38:return k(t,d.AMP,i,i+1);case 40:return k(t,d.PAREN_L,i,i+1);case 41:return k(t,d.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return k(t,d.SPREAD,i,i+3);break;case 58:return k(t,d.COLON,i,i+1);case 61:return k(t,d.EQUALS,i,i+1);case 64:return k(t,d.AT,i,i+1);case 91:return k(t,d.BRACKET_L,i,i+1);case 93:return k(t,d.BRACKET_R,i,i+1);case 123:return k(t,d.BRACE_L,i,i+1);case 124:return k(t,d.PIPE,i,i+1);case 125:return k(t,d.BRACE_R,i,i+1);case 34:return 34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)?H(t,i):N(t,i)}if(w(e)||45===e)return M(t,i,e);if(B(e))return V(t,i);throw u(t.source,i,39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":E(e)||S(r,i)?`Unexpected character: ${T(t,i)}.`:`Invalid character: ${T(t,i)}.`)}return k(t,d.EOF,n,n)}function P(t,e){const r=t.source.body,n=r.length;let i=e+1;for(;i<n;){const t=r.charCodeAt(i);if(10===t||13===t)break;if(E(t))++i;else{if(!S(r,i))break;i+=2}}return k(t,d.COMMENT,e,i,r.slice(e+1,i))}function M(t,e,r){const n=t.source.body;let i=e,o=r,s=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(o=n.charCodeAt(++i),w(o))throw u(t.source,i,`Invalid number, unexpected digit after 0: ${T(t,i)}.`)}else i=D(t,i,o),o=n.charCodeAt(i);if(46===o&&(s=!0,o=n.charCodeAt(++i),i=D(t,i,o),o=n.charCodeAt(i)),69!==o&&101!==o||(s=!0,o=n.charCodeAt(++i),43!==o&&45!==o||(o=n.charCodeAt(++i)),i=D(t,i,o),o=n.charCodeAt(i)),46===o||B(o))throw u(t.source,i,`Invalid number, expected digit but got: ${T(t,i)}.`);return k(t,s?d.FLOAT:d.INT,e,i,n.slice(e,i))}function D(t,e,r){if(!w(r))throw u(t.source,e,`Invalid number, expected digit but got: ${T(t,e)}.`);const n=t.source.body;let i=e+1;for(;w(n.charCodeAt(i));)++i;return i}function N(t,e){const r=t.source.body,n=r.length;let i=e+1,o=i,s="";for(;i<n;){const n=r.charCodeAt(i);if(34===n)return s+=r.slice(o,i),k(t,d.STRING,e,i+1,s);if(92===n){s+=r.slice(o,i);const e=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?O(t,i):U(t,i):j(t,i);s+=e.value,i+=e.size,o=i;continue}if(10===n||13===n)break;if(E(n))++i;else{if(!S(r,i))throw u(t.source,i,`Invalid character within String: ${T(t,i)}.`);i+=2}}throw u(t.source,i,"Unterminated string.")}function O(t,e){const r=t.source.body;let n=0,i=3;for(;i<12;){const t=r.charCodeAt(e+i++);if(125===t){if(i<5||!E(n))break;return{value:String.fromCodePoint(n),size:i}}if(n=n<<4|R(t),n<0)break}throw u(t.source,e,`Invalid Unicode escape sequence: "${r.slice(e,e+i)}".`)}function U(t,e){const r=t.source.body,n=Q(r,e+2);if(E(n))return{value:String.fromCodePoint(n),size:6};if(I(n)&&92===r.charCodeAt(e+6)&&117===r.charCodeAt(e+7)){const t=Q(r,e+8);if(F(t))return{value:String.fromCodePoint(n,t),size:12}}throw u(t.source,e,`Invalid Unicode escape sequence: "${r.slice(e,e+6)}".`)}function Q(t,e){return R(t.charCodeAt(e))<<12|R(t.charCodeAt(e+1))<<8|R(t.charCodeAt(e+2))<<4|R(t.charCodeAt(e+3))}function R(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function j(t,e){const r=t.source.body;switch(r.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw u(t.source,e,`Invalid character escape sequence: "${r.slice(e,e+2)}".`)}function H(t,e){const r=t.source.body,n=r.length,i=t.line,o=1+e-t.lineStart;let s=e+3,a=s,A="";for(;s<n;){const n=r.charCodeAt(s);if(34===n&&34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2))return A+=r.slice(a,s),new f.ou(d.BLOCK_STRING,e,s+3,i,o,(0,b.i$)(A));if(92!==n||34!==r.charCodeAt(s+1)||34!==r.charCodeAt(s+2)||34!==r.charCodeAt(s+3))if(10!==n&&13!==n)if(E(n))++s;else{if(!S(r,s))throw u(t.source,s,`Invalid character within String: ${T(t,s)}.`);s+=2}else 13===n&&10===r.charCodeAt(s+1)?s+=2:++s,++t.line,t.lineStart=s;else A+=r.slice(a,s)+'"""',s+=4,a=s}throw u(t.source,s,"Unterminated string.")}function V(t,e){const r=t.source.body,n=r.length;let i=e+1;for(;i<n&&C(r.charCodeAt(i));)++i;return k(t,d.NAME,e,i,r.slice(e,i))}class z{constructor(t,e){const r=function(t){return t instanceof y}(t)?t:new y(t);this._lexer=new _(r),this._options=e}parseName(){const t=this.expectToken(d.NAME);return this.node(t,{kind:p.b.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:p.b.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF)})}parseDefinition(){if(this.peek(d.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(e.kind===d.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(d.BRACE_L))return this.node(t,{kind:p.b.OPERATION_DEFINITION,operation:f.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseOperationType();let r;return this.peek(d.NAME)&&(r=this.parseName()),this.node(t,{kind:p.b.OPERATION_DEFINITION,operation:e,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(d.NAME);switch(t.value){case"query":return f.cE.QUERY;case"mutation":return f.cE.MUTATION;case"subscription":return f.cE.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(d.DOLLAR),this.node(t,{kind:p.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.b.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R)})}parseSelection(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let r,n;return this.expectOptionalToken(d.COLON)?(r=e,n=this.parseName()):n=e,this.node(t,{kind:p.b.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.PAREN_L,e,d.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,r=this.parseName();return this.expectToken(d.COLON),this.node(e,{kind:p.b.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(d.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(d.NAME)?this.node(t,{kind:p.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:p.b.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var t;const e=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(t=this._options)||void 0===t?void 0:t.allowLegacyFragmentVariables)?this.node(e,{kind:p.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:p.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case d.BRACKET_L:return this.parseList(t);case d.BRACE_L:return this.parseObject(t);case d.INT:return this._lexer.advance(),this.node(e,{kind:p.b.INT,value:e.value});case d.FLOAT:return this._lexer.advance(),this.node(e,{kind:p.b.FLOAT,value:e.value});case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this._lexer.advance(),e.value){case"true":return this.node(e,{kind:p.b.BOOLEAN,value:!0});case"false":return this.node(e,{kind:p.b.BOOLEAN,value:!1});case"null":return this.node(e,{kind:p.b.NULL});default:return this.node(e,{kind:p.b.ENUM,value:e.value})}case d.DOLLAR:if(t){if(this.expectToken(d.DOLLAR),this._lexer.token.kind===d.NAME){const t=this._lexer.token.value;throw u(this._lexer.source,e.start,`Unexpected variable "$${t}" in constant value.`)}throw this.unexpected(e)}return this.parseVariable()}throw this.unexpected()}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this._lexer.advance(),this.node(t,{kind:p.b.STRING,value:t.value,block:t.kind===d.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:p.b.LIST,values:this.any(d.BRACKET_L,()=>this.parseValueLiteral(t),d.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:p.b.OBJECT,fields:this.any(d.BRACE_L,()=>this.parseObjectField(t),d.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,r=this.parseName();return this.expectToken(d.COLON),this.node(e,{kind:p.b.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(d.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(d.AT),this.node(e,{kind:p.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(d.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(d.BRACKET_R),e=this.node(t,{kind:p.b.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(d.BANG)?this.node(t,{kind:p.b.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:p.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return this.node(t,{kind:p.b.SCHEMA_DEFINITION,description:e,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(d.COLON);const r=this.parseNamedType();return this.node(t,{kind:p.b.OPERATION_TYPE_DEFINITION,operation:e,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(t,{kind:p.b.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:n})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:p.b.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(d.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(d.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:p.b.FIELD_DEFINITION,description:e,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(d.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(d.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(t,{kind:p.b.INPUT_VALUE_DEFINITION,description:e,name:r,type:n,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:p.b.INTERFACE_TYPE_DEFINITION,description:e,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:p.b.UNION_TYPE_DEFINITION,description:e,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:p.b.ENUM_TYPE_DEFINITION,description:e,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(t,{kind:p.b.ENUM_VALUE_DEFINITION,description:e,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw u(this._lexer.source,this._lexer.token.start,`${G(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:p.b.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===d.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),r=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(0===e.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:p.b.SCHEMA_EXTENSION,directives:e,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(t,{kind:p.b.SCALAR_TYPE_EXTENSION,name:e,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:p.b.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:p.b.INTERFACE_TYPE_EXTENSION,name:e,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:p.b.UNION_TYPE_EXTENSION,name:e,directives:r,types:n})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:p.b.ENUM_TYPE_EXTENSION,name:e,directives:r,values:n})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:p.b.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:n})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(t,{kind:p.b.DIRECTIVE_DEFINITION,description:e,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(v,e.value))return e;throw this.unexpected(t)}node(t,e){var r;return!0!==(null===(r=this._options)||void 0===r?void 0:r.noLocation)&&(e.loc=new f.aZ(t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this._lexer.advance(),e;throw u(this._lexer.source,e.start,`Expected ${K(t)}, found ${G(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this._lexer.advance(),!0)}expectKeyword(t){const e=this._lexer.token;if(e.kind!==d.NAME||e.value!==t)throw u(this._lexer.source,e.start,`Expected "${t}", found ${G(e)}.`);this._lexer.advance()}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===d.NAME&&e.value===t&&(this._lexer.advance(),!0)}unexpected(t){const e=null!=t?t:this._lexer.token;return u(this._lexer.source,e.start,`Unexpected ${G(e)}.`)}any(t,e,r){this.expectToken(t);const n=[];for(;!this.expectOptionalToken(r);)n.push(e.call(this));return n}optionalMany(t,e,r){if(this.expectOptionalToken(t)){const t=[];do{t.push(e.call(this))}while(!this.expectOptionalToken(r));return t}return[]}many(t,e,r){this.expectToken(t);const n=[];do{n.push(e.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(t,e){this.expectOptionalToken(t);const r=[];do{r.push(e.call(this))}while(this.expectOptionalToken(t));return r}}function G(t){const e=t.value;return K(t.kind)+(null!=e?` "${e}"`:"")}function K(t){return function(t){return t===d.BANG||t===d.DOLLAR||t===d.AMP||t===d.PAREN_L||t===d.PAREN_R||t===d.SPREAD||t===d.COLON||t===d.EQUALS||t===d.AT||t===d.BRACKET_L||t===d.BRACKET_R||t===d.BRACE_L||t===d.PIPE||t===d.BRACE_R}(t)?`"${t}"`:t}var q=new Map,W=new Map,Y=!0,X=!1;function J(t){return t.replace(/[\s,]+/g," ").trim()}function Z(t){var e=J(t);if(!q.has(e)){var r=function(t,e){return new z(t,e).parseDocument()}(t,{experimentalFragmentVariables:X,allowLegacyFragmentVariables:X});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");q.set(e,function(t){var e=new Set(t.definitions);e.forEach(function(t){t.loc&&delete t.loc,Object.keys(t).forEach(function(r){var n=t[r];n&&"object"==typeof n&&e.add(n)})});var r=t.loc;return r&&(delete r.startToken,delete r.endToken),t}(function(t){var e=new Set,r=[];return t.definitions.forEach(function(t){if("FragmentDefinition"===t.kind){var n=t.name.value,i=J((s=t.loc).source.body.substring(s.start,s.end)),o=W.get(n);o&&!o.has(i)?Y&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||W.set(n,o=new Set),o.add(i),e.has(i)||(e.add(i),r.push(t))}else r.push(t);var s}),(0,n.__assign)((0,n.__assign)({},t),{definitions:r})}(r)))}return q.get(e)}function $(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];"string"==typeof t&&(t=[t]);var n=t[0];return e.forEach(function(e,r){e&&"Document"===e.kind?n+=e.loc.source.body:n+=e,n+=t[r+1]}),Z(n)}function tt(){q.clear(),W.clear()}function et(){Y=!1}function rt(){X=!0}function nt(){X=!1}var it,ot=$,st=tt,at=et,At=rt,lt=nt;(it=$||($={})).gql=ot,it.resetCaches=st,it.disableFragmentWarnings=at,it.enableExperimentalFragmentVariables=At,it.disableExperimentalFragmentVariables=lt,$.default=$;const ct=$},27798(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.prototype.toJSON;"function"==typeof e||(0,n.default)(0),t.prototype.inspect=e,i.default&&(t.prototype[i.default]=e)};var n=o(r(83743)),i=o(r(19263));function o(t){return t&&t.__esModule?t:{default:t}}},79859(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return s(t,[])};var n,i=(n=r(19263))&&n.__esModule?n:{default:n};function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e){switch(o(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return null===t?"null":function(t,e){if(-1!==e.indexOf(t))return"[Circular]";var r=[].concat(e,[t]),n=function(t){var e=t[String(i.default)];return"function"==typeof e?e:"function"==typeof t.inspect?t.inspect:void 0}(t);if(void 0!==n){var o=n.call(t);if(o!==t)return"string"==typeof o?o:s(o,r)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";for(var r=Math.min(10,t.length),n=t.length-r,i=[],o=0;o<r;++o)i.push(s(t[o],e));return 1===n?i.push("... 1 more item"):n>1&&i.push("... ".concat(n," more items")),"["+i.join(", ")+"]"}(t,r);return function(t,e){var r=Object.keys(t);return 0===r.length?"{}":e.length>2?"["+function(t){var e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"==typeof t.constructor){var r=t.constructor.name;if("string"==typeof r&&""!==r)return r}return e}(t)+"]":"{ "+r.map(function(r){return r+": "+s(t[r],e)}).join(", ")+" }"}(t,r)}(t,e);default:return String(t)}}},83743(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}},19263(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;e.default=r},84679(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNode=function(t){return null!=t&&"string"==typeof t.kind},e.Token=e.Location=void 0;var n,i=(n=r(27798))&&n.__esModule?n:{default:n},o=function(){function t(t,e,r){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=r}return t.prototype.toJSON=function(){return{start:this.start,end:this.end}},t}();e.Location=o,(0,i.default)(o);var s=function(){function t(t,e,r,n,i,o,s){this.kind=t,this.start=e,this.end=r,this.line=n,this.column=i,this.value=s,this.prev=o,this.next=null}return t.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},t}();e.Token=s,(0,i.default)(s)},18023(t,e){"use strict";function r(t){for(var e=0;e<t.length;++e)if(" "!==t[e]&&"\t"!==t[e])return!1;return!0}function n(t){for(var e,r=!0,n=!0,i=0,o=null,s=0;s<t.length;++s)switch(t.charCodeAt(s)){case 13:10===t.charCodeAt(s+1)&&++s;case 10:r=!1,n=!0,i=0;break;case 9:case 32:++i;break;default:n&&!r&&(null===o||i<o)&&(o=i),n=!1}return null!==(e=o)&&void 0!==e?e:0}Object.defineProperty(e,"__esModule",{value:!0}),e.dedentBlockStringValue=function(t){var e=t.split(/\r\n|[\n\r]/g),i=n(t);if(0!==i)for(var o=1;o<e.length;o++)e[o]=e[o].slice(i);for(var s=0;s<e.length&&r(e[s]);)++s;for(var a=e.length;a>s&&r(e[a-1]);)--a;return e.slice(s,a).join("\n")},e.getBlockStringIndentation=n,e.printBlockString=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===t.indexOf("\n"),i=" "===t[0]||"\t"===t[0],o='"'===t[t.length-1],s="\\"===t[t.length-1],a=!n||o||s||r,A="";return!a||n&&i||(A+="\n"+e),A+=e?t.replace(/\n/g,"\n"+e):t,a&&(A+="\n"),'"""'+A.replace(/"""/g,'\\"""')+'"""'}},91911(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.print=function(t){return(0,n.visit)(t,{leave:o})};var n=r(50481),i=r(18023),o={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return a(t.definitions,"\n\n")+"\n"},OperationDefinition:function(t){var e=t.operation,r=t.name,n=l("(",a(t.variableDefinitions,", "),")"),i=a(t.directives," "),o=t.selectionSet;return r||i||n||"query"!==e?a([e,a([r,n]),i,o]," "):o},VariableDefinition:function(t){var e=t.variable,r=t.type,n=t.defaultValue,i=t.directives;return e+": "+r+l(" = ",n)+l(" ",a(i," "))},SelectionSet:function(t){return A(t.selections)},Field:function(t){var e=t.alias,r=t.name,n=t.arguments,i=t.directives,o=t.selectionSet,s=l("",e,": ")+r,A=s+l("(",a(n,", "),")");return A.length>80&&(A=s+l("(\n",c(a(n,"\n")),"\n)")),a([A,a(i," "),o]," ")},Argument:function(t){return t.name+": "+t.value},FragmentSpread:function(t){return"..."+t.name+l(" ",a(t.directives," "))},InlineFragment:function(t){var e=t.typeCondition,r=t.directives,n=t.selectionSet;return a(["...",l("on ",e),a(r," "),n]," ")},FragmentDefinition:function(t){var e=t.name,r=t.typeCondition,n=t.variableDefinitions,i=t.directives,o=t.selectionSet;return"fragment ".concat(e).concat(l("(",a(n,", "),")")," ")+"on ".concat(r," ").concat(l("",a(i," ")," "))+o},IntValue:function(t){return t.value},FloatValue:function(t){return t.value},StringValue:function(t,e){var r=t.value;return t.block?(0,i.printBlockString)(r,"description"===e?"":"  "):JSON.stringify(r)},BooleanValue:function(t){return t.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){return t.value},ListValue:function(t){return"["+a(t.values,", ")+"]"},ObjectValue:function(t){return"{"+a(t.fields,", ")+"}"},ObjectField:function(t){return t.name+": "+t.value},Directive:function(t){return"@"+t.name+l("(",a(t.arguments,", "),")")},NamedType:function(t){return t.name},ListType:function(t){return"["+t.type+"]"},NonNullType:function(t){return t.type+"!"},SchemaDefinition:s(function(t){var e=t.directives,r=t.operationTypes;return a(["schema",a(e," "),A(r)]," ")}),OperationTypeDefinition:function(t){return t.operation+": "+t.type},ScalarTypeDefinition:s(function(t){return a(["scalar",t.name,a(t.directives," ")]," ")}),ObjectTypeDefinition:s(function(t){var e=t.name,r=t.interfaces,n=t.directives,i=t.fields;return a(["type",e,l("implements ",a(r," & ")),a(n," "),A(i)]," ")}),FieldDefinition:s(function(t){var e=t.name,r=t.arguments,n=t.type,i=t.directives;return e+(u(r)?l("(\n",c(a(r,"\n")),"\n)"):l("(",a(r,", "),")"))+": "+n+l(" ",a(i," "))}),InputValueDefinition:s(function(t){var e=t.name,r=t.type,n=t.defaultValue,i=t.directives;return a([e+": "+r,l("= ",n),a(i," ")]," ")}),InterfaceTypeDefinition:s(function(t){var e=t.name,r=t.interfaces,n=t.directives,i=t.fields;return a(["interface",e,l("implements ",a(r," & ")),a(n," "),A(i)]," ")}),UnionTypeDefinition:s(function(t){var e=t.name,r=t.directives,n=t.types;return a(["union",e,a(r," "),n&&0!==n.length?"= "+a(n," | "):""]," ")}),EnumTypeDefinition:s(function(t){var e=t.name,r=t.directives,n=t.values;return a(["enum",e,a(r," "),A(n)]," ")}),EnumValueDefinition:s(function(t){return a([t.name,a(t.directives," ")]," ")}),InputObjectTypeDefinition:s(function(t){var e=t.name,r=t.directives,n=t.fields;return a(["input",e,a(r," "),A(n)]," ")}),DirectiveDefinition:s(function(t){var e=t.name,r=t.arguments,n=t.repeatable,i=t.locations;return"directive @"+e+(u(r)?l("(\n",c(a(r,"\n")),"\n)"):l("(",a(r,", "),")"))+(n?" repeatable":"")+" on "+a(i," | ")}),SchemaExtension:function(t){var e=t.directives,r=t.operationTypes;return a(["extend schema",a(e," "),A(r)]," ")},ScalarTypeExtension:function(t){return a(["extend scalar",t.name,a(t.directives," ")]," ")},ObjectTypeExtension:function(t){var e=t.name,r=t.interfaces,n=t.directives,i=t.fields;return a(["extend type",e,l("implements ",a(r," & ")),a(n," "),A(i)]," ")},InterfaceTypeExtension:function(t){var e=t.name,r=t.interfaces,n=t.directives,i=t.fields;return a(["extend interface",e,l("implements ",a(r," & ")),a(n," "),A(i)]," ")},UnionTypeExtension:function(t){var e=t.name,r=t.directives,n=t.types;return a(["extend union",e,a(r," "),n&&0!==n.length?"= "+a(n," | "):""]," ")},EnumTypeExtension:function(t){var e=t.name,r=t.directives,n=t.values;return a(["extend enum",e,a(r," "),A(n)]," ")},InputObjectTypeExtension:function(t){var e=t.name,r=t.directives,n=t.fields;return a(["extend input",e,a(r," "),A(n)]," ")}};function s(t){return function(e){return a([e.description,t(e)],"\n")}}function a(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(e=null==t?void 0:t.filter(function(t){return t}).join(r))&&void 0!==e?e:""}function A(t){return l("{\n",c(a(t,"\n")),"\n}")}function l(t,e){return null!=e&&""!==e?t+e+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function c(t){return l("  ",t.replace(/\n/g,"\n  "))}function h(t){return-1!==t.indexOf("\n")}function u(t){return null!=t&&t.some(h)}},50481(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.visit=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s,n=void 0,l=Array.isArray(t),c=[t],h=-1,u=[],p=void 0,f=void 0,d=void 0,g=[],m=[],y=t;do{var v=++h===c.length,b=v&&0!==u.length;if(v){if(f=0===m.length?void 0:g[g.length-1],p=d,d=m.pop(),b){if(l)p=p.slice();else{for(var w={},x=0,B=Object.keys(p);x<B.length;x++){var C=B[x];w[C]=p[C]}p=w}for(var _=0,E=0;E<u.length;E++){var S=u[E][0],I=u[E][1];l&&(S-=_),l&&null===I?(p.splice(S,1),_++):p[S]=I}}h=n.index,c=n.keys,u=n.edits,l=n.inArray,n=n.prev}else{if(f=d?l?h:c[h]:void 0,null==(p=d?d[f]:y))continue;d&&g.push(f)}var F,T=void 0;if(!Array.isArray(p)){if(!(0,o.isNode)(p))throw new Error("Invalid AST Node: ".concat((0,i.default)(p),"."));var k=A(e,p.kind,v);if(k){if((T=k.call(e,p,f,d,g,m))===a)break;if(!1===T){if(!v){g.pop();continue}}else if(void 0!==T&&(u.push([f,T]),!v)){if(!(0,o.isNode)(T)){g.pop();continue}p=T}}}void 0===T&&b&&u.push([f,p]),v?g.pop():(n={inArray:l,index:h,keys:c,edits:u,prev:n},c=(l=Array.isArray(p))?p:null!==(F=r[p.kind])&&void 0!==F?F:[],h=-1,u=[],d&&m.push(d),d=p)}while(void 0!==n);return 0!==u.length&&(y=u[u.length-1][1]),y},e.visitInParallel=function(t){var e=new Array(t.length);return{enter:function(r){for(var n=0;n<t.length;n++)if(null==e[n]){var i=A(t[n],r.kind,!1);if(i){var o=i.apply(t[n],arguments);if(!1===o)e[n]=r;else if(o===a)e[n]=a;else if(void 0!==o)return o}}},leave:function(r){for(var n=0;n<t.length;n++)if(null==e[n]){var i=A(t[n],r.kind,!0);if(i){var o=i.apply(t[n],arguments);if(o===a)e[n]=a;else if(void 0!==o&&!1!==o)return o}}else e[n]===r&&(e[n]=null)}}},e.getVisitFn=A,e.BREAK=e.QueryDocumentKeys=void 0;var n,i=(n=r(79859))&&n.__esModule?n:{default:n},o=r(84679),s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};e.QueryDocumentKeys=s;var a=Object.freeze({});function A(t,e,r){var n=t[e];if(n){if(!r&&"function"==typeof n)return n;var i=r?n.leave:n.enter;if("function"==typeof i)return i}else{var o=r?t.leave:t.enter;if(o){if("function"==typeof o)return o;var s=o[e];if("function"==typeof s)return s}}}e.BREAK=a},491(t,e,r){"use strict";var n=r(39886),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},21514(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(9712);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},9712(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},77185(t,e,r){"use strict";var n=r(9712);t.exports=function(){return n()&&!!Symbol.toStringTag}},57824(t,e,r){"use strict";var n=r(56608).Buffer,i=r(66096).Transform;function o(t){i.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(91193)(o,i),o.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)};var s="undefined"!=typeof Uint8Array,a="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&ArrayBuffer.isView&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);o.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");t=function(t,e){if(t instanceof n)return t;if("string"==typeof t)return n.from(t,e);if(a&&ArrayBuffer.isView(t)){if(0===t.byteLength)return n.alloc(0);var r=n.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}if(s&&t instanceof Uint8Array)return n.from(t);if(n.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return n.from(t);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(t,e);for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var A=0,l=8*t.length;l>0;++A)this._length[A]+=l,(l=this._length[A]/4294967296|0)>0&&(this._length[A]-=4294967296*l);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},41002(t,e,r){"use strict";var n=r(56608).Buffer,i=r(18836),o=r(9464).Transform;function s(t){o.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(91193)(s,o),s.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},s.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");for(var r=i(t,e),n=this._block,o=0;this._blockOffset+r.length-o>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)n[s]=r[o],s+=1,o+=1;this._update(),this._blockOffset=0}for(;o<r.length;)n[this._blockOffset]=r[o],this._blockOffset+=1,o+=1;for(var a=0,A=8*r.length;A>0;++a)this._length[a]+=A,(A=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*A);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},18836(t,e,r){"use strict";var n=r(56608).Buffer,i=r(26919),o="undefined"!=typeof Uint8Array,s=o&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;t.exports=function(t,e){if("string"==typeof t||n.isBuffer(t)||o&&t instanceof Uint8Array||s&&s(t))return i(t,e);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}},61631(t,e,r){var n=e;n.utils=r(27905),n.common=r(14427),n.sha=r(61822),n.ripemd=r(47317),n.hmac=r(67309),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},14427(t,e,r){"use strict";var n=r(27905),i=r(35578);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=t>>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},67309(t,e,r){"use strict";var n=r(27905),i=r(35578);function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},47317(t,e,r){"use strict";var n=r(27905),i=r(14427),o=n.rotl32,s=n.sum32,a=n.sum32_3,A=n.sum32_4,l=i.BlockHash;function c(){if(!(this instanceof c))return new c;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function u(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function p(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(c,l),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],l=this.h[3],c=this.h[4],y=r,v=n,b=i,w=l,x=c,B=0;B<80;B++){var C=s(o(A(r,h(B,n,i,l),t[f[B]+e],u(B)),g[B]),c);r=c,c=l,l=o(i,10),i=n,n=C,C=s(o(A(y,h(79-B,v,b,w),t[d[B]+e],p(B)),m[B]),x),y=x,x=w,w=o(b,10),b=v,v=C}C=a(this.h[1],i,w),this.h[1]=a(this.h[2],l,x),this.h[2]=a(this.h[3],c,y),this.h[3]=a(this.h[4],r,v),this.h[4]=a(this.h[0],n,b),this.h[0]=C},c.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],d=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},61822(t,e,r){"use strict";e.sha1=r(90369),e.sha224=r(37485),e.sha256=r(77292),e.sha384=r(40696),e.sha512=r(58889)},90369(t,e,r){"use strict";var n=r(27905),i=r(14427),o=r(45660),s=n.rotl32,a=n.sum32,A=n.sum32_5,l=o.ft_1,c=i.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(u,c),t.exports=u,u.blockSize=512,u.outSize=160,u.hmacStrength=80,u.padLength=64,u.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=s(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],u=this.h[3],p=this.h[4];for(n=0;n<r.length;n++){var f=~~(n/20),d=A(s(i,5),l(f,o,c,u),p,r[n],h[f]);p=u,u=c,c=s(o,30),o=i,i=d}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],c),this.h[3]=a(this.h[3],u),this.h[4]=a(this.h[4],p)},u.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},37485(t,e,r){"use strict";var n=r(27905),i=r(77292);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},77292(t,e,r){"use strict";var n=r(27905),i=r(14427),o=r(45660),s=r(35578),a=n.sum32,A=n.sum32_4,l=n.sum32_5,c=o.ch32,h=o.maj32,u=o.s0_256,p=o.s1_256,f=o.g0_256,d=o.g1_256,g=i.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}n.inherits(y,g),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=A(d(r[n-2]),r[n-7],f(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],v=this.h[5],b=this.h[6],w=this.h[7];for(s(this.k.length===r.length),n=0;n<r.length;n++){var x=l(w,p(y),c(y,v,b),this.k[n],r[n]),B=a(u(i),h(i,o,g));w=b,b=v,v=y,y=a(m,x),m=g,g=o,o=i,i=a(x,B)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],v),this.h[6]=a(this.h[6],b),this.h[7]=a(this.h[7],w)},y.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},40696(t,e,r){"use strict";var n=r(27905),i=r(58889);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},58889(t,e,r){"use strict";var n=r(27905),i=r(14427),o=r(35578),s=n.rotr64_hi,a=n.rotr64_lo,A=n.shr64_hi,l=n.shr64_lo,c=n.sum64,h=n.sum64_hi,u=n.sum64_lo,p=n.sum64_4_hi,f=n.sum64_4_lo,d=n.sum64_5_hi,g=n.sum64_5_lo,m=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function b(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function w(t,e,r,n,i,o){var s=e&n^~e&o;return s<0&&(s+=4294967296),s}function x(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function B(t,e,r,n,i,o){var s=e&n^e&o^n&o;return s<0&&(s+=4294967296),s}function C(t,e){var r=s(t,e,28)^s(e,t,2)^s(e,t,7);return r<0&&(r+=4294967296),r}function _(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}function E(t,e){var r=s(t,e,14)^s(t,e,18)^s(e,t,9);return r<0&&(r+=4294967296),r}function S(t,e){var r=a(t,e,14)^a(t,e,18)^a(e,t,9);return r<0&&(r+=4294967296),r}function I(t,e){var r=s(t,e,1)^s(t,e,8)^A(t,e,7);return r<0&&(r+=4294967296),r}function F(t,e){var r=a(t,e,1)^a(t,e,8)^l(t,e,7);return r<0&&(r+=4294967296),r}function T(t,e){var r=s(t,e,19)^s(e,t,29)^A(t,e,6);return r<0&&(r+=4294967296),r}function k(t,e){var r=a(t,e,19)^a(e,t,29)^l(t,e,6);return r<0&&(r+=4294967296),r}n.inherits(v,m),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var i=T(r[n-4],r[n-3]),o=k(r[n-4],r[n-3]),s=r[n-14],a=r[n-13],A=I(r[n-30],r[n-29]),l=F(r[n-30],r[n-29]),c=r[n-32],h=r[n-31];r[n]=p(i,o,s,a,A,l,c,h),r[n+1]=f(i,o,s,a,A,l,c,h)}},v.prototype._update=function(t,e){this._prepareBlock(t,e);var r=this.W,n=this.h[0],i=this.h[1],s=this.h[2],a=this.h[3],A=this.h[4],l=this.h[5],p=this.h[6],f=this.h[7],m=this.h[8],y=this.h[9],v=this.h[10],I=this.h[11],F=this.h[12],T=this.h[13],k=this.h[14],L=this.h[15];o(this.k.length===r.length);for(var P=0;P<r.length;P+=2){var M=k,D=L,N=E(m,y),O=S(m,y),U=b(m,0,v,0,F),Q=w(0,y,0,I,0,T),R=this.k[P],j=this.k[P+1],H=r[P],V=r[P+1],z=d(M,D,N,O,U,Q,R,j,H,V),G=g(M,D,N,O,U,Q,R,j,H,V);M=C(n,i),D=_(n,i),N=x(n,0,s,0,A),O=B(0,i,0,a,0,l);var K=h(M,D,N,O),q=u(M,D,N,O);k=F,L=T,F=v,T=I,v=m,I=y,m=h(p,f,z,G),y=u(f,f,z,G),p=A,f=l,A=s,l=a,s=n,a=i,n=h(z,G,K,q),i=u(z,G,K,q)}c(this.h,0,n,i),c(this.h,2,s,a),c(this.h,4,A,l),c(this.h,6,p,f),c(this.h,8,m,y),c(this.h,10,v,I),c(this.h,12,F,T),c(this.h,14,k,L)},v.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},45660(t,e,r){"use strict";var n=r(27905).rotr32;function i(t,e,r){return t&e^~t&r}function o(t,e,r){return t&e^t&r^e&r}function s(t,e,r){return t^e^r}e.ft_1=function(t,e,r,n){return 0===t?i(e,r,n):1===t||3===t?s(e,r,n):2===t?o(e,r,n):void 0},e.ch32=i,e.maj32=o,e.p32=s,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},27905(t,e,r){"use strict";var n=r(35578),i=r(91193);function o(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function A(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var n=0,i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?r[n++]=s:s<2048?(r[n++]=s>>6|192,r[n++]=63&s|128):o(t,i)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=63&s|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=63&s|128)}else for(i=0;i<t.length;i++)r[i]=0|t[i];return r},e.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=a(t[r].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];"little"===e&&(i=s(i)),r+=A(i.toString(16))}return r},e.zero2=a,e.zero8=A,e.join32=function(t,e,r,i){var o=r-e;n(o%4==0);for(var s=new Array(o/4),a=0,A=e;a<s.length;a++,A+=4){var l;l="big"===i?t[A]<<24|t[A+1]<<16|t[A+2]<<8|t[A+3]:t[A+3]<<24|t[A+2]<<16|t[A+1]<<8|t[A],s[a]=l>>>0}return s},e.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];"big"===e?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},e.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},e.sum64=function(t,e,r,n){var i=t[e],o=n+t[e+1]>>>0,s=(o<n?1:0)+r+i;t[e]=s>>>0,t[e+1]=o},e.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,i,o,s,a){var A=0,l=e;return A+=(l=l+n>>>0)<e?1:0,A+=(l=l+o>>>0)<o?1:0,t+r+i+s+(A+=(l=l+a>>>0)<a?1:0)>>>0},e.sum64_4_lo=function(t,e,r,n,i,o,s,a){return e+n+o+a>>>0},e.sum64_5_hi=function(t,e,r,n,i,o,s,a,A,l){var c=0,h=e;return c+=(h=h+n>>>0)<e?1:0,c+=(h=h+o>>>0)<o?1:0,c+=(h=h+a>>>0)<a?1:0,t+r+i+s+A+(c+=(h=h+l>>>0)<l?1:0)>>>0},e.sum64_5_lo=function(t,e,r,n,i,o,s,a,A,l){return e+n+o+a+l>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},75630(t,e,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(79524);t.exports=o.call(n,i)},73474(t){"use strict";t.exports=(t,e)=>{if("string"!=typeof t||!/^#([A-Fa-f0-9]{3}$|[A-Fa-f0-9]{6}$|[A-Fa-f0-9]{8}$)/.test(t))throw new Error("Invalid hexadecimal color value");if("number"!=typeof e||e>1||e<0)throw new Error("Opacity should be float between 0 - 1");let r=t.substring(1);return 8===r.length&&(r=r.substring(0,r.length-2)),3===r.length&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),r+=Math.round(255*e).toString(16).padStart(2,"0"),`#${r}`.toUpperCase()}},34768(t,e,r){var n;"undefined"!=typeof self&&self,t.exports=(n=r(22155),function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,r){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n.apply(this,arguments)}function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),r.d(e,"HighchartsReact",function(){return c});var a=r(1),A=r.n(a),l="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,c=Object(a.memo)(Object(a.forwardRef)(function(t,e){var r=Object(a.useRef)(),o=Object(a.useRef)(),c=Object(a.useRef)(t.constructorType),h=Object(a.useRef)(t.highcharts);return l(function(){function e(){var e=t.highcharts||"object"===("undefined"==typeof window?"undefined":s(window))&&window.Highcharts,n=t.constructorType||"chart";e?e[n]?t.options?o.current=e[n](r.current,t.options,t.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(o.current){if(!1!==t.allowChartUpdate)if(t.constructorType!==c.current||t.highcharts!==h.current)c.current=t.constructorType,h.current=t.highcharts,e();else if(!t.immutable&&o.current){var n;(n=o.current).update.apply(n,[t.options].concat(i(t.updateArgs||[!0,!0])))}else e()}else e()},[t.options,t.allowChartUpdate,t.updateArgs,t.containerProps,t.highcharts,t.constructorType]),l(function(){return function(){o.current&&(o.current.destroy(),o.current=null)}},[]),Object(a.useImperativeHandle)(e,function(){return{get chart(){return o.current},container:r}},[]),A.a.createElement("div",n({},t.containerProps,{ref:r}))}));e.default=c},function(t,e){t.exports=n}]))},29132(t,e,r){var n,i,o;o=function(t){function e(t,e,r,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,r),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}e(t=t?t._modules:{},"Extensions/Pane.js",[t["Core/Chart/Chart.js"],t["Series/CenteredUtilities.js"],t["Core/Globals.js"],t["Core/Pointer.js"],t["Core/Utilities.js"]],function(t,e,r,n,i){function o(t,e,r,n,i){var o=!0,s=r[0],l=r[1],c=Math.sqrt(Math.pow(t-s,2)+Math.pow(e-l,2));return A(n)&&A(i)&&(t=Math.atan2(a(e-l,8),a(t-s,8)),i!==n&&(o=n>i?t>=n&&t<=Math.PI||t<=i&&t>=-Math.PI:t>=n&&t<=a(i,8))),c<=Math.ceil(r[2]/2)&&o}var s=i.addEvent,a=i.correctFloat,A=i.defined,l=i.extend,c=i.merge,h=i.pick,u=i.splat;return t.prototype.collectionsWithUpdate.push("pane"),i=function(){function t(t,e){this.options=this.chart=this.center=this.background=void 0,this.coll="pane",this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},this.init(t,e)}return t.prototype.init=function(t,e){this.chart=e,this.background=[],e.pane.push(this),this.setOptions(t)},t.prototype.setOptions=function(t){this.options=c(this.defaultOptions,this.chart.angular?{background:{}}:void 0,t)},t.prototype.render=function(){var t=this.options,e=this.options.background,r=this.chart.renderer;if(this.group||(this.group=r.g("pane-group").attr({zIndex:t.zIndex||0}).add()),this.updateCenter(),e)for(e=u(e),t=Math.max(e.length,this.background.length||0),r=0;r<t;r++)e[r]&&this.axis?this.renderBackground(c(this.defaultBackgroundOptions,e[r]),r):this.background[r]&&(this.background[r]=this.background[r].destroy(),this.background.splice(r,1))},t.prototype.renderBackground=function(t,e){var r="animate",n={class:"highcharts-pane "+(t.className||"")};this.chart.styledMode||l(n,{fill:t.backgroundColor,stroke:t.borderColor,"stroke-width":t.borderWidth}),this.background[e]||(this.background[e]=this.chart.renderer.path().add(this.group),r="attr"),this.background[e][r]({d:this.axis.getPlotBandPath(t.from,t.to,t)}).attr(n)},t.prototype.updateCenter=function(t){this.center=(t||this.axis||{}).center=e.getCenter.call(this)},t.prototype.update=function(t,e){c(!0,this.options,t),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(t){t.pane===this&&(t.pane=null,t.update({},e))},this)},t}(),t.prototype.getHoverPane=function(t){var e,r=this;return t&&r.pane.forEach(function(n){o(t.chartX-r.plotLeft,t.chartY-r.plotTop,n.center)&&(e=n)}),e},s(t,"afterIsInsidePlot",function(t){if(this.polar){if(t.options.inverted){var e=[t.y,t.x];t.x=e[0],t.y=e[1]}t.isInsidePlot=this.pane.some(function(e){return o(t.x,t.y,e.center,e.axis&&e.axis.normalizedStartAngleRad,e.axis&&e.axis.normalizedEndAngleRad)})}}),s(n,"beforeGetHoverData",function(t){var e=this.chart;e.polar?(e.hoverPane=e.getHoverPane(t),t.filter=function(r){return r.visible&&!(!t.shared&&r.directTouch)&&h(r.options.enableMouseTracking,!0)&&(!e.hoverPane||r.xAxis.pane===e.hoverPane)}):e.hoverPane=void 0}),s(n,"afterGetHoverData",function(t){var e=this.chart;t.hoverPoint&&t.hoverPoint.plotX&&t.hoverPoint.plotY&&e.hoverPane&&!o(t.hoverPoint.plotX,t.hoverPoint.plotY,e.hoverPane.center)&&(t.hoverPoint=void 0)}),r.Pane=i,r.Pane}),e(t,"Series/AreaRange/AreaRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),n=(t=t.seriesTypes.area.prototype).pointClass.prototype,i=e.defined,o=e.isNumber;return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.high=void 0,e.low=void 0,e.options=void 0,e.plotX=void 0,e.series=void 0,e}return r(e,t),e.prototype.setState=function(){var t=this.state,e=this.series,r=e.chart.polar;i(this.plotHigh)||(this.plotHigh=e.yAxis.toPixels(this.high,!0)),i(this.plotLow)||(this.plotLow=this.plotY=e.yAxis.toPixels(this.low,!0)),e.stateMarkerGraphic&&(e.lowerStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.upperStateMarkerGraphic),this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,r&&o(this.plotHighX)&&(this.plotX=this.plotHighX),n.setState.apply(this,arguments),this.state=t,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],r&&o(this.plotLowX)&&(this.plotX=this.plotLowX),e.stateMarkerGraphic&&(e.upperStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.lowerStateMarkerGraphic,e.lowerStateMarkerGraphic=void 0),n.setState.apply(this,arguments)},e.prototype.haloPath=function(){var t=this.series.chart.polar,e=[];return this.plotY=this.plotLow,t&&o(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(e=n.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,t&&o(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(e=e.concat(n.haloPath.apply(this,arguments))),e},e.prototype.isValid=function(){return o(this.low)&&o(this.high)},e}(t.pointClass)}),e(t,"Series/AreaRange/AreaRangeSeries.js",[t["Series/AreaRange/AreaRangePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,n){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();e=e.noop;var o=r.seriesTypes,s=o.area,a=o.area.prototype,A=o.column.prototype;o=n.addEvent;var l=n.defined,c=n.extend,h=n.isArray,u=n.isNumber,p=n.pick,f=n.merge,d={lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}};return n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e.lowerStateMarkerGraphic=void 0,e.xAxis=void 0,e}return i(e,t),e.prototype.toYData=function(t){return[t.low,t.high]},e.prototype.highToXY=function(t){var e=this.chart,r=this.xAxis.postTranslate(t.rectPlotX||0,this.yAxis.len-(t.plotHigh||0));t.plotHighX=r.x-e.plotLeft,t.plotHigh=r.y-e.plotTop,t.plotLowX=t.plotX},e.prototype.getGraphPath=function(t){var e,r=[],n=[],i=a.getGraphPath,o=this.options,s=this.chart.polar,A=s&&!1!==o.connectEnds,l=o.connectNulls,c=o.step;for(e=(t=t||this.points).length;e--;){var h=t[e],u=s?{plotX:h.rectPlotX,plotY:h.yBottom,doCurve:!1}:{plotX:h.plotX,plotY:h.plotY,doCurve:!1};h.isNull||A||l||t[e+1]&&!t[e+1].isNull||n.push(u);var f={polarPlotY:h.polarPlotY,rectPlotX:h.rectPlotX,yBottom:h.yBottom,plotX:p(h.plotHighX,h.plotX),plotY:h.plotHigh,isNull:h.isNull};n.push(f),r.push(f),h.isNull||A||l||t[e-1]&&!t[e-1].isNull||n.push(u)}return t=i.call(this,t),c&&(!0===c&&(c="left"),o.step={left:"right",center:"center",right:"left"}[c]),r=i.call(this,r),n=i.call(this,n),o.step=c,o=[].concat(t,r),!this.chart.polar&&n[0]&&"M"===n[0][0]&&(n[0]=["L",n[0][1],n[0][2]]),this.graphPath=o,this.areaPath=t.concat(n),o.isArea=!0,o.xMap=t.xMap,this.areaPath.xMap=t.xMap,o},e.prototype.drawDataLabels=function(){var t,e,r=this.points,n=r.length,i=[],o=this.options.dataLabels,s=this.chart.inverted;if(o){if(h(o))var A=o[0]||{enabled:!1},l=o[1]||{enabled:!1};else(A=c({},o)).x=o.xHigh,A.y=o.yHigh,(l=c({},o)).x=o.xLow,l.y=o.yLow;if(A.enabled||this._hasPointLabels){for(t=n;t--;)if(e=r[t]){var u=e.plotHigh;u=void 0===u?0:u;var p=e.plotLow;p=void 0===p?0:p,p=A.inside?u<p:u>p,e.y=e.high,e._plotY=e.plotY,e.plotY=u,i[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=p,s?A.align||(A.align=p?"right":"left"):A.verticalAlign||(A.verticalAlign=p?"top":"bottom")}for(this.options.dataLabels=A,a.drawDataLabels&&a.drawDataLabels.apply(this,arguments),t=n;t--;)(e=r[t])&&(e.dataLabelUpper=e.dataLabel,e.dataLabel=i[t],delete e.dataLabels,e.y=e.low,e.plotY=e._plotY)}if(l.enabled||this._hasPointLabels){for(t=n;t--;)(e=r[t])&&(u=void 0===(i=e.plotHigh)?0:i,p=void 0===(i=e.plotLow)?0:i,p=l.inside?u<p:u>p,e.below=!p,s?l.align||(l.align=p?"left":"right"):l.verticalAlign||(l.verticalAlign=p?"bottom":"top"));this.options.dataLabels=l,a.drawDataLabels&&a.drawDataLabels.apply(this,arguments)}if(A.enabled)for(t=n;t--;)(e=r[t])&&(e.dataLabels=[e.dataLabelUpper,e.dataLabel].filter(function(t){return!!t}));this.options.dataLabels=o}},e.prototype.alignDataLabel=function(){A.alignDataLabel.apply(this,arguments)},e.prototype.drawPoints=function(){var t,e=this.points.length;for(a.drawPoints.apply(this,arguments),t=0;t<e;){var r=this.points[t];r.graphics=r.graphics||[],r.origProps={plotY:r.plotY,plotX:r.plotX,isInside:r.isInside,negative:r.negative,zone:r.zone,y:r.y},(r.graphic||r.graphics[0])&&(r.graphics[0]=r.graphic),r.graphic=r.graphics[1],r.plotY=r.plotHigh,l(r.plotHighX)&&(r.plotX=r.plotHighX),r.y=p(r.high,r.origProps.y),r.negative=r.y<(this.options.threshold||0),this.zones.length&&(r.zone=r.getZone()),this.chart.polar||(r.isInside=r.isTopInside=void 0!==r.plotY&&0<=r.plotY&&r.plotY<=this.yAxis.len&&0<=r.plotX&&r.plotX<=this.xAxis.len),t++}for(a.drawPoints.apply(this,arguments),t=0;t<e;)(r=this.points[t]).graphics=r.graphics||[],(r.graphic||r.graphics[1])&&(r.graphics[1]=r.graphic),r.graphic=r.graphics[0],r.origProps&&(c(r,r.origProps),delete r.origProps),t++},e.defaultOptions=f(s.defaultOptions,d),e}(s),o(n,"afterTranslate",function(){var t=this;"low,high"===this.pointArrayMap.join(",")&&this.points.forEach(function(e){var r=e.high,n=e.plotY;e.isNull?e.plotY=void 0:(e.plotLow=n,e.plotHigh=u(r)?t.yAxis.translate(t.dataModify?t.dataModify.modifyValue(r):r,!1,!0,void 0,!0):void 0,t.dataModify&&(e.yBottom=e.plotHigh))})},{order:0}),o(n,"afterTranslate",function(){var t=this;this.points.forEach(function(e){if(t.chart.polar)t.highToXY(e),e.plotLow=e.plotY,e.tooltipPos=[((e.plotHighX||0)+(e.plotLowX||0))/2,((e.plotHigh||0)+(e.plotLow||0))/2];else{var r=e.pos(!1,e.plotLow),n=e.pos(!1,e.plotHigh);r&&n&&(r[0]=(r[0]+n[0])/2,r[1]=(r[1]+n[1])/2),e.tooltipPos=r}})},{order:3}),c(n.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:t,pointValKey:"low",setStackedPoints:e}),r.registerSeriesType("arearange",n),n}),e(t,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[t["Series/AreaRange/AreaRangeSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=e.seriesTypes.spline.prototype,o=r.merge;r=r.extend;var s=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.data=void 0,t.points=void 0,t}return n(r,e),r.defaultOptions=o(t.defaultOptions),r}(t);return r(s.prototype,{getPointSpline:i.getPointSpline}),e.registerSeriesType("areasplinerange",s),s}),e(t,"Series/BoxPlot/BoxPlotSeries.js",[t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,n){var i=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();e=e.noop;var o=n.extend,s=n.merge,a=n.pick;return n=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(r,e),r.prototype.pointAttribs=function(){return{}},r.prototype.translate=function(){var t=this.yAxis,r=this.pointArrayMap;e.prototype.translate.apply(this),this.points.forEach(function(e){r.forEach(function(r){null!==e[r]&&(e[r+"Plot"]=t.translate(e[r],0,1,0,1))}),e.plotHigh=e.highPlot})},r.prototype.drawPoints=function(){var t,e,r,n,i,o,s,A,l,c,h,u=this,p=u.options,f=u.chart,d=f.renderer,g=0,m=!1!==u.doQuartiles,y=u.options.whiskerLength;u.points.forEach(function(v){var b=v.graphic,w=b?"animate":"attr",x=v.shapeArgs,B={},C={},_={},E={},S=v.color||u.color;void 0!==v.plotY&&(s=Math.round(x.width),A=Math.floor(x.x),l=A+s,c=Math.round(s/2),t=Math.floor(m?v.q1Plot:v.lowPlot),e=Math.floor(m?v.q3Plot:v.lowPlot),r=Math.floor(v.highPlot),n=Math.floor(v.lowPlot),b||(v.graphic=b=d.g("point").add(u.group),v.stem=d.path().addClass("highcharts-boxplot-stem").add(b),y&&(v.whiskers=d.path().addClass("highcharts-boxplot-whisker").add(b)),m&&(v.box=d.path(void 0).addClass("highcharts-boxplot-box").add(b)),v.medianShape=d.path(void 0).addClass("highcharts-boxplot-median").add(b)),f.styledMode||(C.stroke=v.stemColor||p.stemColor||S,C["stroke-width"]=a(v.stemWidth,p.stemWidth,p.lineWidth),C.dashstyle=v.stemDashStyle||p.stemDashStyle||p.dashStyle,v.stem.attr(C),y&&(_.stroke=v.whiskerColor||p.whiskerColor||S,_["stroke-width"]=a(v.whiskerWidth,p.whiskerWidth,p.lineWidth),_.dashstyle=v.whiskerDashStyle||p.whiskerDashStyle||p.dashStyle,v.whiskers.attr(_)),m&&(B.fill=v.fillColor||p.fillColor||S,B.stroke=p.lineColor||S,B["stroke-width"]=p.lineWidth||0,B.dashstyle=v.boxDashStyle||p.boxDashStyle||p.dashStyle,v.box.attr(B)),E.stroke=v.medianColor||p.medianColor||S,E["stroke-width"]=a(v.medianWidth,p.medianWidth,p.lineWidth),E.dashstyle=v.medianDashStyle||p.medianDashStyle||p.dashStyle,v.medianShape.attr(E)),o=v.stem.strokeWidth()%2/2,b=[["M",g=A+c+o,e],["L",g,r],["M",g,t],["L",g,n]],v.stem[w]({d:b}),m&&(o=v.box.strokeWidth()%2/2,t=Math.floor(t)+o,e=Math.floor(e)+o,b=[["M",A+=o,e],["L",A,t],["L",l+=o,t],["L",l,e],["L",A,e],["Z"]],v.box[w]({d:b})),y&&(o=v.whiskers.strokeWidth()%2/2,r+=o,n+=o,h=/%$/.test(y)?c*parseFloat(y)/100:y/2,b=[["M",g-h,r],["L",g+h,r],["M",g-h,n],["L",g+h,n]],v.whiskers[w]({d:b})),i=Math.round(v.medianPlot),o=v.medianShape.strokeWidth()%2/2,b=[["M",A,i+=o],["L",l,i]],v.medianShape[w]({d:b}))})},r.prototype.toYData=function(t){return[t.low,t.q1,t.median,t.q3,t.high]},r.defaultOptions=s(t.defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),r}(t),o(n.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:e,setStackedPoints:e}),r.registerSeriesType("boxplot",n),n}),e(t,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),e(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/FormatUtilities.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(t,e,r,n){var i=t.parse,o=r.noop,s=n.arrayMax,a=n.arrayMin,A=n.isNumber,l=n.merge,c=n.pick,h=n.stableSort;return t=function(){function t(t,e){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.fontMetrics=this.chart=void 0,this.setState=o,this.init(t,e)}return t.prototype.init=function(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e},t.prototype.addToLegend=function(t){t.splice(this.options.legendIndex,0,this)},t.prototype.drawLegendSymbol=function(t){var e=this.chart,r=c(t.options.itemDistance,20),n=this.legendItem||{},i=this.options,o=i.ranges,s=i.connectorDistance;this.fontMetrics=e.renderer.fontMetrics(i.labels.style.fontSize),o&&o.length&&A(o[0].value)?(h(o,function(t,e){return e.value-t.value}),this.ranges=o,this.setOptions(),this.render(),t=this.getMaxLabelSize(),e=2*(o=this.ranges[0].radius),s=0<(s=s-o+t.width)?s:0,this.maxLabel=t,this.movementX="left"===i.labels.align?s:0,n.labelWidth=e+s+r,n.labelHeight=e+this.fontMetrics.h/2):t.options.bubbleLegend.autoRanges=!0},t.prototype.setOptions=function(){var t=this.ranges,e=this.options,r=this.chart.series[e.seriesIndex],n=this.legend.baseline,o={zIndex:e.zIndex,"stroke-width":e.borderWidth},s={zIndex:e.zIndex,"stroke-width":e.connectorWidth},a={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},A=r.options.marker.fillOpacity,h=this.chart.styledMode;t.forEach(function(u,p){h||(o.stroke=c(u.borderColor,e.borderColor,r.color),o.fill=c(u.color,e.color,1!==A?i(r.color).setOpacity(A).get("rgba"):r.color),s.stroke=c(u.connectorColor,e.connectorColor,r.color)),t[p].radius=this.getRangeRadius(u.value),t[p]=l(t[p],{center:t[0].radius-t[p].radius+n}),h||l(!0,t[p],{bubbleAttribs:l(o),connectorAttribs:l(s),labelAttribs:a})},this)},t.prototype.getRangeRadius=function(t){var e=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,e.ranges[e.ranges.length-1].value,e.ranges[0].value,e.minSize,e.maxSize,t)},t.prototype.render=function(){var t=this.legendItem||{},e=this.chart.renderer,r=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t.symbol=e.g("bubble-legend"),t.label=e.g("bubble-legend-item"),t.symbol.translateX=0,e=t.symbol.translateY=0;for(var n=this.ranges;e<n.length;e++){var i=n[e];i.value>=r&&this.renderRange(i)}t.symbol.add(t.label),t.label.add(t.group),this.hideOverlappingLabels()},t.prototype.renderRange=function(t){var e=this.options,r=e.labels,n=this.chart,i=n.series[e.seriesIndex],o=n.renderer,s=this.symbols;n=s.labels;var a=t.center,A=Math.abs(t.radius),l=e.connectorDistance||0,c=r.align,h=e.connectorWidth,u=this.ranges[0].radius||0,p=a-A-e.borderWidth/2+h/2,f=this.fontMetrics;f=f.f/2-(f.h-f.f)/2;var d=o.styledMode;l=this.legend.options.rtl||"left"===c?-l:l,"center"===c&&(l=0,e.connectorDistance=0,t.labelAttribs.align="center"),c=p+e.labels.y;var g=u+l+e.labels.x;s.bubbleItems.push(o.circle(u,a+((p%1?1:.5)-(h%2?0:.5)),A).attr(d?{}:t.bubbleAttribs).addClass((d?"highcharts-color-"+i.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e.className||"")).add(this.legendItem.symbol)),s.connectors.push(o.path(o.crispLine([["M",u,p],["L",u+l,p]],e.connectorWidth)).attr(d?{}:t.connectorAttribs).addClass((d?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e.connectorClassName||"")).add(this.legendItem.symbol)),t=o.text(this.formatLabel(t),g,c+f).attr(d?{}:t.labelAttribs).css(d?{}:r.style).addClass("highcharts-bubble-legend-labels "+(e.labels.className||"")).add(this.legendItem.symbol),n.push(t),t.placed=!0,t.alignAttr={x:g,y:c+f}},t.prototype.getMaxLabelSize=function(){var t,e;return this.symbols.labels.forEach(function(r){e=r.getBBox(!0),t=t?e.width>t.width?e:t:e}),t||{}},t.prototype.formatLabel=function(t){var r=this.options,n=r.labels.formatter;r=r.labels.format;var i=this.chart.numberFormatter;return r?e.format(r,t):n?n.call(t):i(t.value,1)},t.prototype.hideOverlappingLabels=function(){var t=this.chart,e=this.symbols;!this.options.labels.allowOverlap&&e&&(t.hideOverlappingLabels(e.labels),e.labels.forEach(function(t,r){t.newOpacity?t.newOpacity!==t.oldOpacity&&e.connectors[r].show():e.connectors[r].hide()}))},t.prototype.getRanges=function(){var t,e=this.legend.bubbleLegend,r=e.options.ranges,n=Number.MAX_VALUE,i=-Number.MAX_VALUE;e.chart.series.forEach(function(e){e.isBubble&&!e.ignoreSeries&&(t=e.zData.filter(A)).length&&(n=c(e.options.zMin,Math.min(n,Math.max(a(t),!1===e.options.displayNegative?e.options.zThreshold:-Number.MAX_VALUE))),i=c(e.options.zMax,Math.max(i,s(t))))});var o=n===i?[{value:i}]:[{value:n},{value:(n+i)/2},{value:i,autoRanges:!0}];return r.length&&r[0].radius&&o.reverse(),o.forEach(function(t,e){r&&r[e]&&(o[e]=l(r[e],t))}),o},t.prototype.predictBubbleSizes=function(){var t=this.chart,e=this.fontMetrics,r=t.legend.options,n=r.floating,i=(r="horizontal"===r.layout)?t.legend.lastLineHeight:0,o=t.plotSizeX,s=t.plotSizeY,a=t.series[this.options.seriesIndex],A=a.getPxExtremes();t=Math.ceil(A.minPxSize),A=Math.ceil(A.maxPxSize);var l=Math.min(s,o);return a=a.options.maxSize,n||!/%$/.test(a)?e=A:(a=parseFloat(a),e=(l+i-e.h/2)*a/100/(a/100+1),(r&&s-e>=o||!r&&o-e>=s)&&(e=A)),[t,Math.ceil(e)]},t.prototype.updateRanges=function(t,e){var r=this.legend.options.bubbleLegend;r.minSize=t,r.maxSize=e,r.ranges=this.getRanges()},t.prototype.correctSizes=function(){var t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())},t}(),t}),e(t,"Series/Bubble/BubbleLegendComposition.js",[t["Series/Bubble/BubbleLegendDefaults.js"],t["Series/Bubble/BubbleLegendItem.js"],t["Core/Defaults.js"],t["Core/Utilities.js"]],function(t,e,r,n){function i(t,e,r){var n,i=this.legend,a=0<=o(this);if(i&&i.options.enabled&&i.bubbleLegend&&i.options.bubbleLegend.autoRanges&&a){var A=i.bubbleLegend.options;a=i.bubbleLegend.predictBubbleSizes(),i.bubbleLegend.updateRanges(a[0],a[1]),A.placed||(i.group.placed=!1,i.allItems.forEach(function(t){(n=t.legendItem||{}).group&&(n.group.translateY=null)})),i.render(),this.getMargins(),this.axes.forEach(function(t){t.visible&&t.render(),A.placed||(t.setScale(),t.updateNames(),u(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),A.placed=!0,this.getMargins(),t.call(this,e,r),i.bubbleLegend.correctSizes(),l(i,s(i))}else t.call(this,e,r),i&&i.options.enabled&&i.bubbleLegend&&(i.render(),l(i,s(i)))}function o(t){t=t.series;for(var e=0;e<t.length;){if(t[e]&&t[e].isBubble&&t[e].visible&&t[e].zData.length)return e;e++}return-1}function s(t){var e,r=[],n=(t=t.allItems).length,i=0;for(e=0;e<n;e++){var o=t[e].legendItem||{},s=(t[e+1]||{}).legendItem||{};if(o.labelHeight&&(t[e].itemHeight=o.labelHeight),t[e]===t[n-1]||o.y!==s.y){for(r.push({height:0}),o=r[r.length-1];i<=e;i++)t[i].itemHeight>o.height&&(o.height=t[i].itemHeight);o.step=e}}return r}function a(t){var r=this.bubbleLegend,n=this.options,i=n.bubbleLegend,s=o(this.chart);r&&r.ranges&&r.ranges.length&&(i.ranges.length&&(i.autoRanges=!!i.ranges[0].autoRanges),this.destroyItem(r)),0<=s&&n.enabled&&i.enabled&&(i.seriesIndex=s,this.bubbleLegend=new e(i,this),this.bubbleLegend.addToLegend(t.allItems))}function A(){var t=this.chart,e=this.visible,r=this.chart.legend;r&&r.bubbleLegend&&(this.visible=!e,this.ignoreSeries=e,t=0<=o(t),r.bubbleLegend.visible!==t&&(r.update({bubbleLegend:{enabled:t}}),r.bubbleLegend.visible=t),this.visible=e)}function l(t,e){var r,n,i,o,s=t.options.rtl,a=0;t.allItems.forEach(function(t,A){(o=t.legendItem||{}).group&&(r=o.group.translateX||0,n=o.y||0,((i=t.movementX)||s&&t.ranges)&&(i=s?r-t.options.maxSize/2:r+i,o.group.attr({translateX:i})),A>e[a].step&&a++,o.group.attr({translateY:Math.round(n+e[a].height/2)}),o.y=n+e[a].height/2)})}var c=r.setOptions,h=n.addEvent,u=n.objectEach,p=n.wrap,f=[];return{compose:function(e,r,n){-1===f.indexOf(e)&&(f.push(e),c({legend:{bubbleLegend:t}}),p(e.prototype,"drawChartBox",i)),-1===f.indexOf(r)&&(f.push(r),h(r,"afterGetAllItems",a)),-1===f.indexOf(n)&&(f.push(n),h(n,"legendItemClick",A))}}}),e(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();return r=r.extend,e=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.series=void 0,t}return n(r,e),r.prototype.haloPath=function(e){return t.prototype.haloPath.call(this,0===e?0:(this.marker&&this.marker.radius||0)+e)},r}(e.seriesTypes.scatter.prototype.pointClass),r(e.prototype,{ttBelow:!1}),e}),e(t,"Series/Bubble/BubbleSeries.js",[t["Series/Bubble/BubbleLegendComposition.js"],t["Series/Bubble/BubblePoint.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,n,i,o){function s(){var t,e=this,r=this.len,n=this.chart,i=this.isXAxis,o=i?"xData":"yData",s=this.min,a=this.max-s,A=0,l=r,c=r/a;this.series.forEach(function(r){if(r.bubblePadding&&(r.visible||!n.options.chart.ignoreHiddenSeries)){t=e.allowZoomOutside=!0;var h=r[o];if(i&&((r.onPoint||r).getRadii(0,0,r),r.onPoint&&(r.radii=r.onPoint.radii)),0<a)for(var u=h.length;u--;)if(g(h[u])&&e.dataMin<=h[u]&&h[u]<=e.max){var p=r.radii&&r.radii[u]||0;A=Math.min((h[u]-s)*c-p,A),l=Math.max((h[u]-s)*c+p,l)}}}),t&&0<a&&!this.logarithmic&&(l-=r,c*=(r+Math.max(0,A)-Math.min(l,r))/r,[["min","userMin",A],["max","userMax",l]].forEach(function(t){void 0===y(e.options[t[0]],e[t[1]])&&(e[t[0]]+=t[2]/c)}))}var a=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),A=r.parse;r=n.noop;var l=i.series,c=i.seriesTypes;n=c.column.prototype;var h=c.scatter;c=o.addEvent;var u=o.arrayMax,p=o.arrayMin,f=o.clamp,d=o.extend,g=o.isNumber,m=o.merge,y=o.pick,v=[];return o=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.maxPxSize=void 0,t.minPxSize=void 0,t.options=void 0,t.points=void 0,t.radii=void 0,t.yData=void 0,t.zData=void 0,t}return a(r,e),r.compose=function(e,r,n,i){t.compose(r,n,i),-1===v.indexOf(e)&&(v.push(e),e.prototype.beforePadding=s)},r.prototype.animate=function(t){!t&&this.points.length<this.options.animationLimit&&this.points.forEach(function(t){var e=t.graphic;e&&e.width&&(this.hasRendered||e.attr({x:t.plotX,y:t.plotY,width:1,height:1}),e.animate(this.markerAttribs(t),this.options.animation))},this)},r.prototype.getRadii=function(){var t=this,e=this.zData,r=this.yData,n=[],i=this.chart.bubbleZExtremes,o=this.getPxExtremes(),s=o.minPxSize,a=o.maxPxSize;if(!i){var A,l=Number.MAX_VALUE,c=-Number.MAX_VALUE;this.chart.series.forEach(function(e){e.bubblePadding&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&(e=(e.onPoint||e).getZExtremes())&&(l=Math.min(l||e.zMin,e.zMin),c=Math.max(c||e.zMax,e.zMax),A=!0)}),A?(i={zMin:l,zMax:c},this.chart.bubbleZExtremes=i):i={zMin:0,zMax:0}}var h=0;for(o=e.length;h<o;h++){var u=e[h];n.push(this.getRadius(i.zMin,i.zMax,s,a,u,r&&r[h]))}this.radii=n},r.prototype.getRadius=function(t,e,r,n,i,o){var s=this.options,a="width"!==s.sizeBy,A=s.zThreshold,l=e-t,c=.5;if(null===o||null===i)return null;if(g(i)){if(s.sizeByAbsoluteValue&&(i=Math.abs(i-A),l=Math.max(e-A,Math.abs(t-A)),t=0),i<t)return r/2-1;0<l&&(c=(i-t)/l)}return a&&0<=c&&(c=Math.sqrt(c)),Math.ceil(r+c*(n-r))/2},r.prototype.hasData=function(){return!!this.processedXData.length},r.prototype.pointAttribs=function(t,e){var r=this.options.marker.fillOpacity;return t=l.prototype.pointAttribs.call(this,t,e),1!==r&&(t.fill=A(t.fill).setOpacity(r).get("rgba")),t},r.prototype.translate=function(){e.prototype.translate.call(this),this.getRadii(),this.translateBubble()},r.prototype.translateBubble=function(){for(var t=this.data,e=this.radii,r=this.getPxExtremes().minPxSize,n=t.length;n--;){var i=t[n],o=e?e[n]:0;g(o)&&o>=r/2?(i.marker=d(i.marker,{radius:o,width:2*o,height:2*o}),i.dlBox={x:i.plotX-o,y:i.plotY-o,width:2*o,height:2*o}):(i.shapeArgs=i.plotY=i.dlBox=void 0,i.isInside=!1)}},r.prototype.getPxExtremes=function(){var t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(e){if("string"==typeof e){var r=/%$/.test(e);e=parseInt(e,10)}return r?t*e/100:e},r=e(y(this.options.minSize,8));return{minPxSize:r,maxPxSize:e=Math.max(e(y(this.options.maxSize,"20%")),r)}},r.prototype.getZExtremes=function(){var t=this.options,e=(this.zData||[]).filter(g);if(e.length){var r=y(t.zMin,f(p(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));if(t=y(t.zMax,u(e)),g(r)&&g(t))return{zMin:r,zMax:t}}},r.defaultOptions=m(h.defaultOptions,{dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.z;return g(e)?t(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),r}(h),d(o.prototype,{alignDataLabel:n.alignDataLabel,applyZones:r,bubblePadding:!0,buildKDTree:r,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:e,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),c(o,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),c(o,"remove",function(t){delete t.target.chart.bubbleZExtremes}),i.registerSeriesType("bubble",o),o}),e(t,"Series/ColumnRange/ColumnRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),n=t.seriesTypes;t=n.column.prototype.pointClass.prototype;var i=e.extend,o=e.isNumber;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e}return r(e,t),e.prototype.isValid=function(){return o(this.low)},e}(n.arearange.prototype.pointClass),i(e.prototype,{setState:t.setState}),e}),e(t,"Series/ColumnRange/ColumnRangeSeries.js",[t["Series/ColumnRange/ColumnRangePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,n){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();e=e.noop;var o=r.seriesTypes,s=o.arearange,a=o.column,A=o.column.prototype,l=n.clamp;o=n.extend;var c=n.isNumber,h=n.merge,u=n.pick,p={pointRange:null,marker:null,states:{hover:{halo:!1}}};return n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setOptions=function(){return h(!0,arguments[0],{stacking:void 0}),s.prototype.setOptions.apply(this,arguments)},e.prototype.translate=function(){var t,e,r,n,i=this,o=this.yAxis,s=this.xAxis,a=s.startAngleRad,h=this.chart,p=this.xAxis.isRadial,f=Math.max(h.chartWidth,h.chartHeight)+999;A.translate.apply(this),this.points.forEach(function(A){var d=A.shapeArgs||{},g=i.options.minPointLength,m=A.plotY,y=o.translate(A.high,0,1,0,1);c(y)&&c(m)&&(A.plotHigh=l(y,-f,f),A.plotLow=l(m,-f,f),n=A.plotHigh,t=u(A.rectPlotY,A.plotY)-A.plotHigh,Math.abs(t)<g?(t+=e=g-t,n-=e/2):0>t&&(n-=t*=-1),p&&i.polar?(r=A.barX+a,A.shapeType="arc",A.shapeArgs=i.polar.arc(n+t,n,r,r+A.pointWidth)):(d.height=t,d.y=n,g=void 0===(g=d.x)?0:g,d=void 0===(d=d.width)?0:d,A.tooltipPos=h.inverted?[o.len+o.pos-h.plotLeft-n-t/2,s.len+s.pos-h.plotTop-g-d/2,t]:[s.left-h.plotLeft+g+d/2,o.pos-h.plotTop+n+t/2,t]))})},e.prototype.pointAttribs=function(){return A.pointAttribs.apply(this,arguments)},e.prototype.translate3dPoints=function(){return A.translate3dPoints.apply(this,arguments)},e.prototype.translate3dShapes=function(){return A.translate3dShapes.apply(this,arguments)},e.defaultOptions=h(a.defaultOptions,s.defaultOptions,p),e}(s),o(n.prototype,{directTouch:!0,pointClass:t,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:A.adjustForMissingColumns,animate:A.animate,crispCol:A.crispCol,drawGraph:e,drawPoints:A.drawPoints,getSymbol:e,drawTracker:A.drawTracker,getColumnMetrics:A.getColumnMetrics}),r.registerSeriesType("columnrange",n),n}),e(t,"Series/ColumnPyramid/ColumnPyramidSeries.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=t.prototype,o=r.clamp,s=r.merge,a=r.pick;return r=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return n(r,e),r.prototype.translate=function(){var t=this,e=t.chart,r=t.options,n=t.dense=2>t.closestPointRange*t.xAxis.transA;n=t.borderWidth=a(r.borderWidth,n?0:1);var s=t.yAxis,A=r.threshold,l=t.translatedThreshold=s.getThreshold(A),c=a(r.minPointLength,5),h=t.getColumnMetrics(),u=h.width,p=t.barW=Math.max(u,1+2*n),f=t.pointXOffset=h.offset;e.inverted&&(l-=.5),r.pointPadding&&(p=Math.ceil(p)),i.translate.apply(t),t.points.forEach(function(n){var i=a(n.yBottom,l),h=999+Math.abs(i),d=o(n.plotY,-h,s.len+h);h=n.plotX+f;var g,m=p/2,y=Math.min(d,i);i=Math.max(d,i)-y,n.barX=h,n.pointWidth=u,n.tooltipPos=e.inverted?[s.len+s.pos-e.plotLeft-d,t.xAxis.len-h-m,i]:[h+m,d+s.pos-e.plotTop,i],d=A+(n.total||n.y),"percent"===r.stacking&&(d=A+(0>n.y)?-100:100),d=s.toPixels(d,!0);var v=(g=e.plotHeight-d-(e.plotHeight-l))?m*(y-d)/g:0,b=g?m*(y+i-d)/g:0;g=h-v+m,v=h+v+m;var w=h+b+m;b=h-b+m;var x=y-c,B=y+i;0>n.y&&(x=y,B=y+i+c),e.inverted&&(b=m*(d-((w=s.width-y)-i))/(g=d-(s.width-l)),v=(g=h+m+(v=m*(d-w)/g))-2*v,w=h-b+m,b=h+b+m,x=y,B=y+i-c,0>n.y&&(B=y+i+c)),n.shapeType="path",n.shapeArgs={x:g,y:x,width:v-g,height:i,d:[["M",g,x],["L",v,x],["L",w,B],["L",b,B],["Z"]]}})},r.defaultOptions=s(t.defaultOptions,{}),r}(t),e.registerSeriesType("columnpyramid",r),r}),e(t,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}}),e(t,"Series/ErrorBar/ErrorBarSeries.js",[t["Series/BoxPlot/BoxPlotSeries.js"],t["Series/Column/ColumnSeries.js"],t["Series/ErrorBar/ErrorBarSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,n,i){var o=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=n.seriesTypes.arearange,a=i.addEvent,A=i.merge;i=i.extend;var l=function(n){function i(){var t=null!==n&&n.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return o(i,n),i.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||e.prototype.getColumnMetrics.call(this)},i.prototype.drawDataLabels=function(){var t=this.pointValKey;s&&(s.prototype.drawDataLabels.call(this),this.data.forEach(function(e){e.y=e[t]}))},i.prototype.toYData=function(t){return[t.low,t.high]},i.defaultOptions=A(t.defaultOptions,r),i}(t);return a(l,"afterTranslate",function(){this.points.forEach(function(t){t.plotLow=t.plotY})},{order:0}),i(l.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),n.registerSeriesType("errorbar",l),l}),e(t,"Series/Gauge/GaugePoint.js",[t["Core/Series/SeriesRegistry.js"]],function(t){var e=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();return function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e.shapeArgs=void 0,e}return e(r,t),r.prototype.setState=function(t){this.state=t},r}(t.series.prototype.pointClass)}),e(t,"Series/Gauge/GaugeSeries.js",[t["Series/Gauge/GaugePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,n){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();e=e.noop;var o=r.series,s=r.seriesTypes.column,a=n.clamp,A=n.isNumber,l=n.extend,c=n.merge,h=n.pick,u=n.pInt;return n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.points=void 0,e.options=void 0,e.yAxis=void 0,e}return i(e,t),e.prototype.translate=function(){var t=this.yAxis,e=this.options,r=t.center;this.generatePoints(),this.points.forEach(function(n){var i=c(e.dial,n.dial),o=u(i.radius)*r[2]/200,s=u(i.baseLength)*o/100,l=u(i.rearLength)*o/100,h=i.baseWidth,p=i.topWidth,f=e.overshoot,d=t.startAngleRad+t.translate(n.y,void 0,void 0,void 0,!0);(A(f)||!1===e.wrap)&&(f=A(f)?f/180*Math.PI:0,d=a(d,t.startAngleRad-f,t.endAngleRad+f)),d=180*d/Math.PI,n.shapeType="path",n.shapeArgs={d:i.path||[["M",-l,-h/2],["L",s,-h/2],["L",o,-p/2],["L",o,p/2],["L",s,h/2],["L",-l,h/2],["Z"]],translateX:r[0],translateY:r[1],rotation:d},n.plotX=r[0],n.plotY=r[1]})},e.prototype.drawPoints=function(){var t=this,e=t.chart,r=t.yAxis.center,n=t.pivot,i=t.options,o=i.pivot,s=e.renderer;t.points.forEach(function(r){var n=r.graphic,o=r.shapeArgs,a=o.d,A=c(i.dial,r.dial);n?(n.animate(o),o.d=a):r.graphic=s[r.shapeType](o).attr({rotation:o.rotation,zIndex:1}).addClass("highcharts-dial").add(t.group),e.styledMode||r.graphic[n?"animate":"attr"]({stroke:A.borderColor,"stroke-width":A.borderWidth,fill:A.backgroundColor})}),n?n.animate({translateX:r[0],translateY:r[1]}):o&&(t.pivot=s.circle(0,0,o.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(r[0],r[1]).add(t.group),e.styledMode||t.pivot.attr({fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.borderWidth}))},e.prototype.animate=function(t){var e=this;t||e.points.forEach(function(t){var r=t.graphic;r&&(r.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),r.animate({rotation:t.shapeArgs.rotation},e.options.animation))})},e.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),o.prototype.render.call(this),this.group.clip(this.chart.clipRect)},e.prototype.setData=function(t,e){o.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),h(e,!0)&&this.chart.redraw()},e.prototype.hasData=function(){return!!this.points.length},e.defaultOptions=c(o.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),e}(o),l(n.prototype,{angular:!0,directTouch:!0,drawGraph:e,drawTracker:s.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:t,trackerGroups:["group","dataLabelsGroup"]}),r.registerSeriesType("gauge",n),n}),e(t,"Series/DragNodesComposition.js",[t["Core/Utilities.js"]],function(t){function e(){var t,e,n,i=this;i.container&&(t=r(i.container,"mousedown",function(t){var o=i.hoverPoint;o&&o.series&&o.series.hasDraggableNodes&&o.series.options.draggable&&(o.series.onMouseDown(o,t),e=r(i.container,"mousemove",function(t){return o&&o.series&&o.series.onMouseMove(o,t)}),n=r(i.container.ownerDocument,"mouseup",function(t){return e(),n(),o&&o.series&&o.series.onMouseUp(o,t)}))})),r(i,"destroy",function(){t()})}var r=t.addEvent,n=[];return{compose:function(t){-1===n.indexOf(t)&&(n.push(t),r(t,"load",e))},onMouseDown:function(t,e){e=this.chart.pointer.normalize(e),t.fixedPosition={chartX:e.chartX,chartY:e.chartY,plotX:t.plotX,plotY:t.plotY},t.inDragMode=!0},onMouseMove:function(t,e){if(t.fixedPosition&&t.inDragMode){var r=this.chart,n=r.pointer.normalize(e);e=t.fixedPosition.chartX-n.chartX,n=t.fixedPosition.chartY-n.chartY;var i=r.graphLayoutsLookup,o=void 0,s=void 0;(5<Math.abs(e)||5<Math.abs(n))&&(o=t.fixedPosition.plotX-e,s=t.fixedPosition.plotY-n,r.isInsidePlot(o,s)&&(t.plotX=o,t.plotY=s,t.hasDragged=!0,this.redrawHalo(t),i.forEach(function(t){t.restartSimulation()})))}},onMouseUp:function(t,e){t.fixedPosition&&(t.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),t.inDragMode=t.hasDragged=!1,this.options.fixedDraggable||delete t.fixedPosition)},redrawHalo:function(t){t&&this.halo&&this.halo.attr({d:t.haloPath(this.options.states.hover.halo.size)})}}}),e(t,"Series/GraphLayoutComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Utilities.js"]],function(t,e){function r(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(t){t.updateSimulation()}),this.redraw())}function n(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(t){t.updateSimulation(!1)}),this.redraw())}function i(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(t){t.stop()})}function o(){var t=!1,e=function(e){e.maxIterations--&&isFinite(e.temperature)&&!e.isStable()&&!e.enableSimulation&&(e.beforeStep&&e.beforeStep(),e.step(),r=!1,t=!0)};if(this.graphLayoutsLookup){for(s(!1,this),this.graphLayoutsLookup.forEach(function(t){return t.start()});!r;){var r=!0;this.graphLayoutsLookup.forEach(e)}t&&this.series.forEach(function(t){t&&t.layout&&t.render()})}}var s=t.setAnimation,a=e.addEvent,A=[];return{compose:function(t){A.indexOf(t)&&(A.push(t),a(t,"afterPrint",r),a(t,"beforePrint",n),a(t,"predraw",i),a(t,"render",o))},integrations:{},layouts:{}}}),e(t,"Series/PackedBubble/PackedBubblePoint.js",[t["Core/Chart/Chart.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"]],function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();return function(r){function i(){var t=null!==r&&r.apply(this,arguments)||this;return t.degree=NaN,t.mass=NaN,t.radius=NaN,t.options=void 0,t.series=void 0,t.value=null,t}return n(i,r),i.prototype.destroy=function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),e.prototype.destroy.apply(this,arguments)},i.prototype.firePointEvent=function(){var t=this.series.options;if(this.isParentNode&&t.parentNode){var r=t.allowPointSelect;t.allowPointSelect=t.parentNode.allowPointSelect,e.prototype.firePointEvent.apply(this,arguments),t.allowPointSelect=r}else e.prototype.firePointEvent.apply(this,arguments)},i.prototype.select=function(){var r=this.series.chart;this.isParentNode?(r.getSelectedPoints=r.getSelectedParentNodes,e.prototype.select.apply(this,arguments),r.getSelectedPoints=t.prototype.getSelectedPoints):e.prototype.select.apply(this,arguments)},i}(r.seriesTypes.bubble.prototype.pointClass)}),e(t,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[t["Core/Utilities.js"]],function(t){var e=t.isNumber;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,r=this.point.value;return e(r)?t(r,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),e(t,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(t,e,r){var n=t.getMass(),i=-r.x*e*this.diffTemperature;e=-r.y*e*this.diffTemperature,t.fromNode.fixedPosition||(t.fromNode.plotX-=i*n.fromNode/t.fromNode.degree,t.fromNode.plotY-=e*n.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.plotX+=i*n.toNode/t.toNode.degree,t.toNode.plotY+=e*n.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return(e-t)/t},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,r=this.barycenter.yFactor;e=(e-(this.box.left+this.box.width)/2)*t,r=(r-(this.box.top+this.box.height)/2)*t,this.nodes.forEach(function(t){t.fixedPosition||(t.plotX-=e/t.mass/t.degree,t.plotY-=r/t.mass/t.degree)})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.5)},integrate:function(t,e){var r=-t.options.friction,n=t.options.maxSpeed,i=(e.plotX+e.dispX-e.prevX)*r;r*=e.plotY+e.dispY-e.prevY;var o=Math.abs,s=o(i)/(i||1);o=o(r)/(r||1),i=s*Math.min(n,Math.abs(i)),r=o*Math.min(n,Math.abs(r)),e.prevX=e.plotX+e.dispX,e.prevY=e.plotY+e.dispY,e.plotX+=i,e.plotY+=r,e.temperature=t.vectorLength({x:i,y:r})},repulsive:function(t,e,r){e=e*this.diffTemperature/t.mass/t.degree,t.fixedPosition||(t.plotX+=r.x*e,t.plotY+=r.y*e)},repulsiveForceFunction:function(t,e){return(e-t)/t*(e>t?1:0)}}}),e(t,"Series/PackedBubble/PackedBubbleIntegration.js",[t["Core/Globals.js"],t["Series/Networkgraph/VerletIntegration.js"]],function(t,e){return{barycenter:function(){for(var t,e,r=this.options.gravitationalConstant,n=this.box,i=this.nodes,o=0;o<i.length;o++){var s=i[o];this.options.splitSeries&&!s.isParentNode?(t=s.series.parentNode.plotX,e=s.series.parentNode.plotY):(t=n.width/2,e=n.height/2),s.fixedPosition||(s.plotX-=(s.plotX-t)*r/(s.mass*Math.sqrt(i.length)),s.plotY-=(s.plotY-e)*r/(s.mass*Math.sqrt(i.length)))}},getK:t.noop,integrate:e.integrate,repulsive:function(t,e,r,n){var i=e*this.diffTemperature/t.mass/t.degree;e=r.x*i,r=r.y*i,t.fixedPosition||(t.plotX+=e,t.plotY+=r),n.fixedPosition||(n.plotX-=e,n.plotY-=r)},repulsiveForceFunction:function(t,e,r,n){return Math.min(t,(r.marker.radius+n.marker.radius)/2)}}}),e(t,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(t,e,r,n){var i=t.getMass(),o=r.x/n*e;e*=r.y/n,t.fromNode.fixedPosition||(t.fromNode.dispX-=o*i.fromNode/t.fromNode.degree,t.fromNode.dispY-=e*i.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.dispX+=o*i.toNode/t.toNode.degree,t.toNode.dispY+=e*i.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return t*t/e},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,r=this.barycenter.yFactor;this.nodes.forEach(function(n){if(!n.fixedPosition){var i=n.getDegree();i*=1+i/2,n.dispX+=(e-n.plotX)*t*i/n.degree,n.dispY+=(r-n.plotY)*t*i/n.degree}})},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.3)},integrate:function(t,e){e.dispX+=e.dispX*t.options.friction,e.dispY+=e.dispY*t.options.friction;var r=e.temperature=t.vectorLength({x:e.dispX,y:e.dispY});0!==r&&(e.plotX+=e.dispX/r*Math.min(Math.abs(e.dispX),t.temperature),e.plotY+=e.dispY/r*Math.min(Math.abs(e.dispY),t.temperature))},repulsive:function(t,e,r,n){t.dispX+=r.x/n*e/t.degree,t.dispY+=r.y/n*e/t.degree},repulsiveForceFunction:function(t,e){return e*e/t}}}),e(t,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function t(t){this.isInternal=this.isEmpty=this.body=!1,this.nodes=[],this.box=t,this.boxSize=Math.min(t.width,t.height)}return t.prototype.divideBox=function(){var e=this.box.width/2,r=this.box.height/2;this.nodes[0]=new t({left:this.box.left,top:this.box.top,width:e,height:r}),this.nodes[1]=new t({left:this.box.left+e,top:this.box.top,width:e,height:r}),this.nodes[2]=new t({left:this.box.left+e,top:this.box.top+r,width:e,height:r}),this.nodes[3]=new t({left:this.box.left,top:this.box.top+r,width:e,height:r})},t.prototype.getBoxPosition=function(t){var e=t.plotY<this.box.top+this.box.height/2;return t.plotX<this.box.left+this.box.width/2?e?0:3:e?1:2},t.prototype.insert=function(e,r){this.isInternal?this.nodes[this.getBoxPosition(e)].insert(e,r-1):(this.isEmpty=!1,this.body?r?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,r-1),this.body=!0),this.nodes[this.getBoxPosition(e)].insert(e,r-1)):((r=new t({top:e.plotX||NaN,left:e.plotY||NaN,width:.1,height:.1})).body=e,r.isInternal=!1,this.nodes.push(r)):(this.isInternal=!1,this.body=e))},t.prototype.updateMassAndCenter=function(){var t=0,e=0,r=0;if(this.isInternal){for(var n=0,i=this.nodes;n<i.length;n++){var o=i[n];o.isEmpty||(t+=o.mass,e+=o.plotX*o.mass,r+=o.plotY*o.mass)}e/=t,r/=t}else this.body&&(t=this.body.mass,e=this.body.plotX,r=this.body.plotY);this.mass=t,this.plotX=e,this.plotY=r},t}()}),e(t,"Series/Networkgraph/QuadTree.js",[t["Series/Networkgraph/QuadTreeNode.js"]],function(t){return function(){function e(e,r,n,i){this.box={left:e,top:r,width:n,height:i},this.maxDepth=25,this.root=new t(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}return e.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(t){t.updateMassAndCenter()})},e.prototype.insertNodes=function(t){for(var e=0;e<t.length;e++)this.root.insert(t[e],this.maxDepth)},e.prototype.visitNodeRecursive=function(t,e,r){var n;if(t||(t=this.root),t===this.root&&e&&(n=e(t)),!1!==n){for(var i=0,o=t.nodes;i<o.length;i++){var s=o[i];if(s.isInternal){if(e&&(n=e(s)),!1===n)continue;this.visitNodeRecursive(s,e,r)}else s.body&&e&&e(s.body);r&&r(s)}t===this.root&&r&&r(t)}},e}()}),e(t,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[t["Series/Networkgraph/EulerIntegration.js"],t["Core/Globals.js"],t["Series/GraphLayoutComposition.js"],t["Series/Networkgraph/QuadTree.js"],t["Core/Utilities.js"],t["Series/Networkgraph/VerletIntegration.js"]],function(t,e,r,n,i,o){var s=e.win,a=i.clamp,A=i.defined,l=i.isFunction,c=i.pick;return function(){function e(){this.attractiveForce=void 0,this.box={},this.currentStep=0,this.initialRendering=!0,this.integration=void 0,this.links=[],this.nodes=[],this.repulsiveForce=this.quadTree=this.options=void 0,this.series=[],this.simulation=!1}return e.compose=function(n){r.compose(n),r.integrations.euler=t,r.integrations.verlet=o,r.layouts["reingold-fruchterman"]=e},e.prototype.init=function(t){this.options=t,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=r.integrations[t.integration],this.enableSimulation=t.enableSimulation,this.attractiveForce=c(t.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=c(t.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=t.approximation},e.prototype.updateSimulation=function(t){this.enableSimulation=c(t,this.options.enableSimulation)},e.prototype.start=function(){var t=this.series,e=this.options;this.currentStep=0,this.forces=t[0]&&t[0].forces||[],this.chart=t[0]&&t[0].chart,this.initialRendering&&(this.initPositions(),t.forEach(function(t){t.finishedAnimating=!0,t.render()})),this.setK(),this.resetSimulation(e),this.enableSimulation&&this.step()},e.prototype.step=function(){var t=this,e=this.series;this.currentStep++,"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var r=0,n=this.forces||[];r<n.length;r++)this[n[r]+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(r=0;r<e.length;r++)(n=e[r]).chart&&n.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&s.cancelAnimationFrame(this.simulation),this.simulation=s.requestAnimationFrame(function(){return t.step()})):this.simulation=!1}},e.prototype.stop=function(){this.simulation&&s.cancelAnimationFrame(this.simulation)},e.prototype.setArea=function(t,e,r,n){this.box={left:t,top:e,width:r,height:n}},e.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)},e.prototype.addElementsToCollection=function(t,e){for(var r=0;r<t.length;r++){var n=t[r];-1===e.indexOf(n)&&e.push(n)}},e.prototype.removeElementFromCollection=function(t,e){-1!==(t=e.indexOf(t))&&e.splice(t,1)},e.prototype.clear=function(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()},e.prototype.resetSimulation=function(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()},e.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))},e.prototype.setMaxIterations=function(t){this.maxIterations=c(t,this.options.maxIterations)},e.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},e.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},e.prototype.setInitialRendering=function(t){this.initialRendering=t},e.prototype.createQuadTree=function(){this.quadTree=new n(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},e.prototype.initPositions=function(){var t=this.options.initialPositions;if(l(t)){t.call(this),t=0;for(var e=this.nodes;t<e.length;t++){var r=e[t];A(r.prevX)||(r.prevX=r.plotX),A(r.prevY)||(r.prevY=r.plotY),r.dispX=0,r.dispY=0}}else"circle"===t?this.setCircularPositions():this.setRandomPositions()},e.prototype.setCircularPositions=function(){for(var t=this.box,e=this.nodes,r=2*Math.PI/(e.length+1),n=e.filter(function(t){return 0===t.linksTo.length}),i={},o=this.options.initialPositionRadius,s=function(t){var e=0;for(t=t.linksFrom||[];e<t.length;e++){var r=t[e];i[r.toNode.id]||(i[r.toNode.id]=!0,a.push(r.toNode),s(r.toNode))}},a=[],A=0;A<n.length;A++){var l=n[A];a.push(l),s(l)}if(a.length)for(n=0;n<e.length;n++)A=e[n],-1===a.indexOf(A)&&a.push(A);else a=e;for(n=0,A=a.length;n<A;++n)(e=a[n]).plotX=e.prevX=c(e.plotX,t.width/2+o*Math.cos(n*r)),e.plotY=e.prevY=c(e.plotY,t.height/2+o*Math.sin(n*r)),e.dispX=0,e.dispY=0},e.prototype.setRandomPositions=function(){for(var t,e=this.box,r=this.nodes,n=r.length+1,i=function(t){return(t=t*t/Math.PI)-Math.floor(t)},o=0,s=r.length;o<s;++o)(t=r[o]).plotX=t.prevX=c(t.plotX,e.width*i(o)),t.plotY=t.prevY=c(t.plotY,e.height*i(n+o)),t.dispX=0,t.dispY=0},e.prototype.force=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];this.integration[t].apply(this,e)},e.prototype.barycenterForces=function(){this.getBarycenter(),this.force("barycenter")},e.prototype.getBarycenter=function(){for(var t=0,e=0,r=0,n=0,i=this.nodes;n<i.length;n++){var o=i[n];e+=o.plotX*o.mass,r+=o.plotY*o.mass,t+=o.mass}return this.barycenter={x:e,y:r,xFactor:e/t,yFactor:r/t}},e.prototype.barnesHutApproximation=function(t,e){var r=this.getDistXY(t,e),n=this.vectorLength(r);if(t!==e&&0!==n)if(e.isInternal)if(e.boxSize/n<this.options.theta&&0!==n){var i=this.repulsiveForce(n,this.k);this.force("repulsive",t,i*e.mass,r,n);var o=!1}else o=!0;else i=this.repulsiveForce(n,this.k),this.force("repulsive",t,i*e.mass,r,n);return o},e.prototype.repulsiveForces=function(){var t=this;if("barnes-hut"===this.approximation)for(var e=function(e){r.quadTree.visitNodeRecursive(null,function(r){return t.barnesHutApproximation(e,r)})},r=this,n=0,i=this.nodes;n<i.length;n++){var o=i[n];e(o)}else{i=n=e=void 0;for(var s=0,a=this.nodes;s<a.length;s++){o=a[s];for(var A=0,l=this.nodes;A<l.length;A++){var c=l[A];o===c||o.fixedPosition||(i=this.getDistXY(o,c),0!==(n=this.vectorLength(i))&&(e=this.repulsiveForce(n,this.k),this.force("repulsive",o,e*c.mass,i,n)))}}}},e.prototype.attractiveForces=function(){for(var t,e,r,n=0,i=this.links;n<i.length;n++){var o=i[n];o.fromNode&&o.toNode&&(t=this.getDistXY(o.fromNode,o.toNode),0!==(e=this.vectorLength(t))&&(r=this.attractiveForce(e,this.k),this.force("attractive",o,r,t,e)))}},e.prototype.applyLimits=function(){for(var t=0,e=this.nodes;t<e.length;t++){var r=e[t];if(r.fixedPosition)break;this.integration.integrate(this,r),this.applyLimitBox(r,this.box),r.dispX=0,r.dispY=0}},e.prototype.applyLimitBox=function(t,e){var r=t.radius;t.plotX=a(t.plotX,e.left+r,e.width-r),t.plotY=a(t.plotY,e.top+r,e.height-r)},e.prototype.coolDown=function(t,e,r){return t-e*r},e.prototype.isStable=function(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature},e.prototype.getSystemTemperature=function(){for(var t=0,e=0,r=this.nodes;e<r.length;e++)t+=r[e].temperature;return t},e.prototype.vectorLength=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.prototype.getDistR=function(t,e){return t=this.getDistXY(t,e),this.vectorLength(t)},e.prototype.getDistXY=function(t,e){var r=t.plotX-e.plotX;return{x:r,y:t=t.plotY-e.plotY,absX:Math.abs(r),absY:Math.abs(t)}},e}()}),e(t,"Series/PackedBubble/PackedBubbleLayout.js",[t["Series/GraphLayoutComposition.js"],t["Series/PackedBubble/PackedBubbleIntegration.js"],t["Series/Networkgraph/ReingoldFruchtermanLayout.js"],t["Core/Utilities.js"]],function(t,e,r,n){function i(){var t=[];return this.series.forEach(function(e){e.parentNode&&e.parentNode.selected&&t.push(e.parentNode)}),t}function o(){this.allDataPoints&&delete this.allDataPoints}var s=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=n.addEvent,A=n.pick,l=[];return n=function(n){function c(){var t=null!==n&&n.apply(this,arguments)||this;return t.index=NaN,t.nodes=[],t.options=void 0,t.series=[],t}return s(c,n),c.compose=function(n){r.compose(n),t.integrations.packedbubble=e,t.layouts.packedbubble=c,-1===l.indexOf(n)&&(l.push(n),a(n,"beforeRedraw",o),n.prototype.getSelectedParentNodes=i)},c.prototype.beforeStep=function(){this.options.marker&&this.series.forEach(function(t){t&&t.calculateParentRadius()})},c.prototype.isStable=function(){var t=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&1e-5>t||0>=this.temperature},c.prototype.setCircularPositions=function(){for(var t,e,r=this.box,n=this.nodes,i=2*Math.PI/(n.length+1),o=this.options.initialPositionRadius,s=0,a=0;a<n.length;a++){var l=n[a];this.options.splitSeries&&!l.isParentNode?(t=l.series.parentNode.plotX,e=l.series.parentNode.plotY):(t=r.width/2,e=r.height/2),l.plotX=l.prevX=A(l.plotX,t+o*Math.cos(l.index||s*i)),l.plotY=l.prevY=A(l.plotY,e+o*Math.sin(l.index||s*i)),l.dispX=0,l.dispY=0,s++}},c.prototype.repulsiveForces=function(){var t,e,r,n=this,i=n.options.bubblePadding;n.nodes.forEach(function(o){o.degree=o.mass,o.neighbours=0,n.nodes.forEach(function(s){t=0,o===s||o.fixedPosition||!n.options.seriesInteraction&&o.series!==s.series||(r=n.getDistXY(o,s),0>(e=n.vectorLength(r)-(o.marker.radius+s.marker.radius+i))&&(o.degree+=.01,o.neighbours++,t=n.repulsiveForce(-e/Math.sqrt(o.neighbours),n.k,o,s)),n.force("repulsive",o,t*s.mass,r,s,e))})})},c.prototype.applyLimitBox=function(t,e){if(this.options.splitSeries&&!t.isParentNode&&this.options.parentNodeLimit){var r=this.getDistXY(t,t.series.parentNode),i=t.series.parentNodeRadius-t.marker.radius-this.vectorLength(r);0>i&&i>-2*t.marker.radius&&(t.plotX-=.01*r.x,t.plotY-=.01*r.y)}n.prototype.applyLimitBox.call(this,t,e)},c}(r),t.layouts.packedbubble=n}),e(t,"Series/PackedBubble/PackedBubbleSeries.js",[t["Core/Color/Color.js"],t["Series/DragNodesComposition.js"],t["Series/GraphLayoutComposition.js"],t["Core/Globals.js"],t["Series/PackedBubble/PackedBubblePoint.js"],t["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],t["Series/PackedBubble/PackedBubbleLayout.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,n,i,o,s,a,A){var l=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=t.parse;t=n.noop;var h=a.series.prototype,u=a.seriesTypes.bubble,p=A.addEvent,f=A.clamp,d=A.defined,g=A.extend,m=A.fireEvent,y=A.isArray,v=A.isNumber,b=A.merge,w=A.pick;return A=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.chart=void 0,e.data=void 0,e.layout=void 0,e.options=void 0,e.parentNodeMass=0,e.points=void 0,e.xData=void 0,e}return l(n,t),n.compose=function(t,r,n,i){u.compose(t,r,n,i),e.compose(r),s.compose(r)},n.prototype.accumulateAllPoints=function(){for(var t,e=this.chart,r=[],n=0,i=e.series;n<i.length;n++){var o=i[n];if(o.is("packedbubble")&&o.visible||!e.options.chart.ignoreHiddenSeries){t=o.yData||[];for(var s=0;s<t.length;s++)r.push([null,null,t[s],o.index,s,{id:s,marker:{radius:0}}])}}return r},n.prototype.addLayout=function(){var t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",n=this.chart.options.chart,i=this.chart.graphLayoutsStorage,o=this.chart.graphLayoutsLookup;i||(this.chart.graphLayoutsStorage=i={},this.chart.graphLayoutsLookup=o=[]);var s=i[e];s||(t.enableSimulation=d(n.forExport)?!n.forExport:t.enableSimulation,i[e]=s=new r.layouts[e],s.init(t),o.splice(s.index,0,s)),this.layout=s,this.points.forEach(function(t){t.mass=2,t.degree=1,t.collisionNmb=1}),s.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),s.addElementsToCollection([this],s.series),s.addElementsToCollection(this.points,s.nodes)},n.prototype.addSeriesLayout=function(){var t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",n=this.chart.graphLayoutsStorage,i=this.chart.graphLayoutsLookup;t=b(t,t.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation});var o=n[e+"-series"];o||(n[e+"-series"]=o=new r.layouts[e],o.init(t),i.splice(o.index,0,o)),this.parentNodeLayout=o,this.createParentNodes()},n.prototype.calculateParentRadius=function(){var t=this.seriesBox();this.parentNodeRadius=f(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,t?Math.max(Math.sqrt(Math.pow(t.width,2)+Math.pow(t.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)},n.prototype.calculateZExtremes=function(){var t=this.options.zMin,e=this.options.zMax,r=1/0,n=-1/0;return t&&e?[t,e]:(this.chart.series.forEach(function(t){t.yData.forEach(function(t){d(t)&&(t>n&&(n=t),t<r&&(r=t))})}),[t=w(t,r),e=w(e,n)])},n.prototype.checkOverlap=function(t,e){var r=t[0]-e[0],n=t[1]-e[1];return-.001>Math.sqrt(r*r+n*n)-Math.abs(t[2]+e[2])},n.prototype.createParentNodes=function(){var t,e=this,r=this.pointClass,n=this.chart,i=this.parentNodeLayout,o=this.layout.options,s=this.parentNode,a={radius:this.parentNodeRadius,lineColor:this.color,fillColor:c(this.color).brighten(.4).get()};o.parentNodeOptions&&(a=b(o.parentNodeOptions.marker||{},a)),this.parentNodeMass=0,this.points.forEach(function(t){e.parentNodeMass+=Math.PI*Math.pow(t.marker.radius,2)}),this.calculateParentRadius(),i.nodes.forEach(function(r){r.seriesIndex===e.index&&(t=!0)}),i.setArea(0,0,n.plotWidth,n.plotHeight),t||(s||(s=(new r).init(this,{mass:this.parentNodeRadius/2,marker:a,dataLabels:{inside:!1},states:{normal:{marker:a},hover:{marker:a}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(s.plotX=this.parentNode.plotX,s.plotY=this.parentNode.plotY),this.parentNode=s,i.addElementsToCollection([this],i.series),i.addElementsToCollection([s],i.nodes))},n.prototype.deferLayout=function(){var t=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),t.splitSeries&&this.addSeriesLayout())},n.prototype.destroy=function(){var t=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(e){e.removeElementFromCollection(t,e.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),h.destroy.apply(this,arguments)},n.prototype.drawDataLabels=function(){h.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",h.drawDataLabels.call(this,[this.parentNode]))},n.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var t=this.chart,e=this.layout.options.parentNodeOptions.marker;e={fill:e.fillColor||c(this.color).brighten(.4).get(),opacity:e.fillOpacity,stroke:e.lineColor||this.color,"stroke-width":w(e.lineWidth,this.options.lineWidth)},this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,t.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius();var r=b({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},e);this.parentNode.graphic||(this.graph=this.parentNode.graphic=t.renderer.symbol(e.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(r)}},n.prototype.drawTracker=function(){var e=this.parentNode;if(t.prototype.drawTracker.call(this),e){var r=y(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[];e.graphic&&(e.graphic.element.point=e),r.forEach(function(t){t.div?t.div.point=e:t.element.point=e})}},n.prototype.getPointRadius=function(){var t,e,r,n,i=this,o=this.chart,s=this.options,a=s.useSimulation,A=Math.min(o.plotWidth,o.plotHeight),l={},c=[],h=o.allDataPoints||[],u=h.length;["minSize","maxSize"].forEach(function(t){var e=parseInt(s[t],10),r=/%$/.test(s[t]);l[t]=r?A*e/100:e*Math.sqrt(u)}),o.minRadius=t=l.minSize/Math.sqrt(u),o.maxRadius=e=l.maxSize/Math.sqrt(u);var p=a?this.calculateZExtremes():[t,e];h.forEach(function(o,s){r=a?f(o[2],p[0],p[1]):o[2],0===(n=i.getRadius(p[0],p[1],t,e,r))&&(n=null),h[s][2]=n,c.push(n)}),this.radii=c},n.prototype.init=function(){return h.init.apply(this,arguments),this.eventsToUnbind.push(p(this,"updatedData",function(){var t=this;this.chart.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)},this)})),this},n.prototype.onMouseUp=function(t){var r=t;if(r.fixedPosition&&!r.removed){var n,i=this.layout,o=this.parentNodeLayout;o&&i.options.dragBetweenSeries&&o.nodes.forEach(function(t){r&&r.marker&&t!==r.series.parentNode&&(n=i.getDistXY(r,t),0>i.vectorLength(n)-t.marker.radius-r.marker.radius&&(t.series.addPoint(b(r.options,{plotX:r.plotX,plotY:r.plotY}),!1),i.removeElementFromCollection(r,i.nodes),r.remove()))}),e.onMouseUp.apply(this,arguments)}},n.prototype.placeBubbles=function(t){var e,r=this.checkOverlap,n=this.positionBubble,i=[],o=1,s=0,a=0,A=[];if(t=t.sort(function(t,e){return e[2]-t[2]}),t.length){if(i.push([[0,0,t[0][2],t[0][3],t[0][4]]]),1<t.length)for(i.push([[0,0-t[1][2]-t[0][2],t[1][2],t[1][3],t[1][4]]]),e=2;e<t.length;e++)t[e][2]=t[e][2]||1,r(A=n(i[o][s],i[o-1][a],t[e]),i[o][0])?(i.push([]),a=0,i[o+1].push(n(i[o][s],i[o][0],t[e])),o++,s=0):1<o&&i[o-1][a+1]&&r(A,i[o-1][a+1])?(a++,i[o].push(n(i[o][s],i[o-1][a],t[e])),s++):(s++,i[o].push(A));this.chart.stages=i,this.chart.rawPositions=[].concat.apply([],i),this.resizeRadius(),A=this.chart.rawPositions}return A},n.prototype.pointAttribs=function(t,e){var r=this.options,n=r.marker;return t&&t.isParentNode&&r.layoutAlgorithm&&r.layoutAlgorithm.parentNodeOptions&&(n=r.layoutAlgorithm.parentNodeOptions.marker),r=n.fillOpacity,t=h.pointAttribs.call(this,t,e),1!==r&&(t["fill-opacity"]=r),t},n.prototype.positionBubble=function(t,e,r){var n=Math.sqrt,i=Math.asin,o=Math.acos,s=Math.pow,a=Math.abs;return n=n(s(t[0]-e[0],2)+s(t[1]-e[1],2)),o=o((s(n,2)+s(r[2]+e[2],2)-s(r[2]+t[2],2))/(2*(r[2]+e[2])*n)),i=i(a(t[0]-e[0])/n),t=(0>t[1]-e[1]?0:Math.PI)+o+i*(0>(t[0]-e[0])*(t[1]-e[1])?1:-1),[e[0]+(e[2]+r[2])*Math.sin(t),e[1]-(e[2]+r[2])*Math.cos(t),r[2],r[3],r[4]]},n.prototype.render=function(){var t=[];h.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(function(e){y(e.dataLabels)&&e.dataLabels.forEach(function(e){t.push(e)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(t))},n.prototype.resizeRadius=function(){for(var t,e,r=this.chart,n=r.rawPositions,i=Math.min,o=Math.max,s=r.plotLeft,a=r.plotTop,A=r.plotHeight,l=r.plotWidth,c=t=Number.POSITIVE_INFINITY,h=e=Number.NEGATIVE_INFINITY,u=0;u<n.length;u++){var p=n[u],f=p[2];c=i(c,p[0]-f),h=o(h,p[0]+f),t=i(t,p[1]-f),e=o(e,p[1]+f)}if(p=[h-c,e-t],i=i.apply([],[(l-s)/p[0],(A-a)/p[1]]),1e-10<Math.abs(i-1)){for(r=0;r<n.length;r++)(p=n[r])[2]*=i;this.placeBubbles(n)}else r.diffY=A/2+a-t-(e-t)/2,r.diffX=l/2+s-c-(h-c)/2},n.prototype.seriesBox=function(){var t,e=this.chart,r=Math.max,n=Math.min,i=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return this.data.forEach(function(e){d(e.plotX)&&d(e.plotY)&&e.marker.radius&&(t=e.marker.radius,i[0]=n(i[0],e.plotX-t),i[1]=r(i[1],e.plotX+t),i[2]=n(i[2],e.plotY-t),i[3]=r(i[3],e.plotY+t))}),v(i.width/i.height)?i:null},n.prototype.setVisible=function(){var t=this;h.setVisible.apply(t,arguments),t.parentNodeLayout&&t.graph?t.visible?(t.graph.show(),t.parentNode.dataLabel&&t.parentNode.dataLabel.show()):(t.graph.hide(),t.parentNodeLayout.removeElementFromCollection(t.parentNode,t.parentNodeLayout.nodes),t.parentNode.dataLabel&&t.parentNode.dataLabel.hide()):t.layout&&(t.visible?t.layout.addElementsToCollection(t.points,t.layout.nodes):t.points.forEach(function(e){t.layout.removeElementFromCollection(e,t.layout.nodes)}))},n.prototype.translate=function(){var t=this.chart,e=this.data,r=this.index,n=this.options.useSimulation;if(this.processedXData=this.xData,this.generatePoints(),d(t.allDataPoints)||(t.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),n)var i=t.allDataPoints;else i=this.placeBubbles(t.allDataPoints),this.options.draggable=!1;for(var o=0,s=i;o<s.length;o++){var a=s[o];if(a[3]===r){i=e[a[4]];var A=w(a[2],void 0);n||(i.plotX=a[0]-t.plotLeft+t.diffX,i.plotY=a[1]-t.plotTop+t.diffY),v(A)&&(i.marker=g(i.marker,{radius:A,width:2*A,height:2*A}),i.radius=A)}}n&&this.deferLayout(),m(this,"afterTranslate")},n.defaultOptions=b(u.defaultOptions,o),n}(u),g(A.prototype,{pointClass:i,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],alignDataLabel:h.alignDataLabel,indexateNodes:t,onMouseDown:e.onMouseDown,onMouseMove:e.onMouseMove,redrawHalo:e.redrawHalo,searchPoint:t}),a.registerSeriesType("packedbubble",A),A}),e(t,"Series/Polygon/PolygonSeries.js",[t["Core/Globals.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,r,n){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();t=t.noop;var o=r.series,s=r.seriesTypes,a=s.area,A=s.line,l=s.scatter;s=n.extend;var c=n.merge;return n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return i(e,t),e.prototype.getGraphPath=function(){for(var t=A.prototype.getGraphPath.call(this),e=t.length+1;e--;)(e===t.length||"M"===t[e][0])&&0<e&&t.splice(e,0,["Z"]);return this.areaPath=t},e.prototype.drawGraph=function(){this.options.fillColor=this.color,a.prototype.drawGraph.call(this)},e.defaultOptions=c(l.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0}),e}(l),s(n.prototype,{type:"polygon",drawLegendSymbol:e.drawRectangle,drawTracker:o.prototype.drawTracker,setStackedPoints:t}),r.registerSeriesType("polygon",n),n}),e(t,"Core/Axis/WaterfallAxis.js",[t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(t,e){var r,n=e.addEvent,i=e.objectEach;return function(e){function r(){var t=this.waterfall.stacks;t&&(t.changed=!1,delete t.alreadyChanged)}function o(){var t=this.options.stackLabels;t&&t.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function s(){for(var t=this.axes,e=this.series,r=e.length;r--;)e[r].options.stacking&&(t.forEach(function(t){t.isXAxis||(t.waterfall.stacks.changed=!0)}),r=0)}function a(){this.waterfall||(this.waterfall=new A(this))}var A=function(){function e(t){this.axis=t,this.stacks={changed:!1}}return e.prototype.renderStackTotals=function(){var e=this.axis,r=e.waterfall.stacks,n=e.stacking&&e.stacking.stackTotalGroup,o=new t(e,e.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=o,n&&i(r,function(e){i(e,function(e,r){o.total=e.stackTotal,o.x=+r,e.label&&(o.label=e.label),t.prototype.render.call(o,n),e.label=o.label,delete o.label})}),o.total=null},e}();e.Composition=A,e.compose=function(t,e){n(t,"init",a),n(t,"afterBuildStacks",r),n(t,"afterRender",o),n(e,"beforeRedraw",s)}}(r||(r={})),r}),e(t,"Series/Waterfall/WaterfallPoint.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=r.isNumber;return function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e}return n(r,t),r.prototype.getClassName=function(){var t=e.prototype.getClassName.call(this);return this.isSum?t+=" highcharts-sum":this.isIntermediateSum&&(t+=" highcharts-intermediate-sum"),t},r.prototype.isValid=function(){return i(this.y)||this.isSum||!!this.isIntermediateSum},r}(t.prototype.pointClass)}),e(t,"Series/Waterfall/WaterfallSeries.js",[t["Core/Axis/Axis.js"],t["Core/Chart/Chart.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"],t["Core/Axis/WaterfallAxis.js"],t["Series/Waterfall/WaterfallPoint.js"]],function(t,e,r,n,i,o){var s=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=r.seriesTypes,A=a.column,l=a.line,c=n.arrayMax,h=n.arrayMin,u=n.correctFloat;a=n.extend;var p=n.isNumber,f=n.merge,d=n.objectEach,g=n.pick;return n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.chart=void 0,e.data=void 0,e.options=void 0,e.points=void 0,e.stackedYNeg=void 0,e.stackedYPos=void 0,e.stackKey=void 0,e.xData=void 0,e.yAxis=void 0,e.yData=void 0,e}return s(e,t),e.prototype.generatePoints=function(){A.prototype.generatePoints.apply(this);for(var t=0,e=this.points.length;t<e;t++){var r=this.points[t],n=this.processedYData[t];p(n)&&(r.isIntermediateSum||r.isSum)&&(r.y=u(n))}},e.prototype.translate=function(){var t=this.options,e=this.yAxis,r=g(t.minPointLength,5),n=r/2,i=t.threshold||0;t=t.stacking;var o=e.waterfall.stacks[this.stackKey],s=i,a=i;A.prototype.translate.apply(this);for(var l=this.points,c=0;c<l.length;c++){var h=l[c],u=this.processedYData[c],f=h.shapeArgs;if(f&&p(u)){var d=[0,u],m=h.y;if(t){if(o){if(d=o[c],"overlap"===t){var y=d.stackState[d.stateIndex--];y=0<=m?y:y-m,Object.hasOwnProperty.call(d,"absolutePos")&&delete d.absolutePos,Object.hasOwnProperty.call(d,"absoluteNeg")&&delete d.absoluteNeg}else 0<=m?(y=d.threshold+d.posTotal,d.posTotal-=m):(y=d.threshold+d.negTotal,d.negTotal-=m,y-=m),!d.posTotal&&p(d.absolutePos)&&Object.hasOwnProperty.call(d,"absolutePos")&&(d.posTotal=d.absolutePos,delete d.absolutePos),!d.negTotal&&p(d.absoluteNeg)&&Object.hasOwnProperty.call(d,"absoluteNeg")&&(d.negTotal=d.absoluteNeg,delete d.absoluteNeg);h.isSum||(d.connectorThreshold=d.threshold+d.stackTotal),e.reversed?(u=0<=m?y-m:y+m,m=y):(u=y,m=y-m),h.below=u<=i,f.y=e.translate(u,!1,!0,!1,!0),f.height=Math.abs(f.y-e.translate(m,!1,!0,!1,!0)),(m=e.waterfall.dummyStackItem)&&(m.x=c,m.label=o[c].label,m.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[c],this.stackedYPos[c],void 0,this.xAxis))}}else y=Math.max(a,a+m)+d[0],f.y=e.translate(y,!1,!0,!1,!0),h.isSum?(f.y=e.translate(d[1],!1,!0,!1,!0),f.height=Math.min(e.translate(d[0],!1,!0,!1,!0),e.len)-f.y,h.below=d[1]<=i):h.isIntermediateSum?(0<=m?(u=d[1]+s,m=s):(u=s,m=d[1]+s),e.reversed&&(u^=m,u^=m^=u),f.y=e.translate(u,!1,!0,!1,!0),f.height=Math.abs(f.y-Math.min(e.translate(m,!1,!0,!1,!0),e.len)),s+=d[1],h.below=u<=i):(f.height=0<u?e.translate(a,!1,!0,!1,!0)-f.y:e.translate(a,!1,!0,!1,!0)-e.translate(a-u,!1,!0,!1,!0),a+=u,h.below=a<i),0>f.height&&(f.y+=f.height,f.height*=-1);h.plotY=f.y=Math.round(f.y||0)-this.borderWidth%2/2,f.height=Math.max(Math.round(f.height||0),.001),h.yBottom=f.y+f.height,f.height<=r&&!h.isNull?(f.height=r,f.y-=n,h.plotY=f.y,h.minPointLengthOffset=0>h.y?-n:n):(h.isNull&&(f.width=0),h.minPointLengthOffset=0),m=h.plotY+(h.negative?f.height:0),h.below&&(h.plotY+=f.height),h.tooltipPos&&(this.chart.inverted?h.tooltipPos[0]=e.len-m:h.tooltipPos[1]=m),h.isInside=this.isPointInside(h)}}},e.prototype.processData=function(e){var r,n,i,o,s,a=this.options,A=this.yData,l=a.data,c=A.length,h=a.threshold||0;for(s=n=r=i=o=0;s<c;s++){var p=A[s],f=l&&l[s]?l[s]:{};"sum"===p||f.isSum?A[s]=u(n):"intermediateSum"===p||f.isIntermediateSum?(A[s]=u(r),r=0):(n+=p,r+=p),i=Math.min(n,i),o=Math.max(n,o)}t.prototype.processData.call(this,e),a.stacking||(this.dataMin=i+h,this.dataMax=o)},e.prototype.toYData=function(t){return t.isSum?"sum":t.isIntermediateSum?"intermediateSum":t.y},e.prototype.updateParallelArrays=function(e,r){t.prototype.updateParallelArrays.call(this,e,r),"sum"!==this.yData[0]&&"intermediateSum"!==this.yData[0]||(this.yData[0]=null)},e.prototype.pointAttribs=function(t,e){var r=this.options.upColor;return r&&!t.options.color&&(t.color=0<t.y?r:void 0),delete(t=A.prototype.pointAttribs.call(this,t,e)).dashstyle,t},e.prototype.getGraphPath=function(){return[["M",0,0]]},e.prototype.getCrispPath=function(){var t,e=this.data,r=this.yAxis,n=e.length,i=Math.round(this.graph.strokeWidth())%2/2,o=Math.round(this.borderWidth)%2/2,s=this.xAxis.reversed,a=this.yAxis.reversed,A=this.options.stacking,l=[];for(t=1;t<n;t++){var c=e[t].shapeArgs,h=e[t-1],u=e[t-1].shapeArgs,p=r.waterfall.stacks[this.stackKey],f=0<h.y?-u.height:0;p&&u&&c&&(p=p[t-1],A?(p=p.connectorThreshold,f=Math.round(r.translate(p,!1,!0,!1,!0)+(a?f:0))-i):f=u.y+h.minPointLengthOffset+o-i,l.push(["M",(u.x||0)+(s?0:u.width||0),f],["L",(c.x||0)+(s&&c.width||0),f])),u&&l.length&&(!A&&0>h.y&&!a||0<h.y&&a)&&((h=l[l.length-2])&&"number"==typeof h[2]&&(h[2]+=u.height||0),(h=l[l.length-1])&&"number"==typeof h[2]&&(h[2]+=u.height||0))}return l},e.prototype.drawGraph=function(){l.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},e.prototype.setStackedPoints=function(){function t(t,e,r,n){if(g){if(b)for(;r<b;r++)g.stackState[r]+=n;else g.stackState[0]=t,b=g.stackState.length;g.stackState.push(g.stackState[b-1]+e)}}var e,r,n,i=this.options,o=this.yAxis.waterfall.stacks,s=i.threshold||0,a=s,A=a,l=this.stackKey,c=this.xData,h=c.length;this.yAxis.stacking.usePercentage=!1;var u=e=r=a;if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){var p=o.changed;if((n=o.alreadyChanged)&&0>n.indexOf(l)&&(p=!0),o[l]||(o[l]={}),n=o[l])for(var f=0;f<h;f++){var d=c[f];n[d]&&!p||(n[d]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:p&&n[d]?n[d].label:void 0});var g=n[d],m=this.yData[f];0<=m?g.posTotal+=m:g.negTotal+=m;var y=i.data[f];d=g.absolutePos=g.posTotal;var v=g.absoluteNeg=g.negTotal;g.stackTotal=d+v;var b=g.stackState.length;y&&y.isIntermediateSum?(t(r,e,0,r),r=e,e=s,a^=A,a^=A^=a):y&&y.isSum?(t(s,u,b,0),a=s):(t(a,m,0,u),y&&(u+=m,e+=m)),g.stateIndex++,g.threshold=a,a+=g.stackTotal}o.changed=!1,o.alreadyChanged||(o.alreadyChanged=[]),o.alreadyChanged.push(l)}},e.prototype.getExtremes=function(){var t=this.options.stacking;if(t){var e=this.yAxis;e=e.waterfall.stacks;var r=this.stackedYNeg=[],n=this.stackedYPos=[];return d(e[this.stackKey],"overlap"===t?function(t){r.push(h(t.stackState)),n.push(c(t.stackState))}:function(t){r.push(t.negTotal+t.threshold),n.push(t.posTotal+t.threshold)}),{dataMin:h(r),dataMax:c(n)}}return{dataMin:this.dataMin,dataMax:this.dataMax}},e.defaultOptions=f(A.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),e}(A),a(n.prototype,{getZonesGraphs:l.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:o}),r.registerSeriesType("waterfall",n),i.compose(t,e),n}),e(t,"Core/Axis/RadialAxis.js",[t["Core/Axis/AxisDefaults.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(t,e,r,n){var i,o=e.defaultOptions,s=r.noop,a=n.addEvent,A=n.correctFloat,l=n.defined,c=n.extend,h=n.fireEvent,u=n.merge,p=n.pick,f=n.relativeLength,d=n.wrap;return function(e){function r(){this.autoConnect=this.isCircular&&void 0===p(this.userMax,this.options.max)&&A(this.endAngleRad-this.startAngleRad)===A(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function n(){var t=this;return function(){if(t.isRadial&&t.tickPositions&&t.options.labels&&!0!==t.options.labels.allowOverlap)return t.tickPositions.map(function(e){return t.ticks[e]&&t.ticks[e].label}).filter(function(t){return!!t})}}function i(){return s}function g(t,e,r){var n=this.pane.center,i=t.value;if(this.isCircular){if(l(i))t.point&&(o=t.point.shapeArgs||{}).start&&(i=this.chart.inverted?this.translate(t.point.rectPlotY,!0):t.point.x);else{var o=t.chartX||0,s=t.chartY||0;i=this.translate(Math.atan2(s-r,o-e)-this.startAngleRad,!0)}o=(t=this.getPosition(i)).x,s=t.y}else l(i)||(o=t.chartX,s=t.chartY),l(o)&&l(s)&&(r=n[1]+this.chart.plotTop,i=this.translate(Math.min(Math.sqrt(Math.pow(o-e,2)+Math.pow(s-r,2)),n[2]/2)-n[3]/2,!0));return[i,o||0,s||0]}function m(t,e,r){t=this.pane.center;var n=this.chart,i=this.left||0,o=this.top||0,s=p(e,t[2]/2-this.offset);return void 0===r&&(r=this.horiz?0:this.center&&-this.center[3]/2),r&&(s+=r),this.isCircular||void 0!==e?((e=this.chart.renderer.symbols.arc(i+t[0],o+t[1],s,s,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[i+t[0]],e.yBounds=[o+t[1]-s]):(e=this.postTranslate(this.angleRad,s),e=[["M",this.center[0]+n.plotLeft,this.center[1]+n.plotTop],["L",e.x,e.y]]),e}function y(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function v(t,e,r){var n=this.chart,i=function(t){if("string"==typeof t){var e=parseInt(t,10);return h.test(t)&&(e=e*a/100),e}return t},o=this.center,s=this.startAngleRad,a=o[2]/2,A=Math.min(this.offset,0),l=this.left||0,c=this.top||0,h=/%$/,u=this.isCircular,f=p(i(r.outerRadius),a),d=i(r.innerRadius);if(i=p(i(r.thickness),10),"polygon"===this.options.gridLineInterpolation)A=this.getPlotLinePath({value:t}).concat(this.getPlotLinePath({value:e,reverse:!0}));else{if(t=Math.max(t,this.min),e=Math.min(e,this.max),t=this.translate(t),e=this.translate(e),u||(f=t||0,d=e||0),"circle"!==r.shape&&u)r=s+(t||0),s+=e||0;else{r=-Math.PI/2,s=1.5*Math.PI;var g=!0}f-=A,A=n.renderer.symbols.arc(l+o[0],c+o[1],f,f,{start:Math.min(r,s),end:Math.max(r,s),innerR:p(d,f-(i-A)),open:g}),u&&(u=(s+r)/2,l=l+o[0]+o[2]/2*Math.cos(u),A.xBounds=u>-Math.PI/2&&u<Math.PI/2?[l,n.plotWidth]:[0,l],A.yBounds=[c+o[1]+o[2]/2*Math.sin(u)],A.yBounds[0]+=u>-Math.PI&&0>u||u>Math.PI?-10:10)}return A}function b(t){var e=this,r=this.pane.center,n=this.chart,i=n.inverted,o=t.reverse,s=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},a=s.innerRadius||"0%",A=s.outerRadius||"100%",l=r[0]+n.plotLeft,c=r[1]+n.plotTop,h=this.height,u=t.isCrosshair;s=r[3]/2;var p,d=t.value,g=this.getPosition(d),m=g.x;if(g=g.y,u&&(d=(g=this.getCrosshairPosition(t,l,c))[0],m=g[1],g=g[2]),this.isCircular)d=Math.sqrt(Math.pow(m-l,2)+Math.pow(g-c,2)),o="string"==typeof a?f(a,1):a/d,n="string"==typeof A?f(A,1):A/d,r&&s&&(o<(s/=d)&&(o=s),n<s&&(n=s)),r=[["M",l+o*(m-l),c-o*(c-g)],["L",m-(1-n)*(m-l),g+(1-n)*(c-g)]];else if((d=this.translate(d))&&(0>d||d>h)&&(d=0),"circle"===this.options.gridLineInterpolation)r=this.getLinePath(0,d,s);else if(r=[],n[i?"yAxis":"xAxis"].forEach(function(t){t.pane===e.pane&&(p=t)}),p)for(l=p.tickPositions,p.autoConnect&&(l=l.concat([l[0]])),o&&(l=l.slice().reverse()),d&&(d+=s),c=0;c<l.length;c++)s=p.getPosition(l[c],d),r.push(c?["L",s.x,s.y]:["M",s.x,s.y]);return r}function w(t,e){return t=this.translate(t),this.postTranslate(this.isCircular?t:this.angleRad,p(this.isCircular?e:0>t?0:t,this.center[2]/2)-this.offset)}function x(){var t=this.center,e=this.chart,r=this.options.title;return{x:e.plotLeft+t[0]+(r.x||0),y:e.plotTop+t[1]-{high:.5,middle:.25,low:0}[r.align]*t[2]+(r.y||0)}}function B(t){t.beforeSetTickPositions=r,t.createLabelCollector=n,t.getCrosshairPosition=g,t.getLinePath=m,t.getOffset=y,t.getPlotBandPath=v,t.getPlotLinePath=b,t.getPosition=w,t.getTitlePosition=x,t.postTranslate=k,t.setAxisSize=P,t.setAxisTranslation=M,t.setOptions=D}function C(){var t=this.chart,e=this.options,r=this.pane,n=r&&r.options;t.angular&&this.isXAxis||!r||!t.angular&&!t.polar||(t=2*Math.PI,r=(p(n.startAngle,0)-90)*Math.PI/180,n=(p(n.endAngle,p(n.startAngle,0)+360)-90)*Math.PI/180,this.angleRad=(e.angle||0)*Math.PI/180,this.startAngleRad=r,this.endAngleRad=n,this.offset=e.offset||0,n=(n%t+t)%t,(e=(r%t+t)%t)>Math.PI&&(e-=t),n>Math.PI&&(n-=t),this.normalizedStartAngleRad=e,this.normalizedEndAngleRad=n)}function _(t){this.isRadial&&(t.align=void 0,t.preventDefault())}function E(){if(this.chart&&this.chart.labelCollectors){var t=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=t&&this.chart.labelCollectors.splice(t,1)}}function S(e){var r,n=this.chart,o=n.inverted,a=n.angular,A=n.polar,l=this.isXAxis,c=this.coll,h=a&&l;e=e.userOptions.pane||0,e=this.pane=n.pane&&n.pane[e],"colorAxis"===c?this.isRadial=!1:(a?(h?(this.isHidden=!0,this.createLabelCollector=i,this.getOffset=s,this.render=this.redraw=L,this.setTitle=this.setCategories=this.setScale=s):B(this),(r=!l)&&(this.defaultPolarOptions=Q)):A&&(B(this),this.defaultPolarOptions=(r=this.horiz)?U:u("xAxis"===c?t.defaultXAxisOptions:t.defaultYAxisOptions,R),o&&"yAxis"===c&&(this.defaultPolarOptions.stackLabels=t.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),a||A?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&n.labelCollectors.push(this.labelCollector)):this.isRadial=!1,e&&r&&(e.axis=this),this.isCircular=r)}function I(){this.isRadial&&this.beforeSetTickPositions()}function F(t){var e=this.label;if(e){var r=this.axis,n=e.getBBox(),i=r.options.labels,o=(r.translate(this.pos)+r.startAngleRad+Math.PI/2)/Math.PI*180%360,s=Math.round(o),a=l(i.y)?0:.3*-n.height,A=i.y,c=20,h=i.align,u="end",d=0>s?s+360:s,g=d,m=0,y=0;if(r.isRadial){var v=r.getPosition(this.pos,r.center[2]/2+f(p(i.distance,-25),r.center[2]/2,-r.center[2]/2));"auto"===i.rotation?e.attr({rotation:o}):l(A)||(A=r.chart.renderer.fontMetrics(e.styles&&e.styles.fontSize).b-n.height/2),l(h)||(r.isCircular?(n.width>r.len*r.tickInterval/(r.max-r.min)&&(c=0),h=o>c&&o<180-c?"left":o>180+c&&o<360-c?"right":"center"):h="center",e.attr({align:h})),"auto"===h&&2===r.tickPositions.length&&r.isCircular&&(90<d&&180>d?d=180-d:270<d&&360>=d&&(d=540-d),180<g&&360>=g&&(g=360-g),r.pane.options.startAngle!==s&&r.pane.options.startAngle!==s+360&&r.pane.options.startAngle!==s-360||(u="start"),h=-90<=s&&90>=s||-360<=s&&-270>=s||270<=s&&360>=s?"start"===u?"right":"left":"start"===u?"left":"right",70<g&&110>g&&(h="center"),15>d||180<=d&&195>d?m=.3*n.height:15<=d&&35>=d?m="start"===u?0:.75*n.height:195<=d&&215>=d?m="start"===u?.75*n.height:0:35<d&&90>=d?m="start"===u?.25*-n.height:n.height:215<d&&270>=d&&(m="start"===u?n.height:.25*-n.height),15>g?y="start"===u?.15*-n.height:.15*n.height:165<g&&180>=g&&(y="start"===u?.15*n.height:.15*-n.height),e.attr({align:h}),e.translate(y,m+a)),t.pos.x=v.x+(i.x||0),t.pos.y=v.y+(A||0)}}}function T(t){this.axis.getPosition&&c(t.pos,this.axis.getPosition(this.pos))}function k(t,e){var r=this.chart,n=this.center;return t=this.startAngleRad+t,{x:r.plotLeft+n[0]+Math.cos(t)*e,y:r.plotTop+n[1]+Math.sin(t)*e}}function L(){this.isDirty=!1}function P(){if(this.constructor.prototype.setAxisSize.call(this),this.isRadial){this.pane.updateCenter(this);var t=this.center=this.pane.center.slice();if(this.isCircular)this.sector=this.endAngleRad-this.startAngleRad;else{var e=this.postTranslate(this.angleRad,t[3]/2);t[0]=e.x-this.chart.plotLeft,t[1]=e.y-this.chart.plotTop}this.len=this.width=this.height=(t[2]-t[3])*p(this.sector,1)/2}}function M(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)}function D(t){(t=this.options=u(this.constructor.defaultOptions,this.defaultPolarOptions,o[this.coll],t)).plotBands||(t.plotBands=[]),h(this,"afterSetOptions")}function N(t,e,r,n,i,o,s){var a=this.axis;return a.isRadial?["M",e,r,"L",(t=a.getPosition(this.pos,a.center[2]/2+n)).x,t.y]:t.call(this,e,r,n,i,o,s)}var O=[],U={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},Q={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},R={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};e.compose=function(t,e){return-1===O.indexOf(t)&&(O.push(t),a(t,"afterInit",C),a(t,"autoLabelAlign",_),a(t,"destroy",E),a(t,"init",S),a(t,"initialAxisTranslation",I)),-1===O.indexOf(e)&&(O.push(e),a(e,"afterGetLabelPosition",F),a(e,"afterGetPosition",T),d(e.prototype,"getMarkPath",N)),t}}(i||(i={})),i}),e(t,"Series/PolarComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Extensions/Pane.js"],t["Core/Axis/RadialAxis.js"],t["Core/Utilities.js"]],function(t,e,r,n,i){function o(t,e,r,n){var i=n?1:0,s=0<=e&&e<=t.length-1?e:0>e?t.length-1+e:0,a=t[e=0>s-1?t.length-(1+i):s-1];i=t[s+1>t.length-1?i:s+1];var A=a.plotY,l=i.plotX,c=i.plotY;i=t[s].plotX,s=t[s].plotY,a=(1.5*i+a.plotX)/2.5,A=(1.5*s+A)/2.5,l=(1.5*i+l)/2.5;var h=(1.5*s+c)/2.5;c=Math.sqrt(Math.pow(a-i,2)+Math.pow(A-s,2));var u=Math.sqrt(Math.pow(l-i,2)+Math.pow(h-s,2));return a=Math.atan2(A-s,a-i),h=Math.PI/2+(a+Math.atan2(h-s,l-i))/2,Math.abs(a-h)>Math.PI/2&&(h-=Math.PI),a=i+Math.cos(h)*c,A=s+Math.sin(h)*c,i={rightContX:l=i+Math.cos(Math.PI+h)*u,rightContY:h=s+Math.sin(Math.PI+h)*u,leftContX:a,leftContY:A,plotX:i,plotY:s},r&&(i.prevPointCont=o(t,e,!1,n)),i}function s(){(this.pane||[]).forEach(function(t){t.render()})}function a(t){var e=t.args[0].xAxis,r=t.args[0].yAxis;t=t.args[0].chart,e&&r&&("polygon"===r.gridLineInterpolation?(e.startOnTick=!0,e.endOnTick=!0):"polygon"===e.gridLineInterpolation&&t.inverted&&(r.startOnTick=!0,r.endOnTick=!0))}function A(){var t=this;this.pane||(this.pane=[]),this.options.pane=T(this.options.pane),this.options.pane.forEach(function(e){new r(e,t)},this)}function l(t){var e=t.args.marker,r=this.chart.xAxis[0],n=this.chart.yAxis[0],i=this.chart.inverted,o=i?n:r;if(r=i?r:n,this.chart.polar){t.preventDefault(),n=(e.attr?e.attr("start"):e.start)-o.startAngleRad,i=e.attr?e.attr("r"):e.r;var s=(e.attr?e.attr("end"):e.end)-o.startAngleRad;e=e.attr?e.attr("innerR"):e.innerR,t.result.x=n+o.pos,t.result.width=s-n,t.result.y=r.len+r.pos-e,t.result.height=e-i}}function c(t){var e=this.chart;if(e.polar&&e.hoverPane&&e.hoverPane.axis){t.preventDefault();var r=e.hoverPane.center,n=this.mouseDownX||0,i=this.mouseDownY||0,o=t.args.chartY,s=t.args.chartX,a=2*Math.PI,A=e.hoverPane.axis.startAngleRad,l=e.hoverPane.axis.endAngleRad,c=e.inverted?e.xAxis[0]:e.yAxis[0],h={},u="arc";if(h.x=r[0]+e.plotLeft,h.y=r[1]+e.plotTop,this.zoomHor){var p=0<A?l-A:Math.abs(A)+Math.abs(l),d=Math.atan2(i-e.plotTop-r[1],n-e.plotLeft-r[0])-A,g=Math.atan2(o-e.plotTop-r[1],s-e.plotLeft-r[0])-A;h.r=r[2]/2,h.innerR=r[3]/2,0>=d&&(d+=a),0>=g&&(g+=a),g<d&&(g=[d,d=g][0]),p<a&&A+g>l+(a-p)/2&&(g=d,d=0>=A?A:0),a=h.start=Math.max(d+A,A),d=h.end=Math.min(g+A,l),"polygon"===c.options.gridLineInterpolation&&(p=a-(g=e.hoverPane.axis).startAngleRad+g.pos,d-=a,u=c.getPlotLinePath({value:c.max}),a=g.toValue(p),p=g.toValue(p+d),a<g.getExtremes().min&&(a=(d=g.getExtremes()).max-(d.min-a)),p<g.getExtremes().min&&(p=(d=g.getExtremes()).max-(d.min-p)),p<a&&(p=[a,a=p][0]),(u=f(u,a,p,g)).push(["L",r[0]+e.plotLeft,e.plotTop+r[1]]),h.d=u,u="path")}this.zoomVert&&(g=e.inverted?e.xAxis[0]:e.yAxis[0],n=Math.sqrt(Math.pow(n-e.plotLeft-r[0],2)+Math.pow(i-e.plotTop-r[1],2)),(o=Math.sqrt(Math.pow(s-e.plotLeft-r[0],2)+Math.pow(o-e.plotTop-r[1],2)))<n&&(n=[o,o=n][0]),o>r[2]/2&&(o=r[2]/2),n<r[3]/2&&(n=r[3]/2),this.zoomHor||(h.start=A,h.end=l),h.r=o,h.innerR=n,"polygon"===g.options.gridLineInterpolation&&(d=g.toValue(g.len+g.pos-n),a=g.toValue(g.len+g.pos-o),u=g.getPlotLinePath({value:a}).concat(g.getPlotLinePath({value:d,reverse:!0})),h.d=u,u="path")),this.zoomHor&&this.zoomVert&&"polygon"===c.options.gridLineInterpolation&&(g=e.hoverPane.axis,a=h.start||0,d=h.end||0,p=a-g.startAngleRad+g.pos,d-=a,a=g.toValue(p),p=g.toValue(p+d),h.d instanceof Array&&(r=h.d.slice(0,h.d.length/2),A=h.d.slice(h.d.length/2,h.d.length),A=B([],A,!0).reverse(),r=f(r,a,p,e=e.hoverPane.axis),(A=f(A,a,p,e))&&(A[0][0]="L"),A=B([],A,!0).reverse(),h.d=r.concat(A),u="path")),t.attrs=h,t.shapeType=u}}function h(){var t=this.chart;t.polar&&(this.polar=new M(this),t.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function u(){if(this.chart.polar&&this.xAxis){var t=this.chart;(this.kdByAngle=t.tooltip&&t.tooltip.shared)?this.searchPoint=p:this.options.findNearestPointBy="xy";for(var r=this.points,n=r.length;n--;)this.preventPostTranslate||this.polar.toXY(r[n]),t.hasParallelCoordinates||this.yAxis.reversed||(F(r[n].y,Number.MIN_VALUE)<this.yAxis.min||r[n].x<this.xAxis.min||r[n].x>this.xAxis.max?(r[n].isNull=!0,r[n].plotY=NaN):r[n].isNull=r[n].isValid&&!r[n].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(_(this,"afterRender",function(){if(t.polar){var r=this.yAxis.pane.center;if(this.clipCircle)this.clipCircle.animate({x:r[0],y:r[1],r:r[2]/2,innerR:r[3]/2});else{var n=t.renderer,i=r[0],o=r[1],s=r[2]/2,a=r[3]/2;r=k();var A=n.createElement("clipPath").attr({id:r}).add(n.defs);(n=a?n.arc(i,o,s,a,0,2*Math.PI).add(A):n.circle(i,o,s).add(A)).id=r,n.clipPath=A,this.clipCircle=n}this.group.clip(this.clipCircle),this.setClip=e.noop}})))}}function p(t){var e=this.chart,r=this.xAxis;return r=r.pane&&r.pane.center,this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(t.chartX-(r&&r[0]||0)-e.plotLeft,t.chartY-(r&&r[1]||0)-e.plotTop)})}function f(t,e,r,n){var i=n.tickInterval;n=n.tickPositions;var o=S(n,function(t){return t>=r}),s=S(B([],n,!0).reverse(),function(t){return t<=e});return E(o)||(o=n[n.length-1]),E(s)||(s=n[0],o+=i,t[0][0]="L",t.unshift(t[t.length-3])),(t=t.slice(n.indexOf(s),n.indexOf(o)+1))[0][0]="M",t}function d(t,e){return S(this.pane||[],function(t){return t.options.id===e})||t.call(this,e)}function g(t,e,r,n,i,o){var s=this.chart,a=F(n.inside,!!this.options.stacking);s.polar?(t=e.rectPlotX/Math.PI*180,s.inverted?(this.forceDL=s.isInsidePlot(e.plotX,e.plotY),a&&e.shapeArgs?(i=e.shapeArgs,i={x:(i=this.yAxis.postTranslate(((i.start||0)+(i.end||0))/2-this.xAxis.startAngleRad,e.barX+e.pointWidth/2)).x-s.plotLeft,y:i.y-s.plotTop}):e.tooltipPos&&(i={x:e.tooltipPos[0],y:e.tooltipPos[1]}),n.align=F(n.align,"center"),n.verticalAlign=F(n.verticalAlign,"middle")):(null===n.align&&(n.align=20<t&&160>t?"left":200<t&&340>t?"right":"center"),null===n.verticalAlign&&(n.verticalAlign=45>t||315<t?"bottom":135<t&&225>t?"top":"middle")),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,e,r,n,i,o),this.isRadialBar&&e.shapeArgs&&e.shapeArgs.start===e.shapeArgs.end?r.hide():r.show()):t.call(this,e,r,n,i,o)}function m(t){var e=this.options,r=e.stacking,n=this.chart,o=this.xAxis,s=this.yAxis,a=s.reversed,A=s.center,l=o.startAngleRad,c=o.endAngleRad-l,h=0,u=0,p=0;if(this.preventPostTranslate=!0,t.call(this),o.isRadial){o=(t=this.points).length;var f=s.translate(s.min),d=s.translate(s.max);for(e=e.threshold||0,n.inverted&&I(e)&&(h=s.translate(e),E(h)&&(0>h?h=0:h>c&&(h=c),this.translatedThreshold=h+l));o--;){var g=(e=t[o]).barX,m=e.x,y=e.y;e.shapeType="arc",n.inverted?(e.plotY=s.translate(y),r&&s.stacking?(y=s.stacking.stacks[(0>y?"-":"")+this.stackKey],this.visible&&y&&y[m]&&!e.isNull&&(p=y[m].points[this.getStackIndicator(void 0,m,this.index).key],u=s.translate(p[0]),p=s.translate(p[1]),E(u)&&(u=i.clamp(u,0,c)))):(u=h,p=e.plotY),u>p&&(p=[u,u=p][0]),a?p>f?p=f:u<d?u=d:(u>f||p<d)&&(u=p=c):u<f?u=f:p>d?p=d:(p<f||u>d)&&(u=p=0),s.min>s.max&&(u=p=a?c:0),u+=l,p+=l,A&&(e.barX=g+=A[3]/2),m=Math.max(g,0),y=Math.max(g+e.pointWidth,0),e.shapeArgs={x:A&&A[0],y:A&&A[1],r:y,innerR:m,start:u,end:p},e.opacity=u===p?0:void 0,e.plotY=(E(this.translatedThreshold)&&(u<this.translatedThreshold?u:p))-l):(u=g+l,e.shapeArgs=this.polar.arc(e.yBottom,e.plotY,u,u+e.pointWidth)),this.polar.toXY(e),n.inverted?(g=s.postTranslate(e.rectPlotY,g+e.pointWidth/2),e.tooltipPos=[g.x-n.plotLeft,g.y-n.plotTop]):e.tooltipPos=[e.plotX,e.plotY],A&&(e.ttBelow=e.plotY>A[1])}}}function y(t,e){var r=this;if(this.chart.polar){e=e||this.points;for(var n=0;n<e.length;n++)if(!e[n].isNull){var i=n;break}if(!1!==this.options.connectEnds&&void 0!==i){this.connectEnds=!0,e.splice(e.length,0,e[i]);var o=!0}e.forEach(function(t){void 0===t.polarPlotY&&r.polar.toXY(t)})}return i=t.apply(this,[].slice.call(arguments,1)),o&&e.pop(),i}function v(t,e){var r=this.chart,n={xAxis:[],yAxis:[]};return r.polar?r.axes.forEach(function(t){if("colorAxis"!==t.coll){var i=t.isXAxis,o=t.center,s=e.chartX-o[0]-r.plotLeft;o=e.chartY-o[1]-r.plotTop,n[i?"xAxis":"yAxis"].push({axis:t,value:t.translate(i?Math.PI-Math.atan2(s,o):Math.sqrt(Math.pow(s,2)+Math.pow(o,2)),!0)})}}):n=t.call(this,e),n}function b(t,e){this.chart.polar||t.call(this,e)}function w(t,r){var n,i,o,s,a=this,A=this.chart,l=this.group,c=this.markerGroup,h=this.xAxis&&this.xAxis.center,u=A.plotLeft,p=A.plotTop,f=this.options.animation;if(A.polar){if(a.isRadialBar)r||(a.startAngleRad=F(a.translatedThreshold,a.xAxis.startAngleRad),e.seriesTypes.pie.prototype.animate.call(a,r));else if(A.renderer.isSVG)if(f=C(f),a.is("column")){if(!r){var d=h[3]/2;a.points.forEach(function(t){n=t.graphic,o=(i=t.shapeArgs)&&i.r,s=i&&i.innerR,n&&i&&(n.attr({r:d,innerR:d}),n.animate({r:o,innerR:s},a.options.animation))})}}else r?(t={translateX:h[0]+u,translateY:h[1]+p,scaleX:.001,scaleY:.001},l.attr(t),c&&c.attr(t)):(t={translateX:u,translateY:p,scaleX:1,scaleY:1},l.animate(t,f),c&&c.animate(t,f))}else t.call(this,r)}function x(t,e,r,n){return this.chart.polar?n?(e=(t=o(e,n,!0,this.connectEnds)).prevPointCont&&t.prevPointCont.rightContX,r=t.prevPointCont&&t.prevPointCont.rightContY,t=["C",I(e)?e:t.plotX,I(r)?r:t.plotY,I(t.leftContX)?t.leftContX:t.plotX,I(t.leftContY)?t.leftContY:t.plotY,t.plotX,t.plotY]):t=["M",r.plotX,r.plotY]:t=t.call(this,e,r,n),t}var B=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},C=t.animObject,_=i.addEvent,E=i.defined,S=i.find,I=i.isNumber,F=i.pick,T=i.splat,k=i.uniqueKey,L=i.wrap,P=[],M=function(){function t(t){this.series=t}return t.compose=function(t,e,r,i,o,p,f,B,C){n.compose(t,o),-1===P.indexOf(e)&&(P.push(e),_(e,"afterDrawChartBox",s),_(e,"getAxes",A),_(e,"init",a),L(e.prototype,"get",d)),-1===P.indexOf(r)&&(P.push(r),t=r.prototype,L(t,"getCoordinates",v),L(t,"pinch",b),_(r,"getSelectionMarkerAttrs",c),_(r,"getSelectionBox",l)),-1===P.indexOf(i)&&(P.push(i),_(i,"afterInit",h),_(i,"afterTranslate",u,{order:2}),L(i.prototype,"animate",w)),f&&-1===P.indexOf(f)&&(P.push(f),r=f.prototype,L(r,"alignDataLabel",g),L(r,"animate",w),L(r,"translate",m)),B&&-1===P.indexOf(B)&&(P.push(B),L(B.prototype,"getGraphPath",y)),C&&-1===P.indexOf(C)&&(P.push(C),B=C.prototype,L(B,"getPointSpline",x),p&&-1===P.indexOf(p)&&(P.push(p),p.prototype.getPointSpline=B.getPointSpline))},t.prototype.arc=function(t,e,r,n){var i=this.series,o=i.xAxis.center,s=i.yAxis.len,a=o[3]/2;return e=s-e+a,t=s-F(t,s)+a,i.yAxis.reversed&&(0>e&&(e=a),0>t&&(t=a)),{x:o[0],y:o[1],r:e,innerR:t,start:r,end:n}},t.prototype.toXY=function(t){var e=this.series,r=e.chart,n=e.xAxis,i=e.yAxis,o=t.plotX,s=r.inverted,a=t.y,A=t.plotY,l=s?o:i.len-A;s&&e&&!e.isRadialBar&&(t.plotY=A=I(a)?i.translate(a):0),t.rectPlotX=o,t.rectPlotY=A,i.center&&(l+=i.center[3]/2),I(A)&&(i=s?i.postTranslate(A,l):n.postTranslate(o,l),t.plotX=t.polarPlotX=i.x-r.plotLeft,t.plotY=t.polarPlotY=i.y-r.plotTop),e.kdByAngle?(0>(e=(o/Math.PI*180+n.pane.options.startAngle)%360)&&(e+=360),t.clientX=e):t.clientX=t.plotX},t}();return M}),e(t,"masters/highcharts-more.src.js",[t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Bubble/BubbleSeries.js"],t["Series/PackedBubble/PackedBubbleSeries.js"],t["Series/PolarComposition.js"]],function(t,e,r,n,i){r.compose(t.Axis,t.Chart,t.Legend,t.Series),n.compose(t.Axis,t.Chart,t.Legend,t.Series),i.compose(t.Axis,t.Chart,t.Pointer,t.Series,t.Tick,e.seriesTypes.areasplinerange,e.seriesTypes.column,e.seriesTypes.line,e.seriesTypes.spline)})},t.exports?(o.default=o,t.exports=o):(n=[r(66044)],void 0===(i=function(t){return o(t),o.Highcharts=t,o}.apply(e,n))||(t.exports=i))},66044(t,e,r){var n,i,o;i="undefined"!=typeof window?window:this,o=function(t){function e(e,r,n,i){e.hasOwnProperty(r)||(e[r]=i.apply(null,n),"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:r,module:e[r]}})))}var r={};return e(r,"Core/Globals.js",[],function(){var e;return function(e){e.SVG_NS="http://www.w3.org/2000/svg",e.product="Highcharts",e.version="10.3.3",e.win=void 0!==t?t:{},e.doc=e.win.document,e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,"svg").createSVGRect,e.userAgent=e.win.navigator&&e.win.navigator.userAgent||"",e.isChrome=-1!==e.userAgent.indexOf("Chrome"),e.isFirefox=-1!==e.userAgent.indexOf("Firefox"),e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&-1!==e.userAgent.indexOf("Safari"),e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=-1!==e.userAgent.indexOf("AppleWebKit"),e.deg2rad=2*Math.PI/360,e.hasBidiBug=e.isFirefox&&4>parseInt(e.userAgent.split("Firefox/")[1],10),e.hasTouch=!!e.win.TouchEvent,e.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],e.noop=function(){},e.supportsPassiveEvents=function(){var t=!1;if(!e.isMS){var r=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",e.noop,r),e.win.removeEventListener("testPassive",e.noop,r))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0}(e||(e={})),e}),e(r,"Core/Utilities.js",[r["Core/Globals.js"]],function(t){function e(r,n,i,o){var s=n?"Highcharts error":"Highcharts warning";32===r&&(r=s+": Deprecated member");var a=A(r),l=a?s+" #"+r+": www.highcharts.com/errors/"+r+"/":r.toString();if(void 0!==o){var c="";a&&(l+="?"),g(o,function(t,e){c+="\n - ".concat(e,": ").concat(t),a&&(l+=encodeURI(e)+"="+encodeURI(t))}),l+=c}y(t,"displayError",{chart:i,code:r,message:l,params:o},function(){if(n)throw Error(l);w.console&&-1===e.messages.indexOf(l)&&console.warn(l)}),e.messages.push(l)}function r(t,e){return parseInt(t,e||10)}function n(t){return"string"==typeof t}function i(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function o(t,e){return!(!t||"object"!=typeof t||e&&i(t))}function s(t){return o(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!o(t,!0)||s(t)||!e||!e.name||"Object"===e.name)}function A(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function l(t){return null!=t}function c(t,e,r){var i,o=n(e)&&!l(r),s=function(e,r){l(e)?t.setAttribute(r,e):o?(i=t.getAttribute(r))||"class"!==r||(i=t.getAttribute(r+"Name")):t.removeAttribute(r)};return n(e)?s(r,e):g(e,s),i}function h(t,e){var r;for(r in t||(t={}),e)t[r]=e[r];return t}function u(){for(var t=arguments,e=t.length,r=0;r<e;r++){var n=t[r];if(null!=n)return n}}function p(e,r){t.isMS&&!t.svg&&r&&l(r.opacity)&&(r.filter="alpha(opacity=".concat(100*r.opacity,")")),h(e.style,r)}function f(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function d(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}function g(t,e,r){for(var n in t)Object.hasOwnProperty.call(t,n)&&e.call(r||t[n],t[n],n,t)}function m(e,r,n){function i(r,n){var i=e.removeEventListener||t.removeEventListenerPolyfill;i&&i.call(e,r,n,!1)}function o(t){var n;if(e.nodeName){if(r){var o={};o[r]=!0}else o=t;g(o,function(e,r){if(t[r])for(n=t[r].length;n--;)i(r,t[r][n].fn)})}}var s="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(s,"hcEvents")){var a=s.hcEvents;r?(s=a[r]||[],n?(a[r]=s.filter(function(t){return n!==t.fn}),i(r,n)):(o(a),a[r]=[])):(o(a),delete s.hcEvents)}}function y(e,r,n,i){if(n=n||{},b.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var o=b.createEvent("Events");o.initEvent(r,!0,!0),n=h(o,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(r,n)}else if(e.hcEvents){n.target||h(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:r}),o=[];for(var s=e,a=!1;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[r]&&(o.length&&(a=!0),o.unshift.apply(o,s.hcEvents[r])),s=Object.getPrototypeOf(s);a&&o.sort(function(t,e){return t.order-e.order}),o.forEach(function(t){!1===t.fn.call(e,n)&&n.preventDefault()})}i&&!n.defaultPrevented&&i.call(e,n)}var v=t.charts,b=t.doc,w=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var x=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var r,n=t.length;for(r=0;r<n;r++)if(e(t[r],r))return t[r]};g({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(r,n){t[n]=function(t){var i;return e(32,!1,void 0,((i={})["Highcharts.".concat(n)]="use Array.".concat(r),i)),Array.prototype[r].apply(t,[].slice.call(arguments,1))}});var B,C=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(B?"":t)+e++}}();return w.jQuery&&(w.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[n(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):v[c(this[0],"data-highcharts-chart")]}),x={addEvent:function(e,r,n,i){void 0===i&&(i={});var o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={}),o=o.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var s=e.addEventListener||t.addEventListenerPolyfill;return s&&s.call(e,r,n,!!t.supportsPassiveEvents&&{passive:void 0===i.passive?-1!==r.indexOf("touch"):i.passive,capture:!1}),o[r]||(o[r]=[]),o[r].push({fn:n,order:"number"==typeof i.order?i.order:1/0}),o[r].sort(function(t,e){return t.order-e.order}),function(){m(e,r,n)}},arrayMax:function(t){for(var e=t.length,r=t[0];e--;)t[e]>r&&(r=t[e]);return r},arrayMin:function(t){for(var e=t.length,r=t[0];e--;)t[e]<r&&(r=t[e]);return r},attr:c,clamp:function(t,e,r){return t>e?t<r?t:r:e},cleanRecursively:function t(e,r){var n={};return g(e,function(i,s){o(e[s],!0)&&!e.nodeType&&r[s]?(i=t(e[s],r[s]),Object.keys(i).length&&(n[s]=i)):(o(e[s])||e[s]!==r[s]||s in e&&!(s in r))&&(n[s]=e[s])}),n},clearTimeout:function(t){l(t)&&clearTimeout(t)},correctFloat:d,createElement:function(t,e,r,n,i){return t=b.createElement(t),e&&h(t,e),i&&p(t,{padding:"0",border:"none",margin:"0"}),r&&p(t,r),n&&n.appendChild(t),t},css:p,defined:l,destroyObjectProperties:function(t,e){g(t,function(r,n){r&&r!==e&&r.destroy&&r.destroy(),delete t[n]})},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var r=t.length;r--;)if(t[r]===e){t.splice(r,1);break}},error:e,extend:h,extendClass:function(t,e){var r=function(){};return h(r.prototype=new t,e),r},find:x,fireEvent:y,getMagnitude:f,getNestedProperty:function(t,e){for(t=t.split(".");t.length&&l(e);){var r=t.shift();if(void 0===r||"__proto__"===r)return;if(!l(e=e[r])||"function"==typeof e||"number"==typeof e.nodeType||e===w)return}return e},getStyle:function n(i,o,s){var a=t.getStyle||n;if("width"===o)return o=Math.min(i.offsetWidth,i.scrollWidth),(s=i.getBoundingClientRect&&i.getBoundingClientRect().width)<o&&s>=o-1&&(o=Math.floor(s)),Math.max(0,o-(a(i,"padding-left",!0)||0)-(a(i,"padding-right",!0)||0));if("height"===o)return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(a(i,"padding-top",!0)||0)-(a(i,"padding-bottom",!0)||0));if(w.getComputedStyle||e(27,!0),i=w.getComputedStyle(i,void 0)){var A=i.getPropertyValue(o);u(s,"opacity"!==o)&&(A=r(A))}return A},inArray:function(t,r,n){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),r.indexOf(t,n)},isArray:i,isClass:a,isDOMElement:s,isFunction:function(t){return"function"==typeof t},isNumber:A,isObject:o,isString:n,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,r={},n=function(t,e){return"object"!=typeof t&&(t={}),g(e,function(r,i){"__proto__"!==i&&"constructor"!==i&&(!o(r,!0)||a(r)||s(r)?t[i]=e[i]:t[i]=n(t[i]||{},r))}),t};!0===e[0]&&(r=e[1],e=Array.prototype.slice.call(e,2));var i=e.length;for(t=0;t<i;t++)r=n(r,e[t]);return r},normalizeTickInterval:function(t,e,r,n,i){var o=t,s=t/(r=u(r,f(t)));for(e||(e=i?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===n&&(1===r?e=e.filter(function(t){return 0==t%1}):.1>=r&&(e=[1/r]))),n=0;n<e.length&&(o=e[n],!(i&&o*r>=t||!i&&s<=(e[n]+(e[n+1]||e[n]))/2));n++);return d(o*r,-Math.round(Math.log(.001)/Math.LN10))},objectEach:g,offset:function(t){var e=b.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(w.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(w.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,r){return Array((e||2)+1-String(t).replace("-","").length).join(r||"0")+t},pick:u,pInt:r,relativeLength:function(t,e,r){return/%$/.test(t)?e*parseFloat(t)/100+(r||0):parseFloat(t)},removeEvent:m,splat:function(t){return i(t)?t:[t]},stableSort:function(t,e){var r,n,i=t.length;for(n=0;n<i;n++)t[n].safeI=n;for(t.sort(function(t,n){return 0===(r=e(t,n))?t.safeI-n.safeI:r}),n=0;n<i;n++)delete t[n].safeI},syncTimeout:function(t,e,r){return 0<e?setTimeout(t,e,r):(t.call(0,r),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:C,useSerialIds:function(t){return B=u(t,B)},wrap:function(t,e,r){var n=t[e];t[e]=function(){var t=arguments,e=this;return r.apply(this,[function(){return n.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}},x}),e(r,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),e(r,"Core/Color/Color.js",[r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e){var r=e.isNumber,n=e.merge,i=e.pInt;return e=function(){function e(r){this.rgba=[NaN,NaN,NaN,NaN],this.input=r;var n=t.Color;return n&&n!==e?new n(r):this instanceof e?void this.init(r):new e(r)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.init=function(t){var r;if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map(function(t){return new e(t[1])});else if("string"==typeof t){if(this.input=t=e.names[t.toLowerCase()]||t,"#"===t.charAt(0)){var n=t.length,i=parseInt(t.substr(1),16);7===n?r=[(16711680&i)>>16,(65280&i)>>8,255&i,1]:4===n&&(r=[(3840&i)>>4|(3840&i)>>8,(240&i)>>4|240&i,(15&i)<<4|15&i,1])}if(!r)for(i=e.parsers.length;i--&&!r;){var o=e.parsers[i];(n=o.regex.exec(t))&&(r=o.parse(n))}}r&&(this.rgba=r)},e.prototype.get=function(t){var e=this.input,i=this.rgba;if("object"==typeof e&&void 0!==this.stops){var o=n(e);return o.stops=[].slice.call(o.stops),this.stops.forEach(function(e,r){o.stops[r]=[o.stops[r][0],e.get(t)]}),o}return i&&r(i[0])?"rgb"===t||!t&&1===i[3]?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===t?"".concat(i[3]):"rgba("+i.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(r(t)&&0!==t)for(var n=0;3>n;n++)e[n]+=i(255*t),0>e[n]&&(e[n]=0),255<e[n]&&(e[n]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var n=this.rgba,i=t.rgba;return r(n[0])&&r(i[0])?((t=1!==i[3]||1!==n[3])?"rgba(":"rgb(")+Math.round(i[0]+(n[0]-i[0])*(1-e))+","+Math.round(i[1]+(n[1]-i[1])*(1-e))+","+Math.round(i[2]+(n[2]-i[2])*(1-e))+(t?","+(i[3]+(n[3]-i[3])*(1-e)):"")+")":t.input||"none"},e.names={white:"#ffffff",black:"#000000"},e.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[i(t[1]),i(t[2]),i(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[i(t[1]),i(t[2]),i(t[3]),1]}}],e.None=new e(""),e}(),e}),e(r,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),e(r,"Core/Time.js",[r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e){var r=t.win,n=e.defined,i=e.error,o=e.extend,s=e.isObject,a=e.merge,A=e.objectEach,l=e.pad,c=e.pick,h=e.splat,u=e.timeUnits,p=t.isSafari&&r.Intl&&r.Intl.DateTimeFormat.prototype.formatRange,f=t.isSafari&&r.Intl&&!r.Intl.DateTimeFormat.prototype.formatRange;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=r.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var r=e.getTime(),n=r-this.getTimezoneOffset(e);return e.setTime(n),t=e["getUTC"+t](),e.setTime(r),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,r){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](r);var n=this.getTimezoneOffset(e);return n=e.getTime()-n,e.setTime(n),e["setUTC"+t](r),t=this.getTimezoneOffset(e),n=e.getTime()+t,e.setTime(n)}return this.useUTC||p&&"FullYear"===t?e["setUTC"+t](r):e["set"+t](r)},e.prototype.update=function(t){void 0===t&&(t={});var e=c(t.useUTC,!0);this.options=t=a(!0,this.options,t),this.Date=t.Date||r.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(t,e,r,n,i,o){if(this.useUTC){var s=this.Date.UTC.apply(0,arguments),a=this.getTimezoneOffset(s);s+=a;var A=this.getTimezoneOffset(s);a!==A?s+=A-a:a-36e5!==this.getTimezoneOffset(s-36e5)||f||(s-=36e5)}else s=new this.Date(t,e,c(r,1),c(n,0),c(i,0),c(o,0)).getTime();return s},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,n=e.getTimezoneOffset,o=e.moment||r.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(o)return function(t){return 6e4*-o.tz(t,e.timezone).utcOffset()};i(25)}return this.useUTC&&n?function(t){return 6e4*n(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,r,i){if(!n(r)||isNaN(r))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=c(e,"%Y-%m-%d %H:%M:%S");var s=this,a=new this.Date(r),h=this.get("Hours",a),u=this.get("Day",a),p=this.get("Date",a),f=this.get("Month",a),d=this.get("FullYear",a),g=t.defaultOptions.lang,m=g&&g.weekdays,y=g&&g.shortWeekdays;return a=o({a:y?y[u]:m[u].substr(0,3),A:m[u],d:l(p),e:l(p,2," "),w:u,b:g.shortMonths[f],B:g.months[f],m:l(f+1),o:f+1,y:d.toString().substr(2,2),Y:d,H:l(h),k:h,I:l(h%12||12),l:h%12||12,M:l(this.get("Minutes",a)),p:12>h?"AM":"PM",P:12>h?"am":"pm",S:l(a.getSeconds()),L:l(Math.floor(r%1e3),3)},t.dateFormats),A(a,function(t,n){for(;-1!==e.indexOf("%"+n);)e=e.replace("%"+n,"function"==typeof t?t.call(s,r):t)}),i?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return s(t,!0)?t:{main:(t=h(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,r,i){var s,a=this,A=[],l={},h=new a.Date(e),p=t.unitRange,f=t.count||1;if(i=c(i,1),n(e)){if(a.set("Milliseconds",h,p>=u.second?0:f*Math.floor(a.get("Milliseconds",h)/f)),p>=u.second&&a.set("Seconds",h,p>=u.minute?0:f*Math.floor(a.get("Seconds",h)/f)),p>=u.minute&&a.set("Minutes",h,p>=u.hour?0:f*Math.floor(a.get("Minutes",h)/f)),p>=u.hour&&a.set("Hours",h,p>=u.day?0:f*Math.floor(a.get("Hours",h)/f)),p>=u.day&&a.set("Date",h,p>=u.month?1:Math.max(1,f*Math.floor(a.get("Date",h)/f))),p>=u.month){a.set("Month",h,p>=u.year?0:f*Math.floor(a.get("Month",h)/f));var d=a.get("FullYear",h)}p>=u.year&&a.set("FullYear",h,d-d%f),p===u.week&&(d=a.get("Day",h),a.set("Date",h,a.get("Date",h)-d+i+(d<i?-7:0))),d=a.get("FullYear",h),i=a.get("Month",h);var g=a.get("Date",h),m=a.get("Hours",h);for(e=h.getTime(),!a.variableTimezone&&a.useUTC||!n(r)||(s=r-e>4*u.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(r)),e=h.getTime(),h=1;e<r;)A.push(e),e=p===u.year?a.makeTime(d+h*f,0):p===u.month?a.makeTime(d,i+h*f):!s||p!==u.day&&p!==u.week?s&&p===u.hour&&1<f?a.makeTime(d,i,g,m+h*f):e+p*f:a.makeTime(d,i,g+h*f*(p===u.day?1:7)),h++;A.push(e),p<=u.hour&&1e4>A.length&&A.forEach(function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(l[t]="day")})}return A.info=o(t,{higherRanks:l,totalRange:p*f}),A},e.prototype.getDateFormat=function(t,e,r,n){var i=this.dateFormat("%m-%d %H:%M:%S.%L",e),o={millisecond:15,second:12,minute:9,hour:6,day:3},s="millisecond";for(a in u){if(t===u.week&&+this.dateFormat("%w",e)===r&&"00:00:00.000"===i.substr(6)){var a="week";break}if(u[a]>t){a=s;break}if(o[a]&&i.substr(o[a])!=="01-01 00:00:00.000".substr(o[a]))break;"week"!==a&&(s=a)}return this.resolveDTLFormat(n[a]).main},e}(),e}),e(r,"Core/Defaults.js",[r["Core/Chart/ChartDefaults.js"],r["Core/Color/Color.js"],r["Core/Globals.js"],r["Core/Color/Palettes.js"],r["Core/Time.js"],r["Core/Utilities.js"]],function(t,e,r,n,i,o){e=e.parse;var s=o.merge,a={colors:n.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:r.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:r.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};a.chart.styledMode=!1;var A=new i(s(a.global,a.time));return{defaultOptions:a,defaultTime:A,getOptions:function(){return a},setOptions:function(t){return s(!0,a,t),(t.time||t.global)&&(r.time?r.time.update(s(a.global,a.time,t.global,t.time)):r.time=A),a}}}),e(r,"Core/Animation/Fx.js",[r["Core/Color/Color.js"],r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e,r){var n=t.parse,i=e.win,o=r.isNumber,s=r.objectEach;return function(){function t(t,e,r){this.pos=NaN,this.options=e,this.elem=t,this.prop=r}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var r=this.now||0,n=[];if(1!==r&&e&&t)if(e.length===t.length&&1>r)for(var i=0;i<t.length;i++){for(var s=e[i],a=t[i],A=[],l=0;l<a.length;l++){var c=s[l],h=a[l];o(c)&&o(h)&&("A"!==a[0]||4!==l&&5!==l)?A[l]=c+r*(h-c):A[l]=h}n.push(A)}else n=t;else n=this.toD||[];this.elem.attr("d",n,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,r=this.now,n=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,r,null,!0):t.style[e]=r+this.unit,n&&n.call(t,r,this)},t.prototype.run=function(e,r,n){var o=this,s=o.options,a=function(t){return!a.stopped&&o.step(t)},A=i.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&A(l)};e!==r||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=r,this.unit=n,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&A(l)):(delete s.curAnim[this.prop],s.complete&&0===Object.keys(s.curAnim).length&&s.complete.call(this.elem))},t.prototype.step=function(t){var e=+new Date,r=this.options,n=this.elem,i=r.complete,o=r.duration,a=r.curAnim;if(n.attr&&!n.element)t=!1;else if(t||e>=o+this.startTime){this.now=this.end,this.pos=1,this.update();var A=a[this.prop]=!0;s(a,function(t){!0!==t&&(A=!1)}),A&&i&&i.call(n),t=!1}else this.pos=r.easing((e-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,r){function n(t,e){for(;t.length<u;){var r=t[0],n=e[u-t.length];n&&"M"===r[0]&&(t[0]="C"===n[0]?["C",r[1],r[2],r[1],r[2],r[1],r[2]]:["L",r[1],r[2]]),t.unshift(r),A&&(r=t.pop(),t.push(t[t.length-1],r))}}function i(t,e){for(;t.length<u;)if("C"===(e=t[Math.floor(t.length/l)-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),A){var r=t[Math.floor(t.length/l)].slice();t.splice(t.length/2,0,e,r)}else t.push(e)}var s=t.startX,a=t.endX;r=r.slice();var A=t.isArea,l=A?2:1;if(!(e=e&&e.slice()))return[r,r];if(s&&a&&a.length){for(t=0;t<s.length;t++){if(s[t]===a[0]){var c=t;break}if(s[0]===a[a.length-s.length+t]){c=t;var h=!0;break}if(s[s.length-1]===a[a.length-s.length+t]){c=s.length-t;break}}void 0===c&&(e=[])}if(e.length&&o(c)){var u=r.length+c*l;h?(n(e,r),i(r,e)):(n(r,e),i(e,r))}return[e,r]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)},t.timers=[],t}()}),e(r,"Core/Animation/AnimationUtilities.js",[r["Core/Animation/Fx.js"],r["Core/Utilities.js"]],function(t,e){function r(t){return A(t)?l({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function n(e,r){for(var n=t.timers.length;n--;)t.timers[n].elem!==e||r&&r!==t.timers[n].prop||(t.timers[n].stopped=!0)}var i=e.defined,o=e.getStyle,s=e.isArray,a=e.isNumber,A=e.isObject,l=e.merge,c=e.objectEach,h=e.pick;return{animate:function(e,r,i){var h,u,p,f="";if(!A(i)){var d=arguments;i={duration:d[2],easing:d[3],complete:d[4]}}a(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=l(r),c(r,function(a,A){n(e,A),p=new t(e,i,A),u=void 0,"d"===A&&s(r.d)?(p.paths=p.initPath(e,e.pathArray,r.d),p.toD=r.d,h=0,u=1):e.attr?h=e.attr(A):(h=parseFloat(o(e,A))||0,"opacity"!==A&&(f="px")),u||(u=a),"string"==typeof u&&u.match("px")&&(u=u.replace(/px/g,"")),p.run(h,u,f)})},animObject:r,getDeferredAnimation:function(t,e,n){var o=r(e),s=0,a=0;return(n?[n]:t.series).forEach(function(t){t=r(t.options.animation),s=e&&i(e.defer)?o.defer:Math.max(s,t.duration+t.defer),a=Math.min(o.duration,t.duration)}),t.renderer.forExport&&(s=0),{defer:Math.max(0,s-a),duration:Math.min(s,a)}},setAnimation:function(t,e){e.renderer.globalAnimation=h(t,e.options.chart.animation,!0)},stop:n}}),e(r,"Core/Renderer/HTML/AST.js",[r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e){var r=t.SVG_NS,n=e.attr,i=e.createElement,o=e.css,s=e.error,a=e.isFunction,A=e.isString,l=e.objectEach,c=e.splat,h=(e=t.win.trustedTypes)&&a(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(t){return t}}),u=h?h.createHTML(""):"";try{var p=!!(new DOMParser).parseFromString(u,"text/html")}catch(t){p=!1}return a=function(){function e(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return e.filterUserAttributes=function(t){return l(t,function(r,n){var i=!0;-1===e.allowedAttributes.indexOf(n)&&(i=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(n)&&(i=A(r)&&e.allowedReferences.some(function(t){return 0===r.indexOf(t)})),i||(s(33,!1,void 0,{"Invalid attribute in config":"".concat(n)}),delete t[n]),A(r)&&t[n]&&(t[n]=r.replace(/</g,"&lt;"))}),t},e.parseStyle=function(t){return t.split(";").reduce(function(t,e){e=e.split(":").map(function(t){return t.trim()});var r=e.shift();return r&&e.length&&(t[r.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})]=e.join(":")),t},{})},e.setElementHTML=function(t,r){t.innerHTML=e.emptyHTML,r&&new e(r).addToDOM(t)},e.prototype.addToDOM=function(i){return function i(a,A){var h;return c(a).forEach(function(a){var c=a.tagName,u=a.textContent?t.doc.createTextNode(a.textContent):void 0,p=e.bypassHTMLFiltering;if(c)if("#text"===c)var f=u;else if(-1!==e.allowedTags.indexOf(c)||p){c=t.doc.createElementNS("svg"===c?r:A.namespaceURI||r,c);var d=a.attributes||{};l(a,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(d[e]=t)}),n(c,p?d:e.filterUserAttributes(d)),a.style&&o(c,a.style),u&&c.appendChild(u),i(a.children||[],c),f=c}else s(33,!1,void 0,{"Invalid tagName in config":c});f&&A.appendChild(f),h=f}),h}(this.nodes,i)},e.prototype.parseMarkup=function(t){var r=[];if(t=t.trim().replace(/ style=(["'])/g," data-style=$1"),p)t=(new DOMParser).parseFromString(h?h.createHTML(t):t,"text/html");else{var n=i("div");n.innerHTML=t,t={body:n}}var o=function(t,r){var n=t.nodeName.toLowerCase(),i={tagName:n};if("#text"===n&&(i.textContent=t.textContent||""),n=t.attributes){var s={};[].forEach.call(n,function(t){"data-style"===t.name?i.style=e.parseStyle(t.value):s[t.name]=t.value}),i.attributes=s}if(t.childNodes.length){var a=[];[].forEach.call(t.childNodes,function(t){o(t,a)}),a.length&&(i.children=a)}r.push(i)};return[].forEach.call(t.body.childNodes,function(t){return o(t,r)}),r},e.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),e.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),e.emptyHTML=u,e.bypassHTMLFiltering=!1,e}(),a}),e(r,"Core/FormatUtilities.js",[r["Core/Defaults.js"],r["Core/Utilities.js"]],function(t,e){function r(t,e,r,i){t=+t||0,e=+e;var o=n.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,c=t.toString().split("e"),h=e;if(-1===e)e=Math.min(l,20);else if(s(e)){if(e&&c[1]&&0>c[1]){var u=e+ +c[1];0<=u?(c[0]=(+c[0]).toExponential(u).split("e")[0],e=u):(c[0]=c[0].split(".")[0]||0,t=20>e?(c[0]*Math.pow(10,c[1])).toFixed(e):0,c[1]=0)}}else e=2;u=(Math.abs(c[1]?c[0]:t)+Math.pow(10,-Math.max(e,l)-1)).toFixed(e);var p=3<(l=String(A(u))).length?l.length%3:0;return r=a(r,o.decimalPoint),i=a(i,o.thousandsSep),t=(0>t?"-":"")+(p?l.substr(0,p)+i:""),t=0>+c[1]&&!h?"0":t+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+i),e&&(t+=r+u.slice(-e)),c[1]&&0!==+t&&(t+="e"+c[1]),t}var n=t.defaultOptions,i=t.defaultTime,o=e.getNestedProperty,s=e.isNumber,a=e.pick,A=e.pInt;return{dateFormat:function(t,e,r){return i.dateFormat(t,e,r)},format:function(t,e,s){var a="{",A=!1,l=/f$/,c=/\.([0-9])/,h=n.lang,u=s&&s.time||i;s=s&&s.numberFormatter||r;for(var p=[];t;){var f=t.indexOf(a);if(-1===f)break;var d=t.slice(0,f);if(A){if(d=d.split(":"),a=o(d.shift()||"",e),d.length&&"number"==typeof a)if(d=d.join(":"),l.test(d)){var g=parseInt((d.match(c)||["","-1"])[1],10);null!==a&&(a=s(a,g,h.decimalPoint,-1<d.indexOf(",")?h.thousandsSep:""))}else a=u.dateFormat(d,a);p.push(a)}else p.push(d);t=t.slice(f+1),a=(A=!A)?"}":"{"}return p.push(t),p.join("")},numberFormat:r}}),e(r,"Core/Renderer/RendererUtilities.js",[r["Core/Utilities.js"]],function(t){var e,r=t.clamp,n=t.pick,i=t.stableSort;return function(t){t.distribute=function t(e,o,s){var a,A=e,l=A.reducedLen||o,c=function(t,e){return(e.rank||0)-(t.rank||0)},h=function(t,e){return t.target-e.target},u=!0,p=[],f=0;for(a=e.length;a--;)f+=e[a].size;if(f>l){for(i(e,c),f=a=0;f<=l;)f+=e[a].size,a++;p=e.splice(a-1,e.length)}for(i(e,h),e=e.map(function(t){return{size:t.size,targets:[t.target],align:n(t.align,.5)}});u;){for(a=e.length;a--;)l=e[a],c=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=r(c-l.size*l.align,0,o-l.size);for(a=e.length,u=!1;a--;)0<a&&e[a-1].pos+e[a-1].size>e[a].pos&&(e[a-1].size+=e[a].size,e[a-1].targets=e[a-1].targets.concat(e[a].targets),e[a-1].align=.5,e[a-1].pos+e[a-1].size>o&&(e[a-1].pos=o-e[a-1].size),e.splice(a,1),u=!0)}return A.push.apply(A,p),a=0,e.some(function(e){var r=0;return(e.targets||[]).some(function(){return A[a].pos=e.pos+r,void 0!==s&&Math.abs(A[a].pos-A[a].target)>s?(A.slice(0,a+1).forEach(function(t){return delete t.pos}),A.reducedLen=(A.reducedLen||o)-.1*o,A.reducedLen>.1*o&&t(A,o,s),!0):(r+=A[a].size,a++,!1)})}),i(A,h),A}}(e||(e={})),e}),e(r,"Core/Renderer/SVG/SVGElement.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Color/Color.js"],r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e,r,n){var i=t.animate,o=t.animObject,s=t.stop,a=r.deg2rad,A=r.doc,l=r.svg,c=r.SVG_NS,h=r.win,u=n.addEvent,p=n.attr,f=n.createElement,d=n.css,g=n.defined,m=n.erase,y=n.extend,v=n.fireEvent,b=n.isArray,w=n.isFunction,x=n.isString,B=n.merge,C=n.objectEach,_=n.pick,E=n.pInt,S=n.syncTimeout,I=n.uniqueKey;return t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=c,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return t.prototype._defaultGetter=function(t){return t=_(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,r){r.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,r=this.element;if(t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var n=this.zIndexSetter();return n||(t?t.element:e.box).appendChild(r),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var r=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce(function(t,e){return-1===r.indexOf(e)&&t.push(e),t},r?[r]:[]).join(" "),t!==r&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,r){var n,i,o,s={},a=this.renderer,A=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!r||x(r))&&(this.alignTo=n=r||"renderer",m(A,this),A.push(this),r=void 0)):(t=this.alignOptions,e=this.alignByTranslate,n=this.alignTo),r=_(r,a[n],"scrollablePlotBox"===n?a.plotBox:void 0,a),n=t.align;var l=t.verticalAlign;return a=(r.x||0)+(t.x||0),A=(r.y||0)+(t.y||0),"right"===n?i=1:"center"===n&&(i=2),i&&(a+=(r.width-(t.width||0))/i),s[e?"translateX":"x"]=Math.round(a),"bottom"===l?o=1:"middle"===l&&(o=2),o&&(A+=(r.height-(t.height||0))/o),s[e?"translateY":"y"]=Math.round(A),this[this.placed?"animate":"attr"](s),this.placed=!0,this.alignAttr=s,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,r){var n=this,s=o(_(e,this.renderer.globalAnimation,!0));return e=s.defer,_(A.hidden,A.msHidden,A.webkitHidden,!1)&&(s.duration=0),0!==s.duration?(r&&(s.complete=r),S(function(){n.element&&i(n,t,s)},e)):(this.attr(t,void 0,r||s.complete),C(t,function(t,e){s.step&&s.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var n=t.split(" ");if(t=n[n.length-1],(n=n[0])&&"none"!==n&&r.svg){this.fakeTS=!0,n=n.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,r){return 2*Number(e)+r}),this.removeTextOutline();var i=A.createElementNS(c,"tspan");p(i,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":n,"stroke-linejoin":"round"}),t=e.querySelector("textPath")||e,[].forEach.call(t.childNodes,function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(t){return e.removeAttribute(t)}),i.appendChild(e)});var o=0;[].forEach.call(t.querySelectorAll("text tspan"),function(t){o+=Number(t.getAttribute("dy"))}),(n=A.createElementNS(c,"tspan")).textContent="​",p(n,{x:Number(e.getAttribute("x")),dy:-o}),i.appendChild(n),t.insertBefore(i,t.firstChild)}},t.prototype.attr=function(t,e,r,n){var i,o,a,A=this.element,l=this.symbolCustomAttribs,c=this;if("string"==typeof t&&void 0!==e){var h=t;(t={})[h]=e}return"string"==typeof t?c=(this[t+"Getter"]||this._defaultGetter).call(this,t,A):(C(t,function(e,r){o=!1,n||s(this,r),this.symbolName&&-1!==l.indexOf(r)&&(i||(this.symbolAttr(t),i=!0),o=!0),!this.rotation||"x"!==r&&"y"!==r||(this.doTransform=!0),o||((a=this[r+"Setter"]||this._defaultSetter).call(this,e,r,A),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(r)&&this.updateShadows(r,e,a))},this),this.afterSetters()),r&&r.call(this),c},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var r=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+r,t.y=Math.floor(t.y||this.y||0)+r,t.width=Math.floor((t.width||this.width||0)-2*r),t.height=Math.floor((t.height||this.height||0)-2*r),g(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,r,n){var i,o,s,a,A,l,c,h,u,p,f,d=this.renderer,m=[];v(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(s=t[o],A=d.gradients,l=t.stops,u=n.radialReference,b(s)&&(t[o]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&u&&!g(s.gradientUnits)&&(a=s,s=B(s,d.getRadialAttr(u,a),{gradientUnits:"userSpaceOnUse"})),C(s,function(t,e){"id"!==e&&m.push(e,t)}),C(l,function(t){m.push(t)}),m=m.join(","),A[m])p=A[m].attr("id");else{s.id=p=I();var y=A[m]=d.createElement(o).attr(s).add(d.defs);y.radAttr=a,y.stops=[],l.forEach(function(t){0===t[1].indexOf("rgba")?(i=e.parse(t[1]),c=i.get("rgb"),h=i.get("a")):(c=t[1],h=1),t=d.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":h}).add(y),y.stops.push(t)})}f="url("+d.url+"#"+p+")",n.setAttribute(r,f),n.gradient=m,t.toString=function(){return f}}})},t.prototype.css=function(t){var e=this.styles,r={},n=this.element,i=!e;if(t.color&&(t.fill=t.color),e&&C(t,function(t,n){e&&e[n]!==t&&(r[n]=t,i=!0)}),i){if(e&&(t=y(e,r)),null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===n.nodeName.toLowerCase()&&t.width)var o=this.textWidth=E(t.width);this.styles=t,o&&!l&&this.renderer.forExport&&delete t.width;var s=B(t);n.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(t){return s&&delete s[t]}),d(n,s),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var r=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=r.length;t--;)r[t]=""+E(r[t])*_(e,NaN);t=r.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},r=t.renderer,n=e.ownerSVGElement,i=r.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,s(t),t.clipPath&&n){var o=t.clipPath;[].forEach.call(n.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){-1<t.getAttribute("clip-path").indexOf(o.element.id)&&t.removeAttribute("clip-path")}),t.clipPath=o.destroy()}if(t.stops){for(n=0;n<t.stops.length;n++)t.stops[n].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),r.styledMode||t.destroyShadows();i&&i.div&&0===i.div.childNodes.length;)e=i.parentGroup,t.safeRemoveChild(i.div),delete i.div,i=e;t.alignTo&&m(r.alignedObjects,t),C(t,function(e,r){t[r]&&t[r].parentGroup===t&&t[r].destroy&&t[r].destroy(),delete t[r]})},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},t.prototype.dSetter=function(t,e,r){b(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce(function(t,e,r){return e&&e.join?(r?t+" ":"")+e.join(" "):(e||"").toString()},"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(r.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0},{duration:_(t,150),complete:function(){e.hide()}})},t.prototype.fillSetter=function(t,e,r){"string"==typeof t?r.setAttribute(e,t):t&&this.complexColor(t,e,r)},t.prototype.getBBox=function(e,r){var n=this.alignValue,i=this.element,o=this.renderer,s=this.styles,A=this.textStr,l=o.cache,c=o.cacheKeys,h=i.namespaceURI===this.SVG_NS;r=_(r,this.rotation,0);var u,p=o.styledMode?i&&t.prototype.getStyle.call(i,"font-size"):s&&s.fontSize;if(g(A)){var f=A.toString();-1===f.indexOf("<")&&(f=f.replace(/[0-9]/g,"0")),f+=["",r,p,this.textWidth,n,s&&s.textOverflow,s&&s.fontWeight].join()}if(f&&!e&&(u=l[f]),!u){if(h||o.forExport){try{var m=this.fakeTS&&function(t){var e=i.querySelector(".highcharts-text-outline");e&&d(e,{display:t})};w(m)&&m("none"),u=i.getBBox?y({},i.getBBox()):{width:i.offsetWidth,height:i.offsetHeight,x:0,y:0},w(m)&&m("")}catch(t){}(!u||0>u.width)&&(u={x:0,y:0,width:0,height:0})}else u=this.htmlGetBBox();if(o.isSVG&&(o=u.width,e=u.height,h&&(u.height=e={"11px,17":14,"13px,20":16}[""+(p||"")+",".concat(Math.round(e))]||e),r)){h=Number(i.getAttribute("y")||0)-u.y,n={right:1,center:.5}[n||0]||0,s=r*a,p=(r-90)*a;var v=o*Math.cos(s);r=o*Math.sin(s),m=Math.cos(p),s=Math.sin(p),v=(m=(p=(o=u.x+n*(o-v)+h*m)+v)-e*m)-v,r=(e=(n=(h=u.y+h-n*r+h*s)+r)-e*s)-r,u.x=Math.min(o,p,m,v),u.y=Math.min(h,n,e,r),u.width=Math.max(o,p,m,v)-u.x,u.height=Math.max(h,n,e,r)-u.y}if(f&&(""===A||0<u.height)){for(;250<c.length;)delete l[c.shift()];l[f]||c.push(f),l[f]=u}}return u},t.prototype.getStyle=function(t){return h.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(){return this.attr({visibility:"hidden"})},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?f(e):A.createElementNS(this.SVG_NS,e),this.renderer=t,v(this,"afterInit")},t.prototype.on=function(t,e){var r=this.onEvents;return r[t]&&r[t](),r[t]=u(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,r){this.opacity=t=Number(Number(t).toFixed(3)),r.setAttribute(e,t)},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(x(t)?new RegExp("(^| )".concat(t,"( |$)")):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.setTextPath=function(t,e){var r=this;e=B(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);var n=this.renderer.url,i=this.text||this,o=i.textPath,s=e.attributes,a=e.enabled;return t=t||o&&o.path,o&&o.undo(),t&&a?(e=u(i,"afterModifyTree",function(e){if(t&&a){var o=t.attr("id");o||t.attr("id",o=I());var A={x:0,y:0};g(s.dx)&&(A.dx=s.dx,delete s.dx),g(s.dy)&&(A.dy=s.dy,delete s.dy),i.attr(A),r.attr({transform:""}),r.box&&(r.box=r.box.destroy()),A=e.nodes.slice(0),e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:y(s,{"text-anchor":s.textAnchor,href:""+n+"#".concat(o)}),children:A}}}),i.textPath={path:t,undo:e}):(i.attr({dx:0,dy:0}),delete i.textPath),this.added&&(i.textCache="",this.renderer.buildText(i)),this},t.prototype.shadow=function(t,e,r){var n=[],i=this.element,o=this.oldShadowOptions,s=this.parentGroup,a=s&&90===s.rotation;s={color:"#000000",offsetX:a?-1:1,offsetY:a?-1:1,opacity:.15,width:3};var A,l=!1;if(!0===t?A=s:"object"==typeof t&&(A=y(s,t)),A&&(A&&o&&C(A,function(t,e){t!==o[e]&&(l=!0)}),l&&this.destroyShadows(),this.oldShadowOptions=A),A){if(!this.shadows){s=A.opacity/A.width;var c=a?"translate(".concat(A.offsetY,", ").concat(A.offsetX,")"):"translate(".concat(A.offsetX,", ").concat(A.offsetY,")");for(a=1;a<=A.width;a++){var h=i.cloneNode(!1),u=2*A.width+1-2*a;p(h,{stroke:t.color||"#000000","stroke-opacity":s*a,"stroke-width":u,transform:c,fill:"none"}),h.setAttribute("class",(h.getAttribute("class")||"")+" highcharts-shadow"),r&&(p(h,"height",Math.max(p(h,"height")-u,0)),h.cutHeight=u),e?e.element.appendChild(h):i.parentNode&&i.parentNode.insertBefore(h,i),n.push(h)}this.shadows=n}}else this.destroyShadows();return this},t.prototype.show=function(t){return void 0===t&&(t=!0),this.attr({visibility:t?"inherit":"visible"})},t.prototype["stroke-widthSetter"]=function(t,e,r){this[e]=t,r.setAttribute(e,t)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),e=0;if(t.indexOf("px")===t.length-2)e=E(t);else if(""!==t){var r=A.createElementNS(c,"rect");p(r,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(r),e=r.getBBox().width,r.parentNode.removeChild(r)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(r){e[r]=_(t[r],e[r])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},t.prototype.titleSetter=function(t){var e=this.element,r=e.getElementsByTagName("title")[0]||A.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(r,e.firstChild):e.appendChild(r),r.textContent=String(_(t,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,r){var n=this.shadows;if(n)for(var i=n.length;i--;)r.call(n[i],"height"===t?Math.max(e-(n[i].cutHeight||0),0):"d"===t?this.d:e,t,n[i])},t.prototype.updateTransform=function(){var t=this.element,e=this.matrix,r=this.rotation;r=void 0===r?0:r;var n=this.scaleX,i=this.scaleY,o=this.translateX,s=this.translateY;o=["translate("+(void 0===o?0:o)+","+(void 0===s?0:s)+")"],g(e)&&o.push("matrix("+e.join(",")+")"),r&&o.push("rotate("+r+" "+_(this.rotationOriginX,t.getAttribute("x"),0)+" "+_(this.rotationOriginY,t.getAttribute("y")||0)+")"),(g(n)||g(i))&&o.push("scale("+_(n,1)+" "+_(i,1)+")"),o.length&&!(this.text||this).textPath&&t.setAttribute("transform",o.join(" "))},t.prototype.visibilitySetter=function(t,e,r){"inherit"===t?r.removeAttribute(e):this[e]!==t&&r.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var r=this.renderer,n=this.parentGroup,i=(n||r).element||r.box,o=this.element;r=i===r.box;var s,a=!1,A=this.added;if(g(t)?(o.setAttribute("data-z-index",t),t=+t,this[e]===t&&(A=!1)):g(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,A){for((t=this.zIndex)&&n&&(n.handleZ=!0),s=(e=i.childNodes).length-1;0<=s&&!a;s--){A=(n=e[s]).getAttribute("data-z-index");var l=!g(A);n!==o&&(0>t&&l&&!r&&!s?(i.insertBefore(o,e[s]),a=!0):(E(A)<=t||l&&(!g(t)||0<=t))&&(i.insertBefore(o,e[s+1]||null),a=!0))}a||(i.insertBefore(o,e[r?3:0]||null),a=!0)}return a},t}(),t.prototype.strokeSetter=t.prototype.fillSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t}),e(r,"Core/Renderer/RendererRegistry.js",[r["Core/Globals.js"]],function(t){var e;return function(e){var r;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=r),e.rendererTypes[t]||e.rendererTypes[r]},e.registerRendererType=function(n,i,o){e.rendererTypes[n]=i,r&&!o||(r=n,t.Renderer=i)}}(e||(e={})),e}),e(r,"Core/Renderer/SVG/SVGLabel.js",[r["Core/Renderer/SVG/SVGElement.js"],r["Core/Utilities.js"]],function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),n=e.defined,i=e.extend,o=e.isNumber,s=e.merge,a=e.pick,A=e.removeEvent;return function(e){function l(t,r,n,i,o,s,a,A,c,h){var u,p=e.call(this)||this;return p.paddingLeftSetter=p.paddingSetter,p.paddingRightSetter=p.paddingSetter,p.init(t,"g"),p.textStr=r,p.x=n,p.y=i,p.anchorX=s,p.anchorY=a,p.baseline=c,p.className=h,p.addClass("button"===h?"highcharts-no-tooltip":"highcharts-label"),h&&p.addClass("highcharts-"+h),p.text=t.text(void 0,0,0,A).attr({zIndex:1}),"string"==typeof o&&((u=/^url\((.*?)\)$/.test(o))||p.renderer.symbols[o])&&(p.symbolKey=o),p.bBox=l.emptyBBox,p.padding=3,p.baselineOffset=0,p.needsBox=t.styledMode||u,p.deferredAttr={},p.alignFactor=0,p}return r(l,e),l.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&o(this.xSetting)&&this.attr({x:this.xSetting}))},l.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},l.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},l.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},l.prototype.css=function(e){if(e){var r={};e=s(e),l.textProps.forEach(function(t){void 0!==e[t]&&(r[t]=e[t],delete e[t])}),this.text.css(r),"fontSize"in r||"fontWeight"in r?this.updateTextPadding():("width"in r||"textOverflow"in r)&&this.updateBoxSize()}return t.prototype.css.call(this,e)},l.prototype.destroy=function(){A(this.element,"mouseenter"),A(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},l.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},l.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=a(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},l.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},l.prototype.heightSetter=function(t){this.heightSetting=t},l.prototype.onAdd=function(){this.text.add(this),this.attr({text:a(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&n(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},l.prototype.paddingSetter=function(t,e){o(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},l.prototype.rSetter=function(t,e){this.boxAttr(e,t)},l.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},l.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},l.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},l.prototype["text-alignSetter"]=function(t){this.textAlign=t},l.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},l.prototype.updateBoxSize=function(){var t=this.text,e=t.element.style,r={},s=this.padding,a=this.bBox=o(this.widthSetting)&&o(this.heightSetting)&&!this.textAlign||!n(t.textStr)?l.emptyBBox:t.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*s,e=this.renderer.fontMetrics(e&&e.fontSize,t),this.baselineOffset=s+Math.min((this.text.firstLineMetrics||e).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2),this.needsBox&&!t.textPath&&(this.box||((t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)),t=this.getCrispAdjust(),r.x=t,r.y=(this.baseline?-this.baselineOffset:0)+t,r.width=Math.round(this.width),r.height=Math.round(this.height),this.box.attr(i(r,this.deferredAttr)),this.deferredAttr={})},l.prototype.updateTextPadding=function(){var t=this.text;if(!t.textPath){this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,r=a(this.paddingLeft,this.padding);n(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(r+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),r===t.x&&e===t.y||(t.attr("x",r),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=r,t.y=e}},l.prototype.widthSetter=function(t){this.widthSetting=o(t)?t:void 0},l.prototype.getPaddedWidth=function(){var t=this.padding,e=a(this.paddingLeft,t);return t=a(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},l.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},l.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),l}(t)}),e(r,"Core/Renderer/SVG/Symbols.js",[r["Core/Utilities.js"]],function(t){function e(t,e,r,n,o){var a=[];if(o){var A=o.start||0,l=s(o.r,r);r=s(o.r,n||r);var c=(o.end||0)-.001;n=o.innerR;var h=s(o.open,.001>Math.abs((o.end||0)-A-2*Math.PI)),u=Math.cos(A),p=Math.sin(A),f=Math.cos(c),d=Math.sin(c);A=s(o.longArc,.001>c-A-Math.PI?0:1),a.push(["M",t+l*u,e+r*p],["A",l,r,0,A,s(o.clockwise,1),t+l*f,e+r*d]),i(n)&&a.push(h?["M",t+n*f,e+n*d]:["L",t+n*f,e+n*d],["A",n,n,0,A,i(o.clockwise)?1-o.clockwise:0,t+n*u,e+n*p]),h||a.push(["Z"])}return a}function r(t,e,r,i,o){return o&&o.r?n(t,e,r,i,o):[["M",t,e],["L",t+r,e],["L",t+r,e+i],["L",t,e+i],["Z"]]}function n(t,e,r,n,i){return[["M",t+(i=i&&i.r||0),e],["L",t+r-i,e],["C",t+r,e,t+r,e,t+r,e+i],["L",t+r,e+n-i],["C",t+r,e+n,t+r,e+n,t+r-i,e+n],["L",t+i,e+n],["C",t,e+n,t,e+n,t,e+n-i],["L",t,e+i],["C",t,e,t,e,t+i,e]]}var i=t.defined,o=t.isNumber,s=t.pick;return{arc:e,callout:function(t,e,r,i,s){var a=Math.min(s&&s.r||0,r,i),A=a+6,l=s&&s.anchorX;s=s&&s.anchorY||0;var c=n(t,e,r,i,{r:a});return o(l)?(t+l>=r?s>e+A&&s<e+i-A?c.splice(3,1,["L",t+r,s-6],["L",t+r+6,s],["L",t+r,s+6],["L",t+r,e+i-a]):c.splice(3,1,["L",t+r,i/2],["L",l,s],["L",t+r,i/2],["L",t+r,e+i-a]):0>=t+l?s>e+A&&s<e+i-A?c.splice(7,1,["L",t,s+6],["L",t-6,s],["L",t,s-6],["L",t,e+a]):c.splice(7,1,["L",t,i/2],["L",l,s],["L",t,i/2],["L",t,e+a]):s&&s>i&&l>t+A&&l<t+r-A?c.splice(5,1,["L",l+6,e+i],["L",l,e+i+6],["L",l-6,e+i],["L",t+a,e+i]):s&&0>s&&l>t+A&&l<t+r-A&&c.splice(1,1,["L",l-6,e],["L",l,e-6],["L",l+6,e],["L",r-a,e]),c):c},circle:function(t,r,n,i){return e(t+n/2,r+i/2,n/2,i/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,r,n){return[["M",t+r/2,e],["L",t+r,e+n/2],["L",t+r/2,e+n],["L",t,e+n/2],["Z"]]},rect:r,roundedRect:n,square:r,triangle:function(t,e,r,n){return[["M",t+r/2,e],["L",t+r,e+n],["L",t,e+n],["Z"]]},"triangle-down":function(t,e,r,n){return[["M",t,e],["L",t+r,e],["L",t+r/2,e+n],["Z"]]}}}),e(r,"Core/Renderer/SVG/TextBuilder.js",[r["Core/Renderer/HTML/AST.js"],r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e,r){var n=e.doc,i=e.SVG_NS,o=e.win,s=r.attr,a=r.extend,A=r.fireEvent,l=r.isString,c=r.objectEach,h=r.pick;return function(){function e(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace),this.fontSize=e&&e.fontSize}return e.prototype.buildSVG=function(){var e=this.svgElement,r=e.element,i=e.renderer,o=h(e.textStr,"").toString(),s=-1!==o.indexOf("<"),a=r.childNodes;i=this.width&&!e.added&&i.box;var A=[o,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(A!==e.textCache){for(e.textCache=A,delete e.actualWidth,A=a.length;A--;)r.removeChild(a[A]);s||this.ellipsis||this.width||e.textPath||-1!==o.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(o))?""!==o&&(i&&i.appendChild(r),o=new t(o),this.modifyTree(o.nodes),o.addToDOM(r),this.modifyDOM(),this.ellipsis&&-1!==(r.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),i&&i.removeChild(r)):r.appendChild(n.createTextNode(this.unescapeEntities(o))),l(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,r=this.svgElement,a=s(r.element,"x");for(r.firstLineMetrics=void 0;(t=r.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)r.element.removeChild(t);[].forEach.call(r.element.querySelectorAll("tspan.highcharts-br"),function(t,n){t.nextSibling&&t.previousSibling&&(0===n&&1===t.previousSibling.nodeType&&(r.firstLineMetrics=r.renderer.fontMetrics(void 0,t.previousSibling)),s(t,{dy:e.getLineHeight(t.nextSibling),x:a}))});var A=this.width||0;if(A){var l=function(t,o){var l=t.textContent||"",c=l.replace(/([^\^])-/g,"$1- ").split(" "),h=!e.noWrap&&(1<c.length||1<r.element.childNodes.length),u=e.getLineHeight(o),p=0,f=r.actualWidth;if(e.ellipsis)l&&e.truncate(t,l,void 0,0,Math.max(0,A-parseInt(e.fontSize||12,10)),function(t,e){return t.substring(0,e)+"…"});else if(h){for(l=[],h=[];o.firstChild&&o.firstChild!==t;)h.push(o.firstChild),o.removeChild(o.firstChild);for(;c.length;)c.length&&!e.noWrap&&0<p&&(l.push(t.textContent||""),t.textContent=c.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,c,0===p&&f||0,A,function(t,e){return c.slice(0,e).join(" ").replace(/- /g,"-")}),f=r.actualWidth,p++;h.forEach(function(e){o.insertBefore(e,t)}),l.forEach(function(e){o.insertBefore(n.createTextNode(e),t),(e=n.createElementNS(i,"tspan")).textContent="​",s(e,{dy:u,x:a}),o.insertBefore(e,t)})}},c=function(t){[].slice.call(t.childNodes).forEach(function(e){e.nodeType===o.Node.TEXT_NODE?l(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(r.actualWidth=0),c(e))})};c(r.element)}},e.prototype.getLineHeight=function(t){var e;return t=t.nodeType===o.Node.TEXT_NODE?t.parentElement:t,this.renderer.styledMode||(e=t&&/(px|em)$/.test(t.style.fontSize)?t.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,t||this.svgElement.element).h},e.prototype.modifyTree=function(t){var e=this,r=function(n,i){var o=n.attributes;o=void 0===o?{}:o;var s=n.children,A=n.style;A=void 0===A?{}:A;var l=n.tagName,c=e.renderer.styledMode;"b"===l||"strong"===l?c?o.class="highcharts-strong":A.fontWeight="bold":"i"!==l&&"em"!==l||(c?o.class="highcharts-emphasized":A.fontStyle="italic"),A&&A.color&&(A.fill=A.color),"br"===l?(o.class="highcharts-br",n.textContent="​",(i=t[i+1])&&i.textContent&&(i.textContent=i.textContent.replace(/^ +/gm,""))):"a"===l&&s&&s.some(function(t){return"#text"===t.tagName})&&(n.children=[{children:s,tagName:"tspan"}]),"#text"!==l&&"a"!==l&&(n.tagName="tspan"),a(n,{attributes:o,style:A}),s&&s.filter(function(t){return"#text"!==t.tagName}).forEach(r)};t.forEach(r),A(this.svgElement,"afterModifyTree",{nodes:t})},e.prototype.truncate=function(t,e,r,n,i,o){var s,a=this.svgElement,A=a.renderer,l=a.rotation,c=[],h=r?1:0,u=(e||r||"").length,p=u,f=function(i,s){s=s||i;var l=t.parentNode;if(l&&void 0===c[s])if(l.getSubStringLength)try{c[s]=n+l.getSubStringLength(0,r?s+1:s)}catch(t){}else A.getSpanWidth&&(t.textContent=o(e||r,i),c[s]=n+A.getSpanWidth(a,t));return c[s]};a.rotation=0;var d=f(t.textContent.length);if(n+d>i){for(;h<=u;)p=Math.ceil((h+u)/2),r&&(s=o(r,p)),d=f(p,s&&s.length-1),h===u?h=u+1:d>i?u=p-1:h=p;0===u?t.textContent="":e&&u===e.length-1||(t.textContent=s||o(e||r,p))}r&&r.splice(0,p),a.actualWidth=d,a.rotation=l},e.prototype.unescapeEntities=function(t,e){return c(this.renderer.escapes,function(r,n){e&&-1!==e.indexOf(r)||(t=t.toString().replace(new RegExp(r,"g"),n))}),t},e}()}),e(r,"Core/Renderer/SVG/SVGRenderer.js",[r["Core/Renderer/HTML/AST.js"],r["Core/Color/Color.js"],r["Core/Globals.js"],r["Core/Renderer/RendererRegistry.js"],r["Core/Renderer/SVG/SVGElement.js"],r["Core/Renderer/SVG/SVGLabel.js"],r["Core/Renderer/SVG/Symbols.js"],r["Core/Renderer/SVG/TextBuilder.js"],r["Core/Utilities.js"]],function(t,e,r,n,i,o,s,a,A){var l,c=r.charts,h=r.deg2rad,u=r.doc,p=r.isFirefox,f=r.isMS,d=r.isWebKit,g=r.noop,m=r.SVG_NS,y=r.symbolSizes,v=r.win,b=A.addEvent,w=A.attr,x=A.createElement,B=A.css,C=A.defined,_=A.destroyObjectProperties,E=A.extend,S=A.isArray,I=A.isNumber,F=A.isObject,T=A.isString,k=A.merge,L=A.pick,P=A.pInt,M=A.uniqueKey;return r=function(){function r(t,e,r,n,i,o,s){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,r,n,i,o,s)}return r.prototype.init=function(t,e,r,n,i,o,s){var a,A=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),l=A.element;s||A.css(this.getStyle(n)),t.appendChild(l),w(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&w(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=A,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(u.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=i,this.styledMode=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,r,!1),p&&t.getBoundingClientRect&&((e=function(){B(t,{left:0,top:0}),a=t.getBoundingClientRect(),B(t,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=b(v,"resize",e))},r.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},r.prototype.getReferenceURL=function(){if((p||d)&&u.getElementsByTagName("base").length){if(!C(l)){var e=M();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(e,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(u.body),B(e,{position:"fixed",top:0,left:0,zIndex:9e5});var r=u.elementFromPoint(6,6);l="hitme"===(r&&r.id),u.body.removeChild(e)}if(l)return v.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},r.prototype.getStyle=function(t){return this.style=E({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},r.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},r.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},r.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),_(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},r.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},r.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},r.prototype.buildText=function(t){new a(t).buildSVG()},r.prototype.getContrast=function(t){return 1.05/(.05+(t=.2126*(t=e.parse(t).rgba.map(function(t){return.03928>=(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4)}))[0]+.7152*t[1]+.0722*t[2]))>(t+.05)/.05?"#FFFFFF":"#000000"},r.prototype.button=function(e,r,n,i,o,s,a,A,l,c){void 0===o&&(o={});var h=this.label(e,r,n,l,void 0,void 0,c,void 0,"button"),u=this.styledMode;e=o.states||{};var p=0;delete(o=k(o)).states;var d=k({color:"#333333",cursor:"pointer",fontWeight:"normal"},o.style);delete o.style;var g=t.filterUserAttributes(o);if(h.attr(k({padding:8,r:2},g)),!u){g=k({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},g);var m=(s=k(g,{fill:"#e6e6e6"},t.filterUserAttributes(s||e.hover||{}))).style;delete s.style;var y=(a=k(g,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(a||e.select||{}))).style;delete a.style;var v=(A=k(g,{style:{color:"#cccccc"}},t.filterUserAttributes(A||e.disabled||{}))).style;delete A.style}return b(h.element,f?"mouseover":"mouseenter",function(){3!==p&&h.setState(1)}),b(h.element,f?"mouseout":"mouseleave",function(){3!==p&&h.setState(p)}),h.setState=function(t){1!==t&&(h.state=p=t),h.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),u||(h.attr([g,s,a,A][t||0]),F(t=[d,m,y,v][t||0])&&h.css(t))},u||(h.attr(g).css(E({cursor:"default"},d)),c&&h.text.css({pointerEvents:"none"})),h.on("touchstart",function(t){return t.stopPropagation()}).on("click",function(t){3!==p&&i.call(h,t)})},r.prototype.crispLine=function(t,e,r){void 0===r&&(r="round");var n=t[0],i=t[1];return C(n[1])&&n[1]===i[1]&&(n[1]=i[1]=Math[r](n[1])-e%2/2),C(n[2])&&n[2]===i[2]&&(n[2]=i[2]=Math[r](n[2])+e%2/2),t},r.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return S(t)?e.d=t:F(t)&&E(e,t),this.createElement("path").attr(e)},r.prototype.circle=function(t,e,r){return t=F(t)?t:void 0===t?{}:{x:t,y:e,r},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,r){r.setAttribute("c"+e,t)},e.attr(t)},r.prototype.arc=function(t,e,r,n,i,o){return F(t)?(e=(n=t).y,r=n.r,t=n.x):n={innerR:n,start:i,end:o},(t=this.symbol("arc",t,e,r,r,n)).r=r,t},r.prototype.rect=function(t,e,r,n,i,o){i=F(t)?t.r:i;var s=this.createElement("rect");return t=F(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(r,0),height:Math.max(n,0)},this.styledMode||(void 0!==o&&(t["stroke-width"]=o,t=s.crisp(t)),t.fill="none"),i&&(t.r=i),s.rSetter=function(t,e,r){s.r=t,w(r,{rx:t,ry:t})},s.rGetter=function(){return s.r||0},s.attr(t)},r.prototype.setSize=function(t,e,r){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:L(r,!0)?void 0:0}),this.alignElements()},r.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},r.prototype.image=function(t,e,r,n,i,o){var s={preserveAspectRatio:"none"},a=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};I(e)&&(s.x=e),I(r)&&(s.y=r),I(n)&&(s.width=n),I(i)&&(s.height=i);var A=this.createElement("image").attr(s);return e=function(e){a(A.element,t),o.call(A,e)},o?(a(A.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),r=new v.Image,b(r,"load",e),r.src=t,r.complete&&e({})):a(A.element,t),A},r.prototype.symbol=function(t,e,r,n,i,o){var s,a=this,A=/^url\((.*?)\)$/,l=A.test(t),h=!l&&(this.symbols[t]?t:"circle"),p=h&&this.symbols[h];if(p){"number"==typeof e&&(s=p.call(this.symbols,Math.round(e||0),Math.round(r||0),n||0,i||0,o));var f=this.path(s);a.styledMode||f.attr("fill","none"),E(f,{symbolName:h||void 0,x:e,y:r,width:n,height:i}),o&&E(f,o)}else if(l){var d=t.match(A)[1],g=f=this.image(d);g.imgwidth=L(y[d]&&y[d].width,o&&o.width),g.imgheight=L(y[d]&&y[d].height,o&&o.height);var m=function(t){return t.attr({width:t.width,height:t.height})};["width","height"].forEach(function(t){g[t+"Setter"]=function(t,e){this[e]=t,t=this.alignByTranslate;var r=this.element,n=this.width,i=this.height,s=this.imgwidth,a=this.imgheight,A=this["img"+e];if(C(A)){var l=1;o&&"within"===o.backgroundSize&&n&&i?(l=Math.min(n/s,i/a),A=Math.round(A*l),w(r,{width:Math.round(s*l),height:Math.round(a*l)})):r&&r.setAttribute(e,A),t||this.translate(((n||0)-A*l)/2,((i||0)-A*l)/2)}}}),C(e)&&g.attr({x:e,y:r}),g.isImg=!0,C(g.imgwidth)&&C(g.imgheight)?m(g):(g.attr({width:0,height:0}),x("img",{onload:function(){var t=c[a.chartIndex];0===this.width&&(B(this,{position:"absolute",top:"-999em"}),u.body.appendChild(this)),y[d]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&m(g),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,a.imgCount||!t||t.hasLoaded||t.onload()},src:d}),this.imgCount++)}return f},r.prototype.clipRect=function(t,e,r,n){var i=M()+"-",o=this.createElement("clipPath").attr({id:i}).add(this.defs);return(t=this.rect(t,e,r,n,0).add(o)).id=i,t.clipPath=o,t.count=0,t},r.prototype.text=function(t,e,r,n){var i={};return!n||!this.allowHTML&&this.forExport?(i.x=Math.round(e||0),r&&(i.y=Math.round(r)),C(t)&&(i.text=t),t=this.createElement("text").attr(i),(!n||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,r){for(var n,i=r.getElementsByTagName("tspan"),o=r.getAttribute(e),s=0;s<i.length;s++)(n=i[s]).getAttribute(e)===o&&n.setAttribute(e,t);r.setAttribute(e,t)}),t):this.html(t,e,r)},r.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!v.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&i.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?P(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},r.prototype.rotCorr=function(t,e,r){var n=t;return e&&r&&(n=Math.max(n*Math.cos(e*h),4)),{x:-t/3*Math.sin(e*h),y:n}},r.prototype.pathToSegments=function(t){for(var e=[],r=[],n={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},i=0;i<t.length;i++)T(r[0])&&I(t[i])&&r.length===n[r[0].toUpperCase()]&&t.splice(i,0,r[0].replace("M","L").replace("m","l")),"string"==typeof t[i]&&(r.length&&e.push(r.slice(0)),r.length=0),r.push(t[i]);return e.push(r.slice(0)),e},r.prototype.label=function(t,e,r,n,i,s,a,A,l){return new o(this,t,e,r,n,i,s,a,A,l)},r.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},r}(),E(r.prototype,{Element:i,SVG_NS:m,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:s,draw:g}),n.registerRendererType("svg",r,!0),r}),e(r,"Core/Renderer/HTML/HTMLElement.js",[r["Core/Globals.js"],r["Core/Renderer/SVG/SVGElement.js"],r["Core/Utilities.js"]],function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=t.isFirefox,o=t.isMS,s=t.isWebKit,a=t.win,A=r.css,l=r.defined,c=r.extend,h=r.pick,u=r.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var r=e.prototype,n=t.prototype;n.getSpanCorrection=r.getSpanCorrection,n.htmlCss=r.htmlCss,n.htmlGetBBox=r.htmlGetBBox,n.htmlUpdateTransform=r.htmlUpdateTransform,n.setSpanRotation=r.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,r){this.xCorr=-t*r,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,r=h(e&&t.width,void 0);if(e){delete t.width,this.textWidth=r;var n=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=c(this.styles,t),A(this.element,t),n&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,r=this.translateX||0,n=this.translateY||0,i=this.x||0,o=this.y||0,s=this.textAlign||"left",a={left:0,center:.5,right:1}[s],c=this.styles;if(c=c&&c.whiteSpace,A(e,{marginLeft:r,marginTop:n}),!t.styledMode&&this.shadows&&this.shadows.forEach(function(t){A(t,{marginLeft:r+1,marginTop:n+1})}),this.inverted&&[].forEach.call(e.childNodes,function(r){t.invertChild(r,e)}),"SPAN"===e.tagName){var h=this.rotation,p=this.textWidth&&u(this.textWidth),f=[h,s,e.innerHTML,this.textWidth,this.textAlign].join(),d=void 0;if(d=!1,p!==this.oldTextWidth){if(this.textPxLength)var g=this.textPxLength;else A(e,{width:"",whiteSpace:c||"nowrap"}),g=e.offsetWidth;(p>this.oldTextWidth||g>p)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(A(e,{width:g>p||h?p+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=p,d=!0)}this.hasBoxWidthChanged=d,f!==this.cTT&&(d=t.fontMetrics(e.style.fontSize,e).b,!l(h)||h===(this.oldRotation||0)&&s===this.oldAlign||this.setSpanRotation(h,a,d),this.getSpanCorrection(!l(h)&&this.textPxLength||e.offsetWidth,d,a,h,s)),A(e,{left:i+(this.xCorr||0)+"px",top:o+(this.yCorr||0)+"px"}),this.cTT=f,this.oldRotation=h,this.oldAlign=s}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,r){var n={},l=o&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":s?"-webkit-transform":i?"MozTransform":a.opera?"-o-transform":void 0;l&&(n[l]=n.transform="rotate("+t+"deg)",n[l+(i?"Origin":"-origin")]=n.transformOrigin=100*e+"% "+r+"px",A(this.element,n))},e.composedClasses=[],e}(e)}),e(r,"Core/Renderer/HTML/HTMLRenderer.js",[r["Core/Renderer/HTML/AST.js"],r["Core/Renderer/SVG/SVGElement.js"],r["Core/Renderer/SVG/SVGRenderer.js"],r["Core/Utilities.js"]],function(t,e,r,n){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=n.attr,s=n.createElement,a=n.extend,A=n.pick;return function(r){function n(){return null!==r&&r.apply(this,arguments)||this}return i(n,r),n.compose=function(t){return-1===n.composedClasses.indexOf(t)&&(n.composedClasses.push(t),t.prototype.html=n.prototype.html),t},n.prototype.html=function(r,n,i){var l=this.createElement("span"),c=l.element,h=l.renderer,u=h.isSVG,p=function(t,r){["opacity","visibility"].forEach(function(n){t[n+"Setter"]=function(i,o,s){var a=t.div?t.div.style:r;e.prototype[n+"Setter"].call(this,i,o,s),a&&(a[o]=i)}}),t.addedSetters=!0};return l.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,A(e,"")),this.textStr=e,l.doTransform=!0)},u&&p(l,l.element.style),l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(t,e){"align"===e?l.alignValue=l.textAlign=t:l[e]=t,l.doTransform=!0},l.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},l.attr({text:r,x:Math.round(n),y:Math.round(i)}).css({position:"absolute"}),h.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",l.css=l.htmlCss,u&&(l.add=function(t){var e=h.box.parentNode,r=[];if(this.parentGroup=t){var n=t.div;if(!n){for(;t;)r.push(t),t=t.parentGroup;r.reverse().forEach(function(t){function i(e,r){t[r]=e,"translateX"===r?h.left=e+"px":h.top=e+"px",t.doTransform=!0}var A=o(t.element,"class"),c=t.styles||{},h=(n=t.div=t.div||s("div",A?{className:A}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:t.visibility},n||e)).style;a(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(n),on:function(){return r[0].div&&l.on.apply({element:r[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:i,translateYSetter:i}),t.addedSetters||p(t)})}}else n=e;return n.appendChild(c),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l}),l},n.composedClasses=[],n}(r)}),e(r,"Core/Axis/AxisDefaults.js",[],function(){var t;return function(t){t.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},t.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},t.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(t||(t={})),t}),e(r,"Core/Foundation.js",[r["Core/Utilities.js"]],function(t){var e,r=t.addEvent,n=t.isFunction,i=t.objectEach,o=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},i(e.events,function(e,i){t.eventOptions[i]!==e&&(t.eventOptions[i]&&(o(t,i,t.eventOptions[i]),delete t.eventOptions[i]),n(e)&&(t.eventOptions[i]=e,r(t,i,e)))})}}(e||(e={})),e}),e(r,"Core/Axis/Tick.js",[r["Core/FormatUtilities.js"],r["Core/Globals.js"],r["Core/Utilities.js"]],function(t,e,r){var n=e.deg2rad,i=r.clamp,o=r.correctFloat,s=r.defined,a=r.destroyObjectProperties,A=r.extend,l=r.fireEvent,c=r.isNumber,h=r.merge,u=r.objectEach,p=r.pick;return e=function(){function e(t,e,r,n,i){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=r||"",this.parameters=i||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,"init"),r||n||this.addLabel()}return e.prototype.addLabel=function(){var e=this,r=e.axis,n=r.options,i=r.chart,a=r.categories,h=r.logarithmic,u=r.names,f=e.pos,d=p(e.options&&e.options.labels,n.labels),g=r.tickPositions,m=f===g[0],y=f===g[g.length-1],v=(!d.step||1===d.step)&&1===r.tickInterval;g=g.info;var b,w=e.label;if(a=this.parameters.category||(a?p(a[f],u[f],f):f),h&&c(a)&&(a=o(h.lin2log(a))),r.dateTime)if(g)var x=i.time.resolveDTLFormat(n.dateTimeLabelFormats[!n.grid&&g.higherRanks[f]||g.unitName]),B=x.main;else c(a)&&(B=r.dateTime.getXDateFormat(a,n.dateTimeLabelFormats||{}));e.isFirst=m,e.isLast=y;var C={axis:r,chart:i,dateTimeLabelFormat:B,isFirst:m,isLast:y,pos:f,tick:e,tickPositionInfo:g,value:a};l(this,"labelFormat",C);var _=function(e){return d.formatter?d.formatter.call(e,e):d.format?(e.text=r.defaultLabelFormatter.call(e,e),t.format(d.format,e,i)):r.defaultLabelFormatter.call(e,e)};n=_.call(C,C);var E=x&&x.list;e.shortenLabel=E?function(){for(b=0;b<E.length;b++)if(A(C,{dateTimeLabelFormat:E[b]}),w.attr({text:_.call(C,C)}),w.getBBox().width<r.getSlotWidth(e)-2*d.padding)return;w.attr({text:""})}:void 0,v&&r._addedPlotLB&&e.moveLabel(n,d),s(w)||e.movedLabel?w&&w.textStr!==n&&!v&&(!w.textWidth||d.style.width||w.styles.width||w.css({width:null}),w.attr({text:n}),w.textPxLength=w.getBBox().width):(e.label=w=e.createLabel({x:0,y:0},n,d),e.rotation=0)},e.prototype.createLabel=function(t,e,r){var n=this.axis,i=n.chart;return(t=s(e)&&r.enabled?i.renderer.text(e,t.x,t.y,r.useHTML).add(n.labelGroup):null)&&(i.styledMode||t.css(h(r.style)),t.textPxLength=t.getBBox().width),t},e.prototype.destroy=function(){a(this,this.axis)},e.prototype.getPosition=function(t,e,r,n){var s=this.axis,a=s.chart,A=n&&a.oldChartHeight||a.chartHeight;return(t={x:t?o(s.translate(e+r,void 0,void 0,n)+s.transB):s.left+s.offset+(s.opposite?(n&&a.oldChartWidth||a.chartWidth)-s.right-s.left:0),y:t?A-s.bottom+s.offset-(s.opposite?s.height:0):o(A-s.translate(e+r,void 0,void 0,n)-s.transB)}).y=i(t.y,-1e5,1e5),l(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,r,i,o,a,A,c){var h=this.axis,u=h.transA,p=h.isLinked&&h.linkedParent?h.linkedParent.reversed:h.reversed,f=h.staggerLines,d=h.tickRotCorr||{x:0,y:0},g=i||h.reserveSpaceDefault?0:-h.labelOffset*("center"===h.labelAlign?.5:1),m={};return r=0===h.side?r.rotation?-8:-r.getBBox().height:2===h.side?d.y+8:Math.cos(r.rotation*n)*(d.y-r.getBBox(!1,0).height/2),s(o.y)&&(r=0===h.side&&h.horiz?o.y+r:o.y),t=t+o.x+g+d.x-(a&&i?a*u*(p?-1:1):0),e=e+r-(a&&!i?a*u*(p?1:-1):0),f&&(i=A/(c||1)%f,h.opposite&&(i=f-i-1),e+=h.labelOffset/f*i),m.x=t,m.y=Math.round(e),l(this,"afterGetLabelPosition",{pos:m,tickmarkOffset:a,index:A}),m},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,r,n,i,o){return o.crispLine([["M",t,e],["L",t+(i?0:-r),e+(i?r:0)]],n)},e.prototype.handleOverflow=function(t){var e=this.axis,r=e.options.labels,i=t.x,o=e.chart.chartWidth,s=e.chart.spacing,a=p(e.labelLeft,Math.min(e.pos,s[3]));s=p(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,o-s[1]));var A,l=this.label,c=this.rotation,h={left:0,center:.5,right:1}[e.labelAlign||l.attr("align")],u=l.getBBox().width,f=e.getSlotWidth(this),d={},g=f,m=1;c||"justify"!==r.overflow?0>c&&i-h*u<a?A=Math.round(i/Math.cos(c*n)-a):0<c&&i+h*u>s&&(A=Math.round((o-i)/Math.cos(c*n))):(o=i+(1-h)*u,i-h*u<a?g=t.x+g*(1-h)-a:o>s&&(g=s-t.x+g*h,m=-1),(g=Math.min(f,g))<f&&"center"===e.labelAlign&&(t.x+=m*(f-g-h*(f-Math.min(u,g)))),(u>g||e.autoRotation&&(l.styles||{}).width)&&(A=g)),A&&(this.shortenLabel?this.shortenLabel():(d.width=Math.floor(A)+"px",(r.style||{}).textOverflow||(d.textOverflow="ellipsis"),l.css(d)))},e.prototype.moveLabel=function(t,e){var r=this,n=r.label,i=r.axis,o=i.reversed,s=!1;if(n&&n.textStr===t?(r.movedLabel=n,s=!0,delete r.label):u(i.ticks,function(e){s||e.isNew||e===r||!e.label||e.label.textStr!==t||(r.movedLabel=e.label,s=!0,e.labelPos=r.movedLabel.xy,delete e.label)}),!s&&(r.labelPos||n)){var a=r.labelPos||n.xy;n=i.horiz?o?0:i.width+i.left:a.x,i=i.horiz?a.y:o?i.width+i.left:0,r.movedLabel=r.createLabel({x:n,y:i},t,e),r.movedLabel&&r.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,r){var n=this.axis,i=n.horiz,o=this.pos,s=p(this.tickmarkOffset,n.tickmarkOffset);s=(o=this.getPosition(i,o,s,e)).x;var a=o.y;n=i&&s===n.pos+n.len||!i&&a===n.pos?-1:1,i=p(r,this.label&&this.label.newOpacity,1),r=p(r,1),this.isActive=!0,this.renderGridLine(e,r,n),this.renderMark(o,r,n),this.renderLabel(o,e,i,t),this.isNew=!1,l(this,"afterRender")},e.prototype.renderGridLine=function(t,e,r){var n=this.axis,i=n.options,o={},s=this.pos,a=this.type,A=p(this.tickmarkOffset,n.tickmarkOffset),l=n.chart.renderer,c=this.gridLine,h=i.gridLineWidth,u=i.gridLineColor,f=i.gridLineDashStyle;"minor"===this.type&&(h=i.minorGridLineWidth,u=i.minorGridLineColor,f=i.minorGridLineDashStyle),c||(n.chart.styledMode||(o.stroke=u,o["stroke-width"]=h||0,o.dashstyle=f),a||(o.zIndex=1),t&&(e=0),this.gridLine=c=l.path().attr(o).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(n.gridGroup)),c&&(r=n.getPlotLinePath({value:s+A,lineWidth:c.strokeWidth()*r,force:"pass",old:t,acrossPanes:!1}))&&c[t||this.isNew?"attr":"animate"]({d:r,opacity:e})},e.prototype.renderMark=function(t,e,r){var n=this.axis,i=n.options,o=n.chart.renderer,s=this.type,a=n.tickSize(s?s+"Tick":"tick"),A=t.x;t=t.y;var l=p(i["minor"!==s?"tickWidth":"minorTickWidth"],!s&&n.isXAxis?1:0);i=i["minor"!==s?"tickColor":"minorTickColor"];var c=this.mark,h=!c;a&&(n.opposite&&(a[0]=-a[0]),c||(this.mark=c=o.path().addClass("highcharts-"+(s?s+"-":"")+"tick").add(n.axisGroup),n.chart.styledMode||c.attr({stroke:i,"stroke-width":l})),c[h?"attr":"animate"]({d:this.getMarkPath(A,t,a[0],c.strokeWidth()*r,n.horiz,o),opacity:e}))},e.prototype.renderLabel=function(t,e,r,n){var i=this.axis,o=i.horiz,s=i.options,a=this.label,A=s.labels,l=A.step;i=p(this.tickmarkOffset,i.tickmarkOffset);var h=t.x;t=t.y;var u=!0;a&&c(h)&&(a.xy=t=this.getLabelPosition(h,t,a,o,A,i,n,l),this.isFirst&&!this.isLast&&!s.showFirstLabel||this.isLast&&!this.isFirst&&!s.showLastLabel?u=!1:!o||A.step||A.rotation||e||0===r||this.handleOverflow(t),l&&n%l&&(u=!1),u&&c(t.y)?(t.opacity=r,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,r=e.reversed;if(t&&!this.isNew){var n=e.horiz?r?e.left:e.width+e.left:t.xy.x;r=e.horiz?t.xy.y:r?e.width+e.top:e.top,t.animate({x:n,y:r,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}(),e}),e(r,"Core/Axis/Axis.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Axis/AxisDefaults.js"],r["Core/Color/Color.js"],r["Core/Defaults.js"],r["Core/Foundation.js"],r["Core/Globals.js"],r["Core/Axis/Tick.js"],r["Core/Utilities.js"]],function(t,e,r,n,i,o,s,a){var A=t.animObject,l=n.defaultOptions,c=i.registerEventOptions,h=o.deg2rad,u=a.arrayMax,p=a.arrayMin,f=a.clamp,d=a.correctFloat,g=a.defined,m=a.destroyObjectProperties,y=a.erase,v=a.error,b=a.extend,w=a.fireEvent,x=a.isArray,B=a.isNumber,C=a.isString,_=a.merge,E=a.normalizeTickInterval,S=a.objectEach,I=a.pick,F=a.relativeLength,T=a.removeEvent,k=a.splat,L=a.syncTimeout,P=function(t,e){return E(e,void 0,void 0,I(t.options.allowDecimals,.5>e||void 0!==t.tickAmount),!!t.tickAmount)};return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var r=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!r:r,this.isXAxis=r,this.coll=this.coll||(r?"xAxis":"yAxis"),w(this,"init",{userOptions:e}),this.opposite=I(e.opposite,this.opposite),this.side=I(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var n=this.options,i=n.labels,o=n.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=I(n.reversed,this.reversed),this.visible=n.visible,this.zoomEnabled=n.zoomEnabled,this.hasNames="category"===o||!0===n.categories,this.categories=n.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=g(n.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=n.minRange||n.maxZoom,this.range=n.range,this.offset=n.offset||0,this.min=this.max=null,e=I(n.crosshair,k(t.options.tooltip.crosshairs)[r?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(r?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&r&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=B(i.rotation)?i.rotation:void 0,c(this,n),w(this,"afterInit")},t.prototype.setOptions=function(t){this.options=_(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],_(l[this.coll],t)),w(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var r=B(this.value)?this.value:NaN,n=e.chart.time,i=this.dateTimeLabelFormat,o=l.lang,s=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;var a=e.logarithmic?Math.abs(r):e.tickInterval,A=s&&s.length;if(e.categories)var c="".concat(this.value);else if(i)c=n.dateFormat(i,r);else if(A&&1e3<=a)for(;A--&&void 0===c;)a>=(e=Math.pow(o,A+1))&&0==10*r%e&&null!==s[A]&&0!==r&&(c=t(r/e,-1)+s[A]);return void 0===c&&(c=1e4<=Math.abs(r)?t(r,-1):t(r,-1,void 0,"")),c},t.prototype.getSeriesExtremes=function(){var t,e=this,r=e.chart;w(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.series.forEach(function(n){if(n.visible||!r.options.chart.ignoreHiddenSeries){var i=n.options,o=i.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=o&&(o=null),e.isXAxis){if((i=n.xData).length){i=e.logarithmic?i.filter(e.validatePositiveValue):i;var s=(t=n.getXExtremes(i)).min,a=t.max;B(s)||s instanceof Date||(i=i.filter(B),s=(t=n.getXExtremes(i)).min,a=t.max),i.length&&(e.dataMin=Math.min(I(e.dataMin,s),s),e.dataMax=Math.max(I(e.dataMax,a),a))}}else n=n.applyExtremes(),B(n.dataMin)&&(s=n.dataMin,e.dataMin=Math.min(I(e.dataMin,s),s)),B(n.dataMax)&&(a=n.dataMax,e.dataMax=Math.max(I(e.dataMax,a),a)),g(o)&&(e.threshold=o),(!i.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),w(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,r,n,i,o){var s=this.linkedParent||this,a=n&&s.old?s.old.min:s.min;if(!B(a))return NaN;var A=s.minPixelPadding;i=(s.isOrdinal||s.brokenAxis&&s.brokenAxis.hasBreaks||s.logarithmic&&i)&&s.lin2val;var l=1,c=0;return(n=n&&s.old?s.old.transA:s.transA)||(n=s.transA),r&&(l*=-1,c=s.len),s.reversed&&(c-=(l*=-1)*(s.sector||s.len)),e?(o=(t*l+c-A)/n+a,i&&(o=s.lin2val(o))):(i&&(t=s.val2lin(t)),t=l*(t-a)*n,o=(s.isRadial?t:d(t))+c+l*A+(B(o)?n*o:0)),o},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,void 0,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,r){return"pass"!==v&&(t<e||t>r)&&(v?t=f(t,e,r):s=!0),t}var r,n,i,o,s,a=this,A=a.chart,l=a.left,c=a.top,h=t.old,u=t.value,p=t.lineWidth,d=h&&A.oldChartHeight||A.chartHeight,g=h&&A.oldChartWidth||A.chartWidth,m=a.transB,y=t.translatedValue,v=t.force;return t={value:u,lineWidth:p,old:h,force:v,acrossPanes:t.acrossPanes,translatedValue:y},w(this,"getPlotLinePath",t,function(t){y=I(y,a.translate(u,void 0,void 0,h)),y=f(y,-1e5,1e5),r=i=Math.round(y+m),n=o=Math.round(d-y-m),B(y)?a.horiz?(n=c,o=d-a.bottom,r=i=e(r,l,l+a.width)):(r=l,i=g-a.right,n=o=e(n,c,c+a.height)):(s=!0,v=!1),t.path=s&&!v?null:A.renderer.crispLine([["M",r,n],["L",i,o]],p||1)}),t.path},t.prototype.getLinearTickPositions=function(t,e,r){var n=d(Math.floor(e/t)*t);r=d(Math.ceil(r/t)*t);var i,o=[];if(d(n+t)===n&&(i=20),this.single)return[e];for(e=n;e<=r&&(o.push(e),(e=d(e+t,i))!==s);)var s=e;return o},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?I(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,r=this.minorTickInterval,n=this.pointRangePadding||0,i=this.min-n,o=(n=this.max+n)-i,s=[];if(o&&o/r<this.len/3){var a=this.logarithmic;if(a)this.paddedTicks.forEach(function(t,e,n){e&&s.push.apply(s,a.getLogTickPositions(r,n[e-1],n[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())s=s.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(r),i,n,t.startOfWeek));else for(t=i+(e[0]-i)%r;t<=n&&t!==s[0];t+=r)s.push(t)}return 0!==s.length&&this.trimTicks(s),s},t.prototype.adjustForMinRange=function(){var t,e,r,n,i=this.options,o=this.logarithmic,s=this.min,a=this.max,A=0;if(this.isXAxis&&void 0===this.minRange&&!o&&(g(i.min)||g(i.max)||g(i.floor)||g(i.ceiling)?this.minRange=null:(this.series.forEach(function(i){if(r=i.xData,n=i.xIncrement?1:r.length-1,1<r.length)for(t=n;0<t;t--)e=r[t]-r[t-1],(!A||e<A)&&(A=e)}),this.minRange=Math.min(5*A,this.dataMax-this.dataMin))),a-s<this.minRange){var l=this.dataMax-this.dataMin>=this.minRange,c=this.minRange,h=(c-a+s)/2;h=[s-h,I(i.min,s-h)],l&&(h[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),a=[(s=u(h))+c,I(i.max,s+c)],l&&(a[2]=o?o.log2lin(this.dataMax):this.dataMax),(a=p(a))-s<c&&(h[0]=a-c,h[1]=I(i.min,a-c),s=u(h))}this.min=s,this.max=a},t.prototype.getClosest=function(){var t;return this.categories?t=1:this.series.forEach(function(e){var r=e.closestPointRange,n=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&g(r)&&n&&(t=g(t)?Math.min(t,r):r)}),t},t.prototype.nameToX=function(t){var e=x(this.options.categories),r=e?this.categories:this.names,n=t.options.x;if(t.series.requireSorting=!1,g(n)||(n=this.options.uniqueNames&&r?e?r.indexOf(t.name):I(r.keys[t.name],-1):t.series.autoIncrement()),-1===n){if(!e&&r)var i=r.length}else i=n;return void 0!==i?(this.names[i]=t.name,this.names.keys[t.name]=i):t.x&&(i=t.x),i},t.prototype.updateNames=function(){var t=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach(function(r,n){if(r&&r.options&&void 0!==r.name){var i=t.nameToX(r);void 0!==i&&i!==r.x&&(r.x=i,e.xData[n]=i)}})}))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,r=t.linkedParent,n=!!t.categories,i=t.isXAxis,o=t.axisPointRange||0,s=0,a=0,A=t.transA;if(i||n||o){var l=t.getClosest();r?(s=r.minPointOffset,a=r.pointRangePadding):t.series.forEach(function(e){var r=n?1:i?I(e.options.pointRange,l,0):t.axisPointRange||0,A=e.options.pointPlacement;o=Math.max(o,r),t.single&&!n||(e=e.is("xrange")?!i:i,s=Math.max(s,e&&C(A)?0:r/2),a=Math.max(a,e&&"on"===A?0:r))}),r=t.ordinal&&t.ordinal.slope&&l?t.ordinal.slope/l:1,t.minPointOffset=s*=r,t.pointRangePadding=a*=r,t.pointRange=Math.min(o,t.single&&n?1:e),i&&(t.closestPointRange=l)}t.translationSlope=t.transA=A=t.staticScale||t.len/(e+a||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=A*s,w(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this.chart,r=this.logarithmic,n=this.options,i=this.isXAxis,o=this.isLinked,s=n.tickPixelInterval,a=this.categories,A=this.softThreshold,l=n.maxPadding,c=n.minPadding,h=B(n.tickInterval)&&0<=n.tickInterval?n.tickInterval:void 0,u=B(this.threshold)?this.threshold:null;this.dateTime||a||o||this.getTickAmount();var p=I(this.userMin,n.min),f=I(this.userMax,n.max);if(o){this.linkedParent=e[this.coll][n.linkedTo];var m=this.linkedParent.getExtremes();this.min=I(m.min,m.dataMin),this.max=I(m.max,m.dataMax),n.type!==this.linkedParent.options.type&&v(11,1,e)}else{if(A&&g(u))if(this.dataMin>=u)m=u,c=0;else if(this.dataMax<=u){var y=u;l=0}this.min=I(p,m,this.dataMin),this.max=I(f,y,this.dataMax)}if(r&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,I(this.dataMin,this.min))&&v(10,1,e),this.min=d(r.log2lin(this.min),16),this.max=d(r.log2lin(this.max),16)),this.range&&g(this.max)&&(this.userMin=this.min=p=Math.max(this.dataMin,this.minFromRange()),this.userMax=f=this.max,this.range=null),w(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(a||this.axisPointRange||this.stacking&&this.stacking.usePercentage||o)&&g(this.min)&&g(this.max)&&(e=this.max-this.min)&&(!g(p)&&c&&(this.min-=e*c),!g(f)&&l&&(this.max+=e*l)),B(this.userMin)||(B(n.softMin)&&n.softMin<this.min&&(this.min=p=n.softMin),B(n.floor)&&(this.min=Math.max(this.min,n.floor))),B(this.userMax)||(B(n.softMax)&&n.softMax>this.max&&(this.max=f=n.softMax),B(n.ceiling)&&(this.max=Math.min(this.max,n.ceiling))),A&&g(this.dataMin)&&(u=u||0,!g(p)&&this.min<u&&this.dataMin>=u?this.min=this.options.minRange?Math.min(u,this.max-this.minRange):u:!g(f)&&this.max>u&&this.dataMax<=u&&(this.max=this.options.minRange?Math.max(u,this.min+this.minRange):u)),B(this.min)&&B(this.max)&&!this.chart.polar&&this.min>this.max&&(g(this.options.min)?this.max=this.min:g(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:o&&this.linkedParent&&!h&&s===this.linkedParent.options.tickPixelInterval?h=this.linkedParent.tickInterval:I(h,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,a?1:(this.max-this.min)*s/Math.max(this.len,s)),i&&!t){var b=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(b)}),w(this,"postProcessData",{hasExtremesChanged:b})}this.setAxisTranslation(),w(this,"initialAxisTranslation"),this.pointRange&&!h&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=I(n.minTickInterval,this.dateTime&&!this.series.some(function(t){return t.noSharedTooltip})?this.closestPointRange:0),!h&&this.tickInterval<t&&(this.tickInterval=t),this.dateTime||this.logarithmic||h||(this.tickInterval=P(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t,e=this.options,r=e.tickPositions,n=e.tickPositioner,i=this.getMinorTickInterval(),o=this.hasVerticalPanning(),s="colorAxis"===this.coll,a=(s||!o)&&e.startOnTick;if(o=(s||!o)&&e.endOnTick,s=[],this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/5:i,this.single=this.min===this.max&&g(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),r)s=r.slice();else if(B(this.min)&&B(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)s=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)s=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(i=e=this.tickInterval;i<=2*e&&(s=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&s.length>this.tickAmount);)this.tickInterval=P(this,i*=1.1);else s=[this.min,this.max],v(19,!1,this.chart);s.length>this.len&&(s=[s[0],s[s.length-1]])[0]===s[1]&&(s.length=1),n&&(this.tickPositions=s,(t=n.apply(this,[this.min,this.max]))&&(s=t))}this.tickPositions=s,this.paddedTicks=s.slice(0),this.trimTicks(s,a,o),!this.isLinked&&B(this.min)&&B(this.max)&&(this.single&&2>s.length&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),r||t||this.adjustTickAmount()),w(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,r){var n=t[0],i=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(w(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==n)this.min=n;else for(;this.min-o>t[0];)t.shift();if(r)this.max=i;else for(;this.max+o<t[t.length-1];)t.pop();0===t.length&&g(n)&&!this.options.tickPositions&&t.push((i+n)/2)}},t.prototype.alignToOthers=function(){var t,e=this,r=[this],n=e.options,i="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,o=[];if(e.thresholdAlignment=void 0,(!1!==this.chart.options.chart.alignTicks&&n.alignTicks||i)&&!1!==n.startOnTick&&!1!==n.endOnTick&&!e.logarithmic){var s=function(t){var e=t.options;return[t.horiz?e.left:e.top,e.width,e.height,e.pane].join()},a=s(this);this.chart[this.coll].forEach(function(n){var i=n.series;i.length&&i.some(function(t){return t.visible})&&n!==e&&s(n)===a&&(t=!0,r.push(n))})}if(t&&i){r.forEach(function(t){t=t.getThresholdAlignment(e),B(t)&&o.push(t)});var A=1<o.length?o.reduce(function(t,e){return t+e},0)/o.length:void 0;r.forEach(function(t){t.thresholdAlignment=A})}return t},t.prototype.getThresholdAlignment=function(t){if((!B(this.dataMin)||this!==t&&this.series.some(function(t){return t.isDirty||t.isDirtyData}))&&this.getSeriesExtremes(),B(this.threshold))return t=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(t=1-t),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,r=t.tickAmount;!g(t.tickInterval)&&!r&&this.len<e&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(r=2),!r&&this.alignToOthers()&&(r=Math.ceil(this.len/e)+1),4>r&&(this.finalTickAmt=r,r=5),this.tickAmount=r},t.prototype.adjustTickAmount=function(){var t=this,e=t.finalTickAmt,r=t.max,n=t.min,i=t.options,o=t.tickPositions,s=t.tickAmount,a=t.thresholdAlignment,A=o&&o.length,l=I(t.threshold,t.softThreshold?0:null),c=t.tickInterval;if(B(a)){var h=.5>a?Math.ceil(a*(s-1)):Math.floor(a*(s-1));i.reversed&&(h=s-1-h)}if(t.hasData()&&B(n)&&B(r)){if(a=function(){t.transA*=(A-1)/(s-1),t.min=i.startOnTick?o[0]:Math.min(n,o[0]),t.max=i.endOnTick?o[o.length-1]:Math.max(r,o[o.length-1])},B(h)&&B(t.threshold)){for(;o[h]!==l||o.length!==s||o[0]>n||o[o.length-1]<r;){for(o.length=0,o.push(t.threshold);o.length<s;)void 0===o[h]||o[h]>t.threshold?o.unshift(d(o[0]-c)):o.push(d(o[o.length-1]+c));if(c>8*t.tickInterval)break;c*=2}a()}else if(A<s){for(;o.length<s;)o.length%2||n===l?o.push(d(o[o.length-1]+c)):o.unshift(d(o[0]-c));a()}if(g(e)){for(c=l=o.length;c--;)(3===e&&1==c%2||2>=e&&0<c&&c<l-1)&&o.splice(c,1);t.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t=!1,e=!1;this.series.forEach(function(r){t=t||r.isDirtyData||r.isDirty,e=e||r.xAxis&&r.xAxis.isDirty||!1}),this.setAxisSize();var r=this.len!==(this.old&&this.old.len);r||t||e||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=r||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),t&&this.panningState&&(this.panningState.isDirty=!0),w(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,r,n,i){var o=this,s=o.chart;r=I(r,!0),o.series.forEach(function(t){delete t.kdTree}),i=b(i,{min:t,max:e}),w(o,"setExtremes",i,function(){o.userMin=t,o.userMax=e,o.eventArgs=i,r&&s.redraw(n)})},t.prototype.zoom=function(t,e){var r=this,n=this.dataMin,i=this.dataMax,o=this.options,s=Math.min(n,I(o.min,n)),a=Math.max(i,I(o.max,i));return w(this,"zoom",t={newMin:t,newMax:e},function(t){var e=t.newMin,o=t.newMax;e===r.min&&o===r.max||(r.allowZoomOutside||(g(n)&&(e<s&&(e=s),e>a&&(e=a)),g(i)&&(o<s&&(o=s),o>a&&(o=a))),r.displayBtn=void 0!==e||void 0!==o,r.setExtremes(e,o,!1,void 0,{trigger:"zoom"})),t.zoomed=!0}),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,r=e.offsets||[0,0,0,0],n=this.horiz,i=this.width=Math.round(F(I(e.width,t.plotWidth-r[3]+r[1]),t.plotWidth)),o=this.height=Math.round(F(I(e.height,t.plotHeight-r[0]+r[2]),t.plotHeight)),s=this.top=Math.round(F(I(e.top,t.plotTop+r[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(F(I(e.left,t.plotLeft+r[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-o-s,this.right=t.chartWidth-i-e,this.len=Math.max(n?i:o,0),this.pos=n?e:s},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?d(t.lin2log(this.min)):this.min,max:t?d(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,r=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=r:1/0===t?t=e:r>t?t=r:e<t&&(t=e),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(I(t,0)-90*this.side+720)%360;return w(this,"autoLabelAlign",t={align:"center"},function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")}),t.align},t.prototype.tickSize=function(t){var e=this.options,r=I(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),n=e["tick"===t?"tickLength":"minorTickLength"];if(r&&n){"inside"===e[t+"Position"]&&(n=-n);var i=[n,r]}return w(this,"afterTickSize",t={tickSize:i}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t=this.options.labels,e=this.horiz,r=this.tickInterval,n=this.len/(((this.categories?1:0)+this.max-this.min)/r),i=t.rotation,o=this.labelMetrics(),s=Math.max(this.max-this.min,0),a=function(t){var e=t/(n||1);return(e=1<e?Math.ceil(e):1)*r>s&&1/0!==t&&1/0!==n&&s&&(e=Math.ceil(s/r)),d(e*r)},A=r,l=Number.MAX_VALUE;if(e){if(!t.staggerLines)if(B(i))var c=[i];else n<t.autoRotationLimit&&(c=t.autoRotation);if(c)for(var u=e=void 0,p=0,f=c;p<f.length;p++){var g=f[p];if((g===i||g&&-90<=g&&90>=g)&&(u=(e=a(Math.abs(o.h/Math.sin(h*g))))+Math.abs(g/360))<l){l=u;var m=g;A=e}}}else A=a(o.h);return this.autoRotation=c,this.labelRotation=I(m,B(i)?i:0),t.step?r:A},t.prototype.getSlotWidth=function(t){var e=this.chart,r=this.horiz,n=this.options.labels,i=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=e.margin[3];if(t&&B(t.slotWidth))return t.slotWidth;if(r&&2>n.step)return n.rotation?0:(this.staggerLines||1)*this.len/i;if(!r){if(void 0!==(t=n.style.width))return parseInt(String(t),10);if(o)return o-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,r=this.tickPositions,n=this.ticks,i=this.options.labels,o=i.style,s=this.horiz,a=this.getSlotWidth(),A=Math.max(1,Math.round(a-2*i.padding)),l={},c=this.labelMetrics(),h=o.textOverflow,u=0;if(C(i.rotation)||(l.rotation=i.rotation||0),r.forEach(function(t){(t=n[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>u&&(u=t.label.textPxLength)}),this.maxLabelLength=u,this.autoRotation)u>A&&u>c.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(a){var p=A;if(!h){var f="clip";for(A=r.length;!s&&A--;){var d=r[A];(d=n[d].label)&&(d.styles&&"ellipsis"===d.styles.textOverflow?d.css({textOverflow:"clip"}):d.textPxLength>a&&d.css({width:a+"px"}),d.getBBox().height>this.len/r.length-(c.h-c.f)&&(d.specificTextOverflow="ellipsis"))}}}l.rotation&&(p=u>.5*t.chartHeight?.33*t.chartHeight:u,h||(f="ellipsis")),(this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),r.forEach(function(t){var e=(t=n[t])&&t.label,r=o.width,i={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():p&&!r&&"nowrap"!==o.whiteSpace&&(p<e.textPxLength||"SPAN"===e.element.tagName)?(i.width=p+"px",h||(i.textOverflow=e.specificTextOverflow||f),e.css(i)):e.styles&&e.styles.width&&!i.width&&!r&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=l.rotation)},this),this.tickRotCorr=e.rotCorr(c.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&g(this.min)&&g(this.max)},t.prototype.addTitle=function(t){var e,r=this.chart.renderer,n=this.horiz,i=this.opposite,o=this.options.title,s=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(n?{low:"left",middle:"center",high:"right"}:{low:i?"right":"left",middle:"center",high:i?"left":"right"})[o.align]),this.axisTitle=r.text(o.text||"",0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation,align:e}).addClass("highcharts-axis-title"),s||this.axisTitle.css(_(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),s||o.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new s(this,t)},t.prototype.getOffset=function(){var t=this,e=this,r=e.chart,n=e.horiz,i=e.options,o=e.side,s=e.ticks,a=e.tickPositions,A=e.coll,l=e.axisParent,c=r.renderer,h=r.inverted&&!e.isZAxis?[1,0,3,2][o]:o,u=e.hasData(),p=i.title,f=i.labels,d=r.axisOffset;r=r.clipOffset;var m,y=[-1,1,1,-1][o],v=i.className,b=0,x=0,B=0;if(e.showAxis=m=u||i.showEmpty,e.staggerLines=e.horiz&&f.staggerLines||void 0,!e.axisGroup){var C=function(e,r,n){return c.g(e).attr({zIndex:n}).addClass("highcharts-".concat(A.toLowerCase()).concat(r," ")+(t.isRadial?"highcharts-radial-axis".concat(r," "):"")+(v||"")).add(l)};e.gridGroup=C("grid","-grid",i.gridZIndex),e.axisGroup=C("axis","",i.zIndex),e.labelGroup=C("axis-labels","-labels",f.zIndex)}if(u||e.isLinked?(a.forEach(function(t){e.generateTick(t)}),e.renderUnsquish(),e.reserveSpaceDefault=0===o||2===o||{1:"left",3:"right"}[o]===e.labelAlign,I(f.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&a.forEach(function(t){B=Math.max(s[t].getLabelSize(),B)}),e.staggerLines&&(B*=e.staggerLines),e.labelOffset=B*(e.opposite?-1:1)):S(s,function(t,e){t.destroy(),delete s[e]}),p&&p.text&&!1!==p.enabled&&(e.addTitle(m),m&&!1!==p.reserveSpace)){e.titleOffset=b=e.axisTitle.getBBox()[n?"height":"width"];var _=p.offset;x=g(_)?0:I(p.margin,n?5:10)}e.renderLine(),e.offset=y*I(i.offset,d[o]?d[o]+(i.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},p=0===o?-e.labelMetrics().h:2===o?e.tickRotCorr.y:0,u=Math.abs(B)+x,B&&(u=u-p+y*(n?I(f.y,e.tickRotCorr.y+8*y):f.x)),e.axisTitleMargin=I(_,u),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(s,a)),"colorAxis"!==A&&(n=this.tickSize("tick"),d[o]=Math.max(d[o],(e.axisTitleMargin||0)+b+y*e.offset,u,a&&a.length&&n?n[0]+y*e.offset:0),i=!e.axisLine||i.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),r[h]=Math.max(r[h],i)),w(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,r=this.opposite,n=this.offset,i=this.horiz,o=this.left+(r?this.width:0)+n;return n=e.chartHeight-this.bottom-(r?this.height:0)+n,r&&(t*=-1),e.renderer.crispLine([["M",i?this.left:o,i?n:this.top],["L",i?e.chartWidth-this.right:o,i?n:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},t.prototype.getTitlePosition=function(){var t=this.horiz,e=this.left,r=this.top,n=this.len,i=this.options.title,o=t?e:r,s=this.opposite,a=this.offset,A=i.x,l=i.y,c=this.axisTitle,h=this.chart.renderer.fontMetrics(i.style.fontSize,c);return c=c?Math.max(c.getBBox(!1,0).height-h.h-1,0):0,n={low:o+(t?0:n),middle:o+n/2,high:o+(t?n:0)}[i.align],e=(t?r+this.height:e)+(t?1:-1)*(s?-1:1)*(this.axisTitleMargin||0)+[-c,c,h.f,-c][this.side],t={x:t?n+A:e+(s?this.width:0)+a+A,y:t?e+l-(s?this.height:0)+a:n+l},w(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t,e){var r=this.minorTicks;r[t]||(r[t]=new s(this,t,"minor")),e&&r[t].isNew&&r[t].render(null,!0),r[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,r){var n=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(n[t]||(n[t]=new s(this,t)),r&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},t.prototype.render=function(){var t,e,r=this,n=r.chart,i=r.logarithmic,a=r.options,l=r.isLinked,c=r.tickPositions,h=r.axisTitle,u=r.ticks,p=r.minorTicks,f=r.alternateBands,d=a.stackLabels,g=a.alternateGridColor,m=r.tickmarkOffset,y=r.axisLine,v=r.showAxis,b=A(n.renderer.globalAnimation);if(r.labelEdge.length=0,r.overlap=!1,[u,p,f].forEach(function(t){S(t,function(t){t.isActive=!1})}),r.hasData()||l){var x=r.chart.hasRendered&&r.old&&B(r.old.min);r.minorTickInterval&&!r.categories&&r.getMinorTickPositions().forEach(function(t){r.renderMinorTick(t,x)}),c.length&&(c.forEach(function(t,e){r.renderTick(t,e,x)}),m&&(0===r.min||r.single)&&(u[-1]||(u[-1]=new s(r,-1,null,!0)),u[-1].render(-1))),g&&c.forEach(function(s,a){e=void 0!==c[a+1]?c[a+1]+m:r.max-m,0==a%2&&s<r.max&&e<=r.max+(n.polar?-m:m)&&(f[s]||(f[s]=new o.PlotLineOrBand(r)),t=s+m,f[s].options={from:i?i.lin2log(t):t,to:i?i.lin2log(e):e,color:g,className:"highcharts-alternate-grid"},f[s].render(),f[s].isActive=!0)}),r._addedPlotLB||(r._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(t){r.addPlotBandOrLine(t)}))}[u,p,f].forEach(function(t){var e=[],r=b.duration;S(t,function(t,r){t.isActive||(t.render(r,!1,0),t.isActive=!1,e.push(r))}),L(function(){for(var r=e.length;r--;)t[e[r]]&&!t[e[r]].isActive&&(t[e[r]].destroy(),delete t[e[r]])},t!==f&&n.hasRendered&&r?r:0)}),y&&(y[y.isPlaced?"animate":"attr"]({d:this.getLinePath(y.strokeWidth())}),y.isPlaced=!0,y[v?"show":"hide"](v)),h&&v&&(a=r.getTitlePosition(),h[h.isNew?"attr":"animate"](a),h.isNew=!1),d&&d.enabled&&r.stacking&&r.stacking.renderStackTotals(),r.old={len:r.len,max:r.max,min:r.min,transA:r.transA,userMax:r.userMax,userMin:r.userMin},r.isDirty=!1,w(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e=this,r=e.plotLinesAndBands,n=this.eventOptions;if(w(this,"destroy",{keepEvents:t}),t||T(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){m(t)}),r)for(t=r.length;t--;)r[t].destroy();for(var i in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[i]=e.plotLinesAndBandsGroups[i].destroy();S(e,function(t,r){-1===e.getKeepProps().indexOf(r)&&delete e[r]}),this.eventOptions=n},t.prototype.drawCrosshair=function(t,e){var n,i=this.crosshair,o=I(i&&i.snap,!0),s=this.chart,a=this.cross;if(w(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),i&&!1!==(g(e)||!o)){if(o?g(e)&&(n=I("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):n=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),g(n)){var A={value:e&&(this.isXAxis?e.x:I(e.stackY,e.y)),translatedValue:n};s.polar&&b(A,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),A=this.getPlotLinePath(A)||null}if(!g(A))return void this.hideCrosshair();o=this.categories&&!this.isRadial,a||(this.cross=a=s.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(o?"category ":"thin ")+(i.className||"")).attr({zIndex:I(i.zIndex,2)}).add(),s.styledMode||(a.attr({stroke:i.color||(o?r.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":I(i.width,1)}).css({"pointer-events":"none"}),i.dashStyle&&a.attr({dashstyle:i.dashStyle}))),a.show().attr({d:A}),o&&!i.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();w(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),w(this,"afterHideCrosshair")},t.prototype.hasVerticalPanning=function(){var t=this.chart.options.chart.panning;return!!(t&&t.enabled&&/y/.test(t.type))},t.prototype.validatePositiveValue=function(t){return B(t)&&0<t},t.prototype.update=function(t,e){var r=this.chart;t=_(this.userOptions,t),this.destroy(!0),this.init(r,t),r.isDirtyBox=!0,I(e,!0)&&r.redraw()},t.prototype.remove=function(t){for(var e=this.chart,r=this.coll,n=this.series,i=n.length;i--;)n[i]&&n[i].remove(!1);y(e.axes,this),y(e[r],this),e[r].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,I(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.defaultOptions=e.defaultXAxisOptions,t.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}(),t}),e(r,"Core/Axis/DateTimeAxis.js",[r["Core/Utilities.js"]],function(t){var e,r=t.addEvent,n=t.getMagnitude,i=t.normalizeTickInterval,o=t.timeUnits;return function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function s(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new A(this))}var a=[];t.compose=function(t){return-1===a.indexOf(t)&&(a.push(t),t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,r(t,"init",s)),t};var A=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var r=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=r[r.length-1];var s,a=o[e[0]],A=e[1];for(s=0;s<r.length&&(e=r[s],a=o[e[0]],A=e[1],!(r[s+1]&&t<=(a*A[A.length-1]+o[r[s+1][0]])/2));s++);return a===o.year&&t<5*a&&(A=[1,2,5]),{unitRange:a,count:t=i(t/a,A,"year"===e[0]?Math.max(n(t/a),1):1),unitName:e[0]}},t.prototype.getXDateFormat=function(t,e){var r=this.axis,n=r.chart.time;return r.closestPointRange?n.getDateFormat(r.closestPointRange,t,r.options.startOfWeek,e)||n.resolveDTLFormat(e.year).main:n.resolveDTLFormat(e.day).main},t}();t.Additions=A}(e||(e={})),e}),e(r,"Core/Axis/LogarithmicAxis.js",[r["Core/Utilities.js"]],function(t){var e,r=t.addEvent,n=t.normalizeTickInterval,i=t.pick;return function(t){function e(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new a(this))}function o(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}var s=[];t.compose=function(t){return-1===s.indexOf(t)&&(s.push(t),t.keepProps.push("logarithmic"),r(t,"init",e),r(t,"afterInit",o)),t};var a=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,r,o){var s=this.axis,a=s.len,A=s.options,l=[];if(o||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),l=s.getLinearTickPositions(t,e,r);else if(.08<=t){var c,h=Math.floor(e),u=A=void 0;for(a=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];h<r+1&&!u;h++){var p=a.length;for(c=0;c<p&&!u;c++){var f=this.log2lin(this.lin2log(h)*a[c]);f>e&&(!o||A<=r)&&void 0!==A&&l.push(A),A>r&&(u=!0),A=f}}}else e=this.lin2log(e),r=this.lin2log(r),t=o?s.getMinorTickInterval():A.tickInterval,t=i("auto"===t?null:t,this.minorAutoInterval,A.tickPixelInterval/(o?5:1)*(r-e)/((o?a/s.tickPositions.length:a)||1)),t=n(t),l=s.getLinearTickPositions(t,e,r).map(this.log2lin),o||(this.minorAutoInterval=t/5);return o||(s.tickInterval=t),l},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=a}(e||(e={})),e}),e(r,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[r["Core/Utilities.js"]],function(t){var e,r=t.erase,n=t.extend,i=t.isNumber;return function(t){var e,o=[];t.compose=function(t,r){return e||(e=t),-1===o.indexOf(r)&&(o.push(r),n(r.prototype,s.prototype)),r};var s=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,r){void 0===r&&(r=this.options);var n=this.getPlotLinePath({value:e,force:!0,acrossPanes:r.acrossPanes}),o=[],s=this.horiz;if(e=!i(this.min)||!i(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:r.acrossPanes}),r=1,t&&n){if(e){var a=t.toString()===n.toString();r=0}for(e=0;e<t.length;e+=2){var A=t[e],l=t[e+1],c=n[e],h=n[e+1];"M"!==A[0]&&"L"!==A[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==c[0]&&"L"!==c[0]||"M"!==h[0]&&"L"!==h[0]||(s&&c[1]===A[1]?(c[1]+=r,h[1]+=r):s||c[2]!==A[2]||(c[2]+=r,h[2]+=r),o.push(["M",A[1],A[2]],["L",l[1],l[2]],["L",h[1],h[2]],["L",c[1],c[2]],["Z"])),o.isFlat=a}}return o},t.prototype.addPlotBand=function(t){return this.addPlotBandOrLine(t,"plotBands")},t.prototype.addPlotLine=function(t){return this.addPlotBandOrLine(t,"plotLines")},t.prototype.addPlotBandOrLine=function(t,r){var n=this,i=this.userOptions,o=new e(this,t);if(this.visible&&(o=o.render()),o){if(this._addedPlotLB||(this._addedPlotLB=!0,(i.plotLines||[]).concat(i.plotBands||[]).forEach(function(t){n.addPlotBandOrLine(t)})),r){var s=i[r]||[];s.push(t),i[r]=s}this.plotLinesAndBands.push(o)}return o},t.prototype.removePlotBandOrLine=function(t){var e=this.plotLinesAndBands,n=this.options,i=this.userOptions;if(e){for(var o=e.length;o--;)e[o].id===t&&e[o].destroy();[n.plotLines||[],i.plotLines||[],n.plotBands||[],i.plotBands||[]].forEach(function(e){for(o=e.length;o--;)(e[o]||{}).id===t&&r(e,e[o])})}},t.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},t.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},t}()}(e||(e={})),e}),e(r,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[r["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],r["Core/Utilities.js"]],function(t,e){var r=e.arrayMax,n=e.arrayMin,i=e.defined,o=e.destroyObjectProperties,s=e.erase,a=e.fireEvent,A=e.merge,l=e.objectEach,c=e.pick;return e=function(){function e(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return e.compose=function(r){return t.compose(e,r)},e.prototype.render=function(){a(this,"render");var t=this,e=t.axis,r=e.horiz,n=e.logarithmic,o=t.options,s=o.color,h=c(o.zIndex,0),u=o.events,p={},f=e.chart.renderer,d=o.label,g=t.label,m=o.to,y=o.from,v=o.value,b=t.svgElem,w=[],x=i(y)&&i(m);w=i(v);var B=!b,C={class:"highcharts-plot-"+(x?"band ":"line ")+(o.className||"")},_=x?"bands":"lines";if(n&&(y=n.log2lin(y),m=n.log2lin(m),v=n.log2lin(v)),e.chart.styledMode||(w?(C.stroke=s||"#999999",C["stroke-width"]=c(o.width,1),o.dashStyle&&(C.dashstyle=o.dashStyle)):x&&(C.fill=s||"#e6ebf5",o.borderWidth&&(C.stroke=o.borderColor,C["stroke-width"]=o.borderWidth))),p.zIndex=h,_+="-"+h,(n=e.plotLinesAndBandsGroups[_])||(e.plotLinesAndBandsGroups[_]=n=f.g("plot-"+_).attr(p).add()),B&&(t.svgElem=b=f.path().attr(C).add(n)),w)w=e.getPlotLinePath({value:v,lineWidth:b.strokeWidth(),acrossPanes:o.acrossPanes});else{if(!x)return;w=e.getPlotBandPath(y,m,o)}return!t.eventsAdded&&u&&(l(u,function(e,r){b.on(r,function(e){u[r].apply(t,[e])})}),t.eventsAdded=!0),(B||!b.d)&&w&&w.length?b.attr({d:w}):b&&(w?(b.show(),b.animate({d:w})):b.d&&(b.hide(),g&&(t.label=g=g.destroy()))),d&&(i(d.text)||i(d.formatter))&&w&&w.length&&0<e.width&&0<e.height&&!w.isFlat?(d=A({align:r&&x&&"center",x:r?!x&&4:10,verticalAlign:!r&&x&&"middle",y:r?x?16:10:x?6:-4,rotation:r&&!x&&90},d),this.renderLabel(d,w,x,h)):g&&g.hide(),t},e.prototype.renderLabel=function(t,e,i,o){var s=this.axis,a=s.chart.renderer,l=this.label;l||(this.label=l=a.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||""),zIndex:o}).add(),s.chart.styledMode||l.css(A({textOverflow:"ellipsis"},t.style))),o=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],i=n(o),a=n(e),l.align(t,!1,{x:i,y:a,width:r(o)-i,height:r(e)-a}),l.alignValue&&"left"!==l.alignValue||(t=t.clip?s.width:s.chart.chartWidth,l.css({width:(90===l.rotation?s.height-(l.alignAttr.y-s.top):t-(l.alignAttr.x-s.left))+"px"})),l.show(!0)},e.prototype.getLabelText=function(t){return i(t.formatter)?t.formatter.call(this):t.text},e.prototype.destroy=function(){s(this.axis.plotLinesAndBands,this),delete this.axis,o(this)},e}(),e}),e(r,"Core/Tooltip.js",[r["Core/FormatUtilities.js"],r["Core/Globals.js"],r["Core/Renderer/RendererUtilities.js"],r["Core/Renderer/RendererRegistry.js"],r["Core/Utilities.js"]],function(t,e,r,n,i){var o=t.format,s=e.doc,a=r.distribute,A=i.clamp,l=i.css,c=i.discardElement,h=i.extend,u=i.fireEvent,p=i.isArray,f=i.isNumber,d=i.isString,g=i.merge,m=i.pick,y=i.splat,v=i.syncTimeout;return t=function(){function t(t,e){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}return t.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+t.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},t.prototype.bodyFormatter=function(t){return t.map(function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")})},t.prototype.cleanSplit=function(t){this.chart.series.forEach(function(e){var r=e&&e.tt;r&&(!r.isActive||t?e.tt=r.destroy():r.isActive=!1)})},t.prototype.defaultFormatter=function(t){var e=this.points||y(this),r=[t.tooltipFooterHeaderFormatter(e[0])];return(r=r.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),r},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),c(this.container)),i.clearTimeout(this.hideTimer),i.clearTimeout(this.tooltipTimeout)},t.prototype.getAnchor=function(t,e){var r=this.chart,n=r.pointer,i=r.inverted,o=r.plotTop;if(r=r.plotLeft,(t=y(t))[0].series&&t[0].series.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=n.normalize(e)),t=[e.chartX-r,e.chartY-o];else if(t[0].tooltipPos)t=t[0].tooltipPos;else{var s=0,a=0;t.forEach(function(t){(t=t.pos(!0))&&(s+=t[0],a+=t[1])}),s/=t.length,a/=t.length,this.shared&&1<t.length&&e&&(i?s=e.chartX:a=e.chartY),t=[s-r,a-o]}return t.map(Math.round)},t.prototype.getClassName=function(t,e,r){var n=t.series,i=n.options;return[this.options.className,"highcharts-label",r&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!r&&"highcharts-color-"+m(t.colorIndex,n.colorIndex),i&&i.className].filter(d).join(" ")},t.prototype.getLabel=function(){var t,r=this,i=this.chart.styledMode,o=this.options,s=this.split&&this.allowShared,a=o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),A=this.chart.renderer;if(r.label){var c=!r.label.hasClass("highcharts-label");(s&&!c||!s&&c)&&r.destroy()}if(!this.label){if(this.outside){c=this.chart.options.chart.style;var h=n.getRendererType();this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",l(t,{position:"absolute",top:"1px",pointerEvents:a,zIndex:Math.max(this.options.style.zIndex||0,(c&&c.zIndex||0)+3)}),e.doc.body.appendChild(t),this.renderer=A=new h(t,0,0,c,void 0,void 0,A.styledMode)}if(s?this.label=A.g("tooltip"):(this.label=A.label("",0,0,o.shape,void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),i||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth}).css(o.style).css({pointerEvents:a}).shadow(o.shadow)),i&&o.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),r.outside&&!r.split){var u=this.label,p=u.xSetter,f=u.ySetter;u.xSetter=function(e){p.call(u,r.distance),t.style.left=e+"px"},u.ySetter=function(e){f.call(u,r.distance),t.style.top=e+"px"}}this.label.attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,r){var n,i=this.chart,o=this.distance,a={},A=i.inverted&&r.h||0,l=this.outside,c=l?s.documentElement.clientWidth-2*o:i.chartWidth,h=l?Math.max(s.body.scrollHeight,s.documentElement.scrollHeight,s.body.offsetHeight,s.documentElement.offsetHeight,s.documentElement.clientHeight):i.chartHeight,u=i.pointer.getChartPosition(),p=function(n){var s="x"===n;return[n,s?c:h,s?t:e].concat(l?[s?t*u.scaleX:e*u.scaleY,s?u.left-o+(r.plotX+i.plotLeft)*u.scaleX:u.top-o+(r.plotY+i.plotTop)*u.scaleY,0,s?c:h]:[s?t:e,s?r.plotX+i.plotLeft:r.plotY+i.plotTop,s?i.plotLeft:i.plotTop,s?i.plotLeft+i.plotWidth:i.plotTop+i.plotHeight])},f=p("y"),d=p("x");p=!!r.negative,!i.polar&&i.hoverSeries&&i.hoverSeries.yAxis&&i.hoverSeries.yAxis.reversed&&(p=!p);var g=!this.followPointer&&m(r.ttBelow,!i.inverted===p),y=function(t,e,r,n,i,s,c){var h=l?"y"===t?o*u.scaleY:o*u.scaleX:o,p=(r-n)/2,f=n<i-o,d=i+o+n<e,m=i-h-r+p;if(i=i+h-p,g&&d)a[t]=i;else if(!g&&f)a[t]=m;else if(f)a[t]=Math.min(c-n,0>m-A?m:m-A);else{if(!d)return!1;a[t]=Math.max(s,i+A+r>e?i:i+A)}},v=function(t,e,r,n,i){var s;return i<o||i>e-o?s=!1:a[t]=i<r/2?1:i>e-n/2?e-n-2:i-r/2,s},b=function(t){var e=f;f=d,d=e,n=t},w=function(){!1!==y.apply(0,f)?!1!==v.apply(0,d)||n||(b(!0),w()):n?a.x=a.y=0:(b(!0),w())};return(i.inverted||1<this.len)&&b(),w(),a},t.prototype.hide=function(t){var e=this;i.clearTimeout(this.hideTimer),t=m(t,this.options.hideDelay),this.isHidden||(this.hideTimer=v(function(){e.getLabel().fadeOut(t?void 0:t),e.isHidden=!0},t))},t.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=m(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(t){return!(this.followPointer||!this.options.stickOnContact||t&&!this.chart.pointer.inClass(t.target,"highcharts-tooltip"))},t.prototype.move=function(t,e,r,n){var o=this,s=o.now,a=!1!==o.options.animation&&!o.isHidden&&(1<Math.abs(t-s.x)||1<Math.abs(e-s.y)),A=o.followPointer||1<o.len;h(s,{x:a?(2*s.x+t)/3:t,y:a?(s.y+e)/2:e,anchorX:A?void 0:a?(2*s.anchorX+r)/3:r,anchorY:A?void 0:a?(s.anchorY+n)/2:n}),o.getLabel().attr(s),o.drawTracker(),a&&(i.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){o&&o.move(t,e,r,n)},32))},t.prototype.refresh=function(t,e){var r=this.chart,n=this.options,o=r.pointer,s=y(t),a=s[0],A=[],l=n.formatter||this.defaultFormatter,c=this.shared,h=r.styledMode,f={};if(n.enabled&&a.series){i.clearTimeout(this.hideTimer),this.allowShared=!(!p(t)&&t.series&&t.series.noSharedTooltip),this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;var d=(t=this.getAnchor(t,e))[0],g=t[1];if(c&&this.allowShared?(o.applyInactiveState(s),s.forEach(function(t){t.setState("hover"),A.push(t.getLabelConfig())}),(f={x:a.category,y:a.y}).points=A):f=a.getLabelConfig(),this.len=A.length,l=l.call(f,this),c=a.series,this.distance=m(c.tooltipOptions.distance,16),!1===l)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(l,s);else{var v=d,b=g;if(e&&o.isDirectTouch&&(v=e.chartX-r.plotLeft,b=e.chartY-r.plotTop),!r.polar&&!1!==c.options.clip&&!s.some(function(t){return o.isDirectTouch||t.series.shouldShowTooltip(v,b)}))return void this.hide();e=this.getLabel(),n.style.width&&!h||e.css({width:r.spacingBox.width+"px"}),e.attr({text:l&&l.join?l.join(""):l}),e.addClass(this.getClassName(a),!0),h||e.attr({stroke:n.borderColor||a.color||c.color||"#666666"}),this.updatePosition({plotX:d,plotY:g,negative:a.negative,ttBelow:a.ttBelow,h:t[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}u(this,"refresh")}},t.prototype.renderSplit=function(t,e){function r(t,e,r,i,o){return void 0===o&&(o=!0),r?(e=F?0:P,t=A(t-i/2,E.left,E.right-i-(n.outside?T:0))):(e-=k,t=A(t=o?t-i-B:t+B,o?t:E.left,E.right)),{x:t,y:e}}var n=this,i=n.chart,o=n.chart,l=o.chartWidth,c=o.chartHeight,u=o.plotHeight,p=o.plotLeft,f=o.plotTop,g=o.pointer,y=o.scrollablePixelsY;y=void 0===y?0:y;var v=o.scrollablePixelsX,b=o.scrollingContainer,w=(b=void 0===b?{scrollLeft:0,scrollTop:0}:b).scrollLeft;b=b.scrollTop;var x=o.styledMode,B=n.distance,C=n.options,_=n.options.positioner,E=n.outside&&"number"!=typeof v?s.documentElement.getBoundingClientRect():{left:w,right:w+l,top:b,bottom:b+c},S=n.getLabel(),I=this.renderer||i.renderer,F=!(!i.xAxis[0]||!i.xAxis[0].opposite),T=(i=g.getChartPosition()).left;i=i.top;var k=f+b,L=0,P=u-y;d(t)&&(t=[!1,t]),t=t.slice(0,e.length+1).reduce(function(t,i,o){if(!1!==i&&""!==i){var s=(o=e[o-1]||{isHeader:!0,plotX:e[0].plotX,plotY:u,series:{}}).isHeader,a=s?n:o.series;i=i.toString();var l=a.tt,c=o.isHeader,h=o.series;l||(l={padding:C.padding,r:C.borderRadius},x||(l.fill=C.backgroundColor,l["stroke-width"]=C.borderWidth),l=I.label("",0,0,C[c?"headerShape":"shape"],void 0,void 0,C.useHTML).addClass(n.getClassName(o,!0,c)).attr(l).add(S)),l.isActive=!0,l.attr({text:i}),x||l.css(C.style).shadow(C.shadow).attr({stroke:C.borderColor||o.color||h.color||"#333333"}),i=(c=(a=a.tt=l).getBBox()).width+a.strokeWidth(),s&&(L=c.height,P+=L,F&&(k-=L)),h=void 0===(h=o.plotX)?0:h,l=void 0===(l=o.plotY)?0:l;var d=o.series;if(o.isHeader){h=p+h;var g=f+u/2}else{var y=d.xAxis,v=d.yAxis;h=y.pos+A(h,-B,y.len+B),d.shouldShowTooltip(0,v.pos-f+l,{ignoreX:!0})&&(g=v.pos+l)}h=A(h,E.left-B,E.right+B),"number"==typeof g?(c=c.height+1,l=_?_.call(n,i,c,o):r(h,g,s,i),t.push({align:_?0:void 0,anchorX:h,anchorY:g,boxWidth:i,point:o,rank:m(l.rank,s?1:0),size:c,target:l.y,tt:a,x:l.x})):a.isActive=!1}return t},[]),!_&&t.some(function(t){var e=(n.outside?T:0)+t.anchorX;return e<E.left&&e+t.boxWidth<E.right||e<T-E.left+t.boxWidth&&E.right-e>e})&&(t=t.map(function(t){var e=r(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return h(t,{target:e.y,x:e.x})})),n.cleanSplit(),a(t,P);var M=T,D=T;t.forEach(function(t){var e=t.x,r=t.boxWidth;(t=t.isHeader)||(n.outside&&T+e<M&&(M=T+e),!t&&n.outside&&M+r>D&&(D=T+e))}),t.forEach(function(t){var e=t.x,r=t.anchorX,i=t.pos,o=t.point.isHeader;if(i={visibility:void 0===i?"hidden":"inherit",x:e,y:(i||0)+k,anchorX:r,anchorY:t.anchorY},n.outside&&e<r){var s=T-M;0<s&&(o||(i.x=e+s,i.anchorX=r+s),o&&(i.x=(D-M)/2,i.anchorX=r+s))}t.tt.attr(i)}),t=n.container,y=n.renderer,n.outside&&t&&y&&(o=S.getBBox(),y.setSize(o.width+o.x,o.height+o.y,!1),t.style.left=M+"px",t.style.top=i+"px")},t.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var t=this.chart,e=this.label,r=this.shared?t.hoverPoints:t.hoverPoint;if(e&&r){var n={x:0,y:0,width:0,height:0};r=this.getAnchor(r);var i=e.getBBox();r[0]+=t.plotLeft-e.translateX,r[1]+=t.plotTop-e.translateY,n.x=Math.min(0,r[0]),n.y=Math.min(0,r[1]),n.width=0>r[0]?Math.max(Math.abs(r[0]),i.width-r[0]):Math.max(Math.abs(r[0]),i.width),n.height=0>r[1]?Math.max(Math.abs(r[1]),i.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),i.height),this.tracker?this.tracker.attr(n):(this.tracker=e.renderer.rect(n).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var r=t.series,n=r.tooltipOptions,i=r.xAxis,s=i&&i.dateTime;i={isFooter:e,labelConfig:t};var a=n.xDateFormat,A=n[e?"footerFormat":"headerFormat"];return u(this,"headerFormatter",i,function(e){s&&!a&&f(t.key)&&(a=s.getXDateFormat(t.key,n.dateTimeLabelFormats)),s&&a&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach(function(t){A=A.replace("{point."+t+"}","{point."+t+":"+a+"}")}),r.chart.styledMode&&(A=this.styledModeFormat(A)),e.text=o(A,{point:t,series:r},this.chart)}),i.text},t.prototype.update=function(t){this.destroy(),g(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,g(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,r=this.distance,n=this.options,i=e.pointer,o=this.getLabel(),s=i.getChartPosition();i=s.left;var a=s.top,A=s.scaleX;s=s.scaleY;var c=(n.positioner||this.getPosition).call(this,o.width,o.height,t),h=(t.plotX||0)+e.plotLeft;t=(t.plotY||0)+e.plotTop,this.outside&&(n.positioner&&(c.x+=i-r,c.y+=a-r),r=n.borderWidth+2*r,this.renderer.setSize(o.width+r,o.height+r,!1),1===A&&1===s||(l(this.container,{transform:"scale(".concat(A,", ").concat(s,")")}),h*=A,t*=s),h+=i-c.x,t+=a-c.y),this.move(Math.round(c.x),Math.round(c.y||0),h,t)},t}(),t}),e(r,"Core/Series/Point.js",[r["Core/Renderer/HTML/AST.js"],r["Core/Animation/AnimationUtilities.js"],r["Core/Defaults.js"],r["Core/FormatUtilities.js"],r["Core/Utilities.js"]],function(t,e,r,n,i){var o=e.animObject,s=r.defaultOptions,a=n.format,A=i.addEvent,l=i.defined,c=i.erase,h=i.extend,u=i.fireEvent,p=i.getNestedProperty,f=i.isArray,d=i.isFunction,g=i.isNumber,m=i.isObject,y=i.merge,v=i.objectEach,b=i.pick,w=i.syncTimeout,x=i.removeEvent,B=i.uniqueKey;return e=function(){function e(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},r=t.getGraphicalProps();r.singular.forEach(function(r){t[r]=t[r].animate("dataLabel"===r?{x:t[r].startXPos,y:t[r].startYPos,opacity:0}:e)}),r.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.animate(h({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))})})},e.prototype.applyOptions=function(t,r){var n=this.series,i=n.options.pointValKey||n.pointValKey;return t=e.prototype.optionsToObject.call(this,t),h(this,t),this.options=this.options?h(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,i&&(this.y=e.prototype.getNestedProperty.call(this,i)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===r&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),void 0===this.x&&n?this.x=void 0===r?n.autoIncrement():r:g(t.x)&&n.options.relativeXValue&&(this.x=n.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(i in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(x(e),e.destroyElements()),e)e[i]=null}var e=this,r=e.series,n=r.chart;r=r.options.dataSorting;var i,s=n.hoverPoints,a=o(e.series.chart.renderer.globalAnimation);e.legendItem&&n.legend.destroyItem(e),s&&(e.setState(),c(s,e),s.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),r&&r.enabled?(this.animateBeforeDestroy(),w(t,a.duration)):t(),n.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach(function(t){e[t]=e[t].destroy()}),t.plural.forEach(function(t){e[t].forEach(function(t){t&&t.element&&t.destroy()}),delete e[t]})},e.prototype.firePointEvent=function(t,e,r){var n=this,i=this.series.options;(i.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&n.importEvents(),"click"===t&&i.allowPointSelect&&(r=function(t){n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),u(n,t,e,r)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,r=this,n=[],i={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&n.push("graphic","shadowGroup"),t.dataLabel&&n.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),e=n.length;e--;){var o=n[e];r[o]&&i.singular.push(o)}return["graphic","dataLabel","connector"].forEach(function(e){var n=e+"s";t[e]&&r[n]&&i.plural.push(n)}),i},e.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?p(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var r,n=0;for(r=e[n];this[t]>=r.value;)r=e[++n];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=r&&r.color&&!this.options.color?r.color:this.nonZonedColor,r},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,r){return this.series=t,this.applyOptions(e,r),this.id=l(this.id)?this.id:B(),this.resolveColor(),t.chart.pointCount++,u(this,"afterInit"),this},e.prototype.isValid=function(){return null!==this.x&&g(this.y)},e.prototype.optionsToObject=function(t){var r=this.series,n=r.options.keys,i=n||r.pointArrayMap||["y"],o=i.length,s={},a=0,A=0;if(g(t)||null===t)s[i[0]]=t;else if(f(t))for(!n&&t.length>o&&("string"==(r=typeof t[0])?s.name=t[0]:"number"===r&&(s.x=t[0]),a++);A<o;)n&&void 0===t[a]||(0<i[A].indexOf(".")?e.prototype.setNestedProperty(s,t[a],i[A]):s[i[A]]=t[a]),a++,A++;else"object"==typeof t&&(s=t,t.dataLabels&&(r._hasPointLabels=!0),t.marker&&(r._hasPointMarkers=!0));return s},e.prototype.pos=function(t,e){void 0===e&&(e=this.plotY);var r=this.plotX,n=this.series,i=n.chart,o=n.xAxis;n=n.yAxis;var s=0,a=0;if(g(r)&&g(e))return t&&(s=o?o.pos:i.plotLeft,a=n?n.pos:i.plotTop),i.inverted&&o&&n?[n.len-e+a,o.len-r+s]:[r+s,e+a]},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.styledMode,r=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!e){var n=(r=t.options.colors||t.chart.options.colors)[t.colorCounter];r=r.length}e=t.colorCounter,t.colorCounter++,t.colorCounter===r&&(t.colorCounter=0)}else e||(n=t.color),e=t.colorIndex;this.colorIndex=b(this.options.colorIndex,e),this.color=b(this.options.color,n)},e.prototype.setNestedProperty=function(t,e,r){return r.split(".").reduce(function(t,r,n,i){return t[r]=i.length-1===n?e:m(t[r],!0)?t[r]:{},t[r]},t),t},e.prototype.shouldDraw=function(){return!this.isNull},e.prototype.tooltipFormatter=function(t){var e=this.series,r=e.tooltipOptions,n=b(r.valueDecimals,""),i=r.valuePrefix||"",o=r.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach(function(e){e="{point."+e,(i||o)&&(t=t.replace(RegExp(e+"}","g"),i+e+"}"+o)),t=t.replace(RegExp(e+"}","g"),e+":,."+n+"f}")}),a(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,r,n){function i(){s.applyOptions(t);var n=A&&s.hasMockGraphic;n=null===s.y?!n:n,A&&n&&(s.graphic=A.destroy(),delete s.hasMockGraphic),m(t,!0)&&(A&&A.element&&t&&t.marker&&void 0!==t.marker.symbol&&(s.graphic=A.destroy()),t&&t.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy()),s.connector&&(s.connector=s.connector.destroy())),o=s.index,a.updateParallelArrays(s,o),c.data[o]=m(c.data[o],!0)||m(t,!0)?s.options:b(t,c.data[o]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===c.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(r)}var o,s=this,a=s.series,A=s.graphic,l=a.chart,c=a.options;e=b(e,!0),!1===n?i():s.firePointEvent("update",{options:t},i)},e.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},e.prototype.select=function(t,e){var r=this,n=r.series,i=n.chart;this.selectedStaging=t=b(t,!r.selected),r.firePointEvent(t?"select":"unselect",{accumulate:e},function(){r.selected=r.options.selected=t,n.options.data[n.data.indexOf(r)]=r.options,r.setState(t&&"select"),e||i.getSelectedPoints().forEach(function(t){var e=t.series;t.selected&&t!==r&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(i.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},e.prototype.onMouseOver=function(t){var e=this.series.chart,r=e.pointer;t=t?r.normalize(t):r.getChartCoordinatesFromPoint(this,e.inverted),r.runPointActions(t,this)},e.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},e.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,e=y(t.series.options.point,t.options).events;t.events=e,v(e,function(e,r){d(e)&&A(t,r,e)}),this.hasImportedEvents=!0}},e.prototype.setState=function(e,r){var n,i=this.series,o=this.state,a=i.options.states[e||"normal"]||{},A=s.plotOptions[i.type].marker&&i.options.marker,l=A&&!1===A.enabled,c=A&&A.states&&A.states[e||"normal"]||{},p=!1===c.enabled,f=this.marker||{},d=i.chart,m=A&&i.markerAttribs,y=i.halo,v=i.stateMarkerGraphic;if(!((e=e||"")===this.state&&!r||this.selected&&"select"!==e||!1===a.enabled||e&&(p||l&&!1===c.enabled)||e&&f.states&&f.states[e]&&!1===f.states[e].enabled)){if(this.state=e,m&&(n=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),e&&this.graphic.addClass("highcharts-point-"+e),!d.styledMode){o=i.pointAttribs(this,e);var w=b(d.options.chart.animation,a.animation),x=o.opacity;i.options.inactiveOtherPoints&&g(x)&&((this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&t.animate({opacity:x},w)}),this.connector&&this.connector.animate({opacity:x},w)),this.graphic.animate(o,w)}n&&this.graphic.animate(n,b(d.options.chart.animation,c.animation,A.animation)),v&&v.hide()}else e&&c&&(A=f.symbol||i.symbol,v&&v.currentSymbol!==A&&(v=v.destroy()),n&&(v?v[r?"animate":"attr"]({x:n.x,y:n.y}):A&&(i.stateMarkerGraphic=v=d.renderer.symbol(A,n.x,n.y,n.width,n.height).add(i.markerGroup),v.currentSymbol=A)),!d.styledMode&&v&&"inactive"!==this.state&&v.attr(i.pointAttribs(this,e))),v&&(v[e&&this.isInside?"show":"hide"](),v.element.point=this,v.addClass(this.getClassName(),!0));a=a.halo,n=(v=this.graphic||v)&&v.visibility||"inherit",a&&a.size&&v&&"hidden"!==n&&!this.isCluster?(y||(i.halo=y=d.renderer.path().add(v.parentGroup)),y.show()[r?"animate":"attr"]({d:this.haloPath(a.size)}),y.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:n,zIndex:-1}),y.point=this,d.styledMode||y.attr(h({fill:this.color||i.color,"fill-opacity":a.opacity},t.filterUserAttributes(a.attributes||{})))):y&&y.point&&y.point.haloPath&&y.animate({d:y.point.haloPath(0)},null,y.hide),u(this,"afterSetState",{state:e})}},e.prototype.haloPath=function(t){var e=this.pos();return e?this.series.chart.renderer.symbols.circle(Math.floor(e[0])-t,e[1]-t,2*t,2*t):[]},e}(),e}),e(r,"Core/Pointer.js",[r["Core/Color/Color.js"],r["Core/Globals.js"],r["Core/Tooltip.js"],r["Core/Utilities.js"]],function(t,e,r,n){var i=t.parse,o=e.charts,s=e.noop,a=n.addEvent,A=n.attr,l=n.css,c=n.defined,h=n.extend,u=n.find,p=n.fireEvent,f=n.isNumber,d=n.isObject,g=n.objectEach,m=n.offset,y=n.pick,v=n.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=t,this.hasDragged=!1,this.options=e,this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,r=[];(t||[]).forEach(function(t){e=t.series,r.push(e),e.linkedParent&&r.push(e.linkedParent),e.linkedSeries&&(r=r.concat(e.linkedSeries)),e.navigatorSeries&&r.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===r.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},t.prototype.destroy=function(){var r=this;this.eventsToUnbind.forEach(function(t){return t()}),this.eventsToUnbind=[],e.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(r.tooltipTimeout),g(r,function(t,e){r[e]=void 0})},t.prototype.getSelectionMarkerAttrs=function(t,e){var r=this,n={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return p(this,"getSelectionMarkerAttrs",n,function(n){var i=r.chart,o=r.mouseDownX;o=void 0===o?0:o;var s=r.mouseDownY;s=void 0===s?0:s;var a=r.zoomHor,A=r.zoomVert;(n=n.attrs).x=i.plotLeft,n.y=i.plotTop,n.width=a?1:i.plotWidth,n.height=A?1:i.plotHeight,a&&(i=t-o,n.width=Math.abs(i),n.x=(0<i?0:i)+o),A&&(i=e-s,n.height=Math.abs(i),n.y=(0<i?0:i)+s)}),n},t.prototype.drag=function(t){var e=this.chart,r=e.options.chart,n=e.plotLeft,o=e.plotTop,s=e.plotWidth,a=e.plotHeight,A=this.mouseDownX||0,l=this.mouseDownY||0,c=d(r.panning)?r.panning&&r.panning.enabled:r.panning,h=r.panKey&&t[r.panKey+"Key"],u=t.chartX,p=t.chartY,f=this.selectionMarker;f&&f.touch||(u<n?u=n:u>n+s&&(u=n+s),p<o?p=o:p>o+a&&(p=o+a),this.hasDragged=Math.sqrt(Math.pow(A-u,2)+Math.pow(l-p,2)),10<this.hasDragged&&(n=e.isInsidePlot(A-n,l-o,{visiblePlotOnly:!0}),u=(p=this.getSelectionMarkerAttrs(u,p)).shapeType,p=p.attrs,!e.hasCartesianSeries&&!e.mapView||!this.zoomX&&!this.zoomY||!n||h||f||(this.selectionMarker=f=e.renderer[u](),f.attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||f.attr({fill:r.selectionMarkerFill||i("#335cad").setOpacity(.25).get()})),f&&f.attr(p),n&&!f&&c&&e.pan(t,r.panning)))},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},t.prototype.getSelectionBox=function(t){var e={args:{marker:t},result:{}};return p(this,"getSelectionBox",e,function(e){e.result={x:t.attr?+t.attr("x"):t.x,y:t.attr?+t.attr("y"):t.y,width:t.attr?t.attr("width"):t.width,height:t.attr?t.attr("height"):t.height}}),e.result},t.prototype.drop=function(t){var e=this,r=this.chart,n=this.hasPinched;if(this.selectionMarker){var i=this.getSelectionBox(this.selectionMarker),o=i.x,s=i.y,a=i.width,A=i.height,u={originalEvent:t,xAxis:[],yAxis:[],x:o,y:s,width:a,height:A},d=!!r.mapView;(this.hasDragged||n)&&(r.axes.forEach(function(r){if(r.zoomEnabled&&c(r.min)&&(n||e[{xAxis:"zoomX",yAxis:"zoomY"}[r.coll]])&&f(o)&&f(s)&&f(a)&&f(A)){var i=r.horiz,l="touchend"===t.type?r.minPixelPadding:0,h=r.toValue((i?o:s)+l);i=r.toValue((i?o+a:s+A)-l),u[r.coll].push({axis:r,min:Math.min(h,i),max:Math.max(h,i)}),d=!0}}),d&&p(r,"selection",u,function(t){r.zoom(h(t,n?{animation:!1}:null))})),f(r.index)&&(this.selectionMarker=this.selectionMarker.destroy()),n&&this.scaleGroups()}r&&f(r.index)&&(l(r.container,{cursor:r._cursor}),r.cancelClick=10<this.hasDragged,r.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,r){var n;return t.forEach(function(t){var i=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(r,i),(i=d(t,!0)&&t.series)&&!(i=!d(n,!0))){i=n.distX-t.distX;var o=n.dist-t.dist,s=(t.series.group&&t.series.group.zIndex)-(n.series.group&&n.series.group.zIndex);i=0<(0!==i&&e?i:0!==o?o:0!==s?s:n.series.index>t.series.index?-1:1)}i&&(n=t)}),n},t.prototype.getChartCoordinatesFromPoint=function(t,e){var r=t.series,n=r.xAxis;r=r.yAxis;var i=t.shapeArgs;if(n&&r){var o=y(t.clientX,t.plotX),s=t.plotY||0;return t.isNode&&i&&f(i.x)&&f(i.y)&&(o=i.x,s=i.y),e?{chartX:r.len+r.pos-s,chartY:n.len+n.pos-o}:{chartX:o+n.pos,chartY:s+r.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=m(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var r=t.offsetWidth;return t=t.offsetHeight,2<r&&2<t&&(this.chartPosition.scaleX=e.width/r,this.chartPosition.scaleY=e.height/t),this.chartPosition},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(r){e[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(t[r.horiz?"chartX":"chartY"])})}),e},t.prototype.getHoverData=function(t,e,r,n,i,o){var s=[];n=!(!n||!t);var a=function(t){return t.visible&&!(!i&&t.directTouch)&&y(t.options.enableMouseTracking,!0)},A={chartX:o?o.chartX:void 0,chartY:o?o.chartY:void 0,shared:i};p(this,"beforeGetHoverData",A);var l=e&&!e.stickyTracking?[e]:r.filter(function(t){return t.stickyTracking&&(A.filter||a)(t)}),c=n||!o?t:this.findNearestKDPoint(l,i,o);return e=c&&c.series,c&&(i&&!e.noSharedTooltip?(l=r.filter(function(t){return A.filter?A.filter(t):a(t)&&!t.noSharedTooltip}),l.forEach(function(t){var e=u(t.points,function(t){return t.x===c.x&&!t.isNull});d(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),s.push(e))})):s.push(c)),p(this,"afterGetHoverData",A={hoverPoint:c}),{hoverPoint:A.hoverPoint,hoverSeries:e,hoverPoints:s}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var r;t;){if(r=A(t,"class")){if(-1!==r.indexOf(e))return!0;if(-1!==r.indexOf("highcharts-container"))return!1}t=t.parentElement}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=!(!e.chart.events||!e.chart.events.click),this.pinchDown=[],this.lastValidTouch={},r&&(t.tooltip=new r(t,e.tooltip)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var r=t.touches,n=r?r.length?r.item(0):y(r.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),r=n.pageX-e.left,n=n.pageY-e.top,r/=e.scaleX,n/=e.scaleY,h(t,{chartX:Math.round(r),chartY:Math.round(n)})},t.prototype.onContainerClick=function(t){var e=this.chart,r=e.hoverPoint;t=this.normalize(t);var n=e.plotLeft,i=e.plotTop;e.cancelClick||(r&&this.inClass(t.target,"highcharts-tracker")?(p(r.series,"click",h(t,{point:r})),e.hoverPoint&&r.firePointEvent("click",t)):(h(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-i,{visiblePlotOnly:!0})&&p(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var r=!(1&~(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||r)&&(this.zoomOption(t),r&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var r=o[y(t.hoverChartIndex,-1)],n=this.chart.tooltip;e=this.normalize(e),r&&(e.relatedTarget||e.toElement)&&(r.pointer.reset(),r.pointer.chartPosition=void 0),n&&!n.isHidden&&this.reset()},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart,r=e.tooltip;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),("mousedown"===e.mouseIsDown||this.touchSelect(t))&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(t)||(this.inClass(t.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(t))},t.prototype.onDocumentTouchEnd=function(e){var r=o[y(t.hoverChartIndex,-1)];r&&r.pointer.drop(e)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,r=e.tooltip,n=this.chartPosition;t=this.normalize(t,n),!n||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(t)||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var r=o[y(t.hoverChartIndex,-1)];r&&r.pointer.drop(e)},t.prototype.pinch=function(t){var e=this,r=e.chart,n=e.pinchDown,i=t.touches||[],o=i.length,a=e.lastValidTouch,A=e.hasZoom,l={},c=1===o&&(e.inClass(t.target,"highcharts-tracker")&&r.runTrackerClick||e.runChartClick),u={},f=e.chart.tooltip;f=1===o&&y(f&&f.options.followTouchMove,!0);var d=e.selectionMarker;1<o?e.initiated=!0:f&&(e.initiated=!1),A&&e.initiated&&!c&&!1!==t.cancelable&&t.preventDefault(),[].map.call(i,function(t){return e.normalize(t)}),"touchstart"===t.type?([].forEach.call(i,function(t,e){n[e]={chartX:t.chartX,chartY:t.chartY}}),a.x=[n[0].chartX,n[1]&&n[1].chartX],a.y=[n[0].chartY,n[1]&&n[1].chartY],r.axes.forEach(function(t){if(t.zoomEnabled){var e=r.bounds[t.horiz?"h":"v"],n=t.minPixelPadding,i=t.toPixels(Math.min(y(t.options.min,t.dataMin),t.dataMin)),o=t.toPixels(Math.max(y(t.options.max,t.dataMax),t.dataMax)),s=Math.max(i,o);e.min=Math.min(t.pos,Math.min(i,o)-n),e.max=Math.max(t.pos+t.len,s+n)}}),e.res=!0):f?this.runPointActions(e.normalize(t)):n.length&&(p(r,"touchpan",{originalEvent:t},function(){d||(e.selectionMarker=d=h({destroy:s,touch:!0},r.plotBox)),e.pinchTranslate(n,i,l,d,u,a),e.hasPinched=A,e.scaleGroups(l,u)}),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,r,n,i,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,r,n,i,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,r,n,i,o)},t.prototype.pinchTranslateDirection=function(t,e,r,n,i,o,s,a){var A=this.chart,l=t?"x":"y",c=t?"X":"Y",h="chart"+c,u=t?"width":"height",p=A["plot"+(t?"Left":"Top")],f=A.inverted,d=A.bounds[t?"h":"v"],g=1===e.length,m=e[0][h],y=!g&&e[1][h];e=function(){"number"==typeof B&&20<Math.abs(m-y)&&(w=a||Math.abs(x-B)/Math.abs(m-y)),b=(p-x)/w+m,v=A["plot"+(t?"Width":"Height")]/w};var v,b,w=a||1,x=r[0][h],B=!g&&r[1][h];if(e(),(r=b)<d.min){r=d.min;var C=!0}else r+v>d.max&&(r=d.max-v,C=!0);C?(x-=.8*(x-s[l][0]),"number"==typeof B&&(B-=.8*(B-s[l][1])),e()):s[l]=[x,B],f||(o[l]=b-p,o[u]=v),o=f?1/w:w,i[u]=v,i[l]=r,n[f?t?"scaleY":"scaleX":"scale"+c]=w,n["translate"+c]=o*p+(x-o*m)},t.prototype.reset=function(t,e){var r=this.chart,n=r.hoverSeries,i=r.hoverPoint,o=r.hoverPoints,s=r.tooltip,a=s&&s.shared?o:i;t&&a&&v(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?s&&a&&v(a).length&&(s.refresh(a),s.shared&&o?o.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):i&&(i.setState(i.state,!0),r.axes.forEach(function(t){t.crosshair&&i.series[t.coll]===t&&t.drawCrosshair(null,i)}))):(i&&i.onMouseOut(),o&&o.forEach(function(t){t.setState()}),n&&n.onMouseOut(),s&&s.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),r.axes.forEach(function(t){t.hideCrosshair()}),this.hoverX=r.hoverPoints=r.hoverPoint=null)},t.prototype.runPointActions=function(e,r,n){var i=this.chart,s=i.tooltip&&i.tooltip.options.enabled?i.tooltip:void 0,A=!!s&&s.shared,l=r||i.hoverPoint,c=l&&l.series||i.hoverSeries;r=this.getHoverData(l,c,i.series,(!e||"touchmove"!==e.type)&&(!!r||c&&c.directTouch&&this.isDirectTouch),A,e),l=r.hoverPoint,c=r.hoverSeries;var h=r.hoverPoints;r=c&&c.tooltipOptions.followPointer&&!c.tooltipOptions.split;var p=A&&c&&!c.noSharedTooltip;if(l&&(n||l!==i.hoverPoint||s&&s.isHidden)){if((i.hoverPoints||[]).forEach(function(t){-1===h.indexOf(t)&&t.setState()}),i.hoverSeries!==c&&c.onMouseOver(),this.applyInactiveState(h),(h||[]).forEach(function(t){t.setState("hover")}),i.hoverPoint&&i.hoverPoint.firePointEvent("mouseOut"),!l.series)return;i.hoverPoints=h,i.hoverPoint=l,l.firePointEvent("mouseOver",void 0,function(){s&&l&&s.refresh(p?h:l,e)})}else r&&s&&!s.isHidden&&(n=s.getAnchor([{}],e),i.isInsidePlot(n[0],n[1],{visiblePlotOnly:!0})&&s.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(i.container.ownerDocument,"mousemove",function(e){var r=o[t.hoverChartIndex];r&&r.pointer.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),i.axes.forEach(function(t){var r,n=y((t.crosshair||{}).snap,!0);n&&((r=i.hoverPoint)&&r.series[t.coll]===t||(r=u(h,function(e){return e.series&&e.series[t.coll]===t}))),r||!n?t.drawCrosshair(e,r):t.hideCrosshair()})},t.prototype.scaleGroups=function(t,e){var r=this.chart;r.series.forEach(function(n){var i=t||n.getPlotBox();n.group&&(n.xAxis&&n.xAxis.zoomEnabled||r.mapView)&&(n.group.attr(i),n.markerGroup&&(n.markerGroup.attr(i),n.markerGroup.clip(e?r.clipRect:null)),n.dataLabelsGroup&&n.dataLabelsGroup.attr(i))}),r.clipRect.attr(e||r.clipBox)},t.prototype.setDOMEvents=function(){var r=this,n=this.chart.container,i=n.ownerDocument;n.onmousedown=this.onContainerMouseDown.bind(this),n.onmousemove=this.onContainerMouseMove.bind(this),n.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(a(n,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(a(n,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=a(i,"mouseup",this.onDocumentMouseUp.bind(this)));for(var o=this.chart.renderTo.parentElement;o&&"BODY"!==o.tagName;)this.eventsToUnbind.push(a(o,"scroll",function(){delete r.chartPosition})),o=o.parentElement;e.hasTouch&&(this.eventsToUnbind.push(a(n,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(a(n,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=a(i,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var r=this.chart,n=e.charts[y(t.hoverChartIndex,-1)];n&&n!==r&&n.pointer.onContainerMouseLeave({relatedTarget:r.container}),n&&n.mouseIsDown||(t.hoverChartIndex=r.index)},t.prototype.touch=function(t,e){var r=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),r.isInsidePlot(t.chartX-r.plotLeft,t.chartY-r.plotTop,{visiblePlotOnly:!0})&&!r.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var n=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));y(n,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zooming.singleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,r=e.options.chart;e=e.inverted;var n=r.zooming.type||"";/touch/.test(t.type)&&(n=y(r.zooming.pinchType,n)),this.zoomX=t=/x/.test(n),this.zoomY=r=/y/.test(n),this.zoomHor=t&&!e||r&&e,this.zoomVert=r&&!e||t&&e,this.hasZoom=t||r},t}(),t}),e(r,"Core/MSPointer.js",[r["Core/Globals.js"],r["Core/Pointer.js"],r["Core/Utilities.js"]],function(t,e,r){function n(){var t=[];return t.item=function(t){return this[t]},u(d,function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),t}function i(t,r,i,o){var a=s[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!a||(a=a.pointer,o(t),a[r]({type:i,target:t.currentTarget,preventDefault:A,touches:n()}))}var o=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=t.charts,a=t.doc,A=t.noop,l=t.win,c=r.addEvent,h=r.css,u=r.objectEach,p=r.pick,f=r.removeEvent,d={},g=!!l.PointerEvent;return function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return o(r,e),r.isRequired=function(){return!(t.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)},r.prototype.batchMSEvents=function(t){t(this.chart.container,g?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,g?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,g?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},r.prototype.destroy=function(){this.batchMSEvents(f),e.prototype.destroy.call(this)},r.prototype.init=function(t,r){e.prototype.init.call(this,t,r),this.hasZoom&&h(t.container,{"-ms-touch-action":"none","touch-action":"none"})},r.prototype.onContainerPointerDown=function(t){i(t,"onContainerTouchStart","touchstart",function(t){d[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},r.prototype.onContainerPointerMove=function(t){i(t,"onContainerTouchMove","touchmove",function(t){d[t.pointerId]={pageX:t.pageX,pageY:t.pageY},d[t.pointerId].target||(d[t.pointerId].target=t.currentTarget)})},r.prototype.onDocumentPointerUp=function(t){i(t,"onDocumentTouchEnd","touchend",function(t){delete d[t.pointerId]})},r.prototype.setDOMEvents=function(){var t=this.chart.tooltip;e.prototype.setDOMEvents.call(this),(this.hasZoom||p(t&&t.options.followTouchMove,!0))&&this.batchMSEvents(c)},r}(e)}),e(r,"Core/Legend/Legend.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/FormatUtilities.js"],r["Core/Globals.js"],r["Core/Series/Point.js"],r["Core/Renderer/RendererUtilities.js"],r["Core/Utilities.js"]],function(t,e,r,n,i,o){var s=t.animObject,a=t.setAnimation,A=e.format,l=r.marginNames,c=i.distribute,h=o.addEvent,u=o.createElement,p=o.css,f=o.defined,d=o.discardElement,g=o.find,m=o.fireEvent,y=o.isNumber,v=o.merge,b=o.pick,w=o.relativeLength,x=o.stableSort,B=o.syncTimeout;return t=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),h(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=h(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=b(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=v(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=b(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var r=this.chart;this.setOptions(v(!0,this.options,t)),this.destroy(),r.isDirtyLegend=r.isDirtyBox=!0,b(e,!0)&&r.redraw(),m(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){var r=t.legendItem||{},n=r.group,i=r.label,o=r.line;if(r=r.symbol,n&&n[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var s=this.options;n=this.itemHiddenStyle.color,s=e?s.itemStyle.color:n;var a=e&&t.color||n,A=t.options&&t.options.marker,l={fill:a};i&&i.css({fill:s,color:s}),o&&o.attr({stroke:a}),r&&(A&&r.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=n)),r.attr(l))}m(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,r=t.legendItem||{},n=r.group,i=r.x;i=void 0===i?0:i,r=void 0===(r=r.y)?0:r;var o=this.options,s=o.symbolPadding,a=!o.rtl;o=t.checkbox,n&&n.element&&(s={translateX:a?i:this.legendWidth-i-2*s-4,translateY:r},n[f(n.translateY)?"animate":"attr"](s,void 0,function(){m(e,"afterPositionItem",{item:t})})),o&&(o.x=i,o.y=r)},t.prototype.destroyItem=function(t){for(var e=t.checkbox,r=t.legendItem||{},n=0,i=["group","label","line","symbol"];n<i.length;n++){var o=i[n];r[o]&&(r[o]=r[o].destroy())}e&&d(e),t.legendItem=void 0},t.prototype.destroy=function(){for(var t=0,e=this.getAllItems();t<e.length;t++)this.destroyItem(e[t]);for(t=0,e="clipRect up down pager nav box title group".split(" ");t<e.length;t++){var r=e[t];this[r]&&(this[r]=this[r].destroy())}this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,r=this.titleHeight;if(t){var n=t.translateY;this.allItems.forEach(function(i){var o=i.checkbox;if(o){var s=n+r+o.y+(this.scrollOffset||0)+3;p(o,{left:t.translateX+i.checkboxOffset+o.x-20+"px",top:s+"px",display:this.proximate||s>n-6&&s<n+e-6?"":"none"})}},this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,r=t.title,n=0;r.text&&(this.title||(this.title=this.chart.renderer.label(r.text,e-3,e-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(r.style),this.title.add(this.group)),r.width||this.title.css({width:this.maxLegendWidth+"px"}),n=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n},t.prototype.setText=function(t){var e=this.options;t.legendItem.label.attr({text:e.labelFormat?A(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=t.legendItem=t.legendItem||{},r=this.chart,n=r.renderer,i=this.options,o=this.symbolWidth,s=i.symbolPadding||0,a=this.itemStyle,A=this.itemHiddenStyle,l="horizontal"===i.layout?b(i.itemDistance,20):0,c=!i.rtl,h=!t.series,u=!h&&t.series.drawLegendSymbol?t.series:t,p=u.options,f=this.createCheckboxForItem&&p&&p.showCheckbox,d=i.useHTML,g=t.options.className,m=e.label;p=o+s+l+(f?20:0),m||(e.group=n.g("legend-item").addClass("highcharts-"+u.type+"-series highcharts-color-"+t.colorIndex+(g?" "+g:"")+(h?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=m=n.text("",c?o+s:-s,this.baseline||0,d),r.styledMode||m.css(v(t.visible?a:A)),m.attr({align:c?"left":"right",zIndex:2}).add(e.group),this.baseline||(this.fontMetrics=n.fontMetrics(r.styledMode?12:a.fontSize,m),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,m.attr("y",this.baseline),this.symbolHeight=i.symbolHeight||this.fontMetrics.f,i.squareSymbol&&(this.symbolWidth=b(i.symbolWidth,Math.max(this.symbolHeight,16)),p=this.symbolWidth+s+l+(f?20:0),c&&m.attr("x",this.symbolWidth+s))),u.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,m,d)),f&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!r.styledMode&&a.width||m.css({width:(i.itemWidth||this.widthOption||r.spacingBox.width)-p+"px"}),this.setText(t),r=m.getBBox(),n=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=i.itemWidth||e.labelWidth||r.width+p,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(r.height>1.5*n?r.height:n))},t.prototype.layoutItem=function(t){var e=this.options,r=this.padding,n="horizontal"===e.layout,i=t.itemHeight,o=this.itemMarginBottom,s=this.itemMarginTop,a=n?b(e.itemDistance,20):0,A=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>A?this.maxItemWidth:t.itemWidth;var l=t.legendItem||{};n&&this.itemX-r+e>A&&(this.itemX=r,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=s+this.itemY+o,this.lastLineHeight=Math.max(i,this.lastLineHeight),l.x=this.itemX,l.y=this.itemY,n?this.itemX+=e:(this.itemY+=s+i+o,this.lastLineHeight=i),this.offsetWidth=this.widthOption||Math.max((n?this.itemX-r-(t.checkbox?0:a):e)+r,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(e){var r=e&&e.options;e&&b(r.showInLegend,!f(r.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===r.legendType?e.data:e)))}),m(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var r=this.chart,n=this.options,i=this.getAlignment();i&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(o,s){o.test(i)&&!f(t[s])&&(r[l[s]]=Math.max(r[l[s]],r.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*n[s%2?"x":"y"]+b(n.margin,12)+e[s]+(r.titleOffset[s]||0)))})},t.prototype.proximatePositions=function(){var t=this.chart,e=[],r="left"===this.options.align;this.allItems.forEach(function(n){var i,o=r;if(n.yAxis){n.xAxis.options.reversed&&(o=!o),n.points&&(i=g(o?n.points:n.points.slice(0).reverse(),function(t){return y(t.plotY)})),o=this.itemMarginTop+n.legendItem.label.getBBox().height+this.itemMarginBottom;var s=n.yAxis.top-t.plotTop;n.visible?(i=i?i.plotY:n.yAxis.height,i+=s-.3*o):i=s+n.yAxis.height,e.push({target:i,size:o,item:n})}},this);for(var n,i=0,o=c(e,t.plotHeight);i<o.length;i++){var s=o[i];n=s.item.legendItem||{},y(s.pos)&&(n.y=t.plotTop-t.spacing[0]+s.pos)}},t.prototype.render=function(){var t=this.chart,e=t.renderer,r=this.options,n=this.padding,i=this.getAllItems(),o=this.group,s=this.box;this.itemX=n,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=w(r.width,t.spacingBox.width-n);var a=t.spacingBox.width-2*n-r.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(a/=2),this.maxLegendWidth=this.widthOption||a,o||(this.group=o=e.g("legend").addClass(r.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(o),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),x(i,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),r.reversed&&i.reverse(),this.allItems=i,this.display=a=!!i.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,i.forEach(this.renderItem,this),i.forEach(this.layoutItem,this),i=(this.widthOption||this.offsetWidth)+n;var A=this.lastItemY+this.lastLineHeight+this.titleHeight;A=this.handleOverflow(A),A+=n,s||(this.box=s=e.rect().addClass("highcharts-legend-box").attr({r:r.borderRadius}).add(o)),t.styledMode||s.attr({stroke:r.borderColor,"stroke-width":r.borderWidth||0,fill:r.backgroundColor||"none"}).shadow(r.shadow),0<i&&0<A&&s[s.placed?"animate":"attr"](s.crisp.call({},{x:0,y:0,width:i,height:A},s.strokeWidth())),o[a?"show":"hide"](),t.styledMode&&"none"===o.getStyle("display")&&(i=A=0),this.legendWidth=i,this.legendHeight=A,a&&this.align(),this.proximate||this.positionItems(),m(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,r=this.options,n=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?n+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(n-=e.titleOffset[2]),n!==t.y&&(t=v(t,{y:n})),e.hasRendered||(this.group.placed=!1),this.group.align(v(r,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":r.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,r,n,i=this,o=this.chart,s=o.renderer,a=this.options,A=a.y,l="top"===a.verticalAlign,c=this.padding,h=a.maxHeight,u=a.navigation,p=b(u.animation,!0),f=u.arrowSize||12,d=this.pages,g=this.allItems,m=function(t){"number"==typeof t?w.attr({height:t}):w&&(i.clipRect=w.destroy(),i.contentGroup.clip()),i.contentGroup.div&&(i.contentGroup.div.style.clip=t?"rect("+c+"px,9999px,"+(c+t)+"px,0)":"auto")},y=function(t){return i[t]=s.circle(0,0,1.3*f).translate(f/2,f/2).add(v),o.styledMode||i[t].attr("fill","rgba(0,0,0,0.0001)"),i[t]};A=o.spacingBox.height+(l?-A:A)-c;var v=this.nav,w=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(A/=2),h&&(A=Math.min(A,h)),d.length=0,t&&0<A&&t>A&&!1!==u.enabled?(this.clipHeight=e=Math.max(A-20-this.titleHeight-c,0),this.currentPage=b(this.currentPage,1),this.fullHeight=t,g.forEach(function(t,i){t=(n=t.legendItem||{}).y||0;var o=Math.round(n.label.getBBox().height),s=d.length;(!s||t-d[s-1]>e&&(r||t)!==d[s-1])&&(d.push(r||t),s++),n.pageIx=s-1,r&&((g[i-1].legendItem||{}).pageIx=s-1),i===g.length-1&&t+o-d[s-1]>e&&o<=e&&(d.push(t),n.pageIx=s),t!==r&&(r=t)}),w||(w=i.clipRect=s.clipRect(0,c,9999,0),i.contentGroup.clip(w)),m(e),v||(this.nav=v=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,f,f).add(v),y("upTracker").on("click",function(){i.scroll(-1,p)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!o.styledMode&&u.style&&this.pager.css(u.style),this.pager.add(v),this.down=s.symbol("triangle-down",0,0,f,f).add(v),y("downTracker").on("click",function(){i.scroll(1,p)})),i.scroll(0),t=A):v&&(m(),this.nav=v.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var r=this,n=this.chart,i=this.pages,o=i.length,A=this.clipHeight,l=this.options.navigation,c=this.pager,h=this.padding,u=this.currentPage+t;u>o&&(u=o),0<u&&(void 0!==e&&a(e,n),this.nav.attr({translateX:h,translateY:A+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===u?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),c.attr({text:u+"/"+o}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:u===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),n.styledMode||(this.up.attr({fill:1===u?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===u?"default":"pointer"}),this.down.attr({fill:u===o?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:u===o?"default":"pointer"})),this.scrollOffset=-i[u-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=u,this.positionCheckboxes(),t=s(b(e,n.renderer.globalAnimation,!0)),B(function(){m(r,"afterScroll",{currentPage:u})},t.duration))},t.prototype.setItemEvents=function(t,e,r){var i=this,o=t.legendItem||{},s=i.chart.renderer.boxWrapper,a=t instanceof n,A="highcharts-legend-"+(a?"point":"series")+"-active",l=i.chart.styledMode,c=function(e){i.allItems.forEach(function(r){t!==r&&[r].concat(r.linkedSeries||[]).forEach(function(t){t.setState(e,!a)})})},h=0;for(r=r?[e,o.symbol]:[o.group];h<r.length;h++)(o=r[h])&&o.on("mouseover",function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&s.addClass(A),l||e.css(i.options.itemHoverStyle)}).on("mouseout",function(){i.chart.styledMode||e.css(v(t.visible?i.itemStyle:i.itemHiddenStyle)),c(""),s.removeClass(A),t.setState()}).on("click",function(e){var r=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};s.removeClass(A),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,r):m(t,"legendItemClick",e,r)})},t.prototype.createCheckboxForItem=function(t){t.checkbox=u("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),h(t.checkbox,"click",function(e){m(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})},t}(),t}),e(r,"Core/Series/SeriesRegistry.js",[r["Core/Globals.js"],r["Core/Defaults.js"],r["Core/Series/Point.js"],r["Core/Utilities.js"]],function(t,e,r,n){var i,o=e.defaultOptions,s=n.extendClass,a=n.merge;return function(e){function n(t,n){var i=o.plotOptions||{},s=n.defaultOptions,a=n.prototype;a.type=t,a.pointClass||(a.pointClass=r),s&&(i[t]=s),e.seriesTypes[t]=n}e.seriesTypes=t.seriesTypes,e.registerSeriesType=n,e.seriesType=function(t,i,A,l,c){var h=o.plotOptions||{};return i=i||"",h[t]=a(h[i],A),n(t,s(e.seriesTypes[i]||function(){},l)),e.seriesTypes[t].prototype.type=t,c&&(e.seriesTypes[t].prototype.pointClass=s(r,c)),e.seriesTypes[t]}}(i||(i={})),i}),e(r,"Core/Chart/Chart.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Axis/Axis.js"],r["Core/Defaults.js"],r["Core/FormatUtilities.js"],r["Core/Foundation.js"],r["Core/Globals.js"],r["Core/Legend/Legend.js"],r["Core/MSPointer.js"],r["Core/Pointer.js"],r["Core/Renderer/RendererRegistry.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Renderer/SVG/SVGRenderer.js"],r["Core/Time.js"],r["Core/Utilities.js"],r["Core/Renderer/HTML/AST.js"]],function(t,e,r,n,i,o,s,a,A,l,c,h,u,p,f){var d=t.animate,g=t.animObject,m=t.setAnimation,y=r.defaultOptions,v=r.defaultTime,b=n.numberFormat,w=i.registerEventOptions,x=o.charts,B=o.doc,C=o.marginNames,_=o.svg,E=o.win,S=c.seriesTypes,I=p.addEvent,F=p.attr,T=p.cleanRecursively,k=p.createElement,L=p.css,P=p.defined,M=p.discardElement,D=p.erase,N=p.error,O=p.extend,U=p.find,Q=p.fireEvent,R=p.getStyle,j=p.isArray,H=p.isNumber,V=p.isObject,z=p.isString,G=p.merge,K=p.objectEach,q=p.pick,W=p.pInt,Y=p.relativeLength,X=p.removeEvent,J=p.splat,Z=p.syncTimeout,$=p.uniqueKey;return t=function(){function t(t,e,r){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(t,e,r)}return t.chart=function(e,r,n){return new t(e,r,n)},t.prototype.getArgs=function(t,e,r){z(t)||t.nodeName?(this.renderTo=t,this.init(e,r)):this.init(t,e)},t.prototype.init=function(t,e){var r=t.plotOptions||{};Q(this,"init",{args:arguments},function(){var n=G(y,t),i=n.chart;K(n.plotOptions,function(t,e){V(t)&&(t.tooltip=r[e]&&G(r[e].tooltip)||void 0)}),n.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,this.userOptions=t,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0;var s=i.zooming=i.zooming||{};t.chart&&!t.chart.zooming&&(s.resetButton=i.resetZoomButton),s.key=q(s.key,i.zoomKey),s.pinchType=q(s.pinchType,i.pinchType),s.singleTouch=q(s.singleTouch,i.zoomBySingleTouch),s.type=q(s.type,i.zoomType),this.options=n,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new u(t.time):o.time,this.numberFormatter=i.numberFormatter||b,this.styledMode=i.styledMode,this.hasCartesianSeries=i.showAxes,this.index=x.length,x.push(this),o.chartCount++,w(this,i),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,Q(this,"afterInit"),this.firstRender()})},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var r=S[e];return r||N(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new r).init&&e.init(this,t),e},t.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})},t.prototype.orderSeries=function(t){var e=this.series;t=t||0;for(var r=e.length;t<r;++t)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,r){void 0===r&&(r={});var n=this.inverted,i=this.plotBox,o=this.plotLeft,s=this.plotTop,a=this.scrollablePlotBox,A=0,l=0;r.visiblePlotOnly&&this.scrollingContainer&&(A=(l=this.scrollingContainer).scrollLeft,l=l.scrollTop);var c=r.series;if(i=r.visiblePlotOnly&&a||i,t={x:a=r.inverted?e:t,y:e=r.inverted?t:e,isInsidePlot:!0,options:r},!r.ignoreX){var h=c&&(n&&!this.polar?c.yAxis:c.xAxis)||{pos:o,len:1/0};(a=r.paneCoordinates?h.pos+a:o+a)>=Math.max(A+o,h.pos)&&a<=Math.min(A+o+i.width,h.pos+h.len)||(t.isInsidePlot=!1)}return!r.ignoreY&&t.isInsidePlot&&(n=r.axis&&!r.axis.isXAxis&&r.axis||c&&(n?c.xAxis:c.yAxis)||{pos:s,len:1/0},(r=r.paneCoordinates?n.pos+e:s+e)>=Math.max(l+s,n.pos)&&r<=Math.min(l+s+i.height,n.pos+n.len)||(t.isInsidePlot=!1)),Q(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){Q(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],r=this.series,n=this.pointer,i=this.legend,o=this.userOptions.legend,s=this.renderer,a=s.isHidden(),A=[],l=this.isDirtyBox,c=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),m(!!this.hasRendered&&t,this),a&&this.temporaryDisplay(),this.layOutTitles(),t=r.length;t--;){var h=r[t];if(h.options.stacking||h.options.centerInCategory){var u=!0;if(h.isDirty){var p=!0;break}}}if(p)for(t=r.length;t--;)(h=r[t]).options.stacking&&(h.isDirty=!0);r.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),c=!0):o&&(o.labelFormatter||o.labelFormat)&&(c=!0)),t.isDirtyData&&Q(t,"updatedData")}),c&&i&&i.options.enabled&&(i.render(),this.isDirtyLegend=!1),u&&this.getStacks(),e.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),e.forEach(function(t){t.isDirty&&(l=!0)}),e.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,A.push(function(){Q(t,"afterSetExtremes",O(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(l||u)&&t.redraw()}),l&&this.drawChartBox(),Q(this,"predraw"),r.forEach(function(t){(l||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),n&&n.reset(!0),s.draw(),Q(this,"redraw"),Q(this,"render"),a&&this.temporaryDisplay(!0),A.forEach(function(t){t.call()})},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var r=this.series,n=U(this.axes,e)||U(this.series,e),i=0;!n&&i<r.length;i++)n=U(r[i].points||[],e);return n},t.prototype.getAxes=function(){var t=this,r=this.options,n=r.xAxis=J(r.xAxis||{});r=r.yAxis=J(r.yAxis||{}),Q(this,"getAxes"),n.forEach(function(t,e){t.index=e,t.isX=!0}),r.forEach(function(t,e){t.index=e}),n.concat(r).forEach(function(r){new e(t,r)}),Q(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce(function(t,e){return e.getPointsCollection().forEach(function(e){q(e.selectedStaging,e.selected)&&t.push(e)}),t},[])},t.prototype.getSelectedSeries=function(){return this.series.filter(function(t){return t.selected})},t.prototype.setTitle=function(t,e,r){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(r)},t.prototype.applyDescription=function(t,e){var r=this,n="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};n=this.options[t]=G(!this.styledMode&&{style:n},this.options[t],e);var i=this[t];i&&e&&(this[t]=i=i.destroy()),n&&!i&&((i=this.renderer.text(n.text,0,0,n.useHTML).attr({align:n.align,class:"highcharts-"+t,zIndex:n.zIndex||4}).add()).update=function(e){r[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||i.css(n.style),this[t]=i)},t.prototype.layOutTitles=function(t){var e=[0,0,0],r=this.renderer,n=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var i,o=this[t],s=this.options[t],a=s.verticalAlign||"top";if(t="title"===t?"top"===a?-3:0:"top"===a?e[0]+2:0,o){this.styledMode||(i=s.style&&s.style.fontSize),i=r.fontMetrics(i,o).b,o.css({width:(s.width||n.width+(s.widthAdjust||0))+"px"});var A=Math.round(o.getBBox(s.useHTML).height);o.align(O({y:"bottom"===a?i:t+i,height:A},s),!1,"spacingBox"),s.floating||("top"===a?e[0]=Math.ceil(e[0]+A):"bottom"===a&&(e[2]=Math.ceil(e[2]+A)))}},this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var i=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,Q(this,"afterLayOutTitles"),!this.isDirtyBox&&i&&(this.isDirtyBox=this.isDirtyLegend=i,this.hasRendered&&q(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var r=this.renderTo;P(e)||(this.containerWidth=R(r,"width")),P(t)||(this.containerHeight=R(r,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,Y(t,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},t.prototype.temporaryDisplay=function(t){var e=this.renderTo;if(t)for(;e&&e.style;)e.hcOrigStyle&&(L(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(B.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(B.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,B.body.appendChild(e)),("none"===R(e,"display",!1)||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},t={display:"block",overflow:"hidden"},e!==this.renderTo&&(t.height=0),L(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==B.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e=this.options,r=e.chart,n=$(),i=this.renderTo;i||(this.renderTo=i=r.renderTo),z(i)&&(this.renderTo=i=B.getElementById(i)),i||N(13,!0,this);var o=W(F(i,"data-highcharts-chart"));H(o)&&x[o]&&x[o].hasRendered&&x[o].destroy(),F(i,"data-highcharts-chart",this.index),i.innerHTML=f.emptyHTML,r.skipClone||i.offsetWidth||this.temporaryDisplay(),this.getChartSize(),o=this.chartWidth;var s=this.chartHeight;if(L(i,{overflow:"hidden"}),this.styledMode||(t=O({position:"relative",overflow:"hidden",width:o+"px",height:s+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},r.style||{})),this.container=n=k("div",{id:n},t,i),this._cursor=n.style.cursor,this.renderer=new(r.renderer||!_?l.getRendererType(r.renderer):h)(n,o,s,void 0,r.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),m(void 0,this),this.setClassName(r.className),this.styledMode)for(var a in e.defs)this.renderer.definition(e.defs[a]);else this.renderer.setStyle(r.style);this.renderer.chartIndex=this.index,Q(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,r=this.margin,n=this.titleOffset;this.resetMargins(),n[0]&&!P(r[0])&&(this.plotTop=Math.max(this.plotTop,n[0]+e[0])),n[2]&&!P(r[2])&&(this.marginBottom=Math.max(this.marginBottom,n[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(r,e),Q(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],r=t.colorAxis,n=t.margin,i=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?i(t.axes):r&&r.length&&i(r),C.forEach(function(r,i){P(n[i])||(t[r]+=e[i])}),t.setChartSize()},t.prototype.reflow=function(t){var e=this,r=e.options.chart,n=e.renderTo,i=P(r.width)&&P(r.height),o=r.width||R(n,"width");r=r.height||R(n,"height"),n=t?t.target:E,delete e.pointer.chartPosition,i||e.isPrinting||!o||!r||n!==E&&n!==B||(o===e.containerWidth&&r===e.containerHeight||(p.clearTimeout(e.reflowTimeout),e.reflowTimeout=Z(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerWidth=o,e.containerHeight=r)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=I(E,"resize",function(t){e.options&&e.reflow(t)}),I(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,r){var n=this,i=n.renderer;n.isResizing+=1,m(r,n),r=i.globalAnimation,n.oldChartHeight=n.chartHeight,n.oldChartWidth=n.chartWidth,void 0!==t&&(n.options.chart.width=t),void 0!==e&&(n.options.chart.height=e),n.getChartSize(),n.styledMode||(r?d:L)(n.container,{width:n.chartWidth+"px",height:n.chartHeight+"px"},r),n.setChartSize(!0),i.setSize(n.chartWidth,n.chartHeight,r),n.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),n.isDirtyLegend=!0,n.isDirtyBox=!0,n.layOutTitles(),n.getMargins(),n.redraw(r),n.oldChartHeight=null,Q(n,"resize"),Z(function(){n&&Q(n,"endResize",null,function(){--n.isResizing})},g(r).duration)},t.prototype.setChartSize=function(t){var e,r,n,i,o=this.inverted,s=this.renderer,a=this.chartWidth,A=this.chartHeight,l=this.options.chart,c=this.spacing,h=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=r=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=i=Math.max(0,Math.round(A-r-this.marginBottom)),this.plotSizeX=o?i:n,this.plotSizeY=o?n:i,this.plotBorderWidth=l.plotBorderWidth||0,this.spacingBox=s.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:A-c[0]-c[2]},this.plotBox=s.plotBox={x:e,y:r,width:n,height:i},o=2*Math.floor(this.plotBorderWidth/2),a=Math.ceil(Math.max(o,h[3])/2),A=Math.ceil(Math.max(o,h[0])/2),this.clipBox={x:a,y:A,width:Math.floor(this.plotSizeX-Math.max(o,h[1])/2-a),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(o,h[2])/2-A))},t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),s.alignElements()),Q(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){Q(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach(function(r){var n=e[r],i=V(n)?n:[n,n,n,n];["Top","Right","Bottom","Left"].forEach(function(n,o){t[r][o]=q(e[r+n],i[o])})}),C.forEach(function(e,r){t[e]=q(t.margin[r],t.spacing[r])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,r=this.renderer,n=this.chartWidth,i=this.chartHeight,o=this.styledMode,s=this.plotBGImage,a=e.backgroundColor,A=e.plotBackgroundColor,l=e.plotBackgroundImage,c=this.plotLeft,h=this.plotTop,u=this.plotWidth,p=this.plotHeight,f=this.plotBox,d=this.clipRect,g=this.clipBox,m=this.chartBackground,y=this.plotBackground,v=this.plotBorder,b="animate";if(m||(this.chartBackground=m=r.rect().addClass("highcharts-background").add(),b="attr"),o)var w=t=m.strokeWidth();else t=(w=e.borderWidth||0)+(e.shadow?8:0),a={fill:a||"none"},(w||m["stroke-width"])&&(a.stroke=e.borderColor,a["stroke-width"]=w),m.attr(a).shadow(e.shadow);m[b]({x:t/2,y:t/2,width:n-t-w%2,height:i-t-w%2,r:e.borderRadius}),b="animate",y||(b="attr",this.plotBackground=y=r.rect().addClass("highcharts-plot-background").add()),y[b](f),o||(y.attr({fill:A||"none"}).shadow(e.plotShadow),l&&(s?(l!==s.attr("href")&&s.attr("href",l),s.animate(f)):this.plotBGImage=r.image(l,c,h,u,p).add())),d?d.animate({width:g.width,height:g.height}):this.clipRect=r.clipRect(g),b="animate",v||(b="attr",this.plotBorder=v=r.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),o||v.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),v[b](v.crisp({x:c,y:h,width:u,height:p},-v.strokeWidth())),this.isDirtyBox=!1,Q(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,r,n=this,i=n.options.chart,o=n.options.series;["inverted","angular","polar"].forEach(function(s){for(e=S[i.type||i.defaultSeriesType],r=i[s]||e&&e.prototype[s],t=o&&o.length;!r&&t--;)(e=S[o[t].type])&&e.prototype[s]&&(r=!0);n[s]=r})},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach(function(t){t.linkedSeries.length=0}),e.forEach(function(e){var r=e.options.linkedTo;z(r)&&(r=":previous"===r?t.series[e.index-1]:t.get(r))&&r.linkedParent!==e&&(r.linkedSeries.push(e),e.linkedParent=r,r.enabledDataSorting&&e.setDataSortingOptions(),e.visible=q(e.options.visible,r.options.visible,e.visible))}),Q(this,"afterLinkSeries")},t.prototype.renderSeries=function(){this.series.forEach(function(t){t.translate(),t.render()})},t.prototype.renderLabels=function(){var t=this,e=t.options.labels;e.items&&e.items.forEach(function(r){var n=O(e.style,r.style),i=W(n.left)+t.plotLeft,o=W(n.top)+t.plotTop+12;delete n.left,delete n.top,t.renderer.text(r.html,i,o).attr({zIndex:2}).css(n).add()})},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,r=this.renderer,n=this.options,i=function(t){t.forEach(function(t){t.visible&&t.render()})},o=0;this.setTitle(),this.legend=new s(this,n.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),n=this.plotWidth,t.some(function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return o=21,!0});var a=this.plotHeight=Math.max(this.plotHeight-o,0);t.forEach(function(t){t.setScale()}),this.getAxisMargins();var A=1.1<n/this.plotWidth,l=1.05<a/this.plotHeight;(A||l)&&(t.forEach(function(t){(t.horiz&&A||!t.horiz&&l)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?i(t):e&&e.length&&i(e),this.seriesGroup||(this.seriesGroup=r.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,r=G(!0,this.options.credits,t);r.enabled&&!this.credits&&(this.credits=this.renderer.text(r.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){r.href&&(E.location.href=r.href)}).attr({align:r.position.align,zIndex:8}),e.styledMode||this.credits.css(r.style),this.credits.add().align(r.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,r=e.axes,n=e.series,i=e.container,s=i&&i.parentNode;for(Q(e,"destroy"),e.renderer.forExport?D(x,e):x[e.index]=void 0,o.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),X(e),t=r.length;t--;)r[t]=r[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=n.length;t--;)n[t]=n[t].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(t){var r=e[t];r&&r.destroy&&(e[t]=r.destroy())}),i&&(i.innerHTML=f.emptyHTML,X(i),s&&M(i)),K(e,function(t,r){delete e[r]})},t.prototype.firstRender=function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(j(e.series)?e.series:[]).forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSeriesData(),Q(t,"beforeRender"),A&&(a.isRequired()?t.pointer=new a(t,e):t.pointer=new A(t,e)),t.render(),t.pointer.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0))},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),Q(this,"load"),Q(this,"render"),P(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},t.prototype.warnIfA11yModuleNotLoaded=function(){var t=this.options,e=this.title;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(e&&e.element.textContent||"").replace(/</g,"&lt;")}),t.accessibility&&!1===t.accessibility.enabled||N('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},t.prototype.addSeries=function(t,e,r){var n,i=this;return t&&(e=q(e,!0),Q(i,"addSeries",{options:t},function(){n=i.initSeries(t),i.isDirtyLegend=!0,i.linkSeries(),n.enabledDataSorting&&n.setData(t.data,!1),Q(i,"afterAddSeries",{series:n}),e&&i.redraw(r)})),n},t.prototype.addAxis=function(t,e,r,n){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:r,animation:n})},t.prototype.addColorAxis=function(t,e,r){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:r})},t.prototype.createAxis=function(t,r){return t=new e(this,G(r.axis,{index:this[t].length,isX:"xAxis"===t})),q(r.redraw,!0)&&this.redraw(r.animation),t},t.prototype.showLoading=function(t){var e=this,r=e.options,n=r.loading,i=function(){o&&L(o,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},o=e.loadingDiv,s=e.loadingSpan;o||(e.loadingDiv=o=k("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),s||(e.loadingSpan=s=k("span",{className:"highcharts-loading-inner"},null,o),I(e,"redraw",i)),o.className="highcharts-loading",f.setElementHTML(s,q(t,r.lang.loading,"")),e.styledMode||(L(o,O(n.style,{zIndex:10})),L(s,n.labelStyle),e.loadingShown||(L(o,{opacity:0,display:""}),d(o,{opacity:n.style.opacity||.5},{duration:n.showDuration||0}))),e.loadingShown=!0,i()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||d(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){L(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,r,n){var i,o,s=this,a={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},A=t.isResponsiveOptions,l=[];Q(s,"update",{options:t}),A||s.setResponsive(!1,!0),t=T(t,s.options),s.userOptions=G(s.userOptions,t);var c=t.chart;if(c){if(G(!0,s.options.chart,c),"className"in c&&s.setClassName(c.className),"reflow"in c&&s.setReflow(c.reflow),"inverted"in c||"polar"in c||"type"in c){s.propFromSeries();var h=!0}"alignTicks"in c&&(h=!0),"events"in c&&w(this,c),K(c,function(t,e){-1!==s.propsRequireUpdateSeries.indexOf("chart."+e)&&(i=!0),-1!==s.propsRequireDirtyBox.indexOf(e)&&(s.isDirtyBox=!0),-1!==s.propsRequireReflow.indexOf(e)&&(A?s.isDirtyBox=!0:o=!0)}),!s.styledMode&&c.style&&s.renderer.setStyle(s.options.chart.style||{})}!s.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===v&&(this.time=new u(t.time)),G(!0,s.options.time,t.time)),K(t,function(e,r){s[r]&&"function"==typeof s[r].update?s[r].update(e,!1):"function"==typeof s[a[r]]?s[a[r]](e):"colors"!==r&&-1===s.collectionsWithUpdate.indexOf(r)&&G(!0,s.options[r],t[r]),"chart"!==r&&-1!==s.propsRequireUpdateSeries.indexOf(r)&&(i=!0)}),this.collectionsWithUpdate.forEach(function(e){if(t[e]){var n=[];s[e].forEach(function(t,e){t.options.isInternal||n.push(q(t.options.index,e))}),J(t[e]).forEach(function(t,i){var o,a=P(t.id);a&&(o=s.get(t.id)),!o&&s[e]&&(o=s[e][n?n[i]:i])&&a&&P(o.options.id)&&(o=void 0),o&&o.coll===e&&(o.update(t,!1),r&&(o.touched=!0)),!o&&r&&s.collectionsWithInit[e]&&(s.collectionsWithInit[e][0].apply(s,[t].concat(s.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),r&&s[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:l.push(t)})}}),l.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),h&&s.axes.forEach(function(t){t.update({},!1)}),i&&s.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this),h=c&&c.width,c=c&&(z(c.height)?Y(c.height,h||s.chartWidth):c.height),o||H(h)&&h!==s.chartWidth||H(c)&&c!==s.chartHeight?s.setSize(h,c,n):q(e,!0)&&s.redraw(n),Q(s,"afterUpdate",{options:t,redraw:e,animation:n})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){function t(){e.zoomOut()}var e=this,r=y.lang,n=e.options.chart.zooming.resetButton,i=n.theme,o="chart"===n.relativeTo||"spacingBox"===n.relativeTo?null:"scrollablePlotBox";Q(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(r.resetZoom,null,null,t,i).attr({align:n.position.align,title:r.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,o)}),Q(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){Q(this,"selection",{resetSelection:!0},this.zoom)},t.prototype.zoom=function(t){var e,r=this,n=r.pointer,i=!1;!t||t.resetSelection?(r.axes.forEach(function(t){e=t.zoom()}),n.initiated=!1):t.xAxis.concat(t.yAxis).forEach(function(t){var o=t.axis;(n[o.isXAxis?"zoomX":"zoomY"]&&P(n.mouseDownX)&&P(n.mouseDownY)&&r.isInsidePlot(n.mouseDownX-r.plotLeft,n.mouseDownY-r.plotTop,{axis:o})||!P(r.inverted?n.mouseDownX:n.mouseDownY))&&(e=o.zoom(t.min,t.max),o.displayBtn&&(i=!0))});var o=r.resetZoomButton;i&&!o?r.showResetZoom():!i&&V(o)&&(r.resetZoomButton=o.destroy()),e&&r.redraw(q(r.options.chart.animation,t&&t.animation,100>r.pointCount))},t.prototype.pan=function(t,e){var r=this,n=r.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var i=r.options.chart;i&&i.panning&&(i.panning=e);var o,s=e.type;Q(this,"pan",{originalEvent:t},function(){n&&n.forEach(function(t){t.setState()});var e=r.xAxis;"xy"===s?e=e.concat(r.yAxis):"y"===s&&(e=r.yAxis);var i={};e.forEach(function(e){if(e.options.panningEnabled&&!e.options.isInternal){var n=e.horiz,a=t[n?"chartX":"chartY"],A=r[n=n?"mouseDownX":"mouseDownY"],l=e.minPointOffset||0,c=e.reversed&&!r.inverted||!e.reversed&&r.inverted?-1:1,h=e.getExtremes(),u=e.toValue(A-a,!0)+l*c,p=e.toValue(A+e.len-a,!0)-(l*c||e.isXAxis&&e.pointRangePadding||0),f=p<u;c=e.hasVerticalPanning(),A=f?p:u,u=f?u:p;var d=e.panningState;!c||e.isXAxis||d&&!d.isDirty||e.series.forEach(function(t){var e=t.getProcessedData(!0);e=t.getExtremes(e.yData,!0),d||(d={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),H(e.dataMin)&&H(e.dataMax)&&(d.startMin=Math.min(q(t.options.threshold,1/0),e.dataMin,d.startMin),d.startMax=Math.max(q(t.options.threshold,-1/0),e.dataMax,d.startMax))}),c=Math.min(q(d&&d.startMin,h.dataMin),l?h.min:e.toValue(e.toPixels(h.min)-e.minPixelPadding)),p=Math.max(q(d&&d.startMax,h.dataMax),l?h.max:e.toValue(e.toPixels(h.max)+e.minPixelPadding)),e.panningState=d,e.isOrdinal||(0<(l=c-A)&&(u+=l,A=c),0<(l=u-p)&&(u=p,A-=l),e.series.length&&A!==h.min&&u!==h.max&&A>=c&&u<=p&&(e.setExtremes(A,u,!1,!1,{trigger:"pan"}),!r.resetZoomButton&&A!==c&&u!==p&&s.match("y")&&(r.showResetZoom(),e.displayBtn=!1),o=!0),i[n]=a)}}),K(i,function(t,e){r[e]=t}),o&&r.redraw(!1),L(r.container,{cursor:"move"})})},t}(),O(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),t}),e(r,"Core/Legend/LegendSymbol.js",[r["Core/Utilities.js"]],function(t){var e,r=t.extend,n=t.merge,i=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.legendItem=this.legendItem||{},o=this.options,s=t.symbolWidth,a=t.symbolHeight,A=a/2,l=this.chart.renderer,c=e.group;t=t.baseline-Math.round(.3*t.fontMetrics.b);var h={},u=o.marker,p=0;this.chart.styledMode||(h={"stroke-width":Math.min(o.lineWidth||0,24)},o.dashStyle?h.dashstyle=o.dashStyle:"square"!==o.linecap&&(h["stroke-linecap"]="round")),e.line=l.path().addClass("highcharts-graph").attr(h).add(c),h["stroke-linecap"]&&(p=Math.min(e.line.strokeWidth(),s)/2),e.line.attr({d:[["M",p,t],["L",s-p,t]]}),u&&!1!==u.enabled&&s&&(o=Math.min(i(u.radius,A),A),0===this.symbol.indexOf("url")&&(u=n(u,{width:a,height:a}),o=0),e.symbol=e=l.symbol(this.symbol,s/2-o,t-o,2*o,2*o,r({context:"legend"},u)).addClass("highcharts-point").add(c),e.isMarker=!0)},t.drawRectangle=function(t,e){e=e.legendItem||{};var r=t.symbolHeight,n=t.options.squareSymbol;e.symbol=this.chart.renderer.rect(n?(t.symbolWidth-r)/2:0,t.baseline-r+1,n?r:t.symbolWidth,r,i(t.options.symbolRadius,r/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.group)}}(e||(e={})),e}),e(r,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),e(r,"Core/Series/Series.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Defaults.js"],r["Core/Foundation.js"],r["Core/Globals.js"],r["Core/Legend/LegendSymbol.js"],r["Core/Series/Point.js"],r["Core/Series/SeriesDefaults.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Renderer/SVG/SVGElement.js"],r["Core/Utilities.js"]],function(t,e,r,n,i,o,s,a,A,l){var c=t.animObject,h=t.setAnimation,u=e.defaultOptions,p=r.registerEventOptions,f=n.hasTouch,d=n.svg,g=n.win,m=a.seriesTypes,y=l.arrayMax,v=l.arrayMin,b=l.clamp,w=l.cleanRecursively,x=l.correctFloat,B=l.defined,C=l.erase,_=l.error,E=l.extend,S=l.find,I=l.fireEvent,F=l.getNestedProperty,T=l.isArray,k=l.isNumber,L=l.isString,P=l.merge,M=l.objectEach,D=l.pick,N=l.removeEvent,O=l.splat,U=l.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){I(this,"init",{options:e});var r=this,n=t.series;this.eventsToUnbind=[],r.chart=t,r.options=r.setOptions(e),e=r.options,r.linkedSeries=[],r.bindAxes(),E(r,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),p(this,e);var i,o=e.events;(o&&o.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),r.getColor(),r.getSymbol(),r.parallelArrays.forEach(function(t){r[t+"Data"]||(r[t+"Data"]=[])}),r.isCartesian&&(t.hasCartesianSeries=!0),n.length&&(i=n[n.length-1]),r._i=D(i&&i._i,-1)+1,r.opacity=r.options.opacity,t.orderSeries(this.insert(n)),e.dataSorting&&e.dataSorting.enabled?r.setDataSortingOptions():r.points||r.data||r.setData(e.data,!1),I(this,"afterInit")},t.prototype.is=function(t){return m[t]&&this instanceof m[t]},t.prototype.insert=function(t){var e,r=this.options.index;if(k(r)){for(e=t.length;e--;)if(r>=D(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return D(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,r=e.options,n=e.chart;I(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(i){var o=0;n[i].forEach(function(n){t=n.options,(r[i]===o&&!t.isInternal||void 0!==r[i]&&r[i]===t.id||void 0===r[i]&&0===t.index)&&(e.insert(n.series),e[i]=n,n.isDirty=!0),t.isInternal||o++}),e[i]||e.optionalAxis===i||_(18,!0,n)})}),I(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var r=t.series,n=arguments,i=k(e)?function(n){var i="y"===n&&r.toYData?r.toYData(t):t[n];r[n+"Data"][e]=i}:function(t){Array.prototype[e].apply(r[t+"Data"],Array.prototype.slice.call(n,2))};r.parallelArrays.forEach(i)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},t.prototype.autoIncrement=function(t){var e,r=this.options,n=r.pointIntervalUnit,i=r.relativeXValue,o=this.chart.time,s=this.xIncrement;return s=D(s,r.pointStart,0),this.pointInterval=e=D(this.pointInterval,r.pointInterval,1),i&&k(t)&&(e*=t),n&&(r=new o.Date(s),"day"===n?o.set("Date",r,o.get("Date",r)+e):"month"===n?o.set("Month",r,o.get("Month",r)+e):"year"===n&&o.set("FullYear",r,o.get("FullYear",r)+e),e=r.getTime()-s),i&&k(t)?s+e:(this.xIncrement=s+e,s)},t.prototype.setDataSortingOptions=function(){var t=this.options;E(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),B(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,r=e.options,n=r.plotOptions,i=e.userOptions||{};t=P(t),e=e.styledMode;var o={plotOptions:n,userOptions:t};I(this,"setOptions",o);var s=o.plotOptions[this.type],a=i.plotOptions||{};return this.userOptions=o.userOptions,i=P(s,n.series,i.plotOptions&&i.plotOptions[this.type],t),this.tooltipOptions=P(u.tooltip,u.plotOptions.series&&u.plotOptions.series.tooltip,u.plotOptions[this.type].tooltip,r.tooltip.userOptions,n.series&&n.series.tooltip,n[this.type].tooltip,t.tooltip),this.stickyTracking=D(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||i.stickyTracking),null===s.marker&&delete i.marker,this.zoneAxis=i.zoneAxis,n=this.zones=(i.zones||[]).slice(),!i.negativeColor&&!i.negativeFillColor||i.zones||(r={value:i[this.zoneAxis+"Threshold"]||i.threshold||0,className:"highcharts-negative"},e||(r.color=i.negativeColor,r.fillColor=i.negativeFillColor),n.push(r)),n.length&&B(n[n.length-1].value)&&n.push(e?{}:{color:this.color,fillColor:this.fillColor}),I(this,"afterSetOptions",{options:i}),i},t.prototype.getName=function(){return D(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,r){var n=this.chart,i=this.userOptions,o=t+"Index",s=t+"Counter",a=r?r.length:D(n.options.chart[t+"Count"],n[t+"Count"]);if(!e){var A=D(i[o],i["_"+o]);B(A)||(n.series.length||(n[s]=0),i["_"+o]=A=n[s]%a,n[s]+=1),r&&(e=r[A])}void 0!==A&&(this[o]=A),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||u.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},t.prototype.findPointIndex=function(t,e){var r,n,i=t.id,s=t.x,a=this.points,A=this.options.dataSorting;if(i)(A=this.chart.get(i))instanceof o&&(r=A);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(r=function(e){return!e.touched&&e.index===t.index},A&&A.matchByName?r=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(r=function(e){return!e.touched&&e.options.x===t.x}),!(r=S(a,r))))return;if(r){var l=r&&r.index;void 0!==l&&(n=!0)}return void 0===l&&k(s)&&(l=this.xData.indexOf(s,e)),-1!==l&&void 0!==l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!n&&k(l)&&a[l]&&a[l].touched&&(l=void 0),l},t.prototype.updateData=function(t,e){var r,n,i,o=this.options,s=o.dataSorting,a=this.points,A=[],l=this.requireSorting,c=t.length===a.length,h=!0;if(this.xIncrement=null,t.forEach(function(t,e){var n=B(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},h=n.x;n.id||k(h)?(-1===(n=this.findPointIndex(n,i))||void 0===n?A.push(t):a[n]&&t!==o.data[n]?(a[n].update(t,!1,null,!1),a[n].touched=!0,l&&(i=n+1)):a[n]&&(a[n].touched=!0),(!c||e!==n||s&&s.enabled||this.hasDerivedData)&&(r=!0)):A.push(t)},this),r)for(t=a.length;t--;)(n=a[t])&&!n.touched&&n.remove&&n.remove(!1,e);else!c||s&&s.enabled?h=!1:(t.forEach(function(t,e){t!==a[e].y&&a[e].update&&a[e].update(t,!1,null,!1)}),A.length=0);return a.forEach(function(t){t&&(t.touched=!1)}),!!h&&(A.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=y(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,r,n){void 0===e&&(e=!0);var i=this,o=i.points,s=o&&o.length||0,a=i.options,A=i.chart,l=a.dataSorting,c=i.xAxis,h=a.turboThreshold,u=this.xData,p=this.yData,f=i.pointArrayMap;f=f&&f.length;var d,g=a.keys,m=0,y=1,v=null;if(!A.options.chart.allowMutatingData){a.data&&delete i.options.data,i.userOptions.data&&delete i.userOptions.data;var b=P(!0,t)}if(b=(t=b||t||[]).length,l&&l.enabled&&(t=this.sortData(t)),A.options.chart.allowMutatingData&&!1!==n&&b&&s&&!i.cropped&&!i.hasGroupedData&&i.visible&&!i.boosted&&(d=this.updateData(t,r)),!d){if(i.xIncrement=null,i.colorCounter=0,this.parallelArrays.forEach(function(t){i[t+"Data"].length=0}),h&&b>h)if(v=i.getFirstValidPoint(t),k(v))for(r=0;r<b;r++)u[r]=this.autoIncrement(),p[r]=t[r];else if(T(v))if(f)if(v.length===f)for(r=0;r<b;r++)u[r]=this.autoIncrement(),p[r]=t[r];else for(r=0;r<b;r++)n=t[r],u[r]=n[0],p[r]=n.slice(1,f+1);else if(g&&(m=0<=(m=g.indexOf("x"))?m:0,y=0<=(y=g.indexOf("y"))?y:1),1===v.length&&(y=0),m===y)for(r=0;r<b;r++)u[r]=this.autoIncrement(),p[r]=t[r][y];else for(r=0;r<b;r++)n=t[r],u[r]=n[m],p[r]=n[y];else _(12,!1,A);else for(r=0;r<b;r++)void 0!==t[r]&&(n={series:i},i.pointClass.prototype.applyOptions.apply(n,[t[r]]),i.updateParallelArrays(n,r));for(p&&L(p[0])&&_(14,!0,A),i.data=[],i.options.data=i.userOptions.data=t,r=s;r--;)o[r]&&o[r].destroy&&o[r].destroy();c&&(c.minRange=c.userMinRange),i.isDirty=A.isDirtyBox=!0,i.isDirtyData=!!o,r=!1}"point"===a.legendType&&(this.processData(),this.generatePoints()),e&&A.redraw(r)},t.prototype.sortData=function(t){var e=this,r=e.options.dataSorting.sortKey||"y",n=function(t,e){return B(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(r,i){t[i]=n(e,r),t[i].index=i},this),t.concat().sort(function(t,e){return t=F(r,t),(e=F(r,e))<t?-1:e>t?1:0}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var r=e.options,i=r.data;r.dataSorting&&r.dataSorting.enabled||!i||(i.forEach(function(r,o){i[o]=n(e,r),t[o]&&(i[o].x=t[o].x,i[o].index=o)}),e.setData(i,!1))}),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,r=this.options,n=r.cropThreshold,i=t||this.getExtremesFromAll||r.getExtremesFromAll,o=this.isCartesian;t=e&&e.val2lin,r=!(!e||!e.logarithmic);var s=0,a=this.xData,A=this.yData,l=this.requireSorting,c=!1,h=a.length;if(e){var u=(c=e.getExtremes()).min,p=c.max;c=!(!e.categories||e.names.length)}if(o&&this.sorted&&!i&&(!n||h>n||this.forceCrop))if(a[h-1]<u||a[0]>p)a=[],A=[];else if(this.yData&&(a[0]<u||a[h-1]>p)){var f=this.cropData(this.xData,this.yData,u,p);a=f.xData,A=f.yData,s=f.start,f=!0}for(n=a.length||1;--n;)if(0<(e=r?t(a[n])-t(a[n-1]):a[n]-a[n-1])&&(void 0===d||e<d))var d=e;else 0>e&&l&&!c&&(_(15,!1,this.chart),l=!1);return{xData:a,yData:A,cropped:f,cropStart:s,closestPointRange:d}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange,I(this,"afterProcessData")},t.prototype.cropData=function(t,e,r,n,i){var o,s=t.length,a=0,A=s;for(i=D(i,this.cropShoulder),o=0;o<s;o++)if(t[o]>=r){a=Math.max(0,o-i);break}for(r=o;r<s;r++)if(t[r]>n){A=r+i;break}return{xData:t.slice(a,A),yData:e.slice(a,A),start:a,end:A}},t.prototype.generatePoints=function(){var t=this.options,e=this.processedData||t.data,r=this.processedXData,n=this.processedYData,i=this.pointClass,o=r.length,s=this.cropStart||0,a=this.hasGroupedData,A=t.keys,l=[];t=t.dataGrouping&&t.dataGrouping.groupAll?s:0;var c,h,u=this.data;if(!u&&!a){var p=[];p.length=e.length,u=this.data=p}for(A&&a&&(this.options.keys=!1),h=0;h<o;h++){if(p=s+h,a){var f=(new i).init(this,[r[h]].concat(O(n[h])));f.dataGroup=this.groupMap[t+h],f.dataGroup.options&&(f.options=f.dataGroup.options,E(f,f.dataGroup.options),delete f.dataLabels)}else(f=u[p])||void 0===e[p]||(u[p]=f=(new i).init(this,e[p],r[h]));f&&(f.index=a?t+h:p,l[h]=f)}if(this.options.keys=A,u&&(o!==(c=u.length)||a))for(h=0;h<c;h++)h!==s||a||(h+=o),u[h]&&(u[h].destroyElements(),u[h].plotX=void 0);this.data=u,this.points=l,I(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:v(t),max:y(t)}},t.prototype.getExtremes=function(t,e){var r=this.xAxis,n=this.yAxis,i=this.processedXData||this.xData,o=[],s=this.requireSorting?this.cropShoulder:0;n=!!n&&n.positiveValuesOnly;var a,A=0,l=0,c=0,h=(t=t||this.stackedYData||this.processedYData||[]).length;if(r){var u=r.getExtremes();A=u.min,l=u.max}for(a=0;a<h;a++){var p=i[a];u=t[a];var f=(k(u)||T(u))&&(u.length||0<u||!n);if(p=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!r||(i[a+s]||p)>=A&&(i[a-s]||p)<=l,f&&p)if(f=u.length)for(;f--;)k(u[f])&&(o[c++]=u[f]);else o[c++]=u}return t={activeYData:o,dataMin:v(o),dataMax:y(o)},I(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,r=0,n=null;null===n&&r<e;)n=t[r],r++;return n},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,r=this.options,n=r.stacking,i=this.xAxis,o=i.categories,s=this.enabledDataSorting,a=this.yAxis,A=this.points,l=A.length,c=this.pointPlacementToXValue(),h=!!c,u=r.threshold,p=r.startFromThreshold?u:0,f=this.zoneAxis||"y",d=Number.MAX_VALUE;for(t=0;t<l;t++){var g=A[t],m=g.x,y=void 0,v=void 0,w=g.y,C=g.low,_=n&&a.stacking&&a.stacking.stacks[(this.negStacks&&w<(p?0:u)?"-":"")+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(w)||i.positiveValuesOnly&&!i.validatePositiveValue(m))&&(g.isNull=!0),g.plotX=e=x(b(i.translate(m,0,0,0,1,c,"flags"===this.type),-1e5,1e5)),n&&this.visible&&_&&_[m]){var E=this.getStackIndicator(E,m,this.index);!g.isNull&&E.key&&(v=(y=_[m]).points[E.key]),y&&T(v)&&(C=v[0],w=v[1],C===p&&E.key===_[m].base&&(C=D(k(u)?u:a.min)),a.positiveValuesOnly&&B(C)&&0>=C&&(C=void 0),g.total=g.stackTotal=D(y.total),g.percentage=B(g.y)&&y.total?g.y/y.total*100:void 0,g.stackY=w,this.irregularWidths||y.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(g.yBottom=B(C)?b(a.translate(C,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(w=this.dataModify.modifyValue(w,t)),g.plotY=void 0,k(w)&&void 0!==(y=a.translate(w,!1,!0,!1,!0))&&(g.plotY=b(y,-1e5,1e5)),g.isInside=this.isPointInside(g),g.clientX=h?x(i.translate(m,0,0,0,1,c)):e,g.negative=g[f]<(r[f+"Threshold"]||u||0),g.category=D(o&&o[g.x],g.x),!g.isNull&&!1!==g.visible){void 0!==S&&(d=Math.min(d,Math.abs(e-S)));var S=e}g.zone=this.zones.length?g.getZone():void 0,!g.graphic&&this.group&&s&&(g.isNew=!0)}this.closestPointRangePx=d,I(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,r){var n=this.chart;return(t||this.points||[]).filter(function(t){return!(e&&!n.isInsidePlot(t.plotX,t.plotY,{inverted:n.inverted}))&&!1!==t.visible&&(r||!t.isNull)})},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,r=this.yAxis,n=P(t.clipBox);return e&&e.len!==t.plotSizeX&&(n.width=e.len),r&&r.len!==t.plotSizeY&&(n.height=r.len),n},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},t.prototype.setClip=function(){var t=this.chart,e=this.group,r=this.markerGroup,n=t.sharedClips;t=t.renderer;var i=this.getClipBox(),o=this.getSharedClipKey(),s=n[o];s?s.animate(i):n[o]=s=t.clipRect(i),e&&e.clip(!1===this.options.clip?void 0:s),r&&r.clip()},t.prototype.animate=function(t){var e=this.chart,r=this.group,n=this.markerGroup,i=e.inverted,o=c(this.options.animation),s=[this.getSharedClipKey(),o.duration,o.easing,o.defer].join(),a=e.sharedClips[s],A=e.sharedClips[s+"m"];if(t&&r)o=this.getClipBox(),a?a.attr("height",o.height):(o.width=0,i&&(o.x=e.plotHeight),a=e.renderer.clipRect(o),e.sharedClips[s]=a,A=e.renderer.clipRect({x:-99,y:-99,width:i?e.plotWidth+199:99,height:i?99:e.plotHeight+199}),e.sharedClips[s+"m"]=A),r.clip(a),n&&n.clip(A);else if(a&&!a.hasClass("highcharts-animating")){e=this.getClipBox();var l=o.step;n&&n.element.childNodes.length&&(o.step=function(t,e){l&&l.apply(e,arguments),"width"===e.prop&&A&&A.element&&A.attr(i?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(e,o)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),M(this.chart.sharedClips,function(e,r,n){e&&!t.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete n[r])}),this.finishedAnimating=!0,I(this,"afterAnimate")},t.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,r,n=this.chart,i=n.styledMode,o=this.colorAxis,s=this.options.marker,a=this[this.specialGroup||"markerGroup"],A=this.xAxis,l=D(s.enabled,!(A&&!A.isRadial)||null,this.closestPointRangePx>=s.enabledThreshold*s.radius);if(!1!==s.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++){var c=t[e],h=(r=c.graphic)?"animate":"attr",u=c.marker||{},p=!!c.marker;if((l&&void 0===u.enabled||u.enabled)&&!c.isNull&&!1!==c.visible){var f=D(u.symbol,this.symbol,"rect"),d=this.markerAttribs(c,c.selected&&"select");this.enabledDataSorting&&(c.startXPos=A.reversed?-(d.width||0):A.width);var g=!1!==c.isInside;!r&&g&&(0<(d.width||0)||c.hasImage)&&(c.graphic=r=n.renderer.symbol(f,d.x,d.y,d.width,d.height,p?u:s).add(a),this.enabledDataSorting&&n.hasRendered&&(r.attr({x:c.startXPos}),h="animate")),r&&"animate"===h&&r[g?"show":"hide"](g).animate(d),r&&(u=this.pointAttribs(c,i||!c.selected?void 0:"select"),i?o&&r.css({fill:u.fill}):r[h](u)),r&&r.addClass(c.getClassName(),!0)}else r&&(c.graphic=r.destroy())}},t.prototype.markerAttribs=function(t,e){var r=this.options,n=r.marker,i=t.marker||{},o=i.symbol||n.symbol,s={},a=D(i.radius,n&&n.radius);return e&&(n=n.states[e],e=i.states&&i.states[e],a=D(e&&e.radius,n&&n.radius,a&&a+(n&&n.radiusPlus||0))),t.hasImage=o&&0===o.indexOf("url"),t.hasImage&&(a=0),t=t.pos(),k(a)&&t&&(s.x=t[0]-a,s.y=t[1]-a,r.crisp&&(s.x=Math.floor(s.x))),a&&(s.width=s.height=2*a),s},t.prototype.pointAttribs=function(t,e){var r=this.options.marker,n=t&&t.options,i=n&&n.marker||{},o=n&&n.color,s=t&&t.color,a=t&&t.zone&&t.zone.color,A=this.color;return t=D(i.lineWidth,r.lineWidth),n=1,A=o||a||s||A,o=i.fillColor||r.fillColor||A,s=i.lineColor||r.lineColor||A,e=e||"normal",r=r.states[e]||{},e=i.states&&i.states[e]||{},t=D(e.lineWidth,r.lineWidth,t+D(e.lineWidthPlus,r.lineWidthPlus,0)),o=e.fillColor||r.fillColor||o,{stroke:s=e.lineColor||r.lineColor||s,"stroke-width":t,fill:o,opacity:n=D(e.opacity,r.opacity,n)}},t.prototype.destroy=function(t){var e,r,n,i=this,o=i.chart,s=/AppleWebKit\/533/.test(g.navigator.userAgent),a=i.data||[];for(I(i,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(i.axisTypes||[]).forEach(function(t){(n=i[t])&&n.series&&(C(n.series,i),n.isDirty=n.forceRedraw=!0)}),i.legendItem&&i.chart.legend.destroyItem(i),e=a.length;e--;)(r=a[e])&&r.destroy&&r.destroy();i.clips&&i.clips.forEach(function(t){return t.destroy()}),l.clearTimeout(i.animationTimeout),M(i,function(t,e){t instanceof A&&!t.survive&&t[s&&"group"===e?"hide":"destroy"]()}),o.hoverSeries===i&&(o.hoverSeries=void 0),C(o.series,i),o.orderSeries(),M(i,function(e,r){t&&"hcEvents"===r||delete i[r]})},t.prototype.applyZones=function(){var t,e,r,n,i,o,s,a,A=this,l=this.chart,c=l.renderer,h=this.zones,u=this.clips||[],p=this.graph,f=this.area,d=Math.max(l.plotWidth,l.plotHeight),g=this[(this.zoneAxis||"y")+"Axis"],m=l.inverted,y=!1;if(h.length&&(p||f)&&g&&void 0!==g.min){var v=g.reversed,w=g.horiz;p&&!this.showLine&&p.hide(),f&&f.hide();var x=g.getExtremes();h.forEach(function(h,B){t=v?w?l.plotWidth:0:w?0:g.toPixels(x.min)||0,t=b(D(e,t),0,d),e=b(Math.round(g.toPixels(D(h.value,x.max),!0)||0),0,d),y&&(t=e=g.toPixels(x.max)),n=Math.abs(t-e),i=Math.min(t,e),o=Math.max(t,e),g.isXAxis?(r={x:m?o:i,y:0,width:n,height:d},w||(r.x=l.plotHeight-r.x)):(r={x:0,y:m?o:i,width:d,height:n},w&&(r.y=l.plotWidth-r.y)),m&&c.isVML&&(r=g.isXAxis?{x:0,y:v?i:o,height:r.width,width:l.chartWidth}:{x:r.y-l.plotLeft-l.spacingBox.x,y:0,width:r.height,height:l.chartHeight}),u[B]?u[B].animate(r):u[B]=c.clipRect(r),s=A["zone-area-"+B],a=A["zone-graph-"+B],p&&a&&a.clip(u[B]),f&&s&&s.clip(u[B]),y=h.value>x.max,A.resetZones&&0===e&&(e=void 0)}),this.clips=u}else A.visible&&(p&&p.show(),f&&f.show())},t.prototype.plotGroup=function(t,e,r,n,i){var o=this[t],s=!o;return r={visibility:r,zIndex:n||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(r.opacity=this.opacity),s&&(this[t]=o=this.chart.renderer.g().add(i)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(B(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(r)[s?"attr":"animate"](this.getPlotBox(e)),o},t.prototype.getPlotBox=function(t){var e=this.xAxis,r=this.yAxis,n=this.chart;return t=n.inverted&&!n.polar&&e&&!1!==this.invertible&&"series"===t,n.inverted&&(e=r,r=this.xAxis),{translateX:e?e.left:n.plotLeft,translateY:r?r.top:n.plotTop,rotation:t?90:0,rotationOriginX:t?(e.len-r.len)/2:0,rotationOriginY:t?(e.len+r.len)/2:0,scaleX:t?-1:1,scaleY:1}},t.prototype.removeEvents=function(t){t||N(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,r=t.options,n=c(r.animation),i=t.visible?"inherit":"hidden",o=r.zIndex,s=t.hasRendered,a=e.seriesGroup;e=!t.finishedAnimating&&e.renderer.isSVG?n.duration:0,I(this,"render"),t.plotGroup("group","series",i,o,a),t.markerGroup=t.plotGroup("markerGroup","markers",i,o,a),!1!==r.clip&&t.setClip(),t.animate&&e&&t.animate(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.animate&&e&&t.animate(),s||(e&&n.defer&&(e+=n.defer),t.animationTimeout=U(function(){t.afterAnimate()},e||0)),t.isDirty=!1,t.hasRendered=!0,I(t,"afterRender")},t.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var r=this.xAxis,n=this.yAxis,i=this.chart.inverted;return this.searchKDTree({clientX:i?r.len-t.chartY+r.pos:t.chartX-r.pos,plotY:i?n.len-t.chartX+n.pos:t.chartY-n.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,n,i){var o=t&&t.length;if(o){var s=r.kdAxisArray[n%i];return t.sort(function(t,e){return t[s]-e[s]}),{point:t[o=Math.floor(o/2)],left:e(t.slice(0,o),n+1,i),right:e(t.slice(o+1),n+1,i)}}}this.buildingKdTree=!0;var r=this,n=-1<r.options.findNearestPointBy.indexOf("y")?2:1;delete r.kdTree,U(function(){r.kdTree=e(r.getValidPoints(null,!r.directTouch),n,n),r.buildingKdTree=!1},r.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,r){var n=this,i=this.kdAxisArray[0],o=this.kdAxisArray[1],s=e?"distX":"dist";if(e=-1<n.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(r),this.kdTree)return function t(e,r,a,A){var l=r.point,c=n.kdAxisArray[a%A],h=l,u=B(e[i])&&B(l[i])?Math.pow(e[i]-l[i],2):null,p=B(e[o])&&B(l[o])?Math.pow(e[o]-l[o],2):null;return p=(u||0)+(p||0),l.dist=B(p)?Math.sqrt(p):Number.MAX_VALUE,l.distX=B(u)?Math.sqrt(u):Number.MAX_VALUE,u=0>(c=e[c]-l[c])?"right":"left",r[p=0>c?"left":"right"]&&(h=(p=t(e,r[p],a+1,A))[s]<h[s]?p:l),r[u]&&Math.sqrt(c*c)<h[s]&&(h=(e=t(e,r[u],a+1,A))[s]<h[s]?e:h),h}(t,this.kdTree,e,e)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,r=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=r.reversed?-.5:.5),k(t)?t*(e||r.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,r=this.xAxis,n=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(n?n.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(r?r.len:e.plotWidth)},t.prototype.drawTracker=function(){var t=this,e=t.options,r=e.trackByArea,n=[].concat(r?t.areaPath:t.graphPath),i=t.chart,o=i.pointer,s=i.renderer,a=i.options.tooltip.snap,A=t.tracker,l=function(e){i.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(d?1e-4:.002)+")";A?A.attr({d:n}):t.graph&&(t.tracker=s.path(n).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(r?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),i.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:r?c:"none","stroke-width":t.graph.strokeWidth()+(r?0:2*a)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(t){o.onTrackerMouseOut(t)}),e.cursor&&!i.styledMode&&t.css({cursor:e.cursor}),f)&&t.on("touchstart",l)})),I(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,r,n,i){var o=this.options,s=this.data,a=this.chart,A=this.xAxis;A=A&&A.hasNames&&A.names;var l,c=o.data,h=this.xData;e=D(e,!0);var u={series:this};this.pointClass.prototype.applyOptions.apply(u,[t]);var p=u.x,f=h.length;if(this.requireSorting&&p<h[f-1])for(l=!0;f&&h[f-1]>p;)f--;this.updateParallelArrays(u,"splice",f,0,0),this.updateParallelArrays(u,f),A&&u.name&&(A[p]=u.name),c.splice(f,0,t),(l||this.processedData)&&(this.data.splice(f,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),r&&(s[0]&&s[0].remove?s[0].remove(!1):(s.shift(),this.updateParallelArrays(u,"shift"),c.shift())),!1!==i&&I(this,"addPoint",{point:u}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(n)},t.prototype.removePoint=function(t,e,r){var n=this,i=n.data,o=i[t],s=n.points,a=n.chart,A=function(){s&&s.length===i.length&&s.splice(t,1),i.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(o||{series:n},"splice",t,1),o&&o.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&a.redraw()};h(r,a),e=D(e,!0),o?o.firePointEvent("remove",null,A):A()},t.prototype.remove=function(t,e,r,n){function i(){o.destroy(n),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(),D(t,!0)&&s.redraw(e)}var o=this,s=o.chart;!1!==r?I(o,"remove",null,i):i()},t.prototype.update=function(t,e){t=w(t,this.userOptions),I(this,"update",{options:t});var r=this,n=r.chart,i=r.userOptions,o=r.initialType||r.type,s=n.options.plotOptions,a=m[o].prototype,A=r.finishedAnimating&&{animation:!1},l={},c=["eventOptions","navigatorSeries","baseSeries"],h=t.type||i.type||n.options.chart.type,u=!(this.hasDerivedData||h&&h!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||r.hasOptionChanged("dataGrouping")||r.hasOptionChanged("pointStart")||r.hasOptionChanged("pointInterval")||r.hasOptionChanged("pointIntervalUnit")||r.hasOptionChanged("keys"));if(h=h||o,u&&(c.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&c.push("area","graph"),r.parallelArrays.forEach(function(t){c.push(t+"Data")}),t.data&&(t.dataSorting&&E(r.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=P(i,A,{index:void 0===i.index?r.index:i.index,pointStart:D(s&&s.series&&s.series.pointStart,i.pointStart,r.xData[0])},!u&&{data:r.options.data},t),u&&t.data&&(t.data=r.options.data),(c=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(c)).forEach(function(t){c[t]=r[t],delete r[t]}),s=!1,m[h]){if(s=h!==r.type,r.remove(!1,!1,!1,!0),s)if(Object.setPrototypeOf)Object.setPrototypeOf(r,m[h].prototype);else{for(p in A=Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents,a)r[p]=void 0;E(r,m[h].prototype),A?r.hcEvents=A:delete r.hcEvents}}else _(17,!0,n,{missingModuleFor:h});if(c.forEach(function(t){r[t]=c[t]}),r.init(n,t),u&&this.points){if(!1===(t=r.options).visible)l.graphic=1,l.dataLabel=1;else if(!r._hasPointLabels){a=t.marker;var p=t.dataLabels;i=i.marker||{},!a||!1!==a.enabled&&i.symbol===a.symbol&&i.height===a.height&&i.width===a.width||(l.graphic=1),p&&!1===p.enabled&&(l.dataLabel=1)}for(i=0,a=this.points;i<a.length;i++)(p=a[i])&&p.series&&(p.resolveColor(),Object.keys(l).length&&p.destroyElements(l),!1===t.showInLegend&&p.legendItem&&n.legend.destroyItem(p))}r.initialType=o,n.linkSeries(),s&&r.linkedSeries.length&&(r.isDirtyData=!0),I(this,"afterUpdate"),D(e,!0)&&n.redraw(!!u&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],r=this.chart.options.plotOptions,n=this.userOptions[t];return n?e!==n:e!==D(r&&r[this.type]&&r[this.type][t],r&&r.series&&r.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&I(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,r=e.tooltip,n=e.hoverPoint;e.hoverSeries=null,n&&n.onMouseOut(),this&&t.events.mouseOut&&I(this,"mouseOut"),!r||this.stickyTracking||r.shared&&!this.noSharedTooltip||r.hide(),e.series.forEach(function(t){t.setState("",!0)})},t.prototype.setState=function(t,e){var r=this,n=r.options,i=r.graph,o=n.inactiveOtherPoints,s=n.states,a=D(s[t||"normal"]&&s[t||"normal"].animation,r.chart.options.chart.animation),A=n.lineWidth,l=0,c=n.opacity;if(t=t||"",r.state!==t&&([r.group,r.markerGroup,r.dataLabelsGroup].forEach(function(e){e&&(r.state&&e.removeClass("highcharts-series-"+r.state),t&&e.addClass("highcharts-series-"+t))}),r.state=t,!r.chart.styledMode)){if(s[t]&&!1===s[t].enabled)return;if(t&&(A=s[t].lineWidth||A+(s[t].lineWidthPlus||0),c=D(s[t].opacity,c)),i&&!i.dashstyle&&k(A))for(n={"stroke-width":A},i.animate(n,a);r["zone-graph-"+l];)r["zone-graph-"+l].animate(n,a),l+=1;o||[r.group,r.markerGroup,r.dataLabelsGroup,r.labelBySeries].forEach(function(t){t&&t.animate({opacity:c},a)})}e&&o&&r.points&&r.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},t.prototype.setVisible=function(t,e){var r=this,n=r.chart,i=n.options.chart.ignoreHiddenSeries,o=r.visible,s=(r.visible=t=r.options.visible=r.userOptions.visible=void 0===t?!o:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){r[t]&&r[t][s]()}),n.hoverSeries!==r&&(n.hoverPoint&&n.hoverPoint.series)!==r||r.onMouseOut(),r.legendItem&&n.legend.colorizeItem(r,t),r.isDirty=!0,r.options.stacking&&n.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),r.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),i&&(n.isDirtyBox=!0),I(r,s),!1!==e&&n.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),I(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,r){return void 0===r&&(r={}),r.series=this,r.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,r)},t.defaultOptions=s,t.types=a.seriesTypes,t.registerType=a.registerSeriesType,t}(),E(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:i.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:o,requireSorting:!0,sorted:!0}),a.series=t,t}),e(r,"Extensions/ScrollablePlotArea.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Axis/Axis.js"],r["Core/Chart/Chart.js"],r["Core/Series/Series.js"],r["Core/Renderer/RendererRegistry.js"],r["Core/Utilities.js"]],function(t,e,r,n,i,o){var s=t.stop,a=o.addEvent,A=o.createElement,l=o.defined,c=o.merge,h=o.pick;a(r,"afterSetChartSize",function(t){var r=this.options.chart.scrollablePlotArea,n=r&&r.minWidth;if(r=r&&r.minHeight,!this.renderer.forExport){if(n){if(this.scrollablePixelsX=n=Math.max(0,n-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.width=this.plotWidth+=n,this.inverted?this.clipBox.height+=n:this.clipBox.width+=n;var i={1:{name:"right",value:n}}}}else r&&(this.scrollablePixelsY=n=Math.max(0,r-this.chartHeight),l(n)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.height=this.plotHeight+=n,this.inverted?this.clipBox.width+=n:this.clipBox.height+=n,i={2:{name:"bottom",value:n}}));i&&!t.skipAxes&&this.axes.forEach(function(t){i[t.side]?t.getPlotLinePath=function(){var r=i[t.side].name,n=this[r];this[r]=n-i[t.side].value;var o=e.prototype.getPlotLinePath.apply(this,arguments);return this[r]=n,o}:(t.setAxisSize(),t.setAxisTranslation())})}}),a(r,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),r.prototype.setUpScrolling=function(){var t,e=this,r={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(r.overflowX="auto"),this.scrollablePixelsY&&(r.overflowY="auto"),this.scrollingParent=A("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=A("div",{className:"highcharts-scrolling"},r,this.scrollingParent),a(this.scrollingContainer,"scroll",function(){e.pointer&&(delete e.pointer.chartPosition,e.hoverPoint&&(t=e.hoverPoint),e.pointer.runPointActions(void 0,t,!0))}),this.innerContainer=A("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},r.prototype.moveFixedElements=function(){var t,e=this.container,r=this.fixedRenderer,n=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&n.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),n.forEach(function(t){[].forEach.call(e.querySelectorAll(t),function(t){(t.namespaceURI===r.SVG_NS?r.box:r.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})})},r.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,r=e.scrollablePlotArea,n=i.getRendererType();t?(this.fixedDiv=A("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new n(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":h(r.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),a(this,"afterShowResetZoom",this.moveFixedElements),a(this,"afterApplyDrilldown",this.moveFixedElements),a(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),n=this.chartHeight+(this.scrollablePixelsY||0),s(this.container),this.container.style.width=e+"px",this.container.style.height=n+"px",this.renderer.boxWrapper.attr({width:e,height:n,viewBox:[0,0,e,n].join(" ")}),this.chartBackground.attr({width:e,height:n}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(r.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*r.scrollPositionX),r.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*r.scrollPositionY)),n=this.axisOffset,t=this.plotTop-n[0]-1,r=this.plotLeft-n[3]-1,e=this.plotTop+this.plotHeight+n[2]+1,n=this.plotLeft+this.plotWidth+n[1]+1;var o=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",o,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",o,e],["Z"]]:this.scrollablePixelsY?[["M",r,0],["L",r,this.plotTop-1],["L",n,this.plotTop-1],["L",n,0],["Z"],["M",r,l],["L",r,this.chartHeight],["L",n,this.chartHeight],["L",n,l],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},a(e,"afterInit",function(){this.chart.scrollableDirty=!0}),a(n,"show",function(){this.chart.scrollableDirty=!0})}),e(r,"Core/Axis/Stacking/StackItem.js",[r["Core/FormatUtilities.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r){var n=t.format,i=e.series,o=r.destroyObjectProperties,s=r.pick,a=r.isNumber;return t=function(){function t(t,e,r,n,i){var o=t.chart.inverted,s=t.reversed;this.axis=t,t=this.isNegative=!!r!=!!s,this.options=e=e||{},this.x=n,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=i,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?t?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":t?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(o?t?"right":"left":"center")}return t.prototype.destroy=function(){o(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,r=this.options,i=r.format;i=i?n(i,this,e):r.formatter.call(this),this.label?this.label.attr({text:i,visibility:"hidden"}):(this.label=e.renderer.label(i,null,void 0,r.shape,void 0,void 0,r.useHTML,!1,"stack-labels"),i={r:r.borderRadius||0,text:i,padding:s(r.padding,5),visibility:"hidden"},e.styledMode||(i.fill=r.backgroundColor,i.stroke=r.borderColor,i["stroke-width"]=r.borderWidth,this.label.css(r.style||{})),this.label.attr(i),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY},t.prototype.setOffset=function(t,e,r,n,o,A){var l=this.alignOptions,c=this.axis,h=this.label,u=this.options,p=this.textAlign,f=c.chart;t=this.getStackBox({xOffset:t,width:e,boxBottom:r,boxTop:n,defaultX:o,xAxis:A}),o=l.verticalAlign,h&&t&&(e=h.getBBox(),r=h.padding,n="justify"===s(u.overflow,"justify"),l.x=u.x||0,l.y=u.y||0,p=(o=this.adjustStackPosition({labelBox:e,verticalAlign:o,textAlign:p})).x,o=o.y,t.x-=p,t.y-=o,h.align(l,!1,t),(p=f.isInsidePlot(h.alignAttr.x+l.x+p,h.alignAttr.y+l.y+o))||(n=!1),n&&i.prototype.justifyDataLabel.call(c,h,l,h.alignAttr,e,t),h.attr({x:h.alignAttr.x,y:h.alignAttr.y,rotation:u.rotation,rotationOriginX:e.width/2,rotationOriginY:e.height/2}),s(!n&&u.crop,!0)&&(p=a(h.x)&&a(h.y)&&f.isInsidePlot(h.x-r+h.width,h.y)&&f.isInsidePlot(h.x+r,h.y)),h[p?"show":"hide"]())},t.prototype.adjustStackPosition=function(t){var e=t.labelBox,r={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:e.width/2+e.width/2*r[t.textAlign],y:e.height/2*r[t.verticalAlign]}},t.prototype.getStackBox=function(t){var e=this.axis,r=e.chart,n=t.boxTop,i=t.defaultX,o=t.xOffset,a=t.width,A=t.boxBottom;return n=e.stacking.usePercentage?100:s(n,this.total,0),n=e.toPixels(n),t=s(i,(t.xAxis||r.xAxis[0]).toPixels(this.x))+o,e=e.toPixels(A||0),e=Math.abs(n-e),A=this.isNegative,r.inverted?{x:(A?n:n-e)-r.plotLeft,y:t-r.plotTop,width:e,height:a}:{x:t-r.plotLeft,y:(A?n-e:n)-r.plotTop,width:a,height:e}},t}(),t}),e(r,"Core/Axis/Stacking/StackingAxis.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Axis/Axis.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Axis/Stacking/StackItem.js"],r["Core/Utilities.js"]],function(t,e,r,n,i){function o(){var t=this,e=t.inverted;t.yAxis.forEach(function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),t.series.forEach(function(r){var n=r.xAxis&&r.xAxis.options||{};!r.options.stacking||!0!==r.visible&&!1!==t.options.chart.ignoreHiddenSeries||(r.stackKey=[r.type,C(r.options.stack,""),e?n.top:n.left,e?n.height:n.width].join())})}function s(){var t=this.stacking;if(t){var e=t.stacks;B(e,function(t,r){v(t),e[r]=null}),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function a(){"yAxis"!==this.coll||this.stacking||(this.stacking=new _(this))}function A(t,e,r,n){return!y(t)||t.x!==e||n&&t.stackKey!==n?t={x:e,index:0,key:n,stackKey:n}:t.index++,t.key=[r,e,t.index].join(),t}function l(){var t,e=this,r=e.stackKey,n=e.yAxis.stacking.stacks,i=e.processedXData,o=e[e.options.stacking+"Stacker"];o&&[r,"-"+r].forEach(function(r){for(var s,a,A=i.length;A--;)s=i[A],t=e.getStackIndicator(t,s,e.index,r),(a=(s=n[r]&&n[r][s])&&s.points[t.key])&&o.call(e,a,s,A)})}function c(t,e,r){e=e.total?100/e.total:0,t[0]=m(t[0]*e),t[1]=m(t[1]*e),this.stackedYData[r]=t[1]}function h(){var t=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?d.setStackedPoints.call(this,"group"):t&&B(t.stacks,function(e,r){"group"===r.slice(-5)&&(B(e,function(t){return t.destroy()}),delete t.stacks[r])})}function u(t){var e=this.chart,r=t||this.options.stacking;if(r&&(!0===this.visible||!1===e.options.chart.ignoreHiddenSeries)){var i=this.processedXData,o=this.processedYData,s=[],a=o.length,A=this.options,l=A.threshold,c=C(A.startFromThreshold&&l,0);A=A.stack;var h,u,p="-"+(t=t?""+this.type+",".concat(r):this.stackKey),f=this.negStacks,d=(e="group"===r?e.yAxis[0]:this.yAxis).stacking.stacks,g=e.stacking.oldStacks;for(e.stacking.stacksTouched+=1,u=0;u<a;u++){var v=i[u],b=o[u],x=this.getStackIndicator(x,v,this.index),B=x.key,_=(h=f&&b<(c?0:l))?p:t;d[_]||(d[_]={}),d[_][v]||(g[_]&&g[_][v]?(d[_][v]=g[_][v],d[_][v].total=null):d[_][v]=new n(e,e.options.stackLabels,!!h,v,A)),_=d[_][v],null!==b?(_.points[B]=_.points[this.index]=[C(_.cumulative,c)],y(_.cumulative)||(_.base=B),_.touched=e.stacking.stacksTouched,0<x.index&&!1===this.singleStacks&&(_.points[B][0]=_.points[this.index+","+v+",0"][0])):_.points[B]=_.points[this.index]=null,"percent"===r?(h=h?t:p,f&&d[h]&&d[h][v]?(h=d[h][v],_.total=h.total=Math.max(h.total,_.total)+Math.abs(b)||0):_.total=m(_.total+(Math.abs(b)||0))):"group"===r?(w(b)&&(b=b[0]),null!==b&&(_.total=(_.total||0)+1)):_.total=m(_.total+(b||0)),_.cumulative="group"===r?(_.total||1)-1:C(_.cumulative,c)+(b||0),null!==b&&(_.points[B].push(_.cumulative),s[u]=_.cumulative,_.hasValidPoints=!0)}"percent"===r&&(e.stacking.usePercentage=!0),"group"!==r&&(this.stackedYData=s),e.stacking.oldStacks={}}}var p,f=t.getDeferredAnimation,d=r.series.prototype,g=i.addEvent,m=i.correctFloat,y=i.defined,v=i.destroyObjectProperties,b=i.fireEvent,w=i.isArray,x=i.isNumber,B=i.objectEach,C=i.pick,_=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,r=e.series,n=e.options.reversedStacks,i=r.length;for(this.usePercentage=!1,t=i;t--;){var o=r[n?t:i-t-1];o.setStackedPoints(),o.setGroupedPoints()}for(t=0;t<i;t++)r[t].modifyStacks();b(e,"afterBuildStacks")},t.prototype.cleanStacks=function(){if(this.oldStacks)var t=this.stacks=this.oldStacks;B(t,function(t){B(t,function(t){t.cumulative=t.total})})},t.prototype.resetStacks=function(){var t=this;B(this.stacks,function(e){B(e,function(r,n){x(r.touched)&&r.touched<t.stacksTouched?(r.destroy(),delete e[n]):(r.total=null,r.cumulative=null)})})},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,r=e.renderer,n=this.stacks;t=f(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var i=this.stackTotalGroup=this.stackTotalGroup||r.g("stack-labels").attr({zIndex:6,opacity:0}).add();i.translate(e.plotLeft,e.plotTop),B(n,function(t){B(t,function(t){t.render(i)})}),i.animate({opacity:1},t)},t}();return function(t){var e=[];t.compose=function(t,r,n){-1===e.indexOf(t)&&(e.push(t),g(t,"init",a),g(t,"destroy",s)),-1===e.indexOf(r)&&(e.push(r),r.prototype.getStacks=o),-1===e.indexOf(n)&&(e.push(n),(t=n.prototype).getStackIndicator=A,t.modifyStacks=l,t.percentStacker=c,t.setGroupedPoints=h,t.setStackedPoints=u)}}(p||(p={})),p}),e(r,"Series/Line/LineSeries.js",[r["Core/Series/Series.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=r.defined,o=r.merge;return r=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return n(r,e),r.prototype.drawGraph=function(){var t=this,e=this.options,r=(this.gappedPath||this.getGraphPath).call(this),n=this.chart.styledMode,i=[["graph","highcharts-graph"]];n||i[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(i=t.getZonesGraphs(i)).forEach(function(i,o){var s=i[0],a=t[s],A=a?"animate":"attr";a?(a.endX=t.preventGraphAnimation?null:r.xMap,a.animate({d:r})):r.length&&(t[s]=a=t.chart.renderer.path(r).addClass(i[1]).attr({zIndex:1}).add(t.group)),a&&!n&&(s={stroke:i[2],"stroke-width":e.lineWidth||0,fill:t.fillGraph&&t.color||"none"},i[3]?s.dashstyle=i[3]:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[A](s).shadow(2>o&&e.shadow)),a&&(a.startX=r.xMap,a.isArea=r.isArea)})},r.prototype.getGraphPath=function(t,e,r){var n,o=this,s=o.options,a=[],A=[],l=s.step,c=(t=t||o.points).reversed;return c&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&c&&(l=4-l),(t=this.getValidPoints(t,!1,!(s.connectNulls&&!e&&!r))).forEach(function(c,h){var u=c.plotX,p=c.plotY,f=t[h-1];(c.leftCliff||f&&f.rightCliff)&&!r&&(n=!0),c.isNull&&!i(e)&&0<h?n=!s.connectNulls:c.isNull&&!e?n=!0:(0===h||n?h=[["M",c.plotX,c.plotY]]:o.getPointSpline?h=[o.getPointSpline(t,c,h)]:l?(h=1===l?[["L",f.plotX,p]]:2===l?[["L",(f.plotX+u)/2,f.plotY],["L",(f.plotX+u)/2,p]]:[["L",u,f.plotY]]).push(["L",u,p]):h=[["L",u,p]],A.push(c.x),l&&(A.push(c.x),2===l&&A.push(c.x)),a.push.apply(a,h),n=!1)}),a.xMap=A,o.graphPath=a},r.prototype.getZonesGraphs=function(t){return this.zones.forEach(function(e,r){r=["zone-graph-"+r,"highcharts-graph highcharts-zone-graph-"+r+" "+(e.className||"")],this.chart.styledMode||r.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(r)},this),t},r.defaultOptions=o(t.defaultOptions,{}),r}(t),e.registerSeriesType("line",r),r}),e(r,"Series/Area/AreaSeries.js",[r["Core/Color/Color.js"],r["Core/Legend/LegendSymbol.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r,n){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=t.parse,s=r.seriesTypes.line;t=n.extend;var a=n.merge,A=n.objectEach,l=n.pick;return n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return i(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,r=this.areaPath,n=this.options,i=[["area","highcharts-area",this.color,n.fillColor]];this.zones.forEach(function(t,r){i.push(["zone-area-"+r,"highcharts-area highcharts-zone-area-"+r+" "+t.className,t.color||e.color,t.fillColor||n.fillColor])}),i.forEach(function(t){var i=t[0],s={},a=e[i],A=a?"animate":"attr";a?(a.endX=e.preventGraphAnimation?null:r.xMap,a.animate({d:r})):(s.zIndex=0,(a=e[i]=e.chart.renderer.path(r).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(s.fill=l(t[3],o(t[2]).setOpacity(l(n.fillOpacity,.75)).get())),a[A](s),a.startX=r.xMap,a.shiftUnit=n.step?2:1})},e.prototype.getGraphPath=function(t){var e=s.prototype.getGraphPath,r=this.options,n=r.stacking,i=this.yAxis,o=[],a=[],A=this.index,c=i.stacking.stacks[this.stackKey],h=r.threshold,u=Math.round(i.getThreshold(r.threshold));r=l(r.connectNulls,"percent"===n);var p=function(e,r,s){var l=t[e];e=n&&c[l.x].points[A];var p=l[s+"Null"]||0;if(s=l[s+"Cliff"]||0,l=!0,s||p){var f=(p?e[0]:e[1])+s,d=e[0]+s;l=!!p}else!n&&t[r]&&t[r].isNull&&(f=d=h);void 0!==f&&(a.push({plotX:m,plotY:null===f?u:i.getThreshold(f),isNull:l,isCliff:!0}),o.push({plotX:m,plotY:null===d?u:i.getThreshold(d),doCurve:!1}))};t=t||this.points,n&&(t=this.getStackPoints(t));for(var f=0,d=t.length;f<d;++f){n||(t[f].leftCliff=t[f].rightCliff=t[f].leftNull=t[f].rightNull=void 0);var g=t[f].isNull,m=l(t[f].rectPlotX,t[f].plotX),y=n?l(t[f].yBottom,u):u;g&&!r||(r||p(f,f-1,"left"),g&&!n&&r||(a.push(t[f]),o.push({x:f,plotX:m,plotY:y})),r||p(f,f+1,"right"))}return p=e.call(this,a,!0,!0),o.reversed=!0,(y=(g=e.call(this,o,!0,!0))[0])&&"M"===y[0]&&(g[0]=["L",y[1],y[2]]),(g=p.concat(g)).length&&g.push(["Z"]),e=e.call(this,a,!1,r),g.xMap=p.xMap,this.areaPath=g,e},e.prototype.getStackPoints=function(t){var e=this,r=[],n=[],i=this.xAxis,o=this.yAxis,s=o.stacking.stacks[this.stackKey],a={},c=o.series,h=c.length,u=o.options.reversedStacks?1:-1,p=c.indexOf(e);if(t=t||this.points,this.options.stacking){for(var f=0;f<t.length;f++)t[f].leftNull=t[f].rightNull=void 0,a[t[f].x]=t[f];A(s,function(t,e){null!==t.total&&n.push(e)}),n.sort(function(t,e){return t-e});var d=c.map(function(t){return t.visible});n.forEach(function(t,A){var f,g,m=0;if(a[t]&&!a[t].isNull)r.push(a[t]),[-1,1].forEach(function(r){var i=1===r?"rightNull":"leftNull",o=s[n[A+r]],l=0;if(o)for(var m=p;0<=m&&m<h;){var y=c[m].index;(f=o.points[y])||(y===e.index?a[t][i]=!0:d[m]&&(g=s[t].points[y])&&(l-=g[1]-g[0])),m+=u}a[t][1===r?"rightCliff":"leftCliff"]=l});else{for(var y=p;0<=y&&y<h;){if(f=s[t].points[c[y].index]){m=f[1];break}y+=u}m=l(m,0),m=o.translate(m,0,1,0,1),r.push({isNull:!0,plotX:i.translate(t,0,0,0,1),x:t,plotY:m,yBottom:m})}})}return r},e.defaultOptions=a(s.defaultOptions,{threshold:0}),e}(s),t(n.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),r.registerSeriesType("area",n),n}),e(r,"Series/Spline/SplineSeries.js",[r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),n=t.seriesTypes.line,i=e.merge,o=e.pick;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(e,t),e.prototype.getPointSpline=function(t,e,r){var n=e.plotX||0,i=e.plotY||0,s=t[r-1];if(r=t[r+1],s&&!s.isNull&&!1!==s.doCurve&&!e.isCliff&&r&&!r.isNull&&!1!==r.doCurve&&!e.isCliff){t=s.plotY||0;var a=r.plotX||0;r=r.plotY||0;var A=0,l=(1.5*n+(s.plotX||0))/2.5,c=(1.5*i+t)/2.5,h=(1.5*i+r)/2.5;(a=(1.5*n+a)/2.5)!==l&&(A=(h-c)*(a-n)/(a-l)+i-h),h+=A,(c+=A)>t&&c>i?h=2*i-(c=Math.max(t,i)):c<t&&c<i&&(h=2*i-(c=Math.min(t,i))),h>r&&h>i?c=2*i-(h=Math.max(r,i)):h<r&&h<i&&(c=2*i-(h=Math.min(r,i))),e.rightContX=a,e.rightContY=h}return e=["C",o(s.rightContX,s.plotX,0),o(s.rightContY,s.plotY,0),o(l,n,0),o(c,i,0),n,i],s.rightContX=s.rightContY=void 0,e},e.defaultOptions=i(n.defaultOptions),e}(n),t.registerSeriesType("spline",e),e}),e(r,"Series/AreaSpline/AreaSplineSeries.js",[r["Series/Spline/SplineSeries.js"],r["Core/Legend/LegendSymbol.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r,n){var i=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=r.seriesTypes,s=o.area;o=o.area.prototype;var a=n.extend,A=n.merge;return n=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return i(r,e),r.defaultOptions=A(t.defaultOptions,s.defaultOptions),r}(t),a(n.prototype,{getGraphPath:o.getGraphPath,getStackPoints:o.getStackPoints,drawGraph:o.drawGraph,drawLegendSymbol:e.drawRectangle}),r.registerSeriesType("areaspline",n),n}),e(r,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),e(r,"Series/Column/ColumnSeries.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Color/Color.js"],r["Series/Column/ColumnSeriesDefaults.js"],r["Core/Globals.js"],r["Core/Legend/LegendSymbol.js"],r["Core/Series/Series.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r,n,i,o,s,a){var A=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=t.animObject,c=e.parse,h=n.hasTouch;t=n.noop;var u=a.clamp,p=a.defined,f=a.extend,d=a.fireEvent,g=a.isArray,m=a.isNumber,y=a.merge,v=a.pick,b=a.objectEach;return a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return A(e,t),e.prototype.animate=function(t){var e=this,r=this.yAxis,n=e.options,i=this.chart.inverted,o={},s=i?"translateX":"translateY";if(t)o.scaleY=.001,t=u(r.toPixels(n.threshold),r.pos,r.pos+r.len),i?o.translateX=t-r.len:o.translateY=t,e.clipBox&&e.setClip(),e.group.attr(o);else{var a=Number(e.group.attr(s));e.group.animate({scaleY:1},f(l(e.options.animation),{step:function(t,n){e.group&&(o[s]=a+n.pos*(r.pos-a),e.group.attr(o))}}))}},e.prototype.init=function(e,r){t.prototype.init.apply(this,arguments);var n=this;(e=n.chart).hasRendered&&e.series.forEach(function(t){t.type===n.type&&(t.isDirty=!0)})},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,r=t.xAxis,n=t.yAxis,i=r.options.reversedStacks;i=r.reversed&&!i||!r.reversed&&i;var o,s={},a=0;!1===e.grouping?a=1:t.chart.series.forEach(function(e){var r=e.yAxis,i=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&n.len===r.len&&n.pos===r.pos){if(i.stacking&&"group"!==i.stacking){o=e.stackKey,void 0===s[o]&&(s[o]=a++);var A=s[o]}else!1!==i.grouping&&(A=a++);e.columnIndex=A}});var A=Math.min(Math.abs(r.transA)*(r.ordinal&&r.ordinal.slope||e.pointRange||r.closestPointRange||r.tickInterval||1),r.len),l=A*e.groupPadding,c=(A-2*l)/(a||1);return e=Math.min(e.maxPointWidth||r.len,v(e.pointWidth,c*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(c-e)/2+(l+((t.columnIndex||0)+(i?1:0))*c-A/2)*(i?-1:1),paddedWidth:c,columnCount:a},t.columnMetrics},e.prototype.crispCol=function(t,e,r,n){var i=this.chart,o=this.borderWidth,s=-(o%2?.5:0);return o=o%2?.5:1,i.inverted&&i.renderer.isVML&&(o+=1),this.options.crisp&&(r=Math.round(t+r)+s,r-=t=Math.round(t)+s),n=Math.round(e+n)+o,s=.5>=Math.abs(e)&&.5<n,n-=e=Math.round(e)+o,s&&n&&(--e,n+=1),{x:t,y:e,width:r,height:n}},e.prototype.adjustForMissingColumns=function(t,e,r,n){var i=this,o=this.options.stacking;if(!r.isNull&&1<n.columnCount){var s=this.yAxis.options.reversedStacks,a=0,A=s?0:-n.columnCount;b(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(t){if("number"==typeof r.x){var e=t[r.x.toString()];e&&(t=e.points[i.index],o?(t&&(a=A),e.hasValidPoints&&(s?A++:A--)):g(t)&&(t=Object.keys(e.points).filter(function(t){return!t.match(",")&&e.points[t]&&1<e.points[t].length}).map(parseFloat).sort(function(t,e){return e-t}),a=t.indexOf(i.index),A=t.length))}}),t=(r.plotX||0)+((A-1)*n.paddedWidth+e)/2-e-a*n.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,r=t.options,n=t.dense=2>t.closestPointRange*t.xAxis.transA;n=t.borderWidth=v(r.borderWidth,n?0:1);var i=t.xAxis,s=t.yAxis,a=r.threshold,A=t.translatedThreshold=s.getThreshold(a),l=v(r.minPointLength,5),c=t.getColumnMetrics(),h=c.width,f=t.pointXOffset=c.offset,d=t.dataMin,g=t.dataMax,y=t.barW=Math.max(h,1+2*n);e.inverted&&(A-=.5),r.pointPadding&&(y=Math.ceil(y)),o.prototype.translate.apply(t),t.points.forEach(function(n){var o=v(n.yBottom,A),b=999+Math.abs(o),w=n.plotX||0;b=u(n.plotY,-b,s.len+b);var x=Math.min(b,o),B=Math.max(b,o)-x,C=h,_=w+f,E=y;l&&Math.abs(B)<l&&(B=l,w=!s.reversed&&!n.negative||s.reversed&&n.negative,m(a)&&m(g)&&n.y===a&&g<=a&&(s.min||0)<a&&(d!==g||(s.max||0)<=a)&&(w=!w),x=Math.abs(x-A)>l?o-l:A-(w?l:0)),p(n.options.pointWidth)&&(C=E=Math.ceil(n.options.pointWidth),_-=Math.round((C-h)/2)),r.centerInCategory&&(_=t.adjustForMissingColumns(_,C,n,c)),n.barX=_,n.pointWidth=C,n.tooltipPos=e.inverted?[u(s.len+s.pos-e.plotLeft-b,s.pos-e.plotLeft,s.len+s.pos-e.plotLeft),i.len+i.pos-e.plotTop-_-E/2,B]:[i.left-e.plotLeft+_+E/2,u(b+s.pos-e.plotTop,s.pos-e.plotTop,s.len+s.pos-e.plotTop),B],n.shapeType=t.pointClass.prototype.shapeType||"rect",n.shapeArgs=t.crispCol.apply(t,n.isNull?[_,A,E,0]:[_,x,E,B])})},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var r=this.options,n=this.pointAttrToOptions||{},i=n.stroke||"borderColor",o=n["stroke-width"]||"borderWidth",s=t&&t.color||this.color,a=t&&t[i]||r[i]||s;n=t&&t.options.dashStyle||r.dashStyle;var A=t&&t[o]||r[o]||this[o]||0,l=v(t&&t.opacity,r.opacity,1);if(t&&this.zones.length){var h=t.getZone();s=t.options.color||h&&(h.color||t.nonZonedColor)||this.color,h&&(a=h.borderColor||a,n=h.dashStyle||n,A=h.borderWidth||A)}return e&&t&&(e=(t=y(r.states[e],t.options.states&&t.options.states[e]||{})).brightness,s=t.color||void 0!==e&&c(s).brighten(t.brightness).get()||s,a=t[i]||a,A=t[o]||A,n=t.dashStyle||n,l=v(t.opacity,l)),i={fill:s,stroke:a,"stroke-width":A,opacity:l},n&&(i.dashstyle=n),i},e.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,r=this,n=this.chart,i=r.options,o=n.renderer,s=i.animationLimit||250;t.forEach(function(t){var a=t.graphic,A=!!a,l=a&&n.pointCount<s?"animate":"attr";m(t.plotY)&&null!==t.y?(e=t.shapeArgs,a&&t.hasNewShapeType()&&(a=a.destroy()),r.enabledDataSorting&&(t.startXPos=r.xAxis.reversed?-(e&&e.width||0):r.xAxis.width),a||(t.graphic=a=o[t.shapeType](e).add(t.group||r.group))&&r.enabledDataSorting&&n.hasRendered&&n.pointCount<s&&(a.attr({x:t.startXPos}),A=!0,l="animate"),a&&A&&a[l](y(e)),i.borderRadius&&a[l]({r:i.borderRadius}),n.styledMode||a[l](r.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&i.shadow,null,i.stacking&&!i.borderRadius),a&&(a.addClass(t.getClassName(),!0),a.attr({visibility:t.visible?"inherit":"hidden"}))):a&&(t.graphic=a.destroy())})},e.prototype.drawTracker=function(t){void 0===t&&(t=this.points);var e,r=this,n=r.chart,i=n.pointer,o=function(t){var e=i.getPointFromEvent(t);void 0!==e&&(i.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){e=g(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach(function(e){e.div?e.div.point=t:e.element.point=t})}),r._hasTracking||(r.trackerGroups.forEach(function(t){r[t]&&(r[t].addClass("highcharts-tracker").on("mouseover",o).on("mouseout",function(t){i.onTrackerMouseOut(t)}),h&&r[t].on("touchstart",o),!n.styledMode&&r.options.cursor&&r[t].css({cursor:r.options.cursor}))}),r._hasTracking=!0),d(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),o.prototype.remove.apply(t,arguments)},e.defaultOptions=y(o.defaultOptions,r),e}(o),f(a.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:i.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),s.registerSeriesType("column",a),a}),e(r,"Core/Series/DataLabel.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/FormatUtilities.js"],r["Core/Utilities.js"]],function(t,e,r){var n,i=t.getDeferredAnimation,o=e.format,s=r.defined,a=r.extend,A=r.fireEvent,l=r.isArray,c=r.isString,h=r.merge,u=r.objectEach,p=r.pick,f=r.splat;return function(t){function e(t,e,r,n,i){var o=this,A=this.chart,l=this.isCartesian&&A.inverted,c=this.enabledDataSorting,h=t.plotX,u=t.plotY,f=r.rotation,d=r.align,g=s(h)&&s(u)&&A.isInsidePlot(h,Math.round(u),{inverted:l,paneCoordinates:!0,series:o});u=function(r){c&&o.xAxis&&!m&&o.setDataLabelStartPos(t,e,i,g,r)};var m="justify"===p(r.overflow,c?"none":"justify");if(h=this.visible&&!1!==t.visible&&s(h)&&(t.series.forceDL||c&&!m||g||p(r.inside,!!this.options.stacking)&&n&&A.isInsidePlot(h,l?n.x+1:n.y+n.height-1,{inverted:l,paneCoordinates:!0,series:o})),l=t.pos(),h&&l){f&&e.attr({align:d}),d=e.getBBox(!0);var y=[0,0],v=A.renderer.fontMetrics(A.styledMode?void 0:r.style.fontSize,e).b;n=a({x:l[0],y:Math.round(l[1]),width:0,height:0},n),a(r,{width:d.width,height:d.height}),f?(m=!1,y=A.renderer.rotCorr(v,f),v={x:n.x+(r.x||0)+n.width/2+y.x,y:n.y+(r.y||0)+{top:0,middle:.5,bottom:1}[r.verticalAlign]*n.height},y=[d.x-Number(e.attr("x")),d.y-Number(e.attr("y"))],u(v),e[i?"attr":"animate"](v)):(u(n),e.align(r,void 0,n),v=e.alignAttr),m&&0<=n.height?this.justifyDataLabel(e,r,v,d,n,i):p(r.crop,!0)&&(n=v.x,u=v.y,n+=y[0],u+=y[1],h=A.isInsidePlot(n,u,{paneCoordinates:!0,series:o})&&A.isInsidePlot(n+d.width,u+d.height,{paneCoordinates:!0,series:o})),r.shape&&!f&&e[i?"attr":"animate"]({anchorX:l[0],anchorY:l[1]})}i&&c&&(e.placed=!1),h||c&&!m?e.show():(e.hide(),e.placed=!1)}function r(t){void 0===t&&(t=this.points);var e=this,r=e.chart,n=e.options,a=e.hasRendered||0,h=r.renderer,g=r.options.chart,m=g.backgroundColor;g=g.plotBackgroundColor;var y=h.getContrast(c(g)&&g||c(m)&&m||"#000000"),v=n.dataLabels;if(m=v.animation,m=v.defer?i(r,m,e):{defer:0,duration:0},v=d(d(r.options.plotOptions&&r.options.plotOptions.series&&r.options.plotOptions.series.dataLabels,r.options.plotOptions&&r.options.plotOptions[e.type]&&r.options.plotOptions[e.type].dataLabels),v),A(this,"drawDataLabels"),l(v)||v.enabled||e._hasPointLabels){var b=e.plotGroup("dataLabelsGroup","data-labels",a?"inherit":"hidden",v.zIndex||6);b.attr({opacity:+a}),!a&&(a=e.dataLabelsGroup)&&(e.visible&&b.show(),a[n.animation?"animate":"attr"]({opacity:1},m)),t.forEach(function(t){f(d(v,t.dlOptions||t.options&&t.options.dataLabels)).forEach(function(i,a){var A=i.enabled&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var r=e.filter;return!r||(e=r.operator,t=t[r.property],r=r.value,">"===e&&t>r||"<"===e&&t<r||">="===e&&t>=r||"<="===e&&t<=r||"=="===e&&t==r||"==="===e&&t===r)}(t,i),l=t.connectors?t.connectors[a]:t.connector,c=t.dataLabels?t.dataLabels[a]:t.dataLabel,f=!c,d=p(i.distance,t.labelDistance);if(A){var g=t.getLabelConfig(),m=p(i[t.formatPrefix+"Format"],i.format);g=s(m)?o(m,g,r):(i[t.formatPrefix+"Formatter"]||i.formatter).call(g,i),m=i.style;var v=i.rotation;r.styledMode||(m.color=p(i.color,m.color,e.color,"#000000"),"contrast"===m.color?(t.contrastColor=h.getContrast(t.color||e.color),m.color=!s(d)&&i.inside||0>d||n.stacking?t.contrastColor:y):delete t.contrastColor,n.cursor&&(m.cursor=n.cursor));var w={r:i.borderRadius||0,rotation:v,padding:i.padding,zIndex:1};if(!r.styledMode){d=i.backgroundColor;var x=i.borderColor;w.fill="auto"===d?t.color:d,w.stroke="auto"===x?t.color:x,w["stroke-width"]=i.borderWidth}u(w,function(t,e){void 0===t&&delete w[e]})}!c||A&&s(g)&&!!c.div==!!i.useHTML&&(c.rotation&&i.rotation||c.rotation===i.rotation)||(f=!0,t.dataLabel=c=t.dataLabel&&t.dataLabel.destroy(),t.dataLabels&&(1===t.dataLabels.length?delete t.dataLabels:delete t.dataLabels[a]),a||delete t.dataLabel,l&&(t.connector=t.connector.destroy(),t.connectors&&(1===t.connectors.length?delete t.connectors:delete t.connectors[a]))),A&&s(g)?(c?w.text=g:(t.dataLabels=t.dataLabels||[],c=t.dataLabels[a]=v?h.text(g,0,0,i.useHTML).addClass("highcharts-data-label"):h.label(g,0,0,i.shape,null,null,i.useHTML,null,"data-label"),a||(t.dataLabel=c),c.addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(i.className||"")+(i.useHTML?" highcharts-tracker":""))),c.options=i,c.attr(w),r.styledMode||c.css(m).shadow(i.shadow),(a=i[t.formatPrefix+"TextPath"]||i.textPath)&&!i.useHTML&&(c.setTextPath(t.getDataLabelPath&&t.getDataLabelPath(c)||t.graphic,a),t.dataLabelPath&&!a.enabled&&(t.dataLabelPath=t.dataLabelPath.destroy())),c.added||c.add(b),e.alignDataLabel(t,c,i,null,f)):c&&c.hide()})})}A(this,"afterDrawDataLabels")}function n(t,e,r,n,i,o){var s=this.chart,a=e.align,A=e.verticalAlign,l=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var h=e.y;h=void 0===h?0:h;var u=(r.x||0)+l;if(0>u){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=u;var p=!0}return(u=(r.x||0)+n.width-l)>s.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=s.plotWidth-u,p=!0),0>(u=r.y+l)&&("bottom"===A&&0<=h?(e.verticalAlign="top",e.inside=!0):h-=u,p=!0),(u=(r.y||0)+n.height-l)>s.plotHeight&&("top"===A&&0>=h?(e.verticalAlign="bottom",e.inside=!0):h+=s.plotHeight-u,p=!0),p&&(e.x=c,e.y=h,t.placed=!o,t.align(e,void 0,i)),p}function d(t,e){var r,n=[];if(l(t)&&!l(e))n=t.map(function(t){return h(t,e)});else if(l(e)&&!l(t))n=e.map(function(e){return h(t,e)});else if(l(t)||l(e))for(r=Math.max(t.length,e.length);r--;)n[r]=h(t[r],e[r]);else n=h(t,e);return n}function g(t,e,r,n,i){var o=this.chart,s=o.inverted,a=this.xAxis,A=a.reversed,l=s?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=s?i.x:A?-l-t:a.width-l+t,e.startYPos=s?A?this.yAxis.height-l+t:-l-t:i.y,n?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(r&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var m=[];t.compose=function(t){if(-1===m.indexOf(t)){var i=t.prototype;m.push(t),i.alignDataLabel=e,i.drawDataLabels=r,i.justifyDataLabel=n,i.setDataLabelStartPos=g}}}(n||(n={})),n}),e(r,"Series/Column/ColumnDataLabel.js",[r["Core/Series/DataLabel.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r){var n,i=e.series,o=r.merge,s=r.pick;return function(e){function r(t,e,r,n,a){var A=this.chart.inverted,l=t.series,c=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var h=t.dlBox||t.shapeArgs,u=s(t.below,t.plotY>s(this.translatedThreshold,l)),p=s(r.inside,!!this.options.stacking);h&&(0>(n=o(h)).y&&(n.height+=n.y,n.y=0),0<(h=n.y+n.height-l)&&h<n.height&&(n.height-=h),A&&(n={x:l-n.y-n.height,y:c-n.x-n.width,width:n.height,height:n.width}),p||(A?(n.x+=u?0:n.width,n.width=0):(n.y+=u?n.height:0,n.height=0))),r.align=s(r.align,!A||p?"center":u?"right":"left"),r.verticalAlign=s(r.verticalAlign,A||p?"middle":u?"top":"bottom"),i.prototype.alignDataLabel.call(this,t,e,r,n,a),r.inside&&t.contrastColor&&e.css({color:t.contrastColor})}var n=[];e.compose=function(e){t.compose(i),-1===n.indexOf(e)&&(n.push(e),e.prototype.alignDataLabel=r)}}(n||(n={})),n}),e(r,"Series/Bar/BarSeries.js",[r["Series/Column/ColumnSeries.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=r.extend,o=r.merge;return r=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return n(r,e),r.defaultOptions=o(t.defaultOptions,{}),r}(t),i(r.prototype,{inverted:!0}),e.registerSeriesType("bar",r),r}),e(r,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),e(r,"Series/Scatter/ScatterSeries.js",[r["Series/Scatter/ScatterSeriesDefaults.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=e.seriesTypes,o=i.column,s=i.line;i=r.addEvent;var a=r.extend,A=r.merge;return r=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return n(r,e),r.prototype.applyJitter=function(){var t=this,e=this.options.jitter,r=this.points.length;e&&this.points.forEach(function(n,i){["x","y"].forEach(function(o,s){var a="plot"+o.toUpperCase();if(e[o]&&!n.isNull){var A=t[o+"Axis"],l=e[o]*A.transA;if(A&&!A.isLog){var c=Math.max(0,n[a]-l);A=Math.min(A.len,n[a]+l),s=1e4*Math.sin(i+s*r),n[a]=c+(A-c)*(s-Math.floor(s)),"x"===o&&(n.clientX=n.plotX)}}})})},r.prototype.drawGraph=function(){this.options.lineWidth?e.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},r.defaultOptions=A(s.defaultOptions,t),r}(s),a(r.prototype,{drawTracker:o.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),i(r,"afterTranslate",function(){this.applyJitter()}),e.registerSeriesType("scatter",r),r}),e(r,"Series/CenteredUtilities.js",[r["Core/Globals.js"],r["Core/Series/Series.js"],r["Core/Utilities.js"]],function(t,e,r){var n,i=t.deg2rad,o=r.fireEvent,s=r.isNumber,a=r.pick,A=r.relativeLength;return function(t){t.getCenter=function(){var t=this.options,r=this.chart,n=2*(t.slicedOffset||0),i=r.plotWidth-2*n,l=r.plotHeight-2*n,c=t.center,h=Math.min(i,l),u=t.thickness,p=t.size,f=t.innerSize||0;for("string"==typeof p&&(p=parseFloat(p)),"string"==typeof f&&(f=parseFloat(f)),t=[a(c[0],"50%"),a(c[1],"50%"),a(p&&0>p?void 0:t.size,"100%"),a(f&&0>f?void 0:t.innerSize||0,"0%")],!r.angular||this instanceof e||(t[3]=0),c=0;4>c;++c)p=t[c],r=2>c||2===c&&/%$/.test(p),t[c]=A(p,[i,l,h,t[2]][c])+(r?n:0);return t[3]>t[2]&&(t[3]=t[2]),s(u)&&2*u<t[2]&&0<u&&(t[3]=t[2]-2*u),o(this,"afterGetCenter",{positions:t}),t},t.getStartAndEndRadians=function(t,e){return t=s(t)?t:0,e=s(e)&&e>t&&360>e-t?e:t+360,{start:i*(t+-90),end:i*(e+-90)}}}(n||(n={})),n}),e(r,"Series/Pie/PiePoint.js",[r["Core/Animation/AnimationUtilities.js"],r["Core/Series/Point.js"],r["Core/Utilities.js"]],function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=t.setAnimation,o=r.addEvent,s=r.defined;t=r.extend;var a=r.isNumber,A=r.pick,l=r.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return n(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,r=this.connectorShapes,n=e.connectorShape;return r[n]&&(n=r[n]),n.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=A(this.name,"Slice");var r=function(t){e.slice("select"===t.type)};return o(this,"select",r),o(this,"unselect",r),this},e.prototype.isValid=function(){return a(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var r=this,n=this.series,i=n.chart,o=n.options.ignoreHiddenPoint;e=A(e,o),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,n.options.data[n.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){r[e]&&r[e][t?"show":"hide"](t)}),this.legendItem&&i.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),o&&(n.isDirty=!0),e&&i.redraw())},e.prototype.slice=function(t,e,r){var n=this.series;i(r,n.chart),A(e,!0),this.sliced=this.options.sliced=s(t)?t:!this.sliced,n.options.data[n.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,r){var n=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],r.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*n.x-e.x,2*n.y-e.y,n.x,n.y]:["L",n.x,n.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,r){e=e.touchingSliceAt;var n=this.series,i=n.center[0],o=n.chart.plotWidth,s=n.chart.plotLeft;n=t.alignment;var a=this.shapeArgs.r;return r=l(r.crookDistance,1),r=["L",o="left"===n?i+a+(o+s-i-a)*(1-r):s+(i-a)*r,t.y],i=!0,("left"===n?o>t.x||o<e.x:o<t.x||o>e.x)&&(i=!1),t=[["M",t.x,t.y]],i&&t.push(r),t.push(["L",e.x,e.y]),t}}}),e}),e(r,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),e(r,"Series/Pie/PieSeries.js",[r["Series/CenteredUtilities.js"],r["Series/Column/ColumnSeries.js"],r["Core/Globals.js"],r["Core/Legend/LegendSymbol.js"],r["Series/Pie/PiePoint.js"],r["Series/Pie/PieSeriesDefaults.js"],r["Core/Series/Series.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Renderer/SVG/Symbols.js"],r["Core/Utilities.js"]],function(t,e,r,n,i,o,s,a,A,l){var c=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=t.getStartAndEndRadians;r=r.noop;var u=l.clamp,p=l.extend,f=l.fireEvent,d=l.merge,g=l.pick,m=l.relativeLength;return l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return c(e,t),e.prototype.animate=function(t){var e=this,r=e.points,n=e.startAngleRad;t||r.forEach(function(t){var r=t.graphic,i=t.shapeArgs;r&&i&&(r.attr({r:g(t.startR,e.center&&e.center[3]/2),start:n,end:n}),r.animate({r:i.r,start:i.start,end:i.end},e.options.animation))})},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,r=this.options;if(0===this.total&&this.center){var n=this.center[0],i=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(n,i,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:A.arc(n,i,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":r.borderWidth,fill:r.fillColor||"none",stroke:r.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,r){var n=this.center,i=this.radii?this.radii[r.index]||0:n[2]/2;return t=Math.asin(u((t-n[1])/(i+r.labelDistance),-1,1)),n[0]+(e?-1:1)*Math.cos(t)*(i+r.labelDistance)+(0<r.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,r,n,i=this,o=i.chart,s=o.renderer,a=i.options.shadow;this.drawEmpty(),!a||i.shadowGroup||o.styledMode||(i.shadowGroup=s.g("shadow").attr({zIndex:-1}).add(i.group)),i.points.forEach(function(A){var l={};if(e=A.graphic,!A.isNull&&e){var c=void 0;n=A.shapeArgs,t=A.getTranslate(),o.styledMode||(c=A.shadowGroup,a&&!c&&(c=A.shadowGroup=s.g("shadow").add(i.shadowGroup)),c&&c.attr(t),r=i.pointAttribs(A,A.selected&&"select")),A.delayedRendering?(e.setRadialReference(i.center).attr(n).attr(t),o.styledMode||e.attr(r).attr({"stroke-linejoin":"round"}).shadow(a,c),A.delayedRendering=!1):(e.setRadialReference(i.center),o.styledMode||d(!0,l,r),d(!0,l,n,t),e.animate(l)),e.attr({visibility:A.visible?"inherit":"hidden"}),e.addClass(A.getClassName(),!0)}else e&&(A.graphic=e.destroy())})},e.prototype.sortByAngle=function(t,e){t.sort(function(t,r){return void 0!==t.angle&&(r.angle-t.angle)*e})},e.prototype.translate=function(t){f(this,"translate"),this.generatePoints();var e=this.options,r=e.slicedOffset,n=r+(e.borderWidth||0),i=h(e.startAngle,e.endAngle),o=this.startAngleRad=i.start;i=(this.endAngleRad=i.end)-o;var s=this.points,a=e.dataLabels.distance;e=e.ignoreHiddenPoint;var A,l=s.length,c=0;for(t||(this.center=t=this.getCenter()),A=0;A<l;A++){var u=s[A],p=o+c*i;!u.isValid()||e&&!u.visible||(c+=u.percentage/100);var d=o+c*i,y={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*p)/1e3,end:Math.round(1e3*d)/1e3};u.shapeType="arc",u.shapeArgs=y,u.labelDistance=g(u.options.dataLabels&&u.options.dataLabels.distance,a),u.labelDistance=m(u.labelDistance,y.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,u.labelDistance),(d=(d+p)/2)>1.5*Math.PI?d-=2*Math.PI:d<-Math.PI/2&&(d+=2*Math.PI),u.slicedTranslation={translateX:Math.round(Math.cos(d)*r),translateY:Math.round(Math.sin(d)*r)},y=Math.cos(d)*t[2]/2;var v=Math.sin(d)*t[2]/2;u.tooltipPos=[t[0]+.7*y,t[1]+.7*v],u.half=d<-Math.PI/2||d>Math.PI/2?1:0,u.angle=d,p=Math.min(n,u.labelDistance/5),u.labelPosition={natural:{x:t[0]+y+Math.cos(d)*u.labelDistance,y:t[1]+v+Math.sin(d)*u.labelDistance},final:{},alignment:0>u.labelDistance?"center":u.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+y+Math.cos(d)*p,y:t[1]+v+Math.sin(d)*p},touchingSliceAt:{x:t[0]+y,y:t[1]+v}}}}f(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,r=e.length,n=this.options.ignoreHiddenPoint,i=0;for(t=0;t<r;t++){var o=e[t];!o.isValid()||n&&!o.visible||(i+=o.y)}for(this.total=i,t=0;t<r;t++)(o=e[t]).percentage=0<i&&(o.visible||!n)?o.y/i*100:0,o.total=i},e.defaultOptions=d(s.defaultOptions,o),e}(s),p(l.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:n.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:r,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:i,requireSorting:!1,searchPoint:r,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",l),l}),e(r,"Series/Pie/PieDataLabel.js",[r["Core/Series/DataLabel.js"],r["Core/Globals.js"],r["Core/Renderer/RendererUtilities.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(t,e,r,n,i){var o,s=e.noop,a=r.distribute,A=n.series,l=i.arrayMax,c=i.clamp,h=i.defined,u=i.merge,p=i.pick,f=i.relativeLength;return function(e){function r(){var t,e,r,n,i,o,s,c,f,d,g,m,y=this,v=y.data,b=y.chart,w=y.options.dataLabels||{},x=w.connectorPadding,B=b.plotWidth,C=b.plotHeight,_=b.plotLeft,E=Math.round(b.chartWidth/3),S=y.center,I=S[2]/2,F=S[1],T=[[],[]],k=[0,0,0,0],L=y.dataLabelPositioners;y.visible&&(w.enabled||y._hasPointLabels)&&(v.forEach(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),A.prototype.drawDataLabels.apply(y),v.forEach(function(t){t.dataLabel&&(t.visible?(T[t.half].push(t),t.dataLabel._pos=null,!h(w.style.width)&&!h(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>E&&(t.dataLabel.css({width:Math.round(.7*E)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),T.forEach(function(e,r){var A,l=e.length,u=[];if(l){if(y.sortByAngle(e,r-.5),0<y.maxLabelDistance){var v=Math.max(0,F-I-y.maxLabelDistance),E=Math.min(F+I+y.maxLabelDistance,b.plotHeight);e.forEach(function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,F-I-t.labelDistance),t.bottom=Math.min(F+I+t.labelDistance,b.plotHeight),A=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+A/2,size:A,rank:t.y},u.push(t.distributeBox))}),a(u,v=E+A-v,v/5)}for(g=0;g<l;g++){if(t=e[g],o=t.labelPosition,n=t.dataLabel,d=!1===t.visible?"hidden":"inherit",f=v=o.natural.y,u&&h(t.distributeBox)&&(void 0===t.distributeBox.pos?d="hidden":(s=t.distributeBox.size,f=L.radialDistributionY(t))),delete t.positionIndex,w.justify)c=L.justify(t,I,S);else switch(w.alignTo){case"connectors":c=L.alignToConnectors(e,r,B,_);break;case"plotEdges":c=L.alignToPlotEdges(n,r,B,_);break;default:c=L.radialDistributionX(y,t,f,v)}n._attr={visibility:d,align:o.alignment},m=t.options.dataLabels||{},n._pos={x:c+p(m.x,w.x)+({left:x,right:-x}[o.alignment]||0),y:f+p(m.y,w.y)-10},o.final.x=c,o.final.y=f,p(w.crop,!0)&&(i=n.getBBox().width,v=null,c-i<x&&1===r?(v=Math.round(i-c+x),k[3]=Math.max(v,k[3])):c+i>B-x&&0===r&&(v=Math.round(c+i-B+x),k[1]=Math.max(v,k[1])),0>f-s/2?k[0]=Math.max(Math.round(s/2-f),k[0]):f+s/2>C&&(k[2]=Math.max(Math.round(f+s/2-C),k[2])),n.sideOverflow=v)}}}),0===l(k)||this.verifyDataLabelOverflow(k))&&(this.placeDataLabels(),this.points.forEach(function(t){var i;m=u(w,t.options.dataLabels),(e=p(m.connectorWidth,1))&&(r=t.connector,(n=t.dataLabel)&&n._pos&&t.visible&&0<t.labelDistance?(d=n._attr.visibility,(i=!r)&&(t.connector=r=b.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(y.dataLabelsGroup),b.styledMode||r.attr({"stroke-width":e,stroke:m.connectorColor||t.color||"#666666"})),r[i?"attr":"animate"]({d:t.getConnectorPath()}),r.attr("visibility",d)):r&&(t.connector=r.destroy()))}))}function n(){this.points.forEach(function(t){var e,r=t.dataLabel;r&&t.visible&&((e=r._pos)?(r.sideOverflow&&(r._attr.width=Math.max(r.getBBox().width-r.sideOverflow,0),r.css({width:r._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),r.shortened=!0),r.attr(r._attr),r[r.moved?"animate":"attr"](e),r.moved=!0):r&&r.attr({y:-9999})),delete t.distributeBox},this)}function i(t){var e=this.center,r=this.options,n=r.center,i=r.minSize||80,o=null!==r.size;if(!o){if(null!==n[0])var s=Math.max(e[2]-Math.max(t[1],t[3]),i);else s=Math.max(e[2]-t[1]-t[3],i),e[0]+=(t[3]-t[1])/2;null!==n[1]?s=c(s,i,e[2]-Math.max(t[0],t[2])):(s=c(s,i,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),s<e[2]?(e[2]=s,e[3]=Math.min(r.thickness?Math.max(0,s-2*r.thickness):Math.max(0,f(r.innerSize||0,s)),s),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):o=!0}return o}var o=[],d={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,r,n){return t.getX(r<e.top+2||r>e.bottom-2?n:r,e.half,e)},justify:function(t,e,r){return r[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,r,n){return t=t.getBBox().width,e?t+n:r-t-n},alignToConnectors:function(t,e,r,n){var i,o=0;return t.forEach(function(t){(i=t.dataLabel.getBBox().width)>o&&(o=i)}),e?o+n:r-o-n}};e.compose=function(e){t.compose(A),-1===o.indexOf(e)&&(o.push(e),(e=e.prototype).dataLabelPositioners=d,e.alignDataLabel=s,e.drawDataLabels=r,e.placeDataLabels=n,e.verifyDataLabelOverflow=i)}}(o||(o={})),o}),e(r,"Extensions/OverlappingDataLabels.js",[r["Core/Chart/Chart.js"],r["Core/Utilities.js"]],function(t,e){function r(t,e){var r=!1;if(t){var n=t.newOpacity;t.oldOpacity!==n&&(t.alignAttr&&t.placed?(t[n?"removeClass":"addClass"]("highcharts-data-label-hidden"),r=!0,t.alignAttr.opacity=n,t[t.isOld?"animate":"attr"](t.alignAttr,null,function(){e.styledMode||t.css({pointerEvents:n?"auto":"none"})}),i(e,"afterHideOverlappingLabel")):t.attr({opacity:n})),t.isOld=!0}return r}var n=e.addEvent,i=e.fireEvent,o=e.isArray,s=e.isNumber,a=e.objectEach,A=e.pick;n(t,"render",function(){var t=this,e=[];(this.labelCollectors||[]).forEach(function(t){e=e.concat(t())}),(this.yAxis||[]).forEach(function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&a(t.stacking.stacks,function(t){a(t,function(t){t.label&&e.push(t.label)})})}),(this.series||[]).forEach(function(n){var i=n.options.dataLabels;n.visible&&(!1!==i.enabled||n._hasPointLabels)&&(i=function(n){return n.forEach(function(n){n.visible&&(o(n.dataLabels)?n.dataLabels:n.dataLabel?[n.dataLabel]:[]).forEach(function(i){var o=i.options;i.labelrank=A(o.labelrank,n.labelrank,n.shapeArgs&&n.shapeArgs.height),o.allowOverlap?(i.oldOpacity=i.opacity,i.newOpacity=1,r(i,t)):e.push(i)})})},i(n.nodes||[]),i(n.points))}),this.hideOverlappingLabels(e)}),t.prototype.hideOverlappingLabels=function(t){var e,n,o,a=this,A=t.length,l=a.renderer,c=!1,h=function(t){var e,r,n=t.box?0:t.padding||0,i=e=0;if(t&&(!t.alignAttr||t.placed)){var o=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},a=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=l.fontMetrics(null,t.element).h);var A=t.width-2*n;return(r={left:"0",center:"0.5",right:"1"}[t.alignValue])?i=+r*A:s(t.x)&&Math.round(t.x)!==t.translateX&&(i=t.x-t.translateX),{x:o.x+(a.translateX||0)+n-(i||0),y:o.y+(a.translateY||0)+n-e,width:t.width-2*n,height:t.height-2*n}}};for(n=0;n<A;n++)(e=t[n])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=h(e));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),n=0;n<A;n++){var u=(h=t[n])&&h.absoluteBox;for(e=n+1;e<A;++e){var p=(o=t[e])&&o.absoluteBox;!u||!p||h===o||0===h.newOpacity||0===o.newOpacity||"hidden"===h.visibility||"hidden"===o.visibility||p.x>=u.x+u.width||p.x+p.width<=u.x||p.y>=u.y+u.height||p.y+p.height<=u.y||((h.labelrank<o.labelrank?h:o).newOpacity=0)}}t.forEach(function(t){r(t,a)&&(c=!0)}),c&&i(a,"afterHideAllOverlappingLabels")}}),e(r,"Core/Responsive.js",[r["Core/Utilities.js"]],function(t){var e,r=t.extend,n=t.find,i=t.isArray,o=t.isObject,s=t.merge,a=t.objectEach,A=t.pick,l=t.splat,c=t.uniqueKey;return function(t){var e=[];t.compose=function(t){return-1===e.indexOf(t)&&(e.push(t),r(t.prototype,h.prototype)),t};var h=function(){function t(){}return t.prototype.currentOptions=function(t){var e=this,r={};return function t(r,n,s,A){var c;a(r,function(r,a){if(!A&&-1<e.collectionsWithUpdate.indexOf(a)&&n[a])for(r=l(r),s[a]=[],c=0;c<Math.max(r.length,n[a].length);c++)n[a][c]&&(void 0===r[c]?s[a][c]=n[a][c]:(s[a][c]={},t(r[c],n[a][c],s[a][c],A+1)));else o(r)?(s[a]=i(r)?[]:{},t(r,n[a]||{},s[a],A+1)):s[a]=void 0===n[a]?null:n[a]})}(t,this.options,r,0),r},t.prototype.matchResponsiveRule=function(t,e){var r=t.condition;(r.callback||function(){return this.chartWidth<=A(r.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=A(r.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=A(r.minWidth,0)&&this.chartHeight>=A(r.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var r=this,i=this.options.responsive,o=this.currentResponsive,a=[];!e&&i&&i.rules&&i.rules.forEach(function(t){void 0===t._id&&(t._id=c()),r.matchResponsiveRule(t,a)},this),e=s.apply(void 0,a.map(function(t){return n((i||{}).rules||[],function(e){return e._id===t})}).map(function(t){return t&&t.chartOptions})),e.isResponsiveOptions=!0,(a=a.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,t,!0),a?((o=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:a,mergedOptions:e,undoOptions:o},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e}),e(r,"masters/highcharts.src.js",[r["Core/Globals.js"],r["Core/Utilities.js"],r["Core/Defaults.js"],r["Core/Animation/Fx.js"],r["Core/Animation/AnimationUtilities.js"],r["Core/Renderer/HTML/AST.js"],r["Core/FormatUtilities.js"],r["Core/Renderer/RendererUtilities.js"],r["Core/Renderer/SVG/SVGElement.js"],r["Core/Renderer/SVG/SVGRenderer.js"],r["Core/Renderer/HTML/HTMLElement.js"],r["Core/Renderer/HTML/HTMLRenderer.js"],r["Core/Axis/Axis.js"],r["Core/Axis/DateTimeAxis.js"],r["Core/Axis/LogarithmicAxis.js"],r["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],r["Core/Axis/Tick.js"],r["Core/Tooltip.js"],r["Core/Series/Point.js"],r["Core/Pointer.js"],r["Core/MSPointer.js"],r["Core/Legend/Legend.js"],r["Core/Chart/Chart.js"],r["Core/Axis/Stacking/StackingAxis.js"],r["Core/Axis/Stacking/StackItem.js"],r["Core/Series/Series.js"],r["Core/Series/SeriesRegistry.js"],r["Series/Column/ColumnSeries.js"],r["Series/Column/ColumnDataLabel.js"],r["Series/Pie/PieSeries.js"],r["Series/Pie/PieDataLabel.js"],r["Core/Series/DataLabel.js"],r["Core/Responsive.js"],r["Core/Color/Color.js"],r["Core/Time.js"]],function(t,e,r,n,i,o,s,a,A,l,c,h,u,p,f,d,g,m,y,v,b,w,x,B,C,_,E,S,I,F,T,k,L,P,M){return t.animate=i.animate,t.animObject=i.animObject,t.getDeferredAnimation=i.getDeferredAnimation,t.setAnimation=i.setAnimation,t.stop=i.stop,t.timers=n.timers,t.AST=o,t.Axis=u,t.Chart=x,t.chart=x.chart,t.Fx=n,t.Legend=w,t.PlotLineOrBand=d,t.Point=y,t.Pointer=b.isRequired()?b:v,t.Series=_,t.StackItem=C,t.SVGElement=A,t.SVGRenderer=l,t.Tick=g,t.Time=M,t.Tooltip=m,t.Color=P,t.color=P.parse,h.compose(l),c.compose(A),t.defaultOptions=r.defaultOptions,t.getOptions=r.getOptions,t.time=r.defaultTime,t.setOptions=r.setOptions,t.dateFormat=s.dateFormat,t.format=s.format,t.numberFormat=s.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=a.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=E.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,I.compose(S),k.compose(_),p.compose(u),f.compose(u),T.compose(F),d.compose(u),L.compose(x),B.compose(u,x,_),t}),r["masters/highcharts.src.js"]._modules=r,r["masters/highcharts.src.js"]},t.exports?(o.default=o,t.exports=i.document?o(i):o):void 0===(n=function(){return o(i)}.call(e,r,e,t))||(t.exports=n)},69062(t,e,r){var n,i,o;o=function(t){function e(t,e,r,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,r),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}e(t=t?t._modules:{},"Core/Axis/SolidGaugeAxis.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(t,e){var r,n=t.parse,i=e.extend,o=e.merge;return function(t){var e={initDataClasses:function(t){var e,r=this.chart,i=0,s=this.options;this.dataClasses=e=[],t.dataClasses.forEach(function(a,A){a=o(a),e.push(a),a.color||("category"===s.dataClassColor?(A=r.options.colors,a.color=A[i++],i===A.length&&(i=0)):a.color=n(s.minColor).tweenTo(n(s.maxColor),A/(t.dataClasses.length-1)))})},initStops:function(t){this.stops=t.stops||[[0,this.options.minColor],[1,this.options.maxColor]],this.stops.forEach(function(t){t.color=n(t[1])})},toColor:function(t,e){var r,n=this.stops,i=this.dataClasses;if(i)for(r=i.length;r--;){var o=i[r],s=o.from;if(n=o.to,(void 0===s||t>=s)&&(void 0===n||t<=n)){var a=o.color;e&&(e.dataClass=r);break}}else{for(this.logarithmic&&(t=this.val2lin(t)),t=1-(this.max-t)/(this.max-this.min),r=n.length;r--&&!(t>n[r][0]););s=n[r]||n[r+1],t=1-((n=n[r+1]||s)[0]-t)/(n[0]-s[0]||1),a=s.color.tweenTo(n.color,t)}return a}};t.init=function(t){i(t,e)}}(r||(r={})),r}),e(t,"Series/SolidGauge/SolidGaugeSeriesDefaults.js",[],function(){return{colorByPoint:!0,dataLabels:{y:0}}}),e(t,"Series/SolidGauge/SolidGaugeComposition.js",[t["Core/Renderer/SVG/SVGRenderer.js"]],function(t){var e=(t=t.prototype).symbols.arc;t.symbols.arc=function(t,r,n,i,o){return t=e(t,r,n,i,o),o&&o.rounded&&(n=((o.r||n)-(o.innerR||0))/2,r=t[0],o=t[2],"M"===r[0]&&"L"===o[0]&&(r=["A",n,n,0,1,1,r[1],r[2]],t[2]=["A",n,n,0,1,1,o[1],o[2]],t[4]=r)),t}}),e(t,"Series/SolidGauge/SolidGaugeSeries.js",[t["Core/Legend/LegendSymbol.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Axis/SolidGaugeAxis.js"],t["Series/SolidGauge/SolidGaugeSeriesDefaults.js"],t["Core/Utilities.js"]],function(t,e,r,n,i){var o=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=e.seriesTypes,a=s.gauge,A=s.pie.prototype,l=i.clamp,c=i.extend,h=i.isNumber,u=i.merge,p=i.pick,f=i.pInt;return i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.points=void 0,e.options=void 0,e.axis=void 0,e.yAxis=void 0,e.startAngleRad=void 0,e.thresholdAngleRad=void 0,e}return o(e,t),e.prototype.translate=function(){var t=this.yAxis;r.init(t),!t.dataClasses&&t.options.dataClasses&&t.initDataClasses(t.options),t.initStops(t.options),a.prototype.translate.call(this)},e.prototype.drawPoints=function(){var t,e=this.yAxis,r=e.center,n=this.options,i=this.chart.renderer,o=n.overshoot;o=h(o)?o/180*Math.PI:0,h(n.threshold)&&(t=e.startAngleRad+e.translate(n.threshold,void 0,void 0,void 0,!0)),this.thresholdAngleRad=p(t,e.startAngleRad),t=0;for(var s=this.points;t<s.length;t++){var a=s[t];if(!a.isNull){var A=f(p(a.options.radius,n.radius,100))*r[2]/200,u=f(p(a.options.innerRadius,n.innerRadius,60))*r[2]/200,d=Math.min(e.startAngleRad,e.endAngleRad),g=Math.max(e.startAngleRad,e.endAngleRad),m=a.graphic,y=e.startAngleRad+e.translate(a.y,void 0,void 0,void 0,!0),v=e.toColor(a.y,a);"none"===v&&(v=a.color||this.color||"none"),"none"!==v&&(a.color=v),y=l(y,d-o,g+o),!1===n.wrap&&(y=l(y,d,g)),d=Math.min(y,this.thresholdAngleRad),(y=Math.max(y,this.thresholdAngleRad))-d>2*Math.PI&&(y=d+2*Math.PI),a.shapeArgs=u={x:r[0],y:r[1],r:A,innerR:u,start:d,end:y,rounded:n.rounded},a.startR=A,m?(A=u.d,m.animate(c({fill:v},u)),A&&(u.d=A)):a.graphic=m=i.arc(u).attr({fill:v,"sweep-flag":0}).add(this.group),this.chart.styledMode||("square"!==n.linecap&&m.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),m.attr({stroke:n.borderColor||"none","stroke-width":n.borderWidth||0})),m&&m.addClass(a.getClassName(),!0)}}},e.prototype.animate=function(t){t||(this.startAngleRad=this.thresholdAngleRad,A.animate.call(this,t))},e.defaultOptions=u(a.defaultOptions,n),e}(a),c(i.prototype,{drawLegendSymbol:t.drawRectangle}),e.registerSeriesType("solidgauge",i),i}),e(t,"masters/modules/solid-gauge.src.js",[],function(){})},t.exports?(o.default=o,t.exports=o):(n=[r(66044),r(29132)],void 0===(i=function(t){return o(t),o.Highcharts=t,o}.apply(e,n))||(t.exports=i))},52519(t,e,r){"use strict";var n=r(61631),i=r(94209),o=r(35578);function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),r=i.toArray(t.nonce,t.nonceEnc||"hex"),n=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=s,s.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},s.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=i.toArray(t,e),r=i.toArray(r,n),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},s.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,t);return this._update(r),this._reseed++,i.encode(s,e)}},4674(t,e,r){"use strict";var n=r(17020),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function A(t){return n.isMemo(t)?s:a[t.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var l=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;t.exports=function t(e,r,n){if("string"!=typeof r){if(f){var i=p(r);i&&i!==f&&t(e,i,n)}var s=c(r);h&&(s=s.concat(h(r)));for(var a=A(e),d=A(r),g=0;g<s.length;++g){var m=s[g];if(!(o[m]||n&&n[m]||d&&d[m]||a&&a[m])){var y=u(r,m);try{l(e,m,y)}catch(t){}}}}return e}},20743(t,e,r){var n;!function(){var i=Object.assign||function(t){for(var e,r=1;r<arguments.length;r++)for(var n in e=arguments[r])v(e,n)&&(t[n]=e[n]);return t},o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},s=c(["χρόνος","χρόνια"],["μήνας","μήνες"],["εβδομάδα","εβδομάδες"],["μέρα","μέρες"],["ώρα","ώρες"],["λεπτό","λεπτά"],["δευτερόλεπτο","δευτερόλεπτα"],["χιλιοστό του δευτερολέπτου","χιλιοστά του δευτερολέπτου"],","),a={af:c(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:A("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:i(A(function(t){return["سنة","سنتان","سنوات"][f(t)]},function(t){return["شهر","شهران","أشهر"][f(t)]},function(t){return["أسبوع","أسبوعين","أسابيع"][f(t)]},function(t){return["يوم","يومين","أيام"][f(t)]},function(t){return["ساعة","ساعتين","ساعات"][f(t)]},function(t){return["دقيقة","دقيقتان","دقائق"][f(t)]},function(t){return["ثانية","ثانيتان","ثواني"][f(t)]},function(t){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][f(t)]},","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:p(["години","година","години"],["месеца","месец","месеца"],["седмици","седмица","седмици"],["дни","ден","дни"],["часа","час","часа"],["минути","минута","минути"],["секунди","секунда","секунди"],["милисекунди","милисекунда","милисекунди"]),bn:A("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:c(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:A("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:A(function(t){return["rok","roku","roky","let"][g(t)]},function(t){return["měsíc","měsíce","měsíce","měsíců"][g(t)]},function(t){return["týden","týdne","týdny","týdnů"][g(t)]},function(t){return["den","dne","dny","dní"][g(t)]},function(t){return["hodina","hodiny","hodiny","hodin"][g(t)]},function(t){return["minuta","minuty","minuty","minut"][g(t)]},function(t){return["sekunda","sekundy","sekundy","sekund"][g(t)]},function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][g(t)]},","),cy:A("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:c(["år","år"],["måned","måneder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:c(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:s,en:c(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:c(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:c(["año","años"],["mes","meses"],["semana","semanas"],["día","días"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:c(["aasta","aastat"],["kuu","kuud"],["nädal","nädalat"],["päev","päeva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:A("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:A("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:c(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["päivä","päivää"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:c(["ár","ár"],["mánaður","mánaðir"],["vika","vikur"],["dagur","dagar"],["tími","tímar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:A(function(t){return"an"+(t>=2?"s":"")},"mois",function(t){return"semaine"+(t>=2?"s":"")},function(t){return"jour"+(t>=2?"s":"")},function(t){return"heure"+(t>=2?"s":"")},function(t){return"minute"+(t>=2?"s":"")},function(t){return"seconde"+(t>=2?"s":"")},function(t){return"milliseconde"+(t>=2?"s":"")},","),gr:s,he:c(["שנה","שנים"],["חודש","חודשים"],["שבוע","שבועות"],["יום","ימים"],["שעה","שעות"],["דקה","דקות"],["שניה","שניות"],["מילישנייה","מילישניות"]),hr:A(function(t){return t%10==2||t%10==3||t%10==4?"godine":"godina"},function(t){return 1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci"},function(t){return t%10==1&&11!==t?"tjedan":"tjedna"},l(["dan","dana"]),function(t){return 1===t?"sat":2===t||3===t||4===t?"sata":"sati"},function(t){var e=t%10;return 2!==e&&3!==e&&4!==e||!(t<10||t>14)?"minuta":"minute"},function(t){var e=t%10;return 5===e||Math.floor(t)===t&&t>=10&&t<=19?"sekundi":1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi"},function(t){return 1===t?"milisekunda":t%10==2||t%10==3||t%10==4?"milisekunde":"milisekundi"},","),hi:A("साल",l(["महीना","महीने"]),l(["हफ़्ता","हफ्ते"]),"दिन",l(["घंटा","घंटे"]),"मिनट","सेकंड","मिलीसेकंड"),hu:A("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:A("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:c(["ár","ár"],["mánuður","mánuðir"],["vika","vikur"],["dagur","dagar"],["klukkutími","klukkutímar"],["mínúta","mínútur"],["sekúnda","sekúndur"],["millisekúnda","millisekúndur"]),it:c(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:A("年","ヶ月","週間","日","時間","分","秒","ミリ秒"),km:A("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:c(["ವರ್ಷ","ವರ್ಷಗಳು"],["ತಿಂಗಳು","ತಿಂಗಳುಗಳು"],["ವಾರ","ವಾರಗಳು"],["ದಿನ","ದಿನಗಳು"],["ಗಂಟೆ","ಗಂಟೆಗಳು"],["ನಿಮಿಷ","ನಿಮಿಷಗಳು"],["ಸೆಕೆಂಡ್","ಸೆಕೆಂಡುಗಳು"],["ಮಿಲಿಸೆಕೆಂಡ್","ಮಿಲಿಸೆಕೆಂಡುಗಳು"]),ko:A("년","개월","주일","일","시간","분","초","밀리 초"),ku:A("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:A("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:A(function(t){return t%10==0||t%100>=10&&t%100<=20?"metų":"metai"},function(t){return["mėnuo","mėnesiai","mėnesių"][m(t)]},function(t){return["savaitė","savaitės","savaičių"][m(t)]},function(t){return["diena","dienos","dienų"][m(t)]},function(t){return["valanda","valandos","valandų"][m(t)]},function(t){return["minutė","minutės","minučių"][m(t)]},function(t){return["sekundė","sekundės","sekundžių"][m(t)]},function(t){return["milisekundė","milisekundės","milisekundžių"][m(t)]},","),lv:A(function(t){return y(t)?"gads":"gadi"},function(t){return y(t)?"mēnesis":"mēneši"},function(t){return y(t)?"nedēļa":"nedēļas"},function(t){return y(t)?"diena":"dienas"},function(t){return y(t)?"stunda":"stundas"},function(t){return y(t)?"minūte":"minūtes"},function(t){return y(t)?"sekunde":"sekundes"},function(t){return y(t)?"milisekunde":"milisekundes"},","),mk:c(["година","години"],["месец","месеци"],["недела","недели"],["ден","дена"],["час","часа"],["минута","минути"],["секунда","секунди"],["милисекунда","милисекунди"],","),mn:A("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:A(l(["वर्ष","वर्षे"]),l(["महिना","महिने"]),l(["आठवडा","आठवडे"]),"दिवस","तास",l(["मिनिट","मिनिटे"]),"सेकंद","मिलिसेकंद"),ms:A("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:c(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:c(["år","år"],["måned","måneder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:A(function(t){return["rok","roku","lata","lat"][d(t)]},function(t){return["miesiąc","miesiąca","miesiące","miesięcy"][d(t)]},function(t){return["tydzień","tygodnia","tygodnie","tygodni"][d(t)]},function(t){return["dzień","dnia","dni","dni"][d(t)]},function(t){return["godzina","godziny","godziny","godzin"][d(t)]},function(t){return["minuta","minuty","minuty","minut"][d(t)]},function(t){return["sekunda","sekundy","sekundy","sekund"][d(t)]},function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][d(t)]},","),pt:c(["ano","anos"],["mês","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:A(h("an","ani","de ani"),h("lună","luni","de luni"),h("săptămână","săptămâni","de săptămâni"),h("zi","zile","de zile"),h("oră","ore","de ore"),h("minut","minute","de minute"),h("secundă","secunde","de secunde"),h("milisecundă","milisecunde","de milisecunde"),","),ru:p(["лет","год","года"],["месяцев","месяц","месяца"],["недель","неделя","недели"],["дней","день","дня"],["часов","час","часа"],["минут","минута","минуты"],["секунд","секунда","секунды"],["миллисекунд","миллисекунда","миллисекунды"]),sq:A(l(["vit","vjet"]),"muaj","javë","ditë","orë",function(t){return"minut"+(1===t?"ë":"a")},function(t){return"sekond"+(1===t?"ë":"a")},function(t){return"milisekond"+(1===t?"ë":"a")},","),sr:p(["години","година","године"],["месеци","месец","месеца"],["недељи","недеља","недеље"],["дани","дан","дана"],["сати","сат","сата"],["минута","минут","минута"],["секунди","секунда","секунде"],["милисекунди","милисекунда","милисекунде"]),sr_Latn:p(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:c(["வருடம்","ஆண்டுகள்"],["மாதம்","மாதங்கள்"],["வாரம்","வாரங்கள்"],["நாள்","நாட்கள்"],["மணி","மணிநேரம்"],["நிமிடம்","நிமிடங்கள்"],["வினாடி","வினாடிகள்"],["மில்லி விநாடி","மில்லி விநாடிகள்"]),te:c(["సంవత్సరం","సంవత్సరాల"],["నెల","నెలల"],["వారం","వారాలు"],["రోజు","రోజులు"],["గంట","గంటలు"],["నిమిషం","నిమిషాలు"],["సెకను","సెకన్లు"],["మిల్లీసెకన్","మిల్లీసెకన్లు"]),uk:p(["років","рік","роки"],["місяців","місяць","місяці"],["тижнів","тиждень","тижні"],["днів","день","дні"],["годин","година","години"],["хвилин","хвилина","хвилини"],["секунд","секунда","секунди"],["мілісекунд","мілісекунда","мілісекунди"]),ur:A("سال",l(["مہینہ","مہینے"]),l(["ہفتہ","ہفتے"]),"دن",l(["گھنٹہ","گھنٹے"]),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:A(function(t){return["rok","roky","roky","rokov"][g(t)]},function(t){return["mesiac","mesiace","mesiace","mesiacov"][g(t)]},function(t){return["týždeň","týždne","týždne","týždňov"][g(t)]},function(t){return["deň","dni","dni","dní"][g(t)]},function(t){return["hodina","hodiny","hodiny","hodín"][g(t)]},function(t){return["minúta","minúty","minúty","minút"][g(t)]},function(t){return["sekunda","sekundy","sekundy","sekúnd"][g(t)]},function(t){return["milisekunda","milisekundy","milisekundy","milisekúnd"][g(t)]},","),sl:A(function(t){return t%10==1?"leto":t%100==2?"leti":t%100==3||t%100==4||Math.floor(t)!==t&&t%100<=5?"leta":"let"},function(t){return t%10==1?"mesec":t%100==2||Math.floor(t)!==t&&t%100<=5?"meseca":t%10==3||t%10==4?"mesece":"mesecev"},function(t){return t%10==1?"teden":t%10==2||Math.floor(t)!==t&&t%100<=4?"tedna":t%10==3||t%10==4?"tedne":"tednov"},function(t){return t%100==1?"dan":"dni"},function(t){return t%10==1?"ura":t%100==2?"uri":t%10==3||t%10==4||Math.floor(t)!==t?"ure":"ur"},function(t){return t%10==1?"minuta":t%10==2?"minuti":t%10==3||t%10==4||Math.floor(t)!==t&&t%100<=4?"minute":"minut"},function(t){return t%10==1?"sekunda":t%100==2?"sekundi":t%100==3||t%100==4||Math.floor(t)!==t?"sekunde":"sekund"},function(t){return t%10==1?"milisekunda":t%100==2?"milisekundi":t%100==3||t%100==4||Math.floor(t)!==t?"milisekunde":"milisekund"},","),sv:c(["år","år"],["månad","månader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:i(c(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:A("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:A("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:A("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:A("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:A("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:A("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:A("年","個月","周","天","小時","分鐘","秒","毫秒")};function A(t,e,r,n,i,o,s,a,A){var l={y:t,mo:e,w:r,d:n,h:i,m:o,s,ms:a};return A&&(l.decimal=A),l}function l(t){return function(e){return 1===e?t[0]:t[1]}}function c(t,e,r,n,i,o,s,a,c){return A(l(t),l(e),l(r),l(n),l(i),l(o),l(s),l(a),c)}function h(t,e,r){return function(n){if(1===n)return t;if(Math.floor(n)!==n||0===n)return e;var i=n%100;return i>=1&&i<=19?e:r}}function u(t){return function(e){return Math.floor(e)!==e?t[2]:e%100>=5&&e%100<=20||e%10>=5&&e%10<=9||e%10==0?t[0]:e%10==1?t[1]:e>1?t[2]:t[1]}}function p(t,e,r,n,i,o,s,a){return A(u(t),u(e),u(r),u(n),u(i),u(o),u(s),u(a),",")}function f(t){return 2===t?1:t>2&&t<11?2:0}function d(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&!(t%100>10&&t%100<20)?2:3}function g(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3}function m(t){return 1===t||t%10==1&&t%100>20?0:Math.floor(t)!==t||t%10>=2&&t%100>20||t%10>=2&&t%100<10?1:2}function y(t){return t%10==1&&t%100!=11}function v(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function b(t,e,r){var n,i,o,s=t.unitName,a=t.unitCount,A=r.spacer,l=r.maxDecimalPoints;n=v(r,"decimal")?r.decimal:v(e,"decimal")?e.decimal:".","digitReplacements"in r?i=r.digitReplacements:"_digitReplacements"in e&&(i=e._digitReplacements);var c=(void 0===l?a:Math.floor(a*Math.pow(10,l))/Math.pow(10,l)).toString();if(e._hideCountIf2&&2===a)o="",A="";else if(i){o="";for(var h=0;h<c.length;h++){var u=c[h];o+="."===u?n:i[u]}}else o=c.replace(".",n);var p,f=e[s];return p="function"==typeof f?f(a):f,e._numberFirst?p+A+o:o+A+p}function w(t){var e=function(t,r){t=Math.abs(t);var n=i({},e,r||{}),s=function(t,e){var r,n,i,o,s=e.units,a=e.unitMeasures,A="largest"in e?e.largest:1/0;if(!s.length)return[];var l={};for(o=t,n=0;n<s.length;n++){var c=a[r=s[n]];i=n===s.length-1?o/c:Math.floor(o/c),l[r]=i,o-=i*c}if(e.round){var h=A;for(n=0;n<s.length;n++)if(0!==(i=l[r=s[n]])&&0===--h){for(var u=n+1;u<s.length;u++){var p=s[u],f=l[p];l[r]+=f*a[p]/a[r],l[p]=0}break}for(n=s.length-1;n>=0;n--)if(0!==(i=l[r=s[n]])){var d=Math.round(i);if(l[r]=d,0===n)break;var g=s[n-1],m=a[g],y=Math.floor(d*a[r]/m);if(!y)break;l[g]+=y,l[r]=0}}var v=[];for(n=0;n<s.length&&v.length<A;n++)(i=l[r=s[n]])&&v.push({unitName:r,unitCount:i});return v}(t,n);return function(t,e){var r=function(t){var e=[t.language];if(v(t,"fallbacks")){if(!o(t.fallbacks)||!t.fallbacks.length)throw new Error("fallbacks must be an array with at least one element");e=e.concat(t.fallbacks)}for(var r=0;r<e.length;r++){var n=e[r];if(v(t.languages,n))return t.languages[n];if(v(a,n))return a[n]}throw new Error("No language found.")}(e);if(!t.length){var n=e.units;return b({unitName:n[n.length-1],unitCount:0},r,e)}var i,s=e.conjunction,A=e.serialComma;i=v(e,"delimiter")?e.delimiter:v(r,"delimiter")?r.delimiter:", ";for(var l=[],c=0;c<t.length;c++)l.push(b(t[c],r,e));return s&&1!==t.length?2===t.length?l.join(s):l.slice(0,-1).join(i)+(A?",":"")+s+l.slice(-1):l.join(i)}(s,n)};return i(e,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},t)}var x=i(w({}),{getSupportedLanguages:function(){var t=[];for(var e in a)v(a,e)&&"gr"!==e&&t.push(e);return t},humanizer:w});void 0===(n=function(){return x}.call(e,r,e,t))||(t.exports=n)}()},63328(t,e){e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,A=(1<<a)-1,l=A>>1,c=-7,h=r?i-1:0,u=r?-1:1,p=t[e+h];for(h+=u,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=u,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+h],h+=u,c-=8);if(0===o)o=1-l;else{if(o===A)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=l}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,A,l=8*o-i-1,c=(1<<l)-1,h=c>>1,u=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,f=n?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(A=Math.pow(2,-s))<1&&(s--,A*=2),(e+=s+h>=1?u/A:u*Math.pow(2,1-h))*A>=2&&(s++,A/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*A-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=f,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[r+p]=255&s,p+=f,s/=256,l-=8);t[r+p-f]|=128*d}},21829(t){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function r(t){return s(t)?t:V(t)}function n(t){return a(t)?t:z(t)}function i(t){return A(t)?t:G(t)}function o(t){return s(t)&&!l(t)?t:K(t)}function s(t){return!(!t||!t[h])}function a(t){return!(!t||!t[u])}function A(t){return!(!t||!t[p])}function l(t){return a(t)||A(t)}function c(t){return!(!t||!t[f])}e(n,r),e(i,r),e(o,r),r.isIterable=s,r.isKeyed=a,r.isIndexed=A,r.isAssociative=l,r.isOrdered=c,r.Keyed=n,r.Indexed=i,r.Set=o;var h="@@__IMMUTABLE_ITERABLE__@@",u="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",f="@@__IMMUTABLE_ORDERED__@@",d="delete",g=32,m=31,y={},v={value:!1},b={value:!1};function w(t){return t.value=!1,t}function x(t){t&&(t.value=!0)}function B(){}function C(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function _(t){return void 0===t.size&&(t.size=t.__iterate(S)),t.size}function E(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?_(t)+e:e}function S(){return!0}function I(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function F(t,e){return k(t,e,0)}function T(t,e){return k(t,e,e)}function k(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var L="function"==typeof Symbol&&Symbol.iterator,P="@@iterator",M=L||P;function D(t){this.next=t}function N(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function O(){return{value:void 0,done:!0}}function U(t){return!!j(t)}function Q(t){return t&&"function"==typeof t.next}function R(t){var e=j(t);return e&&e.call(t)}function j(t){var e=t&&(L&&t[L]||t[P]);if("function"==typeof e)return e}function H(t){return t&&"number"==typeof t.length}function V(t){return null==t?rt():s(t)?t.toSeq():function(t){var e=ot(t)||"object"==typeof t&&new Z(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function z(t){return null==t?rt().toKeyedSeq():s(t)?a(t)?t.toSeq():t.fromEntrySeq():nt(t)}function G(t){return null==t?rt():s(t)?a(t)?t.entrySeq():t.toIndexedSeq():it(t)}function K(t){return(null==t?rt():s(t)?a(t)?t.entrySeq():t:it(t)).toSetSeq()}D.prototype.toString=function(){return"[Iterator]"},D.KEYS=0,D.VALUES=1,D.ENTRIES=2,D.prototype.inspect=D.prototype.toSource=function(){return this.toString()},D.prototype[M]=function(){return this},e(V,r),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(t,e){return st(this,t,e,!0)},V.prototype.__iterator=function(t,e){return at(this,t,e,!0)},e(z,V),z.prototype.toKeyedSeq=function(){return this},e(G,V),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(t,e){return st(this,t,e,!1)},G.prototype.__iterator=function(t,e){return at(this,t,e,!1)},e(K,V),K.of=function(){return K(arguments)},K.prototype.toSetSeq=function(){return this},V.isSeq=et,V.Keyed=z,V.Set=K,V.Indexed=G;var q,W,Y,X="@@__IMMUTABLE_SEQ__@@";function J(t){this._array=t,this.size=t.length}function Z(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function $(t){this._iterable=t,this.size=t.length||t.size}function tt(t){this._iterator=t,this._iteratorCache=[]}function et(t){return!(!t||!t[X])}function rt(){return q||(q=new J([]))}function nt(t){var e=Array.isArray(t)?new J(t).fromEntrySeq():Q(t)?new tt(t).fromEntrySeq():U(t)?new $(t).fromEntrySeq():"object"==typeof t?new Z(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function it(t){var e=ot(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ot(t){return H(t)?new J(t):Q(t)?new tt(t):U(t)?new $(t):void 0}function st(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,s=0;s<=o;s++){var a=i[r?o-s:s];if(!1===e(a[1],n?a[0]:s,t))return s+1}return s}return t.__iterateUncached(e,r)}function at(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,s=0;return new D(function(){var t=i[r?o-s:s];return s++>o?{value:void 0,done:!0}:N(e,n?t[0]:s-1,t[1])})}return t.__iteratorUncached(e,r)}function At(t,e){return e?lt(e,t,"",{"":t}):ct(t)}function lt(t,e,r,n){return Array.isArray(e)?t.call(n,r,G(e).map(function(r,n){return lt(t,r,n,e)})):ht(e)?t.call(n,r,z(e).map(function(r,n){return lt(t,r,n,e)})):e}function ct(t){return Array.isArray(t)?G(t).map(ct).toList():ht(t)?z(t).map(ct).toMap():t}function ht(t){return t&&(t.constructor===Object||void 0===t.constructor)}function ut(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function pt(t,e){if(t===e)return!0;if(!s(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||A(t)!==A(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!l(t);if(c(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&ut(i[1],t)&&(r||ut(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var h=!0,u=e.__iterate(function(e,n){if(r?!t.has(e):i?!ut(e,t.get(n,y)):!ut(t.get(n,y),e))return h=!1,!1});return h&&t.size===u}function ft(t,e){if(!(this instanceof ft))return new ft(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(W)return W;W=this}}function dt(t,e){if(!t)throw new Error(e)}function gt(t,e,r){if(!(this instanceof gt))return new gt(t,e,r);if(dt(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Y)return Y;Y=this}}function mt(){throw TypeError("Abstract")}function yt(){}function vt(){}function bt(){}V.prototype[X]=!0,e(J,G),J.prototype.get=function(t,e){return this.has(t)?this._array[E(this,t)]:e},J.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(!1===t(r[e?n-i:i],i,this))return i+1;return i},J.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new D(function(){return i>n?{value:void 0,done:!0}:N(t,i,r[e?n-i++:i++])})},e(Z,z),Z.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},Z.prototype.has=function(t){return this._object.hasOwnProperty(t)},Z.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var s=n[e?i-o:o];if(!1===t(r[s],s,this))return o+1}return o},Z.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new D(function(){var s=n[e?i-o:o];return o++>i?{value:void 0,done:!0}:N(t,s,r[s])})},Z.prototype[f]=!0,e($,G),$.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=R(this._iterable),n=0;if(Q(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},$.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=R(this._iterable);if(!Q(r))return new D(O);var n=0;return new D(function(){var e=r.next();return e.done?e:N(t,n++,e.value)})},e(tt,G),tt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r,n=this._iterator,i=this._iteratorCache,o=0;o<i.length;)if(!1===t(i[o],o++,this))return o;for(;!(r=n.next()).done;){var s=r.value;if(i[o]=s,!1===t(s,o++,this))break}return o},tt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new D(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return N(t,i,n[i++])})},e(ft,G),ft.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ft.prototype.get=function(t,e){return this.has(t)?this._value:e},ft.prototype.includes=function(t){return ut(this._value,t)},ft.prototype.slice=function(t,e){var r=this.size;return I(t,e,r)?this:new ft(this._value,T(e,r)-F(t,r))},ft.prototype.reverse=function(){return this},ft.prototype.indexOf=function(t){return ut(this._value,t)?0:-1},ft.prototype.lastIndexOf=function(t){return ut(this._value,t)?this.size:-1},ft.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(!1===t(this._value,r,this))return r+1;return r},ft.prototype.__iterator=function(t,e){var r=this,n=0;return new D(function(){return n<r.size?N(t,n++,r._value):{value:void 0,done:!0}})},ft.prototype.equals=function(t){return t instanceof ft?ut(this._value,t._value):pt(t)},e(gt,G),gt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},gt.prototype.get=function(t,e){return this.has(t)?this._start+E(this,t)*this._step:e},gt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},gt.prototype.slice=function(t,e){return I(t,e,this.size)?this:(t=F(t,this.size),(e=T(e,this.size))<=t?new gt(0,0):new gt(this.get(t,this._end),this.get(e,this._end),this._step))},gt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},gt.prototype.lastIndexOf=function(t){return this.indexOf(t)},gt.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===t(i,o,this))return o+1;i+=e?-n:n}return o},gt.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new D(function(){var s=i;return i+=e?-n:n,o>r?{value:void 0,done:!0}:N(t,o++,s)})},gt.prototype.equals=function(t){return t instanceof gt?this._start===t._start&&this._end===t._end&&this._step===t._step:pt(this,t)},e(mt,r),e(yt,mt),e(vt,mt),e(bt,mt),mt.Keyed=yt,mt.Indexed=vt,mt.Set=bt;var wt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function xt(t){return t>>>1&1073741824|3221225471&t}function Bt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)r^=t/=4294967295;return xt(r)}if("string"===e)return t.length>kt?function(t){var e=Mt[t];return void 0===e&&(e=Ct(t),Pt===Lt&&(Pt=0,Mt={}),Pt++,Mt[t]=e),e}(t):Ct(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(It&&void 0!==(e=St.get(t)))return e;if(void 0!==(e=t[Tt]))return e;if(!Et){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Tt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++Ft,1073741824&Ft&&(Ft=0),It)St.set(t,e);else{if(void 0!==_t&&!1===_t(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Et)Object.defineProperty(t,Tt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Tt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Tt]=e}}return e}(t);if("function"==typeof t.toString)return Ct(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function Ct(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return xt(e)}var _t=Object.isExtensible,Et=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();var St,It="function"==typeof WeakMap;It&&(St=new WeakMap);var Ft=0,Tt="__immutablehash__";"function"==typeof Symbol&&(Tt=Symbol(Tt));var kt=16,Lt=255,Pt=0,Mt={};function Dt(t){dt(t!==1/0,"Cannot perform this action with an infinite size.")}function Nt(t){return null==t?Xt():Ot(t)&&!c(t)?t:Xt().withMutations(function(e){var r=n(t);Dt(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function Ot(t){return!(!t||!t[Qt])}e(Nt,yt),Nt.prototype.toString=function(){return this.__toString("Map {","}")},Nt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Nt.prototype.set=function(t,e){return Jt(this,t,e)},Nt.prototype.setIn=function(t,e){return this.updateIn(t,y,function(){return e})},Nt.prototype.remove=function(t){return Jt(this,t,y)},Nt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return y})},Nt.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},Nt.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=oe(this,er(t),e,r);return n===y?void 0:n},Nt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Xt()},Nt.prototype.merge=function(){return ee(this,void 0,arguments)},Nt.prototype.mergeWith=function(e){return ee(this,e,t.call(arguments,1))},Nt.prototype.mergeIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,Xt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,r):r[r.length-1]})},Nt.prototype.mergeDeep=function(){return ee(this,re,arguments)},Nt.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return ee(this,ne(e),r)},Nt.prototype.mergeDeepIn=function(e){var r=t.call(arguments,1);return this.updateIn(e,Xt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,r):r[r.length-1]})},Nt.prototype.sort=function(t){return Ie(ze(this,t))},Nt.prototype.sortBy=function(t,e){return Ie(ze(this,e,t))},Nt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Nt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new B)},Nt.prototype.asImmutable=function(){return this.__ensureOwner()},Nt.prototype.wasAltered=function(){return this.__altered},Nt.prototype.__iterator=function(t,e){return new Kt(this,t,e)},Nt.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},Nt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Yt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Nt.isMap=Ot;var Ut,Qt="@@__IMMUTABLE_MAP__@@",Rt=Nt.prototype;function jt(t,e){this.ownerID=t,this.entries=e}function Ht(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function Vt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function zt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function Gt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function Kt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Wt(t._root)}function qt(t,e){return N(t,e[0],e[1])}function Wt(t,e){return{node:t,index:0,__prev:e}}function Yt(t,e,r,n){var i=Object.create(Rt);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Xt(){return Ut||(Ut=Yt(0))}function Jt(t,e,r){var n,i;if(t._root){var o=w(v),s=w(b);if(n=Zt(t._root,t.__ownerID,0,void 0,e,r,o,s),!s.value)return t;i=t.size+(o.value?r===y?-1:1:0)}else{if(r===y)return t;i=1,n=new jt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Yt(i,n):Xt()}function Zt(t,e,r,n,i,o,s,a){return t?t.update(e,r,n,i,o,s,a):o===y?t:(x(a),x(s),new Gt(e,n,[i,o]))}function $t(t){return t.constructor===Gt||t.constructor===zt}function te(t,e,r,n,i){if(t.keyHash===n)return new zt(e,n,[t.entry,i]);var o,s=(0===r?t.keyHash:t.keyHash>>>r)&m,a=(0===r?n:n>>>r)&m;return new Ht(e,1<<s|1<<a,s===a?[te(t,e,r+5,n,i)]:(o=new Gt(e,n,i),s<a?[t,o]:[o,t]))}function ee(t,e,r){for(var i=[],o=0;o<r.length;o++){var a=r[o],A=n(a);s(a)||(A=A.map(function(t){return At(t)})),i.push(A)}return ie(t,e,i)}function re(t,e,r){return t&&t.mergeDeep&&s(e)?t.mergeDeep(e):ut(t,e)?t:e}function ne(t){return function(e,r,n){if(e&&e.mergeDeepWith&&s(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return ut(e,i)?e:i}}function ie(t,e,r){return 0===(r=r.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var n=e?function(r,n){t.update(n,y,function(t){return t===y?r:e(t,r,n)})}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)}):t.constructor(r[0])}function oe(t,e,r,n){var i=t===y,o=e.next();if(o.done){var s=i?r:t,a=n(s);return a===s?t:a}dt(i||t&&t.set,"invalid keyPath");var A=o.value,l=i?y:t.get(A,y),c=oe(l,e,r,n);return c===l?t:c===y?t.remove(A):(i?Xt():t).set(A,c)}function se(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function ae(t,e,r,n){var i=n?t:C(t);return i[e]=r,i}Rt[Qt]=!0,Rt[d]=Rt.remove,Rt.removeIn=Rt.deleteIn,jt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(ut(r,i[o][0]))return i[o][1];return n},jt.prototype.update=function(t,e,r,n,i,o,s){for(var a=i===y,A=this.entries,l=0,c=A.length;l<c&&!ut(n,A[l][0]);l++);var h=l<c;if(h?A[l][1]===i:a)return this;if(x(s),(a||!h)&&x(o),!a||1!==A.length){if(!h&&!a&&A.length>=Ae)return function(t,e,r,n){t||(t=new B);for(var i=new Gt(t,Bt(r),[r,n]),o=0;o<e.length;o++){var s=e[o];i=i.update(t,0,void 0,s[0],s[1])}return i}(t,A,n,i);var u=t&&t===this.ownerID,p=u?A:C(A);return h?a?l===c-1?p.pop():p[l]=p.pop():p[l]=[n,i]:p.push([n,i]),u?(this.entries=p,this):new jt(t,p)}},Ht.prototype.get=function(t,e,r,n){void 0===e&&(e=Bt(r));var i=1<<((0===t?e:e>>>t)&m),o=this.bitmap;return 0===(o&i)?n:this.nodes[se(o&i-1)].get(t+5,e,r,n)},Ht.prototype.update=function(t,e,r,n,i,o,s){void 0===r&&(r=Bt(n));var a=(0===e?r:r>>>e)&m,A=1<<a,l=this.bitmap,c=0!==(l&A);if(!c&&i===y)return this;var h=se(l&A-1),u=this.nodes,p=c?u[h]:void 0,f=Zt(p,t,e+5,r,n,i,o,s);if(f===p)return this;if(!c&&f&&u.length>=le)return function(t,e,r,n,i){for(var o=0,s=new Array(g),a=0;0!==r;a++,r>>>=1)s[a]=1&r?e[o++]:void 0;return s[n]=i,new Vt(t,o+1,s)}(t,u,l,a,f);if(c&&!f&&2===u.length&&$t(u[1^h]))return u[1^h];if(c&&f&&1===u.length&&$t(f))return f;var d=t&&t===this.ownerID,v=c?f?l:l^A:l|A,b=c?f?ae(u,h,f,d):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,s=0;s<n;s++)s===e&&(o=1),i[s]=t[s+o];return i}(u,h,d):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),s=0,a=0;a<i;a++)a===e?(o[a]=r,s=-1):o[a]=t[a+s];return o}(u,h,f,d);return d?(this.bitmap=v,this.nodes=b,this):new Ht(t,v,b)},Vt.prototype.get=function(t,e,r,n){void 0===e&&(e=Bt(r));var i=(0===t?e:e>>>t)&m,o=this.nodes[i];return o?o.get(t+5,e,r,n):n},Vt.prototype.update=function(t,e,r,n,i,o,s){void 0===r&&(r=Bt(n));var a=(0===e?r:r>>>e)&m,A=i===y,l=this.nodes,c=l[a];if(A&&!c)return this;var h=Zt(c,t,e+5,r,n,i,o,s);if(h===c)return this;var u=this.count;if(c){if(!h&&--u<ce)return function(t,e,r,n){for(var i=0,o=0,s=new Array(r),a=0,A=1,l=e.length;a<l;a++,A<<=1){var c=e[a];void 0!==c&&a!==n&&(i|=A,s[o++]=c)}return new Ht(t,i,s)}(t,l,u,a)}else u++;var p=t&&t===this.ownerID,f=ae(l,a,h,p);return p?(this.count=u,this.nodes=f,this):new Vt(t,u,f)},zt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(ut(r,i[o][0]))return i[o][1];return n},zt.prototype.update=function(t,e,r,n,i,o,s){void 0===r&&(r=Bt(n));var a=i===y;if(r!==this.keyHash)return a?this:(x(s),x(o),te(this,t,e,r,[n,i]));for(var A=this.entries,l=0,c=A.length;l<c&&!ut(n,A[l][0]);l++);var h=l<c;if(h?A[l][1]===i:a)return this;if(x(s),(a||!h)&&x(o),a&&2===c)return new Gt(t,this.keyHash,A[1^l]);var u=t&&t===this.ownerID,p=u?A:C(A);return h?a?l===c-1?p.pop():p[l]=p.pop():p[l]=[n,i]:p.push([n,i]),u?(this.entries=p,this):new zt(t,this.keyHash,p)},Gt.prototype.get=function(t,e,r,n){return ut(r,this.entry[0])?this.entry[1]:n},Gt.prototype.update=function(t,e,r,n,i,o,s){var a=i===y,A=ut(n,this.entry[0]);return(A?i===this.entry[1]:a)?this:(x(s),a?void x(o):A?t&&t===this.ownerID?(this.entry[1]=i,this):new Gt(t,this.keyHash,[n,i]):(x(o),te(this,t,e,Bt(n),[n,i])))},jt.prototype.iterate=zt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},Ht.prototype.iterate=Vt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},Gt.prototype.iterate=function(t,e){return t(this.entry)},e(Kt,D),Kt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return qt(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return qt(t,n.entries[this._reverse?r-i:i])}else if(i<=(r=n.nodes.length-1)){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return qt(t,o.entry);e=this._stack=Wt(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var Ae=8,le=16,ce=8;function he(t){var e=we();if(null==t)return e;if(ue(t))return t;var r=i(t),n=r.size;return 0===n?e:(Dt(n),n>0&&n<g?be(0,n,5,null,new de(r.toArray())):e.withMutations(function(t){t.setSize(n),r.forEach(function(e,r){return t.set(r,e)})}))}function ue(t){return!(!t||!t[pe])}e(he,vt),he.of=function(){return this(arguments)},he.prototype.toString=function(){return this.__toString("List [","]")},he.prototype.get=function(t,e){if((t=E(this,t))>=0&&t<this.size){var r=Ce(this,t+=this._origin);return r&&r.array[t&m]}return e},he.prototype.set=function(t,e){return function(t,e,r){if((e=E(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?_e(t,e).set(0,r):_e(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=w(b);return e>=Se(t._capacity)?n=xe(n,t.__ownerID,0,e,r,o):i=xe(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):be(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},he.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},he.prototype.insert=function(t,e){return this.splice(t,0,e)},he.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):we()},he.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){_e(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},he.prototype.pop=function(){return _e(this,0,-1)},he.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){_e(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},he.prototype.shift=function(){return _e(this,1)},he.prototype.merge=function(){return Ee(this,void 0,arguments)},he.prototype.mergeWith=function(e){return Ee(this,e,t.call(arguments,1))},he.prototype.mergeDeep=function(){return Ee(this,re,arguments)},he.prototype.mergeDeepWith=function(e){var r=t.call(arguments,1);return Ee(this,ne(e),r)},he.prototype.setSize=function(t){return _e(this,0,t)},he.prototype.slice=function(t,e){var r=this.size;return I(t,e,r)?this:_e(this,F(t,r),T(e,r))},he.prototype.__iterator=function(t,e){var r=0,n=ve(this,e);return new D(function(){var e=n();return e===ye?{value:void 0,done:!0}:N(t,r++,e)})},he.prototype.__iterate=function(t,e){for(var r,n=0,i=ve(this,e);(r=i())!==ye&&!1!==t(r,n++,this););return n},he.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?be(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},he.isList=ue;var pe="@@__IMMUTABLE_LIST__@@",fe=he.prototype;function de(t,e){this.array=t,this.ownerID=e}fe[pe]=!0,fe[d]=fe.remove,fe.setIn=Rt.setIn,fe.deleteIn=fe.removeIn=Rt.removeIn,fe.update=Rt.update,fe.updateIn=Rt.updateIn,fe.mergeIn=Rt.mergeIn,fe.mergeDeepIn=Rt.mergeDeepIn,fe.withMutations=Rt.withMutations,fe.asMutable=Rt.asMutable,fe.asImmutable=Rt.asImmutable,fe.wasAltered=Rt.wasAltered,de.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&m;if(n>=this.array.length)return new de([],t);var i,o=0===n;if(e>0){var s=this.array[n];if((i=s&&s.removeBefore(t,e-5,r))===s&&o)return this}if(o&&!i)return this;var a=Be(this,t);if(!o)for(var A=0;A<n;A++)a.array[A]=void 0;return i&&(a.array[n]=i),a},de.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&m;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-5,r))===o&&i===this.array.length-1)return this}var s=Be(this,t);return s.array.splice(i+1),n&&(s.array[i]=n),s};var ge,me,ye={};function ve(t,e){var r=t._origin,n=t._capacity,i=Se(n),o=t._tail;return s(t._root,t._level,0);function s(t,a,A){return 0===a?function(t,s){var a=s===i?o&&o.array:t&&t.array,A=s>r?0:r-s,l=n-s;return l>g&&(l=g),function(){if(A===l)return ye;var t=e?--l:A++;return a&&a[t]}}(t,A):function(t,i,o){var a,A=t&&t.array,l=o>r?0:r-o>>i,c=1+(n-o>>i);return c>g&&(c=g),function(){for(;;){if(a){var t=a();if(t!==ye)return t;a=null}if(l===c)return ye;var r=e?--c:l++;a=s(A&&A[r],i-5,o+(r<<i))}}}(t,a,A)}}function be(t,e,r,n,i,o,s){var a=Object.create(fe);return a.size=e-t,a._origin=t,a._capacity=e,a._level=r,a._root=n,a._tail=i,a.__ownerID=o,a.__hash=s,a.__altered=!1,a}function we(){return ge||(ge=be(0,0,5))}function xe(t,e,r,n,i,o){var s,a=n>>>r&m,A=t&&a<t.array.length;if(!A&&void 0===i)return t;if(r>0){var l=t&&t.array[a],c=xe(l,e,r-5,n,i,o);return c===l?t:((s=Be(t,e)).array[a]=c,s)}return A&&t.array[a]===i?t:(x(o),s=Be(t,e),void 0===i&&a===s.array.length-1?s.array.pop():s.array[a]=i,s)}function Be(t,e){return e&&t&&e===t.ownerID?t:new de(t?t.array.slice():[],e)}function Ce(t,e){if(e>=Se(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&m],n-=5;return r}}function _e(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new B,i=t._origin,o=t._capacity,s=i+e,a=void 0===r?o:r<0?o+r:i+r;if(s===i&&a===o)return t;if(s>=a)return t.clear();for(var A=t._level,l=t._root,c=0;s+c<0;)l=new de(l&&l.array.length?[void 0,l]:[],n),c+=1<<(A+=5);c&&(s+=c,i+=c,a+=c,o+=c);for(var h=Se(o),u=Se(a);u>=1<<A+5;)l=new de(l&&l.array.length?[l]:[],n),A+=5;var p=t._tail,f=u<h?Ce(t,a-1):u>h?new de([],n):p;if(p&&u>h&&s<o&&p.array.length){for(var d=l=Be(l,n),g=A;g>5;g-=5){var y=h>>>g&m;d=d.array[y]=Be(d.array[y],n)}d.array[h>>>5&m]=p}if(a<o&&(f=f&&f.removeAfter(n,0,a)),s>=u)s-=u,a-=u,A=5,l=null,f=f&&f.removeBefore(n,0,s);else if(s>i||u<h){for(c=0;l;){var v=s>>>A&m;if(v!==u>>>A&m)break;v&&(c+=(1<<A)*v),A-=5,l=l.array[v]}l&&s>i&&(l=l.removeBefore(n,A,s-c)),l&&u<h&&(l=l.removeAfter(n,A,u-c)),c&&(s-=c,a-=c)}return t.__ownerID?(t.size=a-s,t._origin=s,t._capacity=a,t._level=A,t._root=l,t._tail=f,t.__hash=void 0,t.__altered=!0,t):be(s,a,A,l,f)}function Ee(t,e,r){for(var n=[],o=0,a=0;a<r.length;a++){var A=r[a],l=i(A);l.size>o&&(o=l.size),s(A)||(l=l.map(function(t){return At(t)})),n.push(l)}return o>t.size&&(t=t.setSize(o)),ie(t,e,n)}function Se(t){return t<g?0:t-1>>>5<<5}function Ie(t){return null==t?ke():Fe(t)?t:ke().withMutations(function(e){var r=n(t);Dt(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function Fe(t){return Ot(t)&&c(t)}function Te(t,e,r,n){var i=Object.create(Ie.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function ke(){return me||(me=Te(Xt(),we()))}function Le(t,e,r){var n,i,o=t._map,s=t._list,a=o.get(e),A=void 0!==a;if(r===y){if(!A)return t;s.size>=g&&s.size>=2*o.size?(n=(i=s.filter(function(t,e){return void 0!==t&&a!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=a===s.size-1?s.pop():s.set(a,void 0))}else if(A){if(r===s.get(a)[1])return t;n=o,i=s.set(a,[e,r])}else n=o.set(e,s.size),i=s.set(s.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):Te(n,i)}function Pe(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Me(t){this._iter=t,this.size=t.size}function De(t){this._iter=t,this.size=t.size}function Ne(t){this._iter=t,this.size=t.size}function Oe(t){var e=Ze(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=$e,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return!1!==e(r,t,n)},r)},e.__iteratorUncached=function(e,r){if(2===e){var n=t.__iterator(e,r);return new D(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(1===e?0:1,r)},e}function Ue(t,e,r){var n=Ze(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,y);return o===y?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,s){return!1!==n(e.call(r,t,i,s),i,o)},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(2,i);return new D(function(){var i=o.next();if(i.done)return i;var s=i.value,a=s[0];return N(n,a,e.call(r,s[1],a,t),i)})},n}function Qe(t,e){var r=Ze(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=Oe(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=$e,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function Re(t,e,r,n){var i=Ze(t);return n&&(i.has=function(n){var i=t.get(n,y);return i!==y&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,y);return o!==y&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var s=this,a=0;return t.__iterate(function(t,o,A){if(e.call(r,t,o,A))return a++,i(t,n?o:a-1,s)},o),a},i.__iteratorUncached=function(i,o){var s=t.__iterator(2,o),a=0;return new D(function(){for(;;){var o=s.next();if(o.done)return o;var A=o.value,l=A[0],c=A[1];if(e.call(r,c,l,t))return N(i,n?l:a++,c,o)}})},i}function je(t,e,r,n){var i=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r|=0),I(e,r,i))return t;var o=F(e,i),s=T(r,i);if(o!=o||s!=s)return je(t.toSeq().cacheResult(),e,r,n);var a,A=s-o;A==A&&(a=A<0?0:A);var l=Ze(t);return l.size=0===a?a:t.size&&a||void 0,!n&&et(t)&&a>=0&&(l.get=function(e,r){return(e=E(this,e))>=0&&e<a?t.get(e+o,r):r}),l.__iterateUncached=function(e,r){var i=this;if(0===a)return 0;if(r)return this.cacheResult().__iterate(e,r);var s=0,A=!0,l=0;return t.__iterate(function(t,r){if(!A||!(A=s++<o))return l++,!1!==e(t,n?r:l-1,i)&&l!==a}),l},l.__iteratorUncached=function(e,r){if(0!==a&&r)return this.cacheResult().__iterator(e,r);var i=0!==a&&t.__iterator(e,r),s=0,A=0;return new D(function(){for(;s++<o;)i.next();if(++A>a)return{value:void 0,done:!0};var t=i.next();return n||1===e?t:N(e,A-1,0===e?void 0:t.value[1],t)})},l}function He(t,e,r,n){var i=Ze(t);return i.__iterateUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,A=0;return t.__iterate(function(t,o,l){if(!a||!(a=e.call(r,t,o,l)))return A++,i(t,n?o:A-1,s)}),A},i.__iteratorUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterator(i,o);var a=t.__iterator(2,o),A=!0,l=0;return new D(function(){var t,o,c;do{if((t=a.next()).done)return n||1===i?t:N(i,l++,0===i?void 0:t.value[1],t);var h=t.value;o=h[0],c=h[1],A&&(A=e.call(r,c,o,s))}while(A);return 2===i?t:N(i,o,c,t)})},i}function Ve(t,e,r){var n=Ze(t);return n.__iterateUncached=function(n,i){var o=0,a=!1;return function t(A,l){var c=this;A.__iterate(function(i,A){return(!e||l<e)&&s(i)?t(i,l+1):!1===n(i,r?A:o++,c)&&(a=!0),!a},i)}(t,0),o},n.__iteratorUncached=function(n,i){var o=t.__iterator(n,i),a=[],A=0;return new D(function(){for(;o;){var t=o.next();if(!1===t.done){var l=t.value;if(2===n&&(l=l[1]),e&&!(a.length<e)||!s(l))return r?t:N(n,A++,l,t);a.push(o),o=l.__iterator(n,i)}else o=a.pop()}return{value:void 0,done:!0}})},n}function ze(t,e,r){e||(e=tr);var n=a(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?z(o):A(t)?G(o):K(o)}function Ge(t,e,r){if(e||(e=tr),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return Ke(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return Ke(e,t,r)?r:t})}function Ke(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function qe(t,e,n){var i=Ze(t);return i.size=new J(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=r(t),R(i?t.reverse():t)}),s=0,a=!1;return new D(function(){var r;return a||(r=o.map(function(t){return t.next()}),a=r.some(function(t){return t.done})),a?{value:void 0,done:!0}:N(t,s++,e.apply(null,r.map(function(t){return t.value})))})},i}function We(t,e){return et(t)?e:t.constructor(e)}function Ye(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Xe(t){return Dt(t.size),_(t)}function Je(t){return a(t)?n:A(t)?i:o}function Ze(t){return Object.create((a(t)?z:A(t)?G:K).prototype)}function $e(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function tr(t,e){return t>e?1:t<e?-1:0}function er(t){var e=R(t);if(!e){if(!H(t))throw new TypeError("Expected iterable or array-like: "+t);e=R(r(t))}return e}function rr(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var s=Object.keys(t);(function(t,e){try{e.forEach(sr.bind(void 0,t))}catch(t){}})(i,s),i.size=s.length,i._name=e,i._keys=s,i._defaultValues=t}this._map=Nt(o)},i=n.prototype=Object.create(nr);return i.constructor=n,n}e(Ie,Nt),Ie.of=function(){return this(arguments)},Ie.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ie.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},Ie.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ke()},Ie.prototype.set=function(t,e){return Le(this,t,e)},Ie.prototype.remove=function(t){return Le(this,t,y)},Ie.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ie.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},Ie.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Ie.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?Te(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},Ie.isOrderedMap=Fe,Ie.prototype[f]=!0,Ie.prototype[d]=Ie.prototype.remove,e(Pe,z),Pe.prototype.get=function(t,e){return this._iter.get(t,e)},Pe.prototype.has=function(t){return this._iter.has(t)},Pe.prototype.valueSeq=function(){return this._iter.valueSeq()},Pe.prototype.reverse=function(){var t=this,e=Qe(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Pe.prototype.map=function(t,e){var r=this,n=Ue(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},Pe.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?Xe(this):0,function(i){return t(i,e?--r:r++,n)}),e)},Pe.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(1,e),n=e?Xe(this):0;return new D(function(){var i=r.next();return i.done?i:N(t,e?--n:n++,i.value,i)})},Pe.prototype[f]=!0,e(Me,G),Me.prototype.includes=function(t){return this._iter.includes(t)},Me.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},Me.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e),n=0;return new D(function(){var e=r.next();return e.done?e:N(t,n++,e.value,e)})},e(De,K),De.prototype.has=function(t){return this._iter.includes(t)},De.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},De.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new D(function(){var e=r.next();return e.done?e:N(t,e.value,e.value,e)})},e(Ne,z),Ne.prototype.entrySeq=function(){return this._iter.toSeq()},Ne.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){Ye(e);var n=s(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},Ne.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new D(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Ye(n);var i=s(n);return N(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},Me.prototype.cacheResult=Pe.prototype.cacheResult=De.prototype.cacheResult=Ne.prototype.cacheResult=$e,e(rr,yt),rr.prototype.toString=function(){return this.__toString(or(this)+" {","}")},rr.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},rr.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},rr.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=ir(this,Xt()))},rr.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+or(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:ir(this,r)},rr.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:ir(this,e)},rr.prototype.wasAltered=function(){return this._map.wasAltered()},rr.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},rr.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},rr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?ir(this,e,t):(this.__ownerID=t,this._map=e,this)};var nr=rr.prototype;function ir(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function or(t){return t._name||t.constructor.name||"Record"}function sr(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){dt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function ar(t){return null==t?fr():Ar(t)&&!c(t)?t:fr().withMutations(function(e){var r=o(t);Dt(r.size),r.forEach(function(t){return e.add(t)})})}function Ar(t){return!(!t||!t[cr])}nr[d]=nr.remove,nr.deleteIn=nr.removeIn=Rt.removeIn,nr.merge=Rt.merge,nr.mergeWith=Rt.mergeWith,nr.mergeIn=Rt.mergeIn,nr.mergeDeep=Rt.mergeDeep,nr.mergeDeepWith=Rt.mergeDeepWith,nr.mergeDeepIn=Rt.mergeDeepIn,nr.setIn=Rt.setIn,nr.update=Rt.update,nr.updateIn=Rt.updateIn,nr.withMutations=Rt.withMutations,nr.asMutable=Rt.asMutable,nr.asImmutable=Rt.asImmutable,e(ar,bt),ar.of=function(){return this(arguments)},ar.fromKeys=function(t){return this(n(t).keySeq())},ar.prototype.toString=function(){return this.__toString("Set {","}")},ar.prototype.has=function(t){return this._map.has(t)},ar.prototype.add=function(t){return ur(this,this._map.set(t,!0))},ar.prototype.remove=function(t){return ur(this,this._map.remove(t))},ar.prototype.clear=function(){return ur(this,this._map.clear())},ar.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var r=0;r<e.length;r++)o(e[r]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},ar.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return o(t)});var r=this;return this.withMutations(function(t){r.forEach(function(r){e.every(function(t){return t.includes(r)})||t.remove(r)})})},ar.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return o(t)});var r=this;return this.withMutations(function(t){r.forEach(function(r){e.some(function(t){return t.includes(r)})&&t.remove(r)})})},ar.prototype.merge=function(){return this.union.apply(this,arguments)},ar.prototype.mergeWith=function(e){var r=t.call(arguments,1);return this.union.apply(this,r)},ar.prototype.sort=function(t){return dr(ze(this,t))},ar.prototype.sortBy=function(t,e){return dr(ze(this,e,t))},ar.prototype.wasAltered=function(){return this._map.wasAltered()},ar.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},ar.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},ar.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},ar.isSet=Ar;var lr,cr="@@__IMMUTABLE_SET__@@",hr=ar.prototype;function ur(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function pr(t,e){var r=Object.create(hr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function fr(){return lr||(lr=pr(Xt()))}function dr(t){return null==t?br():gr(t)?t:br().withMutations(function(e){var r=o(t);Dt(r.size),r.forEach(function(t){return e.add(t)})})}function gr(t){return Ar(t)&&c(t)}hr[cr]=!0,hr[d]=hr.remove,hr.mergeDeep=hr.merge,hr.mergeDeepWith=hr.mergeWith,hr.withMutations=Rt.withMutations,hr.asMutable=Rt.asMutable,hr.asImmutable=Rt.asImmutable,hr.__empty=fr,hr.__make=pr,e(dr,ar),dr.of=function(){return this(arguments)},dr.fromKeys=function(t){return this(n(t).keySeq())},dr.prototype.toString=function(){return this.__toString("OrderedSet {","}")},dr.isOrderedSet=gr;var mr,yr=dr.prototype;function vr(t,e){var r=Object.create(yr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function br(){return mr||(mr=vr(ke()))}function wr(t){return null==t?Sr():xr(t)?t:Sr().unshiftAll(t)}function xr(t){return!(!t||!t[Cr])}yr[f]=!0,yr.__empty=br,yr.__make=vr,e(wr,vt),wr.of=function(){return this(arguments)},wr.prototype.toString=function(){return this.__toString("Stack [","]")},wr.prototype.get=function(t,e){var r=this._head;for(t=E(this,t);r&&t--;)r=r.next;return r?r.value:e},wr.prototype.peek=function(){return this._head&&this._head.value},wr.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Er(t,e)},wr.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;Dt(t.size);var e=this.size,r=this._head;return t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Er(e,r)},wr.prototype.pop=function(){return this.slice(1)},wr.prototype.unshift=function(){return this.push.apply(this,arguments)},wr.prototype.unshiftAll=function(t){return this.pushAll(t)},wr.prototype.shift=function(){return this.pop.apply(this,arguments)},wr.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Sr()},wr.prototype.slice=function(t,e){if(I(t,e,this.size))return this;var r=F(t,this.size);if(T(e,this.size)!==this.size)return vt.prototype.slice.call(this,t,e);for(var n=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=n,this._head=i,this.__hash=void 0,this.__altered=!0,this):Er(n,i)},wr.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Er(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},wr.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&!1!==t(n.value,r++,this);)n=n.next;return r},wr.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new D(function(){if(n){var e=n.value;return n=n.next,N(t,r++,e)}return{value:void 0,done:!0}})},wr.isStack=xr;var Br,Cr="@@__IMMUTABLE_STACK__@@",_r=wr.prototype;function Er(t,e,r,n){var i=Object.create(_r);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Sr(){return Br||(Br=Er(0))}function Ir(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}_r[Cr]=!0,_r.withMutations=Rt.withMutations,_r.asMutable=Rt.asMutable,_r.asImmutable=Rt.asImmutable,_r.wasAltered=Rt.wasAltered,r.Iterator=D,Ir(r,{toArray:function(){Dt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new Me(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new Pe(this,!0)},toMap:function(){return Nt(this.toKeyedSeq())},toObject:function(){Dt(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return Ie(this.toKeyedSeq())},toOrderedSet:function(){return dr(a(this)?this.valueSeq():this)},toSet:function(){return ar(a(this)?this.valueSeq():this)},toSetSeq:function(){return new De(this)},toSeq:function(){return A(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return wr(a(this)?this.valueSeq():this)},toList:function(){return he(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return We(this,function(t,e){var r=a(t),i=[t].concat(e).map(function(t){return s(t)?r&&(t=n(t)):t=r?nt(t):it(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||r&&a(o)||A(t)&&A(o))return o}var l=new J(i);return r?l=l.toKeyedSeq():A(t)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=i.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),l}(this,t.call(arguments,0)))},includes:function(t){return this.some(function(e){return ut(e,t)})},entries:function(){return this.__iterator(2)},every:function(t,e){Dt(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1}),r},filter:function(t,e){return We(this,Re(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;return this.__iterate(function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1}),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Dt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Dt(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""}),e},keys:function(){return this.__iterator(0)},map:function(t,e){return We(this,Ue(this,t,e))},reduce:function(t,e,r){var n,i;return Dt(this.size),arguments.length<2?i=!0:n=e,this.__iterate(function(e,o,s){i?(i=!1,n=e):n=t.call(r,n,e,o,s)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return We(this,Qe(this,!0))},slice:function(t,e){return We(this,je(this,t,e,!0))},some:function(t,e){return!this.every(Pr(t),e)},sort:function(t){return We(this,ze(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return _(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,r){var n=Nt().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}(this,t,e)},equals:function(t){return pt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new J(t._cache);var e=t.toSeq().map(Lr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Pr(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(S)},flatMap:function(t,e){return We(this,function(t,e,r){var n=Je(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return We(this,Ve(this,t,!0))},fromEntrySeq:function(){return new Ne(this)},get:function(t,e){return this.find(function(e,r){return ut(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=er(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,y):y)===y)return e}return n},groupBy:function(t,e){return function(t,e,r){var n=a(t),i=(c(t)?Ie():Nt()).asMutable();t.__iterate(function(o,s){i.update(e.call(r,o,s,t),function(t){return(t=t||[]).push(n?[s,o]:o),t})});var o=Je(t);return i.map(function(e){return We(t,o(e))})}(this,t,e)},has:function(t){return this.get(t,y)!==y},hasIn:function(t){return this.getIn(t,y)!==y},isSubset:function(t){return t="function"==typeof t.includes?t:r(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:r(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(kr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return Ge(this,t)},maxBy:function(t,e){return Ge(this,e,t)},min:function(t){return Ge(this,t?Mr(t):Or)},minBy:function(t,e){return Ge(this,e?Mr(e):Or,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return We(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return We(this,He(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Pr(t),e)},sortBy:function(t,e){return We(this,ze(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return We(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return We(this,function(t,e,r){var n=Ze(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var s=0;return t.__iterate(function(t,i,a){return e.call(r,t,i,a)&&++s&&n(t,i,o)}),s},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var s=t.__iterator(2,i),a=!0;return new D(function(){if(!a)return{value:void 0,done:!0};var t=s.next();if(t.done)return t;var i=t.value,A=i[0],l=i[1];return e.call(r,l,A,o)?2===n?t:N(n,A,l,t):(a=!1,{value:void 0,done:!0})})},n}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Pr(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=c(t),r=a(t),n=e?1:0;return function(t,e){return e=wt(e,3432918353),e=wt(e<<15|e>>>-15,461845907),e=wt(e<<13|e>>>-13,5),e=wt((e=(e+3864292196|0)^t)^e>>>16,2246822507),xt((e=wt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(r?e?function(t,e){n=31*n+Ur(Bt(t),Bt(e))|0}:function(t,e){n=n+Ur(Bt(t),Bt(e))|0}:e?function(t){n=31*n+Bt(t)|0}:function(t){n=n+Bt(t)|0}),n)}(this))}});var Fr=r.prototype;Fr[h]=!0,Fr[M]=Fr.values,Fr.__toJS=Fr.toArray,Fr.__toStringMapper=Dr,Fr.inspect=Fr.toSource=function(){return this.toString()},Fr.chain=Fr.flatMap,Fr.contains=Fr.includes,function(){try{Object.defineProperty(Fr,"length",{get:function(){if(!r.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),Ir(n,{flip:function(){return We(this,Oe(this))},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return ut(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return ut(e,t)})},mapEntries:function(t,e){var r=this,n=0;return We(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return We(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var Tr=n.prototype;function kr(t,e){return e}function Lr(t,e){return[e,t]}function Pr(t){return function(){return!t.apply(this,arguments)}}function Mr(t){return function(){return-t.apply(this,arguments)}}function Dr(t){return"string"==typeof t?JSON.stringify(t):t}function Nr(){return C(arguments)}function Or(t,e){return t<e?1:t>e?-1:0}function Ur(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return Tr[u]=!0,Tr[M]=Fr.entries,Tr.__toJS=Fr.toObject,Tr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Dr(t)},Ir(i,{toKeyedSeq:function(){return new Pe(this,!1)},filter:function(t,e){return We(this,Re(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return We(this,Qe(this,!1))},slice:function(t,e){return We(this,je(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=F(t,t<0?this.count():this.size);var n=this.slice(0,t);return We(this,1===r?n:n.concat(C(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.toKeyedSeq().findLastKey(t,e);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(t){return We(this,Ve(this,t,!1))},get:function(t,e){return(t=E(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return(t=E(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return We(this,function(t,e){var r=Ze(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t,n){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(1,n),s=0;return new D(function(){return(!i||s%2)&&(i=o.next()).done?i:s%2?N(r,s++,e):N(r,s++,i.value,i)})},r}(this,t))},interleave:function(){var t=[this].concat(C(arguments)),e=qe(this.toSeq(),G.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),We(this,r)},last:function(){return this.get(-1)},skipWhile:function(t,e){return We(this,He(this,t,e,!1))},zip:function(){return We(this,qe(this,Nr,[this].concat(C(arguments))))},zipWith:function(t){var e=C(arguments);return e[0]=this,We(this,qe(this,t,e))}}),i.prototype[p]=!0,i.prototype[f]=!0,Ir(o,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Fr.includes,Ir(z,n.prototype),Ir(G,i.prototype),Ir(K,o.prototype),Ir(yt,n.prototype),Ir(vt,i.prototype),Ir(bt,o.prototype),{Iterable:r,Seq:V,Collection:mt,Map:Nt,OrderedMap:Ie,List:he,Stack:wr,Set:ar,OrderedSet:dr,Record:rr,Range:gt,Repeat:ft,is:ut,fromJS:At}}()},25232(t,e,r){"use strict";r.r(e),r.d(e,{Collection:()=>c,Iterable:()=>_n,List:()=>or,Map:()=>_e,OrderedMap:()=>vr,OrderedSet:()=>an,PairSorting:()=>un,Range:()=>Ur,Record:()=>pn,Repeat:()=>bn,Seq:()=>q,Set:()=>jr,Stack:()=>_r,fromJS:()=>wn,get:()=>Xe,getIn:()=>qr,has:()=>Ye,hasIn:()=>Yr,hash:()=>ct,is:()=>Wt,isAssociative:()=>a,isCollection:()=>l,isImmutable:()=>R,isIndexed:()=>i,isKeyed:()=>s,isList:()=>ir,isMap:()=>xe,isOrdered:()=>H,isOrderedMap:()=>mr,isOrderedSet:()=>sn,isPlainObject:()=>te,isRecord:()=>Q,isSeq:()=>z,isSet:()=>Rr,isStack:()=>Cr,isValueObject:()=>qt,merge:()=>oe,mergeDeep:()=>ae,mergeDeepWith:()=>Ae,mergeWith:()=>se,remove:()=>Je,removeIn:()=>er,set:()=>Ze,setIn:()=>de,update:()=>Yt,updateIn:()=>$e,version:()=>Cn});var n="@@__IMMUTABLE_INDEXED__@@";function i(t){return Boolean(t&&t[n])}var o="@@__IMMUTABLE_KEYED__@@";function s(t){return Boolean(t&&t[o])}function a(t){return s(t)||i(t)}var A="@@__IMMUTABLE_ITERABLE__@@";function l(t){return Boolean(t&&t[A])}var c=function(t){return l(t)?t:q(t)},h=function(t){function e(t){return s(t)?t:W(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c),u=function(t){function e(t){return i(t)?t:Y(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c),p=function(t){function e(t){return l(t)&&!a(t)?t:X(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c);c.Keyed=h,c.Indexed=u,c.Set=p;var f="function"==typeof Symbol&&Symbol.iterator,d="@@iterator",g=f||d,m=function(t){this.next=t};function y(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function v(){return{value:void 0,done:!0}}function b(t){return!!Array.isArray(t)||!!B(t)}function w(t){return!(!t||"function"!=typeof t.next)}function x(t){var e=B(t);return e&&e.call(t)}function B(t){var e=t&&(f&&t[f]||t[d]);if("function"==typeof e)return e}m.prototype.toString=function(){return"[Iterator]"},m.KEYS=0,m.VALUES=1,m.ENTRIES=2,m.prototype.inspect=m.prototype.toSource=function(){return this.toString()},m.prototype[g]=function(){return this};var C="delete",_=32,E=31,S={};function I(t){t&&(t.value=!0)}function F(){}function T(t){return void 0===t.size&&(t.size=t.__iterate(L)),t.size}function k(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?T(t)+e:e}function L(){return!0}function P(t,e,r){return(0===t&&!O(t)||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function M(t,e){return N(t,e,0)}function D(t,e){return N(t,e,e)}function N(t,e,r){return void 0===t?r:O(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function O(t){return t<0||0===t&&1/t==-1/0}var U="@@__IMMUTABLE_RECORD__@@";function Q(t){return Boolean(t&&t[U])}function R(t){return l(t)||Q(t)}var j="@@__IMMUTABLE_ORDERED__@@";function H(t){return Boolean(t&&t[j])}var V="@@__IMMUTABLE_SEQ__@@";function z(t){return Boolean(t&&t[V])}var G=Object.prototype.hasOwnProperty;function K(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var q=function(t){function e(t){return null==t?et():R(t)?t.toSeq():function(t){var e,r,n=it(t);if(n)return(r=B(e=t))&&r===e.entries?n.fromEntrySeq():function(t){var e=B(t);return e&&e===t.keys}(t)?n.toSetSeq():n;if("object"==typeof t)return new Z(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var r=this._cache;if(r){for(var n=r.length,i=0;i!==n;){var o=r[e?n-++i:i++];if(!1===t(o[1],o[0],this))break}return i}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var r=this._cache;if(r){var n=r.length,i=0;return new m(function(){if(i===n)return{value:void 0,done:!0};var o=r[e?n-++i:i++];return y(t,o[0],o[1])})}return this.__iteratorUncached(t,e)},e}(c),W=function(t){function e(t){return null==t?et().toKeyedSeq():l(t)?s(t)?t.toSeq():t.fromEntrySeq():Q(t)?t.toSeq():rt(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(q),Y=function(t){function e(t){return null==t?et():l(t)?s(t)?t.entrySeq():t.toIndexedSeq():Q(t)?t.toSeq().entrySeq():nt(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(q),X=function(t){function e(t){return(l(t)&&!a(t)?t:Y(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(q);q.isSeq=z,q.Keyed=W,q.Set=X,q.Indexed=Y,q.prototype[V]=!0;var J=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[k(this,t)]:e},e.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length,i=0;i!==n;){var o=e?n-++i:i++;if(!1===t(r[o],o,this))break}return i},e.prototype.__iterator=function(t,e){var r=this._array,n=r.length,i=0;return new m(function(){if(i===n)return{value:void 0,done:!0};var o=e?n-++i:i++;return y(t,o,r[o])})},e}(Y),Z=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return G.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length,o=0;o!==i;){var s=n[e?i-++o:o++];if(!1===t(r[s],s,this))break}return o},e.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length,o=0;return new m(function(){if(o===i)return{value:void 0,done:!0};var s=n[e?i-++o:o++];return y(t,s,r[s])})},e}(W);Z.prototype[j]=!0;var $,tt=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=x(this._collection),n=0;if(w(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=x(this._collection);if(!w(r))return new m(v);var n=0;return new m(function(){var e=r.next();return e.done?e:y(t,n++,e.value)})},e}(Y);function et(){return $||($=new J([]))}function rt(t){var e=it(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new Z(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function nt(t){var e=it(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function it(t){return K(t)?new J(t):b(t)?new tt(t):void 0}function ot(){return this.__ensureOwner()}function st(){return this.__ownerID?this:this.__ensureOwner(new F)}var at="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function At(t){return t>>>1&1073741824|3221225471&t}var lt=Object.prototype.valueOf;function ct(t){if(null==t)return ht(t);if("function"==typeof t.hashCode)return At(t.hashCode(t));var e,r,n,i=(e=t).valueOf!==lt&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==i)return ht(i);switch(typeof i){case"boolean":return i?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return At(e)}(i);case"string":return i.length>wt?(void 0===(n=Ct[r=i])&&(n=ut(r),Bt===xt&&(Bt=0,Ct={}),Bt++,Ct[r]=n),n):ut(i);case"object":case"function":return function(t){var e;if(mt&&void 0!==(e=gt.get(t)))return e;if(void 0!==(e=t[bt]))return e;if(!ft){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[bt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=dt(),mt)gt.set(t,e);else{if(void 0!==pt&&!1===pt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(ft)Object.defineProperty(t,bt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[bt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[bt]=e}}return e}(i);case"symbol":return function(t){var e=yt[t];return void 0!==e||(e=dt(),yt[t]=e),e}(i);default:if("function"==typeof i.toString)return ut(i.toString());throw new Error("Value type "+typeof i+" cannot be hashed.")}}function ht(t){return null===t?1108378658:1108378659}function ut(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return At(e)}var pt=Object.isExtensible,ft=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function dt(){var t=++vt;return 1073741824&vt&&(vt=0),t}var gt,mt="function"==typeof WeakMap;mt&&(gt=new WeakMap);var yt=Object.create(null),vt=0,bt="__immutablehash__";"function"==typeof Symbol&&(bt=Symbol(bt));var wt=16,xt=255,Bt=0,Ct={},_t=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=kt(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var r=this,n=Tt(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e,n){return t(e,n,r)},e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(W);_t.prototype[j]=!0;var Et=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this,n=0;return e&&T(this),this._iter.__iterate(function(i){return t(i,e?r.size-++n:n++,r)},e)},e.prototype.__iterator=function(t,e){var r=this,n=this._iter.__iterator(1,e),i=0;return e&&T(this),new m(function(){var o=n.next();return o.done?o:y(t,e?r.size-++i:i++,o.value,o)})},e}(Y),St=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new m(function(){var e=r.next();return e.done?e:y(t,e.value,e.value,e)})},e}(X),It=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){Ht(e);var n=l(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new m(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Ht(n);var i=l(n);return y(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},e}(W);function Ft(t){var e=zt(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Gt,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return!1!==e(r,t,n)},r)},e.__iteratorUncached=function(e,r){if(2===e){var n=t.__iterator(e,r);return new m(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(1===e?0:1,r)},e}function Tt(t,e,r){var n=zt(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,S);return o===S?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,s){return!1!==n(e.call(r,t,i,s),i,o)},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(2,i);return new m(function(){var i=o.next();if(i.done)return i;var s=i.value,a=s[0];return y(n,a,e.call(r,s[1],a,t),i)})},n}function kt(t,e){var r=this,n=zt(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Ft(t);return e.reverse=function(){return t.flip()},e}),n.get=function(r,n){return t.get(e?r:-1-r,n)},n.has=function(r){return t.has(e?r:-1-r)},n.includes=function(e){return t.includes(e)},n.cacheResult=Gt,n.__iterate=function(r,n){var i=this,o=0;return n&&T(t),t.__iterate(function(t,s){return r(t,e?s:n?i.size-++o:o++,i)},!n)},n.__iterator=function(n,i){var o=0;i&&T(t);var s=t.__iterator(2,!i);return new m(function(){var t=s.next();if(t.done)return t;var a=t.value;return y(n,e?a[0]:i?r.size-++o:o++,a[1],t)})},n}function Lt(t,e,r,n){var i=zt(t);return n&&(i.has=function(n){var i=t.get(n,S);return i!==S&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,S);return o!==S&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var s=this,a=0;return t.__iterate(function(t,o,A){if(e.call(r,t,o,A))return a++,i(t,n?o:a-1,s)},o),a},i.__iteratorUncached=function(i,o){var s=t.__iterator(2,o),a=0;return new m(function(){for(;;){var o=s.next();if(o.done)return o;var A=o.value,l=A[0],c=A[1];if(e.call(r,c,l,t))return y(i,n?l:a++,c,o)}})},i}function Pt(t,e,r,n){var i=t.size;if(P(e,r,i))return t;if(void 0===i&&(e<0||r<0))return Pt(t.toSeq().cacheResult(),e,r,n);var o,s=M(e,i),a=D(r,i)-s;a==a&&(o=a<0?0:a);var A=zt(t);return A.size=0===o?o:t.size&&o||void 0,!n&&z(t)&&o>=0&&(A.get=function(e,r){return(e=k(this,e))>=0&&e<o?t.get(e+s,r):r}),A.__iterateUncached=function(e,r){var i=this;if(0===o)return 0;if(r)return this.cacheResult().__iterate(e,r);var a=0,A=!0,l=0;return t.__iterate(function(t,r){if(!A||!(A=a++<s))return l++,!1!==e(t,n?r:l-1,i)&&l!==o}),l},A.__iteratorUncached=function(e,r){if(0!==o&&r)return this.cacheResult().__iterator(e,r);if(0===o)return new m(v);var i=t.__iterator(e,r),a=0,A=0;return new m(function(){for(;a++<s;)i.next();if(++A>o)return{value:void 0,done:!0};var t=i.next();return n||1===e||t.done?t:y(e,A-1,0===e?void 0:t.value[1],t)})},A}function Mt(t,e,r,n){var i=zt(t);return i.__iterateUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,A=0;return t.__iterate(function(t,o,l){if(!a||!(a=e.call(r,t,o,l)))return A++,i(t,n?o:A-1,s)}),A},i.__iteratorUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterator(i,o);var a=t.__iterator(2,o),A=!0,l=0;return new m(function(){var t,o,c;do{if((t=a.next()).done)return n||1===i?t:y(i,l++,0===i?void 0:t.value[1],t);var h=t.value;o=h[0],c=h[1],A&&(A=e.call(r,c,o,s))}while(A);return 2===i?t:y(i,o,c,t)})},i}Et.prototype.cacheResult=_t.prototype.cacheResult=St.prototype.cacheResult=It.prototype.cacheResult=Gt;var Dt=function(t){function e(t){this._wrappedIterables=t.flatMap(function(t){return t._wrappedIterables?t._wrappedIterables:[t]}),this.size=this._wrappedIterables.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),this[o]=this._wrappedIterables[0][o],this[n]=this._wrappedIterables[0][n],this[j]=this._wrappedIterables[0][j]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(0!==this._wrappedIterables.length){if(e)return this.cacheResult().__iterate(t,e);for(var r=0,n=s(this),i=n?2:1,o=this._wrappedIterables[r].__iterator(i,e),a=!0,A=0;a;){for(var l=o.next();l.done;){if(++r===this._wrappedIterables.length)return A;l=(o=this._wrappedIterables[r].__iterator(i,e)).next()}a=!1!==(n?t(l.value[1],l.value[0],this):t(l.value,A,this)),A++}return A}},e.prototype.__iteratorUncached=function(t,e){var r=this;if(0===this._wrappedIterables.length)return new m(v);if(e)return this.cacheResult().__iterator(t,e);var n=0,i=this._wrappedIterables[n].__iterator(t,e);return new m(function(){for(var o=i.next();o.done;){if(++n===r._wrappedIterables.length)return o;o=(i=r._wrappedIterables[n].__iterator(t,e)).next()}return o})},e}(q);function Nt(t,e,r){var n=zt(t);return n.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var s=0,a=!1;return function t(A,c){A.__iterate(function(o,A){return(!e||c<e)&&l(o)?t(o,c+1):(s++,!1===i(o,r?A:s-1,n)&&(a=!0)),!a},o)}(t,0),s},n.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var o=t.__iterator(n,i),s=[],a=0;return new m(function(){for(;o;){var t=o.next();if(!1===t.done){var A=t.value;if(2===n&&(A=A[1]),e&&!(s.length<e)||!l(A))return r?t:y(n,a++,A,t);s.push(o),o=A.__iterator(n,i)}else o=s.pop()}return{value:void 0,done:!0}})},n}function Ot(t,e,r){e||(e=Kt);var n=s(t),o=0,a=t.toSeq().map(function(e,n){return[n,e,o++,r?r(e,n,t):e]}).valueSeq().toArray();return a.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){a[e].length=2}:function(t,e){a[e]=t[1]}),n?W(a):i(t)?Y(a):X(a)}function Ut(t,e,r){if(e||(e=Kt),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return Qt(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return Qt(e,t,r)?r:t})}function Qt(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function Rt(t,e,r,n){var i=zt(t),o=new J(r).map(function(t){return t.size});return i.size=n?o.max():o.min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=c(t),x(i?t.reverse():t)}),s=0,a=!1;return new m(function(){var r;return a||(r=o.map(function(t){return t.next()}),a=n?r.every(function(t){return t.done}):r.some(function(t){return t.done})),a?{value:void 0,done:!0}:y(t,s++,e.apply(null,r.map(function(t){return t.value})))})},i}function jt(t,e){return t===e?t:z(t)?e:t.constructor(e)}function Ht(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Vt(t){return s(t)?h:i(t)?u:p}function zt(t){return Object.create((s(t)?W:i(t)?Y:X).prototype)}function Gt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function Kt(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function qt(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function Wt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(qt(t)&&qt(e)&&t.equals(e))}function Yt(t,e,r,n){return $e(t,[e],r,n)}function Xt(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Zt(this,t)}function Jt(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return Zt(this,e,t)}function Zt(t,e,r){for(var n=[],i=0;i<e.length;i++){var o=h(e[i]);0!==o.size&&n.push(o)}return 0===n.length?t:0!==t.toSeq().size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var e=r?function(e,n){Yt(t,n,S,function(t){return t===S?e:r(t,e,n)})}:function(e,r){t.set(r,e)},i=0;i<n.length;i++)n[i].forEach(e)}):Q(t)?t:t.constructor(n[0])}var $t=Object.prototype.toString;function te(t){if(!t||"object"!=typeof t||"[object Object]"!==$t.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var r=e,n=Object.getPrototypeOf(e);null!==n;)r=n,n=Object.getPrototypeOf(r);return r===e}function ee(t){return"object"==typeof t&&(R(t)||Array.isArray(t)||te(t))}function re(t){return"string"==typeof t&&("__proto__"===t||"constructor"===t)}function ne(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function ie(t){if(Array.isArray(t))return ne(t);var e={};for(var r in t)re(r)||G.call(t,r)&&(e[r]=t[r]);return e}function oe(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return ce(t,e)}function se(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return ce(e,r,t)}function ae(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return le(t,e)}function Ae(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return le(e,r,t)}function le(t,e,r){return ce(t,e,function(t){return function e(r,n,o){return ee(r)&&ee(n)&&(a=n,A=q(r),l=q(a),i(A)===i(l)&&s(A)===s(l))?ce(r,[n],e):t?t(r,n,o):n;var a,A,l}}(r))}function ce(t,e,r){if(!ee(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(R(t))return"function"==typeof r&&t.mergeWith?t.mergeWith.apply(t,[r].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var n=Array.isArray(t),i=t,o=n?u:h,s=n?function(e){i===t&&(i=ie(i)),i.push(e)}:function(e,n){if(!re(n)){var o=G.call(i,n),s=o&&r?r(i[n],e,n):e;o&&s===i[n]||(i===t&&(i=ie(i)),i[n]=s)}},a=0;a<e.length;a++)o(e[a]).forEach(s);return i}function he(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return le(this,t)}function ue(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return le(this,e,t)}function pe(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return $e(this,t,Oe(),function(t){return le(t,e)})}function fe(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return $e(this,t,Oe(),function(t){return ce(t,e)})}function de(t,e,r){return $e(t,e,S,function(){return r})}function ge(t,e){return de(this,t,e)}function me(t,e,r){return 1===arguments.length?t(this):Yt(this,t,e,r)}function ye(t,e,r){return $e(this,t,e,r)}function ve(){return this.__altered}function be(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}var we="@@__IMMUTABLE_MAP__@@";function xe(t){return Boolean(t&&t[we])}function Be(t,e){if(!t)throw new Error(e)}function Ce(t){Be(t!==1/0,"Cannot perform this action with an infinite size.")}var _e=function(t){function e(e){return null==e?Oe():xe(e)&&!H(e)?e:Oe().withMutations(function(r){var n=t(e);Ce(n.size),n.forEach(function(t,e){return r.set(e,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return Ue(this,t,e)},e.prototype.remove=function(t){return Ue(this,t,S)},e.prototype.deleteAll=function(t){var e=c(t);return 0===e.size?this:this.withMutations(function(t){e.forEach(function(e){return t.remove(e)})})},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Oe()},e.prototype.sort=function(t){return vr(Ot(this,t))},e.prototype.sortBy=function(t,e){return vr(Ot(this,e,t))},e.prototype.map=function(t,e){var r=this;return this.withMutations(function(n){n.forEach(function(i,o){n.set(o,t.call(e,i,o,r))})})},e.prototype.__iterator=function(t,e){return new Pe(this,t,e)},e.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ne(this.size,this._root,t,this.__hash):0===this.size?Oe():(this.__ownerID=t,this.__altered=!1,this)},e}(h);_e.isMap=xe;var Ee=_e.prototype;Ee[we]=!0,Ee[C]=Ee.remove,Ee.removeAll=Ee.deleteAll,Ee.setIn=ge,Ee.removeIn=Ee.deleteIn=rr,Ee.update=me,Ee.updateIn=ye,Ee.merge=Ee.concat=Xt,Ee.mergeWith=Jt,Ee.mergeDeep=he,Ee.mergeDeepWith=ue,Ee.mergeIn=fe,Ee.mergeDeepIn=pe,Ee.withMutations=be,Ee.wasAltered=ve,Ee.asImmutable=ot,Ee["@@transducer/init"]=Ee.asMutable=st,Ee["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},Ee["@@transducer/result"]=function(t){return t.asImmutable()};var Se=function(t,e){this.ownerID=t,this.entries=e};Se.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(Wt(r,i[o][0]))return i[o][1];return n},Se.prototype.update=function(t,e,r,n,i,o,s){for(var a=i===S,A=this.entries,l=0,c=A.length;l<c&&!Wt(n,A[l][0]);l++);var h=l<c;if(h?A[l][1]===i:a)return this;if(I(s),(a||!h)&&I(o),!a||1!==A.length){if(!h&&!a&&A.length>=ze)return function(t,e,r,n){t||(t=new F);for(var i=new ke(t,ct(r),[r,n]),o=0;o<e.length;o++){var s=e[o];i=i.update(t,0,void 0,s[0],s[1])}return i}(t,A,n,i);var u=t&&t===this.ownerID,p=u?A:ne(A);return h?a?l===c-1?p.pop():p[l]=p.pop():p[l]=[n,i]:p.push([n,i]),u?(this.entries=p,this):new Se(t,p)}};var Ie=function(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r};Ie.prototype.get=function(t,e,r,n){void 0===e&&(e=ct(r));var i=1<<((0===t?e:e>>>t)&E),o=this.bitmap;return 0===(o&i)?n:this.nodes[He(o&i-1)].get(t+5,e,r,n)},Ie.prototype.update=function(t,e,r,n,i,o,s){void 0===r&&(r=ct(n));var a=(0===e?r:r>>>e)&E,A=1<<a,l=this.bitmap,c=0!==(l&A);if(!c&&i===S)return this;var h=He(l&A-1),u=this.nodes,p=c?u[h]:void 0,f=Qe(p,t,e+5,r,n,i,o,s);if(f===p)return this;if(!c&&f&&u.length>=Ge)return function(t,e,r,n,i){for(var o=0,s=new Array(_),a=0;0!==r;a++,r>>>=1)s[a]=1&r?e[o++]:void 0;return s[n]=i,new Fe(t,o+1,s)}(t,u,l,a,f);if(c&&!f&&2===u.length&&Re(u[1^h]))return u[1^h];if(c&&f&&1===u.length&&Re(f))return f;var d=t&&t===this.ownerID,g=c?f?l:l^A:l|A,m=c?f?Ve(u,h,f,d):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,s=0;s<n;s++)s===e&&(o=1),i[s]=t[s+o];return i}(u,h,d):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),s=0,a=0;a<i;a++)a===e?(o[a]=r,s=-1):o[a]=t[a+s];return o}(u,h,f,d);return d?(this.bitmap=g,this.nodes=m,this):new Ie(t,g,m)};var Fe=function(t,e,r){this.ownerID=t,this.count=e,this.nodes=r};Fe.prototype.get=function(t,e,r,n){void 0===e&&(e=ct(r));var i=(0===t?e:e>>>t)&E,o=this.nodes[i];return o?o.get(t+5,e,r,n):n},Fe.prototype.update=function(t,e,r,n,i,o,s){void 0===r&&(r=ct(n));var a=(0===e?r:r>>>e)&E,A=i===S,l=this.nodes,c=l[a];if(A&&!c)return this;var h=Qe(c,t,e+5,r,n,i,o,s);if(h===c)return this;var u=this.count;if(c){if(!h&&--u<Ke)return function(t,e,r,n){for(var i=0,o=0,s=new Array(r),a=0,A=1,l=e.length;a<l;a++,A<<=1){var c=e[a];void 0!==c&&a!==n&&(i|=A,s[o++]=c)}return new Ie(t,i,s)}(t,l,u,a)}else u++;var p=t&&t===this.ownerID,f=Ve(l,a,h,p);return p?(this.count=u,this.nodes=f,this):new Fe(t,u,f)};var Te=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r};Te.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(Wt(r,i[o][0]))return i[o][1];return n},Te.prototype.update=function(t,e,r,n,i,o,s){void 0===r&&(r=ct(n));var a=i===S;if(r!==this.keyHash)return a?this:(I(s),I(o),je(this,t,e,r,[n,i]));for(var A=this.entries,l=0,c=A.length;l<c&&!Wt(n,A[l][0]);l++);var h=l<c;if(h?A[l][1]===i:a)return this;if(I(s),(a||!h)&&I(o),a&&2===c)return new ke(t,this.keyHash,A[1^l]);var u=t&&t===this.ownerID,p=u?A:ne(A);return h?a?l===c-1?p.pop():p[l]=p.pop():p[l]=[n,i]:p.push([n,i]),u?(this.entries=p,this):new Te(t,this.keyHash,p)};var ke=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r};ke.prototype.get=function(t,e,r,n){return Wt(r,this.entry[0])?this.entry[1]:n},ke.prototype.update=function(t,e,r,n,i,o,s){var a=i===S,A=Wt(n,this.entry[0]);return(A?i===this.entry[1]:a)?this:(I(s),a?void I(o):A?t&&t===this.ownerID?(this.entry[1]=i,this):new ke(t,this.keyHash,[n,i]):(I(o),je(this,t,e,ct(n),[n,i])))},Se.prototype.iterate=Te.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},Ie.prototype.iterate=Fe.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},ke.prototype.iterate=function(t,e){return t(this.entry)};var Le,Pe=function(t){function e(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&De(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r=e.node,n=e.index++,i=void 0;if(r.entry){if(0===n)return Me(t,r.entry)}else if(r.entries){if(n<=(i=r.entries.length-1))return Me(t,r.entries[this._reverse?i-n:n])}else if(n<=(i=r.nodes.length-1)){var o=r.nodes[this._reverse?i-n:n];if(o){if(o.entry)return Me(t,o.entry);e=this._stack=De(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},e}(m);function Me(t,e){return y(t,e[0],e[1])}function De(t,e){return{node:t,index:0,__prev:e}}function Ne(t,e,r,n){var i=Object.create(Ee);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Oe(){return Le||(Le=Ne(0))}function Ue(t,e,r){var n,i;if(t._root){var o={value:!1},s={value:!1};if(n=Qe(t._root,t.__ownerID,0,void 0,e,r,o,s),!s.value)return t;i=t.size+(o.value?r===S?-1:1:0)}else{if(r===S)return t;i=1,n=new Se(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?Ne(i,n):Oe()}function Qe(t,e,r,n,i,o,s,a){return t?t.update(e,r,n,i,o,s,a):o===S?t:(I(a),I(s),new ke(e,n,[i,o]))}function Re(t){return t.constructor===ke||t.constructor===Te}function je(t,e,r,n,i){if(t.keyHash===n)return new Te(e,n,[t.entry,i]);var o,s=(0===r?t.keyHash:t.keyHash>>>r)&E,a=(0===r?n:n>>>r)&E,A=s===a?[je(t,e,r+5,n,i)]:(o=new ke(e,n,i),s<a?[t,o]:[o,t]);return new Ie(e,1<<s|1<<a,A)}function He(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function Ve(t,e,r,n){var i=n?t:ne(t);return i[e]=r,i}var ze=8,Ge=16,Ke=8;function qe(t){if(K(t)&&"string"!=typeof t)return t;if(H(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}function We(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function Ye(t,e){return R(t)?t.has(e):ee(t)&&G.call(t,e)}function Xe(t,e,r){return R(t)?t.get(e,r):Ye(t,e)?"function"==typeof t.get?t.get(e):t[e]:r}function Je(t,e){if(!ee(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(R(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!G.call(t,e))return t;var r=ie(t);return Array.isArray(r)?r.splice(e,1):delete r[e],r}function Ze(t,e,r){if("string"==typeof e&&re(e))return t;if(!ee(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(R(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,r)}if(G.call(t,e)&&r===t[e])return t;var n=ie(t);return n[e]=r,n}function $e(t,e,r,n){n||(n=r,r=void 0);var i=tr(R(t),t,qe(e),0,r,n);return i===S?r:i}function tr(t,e,r,n,i,o){var s=e===S;if(n===r.length){var a=s?i:e,A=o(a);return A===a?e:A}if(!s&&!ee(e))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(r).slice(0,n).map(We)+"]: "+e);var l=r[n],c=s?S:Xe(e,l,S),h=tr(c===S?t:R(c),c,r,n+1,i,o);return h===c?e:h===S?Je(e,l):Ze(s?t?Oe():{}:e,l,h)}function er(t,e){return $e(t,e,function(){return S})}function rr(t){return er(this,t)}var nr="@@__IMMUTABLE_LIST__@@";function ir(t){return Boolean(t&&t[nr])}var or=function(t){function e(e){var r=hr();if(null==e)return r;if(ir(e))return e;var n=t(e),i=n.size;return 0===i?r:(Ce(i),i>0&&i<_?cr(0,i,5,null,new ar(n.toArray())):r.withMutations(function(t){t.setSize(i),n.forEach(function(e,r){return t.set(r,e)})}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=k(this,t))>=0&&t<this.size){var r=fr(this,t+=this._origin);return r&&r.array[t&E]}return e},e.prototype.set=function(t,e){return function(t,e,r){if((e=k(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?dr(t,e).set(0,r):dr(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o={value:!1};return e>=gr(t._capacity)?n=ur(n,t.__ownerID,0,e,r,o):i=ur(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):cr(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):hr()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){dr(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},e.prototype.pop=function(){return dr(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){dr(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},e.prototype.shift=function(){return dr(this,1)},e.prototype.shuffle=function(t){return void 0===t&&(t=Math.random),this.withMutations(function(e){for(var r,n,i=e.size;i;)r=Math.floor(t()*i--),n=e.get(r),e.set(r,e.get(i)),e.set(i,n)})},e.prototype.concat=function(){for(var e=arguments,r=[],n=0;n<arguments.length;n++){var i=e[n],o=t("string"!=typeof i&&b(i)?i:[i]);0!==o.size&&r.push(o)}return 0===r.length?this:0!==this.size||this.__ownerID||1!==r.length?this.withMutations(function(t){r.forEach(function(e){return e.forEach(function(e){return t.push(e)})})}):this.constructor(r[0])},e.prototype.setSize=function(t){return dr(this,0,t)},e.prototype.map=function(t,e){var r=this;return this.withMutations(function(n){for(var i=0;i<r.size;i++)n.set(i,t.call(e,n.get(i),i,r))})},e.prototype.slice=function(t,e){var r=this.size;return P(t,e,r)?this:dr(this,M(t,r),D(e,r))},e.prototype.__iterator=function(t,e){var r=e?this.size:0,n=lr(this,e);return new m(function(){var i=n();return i===Ar?{value:void 0,done:!0}:y(t,e?--r:r++,i)})},e.prototype.__iterate=function(t,e){for(var r,n=e?this.size:0,i=lr(this,e);(r=i())!==Ar&&!1!==t(r,e?--n:n++,this););return n},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?cr(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?hr():(this.__ownerID=t,this.__altered=!1,this)},e}(u);or.isList=ir;var sr=or.prototype;sr[nr]=!0,sr[C]=sr.remove,sr.merge=sr.concat,sr.setIn=ge,sr.deleteIn=sr.removeIn=rr,sr.update=me,sr.updateIn=ye,sr.mergeIn=fe,sr.mergeDeepIn=pe,sr.withMutations=be,sr.wasAltered=ve,sr.asImmutable=ot,sr["@@transducer/init"]=sr.asMutable=st,sr["@@transducer/step"]=function(t,e){return t.push(e)},sr["@@transducer/result"]=function(t){return t.asImmutable()};var ar=function(t,e){this.array=t,this.ownerID=e};ar.prototype.removeBefore=function(t,e,r){if(!(r&(1<<e+5)-1)||0===this.array.length)return this;var n=r>>>e&E;if(n>=this.array.length)return new ar([],t);var i,o=0===n;if(e>0){var s=this.array[n];if((i=s&&s.removeBefore(t,e-5,r))===s&&o)return this}if(o&&!i)return this;var a=pr(this,t);if(!o)for(var A=0;A<n;A++)a.array[A]=void 0;return i&&(a.array[n]=i),a},ar.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e+5:_)||0===this.array.length)return this;var n,i=r-1>>>e&E;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-5,r))===o&&i===this.array.length-1)return this}var s=pr(this,t);return s.array.splice(i+1),n&&(s.array[i]=n),s};var Ar={};function lr(t,e){var r=t._origin,n=t._capacity,i=gr(n),o=t._tail;return function t(s,a,A){return 0===a?function(t,s){var a=s===i?o&&o.array:t&&t.array,A=s>r?0:r-s,l=n-s;return l>_&&(l=_),function(){if(A===l)return Ar;var t=e?--l:A++;return a&&a[t]}}(s,A):function(i,o,s){var a,A=i&&i.array,l=s>r?0:r-s>>o,c=1+(n-s>>o);return c>_&&(c=_),function(){for(;;){if(a){var r=a();if(r!==Ar)return r;a=null}if(l===c)return Ar;var n=e?--c:l++;a=t(A&&A[n],o-5,s+(n<<o))}}}(s,a,A)}(t._root,t._level,0)}function cr(t,e,r,n,i,o,s){var a=Object.create(sr);return a.size=e-t,a._origin=t,a._capacity=e,a._level=r,a._root=n,a._tail=i,a.__ownerID=o,a.__hash=s,a.__altered=!1,a}function hr(){return cr(0,0,5)}function ur(t,e,r,n,i,o){var s,a=n>>>r&E,A=t&&a<t.array.length;if(!A&&void 0===i)return t;if(r>0){var l=t&&t.array[a],c=ur(l,e,r-5,n,i,o);return c===l?t:((s=pr(t,e)).array[a]=c,s)}return A&&t.array[a]===i?t:(o&&I(o),s=pr(t,e),void 0===i&&a===s.array.length-1?s.array.pop():s.array[a]=i,s)}function pr(t,e){return e&&t&&e===t.ownerID?t:new ar(t?t.array.slice():[],e)}function fr(t,e){if(e>=gr(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&E],n-=5;return r}}function dr(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new F,i=t._origin,o=t._capacity,s=i+e,a=void 0===r?o:r<0?o+r:i+r;if(s===i&&a===o)return t;if(s>=a)return t.clear();for(var A=t._level,l=t._root,c=0;s+c<0;)l=new ar(l&&l.array.length?[void 0,l]:[],n),c+=1<<(A+=5);c&&(s+=c,i+=c,a+=c,o+=c);for(var h=gr(o),u=gr(a);u>=1<<A+5;)l=new ar(l&&l.array.length?[l]:[],n),A+=5;var p=t._tail,f=u<h?fr(t,a-1):u>h?new ar([],n):p;if(p&&u>h&&s<o&&p.array.length){for(var d=l=pr(l,n),g=A;g>5;g-=5){var m=h>>>g&E;d=d.array[m]=pr(d.array[m],n)}d.array[h>>>5&E]=p}if(a<o&&(f=f&&f.removeAfter(n,0,a)),s>=u)s-=u,a-=u,A=5,l=null,f=f&&f.removeBefore(n,0,s);else if(s>i||u<h){for(c=0;l;){var y=s>>>A&E;if(y!==u>>>A&E)break;y&&(c+=(1<<A)*y),A-=5,l=l.array[y]}l&&s>i&&(l=l.removeBefore(n,A,s-c)),l&&u<h&&(l=l.removeAfter(n,A,u-c)),c&&(s-=c,a-=c)}return t.__ownerID?(t.size=a-s,t._origin=s,t._capacity=a,t._level=A,t._root=l,t._tail=f,t.__hash=void 0,t.__altered=!0,t):cr(s,a,A,l,f)}function gr(t){return t<_?0:t-1>>>5<<5}function mr(t){return xe(t)&&H(t)}var yr,vr=function(t){function e(t){return null==t?wr():mr(t)?t:wr().withMutations(function(e){var r=h(t);Ce(r.size),r.forEach(function(t,r){return e.set(r,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):wr()},e.prototype.set=function(t,e){return xr(this,t,e)},e.prototype.remove=function(t){return xr(this,t,S)},e.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?br(e,r,t,this.__hash):0===this.size?wr():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=r,this)},e}(_e);function br(t,e,r,n){var i=Object.create(vr.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function wr(){return yr||(yr=br(Oe(),hr()))}function xr(t,e,r){var n,i,o=t._map,s=t._list,a=o.get(e),A=void 0!==a;if(r===S){if(!A)return t;s.size>=_&&s.size>=2*o.size?(n=(i=s.filter(function(t,e){return void 0!==t&&a!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=a===s.size-1?s.pop():s.set(a,void 0))}else if(A){if(r===s.get(a)[1])return t;n=o,i=s.set(a,[e,r])}else n=o.set(e,s.size),i=s.set(s.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t.__altered=!0,t):br(n,i)}vr.isOrderedMap=mr,vr.prototype[j]=!0,vr.prototype[C]=vr.prototype.remove;var Br="@@__IMMUTABLE_STACK__@@";function Cr(t){return Boolean(t&&t[Br])}var _r=function(t){function e(t){return null==t?Fr():Cr(t)?t:Fr().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var r=this._head;for(t=k(this,t);r&&t--;)r=r.next;return r?r.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,r=this._head,n=arguments.length-1;n>=0;n--)r={value:t[n],next:r};return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Ir(e,r)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&Cr(e))return e;Ce(e.size);var r=this.size,n=this._head;return e.__iterate(function(t){r++,n={value:t,next:n}},!0),this.__ownerID?(this.size=r,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ir(r,n)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Fr()},e.prototype.slice=function(e,r){if(P(e,r,this.size))return this;var n=M(e,this.size);if(D(r,this.size)!==this.size)return t.prototype.slice.call(this,e,r);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ir(i,o)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ir(this.size,this._head,t,this.__hash):0===this.size?Fr():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var r=this;if(e)return new J(this.toArray()).__iterate(function(e,n){return t(e,n,r)},e);for(var n=0,i=this._head;i&&!1!==t(i.value,n++,this);)i=i.next;return n},e.prototype.__iterator=function(t,e){if(e)return new J(this.toArray()).__iterator(t,e);var r=0,n=this._head;return new m(function(){if(n){var e=n.value;return n=n.next,y(t,r++,e)}return{value:void 0,done:!0}})},e}(u);_r.isStack=Cr;var Er,Sr=_r.prototype;function Ir(t,e,r,n){var i=Object.create(Sr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Fr(){return Er||(Er=Ir(0))}function Tr(t,e,r,n,i,o){return Ce(t.size),t.__iterate(function(t,o,s){i?(i=!1,r=t):r=e.call(n,r,t,o,s)},o),r}function kr(t,e){return e}function Lr(t,e){return[e,t]}function Pr(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return!t.apply(this,e)}}function Mr(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return-t.apply(this,e)}}function Dr(t,e){return t<e?1:t>e?-1:0}function Nr(t,e){if(t===e)return!0;if(!l(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||i(t)!==i(e)||H(t)!==H(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!a(t);if(H(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&Wt(i[1],t)&&(r||Wt(i[0],e))})&&n.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var A=t;t=e,e=A}var c=!0,h=e.__iterate(function(e,n){if(r?!t.has(e):o?!Wt(e,t.get(n,S)):!Wt(t.get(n,S),e))return c=!1,!1});return c&&t.size===h}Sr[Br]=!0,Sr.shift=Sr.pop,Sr.unshift=Sr.push,Sr.unshiftAll=Sr.pushAll,Sr.withMutations=be,Sr.wasAltered=ve,Sr.asImmutable=ot,Sr["@@transducer/init"]=Sr.asMutable=st,Sr["@@transducer/step"]=function(t,e){return t.unshift(e)},Sr["@@transducer/result"]=function(t){return t.asImmutable()};var Or,Ur=function(t){function e(t,r,n){if(void 0===n&&(n=1),!(this instanceof e))return new e(t,r,n);if(Be(0!==n,"Cannot step a Range by 0"),Be(void 0!==t,"You must define a start value when using Range"),Be(void 0!==r,"You must define an end value when using Range"),n=Math.abs(n),r<t&&(n=-n),this._start=t,this._end=r,this._step=n,this.size=Math.max(0,Math.ceil((r-t)/n-1)+1),0===this.size){if(Or)return Or;Or=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+k(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,r){return P(t,r,this.size)?this:(t=M(t,this.size),(r=D(r,this.size))<=t?new e(0,0):new e(this.get(t,this._end),this.get(r,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;o!==r&&!1!==t(i,e?r-++o:o++,this);)i+=e?-n:n;return o},e.prototype.__iterator=function(t,e){var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;return new m(function(){if(o===r)return{value:void 0,done:!0};var s=i;return i+=e?-n:n,y(t,e?r-++o:o++,s)})},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:Nr(this,t)},e}(Y),Qr="@@__IMMUTABLE_SET__@@";function Rr(t){return Boolean(t&&t[Qr])}var jr=function(t){function e(e){return null==e?Kr():Rr(e)&&!H(e)?e:Kr().withMutations(function(r){var n=t(e);Ce(n.size),n.forEach(function(t){return r.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(h(t).keySeq())},e.intersect=function(t){return(t=c(t).toArray()).length?Vr.intersect.apply(e(t.pop()),t):Kr()},e.union=function(t){return(t=c(t).toArray()).length?Vr.union.apply(e(t.pop()),t):Kr()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return zr(this,this._map.set(t,t))},e.prototype.remove=function(t){return zr(this,this._map.remove(t))},e.prototype.clear=function(){return zr(this,this._map.clear())},e.prototype.map=function(t,e){var r=this,n=!1,i=zr(this,this._map.mapEntries(function(i){var o=i[1],s=t.call(e,o,o,r);return s!==o&&(n=!0),[s,s]},e));return n?i:this},e.prototype.union=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(r){for(var n=0;n<e.length;n++)"string"==typeof e[n]?r.add(e[n]):t(e[n]).forEach(function(t){return r.add(t)})}):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map(function(e){return t(e)});var n=[];return this.forEach(function(t){e.every(function(e){return e.includes(t)})||n.push(t)}),this.withMutations(function(t){n.forEach(function(e){t.remove(e)})})},e.prototype.subtract=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map(function(e){return t(e)});var n=[];return this.forEach(function(t){e.some(function(e){return e.includes(t)})&&n.push(t)}),this.withMutations(function(t){n.forEach(function(e){t.remove(e)})})},e.prototype.sort=function(t){return an(Ot(this,t))},e.prototype.sortBy=function(t,e){return an(Ot(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e){return t(e,e,r)},e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(p);jr.isSet=Rr;var Hr,Vr=jr.prototype;function zr(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Gr(t,e){var r=Object.create(Vr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Kr(){return Hr||(Hr=Gr(Oe()))}function qr(t,e,r){for(var n=qe(e),i=0;i!==n.length;)if((t=Xe(t,n[i++],S))===S)return r;return t}function Wr(t,e){return qr(this,t,e)}function Yr(t,e){return qr(t,e,S)!==S}function Xr(){Ce(this.size);var t={};return this.__iterate(function(e,r){re(r)||(t[r]=e)}),t}function Jr(t){if(!t||"object"!=typeof t)return t;if(!l(t)){if(!ee(t))return t;t=q(t)}if(s(t)){var e={};return t.__iterate(function(t,r){re(r)||(e[r]=Jr(t))}),e}var r=[];return t.__iterate(function(t){r.push(Jr(t))}),r}function Zr(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}function $r(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}Vr[Qr]=!0,Vr[C]=Vr.remove,Vr.merge=Vr.concat=Vr.union,Vr.withMutations=be,Vr.asImmutable=ot,Vr["@@transducer/init"]=Vr.asMutable=st,Vr["@@transducer/step"]=function(t,e){return t.add(e)},Vr["@@transducer/result"]=function(t){return t.asImmutable()},Vr.__empty=Kr,Vr.__make=Gr,c.Iterator=m,$r(c,{toArray:function(){Ce(this.size);var t=new Array(this.size||0),e=s(this),r=0;return this.__iterate(function(n,i){t[r++]=e?[i,n]:n}),t},toIndexedSeq:function(){return new Et(this)},toJS:function(){return Jr(this)},toKeyedSeq:function(){return new _t(this,!0)},toMap:function(){return _e(this.toKeyedSeq())},toObject:Xr,toOrderedMap:function(){return vr(this.toKeyedSeq())},toOrderedSet:function(){return an(s(this)?this.valueSeq():this)},toSet:function(){return jr(s(this)?this.valueSeq():this)},toSetSeq:function(){return new St(this)},toSeq:function(){return i(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return _r(s(this)?this.valueSeq():this)},toList:function(){return or(s(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return jt(this,function(t,e){var r=s(t),n=[t].concat(e).map(function(t){return l(t)?r&&(t=h(t)):t=r?rt(t):nt(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===n.length)return t;if(1===n.length){var o=n[0];if(o===t||r&&s(o)||i(t)&&i(o))return o}return new Dt(n)}(this,t))},includes:function(t){return this.some(function(e){return Wt(e,t)})},entries:function(){return this.__iterator(2)},every:function(t,e){Ce(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1}),r},filter:function(t,e){return jt(this,Lt(this,t,e,!0))},partition:function(t,e){return function(t,e,r){var n=s(t),i=[[],[]];t.__iterate(function(o,s){i[e.call(r,o,s,t)?1:0].push(n?[s,o]:o)});var o=Vt(t);return i.map(function(e){return jt(t,o(e))})}(this,t,e)},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return Ce(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Ce(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""}),e},keys:function(){return this.__iterator(0)},map:function(t,e){return jt(this,Tt(this,t,e))},reduce:function(t,e,r){return Tr(this,t,e,r,arguments.length<2,!1)},reduceRight:function(t,e,r){return Tr(this,t,e,r,arguments.length<2,!0)},reverse:function(){return jt(this,kt(this,!0))},slice:function(t,e){return jt(this,Pt(this,t,e,!0))},some:function(t,e){Ce(this.size);var r=!1;return this.__iterate(function(n,i,o){if(t.call(e,n,i,o))return r=!0,!1}),r},sort:function(t){return jt(this,Ot(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return T(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,r){var n=_e().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}(this,t,e)},equals:function(t){return Nr(this,t)},entrySeq:function(){var t=this;if(t._cache)return new J(t._cache);var e=t.toSeq().map(Lr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Pr(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(L,null,t)},flatMap:function(t,e){return jt(this,function(t,e,r){var n=Vt(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return jt(this,Nt(this,t,!0))},fromEntrySeq:function(){return new It(this)},get:function(t,e){return this.find(function(e,r){return Wt(r,t)},void 0,e)},getIn:Wr,groupBy:function(t,e){return function(t,e,r){var n=s(t),i=(H(t)?vr():_e()).asMutable();t.__iterate(function(o,s){i.update(e.call(r,o,s,t),function(t){return(t=t||[]).push(n?[s,o]:o),t})});var o=Vt(t);return i.map(function(e){return jt(t,o(e))}).asImmutable()}(this,t,e)},has:function(t){return this.get(t,S)!==S},hasIn:function(t){return Yr(this,t)},isSubset:function(t){return t="function"==typeof t.includes?t:c(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:c(t)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return Wt(e,t)})},keySeq:function(){return this.toSeq().map(kr).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Ut(this,t)},maxBy:function(t,e){return Ut(this,e,t)},min:function(t){return Ut(this,t?Mr(t):Dr)},minBy:function(t,e){return Ut(this,e?Mr(e):Dr,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return jt(this,Mt(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Pr(t),e)},sortBy:function(t,e){return jt(this,Ot(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return jt(this,function(t,e,r){var n=zt(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var s=0;return t.__iterate(function(t,i,a){return e.call(r,t,i,a)&&++s&&n(t,i,o)}),s},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var s=t.__iterator(2,i),a=!0;return new m(function(){if(!a)return{value:void 0,done:!0};var t=s.next();if(t.done)return t;var i=t.value,A=i[0],l=i[1];return e.call(r,l,A,o)?2===n?t:y(n,A,l,t):(a=!1,{value:void 0,done:!0})})},n}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Pr(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=H(t),r=s(t),n=e?1:0;return t.__iterate(r?e?function(t,e){n=31*n+Zr(ct(t),ct(e))|0}:function(t,e){n=n+Zr(ct(t),ct(e))|0}:e?function(t){n=31*n+ct(t)|0}:function(t){n=n+ct(t)|0}),function(t,e){return e=at(e,3432918353),e=at(e<<15|e>>>-15,461845907),e=at(e<<13|e>>>-13,5),e=at((e=(e+3864292196|0)^t)^e>>>16,2246822507),At((e=at(e^e>>>13,3266489909))^e>>>16)}(t.size,n)}(this))}});var tn=c.prototype;tn[A]=!0,tn[g]=tn.values,tn.toJSON=tn.toArray,tn.__toStringMapper=We,tn.inspect=tn.toSource=function(){return this.toString()},tn.chain=tn.flatMap,tn.contains=tn.includes,$r(h,{flip:function(){return jt(this,Ft(this))},mapEntries:function(t,e){var r=this,n=0;return jt(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return jt(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var en=h.prototype;en[o]=!0,en[g]=tn.entries,en.toJSON=Xr,en.__toStringMapper=function(t,e){return We(e)+": "+We(t)},$r(u,{toKeyedSeq:function(){return new _t(this,!1)},filter:function(t,e){return jt(this,Lt(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return jt(this,kt(this,!1))},slice:function(t,e){return jt(this,Pt(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(e||0,0),0===r||2===r&&!e)return this;t=M(t,t<0?this.count():this.size);var n=this.slice(0,t);return jt(this,1===r?n:n.concat(ne(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return jt(this,Nt(this,t,!1))},get:function(t,e){return(t=k(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return(t=k(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return jt(this,function(t,e){var r=zt(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(1,n),s=0;return new m(function(){return(!i||s%2)&&(i=o.next()).done?i:s%2?y(r,s++,e):y(r,s++,i.value,i)})},r}(this,t))},interleave:function(){var t=[this].concat(ne(arguments)),e=Rt(this.toSeq(),Y.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),jt(this,r)},keySeq:function(){return Ur(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return jt(this,Mt(this,t,e,!1))},zip:function(){return jt(this,Rt(this,on,[this].concat(ne(arguments))))},zipAll:function(){return jt(this,Rt(this,on,[this].concat(ne(arguments)),!0))},zipWith:function(t){var e=ne(arguments);return e[0]=this,jt(this,Rt(this,t,e))}});var rn=u.prototype;rn[n]=!0,rn[j]=!0,$r(p,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var nn=p.prototype;function on(){return ne(arguments)}function sn(t){return Rr(t)&&H(t)}nn.has=tn.includes,nn.contains=nn.includes,nn.keys=nn.values,$r(W,en),$r(Y,rn),$r(X,nn);var an=function(t){function e(t){return null==t?hn():sn(t)?t:hn().withMutations(function(e){var r=p(t);Ce(r.size),r.forEach(function(t){return e.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(h(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(jr);an.isOrderedSet=sn;var An,ln=an.prototype;function cn(t,e){var r=Object.create(ln);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function hn(){return An||(An=cn(wr()))}ln[j]=!0,ln.zip=rn.zip,ln.zipWith=rn.zipWith,ln.zipAll=rn.zipAll,ln.__empty=hn,ln.__make=cn;var un={LeftThenRight:-1,RightThenLeft:1},pn=function(t,e){var r;!function(t){if(Q(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(R(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);var n=function(o){var s=this;if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var a=Object.keys(t),A=i._indices={};i._name=e,i._keys=a,i._defaultValues=t;for(var l=0;l<a.length;l++){var c=a[l];A[c]=l,i[c]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+gn(this)+' with property "'+c+'" since that property name is part of the Record API.'):yn(i,c)}}return this.__ownerID=void 0,this._values=or().withMutations(function(t){t.setSize(s._keys.length),h(o).forEach(function(e,r){t.set(s._indices[r],e===s._defaultValues[r]?void 0:e)})}),this},i=n.prototype=Object.create(fn);return i.constructor=n,e&&(n.displayName=e),n};pn.prototype.toString=function(){for(var t,e=gn(this)+" { ",r=this._keys,n=0,i=r.length;n!==i;n++)e+=(n?", ":"")+(t=r[n])+": "+We(this.get(t));return e+" }"},pn.prototype.equals=function(t){return this===t||Q(t)&&mn(this).equals(mn(t))},pn.prototype.hashCode=function(){return mn(this).hashCode()},pn.prototype.has=function(t){return this._indices.hasOwnProperty(t)},pn.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._indices[t],n=this._values.get(r);return void 0===n?this._defaultValues[t]:n},pn.prototype.set=function(t,e){if(this.has(t)){var r=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(r!==this._values&&!this.__ownerID)return dn(this,r)}return this},pn.prototype.remove=function(t){return this.set(t)},pn.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:dn(this,t)},pn.prototype.wasAltered=function(){return this._values.wasAltered()},pn.prototype.toSeq=function(){return mn(this)},pn.prototype.toJS=function(){return Jr(this)},pn.prototype.entries=function(){return this.__iterator(2)},pn.prototype.__iterator=function(t,e){return mn(this).__iterator(t,e)},pn.prototype.__iterate=function(t,e){return mn(this).__iterate(t,e)},pn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?dn(this,e,t):(this.__ownerID=t,this._values=e,this)},pn.isRecord=Q,pn.getDescriptiveName=gn;var fn=pn.prototype;function dn(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._values=e,n.__ownerID=r,n}function gn(t){return t.constructor.displayName||t.constructor.name||"Record"}function mn(t){return rt(t._keys.map(function(e){return[e,t.get(e)]}))}function yn(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Be(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}fn[U]=!0,fn[C]=fn.remove,fn.deleteIn=fn.removeIn=rr,fn.getIn=Wr,fn.hasIn=tn.hasIn,fn.merge=Xt,fn.mergeWith=Jt,fn.mergeIn=fe,fn.mergeDeep=he,fn.mergeDeepWith=ue,fn.mergeDeepIn=pe,fn.setIn=ge,fn.update=me,fn.updateIn=ye,fn.withMutations=be,fn.asMutable=st,fn.asImmutable=ot,fn[g]=fn.entries,fn.toJSON=fn.toObject=tn.toObject,fn.inspect=fn.toSource=function(){return this.toString()};var vn,bn=function(t){function e(t,r){if(!(this instanceof e))return new e(t,r);if(this._value=t,this.size=void 0===r?1/0:Math.max(0,r),0===this.size){if(vn)return vn;vn=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return Wt(this._value,t)},e.prototype.slice=function(t,r){var n=this.size;return P(t,r,n)?this:new e(this._value,D(r,n)-M(t,n))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return Wt(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return Wt(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var r=this.size,n=0;n!==r&&!1!==t(this._value,e?r-++n:n++,this););return n},e.prototype.__iterator=function(t,e){var r=this,n=this.size,i=0;return new m(function(){return i===n?{value:void 0,done:!0}:y(t,e?n-++i:i++,r._value)})},e.prototype.equals=function(t){return t instanceof e?Wt(this._value,t._value):Nr(this,t)},e}(Y);function wn(t,e){return xn([],e||Bn,t,"",e&&e.length>2?[]:void 0,{"":t})}function xn(t,e,r,n,i,o){if("string"!=typeof r&&!R(r)&&(K(r)||b(r)||te(r))){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),i&&""!==n&&i.push(n);var s=e.call(o,n,q(r).map(function(n,o){return xn(t,e,n,o,i,r)}),i&&i.slice());return t.pop(),i&&i.pop(),s}return r}function Bn(t,e){return i(e)?e.toList():s(e)?e.toMap():e.toSet()}var Cn="5.1.5",_n=c},50646(t){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},91193(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},83176(t){"use strict";var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,A=/^\s+|\s+$/g,l="";function c(t){return t?t.replace(A,l):l}t.exports=function(t,A){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];A=A||{};var h=1,u=1;function p(t){var e=t.match(r);e&&(h+=e.length);var n=t.lastIndexOf("\n");u=~n?t.length-n:u+t.length}function f(){var t={line:h,column:u};return function(e){return e.position=new d(t),y(),e}}function d(t){this.start=t,this.end={line:h,column:u},this.source=A.source}function g(e){var r=new Error(A.source+":"+h+":"+u+": "+e);if(r.reason=e,r.filename=A.source,r.line=h,r.column=u,r.source=t,!A.silent)throw r}function m(e){var r=e.exec(t);if(r){var n=r[0];return p(n),t=t.slice(n.length),r}}function y(){m(n)}function v(t){var e;for(t=t||[];e=b();)!1!==e&&t.push(e);return t}function b(){var e=f();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var r=2;l!=t.charAt(r)&&("*"!=t.charAt(r)||"/"!=t.charAt(r+1));)++r;if(r+=2,l===t.charAt(r-1))return g("End of comment missing");var n=t.slice(2,r-2);return u+=2,p(n),t=t.slice(r),u+=2,e({type:"comment",comment:n})}}function w(){var t=f(),r=m(i);if(r){if(b(),!m(o))return g("property missing ':'");var n=m(s),A=t({type:"declaration",property:c(r[0].replace(e,l)),value:n?c(n[0].replace(e,l)):l});return m(a),A}}return d.prototype.content=t,y(),function(){var t,e=[];for(v(e);t=w();)!1!==t&&(e.push(t),v(e));return e}()}},81133(t,e,r){"use strict";r.r(e),r.d(e,{ErrorCode:()=>n,FormatError:()=>A,IntlMessageFormat:()=>d,InvalidValueError:()=>l,InvalidValueTypeError:()=>c,MissingValueError:()=>h,PART_TYPE:()=>a,default:()=>g,formatToParts:()=>p,isFormatXMLElementFn:()=>u});var n,i=r(65959),o=r(9991),s=r(78582);!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(n||(n={}));var a,A=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.code=r,i.originalMessage=n,i}return(0,i.__extends)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),l=function(t){function e(e,r,i,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),n.INVALID_VALUE,o)||this}return(0,i.__extends)(e,t),e}(A),c=function(t){function e(e,r,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),n.INVALID_VALUE,i)||this}return(0,i.__extends)(e,t),e}(A),h=function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),n.MISSING_VALUE,r)||this}return(0,i.__extends)(e,t),e}(A);function u(t){return"function"==typeof t}function p(t,e,r,i,o,f,d){if(1===t.length&&(0,s.eW)(t[0]))return[{type:a.literal,value:t[0].value}];for(var g=[],m=0,y=t;m<y.length;m++){var v=y[m];if((0,s.eW)(v))g.push({type:a.literal,value:v.value});else if((0,s.jA)(v))"number"==typeof f&&g.push({type:a.literal,value:r.getNumberFormat(e).format(f)});else{var b=v.value;if(!o||!(b in o))throw new h(b,d);var w=o[b];if((0,s.Im)(v))w&&"string"!=typeof w&&"number"!=typeof w||(w="string"==typeof w||"number"==typeof w?String(w):""),g.push({type:"string"==typeof w?a.literal:a.object,value:w});else if((0,s.tv)(v)){var x="string"==typeof v.style?i.date[v.style]:(0,s.Tu)(v.style)?v.style.parsedOptions:void 0;g.push({type:a.literal,value:r.getDateTimeFormat(e,x).format(w)})}else if((0,s.Qh)(v))x="string"==typeof v.style?i.time[v.style]:(0,s.Tu)(v.style)?v.style.parsedOptions:i.time.medium,g.push({type:a.literal,value:r.getDateTimeFormat(e,x).format(w)});else if((0,s.oF)(v))(x="string"==typeof v.style?i.number[v.style]:(0,s.N1)(v.style)?v.style.parsedOptions:void 0)&&x.scale&&(w*=x.scale||1),g.push({type:a.literal,value:r.getNumberFormat(e,x).format(w)});else{if((0,s.xm)(v)){var B=v.children,C=v.value,_=o[C];if(!u(_))throw new c(C,"function",d);var E=_(p(B,e,r,i,o,f).map(function(t){return t.value}));Array.isArray(E)||(E=[E]),g.push.apply(g,E.map(function(t){return{type:"string"==typeof t?a.literal:a.object,value:t}}))}if((0,s.Jp)(v)){if(!(S=v.options[w]||v.options.other))throw new l(v.value,w,Object.keys(v.options),d);g.push.apply(g,p(S.value,e,r,i,o))}else if((0,s.N6)(v)){var S;if(!(S=v.options["=".concat(w)])){if(!Intl.PluralRules)throw new A('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',n.MISSING_INTL_API,d);var I=r.getPluralRules(e,{type:v.pluralType}).select(w-(v.offset||0));S=v.options[I]||v.options.other}if(!S)throw new l(v.value,w,Object.keys(v.options),d);g.push.apply(g,p(S.value,e,r,i,o,w-(v.offset||0)))}}}}return(F=g).length<2?F:F.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===a.literal&&e.type===a.literal?r.value+=e.value:t.push(e),t},[]);var F}function f(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(a||(a={}));var d=function(){function t(e,r,n,s){void 0===r&&(r=t.defaultLocale);var A,l,c,h=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=h.formatToParts(t);if(1===e.length)return e[0].value;var r=e.reduce(function(t,e){return t.length&&e.type===a.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return p(h.ast,h.locales,h.formatters,h.formats,t,void 0,h.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=h.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(h.locales)[0]}},this.getAst=function(){return h.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var u=s||{},d=(u.formatters,(0,i.__rest)(u,["formatters"]));this.ast=t.__parse(e,(0,i.__assign)((0,i.__assign)({},d),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(l=t.formats,(c=n)?Object.keys(l).reduce(function(t,e){var r,n;return t[e]=(r=l[e],(n=c[e])?(0,i.__assign)((0,i.__assign)((0,i.__assign)({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=(0,i.__assign)((0,i.__assign)({},r[e]),n[e]||{}),t},{})):r),t},(0,i.__assign)({},l)):l),this.formatters=s&&s.formatters||(void 0===(A=this.formatterCache)&&(A={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.B)(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,(0,i.__spreadArray)([void 0],e,!1)))},{cache:f(A.number),strategy:o.W.variadic}),getDateTimeFormat:(0,o.B)(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,(0,i.__spreadArray)([void 0],e,!1)))},{cache:f(A.dateTime),strategy:o.W.variadic}),getPluralRules:(0,o.B)(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,(0,i.__spreadArray)([void 0],e,!1)))},{cache:f(A.pluralRules),strategy:o.W.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(void 0!==Intl.Locale){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=s.qg,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const g=d},92859(t,e,r){"use strict";r.d(e,{S:()=>A});var n=r(65959),i=r(26140),o=r(59556),s=r(23231);function a(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}var A=function(){function t(e,r,i,A){var l,c,h,u=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=u.formatToParts(t);if(1===e.length)return e[0].value;var r=e.reduce(function(t,e){return t.length&&e.type===s.TT.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return(0,s.hN)(u.ast,u.locales,u.formatters,u.formats,t,void 0,u.message)},this.resolvedOptions=function(){return{locale:u.resolvedLocale.toString()}},this.getAst=function(){return u.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=t.__parse(e,{ignoreTag:null==A?void 0:A.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(c=t.formats,(h=i)?Object.keys(c).reduce(function(t,e){var r,i;return t[e]=(r=c[e],(i=h[e])?(0,n.__assign)((0,n.__assign)((0,n.__assign)({},r||{}),i||{}),Object.keys(r).reduce(function(t,e){return t[e]=(0,n.__assign)((0,n.__assign)({},r[e]),i[e]||{}),t},{})):r),t},(0,n.__assign)({},c)):c),this.formatters=A&&A.formatters||(void 0===(l=this.formatterCache)&&(l={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.A)(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,(0,n.__spreadArray)([void 0],e,!1)))},{cache:a(l.number),strategy:o.W.variadic}),getDateTimeFormat:(0,o.A)(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,(0,n.__spreadArray)([void 0],e,!1)))},{cache:a(l.dateTime),strategy:o.W.variadic}),getPluralRules:(0,o.A)(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,(0,n.__spreadArray)([void 0],e,!1)))},{cache:a(l.pluralRules),strategy:o.W.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=i.qg,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}()},660(t,e,r){"use strict";r.d(e,{$x:()=>s,Ei:()=>A,IF:()=>o,O4:()=>n,Zo:()=>a});var n,i=r(65959);!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(n||(n={}));var o=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.code=r,i.originalMessage=n,i}return(0,i.__extends)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),s=function(t){function e(e,r,i,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),n.INVALID_VALUE,o)||this}return(0,i.__extends)(e,t),e}(o),a=function(t){function e(e,r,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),n.INVALID_VALUE,i)||this}return(0,i.__extends)(e,t),e}(o),A=function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),n.MISSING_VALUE,r)||this}return(0,i.__extends)(e,t),e}(o)},23231(t,e,r){"use strict";r.d(e,{RK:()=>s,TT:()=>n,hN:()=>a});var n,i=r(26140),o=r(660);function s(t){return"function"==typeof t}function a(t,e,r,A,l,c,h){if(1===t.length&&(0,i.eW)(t[0]))return[{type:n.literal,value:t[0].value}];for(var u=[],p=0,f=t;p<f.length;p++){var d=f[p];if((0,i.eW)(d))u.push({type:n.literal,value:d.value});else if((0,i.jA)(d))"number"==typeof c&&u.push({type:n.literal,value:r.getNumberFormat(e).format(c)});else{var g=d.value;if(!l||!(g in l))throw new o.Ei(g,h);var m=l[g];if((0,i.Im)(d))m&&"string"!=typeof m&&"number"!=typeof m||(m="string"==typeof m||"number"==typeof m?String(m):""),u.push({type:"string"==typeof m?n.literal:n.object,value:m});else if((0,i.tv)(d)){var y="string"==typeof d.style?A.date[d.style]:(0,i.Tu)(d.style)?d.style.parsedOptions:void 0;u.push({type:n.literal,value:r.getDateTimeFormat(e,y).format(m)})}else if((0,i.Qh)(d))y="string"==typeof d.style?A.time[d.style]:(0,i.Tu)(d.style)?d.style.parsedOptions:A.time.medium,u.push({type:n.literal,value:r.getDateTimeFormat(e,y).format(m)});else if((0,i.oF)(d))(y="string"==typeof d.style?A.number[d.style]:(0,i.N1)(d.style)?d.style.parsedOptions:void 0)&&y.scale&&(m*=y.scale||1),u.push({type:n.literal,value:r.getNumberFormat(e,y).format(m)});else{if((0,i.xm)(d)){var v=d.children,b=d.value,w=l[b];if(!s(w))throw new o.Zo(b,"function",h);var x=w(a(v,e,r,A,l,c).map(function(t){return t.value}));Array.isArray(x)||(x=[x]),u.push.apply(u,x.map(function(t){return{type:"string"==typeof t?n.literal:n.object,value:t}}))}if((0,i.Jp)(d)){if(!(B=d.options[m]||d.options.other))throw new o.$x(d.value,m,Object.keys(d.options),h);u.push.apply(u,a(B.value,e,r,A,l))}else if((0,i.N6)(d)){var B;if(!(B=d.options["=".concat(m)])){if(!Intl.PluralRules)throw new o.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',o.O4.MISSING_INTL_API,h);var C=r.getPluralRules(e,{type:d.pluralType}).select(m-(d.offset||0));B=d.options[C]||d.options.other}if(!B)throw new o.$x(d.value,m,Object.keys(d.options),h);u.push.apply(u,a(B.value,e,r,A,l,m-(d.offset||0)))}}}}return(_=u).length<2?_:_.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===n.literal&&e.type===n.literal?r.value+=e.value:t.push(e),t},[]);var _}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(n||(n={}))},84708(t,e,r){"use strict";function n(t,e="utf8"){return new TextDecoder(e).decode(t)}r.d(e,{H:()=>a});const i=new TextEncoder,o=(()=>{const t=new Uint8Array(4);return!((new Uint32Array(t.buffer)[0]=1)&t[0])})(),s={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class a{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=8192,e={}){let r=!1;"number"==typeof t?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const n=e.offset?e.offset>>>0:0,i=t.byteLength-n;let o=n;(ArrayBuffer.isView(t)||t instanceof a)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+n),t=t.buffer),this.lastWrittenByte=r?i:0,this.buffer=t,this.length=i,this.byteLength=i,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,i),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(void 0===t)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const e=2*(this.offset+t),r=new Uint8Array(e);r.set(new Uint8Array(this.buffer)),this.buffer=r.buffer,this.length=e,this.byteLength=e,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,e){const r=s[e].BYTES_PER_ELEMENT*t,n=this.byteOffset+this.offset,i=this.buffer.slice(n,n+r);if(this.littleEndian===o&&"uint8"!==e&&"int8"!==e){const t=new Uint8Array(this.buffer.slice(n,n+r));t.reverse();const i=new s[e](t.buffer);return this.offset+=r,i.reverse(),i}const a=new s[e](i);return this.offset+=r,a}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let e="";for(let r=0;r<t;r++)e+=this.readChar();return e}readUtf8(t=1){return n(this.readBytes(t))}decodeText(t=1,e="utf8"){return n(this.readBytes(t),e)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let e=0;e<t.length;e++)this._data.setUint8(this.offset++,t[e]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let e=0;e<t.length;e++)this.writeUint8(t.charCodeAt(e));return this}writeUtf8(t){return this.writeBytes(function(t){return i.encode(t)}(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}},66633(t){"use strict";t.exports=function(t){var e="string"==typeof t?t.charCodeAt(0):t;return e>=97&&e<=122||e>=65&&e<=90}},16837(t,e,r){"use strict";var n=r(66633),i=r(67101);t.exports=function(t){return n(t)||i(t)}},24982(t){function e(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},22956(t){"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,e)}catch(t){t!==r&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(t){try{var e=n.call(t);return o.test(e)}catch(t){return!1}},a=function(t){try{return!s(t)&&(n.call(t),!0)}catch(t){return!1}},A=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var u=document.all;A.call(u)===A.call(document.all)&&(h=function(t){if((c||!t)&&(void 0===t||"object"==typeof t))try{var e=A.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!s(t)&&a(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return a(t);if(s(t))return!1;var e=A.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},67101(t){"use strict";t.exports=function(t){var e="string"==typeof t?t.charCodeAt(0):t;return e>=48&&e<=57}},69749(t){"use strict";t.exports=function(t){var e="string"==typeof t?t.charCodeAt(0):t;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}},42346(t,e,r){"use strict";r.d(e,{A:()=>i});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};const i="object"===("undefined"==typeof window?"undefined":n(window))&&"object"===("undefined"==typeof document?"undefined":n(document))&&9===document.nodeType},8829(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.d(e,{A:()=>o});var i=function(t){return Object.prototype.toString.call(t).slice(8,-1)};const o={null:function(t){return null===t},undefined:function(t){return void 0===t},nullOrUndefined:function(t){return this.null(t)||this.undefined(t)},string:function(t){return"string"==typeof t},number:function(t){return"number"==typeof t},function:function(t){return"function"==typeof t},boolean:function(t){return!0===t||!1===t},array:Array.isArray,object:function(t){return!this.nullOrUndefined(t)&&(this.function(t)||function(t){return"object"===n(t)}(t))},plainObject:function(t){var e;return"Object"===i(t)&&(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))},date:function(t){return"Date"===i(t)},promise:function(t){return"Promise"===i(t)},iterable:function(t){return!this.nullOrUndefined(t)&&this.function(t[Symbol.iterator])},generator:function(t){return this.iterable(t)&&this.function(t.next)&&this.function(t.throw)},regexp:function(t){return"RegExp"===i(t)},symbol:function(t){return"Symbol"===i(t)},domElement:function(t){return this.object(t)&&!this.plainObject(t)&&1===t.nodeType&&this.string(t.nodeName)&&["innerHTML","ownerDocument","style","attributes","nodeValue"].every(function(e){return e in t})}}},72856(t){"use strict";t.exports=t=>{const e=typeof t;return null!==t&&("object"===e||"function"===e)}},74994(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var r;return"[object Object]"===e.call(t)&&(null===(r=Object.getPrototypeOf(t))||r===Object.getPrototypeOf({}))}},40006(t,e,r){"use strict";var n=r(36496);t.exports=function(t){return!!n(t)}},13279(t){"use strict";t.exports=function(t){return r.test("number"==typeof t?e(t):t.charAt(0))};var e=String.fromCharCode,r=/\s/},65541(t){"use strict";t.exports=function(t){return r.test("number"==typeof t?e(t):t.charAt(0))};var e=String.fromCharCode,r=/\w/},85101(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},16111(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},29969(t,e,r){r(49047),t.exports=self.fetch.bind(self)},40061(t,e,r){t.exports=self.fetch||(self.fetch=r(3866).default||r(3866))},97351(t,e,r){var n,i,o;o=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function i(){}function o(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=t({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var s=JSON.stringify(r);/^[\{\[]/.test(s)&&(r=s)}catch(t){}r=n.write?n.write(r,e):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var A in o)o[A]&&(a+="; "+A,!0!==o[A]&&(a+="="+o[A].split(";")[0]));return document.cookie=e+"="+r+a}}function s(t,r){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],s=0;s<o.length;s++){var a=o[s].split("="),A=a.slice(1).join("=");r||'"'!==A.charAt(0)||(A=A.slice(1,-1));try{var l=e(a[0]);if(A=(n.read||n)(A,l)||e(A),r)try{A=JSON.parse(A)}catch(t){}if(i[l]=A,t===l)break}catch(t){}}return t?i[t]:i}}return i.set=o,i.get=function(t){return s(t,!1)},i.getJSON=function(t){return s(t,!0)},i.remove=function(e,r){o(e,"",t(r,{expires:-1}))},i.defaults={},i.withConverter=r,i}(function(){})},void 0===(i="function"==typeof(n=o)?n.call(e,r,e,t):n)||(t.exports=i),t.exports=o()},6134(t){t.exports=function(t,e,r,n){var i=new Blob(void 0!==n?[n,t]:[t],{type:r||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(i,e);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),s=document.createElement("a");s.style.display="none",s.href=o,s.setAttribute("download",e),void 0===s.download&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),setTimeout(function(){document.body.removeChild(s),window.URL.revokeObjectURL(o)},200)}}},51148(t,e,r){var n=r(1047),i=function(t){var e="",r=Object.keys(t);return r.forEach(function(i,o){var s=t[i];(function(t){return/[height|width]$/.test(t)})(i=n(i))&&"number"==typeof s&&(s+="px"),e+=!0===s?i:!1===s?"not "+i:"("+i+": "+s+")",o<r.length-1&&(e+=" and ")}),e};t.exports=function(t){var e="";return"string"==typeof t?t:t instanceof Array?(t.forEach(function(r,n){e+=i(r),n<t.length-1&&(e+=", ")}),e):i(t)}},5255(t,e,r){"use strict";r.d(e,{Ay:()=>R});var n=r(35681),i=r(32016),o=r(42761),s=r(53039),a=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this}();function A(){a.console&&"function"==typeof a.console.log&&a.console.log.apply(a.console,arguments)}var l={log:A,warn:function(t){a.console&&("function"==typeof a.console.warn?a.console.warn.apply(a.console,arguments):A.call(null,arguments))},error:function(t){a.console&&("function"==typeof a.console.error?a.console.error.apply(a.console,arguments):A(t))}};function c(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){p(n.response,e,r)},n.onerror=function(){l.error("could not download file")},n.send()}function h(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function u(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var p=a.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,n.A)(window))||window!==a?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,r){var n=a.URL||a.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?h(i.href)?c(t,e,r):u(i,i.target="_blank"):u(i)):(i.href=n.createObjectURL(t),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){u(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,r){if(e=e||t.name||"download","string"==typeof t)if(h(t))c(t,e,r);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){u(i)})}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==(0,n.A)(e)&&(l.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,r),e)}:function(t,e,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return c(t,e,r);var o="application/octet-stream"===t.type,s=/constructor/i.test(a.HTMLElement)||a.safari,A=/CriOS\/[\d]+/.test(navigator.userAgent);if((A||o&&s)&&"object"===("undefined"==typeof FileReader?"undefined":(0,n.A)(FileReader))){var l=new FileReader;l.onloadend=function(){var t=l.result;t=A?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},l.readAsDataURL(t)}else{var h=a.URL||a.webkitURL,u=h.createObjectURL(t);i?i.location=u:location.href=u,i=null,setTimeout(function(){h.revokeObjectURL(u)},4e4)}});function f(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={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:"90ee90",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"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,o=r[n].process,s=i.exec(t);s&&(e=o(s),this.r=e[0],this.g=e[1],this.b=e[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 t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r}}var d=a.atob.bind(a),g=a.btoa.bind(a);function m(t,e){var r=t[0],n=t[1],i=t[2],o=t[3];r=v(r,n,i,o,e[0],7,-680876936),o=v(o,r,n,i,e[1],12,-389564586),i=v(i,o,r,n,e[2],17,606105819),n=v(n,i,o,r,e[3],22,-1044525330),r=v(r,n,i,o,e[4],7,-176418897),o=v(o,r,n,i,e[5],12,1200080426),i=v(i,o,r,n,e[6],17,-1473231341),n=v(n,i,o,r,e[7],22,-45705983),r=v(r,n,i,o,e[8],7,1770035416),o=v(o,r,n,i,e[9],12,-1958414417),i=v(i,o,r,n,e[10],17,-42063),n=v(n,i,o,r,e[11],22,-1990404162),r=v(r,n,i,o,e[12],7,1804603682),o=v(o,r,n,i,e[13],12,-40341101),i=v(i,o,r,n,e[14],17,-1502002290),r=b(r,n=v(n,i,o,r,e[15],22,1236535329),i,o,e[1],5,-165796510),o=b(o,r,n,i,e[6],9,-1069501632),i=b(i,o,r,n,e[11],14,643717713),n=b(n,i,o,r,e[0],20,-373897302),r=b(r,n,i,o,e[5],5,-701558691),o=b(o,r,n,i,e[10],9,38016083),i=b(i,o,r,n,e[15],14,-660478335),n=b(n,i,o,r,e[4],20,-405537848),r=b(r,n,i,o,e[9],5,568446438),o=b(o,r,n,i,e[14],9,-1019803690),i=b(i,o,r,n,e[3],14,-187363961),n=b(n,i,o,r,e[8],20,1163531501),r=b(r,n,i,o,e[13],5,-1444681467),o=b(o,r,n,i,e[2],9,-51403784),i=b(i,o,r,n,e[7],14,1735328473),r=w(r,n=b(n,i,o,r,e[12],20,-1926607734),i,o,e[5],4,-378558),o=w(o,r,n,i,e[8],11,-2022574463),i=w(i,o,r,n,e[11],16,1839030562),n=w(n,i,o,r,e[14],23,-35309556),r=w(r,n,i,o,e[1],4,-1530992060),o=w(o,r,n,i,e[4],11,1272893353),i=w(i,o,r,n,e[7],16,-155497632),n=w(n,i,o,r,e[10],23,-1094730640),r=w(r,n,i,o,e[13],4,681279174),o=w(o,r,n,i,e[0],11,-358537222),i=w(i,o,r,n,e[3],16,-722521979),n=w(n,i,o,r,e[6],23,76029189),r=w(r,n,i,o,e[9],4,-640364487),o=w(o,r,n,i,e[12],11,-421815835),i=w(i,o,r,n,e[15],16,530742520),r=x(r,n=w(n,i,o,r,e[2],23,-995338651),i,o,e[0],6,-198630844),o=x(o,r,n,i,e[7],10,1126891415),i=x(i,o,r,n,e[14],15,-1416354905),n=x(n,i,o,r,e[5],21,-57434055),r=x(r,n,i,o,e[12],6,1700485571),o=x(o,r,n,i,e[3],10,-1894986606),i=x(i,o,r,n,e[10],15,-1051523),n=x(n,i,o,r,e[1],21,-2054922799),r=x(r,n,i,o,e[8],6,1873313359),o=x(o,r,n,i,e[15],10,-30611744),i=x(i,o,r,n,e[6],15,-1560198380),n=x(n,i,o,r,e[13],21,1309151649),r=x(r,n,i,o,e[4],6,-145523070),o=x(o,r,n,i,e[11],10,-1120210379),i=x(i,o,r,n,e[2],15,718787259),n=x(n,i,o,r,e[9],21,-343485551),t[0]=T(r,t[0]),t[1]=T(n,t[1]),t[2]=T(i,t[2]),t[3]=T(o,t[3])}function y(t,e,r,n,i,o){return e=T(T(e,t),T(n,o)),T(e<<i|e>>>32-i,r)}function v(t,e,r,n,i,o,s){return y(e&r|~e&n,t,e,i,o,s)}function b(t,e,r,n,i,o,s){return y(e&n|r&~n,t,e,i,o,s)}function w(t,e,r,n,i,o,s){return y(e^r^n,t,e,i,o,s)}function x(t,e,r,n,i,o,s){return y(r^(e|~n),t,e,i,o,s)}function B(t){var e,r=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)m(n,C(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(m(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*r,m(n,i),n}function C(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}var _="0123456789abcdef".split("");function E(t){for(var e="",r=0;r<4;r++)e+=_[t>>8*r+4&15]+_[t>>8*r&15];return e}function S(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function I(t){return B(t).map(S).join("")}var F="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=E(t[e]);return t.join("")}(B("hello"));function T(t,e){if(F){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e&4294967295}function k(t,e){var r,n,i,o;if(t!==r){for(var s=(i=t,o=1+(256/t.length|0),new Array(o+1).join(i)),a=[],A=0;A<256;A++)a[A]=A;var l=0;for(A=0;A<256;A++){var c=a[A];l=(l+c+s.charCodeAt(A))%256,a[A]=a[l],a[l]=c}r=t,n=a}else a=n;var h=e.length,u=0,p=0,f="";for(A=0;A<h;A++)p=(p+(c=a[u=(u+1)%256]))%256,a[u]=a[p],a[p]=c,s=a[(a[u]+a[p])%256],f+=String.fromCharCode(e.charCodeAt(A)^s);return f}var L={print:4,modify:8,copy:16,"annot-forms":32};function P(t,e,r,n){this.v=1,this.r=2;var i=192;t.forEach(function(t){if(void 0!==L.perm)throw new Error("Invalid permission: "+t);i+=L[t]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var o=(e+this.padding).substr(0,32),s=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,s),this.P=-(1+(255^i)),this.encryptionKey=I(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=k(this.encryptionKey,this.padding)}function M(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var i=t.charCodeAt(n);e+=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):t[n]}return e}function D(t){if("object"!==(0,n.A)(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof r||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],0===Object.keys(e[r]).length&&delete e[r],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var o in e[r]){var s=e[r][o];try{s[0].apply(t,n)}catch(t){a.console&&l.error("jsPDF PubSub Error",t.message,t)}s[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function N(t){if(!(this instanceof N))return new N(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function O(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function U(t,e,r,n,i){if(!(this instanceof U))return new U(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,O.call(this,n,i)}function Q(t,e,r,n,i){if(!(this instanceof Q))return new Q(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,O.call(this,n,i)}function R(t){var e,r="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],o=arguments[2],s=arguments[3],A=[],c=1,h=16,u="S",d=null;"object"===(0,n.A)(t=t||{})&&(r=t.orientation,i=t.unit||i,o=t.format||o,s=t.compress||t.compressPdf||s,null!==(d=t.encryption||null)&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),c="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(h=t.floatPrecision),u=t.defaultPathOperation||"S"),A=t.filters||(!0===s?["FlateEncode"]:A),i=i||"mm",r=(""+(r||"P")).toLowerCase();var m=t.putOnlyUsedFonts||!1,y={},v={internal:{},__private__:{}};v.__private__.PubSub=D;var b="1.3",w=v.__private__.getPdfVersion=function(){return b};v.__private__.setPdfVersion=function(t){b=t};var x={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]};v.__private__.getPageFormats=function(){return x};var B=v.__private__.getPageFormat=function(t){return x[t]};o=o||"a4";var C="compat",_="advanced",E=C;function S(){this.saveGraphicsState(),ct(new zt(_t,0,0,-_t,0,_r()*_t).toString()+" cm"),this.setFontSize(this.getFontSize()/_t),u="n",E=_}function I(){this.restoreGraphicsState(),u="S",E=C}var F=v.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};v.advancedAPI=function(t){var e=E===C;return e&&S.call(this),"function"!=typeof t||(t(this),e&&I.call(this)),this},v.compatAPI=function(t){var e=E===_;return e&&I.call(this),"function"!=typeof t||(t(this),e&&S.call(this)),this},v.isAdvancedAPI=function(){return E===_};var T,k=function(t){if(E!==_)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=v.roundToPrecision=v.__private__.roundToPrecision=function(t,r){var n=e||r;if(isNaN(t)||isNaN(n))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(n).replace(/0+$/,"")};T=v.hpf=v.__private__.hpf="number"==typeof h?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return L(t,h)}:"smart"===h?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return L(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return L(t,16)};var O=v.f2=v.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return L(t,2)},j=v.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return L(t,3)},H=v.scale=v.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return E===C?t*_t:E===_?t:void 0},V=function(t){return H(function(t){return E===C?_r()-t:E===_?t:void 0}(t))};v.__private__.setPrecision=v.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var z,G="00000000000000000000000000000000",K=v.__private__.getFileId=function(){return G},q=v.__private__.setFileId=function(t){return G=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():G.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==d&&(ke=new P(d.userPermissions,d.userPassword,d.ownerPassword,G)),G};v.setFileId=function(t){return q(t),this},v.getFileId=function(){return K()};var W=v.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),r=e<0?"+":"-",n=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[r,$(n),"'",$(i),"'"].join("");return["D:",t.getFullYear(),$(t.getMonth()+1),$(t.getDate()),$(t.getHours()),$(t.getMinutes()),$(t.getSeconds()),o].join("")},Y=v.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),r=parseInt(t.substr(6,2),10)-1,n=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),s=parseInt(t.substr(14,2),10);return new Date(e,r,n,i,o,s,0)},X=v.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=W(t);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(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return z=e},J=v.__private__.getCreationDate=function(t){var e=z;return"jsDate"===t&&(e=Y(z)),e};v.setCreationDate=function(t){return X(t),this},v.getCreationDate=function(t){return J(t)};var Z,$=v.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},tt=v.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},et=0,rt=[],nt=[],it=0,ot=[],st=[],at=!1,At=nt;v.__private__.setCustomOutputDestination=function(t){at=!0,At=t};var lt=function(t){at||(At=t)};v.__private__.resetCustomOutputDestination=function(){at=!1,At=nt};var ct=v.__private__.out=function(t){return t=t.toString(),it+=t.length+1,At.push(t),At},ht=v.__private__.write=function(t){return ct(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},ut=v.__private__.getArrayBuffer=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r);e--;)n[e]=t.charCodeAt(e);return r},pt=[["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]];v.__private__.getStandardFonts=function(){return pt};var ft=t.fontSize||16;v.__private__.setFontSize=v.setFontSize=function(t){return ft=E===_?t/_t:t,this};var dt,gt=v.__private__.getFontSize=v.getFontSize=function(){return E===C?ft:ft*_t},mt=t.R2L||!1;v.__private__.setR2L=v.setR2L=function(t){return mt=t,this},v.__private__.getR2L=v.getR2L=function(){return mt};var yt,vt=v.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))dt=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');dt=t}else dt=parseInt(t,10)};v.__private__.getZoomMode=function(){return dt};var bt,wt=v.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');yt=t};v.__private__.getPageMode=function(){return yt};var xt=v.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');bt=t};v.__private__.getLayoutMode=function(){return bt},v.__private__.setDisplayMode=v.setDisplayMode=function(t,e,r){return vt(t),xt(e),wt(r),this};var Bt={title:"",subject:"",author:"",keywords:"",creator:""};v.__private__.getDocumentProperty=function(t){if(-1===Object.keys(Bt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Bt[t]},v.__private__.getDocumentProperties=function(){return Bt},v.__private__.setDocumentProperties=v.setProperties=v.setDocumentProperties=function(t){for(var e in Bt)Bt.hasOwnProperty(e)&&t[e]&&(Bt[e]=t[e]);return this},v.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(Bt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Bt[t]=e};var Ct,_t,Et,St,It,Ft={},Tt={},kt=[],Lt={},Pt={},Mt={},Dt={},Nt=null,Ot=0,Ut=[],Qt=new D(v),Rt=t.hotfixes||[],jt={},Ht={},Vt=[],zt=function t(e,r,n,i,o,s){if(!(this instanceof t))return new t(e,r,n,i,o,s);isNaN(e)&&(e=1),isNaN(r)&&(r=0),isNaN(n)&&(n=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(s)&&(s=0),this._matrix=[e,r,n,i,o,s]};Object.defineProperty(zt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(zt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(zt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(zt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(zt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(zt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(zt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(zt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(zt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(zt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(zt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(zt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(zt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(zt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(zt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(zt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),zt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(T).join(t)},zt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,r=t.sx*this.shy+t.shy*this.sy,n=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,s=t.tx*this.shy+t.ty*this.sy+this.ty;return new zt(e,r,n,i,o,s)},zt.prototype.decompose=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,o=this.ty,s=Math.sqrt(t*t+e*e),a=(t/=s)*r+(e/=s)*n;r-=t*a,n-=e*a;var A=Math.sqrt(r*r+n*n);return a/=A,t*(n/=A)<e*(r/=A)&&(t=-t,e=-e,a=-a,s=-s),{scale:new zt(s,0,0,A,0,0),translate:new zt(1,0,0,1,i,o),rotate:new zt(t,e,-e,t,0,0),skew:new zt(1,0,a,1,0,0)}},zt.prototype.toString=function(t){return this.join(" ")},zt.prototype.inversed=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,o=this.ty,s=1/(t*n-e*r),a=n*s,A=-e*s,l=-r*s,c=t*s;return new zt(a,A,l,c,-a*i-l*o,-A*i-c*o)},zt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,r=t.x*this.shy+t.y*this.sy+this.ty;return new fr(e,r)},zt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),r=this.applyToPoint(new fr(t.x+t.w,t.y+t.h));return new dr(e.x,e.y,r.x-e.x,r.y-e.y)},zt.prototype.clone=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,o=this.ty;return new zt(t,e,r,n,i,o)},v.Matrix=zt;var Gt=v.matrixMult=function(t,e){return e.multiply(t)},Kt=new zt(1,0,0,1,0,0);v.unitMatrix=v.identityMatrix=Kt;var qt=function(t,e){if(!Pt[t]){var r=(e instanceof U?"Sh":"P")+(Object.keys(Lt).length+1).toString(10);e.id=r,Pt[t]=r,Lt[r]=e,Qt.publish("addPattern",e)}};v.ShadingPattern=U,v.TilingPattern=Q,v.addShadingPattern=function(t,e){return k("addShadingPattern()"),qt(t,e),this},v.beginTilingPattern=function(t){k("beginTilingPattern()"),mr(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},v.endTilingPattern=function(t,e){k("endTilingPattern()"),e.stream=st[Z].join("\n"),qt(t,e),Qt.publish("endTilingPattern",e),Vt.pop().restore()};var Wt,Yt=v.__private__.newObject=function(){var t=Xt();return Jt(t,!0),t},Xt=v.__private__.newObjectDeferred=function(){return et++,rt[et]=function(){return it},et},Jt=function(t,e){return e="boolean"==typeof e&&e,rt[t]=it,e&&ct(t+" 0 obj"),t},Zt=v.__private__.newAdditionalObject=function(){var t={objId:Xt(),content:""};return ot.push(t),t},$t=Xt(),te=Xt(),ee=v.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var r=parseFloat(e[0]);e=[r,r,r,"r"]}for(var n="#",i=0;i<3;i++)n+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return n},re=v.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var r=t.ch1,i=t.ch2,o=t.ch3,s=t.ch4,a="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof r&&"#"!==r.charAt(0)){var A=new f(r);if(A.ok)r=A.toHex();else if(!/^\d*\.?\d*$/.test(r))throw new Error('Invalid color "'+r+'" passed to jsPDF.encodeColorString.')}if("string"==typeof r&&/^#[0-9A-Fa-f]{3}$/.test(r)&&(r="#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),"string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r)){var l=parseInt(r.substr(1),16);r=l>>16&255,i=l>>8&255,o=255&l}if(void 0===i||void 0===s&&r===i&&i===o)e="string"==typeof r?r+" "+a[0]:2===t.precision?O(r/255)+" "+a[0]:j(r/255)+" "+a[0];else if(void 0===s||"object"===(0,n.A)(s)){if(s&&!isNaN(s.a)&&0===s.a)return["1.","1.","1.",a[1]].join(" ");e="string"==typeof r?[r,i,o,a[1]].join(" "):2===t.precision?[O(r/255),O(i/255),O(o/255),a[1]].join(" "):[j(r/255),j(i/255),j(o/255),a[1]].join(" ")}else e="string"==typeof r?[r,i,o,s,a[2]].join(" "):2===t.precision?[O(r),O(i),O(o),O(s),a[2]].join(" "):[j(r),j(i),j(o),j(s),a[2]].join(" ");return e},ne=v.__private__.getFilters=function(){return A},ie=v.__private__.putStream=function(t){var e=(t=t||{}).data||"",r=t.filters||ne(),n=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,s=t.objectId,a=function(t){return t};if(null!==d&&void 0===s)throw new Error("ObjectId must be passed to putStream for file encryption");null!==d&&(a=ke.encryptor(s,0));var A={};!0===r&&(r=["FlateEncode"]);var l=t.additionalKeyValues||[],c=(A=void 0!==R.API.processDataByFilters?R.API.processDataByFilters(e,r):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==A.data.length&&(l.push({key:"Length",value:A.data.length}),!0===i&&l.push({key:"Length1",value:o})),0!=c.length)if(c.split("/").length-1==1)l.push({key:"Filter",value:c});else{l.push({key:"Filter",value:"["+c+"]"});for(var h=0;h<l.length;h+=1)if("DecodeParms"===l[h].key){for(var u=[],p=0;p<A.reverseChain.split("/").length-1;p+=1)u.push("null");u.push(l[h].value),l[h].value="["+u.join(" ")+"]"}}ct("<<");for(var f=0;f<l.length;f++)ct("/"+l[f].key+" "+l[f].value);ct(">>"),0!==A.data.length&&(ct("stream"),ct(a(A.data)),ct("endstream"))},oe=v.__private__.putPage=function(t){var e=t.number,r=t.data,n=t.objId,i=t.contentsObjId;Jt(n,!0),ct("<</Type /Page"),ct("/Parent "+t.rootDictionaryObjId+" 0 R"),ct("/Resources "+t.resourceDictionaryObjId+" 0 R"),ct("/MediaBox ["+parseFloat(T(t.mediaBox.bottomLeftX))+" "+parseFloat(T(t.mediaBox.bottomLeftY))+" "+T(t.mediaBox.topRightX)+" "+T(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&ct("/CropBox ["+T(t.cropBox.bottomLeftX)+" "+T(t.cropBox.bottomLeftY)+" "+T(t.cropBox.topRightX)+" "+T(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&ct("/BleedBox ["+T(t.bleedBox.bottomLeftX)+" "+T(t.bleedBox.bottomLeftY)+" "+T(t.bleedBox.topRightX)+" "+T(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&ct("/TrimBox ["+T(t.trimBox.bottomLeftX)+" "+T(t.trimBox.bottomLeftY)+" "+T(t.trimBox.topRightX)+" "+T(t.trimBox.topRightY)+"]"),null!==t.artBox&&ct("/ArtBox ["+T(t.artBox.bottomLeftX)+" "+T(t.artBox.bottomLeftY)+" "+T(t.artBox.topRightX)+" "+T(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&ct("/UserUnit "+t.userUnit),Qt.publish("putPage",{objId:n,pageContext:Ut[e],pageNumber:e,page:r}),ct("/Contents "+i+" 0 R"),ct(">>"),ct("endobj");var o=r.join("\n");return E===_&&(o+="\nQ"),Jt(i,!0),ie({data:o,filters:ne(),objectId:i}),ct("endobj"),n},se=v.__private__.putPages=function(){var t,e,r=[];for(t=1;t<=Ot;t++)Ut[t].objId=Xt(),Ut[t].contentsObjId=Xt();for(t=1;t<=Ot;t++)r.push(oe({number:t,data:st[t],objId:Ut[t].objId,contentsObjId:Ut[t].contentsObjId,mediaBox:Ut[t].mediaBox,cropBox:Ut[t].cropBox,bleedBox:Ut[t].bleedBox,trimBox:Ut[t].trimBox,artBox:Ut[t].artBox,userUnit:Ut[t].userUnit,rootDictionaryObjId:$t,resourceDictionaryObjId:te}));Jt($t,!0),ct("<</Type /Pages");var n="/Kids [";for(e=0;e<Ot;e++)n+=r[e]+" 0 R ";ct(n+"]"),ct("/Count "+Ot),ct(">>"),ct("endobj"),Qt.publish("postPutPages")},ae=function(t){Qt.publish("putFont",{font:t,out:ct,newObject:Yt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Yt(),ct("<<"),ct("/Type /Font"),ct("/BaseFont /"+M(t.postScriptName)),ct("/Subtype /Type1"),"string"==typeof t.encoding&&ct("/Encoding /"+t.encoding),ct("/FirstChar 32"),ct("/LastChar 255"),ct(">>"),ct("endobj"))},Ae=function(t){t.objectNumber=Yt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[T(t.x),T(t.y),T(t.x+t.width),T(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var r=t.pages[1].join("\n");ie({data:r,additionalKeyValues:e,objectId:t.objectNumber}),ct("endobj")},le=function(t,e){e||(e=21);var r=Yt(),n=function(t,e){var r,n=[],i=1/(e-1);for(r=0;r<1;r+=i)n.push(r);if(n.push(1),0!=t[0].offset){var o={offset:0,color:t[0].color};t.unshift(o)}if(1!=t[t.length-1].offset){var s={offset:1,color:t[t.length-1].color};t.push(s)}for(var a="",A=0,l=0;l<n.length;l++){for(r=n[l];r>t[A+1].offset;)A++;var c=t[A].offset,h=(r-c)/(t[A+1].offset-c),u=t[A].color,p=t[A+1].color;a+=tt(Math.round((1-h)*u[0]+h*p[0]).toString(16))+tt(Math.round((1-h)*u[1]+h*p[1]).toString(16))+tt(Math.round((1-h)*u[2]+h*p[2]).toString(16))}return a.trim()}(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),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]"}),ie({data:n,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),ct("endobj"),t.objectNumber=Yt(),ct("<< /ShadingType "+t.type),ct("/ColorSpace /DeviceRGB");var o="/Coords ["+T(parseFloat(t.coords[0]))+" "+T(parseFloat(t.coords[1]))+" ";2===t.type?o+=T(parseFloat(t.coords[2]))+" "+T(parseFloat(t.coords[3])):o+=T(parseFloat(t.coords[2]))+" "+T(parseFloat(t.coords[3]))+" "+T(parseFloat(t.coords[4]))+" "+T(parseFloat(t.coords[5])),ct(o+="]"),t.matrix&&ct("/Matrix ["+t.matrix.toString()+"]"),ct("/Function "+r+" 0 R"),ct("/Extend [true true]"),ct(">>"),ct("endobj")},ce=function(t,e){var r=Xt(),n=Yt();e.push({resourcesOid:r,objectOid:n}),t.objectNumber=n;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:"["+t.boundingBox.map(T).join(" ")+"]"}),i.push({key:"XStep",value:T(t.xStep)}),i.push({key:"YStep",value:T(t.yStep)}),i.push({key:"Resources",value:r+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),ct("endobj")},he=function(t){for(var e in t.objectNumber=Yt(),ct("<<"),t)switch(e){case"opacity":ct("/ca "+O(t[e]));break;case"stroke-opacity":ct("/CA "+O(t[e]))}ct(">>"),ct("endobj")},ue=function(t){Jt(t.resourcesOid,!0),ct("<<"),ct("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in ct("/Font <<"),Ft)Ft.hasOwnProperty(t)&&(!1===m||!0===m&&y.hasOwnProperty(t))&&ct("/"+t+" "+Ft[t].objectNumber+" 0 R");ct(">>")}(),function(){if(Object.keys(Lt).length>0){for(var t in ct("/Shading <<"),Lt)Lt.hasOwnProperty(t)&&Lt[t]instanceof U&&Lt[t].objectNumber>=0&&ct("/"+t+" "+Lt[t].objectNumber+" 0 R");Qt.publish("putShadingPatternDict"),ct(">>")}}(),function(t){if(Object.keys(Lt).length>0){for(var e in ct("/Pattern <<"),Lt)Lt.hasOwnProperty(e)&&Lt[e]instanceof v.TilingPattern&&Lt[e].objectNumber>=0&&Lt[e].objectNumber<t&&ct("/"+e+" "+Lt[e].objectNumber+" 0 R");Qt.publish("putTilingPatternDict"),ct(">>")}}(t.objectOid),function(){if(Object.keys(Mt).length>0){var t;for(t in ct("/ExtGState <<"),Mt)Mt.hasOwnProperty(t)&&Mt[t].objectNumber>=0&&ct("/"+t+" "+Mt[t].objectNumber+" 0 R");Qt.publish("putGStateDict"),ct(">>")}}(),function(){for(var t in ct("/XObject <<"),jt)jt.hasOwnProperty(t)&&jt[t].objectNumber>=0&&ct("/"+t+" "+jt[t].objectNumber+" 0 R");Qt.publish("putXobjectDict"),ct(">>")}(),ct(">>"),ct("endobj")},pe=function(t){Tt[t.fontName]=Tt[t.fontName]||{},Tt[t.fontName][t.fontStyle]=t.id},fe=function(t,e,r,n,i){var o={id:"F"+(Object.keys(Ft).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:r,encoding:n,isStandardFont:i||!1,metadata:{}};return Qt.publish("addFont",{font:o,instance:this}),Ft[o.id]=o,pe(o),o.id},de=v.__private__.pdfEscape=v.pdfEscape=function(t,e){return function(t,e){var r,n,i,o,s,a,A,l,c;if(i=(e=e||{}).sourceEncoding||"Unicode",s=e.outputEncoding,(e.autoencode||s)&&Ft[Ct].metadata&&Ft[Ct].metadata[i]&&Ft[Ct].metadata[i].encoding&&(o=Ft[Ct].metadata[i].encoding,!s&&Ft[Ct].encoding&&(s=Ft[Ct].encoding),!s&&o.codePages&&(s=o.codePages[0]),"string"==typeof s&&(s=o[s]),s)){for(A=!1,a=[],r=0,n=t.length;r<n;r++)(l=s[t.charCodeAt(r)])?a.push(String.fromCharCode(l)):a.push(t[r]),a[r].charCodeAt(0)>>8&&(A=!0);t=a.join("")}for(r=t.length;void 0===A&&0!==r;)t.charCodeAt(r-1)>>8&&(A=!0),r--;if(!A)return t;for(a=e.noBOM?[]:[254,255],r=0,n=t.length;r<n;r++){if((c=(l=t.charCodeAt(r))>>8)>>8)throw new Error("Character at position "+r+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(c),a.push(l-(c<<8))}return String.fromCharCode.apply(void 0,a)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ge=v.__private__.beginPage=function(t){st[++Ot]=[],Ut[Ot]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},ve(Ot),lt(st[Z])},me=function(t,e){var n,i,s;switch(r=e||r,"string"==typeof t&&(n=B(t.toLowerCase()),Array.isArray(n)&&(i=n[0],s=n[1])),Array.isArray(t)&&(i=t[0]*_t,s=t[1]*_t),isNaN(i)&&(i=o[0],s=o[1]),(i>14400||s>14400)&&(l.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),s=Math.min(14400,s)),o=[i,s],r.substr(0,1)){case"l":s>i&&(o=[s,i]);break;case"p":i>s&&(o=[s,i])}ge(o),Je(Ye),ct(or),0!==hr&&ct(hr+" J"),0!==ur&&ct(ur+" j"),Qt.publish("addPage",{pageNumber:Ot})},ye=function(t){t>0&&t<=Ot&&(st.splice(t,1),Ut.splice(t,1),Ot--,Z>Ot&&(Z=Ot),this.setPage(Z))},ve=function(t){t>0&&t<=Ot&&(Z=t)},be=v.__private__.getNumberOfPages=v.getNumberOfPages=function(){return st.length-1},we=function(t,e,r){var n,i=void 0;return r=r||{},t=void 0!==t?t:Ft[Ct].fontName,e=void 0!==e?e:Ft[Ct].fontStyle,n=t.toLowerCase(),void 0!==Tt[n]&&void 0!==Tt[n][e]?i=Tt[n][e]:void 0!==Tt[t]&&void 0!==Tt[t][e]?i=Tt[t][e]:!1===r.disableWarning&&l.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||r.noFallback||null==(i=Tt.times[e])&&(i=Tt.times.normal),i},xe=v.__private__.putInfo=function(){var t=Yt(),e=function(t){return t};for(var r in null!==d&&(e=ke.encryptor(t,0)),ct("<<"),ct("/Producer ("+de(e("jsPDF "+R.version))+")"),Bt)Bt.hasOwnProperty(r)&&Bt[r]&&ct("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+de(e(Bt[r]))+")");ct("/CreationDate ("+de(e(z))+")"),ct(">>"),ct("endobj")},Be=v.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||$t;switch(Yt(),ct("<<"),ct("/Type /Catalog"),ct("/Pages "+e+" 0 R"),dt||(dt="fullwidth"),dt){case"fullwidth":ct("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ct("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ct("/OpenAction [3 0 R /Fit]");break;case"original":ct("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+dt;"%"===r.substr(r.length-1)&&(dt=parseInt(dt)/100),"number"==typeof dt&&ct("/OpenAction [3 0 R /XYZ null null "+O(dt)+"]")}switch(bt||(bt="continuous"),bt){case"continuous":ct("/PageLayout /OneColumn");break;case"single":ct("/PageLayout /SinglePage");break;case"two":case"twoleft":ct("/PageLayout /TwoColumnLeft");break;case"tworight":ct("/PageLayout /TwoColumnRight")}yt&&ct("/PageMode /"+yt),Qt.publish("putCatalog"),ct(">>"),ct("endobj")},Ce=v.__private__.putTrailer=function(){ct("trailer"),ct("<<"),ct("/Size "+(et+1)),ct("/Root "+et+" 0 R"),ct("/Info "+(et-1)+" 0 R"),null!==d&&ct("/Encrypt "+ke.oid+" 0 R"),ct("/ID [ <"+G+"> <"+G+"> ]"),ct(">>")},_e=v.__private__.putHeader=function(){ct("%PDF-"+b),ct("%ºß¬à")},Ee=v.__private__.putXRef=function(){var t="0000000000";ct("xref"),ct("0 "+(et+1)),ct("0000000000 65535 f ");for(var e=1;e<=et;e++)"function"==typeof rt[e]?ct((t+rt[e]()).slice(-10)+" 00000 n "):void 0!==rt[e]?ct((t+rt[e]).slice(-10)+" 00000 n "):ct("0000000000 00000 n ")},Se=v.__private__.buildDocument=function(){var t;et=0,it=0,nt=[],rt=[],ot=[],$t=Xt(),te=Xt(),lt(nt),Qt.publish("buildDocument"),_e(),se(),function(){Qt.publish("putAdditionalObjects");for(var t=0;t<ot.length;t++){var e=ot[t];Jt(e.objId,!0),ct(e.content),ct("endobj")}Qt.publish("postPutAdditionalObjects")}(),t=[],function(){for(var t in Ft)Ft.hasOwnProperty(t)&&(!1===m||!0===m&&y.hasOwnProperty(t))&&ae(Ft[t])}(),function(){var t;for(t in Mt)Mt.hasOwnProperty(t)&&he(Mt[t])}(),function(){for(var t in jt)jt.hasOwnProperty(t)&&Ae(jt[t])}(),function(t){var e;for(e in Lt)Lt.hasOwnProperty(e)&&(Lt[e]instanceof U?le(Lt[e]):Lt[e]instanceof Q&&ce(Lt[e],t))}(t),Qt.publish("putResources"),t.forEach(ue),ue({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),Qt.publish("postPutResources"),null!==d&&(ke.oid=Yt(),ct("<<"),ct("/Filter /Standard"),ct("/V "+ke.v),ct("/R "+ke.r),ct("/U <"+ke.toHexString(ke.U)+">"),ct("/O <"+ke.toHexString(ke.O)+">"),ct("/P "+ke.P),ct(">>"),ct("endobj")),xe(),Be();var e=it;return Ee(),Ce(),ct("startxref"),ct(""+e),ct("%%EOF"),lt(st[Z]),nt.join("\n")},Ie=v.__private__.getBlob=function(t){return new Blob([ut(t)],{type:"application/pdf"})},Fe=v.output=v.__private__.output=(Wt=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return Se();case"save":v.save(e.filename);break;case"arraybuffer":return ut(Se());case"blob":return Ie(Se());case"bloburi":case"bloburl":if(void 0!==a.URL&&"function"==typeof a.URL.createObjectURL)return a.URL&&a.URL.createObjectURL(Ie(Se()))||void 0;l.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var r="",n=Se();try{r=g(n)}catch(t){r=g(unescape(encodeURIComponent(n)))}return"data:application/pdf;filename="+e.filename+";base64,"+r;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(a)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",o=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(i=e.pdfObjectUrl,o="");var s='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+i+'"'+o+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",A=a.open();return null!==A&&A.document.write(s),A}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(a)){var c='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',h=a.open();if(null!==h){h.document.write(c);var u=this;h.document.documentElement.querySelector("#pdfViewer").onload=function(){h.document.title=e.filename,h.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(u.output("bloburl"))}}return h}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(a))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var p='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',f=a.open();if(null!==f&&(f.document.write(p),f.document.title=e.filename),f||"undefined"==typeof safari)return f;break;case"datauri":case"dataurl":return a.document.location.href=this.output("datauristring",e);default:return null}},Wt.foo=function(){try{return Wt.apply(this,arguments)}catch(r){var t=r.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var e="Error in function "+t.split("\n")[0].split("<")[0]+": "+r.message;if(!a.console)throw new Error(e);a.console.error(e,r),a.alert&&alert(e)}},Wt.foo.bar=Wt,Wt.foo),Te=function(t){return!0===Array.isArray(Rt)&&Rt.indexOf(t)>-1};switch(i){case"pt":_t=1;break;case"mm":_t=72/25.4;break;case"cm":_t=72/2.54;break;case"in":_t=72;break;case"px":_t=1==Te("px_scaling")?.75:96/72;break;case"pc":case"em":_t=12;break;case"ex":_t=6;break;default:if("number"!=typeof i)throw new Error("Invalid unit: "+i);_t=i}var ke=null;X(),q();var Le=v.__private__.getPageInfo=v.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ut[t].objId,pageNumber:t,pageContext:Ut[t]}},Pe=v.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Ut)if(Ut[e].objId===t)break;return Le(e)},Me=v.__private__.getCurrentPageInfo=v.getCurrentPageInfo=function(){return{objId:Ut[Z].objId,pageNumber:Z,pageContext:Ut[Z]}};v.addPage=function(){return me.apply(this,arguments),this},v.setPage=function(){return ve.apply(this,arguments),lt.call(this,st[Z]),this},v.insertPage=function(t){return this.addPage(),this.movePage(Z,t),this},v.movePage=function(t,e){var r,n;if(t>e){r=st[t],n=Ut[t];for(var i=t;i>e;i--)st[i]=st[i-1],Ut[i]=Ut[i-1];st[e]=r,Ut[e]=n,this.setPage(e)}else if(t<e){r=st[t],n=Ut[t];for(var o=t;o<e;o++)st[o]=st[o+1],Ut[o]=Ut[o+1];st[e]=r,Ut[e]=n,this.setPage(e)}return this},v.deletePage=function(){return ye.apply(this,arguments),this},v.__private__.text=v.text=function(t,e,r,i,o){var s,a,A,l,c,h,u,p,f,d=(i=i||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof r||Array.isArray(r))){var g=r;r=e,e=t,t=g}if(arguments[3]instanceof zt==0?(A=arguments[4],l=arguments[5],"object"===(0,n.A)(u=arguments[3])&&null!==u||("string"==typeof A&&(l=A,A=null),"string"==typeof u&&(l=u,u=null),"number"==typeof u&&(A=u,u=null),i={flags:u,angle:A,align:l})):(k("The transform parameter of text() with a Matrix value"),f=o),isNaN(e)||isNaN(r)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return d;var m,v="",b="number"==typeof i.lineHeightFactor?i.lineHeightFactor:We,w=d.internal.scaleFactor;function x(t){return t=t.split("\t").join(Array(i.TabLen||9).join(" ")),de(t,u)}function B(t){for(var e,r=t.concat(),n=[],i=r.length;i--;)"string"==typeof(e=r.shift())?n.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?n.push(e[0]):n.push([e[0],e[1],e[2]]);return n}function C(t,e){var r;if("string"==typeof t)r=e(t)[0];else if(Array.isArray(t)){for(var n,i,o=t.concat(),s=[],a=o.length;a--;)"string"==typeof(n=o.shift())?s.push(e(n)[0]):Array.isArray(n)&&"string"==typeof n[0]&&(i=e(n[0],n[1],n[2]),s.push([i[0],i[1],i[2]]));r=s}return r}var S=!1,I=!0;if("string"==typeof t)S=!0;else if(Array.isArray(t)){var F=t.concat();a=[];for(var L,P=F.length;P--;)("string"!=typeof(L=F.shift())||Array.isArray(L)&&"string"!=typeof L[0])&&(I=!1);S=I}if(!1===S)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var M=ft/d.internal.scaleFactor,D=M*(b-1);switch(i.baseline){case"bottom":r-=D;break;case"top":r+=M-D;break;case"hanging":r+=M-2*D;break;case"middle":r+=M/2-D}if((h=i.maxWidth||0)>0&&("string"==typeof t?t=d.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(d.splitTextToSize(e,h))},[]))),s={text:t,x:e,y:r,options:i,mutex:{pdfEscape:de,activeFontKey:Ct,fonts:Ft,activeFontSize:ft}},Qt.publish("preProcessText",s),t=s.text,A=(i=s.options).angle,f instanceof zt==0&&A&&"number"==typeof A){A*=Math.PI/180,0===i.rotationDirection&&(A=-A),E===_&&(A=-A);var N=Math.cos(A),O=Math.sin(A);f=new zt(N,O,-O,N,0,0)}else A&&A instanceof zt&&(f=A);E!==_||f||(f=Kt),void 0!==(c=i.charSpace||lr)&&(v+=T(H(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(p=i.horizontalScale)&&(v+=T(100*p)+" Tz\n"),i.lang;var U=-1,Q=void 0!==i.renderingMode?i.renderingMode:i.stroke,R=d.internal.getCurrentPageInfo().pageContext;switch(Q){case 0:case!1:case"fill":U=0;break;case 1:case!0:case"stroke":U=1;break;case 2:case"fillThenStroke":U=2;break;case 3:case"invisible":U=3;break;case 4:case"fillAndAddForClipping":U=4;break;case 5:case"strokeAndAddPathForClipping":U=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":U=6;break;case 7:case"addToPathForClipping":U=7}var j=void 0!==R.usedRenderingMode?R.usedRenderingMode:-1;-1!==U?v+=U+" Tr\n":-1!==j&&(v+="0 Tr\n"),-1!==U&&(R.usedRenderingMode=U),l=i.align||"left";var V,z=ft*b,G=d.internal.pageSize.getWidth(),K=Ft[Ct];c=i.charSpace||lr,h=i.maxWidth||0,u=Object.assign({autoencode:!0,noBOM:!0},i.flags);var q=[],W=function(t){return d.getStringUnitWidth(t,{font:K,charSpace:c,fontSize:ft,doKerning:!1})*ft/w};if("[object Array]"===Object.prototype.toString.call(t)){var Y;a=B(t),"left"!==l&&(V=a.map(W));var X,J=0;if("right"===l){e-=V[0],t=[],P=a.length;for(var Z=0;Z<P;Z++)0===Z?(X=er(e),Y=rr(r)):(X=H(J-V[Z]),Y=-z),t.push([a[Z],X,Y]),J=V[Z]}else if("center"===l){e-=V[0]/2,t=[],P=a.length;for(var $=0;$<P;$++)0===$?(X=er(e),Y=rr(r)):(X=H((J-V[$])/2),Y=-z),t.push([a[$],X,Y]),J=V[$]}else if("left"===l){t=[],P=a.length;for(var tt=0;tt<P;tt++)t.push(a[tt])}else if("justify"===l&&"Identity-H"===K.encoding){t=[],P=a.length,h=0!==h?h:G;for(var et=0,rt=0;rt<P;rt++)if(Y=0===rt?rr(r):-z,X=0===rt?er(e):et,rt<P-1){var nt=H((h-V[rt])/(a[rt].split(" ").length-1)),it=a[rt].split(" ");t.push([it[0]+" ",X,Y]),et=0;for(var ot=1;ot<it.length;ot++){var st=(W(it[ot-1]+" "+it[ot])-W(it[ot]))*w+nt;ot==it.length-1?t.push([it[ot],st,0]):t.push([it[ot]+" ",st,0]),et-=st}}else t.push([a[rt],X,Y]);t.push(["",et,0])}else{if("justify"!==l)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(t=[],P=a.length,h=0!==h?h:G,rt=0;rt<P;rt++){Y=0===rt?rr(r):-z,X=0===rt?er(e):0;var at=a[rt].split(" ").length-1,At=at>0?(h-V[rt])/at:0;rt<P-1?q.push(T(H(At))):q.push(0),t.push([a[rt],X,Y])}}}!0===("boolean"==typeof i.R2L?i.R2L:mt)&&(t=C(t,function(t,e,r){return[t.split("").reverse().join(""),e,r]})),s={text:t,x:e,y:r,options:i,mutex:{pdfEscape:de,activeFontKey:Ct,fonts:Ft,activeFontSize:ft}},Qt.publish("postProcessText",s),t=s.text,m=s.mutex.isHex||!1;var lt=Ft[Ct].encoding;"WinAnsiEncoding"!==lt&&"StandardEncoding"!==lt||(t=C(t,function(t,e,r){return[x(t),e,r]})),a=B(t),t=[];for(var ht,ut,pt,dt=Array.isArray(a[0])?1:0,gt="",yt=function(t,e,r){var n="";return r instanceof zt?(r="number"==typeof i.angle?Gt(r,new zt(1,0,0,1,t,e)):Gt(new zt(1,0,0,1,t,e),r),E===_&&(r=Gt(new zt(1,0,0,-1,0,0),r)),n=r.join(" ")+" Tm\n"):n=T(t)+" "+T(e)+" Td\n",n},vt=0;vt<a.length;vt++){switch(gt="",dt){case 1:pt=(m?"<":"(")+a[vt][0]+(m?">":")"),ht=parseFloat(a[vt][1]),ut=parseFloat(a[vt][2]);break;case 0:pt=(m?"<":"(")+a[vt]+(m?">":")"),ht=er(e),ut=rr(r)}void 0!==q&&void 0!==q[vt]&&(gt=q[vt]+" Tw\n"),0===vt?t.push(gt+yt(ht,ut,f)+pt):0===dt?t.push(gt+pt):1===dt&&t.push(gt+yt(ht,ut,f)+pt)}t=0===dt?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var bt="BT\n/";return bt+=Ct+" "+ft+" Tf\n",bt+=T(ft*b)+" TL\n",bt+=ar+"\n",bt+=v,bt+=t,ct(bt+="ET"),y[Ct]=!0,d};var De=v.__private__.clip=v.clip=function(t){return ct("evenodd"===t?"W*":"W"),this};v.clipEvenOdd=function(){return De("evenodd")},v.__private__.discardPath=v.discardPath=function(){return ct("n"),this};var Ne=v.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};v.__private__.setDefaultPathOperation=v.setDefaultPathOperation=function(t){return Ne(t)&&(u=t),this};var Oe=v.__private__.getStyle=v.getStyle=function(t){var e=u;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},Ue=v.close=function(){return ct("h"),this};v.stroke=function(){return ct("S"),this},v.fill=function(t){return Qe("f",t),this},v.fillEvenOdd=function(t){return Qe("f*",t),this},v.fillStroke=function(t){return Qe("B",t),this},v.fillStrokeEvenOdd=function(t){return Qe("B*",t),this};var Qe=function(t,e){"object"===(0,n.A)(e)?He(e,t):ct(t)},Re=function(t){null===t||E===_&&void 0===t||(t=Oe(t),ct(t))};function je(t,e,r,n,i){var o=new Q(e||this.boundingBox,r||this.xStep,n||this.yStep,this.gState,i||this.matrix);o.stream=this.stream;var s=t+"$$"+this.cloneIndex+++"$$";return qt(s,o),o}var He=function(t,e){var r=Pt[t.key],n=Lt[r];if(n instanceof U)ct("q"),ct(Ve(e)),n.gState&&v.setGState(n.gState),ct(t.matrix.toString()+" cm"),ct("/"+r+" sh"),ct("Q");else if(n instanceof Q){var i=new zt(1,0,0,-1,0,_r());t.matrix&&(i=i.multiply(t.matrix||Kt),r=je.call(n,t.key,t.boundingBox,t.xStep,t.yStep,i).id),ct("q"),ct("/Pattern cs"),ct("/"+r+" scn"),n.gState&&v.setGState(n.gState),ct(e),ct("Q")}},Ve=function(t){switch(t){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},ze=v.moveTo=function(t,e){return ct(T(H(t))+" "+T(V(e))+" m"),this},Ge=v.lineTo=function(t,e){return ct(T(H(t))+" "+T(V(e))+" l"),this},Ke=v.curveTo=function(t,e,r,n,i,o){return ct([T(H(t)),T(V(e)),T(H(r)),T(V(n)),T(H(i)),T(V(o)),"c"].join(" ")),this};v.__private__.line=v.line=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Ne(i))throw new Error("Invalid arguments passed to jsPDF.line");return E===C?this.lines([[r-t,n-e]],t,e,[1,1],i||"S"):this.lines([[r-t,n-e]],t,e,[1,1]).stroke()},v.__private__.lines=v.lines=function(t,e,r,n,i,o){var s,a,A,l,c,h,u,p,f,d,g,m;if("number"==typeof t&&(m=r,r=e,e=t,t=m),n=n||[1,1],o=o||!1,isNaN(e)||isNaN(r)||!Array.isArray(t)||!Array.isArray(n)||!Ne(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(ze(e,r),s=n[0],a=n[1],l=t.length,d=e,g=r,A=0;A<l;A++)2===(c=t[A]).length?(d=c[0]*s+d,g=c[1]*a+g,Ge(d,g)):(h=c[0]*s+d,u=c[1]*a+g,p=c[2]*s+d,f=c[3]*a+g,d=c[4]*s+d,g=c[5]*a+g,Ke(h,u,p,f,d,g));return o&&Ue(),Re(i),this},v.path=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.c;switch(r.op){case"m":ze(n[0],n[1]);break;case"l":Ge(n[0],n[1]);break;case"c":Ke.apply(this,n);break;case"h":Ue()}}return this},v.__private__.rect=v.rect=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Ne(i))throw new Error("Invalid arguments passed to jsPDF.rect");return E===C&&(n=-n),ct([T(H(t)),T(V(e)),T(H(r)),T(H(n)),"re"].join(" ")),Re(i),this},v.__private__.triangle=v.triangle=function(t,e,r,n,i,o,s){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||!Ne(s))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[r-t,n-e],[i-r,o-n],[t-i,e-o]],t,e,[1,1],s,!0),this},v.__private__.roundedRect=v.roundedRect=function(t,e,r,n,i,o,s){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||!Ne(s))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*r),o=Math.min(o,.5*n),this.lines([[r-2*i,0],[i*a,0,i,o-o*a,i,o],[0,n-2*o],[0,o*a,-i*a,o,-i,o],[2*i-r,0],[-i*a,0,-i,-o*a,-i,-o],[0,2*o-n],[0,-o*a,i*a,-o,i,-o]],t+i,e,[1,1],s,!0),this},v.__private__.ellipse=v.ellipse=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Ne(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*r,s=4/3*(Math.SQRT2-1)*n;return ze(t+r,e),Ke(t+r,e-s,t+o,e-n,t,e-n),Ke(t-o,e-n,t-r,e-s,t-r,e),Ke(t-r,e+s,t-o,e+n,t,e+n),Ke(t+o,e+n,t+r,e+s,t+r,e),Re(i),this},v.__private__.circle=v.circle=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||!Ne(n))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,r,r,n)},v.setFont=function(t,e,r){return r&&(e=F(e,r)),Ct=we(t,e,{disableWarning:!1}),this};var qe=v.__private__.getFont=v.getFont=function(){return Ft[we.apply(v,arguments)]};v.__private__.getFontList=v.getFontList=function(){var t,e,r={};for(t in Tt)if(Tt.hasOwnProperty(t))for(e in r[t]=[],Tt[t])Tt[t].hasOwnProperty(e)&&r[t].push(e);return r},v.addFont=function(t,e,r,n,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])&&(r=F(r,n)),fe.call(this,t,e,r,i=i||"Identity-H")};var We,Ye=t.lineWidth||.200025,Xe=v.__private__.getLineWidth=v.getLineWidth=function(){return Ye},Je=v.__private__.setLineWidth=v.setLineWidth=function(t){return Ye=t,ct(T(H(t))+" w"),this};v.__private__.setLineDash=R.API.setLineDash=R.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map(function(t){return T(H(t))}).join(" "),e=T(H(e)),ct("["+t+"] "+e+" d"),this};var Ze=v.__private__.getLineHeight=v.getLineHeight=function(){return ft*We};v.__private__.getLineHeight=v.getLineHeight=function(){return ft*We};var $e=v.__private__.setLineHeightFactor=v.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(We=t),this},tr=v.__private__.getLineHeightFactor=v.getLineHeightFactor=function(){return We};$e(t.lineHeight);var er=v.__private__.getHorizontalCoordinate=function(t){return H(t)},rr=v.__private__.getVerticalCoordinate=function(t){return E===_?t:Ut[Z].mediaBox.topRightY-Ut[Z].mediaBox.bottomLeftY-H(t)},nr=v.__private__.getHorizontalCoordinateString=v.getHorizontalCoordinateString=function(t){return T(er(t))},ir=v.__private__.getVerticalCoordinateString=v.getVerticalCoordinateString=function(t){return T(rr(t))},or=t.strokeColor||"0 G";v.__private__.getStrokeColor=v.getDrawColor=function(){return ee(or)},v.__private__.setStrokeColor=v.setDrawColor=function(t,e,r,n){return or=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"draw",precision:2}),ct(or),this};var sr=t.fillColor||"0 g";v.__private__.getFillColor=v.getFillColor=function(){return ee(sr)},v.__private__.setFillColor=v.setFillColor=function(t,e,r,n){return sr=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"fill",precision:2}),ct(sr),this};var ar=t.textColor||"0 g",Ar=v.__private__.getTextColor=v.getTextColor=function(){return ee(ar)};v.__private__.setTextColor=v.setTextColor=function(t,e,r,n){return ar=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"text",precision:3}),this};var lr=t.charSpace,cr=v.__private__.getCharSpace=v.getCharSpace=function(){return parseFloat(lr||0)};v.__private__.setCharSpace=v.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return lr=t,this};var hr=0;v.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},v.__private__.setLineCap=v.setLineCap=function(t){var e=v.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return hr=e,ct(e+" J"),this};var ur=0;v.__private__.setLineJoin=v.setLineJoin=function(t){var e=v.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ur=e,ct(e+" j"),this},v.__private__.setLineMiterLimit=v.__private__.setMiterLimit=v.setLineMiterLimit=v.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ct(T(H(t))+" M"),this},v.GState=N,v.setGState=function(t){(t="string"==typeof t?Mt[Dt[t]]:pr(null,t)).equals(Nt)||(ct("/"+t.id+" gs"),Nt=t)};var pr=function(t,e){if(!t||!Dt[t]){var r=!1;for(var n in Mt)if(Mt.hasOwnProperty(n)&&Mt[n].equals(e)){r=!0;break}if(r)e=Mt[n];else{var i="GS"+(Object.keys(Mt).length+1).toString(10);Mt[i]=e,e.id=i}return t&&(Dt[t]=e.id),Qt.publish("addGState",e),e}};v.addGState=function(t,e){return pr(t,e),this},v.saveGraphicsState=function(){return ct("q"),kt.push({key:Ct,size:ft,color:ar}),this},v.restoreGraphicsState=function(){ct("Q");var t=kt.pop();return Ct=t.key,ft=t.size,ar=t.color,Nt=null,this},v.setCurrentTransformationMatrix=function(t){return ct(t.toString()+" cm"),this},v.comment=function(t){return ct("#"+t),this};var fr=function(t,e){var r=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var n=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},dr=function(t,e,r,n){fr.call(this,t,e),this.type="rect";var i=r||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var o=n||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(t){isNaN(t)||(o=parseFloat(t))}}),this},gr=function(){this.page=Ot,this.currentPage=Z,this.pages=st.slice(0),this.pagesContext=Ut.slice(0),this.x=Et,this.y=St,this.matrix=It,this.width=vr(Z),this.height=wr(Z),this.outputDestination=At,this.id="",this.objectNumber=-1};gr.prototype.restore=function(){Ot=this.page,Z=this.currentPage,Ut=this.pagesContext,st=this.pages,Et=this.x,St=this.y,It=this.matrix,br(Z,this.width),xr(Z,this.height),At=this.outputDestination};var mr=function(t,e,r,n,i){Vt.push(new gr),Ot=Z=0,st=[],Et=t,St=e,It=i,ge([r,n])};for(var yr in v.beginFormObject=function(t,e,r,n,i){return mr(t,e,r,n,i),this},v.endFormObject=function(t){return function(t){if(Ht[t])Vt.pop().restore();else{var e=new gr,r="Xo"+(Object.keys(jt).length+1).toString(10);e.id=r,Ht[t]=r,jt[r]=e,Qt.publish("addFormObject",e),Vt.pop().restore()}}(t),this},v.doFormObject=function(t,e){var r=jt[Ht[t]];return ct("q"),ct(e.toString()+" cm"),ct("/"+r.id+" Do"),ct("Q"),this},v.getFormObject=function(t){var e=jt[Ht[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},v.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(p(Ie(Se()),t),"function"==typeof p.unload&&a.setTimeout&&setTimeout(p.unload,911),this):new Promise(function(e,r){try{var n=p(Ie(Se()),t);"function"==typeof p.unload&&a.setTimeout&&setTimeout(p.unload,911),e(n)}catch(t){r(t.message)}})},R.API)R.API.hasOwnProperty(yr)&&("events"===yr&&R.API.events.length?function(t,e){var r,n,i;for(i=e.length-1;-1!==i;i--)r=e[i][0],n=e[i][1],t.subscribe.apply(t,[r].concat("function"==typeof n?[n]:n))}(Qt,R.API.events):v[yr]=R.API[yr]);function vr(t){return Ut[t].mediaBox.topRightX-Ut[t].mediaBox.bottomLeftX}function br(t,e){Ut[t].mediaBox.topRightX=e+Ut[t].mediaBox.bottomLeftX}function wr(t){return Ut[t].mediaBox.topRightY-Ut[t].mediaBox.bottomLeftY}function xr(t,e){Ut[t].mediaBox.topRightY=e+Ut[t].mediaBox.bottomLeftY}var Br=v.getPageWidth=function(t){return vr(t=t||Z)/_t},Cr=v.setPageWidth=function(t,e){br(t,e*_t)},_r=v.getPageHeight=function(t){return wr(t=t||Z)/_t},Er=v.setPageHeight=function(t,e){xr(t,e*_t)};return v.internal={pdfEscape:de,getStyle:Oe,getFont:qe,getFontSize:gt,getCharSpace:cr,getTextColor:Ar,getLineHeight:Ze,getLineHeightFactor:tr,getLineWidth:Xe,write:ht,getHorizontalCoordinate:er,getVerticalCoordinate:rr,getCoordinateString:nr,getVerticalCoordinateString:ir,collections:{},newObject:Yt,newAdditionalObject:Zt,newObjectDeferred:Xt,newObjectDeferredBegin:Jt,getFilters:ne,putStream:ie,events:Qt,scaleFactor:_t,pageSize:{getWidth:function(){return Br(Z)},setWidth:function(t){Cr(Z,t)},getHeight:function(){return _r(Z)},setHeight:function(t){Er(Z,t)}},encryptionOptions:d,encryption:ke,getEncryptor:function(t){return null!==d?ke.encryptor(t,0):function(t){return t}},output:Fe,getNumberOfPages:be,get pages(){return st},out:ct,f2:O,f3:j,getPageInfo:Le,getPageInfoByObjId:Pe,getCurrentPageInfo:Me,getPDFVersion:w,Point:fr,Rectangle:dr,Matrix:zt,hasHotfix:Te},Object.defineProperty(v.internal.pageSize,"width",{get:function(){return Br(Z)},set:function(t){Cr(Z,t)},enumerable:!0,configurable:!0}),Object.defineProperty(v.internal.pageSize,"height",{get:function(){return _r(Z)},set:function(t){Er(Z,t)},enumerable:!0,configurable:!0}),function(t){for(var e=0,r=pt.length;e<r;e++){var n=fe.call(this,t[e][0],t[e][1],t[e][2],pt[e][3],!0);!1===m&&(y[n]=!0);var i=t[e][0].split("-");pe({id:n,fontName:i[0],fontStyle:i[1]||""})}Qt.publish("addFonts",{fonts:Ft,dictionary:Tt})}.call(v,pt),Ct="F1",me(o,r),Qt.publish("initialized"),v}P.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},P.prototype.toHexString=function(t){return t.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},P.prototype.hexToBytes=function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(String.fromCharCode(parseInt(t.substr(r,2),16)));return e.join("")},P.prototype.processOwnerPassword=function(t,e){return k(I(e).substr(0,5),t)},P.prototype.encryptor=function(t,e){var r=I(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return k(r,t)}},N.prototype.equals=function(t){var e,r="id,objectNumber,equals";if(!t||(0,n.A)(t)!==(0,n.A)(this))return!1;var i=0;for(e in this)if(!(r.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;i++}for(e in t)t.hasOwnProperty(e)&&r.indexOf(e)<0&&i--;return 0===i},R.API={events:[]},R.version="3.0.4";var j=R.API,H=1,V=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},z=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},G=function(t){return t.toFixed(2)},K=function(t){return t.toFixed(5)};j.__acroform__={};var q=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},W=function(t){return t*H},Y=function(t){var e=new ht,r=_t.internal.getHeight(t)||0,n=_t.internal.getWidth(t)||0;return e.BBox=[0,0,Number(G(n)),Number(G(r))],e},X=j.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},J=j.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},Z=j.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},$=j.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Z(t,e-1)},tt=j.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return X(t,e-1)},et=j.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return J(t,e-1)},rt=j.__acroform__.calculateCoordinates=function(t,e){var r=e.internal.getHorizontalCoordinate,n=e.internal.getVerticalCoordinate,i=t[0],o=t[1],s=t[2],a=t[3],A={};return A.lowerLeft_X=r(i)||0,A.lowerLeft_Y=n(o+a)||0,A.upperRight_X=r(i+s)||0,A.upperRight_Y=n(o)||0,[Number(G(A.lowerLeft_X)),Number(G(A.lowerLeft_Y)),Number(G(A.upperRight_X)),Number(G(A.upperRight_Y))]},nt=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],r=t._V||t.DV,n=it(t,r),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+G(n.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");var o=Y(t);return o.scope=t.scope,o.stream=e.join("\n"),o}},it=function(t,e){var r=0===t.fontSize?t.maxFontSize:t.fontSize,n={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");i=t.multiline?i.map(function(t){return t.split("\n")}):i.map(function(t){return[t]});var o=r,s=_t.internal.getHeight(t)||0;s=s<0?-s:s;var a=_t.internal.getWidth(t)||0;a=a<0?-a:a;var A=function(e,r,n){if(e+1<i.length){var o=r+" "+i[e+1][0];return ot(o,t,n).width<=a-4}return!1};o++;t:for(;o>0;){e="",o--;var l,c,h=ot("3",t,o).height,u=t.multiline?s-o:(s-h)/2,p=u+=2,f=0,d=0,g=0;if(o<=0){e="(...) Tj\n",e+="% Width of Text: "+ot(e,t,o=12).width+", FieldWidth:"+a+"\n";break}for(var m="",y=0,v=0;v<i.length;v++)if(i.hasOwnProperty(v)){var b=!1;if(1!==i[v].length&&g!==i[v].length-1){if((h+2)*(y+2)+2>s)continue t;m+=i[v][g],b=!0,d=v,v--}else{m=" "==(m+=i[v][g]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var w=parseInt(v),x=A(w,m,o),B=v>=i.length-1;if(x&&!B){m+=" ",g=0;continue}if(x||B){if(B)d=w;else if(t.multiline&&(h+2)*(y+2)+2>s)continue t}else{if(!t.multiline)continue t;if((h+2)*(y+2)+2>s)continue t;d=w}}for(var C="",_=f;_<=d;_++){var E=i[_];if(t.multiline){if(_===d){C+=E[g]+" ",g=(g+1)%E.length;continue}if(_===f){C+=E[E.length-1]+" ";continue}}C+=E[0]+" "}switch(C=" "==C.substr(C.length-1)?C.substr(0,C.length-1):C,c=ot(C,t,o).width,t.textAlign){case"right":l=a-c-2;break;case"center":l=(a-c)/2;break;default:l=2}e+=G(l)+" "+G(p)+" Td\n",e+="("+V(C)+") Tj\n",e+=-G(l)+" 0 Td\n",p=-(o+2),c=0,f=b?d:d+1,y++,m=""}break}return n.text=e,n.fontSize=o,n},ot=function(t,e,r){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},st={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},at=function(t,e){var r={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===r.type&&t.object===r.object})&&e.internal.getPageInfo(t.page).pageContext.annotations.push(r)},At=j.__acroform__.arrayToPdfArray=function(t,e,r){var i=function(t){return t};if(Array.isArray(t)){for(var o="[",s=0;s<t.length;s++)switch(0!==s&&(o+=" "),(0,n.A)(t[s])){case"boolean":case"number":case"object":o+=t[s].toString();break;case"string":"/"!==t[s].substr(0,1)?(void 0!==e&&r&&(i=r.internal.getEncryptor(e)),o+="("+V(i(t[s].toString()))+")"):o+=t[s].toString()}return o+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},lt=function(t,e,r){var n=function(t){return t};return void 0!==e&&r&&(n=r.internal.getEncryptor(e)),(t=t||"").toString(),"("+V(n(t))+")"},ct=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(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ct.prototype.toString=function(){return this.objId+" 0 R"},ct.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},ct.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)});for(var r in e)if(!1===Object.getOwnPropertyDescriptor(this,e[r]).configurable){var n=e[r],i=this[n];i&&(Array.isArray(i)?t.push({key:n,value:At(i,this.objId,this.scope)}):i instanceof ct?(i.scope=this.scope,t.push({key:n,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:n,value:i}))}return t};var ht=function(){ct.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 t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};q(ht,ct);var ut=function(){ct.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+V(e(t))+")"}},set:function(e){t=e}})};q(ut,ct);var pt=function t(){ct.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean($(e,3))},set:function(t){!0===Boolean(t)?this.F=tt(e,3):this.F=et(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');r=t}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==n.length)return n},set:function(t){n=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(t){n[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(t){n[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(t){n[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(t){n[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" 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 wt)return;o="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+V(e(o))+")"},set:function(t){o=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(t){o=t}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var A=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){A=t}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===l?50/H:l},set:function(t){l=t}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof wt||this instanceof Bt))return lt(h,this.objId,this.scope)},set:function(t){t=t.toString(),h=t}});var u=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(u)return this instanceof yt==0?lt(u,this.objId,this.scope):u},set:function(t){t=t.toString(),u=this instanceof yt==0?"("===t.substr(0,1)?z(t.substr(1,t.length-2)):z(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof yt==1?z(u.substr(1,u.length-1)):u},set:function(t){t=t.toString(),u=this instanceof yt==1?"/"+t:t}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof yt==0?lt(p,this.objId,this.scope):p},set:function(t){t=t.toString(),p=this instanceof yt==0?"("===t.substr(0,1)?z(t.substr(1,t.length-2)):z(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof yt==1?z(p.substr(1,p.length-1)):p},set:function(t){t=t.toString(),p=this instanceof yt==1?"/"+t:t}}),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 f,d=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return d},set:function(t){t=Boolean(t),d=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(f)return f},set:function(t){f=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,1):this.Ff=et(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,2):this.Ff=et(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,3):this.Ff=et(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');g=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(g){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};q(pt,ct);var ft=function(){pt.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return At(e,this.objId,this.scope)},set:function(t){var r,n;n=[],"string"==typeof(r=t)&&(n=function(t,e,r){r||(r=1);for(var n,i=[];n=e.exec(t);)i.push(n[r]);return i}(r,/\((.*?)\)/g)),e=n}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,18):this.Ff=et(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=tt(this.Ff,19):this.Ff=et(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=tt(this.Ff,20),e.sort()):this.Ff=et(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,22):this.Ff=et(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,23):this.Ff=et(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,27):this.Ff=et(this.Ff,27)}}),this.hasAppearanceStream=!1};q(ft,pt);var dt=function(){ft.call(this),this.fontName="helvetica",this.combo=!1};q(dt,ft);var gt=function(){dt.call(this),this.combo=!0};q(gt,dt);var mt=function(){gt.call(this),this.edit=!0};q(mt,gt);var yt=function(){pt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,15):this.Ff=et(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,16):this.Ff=et(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,17):this.Ff=et(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,26):this.Ff=et(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var r,n=[];for(r in n.push("<<"),e)n.push("/"+r+" ("+V(t(e[r]))+")");return n.push(">>"),n.join("\n")}},set:function(t){"object"===(0,n.A)(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};q(yt,pt);var vt=function(){yt.call(this),this.pushButton=!0};q(vt,yt);var bt=function(){yt.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};q(bt,yt);var wt=function(){var t,e;pt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var r,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,r=[];for(e in r.push("<<"),i)r.push("/"+e+" ("+V(t(i[e]))+")");return r.push(">>"),r.join("\n")},set:function(t){"object"===(0,n.A)(t)&&(i=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){r="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=_t.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};q(wt,pt),bt.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var r=this.Kids[e];r.appearanceStreamContent=t.createAppearanceStream(r.optionName),r.caption=t.getCA()}},bt.prototype.createOption=function(t){var e=new wt;return e.Parent=this,e.optionName=t,this.Kids.push(e),It.call(this.scope,e),e};var xt=function(){yt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=_t.CheckBox.createAppearanceStream()};q(xt,yt);var Bt=function(){pt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,13):this.Ff=et(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,21):this.Ff=et(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,23):this.Ff=et(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,24):this.Ff=et(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,25):this.Ff=et(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,26):this.Ff=et(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};q(Bt,pt);var Ct=function(){Bt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=tt(this.Ff,14):this.Ff=et(this.Ff,14)}}),this.password=!0};q(Ct,Bt);var _t={CheckBox:{createAppearanceStream:function(){return{N:{On:_t.CheckBox.YesNormal},D:{On:_t.CheckBox.YesPushDown,Off:_t.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=Y(t);e.scope=t.scope;var r=[],n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),o=it(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+G(_t.internal.getWidth(t))+" "+G(_t.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+G(o.fontSize)+" Tf "+i),r.push("BT"),r.push(o.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=Y(t);e.scope=t.scope;var r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=[],o=_t.internal.getHeight(t),s=_t.internal.getWidth(t),a=it(t,t.caption);return i.push("1 g"),i.push("0 0 "+G(s)+" "+G(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+G(s-1)+" "+G(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+G(a.fontSize)+" Tf "+n),i.push(a.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=Y(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+G(_t.internal.getWidth(t))+" "+G(_t.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:_t.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=_t.RadioButton.Circle.YesNormal,e.D[t]=_t.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=Y(t);e.scope=t.scope;var r=[],n=_t.internal.getWidth(t)<=_t.internal.getHeight(t)?_t.internal.getWidth(t)/4:_t.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=_t.internal.Bezier_C,o=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+K(_t.internal.getWidth(t)/2)+" "+K(_t.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=Y(t);e.scope=t.scope;var r=[],n=_t.internal.getWidth(t)<=_t.internal.getHeight(t)?_t.internal.getWidth(t)/4:_t.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),o=Number((i*_t.internal.Bezier_C).toFixed(5)),s=Number((n*_t.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+K(_t.internal.getWidth(t)/2)+" "+K(_t.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),r.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),r.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),r.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+K(_t.internal.getWidth(t)/2)+" "+K(_t.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),r.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),r.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),r.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=Y(t);e.scope=t.scope;var r=[],n=_t.internal.getWidth(t)<=_t.internal.getHeight(t)?_t.internal.getWidth(t)/4:_t.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),o=Number((i*_t.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+K(_t.internal.getWidth(t)/2)+" "+K(_t.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),r.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),r.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),r.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:_t.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=_t.RadioButton.Cross.YesNormal,e.D[t]=_t.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=Y(t);e.scope=t.scope;var r=[],n=_t.internal.calculateCross(t);return r.push("q"),r.push("1 1 "+G(_t.internal.getWidth(t)-2)+" "+G(_t.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(G(n.x1.x)+" "+G(n.x1.y)+" m"),r.push(G(n.x2.x)+" "+G(n.x2.y)+" l"),r.push(G(n.x4.x)+" "+G(n.x4.y)+" m"),r.push(G(n.x3.x)+" "+G(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=Y(t);e.scope=t.scope;var r=_t.internal.calculateCross(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+G(_t.internal.getWidth(t))+" "+G(_t.internal.getHeight(t))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+G(_t.internal.getWidth(t)-2)+" "+G(_t.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(G(r.x1.x)+" "+G(r.x1.y)+" m"),n.push(G(r.x2.x)+" "+G(r.x2.y)+" l"),n.push(G(r.x4.x)+" "+G(r.x4.y)+" m"),n.push(G(r.x3.x)+" "+G(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=Y(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+G(_t.internal.getWidth(t))+" "+G(_t.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};_t.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=_t.internal.getWidth(t),r=_t.internal.getHeight(t),n=Math.min(e,r);return{x1:{x:(e-n)/2,y:(r-n)/2+n},x2:{x:(e-n)/2+n,y:(r-n)/2},x3:{x:(e-n)/2,y:(r-n)/2},x4:{x:(e-n)/2+n,y:(r-n)/2+n}}}},_t.internal.getWidth=function(t){var e=0;return"object"===(0,n.A)(t)&&(e=W(t.Rect[2])),e},_t.internal.getHeight=function(t){var e=0;return"object"===(0,n.A)(t)&&(e=W(t.Rect[3])),e};var Et,St,It=j.addField=function(t){if(function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(pt.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(st)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");H=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new ut,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){var e;(e=t).internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0}),t.internal.events.subscribe("buildDocument",function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];n.objId=void 0,n.hasAnnotation&&at(n,t)}}(t)}),t.internal.events.subscribe("putCatalog",function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)}),t.internal.events.subscribe("postPutPages",function(e){!function(t,e){var r=!t;for(var i in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(i)){var o=t[i],s=[],a=o.Rect;if(o.Rect&&(o.Rect=rt(o.Rect,e)),e.internal.newObjectDeferredBegin(o.objId,!0),o.DA=_t.createDefaultAppearanceStream(o),"object"===(0,n.A)(o)&&"function"==typeof o.getKeyValueListForStream&&(s=o.getKeyValueListForStream()),o.Rect=a,o.hasAppearanceStream&&!o.appearanceStreamContent){var A=nt(o);s.push({key:"AP",value:"<</N "+A+">>"}),e.internal.acroformPlugin.xForms.push(A)}if(o.appearanceStreamContent){var l="";for(var c in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(c)){var h=o.appearanceStreamContent[c];if(l+="/"+c+" ",l+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var i in h)if(h.hasOwnProperty(i)){var u=h[i];"function"==typeof u&&(u=u.call(e,o)),l+="/"+i+" "+u+" ",e.internal.acroformPlugin.xForms.indexOf(u)>=0||e.internal.acroformPlugin.xForms.push(u)}}else"function"==typeof(u=h)&&(u=u.call(e,o)),l+="/"+i+" "+u,e.internal.acroformPlugin.xForms.indexOf(u)>=0||e.internal.acroformPlugin.xForms.push(u);l+=">>"}s.push({key:"AP",value:"<<\n"+l+">>"})}e.internal.putStream({additionalKeyValues:s,objectId:o.objId}),e.internal.out("endobj")}r&&function(t,e){for(var r in t)if(t.hasOwnProperty(r)){var i=r,o=t[r];e.internal.newObjectDeferredBegin(o.objId,!0),"object"===(0,n.A)(o)&&"function"==typeof o.putStream&&o.putStream(),delete t[i]}}(e.internal.acroformPlugin.xForms,e)}(e,t)}),t.internal.acroformPlugin.isInitialized=!0}}(this,t),!(t instanceof pt))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};function Ft(t){return t.reduce(function(t,e,r){return t[e]=r,t},{})}j.AcroFormChoiceField=ft,j.AcroFormListBox=dt,j.AcroFormComboBox=gt,j.AcroFormEditBox=mt,j.AcroFormButton=yt,j.AcroFormPushButton=vt,j.AcroFormRadioButton=bt,j.AcroFormCheckBox=xt,j.AcroFormTextField=Bt,j.AcroFormPasswordField=Ct,j.AcroFormAppearance=_t,j.AcroForm={ChoiceField:ft,ListBox:dt,ComboBox:gt,EditBox:mt,Button:yt,PushButton:vt,RadioButton:bt,CheckBox:xt,TextField:Bt,PasswordField:Ct,Appearance:_t},R.AcroForm={ChoiceField:ft,ListBox:dt,ComboBox:gt,EditBox:mt,Button:yt,PushButton:vt,RadioButton:bt,CheckBox:xt,TextField:Bt,PasswordField:Ct,Appearance:_t},R.AcroForm,function(t){var e="addImage_";t.__addimage__={};var r="UNKNOWN",i={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]]},o=t.__addimage__.getImageFileTypeByImageData=function(t,e){var n,o,s,a,A,l=r;if("RGBA"===(e=e||r)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(C(t))for(A in i)for(s=i[A],n=0;n<s.length;n+=1){for(a=!0,o=0;o<s[n].length;o+=1)if(void 0!==s[n][o]&&s[n][o]!==t[o]){a=!1;break}if(!0===a){l=A;break}}else for(A in i)for(s=i[A],n=0;n<s.length;n+=1){for(a=!0,o=0;o<s[n].length;o+=1)if(void 0!==s[n][o]&&s[n][o]!==t.charCodeAt(o)){a=!1;break}if(!0===a){l=A;break}}return l===r&&e!==r&&(l=e),l},s=function t(e){for(var r=this.internal.write,n=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var o=[];if(o.push({key:"Type",value:"/XObject"}),o.push({key:"Subtype",value:"/Image"}),o.push({key:"Width",value:e.width}),o.push({key:"Height",value:e.height}),e.colorSpace===v.INDEXED?o.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(o.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===v.DEVICE_CMYK&&o.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),o.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&o.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)&&e.transparency.length>0){for(var s="",a=0,A=e.transparency.length;a<A;a++)s+=e.transparency[a]+" "+e.transparency[a]+" ";o.push({key:"Mask",value:"["+s+"]"})}void 0!==e.sMask&&o.push({key:"SMask",value:e.objectId+1+" 0 R"});var l=void 0!==e.filter?["/"+e.filter]:void 0;if(n({data:e.data,additionalKeyValues:o,alreadyAppliedFilters:l,objectId:e.objectId}),r("endobj"),"sMask"in e&&void 0!==e.sMask){var c,h=null!==(c=e.sMaskBitsPerComponent)&&void 0!==c?c:e.bitsPerComponent,u={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:h,data:e.sMask};"filter"in e&&(u.decodeParameters="/Predictor ".concat(e.predictor," /Colors 1 /BitsPerComponent ").concat(h," /Columns ").concat(e.width),u.filter=e.filter),t.call(this,u)}if(e.colorSpace===v.INDEXED){var p=this.internal.newObject();n({data:E(new Uint8Array(e.palette)),objectId:p}),r("endobj")}},a=function(){var t=this.internal.collections[e+"images"];for(var r in t)s.call(this,t[r])},A=function(){var t,r=this.internal.collections[e+"images"],n=this.internal.write;for(var i in r)n("/I"+(t=r[i]).index,t.objectId,"0","R")},l=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",A))},c=function(){var t=this.internal.collections[e+"images"];return l.call(this),t},h=function(){return Object.keys(this.internal.collections[e+"images"]).length},u=function(e){return"function"==typeof t["process"+e.toUpperCase()]},p=function(t){return"object"===(0,n.A)(t)&&1===t.nodeType},f=function(e,r){if("IMG"===e.nodeName&&e.hasAttribute("src")){var n=""+e.getAttribute("src");if(0===n.indexOf("data:image/"))return d(unescape(n).split("base64,").pop());var i=t.loadFile(n,!0);if(void 0!==i)return i}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var o;switch(r){case"PNG":o="image/png";break;case"WEBP":o="image/webp";break;default:o="image/jpeg"}return d(e.toDataURL(o,1).split("base64,").pop())}},g=function(t){var r=this.internal.collections[e+"images"];if(r)for(var n in r)if(t===r[n].alias)return r[n]},m=function(t,e,r){return t||e||(t=-96,e=-96),t<0&&(t=-1*r.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*r.height*72/e/this.internal.scaleFactor),0===t&&(t=e*r.width/r.height),0===e&&(e=t*r.height/r.width),[t,e]},y=function(t,e,r,n,i,o){var s=m.call(this,r,n,i),a=this.internal.getCoordinateString,A=this.internal.getVerticalCoordinateString,l=c.call(this);if(r=s[0],n=s[1],l[i.index]=i,o){o*=Math.PI/180;var h=Math.cos(o),u=Math.sin(o),p=function(t){return t.toFixed(4)},f=[p(h),p(u),p(-1*u),p(h),0,0,"cm"]}this.internal.write("q"),o?(this.internal.write([1,"0","0",1,a(t),A(e+n),"cm"].join(" ")),this.internal.write(f.join(" ")),this.internal.write([a(r),"0","0",a(n),"0","0","cm"].join(" "))):this.internal.write([a(r),"0","0",a(n),a(t),A(e+n),"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")},v=t.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"};t.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 b=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=t.__addimage__.sHashCode=function(t){var e,r,n=0;if("string"==typeof t)for(r=t.length,e=0;e<r;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;else if(C(t))for(r=t.byteLength/2,e=0;e<r;e++)n=(n<<5)-n+t[e],n|=0;return n},x=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},B=t.__addimage__.extractImageFromDataUrl=function(t){if(null==t)return null;if(!(t=t.trim()).startsWith("data:"))return null;var e=t.indexOf(",");return e<0?null:t.substring(0,e).trim().endsWith("base64")?t.substring(e+1):null};t.__addimage__.isArrayBuffer=function(t){return t instanceof ArrayBuffer};var C=t.__addimage__.isArrayBufferView=function(t){return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array},_=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r},E=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",r=C(t)?t:new Uint8Array(t),n=0;n<r.length;n+=8192)e+=String.fromCharCode.apply(null,r.subarray(n,n+8192));return e};t.addImage=function(){var t,e,i,o,s,a,A,c,h;if("number"==typeof arguments[1]?(e=r,i=arguments[1],o=arguments[2],s=arguments[3],a=arguments[4],A=arguments[5],c=arguments[6],h=arguments[7]):(e=arguments[1],i=arguments[2],o=arguments[3],s=arguments[4],a=arguments[5],A=arguments[6],c=arguments[7],h=arguments[8]),"object"===(0,n.A)(t=arguments[0])&&!p(t)&&"imageData"in t){var u=t;t=u.imageData,e=u.format||e||r,i=u.x||i||0,o=u.y||o||0,s=u.w||u.width||s,a=u.h||u.height||a,A=u.alias||A,c=u.compression||c,h=u.rotation||u.angle||h}var f=this.internal.getFilters();if(void 0===c&&-1!==f.indexOf("FlateEncode")&&(c="SLOW"),isNaN(i)||isNaN(o))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var d=S.call(this,t,e,A,c);return y.call(this,i,o,s,a,d,h),this};var S=function(e,n,i,s){var a,A,l;if("string"==typeof e&&o(e)===r){e=unescape(e);var c=I(e,!1);(""!==c||void 0!==(c=t.loadFile(e,!0)))&&(e=c)}if(p(e)&&(e=f(e,n)),n=o(e,n),!u(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if((null==(l=i)||0===l.length)&&(i=function(t){return"string"==typeof t||C(t)?w(t):C(t.data)?w(t.data):null}(e)),(a=g.call(this,i))||(e instanceof Uint8Array||"RGBA"===n||(A=e,e=_(e)),a=this["process"+n.toUpperCase()](e,h.call(this),i,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:b.NONE}(s),A)),!a)throw new Error("An unknown error occurred whilst processing the image.");return a},I=t.__addimage__.convertBase64ToBinaryString=function(t,e){e="boolean"!=typeof e||e;var r,n="";if("string"==typeof t){var i;r=null!==(i=B(t))&&void 0!==i?i:t;try{n=d(r)}catch(t){if(e)throw x(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return n};t.getImageProperties=function(e){var n,i,s="";if(p(e)&&(e=f(e)),"string"==typeof e&&o(e)===r&&(""===(s=I(e,!1))&&(s=t.loadFile(e)||""),e=s),i=o(e),!u(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(e instanceof Uint8Array||(e=_(e)),!(n=this["process"+i.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return n.fileType=i,n}}(R.API),Et=R.API,St=function(t){if(void 0!==t&&""!=t)return!0},R.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),Et.events.push(["putPage",function(t){for(var e,r,n,i=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(t.objId),a=t.pageContext.annotations,A=!1,l=0;l<a.length&&!A;l++)switch((e=a[l]).type){case"link":(St(e.options.url)||St(e.options.pageNumber))&&(A=!0);break;case"reference":case"text":case"freetext":A=!0}if(0!=A){this.internal.write("/Annots [");for(var c=0;c<a.length;c++){e=a[c];var h=this.internal.pdfEscape,u=this.internal.getEncryptor(t.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),f=this.internal.newAdditionalObject(),d=this.internal.getEncryptor(p.objId),g=e.title||"Note";n="<</Type /Annot /Subtype /Text "+(r="/Rect ["+i(e.bounds.x)+" "+o(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w)+" "+o(e.bounds.y)+"] ")+"/Contents ("+h(d(e.contents))+")",n+=" /Popup "+f.objId+" 0 R",n+=" /P "+s.objId+" 0 R",n+=" /T ("+h(d(g))+") >>",p.content=n;var m=p.objId+" 0 R";n="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+i(e.bounds.x+30)+" "+o(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w+30)+" "+o(e.bounds.y)+"] ")+" /Parent "+m,e.open&&(n+=" /Open true"),n+=" >>",f.content=n,this.internal.write(p.objId,"0 R",f.objId,"0 R");break;case"freetext":r="/Rect ["+i(e.bounds.x)+" "+o(e.bounds.y)+" "+i(e.bounds.x+e.bounds.w)+" "+o(e.bounds.y+e.bounds.h)+"] ";var y=e.color||"#000000";n="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+h(u(e.contents))+")",n+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",n+=" /Border [0 0 0]",n+=" >>",this.internal.write(n);break;case"link":if(e.options.name){var v=this.annotations._nameMap[e.options.name];e.options.pageNumber=v.page,e.options.top=v.y}else e.options.top||(e.options.top=0);if(r="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",n="",e.options.url)n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+h(u(e.options.url))+") >>";else if(e.options.pageNumber)switch(n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(e.options.pageNumber).objId+" 0 R",e.options.magFactor=e.options.magFactor||"XYZ",e.options.magFactor){case"Fit":n+=" /Fit]";break;case"FitH":n+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,n+=" /FitV "+e.options.left+"]";break;default:var b=o(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),n+=" /XYZ "+e.options.left+" "+b+" "+e.options.zoom+"]"}""!=n&&(n+=" >>",this.internal.write(n))}}this.internal.write("]")}}]),Et.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},Et.link=function(t,e,r,n,i){var o=this.internal.getCurrentPageInfo(),s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:s(t),y:a(e),w:s(t+r),h:a(e+n)},options:i,type:"link"})},Et.textWithLink=function(t,e,r,n){var i,o,s=this.getTextWidth(t),a=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==n.maxWidth){o=n.maxWidth;var A=this.splitTextToSize(t,o).length;i=Math.ceil(a*A)}else o=s,i=a;return this.text(t,e,r,n),r+=.2*a,"center"===n.align&&(e-=s/2),"right"===n.align&&(e-=s),this.link(e,r-a,o,i,n),s},Et.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},function(t){var e={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]},r={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}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},s=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},a=t.__arabicParser__.isArabicEndLetter=function(t){return s(t)&&o(t)&&e[t.charCodeAt(0)].length<=2},A=t.__arabicParser__.isArabicAlfLetter=function(t){return s(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return s(t)&&o(t)&&e[t.charCodeAt(0)].length>=1};var l=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return s(t)&&o(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return s(t)&&o(t)&&e[t.charCodeAt(0)].length>=3};var c=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return s(t)&&o(t)&&4==e[t.charCodeAt(0)].length},h=t.__arabicParser__.resolveLigatures=function(t){var e=0,n=r,i="",o=0;for(e=0;e<t.length;e+=1)void 0!==n[t.charCodeAt(e)]?(o++,"number"==typeof(n=n[t.charCodeAt(e)])&&(i+=String.fromCharCode(n),n=r,o=0),e===t.length-1&&(n=r,i+=t.charAt(e-(o-1)),e-=o-1,o=0)):(n=r,i+=t.charAt(e-o),e-=o,o=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==n[t.charCodeAt(0)]};var u=t.__arabicParser__.getCorrectForm=function(t,e,r){return s(t)?!1===o(t)?-1:!l(t)||!s(e)&&!s(r)||!s(r)&&a(e)||a(t)&&!s(e)||a(t)&&A(e)||a(t)&&a(e)?0:c(t)&&s(e)&&!a(e)&&s(r)&&l(r)?3:a(t)||!s(r)?1:2:-1},p=function(t){var r=0,n=0,i=0,o="",a="",A="",l=(t=t||"").split("\\s+"),c=[];for(r=0;r<l.length;r+=1){for(c.push(""),n=0;n<l[r].length;n+=1)o=l[r][n],a=l[r][n-1],A=l[r][n+1],s(o)?(i=u(o,a,A),c[r]+=-1!==i?String.fromCharCode(e[o.charCodeAt(0)][i]):o):c[r]+=o;c[r]=h(c[r])}return c.join(" ")},f=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,r=[];if(Array.isArray(e)){var n=0;for(r=[],n=0;n<e.length;n+=1)Array.isArray(e[n])?r.push([p(e[n][0]),e[n][1],e[n][2]]):r.push([p(e[n])]);t=r}else t=p(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",f])}(R.API),R.API.autoPrint=function(t){var e;return(t=t||{}).variant=t.variant||"non-conform","javascript"===t.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){e=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 "+e+" 0 R")})),this},function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(t){r=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(t){n=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var r;if("2d"!==(t=t||"2d"))return null;for(r in e)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=e[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(R.API),function(t){var e={left:0,top:0,bottom:0,right:0},r=!1,i=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({},e),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var n=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var o=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return o},set:function(t){o=t}});var s=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return s},set:function(t){s=t}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return i.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){i.call(this);var r=(e=e||{}).fontSize||this.getFontSize(),n=e.font||this.getFont(),o=e.scaleFactor||this.internal.scaleFactor,s=0,a=0,A=0,l=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var c=e.maxWidth;c>0?"string"==typeof t?t=this.splitTextToSize(t,c):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(l.splitTextToSize(e,c))},[])):t=Array.isArray(t)?t:[t];for(var h=0;h<t.length;h++)s<(A=this.getStringUnitWidth(t[h],{font:n})*r)&&(s=A);return 0!==s&&(a=t.length),{w:s/=o,h:Math.max((a*r*this.getLineHeightFactor()-r*(this.getLineHeightFactor()-1))/o,0)}},t.cellAddPage=function(){i.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new s(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=t.cell=function(){var t;t=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),i.call(this);var n=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,a=this.internal.__cell__.margins||e,A=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return void 0!==n.lineNumber&&(n.lineNumber===t.lineNumber?(t.x=(n.x||0)+(n.width||0),t.y=n.y||0):n.y+n.height+t.height+a.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=a.top,l&&A&&(this.printHeaderRow(t.lineNumber,!0),t.y+=A[0].height)):t.y=n.y+n.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===r?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-o,t.y+o,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+o,{align:"center",baseline:"top",maxWidth:t.width-o-o}):this.text(t.text,t.x+o,t.y+o,{align:"left",baseline:"top",maxWidth:t.width-o-o})),this.internal.__cell__.lastCell=t,this};t.table=function(t,r,l,c,h){if(i.call(this),!l)throw new Error("No data for PDF table.");var u,p,f,d,g=[],m=[],y=[],v={},b={},w=[],x=[],B=(h=h||{}).autoSize||!1,C=!1!==h.printHeaders,_=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,E=h.margins||Object.assign({width:this.getPageWidth()},e),S="number"==typeof h.padding?h.padding:3,I=h.headerBackgroundColor||"#c8c8c8",F=h.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=E,this.internal.__cell__.table_font_size=_,this.internal.__cell__.padding=S,this.internal.__cell__.headerBackgroundColor=I,this.internal.__cell__.headerTextColor=F,this.setFontSize(_),null==c)m=g=Object.keys(l[0]),y=g.map(function(){return"left"});else if(Array.isArray(c)&&"object"===(0,n.A)(c[0]))for(g=c.map(function(t){return t.name}),m=c.map(function(t){return t.prompt||t.name||""}),y=c.map(function(t){return t.align||"left"}),u=0;u<c.length;u+=1)b[c[u].name]=.7499990551181103*c[u].width;else Array.isArray(c)&&"string"==typeof c[0]&&(m=g=c,y=g.map(function(){return"left"}));if(B||Array.isArray(c)&&"string"==typeof c[0])for(u=0;u<g.length;u+=1){for(v[d=g[u]]=l.map(function(t){return t[d]}),this.setFont(void 0,"bold"),w.push(this.getTextDimensions(m[u],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),p=v[d],this.setFont(void 0,"normal"),f=0;f<p.length;f+=1)w.push(this.getTextDimensions(p[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);b[d]=Math.max.apply(null,w)+S+S,w=[]}if(C){var T={};for(u=0;u<g.length;u+=1)T[g[u]]={},T[g[u]].text=m[u],T[g[u]].align=y[u];var k=A.call(this,T,b);x=g.map(function(e){return new s(t,r,b[e],k,T[e].text,void 0,T[e].align)}),this.setTableHeaderRow(x),this.printHeaderRow(1,!1)}var L=c.reduce(function(t,e){return t[e.name]=e.align,t},{});for(u=0;u<l.length;u+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:u,data:l[u]},this);var P=A.call(this,l[u],b);for(f=0;f<g.length;f+=1){var M=l[u][g[f]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:u,col:f,data:M},this),a.call(this,new s(t,r,b[g[f]],P,M,u+2,L[g[f]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=r,this};var A=function(t,e){var r=this.internal.__cell__.padding,n=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map(function(n){var i=t[n];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[n]-r-r)},this).map(function(t){return this.getLineHeightFactor()*t.length*n/i+r+r},this).reduce(function(t,e){return Math.max(t,e)},0)};t.setTableHeaderRow=function(t){i.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var n;if(r=!0,"function"==typeof this.internal.__cell__.headerFunction){var o=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(o[0],o[1],o[2],o[3],void 0,-1)}this.setFont(void 0,"bold");for(var A=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){n=this.internal.__cell__.tableHeaderRow[l].clone(),e&&(n.y=this.internal.__cell__.margins.top||0,A.push(n)),n.lineNumber=t;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,n),this.setTextColor(c)}A.length>0&&this.setTableHeaderRow(A),this.setFont(void 0,"normal"),r=!1}}(R.API);var Tt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},kt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Lt=Ft(kt),Pt=[100,200,300,400,500,600,700,800,900],Mt=Ft(Pt);function Dt(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),r=function(t){return Tt[t=t||"normal"]?t:"normal"}(t.style),n=function(t){return t?"number"==typeof t?t>=100&&t<=900&&t%100==0?t:400:/^\d00$/.test(t)?parseInt(t):"bold"===t?700:400:400}(t.weight),i=function(t){return"number"==typeof Lt[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:r,weight:n,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,r,n].join(" ")}}}function Nt(t,e,r,n){var i;for(i=r;i>=0&&i<e.length;i+=n)if(t[e[i]])return t[e[i]];for(i=r;i>=0&&i<e.length;i-=n)if(t[e[i]])return t[e[i]]}var Ot={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ut={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Qt(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Rt(t){return t.trimLeft()}function jt(t,e){for(var r=0;r<t.length;){if(t.charAt(r)===e)return[t.substring(0,r),t.substring(r+1)];r+=1}return null}function Ht(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var Vt,zt,Gt,Kt,qt,Wt,Yt,Xt,Jt=["times"];function Zt(t,e,r,n,o){var s=4,a=ee;switch(o){case R.API.image_compression.FAST:s=1,a=te;break;case R.API.image_compression.MEDIUM:s=6,a=re;break;case R.API.image_compression.SLOW:s=9,a=ne}t=function(t,e,r,n){for(var i,o=t.length/e,s=new Uint8Array(t.length+o),a=[$t,te,ee,re,ne],A=0;A<o;A+=1){var l=A*e,c=t.subarray(l,l+e);if(n)s.set(n(c,r,i),l+A);else{for(var h=a.length,u=[],p=0;p<h;p+=1)u[p]=a[p](c,r,i);var f=oe(u.concat());s.set(u[f],l+A)}i=c}return s}(t,e,Math.ceil(r*n/8),a);var A=(0,i.$)(t,{level:s});return R.API.__addimage__.arrayBufferToBinaryString(A)}function $t(t){var e=Array.apply([],t);return e.unshift(0),e}function te(t,e){var r=t.length,n=[];n[0]=1;for(var i=0;i<r;i+=1){var o=t[i-e]||0;n[i+1]=t[i]-o+256&255}return n}function ee(t,e,r){var n=t.length,i=[];i[0]=2;for(var o=0;o<n;o+=1){var s=r&&r[o]||0;i[o+1]=t[o]-s+256&255}return i}function re(t,e,r){var n=t.length,i=[];i[0]=3;for(var o=0;o<n;o+=1){var s=t[o-e]||0,a=r&&r[o]||0;i[o+1]=t[o]+256-(s+a>>>1)&255}return i}function ne(t,e,r){var n=t.length,i=[];i[0]=4;for(var o=0;o<n;o+=1){var s=ie(t[o-e]||0,r&&r[o]||0,r&&r[o-e]||0);i[o+1]=t[o]-s+256&255}return i}function ie(t,e,r){if(t===e&&e===r)return t;var n=Math.abs(e-r),i=Math.abs(t-r),o=Math.abs(t+e-r-r);return n<=i&&n<=o?t:i<=o?e:r}function oe(t){var e=t.map(function(t){return t.reduce(function(t,e){return t+Math.abs(e)},0)});return e.indexOf(Math.min.apply(null,e))}function se(t,e,r){var n=e*r,i=Math.floor(n/8),o=16-(n-8*i+r),s=(1<<r)-1;return Ae(t,i)>>o&s}function ae(t,e,r,n){var i=r*n,o=Math.floor(i/8),s=16-(i-8*o+n),a=(1<<n)-1,A=(e&a)<<s;!function(t,e,r){if(e+1<t.byteLength)t.setUint16(e,r,!1);else{var n=r>>8&255;t.setUint8(e,n)}}(t,o,Ae(t,o)&~(a<<s)&65535|A)}function Ae(t,e){return e+1<t.byteLength?t.getUint16(e,!1):t.getUint8(e)<<8}function le(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var r=t[e++]|t[e++]<<8,n=t[e++]|t[e++]<<8,i=t[e++],o=i>>7,s=1<<1+(7&i);t[e++],t[e++];var a=null,A=null;o&&(a=e,A=s,e+=3*s);var l=!0,c=[],h=0,u=null,p=0,f=null;for(this.width=r,this.height=n;l&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,f=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((S=t[e++])>=0))throw Error("Invalid block size");if(0===S)break;e+=S}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var d=t[e++];h=t[e++]|t[e++]<<8,u=t[e++],1&d||(u=null),p=d>>2&7,e++;break;case 254:for(;;){if(!((S=t[e++])>=0))throw Error("Invalid block size");if(0===S)break;e+=S}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var g=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++],w=b>>6&1,x=1<<1+(7&b),B=a,C=A,_=!1;b>>7&&(_=!0,B=e,C=x,e+=3*x);var E=e;for(e++;;){var S;if(!((S=t[e++])>=0))throw Error("Invalid block size");if(0===S)break;e+=S}c.push({x:g,y:m,width:y,height:v,has_local_palette:_,palette_offset:B,palette_size:C,data_offset:E,data_length:e-E,transparent_index:u,interlaced:!!w,delay:h,disposal:p});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return f},this.frameInfo=function(t){if(t<0||t>=c.length)throw new Error("Frame index out of range.");return c[t]},this.decodeAndBlitFrameBGRA=function(e,n){var i=this.frameInfo(e),o=i.width*i.height,s=new Uint8Array(o);ce(t,i.data_offset,s,o);var a=i.palette_offset,A=i.transparent_index;null===A&&(A=256);var l=i.width,c=r-l,h=l,u=4*(i.y*r+i.x),p=4*((i.y+i.height)*r+i.x),f=u,d=4*c;!0===i.interlaced&&(d+=4*r*7);for(var g=8,m=0,y=s.length;m<y;++m){var v=s[m];if(0===h&&(h=l,(f+=d)>=p&&(d=4*c+4*r*(g-1),f=u+(l+c)*(g<<1),g>>=1)),v===A)f+=4;else{var b=t[a+3*v],w=t[a+3*v+1],x=t[a+3*v+2];n[f++]=x,n[f++]=w,n[f++]=b,n[f++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,n){var i=this.frameInfo(e),o=i.width*i.height,s=new Uint8Array(o);ce(t,i.data_offset,s,o);var a=i.palette_offset,A=i.transparent_index;null===A&&(A=256);var l=i.width,c=r-l,h=l,u=4*(i.y*r+i.x),p=4*((i.y+i.height)*r+i.x),f=u,d=4*c;!0===i.interlaced&&(d+=4*r*7);for(var g=8,m=0,y=s.length;m<y;++m){var v=s[m];if(0===h&&(h=l,(f+=d)>=p&&(d=4*c+4*r*(g-1),f=u+(l+c)*(g<<1),g>>=1)),v===A)f+=4;else{var b=t[a+3*v],w=t[a+3*v+1],x=t[a+3*v+2];n[f++]=b,n[f++]=w,n[f++]=x,n[f++]=255}--h}}}function ce(t,e,r,n){for(var i=t[e++],o=1<<i,s=o+1,a=s+1,A=i+1,c=(1<<A)-1,h=0,u=0,p=0,f=t[e++],d=new Int32Array(4096),g=null;;){for(;h<16&&0!==f;)u|=t[e++]<<h,h+=8,1===f?f=t[e++]:--f;if(h<A)break;var m=u&c;if(u>>=A,h-=A,m!==o){if(m===s)break;for(var y=m<a?m:g,v=0,b=y;b>o;)b=d[b]>>8,++v;var w=b;if(p+v+(y!==m?1:0)>n)return void l.log("Warning, gif stream longer than expected.");r[p++]=w;var x=p+=v;for(y!==m&&(r[p++]=w),b=y;v--;)b=d[b],r[--x]=255&b,b>>=8;null!==g&&a<4096&&(d[a++]=g<<8|w,a>=c+1&&A<12&&(++A,c=c<<1|1)),g=m}else a=s+1,c=(1<<(A=i+1))-1,g=null}return p!==n&&l.log("Warning, gif stream shorter than expected."),r}function he(t){var e,r,n,i,o,s=Math.floor,a=new Array(64),A=new Array(64),l=new Array(64),c=new Array(64),h=new Array(65535),u=new Array(65535),p=new Array(64),f=new Array(64),d=[],g=0,m=7,y=new Array(64),v=new Array(64),b=new Array(64),w=new Array(256),x=new Array(2048),B=[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],C=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],_=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[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],I=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],k=[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 L(t,e){for(var r=0,n=0,i=new Array,o=1;o<=16;o++){for(var s=1;s<=t[o];s++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=o,n++,r++;r*=2}return i}function P(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(g|=1<<m),r--,--m<0&&(255==g?(M(255),M(0)):M(g),m=7,g=0)}function M(t){d.push(t)}function D(t){M(t>>8&255),M(255&t)}function N(t,e,r,n,i){for(var o,s=i[0],a=i[240],A=function(t,e){var r,n,i,o,s,a,A,l,c,h,u=0;for(c=0;c<8;++c){r=t[u],n=t[u+1],i=t[u+2],o=t[u+3],s=t[u+4],a=t[u+5],A=t[u+6];var f=r+(l=t[u+7]),d=r-l,g=n+A,m=n-A,y=i+a,v=i-a,b=o+s,w=o-s,x=f+b,B=f-b,C=g+y,_=g-y;t[u]=x+C,t[u+4]=x-C;var E=.707106781*(_+B);t[u+2]=B+E,t[u+6]=B-E;var S=.382683433*((x=w+v)-(_=m+d)),I=.5411961*x+S,F=1.306562965*_+S,T=.707106781*(C=v+m),k=d+T,L=d-T;t[u+5]=L+I,t[u+3]=L-I,t[u+1]=k+F,t[u+7]=k-F,u+=8}for(u=0,c=0;c<8;++c){r=t[u],n=t[u+8],i=t[u+16],o=t[u+24],s=t[u+32],a=t[u+40],A=t[u+48];var P=r+(l=t[u+56]),M=r-l,D=n+A,N=n-A,O=i+a,U=i-a,Q=o+s,R=o-s,j=P+Q,H=P-Q,V=D+O,z=D-O;t[u]=j+V,t[u+32]=j-V;var G=.707106781*(z+H);t[u+16]=H+G,t[u+48]=H-G;var K=.382683433*((j=R+U)-(z=N+M)),q=.5411961*j+K,W=1.306562965*z+K,Y=.707106781*(V=U+N),X=M+Y,J=M-Y;t[u+40]=J+q,t[u+24]=J-q,t[u+8]=X+W,t[u+56]=X-W,u++}for(c=0;c<64;++c)h=t[c]*e[c],p[c]=h>0?h+.5|0:h-.5|0;return p}(t,e),l=0;l<64;++l)f[B[l]]=A[l];var c=f[0]-r;r=f[0],0==c?P(n[0]):(P(n[u[o=32767+c]]),P(h[o]));for(var d=63;d>0&&0==f[d];)d--;if(0==d)return P(s),r;for(var g,m=1;m<=d;){for(var y=m;0==f[m]&&m<=d;)++m;var v=m-y;if(v>=16){g=v>>4;for(var b=1;b<=g;++b)P(a);v&=15}o=32767+f[m],P(i[(v<<4)+u[o]]),P(h[o]),m++}return 63!=d&&P(s),r}function O(t){t=Math.min(Math.max(t,1),100),o!=t&&(function(t){for(var e=[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],r=0;r<64;r++){var n=s((e[r]*t+50)/100);n=Math.min(Math.max(n,1),255),a[B[r]]=n}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]*t+50)/100);h=Math.min(Math.max(h,1),255),A[B[o]]=h}for(var u=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,f=0;f<8;f++)for(var d=0;d<8;d++)l[p]=1/(a[B[p]]*u[f]*u[d]*8),c[p]=1/(A[B[p]]*u[f]*u[d]*8),p++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t)}this.encode=function(t,o){o&&O(o),d=new Array,g=0,m=7,D(65496),D(65504),D(16),M(74),M(70),M(73),M(70),M(0),M(1),M(1),M(0),D(1),D(1),M(0),M(0),function(){D(65499),D(132),M(0);for(var t=0;t<64;t++)M(a[t]);M(1);for(var e=0;e<64;e++)M(A[e])}(),function(t,e){D(65472),D(17),M(8),D(e),D(t),M(3),M(1),M(17),M(0),M(2),M(17),M(1),M(3),M(17),M(1)}(t.width,t.height),function(){D(65476),D(418),M(0);for(var t=0;t<16;t++)M(C[t+1]);for(var e=0;e<=11;e++)M(_[e]);M(16);for(var r=0;r<16;r++)M(E[r+1]);for(var n=0;n<=161;n++)M(S[n]);M(1);for(var i=0;i<16;i++)M(I[i+1]);for(var o=0;o<=11;o++)M(F[o]);M(17);for(var s=0;s<16;s++)M(T[s+1]);for(var a=0;a<=161;a++)M(k[a])}(),D(65498),D(12),M(3),M(1),M(0),M(2),M(17),M(3),M(17),M(0),M(63),M(0);var s=0,h=0,u=0;g=0,m=7,this.encode.displayName="_encode_";for(var p,f,w,B,L,U,Q,R,j,H=t.data,V=t.width,z=t.height,G=4*V,K=0;K<z;){for(p=0;p<G;){for(L=G*K+p,Q=-1,R=0,j=0;j<64;j++)U=L+(R=j>>3)*G+(Q=4*(7&j)),K+R>=z&&(U-=G*(K+1+R-z)),p+Q>=G&&(U-=p+Q-G+4),f=H[U++],w=H[U++],B=H[U++],y[j]=(x[f]+x[w+256|0]+x[B+512|0]>>16)-128,v[j]=(x[f+768|0]+x[w+1024|0]+x[B+1280|0]>>16)-128,b[j]=(x[f+1280|0]+x[w+1536|0]+x[B+1792|0]>>16)-128;s=N(y,l,s,e,n),h=N(v,c,h,r,i),u=N(b,c,u,r,i),p+=32}K+=8}if(m>=0){var q=[];q[1]=m+1,q[0]=(1<<m+1)-1,P(q)}return D(65497),new Uint8Array(d)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)w[e]=t(e)}(),e=L(C,_),r=L(I,F),n=L(E,S),i=L(T,k),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)u[32767+n]=r,h[32767+n]=[],h[32767+n][1]=r,h[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)u[32767+i]=r,h[32767+i]=[],h[32767+i][1]=r,h[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)x[t]=19595*t,x[t+256|0]=38470*t,x[t+512|0]=7471*t+32768,x[t+768|0]=-11059*t,x[t+1024|0]=-21709*t,x[t+1280|0]=32768*t+8421375,x[t+1536|0]=-27439*t,x[t+1792|0]=-5329*t}(),O(t)}function ue(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,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 pe(t){function e(t){if(!t)throw Error("assert :P")}function r(t,e,r){for(var n=0;4>n;n++)if(t[e+n]!=r.charCodeAt(n))return!0;return!1}function n(t,e,r,n,i){for(var o=0;o<i;o++)t[e+o]=r[n+o]}function i(t,e,r,n){for(var i=0;i<n;i++)t[e+i]=r}function o(t){return new Int32Array(t)}function s(t,e){for(var r=[],n=0;n<t;n++)r.push(new e);return r}function a(t,e){var r=[];return function t(r,n,i){for(var o=i[n],s=0;s<o&&(r.push(i.length>n+1?[]:new e),!(i.length<n+1));s++)t(r[s],n+1,i)}(r,0,t),r}var A=function(){var t=this;function A(t,e){for(var r=1<<e-1>>>0;t&r;)r>>>=1;return r?(t&r-1)+r:t}function l(t,r,n,i,o){e(!(i%n));do{t[r+(i-=n)]=o}while(0<i)}function c(t,r,n,i,s){if(e(2328>=s),512>=s)var a=o(512);else if(null==(a=o(s)))return 0;return function(t,r,n,i,s,a){var c,u,p=r,f=1<<n,d=o(16),g=o(16);for(e(0!=s),e(null!=i),e(null!=t),e(0<n),u=0;u<s;++u){if(15<i[u])return 0;++d[i[u]]}if(d[0]==s)return 0;for(g[1]=0,c=1;15>c;++c){if(d[c]>1<<c)return 0;g[c+1]=g[c]+d[c]}for(u=0;u<s;++u)c=i[u],0<i[u]&&(a[g[c]++]=u);if(1==g[15])return(i=new h).g=0,i.value=a[0],l(t,p,1,f,i),f;var m,y=-1,v=f-1,b=0,w=1,x=1,B=1<<n;for(u=0,c=1,s=2;c<=n;++c,s<<=1){if(w+=x<<=1,0>(x-=d[c]))return 0;for(;0<d[c];--d[c])(i=new h).g=c,i.value=a[u++],l(t,p+b,s,B,i),b=A(b,c)}for(c=n+1,s=2;15>=c;++c,s<<=1){if(w+=x<<=1,0>(x-=d[c]))return 0;for(;0<d[c];--d[c]){if(i=new h,(b&v)!=y){for(p+=B,m=1<<(y=c)-n;15>y&&!(0>=(m-=d[y]));)++y,m<<=1;f+=B=1<<(m=y-n),t[r+(y=b&v)].g=m+n,t[r+y].value=p-r-y}i.g=c-n,i.value=a[u++],l(t,p+(b>>n),s,B,i),b=A(b,c)}}return w!=2*g[15]-1?0:f}(t,r,n,i,s,a)}function h(){this.value=this.g=0}function u(){this.value=this.g=0}function p(){this.G=s(5,h),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(Or,u)}function f(t,r,n,i){e(null!=t),e(null!=r),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=r,t.pa=n,t.Jd=r,t.Yc=n+i,t.Zc=4<=i?n+i-4+1:n,E(t)}function d(t,e){for(var r=0;0<e--;)r|=I(t,128)<<e;return r}function g(t,e){var r=d(t,e);return S(t)?-r:r}function m(t,r,n,i){var o,s=0;for(e(null!=t),e(null!=r),e(4294967288>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),o=0;o<i;++o)s+=r[n+o]<<8*o;t.Ra=s,t.bb=i,t.oa=r,t.pa=n}function y(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<Rr-8>>>0,++t.bb,t.u-=8;B(t)&&(t.h=1,t.u=0)}function v(t,r){if(e(0<=r),!t.h&&r<=Qr){var n=x(t)&Ur[r];return t.u+=r,y(t),n}return t.h=1,t.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 w(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function x(t){return t.Ra>>>(t.u&Rr-1)>>>0}function B(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Rr}function C(t,e){t.u=e,t.h=B(t)}function _(t){t.u>=jr&&(e(t.u>=jr),y(t))}function E(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function S(t){return d(t,1)}function I(t,e){var r=t.Ca;0>t.b&&E(t);var n=t.b,i=r*e>>>8,o=(t.I>>>n>i)+0;for(o?(r-=i,t.I-=i+1<<n>>>0):r=i+1,n=r,i=0;256<=n;)i+=8,n>>=8;return n=7^i+Hr[n],t.b-=n,t.Ca=(r<<n)-1,o}function F(t,e,r){t[e+0]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r}function T(t,e){return t[e+0]|t[e+1]<<8}function k(t,e){return T(t,e)|t[e+2]<<16}function L(t,e){return T(t,e)|T(t,e+2)<<16}function P(t,r){var n=1<<r;return e(null!=t),e(0<r),t.X=o(n),null==t.X?0:(t.Mb=32-r,t.Xa=r,1)}function M(t,r){e(null!=t),e(null!=r),e(t.Xa==r.Xa),n(r.X,0,t.X,0,1<<r.Xa)}function D(){this.X=[],this.Xa=this.Mb=0}function N(t,r,n,i){e(null!=n),e(null!=i);var o=n[0],s=i[0];return 0==o&&(o=(t*s+r/2)/r),0==s&&(s=(r*o+t/2)/t),0>=o||0>=s?0:(n[0]=o,i[0]=s,1)}function O(t,e){return t+(1<<e)-1>>>e}function U(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function Q(e,r){t[r]=function(r,n,i,o,s,a,A){var l;for(l=0;l<s;++l){var c=t[e](a[A+l-1],i,o+l);a[A+l]=U(r[n+l],c)}}}function R(){this.ud=this.hd=this.jd=0}function j(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function H(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function V(t,e){return H(t+(t-e+.5>>1))}function z(t,e,r){return Math.abs(e-r)-Math.abs(t-r)}function G(t,e,r,n,i,o,s){for(n=o[s-1],r=0;r<i;++r)o[s+r]=n=U(t[e+r],n)}function K(t,e,r,n,i){var o;for(o=0;o<r;++o){var s=t[e+o],a=s>>8&255,A=16711935&(A=(A=16711935&s)+((a<<16)+a));n[i+o]=(4278255360&s)+A>>>0}}function q(t,e){e.jd=255&t,e.hd=t>>8&255,e.ud=t>>16&255}function W(t,e,r,n,i,o){var s;for(s=0;s<n;++s){var a=e[r+s],A=a>>>8,l=a,c=255&(c=(c=a>>>16)+((t.jd<<24>>24)*(A<<24>>24)>>>5));l=255&(l=(l+=(t.hd<<24>>24)*(A<<24>>24)>>>5)+((t.ud<<24>>24)*(c<<24>>24)>>>5)),i[o+s]=(4278255360&a)+(c<<16)+l}}function Y(e,r,n,i,o){t[r]=function(t,e,r,n,s,a,A,l,c){for(n=A;n<l;++n)for(A=0;A<c;++A)s[a++]=o(r[i(t[e++])])},t[e]=function(e,r,s,a,A,l,c){var h=8>>e.b,u=e.Ea,p=e.K[0],f=e.w;if(8>h)for(e=(1<<e.b)-1,f=(1<<h)-1;r<s;++r){var d,g=0;for(d=0;d<u;++d)d&e||(g=i(a[A++])),l[c++]=o(p[g&f]),g>>=h}else t["VP8LMapColor"+n](a,A,p,f,l,c,r,s,u)}}function X(t,e,r,n,i){for(r=e+r;e<r;){var o=t[e++];n[i++]=o>>16&255,n[i++]=o>>8&255,n[i++]=255&o}}function J(t,e,r,n,i){for(r=e+r;e<r;){var o=t[e++];n[i++]=o>>16&255,n[i++]=o>>8&255,n[i++]=255&o,n[i++]=o>>24&255}}function Z(t,e,r,n,i){for(r=e+r;e<r;){var o=(s=t[e++])>>16&240|s>>12&15,s=240&s|s>>28&15;n[i++]=o,n[i++]=s}}function $(t,e,r,n,i){for(r=e+r;e<r;){var o=(s=t[e++])>>16&248|s>>13&7,s=s>>5&224|s>>3&31;n[i++]=o,n[i++]=s}}function tt(t,e,r,n,i){for(r=e+r;e<r;){var o=t[e++];n[i++]=255&o,n[i++]=o>>8&255,n[i++]=o>>16&255}}function et(t,e,r,i,o,s){if(0==s)for(r=e+r;e<r;)F(i,((s=t[e++])[0]>>24|s[1]>>8&65280|s[2]<<8&16711680|s[3]<<24)>>>0),o+=32;else n(i,o,t,e,r)}function rt(e,r){t[r][0]=t[e+"0"],t[r][1]=t[e+"1"],t[r][2]=t[e+"2"],t[r][3]=t[e+"3"],t[r][4]=t[e+"4"],t[r][5]=t[e+"5"],t[r][6]=t[e+"6"],t[r][7]=t[e+"7"],t[r][8]=t[e+"8"],t[r][9]=t[e+"9"],t[r][10]=t[e+"10"],t[r][11]=t[e+"11"],t[r][12]=t[e+"12"],t[r][13]=t[e+"13"],t[r][14]=t[e+"0"],t[r][15]=t[e+"0"]}function nt(t){return t==Hn||t==Vn||t==zn||t==Gn}function it(){this.eb=[],this.size=this.A=this.fb=0}function ot(){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 st(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new ot,this.sd=null}function at(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function At(){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 lt(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ct(t,e){var r=t.T,i=e.ba.f.RGBA,o=i.eb,s=i.fb+t.ka*i.A,a=gi[e.ba.S],A=t.y,l=t.O,c=t.f,h=t.N,u=t.ea,p=t.W,f=e.cc,d=e.dc,g=e.Mc,m=e.Nc,y=t.ka,v=t.ka+t.T,b=t.U,w=b+1>>1;for(0==y?a(A,l,null,null,c,h,u,p,c,h,u,p,o,s,null,null,b):(a(e.ec,e.fc,A,l,f,d,g,m,c,h,u,p,o,s-i.A,o,s,b),++r);y+2<v;y+=2)f=c,d=h,g=u,m=p,h+=t.Rc,p+=t.Rc,s+=2*i.A,a(A,(l+=2*t.fa)-t.fa,A,l,f,d,g,m,c,h,u,p,o,s-i.A,o,s,b);return l+=t.fa,t.j+v<t.o?(n(e.ec,e.fc,A,l,b),n(e.cc,e.dc,c,h,w),n(e.Mc,e.Nc,u,p,w),r--):1&v||a(A,l,null,null,c,h,u,p,c,h,u,p,o,s+i.A,null,null,b),r}function ht(t,r,n){var i=t.F,o=[t.J];if(null!=i){var s=t.U,a=r.ba.S,A=a==Qn||a==zn;r=r.ba.f.RGBA;var l=[0],c=t.ka;l[0]=t.T,t.Kb&&(0==c?--l[0]:(--c,o[0]-=t.width),t.j+t.ka+t.T==t.o&&(l[0]=t.o-t.j-c));var h=r.eb;c=r.fb+c*r.A,t=Cn(i,o[0],t.width,s,l,h,c+(A?0:3),r.A),e(n==l),t&&nt(a)&&xn(h,c,A,s,l,r.A)}return 0}function ut(t){var e=t.ma,r=e.ba.S,n=11>r,i=r==Nn||r==Un||r==Qn||r==Rn||12==r||nt(r);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!Mr(e.Oa,t,i?11:12))return 0;if(i&&nt(r)&&mr(),t.da)alert("todo:use_scaling");else{if(n){if(e.Ib=lt,t.Kb){if(r=t.U+1>>1,e.memory=o(t.U+2*r),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+r,e.Ib=ct,mr()}}else alert("todo:EmitYUV");i&&(e.Jb=ht,n&&dr())}if(n&&!Ti){for(t=0;256>t;++t)ki[t]=89858*(t-128)+_i>>Ci,Mi[t]=-22014*(t-128)+_i,Pi[t]=-45773*(t-128),Li[t]=113618*(t-128)+_i>>Ci;for(t=Ei;t<Si;++t)e=76283*(t-16)+_i>>Ci,Di[t-Ei]=Gt(e,255),Ni[t-Ei]=Gt(e+8>>4,15);Ti=1}return 1}function pt(t){var r=t.ma,n=t.U,i=t.T;return e(!(1&t.ka)),0>=n||0>=i?0:(n=r.Ib(t,r),null!=r.Jb&&r.Jb(t,r,n),r.Dc+=n,1)}function ft(t){t.ma.memory=null}function dt(t,e,r,n){return 47!=v(t,8)?0:(e[0]=v(t,14)+1,r[0]=v(t,14)+1,n[0]=v(t,1),0!=v(t,3)?0:!t.h)}function gt(t,e){if(4>t)return t+1;var r=t-2>>1;return(2+(1&t)<<r)+v(e,r)+1}function mt(t,e){return 120<e?e-120:1<=(r=((r=Jn[e-1])>>4)*t+(8-(15&r)))?r:1;var r}function yt(t,e,r){var n=x(r),i=t[e+=255&n].g-8;return 0<i&&(C(r,r.u+8),n=x(r),e+=t[e].value,e+=n&(1<<i)-1),C(r,r.u+t[e].g),t[e].value}function vt(t,r,n){return n.g+=t.g,n.value+=t.value<<r>>>0,e(8>=n.g),t.g}function bt(t,r,n){var i=t.xc;return e((r=0==i?0:t.vc[t.md*(n>>i)+(r>>i)])<t.Wb),t.Ya[r]}function wt(t,r,i,o){var s=t.ab,a=t.c*r,A=t.C;r=A+r;var l=i,c=o;for(o=t.Ta,i=t.Ua;0<s--;){var h=t.gc[s],u=A,p=r,f=l,d=c,g=(c=o,l=i,h.Ea);switch(e(u<p),e(p<=h.nc),h.hc){case 2:Gr(f,d,(p-u)*g,c,l);break;case 0:var m=u,y=p,v=c,b=l,w=(E=h).Ea;0==m&&(Vr(f,d,null,null,1,v,b),G(f,d+1,0,0,w-1,v,b+1),d+=w,b+=w,++m);for(var x=1<<E.b,B=x-1,C=O(w,E.b),_=E.K,E=E.w+(m>>E.b)*C;m<y;){var S=_,I=E,F=1;for(zr(f,d,v,b-w,1,v,b);F<w;){var T=(F&~B)+x;T>w&&(T=w),(0,Xr[S[I++]>>8&15])(f,d+ +F,v,b+F-w,T-F,v,b+F),F=T}d+=w,b+=w,++m&B||(E+=C)}p!=h.nc&&n(c,l-g,c,l+(p-u-1)*g,g);break;case 1:for(g=f,y=d,w=(f=h.Ea)-(b=f&~(v=(d=1<<h.b)-1)),m=O(f,h.b),x=h.K,h=h.w+(u>>h.b)*m;u<p;){for(B=x,C=h,_=new R,E=y+b,S=y+f;y<E;)q(B[C++],_),Jr(_,g,y,d,c,l),y+=d,l+=d;y<S&&(q(B[C++],_),Jr(_,g,y,w,c,l),y+=w,l+=w),++u&v||(h+=m)}break;case 3:if(f==c&&d==l&&0<h.b){for(y=c,f=g=l+(p-u)*g-(b=(p-u)*O(h.Ea,h.b)),d=c,v=l,m=[],b=(w=b)-1;0<=b;--b)m[b]=d[v+b];for(b=w-1;0<=b;--b)y[f+b]=m[b];Kr(h,u,p,c,g,c,l)}else Kr(h,u,p,f,d,c,l)}l=o,c=i}c!=i&&n(o,i,l,c,a)}function xt(t,r){var n=t.V,i=t.Ba+t.c*t.C,o=r-t.C;if(e(r<=t.l.o),e(16>=o),0<o){var s=t.l,a=t.Ta,A=t.Ua,l=s.width;if(wt(t,o,n,i),o=A=[A],e((n=t.C)<(i=r)),e(s.v<s.va),i>s.o&&(i=s.o),n<s.j){var c=s.j-n;n=s.j,o[0]+=c*l}if(n>=i?n=0:(o[0]+=4*s.v,s.ka=n-s.j,s.U=s.va-s.v,s.T=i-n,n=1),n){if(A=A[0],11>(n=t.ca).S){var h=n.f.RGBA,u=(i=n.S,o=s.U,s=s.T,c=h.eb,h.A),p=s;for(h=h.fb+t.Ma*h.A;0<p--;){var f=a,d=A,g=o,m=c,y=h;switch(i){case Dn:Zr(f,d,g,m,y);break;case Nn:$r(f,d,g,m,y);break;case Hn:$r(f,d,g,m,y),xn(m,y,0,g,1,0);break;case On:rn(f,d,g,m,y);break;case Un:et(f,d,g,m,y,1);break;case Vn:et(f,d,g,m,y,1),xn(m,y,0,g,1,0);break;case Qn:et(f,d,g,m,y,0);break;case zn:et(f,d,g,m,y,0),xn(m,y,1,g,1,0);break;case Rn:tn(f,d,g,m,y);break;case Gn:tn(f,d,g,m,y),Bn(m,y,g,1,0);break;case jn:en(f,d,g,m,y);break;default:e(0)}A+=l,h+=u}t.Ma+=s}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=n.height)}}t.C=r,e(t.C<=t.i)}function Bt(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var r=t.Ya[e].G,n=t.Ya[e].H;if(0<r[1][n[1]+0].g||0<r[2][n[2]+0].g||0<r[3][n[3]+0].g)return 0}return 1}function Ct(t,r,n,i,o,s){if(0!=t.Z){var a=t.qd,A=t.rd;for(e(null!=di[t.Z]);r<n;++r)di[t.Z](a,A,i,o,i,o,s),a=i,A=o,o+=s;t.qd=a,t.rd=A}}function _t(t,r){var n=t.l.ma,i=0==n.Z||1==n.Z?t.l.j:t.C;if(i=t.C<i?i:t.C,e(r<=t.l.o),r>i){var o=t.l.width,s=n.ca,a=n.tb+o*i,A=t.V,l=t.Ba+t.c*i,c=t.gc;e(1==t.ab),e(3==c[0].hc),Wr(c[0],i,r,A,l,s,a),Ct(n,i,r,s,a,o)}t.C=t.Ma=r}function Et(t,r,n,i,o,s,a){var A=t.$/i,l=t.$%i,c=t.m,h=t.s,u=n+t.$,p=u;o=n+i*o;var f=n+i*s,d=280+h.ua,g=t.Pb?A:16777216,m=0<h.ua?h.Wa:null,y=h.wc,v=u<f?bt(h,l,A):null;e(t.C<s),e(f<=o);var b=!1;t:for(;;){for(;b||u<f;){var w=0;if(A>=g){var E=u-n;e((g=t).Pb),g.wd=g.m,g.xd=E,0<g.s.ua&&M(g.s.Wa,g.s.vb),g=A+$n}if(l&y||(v=bt(h,l,A)),e(null!=v),v.Qb&&(r[u]=v.qb,b=!0),!b)if(_(c),v.jc){w=c,E=r;var S=u,I=v.pd[x(w)&Or-1];e(v.jc),256>I.g?(C(w,w.u+I.g),E[S]=I.value,w=0):(C(w,w.u+I.g-256),e(256<=I.value),w=I.value),0==w&&(b=!0)}else w=yt(v.G[0],v.H[0],c);if(c.h)break;if(b||256>w){if(!b)if(v.nd)r[u]=(v.qb|w<<8)>>>0;else{if(_(c),b=yt(v.G[1],v.H[1],c),_(c),E=yt(v.G[2],v.H[2],c),S=yt(v.G[3],v.H[3],c),c.h)break;r[u]=(S<<24|b<<16|w<<8|E)>>>0}if(b=!1,++u,++l>=i&&(l=0,++A,null!=a&&A<=s&&!(A%16)&&a(t,A),null!=m))for(;p<u;)w=r[p++],m.X[(506832829*w&4294967295)>>>m.Mb]=w}else if(280>w){if(w=gt(w-256,c),E=yt(v.G[4],v.H[4],c),_(c),E=mt(i,E=gt(E,c)),c.h)break;if(u-n<E||o-u<w)break t;for(S=0;S<w;++S)r[u+S]=r[u+S-E];for(u+=w,l+=w;l>=i;)l-=i,++A,null!=a&&A<=s&&!(A%16)&&a(t,A);if(e(u<=o),l&y&&(v=bt(h,l,A)),null!=m)for(;p<u;)w=r[p++],m.X[(506832829*w&4294967295)>>>m.Mb]=w}else{if(!(w<d))break t;for(b=w-280,e(null!=m);p<u;)w=r[p++],m.X[(506832829*w&4294967295)>>>m.Mb]=w;w=u,e(!(b>>>(E=m).Xa)),r[w]=E.X[b],b=!0}b||e(c.h==B(c))}if(t.Pb&&c.h&&u<o)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&M(t.s.vb,t.s.Wa);else{if(c.h)break t;null!=a&&a(t,A>s?s:A),t.a=0,t.$=u-n}return 1}return t.a=3,0}function St(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var r=t.Wa;null!=r&&(r.X=null),t.vb=null,e(null!=t)}function It(){var e=new or;return null==e?null:(e.a=0,e.xb=fi,rt("Predictor","VP8LPredictors"),rt("Predictor","VP8LPredictors_C"),rt("PredictorAdd","VP8LPredictorsAdd"),rt("PredictorAdd","VP8LPredictorsAdd_C"),Gr=K,Jr=W,Zr=X,$r=J,tn=Z,en=$,rn=tt,t.VP8LMapColor32b=qr,t.VP8LMapColor8b=Yr,e)}function Ft(t,r,n,a,A){var l=1,u=[t],f=[r],d=a.m,g=a.s,m=null,y=0;t:for(;;){if(n)for(;l&&v(d,1);){var b=u,w=f,B=a,E=1,S=B.m,I=B.gc[B.ab],F=v(S,2);if(B.Oc&1<<F)l=0;else{switch(B.Oc|=1<<F,I.hc=F,I.Ea=b[0],I.nc=w[0],I.K=[null],++B.ab,e(4>=B.ab),F){case 0:case 1:I.b=v(S,3)+2,E=Ft(O(I.Ea,I.b),O(I.nc,I.b),0,B,I.K),I.K=I.K[0];break;case 3:var T,k=v(S,8)+1,L=16<k?0:4<k?1:2<k?2:3;if(b[0]=O(I.Ea,L),I.b=L,T=E=Ft(k,1,0,B,I.K)){var M,D=k,N=I,Q=1<<(8>>N.b),R=o(Q);if(null==R)T=0;else{var j=N.K[0],H=N.w;for(R[0]=N.K[0][0],M=1;M<1*D;++M)R[M]=U(j[H+M],R[M-1]);for(;M<4*Q;++M)R[M]=0;N.K[0]=null,N.K[0]=R,T=1}}E=T;break;case 2:break;default:e(0)}l=E}}if(u=u[0],f=f[0],l&&v(d,1)&&!(l=1<=(y=v(d,4))&&11>=y)){a.a=3;break t}var V;if(V=l)e:{var z,G,K,q=a,W=u,Y=f,X=y,J=n,Z=q.m,$=q.s,tt=[null],et=1,rt=0,nt=Zn[X];r:for(;;){if(J&&v(Z,1)){var it=v(Z,3)+2,ot=O(W,it),st=O(Y,it),at=ot*st;if(!Ft(ot,st,0,q,tt))break r;for(tt=tt[0],$.xc=it,z=0;z<at;++z){var At=tt[z]>>8&65535;tt[z]=At,At>=et&&(et=At+1)}}if(Z.h)break r;for(G=0;5>G;++G){var lt=Wn[G];!G&&0<X&&(lt+=1<<X),rt<lt&&(rt=lt)}var ct=s(et*nt,h),ht=et,ut=s(ht,p);if(null==ut)var pt=null;else e(65536>=ht),pt=ut;var ft=o(rt);if(null==pt||null==ft||null==ct){q.a=1;break r}var dt=ct;for(z=K=0;z<et;++z){var gt=pt[z],mt=gt.G,yt=gt.H,bt=0,wt=1,xt=0;for(G=0;5>G;++G){lt=Wn[G],mt[G]=dt,yt[G]=K,!G&&0<X&&(lt+=1<<X);n:{var Bt,Ct=lt,_t=q,It=ft,Tt=dt,kt=K,Lt=0,Pt=_t.m,Mt=v(Pt,1);if(i(It,0,0,Ct),Mt){var Dt=v(Pt,1)+1,Nt=v(Pt,1),Ot=v(Pt,0==Nt?1:8);It[Ot]=1,2==Dt&&(It[Ot=v(Pt,8)]=1);var Ut=1}else{var Qt=o(19),Rt=v(Pt,4)+4;if(19<Rt){_t.a=3;var jt=0;break n}for(Bt=0;Bt<Rt;++Bt)Qt[Xn[Bt]]=v(Pt,3);var Ht=void 0,Vt=void 0,zt=_t,Gt=Qt,Kt=Ct,qt=It,Wt=0,Yt=zt.m,Xt=8,Jt=s(128,h);i:for(;c(Jt,0,7,Gt,19);){if(v(Yt,1)){var Zt=2+2*v(Yt,3);if((Ht=2+v(Yt,Zt))>Kt)break i}else Ht=Kt;for(Vt=0;Vt<Kt&&Ht--;){_(Yt);var $t=Jt[0+(127&x(Yt))];C(Yt,Yt.u+$t.g);var te=$t.value;if(16>te)qt[Vt++]=te,0!=te&&(Xt=te);else{var ee=16==te,re=te-16,ne=qn[re],ie=v(Yt,Kn[re])+ne;if(Vt+ie>Kt)break i;for(var oe=ee?Xt:0;0<ie--;)qt[Vt++]=oe}}Wt=1;break i}Wt||(zt.a=3),Ut=Wt}(Ut=Ut&&!Pt.h)&&(Lt=c(Tt,kt,8,It,Ct)),Ut&&0!=Lt?jt=Lt:(_t.a=3,jt=0)}if(0==jt)break r;if(wt&&1==Yn[G]&&(wt=0==dt[K].g),bt+=dt[K].g,K+=jt,3>=G){var se,ae=ft[0];for(se=1;se<lt;++se)ft[se]>ae&&(ae=ft[se]);xt+=ae}}if(gt.nd=wt,gt.Qb=0,wt&&(gt.qb=(mt[3][yt[3]+0].value<<24|mt[1][yt[1]+0].value<<16|mt[2][yt[2]+0].value)>>>0,0==bt&&256>mt[0][yt[0]+0].value&&(gt.Qb=1,gt.qb+=mt[0][yt[0]+0].value<<8)),gt.jc=!gt.Qb&&6>xt,gt.jc){var Ae,le=gt;for(Ae=0;Ae<Or;++Ae){var ce=Ae,he=le.pd[ce],ue=le.G[0][le.H[0]+ce];256<=ue.value?(he.g=ue.g+256,he.value=ue.value):(he.g=0,he.value=0,ce>>=vt(ue,8,he),ce>>=vt(le.G[1][le.H[1]+ce],16,he),ce>>=vt(le.G[2][le.H[2]+ce],0,he),vt(le.G[3][le.H[3]+ce],24,he))}}}$.vc=tt,$.Wb=et,$.Ya=pt,$.yc=ct,V=1;break e}V=0}if(!(l=V)){a.a=3;break t}if(0<y){if(g.ua=1<<y,!P(g.Wa,y)){a.a=1,l=0;break t}}else g.ua=0;var pe=a,fe=u,de=f,ge=pe.s,me=ge.xc;if(pe.c=fe,pe.i=de,ge.md=O(fe,me),ge.wc=0==me?-1:(1<<me)-1,n){a.xb=pi;break t}if(null==(m=o(u*f))){a.a=1,l=0;break t}l=(l=Et(a,m,0,u,f,f,null))&&!d.h;break t}return l?(null!=A?A[0]=m:(e(null==m),e(n)),a.$=0,n||St(g)):St(g),l}function Tt(t,r){var n=t.c*t.i,i=n+r+16*r;return e(t.c<=r),t.V=o(i),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+n+r,1)}function kt(t,r){var n=t.C,i=r-n,o=t.V,s=t.Ba+t.c*n;for(e(r<=t.l.o);0<i;){var a=16<i?16:i,A=t.l.ma,l=t.l.width,c=l*a,h=A.ca,u=A.tb+l*n,p=t.Ta,f=t.Ua;wt(t,a,o,s),_n(p,f,h,u,c),Ct(A,n,n+a,h,u,l),i-=a,o+=a*t.c,n+=a}e(n==r),t.C=t.Ma=r}function Lt(){this.ub=this.yd=this.td=this.Rb=0}function Pt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Mt(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Dt(){this.Yb=function(){var t=[];return function t(e,r,n){for(var i=n[r],o=0;o<i&&(e.push(n.length>r+1?[]:0),!(n.length<r+1));o++)t(e[o],r+1,n)}(t,0,[3,11]),t}()}function Nt(){this.jb=o(3),this.Wc=a([4,8],Dt),this.Xc=a([4,17],Dt)}function Ot(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Ut(){this.ld=this.La=this.dd=this.tc=0}function Qt(){this.Na=this.la=0}function Rt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function jt(){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 Ht(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ut),this.Y=0,this.ya=Array(new jt),this.aa=0,this.l=new Kt}function Vt(){this.y=o(16),this.f=o(8),this.ea=o(8)}function zt(){this.cb=this.a=0,this.sc="",this.m=new b,this.Od=new Lt,this.Kc=new Pt,this.ed=new Ot,this.Qa=new Mt,this.Ic=this.$c=this.Aa=0,this.D=new Ht,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,Rt),this.Pa=new Nt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Vt),this.Hd=0,this.rb=Array(new Qt),this.sb=0,this.wa=Array(new Ut),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 jt),this.L=this.aa=0,this.gd=a([4,2],Ut),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 Gt(t,e){return 0>t?0:t>e?e:t}function Kt(){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 qt(){var t=new zt;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ri||(ri=Jt)),t}function Wt(t,e,r){return 0==t.a&&(t.a=e,t.sc=r,t.cb=0),0}function Yt(t,e,r){return 3<=r&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Xt(t,r){if(null==t)return 0;if(t.a=0,t.sc="OK",null==r)return Wt(t,2,"null VP8Io passed to VP8GetHeaders()");var n=r.data,o=r.w,s=r.ha;if(4>s)return Wt(t,7,"Truncated header.");var a=n[o+0]|n[o+1]<<8|n[o+2]<<16,A=t.Od;if(A.Rb=!(1&a),A.td=a>>1&7,A.yd=a>>4&1,A.ub=a>>5,3<A.td)return Wt(t,3,"Incorrect keyframe parameters.");if(!A.yd)return Wt(t,4,"Frame not displayable.");o+=3,s-=3;var l=t.Kc;if(A.Rb){if(7>s)return Wt(t,7,"cannot parse picture header");if(!Yt(n,o,s))return Wt(t,3,"Bad code word");l.c=16383&(n[o+4]<<8|n[o+3]),l.Td=n[o+4]>>6,l.i=16383&(n[o+6]<<8|n[o+5]),l.Ud=n[o+6]>>6,o+=7,s-=7,t.za=l.c+15>>4,t.Ub=l.i+15>>4,r.width=l.c,r.height=l.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,i((a=t.Pa).jb,0,255,a.jb.length),e(null!=(a=t.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(A.ub>s)return Wt(t,7,"bad partition length");f(a=t.m,n,o,A.ub),o+=A.ub,s-=A.ub,A.Rb&&(l.Ld=S(a),l.Kd=S(a)),l=t.Qa;var c,h=t.Pa;if(e(null!=a),e(null!=l),l.Cb=S(a),l.Cb){if(l.Bb=S(a),S(a)){for(l.Fb=S(a),c=0;4>c;++c)l.Zb[c]=S(a)?g(a,7):0;for(c=0;4>c;++c)l.Lb[c]=S(a)?g(a,6):0}if(l.Bb)for(c=0;3>c;++c)h.jb[c]=S(a)?d(a,8):255}else l.Bb=0;if(a.Ka)return Wt(t,3,"cannot parse segment header");if((l=t.ed).zd=S(a),l.Tb=d(a,6),l.wb=d(a,3),l.Pc=S(a),l.Pc&&S(a)){for(h=0;4>h;++h)S(a)&&(l.vd[h]=g(a,6));for(h=0;4>h;++h)S(a)&&(l.od[h]=g(a,6))}if(t.L=0==l.Tb?0:l.zd?1:2,a.Ka)return Wt(t,3,"cannot parse filter header");var u=s;if(s=c=o,o=c+u,l=u,t.Xb=(1<<d(t.m,2))-1,u<3*(h=t.Xb))n=7;else{for(c+=3*h,l-=3*h,u=0;u<h;++u){var p=n[s+0]|n[s+1]<<8|n[s+2]<<16;p>l&&(p=l),f(t.Jc[+u],n,c,p),c+=p,l-=p,s+=3}f(t.Jc[+h],n,c,l),n=c<o?0:5}if(0!=n)return Wt(t,n,"cannot parse partitions");for(n=d(c=t.m,7),s=S(c)?g(c,4):0,o=S(c)?g(c,4):0,l=S(c)?g(c,4):0,h=S(c)?g(c,4):0,c=S(c)?g(c,4):0,u=t.Qa,p=0;4>p;++p){if(u.Cb){var m=u.Zb[p];u.Fb||(m+=n)}else{if(0<p){t.pb[p]=t.pb[0];continue}m=n}var y=t.pb[p];y.Sc[0]=ti[Gt(m+s,127)],y.Sc[1]=ei[Gt(m+0,127)],y.Eb[0]=2*ti[Gt(m+o,127)],y.Eb[1]=101581*ei[Gt(m+l,127)]>>16,8>y.Eb[1]&&(y.Eb[1]=8),y.Qc[0]=ti[Gt(m+h,117)],y.Qc[1]=ei[Gt(m+c,127)],y.lc=m+c}if(!A.Rb)return Wt(t,4,"Not a key frame.");for(S(a),A=t.Pa,n=0;4>n;++n){for(s=0;8>s;++s)for(o=0;3>o;++o)for(l=0;11>l;++l)h=I(a,Ai[n][s][o][l])?d(a,8):si[n][s][o][l],A.Wc[n][s].Yb[o][l]=h;for(s=0;17>s;++s)A.Xc[n][s]=A.Wc[n][li[s]]}return t.kc=S(a),t.kc&&(t.Bd=d(a,8)),t.cb=1}function Jt(t,e,r,n,i,o,s){var a=e[i].Yb[r];for(r=0;16>i;++i){if(!I(t,a[r+0]))return i;for(;!I(t,a[r+1]);)if(a=e[++i].Yb[0],r=0,16==i)return 16;var A=e[i+1].Yb;if(I(t,a[r+2])){var l=t,c=0;if(I(l,(u=a)[(h=r)+3]))if(I(l,u[h+6])){for(a=0,h=2*(c=I(l,u[h+8]))+(u=I(l,u[h+9+c])),c=0,u=ni[h];u[a];++a)c+=c+I(l,u[a]);c+=3+(8<<h)}else I(l,u[h+7])?(c=7+2*I(l,165),c+=I(l,145)):c=5+I(l,159);else c=I(l,u[h+4])?3+I(l,u[h+5]):2;a=A[2]}else c=1,a=A[1];A=s+ii[i],0>(l=t).b&&E(l);var h,u=l.b,p=(h=l.Ca>>1)-(l.I>>u)>>31;--l.b,l.Ca+=p,l.Ca|=1,l.I-=(h+1&p)<<u,o[A]=((c^p)-p)*n[(0<i)+0]}return 16}function Zt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,i(t.zc,0,0,t.zc.length),t.ja=0}function $t(t,e,r,n,i){i=t[e+r+32*n]+(i>>3),t[e+r+32*n]=-256&i?0>i?0:255:i}function te(t,e,r,n,i,o){$t(t,e,0,r,n+i),$t(t,e,1,r,n+o),$t(t,e,2,r,n-o),$t(t,e,3,r,n-i)}function ee(t){return(20091*t>>16)+t}function re(t,e,r,n){var i,s=0,a=o(16);for(i=0;4>i;++i){var A=t[e+0]+t[e+8],l=t[e+0]-t[e+8],c=(35468*t[e+4]>>16)-ee(t[e+12]),h=ee(t[e+4])+(35468*t[e+12]>>16);a[s+0]=A+h,a[s+1]=l+c,a[s+2]=l-c,a[s+3]=A-h,s+=4,e++}for(i=s=0;4>i;++i)A=(t=a[s+0]+4)+a[s+8],l=t-a[s+8],c=(35468*a[s+4]>>16)-ee(a[s+12]),$t(r,n,0,0,A+(h=ee(a[s+4])+(35468*a[s+12]>>16))),$t(r,n,1,0,l+c),$t(r,n,2,0,l-c),$t(r,n,3,0,A-h),s++,n+=32}function ne(t,e,r,n){var i=t[e+0]+4,o=35468*t[e+4]>>16,s=ee(t[e+4]),a=35468*t[e+1]>>16;te(r,n,0,i+s,t=ee(t[e+1]),a),te(r,n,1,i+o,t,a),te(r,n,2,i-o,t,a),te(r,n,3,i-s,t,a)}function ie(t,e,r,n,i){re(t,e,r,n),i&&re(t,e+16,r,n+4)}function oe(t,e,r,n){on(t,e+0,r,n,1),on(t,e+32,r,n+128,1)}function se(t,e,r,n){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)$t(r,n,e,i,t)}function ae(t,e,r,n){t[e+0]&&An(t,e+0,r,n),t[e+16]&&An(t,e+16,r,n+4),t[e+32]&&An(t,e+32,r,n+128),t[e+48]&&An(t,e+48,r,n+128+4)}function Ae(t,e,r,n){var i,s=o(16);for(i=0;4>i;++i){var a=t[e+0+i]+t[e+12+i],A=t[e+4+i]+t[e+8+i],l=t[e+4+i]-t[e+8+i],c=t[e+0+i]-t[e+12+i];s[0+i]=a+A,s[8+i]=a-A,s[4+i]=c+l,s[12+i]=c-l}for(i=0;4>i;++i)a=(t=s[0+4*i]+3)+s[3+4*i],A=s[1+4*i]+s[2+4*i],l=s[1+4*i]-s[2+4*i],c=t-s[3+4*i],r[n+0]=a+A>>3,r[n+16]=c+l>>3,r[n+32]=a-A>>3,r[n+48]=c-l>>3,n+=64}function le(t,e,r){var n,i=e-32,o=Pn,s=255-t[i-1];for(n=0;n<r;++n){var a,A=o,l=s+t[e-1];for(a=0;a<r;++a)t[e+a]=A[l+t[i+a]];e+=32}}function ce(t,e){le(t,e,4)}function he(t,e){le(t,e,8)}function ue(t,e){le(t,e,16)}function pe(t,e){var r;for(r=0;16>r;++r)n(t,e+32*r,t,e-32,16)}function fe(t,e){var r;for(r=16;0<r;--r)i(t,e,t[e-1],16),e+=32}function de(t,e,r){var n;for(n=0;16>n;++n)i(e,r+32*n,t,16)}function ge(t,e){var r,n=16;for(r=0;16>r;++r)n+=t[e-1+32*r]+t[e+r-32];de(n>>5,t,e)}function me(t,e){var r,n=8;for(r=0;16>r;++r)n+=t[e-1+32*r];de(n>>4,t,e)}function ye(t,e){var r,n=8;for(r=0;16>r;++r)n+=t[e+r-32];de(n>>4,t,e)}function ve(t,e){de(128,t,e)}function be(t,e,r){return t+2*e+r+2>>2}function we(t,e){var r,i=e-32;for(i=new Uint8Array([be(t[i-1],t[i+0],t[i+1]),be(t[i+0],t[i+1],t[i+2]),be(t[i+1],t[i+2],t[i+3]),be(t[i+2],t[i+3],t[i+4])]),r=0;4>r;++r)n(t,e+32*r,i,0,i.length)}function xe(t,e){var r=t[e-1],n=t[e-1+32],i=t[e-1+64],o=t[e-1+96];F(t,e+0,16843009*be(t[e-1-32],r,n)),F(t,e+32,16843009*be(r,n,i)),F(t,e+64,16843009*be(n,i,o)),F(t,e+96,16843009*be(i,o,o))}function Be(t,e){var r,n=4;for(r=0;4>r;++r)n+=t[e+r-32]+t[e-1+32*r];for(n>>=3,r=0;4>r;++r)i(t,e+32*r,n,4)}function Ce(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],o=t[e-1-32],s=t[e+0-32],a=t[e+1-32],A=t[e+2-32],l=t[e+3-32];t[e+0+96]=be(n,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=be(r,n,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=be(o,r,n),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=be(s,o,r),t[e+3+64]=t[e+2+32]=t[e+1+0]=be(a,s,o),t[e+3+32]=t[e+2+0]=be(A,a,s),t[e+3+0]=be(l,A,a)}function _e(t,e){var r=t[e+1-32],n=t[e+2-32],i=t[e+3-32],o=t[e+4-32],s=t[e+5-32],a=t[e+6-32],A=t[e+7-32];t[e+0+0]=be(t[e+0-32],r,n),t[e+1+0]=t[e+0+32]=be(r,n,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=be(n,i,o),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=be(i,o,s),t[e+3+32]=t[e+2+64]=t[e+1+96]=be(o,s,a),t[e+3+64]=t[e+2+96]=be(s,a,A),t[e+3+96]=be(a,A,A)}function Ee(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],o=t[e-1-32],s=t[e+0-32],a=t[e+1-32],A=t[e+2-32],l=t[e+3-32];t[e+0+0]=t[e+1+64]=o+s+1>>1,t[e+1+0]=t[e+2+64]=s+a+1>>1,t[e+2+0]=t[e+3+64]=a+A+1>>1,t[e+3+0]=A+l+1>>1,t[e+0+96]=be(i,n,r),t[e+0+64]=be(n,r,o),t[e+0+32]=t[e+1+96]=be(r,o,s),t[e+1+32]=t[e+2+96]=be(o,s,a),t[e+2+32]=t[e+3+96]=be(s,a,A),t[e+3+32]=be(a,A,l)}function Se(t,e){var r=t[e+0-32],n=t[e+1-32],i=t[e+2-32],o=t[e+3-32],s=t[e+4-32],a=t[e+5-32],A=t[e+6-32],l=t[e+7-32];t[e+0+0]=r+n+1>>1,t[e+1+0]=t[e+0+64]=n+i+1>>1,t[e+2+0]=t[e+1+64]=i+o+1>>1,t[e+3+0]=t[e+2+64]=o+s+1>>1,t[e+0+32]=be(r,n,i),t[e+1+32]=t[e+0+96]=be(n,i,o),t[e+2+32]=t[e+1+96]=be(i,o,s),t[e+3+32]=t[e+2+96]=be(o,s,a),t[e+3+64]=be(s,a,A),t[e+3+96]=be(a,A,l)}function Ie(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],o=t[e-1+96];t[e+0+0]=r+n+1>>1,t[e+2+0]=t[e+0+32]=n+i+1>>1,t[e+2+32]=t[e+0+64]=i+o+1>>1,t[e+1+0]=be(r,n,i),t[e+3+0]=t[e+1+32]=be(n,i,o),t[e+3+32]=t[e+1+64]=be(i,o,o),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=o}function Fe(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],o=t[e-1+96],s=t[e-1-32],a=t[e+0-32],A=t[e+1-32],l=t[e+2-32];t[e+0+0]=t[e+2+32]=r+s+1>>1,t[e+0+32]=t[e+2+64]=n+r+1>>1,t[e+0+64]=t[e+2+96]=i+n+1>>1,t[e+0+96]=o+i+1>>1,t[e+3+0]=be(a,A,l),t[e+2+0]=be(s,a,A),t[e+1+0]=t[e+3+32]=be(r,s,a),t[e+1+32]=t[e+3+64]=be(n,r,s),t[e+1+64]=t[e+3+96]=be(i,n,r),t[e+1+96]=be(o,i,n)}function Te(t,e){var r;for(r=0;8>r;++r)n(t,e+32*r,t,e-32,8)}function ke(t,e){var r;for(r=0;8>r;++r)i(t,e,t[e-1],8),e+=32}function Le(t,e,r){var n;for(n=0;8>n;++n)i(e,r+32*n,t,8)}function Pe(t,e){var r,n=8;for(r=0;8>r;++r)n+=t[e+r-32]+t[e-1+32*r];Le(n>>4,t,e)}function Me(t,e){var r,n=4;for(r=0;8>r;++r)n+=t[e+r-32];Le(n>>3,t,e)}function De(t,e){var r,n=4;for(r=0;8>r;++r)n+=t[e-1+32*r];Le(n>>3,t,e)}function Ne(t,e){Le(128,t,e)}function Oe(t,e,r){var n=t[e-r],i=t[e+0],o=3*(i-n)+kn[1020+t[e-2*r]-t[e+r]],s=Ln[112+(o+4>>3)];t[e-r]=Pn[255+n+Ln[112+(o+3>>3)]],t[e+0]=Pn[255+i-s]}function Ue(t,e,r,n){var i=t[e+0],o=t[e+r];return Mn[255+t[e-2*r]-t[e-r]]>n||Mn[255+o-i]>n}function Qe(t,e,r,n){return 4*Mn[255+t[e-r]-t[e+0]]+Mn[255+t[e-2*r]-t[e+r]]<=n}function Re(t,e,r,n,i){var o=t[e-3*r],s=t[e-2*r],a=t[e-r],A=t[e+0],l=t[e+r],c=t[e+2*r],h=t[e+3*r];return 4*Mn[255+a-A]+Mn[255+s-l]>n?0:Mn[255+t[e-4*r]-o]<=i&&Mn[255+o-s]<=i&&Mn[255+s-a]<=i&&Mn[255+h-c]<=i&&Mn[255+c-l]<=i&&Mn[255+l-A]<=i}function je(t,e,r,n){var i=2*n+1;for(n=0;16>n;++n)Qe(t,e+n,r,i)&&Oe(t,e+n,r)}function He(t,e,r,n){var i=2*n+1;for(n=0;16>n;++n)Qe(t,e+n*r,1,i)&&Oe(t,e+n*r,1)}function Ve(t,e,r,n){var i;for(i=3;0<i;--i)je(t,e+=4*r,r,n)}function ze(t,e,r,n){var i;for(i=3;0<i;--i)He(t,e+=4,r,n)}function Ge(t,e,r,n,i,o,s,a){for(o=2*o+1;0<i--;){if(Re(t,e,r,o,s))if(Ue(t,e,r,a))Oe(t,e,r);else{var A=t,l=e,c=r,h=A[l-2*c],u=A[l-c],p=A[l+0],f=A[l+c],d=A[l+2*c],g=27*(y=kn[1020+3*(p-u)+kn[1020+h-f]])+63>>7,m=18*y+63>>7,y=9*y+63>>7;A[l-3*c]=Pn[255+A[l-3*c]+y],A[l-2*c]=Pn[255+h+m],A[l-c]=Pn[255+u+g],A[l+0]=Pn[255+p-g],A[l+c]=Pn[255+f-m],A[l+2*c]=Pn[255+d-y]}e+=n}}function Ke(t,e,r,n,i,o,s,a){for(o=2*o+1;0<i--;){if(Re(t,e,r,o,s))if(Ue(t,e,r,a))Oe(t,e,r);else{var A=t,l=e,c=r,h=A[l-c],u=A[l+0],p=A[l+c],f=Ln[112+(4+(d=3*(u-h))>>3)],d=Ln[112+(d+3>>3)],g=f+1>>1;A[l-2*c]=Pn[255+A[l-2*c]+g],A[l-c]=Pn[255+h+d],A[l+0]=Pn[255+u-f],A[l+c]=Pn[255+p-g]}e+=n}}function qe(t,e,r,n,i,o){Ge(t,e,r,1,16,n,i,o)}function We(t,e,r,n,i,o){Ge(t,e,1,r,16,n,i,o)}function Ye(t,e,r,n,i,o){var s;for(s=3;0<s;--s)Ke(t,e+=4*r,r,1,16,n,i,o)}function Xe(t,e,r,n,i,o){var s;for(s=3;0<s;--s)Ke(t,e+=4,1,r,16,n,i,o)}function Je(t,e,r,n,i,o,s,a){Ge(t,e,i,1,8,o,s,a),Ge(r,n,i,1,8,o,s,a)}function Ze(t,e,r,n,i,o,s,a){Ge(t,e,1,i,8,o,s,a),Ge(r,n,1,i,8,o,s,a)}function $e(t,e,r,n,i,o,s,a){Ke(t,e+4*i,i,1,8,o,s,a),Ke(r,n+4*i,i,1,8,o,s,a)}function tr(t,e,r,n,i,o,s,a){Ke(t,e+4,1,i,8,o,s,a),Ke(r,n+4,1,i,8,o,s,a)}function er(){this.ba=new st,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new At,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rr(){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 nr(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ir(){this.ua=0,this.Wa=new D,this.vb=new D,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new p,this.yc=new h}function or(){this.xb=this.a=0,this.l=new Kt,this.ca=new st,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new w,this.Pb=0,this.wd=new w,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ir,this.ab=0,this.gc=s(4,nr),this.Oc=0}function sr(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Kt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ar(t,e,r,n,i,o,s){for(t=null==t?0:t[e+0],e=0;e<s;++e)i[o+e]=t+r[n+e]&255,t=i[o+e]}function Ar(t,e,r,n,i,o,s){var a;if(null==t)ar(null,null,r,n,i,o,s);else for(a=0;a<s;++a)i[o+a]=t[e+a]+r[n+a]&255}function lr(t,e,r,n,i,o,s){if(null==t)ar(null,null,r,n,i,o,s);else{var a,A=t[e+0],l=A,c=A;for(a=0;a<s;++a)l=c+(A=t[e+a])-l,c=r[n+a]+(-256&l?0>l?0:255:l)&255,l=A,i[o+a]=c}}function cr(t,r,i,s){var a=r.width,A=r.o;if(e(null!=t&&null!=r),0>i||0>=s||i+s>A)return null;if(!t.Cc){if(null==t.ga){var l;if(t.ga=new sr,(l=null==t.ga)||(l=r.width*r.o,e(0==t.Gb.length),t.Gb=o(l),t.Uc=0,null==t.Gb?l=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,l=1),l=!l),!l){l=t.ga;var c=t.Fa,h=t.P,u=t.qc,p=t.mb,f=t.nb,d=h+1,g=u-1,y=l.l;if(e(null!=c&&null!=p&&null!=r),di[0]=null,di[1]=ar,di[2]=Ar,di[3]=lr,l.ca=p,l.tb=f,l.c=r.width,l.i=r.height,e(0<l.c&&0<l.i),1>=u)r=0;else if(l.$a=3&c[h+0],l.Z=c[h+0]>>2&3,l.Lc=c[h+0]>>4&3,h=c[h+0]>>6&3,0>l.$a||1<l.$a||4<=l.Z||1<l.Lc||h)r=0;else if(y.put=pt,y.ac=ut,y.bc=ft,y.ma=l,y.width=r.width,y.height=r.height,y.Da=r.Da,y.v=r.v,y.va=r.va,y.j=r.j,y.o=r.o,l.$a)t:{e(1==l.$a),r=It();e:for(;;){if(null==r){r=0;break t}if(e(null!=l),l.mc=r,r.c=l.c,r.i=l.i,r.l=l.l,r.l.ma=l,r.l.width=l.c,r.l.height=l.i,r.a=0,m(r.m,c,d,g),!Ft(l.c,l.i,1,r,null))break e;if(1==r.ab&&3==r.gc[0].hc&&Bt(r.s)?(l.ic=1,c=r.c*r.i,r.Ta=null,r.Ua=0,r.V=o(c),r.Ba=0,null==r.V?(r.a=1,r=0):r=1):(l.ic=0,r=Tt(r,l.c)),!r)break e;r=1;break t}l.mc=null,r=0}else r=g>=l.c*l.i;l=!r}if(l)return null;1!=t.ga.Lc?t.Ga=0:s=A-i}e(null!=t.ga),e(i+s<=A);t:{if(r=(c=t.ga).c,A=c.l.o,0==c.$a){if(d=t.rc,g=t.Vc,y=t.Fa,h=t.P+1+i*r,u=t.mb,p=t.nb+i*r,e(h<=t.P+t.qc),0!=c.Z)for(e(null!=di[c.Z]),l=0;l<s;++l)di[c.Z](d,g,y,h,u,p,r),d=u,g=p,p+=r,h+=r;else for(l=0;l<s;++l)n(u,p,y,h,r),d=u,g=p,p+=r,h+=r;t.rc=d,t.Vc=g}else{if(e(null!=c.mc),r=i+s,e(null!=(l=c.mc)),e(r<=l.i),l.C>=r)r=1;else if(c.ic||dr(),c.ic){c=l.V,d=l.Ba,g=l.c;var v=l.i,b=(y=1,h=l.$/g,u=l.$%g,p=l.m,f=l.s,l.$),w=g*v,x=g*r,C=f.wc,E=b<x?bt(f,u,h):null;e(b<=w),e(r<=v),e(Bt(f));e:for(;;){for(;!p.h&&b<x;){if(u&C||(E=bt(f,u,h)),e(null!=E),_(p),256>(v=yt(E.G[0],E.H[0],p)))c[d+b]=v,++b,++u>=g&&(u=0,++h<=r&&!(h%16)&&_t(l,h));else{if(!(280>v)){y=0;break e}v=gt(v-256,p);var S,I=yt(E.G[4],E.H[4],p);if(_(p),!(b>=(I=mt(g,I=gt(I,p)))&&w-b>=v)){y=0;break e}for(S=0;S<v;++S)c[d+b+S]=c[d+b+S-I];for(b+=v,u+=v;u>=g;)u-=g,++h<=r&&!(h%16)&&_t(l,h);b<x&&u&C&&(E=bt(f,u,h))}e(p.h==B(p))}_t(l,h>r?r:h);break e}!y||p.h&&b<w?(y=0,l.a=p.h?5:3):l.$=b,r=y}else r=Et(l,l.V,l.Ba,l.c,l.i,r,kt);if(!r){s=0;break t}}i+s>=A&&(t.Cc=1),s=1}if(!s)return null;if(t.Cc&&(null!=(s=t.ga)&&(s.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+i*a}function hr(t,e,r,n,i,o){for(;0<i--;){var s,a=t,A=e+(r?1:0),l=t,c=e+(r?0:3);for(s=0;s<n;++s){var h=l[c+4*s];255!=h&&(h*=32897,a[A+4*s+0]=a[A+4*s+0]*h>>23,a[A+4*s+1]=a[A+4*s+1]*h>>23,a[A+4*s+2]=a[A+4*s+2]*h>>23)}e+=o}}function ur(t,e,r,n,i){for(;0<n--;){var o;for(o=0;o<r;++o){var s=t[e+2*o+0],a=15&(l=t[e+2*o+1]),A=4369*a,l=(240&l|l>>4)*A>>16;t[e+2*o+0]=(240&s|s>>4)*A>>16&240|(15&s|s<<4)*A>>16>>4&15,t[e+2*o+1]=240&l|a}e+=i}}function pr(t,e,r,n,i,o,s,a){var A,l,c=255;for(l=0;l<i;++l){for(A=0;A<n;++A){var h=t[e+A];o[s+4*A]=h,c&=h}e+=r,s+=a}return 255!=c}function fr(t,e,r,n,i){var o;for(o=0;o<i;++o)r[n+o]=t[e+o]>>8}function dr(){xn=hr,Bn=ur,Cn=pr,_n=fr}function gr(r,n,i){t[r]=function(t,r,o,s,a,A,l,c,h,u,p,f,d,g,m,y,v){var b,w=v-1>>1,x=a[A+0]|l[c+0]<<16,B=h[u+0]|p[f+0]<<16;e(null!=t);var C=3*x+B+131074>>2;for(n(t[r+0],255&C,C>>16,d,g),null!=o&&(C=3*B+x+131074>>2,n(o[s+0],255&C,C>>16,m,y)),b=1;b<=w;++b){var _=a[A+b]|l[c+b]<<16,E=h[u+b]|p[f+b]<<16,S=x+_+B+E+524296,I=S+2*(_+B)>>3;C=I+x>>1,x=(S=S+2*(x+E)>>3)+_>>1,n(t[r+2*b-1],255&C,C>>16,d,g+(2*b-1)*i),n(t[r+2*b-0],255&x,x>>16,d,g+(2*b-0)*i),null!=o&&(C=S+B>>1,x=I+E>>1,n(o[s+2*b-1],255&C,C>>16,m,y+(2*b-1)*i),n(o[s+2*b+0],255&x,x>>16,m,y+(2*b+0)*i)),x=_,B=E}1&v||(C=3*x+B+131074>>2,n(t[r+v-1],255&C,C>>16,d,g+(v-1)*i),null!=o&&(C=3*B+x+131074>>2,n(o[s+v-1],255&C,C>>16,m,y+(v-1)*i)))}}function mr(){gi[Dn]=mi,gi[Nn]=vi,gi[On]=yi,gi[Un]=bi,gi[Qn]=wi,gi[Rn]=xi,gi[jn]=Bi,gi[Hn]=vi,gi[Vn]=bi,gi[zn]=wi,gi[Gn]=xi}function yr(t){return t&~Fi?0>t?0:255:t>>Ii}function vr(t,e){return yr((19077*t>>8)+(26149*e>>8)-14234)}function br(t,e,r){return yr((19077*t>>8)-(6419*e>>8)-(13320*r>>8)+8708)}function wr(t,e){return yr((19077*t>>8)+(33050*e>>8)-17685)}function xr(t,e,r,n,i){n[i+0]=vr(t,r),n[i+1]=br(t,e,r),n[i+2]=wr(t,e)}function Br(t,e,r,n,i){n[i+0]=wr(t,e),n[i+1]=br(t,e,r),n[i+2]=vr(t,r)}function Cr(t,e,r,n,i){var o=br(t,e,r);e=o<<3&224|wr(t,e)>>3,n[i+0]=248&vr(t,r)|o>>5,n[i+1]=e}function _r(t,e,r,n,i){var o=240&wr(t,e)|15;n[i+0]=240&vr(t,r)|br(t,e,r)>>4,n[i+1]=o}function Er(t,e,r,n,i){n[i+0]=255,xr(t,e,r,n,i+1)}function Sr(t,e,r,n,i){Br(t,e,r,n,i),n[i+3]=255}function Ir(t,e,r,n,i){xr(t,e,r,n,i),n[i+3]=255}function Fr(e,r,n){t[e]=function(t,e,i,o,s,a,A,l,c){for(var h=l+(-2&c)*n;l!=h;)r(t[e+0],i[o+0],s[a+0],A,l),r(t[e+1],i[o+0],s[a+0],A,l+n),e+=2,++o,++a,l+=2*n;1&c&&r(t[e+0],i[o+0],s[a+0],A,l)}}function Tr(t,e,r){return 0==r?0==t?0==e?6:5:0==e?4:0:r}function kr(t,e,r,n,i){switch(t>>>30){case 3:on(e,r,n,i,0);break;case 2:sn(e,r,n,i);break;case 1:An(e,r,n,i)}}function Lr(t,e){var r,o,s=e.M,a=e.Nb,A=t.oc,l=t.pc+40,c=t.oc,h=t.pc+584,u=t.oc,p=t.pc+600;for(r=0;16>r;++r)A[l+32*r-1]=129;for(r=0;8>r;++r)c[h+32*r-1]=129,u[p+32*r-1]=129;for(0<s?A[l-1-32]=c[h-1-32]=u[p-1-32]=129:(i(A,l-32-1,127,21),i(c,h-32-1,127,9),i(u,p-32-1,127,9)),o=0;o<t.za;++o){var f=e.ya[e.aa+o];if(0<o){for(r=-1;16>r;++r)n(A,l+32*r-4,A,l+32*r+12,4);for(r=-1;8>r;++r)n(c,h+32*r-4,c,h+32*r+4,4),n(u,p+32*r-4,u,p+32*r+4,4)}var d=t.Gd,g=t.Hd+o,m=f.ad,y=f.Hc;if(0<s&&(n(A,l-32,d[g].y,0,16),n(c,h-32,d[g].f,0,8),n(u,p-32,d[g].ea,0,8)),f.Za){var v=A,b=l-32+16;for(0<s&&(o>=t.za-1?i(v,b,d[g].y[15],4):n(v,b,d[g+1].y,0,4)),r=0;4>r;r++)v[b+128+r]=v[b+256+r]=v[b+384+r]=v[b+0+r];for(r=0;16>r;++r,y<<=2)v=A,b=l+Oi[r],hi[f.Ob[r]](v,b),kr(y,m,16*+r,v,b)}else if(v=Tr(o,s,f.Ob[0]),ci[v](A,l),0!=y)for(r=0;16>r;++r,y<<=2)kr(y,m,16*+r,A,l+Oi[r]);for(r=f.Gc,v=Tr(o,s,f.Dd),ui[v](c,h),ui[v](u,p),y=m,v=c,b=h,255&(f=0|r)&&(170&f?an(y,256,v,b):ln(y,256,v,b)),f=u,y=p,255&(r>>=8)&&(170&r?an(m,320,f,y):ln(m,320,f,y)),s<t.Ub-1&&(n(d[g].y,0,A,l+480,16),n(d[g].f,0,c,h+224,8),n(d[g].ea,0,u,p+224,8)),r=8*a*t.B,d=t.sa,g=t.ta+16*o+16*a*t.R,m=t.qa,f=t.ra+8*o+r,y=t.Ha,v=t.Ia+8*o+r,r=0;16>r;++r)n(d,g+r*t.R,A,l+32*r,16);for(r=0;8>r;++r)n(m,f+r*t.B,c,h+32*r,8),n(y,v+r*t.B,u,p+32*r,8)}}function Pr(t,n,i,o,s,a,A,l,c){var h=[0],u=[0],p=0,f=null!=c?c.kd:0,d=null!=c?c:new rr;if(null==t||12>i)return 7;d.data=t,d.w=n,d.ha=i,n=[n],i=[i],d.gb=[d.gb];t:{var g=n,y=i,v=d.gb;if(e(null!=t),e(null!=y),e(null!=v),v[0]=0,12<=y[0]&&!r(t,g[0],"RIFF")){if(r(t,g[0]+8,"WEBP")){v=3;break t}var b=L(t,g[0]+4);if(12>b||4294967286<b){v=3;break t}if(f&&b>y[0]-8){v=7;break t}v[0]=b,g[0]+=12,y[0]-=12}v=0}if(0!=v)return v;for(b=0<d.gb[0],i=i[0];;){t:{var x=t;y=n,v=i;var B=h,C=u,_=g=[0];if((I=p=[p])[0]=0,8>v[0])v=7;else{if(!r(x,y[0],"VP8X")){if(10!=L(x,y[0]+4)){v=3;break t}if(18>v[0]){v=7;break t}var E=L(x,y[0]+8),S=1+k(x,y[0]+12);if(2147483648<=S*(x=1+k(x,y[0]+15))){v=3;break t}null!=_&&(_[0]=E),null!=B&&(B[0]=S),null!=C&&(C[0]=x),y[0]+=18,v[0]-=18,I[0]=1}v=0}}if(p=p[0],g=g[0],0!=v)return v;if(y=!!(2&g),!b&&p)return 3;if(null!=a&&(a[0]=!!(16&g)),null!=A&&(A[0]=y),null!=l&&(l[0]=0),A=h[0],g=u[0],p&&y&&null==c){v=0;break}if(4>i){v=7;break}if(b&&p||!b&&!p&&!r(t,n[0],"ALPH")){i=[i],d.na=[d.na],d.P=[d.P],d.Sa=[d.Sa];t:{E=t,v=n,b=i;var I=d.gb;B=d.na,C=d.P,_=d.Sa,S=22,e(null!=E),e(null!=b),x=v[0];var F=b[0];for(e(null!=B),e(null!=_),B[0]=null,C[0]=null,_[0]=0;;){if(v[0]=x,b[0]=F,8>F){v=7;break t}var T=L(E,x+4);if(4294967286<T){v=3;break t}var P=8+T+1&-2;if(S+=P,0<I&&S>I){v=3;break t}if(!r(E,x,"VP8 ")||!r(E,x,"VP8L")){v=0;break t}if(F[0]<P){v=7;break t}r(E,x,"ALPH")||(B[0]=E,C[0]=x+8,_[0]=T),x+=P,F-=P}}if(i=i[0],d.na=d.na[0],d.P=d.P[0],d.Sa=d.Sa[0],0!=v)break}i=[i],d.Ja=[d.Ja],d.xa=[d.xa];t:if(I=t,v=n,b=i,B=d.gb[0],C=d.Ja,_=d.xa,E=v[0],x=!r(I,E,"VP8 "),S=!r(I,E,"VP8L"),e(null!=I),e(null!=b),e(null!=C),e(null!=_),8>b[0])v=7;else{if(x||S){if(I=L(I,E+4),12<=B&&I>B-12){v=3;break t}if(f&&I>b[0]-8){v=7;break t}C[0]=I,v[0]+=8,b[0]-=8,_[0]=S}else _[0]=5<=b[0]&&47==I[E+0]&&!(I[E+4]>>5),C[0]=b[0];v=0}if(i=i[0],d.Ja=d.Ja[0],d.xa=d.xa[0],n=n[0],0!=v)break;if(4294967286<d.Ja)return 3;if(null==l||y||(l[0]=d.xa?2:1),A=[A],g=[g],d.xa){if(5>i){v=7;break}l=A,f=g,y=a,null==t||5>i?t=0:5<=i&&47==t[n+0]&&!(t[n+4]>>5)?(b=[0],I=[0],B=[0],m(C=new w,t,n,i),dt(C,b,I,B)?(null!=l&&(l[0]=b[0]),null!=f&&(f[0]=I[0]),null!=y&&(y[0]=B[0]),t=1):t=0):t=0}else{if(10>i){v=7;break}l=g,null==t||10>i||!Yt(t,n+3,i-3)?t=0:(f=t[n+0]|t[n+1]<<8|t[n+2]<<16,y=16383&(t[n+7]<<8|t[n+6]),t=16383&(t[n+9]<<8|t[n+8]),1&f||3<(f>>1&7)||!(f>>4&1)||f>>5>=d.Ja||!y||!t?t=0:(A&&(A[0]=y),l&&(l[0]=t),t=1))}if(!t)return 3;if(A=A[0],g=g[0],p&&(h[0]!=A||u[0]!=g))return 3;null!=c&&(c[0]=d,c.offset=n-c.w,e(4294967286>n-c.w),e(c.offset==c.ha-i));break}return 0==v||7==v&&p&&null==c?(null!=a&&(a[0]|=null!=d.na&&0<d.na.length),null!=o&&(o[0]=A),null!=s&&(s[0]=g),0):v}function Mr(t,e,r){var n=e.width,i=e.height,o=0,s=0,a=n,A=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(a=t.cd,A=t.bd,o=t.v,s=t.j,11>r||(o&=-2,s&=-2),0>o||0>s||0>=a||0>=A||o+a>n||s+A>i))return 0;if(e.v=o,e.j=s,e.va=o+a,e.o=s+A,e.U=a,e.T=A,e.da=null!=t&&0<t.da,e.da){if(!N(a,A,r=[t.ib],o=[t.hb]))return 0;e.ib=r[0],e.hb=o[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*n/4&&e.hb<3*i/4,e.Kb=0),1}function Dr(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function Nr(t,e,r,n){if(null==n||0>=t||0>=e)return 2;if(null!=r){if(r.Da){var i=r.cd,s=r.bd,a=-2&r.v,A=-2&r.j;if(0>a||0>A||0>=i||0>=s||a+i>t||A+s>e)return 2;t=i,e=s}if(r.da){if(!N(t,e,i=[r.ib],s=[r.hb]))return 2;t=i[0],e=s[0]}}n.width=t,n.height=e;t:{var l=n.width,c=n.height;if(t=n.S,0>=l||0>=c||!(t>=Dn&&13>t))t=2;else{if(0>=n.Rd&&null==n.sd){a=s=i=e=0;var h=(A=l*Ri[t])*c;if(11>t||(s=(c+1)/2*(e=(l+1)/2),12==t&&(a=(i=l)*c)),null==(c=o(h+2*s+a))){t=1;break t}n.sd=c,11>t?((l=n.f.RGBA).eb=c,l.fb=0,l.A=A,l.size=h):((l=n.f.kb).y=c,l.O=0,l.fa=A,l.Fd=h,l.f=c,l.N=0+h,l.Ab=e,l.Cd=s,l.ea=c,l.W=0+h+s,l.Db=e,l.Ed=s,12==t&&(l.F=c,l.J=0+h+2*s),l.Tc=a,l.lb=i)}if(e=1,i=n.S,s=n.width,a=n.height,i>=Dn&&13>i)if(11>i)t=n.f.RGBA,e&=(A=Math.abs(t.A))*(a-1)+s<=t.size,e&=A>=s*Ri[i],e&=null!=t.eb;else{t=n.f.kb,A=(s+1)/2,h=(a+1)/2,l=Math.abs(t.fa),c=Math.abs(t.Ab);var u=Math.abs(t.Db),p=Math.abs(t.lb),f=p*(a-1)+s;e&=l*(a-1)+s<=t.Fd,e&=c*(h-1)+A<=t.Cd,e=(e&=u*(h-1)+A<=t.Ed)&l>=s&c>=A&u>=A,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==i&&(e&=p>=s,e&=f<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=r&&r.fd&&(t=Dr(n)),t}var Or=64,Ur=[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],Qr=24,Rr=32,jr=8,Hr=[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];Q("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,r){return e[r+0]},t.Predictor3=function(t,e,r){return e[r+1]},t.Predictor4=function(t,e,r){return e[r-1]},t.Predictor5=function(t,e,r){return j(j(t,e[r+1]),e[r+0])},t.Predictor6=function(t,e,r){return j(t,e[r-1])},t.Predictor7=function(t,e,r){return j(t,e[r+0])},t.Predictor8=function(t,e,r){return j(e[r-1],e[r+0])},t.Predictor9=function(t,e,r){return j(e[r+0],e[r+1])},t.Predictor10=function(t,e,r){return j(j(t,e[r-1]),j(e[r+0],e[r+1]))},t.Predictor11=function(t,e,r){var n=e[r+0];return 0>=z(n>>24&255,t>>24&255,(e=e[r-1])>>24&255)+z(n>>16&255,t>>16&255,e>>16&255)+z(n>>8&255,t>>8&255,e>>8&255)+z(255&n,255&t,255&e)?n:t},t.Predictor12=function(t,e,r){var n=e[r+0];return(H((t>>24&255)+(n>>24&255)-((e=e[r-1])>>24&255))<<24|H((t>>16&255)+(n>>16&255)-(e>>16&255))<<16|H((t>>8&255)+(n>>8&255)-(e>>8&255))<<8|H((255&t)+(255&n)-(255&e)))>>>0},t.Predictor13=function(t,e,r){var n=e[r-1];return(V((t=j(t,e[r+0]))>>24&255,n>>24&255)<<24|V(t>>16&255,n>>16&255)<<16|V(t>>8&255,n>>8&255)<<8|V(255&t,255&n))>>>0};var Vr=t.PredictorAdd0;t.PredictorAdd1=G,Q("Predictor2","PredictorAdd2"),Q("Predictor3","PredictorAdd3"),Q("Predictor4","PredictorAdd4"),Q("Predictor5","PredictorAdd5"),Q("Predictor6","PredictorAdd6"),Q("Predictor7","PredictorAdd7"),Q("Predictor8","PredictorAdd8"),Q("Predictor9","PredictorAdd9"),Q("Predictor10","PredictorAdd10"),Q("Predictor11","PredictorAdd11"),Q("Predictor12","PredictorAdd12"),Q("Predictor13","PredictorAdd13");var zr=t.PredictorAdd2;Y("ColorIndexInverseTransform","MapARGB","32b",function(t){return t>>8&255},function(t){return t}),Y("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(t){return t},function(t){return t>>8&255});var Gr,Kr=t.ColorIndexInverseTransform,qr=t.MapARGB,Wr=t.VP8LColorIndexInverseTransformAlpha,Yr=t.MapAlpha,Xr=t.VP8LPredictorsAdd=[];Xr.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var Jr,Zr,$r,tn,en,rn,nn,on,sn,an,An,ln,cn,hn,un,pn,fn,dn,gn,mn,yn,vn,bn,wn,xn,Bn,Cn,_n,En=o(511),Sn=o(2041),In=o(225),Fn=o(767),Tn=0,kn=Sn,Ln=In,Pn=Fn,Mn=En,Dn=0,Nn=1,On=2,Un=3,Qn=4,Rn=5,jn=6,Hn=7,Vn=8,zn=9,Gn=10,Kn=[2,3,7],qn=[3,3,11],Wn=[280,256,256,256,40],Yn=[0,1,1,1,0],Xn=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Jn=[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,36,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],Zn=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],$n=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],ei=[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,ni=[[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]],ii=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],oi=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],si=[[[[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,255,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]]]],ai=[[[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]]],Ai=[[[[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]]]],li=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ci=[],hi=[],ui=[],pi=1,fi=2,di=[],gi=[];gr("UpsampleRgbLinePair",xr,3),gr("UpsampleBgrLinePair",Br,3),gr("UpsampleRgbaLinePair",Ir,4),gr("UpsampleBgraLinePair",Sr,4),gr("UpsampleArgbLinePair",Er,4),gr("UpsampleRgba4444LinePair",_r,2),gr("UpsampleRgb565LinePair",Cr,2);var mi=t.UpsampleRgbLinePair,yi=t.UpsampleBgrLinePair,vi=t.UpsampleRgbaLinePair,bi=t.UpsampleBgraLinePair,wi=t.UpsampleArgbLinePair,xi=t.UpsampleRgba4444LinePair,Bi=t.UpsampleRgb565LinePair,Ci=16,_i=1<<Ci-1,Ei=-227,Si=482,Ii=6,Fi=(256<<Ii)-1,Ti=0,ki=o(256),Li=o(256),Pi=o(256),Mi=o(256),Di=o(Si-Ei),Ni=o(Si-Ei);Fr("YuvToRgbRow",xr,3),Fr("YuvToBgrRow",Br,3),Fr("YuvToRgbaRow",Ir,4),Fr("YuvToBgraRow",Sr,4),Fr("YuvToArgbRow",Er,4),Fr("YuvToRgba4444Row",_r,2),Fr("YuvToRgb565Row",Cr,2);var Oi=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ui=[0,2,8],Qi=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(t,r,a,A,l){var c=Nn,h=new er,u=new st;h.ba=u,u.S=c,u.width=[u.width],u.height=[u.height];var p=u.width,f=u.height,d=new at;if(null==d||null==t)var g=2;else e(null!=d),g=Pr(t,r,a,d.width,d.height,d.Pd,d.Qd,d.format,null);if(0!=g?p=0:(null!=p&&(p[0]=d.width[0]),null!=f&&(f[0]=d.height[0]),p=1),p){u.width=u.width[0],u.height=u.height[0],null!=A&&(A[0]=u.width),null!=l&&(l[0]=u.height);t:{if(A=new Kt,(l=new rr).data=t,l.w=r,l.ha=a,l.kd=1,r=[0],e(null!=l),(0==(t=Pr(l.data,l.w,l.ha,null,null,null,r,null,l))||7==t)&&r[0]&&(t=4),0==(r=t)){if(e(null!=h),A.data=l.data,A.w=l.w+l.offset,A.ha=l.ha-l.offset,A.put=pt,A.ac=ut,A.bc=ft,A.ma=h,l.xa){if(null==(t=It())){h=1;break t}if(function(t,r){var n=[0],i=[0],o=[0];e:for(;;){if(null==t)return 0;if(null==r)return t.a=2,0;if(t.l=r,t.a=0,m(t.m,r.data,r.w,r.ha),!dt(t.m,n,i,o)){t.a=3;break e}if(t.xb=fi,r.width=n[0],r.height=i[0],!Ft(n[0],i[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,A)){if(A=0==(r=Nr(A.width,A.height,h.Oa,h.ba))){e:{A=t;r:for(;;){if(null==A){A=0;break e}if(e(null!=A.s.yc),e(null!=A.s.Ya),e(0<A.s.Wb),e(null!=(a=A.l)),e(null!=(l=a.ma)),0!=A.xb){if(A.ca=l.ba,A.tb=l.tb,e(null!=A.ca),!Mr(l.Oa,a,Un)){A.a=2;break r}if(!Tt(A,a.width))break r;if(a.da)break r;if((a.da||nt(A.ca.S))&&dr(),11>A.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=A.ca.f.kb.F&&dr()),A.Pb&&0<A.s.ua&&null==A.s.vb.X&&!P(A.s.vb,A.s.Wa.Xa)){A.a=1;break r}A.xb=0}if(!Et(A,A.V,A.Ba,A.c,A.i,a.o,xt))break r;l.Dc=A.Ma,A=1;break e}e(0!=A.a),A=0}A=!A}A&&(r=t.a)}else r=t.a}else{if(null==(t=new qt)){h=1;break t}if(t.Fa=l.na,t.P=l.P,t.qc=l.Sa,Xt(t,A)){if(0==(r=Nr(A.width,A.height,h.Oa,h.ba))){if(t.Aa=0,a=h.Oa,e(null!=(l=t)),null!=a){if(0<(p=0>(p=a.Md)?0:100<p?255:255*p/100)){for(f=d=0;4>f;++f)12>(g=l.pb[f]).lc&&(g.ia=p*Qi[0>g.lc?0:g.lc]>>3),d|=g.ia;d&&(alert("todo:VP8InitRandom"),l.ia=1)}l.Ga=a.Id,100<l.Ga?l.Ga=100:0>l.Ga&&(l.Ga=0)}(function(t,r){if(null==t)return 0;if(null==r)return Wt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Xt(t,r))return 0;if(e(t.cb),null==r.ac||r.ac(r)){r.ob&&(t.L=0);var a=Ui[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=r.v-a>>4,t.zb=r.j-a>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=r.o+15+a>>4,t.Hb=r.va+15+a>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var A=t.ed;for(a=0;4>a;++a){var l;if(t.Qa.Cb){var c=t.Qa.Lb[a];t.Qa.Fb||(c+=A.Tb)}else c=A.Tb;for(l=0;1>=l;++l){var h=t.gd[a][l],u=c;if(A.Pc&&(u+=A.vd[0],l&&(u+=A.od[0])),0<(u=0>u?0:63<u?63:u)){var p=u;0<A.wb&&(p=4<A.wb?p>>2:p>>1)>9-A.wb&&(p=9-A.wb),1>p&&(p=1),h.dd=p,h.tc=2*u+p,h.ld=40<=u?2:15<=u?1:0}else h.tc=0;h.La=l}}}a=0}else Wt(t,6,"Frame setup failed"),a=t.a;if(a=0==a){if(a){t.$c=0,0<t.Aa||(t.Ic=1);e:{a=t.Ic,A=4*(p=t.za);var f=32*p,d=p+1,g=0<t.L?p*(0<t.Aa?2:1):0,m=(2==t.Aa?2:1)*p;if((h=A+832+(l=3*(16*a+Ui[t.L])/2*f)+(c=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=h)a=0;else{if(h>t.Vb){if(t.Vb=0,t.Ec=o(h),t.Fc=0,null==t.Ec){a=Wt(t,1,"no memory during frame initialization.");break e}t.Vb=h}h=t.Ec,u=t.Fc,t.Ac=h,t.Bc=u,u+=A,t.Gd=s(f,Vt),t.Hd=0,t.rb=s(d+1,Qt),t.sb=1,t.wa=g?s(g,Ut):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=p),e(!0),t.oc=h,t.pc=u,u+=832,t.ya=s(m,jt),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=p),t.R=16*p,t.B=8*p,p=(f=Ui[t.L])*t.R,f=f/2*t.B,t.sa=h,t.ta=u+p,t.qa=t.sa,t.ra=t.ta+16*a*t.R+f,t.Ha=t.qa,t.Ia=t.ra+8*a*t.B+f,t.$c=0,u+=l,t.mb=c?h:null,t.nb=c?u:null,e(u+c<=t.Fc+t.Vb),Zt(t),i(t.Ac,t.Bc,0,A),a=1}}if(a){if(r.ka=0,r.y=t.sa,r.O=t.ta,r.f=t.qa,r.N=t.ra,r.ea=t.Ha,r.Vd=t.Ia,r.fa=t.R,r.Rc=t.B,r.F=null,r.J=0,!Tn){for(a=-255;255>=a;++a)En[255+a]=0>a?-a:a;for(a=-1020;1020>=a;++a)Sn[1020+a]=-128>a?-128:127<a?127:a;for(a=-112;112>=a;++a)In[112+a]=-16>a?-16:15<a?15:a;for(a=-255;510>=a;++a)Fn[255+a]=0>a?0:255<a?255:a;Tn=1}nn=Ae,on=ie,an=oe,An=se,ln=ae,sn=ne,cn=qe,hn=We,un=Je,pn=Ze,fn=Ye,dn=Xe,gn=$e,mn=tr,yn=je,vn=He,bn=Ve,wn=ze,hi[0]=Be,hi[1]=ce,hi[2]=we,hi[3]=xe,hi[4]=Ce,hi[5]=Ee,hi[6]=_e,hi[7]=Se,hi[8]=Fe,hi[9]=Ie,ci[0]=ge,ci[1]=ue,ci[2]=pe,ci[3]=fe,ci[4]=me,ci[5]=ye,ci[6]=ve,ui[0]=Pe,ui[1]=he,ui[2]=Te,ui[3]=ke,ui[4]=De,ui[5]=Me,ui[6]=Ne,a=1}else a=0}a&&(a=function(t,r){for(t.M=0;t.M<t.Va;++t.M){var s,a=t.Jc[t.M&t.Xb],A=t.m,l=t;for(s=0;s<l.za;++s){var c=A,h=l,u=h.Ac,p=h.Bc+4*s,f=h.zc,d=h.ya[h.aa+s];if(h.Qa.Bb?d.$b=I(c,h.Pa.jb[0])?2+I(c,h.Pa.jb[2]):I(c,h.Pa.jb[1]):d.$b=0,h.kc&&(d.Ad=I(c,h.Bd)),d.Za=!I(c,145)+0,d.Za){var g=d.Ob,m=0;for(h=0;4>h;++h){var y,v=f[0+h];for(y=0;4>y;++y){v=ai[u[p+y]][v];for(var b=oi[I(c,v[0])];0<b;)b=oi[2*b+I(c,v[b])];v=-b,u[p+y]=v}n(g,m,u,p,4),m+=4,f[0+h]=v}}else v=I(c,156)?I(c,128)?1:3:I(c,163)?2:0,d.Ob[0]=v,i(u,p,v,4),i(f,0,v,4);d.Dd=I(c,142)?I(c,114)?I(c,183)?1:3:2:0}if(l.m.Ka)return Wt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(l=a,c=(A=t).rb[A.sb-1],u=A.rb[A.sb+A.ja],s=A.ya[A.aa+A.ja],p=A.kc?s.Ad:0)c.la=u.la=0,s.Za||(c.Na=u.Na=0),s.Hc=0,s.Gc=0,s.ia=0;else{var w,x;if(c=u,u=l,p=A.Pa.Xc,f=A.ya[A.aa+A.ja],d=A.pb[f.$b],h=f.ad,g=0,m=A.rb[A.sb-1],v=y=0,i(h,g,0,384),f.Za)var B=0,C=p[3];else{b=o(16);var _=c.Na+m.Na;if(_=ri(u,p[1],_,d.Eb,0,b,0),c.Na=m.Na=(0<_)+0,1<_)nn(b,0,h,g);else{var E=b[0]+3>>3;for(b=0;256>b;b+=16)h[g+b]=E}B=1,C=p[0]}var S=15&c.la,F=15&m.la;for(b=0;4>b;++b){var T=1&F;for(E=x=0;4>E;++E)S=S>>1|(T=(_=ri(u,C,_=T+(1&S),d.Sc,B,h,g))>B)<<7,x=x<<2|(3<_?3:1<_?2:0!=h[g+0]),g+=16;S>>=4,F=F>>1|T<<7,y=(y<<8|x)>>>0}for(C=S,B=F>>4,w=0;4>w;w+=2){for(x=0,S=c.la>>4+w,F=m.la>>4+w,b=0;2>b;++b){for(T=1&F,E=0;2>E;++E)_=T+(1&S),S=S>>1|(T=0<(_=ri(u,p[2],_,d.Qc,0,h,g)))<<3,x=x<<2|(3<_?3:1<_?2:0!=h[g+0]),g+=16;S>>=2,F=F>>1|T<<5}v|=x<<4*w,C|=S<<4<<w,B|=(240&F)<<w}c.la=C,m.la=B,f.Hc=y,f.Gc=v,f.ia=43690&v?0:d.ia,p=!(y|v)}if(0<A.L&&(A.wa[A.Y+A.ja]=A.gd[s.$b][s.Za],A.wa[A.Y+A.ja].La|=!p),l.Ka)return Wt(t,7,"Premature end-of-file encountered.")}if(Zt(t),A=r,l=1,s=(a=t).D,c=0<a.L&&a.M>=a.zb&&a.M<=a.Va,0==a.Aa)e:{if(s.M=a.M,s.uc=c,Lr(a,s),l=1,s=(x=a.D).Nb,c=(v=Ui[a.L])*a.R,u=v/2*a.B,b=16*s*a.R,E=8*s*a.B,p=a.sa,f=a.ta-c+b,d=a.qa,h=a.ra-u+E,g=a.Ha,m=a.Ia-u+E,F=0==(S=x.M),y=S>=a.Va-1,2==a.Aa&&Lr(a,x),x.uc)for(T=(_=a).D.M,e(_.D.uc),x=_.yb;x<_.Hb;++x){B=x,C=T;var k=(L=(j=_).D).Nb;w=j.R;var L=L.wa[L.Y+B],P=j.sa,M=j.ta+16*k*w+16*B,D=L.dd,N=L.tc;if(0!=N)if(e(3<=N),1==j.L)0<B&&vn(P,M,w,N+4),L.La&&wn(P,M,w,N),0<C&&yn(P,M,w,N+4),L.La&&bn(P,M,w,N);else{var O=j.B,U=j.qa,Q=j.ra+8*k*O+8*B,R=j.Ha,j=j.Ia+8*k*O+8*B;k=L.ld,0<B&&(hn(P,M,w,N+4,D,k),pn(U,Q,R,j,O,N+4,D,k)),L.La&&(dn(P,M,w,N,D,k),mn(U,Q,R,j,O,N,D,k)),0<C&&(cn(P,M,w,N+4,D,k),un(U,Q,R,j,O,N+4,D,k)),L.La&&(fn(P,M,w,N,D,k),gn(U,Q,R,j,O,N,D,k))}}if(a.ia&&alert("todo:DitherRow"),null!=A.put){if(x=16*S,S=16*(S+1),F?(A.y=a.sa,A.O=a.ta+b,A.f=a.qa,A.N=a.ra+E,A.ea=a.Ha,A.W=a.Ia+E):(x-=v,A.y=p,A.O=f,A.f=d,A.N=h,A.ea=g,A.W=m),y||(S-=v),S>A.o&&(S=A.o),A.F=null,A.J=null,null!=a.Fa&&0<a.Fa.length&&x<S&&(A.J=cr(a,A,x,S-x),A.F=a.mb,null==A.F&&0==A.F.length)){l=Wt(a,3,"Could not decode alpha data.");break e}x<A.j&&(v=A.j-x,x=A.j,e(!(1&v)),A.O+=a.R*v,A.N+=a.B*(v>>1),A.W+=a.B*(v>>1),null!=A.F&&(A.J+=A.width*v)),x<S&&(A.O+=A.v,A.N+=A.v>>1,A.W+=A.v>>1,null!=A.F&&(A.J+=A.v),A.ka=x-A.j,A.U=A.va-A.v,A.T=S-x,l=A.put(A))}s+1!=a.Ic||y||(n(a.sa,a.ta-c,p,f+16*a.R,c),n(a.qa,a.ra-u,d,h+8*a.B,u),n(a.Ha,a.Ia-u,g,m+8*a.B,u))}if(!l)return Wt(t,6,"Output aborted.")}return 1}(t,r)),null!=r.bc&&r.bc(r),a&=1}return a?(t.cb=0,a):0})(t,A)||(r=t.a)}}else r=t.a}0==r&&null!=h.Oa&&h.Oa.fd&&(r=Dr(h.ba))}h=r}c=0!=h?null:11>c?u.f.RGBA.eb:u.f.kb.y}else c=null;return c};var Ri=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(t,e){for(var r="",n=0;n<4;n++)r+=String.fromCharCode(t[e++]);return r}function c(t,e){return t[e+0]|t[e+1]<<8}function h(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16)>>>0}function u(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new A;var p=[0],f=[0],d=[],g=new A,m=t,y=function(t,e){var r={},n=0,i=!1,o=0,s=0;if(r.frames=[],!function(t,e){for(var r=0;r<4;r++)if(t[e+r]!="RIFF".charCodeAt(r))return!0;return!1}(t,e)){for(u(t,e+=4),e+=8;e<t.length;){var a=l(t,e),A=u(t,e+=4);e+=4;var p=A+(1&A);switch(a){case"VP8 ":case"VP8L":void 0===r.frames[n]&&(r.frames[n]={}),(g=r.frames[n]).src_off=i?s:e-8,g.src_size=o+A+8,n++,i&&(i=!1,o=0,s=0);break;case"VP8X":(g=r.header={}).feature_flags=t[e];var f=e+4;g.canvas_width=1+h(t,f),f+=3,g.canvas_height=1+h(t,f),f+=3;break;case"ALPH":i=!0,o=p+8,s=e-8;break;case"ANIM":(g=r.header).bgcolor=u(t,e),f=e+4,g.loop_count=c(t,f),f+=2;break;case"ANMF":var d,g;(g=r.frames[n]={}).offset_x=2*h(t,e),e+=3,g.offset_y=2*h(t,e),e+=3,g.width=1+h(t,e),e+=3,g.height=1+h(t,e),e+=3,g.duration=h(t,e),e+=3,d=t[e++],g.dispose=1&d,g.blend=d>>1&1}"ANMF"!=a&&(e+=p)}return r}}(m,0);y.response=m,y.rgbaoutput=!0,y.dataurl=!1;var v=y.header?y.header:null,b=y.frames?y.frames:null;if(v){v.loop_counter=v.loop_count,p=[v.canvas_height],f=[v.canvas_width];for(var w=0;w<b.length&&0!=b[w].blend;w++);}var x=b[0],B=g.WebPDecodeRGBA(m,x.src_off,x.src_size,f,p);x.rgba=B,x.imgwidth=f[0],x.imgheight=p[0];for(var C=0;C<f[0]*p[0]*4;C++)d[C]=B[C];return this.width=f,this.height=p,this.data=d,this}!function(t){var e,r,i,o,s,a,A,c,h,u=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new c,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new a,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new a,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new p(this),e=this.internal.f2,r=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,a=this.internal.Point,A=this.internal.Rectangle,c=this.internal.Matrix,h=new u}]);var p=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var r=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var o=0;Object.defineProperty(this,"posY",{get:function(){return o},set:function(t){isNaN(t)||(o=t)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=new Array(4))[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),h.margin=e}});var s=!1;Object.defineProperty(this,"autoPaging",{get:function(){return s},set:function(t){s=t}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(t){a=t}});var A=[];Object.defineProperty(this,"pageBreaks",{get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(t){t instanceof u&&(h=t)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(t){h.path=t}});var l=[];Object.defineProperty(this,"ctxStack",{get:function(){return l},set:function(t){l=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=d(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=d(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var c=null,p=null,f=null;Object.defineProperty(this,"fontFaces",{get:function(){return f},set:function(t){c=null,p=null,f=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\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-z0-9]+?)\s*$/i.exec(t))){var r=e[1];e[2];var n=e[3],i=e[4];e[5];var o=e[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(t){var e,r,n=[],i=t.trim();if(""===i)return Jt;if(i in Ut)return[Ut[i]];for(;""!==i;){switch(r=null,e=(i=Rt(i)).charAt(0)){case'"':case"'":r=jt(i.substring(1),e);break;default:r=Ht(i)}if(null===r)return Jt;if(n.push(r[0]),""!==(i=Rt(r[1]))&&","!==i.charAt(0))return Jt;i=i.replace(/^,/,"")}return n}(o);if(this.fontFaces){var A=function(t,e){var r=t.getFontList(),n=JSON.stringify(r);if(null===c||p!==n){var i=function(t){var e=[];return Object.keys(t).forEach(function(r){t[r].forEach(function(t){var n=null;switch(t){case"bold":n={family:r,weight:"bold"};break;case"italic":n={family:r,style:"italic"};break;case"bolditalic":n={family:r,weight:"bold",style:"italic"};break;case"":case"normal":n={family:r}}null!==n&&(n.ref={name:r,style:t},e.push(n))})}),e}(r);c=function(t){for(var e={},r=0;r<t.length;++r){var n=Dt(t[r]),i=n.family,o=n.stretch,s=n.style,a=n.weight;e[i]=e[i]||{},e[i][o]=e[i][o]||{},e[i][o][s]=e[i][o][s]||{},e[i][o][s][a]=n}return e}(i.concat(e)),p=n}return c}(this.pdf,this.fontFaces),l=a.map(function(t){return{family:t,stretch:"normal",weight:n,style:r}}),h=function(t,e,r){for(var n=(r=r||{}).defaultFontFamily||"times",i=Object.assign({},Ot,r.genericFontFamilies||{}),o=null,s=null,a=0;a<e.length;++a)if(i[(o=Dt(e[a])).family]&&(o.family=i[o.family]),t.hasOwnProperty(o.family)){s=t[o.family];break}if(!(s=s||t[n]))throw new Error("Could not find a font-family for the rule '"+Qt(o)+"' and default family '"+n+"'.");if(s=function(t,e){if(e[t])return e[t];var r=Lt[t],n=r<=Lt.normal?-1:1,i=Nt(e,kt,r,n);if(!i)throw new Error("Could not find a matching font-stretch value for "+t);return i}(o.stretch,s),s=function(t,e){if(e[t])return e[t];for(var r=Tt[t],n=0;n<r.length;++n)if(e[r[n]])return e[r[n]];throw new Error("Could not find a matching font-style for "+t)}(o.style,s),!(s=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var r=Mt[t],n=Nt(e,Pt,r,t<400?-1:1);if(!n)throw new Error("Could not find a matching font-weight for value "+t);return n}(o.weight,s)))throw new Error("Failed to resolve a font for the rule '"+Qt(o)+"'.");return s}(A,l);this.pdf.setFont(h.ref.name,h.ref.style)}else{var u="";("bold"===n||parseInt(n,10)>=700||"bold"===r)&&(u="bold"),"italic"===r&&(u+="italic"),0===u.length&&(u="normal");for(var f="",d={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"},g=0;g<a.length;g++){if(void 0!==this.pdf.internal.getFont(a[g],u,{noFallback:!0,disableWarning:!0})){f=a[g];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(a[g],"bold",{noFallback:!0,disableWarning:!0}))f=a[g],u="bold";else if(void 0!==this.pdf.internal.getFont(a[g],"normal",{noFallback:!0,disableWarning:!0})){f=a[g],u="normal";break}}if(""===f)for(var m=0;m<a.length;m++)if(d[a[m]]){f=d[a[m]];break}f=""===f?"Times":f,this.pdf.setFont(f,u)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,R.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,R.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};p.prototype.setLineDash=function(t){this.lineDash=t},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){B.call(this,"fill",!1)},p.prototype.stroke=function(){B.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw l.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var r=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"mt",x:r.x,y:r.y}),this.ctx.lastPoint=new a(t,e)},p.prototype.closePath=function(){var t=new a(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===(0,n.A)(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new a(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(t.x,t.y)},p.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw l.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var r=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"lt",x:r.x,y:r.y}),this.ctx.lastPoint=new a(r.x,r.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),B.call(this,null,!0)},p.prototype.quadraticCurveTo=function(t,e,r,n){if(isNaN(r)||isNaN(n)||isNaN(t)||isNaN(e))throw l.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new a(r,n)),o=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new a(i.x,i.y)},p.prototype.bezierCurveTo=function(t,e,r,n,i,o){if(isNaN(i)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw l.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new a(i,o)),A=this.ctx.transform.applyToPoint(new a(t,e)),c=this.ctx.transform.applyToPoint(new a(r,n));this.path.push({type:"bct",x1:A.x,y1:A.y,x2:c.x,y2:c.y,x:s.x,y:s.y}),this.ctx.lastPoint=new a(s.x,s.y)},p.prototype.arc=function(t,e,r,n,i,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i))throw l.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 s=this.ctx.transform.applyToPoint(new a(t,e));t=s.x,e=s.y;var A=this.ctx.transform.applyToPoint(new a(0,r)),c=this.ctx.transform.applyToPoint(new a(0,0));r=Math.sqrt(Math.pow(A.x-c.x,2)+Math.pow(A.y-c.y,2))}Math.abs(i-n)>=2*Math.PI&&(n=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:r,startAngle:n,endAngle:i,counterclockwise:o})},p.prototype.arcTo=function(t,e,r,n,i){throw new Error("arcTo not implemented.")},p.prototype.rect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw l.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+r,e),this.lineTo(t+r,e+n),this.lineTo(t,e+n),this.lineTo(t,e),this.lineTo(t+r,e),this.lineTo(t,e)},p.prototype.fillRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw l.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.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(t,e,r,n),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},p.prototype.strokeRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw l.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(t,e,r,n),this.stroke())},p.prototype.clearRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw l.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,r,n))},p.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var n=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=n}},p.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&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)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(t){var e,r,n,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,r=0,n=0,i=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==o)e=parseInt(o[1]),r=parseInt(o[2]),n=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(o[1]),r=parseInt(o[2]),n=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var s=new f(t);t=s.ok?s.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,r=t.substring(2,3),r+=r,n=t.substring(3,4),n+=n):(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7)),e=parseInt(e,16),r=parseInt(r,16),n=parseInt(n,16)}}return{r:e,g:r,b:n,a:i,style:t}},g=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},m=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};p.prototype.fillText=function(t,e,r,n){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw l.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(n=isNaN(n)?void 0:n,!g.call(this)){var i=O(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;k.call(this,{text:t,x:e,y:r,scale:o,angle:i,align:this.textAlign,maxWidth:n})}},p.prototype.strokeText=function(t,e,r,n){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw l.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){n=isNaN(n)?void 0:n;var i=O(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;k.call(this,{text:t,x:e,y:r,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:n})}},p.prototype.measureText=function(t){if("string"!=typeof t)throw l.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,r=this.pdf.internal.scaleFactor,n=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*n/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:i*=Math.round(96*r/72*1e4)/1e4})},p.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw l.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var r=new c(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(r)},p.prototype.rotate=function(t){if(isNaN(t))throw l.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new c(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},p.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw l.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var r=new c(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(r)},p.prototype.transform=function(t,e,r,n,i,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o))throw l.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new c(t,e,r,n,i,o);this.ctx.transform=this.ctx.transform.multiply(s)},p.prototype.setTransform=function(t,e,r,n,i,o){t=isNaN(t)?1:t,e=isNaN(e)?0:e,r=isNaN(r)?0:r,n=isNaN(n)?1:n,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new c(t,e,r,n,i,o)};var y=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(t,e,r,n,i,o,s,a,l){var h=this.pdf.getImageProperties(t),u=1,p=1,f=1,d=1;void 0!==n&&void 0!==a&&(f=a/n,d=l/i,u=h.width/n*a/n,p=h.height/i*l/i),void 0===o&&(o=e,s=r,e=0,r=0),void 0!==n&&void 0===a&&(a=n,l=i),void 0===n&&void 0===a&&(a=h.width,l=h.height);var g=this.ctx.transform.decompose(),m=O(g.rotate.shx),b=new c,B=(b=(b=(b=b.multiply(g.translate)).multiply(g.skew)).multiply(g.scale)).applyToRectangle(new A(o-e*f,s-r*d,n*u,i*p));if(this.autoPaging){for(var _,E=v.call(this,B),S=[],I=0;I<E.length;I+=1)-1===S.indexOf(E[I])&&S.push(E[I]);x(S);for(var F=S[0],T=S[S.length-1],k=F;k<T+1;k++){this.pdf.setPage(k);var L=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],P=1===k?this.posY+this.margin[0]:this.margin[0],M=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],D=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],N=1===k?0:M+(k-2)*D;if(0!==this.ctx.clip_path.length){var U=this.path;_=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(_,this.posX+this.margin[3],-N+P+this.ctx.prevPageLastElemOffset),C.call(this,"fill",!0),this.path=U}var Q=JSON.parse(JSON.stringify(B));Q=w([Q],this.posX+this.margin[3],-N+P+this.ctx.prevPageLastElemOffset)[0];var R=(k>F||k<T)&&y.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],L,D,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",Q.x,Q.y,Q.w,Q.h,null,null,m),R&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(t,"JPEG",B.x,B.y,B.w,B.h,null,null,m)};var v=function(t,e,r){var n=[];e=e||this.pdf.internal.pageSize.width,r=r||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":n.push(Math.floor((t.y+i)/r)+1);break;case"arc":n.push(Math.floor((t.y+i-t.radius)/r)+1),n.push(Math.floor((t.y+i+t.radius)/r)+1);break;case"qct":var o=U(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);n.push(Math.floor((o.y+i)/r)+1),n.push(Math.floor((o.y+o.h+i)/r)+1);break;case"bct":var s=Q(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);n.push(Math.floor((s.y+i)/r)+1),n.push(Math.floor((s.y+s.h+i)/r)+1);break;case"rect":n.push(Math.floor((t.y+i)/r)+1),n.push(Math.floor((t.y+t.h+i)/r)+1)}for(var a=0;a<n.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<n[a];)b.call(this);return n},b=function(){var t=this.fillStyle,e=this.strokeStyle,r=this.font,n=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=r,this.lineCap=n,this.lineWidth=i,this.lineJoin=o},w=function(t,e,r){for(var n=0;n<t.length;n++)switch(t[n].type){case"bct":t[n].x2+=e,t[n].y2+=r;case"qct":t[n].x1+=e,t[n].y1+=r;default:t[n].x+=e,t[n].y+=r}return t},x=function(t){return t.sort(function(t,e){return t-e})},B=function(t,e){var r=this.fillStyle,n=this.strokeStyle,i=this.lineCap,o=this.lineWidth,s=Math.abs(o*this.ctx.transform.scaleX),a=this.lineJoin;if(this.autoPaging){for(var A,l,c=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),u=[],p=0;p<h.length;p++)if(void 0!==h[p].x)for(var f=v.call(this,h[p]),d=0;d<f.length;d+=1)-1===u.indexOf(f[d])&&u.push(f[d]);for(var g=0;g<u.length;g++)for(;this.pdf.internal.getNumberOfPages()<u[g];)b.call(this);x(u);for(var m=u[0],B=u[u.length-1],_=m;_<B+1;_++){this.pdf.setPage(_),this.fillStyle=r,this.strokeStyle=n,this.lineCap=i,this.lineWidth=s,this.lineJoin=a;var E=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],S=1===_?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],F=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],T=1===_?0:I+(_-2)*F;if(0!==this.ctx.clip_path.length){var k=this.path;A=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(A,this.posX+this.margin[3],-T+S+this.ctx.prevPageLastElemOffset),C.call(this,t,!0),this.path=k}if(l=JSON.parse(JSON.stringify(c)),this.path=w(l,this.posX+this.margin[3],-T+S+this.ctx.prevPageLastElemOffset),!1===e||0===_){var L=(_>m||_<B)&&y.call(this);L&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],E,F,null).clip().discardPath()),C.call(this,t,e),L&&this.pdf.restoreGraphicsState()}this.lineWidth=o}this.path=c}else this.lineWidth=s,C.call(this,t,e),this.lineWidth=o},C=function(t,e){if(("stroke"!==t||e||!m.call(this))&&("stroke"===t||e||!g.call(this))){for(var r,n,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 A=i.length;if(o[s-1]&&!isNaN(o[s-1].x)&&(r=[a.x-o[s-1].x,a.y-o[s-1].y],A>0))for(;A>=0;A--)if(!0!==i[A-1].close&&!0!==i[A-1].begin){i[A-1].deltas.push(r),i[A-1].abs.push(a);break}break;case"bct":r=[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],i[i.length-1].deltas.push(r);break;case"qct":var l=o[s-1].x+2/3*(a.x1-o[s-1].x),c=o[s-1].y+2/3*(a.y1-o[s-1].y),h=a.x+2/3*(a.x1-a.x),u=a.y+2/3*(a.y1-a.y),p=a.x,f=a.y;r=[l-o[s-1].x,c-o[s-1].y,h-o[s-1].x,u-o[s-1].y,p-o[s-1].x,f-o[s-1].y],i[i.length-1].deltas.push(r);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(a)}}n=e?null:"stroke"===t?"stroke":"fill";for(var d=!1,y=0;y<i.length;y++)if(i[y].arc)for(var v=i[y].abs,b=0;b<v.length;b++){var w=v[b];"arc"===w.type?S.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,e,!d):L.call(this,w.x,w.y),d=!0}else if(!0===i[y].close)this.pdf.internal.out("h"),d=!1;else if(!0!==i[y].begin){var x=i[y].start.x,B=i[y].start.y;P.call(this,i[y].deltas,x,B),d=!0}n&&I.call(this,n),e&&F.call(this)}},_=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,r=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-r;case"top":return t+e-r;case"hanging":return t+e-2*r;case"middle":return t+e/2-r;default:return t}},E=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(t,e,r,n,i,o,s,a,A){for(var l=D.call(this,r,n,i,o),c=0;c<l.length;c++){var h=l[c];0===c&&(A?T.call(this,h.x1+t,h.y1+e):L.call(this,h.x1+t,h.y1+e)),M.call(this,t,e,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}a?F.call(this):I.call(this,s)},I=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},F=function(){this.pdf.clip(),this.pdf.discardPath()},T=function(t,e){this.pdf.internal.out(r(t)+" "+i(e)+" m")},k=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;default:e="left"}var r,n,i,o=this.pdf.getTextDimensions(t.text),s=_.call(this,t.y),l=E.call(this,s)-o.h,h=this.ctx.transform.applyToPoint(new a(t.x,s));if(this.autoPaging){var u=this.ctx.transform.decompose(),p=new c;p=(p=(p=p.multiply(u.translate)).multiply(u.skew)).multiply(u.scale);for(var f=this.ctx.transform.applyToRectangle(new A(t.x,s,o.w,o.h)),d=p.applyToRectangle(new A(t.x,l,o.w,o.h)),g=v.call(this,d),m=[],b=0;b<g.length;b+=1)-1===m.indexOf(g[b])&&m.push(g[b]);x(m);for(var B=m[0],S=m[m.length-1],I=B;I<S+1;I++){this.pdf.setPage(I);var F=1===I?this.posY+this.margin[0]:this.margin[0],T=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[2],L=k-this.margin[0],P=this.pdf.internal.pageSize.width-this.margin[1],M=P-this.margin[3],D=1===I?0:T+(I-2)*L;if(0!==this.ctx.clip_path.length){var N=this.path;r=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(r,this.posX+this.margin[3],-1*D+F),C.call(this,"fill",!0),this.path=N}var O=w([JSON.parse(JSON.stringify(d))],this.posX+this.margin[3],-D+F+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(n=this.pdf.internal.getFontSize(),this.pdf.setFontSize(n*t.scale),i=this.lineWidth,this.lineWidth=i*t.scale);var U="text"!==this.autoPaging;if(U||O.y+O.h<=k){if(U||O.y>=F&&O.x<=P){var Q=U?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||P-O.x)[0],R=w([JSON.parse(JSON.stringify(f))],this.posX+this.margin[3],-D+F+this.ctx.prevPageLastElemOffset)[0],j=U&&(I>B||I<S)&&y.call(this);j&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],M,L,null).clip().discardPath()),this.pdf.text(Q,R.x,R.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),j&&this.pdf.restoreGraphicsState()}}else O.y<k&&(this.ctx.prevPageLastElemOffset+=k-O.y);t.scale>=.01&&(this.pdf.setFontSize(n),this.lineWidth=i)}}else t.scale>=.01&&(n=this.pdf.internal.getFontSize(),this.pdf.setFontSize(n*t.scale),i=this.lineWidth,this.lineWidth=i*t.scale),this.pdf.text(t.text,h.x+this.posX,h.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(n),this.lineWidth=i)},L=function(t,e,n,o){n=n||0,o=o||0,this.pdf.internal.out(r(t+n)+" "+i(e+o)+" l")},P=function(t,e,r){return this.pdf.lines(t,e,r,null,null)},M=function(t,r,n,i,a,A,l,c){this.pdf.internal.out([e(o(n+t)),e(s(i+r)),e(o(a+t)),e(s(A+r)),e(o(l+t)),e(s(c+r)),"c"].join(" "))},D=function(t,e,r,n){for(var i=2*Math.PI,o=Math.PI/2;e>r;)e-=i;var s=Math.abs(r-e);s<i&&n&&(s=i-s);for(var a=[],A=n?-1:1,l=e;s>1e-5;){var c=l+A*Math.min(s,o);a.push(N.call(this,t,l,c)),s-=Math.abs(c-l),l=c}return a},N=function(t,e,r){var n=(r-e)/2,i=t*Math.cos(n),o=t*Math.sin(n),s=i,a=-o,A=s*s+a*a,l=A+s*i+a*o,c=4/3*(Math.sqrt(2*A*l)-l)/(s*o-a*i),h=s-c*a,u=a+c*s,p=h,f=-u,d=n+e,g=Math.cos(d),m=Math.sin(d);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:h*g-u*m,y2:h*m+u*g,x3:p*g-f*m,y3:p*m+f*g,x4:t*Math.cos(r),y4:t*Math.sin(r)}},O=function(t){return 180*t/Math.PI},U=function(t,e,r,n,i,o){var s=t+.5*(r-t),a=e+.5*(n-e),l=i+.5*(r-i),c=o+.5*(n-o),h=Math.min(t,i,s,l),u=Math.max(t,i,s,l),p=Math.min(e,o,a,c),f=Math.max(e,o,a,c);return new A(h,p,u-h,f-p)},Q=function(t,e,r,n,i,o,s,a){var l,c,h,u,p,f,d,g,m,y,v,b,w,x,B=r-t,C=n-e,_=i-r,E=o-n,S=s-i,I=a-o;for(c=0;c<41;c++)m=(d=(h=t+(l=c/40)*B)+l*((p=r+l*_)-h))+l*(p+l*(i+l*S-p)-d),y=(g=(u=e+l*C)+l*((f=n+l*E)-u))+l*(f+l*(o+l*I-f)-g),0==c?(v=m,b=y,w=m,x=y):(v=Math.min(v,m),b=Math.min(b,y),w=Math.max(w,m),x=Math.max(x,y));return new A(Math.round(v),Math.round(b),Math.round(w-v),Math.round(x-b))},R=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,r=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==r&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=r)}}}(R.API),function(t){var e=function(t){var e,r,n,i,o,s,a,A,l,c;for(/[^\x00-\xFF]/.test(t),r=[],n=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>n;n+=4)0!==(o=(t.charCodeAt(n)<<24)+(t.charCodeAt(n+1)<<16)+(t.charCodeAt(n+2)<<8)+t.charCodeAt(n+3))?(s=(o=((o=((o=((o=(o-(c=o%85))/85)-(l=o%85))/85)-(A=o%85))/85)-(a=o%85))/85)%85,r.push(s+33,a+33,A+33,l+33,c+33)):r.push(122);return function(t,e){for(var r=e;r>0;r--)t.pop()}(r,e.length),String.fromCharCode.apply(String,r)+"~>"},r=function(t){var e,r,n,i,o,s=String,a="length",A=255,l="charCodeAt",c="slice",h="replace";for(t[c](-2),t=t[c](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),n=[],i=0,o=(t+=e="uuuuu"[c](t[a]%5||5))[a];o>i;i+=5)r=52200625*(t[l](i)-33)+614125*(t[l](i+1)-33)+7225*(t[l](i+2)-33)+85*(t[l](i+3)-33)+(t[l](i+4)-33),n.push(A&r>>24,A&r>>16,A&r>>8,A&r);return function(t,e){for(var r=e;r>0;r--)t.pop()}(n,e[a]),s.fromCharCode.apply(s,n)},n=function(t){return t.split("").map(function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)}).join("")+">"},o=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var r="",n=0;n<t.length;n+=2)r+=String.fromCharCode("0x"+(t[n]+t[n+1]));return r},s=function(t){for(var e=new Uint8Array(t.length),r=t.length;r--;)e[r]=t.charCodeAt(r);return(e=(0,i.$)(e)).reduce(function(t,e){return t+String.fromCharCode(e)},"")};t.processDataByFilters=function(t,i){var a=0,A=t||"",l=[];for("string"==typeof(i=i||[])&&(i=[i]),a=0;a<i.length;a+=1)switch(i[a]){case"ASCII85Decode":case"/ASCII85Decode":A=r(A),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":A=e(A),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":A=o(A),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":A=n(A),l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":A=s(A),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[a]+'" is not implemented')}return{data:A,reverseChain:l.reverse().join(" ")}}}(R.API),function(t){t.loadFile=function(t,e,r){return function(t,e,r){e=!1!==e,r="function"==typeof r?r:function(){};var n=void 0;try{n=function(t,e,r){var n=new XMLHttpRequest,i=0,o=function(t){var e=t.length,r=[],n=String.fromCharCode;for(i=0;i<e;i+=1)r.push(n(255&t.charCodeAt(i)));return r.join("")};if(n.open("GET",t,!e),n.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(n.onload=function(){200===n.status?r(o(this.responseText)):r(void 0)}),n.send(null),e&&200===n.status)return o(n.responseText)}(t,e,r)}catch(t){}return n}(t,e,r)},t.loadImageFile=t.loadFile}(R.API),function(t){function e(){return(a.html2canvas?Promise.resolve(a.html2canvas):r.e(440).then(r.t.bind(r,53440,23))).catch(function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))}).then(function(t){return t.default?t.default:t})}function i(){return(a.DOMPurify?Promise.resolve(a.DOMPurify):r.e(559).then(r.bind(r,30559))).catch(function(t){return Promise.reject(new Error("Could not load dompurify: "+t))}).then(function(t){return t.default?t.default:t})}var o=function(t){var e=(0,n.A)(t);return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},s=function(t,e){var r=document.createElement(t);for(var n in e.className&&(r.className=e.className),e.innerHTML&&e.dompurify&&(r.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)r.style[n]=e.style[n];return r},A=function t(e,r){for(var n=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==r&&1===i.nodeType&&"SCRIPT"===i.nodeName||n.appendChild(t(i,r));return 1===e.nodeType&&("CANVAS"===e.nodeName?(n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(n.value=e.value),n.addEventListener("load",function(){n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft},!0)),n},l=function t(e){var r=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),n=t.convert(Promise.resolve(),r);return(n=n.setProgress(1,t,1,[t])).set(e)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(t,e){return t.__proto__=e||l.prototype,t},l.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"}},l.prototype.from=function(t,e){return this.then(function(){switch(e=e||function(t){switch(o(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t),e){case"string":return this.then(i).then(function(e){return this.set({src:s("div",{innerHTML:t,dompurify:e})})});case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}})},l.prototype.to=function(t){switch(t){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.")}},l.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 t={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},e=A(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(s("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"})},l.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then(function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},l.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then(function(t){var e=this.opt.jsPDF,r=this.opt.fontFaces,n="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:n,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,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=r,r)for(var o=0;o<r.length;++o){var s=r[o],a=s.src.find(function(t){return"truetype"===t.format});a&&e.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.context2d.save(!0),t(this.prop.container,i)}).then(function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},l.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t})},l.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},l.prototype.output=function(t,e,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},l.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(t,e)})},l.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(t){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 "'+t+'" is not supported.'}})},l.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},l.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},l.prototype.set=function(t){if("object"!==o(t))return this;var e=Object.keys(t||{}).map(function(e){if(e in l.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}},this);return this.then(function(){return this.thenList(e)})},l.prototype.get=function(t,e){return this.then(function(){var r=t in l.template.prop?this.prop[t]:this.opt[t];return e?e(r):r})},l.prototype.setMargin=function(t){return this.then(function(){switch(o(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t}).then(this.setPageSize)},l.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then(function(){(t=t||R.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t})},l.prototype.setProgress=function(t,e,r,n){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=r&&(this.progress.n=r),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(t,e,r,n){return this.setProgress(t?this.progress.val+t:null,e||null,r?this.progress.n+r:null,n?this.progress.stack.concat(n):null)},l.prototype.then=function(t,e){var r=this;return this.thenCore(t,e,function(t,e){return r.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,function(e){return r.updateProgress(null,t),e}).then(t,e).then(function(t){return r.updateProgress(1),t})})},l.prototype.thenCore=function(t,e,r){r=r||Promise.prototype.then;var n=this;t&&(t=t.bind(n)),e&&(e=e.bind(n));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?n:l.convert(Object.assign({},n),Promise.prototype),o=r.call(i,t,e);return l.convert(o,n.__proto__)},l.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},l.prototype.thenList=function(t){var e=this;return t.forEach(function(t){e=e.thenCore(t)}),e},l.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return l.convert(e,this)},l.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},l.prototype.error=function(t){return this.then(function(){throw new Error(t)})},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype.export=l.prototype.output,l.prototype.run=l.prototype.then,R.getPageSize=function(t,e,r){if("object"===(0,n.A)(t)){var i=t;t=i.orientation,e=i.unit||e,r=i.format||r}e=e||"mm",r=r||"a4",t=(""+(t||"P")).toLowerCase();var o,s=(""+r).toLowerCase(),a={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(e){case"pt":o=1;break;case"mm":o=72/25.4;break;case"cm":o=72/2.54;break;case"in":o=72;break;case"px":o=.75;break;case"pc":case"em":o=12;break;case"ex":o=6;break;default:throw"Invalid unit: "+e}var A,l=0,c=0;if(a.hasOwnProperty(s))l=a[s][1]/o,c=a[s][0]/o;else try{l=r[1],c=r[0]}catch(t){throw new Error("Invalid format: "+r)}if("p"===t||"portrait"===t)t="p",c>l&&(A=c,c=l,l=A);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",l>c&&(A=c,c=l,l=A)}return{width:c,height:l,unit:e,k:o,orientation:t}},t.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(Dt):null;var r=new l(e);return e.worker?r:r.from(t).doCallback()}}(R.API),R.API.addJS=function(t){return Gt=t,this.internal.events.subscribe("postPutResources",function(){Vt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Vt+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),zt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Gt+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==Vt&&void 0!==zt&&this.internal.out("/Names <</JavaScript "+Vt+" 0 R>>")}),this},function(t){var e;t.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=t.outline.render().split(/\r\n/),i=0;i<n.length;i++){var o=n[i],s=r.exec(o);if(null!=s){var a=s[1];t.internal.newObjectDeferredBegin(a,!1)}t.internal.write(o)}if(this.outline.createNamedDestinations){var A=this.internal.pages.length,l=[];for(i=0;i<A;i++){var c=t.internal.newObject();l.push(c);var h=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var u=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<l.length;i++)t.internal.write("(page_"+(i+1)+")"+l[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+u+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,r){var n={title:e,options:r,children:[]};return null==t&&(t=this.root),t.children.push(n),n},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var r=0;r<e.children.length;r++)this.genIds_r(e.children[r])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<e.children.length;n++){var i=e.children[n];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),n>0&&this.line("/Prev "+this.makeRef(e.children[n-1])),n<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[n+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=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+s.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var a=0;a<e.children.length;a++)this.renderItems(e.children[a])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var r=0;r<e.children.length;r++)t.count++,this.count_r(t,e.children[r]);return t.count}}])}(R.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,r,n,i,o,s){var a,A=this.decode.DCT_DECODE,l=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=o||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,a=function(t){for(var r,n=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,o={width:0,height:0,numcomponents:1},s=4;s<i;s+=2){if(s+=n,-1!==e.indexOf(t.charCodeAt(s+1))){r=256*t.charCodeAt(s+5)+t.charCodeAt(s+6),o={width:256*t.charCodeAt(s+7)+t.charCodeAt(s+8),height:r,numcomponents:t.charCodeAt(s+9)};break}n=256*t.charCodeAt(s+2)+t.charCodeAt(s+3)}return o}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t),a.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}l={data:t,width:a.width,height:a.height,colorSpace:s,bitsPerComponent:8,filter:A,index:r,alias:n}}return l}}(R.API),R.API.processPNG=function(t,e,r,n){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var a,A=(0,s.D4)(t,{checkCrc:!0}),l=A.width,c=A.height,h=A.channels,u=A.palette,p=A.depth;a=u&&1===h?function(t){for(var e=t.width,r=t.height,n=t.data,i=t.palette,s=t.depth,a=!1,A=[],l=[],c=void 0,h=!1,u=0,p=0;p<i.length;p++){var f=(0,o.A)(i[p],4),d=f[0],g=f[1],m=f[2],y=f[3];A.push(d,g,m),null!=y&&(0===y?(u++,l.length<1&&l.push(p)):y<255&&(h=!0))}if(h||u>1){a=!0,l=void 0;var v=e*r;c=new Uint8Array(v);for(var b=new DataView(n.buffer),w=0;w<v;w++){var x=se(b,w,s),B=(0,o.A)(i[x],4)[3];c[w]=B}}else 0===u&&(l=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:a?8:void 0,colorBytes:n,alphaBytes:c,needSMask:a,palette:A,mask:l}}(A):2===h||4===h?function(t){for(var e=t.data,r=t.width,n=t.height,i=t.channels,o=t.depth,s=2===i?"DeviceGray":"DeviceRGB",a=i-1,A=r*n,l=a,c=A*l,h=1*A,u=Math.ceil(c*o/8),p=Math.ceil(h*o/8),f=new Uint8Array(u),d=new Uint8Array(p),g=new DataView(e.buffer),m=new DataView(f.buffer),y=new DataView(d.buffer),v=!1,b=0;b<A;b++){for(var w=b*i,x=0;x<l;x++)ae(m,se(g,w+x,o),b*l+x,o);var B=se(g,w+l,o);B<(1<<o)-1&&(v=!0),ae(y,B,1*b,o)}return{colorSpace:s,colorsPerPixel:a,sMaskBitsPerComponent:v?o:void 0,colorBytes:f,alphaBytes:d,needSMask:v}}(A):function(t){var e=t.data,r=1===t.channels?"DeviceGray":"DeviceRGB";return{colorSpace:r,colorsPerPixel:"DeviceGray"===r?1:3,colorBytes:e instanceof Uint16Array?function(t){for(var e=t.length,r=new Uint8Array(2*e),n=new DataView(r.buffer,r.byteOffset,r.byteLength),i=0;i<e;i++)n.setUint16(2*i,t[i],!1);return r}(e):e,needSMask:!1}}(A);var f,d,g,m=a,y=m.colorSpace,v=m.colorsPerPixel,b=m.sMaskBitsPerComponent,w=m.colorBytes,x=m.alphaBytes,B=m.needSMask,C=m.palette,_=m.mask,E=null;return n!==R.API.image_compression.NONE&&"function"==typeof i.$?(E=function(t){var e;switch(t){case R.API.image_compression.FAST:e=11;break;case R.API.image_compression.MEDIUM:e=13;break;case R.API.image_compression.SLOW:e=14;break;default:e=12}return e}(n),f=this.decode.FLATE_DECODE,d="/Predictor ".concat(E," /Colors ").concat(v," /BitsPerComponent ").concat(p," /Columns ").concat(l),t=Zt(w,Math.ceil(l*v*p/8),v,p,n),B&&(g=Zt(x,Math.ceil(l*b/8),1,b,n))):(f=void 0,d=void 0,t=w,B&&(g=x)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(g&&this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),{alias:r,data:t,index:e,filter:f,decodeParameters:d,transparency:_,palette:C,sMask:g,predictor:E,width:l,height:c,bitsPerComponent:p,sMaskBitsPerComponent:b,colorSpace:y}}},function(t){t.processGIF89A=function(e,r,n,i){var o=new le(e),s=o.width,a=o.height,A=[];o.decodeAndBlitFrameRGBA(0,A);var l={data:A,width:s,height:a},c=new he(100).encode(l,100);return t.processJPEG.call(this,c,r,n,i)},t.processGIF87A=t.processGIF89A}(R.API),ue.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 t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:n,blue:r,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ue.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){l.log("bit decode error:"+t)}},ue.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),r=e%4;for(t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var o=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+8*i*4,a=0;a<8&&8*i+a<this.width;a++){var A=this.palette[o>>7-a&1];this.data[s+4*a]=A.blue,this.data[s+4*a+1]=A.green,this.data[s+4*a+2]=A.red,this.data[s+4*a+3]=255}0!==r&&(this.pos+=4-r)}},ue.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++){var o=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+2*i*4,a=o>>4,A=15&o,l=this.palette[a];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;l=this.palette[A],this.data[s+4]=l.blue,this.data[s+4+1]=l.green,this.data[s+4+2]=l.red,this.data[s+4+3]=255}0!==e&&(this.pos+=4-e)}},ue.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+4*n;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!==t&&(this.pos+=4-t)}},ue.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,a=(o>>5&e)/e*255|0,A=(o>>10&e)/e*255|0,l=o>>15?255:0,c=n*this.width*4+4*i;this.data[c]=A,this.data[c+1]=a,this.data[c+2]=s,this.data[c+3]=l}this.pos+=t}},ue.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&e)/e*255|0,A=(s>>5&r)/r*255|0,l=(s>>11)/e*255|0,c=i*this.width*4+4*o;this.data[c]=l,this.data[c+1]=A,this.data[c+2]=a,this.data[c+3]=255}this.pos+=t}},ue.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*r;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=255}this.pos+=this.width%4}},ue.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=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=e*this.width*4+4*r;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=n,this.data[a+3]=s}},ue.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,r,n,i){var o=new ue(e,!1),s=o.width,a=o.height,A={data:o.getData(),width:s,height:a},l=new he(100).encode(A,100);return t.processJPEG.call(this,l,r,n,i)}}(R.API),pe.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,r,n,i){var o=new pe(e),s=o.width,a=o.height,A={data:o.getData(),width:s,height:a},l=new he(100).encode(A,100);return t.processJPEG.call(this,l,r,n,i)}}(R.API),R.API.processRGBA=function(t,e,r){for(var n=t.data,i=n.length,o=new Uint8Array(i/4*3),s=new Uint8Array(i/4),a=0,A=0,l=0;l<i;l+=4){var c=n[l],h=n[l+1],u=n[l+2],p=n[l+3];o[a++]=c,o[a++]=h,o[a++]=u,s[A++]=p}var f=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:f,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},R.API.setLanguage=function(t){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 (Canada)","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"}[t]&&(this.internal.languageSettings.languageCode=t,!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},Kt=R.API,qt=Kt.getCharWidthsArray=function(t,e){var r,i,o=(e=e||{}).font||this.internal.getFont(),s=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),A=e.widths?e.widths:o.metadata.Unicode.widths,l=A.fof?A.fof:1,c=e.kerning?e.kerning:o.metadata.Unicode.kerning,h=c.fof?c.fof:1,u=!1!==e.doKerning,p=0,f=t.length,d=0,g=A[0]||l,m=[];for(r=0;r<f;r++)i=t.charCodeAt(r),"function"==typeof o.metadata.widthOfString?m.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+a*(1e3/s)||0)/1e3):(p=u&&"object"===(0,n.A)(c[i])&&!isNaN(parseInt(c[i][d],10))?c[i][d]/h:0,m.push((A[i]||g)/l+p)),d=i;return m},Wt=Kt.getStringUnitWidth=function(t,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),n=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Kt.processArabic&&(t=Kt.processArabic(t)),"function"==typeof n.metadata.widthOfString?n.metadata.widthOfString(t,r,i)/r:qt.apply(this,arguments).reduce(function(t,e){return t+e},0)},Yt=function(t,e,r,n){for(var i=[],o=0,s=t.length,a=0;o!==s&&a+e[o]<r;)a+=e[o],o++;i.push(t.slice(0,o));var A=o;for(a=0;o!==s;)a+e[o]>n&&(i.push(t.slice(A,o)),a=0,A=o),a+=e[o],o++;return A!==o&&i.push(t.slice(A,o)),i},Xt=function(t,e,r){r||(r={});var n,i,o,s,a,A,l,c=[],h=[c],u=r.textIndent||0,p=0,f=0,d=t.split(" "),g=qt.apply(this,[" ",r])[0];if(A=-1===r.lineIndent?d[0].length+2:r.lineIndent||0){var m=Array(A).join(" "),y=[];d.map(function(t){(t=t.split(/\s*\n/)).length>1?y=y.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):y.push(t[0])}),d=y,A=Wt.apply(this,[m,r])}for(o=0,s=d.length;o<s;o++){var v=0;if(n=d[o],A&&"\n"==n[0]&&(n=n.substr(1),v=1),u+p+(f=(i=qt.apply(this,[n,r])).reduce(function(t,e){return t+e},0))>e||v){if(f>e){for(a=Yt.apply(this,[n,i,e-(u+p),e]),c.push(a.shift()),c=[a.pop()];a.length;)h.push([a.shift()]);f=i.slice(n.length-(c[0]?c[0].length:0)).reduce(function(t,e){return t+e},0)}else c=[n];h.push(c),u=f+A,p=g}else c.push(n),u+=p+f,p=g}return l=A?function(t,e){return(e?m:"")+t.join(" ")}:function(t){return t.join(" ")},h.map(l)},Kt.splitTextToSize=function(t,e,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),o=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle),r="Unicode";return e.metadata[r]?{widths:e.metadata[r].widths||{0:1},kerning:e.metadata[r].kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,r);n=Array.isArray(t)?t:String(t).split(/\r?\n/);var s=1*this.internal.scaleFactor*e/i;o.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=r.lineIndent;var a,A,l=[];for(a=0,A=n.length;a<A;a++)l=l.concat(Xt.apply(this,[n[a],s,o]));return l},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="0123456789abcdef",r="klmnopqrstuvwxyz",i={},o={},s=0;s<16;s++)i[r[s]]=e[s],o[e[s]]=r[s];var a=function(t){return"0x"+parseInt(t,10).toString(16)},A=t.__fontmetrics__.compress=function(t){var e,r,i,s,l=["{"];for(var c in t){if(e=t[c],isNaN(parseInt(c,10))?r="'"+c+"'":(c=parseInt(c,10),r=(r=a(c).slice(2)).slice(0,-1)+o[r.slice(-1)]),"number"==typeof e)e<0?(i=a(e).slice(3),s="-"):(i=a(e).slice(2),s=""),i=s+i.slice(0,-1)+o[i.slice(-1)];else{if("object"!==(0,n.A)(e))throw new Error("Don't know what to do with value type "+(0,n.A)(e)+".");i=A(e)}l.push(r+i)}return l.push("}"),l.join("")},l=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,r,n,o,s={},a=1,A=s,l=[],c="",h="",u=t.length-1,p=1;p<u;p+=1)"'"==(o=t[p])?e?(n=e.join(""),e=void 0):e=[]:e?e.push(o):"{"==o?(l.push([A,n]),A={},n=void 0):"}"==o?((r=l.pop())[0][r[1]]=A,n=void 0,A=r[0]):"-"==o?a=-1:void 0===n?i.hasOwnProperty(o)?(c+=i[o],n=parseInt(c,16)*a,a=1,c=""):c+=o:i.hasOwnProperty(o)?(h+=i[o],A[n]=parseInt(h,16)*a,a=1,n=void 0,h=""):h+=o;return s},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},u={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'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":l("{'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:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'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:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'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":l("{'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:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'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":l("{'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":l("{'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}}}")}};t.events.push(["addFont",function(t){var e=t.font,r=u.Unicode[e.postScriptName];r&&(e.metadata.Unicode={},e.metadata.Unicode.widths=r.widths,e.metadata.Unicode.kerning=r.kerning);var n=h.Unicode[e.postScriptName];n&&(e.metadata.Unicode.encoding=n,e.encoding=n.codePages[0])}])}(R.API),function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r};t.API.events.push(["addFont",function(r){var n=void 0,i=r.font,o=r.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(n=!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(r,n){n=/^\x00\x01\x00\x00/.test(n)?e(n):e(d(n)),r.metadata=t.API.TTFFont.open(n),r.metadata.Unicode=r.metadata.Unicode||{encoding:{},kerning:{},widths:[]},r.metadata.glyIdsUsed=[0]}(i,n)}}])}(R),R.API.addSvgAsImage=function(t,e,n,i,o,s,A,c){if(isNaN(e)||isNaN(n))throw l.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw l.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var u=h.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,h.width,h.height);var p={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return(a.canvg?Promise.resolve(a.canvg):r.e(365).then(r.bind(r,46365))).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t}).then(function(e){return e.fromString(u,t,p)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(t){return t.render(p)}).then(function(){f.addImage(h.toDataURL("image/jpeg",1),e,n,i,o,A,c)})},R.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},R.API.viewerPreferences=function(t,e){var r;t=t||{},e=e||!1;var i,o,s,a={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(a),l=[],c=0,h=0,u=0;function p(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var f=A.length;for(u=0;u<f;u+=1)r[A[u]].value=r[A[u]].defaultValue,r[A[u]].explicitSet=!1}if("object"===(0,n.A)(t))for(o in t)if(s=t[o],p(A,o)&&void 0!==s){if("boolean"===r[o].type&&"boolean"==typeof s)r[o].value=s;else if("name"===r[o].type&&p(r[o].valueSet,s))r[o].value=s;else if("integer"===r[o].type&&Number.isInteger(s))r[o].value=s;else if("array"===r[o].type){for(c=0;c<s.length;c+=1)if(i=!0,1===s[c].length&&"number"==typeof s[c][0])l.push(String(s[c]-1));else if(s[c].length>1){for(h=0;h<s[c].length;h+=1)"number"!=typeof s[c][h]&&(i=!1);!0===i&&l.push([s[c][0]-1,s[c][1]-1].join(" "))}r[o].value="["+l.join(" ")+"]"}else r[o].value=r[o].defaultValue;r[o].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var t,e=[];for(t in r)!0===r[t].explicitSet&&("name"===r[t].type?e.push("/"+t+" /"+r[t].value):e.push("/"+t+" "+r[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},function(t){var e=function(){var t='<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>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),r=unescape(encodeURIComponent(t)),n=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),s=r.length+n.length+i.length+e.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(e+r+n+i+o),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(t,n){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",e)),this}}(R.API),function(t){var e=t.API,r=e.pdfEscape16=function(t,e){for(var r,n=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],s=0,a=t.length;s<a;++s){if(r=e.metadata.characterToGlyph(t.charCodeAt(s)),e.metadata.glyIdsUsed.push(r),e.metadata.toUnicode[r]=t.charCodeAt(s),-1==n.indexOf(r)&&(n.push(r),n.push([parseInt(e.metadata.widthOfGlyph(r),10)])),"0"==r)return o.join("");r=r.toString(16),o.push(i[4-r.length],r)}return o.join("")},n=function(t){var e,r,n,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",n=[],s=0,a=(r=Object.keys(t).sort(function(t,e){return t-e})).length;s<a;s++)e=r[s],n.length>=100&&(o+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar",n=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),n.push("<"+e+"><"+i+">"));return n.length&&(o+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var r=e.font,i=e.out,o=e.newObject,s=e.putStream;if(r.metadata instanceof t.API.TTFFont&&"Identity-H"===r.encoding){for(var a=r.metadata.Unicode.widths,A=r.metadata.subset.encode(r.metadata.glyIdsUsed,1),l="",c=0;c<A.length;c++)l+=String.fromCharCode(A[c]);var h=o();s({data:l,addLength1:!0,objectId:h}),i("endobj");var u=o();s({data:n(r.metadata.toUnicode),addLength1:!0,objectId:u}),i("endobj");var p=o();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+M(r.fontName)),i("/FontFile2 "+h+" 0 R"),i("/FontBBox "+t.API.PDFObject.convert(r.metadata.bbox)),i("/Flags "+r.metadata.flags),i("/StemV "+r.metadata.stemV),i("/ItalicAngle "+r.metadata.italicAngle),i("/Ascent "+r.metadata.ascender),i("/Descent "+r.metadata.decender),i("/CapHeight "+r.metadata.capHeight),i(">>"),i("endobj");var f=o();i("<<"),i("/Type /Font"),i("/BaseFont /"+M(r.fontName)),i("/FontDescriptor "+p+" 0 R"),i("/W "+t.API.PDFObject.convert(a)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+r.encoding+")"),i(">>"),i(">>"),i("endobj"),r.objectNumber=o(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+u+" 0 R"),i("/BaseFont /"+M(r.fontName)),i("/Encoding /"+r.encoding),i("/DescendantFonts ["+f+" 0 R]"),i(">>"),i("endobj"),r.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var r=e.font,i=e.out,o=e.newObject,s=e.putStream;if(r.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===r.encoding){for(var a=r.metadata.rawData,A="",l=0;l<a.length;l++)A+=String.fromCharCode(a[l]);var c=o();s({data:A,addLength1:!0,objectId:c}),i("endobj");var h=o();s({data:n(r.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var u=o();i("<<"),i("/Descent "+r.metadata.decender),i("/CapHeight "+r.metadata.capHeight),i("/StemV "+r.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+c+" 0 R"),i("/Flags 96"),i("/FontBBox "+t.API.PDFObject.convert(r.metadata.bbox)),i("/FontName /"+M(r.fontName)),i("/ItalicAngle "+r.metadata.italicAngle),i("/Ascent "+r.metadata.ascender),i(">>"),i("endobj"),r.objectNumber=o();for(var p=0;p<r.metadata.hmtx.widths.length;p++)r.metadata.hmtx.widths[p]=parseInt(r.metadata.hmtx.widths[p]*(1e3/r.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+M(r.fontName)+"/FontDescriptor "+u+" 0 R/Encoding/"+r.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(r.metadata.hmtx.widths)+">>"),i("endobj"),r.isAlreadyPutted=!0}}(e)}]);var i=function(t){var e,n=t.text||"",i=t.x,o=t.y,s=t.options||{},a=t.mutex||{},A=a.pdfEscape,l=a.activeFontKey,c=a.fonts,h=l,u="",p=0,f="",d=c[h].encoding;if("Identity-H"!==c[h].encoding)return{text:n,x:i,y:o,options:s,mutex:a};for(f=n,h=l,Array.isArray(n)&&(f=n[0]),p=0;p<f.length;p+=1)c[h].metadata.hasOwnProperty("cmap")&&(e=c[h].metadata.cmap.unicode.codeMap[f[p].charCodeAt(0)]),e||f[p].charCodeAt(0)<256&&c[h].metadata.hasOwnProperty("Unicode")?u+=f[p]:u+="";var g="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===d?g=A(u,h).split("").map(function(t){return t.charCodeAt(0).toString(16)}).join(""):"Identity-H"===d&&(g=r(u,c[h])),a.isHex=!0,{text:g,x:i,y:o,options:s,mutex:a}};e.events.push(["postProcessText",function(t){var e=t.text||"",r=[],n={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var o=0;for(o=0;o<e.length;o+=1)Array.isArray(e[o])&&3===e[o].length?r.push([i(Object.assign({},n,{text:e[o][0]})).text,e[o][1],e[o][2]]):r.push(i(Object.assign({},n,{text:e[o]})).text);t.text=r}else t.text=i(Object.assign({},n,{text:e})).text}])}(R),function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,r){return e.call(this),this.internal.vFS[t]=r,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(R.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var r,n,i,o,s,a,A,l=e,c=[[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]],u={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},f=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],d=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 y=function(t){var e=t.charCodeAt(),r=e>>8,n=p[r];return void 0!==n?l[256*n+(255&e)]:252===r||253===r?"AL":d.test(r)?"L":8===r?"R":"N"},v=function(t){for(var e,r=0;r<t.length;r++){if("L"===(e=y(t.charAt(r))))return!1;if("R"===e)return!0}return!1},b=function(t,e,s,a){var A,l,c,h,u=e[a];switch(u){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"N":case"AN":break;case"EN":g&&(u="AN");break;case"AL":g=!0,u="R";break;case"WS":case"BN":u="N";break;case"CS":a<1||a+1>=e.length||"EN"!==(A=s[a-1])&&"AN"!==A||"EN"!==(l=e[a+1])&&"AN"!==l?u="N":g&&(l="AN"),u=l===A?l:"N";break;case"ES":u="EN"===(A=a>0?s[a-1]:"B")&&a+1<e.length&&"EN"===e[a+1]?"EN":"N";break;case"ET":if(a>0&&"EN"===s[a-1]){u="EN";break}if(g){u="N";break}for(c=a+1,h=e.length;c<h&&"ET"===e[c];)c++;u=c<h&&"EN"===e[c]?"EN":"N";break;case"NSM":if(i&&!o){for(h=e.length,c=a+1;c<h&&"NSM"===e[c];)c++;if(c<h){var p=t[a],f=p>=1425&&p<=2303||64286===p;if(A=e[c],f&&("R"===A||"AL"===A)){u="R";break}}}u=a<1||"B"===(A=e[a-1])?"N":s[a-1];break;case"B":g=!1,r=!0,u=m;break;case"S":n=!0,u="N"}return u},w=function(t,e,r){var n=t.split("");return r&&x(n,r,{hiLevel:m}),n.reverse(),e&&e.reverse(),n.join("")},x=function(t,e,i){var o,s,a,A,l,p=-1,f=t.length,d=0,v=[],w=m?h:c,x=[];for(g=!1,r=!1,n=!1,s=0;s<f;s++)x[s]=y(t[s]);for(a=0;a<f;a++){if(l=d,v[a]=b(t,x,v,a),o=240&(d=w[l][u[v[a]]]),d&=15,e[a]=A=w[d][5],o>0)if(16===o){for(s=p;s<a;s++)e[s]=1;p=-1}else p=-1;if(w[d][6])-1===p&&(p=a);else if(p>-1){for(s=p;s<a;s++)e[s]=A;p=-1}"B"===x[a]&&(e[a]=0),i.hiLevel|=A}n&&function(t,e,r){for(var n=0;n<r;n++)if("S"===t[n]){e[n]=m;for(var i=n-1;i>=0&&"WS"===t[i];i--)e[i]=m}}(x,e,f)},B=function(t,e,n,i,o){if(!(o.hiLevel<t)){if(1===t&&1===m&&!r)return e.reverse(),void(n&&n.reverse());for(var s,a,A,l,c=e.length,h=0;h<c;){if(i[h]>=t){for(A=h+1;A<c&&i[A]>=t;)A++;for(l=h,a=A-1;l<a;l++,a--)s=e[l],e[l]=e[a],e[a]=s,n&&(s=n[l],n[l]=n[a],n[a]=s);h=A}h++}}},C=function(t,e,r){var n=t.split(""),i={hiLevel:m};return r||(r=[]),x(n,r,i),function(t,e,r){if(0!==r.hiLevel&&A)for(var n,i=0;i<t.length;i++)1===e[i]&&(n=f.indexOf(t[i]))>=0&&(t[i]=f[n+1])}(n,r,i),B(2,n,e,r,i),B(1,n,e,r,i),n.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,r){if(function(t,e){if(e)for(var r=0;r<t.length;r++)e[r]=r;void 0===o&&(o=v(t)),void 0===a&&(a=v(t))}(t,e),i||!s||a)if(i&&s&&o^a)m=o?1:0,t=w(t,e,r);else if(!i&&s&&a)m=o?1:0,t=C(t,e,r),t=w(t,e);else if(!i||o||s||a){if(i&&!s&&o^a)t=w(t,e),o?(m=0,t=C(t,e,r)):(m=1,t=C(t,e,r),t=w(t,e));else if(i&&o&&!s&&a)m=1,t=C(t,e,r),t=w(t,e);else if(!i&&!s&&o^a){var n=A;o?(m=1,t=C(t,e,r),m=0,A=!1,t=C(t,e,r),A=n):(m=0,t=C(t,e,r),t=w(t,e),m=1,A=!1,t=C(t,e,r),A=n,t=w(t,e))}}else m=0,t=C(t,e,r);else m=o?1:0,t=C(t,e,r);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,s=t.isOutputVisual,o=t.isInputRtl,a=t.isOutputRtl,A=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["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"],r=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text;t.x,t.y;var n=t.options||{};t.mutex,n.lang;var i=[];if(n.isInputVisual="boolean"!=typeof n.isInputVisual||n.isInputVisual,r.setOptions(n),"[object Array]"===Object.prototype.toString.call(e)){var o=0;for(i=[],o=0;o<e.length;o+=1)"[object Array]"===Object.prototype.toString.call(e[o])?i.push([r.doBidiReorder(e[o][0]),e[o][1],e[o][2]]):i.push([r.doBidiReorder(e[o])]);t.text=i}else t.text=r.doBidiReorder(e);r.setOptions({isInputVisual:!0})}])}(R),R.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new de(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new Me(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new ge(this.contents),this.head=new ve(this),this.name=new Ee(this),this.cmap=new we(this),this.toUnicode={},this.hhea=new xe(this),this.maxp=new Se(this),this.hmtx=new Ie(this),this.post=new Ce(this),this.os2=new Be(this),this.loca=new Pe(this),this.glyf=new Te(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]},t.prototype.registerTTF=function(){var t,e,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,r,n,i;for(i=[],e=0,r=(n=this.bbox).length;e<r;e++)t=n[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(e=n>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):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===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,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")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,r){var n,i,o,s;for(o=0,i=0,s=(t=""+t).length;0<=s?i<s:i>s;i=0<=s?++i:--i)n=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/e)||0;return o*(e/1e3)},t.prototype.lineHeight=function(t,e){var r;return null==e&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},t}();var fe,de=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(t){var e,r,n;for(n=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(t.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,r,n,i,o,s,a;return t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),a=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^o)+256*(255^s)+(255^a)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*n+16777216*i+65536*o+256*s+a},t.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(t){var e,r,n,i;for(i=[],r=0,n=t.length;r<n;r++)e=t[r],i.push(this.writeByte(e));return i},t}(),ge=function(){var t;function e(t){var e,r,n;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},r=0,n=this.tableCount;0<=n?r<n:r>n;r=0<=n?++r:--r)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var r,n,i,o,s,a,A,l,c,h,u,p,f;for(f in u=Object.keys(e).length,a=Math.log(2),c=16*Math.floor(Math.log(u)/a),o=Math.floor(c/a),l=16*u-c,(n=new de).writeInt(this.scalarType),n.writeShort(u),n.writeShort(c),n.writeShort(o),n.writeShort(l),i=16*u,A=n.pos+i,s=null,p=[],e)for(h=e[f],n.writeString(f),n.writeInt(t(h)),n.writeInt(A),n.writeInt(h.length),p=p.concat(h),"head"===f&&(s=A),A+=h.length;A%4;)p.push(0),A++;return n.write(p),r=2981146554-t(n.data),n.pos=s+8,n.writeUInt32(r),n.data},t=function(t){var e,r,n,i;for(t=Fe.call(t);t.length%4;)t.push(0);for(n=new de(t),r=0,e=0,i=t.length;e<i;e=e+=4)r+=n.readUInt32();return 4294967295&r},e}(),me={}.hasOwnProperty,ye=function(t,e){for(var r in e)me.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};fe=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var ve=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,fe),t.prototype.tag="head",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},t.prototype.encode=function(t){var e;return(e=new de).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},t}(),be=function(){function t(t,e){var r,n,i,o,s,a,A,l,c,h,u,p,f,d,g,m,y;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),c=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.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]=t.readByte();break;case 4:for(u=t.readUInt16(),h=u/2,t.pos+=6,i=function(){var e,r;for(r=[],a=e=0;0<=h?e<h:e>h;a=0<=h?++e:--e)r.push(t.readUInt16());return r}(),t.pos+=2,f=function(){var e,r;for(r=[],a=e=0;0<=h?e<h:e>h;a=0<=h?++e:--e)r.push(t.readUInt16());return r}(),A=function(){var e,r;for(r=[],a=e=0;0<=h?e<h:e>h;a=0<=h?++e:--e)r.push(t.readUInt16());return r}(),l=function(){var e,r;for(r=[],a=e=0;0<=h?e<h:e>h;a=0<=h?++e:--e)r.push(t.readUInt16());return r}(),n=(this.length-t.pos+this.offset)/2,s=function(){var e,r;for(r=[],a=e=0;0<=n?e<n:e>n;a=0<=n?++e:--e)r.push(t.readUInt16());return r}(),a=g=0,y=i.length;g<y;a=++g)for(d=i[a],r=m=p=f[a];p<=d?m<=d:m>=d;r=p<=d?++m:--m)0===l[a]?o=r+A[a]:0!==(o=s[l[a]/2+(r-p)-(h-a)]||0)&&(o+=A[a]),this.codeMap[r]=65535&o}t.pos=c}return t.encode=function(t,e){var r,n,i,o,s,a,A,l,c,h,u,p,f,d,g,m,y,v,b,w,x,B,C,_,E,S,I,F,T,k,L,P,M,D,N,O,U,Q,R,j,H,V,z,G,K,q;switch(F=new de,o=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(f=0,d=function(){var t=[];for(p=0;p<256;++p)t.push(0);return t}(),m={0:0},i={},T=0,M=o.length;T<M;T++)null==m[z=t[n=o[T]]]&&(m[z]=++f),i[n]={old:t[n],new:m[t[n]]},d[n]=m[t[n]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(d),{charMap:i,subtable:F.data,maxGlyphID:f+1};case"unicode":for(S=[],c=[],y=0,m={},r={},g=A=null,k=0,D=o.length;k<D;k++)null==m[b=t[n=o[k]]]&&(m[b]=++y),r[n]={old:b,new:m[b]},s=m[b]-n,null!=g&&s===A||(g&&c.push(g),S.push(n),A=s),g=n;for(g&&c.push(g),c.push(65535),S.push(65535),_=2*(C=S.length),B=2*Math.pow(Math.log(C)/Math.LN2,2),h=Math.log(B/2)/Math.LN2,x=2*C-B,a=[],w=[],u=[],p=L=0,N=S.length;L<N;p=++L){if(E=S[p],l=c[p],65535===E){a.push(0),w.push(0);break}if(E-(I=r[E].new)>=32768)for(a.push(0),w.push(2*(u.length+C-p)),n=P=E;E<=l?P<=l:P>=l;n=E<=l?++P:--P)u.push(r[n].new);else a.push(I-E),w.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*C+2*u.length),F.writeUInt16(0),F.writeUInt16(_),F.writeUInt16(B),F.writeUInt16(h),F.writeUInt16(x),H=0,O=c.length;H<O;H++)n=c[H],F.writeUInt16(n);for(F.writeUInt16(0),V=0,U=S.length;V<U;V++)n=S[V],F.writeUInt16(n);for(G=0,Q=a.length;G<Q;G++)s=a[G],F.writeUInt16(s);for(K=0,R=w.length;K<R;K++)v=w[K],F.writeUInt16(v);for(q=0,j=u.length;q<j;q++)f=u[q],F.writeUInt16(f);return{charMap:r,subtable:F.data,maxGlyphID:y+1}}},t}(),we=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,fe),t.prototype.tag="cmap",t.prototype.parse=function(t){var e,r,n;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e=new be(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},t.encode=function(t,e){var r,n;return null==e&&(e="macroman"),r=be.encode(t,e),(n=new de).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},t}(),xe=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,fe),t.prototype.tag="hhea",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},t}(),Be=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,fe),t.prototype.tag="OS/2",t.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r}(),this.charRange=function(){var e,r;for(r=[],e=0;e<4;++e)r.push(t.readInt());return r}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(t.readInt());return r}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},t}(),Ce=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,fe),t.prototype.tag="post",t.prototype.parse=function(t){var e,r,n;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(r=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.pos<this.offset+this.length;)e=t.readByte(),n.push(this.names.push(t.readString(e)));return n;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=function(){var e,r,n;for(n=[],i=e=0,r=this.file.maxp.numGlyphs;0<=r?e<r:e>r;i=0<=r?++e:--e)n.push(t.readUInt32());return n}.call(this)}},t}(),_e=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Ee=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,fe),t.prototype.tag="name",t.prototype.parse=function(t){var e,r,n,i,o,s,a,A,l,c,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),s=t.readShort(),r=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+s+t.readShort()});for(a={},i=l=0,c=r.length;l<c;i=++l)n=r[i],t.pos=n.offset,A=t.readString(n.length),o=new _e(A,n),null==a[h=n.nameID]&&(a[h]=[]),a[n.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(t){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}(),Se=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,fe),t.prototype.tag="maxp",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},t}(),Ie=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,fe),t.prototype.tag="hmtx",t.prototype.parse=function(t){var e,r,n,i,o,s,a;for(t.pos=this.offset,this.metrics=[],e=0,s=this.file.hhea.numberOfMetrics;0<=s?e<s:e>s;e=0<=s?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var r,i;for(i=[],e=r=0;0<=n?r<n:r>n;e=0<=n?++r:--r)i.push(t.readInt16());return i}(),this.widths=function(){var t,e,r,n;for(n=[],t=0,e=(r=this.metrics).length;t<e;t++)i=r[t],n.push(i.advance);return n}.call(this),r=this.widths[this.widths.length-1],a=[],e=o=0;0<=n?o<n:o>n;e=0<=n?++o:--o)a.push(this.widths.push(r));return a},t.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},t}(),Fe=[].slice,Te=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,fe),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(t){var e,r,n,i,o,s,a,A,l,c;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,r=i.indexOf(t),0===(n=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+r,o=(s=new de(e.read(n))).readShort(),A=s.readShort(),c=s.readShort(),a=s.readShort(),l=s.readShort(),this.cache[t]=-1===o?new Le(s,A,c,a,l):new ke(s,o,A,c,a,l),this.cache[t]))},t.prototype.encode=function(t,e,r){var n,i,o,s,a;for(o=[],i=[],s=0,a=e.length;s<a;s++)n=t[e[s]],i.push(o.length),n&&(o=o.concat(n.encode(r)));return i.push(o.length),{table:o,offsets:i}},t}(),ke=function(){function t(t,e,r,n,i,o){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Le=function(){function t(t,e,r,n,i){var o,s;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=n,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 t.prototype.encode=function(){var t,e,r;for(e=new de(Fe.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),Pe=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,fe),t.prototype.tag="loca",t.prototype.parse=function(t){var e,r;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=2)n.push(2*t.readUInt16());return n}.call(this):function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=4)n.push(t.readUInt32());return n}.call(this)},t.prototype.indexOf=function(t){return this.offsets[t]},t.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},t.prototype.encode=function(t,e){for(var r=new Uint32Array(this.offsets.length),n=0,i=0,o=0;o<r.length;++o)if(r[o]=n,i<e.length&&e[i]==o){++i,r[o]=n;var s=this.offsets[o],a=this.offsets[o+1]-s;a>0&&(n+=a)}for(var A=new Array(4*r.length),l=0;l<r.length;++l)A[4*l+3]=255&r[l],A[4*l+2]=(65280&r[l])>>8,A[4*l+1]=(16711680&r[l])>>16,A[4*l]=(4278190080&r[l])>>24;return A},t}(),Me=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,r,n,i;for(e in n=this.font.cmap.tables[0].codeMap,t={},i=this.subset)r=i[e],t[e]=n[r];return t},t.prototype.glyphsFor=function(t){var e,r,n,i,o,s,a;for(n={},o=0,s=t.length;o<s;o++)n[i=t[o]]=this.font.glyf.glyphFor(i);for(i in e=[],n)(null!=(r=n[i])?r.compound:void 0)&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in a=this.glyphsFor(e))r=a[i],n[i]=r;return n},t.prototype.encode=function(t,e){var r,n,i,o,s,a,A,l,c,h,u,p,f,d,g;for(n in r=we.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),u={0:0},g=r.charMap)u[(a=g[n]).old]=a.new;for(p in h=r.maxGlyphID,o)p in u||(u[p]=h++);return l=function(t){var e,r;for(e in r={},t)r[t[e]]=e;return r}(u),c=Object.keys(l).sort(function(t,e){return t-e}),f=function(){var t,e,r;for(r=[],t=0,e=c.length;t<e;t++)s=c[t],r.push(l[s]);return r}(),i=this.font.glyf.encode(o,f,u),A=this.font.loca.encode(i.offsets,f),d={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(e)},this.font.os2.exists&&(d["OS/2"]=this.font.os2.raw()),this.font.directory.encode(d)},t}();R.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(r){var n,i,o,s;if(Array.isArray(r))return"["+function(){var t,i,o;for(o=[],t=0,i=r.length;t<i;t++)n=r[t],o.push(e.convert(n));return o}().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+t(r.getUTCFullYear(),4)+t(r.getUTCMonth(),2)+t(r.getUTCDate(),2)+t(r.getUTCHours(),2)+t(r.getUTCMinutes(),2)+t(r.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(r)){for(i in o=["<<"],r)s=r[i],o.push("/"+i+" "+e.convert(s));return o.push(">>"),o.join("\n")}return""+r},e}()},66546(t,e,r){"use strict";function n(t){this.message=t}r.d(e,{A:()=>a}),n.prototype=new Error,n.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,s=0,a="";i=e.charAt(s++);~i&&(r=o%4?64*r+i:i,o++%4)?a+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a};function o(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(i(t).replace(/(.)/g,function(t,e){var r=e.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(e)}catch(t){return i(e)}}function s(t){this.message=t}s.prototype=new Error,s.prototype.name="InvalidTokenError";const a=function(t,e){if("string"!=typeof t)throw new s("Invalid token specified");var r=!0===(e=e||{}).header?0:1;try{return JSON.parse(o(t.split(".")[r]))}catch(t){throw new s("Invalid token specified: "+t.message)}}},63850(t){var e=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt,s="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,a="object"==typeof self&&self&&self.Object===Object&&self,A=s||a||Function("return this")(),l=Object.prototype.toString,c=Math.max,h=Math.min,u=function(){return A.Date.now()};function p(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function f(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(p(t)){var s="function"==typeof t.valueOf?t.valueOf():t;t=p(s)?s+"":s}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(e,"");var a=n.test(t);return a||i.test(t)?o(t.slice(2),a?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,r){var n,i,o,s,a,A,l=0,d=!1,g=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var r=n,o=i;return n=i=void 0,l=e,s=t.apply(o,r)}function v(t){var r=t-A;return void 0===A||r>=e||r<0||g&&t-l>=o}function b(){var t=u();if(v(t))return w(t);a=setTimeout(b,function(t){var r=e-(t-A);return g?h(r,o-(t-l)):r}(t))}function w(t){return a=void 0,m&&n?y(t):(n=i=void 0,s)}function x(){var t=u(),r=v(t);if(n=arguments,i=this,A=t,r){if(void 0===a)return function(t){return l=t,a=setTimeout(b,e),d?y(t):s}(A);if(g)return a=setTimeout(b,e),y(A)}return void 0===a&&(a=setTimeout(b,e)),s}return e=f(e)||0,p(r)&&(d=!!r.leading,o=(g="maxWait"in r)?c(f(r.maxWait)||0,e):o,m="trailing"in r?!!r.trailing:m),x.cancel=function(){void 0!==a&&clearTimeout(a),l=0,n=A=i=a=void 0},x.flush=function(){return void 0===a?s:w(u())},x}},56869(t,e,r){var n=r(45201)(r(91736),"DataView");t.exports=n},5748(t,e,r){var n=r(14319),i=r(85931),o=r(31914),s=r(78670),a=r(6646);function A(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}A.prototype.clear=n,A.prototype.delete=i,A.prototype.get=o,A.prototype.has=s,A.prototype.set=a,t.exports=A},89819(t,e,r){var n=r(21481),i=r(61808);function o(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}o.prototype=n(i.prototype),o.prototype.constructor=o,t.exports=o},14296(t,e,r){var n=r(30651),i=r(73919),o=r(10830),s=r(60794),a=r(4642);function A(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}A.prototype.clear=n,A.prototype.delete=i,A.prototype.get=o,A.prototype.has=s,A.prototype.set=a,t.exports=A},42958(t,e,r){var n=r(21481),i=r(61808);function o(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}o.prototype=n(i.prototype),o.prototype.constructor=o,t.exports=o},4292(t,e,r){var n=r(45201)(r(91736),"Map");t.exports=n},98464(t,e,r){var n=r(96771),i=r(70295),o=r(27462),s=r(81410),a=r(90842);function A(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}A.prototype.clear=n,A.prototype.delete=i,A.prototype.get=o,A.prototype.has=s,A.prototype.set=a,t.exports=A},2715(t,e,r){var n=r(45201)(r(91736),"Promise");t.exports=n},86646(t,e,r){var n=r(45201)(r(91736),"Set");t.exports=n},84870(t,e,r){var n=r(98464),i=r(22611),o=r(73984);function s(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},51410(t,e,r){var n=r(14296),i=r(66897),o=r(54726),s=r(93760),a=r(16228),A=r(10468);function l(t){var e=this.__data__=new n(t);this.size=e.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=a,l.prototype.set=A,t.exports=l},25572(t,e,r){var n=r(91736).Symbol;t.exports=n},52769(t,e,r){var n=r(91736).Uint8Array;t.exports=n},96696(t,e,r){var n=r(45201)(r(91736),"WeakMap");t.exports=n},91442(t){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},73190(t){t.exports=function(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(n,s,r(s),t)}return n}},69542(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},12908(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}},73001(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s,r,t)&&(o[i++]=s)}return o}},19338(t,e,r){var n=r(71908);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},45318(t){t.exports=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}},51684(t,e,r){var n=r(7967),i=r(64201),o=r(96628),s=r(77103),a=r(51258),A=r(68276),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),c=!r&&i(t),h=!r&&!c&&s(t),u=!r&&!c&&!h&&A(t),p=r||c||h||u,f=p?n(t.length,String):[],d=f.length;for(var g in t)!e&&!l.call(t,g)||p&&("length"==g||h&&("offset"==g||"parent"==g)||u&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,d))||f.push(g);return f}},39221(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},78255(t){t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},86587(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},6420(t,e,r){var n=r(36364)("length");t.exports=n},52351(t){t.exports=function(t){return t.split("")}},14220(t,e,r){var n=r(9935),i=r(38763);t.exports=function(t,e,r){(void 0!==r&&!i(t[e],r)||void 0===r&&!(e in t))&&n(t,e,r)}},60484(t,e,r){var n=r(9935),i=r(38763),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var s=t[e];o.call(t,e)&&i(s,r)&&(void 0!==r||e in t)||n(t,e,r)}},65996(t,e,r){var n=r(38763);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},26344(t,e,r){var n=r(82020);t.exports=function(t,e,r,i){return n(t,function(t,n,o){e(i,t,r(t),o)}),i}},5264(t,e,r){var n=r(84534),i=r(86353);t.exports=function(t,e){return t&&n(e,i(e),t)}},67903(t,e,r){var n=r(84534),i=r(93562);t.exports=function(t,e){return t&&n(e,i(e),t)}},9935(t,e,r){var n=r(32582);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},60444(t,e,r){var n=r(51410),i=r(69542),o=r(60484),s=r(5264),a=r(67903),A=r(10481),l=r(20380),c=r(86735),h=r(67939),u=r(20979),p=r(57856),f=r(55804),d=r(85292),g=r(58262),m=r(73798),y=r(96628),v=r(77103),b=r(85487),w=r(97230),x=r(39601),B=r(86353),C=r(93562),_="[object Arguments]",E="[object Function]",S="[object Object]",I={};I[_]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[S]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[E]=I["[object WeakMap]"]=!1,t.exports=function t(e,r,F,T,k,L){var P,M=1&r,D=2&r,N=4&r;if(F&&(P=k?F(e,T,k,L):F(e)),void 0!==P)return P;if(!w(e))return e;var O=y(e);if(O){if(P=d(e),!M)return l(e,P)}else{var U=f(e),Q=U==E||"[object GeneratorFunction]"==U;if(v(e))return A(e,M);if(U==S||U==_||Q&&!k){if(P=D||Q?{}:m(e),!M)return D?h(e,a(P,e)):c(e,s(P,e))}else{if(!I[U])return k?e:{};P=g(e,U,M)}}L||(L=new n);var R=L.get(e);if(R)return R;L.set(e,P),x(e)?e.forEach(function(n){P.add(t(n,r,F,n,e,L))}):b(e)&&e.forEach(function(n,i){P.set(i,t(n,r,F,i,e,L))});var j=O?void 0:(N?D?p:u:D?C:B)(e);return i(j||e,function(n,i){j&&(n=e[i=n]),o(P,i,t(n,r,F,i,e,L))}),P}},21481(t,e,r){var n=r(97230),i=Object.create,o=function(){function t(){}return function(e){if(!n(e))return{};if(i)return i(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=o},82020(t,e,r){var n=r(93880),i=r(67636)(n);t.exports=i},17210(t,e,r){var n=r(82020);t.exports=function(t,e){var r=!0;return n(t,function(t,n,i){return r=!!e(t,n,i)}),r}},69587(t,e,r){var n=r(82020);t.exports=function(t,e){var r=[];return n(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r}},86424(t){t.exports=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},34403(t,e,r){var n=r(78255),i=r(62892);t.exports=function t(e,r,o,s,a){var A=-1,l=e.length;for(o||(o=i),a||(a=[]);++A<l;){var c=e[A];r>0&&o(c)?r>1?t(c,r-1,o,s,a):n(a,c):s||(a[a.length]=c)}return a}},19810(t,e,r){var n=r(70034)();t.exports=n},93880(t,e,r){var n=r(19810),i=r(86353);t.exports=function(t,e){return t&&n(t,e,i)}},85049(t,e,r){var n=r(46476),i=r(20018);t.exports=function(t,e){for(var r=0,o=(e=n(e,t)).length;null!=t&&r<o;)t=t[i(e[r++])];return r&&r==o?t:void 0}},18614(t,e,r){var n=r(78255),i=r(96628);t.exports=function(t,e,r){var o=e(t);return i(t)?o:n(o,r(t))}},98561(t,e,r){var n=r(25572),i=r(18504),o=r(31567),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},19142(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},71908(t,e,r){var n=r(86424),i=r(80148),o=r(23092);t.exports=function(t,e,r){return e==e?o(t,e,r):n(t,i,r)}},83465(t,e,r){var n=r(98561),i=r(28089);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},14877(t,e,r){var n=r(38527),i=r(28089);t.exports=function t(e,r,o,s,a){return e===r||(null==e||null==r||!i(e)&&!i(r)?e!=e&&r!=r:n(e,r,o,s,t,a))}},38527(t,e,r){var n=r(51410),i=r(5988),o=r(98611),s=r(1608),a=r(55804),A=r(96628),l=r(77103),c=r(68276),h="[object Arguments]",u="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,g,m){var y=A(t),v=A(e),b=y?u:a(t),w=v?u:a(e),x=(b=b==h?p:b)==p,B=(w=w==h?p:w)==p,C=b==w;if(C&&l(t)){if(!l(e))return!1;y=!0,x=!1}if(C&&!x)return m||(m=new n),y||c(t)?i(t,e,r,d,g,m):o(t,e,b,r,d,g,m);if(!(1&r)){var _=x&&f.call(t,"__wrapped__"),E=B&&f.call(e,"__wrapped__");if(_||E){var S=_?t.value():t,I=E?e.value():e;return m||(m=new n),g(S,I,r,d,m)}}return!!C&&(m||(m=new n),s(t,e,r,d,g,m))}},9839(t,e,r){var n=r(55804),i=r(28089);t.exports=function(t){return i(t)&&"[object Map]"==n(t)}},36084(t,e,r){var n=r(51410),i=r(14877);t.exports=function(t,e,r,o){var s=r.length,a=s,A=!o;if(null==t)return!a;for(t=Object(t);s--;){var l=r[s];if(A&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++s<a;){var c=(l=r[s])[0],h=t[c],u=l[1];if(A&&l[2]){if(void 0===h&&!(c in t))return!1}else{var p=new n;if(o)var f=o(h,u,c,t,e,p);if(!(void 0===f?i(u,h,3,o,p):f))return!1}}return!0}},80148(t){t.exports=function(t){return t!=t}},70986(t,e,r){var n=r(65085),i=r(29617),o=r(97230),s=r(9716),a=/^\[object .+?Constructor\]$/,A=Function.prototype,l=Object.prototype,c=A.toString,h=l.hasOwnProperty,u=RegExp("^"+c.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?u:a).test(s(t))}},78528(t,e,r){var n=r(98561),i=r(28089);t.exports=function(t){return i(t)&&"[object RegExp]"==n(t)}},27217(t,e,r){var n=r(55804),i=r(28089);t.exports=function(t){return i(t)&&"[object Set]"==n(t)}},3924(t,e,r){var n=r(98561),i=r(33341),o=r(28089),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[n(t)]}},55992(t,e,r){var n=r(71176),i=r(80229),o=r(1007),s=r(96628),a=r(79564);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):n(t):a(t)}},41009(t,e,r){var n=r(95804),i=r(54407),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},58458(t,e,r){var n=r(97230),i=r(95804),o=r(48716),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=i(t),r=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&r.push(a);return r}},61808(t){t.exports=function(){}},75059(t,e,r){var n=r(82020),i=r(72059);t.exports=function(t,e){var r=-1,o=i(t)?Array(t.length):[];return n(t,function(t,n,i){o[++r]=e(t,n,i)}),o}},71176(t,e,r){var n=r(36084),i=r(15157),o=r(4382);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},80229(t,e,r){var n=r(14877),i=r(32249),o=r(5830),s=r(5749),a=r(50265),A=r(4382),l=r(20018);t.exports=function(t,e){return s(t)&&a(e)?A(l(t),e):function(r){var s=i(r,t);return void 0===s&&s===e?o(r,t):n(e,s,3)}}},22725(t,e,r){var n=r(51410),i=r(14220),o=r(19810),s=r(2887),a=r(97230),A=r(93562),l=r(2169);t.exports=function t(e,r,c,h,u){e!==r&&o(r,function(o,A){if(u||(u=new n),a(o))s(e,r,A,c,t,h,u);else{var p=h?h(l(e,A),o,A+"",e,r,u):void 0;void 0===p&&(p=o),i(e,A,p)}},A)}},2887(t,e,r){var n=r(14220),i=r(10481),o=r(78534),s=r(20380),a=r(73798),A=r(64201),l=r(96628),c=r(81856),h=r(77103),u=r(65085),p=r(97230),f=r(23506),d=r(68276),g=r(2169),m=r(58089);t.exports=function(t,e,r,y,v,b,w){var x=g(t,r),B=g(e,r),C=w.get(B);if(C)n(t,r,C);else{var _=b?b(x,B,r+"",t,e,w):void 0,E=void 0===_;if(E){var S=l(B),I=!S&&h(B),F=!S&&!I&&d(B);_=B,S||I||F?l(x)?_=x:c(x)?_=s(x):I?(E=!1,_=i(B,!0)):F?(E=!1,_=o(B,!0)):_=[]:f(B)||A(B)?(_=x,A(x)?_=m(x):p(x)&&!u(x)||(_=a(B))):E=!1}E&&(w.set(B,_),v(_,B,y,b,w),w.delete(B)),n(t,r,_)}}},99528(t,e,r){var n=r(39221),i=r(85049),o=r(55992),s=r(75059),a=r(79920),A=r(36390),l=r(55925),c=r(1007),h=r(96628);t.exports=function(t,e,r){e=e.length?n(e,function(t){return h(t)?function(e){return i(e,1===t.length?t[0]:t)}:t}):[c];var u=-1;e=n(e,A(o));var p=s(t,function(t,r,i){return{criteria:n(e,function(e){return e(t)}),index:++u,value:t}});return a(p,function(t,e){return l(t,e,r)})}},36364(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},71986(t,e,r){var n=r(85049);t.exports=function(t){return function(e){return n(e,t)}}},74959(t,e,r){var n=r(1007),i=r(12036),o=r(55806);t.exports=function(t,e){return o(i(t,e,n),t+"")}},35421(t,e,r){var n=r(60484),i=r(46476),o=r(51258),s=r(97230),a=r(20018);t.exports=function(t,e,r,A){if(!s(t))return t;for(var l=-1,c=(e=i(e,t)).length,h=c-1,u=t;null!=u&&++l<c;){var p=a(e[l]),f=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(l!=h){var d=u[p];void 0===(f=A?A(d,p,u):void 0)&&(f=s(d)?d:o(e[l+1])?[]:{})}n(u,p,f),u=u[p]}return t}},83549(t,e,r){var n=r(1007),i=r(43011),o=i?function(t,e){return i.set(t,e),t}:n;t.exports=o},3317(t,e,r){var n=r(7965),i=r(32582),o=r(1007),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o;t.exports=s},30495(t){t.exports=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}},79920(t){t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},76982(t){t.exports=function(t,e){for(var r,n=-1,i=t.length;++n<i;){var o=e(t[n]);void 0!==o&&(r=void 0===r?o:r+o)}return r}},7967(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},75293(t,e,r){var n=r(25572),i=r(39221),o=r(96628),s=r(83089),a=n?n.prototype:void 0,A=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return A?A.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},29605(t,e,r){var n=r(49327),i=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(i,""):t}},36390(t){t.exports=function(t){return function(e){return t(e)}}},97936(t,e,r){var n=r(84870),i=r(19338),o=r(45318),s=r(39506),a=r(72454),A=r(57850);t.exports=function(t,e,r){var l=-1,c=i,h=t.length,u=!0,p=[],f=p;if(r)u=!1,c=o;else if(h>=200){var d=e?null:a(t);if(d)return A(d);u=!1,c=s,f=new n}else f=e?[]:p;t:for(;++l<h;){var g=t[l],m=e?e(g):g;if(g=r||0!==g?g:0,u&&m==m){for(var y=f.length;y--;)if(f[y]===m)continue t;e&&f.push(m),p.push(g)}else c(f,m,r)||(f!==p&&f.push(m),p.push(g))}return p}},1116(t,e,r){var n=r(46476),i=r(10017),o=r(42940),s=r(20018),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=-1,A=(e=n(e,t)).length;if(!A)return!0;for(var l=null==t||"object"!=typeof t&&"function"!=typeof t;++r<A;){var c=e[r];if("string"==typeof c){if("__proto__"===c&&!a.call(t,"__proto__"))return!1;if("constructor"===c&&r+1<A&&"string"==typeof e[r+1]&&"prototype"===e[r+1]){if(l&&0===r)continue;return!1}}}var h=o(t,e);return null==h||delete h[s(i(e))]}},39506(t){t.exports=function(t,e){return t.has(e)}},46476(t,e,r){var n=r(96628),i=r(5749),o=r(71951),s=r(55805);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(s(t))}},46189(t,e,r){var n=r(30495);t.exports=function(t,e,r){var i=t.length;return r=void 0===r?i:r,!e&&r>=i?t:n(t,e,r)}},34428(t,e,r){var n=r(52769);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},10481(t,e,r){t=r.nmd(t);var n=r(91736),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}},88454(t,e,r){var n=r(34428);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},27202(t){var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},48687(t,e,r){var n=r(25572),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},78534(t,e,r){var n=r(34428);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},73895(t,e,r){var n=r(83089);t.exports=function(t,e){if(t!==e){var r=void 0!==t,i=null===t,o=t==t,s=n(t),a=void 0!==e,A=null===e,l=e==e,c=n(e);if(!A&&!c&&!s&&t>e||s&&a&&l&&!A&&!c||i&&a&&l||!r&&l||!o)return 1;if(!i&&!s&&!c&&t<e||c&&r&&o&&!i&&!s||A&&r&&o||!a&&o||!l)return-1}return 0}},55925(t,e,r){var n=r(73895);t.exports=function(t,e,r){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,A=r.length;++i<a;){var l=n(o[i],s[i]);if(l)return i>=A?l:l*("desc"==r[i]?-1:1)}return t.index-e.index}},50199(t){var e=Math.max;t.exports=function(t,r,n,i){for(var o=-1,s=t.length,a=n.length,A=-1,l=r.length,c=e(s-a,0),h=Array(l+c),u=!i;++A<l;)h[A]=r[A];for(;++o<a;)(u||o<s)&&(h[n[o]]=t[o]);for(;c--;)h[A++]=t[o++];return h}},84309(t){var e=Math.max;t.exports=function(t,r,n,i){for(var o=-1,s=t.length,a=-1,A=n.length,l=-1,c=r.length,h=e(s-A,0),u=Array(h+c),p=!i;++o<h;)u[o]=t[o];for(var f=o;++l<c;)u[f+l]=r[l];for(;++a<A;)(p||o<s)&&(u[f+n[a]]=t[o++]);return u}},20380(t){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},84534(t,e,r){var n=r(60484),i=r(9935);t.exports=function(t,e,r,o){var s=!r;r||(r={});for(var a=-1,A=e.length;++a<A;){var l=e[a],c=o?o(r[l],t[l],l,r,t):void 0;void 0===c&&(c=t[l]),s?i(r,l,c):n(r,l,c)}return r}},86735(t,e,r){var n=r(84534),i=r(7781);t.exports=function(t,e){return n(t,i(t),e)}},67939(t,e,r){var n=r(84534),i=r(16438);t.exports=function(t,e){return n(t,i(t),e)}},40080(t,e,r){var n=r(91736)["__core-js_shared__"];t.exports=n},25862(t){t.exports=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}},52937(t,e,r){var n=r(73190),i=r(26344),o=r(55992),s=r(96628);t.exports=function(t,e){return function(r,a){var A=s(r)?n:i,l=e?e():{};return A(r,t,o(a,2),l)}}},25834(t,e,r){var n=r(74959),i=r(3025);t.exports=function(t){return n(function(e,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++n<o;){var A=r[n];A&&t(e,A,n,s)}return e})}},67636(t,e,r){var n=r(72059);t.exports=function(t,e){return function(r,i){if(null==r)return r;if(!n(r))return t(r,i);for(var o=r.length,s=e?o:-1,a=Object(r);(e?s--:++s<o)&&!1!==i(a[s],s,a););return r}}},70034(t){t.exports=function(t){return function(e,r,n){for(var i=-1,o=Object(e),s=n(e),a=s.length;a--;){var A=s[t?a:++i];if(!1===r(o[A],A,o))break}return e}}},32735(t,e,r){var n=r(83782),i=r(91736);t.exports=function(t,e,r){var o=1&e,s=n(t);return function e(){return(this&&this!==i&&this instanceof e?s:t).apply(o?r:this,arguments)}}},3228(t,e,r){var n=r(46189),i=r(52135),o=r(66459),s=r(55805);t.exports=function(t){return function(e){e=s(e);var r=i(e)?o(e):void 0,a=r?r[0]:e.charAt(0),A=r?n(r,1).join(""):e.slice(1);return a[t]()+A}}},83782(t,e,r){var n=r(21481),i=r(97230);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=n(t.prototype),o=t.apply(r,e);return i(o)?o:r}}},71185(t,e,r){var n=r(91442),i=r(83782),o=r(54270),s=r(63258),a=r(17280),A=r(55471),l=r(91736);t.exports=function(t,e,r){var c=i(t);return function i(){for(var h=arguments.length,u=Array(h),p=h,f=a(i);p--;)u[p]=arguments[p];var d=h<3&&u[0]!==f&&u[h-1]!==f?[]:A(u,f);return(h-=d.length)<r?s(t,e,o,i.placeholder,void 0,u,d,void 0,void 0,r-h):n(this&&this!==l&&this instanceof i?c:t,this,u)}}},69384(t,e,r){var n=r(42958),i=r(73985),o=r(61546),s=r(22815),a=r(96628),A=r(79538);t.exports=function(t){return i(function(e){var r=e.length,i=r,l=n.prototype.thru;for(t&&e.reverse();i--;){var c=e[i];if("function"!=typeof c)throw new TypeError("Expected a function");if(l&&!h&&"wrapper"==s(c))var h=new n([],!0)}for(i=h?i:r;++i<r;){c=e[i];var u=s(c),p="wrapper"==u?o(c):void 0;h=p&&A(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?h[s(p[0])].apply(h,p[3]):1==c.length&&A(c)?h[u]():h.thru(c)}return function(){var t=arguments,n=t[0];if(h&&1==t.length&&a(n))return h.plant(n).value();for(var i=0,o=r?e[i].apply(this,t):n;++i<r;)o=e[i].call(this,o);return o}})}},54270(t,e,r){var n=r(50199),i=r(84309),o=r(25862),s=r(83782),a=r(63258),A=r(17280),l=r(71017),c=r(55471),h=r(91736);t.exports=function t(e,r,u,p,f,d,g,m,y,v){var b=128&r,w=1&r,x=2&r,B=24&r,C=512&r,_=x?void 0:s(e);return function E(){for(var S=arguments.length,I=Array(S),F=S;F--;)I[F]=arguments[F];if(B)var T=A(E),k=o(I,T);if(p&&(I=n(I,p,f,B)),d&&(I=i(I,d,g,B)),S-=k,B&&S<v){var L=c(I,T);return a(e,r,t,E.placeholder,u,I,L,m,y,v-S)}var P=w?u:this,M=x?P[e]:e;return S=I.length,m?I=l(I,m):C&&S>1&&I.reverse(),b&&y<S&&(I.length=y),this&&this!==h&&this instanceof E&&(M=_||s(M)),M.apply(P,I)}}},70859(t,e,r){var n=r(91442),i=r(83782),o=r(91736);t.exports=function(t,e,r,s){var a=1&e,A=i(t);return function e(){for(var i=-1,l=arguments.length,c=-1,h=s.length,u=Array(h+l),p=this&&this!==o&&this instanceof e?A:t;++c<h;)u[c]=s[c];for(;l--;)u[c++]=arguments[++i];return n(p,a?r:this,u)}}},63258(t,e,r){var n=r(79538),i=r(64006),o=r(8214);t.exports=function(t,e,r,s,a,A,l,c,h,u){var p=8&e;e|=p?32:64,4&(e&=~(p?64:32))||(e&=-4);var f=[t,e,a,p?A:void 0,p?l:void 0,p?void 0:A,p?void 0:l,c,h,u],d=r.apply(void 0,f);return n(t)&&i(d,f),d.placeholder=s,o(d,t,e)}},22734(t,e,r){var n=r(91736),i=r(78164),o=r(43569),s=r(55805),a=n.isFinite,A=Math.min;t.exports=function(t){var e=Math[t];return function(t,r){if(t=o(t),(r=null==r?0:A(i(r),292))&&a(t)){var n=(s(t)+"e").split("e"),l=e(n[0]+"e"+(+n[1]+r));return+((n=(s(l)+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}},72454(t,e,r){var n=r(86646),i=r(19697),o=r(57850),s=n&&1/o(new n([,-0]))[1]==1/0?function(t){return new n(t)}:i;t.exports=s},42836(t,e,r){var n=r(83549),i=r(32735),o=r(71185),s=r(54270),a=r(70859),A=r(61546),l=r(98198),c=r(64006),h=r(8214),u=r(78164),p=Math.max;t.exports=function(t,e,r,f,d,g,m,y){var v=2&e;if(!v&&"function"!=typeof t)throw new TypeError("Expected a function");var b=f?f.length:0;if(b||(e&=-97,f=d=void 0),m=void 0===m?m:p(u(m),0),y=void 0===y?y:u(y),b-=d?d.length:0,64&e){var w=f,x=d;f=d=void 0}var B=v?void 0:A(t),C=[t,e,r,f,d,w,x,g,m,y];if(B&&l(C,B),t=C[0],e=C[1],r=C[2],f=C[3],d=C[4],!(y=C[9]=void 0===C[9]?v?0:t.length:p(C[9]-b,0))&&24&e&&(e&=-25),e&&1!=e)_=8==e||16==e?o(t,e,y):32!=e&&33!=e||d.length?s.apply(void 0,C):a(t,e,r,f);else var _=i(t,e,r);return h((B?n:c)(_,C),t,e)}},11241(t,e,r){var n=r(23506);t.exports=function(t){return n(t)?void 0:t}},32582(t,e,r){var n=r(45201),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},5988(t,e,r){var n=r(84870),i=r(86587),o=r(39506);t.exports=function(t,e,r,s,a,A){var l=1&r,c=t.length,h=e.length;if(c!=h&&!(l&&h>c))return!1;var u=A.get(t),p=A.get(e);if(u&&p)return u==e&&p==t;var f=-1,d=!0,g=2&r?new n:void 0;for(A.set(t,e),A.set(e,t);++f<c;){var m=t[f],y=e[f];if(s)var v=l?s(y,m,f,e,t,A):s(m,y,f,t,e,A);if(void 0!==v){if(v)continue;d=!1;break}if(g){if(!i(e,function(t,e){if(!o(g,e)&&(m===t||a(m,t,r,s,A)))return g.push(e)})){d=!1;break}}else if(m!==y&&!a(m,y,r,s,A)){d=!1;break}}return A.delete(t),A.delete(e),d}},98611(t,e,r){var n=r(25572),i=r(52769),o=r(38763),s=r(5988),a=r(64960),A=r(57850),l=n?n.prototype:void 0,c=l?l.valueOf:void 0;t.exports=function(t,e,r,n,l,h,u){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=a;case"[object Set]":var f=1&n;if(p||(p=A),t.size!=e.size&&!f)return!1;var d=u.get(t);if(d)return d==e;n|=2,u.set(t,e);var g=s(p(t),p(e),n,l,h,u);return u.delete(t),g;case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},1608(t,e,r){var n=r(20979),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,o,s,a){var A=1&r,l=n(t),c=l.length;if(c!=n(e).length&&!A)return!1;for(var h=c;h--;){var u=l[h];if(!(A?u in e:i.call(e,u)))return!1}var p=a.get(t),f=a.get(e);if(p&&f)return p==e&&f==t;var d=!0;a.set(t,e),a.set(e,t);for(var g=A;++h<c;){var m=t[u=l[h]],y=e[u];if(o)var v=A?o(y,m,u,e,t,a):o(m,y,u,t,e,a);if(!(void 0===v?m===y||s(m,y,r,o,a):v)){d=!1;break}g||(g="constructor"==u)}if(d&&!g){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(t),a.delete(e),d}},73985(t,e,r){var n=r(23555),i=r(12036),o=r(55806);t.exports=function(t){return o(i(t,void 0,n),t+"")}},38433(t){var e="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;t.exports=e},20979(t,e,r){var n=r(18614),i=r(7781),o=r(86353);t.exports=function(t){return n(t,o,i)}},57856(t,e,r){var n=r(18614),i=r(16438),o=r(93562);t.exports=function(t){return n(t,o,i)}},61546(t,e,r){var n=r(43011),i=r(19697),o=n?function(t){return n.get(t)}:i;t.exports=o},22815(t,e,r){var n=r(53498),i=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",r=n[e],o=i.call(n,e)?r.length:0;o--;){var s=r[o],a=s.func;if(null==a||a==t)return s.name}return e}},17280(t){t.exports=function(t){return t.placeholder}},88670(t,e,r){var n=r(19169);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},15157(t,e,r){var n=r(50265),i=r(86353);t.exports=function(t){for(var e=i(t),r=e.length;r--;){var o=e[r],s=t[o];e[r]=[o,s,n(s)]}return e}},45201(t,e,r){var n=r(70986),i=r(91793);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},12566(t,e,r){var n=r(25300)(Object.getPrototypeOf,Object);t.exports=n},18504(t,e,r){var n=r(25572),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var i=s.call(t);return n&&(e?t[a]=r:delete t[a]),i}},7781(t,e,r){var n=r(73001),i=r(32148),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),n(s(t),function(e){return o.call(t,e)}))}:i;t.exports=a},16438(t,e,r){var n=r(78255),i=r(12566),o=r(7781),s=r(32148),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,o(t)),t=i(t);return e}:s;t.exports=a},55804(t,e,r){var n=r(56869),i=r(4292),o=r(2715),s=r(86646),a=r(96696),A=r(98561),l=r(9716),c="[object Map]",h="[object Promise]",u="[object Set]",p="[object WeakMap]",f="[object DataView]",d=l(n),g=l(i),m=l(o),y=l(s),v=l(a),b=A;(n&&b(new n(new ArrayBuffer(1)))!=f||i&&b(new i)!=c||o&&b(o.resolve())!=h||s&&b(new s)!=u||a&&b(new a)!=p)&&(b=function(t){var e=A(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case d:return f;case g:return c;case m:return h;case y:return u;case v:return p}return e}),t.exports=b},91793(t){t.exports=function(t,e){return null==t?void 0:t[e]}},28602(t){var e=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;t.exports=function(t){var n=t.match(e);return n?n[1].split(r):[]}},86913(t,e,r){var n=r(46476),i=r(64201),o=r(96628),s=r(51258),a=r(33341),A=r(20018);t.exports=function(t,e,r){for(var l=-1,c=(e=n(e,t)).length,h=!1;++l<c;){var u=A(e[l]);if(!(h=null!=t&&r(t,u)))break;t=t[u]}return h||++l!=c?h:!!(c=null==t?0:t.length)&&a(c)&&s(u,c)&&(o(t)||i(t))}},52135(t){var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},14319(t,e,r){var n=r(22919);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},85931(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},31914(t,e,r){var n=r(22919),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},78670(t,e,r){var n=r(22919),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},6646(t,e,r){var n=r(22919);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},85292(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},58262(t,e,r){var n=r(34428),i=r(88454),o=r(27202),s=r(48687),a=r(78534);t.exports=function(t,e,r){var A=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new A(+t);case"[object DataView]":return i(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,r);case"[object Map]":case"[object Set]":return new A;case"[object Number]":case"[object String]":return new A(t);case"[object RegExp]":return o(t);case"[object Symbol]":return s(t)}}},73798(t,e,r){var n=r(21481),i=r(12566),o=r(95804);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:n(i(t))}},31727(t){var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,r){var n=r.length;if(!n)return t;var i=n-1;return r[i]=(n>1?"& ":"")+r[i],r=r.join(n>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+r+"] */\n")}},62892(t,e,r){var n=r(25572),i=r(64201),o=r(96628),s=n?n.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},51258(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},3025(t,e,r){var n=r(38763),i=r(72059),o=r(51258),s=r(97230);t.exports=function(t,e,r){if(!s(r))return!1;var a=typeof e;return!!("number"==a?i(r)&&o(e,r.length):"string"==a&&e in r)&&n(r[e],t)}},5749(t,e,r){var n=r(96628),i=r(83089),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},19169(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},79538(t,e,r){var n=r(89819),i=r(61546),o=r(22815),s=r(42671);t.exports=function(t){var e=o(t),r=s[e];if("function"!=typeof r||!(e in n.prototype))return!1;if(t===r)return!0;var a=i(r);return!!a&&t===a[0]}},29617(t,e,r){var n,i=r(40080),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},95804(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},50265(t,e,r){var n=r(97230);t.exports=function(t){return t==t&&!n(t)}},30651(t){t.exports=function(){this.__data__=[],this.size=0}},73919(t,e,r){var n=r(65996),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():i.call(e,r,1),--this.size,0))}},10830(t,e,r){var n=r(65996);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},60794(t,e,r){var n=r(65996);t.exports=function(t){return n(this.__data__,t)>-1}},4642(t,e,r){var n=r(65996);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},96771(t,e,r){var n=r(5748),i=r(14296),o=r(4292);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},70295(t,e,r){var n=r(88670);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},27462(t,e,r){var n=r(88670);t.exports=function(t){return n(this,t).get(t)}},81410(t,e,r){var n=r(88670);t.exports=function(t){return n(this,t).has(t)}},90842(t,e,r){var n=r(88670);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},64960(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},4382(t){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},48563(t,e,r){var n=r(84101);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},98198(t,e,r){var n=r(50199),i=r(84309),o=r(55471),s="__lodash_placeholder__",a=Math.min;t.exports=function(t,e){var r=t[1],A=e[1],l=r|A,c=l<131,h=128==A&&8==r||128==A&&256==r&&t[7].length<=e[8]||384==A&&e[7].length<=e[8]&&8==r;if(!c&&!h)return t;1&A&&(t[2]=e[2],l|=1&r?0:4);var u=e[3];if(u){var p=t[3];t[3]=p?n(p,u,e[4]):u,t[4]=p?o(t[3],s):e[4]}return(u=e[5])&&(p=t[5],t[5]=p?i(p,u,e[6]):u,t[6]=p?o(t[5],s):e[6]),(u=e[7])&&(t[7]=u),128&A&&(t[8]=null==t[8]?e[8]:a(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=l,t}},43011(t,e,r){var n=r(96696),i=n&&new n;t.exports=i},22919(t,e,r){var n=r(45201)(Object,"create");t.exports=n},54407(t,e,r){var n=r(25300)(Object.keys,Object);t.exports=n},48716(t){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},67728(t,e,r){t=r.nmd(t);var n=r(38433),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},31567(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},25300(t){t.exports=function(t,e){return function(r){return t(e(r))}}},12036(t,e,r){var n=r(91442),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),A=Array(a);++s<a;)A[s]=o[e+s];s=-1;for(var l=Array(e+1);++s<e;)l[s]=o[s];return l[e]=r(A),n(t,this,l)}}},42940(t,e,r){var n=r(85049),i=r(30495);t.exports=function(t,e){return e.length<2?t:n(t,i(e,0,-1))}},53498(t){t.exports={}},71017(t,e,r){var n=r(20380),i=r(51258),o=Math.min;t.exports=function(t,e){for(var r=t.length,s=o(e.length,r),a=n(t);s--;){var A=e[s];t[s]=i(A,r)?a[A]:void 0}return t}},55471(t){var e="__lodash_placeholder__";t.exports=function(t,r){for(var n=-1,i=t.length,o=0,s=[];++n<i;){var a=t[n];a!==r&&a!==e||(t[n]=e,s[o++]=n)}return s}},91736(t,e,r){var n=r(38433),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},2169(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},22611(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},73984(t){t.exports=function(t){return this.__data__.has(t)}},64006(t,e,r){var n=r(83549),i=r(55586)(n);t.exports=i},57850(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},55806(t,e,r){var n=r(3317),i=r(55586)(n);t.exports=i},8214(t,e,r){var n=r(28602),i=r(31727),o=r(55806),s=r(43679);t.exports=function(t,e,r){var a=e+"";return o(t,i(a,s(n(a),r)))}},55586(t){var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var i=e(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},66897(t,e,r){var n=r(14296);t.exports=function(){this.__data__=new n,this.size=0}},54726(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},93760(t){t.exports=function(t){return this.__data__.get(t)}},16228(t){t.exports=function(t){return this.__data__.has(t)}},10468(t,e,r){var n=r(14296),i=r(4292),o=r(98464);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(t,e),this.size=r.size,this}},23092(t){t.exports=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}},5184(t,e,r){var n=r(6420),i=r(52135),o=r(25936);t.exports=function(t){return i(t)?o(t):n(t)}},66459(t,e,r){var n=r(52351),i=r(52135),o=r(45931);t.exports=function(t){return i(t)?o(t):n(t)}},71951(t,e,r){var n=r(48563),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)}),e});t.exports=s},20018(t,e,r){var n=r(83089);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},9716(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},49327(t){var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},25936(t){var e="\\ud800-\\udfff",r="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",A="(?:"+n+"|"+i+")?",l="[\\ufe0e\\ufe0f]?",c=l+A+"(?:\\u200d(?:"+[o,s,a].join("|")+")"+l+A+")*",h="(?:"+[o+n+"?",n,s,a,r].join("|")+")",u=RegExp(i+"(?="+i+")|"+h+c,"g");t.exports=function(t){for(var e=u.lastIndex=0;u.test(t);)++e;return e}},45931(t){var e="\\ud800-\\udfff",r="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",A="(?:"+n+"|"+i+")?",l="[\\ufe0e\\ufe0f]?",c=l+A+"(?:\\u200d(?:"+[o,s,a].join("|")+")"+l+A+")*",h="(?:"+[o+n+"?",n,s,a,r].join("|")+")",u=RegExp(i+"(?="+i+")|"+h+c,"g");t.exports=function(t){return t.match(u)||[]}},43679(t,e,r){var n=r(69542),i=r(19338),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return n(o,function(r){var n="_."+r[0];e&r[1]&&!i(t,n)&&t.push(n)}),t.sort()}},25987(t,e,r){var n=r(89819),i=r(42958),o=r(20380);t.exports=function(t){if(t instanceof n)return t.clone();var e=new i(t.__wrapped__,t.__chain__);return e.__actions__=o(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},27535(t,e,r){var n=r(42836);t.exports=function(t,e,r){return e=r?void 0:e,e=t&&null==e?t.length:e,n(t,128,void 0,void 0,void 0,void 0,e)}},45867(t,e,r){var n=r(55805),i=r(93107);t.exports=function(t){return i(n(t).toLowerCase())}},8716(t,e,r){var n=r(30495),i=r(3025),o=r(78164),s=Math.ceil,a=Math.max;t.exports=function(t,e,r){e=(r?i(t,e,r):void 0===e)?1:a(o(e),0);var A=null==t?0:t.length;if(!A||e<1)return[];for(var l=0,c=0,h=Array(s(A/e));l<A;)h[c++]=n(t,l,l+=e);return h}},7740(t,e,r){var n=r(60444);t.exports=function(t){return n(t,4)}},70114(t,e,r){var n=r(60444);t.exports=function(t){return n(t,5)}},7965(t){t.exports=function(t){return function(){return t}}},99742(t,e,r){var n=r(42836);function i(t,e,r){var o=n(t,8,void 0,void 0,void 0,void 0,void 0,e=r?void 0:e);return o.placeholder=i.placeholder,o}i.placeholder={},t.exports=i},82702(t,e,r){var n=r(97230),i=r(61381),o=r(43569),s=Math.max,a=Math.min;t.exports=function(t,e,r){var A,l,c,h,u,p,f=0,d=!1,g=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var r=A,n=l;return A=l=void 0,f=e,h=t.apply(n,r)}function v(t){var r=t-p;return void 0===p||r>=e||r<0||g&&t-f>=c}function b(){var t=i();if(v(t))return w(t);u=setTimeout(b,function(t){var r=e-(t-p);return g?a(r,c-(t-f)):r}(t))}function w(t){return u=void 0,m&&A?y(t):(A=l=void 0,h)}function x(){var t=i(),r=v(t);if(A=arguments,l=this,p=t,r){if(void 0===u)return function(t){return f=t,u=setTimeout(b,e),d?y(t):h}(p);if(g)return clearTimeout(u),u=setTimeout(b,e),y(p)}return void 0===u&&(u=setTimeout(b,e)),h}return e=o(e)||0,n(r)&&(d=!!r.leading,c=(g="maxWait"in r)?s(o(r.maxWait)||0,e):c,m="trailing"in r?!!r.trailing:m),x.cancel=function(){void 0!==u&&clearTimeout(u),f=0,A=p=l=u=void 0},x.flush=function(){return void 0===u?h:w(i())},x}},38763(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},20218(t,e,r){var n=r(12908),i=r(17210),o=r(55992),s=r(96628),a=r(3025);t.exports=function(t,e,r){var A=s(t)?n:i;return r&&a(t,e,r)&&(e=void 0),A(t,o(e,3))}},53331(t,e,r){var n=r(73001),i=r(69587),o=r(55992),s=r(96628);t.exports=function(t,e){return(s(t)?n:i)(t,o(e,3))}},23555(t,e,r){var n=r(34403);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},66771(t,e,r){var n=r(69384)(!0);t.exports=n},53541(t,e,r){var n=r(68123),i=r(80470),o=Array.prototype.push;function s(t,e){return 2==e?function(e,r){return t(e,r)}:function(e){return t(e)}}function a(t){for(var e=t?t.length:0,r=Array(e);e--;)r[e]=t[e];return r}function A(t,e){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var i=n[0]=e.apply(void 0,n);return t.apply(void 0,n),i}}}t.exports=function t(e,r,l,c){var h="function"==typeof r,u=r===Object(r);if(u&&(c=l,l=r,r=void 0),null==l)throw new TypeError;c||(c={});var p=!("cap"in c)||c.cap,f=!("curry"in c)||c.curry,d=!("fixed"in c)||c.fixed,g=!("immutable"in c)||c.immutable,m=!("rearg"in c)||c.rearg,y=h?l:i,v="curry"in c&&c.curry,b="fixed"in c&&c.fixed,w="rearg"in c&&c.rearg,x=h?l.runInContext():void 0,B=h?l:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},C=B.ary,_=B.assign,E=B.clone,S=B.curry,I=B.forEach,F=B.isArray,T=B.isError,k=B.isFunction,L=B.isWeakMap,P=B.keys,M=B.rearg,D=B.toInteger,N=B.toPath,O=P(n.aryMethod),U={castArray:function(t){return function(){var e=arguments[0];return F(e)?t(a(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[1],r=t(arguments[0],e),n=r.length;return p&&"number"==typeof e?(e=e>2?e-2:1,n&&n<=e?r:s(r,e)):r}},mixin:function(t){return function(e){var r=this;if(!k(r))return t(r,Object(e));var n=[];return I(P(e),function(t){k(e[t])&&n.push([t,r.prototype[t]])}),t(r,Object(e)),I(n,function(t){var e=t[1];k(e)?r.prototype[t[0]]=e:delete r.prototype[t[0]]}),r}},nthArg:function(t){return function(e){var r=e<0?1:D(e)+1;return S(t(e),r)}},rearg:function(t){return function(e,r){var n=r?r.length:0;return S(t(e,r),n)}},runInContext:function(r){return function(n){return t(e,r(n),c)}}};function Q(t,e,r){if(d&&(b||!n.skipFixed[t])){var i=n.methodSpread[t],s=i&&i.start;return void 0===s?C(e,r):function(t,e){return function(){for(var r=arguments.length,n=r-1,i=Array(r);r--;)i[r]=arguments[r];var s=i[e],a=i.slice(0,e);return s&&o.apply(a,s),e!=n&&o.apply(a,i.slice(e+1)),t.apply(this,a)}}(e,s)}return e}function R(t,e,r){return m&&r>1&&(w||!n.skipRearg[t])?M(e,n.methodRearg[t]||n.aryRearg[r]):e}function j(t,e){for(var r=-1,n=(e=N(e)).length,i=n-1,o=E(Object(t)),s=o;null!=s&&++r<n;){var a=e[r],A=s[a];null==A||k(A)||T(A)||L(A)||(s[a]=E(r==i?A:Object(A))),s=s[a]}return o}function H(e,r){var i=n.aliasToReal[e]||e,o=n.remap[i]||i,s=c;return function(e){var n=h?x:B,a=h?x[o]:r,A=_(_({},s),e);return t(n,i,a,A)}}function V(t,e){return function(){var r=arguments.length;if(!r)return t();for(var n=Array(r);r--;)n[r]=arguments[r];var i=m?0:r-1;return n[i]=e(n[i]),t.apply(void 0,n)}}function z(t,e,r){var i,o=n.aliasToReal[t]||t,l=e,c=U[o];return c?l=c(e):g&&(n.mutate.array[o]?l=A(e,a):n.mutate.object[o]?l=A(e,function(t){return function(e){return t({},e)}}(e)):n.mutate.set[o]&&(l=A(e,j))),I(O,function(t){return I(n.aryMethod[t],function(e){if(o==e){var r=n.methodSpread[o],a=r&&r.afterRearg;return i=a?Q(o,R(o,l,t),t):R(o,Q(o,l,t),t),i=function(t,e,r){return v||f&&r>1?S(e,r):e}(0,i=function(t,e){if(p){var r=n.iterateeRearg[t];if(r)return function(t,e){return V(t,function(t){var r=e.length;return function(t,e){return 2==e?function(e,r){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(M(s(t,r),e),r)})}(e,r);var i=!h&&n.iterateeAry[t];if(i)return function(t,e){return V(t,function(t){return"function"==typeof t?s(t,e):t})}(e,i)}return e}(o,i),t),!1}}),!i}),i||(i=l),i==e&&(i=v?S(i,1):function(){return e.apply(this,arguments)}),i.convert=H(o,e),i.placeholder=e.placeholder=r,i}if(!u)return z(r,l,y);var G=l,K=[];return I(O,function(t){I(n.aryMethod[t],function(t){var e=G[n.remap[t]||t];e&&K.push([t,z(t,e,G)])})}),I(P(G),function(t){var e=G[t];if("function"==typeof e){for(var r=K.length;r--;)if(K[r][0]==t)return;e.convert=H(t,e),K.push([t,e])}}),I(K,function(t){G[t[0]]=t[1]}),G.convert=function(t){return G.runInContext.convert(t)(void 0)},G.placeholder=G,I(P(G),function(t){I(n.realToAlias[t]||[],function(e){G[e]=G[t]})}),G}},68123(t,e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,r=e.aliasToReal,n={};for(var i in r){var o=r[i];t.call(n,o)?n[o].push(i):n[o]=[i]}return n}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},87945(t,e,r){t.exports={ary:r(27535),assign:r(5264),clone:r(7740),curry:r(99742),forEach:r(69542),isArray:r(96628),isError:r(71239),isFunction:r(65085),isWeakMap:r(77151),iteratee:r(64043),keys:r(41009),rearg:r(58806),toInteger:r(78164),toPath:r(38135)}},68851(t,e,r){var n=r(53541),i=r(87945);t.exports=function(t,e,r){return n(i,t,e,r)}},47106(t,e,r){var n=r(68851)("flowRight",r(66771));n.placeholder=r(80470),t.exports=n},80470(t){t.exports={}},47396(t,e,r){var n=r(68851)("set",r(17181));n.placeholder=r(80470),t.exports=n},32249(t,e,r){var n=r(85049);t.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},9355(t,e,r){var n=r(9935),i=r(52937),o=Object.prototype.hasOwnProperty,s=i(function(t,e,r){o.call(t,r)?t[r].push(e):n(t,r,[e])});t.exports=s},5830(t,e,r){var n=r(19142),i=r(86913);t.exports=function(t,e){return null!=t&&i(t,e,n)}},1007(t){t.exports=function(t){return t}},64201(t,e,r){var n=r(83465),i=r(28089),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,A=n(function(){return arguments}())?n:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=A},96628(t){var e=Array.isArray;t.exports=e},72059(t,e,r){var n=r(65085),i=r(33341);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},81856(t,e,r){var n=r(72059),i=r(28089);t.exports=function(t){return i(t)&&n(t)}},77103(t,e,r){t=r.nmd(t);var n=r(91736),i=r(14078),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,a=s&&s.exports===o?n.Buffer:void 0,A=(a?a.isBuffer:void 0)||i;t.exports=A},33600(t,e,r){var n=r(41009),i=r(55804),o=r(64201),s=r(96628),a=r(72059),A=r(77103),l=r(95804),c=r(68276),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(s(t)||"string"==typeof t||"function"==typeof t.splice||A(t)||c(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!n(t).length;for(var r in t)if(h.call(t,r))return!1;return!0}},51549(t,e,r){var n=r(14877);t.exports=function(t,e){return n(t,e)}},71239(t,e,r){var n=r(98561),i=r(28089),o=r(23506);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!o(t)}},65085(t,e,r){var n=r(98561),i=r(97230);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},33341(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},85487(t,e,r){var n=r(9839),i=r(36390),o=r(67728),s=o&&o.isMap,a=s?i(s):n;t.exports=a},59190(t){t.exports=function(t){return null==t}},31348(t){t.exports=function(t){return null===t}},93448(t,e,r){var n=r(98561),i=r(28089);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==n(t)}},97230(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},28089(t){t.exports=function(t){return null!=t&&"object"==typeof t}},23506(t,e,r){var n=r(98561),i=r(12566),o=r(28089),s=Function.prototype,a=Object.prototype,A=s.toString,l=a.hasOwnProperty,c=A.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=n(t))return!1;var e=i(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&A.call(r)==c}},49184(t,e,r){var n=r(78528),i=r(36390),o=r(67728),s=o&&o.isRegExp,a=s?i(s):n;t.exports=a},39601(t,e,r){var n=r(27217),i=r(36390),o=r(67728),s=o&&o.isSet,a=s?i(s):n;t.exports=a},83089(t,e,r){var n=r(98561),i=r(28089);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},68276(t,e,r){var n=r(3924),i=r(36390),o=r(67728),s=o&&o.isTypedArray,a=s?i(s):n;t.exports=a},95933(t){t.exports=function(t){return void 0===t}},77151(t,e,r){var n=r(55804),i=r(28089);t.exports=function(t){return i(t)&&"[object WeakMap]"==n(t)}},64043(t,e,r){var n=r(60444),i=r(55992);t.exports=function(t){return i("function"==typeof t?t:n(t,1))}},23047(t,e,r){var n=r(9935),i=r(52937)(function(t,e,r){n(t,r,e)});t.exports=i},86353(t,e,r){var n=r(51684),i=r(41009),o=r(72059);t.exports=function(t){return o(t)?n(t):i(t)}},93562(t,e,r){var n=r(51684),i=r(58458),o=r(72059);t.exports=function(t){return o(t)?n(t,!0):i(t)}},10017(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},49680(t,e,r){var n;t=r.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",A=32,l=128,c=1/0,h=9007199254740991,u=NaN,p=4294967295,f=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",A],["partialRight",64],["rearg",256]],d="[object Arguments]",g="[object Array]",m="[object Boolean]",y="[object Date]",v="[object Error]",b="[object Function]",w="[object GeneratorFunction]",x="[object Map]",B="[object Number]",C="[object Object]",_="[object Promise]",E="[object RegExp]",S="[object Set]",I="[object String]",F="[object Symbol]",T="[object WeakMap]",k="[object ArrayBuffer]",L="[object DataView]",P="[object Float32Array]",M="[object Float64Array]",D="[object Int8Array]",N="[object Int16Array]",O="[object Int32Array]",U="[object Uint8Array]",Q="[object Uint8ClampedArray]",R="[object Uint16Array]",j="[object Uint32Array]",H=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,q=RegExp(G.source),W=RegExp(K.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(et.source),nt=/^\s+/,it=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,At=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ut=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,dt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Bt="\\u2700-\\u27bf",Ct="a-z\\xdf-\\xf6\\xf8-\\xff",_t="A-Z\\xc0-\\xd6\\xd8-\\xde",Et="\\ufe0e\\ufe0f",St="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",It="["+wt+"]",Ft="["+St+"]",Tt="["+xt+"]",kt="\\d+",Lt="["+Bt+"]",Pt="["+Ct+"]",Mt="[^"+wt+St+kt+Bt+Ct+_t+"]",Dt="\\ud83c[\\udffb-\\udfff]",Nt="[^"+wt+"]",Ot="(?:\\ud83c[\\udde6-\\uddff]){2}",Ut="[\\ud800-\\udbff][\\udc00-\\udfff]",Qt="["+_t+"]",Rt="\\u200d",jt="(?:"+Pt+"|"+Mt+")",Ht="(?:"+Qt+"|"+Mt+")",Vt="(?:['’](?:d|ll|m|re|s|t|ve))?",zt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Tt+"|"+Dt+")?",Kt="["+Et+"]?",qt=Kt+Gt+"(?:"+Rt+"(?:"+[Nt,Ot,Ut].join("|")+")"+Kt+Gt+")*",Wt="(?:"+[Lt,Ot,Ut].join("|")+")"+qt,Yt="(?:"+[Nt+Tt+"?",Tt,Ot,Ut,It].join("|")+")",Xt=RegExp("['’]","g"),Jt=RegExp(Tt,"g"),Zt=RegExp(Dt+"(?="+Dt+")|"+Yt+qt,"g"),$t=RegExp([Qt+"?"+Pt+"+"+Vt+"(?="+[Ft,Qt,"$"].join("|")+")",Ht+"+"+zt+"(?="+[Ft,Qt+jt,"$"].join("|")+")",Qt+"?"+jt+"+"+Vt,Qt+"+"+zt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kt,Wt].join("|"),"g"),te=RegExp("["+Rt+wt+xt+Et+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,ie={};ie[P]=ie[M]=ie[D]=ie[N]=ie[O]=ie[U]=ie[Q]=ie[R]=ie[j]=!0,ie[d]=ie[g]=ie[k]=ie[m]=ie[L]=ie[y]=ie[v]=ie[b]=ie[x]=ie[B]=ie[C]=ie[E]=ie[S]=ie[I]=ie[T]=!1;var oe={};oe[d]=oe[g]=oe[k]=oe[L]=oe[m]=oe[y]=oe[P]=oe[M]=oe[D]=oe[N]=oe[O]=oe[x]=oe[B]=oe[C]=oe[E]=oe[S]=oe[I]=oe[F]=oe[U]=oe[Q]=oe[R]=oe[j]=!0,oe[v]=oe[b]=oe[T]=!1;var se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,Ae=parseInt,le="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,ce="object"==typeof self&&self&&self.Object===Object&&self,he=le||ce||Function("return this")(),ue=e&&!e.nodeType&&e,pe=ue&&t&&!t.nodeType&&t,fe=pe&&pe.exports===ue,de=fe&&le.process,ge=function(){try{return pe&&pe.require&&pe.require("util").types||de&&de.binding&&de.binding("util")}catch(t){}}(),me=ge&&ge.isArrayBuffer,ye=ge&&ge.isDate,ve=ge&&ge.isMap,be=ge&&ge.isRegExp,we=ge&&ge.isSet,xe=ge&&ge.isTypedArray;function Be(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ce(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(n,s,r(s),t)}return n}function _e(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function Ee(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function Se(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function Ie(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s,r,t)&&(o[i++]=s)}return o}function Fe(t,e){return!(null==t||!t.length)&&Qe(t,e,0)>-1}function Te(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}function ke(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}function Le(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}function Pe(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}function Me(t,e,r,n){var i=null==t?0:t.length;for(n&&i&&(r=t[--i]);i--;)r=e(r,t[i],i,t);return r}function De(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Ne=Ve("length");function Oe(t,e,r){var n;return r(t,function(t,r,i){if(e(t,r,i))return n=r,!1}),n}function Ue(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Qe(t,e,r){return e==e?function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}(t,e,r):Ue(t,je,r)}function Re(t,e,r,n){for(var i=r-1,o=t.length;++i<o;)if(n(t[i],e))return i;return-1}function je(t){return t!=t}function He(t,e){var r=null==t?0:t.length;return r?Ke(t,e)/r:u}function Ve(t){return function(e){return null==e?i:e[t]}}function ze(t){return function(e){return null==t?i:t[e]}}function Ge(t,e,r,n,i){return i(t,function(t,i,o){r=n?(n=!1,t):e(r,t,i,o)}),r}function Ke(t,e){for(var r,n=-1,o=t.length;++n<o;){var s=e(t[n]);s!==i&&(r=r===i?s:r+s)}return r}function qe(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function We(t){return t?t.slice(0,hr(t)+1).replace(nt,""):t}function Ye(t){return function(e){return t(e)}}function Xe(t,e){return ke(e,function(e){return t[e]})}function Je(t,e){return t.has(e)}function Ze(t,e){for(var r=-1,n=t.length;++r<n&&Qe(e,t[r],0)>-1;);return r}function $e(t,e){for(var r=t.length;r--&&Qe(e,t[r],0)>-1;);return r}var tr=ze({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),er=ze({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rr(t){return"\\"+se[t]}function nr(t){return te.test(t)}function ir(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function or(t,e){return function(r){return t(e(r))}}function sr(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var s=t[r];s!==e&&s!==a||(t[r]=a,o[i++]=r)}return o}function ar(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function Ar(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=[t,t]}),r}function lr(t){return nr(t)?function(t){for(var e=Zt.lastIndex=0;Zt.test(t);)++e;return e}(t):Ne(t)}function cr(t){return nr(t)?function(t){return t.match(Zt)||[]}(t):function(t){return t.split("")}(t)}function hr(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var ur=ze({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),pr=function t(e){var r,n=(e=null==e?he:pr.defaults(he.Object(),e,pr.pick(he,re))).Array,it=e.Date,wt=e.Error,xt=e.Function,Bt=e.Math,Ct=e.Object,_t=e.RegExp,Et=e.String,St=e.TypeError,It=n.prototype,Ft=xt.prototype,Tt=Ct.prototype,kt=e["__core-js_shared__"],Lt=Ft.toString,Pt=Tt.hasOwnProperty,Mt=0,Dt=(r=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Nt=Tt.toString,Ot=Lt.call(Ct),Ut=he._,Qt=_t("^"+Lt.call(Pt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=fe?e.Buffer:i,jt=e.Symbol,Ht=e.Uint8Array,Vt=Rt?Rt.allocUnsafe:i,zt=or(Ct.getPrototypeOf,Ct),Gt=Ct.create,Kt=Tt.propertyIsEnumerable,qt=It.splice,Wt=jt?jt.isConcatSpreadable:i,Yt=jt?jt.iterator:i,Zt=jt?jt.toStringTag:i,te=function(){try{var t=Ao(Ct,"defineProperty");return t({},"",{}),t}catch(t){}}(),se=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,le=it&&it.now!==he.Date.now&&it.now,ce=e.setTimeout!==he.setTimeout&&e.setTimeout,ue=Bt.ceil,pe=Bt.floor,de=Ct.getOwnPropertySymbols,ge=Rt?Rt.isBuffer:i,Ne=e.isFinite,ze=It.join,fr=or(Ct.keys,Ct),dr=Bt.max,gr=Bt.min,mr=it.now,yr=e.parseInt,vr=Bt.random,br=It.reverse,wr=Ao(e,"DataView"),xr=Ao(e,"Map"),Br=Ao(e,"Promise"),Cr=Ao(e,"Set"),_r=Ao(e,"WeakMap"),Er=Ao(Ct,"create"),Sr=_r&&new _r,Ir={},Fr=Oo(wr),Tr=Oo(xr),kr=Oo(Br),Lr=Oo(Cr),Pr=Oo(_r),Mr=jt?jt.prototype:i,Dr=Mr?Mr.valueOf:i,Nr=Mr?Mr.toString:i;function Or(t){if(ta(t)&&!Vs(t)&&!(t instanceof jr)){if(t instanceof Rr)return t;if(Pt.call(t,"__wrapped__"))return Uo(t)}return new Rr(t)}var Ur=function(){function t(){}return function(e){if(!$s(e))return{};if(Gt)return Gt(e);t.prototype=e;var r=new t;return t.prototype=i,r}}();function Qr(){}function Rr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function jr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Hr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Vr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function zr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Gr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new zr;++e<r;)this.add(t[e])}function Kr(t){var e=this.__data__=new Vr(t);this.size=e.size}function qr(t,e){var r=Vs(t),n=!r&&Hs(t),i=!r&&!n&&qs(t),o=!r&&!n&&!i&&Aa(t),s=r||n||i||o,a=s?qe(t.length,Et):[],A=a.length;for(var l in t)!e&&!Pt.call(t,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||go(l,A))||a.push(l);return a}function Wr(t){var e=t.length;return e?t[Gn(0,e-1)]:i}function Yr(t,e){return Lo(Ei(t),on(e,0,t.length))}function Xr(t){return Lo(Ei(t))}function Jr(t,e,r){(r!==i&&!Qs(t[e],r)||r===i&&!(e in t))&&rn(t,e,r)}function Zr(t,e,r){var n=t[e];Pt.call(t,e)&&Qs(n,r)&&(r!==i||e in t)||rn(t,e,r)}function $r(t,e){for(var r=t.length;r--;)if(Qs(t[r][0],e))return r;return-1}function tn(t,e,r,n){return cn(t,function(t,i,o){e(n,t,r(t),o)}),n}function en(t,e){return t&&Si(e,Ta(e),t)}function rn(t,e,r){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function nn(t,e){for(var r=-1,o=e.length,s=n(o),a=null==t;++r<o;)s[r]=a?i:_a(t,e[r]);return s}function on(t,e,r){return t==t&&(r!==i&&(t=t<=r?t:r),e!==i&&(t=t>=e?t:e)),t}function sn(t,e,r,n,o,s){var a,A=1&e,l=2&e,c=4&e;if(r&&(a=o?r(t,n,o,s):r(t)),a!==i)return a;if(!$s(t))return t;var h=Vs(t);if(h){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Pt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!A)return Ei(t,a)}else{var u=ho(t),p=u==b||u==w;if(qs(t))return bi(t,A);if(u==C||u==d||p&&!o){if(a=l||p?{}:po(t),!A)return l?function(t,e){return Si(t,co(t),e)}(t,function(t,e){return t&&Si(e,ka(e),t)}(a,t)):function(t,e){return Si(t,lo(t),e)}(t,en(a,t))}else{if(!oe[u])return o?t:{};a=function(t,e,r){var n,i=t.constructor;switch(e){case k:return wi(t);case m:case y:return new i(+t);case L:return function(t,e){var r=e?wi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case P:case M:case D:case N:case O:case U:case Q:case R:case j:return xi(t,r);case x:return new i;case B:case I:return new i(t);case E:return function(t){var e=new t.constructor(t.source,ut.exec(t));return e.lastIndex=t.lastIndex,e}(t);case S:return new i;case F:return n=t,Dr?Ct(Dr.call(n)):{}}}(t,u,A)}}s||(s=new Kr);var f=s.get(t);if(f)return f;s.set(t,a),oa(t)?t.forEach(function(n){a.add(sn(n,e,r,n,t,s))}):ea(t)&&t.forEach(function(n,i){a.set(i,sn(n,e,r,i,t,s))});var g=h?i:(c?l?eo:to:l?ka:Ta)(t);return _e(g||t,function(n,i){g&&(n=t[i=n]),Zr(a,i,sn(n,e,r,i,t,s))}),a}function an(t,e,r){var n=r.length;if(null==t)return!n;for(t=Ct(t);n--;){var o=r[n],s=e[o],a=t[o];if(a===i&&!(o in t)||!s(a))return!1}return!0}function An(t,e,r){if("function"!=typeof t)throw new St(o);return Io(function(){t.apply(i,r)},e)}function ln(t,e,r,n){var i=-1,o=Fe,s=!0,a=t.length,A=[],l=e.length;if(!a)return A;r&&(e=ke(e,Ye(r))),n?(o=Te,s=!1):e.length>=200&&(o=Je,s=!1,e=new Gr(e));t:for(;++i<a;){var c=t[i],h=null==r?c:r(c);if(c=n||0!==c?c:0,s&&h==h){for(var u=l;u--;)if(e[u]===h)continue t;A.push(c)}else o(e,h,n)||A.push(c)}return A}Or.templateSettings={escape:Y,evaluate:X,interpolate:J,variable:"",imports:{_:Or}},Or.prototype=Qr.prototype,Or.prototype.constructor=Or,Rr.prototype=Ur(Qr.prototype),Rr.prototype.constructor=Rr,jr.prototype=Ur(Qr.prototype),jr.prototype.constructor=jr,Hr.prototype.clear=function(){this.__data__=Er?Er(null):{},this.size=0},Hr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Hr.prototype.get=function(t){var e=this.__data__;if(Er){var r=e[t];return r===s?i:r}return Pt.call(e,t)?e[t]:i},Hr.prototype.has=function(t){var e=this.__data__;return Er?e[t]!==i:Pt.call(e,t)},Hr.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Er&&e===i?s:e,this},Vr.prototype.clear=function(){this.__data__=[],this.size=0},Vr.prototype.delete=function(t){var e=this.__data__,r=$r(e,t);return!(r<0||(r==e.length-1?e.pop():qt.call(e,r,1),--this.size,0))},Vr.prototype.get=function(t){var e=this.__data__,r=$r(e,t);return r<0?i:e[r][1]},Vr.prototype.has=function(t){return $r(this.__data__,t)>-1},Vr.prototype.set=function(t,e){var r=this.__data__,n=$r(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},zr.prototype.clear=function(){this.size=0,this.__data__={hash:new Hr,map:new(xr||Vr),string:new Hr}},zr.prototype.delete=function(t){var e=so(this,t).delete(t);return this.size-=e?1:0,e},zr.prototype.get=function(t){return so(this,t).get(t)},zr.prototype.has=function(t){return so(this,t).has(t)},zr.prototype.set=function(t,e){var r=so(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Gr.prototype.add=Gr.prototype.push=function(t){return this.__data__.set(t,s),this},Gr.prototype.has=function(t){return this.__data__.has(t)},Kr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Kr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Kr.prototype.get=function(t){return this.__data__.get(t)},Kr.prototype.has=function(t){return this.__data__.has(t)},Kr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Vr){var n=r.__data__;if(!xr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new zr(n)}return r.set(t,e),this.size=r.size,this};var cn=Ti(yn),hn=Ti(vn,!0);function un(t,e){var r=!0;return cn(t,function(t,n,i){return r=!!e(t,n,i)}),r}function pn(t,e,r){for(var n=-1,o=t.length;++n<o;){var s=t[n],a=e(s);if(null!=a&&(A===i?a==a&&!aa(a):r(a,A)))var A=a,l=s}return l}function fn(t,e){var r=[];return cn(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r}function dn(t,e,r,n,i){var o=-1,s=t.length;for(r||(r=fo),i||(i=[]);++o<s;){var a=t[o];e>0&&r(a)?e>1?dn(a,e-1,r,n,i):Le(i,a):n||(i[i.length]=a)}return i}var gn=ki(),mn=ki(!0);function yn(t,e){return t&&gn(t,e,Ta)}function vn(t,e){return t&&mn(t,e,Ta)}function bn(t,e){return Ie(e,function(e){return Xs(t[e])})}function wn(t,e){for(var r=0,n=(e=gi(e,t)).length;null!=t&&r<n;)t=t[No(e[r++])];return r&&r==n?t:i}function xn(t,e,r){var n=e(t);return Vs(t)?n:Le(n,r(t))}function Bn(t){return null==t?t===i?"[object Undefined]":"[object Null]":Zt&&Zt in Ct(t)?function(t){var e=Pt.call(t,Zt),r=t[Zt];try{t[Zt]=i;var n=!0}catch(t){}var o=Nt.call(t);return n&&(e?t[Zt]=r:delete t[Zt]),o}(t):function(t){return Nt.call(t)}(t)}function Cn(t,e){return t>e}function _n(t,e){return null!=t&&Pt.call(t,e)}function En(t,e){return null!=t&&e in Ct(t)}function Sn(t,e,r){for(var o=r?Te:Fe,s=t[0].length,a=t.length,A=a,l=n(a),c=1/0,h=[];A--;){var u=t[A];A&&e&&(u=ke(u,Ye(e))),c=gr(u.length,c),l[A]=!r&&(e||s>=120&&u.length>=120)?new Gr(A&&u):i}u=t[0];var p=-1,f=l[0];t:for(;++p<s&&h.length<c;){var d=u[p],g=e?e(d):d;if(d=r||0!==d?d:0,!(f?Je(f,g):o(h,g,r))){for(A=a;--A;){var m=l[A];if(!(m?Je(m,g):o(t[A],g,r)))continue t}f&&f.push(g),h.push(d)}}return h}function In(t,e,r){var n=null==(t=_o(t,e=gi(e,t)))?t:t[No(Yo(e))];return null==n?i:Be(n,t,r)}function Fn(t){return ta(t)&&Bn(t)==d}function Tn(t,e,r,n,o){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,r,n,o,s){var a=Vs(t),A=Vs(e),l=a?g:ho(t),c=A?g:ho(e),h=(l=l==d?C:l)==C,u=(c=c==d?C:c)==C,p=l==c;if(p&&qs(t)){if(!qs(e))return!1;a=!0,h=!1}if(p&&!h)return s||(s=new Kr),a||Aa(t)?Zi(t,e,r,n,o,s):function(t,e,r,n,i,o,s){switch(r){case L:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case k:return!(t.byteLength!=e.byteLength||!o(new Ht(t),new Ht(e)));case m:case y:case B:return Qs(+t,+e);case v:return t.name==e.name&&t.message==e.message;case E:case I:return t==e+"";case x:var a=ir;case S:var A=1&n;if(a||(a=ar),t.size!=e.size&&!A)return!1;var l=s.get(t);if(l)return l==e;n|=2,s.set(t,e);var c=Zi(a(t),a(e),n,i,o,s);return s.delete(t),c;case F:if(Dr)return Dr.call(t)==Dr.call(e)}return!1}(t,e,l,r,n,o,s);if(!(1&r)){var f=h&&Pt.call(t,"__wrapped__"),b=u&&Pt.call(e,"__wrapped__");if(f||b){var w=f?t.value():t,_=b?e.value():e;return s||(s=new Kr),o(w,_,r,n,s)}}return!!p&&(s||(s=new Kr),function(t,e,r,n,o,s){var a=1&r,A=to(t),l=A.length;if(l!=to(e).length&&!a)return!1;for(var c=l;c--;){var h=A[c];if(!(a?h in e:Pt.call(e,h)))return!1}var u=s.get(t),p=s.get(e);if(u&&p)return u==e&&p==t;var f=!0;s.set(t,e),s.set(e,t);for(var d=a;++c<l;){var g=t[h=A[c]],m=e[h];if(n)var y=a?n(m,g,h,e,t,s):n(g,m,h,t,e,s);if(!(y===i?g===m||o(g,m,r,n,s):y)){f=!1;break}d||(d="constructor"==h)}if(f&&!d){var v=t.constructor,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(f=!1)}return s.delete(t),s.delete(e),f}(t,e,r,n,o,s))}(t,e,r,n,Tn,o))}function kn(t,e,r,n){var o=r.length,s=o,a=!n;if(null==t)return!s;for(t=Ct(t);o--;){var A=r[o];if(a&&A[2]?A[1]!==t[A[0]]:!(A[0]in t))return!1}for(;++o<s;){var l=(A=r[o])[0],c=t[l],h=A[1];if(a&&A[2]){if(c===i&&!(l in t))return!1}else{var u=new Kr;if(n)var p=n(c,h,l,t,e,u);if(!(p===i?Tn(h,c,3,n,u):p))return!1}}return!0}function Ln(t){return!(!$s(t)||(e=t,Dt&&Dt in e))&&(Xs(t)?Qt:dt).test(Oo(t));var e}function Pn(t){return"function"==typeof t?t:null==t?rA:"object"==typeof t?Vs(t)?Un(t[0],t[1]):On(t):hA(t)}function Mn(t){if(!wo(t))return fr(t);var e=[];for(var r in Ct(t))Pt.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Dn(t,e){return t<e}function Nn(t,e){var r=-1,i=Gs(t)?n(t.length):[];return cn(t,function(t,n,o){i[++r]=e(t,n,o)}),i}function On(t){var e=ao(t);return 1==e.length&&e[0][2]?Bo(e[0][0],e[0][1]):function(r){return r===t||kn(r,t,e)}}function Un(t,e){return yo(t)&&xo(e)?Bo(No(t),e):function(r){var n=_a(r,t);return n===i&&n===e?Ea(r,t):Tn(e,n,3)}}function Qn(t,e,r,n,o){t!==e&&gn(e,function(s,a){if(o||(o=new Kr),$s(s))!function(t,e,r,n,o,s,a){var A=Eo(t,r),l=Eo(e,r),c=a.get(l);if(c)Jr(t,r,c);else{var h=s?s(A,l,r+"",t,e,a):i,u=h===i;if(u){var p=Vs(l),f=!p&&qs(l),d=!p&&!f&&Aa(l);h=l,p||f||d?Vs(A)?h=A:Ks(A)?h=Ei(A):f?(u=!1,h=bi(l,!0)):d?(u=!1,h=xi(l,!0)):h=[]:na(l)||Hs(l)?(h=A,Hs(A)?h=ga(A):$s(A)&&!Xs(A)||(h=po(l))):u=!1}u&&(a.set(l,h),o(h,l,n,s,a),a.delete(l)),Jr(t,r,h)}}(t,e,a,r,Qn,n,o);else{var A=n?n(Eo(t,a),s,a+"",t,e,o):i;A===i&&(A=s),Jr(t,a,A)}},ka)}function Rn(t,e){var r=t.length;if(r)return go(e+=e<0?r:0,r)?t[e]:i}function jn(t,e,r){e=e.length?ke(e,function(t){return Vs(t)?function(e){return wn(e,1===t.length?t[0]:t)}:t}):[rA];var n=-1;e=ke(e,Ye(oo()));var i=Nn(t,function(t,r,i){var o=ke(e,function(e){return e(t)});return{criteria:o,index:++n,value:t}});return function(t){var e=t.length;for(t.sort(function(t,e){return function(t,e,r){for(var n=-1,i=t.criteria,o=e.criteria,s=i.length,a=r.length;++n<s;){var A=Bi(i[n],o[n]);if(A)return n>=a?A:A*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)});e--;)t[e]=t[e].value;return t}(i)}function Hn(t,e,r){for(var n=-1,i=e.length,o={};++n<i;){var s=e[n],a=wn(t,s);r(a,s)&&Xn(o,gi(s,t),a)}return o}function Vn(t,e,r,n){var i=n?Re:Qe,o=-1,s=e.length,a=t;for(t===e&&(e=Ei(e)),r&&(a=ke(t,Ye(r)));++o<s;)for(var A=0,l=e[o],c=r?r(l):l;(A=i(a,c,A,n))>-1;)a!==t&&qt.call(a,A,1),qt.call(t,A,1);return t}function zn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;go(i)?qt.call(t,i,1):Ai(t,i)}}return t}function Gn(t,e){return t+pe(vr()*(e-t+1))}function Kn(t,e){var r="";if(!t||e<1||e>h)return r;do{e%2&&(r+=t),(e=pe(e/2))&&(t+=t)}while(e);return r}function qn(t,e){return Fo(Co(t,e,rA),t+"")}function Wn(t){return Wr(Qa(t))}function Yn(t,e){var r=Qa(t);return Lo(r,on(e,0,r.length))}function Xn(t,e,r,n){if(!$s(t))return t;for(var o=-1,s=(e=gi(e,t)).length,a=s-1,A=t;null!=A&&++o<s;){var l=No(e[o]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(o!=a){var h=A[l];(c=n?n(h,l,A):i)===i&&(c=$s(h)?h:go(e[o+1])?[]:{})}Zr(A,l,c),A=A[l]}return t}var Jn=Sr?function(t,e){return Sr.set(t,e),t}:rA,Zn=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:$a(e),writable:!0})}:rA;function $n(t){return Lo(Qa(t))}function ti(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var s=n(o);++i<o;)s[i]=t[i+e];return s}function ei(t,e){var r;return cn(t,function(t,n,i){return!(r=e(t,n,i))}),!!r}function ri(t,e,r){var n=0,i=null==t?n:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=t[o];null!==s&&!aa(s)&&(r?s<=e:s<e)?n=o+1:i=o}return i}return ni(t,e,rA,r)}function ni(t,e,r,n){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(e=r(e))!=e,A=null===e,l=aa(e),c=e===i;o<s;){var h=pe((o+s)/2),u=r(t[h]),p=u!==i,f=null===u,d=u==u,g=aa(u);if(a)var m=n||d;else m=c?d&&(n||p):A?d&&p&&(n||!f):l?d&&p&&!f&&(n||!g):!f&&!g&&(n?u<=e:u<e);m?o=h+1:s=h}return gr(s,4294967294)}function ii(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var s=t[r],a=e?e(s):s;if(!r||!Qs(a,A)){var A=a;o[i++]=0===s?0:s}}return o}function oi(t){return"number"==typeof t?t:aa(t)?u:+t}function si(t){if("string"==typeof t)return t;if(Vs(t))return ke(t,si)+"";if(aa(t))return Nr?Nr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ai(t,e,r){var n=-1,i=Fe,o=t.length,s=!0,a=[],A=a;if(r)s=!1,i=Te;else if(o>=200){var l=e?null:Ki(t);if(l)return ar(l);s=!1,i=Je,A=new Gr}else A=e?[]:a;t:for(;++n<o;){var c=t[n],h=e?e(c):c;if(c=r||0!==c?c:0,s&&h==h){for(var u=A.length;u--;)if(A[u]===h)continue t;e&&A.push(h),a.push(c)}else i(A,h,r)||(A!==a&&A.push(h),a.push(c))}return a}function Ai(t,e){var r=-1,n=(e=gi(e,t)).length;if(!n)return!0;for(var i=null==t||"object"!=typeof t&&"function"!=typeof t;++r<n;){var o=e[r];if("string"==typeof o){if("__proto__"===o&&!Pt.call(t,"__proto__"))return!1;if("constructor"===o&&r+1<n&&"string"==typeof e[r+1]&&"prototype"===e[r+1]){if(i&&0===r)continue;return!1}}}var s=_o(t,e);return null==s||delete s[No(Yo(e))]}function li(t,e,r,n){return Xn(t,e,r(wn(t,e)),n)}function ci(t,e,r,n){for(var i=t.length,o=n?i:-1;(n?o--:++o<i)&&e(t[o],o,t););return r?ti(t,n?0:o,n?o+1:i):ti(t,n?o+1:0,n?i:o)}function hi(t,e){var r=t;return r instanceof jr&&(r=r.value()),Pe(e,function(t,e){return e.func.apply(e.thisArg,Le([t],e.args))},r)}function ui(t,e,r){var i=t.length;if(i<2)return i?ai(t[0]):[];for(var o=-1,s=n(i);++o<i;)for(var a=t[o],A=-1;++A<i;)A!=o&&(s[o]=ln(s[o]||a,t[A],e,r));return ai(dn(s,1),e,r)}function pi(t,e,r){for(var n=-1,o=t.length,s=e.length,a={};++n<o;){var A=n<s?e[n]:i;r(a,t[n],A)}return a}function fi(t){return Ks(t)?t:[]}function di(t){return"function"==typeof t?t:rA}function gi(t,e){return Vs(t)?t:yo(t,e)?[t]:Do(ma(t))}var mi=qn;function yi(t,e,r){var n=t.length;return r=r===i?n:r,!e&&r>=n?t:ti(t,e,r)}var vi=se||function(t){return he.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var r=t.length,n=Vt?Vt(r):new t.constructor(r);return t.copy(n),n}function wi(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function xi(t,e){var r=e?wi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Bi(t,e){if(t!==e){var r=t!==i,n=null===t,o=t==t,s=aa(t),a=e!==i,A=null===e,l=e==e,c=aa(e);if(!A&&!c&&!s&&t>e||s&&a&&l&&!A&&!c||n&&a&&l||!r&&l||!o)return 1;if(!n&&!s&&!c&&t<e||c&&r&&o&&!n&&!s||A&&r&&o||!a&&o||!l)return-1}return 0}function Ci(t,e,r,i){for(var o=-1,s=t.length,a=r.length,A=-1,l=e.length,c=dr(s-a,0),h=n(l+c),u=!i;++A<l;)h[A]=e[A];for(;++o<a;)(u||o<s)&&(h[r[o]]=t[o]);for(;c--;)h[A++]=t[o++];return h}function _i(t,e,r,i){for(var o=-1,s=t.length,a=-1,A=r.length,l=-1,c=e.length,h=dr(s-A,0),u=n(h+c),p=!i;++o<h;)u[o]=t[o];for(var f=o;++l<c;)u[f+l]=e[l];for(;++a<A;)(p||o<s)&&(u[f+r[a]]=t[o++]);return u}function Ei(t,e){var r=-1,i=t.length;for(e||(e=n(i));++r<i;)e[r]=t[r];return e}function Si(t,e,r,n){var o=!r;r||(r={});for(var s=-1,a=e.length;++s<a;){var A=e[s],l=n?n(r[A],t[A],A,r,t):i;l===i&&(l=t[A]),o?rn(r,A,l):Zr(r,A,l)}return r}function Ii(t,e){return function(r,n){var i=Vs(r)?Ce:tn,o=e?e():{};return i(r,t,oo(n,2),o)}}function Fi(t){return qn(function(e,r){var n=-1,o=r.length,s=o>1?r[o-1]:i,a=o>2?r[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,a&&mo(r[0],r[1],a)&&(s=o<3?i:s,o=1),e=Ct(e);++n<o;){var A=r[n];A&&t(e,A,n,s)}return e})}function Ti(t,e){return function(r,n){if(null==r)return r;if(!Gs(r))return t(r,n);for(var i=r.length,o=e?i:-1,s=Ct(r);(e?o--:++o<i)&&!1!==n(s[o],o,s););return r}}function ki(t){return function(e,r,n){for(var i=-1,o=Ct(e),s=n(e),a=s.length;a--;){var A=s[t?a:++i];if(!1===r(o[A],A,o))break}return e}}function Li(t){return function(e){var r=nr(e=ma(e))?cr(e):i,n=r?r[0]:e.charAt(0),o=r?yi(r,1).join(""):e.slice(1);return n[t]()+o}}function Pi(t){return function(e){return Pe(Xa(Ha(e).replace(Xt,"")),t,"")}}function Mi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=Ur(t.prototype),n=t.apply(r,e);return $s(n)?n:r}}function Di(t){return function(e,r,n){var o=Ct(e);if(!Gs(e)){var s=oo(r,3);e=Ta(e),r=function(t){return s(o[t],t,o)}}var a=t(e,r,n);return a>-1?o[s?e[a]:a]:i}}function Ni(t){return $i(function(e){var r=e.length,n=r,s=Rr.prototype.thru;for(t&&e.reverse();n--;){var a=e[n];if("function"!=typeof a)throw new St(o);if(s&&!A&&"wrapper"==no(a))var A=new Rr([],!0)}for(n=A?n:r;++n<r;){var l=no(a=e[n]),c="wrapper"==l?ro(a):i;A=c&&vo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?A[no(c[0])].apply(A,c[3]):1==a.length&&vo(a)?A[l]():A.thru(a)}return function(){var t=arguments,n=t[0];if(A&&1==t.length&&Vs(n))return A.plant(n).value();for(var i=0,o=r?e[i].apply(this,t):n;++i<r;)o=e[i].call(this,o);return o}})}function Oi(t,e,r,o,s,a,A,c,h,u){var p=e&l,f=1&e,d=2&e,g=24&e,m=512&e,y=d?i:Mi(t);return function l(){for(var v=arguments.length,b=n(v),w=v;w--;)b[w]=arguments[w];if(g)var x=io(l),B=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}(b,x);if(o&&(b=Ci(b,o,s,g)),a&&(b=_i(b,a,A,g)),v-=B,g&&v<u){var C=sr(b,x);return zi(t,e,Oi,l.placeholder,r,b,C,c,h,u-v)}var _=f?r:this,E=d?_[t]:t;return v=b.length,c?b=function(t,e){for(var r=t.length,n=gr(e.length,r),o=Ei(t);n--;){var s=e[n];t[n]=go(s,r)?o[s]:i}return t}(b,c):m&&v>1&&b.reverse(),p&&h<v&&(b.length=h),this&&this!==he&&this instanceof l&&(E=y||Mi(E)),E.apply(_,b)}}function Ui(t,e){return function(r,n){return function(t,e,r,n){return yn(t,function(t,i,o){e(n,r(t),i,o)}),n}(r,t,e(n),{})}}function Qi(t,e){return function(r,n){var o;if(r===i&&n===i)return e;if(r!==i&&(o=r),n!==i){if(o===i)return n;"string"==typeof r||"string"==typeof n?(r=si(r),n=si(n)):(r=oi(r),n=oi(n)),o=t(r,n)}return o}}function Ri(t){return $i(function(e){return e=ke(e,Ye(oo())),qn(function(r){var n=this;return t(e,function(t){return Be(t,n,r)})})})}function ji(t,e){var r=(e=e===i?" ":si(e)).length;if(r<2)return r?Kn(e,t):e;var n=Kn(e,ue(t/lr(e)));return nr(e)?yi(cr(n),0,t).join(""):n.slice(0,t)}function Hi(t){return function(e,r,o){return o&&"number"!=typeof o&&mo(e,r,o)&&(r=o=i),e=ua(e),r===i?(r=e,e=0):r=ua(r),function(t,e,r,i){for(var o=-1,s=dr(ue((e-t)/(r||1)),0),a=n(s);s--;)a[i?s:++o]=t,t+=r;return a}(e,r,o=o===i?e<r?1:-1:ua(o),t)}}function Vi(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=da(e),r=da(r)),t(e,r)}}function zi(t,e,r,n,o,s,a,l,c,h){var u=8&e;e|=u?A:64,4&(e&=~(u?64:A))||(e&=-4);var p=[t,e,o,u?s:i,u?a:i,u?i:s,u?i:a,l,c,h],f=r.apply(i,p);return vo(t)&&So(f,p),f.placeholder=n,To(f,t,e)}function Gi(t){var e=Bt[t];return function(t,r){if(t=da(t),(r=null==r?0:gr(pa(r),292))&&Ne(t)){var n=(ma(t)+"e").split("e");return+((n=(ma(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Ki=Cr&&1/ar(new Cr([,-0]))[1]==c?function(t){return new Cr(t)}:aA;function qi(t){return function(e){var r=ho(e);return r==x?ir(e):r==S?Ar(e):function(t,e){return ke(e,function(e){return[e,t[e]]})}(e,t(e))}}function Wi(t,e,r,s,c,h,u,p){var f=2&e;if(!f&&"function"!=typeof t)throw new St(o);var d=s?s.length:0;if(d||(e&=-97,s=c=i),u=u===i?u:dr(pa(u),0),p=p===i?p:pa(p),d-=c?c.length:0,64&e){var g=s,m=c;s=c=i}var y=f?i:ro(t),v=[t,e,r,s,c,g,m,h,u,p];if(y&&function(t,e){var r=t[1],n=e[1],i=r|n,o=i<131,s=n==l&&8==r||n==l&&256==r&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!o&&!s)return t;1&n&&(t[2]=e[2],i|=1&r?0:4);var A=e[3];if(A){var c=t[3];t[3]=c?Ci(c,A,e[4]):A,t[4]=c?sr(t[3],a):e[4]}(A=e[5])&&(c=t[5],t[5]=c?_i(c,A,e[6]):A,t[6]=c?sr(t[5],a):e[6]),(A=e[7])&&(t[7]=A),n&l&&(t[8]=null==t[8]?e[8]:gr(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(v,y),t=v[0],e=v[1],r=v[2],s=v[3],c=v[4],!(p=v[9]=v[9]===i?f?0:t.length:dr(v[9]-d,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,r){var o=Mi(t);return function s(){for(var a=arguments.length,A=n(a),l=a,c=io(s);l--;)A[l]=arguments[l];var h=a<3&&A[0]!==c&&A[a-1]!==c?[]:sr(A,c);return(a-=h.length)<r?zi(t,e,Oi,s.placeholder,i,A,h,i,i,r-a):Be(this&&this!==he&&this instanceof s?o:t,this,A)}}(t,e,p):e!=A&&33!=e||c.length?Oi.apply(i,v):function(t,e,r,i){var o=1&e,s=Mi(t);return function e(){for(var a=-1,A=arguments.length,l=-1,c=i.length,h=n(c+A),u=this&&this!==he&&this instanceof e?s:t;++l<c;)h[l]=i[l];for(;A--;)h[l++]=arguments[++a];return Be(u,o?r:this,h)}}(t,e,r,s);else var b=function(t,e,r){var n=1&e,i=Mi(t);return function e(){return(this&&this!==he&&this instanceof e?i:t).apply(n?r:this,arguments)}}(t,e,r);return To((y?Jn:So)(b,v),t,e)}function Yi(t,e,r,n){return t===i||Qs(t,Tt[r])&&!Pt.call(n,r)?e:t}function Xi(t,e,r,n,o,s){return $s(t)&&$s(e)&&(s.set(e,t),Qn(t,e,i,Xi,s),s.delete(e)),t}function Ji(t){return na(t)?i:t}function Zi(t,e,r,n,o,s){var a=1&r,A=t.length,l=e.length;if(A!=l&&!(a&&l>A))return!1;var c=s.get(t),h=s.get(e);if(c&&h)return c==e&&h==t;var u=-1,p=!0,f=2&r?new Gr:i;for(s.set(t,e),s.set(e,t);++u<A;){var d=t[u],g=e[u];if(n)var m=a?n(g,d,u,e,t,s):n(d,g,u,t,e,s);if(m!==i){if(m)continue;p=!1;break}if(f){if(!De(e,function(t,e){if(!Je(f,e)&&(d===t||o(d,t,r,n,s)))return f.push(e)})){p=!1;break}}else if(d!==g&&!o(d,g,r,n,s)){p=!1;break}}return s.delete(t),s.delete(e),p}function $i(t){return Fo(Co(t,i,zo),t+"")}function to(t){return xn(t,Ta,lo)}function eo(t){return xn(t,ka,co)}var ro=Sr?function(t){return Sr.get(t)}:aA;function no(t){for(var e=t.name+"",r=Ir[e],n=Pt.call(Ir,e)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==t)return i.name}return e}function io(t){return(Pt.call(Or,"placeholder")?Or:t).placeholder}function oo(){var t=Or.iteratee||nA;return t=t===nA?Pn:t,arguments.length?t(arguments[0],arguments[1]):t}function so(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function ao(t){for(var e=Ta(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,xo(i)]}return e}function Ao(t,e){var r=function(t,e){return null==t?i:t[e]}(t,e);return Ln(r)?r:i}var lo=de?function(t){return null==t?[]:(t=Ct(t),Ie(de(t),function(e){return Kt.call(t,e)}))}:fA,co=de?function(t){for(var e=[];t;)Le(e,lo(t)),t=zt(t);return e}:fA,ho=Bn;function uo(t,e,r){for(var n=-1,i=(e=gi(e,t)).length,o=!1;++n<i;){var s=No(e[n]);if(!(o=null!=t&&r(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Zs(i)&&go(s,i)&&(Vs(t)||Hs(t))}function po(t){return"function"!=typeof t.constructor||wo(t)?{}:Ur(zt(t))}function fo(t){return Vs(t)||Hs(t)||!!(Wt&&t&&t[Wt])}function go(t,e){var r=typeof t;return!!(e=null==e?h:e)&&("number"==r||"symbol"!=r&&mt.test(t))&&t>-1&&t%1==0&&t<e}function mo(t,e,r){if(!$s(r))return!1;var n=typeof e;return!!("number"==n?Gs(r)&&go(e,r.length):"string"==n&&e in r)&&Qs(r[e],t)}function yo(t,e){if(Vs(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!aa(t))||$.test(t)||!Z.test(t)||null!=e&&t in Ct(e)}function vo(t){var e=no(t),r=Or[e];if("function"!=typeof r||!(e in jr.prototype))return!1;if(t===r)return!0;var n=ro(r);return!!n&&t===n[0]}(wr&&ho(new wr(new ArrayBuffer(1)))!=L||xr&&ho(new xr)!=x||Br&&ho(Br.resolve())!=_||Cr&&ho(new Cr)!=S||_r&&ho(new _r)!=T)&&(ho=function(t){var e=Bn(t),r=e==C?t.constructor:i,n=r?Oo(r):"";if(n)switch(n){case Fr:return L;case Tr:return x;case kr:return _;case Lr:return S;case Pr:return T}return e});var bo=kt?Xs:dA;function wo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tt)}function xo(t){return t==t&&!$s(t)}function Bo(t,e){return function(r){return null!=r&&r[t]===e&&(e!==i||t in Ct(r))}}function Co(t,e,r){return e=dr(e===i?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=dr(i.length-e,0),a=n(s);++o<s;)a[o]=i[e+o];o=-1;for(var A=n(e+1);++o<e;)A[o]=i[o];return A[e]=r(a),Be(t,this,A)}}function _o(t,e){return e.length<2?t:wn(t,ti(e,0,-1))}function Eo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var So=ko(Jn),Io=ce||function(t,e){return he.setTimeout(t,e)},Fo=ko(Zn);function To(t,e,r){var n=e+"";return Fo(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return _e(f,function(r){var n="_."+r[0];e&r[1]&&!Fe(t,n)&&t.push(n)}),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(at):[]}(n),r)))}function ko(t){var e=0,r=0;return function(){var n=mr(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Lo(t,e){var r=-1,n=t.length,o=n-1;for(e=e===i?n:e;++r<e;){var s=Gn(r,o),a=t[s];t[s]=t[r],t[r]=a}return t.length=e,t}var Po,Mo,Do=(Po=Ps(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,function(t,r,n,i){e.push(n?i.replace(ct,"$1"):r||t)}),e},function(t){return 500===Mo.size&&Mo.clear(),t}),Mo=Po.cache,Po);function No(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Oo(t){if(null!=t){try{return Lt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Uo(t){if(t instanceof jr)return t.clone();var e=new Rr(t.__wrapped__,t.__chain__);return e.__actions__=Ei(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Qo=qn(function(t,e){return Ks(t)?ln(t,dn(e,1,Ks,!0)):[]}),Ro=qn(function(t,e){var r=Yo(e);return Ks(r)&&(r=i),Ks(t)?ln(t,dn(e,1,Ks,!0),oo(r,2)):[]}),jo=qn(function(t,e){var r=Yo(e);return Ks(r)&&(r=i),Ks(t)?ln(t,dn(e,1,Ks,!0),i,r):[]});function Ho(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:pa(r);return i<0&&(i=dr(n+i,0)),Ue(t,oo(e,3),i)}function Vo(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=n-1;return r!==i&&(o=pa(r),o=r<0?dr(n+o,0):gr(o,n-1)),Ue(t,oo(e,3),o,!0)}function zo(t){return null!=t&&t.length?dn(t,1):[]}function Go(t){return t&&t.length?t[0]:i}var Ko=qn(function(t){var e=ke(t,fi);return e.length&&e[0]===t[0]?Sn(e):[]}),qo=qn(function(t){var e=Yo(t),r=ke(t,fi);return e===Yo(r)?e=i:r.pop(),r.length&&r[0]===t[0]?Sn(r,oo(e,2)):[]}),Wo=qn(function(t){var e=Yo(t),r=ke(t,fi);return(e="function"==typeof e?e:i)&&r.pop(),r.length&&r[0]===t[0]?Sn(r,i,e):[]});function Yo(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Xo=qn(Jo);function Jo(t,e){return t&&t.length&&e&&e.length?Vn(t,e):t}var Zo=$i(function(t,e){var r=null==t?0:t.length,n=nn(t,e);return zn(t,ke(e,function(t){return go(t,r)?+t:t}).sort(Bi)),n});function $o(t){return null==t?t:br.call(t)}var ts=qn(function(t){return ai(dn(t,1,Ks,!0))}),es=qn(function(t){var e=Yo(t);return Ks(e)&&(e=i),ai(dn(t,1,Ks,!0),oo(e,2))}),rs=qn(function(t){var e=Yo(t);return e="function"==typeof e?e:i,ai(dn(t,1,Ks,!0),i,e)});function ns(t){if(!t||!t.length)return[];var e=0;return t=Ie(t,function(t){if(Ks(t))return e=dr(t.length,e),!0}),qe(e,function(e){return ke(t,Ve(e))})}function is(t,e){if(!t||!t.length)return[];var r=ns(t);return null==e?r:ke(r,function(t){return Be(e,i,t)})}var os=qn(function(t,e){return Ks(t)?ln(t,e):[]}),ss=qn(function(t){return ui(Ie(t,Ks))}),as=qn(function(t){var e=Yo(t);return Ks(e)&&(e=i),ui(Ie(t,Ks),oo(e,2))}),As=qn(function(t){var e=Yo(t);return e="function"==typeof e?e:i,ui(Ie(t,Ks),i,e)}),ls=qn(ns),cs=qn(function(t){var e=t.length,r=e>1?t[e-1]:i;return r="function"==typeof r?(t.pop(),r):i,is(t,r)});function hs(t){var e=Or(t);return e.__chain__=!0,e}function us(t,e){return e(t)}var ps=$i(function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,o=function(e){return nn(e,t)};return!(e>1||this.__actions__.length)&&n instanceof jr&&go(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:us,args:[o],thisArg:i}),new Rr(n,this.__chain__).thru(function(t){return e&&!t.length&&t.push(i),t})):this.thru(o)}),fs=Ii(function(t,e,r){Pt.call(t,r)?++t[r]:rn(t,r,1)}),ds=Di(Ho),gs=Di(Vo);function ms(t,e){return(Vs(t)?_e:cn)(t,oo(e,3))}function ys(t,e){return(Vs(t)?Ee:hn)(t,oo(e,3))}var vs=Ii(function(t,e,r){Pt.call(t,r)?t[r].push(e):rn(t,r,[e])}),bs=qn(function(t,e,r){var i=-1,o="function"==typeof e,s=Gs(t)?n(t.length):[];return cn(t,function(t){s[++i]=o?Be(e,t,r):In(t,e,r)}),s}),ws=Ii(function(t,e,r){rn(t,r,e)});function xs(t,e){return(Vs(t)?ke:Nn)(t,oo(e,3))}var Bs=Ii(function(t,e,r){t[r?0:1].push(e)},function(){return[[],[]]}),Cs=qn(function(t,e){if(null==t)return[];var r=e.length;return r>1&&mo(t,e[0],e[1])?e=[]:r>2&&mo(e[0],e[1],e[2])&&(e=[e[0]]),jn(t,dn(e,1),[])}),_s=le||function(){return he.Date.now()};function Es(t,e,r){return e=r?i:e,e=t&&null==e?t.length:e,Wi(t,l,i,i,i,i,e)}function Ss(t,e){var r;if("function"!=typeof e)throw new St(o);return t=pa(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=i),r}}var Is=qn(function(t,e,r){var n=1;if(r.length){var i=sr(r,io(Is));n|=A}return Wi(t,n,e,r,i)}),Fs=qn(function(t,e,r){var n=3;if(r.length){var i=sr(r,io(Fs));n|=A}return Wi(e,n,t,r,i)});function Ts(t,e,r){var n,s,a,A,l,c,h=0,u=!1,p=!1,f=!0;if("function"!=typeof t)throw new St(o);function d(e){var r=n,o=s;return n=s=i,h=e,A=t.apply(o,r)}function g(t){var r=t-c;return c===i||r>=e||r<0||p&&t-h>=a}function m(){var t=_s();if(g(t))return y(t);l=Io(m,function(t){var r=e-(t-c);return p?gr(r,a-(t-h)):r}(t))}function y(t){return l=i,f&&n?d(t):(n=s=i,A)}function v(){var t=_s(),r=g(t);if(n=arguments,s=this,c=t,r){if(l===i)return function(t){return h=t,l=Io(m,e),u?d(t):A}(c);if(p)return vi(l),l=Io(m,e),d(c)}return l===i&&(l=Io(m,e)),A}return e=da(e)||0,$s(r)&&(u=!!r.leading,a=(p="maxWait"in r)?dr(da(r.maxWait)||0,e):a,f="trailing"in r?!!r.trailing:f),v.cancel=function(){l!==i&&vi(l),h=0,n=c=s=l=i},v.flush=function(){return l===i?A:y(_s())},v}var ks=qn(function(t,e){return An(t,1,e)}),Ls=qn(function(t,e,r){return An(t,da(e)||0,r)});function Ps(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new St(o);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Ps.Cache||zr),r}function Ms(t){if("function"!=typeof t)throw new St(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ps.Cache=zr;var Ds=mi(function(t,e){var r=(e=1==e.length&&Vs(e[0])?ke(e[0],Ye(oo())):ke(dn(e,1),Ye(oo()))).length;return qn(function(n){for(var i=-1,o=gr(n.length,r);++i<o;)n[i]=e[i].call(this,n[i]);return Be(t,this,n)})}),Ns=qn(function(t,e){var r=sr(e,io(Ns));return Wi(t,A,i,e,r)}),Os=qn(function(t,e){var r=sr(e,io(Os));return Wi(t,64,i,e,r)}),Us=$i(function(t,e){return Wi(t,256,i,i,i,e)});function Qs(t,e){return t===e||t!=t&&e!=e}var Rs=Vi(Cn),js=Vi(function(t,e){return t>=e}),Hs=Fn(function(){return arguments}())?Fn:function(t){return ta(t)&&Pt.call(t,"callee")&&!Kt.call(t,"callee")},Vs=n.isArray,zs=me?Ye(me):function(t){return ta(t)&&Bn(t)==k};function Gs(t){return null!=t&&Zs(t.length)&&!Xs(t)}function Ks(t){return ta(t)&&Gs(t)}var qs=ge||dA,Ws=ye?Ye(ye):function(t){return ta(t)&&Bn(t)==y};function Ys(t){if(!ta(t))return!1;var e=Bn(t);return e==v||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!na(t)}function Xs(t){if(!$s(t))return!1;var e=Bn(t);return e==b||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Js(t){return"number"==typeof t&&t==pa(t)}function Zs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function $s(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=ve?Ye(ve):function(t){return ta(t)&&ho(t)==x};function ra(t){return"number"==typeof t||ta(t)&&Bn(t)==B}function na(t){if(!ta(t)||Bn(t)!=C)return!1;var e=zt(t);if(null===e)return!0;var r=Pt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Lt.call(r)==Ot}var ia=be?Ye(be):function(t){return ta(t)&&Bn(t)==E},oa=we?Ye(we):function(t){return ta(t)&&ho(t)==S};function sa(t){return"string"==typeof t||!Vs(t)&&ta(t)&&Bn(t)==I}function aa(t){return"symbol"==typeof t||ta(t)&&Bn(t)==F}var Aa=xe?Ye(xe):function(t){return ta(t)&&Zs(t.length)&&!!ie[Bn(t)]},la=Vi(Dn),ca=Vi(function(t,e){return t<=e});function ha(t){if(!t)return[];if(Gs(t))return sa(t)?cr(t):Ei(t);if(Yt&&t[Yt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Yt]());var e=ho(t);return(e==x?ir:e==S?ar:Qa)(t)}function ua(t){return t?(t=da(t))===c||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function pa(t){var e=ua(t),r=e%1;return e==e?r?e-r:e:0}function fa(t){return t?on(pa(t),0,p):0}function da(t){if("number"==typeof t)return t;if(aa(t))return u;if($s(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=$s(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=We(t);var r=ft.test(t);return r||gt.test(t)?Ae(t.slice(2),r?2:8):pt.test(t)?u:+t}function ga(t){return Si(t,ka(t))}function ma(t){return null==t?"":si(t)}var ya=Fi(function(t,e){if(wo(e)||Gs(e))Si(e,Ta(e),t);else for(var r in e)Pt.call(e,r)&&Zr(t,r,e[r])}),va=Fi(function(t,e){Si(e,ka(e),t)}),ba=Fi(function(t,e,r,n){Si(e,ka(e),t,n)}),wa=Fi(function(t,e,r,n){Si(e,Ta(e),t,n)}),xa=$i(nn),Ba=qn(function(t,e){t=Ct(t);var r=-1,n=e.length,o=n>2?e[2]:i;for(o&&mo(e[0],e[1],o)&&(n=1);++r<n;)for(var s=e[r],a=ka(s),A=-1,l=a.length;++A<l;){var c=a[A],h=t[c];(h===i||Qs(h,Tt[c])&&!Pt.call(t,c))&&(t[c]=s[c])}return t}),Ca=qn(function(t){return t.push(i,Xi),Be(Pa,i,t)});function _a(t,e,r){var n=null==t?i:wn(t,e);return n===i?r:n}function Ea(t,e){return null!=t&&uo(t,e,En)}var Sa=Ui(function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Nt.call(e)),t[e]=r},$a(rA)),Ia=Ui(function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Nt.call(e)),Pt.call(t,e)?t[e].push(r):t[e]=[r]},oo),Fa=qn(In);function Ta(t){return Gs(t)?qr(t):Mn(t)}function ka(t){return Gs(t)?qr(t,!0):function(t){if(!$s(t))return function(t){var e=[];if(null!=t)for(var r in Ct(t))e.push(r);return e}(t);var e=wo(t),r=[];for(var n in t)("constructor"!=n||!e&&Pt.call(t,n))&&r.push(n);return r}(t)}var La=Fi(function(t,e,r){Qn(t,e,r)}),Pa=Fi(function(t,e,r,n){Qn(t,e,r,n)}),Ma=$i(function(t,e){var r={};if(null==t)return r;var n=!1;e=ke(e,function(e){return e=gi(e,t),n||(n=e.length>1),e}),Si(t,eo(t),r),n&&(r=sn(r,7,Ji));for(var i=e.length;i--;)Ai(r,e[i]);return r}),Da=$i(function(t,e){return null==t?{}:function(t,e){return Hn(t,e,function(e,r){return Ea(t,r)})}(t,e)});function Na(t,e){if(null==t)return{};var r=ke(eo(t),function(t){return[t]});return e=oo(e),Hn(t,r,function(t,r){return e(t,r[0])})}var Oa=qi(Ta),Ua=qi(ka);function Qa(t){return null==t?[]:Xe(t,Ta(t))}var Ra=Pi(function(t,e,r){return e=e.toLowerCase(),t+(r?ja(e):e)});function ja(t){return Ya(ma(t).toLowerCase())}function Ha(t){return(t=ma(t))&&t.replace(yt,tr).replace(Jt,"")}var Va=Pi(function(t,e,r){return t+(r?"-":"")+e.toLowerCase()}),za=Pi(function(t,e,r){return t+(r?" ":"")+e.toLowerCase()}),Ga=Li("toLowerCase"),Ka=Pi(function(t,e,r){return t+(r?"_":"")+e.toLowerCase()}),qa=Pi(function(t,e,r){return t+(r?" ":"")+Ya(e)}),Wa=Pi(function(t,e,r){return t+(r?" ":"")+e.toUpperCase()}),Ya=Li("toUpperCase");function Xa(t,e,r){return t=ma(t),(e=r?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match($t)||[]}(t):function(t){return t.match(At)||[]}(t):t.match(e)||[]}var Ja=qn(function(t,e){try{return Be(t,i,e)}catch(t){return Ys(t)?t:new wt(t)}}),Za=$i(function(t,e){return _e(e,function(e){e=No(e),rn(t,e,Is(t[e],t))}),t});function $a(t){return function(){return t}}var tA=Ni(),eA=Ni(!0);function rA(t){return t}function nA(t){return Pn("function"==typeof t?t:sn(t,1))}var iA=qn(function(t,e){return function(r){return In(r,t,e)}}),oA=qn(function(t,e){return function(r){return In(t,r,e)}});function sA(t,e,r){var n=Ta(e),i=bn(e,n);null!=r||$s(e)&&(i.length||!n.length)||(r=e,e=t,t=this,i=bn(e,Ta(e)));var o=!($s(r)&&"chain"in r&&!r.chain),s=Xs(t);return _e(i,function(r){var n=e[r];t[r]=n,s&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__);return(r.__actions__=Ei(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Le([this.value()],arguments))})}),t}function aA(){}var AA=Ri(ke),lA=Ri(Se),cA=Ri(De);function hA(t){return yo(t)?Ve(No(t)):function(t){return function(e){return wn(e,t)}}(t)}var uA=Hi(),pA=Hi(!0);function fA(){return[]}function dA(){return!1}var gA,mA=Qi(function(t,e){return t+e},0),yA=Gi("ceil"),vA=Qi(function(t,e){return t/e},1),bA=Gi("floor"),wA=Qi(function(t,e){return t*e},1),xA=Gi("round"),BA=Qi(function(t,e){return t-e},0);return Or.after=function(t,e){if("function"!=typeof e)throw new St(o);return t=pa(t),function(){if(--t<1)return e.apply(this,arguments)}},Or.ary=Es,Or.assign=ya,Or.assignIn=va,Or.assignInWith=ba,Or.assignWith=wa,Or.at=xa,Or.before=Ss,Or.bind=Is,Or.bindAll=Za,Or.bindKey=Fs,Or.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Vs(t)?t:[t]},Or.chain=hs,Or.chunk=function(t,e,r){e=(r?mo(t,e,r):e===i)?1:dr(pa(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,a=0,A=n(ue(o/e));s<o;)A[a++]=ti(t,s,s+=e);return A},Or.compact=function(t){for(var e=-1,r=null==t?0:t.length,n=0,i=[];++e<r;){var o=t[e];o&&(i[n++]=o)}return i},Or.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Le(Vs(r)?Ei(r):[r],dn(e,1))},Or.cond=function(t){var e=null==t?0:t.length,r=oo();return t=e?ke(t,function(t){if("function"!=typeof t[1])throw new St(o);return[r(t[0]),t[1]]}):[],qn(function(r){for(var n=-1;++n<e;){var i=t[n];if(Be(i[0],this,r))return Be(i[1],this,r)}})},Or.conforms=function(t){return function(t){var e=Ta(t);return function(r){return an(r,t,e)}}(sn(t,1))},Or.constant=$a,Or.countBy=fs,Or.create=function(t,e){var r=Ur(t);return null==e?r:en(r,e)},Or.curry=function t(e,r,n){var o=Wi(e,8,i,i,i,i,i,r=n?i:r);return o.placeholder=t.placeholder,o},Or.curryRight=function t(e,r,n){var o=Wi(e,16,i,i,i,i,i,r=n?i:r);return o.placeholder=t.placeholder,o},Or.debounce=Ts,Or.defaults=Ba,Or.defaultsDeep=Ca,Or.defer=ks,Or.delay=Ls,Or.difference=Qo,Or.differenceBy=Ro,Or.differenceWith=jo,Or.drop=function(t,e,r){var n=null==t?0:t.length;return n?ti(t,(e=r||e===i?1:pa(e))<0?0:e,n):[]},Or.dropRight=function(t,e,r){var n=null==t?0:t.length;return n?ti(t,0,(e=n-(e=r||e===i?1:pa(e)))<0?0:e):[]},Or.dropRightWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!0,!0):[]},Or.dropWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!0):[]},Or.fill=function(t,e,r,n){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&mo(t,e,r)&&(r=0,n=o),function(t,e,r,n){var o=t.length;for((r=pa(r))<0&&(r=-r>o?0:o+r),(n=n===i||n>o?o:pa(n))<0&&(n+=o),n=r>n?0:fa(n);r<n;)t[r++]=e;return t}(t,e,r,n)):[]},Or.filter=function(t,e){return(Vs(t)?Ie:fn)(t,oo(e,3))},Or.flatMap=function(t,e){return dn(xs(t,e),1)},Or.flatMapDeep=function(t,e){return dn(xs(t,e),c)},Or.flatMapDepth=function(t,e,r){return r=r===i?1:pa(r),dn(xs(t,e),r)},Or.flatten=zo,Or.flattenDeep=function(t){return null!=t&&t.length?dn(t,c):[]},Or.flattenDepth=function(t,e){return null!=t&&t.length?dn(t,e=e===i?1:pa(e)):[]},Or.flip=function(t){return Wi(t,512)},Or.flow=tA,Or.flowRight=eA,Or.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var i=t[e];n[i[0]]=i[1]}return n},Or.functions=function(t){return null==t?[]:bn(t,Ta(t))},Or.functionsIn=function(t){return null==t?[]:bn(t,ka(t))},Or.groupBy=vs,Or.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},Or.intersection=Ko,Or.intersectionBy=qo,Or.intersectionWith=Wo,Or.invert=Sa,Or.invertBy=Ia,Or.invokeMap=bs,Or.iteratee=nA,Or.keyBy=ws,Or.keys=Ta,Or.keysIn=ka,Or.map=xs,Or.mapKeys=function(t,e){var r={};return e=oo(e,3),yn(t,function(t,n,i){rn(r,e(t,n,i),t)}),r},Or.mapValues=function(t,e){var r={};return e=oo(e,3),yn(t,function(t,n,i){rn(r,n,e(t,n,i))}),r},Or.matches=function(t){return On(sn(t,1))},Or.matchesProperty=function(t,e){return Un(t,sn(e,1))},Or.memoize=Ps,Or.merge=La,Or.mergeWith=Pa,Or.method=iA,Or.methodOf=oA,Or.mixin=sA,Or.negate=Ms,Or.nthArg=function(t){return t=pa(t),qn(function(e){return Rn(e,t)})},Or.omit=Ma,Or.omitBy=function(t,e){return Na(t,Ms(oo(e)))},Or.once=function(t){return Ss(2,t)},Or.orderBy=function(t,e,r,n){return null==t?[]:(Vs(e)||(e=null==e?[]:[e]),Vs(r=n?i:r)||(r=null==r?[]:[r]),jn(t,e,r))},Or.over=AA,Or.overArgs=Ds,Or.overEvery=lA,Or.overSome=cA,Or.partial=Ns,Or.partialRight=Os,Or.partition=Bs,Or.pick=Da,Or.pickBy=Na,Or.property=hA,Or.propertyOf=function(t){return function(e){return null==t?i:wn(t,e)}},Or.pull=Xo,Or.pullAll=Jo,Or.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Vn(t,e,oo(r,2)):t},Or.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Vn(t,e,i,r):t},Or.pullAt=Zo,Or.range=uA,Or.rangeRight=pA,Or.rearg=Us,Or.reject=function(t,e){return(Vs(t)?Ie:fn)(t,Ms(oo(e,3)))},Or.remove=function(t,e){var r=[];if(!t||!t.length)return r;var n=-1,i=[],o=t.length;for(e=oo(e,3);++n<o;){var s=t[n];e(s,n,t)&&(r.push(s),i.push(n))}return zn(t,i),r},Or.rest=function(t,e){if("function"!=typeof t)throw new St(o);return qn(t,e=e===i?e:pa(e))},Or.reverse=$o,Or.sampleSize=function(t,e,r){return e=(r?mo(t,e,r):e===i)?1:pa(e),(Vs(t)?Yr:Yn)(t,e)},Or.set=function(t,e,r){return null==t?t:Xn(t,e,r)},Or.setWith=function(t,e,r,n){return n="function"==typeof n?n:i,null==t?t:Xn(t,e,r,n)},Or.shuffle=function(t){return(Vs(t)?Xr:$n)(t)},Or.slice=function(t,e,r){var n=null==t?0:t.length;return n?(r&&"number"!=typeof r&&mo(t,e,r)?(e=0,r=n):(e=null==e?0:pa(e),r=r===i?n:pa(r)),ti(t,e,r)):[]},Or.sortBy=Cs,Or.sortedUniq=function(t){return t&&t.length?ii(t):[]},Or.sortedUniqBy=function(t,e){return t&&t.length?ii(t,oo(e,2)):[]},Or.split=function(t,e,r){return r&&"number"!=typeof r&&mo(t,e,r)&&(e=r=i),(r=r===i?p:r>>>0)?(t=ma(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=si(e))&&nr(t)?yi(cr(t),0,r):t.split(e,r):[]},Or.spread=function(t,e){if("function"!=typeof t)throw new St(o);return e=null==e?0:dr(pa(e),0),qn(function(r){var n=r[e],i=yi(r,0,e);return n&&Le(i,n),Be(t,this,i)})},Or.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},Or.take=function(t,e,r){return t&&t.length?ti(t,0,(e=r||e===i?1:pa(e))<0?0:e):[]},Or.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?ti(t,(e=n-(e=r||e===i?1:pa(e)))<0?0:e,n):[]},Or.takeRightWhile=function(t,e){return t&&t.length?ci(t,oo(e,3),!1,!0):[]},Or.takeWhile=function(t,e){return t&&t.length?ci(t,oo(e,3)):[]},Or.tap=function(t,e){return e(t),t},Or.throttle=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new St(o);return $s(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Ts(t,e,{leading:n,maxWait:e,trailing:i})},Or.thru=us,Or.toArray=ha,Or.toPairs=Oa,Or.toPairsIn=Ua,Or.toPath=function(t){return Vs(t)?ke(t,No):aa(t)?[t]:Ei(Do(ma(t)))},Or.toPlainObject=ga,Or.transform=function(t,e,r){var n=Vs(t),i=n||qs(t)||Aa(t);if(e=oo(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:$s(t)&&Xs(o)?Ur(zt(t)):{}}return(i?_e:yn)(t,function(t,n,i){return e(r,t,n,i)}),r},Or.unary=function(t){return Es(t,1)},Or.union=ts,Or.unionBy=es,Or.unionWith=rs,Or.uniq=function(t){return t&&t.length?ai(t):[]},Or.uniqBy=function(t,e){return t&&t.length?ai(t,oo(e,2)):[]},Or.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},Or.unset=function(t,e){return null==t||Ai(t,e)},Or.unzip=ns,Or.unzipWith=is,Or.update=function(t,e,r){return null==t?t:li(t,e,di(r))},Or.updateWith=function(t,e,r,n){return n="function"==typeof n?n:i,null==t?t:li(t,e,di(r),n)},Or.values=Qa,Or.valuesIn=function(t){return null==t?[]:Xe(t,ka(t))},Or.without=os,Or.words=Xa,Or.wrap=function(t,e){return Ns(di(e),t)},Or.xor=ss,Or.xorBy=as,Or.xorWith=As,Or.zip=ls,Or.zipObject=function(t,e){return pi(t||[],e||[],Zr)},Or.zipObjectDeep=function(t,e){return pi(t||[],e||[],Xn)},Or.zipWith=cs,Or.entries=Oa,Or.entriesIn=Ua,Or.extend=va,Or.extendWith=ba,sA(Or,Or),Or.add=mA,Or.attempt=Ja,Or.camelCase=Ra,Or.capitalize=ja,Or.ceil=yA,Or.clamp=function(t,e,r){return r===i&&(r=e,e=i),r!==i&&(r=(r=da(r))==r?r:0),e!==i&&(e=(e=da(e))==e?e:0),on(da(t),e,r)},Or.clone=function(t){return sn(t,4)},Or.cloneDeep=function(t){return sn(t,5)},Or.cloneDeepWith=function(t,e){return sn(t,5,e="function"==typeof e?e:i)},Or.cloneWith=function(t,e){return sn(t,4,e="function"==typeof e?e:i)},Or.conformsTo=function(t,e){return null==e||an(t,e,Ta(e))},Or.deburr=Ha,Or.defaultTo=function(t,e){return null==t||t!=t?e:t},Or.divide=vA,Or.endsWith=function(t,e,r){t=ma(t),e=si(e);var n=t.length,o=r=r===i?n:on(pa(r),0,n);return(r-=e.length)>=0&&t.slice(r,o)==e},Or.eq=Qs,Or.escape=function(t){return(t=ma(t))&&W.test(t)?t.replace(K,er):t},Or.escapeRegExp=function(t){return(t=ma(t))&&rt.test(t)?t.replace(et,"\\$&"):t},Or.every=function(t,e,r){var n=Vs(t)?Se:un;return r&&mo(t,e,r)&&(e=i),n(t,oo(e,3))},Or.find=ds,Or.findIndex=Ho,Or.findKey=function(t,e){return Oe(t,oo(e,3),yn)},Or.findLast=gs,Or.findLastIndex=Vo,Or.findLastKey=function(t,e){return Oe(t,oo(e,3),vn)},Or.floor=bA,Or.forEach=ms,Or.forEachRight=ys,Or.forIn=function(t,e){return null==t?t:gn(t,oo(e,3),ka)},Or.forInRight=function(t,e){return null==t?t:mn(t,oo(e,3),ka)},Or.forOwn=function(t,e){return t&&yn(t,oo(e,3))},Or.forOwnRight=function(t,e){return t&&vn(t,oo(e,3))},Or.get=_a,Or.gt=Rs,Or.gte=js,Or.has=function(t,e){return null!=t&&uo(t,e,_n)},Or.hasIn=Ea,Or.head=Go,Or.identity=rA,Or.includes=function(t,e,r,n){t=Gs(t)?t:Qa(t),r=r&&!n?pa(r):0;var i=t.length;return r<0&&(r=dr(i+r,0)),sa(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Qe(t,e,r)>-1},Or.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:pa(r);return i<0&&(i=dr(n+i,0)),Qe(t,e,i)},Or.inRange=function(t,e,r){return e=ua(e),r===i?(r=e,e=0):r=ua(r),function(t,e,r){return t>=gr(e,r)&&t<dr(e,r)}(t=da(t),e,r)},Or.invoke=Fa,Or.isArguments=Hs,Or.isArray=Vs,Or.isArrayBuffer=zs,Or.isArrayLike=Gs,Or.isArrayLikeObject=Ks,Or.isBoolean=function(t){return!0===t||!1===t||ta(t)&&Bn(t)==m},Or.isBuffer=qs,Or.isDate=Ws,Or.isElement=function(t){return ta(t)&&1===t.nodeType&&!na(t)},Or.isEmpty=function(t){if(null==t)return!0;if(Gs(t)&&(Vs(t)||"string"==typeof t||"function"==typeof t.splice||qs(t)||Aa(t)||Hs(t)))return!t.length;var e=ho(t);if(e==x||e==S)return!t.size;if(wo(t))return!Mn(t).length;for(var r in t)if(Pt.call(t,r))return!1;return!0},Or.isEqual=function(t,e){return Tn(t,e)},Or.isEqualWith=function(t,e,r){var n=(r="function"==typeof r?r:i)?r(t,e):i;return n===i?Tn(t,e,i,r):!!n},Or.isError=Ys,Or.isFinite=function(t){return"number"==typeof t&&Ne(t)},Or.isFunction=Xs,Or.isInteger=Js,Or.isLength=Zs,Or.isMap=ea,Or.isMatch=function(t,e){return t===e||kn(t,e,ao(e))},Or.isMatchWith=function(t,e,r){return r="function"==typeof r?r:i,kn(t,e,ao(e),r)},Or.isNaN=function(t){return ra(t)&&t!=+t},Or.isNative=function(t){if(bo(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ln(t)},Or.isNil=function(t){return null==t},Or.isNull=function(t){return null===t},Or.isNumber=ra,Or.isObject=$s,Or.isObjectLike=ta,Or.isPlainObject=na,Or.isRegExp=ia,Or.isSafeInteger=function(t){return Js(t)&&t>=-9007199254740991&&t<=h},Or.isSet=oa,Or.isString=sa,Or.isSymbol=aa,Or.isTypedArray=Aa,Or.isUndefined=function(t){return t===i},Or.isWeakMap=function(t){return ta(t)&&ho(t)==T},Or.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==Bn(t)},Or.join=function(t,e){return null==t?"":ze.call(t,e)},Or.kebabCase=Va,Or.last=Yo,Or.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=pa(r))<0?dr(n+o,0):gr(o,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,o):Ue(t,je,o,!0)},Or.lowerCase=za,Or.lowerFirst=Ga,Or.lt=la,Or.lte=ca,Or.max=function(t){return t&&t.length?pn(t,rA,Cn):i},Or.maxBy=function(t,e){return t&&t.length?pn(t,oo(e,2),Cn):i},Or.mean=function(t){return He(t,rA)},Or.meanBy=function(t,e){return He(t,oo(e,2))},Or.min=function(t){return t&&t.length?pn(t,rA,Dn):i},Or.minBy=function(t,e){return t&&t.length?pn(t,oo(e,2),Dn):i},Or.stubArray=fA,Or.stubFalse=dA,Or.stubObject=function(){return{}},Or.stubString=function(){return""},Or.stubTrue=function(){return!0},Or.multiply=wA,Or.nth=function(t,e){return t&&t.length?Rn(t,pa(e)):i},Or.noConflict=function(){return he._===this&&(he._=Ut),this},Or.noop=aA,Or.now=_s,Or.pad=function(t,e,r){t=ma(t);var n=(e=pa(e))?lr(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return ji(pe(i),r)+t+ji(ue(i),r)},Or.padEnd=function(t,e,r){t=ma(t);var n=(e=pa(e))?lr(t):0;return e&&n<e?t+ji(e-n,r):t},Or.padStart=function(t,e,r){t=ma(t);var n=(e=pa(e))?lr(t):0;return e&&n<e?ji(e-n,r)+t:t},Or.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),yr(ma(t).replace(nt,""),e||0)},Or.random=function(t,e,r){if(r&&"boolean"!=typeof r&&mo(t,e,r)&&(e=r=i),r===i&&("boolean"==typeof e?(r=e,e=i):"boolean"==typeof t&&(r=t,t=i)),t===i&&e===i?(t=0,e=1):(t=ua(t),e===i?(e=t,t=0):e=ua(e)),t>e){var n=t;t=e,e=n}if(r||t%1||e%1){var o=vr();return gr(t+o*(e-t+ae("1e-"+((o+"").length-1))),e)}return Gn(t,e)},Or.reduce=function(t,e,r){var n=Vs(t)?Pe:Ge,i=arguments.length<3;return n(t,oo(e,4),r,i,cn)},Or.reduceRight=function(t,e,r){var n=Vs(t)?Me:Ge,i=arguments.length<3;return n(t,oo(e,4),r,i,hn)},Or.repeat=function(t,e,r){return e=(r?mo(t,e,r):e===i)?1:pa(e),Kn(ma(t),e)},Or.replace=function(){var t=arguments,e=ma(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Or.result=function(t,e,r){var n=-1,o=(e=gi(e,t)).length;for(o||(o=1,t=i);++n<o;){var s=null==t?i:t[No(e[n])];s===i&&(n=o,s=r),t=Xs(s)?s.call(t):s}return t},Or.round=xA,Or.runInContext=t,Or.sample=function(t){return(Vs(t)?Wr:Wn)(t)},Or.size=function(t){if(null==t)return 0;if(Gs(t))return sa(t)?lr(t):t.length;var e=ho(t);return e==x||e==S?t.size:Mn(t).length},Or.snakeCase=Ka,Or.some=function(t,e,r){var n=Vs(t)?De:ei;return r&&mo(t,e,r)&&(e=i),n(t,oo(e,3))},Or.sortedIndex=function(t,e){return ri(t,e)},Or.sortedIndexBy=function(t,e,r){return ni(t,e,oo(r,2))},Or.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var n=ri(t,e);if(n<r&&Qs(t[n],e))return n}return-1},Or.sortedLastIndex=function(t,e){return ri(t,e,!0)},Or.sortedLastIndexBy=function(t,e,r){return ni(t,e,oo(r,2),!0)},Or.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var r=ri(t,e,!0)-1;if(Qs(t[r],e))return r}return-1},Or.startCase=qa,Or.startsWith=function(t,e,r){return t=ma(t),r=null==r?0:on(pa(r),0,t.length),e=si(e),t.slice(r,r+e.length)==e},Or.subtract=BA,Or.sum=function(t){return t&&t.length?Ke(t,rA):0},Or.sumBy=function(t,e){return t&&t.length?Ke(t,oo(e,2)):0},Or.template=function(t,e,r){var n=Or.templateSettings;r&&mo(t,e,r)&&(e=i),t=ma(t),e=ba({},e,n,Yi);var o,s,a=ba({},e.imports,n.imports,Yi),A=Ta(a),l=Xe(a,A),c=0,h=e.interpolate||vt,u="__p += '",p=_t((e.escape||vt).source+"|"+h.source+"|"+(h===J?ht:vt).source+"|"+(e.evaluate||vt).source+"|$","g"),f="//# sourceURL="+(Pt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";t.replace(p,function(e,r,n,i,a,A){return n||(n=i),u+=t.slice(c,A).replace(bt,rr),r&&(o=!0,u+="' +\n__e("+r+") +\n'"),a&&(s=!0,u+="';\n"+a+";\n__p += '"),n&&(u+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=A+e.length,e}),u+="';\n";var d=Pt.call(e,"variable")&&e.variable;if(d){if(lt.test(d))throw new wt("Invalid `variable` option passed into `_.template`")}else u="with (obj) {\n"+u+"\n}\n";u=(s?u.replace(H,""):u).replace(V,"$1").replace(z,"$1;"),u="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var g=Ja(function(){return xt(A,f+"return "+u).apply(i,l)});if(g.source=u,Ys(g))throw g;return g},Or.times=function(t,e){if((t=pa(t))<1||t>h)return[];var r=p,n=gr(t,p);e=oo(e),t-=p;for(var i=qe(n,e);++r<t;)e(r);return i},Or.toFinite=ua,Or.toInteger=pa,Or.toLength=fa,Or.toLower=function(t){return ma(t).toLowerCase()},Or.toNumber=da,Or.toSafeInteger=function(t){return t?on(pa(t),-9007199254740991,h):0===t?t:0},Or.toString=ma,Or.toUpper=function(t){return ma(t).toUpperCase()},Or.trim=function(t,e,r){if((t=ma(t))&&(r||e===i))return We(t);if(!t||!(e=si(e)))return t;var n=cr(t),o=cr(e);return yi(n,Ze(n,o),$e(n,o)+1).join("")},Or.trimEnd=function(t,e,r){if((t=ma(t))&&(r||e===i))return t.slice(0,hr(t)+1);if(!t||!(e=si(e)))return t;var n=cr(t);return yi(n,0,$e(n,cr(e))+1).join("")},Or.trimStart=function(t,e,r){if((t=ma(t))&&(r||e===i))return t.replace(nt,"");if(!t||!(e=si(e)))return t;var n=cr(t);return yi(n,Ze(n,cr(e))).join("")},Or.truncate=function(t,e){var r=30,n="...";if($s(e)){var o="separator"in e?e.separator:o;r="length"in e?pa(e.length):r,n="omission"in e?si(e.omission):n}var s=(t=ma(t)).length;if(nr(t)){var a=cr(t);s=a.length}if(r>=s)return t;var A=r-lr(n);if(A<1)return n;var l=a?yi(a,0,A).join(""):t.slice(0,A);if(o===i)return l+n;if(a&&(A+=l.length-A),ia(o)){if(t.slice(A).search(o)){var c,h=l;for(o.global||(o=_t(o.source,ma(ut.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var u=c.index;l=l.slice(0,u===i?A:u)}}else if(t.indexOf(si(o),A)!=A){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+n},Or.unescape=function(t){return(t=ma(t))&&q.test(t)?t.replace(G,ur):t},Or.uniqueId=function(t){var e=++Mt;return ma(t)+e},Or.upperCase=Wa,Or.upperFirst=Ya,Or.each=ms,Or.eachRight=ys,Or.first=Go,sA(Or,(gA={},yn(Or,function(t,e){Pt.call(Or.prototype,e)||(gA[e]=t)}),gA),{chain:!1}),Or.VERSION="4.17.23",_e(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Or[t].placeholder=Or}),_e(["drop","take"],function(t,e){jr.prototype[t]=function(r){r=r===i?1:dr(pa(r),0);var n=this.__filtered__&&!e?new jr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,p),type:t+(n.__dir__<0?"Right":"")}),n},jr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),_e(["filter","map","takeWhile"],function(t,e){var r=e+1,n=1==r||3==r;jr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:oo(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}}),_e(["head","last"],function(t,e){var r="take"+(e?"Right":"");jr.prototype[t]=function(){return this[r](1).value()[0]}}),_e(["initial","tail"],function(t,e){var r="drop"+(e?"":"Right");jr.prototype[t]=function(){return this.__filtered__?new jr(this):this[r](1)}}),jr.prototype.compact=function(){return this.filter(rA)},jr.prototype.find=function(t){return this.filter(t).head()},jr.prototype.findLast=function(t){return this.reverse().find(t)},jr.prototype.invokeMap=qn(function(t,e){return"function"==typeof t?new jr(this):this.map(function(r){return In(r,t,e)})}),jr.prototype.reject=function(t){return this.filter(Ms(oo(t)))},jr.prototype.slice=function(t,e){t=pa(t);var r=this;return r.__filtered__&&(t>0||e<0)?new jr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==i&&(r=(e=pa(e))<0?r.dropRight(-e):r.take(e-t)),r)},jr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},jr.prototype.toArray=function(){return this.take(p)},yn(jr.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),o=Or[n?"take"+("last"==e?"Right":""):e],s=n||/^find/.test(e);o&&(Or.prototype[e]=function(){var e=this.__wrapped__,a=n?[1]:arguments,A=e instanceof jr,l=a[0],c=A||Vs(e),h=function(t){var e=o.apply(Or,Le([t],a));return n&&u?e[0]:e};c&&r&&"function"==typeof l&&1!=l.length&&(A=c=!1);var u=this.__chain__,p=!!this.__actions__.length,f=s&&!u,d=A&&!p;if(!s&&c){e=d?e:new jr(this);var g=t.apply(e,a);return g.__actions__.push({func:us,args:[h],thisArg:i}),new Rr(g,u)}return f&&d?t.apply(this,a):(g=this.thru(h),f?n?g.value()[0]:g.value():g)})}),_e(["pop","push","shift","sort","splice","unshift"],function(t){var e=It[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Or.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(Vs(i)?i:[],t)}return this[r](function(r){return e.apply(Vs(r)?r:[],t)})}}),yn(jr.prototype,function(t,e){var r=Or[e];if(r){var n=r.name+"";Pt.call(Ir,n)||(Ir[n]=[]),Ir[n].push({name:e,func:r})}}),Ir[Oi(i,2).name]=[{name:"wrapper",func:i}],jr.prototype.clone=function(){var t=new jr(this.__wrapped__);return t.__actions__=Ei(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ei(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ei(this.__views__),t},jr.prototype.reverse=function(){if(this.__filtered__){var t=new jr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},jr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Vs(t),n=e<0,i=r?t.length:0,o=function(t,e,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=gr(e,t+s);break;case"takeRight":t=dr(t,e-s)}}return{start:t,end:e}}(0,i,this.__views__),s=o.start,a=o.end,A=a-s,l=n?a:s-1,c=this.__iteratees__,h=c.length,u=0,p=gr(A,this.__takeCount__);if(!r||!n&&i==A&&p==A)return hi(t,this.__actions__);var f=[];t:for(;A--&&u<p;){for(var d=-1,g=t[l+=e];++d<h;){var m=c[d],y=m.iteratee,v=m.type,b=y(g);if(2==v)g=b;else if(!b){if(1==v)continue t;break t}}f[u++]=g}return f},Or.prototype.at=ps,Or.prototype.chain=function(){return hs(this)},Or.prototype.commit=function(){return new Rr(this.value(),this.__chain__)},Or.prototype.next=function(){this.__values__===i&&(this.__values__=ha(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Or.prototype.plant=function(t){for(var e,r=this;r instanceof Qr;){var n=Uo(r);n.__index__=0,n.__values__=i,e?o.__wrapped__=n:e=n;var o=n;r=r.__wrapped__}return o.__wrapped__=t,e},Or.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof jr){var e=t;return this.__actions__.length&&(e=new jr(this)),(e=e.reverse()).__actions__.push({func:us,args:[$o],thisArg:i}),new Rr(e,this.__chain__)}return this.thru($o)},Or.prototype.toJSON=Or.prototype.valueOf=Or.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Or.prototype.first=Or.prototype.head,Yt&&(Or.prototype[Yt]=function(){return this}),Or}();he._=pr,(n=function(){return pr}.call(e,r,e,t))===i||(t.exports=n)}.call(this)},44773(t,e,r){var n=r(9935),i=r(93880),o=r(55992);t.exports=function(t,e){var r={};return e=o(e,3),i(t,function(t,i,o){n(r,i,e(t,i,o))}),r}},84101(t,e,r){var n=r(98464);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},50277(t,e,r){var n=r(22725),i=r(25834)(function(t,e,r){n(t,e,r)});t.exports=i},19697(t){t.exports=function(){}},61381(t,e,r){var n=r(91736);t.exports=function(){return n.Date.now()}},47520(t,e,r){var n=r(39221),i=r(60444),o=r(1116),s=r(46476),a=r(84534),A=r(11241),l=r(73985),c=r(57856),h=l(function(t,e){var r={};if(null==t)return r;var l=!1;e=n(e,function(e){return e=s(e,t),l||(l=e.length>1),e}),a(t,c(t),r),l&&(r=i(r,7,A));for(var h=e.length;h--;)o(r,e[h]);return r});t.exports=h},78664(t,e,r){var n=r(99528),i=r(96628);t.exports=function(t,e,r,o){return null==t?[]:(i(e)||(e=null==e?[]:[e]),i(r=o?void 0:r)||(r=null==r?[]:[r]),n(t,e,r))}},63447(t,e,r){var n=r(52937)(function(t,e,r){t[r?0:1].push(e)},function(){return[[],[]]});t.exports=n},79564(t,e,r){var n=r(36364),i=r(71986),o=r(5749),s=r(20018);t.exports=function(t){return o(t)?n(s(t)):i(t)}},58806(t,e,r){var n=r(42836),i=r(73985)(function(t,e){return n(t,256,void 0,void 0,void 0,e)});t.exports=i},87677(t,e,r){var n=r(22734)("round");t.exports=n},17181(t,e,r){var n=r(35421);t.exports=function(t,e,r){return null==t?t:n(t,e,r)}},32148(t){t.exports=function(){return[]}},14078(t){t.exports=function(){return!1}},46059(t,e,r){var n=r(55992),i=r(76982);t.exports=function(t,e){return t&&t.length?i(t,n(e,2)):0}},96263(t,e,r){var n=r(43569),i=1/0;t.exports=function(t){return t?(t=n(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},78164(t,e,r){var n=r(96263);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},43569(t,e,r){var n=r(29605),i=r(97230),o=r(83089),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,A=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=a.test(t);return r||A.test(t)?l(t.slice(2),r?2:8):s.test(t)?NaN:+t}},38135(t,e,r){var n=r(39221),i=r(20380),o=r(96628),s=r(83089),a=r(71951),A=r(20018),l=r(55805);t.exports=function(t){return o(t)?n(t,A):s(t)?[t]:i(a(l(t)))}},58089(t,e,r){var n=r(84534),i=r(93562);t.exports=function(t){return n(t,i(t))}},55805(t,e,r){var n=r(75293);t.exports=function(t){return null==t?"":n(t)}},31991(t,e,r){var n=r(75293),i=r(46189),o=r(52135),s=r(97230),a=r(49184),A=r(5184),l=r(66459),c=r(78164),h=r(55805),u=/\w*$/;t.exports=function(t,e){var r=30,p="...";if(s(e)){var f="separator"in e?e.separator:f;r="length"in e?c(e.length):r,p="omission"in e?n(e.omission):p}var d=(t=h(t)).length;if(o(t)){var g=l(t);d=g.length}if(r>=d)return t;var m=r-A(p);if(m<1)return p;var y=g?i(g,0,m).join(""):t.slice(0,m);if(void 0===f)return y+p;if(g&&(m+=y.length-m),a(f)){if(t.slice(m).search(f)){var v,b=y;for(f.global||(f=RegExp(f.source,h(u.exec(f))+"g")),f.lastIndex=0;v=f.exec(b);)var w=v.index;y=y.slice(0,void 0===w?m:w)}}else if(t.indexOf(n(f),m)!=m){var x=y.lastIndexOf(f);x>-1&&(y=y.slice(0,x))}return y+p}},40944(t,e,r){var n=r(97936);t.exports=function(t){return t&&t.length?n(t):[]}},93107(t,e,r){var n=r(3228)("toUpperCase");t.exports=n},42671(t,e,r){var n=r(89819),i=r(42958),o=r(61808),s=r(96628),a=r(28089),A=r(25987),l=Object.prototype.hasOwnProperty;function c(t){if(a(t)&&!s(t)&&!(t instanceof n)){if(t instanceof i)return t;if(l.call(t,"__wrapped__"))return A(t)}return new i(t)}c.prototype=o.prototype,c.prototype.constructor=c,t.exports=c},7369(module,exports,__webpack_require__){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,n,i=t.length;for(r=0;r<i;r+=1)for(var o in n=t[r].prototype)Object.prototype.hasOwnProperty.call(n,o)&&(e.prototype[o]=n[o])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var r,n=0,i=[];switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<e;n+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,r){return"float32"===e?new Float32Array(r):"int16"===e?new Int16Array(r):"uint8c"===e?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,r=createSizedArray(t.length),n=t.length;for(e=0;e<n;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,n){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,n){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=n<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,r){var n,i,o,s,a,A,l,c;switch(A=r*(1-e),l=r*(1-(a=6*t-(s=Math.floor(6*t)))*e),c=r*(1-(1-a)*e),s%6){case 0:n=r,i=c,o=A;break;case 1:n=l,i=r,o=A;break;case 2:n=A,i=r,o=c;break;case 3:n=A,i=l,o=r;break;case 4:n=c,i=A,o=r;break;case 5:n=r,i=A,o=l}return[n,i,o]}function RGBtoHSV(t,e,r){var n,i=Math.max(t,e,r),o=Math.min(t,e,r),s=i-o,a=0===i?0:s/i,A=i/255;switch(i){case o:n=0;break;case t:n=e-r+s*(e<r?6:0),n/=6*s;break;case e:n=r-t+2*s,n/=6*s;break;case r:n=t-e+4*s,n/=6*s}return[n,a,A]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=1===e.length?"0"+e:e;return function(t,e,n){return t<0&&(t=0),e<0&&(e=0),n<0&&(n=0),"#"+r[t]+r[e]+r[n]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,r=1,n=[],i={onmessage:function(){},postMessage:function(e){t({data:e})}},o={postMessage:function(t){i.onmessage({data:t})}};function s(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return t=e,i}(function(t){if(o.dataManager||(o.dataManager=function(){function t(i,o){var s,a,A,l,c,u,p=i.length;for(a=0;a<p;a+=1)if("ks"in(s=i[a])&&!s.completed){if(s.completed=!0,s.hasMask){var f=s.masksProperties;for(l=f.length,A=0;A<l;A+=1)if(f[A].pt.k.i)n(f[A].pt.k);else for(u=f[A].pt.k.length,c=0;c<u;c+=1)f[A].pt.k[c].s&&n(f[A].pt.k[c].s[0]),f[A].pt.k[c].e&&n(f[A].pt.k[c].e[0])}0===s.ty?(s.layers=e(s.refId,o),t(s.layers,o)):4===s.ty?r(s.shapes):5===s.ty&&h(s)}}function e(t,e){var r=function(t,e){for(var r=0,n=e.length;r<n;){if(e[r].id===t)return e[r];r+=1}return null}(t,e);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(t){var e,i,o;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)n(t[e].ks.k);else for(o=t[e].ks.k.length,i=0;i<o;i+=1)t[e].ks.k[i].s&&n(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&n(t[e].ks.k[i].e[0]);else"gr"===t[e].ty&&r(t[e].it)}function n(t){var e,r=t.i.length;for(e=0;e<r;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function i(t,e){var r=e?e.split("."):[100,100,100];return t[0]>r[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&null))}var o,s=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function r(t){var r,n=t.length;for(r=0;r<n;r+=1)5===t[r].ty&&e(t[r])}return function(e){if(i(t,e.v)&&(r(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&r(e.assets[n].layers)}}}(),a=(o=[4,7,99],function(t){if(t.chars&&!i(o,t.v)){var e,n=t.chars.length;for(e=0;e<n;e+=1){var s=t.chars[e];s.data&&s.data.shapes&&(r(s.data.shapes),s.data.ip=0,s.data.op=99999,s.data.st=0,s.data.sr=1,s.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(s.data.shapes.push({ty:"no"}),s.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),A=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function r(t){var r,n=t.length;for(r=0;r<n;r+=1)5===t[r].ty&&e(t[r])}return function(e){if(i(t,e.v)&&(r(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&r(e.assets[n].layers)}}}(),l=function(){var t=[4,1,9];function e(t){var r,n,i,o=t.length;for(r=0;r<o;r+=1)if("gr"===t[r].ty)e(t[r].it);else if("fl"===t[r].ty||"st"===t[r].ty)if(t[r].c.k&&t[r].c.k[0].i)for(i=t[r].c.k.length,n=0;n<i;n+=1)t[r].c.k[n].s&&(t[r].c.k[n].s[0]/=255,t[r].c.k[n].s[1]/=255,t[r].c.k[n].s[2]/=255,t[r].c.k[n].s[3]/=255),t[r].c.k[n].e&&(t[r].c.k[n].e[0]/=255,t[r].c.k[n].e[1]/=255,t[r].c.k[n].e[2]/=255,t[r].c.k[n].e[3]/=255);else t[r].c.k[0]/=255,t[r].c.k[1]/=255,t[r].c.k[2]/=255,t[r].c.k[3]/=255}function r(t){var r,n=t.length;for(r=0;r<n;r+=1)4===t[r].ty&&e(t[r].shapes)}return function(e){if(i(t,e.v)&&(r(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&r(e.assets[n].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var r,n,i;for(r=t.length-1;r>=0;r-=1)if("sh"===t[r].ty)if(t[r].ks.k.i)t[r].ks.k.c=t[r].closed;else for(i=t[r].ks.k.length,n=0;n<i;n+=1)t[r].ks.k[n].s&&(t[r].ks.k[n].s[0].c=t[r].closed),t[r].ks.k[n].e&&(t[r].ks.k[n].e[0].c=t[r].closed);else"gr"===t[r].ty&&e(t[r].it)}function r(t){var r,n,i,o,s,a,A=t.length;for(n=0;n<A;n+=1){if((r=t[n]).hasMask){var l=r.masksProperties;for(o=l.length,i=0;i<o;i+=1)if(l[i].pt.k.i)l[i].pt.k.c=l[i].cl;else for(a=l[i].pt.k.length,s=0;s<a;s+=1)l[i].pt.k[s].s&&(l[i].pt.k[s].s[0].c=l[i].cl),l[i].pt.k[s].e&&(l[i].pt.k[s].e[0].c=l[i].cl)}4===r.ty&&e(r.shapes)}}return function(e){if(i(t,e.v)&&(r(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&r(e.assets[n].layers)}}}();function h(t){0===t.t.a.length&&t.t.p}var u={completeData:function(r){r.__complete||(l(r),s(r),a(r),A(r),c(r),t(r.layers,r.assets),function(r,n){if(r){var i=0,o=r.length;for(i=0;i<o;i+=1)1===r[i].t&&(r[i].data.layers=e(r[i].data.refId,n),t(r[i].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return u.checkColors=l,u.checkChars=a,u.checkPathProperties=A,u.checkShapes=c,u.completeLayers=t,u}()),o.assetLoader||(o.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,r,n,i){var o,s=new XMLHttpRequest;try{s.responseType="json"}catch(t){}s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)o=t(s),n(o);else try{o=t(s),n(o)}catch(t){i&&i(t)}};try{s.open(["G","E","T"].join(""),e,!0)}catch(t){s.open(["G","E","T"].join(""),r+"/"+e,!0)}s.send()}}}()),"loadAnimation"===t.data.type)o.assetLoader.load(t.data.path,t.data.fullPath,function(e){o.dataManager.completeData(e),o.postMessage({id:t.data.id,payload:e,status:"success"})},function(){o.postMessage({id:t.data.id,status:"error"})});else if("complete"===t.data.type){var e=t.data.animation;o.dataManager.completeData(e),o.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&o.assetLoader.load(t.data.path,t.data.fullPath,function(e){o.postMessage({id:t.data.id,payload:e,status:"success"})},function(){o.postMessage({id:t.data.id,status:"error"})})}),e.onmessage=function(t){var e=t.data,r=e.id,i=n[r];n[r]=null,"success"===e.status?i.onComplete(e.payload):i.onError&&i.onError()})}function a(t,e){var i="processId_"+(r+=1);return n[i]={onComplete:t,onError:e},i}return{loadAnimation:function(t,r,n){s();var i=a(r,n);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(t,r,n){s();var i=a(r,n);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(t,r,n){s();var i=a(r,n);e.postMessage({type:"complete",animation:t,id:i})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(t,e,r){var n="";if(t.e)n=t.p;else if(e){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),n=e+i}else n=r,n+=t.u?t.u:"",n+=t.p;return n}function i(t){var e=0,r=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(r)),e+=1}.bind(this),50)}function o(t){var e={assetData:t},r=n(t,this.assetsPath,this.path);return dataManager.loadData(r,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function s(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return s.prototype={loadAssets:function(t,e){var r;this.imagesLoadedCb=e;var n=t.length;for(r=0;r<n;r+=1)t[r].layers||(t[r].t&&"seq"!==t[r].t?3===t[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[r]))):(this.totalImages+=1,this.images.push(this._createImageData(t[r]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,r=this.images.length;e<r;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var r=n(e,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),i.src=r;var o={img:i,assetData:e};return o},createImageData:function(e){var r=n(e,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:e};return o},imageLoaded:e,footageLoaded:r,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},s}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],n=0;n<r.length;n+=1)r[n](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,n=this._cbs[t].length;r<n;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,n-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,r=t.split("\r\n"),n={},i=0,o=0;o<r.length;o+=1)2===(e=r[o].split(":")).length&&(n[e[0]]=e[1].trim(),i+=1);if(0===i)throw new Error;return n}return function(e){for(var r=[],n=0;n<e.length;n+=1){var i=e[n],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(e[n].cm)}catch(r){try{o.payload=t(e[n].cm)}catch(t){o.payload={name:e[n].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,r=this.compositions.length;e<r;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},n=t.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var o=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==o,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,n=this.animationData.layers,i=n.length,o=t.layers,s=o.length;for(r=0;r<s;r+=1)for(e=0;e<i;){if(n[e].id===o[r].id){n[e]=o[r];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(i=t.assets.length,e=0;e<i;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var r="number"==typeof t?t:void 0,n="number"==typeof e?e:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r<this.markers.length;r+=1)if((e=this.markers[r]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var n=Number(t);if(isNaN(n)){var i=this.getMarkerData(t);i&&this.goToAndStop(i.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!r||this.name===r){var n=Number(t);if(isNaN(n)){var i=this.getMarkerData(t);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(n,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var r,n=t.length;for(r=0;r<n;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],r=0,n=0,i=0,o=!0,s=!1;function a(t){for(var r=0,i=t.target;r<n;)e[r].animation===i&&(e.splice(r,1),r-=1,n-=1,i.isPaused||c()),r+=1}function A(t,r){if(!t)return null;for(var i=0;i<n;){if(e[i].elem===t&&null!==e[i].elem)return e[i].animation;i+=1}var o=new AnimationItem;return h(o,t),o.setData(t,r),o}function l(){i+=1,f()}function c(){i-=1}function h(t,r){t.addEventListener("destroy",a),t.addEventListener("_active",l),t.addEventListener("_idle",c),e.push({elem:r,animation:t}),n+=1}function u(t){var a,A=t-r;for(a=0;a<n;a+=1)e[a].animation.advanceTime(A);r=t,i&&!s?window.requestAnimationFrame(u):o=!0}function p(t){r=t,window.requestAnimationFrame(u)}function f(){!s&&i&&o&&(window.requestAnimationFrame(p),o=!1)}return t.registerAnimation=A,t.loadAnimation=function(t){var e=new AnimationItem;return h(e,null),e.setParams(t),e},t.setSpeed=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setSpeed(t,r)},t.setDirection=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setDirection(t,r)},t.play=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.play(t)},t.pause=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.pause(t)},t.stop=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.stop(t)},t.togglePause=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.togglePause(t)},t.searchAnimations=function(t,e,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(n=0;n<o;n+=1)r&&i[n].setAttribute("data-bm-type",r),A(i[n],t);if(e&&0===o){r||(r="svg");var s=document.getElementsByTagName("body")[0];s.innerText="";var a=createTag("div");a.style.width="100%",a.style.height="100%",a.setAttribute("data-bm-type",r),s.appendChild(a),A(a,t)}},t.resize=function(){var t;for(t=0;t<n;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,r,i){var o;for(o=0;o<n;o+=1)e[o].animation.goToAndStop(t,r,i)},t.destroy=function(t){var r;for(r=n-1;r>=0;r-=1)e[r].animation.destroy(t)},t.freeze=function(){s=!0},t.unfreeze=function(){s=!1,f()},t.setVolume=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setVolume(t,r)},t.mute=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.mute(t)},t.unmute=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n.push(e[t].animation);return n},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,r,n,i,o){var s=o||("bez_"+t+"_"+r+"_"+n+"_"+i).replace(/\./g,"p");if(e[s])return e[s];var a=new c([t,r,n,i]);return e[s]=a,a}},e={},r=11,n=1/(r-1),i="function"==typeof Float32Array;function o(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function a(t){return 3*t}function A(t,e,r){return((o(e,r)*t+s(e,r))*t+a(e))*t}function l(t,e,r){return 3*o(e,r)*t*t+2*s(e,r)*t+a(e)}function c(t){this._p=t,this._mSampleValues=i?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(t){var e=this._p[0],r=this._p[1],n=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),e===r&&n===i?t:0===t?0:1===t?1:A(this._getTForX(t),r,i)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<r;++i)this._mSampleValues[i]=A(i*n,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],o=this._mSampleValues,s=0,a=1,c=r-1;a!==c&&o[a]<=t;++a)s+=n;var h=s+(t-o[--a])/(o[a+1]-o[a])*n,u=l(h,e,i);return u>=.001?function(t,e,r,n){for(var i=0;i<4;++i){var o=l(e,r,n);if(0===o)return e;e-=(A(e,r,n)-t)/o}return e}(t,h,e,i):0===u?h:function(t,e,r,n,i){var o,s,a=0;do{(o=A(s=e+(r-e)/2,n,i)-t)>0?r=s:e=s}while(Math.abs(o)>1e-7&&++a<10);return s}(t,s,s+n,e,i)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var n=0,i=t,o=createSizedArray(i);return{newElement:function(){return n?o[n-=1]:e()},release:function(t){n===i&&(o=pooling.double(o),i*=2),r&&r(t),o[n]=t,n+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0});function bezFunction(){var t=Math;function e(t,e,r,n,i,o){var s=t*n+e*i+r*o-i*n-o*t-r*e;return s>-.001&&s<.001}var r=function(t,e,r,n){var i,o,s,a,A,l,c=getDefaultCurveSegments(),h=0,u=[],p=[],f=bezierLengthPool.newElement();for(s=r.length,i=0;i<c;i+=1){for(A=i/(c-1),l=0,o=0;o<s;o+=1)a=bmPow(1-A,3)*t[o]+3*bmPow(1-A,2)*A*r[o]+3*(1-A)*bmPow(A,2)*n[o]+bmPow(A,3)*e[o],u[o]=a,null!==p[o]&&(l+=bmPow(u[o]-p[o],2)),p[o]=u[o];l&&(h+=l=bmSqrt(l)),f.percents[i]=A,f.lengths[i]=h}return f.addedLength=h,f};function n(t){this.segmentLength=0,this.points=new Array(t)}function i(t,e){this.partialLength=t,this.point=e}var o,s=(o={},function(t,r,s,a){var A=(t[0]+"_"+t[1]+"_"+r[0]+"_"+r[1]+"_"+s[0]+"_"+s[1]+"_"+a[0]+"_"+a[1]).replace(/\./g,"p");if(!o[A]){var l,c,h,u,p,f,d,g=getDefaultCurveSegments(),m=0,y=null;2===t.length&&(t[0]!==r[0]||t[1]!==r[1])&&e(t[0],t[1],r[0],r[1],t[0]+s[0],t[1]+s[1])&&e(t[0],t[1],r[0],r[1],r[0]+a[0],r[1]+a[1])&&(g=2);var v=new n(g);for(h=s.length,l=0;l<g;l+=1){for(d=createSizedArray(h),p=l/(g-1),f=0,c=0;c<h;c+=1)u=bmPow(1-p,3)*t[c]+3*bmPow(1-p,2)*p*(t[c]+s[c])+3*(1-p)*bmPow(p,2)*(r[c]+a[c])+bmPow(p,3)*r[c],d[c]=u,null!==y&&(f+=bmPow(d[c]-y[c],2));m+=f=bmSqrt(f),v.points[l]=new i(f,d),y=d}v.segmentLength=m,o[A]=v}return o[A]});function a(t,e){var r=e.percents,n=e.lengths,i=r.length,o=bmFloor((i-1)*t),s=t*e.addedLength,a=0;if(o===i-1||0===o||s===n[o])return r[o];for(var A=n[o]>s?-1:1,l=!0;l;)if(n[o]<=s&&n[o+1]>s?(a=(s-n[o])/(n[o+1]-n[o]),l=!1):o+=A,o<0||o>=i-1){if(o===i-1)return r[o];l=!1}return r[o]+(r[o+1]-r[o])*a}var A=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,n=segmentsLengthPool.newElement(),i=t.c,o=t.v,s=t.o,a=t.i,A=t._length,l=n.lengths,c=0;for(e=0;e<A-1;e+=1)l[e]=r(o[e],o[e+1],s[e],a[e+1]),c+=l[e].addedLength;return i&&A&&(l[e]=r(o[e],o[0],s[e],a[0]),c+=l[e].addedLength),n.totalLength=c,n},getNewSegment:function(e,r,n,i,o,s,l){o<0?o=0:o>1&&(o=1);var c,h=a(o,l),u=a(s=s>1?1:s,l),p=e.length,f=1-h,d=1-u,g=f*f*f,m=h*f*f*3,y=h*h*f*3,v=h*h*h,b=f*f*d,w=h*f*d+f*h*d+f*f*u,x=h*h*d+f*h*u+h*f*u,B=h*h*u,C=f*d*d,_=h*d*d+f*u*d+f*d*u,E=h*u*d+f*u*u+h*d*u,S=h*u*u,I=d*d*d,F=u*d*d+d*u*d+d*d*u,T=u*u*d+d*u*u+u*d*u,k=u*u*u;for(c=0;c<p;c+=1)A[4*c]=t.round(1e3*(g*e[c]+m*n[c]+y*i[c]+v*r[c]))/1e3,A[4*c+1]=t.round(1e3*(b*e[c]+w*n[c]+x*i[c]+B*r[c]))/1e3,A[4*c+2]=t.round(1e3*(C*e[c]+_*n[c]+E*i[c]+S*r[c]))/1e3,A[4*c+3]=t.round(1e3*(I*e[c]+F*n[c]+T*i[c]+k*r[c]))/1e3;return A},getPointInSegment:function(e,r,n,i,o,s){var A=a(o,s),l=1-A;return[t.round(1e3*(l*l*l*e[0]+(A*l*l+l*A*l+l*l*A)*n[0]+(A*A*l+l*A*A+A*l*A)*i[0]+A*A*A*r[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(A*l*l+l*A*l+l*l*A)*n[1]+(A*A*l+l*A*A+A*l*A)*i[1]+A*A*A*r[1]))/1e3]},buildBezierData:s,pointOnLine2D:e,pointOnLine3D:function(r,n,i,o,s,a,A,l,c){if(0===i&&0===a&&0===c)return e(r,n,o,s,A,l);var h,u=t.sqrt(t.pow(o-r,2)+t.pow(s-n,2)+t.pow(a-i,2)),p=t.sqrt(t.pow(A-r,2)+t.pow(l-n,2)+t.pow(c-i,2)),f=t.sqrt(t.pow(A-o,2)+t.pow(l-s,2)+t.pow(c-a,2));return(h=u>p?u>f?u-p-f:f-p-u:f>p?f-p-u:p-u-f)>-1e-4&&h<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var r,n=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var i,o,s,a,A,l,c,h,u,p=e.lastIndex,f=p,d=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[f],o=this.keyframes[f+1],f===d-1&&t>=o.t-n){i.h&&(i=o),p=0;break}if(o.t-n>t){p=f;break}f<d-1?f+=1:(p=0,g=!1)}s=this.keyframesMetadata[f]||{};var m,y=o.t-n,v=i.t-n;if(i.to){s.bezierData||(s.bezierData=bez.buildBezierData(i.s,o.s||i.e,i.to,i.ti));var b=s.bezierData;if(t>=y||t<v){var w=t>=y?b.points.length-1:0;for(A=b.points[w].point.length,a=0;a<A;a+=1)r[a]=b.points[w].point[a]}else{s.__fnct?u=s.__fnct:(u=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,s.__fnct=u),l=u((t-v)/(y-v));var x,B=b.segmentLength*l,C=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastAddedLength:0;for(h=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastPoint:0,g=!0,c=b.points.length;g;){if(C+=b.points[h].partialLength,0===B||0===l||h===b.points.length-1){for(A=b.points[h].point.length,a=0;a<A;a+=1)r[a]=b.points[h].point[a];break}if(B>=C&&B<C+b.points[h+1].partialLength){for(x=(B-C)/b.points[h+1].partialLength,A=b.points[h].point.length,a=0;a<A;a+=1)r[a]=b.points[h].point[a]+(b.points[h+1].point[a]-b.points[h].point[a])*x;break}h<c-1?h+=1:g=!1}e._lastPoint=h,e._lastAddedLength=C-b.points[h].partialLength,e._lastKeyframeIndex=f}}else{var _,E,S,I,F;if(d=i.s.length,m=o.s||i.e,this.sh&&1!==i.h)t>=y?(r[0]=m[0],r[1]=m[1],r[2]=m[2]):t<=v?(r[0]=i.s[0],r[1]=i.s[1],r[2]=i.s[2]):quaternionToEuler(r,slerp(createQuaternion(i.s),createQuaternion(m),(t-v)/(y-v)));else for(f=0;f<d;f+=1)1!==i.h&&(t>=y?l=1:t<v?l=0:(i.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[f]?u=s.__fnct[f]:(_=void 0===i.o.x[f]?i.o.x[0]:i.o.x[f],E=void 0===i.o.y[f]?i.o.y[0]:i.o.y[f],S=void 0===i.i.x[f]?i.i.x[0]:i.i.x[f],I=void 0===i.i.y[f]?i.i.y[0]:i.i.y[f],u=BezierFactory.getBezierEasing(_,E,S,I).get,s.__fnct[f]=u)):s.__fnct?u=s.__fnct:(_=i.o.x,E=i.o.y,S=i.i.x,I=i.i.y,u=BezierFactory.getBezierEasing(_,E,S,I).get,i.keyframeMetadata=u),l=u((t-v)/(y-v)))),m=o.s||i.e,F=1===i.h?i.s[f]:i.s[f]+(m[f]-i.s[f])*l,"multidimensional"===this.propType?r[f]=F:r=F}return e.lastIndex=p,r}function slerp(t,e,r){var n,i,o,s,a,A=[],l=t[0],c=t[1],h=t[2],u=t[3],p=e[0],f=e[1],d=e[2],g=e[3];return(i=l*p+c*f+h*d+u*g)<0&&(i=-i,p=-p,f=-f,d=-d,g=-g),1-i>1e-6?(n=Math.acos(i),o=Math.sin(n),s=Math.sin((1-r)*n)/o,a=Math.sin(r*n)/o):(s=1-r,a=r),A[0]=s*l+a*p,A[1]=s*c+a*f,A[2]=s*h+a*d,A[3]=s*u+a*g,A}function quaternionToEuler(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],s=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i),a=Math.asin(2*r*n+2*i*o),A=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i);t[0]=s/degToRads,t[1]=a/degToRads,t[2]=A/degToRads}function createQuaternion(t){var e=t[0]*degToRads,r=t[1]*degToRads,n=t[2]*degToRads,i=Math.cos(e/2),o=Math.cos(r/2),s=Math.cos(n/2),a=Math.sin(e/2),A=Math.sin(r/2),l=Math.sin(n/2);return[a*A*s+i*o*l,a*o*s+i*A*l,i*A*s-a*o*l,i*o*s-a*A*l]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(t,this._caching);this.pv=n}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)e=t[r]*this.mult,mathAbs(this.v[r]-e)>1e-5&&(this.v[r]=e,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,r,n){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,r,n){var i;this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=e.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),i=0;i<o;i+=1)this.v[i]=e.k[i]*this.mult,this.pv[i]=e.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,r,n){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=r||1,this.elem=t,this.container=n,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,r,n){var i;this.propType="multidimensional";var o,s,a,A,l=e.k.length;for(i=0;i<l-1;i+=1)e.k[i].to&&e.k[i].s&&e.k[i+1]&&e.k[i+1].s&&(o=e.k[i].s,s=e.k[i+1].s,a=e.k[i].to,A=e.k[i].ti,(2===o.length&&(o[0]!==s[0]||o[1]!==s[1])&&bez.pointOnLine2D(o[0],o[1],s[0],s[1],o[0]+a[0],o[1]+a[1])&&bez.pointOnLine2D(o[0],o[1],s[0],s[1],s[0]+A[0],s[1]+A[1])||3===o.length&&(o[0]!==s[0]||o[1]!==s[1]||o[2]!==s[2])&&bez.pointOnLine3D(o[0],o[1],o[2],s[0],s[1],s[2],o[0]+a[0],o[1]+a[1],o[2]+a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],s[0],s[1],s[2],s[0]+A[0],s[1]+A[1],s[2]+A[2]))&&(e.k[i].to=null,e.k[i].ti=null),o[0]===s[0]&&o[1]===s[1]&&0===a[0]&&0===a[1]&&0===A[0]&&0===A[1]&&(2===o.length||o[2]===s[2]&&0===a[2]&&0===A[2])&&(e.k[i].to=null,e.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=t,this.container=n,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=e.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),i=0;i<c;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory={getProp:function(t,e,r,n,i){var o;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])o=new MultiDimensionalProperty(t,e,n,i);else switch(r){case 0:o=new KeyframedValueProperty(t,e,n,i);break;case 1:o=new KeyframedMultidimensionalProperty(t,e,n,i)}else o=new ValueProperty(t,e,n,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,r,n,i){var o;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[n]||o[n]&&!i)&&(o[n]=pointPool.newElement()),o[n][0]=t,o[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,n,i,o,s,a){this.setXYAt(t,e,"v",s,a),this.setXYAt(r,n,"o",s,a),this.setXYAt(i,o,"i",s,a)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,n=this.i,i=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var o,s=this._length-1,a=this._length;for(o=i;o<a;o+=1)t.setTripleAt(e[s][0],e[s][1],n[s][0],n[s][1],r[s][0],r[s][1],o,!1),s-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){var e,r=t._length;for(e=0;e<r;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}),factory.clone=function(t){var e,r=factory.newElement(),n=void 0===t._length?t.v.length:t._length;for(r.setLength(n),r.c=t.c,e=0;e<n;e+=1)r.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,r=t._length;for(e=0;e<r;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var t=-999999;function e(t,e,r){var n,i,o,s,a,A,l,c,h,u=r.lastIndex,p=this.keyframes;if(t<p[0].t-this.offsetTime)n=p[0].s[0],o=!0,u=0;else if(t>=p[p.length-1].t-this.offsetTime)n=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],o=!0;else{for(var f,d,g,m=u,y=p.length-1,v=!0;v&&(f=p[m],!((d=p[m+1]).t-this.offsetTime>t));)m<y-1?m+=1:v=!1;if(g=this.keyframesMetadata[m]||{},u=m,!(o=1===f.h)){if(t>=d.t-this.offsetTime)c=1;else if(t<f.t-this.offsetTime)c=0;else{var b;g.__fnct?b=g.__fnct:(b=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=b),c=b((t-(f.t-this.offsetTime))/(d.t-this.offsetTime-(f.t-this.offsetTime)))}i=d.s?d.s[0]:f.e[0]}n=f.s[0]}for(A=e._length,l=n.i[0].length,r.lastIndex=u,s=0;s<A;s+=1)for(a=0;a<l;a+=1)h=o?n.i[s][a]:n.i[s][a]+(i.i[s][a]-n.i[s][a])*c,e.i[s][a]=h,h=o?n.o[s][a]:n.o[s][a]+(i.o[s][a]-n.o[s][a])*c,e.o[s][a]=h,h=o?n.v[s][a]:n.v[s][a]+(i.v[s][a]-n.v[s][a])*c,e.v[s][a]=h}function r(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==t&&(i<r&&e<r||i>n&&e>n)||(this._caching.lastIndex=i<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function n(){this.paths=this.localShapeCollection}function i(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var r,n=t._length;for(r=0;r<n;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(e=0;e<r;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(t,e,r){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?e.pt.k:e.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function a(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function A(e,i,o){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[r.bind(this)]}s.prototype.interpolateShape=e,s.prototype.getValue=o,s.prototype.setVValue=i,s.prototype.addEffect=a,A.prototype.getValue=o,A.prototype.interpolateShape=e,A.prototype.setVValue=i,A.prototype.addEffect=a;var l=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,s=this.v;s.v[0][0]=e,s.v[0][1]=r-i,s.v[1][0]=o?e+n:e-n,s.v[1][1]=r,s.v[2][0]=e,s.v[2][1]=r+i,s.v[3][0]=o?e-n:e+n,s.v[3][1]=r,s.i[0][0]=o?e-n*t:e+n*t,s.i[0][1]=r-i,s.i[1][0]=o?e+n:e-n,s.i[1][1]=r-i*t,s.i[2][0]=o?e+n*t:e-n*t,s.i[2][1]=r+i,s.i[3][0]=o?e-n:e+n,s.i[3][1]=r+i*t,s.o[0][0]=o?e+n*t:e-n*t,s.o[0][1]=r-i,s.o[1][0]=o?e+n:e-n,s.o[1][1]=r+i*t,s.o[2][0]=o?e-n*t:e+n*t,s.o[2][1]=r+i,s.o[3][0]=o?e-n:e+n,s.o[3][1]=r-i*t}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,r,n,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,s=!0,a=this.or.v,A=this.ir.v,l=this.os.v,c=this.is.v,h=2*Math.PI*a/(2*i),u=2*Math.PI*A/(2*i),p=-Math.PI/2;p+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<i;t+=1){r=s?l:c,n=s?h:u;var d=(e=s?a:A)*Math.cos(p),g=e*Math.sin(p),m=0===d&&0===g?0:g/Math.sqrt(d*d+g*g),y=0===d&&0===g?0:-d/Math.sqrt(d*d+g*g);d+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(d,g,d-m*n*r*f,g-y*n*r*f,d+m*n*r*f,g+y*n*r*f,t,!0),s=!s,p+=o*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),r=2*Math.PI/e,n=this.or.v,i=this.os.v,o=2*Math.PI*n/(4*e),s=.5*-Math.PI,a=3===this.data.d?-1:1;for(s+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var A=n*Math.cos(s),l=n*Math.sin(s),c=0===A&&0===l?0:l/Math.sqrt(A*A+l*l),h=0===A&&0===l?0:-A/Math.sqrt(A*A+l*l);A+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(A,l,A-c*o*i*a,l-h*o*i*a,A+c*o*i*a,l+h*o*i*a,t,!0),s+=r*a}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),h=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,i=bmMin(r,n,this.r.v),o=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+r,e-n+i,t+r,e-n+i,t+r,e-n+o,0,!0),this.v.setTripleAt(t+r,e+n-i,t+r,e+n-o,t+r,e+n-i,1,!0),0!==i?(this.v.setTripleAt(t+r-i,e+n,t+r-i,e+n,t+r-o,e+n,2,!0),this.v.setTripleAt(t-r+i,e+n,t-r+o,e+n,t-r+i,e+n,3,!0),this.v.setTripleAt(t-r,e+n-i,t-r,e+n-i,t-r,e+n-o,4,!0),this.v.setTripleAt(t-r,e-n+i,t-r,e-n+o,t-r,e-n+i,5,!0),this.v.setTripleAt(t-r+i,e-n,t-r+i,e-n,t-r+o,e-n,6,!0),this.v.setTripleAt(t+r-i,e-n,t+r-o,e-n,t+r-i,e-n,7,!0)):(this.v.setTripleAt(t-r,e+n,t-r+o,e+n,t-r,e+n,2),this.v.setTripleAt(t-r,e-n,t-r,e-n+o,t-r,e-n,3))):(this.v.setTripleAt(t+r,e-n+i,t+r,e-n+o,t+r,e-n+i,0,!0),0!==i?(this.v.setTripleAt(t+r-i,e-n,t+r-i,e-n,t+r-o,e-n,1,!0),this.v.setTripleAt(t-r+i,e-n,t-r+o,e-n,t-r+i,e-n,2,!0),this.v.setTripleAt(t-r,e-n+i,t-r,e-n+i,t-r,e-n+o,3,!0),this.v.setTripleAt(t-r,e+n-i,t-r,e+n-o,t-r,e+n-i,4,!0),this.v.setTripleAt(t-r+i,e+n,t-r+i,e+n,t-r+o,e+n,5,!0),this.v.setTripleAt(t+r-i,e+n,t+r-o,e+n,t+r-i,e+n,6,!0),this.v.setTripleAt(t+r,e+n-i,t+r,e+n-i,t+r,e+n-o,7,!0)):(this.v.setTripleAt(t-r,e-n,t-r+o,e-n,t-r,e-n,1,!0),this.v.setTripleAt(t-r,e+n,t-r,e+n-o,t-r,e+n,2,!0),this.v.setTripleAt(t+r,e+n,t+r-o,e+n,t+r,e+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],t),t}();return{getShapeProp:function(t,e,r){var n;return 3===r||4===r?n=(3===r?e.pt:e.ks).k.length?new A(t,e,r):new s(t,e,r):5===r?n=new h(t,e):6===r?n=new l(t,e):7===r&&(n=new c(t,e)),n.k&&t.addDynamicProperty(n),n},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return A}}}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,n=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function s(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function a(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function A(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function c(t,e){return this.shear(r(t),r(e))}function h(n,i){var o=t(i),s=e(i);return this._t(o,s,0,0,-s,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-s,0,0,s,o,0,0,0,0,1,0,0,0,0,1)}function u(t,e,r){return r||0===r||(r=1),1===t&&1===e&&1===r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function p(t,e,r,n,i,o,s,a,A,l,c,h,u,p,f,d){return this.props[0]=t,this.props[1]=e,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=o,this.props[6]=s,this.props[7]=a,this.props[8]=A,this.props[9]=l,this.props[10]=c,this.props[11]=h,this.props[12]=u,this.props[13]=p,this.props[14]=f,this.props[15]=d,this}function f(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function d(t,e,r,n,i,o,s,a,A,l,c,h,u,p,f,d){var g=this.props;if(1===t&&0===e&&0===r&&0===n&&0===i&&1===o&&0===s&&0===a&&0===A&&0===l&&1===c&&0===h)return g[12]=g[12]*t+g[15]*u,g[13]=g[13]*o+g[15]*p,g[14]=g[14]*c+g[15]*f,g[15]*=d,this._identityCalculated=!1,this;var m=g[0],y=g[1],v=g[2],b=g[3],w=g[4],x=g[5],B=g[6],C=g[7],_=g[8],E=g[9],S=g[10],I=g[11],F=g[12],T=g[13],k=g[14],L=g[15];return g[0]=m*t+y*i+v*A+b*u,g[1]=m*e+y*o+v*l+b*p,g[2]=m*r+y*s+v*c+b*f,g[3]=m*n+y*a+v*h+b*d,g[4]=w*t+x*i+B*A+C*u,g[5]=w*e+x*o+B*l+C*p,g[6]=w*r+x*s+B*c+C*f,g[7]=w*n+x*a+B*h+C*d,g[8]=_*t+E*i+S*A+I*u,g[9]=_*e+E*o+S*l+I*p,g[10]=_*r+E*s+S*c+I*f,g[11]=_*n+E*a+S*h+I*d,g[12]=F*t+T*i+k*A+L*u,g[13]=F*e+T*o+k*l+L*p,g[14]=F*r+T*s+k*c+L*f,g[15]=F*n+T*a+k*h+L*d,this._identityCalculated=!1,this}function g(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function m(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function w(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function x(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function B(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function C(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function _(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,r=-this.props[1]/t,n=-this.props[4]/t,i=this.props[0]/t,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,a=new Matrix;return a.props[0]=e,a.props[1]=r,a.props[4]=n,a.props[5]=i,a.props[12]=o,a.props[13]=s,a}function E(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function S(t){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n[e]=E(t[e]);return n}function I(t,e,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=t[0],n[1]=t[1],n[2]=e[0],n[3]=e[1],n[4]=r[0],n[5]=r[1];else{var i=this.props[0],o=this.props[1],s=this.props[4],a=this.props[5],A=this.props[12],l=this.props[13];n[0]=t[0]*i+t[1]*s+A,n[1]=t[0]*o+t[1]*a+l,n[2]=e[0]*i+e[1]*s+A,n[3]=e[0]*o+e[1]*a+l,n[4]=r[0]*i+r[1]*s+A,n[5]=r[0]*o+r[1]*a+l}return n}function F(t,e,r){return this.isIdentity()?[t,e,r]:[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}function T(t,e){if(this.isIdentity())return t+","+e;var r=this.props;return Math.round(100*(t*r[0]+e*r[4]+r[12]))/100+","+Math.round(100*(t*r[1]+e*r[5]+r[13]))/100}function k(){for(var t=0,e=this.props,r="matrix3d(";t<16;)r+=n(1e4*e[t])/1e4,r+=15===t?")":",",t+=1;return r}function L(t){return t<1e-6&&t>0||t>-1e-6&&t<0?n(1e4*t)/1e4:t}function P(){var t=this.props;return"matrix("+L(t[0])+","+L(t[1])+","+L(t[4])+","+L(t[5])+","+L(t[12])+","+L(t[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=s,this.rotateY=a,this.rotateZ=A,this.skew=c,this.skewFromAxis=h,this.shear=l,this.scale=u,this.setTransform=p,this.translate=f,this.transform=d,this.multiply=g,this.applyToPoint=w,this.applyToX=x,this.applyToY=B,this.applyToZ=C,this.applyToPointArray=F,this.applyToTriplePoints=I,this.applyToPointStringified=T,this.toCSS=k,this.to2dCSS=P,this.clone=v,this.cloneFromProps=b,this.equals=y,this.inversePoints=S,this.inversePoint=E,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=m,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var n=e[r].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,r){e[t]||(e[t]=r)},t.getModifier=function(t,r,n){return new e[t](r,n)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,n,i){var o=[];e<=1?o.push({s:t,e}):t>=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var s,a,A=[],l=o.length;for(s=0;s<l;s+=1){var c,h;(a=o[s]).e*i<n||a.s*i>n+r||(c=a.s*i<=n?0:(a.s*i-n)/r,h=a.e*i>=n+r?1:(a.e*i-n)/r,A.push([c,h]))}return A.length||A.push([0,0]),A},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,n,i;if(this._mdf||t){var o=this.o.v%360/360;if(o<0&&(o+=1),(e=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(r=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var s=e;e=r,r=s}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var a,A,l,c,h,u=this.shapes.length,p=0;if(r===e)for(i=0;i<u;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===e||0===r&&1===e){if(this._mdf)for(i=0;i<u;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,d,g=[];for(i=0;i<u;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||t||2===this.m){if(A=(n=f.shape.paths)._length,h=0,!f.shape._mdf&&f.pathsData.length)h=f.totalShapeLength;else{for(l=this.releasePathsData(f.pathsData),a=0;a<A;a+=1)c=bez.getSegmentsLength(n.shapes[a]),l.push(c),h+=c.totalLength;f.totalShapeLength=h,f.pathsData=l}p+=h,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var m,y=e,v=r,b=0;for(i=u-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((d=f.localShapeCollection).releaseShapes(),2===this.m&&u>1?(m=this.calculateShapeEdges(e,r,f.totalShapeLength,b,p),b+=f.totalShapeLength):m=[[y,v]],A=m.length,a=0;a<A;a+=1){y=m[a][0],v=m[a][1],g.length=0,v<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*v}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(v-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(v-1)}));var w=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var x=w.pop();this.addPaths(w,d),w=this.addShapes(f,g[1],x)}else this.addPaths(w,d),w=this.addShapes(f,g[1]);this.addPaths(w,d)}}f.shape.paths=d}}},TrimModifier.prototype.addPaths=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,n,i,o,s){i.setXYAt(e[0],e[1],"o",o),i.setXYAt(r[0],r[1],"i",o+1),s&&i.setXYAt(t[0],t[1],"v",o),i.setXYAt(n[0],n[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,n){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),n&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var n,i,o,s,a,A,l,c,h=t.pathsData,u=t.shape.paths.shapes,p=t.shape.paths._length,f=0,d=[],g=!0;for(r?(a=r._length,c=r._length):(r=shapePool.newElement(),a=0,c=0),d.push(r),n=0;n<p;n+=1){for(A=h[n].lengths,r.c=u[n].c,o=u[n].c?A.length:A.length+1,i=1;i<o;i+=1)if(f+(s=A[i-1]).addedLength<e.s)f+=s.addedLength,r.c=!1;else{if(f>e.e){r.c=!1;break}e.s<=f&&e.e>=f+s.addedLength?(this.addSegment(u[n].v[i-1],u[n].o[i-1],u[n].i[i],u[n].v[i],r,a,g),g=!1):(l=bez.getNewSegment(u[n].v[i-1],u[n].v[i],u[n].o[i-1],u[n].i[i],(e.s-f)/s.addedLength,(e.e-f)/s.addedLength,A[i-1]),this.addSegmentFromArray(l,r,a,g),g=!1,r.c=!1),f+=s.addedLength,a+=1}if(u[n].c&&A.length){if(s=A[i-1],f<=e.e){var m=A[i-1].addedLength;e.s<=f&&e.e>=f+m?(this.addSegment(u[n].v[i-1],u[n].o[i-1],u[n].i[0],u[n].v[0],r,a,g),g=!1):(l=bez.getNewSegment(u[n].v[i-1],u[n].v[0],u[n].o[i-1],u[n].i[0],(e.s-f)/m,(e.e-f)/m,A[i-1]),this.addSegmentFromArray(l,r,a,g),g=!1,r.c=!1)}else r.c=!1;f+=s.addedLength,a+=1}if(r._length&&(r.setXYAt(r.v[c][0],r.v[c][1],"i",c),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),f>e.e)break;n<p-1&&(r=shapePool.newElement(),g=!0,d.push(r),a=0)}return d},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100,n=[0,0],i=t._length,o=0;for(o=0;o<i;o+=1)n[0]+=t.v[o][0],n[1]+=t.v[o][1];n[0]/=i,n[1]/=i;var s,a,A,l,c,h,u=shapePool.newElement();for(u.c=t.c,o=0;o<i;o+=1)s=t.v[o][0]+(n[0]-t.v[o][0])*r,a=t.v[o][1]+(n[1]-t.v[o][1])*r,A=t.o[o][0]+(n[0]-t.o[o][0])*-r,l=t.o[o][1]+(n[1]-t.o[o][1])*-r,c=t.i[o][0]+(n[0]-t.i[o][0])*-r,h=t.i[o][1]+(n[1]-t.i[o][1])*-r,u.setTripleAt(s,a,A,l,c,h,o);return u},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,n,i,o,s,a=this.shapes.length,A=this.amount.v;if(0!==A)for(r=0;r<a;r+=1){if(s=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)s.addShape(this.processPath(e[n],A));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var n,i=e.or.k.length;for(n=0;n<i;n+=1)e.or.k[n].to=null,e.or.k[n].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],i=[];var o=this.px,s=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[1]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[0]=o.getValueAtTime(o.keyframes[0].t/r,0),i[1]=s.getValueAtTime(s.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0)):(n=[o.pv,s.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime))}else n=i=t;this.v.rotate(-Math.atan2(n[1]-i[1],n[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,r,n){return new e(t,r,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(0===t)return[];var n=e*e-4*t*r;if(n<0)return[];var i=-e/(2*t);if(0===n)return[i];var o=Math.sqrt(n)/(2*t);return[i-o,i+o]}function polynomialCoefficients(t,e,r,n){return[3*e-t-3*r+n,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,n,i){i&&pointEqual(t,e)&&(e=lerpPoint(t,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(t,n,2/3));var o=polynomialCoefficients(t[0],e[0],r[0],n[0]),s=polynomialCoefficients(t[1],e[1],r[1],n[1]);this.a=[o[0],s[0]],this.b=[o[1],s[1]],this.c=[o[2],s[2]],this.d=[o[3],s[3]],this.points=[t,e,r,n]}function extrema(t,e){var r=t.points[0][e],n=t.points[t.points.length-1][e];if(r>n){var i=n;n=r,r=i}for(var o=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var a=t.point(o[s])[e];a<r?r=a:a>n&&(n=a)}return{min:r,max:n}}function intersectData(t,e,r){var n=t.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,r,n,i,o){if(boxIntersect(t,e))if(r>=o||t.width<=n&&t.height<=n&&e.width<=n&&e.height<=n)i.push([t.t,e.t]);else{var s=splitData(t),a=splitData(e);intersectsImpl(s[0],a[0],r+1,n,i,o),intersectsImpl(s[0],a[1],r+1,n,i,o),intersectsImpl(s[1],a[0],r+1,n,i,o),intersectsImpl(s[1],a[1],r+1,n,i,o)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,n){var i=[t[0],t[1],1],o=[e[0],e[1],1],s=[r[0],r[1],1],a=[n[0],n[1],1],A=crossProduct(crossProduct(i,o),crossProduct(s,a));return floatZero(A[2])?null:[A[0]/A[2],A[1]/A[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,r,n,i,o,s){var a=r-Math.PI/2,A=r+Math.PI/2,l=e[0]+Math.cos(r)*n*i,c=e[1]-Math.sin(r)*n*i;t.setTripleAt(l,c,l+Math.cos(a)*o,c-Math.sin(a)*o,l+Math.cos(A)*s,c-Math.sin(A)*s,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(t,e){var r=0===e?t.length()-1:e-1,n=(e+1)%t.length(),i=getPerpendicularVector(t.v[r],t.v[n]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(t,e,r,n,i,o,s){var a=getProjectingAngle(e,r),A=e.v[r%e._length],l=e.v[0===r?e._length-1:r-1],c=e.v[(r+1)%e._length],h=2===o?Math.sqrt(Math.pow(A[0]-l[0],2)+Math.pow(A[1]-l[1],2)):0,u=2===o?Math.sqrt(Math.pow(A[0]-c[0],2)+Math.pow(A[1]-c[1],2)):0;setPoint(t,e.v[r%e._length],a,s,n,u/(2*(i+1)),h/(2*(i+1)),o)}function zigZagSegment(t,e,r,n,i,o){for(var s=0;s<n;s+=1){var a=(s+1)/(n+1),A=2===i?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(a);setPoint(t,e.point(a),l,o,r,A/(2*(n+1)),A/(2*(n+1)),i),o=-o}return o}function linearOffset(t,e,r){var n=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,n,r),polarOffset(e,n,r)]}function offsetSegment(t,e){var r,n,i,o,s,a,A;r=(A=linearOffset(t.points[0],t.points[1],e))[0],n=A[1],i=(A=linearOffset(t.points[1],t.points[2],e))[0],o=A[1],s=(A=linearOffset(t.points[2],t.points[3],e))[0],a=A[1];var l=lineIntersection(r,n,i,o);null===l&&(l=n);var c=lineIntersection(s,a,i,o);return null===c&&(c=s),new PolynomialBezier(r,l,c,a)}function joinLines(t,e,r,n,i){var o=e.points[3],s=r.points[0];if(3===n)return o;if(pointEqual(o,s))return o;if(2===n){var a=-e.tangentAngle(1),A=-r.tangentAngle(0)+Math.PI,l=lineIntersection(o,polarOffset(o,a+Math.PI/2,100),s,polarOffset(s,a+Math.PI/2,100)),c=l?pointDistance(l,o):pointDistance(o,s)/2,h=polarOffset(o,a,2*c*roundCorner);return t.setXYAt(h[0],h[1],"o",t.length()-1),h=polarOffset(s,A,2*c*roundCorner),t.setTripleAt(s[0],s[1],s[0],s[1],h[0],h[1],t.length()),s}var u=lineIntersection(pointEqual(o,e.points[2])?e.points[0]:e.points[2],o,s,pointEqual(s,r.points[1])?r.points[3]:r.points[1]);return u&&pointDistance(u,o)<i?(t.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],t.length()),u):o}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),n=e.slice(),i=getIntersection(t[t.length-1],e[0]);return i&&(r[t.length-1]=t[t.length-1].split(i[0])[0],n[0]=e[0].split(i[1])[1]),t.length>1&&e.length>1&&(i=getIntersection(t[0],e[e.length-1]))?[[t[0].split(i[0])[0]],[e[e.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r,n,i,o,s=t.inflectionPoints();if(0===s.length)return[offsetSegment(t,e)];if(1===s.length||floatEqual(s[1],1))return r=(i=t.split(s[0]))[0],n=i[1],[offsetSegment(r,e),offsetSegment(n,e)];r=(i=t.split(s[0]))[0];var a=(s[1]-s[0])/(1-s[0]);return o=(i=i[1].split(a))[0],n=i[1],[offsetSegment(r,e),offsetSegment(o,e),offsetSegment(n,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",n="normal",i=e.length,o=0;o<i;o+=1)switch(e[o].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:t.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,r,n,i,o){var s=o?-1:1,a=n.s.v[0]+(1-n.s.v[0])*(1-i),A=n.s.v[1]+(1-n.s.v[1])*(1-i);t.translate(n.p.v[0]*s*i,n.p.v[1]*s*i,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*s*i),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(o?1/a:a,o?1/A:A),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,n){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,n,i,o,s=!1;if(this._mdf||t){var a,A=Math.ceil(this.c.v);if(this._groups.length<A){for(;this._groups.length<A;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}for(o=0,n=0;n<=this._groups.length-1;n+=1){if(a=o<A,this._groups[n]._render=a,this.changeGroupRender(this._groups[n].it,a),!a){var c=this.elemsData[n].it,h=c[c.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}o+=1}this._currentCopies=A;var u=this.o.v,p=u%1,f=u>0?Math.floor(u):Math.ceil(u),d=this.pMatrix.props,g=this.rMatrix.props,m=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,v,b=0;if(u>0){for(;b<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),b+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),b+=p)}else if(u<0){for(;b>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),b-=p)}for(n=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(v=(r=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==b){for((0!==n&&1===i||n!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),y=0;y<v;y+=1)r[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<v;y+=1)r[y]=this.matrix.props[y];b+=1,o-=1,n+=i}}else for(o=this._currentCopies,n=0,i=1;o;)r=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,o-=1,n+=i;return s},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r,n=shapePool.newElement();n.c=t.c;var i,o,s,a,A,l,c,h,u,p,f,d,g=t._length,m=0;for(r=0;r<g;r+=1)i=t.v[r],s=t.o[r],o=t.i[r],i[0]===s[0]&&i[1]===s[1]&&i[0]===o[0]&&i[1]===o[1]?0!==r&&r!==g-1||t.c?(a=0===r?t.v[g-1]:t.v[r-1],l=(A=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(A/2,e)/A:0,c=f=i[0]+(a[0]-i[0])*l,h=d=i[1]-(i[1]-a[1])*l,u=c-(c-i[0])*roundCorner,p=h-(h-i[1])*roundCorner,n.setTripleAt(c,h,u,p,f,d,m),m+=1,a=r===g-1?t.v[0]:t.v[r+1],l=(A=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(A/2,e)/A:0,c=u=i[0]+(a[0]-i[0])*l,h=p=i[1]+(a[1]-i[1])*l,f=c-(c-i[0])*roundCorner,d=h-(h-i[1])*roundCorner,n.setTripleAt(c,h,u,p,f,d,m),m+=1):(n.setTripleAt(i[0],i[1],s[0],s[1],o[0],o[1],m),m+=1):(n.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],m),m+=1);return n},RoundCornersModifier.prototype.processShapes=function(t){var e,r,n,i,o,s,a=this.shapes.length,A=this.rd.v;if(0!==A)for(r=0;r<a;r+=1){if(s=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)s.addShape(this.processPath(e[n],A));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[e]:[]:[e-n,e+n].filter(function(t){return t>0&&t<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),n=lerpPoint(this.points[2],this.points[3],t),i=lerpPoint(e,r,t),o=lerpPoint(r,n,t),s=lerpPoint(i,o,t);return[new PolynomialBezier(this.points[0],e,i,s,!0),new PolynomialBezier(s,o,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,r){void 0===e&&(e=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,n,r),n},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,r,n){var i=t._length,o=shapePool.newElement();if(o.c=t.c,t.c||(i-=1),0===i)return o;var s=-1,a=PolynomialBezier.shapeSegment(t,0);zigZagCorner(o,t,0,e,r,n,s);for(var A=0;A<i;A+=1)s=zigZagSegment(o,a,e,r,n,-s),a=A!==i-1||t.c?PolynomialBezier.shapeSegment(t,(A+1)%i):null,zigZagCorner(o,t,A+1,e,r,n,s);return o},ZigZagModifier.prototype.processShapes=function(t){var e,r,n,i,o,s,a=this.shapes.length,A=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==A)for(r=0;r<a;r+=1){if(s=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)s.addShape(this.processPath(e[n],A,l,c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,r,n){var i=shapePool.newElement();i.c=t.c;var o,s,a,A=t.length();t.c||(A-=1);var l=[];for(o=0;o<A;o+=1)a=PolynomialBezier.shapeSegment(t,o),l.push(offsetSegmentSplit(a,e));if(!t.c)for(o=A-1;o>=0;o-=1)a=PolynomialBezier.shapeSegmentInverted(t,o),l.push(offsetSegmentSplit(a,e));l=pruneIntersections(l);var c=null,h=null;for(o=0;o<l.length;o+=1){var u=l[o];for(h&&(c=joinLines(i,h,u[0],r,n)),h=u[u.length-1],s=0;s<u.length;s+=1)a=u[s],c&&pointEqual(a.points[0],c)?i.setXYAt(a.points[1][0],a.points[1][1],"o",i.length()-1):i.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],i.length()),i.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],i.length()),c=a.points[3]}return l.length&&joinLines(i,h,l[0][0],r,n),i},OffsetPathModifier.prototype.processShapes=function(t){var e,r,n,i,o,s,a=this.shapes.length,A=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(0!==A)for(r=0;r<a;r+=1){if(s=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)s.addShape(this.processPath(e[n],A,c,l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function i(t,e){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=e;var n=createTag("span");n.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var i=n.offsetWidth;return n.style.fontFamily=function(t){var e,r=t.split(","),n=r.length,i=[];for(e=0;e<n;e+=1)"sans-serif"!==r[e]&&"monospace"!==r[e]&&i.push(r[e]);return i.join(",")}(t)+", "+e,{node:n,w:i,parent:r}}function o(t,e){var r,n=document.body&&e?"svg":"canvas",i=getFontProperties(t);if("svg"===n){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",t.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",t.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",t.fClass)):o.style.fontFamily=t.fFamily,e.appendChild(o),r=o}else{var s=new OffscreenCanvas(500,500).getContext("2d");s.font=i.style+" "+i.weight+" 100px "+t.fFamily,r=s}return{measureText:function(t){return"svg"===n?(r.textContent=t,r.getComputedTextLength()):r.measureText(t).width}}}function s(t){var e=0,r=t.charCodeAt(0);if(r>=55296&&r<=56319){var n=t.charCodeAt(1);n>=56320&&n<=57343&&(e=1024*(r-55296)+n-56320+65536)}return e}function a(t){var e=s(t);return e>=127462&&e<=127487}var A=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};A.isModifier=function(t,e){var r=t.toString(16)+e.toString(16);return-1!==n.indexOf(r)},A.isZeroWidthJoiner=function(t){return 8205===t},A.isFlagEmoji=function(t){return a(t.substr(0,2))&&a(t.substr(2,2))},A.isRegionalCode=a,A.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},A.isRegionalFlag=function(t,e){var n=s(t.substr(e,2));if(n!==r)return!1;var i=0;for(e+=2;i<5;){if((n=s(t.substr(e,2)))<917601||n>917626)return!1;i+=1,e+=2}return 917631===s(t.substr(e,2))},A.isVariationSelector=function(t){return 65039===t},A.BLACK_FLAG_CODE_POINT=r;var l={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var r,n,i=t.length,o=this.chars.length;for(e=0;e<i;e+=1){for(r=0,n=!1;r<o;)this.chars[r].style===t[e].style&&this.chars[r].fFamily===t[e].fFamily&&this.chars[r].ch===t[e].ch&&(n=!0),r+=1;n||(this.chars.push(t[e]),o+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach(function(t){t.helper=o(t),t.cache={}}),void(this.fonts=t.list);var r,n=t.list,s=n.length,a=s;for(r=0;r<s;r+=1){var A,l,c=!0;if(n[r].loaded=!1,n[r].monoCase=i(n[r].fFamily,"monospace"),n[r].sansCase=i(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){if((A=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[r].fFamily+'"], style[f-origin="3"][f-family="'+n[r].fFamily+'"]')).length>0&&(c=!1),c){var h=createTag("style");h.setAttribute("f-forigin",n[r].fOrigin),h.setAttribute("f-origin",n[r].origin),h.setAttribute("f-family",n[r].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",e.appendChild(h)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(A=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<A.length;l+=1)-1!==A[l].href.indexOf(n[r].fPath)&&(c=!1);if(c){var u=createTag("link");u.setAttribute("f-forigin",n[r].fOrigin),u.setAttribute("f-origin",n[r].origin),u.type="text/css",u.rel="stylesheet",u.href=n[r].fPath,document.body.appendChild(u)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(A=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<A.length;l+=1)n[r].fPath===A[l].src&&(c=!1);if(c){var p=createTag("link");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",n[r].fPath),e.appendChild(p)}}}else n[r].loaded=!0,a-=1;n[r].helper=o(n[r],e),n[r].cache={},this.fonts.push(n[r])}0===a?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,r,n){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===e&&this.chars[i].style===r&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,r,n)),t},getFontByName:function(t){for(var e=0,r=this.fonts.length;e<r;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,r){var n=this.getFontByName(e),i=t;if(!n.cache[i]){var o=n.helper;if(" "===t){var s=o.measureText("|"+t+"|"),a=o.measureText("||");n.cache[i]=(s-a)/100}else n.cache[i]=o.measureText(t)/100}return n.cache[i]*r},checkLoadedFonts:function(){var t,e,r,n=this.fonts.length,i=n;for(t=0;t<n;t+=1)this.fonts[t].loaded?i-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,e.offsetWidth!==r?(i-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,e.offsetWidth!==r&&(i-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return A.prototype=l,A}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r,n=t.ef||[];this.effectElements=[];var i,o=n.length;for(r=0;r<o;r+=1)i=new GroupEffect(n[r],e),this.effectElements.push(i)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var n,i=this.data.ef.length,o=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,o[r].ty){case 0:n=new SliderEffect(o[r],e,this);break;case 1:n=new AngleEffect(o[r],e,this);break;case 2:n=new ColorEffect(o[r],e,this);break;case 3:n=new PointEffect(o[r],e,this);break;case 4:case 7:n=new CheckboxEffect(o[r],e,this);break;case 10:n=new LayerIndexEffect(o[r],e,this);break;case 11:n=new MaskIndexEffect(o[r],e,this);break;case 5:n=new EffectsManager(o[r],e,this);break;default:n=new NoValueEffect(o[r],e,this)}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),r=t("effects"),n=t("shape"),i=t("text"),o=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var s=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(s),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,r,n=this.layers.length;for(this.completeLayers=!0,e=n-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var r,n=t.length,i=this.layers.length;for(e=0;e<n;e+=1)for(r=0;r<i;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var n=this.elements,i=this.layers,o=0,s=i.length;o<s;)i[o].ind==e&&(n[o]&&!0!==n[o]?(r.push(n[o]),n[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(t,i[o].parent,r):t.setHierarchy(r)):(this.buildItem(o),this.addPendingElement(t))),o+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(t){var e,r=this.elements.length;for(e=0;e<r;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,r=t.shift();if("number"==typeof r)e=this.elements[r];else{var n,i=this.elements.length;for(n=0;n<i;n+=1)if(this.elements[n].data.nm===r){e=this.elements[n];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,i,o=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var a,A,l,c,h,u,p=this.masksProperties,f=0,d=[],g=createElementID(),m="clipPath",y="clip-path";for(n=0;n<s;n+=1)if(("a"!==p[n].mode&&"n"!==p[n].mode||p[n].inv||100!==p[n].o.k||p[n].o.x)&&(m="mask",y="mask"),"s"!==p[n].mode&&"i"!==p[n].mode||0!==f?l=null:((l=createNS("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w||0),l.setAttribute("height",this.element.comp.data.h||0),d.push(l)),i=createNS("path"),"n"===p[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,p[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[n],3),elem:i,lastPath:""},o.appendChild(i);else{var v;if(f+=1,i.setAttribute("fill","s"===p[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==p[n].x.k?(m="mask",y="mask",u=PropertyFactory.getProp(this.element,p[n].x,0,null,this.element),v=createElementID(),(c=createNS("filter")).setAttribute("id",v),(h=createNS("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),c.appendChild(h),o.appendChild(c),i.setAttribute("stroke","s"===p[n].mode?"#000000":"#ffffff")):(h=null,u=null),this.storedData[n]={elem:i,x:u,expan:h,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===p[n].mode){A=d.length;var b=createNS("g");for(a=0;a<A;a+=1)b.appendChild(d[a]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",g+"_"+f),w.appendChild(i),o.appendChild(w),b.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),d.length=0,d.push(b)}else d.push(i);p[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,p[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[n],3),invRect:l},this.viewData[n].prop.k||this.drawPath(p[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(m),s=d.length,n=0;n<s;n+=1)this.maskElement.appendChild(d[n]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<n;r+=1)e.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),t=1;t<e;t+=1){var n=this.localTransforms[t].matrix;r.multiply(n)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)i*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=i}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,r=t.length;for(e=0;e<r;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r,n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&e.splice(0,0,i.finalTransform),i=i.comp):n=!1;var o,s=e.length;for(r=0;r<s;r+=1)o=e[r].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(e=0;e<n;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var i=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),i.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var n,i,o=" M"+e.v[0][0]+","+e.v[0][1];for(i=e._length,n=1;n<i;n+=1)o+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];if(e.c&&i>1&&(o+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==o){var s="";r.elem&&(e.c&&(s=t.inv?this.solidPath+o:o),r.elem.setAttribute("d",s)),r.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory={createFilter:function(t,e){var r=createNS("filter");return r.setAttribute("id",t),!0!==e&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t}},featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,r,n="SourceGraphic",i=t.data.ef?t.data.ef.length:0,o=createElementID(),s=filtersFactory.createFilter(o,!0),a=0;for(this.filters=[],e=0;e<i;e+=1){r=null;var A=t.data.ef[e].ty;registeredEffects$1[A]&&(r=new(0,registeredEffects$1[A].effect)(s,t.effectsManager.effectElements[e],t,idPrefix+a,n),n=idPrefix+a,registeredEffects$1[A].countsAsEffect&&(a+=1)),r&&this.filters.push(r)}a&&(t.globalData.defs.appendChild(s),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,r){registeredEffects$1[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,r=this.filters.length,n=[];for(e=0;e<r;e+=1)this.filters[e].type===t&&n.push(this.filters[e]);return n},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(r.setAttribute("id",i),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,r,n,i,o=this.layerId+"_"+t;if(1===t||3===t){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type",3===t?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),s.appendChild(n),this.globalData.defs.appendChild(s),featureSupport.maskType||1!==t||(s.setAttribute("mask-type","luminance"),e=createElementID(),r=filtersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(n),s.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type","alpha");var A=createNS("g");a.appendChild(A),e=createElementID(),r=filtersFactory.createFilter(e);var l=createNS("feComponentTransfer");l.setAttribute("in","SourceGraphic"),r.appendChild(l);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),l.appendChild(c),this.globalData.defs.appendChild(r);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),A.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),A.appendChild(h),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(n),featureSupport.maskType||(a.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),A.appendChild(h),i.appendChild(this.layerElement),A.appendChild(i)),this.globalData.defs.appendChild(a)}this.matteMasks[t]=o}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,n=e.length;r<n;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===t)return void(r[n].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var n=0,i=t.length;n<i;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,r,n){var i;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var o,s=e.length||0;for(i=0;i<s;i+=1)o=PropertyFactory.getProp(t,e[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:e[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var n=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<r;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,n=this.o.length/2;r<n;){if(Math.abs(t[4*r]-t[4*e+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,n,i=4*this.data.p;for(e=0;e<i;e+=1)r=e%4==0?100:255,n=Math.round(this.prop.v[e]*r),this.c[e]!==n&&(this.c[e]=n,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,e=4*this.data.p;e<i;e+=1)r=e%2==0?100:1,n=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==n&&(this.o[e-4*this.data.p]=n,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),n=createNS(1===e.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i,o,s,a=[];for(s=4*e.g.p,o=0;o<s;o+=4)i=createNS("stop"),n.appendChild(i),a.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,o=createNS("mask"),s=createNS("path");o.appendChild(s);var a=createElementID(),A=createElementID();o.setAttribute("id",A);var l=createNS(1===t.t?"linearGradient":"radialGradient");l.setAttribute("id",a),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),i=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(n=4*t.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(r),c.push(r);s.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),"gs"===t.ty&&(s.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&s.setAttribute("stroke-miterlimit",t.ml)),this.of=l,this.ms=o,this.ost=c,this.maskId=A,e.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,n){if(0===e)return"";var i,o=t.o,s=t.i,a=t.v,A=" M"+n.applyToPointStringified(a[0][0],a[0][1]);for(i=1;i<e;i+=1)A+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(s[i][0],s[i][1])+" "+n.applyToPointStringified(a[i][0],a[i][1]);return r&&e&&(A+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(s[0][0],s[0][1])+" "+n.applyToPointStringified(a[0][0],a[0][1]),A+="z"),A},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(t,e,r){(r||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(r||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function n(){}function i(r,n,i){var o,s,a,A,l,c,h,u,p,f,d=n.styles.length,g=n.lvl;for(c=0;c<d;c+=1){if(A=n.sh._mdf||i,n.styles[c].lvl<g){for(u=e.reset(),p=g-n.styles[c].lvl,f=n.transformers.length-1;!A&&p>0;)A=n.transformers[f].mProps._mdf||A,p-=1,f-=1;if(A)for(p=g-n.styles[c].lvl,f=n.transformers.length-1;p>0;)u.multiply(n.transformers[f].mProps.v),p-=1,f-=1}else u=t;if(s=(h=n.sh.paths)._length,A){for(a="",o=0;o<s;o+=1)(l=h.shapes[o])&&l._length&&(a+=buildShapeString(l,l._length,l.c,u));n.caches[c]=a}else a=n.caches[c];n.styles[c].d+=!0===r.hd?"":a,n.styles[c]._mdf=A||n.styles[c]._mdf}}function o(t,e,r){var n=e.style;(e.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",e.o.v)}function s(t,e,r){a(t,e,r),A(0,e,r)}function a(t,e,r){var n,i,o,s,a,A=e.gf,l=e.g._hasOpacity,c=e.s.v,h=e.e.v;if(e.o._mdf||r){var u="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(u,e.o.v)}if(e.s._mdf||r){var p=1===t.t?"x1":"cx",f="x1"===p?"y1":"cy";A.setAttribute(p,c[0]),A.setAttribute(f,c[1]),l&&!e.g._collapsable&&(e.of.setAttribute(p,c[0]),e.of.setAttribute(f,c[1]))}if(e.g._cmdf||r){n=e.cst;var d=e.g.c;for(o=n.length,i=0;i<o;i+=1)(s=n[i]).setAttribute("offset",d[4*i]+"%"),s.setAttribute("stop-color","rgb("+d[4*i+1]+","+d[4*i+2]+","+d[4*i+3]+")")}if(l&&(e.g._omdf||r)){var g=e.g.o;for(o=(n=e.g._collapsable?e.cst:e.ost).length,i=0;i<o;i+=1)s=n[i],e.g._collapsable||s.setAttribute("offset",g[2*i]+"%"),s.setAttribute("stop-opacity",g[2*i+1])}if(1===t.t)(e.e._mdf||r)&&(A.setAttribute("x2",h[0]),A.setAttribute("y2",h[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",h[0]),e.of.setAttribute("y2",h[1])));else if((e.s._mdf||e.e._mdf||r)&&(a=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)),A.setAttribute("r",a),l&&!e.g._collapsable&&e.of.setAttribute("r",a)),e.s._mdf||e.e._mdf||e.h._mdf||e.a._mdf||r){a||(a=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)));var m=Math.atan2(h[1]-c[1],h[0]-c[0]),y=e.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var v=a*y,b=Math.cos(m+e.a.v)*v+c[0],w=Math.sin(m+e.a.v)*v+c[1];A.setAttribute("fx",b),A.setAttribute("fy",w),l&&!e.g._collapsable&&(e.of.setAttribute("fx",b),e.of.setAttribute("fy",w))}}function A(t,e,r){var n=e.style,i=e.d;i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),e.c&&(e.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return o;case"gf":return a;case"gs":return s;case"st":return A;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function LetterProps(t,e,r,n,i,o){this.o=t,this.sw=e,this.sc=r,this.fc=n,this.m=i,this.p=o,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,r,n,i=this.shapes.length,o=this.stylesList.length,s=[],a=!1;for(r=0;r<o;r+=1){for(n=this.stylesList[r],a=!1,s.length=0,t=0;t<i;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(n)&&(s.push(e),a=e._isAnimated||a);s.length>1&&a&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,n=new SVGStyleData(t,e),i=n.pElem;return"st"===t.ty?r=new SVGStrokeStyleData(this,t,n):"fl"===t.ty?r=new SVGFillStyleData(this,t,n):"gf"===t.ty||"gs"===t.ty?(r=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===t.ty&&(r=new SVGNoStyleData(this,t,n)),"st"!==t.ty&&"gs"!==t.ty||(i.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),i.setAttribute("fill-opacity","0"),1===t.lj&&i.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&i.setAttribute("fill-rule","evenodd"),t.ln&&i.setAttribute("id",t.ln),t.cl&&i.setAttribute("class",t.cl),t.bm&&(i.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(n),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),n=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7);var i=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,n,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,n=this.stylesList.length;for(e=0;e<n;e+=1)-1!==r.indexOf(this.stylesList[e])||this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,n,i,o,s){var a,A,l,c,h,u,p=[].concat(o),f=t.length-1,d=[],g=[];for(a=f;a>=0;a-=1){if((u=this.searchProcessedElement(t[a]))?e[a]=r[u-1]:t[a]._render=s,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty||"no"===t[a].ty)u?e[a].style.closed=t[a].hd:e[a]=this.createStyleElement(t[a],i),t[a]._render&&e[a].style.pElem.parentNode!==n&&n.appendChild(e[a].style.pElem),d.push(e[a].style);else if("gr"===t[a].ty){if(u)for(l=e[a].it.length,A=0;A<l;A+=1)e[a].prevViewData[A]=e[a].it[A];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,e[a].gr,i+1,p,s),t[a]._render&&e[a].gr.parentNode!==n&&n.appendChild(e[a].gr)}else"tr"===t[a].ty?(u||(e[a]=this.createTransformElement(t[a],n)),c=e[a].transform,p.push(c)):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?(u||(e[a]=this.createShapeElement(t[a],p,i)),this.setElementStyles(e[a])):"tm"===t[a].ty||"rd"===t[a].ty||"ms"===t[a].ty||"pb"===t[a].ty||"zz"===t[a].ty||"op"===t[a].ty?(u?(h=e[a]).closed=!1:((h=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=h,this.shapeModifiers.push(h)),g.push(h)):"rp"===t[a].ty&&(u?(h=e[a]).closed=!0:(h=ShapeModifiers.getModifier(t[a].ty),e[a]=h,h.init(this,t,a,e),this.shapeModifiers.push(h),s=!1),g.push(h));this.addProcessedElement(t[a],a+1)}for(f=d.length,a=0;a<f;a+=1)d[a].closed=!0;for(f=g.length,a=0;a<f;a+=1)g[a].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,r,n,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var s=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,s=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,s=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,s=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,s=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,s=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,s=!0),s},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)o=r!==this.keysIndex?this.effectsSequence[n](o,o.t):this.effectsSequence[n](this.currentData,o.t);e!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,n=t.length;r<=n-1&&!(r===n-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,n=[],i=0,o=t.length,s=!1,a=!1,A="";i<o;)s=a,a=!1,e=t.charCodeAt(i),A=t.charAt(i),FontManager.isCombinedCharacter(e)?s=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,i)?A=t.substr(i,14):(r=t.charCodeAt(i+1))>=56320&&r<=57343&&(FontManager.isModifier(e,r)?(A=t.substr(i,2),s=!0):A=FontManager.isFlagEmoji(t.substr(i,4))?t.substr(i,4):t.substr(i,2)):e>56319?(r=t.charCodeAt(i+1),FontManager.isVariationSelector(e)&&(s=!0)):FontManager.isZeroWidthJoiner(e)&&(s=!0,a=!0),s?(n[n.length-1]+=A,s=!1):n.push(A),i+=A.length;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,n,i,o,s,a,A=this.elem.globalData.fontManager,l=this.data,c=[],h=0,u=l.m.g,p=0,f=0,d=0,g=[],m=0,y=0,v=A.getFontByName(t.f),b=0,w=getFontProperties(v);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var x,B=t.tr/1e3*t.finalSize;if(t.sz)for(var C,_,E=!0,S=t.sz[0],I=t.sz[1];E;){C=0,m=0,r=(_=this.buildFinalText(t.t)).length,B=t.tr/1e3*t.finalSize;var F=-1;for(e=0;e<r;e+=1)x=_[e].charCodeAt(0),n=!1," "===_[e]?F=e:13!==x&&3!==x||(m=0,n=!0,C+=t.finalLineHeight||1.2*t.finalSize),A.chars?(a=A.getCharData(_[e],v.fStyle,v.fFamily),b=n?0:a.w*t.finalSize/100):b=A.measureText(_[e],t.f,t.finalSize),m+b>S&&" "!==_[e]?(-1===F?r+=1:e=F,C+=t.finalLineHeight||1.2*t.finalSize,_.splice(e,F===e?1:0,"\r"),F=-1,m=0):(m+=b,m+=B);C+=v.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&I<C?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=_,r=t.finalText.length,E=!1)}m=-B,b=0;var T,k=0;for(e=0;e<r;e+=1)if(n=!1,13===(x=(T=t.finalText[e]).charCodeAt(0))||3===x?(k=0,g.push(m),y=m>y?m:y,m=-2*B,i="",n=!0,d+=1):i=T,A.chars?(a=A.getCharData(T,v.fStyle,A.getFontByName(t.f).fFamily),b=n?0:a.w*t.finalSize/100):b=A.measureText(i,t.f,t.finalSize)," "===T?k+=b+B:(m+=b+B+k,k=0),c.push({l:b,an:b,add:p,n,anIndexes:[],val:i,line:d,animatorJustifyOffset:0}),2==u){if(p+=b,""===i||" "===i||e===r-1){for(""!==i&&" "!==i||(p-=b);f<=e;)c[f].an=p,c[f].ind=h,c[f].extra=b,f+=1;h+=1,p=0}}else if(3==u){if(p+=b,""===i||e===r-1){for(""===i&&(p-=b);f<=e;)c[f].an=p,c[f].ind=h,c[f].extra=b,f+=1;p=0,h+=1}}else c[h].ind=h,c[h].extra=0,h+=1;if(t.l=c,y=m>y?m:y,g.push(m),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var L,P,M,D,N=l.a;s=N.length;var O=[];for(o=0;o<s;o+=1){for((L=N[o]).a.sc&&(t.strokeColorAnim=!0),L.a.sw&&(t.strokeWidthAnim=!0),(L.a.fc||L.a.fh||L.a.fs||L.a.fb)&&(t.fillColorAnim=!0),D=0,M=L.s.b,e=0;e<r;e+=1)(P=c[e]).anIndexes[o]=D,(1==M&&""!==P.val||2==M&&""!==P.val&&" "!==P.val||3==M&&(P.n||" "==P.val||e==r-1)||4==M&&(P.n||e==r-1))&&(1===L.s.rn&&O.push(D),D+=1);l.a[o].s.totalChars=D;var U,Q=-1;if(1===L.s.rn)for(e=0;e<r;e+=1)Q!=(P=c[e]).anIndexes[o]&&(Q=P.anIndexes[o],U=O.splice(Math.floor(Math.random()*O.length),1)[0]),P.anIndexes[o]=U}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=v.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function n(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,s=1,a=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:a=1+this.xe.v/100;var A=BezierFactory.getBezierEasing(i,o,s,a).get,l=0,c=this.finalS,h=this.finalE,u=this.data.sh;if(2===u)l=A(l=h===c?n>=h?1:0:t(0,e(.5/(h-c)+(n-c)/(h-c),1)));else if(3===u)l=A(l=h===c?n>=h?0:1:1-t(0,e(.5/(h-c)+(n-c)/(h-c),1)));else if(4===u)h===c?l=0:(l=t(0,e(.5/(h-c)+(n-c)/(h-c),1)))<.5?l*=2:l=1-2*(l-.5),l=A(l);else if(5===u){if(h===c)l=0;else{var p=h-c,f=-p/2+(n=e(t(0,n+.5-c),h-c)),d=p/2;l=Math.sqrt(1-f*f/(d*d))}l=A(l)}else 6===u?(h===c?l=0:(n=e(t(0,n+.5-c),h-c),l=(1+Math.cos(Math.PI+2*Math.PI*n/(h-c)))/2),l=A(l)):(n>=r(c)&&(l=t(0,e(n-c<0?e(h,1)-(c-n):h-n,1))),l=A(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var m=.5-.5*g;l<m?l=0:(l=(l-m)/g)>1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/e,n=this.s.v/e+r,i=this.e.v/e+r;if(n>i){var o=n;n=i,i=o}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(t,e,r){return new n(t,e,r)}}}();function TextAnimatorDataProperty(t,e,r){var n={propType:!1},i=PropertyFactory.getProp,o=e.a;this.a={r:o.r?i(t,o.r,0,degToRads,r):n,rx:o.rx?i(t,o.rx,0,degToRads,r):n,ry:o.ry?i(t,o.ry,0,degToRads,r):n,sk:o.sk?i(t,o.sk,0,degToRads,r):n,sa:o.sa?i(t,o.sa,0,degToRads,r):n,s:o.s?i(t,o.s,1,.01,r):n,a:o.a?i(t,o.a,1,0,r):n,o:o.o?i(t,o.o,0,.01,r):n,p:o.p?i(t,o.p,1,0,r):n,sw:o.sw?i(t,o.sw,0,0,r):n,sc:o.sc?i(t,o.sc,1,0,r):n,fc:o.fc?i(t,o.fc,1,0,r):n,fh:o.fh?i(t,o.fh,0,0,r):n,fs:o.fs?i(t,o.fs,0,.01,r):n,fb:o.fb?i(t,o.fb,0,.01,r):n,t:o.t?i(t,o.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,n=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,i,o,s,a,A,l,c,h,u,p,f,d,g,m,y,v,b,w=this._moreOptions.alignment.v,x=this._animatorsData,B=this._textData,C=this.mHelper,_=this._renderType,E=this.renderedLetters.length,S=t.l;if(this._hasMaskedPath){if(b=this._pathData.m,!this._pathData.n||this._pathData._mdf){var I,F=b.v;for(this._pathData.r.v&&(F=F.reverse()),s={tLength:0,segments:[]},o=F._length-1,m=0,i=0;i<o;i+=1)I=bez.buildBezierData(F.v[i],F.v[i+1],[F.o[i][0]-F.v[i][0],F.o[i][1]-F.v[i][1]],[F.i[i+1][0]-F.v[i+1][0],F.i[i+1][1]-F.v[i+1][1]]),s.tLength+=I.segmentLength,s.segments.push(I),m+=I.segmentLength;i=o,b.v.c&&(I=bez.buildBezierData(F.v[i],F.v[0],[F.o[i][0]-F.v[i][0],F.o[i][1]-F.v[i][1]],[F.i[0][0]-F.v[0][0],F.i[0][1]-F.v[0][1]]),s.tLength+=I.segmentLength,s.segments.push(I),m+=I.segmentLength),this._pathData.pi=s}if(s=this._pathData.pi,a=this._pathData.f.v,u=0,h=1,l=0,c=!0,d=s.segments,a<0&&b.v.c)for(s.tLength<Math.abs(a)&&(a=-Math.abs(a)%s.tLength),h=(f=d[u=d.length-1].points).length-1;a<0;)a+=f[h].partialLength,(h-=1)<0&&(h=(f=d[u-=1].points).length-1);p=(f=d[u].points)[h-1],g=(A=f[h]).partialLength}o=S.length,r=0,n=0;var T,k,L,P,M,D=1.2*t.finalSize*.714,N=!0;L=x.length;var O,U,Q,R,j,H,V,z,G,K,q,W,Y=-1,X=a,J=u,Z=h,$=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var rt=0,nt=0,it=2===t.j?-.5:-1,ot=0,st=!0;for(i=0;i<o;i+=1)if(S[i].n){for(rt&&(rt+=nt);ot<i;)S[ot].animatorJustifyOffset=rt,ot+=1;rt=0,st=!0}else{for(k=0;k<L;k+=1)(T=x[k].a).t.propType&&(st&&2===t.j&&(nt+=T.t.v*it),(M=x[k].s.getMult(S[i].anIndexes[k],B.a[k].s.totalChars)).length?rt+=T.t.v*M[0]*it:rt+=T.t.v*M*it);st=!1}for(rt&&(rt+=nt);ot<i;)S[ot].animatorJustifyOffset=rt,ot+=1}for(i=0;i<o;i+=1){if(C.reset(),R=1,S[i].n)r=0,n+=t.yOffset,n+=N?1:0,a=X,N=!1,this._hasMaskedPath&&(h=Z,p=(f=d[u=J].points)[h-1],g=(A=f[h]).partialLength,l=0),tt="",q="",G="",W="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if($!==S[i].line){switch(t.j){case 1:a+=m-t.lineWidths[S[i].line];break;case 2:a+=(m-t.lineWidths[S[i].line])/2}$=S[i].line}Y!==S[i].ind&&(S[Y]&&(a+=S[Y].extra),a+=S[i].an/2,Y=S[i].ind),a+=w[0]*S[i].an*.005;var at=0;for(k=0;k<L;k+=1)(T=x[k].a).p.propType&&((M=x[k].s.getMult(S[i].anIndexes[k],B.a[k].s.totalChars)).length?at+=T.p.v[0]*M[0]:at+=T.p.v[0]*M),T.a.propType&&((M=x[k].s.getMult(S[i].anIndexes[k],B.a[k].s.totalChars)).length?at+=T.a.v[0]*M[0]:at+=T.a.v[0]*M);for(c=!0,this._pathData.a.v&&(a=.5*S[0].an+(m-this._pathData.f.v-.5*S[0].an-.5*S[S.length-1].an)*Y/(o-1),a+=this._pathData.f.v);c;)l+g>=a+at||!f?(y=(a+at-l)/A.partialLength,U=p.point[0]+(A.point[0]-p.point[0])*y,Q=p.point[1]+(A.point[1]-p.point[1])*y,C.translate(-w[0]*S[i].an*.005,-w[1]*D*.01),c=!1):f&&(l+=A.partialLength,(h+=1)>=f.length&&(h=0,d[u+=1]?f=d[u].points:b.v.c?(h=0,f=d[u=0].points):(l-=A.partialLength,f=null)),f&&(p=A,g=(A=f[h]).partialLength));O=S[i].an/2-S[i].add,C.translate(-O,0,0)}else O=S[i].an/2-S[i].add,C.translate(-O,0,0),C.translate(-w[0]*S[i].an*.005,-w[1]*D*.01,0);for(k=0;k<L;k+=1)(T=x[k].a).t.propType&&(M=x[k].s.getMult(S[i].anIndexes[k],B.a[k].s.totalChars),0===r&&0===t.j||(this._hasMaskedPath?M.length?a+=T.t.v*M[0]:a+=T.t.v*M:M.length?r+=T.t.v*M[0]:r+=T.t.v*M));for(t.strokeWidthAnim&&(H=t.sw||0),t.strokeColorAnim&&(j=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(V=[t.fc[0],t.fc[1],t.fc[2]]),k=0;k<L;k+=1)(T=x[k].a).a.propType&&((M=x[k].s.getMult(S[i].anIndexes[k],B.a[k].s.totalChars)).length?C.translate(-T.a.v[0]*M[0],-T.a.v[1]*M[1],T.a.v[2]*M[2]):C.translate(-T.a.v[0]*M,-T.a.v[1]*M,T.a.v[2]*M));for(k=0;k<L;k+=1)(T=x[k].a).s.propType&&((M=x[k].s.getMult(S[i].anIndexes[k],B.a[k].s.totalChars)).length?C.scale(1+(T.s.v[0]-1)*M[0],1+(T.s.v[1]-1)*M[1],1):C.scale(1+(T.s.v[0]-1)*M,1+(T.s.v[1]-1)*M,1));for(k=0;k<L;k+=1){if(T=x[k].a,M=x[k].s.getMult(S[i].anIndexes[k],B.a[k].s.totalChars),T.sk.propType&&(M.length?C.skewFromAxis(-T.sk.v*M[0],T.sa.v*M[1]):C.skewFromAxis(-T.sk.v*M,T.sa.v*M)),T.r.propType&&(M.length?C.rotateZ(-T.r.v*M[2]):C.rotateZ(-T.r.v*M)),T.ry.propType&&(M.length?C.rotateY(T.ry.v*M[1]):C.rotateY(T.ry.v*M)),T.rx.propType&&(M.length?C.rotateX(T.rx.v*M[0]):C.rotateX(T.rx.v*M)),T.o.propType&&(M.length?R+=(T.o.v*M[0]-R)*M[0]:R+=(T.o.v*M-R)*M),t.strokeWidthAnim&&T.sw.propType&&(M.length?H+=T.sw.v*M[0]:H+=T.sw.v*M),t.strokeColorAnim&&T.sc.propType)for(z=0;z<3;z+=1)M.length?j[z]+=(T.sc.v[z]-j[z])*M[0]:j[z]+=(T.sc.v[z]-j[z])*M;if(t.fillColorAnim&&t.fc){if(T.fc.propType)for(z=0;z<3;z+=1)M.length?V[z]+=(T.fc.v[z]-V[z])*M[0]:V[z]+=(T.fc.v[z]-V[z])*M;T.fh.propType&&(V=M.length?addHueToRGB(V,T.fh.v*M[0]):addHueToRGB(V,T.fh.v*M)),T.fs.propType&&(V=M.length?addSaturationToRGB(V,T.fs.v*M[0]):addSaturationToRGB(V,T.fs.v*M)),T.fb.propType&&(V=M.length?addBrightnessToRGB(V,T.fb.v*M[0]):addBrightnessToRGB(V,T.fb.v*M))}}for(k=0;k<L;k+=1)(T=x[k].a).p.propType&&(M=x[k].s.getMult(S[i].anIndexes[k],B.a[k].s.totalChars),this._hasMaskedPath?M.length?C.translate(0,T.p.v[1]*M[0],-T.p.v[2]*M[1]):C.translate(0,T.p.v[1]*M,-T.p.v[2]*M):M.length?C.translate(T.p.v[0]*M[0],T.p.v[1]*M[1],-T.p.v[2]*M[2]):C.translate(T.p.v[0]*M,T.p.v[1]*M,-T.p.v[2]*M));if(t.strokeWidthAnim&&(G=H<0?0:H),t.strokeColorAnim&&(K="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),t.fillColorAnim&&t.fc&&(q="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),this._hasMaskedPath){if(C.translate(0,-t.ls),C.translate(0,w[1]*D*.01+n,0),this._pathData.p.v){v=(A.point[1]-p.point[1])/(A.point[0]-p.point[0]);var At=180*Math.atan(v)/Math.PI;A.point[0]<p.point[0]&&(At+=180),C.rotate(-At*Math.PI/180)}C.translate(U,Q,0),a-=w[0]*S[i].an*.005,S[i+1]&&Y!==S[i+1].ind&&(a+=S[i].an/2,a+=.001*t.tr*t.finalSize)}else{switch(C.translate(r,n,0),t.ps&&C.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:C.translate(S[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[S[i].line]),0,0);break;case 2:C.translate(S[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[S[i].line])/2,0,0)}C.translate(0,-t.ls),C.translate(O,0,0),C.translate(w[0]*S[i].an*.005,w[1]*D*.01,0),r+=S[i].l+.001*t.tr*t.finalSize}"html"===_?tt=C.toCSS():"svg"===_?tt=C.to2dCSS():et=[C.props[0],C.props[1],C.props[2],C.props[3],C.props[4],C.props[5],C.props[6],C.props[7],C.props[8],C.props[9],C.props[10],C.props[11],C.props[12],C.props[13],C.props[14],C.props[15]],W=R}E<=i?(P=new LetterProps(W,G,K,q,tt,et),this.renderedLetters.push(P),E+=1,this.lettersChangedFlag=!0):(P=this.renderedLetters[i],this.lettersChangedFlag=P.update(W,G,K,q,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var r,n,i=e.length,o="";for(r=0;r<i;r+=1)"sh"===e[r].ty&&(n=e[r].ks.k,o+=buildShapeString(n,n.i.length,!0,t));return o},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,n,i){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(n,i,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=e.title,this.svgElement.appendChild(n),r+=i}if(e&&e.description){var o=createNS("desc"),s=createElementID();o.setAttribute("id",s),o.textContent=e.description,this.svgElement.appendChild(o),r+=" "+s}r&&this.svgElement.setAttribute("aria-labelledby",r);var a=createNS("defs");this.svgElement.appendChild(a);var A=createNS("g");this.svgElement.appendChild(A),this.layerElement=A,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,r=t.length,n=[],i="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(n.push(i),i=""):i+=t[e],e+=1;return n.push(i),n},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=e,n.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var s,a=r.l||[],A=!!this.globalData.fontManager.chars;e=a.length;var l=this.mHelper,c=this.data.singleShape,h=0,u=0,p=!0,f=.001*r.tr*r.finalSize;if(!c||A||r.sz){var d,g=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!A||!c||0===t){if(s=g>t?this.textSpans[t].span:createNS(A?"g":"text"),g<=t){if(s.setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=s,A){var m=createNS("g");s.appendChild(m),this.textSpans[t].childSpan=m}this.textSpans[t].span=s,this.layerElement.appendChild(s)}s.style.display="inherit"}if(l.reset(),c&&(a[t].n&&(h=-f,u+=r.yOffset,u+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(r,l,a[t].line,h,u),h+=a[t].l||0,h+=f),A){var y;if(1===(d=this.globalData.fontManager.getCharData(r.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)y=new SVGCompElement(d.data,this.globalData,this);else{var v=emptyShapeData;d.data&&d.data.shapes&&(v=this.buildShapeData(d.data,r.finalSize)),y=new SVGShapeElement(v,this.globalData,this)}if(this.textSpans[t].glyph){var b=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(b.layerElement),b.destroy()}this.textSpans[t].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[t].childSpan.appendChild(y.layerElement),1===d.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else c&&s.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),s.textContent=a[t].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&s&&s.setAttribute("d","")}else{var w=this.textContainer,x="start";switch(r.j){case 1:x="end";break;case 2:x="middle";break;default:x="start"}w.setAttribute("text-anchor",x),w.setAttribute("letter-spacing",f);var B=this.buildTextContents(r.finalText);for(e=B.length,u=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(s=this.textSpans[t].span||createNS("tspan")).textContent=B[t],s.setAttribute("x",0),s.setAttribute("y",u),s.style.display="inherit",w.appendChild(s),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=s,u+=r.finalLineHeight;this.layerElement.appendChild(w)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,n,i,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(e=s.length,t=0;t<e;t+=1)s[t].n||(r=o[t],n=this.textSpans[t].span,(i=this.textSpans[t].glyph)&&i.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var n="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var i=e[n].getMatte(this.layers[t].tt);r.setMatte(i)}else this.buildItem(n),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var n="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,i=this.elements[n].getMatte(this.layers[e].tt);t.setMatte(i);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var n,i=0;i<e;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,n="_";for(e=0;e<r;e+=1)n+=t[e].transform.key+"_";var i=this.sequences[n];return i||(i={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=i,this.sequenceList.push(i)),i},processSequence:function(t,e){for(var r=0,n=t.transforms.length,i=e;r<n&&!e;){if(t.transforms[r].transform.mProps._mdf){i=!0;break}r+=1}if(i)for(t.finalTransform.reset(),r=n-1;r>=0;r-=1)t.finalTransform.multiply(t.transforms[r].transform.mProps.v);t._mdf=i},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,r=null,n=null;function i(){var i,o,s;e||(i=createNS("svg"),o=createNS("filter"),s=createNS("feColorMatrix"),o.setAttribute("id",t),s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),o.appendChild(s),i.appendChild(o),i.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(i.style.display="none"),n=i,document.body.appendChild(n),e=createTag("canvas"),(r=e.getContext("2d")).filter="url(#"+t+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:i,get:function(n){return e||i(),e.width=n.width,e.height=n.height,r.filter="url(#"+t+")",e}}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var r=createTag("canvas");return r.width=t,r.height=e,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(t){var e,r,n=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<n;e+=1){r=null;var i=t.data.ef[e].ty;registeredEffects[i]&&(r=new(0,registeredEffects[i].effect)(t.effectsManager.effectElements[e],t)),r&&this.filters.push(r)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){var r;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,i=!1;for(r=0;r<n;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,r=this.filters.length,n=[];for(e=0;e<r;e+=1)this.filters[e].type===t&&n.push(this.filters[e]);return n},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,n,i=this.element.finalTransform.mat,o=this.element.canvasContext,s=this.masksProperties.length;for(o.beginPath(),t=0;t<s;t+=1)if("n"!==this.masksProperties[t].mode){var a;this.masksProperties[t].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),n=this.viewData[t].v,e=i.applyToPointArray(n.v[0][0],n.v[0][1],0),o.moveTo(e[0],e[1]);var A=n._length;for(a=1;a<A;a+=1)r=i.applyToTriplePoints(n.o[a-1],n.i[a],n.v[a]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(n.o[a-1],n.i[0],n.v[0]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,o=4;"rc"===e.ty?o=5:"el"===e.ty?o=6:"sr"===e.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,o,t);var s,a=r.length;for(i=0;i<a;i+=1)r[i].closed||(s={transforms:n.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(s),r[i].elements.push(s))}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVTextElement(t,e,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,r)}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var t;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,t=0;t<15;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,t.pe,0,0,this),t.ks.p.s?(this.px=n(this,t.ks.p.x,1,0,this),this.py=n(this,t.ks.p.y,1,0,this),this.pz=n(this,t.ks.p.z,1,0,this)):this.p=n(this,t.ks.p,1,0,this),t.ks.a&&(this.a=n(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var i,o=t.ks.or.k.length;for(i=0;i<o;i+=1)t.ks.or.k[i].to=null,t.ks.or.k[i].ti=null}this.or=n(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,t.ks.rx,0,degToRads,this),this.ry=n(this,t.ks.ry,0,degToRads,this),this.rz=n(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},n={};if("fl"===t.ty||"st"===t.ty?(n.c=PropertyFactory.getProp(this,t.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(n.s=PropertyFactory.getProp(this,t.s,1,null,this),n.e=PropertyFactory.getProp(this,t.e,1,null,this),n.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,t.g,this)),n.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],1==t.lj&&(r.ml=t.ml),n.w=PropertyFactory.getProp(this,t.w,0,null,this),n.w.k||(r.wi=n.w.v),t.d){var i=new DashProperty(this,t.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,n,i){var o,s,a,A,l,c,h=t.length-1,u=[],p=[],f=[].concat(i);for(o=h;o>=0;o-=1){if((A=this.searchProcessedElement(t[o]))?e[o]=r[A-1]:t[o]._shouldRender=n,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty)A?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],f),u.push(e[o].style);else if("gr"===t[o].ty){if(A)for(a=e[o].it.length,s=0;s<a;s+=1)e[o].prevViewData[s]=e[o].it[s];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,n,f)}else"tr"===t[o].ty?(A||(c=this.createTransformElement(t[o]),e[o]=c),f.push(e[o]),this.addTransformToStyleList(e[o])):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?A||(e[o]=this.createShapeElement(t[o])):"tm"===t[o].ty||"rd"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(A?(l=e[o]).closed=!1:((l=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=l,this.shapeModifiers.push(l)),p.push(l)):"rp"===t[o].ty&&(A?(l=e[o]).closed=!0:(l=ShapeModifiers.getModifier(t[o].ty),e[o]=l,l.init(this,t,o,e),this.shapeModifiers.push(l),n=!1),p.push(l));this.addProcessedElement(t[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),h=p.length,o=0;o<h;o+=1)p[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,r,n,i,o,s,a,A,l=this.stylesList.length,c=this.globalData.renderer,h=this.globalData.canvasContext;for(t=0;t<l;t+=1)if(("st"!==(a=(A=this.stylesList[t]).type)&&"gs"!==a||0!==A.wi)&&A.data._shouldRender&&0!==A.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),o=A.elements,"st"===a||"gs"===a?(c.ctxStrokeStyle("st"===a?A.co:A.grd),c.ctxLineWidth(A.wi),c.ctxLineCap(A.lc),c.ctxLineJoin(A.lj),c.ctxMiterLimit(A.ml||0)):c.ctxFillStyle("fl"===a?A.co:A.grd),c.ctxOpacity(A.coOp),"st"!==a&&"gs"!==a&&h.beginPath(),c.ctxTransform(A.preTransforms.finalTransform.props),r=o.length,e=0;e<r;e+=1){for("st"!==a&&"gs"!==a||(h.beginPath(),A.da&&(h.setLineDash(A.da),h.lineDashOffset=A.do)),i=(s=o[e].trNodes).length,n=0;n<i;n+=1)"m"===s[n].t?h.moveTo(s[n].p[0],s[n].p[1]):"c"===s[n].t?h.bezierCurveTo(s[n].pts[0],s[n].pts[1],s[n].pts[2],s[n].pts[3],s[n].pts[4],s[n].pts[5]):h.closePath();"st"!==a&&"gs"!==a||(c.ctxStroke(),A.da&&h.setLineDash(this.dashResetter))}"st"!==a&&"gs"!==a&&this.globalData.renderer.ctxFill(A.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,n){var i,o;for(o=t,i=e.length-1;i>=0;i-=1)"tr"===e[i].ty?(o=r[i].transform,this.renderShapeTransform(t,o)):"sh"===e[i].ty||"el"===e[i].ty||"rc"===e[i].ty||"sr"===e[i].ty?this.renderPath(e[i],r[i]):"fl"===e[i].ty?this.renderFill(e[i],r[i],o):"st"===e[i].ty?this.renderStroke(e[i],r[i],o):"gf"===e[i].ty||"gs"===e[i].ty?this.renderGradientFill(e[i],r[i],o):"gr"===e[i].ty?this.renderShape(o,e[i].it,r[i].it):e[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,n,i,o=t.trNodes,s=e.paths,a=s._length;o.length=0;var A=t.transforms.finalTransform;for(i=0;i<a;i+=1){var l=s.shapes[i];if(l&&l.v){for(n=l._length,r=1;r<n;r+=1)1===r&&o.push({t:"m",p:A.applyToPointArray(l.v[0][0],l.v[0][1],0)}),o.push({t:"c",pts:A.applyToTriplePoints(l.o[r-1],l.i[r],l.v[r])});1===n&&o.push({t:"m",p:A.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&n&&(o.push({t:"c",pts:A.applyToTriplePoints(l.o[r-1],l.i[0],l.v[0])}),o.push({t:"z"}))}}t.trNodes=o}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var r,n=e.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var n=e.style;(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var n,i=e.style;if(!i.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var o,s=this.globalData.canvasContext,a=e.s.v,A=e.e.v;if(1===t.t)n=s.createLinearGradient(a[0],a[1],A[0],A[1]);else{var l=Math.sqrt(Math.pow(a[0]-A[0],2)+Math.pow(a[1]-A[1],2)),c=Math.atan2(A[1]-a[1],A[0]-a[0]),h=e.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var u=l*h,p=Math.cos(c+e.a.v)*u+a[0],f=Math.sin(c+e.a.v)*u+a[1];n=s.createRadialGradient(p,f,0,a[0],a[1],l)}var d=t.g.p,g=e.g.c,m=1;for(o=0;o<d;o+=1)e.g._hasOpacity&&e.g._collapsable&&(m=e.g.o[2*o+1]),n.addColorStop(g[4*o]/100,"rgba("+g[4*o+1]+","+g[4*o+2]+","+g[4*o+3]+","+m+")");i.grd=n}i.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var n=e.style,i=e.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(n.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var n,i,o,s,a,A,l,c,h,u,p,f,d=this.globalData.fontManager.getFontByName(t.f),g=t.l,m=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,i=t.finalText.length;var y=this.data.singleShape,v=.001*t.tr*t.finalSize,b=0,w=0,x=!0,B=0;for(n=0;n<i;n+=1){s=(o=this.globalData.fontManager.getCharData(t.finalText[n],d.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&o.data||{},m.reset(),y&&g[n].n&&(b=-v,w+=t.yOffset,w+=x?1:0,x=!1),h=(l=s.shapes?s.shapes[0].it:[]).length,m.scale(t.finalSize/100,t.finalSize/100),y&&this.applyTextPropertiesToMatrix(t,m,g[n].line,b,w),p=createSizedArray(h-1);var C=0;for(c=0;c<h;c+=1)if("sh"===l[c].ty){for(A=l[c].ks.k.i.length,u=l[c].ks.k,f=[],a=1;a<A;a+=1)1===a&&f.push(m.applyToX(u.v[0][0],u.v[0][1],0),m.applyToY(u.v[0][0],u.v[0][1],0)),f.push(m.applyToX(u.o[a-1][0],u.o[a-1][1],0),m.applyToY(u.o[a-1][0],u.o[a-1][1],0),m.applyToX(u.i[a][0],u.i[a][1],0),m.applyToY(u.i[a][0],u.i[a][1],0),m.applyToX(u.v[a][0],u.v[a][1],0),m.applyToY(u.v[a][0],u.v[a][1],0));f.push(m.applyToX(u.o[a-1][0],u.o[a-1][1],0),m.applyToY(u.o[a-1][0],u.o[a-1][1],0),m.applyToX(u.i[0][0],u.i[0][1],0),m.applyToY(u.i[0][0],u.i[0][1],0),m.applyToX(u.v[0][0],u.v[0][1],0),m.applyToY(u.v[0][0],u.v[0][1],0)),p[C]=f,C+=1}y&&(b+=g[n].l,b+=v),this.textSpans[B]?this.textSpans[B].elem=p:this.textSpans[B]={elem:p},B+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,n,i,o;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var s,a=this.textAnimator.renderedLetters,A=this.textProperty.currentData.l;e=A.length;var l,c,h=null,u=null,p=null,f=this.globalData.renderer;for(t=0;t<e;t+=1)if(!A[t].n){if((s=a[t])&&(f.save(),f.ctxTransform(s.p),f.ctxOpacity(s.o)),this.fill){for(s&&s.fc?h!==s.fc&&(f.ctxFillStyle(s.fc),h=s.fc):h!==this.values.fill&&(h=this.values.fill,f.ctxFillStyle(this.values.fill)),n=(l=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(c=l[r]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(c[i],c[i+1],c[i+2],c[i+3],c[i+4],c[i+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(s&&s.sw?p!==s.sw&&(p=s.sw,f.ctxLineWidth(s.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),s&&s.sc?u!==s.sc&&(u=s.sc,f.ctxStrokeStyle(s.sc)):u!==this.values.stroke&&(u=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),n=(l=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(c=l[r]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(c[i],c[i+1],c[i+2],c[i+3],c[i+4],c[i+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}s&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,n=t.getContext("2d"),i=this.img.width,o=this.img.height,s=i/o,a=this.assetData.w/this.assetData.h,A=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>a&&"xMidYMid slice"===A||s<a&&"xMidYMid slice"!==A?e=(r=o)*a:r=(e=i)/a,n.drawImage(this.img,(i-e)/2,(o-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,r,n){this.canvasContext.fillRect(t,e,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){this.renderConfig.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var r,n,i,o;if(this.reset(),t?(r=t,n=e,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var s=this.renderConfig.preserveAspectRatio.split(" "),a=s[1]||"meet",A=s[0]||"xMidYMid",l=A.substr(0,4),c=A.substr(4);i=r/n,(o=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===a||o<i&&"slice"===a?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===l&&(o<i&&"meet"===a||o>i&&"slice"===a)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(o<i&&"meet"===a||o>i&&"slice"===a)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===c&&(o>i&&"meet"===a||o<i&&"slice"===a)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(o>i&&"meet"===a||o<i&&"slice"===a)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var r;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e,r=this.stack[this.cArrPos],n=r.transform,i=this.cTr.props;for(e=0;e<16;e+=1)i[e]=n[e];if(t){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(t||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,n=this.stack[this.cArrPos];for(r=0;r<16;r+=1)n.transform[r]=e[r];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=n.opacity,i.fillStyle=n.fillStyle,i.strokeStyle=n.strokeStyle,i.lineWidth=n.lineWidth,i.lineCap=n.lineCap,i.lineJoin=n.lineJoin,i.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var r=e.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,r,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,n,i,o,s,a=t.sh.v,A=t.transformers,l=a._length;if(!(l<=1)){for(r=0;r<l-1;r+=1)n=this.getTransformedPoint(A,a.v[r]),i=this.getTransformedPoint(A,a.o[r]),o=this.getTransformedPoint(A,a.i[r+1]),s=this.getTransformedPoint(A,a.v[r+1]),this.checkBounds(n,i,o,s,e);a.c&&(n=this.getTransformedPoint(A,a.v[r]),i=this.getTransformedPoint(A,a.o[r]),o=this.getTransformedPoint(A,a.i[0]),s=this.getTransformedPoint(A,a.v[0]),this.checkBounds(n,i,o,s,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,n,i){this.getBoundsOfCurve(t,e,r,n);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,r,n){for(var i,o,s,a,A,l,c,h=[[t[0],n[0]],[t[1],n[1]]],u=0;u<2;++u)o=6*t[u]-12*e[u]+6*r[u],i=-3*t[u]+9*e[u]-9*r[u]+3*n[u],s=3*e[u]-3*t[u],o|=0,s|=0,0==(i|=0)&&0===o||(0===i?(a=-s/o)>0&&a<1&&h[u].push(this.calculateF(a,t,e,r,n,u)):(A=o*o-4*s*i)>=0&&((l=(-o+bmSqrt(A))/(2*i))>0&&l<1&&h[u].push(this.calculateF(l,t,e,r,n,u)),(c=(-o-bmSqrt(A))/(2*i))>0&&c<1&&h[u].push(this.calculateF(c,t,e,r,n,u))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(t,e,r,n,i,o){return bmPow(1-t,3)*e[o]+3*bmPow(1-t,2)*t*r[o]+3*(1-t)*bmPow(t,2)*n[o]+bmPow(t,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var n=0;n<t.keyframes.length;n+=1){var i=t.keyframes[n].s;i>r&&(r=i)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=i,n.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var n,i,o=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{e.fontFamily=o.fFamily;var s=t.fWeight,a=t.fStyle;e.fontStyle=a,e.fontWeight=s}var A,l,c,h=t.l;i=h.length;var u,p=this.mHelper,f="",d=0;for(n=0;n<i;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[d]?A=this.textPaths[d]:((A=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),A.setAttribute("stroke-linejoin",lineJoinEnum[2]),A.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[d]?c=(l=this.textSpans[d]).children[0]:((l=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(A),styleDiv(l)))):this.isMasked?A=this.textPaths[d]?this.textPaths[d]:createNS("text"):this.textSpans[d]?(l=this.textSpans[d],A=this.textPaths[d]):(styleDiv(l=createTag("span")),styleDiv(A=createTag("span")),l.appendChild(A)),this.globalData.fontManager.chars){var g,m=this.globalData.fontManager.getCharData(t.finalText[n],o.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(g=m?m.data:null,p.reset(),g&&g.shapes&&g.shapes.length&&(u=g.shapes[0].it,p.scale(t.finalSize/100,t.finalSize/100),f=this.createPathShape(p,u),A.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(A);else{if(this.innerElem.appendChild(l),g&&g.shapes){document.body.appendChild(c);var y=c.getBBox();c.setAttribute("width",y.width+2),c.setAttribute("height",y.height+2),c.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var v=c.style,b="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";v.transform=b,v.webkitTransform=b,h[n].yOffset=y.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);l.appendChild(c)}}else if(A.textContent=h[n].val,A.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(A);else{this.innerElem.appendChild(l);var w=A.style,x="translate3d(0,"+-t.finalSize/1.2+"px,0)";w.transform=x,w.webkitTransform=x}this.isMasked?this.textSpans[d]=A:this.textSpans[d]=l,this.textSpans[d].style.display="block",this.textPaths[d]=A,d+=1}for(;d<this.textSpans.length;)this.textSpans[d].style.display="none",d+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,n,i,o,s,a=0,A=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(n=l.length,r=0;r<n;r+=1)l[r].n?a+=1:(o=this.textSpans[r],s=this.textPaths[r],i=A[a],a+=1,i._mdf.m&&(this.isMasked?o.setAttribute("transform",i.m):(o.style.webkitTransform=i.m,o.style.transform=i.m)),o.style.opacity=i.o,i.sw&&i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&s.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(s.setAttribute("fill",i.fc),s.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=h,t.webkitTransform=h}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r,n,i=this.comp.threeDElements.length;for(t=0;t<i;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){r=e.perspectiveElem.style,n=e.container.style;var o=this.pe.v+"px",s="0px 0px 0px",a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,n.transformOrigin=s,n.mozTransformOrigin=s,n.webkitTransformOrigin=s,r.transform=a,r.webkitTransform=a}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),s=[i[0]/o,i[1]/o,i[2]/o],a=Math.sqrt(s[2]*s[2]+s[0]*s[0]),A=Math.atan2(s[1],a),l=Math.atan2(s[0],-s[2]);this.mat.rotateY(l).rotateX(-A)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var h,u,p;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(h=this.comp.threeDElements[t]).type){if(c){var f=this.mat.toCSS();(p=h.container.style).transform=f,p.webkitTransform=f}this.pe._mdf&&((u=h.perspectiveElem.style).perspective=this.pe.v+"px",u.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var n=this.layers[e];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var i,o,s=0;s<e;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement&&(o=this.elements[s],i=(this.layers[s].ddd?this.getThreeDContainerByPos(s):o.getBaseElement())||i),s+=1;i?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r,n,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===e){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var s="50% 50%";r.webkitTransformOrigin=s,r.mozTransformOrigin=s,r.transformOrigin=s;var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=o.style).transform=a,n.webkitTransform=a}i.appendChild(o);var A={container:o,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(A),A},HybridRendererBase.prototype.build3dContainers=function(){var t,e,r=this.layers.length,n="";for(t=0;t<r;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==n&&(n="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==n&&(n="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(r=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,n=this.threeDElements.length;r<n;){if(e<=this.threeDElements[r].endPos){for(var i,o=this.threeDElements[r].startPos;o<e;)this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o].getBaseElement()),o+=1;i?this.threeDElements[r].container.insertBefore(t,i):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,n=e.style;n.width=t.w+"px",n.height=t.h+"px",this.resizerElem=e,styleDiv(e),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),n.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=o,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,r,n,i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,s=i/o;this.globalData.compSize.w/this.globalData.compSize.h>s?(t=i/this.globalData.compSize.w,e=i/this.globalData.compSize.w,r=0,n=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(t=o/this.globalData.compSize.h,e=o/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,n=0);var a=this.resizerElem.style;a.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+n+",0,1)",a.transform=a.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(t=0;t<n;t+=1){var i=this.threeDElements[t].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,n=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e],n,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var r,n=0;n<e;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var r=0,n=t.layers.length;r<n;){if(t.layers[r].nm===e||t.layers[r].ind===e)return t.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e};function _typeof$2(t){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(t)}function seedRandom(t,e){var r=this,n=256,i="random",o=e.pow(n,6),s=e.pow(2,52),a=2*s,A=255;function l(t){var e,r=t.length,i=this,o=0,s=i.i=i.j=0,a=i.S=[];for(r||(t=[r++]);o<n;)a[o]=o++;for(o=0;o<n;o++)a[o]=a[s=A&s+t[o%r]+(e=a[o])],a[s]=e;i.g=function(t){for(var e,r=0,o=i.i,s=i.j,a=i.S;t--;)e=a[o=A&o+1],r=r*n+a[A&(a[o]=a[s=A&s+e])+(a[s]=e)];return i.i=o,i.j=s,r}}function c(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function h(t,e){var r,n=[],i=_typeof$2(t);if(e&&"object"==i)for(r in t)try{n.push(h(t[r],e-1))}catch(t){}return n.length?n:"string"==i?t:t+"\0"}function u(t,e){for(var r,n=t+"",i=0;i<n.length;)e[A&i]=A&(r^=19*e[A&i])+n.charCodeAt(i++);return p(e)}function p(t){return String.fromCharCode.apply(0,t)}e["seed"+i]=function(A,f,d){var g=[],m=u(h((f=!0===f?{entropy:!0}:f||{}).entropy?[A,p(t)]:null===A?function(){try{var e=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(e),p(e)}catch(e){var i=r.navigator,o=i&&i.plugins;return[+new Date,r,o,r.screen,p(t)]}}():A,3),g),y=new l(g),v=function(){for(var t=y.g(6),e=o,r=0;t<s;)t=(t+r)*n,e*=n,r=y.g(1);for(;t>=a;)t/=2,e/=2,r>>>=1;return(t+r)/e};return v.int32=function(){return 0|y.g(4)},v.quick=function(){return y.g(4)/4294967296},v.double=v,u(p(y.S),t),(f.pass||d||function(t,r,n,o){return o&&(o.S&&c(o,y),t.state=function(){return c(y,{})}),n?(e[i]=t,r):t})(v,m,"global"in f?f.global:this==e,f.state)},u(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){var r,n=t.length,i=[];for(r=0;r<n;r+=1)i[r]=-t[r];return i}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var r=_typeof$1(t),n=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(n,e)||"string"===r||"string"===n)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var i=0,o=t.length,s=e.length,a=[];i<o||i<s;)("number"==typeof t[i]||t[i]instanceof Number)&&("number"==typeof e[i]||e[i]instanceof Number)?a[i]=t[i]+e[i]:a[i]=void 0===e[i]?t[i]:t[i]||e[i],i+=1;return a}return 0}var add=sum;function sub(t,e){var r=_typeof$1(t),n=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(n,e))return"string"===r&&(t=parseInt(t,10)),"string"===n&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var i=0,o=t.length,s=e.length,a=[];i<o||i<s;)("number"==typeof t[i]||t[i]instanceof Number)&&("number"==typeof e[i]||e[i]instanceof Number)?a[i]=t[i]-e[i]:a[i]=void 0===e[i]?t[i]:t[i]||e[i],i+=1;return a}return 0}function mul(t,e){var r,n,i,o=_typeof$1(t),s=_typeof$1(e);if(isNumerable(o,t)&&isNumerable(s,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t[n]*e;return r}if(isNumerable(o,t)&&$bm_isInstanceOfArray(e)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t*e[n];return r}return 0}function div(t,e){var r,n,i,o=_typeof$1(t),s=_typeof$1(e);if(isNumerable(o,t)&&isNumerable(s,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t[n]/e;return r}if(isNumerable(o,t)&&$bm_isInstanceOfArray(e)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t/e[n];return r}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var n=r;r=e,e=n}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var n=Math.min(t.length,e.length),i=0;for(r=0;r<n;r+=1)i+=Math.pow(e[r]-t[r],2);return Math.sqrt(i)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,n=t[0],i=t[1],o=t[2],s=Math.max(n,i,o),a=Math.min(n,i,o),A=(s+a)/2;if(s===a)e=0,r=0;else{var l=s-a;switch(r=A>.5?l/(2-s-a):l/(s+a),s){case n:e=(i-o)/l+(i<o?6:0);break;case i:e=(o-n)/l+2;break;case o:e=(n-i)/l+4}e/=6}return[e,r,A,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,n,i=t[0],o=t[1],s=t[2];if(0===o)e=s,n=s,r=s;else{var a=s<.5?s*(1+o):s+o-s*o,A=2*s-a;e=hue2rgb(A,a,i+1/3),r=hue2rgb(A,a,i),n=hue2rgb(A,a,i-1/3)}return[e,r,n,t[3]]}function linear(t,e,r,n,i){if(void 0!==n&&void 0!==i||(n=e,i=r,e=0,r=1),r<e){var o=r;r=e,e=o}if(t<=e)return n;if(t>=r)return i;var s,a=r===e?0:(t-e)/(r-e);if(!n.length)return n+(i-n)*a;var A=n.length,l=createTypedArray("float32",A);for(s=0;s<A;s+=1)l[s]=n[s]+(i[s]-n[s])*a;return l}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var r,n=e.length;t||(t=createTypedArray("float32",n));var i=createTypedArray("float32",n),o=BMMath.random();for(r=0;r<n;r+=1)i[r]=t[r]+o*(e[r]-t[r]);return i}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,n){var i,o=t.length,s=shapePool.newElement();s.setPathData(!!n,o);var a,A,l=[0,0];for(i=0;i<o;i+=1)a=e&&e[i]?e[i]:l,A=r&&r[i]?r[i]:l,s.setTripleAt(t[i][0],t[i][1],A[0]+t[i][0],A[1]+t[i][1],a[0]+t[i][0],a[1]+t[i][1],i,!0);return s}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var r,n,i=this.pv.length?this.pv.length:1,o=createTypedArray("float32",i),s=Math.floor(5*time);for(r=0,n=0;r<s;){for(n=0;n<i;n+=1)o[n]+=-e+2*e*BMMath.random();r+=1}var a=5*time,A=a-Math.floor(a),l=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)l[n]=this.pv[n]+o[n]+(-e+2*e*BMMath.random())*A;return l}return this.pv+o[0]+(-e+2*e*BMMath.random())*A}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(t,e,r,n,i){return applyEase(easeOutBez,t,e,r,n,i)}function easeIn(t,e,r,n,i){return applyEase(easeInBez,t,e,r,n,i)}function ease(t,e,r,n,i){return applyEase(easeInOutBez,t,e,r,n,i)}function applyEase(t,e,r,n,i,o){void 0===i?(i=r,o=n):e=(e-r)/(n-r),e>1?e=1:e<0&&(e=0);var s=t(e);if($bm_isInstanceOfArray(i)){var a,A=i.length,l=createTypedArray("float32",A);for(a=0;a<A;a+=1)l[a]=(o[a]-i[a])*s+i[a];return l}return(o-i)*s+i}function nearestKey(t){var e,r,n,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(e=0;e<i-1;e+=1){if(t===data.k[e].t){r=e+1,n=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,n=data.k[e+1].t):(r=e+1,n=data.k[e].t);break}}-1===r&&(r=e+1,n=data.k[e].t)}else r=0,n=0;var o={};return o.index=r,o.time=n/elem.comp.globalData.frameRate,o}function key(t){var e,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(n=i.length,r=0;r<n;r+=1)e[r]=i[r],e.value[r]=i[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={initExpressions:function(t){var e=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}}};return t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var r,n=createSizedArray(e.viewData.length),i=e.viewData.length;for(r=0;r<i;r+=1)n[r]=new t(e.viewData[r],e.masksProperties[r]);return function(t){for(r=0;r<i;){if(e.masksProperties[r].nm===t)return n[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(t,e,r){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(n){if(!t.numKeys)return 0;var i;i="s"in e.keyframes[n-1]?e.keyframes[n-1].s:"e"in e.keyframes[n-2]?e.keyframes[n-2].e:e.keyframes[n-2].s;var o="unidimensional"===r?new Number(i):Object.assign({},i);return o.time=e.keyframes[n-1].t/e.elem.comp.globalData.frameRate,o.value="unidimensional"===r?i[0]:i,o},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function n(){return t}return function(i){return i?"unidimensional"===i.propType?function(e){e&&"pv"in e||(e=t);var n=1/e.mult,i=e.pv*n,o=new Number(i);return o.value=i,r(o,e,"unidimensional"),function(){return e.k&&e.getValue(),i=e.v*n,o.value!==i&&((o=new Number(i)).value=i,o[0]=i,r(o,e,"unidimensional")),o}}(i):function(t){t&&"pv"in t||(t=e);var n=1/t.mult,i=t.data&&t.data.l||t.pv.length,o=createTypedArray("float32",i),s=createTypedArray("float32",i);return o.value=s,r(o,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<i;e+=1)s[e]=t.v[e]*n,o[e]=s[e];return o}}(i):n}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var r,n,i,o;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?o=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),n=ExpressionPropertyInterface(t.py),t.pz&&(i=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?o():[r(),n(),i?i():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,t)}function r(t,e){var r=this.getMatrix(e);return this.applyPoint(r,t)}function n(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,t)}function i(t,e){var r=this.getMatrix(e);return this.invertPoint(r,t)}function o(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function s(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function a(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function A(){return[1,1,1,1]}return function(l){var c;function h(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=t,h.invertPoint=s,h.applyPoint=o,h.toWorld=r,h.toWorldVec=e,h.fromWorld=i,h.fromWorldVec=n,h.toComp=r,h.fromComp=a,h.sampleImage=A,h.sourceRectAtTime=l.sourceRectAtTime.bind(l),h._elem=l;var u=getDescriptor(c=TransformExpressionInterface(l.finalTransform.mProp),"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return c}},active:{get:function(){return l.isInRange}}}),h.startTime=l.data.st,h.index=l.data.ind,h.source=l.data.refId,h.height=0===l.data.ty?l.data.h:100,h.width=0===l.data.ty?l.data.w:100,h.inPoint=l.data.ip/l.comp.globalData.frameRate,h.outPoint=l.data.op/l.comp.globalData.frameRate,h._name=l.data.nm,h.registerMaskInterface=function(t){h.mask=new MaskManagerInterface(t,l)},h.registerEffectsInterface=function(t){h.effect=t},h}}(),propertyGroupFactory=function(t,e){return function(r){return(r=void 0===r?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(t){return(t=void 0===t?1:t)<=0?r:e(t-1)}},EffectsExpressionInterface=function(){function t(r,n,i,o){function s(t){for(var e=r.ef,n=0,i=e.length;n<i;){if(t===e[n].nm||t===e[n].mn||t===e[n].ix)return 5===e[n].ty?l[n]:l[n]();n+=1}throw new Error}var a,A=propertyGroupFactory(s,i),l=[],c=r.ef.length;for(a=0;a<c;a+=1)5===r.ef[a].ty?l.push(t(r.ef[a],n.effectElements[a],n.effectElements[a].propertyGroup,o)):l.push(e(n.effectElements[a],r.ef[a].ty,o,A));return"ADBE Color Control"===r.mn&&Object.defineProperty(s,"color",{get:function(){return l[0]()}}),Object.defineProperties(s,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:A}}),s.enabled=0!==r.en,s.active=s.enabled,s}function e(t,e,r,n){var i=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===e?r.comp.compInterface(t.p.v):i()}}return{createEffectsInterface:function(e,r){if(e.effectsManager){var n,i=[],o=e.data.ef,s=e.effectsManager.effectElements.length;for(n=0;n<s;n+=1)i.push(t(o[n],e.effectsManager.effectElements[n],r,e));var a=e.data.ef||[],A=function(t){for(n=0,s=a.length;n<s;){if(t===a[n].nm||t===a[n].mn||t===a[n].ix)return i[n];n+=1}return null};return Object.defineProperty(A,"numProperties",{get:function(){return a.length}}),A}return null}}}(),ShapePathInterface=function(t,e,r){var n=e.sh;function i(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?i.path:null}var o=propertyGroupFactory(i,r);return n.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(i,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function t(t,a,p){var f,d=[],g=t?t.length:0;for(f=0;f<g;f+=1)"gr"===t[f].ty?d.push(e(t[f],a[f],p)):"fl"===t[f].ty?d.push(r(t[f],a[f],p)):"st"===t[f].ty?d.push(o(t[f],a[f],p)):"tm"===t[f].ty?d.push(s(t[f],a[f],p)):"tr"===t[f].ty||("el"===t[f].ty?d.push(A(t[f],a[f],p)):"sr"===t[f].ty?d.push(l(t[f],a[f],p)):"sh"===t[f].ty?d.push(ShapePathInterface(t[f],a[f],p)):"rc"===t[f].ty?d.push(c(t[f],a[f],p)):"rd"===t[f].ty?d.push(h(t[f],a[f],p)):"rp"===t[f].ty?d.push(u(t[f],a[f],p)):"gf"===t[f].ty?d.push(n(t[f],a[f],p)):d.push(i(t[f],a[f])));return d}function e(e,r,n){var i=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,n);var o=function(e,r,n){var i,o=function(t){for(var e=0,r=i.length;e<r;){if(i[e]._name===t||i[e].mn===t||i[e].propertyIndex===t||i[e].ix===t||i[e].ind===t)return i[e];e+=1}return"number"==typeof t?i[t-1]:null};o.propertyGroup=propertyGroupFactory(o,n),i=t(e.it,r.it,o.propertyGroup),o.numProperties=i.length;var s=a(e.it[e.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.transform=s,o.propertyIndex=e.cix,o._name=e.nm,o}(e,r,i.propertyGroup),s=a(e.it[e.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=o,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return e.nm}}),i.numProperties=e.np,i.propertyIndex=e.ix,i.nm=e.nm,i.mn=e.mn,i}function r(t,e,r){function n(t){return"Color"===t||"color"===t?n.color:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function n(t,e,r){function n(t){return"Start Point"===t||"start point"===t?n.startPoint:"End Point"===t||"end point"===t?n.endPoint:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",r)),e.e.setGroupProperty(PropertyInterface("End Point",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function i(){return function(){return null}}function o(t,e,r){var n,i=propertyGroupFactory(l,r),o=propertyGroupFactory(A,i);function s(r){Object.defineProperty(A,t.d[r].nm,{get:ExpressionPropertyInterface(e.d.dataProps[r].p)})}var a=t.d?t.d.length:0,A={};for(n=0;n<a;n+=1)s(n),e.d.dataProps[n].p.setGroupProperty(o);function l(t){return"Color"===t||"color"===t?l.color:"Opacity"===t||"opacity"===t?l.opacity:"Stroke Width"===t||"stroke width"===t?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return A}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),e.w.setGroupProperty(PropertyInterface("Stroke Width",i)),l}function s(t,e,r){function n(e){return e===t.e.ix||"End"===e||"end"===e?n.end:e===t.s.ix?n.start:e===t.o.ix?n.offset:null}var i=propertyGroupFactory(n,r);return n.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",i)),e.e.setGroupProperty(PropertyInterface("End",i)),e.o.setGroupProperty(PropertyInterface("Offset",i)),n.propertyIndex=t.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),n.mn=t.mn,n}function a(t,e,r){function n(e){return t.a.ix===e||"Anchor Point"===e?n.anchorPoint:t.o.ix===e||"Opacity"===e?n.opacity:t.p.ix===e||"Position"===e?n.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?n.rotation:t.s.ix===e||"Scale"===e?n.scale:t.sk&&t.sk.ix===e||"Skew"===e?n.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?n.skewAxis:null}var i=propertyGroupFactory(n,r);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),n.ty="tr",n.mn=t.mn,n.propertyGroup=r,n}function A(t,e,r){function n(e){return t.p.ix===e?n.position:t.s.ix===e?n.size:null}var i=propertyGroupFactory(n,r);n.propertyIndex=t.ix;var o="tm"===e.sh.ty?e.sh.prop:e.sh;return o.s.setGroupProperty(PropertyInterface("Size",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:t.nm}}),n.mn=t.mn,n}function l(t,e,r){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.rotation:t.pt.ix===e?n.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?n.outerRadius:t.os.ix===e?n.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?n.innerRoundness:null:n.innerRadius}var i=propertyGroupFactory(n,r),o="tm"===e.sh.ty?e.sh.prop:e.sh;return n.propertyIndex=t.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",i)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),o.pt.setGroupProperty(PropertyInterface("Points",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),t.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:t.nm}}),n.mn=t.mn,n}function c(t,e,r){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?n.size:null}var i=propertyGroupFactory(n,r),o="tm"===e.sh.ty?e.sh.prop:e.sh;return n.propertyIndex=t.ix,o.p.setGroupProperty(PropertyInterface("Position",i)),o.s.setGroupProperty(PropertyInterface("Size",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:t.nm}}),n.mn=t.mn,n}function h(t,e,r){function n(e){return t.r.ix===e||"Round Corners 1"===e?n.radius:null}var i=propertyGroupFactory(n,r),o=e;return n.propertyIndex=t.ix,o.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:t.nm}}),n.mn=t.mn,n}function u(t,e,r){function n(e){return t.c.ix===e||"Copies"===e?n.copies:t.o.ix===e||"Offset"===e?n.offset:null}var i=propertyGroupFactory(n,r),o=e;return n.propertyIndex=t.ix,o.c.setGroupProperty(PropertyInterface("Copies",i)),o.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:t.nm}}),n.mn=t.mn,n}return function(e,r,n){var i;function o(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?n:i[t-1];for(var e=0,r=i.length;e<r;){if(i[e]._name===t)return i[e];e+=1}return null}return o.propertyGroup=propertyGroupFactory(o,function(){return n}),i=t(e,r,o.propertyGroup),o.numProperties=i.length,o._name="Contents",o}}(),TextExpressionInterface=function(t){var e;function r(t){return"ADBE Text Document"===t?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var r=t.textProperty.currentData.t;return e&&r===e.value||((e=new String(r)).value=r||new String(r),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),r};function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",r=t.getFootageData();function n(t){if(r[t])return e=t,"object"===_typeof(r=r[t])?n:r;var i=t.indexOf(e);if(-1!==i){var o=parseInt(t.substr(i+e.length),10);return"object"===_typeof(r=r[o])?n:r}return""}return function(){return e="",r=t.getFootageData(),n}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),n=0;if(e.length){var i;for(i=0;i<e.length;i+=1)n+=Math.pow(r[i]-e[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,r,n=-.001,i=this.getValueAtTime(t),o=this.getValueAtTime(t+n);if(i.length)for(e=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)e[r]=(o[r]-i[r])/n;else e=(o-i)/n;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,r){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var n,i,o,s,a,A=this.comp.renderedFrame,l=this.keyframes,c=l[l.length-1].t;if(A<=c)return this.pv;if(r?i=c-(n=e?Math.abs(c-this.elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>l.length-1)&&(e=l.length-1),n=c-(i=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((A-i)/n)%2!=0)return this.getValueAtTime((n-(A-i)%n+i)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(i/this.comp.globalData.frameRate,0),u=this.getValueAtTime(c/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((A-i)%n+i)/this.comp.globalData.frameRate,0),f=Math.floor((A-i)/n);if(this.pv.length){for(s=(a=new Array(h.length)).length,o=0;o<s;o+=1)a[o]=(u[o]-h[o])*f+p[o];return a}return(u-h)*f+p}if("continue"===t){var d=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(a=new Array(d.length)).length,o=0;o<s;o+=1)a[o]=d[o]+(d[o]-g[o])*((A-c)/this.comp.globalData.frameRate)/5e-4;return a}return d+(A-c)/.001*(d-g)}}return this.getValueAtTime(((A-i)%n+i)/this.comp.globalData.frameRate,0)}function e(t,e,r){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var n,i,o,s,a,A=this.comp.renderedFrame,l=this.keyframes,c=l[0].t;if(A>=c)return this.pv;if(r?i=c+(n=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):((!e||e>l.length-1)&&(e=l.length-1),n=(i=l[e].t)-c),"pingpong"===t){if(Math.floor((c-A)/n)%2==0)return this.getValueAtTime(((c-A)%n+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(c/this.comp.globalData.frameRate,0),u=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime((n-(c-A)%n+c)/this.comp.globalData.frameRate,0),f=Math.floor((c-A)/n)+1;if(this.pv.length){for(s=(a=new Array(h.length)).length,o=0;o<s;o+=1)a[o]=p[o]-(u[o]-h[o])*f;return a}return p-(u-h)*f}if("continue"===t){var d=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(a=new Array(d.length)).length,o=0;o<s;o+=1)a[o]=d[o]+(d[o]-g[o])*(c-A)/.001;return a}return d+(d-g)*(c-A)/.001}}return this.getValueAtTime((n-((c-A)%n+c))/this.comp.globalData.frameRate,0)}function r(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var r,n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,o=i-t,s=e>1?(i+t-o)/(e-1):1,a=0,A=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;a<e;){if(n=this.getValueAtTime(o+a*s),this.pv.length)for(A=0;A<this.pv.length;A+=1)r[A]+=n[A];else r+=n;a+=1}if(this.pv.length)for(A=0;A<this.pv.length;A+=1)r[A]/=e;else r/=e;return r}function n(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(t);e.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(t);e.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(t),o=this.sa.getValueAtTime(t);e.skewFromAxis(-i*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var s=this.r.getValueAtTime(t);e.rotate(-s*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var a=this.rz.getValueAtTime(t),A=this.ry.getValueAtTime(t),l=this.rx.getValueAtTime(t),c=this.or.getValueAtTime(t);e.rotateZ(-a*this.rz.mult).rotateY(A*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var h=this.px.getValueAtTime(t),u=this.py.getValueAtTime(t);if(this.data.p.z){var p=this.pz.getValueAtTime(t);e.translate(h*this.px.mult,u*this.py.mult,-p*this.pz.mult)}else e.translate(h*this.px.mult,u*this.py.mult,0)}else{var f=this.p.getValueAtTime(t);e.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return e}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,r){var s=o(t,e,r);return s.dynamicProperties.length?s.getValueAtTime=n.bind(s):s.getValueAtTime=i.bind(s),s.setGroupProperty=expressionHelpers.setGroupProperty,s};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(n,i,o,a,A){var l=s(n,i,o,a,A);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=t,l.loopIn=e,l.smooth=r,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===i.a?i.k.length:0,l.propertyIndex=i.ix;var c=0;return 0!==o&&(c=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(n,i,l),l.k&&A.addDynamicProperty(l),l};var a=ShapePropertyFactory.getConstructorFunction(),A=ShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.prototype={vertices:function(t,e){this.k&&this.getValue();var r,n=this.v;void 0!==e&&(n=this.getValueAtTime(e,0));var i=n._length,o=n[t],s=n.v,a=createSizedArray(i);for(r=0;r<i;r+=1)a[r]="i"===t||"o"===t?[o[r][0]-s[r][0],o[r][1]-s[r][1]]:[o[r][0],o[r][1]];return a},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n,i=this._segmentsLength,o=i.lengths,s=i.totalLength*t,a=0,A=o.length,l=0;a<A;){if(l+o[a].addedLength>s){var c=a,h=r.c&&a===A-1?0:a+1,u=(s-l)/o[a].addedLength;n=bez.getPointInSegment(r.v[c],r.v[h],r.o[c],r.i[h],u,o[a]);break}l+=o[a].addedLength,a+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(t,e,r){1==t?t=this.v.c:0==t&&(t=.999);var n=this.pointOnPath(t,e),i=this.pointOnPath(t+.001,e),o=i[0]-n[0],s=i[1]-n[1],a=Math.sqrt(Math.pow(o,2)+Math.pow(s,2));return 0===a?[0,0]:"tangent"===r?[o/a,s/a]:[-s/a,o/a]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([l],a),extendPrototype([l],A),A.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},A.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,n,i){var o=c(t,e,r,n,i);return o.propertyIndex=e.ix,o.lock=!1,3===r?expressionHelpers.searchExpressions(t,e.pt,o):4===r&&expressionHelpers.searchExpressions(t,e.ks,o),o.k&&t.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var n={};return this.copyData(n,t),n.t=r.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var r,n,i=createNS("feMerge");for(i.setAttribute("result",t),n=0;n<e.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",e[n]),i.appendChild(r),i.appendChild(r);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,r,n,i){this.filterManager=e;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",n+"_tint_1"),t.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",n+"_tint_2"),t.appendChild(o),this.matrixFilter=o;var s=this.createMergeNode(n,[i,n+"_tint_1",n+"_tint_2"]);t.appendChild(s)}function SVGFillFilter(t,e,r,n){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",n),t.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}function SVGTritoneFilter(t,e,r,n){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),this.matrixFilter=o;var s=createNS("feFuncR");s.setAttribute("type","table"),o.appendChild(s),this.feFuncR=s;var a=createNS("feFuncG");a.setAttribute("type","table"),o.appendChild(a),this.feFuncG=a;var A=createNS("feFuncB");A.setAttribute("type","table"),o.appendChild(A),this.feFuncB=A,t.appendChild(o)}function SVGProLevelsFilter(t,e,r,n){this.filterManager=e;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(o)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),t.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(t,e,r,n,i){var o=e.container.globalData.renderConfig.filterSize,s=e.data.fs||o;t.setAttribute("x",s.x||o.x),t.setAttribute("y",s.y||o.y),t.setAttribute("width",s.width||o.width),t.setAttribute("height",s.height||o.height),this.filterManager=e;var a=createNS("feGaussianBlur");a.setAttribute("in","SourceAlpha"),a.setAttribute("result",n+"_drop_shadow_1"),a.setAttribute("stdDeviation","0"),this.feGaussianBlur=a,t.appendChild(a);var A=createNS("feOffset");A.setAttribute("dx","25"),A.setAttribute("dy","0"),A.setAttribute("in",n+"_drop_shadow_1"),A.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=A,t.appendChild(A);var l=createNS("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=l,t.appendChild(l);var c=createNS("feComposite");c.setAttribute("in",n+"_drop_shadow_3"),c.setAttribute("in2",n+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",n+"_drop_shadow_4"),t.appendChild(c);var h=this.createMergeNode(n,[n+"_drop_shadow_4",i]);t.appendChild(h)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,n,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=1+(r=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<n;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),s=createElementID();o.setAttribute("id",s),o.setAttribute("mask-type","alpha"),o.appendChild(e),this.elem.globalData.defs.appendChild(o);var a=createNS("g");for(a.setAttribute("mask","url("+getLocationHref()+"#"+s+")");i[0];)a.appendChild(i[0]);this.elem.layerElement.appendChild(a),this.masker=o,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var r,n,i=this.paths.length;for(e=0;e<i;e+=1)if(-1!==this.paths[e].m&&(r=this.elem.maskManager.viewData[this.paths[e].m],n=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var s=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),a=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),A=n.getTotalLength();o="0 0 0 "+A*s+" ";var l,c=A*(a-s),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,u=Math.floor(c/h);for(l=0;l<u;l+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*A+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",o)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+e[0],o=n[1]+" "+r[1]+" "+e[1],s=n[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",s)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,n,i){for(var o,s,a=0,A=Math.min(t,e),l=Math.max(t,e),c=Array.call(null,{length:256}),h=0,u=i-n,p=e-t;a<=256;)s=(o=a/256)<=A?p<0?i:n:o>=l?p<0?n:i:n+u*Math.pow((o-t)/p,1/r),c[h]=s,h+=1,a+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),o=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(t,e,r,n){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var i=createNS("feGaussianBlur");i.setAttribute("result",n),t.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var n,i=r.children,o=0,s=i.length;o<s&&i[o]!==t.layerElement;)o+=1;o<=s-2&&(n=i[o+1]);var a=createNS("use");a.setAttribute("href","#"+e),n?r.insertBefore(a,n):r.appendChild(a)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",e.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var i=t.globalData.defs;i.appendChild(n);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(e,r),o.appendChild(e.layerElement),i.appendChild(o);var s=createNS("use");s.setAttribute("href","#"+r),n.appendChild(s),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,n=e.length;r<n;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:e,i=2==r?0:e;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+i);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,r=e[0].p.v,n=e[1].p.v,i=1===e[2].p.v,o=e[3].p.v,s=i?o:e[4].p.v,a=e[5].p.v,A=e[6].p.v,l=e[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*s,.01*o,1),this.matrix.rotate(-l*degToRads),this.matrix.skewFromAxis(-a*degToRads,(A+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},64694(t,e,r){"use strict";r.r(e),r.d(e,{draftToMarkdown:()=>h,markdownToDraft:()=>x});var n=/[ \u0020\t\n]*$/,i=["*","_","~","`"],o=/(\*|_|~|\\|`)/g,s={},a=0,A={"unordered-list-item":{open:function(){return"- "},close:function(){return""}},"ordered-list-item":{open:function(t){return"".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,". ")},close:function(){return""}},blockquote:{open:function(){return"> "},close:function(){return""}},"header-one":{open:function(){return"# "},close:function(){return""}},"header-two":{open:function(){return"## "},close:function(){return""}},"header-three":{open:function(){return"### "},close:function(){return""}},"header-four":{open:function(){return"#### "},close:function(){return""}},"header-five":{open:function(){return"##### "},close:function(){return""}},"header-six":{open:function(){return"###### "},close:function(){return""}},"code-block":{open:function(t){return"```"+(t.data.language||"")+"\n"},close:function(){return"\n```"}},BOLD:{open:function(){return"**"},close:function(){return"**"}},ITALIC:{open:function(){return"_"},close:function(){return"_"}},STRIKETHROUGH:{open:function(){return"~~"},close:function(){return"~~"}},CODE:{open:function(){return"`"},close:function(){return"`"}}},l={LINK:{open:function(t){return"["},close:function(t){return"](".concat(t.data.url||t.data.href,")")}}},c=["unordered-list-item","ordered-list-item"];const h=function(t,e){e=e||{};var r="";return t.blocks.forEach(function(h,u){r+=function(t,e,r,h){var u=[],p="",f=h.styleItems||{},d=h.entityItems||{},g=!h.hasOwnProperty("escapeMarkdownCharacters")||h.escapeMarkdownCharacters,m=t.type,y=[];(function(t){return 0===t.text.length&&0===t.entityRanges.length&&0===Object.keys(t.data||{}).length})(t)&&!h.preserveNewlines&&(m="unstyled"),f[m]||A[m]?("unordered-list-item"!==m&&"ordered-list-item"!==m||(p+=" ".repeat(4*t.depth)),"ordered-list-item"===m?(s[t.depth]=s[t.depth]||1,p+=(f[m]||A[m]).open(t,s[t.depth]),s[t.depth]++,a>t.depth&&(s[a]=1),a=t.depth):(s={},p+=(f[m]||A[m]).open(t))):s={};var v=[];function b(e){if(v.push(e),e.style){if(f[e.style]||A[e.style]){var n=(f[e.style]||A[e.style]).open();u.push({type:"style",style:e,value:n})}}else{var i=r.entityMap[e.key];if(d[i.type]||l[i.type]){var o=(d[i.type]||l[i.type]).open(i,t);u.push({type:"entity",value:o})}}}function w(e){if(e!==v.pop())throw new Error("Invariant violation: Cannot close a tag before all inner tags have been closed");if(e.style){if(f[e.style]||A[e.style]){var i=n.exec(p);p=p.slice(0,p.length-i[0].length),p+=(f[e.style]||A[e.style]).close(),p+=i[0]}}else{var o=r.entityMap[e.key];(d[o.type]||l[o.type])&&(p+=(d[o.type]||l[o.type]).close(o,t))}}var x=function(t,e){return e.offset+e.length-(t.offset+t.length)},B=function(t){return t.concat().reverse()};return Array.from(t.text).some(function(e,r){B(v).forEach(function(t){if(t.offset+t.length===r){var e=v.slice(v.indexOf(t)+1);B(e).forEach(w),w(t),e.sort(x).forEach(b)}});var n=t.inlineStyleRanges.filter(function(t){return t.offset===r}),s=t.entityRanges.filter(function(t){return t.offset===r});if(n.concat(s).sort(x).forEach(b)," "!==e&&u.length&&(p+=u.map(function(t){return t.value}).join(""),u=[]),"code-block"!==t.type&&g)if(v.find(function(t){return"CODE"===t.style}));else if(0===r&&"#"===e&&t.text[1]&&" "===t.text[1]?e=e.replace("#","\\#"):0===r&&">"===e&&(e=e.replace(">","\\>")),i.includes(e)){var a=y.find(function(t){return t.character===e});if(a||" "!==t.text[r-1]||" "===t.text[r+1]){if(a&&t.text[r-1]===e&&r===a.index+1)a.markdownStringIndexEnd+=1;else if(a){var A=a.markdownStringIndexEnd-a.markdownStringIndexStart,l=!1,c=!1;if(1!==A||" "!==t.text[r+1]&&t.text[r+1]||(c=!0,l=!0),2===A&&t.text[r+1]===e&&(l=!0),2!==A||t.text[r-1]!==e||" "!==t.text[r+1]&&t.text[r+1]||(c=!0,l=!0),c){y.splice(y.indexOf(a),1);var h=p.slice(a.markdownStringIndexStart,a.markdownStringIndexEnd);h=h.replace(o,"\\$1"),p=p.slice(0,a.markdownStringIndexStart)+h+p.slice(a.markdownStringIndexEnd)}l&&(e="\\".concat(e))}}else y.push({character:e,index:r,markdownStringIndexStart:p.length+e.length-1,markdownStringIndexEnd:p.length+e.length})}p+="\n"===e&&"blockquote"===m?"\n> ":e}),B(v).forEach(w),(f[m]||A[m])&&(p+=(f[m]||A[m]).close(t)),-1!==c.indexOf(m)&&r.blocks[e+1]&&-1!==c.indexOf(r.blocks[e+1].type)?p+="\n":r.blocks[e+1]&&(r.blocks[e].text?-1!==c.indexOf(m)&&-1===c.indexOf(r.blocks[e+1].type)?p+="\n\n":h.preserveNewlines?p+="\n":p+="\n\n":h.preserveNewlines&&(p+="\n")),p}(h,u,t,e)}),s={},r};var u=r(66198);function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}return r}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}var d=/\n$/;function g(t){return Array.from(t).length}var m={paragraph_open:function(t){return{type:"unstyled",text:"",entityRanges:[],inlineStyleRanges:[]}},blockquote_open:function(t){return{type:"blockquote",text:""}},ordered_list_item_open:function(){return{type:"ordered-list-item",text:""}},unordered_list_item_open:function(){return{type:"unordered-list-item",text:""}},fence:function(t){return{type:"code-block",data:{language:t.params||""},text:(t.content||"").replace(d,""),entityRanges:[],inlineStyleRanges:[]}},heading_open:function(t){return{type:"header-"+{1:"one",2:"two",3:"three",4:"four",5:"five",6:"six"}[t.hLevel],text:""}}},y={link_open:function(t){return{type:"LINK",mutability:"MUTABLE",data:{url:t.href,href:t.href}}}},v={strong_open:"BOLD",em_open:"ITALIC",code:"CODE",del_open:"STRIKETHROUGH"},b=-1;function w(){return++b}const x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.remarkablePreset||e.remarkableOptions,n="object"===f(e.remarkableOptions)?e.remarkableOptions:null,i=new u.F(r,n);if(n&&n.enable&&n.enable.block&&"table"===n.enable.block&&!1!==n.enable.block.includes("table")||i.block.ruler.disable("table"),n&&n.disable)for(var o=0,s=Object.entries(n.disable);o<s.length;o++){var a=p(s[o],2),A=a[0],l=a[1];i[A].ruler.disable(l)}if(n&&n.enable)for(var c=0,h=Object.entries(n.enable);c<h.length;c++){var d=p(h[c],2),b=d[0],x=d[1];i[b].ruler.enable(x)}e.remarkablePlugins&&e.remarkablePlugins.forEach(function(t){i.use(t,{})});var B=[],C={},_=i.parse(t,{}),E=null,S=0,I=Object.assign({},m,e.blockTypes||{}),F=Object.assign({},y,e.blockEntities||{}),T=Object.assign({},v,e.blockStyles||{});return _.forEach(function(t){"bullet_list_open"===t.type?E="unordered_list_item_open":"ordered_list_open"===t.type&&(E="ordered_list_item_open");var r=t.type;if("list_item_open"===r&&(r=E),"inline"===r){var n=function(t,e,r){var n="",i={},o=[],s=[];return t.children.forEach(function(t){if("text"===t.type)n+=t.content;else if("softbreak"===t.type)n+="\n";else if("hardbreak"===t.type)n+="\n";else if(r[t.type]){var a=w(),A={offset:g(n)||0,length:0,style:r[t.type]};"code"!==t.type&&"sub"!==t.type&&"sup"!==t.type||(A.length=g(t.content),n+=t.content),s.push(A)}else if(e[t.type])a=w(),i[a]=e[t.type](t),o.push({offset:g(n)||0,length:0,key:a});else if(-1!==t.type.indexOf("_close")&&e[t.type.replace("_close","_open")])o[o.length-1].length=g(n)-o[o.length-1].offset;else if(-1!==t.type.indexOf("_close")&&r[t.type.replace("_close","_open")]){var l=r[t.type.replace("_close","_open")];s=s.map(function(t){return 0===t.length&&t.style===l&&(t.length=g(n)-t.offset),t})}}),{content:n,blockEntities:i,blockEntityRanges:o,blockInlineStyleRanges:s}}(t,F,T),i=n.content,o=n.blockEntities,s=n.blockEntityRanges,a=n.blockInlineStyleRanges,A=B[B.length-1];A.text=i,A.inlineStyleRanges=a,A.entityRanges=s,Object.assign(C,o)}else if((-1!==r.indexOf("_open")||"fence"===r||"hr"===r||"htmlblock"===r)&&I[r]){var l,c=0;if(t.level>0&&(c=Math.floor(t.level/2)),0===t.level||"list_item_open"===t.type?l=Object.assign({depth:c},I[r](t)):t.level>0&&B[B.length-1].text&&(l=Object.assign({},B[B.length-1])),l&&e.preserveNewlines)for(var h=t.lines[0]-S,u=0;u<h;u++)B.push(m.paragraph_open());l&&(S=t.lines[1],"unordered-list-item"!==l.type&&"ordered-list-item"!==l.type||(S+=1),B.push(l))}}),B.length||B.push(m.paragraph_open()),{entityMap:C,blocks:B}}},64685(t){"use strict";t.exports=i;var e=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],r=e.concat(["~","|"]),n=r.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function i(t){var i=t||{};return i.commonmark?n:i.gfm?r:e}i.default=e,i.gfm=r,i.commonmark=n},77412(t){"use strict";t.exports=Math.abs},52418(t){"use strict";t.exports=Math.floor},41694(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},57958(t){"use strict";t.exports=Math.max},47384(t){"use strict";t.exports=Math.min},250(t){"use strict";t.exports=Math.pow},51844(t){"use strict";t.exports=Math.round},47279(t,e,r){"use strict";var n=r(41694);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},86481(t,e,r){"use strict";r.d(e,{t:()=>A});var n=r(51918);const i=(t,e,r)=>{if(t&&"reportValidity"in t){const i=(0,n.Jt)(r,e);t.setCustomValidity(i&&i.message||""),t.reportValidity()}},o=(t,e)=>{for(const r in e.fields){const n=e.fields[r];n&&n.ref&&"reportValidity"in n.ref?i(n.ref,r,t):n.refs&&n.refs.forEach(e=>i(e,r,t))}},s=(t,e)=>{e.shouldUseNativeValidation&&o(t,e);const r={};for(const i in t){const o=(0,n.Jt)(e.fields,i),s=Object.assign(t[i]||{},{ref:o&&o.ref});if(a(e.names||Object.keys(t),i)){const t=Object.assign({},(0,n.Jt)(r,i));(0,n.hZ)(t,"root",s),(0,n.hZ)(r,i,t)}else(0,n.hZ)(r,i,s)}return r},a=(t,e)=>t.some(t=>t.startsWith(e+"."));function A(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),function(i,a,A){try{return Promise.resolve(function(n,s){try{var l=(e.context,Promise.resolve(t["sync"===r.mode?"validateSync":"validate"](i,Object.assign({abortEarly:!1},e,{context:a}))).then(function(t){return A.shouldUseNativeValidation&&o({},A),{values:r.raw?i:t,errors:{}}}))}catch(t){return s(t)}return l&&l.then?l.then(void 0,s):l}(0,function(t){if(!t.inner)throw t;return{values:{},errors:s((e=t,r=!A.shouldUseNativeValidation&&"all"===A.criteriaMode,(e.inner||[]).reduce(function(t,e){if(t[e.path]||(t[e.path]={message:e.message,type:e.type}),r){var i=t[e.path].types,o=i&&i[e.type];t[e.path]=(0,n.Gb)(e.path,r,t,e.type,o?[].concat(o,e.message):e.message)}return t},{})),A)};var e,r}))}catch(t){return Promise.reject(t)}}}},89347(t,e,r){"use strict";r.r(e),r.d(e,{BREAK:()=>vt,BreakingChangeType:()=>Ms,DEFAULT_DEPRECATION_REASON:()=>Hr,DangerousChangeType:()=>Ds,DirectiveLocation:()=>W,ExecutableDefinitionsRule:()=>Fn,FieldsOnCorrectTypeRule:()=>Un,FragmentsOnCompositeTypesRule:()=>Dn,GraphQLBoolean:()=>gr,GraphQLDeprecatedDirective:()=>Vr,GraphQLDirective:()=>Qr,GraphQLEnumType:()=>Je,GraphQLError:()=>I,GraphQLFloat:()=>pr,GraphQLID:()=>mr,GraphQLIncludeDirective:()=>Rr,GraphQLInputObjectType:()=>$e,GraphQLInt:()=>ur,GraphQLInterfaceType:()=>We,GraphQLList:()=>Ie,GraphQLNonNull:()=>Fe,GraphQLObjectType:()=>je,GraphQLScalarType:()=>Re,GraphQLSchema:()=>Xr,GraphQLSkipDirective:()=>jr,GraphQLSpecifiedByDirective:()=>zr,GraphQLString:()=>dr,GraphQLUnionType:()=>Ye,Kind:()=>P,KnownArgumentNamesRule:()=>Zn,KnownDirectivesRule:()=>qn,KnownFragmentNamesRule:()=>Rn,KnownTypeNamesRule:()=>Pn,Lexer:()=>$,Location:()=>O,LoneAnonymousOperationRule:()=>kn,LoneSchemaDefinitionRule:()=>_i,MaxIntrospectionDepthRule:()=>Ci,NoDeprecatedCustomRule:()=>Uo,NoFragmentCyclesRule:()=>Vn,NoSchemaIntrospectionCustomRule:()=>Qo,NoUndefinedVariablesRule:()=>Gn,NoUnusedFragmentsRule:()=>jn,NoUnusedVariablesRule:()=>Kn,OverlappingFieldsCanBeMergedRule:()=>ui,PossibleFragmentSpreadsRule:()=>Hn,PossibleTypeExtensionsRule:()=>Pi,ProvidedRequiredArgumentsRule:()=>si,ScalarLeafsRule:()=>On,SchemaMetaFieldDef:()=>kr,SingleFieldSubscriptionsRule:()=>Ln,Source:()=>K,Token:()=>U,TokenKind:()=>R,TypeInfo:()=>mn,TypeKind:()=>Fr,TypeMetaFieldDef:()=>Lr,TypeNameMetaFieldDef:()=>Pr,UniqueArgumentNamesRule:()=>ti,UniqueDirectiveNamesRule:()=>ki,UniqueDirectivesPerLocationRule:()=>Wn,UniqueEnumValueNamesRule:()=>Ii,UniqueFieldDefinitionNamesRule:()=>Fi,UniqueFragmentNamesRule:()=>Qn,UniqueInputFieldNamesRule:()=>Bi,UniqueOperationNamesRule:()=>Tn,UniqueOperationTypesRule:()=>Ei,UniqueTypeNamesRule:()=>Si,UniqueVariableNamesRule:()=>zn,ValidationContext:()=>ji,ValuesOfCorrectTypeRule:()=>ei,VariablesAreInputTypesRule:()=>Nn,VariablesInAllowedPositionRule:()=>li,__Directive:()=>Br,__DirectiveLocation:()=>Cr,__EnumValue:()=>Ir,__Field:()=>Er,__InputValue:()=>Sr,__Schema:()=>xr,__Type:()=>_r,__TypeKind:()=>Tr,assertAbstractType:()=>Se,assertCompositeType:()=>_e,assertDirective:()=>Ur,assertEnumType:()=>he,assertInputObjectType:()=>pe,assertInputType:()=>ve,assertInterfaceType:()=>ae,assertLeafType:()=>Be,assertListType:()=>de,assertNamedType:()=>Ne,assertNonNullType:()=>me,assertNullableType:()=>Pe,assertObjectType:()=>oe,assertOutputType:()=>we,assertScalarType:()=>ne,assertSchema:()=>Yr,assertType:()=>ee,assertUnionType:()=>le,assertValidName:()=>St,assertValidSchema:()=>$r,assertWrappingType:()=>ke,astFromValue:()=>br,buildASTSchema:()=>ns,buildClientSchema:()=>qo,buildSchema:()=>is,coerceInputValue:()=>Ji,concatAST:()=>_s,createSourceEventStream:()=>Oo,defaultFieldResolver:()=>So,defaultTypeResolver:()=>Eo,doTypesOverlap:()=>ir,execute:()=>no,executeSync:()=>io,extendSchema:()=>Jo,findBreakingChanges:()=>Ns,findDangerousChanges:()=>Os,findDeprecatedUsages:()=>Xs,formatError:()=>k,getDescription:()=>rs,getDirectiveValues:()=>eo,getIntrospectionQuery:()=>Ho,getLocation:()=>u,getNamedType:()=>Oe,getNullableType:()=>Me,getOperationAST:()=>Vo,getOperationRootType:()=>qi,getVisitFn:()=>xt,graphql:()=>Fo,graphqlSync:()=>To,introspectionFromSchema:()=>Ko,introspectionTypes:()=>Mr,isAbstractType:()=>Ee,isCompositeType:()=>Ce,isDefinitionNode:()=>bn,isDirective:()=>Or,isEnumType:()=>ce,isEqualType:()=>rr,isExecutableDefinitionNode:()=>wn,isInputObjectType:()=>ue,isInputType:()=>ye,isInterfaceType:()=>se,isIntrospectionType:()=>Dr,isLeafType:()=>xe,isListType:()=>fe,isNamedType:()=>De,isNonNullType:()=>ge,isNullableType:()=>Le,isObjectType:()=>ie,isOutputType:()=>be,isRequiredArgument:()=>qe,isRequiredInputField:()=>er,isScalarType:()=>re,isSchema:()=>Wr,isSelectionNode:()=>xn,isSpecifiedDirective:()=>Kr,isSpecifiedScalarType:()=>vr,isType:()=>te,isTypeDefinitionNode:()=>En,isTypeExtensionNode:()=>In,isTypeNode:()=>Cn,isTypeSubTypeOf:()=>nr,isTypeSystemDefinitionNode:()=>_n,isTypeSystemExtensionNode:()=>Sn,isUnionType:()=>Ae,isValidNameError:()=>It,isValueNode:()=>Bn,isWrappingType:()=>Te,lexicographicSortSchema:()=>As,locatedError:()=>_t,parse:()=>ut,parseType:()=>ft,parseValue:()=>pt,print:()=>Ht,printError:()=>T,printIntrospectionSchema:()=>ps,printLocation:()=>p,printSchema:()=>us,printSourceLocation:()=>f,printType:()=>ms,recommendedRules:()=>Di,responsePathAsArray:()=>Ki,separateOperations:()=>Es,specifiedDirectives:()=>Gr,specifiedRules:()=>Ni,specifiedScalarTypes:()=>yr,stripIgnoredCharacters:()=>Fs,subscribe:()=>Do,syntaxError:()=>L,typeFromAST:()=>gn,validate:()=>Hi,validateSchema:()=>Zr,valueFromAST:()=>Yi,valueFromASTUntyped:()=>Jt,version:()=>n,versionInfo:()=>i,visit:()=>bt,visitInParallel:()=>wt,visitWithTypeInfo:()=>vn});var n="15.10.1",i=Object.freeze({major:15,minor:10,patch:1,preReleaseTag:null});function o(t){return"function"==typeof(null==t?void 0:t.then)}function s(t,e){if(!Boolean(t))throw new Error(e)}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function A(t){return"object"==a(t)&&null!==t}var l="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",c="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator",h="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function u(t,e){for(var r,n=/\r\n|[\n\r]/g,i=1,o=e+1;(r=n.exec(t.body))&&r.index<e;)i+=1,o=e+1-(r.index+r[0].length);return{line:i,column:o}}function p(t){return f(t.source,u(t.source,t.start))}function f(t,e){var r=t.locationOffset.column-1,n=g(r)+t.body,i=e.line-1,o=t.locationOffset.line-1,s=e.line+o,a=1===e.line?r:0,A=e.column+a,l="".concat(t.name,":").concat(s,":").concat(A,"\n"),c=n.split(/\r\n|[\n\r]/g),h=c[i];if(h.length>120){for(var u=Math.floor(A/80),p=A%80,f=[],m=0;m<h.length;m+=80)f.push(h.slice(m,m+80));return l+d([["".concat(s),f[0]]].concat(f.slice(1,u+1).map(function(t){return["",t]}),[[" ",g(p-1)+"^"],["",f[u+1]]]))}return l+d([["".concat(s-1),c[i-1]],["".concat(s),h],["",g(A-1)+"^"],["".concat(s+1),c[i+1]]])}function d(t){var e=t.filter(function(t){return t[0],void 0!==t[1]}),r=Math.max.apply(Math,e.map(function(t){return t[0].length}));return e.map(function(t){var e,n=t[0],i=t[1];return g(r-(e=n).length)+e+(i?" | "+i:" |")}).join("\n")}function g(t){return Array(t+1).join(" ")}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function w(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?x(t):e}function x(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B(t){var e="function"==typeof Map?new Map:void 0;return B=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return C(t,arguments,S(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),E(n,t)},B(t)}function C(t,e,r){return C=_()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&E(i,r.prototype),i},C.apply(null,arguments)}function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function E(t,e){return E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},E(t,e)}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(s,t);var e,r,n,i,o=(e=s,r=_(),function(){var t,n=S(e);if(r){var i=S(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return w(this,t)});function s(t,e,r,n,i,a,l){var c,h,p,f;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(f=o.call(this,t)).name="GraphQLError",f.originalError=null!=a?a:void 0,f.nodes=F(Array.isArray(e)?e:e?[e]:void 0);for(var d=[],g=0,m=null!==(b=f.nodes)&&void 0!==b?b:[];g<m.length;g++){var b,B=m[g].loc;null!=B&&d.push(B)}d=F(d),f.source=null!=r?r:null===(c=d)||void 0===c?void 0:c[0].source,f.positions=null!=n?n:null===(h=d)||void 0===h?void 0:h.map(function(t){return t.start}),f.locations=n&&r?n.map(function(t){return u(r,t)}):null===(p=d)||void 0===p?void 0:p.map(function(t){return u(t.source,t.start)}),f.path=null!=i?i:void 0;var C=null==a?void 0:a.extensions;return null==l&&A(C)?f.extensions=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){v(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},C):f.extensions=null!=l?l:{},Object.defineProperties(x(f),{message:{enumerable:!0},locations:{enumerable:null!=f.locations},path:{enumerable:null!=f.path},extensions:{enumerable:null!=f.extensions&&Object.keys(f.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=a&&a.stack?(Object.defineProperty(x(f),"stack",{value:a.stack,writable:!0,configurable:!0}),w(f)):(Error.captureStackTrace?Error.captureStackTrace(x(f),s):Object.defineProperty(x(f),"stack",{value:Error().stack,writable:!0,configurable:!0}),f)}return n=s,(i=[{key:"toString",value:function(){return T(this)}},{key:"toJSON",value:function(){return k(this)}},{key:h,get:function(){return"Object"}}])&&b(n.prototype,i),s}(B(Error));function F(t){return void 0===t||0===t.length?void 0:t}function T(t){var e=t.message;if(t.nodes)for(var r=0,n=t.nodes;r<n.length;r++){var i=n[r];i.loc&&(e+="\n\n"+p(i.loc))}else if(t.source&&t.locations)for(var o=0,s=t.locations;o<s.length;o++){var a=s[o];e+="\n\n"+f(t.source,a)}return e}function k(t){var e;t||s(0,"Received null or undefined error.");var r=null!==(e=t.message)&&void 0!==e?e:"An unknown error occurred.",n=t.locations,i=t.path,o=t.extensions;return o&&Object.keys(o).length>0?{message:r,locations:n,path:i,extensions:o}:{message:r,locations:n,path:i}}function L(t,e,r){return new I("Syntax Error: ".concat(r),void 0,t,[e])}var P=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function M(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}const D="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function N(t){var e=t.prototype.toJSON;"function"==typeof e||M(0),t.prototype.inspect=e,D&&(t.prototype[D]=e)}var O=function(){function t(t,e,r){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=r}return t.prototype.toJSON=function(){return{start:this.start,end:this.end}},t}();N(O);var U=function(){function t(t,e,r,n,i,o,s){this.kind=t,this.start=e,this.end=r,this.line=n,this.column=i,this.value=s,this.prev=o,this.next=null}return t.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},t}();function Q(t){return null!=t&&"string"==typeof t.kind}N(U);var R=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function H(t){return V(t,[])}function V(t,e){switch(j(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return null===t?"null":function(t,e){if(-1!==e.indexOf(t))return"[Circular]";var r=[].concat(e,[t]),n=function(t){var e=t[String(D)];return"function"==typeof e?e:"function"==typeof t.inspect?t.inspect:void 0}(t);if(void 0!==n){var i=n.call(t);if(i!==t)return"string"==typeof i?i:V(i,r)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";for(var r=Math.min(10,t.length),n=t.length-r,i=[],o=0;o<r;++o)i.push(V(t[o],e));return 1===n?i.push("... 1 more item"):n>1&&i.push("... ".concat(n," more items")),"["+i.join(", ")+"]"}(t,r);return function(t,e){var r=Object.keys(t);return 0===r.length?"{}":e.length>2?"["+function(t){var e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"==typeof t.constructor){var r=t.constructor.name;if("string"==typeof r&&""!==r)return r}return e}(t)+"]":"{ "+r.map(function(r){return r+": "+V(t[r],e)}).join(", ")+" }"}(t,r)}(t,e);default:return String(t)}}const z=function(t,e){return t instanceof e};function G(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var K=function(){function t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof t||s(0,"Body must be a string. Received: ".concat(H(t),".")),this.body=t,this.name=e,this.locationOffset=r,this.locationOffset.line>0||s(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||s(0,"column in locationOffset is 1-indexed and must be positive.")}var e,r;return e=t,(r=[{key:h,get:function(){return"Source"}}])&&G(e.prototype,r),t}();function q(t){return z(t,K)}var W=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function Y(t){var e=t.split(/\r\n|[\n\r]/g),r=J(t);if(0!==r)for(var n=1;n<e.length;n++)e[n]=e[n].slice(r);for(var i=0;i<e.length&&X(e[i]);)++i;for(var o=e.length;o>i&&X(e[o-1]);)--o;return e.slice(i,o).join("\n")}function X(t){for(var e=0;e<t.length;++e)if(" "!==t[e]&&"\t"!==t[e])return!1;return!0}function J(t){for(var e,r=!0,n=!0,i=0,o=null,s=0;s<t.length;++s)switch(t.charCodeAt(s)){case 13:10===t.charCodeAt(s+1)&&++s;case 10:r=!1,n=!0,i=0;break;case 9:case 32:++i;break;default:n&&!r&&(null===o||i<o)&&(o=i),n=!1}return null!==(e=o)&&void 0!==e?e:0}function Z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===t.indexOf("\n"),i=" "===t[0]||"\t"===t[0],o='"'===t[t.length-1],s="\\"===t[t.length-1],a=!n||o||s||r,A="";return!a||n&&i||(A+="\n"+e),A+=e?t.replace(/\n/g,"\n"+e):t,a&&(A+="\n"),'"""'+A.replace(/"""/g,'\\"""')+'"""'}var $=function(){function t(t){var e=new U(R.SOF,0,0,0,0,null);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}var e=t.prototype;return e.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},e.lookahead=function(){var t=this.token;if(t.kind!==R.EOF)do{var e;t=null!==(e=t.next)&&void 0!==e?e:t.next=rt(this,t)}while(t.kind===R.COMMENT);return t},t}();function tt(t){return t===R.BANG||t===R.DOLLAR||t===R.AMP||t===R.PAREN_L||t===R.PAREN_R||t===R.SPREAD||t===R.COLON||t===R.EQUALS||t===R.AT||t===R.BRACKET_L||t===R.BRACKET_R||t===R.BRACE_L||t===R.PIPE||t===R.BRACE_R}function et(t){return isNaN(t)?R.EOF:t<127?JSON.stringify(String.fromCharCode(t)):'"\\u'.concat(("00"+t.toString(16).toUpperCase()).slice(-4),'"')}function rt(t,e){for(var r=t.source,n=r.body,i=n.length,o=e.end;o<i;){var s=n.charCodeAt(o),a=t.line,A=1+o-t.lineStart;switch(s){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++t.line,t.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++t.line,t.lineStart=o;continue;case 33:return new U(R.BANG,o,o+1,a,A,e);case 35:return it(r,o,a,A,e);case 36:return new U(R.DOLLAR,o,o+1,a,A,e);case 38:return new U(R.AMP,o,o+1,a,A,e);case 40:return new U(R.PAREN_L,o,o+1,a,A,e);case 41:return new U(R.PAREN_R,o,o+1,a,A,e);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return new U(R.SPREAD,o,o+3,a,A,e);break;case 58:return new U(R.COLON,o,o+1,a,A,e);case 61:return new U(R.EQUALS,o,o+1,a,A,e);case 64:return new U(R.AT,o,o+1,a,A,e);case 91:return new U(R.BRACKET_L,o,o+1,a,A,e);case 93:return new U(R.BRACKET_R,o,o+1,a,A,e);case 123:return new U(R.BRACE_L,o,o+1,a,A,e);case 124:return new U(R.PIPE,o,o+1,a,A,e);case 125:return new U(R.BRACE_R,o,o+1,a,A,e);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?At(r,o,a,A,e,t):at(r,o,a,A,e);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return ot(r,o,s,a,A,e);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return ht(r,o,a,A,e)}throw L(r,o,nt(s))}var l=t.line,c=1+o-t.lineStart;return new U(R.EOF,i,i,l,c,e)}function nt(t){return t<32&&9!==t&&10!==t&&13!==t?"Cannot contain the invalid character ".concat(et(t),"."):39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(et(t),".")}function it(t,e,r,n,i){var o,s=t.body,a=e;do{o=s.charCodeAt(++a)}while(!isNaN(o)&&(o>31||9===o));return new U(R.COMMENT,e,a,r,n,i,s.slice(e+1,a))}function ot(t,e,r,n,i,o){var s=t.body,a=r,A=e,l=!1;if(45===a&&(a=s.charCodeAt(++A)),48===a){if((a=s.charCodeAt(++A))>=48&&a<=57)throw L(t,A,"Invalid number, unexpected digit after 0: ".concat(et(a),"."))}else A=st(t,A,a),a=s.charCodeAt(A);if(46===a&&(l=!0,a=s.charCodeAt(++A),A=st(t,A,a),a=s.charCodeAt(A)),69!==a&&101!==a||(l=!0,43!==(a=s.charCodeAt(++A))&&45!==a||(a=s.charCodeAt(++A)),A=st(t,A,a),a=s.charCodeAt(A)),46===a||function(t){return 95===t||t>=65&&t<=90||t>=97&&t<=122}(a))throw L(t,A,"Invalid number, expected digit but got: ".concat(et(a),"."));return new U(l?R.FLOAT:R.INT,e,A,n,i,o,s.slice(e,A))}function st(t,e,r){var n=t.body,i=e,o=r;if(o>=48&&o<=57){do{o=n.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw L(t,i,"Invalid number, expected digit but got: ".concat(et(o),"."))}function at(t,e,r,n,i){for(var o=t.body,s=e+1,a=s,A=0,l="";s<o.length&&!isNaN(A=o.charCodeAt(s))&&10!==A&&13!==A;){if(34===A)return l+=o.slice(a,s),new U(R.STRING,e,s+1,r,n,i,l);if(A<32&&9!==A)throw L(t,s,"Invalid character within String: ".concat(et(A),"."));if(++s,92===A){switch(l+=o.slice(a,s-1),A=o.charCodeAt(s)){case 34:l+='"';break;case 47:l+="/";break;case 92:l+="\\";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+="\n";break;case 114:l+="\r";break;case 116:l+="\t";break;case 117:var c=lt(o.charCodeAt(s+1),o.charCodeAt(s+2),o.charCodeAt(s+3),o.charCodeAt(s+4));if(c<0){var h=o.slice(s+1,s+5);throw L(t,s,"Invalid character escape sequence: \\u".concat(h,"."))}l+=String.fromCharCode(c),s+=4;break;default:throw L(t,s,"Invalid character escape sequence: \\".concat(String.fromCharCode(A),"."))}a=++s}}throw L(t,s,"Unterminated string.")}function At(t,e,r,n,i,o){for(var s=t.body,a=e+3,A=a,l=0,c="";a<s.length&&!isNaN(l=s.charCodeAt(a));){if(34===l&&34===s.charCodeAt(a+1)&&34===s.charCodeAt(a+2))return c+=s.slice(A,a),new U(R.BLOCK_STRING,e,a+3,r,n,i,Y(c));if(l<32&&9!==l&&10!==l&&13!==l)throw L(t,a,"Invalid character within String: ".concat(et(l),"."));10===l?(++a,++o.line,o.lineStart=a):13===l?(10===s.charCodeAt(a+1)?a+=2:++a,++o.line,o.lineStart=a):92===l&&34===s.charCodeAt(a+1)&&34===s.charCodeAt(a+2)&&34===s.charCodeAt(a+3)?(c+=s.slice(A,a)+'"""',A=a+=4):++a}throw L(t,a,"Unterminated string.")}function lt(t,e,r,n){return ct(t)<<12|ct(e)<<8|ct(r)<<4|ct(n)}function ct(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function ht(t,e,r,n,i){for(var o=t.body,s=o.length,a=e+1,A=0;a!==s&&!isNaN(A=o.charCodeAt(a))&&(95===A||A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122);)++a;return new U(R.NAME,e,a,r,n,i,o.slice(e,a))}function ut(t,e){return new dt(t,e).parseDocument()}function pt(t,e){var r=new dt(t,e);r.expectToken(R.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(R.EOF),n}function ft(t,e){var r=new dt(t,e);r.expectToken(R.SOF);var n=r.parseTypeReference();return r.expectToken(R.EOF),n}var dt=function(){function t(t,e){var r=q(t)?t:new K(t);this._lexer=new $(r),this._options=e}var e=t.prototype;return e.parseName=function(){var t=this.expectToken(R.NAME);return{kind:P.NAME,value:t.value,loc:this.loc(t)}},e.parseDocument=function(){var t=this._lexer.token;return{kind:P.DOCUMENT,definitions:this.many(R.SOF,this.parseDefinition,R.EOF),loc:this.loc(t)}},e.parseDefinition=function(){if(this.peek(R.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(R.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function(){var t=this._lexer.token;if(this.peek(R.BRACE_L))return{kind:P.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var e,r=this.parseOperationType();return this.peek(R.NAME)&&(e=this.parseName()),{kind:P.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseOperationType=function(){var t=this.expectToken(R.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(t)},e.parseVariableDefinitions=function(){return this.optionalMany(R.PAREN_L,this.parseVariableDefinition,R.PAREN_R)},e.parseVariableDefinition=function(){var t=this._lexer.token;return{kind:P.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(R.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(R.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(t)}},e.parseVariable=function(){var t=this._lexer.token;return this.expectToken(R.DOLLAR),{kind:P.VARIABLE,name:this.parseName(),loc:this.loc(t)}},e.parseSelectionSet=function(){var t=this._lexer.token;return{kind:P.SELECTION_SET,selections:this.many(R.BRACE_L,this.parseSelection,R.BRACE_R),loc:this.loc(t)}},e.parseSelection=function(){return this.peek(R.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function(){var t,e,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(R.COLON)?(t=n,e=this.parseName()):e=n,{kind:P.FIELD,alias:t,name:e,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(R.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},e.parseArguments=function(t){var e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(R.PAREN_L,e,R.PAREN_R)},e.parseArgument=function(){var t=this._lexer.token,e=this.parseName();return this.expectToken(R.COLON),{kind:P.ARGUMENT,name:e,value:this.parseValueLiteral(!1),loc:this.loc(t)}},e.parseConstArgument=function(){var t=this._lexer.token;return{kind:P.ARGUMENT,name:this.parseName(),value:(this.expectToken(R.COLON),this.parseValueLiteral(!0)),loc:this.loc(t)}},e.parseFragment=function(){var t=this._lexer.token;this.expectToken(R.SPREAD);var e=this.expectOptionalKeyword("on");return!e&&this.peek(R.NAME)?{kind:P.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(t)}:{kind:P.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentDefinition=function(){var t,e=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(t=this._options)||void 0===t?void 0:t.experimentalFragmentVariables)?{kind:P.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:P.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},e.parseValueLiteral=function(t){var e=this._lexer.token;switch(e.kind){case R.BRACKET_L:return this.parseList(t);case R.BRACE_L:return this.parseObject(t);case R.INT:return this._lexer.advance(),{kind:P.INT,value:e.value,loc:this.loc(e)};case R.FLOAT:return this._lexer.advance(),{kind:P.FLOAT,value:e.value,loc:this.loc(e)};case R.STRING:case R.BLOCK_STRING:return this.parseStringLiteral();case R.NAME:switch(this._lexer.advance(),e.value){case"true":return{kind:P.BOOLEAN,value:!0,loc:this.loc(e)};case"false":return{kind:P.BOOLEAN,value:!1,loc:this.loc(e)};case"null":return{kind:P.NULL,loc:this.loc(e)};default:return{kind:P.ENUM,value:e.value,loc:this.loc(e)}}case R.DOLLAR:if(!t)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function(){var t=this._lexer.token;return this._lexer.advance(),{kind:P.STRING,value:t.value,block:t.kind===R.BLOCK_STRING,loc:this.loc(t)}},e.parseList=function(t){var e=this,r=this._lexer.token;return{kind:P.LIST,values:this.any(R.BRACKET_L,function(){return e.parseValueLiteral(t)},R.BRACKET_R),loc:this.loc(r)}},e.parseObject=function(t){var e=this,r=this._lexer.token;return{kind:P.OBJECT,fields:this.any(R.BRACE_L,function(){return e.parseObjectField(t)},R.BRACE_R),loc:this.loc(r)}},e.parseObjectField=function(t){var e=this._lexer.token,r=this.parseName();return this.expectToken(R.COLON),{kind:P.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t),loc:this.loc(e)}},e.parseDirectives=function(t){for(var e=[];this.peek(R.AT);)e.push(this.parseDirective(t));return e},e.parseDirective=function(t){var e=this._lexer.token;return this.expectToken(R.AT),{kind:P.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t),loc:this.loc(e)}},e.parseTypeReference=function(){var t,e=this._lexer.token;return this.expectOptionalToken(R.BRACKET_L)?(t=this.parseTypeReference(),this.expectToken(R.BRACKET_R),t={kind:P.LIST_TYPE,type:t,loc:this.loc(e)}):t=this.parseNamedType(),this.expectOptionalToken(R.BANG)?{kind:P.NON_NULL_TYPE,type:t,loc:this.loc(e)}:t},e.parseNamedType=function(){var t=this._lexer.token;return{kind:P.NAMED_TYPE,name:this.parseName(),loc:this.loc(t)}},e.parseTypeSystemDefinition=function(){var t=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(t.kind===R.NAME)switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(t)},e.peekDescription=function(){return this.peek(R.STRING)||this.peek(R.BLOCK_STRING)},e.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(!0),n=this.many(R.BRACE_L,this.parseOperationTypeDefinition,R.BRACE_R);return{kind:P.SCHEMA_DEFINITION,description:e,directives:r,operationTypes:n,loc:this.loc(t)}},e.parseOperationTypeDefinition=function(){var t=this._lexer.token,e=this.parseOperationType();this.expectToken(R.COLON);var r=this.parseNamedType();return{kind:P.OPERATION_TYPE_DEFINITION,operation:e,type:r,loc:this.loc(t)}},e.parseScalarTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:P.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:n,loc:this.loc(t)}},e.parseObjectTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:P.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(t)}},e.parseImplementsInterfaces=function(){var t;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(t=this._options)||void 0===t?void 0:t.allowLegacySDLImplementsInterfaces)){var e=[];this.expectOptionalToken(R.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(R.AMP)||this.peek(R.NAME));return e}return this.delimitedMany(R.AMP,this.parseNamedType)},e.parseFieldsDefinition=function(){var t;return!0===(null===(t=this._options)||void 0===t?void 0:t.allowLegacySDLEmptyFields)&&this.peek(R.BRACE_L)&&this._lexer.lookahead().kind===R.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(R.BRACE_L,this.parseFieldDefinition,R.BRACE_R)},e.parseFieldDefinition=function(){var t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(R.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:P.FIELD_DEFINITION,description:e,name:r,arguments:n,type:i,directives:o,loc:this.loc(t)}},e.parseArgumentDefs=function(){return this.optionalMany(R.PAREN_L,this.parseInputValueDef,R.PAREN_R)},e.parseInputValueDef=function(){var t=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(R.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(R.EQUALS)&&(n=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:P.INPUT_VALUE_DEFINITION,description:e,name:r,type:i,defaultValue:n,directives:o,loc:this.loc(t)}},e.parseInterfaceTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:P.INTERFACE_TYPE_DEFINITION,description:e,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(t)}},e.parseUnionTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:P.UNION_TYPE_DEFINITION,description:e,name:r,directives:n,types:i,loc:this.loc(t)}},e.parseUnionMemberTypes=function(){return this.expectOptionalToken(R.EQUALS)?this.delimitedMany(R.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:P.ENUM_TYPE_DEFINITION,description:e,name:r,directives:n,values:i,loc:this.loc(t)}},e.parseEnumValuesDefinition=function(){return this.optionalMany(R.BRACE_L,this.parseEnumValueDefinition,R.BRACE_R)},e.parseEnumValueDefinition=function(){var t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:P.ENUM_VALUE_DEFINITION,description:e,name:r,directives:n,loc:this.loc(t)}},e.parseInputObjectTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:P.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:n,fields:i,loc:this.loc(t)}},e.parseInputFieldsDefinition=function(){return this.optionalMany(R.BRACE_L,this.parseInputValueDef,R.BRACE_R)},e.parseTypeSystemExtension=function(){var t=this._lexer.lookahead();if(t.kind===R.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)},e.parseSchemaExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var e=this.parseDirectives(!0),r=this.optionalMany(R.BRACE_L,this.parseOperationTypeDefinition,R.BRACE_R);if(0===e.length&&0===r.length)throw this.unexpected();return{kind:P.SCHEMA_EXTENSION,directives:e,operationTypes:r,loc:this.loc(t)}},e.parseScalarTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var e=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:P.SCALAR_TYPE_EXTENSION,name:e,directives:r,loc:this.loc(t)}},e.parseObjectTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var e=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:P.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:n,fields:i,loc:this.loc(t)}},e.parseInterfaceTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var e=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:P.INTERFACE_TYPE_EXTENSION,name:e,interfaces:r,directives:n,fields:i,loc:this.loc(t)}},e.parseUnionTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var e=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:P.UNION_TYPE_EXTENSION,name:e,directives:r,types:n,loc:this.loc(t)}},e.parseEnumTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var e=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:P.ENUM_TYPE_EXTENSION,name:e,directives:r,values:n,loc:this.loc(t)}},e.parseInputObjectTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var e=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:P.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:n,loc:this.loc(t)}},e.parseDirectiveDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(R.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:P.DIRECTIVE_DEFINITION,description:e,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(t)}},e.parseDirectiveLocations=function(){return this.delimitedMany(R.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function(){var t=this._lexer.token,e=this.parseName();if(void 0!==W[e.value])return e;throw this.unexpected(t)},e.loc=function(t){var e;if(!0!==(null===(e=this._options)||void 0===e?void 0:e.noLocation))return new O(t,this._lexer.lastToken,this._lexer.source)},e.peek=function(t){return this._lexer.token.kind===t},e.expectToken=function(t){var e=this._lexer.token;if(e.kind===t)return this._lexer.advance(),e;throw L(this._lexer.source,e.start,"Expected ".concat(mt(t),", found ").concat(gt(e),"."))},e.expectOptionalToken=function(t){var e=this._lexer.token;if(e.kind===t)return this._lexer.advance(),e},e.expectKeyword=function(t){var e=this._lexer.token;if(e.kind!==R.NAME||e.value!==t)throw L(this._lexer.source,e.start,'Expected "'.concat(t,'", found ').concat(gt(e),"."));this._lexer.advance()},e.expectOptionalKeyword=function(t){var e=this._lexer.token;return e.kind===R.NAME&&e.value===t&&(this._lexer.advance(),!0)},e.unexpected=function(t){var e=null!=t?t:this._lexer.token;return L(this._lexer.source,e.start,"Unexpected ".concat(gt(e),"."))},e.any=function(t,e,r){this.expectToken(t);for(var n=[];!this.expectOptionalToken(r);)n.push(e.call(this));return n},e.optionalMany=function(t,e,r){if(this.expectOptionalToken(t)){var n=[];do{n.push(e.call(this))}while(!this.expectOptionalToken(r));return n}return[]},e.many=function(t,e,r){this.expectToken(t);var n=[];do{n.push(e.call(this))}while(!this.expectOptionalToken(r));return n},e.delimitedMany=function(t,e){this.expectOptionalToken(t);var r=[];do{r.push(e.call(this))}while(this.expectOptionalToken(t));return r},t}();function gt(t){var e=t.value;return mt(t.kind)+(null!=e?' "'.concat(e,'"'):"")}function mt(t){return tt(t)?'"'.concat(t,'"'):t}var yt={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},vt=Object.freeze({});function bt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yt,n=void 0,i=Array.isArray(t),o=[t],s=-1,a=[],A=void 0,l=void 0,c=void 0,h=[],u=[],p=t;do{var f=++s===o.length,d=f&&0!==a.length;if(f){if(l=0===u.length?void 0:h[h.length-1],A=c,c=u.pop(),d){if(i)A=A.slice();else{for(var g={},m=0,y=Object.keys(A);m<y.length;m++){var v=y[m];g[v]=A[v]}A=g}for(var b=0,w=0;w<a.length;w++){var x=a[w][0],B=a[w][1];i&&(x-=b),i&&null===B?(A.splice(x,1),b++):A[x]=B}}s=n.index,o=n.keys,a=n.edits,i=n.inArray,n=n.prev}else{if(l=c?i?s:o[s]:void 0,null==(A=c?c[l]:p))continue;c&&h.push(l)}var C,_=void 0;if(!Array.isArray(A)){if(!Q(A))throw new Error("Invalid AST Node: ".concat(H(A),"."));var E=xt(e,A.kind,f);if(E){if((_=E.call(e,A,l,c,h,u))===vt)break;if(!1===_){if(!f){h.pop();continue}}else if(void 0!==_&&(a.push([l,_]),!f)){if(!Q(_)){h.pop();continue}A=_}}}void 0===_&&d&&a.push([l,A]),f?h.pop():(n={inArray:i,index:s,keys:o,edits:a,prev:n},o=(i=Array.isArray(A))?A:null!==(C=r[A.kind])&&void 0!==C?C:[],s=-1,a=[],c&&u.push(c),c=A)}while(void 0!==n);return 0!==a.length&&(p=a[a.length-1][1]),p}function wt(t){var e=new Array(t.length);return{enter:function(r){for(var n=0;n<t.length;n++)if(null==e[n]){var i=xt(t[n],r.kind,!1);if(i){var o=i.apply(t[n],arguments);if(!1===o)e[n]=r;else if(o===vt)e[n]=vt;else if(void 0!==o)return o}}},leave:function(r){for(var n=0;n<t.length;n++)if(null==e[n]){var i=xt(t[n],r.kind,!0);if(i){var o=i.apply(t[n],arguments);if(o===vt)e[n]=vt;else if(void 0!==o&&!1!==o)return o}}else e[n]===r&&(e[n]=null)}}}function xt(t,e,r){var n=t[e];if(n){if(!r&&"function"==typeof n)return n;var i=r?n.leave:n.enter;if("function"==typeof i)return i}else{var o=r?t.leave:t.enter;if(o){if("function"==typeof o)return o;var s=o[e];if("function"==typeof s)return s}}}const Bt=Array.prototype.find?function(t,e){return Array.prototype.find.call(t,e)}:function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(e(n))return n}},Ct=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})};function _t(t,e,r){var n,i=t instanceof Error?t:new Error("Unexpected error value: "+H(t));return Array.isArray(i.path)?i:new I(i.message,null!==(n=i.nodes)&&void 0!==n?n:e,i.source,i.positions,r,i)}var Et=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function St(t){var e=It(t);if(e)throw e;return t}function It(t){return"string"==typeof t||s(0,"Expected name to be a string."),t.length>1&&"_"===t[0]&&"_"===t[1]?new I('Name "'.concat(t,'" must not begin with "__", which is reserved by GraphQL introspection.')):Et.test(t)?void 0:new I('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(t,'" does not.'))}const Ft=Object.entries||function(t){return Object.keys(t).map(function(e){return[e,t[e]]})};function Tt(t,e){return t.reduce(function(t,r){return t[e(r)]=r,t},Object.create(null))}function kt(t,e){for(var r=Object.create(null),n=0,i=Ft(t);n<i.length;n++){var o=i[n],s=o[0],a=o[1];r[s]=e(a,s)}return r}function Lt(t){if(null===Object.getPrototypeOf(t))return t;for(var e=Object.create(null),r=0,n=Ft(t);r<n.length;r++){var i=n[r],o=i[0],s=i[1];e[o]=s}return e}function Pt(t,e,r){return t.reduce(function(t,n){return t[e(n)]=r(n),t},Object.create(null))}function Mt(t,e){var r="string"==typeof t?[t,e]:[void 0,t],n=r[0],i=" Did you mean ";n&&(i+=n+" ");var o=r[1].map(function(t){return'"'.concat(t,'"')});switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}var s=o.slice(0,5),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function Dt(t){return t}function Nt(t,e){for(var r=0,n=0;r<t.length&&n<e.length;){var i=t.charCodeAt(r),o=e.charCodeAt(n);if(Ut(i)&&Ut(o)){var s=0;do{++r,s=10*s+i-Ot,i=t.charCodeAt(r)}while(Ut(i)&&s>0);var a=0;do{++n,a=10*a+o-Ot,o=e.charCodeAt(n)}while(Ut(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++r,++n}}return t.length-e.length}var Ot=48;function Ut(t){return!isNaN(t)&&Ot<=t&&t<=57}function Qt(t,e){for(var r=Object.create(null),n=new Rt(t),i=Math.floor(.4*t.length)+1,o=0;o<e.length;o++){var s=e[o],a=n.measure(s,i);void 0!==a&&(r[s]=a)}return Object.keys(r).sort(function(t,e){var n=r[t]-r[e];return 0!==n?n:Nt(t,e)})}var Rt=function(){function t(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=jt(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}return t.prototype.measure=function(t,e){if(this._input===t)return 0;var r=t.toLowerCase();if(this._inputLowerCase===r)return 1;var n=jt(r),i=this._inputArray;if(n.length<i.length){var o=n;n=i,i=o}var s=n.length,a=i.length;if(!(s-a>e)){for(var A=this._rows,l=0;l<=a;l++)A[0][l]=l;for(var c=1;c<=s;c++){for(var h=A[(c-1)%3],u=A[c%3],p=u[0]=c,f=1;f<=a;f++){var d=n[c-1]===i[f-1]?0:1,g=Math.min(h[f]+1,u[f-1]+1,h[f-1]+d);if(c>1&&f>1&&n[c-1]===i[f-2]&&n[c-2]===i[f-1]){var m=A[(c-2)%3][f-2];g=Math.min(g,m+1)}g<p&&(p=g),u[f]=g}if(p>e)return}var y=A[s%3][a];return y<=e?y:void 0}},t}();function jt(t){for(var e=t.length,r=new Array(e),n=0;n<e;++n)r[n]=t.charCodeAt(n);return r}function Ht(t){return bt(t,{leave:Vt})}var Vt={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return Gt(t.definitions,"\n\n")+"\n"},OperationDefinition:function(t){var e=t.operation,r=t.name,n=qt("(",Gt(t.variableDefinitions,", "),")"),i=Gt(t.directives," "),o=t.selectionSet;return r||i||n||"query"!==e?Gt([e,Gt([r,n]),i,o]," "):o},VariableDefinition:function(t){var e=t.variable,r=t.type,n=t.defaultValue,i=t.directives;return e+": "+r+qt(" = ",n)+qt(" ",Gt(i," "))},SelectionSet:function(t){return Kt(t.selections)},Field:function(t){var e=t.alias,r=t.name,n=t.arguments,i=t.directives,o=t.selectionSet,s=qt("",e,": ")+r,a=s+qt("(",Gt(n,", "),")");return a.length>80&&(a=s+qt("(\n",Wt(Gt(n,"\n")),"\n)")),Gt([a,Gt(i," "),o]," ")},Argument:function(t){return t.name+": "+t.value},FragmentSpread:function(t){return"..."+t.name+qt(" ",Gt(t.directives," "))},InlineFragment:function(t){var e=t.typeCondition,r=t.directives,n=t.selectionSet;return Gt(["...",qt("on ",e),Gt(r," "),n]," ")},FragmentDefinition:function(t){var e=t.name,r=t.typeCondition,n=t.variableDefinitions,i=t.directives,o=t.selectionSet;return"fragment ".concat(e).concat(qt("(",Gt(n,", "),")")," ")+"on ".concat(r," ").concat(qt("",Gt(i," ")," "))+o},IntValue:function(t){return t.value},FloatValue:function(t){return t.value},StringValue:function(t,e){var r=t.value;return t.block?Z(r,"description"===e?"":"  "):JSON.stringify(r)},BooleanValue:function(t){return t.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){return t.value},ListValue:function(t){return"["+Gt(t.values,", ")+"]"},ObjectValue:function(t){return"{"+Gt(t.fields,", ")+"}"},ObjectField:function(t){return t.name+": "+t.value},Directive:function(t){return"@"+t.name+qt("(",Gt(t.arguments,", "),")")},NamedType:function(t){return t.name},ListType:function(t){return"["+t.type+"]"},NonNullType:function(t){return t.type+"!"},SchemaDefinition:zt(function(t){var e=t.directives,r=t.operationTypes;return Gt(["schema",Gt(e," "),Kt(r)]," ")}),OperationTypeDefinition:function(t){return t.operation+": "+t.type},ScalarTypeDefinition:zt(function(t){return Gt(["scalar",t.name,Gt(t.directives," ")]," ")}),ObjectTypeDefinition:zt(function(t){var e=t.name,r=t.interfaces,n=t.directives,i=t.fields;return Gt(["type",e,qt("implements ",Gt(r," & ")),Gt(n," "),Kt(i)]," ")}),FieldDefinition:zt(function(t){var e=t.name,r=t.arguments,n=t.type,i=t.directives;return e+(Xt(r)?qt("(\n",Wt(Gt(r,"\n")),"\n)"):qt("(",Gt(r,", "),")"))+": "+n+qt(" ",Gt(i," "))}),InputValueDefinition:zt(function(t){var e=t.name,r=t.type,n=t.defaultValue,i=t.directives;return Gt([e+": "+r,qt("= ",n),Gt(i," ")]," ")}),InterfaceTypeDefinition:zt(function(t){var e=t.name,r=t.interfaces,n=t.directives,i=t.fields;return Gt(["interface",e,qt("implements ",Gt(r," & ")),Gt(n," "),Kt(i)]," ")}),UnionTypeDefinition:zt(function(t){var e=t.name,r=t.directives,n=t.types;return Gt(["union",e,Gt(r," "),n&&0!==n.length?"= "+Gt(n," | "):""]," ")}),EnumTypeDefinition:zt(function(t){var e=t.name,r=t.directives,n=t.values;return Gt(["enum",e,Gt(r," "),Kt(n)]," ")}),EnumValueDefinition:zt(function(t){return Gt([t.name,Gt(t.directives," ")]," ")}),InputObjectTypeDefinition:zt(function(t){var e=t.name,r=t.directives,n=t.fields;return Gt(["input",e,Gt(r," "),Kt(n)]," ")}),DirectiveDefinition:zt(function(t){var e=t.name,r=t.arguments,n=t.repeatable,i=t.locations;return"directive @"+e+(Xt(r)?qt("(\n",Wt(Gt(r,"\n")),"\n)"):qt("(",Gt(r,", "),")"))+(n?" repeatable":"")+" on "+Gt(i," | ")}),SchemaExtension:function(t){var e=t.directives,r=t.operationTypes;return Gt(["extend schema",Gt(e," "),Kt(r)]," ")},ScalarTypeExtension:function(t){return Gt(["extend scalar",t.name,Gt(t.directives," ")]," ")},ObjectTypeExtension:function(t){var e=t.name,r=t.interfaces,n=t.directives,i=t.fields;return Gt(["extend type",e,qt("implements ",Gt(r," & ")),Gt(n," "),Kt(i)]," ")},InterfaceTypeExtension:function(t){var e=t.name,r=t.interfaces,n=t.directives,i=t.fields;return Gt(["extend interface",e,qt("implements ",Gt(r," & ")),Gt(n," "),Kt(i)]," ")},UnionTypeExtension:function(t){var e=t.name,r=t.directives,n=t.types;return Gt(["extend union",e,Gt(r," "),n&&0!==n.length?"= "+Gt(n," | "):""]," ")},EnumTypeExtension:function(t){var e=t.name,r=t.directives,n=t.values;return Gt(["extend enum",e,Gt(r," "),Kt(n)]," ")},InputObjectTypeExtension:function(t){var e=t.name,r=t.directives,n=t.fields;return Gt(["extend input",e,Gt(r," "),Kt(n)]," ")}};function zt(t){return function(e){return Gt([e.description,t(e)],"\n")}}function Gt(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(e=null==t?void 0:t.filter(function(t){return t}).join(r))&&void 0!==e?e:""}function Kt(t){return qt("{\n",Wt(Gt(t,"\n")),"\n}")}function qt(t,e){return null!=e&&""!==e?t+e+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function Wt(t){return qt("  ",t.replace(/\n/g,"\n  "))}function Yt(t){return-1!==t.indexOf("\n")}function Xt(t){return null!=t&&t.some(Yt)}function Jt(t,e){switch(t.kind){case P.NULL:return null;case P.INT:return parseInt(t.value,10);case P.FLOAT:return parseFloat(t.value);case P.STRING:case P.ENUM:case P.BOOLEAN:return t.value;case P.LIST:return t.values.map(function(t){return Jt(t,e)});case P.OBJECT:return Pt(t.fields,function(t){return t.name.value},function(t){return Jt(t.value,e)});case P.VARIABLE:return null==e?void 0:e[t.name.value]}M(0,"Unexpected value node: "+H(t))}function Zt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function $t(t,e,r){return e&&Zt(t.prototype,e),r&&Zt(t,r),t}function te(t){return re(t)||ie(t)||se(t)||Ae(t)||ce(t)||ue(t)||fe(t)||ge(t)}function ee(t){if(!te(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL type."));return t}function re(t){return z(t,Re)}function ne(t){if(!re(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL Scalar type."));return t}function ie(t){return z(t,je)}function oe(t){if(!ie(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL Object type."));return t}function se(t){return z(t,We)}function ae(t){if(!se(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL Interface type."));return t}function Ae(t){return z(t,Ye)}function le(t){if(!Ae(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL Union type."));return t}function ce(t){return z(t,Je)}function he(t){if(!ce(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL Enum type."));return t}function ue(t){return z(t,$e)}function pe(t){if(!ue(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL Input Object type."));return t}function fe(t){return z(t,Ie)}function de(t){if(!fe(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL List type."));return t}function ge(t){return z(t,Fe)}function me(t){if(!ge(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL Non-Null type."));return t}function ye(t){return re(t)||ce(t)||ue(t)||Te(t)&&ye(t.ofType)}function ve(t){if(!ye(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL input type."));return t}function be(t){return re(t)||ie(t)||se(t)||Ae(t)||ce(t)||Te(t)&&be(t.ofType)}function we(t){if(!be(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL output type."));return t}function xe(t){return re(t)||ce(t)}function Be(t){if(!xe(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL leaf type."));return t}function Ce(t){return ie(t)||se(t)||Ae(t)}function _e(t){if(!Ce(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL composite type."));return t}function Ee(t){return se(t)||Ae(t)}function Se(t){if(!Ee(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL abstract type."));return t}function Ie(t){if(!(this instanceof Ie))return new Ie(t);this.ofType=ee(t)}function Fe(t){if(!(this instanceof Fe))return new Fe(t);this.ofType=Pe(t)}function Te(t){return fe(t)||ge(t)}function ke(t){if(!Te(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL wrapping type."));return t}function Le(t){return te(t)&&!ge(t)}function Pe(t){if(!Le(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL nullable type."));return t}function Me(t){if(t)return ge(t)?t.ofType:t}function De(t){return re(t)||ie(t)||se(t)||Ae(t)||ce(t)||ue(t)}function Ne(t){if(!De(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL named type."));return t}function Oe(t){if(t){for(var e=t;Te(e);)e=e.ofType;return e}}function Ue(t){return"function"==typeof t?t():t}function Qe(t){return t&&t.length>0?t:void 0}Ie.prototype.toString=function(){return"["+String(this.ofType)+"]"},Ie.prototype.toJSON=function(){return this.toString()},Object.defineProperty(Ie.prototype,h,{get:function(){return"GraphQLList"}}),N(Ie),Fe.prototype.toString=function(){return String(this.ofType)+"!"},Fe.prototype.toJSON=function(){return this.toString()},Object.defineProperty(Fe.prototype,h,{get:function(){return"GraphQLNonNull"}}),N(Fe);var Re=function(){function t(t){var e,r,n,i=null!==(e=t.parseValue)&&void 0!==e?e:Dt;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=null!==(r=t.serialize)&&void 0!==r?r:Dt,this.parseValue=i,this.parseLiteral=null!==(n=t.parseLiteral)&&void 0!==n?n:function(t,e){return i(Jt(t,e))},this.extensions=t.extensions&&Lt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Qe(t.extensionASTNodes),"string"==typeof t.name||s(0,"Must provide name."),null==t.specifiedByUrl||"string"==typeof t.specifiedByUrl||s(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(H(t.specifiedByUrl),".")),null==t.serialize||"function"==typeof t.serialize||s(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),t.parseLiteral&&("function"==typeof t.parseValue&&"function"==typeof t.parseLiteral||s(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var e=t.prototype;return e.toConfig=function(){var t;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(t=this.extensionASTNodes)&&void 0!==t?t:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},$t(t,[{key:h,get:function(){return"GraphQLScalarType"}}]),t}();N(Re);var je=function(){function t(t){this.name=t.name,this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=t.extensions&&Lt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Qe(t.extensionASTNodes),this._fields=Ve.bind(void 0,t),this._interfaces=He.bind(void 0,t),"string"==typeof t.name||s(0,"Must provide name."),null==t.isTypeOf||"function"==typeof t.isTypeOf||s(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(H(t.isTypeOf),"."))}var e=t.prototype;return e.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},e.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},e.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ge(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},$t(t,[{key:h,get:function(){return"GraphQLObjectType"}}]),t}();function He(t){var e,r=null!==(e=Ue(t.interfaces))&&void 0!==e?e:[];return Array.isArray(r)||s(0,"".concat(t.name," interfaces must be an Array or a function which returns an Array.")),r}function Ve(t){var e=Ue(t.fields);return ze(e)||s(0,"".concat(t.name," fields must be an object with field names as keys or a function which returns such an object.")),kt(e,function(e,r){var n;ze(e)||s(0,"".concat(t.name,".").concat(r," field config must be an object.")),!("isDeprecated"in e)||s(0,"".concat(t.name,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),null==e.resolve||"function"==typeof e.resolve||s(0,"".concat(t.name,".").concat(r," field resolver must be a function if ")+"provided, but got: ".concat(H(e.resolve),"."));var i=null!==(n=e.args)&&void 0!==n?n:{};ze(i)||s(0,"".concat(t.name,".").concat(r," args must be an object with argument names as keys."));var o=Ft(i).map(function(t){var e=t[0],r=t[1];return{name:e,description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions&&Lt(r.extensions),astNode:r.astNode}});return{name:r,description:e.description,type:e.type,args:o,resolve:e.resolve,subscribe:e.subscribe,isDeprecated:null!=e.deprecationReason,deprecationReason:e.deprecationReason,extensions:e.extensions&&Lt(e.extensions),astNode:e.astNode}})}function ze(t){return A(t)&&!Array.isArray(t)}function Ge(t){return kt(t,function(t){return{description:t.description,type:t.type,args:Ke(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}})}function Ke(t){return Pt(t,function(t){return t.name},function(t){return{description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}})}function qe(t){return ge(t.type)&&void 0===t.defaultValue}N(je);var We=function(){function t(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&Lt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Qe(t.extensionASTNodes),this._fields=Ve.bind(void 0,t),this._interfaces=He.bind(void 0,t),"string"==typeof t.name||s(0,"Must provide name."),null==t.resolveType||"function"==typeof t.resolveType||s(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(H(t.resolveType),"."))}var e=t.prototype;return e.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},e.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},e.toConfig=function(){var t;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ge(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(t=this.extensionASTNodes)&&void 0!==t?t:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},$t(t,[{key:h,get:function(){return"GraphQLInterfaceType"}}]),t}();N(We);var Ye=function(){function t(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&Lt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Qe(t.extensionASTNodes),this._types=Xe.bind(void 0,t),"string"==typeof t.name||s(0,"Must provide name."),null==t.resolveType||"function"==typeof t.resolveType||s(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(H(t.resolveType),"."))}var e=t.prototype;return e.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},e.toConfig=function(){var t;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(t=this.extensionASTNodes)&&void 0!==t?t:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},$t(t,[{key:h,get:function(){return"GraphQLUnionType"}}]),t}();function Xe(t){var e=Ue(t.types);return Array.isArray(e)||s(0,"Must provide Array of types or a function which returns such an array for Union ".concat(t.name,".")),e}N(Ye);var Je=function(){function t(t){var e,r;this.name=t.name,this.description=t.description,this.extensions=t.extensions&&Lt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Qe(t.extensionASTNodes),this._values=(e=this.name,ze(r=t.values)||s(0,"".concat(e," values must be an object with value names as keys.")),Ft(r).map(function(t){var r=t[0],n=t[1];return ze(n)||s(0,"".concat(e,".").concat(r,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(H(n),".")),!("isDeprecated"in n)||s(0,"".concat(e,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),{name:r,description:n.description,value:void 0!==n.value?n.value:r,isDeprecated:null!=n.deprecationReason,deprecationReason:n.deprecationReason,extensions:n.extensions&&Lt(n.extensions),astNode:n.astNode}})),this._valueLookup=new Map(this._values.map(function(t){return[t.value,t]})),this._nameLookup=Tt(this._values,function(t){return t.name}),"string"==typeof t.name||s(0,"Must provide name.")}var e=t.prototype;return e.getValues=function(){return this._values},e.getValue=function(t){return this._nameLookup[t]},e.serialize=function(t){var e=this._valueLookup.get(t);if(void 0===e)throw new I('Enum "'.concat(this.name,'" cannot represent value: ').concat(H(t)));return e.name},e.parseValue=function(t){if("string"!=typeof t){var e=H(t);throw new I('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(e,".")+Ze(this,e))}var r=this.getValue(t);if(null==r)throw new I('Value "'.concat(t,'" does not exist in "').concat(this.name,'" enum.')+Ze(this,t));return r.value},e.parseLiteral=function(t,e){if(t.kind!==P.ENUM){var r=Ht(t);throw new I('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(r,".")+Ze(this,r),t)}var n=this.getValue(t.value);if(null==n){var i=Ht(t);throw new I('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Ze(this,i),t)}return n.value},e.toConfig=function(){var t,e=Pt(this.getValues(),function(t){return t.name},function(t){return{description:t.description,value:t.value,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}});return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(t=this.extensionASTNodes)&&void 0!==t?t:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},$t(t,[{key:h,get:function(){return"GraphQLEnumType"}}]),t}();function Ze(t,e){return Mt("the enum value",Qt(e,t.getValues().map(function(t){return t.name})))}N(Je);var $e=function(){function t(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&Lt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Qe(t.extensionASTNodes),this._fields=tr.bind(void 0,t),"string"==typeof t.name||s(0,"Must provide name.")}var e=t.prototype;return e.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},e.toConfig=function(){var t,e=kt(this.getFields(),function(t){return{description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}});return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(t=this.extensionASTNodes)&&void 0!==t?t:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},$t(t,[{key:h,get:function(){return"GraphQLInputObjectType"}}]),t}();function tr(t){var e=Ue(t.fields);return ze(e)||s(0,"".concat(t.name," fields must be an object with field names as keys or a function which returns such an object.")),kt(e,function(e,r){return!("resolve"in e)||s(0,"".concat(t.name,".").concat(r," field has a resolve property, but Input Types cannot define resolvers.")),{name:r,description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions&&Lt(e.extensions),astNode:e.astNode}})}function er(t){return ge(t.type)&&void 0===t.defaultValue}function rr(t,e){return t===e||(ge(t)&&ge(e)||!(!fe(t)||!fe(e)))&&rr(t.ofType,e.ofType)}function nr(t,e,r){return e===r||(ge(r)?!!ge(e)&&nr(t,e.ofType,r.ofType):ge(e)?nr(t,e.ofType,r):fe(r)?!!fe(e)&&nr(t,e.ofType,r.ofType):!fe(e)&&Ee(r)&&(se(e)||ie(e))&&t.isSubType(r,e))}function ir(t,e,r){return e===r||(Ee(e)?Ee(r)?t.getPossibleTypes(e).some(function(e){return t.isSubType(r,e)}):t.isSubType(e,r):!!Ee(r)&&t.isSubType(r,e))}N($e);const or=Array.from||function(t,e,r){if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n=t[l];if("function"==typeof n){for(var i,o=n.call(t),s=[],a=0;!(i=o.next()).done;++a)if(s.push(e.call(r,i.value,a)),a>9999999)throw new TypeError("Near-infinite iteration.");return s}var A=t.length;if("number"==typeof A&&A>=0&&A%1==0){for(var c=[],h=0;h<A;++h)Object.prototype.hasOwnProperty.call(t,h)&&c.push(e.call(r,t[h],h));return c}return[]},sr=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)};function ar(t){return ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ar(t)}function Ar(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};if(null==t||"object"!==ar(t))return null;if(Array.isArray(t))return t.map(e);var r=t[l];if("function"==typeof r){for(var n,i=r.call(t),o=[],s=0;!(n=i.next()).done;++s)o.push(e(n.value,s));return o}var a=t.length;if("number"==typeof a&&a>=0&&a%1==0){for(var A=[],c=0;c<a;++c){if(!Object.prototype.hasOwnProperty.call(t,c))return null;A.push(e(t[String(c)],c))}return A}return null}const lr=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t};var cr=2147483647,hr=-2147483648,ur=new Re({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(t){var e=fr(t);if("boolean"==typeof e)return e?1:0;var r=e;if("string"==typeof e&&""!==e&&(r=Number(e)),!lr(r))throw new I("Int cannot represent non-integer value: ".concat(H(e)));if(r>cr||r<hr)throw new I("Int cannot represent non 32-bit signed integer value: "+H(e));return r},parseValue:function(t){if(!lr(t))throw new I("Int cannot represent non-integer value: ".concat(H(t)));if(t>cr||t<hr)throw new I("Int cannot represent non 32-bit signed integer value: ".concat(t));return t},parseLiteral:function(t){if(t.kind!==P.INT)throw new I("Int cannot represent non-integer value: ".concat(Ht(t)),t);var e=parseInt(t.value,10);if(e>cr||e<hr)throw new I("Int cannot represent non 32-bit signed integer value: ".concat(t.value),t);return e}}),pr=new Re({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(t){var e=fr(t);if("boolean"==typeof e)return e?1:0;var r=e;if("string"==typeof e&&""!==e&&(r=Number(e)),!sr(r))throw new I("Float cannot represent non numeric value: ".concat(H(e)));return r},parseValue:function(t){if(!sr(t))throw new I("Float cannot represent non numeric value: ".concat(H(t)));return t},parseLiteral:function(t){if(t.kind!==P.FLOAT&&t.kind!==P.INT)throw new I("Float cannot represent non numeric value: ".concat(Ht(t)),t);return parseFloat(t.value)}});function fr(t){if(A(t)){if("function"==typeof t.valueOf){var e=t.valueOf();if(!A(e))return e}if("function"==typeof t.toJSON)return t.toJSON()}return t}var dr=new Re({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(t){var e=fr(t);if("string"==typeof e)return e;if("boolean"==typeof e)return e?"true":"false";if(sr(e))return e.toString();throw new I("String cannot represent value: ".concat(H(t)))},parseValue:function(t){if("string"!=typeof t)throw new I("String cannot represent a non string value: ".concat(H(t)));return t},parseLiteral:function(t){if(t.kind!==P.STRING)throw new I("String cannot represent a non string value: ".concat(Ht(t)),t);return t.value}}),gr=new Re({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(t){var e=fr(t);if("boolean"==typeof e)return e;if(sr(e))return 0!==e;throw new I("Boolean cannot represent a non boolean value: ".concat(H(e)))},parseValue:function(t){if("boolean"!=typeof t)throw new I("Boolean cannot represent a non boolean value: ".concat(H(t)));return t},parseLiteral:function(t){if(t.kind!==P.BOOLEAN)throw new I("Boolean cannot represent a non boolean value: ".concat(Ht(t)),t);return t.value}}),mr=new Re({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(t){var e=fr(t);if("string"==typeof e)return e;if(lr(e))return String(e);throw new I("ID cannot represent value: ".concat(H(t)))},parseValue:function(t){if("string"==typeof t)return t;if(lr(t))return t.toString();throw new I("ID cannot represent value: ".concat(H(t)))},parseLiteral:function(t){if(t.kind!==P.STRING&&t.kind!==P.INT)throw new I("ID cannot represent a non-string and non-integer value: "+Ht(t),t);return t.value}}),yr=Object.freeze([dr,ur,pr,gr,mr]);function vr(t){return yr.some(function(e){var r=e.name;return t.name===r})}function br(t,e){if(ge(e)){var r=br(t,e.ofType);return(null==r?void 0:r.kind)===P.NULL?null:r}if(null===t)return{kind:P.NULL};if(void 0===t)return null;if(fe(e)){var n=e.ofType,i=Ar(t);if(null!=i){for(var o=[],s=0;s<i.length;s++){var a=br(i[s],n);null!=a&&o.push(a)}return{kind:P.LIST,values:o}}return br(t,n)}if(ue(e)){if(!A(t))return null;for(var l=[],c=0,h=Ct(e.getFields());c<h.length;c++){var u=h[c],p=br(t[u.name],u.type);p&&l.push({kind:P.OBJECT_FIELD,name:{kind:P.NAME,value:u.name},value:p})}return{kind:P.OBJECT,fields:l}}if(xe(e)){var f=e.serialize(t);if(null==f)return null;if("boolean"==typeof f)return{kind:P.BOOLEAN,value:f};if("number"==typeof f&&sr(f)){var d=String(f);return wr.test(d)?{kind:P.INT,value:d}:{kind:P.FLOAT,value:d}}if("string"==typeof f)return ce(e)?{kind:P.ENUM,value:f}:e===mr&&wr.test(f)?{kind:P.INT,value:f}:{kind:P.STRING,value:f};throw new TypeError("Cannot convert value to AST: ".concat(H(f),"."))}M(0,"Unexpected input type: "+H(e))}var wr=/^-?(?:0|[1-9][0-9]*)$/,xr=new je({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:dr,resolve:function(t){return t.description}},types:{description:"A list of all types supported by this server.",type:new Fe(new Ie(new Fe(_r))),resolve:function(t){return Ct(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Fe(_r),resolve:function(t){return t.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:_r,resolve:function(t){return t.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:_r,resolve:function(t){return t.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new Fe(new Ie(new Fe(Br))),resolve:function(t){return t.getDirectives()}}}}}),Br=new je({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new Fe(dr),resolve:function(t){return t.name}},description:{type:dr,resolve:function(t){return t.description}},isRepeatable:{type:new Fe(gr),resolve:function(t){return t.isRepeatable}},locations:{type:new Fe(new Ie(new Fe(Cr))),resolve:function(t){return t.locations}},args:{type:new Fe(new Ie(new Fe(Sr))),args:{includeDeprecated:{type:gr,defaultValue:!1}},resolve:function(t,e){return e.includeDeprecated?t.args:t.args.filter(function(t){return null==t.deprecationReason})}}}}}),Cr=new Je({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:W.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:W.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:W.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:W.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:W.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:W.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:W.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:W.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:W.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:W.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:W.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:W.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:W.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:W.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:W.UNION,description:"Location adjacent to a union definition."},ENUM:{value:W.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:W.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:W.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:W.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),_r=new je({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new Fe(Tr),resolve:function(t){return re(t)?Fr.SCALAR:ie(t)?Fr.OBJECT:se(t)?Fr.INTERFACE:Ae(t)?Fr.UNION:ce(t)?Fr.ENUM:ue(t)?Fr.INPUT_OBJECT:fe(t)?Fr.LIST:ge(t)?Fr.NON_NULL:void M(0,'Unexpected type: "'.concat(H(t),'".'))}},name:{type:dr,resolve:function(t){return void 0!==t.name?t.name:void 0}},description:{type:dr,resolve:function(t){return void 0!==t.description?t.description:void 0}},specifiedByUrl:{type:dr,resolve:function(t){return void 0!==t.specifiedByUrl?t.specifiedByUrl:void 0}},fields:{type:new Ie(new Fe(Er)),args:{includeDeprecated:{type:gr,defaultValue:!1}},resolve:function(t,e){var r=e.includeDeprecated;if(ie(t)||se(t)){var n=Ct(t.getFields());return r?n:n.filter(function(t){return null==t.deprecationReason})}}},interfaces:{type:new Ie(new Fe(_r)),resolve:function(t){if(ie(t)||se(t))return t.getInterfaces()}},possibleTypes:{type:new Ie(new Fe(_r)),resolve:function(t,e,r,n){var i=n.schema;if(Ee(t))return i.getPossibleTypes(t)}},enumValues:{type:new Ie(new Fe(Ir)),args:{includeDeprecated:{type:gr,defaultValue:!1}},resolve:function(t,e){var r=e.includeDeprecated;if(ce(t)){var n=t.getValues();return r?n:n.filter(function(t){return null==t.deprecationReason})}}},inputFields:{type:new Ie(new Fe(Sr)),args:{includeDeprecated:{type:gr,defaultValue:!1}},resolve:function(t,e){var r=e.includeDeprecated;if(ue(t)){var n=Ct(t.getFields());return r?n:n.filter(function(t){return null==t.deprecationReason})}}},ofType:{type:_r,resolve:function(t){return void 0!==t.ofType?t.ofType:void 0}}}}}),Er=new je({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new Fe(dr),resolve:function(t){return t.name}},description:{type:dr,resolve:function(t){return t.description}},args:{type:new Fe(new Ie(new Fe(Sr))),args:{includeDeprecated:{type:gr,defaultValue:!1}},resolve:function(t,e){return e.includeDeprecated?t.args:t.args.filter(function(t){return null==t.deprecationReason})}},type:{type:new Fe(_r),resolve:function(t){return t.type}},isDeprecated:{type:new Fe(gr),resolve:function(t){return null!=t.deprecationReason}},deprecationReason:{type:dr,resolve:function(t){return t.deprecationReason}}}}}),Sr=new je({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new Fe(dr),resolve:function(t){return t.name}},description:{type:dr,resolve:function(t){return t.description}},type:{type:new Fe(_r),resolve:function(t){return t.type}},defaultValue:{type:dr,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(t){var e=t.type,r=br(t.defaultValue,e);return r?Ht(r):null}},isDeprecated:{type:new Fe(gr),resolve:function(t){return null!=t.deprecationReason}},deprecationReason:{type:dr,resolve:function(t){return t.deprecationReason}}}}}),Ir=new je({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new Fe(dr),resolve:function(t){return t.name}},description:{type:dr,resolve:function(t){return t.description}},isDeprecated:{type:new Fe(gr),resolve:function(t){return null!=t.deprecationReason}},deprecationReason:{type:dr,resolve:function(t){return t.deprecationReason}}}}}),Fr=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),Tr=new Je({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Fr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Fr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Fr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Fr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Fr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Fr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Fr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Fr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),kr={name:"__schema",type:new Fe(xr),description:"Access the current type schema of this server.",args:[],resolve:function(t,e,r,n){return n.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Lr={name:"__type",type:_r,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Fe(dr),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(t,e,r,n){var i=e.name;return n.schema.getType(i)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Pr={name:"__typename",type:new Fe(dr),description:"The name of the current Object type at runtime.",args:[],resolve:function(t,e,r,n){return n.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Mr=Object.freeze([xr,Br,Cr,_r,Er,Sr,Ir,Tr]);function Dr(t){return Mr.some(function(e){var r=e.name;return t.name===r})}function Nr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Or(t){return z(t,Qr)}function Ur(t){if(!Or(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL directive."));return t}var Qr=function(){function t(t){var e,r;this.name=t.name,this.description=t.description,this.locations=t.locations,this.isRepeatable=null!==(e=t.isRepeatable)&&void 0!==e&&e,this.extensions=t.extensions&&Lt(t.extensions),this.astNode=t.astNode,t.name||s(0,"Directive must be named."),Array.isArray(t.locations)||s(0,"@".concat(t.name," locations must be an Array."));var n=null!==(r=t.args)&&void 0!==r?r:{};A(n)&&!Array.isArray(n)||s(0,"@".concat(t.name," args must be an object with argument names as keys.")),this.args=Ft(n).map(function(t){var e=t[0],r=t[1];return{name:e,description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions&&Lt(r.extensions),astNode:r.astNode}})}var e,r,n=t.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Ke(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},n.toString=function(){return"@"+this.name},n.toJSON=function(){return this.toString()},e=t,(r=[{key:h,get:function(){return"GraphQLDirective"}}])&&Nr(e.prototype,r),t}();N(Qr);var Rr=new Qr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[W.FIELD,W.FRAGMENT_SPREAD,W.INLINE_FRAGMENT],args:{if:{type:new Fe(gr),description:"Included when true."}}}),jr=new Qr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[W.FIELD,W.FRAGMENT_SPREAD,W.INLINE_FRAGMENT],args:{if:{type:new Fe(gr),description:"Skipped when true."}}}),Hr="No longer supported",Vr=new Qr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[W.FIELD_DEFINITION,W.ARGUMENT_DEFINITION,W.INPUT_FIELD_DEFINITION,W.ENUM_VALUE],args:{reason:{type:dr,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Hr}}}),zr=new Qr({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[W.SCALAR],args:{url:{type:new Fe(dr),description:"The URL that specifies the behaviour of this scalar."}}}),Gr=Object.freeze([Rr,jr,Vr,zr]);function Kr(t){return Gr.some(function(e){return e.name===t.name})}function qr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Wr(t){return z(t,Xr)}function Yr(t){if(!Wr(t))throw new Error("Expected ".concat(H(t)," to be a GraphQL schema."));return t}var Xr=function(){function t(t){var e;this.__validationErrors=!0===t.assumeValid?[]:void 0,A(t)||s(0,"Must provide configuration object."),!t.types||Array.isArray(t.types)||s(0,'"types" must be Array if provided but got: '.concat(H(t.types),".")),!t.directives||Array.isArray(t.directives)||s(0,'"directives" must be Array if provided but got: '+"".concat(H(t.directives),".")),this.description=t.description,this.extensions=t.extensions&&Lt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=t.extensionASTNodes,this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=null!==(e=t.directives)&&void 0!==e?e:Gr;var r=new Set(t.types);if(null!=t.types)for(var n=0,i=t.types;n<i.length;n++){var o=i[n];r.delete(o),Jr(o,r)}null!=this._queryType&&Jr(this._queryType,r),null!=this._mutationType&&Jr(this._mutationType,r),null!=this._subscriptionType&&Jr(this._subscriptionType,r);for(var a=0,l=this._directives;a<l.length;a++){var c=l[a];if(Or(c))for(var h=0,u=c.args;h<u.length;h++)Jr(u[h].type,r)}Jr(xr,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var p=0,f=or(r);p<f.length;p++){var d=f[p];if(null!=d){var g=d.name;if(g||s(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[g])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(g,'".'));if(this._typeMap[g]=d,se(d))for(var m=0,y=d.getInterfaces();m<y.length;m++){var v=y[m];if(se(v)){var b=this._implementationsMap[v.name];void 0===b&&(b=this._implementationsMap[v.name]={objects:[],interfaces:[]}),b.interfaces.push(d)}}else if(ie(d))for(var w=0,x=d.getInterfaces();w<x.length;w++){var B=x[w];if(se(B)){var C=this._implementationsMap[B.name];void 0===C&&(C=this._implementationsMap[B.name]={objects:[],interfaces:[]}),C.objects.push(d)}}}}}var e,r,n=t.prototype;return n.getQueryType=function(){return this._queryType},n.getMutationType=function(){return this._mutationType},n.getSubscriptionType=function(){return this._subscriptionType},n.getTypeMap=function(){return this._typeMap},n.getType=function(t){return this.getTypeMap()[t]},n.getPossibleTypes=function(t){return Ae(t)?t.getTypes():this.getImplementations(t).objects},n.getImplementations=function(t){var e=this._implementationsMap[t.name];return null!=e?e:{objects:[],interfaces:[]}},n.isPossibleType=function(t,e){return this.isSubType(t,e)},n.isSubType=function(t,e){var r=this._subTypeMap[t.name];if(void 0===r){if(r=Object.create(null),Ae(t))for(var n=0,i=t.getTypes();n<i.length;n++)r[i[n].name]=!0;else{for(var o=this.getImplementations(t),s=0,a=o.objects;s<a.length;s++)r[a[s].name]=!0;for(var A=0,l=o.interfaces;A<l.length;A++)r[l[A].name]=!0}this._subTypeMap[t.name]=r}return void 0!==r[e.name]},n.getDirectives=function(){return this._directives},n.getDirective=function(t){return Bt(this.getDirectives(),function(e){return e.name===t})},n.toConfig=function(){var t;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Ct(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(t=this.extensionASTNodes)&&void 0!==t?t:[],assumeValid:void 0!==this.__validationErrors}},e=t,(r=[{key:h,get:function(){return"GraphQLSchema"}}])&&qr(e.prototype,r),t}();function Jr(t,e){var r=Oe(t);if(!e.has(r))if(e.add(r),Ae(r))for(var n=0,i=r.getTypes();n<i.length;n++)Jr(i[n],e);else if(ie(r)||se(r)){for(var o=0,s=r.getInterfaces();o<s.length;o++)Jr(s[o],e);for(var a=0,A=Ct(r.getFields());a<A.length;a++){var l=A[a];Jr(l.type,e);for(var c=0,h=l.args;c<h.length;c++)Jr(h[c].type,e)}}else if(ue(r))for(var u=0,p=Ct(r.getFields());u<p.length;u++)Jr(p[u].type,e);return e}function Zr(t){if(Yr(t),t.__validationErrors)return t.__validationErrors;var e=new tn(t);!function(t){var e=t.schema,r=e.getQueryType();if(r){if(!ie(r)){var n;t.reportError("Query root type must be Object type, it cannot be ".concat(H(r),"."),null!==(n=en(e,"query"))&&void 0!==n?n:r.astNode)}}else t.reportError("Query root type must be provided.",e.astNode);var i,o=e.getMutationType();o&&!ie(o)&&t.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(H(o),"."),null!==(i=en(e,"mutation"))&&void 0!==i?i:o.astNode);var s,a=e.getSubscriptionType();a&&!ie(a)&&t.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(H(a),"."),null!==(s=en(e,"subscription"))&&void 0!==s?s:a.astNode)}(e),function(t){for(var e=0,r=t.schema.getDirectives();e<r.length;e++){var n=r[e];if(Or(n)){rn(t,n);for(var i=0,o=n.args;i<o.length;i++){var s,a=o[i];rn(t,a),ye(a.type)||t.reportError("The type of @".concat(n.name,"(").concat(a.name,":) must be Input Type ")+"but got: ".concat(H(a.type),"."),a.astNode),qe(a)&&null!=a.deprecationReason&&t.reportError("Required argument @".concat(n.name,"(").concat(a.name,":) cannot be deprecated."),[dn(a.astNode),null===(s=a.astNode)||void 0===s?void 0:s.type])}}else t.reportError("Expected directive but got: ".concat(H(n),"."),null==n?void 0:n.astNode)}}(e),function(t){for(var e=function(t){var e=Object.create(null),r=[],n=Object.create(null);return function i(o){if(!e[o.name]){e[o.name]=!0,n[o.name]=r.length;for(var s=Ct(o.getFields()),a=0;a<s.length;a++){var A=s[a];if(ge(A.type)&&ue(A.type.ofType)){var l=A.type.ofType,c=n[l.name];if(r.push(A),void 0===c)i(l);else{var h=r.slice(c),u=h.map(function(t){return t.name}).join(".");t.reportError('Cannot reference Input Object "'.concat(l.name,'" within itself through a series of non-null fields: "').concat(u,'".'),h.map(function(t){return t.astNode}))}r.pop()}}n[o.name]=void 0}}}(t),r=t.schema.getTypeMap(),n=0,i=Ct(r);n<i.length;n++){var o=i[n];De(o)?(Dr(o)||rn(t,o),ie(o)||se(o)?(nn(t,o),on(t,o)):Ae(o)?An(t,o):ce(o)?ln(t,o):ue(o)&&(cn(t,o),e(o))):t.reportError("Expected GraphQL named type but got: ".concat(H(o),"."),o.astNode)}}(e);var r=e.getErrors();return t.__validationErrors=r,r}function $r(t){var e=Zr(t);if(0!==e.length)throw new Error(e.map(function(t){return t.message}).join("\n\n"))}var tn=function(){function t(t){this._errors=[],this.schema=t}var e=t.prototype;return e.reportError=function(t,e){var r=Array.isArray(e)?e.filter(Boolean):e;this.addError(new I(t,r))},e.addError=function(t){this._errors.push(t)},e.getErrors=function(){return this._errors},t}();function en(t,e){for(var r=un(t,function(t){return t.operationTypes}),n=0;n<r.length;n++){var i=r[n];if(i.operation===e)return i.type}}function rn(t,e){var r=It(e.name);r&&t.addError(_t(r,e.astNode))}function nn(t,e){var r=Ct(e.getFields());0===r.length&&t.reportError("Type ".concat(e.name," must define one or more fields."),hn(e));for(var n=0;n<r.length;n++){var i,o=r[n];rn(t,o),be(o.type)||t.reportError("The type of ".concat(e.name,".").concat(o.name," must be Output Type ")+"but got: ".concat(H(o.type),"."),null===(i=o.astNode)||void 0===i?void 0:i.type);for(var s=0,a=o.args;s<a.length;s++){var A,l,c=a[s],h=c.name;rn(t,c),ye(c.type)||t.reportError("The type of ".concat(e.name,".").concat(o.name,"(").concat(h,":) must be Input ")+"Type but got: ".concat(H(c.type),"."),null===(A=c.astNode)||void 0===A?void 0:A.type),qe(c)&&null!=c.deprecationReason&&t.reportError("Required argument ".concat(e.name,".").concat(o.name,"(").concat(h,":) cannot be deprecated."),[dn(c.astNode),null===(l=c.astNode)||void 0===l?void 0:l.type])}}}function on(t,e){for(var r=Object.create(null),n=0,i=e.getInterfaces();n<i.length;n++){var o=i[n];se(o)?e!==o?r[o.name]?t.reportError("Type ".concat(e.name," can only implement ").concat(o.name," once."),pn(e,o)):(r[o.name]=!0,an(t,e,o),sn(t,e,o)):t.reportError("Type ".concat(e.name," cannot implement itself because it would create a circular reference."),pn(e,o)):t.reportError("Type ".concat(H(e)," must only implement Interface types, ")+"it cannot implement ".concat(H(o),"."),pn(e,o))}}function sn(t,e,r){for(var n=e.getFields(),i=0,o=Ct(r.getFields());i<o.length;i++){var s=o[i],a=s.name,A=n[a];if(A){var l,c;nr(t.schema,A.type,s.type)||t.reportError("Interface field ".concat(r.name,".").concat(a," expects type ")+"".concat(H(s.type)," but ").concat(e.name,".").concat(a," ")+"is type ".concat(H(A.type),"."),[null===(l=s.astNode)||void 0===l?void 0:l.type,null===(c=A.astNode)||void 0===c?void 0:c.type]);for(var h=function(n,i){var o,s,l=i[n],c=l.name,h=Bt(A.args,function(t){return t.name===c});if(!h)return t.reportError("Interface field argument ".concat(r.name,".").concat(a,"(").concat(c,":) expected but ").concat(e.name,".").concat(a," does not provide it."),[l.astNode,A.astNode]),"continue";rr(l.type,h.type)||t.reportError("Interface field argument ".concat(r.name,".").concat(a,"(").concat(c,":) ")+"expects type ".concat(H(l.type)," but ")+"".concat(e.name,".").concat(a,"(").concat(c,":) is type ")+"".concat(H(h.type),"."),[null===(o=l.astNode)||void 0===o?void 0:o.type,null===(s=h.astNode)||void 0===s?void 0:s.type])},u=0,p=s.args;u<p.length;u++)h(u,p);for(var f=function(n,i){var o=i[n],A=o.name;!Bt(s.args,function(t){return t.name===A})&&qe(o)&&t.reportError("Object field ".concat(e.name,".").concat(a," includes required argument ").concat(A," that is missing from the Interface field ").concat(r.name,".").concat(a,"."),[o.astNode,s.astNode])},d=0,g=A.args;d<g.length;d++)f(d,g)}else t.reportError("Interface field ".concat(r.name,".").concat(a," expected but ").concat(e.name," does not provide it."),[s.astNode].concat(hn(e)))}}function an(t,e,r){for(var n=e.getInterfaces(),i=0,o=r.getInterfaces();i<o.length;i++){var s=o[i];-1===n.indexOf(s)&&t.reportError(s===e?"Type ".concat(e.name," cannot implement ").concat(r.name," because it would create a circular reference."):"Type ".concat(e.name," must implement ").concat(s.name," because it is implemented by ").concat(r.name,"."),[].concat(pn(r,s),pn(e,r)))}}function An(t,e){var r=e.getTypes();0===r.length&&t.reportError("Union type ".concat(e.name," must define one or more member types."),hn(e));for(var n=Object.create(null),i=0;i<r.length;i++){var o=r[i];n[o.name]?t.reportError("Union type ".concat(e.name," can only include type ").concat(o.name," once."),fn(e,o.name)):(n[o.name]=!0,ie(o)||t.reportError("Union type ".concat(e.name," can only include Object types, ")+"it cannot include ".concat(H(o),"."),fn(e,String(o))))}}function ln(t,e){var r=e.getValues();0===r.length&&t.reportError("Enum type ".concat(e.name," must define one or more values."),hn(e));for(var n=0;n<r.length;n++){var i=r[n],o=i.name;rn(t,i),"true"!==o&&"false"!==o&&"null"!==o||t.reportError("Enum type ".concat(e.name," cannot include value: ").concat(o,"."),i.astNode)}}function cn(t,e){var r=Ct(e.getFields());0===r.length&&t.reportError("Input Object type ".concat(e.name," must define one or more fields."),hn(e));for(var n=0;n<r.length;n++){var i,o,s=r[n];rn(t,s),ye(s.type)||t.reportError("The type of ".concat(e.name,".").concat(s.name," must be Input Type ")+"but got: ".concat(H(s.type),"."),null===(i=s.astNode)||void 0===i?void 0:i.type),er(s)&&null!=s.deprecationReason&&t.reportError("Required input field ".concat(e.name,".").concat(s.name," cannot be deprecated."),[dn(s.astNode),null===(o=s.astNode)||void 0===o?void 0:o.type])}}function hn(t){var e=t.astNode,r=t.extensionASTNodes;return e?r?[e].concat(r):[e]:null!=r?r:[]}function un(t,e){for(var r=[],n=0,i=hn(t);n<i.length;n++){var o,s=i[n];r=r.concat(null!==(o=e(s))&&void 0!==o?o:[])}return r}function pn(t,e){return un(t,function(t){return t.interfaces}).filter(function(t){return t.name.value===e.name})}function fn(t,e){return un(t,function(t){return t.types}).filter(function(t){return t.name.value===e})}function dn(t){var e;return null==t||null===(e=t.directives)||void 0===e?void 0:e.find(function(t){return t.name.value===Vr.name})}function gn(t,e){var r;return e.kind===P.LIST_TYPE?(r=gn(t,e.type))&&new Ie(r):e.kind===P.NON_NULL_TYPE?(r=gn(t,e.type))&&new Fe(r):e.kind===P.NAMED_TYPE?t.getType(e.name.value):void M(0,"Unexpected type node: "+H(e))}var mn=function(){function t(t,e,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=e?e:yn,r&&(ye(r)&&this._inputTypeStack.push(r),Ce(r)&&this._parentTypeStack.push(r),be(r)&&this._typeStack.push(r))}var e=t.prototype;return e.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},e.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},e.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},e.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},e.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},e.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},e.getDirective=function(){return this._directive},e.getArgument=function(){return this._argument},e.getEnumValue=function(){return this._enumValue},e.enter=function(t){var e=this._schema;switch(t.kind){case P.SELECTION_SET:var r=Oe(this.getType());this._parentTypeStack.push(Ce(r)?r:void 0);break;case P.FIELD:var n,i,o=this.getParentType();o&&(n=this._getFieldDef(e,o,t))&&(i=n.type),this._fieldDefStack.push(n),this._typeStack.push(be(i)?i:void 0);break;case P.DIRECTIVE:this._directive=e.getDirective(t.name.value);break;case P.OPERATION_DEFINITION:var s;switch(t.operation){case"query":s=e.getQueryType();break;case"mutation":s=e.getMutationType();break;case"subscription":s=e.getSubscriptionType()}this._typeStack.push(ie(s)?s:void 0);break;case P.INLINE_FRAGMENT:case P.FRAGMENT_DEFINITION:var a=t.typeCondition,A=a?gn(e,a):Oe(this.getType());this._typeStack.push(be(A)?A:void 0);break;case P.VARIABLE_DEFINITION:var l=gn(e,t.type);this._inputTypeStack.push(ye(l)?l:void 0);break;case P.ARGUMENT:var c,h,u,p=null!==(c=this.getDirective())&&void 0!==c?c:this.getFieldDef();p&&(h=Bt(p.args,function(e){return e.name===t.name.value}))&&(u=h.type),this._argument=h,this._defaultValueStack.push(h?h.defaultValue:void 0),this._inputTypeStack.push(ye(u)?u:void 0);break;case P.LIST:var f=Me(this.getInputType()),d=fe(f)?f.ofType:f;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ye(d)?d:void 0);break;case P.OBJECT_FIELD:var g,m,y=Oe(this.getInputType());ue(y)&&(m=y.getFields()[t.name.value])&&(g=m.type),this._defaultValueStack.push(m?m.defaultValue:void 0),this._inputTypeStack.push(ye(g)?g:void 0);break;case P.ENUM:var v,b=Oe(this.getInputType());ce(b)&&(v=b.getValue(t.value)),this._enumValue=v}},e.leave=function(t){switch(t.kind){case P.SELECTION_SET:this._parentTypeStack.pop();break;case P.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case P.DIRECTIVE:this._directive=null;break;case P.OPERATION_DEFINITION:case P.INLINE_FRAGMENT:case P.FRAGMENT_DEFINITION:this._typeStack.pop();break;case P.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case P.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case P.LIST:case P.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case P.ENUM:this._enumValue=null}},t}();function yn(t,e,r){var n=r.name.value;return n===kr.name&&t.getQueryType()===e?kr:n===Lr.name&&t.getQueryType()===e?Lr:n===Pr.name&&Ce(e)?Pr:ie(e)||se(e)?e.getFields()[n]:void 0}function vn(t,e){return{enter:function(r){t.enter(r);var n=xt(e,r.kind,!1);if(n){var i=n.apply(e,arguments);return void 0!==i&&(t.leave(r),Q(i)&&t.enter(i)),i}},leave:function(r){var n,i=xt(e,r.kind,!0);return i&&(n=i.apply(e,arguments)),t.leave(r),n}}}function bn(t){return wn(t)||_n(t)||Sn(t)}function wn(t){return t.kind===P.OPERATION_DEFINITION||t.kind===P.FRAGMENT_DEFINITION}function xn(t){return t.kind===P.FIELD||t.kind===P.FRAGMENT_SPREAD||t.kind===P.INLINE_FRAGMENT}function Bn(t){return t.kind===P.VARIABLE||t.kind===P.INT||t.kind===P.FLOAT||t.kind===P.STRING||t.kind===P.BOOLEAN||t.kind===P.NULL||t.kind===P.ENUM||t.kind===P.LIST||t.kind===P.OBJECT}function Cn(t){return t.kind===P.NAMED_TYPE||t.kind===P.LIST_TYPE||t.kind===P.NON_NULL_TYPE}function _n(t){return t.kind===P.SCHEMA_DEFINITION||En(t)||t.kind===P.DIRECTIVE_DEFINITION}function En(t){return t.kind===P.SCALAR_TYPE_DEFINITION||t.kind===P.OBJECT_TYPE_DEFINITION||t.kind===P.INTERFACE_TYPE_DEFINITION||t.kind===P.UNION_TYPE_DEFINITION||t.kind===P.ENUM_TYPE_DEFINITION||t.kind===P.INPUT_OBJECT_TYPE_DEFINITION}function Sn(t){return t.kind===P.SCHEMA_EXTENSION||In(t)}function In(t){return t.kind===P.SCALAR_TYPE_EXTENSION||t.kind===P.OBJECT_TYPE_EXTENSION||t.kind===P.INTERFACE_TYPE_EXTENSION||t.kind===P.UNION_TYPE_EXTENSION||t.kind===P.ENUM_TYPE_EXTENSION||t.kind===P.INPUT_OBJECT_TYPE_EXTENSION}function Fn(t){return{Document:function(e){for(var r=0,n=e.definitions;r<n.length;r++){var i=n[r];if(!wn(i)){var o=i.kind===P.SCHEMA_DEFINITION||i.kind===P.SCHEMA_EXTENSION?"schema":'"'+i.name.value+'"';t.reportError(new I("The ".concat(o," definition is not executable."),i))}}return!1}}}function Tn(t){var e=Object.create(null);return{OperationDefinition:function(r){var n=r.name;return n&&(e[n.value]?t.reportError(new I('There can be only one operation named "'.concat(n.value,'".'),[e[n.value],n])):e[n.value]=n),!1},FragmentDefinition:function(){return!1}}}function kn(t){var e=0;return{Document:function(t){e=t.definitions.filter(function(t){return t.kind===P.OPERATION_DEFINITION}).length},OperationDefinition:function(r){!r.name&&e>1&&t.reportError(new I("This anonymous operation must be the only defined operation.",r))}}}function Ln(t){return{OperationDefinition:function(e){"subscription"===e.operation&&1!==e.selectionSet.selections.length&&t.reportError(new I(e.name?'Subscription "'.concat(e.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",e.selectionSet.selections.slice(1)))}}}function Pn(t){for(var e=t.getSchema(),r=e?e.getTypeMap():Object.create(null),n=Object.create(null),i=0,o=t.getDocument().definitions;i<o.length;i++){var s=o[i];En(s)&&(n[s.name.value]=!0)}var a=Object.keys(r).concat(Object.keys(n));return{NamedType:function(e,i,o,s,A){var l,c=e.name.value;if(!r[c]&&!n[c]){var h,u=null!==(h=A[2])&&void 0!==h?h:o,p=null!=u&&(l=u,!Array.isArray(l)&&(_n(l)||Sn(l)));if(p&&function(t){return-1!==Mn.indexOf(t)}(c))return;var f=Qt(c,p?Mn.concat(a):a);t.reportError(new I('Unknown type "'.concat(c,'".')+Mt(f),e))}}}}var Mn=[].concat(yr,Mr).map(function(t){return t.name});function Dn(t){return{InlineFragment:function(e){var r=e.typeCondition;if(r){var n=gn(t.getSchema(),r);if(n&&!Ce(n)){var i=Ht(r);t.reportError(new I('Fragment cannot condition on non composite type "'.concat(i,'".'),r))}}},FragmentDefinition:function(e){var r=gn(t.getSchema(),e.typeCondition);if(r&&!Ce(r)){var n=Ht(e.typeCondition);t.reportError(new I('Fragment "'.concat(e.name.value,'" cannot condition on non composite type "').concat(n,'".'),e.typeCondition))}}}}function Nn(t){return{VariableDefinition:function(e){var r=gn(t.getSchema(),e.type);if(r&&!ye(r)){var n=e.variable.name.value,i=Ht(e.type);t.reportError(new I('Variable "$'.concat(n,'" cannot be non-input type "').concat(i,'".'),e.type))}}}}function On(t){return{Field:function(e){var r=t.getType(),n=e.selectionSet;if(r)if(xe(Oe(r))){if(n){var i=e.name.value,o=H(r);t.reportError(new I('Field "'.concat(i,'" must not have a selection since type "').concat(o,'" has no subfields.'),n))}}else if(!n){var s=e.name.value,a=H(r);t.reportError(new I('Field "'.concat(s,'" of type "').concat(a,'" must have a selection of subfields. Did you mean "').concat(s,' { ... }"?'),e))}}}}function Un(t){return{Field:function(e){var r=t.getParentType();if(r&&!t.getFieldDef()){var n=t.getSchema(),i=e.name.value,o=Mt("to use an inline fragment on",function(t,e,r){if(!Ee(e))return[];for(var n=new Set,i=Object.create(null),o=0,s=t.getPossibleTypes(e);o<s.length;o++){var a=s[o];if(a.getFields()[r]){n.add(a),i[a.name]=1;for(var A=0,l=a.getInterfaces();A<l.length;A++){var c,h=l[A];h.getFields()[r]&&(n.add(h),i[h.name]=(null!==(c=i[h.name])&&void 0!==c?c:0)+1)}}}return or(n).sort(function(e,r){var n=i[r.name]-i[e.name];return 0!==n?n:se(e)&&t.isSubType(e,r)?-1:se(r)&&t.isSubType(r,e)?1:Nt(e.name,r.name)}).map(function(t){return t.name})}(n,r,i));""===o&&(o=Mt(function(t,e){return ie(t)||se(t)?Qt(e,Object.keys(t.getFields())):[]}(r,i))),t.reportError(new I('Cannot query field "'.concat(i,'" on type "').concat(r.name,'".')+o,e))}}}}function Qn(t){var e=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(r){var n=r.name.value;return e[n]?t.reportError(new I('There can be only one fragment named "'.concat(n,'".'),[e[n],r.name])):e[n]=r.name,!1}}}function Rn(t){return{FragmentSpread:function(e){var r=e.name.value;t.getFragment(r)||t.reportError(new I('Unknown fragment "'.concat(r,'".'),e.name))}}}function jn(t){var e=[],r=[];return{OperationDefinition:function(t){return e.push(t),!1},FragmentDefinition:function(t){return r.push(t),!1},Document:{leave:function(){for(var n=Object.create(null),i=0;i<e.length;i++)for(var o=e[i],s=0,a=t.getRecursivelyReferencedFragments(o);s<a.length;s++)n[a[s].name.value]=!0;for(var A=0;A<r.length;A++){var l=r[A],c=l.name.value;!0!==n[c]&&t.reportError(new I('Fragment "'.concat(c,'" is never used.'),l))}}}}}function Hn(t){return{InlineFragment:function(e){var r=t.getType(),n=t.getParentType();if(Ce(r)&&Ce(n)&&!ir(t.getSchema(),r,n)){var i=H(n),o=H(r);t.reportError(new I('Fragment cannot be spread here as objects of type "'.concat(i,'" can never be of type "').concat(o,'".'),e))}},FragmentSpread:function(e){var r=e.name.value,n=function(t,e){var r=t.getFragment(e);if(r){var n=gn(t.getSchema(),r.typeCondition);if(Ce(n))return n}}(t,r),i=t.getParentType();if(n&&i&&!ir(t.getSchema(),n,i)){var o=H(i),s=H(n);t.reportError(new I('Fragment "'.concat(r,'" cannot be spread here as objects of type "').concat(o,'" can never be of type "').concat(s,'".'),e))}}}}function Vn(t){var e=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(t){return i(t),!1}};function i(o){if(!e[o.name.value]){var s=o.name.value;e[s]=!0;var a=t.getFragmentSpreads(o.selectionSet);if(0!==a.length){n[s]=r.length;for(var A=0;A<a.length;A++){var l=a[A],c=l.name.value,h=n[c];if(r.push(l),void 0===h){var u=t.getFragment(c);u&&i(u)}else{var p=r.slice(h),f=p.slice(0,-1).map(function(t){return'"'+t.name.value+'"'}).join(", ");t.reportError(new I('Cannot spread fragment "'.concat(c,'" within itself')+(""!==f?" via ".concat(f,"."):"."),p))}r.pop()}n[s]=void 0}}}}function zn(t){var e=Object.create(null);return{OperationDefinition:function(){e=Object.create(null)},VariableDefinition:function(r){var n=r.variable.name.value;e[n]?t.reportError(new I('There can be only one variable named "$'.concat(n,'".'),[e[n],r.variable.name])):e[n]=r.variable.name}}}function Gn(t){var e=Object.create(null);return{OperationDefinition:{enter:function(){e=Object.create(null)},leave:function(r){for(var n=t.getRecursiveVariableUsages(r),i=0;i<n.length;i++){var o=n[i].node,s=o.name.value;!0!==e[s]&&t.reportError(new I(r.name?'Variable "$'.concat(s,'" is not defined by operation "').concat(r.name.value,'".'):'Variable "$'.concat(s,'" is not defined.'),[o,r]))}}},VariableDefinition:function(t){e[t.variable.name.value]=!0}}}function Kn(t){var e=[];return{OperationDefinition:{enter:function(){e=[]},leave:function(r){for(var n=Object.create(null),i=t.getRecursiveVariableUsages(r),o=0;o<i.length;o++)n[i[o].node.name.value]=!0;for(var s=0,a=e;s<a.length;s++){var A=a[s],l=A.variable.name.value;!0!==n[l]&&t.reportError(new I(r.name?'Variable "$'.concat(l,'" is never used in operation "').concat(r.name.value,'".'):'Variable "$'.concat(l,'" is never used.'),A))}}},VariableDefinition:function(t){e.push(t)}}}function qn(t){for(var e=Object.create(null),r=t.getSchema(),n=r?r.getDirectives():Gr,i=0;i<n.length;i++){var o=n[i];e[o.name]=o.locations}for(var s=t.getDocument().definitions,a=0;a<s.length;a++){var A=s[a];A.kind===P.DIRECTIVE_DEFINITION&&(e[A.name.value]=A.locations.map(function(t){return t.value}))}return{Directive:function(r,n,i,o,s){var a=r.name.value,A=e[a];if(A){var l=function(t){var e=t[t.length-1];switch(!Array.isArray(e)||M(0),e.kind){case P.OPERATION_DEFINITION:return function(t){switch(t){case"query":return W.QUERY;case"mutation":return W.MUTATION;case"subscription":return W.SUBSCRIPTION}M(0,"Unexpected operation: "+H(t))}(e.operation);case P.FIELD:return W.FIELD;case P.FRAGMENT_SPREAD:return W.FRAGMENT_SPREAD;case P.INLINE_FRAGMENT:return W.INLINE_FRAGMENT;case P.FRAGMENT_DEFINITION:return W.FRAGMENT_DEFINITION;case P.VARIABLE_DEFINITION:return W.VARIABLE_DEFINITION;case P.SCHEMA_DEFINITION:case P.SCHEMA_EXTENSION:return W.SCHEMA;case P.SCALAR_TYPE_DEFINITION:case P.SCALAR_TYPE_EXTENSION:return W.SCALAR;case P.OBJECT_TYPE_DEFINITION:case P.OBJECT_TYPE_EXTENSION:return W.OBJECT;case P.FIELD_DEFINITION:return W.FIELD_DEFINITION;case P.INTERFACE_TYPE_DEFINITION:case P.INTERFACE_TYPE_EXTENSION:return W.INTERFACE;case P.UNION_TYPE_DEFINITION:case P.UNION_TYPE_EXTENSION:return W.UNION;case P.ENUM_TYPE_DEFINITION:case P.ENUM_TYPE_EXTENSION:return W.ENUM;case P.ENUM_VALUE_DEFINITION:return W.ENUM_VALUE;case P.INPUT_OBJECT_TYPE_DEFINITION:case P.INPUT_OBJECT_TYPE_EXTENSION:return W.INPUT_OBJECT;case P.INPUT_VALUE_DEFINITION:return t[t.length-3].kind===P.INPUT_OBJECT_TYPE_DEFINITION?W.INPUT_FIELD_DEFINITION:W.ARGUMENT_DEFINITION}}(s);l&&-1===A.indexOf(l)&&t.reportError(new I('Directive "@'.concat(a,'" may not be used on ').concat(l,"."),r))}else t.reportError(new I('Unknown directive "@'.concat(a,'".'),r))}}}function Wn(t){for(var e=Object.create(null),r=t.getSchema(),n=r?r.getDirectives():Gr,i=0;i<n.length;i++){var o=n[i];e[o.name]=!o.isRepeatable}for(var s=t.getDocument().definitions,a=0;a<s.length;a++){var A=s[a];A.kind===P.DIRECTIVE_DEFINITION&&(e[A.name.value]=!A.repeatable)}var l=Object.create(null),c=Object.create(null);return{enter:function(r){if(null!=r.directives){var n;if(r.kind===P.SCHEMA_DEFINITION||r.kind===P.SCHEMA_EXTENSION)n=l;else if(En(r)||In(r)){var i=r.name.value;void 0===(n=c[i])&&(c[i]=n=Object.create(null))}else n=Object.create(null);for(var o=0,s=r.directives;o<s.length;o++){var a=s[o],A=a.name.value;e[A]&&(n[A]?t.reportError(new I('The directive "@'.concat(A,'" can only be used once at this location.'),[n[A],a])):n[A]=a)}}}}}function Yn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Xn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yn(Object(r),!0).forEach(function(e){Jn(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yn(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Jn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zn(t){return Xn(Xn({},$n(t)),{},{Argument:function(e){var r=t.getArgument(),n=t.getFieldDef(),i=t.getParentType();if(!r&&n&&i){var o=e.name.value,s=Qt(o,n.args.map(function(t){return t.name}));t.reportError(new I('Unknown argument "'.concat(o,'" on field "').concat(i.name,".").concat(n.name,'".')+Mt(s),e))}}})}function $n(t){for(var e=Object.create(null),r=t.getSchema(),n=r?r.getDirectives():Gr,i=0;i<n.length;i++){var o=n[i];e[o.name]=o.args.map(function(t){return t.name})}for(var s=t.getDocument().definitions,a=0;a<s.length;a++){var A=s[a];if(A.kind===P.DIRECTIVE_DEFINITION){var l,c=null!==(l=A.arguments)&&void 0!==l?l:[];e[A.name.value]=c.map(function(t){return t.name.value})}}return{Directive:function(r){var n=r.name.value,i=e[n];if(r.arguments&&i)for(var o=0,s=r.arguments;o<s.length;o++){var a=s[o],A=a.name.value;if(-1===i.indexOf(A)){var l=Qt(A,i);t.reportError(new I('Unknown argument "'.concat(A,'" on directive "@').concat(n,'".')+Mt(l),a))}}return!1}}}function ti(t){var e=Object.create(null);return{Field:function(){e=Object.create(null)},Directive:function(){e=Object.create(null)},Argument:function(r){var n=r.name.value;return e[n]?t.reportError(new I('There can be only one argument named "'.concat(n,'".'),[e[n],r.name])):e[n]=r.name,!1}}}function ei(t){return{ListValue:function(e){if(!fe(Me(t.getParentInputType())))return ri(t,e),!1},ObjectValue:function(e){var r=Oe(t.getInputType());if(!ue(r))return ri(t,e),!1;for(var n=Tt(e.fields,function(t){return t.name.value}),i=0,o=Ct(r.getFields());i<o.length;i++){var s=o[i];if(!n[s.name]&&er(s)){var a=H(s.type);t.reportError(new I('Field "'.concat(r.name,".").concat(s.name,'" of required type "').concat(a,'" was not provided.'),e))}}},ObjectField:function(e){var r=Oe(t.getParentInputType());if(!t.getInputType()&&ue(r)){var n=Qt(e.name.value,Object.keys(r.getFields()));t.reportError(new I('Field "'.concat(e.name.value,'" is not defined by type "').concat(r.name,'".')+Mt(n),e))}},NullValue:function(e){var r=t.getInputType();ge(r)&&t.reportError(new I('Expected value of type "'.concat(H(r),'", found ').concat(Ht(e),"."),e))},EnumValue:function(e){return ri(t,e)},IntValue:function(e){return ri(t,e)},FloatValue:function(e){return ri(t,e)},StringValue:function(e){return ri(t,e)},BooleanValue:function(e){return ri(t,e)}}}function ri(t,e){var r=t.getInputType();if(r){var n=Oe(r);if(xe(n))try{if(void 0===n.parseLiteral(e,void 0)){var i=H(r);t.reportError(new I('Expected value of type "'.concat(i,'", found ').concat(Ht(e),"."),e))}}catch(n){var o=H(r);n instanceof I?t.reportError(n):t.reportError(new I('Expected value of type "'.concat(o,'", found ').concat(Ht(e),"; ")+n.message,e,void 0,void 0,void 0,n))}else{var s=H(r);t.reportError(new I('Expected value of type "'.concat(s,'", found ').concat(Ht(e),"."),e))}}}function ni(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ii(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ni(Object(r),!0).forEach(function(e){oi(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ni(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function oi(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function si(t){return ii(ii({},ai(t)),{},{Field:{leave:function(e){var r,n=t.getFieldDef();if(!n)return!1;for(var i=Tt(null!==(r=e.arguments)&&void 0!==r?r:[],function(t){return t.name.value}),o=0,s=n.args;o<s.length;o++){var a=s[o];if(!i[a.name]&&qe(a)){var A=H(a.type);t.reportError(new I('Field "'.concat(n.name,'" argument "').concat(a.name,'" of type "').concat(A,'" is required, but it was not provided.'),e))}}}}})}function ai(t){for(var e=Object.create(null),r=t.getSchema(),n=r?r.getDirectives():Gr,i=0;i<n.length;i++){var o=n[i];e[o.name]=Tt(o.args.filter(qe),function(t){return t.name})}for(var s=t.getDocument().definitions,a=0;a<s.length;a++){var A=s[a];if(A.kind===P.DIRECTIVE_DEFINITION){var l,c=null!==(l=A.arguments)&&void 0!==l?l:[];e[A.name.value]=Tt(c.filter(Ai),function(t){return t.name.value})}}return{Directive:{leave:function(r){var n=r.name.value,i=e[n];if(i)for(var o,s=Tt(null!==(o=r.arguments)&&void 0!==o?o:[],function(t){return t.name.value}),a=0,A=Object.keys(i);a<A.length;a++){var l=A[a];if(!s[l]){var c=i[l].type,h=te(c)?H(c):Ht(c);t.reportError(new I('Directive "@'.concat(n,'" argument "').concat(l,'" of type "').concat(h,'" is required, but it was not provided.'),r))}}}}}}function Ai(t){return t.type.kind===P.NON_NULL_TYPE&&null==t.defaultValue}function li(t){var e=Object.create(null);return{OperationDefinition:{enter:function(){e=Object.create(null)},leave:function(r){for(var n=t.getRecursiveVariableUsages(r),i=0;i<n.length;i++){var o=n[i],s=o.node,a=o.type,A=o.defaultValue,l=s.name.value,c=e[l];if(c&&a){var h=t.getSchema(),u=gn(h,c.type);if(u&&!ci(h,u,c.defaultValue,a,A)){var p=H(u),f=H(a);t.reportError(new I('Variable "$'.concat(l,'" of type "').concat(p,'" used in position expecting type "').concat(f,'".'),[c,s]))}}}}},VariableDefinition:function(t){e[t.variable.name.value]=t}}}function ci(t,e,r,n,i){return ge(n)&&!ge(e)?(null!=r&&r.kind!==P.NULL||void 0!==i)&&nr(t,e,n.ofType):nr(t,e,n)}function hi(t){return Array.isArray(t)?t.map(function(t){var e=t[0],r=t[1];return'subfields "'.concat(e,'" conflict because ')+hi(r)}).join(" and "):t}function ui(t){var e=new xi,r=new Map;return{SelectionSet:function(n){for(var i=function(t,e,r,n,i){var o=[],s=yi(t,e,n,i),a=s[0],A=s[1];if(function(t,e,r,n,i){for(var o=0,s=Ft(i);o<s.length;o++){var a=s[o],A=a[0],l=a[1];if(l.length>1)for(var c=0;c<l.length;c++)for(var h=c+1;h<l.length;h++){var u=gi(t,r,n,!1,A,l[c],l[h]);u&&e.push(u)}}}(t,o,e,r,a),0!==A.length)for(var l=0;l<A.length;l++){pi(t,o,e,r,!1,a,A[l]);for(var c=l+1;c<A.length;c++)fi(t,o,e,r,!1,A[l],A[c])}return o}(t,r,e,t.getParentType(),n),o=0;o<i.length;o++){var s=i[o],a=s[0],A=a[0],l=a[1],c=s[1],h=s[2],u=hi(l);t.reportError(new I('Fields "'.concat(A,'" conflict because ').concat(u,". Use different aliases on the fields to fetch both if this was intentional."),c.concat(h)))}}}}function pi(t,e,r,n,i,o,s){var a=t.getFragment(s);if(a){var A=vi(t,r,a),l=A[0],c=A[1];if(o!==l){di(t,e,r,n,i,o,l);for(var h=0;h<c.length;h++){var u=c[h];n.has(u,s,i)||(n.add(u,s,i),pi(t,e,r,n,i,o,c[h]))}}}}function fi(t,e,r,n,i,o,s){if(o!==s&&!n.has(o,s,i)){n.add(o,s,i);var a=t.getFragment(o),A=t.getFragment(s);if(a&&A){var l=vi(t,r,a),c=l[0],h=l[1],u=vi(t,r,A),p=u[0],f=u[1];di(t,e,r,n,i,c,p);for(var d=0;d<f.length;d++)fi(t,e,r,n,i,o,f[d]);for(var g=0;g<h.length;g++)fi(t,e,r,n,i,h[g],s)}}}function di(t,e,r,n,i,o,s){for(var a=0,A=Object.keys(o);a<A.length;a++){var l=A[a],c=s[l];if(c)for(var h=o[l],u=0;u<h.length;u++)for(var p=0;p<c.length;p++){var f=gi(t,r,n,i,l,h[u],c[p]);f&&e.push(f)}}}function gi(t,e,r,n,i,o,s){var a,A,l=o[0],c=o[1],h=o[2],u=s[0],p=s[1],f=s[2],d=n||l!==u&&ie(l)&&ie(u);if(!d){var g,m,y=c.name.value,v=p.name.value;if(y!==v)return[[i,'"'.concat(y,'" and "').concat(v,'" are different fields')],[c],[p]];if(a=null!==(g=c.arguments)&&void 0!==g?g:[],A=null!==(m=p.arguments)&&void 0!==m?m:[],a.length!==A.length||!a.every(function(t){var e,r,n=Bt(A,function(e){return e.name.value===t.name.value});return!!n&&(e=t.value,r=n.value,Ht(e)===Ht(r))}))return[[i,"they have differing arguments"],[c],[p]]}var b=null==h?void 0:h.type,w=null==f?void 0:f.type;if(b&&w&&mi(b,w))return[[i,'they return conflicting types "'.concat(H(b),'" and "').concat(H(w),'"')],[c],[p]];var x=c.selectionSet,B=p.selectionSet;if(x&&B){var C=function(t,e,r,n,i,o,s,a){var A=[],l=yi(t,e,i,o),c=l[0],h=l[1],u=yi(t,e,s,a),p=u[0],f=u[1];if(di(t,A,e,r,n,c,p),0!==f.length)for(var d=0;d<f.length;d++)pi(t,A,e,r,n,c,f[d]);if(0!==h.length)for(var g=0;g<h.length;g++)pi(t,A,e,r,n,p,h[g]);for(var m=0;m<h.length;m++)for(var y=0;y<f.length;y++)fi(t,A,e,r,n,h[m],f[y]);return A}(t,e,r,d,Oe(b),x,Oe(w),B);return function(t,e,r,n){if(t.length>0)return[[e,t.map(function(t){return t[0]})],t.reduce(function(t,e){var r=e[1];return t.concat(r)},[r]),t.reduce(function(t,e){var r=e[2];return t.concat(r)},[n])]}(C,i,c,p)}}function mi(t,e){return fe(t)?!fe(e)||mi(t.ofType,e.ofType):!!fe(e)||(ge(t)?!ge(e)||mi(t.ofType,e.ofType):!!ge(e)||!(!xe(t)&&!xe(e))&&t!==e)}function yi(t,e,r,n){var i=e.get(n);if(!i){var o=Object.create(null),s=Object.create(null);bi(t,r,n,o,s),i=[o,Object.keys(s)],e.set(n,i)}return i}function vi(t,e,r){var n=e.get(r.selectionSet);if(n)return n;var i=gn(t.getSchema(),r.typeCondition);return yi(t,e,i,r.selectionSet)}function bi(t,e,r,n,i){for(var o=0,s=r.selections;o<s.length;o++){var a=s[o];switch(a.kind){case P.FIELD:var A=a.name.value,l=void 0;(ie(e)||se(e))&&(l=e.getFields()[A]);var c=a.alias?a.alias.value:A;n[c]||(n[c]=[]),n[c].push([e,a,l]);break;case P.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case P.INLINE_FRAGMENT:var h=a.typeCondition,u=h?gn(t.getSchema(),h):e;bi(t,u,a.selectionSet,n,i)}}}var wi,xi=function(){function t(){this._data=Object.create(null)}var e=t.prototype;return e.has=function(t,e,r){var n=this._data[t],i=n&&n[e];return void 0!==i&&(!1!==r||!1===i)},e.add=function(t,e,r){this._pairSetAdd(t,e,r),this._pairSetAdd(e,t,r)},e._pairSetAdd=function(t,e,r){var n=this._data[t];n||(n=Object.create(null),this._data[t]=n),n[e]=r},t}();function Bi(t){var e=[],r=Object.create(null);return{ObjectValue:{enter:function(){e.push(r),r=Object.create(null)},leave:function(){r=e.pop()}},ObjectField:function(e){var n=e.name.value;r[n]?t.reportError(new I('There can be only one input field named "'.concat(n,'".'),[r[n],e.name])):r[n]=e.name}}}function Ci(t){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r.kind===P.FRAGMENT_SPREAD){var o=r.name.value;if(!0===n[o])return!1;var s=t.getFragment(o);if(!s)return!1;try{return n[o]=!0,e(s,n,i)}finally{n[o]=null}}if(r.kind===P.FIELD&&("fields"===r.name.value||"interfaces"===r.name.value||"possibleTypes"===r.name.value||"inputFields"===r.name.value)&&++i>=3)return!0;if("selectionSet"in r&&r.selectionSet)for(var a=0,A=r.selectionSet.selections;a<A.length;a++)if(e(A[a],n,i))return!0;return!1}return{Field:function(r){if(("__schema"===r.name.value||"__type"===r.name.value)&&e(r))return t.reportError(new I("Maximum introspection depth exceeded",[r])),!1}}}function _i(t){var e,r,n,i=t.getSchema(),o=null!==(e=null!==(r=null!==(n=null==i?void 0:i.astNode)&&void 0!==n?n:null==i?void 0:i.getQueryType())&&void 0!==r?r:null==i?void 0:i.getMutationType())&&void 0!==e?e:null==i?void 0:i.getSubscriptionType(),s=0;return{SchemaDefinition:function(e){o?t.reportError(new I("Cannot define a new schema within a schema extension.",e)):(s>0&&t.reportError(new I("Must provide only one schema definition.",e)),++s)}}}function Ei(t){var e=t.getSchema(),r=Object.create(null),n=e?{query:e.getQueryType(),mutation:e.getMutationType(),subscription:e.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(e){for(var i,o=null!==(i=e.operationTypes)&&void 0!==i?i:[],s=0;s<o.length;s++){var a=o[s],A=a.operation,l=r[A];n[A]?t.reportError(new I("Type for ".concat(A," already defined in the schema. It cannot be redefined."),a)):l?t.reportError(new I("There can be only one ".concat(A," type in schema."),[l,a])):r[A]=a}return!1}}function Si(t){var e=Object.create(null),r=t.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(n){var i=n.name.value;if(null==r||!r.getType(i))return e[i]?t.reportError(new I('There can be only one type named "'.concat(i,'".'),[e[i],n.name])):e[i]=n.name,!1;t.reportError(new I('Type "'.concat(i,'" already exists in the schema. It cannot also be defined in this type definition.'),n.name))}}function Ii(t){var e=t.getSchema(),r=e?e.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(e){var i,o=e.name.value;n[o]||(n[o]=Object.create(null));for(var s=null!==(i=e.values)&&void 0!==i?i:[],a=n[o],A=0;A<s.length;A++){var l=s[A],c=l.name.value,h=r[o];ce(h)&&h.getValue(c)?t.reportError(new I('Enum value "'.concat(o,".").concat(c,'" already exists in the schema. It cannot also be defined in this type extension.'),l.name)):a[c]?t.reportError(new I('Enum value "'.concat(o,".").concat(c,'" can only be defined once.'),[a[c],l.name])):a[c]=l.name}return!1}}function Fi(t){var e=t.getSchema(),r=e?e.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(e){var i,o=e.name.value;n[o]||(n[o]=Object.create(null));for(var s=null!==(i=e.fields)&&void 0!==i?i:[],a=n[o],A=0;A<s.length;A++){var l=s[A],c=l.name.value;Ti(r[o],c)?t.reportError(new I('Field "'.concat(o,".").concat(c,'" already exists in the schema. It cannot also be defined in this type extension.'),l.name)):a[c]?t.reportError(new I('Field "'.concat(o,".").concat(c,'" can only be defined once.'),[a[c],l.name])):a[c]=l.name}return!1}}function Ti(t,e){return!!(ie(t)||se(t)||ue(t))&&null!=t.getFields()[e]}function ki(t){var e=Object.create(null),r=t.getSchema();return{DirectiveDefinition:function(n){var i=n.name.value;if(null==r||!r.getDirective(i))return e[i]?t.reportError(new I('There can be only one directive named "@'.concat(i,'".'),[e[i],n.name])):e[i]=n.name,!1;t.reportError(new I('Directive "@'.concat(i,'" already exists in the schema. It cannot be redefined.'),n.name))}}}function Li(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pi(t){for(var e=t.getSchema(),r=Object.create(null),n=0,i=t.getDocument().definitions;n<i.length;n++){var o=i[n];En(o)&&(r[o.name.value]=o)}return{ScalarTypeExtension:s,ObjectTypeExtension:s,InterfaceTypeExtension:s,UnionTypeExtension:s,EnumTypeExtension:s,InputObjectTypeExtension:s};function s(n){var i,o,s=n.name.value,a=r[s],A=null==e?void 0:e.getType(s);if(a?i=Mi[a.kind]:A&&(i=re(o=A)?P.SCALAR_TYPE_EXTENSION:ie(o)?P.OBJECT_TYPE_EXTENSION:se(o)?P.INTERFACE_TYPE_EXTENSION:Ae(o)?P.UNION_TYPE_EXTENSION:ce(o)?P.ENUM_TYPE_EXTENSION:ue(o)?P.INPUT_OBJECT_TYPE_EXTENSION:void M(0,"Unexpected type: "+H(o))),i){if(i!==n.kind){var l=function(t){switch(t){case P.SCALAR_TYPE_EXTENSION:return"scalar";case P.OBJECT_TYPE_EXTENSION:return"object";case P.INTERFACE_TYPE_EXTENSION:return"interface";case P.UNION_TYPE_EXTENSION:return"union";case P.ENUM_TYPE_EXTENSION:return"enum";case P.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}M(0,"Unexpected kind: "+H(t))}(n.kind);t.reportError(new I("Cannot extend non-".concat(l,' type "').concat(s,'".'),a?[a,n]:n))}}else{var c=Object.keys(r);e&&(c=c.concat(Object.keys(e.getTypeMap())));var h=Qt(s,c);t.reportError(new I('Cannot extend type "'.concat(s,'" because it is not defined.')+Mt(h),n.name))}}}var Mi=(Li(wi={},P.SCALAR_TYPE_DEFINITION,P.SCALAR_TYPE_EXTENSION),Li(wi,P.OBJECT_TYPE_DEFINITION,P.OBJECT_TYPE_EXTENSION),Li(wi,P.INTERFACE_TYPE_DEFINITION,P.INTERFACE_TYPE_EXTENSION),Li(wi,P.UNION_TYPE_DEFINITION,P.UNION_TYPE_EXTENSION),Li(wi,P.ENUM_TYPE_DEFINITION,P.ENUM_TYPE_EXTENSION),Li(wi,P.INPUT_OBJECT_TYPE_DEFINITION,P.INPUT_OBJECT_TYPE_EXTENSION),wi),Di=Object.freeze([Ci]),Ni=Object.freeze([Fn,Tn,kn,Ln,Pn,Dn,Nn,On,Un,Qn,Rn,jn,Hn,Vn,zn,Gn,Kn,qn,Wn,Zn,ti,ei,si,li,ui,Bi].concat(Di)),Oi=Object.freeze([_i,Ei,Si,Ii,Fi,ki,Pn,qn,Wn,Pi,$n,ti,Bi,ai]);function Ui(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Qi=function(){function t(t,e){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=e}var e=t.prototype;return e.reportError=function(t){this._onError(t)},e.getDocument=function(){return this._ast},e.getFragment=function(t){var e=this._fragments;return e||(this._fragments=e=this.getDocument().definitions.reduce(function(t,e){return e.kind===P.FRAGMENT_DEFINITION&&(t[e.name.value]=e),t},Object.create(null))),e[t]},e.getFragmentSpreads=function(t){var e=this._fragmentSpreads.get(t);if(!e){e=[];for(var r=[t];0!==r.length;)for(var n=0,i=r.pop().selections;n<i.length;n++){var o=i[n];o.kind===P.FRAGMENT_SPREAD?e.push(o):o.selectionSet&&r.push(o.selectionSet)}this._fragmentSpreads.set(t,e)}return e},e.getRecursivelyReferencedFragments=function(t){var e=this._recursivelyReferencedFragments.get(t);if(!e){e=[];for(var r=Object.create(null),n=[t.selectionSet];0!==n.length;)for(var i=n.pop(),o=0,s=this.getFragmentSpreads(i);o<s.length;o++){var a=s[o].name.value;if(!0!==r[a]){r[a]=!0;var A=this.getFragment(a);A&&(e.push(A),n.push(A.selectionSet))}}this._recursivelyReferencedFragments.set(t,e)}return e},t}(),Ri=function(t){function e(e,r,n){var i;return(i=t.call(this,e,n)||this)._schema=r,i}return Ui(e,t),e.prototype.getSchema=function(){return this._schema},e}(Qi),ji=function(t){function e(e,r,n,i){var o;return(o=t.call(this,r,i)||this)._schema=e,o._typeInfo=n,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}Ui(e,t);var r=e.prototype;return r.getSchema=function(){return this._schema},r.getVariableUsages=function(t){var e=this._variableUsages.get(t);if(!e){var r=[],n=new mn(this._schema);bt(t,vn(n,{VariableDefinition:function(){return!1},Variable:function(t){r.push({node:t,type:n.getInputType(),defaultValue:n.getDefaultValue()})}})),e=r,this._variableUsages.set(t,e)}return e},r.getRecursiveVariableUsages=function(t){var e=this._recursiveVariableUsages.get(t);if(!e){e=this.getVariableUsages(t);for(var r=0,n=this.getRecursivelyReferencedFragments(t);r<n.length;r++){var i=n[r];e=e.concat(this.getVariableUsages(i))}this._recursiveVariableUsages.set(t,e)}return e},r.getType=function(){return this._typeInfo.getType()},r.getParentType=function(){return this._typeInfo.getParentType()},r.getInputType=function(){return this._typeInfo.getInputType()},r.getParentInputType=function(){return this._typeInfo.getParentInputType()},r.getFieldDef=function(){return this._typeInfo.getFieldDef()},r.getDirective=function(){return this._typeInfo.getDirective()},r.getArgument=function(){return this._typeInfo.getArgument()},r.getEnumValue=function(){return this._typeInfo.getEnumValue()},e}(Qi);function Hi(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ni,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new mn(t),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};e||s(0,"Must provide document."),$r(t);var o=Object.freeze({}),a=[],A=new ji(t,e,n,function(t){if(null!=i.maxErrors&&a.length>=i.maxErrors)throw a.push(new I("Too many validation errors, error limit reached. Validation aborted.")),o;a.push(t)}),l=wt(r.map(function(t){return t(A)}));try{bt(e,vn(n,l))}catch(t){if(t!==o)throw t}return a}function Vi(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oi,n=[],i=new Ri(t,e,function(t){n.push(t)});return bt(t,wt(r.map(function(t){return t(i)}))),n}function zi(t){var e=Object.keys(t),r=e.map(function(e){return t[e]});return Promise.all(r).then(function(t){return t.reduce(function(t,r,n){return t[e[n]]=r,t},Object.create(null))})}function Gi(t,e,r){return{prev:t,key:e,typename:r}}function Ki(t){for(var e=[],r=t;r;)e.push(r.key),r=r.prev;return e.reverse()}function qi(t,e){if("query"===e.operation){var r=t.getQueryType();if(!r)throw new I("Schema does not define the required query root type.",e);return r}if("mutation"===e.operation){var n=t.getMutationType();if(!n)throw new I("Schema is not configured for mutations.",e);return n}if("subscription"===e.operation){var i=t.getSubscriptionType();if(!i)throw new I("Schema is not configured for subscriptions.",e);return i}throw new I("Can only have query, mutation and subscription operations.",e)}function Wi(t){return t.map(function(t){return"number"==typeof t?"["+t.toString()+"]":"."+t}).join("")}function Yi(t,e,r){if(t){if(t.kind===P.VARIABLE){var n=t.name.value;if(null==r||void 0===r[n])return;var i=r[n];if(null===i&&ge(e))return;return i}if(ge(e)){if(t.kind===P.NULL)return;return Yi(t,e.ofType,r)}if(t.kind===P.NULL)return null;if(fe(e)){var o=e.ofType;if(t.kind===P.LIST){for(var s=[],a=0,A=t.values;a<A.length;a++){var l=A[a];if(Xi(l,r)){if(ge(o))return;s.push(null)}else{var c=Yi(l,o,r);if(void 0===c)return;s.push(c)}}return s}var h=Yi(t,o,r);if(void 0===h)return;return[h]}if(ue(e)){if(t.kind!==P.OBJECT)return;for(var u=Object.create(null),p=Tt(t.fields,function(t){return t.name.value}),f=0,d=Ct(e.getFields());f<d.length;f++){var g=d[f],m=p[g.name];if(m&&!Xi(m.value,r)){var y=Yi(m.value,g.type,r);if(void 0===y)return;u[g.name]=y}else if(void 0!==g.defaultValue)u[g.name]=g.defaultValue;else if(ge(g.type))return}return u}if(xe(e)){var v;try{v=e.parseLiteral(t,r)}catch(t){return}if(void 0===v)return;return v}M(0,"Unexpected input type: "+H(e))}}function Xi(t,e){return t.kind===P.VARIABLE&&(null==e||void 0===e[t.name.value])}function Ji(t,e){return $i(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:Zi)}function Zi(t,e,r){var n="Invalid value "+H(e);throw t.length>0&&(n+=' at "value'.concat(Wi(t),'"')),r.message=n+": "+r.message,r}function $i(t,e,r,n){if(ge(e))return null!=t?$i(t,e.ofType,r,n):void r(Ki(n),t,new I('Expected non-nullable type "'.concat(H(e),'" not to be null.')));if(null==t)return null;if(fe(e)){var i=e.ofType,o=Ar(t,function(t,e){var o=Gi(n,e,void 0);return $i(t,i,r,o)});return null!=o?o:[$i(t,i,r,n)]}if(ue(e)){if(!A(t))return void r(Ki(n),t,new I('Expected type "'.concat(e.name,'" to be an object.')));for(var s={},a=e.getFields(),l=0,c=Ct(a);l<c.length;l++){var h=c[l],u=t[h.name];if(void 0!==u)s[h.name]=$i(u,h.type,r,Gi(n,h.name,e.name));else if(void 0!==h.defaultValue)s[h.name]=h.defaultValue;else if(ge(h.type)){var p=H(h.type);r(Ki(n),t,new I('Field "'.concat(h.name,'" of required type "').concat(p,'" was not provided.')))}}for(var f=0,d=Object.keys(t);f<d.length;f++){var g=d[f];if(!a[g]){var m=Qt(g,Object.keys(e.getFields()));r(Ki(n),t,new I('Field "'.concat(g,'" is not defined by type "').concat(e.name,'".')+Mt(m)))}}return s}if(xe(e)){var y;try{y=e.parseValue(t)}catch(i){return void r(Ki(n),t,i instanceof I?i:new I('Expected type "'.concat(e.name,'". ')+i.message,void 0,void 0,void 0,void 0,i))}return void 0===y&&r(Ki(n),t,new I('Expected type "'.concat(e.name,'".'))),y}M(0,"Unexpected input type: "+H(e))}function to(t,e,r){for(var n,i={},o=Tt(null!==(n=e.arguments)&&void 0!==n?n:[],function(t){return t.name.value}),s=0,a=t.args;s<a.length;s++){var A=a[s],l=A.name,c=A.type,h=o[l];if(h){var u=h.value,p=u.kind===P.NULL;if(u.kind===P.VARIABLE){var f=u.name.value;if(null==r||!ro(r,f)){if(void 0!==A.defaultValue)i[l]=A.defaultValue;else if(ge(c))throw new I('Argument "'.concat(l,'" of required type "').concat(H(c),'" ')+'was provided the variable "$'.concat(f,'" which was not provided a runtime value.'),u);continue}p=null==r[f]}if(p&&ge(c))throw new I('Argument "'.concat(l,'" of non-null type "').concat(H(c),'" ')+"must not be null.",u);var d=Yi(u,c,r);if(void 0===d)throw new I('Argument "'.concat(l,'" has invalid value ').concat(Ht(u),"."),u);i[l]=d}else if(void 0!==A.defaultValue)i[l]=A.defaultValue;else if(ge(c))throw new I('Argument "'.concat(l,'" of required type "').concat(H(c),'" ')+"was not provided.",e)}return i}function eo(t,e,r){var n=e.directives&&Bt(e.directives,function(e){return e.name.value===t.name});if(n)return to(t,n,r)}function ro(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function no(t,e,r,n,i,o,s,a){return oo(1===arguments.length?t:{schema:t,document:e,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:a})}function io(t){var e=oo(t);if(o(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function oo(t){var e=t.schema,r=t.document,n=t.rootValue,i=t.contextValue,s=t.variableValues,a=t.operationName,A=t.fieldResolver,l=t.typeResolver;ao(e,r,s);var c=Ao(e,r,n,i,s,a,A,l);if(Array.isArray(c))return{errors:c};var h=function(t,e,r){var n=qi(t.schema,e),i=co(t,n,e.selectionSet,Object.create(null),Object.create(null)),s=void 0;try{var a="mutation"===e.operation?function(t,e,r,n,i){return s=Object.keys(i),a=function(s,a){var A=i[a],l=Gi(n,a,e.name),c=fo(t,e,r,A,l);return void 0===c?s:o(c)?c.then(function(t){return s[a]=t,s}):(s[a]=c,s)},A=Object.create(null),s.reduce(function(t,e){return o(t)?t.then(function(t){return a(t,e)}):a(t,e)},A);var s,a,A}(t,n,r,s,i):lo(t,n,r,s,i);return o(a)?a.then(void 0,function(e){return t.errors.push(e),Promise.resolve(null)}):a}catch(e){return t.errors.push(e),null}}(c,c.operation,n);return so(c,h)}function so(t,e){return o(e)?e.then(function(e){return so(t,e)}):0===t.errors.length?{data:e}:{errors:t.errors,data:e}}function ao(t,e,r){e||s(0,"Must provide document."),$r(t),null==r||A(r)||s(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function Ao(t,e,r,n,i,o,s,a){for(var A,l,c,h=Object.create(null),u=0,p=e.definitions;u<p.length;u++){var f=p[u];switch(f.kind){case P.OPERATION_DEFINITION:if(null==o){if(void 0!==c)return[new I("Must provide operation name if query contains multiple operations.")];c=f}else(null===(A=f.name)||void 0===A?void 0:A.value)===o&&(c=f);break;case P.FRAGMENT_DEFINITION:h[f.name.value]=f}}if(!c)return null!=o?[new I('Unknown operation named "'.concat(o,'".'))]:[new I("Must provide an operation.")];var d=function(t,e,r,n){var i=[],o=null==n?void 0:n.maxErrors;try{var s=function(t,e,r,n){for(var i={},o=function(o){var s=e[o],a=s.variable.name.value,A=gn(t,s.type);if(!ye(A)){var l=Ht(s.type);return n(new I('Variable "$'.concat(a,'" expected value of type "').concat(l,'" which cannot be used as an input type.'),s.type)),"continue"}if(!ro(r,a)){if(s.defaultValue)i[a]=Yi(s.defaultValue,A);else if(ge(A)){var c=H(A);n(new I('Variable "$'.concat(a,'" of required type "').concat(c,'" was not provided.'),s))}return"continue"}var h=r[a];if(null===h&&ge(A)){var u=H(A);return n(new I('Variable "$'.concat(a,'" of non-null type "').concat(u,'" must not be null.'),s)),"continue"}i[a]=Ji(h,A,function(t,e,r){var i='Variable "$'.concat(a,'" got invalid value ')+H(e);t.length>0&&(i+=' at "'.concat(a).concat(Wi(t),'"')),n(new I(i+"; "+r.message,s,void 0,void 0,void 0,r.originalError))})},s=0;s<e.length;s++)o(s);return i}(t,e,r,function(t){if(null!=o&&i.length>=o)throw new I("Too many errors processing variables, error limit reached. Execution aborted.");i.push(t)});if(0===i.length)return{coerced:s}}catch(t){i.push(t)}return{errors:i}}(t,null!==(l=c.variableDefinitions)&&void 0!==l?l:[],null!=i?i:{},{maxErrors:50});return d.errors?d.errors:{schema:t,fragments:h,rootValue:r,contextValue:n,operation:c,variableValues:d.coerced,fieldResolver:null!=s?s:So,typeResolver:null!=a?a:Eo,errors:[]}}function lo(t,e,r,n,i){var s=Object.create(null),a=!1;try{for(var A=0,l=Object.keys(i);A<l.length;A++){var c=l[A],h=fo(t,e,r,i[c],Gi(n,c,e.name));void 0!==h&&(s[c]=h,o(h)&&(a=!0))}}catch(t){if(a)return zi(s).finally(function(){throw t});throw t}return a?zi(s):s}function co(t,e,r,n,i){for(var o=0,s=r.selections;o<s.length;o++){var a=s[o];switch(a.kind){case P.FIELD:if(!ho(t,a))continue;var A=po(a);n[A]||(n[A]=[]),n[A].push(a);break;case P.INLINE_FRAGMENT:if(!ho(t,a)||!uo(t,a,e))continue;co(t,e,a.selectionSet,n,i);break;case P.FRAGMENT_SPREAD:var l=a.name.value;if(i[l]||!ho(t,a))continue;i[l]=!0;var c=t.fragments[l];if(!c||!uo(t,c,e))continue;co(t,e,c.selectionSet,n,i)}}return n}function ho(t,e){var r=eo(jr,e,t.variableValues);if(!0===(null==r?void 0:r.if))return!1;var n=eo(Rr,e,t.variableValues);return!1!==(null==n?void 0:n.if)}function uo(t,e,r){var n=e.typeCondition;if(!n)return!0;var i=gn(t.schema,n);return i===r||!!Ee(i)&&t.schema.isSubType(i,r)}function po(t){return t.alias?t.alias.value:t.name.value}function fo(t,e,r,n,i){var s,a=n[0].name.value,A=Io(t.schema,e,a);if(A){var l=A.type,c=null!==(s=A.resolve)&&void 0!==s?s:t.fieldResolver,h=go(t,A,n,e,i);try{var u,p=c(r,to(A,n[0],t.variableValues),t.contextValue,h);return u=o(p)?p.then(function(e){return yo(t,l,n,h,i,e)}):yo(t,l,n,h,i,p),o(u)?u.then(void 0,function(e){return mo(_t(e,n,Ki(i)),l,t)}):u}catch(e){return mo(_t(e,n,Ki(i)),l,t)}}}function go(t,e,r,n,i){return{fieldName:e.name,fieldNodes:r,returnType:e.type,parentType:n,path:i,schema:t.schema,fragments:t.fragments,rootValue:t.rootValue,operation:t.operation,variableValues:t.variableValues}}function mo(t,e,r){if(ge(e))throw t;return r.errors.push(t),null}function yo(t,e,r,n,i,s){if(s instanceof Error)throw s;if(ge(e)){var a=yo(t,e.ofType,r,n,i,s);if(null===a)throw new Error("Cannot return null for non-nullable field ".concat(n.parentType.name,".").concat(n.fieldName,"."));return a}return null==s?null:fe(e)?function(t,e,r,n,i,s){var a=e.ofType,A=!1,l=Ar(s,function(e,s){var l=Gi(i,s,void 0);try{var c;return c=o(e)?e.then(function(e){return yo(t,a,r,n,l,e)}):yo(t,a,r,n,l,e),o(c)?(A=!0,c.then(void 0,function(e){return mo(_t(e,r,Ki(l)),a,t)})):c}catch(e){return mo(_t(e,r,Ki(l)),a,t)}});if(null==l)throw new I('Expected Iterable, but did not find one for field "'.concat(n.parentType.name,".").concat(n.fieldName,'".'));return A?Promise.all(l):l}(t,e,r,n,i,s):xe(e)?function(t,e){var r=t.serialize(e);if(void 0===r)throw new Error('Expected a value of type "'.concat(H(t),'" but ')+"received: ".concat(H(e)));return r}(e,s):Ee(e)?function(t,e,r,n,i,s){var a,A=null!==(a=e.resolveType)&&void 0!==a?a:t.typeResolver,l=t.contextValue,c=A(s,l,n,e);return o(c)?c.then(function(o){return bo(t,vo(o,t,e,r,n,s),r,n,i,s)}):bo(t,vo(c,t,e,r,n,s),r,n,i,s)}(t,e,r,n,i,s):ie(e)?bo(t,e,r,n,i,s):void M(0,"Cannot complete value of unexpected output type: "+H(e))}function vo(t,e,r,n,i,o){if(null==t)throw new I('Abstract type "'.concat(r.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'". Either the "').concat(r.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),n);var s=De(t)?t.name:t;if("string"!=typeof s)throw new I('Abstract type "'.concat(r.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'" with ')+"value ".concat(H(o),', received "').concat(H(t),'".'));var a=e.schema.getType(s);if(null==a)throw new I('Abstract type "'.concat(r.name,'" was resolve to a type "').concat(s,'" that does not exist inside schema.'),n);if(!ie(a))throw new I('Abstract type "'.concat(r.name,'" was resolve to a non-object type "').concat(s,'".'),n);if(!e.schema.isSubType(r,a))throw new I('Runtime Object type "'.concat(a.name,'" is not a possible type for "').concat(r.name,'".'),n);return a}function bo(t,e,r,n,i,s){if(e.isTypeOf){var a=e.isTypeOf(s,t.contextValue,n);if(o(a))return a.then(function(n){if(!n)throw wo(e,s,r);return xo(t,e,r,i,s)});if(!a)throw wo(e,s,r)}return xo(t,e,r,i,s)}function wo(t,e,r){return new I('Expected value of type "'.concat(t.name,'" but got: ').concat(H(e),"."),r)}function xo(t,e,r,n,i){return lo(t,e,i,n,_o(t,e,r))}var Bo,Co,_o=(Bo=function(t,e,r){for(var n=Object.create(null),i=Object.create(null),o=0;o<r.length;o++){var s=r[o];s.selectionSet&&(n=co(t,e,s.selectionSet,n,i))}return n},function(t,e,r){Co||(Co=new WeakMap);var n,i=Co.get(t);if(i){if(n=i.get(e)){var o=n.get(r);if(void 0!==o)return o}}else i=new WeakMap,Co.set(t,i);n||(n=new WeakMap,i.set(e,n));var s=Bo(t,e,r);return n.set(r,s),s}),Eo=function(t,e,r,n){if(A(t)&&"string"==typeof t.__typename)return t.__typename;for(var i=r.schema.getPossibleTypes(n),s=[],a=0;a<i.length;a++){var l=i[a];if(l.isTypeOf){var c=l.isTypeOf(t,e,r);if(o(c))s[a]=c;else if(c)return l.name}}return s.length?Promise.all(s).then(function(t){for(var e=0;e<t.length;e++)if(t[e])return i[e].name}):void 0},So=function(t,e,r,n){if(A(t)||"function"==typeof t){var i=t[n.fieldName];return"function"==typeof i?t[n.fieldName](e,r,n):i}};function Io(t,e,r){return r===kr.name&&t.getQueryType()===e?kr:r===Lr.name&&t.getQueryType()===e?Lr:r===Pr.name?Pr:e.getFields()[r]}function Fo(t,e,r,n,i,o,s,a){var A=arguments;return new Promise(function(l){return l(ko(1===A.length?t:{schema:t,source:e,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:a}))})}function To(t,e,r,n,i,s,a,A){var l=ko(1===arguments.length?t:{schema:t,source:e,rootValue:r,contextValue:n,variableValues:i,operationName:s,fieldResolver:a,typeResolver:A});if(o(l))throw new Error("GraphQL execution failed to complete synchronously.");return l}function ko(t){var e,r=t.schema,n=t.source,i=t.rootValue,o=t.contextValue,s=t.variableValues,a=t.operationName,A=t.fieldResolver,l=t.typeResolver,c=Zr(r);if(c.length>0)return{errors:c};try{e=ut(n)}catch(t){return{errors:[t]}}var h=Hi(r,e);return h.length>0?{errors:h}:no({schema:r,document:e,rootValue:i,contextValue:o,variableValues:s,operationName:a,fieldResolver:A,typeResolver:l})}function Lo(t){return"function"==typeof(null==t?void 0:t[c])}function Po(t,e){return new Promise(function(r){return r(e(t))})}function Mo(t){return{value:t,done:!1}}function Do(t,e,r,n,i,o,s,a){return function(t){var e=t.schema,r=t.document,n=t.rootValue,i=t.contextValue,o=t.variableValues,s=t.operationName,a=t.fieldResolver,A=t.subscribeFieldResolver,l=Oo(e,r,n,i,o,s,A),h=function(t){return no({schema:e,document:r,rootValue:t,contextValue:i,variableValues:o,operationName:s,fieldResolver:a})};return l.then(function(t){return Lo(t)?function(t,e,r){var n,i,o,s,a,A,l=t[c].call(t);function h(t){return t.done?t:Po(t.value,e).then(Mo,i)}if("function"==typeof l.return&&(n=l.return,i=function(t){var e=function(){return Promise.reject(t)};return n.call(l).then(e,e)}),r){var u=r;o=function(t){return Po(t,u).then(Mo,i)}}return A=function(){return this},(a=c)in(s={next:function(){return l.next().then(h,o)},return:function(){return n?n.call(l).then(h,o):Promise.resolve({value:void 0,done:!0})},throw:function(t){return"function"==typeof l.throw?l.throw(t).then(h,o):Promise.reject(t).catch(i)}})?Object.defineProperty(s,a,{value:A,enumerable:!0,configurable:!0,writable:!0}):s[a]=A,s}(t,h,No):t})}(1===arguments.length?t:{schema:t,document:e,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,subscribeFieldResolver:a})}function No(t){if(t instanceof I)return{errors:[t]};throw t}function Oo(t,e,r,n,i,o,s){return ao(t,e,i),new Promise(function(a){var A=Ao(t,e,r,n,i,o,s);a(Array.isArray(A)?{errors:A}:function(t){var e=t.schema,r=t.operation,n=t.variableValues,i=t.rootValue,o=qi(e,r),s=co(t,o,r.selectionSet,Object.create(null),Object.create(null)),a=Object.keys(s)[0],A=s[a],l=A[0].name.value,c=Io(e,o,l);if(!c)throw new I('The subscription field "'.concat(l,'" is not defined.'),A);var h=Gi(void 0,a,o.name),u=go(t,c,A,o,h);return new Promise(function(e){var r,o=to(c,A[0],n),s=t.contextValue;e((null!==(r=c.subscribe)&&void 0!==r?r:t.fieldResolver)(i,o,s,u))}).then(function(t){if(t instanceof Error)throw _t(t,A,Ki(h));if(!Lo(t))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat(H(t),"."));return t},function(t){throw _t(t,A,Ki(h))})}(A))}).catch(No)}function Uo(t){return{Field:function(e){var r=t.getFieldDef(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){var i=t.getParentType();null!=i||M(0),t.reportError(new I("The field ".concat(i.name,".").concat(r.name," is deprecated. ").concat(n),e))}},Argument:function(e){var r=t.getArgument(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){var i=t.getDirective();if(null!=i)t.reportError(new I('Directive "@'.concat(i.name,'" argument "').concat(r.name,'" is deprecated. ').concat(n),e));else{var o=t.getParentType(),s=t.getFieldDef();null!=o&&null!=s||M(0),t.reportError(new I('Field "'.concat(o.name,".").concat(s.name,'" argument "').concat(r.name,'" is deprecated. ').concat(n),e))}}},ObjectField:function(e){var r=Oe(t.getParentInputType());if(ue(r)){var n=r.getFields()[e.name.value],i=null==n?void 0:n.deprecationReason;null!=i&&t.reportError(new I("The input field ".concat(r.name,".").concat(n.name," is deprecated. ").concat(i),e))}},EnumValue:function(e){var r=t.getEnumValue(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){var i=Oe(t.getInputType());null!=i||M(0),t.reportError(new I('The enum value "'.concat(i.name,".").concat(r.name,'" is deprecated. ').concat(n),e))}}}}function Qo(t){return{Field:function(e){var r=Oe(t.getType());r&&Dr(r)&&t.reportError(new I('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(e.name.value,'".'),e))}}}function Ro(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function jo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ho(t){var e=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ro(Object(r),!0).forEach(function(e){jo(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ro(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},t),r=e.descriptions?"description":"",n=e.specifiedByUrl?"specifiedByUrl":"",i=e.directiveIsRepeatable?"isRepeatable":"",o=e.schemaDescription?r:"";function s(t){return e.inputValueDeprecation?t:""}return"\n    query IntrospectionQuery {\n      __schema {\n        ".concat(o,"\n        queryType { name }\n        mutationType { name }\n        subscriptionType { name }\n        types {\n          ...FullType\n        }\n        directives {\n          name\n          ").concat(r,"\n          ").concat(i,"\n          locations\n          args").concat(s("(includeDeprecated: true)")," {\n            ...InputValue\n          }\n        }\n      }\n    }\n\n    fragment FullType on __Type {\n      kind\n      name\n      ").concat(r,"\n      ").concat(n,"\n      fields(includeDeprecated: true) {\n        name\n        ").concat(r,"\n        args").concat(s("(includeDeprecated: true)")," {\n          ...InputValue\n        }\n        type {\n          ...TypeRef\n        }\n        isDeprecated\n        deprecationReason\n      }\n      inputFields").concat(s("(includeDeprecated: true)")," {\n        ...InputValue\n      }\n      interfaces {\n        ...TypeRef\n      }\n      enumValues(includeDeprecated: true) {\n        name\n        ").concat(r,"\n        isDeprecated\n        deprecationReason\n      }\n      possibleTypes {\n        ...TypeRef\n      }\n    }\n\n    fragment InputValue on __InputValue {\n      name\n      ").concat(r,"\n      type { ...TypeRef }\n      defaultValue\n      ").concat(s("isDeprecated"),"\n      ").concat(s("deprecationReason"),"\n    }\n\n    fragment TypeRef on __Type {\n      kind\n      name\n      ofType {\n        kind\n        name\n        ofType {\n          kind\n          name\n          ofType {\n            kind\n            name\n            ofType {\n              kind\n              name\n              ofType {\n                kind\n                name\n                ofType {\n                  kind\n                  name\n                  ofType {\n                    kind\n                    name\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  ")}function Vo(t,e){for(var r=null,n=0,i=t.definitions;n<i.length;n++){var o,s=i[n];if(s.kind===P.OPERATION_DEFINITION)if(null==e){if(r)return null;r=s}else if((null===(o=s.name)||void 0===o?void 0:o.value)===e)return s}return r}function zo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Go(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ko(t,e){var r=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zo(Object(r),!0).forEach(function(e){Go(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zo(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},e),n=io({schema:t,document:ut(Ho(r))});return!n.errors&&n.data||M(0),n.data}function qo(t,e){A(t)&&A(t.__schema)||s(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat(H(t),"."));for(var r=t.__schema,n=Pt(r.types,function(t){return t.name},function(t){return function(t){if(null!=t&&null!=t.name&&null!=t.kind)switch(t.kind){case Fr.SCALAR:return new Re({name:(n=t).name,description:n.description,specifiedByUrl:n.specifiedByUrl});case Fr.OBJECT:return new je({name:(r=t).name,description:r.description,interfaces:function(){return m(r)},fields:function(){return y(r)}});case Fr.INTERFACE:return new We({name:(e=t).name,description:e.description,interfaces:function(){return m(e)},fields:function(){return y(e)}});case Fr.UNION:return function(t){if(!t.possibleTypes){var e=H(t);throw new Error("Introspection result missing possibleTypes: ".concat(e,"."))}return new Ye({name:t.name,description:t.description,types:function(){return t.possibleTypes.map(d)}})}(t);case Fr.ENUM:return function(t){if(!t.enumValues){var e=H(t);throw new Error("Introspection result missing enumValues: ".concat(e,"."))}return new Je({name:t.name,description:t.description,values:Pt(t.enumValues,function(t){return t.name},function(t){return{description:t.description,deprecationReason:t.deprecationReason}})})}(t);case Fr.INPUT_OBJECT:return function(t){if(!t.inputFields){var e=H(t);throw new Error("Introspection result missing inputFields: ".concat(e,"."))}return new $e({name:t.name,description:t.description,fields:function(){return b(t.inputFields)}})}(t)}var e,r,n,i=H(t);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(i,"."))}(t)}),i=0,o=[].concat(yr,Mr);i<o.length;i++){var a=o[i];n[a.name]&&(n[a.name]=a)}var l=r.queryType?d(r.queryType):null,c=r.mutationType?d(r.mutationType):null,h=r.subscriptionType?d(r.subscriptionType):null,u=r.directives?r.directives.map(function(t){if(!t.args){var e=H(t);throw new Error("Introspection result missing directive args: ".concat(e,"."))}if(!t.locations){var r=H(t);throw new Error("Introspection result missing directive locations: ".concat(r,"."))}return new Qr({name:t.name,description:t.description,isRepeatable:t.isRepeatable,locations:t.locations.slice(),args:b(t.args)})}):[];return new Xr({description:r.description,query:l,mutation:c,subscription:h,types:Ct(n),directives:u,assumeValid:null==e?void 0:e.assumeValid});function p(t){if(t.kind===Fr.LIST){var e=t.ofType;if(!e)throw new Error("Decorated type deeper than introspection query.");return new Ie(p(e))}if(t.kind===Fr.NON_NULL){var r=t.ofType;if(!r)throw new Error("Decorated type deeper than introspection query.");return new Fe(Pe(p(r)))}return f(t)}function f(t){var e=t.name;if(!e)throw new Error("Unknown type reference: ".concat(H(t),"."));var r=n[e];if(!r)throw new Error("Invalid or incomplete schema, unknown type: ".concat(e,". Ensure that a full introspection query is used in order to build a client schema."));return r}function d(t){return oe(f(t))}function g(t){return ae(f(t))}function m(t){if(null===t.interfaces&&t.kind===Fr.INTERFACE)return[];if(!t.interfaces){var e=H(t);throw new Error("Introspection result missing interfaces: ".concat(e,"."))}return t.interfaces.map(g)}function y(t){if(!t.fields)throw new Error("Introspection result missing fields: ".concat(H(t),"."));return Pt(t.fields,function(t){return t.name},v)}function v(t){var e=p(t.type);if(!be(e)){var r=H(e);throw new Error("Introspection must provide output type for fields, but received: ".concat(r,"."))}if(!t.args){var n=H(t);throw new Error("Introspection result missing field args: ".concat(n,"."))}return{description:t.description,deprecationReason:t.deprecationReason,type:e,args:b(t.args)}}function b(t){return Pt(t,function(t){return t.name},w)}function w(t){var e=p(t.type);if(!ye(e)){var r=H(e);throw new Error("Introspection must provide input type for arguments, but received: ".concat(r,"."))}var n=null!=t.defaultValue?Yi(pt(t.defaultValue),e):void 0;return{description:t.description,type:e,defaultValue:n,deprecationReason:t.deprecationReason}}}function Wo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Yo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wo(Object(r),!0).forEach(function(e){Xo(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wo(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Xo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jo(t,e,r){Yr(t),null!=e&&e.kind===P.DOCUMENT||s(0,"Must provide valid Document AST."),!0!==(null==r?void 0:r.assumeValid)&&!0!==(null==r?void 0:r.assumeValidSDL)&&function(t,e){var r=Vi(t,e);if(0!==r.length)throw new Error(r.map(function(t){return t.message}).join("\n\n"))}(e,t);var n=t.toConfig(),i=Zo(n,e,r);return n===i?t:new Xr(i)}function Zo(t,e,r){for(var n,i,o,s,a,A=[],l=Object.create(null),c=[],h=[],u=0,p=e.definitions;u<p.length;u++){var f=p[u];if(f.kind===P.SCHEMA_DEFINITION)a=f;else if(f.kind===P.SCHEMA_EXTENSION)h.push(f);else if(En(f))A.push(f);else if(In(f)){var d=f.name.value,g=l[d];l[d]=g?g.concat([f]):[f]}else f.kind===P.DIRECTIVE_DEFINITION&&c.push(f)}if(0===Object.keys(l).length&&0===A.length&&0===c.length&&0===h.length&&null==a)return t;for(var m=Object.create(null),y=0,v=t.types;y<v.length;y++){var b=v[y];m[b.name]=I(b)}for(var w=0;w<A.length;w++){var x,B=A[w],C=B.name.value;m[C]=null!==(x=$o[C])&&void 0!==x?x:V(B)}var _=Yo(Yo({query:t.query&&S(t.query),mutation:t.mutation&&S(t.mutation),subscription:t.subscription&&S(t.subscription)},a&&k([a])),k(h));return Yo(Yo({description:null===(n=a)||void 0===n||null===(i=n.description)||void 0===i?void 0:i.value},_),{},{types:Ct(m),directives:[].concat(t.directives.map(function(t){var e=t.toConfig();return new Qr(Yo(Yo({},e),{},{args:kt(e.args,T)}))}),c.map(function(t){var e=t.locations.map(function(t){return t.value});return new Qr({name:t.name.value,description:rs(t,r),locations:e,isRepeatable:t.repeatable,args:O(t.arguments),astNode:t})})),extensions:void 0,astNode:null!==(o=a)&&void 0!==o?o:t.astNode,extensionASTNodes:t.extensionASTNodes.concat(h),assumeValid:null!==(s=null==r?void 0:r.assumeValid)&&void 0!==s&&s});function E(t){return fe(t)?new Ie(E(t.ofType)):ge(t)?new Fe(E(t.ofType)):S(t)}function S(t){return m[t.name]}function I(t){return Dr(t)||vr(t)?t:re(t)?function(t){for(var e,r=t.toConfig(),n=null!==(e=l[r.name])&&void 0!==e?e:[],i=r.specifiedByUrl,o=0;o<n.length;o++){var s;i=null!==(s=es(n[o]))&&void 0!==s?s:i}return new Re(Yo(Yo({},r),{},{specifiedByUrl:i,extensionASTNodes:r.extensionASTNodes.concat(n)}))}(t):ie(t)?function(t){var e,r=t.toConfig(),n=null!==(e=l[r.name])&&void 0!==e?e:[];return new je(Yo(Yo({},r),{},{interfaces:function(){return[].concat(t.getInterfaces().map(S),R(n))},fields:function(){return Yo(Yo({},kt(r.fields,F)),N(n))},extensionASTNodes:r.extensionASTNodes.concat(n)}))}(t):se(t)?function(t){var e,r=t.toConfig(),n=null!==(e=l[r.name])&&void 0!==e?e:[];return new We(Yo(Yo({},r),{},{interfaces:function(){return[].concat(t.getInterfaces().map(S),R(n))},fields:function(){return Yo(Yo({},kt(r.fields,F)),N(n))},extensionASTNodes:r.extensionASTNodes.concat(n)}))}(t):Ae(t)?function(t){var e,r=t.toConfig(),n=null!==(e=l[r.name])&&void 0!==e?e:[];return new Ye(Yo(Yo({},r),{},{types:function(){return[].concat(t.getTypes().map(S),j(n))},extensionASTNodes:r.extensionASTNodes.concat(n)}))}(t):ce(t)?function(t){var e,r=t.toConfig(),n=null!==(e=l[t.name])&&void 0!==e?e:[];return new Je(Yo(Yo({},r),{},{values:Yo(Yo({},r.values),Q(n)),extensionASTNodes:r.extensionASTNodes.concat(n)}))}(t):ue(t)?function(t){var e,r=t.toConfig(),n=null!==(e=l[r.name])&&void 0!==e?e:[];return new $e(Yo(Yo({},r),{},{fields:function(){return Yo(Yo({},kt(r.fields,function(t){return Yo(Yo({},t),{},{type:E(t.type)})})),U(n))},extensionASTNodes:r.extensionASTNodes.concat(n)}))}(t):void M(0,"Unexpected type: "+H(t))}function F(t){return Yo(Yo({},t),{},{type:E(t.type),args:kt(t.args,T)})}function T(t){return Yo(Yo({},t),{},{type:E(t.type)})}function k(t){for(var e={},r=0;r<t.length;r++)for(var n,i=null!==(n=t[r].operationTypes)&&void 0!==n?n:[],o=0;o<i.length;o++){var s=i[o];e[s.operation]=L(s.type)}return e}function L(t){var e,r=t.name.value,n=null!==(e=$o[r])&&void 0!==e?e:m[r];if(void 0===n)throw new Error('Unknown type: "'.concat(r,'".'));return n}function D(t){return t.kind===P.LIST_TYPE?new Ie(D(t.type)):t.kind===P.NON_NULL_TYPE?new Fe(D(t.type)):L(t)}function N(t){for(var e=Object.create(null),n=0;n<t.length;n++)for(var i,o=null!==(i=t[n].fields)&&void 0!==i?i:[],s=0;s<o.length;s++){var a=o[s];e[a.name.value]={type:D(a.type),description:rs(a,r),args:O(a.arguments),deprecationReason:ts(a),astNode:a}}return e}function O(t){for(var e=null!=t?t:[],n=Object.create(null),i=0;i<e.length;i++){var o=e[i],s=D(o.type);n[o.name.value]={type:s,description:rs(o,r),defaultValue:Yi(o.defaultValue,s),deprecationReason:ts(o),astNode:o}}return n}function U(t){for(var e=Object.create(null),n=0;n<t.length;n++)for(var i,o=null!==(i=t[n].fields)&&void 0!==i?i:[],s=0;s<o.length;s++){var a=o[s],A=D(a.type);e[a.name.value]={type:A,description:rs(a,r),defaultValue:Yi(a.defaultValue,A),deprecationReason:ts(a),astNode:a}}return e}function Q(t){for(var e=Object.create(null),n=0;n<t.length;n++)for(var i,o=null!==(i=t[n].values)&&void 0!==i?i:[],s=0;s<o.length;s++){var a=o[s];e[a.name.value]={description:rs(a,r),deprecationReason:ts(a),astNode:a}}return e}function R(t){for(var e=[],r=0;r<t.length;r++)for(var n,i=null!==(n=t[r].interfaces)&&void 0!==n?n:[],o=0;o<i.length;o++){var s=i[o];e.push(L(s))}return e}function j(t){for(var e=[],r=0;r<t.length;r++)for(var n,i=null!==(n=t[r].types)&&void 0!==n?n:[],o=0;o<i.length;o++){var s=i[o];e.push(L(s))}return e}function V(t){var e,n=t.name.value,i=rs(t,r),o=null!==(e=l[n])&&void 0!==e?e:[];switch(t.kind){case P.OBJECT_TYPE_DEFINITION:var s=o,a=[t].concat(s);return new je({name:n,description:i,interfaces:function(){return R(a)},fields:function(){return N(a)},astNode:t,extensionASTNodes:s});case P.INTERFACE_TYPE_DEFINITION:var A=o,c=[t].concat(A);return new We({name:n,description:i,interfaces:function(){return R(c)},fields:function(){return N(c)},astNode:t,extensionASTNodes:A});case P.ENUM_TYPE_DEFINITION:var h=o,u=[t].concat(h);return new Je({name:n,description:i,values:Q(u),astNode:t,extensionASTNodes:h});case P.UNION_TYPE_DEFINITION:var p=o,f=[t].concat(p);return new Ye({name:n,description:i,types:function(){return j(f)},astNode:t,extensionASTNodes:p});case P.SCALAR_TYPE_DEFINITION:var d=o;return new Re({name:n,description:i,specifiedByUrl:es(t),astNode:t,extensionASTNodes:d});case P.INPUT_OBJECT_TYPE_DEFINITION:var g=o,m=[t].concat(g);return new $e({name:n,description:i,fields:function(){return U(m)},astNode:t,extensionASTNodes:g})}M(0,"Unexpected type definition node: "+H(t))}}var $o=Tt(yr.concat(Mr),function(t){return t.name});function ts(t){var e=eo(Vr,t);return null==e?void 0:e.reason}function es(t){var e=eo(zr,t);return null==e?void 0:e.url}function rs(t,e){if(t.description)return t.description.value;if(!0===(null==e?void 0:e.commentDescriptions)){var r=function(t){var e=t.loc;if(e){for(var r=[],n=e.startToken.prev;null!=n&&n.kind===R.COMMENT&&n.next&&n.prev&&n.line+1===n.next.line&&n.line!==n.prev.line;){var i=String(n.value);r.push(i),n=n.prev}return r.length>0?r.reverse().join("\n"):void 0}}(t);if(void 0!==r)return Y("\n"+r)}}function ns(t,e){null!=t&&t.kind===P.DOCUMENT||s(0,"Must provide valid Document AST."),!0!==(null==e?void 0:e.assumeValid)&&!0!==(null==e?void 0:e.assumeValidSDL)&&function(t){var e=Vi(t);if(0!==e.length)throw new Error(e.map(function(t){return t.message}).join("\n\n"))}(t);var r=Zo({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},t,e);if(null==r.astNode)for(var n=0,i=r.types;n<i.length;n++){var o=i[n];switch(o.name){case"Query":r.query=o;break;case"Mutation":r.mutation=o;break;case"Subscription":r.subscription=o}}for(var a=r.directives,A=function(t){var e=Gr[t];a.every(function(t){return t.name!==e.name})&&a.push(e)},l=0;l<Gr.length;l++)A(l);return new Xr(r)}function is(t,e){return ns(ut(t,{noLocation:null==e?void 0:e.noLocation,allowLegacySDLEmptyFields:null==e?void 0:e.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==e?void 0:e.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==e?void 0:e.experimentalFragmentVariables}),{commentDescriptions:null==e?void 0:e.commentDescriptions,assumeValidSDL:null==e?void 0:e.assumeValidSDL,assumeValid:null==e?void 0:e.assumeValid})}function os(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ss(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?os(Object(r),!0).forEach(function(e){as(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):os(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function as(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function As(t){var e=t.toConfig(),r=Pt(cs(e.types),function(t){return t.name},function(t){if(re(t)||Dr(t))return t;if(ie(t)){var e=t.toConfig();return new je(ss(ss({},e),{},{interfaces:function(){return A(e.interfaces)},fields:function(){return a(e.fields)}}))}if(se(t)){var r=t.toConfig();return new We(ss(ss({},r),{},{interfaces:function(){return A(r.interfaces)},fields:function(){return a(r.fields)}}))}if(Ae(t)){var i=t.toConfig();return new Ye(ss(ss({},i),{},{types:function(){return A(i.types)}}))}if(ce(t)){var o=t.toConfig();return new Je(ss(ss({},o),{},{values:ls(o.values)}))}if(ue(t)){var s=t.toConfig();return new $e(ss(ss({},s),{},{fields:function(){return ls(s.fields,function(t){return ss(ss({},t),{},{type:n(t.type)})})}}))}M(0,"Unexpected type: "+H(t))});return new Xr(ss(ss({},e),{},{types:Ct(r),directives:cs(e.directives).map(function(t){var e=t.toConfig();return new Qr(ss(ss({},e),{},{locations:hs(e.locations,function(t){return t}),args:s(e.args)}))}),query:o(e.query),mutation:o(e.mutation),subscription:o(e.subscription)}));function n(t){return fe(t)?new Ie(n(t.ofType)):ge(t)?new Fe(n(t.ofType)):i(t)}function i(t){return r[t.name]}function o(t){return t&&i(t)}function s(t){return ls(t,function(t){return ss(ss({},t),{},{type:n(t.type)})})}function a(t){return ls(t,function(t){return ss(ss({},t),{},{type:n(t.type),args:s(t.args)})})}function A(t){return cs(t).map(i)}}function ls(t,e){for(var r=Object.create(null),n=hs(Object.keys(t),function(t){return t}),i=0;i<n.length;i++){var o=n[i],s=t[o];r[o]=e?e(s):s}return r}function cs(t){return hs(t,function(t){return t.name})}function hs(t,e){return t.slice().sort(function(t,r){return Nt(e(t),e(r))})}function us(t,e){return ds(t,function(t){return!Kr(t)},fs,e)}function ps(t,e){return ds(t,Kr,Dr,e)}function fs(t){return!vr(t)&&!Dr(t)}function ds(t,e,r,n){var i=t.getDirectives().filter(e),o=Ct(t.getTypeMap()).filter(r);return[gs(t)].concat(i.map(function(t){return function(t,e){return Cs(e,t)+"directive @"+t.name+ws(e,t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}(t,n)}),o.map(function(t){return ms(t,n)})).filter(Boolean).join("\n\n")+"\n"}function gs(t){if(null!=t.description||!function(t){var e=t.getQueryType();if(e&&"Query"!==e.name)return!1;var r=t.getMutationType();if(r&&"Mutation"!==r.name)return!1;var n=t.getSubscriptionType();return!n||"Subscription"===n.name}(t)){var e=[],r=t.getQueryType();r&&e.push("  query: ".concat(r.name));var n=t.getMutationType();n&&e.push("  mutation: ".concat(n.name));var i=t.getSubscriptionType();return i&&e.push("  subscription: ".concat(i.name)),Cs({},t)+"schema {\n".concat(e.join("\n"),"\n}")}}function ms(t,e){return re(t)?function(t,e){return Cs(e,t)+"scalar ".concat(t.name)+function(t){if(null==t.specifiedByUrl)return"";var e=br(t.specifiedByUrl,dr);return e||M(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+Ht(e)+")"}(t)}(t,e):ie(t)?function(t,e){return Cs(e,t)+"type ".concat(t.name)+ys(t)+vs(e,t)}(t,e):se(t)?function(t,e){return Cs(e,t)+"interface ".concat(t.name)+ys(t)+vs(e,t)}(t,e):Ae(t)?function(t,e){var r=t.getTypes(),n=r.length?" = "+r.join(" | "):"";return Cs(e,t)+"union "+t.name+n}(t,e):ce(t)?function(t,e){var r=t.getValues().map(function(t,r){return Cs(e,t,"  ",!r)+"  "+t.name+Bs(t.deprecationReason)});return Cs(e,t)+"enum ".concat(t.name)+bs(r)}(t,e):ue(t)?function(t,e){var r=Ct(t.getFields()).map(function(t,r){return Cs(e,t,"  ",!r)+"  "+xs(t)});return Cs(e,t)+"input ".concat(t.name)+bs(r)}(t,e):void M(0,"Unexpected type: "+H(t))}function ys(t){var e=t.getInterfaces();return e.length?" implements "+e.map(function(t){return t.name}).join(" & "):""}function vs(t,e){return bs(Ct(e.getFields()).map(function(e,r){return Cs(t,e,"  ",!r)+"  "+e.name+ws(t,e.args,"  ")+": "+String(e.type)+Bs(e.deprecationReason)}))}function bs(t){return 0!==t.length?" {\n"+t.join("\n")+"\n}":""}function ws(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===e.length?"":e.every(function(t){return!t.description})?"("+e.map(xs).join(", ")+")":"(\n"+e.map(function(e,n){return Cs(t,e,"  "+r,!n)+"  "+r+xs(e)}).join("\n")+"\n"+r+")"}function xs(t){var e=br(t.defaultValue,t.type),r=t.name+": "+String(t.type);return e&&(r+=" = ".concat(Ht(e))),r+Bs(t.deprecationReason)}function Bs(t){if(null==t)return"";var e=br(t,dr);return e&&t!==Hr?" @deprecated(reason: "+Ht(e)+")":" @deprecated"}function Cs(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=e.description;return null==i?"":!0===(null==t?void 0:t.commentDescriptions)?function(t,e,r){return(e&&!r?"\n":"")+t.split("\n").map(function(t){return e+(""!==t?"# "+t:"#")}).join("\n")+"\n"}(i,r,n):(r&&!n?"\n"+r:r)+Z(i,"",i.length>70).replace(/\n/g,"\n"+r)+"\n"}function _s(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];e=e.concat(n.definitions)}return{kind:"Document",definitions:e}}function Es(t){for(var e=[],r=Object.create(null),n=0,i=t.definitions;n<i.length;n++){var o=i[n];switch(o.kind){case P.OPERATION_DEFINITION:e.push(o);break;case P.FRAGMENT_DEFINITION:r[o.name.value]=Is(o.selectionSet)}}for(var s=Object.create(null),a=function(n){for(var i=e[n],o=new Set,a=0,A=Is(i.selectionSet);a<A.length;a++){var l=A[a];Ss(o,r,l)}var c=i.name?i.name.value:"";s[c]={kind:P.DOCUMENT,definitions:t.definitions.filter(function(t){return t===i||t.kind===P.FRAGMENT_DEFINITION&&o.has(t.name.value)})}},A=0;A<e.length;A++)a(A);return s}function Ss(t,e,r){if(!t.has(r)){t.add(r);var n=e[r];if(void 0!==n)for(var i=0;i<n.length;i++)Ss(t,e,n[i])}}function Is(t){var e=[];return bt(t,{FragmentSpread:function(t){e.push(t.name.value)}}),e}function Fs(t){for(var e=q(t)?t:new K(t),r=e.body,n=new $(e),i="",o=!1;n.advance().kind!==R.EOF;){var s=n.token,a=s.kind,A=!tt(s.kind);o&&(A||s.kind===R.SPREAD)&&(i+=" ");var l=r.slice(s.start,s.end);a===R.BLOCK_STRING?i+=Ts(l):i+=l,o=A}return i}function Ts(t){var e=Y(t.slice(3,-3));J(e)>0&&(e="\n"+e);var r=e[e.length-1];return('"'===r&&'\\"""'!==e.slice(-4)||"\\"===r)&&(e+="\n"),'"""'+e+'"""'}function ks(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Ls(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ks(Object(r),!0).forEach(function(e){Ps(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ks(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Ps(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ms=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),Ds=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function Ns(t,e){return Us(t,e).filter(function(t){return t.type in Ms})}function Os(t,e){return Us(t,e).filter(function(t){return t.type in Ds})}function Us(t,e){return[].concat(function(t,e){for(var r=[],n=Ys(Ct(t.getTypeMap()),Ct(e.getTypeMap())),i=0,o=n.removed;i<o.length;i++){var s=o[i];r.push({type:Ms.TYPE_REMOVED,description:vr(s)?"Standard scalar ".concat(s.name," was removed because it is not referenced anymore."):"".concat(s.name," was removed.")})}for(var a=0,A=n.persisted;a<A.length;a++){var l=A[a],c=l[0],h=l[1];ce(c)&&ce(h)?r.push.apply(r,js(c,h)):Ae(c)&&Ae(h)?r.push.apply(r,Rs(c,h)):ue(c)&&ue(h)?r.push.apply(r,Qs(c,h)):ie(c)&&ie(h)||se(c)&&se(h)?r.push.apply(r,Vs(c,h).concat(Hs(c,h))):c.constructor!==h.constructor&&r.push({type:Ms.TYPE_CHANGED_KIND,description:"".concat(c.name," changed from ")+"".concat(qs(c)," to ").concat(qs(h),".")})}return r}(t,e),function(t,e){for(var r=[],n=Ys(t.getDirectives(),e.getDirectives()),i=0,o=n.removed;i<o.length;i++){var s=o[i];r.push({type:Ms.DIRECTIVE_REMOVED,description:"".concat(s.name," was removed.")})}for(var a=0,A=n.persisted;a<A.length;a++){for(var l=A[a],c=l[0],h=l[1],u=Ys(c.args,h.args),p=0,f=u.added;p<f.length;p++){var d=f[p];qe(d)&&r.push({type:Ms.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(d.name," on directive ").concat(c.name," was added.")})}for(var g=0,m=u.removed;g<m.length;g++){var y=m[g];r.push({type:Ms.DIRECTIVE_ARG_REMOVED,description:"".concat(y.name," was removed from ").concat(c.name,".")})}c.isRepeatable&&!h.isRepeatable&&r.push({type:Ms.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(c.name,".")});for(var v=0,b=c.locations;v<b.length;v++){var w=b[v];-1===h.locations.indexOf(w)&&r.push({type:Ms.DIRECTIVE_LOCATION_REMOVED,description:"".concat(w," was removed from ").concat(c.name,".")})}}return r}(t,e))}function Qs(t,e){for(var r=[],n=Ys(Ct(t.getFields()),Ct(e.getFields())),i=0,o=n.added;i<o.length;i++){var s=o[i];er(s)?r.push({type:Ms.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(s.name," on input type ").concat(t.name," was added.")}):r.push({type:Ds.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(s.name," on input type ").concat(t.name," was added.")})}for(var a=0,A=n.removed;a<A.length;a++){var l=A[a];r.push({type:Ms.FIELD_REMOVED,description:"".concat(t.name,".").concat(l.name," was removed.")})}for(var c=0,h=n.persisted;c<h.length;c++){var u=h[c],p=u[0],f=u[1];Ks(p.type,f.type)||r.push({type:Ms.FIELD_CHANGED_KIND,description:"".concat(t.name,".").concat(p.name," changed type from ")+"".concat(String(p.type)," to ").concat(String(f.type),".")})}return r}function Rs(t,e){for(var r=[],n=Ys(t.getTypes(),e.getTypes()),i=0,o=n.added;i<o.length;i++){var s=o[i];r.push({type:Ds.TYPE_ADDED_TO_UNION,description:"".concat(s.name," was added to union type ").concat(t.name,".")})}for(var a=0,A=n.removed;a<A.length;a++){var l=A[a];r.push({type:Ms.TYPE_REMOVED_FROM_UNION,description:"".concat(l.name," was removed from union type ").concat(t.name,".")})}return r}function js(t,e){for(var r=[],n=Ys(t.getValues(),e.getValues()),i=0,o=n.added;i<o.length;i++){var s=o[i];r.push({type:Ds.VALUE_ADDED_TO_ENUM,description:"".concat(s.name," was added to enum type ").concat(t.name,".")})}for(var a=0,A=n.removed;a<A.length;a++){var l=A[a];r.push({type:Ms.VALUE_REMOVED_FROM_ENUM,description:"".concat(l.name," was removed from enum type ").concat(t.name,".")})}return r}function Hs(t,e){for(var r=[],n=Ys(t.getInterfaces(),e.getInterfaces()),i=0,o=n.added;i<o.length;i++){var s=o[i];r.push({type:Ds.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(s.name," added to interfaces implemented by ").concat(t.name,".")})}for(var a=0,A=n.removed;a<A.length;a++){var l=A[a];r.push({type:Ms.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(t.name," no longer implements interface ").concat(l.name,".")})}return r}function Vs(t,e){for(var r=[],n=Ys(Ct(t.getFields()),Ct(e.getFields())),i=0,o=n.removed;i<o.length;i++){var s=o[i];r.push({type:Ms.FIELD_REMOVED,description:"".concat(t.name,".").concat(s.name," was removed.")})}for(var a=0,A=n.persisted;a<A.length;a++){var l=A[a],c=l[0],h=l[1];r.push.apply(r,zs(t,c,h)),Gs(c.type,h.type)||r.push({type:Ms.FIELD_CHANGED_KIND,description:"".concat(t.name,".").concat(c.name," changed type from ")+"".concat(String(c.type)," to ").concat(String(h.type),".")})}return r}function zs(t,e,r){for(var n=[],i=Ys(e.args,r.args),o=0,s=i.removed;o<s.length;o++){var a=s[o];n.push({type:Ms.ARG_REMOVED,description:"".concat(t.name,".").concat(e.name," arg ").concat(a.name," was removed.")})}for(var A=0,l=i.persisted;A<l.length;A++){var c=l[A],h=c[0],u=c[1];if(Ks(h.type,u.type)){if(void 0!==h.defaultValue)if(void 0===u.defaultValue)n.push({type:Ds.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(t.name,".").concat(e.name," arg ").concat(h.name," defaultValue was removed.")});else{var p=Ws(h.defaultValue,h.type),f=Ws(u.defaultValue,u.type);p!==f&&n.push({type:Ds.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(t.name,".").concat(e.name," arg ").concat(h.name," has changed defaultValue from ").concat(p," to ").concat(f,".")})}}else n.push({type:Ms.ARG_CHANGED_KIND,description:"".concat(t.name,".").concat(e.name," arg ").concat(h.name," has changed type from ")+"".concat(String(h.type)," to ").concat(String(u.type),".")})}for(var d=0,g=i.added;d<g.length;d++){var m=g[d];qe(m)?n.push({type:Ms.REQUIRED_ARG_ADDED,description:"A required arg ".concat(m.name," on ").concat(t.name,".").concat(e.name," was added.")}):n.push({type:Ds.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(m.name," on ").concat(t.name,".").concat(e.name," was added.")})}return n}function Gs(t,e){return fe(t)?fe(e)&&Gs(t.ofType,e.ofType)||ge(e)&&Gs(t,e.ofType):ge(t)?ge(e)&&Gs(t.ofType,e.ofType):De(e)&&t.name===e.name||ge(e)&&Gs(t,e.ofType)}function Ks(t,e){return fe(t)?fe(e)&&Ks(t.ofType,e.ofType):ge(t)?ge(e)&&Ks(t.ofType,e.ofType)||!ge(e)&&Ks(t.ofType,e):De(e)&&t.name===e.name}function qs(t){return re(t)?"a Scalar type":ie(t)?"an Object type":se(t)?"an Interface type":Ae(t)?"a Union type":ce(t)?"an Enum type":ue(t)?"an Input type":void M(0,"Unexpected type: "+H(t))}function Ws(t,e){var r=br(t,e);return null!=r||M(0),Ht(bt(r,{ObjectValue:function(t){var e=[].concat(t.fields);return e.sort(function(t,e){return Nt(t.name.value,e.name.value)}),Ls(Ls({},t),{},{fields:e})}}))}function Ys(t,e){for(var r=[],n=[],i=[],o=Tt(t,function(t){return t.name}),s=Tt(e,function(t){return t.name}),a=0;a<t.length;a++){var A=t[a],l=s[A.name];void 0===l?n.push(A):i.push([A,l])}for(var c=0;c<e.length;c++){var h=e[c];void 0===o[h.name]&&r.push(h)}return{added:r,persisted:i,removed:n}}function Xs(t,e){return Hi(t,e,[Uo])}},234(t,e,r){"use strict";function n(t,e){if(!Boolean(t))throw new Error(e)}r.d(e,{U:()=>n})},55565(t,e,r){"use strict";function n(t){return i(t,[])}function i(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,e){if(null===t)return"null";if(e.includes(t))return"[Circular]";const r=[...e,t];if(function(t){return"function"==typeof t.toJSON}(t)){const e=t.toJSON();if(e!==t)return"string"==typeof e?e:i(e,r)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";const r=Math.min(10,t.length),n=t.length-r,o=[];for(let n=0;n<r;++n)o.push(i(t[n],e));return 1===n?o.push("... 1 more item"):n>1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}(t,r);return function(t,e){const r=Object.entries(t);if(0===r.length)return"{}";if(e.length>2)return"["+function(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"==typeof t.constructor){const e=t.constructor.name;if("string"==typeof e&&""!==e)return e}return e}(t)+"]";const n=r.map(([t,r])=>t+": "+i(r,e));return"{ "+n.join(", ")+" }"}(t,r)}(t,e);default:return String(t)}}r.d(e,{N:()=>n})},34695(t,e,r){"use strict";r.d(e,{Ll:()=>a,aD:()=>o,aZ:()=>n,cE:()=>A,ou:()=>i});class n{constructor(t,e,r){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(t,e,r,n,i,o){this.kind=t,this.start=e,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},s=new Set(Object.keys(o));function a(t){const e=null==t?void 0:t.kind;return"string"==typeof e&&s.has(e)}let A;!function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(A||(A={}))},22359(t,e,r){"use strict";function n(t){const e=t.split(/\r\n|[\n\r]/g),r=function(t){var e;let r=!0,n=!0,i=0,o=null;for(let e=0;e<t.length;++e)switch(t.charCodeAt(e)){case 13:10===t.charCodeAt(e+1)&&++e;case 10:r=!1,n=!0,i=0;break;case 9:case 32:++i;break;default:n&&!r&&(null===o||i<o)&&(o=i),n=!1}return null!==(e=o)&&void 0!==e?e:0}(t);if(0!==r)for(let t=1;t<e.length;t++)e[t]=e[t].slice(r);let n=0;for(;n<e.length&&i(e[n]);)++n;let o=e.length;for(;o>n&&i(e[o-1]);)--o;return e.slice(n,o).join("\n")}function i(t){for(const e of t)if(" "!==e&&"\t"!==e)return!1;return!0}function o(t,e=!1){const r=!t.includes("\n"),n=t.startsWith(" ")||t.startsWith("\t"),i=t.endsWith('"'),o=t.endsWith("\\"),s=!r||i||o||e;let a="";return!s||r&&n||(a+="\n"),a+=t,s&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}r.d(e,{i$:()=>n,yo:()=>o})},49270(t,e,r){"use strict";let n;r.d(e,{b:()=>n}),function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},96891(t,e,r){"use strict";r.d(e,{VK:()=>i});var n=r(49270);function i(t){return t.kind===n.b.FIELD||t.kind===n.b.FRAGMENT_SPREAD||t.kind===n.b.INLINE_FRAGMENT}},74831(t,e,r){"use strict";r.d(e,{y:()=>A});var n=r(85517),i=r(22359);const o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function s(t){return a[t.charCodeAt(0)]}const a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function A(t){return(0,n.YR)(t,l)}const l={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>c(t.definitions,"\n\n")},OperationDefinition:{leave(t){const e=u("(",c(t.variableDefinitions,", "),")"),r=c([t.operation,c([t.name,e]),c(t.directives," ")]," ");return("query"===r?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n})=>t+": "+e+u(" = ",r)+u(" ",c(n," "))},SelectionSet:{leave:({selections:t})=>h(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:i}){const o=u("",t,": ")+e;let s=o+u("(",c(r,", "),")");return s.length>80&&(s=o+u("(\n",p(c(r,"\n")),"\n)")),c([s,c(n," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+u(" ",c(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>c(["...",u("on ",t),c(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${t}${u("(",c(r,", "),")")} on ${e} ${u("",c(n," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?(0,i.yo)(t):`"${t.replace(o,s)}"`},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+c(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+c(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+u("(",c(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>u("",t,"\n")+c(["schema",c(e," "),h(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>u("",t,"\n")+c(["scalar",e,c(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>u("",t,"\n")+c(["type",e,u("implements ",c(r," & ")),c(n," "),h(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:n,directives:i})=>u("",t,"\n")+e+(f(r)?u("(\n",p(c(r,"\n")),"\n)"):u("(",c(r,", "),")"))+": "+n+u(" ",c(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:n,directives:i})=>u("",t,"\n")+c([e+": "+r,u("= ",n),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>u("",t,"\n")+c(["interface",e,u("implements ",c(r," & ")),c(n," "),h(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:n})=>u("",t,"\n")+c(["union",e,c(r," "),u("= ",c(n," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:n})=>u("",t,"\n")+c(["enum",e,c(r," "),h(n)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>u("",t,"\n")+c([e,c(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:n})=>u("",t,"\n")+c(["input",e,c(r," "),h(n)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,repeatable:n,locations:i})=>u("",t,"\n")+"directive @"+e+(f(r)?u("(\n",p(c(r,"\n")),"\n)"):u("(",c(r,", "),")"))+(n?" repeatable":"")+" on "+c(i," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>c(["extend schema",c(t," "),h(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>c(["extend scalar",t,c(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>c(["extend type",t,u("implements ",c(e," & ")),c(r," "),h(n)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>c(["extend interface",t,u("implements ",c(e," & ")),c(r," "),h(n)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>c(["extend union",t,c(e," "),u("= ",c(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>c(["extend enum",t,c(e," "),h(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>c(["extend input",t,c(e," "),h(r)]," ")}};function c(t,e=""){var r;return null!==(r=null==t?void 0:t.filter(t=>t).join(e))&&void 0!==r?r:""}function h(t){return u("{\n",p(c(t,"\n")),"\n}")}function u(t,e,r=""){return null!=e&&""!==e?t+e+r:""}function p(t){return u("  ",t.replace(/\n/g,"\n  "))}function f(t){var e;return null!==(e=null==t?void 0:t.some(t=>t.includes("\n")))&&void 0!==e&&e}},85517(t,e,r){"use strict";r.d(e,{YR:()=>A,sP:()=>a});var n=r(55565),i=r(234),o=r(34695),s=r(49270);const a=Object.freeze({});function A(t,e,r=o.aD){const A=new Map;for(const t of Object.values(s.b))A.set(t,l(e,t));let c,h,u,p,f=Array.isArray(t),d=[t],g=-1,m=[];const y=[],v=[];let b=t;do{g++;const t=g===d.length,s=t&&0!==m.length;if(t){if(u=0===v.length?void 0:y[y.length-1],h=p,p=v.pop(),s)if(f){h=h.slice();let t=0;for(const[e,r]of m){const n=e-t;null===r?(h.splice(n,1),t++):h[n]=r}}else{h=Object.defineProperties({},Object.getOwnPropertyDescriptors(h));for(const[t,e]of m)h[t]=e}g=c.index,d=c.keys,m=c.edits,f=c.inArray,c=c.prev}else{if(u=p?f?g:d[g]:void 0,h=p?p[u]:b,null==h)continue;p&&y.push(u)}let l;if(!Array.isArray(h)){var w,x;(0,o.Ll)(h)||(0,i.U)(!1,`Invalid AST Node: ${(0,n.N)(h)}.`);const r=t?null===(w=A.get(h.kind))||void 0===w?void 0:w.leave:null===(x=A.get(h.kind))||void 0===x?void 0:x.enter;if(l=null==r?void 0:r.call(e,h,u,p,y,v),l===a)break;if(!1===l){if(!t){y.pop();continue}}else if(void 0!==l&&(m.push([u,l]),!t)){if(!(0,o.Ll)(l)){y.pop();continue}h=l}}var B;void 0===l&&s&&m.push([u,h]),t?y.pop():(c={inArray:f,index:g,keys:d,edits:m,prev:c},f=Array.isArray(h),d=f?h:null!==(B=r[h.kind])&&void 0!==B?B:[],g=-1,m=[],p&&v.push(p),p=h)}while(void 0!==c);return 0!==m.length&&(b=m[m.length-1][1]),b}function l(t,e){const r=t[e];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}},25722(t,e,r){"use strict";r.d(e,{H:()=>w});var n=r(12172),i=r(40562),o=r(10150);const s=/[ \t\n\f\r]/g;function a(t){return""===t.replace(s,"")}var A=r(639),l=r(74946),c=r(67389),h=r(34683),u=r(41832),p=r(69974),f=r(48112);const d={}.hasOwnProperty,g=new Map,m=/[A-Z]/g,y=new Set(["table","tbody","thead","tfoot","tr"]),v=new Set(["td","th"]),b="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function w(t,e){if(!e||void 0===e.Fragment)throw new TypeError("Expected `Fragment` in options");const r=e.filePath||void 0;let n;if(e.development){if("function"!=typeof e.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=function(t,e){return function(r,n,i,o){const s=Array.isArray(i.children),a=(0,p.PW)(r);return e(n,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:t,lineNumber:a?a.line:void 0},void 0)}}(r,e.jsxDEV)}else{if("function"!=typeof e.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof e.jsxs)throw new TypeError("Expected `jsxs` in production options");i=e.jsx,o=e.jsxs,n=function(t,e,r,n){const s=Array.isArray(r.children)?o:i;return n?s(e,r,n):s(e,r)}}var i,o;const s={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:n,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:!1!==e.passKeys,passNode:e.passNode||!1,schema:"svg"===e.space?A.JW:A.qy,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==e.tableCellAlignToStyle},a=x(s,t,void 0);return a&&"string"!=typeof a?a:s.create(t,s.Fragment,{children:a||void 0},void 0)}function x(t,e,r){return"element"===e.type?function(t,e,r){const n=t.schema;let i=n;"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(i=A.JW,t.schema=i),t.ancestors.push(e);const o=S(t,e.tagName,!1),s=function(t,e){const r={};let n,i;for(i in e.properties)if("children"!==i&&d.call(e.properties,i)){const o=E(t,i,e.properties[i]);if(o){const[i,s]=o;t.tableCellAlignToStyle&&"align"===i&&"string"==typeof s&&v.has(e.tagName)?n=s:r[i]=s}}return n&&((r.style||(r.style={}))["css"===t.stylePropertyNameCase?"text-align":"textAlign"]=n),r}(t,e);let l=_(t,e);return y.has(e.tagName)&&(l=l.filter(function(t){return"string"!=typeof t||!("object"==typeof(e=t)?"text"===e.type&&a(e.value):a(e));var e})),B(t,s,o,e),C(s,l),t.ancestors.pop(),t.schema=n,t.create(e,o,s,r)}(t,e,r):"mdxFlowExpression"===e.type||"mdxTextExpression"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater){const r=e.data.estree.body[0];return(0,i.ok)("ExpressionStatement"===r.type),t.evaluater.evaluateExpression(r.expression)}I(t,e.position)}(t,e):"mdxJsxFlowElement"===e.type||"mdxJsxTextElement"===e.type?function(t,e,r){const n=t.schema;let o=n;"svg"===e.name&&"html"===n.space&&(o=A.JW,t.schema=o),t.ancestors.push(e);const s=null===e.name?t.Fragment:S(t,e.name,!0),a=function(t,e){const r={};for(const n of e.attributes)if("mdxJsxExpressionAttribute"===n.type)if(n.data&&n.data.estree&&t.evaluater){const e=n.data.estree.body[0];(0,i.ok)("ExpressionStatement"===e.type);const o=e.expression;(0,i.ok)("ObjectExpression"===o.type);const s=o.properties[0];(0,i.ok)("SpreadElement"===s.type),Object.assign(r,t.evaluater.evaluateExpression(s.argument))}else I(t,e.position);else{const o=n.name;let s;if(n.value&&"object"==typeof n.value)if(n.value.data&&n.value.data.estree&&t.evaluater){const e=n.value.data.estree.body[0];(0,i.ok)("ExpressionStatement"===e.type),s=t.evaluater.evaluateExpression(e.expression)}else I(t,e.position);else s=null===n.value||n.value;r[o]=s}return r}(t,e),l=_(t,e);return B(t,a,s,e),C(a,l),t.ancestors.pop(),t.schema=n,t.create(e,s,a,r)}(t,e,r):"mdxjsEsm"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);I(t,e.position)}(t,e):"root"===e.type?function(t,e,r){const n={};return C(n,_(t,e)),t.create(e,t.Fragment,n,r)}(t,e,r):"text"===e.type?function(t,e){return e.value}(0,e):void 0}function B(t,e,r,n){"string"!=typeof r&&r!==t.Fragment&&t.passNode&&(e.node=n)}function C(t,e){if(e.length>0){const r=e.length>1?e:e[0];r&&(t.children=r)}}function _(t,e){const r=[];let n=-1;const i=t.passKeys?new Map:g;for(;++n<e.children.length;){const o=e.children[n];let s;if(t.passKeys){const t="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(t){const e=i.get(t)||0;s=t+"-"+e,i.set(t,e+1)}}const a=x(t,o,s);void 0!==a&&r.push(a)}return r}function E(t,e,r){const i=(0,l.I)(t.schema,e);if(!(null==r||"number"==typeof r&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?(0,n.A)(r):(0,h.A)(r)),"style"===i.property){let e="object"==typeof r?r:function(t,e){try{return u(e,{reactCompat:!0})}catch(e){if(t.ignoreInvalidStyle)return{};const r=e,n=new f.o("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=b+"#cannot-parse-style-attribute",n}}(t,String(r));return"css"===t.stylePropertyNameCase&&(e=function(t){const e={};let r;for(r in t)d.call(t,r)&&(e[F(r)]=t[r]);return e}(e)),["style",e]}return["react"===t.elementAttributeNameCase&&i.space?c.H[i.property]||i.property:i.attribute,r]}}function S(t,e,r){let n;if(r)if(e.includes(".")){const t=e.split(".");let r,s=-1;for(;++s<t.length;){const e=(0,o.UU)(t[s])?{type:"Identifier",name:t[s]}:{type:"Literal",value:t[s]};r=r?{type:"MemberExpression",object:r,property:e,computed:Boolean(s&&"Literal"===e.type),optional:!1}:e}(0,i.ok)(r,"always a result"),n=r}else n=(0,o.UU)(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};else n={type:"Literal",value:e};if("Literal"===n.type){const e=n.value;return d.call(t.components,e)?t.components[e]:e}if(t.evaluater)return t.evaluater.evaluateExpression(n);I(t)}function I(t,e){const r=new f.o("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=b+"#cannot-handle-mdx-estrees-without-createevaluater",r}function F(t){let e=t.replace(m,T);return"ms-"===e.slice(0,3)&&(e="-"+e),e}function T(t){return"-"+t.toLowerCase()}},37519(t,e,r){"use strict";r.d(e,{$:()=>n});const n={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]}},52076(t,e,r){"use strict";r.d(e,{Ay:()=>oa});class n{constructor(t,e,r,n){this.left=t,this.top=e,this.width=r,this.height=n}add(t,e,r,i){return new n(this.left+t,this.top+e,this.width+r,this.height+i)}static fromClientRect(t,e){return new n(e.left+t.windowBounds.left,e.top+t.windowBounds.top,e.width,e.height)}static fromDOMRectList(t,e){const r=Array.from(e);let i=r.find(t=>0!==t.width);return i||(i=r.find(t=>0!==t.height)),!i&&r.length>0&&(i=r[0]),i?new n(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height):n.EMPTY}}n.EMPTY=new n(0,0,0,0);const i=(t,e)=>n.fromClientRect(t,e.getBoundingClientRect());for(var o=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=t.charCodeAt(r++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),r--)}else e.push(i)}return e},s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";for(var n=[],i=-1,o="";++i<r;){var s=t[i];s<=65535?n.push(s):(s-=65536,n.push(55296+(s>>10),s%1024+56320)),(i+1===r||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},a="undefined"==typeof Uint8Array?[]:new Uint8Array(256),A=0;A<64;A++)a["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(A)]=A;for(var l="undefined"==typeof Uint8Array?[]:new Uint8Array(256),c=0;c<64;c++)l["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(c)]=c;for(var h=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},u=function(){function t(t,e,r,n,i,o){this.initialValue=t,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=o}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),p="undefined"==typeof Uint8Array?[]:new Uint8Array(256),f=0;f<64;f++)p["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(f)]=f;var d,g,m,y,v,b,w,x,B=10,C=13,_=15,E=17,S=18,I=19,F=20,T=21,k=22,L=24,P=25,M=26,D=27,N=28,O=30,U=32,Q=33,R=34,j=35,H=37,V=38,z=39,G=40,K=42,q=[9001,65288],W="×",Y="÷",X=(y=function(t){var e,r,n,i,o,s=.75*t.length,a=t.length,A=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),h=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<a;e+=4)r=l[t.charCodeAt(e)],n=l[t.charCodeAt(e+1)],i=l[t.charCodeAt(e+2)],o=l[t.charCodeAt(e+3)],h[A++]=r<<2|n>>4,h[A++]=(15&n)<<4|i>>2,h[A++]=(3&i)<<6|63&o;return c}("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=="),v=Array.isArray(y)?function(t){for(var e=t.length,r=[],n=0;n<e;n+=4)r.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return r}(y):new Uint32Array(y),b=Array.isArray(y)?function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r.push(t[n+1]<<8|t[n]);return r}(y):new Uint16Array(y),w=h(b,12,v[4]/2),x=2===v[5]?h(b,(24+v[4])/2):(d=v,g=Math.ceil((24+v[4])/4),d.slice?d.slice(g,m):new Uint32Array(Array.prototype.slice.call(d,g,m))),new u(v[0],v[1],v[2],v[3],w,x)),J=[O,36],Z=[1,2,3,5],$=[B,8],tt=[D,M],et=Z.concat($),rt=[V,z,G,R,j],nt=[_,C],it=function(t,e,r,n){var i=n[r];if(Array.isArray(t)?-1!==t.indexOf(i):t===i)for(var o=r;o<=n.length;){if((A=n[++o])===e)return!0;if(A!==B)break}if(i===B)for(o=r;o>0;){var s=n[--o];if(Array.isArray(t)?-1!==t.indexOf(s):t===s)for(var a=r;a<=n.length;){var A;if((A=n[++a])===e)return!0;if(A!==B)break}if(s!==B)break}return!1},ot=function(t,e){for(var r=t;r>=0;){var n=e[r];if(n!==B)return n;r--}return 0},st=function(t,e,r,n,i){if(0===r[n])return W;var o=n-1;if(Array.isArray(i)&&!0===i[o])return W;var s=o-1,a=o+1,A=e[o],l=s>=0?e[s]:0,c=e[a];if(2===A&&3===c)return W;if(-1!==Z.indexOf(A))return"!";if(-1!==Z.indexOf(c))return W;if(-1!==$.indexOf(c))return W;if(8===ot(o,e))return Y;if(11===X.get(t[o]))return W;if((A===U||A===Q)&&11===X.get(t[a]))return W;if(7===A||7===c)return W;if(9===A)return W;if(-1===[B,C,_].indexOf(A)&&9===c)return W;if(-1!==[E,S,I,L,N].indexOf(c))return W;if(ot(o,e)===k)return W;if(it(23,k,o,e))return W;if(it([E,S],T,o,e))return W;if(it(12,12,o,e))return W;if(A===B)return Y;if(23===A||23===c)return W;if(16===c||16===A)return Y;if(-1!==[C,_,T].indexOf(c)||14===A)return W;if(36===l&&-1!==nt.indexOf(A))return W;if(A===N&&36===c)return W;if(c===F)return W;if(-1!==J.indexOf(c)&&A===P||-1!==J.indexOf(A)&&c===P)return W;if(A===D&&-1!==[H,U,Q].indexOf(c)||-1!==[H,U,Q].indexOf(A)&&c===M)return W;if(-1!==J.indexOf(A)&&-1!==tt.indexOf(c)||-1!==tt.indexOf(A)&&-1!==J.indexOf(c))return W;if(-1!==[D,M].indexOf(A)&&(c===P||-1!==[k,_].indexOf(c)&&e[a+1]===P)||-1!==[k,_].indexOf(A)&&c===P||A===P&&-1!==[P,N,L].indexOf(c))return W;if(-1!==[P,N,L,E,S].indexOf(c))for(var h=o;h>=0;){if((u=e[h])===P)return W;if(-1===[N,L].indexOf(u))break;h--}if(-1!==[D,M].indexOf(c))for(h=-1!==[E,S].indexOf(A)?s:o;h>=0;){var u;if((u=e[h])===P)return W;if(-1===[N,L].indexOf(u))break;h--}if(V===A&&-1!==[V,z,R,j].indexOf(c)||-1!==[z,R].indexOf(A)&&-1!==[z,G].indexOf(c)||-1!==[G,j].indexOf(A)&&c===G)return W;if(-1!==rt.indexOf(A)&&-1!==[F,M].indexOf(c)||-1!==rt.indexOf(c)&&A===D)return W;if(-1!==J.indexOf(A)&&-1!==J.indexOf(c))return W;if(A===L&&-1!==J.indexOf(c))return W;if(-1!==J.concat(P).indexOf(A)&&c===k&&-1===q.indexOf(t[a])||-1!==J.concat(P).indexOf(c)&&A===S)return W;if(41===A&&41===c){for(var p=r[o],f=1;p>0&&41===e[--p];)f++;if(f%2!=0)return W}return A===U&&c===Q?W:Y},at=function(){function t(t,e,r,n){this.codePoints=t,this.required="!"===e,this.start=r,this.end=n}return t.prototype.slice=function(){return s.apply(void 0,this.codePoints.slice(this.start,this.end))},t}();const At=45,lt=43,ct=-1,ht=t=>t>=48&&t<=57,ut=t=>ht(t)||t>=65&&t<=70||t>=97&&t<=102,pt=t=>10===t||9===t||32===t,ft=t=>(t=>(t=>t>=97&&t<=122)(t)||(t=>t>=65&&t<=90)(t))(t)||(t=>t>=128)(t)||95===t,dt=t=>ft(t)||ht(t)||t===At,gt=t=>t>=0&&t<=8||11===t||t>=14&&t<=31||127===t,mt=(t,e)=>92===t&&10!==e,yt=(t,e,r)=>t===At?ft(e)||mt(e,r):!!ft(t)||!(92!==t||!mt(t,e)),vt=(t,e,r)=>t===lt||t===At?!!ht(e)||46===e&&ht(r):ht(46===t?e:t),bt=t=>{let e=0,r=1;t[e]!==lt&&t[e]!==At||(t[e]===At&&(r=-1),e++);const n=[];for(;ht(t[e]);)n.push(t[e++]);const i=n.length?parseInt(s(...n),10):0;46===t[e]&&e++;const o=[];for(;ht(t[e]);)o.push(t[e++]);const a=o.length,A=a?parseInt(s(...o),10):0;69!==t[e]&&101!==t[e]||e++;let l=1;t[e]!==lt&&t[e]!==At||(t[e]===At&&(l=-1),e++);const c=[];for(;ht(t[e]);)c.push(t[e++]);const h=c.length?parseInt(s(...c),10):0;return r*(i+A*Math.pow(10,-a))*Math.pow(10,l*h)},wt={type:2},xt={type:3},Bt={type:4},Ct={type:13},_t={type:8},Et={type:21},St={type:9},It={type:10},Ft={type:11},Tt={type:12},kt={type:14},Lt={type:23},Pt={type:1},Mt={type:25},Dt={type:24},Nt={type:26},Ot={type:27},Ut={type:28},Qt={type:29},Rt={type:31},jt={type:32};class Ht{constructor(){this._value=[]}write(t){this._value=this._value.concat(o(t))}read(){const t=[];let e=this.consumeToken();for(;e!==jt;)t.push(e),e=this.consumeToken();return t}consumeToken(){const t=this.consumeCodePoint();switch(t){case 34:return this.consumeStringToken(34);case 35:const e=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(dt(e)||mt(r,n)){const t=yt(e,r,n)?2:1;return{type:5,value:this.consumeName(),flags:t}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ct;break;case 39:return this.consumeStringToken(39);case 40:return wt;case 41:return xt;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),kt;break;case lt:if(vt(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return Bt;case At:const i=t,o=this.peekCodePoint(0),s=this.peekCodePoint(1);if(vt(i,o,s))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(yt(i,o,s))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(o===At&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),Dt;break;case 46:if(vt(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){let t=this.consumeCodePoint();if(42===t&&(t=this.consumeCodePoint(),47===t))return this.consumeToken();if(t===ct)return this.consumeToken()}break;case 58:return Nt;case 59:return Ot;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===At&&this.peekCodePoint(2)===At)return this.consumeCodePoint(),this.consumeCodePoint(),Mt;break;case 64:const a=this.peekCodePoint(0),A=this.peekCodePoint(1),l=this.peekCodePoint(2);if(yt(a,A,l))return{type:7,value:this.consumeName()};break;case 91:return Ut;case 92:if(mt(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return Qt;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_t;break;case 123:return Ft;case 125:return Tt;case 117:case 85:const c=this.peekCodePoint(0),h=this.peekCodePoint(1);return c!==lt||!ut(h)&&63!==h||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),St;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Et;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),It;break;case ct:return jt}return pt(t)?(this.consumeWhiteSpace(),Rt):ht(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):ft(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:s(t)}}consumeCodePoint(){const t=this._value.shift();return void 0===t?-1:t}reconsumeCodePoint(t){this._value.unshift(t)}peekCodePoint(t){return t>=this._value.length?-1:this._value[t]}consumeUnicodeRangeToken(){const t=[];let e=this.consumeCodePoint();for(;ut(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();let r=!1;for(;63===e&&t.length<6;)t.push(e),e=this.consumeCodePoint(),r=!0;if(r)return{type:30,start:parseInt(s(...t.map(t=>63===t?48:t)),16),end:parseInt(s(...t.map(t=>63===t?70:t)),16)};const n=parseInt(s(...t),16);if(this.peekCodePoint(0)===At&&ut(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();const t=[];for(;ut(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();return{type:30,start:n,end:parseInt(s(...t),16)}}return{type:30,start:n,end:n}}consumeIdentLikeToken(){const t=this.consumeName();return"url"===t.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}}consumeUrlToken(){const t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ct)return{type:22,value:""};const e=this.peekCodePoint(0);if(39===e||34===e){const t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ct||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Lt)}for(;;){const e=this.consumeCodePoint();if(e===ct||41===e)return{type:22,value:s(...t)};if(pt(e))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ct||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:s(...t)}):(this.consumeBadUrlRemnants(),Lt);if(34===e||39===e||40===e||gt(e))return this.consumeBadUrlRemnants(),Lt;if(92===e){if(!mt(e,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Lt;t.push(this.consumeEscapedCodePoint())}else t.push(e)}}consumeWhiteSpace(){for(;pt(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){const t=this.consumeCodePoint();if(41===t||t===ct)return;mt(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(t){let e="";for(;t>0;){const r=Math.min(5e4,t);e+=s(...this._value.splice(0,r)),t-=r}return this._value.shift(),e}consumeStringToken(t){let e="",r=0;for(;;){const n=this._value[r];if(n===ct||void 0===n||n===t)return e+=this.consumeStringSlice(r),{type:0,value:e};if(10===n)return this._value.splice(0,r),Pt;if(92===n){const t=this._value[r+1];t!==ct&&void 0!==t&&(10===t?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):mt(n,t)&&(e+=this.consumeStringSlice(r),e+=s(this.consumeEscapedCodePoint()),r=-1))}r++}}consumeNumber(){const t=[];let e=4,r=this.peekCodePoint(0);for(r!==lt&&r!==At||t.push(this.consumeCodePoint());ht(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0);let n=this.peekCodePoint(1);if(46===r&&ht(n))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;ht(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);const i=this.peekCodePoint(2);if((69===r||101===r)&&((n===lt||n===At)&&ht(i)||ht(n)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;ht(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[bt(t),e]}consumeNumericToken(){const[t,e]=this.consumeNumber(),r=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);return yt(r,n,i)?{type:15,number:t,flags:e,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:e}):{type:17,number:t,flags:e}}consumeEscapedCodePoint(){const t=this.consumeCodePoint();if(ut(t)){let e=s(t);for(;ut(this.peekCodePoint(0))&&e.length<6;)e+=s(this.consumeCodePoint());pt(this.peekCodePoint(0))&&this.consumeCodePoint();const r=parseInt(e,16);return 0===r||(t=>t>=55296&&t<=57343)(r)||r>1114111?65533:r}return t===ct?65533:t}consumeName(){let t="";for(;;){const e=this.consumeCodePoint();if(dt(e))t+=s(e);else{if(!mt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=s(this.consumeEscapedCodePoint())}}}}class Vt{constructor(t){this._tokens=t}static create(t){const e=new Ht;return e.write(t),new Vt(e.read())}static parseValue(t){return Vt.create(t).parseComponentValue()}static parseValues(t){return Vt.create(t).parseComponentValues()}parseComponentValue(){let t=this.consumeToken();for(;31===t.type;)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);const e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const t=[];for(;;){const e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}}consumeComponentValue(){const t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t}consumeSimpleBlock(t){const e={type:t,values:[]};let r=this.consumeToken();for(;;){if(32===r.type||Zt(r,t))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}}consumeFunction(t){const e={name:t.value,values:[],type:18};for(;;){const t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}}consumeToken(){const t=this._tokens.shift();return void 0===t?jt:t}reconsumeToken(t){this._tokens.unshift(t)}}const zt=t=>15===t.type,Gt=t=>17===t.type,Kt=t=>20===t.type,qt=t=>0===t.type,Wt=(t,e)=>Kt(t)&&t.value===e,Yt=t=>31!==t.type,Xt=t=>31!==t.type&&4!==t.type,Jt=t=>{const e=[];let r=[];return t.forEach(t=>{if(4===t.type){if(0===r.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(r),void(r=[])}31!==t.type&&r.push(t)}),r.length&&e.push(r),e},Zt=(t,e)=>11===e&&12===t.type||28===e&&29===t.type||2===e&&3===t.type,$t=t=>17===t.type||15===t.type,te=t=>16===t.type||$t(t),ee=t=>t.length>1?[t[0],t[1]]:[t[0]],re={type:17,number:0,flags:4},ne={type:16,number:50,flags:4},ie={type:16,number:100,flags:4},oe=(t,e,r)=>{const[n,i]=t;return[se(n,e),se(void 0!==i?i:n,r)]},se=(t,e)=>{if(16===t.type)return t.number/100*e;if(zt(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},ae="grad",Ae="turn",le=(t,e)=>{if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case ae:return Math.PI/200*e.number;case"rad":return e.number;case Ae:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},ce=t=>15===t.type&&("deg"===t.unit||t.unit===ae||"rad"===t.unit||t.unit===Ae),he=t=>{switch(t.filter(Kt).map(t=>t.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[re,re];case"to top":case"bottom":return ue(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[re,ie];case"to right":case"left":return ue(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ie,ie];case"to bottom":case"top":return ue(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ie,re];case"to left":case"right":return ue(270)}return 0},ue=t=>Math.PI*t/180,pe=t=>!(255&t),fe=t=>{const e=255&t,r=255&t>>8,n=255&t>>16,i=255&t>>24;return e<255?`rgba(${i},${n},${r},${e/255})`:`rgb(${i},${n},${r})`},de=(t,e,r,n)=>(t<<24|e<<16|r<<8|Math.round(255*n))>>>0,ge=(t,e)=>{if(17===t.type)return t.number;if(16===t.type){const r=3===e?1:255;return 3===e?t.number/100*r:Math.round(t.number/100*r)}return 0},me=t=>"from"===(20===t[0].type?t[0].value:"unknown"),ye=(t,e,r)=>Math.min(Math.max(t,e),r),ve=(t,e)=>[t[0]*e[0]+t[1]*e[1]+t[2]*e[2],t[3]*e[0]+t[4]*e[1]+t[5]*e[2],t[6]*e[0]+t[7]*e[1]+t[8]*e[2]],be=([t,e,r,n])=>{const i=Ue([t,e,r]);return de(ye(Math.round(255*i[0]),0,255),ye(Math.round(255*i[1]),0,255),ye(Math.round(255*i[2]),0,255),n)},we=t=>{const e=Ne([t[0],t[1],t[2]]);return be([e[0],e[1],e[2],t[3]])},xe=(t,e)=>{const r=e.filter(Xt),[n,i,o,s]=r;return[(17===n.type?ue(n.number):le(0,n))/(2*Math.PI),te(i)?i.number/100:0,te(o)?o.number/100:0,void 0!==s&&te(s)?se(s,1):1]},Be=(t,e)=>{if(me(e))throw new Error("Relative color not supported for hsl()");const[r,n,i,o]=xe(0,e),s=Te([r,n,i]);return de(255*s[0],255*s[1],255*s[2],0===n?1:o)},Ce=t=>{const e=t.filter(Xt);return[te(e[0])?e[0].number:0,te(e[1])?e[1].number:0,Gt(e[2])||zt(e[2])?e[2].number:0,void 0!==e[4]&&te(e[4])?se(e[4],1):1]},_e=t=>{const e=t.filter(Xt);return[16===e[0].type?e[0].number/100:Gt(e[0])?e[0].number:0,16===e[1].type?e[1].number/100:Gt(e[1])?e[1].number:0,Gt(e[2])||zt(e[2])?e[2].number:0,void 0!==e[4]&&te(e[4])?se(e[4],1):1]},Ee=t=>{const e=t.filter(Xt);return[16===e[0].type?e[0].number/100:Gt(e[0])?e[0].number:0,16===e[1].type?e[1].number/100:Gt(e[1])?e[1].number:0,Gt(e[2])||zt(e[2])?e[2].number:0,void 0!==e[4]&&te(e[4])?se(e[4],1):1]},Se=t=>ve([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],t),Ie=t=>ve([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],t),Fe=(t,e,r)=>(r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-t)*r*6+t:r<.5?e:r<2/3?6*(e-t)*(2/3-r)+t:t),Te=([t,e,r])=>{if(0===e)return[255*r,255*r,255*r];const n=r<=.5?r*(e+1):r+e-r*e,i=2*r-n;return[Fe(i,n,t+1/3),Fe(i,n,t),Fe(i,n,t-1/3)]},ke=([t,e,r])=>(e<0&&(e=0),isNaN(r)&&(r=0),[t,e*Math.cos(r*Math.PI/180),e*Math.sin(r*Math.PI/180)]),Le=t=>{const e=ve([1,.3963377773761749,.2158037573099136,1,-.1055613458156586,-.0638541728258133,1,-.0894841775298119,-1.2914855480194092],t).map(t=>t**3);return ve([1.2268798758459243,-.5578149944602171,.2813910456659647,-.0405757452148008,1.112286803280317,-.0717110580655164,-.0763729366746601,-.4214933324022432,1.5869240198367816],e)},Pe=t=>{const e=(t[0]+16)/116,r=t[1]/500+e,n=e-t[2]/200,i=24389/27,o=24/116,s=[.3457*(r>o?r**3:(116*r-16)/i)/.3585,t[0]>8?e**3:t[0]/i,.2958*(n>o?n**3:(116*n-16)/i)/.3585];return Ie([s[0],s[1],s[2]])},Me=t=>t,De=t=>we([t[0],t[1],t[2],t[3]]),Ne=t=>ve([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],t),Oe=t=>ve([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],t),Ue=t=>t.map(t=>{const e=t<0?-1:1,r=Math.abs(t);return r>.0031308?e*(1.055*r**(1/2.4)-.055):12.92*t}),Qe=t=>t.map(t=>{const e=t<0?-1:1,r=Math.abs(t);return r<=.04045?t/12.92:e*((r+.055)/1.055)**2.4}),Re=1.09929682680944,je=.018053968510807,He=(t,e)=>{if(18===e.type){const r=We[e.name];if(void 0===r)throw new Error(`Attempting to parse an unsupported color function "${e.name}"`);return r(t,e.values)}if(5===e.type){const[t,r,n,i]=Ve(e);return de(t,r,n,i)}if(20===e.type){const t=Xe[e.value.toUpperCase()];if(void 0!==t)return t}return Xe.TRANSPARENT},Ve=t=>{if(3===t.value.length){const e=t.value.substring(0,1),r=t.value.substring(1,2),n=t.value.substring(2,3);return[parseInt(e+e,16),parseInt(r+r,16),parseInt(n+n,16),1]}if(4===t.value.length){const e=t.value.substring(0,1),r=t.value.substring(1,2),n=t.value.substring(2,3),i=t.value.substring(3,4);return[parseInt(e+e,16),parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16)/255]}if(6===t.value.length){const e=t.value.substring(0,2),r=t.value.substring(2,4),n=t.value.substring(4,6);return[parseInt(e,16),parseInt(r,16),parseInt(n,16),1]}if(8===t.value.length){const e=t.value.substring(0,2),r=t.value.substring(2,4),n=t.value.substring(4,6),i=t.value.substring(6,8);return[parseInt(e,16),parseInt(r,16),parseInt(n,16),parseInt(i,16)/255]}return[0,0,0,1]},ze=(t,e)=>{const r=e.filter(Xt);if(me(r))throw new Error("Relative color not supported for rgb()");if(3===r.length){const[t,e,n]=r.map(ge);return de(t,e,n,1)}if(4===r.length){const[t,e,n,i]=r.map(ge);return de(t,e,n,i)}if(5===r.length&&6===r[3].type&&"/"===r[3].value){const t=ge(r[0],0),e=ge(r[1],1),n=ge(r[2],2),i=ge(r[4],3);return de(t,e,n,i)}return 0},Ge={srgb:t=>de(ye(Math.round(255*t[0]),0,255),ye(Math.round(255*t[1]),0,255),ye(Math.round(255*t[2]),0,255),ye(t[3],0,1)),"srgb-linear":be,"display-p3":t=>{const e=(t=>{const e=[t[0],t[1],t[2]].map(t=>{const e=t<0?-1:1;return t*e<=.04045?t/12.92:e*((t+.055)/1.055)**2.4||0});var r;return r=[e[0],e[1],e[2]],ve([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],r)})([t[0],t[1],t[2]]);return we([e[0],e[1],e[2],t[3]])},"a98-rgb":t=>{const e=Ne((r=(t=>{const e=t.map(t=>(t<0?-1:1)*Math.abs(t)**(563/256));return[e[0],e[1],e[2]]})([t[0],t[1],t[2]]),ve([.5766690429101305,.1855582379065463,.1882286462349947,.29734497525053605,.6273635662554661,.0752914584939978,.02703136138641234,.07068885253582723,.9913375368376388],r)));var r;return be([e[0],e[1],e[2],t[3]])},"prophoto-rgb":t=>{const e=(t=>{const e=[t[0],t[1],t[2]].map(t=>t<16/512?t/16:t**1.8);return Ie((r=[e[0],e[1],e[2]],ve([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],r)));var r})([t[0],t[1],t[2]]);return we([e[0],e[1],e[2],t[3]])},xyz:De,"xyz-d50":t=>{const e=(t=>Ie([t[0],t[1],t[2]]))([t[0],t[1],t[2]]);return we([e[0],e[1],e[2],t[3]])},"xyz-d65":De,rec2020:t=>{const e=(t=>{const e=(t=>t.map(function(t){return t<4.5*je?t/4.5:Math.pow((t+Re-1)/Re,1/.45)}))([t[0],t[1],t[2]]);return r=[e[0],e[1],e[2]],ve([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],r);var r})([t[0],t[1],t[2]]);return we([e[0],e[1],e[2],t[3]])}},Ke={rgb:(t,e)=>{const r=e.filter(Xt);if(3===r.length){const[t,e,n]=r.map(ge),i=Qe([t/255,e/255,n/255]),[o,s,a]=Oe([i[0],i[1],i[2]]);return[o,s,a,1]}if(4===r.length){const[t,e,n,i]=r.map(ge),o=Qe([t/255,e/255,n/255]),[s,a,A]=Oe([o[0],o[1],o[2]]);return[s,a,A,i]}return[0,0,0,1]},hsl:(t,e)=>{const[r,n,i,o]=xe(0,e),s=Qe(Te([r,n,i])),[a,A,l]=Oe([s[0],s[1],s[2]]);return[a,A,l,o]},lab:(t,e)=>{const[r,n,i,o]=_e(e),[s,a,A]=Pe([r,n,i]);return[s,a,A,o]},lch:(t,e)=>{const[r,n,i,o]=Ce(e),[s,a,A]=Pe(ke([r,n,i]));return[s,a,A,o]},oklab:(t,e)=>{const[r,n,i,o]=_e(e),[s,a,A]=Le([r,n,i]);return[s,a,A,o]},oklch:(t,e)=>{const[r,n,i,o]=Ee(e),[s,a,A]=Le(ke([r,n,i]));return[s,a,A,o]}},qe={srgb:t=>{const[e,r,n]=Ue(Ne([t[0],t[1],t[2]]));return[e,r,n,t[3]]},"srgb-linear":t=>{const[e,r,n]=Ne([t[0],t[1],t[2]]);return[ye(Math.round(255*e),0,255),ye(Math.round(255*r),0,255),ye(Math.round(255*n),0,255),t[3]]},"display-p3":t=>{const[e,r,n]=(o=[t[0],t[1],t[2]],i=ve([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],o),Ue(i));var i,o;return[e,r,n,t[3]]},"a98-rgb":t=>{const[e,r,n]=(t=>{const e=t.map(t=>(t<0?-1:1)*Math.abs(t)**(256/563));return[e[0],e[1],e[2]]})((i=[t[0],t[1],t[2]],ve([2.0415879038107465,-.5650069742788596,-.34473135077832956,-.9692436362808795,1.8759675015077202,.04155505740717557,.013444280632031142,-.11836239223101838,1.0151749943912054],i)));var i;return[e,r,n,t[3]]},"prophoto-rgb":t=>{const[e,r,n]=(i=Se([t[0],t[1],t[2]]),ve([1.3457868816471583,-.25557208737979464,-.05110186497554526,-.5446307051249019,1.5082477428451468,.02052744743642139,0,0,1.2119675456389452],i).map(t=>t>1/512?t**(1/1.8):16*t));var i;return[e,r,n,t[3]]},xyz:Me,"xyz-d50":t=>{const[e,r,n]=Se([t[0],t[2],t[3]]);return[e,r,n,t[3]]},"xyz-d65":Me,rec2020:t=>{const[e,r,n]=(t=>t.map(function(t){return t>=je?Re*Math.pow(t,.45)-(Re-1):4.5*t}))((i=[t[0],t[1],t[2]],ve([1.716651187971268,-.355670783776392,-.25336628137366,-.666684351832489,1.616481236634939,.0157685458139111,.017639857445311,-.042770613257809,.942103121235474],i)));var i;return[e,r,n,t[3]]}},We={hsl:Be,hsla:Be,rgb:ze,rgba:ze,lch:(t,e)=>{if(me(e.filter(Xt)))throw new Error("Relative color not supported for lch()");const[r,n,i,o]=Ce(e),s=Ue(Ne(Pe(ke([r,n,i]))));return de(ye(Math.round(255*s[0]),0,255),ye(Math.round(255*s[1]),0,255),ye(Math.round(255*s[2]),0,255),o)},oklch:(t,e)=>{if(me(e.filter(Xt)))throw new Error("Relative color not supported for oklch()");const[r,n,i,o]=Ee(e),s=Ue(Ne(Le(ke([r,n,i]))));return de(ye(Math.round(255*s[0]),0,255),ye(Math.round(255*s[1]),0,255),ye(Math.round(255*s[2]),0,255),o)},oklab:(t,e)=>{if(me(e.filter(Xt)))throw new Error("Relative color not supported for oklab()");const[r,n,i,o]=_e(e),s=Ue(Ne(Le([r,n,i])));return de(ye(Math.round(255*s[0]),0,255),ye(Math.round(255*s[1]),0,255),ye(Math.round(255*s[2]),0,255),o)},lab:(t,e)=>{if(me(e.filter(Xt)))throw new Error("Relative color not supported for lab()");const[r,n,i,o]=_e(e),s=Ue(Ne(Pe([r,n,i])));return de(ye(Math.round(255*s[0]),0,255),ye(Math.round(255*s[1]),0,255),ye(Math.round(255*s[2]),0,255),o)},color:(t,e)=>{const r=e.filter(Xt),n=20===r[0].type?r[0].value:"unknown";if(!me(r)){const t=Ge[n];if(void 0===t)throw new Error(`Attempting to parse an unsupported color space "${n}" for color() function`);return t([Gt(r[1])?r[1].number:0,Gt(r[2])?r[2].number:0,Gt(r[3])?r[3].number:0,r.length>4&&6===r[4].type&&"/"===r[4].value&&Gt(r[5])?r[5].number:1])}{const e=(t,e)=>{if(Gt(e))return e.number;if(Kt(e))return t["r"===(r=e.value)||"x"===r?0:"g"===r||"y"===r?1:2];var r;const n=t=>{const e=t.filter(Xt);let r="(";for(const t of e)r+=18===t.type&&"calc"===t.name?n(t.values):Gt(t)?t.number:6===t.type||Kt(t)?t.value:"";return r+=")",r};if(18===e.type){const r=e.values.filter(Xt);if("calc"===e.name){const e=n(r).replace(/r|x/,t[0].toString()).replace(/g|y/,t[1].toString()).replace(/b|z/,t[2].toString());return new Function("return "+e)()}}return null},n=18===r[1].type?r[1].name:Kt(r[1])||5===r[1].type?"rgb":"unknown",i=Kt(r[2])?r[2].value:"unknown";let o=18===r[1].type?r[1].values:Kt(r[1])?[r[1]]:[];if(Kt(r[1])){if(void 0===Xe[r[1].value.toUpperCase()])throw new Error("Attempting to use unknown color in relative color 'from'");{const e=Ye(t,r[1].value),n=255&e;o=[{type:17,number:255&e>>24,flags:1},{type:17,number:255&e>>16,flags:1},{type:17,number:255&e>>8,flags:1},{type:17,number:n>1?n/255:n,flags:1}]}}else if(5===r[1].type){const[t,e,n,i]=Ve(r[1]);o=[{type:17,number:t,flags:1},{type:17,number:e,flags:1},{type:17,number:n,flags:1},{type:17,number:i>1?i/255:i,flags:1}]}if(0===o.length)throw new Error("Attempting to use unknown color in relative color 'from'");if("unknown"===i)throw new Error("Attempting to use unknown colorspace in relative color 'to'");const s=Ke[n],a=qe[i],A=Ge[i];if(void 0===s)throw new Error(`Attempting to parse an unsupported color space "${n}" for color() function`);if(void 0===a)throw new Error(`Attempting to parse an unsupported color space "${i}" for color() function`);const l=a(s(t,o)),c=e(l,r[3]),h=e(l,r[4]),u=e(l,r[5]),p=r.length>6&&6===r[6].type&&"/"===r[6].value&&Gt(r[7])?r[7].number:1;if(null===c||null===h||null===u)throw new Error("Invalid relative color in color() function");return A([c,h,u,p])}}},Ye=(t,e)=>He(t,Vt.create(e).parseComponentValue()),Xe={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:4041641215,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},Je={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(t,e)=>e.map(t=>{if(Kt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})},Ze={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$e=(t,e)=>{const r=He(t,e[0]),n=e[1];return n&&te(n)?{color:r,stop:n}:{color:r,stop:null}},tr=(t,e)=>{const r=t[0],n=t[t.length-1];null===r.stop&&(r.stop=re),null===n.stop&&(n.stop=ie);const i=[];let o=0;for(let r=0;r<t.length;r++){const n=t[r].stop;if(null!==n){const t=se(n,e);t>o?i.push(t):i.push(o),o=t}else i.push(null)}let s=null;for(let t=0;t<i.length;t++){const e=i[t];if(null===e)null===s&&(s=t);else if(null!==s){const r=t-s,n=(e-i[s-1])/(r+1);for(let t=1;t<=r;t++)i[s+t-1]=n*t;s=null}}return t.map(({color:t},r)=>({color:t,stop:Math.max(Math.min(1,i[r]/e),0)}))},er=(t,e,r)=>{const n="number"==typeof t?t:((t,e,r)=>{const n=e/2,i=r/2,o=se(t[0],e)-n,s=i-se(t[1],r);return(Math.atan2(s,o)+2*Math.PI)%(2*Math.PI)})(t,e,r),i=Math.abs(e*Math.sin(n))+Math.abs(r*Math.cos(n)),o=e/2,s=r/2,a=i/2,A=Math.sin(n-Math.PI/2)*a,l=Math.cos(n-Math.PI/2)*a;return[i,o-l,o+l,s-A,s+A]},rr=(t,e)=>Math.sqrt(t*t+e*e),nr=(t,e,r,n,i)=>[[0,0],[0,e],[t,0],[t,e]].reduce((t,e)=>{const[o,s]=e,a=rr(r-o,n-s);return(i?a<t.optimumDistance:a>t.optimumDistance)?{optimumCorner:e,optimumDistance:a}:t},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner,ir=(t,e,r,n,i)=>{let o=0,s=0;switch(t.size){case 0:0===t.shape?o=s=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-i)):1===t.shape&&(o=Math.min(Math.abs(e),Math.abs(e-n)),s=Math.min(Math.abs(r),Math.abs(r-i)));break;case 2:if(0===t.shape)o=s=Math.min(rr(e,r),rr(e,r-i),rr(e-n,r),rr(e-n,r-i));else if(1===t.shape){const t=Math.min(Math.abs(r),Math.abs(r-i))/Math.min(Math.abs(e),Math.abs(e-n)),[a,A]=nr(n,i,e,r,!0);o=rr(a-e,(A-r)/t),s=t*o}break;case 1:0===t.shape?o=s=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-i)):1===t.shape&&(o=Math.max(Math.abs(e),Math.abs(e-n)),s=Math.max(Math.abs(r),Math.abs(r-i)));break;case 3:if(0===t.shape)o=s=Math.max(rr(e,r),rr(e,r-i),rr(e-n,r),rr(e-n,r-i));else if(1===t.shape){const t=Math.max(Math.abs(r),Math.abs(r-i))/Math.max(Math.abs(e),Math.abs(e-n)),[a,A]=nr(n,i,e,r,!1);o=rr(a-e,(A-r)/t),s=t*o}}return Array.isArray(t.size)&&(o=se(t.size[0],n),s=2===t.size.length?se(t.size[1],i):o),[o,s]},or=(t,e)=>{let r=ue(180);const n=[];return Jt(e).forEach((e,i)=>{if(0===i){const t=e[0];if(20===t.type&&-1!==["top","left","right","bottom"].indexOf(t.value))return void(r=he(e));if(ce(t))return void(r=(le(0,t)+ue(270))%ue(360))}const o=$e(t,e);n.push(o)}),{angle:r,stops:n,type:1}},sr="closest-side",ar="farthest-side",Ar="closest-corner",lr="farthest-corner",cr="circle",hr="ellipse",ur="cover",pr="contain",fr=(t,e)=>{let r=0,n=3;const i=[],o=[];return Jt(e).forEach((e,s)=>{let a=!0;if(0===s?a=e.reduce((t,e)=>{if(Kt(e))switch(e.value){case"center":return o.push(ne),!1;case"top":case"left":return o.push(re),!1;case"right":case"bottom":return o.push(ie),!1}else if(te(e)||$t(e))return o.push(e),!1;return t},a):1===s&&(a=e.reduce((t,e)=>{if(Kt(e))switch(e.value){case cr:return r=0,!1;case hr:return r=1,!1;case pr:case sr:return n=0,!1;case ar:return n=1,!1;case Ar:return n=2,!1;case ur:case lr:return n=3,!1}else if($t(e)||te(e))return Array.isArray(n)||(n=[]),n.push(e),!1;return t},a)),a){const r=$e(t,e);i.push(r)}}),{size:n,shape:r,stops:i,position:o,type:2}},dr=t=>1===t.type,gr=t=>2===t.type,mr=(t,e)=>{if(22===e.type){const r={url:e.value,type:0};return t.cache.addImage(e.value),r}if(18===e.type){const r=yr[e.name];if(void 0===r)throw new Error(`Attempting to parse an unsupported image function "${e.name}"`);return r(t,e.values)}throw new Error(`Unsupported image type ${e.type}`)},yr={"linear-gradient":(t,e)=>{let r=ue(180);const n=[];return Jt(e).forEach((e,i)=>{if(0===i){const t=e[0];if(20===t.type&&"to"===t.value)return void(r=he(e));if(ce(t))return void(r=le(0,t))}const o=$e(t,e);n.push(o)}),{angle:r,stops:n,type:1}},"-moz-linear-gradient":or,"-ms-linear-gradient":or,"-o-linear-gradient":or,"-webkit-linear-gradient":or,"radial-gradient":(t,e)=>{let r=0,n=3;const i=[],o=[];return Jt(e).forEach((e,s)=>{let a=!0;if(0===s){let t=!1;a=e.reduce((e,i)=>{if(t)if(Kt(i))switch(i.value){case"center":return o.push(ne),e;case"top":case"left":return o.push(re),e;case"right":case"bottom":return o.push(ie),e}else(te(i)||$t(i))&&o.push(i);else if(Kt(i))switch(i.value){case cr:return r=0,!1;case hr:return r=1,!1;case"at":return t=!0,!1;case sr:return n=0,!1;case ur:case ar:return n=1,!1;case pr:case Ar:return n=2,!1;case lr:return n=3,!1}else if($t(i)||te(i))return Array.isArray(n)||(n=[]),n.push(i),!1;return e},a)}if(a){const r=$e(t,e);i.push(r)}}),{size:n,shape:r,stops:i,position:o,type:2}},"-moz-radial-gradient":fr,"-ms-radial-gradient":fr,"-o-radial-gradient":fr,"-webkit-radial-gradient":fr,"-webkit-gradient":(t,e)=>{const r=ue(180),n=[];let i=1;return Jt(e).forEach((e,r)=>{const o=e[0];if(0===r){if(Kt(o)&&"linear"===o.value)return void(i=1);if(Kt(o)&&"radial"===o.value)return void(i=2)}if(18===o.type)if("from"===o.name){const e=He(t,o.values[0]);n.push({stop:re,color:e})}else if("to"===o.name){const e=He(t,o.values[0]);n.push({stop:ie,color:e})}else if("color-stop"===o.name){const e=o.values.filter(Xt);if(2===e.length){const r=He(t,e[1]),i=e[0];Gt(i)&&n.push({stop:{type:16,number:100*i.number,flags:i.flags},color:r})}}}),1===i?{angle:(r+ue(180))%ue(360),stops:n,type:i}:{size:3,shape:0,stops:n,position:[],type:i}}},vr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>{if(0===e.length)return[];const r=e[0];return 20===r.type&&"none"===r.value?[]:e.filter(t=>Xt(t)&&function(t){return!(20===t.type&&"none"===t.value||18===t.type&&!yr[t.name])}(t)).map(e=>mr(t,e))}},br={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(t,e)=>e.map(t=>{if(Kt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})},wr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(t,e)=>Jt(e).map(t=>t.map(t=>{return 18===(e=t).type&&"calc"===e.name?((t,e=0)=>{const r=t=>{let n="";for(const i of t)if(31!==i.type)if(18===i.type){if("calc"!==i.name)return null;{const t=r(i.values);if(null===t)return null;n+=`(${t})`}}else if(17===i.type)n+=i.number.toString();else if(15===i.type)"px"===i.unit?n+=i.number.toString():"rem"===i.unit||"em"===i.unit?n+=(16*i.number).toString():n+=i.number.toString();else if(16===i.type)n+=(i.number/100*e).toString();else if(6===i.type){const t=i.value;"+"===t||"-"===t||"*"===t||"/"===t?n+=` ${t} `:"("===t?n+="(":")"===t&&(n+=")")}return n};try{const e=r(t.values);if(null===e||""===e.trim())return null;const n=new Function("return "+e)();if("number"==typeof n&&!isNaN(n))return{type:17,number:n,flags:4}}catch(t){return null}return null})(t,0):te(t)?t:null;var e}).filter(t=>null!==t)).map(ee)},xr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(t,e)=>Jt(e).map(t=>t.filter(Kt).map(t=>t.value).join(" ")).map(Br)},Br=t=>{switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};var Cr;!function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(Cr||(Cr={}));const _r={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(t,e)=>Jt(e).map(t=>t.filter(Er))},Er=t=>Kt(t)||te(t),Sr=t=>({name:`border-${t}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),Ir=Sr("top"),Fr=Sr("right"),Tr=Sr("bottom"),kr=Sr("left"),Lr=t=>({name:`border-radius-${t}`,initialValue:"0 0",prefix:!1,type:1,parse:(t,e)=>ee(e.filter(te))}),Pr=Lr("top-left"),Mr=Lr("top-right"),Dr=Lr("bottom-right"),Nr=Lr("bottom-left"),Or=t=>({name:`border-${t}-style`,initialValue:"solid",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}),Ur=Or("top"),Qr=Or("right"),Rr=Or("bottom"),jr=Or("left"),Hr=t=>({name:`border-${t}-width`,initialValue:"0",type:0,prefix:!1,parse:(t,e)=>zt(e)?e.number:0}),Vr=Hr("top"),zr=Hr("right"),Gr=Hr("bottom"),Kr=Hr("left"),qr={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Wr={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(t,e)=>"rtl"===e?1:0},Yr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(t,e)=>e.filter(Kt).reduce((t,e)=>t|Xr(e.value),0)},Xr=t=>{switch(t){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},Jr={name:"float",initialValue:"none",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Zr={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:(t,e)=>20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0};var $r;!function(t){t.NORMAL="normal",t.STRICT="strict"}($r||($r={}));const tn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>"strict"===e?$r.STRICT:$r.NORMAL},en={name:"line-height",initialValue:"normal",prefix:!1,type:4},rn=(t,e)=>Kt(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:te(t)?se(t,e):e,nn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:(t,e)=>20===e.type&&"none"===e.value?null:mr(t,e)},on={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(t,e)=>"inside"===e?0:1},sn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 52;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},an=t=>({name:`margin-${t}`,initialValue:"0",prefix:!1,type:4}),An=an("top"),ln=an("right"),cn=an("bottom"),hn=an("left"),un={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(t,e)=>e.filter(Kt).map(t=>{switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},pn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>"break-word"===e?"break-word":"normal"},fn=t=>({name:`padding-${t}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),dn=fn("top"),gn=fn("right"),mn=fn("bottom"),yn=fn("left"),vn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},bn={name:"position",initialValue:"static",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},wn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>1===e.length&&Wt(e[0],"none")?[]:Jt(e).map(e=>{const r={color:Xe.TRANSPARENT,offsetX:re,offsetY:re,blur:re};let n=0;for(let i=0;i<e.length;i++){const o=e[i];$t(o)?(0===n?r.offsetX=o:1===n?r.offsetY=o:r.blur=o,n++):r.color=He(t,o)}return r})},xn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Bn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:(t,e)=>{if(20===e.type&&"none"===e.value)return null;if(18===e.type){const r=Cn[e.name];if(void 0===r)throw new Error(`Attempting to parse an unsupported transform function "${e.name}"`);return r(t,e.values)}return null}},Cn={matrix:(t,e)=>{const r=e.filter(t=>17===t.type).map(t=>t.number);return 6===r.length?r:null},matrix3d:(t,e)=>{const r=e.filter(t=>17===t.type).map(t=>t.number),[n,i,{},{},o,s,{},{},{},{},{},{},a,A]=r;return 16===r.length?[n,i,o,s,a,A]:null},rotate:(t,e)=>{if(1!==e.length)return null;const r=e[0];let n=0;if(17===r.type&&0===r.number)n=0;else{if(15!==r.type)return null;n=le(0,r)}const i=Math.cos(n),o=Math.sin(n);return[i,o,-o,i,0,0]}},_n={type:16,number:50,flags:4},En=[_n,_n],Sn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(t,e)=>{const r=e.filter(te);return 2!==r.length?En:[r[0],r[1]]}},In={name:"rotate",initialValue:"none",prefix:!1,type:0,parse:(t,e)=>20===e.type&&"none"===e.value?null:17===e.type&&0===e.number?0:15===e.type?180*le(0,e)/Math.PI:null},Fn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}};var Tn;!function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"}(Tn||(Tn={}));const kn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"break-all":return Tn.BREAK_ALL;case"keep-all":return Tn.KEEP_ALL;default:return Tn.NORMAL}}},Ln={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(t,e)=>{if(20===e.type)return{auto:!0,order:0};if(Gt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Pn=(t,e)=>{if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")},Mn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(t,e)=>Gt(e)?e.number:1},Dn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Nn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(t,e)=>e.filter(Kt).map(t=>{switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(t=>0!==t)},On={name:"text-decoration-style",initialValue:"solid",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"double":return 1;case"dotted":return 2;case"dashed":return 3;case"wavy":return 4;default:return 0}}},Un={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(t,e)=>{if(Kt(e))switch(e.value){case"auto":return"auto";case"from-font":return"from-font"}return zt(e)?e.number:"auto"}},Qn={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(t,e)=>Kt(e)&&"auto"===e.value?"auto":zt(e)?e.number:"auto"},Rn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(t,e)=>{const r=[],n=[];return e.forEach(t=>{switch(t.type){case 20:case 0:r.push(t.value);break;case 17:r.push(t.number.toString());break;case 4:n.push(r.join(" ")),r.length=0}}),r.length&&n.push(r.join(" ")),n.map(t=>-1===t.indexOf(" ")?t:`'${t}'`)}},jn={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Hn={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(t,e)=>Gt(e)?e.number:Kt(e)&&"bold"===e.value?700:400},Vn={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>e.filter(Kt).map(t=>t.value)},zn={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},Gn=(t,e)=>0!==(t&e),Kn={name:"content",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>{if(0===e.length)return[];const r=e[0];return 20===r.type&&"none"===r.value?[]:e}},qn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(t,e)=>{if(0===e.length)return null;const r=e[0];if(20===r.type&&"none"===r.value)return null;const n=[],i=e.filter(Yt);for(let t=0;t<i.length;t++){const e=i[t],r=i[t+1];if(20===e.type){const t=r&&Gt(r)?r.number:1;n.push({counter:e.value,increment:t})}}return n}},Wn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(t,e)=>{if(0===e.length)return[];const r=[],n=e.filter(Yt);for(let t=0;t<n.length;t++){const e=n[t],i=n[t+1];if(Kt(e)&&"none"!==e.value){const t=i&&Gt(i)?i.number:0;r.push({counter:e.value,reset:t})}}return r}},Yn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(t,e)=>e.filter(zt).map(t=>Pn(0,t))},Xn={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(t,e)=>{if(0===e.length)return null;const r=e[0];if(20===r.type&&"none"===r.value)return null;const n=[],i=e.filter(qt);if(i.length%2!=0)return null;for(let t=0;t<i.length;t+=2){const e=i[t].value,r=i[t+1].value;n.push({open:e,close:r})}return n}},Jn=(t,e,r)=>{if(!t)return"";const n=t[Math.min(e,t.length-1)];return n?r?n.open:n.close:""},Zn={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>1===e.length&&Wt(e[0],"none")?[]:Jt(e).map(e=>{const r={color:255,offsetX:re,offsetY:re,blur:re,spread:re,inset:!1};let n=0;for(let i=0;i<e.length;i++){const o=e[i];Wt(o,"inset")?r.inset=!0:$t(o)?(0===n?r.offsetX=o:1===n?r.offsetY=o:2===n?r.blur=o:r.spread=o,n++):r.color=He(t,o)}return r})},$n={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(t,e)=>{const r=[];return e.filter(Kt).forEach(t=>{switch(t.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2)}}),[0,1,2].forEach(t=>{-1===r.indexOf(t)&&r.push(t)}),r}},ti={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ei={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:(t,e)=>zt(e)?e.number:0},ri={name:"-webkit-line-clamp",initialValue:"none",prefix:!0,type:0,parse:(t,e)=>20===e.type&&"none"===e.value?0:17===e.type?Math.max(0,Math.floor(e.number)):0},ni={name:"objectFit",initialValue:"fill",prefix:!1,type:1,parse:(t,e)=>e.filter(Kt).reduce((t,e)=>t|ii(e.value),0)},ii=t=>{switch(t){case"contain":return 2;case"cover":return 4;case"none":return 8;case"scale-down":return 16}return 0},oi={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(t,e)=>"ellipsis"===e?1:0};class si{constructor(t,e){this.animationDuration=li(t,Yn,e.animationDuration),this.backgroundClip=li(t,Je,e.backgroundClip),this.backgroundColor=li(t,Ze,e.backgroundColor),this.backgroundImage=li(t,vr,e.backgroundImage),this.backgroundOrigin=li(t,br,e.backgroundOrigin),this.backgroundPosition=li(t,wr,e.backgroundPosition),this.backgroundRepeat=li(t,xr,e.backgroundRepeat),this.backgroundSize=li(t,_r,e.backgroundSize),this.borderTopColor=li(t,Ir,e.borderTopColor),this.borderRightColor=li(t,Fr,e.borderRightColor),this.borderBottomColor=li(t,Tr,e.borderBottomColor),this.borderLeftColor=li(t,kr,e.borderLeftColor),this.borderTopLeftRadius=li(t,Pr,e.borderTopLeftRadius),this.borderTopRightRadius=li(t,Mr,e.borderTopRightRadius),this.borderBottomRightRadius=li(t,Dr,e.borderBottomRightRadius),this.borderBottomLeftRadius=li(t,Nr,e.borderBottomLeftRadius),this.borderTopStyle=li(t,Ur,e.borderTopStyle),this.borderRightStyle=li(t,Qr,e.borderRightStyle),this.borderBottomStyle=li(t,Rr,e.borderBottomStyle),this.borderLeftStyle=li(t,jr,e.borderLeftStyle),this.borderTopWidth=li(t,Vr,e.borderTopWidth),this.borderRightWidth=li(t,zr,e.borderRightWidth),this.borderBottomWidth=li(t,Gr,e.borderBottomWidth),this.borderLeftWidth=li(t,Kr,e.borderLeftWidth),this.boxShadow=li(t,Zn,e.boxShadow),this.color=li(t,qr,e.color),this.direction=li(t,Wr,e.direction),this.display=li(t,Yr,e.display),this.float=li(t,Jr,e.cssFloat),this.fontFamily=li(t,Rn,e.fontFamily),this.fontSize=li(t,jn,e.fontSize),this.fontStyle=li(t,zn,e.fontStyle),this.fontVariant=li(t,Vn,e.fontVariant),this.fontWeight=li(t,Hn,e.fontWeight),this.letterSpacing=li(t,Zr,e.letterSpacing),this.lineBreak=li(t,tn,e.lineBreak),this.lineHeight=li(t,en,e.lineHeight),this.listStyleImage=li(t,nn,e.listStyleImage),this.listStylePosition=li(t,on,e.listStylePosition),this.listStyleType=li(t,sn,e.listStyleType),this.marginTop=li(t,An,e.marginTop),this.marginRight=li(t,ln,e.marginRight),this.marginBottom=li(t,cn,e.marginBottom),this.marginLeft=li(t,hn,e.marginLeft),this.opacity=li(t,Mn,e.opacity);const r=li(t,un,e.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0],this.overflowWrap=li(t,pn,e.overflowWrap),this.paddingTop=li(t,dn,e.paddingTop),this.paddingRight=li(t,gn,e.paddingRight),this.paddingBottom=li(t,mn,e.paddingBottom),this.paddingLeft=li(t,yn,e.paddingLeft),this.paintOrder=li(t,$n,e.paintOrder),this.position=li(t,bn,e.position),this.textAlign=li(t,vn,e.textAlign),this.textDecorationColor=li(t,Dn,e.textDecorationColor??e.color),this.textDecorationLine=li(t,Nn,e.textDecorationLine??e.textDecoration),this.textDecorationStyle=li(t,On,e.textDecorationStyle),this.textDecorationThickness=li(t,Un,e.textDecorationThickness),this.textUnderlineOffset=li(t,Qn,e.textUnderlineOffset),this.textShadow=li(t,wn,e.textShadow),this.textTransform=li(t,xn,e.textTransform),this.textOverflow=li(t,oi,e.textOverflow),this.transform=li(t,Bn,e.transform),this.transformOrigin=li(t,Sn,e.transformOrigin),this.rotate=li(t,In,e.rotate),this.visibility=li(t,Fn,e.visibility),this.webkitTextStrokeColor=li(t,ti,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=li(t,ei,e.webkitTextStrokeWidth),this.webkitLineClamp=li(t,ri,e.webkitLineClamp),this.wordBreak=li(t,kn,e.wordBreak),this.zIndex=li(t,Ln,e.zIndex),this.objectFit=li(t,ni,e.objectFit)}isVisible(){return this.display>0&&this.opacity>0&&0===this.visibility}isTransparent(){return pe(this.backgroundColor)}isTransformed(){return null!==this.transform||null!==this.rotate}isPositioned(){return 0!==this.position}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return 0!==this.float}isInlineLevel(){return Gn(this.display,4)||Gn(this.display,33554432)||Gn(this.display,268435456)||Gn(this.display,536870912)||Gn(this.display,67108864)||Gn(this.display,134217728)}}class ai{constructor(t,e){this.content=li(t,Kn,e.content),this.quotes=li(t,Xn,e.quotes)}}class Ai{constructor(t,e){this.counterIncrement=li(t,qn,e.counterIncrement),this.counterReset=li(t,Wn,e.counterReset)}}const li=(t,e,r)=>{const n=new Ht,i=null!=r?r.toString():e.initialValue;n.write(i);const o=new Vt(n.read());switch(e.type){case 2:const r=o.parseComponentValue();return e.parse(t,Kt(r)?r.value:e.initialValue);case 0:return e.parse(t,o.parseComponentValue());case 1:return e.parse(t,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return le(0,o.parseComponentValue());case"color":return He(t,o.parseComponentValue());case"image":return mr(t,o.parseComponentValue());case"length":const e=o.parseComponentValue();return $t(e)?e:re;case"length-percentage":const r=o.parseComponentValue();return te(r)?r:re;case"time":return Pn(0,o.parseComponentValue())}}},ci=(t,e)=>{const r=(t=>{switch(t.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}})(t);return 1===r||e===r};class hi{constructor(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,ci(e,3),this.styles=new si(t,window.getComputedStyle(e,null)),lo(e)&&(this.styles.animationDuration.some(t=>t>0)&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none"),null!==this.styles.rotate&&(e.style.rotate="none")),this.bounds=i(this.context,e),ci(e,4)&&(this.flags|=16)}}for(var ui="undefined"==typeof Uint8Array?[]:new Uint8Array(256),pi=0;pi<64;pi++)ui["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(pi)]=pi;for(var fi=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},di=function(){function t(t,e,r,n,i,o){this.initialValue=t,this.errorValue=e,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=o}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),gi="undefined"==typeof Uint8Array?[]:new Uint8Array(256),mi=0;mi<64;mi++)gi["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(mi)]=mi;var yi=8,vi=9,bi=11,wi=12,xi=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";for(var n=[],i=-1,o="";++i<r;){var s=t[i];s<=65535?n.push(s):(s-=65536,n.push(55296+(s>>10),s%1024+56320)),(i+1===r||n.length>16384)&&(o+=String.fromCharCode.apply(String,n),n.length=0)}return o},Bi=function(){var t,e,r,n=function(t){var e,r,n,i,o,s=.75*t.length,a=t.length,A=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<a;e+=4)r=ui[t.charCodeAt(e)],n=ui[t.charCodeAt(e+1)],i=ui[t.charCodeAt(e+2)],o=ui[t.charCodeAt(e+3)],c[A++]=r<<2|n>>4,c[A++]=(15&n)<<4|i>>2,c[A++]=(3&i)<<6|63&o;return l}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),i=Array.isArray(n)?function(t){for(var e=t.length,r=[],n=0;n<e;n+=4)r.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return r}(n):new Uint32Array(n),o=Array.isArray(n)?function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r.push(t[n+1]<<8|t[n]);return r}(n):new Uint16Array(n),s=fi(o,12,i[4]/2),a=2===i[5]?fi(o,(24+i[4])/2):(t=i,e=Math.ceil((24+i[4])/4),t.slice?t.slice(e,r):new Uint32Array(Array.prototype.slice.call(t,e,r)));return new di(i[0],i[1],i[2],i[3],s,a)}(),Ci="×",_i=function(t){return Bi.get(t)},Ei=function(t,e,r){var n=r-2,i=e[n],o=e[r-1],s=e[r];if(2===o&&3===s)return Ci;if(2===o||3===o||4===o)return"÷";if(2===s||3===s||4===s)return"÷";if(o===yi&&-1!==[yi,vi,bi,wi].indexOf(s))return Ci;if(!(o!==bi&&o!==vi||s!==vi&&10!==s))return Ci;if((o===wi||10===o)&&10===s)return Ci;if(13===s||5===s)return Ci;if(7===s)return Ci;if(1===o)return Ci;if(13===o&&14===s){for(;5===i;)i=e[--n];if(14===i)return Ci}if(15===o&&15===s){for(var a=0;15===i;)a++,i=e[--n];if(a%2==0)return Ci}return"÷"},Si=function(t){var e=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=t.charCodeAt(r++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),r--)}else e.push(i)}return e}(t),r=e.length,n=0,i=0,o=e.map(_i);return{next:function(){if(n>=r)return{done:!0,value:null};for(var t=Ci;n<r&&(t=Ei(0,o,++n))===Ci;);if(t!==Ci||n===r){var s=xi.apply(null,e.slice(i,n));return i=n,{value:s,done:!1}}return{done:!0,value:null}}}};const Ii=t=>0===t[0]&&255===t[1]&&0===t[2]&&255===t[3],Fi=(t,e,r,n,i)=>{const o="http://www.w3.org/2000/svg",s=document.createElementNS(o,"svg"),a=document.createElementNS(o,"foreignObject");return s.setAttributeNS(null,"width",t.toString()),s.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",r.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(i),s},Ti=t=>new Promise((e,r)=>{const n=new Image;n.onload=()=>e(n),n.onerror=r,n.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent((new XMLSerializer).serializeToString(t))}`}),ki={get SUPPORT_RANGE_BOUNDS(){const t=(t=>{if(t.createRange){const e=t.createRange();if(e.getBoundingClientRect){const r=t.createElement("boundtest");r.style.height="123px",r.style.display="block",t.body.appendChild(r),e.selectNode(r);const n=e.getBoundingClientRect(),i=Math.round(n.height);if(t.body.removeChild(r),123===i)return!0}}return!1})(document);return Object.defineProperty(ki,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){const t=ki.SUPPORT_RANGE_BOUNDS&&(t=>{const e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);const r=t.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";const n=e.firstChild,i=o(n.data).map(t=>s(t));let a=0,A={};const l=i.every((t,e)=>{r.setStart(n,a),r.setEnd(n,a+t.length);const i=r.getBoundingClientRect();a+=t.length;const o=i.x>A.x||i.y>A.y;return A=i,0===e||o});return t.body.removeChild(e),l})(document);return Object.defineProperty(ki,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){const t=(t=>{const e=new Image,r=t.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),r.toDataURL()}catch(t){return!1}return!0})(document);return Object.defineProperty(ki,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){const t="function"==typeof Array.from&&"function"==typeof window.fetch?(t=>{const e=t.createElement("canvas"),r=100;e.width=r,e.height=r;const n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);const i=new Image,o=e.toDataURL();i.src=o;const s=Fi(r,r,0,0,i);return n.fillStyle="red",n.fillRect(0,0,r,r),Ti(s).then(e=>{n.drawImage(e,0,0);const i=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);const s=t.createElement("div");return s.style.backgroundImage=`url(${o})`,s.style.height="100px",Ii(i)?Ti(Fi(r,r,0,0,s)):Promise.reject(!1)}).then(t=>(n.drawImage(t,0,0),Ii(n.getImageData(0,0,r,r).data))).catch(()=>!1)})(document):Promise.resolve(!1);return Object.defineProperty(ki,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){const t=void 0!==(new Image).crossOrigin;return Object.defineProperty(ki,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){const t="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(ki,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){const t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ki,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){const t=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(ki,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}};class Li{constructor(t,e){this.text=t,this.bounds=e}}const Pi=(t,e,r)=>{const n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");const i=n.createRange();return i.setStart(t,e),i.setEnd(t,e+r),i},Mi=t=>{if(ki.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(t=>t.segment)}return function(t){for(var e,r=Si(t),n=[];!(e=r.next()).done;)e.value&&n.push(e.value.slice());return n}(t)},Di=[32,160,4961,65792,65793,4153,4241],Ni=(t,e)=>{const r=function(t,e){var r=o(t),n=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=function(t,e){void 0===e&&(e="strict");var r=[],n=[],i=[];return t.forEach(function(t,o){var s=X.get(t);if(s>50?(i.push(!0),s-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return n.push(o),r.push(16);if(4===s||11===s){if(0===o)return n.push(o),r.push(O);var a=r[o-1];return-1===et.indexOf(a)?(n.push(n[o-1]),r.push(a)):(n.push(o),r.push(O))}return n.push(o),31===s?r.push("strict"===e?T:H):s===K||29===s?r.push(O):43===s?t>=131072&&t<=196605||t>=196608&&t<=262141?r.push(H):r.push(O):void r.push(s)}),[n,r,i]}(t,e.lineBreak),n=r[0],i=r[1],o=r[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(i=i.map(function(t){return-1!==[P,O,K].indexOf(t)?H:t}));var s="keep-all"===e.wordBreak?o.map(function(e,r){return e&&t[r]>=19968&&t[r]<=40959}):void 0;return[n,i,s]}(r,e),i=n[0],s=n[1],a=n[2],A=r.length,l=0,c=0;return{next:function(){if(c>=A)return{done:!0,value:null};for(var t=W;c<A&&(t=st(r,s,i,++c,a))===W;);if(t!==W||c===A){var e=new at(r,t,l,c);return l=c,{value:e,done:!1}}return{done:!0,value:null}}}}(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),n=[];let i;for(;!(i=r.next()).done;)if(i.value){const t=i.value.slice(),e=o(t);let r="";e.forEach(t=>{-1===Di.indexOf(t)?r+=s(t):(r.length&&n.push(r),n.push(s(t)),r="")}),r.length&&n.push(r)}return n};class Oi{constructor(t,e,r){this.text=Ui(e.data,r.textTransform),this.textBounds=((t,e,r,o)=>{const s=((t,e)=>0!==e.letterSpacing?Mi(t):((t,e)=>{if(ki.SUPPORT_NATIVE_TEXT_SEGMENTATION){const e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(t)).map(t=>t.segment)}return Ni(t,e)})(t,e))(e,r),a=[];let A=0;return s.forEach(e=>{if(r.textDecorationLine.length||e.trim().length>0)if(ki.SUPPORT_RANGE_BOUNDS){const r=Pi(o,A,e.length).getClientRects();if(r.length>1){const r=Mi(e);let i=0;r.forEach(e=>{a.push(new Li(e,n.fromDOMRectList(t,Pi(o,i+A,e.length).getClientRects()))),i+=e.length})}else a.push(new Li(e,n.fromDOMRectList(t,r)))}else{const r=o.splitText(e.length);a.push(new Li(e,((t,e)=>{const r=e.ownerDocument;if(r){const n=r.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));const o=e.parentNode;if(o){o.replaceChild(n,e);const r=i(t,n);return n.firstChild&&o.replaceChild(n.firstChild,n),r}}return n.EMPTY})(t,o))),o=r}else ki.SUPPORT_RANGE_BOUNDS||(o=o.splitText(e.length));A+=e.length}),a})(t,this.text,r,e)}}const Ui=(t,e)=>{switch(e){case 1:return t.toLowerCase();case 3:return t.replace(Qi,Ri);case 2:return t.toUpperCase();default:return t}},Qi=/(^|\s|:|-|\(|\))([a-z])/g,Ri=(t,e,r)=>t.length>0?e+r.toUpperCase():t;class ji extends hi{constructor(t,e){super(t,e),this.src=e.currentSrc||e.src,this.intrinsicWidth=e.naturalWidth,this.intrinsicHeight=e.naturalHeight,this.context.cache.addImage(this.src)}}class Hi extends hi{constructor(t,e){super(t,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}}class Vi extends hi{constructor(t,e){super(t,e);const r=new XMLSerializer,n=i(t,e);e.setAttribute("width",`${n.width}px`),e.setAttribute("height",`${n.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(r.serializeToString(e))}`,this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,this.context.cache.addImage(this.svg)}}class zi extends hi{constructor(t,e){super(t,e),this.value=e.value}}class Gi extends hi{constructor(t,e){super(t,e),this.start=e.start,this.reversed="boolean"==typeof e.reversed&&!0===e.reversed}}const Ki=[{type:15,flags:0,unit:"px",number:3}],qi=[{type:16,flags:0,number:50}],Wi="checkbox",Yi="radio",Xi=707406591;class Ji extends hi{constructor(t,e){var r,i;switch(super(t,e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=(t=>{const e="password"===t.type?new Array(t.value.length+1).join("•"):t.value;return 0===e.length?t.placeholder||"":e})(e),this.isPlaceholder=0===(r=e).value.length&&!!r.placeholder,this.type!==Wi&&this.type!==Yi||(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=1,this.styles.backgroundClip=[0],this.styles.backgroundOrigin=[0],this.bounds=(i=this.bounds).width>i.height?new n(i.left+(i.width-i.height)/2,i.top,i.height,i.height):i.width<i.height?new n(i.left,i.top+(i.height-i.width)/2,i.width,i.width):i),this.type){case Wi:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=Ki;break;case Yi:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=qi}}}class Zi extends hi{constructor(t,e){super(t,e);const r=e.options[e.selectedIndex||0];this.value=r&&r.text||""}}class $i extends hi{constructor(t,e){super(t,e),this.value=e.value}}class to extends hi{constructor(t,e){super(t,e),this.src=e.src,this.width=parseInt(e.width,10)||0,this.height=parseInt(e.height,10)||0,this.backgroundColor=this.styles.backgroundColor;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement){this.tree=io(t,e.contentWindow.document.documentElement);const r=e.contentWindow.document.documentElement?Ye(t,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):Xe.TRANSPARENT,n=e.contentWindow.document.body?Ye(t,getComputedStyle(e.contentWindow.document.body).backgroundColor):Xe.TRANSPARENT;this.backgroundColor=pe(r)?pe(n)?this.styles.backgroundColor:n:r}}catch(t){}}}const eo=["OL","UL","MENU"],ro=(t,e,r,n)=>{for(let i,o=e.firstChild;o;o=i)if(i=o.nextSibling,ao(o)&&o.data.length>0)r.textNodes.push(new Oi(t,o,r.styles));else if(Ao(o))if(_o(o)&&o.assignedNodes)o.assignedNodes().forEach(e=>ro(t,e,r,n));else{const e=no(t,o);e.styles.isVisible()&&(oo(o,e,n)?e.flags|=4:so(e.styles)&&(e.flags|=2),-1!==eo.indexOf(o.tagName)&&(e.flags|=8),r.elements.push(e),o.slot,o.shadowRoot?ro(t,o.shadowRoot,e,n):Bo(o)||fo(o)||Co(o)||ro(t,o,e,n))}},no=(t,e)=>vo(e)?new ji(t,e):mo(e)?new Hi(t,e):fo(e)?new Vi(t,e):ho(e)?new zi(t,e):uo(e)?new Gi(t,e):po(e)?new Ji(t,e):Co(e)?new Zi(t,e):Bo(e)?new $i(t,e):bo(e)?new to(t,e):new hi(t,e),io=(t,e)=>{const r=no(t,e);return r.flags|=4,ro(t,e,r,r),r},oo=(t,e,r)=>e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||go(t)&&r.styles.isTransparent(),so=t=>!(!t.isPositioned()&&!t.isFloating())||Gn(t.display,268435456)||Gn(t.display,33554432)||Gn(t.display,536870912)||Gn(t.display,134217728),ao=t=>t.nodeType===Node.TEXT_NODE,Ao=t=>t.nodeType===Node.ELEMENT_NODE,lo=t=>Ao(t)&&void 0!==t.style&&!co(t),co=t=>"object"==typeof t.className,ho=t=>"LI"===t.tagName,uo=t=>"OL"===t.tagName,po=t=>"INPUT"===t.tagName,fo=t=>"svg"===t.tagName,go=t=>"BODY"===t.tagName,mo=t=>"CANVAS"===t.tagName,yo=t=>"VIDEO"===t.tagName,vo=t=>"IMG"===t.tagName,bo=t=>"IFRAME"===t.tagName,wo=t=>"STYLE"===t.tagName,xo=t=>"SCRIPT"===t.tagName,Bo=t=>"TEXTAREA"===t.tagName,Co=t=>"SELECT"===t.tagName,_o=t=>"SLOT"===t.tagName,Eo=t=>t.tagName.indexOf("-")>0;class So{constructor(){this.counters={}}getCounterValue(t){const e=this.counters[t];return e&&e.length?e[e.length-1]:1}getCounterValues(t){return this.counters[t]||[]}pop(t){t.forEach(t=>this.counters[t].pop())}parse(t){const e=t.counterIncrement,r=t.counterReset;let n=!0;null!==e&&e.forEach(t=>{const e=this.counters[t.counter];e&&0!==t.increment&&(n=!1,e.length||e.push(1),e[Math.max(0,e.length-1)]+=t.increment)});const i=[];return n&&r.forEach(t=>{let e=this.counters[t.counter];i.push(t.counter),e||(e=this.counters[t.counter]=[]),e.push(t.reset)}),i}}const Io={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"]},Fo={integers:[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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},To={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ko={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Lo=(t,e,r,n,i,o)=>t<e||t>r?jo(t,i,o.length>0):n.integers.reduce((e,r,i)=>{for(;t>=r;)t-=r,e+=n.values[i];return e},"")+o,Po=(t,e,r,n)=>{let i="";do{r||t--,i=n(t)+i,t/=e}while(t*e>=e);return i},Mo=(t,e,r,n,i)=>{const o=r-e+1;return(t<0?"-":"")+(Po(Math.abs(t),o,n,t=>s(Math.floor(t%o)+e))+i)},Do=(t,e,r=". ")=>{const n=e.length;return Po(Math.abs(t),n,!1,t=>e[Math.floor(t%n)])+r},No=(t,e,r,n,i,o)=>{if(t<-9999||t>9999)return jo(t,4,i.length>0);let s=Math.abs(t),a=i;if(0===s)return e[0]+a;for(let n=0;s>0&&n<=4;n++){const i=s%10;0===i&&Gn(o,1)&&""!==a?a=e[i]+a:i>1||1===i&&0===n||1===i&&1===n&&Gn(o,2)||1===i&&1===n&&Gn(o,4)&&t>100||1===i&&n>1&&Gn(o,8)?a=e[i]+(n>0?r[n-1]:"")+a:1===i&&n>0&&(a=r[n-1]+a),s=Math.floor(s/10)}return(t<0?n:"")+a},Oo="十百千萬",Uo="拾佰仟萬",Qo="マイナス",Ro="마이너스",jo=(t,e,r)=>{const n=r?". ":"",i=r?"、":"",o=r?", ":"",s=r?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:const e=Mo(t,48,57,!0,n);return e.length<4?`0${e}`:e;case 4:return Do(t,"〇一二三四五六七八九",i);case 6:return Lo(t,1,3999,Io,3,n).toLowerCase();case 7:return Lo(t,1,3999,Io,3,n);case 8:return Mo(t,945,969,!1,n);case 9:return Mo(t,97,122,!1,n);case 10:return Mo(t,65,90,!1,n);case 11:return Mo(t,1632,1641,!0,n);case 12:case 49:return Lo(t,1,9999,Fo,3,n);case 35:return Lo(t,1,9999,Fo,3,n).toLowerCase();case 13:return Mo(t,2534,2543,!0,n);case 14:case 30:return Mo(t,6112,6121,!0,n);case 15:return Do(t,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Do(t,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return No(t,"零一二三四五六七八九",Oo,"負",i,14);case 47:return No(t,"零壹貳參肆伍陸柒捌玖",Uo,"負",i,15);case 42:return No(t,"零一二三四五六七八九",Oo,"负",i,14);case 41:return No(t,"零壹贰叁肆伍陆柒捌玖",Uo,"负",i,15);case 26:return No(t,"〇一二三四五六七八九","十百千万",Qo,i,0);case 25:return No(t,"零壱弐参四伍六七八九","拾百千万",Qo,i,7);case 31:return No(t,"영일이삼사오육칠팔구","십백천만",Ro,o,7);case 33:return No(t,"零一二三四五六七八九","十百千萬",Ro,o,0);case 32:return No(t,"零壹貳參四五六七八九","拾百千",Ro,o,7);case 18:return Mo(t,2406,2415,!0,n);case 20:return Lo(t,1,19999,ko,3,n);case 21:return Mo(t,2790,2799,!0,n);case 22:return Mo(t,2662,2671,!0,n);case 52:return Lo(t,1,10999,To,3,n);case 23:return Do(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Do(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Mo(t,3302,3311,!0,n);case 28:return Do(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Do(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Mo(t,3792,3801,!0,n);case 37:return Mo(t,6160,6169,!0,n);case 38:return Mo(t,4160,4169,!0,n);case 39:return Mo(t,2918,2927,!0,n);case 40:return Mo(t,1776,1785,!0,n);case 43:return Mo(t,3046,3055,!0,n);case 44:return Mo(t,3174,3183,!0,n);case 45:return Mo(t,3664,3673,!0,n);case 46:return Mo(t,3872,3881,!0,n);default:return Mo(t,48,57,!0,n)}},Ho="data-html2canvas-ignore";class Vo{constructor(t,e,r){if(this.context=t,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new So,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");if(!this.options.iframeContainer){const t=(t=>{let e=t;for(;e;){if(e.parentNode&&e.parentNode.host)return e.parentNode;const t=e.getRootNode();if(t&&t!==e.ownerDocument&&t.host)return t;e=e.parentNode}return null})(e);t&&(this.options.iframeContainer=t)}this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}toIFrame(t,e){const r=Go(t,e,this.options.iframeContainer);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");const n=t.defaultView.pageXOffset,i=t.defaultView.pageYOffset,o=r.contentWindow,s=o.document,a=Wo(r).then(async()=>{this.scrolledElements.forEach($o),o&&(o.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||o.scrollY===e.top&&o.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0)));const t=this.options.onclone,n=this.clonedReferenceElement;return void 0===n?Promise.reject(`Error finding the ${this.referenceElement.nodeName} in the cloned document`):(s.fonts&&s.fonts.ready&&await s.fonts.ready,/(AppleWebKit)/g.test(navigator.userAgent)&&await qo(s),"function"==typeof t?Promise.resolve().then(()=>t(s,n)).then(()=>r):r)}),A=s.baseURI;s.open();try{const t=trustedTypes.createPolicy("my-policy",{createHTML:t=>t}),e=Jo(document.doctype)+"<html></html>",r=t.createHTML(e);s.write(r)}catch(t){s.write(Jo(document.doctype)+"<html></html>")}Zo(this.referenceElement.ownerDocument,n,i);const l=s.adoptNode(this.documentElement);return os(l,A),s.replaceChild(l,s.documentElement),s.close(),a}createElementClone(t){if(ci(t,2),mo(t))return this.createCanvasClone(t);if(yo(t))return this.createVideoClone(t);if(wo(t))return this.createStyleClone(t);const e=t.cloneNode(!1);return vo(e)&&(vo(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Eo(e)?this.createCustomElementClone(e):e}createCustomElementClone(t){const e=document.createElement("div");if(e.className=t.className,Xo(t.style,e),t.shadowRoot)try{e.attachShadow({mode:"open"})}catch(t){this.context.logger.error("Failed to attach shadow root to custom element clone:",t)}return e}createStyleClone(t){try{const e=t.sheet;if(e&&e.cssRules){const r=[].slice.call(e.cssRules,0).reduce((t,e)=>e&&"string"==typeof e.cssText?t+e.cssText:t,""),n=t.cloneNode(!1);return n.textContent=r,this.options.cspNonce&&(n.nonce=this.options.cspNonce),n}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}const e=t.cloneNode(!1);return this.options.cspNonce&&(e.nonce=this.options.cspNonce),e}createCanvasClone(t){if(this.options.inlineImages&&t.ownerDocument){const e=t.ownerDocument.createElement("img");try{return e.src=t.toDataURL(),e}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}const e=t.cloneNode(!1);try{e.width=t.width,e.height=t.height;const r=t.getContext("2d"),n=e.getContext("2d",{willReadFrequently:!0});if(n)if(!this.options.allowTaint&&r)n.putImageData(r.getImageData(0,0,t.width,t.height),0,0);else{const e=t.getContext("webgl2")??t.getContext("webgl");if(e){const r=e.getContextAttributes();!1===r?.preserveDrawingBuffer&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}n.drawImage(t,0,0)}return e}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return e}createVideoClone(t){const e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;const r=e.getContext("2d");try{return r&&(r.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||r.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",t)}const n=t.ownerDocument.createElement("canvas");return n.width=t.offsetWidth,n.height=t.offsetHeight,n}appendChildNode(t,e,r){Ao(e)&&(xo(e)||e.hasAttribute(Ho)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&Ao(e)&&wo(e)||t.appendChild(this.cloneNode(e,r))}shouldCloneChild(t){return!(Ao(t)&&(xo(t)||t.hasAttribute(Ho)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t)))}shouldCloneStyleElement(t){return!this.options.copyStyles||!Ao(t)||!wo(t)}safeAppendClonedChild(t,e,r){this.shouldCloneChild(e)&&this.shouldCloneStyleElement(e)&&t.appendChild(this.cloneNode(e,r))}cloneAssignedNodes(t,e,r){t.forEach(t=>{this.safeAppendClonedChild(e,t,r)})}cloneSlotFallbackContent(t,e,r){for(let n=t.firstChild;n;n=n.nextSibling)this.safeAppendClonedChild(e,n,r)}cloneSlotElement(t,e,r){if(!_o(t))return;const n=t;if("function"!=typeof n.assignedNodes)return this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",t),void this.cloneSlotFallbackContent(t,e,r);const i=n.assignedNodes();if(!i||!Array.isArray(i))return this.context.logger.warn("assignedNodes() did not return a valid array",t),void this.cloneSlotFallbackContent(t,e,r);i.length>0?this.cloneAssignedNodes(i,e,r):this.cloneSlotFallbackContent(t,e,r)}cloneShadowDOMChildren(t,e,r){for(let n=t.firstChild;n;n=n.nextSibling)Ao(n)&&_o(n)?this.cloneSlotElement(n,e,r):this.safeAppendClonedChild(e,n,r)}cloneLightDOMChildren(t,e,r){for(let n=t.firstChild;n;n=n.nextSibling)this.appendChildNode(e,n,r)}cloneSlotElementAsLightDOM(t,e,r){if(!_o(t))return;const n=t;if("function"!=typeof n.assignedNodes){for(let n=t.firstChild;n;n=n.nextSibling)this.appendChildNode(e,n,r);return}const i=n.assignedNodes();if(i&&Array.isArray(i)&&i.length>0)i.forEach(t=>this.appendChildNode(e,t,r));else for(let n=t.firstChild;n;n=n.nextSibling)this.appendChildNode(e,n,r)}cloneShadowDOMAsLightDOM(t,e,r){for(let n=t.firstChild;n;n=n.nextSibling)Ao(n)&&_o(n)?this.cloneSlotElementAsLightDOM(n,e,r):this.appendChildNode(e,n,r)}cloneChildNodes(t,e,r){t.shadowRoot&&e.shadowRoot?(this.cloneShadowDOMChildren(t.shadowRoot,e.shadowRoot,r),this.cloneLightDOMChildren(t,e,r)):t.shadowRoot&&!e.shadowRoot?this.cloneShadowDOMAsLightDOM(t.shadowRoot,e,r):this.cloneLightDOMChildren(t,e,r)}cloneNode(t,e){if(ao(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);const r=t.ownerDocument.defaultView;if(r&&Ao(t)&&(lo(t)||co(t))){const n=this.createElementClone(t);n.style.transitionProperty="none";const i=r.getComputedStyle(t),o=r.getComputedStyle(t,":before"),s=r.getComputedStyle(t,":after");this.referenceElement===t&&lo(n)&&(this.clonedReferenceElement=n),go(n)&&ns(n,this.options.cspNonce);const a=this.counters.parse(new Ai(this.context,i)),A=this.resolvePseudoContent(t,n,o,zo.BEFORE);Eo(t)&&(e=!0),yo(t)||this.cloneChildNodes(t,n,e),A&&n.insertBefore(A,n.firstChild);const l=this.resolvePseudoContent(t,n,s,zo.AFTER);return l&&n.appendChild(l),this.counters.pop(a),(i&&(this.options.copyStyles||co(t))&&!bo(t)||e)&&Xo(i,n),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(Bo(t)||Co(t))&&(Bo(n)||Co(n))&&(n.value=t.value),n}return t.cloneNode(!1)}resolvePseudoContent(t,e,r,n){if(!r)return;const i=r.content,o=e.ownerDocument;if(!o||!i||"none"===i||"-moz-alt-content"===i||"none"===r.display)return;this.counters.parse(new Ai(this.context,r));const s=new ai(this.context,r),a=o.createElement("html2canvaspseudoelement");Xo(r,a),s.content.forEach(e=>{if(0===e.type)a.appendChild(o.createTextNode(e.value));else if(22===e.type){const t=o.createElement("img");t.src=e.value,t.style.opacity="1",a.appendChild(t)}else if(18===e.type){if("attr"===e.name){const r=e.values.filter(Kt);r.length&&a.appendChild(o.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){const[t,r]=e.values.filter(Xt);if(t&&Kt(t)){const e=this.counters.getCounterValue(t.value),n=r&&Kt(r)?sn.parse(this.context,r.value):3;a.appendChild(o.createTextNode(jo(e,n,!1)))}}else if("counters"===e.name){const[t,r,n]=e.values.filter(Xt);if(t&&Kt(t)){const e=this.counters.getCounterValues(t.value),i=n&&Kt(n)?sn.parse(this.context,n.value):3,s=r&&0===r.type?r.value:"",A=e.map(t=>jo(t,i,!1)).join(s);a.appendChild(o.createTextNode(A))}}}else if(20===e.type)switch(e.value){case"open-quote":a.appendChild(o.createTextNode(Jn(s.quotes,this.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(Jn(s.quotes,--this.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(e.value))}}),a.className=`${ts} ${es}`;const A=n===zo.BEFORE?` ${ts}`:` ${es}`;return co(e)?e.className.baseValue+=A:e.className+=A,a}static destroy(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)}}var zo;!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(zo||(zo={}));const Go=(t,e,r)=>{const n=t.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=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(Ho,"true"),(r||t.body).appendChild(n),n},Ko=t=>new Promise(e=>{t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}),qo=t=>Promise.all([].slice.call(t.images,0).map(Ko)),Wo=t=>new Promise((e,r)=>{const n=t.contentWindow;if(!n)return r("No window assigned for iframe");const i=n.document;n.onload=t.onload=()=>{n.onload=t.onload=null;const r=setInterval(()=>{i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(r),e(t))},50)}}),Yo=["all","d","content"],Xo=(t,e)=>{for(let r=t.length-1;r>=0;r--){const n=t.item(r);-1!==Yo.indexOf(n)||n.startsWith("--")||e.style.setProperty(n,t.getPropertyValue(n))}return e},Jo=t=>{let e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+=`"${t.publicId}"`),t.systemId&&(e+=`"${t.systemId}"`),e+=">"),e},Zo=(t,e,r)=>{t&&t.defaultView&&(e!==t.defaultView.pageXOffset||r!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,r)},$o=([t,e,r])=>{t.scrollLeft=e,t.scrollTop=r},ts="___html2canvas___pseudoelement_before",es="___html2canvas___pseudoelement_after",rs='{\n    content: "" !important;\n    display: none !important;\n}',ns=(t,e)=>{is(t,`.${ts}:before${rs}\n         .${es}:after${rs}`,e)},is=(t,e,r)=>{const n=t.ownerDocument;if(n){const i=n.createElement("style");i.textContent=e,r&&(i.nonce=r),t.appendChild(i)}},os=(t,e)=>{const r=t.ownerDocument.createElement("base");r.href=e;const n=t.getElementsByTagName("head").item(0);n?.insertBefore(r,n?.firstChild??null)};class ss{static getOrigin(t){const e=ss._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"}static isSameOrigin(t){return ss.getOrigin(t)===ss._origin}static setContext(t){ss._link=t.document.createElement("a"),ss._origin=ss.getOrigin(t.location.href)}}ss._origin="about:blank";class as{constructor(t,e){this.context=t,this._options=e,this._cache={}}addImage(t){const e=Promise.resolve();return this.has(t)?e:fs(t)||hs(t)?((this._cache[t]=this.loadImage(t)).catch(()=>{}),e):e}match(t){return this._cache[t]}async loadImage(t){const e="function"==typeof this._options.customIsSameOrigin?await this._options.customIsSameOrigin(t,ss.isSameOrigin):ss.isSameOrigin(t),r=!us(t)&&!0===this._options.useCORS&&ki.SUPPORT_CORS_IMAGES&&!e,n=!us(t)&&!e&&!fs(t)&&"string"==typeof this._options.proxy&&ki.SUPPORT_CORS_XHR&&!r;if(!(e||!1!==this._options.allowTaint||us(t)||fs(t)||n||r))return;let i=t;return n&&(i=await this.proxy(i)),this.context.logger.debug(`Added image ${t.substring(0,256)}`),await new Promise((t,e)=>{const n=new Image;n.onload=()=>t(n),n.onerror=e,(ps(i)||r)&&(n.crossOrigin="anonymous"),n.src=i,!0===n.complete&&setTimeout(()=>t(n),500),this._options.imageTimeout>0&&setTimeout(()=>e(`Timed out (${this._options.imageTimeout}ms) loading image`),this._options.imageTimeout)})}has(t){return void 0!==this._cache[t]}keys(){return Promise.resolve(Object.keys(this._cache))}proxy(t){const e=this._options.proxy;if(!e)throw new Error("No proxy defined");const r=t.substring(0,256);return new Promise((n,i)=>{const o=ki.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=()=>{if(200===s.status)if("text"===o)n(s.response);else{const t=new FileReader;t.addEventListener("load",()=>n(t.result),!1),t.addEventListener("error",t=>i(t),!1),t.readAsDataURL(s.response)}else i(`Failed to proxy resource ${r} with status code ${s.status}`)},s.onerror=i;const a=e.indexOf("?")>-1?"&":"?";if(s.open("GET",`${e}${a}url=${encodeURIComponent(t)}&responseType=${o}`),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),this._options.imageTimeout){const t=this._options.imageTimeout;s.timeout=t,s.ontimeout=()=>i(`Timed out (${t}ms) proxying ${r}`)}s.send()})}}const As=/^data:image\/svg\+xml/i,ls=/^data:image\/.*;base64,/i,cs=/^data:image\/.*/i,hs=t=>ki.SUPPORT_SVG_DRAWING||!ds(t),us=t=>cs.test(t),ps=t=>ls.test(t),fs=t=>"blob"===t.substr(0,4),ds=t=>"svg"===t.substr(-3).toLowerCase()||As.test(t);class gs{constructor(t,e){this.type=0,this.x=t,this.y=e}add(t,e){return new gs(this.x+t,this.y+e)}}const ms=(t,e,r)=>new gs(t.x+(e.x-t.x)*r,t.y+(e.y-t.y)*r);class ys{constructor(t,e,r,n){this.type=1,this.start=t,this.startControl=e,this.endControl=r,this.end=n}subdivide(t,e){const r=ms(this.start,this.startControl,t),n=ms(this.startControl,this.endControl,t),i=ms(this.endControl,this.end,t),o=ms(r,n,t),s=ms(n,i,t),a=ms(o,s,t);return e?new ys(this.start,r,o,a):new ys(a,s,i,this.end)}add(t,e){return new ys(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))}reverse(){return new ys(this.end,this.endControl,this.startControl,this.start)}}const vs=t=>1===t.type;class bs{constructor(t){const e=t.styles,r=t.bounds;let[n,i]=oe(e.borderTopLeftRadius,r.width,r.height),[o,s]=oe(e.borderTopRightRadius,r.width,r.height),[a,A]=oe(e.borderBottomRightRadius,r.width,r.height),[l,c]=oe(e.borderBottomLeftRadius,r.width,r.height);const h=[];h.push((n+o)/r.width),h.push((l+a)/r.width),h.push((i+c)/r.height),h.push((s+A)/r.height);const u=Math.max(...h);u>1&&(n/=u,i/=u,o/=u,s/=u,a/=u,A/=u,l/=u,c/=u);const p=r.width-o,f=r.height-A,d=r.width-a,g=r.height-c,m=e.borderTopWidth,y=e.borderRightWidth,v=e.borderBottomWidth,b=e.borderLeftWidth,w=se(e.paddingTop,t.bounds.width),x=se(e.paddingRight,t.bounds.width),B=se(e.paddingBottom,t.bounds.width),C=se(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||i>0?xs(r.left+b/3,r.top+m/3,n-b/3,i-m/3,ws.TOP_LEFT):new gs(r.left+b/3,r.top+m/3),this.topRightBorderDoubleOuterBox=n>0||i>0?xs(r.left+p,r.top+m/3,o-y/3,s-m/3,ws.TOP_RIGHT):new gs(r.left+r.width-y/3,r.top+m/3),this.bottomRightBorderDoubleOuterBox=a>0||A>0?xs(r.left+d,r.top+f,a-y/3,A-v/3,ws.BOTTOM_RIGHT):new gs(r.left+r.width-y/3,r.top+r.height-v/3),this.bottomLeftBorderDoubleOuterBox=l>0||c>0?xs(r.left+b/3,r.top+g,l-b/3,c-v/3,ws.BOTTOM_LEFT):new gs(r.left+b/3,r.top+r.height-v/3),this.topLeftBorderDoubleInnerBox=n>0||i>0?xs(r.left+2*b/3,r.top+2*m/3,n-2*b/3,i-2*m/3,ws.TOP_LEFT):new gs(r.left+2*b/3,r.top+2*m/3),this.topRightBorderDoubleInnerBox=n>0||i>0?xs(r.left+p,r.top+2*m/3,o-2*y/3,s-2*m/3,ws.TOP_RIGHT):new gs(r.left+r.width-2*y/3,r.top+2*m/3),this.bottomRightBorderDoubleInnerBox=a>0||A>0?xs(r.left+d,r.top+f,a-2*y/3,A-2*v/3,ws.BOTTOM_RIGHT):new gs(r.left+r.width-2*y/3,r.top+r.height-2*v/3),this.bottomLeftBorderDoubleInnerBox=l>0||c>0?xs(r.left+2*b/3,r.top+g,l-2*b/3,c-2*v/3,ws.BOTTOM_LEFT):new gs(r.left+2*b/3,r.top+r.height-2*v/3),this.topLeftBorderStroke=n>0||i>0?xs(r.left+b/2,r.top+m/2,n-b/2,i-m/2,ws.TOP_LEFT):new gs(r.left+b/2,r.top+m/2),this.topRightBorderStroke=n>0||i>0?xs(r.left+p,r.top+m/2,o-y/2,s-m/2,ws.TOP_RIGHT):new gs(r.left+r.width-y/2,r.top+m/2),this.bottomRightBorderStroke=a>0||A>0?xs(r.left+d,r.top+f,a-y/2,A-v/2,ws.BOTTOM_RIGHT):new gs(r.left+r.width-y/2,r.top+r.height-v/2),this.bottomLeftBorderStroke=l>0||c>0?xs(r.left+b/2,r.top+g,l-b/2,c-v/2,ws.BOTTOM_LEFT):new gs(r.left+b/2,r.top+r.height-v/2),this.topLeftBorderBox=n>0||i>0?xs(r.left,r.top,n,i,ws.TOP_LEFT):new gs(r.left,r.top),this.topRightBorderBox=o>0||s>0?xs(r.left+p,r.top,o,s,ws.TOP_RIGHT):new gs(r.left+r.width,r.top),this.bottomRightBorderBox=a>0||A>0?xs(r.left+d,r.top+f,a,A,ws.BOTTOM_RIGHT):new gs(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=l>0||c>0?xs(r.left,r.top+g,l,c,ws.BOTTOM_LEFT):new gs(r.left,r.top+r.height),this.topLeftPaddingBox=n>0||i>0?xs(r.left+b,r.top+m,Math.max(0,n-b),Math.max(0,i-m),ws.TOP_LEFT):new gs(r.left+b,r.top+m),this.topRightPaddingBox=o>0||s>0?xs(r.left+Math.min(p,r.width-y),r.top+m,p>r.width+y?0:Math.max(0,o-y),Math.max(0,s-m),ws.TOP_RIGHT):new gs(r.left+r.width-y,r.top+m),this.bottomRightPaddingBox=a>0||A>0?xs(r.left+Math.min(d,r.width-b),r.top+Math.min(f,r.height-v),Math.max(0,a-y),Math.max(0,A-v),ws.BOTTOM_RIGHT):new gs(r.left+r.width-y,r.top+r.height-v),this.bottomLeftPaddingBox=l>0||c>0?xs(r.left+b,r.top+Math.min(g,r.height-v),Math.max(0,l-b),Math.max(0,c-v),ws.BOTTOM_LEFT):new gs(r.left+b,r.top+r.height-v),this.topLeftContentBox=n>0||i>0?xs(r.left+b+C,r.top+m+w,Math.max(0,n-(b+C)),Math.max(0,i-(m+w)),ws.TOP_LEFT):new gs(r.left+b+C,r.top+m+w),this.topRightContentBox=o>0||s>0?xs(r.left+Math.min(p,r.width+b+C),r.top+m+w,p>r.width+b+C?0:o-b+C,s-(m+w),ws.TOP_RIGHT):new gs(r.left+r.width-(y+x),r.top+m+w),this.bottomRightContentBox=a>0||A>0?xs(r.left+Math.min(d,r.width-(b+C)),r.top+Math.min(f,r.height+m+w),Math.max(0,a-(y+x)),A-(v+B),ws.BOTTOM_RIGHT):new gs(r.left+r.width-(y+x),r.top+r.height-(v+B)),this.bottomLeftContentBox=l>0||c>0?xs(r.left+b+C,r.top+g,Math.max(0,l-(b+C)),c-(v+B),ws.BOTTOM_LEFT):new gs(r.left+b+C,r.top+r.height-(v+B))}}var ws;!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(ws||(ws={}));const xs=(t,e,r,n,i)=>{const o=(Math.sqrt(2)-1)/3*4,s=r*o,a=n*o,A=t+r,l=e+n;switch(i){case ws.TOP_LEFT:return new ys(new gs(t,l),new gs(t,l-a),new gs(A-s,e),new gs(A,e));case ws.TOP_RIGHT:return new ys(new gs(t,e),new gs(t+s,e),new gs(A,l-a),new gs(A,l));case ws.BOTTOM_RIGHT:return new ys(new gs(A,e),new gs(A,e+a),new gs(t+s,l),new gs(t,l));case ws.BOTTOM_LEFT:default:return new ys(new gs(A,l),new gs(A-s,l),new gs(t,e+a),new gs(t,e))}},Bs=t=>[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox],Cs=t=>[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox];class _s{constructor(t,e,r){this.offsetX=t,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}}class Es{constructor(t,e){this.path=t,this.target=e,this.type=1}}class Ss{constructor(t){this.opacity=t,this.type=2,this.target=6}}const Is=t=>1===t.type,Fs=(t,e)=>t.length===e.length&&t.some((t,r)=>t===e[r]);class Ts{constructor(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}class ks{constructor(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new bs(this.container),this.container.styles.opacity<1&&this.effects.push(new Ss(this.container.styles.opacity)),null!==this.container.styles.rotate){const t=this.container.styles.transformOrigin,e=this.container.bounds.left+se(t[0],this.container.bounds.width),r=this.container.bounds.top+se(t[1],this.container.bounds.height),n=this.container.styles.rotate*Math.PI/180,i=Math.cos(n),o=Math.sin(n),s=[i,o,-o,i,0,0];this.effects.push(new _s(e,r,s))}if(null!==this.container.styles.transform){const t=this.container.styles.transformOrigin,e=this.container.bounds.left+se(t[0],this.container.bounds.width),r=this.container.bounds.top+se(t[1],this.container.bounds.height),n=this.container.styles.transform;this.effects.push(new _s(e,r,n))}if(0!==this.container.styles.overflowX){const t=Bs(this.curves),e=Cs(this.curves);Fs(t,e)?this.effects.push(new Es(t,6)):(this.effects.push(new Es(t,2)),this.effects.push(new Es(e,4)))}}getEffects(t){let e=-1===[2,3].indexOf(this.container.styles.position),r=this.parent;const n=this.effects.slice(0);for(;r;){const t=r.effects.filter(t=>!Is(t));if(e||0!==r.container.styles.position||!r.parent){if(e=-1===[2,3].indexOf(r.container.styles.position),0!==r.container.styles.overflowX){const t=Bs(r.curves),e=Cs(r.curves);Fs(t,e)||n.unshift(new Es(e,6))}n.unshift(...t)}else n.unshift(...t);r=r.parent}return n.filter(e=>Gn(e.target,t))}}const Ls=(t,e,r,n)=>{t.container.elements.forEach(i=>{const o=Gn(i.flags,4),s=Gn(i.flags,2),a=new ks(i,t);Gn(i.styles.display,2048)&&n.push(a);const A=Gn(i.flags,8)?[]:n;if(o||s){const t=o||i.styles.isPositioned()?r:e,n=new Ts(a);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){const e=i.styles.zIndex.order;if(e<0){let r=0;t.negativeZIndex.some((t,n)=>e>t.element.container.styles.zIndex.order?(r=n,!1):r>0),t.negativeZIndex.splice(r,0,n)}else if(e>0){let r=0;t.positiveZIndex.some((t,n)=>e>=t.element.container.styles.zIndex.order?(r=n+1,!1):r>0),t.positiveZIndex.splice(r,0,n)}else t.zeroOrAutoZIndexOrTransformedOrOpacity.push(n)}else i.styles.isFloating()?t.nonPositionedFloats.push(n):t.nonPositionedInlineLevel.push(n);Ls(a,n,o?n:r,A)}else i.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),Ls(a,e,r,A);Gn(i.flags,8)&&Ps(i,A)})},Ps=(t,e)=>{let r=t instanceof Gi?t.start:1;const n=t instanceof Gi&&t.reversed;for(let t=0;t<e.length;t++){const i=e[t];i.container instanceof zi&&"number"==typeof i.container.value&&0!==i.container.value&&(r=i.container.value),i.listValue=jo(r,i.container.styles.listStyleType,!0),r+=n?-1:1}},Ms=(t,e)=>{switch(e){case 0:return Ns(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Ns(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Ns(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return Ns(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Ds=(t,e)=>{const r=[];return vs(t)?r.push(t.subdivide(.5,!1)):r.push(t),vs(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},Ns=(t,e,r,n)=>{const i=[];return vs(t)?i.push(t.subdivide(.5,!1)):i.push(t),vs(r)?i.push(r.subdivide(.5,!0)):i.push(r),vs(n)?i.push(n.subdivide(.5,!0).reverse()):i.push(n),vs(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},Os=t=>{const e=t.bounds,r=t.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Us=t=>{const e=t.styles,r=t.bounds,n=se(e.paddingLeft,r.width),i=se(e.paddingRight,r.width),o=se(e.paddingTop,r.width),s=se(e.paddingBottom,r.width);return r.add(n+e.borderLeftWidth,o+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+i),-(e.borderTopWidth+e.borderBottomWidth+o+s))},Qs=(t,e,r)=>{const n=((t,e)=>0===t?e.bounds:2===t?Us(e):Os(e))(Vs(t.styles.backgroundOrigin,e),t),i=((t,e)=>0===t?e.bounds:2===t?Us(e):Os(e))(Vs(t.styles.backgroundClip,e),t),o=Hs(Vs(t.styles.backgroundSize,e),r,n);let[s,a]=o;const A=oe(Vs(t.styles.backgroundPosition,e),n.width-s,n.height-a),l=zs(Vs(t.styles.backgroundRepeat,e),A,o,n,i),c=Math.round(n.left+A[0]),h=Math.round(n.top+A[1]);return s=Math.max(1,s),a=Math.max(1,a),[l,c,h,s,a]},Rs=t=>Kt(t)&&t.value===Cr.AUTO,js=t=>"number"==typeof t,Hs=(t,[e,r,n],i)=>{const[o,s]=t;if(!o)return[0,0];if(te(o)&&s&&te(s))return[se(o,i.width),se(s,i.height)];const a=js(n);if(Kt(o)&&(o.value===Cr.CONTAIN||o.value===Cr.COVER))return js(n)?i.width/i.height<n!=(o.value===Cr.COVER)?[i.width,i.width/n]:[i.height*n,i.height]:[i.width,i.height];const A=js(e),l=js(r),c=A||l;if(Rs(o)&&(!s||Rs(s)))return A&&l?[e,r]:a||c?c&&a?[A?e:r*n,l?r:e/n]:[A?e:i.width,l?r:i.height]:[i.width,i.height];if(a){let t=0,e=0;return te(o)?t=se(o,i.width):te(s)&&(e=se(s,i.height)),Rs(o)?t=e*n:s&&!Rs(s)||(e=t/n),[t,e]}let h=null,u=null;if(te(o)?h=se(o,i.width):s&&te(s)&&(u=se(s,i.height)),null===h||s&&!Rs(s)||(u=A&&l?h/e*r:i.height),null!==u&&Rs(o)&&(h=A&&l?u/r*e:i.width),null!==h&&null!==u)return[h,u];throw new Error("Unable to calculate background-size for element")},Vs=(t,e)=>{const r=t[e];return void 0===r?t[0]:r},zs=(t,[e,r],[n,i],o,s)=>{switch(t){case 2:return[new gs(Math.round(o.left),Math.round(o.top+r)),new gs(Math.round(o.left+o.width),Math.round(o.top+r)),new gs(Math.round(o.left+o.width),Math.round(i+o.top+r)),new gs(Math.round(o.left),Math.round(i+o.top+r))];case 3:return[new gs(Math.round(o.left+e),Math.round(o.top)),new gs(Math.round(o.left+e+n),Math.round(o.top)),new gs(Math.round(o.left+e+n),Math.round(o.height+o.top)),new gs(Math.round(o.left+e),Math.round(o.height+o.top))];case 1:return[new gs(Math.round(o.left+e),Math.round(o.top+r)),new gs(Math.round(o.left+e+n),Math.round(o.top+r)),new gs(Math.round(o.left+e+n),Math.round(o.top+r+i)),new gs(Math.round(o.left+e),Math.round(o.top+r+i))];default:return[new gs(Math.round(s.left),Math.round(s.top)),new gs(Math.round(s.left+s.width),Math.round(s.top)),new gs(Math.round(s.left+s.width),Math.round(s.height+s.top)),new gs(Math.round(s.left),Math.round(s.height+s.top))]}},Gs="Hidden Text";class Ks{constructor(t){this._data={},this._document=t}parseMetrics(t,e){const r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",o.appendChild(r),n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(Gs)),r.appendChild(i),r.appendChild(n);const s=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(Gs)),r.style.lineHeight="normal",n.style.verticalAlign="super";const a=n.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:s,middle:a}}getMetrics(t,e){const r=`${t} ${e}`;return void 0===this._data[r]&&(this._data[r]=this.parseMetrics(t,e)),this._data[r]}}class qs{constructor(t,e){this.context=t,this.options=e}}class Ws extends qs{constructor(t,e){super(t,e),this._activeEffects=[],this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`),this.fontMetrics=new Ks(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.ctx.textBaseline="bottom",this._activeEffects=[],this.context.logger.debug(`Canvas renderer initialized (${e.width}x${e.height}) with scale ${e.scale}`)}applyEffects(t){for(;this._activeEffects.length;)this.popEffect();t.forEach(t=>this.applyEffect(t))}applyEffect(t){this.ctx.save(),(t=>2===t.type)(t)&&(this.ctx.globalAlpha=t.opacity),(t=>0===t.type)(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Is(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)}popEffect(){this._activeEffects.pop(),this.ctx.restore()}async renderStack(t){t.element.container.styles.isVisible()&&await this.renderStackContent(t)}async renderNode(t){Gn(t.container.flags,16),t.container.styles.isVisible()&&(await this.renderNodeBackgroundAndBorders(t),await this.renderNodeContent(t))}renderTextWithLetterSpacing(t,e,r){0===e?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+r):Mi(t.text).reduce((e,n)=>(this.ctx.fillText(n,e,t.bounds.top+r),e+this.ctx.measureText(n).width),t.bounds.left)}renderTextBoundWithPaintOrder(t,e,r){r.forEach(r=>{switch(r){case 0:this.ctx.fillStyle=fe(e.color),this.renderTextWithLetterSpacing(t,e.letterSpacing,e.fontSize.number);break;case 1:e.webkitTextStrokeWidth&&t.text.trim().length&&(this.ctx.strokeStyle=fe(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round",this.renderTextWithLetterSpacing(t,e.letterSpacing,e.fontSize.number))}})}renderTextDecoration(t,e){this.ctx.fillStyle=fe(e.textDecorationColor||e.color);let r=1;"number"==typeof e.textDecorationThickness?r=e.textDecorationThickness:"from-font"===e.textDecorationThickness&&(r=Math.max(1,Math.floor(.05*e.fontSize.number)));let n=0;"number"==typeof e.textUnderlineOffset&&(n=e.textUnderlineOffset);const i=e.textDecorationStyle;e.textDecorationLine.forEach(e=>{let o=0;switch(e){case 1:o=t.top+t.height-r+n;break;case 2:o=t.top;break;case 3:o=t.top+(t.height/2-r/2);break;default:return}this.drawDecorationLine(t.left,o,t.width,r,i)})}drawDecorationLine(t,e,r,n,i){switch(i){case 0:default:this.ctx.fillRect(t,e,r,n);break;case 1:const i=Math.max(1,n);this.ctx.fillRect(t,e,r,n),this.ctx.fillRect(t,e+n+i,r,n);break;case 2:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([n,2*n]),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(t,e+n/2),this.ctx.lineTo(t+r,e+n/2),this.ctx.stroke(),this.ctx.restore();break;case 3:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([3*n,2*n]),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(t,e+n/2),this.ctx.lineTo(t+r,e+n/2),this.ctx.stroke(),this.ctx.restore();break;case 4:this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=n,this.ctx.strokeStyle=this.ctx.fillStyle;const o=2*n,s=4*n;let a=t;for(this.ctx.moveTo(a,e+n/2);a<t+r;){const i=Math.min(a+s/2,t+r);if(this.ctx.quadraticCurveTo(a+s/4,e+n/2-o,i,e+n/2),a=i,a<t+r){const i=Math.min(a+s/2,t+r);this.ctx.quadraticCurveTo(a+s/4,e+n/2+o,i,e+n/2),a=i}}this.ctx.stroke(),this.ctx.restore()}}truncateTextWithEllipsis(t,e,r){const n="...",i=this.ctx.measureText(n).width;if(0===r){let r=t;for(;this.ctx.measureText(r).width+i>e&&r.length>0;)r=r.slice(0,-1);return r+n}{const o=Mi(t);let s=i,a=[];for(const t of o){const n=this.ctx.measureText(t).width+r;if(s+n>e)break;a.push(t),s+=n}return a.join("")+n}}createFontStyle(t){const e=t.fontVariant.filter(t=>"normal"===t||"small-caps"===t).join(""),r=$s(t.fontFamily).join(", "),n=zt(t.fontSize)?`${t.fontSize.number}${t.fontSize.unit}`:`${t.fontSize.number}px`;return[[t.fontStyle,e,t.fontWeight,n,r].join(" "),r,n]}async renderTextNode(t,e,r){const[n]=this.createFontStyle(e);this.ctx.font=n,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const i=e.paintOrder,o=1.5*e.fontSize.number;if(e.webkitLineClamp>0&&2&e.display&&1===e.overflowY&&t.textBounds.length>0){const n=[];let s=[],a=t.textBounds[0].bounds.top;t.textBounds.forEach(t=>{Math.abs(t.bounds.top-a)>=.5*o?(s.length>0&&n.push(s),s=[t],a=t.bounds.top):s.push(t)}),s.length>0&&n.push(s);const A=e.webkitLineClamp;if(n.length>A){for(let t=0;t<A-1;t++)n[t].forEach(t=>{this.renderTextBoundWithPaintOrder(t,e,i)});const t=n[A-1];if(t&&t.length>0&&r){const n=t.map(t=>t.text).join(""),o=t[0],s=r.width-(o.bounds.left-r.left),a=this.truncateTextWithEllipsis(n,s,e.letterSpacing);i.forEach(t=>{switch(t){case 0:this.ctx.fillStyle=fe(e.color),0===e.letterSpacing?this.ctx.fillText(a,o.bounds.left,o.bounds.top+e.fontSize.number):Mi(a).reduce((t,r)=>(this.ctx.fillText(r,t,o.bounds.top+e.fontSize.number),t+this.ctx.measureText(r).width+e.letterSpacing),o.bounds.left);break;case 1:e.webkitTextStrokeWidth&&a.trim().length&&(this.ctx.strokeStyle=fe(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round",0===e.letterSpacing?this.ctx.strokeText(a,o.bounds.left,o.bounds.top+e.fontSize.number):Mi(a).reduce((t,r)=>(this.ctx.strokeText(r,t,o.bounds.top+e.fontSize.number),t+this.ctx.measureText(r).width+e.letterSpacing),o.bounds.left))}})}return}}const s=1===e.textOverflow&&r&&1===e.overflowX&&t.textBounds.length>0;let a=!1,A="";if(s){const n=t.textBounds[0].bounds.top;if(t.textBounds.every(t=>Math.abs(t.bounds.top-n)<.5*o)){let n=t.textBounds.map(t=>t.text).join("");n=n.replace(/\s+/g," ").trim();const i=this.ctx.measureText(n).width,o=r.width;i>o&&(a=!0,A=this.truncateTextWithEllipsis(n,o,e.letterSpacing))}}if(a){const r=t.textBounds[0];return void i.forEach(t=>{switch(t){case 0:this.ctx.fillStyle=fe(e.color),0===e.letterSpacing?this.ctx.fillText(A,r.bounds.left,r.bounds.top+e.fontSize.number):Mi(A).reduce((t,n)=>(this.ctx.fillText(n,t,r.bounds.top+e.fontSize.number),t+this.ctx.measureText(n).width+e.letterSpacing),r.bounds.left);const t=e.textShadow;t.length&&A.trim().length&&(t.slice(0).reverse().forEach(t=>{this.ctx.shadowColor=fe(t.color),this.ctx.shadowOffsetX=t.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=t.offsetY.number*this.options.scale,this.ctx.shadowBlur=t.blur.number,0===e.letterSpacing?this.ctx.fillText(A,r.bounds.left,r.bounds.top+e.fontSize.number):Mi(A).reduce((t,n)=>(this.ctx.fillText(n,t,r.bounds.top+e.fontSize.number),t+this.ctx.measureText(n).width+e.letterSpacing),r.bounds.left)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0);break;case 1:e.webkitTextStrokeWidth&&A.trim().length&&(this.ctx.strokeStyle=fe(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round",0===e.letterSpacing?this.ctx.strokeText(A,r.bounds.left,r.bounds.top+e.fontSize.number):Mi(A).reduce((t,n)=>(this.ctx.strokeText(n,t,r.bounds.top+e.fontSize.number),t+this.ctx.measureText(n).width+e.letterSpacing),r.bounds.left))}})}t.textBounds.forEach(t=>{i.forEach(r=>{switch(r){case 0:this.ctx.fillStyle=fe(e.color),this.renderTextWithLetterSpacing(t,e.letterSpacing,e.fontSize.number);const r=e.textShadow;r.length&&t.text.trim().length&&(r.slice(0).reverse().forEach(r=>{this.ctx.shadowColor=fe(r.color),this.ctx.shadowOffsetX=r.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=r.offsetY.number*this.options.scale,this.ctx.shadowBlur=r.blur.number,this.renderTextWithLetterSpacing(t,e.letterSpacing,e.fontSize.number)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0),e.textDecorationLine.length&&this.renderTextDecoration(t.bounds,e);break;case 1:if(e.webkitTextStrokeWidth&&t.text.trim().length){this.ctx.strokeStyle=fe(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round";const r=e.fontSize.number;0===e.letterSpacing?this.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+r):Mi(t.text).reduce((e,n)=>(this.ctx.strokeText(n,e,t.bounds.top+r),e+this.ctx.measureText(n).width),t.bounds.left)}this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter"}})})}renderReplacedElement(t,e,r){const n=r.naturalWidth||t.intrinsicWidth,i=r.naturalHeight||t.intrinsicHeight;if(r&&n>0&&i>0){const o=Us(t),s=Cs(e);this.path(s),this.ctx.save(),this.ctx.clip();let a=0,A=0,l=n,c=i,h=o.left,u=o.top,p=o.width,f=o.height;const{objectFit:d}=t.styles,g=p/f,m=l/c;2===d?m>g?(f=p/m,u+=(o.height-f)/2):(p=f*m,h+=(o.width-p)/2):4===d?m>g?(l=c*g,a+=(n-l)/2):(c=l/g,A+=(i-c)/2):8===d?(l>p?(a+=(l-p)/2,l=p):(h+=(p-l)/2,p=l),c>f?(A+=(c-f)/2,c=f):(u+=(f-c)/2,f=c)):16===d&&((m>g?p:f*m)<(l>p?l:p)?m>g?(f=p/m,u+=(o.height-f)/2):(p=f*m,h+=(o.width-p)/2):(l>p?(a+=(l-p)/2,l=p):(h+=(p-l)/2,p=l),c>f?(A+=(c-f)/2,c=f):(u+=(f-c)/2,f=c))),this.ctx.drawImage(r,a,A,l,c,h,u,p,f),this.ctx.restore()}}async renderNodeContent(t){this.applyEffects(t.getEffects(4));const e=t.container,r=t.curves,i=e.styles,o=Us(e);for(const t of e.textNodes)await this.renderTextNode(t,i,o);if(e instanceof ji)try{const t=await this.context.cache.match(e.src);this.renderReplacedElement(e,r,t)}catch(t){this.context.logger.error(`Error loading image ${e.src}`)}if(e instanceof Hi&&this.renderReplacedElement(e,r,e.canvas),e instanceof Vi)try{const t=await this.context.cache.match(e.svg);this.renderReplacedElement(e,r,t)}catch(t){this.context.logger.error(`Error loading svg ${e.svg.substring(0,255)}`)}if(e instanceof to&&e.tree){const t=new Ws(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}),r=await t.render(e.tree);e.width&&e.height&&this.ctx.drawImage(r,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height)}if(e instanceof Ji){const t=Math.min(e.bounds.width,e.bounds.height);e.type===Wi?e.checked&&(this.ctx.save(),this.path([new gs(e.bounds.left+.39363*t,e.bounds.top+.79*t),new gs(e.bounds.left+.16*t,e.bounds.top+.5549*t),new gs(e.bounds.left+.27347*t,e.bounds.top+.44071*t),new gs(e.bounds.left+.39694*t,e.bounds.top+.5649*t),new gs(e.bounds.left+.72983*t,e.bounds.top+.23*t),new gs(e.bounds.left+.84*t,e.bounds.top+.34085*t),new gs(e.bounds.left+.39363*t,e.bounds.top+.79*t)]),this.ctx.fillStyle=fe(Xi),this.ctx.fill(),this.ctx.restore()):e.type===Yi&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+t/2,e.bounds.top+t/2,t/4,0,2*Math.PI,!0),this.ctx.fillStyle=fe(Xi),this.ctx.fill(),this.ctx.restore())}if(Ys(e)&&e.value.length){const[t,r,n]=this.createFontStyle(i),{baseline:o}=this.fontMetrics.getMetrics(r,n);this.ctx.font=t;const s=e instanceof Ji&&e.isPlaceholder;this.ctx.fillStyle=fe(s?1970632191:i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Js(e.styles.textAlign);const a=Us(e);let A=0;switch(e.styles.textAlign){case 1:A+=a.width/2;break;case 2:A+=a.width}let l=0;if(e instanceof Ji){const t=se(i.fontSize,0);l=(a.height-t)/2}const c=a.add(A,l,0,0);this.ctx.save(),this.path([new gs(a.left,a.top),new gs(a.left+a.width,a.top),new gs(a.left+a.width,a.top+a.height),new gs(a.left,a.top+a.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Li(e.value,c),i.letterSpacing,o),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(Gn(e.styles.display,2048))if(null!==e.styles.listStyleImage){const t=e.styles.listStyleImage;if(0===t.type){let r;const n=t.url;try{r=await this.context.cache.match(n),this.ctx.drawImage(r,e.bounds.left-(r.width+10),e.bounds.top)}catch(t){this.context.logger.error(`Error loading list-style-image ${n}`)}}}else if(t.listValue&&-1!==e.styles.listStyleType){const[r]=this.createFontStyle(i);this.ctx.font=r,this.ctx.fillStyle=fe(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right";const o=new n(e.bounds.left,e.bounds.top+se(e.styles.paddingTop,e.bounds.width),e.bounds.width,rn(i.lineHeight,i.fontSize.number)/2+1);this.renderTextWithLetterSpacing(new Li(t.listValue,o),i.letterSpacing,rn(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}}async renderStackContent(t){Gn(t.element.container.flags,16),await this.renderNodeBackgroundAndBorders(t.element);for(const e of t.negativeZIndex)await this.renderStack(e);await this.renderNodeContent(t.element);for(const e of t.nonInlineLevel)await this.renderNode(e);for(const e of t.nonPositionedFloats)await this.renderStack(e);for(const e of t.nonPositionedInlineLevel)await this.renderStack(e);for(const e of t.inlineLevel)await this.renderNode(e);for(const e of t.zeroOrAutoZIndexOrTransformedOrOpacity)await this.renderStack(e);for(const e of t.positiveZIndex)await this.renderStack(e)}mask(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.options.width,0),this.ctx.lineTo(this.options.width,this.options.height),this.ctx.lineTo(0,this.options.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()}path(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()}formatPath(t){t.forEach((t,e)=>{const r=vs(t)?t.start:t;0===e?this.ctx.moveTo(r.x,r.y):this.ctx.lineTo(r.x,r.y),vs(t)&&this.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)})}renderRepeat(t,e,r,n){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(r,n),this.ctx.fill(),this.ctx.translate(-r,-n)}resizeImage(t,e,r){const n=(this.canvas.ownerDocument??document).createElement("canvas");return n.width=Math.max(1,e),n.height=Math.max(1,r),n.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e,r),n}async renderBackgroundImage(t){let e=t.styles.backgroundImage.length-1;for(const r of t.styles.backgroundImage.slice(0).reverse()){if(0===r.type){let n;const i=r.url;try{n=await this.context.cache.match(i)}catch(t){this.context.logger.error(`Error loading background-image ${i}`)}if(n){const r=isNaN(n.width)||0===n.width?1:n.width,i=isNaN(n.height)||0===n.height?1:n.height,[o,s,a,A,l]=Qs(t,e,[r,i,r/i]),c=this.ctx.createPattern(this.resizeImage(n,A,l),"repeat");this.renderRepeat(o,c,s,a)}}else if(dr(r)){const[n,i,o,s,a]=Qs(t,e,[null,null,null]),[A,l,c,h,u]=er(r.angle,s,a),p=document.createElement("canvas");p.width=s,p.height=a;const f=p.getContext("2d"),d=f.createLinearGradient(l,h,c,u);if(tr(r.stops,A||1).forEach(t=>d.addColorStop(t.stop,fe(t.color))),f.fillStyle=d,f.fillRect(0,0,s,a),s>0&&a>0){const t=this.ctx.createPattern(p,"repeat");this.renderRepeat(n,t,i,o)}}else if(gr(r)){const[n,i,o,s,a]=Qs(t,e,[null,null,null]),A=0===r.position.length?[ne]:r.position,l=se(A[0],s),c=se(A[A.length-1],a);let[h,u]=ir(r,l,c,s,a);if(0!==h&&0!==u||(h=Math.max(h,.01),u=Math.max(u,.01)),h>0&&u>0){const e=this.ctx.createRadialGradient(i+l,o+c,0,i+l,o+c,h);if(tr(r.stops,2*h).forEach(t=>e.addColorStop(t.stop,fe(t.color))),this.path(n),this.ctx.fillStyle=e,h!==u){const e=t.bounds.left+.5*t.bounds.width,r=t.bounds.top+.5*t.bounds.height,n=u/h,A=1/n;this.ctx.save(),this.ctx.translate(e,r),this.ctx.transform(1,0,0,n,0,0),this.ctx.translate(-e,-r),this.ctx.fillRect(i,A*(o-r)+r,s,a*A),this.ctx.restore()}else this.ctx.fill()}}e--}}async renderSolidBorder(t,e,r){this.path(Ms(r,e)),this.ctx.fillStyle=fe(t),this.ctx.fill()}async renderDoubleBorder(t,e,r,n){if(e<3)return void await this.renderSolidBorder(t,r,n);const i=((t,e)=>{switch(e){case 0:return Ns(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Ns(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Ns(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return Ns(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}})(n,r);this.path(i),this.ctx.fillStyle=fe(t),this.ctx.fill();const o=((t,e)=>{switch(e){case 0:return Ns(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Ns(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Ns(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return Ns(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}})(n,r);this.path(o),this.ctx.fill()}async renderNodeBackgroundAndBorders(t){this.applyEffects(t.getEffects(2));const e=t.container.styles,r=!pe(e.backgroundColor)||e.backgroundImage.length,n=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],i=Xs(Vs(e.backgroundClip,0),t.curves);(r||e.boxShadow.length)&&(this.ctx.save(),this.path(i),this.ctx.clip(),pe(e.backgroundColor)||(this.ctx.fillStyle=fe(e.backgroundColor),this.ctx.fill()),await this.renderBackgroundImage(t.container),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(e=>{this.ctx.save();const r=Bs(t.curves),n=e.inset?0:1e4,i=(o=r,s=-n+(e.inset?1:-1)*e.spread.number,a=(e.inset?1:-1)*e.spread.number,A=e.spread.number*(e.inset?-2:2),l=e.spread.number*(e.inset?-2:2),o.map((t,e)=>{switch(e){case 0:return t.add(s,a);case 1:return t.add(s+A,a);case 2:return t.add(s+A,a+l);case 3:return t.add(s,a+l)}return t}));var o,s,a,A,l;e.inset?(this.path(r),this.ctx.clip(),this.mask(i)):(this.mask(r),this.ctx.clip(),this.path(i)),this.ctx.shadowOffsetX=e.offsetX.number+n,this.ctx.shadowOffsetY=e.offsetY.number,this.ctx.shadowColor=fe(e.color),this.ctx.shadowBlur=e.blur.number,this.ctx.fillStyle=e.inset?fe(e.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()}));let o=0;for(const e of n)0!==e.style&&!pe(e.color)&&e.width>0&&(2===e.style?await this.renderDashedDottedBorder(e.color,e.width,o,t.curves,2):3===e.style?await this.renderDashedDottedBorder(e.color,e.width,o,t.curves,3):4===e.style?await this.renderDoubleBorder(e.color,e.width,o,t.curves):await this.renderSolidBorder(e.color,o,t.curves)),o++}async renderDashedDottedBorder(t,e,r,n,i){this.ctx.save();const o=((t,e)=>{switch(e){case 0:return Ds(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Ds(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Ds(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return Ds(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}})(n,r),s=Ms(n,r);let a,A,l,c,h;2===i&&(this.path(s),this.ctx.clip()),vs(s[0])?(a=s[0].start.x,A=s[0].start.y):(a=s[0].x,A=s[0].y),vs(s[1])?(l=s[1].end.x,c=s[1].end.y):(l=s[1].x,c=s[1].y),h=0===r||2===r?Math.abs(a-l):Math.abs(A-c),this.ctx.beginPath(),3===i?this.formatPath(o):this.formatPath(s.slice(0,2));let u=e<3?3*e:2*e,p=e<3?2*e:e;3===i&&(u=e,p=e);let f=!0;if(h<=2*u)f=!1;else if(h<=2*u+p){const t=h/(2*u+p);u*=t,p*=t}else{const t=Math.floor((h+p)/(u+p)),e=(h-t*u)/(t-1),r=(h-(t+1)*u)/t;p=r<=0||Math.abs(p-e)<Math.abs(p-r)?e:r}if(f&&(3===i?this.ctx.setLineDash([0,u+p]):this.ctx.setLineDash([u,p])),3===i?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=fe(t),this.ctx.stroke(),this.ctx.setLineDash([]),2===i){if(vs(s[0])){const t=s[3],e=s[0];this.ctx.beginPath(),this.formatPath([new gs(t.end.x,t.end.y),new gs(e.start.x,e.start.y)]),this.ctx.stroke()}if(vs(s[1])){const t=s[1],e=s[2];this.ctx.beginPath(),this.formatPath([new gs(t.end.x,t.end.y),new gs(e.start.x,e.start.y)]),this.ctx.stroke()}}this.ctx.restore()}async render(t){this.options.backgroundColor&&(this.ctx.fillStyle=fe(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));const e=(t=>{const e=new ks(t,null),r=new Ts(e),n=[];return Ls(e,r,r,n),Ps(e.container,n),r})(t);return await this.renderStack(e),this.applyEffects([]),this.canvas}}const Ys=t=>t instanceof $i||t instanceof Zi||t instanceof Ji&&t.type!==Yi&&t.type!==Wi,Xs=(t,e)=>{switch(t){case 0:return Bs(e);case 2:return(t=>[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox])(e);default:return Cs(e)}},Js=t=>{switch(t){case 1:return"center";case 2:return"right";default:return"left"}},Zs=["-apple-system","system-ui"],$s=t=>/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(t=>-1===Zs.indexOf(t)):t;class ta extends qs{constructor(t,e){super(t,e),this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`,this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x,-e.y),this.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (${e.width}x${e.height} at ${e.x},${e.y}) with scale ${e.scale}`)}async render(t){const e=Fi(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),r=await ea(e);return this.options.backgroundColor&&(this.ctx.fillStyle=fe(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas}}const ea=t=>new Promise((e,r)=>{const n=new Image;n.onload=()=>{e(n)},n.onerror=r,n.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent((new XMLSerializer).serializeToString(t))}`});class ra{constructor({id:t,enabled:e}){this.id=t,this.enabled=e,this.start=Date.now()}debug(...t){this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug(this.id,`${this.getTime()}ms`,...t):this.info(...t))}getTime(){return Date.now()-this.start}info(...t){this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info(this.id,`${this.getTime()}ms`,...t)}warn(...t){this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn(this.id,`${this.getTime()}ms`,...t):this.info(...t))}error(...t){this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error(this.id,`${this.getTime()}ms`,...t):this.info(...t))}}ra.instances={};class na{constructor(t,e){this.windowBounds=e,this.instanceName="#"+na.instanceCount++,this.logger=new ra({id:this.instanceName,enabled:t.logging}),this.cache=t.cache??new as(this,t)}}let ia;na.instanceCount=1;const oa=(t,e={})=>sa(t,e);oa.setCspNonce=t=>{ia=t},"undefined"!=typeof window&&ss.setContext(window);const sa=async(t,e)=>{if(!t||"object"!=typeof t)return Promise.reject("Invalid element provided as first argument");const r=t.ownerDocument;if(!r)throw new Error("Element is not attached to a Document");const o=r.defaultView;if(!o)throw new Error("Document is not attached to a Window");const s={allowTaint:e.allowTaint??!1,imageTimeout:e.imageTimeout??15e3,proxy:e.proxy,useCORS:e.useCORS??!1,customIsSameOrigin:e.customIsSameOrigin},a={logging:e.logging??!0,cache:e.cache,...s},A={windowWidth:e.windowWidth??o.innerWidth,windowHeight:e.windowHeight??o.innerHeight,scrollX:e.scrollX??o.pageXOffset,scrollY:e.scrollY??o.pageYOffset},l=new n(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),c=new na(a,l),h=e.foreignObjectRendering??!1,u={allowTaint:e.allowTaint??!1,onclone:e.onclone,ignoreElements:e.ignoreElements,iframeContainer:e.iframeContainer,inlineImages:h,copyStyles:h,cspNonce:ia};c.logger.debug(`Starting document clone with size ${l.width}x${l.height} scrolled to ${-l.left},${-l.top}`);const p=new Vo(c,t,u),f=p.clonedReferenceElement;if(!f)return Promise.reject("Unable to find element in cloned iframe");const d=await p.toIFrame(r,l),{width:g,height:m,left:y,top:v}=go(f)||"HTML"===f.tagName?(t=>{const e=t.body,r=t.documentElement;if(!e||!r)throw new Error("Unable to get document size");const i=Math.max(Math.max(e.scrollWidth,r.scrollWidth),Math.max(e.offsetWidth,r.offsetWidth),Math.max(e.clientWidth,r.clientWidth)),o=Math.max(Math.max(e.scrollHeight,r.scrollHeight),Math.max(e.offsetHeight,r.offsetHeight),Math.max(e.clientHeight,r.clientHeight));return new n(0,0,i,o)})(f.ownerDocument):i(c,f),b=aa(c,f,e.backgroundColor),w={canvas:e.canvas,backgroundColor:b,scale:e.scale??o.devicePixelRatio??1,x:(e.x??0)+y,y:(e.y??0)+v,width:e.width??Math.ceil(g),height:e.height??Math.ceil(m)};let x;if(h){c.logger.debug("Document cloned, using foreign object rendering");const t=new ta(c,w);x=await t.render(f)}else{c.logger.debug(`Document cloned, element located at ${y},${v} with size ${g}x${m} using computed rendering`),c.logger.debug("Starting DOM parsing");const t=io(c,f);b===t.styles.backgroundColor&&(t.styles.backgroundColor=Xe.TRANSPARENT),c.logger.debug(`Starting renderer for element at ${w.x},${w.y} with size ${w.width}x${w.height}`);const e=new Ws(c,w);x=await e.render(t)}return(e.removeContainer??1)&&(Vo.destroy(d)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),x},aa=(t,e,r)=>{const n=e.ownerDocument,i=n.documentElement?Ye(t,getComputedStyle(n.documentElement).backgroundColor):Xe.TRANSPARENT,o=n.body?Ye(t,getComputedStyle(n.body).backgroundColor):Xe.TRANSPARENT,s="string"==typeof r?Ye(t,r):null===r?Xe.TRANSPARENT:4294967295;return e===n.documentElement?pe(i)?pe(o)?s:o:i:s}},64616(t,e,r){"use strict";function n(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}r.d(e,{A:()=>n})},85587(t,e,r){"use strict";r.d(e,{vj:()=>c});var n=function(){function t(){}return t.prototype.expandToken=function(t){for(var e=[],r="",n=0,i=t.length;n<i;++n)r+=t.charAt(n),e.push(r);return e},t}(),i=function(){function t(){}return t.prototype.sanitize=function(t){return t?t.toLocaleLowerCase().trim():""},t}();function o(t,e){e=e||[];for(var r=t=t||{},n=0;n<e.length;n++)if(null==(r=r[e[n]]))return null;return r}var s=function(){function t(t){this._uidFieldName=t,this._tokenToIdfCache={},this._tokenMap={}}var e=t.prototype;return e.indexDocument=function(t,e,r){this._tokenToIdfCache={};var n,i=this._tokenMap;"object"!=typeof i[t]?i[t]=n={$numDocumentOccurrences:0,$totalNumOccurrences:1,$uidMap:{}}:(n=i[t]).$totalNumOccurrences++;var o=n.$uidMap;"object"!=typeof o[e]?(n.$numDocumentOccurrences++,o[e]={$document:r,$numTokenOccurrences:1}):o[e].$numTokenOccurrences++},e.search=function(t,e){for(var r={},n=0,i=t.length;n<i;n++){var o,s=t[n],a=this._tokenMap[s];if(!a)return[];if(0===n)for(var A=0,l=(o=Object.keys(a.$uidMap)).length;A<l;A++)r[c=o[A]]=a.$uidMap[c].$document;else for(A=0,l=(o=Object.keys(r)).length;A<l;A++){var c=o[A];"object"!=typeof a.$uidMap[c]&&delete r[c]}}var h=[];for(var c in r)h.push(r[c]);var u=this._createCalculateTfIdf();return h.sort(function(r,n){return u(t,n,e)-u(t,r,e)})},e._createCalculateIdf=function(){var t=this._tokenMap,e=this._tokenToIdfCache;return function(r,n){if(!e[r]){var i=void 0!==t[r]?t[r].$numDocumentOccurrences:0;e[r]=1+Math.log(n.length/(1+i))}return e[r]}},e._createCalculateTfIdf=function(){var t=this._tokenMap,e=this._uidFieldName,r=this._createCalculateIdf();return function(n,i,s){for(var a=0,A=0,l=n.length;A<l;++A){var c,h=n[A],u=r(h,s);u===1/0&&(u=0),c=e instanceof Array?i&&o(i,e):i&&i[e],a+=(void 0!==t[h]&&void 0!==t[h].$uidMap[c]?t[h].$uidMap[c].$numTokenOccurrences:0)*u}return a}},t}(),a=/[^a-zа-яё0-9\-']+/i,A=function(){function t(){}return t.prototype.tokenize=function(t){return t.split(a).filter(function(t){return t})},t}();function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var c=function(){function t(t){if(!t)throw Error("js-search requires a uid field name constructor parameter");this._uidFieldName=t,this._indexStrategy=new n,this._searchIndex=new s(t),this._sanitizer=new i,this._tokenizer=new A,this._documents=[],this._searchableFields=[]}var e,r,a=t.prototype;return a.addDocument=function(t){this.addDocuments([t])},a.addDocuments=function(t){this._documents=this._documents.concat(t),this.indexDocuments_(t,this._searchableFields)},a.addIndex=function(t){this._searchableFields.push(t),this.indexDocuments_(this._documents,[t])},a.search=function(t){var e=this._tokenizer.tokenize(this._sanitizer.sanitize(t));return this._searchIndex.search(e,this._documents)},a.indexDocuments_=function(t,e){this._initialized=!0;for(var r=this._indexStrategy,n=this._sanitizer,i=this._searchIndex,s=this._tokenizer,a=this._uidFieldName,A=0,l=t.length;A<l;A++){var c,h=t[A];c=a instanceof Array?o(h,a):h[a];for(var u=0,p=e.length;u<p;u++){var f,d=e[u];if(null!=(f=d instanceof Array?o(h,d):h[d])&&"string"!=typeof f&&f.toString&&(f=f.toString()),"string"==typeof f)for(var g=s.tokenize(n.sanitize(f)),m=0,y=g.length;m<y;m++)for(var v=g[m],b=r.expandToken(v),w=0,x=b.length;w<x;w++){var B=b[w];i.indexDocument(B,c,h)}}}},e=t,(r=[{key:"indexStrategy",set:function(t){if(this._initialized)throw Error("IIndexStrategy cannot be set after initialization");this._indexStrategy=t},get:function(){return this._indexStrategy}},{key:"sanitizer",set:function(t){if(this._initialized)throw Error("ISanitizer cannot be set after initialization");this._sanitizer=t},get:function(){return this._sanitizer}},{key:"searchIndex",set:function(t){if(this._initialized)throw Error("ISearchIndex cannot be set after initialization");this._searchIndex=t},get:function(){return this._searchIndex}},{key:"tokenizer",set:function(t){if(this._initialized)throw Error("ITokenizer cannot be set after initialization");this._tokenizer=t},get:function(){return this._tokenizer}}])&&l(e.prototype,r),t}()},98889(t,e,r){"use strict";function n(t,e){const r=String(t);let n=r.indexOf(e),i=n,o=0,s=0;if("string"!=typeof e)throw new TypeError("Expected substring");for(;-1!==n;)n===i?++o>s&&(s=o):o=1,i=n+e.length,n=r.indexOf(e,i);return s}r.d(e,{D:()=>n})},37358(t,e,r){"use strict";function n(t){return t.length}function i(t,e){const r=e||{},i=(r.align||[]).concat(),a=r.stringLength||n,A=[],l=[],c=[],h=[];let u=0,p=-1;for(;++p<t.length;){const e=[],n=[];let i=-1;for(t[p].length>u&&(u=t[p].length);++i<t[p].length;){const s=o(t[p][i]);if(!1!==r.alignDelimiters){const t=a(s);n[i]=t,(void 0===h[i]||t>h[i])&&(h[i]=t)}e.push(s)}l[p]=e,c[p]=n}let f=-1;if("object"==typeof i&&"length"in i)for(;++f<u;)A[f]=s(i[f]);else{const t=s(i);for(;++f<u;)A[f]=t}f=-1;const d=[],g=[];for(;++f<u;){const t=A[f];let e="",n="";99===t?(e=":",n=":"):108===t?e=":":114===t&&(n=":");let i=!1===r.alignDelimiters?1:Math.max(1,h[f]-e.length-n.length);const o=e+"-".repeat(i)+n;!1!==r.alignDelimiters&&(i=e.length+i+n.length,i>h[f]&&(h[f]=i),g[f]=i),d[f]=o}l.splice(1,0,d),c.splice(1,0,g),p=-1;const m=[];for(;++p<l.length;){const t=l[p],e=c[p];f=-1;const n=[];for(;++f<u;){const i=t[f]||"";let o="",s="";if(!1!==r.alignDelimiters){const t=h[f]-(e[f]||0),r=A[f];114===r?o=" ".repeat(t):99===r?t%2?(o=" ".repeat(t/2+.5),s=" ".repeat(t/2-.5)):(o=" ".repeat(t/2),s=o):s=" ".repeat(t)}!1===r.delimiterStart||f||n.push("|"),!1===r.padding||!1===r.alignDelimiters&&""===i||!1===r.delimiterStart&&!f||n.push(" "),!1!==r.alignDelimiters&&n.push(o),n.push(i),!1!==r.alignDelimiters&&n.push(s),!1!==r.padding&&n.push(" "),!1===r.delimiterEnd&&f===u-1||n.push("|")}m.push(!1===r.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return m.join("\n")}function o(t){return null==t?"":String(t)}function s(t){const e="string"==typeof t?t.codePointAt(0):0;return 67===e||99===e?99:76===e||108===e?108:82===e||114===e?114:0}r.d(e,{Q:()=>i})}}]);
//# sourceMappingURL=685.a63e0684a99ec1ff2b74.js.map