/*! For license information please see 3081.1521f5d4ddbf9d828089.js.LICENSE.txt */
(globalThis.webpackChunk_rio_rio_ui=globalThis.webpackChunk_rio_rio_ui||[]).push([[3081],{10649(t,e,n){var r,i,s=n(1626),o=n(13786);r=t.exports,i=()=>a,Object.defineProperty(r,"BuddhistCalendar",{get:i,set:void 0,enumerable:!0,configurable:!0});class a extends o.GregorianCalendar{fromJulianDay(t){let e=super.fromJulianDay(t),n=(0,o.getExtendedYear)(e.era,e.year);return new(0,s.CalendarDate)(this,n- -543,e.month,e.day)}toJulianDay(t){return super.toJulianDay(l(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(l(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function l(t){let[e,n]=(0,o.fromExtendedYear)(t.year+-543);return new(0,s.CalendarDate)(e,n,t.month,t.day)}},1626(t,e,n){var r=n(34639),i=n(70656),s=n(46135),o=n(13786),a=n(21400),l=n(15869);function A(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}function c(t){let e,n="object"==typeof t[0]?t.shift():new(0,o.GregorianCalendar);if("string"==typeof t[0])e=t.shift();else{let t=n.getEras();e=t[t.length-1]}return[n,e,t.shift(),t.shift(),t.shift()]}A(t.exports,"CalendarDate",()=>u),A(t.exports,"Time",()=>d),A(t.exports,"CalendarDateTime",()=>g),A(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,r.add)(this,t)}subtract(t){return(0,r.subtract)(this,t)}set(t){return(0,r.set)(this,t)}cycle(t,e,n){return(0,r.cycleDate)(this,t,e,n)}toDate(t){return(0,a.toDate)(this,t)}toString(){return(0,s.dateToString)(this)}compare(t){return(0,i.compareDate)(this,t)}constructor(...t){(0,l._)(this,h,{writable:!0,value:void 0});let[e,n,i,s,o]=c(t);this.calendar=e,this.era=n,this.year=i,this.month=s,this.day=o,(0,r.constrain)(this)}}var p=new WeakMap;class d{copy(){return new d(this.hour,this.minute,this.second,this.millisecond)}add(t){return(0,r.addTime)(this,t)}subtract(t){return(0,r.subtractTime)(this,t)}set(t){return(0,r.setTime)(this,t)}cycle(t,e,n){return(0,r.cycleTime)(this,t,e,n)}toString(){return(0,s.timeToString)(this)}compare(t){return(0,i.compareTime)(this,t)}constructor(t=0,e=0,n=0,i=0){(0,l._)(this,p,{writable:!0,value:void 0}),this.hour=t,this.minute=e,this.second=n,this.millisecond=i,(0,r.constrainTime)(this)}}var f=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,r.add)(this,t)}subtract(t){return(0,r.subtract)(this,t)}set(t){return(0,r.set)((0,r.setTime)(this,t),t)}cycle(t,e,n){switch(t){case"era":case"year":case"month":case"day":return(0,r.cycleDate)(this,t,e,n);default:return(0,r.cycleTime)(this,t,e,n)}}toDate(t,e){return(0,a.toDate)(this,t,e)}toString(){return(0,s.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,l._)(this,f,{writable:!0,value:void 0});let[e,n,i,s,o]=c(t);this.calendar=e,this.era=n,this.year=i,this.month=s,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,(0,r.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,r.addZoned)(this,t)}subtract(t){return(0,r.subtractZoned)(this,t)}set(t,e){return(0,r.setZoned)(this,t,e)}cycle(t,e,n){return(0,r.cycleZoned)(this,t,e,n)}toDate(){return(0,a.zonedToDate)(this)}toString(){return(0,s.zonedDateTimeToString)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-(0,a.toZoned)(t,this.timeZone).toDate().getTime()}constructor(...t){(0,l._)(this,m,{writable:!0,value:void 0});let[e,n,i,s,o]=c(t),a=t.shift(),A=t.shift();this.calendar=e,this.era=n,this.year=i,this.month=s,this.day=o,this.timeZone=a,this.offset=A,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,(0,r.constrain)(this)}}},39282(t){var e,n;e=t.exports,n=()=>i,Object.defineProperty(e,"DateFormatter",{get:n,set:void 0,enumerable:!0,configurable:!0});let r=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 n=this.formatter.formatToParts(t),r=this.formatter.formatToParts(e);return[...n.map(t=>({...t,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(t=>({...t,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return null==l&&(l="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),l&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(t,e){if(!e.timeStyle&&!e.hour)return;t=t.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=o(t+=(t.includes("-u-")?"":"-u")+"-nu-latn",{...e,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(t=>"hour"===t.type).value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(t=>"hour"===t.type).value,10);if(0===r&&23===i)return"h23";if(24===r&&23===i)return"h24";if(0===r&&11===i)return"h11";if(12===r&&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=o(t,e),this.options=e}}const s={true:{ja:"h11"},false:{}};function o(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 n=s[String(e.hour12)][t.split("-")[0]],r=e.hour12?"h12":"h23";e.hourCycle=null!=n?n:r,delete e.hour12}let n=t+(e?Object.entries(e).sort((t,e)=>t[0]<e[0]?-1:1).join():"");if(r.has(n))return r.get(n);let i=new Intl.DateTimeFormat(t,e);return r.set(n,i),i}let a=null,l=null},55609(t,e,n){var r=n(1626);function i(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}i(t.exports,"EthiopicCalendar",()=>u),i(t.exports,"EthiopicAmeteAlemCalendar",()=>p),i(t.exports,"CopticCalendar",()=>d);const s=1723856,o=1824665,a=5500;function l(t,e,n,r){return t+365*e+Math.floor(e/4)+30*(n-1)+r-1}function A(t,e){let n=Math.floor(4*(e-t)/1461),r=1+Math.floor((e-l(t,n,1,1))/30);return[n,r,e+1-l(t,n,r,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,n,i]=A(s,t),o="AM";return e<=0&&(o="AA",e+=a),new(0,r.CalendarDate)(this,o,e,n,i)}toJulianDay(t){let e=t.year;return"AA"===t.era&&(e-=a),l(s,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,n,i]=A(s,t);return e+=a,new(0,r.CalendarDate)(this,"AA",e,n,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class d extends u{fromJulianDay(t){let[e,n,i]=A(o,t),s="CE";return e<=0&&(s="BCE",e=1-e),new(0,r.CalendarDate)(this,s,e,n,i)}toJulianDay(t){let e=t.year;return"BCE"===t.era&&(e=1-e),l(o,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,n){var r=n(1626),i=n(25563);function s(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}s(t.exports,"gregorianToJulianDay",()=>o),s(t.exports,"getExtendedYear",()=>l),s(t.exports,"isLeapYear",()=>a),s(t.exports,"fromExtendedYear",()=>A),s(t.exports,"GregorianCalendar",()=>h);function o(t,e,n,r){let i=(e=l(t,e))-1,s=-2;return n<=2?s=0:a(e)&&(s=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+s+r)}function a(t){return t%4==0&&(t%100!=0||t%400==0)}function l(t,e){return"BC"===t?1-e:e}function A(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,n=e-1721426,s=Math.floor(n/146097),l=(0,i.mod)(n,146097),c=Math.floor(l/36524),h=(0,i.mod)(l,36524),u=Math.floor(h/1461),p=(0,i.mod)(h,1461),d=Math.floor(p/365),f=400*s+100*c+4*u+d+(4!==c&&4!==d?1:0),[g,m]=A(f),y=e-o(g,m,1,1),v=2;e<o(g,m,3,1)?v=0:a(m)&&(v=1);let O=Math.floor((12*(y+v)+373)/367),b=e-o(g,m,O,1)+1;return new(0,r.CalendarDate)(g,m,O,b)}toJulianDay(t){return o(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,n){var r,i,s=n(1626),o=n(25563);r=t.exports,i=()=>p,Object.defineProperty(r,"HebrewCalendar",{get:i,set:void 0,enumerable:!0,configurable:!0});const a=347997;function l(t){return(0,o.mod)(7*t+1,19)<7}function A(t){let e=Math.floor((235*t-234)/19),n=12084+13753*e,r=29*e+Math.floor(n/25920);return(0,o.mod)(3*(r+1),7)<3&&(r+=1),r}function c(t){return A(t)+function(t){let e=A(t-1),n=A(t);return A(t+1)-n===356?2:n-e===382?1:0}(t)}function h(t){return c(t+1)-c(t)}function u(t,e){if(e>=6&&!l(t)&&e++,4===e||7===e||9===e||11===e||13===e)return 29;let n=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===n?30:29:3===e?0===n?29:30:6===e?l(t)?30:0:30}class p{fromJulianDay(t){let e=t-a,n=25920*e/765433,r=Math.floor((19*n+234)/235)+1,i=c(r),o=Math.floor(e-i);for(;o<1;)r--,i=c(r),o=Math.floor(e-i);let l=1,A=0;for(;A<o;)A+=u(r,l),l++;l--,A-=u(r,l);let h=o-A;return new(0,s.CalendarDate)(this,r,l,h)}toJulianDay(t){let e=c(t.year);for(let n=1;n<t.month;n++)e+=u(t.year,n);return e+t.day+a}getDaysInMonth(t){return u(t.year,t.month)}getMonthsInYear(t){return l(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&&(l(e.year)&&!l(t.year)&&e.month>6?t.month--:!l(e.year)&&l(t.year)&&e.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}},26915(t,e,n){var r,i,s=n(1626),o=n(13786);r=t.exports,i=()=>a,Object.defineProperty(r,"IndianCalendar",{get:i,set:void 0,enumerable:!0,configurable:!0});class a extends o.GregorianCalendar{fromJulianDay(t){let e,n,r,i=super.fromJulianDay(t),a=i.year-78,l=t-(0,o.gregorianToJulianDay)(i.era,i.year,1,1);if(l<80?(a--,e=(0,o.isLeapYear)(i.year-1)?31:30,l+=e+155+90+10):(e=(0,o.isLeapYear)(i.year)?31:30,l-=80),l<e)n=1,r=l+1;else{let t=l-e;t<155?(n=Math.floor(t/31)+2,r=t%31+1):(t-=155,n=Math.floor(t/30)+7,r=t%30+1)}return new(0,s.CalendarDate)(this,a,n,r)}toJulianDay(t){let e,n,r=t.year+78,[i,s]=(0,o.fromExtendedYear)(r);return(0,o.isLeapYear)(s)?(e=31,n=(0,o.gregorianToJulianDay)(i,s,3,21)):(e=30,n=(0,o.gregorianToJulianDay)(i,s,3,22)),1===t.month?n+t.day-1:(n+=e+31*Math.min(t.month-2,5),t.month>=8&&(n+=30*(t.month-7)),n+=t.day-1,n)}getDaysInMonth(t){return 1===t.month&&(0,o.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,n){var r=n(1626);function i(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}i(t.exports,"IslamicCivilCalendar",()=>u),i(t.exports,"IslamicTabularCalendar",()=>p),i(t.exports,"IslamicUmalquraCalendar",()=>O);const s=1948440,o=1948439,a=1300,l=1600;function A(t,e,n,r){return r+Math.ceil(29.5*(n-1))+354*(e-1)+Math.floor((3+11*e)/30)+t-1}function c(t,e,n){let i=Math.floor((30*(n-e)+10646)/10631),s=Math.min(12,Math.ceil((n-(29+A(e,i,1,1)))/29.5)+1),o=n-A(e,i,s,1)+1;return new(0,r.CalendarDate)(t,i,s,o)}function h(t){return(14+11*t)%30<11}class u{fromJulianDay(t){return c(this,s,t)}toJulianDay(t){return A(s,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,o,t)}toJulianDay(t){return A(o,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}let d,f;function g(t){return 460322+f[t-a]}function m(t,e){let n=1<<11-(e-1);return 0===(d[t-a]&n)?29:30}function y(t,e){let n=g(t);for(let r=1;r<e;r++)n+=m(t,r);return n}function v(t){return f[t+1-a]-f[t-a]}class O extends u{fromJulianDay(t){let e=t-s,n=g(a),i=g(l);if(e<n||e>i)return super.fromJulianDay(t);{let t=1299,n=1,i=1;for(;i>0;){t++,i=e-g(t)+1;let r=v(t);if(i===r){n=12;break}if(i<r){let e=m(t,n);for(n=1;i>e;)i-=e,n++,e=m(t,n);break}}return new(0,r.CalendarDate)(this,t,n,e-y(t,n)+1)}}toJulianDay(t){return t.year<a||t.year>l?super.toJulianDay(t):s+y(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<a||t.year>l?super.getDaysInMonth(t):m(t.year,t.month)}getDaysInYear(t){return t.year<a||t.year>l?super.getDaysInYear(t):v(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",d||(d=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),t=>t.charCodeAt(0)).buffer)),!f){f=new Uint32Array(301);let t=0;for(let e=a;e<=l;e++){f[e-a]=t;for(let n=1;n<=12;n++)t+=m(e,n)}}}}},60275(t,e,n){var r,i,s=n(1626),o=n(13786);r=t.exports,i=()=>p,Object.defineProperty(r,"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]],l=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],A=[1867,1911,1925,1988,2018],c=["meiji","taisho","showa","heisei","reiwa"];function h(t){const e=a.findIndex(([e,n,r])=>t.year<e||t.year===e&&t.month<n||t.year===e&&t.month===n&&t.day<r);return-1===e?a.length-1:0===e?0:e-1}function u(t){let e=A[c.indexOf(t.era)];if(!e)throw new Error("Unknown era: "+t.era);return new(0,s.CalendarDate)(t.year+e,t.month,t.day)}class p extends o.GregorianCalendar{fromJulianDay(t){let e=super.fromJulianDay(t),n=h(e);return new(0,s.CalendarDate)(this,c[n],e.year-A[n],e.month,e.day)}toJulianDay(t){return super.toJulianDay(u(t))}balanceDate(t){let e=u(t),n=h(e);c[n]!==t.era&&(t.era=c[n],t.year=e.year-A[n]),this.constrainDate(t)}constrainDate(t){let e=c.indexOf(t.era),n=l[e];if(null!=n){let[r,i,s]=n,o=r-A[e];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(i,t.month),t.month===i&&(t.day=Math.min(s,t.day)))}if(1===t.year&&e>=0){let[,n,r]=a[e];t.month=Math.max(n,t.month),t.month===n&&(t.day=Math.max(r,t.day))}}getEras(){return c}getYearsInEra(t){let e=c.indexOf(t.era),n=a[e],r=a[e+1];if(null==r)return 9999-n[0]+1;let i=r[0]-n[0];return(t.month<r[1]||t.month===r[1]&&t.day<r[2])&&i++,i}getDaysInMonth(t){return super.getDaysInMonth(u(t))}getMinimumMonthInYear(t){let e=d(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=d(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function d(t){if(1===t.year){let e=c.indexOf(t.era);return a[e]}}},5018(t,e,n){var r,i,s=n(1626),o=n(25563);r=t.exports,i=()=>l,Object.defineProperty(r,"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 l{fromJulianDay(t){let e=t-1948320,n=1+Math.floor((33*e+3)/12053),r=e-(365*(n-1)+Math.floor((8*n+21)/33)),i=r<216?Math.floor(r/31):Math.floor((r-6)/30),o=r-a[i]+1;return new(0,s.CalendarDate)(this,n,i+1,o)}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,o.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,n){var r,i,s=n(1626),o=n(13786);r=t.exports,i=()=>c,Object.defineProperty(r,"TaiwanCalendar",{get:i,set:void 0,enumerable:!0,configurable:!0});const a=1911;function l(t){return"minguo"===t.era?t.year+a:1-t.year+a}function A(t){let e=t-a;return e>0?["minguo",e]:["before_minguo",1-e]}class c extends o.GregorianCalendar{fromJulianDay(t){let e=super.fromJulianDay(t),n=(0,o.getExtendedYear)(e.era,e.year),[r,i]=A(n);return new(0,s.CalendarDate)(this,r,i,e.month,e.day)}toJulianDay(t){return super.toJulianDay(h(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,n]=A(l(t));t.era=e,t.year=n}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,n]=(0,o.fromExtendedYear)(l(t));return new(0,s.CalendarDate)(e,n,t.month,t.day)}},21400(t,e,n){var r=n(1626),i=n(34639),s=n(13786),o=n(70656);function a(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}function l(t){return t=_(t,new(0,s.GregorianCalendar)),A((0,s.getExtendedYear)(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function A(t,e,n,r,i,s,o){let a=new Date;return a.setUTCHours(r,i,s,o),a.setUTCFullYear(t,e-1,n),a.getTime()}function c(t,e){if("UTC"===e)return 0;if(t>0&&e===(0,o.getLocalTimeZone)()&&!(0,o.isLocalTimeZoneOverridden)())return-6e4*new Date(t).getTimezoneOffset();let{year:n,month:r,day:i,hour:s,minute:a,second:l}=u(t,e);return A(n,r,i,s,a,l,0)-1e3*Math.floor(t/1e3)}a(t.exports,"epochFromDate",()=>l),a(t.exports,"toCalendar",()=>_),a(t.exports,"possibleAbsolutes",()=>d),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",()=>O),a(t.exports,"toCalendarDate",()=>b),a(t.exports,"toTime",()=>w),a(t.exports,"toZoned",()=>S),a(t.exports,"toTimeZone",()=>E),a(t.exports,"zonedToDate",()=>C),a(t.exports,"toLocalTimeZone",()=>B);const h=new Map;function u(t,e){let n=h.get(e);n||(n=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,n));let r=n.formatToParts(new Date(t)),i={};for(let t of r)"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 d(t,e){let n=l(t);return f(t,e,n-c(n-p,e),n-c(n+p,e))}function f(t,e,n,r){return(n===r?[n]:[n,r]).filter(n=>function(t,e,n){let r=u(n,e);return t.year===r.year&&t.month===r.month&&t.day===r.day&&t.hour===r.hour&&t.minute===r.minute&&t.second===r.second}(t,e,n))}function g(t,e,n="compatible"){let r=x(t);if("UTC"===e)return l(r);if(e===(0,o.getLocalTimeZone)()&&"compatible"===n&&!(0,o.isLocalTimeZoneOverridden)()){r=_(r,new(0,s.GregorianCalendar));let t=new Date,e=(0,s.getExtendedYear)(r.era,r.year);return t.setFullYear(e,r.month-1,r.day),t.setHours(r.hour,r.minute,r.second,r.millisecond),t.getTime()}let i=l(r),a=c(i-p,e),A=c(i+p,e),h=f(r,e,i-a,i-A);if(1===h.length)return h[0];if(h.length>1)switch(n){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(n){case"earlier":return Math.min(i-a,i-A);case"compatible":case"later":return Math.max(i-a,i-A);case"reject":throw new RangeError("No such absolute time found")}}function m(t,e,n="compatible"){return new Date(g(t,e,n))}function y(t,e){let n=c(t,e),i=new Date(t+n),s=i.getUTCFullYear(),o=i.getUTCMonth()+1,a=i.getUTCDate(),l=i.getUTCHours(),A=i.getUTCMinutes(),h=i.getUTCSeconds(),u=i.getUTCMilliseconds();return new(0,r.ZonedDateTime)(s<1?"BC":"AD",s<1?1-s:s,o,a,e,n,l,A,h,u)}function v(t,e){return y(t.getTime(),e)}function O(t){return v(t,(0,o.getLocalTimeZone)())}function b(t){return new(0,r.CalendarDate)(t.calendar,t.era,t.year,t.month,t.day)}function x(t,e){let n=0,i=0,s=0,o=0;if("timeZone"in t)({hour:n,minute:i,second:s,millisecond:o}=t);else if("hour"in t&&!e)return t;return e&&({hour:n,minute:i,second:s,millisecond:o}=e),new(0,r.CalendarDateTime)(t.calendar,t.era,t.year,t.month,t.day,n,i,s,o)}function w(t){return new(0,r.Time)(t.hour,t.minute,t.second,t.millisecond)}function _(t,e){if((0,o.isEqualCalendar)(t.calendar,e))return t;let n=e.fromJulianDay(t.calendar.toJulianDay(t)),r=t.copy();return r.calendar=e,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,(0,i.constrain)(r),r}function S(t,e,n){return t instanceof r.ZonedDateTime?t.timeZone===e?t:E(t,e):y(g(t,e,n),e)}function C(t){let e=l(t)-t.offset;return new Date(e)}function E(t,e){return _(y(l(t)-t.offset,e),t.calendar)}function B(t){return E(t,(0,o.getLocalTimeZone)())}},53061(t,e,n){var r,i,s=n(10649),o=n(55609),a=n(13786),l=n(33519),A=n(26915),c=n(99988),h=n(60275),u=n(5018),p=n(44594);function d(t){switch(t){case"buddhist":return new(0,s.BuddhistCalendar);case"ethiopic":return new(0,o.EthiopicCalendar);case"ethioaa":return new(0,o.EthiopicAmeteAlemCalendar);case"coptic":return new(0,o.CopticCalendar);case"hebrew":return new(0,l.HebrewCalendar);case"indian":return new(0,A.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)}}r=t.exports,i=()=>d,Object.defineProperty(r,"createCalendar",{get:i,set:void 0,enumerable:!0,configurable:!0})},11702(t,e,n){var r=n(1626),i=n(13786),s=n(60275),o=n(10649),a=n(44594),l=n(5018),A=n(26915),c=n(99988),h=n(33519),u=n(55609),p=n(53061),d=n(21400),f=n(70656),g=n(46135),m=n(39282);function y(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}y(t.exports,"CalendarDate",()=>r.CalendarDate),y(t.exports,"CalendarDateTime",()=>r.CalendarDateTime),y(t.exports,"Time",()=>r.Time),y(t.exports,"ZonedDateTime",()=>r.ZonedDateTime),y(t.exports,"GregorianCalendar",()=>i.GregorianCalendar),y(t.exports,"JapaneseCalendar",()=>s.JapaneseCalendar),y(t.exports,"BuddhistCalendar",()=>o.BuddhistCalendar),y(t.exports,"TaiwanCalendar",()=>a.TaiwanCalendar),y(t.exports,"PersianCalendar",()=>l.PersianCalendar),y(t.exports,"IndianCalendar",()=>A.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",()=>d.toCalendarDate),y(t.exports,"toCalendarDateTime",()=>d.toCalendarDateTime),y(t.exports,"toTime",()=>d.toTime),y(t.exports,"toCalendar",()=>d.toCalendar),y(t.exports,"toZoned",()=>d.toZoned),y(t.exports,"toTimeZone",()=>d.toTimeZone),y(t.exports,"toLocalTimeZone",()=>d.toLocalTimeZone),y(t.exports,"fromDate",()=>d.fromDate),y(t.exports,"fromDateToLocal",()=>d.fromDateToLocal),y(t.exports,"fromAbsolute",()=>d.fromAbsolute),y(t.exports,"isSameDay",()=>f.isSameDay),y(t.exports,"isSameMonth",()=>f.isSameMonth),y(t.exports,"isSameYear",()=>f.isSameYear),y(t.exports,"isEqualDay",()=>f.isEqualDay),y(t.exports,"isEqualMonth",()=>f.isEqualMonth),y(t.exports,"isEqualYear",()=>f.isEqualYear),y(t.exports,"isToday",()=>f.isToday),y(t.exports,"getDayOfWeek",()=>f.getDayOfWeek),y(t.exports,"now",()=>f.now),y(t.exports,"today",()=>f.today),y(t.exports,"getHoursInDay",()=>f.getHoursInDay),y(t.exports,"getLocalTimeZone",()=>f.getLocalTimeZone),y(t.exports,"setLocalTimeZone",()=>f.setLocalTimeZone),y(t.exports,"resetLocalTimeZone",()=>f.resetLocalTimeZone),y(t.exports,"startOfMonth",()=>f.startOfMonth),y(t.exports,"startOfWeek",()=>f.startOfWeek),y(t.exports,"startOfYear",()=>f.startOfYear),y(t.exports,"endOfMonth",()=>f.endOfMonth),y(t.exports,"endOfWeek",()=>f.endOfWeek),y(t.exports,"endOfYear",()=>f.endOfYear),y(t.exports,"getMinimumMonthInYear",()=>f.getMinimumMonthInYear),y(t.exports,"getMinimumDayInMonth",()=>f.getMinimumDayInMonth),y(t.exports,"getWeeksInMonth",()=>f.getWeeksInMonth),y(t.exports,"minDate",()=>f.minDate),y(t.exports,"maxDate",()=>f.maxDate),y(t.exports,"isWeekend",()=>f.isWeekend),y(t.exports,"isWeekday",()=>f.isWeekday),y(t.exports,"isEqualCalendar",()=>f.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,n){var r=n(21400),i=n(13786);function s(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}s(t.exports,"add",()=>a),s(t.exports,"constrain",()=>h),s(t.exports,"subtract",()=>p),s(t.exports,"set",()=>d),s(t.exports,"setTime",()=>f),s(t.exports,"constrainTime",()=>g),s(t.exports,"addTime",()=>v),s(t.exports,"subtractTime",()=>O),s(t.exports,"cycleDate",()=>b),s(t.exports,"cycleTime",()=>x),s(t.exports,"addZoned",()=>_),s(t.exports,"subtractZoned",()=>S),s(t.exports,"cycleZoned",()=>C),s(t.exports,"setZoned",()=>E);const o=36e5;function a(t,e){let n=t.copy(),r="hour"in n?y(n,e):0;l(n,e.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,t),n.month+=e.months||0,A(n),c(n),n.day+=7*(e.weeks||0),n.day+=e.days||0,n.day+=r,function(t){for(;t.day<1;)t.month--,A(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,A(t)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var s,o;let t=null===(s=(o=n.calendar).isInverseEra)||void 0===s?void 0:s.call(o,n);n.year=i,n.month=t?1:n.calendar.getMonthsInYear(n),n.day=t?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function l(t,e){var n,r;(null===(n=(r=t.calendar).isInverseEra)||void 0===n?void 0:n.call(r,t))&&(e=-e),t.year+=e}function A(t){for(;t.month<1;)l(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,l(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 n in t)"number"==typeof t[n]&&(e[n]=-t[n]);return e}function p(t,e){return a(t,u(e))}function d(t,e){let n=t.copy();return null!=e.era&&(n.era=e.era),null!=e.year&&(n.year=e.year),null!=e.month&&(n.month=e.month),null!=e.day&&(n.day=e.day),h(n),n}function f(t,e){let n=t.copy();return null!=e.hour&&(n.hour=e.hour),null!=e.minute&&(n.minute=e.minute),null!=e.second&&(n.second=e.second),null!=e.millisecond&&(n.millisecond=e.millisecond),g(n),n}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 n=t%e;return n<0&&(n+=e),n}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 n=t.copy();return y(n,e),n}function O(t,e){return v(t,u(e))}function b(t,e,n,r){let i=t.copy();switch(e){case"era":{let e=t.calendar.getEras(),s=e.indexOf(t.era);if(s<0)throw new Error("Invalid era: "+t.era);s=w(s,n,0,e.length-1,null==r?void 0:r.round),i.era=e[s],h(i);break}case"year":var s,o;(null===(s=(o=i.calendar).isInverseEra)||void 0===s?void 0:s.call(o,i))&&(n=-n),i.year=w(t.year,n,-1/0,9999,null==r?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,t);break;case"month":i.month=w(t.month,n,1,t.calendar.getMonthsInYear(t),null==r?void 0:r.round);break;case"day":i.day=w(t.day,n,1,t.calendar.getDaysInMonth(t),null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(i),h(i),i}function x(t,e,n,r){let i=t.copy();switch(e){case"hour":{let e=t.hour,s=0,o=23;if(12===(null==r?void 0:r.hourCycle)){let t=e>=12;s=t?12:0,o=t?23:11}i.hour=w(e,n,s,o,null==r?void 0:r.round);break}case"minute":i.minute=w(t.minute,n,0,59,null==r?void 0:r.round);break;case"second":i.second=w(t.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":i.millisecond=w(t.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+e)}return i}function w(t,e,n,r,i=!1){if(i){(t+=Math.sign(e))<n&&(t=r);let i=Math.abs(e);(t=e>0?Math.ceil(t/i)*i:Math.floor(t/i)*i)>r&&(t=n)}else(t+=e)<n?t=r-(n-t-1):t>r&&(t=n+(t-r-1));return t}function _(t,e){let n;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,r.toCalendarDateTime)(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});n=(0,r.toAbsolute)(i,t.timeZone)}else n=(0,r.epochFromDate)(t)-t.offset;n+=e.milliseconds||0,n+=1e3*(e.seconds||0),n+=6e4*(e.minutes||0),n+=36e5*(e.hours||0);let i=(0,r.fromAbsolute)(n,t.timeZone);return(0,r.toCalendar)(i,t.calendar)}function S(t,e){return _(t,u(e))}function C(t,e,n,s){switch(e){case"hour":{let e=0,a=23;if(12===(null==s?void 0:s.hourCycle)){let n=t.hour>=12;e=n?12:0,a=n?23:11}let l=(0,r.toCalendarDateTime)(t),A=(0,r.toCalendar)(f(l,{hour:e}),new(0,i.GregorianCalendar)),c=[(0,r.toAbsolute)(A,t.timeZone,"earlier"),(0,r.toAbsolute)(A,t.timeZone,"later")].filter(e=>(0,r.fromAbsolute)(e,t.timeZone).day===A.day)[0],h=(0,r.toCalendar)(f(l,{hour:a}),new(0,i.GregorianCalendar)),u=[(0,r.toAbsolute)(h,t.timeZone,"earlier"),(0,r.toAbsolute)(h,t.timeZone,"later")].filter(e=>(0,r.fromAbsolute)(e,t.timeZone).day===h.day).pop(),p=(0,r.epochFromDate)(t)-t.offset,d=Math.floor(p/o),g=p%o;return p=w(d,n,Math.floor(c/o),Math.floor(u/o),null==s?void 0:s.round)*o+g,(0,r.toCalendar)((0,r.fromAbsolute)(p,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return x(t,e,n,s);case"era":case"year":case"month":case"day":{let i=b((0,r.toCalendarDateTime)(t),e,n,s),o=(0,r.toAbsolute)(i,t.timeZone);return(0,r.toCalendar)((0,r.fromAbsolute)(o,t.timeZone),t.calendar)}default:throw new Error("Unsupported field "+e)}}function E(t,e,n){let i=(0,r.toCalendarDateTime)(t),s=f(d(i,e),e);if(0===s.compare(i))return t;let o=(0,r.toAbsolute)(s,t.timeZone,n);return(0,r.toCalendar)((0,r.fromAbsolute)(o,t.timeZone),t.calendar)}},70656(t,e,n){var r=n(21400),i=n(32728);function s(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}function o(t,e){return e=(0,r.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,r.toCalendar)(e,t.calendar),t=B(t),e=B(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function l(t,e){return e=(0,r.toCalendar)(e,t.calendar),t=P(t),e=P(e),t.era===e.era&&t.year===e.year}function A(t,e){return u(t.calendar,e.calendar)&&o(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)&&l(t,e)}function u(t,e){var n,r,i,s;return null!==(s=null!==(i=null===(n=t.isEqual)||void 0===n?void 0:n.call(t,e))&&void 0!==i?i:null===(r=e.isEqual)||void 0===r?void 0:r.call(e,t))&&void 0!==s?s:t.identifier===e.identifier}function p(t,e){return o(t,m(e))}s(t.exports,"isSameDay",()=>o),s(t.exports,"isSameMonth",()=>a),s(t.exports,"startOfMonth",()=>B),s(t.exports,"isSameYear",()=>l),s(t.exports,"startOfYear",()=>P),s(t.exports,"isEqualDay",()=>A),s(t.exports,"isEqualCalendar",()=>u),s(t.exports,"isEqualMonth",()=>c),s(t.exports,"isEqualYear",()=>h),s(t.exports,"isToday",()=>p),s(t.exports,"today",()=>m),s(t.exports,"getDayOfWeek",()=>f),s(t.exports,"now",()=>g),s(t.exports,"compareDate",()=>y),s(t.exports,"compareTime",()=>v),s(t.exports,"getHoursInDay",()=>b),s(t.exports,"getLocalTimeZone",()=>_),s(t.exports,"setLocalTimeZone",()=>S),s(t.exports,"resetLocalTimeZone",()=>C),s(t.exports,"isLocalTimeZoneOverridden",()=>E),s(t.exports,"endOfMonth",()=>T),s(t.exports,"endOfYear",()=>k),s(t.exports,"getMinimumMonthInYear",()=>I),s(t.exports,"getMinimumDayInMonth",()=>N),s(t.exports,"startOfWeek",()=>Q),s(t.exports,"endOfWeek",()=>F),s(t.exports,"getWeeksInMonth",()=>R),s(t.exports,"minDate",()=>U),s(t.exports,"maxDate",()=>$),s(t.exports,"isWeekend",()=>H),s(t.exports,"isWeekday",()=>V);const d={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function f(t,e,n){let r=t.calendar.toJulianDay(t),s=n?d[n]:function(t){let e=M.get(t);if(!e){if(Intl.Locale){let n=new Intl.Locale(t);if("getWeekInfo"in n&&(e=n.getWeekInfo(),e))return M.set(t,e),e.firstDay}let n=D(t);if(t.includes("-fw-")){let n=t.split("-fw-")[1].split("-")[0];e="mon"===n?{firstDay:1}:"tue"===n?{firstDay:2}:"wed"===n?{firstDay:3}:"thu"===n?{firstDay:4}:"fri"===n?{firstDay:5}:"sat"===n?{firstDay:6}:{firstDay:0}}else e=t.includes("-ca-iso8601")?{firstDay:1}:{firstDay:n&&i.weekStartData[n]||0};M.set(t,e)}return e.firstDay}(e),o=Math.ceil(r+1-s)%7;return o<0&&(o+=7),o}function g(t){return(0,r.fromAbsolute)(Date.now(),t)}function m(t){return(0,r.toCalendarDate)(g(t))}function y(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function v(t,e){return O(t)-O(e)}function O(t){return 36e5*t.hour+6e4*t.minute+1e3*t.second+t.millisecond}function b(t,e){let n=(0,r.toAbsolute)(t,e),i=t.add({days:1});return((0,r.toAbsolute)(i,e)-n)/36e5}let x=null,w=!1;function _(){return null==x&&(x=(new Intl.DateTimeFormat).resolvedOptions().timeZone),x}function S(t){w=!0,x=t}function C(){w=!1,x=null}function E(){return w}function B(t){return t.subtract({days:t.day-1})}function T(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function P(t){return B(t.subtract({months:t.month-1}))}function k(t){return T(t.add({months:t.calendar.getMonthsInYear(t)-t.month}))}function I(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function N(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function Q(t,e,n){let r=f(t,e,n);return t.subtract({days:r})}function F(t,e,n){return Q(t,e,n).add({days:6})}const L=new Map,M=new Map;function D(t){if(Intl.Locale){let e=L.get(t);return e||(e=new Intl.Locale(t).maximize().region,e&&L.set(t,e)),e}let e=t.split("-")[1];return"u"===e?void 0:e}function R(t,e,n){let r=t.calendar.getDaysInMonth(t);return Math.ceil((f(B(t),e,n)+r)/7)}function U(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function $(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}const j={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 H(t,e){let n=t.calendar.toJulianDay(t),r=Math.ceil(n+1)%7;r<0&&(r+=7);let i=D(e),[s,o]=j[i]||[6,0];return r===s||r===o}function V(t,e){return!H(t,e)}},46135(t,e,n){var r=n(1626),i=n(21400),s=n(70656),o=n(13786);function a(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,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",()=>S),a(t.exports,"parseAbsolute",()=>O),a(t.exports,"parseAbsoluteToLocal",()=>b),a(t.exports,"timeToString",()=>w),a(t.exports,"dateToString",()=>_),a(t.exports,"zonedDateTimeToString",()=>E),a(t.exports,"parseDuration",()=>B);const l=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,A=/^([+-]\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)?)?$/,d=["hours","minutes","seconds"],f=["years","months","weeks","days",...d];function g(t){let e=t.match(l);if(!e)throw new Error("Invalid ISO 8601 time string: "+t);return new(0,r.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(A);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 n=new(0,r.CalendarDate)(x(e[1],0,9999),x(e[2],1,12),1);return n.day=x(e[3],1,n.calendar.getDaysInMonth(n)),n}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 n=x(e[1],-9999,9999),i=n<1?"BC":"AD",s=new(0,r.CalendarDateTime)(i,n<1?1-n:n,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 s.day=x(e[3],0,s.calendar.getDaysInMonth(s)),s}function v(t,e){let n=t.match(h);if(!n)throw new Error("Invalid ISO 8601 date time string: "+t);let s=x(n[1],-9999,9999),o=s<1?"BC":"AD",a=new(0,r.ZonedDateTime)(o,s<1?1-s:s,x(n[2],1,12),1,n[11],0,n[4]?x(n[4],0,23):0,n[5]?x(n[5],0,59):0,n[6]?x(n[6],0,59):0,n[7]?1e3*x(n[7],0,1/0):0);a.day=x(n[3],0,a.calendar.getDaysInMonth(a));let l,A=(0,i.toCalendarDateTime)(a);if(n[8]){let t=x(n[8],-23,23);var c,u;if(a.offset=Math.sign(t)*(36e5*Math.abs(t)+6e4*x(null!==(c=n[9])&&void 0!==c?c:"0",0,59)+1e3*x(null!==(u=n[10])&&void 0!==u?u:"0",0,59)),l=(0,i.epochFromDate)(a)-a.offset,!(0,i.possibleAbsolutes)(A,a.timeZone).includes(l))throw new Error(`Offset ${C(a.offset)} is invalid for ${S(a)} in ${a.timeZone}`)}else l=(0,i.toAbsolute)((0,i.toCalendarDateTime)(A),a.timeZone,e);return(0,i.fromAbsolute)(l,a.timeZone)}function O(t,e){let n=t.match(u);if(!n)throw new Error("Invalid ISO 8601 date time string: "+t);let s=x(n[1],-9999,9999),o=s<1?"BC":"AD",a=new(0,r.ZonedDateTime)(o,s<1?1-s:s,x(n[2],1,12),1,e,0,n[4]?x(n[4],0,23):0,n[5]?x(n[5],0,59):0,n[6]?x(n[6],0,59):0,n[7]?1e3*x(n[7],0,1/0):0);var l;return a.day=x(n[3],0,a.calendar.getDaysInMonth(a)),n[8]&&(a.offset=36e5*x(n[8],-23,23)+6e4*x(null!==(l=n[9])&&void 0!==l?l:"0",0,59)),(0,i.toTimeZone)(a,e)}function b(t){return O(t,(0,s.getLocalTimeZone)())}function x(t,e,n){let r=Number(t);if(r<e||r>n)throw new RangeError(`Value out of range: ${e} <= ${r} <= ${n}`);return r}function w(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 _(t){let e,n=(0,i.toCalendar)(t,new(0,o.GregorianCalendar));return e="BC"===n.era?1===n.year?"0000":"-"+String(Math.abs(1-n.year)).padStart(6,"00"):String(n.year).padStart(4,"0"),`${e}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function S(t){return`${_(t)}T${w(t)}`}function C(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let n=Math.floor(t/36e5),r=Math.floor(t%36e5/6e4),i=Math.floor(t%36e5%6e4/1e3),s=`${e}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return 0!==i&&(s+=`:${String(i).padStart(2,"0")}`),s}function E(t){return`${S(t)}${C(t.offset)}[${t.timeZone}]`}function B(t){var e,n,r,i,s,o,a,l,A;const c=t.match(p);if(!c)throw new Error(`Invalid ISO 8601 Duration string: ${t}`);const h=(e,n)=>{if(!e)return 0;try{return(n?-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=f.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===(n=c.groups)||void 0===n?void 0:n.time){const e=d.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===(r=c.groups)||void 0===r?void 0:r.years,u),months:h(null===(i=c.groups)||void 0===i?void 0:i.months,u),weeks:h(null===(s=c.groups)||void 0===s?void 0:s.weeks,u),days:h(null===(o=c.groups)||void 0===o?void 0:o.days,u),hours:h(null===(a=c.groups)||void 0===a?void 0:a.hours,u),minutes:h(null===(l=c.groups)||void 0===l?void 0:l.minutes,u),seconds:h(null===(A=c.groups)||void 0===A?void 0:A.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,n;function r(t,e){return t-e*Math.floor(t/e)}e=t.exports,n=()=>r,Object.defineProperty(e,"mod",{get:n,set:void 0,enumerable:!0,configurable:!0})},32728(t){var e,n;e=t.exports,n=()=>r,Object.defineProperty(e,"weekStartData",{get:n,set:void 0,enumerable:!0,configurable:!0});const r={"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,n;e=t.exports,n=()=>r,Object.defineProperty(e,"MessageDictionary",{get:n,set:void 0,enumerable:!0,configurable:!0});class r{getStringForLocale(t,e){let n=this.messages[e];n||(n=function(t,e,n="en-US"){if(e[t])return e[t];let r=function(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}(t);if(e[r])return e[r];for(let t in e)if(t.startsWith(r+"-"))return e[t];return e[n]}(e,this.messages,this.defaultLocale),this.messages[e]=n);let r=n[t];if(!r)throw new Error(`Could not find intl message ${t} in ${e} locale`);return r}constructor(t,e="en-US"){this.messages=Object.fromEntries(Object.entries(t).filter(([,t])=>t)),this.defaultLocale=e}}},22035(t,e,n){var r,i,s=n(81133);r=t.exports,i=()=>o,Object.defineProperty(r,"MessageFormatter",{get:i,set:void 0,enumerable:!0,configurable:!0});class o{format(t,e){let n=this.cache[t];if(!n){let e=this.messages.getStringForLocale(t,this.locale);if(!e)throw new Error(`Could not find intl message ${t} in ${this.locale} locale`);n=new((r=s)&&r.__esModule?r.default:r)(e,this.locale),this.cache[t]=n}var r;let i;return e&&(i=Object.keys(e).reduce((t,n)=>(t[n]=null!=e[n]&&e[n],t),{})),n.format(i)}constructor(t,e){this.locale=t,this.messages=e,this.cache={}}}},17700(t,e,n){var r=n(25179),i=n(22035);function s(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}s(t.exports,"MessageDictionary",()=>r.MessageDictionary),s(t.exports,"MessageFormatter",()=>i.MessageFormatter)},48943(t){var e,n;e=t.exports,n=()=>a,Object.defineProperty(e,"NumberFormatter",{get:n,set:void 0,enumerable:!0,configurable:!0});let r=new Map,i=!1;try{i="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let s=!1;try{s="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}const o={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,n){if("auto"===e)return t.format(n);if("never"===e)return t.format(Math.abs(n));{let r=!1;if("always"===e?r=n>0||Object.is(n,0):"exceptZero"===e&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let e=t.format(-n),r=t.format(n),i=e.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),e.replace(r,"!!!").replace(i,"+").replace("!!!",r)}return t.format(n)}}(this.numberFormatter,this.options.signDisplay,t),"unit"===this.options.style&&!s){var n;let{unit:t,unitDisplay:r="short",locale:i}=this.resolvedOptions();if(!t)return e;let s=null===(n=o[t])||void 0===n?void 0:n[r];e+=s[i]||s.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 n=this.numberFormatter.formatToParts(t),r=this.numberFormatter.formatToParts(e);return[...n.map(t=>({...t,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(t=>({...t,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return i||null==this.options.signDisplay||(t={...t,signDisplay:this.options.signDisplay}),s||"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:n}=e;if(n&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${n}`),"unit"===e.style&&!s){var i;let{unit:t,unitDisplay:n="short"}=e;if(!t)throw new Error('unit option must be provided with style: "unit"');if(!(null===(i=o[t])||void 0===i?void 0:i[n]))throw new Error(`Unsupported unit ${t} with unitDisplay = ${n}`);e={...e,style:"decimal"}}let a=t+(e?Object.entries(e).sort((t,e)=>t[0]<e[0]?-1:1).join():"");if(r.has(a))return r.get(a);let l=new Intl.NumberFormat(t,e);return r.set(a,l),l}(t,e),this.options=e}}},77126(t,e,n){var r,i,s=n(48943);r=t.exports,i=()=>l,Object.defineProperty(r,"NumberParser",{get:i,set:void 0,enumerable:!0,configurable:!0});const o=new RegExp("^.*\\(.*\\).*$"),a=["latn","arab","hanidec","deva","beng","fullwide"];class l{parse(t){return c(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,e,n){return c(this.locale,this.options,t).isValidPartialNumber(t,e,n)}getNumberingSystem(t){return c(this.locale,this.options,t).options.numberingSystem}constructor(t,e={}){this.locale=t,this.options=e}}const A=new Map;function c(t,e,n){let r=h(t,e);if(!t.includes("-nu-")&&!r.isValidPartialNumber(n))for(let i of a)if(i!==r.options.numberingSystem){let r=h(t+(t.includes("-u-")?"-nu-":"-u-nu-")+i,e);if(r.isValidPartialNumber(n))return r}return r}function h(t,e){let n=t+(e?Object.entries(e).sort((t,e)=>t[0]<e[0]?-1:1).join():""),r=A.get(n);return r||(r=new u(t,e),A.set(n,r)),r}class u{parse(t){let e=this.sanitize(t);if(this.symbols.group&&(e=f(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 n=e.indexOf(".");-1===n&&(n=e.length),e=e.replace(".",""),e=n-2==0?`0.${e}`:n-2==-1?`0.0${e}`:n-2==-2?"0.00":`${e.slice(0,n-2)}.${e.slice(n-2)}`,t>-1&&(e=`-${e}`)}let n=e?+e:NaN;if(isNaN(n))return NaN;if("percent"===this.options.style){var r,i;let t={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)+2,20),maximumFractionDigits:Math.min((null!==(i=this.options.maximumFractionDigits)&&void 0!==i?i:0)+2,20)};return new l(this.locale,t).parse(new(0,s.NumberFormatter)(this.locale,t).format(n))}return"accounting"===this.options.currencySign&&o.test(t)&&(n*=-1),n}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=f(t,".",this.symbols.group))),"’"===this.symbols.group&&t.includes("'")&&(t=f(t,"'",this.symbols.group)),"fr-FR"===this.options.locale&&this.symbols.group&&(t=f(t," ",this.symbols.group),t=f(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,e=-1/0,n=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)&&n>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=f(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 n,r;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,n,r){var i,s,o,a;let l=new Intl.NumberFormat(t,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),A=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),h=d.map(t=>l.formatToParts(t));var u;let f=null!==(u=null===(i=A.find(t=>"minusSign"===t.type))||void 0===i?void 0:i.value)&&void 0!==u?u:"-",m=null===(s=c.find(t=>"plusSign"===t.type))||void 0===s?void 0:s.value;m||"exceptZero"!==(null==r?void 0:r.signDisplay)&&"always"!==(null==r?void 0:r.signDisplay)||(m="+");let y=null===(o=new Intl.NumberFormat(t,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(t=>"decimal"===t.type))||void 0===o?void 0:o.value,v=null===(a=A.find(t=>"group"===t.type))||void 0===a?void 0:a.value,O=A.filter(t=>!p.has(t.type)).map(t=>g(t.value)),b=h.flatMap(t=>t.filter(t=>!p.has(t.type)).map(t=>g(t.value))),x=[...new Set([...O,...b])].sort((t,e)=>e.length-t.length),w=0===x.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${x.join("|")}|[\\p{White_Space}]`,"gu"),_=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),S=new Map(_.map((t,e)=>[t,e]));return{minusSign:f,plusSign:m,decimal:y,group:v,literals:w,numeral:new RegExp(`[${_.join("")}]`,"g"),index:t=>String(S.get(t))}}(t,this.formatter,this.options,e),"percent"===this.options.style&&((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)>18||(null!==(r=this.options.maximumFractionDigits)&&void 0!==r?r: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"]),d=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function f(t,e,n){return t.replaceAll?t.replaceAll(e,n):t.split(e).join(n)}function g(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},41992(t,e,n){var r=n(48943),i=n(77126);function s(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}s(t.exports,"NumberFormatter",()=>r.NumberFormatter),s(t.exports,"NumberParser",()=>i.NumberParser)},66802(t){var e,n;e=t.exports,n=()=>o,Object.defineProperty(e,"LocalizedStringDictionary",{get:n,set:void 0,enumerable:!0,configurable:!0});const r=Symbol.for("react-aria.i18n.locale"),i=Symbol.for("react-aria.i18n.strings");let s;class o{getStringForLocale(t,e){let n=this.getStringsForLocale(e)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${e} locale`);return n}getStringsForLocale(t){let e=this.strings[t];return e||(e=function(t,e,n="en-US"){if(e[t])return e[t];let r=function(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}(t);if(e[r])return e[r];for(let t in e)if(t.startsWith(r+"-"))return e[t];return e[n]}(t,this.strings,this.defaultLocale),this.strings[t]=e),e}static getGlobalDictionaryForPackage(t){if("undefined"==typeof window)return null;let e=window[r];if(void 0===s){let t=window[i];if(!t)return null;s={};for(let n in t)s[n]=new o({[e]:t[n]},e)}let n=null==s?void 0:s[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,e="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,t])=>t)),this.defaultLocale=e}}},95808(t){var e,n;e=t.exports,n=()=>s,Object.defineProperty(e,"LocalizedStringFormatter",{get:n,set:void 0,enumerable:!0,configurable:!0});const r=new Map,i=new Map;class s{format(t,e){let n=this.strings.getStringForLocale(t,this.locale);return"function"==typeof n?n(e,this):n}plural(t,e,n="cardinal"){let i=e["="+t];if(i)return"function"==typeof i?i():i;let s=this.locale+":"+n,o=r.get(s);return o||(o=new Intl.PluralRules(this.locale,{type:n}),r.set(s,o)),i=e[o.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 n=t[e]||t.other;return"function"==typeof n?n():n}constructor(t,e){this.locale=t,this.strings=e}}},83604(t,e,n){var r=n(66802),i=n(95808);function s(t,e,n,r){Object.defineProperty(t,e,{get:n,set:r,enumerable:!0,configurable:!0})}s(t.exports,"LocalizedStringDictionary",()=>r.LocalizedStringDictionary),s(t.exports,"LocalizedStringFormatter",()=>i.LocalizedStringFormatter)},27477(t,e,n){"use strict";n.d(e,{Ay:()=>ct,qj:()=>rt,gi:()=>et,VC:()=>nt,J1:()=>J,Nh:()=>tt});var r=n(65959);function i(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}const s=/\r\n|[\n\r]/g;function o(t,e){let n=0,r=1;for(const o of t.body.matchAll(s)){if("number"==typeof o.index||i(!1),o.index>=e)break;n=o.index+o[0].length,r+=1}return{line:r,column:e+1-n}}function a(t){return l(t.source,o(t.source,t.start))}function l(t,e){const n=t.locationOffset.column-1,r="".padStart(n)+t.body,i=e.line-1,s=t.locationOffset.line-1,o=e.line+s,a=1===e.line?n:0,l=e.column+a,c=`${t.name}:${o}:${l}\n`,h=r.split(/\r\n|[\n\r]/g),u=h[i];if(u.length>120){const t=Math.floor(l/80),e=l%80,n=[];for(let t=0;t<u.length;t+=80)n.push(u.slice(t,t+80));return c+A([[`${o} |`,n[0]],...n.slice(1,t+1).map(t=>["|",t]),["|","^".padStart(e)],["|",n[t+1]]])}return c+A([[o-1+" |",h[i-1]],[`${o} |`,u],["|","^".padStart(l)],[`${o+1} |`,h[i+1]]])}function A(t){const e=t.filter(([t,e])=>void 0!==e),n=Math.max(...e.map(([t])=>t.length));return e.map(([t,e])=>t.padStart(n)+(e?" "+e:"")).join("\n")}class c extends Error{constructor(t,e,n,r,i,s,a){var l,A,u;super(t),this.name="GraphQLError",this.path=null!=i?i:void 0,this.originalError=null!=s?s:void 0,this.nodes=h(Array.isArray(e)?e:e?[e]:void 0);const p=h(null===(l=this.nodes)||void 0===l?void 0:l.map(t=>t.loc).filter(t=>null!=t));this.source=null!=n?n:null==p||null===(A=p[0])||void 0===A?void 0:A.source,this.positions=null!=r?r:null==p?void 0:p.map(t=>t.start),this.locations=r&&n?r.map(t=>o(n,t)):null==p?void 0:p.map(t=>o(t.source,t.start));const d="object"==typeof(f=null==s?void 0:s.extensions)&&null!==f?null==s?void 0:s.extensions:void 0;var f;this.extensions=null!==(u=null!=a?a:d)&&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!=s&&s.stack?Object.defineProperty(this,"stack",{value:s.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"+l(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,n){return new c(`Syntax Error: ${n}`,void 0,t,[e])}var p=n(49270),d=n(34695);let f;!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"}(f||(f={}));var g=n(55565),m=n(234);class y{constructor(t,e="GraphQL request",n={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=n,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 O=n(22359);function b(t){return t>=48&&t<=57}function x(t){return t>=97&&t<=122||t>=65&&t<=90}function w(t){return x(t)||95===t}function _(t){return x(t)||b(t)||95===t}class S{constructor(t){const e=new d.ou(f.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!==f.EOF)do{if(t.next)t=t.next;else{const e=I(this,t.end);t.next=e,e.prev=t,t=e}}while(t.kind===f.COMMENT);return t}}function C(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function E(t,e){return B(t.charCodeAt(e))&&T(t.charCodeAt(e+1))}function B(t){return t>=55296&&t<=56319}function T(t){return t>=56320&&t<=57343}function P(t,e){const n=t.source.body.codePointAt(e);if(void 0===n)return f.EOF;if(n>=32&&n<=126){const t=String.fromCodePoint(n);return'"'===t?"'\"'":`"${t}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function k(t,e,n,r,i){const s=t.line,o=1+n-t.lineStart;return new d.ou(e,n,r,s,o,i)}function I(t,e){const n=t.source.body,r=n.length;let i=e;for(;i<r;){const e=n.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===n.charCodeAt(i+1)?i+=2:++i,++t.line,t.lineStart=i;continue;case 35:return N(t,i);case 33:return k(t,f.BANG,i,i+1);case 36:return k(t,f.DOLLAR,i,i+1);case 38:return k(t,f.AMP,i,i+1);case 40:return k(t,f.PAREN_L,i,i+1);case 41:return k(t,f.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return k(t,f.SPREAD,i,i+3);break;case 58:return k(t,f.COLON,i,i+1);case 61:return k(t,f.EQUALS,i,i+1);case 64:return k(t,f.AT,i,i+1);case 91:return k(t,f.BRACKET_L,i,i+1);case 93:return k(t,f.BRACKET_R,i,i+1);case 123:return k(t,f.BRACE_L,i,i+1);case 124:return k(t,f.PIPE,i,i+1);case 125:return k(t,f.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?j(t,i):L(t,i)}if(b(e)||45===e)return Q(t,i,e);if(w(e))return H(t,i);throw u(t.source,i,39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":C(e)||E(n,i)?`Unexpected character: ${P(t,i)}.`:`Invalid character: ${P(t,i)}.`)}return k(t,f.EOF,r,r)}function N(t,e){const n=t.source.body,r=n.length;let i=e+1;for(;i<r;){const t=n.charCodeAt(i);if(10===t||13===t)break;if(C(t))++i;else{if(!E(n,i))break;i+=2}}return k(t,f.COMMENT,e,i,n.slice(e+1,i))}function Q(t,e,n){const r=t.source.body;let i=e,s=n,o=!1;if(45===s&&(s=r.charCodeAt(++i)),48===s){if(s=r.charCodeAt(++i),b(s))throw u(t.source,i,`Invalid number, unexpected digit after 0: ${P(t,i)}.`)}else i=F(t,i,s),s=r.charCodeAt(i);if(46===s&&(o=!0,s=r.charCodeAt(++i),i=F(t,i,s),s=r.charCodeAt(i)),69!==s&&101!==s||(o=!0,s=r.charCodeAt(++i),43!==s&&45!==s||(s=r.charCodeAt(++i)),i=F(t,i,s),s=r.charCodeAt(i)),46===s||w(s))throw u(t.source,i,`Invalid number, expected digit but got: ${P(t,i)}.`);return k(t,o?f.FLOAT:f.INT,e,i,r.slice(e,i))}function F(t,e,n){if(!b(n))throw u(t.source,e,`Invalid number, expected digit but got: ${P(t,e)}.`);const r=t.source.body;let i=e+1;for(;b(r.charCodeAt(i));)++i;return i}function L(t,e){const n=t.source.body,r=n.length;let i=e+1,s=i,o="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return o+=n.slice(s,i),k(t,f.STRING,e,i+1,o);if(92===r){o+=n.slice(s,i);const e=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?M(t,i):D(t,i):$(t,i);o+=e.value,i+=e.size,s=i;continue}if(10===r||13===r)break;if(C(r))++i;else{if(!E(n,i))throw u(t.source,i,`Invalid character within String: ${P(t,i)}.`);i+=2}}throw u(t.source,i,"Unterminated string.")}function M(t,e){const n=t.source.body;let r=0,i=3;for(;i<12;){const t=n.charCodeAt(e+i++);if(125===t){if(i<5||!C(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|U(t),r<0)break}throw u(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+i)}".`)}function D(t,e){const n=t.source.body,r=R(n,e+2);if(C(r))return{value:String.fromCodePoint(r),size:6};if(B(r)&&92===n.charCodeAt(e+6)&&117===n.charCodeAt(e+7)){const t=R(n,e+8);if(T(t))return{value:String.fromCodePoint(r,t),size:12}}throw u(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+6)}".`)}function R(t,e){return U(t.charCodeAt(e))<<12|U(t.charCodeAt(e+1))<<8|U(t.charCodeAt(e+2))<<4|U(t.charCodeAt(e+3))}function U(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function $(t,e){const n=t.source.body;switch(n.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: "${n.slice(e,e+2)}".`)}function j(t,e){const n=t.source.body,r=n.length,i=t.line,s=1+e-t.lineStart;let o=e+3,a=o,l="";for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2))return l+=n.slice(a,o),new d.ou(f.BLOCK_STRING,e,o+3,i,s,(0,O.i$)(l));if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(C(r))++o;else{if(!E(n,o))throw u(t.source,o,`Invalid character within String: ${P(t,o)}.`);o+=2}else 13===r&&10===n.charCodeAt(o+1)?o+=2:++o,++t.line,t.lineStart=o;else l+=n.slice(a,o)+'"""',o+=4,a=o}throw u(t.source,o,"Unterminated string.")}function H(t,e){const n=t.source.body,r=n.length;let i=e+1;for(;i<r&&_(n.charCodeAt(i));)++i;return k(t,f.NAME,e,i,n.slice(e,i))}class V{constructor(t,e){const n=function(t){return t instanceof y}(t)?t:new y(t);this._lexer=new S(n),this._options=e}parseName(){const t=this.expectToken(f.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(f.SOF,this.parseDefinition,f.EOF)})}parseDefinition(){if(this.peek(f.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(e.kind===f.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(f.BRACE_L))return this.node(t,{kind:p.b.OPERATION_DEFINITION,operation:d.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseOperationType();let n;return this.peek(f.NAME)&&(n=this.parseName()),this.node(t,{kind:p.b.OPERATION_DEFINITION,operation:e,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(f.NAME);switch(t.value){case"query":return d.cE.QUERY;case"mutation":return d.cE.MUTATION;case"subscription":return d.cE.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(f.PAREN_L,this.parseVariableDefinition,f.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(f.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(f.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(f.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(f.BRACE_L,this.parseSelection,f.BRACE_R)})}parseSelection(){return this.peek(f.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let n,r;return this.expectOptionalToken(f.COLON)?(n=e,r=this.parseName()):r=e,this.node(t,{kind:p.b.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(f.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(f.PAREN_L,e,f.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,n=this.parseName();return this.expectToken(f.COLON),this.node(e,{kind:p.b.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(f.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(f.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 f.BRACKET_L:return this.parseList(t);case f.BRACE_L:return this.parseObject(t);case f.INT:return this._lexer.advance(),this.node(e,{kind:p.b.INT,value:e.value});case f.FLOAT:return this._lexer.advance(),this.node(e,{kind:p.b.FLOAT,value:e.value});case f.STRING:case f.BLOCK_STRING:return this.parseStringLiteral();case f.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 f.DOLLAR:if(t){if(this.expectToken(f.DOLLAR),this._lexer.token.kind===f.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===f.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:p.b.LIST,values:this.any(f.BRACKET_L,()=>this.parseValueLiteral(t),f.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:p.b.OBJECT,fields:this.any(f.BRACE_L,()=>this.parseObjectField(t),f.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,n=this.parseName();return this.expectToken(f.COLON),this.node(e,{kind:p.b.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(f.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(f.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(f.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(f.BRACKET_R),e=this.node(t,{kind:p.b.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(f.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(f.STRING)||this.peek(f.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(f.BRACE_L,this.parseOperationTypeDefinition,f.BRACE_R);return this.node(t,{kind:p.b.SCHEMA_DEFINITION,description:e,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(f.COLON);const n=this.parseNamedType();return this.node(t,{kind:p.b.OPERATION_TYPE_DEFINITION,operation:e,type:n})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(t,{kind:p.b.SCALAR_TYPE_DEFINITION,description:e,name:n,directives:r})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:p.b.OBJECT_TYPE_DEFINITION,description:e,name:n,interfaces:r,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(f.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(f.BRACE_L,this.parseFieldDefinition,f.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(f.COLON);const i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:p.b.FIELD_DEFINITION,description:e,name:n,arguments:r,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(f.PAREN_L,this.parseInputValueDef,f.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),n=this.parseName();this.expectToken(f.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(f.EQUALS)&&(i=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:p.b.INPUT_VALUE_DEFINITION,description:e,name:n,type:r,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:p.b.INTERFACE_TYPE_DEFINITION,description:e,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:p.b.UNION_TYPE_DEFINITION,description:e,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(f.EQUALS)?this.delimitedMany(f.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:p.b.ENUM_TYPE_DEFINITION,description:e,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(f.BRACE_L,this.parseEnumValueDefinition,f.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(t,{kind:p.b.ENUM_VALUE_DEFINITION,description:e,name:n,directives:r})}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,`${X(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 n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:p.b.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(f.BRACE_L,this.parseInputValueDef,f.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===f.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(),n=this.optionalMany(f.BRACE_L,this.parseOperationTypeDefinition,f.BRACE_R);if(0===e.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:p.b.SCHEMA_EXTENSION,directives:e,operationTypes:n})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(t,{kind:p.b.SCALAR_TYPE_EXTENSION,name:e,directives:n})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:p.b.OBJECT_TYPE_EXTENSION,name:e,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:p.b.INTERFACE_TYPE_EXTENSION,name:e,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:p.b.UNION_TYPE_EXTENSION,name:e,directives:n,types:r})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:p.b.ENUM_TYPE_EXTENSION,name:e,directives:n,values:r})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:p.b.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:n,fields:r})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(f.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:p.b.DIRECTIVE_DEFINITION,description:e,name:n,arguments:r,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(f.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 n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(e.loc=new d.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 ${z(t)}, found ${X(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this._lexer.advance(),!0)}expectKeyword(t){const e=this._lexer.token;if(e.kind!==f.NAME||e.value!==t)throw u(this._lexer.source,e.start,`Expected "${t}", found ${X(e)}.`);this._lexer.advance()}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===f.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 ${X(e)}.`)}any(t,e,n){this.expectToken(t);const r=[];for(;!this.expectOptionalToken(n);)r.push(e.call(this));return r}optionalMany(t,e,n){if(this.expectOptionalToken(t)){const t=[];do{t.push(e.call(this))}while(!this.expectOptionalToken(n));return t}return[]}many(t,e,n){this.expectToken(t);const r=[];do{r.push(e.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(t,e){this.expectOptionalToken(t);const n=[];do{n.push(e.call(this))}while(this.expectOptionalToken(t));return n}}function X(t){const e=t.value;return z(t.kind)+(null!=e?` "${e}"`:"")}function z(t){return function(t){return t===f.BANG||t===f.DOLLAR||t===f.AMP||t===f.PAREN_L||t===f.PAREN_R||t===f.SPREAD||t===f.COLON||t===f.EQUALS||t===f.AT||t===f.BRACKET_L||t===f.BRACKET_R||t===f.BRACE_L||t===f.PIPE||t===f.BRACE_R}(t)?`"${t}"`:t}var G=new Map,Y=new Map,W=!0,Z=!1;function K(t){return t.replace(/[\s,]+/g," ").trim()}function q(t){var e=K(t);if(!G.has(e)){var n=function(t,e){return new V(t,e).parseDocument()}(t,{experimentalFragmentVariables:Z,allowLegacyFragmentVariables:Z});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");G.set(e,function(t){var e=new Set(t.definitions);e.forEach(function(t){t.loc&&delete t.loc,Object.keys(t).forEach(function(n){var r=t[n];r&&"object"==typeof r&&e.add(r)})});var n=t.loc;return n&&(delete n.startToken,delete n.endToken),t}(function(t){var e=new Set,n=[];return t.definitions.forEach(function(t){if("FragmentDefinition"===t.kind){var r=t.name.value,i=K((o=t.loc).source.body.substring(o.start,o.end)),s=Y.get(r);s&&!s.has(i)?W&&console.warn("Warning: fragment with name "+r+" 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"):s||Y.set(r,s=new Set),s.add(i),e.has(i)||(e.add(i),n.push(t))}else n.push(t);var o}),(0,r.__assign)((0,r.__assign)({},t),{definitions:n})}(n)))}return G.get(e)}function J(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];"string"==typeof t&&(t=[t]);var r=t[0];return e.forEach(function(e,n){e&&"Document"===e.kind?r+=e.loc.source.body:r+=e,r+=t[n+1]}),q(r)}function tt(){G.clear(),Y.clear()}function et(){W=!1}function nt(){Z=!0}function rt(){Z=!1}var it,st=J,ot=tt,at=et,lt=nt,At=rt;(it=J||(J={})).gql=st,it.resetCaches=ot,it.disableFragmentWarnings=at,it.enableExperimentalFragmentVariables=lt,it.disableExperimentalFragmentVariables=At,J.default=J;const ct=J},42128(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.devAssert=function(t,e){if(!Boolean(t))throw new Error(e)}},10085(t,e){"use strict";function n(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:n(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),i=t.length-r,s=[];for(let i=0;i<r;++i)s.push(n(t[i],e));return 1===i?s.push("... 1 more item"):i>1&&s.push(`... ${i} more items`),"["+s.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 i=r.map(([t,r])=>t+": "+n(r,e));return"{ "+i.join(", ")+" }"}(t,r)}(t,e);default:return String(t)}}Object.defineProperty(e,"__esModule",{value:!0}),e.inspect=function(t){return n(t,[])}},48541(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Token=e.QueryDocumentKeys=e.OperationTypeNode=e.Location=void 0,e.isNode=function(t){const e=null==t?void 0:t.kind;return"string"==typeof e&&s.has(e)};class n{constructor(t,e,n){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}e.Location=n;class r{constructor(t,e,n,r,i,s){this.kind=t,this.start=e,this.end=n,this.line=r,this.column=i,this.value=s,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}}}e.Token=r;const i={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};e.QueryDocumentKeys=i;const s=new Set(Object.keys(i));var o;e.OperationTypeNode=o,function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(o||(e.OperationTypeNode=o={}))},28441(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dedentBlockStringLines=function(t){var e;let n=Number.MAX_SAFE_INTEGER,r=null,s=-1;for(let e=0;e<t.length;++e){var o;const a=t[e],l=i(a);l!==a.length&&(r=null!==(o=r)&&void 0!==o?o:e,s=e,0!==e&&l<n&&(n=l))}return t.map((t,e)=>0===e?t:t.slice(n)).slice(null!==(e=r)&&void 0!==e?e:0,s+1)},e.isPrintableAsBlockString=function(t){if(""===t)return!0;let e=!0,n=!1,r=!0,i=!1;for(let s=0;s<t.length;++s)switch(t.codePointAt(s)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(e&&!i)return!1;i=!0,e=!0,n=!1;break;case 9:case 32:n||(n=e);break;default:r&&(r=n),e=!1}return!e&&(!r||!i)},e.printBlockString=function(t,e){const n=t.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),s=1===i.length,o=i.length>1&&i.slice(1).every(t=>0===t.length||(0,r.isWhiteSpace)(t.charCodeAt(0))),a=n.endsWith('\\"""'),l=t.endsWith('"')&&!a,A=t.endsWith("\\"),c=l||A,h=!(null!=e&&e.minimize)&&(!s||t.length>70||c||o||a);let u="";const p=s&&(0,r.isWhiteSpace)(t.charCodeAt(0));return(h&&!p||o)&&(u+="\n"),u+=n,(h||c)&&(u+="\n"),'"""'+u+'"""'};var r=n(55640);function i(t){let e=0;for(;e<t.length&&(0,r.isWhiteSpace)(t.charCodeAt(e));)++e;return e}},55640(t,e){"use strict";function n(t){return t>=48&&t<=57}function r(t){return t>=97&&t<=122||t>=65&&t<=90}Object.defineProperty(e,"__esModule",{value:!0}),e.isDigit=n,e.isLetter=r,e.isNameContinue=function(t){return r(t)||n(t)||95===t},e.isNameStart=function(t){return r(t)||95===t},e.isWhiteSpace=function(t){return 9===t||32===t}},72298(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.Kind=void 0,e.Kind=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.DIRECTIVE_EXTENSION="DirectiveExtension",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",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(n||(e.Kind=n={}))},43819(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.printString=function(t){return`"${t.replace(n,r)}"`};const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r(t){return i[t.charCodeAt(0)]}const i=["\\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"]},2693(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.print=function(t){return(0,s.visit)(t,o)};var r=n(28441),i=n(43819),s=n(57459);const o={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>a(t.definitions,"\n\n")},OperationDefinition:{leave(t){const e=h(t.variableDefinitions)?A("(\n",a(t.variableDefinitions,"\n"),"\n)"):A("(",a(t.variableDefinitions,", "),")"),n=A("",t.description,"\n")+a([t.operation,a([t.name,e]),a(t.directives," ")]," ");return("query"===n?"":n+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:n,directives:r,description:i})=>A("",i,"\n")+t+": "+e+A(" = ",n)+A(" ",a(r," "))},SelectionSet:{leave:({selections:t})=>l(t)},Field:{leave({alias:t,name:e,arguments:n,directives:r,selectionSet:i}){const s=A("",t,": ")+e;let o=s+A("(",a(n,", "),")");return o.length>80&&(o=s+A("(\n",c(a(n,"\n")),"\n)")),a([o,a(r," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+A(" ",a(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:n})=>a(["...",A("on ",t),a(e," "),n]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:n,directives:r,selectionSet:i,description:s})=>A("",s,"\n")+`fragment ${t}${A("(",a(n,", "),")")} `+`on ${e} ${A("",a(r," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?(0,r.printBlockString)(t):(0,i.printString)(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+a(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+a(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+A("(",a(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:n})=>A("",t,"\n")+a(["schema",a(e," "),l(n)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:n})=>A("",t,"\n")+a(["scalar",e,a(n," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:r,fields:i})=>A("",t,"\n")+a(["type",e,A("implements ",a(n," & ")),a(r," "),l(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:n,type:r,directives:i})=>A("",t,"\n")+e+(h(n)?A("(\n",c(a(n,"\n")),"\n)"):A("(",a(n,", "),")"))+": "+r+A(" ",a(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:n,defaultValue:r,directives:i})=>A("",t,"\n")+a([e+": "+n,A("= ",r),a(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:r,fields:i})=>A("",t,"\n")+a(["interface",e,A("implements ",a(n," & ")),a(r," "),l(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:n,types:r})=>A("",t,"\n")+a(["union",e,a(n," "),A("= ",a(r," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:n,values:r})=>A("",t,"\n")+a(["enum",e,a(n," "),l(r)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:n})=>A("",t,"\n")+a([e,a(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:n,fields:r})=>A("",t,"\n")+a(["input",e,a(n," "),l(r)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:n,directives:r,repeatable:i,locations:s})=>A("",t,"\n")+"directive @"+e+(h(n)?A("(\n",c(a(n,"\n")),"\n)"):A("(",a(n,", "),")"))+A(" ",a(r," "))+(i?" repeatable":"")+" on "+a(s," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>a(["extend schema",a(t," "),l(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>a(["extend scalar",t,a(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:r})=>a(["extend type",t,A("implements ",a(e," & ")),a(n," "),l(r)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:r})=>a(["extend interface",t,A("implements ",a(e," & ")),a(n," "),l(r)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:n})=>a(["extend union",t,a(e," "),A("= ",a(n," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:n})=>a(["extend enum",t,a(e," "),l(n)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:n})=>a(["extend input",t,a(e," "),l(n)]," ")},DirectiveExtension:{leave:({name:t,directives:e})=>a(["extend directive @"+t,a(e," ")]," ")},TypeCoordinate:{leave:({name:t})=>t},MemberCoordinate:{leave:({name:t,memberName:e})=>a([t,A(".",e)])},ArgumentCoordinate:{leave:({name:t,fieldName:e,argumentName:n})=>a([t,A(".",e),A("(",n,":)")])},DirectiveCoordinate:{leave:({name:t})=>a(["@",t])},DirectiveArgumentCoordinate:{leave:({name:t,argumentName:e})=>a(["@",t,A("(",e,":)")])}};function a(t,e=""){var n;return null!==(n=null==t?void 0:t.filter(t=>t).join(e))&&void 0!==n?n:""}function l(t){return A("{\n",c(a(t,"\n")),"\n}")}function A(t,e,n=""){return null!=e&&""!==e?t+e+n:""}function c(t){return A("  ",t.replace(/\n/g,"\n  "))}function h(t){var e;return null!==(e=null==t?void 0:t.some(t=>t.includes("\n")))&&void 0!==e&&e}},57459(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BREAK=void 0,e.getEnterLeaveForKind=l,e.getVisitFn=function(t,e,n){const{enter:r,leave:i}=l(t,e);return n?i:r},e.visit=function(t,e,n=s.QueryDocumentKeys){const A=new Map;for(const t of Object.values(o.Kind))A.set(t,l(e,t));let c,h,u,p=Array.isArray(t),d=[t],f=-1,g=[],m=t;const y=[],v=[];do{f++;const t=f===d.length,o=t&&0!==g.length;if(t){if(h=0===v.length?void 0:y[y.length-1],m=u,u=v.pop(),o)if(p){m=m.slice();let t=0;for(const[e,n]of g){const r=e-t;null===n?(m.splice(r,1),t++):m[r]=n}}else{m={...m};for(const[t,e]of g)m[t]=e}f=c.index,d=c.keys,g=c.edits,p=c.inArray,c=c.prev}else if(u){if(h=p?f:d[f],m=u[h],null==m)continue;y.push(h)}let l;if(!Array.isArray(m)){var O,b;(0,s.isNode)(m)||(0,r.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(m)}.`);const n=t?null===(O=A.get(m.kind))||void 0===O?void 0:O.leave:null===(b=A.get(m.kind))||void 0===b?void 0:b.enter;if(l=null==n?void 0:n.call(e,m,h,u,y,v),l===a)break;if(!1===l){if(!t){y.pop();continue}}else if(void 0!==l&&(g.push([h,l]),!t)){if(!(0,s.isNode)(l)){y.pop();continue}m=l}}var x;void 0===l&&o&&g.push([h,m]),t?y.pop():(c={inArray:p,index:f,keys:d,edits:g,prev:c},p=Array.isArray(m),d=p?m:null!==(x=n[m.kind])&&void 0!==x?x:[],f=-1,g=[],u&&v.push(u),u=m)}while(void 0!==c);return 0!==g.length?g[g.length-1][1]:t},e.visitInParallel=function(t){const e=new Array(t.length).fill(null),n=Object.create(null);for(const r of Object.values(o.Kind)){let i=!1;const s=new Array(t.length).fill(void 0),o=new Array(t.length).fill(void 0);for(let e=0;e<t.length;++e){const{enter:n,leave:a}=l(t[e],r);i||(i=null!=n||null!=a),s[e]=n,o[e]=a}if(!i)continue;const A={enter(...n){const r=n[0];for(let o=0;o<t.length;o++)if(null===e[o]){var i;const l=null===(i=s[o])||void 0===i?void 0:i.apply(t[o],n);if(!1===l)e[o]=r;else if(l===a)e[o]=a;else if(void 0!==l)return l}},leave(...n){const r=n[0];for(let s=0;s<t.length;s++)if(null===e[s]){var i;const r=null===(i=o[s])||void 0===i?void 0:i.apply(t[s],n);if(r===a)e[s]=a;else if(void 0!==r&&!1!==r)return r}else e[s]===r&&(e[s]=null)}};n[r]=A}return n};var r=n(42128),i=n(10085),s=n(48541),o=n(72298);const a=Object.freeze({});function l(t,e){const n=t[e];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}e.BREAK=a},491(t,e,n){"use strict";var r=n(39886),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},21514(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(9712);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("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"),n=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(n))return!1;for(var r 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 s=Object.getOwnPropertyDescriptor(t,e);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},77185(t,e,n){"use strict";var r=n(9712);t.exports=function(){return r()&&!!Symbol.toStringTag}},57824(t,e,n){"use strict";var r=n(56608).Buffer,i=n(66096).Transform;function s(t){i.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(91193)(s,i),s.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(t){r=t}n(r)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)};var o="undefined"!=typeof Uint8Array,a="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&ArrayBuffer.isView&&(r.prototype instanceof Uint8Array||r.TYPED_ARRAY_SUPPORT);s.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");t=function(t,e){if(t instanceof r)return t;if("string"==typeof t)return r.from(t,e);if(a&&ArrayBuffer.isView(t)){if(0===t.byteLength)return r.alloc(0);var n=r.from(t.buffer,t.byteOffset,t.byteLength);if(n.byteLength===t.byteLength)return n}if(o&&t instanceof Uint8Array)return r.from(t);if(r.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return r.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 n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)n[s++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset++]=t[i++];for(var l=0,A=8*t.length;A>0;++l)this._length[l]+=A,(A=this._length[l]/4294967296|0)>0&&(this._length[l]-=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 n=0;n<4;++n)this._length[n]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},41002(t,e,n){"use strict";var r=n(56608).Buffer,i=n(18836),s=n(9464).Transform;function o(t){s.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(91193)(o,s),o.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(t){r=t}n(r)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},o.prototype.update=function(t,e){if(this._finalized)throw new Error("Digest already called");for(var n=i(t,e),r=this._block,s=0;this._blockOffset+n.length-s>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o]=n[s],o+=1,s+=1;this._update(),this._blockOffset=0}for(;s<n.length;)r[this._blockOffset]=n[s],this._blockOffset+=1,s+=1;for(var a=0,l=8*n.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 n=0;n<4;++n)this._length[n]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},18836(t,e,n){"use strict";var r=n(56608).Buffer,i=n(26919),s="undefined"!=typeof Uint8Array,o=s&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;t.exports=function(t,e){if("string"==typeof t||r.isBuffer(t)||s&&t instanceof Uint8Array||o&&o(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,n){var r=e;r.utils=n(27905),r.common=n(14427),r.sha=n(61822),r.ripemd=n(47317),r.hmac=n(67309),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},14427(t,e,n){"use strict";var r=n(27905),i=n(35578);function s(){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=s,s.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},s.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},s.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,s=8;s<this.padLength;s++)r[i++]=0;return r}},67309(t,e,n){"use strict";var r=n(27905),i=n(35578);function s(t,e,n){if(!(this instanceof s))return new s(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(e,n))}t.exports=s,s.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)},s.prototype.update=function(t,e){return this.inner.update(t,e),this},s.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},47317(t,e,n){"use strict";var r=n(27905),i=n(14427),s=r.rotl32,o=r.sum32,a=r.sum32_3,l=r.sum32_4,A=i.BlockHash;function c(){if(!(this instanceof c))return new c;A.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}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}r.inherits(c,A),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],i=this.h[2],A=this.h[3],c=this.h[4],y=n,v=r,O=i,b=A,x=c,w=0;w<80;w++){var _=o(s(l(n,h(w,r,i,A),t[d[w]+e],u(w)),g[w]),c);n=c,c=A,A=s(i,10),i=r,r=_,_=o(s(l(y,h(79-w,v,O,b),t[f[w]+e],p(w)),m[w]),x),y=x,x=b,b=s(O,10),O=v,v=_}_=a(this.h[1],i,b),this.h[1]=a(this.h[2],A,x),this.h[2]=a(this.h[3],c,y),this.h[3]=a(this.h[4],n,v),this.h[4]=a(this.h[0],r,O),this.h[0]=_},c.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var d=[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],f=[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,n){"use strict";e.sha1=n(12750),e.sha224=n(37485),e.sha256=n(77292),e.sha384=n(40696),e.sha512=n(58889)},12750(t,e,n){"use strict";var r=n(27905),i=n(14427),s=n(45660),o=r.rotl32,a=r.sum32,l=r.sum32_5,A=s.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)}r.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 n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=o(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],s=this.h[1],c=this.h[2],u=this.h[3],p=this.h[4];for(r=0;r<n.length;r++){var d=~~(r/20),f=l(o(i,5),A(d,s,c,u),p,n[r],h[d]);p=u,u=c,c=o(s,30),s=i,i=f}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],s),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?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},37485(t,e,n){"use strict";var r=n(27905),i=n(77292);function s(){if(!(this instanceof s))return new s;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(s,i),t.exports=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},77292(t,e,n){"use strict";var r=n(27905),i=n(14427),s=n(45660),o=n(35578),a=r.sum32,l=r.sum32_4,A=r.sum32_5,c=s.ch32,h=s.maj32,u=s.s0_256,p=s.s1_256,d=s.g0_256,f=s.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)}r.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 n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=l(f(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var i=this.h[0],s=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],v=this.h[5],O=this.h[6],b=this.h[7];for(o(this.k.length===n.length),r=0;r<n.length;r++){var x=A(b,p(y),c(y,v,O),this.k[r],n[r]),w=a(u(i),h(i,s,g));b=O,O=v,v=y,y=a(m,x),m=g,g=s,s=i,i=a(x,w)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],s),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],O),this.h[7]=a(this.h[7],b)},y.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},40696(t,e,n){"use strict";var r=n(27905),i=n(58889);function s(){if(!(this instanceof s))return new s;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(s,i),t.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},58889(t,e,n){"use strict";var r=n(27905),i=n(14427),s=n(35578),o=r.rotr64_hi,a=r.rotr64_lo,l=r.shr64_hi,A=r.shr64_lo,c=r.sum64,h=r.sum64_hi,u=r.sum64_lo,p=r.sum64_4_hi,d=r.sum64_4_lo,f=r.sum64_5_hi,g=r.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 O(t,e,n,r,i){var s=t&n^~t&i;return s<0&&(s+=4294967296),s}function b(t,e,n,r,i,s){var o=e&r^~e&s;return o<0&&(o+=4294967296),o}function x(t,e,n,r,i){var s=t&n^t&i^n&i;return s<0&&(s+=4294967296),s}function w(t,e,n,r,i,s){var o=e&r^e&s^r&s;return o<0&&(o+=4294967296),o}function _(t,e){var n=o(t,e,28)^o(e,t,2)^o(e,t,7);return n<0&&(n+=4294967296),n}function S(t,e){var n=a(t,e,28)^a(e,t,2)^a(e,t,7);return n<0&&(n+=4294967296),n}function C(t,e){var n=o(t,e,14)^o(t,e,18)^o(e,t,9);return n<0&&(n+=4294967296),n}function E(t,e){var n=a(t,e,14)^a(t,e,18)^a(e,t,9);return n<0&&(n+=4294967296),n}function B(t,e){var n=o(t,e,1)^o(t,e,8)^l(t,e,7);return n<0&&(n+=4294967296),n}function T(t,e){var n=a(t,e,1)^a(t,e,8)^A(t,e,7);return n<0&&(n+=4294967296),n}function P(t,e){var n=o(t,e,19)^o(e,t,29)^l(t,e,6);return n<0&&(n+=4294967296),n}function k(t,e){var n=a(t,e,19)^a(e,t,29)^A(t,e,6);return n<0&&(n+=4294967296),n}r.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 n=this.W,r=0;r<32;r++)n[r]=t[e+r];for(;r<n.length;r+=2){var i=P(n[r-4],n[r-3]),s=k(n[r-4],n[r-3]),o=n[r-14],a=n[r-13],l=B(n[r-30],n[r-29]),A=T(n[r-30],n[r-29]),c=n[r-32],h=n[r-31];n[r]=p(i,s,o,a,l,A,c,h),n[r+1]=d(i,s,o,a,l,A,c,h)}},v.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],a=this.h[3],l=this.h[4],A=this.h[5],p=this.h[6],d=this.h[7],m=this.h[8],y=this.h[9],v=this.h[10],B=this.h[11],T=this.h[12],P=this.h[13],k=this.h[14],I=this.h[15];s(this.k.length===n.length);for(var N=0;N<n.length;N+=2){var Q=k,F=I,L=C(m,y),M=E(m,y),D=O(m,0,v,0,T),R=b(0,y,0,B,0,P),U=this.k[N],$=this.k[N+1],j=n[N],H=n[N+1],V=f(Q,F,L,M,D,R,U,$,j,H),X=g(Q,F,L,M,D,R,U,$,j,H);Q=_(r,i),F=S(r,i),L=x(r,0,o,0,l),M=w(0,i,0,a,0,A);var z=h(Q,F,L,M),G=u(Q,F,L,M);k=T,I=P,T=v,P=B,v=m,B=y,m=h(p,d,V,X),y=u(d,d,V,X),p=l,d=A,l=o,A=a,o=r,a=i,r=h(V,X,z,G),i=u(V,X,z,G)}c(this.h,0,r,i),c(this.h,2,o,a),c(this.h,4,l,A),c(this.h,6,p,d),c(this.h,8,m,y),c(this.h,10,v,B),c(this.h,12,T,P),c(this.h,14,k,I)},v.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},45660(t,e,n){"use strict";var r=n(27905).rotr32;function i(t,e,n){return t&e^~t&n}function s(t,e,n){return t&e^t&n^e&n}function o(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?i(e,n,r):1===t||3===t?o(e,n,r):2===t?s(e,n,r):void 0},e.ch32=i,e.maj32=s,e.p32=o,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},27905(t,e,n){"use strict";var r=n(35578),i=n(91193);function s(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function o(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 l(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 n=[];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)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):s(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=a(t[n].toString(16));return e},e.htonl=o,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=o(i)),n+=l(i.toString(16))}return n},e.zero2=a,e.zero8=l,e.join32=function(t,e,n,i){var s=n-e;r(s%4==0);for(var o=new Array(s/4),a=0,l=e;a<o.length;a++,l+=4){var A;A="big"===i?t[l]<<24|t[l+1]<<16|t[l+2]<<8|t[l+3]:t[l+3]<<24|t[l+2]<<16|t[l+1]<<8|t[l],o[a]=A>>>0}return o},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var s=t[r];"big"===e?(n[i]=s>>>24,n[i+1]=s>>>16&255,n[i+2]=s>>>8&255,n[i+3]=255&s):(n[i+3]=s>>>24,n[i+2]=s>>>16&255,n[i+1]=s>>>8&255,n[i]=255&s)}return n},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,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},e.sum64=function(t,e,n,r){var i=t[e],s=r+t[e+1]>>>0,o=(s<r?1:0)+n+i;t[e]=o>>>0,t[e+1]=s},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,i,s,o,a){var l=0,A=e;return l+=(A=A+r>>>0)<e?1:0,l+=(A=A+s>>>0)<s?1:0,t+n+i+o+(l+=(A=A+a>>>0)<a?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,i,s,o,a){return e+r+s+a>>>0},e.sum64_5_hi=function(t,e,n,r,i,s,o,a,l,A){var c=0,h=e;return c+=(h=h+r>>>0)<e?1:0,c+=(h=h+s>>>0)<s?1:0,c+=(h=h+a>>>0)<a?1:0,t+n+i+o+l+(c+=(h=h+A>>>0)<A?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,i,s,o,a,l,A){return e+r+s+a+A>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},75630(t,e,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,s=n(79524);t.exports=s.call(r,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 n=t.substring(1);return 8===n.length&&(n=n.substring(0,n.length-2)),3===n.length&&(n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]),n+=Math.round(255*e).toString(16).padStart(2,"0"),`#${n}`.toUpperCase()}},34768(t,e,n){var r;"undefined"!=typeof self&&self,t.exports=(r=n(22155),function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}function i(t){return function(t){if(Array.isArray(t))return s(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 s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"HighchartsReact",function(){return c});var a=n(1),l=n.n(a),A="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,c=Object(a.memo)(Object(a.forwardRef)(function(t,e){var n=Object(a.useRef)(),s=Object(a.useRef)(),c=Object(a.useRef)(t.constructorType),h=Object(a.useRef)(t.highcharts);return A(function(){function e(){var e=t.highcharts||"object"===("undefined"==typeof window?"undefined":o(window))&&window.Highcharts,r=t.constructorType||"chart";e?e[r]?t.options?s.current=e[r](n.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(s.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&&s.current){var r;(r=s.current).update.apply(r,[t.options].concat(i(t.updateArgs||[!0,!0])))}else e()}else e()},[t.options,t.allowChartUpdate,t.updateArgs,t.containerProps,t.highcharts,t.constructorType]),A(function(){return function(){s.current&&(s.current.destroy(),s.current=null)}},[]),Object(a.useImperativeHandle)(e,function(){return{get chart(){return s.current},container:n}},[]),l.a.createElement("div",r({},t.containerProps,{ref:n}))}));e.default=c},function(t,e){t.exports=r}]))},29132(t,e,n){var r,i,s;s=function(t){function e(t,e,n,r){t.hasOwnProperty(e)||(t[e]=r.apply(null,n),"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,n,r,i){function s(t,e,n,r,i){var s=!0,o=n[0],A=n[1],c=Math.sqrt(Math.pow(t-o,2)+Math.pow(e-A,2));return l(r)&&l(i)&&(t=Math.atan2(a(e-A,8),a(t-o,8)),i!==r&&(s=r>i?t>=r&&t<=Math.PI||t<=i&&t>=-Math.PI:t>=r&&t<=a(i,8))),c<=Math.ceil(n[2]/2)&&s}var o=i.addEvent,a=i.correctFloat,l=i.defined,A=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,n=this.chart.renderer;if(this.group||(this.group=n.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),n=0;n<t;n++)e[n]&&this.axis?this.renderBackground(c(this.defaultBackgroundOptions,e[n]),n):this.background[n]&&(this.background[n]=this.background[n].destroy(),this.background.splice(n,1))},t.prototype.renderBackground=function(t,e){var n="animate",r={class:"highcharts-pane "+(t.className||"")};this.chart.styledMode||A(r,{fill:t.backgroundColor,stroke:t.borderColor,"stroke-width":t.borderWidth}),this.background[e]||(this.background[e]=this.chart.renderer.path().add(this.group),n="attr"),this.background[e][n]({d:this.axis.getPlotBandPath(t.from,t.to,t)}).attr(r)},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,n=this;return t&&n.pane.forEach(function(r){s(t.chartX-n.plotLeft,t.chartY-n.plotTop,r.center)&&(e=r)}),e},o(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 s(t.x,t.y,e.center,e.axis&&e.axis.normalizedStartAngleRad,e.axis&&e.axis.normalizedEndAngleRad)})}}),o(r,"beforeGetHoverData",function(t){var e=this.chart;e.polar?(e.hoverPane=e.getHoverPane(t),t.filter=function(n){return n.visible&&!(!t.shared&&n.directTouch)&&h(n.options.enableMouseTracking,!0)&&(!e.hoverPane||n.xAxis.pane===e.hoverPane)}):e.hoverPane=void 0}),o(r,"afterGetHoverData",function(t){var e=this.chart;t.hoverPoint&&t.hoverPoint.plotX&&t.hoverPoint.plotY&&e.hoverPane&&!s(t.hoverPoint.plotX,t.hoverPoint.plotY,e.hoverPane.center)&&(t.hoverPoint=void 0)}),n.Pane=i,n.Pane}),e(t,"Series/AreaRange/AreaRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=(t=t.seriesTypes.area.prototype).pointClass.prototype,i=e.defined,s=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 n(e,t),e.prototype.setState=function(){var t=this.state,e=this.series,n=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,n&&s(this.plotHighX)&&(this.plotX=this.plotHighX),r.setState.apply(this,arguments),this.state=t,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],n&&s(this.plotLowX)&&(this.plotX=this.plotLowX),e.stateMarkerGraphic&&(e.upperStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.lowerStateMarkerGraphic,e.lowerStateMarkerGraphic=void 0),r.setState.apply(this,arguments)},e.prototype.haloPath=function(){var t=this.series.chart.polar,e=[];return this.plotY=this.plotLow,t&&s(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(e=r.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,t&&s(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(e=e.concat(r.haloPath.apply(this,arguments))),e},e.prototype.isValid=function(){return s(this.low)&&s(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,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e=e.noop;var s=n.seriesTypes,o=s.area,a=s.area.prototype,l=s.column.prototype;s=r.addEvent;var A=r.defined,c=r.extend,h=r.isArray,u=r.isNumber,p=r.pick,d=r.merge,f={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 r=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,n=this.xAxis.postTranslate(t.rectPlotX||0,this.yAxis.len-(t.plotHigh||0));t.plotHighX=n.x-e.plotLeft,t.plotHigh=n.y-e.plotTop,t.plotLowX=t.plotX},e.prototype.getGraphPath=function(t){var e,n=[],r=[],i=a.getGraphPath,s=this.options,o=this.chart.polar,l=o&&!1!==s.connectEnds,A=s.connectNulls,c=s.step;for(e=(t=t||this.points).length;e--;){var h=t[e],u=o?{plotX:h.rectPlotX,plotY:h.yBottom,doCurve:!1}:{plotX:h.plotX,plotY:h.plotY,doCurve:!1};h.isNull||l||A||t[e+1]&&!t[e+1].isNull||r.push(u);var d={polarPlotY:h.polarPlotY,rectPlotX:h.rectPlotX,yBottom:h.yBottom,plotX:p(h.plotHighX,h.plotX),plotY:h.plotHigh,isNull:h.isNull};r.push(d),n.push(d),h.isNull||l||A||t[e-1]&&!t[e-1].isNull||r.push(u)}return t=i.call(this,t),c&&(!0===c&&(c="left"),s.step={left:"right",center:"center",right:"left"}[c]),n=i.call(this,n),r=i.call(this,r),s.step=c,s=[].concat(t,n),!this.chart.polar&&r[0]&&"M"===r[0][0]&&(r[0]=["L",r[0][1],r[0][2]]),this.graphPath=s,this.areaPath=t.concat(r),s.isArea=!0,s.xMap=t.xMap,this.areaPath.xMap=t.xMap,s},e.prototype.drawDataLabels=function(){var t,e,n=this.points,r=n.length,i=[],s=this.options.dataLabels,o=this.chart.inverted;if(s){if(h(s))var l=s[0]||{enabled:!1},A=s[1]||{enabled:!1};else(l=c({},s)).x=s.xHigh,l.y=s.yHigh,(A=c({},s)).x=s.xLow,A.y=s.yLow;if(l.enabled||this._hasPointLabels){for(t=r;t--;)if(e=n[t]){var u=e.plotHigh;u=void 0===u?0:u;var p=e.plotLow;p=void 0===p?0:p,p=l.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,o?l.align||(l.align=p?"right":"left"):l.verticalAlign||(l.verticalAlign=p?"top":"bottom")}for(this.options.dataLabels=l,a.drawDataLabels&&a.drawDataLabels.apply(this,arguments),t=r;t--;)(e=n[t])&&(e.dataLabelUpper=e.dataLabel,e.dataLabel=i[t],delete e.dataLabels,e.y=e.low,e.plotY=e._plotY)}if(A.enabled||this._hasPointLabels){for(t=r;t--;)(e=n[t])&&(u=void 0===(i=e.plotHigh)?0:i,p=void 0===(i=e.plotLow)?0:i,p=A.inside?u<p:u>p,e.below=!p,o?A.align||(A.align=p?"left":"right"):A.verticalAlign||(A.verticalAlign=p?"bottom":"top"));this.options.dataLabels=A,a.drawDataLabels&&a.drawDataLabels.apply(this,arguments)}if(l.enabled)for(t=r;t--;)(e=n[t])&&(e.dataLabels=[e.dataLabelUpper,e.dataLabel].filter(function(t){return!!t}));this.options.dataLabels=s}},e.prototype.alignDataLabel=function(){l.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 n=this.points[t];n.graphics=n.graphics||[],n.origProps={plotY:n.plotY,plotX:n.plotX,isInside:n.isInside,negative:n.negative,zone:n.zone,y:n.y},(n.graphic||n.graphics[0])&&(n.graphics[0]=n.graphic),n.graphic=n.graphics[1],n.plotY=n.plotHigh,A(n.plotHighX)&&(n.plotX=n.plotHighX),n.y=p(n.high,n.origProps.y),n.negative=n.y<(this.options.threshold||0),this.zones.length&&(n.zone=n.getZone()),this.chart.polar||(n.isInside=n.isTopInside=void 0!==n.plotY&&0<=n.plotY&&n.plotY<=this.yAxis.len&&0<=n.plotX&&n.plotX<=this.xAxis.len),t++}for(a.drawPoints.apply(this,arguments),t=0;t<e;)(n=this.points[t]).graphics=n.graphics||[],(n.graphic||n.graphics[1])&&(n.graphics[1]=n.graphic),n.graphic=n.graphics[0],n.origProps&&(c(n,n.origProps),delete n.origProps),t++},e.defaultOptions=d(o.defaultOptions,f),e}(o),s(r,"afterTranslate",function(){var t=this;"low,high"===this.pointArrayMap.join(",")&&this.points.forEach(function(e){var n=e.high,r=e.plotY;e.isNull?e.plotY=void 0:(e.plotLow=r,e.plotHigh=u(n)?t.yAxis.translate(t.dataModify?t.dataModify.modifyValue(n):n,!1,!0,void 0,!0):void 0,t.dataModify&&(e.yBottom=e.plotHigh))})},{order:0}),s(r,"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 n=e.pos(!1,e.plotLow),r=e.pos(!1,e.plotHigh);n&&r&&(n[0]=(n[0]+r[0])/2,n[1]=(n[1]+r[1])/2),e.tooltipPos=n}})},{order:3}),c(r.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:t,pointValKey:"low",setStackedPoints:e}),n.registerSeriesType("arearange",r),r}),e(t,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[t["Series/AreaRange/AreaRangeSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=e.seriesTypes.spline.prototype,s=n.merge;n=n.extend;var o=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.data=void 0,t.points=void 0,t}return r(n,e),n.defaultOptions=s(t.defaultOptions),n}(t);return n(o.prototype,{getPointSpline:i.getPointSpline}),e.registerSeriesType("areasplinerange",o),o}),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,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e=e.noop;var s=r.extend,o=r.merge,a=r.pick;return r=function(e){function n(){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(n,e),n.prototype.pointAttribs=function(){return{}},n.prototype.translate=function(){var t=this.yAxis,n=this.pointArrayMap;e.prototype.translate.apply(this),this.points.forEach(function(e){n.forEach(function(n){null!==e[n]&&(e[n+"Plot"]=t.translate(e[n],0,1,0,1))}),e.plotHigh=e.highPlot})},n.prototype.drawPoints=function(){var t,e,n,r,i,s,o,l,A,c,h,u=this,p=u.options,d=u.chart,f=d.renderer,g=0,m=!1!==u.doQuartiles,y=u.options.whiskerLength;u.points.forEach(function(v){var O=v.graphic,b=O?"animate":"attr",x=v.shapeArgs,w={},_={},S={},C={},E=v.color||u.color;void 0!==v.plotY&&(o=Math.round(x.width),l=Math.floor(x.x),A=l+o,c=Math.round(o/2),t=Math.floor(m?v.q1Plot:v.lowPlot),e=Math.floor(m?v.q3Plot:v.lowPlot),n=Math.floor(v.highPlot),r=Math.floor(v.lowPlot),O||(v.graphic=O=f.g("point").add(u.group),v.stem=f.path().addClass("highcharts-boxplot-stem").add(O),y&&(v.whiskers=f.path().addClass("highcharts-boxplot-whisker").add(O)),m&&(v.box=f.path(void 0).addClass("highcharts-boxplot-box").add(O)),v.medianShape=f.path(void 0).addClass("highcharts-boxplot-median").add(O)),d.styledMode||(_.stroke=v.stemColor||p.stemColor||E,_["stroke-width"]=a(v.stemWidth,p.stemWidth,p.lineWidth),_.dashstyle=v.stemDashStyle||p.stemDashStyle||p.dashStyle,v.stem.attr(_),y&&(S.stroke=v.whiskerColor||p.whiskerColor||E,S["stroke-width"]=a(v.whiskerWidth,p.whiskerWidth,p.lineWidth),S.dashstyle=v.whiskerDashStyle||p.whiskerDashStyle||p.dashStyle,v.whiskers.attr(S)),m&&(w.fill=v.fillColor||p.fillColor||E,w.stroke=p.lineColor||E,w["stroke-width"]=p.lineWidth||0,w.dashstyle=v.boxDashStyle||p.boxDashStyle||p.dashStyle,v.box.attr(w)),C.stroke=v.medianColor||p.medianColor||E,C["stroke-width"]=a(v.medianWidth,p.medianWidth,p.lineWidth),C.dashstyle=v.medianDashStyle||p.medianDashStyle||p.dashStyle,v.medianShape.attr(C)),s=v.stem.strokeWidth()%2/2,O=[["M",g=l+c+s,e],["L",g,n],["M",g,t],["L",g,r]],v.stem[b]({d:O}),m&&(s=v.box.strokeWidth()%2/2,t=Math.floor(t)+s,e=Math.floor(e)+s,O=[["M",l+=s,e],["L",l,t],["L",A+=s,t],["L",A,e],["L",l,e],["Z"]],v.box[b]({d:O})),y&&(s=v.whiskers.strokeWidth()%2/2,n+=s,r+=s,h=/%$/.test(y)?c*parseFloat(y)/100:y/2,O=[["M",g-h,n],["L",g+h,n],["M",g-h,r],["L",g+h,r]],v.whiskers[b]({d:O})),i=Math.round(v.medianPlot),s=v.medianShape.strokeWidth()%2/2,O=[["M",l,i+=s],["L",A,i]],v.medianShape[b]({d:O}))})},n.prototype.toYData=function(t){return[t.low,t.q1,t.median,t.q3,t.high]},n.defaultOptions=o(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}),n}(t),s(r.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:e,setStackedPoints:e}),n.registerSeriesType("boxplot",r),r}),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,n,r){var i=t.parse,s=n.noop,o=r.arrayMax,a=r.arrayMin,l=r.isNumber,A=r.merge,c=r.pick,h=r.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=s,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,n=c(t.options.itemDistance,20),r=this.legendItem||{},i=this.options,s=i.ranges,o=i.connectorDistance;this.fontMetrics=e.renderer.fontMetrics(i.labels.style.fontSize),s&&s.length&&l(s[0].value)?(h(s,function(t,e){return e.value-t.value}),this.ranges=s,this.setOptions(),this.render(),t=this.getMaxLabelSize(),e=2*(s=this.ranges[0].radius),o=0<(o=o-s+t.width)?o:0,this.maxLabel=t,this.movementX="left"===i.labels.align?o:0,r.labelWidth=e+o+n,r.labelHeight=e+this.fontMetrics.h/2):t.options.bubbleLegend.autoRanges=!0},t.prototype.setOptions=function(){var t=this.ranges,e=this.options,n=this.chart.series[e.seriesIndex],r=this.legend.baseline,s={zIndex:e.zIndex,"stroke-width":e.borderWidth},o={zIndex:e.zIndex,"stroke-width":e.connectorWidth},a={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},l=n.options.marker.fillOpacity,h=this.chart.styledMode;t.forEach(function(u,p){h||(s.stroke=c(u.borderColor,e.borderColor,n.color),s.fill=c(u.color,e.color,1!==l?i(n.color).setOpacity(l).get("rgba"):n.color),o.stroke=c(u.connectorColor,e.connectorColor,n.color)),t[p].radius=this.getRangeRadius(u.value),t[p]=A(t[p],{center:t[0].radius-t[p].radius+r}),h||A(!0,t[p],{bubbleAttribs:A(s),connectorAttribs:A(o),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,n=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 r=this.ranges;e<r.length;e++){var i=r[e];i.value>=n&&this.renderRange(i)}t.symbol.add(t.label),t.label.add(t.group),this.hideOverlappingLabels()},t.prototype.renderRange=function(t){var e=this.options,n=e.labels,r=this.chart,i=r.series[e.seriesIndex],s=r.renderer,o=this.symbols;r=o.labels;var a=t.center,l=Math.abs(t.radius),A=e.connectorDistance||0,c=n.align,h=e.connectorWidth,u=this.ranges[0].radius||0,p=a-l-e.borderWidth/2+h/2,d=this.fontMetrics;d=d.f/2-(d.h-d.f)/2;var f=s.styledMode;A=this.legend.options.rtl||"left"===c?-A:A,"center"===c&&(A=0,e.connectorDistance=0,t.labelAttribs.align="center"),c=p+e.labels.y;var g=u+A+e.labels.x;o.bubbleItems.push(s.circle(u,a+((p%1?1:.5)-(h%2?0:.5)),l).attr(f?{}:t.bubbleAttribs).addClass((f?"highcharts-color-"+i.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e.className||"")).add(this.legendItem.symbol)),o.connectors.push(s.path(s.crispLine([["M",u,p],["L",u+A,p]],e.connectorWidth)).attr(f?{}:t.connectorAttribs).addClass((f?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e.connectorClassName||"")).add(this.legendItem.symbol)),t=s.text(this.formatLabel(t),g,c+d).attr(f?{}:t.labelAttribs).css(f?{}:n.style).addClass("highcharts-bubble-legend-labels "+(e.labels.className||"")).add(this.legendItem.symbol),r.push(t),t.placed=!0,t.alignAttr={x:g,y:c+d}},t.prototype.getMaxLabelSize=function(){var t,e;return this.symbols.labels.forEach(function(n){e=n.getBBox(!0),t=t?e.width>t.width?e:t:e}),t||{}},t.prototype.formatLabel=function(t){var n=this.options,r=n.labels.formatter;n=n.labels.format;var i=this.chart.numberFormatter;return n?e.format(n,t):r?r.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,n){t.newOpacity?t.newOpacity!==t.oldOpacity&&e.connectors[n].show():e.connectors[n].hide()}))},t.prototype.getRanges=function(){var t,e=this.legend.bubbleLegend,n=e.options.ranges,r=Number.MAX_VALUE,i=-Number.MAX_VALUE;e.chart.series.forEach(function(e){e.isBubble&&!e.ignoreSeries&&(t=e.zData.filter(l)).length&&(r=c(e.options.zMin,Math.min(r,Math.max(a(t),!1===e.options.displayNegative?e.options.zThreshold:-Number.MAX_VALUE))),i=c(e.options.zMax,Math.max(i,o(t))))});var s=r===i?[{value:i}]:[{value:r},{value:(r+i)/2},{value:i,autoRanges:!0}];return n.length&&n[0].radius&&s.reverse(),s.forEach(function(t,e){n&&n[e]&&(s[e]=A(n[e],t))}),s},t.prototype.predictBubbleSizes=function(){var t=this.chart,e=this.fontMetrics,n=t.legend.options,r=n.floating,i=(n="horizontal"===n.layout)?t.legend.lastLineHeight:0,s=t.plotSizeX,o=t.plotSizeY,a=t.series[this.options.seriesIndex],l=a.getPxExtremes();t=Math.ceil(l.minPxSize),l=Math.ceil(l.maxPxSize);var A=Math.min(o,s);return a=a.options.maxSize,r||!/%$/.test(a)?e=l:(a=parseFloat(a),e=(A+i-e.h/2)*a/100/(a/100+1),(n&&o-e>=s||!n&&s-e>=o)&&(e=l)),[t,Math.ceil(e)]},t.prototype.updateRanges=function(t,e){var n=this.legend.options.bubbleLegend;n.minSize=t,n.maxSize=e,n.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,n,r){function i(t,e,n){var r,i=this.legend,a=0<=s(this);if(i&&i.options.enabled&&i.bubbleLegend&&i.options.bubbleLegend.autoRanges&&a){var l=i.bubbleLegend.options;a=i.bubbleLegend.predictBubbleSizes(),i.bubbleLegend.updateRanges(a[0],a[1]),l.placed||(i.group.placed=!1,i.allItems.forEach(function(t){(r=t.legendItem||{}).group&&(r.group.translateY=null)})),i.render(),this.getMargins(),this.axes.forEach(function(t){t.visible&&t.render(),l.placed||(t.setScale(),t.updateNames(),u(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),l.placed=!0,this.getMargins(),t.call(this,e,n),i.bubbleLegend.correctSizes(),A(i,o(i))}else t.call(this,e,n),i&&i.options.enabled&&i.bubbleLegend&&(i.render(),A(i,o(i)))}function s(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 o(t){var e,n=[],r=(t=t.allItems).length,i=0;for(e=0;e<r;e++){var s=t[e].legendItem||{},o=(t[e+1]||{}).legendItem||{};if(s.labelHeight&&(t[e].itemHeight=s.labelHeight),t[e]===t[r-1]||s.y!==o.y){for(n.push({height:0}),s=n[n.length-1];i<=e;i++)t[i].itemHeight>s.height&&(s.height=t[i].itemHeight);s.step=e}}return n}function a(t){var n=this.bubbleLegend,r=this.options,i=r.bubbleLegend,o=s(this.chart);n&&n.ranges&&n.ranges.length&&(i.ranges.length&&(i.autoRanges=!!i.ranges[0].autoRanges),this.destroyItem(n)),0<=o&&r.enabled&&i.enabled&&(i.seriesIndex=o,this.bubbleLegend=new e(i,this),this.bubbleLegend.addToLegend(t.allItems))}function l(){var t=this.chart,e=this.visible,n=this.chart.legend;n&&n.bubbleLegend&&(this.visible=!e,this.ignoreSeries=e,t=0<=s(t),n.bubbleLegend.visible!==t&&(n.update({bubbleLegend:{enabled:t}}),n.bubbleLegend.visible=t),this.visible=e)}function A(t,e){var n,r,i,s,o=t.options.rtl,a=0;t.allItems.forEach(function(t,l){(s=t.legendItem||{}).group&&(n=s.group.translateX||0,r=s.y||0,((i=t.movementX)||o&&t.ranges)&&(i=o?n-t.options.maxSize/2:n+i,s.group.attr({translateX:i})),l>e[a].step&&a++,s.group.attr({translateY:Math.round(r+e[a].height/2)}),s.y=r+e[a].height/2)})}var c=n.setOptions,h=r.addEvent,u=r.objectEach,p=r.wrap,d=[];return{compose:function(e,n,r){-1===d.indexOf(e)&&(d.push(e),c({legend:{bubbleLegend:t}}),p(e.prototype,"drawChartBox",i)),-1===d.indexOf(n)&&(d.push(n),h(n,"afterGetAllItems",a)),-1===d.indexOf(r)&&(d.push(r),h(r,"legendItemClick",l))}}}),e(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();return n=n.extend,e=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.series=void 0,t}return r(n,e),n.prototype.haloPath=function(e){return t.prototype.haloPath.call(this,0===e?0:(this.marker&&this.marker.radius||0)+e)},n}(e.seriesTypes.scatter.prototype.pointClass),n(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,n,r,i,s){function o(){var t,e=this,n=this.len,r=this.chart,i=this.isXAxis,s=i?"xData":"yData",o=this.min,a=this.max-o,l=0,A=n,c=n/a;this.series.forEach(function(n){if(n.bubblePadding&&(n.visible||!r.options.chart.ignoreHiddenSeries)){t=e.allowZoomOutside=!0;var h=n[s];if(i&&((n.onPoint||n).getRadii(0,0,n),n.onPoint&&(n.radii=n.onPoint.radii)),0<a)for(var u=h.length;u--;)if(g(h[u])&&e.dataMin<=h[u]&&h[u]<=e.max){var p=n.radii&&n.radii[u]||0;l=Math.min((h[u]-o)*c-p,l),A=Math.max((h[u]-o)*c+p,A)}}}),t&&0<a&&!this.logarithmic&&(A-=n,c*=(n+Math.max(0,l)-Math.min(A,n))/n,[["min","userMin",l],["max","userMax",A]].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,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=n.parse;n=r.noop;var A=i.series,c=i.seriesTypes;r=c.column.prototype;var h=c.scatter;c=s.addEvent;var u=s.arrayMax,p=s.arrayMin,d=s.clamp,f=s.extend,g=s.isNumber,m=s.merge,y=s.pick,v=[];return s=function(e){function n(){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(n,e),n.compose=function(e,n,r,i){t.compose(n,r,i),-1===v.indexOf(e)&&(v.push(e),e.prototype.beforePadding=o)},n.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)},n.prototype.getRadii=function(){var t=this,e=this.zData,n=this.yData,r=[],i=this.chart.bubbleZExtremes,s=this.getPxExtremes(),o=s.minPxSize,a=s.maxPxSize;if(!i){var l,A=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())&&(A=Math.min(A||e.zMin,e.zMin),c=Math.max(c||e.zMax,e.zMax),l=!0)}),l?(i={zMin:A,zMax:c},this.chart.bubbleZExtremes=i):i={zMin:0,zMax:0}}var h=0;for(s=e.length;h<s;h++){var u=e[h];r.push(this.getRadius(i.zMin,i.zMax,o,a,u,n&&n[h]))}this.radii=r},n.prototype.getRadius=function(t,e,n,r,i,s){var o=this.options,a="width"!==o.sizeBy,l=o.zThreshold,A=e-t,c=.5;if(null===s||null===i)return null;if(g(i)){if(o.sizeByAbsoluteValue&&(i=Math.abs(i-l),A=Math.max(e-l,Math.abs(t-l)),t=0),i<t)return n/2-1;0<A&&(c=(i-t)/A)}return a&&0<=c&&(c=Math.sqrt(c)),Math.ceil(n+c*(r-n))/2},n.prototype.hasData=function(){return!!this.processedXData.length},n.prototype.pointAttribs=function(t,e){var n=this.options.marker.fillOpacity;return t=A.prototype.pointAttribs.call(this,t,e),1!==n&&(t.fill=l(t.fill).setOpacity(n).get("rgba")),t},n.prototype.translate=function(){e.prototype.translate.call(this),this.getRadii(),this.translateBubble()},n.prototype.translateBubble=function(){for(var t=this.data,e=this.radii,n=this.getPxExtremes().minPxSize,r=t.length;r--;){var i=t[r],s=e?e[r]:0;g(s)&&s>=n/2?(i.marker=f(i.marker,{radius:s,width:2*s,height:2*s}),i.dlBox={x:i.plotX-s,y:i.plotY-s,width:2*s,height:2*s}):(i.shapeArgs=i.plotY=i.dlBox=void 0,i.isInside=!1)}},n.prototype.getPxExtremes=function(){var t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(e){if("string"==typeof e){var n=/%$/.test(e);e=parseInt(e,10)}return n?t*e/100:e},n=e(y(this.options.minSize,8));return{minPxSize:n,maxPxSize:e=Math.max(e(y(this.options.maxSize,"20%")),n)}},n.prototype.getZExtremes=function(){var t=this.options,e=(this.zData||[]).filter(g);if(e.length){var n=y(t.zMin,d(p(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));if(t=y(t.zMax,u(e)),g(n)&&g(t))return{zMin:n,zMax:t}}},n.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"}),n}(h),f(s.prototype,{alignDataLabel:r.alignDataLabel,applyZones:n,bubblePadding:!0,buildKDTree:n,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:e,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),c(s,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),c(s,"remove",function(t){delete t.target.chart.bubbleZExtremes}),i.registerSeriesType("bubble",s),s}),e(t,"Series/ColumnRange/ColumnRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=t.seriesTypes;t=r.column.prototype.pointClass.prototype;var i=e.extend,s=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 n(e,t),e.prototype.isValid=function(){return s(this.low)},e}(r.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,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e=e.noop;var s=n.seriesTypes,o=s.arearange,a=s.column,l=s.column.prototype,A=r.clamp;s=r.extend;var c=r.isNumber,h=r.merge,u=r.pick,p={pointRange:null,marker:null,states:{hover:{halo:!1}}};return r=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}),o.prototype.setOptions.apply(this,arguments)},e.prototype.translate=function(){var t,e,n,r,i=this,s=this.yAxis,o=this.xAxis,a=o.startAngleRad,h=this.chart,p=this.xAxis.isRadial,d=Math.max(h.chartWidth,h.chartHeight)+999;l.translate.apply(this),this.points.forEach(function(l){var f=l.shapeArgs||{},g=i.options.minPointLength,m=l.plotY,y=s.translate(l.high,0,1,0,1);c(y)&&c(m)&&(l.plotHigh=A(y,-d,d),l.plotLow=A(m,-d,d),r=l.plotHigh,t=u(l.rectPlotY,l.plotY)-l.plotHigh,Math.abs(t)<g?(t+=e=g-t,r-=e/2):0>t&&(r-=t*=-1),p&&i.polar?(n=l.barX+a,l.shapeType="arc",l.shapeArgs=i.polar.arc(r+t,r,n,n+l.pointWidth)):(f.height=t,f.y=r,g=void 0===(g=f.x)?0:g,f=void 0===(f=f.width)?0:f,l.tooltipPos=h.inverted?[s.len+s.pos-h.plotLeft-r-t/2,o.len+o.pos-h.plotTop-g-f/2,t]:[o.left-h.plotLeft+g+f/2,s.pos-h.plotTop+r+t/2,t]))})},e.prototype.pointAttribs=function(){return l.pointAttribs.apply(this,arguments)},e.prototype.translate3dPoints=function(){return l.translate3dPoints.apply(this,arguments)},e.prototype.translate3dShapes=function(){return l.translate3dShapes.apply(this,arguments)},e.defaultOptions=h(a.defaultOptions,o.defaultOptions,p),e}(o),s(r.prototype,{directTouch:!0,pointClass:t,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:l.adjustForMissingColumns,animate:l.animate,crispCol:l.crispCol,drawGraph:e,drawPoints:l.drawPoints,getSymbol:e,drawTracker:l.drawTracker,getColumnMetrics:l.getColumnMetrics}),n.registerSeriesType("columnrange",r),r}),e(t,"Series/ColumnPyramid/ColumnPyramidSeries.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t.prototype,s=n.clamp,o=n.merge,a=n.pick;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(n,e),n.prototype.translate=function(){var t=this,e=t.chart,n=t.options,r=t.dense=2>t.closestPointRange*t.xAxis.transA;r=t.borderWidth=a(n.borderWidth,r?0:1);var o=t.yAxis,l=n.threshold,A=t.translatedThreshold=o.getThreshold(l),c=a(n.minPointLength,5),h=t.getColumnMetrics(),u=h.width,p=t.barW=Math.max(u,1+2*r),d=t.pointXOffset=h.offset;e.inverted&&(A-=.5),n.pointPadding&&(p=Math.ceil(p)),i.translate.apply(t),t.points.forEach(function(r){var i=a(r.yBottom,A),h=999+Math.abs(i),f=s(r.plotY,-h,o.len+h);h=r.plotX+d;var g,m=p/2,y=Math.min(f,i);i=Math.max(f,i)-y,r.barX=h,r.pointWidth=u,r.tooltipPos=e.inverted?[o.len+o.pos-e.plotLeft-f,t.xAxis.len-h-m,i]:[h+m,f+o.pos-e.plotTop,i],f=l+(r.total||r.y),"percent"===n.stacking&&(f=l+(0>r.y)?-100:100),f=o.toPixels(f,!0);var v=(g=e.plotHeight-f-(e.plotHeight-A))?m*(y-f)/g:0,O=g?m*(y+i-f)/g:0;g=h-v+m,v=h+v+m;var b=h+O+m;O=h-O+m;var x=y-c,w=y+i;0>r.y&&(x=y,w=y+i+c),e.inverted&&(O=m*(f-((b=o.width-y)-i))/(g=f-(o.width-A)),v=(g=h+m+(v=m*(f-b)/g))-2*v,b=h-O+m,O=h+O+m,x=y,w=y+i-c,0>r.y&&(w=y+i+c)),r.shapeType="path",r.shapeArgs={x:g,y:x,width:v-g,height:i,d:[["M",g,x],["L",v,x],["L",b,w],["L",O,w],["Z"]]}})},n.defaultOptions=o(t.defaultOptions,{}),n}(t),e.registerSeriesType("columnpyramid",n),n}),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,n,r,i){var s=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=r.seriesTypes.arearange,a=i.addEvent,l=i.merge;i=i.extend;var A=function(r){function i(){var t=null!==r&&r.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return s(i,r),i.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||e.prototype.getColumnMetrics.call(this)},i.prototype.drawDataLabels=function(){var t=this.pointValKey;o&&(o.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=l(t.defaultOptions,n),i}(t);return a(A,"afterTranslate",function(){this.points.forEach(function(t){t.plotLow=t.plotY})},{order:0}),i(A.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),r.registerSeriesType("errorbar",A),A}),e(t,"Series/Gauge/GaugePoint.js",[t["Core/Series/SeriesRegistry.js"]],function(t){var e=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();return function(t){function n(){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(n,t),n.prototype.setState=function(t){this.state=t},n}(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,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e=e.noop;var s=n.series,o=n.seriesTypes.column,a=r.clamp,l=r.isNumber,A=r.extend,c=r.merge,h=r.pick,u=r.pInt;return r=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,n=t.center;this.generatePoints(),this.points.forEach(function(r){var i=c(e.dial,r.dial),s=u(i.radius)*n[2]/200,o=u(i.baseLength)*s/100,A=u(i.rearLength)*s/100,h=i.baseWidth,p=i.topWidth,d=e.overshoot,f=t.startAngleRad+t.translate(r.y,void 0,void 0,void 0,!0);(l(d)||!1===e.wrap)&&(d=l(d)?d/180*Math.PI:0,f=a(f,t.startAngleRad-d,t.endAngleRad+d)),f=180*f/Math.PI,r.shapeType="path",r.shapeArgs={d:i.path||[["M",-A,-h/2],["L",o,-h/2],["L",s,-p/2],["L",s,p/2],["L",o,h/2],["L",-A,h/2],["Z"]],translateX:n[0],translateY:n[1],rotation:f},r.plotX=n[0],r.plotY=n[1]})},e.prototype.drawPoints=function(){var t=this,e=t.chart,n=t.yAxis.center,r=t.pivot,i=t.options,s=i.pivot,o=e.renderer;t.points.forEach(function(n){var r=n.graphic,s=n.shapeArgs,a=s.d,l=c(i.dial,n.dial);r?(r.animate(s),s.d=a):n.graphic=o[n.shapeType](s).attr({rotation:s.rotation,zIndex:1}).addClass("highcharts-dial").add(t.group),e.styledMode||n.graphic[r?"animate":"attr"]({stroke:l.borderColor,"stroke-width":l.borderWidth,fill:l.backgroundColor})}),r?r.animate({translateX:n[0],translateY:n[1]}):s&&(t.pivot=o.circle(0,0,s.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(n[0],n[1]).add(t.group),e.styledMode||t.pivot.attr({fill:s.backgroundColor,stroke:s.borderColor,"stroke-width":s.borderWidth}))},e.prototype.animate=function(t){var e=this;t||e.points.forEach(function(t){var n=t.graphic;n&&(n.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),n.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),s.prototype.render.call(this),this.group.clip(this.chart.clipRect)},e.prototype.setData=function(t,e){s.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(s.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}(s),A(r.prototype,{angular:!0,directTouch:!0,drawGraph:e,drawTracker:o.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:t,trackerGroups:["group","dataLabelsGroup"]}),n.registerSeriesType("gauge",r),r}),e(t,"Series/DragNodesComposition.js",[t["Core/Utilities.js"]],function(t){function e(){var t,e,r,i=this;i.container&&(t=n(i.container,"mousedown",function(t){var s=i.hoverPoint;s&&s.series&&s.series.hasDraggableNodes&&s.series.options.draggable&&(s.series.onMouseDown(s,t),e=n(i.container,"mousemove",function(t){return s&&s.series&&s.series.onMouseMove(s,t)}),r=n(i.container.ownerDocument,"mouseup",function(t){return e(),r(),s&&s.series&&s.series.onMouseUp(s,t)}))})),n(i,"destroy",function(){t()})}var n=t.addEvent,r=[];return{compose:function(t){-1===r.indexOf(t)&&(r.push(t),n(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 n=this.chart,r=n.pointer.normalize(e);e=t.fixedPosition.chartX-r.chartX,r=t.fixedPosition.chartY-r.chartY;var i=n.graphLayoutsLookup,s=void 0,o=void 0;(5<Math.abs(e)||5<Math.abs(r))&&(s=t.fixedPosition.plotX-e,o=t.fixedPosition.plotY-r,n.isInsidePlot(s,o)&&(t.plotX=s,t.plotY=o,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 n(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(t){t.updateSimulation()}),this.redraw())}function r(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(t){t.updateSimulation(!1)}),this.redraw())}function i(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(t){t.stop()})}function s(){var t=!1,e=function(e){e.maxIterations--&&isFinite(e.temperature)&&!e.isStable()&&!e.enableSimulation&&(e.beforeStep&&e.beforeStep(),e.step(),n=!1,t=!0)};if(this.graphLayoutsLookup){for(o(!1,this),this.graphLayoutsLookup.forEach(function(t){return t.start()});!n;){var n=!0;this.graphLayoutsLookup.forEach(e)}t&&this.series.forEach(function(t){t&&t.layout&&t.render()})}}var o=t.setAnimation,a=e.addEvent,l=[];return{compose:function(t){l.indexOf(t)&&(l.push(t),a(t,"afterPrint",n),a(t,"beforePrint",r),a(t,"predraw",i),a(t,"render",s))},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,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();return function(n){function i(){var t=null!==n&&n.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 r(i,n),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 n=t.allowPointSelect;t.allowPointSelect=t.parentNode.allowPointSelect,e.prototype.firePointEvent.apply(this,arguments),t.allowPointSelect=n}else e.prototype.firePointEvent.apply(this,arguments)},i.prototype.select=function(){var n=this.series.chart;this.isParentNode?(n.getSelectedPoints=n.getSelectedParentNodes,e.prototype.select.apply(this,arguments),n.getSelectedPoints=t.prototype.getSelectedPoints):e.prototype.select.apply(this,arguments)},i}(n.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,n=this.point.value;return e(n)?t(n,-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,n){var r=t.getMass(),i=-n.x*e*this.diffTemperature;e=-n.y*e*this.diffTemperature,t.fromNode.fixedPosition||(t.fromNode.plotX-=i*r.fromNode/t.fromNode.degree,t.fromNode.plotY-=e*r.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.plotX+=i*r.toNode/t.toNode.degree,t.toNode.plotY+=e*r.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return(e-t)/t},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,n=this.barycenter.yFactor;e=(e-(this.box.left+this.box.width)/2)*t,n=(n-(this.box.top+this.box.height)/2)*t,this.nodes.forEach(function(t){t.fixedPosition||(t.plotX-=e/t.mass/t.degree,t.plotY-=n/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 n=-t.options.friction,r=t.options.maxSpeed,i=(e.plotX+e.dispX-e.prevX)*n;n*=e.plotY+e.dispY-e.prevY;var s=Math.abs,o=s(i)/(i||1);s=s(n)/(n||1),i=o*Math.min(r,Math.abs(i)),n=s*Math.min(r,Math.abs(n)),e.prevX=e.plotX+e.dispX,e.prevY=e.plotY+e.dispY,e.plotX+=i,e.plotY+=n,e.temperature=t.vectorLength({x:i,y:n})},repulsive:function(t,e,n){e=e*this.diffTemperature/t.mass/t.degree,t.fixedPosition||(t.plotX+=n.x*e,t.plotY+=n.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,n=this.options.gravitationalConstant,r=this.box,i=this.nodes,s=0;s<i.length;s++){var o=i[s];this.options.splitSeries&&!o.isParentNode?(t=o.series.parentNode.plotX,e=o.series.parentNode.plotY):(t=r.width/2,e=r.height/2),o.fixedPosition||(o.plotX-=(o.plotX-t)*n/(o.mass*Math.sqrt(i.length)),o.plotY-=(o.plotY-e)*n/(o.mass*Math.sqrt(i.length)))}},getK:t.noop,integrate:e.integrate,repulsive:function(t,e,n,r){var i=e*this.diffTemperature/t.mass/t.degree;e=n.x*i,n=n.y*i,t.fixedPosition||(t.plotX+=e,t.plotY+=n),r.fixedPosition||(r.plotX-=e,r.plotY-=n)},repulsiveForceFunction:function(t,e,n,r){return Math.min(t,(n.marker.radius+r.marker.radius)/2)}}}),e(t,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(t,e,n,r){var i=t.getMass(),s=n.x/r*e;e*=n.y/r,t.fromNode.fixedPosition||(t.fromNode.dispX-=s*i.fromNode/t.fromNode.degree,t.fromNode.dispY-=e*i.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.dispX+=s*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,n=this.barycenter.yFactor;this.nodes.forEach(function(r){if(!r.fixedPosition){var i=r.getDegree();i*=1+i/2,r.dispX+=(e-r.plotX)*t*i/r.degree,r.dispY+=(n-r.plotY)*t*i/r.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 n=e.temperature=t.vectorLength({x:e.dispX,y:e.dispY});0!==n&&(e.plotX+=e.dispX/n*Math.min(Math.abs(e.dispX),t.temperature),e.plotY+=e.dispY/n*Math.min(Math.abs(e.dispY),t.temperature))},repulsive:function(t,e,n,r){t.dispX+=n.x/r*e/t.degree,t.dispY+=n.y/r*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,n=this.box.height/2;this.nodes[0]=new t({left:this.box.left,top:this.box.top,width:e,height:n}),this.nodes[1]=new t({left:this.box.left+e,top:this.box.top,width:e,height:n}),this.nodes[2]=new t({left:this.box.left+e,top:this.box.top+n,width:e,height:n}),this.nodes[3]=new t({left:this.box.left,top:this.box.top+n,width:e,height:n})},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,n){this.isInternal?this.nodes[this.getBoxPosition(e)].insert(e,n-1):(this.isEmpty=!1,this.body?n?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,n-1),this.body=!0),this.nodes[this.getBoxPosition(e)].insert(e,n-1)):((n=new t({top:e.plotX||NaN,left:e.plotY||NaN,width:.1,height:.1})).body=e,n.isInternal=!1,this.nodes.push(n)):(this.isInternal=!1,this.body=e))},t.prototype.updateMassAndCenter=function(){var t=0,e=0,n=0;if(this.isInternal){for(var r=0,i=this.nodes;r<i.length;r++){var s=i[r];s.isEmpty||(t+=s.mass,e+=s.plotX*s.mass,n+=s.plotY*s.mass)}e/=t,n/=t}else this.body&&(t=this.body.mass,e=this.body.plotX,n=this.body.plotY);this.mass=t,this.plotX=e,this.plotY=n},t}()}),e(t,"Series/Networkgraph/QuadTree.js",[t["Series/Networkgraph/QuadTreeNode.js"]],function(t){return function(){function e(e,n,r,i){this.box={left:e,top:n,width:r,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,n){var r;if(t||(t=this.root),t===this.root&&e&&(r=e(t)),!1!==r){for(var i=0,s=t.nodes;i<s.length;i++){var o=s[i];if(o.isInternal){if(e&&(r=e(o)),!1===r)continue;this.visitNodeRecursive(o,e,n)}else o.body&&e&&e(o.body);n&&n(o)}t===this.root&&n&&n(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,n,r,i,s){var o=e.win,a=i.clamp,l=i.defined,A=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(r){n.compose(r),n.integrations.euler=t,n.integrations.verlet=s,n.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=n.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 n=0,r=this.forces||[];n<r.length;n++)this[r[n]+"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(n=0;n<e.length;n++)(r=e[n]).chart&&r.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&o.cancelAnimationFrame(this.simulation),this.simulation=o.requestAnimationFrame(function(){return t.step()})):this.simulation=!1}},e.prototype.stop=function(){this.simulation&&o.cancelAnimationFrame(this.simulation)},e.prototype.setArea=function(t,e,n,r){this.box={left:t,top:e,width:n,height:r}},e.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)},e.prototype.addElementsToCollection=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];-1===e.indexOf(r)&&e.push(r)}},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 r(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(A(t)){t.call(this),t=0;for(var e=this.nodes;t<e.length;t++){var n=e[t];l(n.prevX)||(n.prevX=n.plotX),l(n.prevY)||(n.prevY=n.plotY),n.dispX=0,n.dispY=0}}else"circle"===t?this.setCircularPositions():this.setRandomPositions()},e.prototype.setCircularPositions=function(){for(var t=this.box,e=this.nodes,n=2*Math.PI/(e.length+1),r=e.filter(function(t){return 0===t.linksTo.length}),i={},s=this.options.initialPositionRadius,o=function(t){var e=0;for(t=t.linksFrom||[];e<t.length;e++){var n=t[e];i[n.toNode.id]||(i[n.toNode.id]=!0,a.push(n.toNode),o(n.toNode))}},a=[],l=0;l<r.length;l++){var A=r[l];a.push(A),o(A)}if(a.length)for(r=0;r<e.length;r++)l=e[r],-1===a.indexOf(l)&&a.push(l);else a=e;for(r=0,l=a.length;r<l;++r)(e=a[r]).plotX=e.prevX=c(e.plotX,t.width/2+s*Math.cos(r*n)),e.plotY=e.prevY=c(e.plotY,t.height/2+s*Math.sin(r*n)),e.dispX=0,e.dispY=0},e.prototype.setRandomPositions=function(){for(var t,e=this.box,n=this.nodes,r=n.length+1,i=function(t){return(t=t*t/Math.PI)-Math.floor(t)},s=0,o=n.length;s<o;++s)(t=n[s]).plotX=t.prevX=c(t.plotX,e.width*i(s)),t.plotY=t.prevY=c(t.plotY,e.height*i(r+s)),t.dispX=0,t.dispY=0},e.prototype.force=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];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,n=0,r=0,i=this.nodes;r<i.length;r++){var s=i[r];e+=s.plotX*s.mass,n+=s.plotY*s.mass,t+=s.mass}return this.barycenter={x:e,y:n,xFactor:e/t,yFactor:n/t}},e.prototype.barnesHutApproximation=function(t,e){var n=this.getDistXY(t,e),r=this.vectorLength(n);if(t!==e&&0!==r)if(e.isInternal)if(e.boxSize/r<this.options.theta&&0!==r){var i=this.repulsiveForce(r,this.k);this.force("repulsive",t,i*e.mass,n,r);var s=!1}else s=!0;else i=this.repulsiveForce(r,this.k),this.force("repulsive",t,i*e.mass,n,r);return s},e.prototype.repulsiveForces=function(){var t=this;if("barnes-hut"===this.approximation)for(var e=function(e){n.quadTree.visitNodeRecursive(null,function(n){return t.barnesHutApproximation(e,n)})},n=this,r=0,i=this.nodes;r<i.length;r++){var s=i[r];e(s)}else{i=r=e=void 0;for(var o=0,a=this.nodes;o<a.length;o++){s=a[o];for(var l=0,A=this.nodes;l<A.length;l++){var c=A[l];s===c||s.fixedPosition||(i=this.getDistXY(s,c),0!==(r=this.vectorLength(i))&&(e=this.repulsiveForce(r,this.k),this.force("repulsive",s,e*c.mass,i,r)))}}}},e.prototype.attractiveForces=function(){for(var t,e,n,r=0,i=this.links;r<i.length;r++){var s=i[r];s.fromNode&&s.toNode&&(t=this.getDistXY(s.fromNode,s.toNode),0!==(e=this.vectorLength(t))&&(n=this.attractiveForce(e,this.k),this.force("attractive",s,n,t,e)))}},e.prototype.applyLimits=function(){for(var t=0,e=this.nodes;t<e.length;t++){var n=e[t];if(n.fixedPosition)break;this.integration.integrate(this,n),this.applyLimitBox(n,this.box),n.dispX=0,n.dispY=0}},e.prototype.applyLimitBox=function(t,e){var n=t.radius;t.plotX=a(t.plotX,e.left+n,e.width-n),t.plotY=a(t.plotY,e.top+n,e.height-n)},e.prototype.coolDown=function(t,e,n){return t-e*n},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,n=this.nodes;e<n.length;e++)t+=n[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 n=t.plotX-e.plotX;return{x:n,y:t=t.plotY-e.plotY,absX:Math.abs(n),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,n,r){function i(){var t=[];return this.series.forEach(function(e){e.parentNode&&e.parentNode.selected&&t.push(e.parentNode)}),t}function s(){this.allDataPoints&&delete this.allDataPoints}var o=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=r.addEvent,l=r.pick,A=[];return r=function(r){function c(){var t=null!==r&&r.apply(this,arguments)||this;return t.index=NaN,t.nodes=[],t.options=void 0,t.series=[],t}return o(c,r),c.compose=function(r){n.compose(r),t.integrations.packedbubble=e,t.layouts.packedbubble=c,-1===A.indexOf(r)&&(A.push(r),a(r,"beforeRedraw",s),r.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,n=this.box,r=this.nodes,i=2*Math.PI/(r.length+1),s=this.options.initialPositionRadius,o=0,a=0;a<r.length;a++){var A=r[a];this.options.splitSeries&&!A.isParentNode?(t=A.series.parentNode.plotX,e=A.series.parentNode.plotY):(t=n.width/2,e=n.height/2),A.plotX=A.prevX=l(A.plotX,t+s*Math.cos(A.index||o*i)),A.plotY=A.prevY=l(A.plotY,e+s*Math.sin(A.index||o*i)),A.dispX=0,A.dispY=0,o++}},c.prototype.repulsiveForces=function(){var t,e,n,r=this,i=r.options.bubblePadding;r.nodes.forEach(function(s){s.degree=s.mass,s.neighbours=0,r.nodes.forEach(function(o){t=0,s===o||s.fixedPosition||!r.options.seriesInteraction&&s.series!==o.series||(n=r.getDistXY(s,o),0>(e=r.vectorLength(n)-(s.marker.radius+o.marker.radius+i))&&(s.degree+=.01,s.neighbours++,t=r.repulsiveForce(-e/Math.sqrt(s.neighbours),r.k,s,o)),r.force("repulsive",s,t*o.mass,n,o,e))})})},c.prototype.applyLimitBox=function(t,e){if(this.options.splitSeries&&!t.isParentNode&&this.options.parentNodeLimit){var n=this.getDistXY(t,t.series.parentNode),i=t.series.parentNodeRadius-t.marker.radius-this.vectorLength(n);0>i&&i>-2*t.marker.radius&&(t.plotX-=.01*n.x,t.plotY-=.01*n.y)}r.prototype.applyLimitBox.call(this,t,e)},c}(n),t.layouts.packedbubble=r}),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,n,r,i,s,o,a,l){var A=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=t.parse;t=r.noop;var h=a.series.prototype,u=a.seriesTypes.bubble,p=l.addEvent,d=l.clamp,f=l.defined,g=l.extend,m=l.fireEvent,y=l.isArray,v=l.isNumber,O=l.merge,b=l.pick;return l=function(t){function r(){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 A(r,t),r.compose=function(t,n,r,i){u.compose(t,n,r,i),e.compose(n),o.compose(n)},r.prototype.accumulateAllPoints=function(){for(var t,e=this.chart,n=[],r=0,i=e.series;r<i.length;r++){var s=i[r];if(s.is("packedbubble")&&s.visible||!e.options.chart.ignoreHiddenSeries){t=s.yData||[];for(var o=0;o<t.length;o++)n.push([null,null,t[o],s.index,o,{id:o,marker:{radius:0}}])}}return n},r.prototype.addLayout=function(){var t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",r=this.chart.options.chart,i=this.chart.graphLayoutsStorage,s=this.chart.graphLayoutsLookup;i||(this.chart.graphLayoutsStorage=i={},this.chart.graphLayoutsLookup=s=[]);var o=i[e];o||(t.enableSimulation=f(r.forExport)?!r.forExport:t.enableSimulation,i[e]=o=new n.layouts[e],o.init(t),s.splice(o.index,0,o)),this.layout=o,this.points.forEach(function(t){t.mass=2,t.degree=1,t.collisionNmb=1}),o.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),o.addElementsToCollection([this],o.series),o.addElementsToCollection(this.points,o.nodes)},r.prototype.addSeriesLayout=function(){var t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",r=this.chart.graphLayoutsStorage,i=this.chart.graphLayoutsLookup;t=O(t,t.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation});var s=r[e+"-series"];s||(r[e+"-series"]=s=new n.layouts[e],s.init(t),i.splice(s.index,0,s)),this.parentNodeLayout=s,this.createParentNodes()},r.prototype.calculateParentRadius=function(){var t=this.seriesBox();this.parentNodeRadius=d(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)},r.prototype.calculateZExtremes=function(){var t=this.options.zMin,e=this.options.zMax,n=1/0,r=-1/0;return t&&e?[t,e]:(this.chart.series.forEach(function(t){t.yData.forEach(function(t){f(t)&&(t>r&&(r=t),t<n&&(n=t))})}),[t=b(t,n),e=b(e,r)])},r.prototype.checkOverlap=function(t,e){var n=t[0]-e[0],r=t[1]-e[1];return-.001>Math.sqrt(n*n+r*r)-Math.abs(t[2]+e[2])},r.prototype.createParentNodes=function(){var t,e=this,n=this.pointClass,r=this.chart,i=this.parentNodeLayout,s=this.layout.options,o=this.parentNode,a={radius:this.parentNodeRadius,lineColor:this.color,fillColor:c(this.color).brighten(.4).get()};s.parentNodeOptions&&(a=O(s.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(n){n.seriesIndex===e.index&&(t=!0)}),i.setArea(0,0,r.plotWidth,r.plotHeight),t||(o||(o=(new n).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&&(o.plotX=this.parentNode.plotX,o.plotY=this.parentNode.plotY),this.parentNode=o,i.addElementsToCollection([this],i.series),i.addElementsToCollection([o],i.nodes))},r.prototype.deferLayout=function(){var t=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),t.splitSeries&&this.addSeriesLayout())},r.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)},r.prototype.drawDataLabels=function(){h.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",h.drawDataLabels.call(this,[this.parentNode]))},r.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":b(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 n=O({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(n)}},r.prototype.drawTracker=function(){var e=this.parentNode;if(t.prototype.drawTracker.call(this),e){var n=y(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[];e.graphic&&(e.graphic.element.point=e),n.forEach(function(t){t.div?t.div.point=e:t.element.point=e})}},r.prototype.getPointRadius=function(){var t,e,n,r,i=this,s=this.chart,o=this.options,a=o.useSimulation,l=Math.min(s.plotWidth,s.plotHeight),A={},c=[],h=s.allDataPoints||[],u=h.length;["minSize","maxSize"].forEach(function(t){var e=parseInt(o[t],10),n=/%$/.test(o[t]);A[t]=n?l*e/100:e*Math.sqrt(u)}),s.minRadius=t=A.minSize/Math.sqrt(u),s.maxRadius=e=A.maxSize/Math.sqrt(u);var p=a?this.calculateZExtremes():[t,e];h.forEach(function(s,o){n=a?d(s[2],p[0],p[1]):s[2],0===(r=i.getRadius(p[0],p[1],t,e,n))&&(r=null),h[o][2]=r,c.push(r)}),this.radii=c},r.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},r.prototype.onMouseUp=function(t){var n=t;if(n.fixedPosition&&!n.removed){var r,i=this.layout,s=this.parentNodeLayout;s&&i.options.dragBetweenSeries&&s.nodes.forEach(function(t){n&&n.marker&&t!==n.series.parentNode&&(r=i.getDistXY(n,t),0>i.vectorLength(r)-t.marker.radius-n.marker.radius&&(t.series.addPoint(O(n.options,{plotX:n.plotX,plotY:n.plotY}),!1),i.removeElementFromCollection(n,i.nodes),n.remove()))}),e.onMouseUp.apply(this,arguments)}},r.prototype.placeBubbles=function(t){var e,n=this.checkOverlap,r=this.positionBubble,i=[],s=1,o=0,a=0,l=[];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,n(l=r(i[s][o],i[s-1][a],t[e]),i[s][0])?(i.push([]),a=0,i[s+1].push(r(i[s][o],i[s][0],t[e])),s++,o=0):1<s&&i[s-1][a+1]&&n(l,i[s-1][a+1])?(a++,i[s].push(r(i[s][o],i[s-1][a],t[e])),o++):(o++,i[s].push(l));this.chart.stages=i,this.chart.rawPositions=[].concat.apply([],i),this.resizeRadius(),l=this.chart.rawPositions}return l},r.prototype.pointAttribs=function(t,e){var n=this.options,r=n.marker;return t&&t.isParentNode&&n.layoutAlgorithm&&n.layoutAlgorithm.parentNodeOptions&&(r=n.layoutAlgorithm.parentNodeOptions.marker),n=r.fillOpacity,t=h.pointAttribs.call(this,t,e),1!==n&&(t["fill-opacity"]=n),t},r.prototype.positionBubble=function(t,e,n){var r=Math.sqrt,i=Math.asin,s=Math.acos,o=Math.pow,a=Math.abs;return r=r(o(t[0]-e[0],2)+o(t[1]-e[1],2)),s=s((o(r,2)+o(n[2]+e[2],2)-o(n[2]+t[2],2))/(2*(n[2]+e[2])*r)),i=i(a(t[0]-e[0])/r),t=(0>t[1]-e[1]?0:Math.PI)+s+i*(0>(t[0]-e[0])*(t[1]-e[1])?1:-1),[e[0]+(e[2]+n[2])*Math.sin(t),e[1]-(e[2]+n[2])*Math.cos(t),n[2],n[3],n[4]]},r.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))},r.prototype.resizeRadius=function(){for(var t,e,n=this.chart,r=n.rawPositions,i=Math.min,s=Math.max,o=n.plotLeft,a=n.plotTop,l=n.plotHeight,A=n.plotWidth,c=t=Number.POSITIVE_INFINITY,h=e=Number.NEGATIVE_INFINITY,u=0;u<r.length;u++){var p=r[u],d=p[2];c=i(c,p[0]-d),h=s(h,p[0]+d),t=i(t,p[1]-d),e=s(e,p[1]+d)}if(p=[h-c,e-t],i=i.apply([],[(A-o)/p[0],(l-a)/p[1]]),1e-10<Math.abs(i-1)){for(n=0;n<r.length;n++)(p=r[n])[2]*=i;this.placeBubbles(r)}else n.diffY=l/2+a-t-(e-t)/2,n.diffX=A/2+o-c-(h-c)/2},r.prototype.seriesBox=function(){var t,e=this.chart,n=Math.max,r=Math.min,i=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return this.data.forEach(function(e){f(e.plotX)&&f(e.plotY)&&e.marker.radius&&(t=e.marker.radius,i[0]=r(i[0],e.plotX-t),i[1]=n(i[1],e.plotX+t),i[2]=r(i[2],e.plotY-t),i[3]=n(i[3],e.plotY+t))}),v(i.width/i.height)?i:null},r.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)}))},r.prototype.translate=function(){var t=this.chart,e=this.data,n=this.index,r=this.options.useSimulation;if(this.processedXData=this.xData,this.generatePoints(),f(t.allDataPoints)||(t.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),r)var i=t.allDataPoints;else i=this.placeBubbles(t.allDataPoints),this.options.draggable=!1;for(var s=0,o=i;s<o.length;s++){var a=o[s];if(a[3]===n){i=e[a[4]];var l=b(a[2],void 0);r||(i.plotX=a[0]-t.plotLeft+t.diffX,i.plotY=a[1]-t.plotTop+t.diffY),v(l)&&(i.marker=g(i.marker,{radius:l,width:2*l,height:2*l}),i.radius=l)}}r&&this.deferLayout(),m(this,"afterTranslate")},r.defaultOptions=O(u.defaultOptions,s),r}(u),g(l.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",l),l}),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,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();t=t.noop;var s=n.series,o=n.seriesTypes,a=o.area,l=o.line,A=o.scatter;o=r.extend;var c=r.merge;return r=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=l.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(A.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0}),e}(A),o(r.prototype,{type:"polygon",drawLegendSymbol:e.drawRectangle,drawTracker:s.prototype.drawTracker,setStackedPoints:t}),n.registerSeriesType("polygon",r),r}),e(t,"Core/Axis/WaterfallAxis.js",[t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(t,e){var n,r=e.addEvent,i=e.objectEach;return function(e){function n(){var t=this.waterfall.stacks;t&&(t.changed=!1,delete t.alreadyChanged)}function s(){var t=this.options.stackLabels;t&&t.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function o(){for(var t=this.axes,e=this.series,n=e.length;n--;)e[n].options.stacking&&(t.forEach(function(t){t.isXAxis||(t.waterfall.stacks.changed=!0)}),n=0)}function a(){this.waterfall||(this.waterfall=new l(this))}var l=function(){function e(t){this.axis=t,this.stacks={changed:!1}}return e.prototype.renderStackTotals=function(){var e=this.axis,n=e.waterfall.stacks,r=e.stacking&&e.stacking.stackTotalGroup,s=new t(e,e.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=s,r&&i(n,function(e){i(e,function(e,n){s.total=e.stackTotal,s.x=+n,e.label&&(s.label=e.label),t.prototype.render.call(s,r),e.label=s.label,delete s.label})}),s.total=null},e}();e.Composition=l,e.compose=function(t,e){r(t,"init",a),r(t,"afterBuildStacks",n),r(t,"afterRender",s),r(e,"beforeRedraw",o)}}(n||(n={})),n}),e(t,"Series/Waterfall/WaterfallPoint.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n.isNumber;return function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e}return r(n,t),n.prototype.getClassName=function(){var t=e.prototype.getClassName.call(this);return this.isSum?t+=" highcharts-sum":this.isIntermediateSum&&(t+=" highcharts-intermediate-sum"),t},n.prototype.isValid=function(){return i(this.y)||this.isSum||!!this.isIntermediateSum},n}(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,n,r,i,s){var o=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=n.seriesTypes,l=a.column,A=a.line,c=r.arrayMax,h=r.arrayMin,u=r.correctFloat;a=r.extend;var p=r.isNumber,d=r.merge,f=r.objectEach,g=r.pick;return r=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 o(e,t),e.prototype.generatePoints=function(){l.prototype.generatePoints.apply(this);for(var t=0,e=this.points.length;t<e;t++){var n=this.points[t],r=this.processedYData[t];p(r)&&(n.isIntermediateSum||n.isSum)&&(n.y=u(r))}},e.prototype.translate=function(){var t=this.options,e=this.yAxis,n=g(t.minPointLength,5),r=n/2,i=t.threshold||0;t=t.stacking;var s=e.waterfall.stacks[this.stackKey],o=i,a=i;l.prototype.translate.apply(this);for(var A=this.points,c=0;c<A.length;c++){var h=A[c],u=this.processedYData[c],d=h.shapeArgs;if(d&&p(u)){var f=[0,u],m=h.y;if(t){if(s){if(f=s[c],"overlap"===t){var y=f.stackState[f.stateIndex--];y=0<=m?y:y-m,Object.hasOwnProperty.call(f,"absolutePos")&&delete f.absolutePos,Object.hasOwnProperty.call(f,"absoluteNeg")&&delete f.absoluteNeg}else 0<=m?(y=f.threshold+f.posTotal,f.posTotal-=m):(y=f.threshold+f.negTotal,f.negTotal-=m,y-=m),!f.posTotal&&p(f.absolutePos)&&Object.hasOwnProperty.call(f,"absolutePos")&&(f.posTotal=f.absolutePos,delete f.absolutePos),!f.negTotal&&p(f.absoluteNeg)&&Object.hasOwnProperty.call(f,"absoluteNeg")&&(f.negTotal=f.absoluteNeg,delete f.absoluteNeg);h.isSum||(f.connectorThreshold=f.threshold+f.stackTotal),e.reversed?(u=0<=m?y-m:y+m,m=y):(u=y,m=y-m),h.below=u<=i,d.y=e.translate(u,!1,!0,!1,!0),d.height=Math.abs(d.y-e.translate(m,!1,!0,!1,!0)),(m=e.waterfall.dummyStackItem)&&(m.x=c,m.label=s[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)+f[0],d.y=e.translate(y,!1,!0,!1,!0),h.isSum?(d.y=e.translate(f[1],!1,!0,!1,!0),d.height=Math.min(e.translate(f[0],!1,!0,!1,!0),e.len)-d.y,h.below=f[1]<=i):h.isIntermediateSum?(0<=m?(u=f[1]+o,m=o):(u=o,m=f[1]+o),e.reversed&&(u^=m,u^=m^=u),d.y=e.translate(u,!1,!0,!1,!0),d.height=Math.abs(d.y-Math.min(e.translate(m,!1,!0,!1,!0),e.len)),o+=f[1],h.below=u<=i):(d.height=0<u?e.translate(a,!1,!0,!1,!0)-d.y:e.translate(a,!1,!0,!1,!0)-e.translate(a-u,!1,!0,!1,!0),a+=u,h.below=a<i),0>d.height&&(d.y+=d.height,d.height*=-1);h.plotY=d.y=Math.round(d.y||0)-this.borderWidth%2/2,d.height=Math.max(Math.round(d.height||0),.001),h.yBottom=d.y+d.height,d.height<=n&&!h.isNull?(d.height=n,d.y-=r,h.plotY=d.y,h.minPointLengthOffset=0>h.y?-r:r):(h.isNull&&(d.width=0),h.minPointLengthOffset=0),m=h.plotY+(h.negative?d.height:0),h.below&&(h.plotY+=d.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 n,r,i,s,o,a=this.options,l=this.yData,A=a.data,c=l.length,h=a.threshold||0;for(o=r=n=i=s=0;o<c;o++){var p=l[o],d=A&&A[o]?A[o]:{};"sum"===p||d.isSum?l[o]=u(r):"intermediateSum"===p||d.isIntermediateSum?(l[o]=u(n),n=0):(r+=p,n+=p),i=Math.min(r,i),s=Math.max(r,s)}t.prototype.processData.call(this,e),a.stacking||(this.dataMin=i+h,this.dataMax=s)},e.prototype.toYData=function(t){return t.isSum?"sum":t.isIntermediateSum?"intermediateSum":t.y},e.prototype.updateParallelArrays=function(e,n){t.prototype.updateParallelArrays.call(this,e,n),"sum"!==this.yData[0]&&"intermediateSum"!==this.yData[0]||(this.yData[0]=null)},e.prototype.pointAttribs=function(t,e){var n=this.options.upColor;return n&&!t.options.color&&(t.color=0<t.y?n:void 0),delete(t=l.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,n=this.yAxis,r=e.length,i=Math.round(this.graph.strokeWidth())%2/2,s=Math.round(this.borderWidth)%2/2,o=this.xAxis.reversed,a=this.yAxis.reversed,l=this.options.stacking,A=[];for(t=1;t<r;t++){var c=e[t].shapeArgs,h=e[t-1],u=e[t-1].shapeArgs,p=n.waterfall.stacks[this.stackKey],d=0<h.y?-u.height:0;p&&u&&c&&(p=p[t-1],l?(p=p.connectorThreshold,d=Math.round(n.translate(p,!1,!0,!1,!0)+(a?d:0))-i):d=u.y+h.minPointLengthOffset+s-i,A.push(["M",(u.x||0)+(o?0:u.width||0),d],["L",(c.x||0)+(o&&c.width||0),d])),u&&A.length&&(!l&&0>h.y&&!a||0<h.y&&a)&&((h=A[A.length-2])&&"number"==typeof h[2]&&(h[2]+=u.height||0),(h=A[A.length-1])&&"number"==typeof h[2]&&(h[2]+=u.height||0))}return A},e.prototype.drawGraph=function(){A.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},e.prototype.setStackedPoints=function(){function t(t,e,n,r){if(g){if(O)for(;n<O;n++)g.stackState[n]+=r;else g.stackState[0]=t,O=g.stackState.length;g.stackState.push(g.stackState[O-1]+e)}}var e,n,r,i=this.options,s=this.yAxis.waterfall.stacks,o=i.threshold||0,a=o,l=a,A=this.stackKey,c=this.xData,h=c.length;this.yAxis.stacking.usePercentage=!1;var u=e=n=a;if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){var p=s.changed;if((r=s.alreadyChanged)&&0>r.indexOf(A)&&(p=!0),s[A]||(s[A]={}),r=s[A])for(var d=0;d<h;d++){var f=c[d];r[f]&&!p||(r[f]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:p&&r[f]?r[f].label:void 0});var g=r[f],m=this.yData[d];0<=m?g.posTotal+=m:g.negTotal+=m;var y=i.data[d];f=g.absolutePos=g.posTotal;var v=g.absoluteNeg=g.negTotal;g.stackTotal=f+v;var O=g.stackState.length;y&&y.isIntermediateSum?(t(n,e,0,n),n=e,e=o,a^=l,a^=l^=a):y&&y.isSum?(t(o,u,O,0),a=o):(t(a,m,0,u),y&&(u+=m,e+=m)),g.stateIndex++,g.threshold=a,a+=g.stackTotal}s.changed=!1,s.alreadyChanged||(s.alreadyChanged=[]),s.alreadyChanged.push(A)}},e.prototype.getExtremes=function(){var t=this.options.stacking;if(t){var e=this.yAxis;e=e.waterfall.stacks;var n=this.stackedYNeg=[],r=this.stackedYPos=[];return f(e[this.stackKey],"overlap"===t?function(t){n.push(h(t.stackState)),r.push(c(t.stackState))}:function(t){n.push(t.negTotal+t.threshold),r.push(t.posTotal+t.threshold)}),{dataMin:h(n),dataMax:c(r)}}return{dataMin:this.dataMin,dataMax:this.dataMax}},e.defaultOptions=d(l.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),e}(l),a(r.prototype,{getZonesGraphs:A.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:s}),n.registerSeriesType("waterfall",r),i.compose(t,e),r}),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,n,r){var i,s=e.defaultOptions,o=n.noop,a=r.addEvent,l=r.correctFloat,A=r.defined,c=r.extend,h=r.fireEvent,u=r.merge,p=r.pick,d=r.relativeLength,f=r.wrap;return function(e){function n(){this.autoConnect=this.isCircular&&void 0===p(this.userMax,this.options.max)&&l(this.endAngleRad-this.startAngleRad)===l(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function r(){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 o}function g(t,e,n){var r=this.pane.center,i=t.value;if(this.isCircular){if(A(i))t.point&&(s=t.point.shapeArgs||{}).start&&(i=this.chart.inverted?this.translate(t.point.rectPlotY,!0):t.point.x);else{var s=t.chartX||0,o=t.chartY||0;i=this.translate(Math.atan2(o-n,s-e)-this.startAngleRad,!0)}s=(t=this.getPosition(i)).x,o=t.y}else A(i)||(s=t.chartX,o=t.chartY),A(s)&&A(o)&&(n=r[1]+this.chart.plotTop,i=this.translate(Math.min(Math.sqrt(Math.pow(s-e,2)+Math.pow(o-n,2)),r[2]/2)-r[3]/2,!0));return[i,s||0,o||0]}function m(t,e,n){t=this.pane.center;var r=this.chart,i=this.left||0,s=this.top||0,o=p(e,t[2]/2-this.offset);return void 0===n&&(n=this.horiz?0:this.center&&-this.center[3]/2),n&&(o+=n),this.isCircular||void 0!==e?((e=this.chart.renderer.symbols.arc(i+t[0],s+t[1],o,o,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[i+t[0]],e.yBounds=[s+t[1]-o]):(e=this.postTranslate(this.angleRad,o),e=[["M",this.center[0]+r.plotLeft,this.center[1]+r.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,n){var r=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},s=this.center,o=this.startAngleRad,a=s[2]/2,l=Math.min(this.offset,0),A=this.left||0,c=this.top||0,h=/%$/,u=this.isCircular,d=p(i(n.outerRadius),a),f=i(n.innerRadius);if(i=p(i(n.thickness),10),"polygon"===this.options.gridLineInterpolation)l=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||(d=t||0,f=e||0),"circle"!==n.shape&&u)n=o+(t||0),o+=e||0;else{n=-Math.PI/2,o=1.5*Math.PI;var g=!0}d-=l,l=r.renderer.symbols.arc(A+s[0],c+s[1],d,d,{start:Math.min(n,o),end:Math.max(n,o),innerR:p(f,d-(i-l)),open:g}),u&&(u=(o+n)/2,A=A+s[0]+s[2]/2*Math.cos(u),l.xBounds=u>-Math.PI/2&&u<Math.PI/2?[A,r.plotWidth]:[0,A],l.yBounds=[c+s[1]+s[2]/2*Math.sin(u)],l.yBounds[0]+=u>-Math.PI&&0>u||u>Math.PI?-10:10)}return l}function O(t){var e=this,n=this.pane.center,r=this.chart,i=r.inverted,s=t.reverse,o=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},a=o.innerRadius||"0%",l=o.outerRadius||"100%",A=n[0]+r.plotLeft,c=n[1]+r.plotTop,h=this.height,u=t.isCrosshair;o=n[3]/2;var p,f=t.value,g=this.getPosition(f),m=g.x;if(g=g.y,u&&(f=(g=this.getCrosshairPosition(t,A,c))[0],m=g[1],g=g[2]),this.isCircular)f=Math.sqrt(Math.pow(m-A,2)+Math.pow(g-c,2)),s="string"==typeof a?d(a,1):a/f,r="string"==typeof l?d(l,1):l/f,n&&o&&(s<(o/=f)&&(s=o),r<o&&(r=o)),n=[["M",A+s*(m-A),c-s*(c-g)],["L",m-(1-r)*(m-A),g+(1-r)*(c-g)]];else if((f=this.translate(f))&&(0>f||f>h)&&(f=0),"circle"===this.options.gridLineInterpolation)n=this.getLinePath(0,f,o);else if(n=[],r[i?"yAxis":"xAxis"].forEach(function(t){t.pane===e.pane&&(p=t)}),p)for(A=p.tickPositions,p.autoConnect&&(A=A.concat([A[0]])),s&&(A=A.slice().reverse()),f&&(f+=o),c=0;c<A.length;c++)o=p.getPosition(A[c],f),n.push(c?["L",o.x,o.y]:["M",o.x,o.y]);return n}function b(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,n=this.options.title;return{x:e.plotLeft+t[0]+(n.x||0),y:e.plotTop+t[1]-{high:.5,middle:.25,low:0}[n.align]*t[2]+(n.y||0)}}function w(t){t.beforeSetTickPositions=n,t.createLabelCollector=r,t.getCrosshairPosition=g,t.getLinePath=m,t.getOffset=y,t.getPlotBandPath=v,t.getPlotLinePath=O,t.getPosition=b,t.getTitlePosition=x,t.postTranslate=k,t.setAxisSize=N,t.setAxisTranslation=Q,t.setOptions=F}function _(){var t=this.chart,e=this.options,n=this.pane,r=n&&n.options;t.angular&&this.isXAxis||!n||!t.angular&&!t.polar||(t=2*Math.PI,n=(p(r.startAngle,0)-90)*Math.PI/180,r=(p(r.endAngle,p(r.startAngle,0)+360)-90)*Math.PI/180,this.angleRad=(e.angle||0)*Math.PI/180,this.startAngleRad=n,this.endAngleRad=r,this.offset=e.offset||0,r=(r%t+t)%t,(e=(n%t+t)%t)>Math.PI&&(e-=t),r>Math.PI&&(r-=t),this.normalizedStartAngleRad=e,this.normalizedEndAngleRad=r)}function S(t){this.isRadial&&(t.align=void 0,t.preventDefault())}function C(){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 E(e){var n,r=this.chart,s=r.inverted,a=r.angular,l=r.polar,A=this.isXAxis,c=this.coll,h=a&&A;e=e.userOptions.pane||0,e=this.pane=r.pane&&r.pane[e],"colorAxis"===c?this.isRadial=!1:(a?(h?(this.isHidden=!0,this.createLabelCollector=i,this.getOffset=o,this.render=this.redraw=I,this.setTitle=this.setCategories=this.setScale=o):w(this),(n=!A)&&(this.defaultPolarOptions=R)):l&&(w(this),this.defaultPolarOptions=(n=this.horiz)?D:u("xAxis"===c?t.defaultXAxisOptions:t.defaultYAxisOptions,U),s&&"yAxis"===c&&(this.defaultPolarOptions.stackLabels=t.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),a||l?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&r.labelCollectors.push(this.labelCollector)):this.isRadial=!1,e&&n&&(e.axis=this),this.isCircular=n)}function B(){this.isRadial&&this.beforeSetTickPositions()}function T(t){var e=this.label;if(e){var n=this.axis,r=e.getBBox(),i=n.options.labels,s=(n.translate(this.pos)+n.startAngleRad+Math.PI/2)/Math.PI*180%360,o=Math.round(s),a=A(i.y)?0:.3*-r.height,l=i.y,c=20,h=i.align,u="end",f=0>o?o+360:o,g=f,m=0,y=0;if(n.isRadial){var v=n.getPosition(this.pos,n.center[2]/2+d(p(i.distance,-25),n.center[2]/2,-n.center[2]/2));"auto"===i.rotation?e.attr({rotation:s}):A(l)||(l=n.chart.renderer.fontMetrics(e.styles&&e.styles.fontSize).b-r.height/2),A(h)||(n.isCircular?(r.width>n.len*n.tickInterval/(n.max-n.min)&&(c=0),h=s>c&&s<180-c?"left":s>180+c&&s<360-c?"right":"center"):h="center",e.attr({align:h})),"auto"===h&&2===n.tickPositions.length&&n.isCircular&&(90<f&&180>f?f=180-f:270<f&&360>=f&&(f=540-f),180<g&&360>=g&&(g=360-g),n.pane.options.startAngle!==o&&n.pane.options.startAngle!==o+360&&n.pane.options.startAngle!==o-360||(u="start"),h=-90<=o&&90>=o||-360<=o&&-270>=o||270<=o&&360>=o?"start"===u?"right":"left":"start"===u?"left":"right",70<g&&110>g&&(h="center"),15>f||180<=f&&195>f?m=.3*r.height:15<=f&&35>=f?m="start"===u?0:.75*r.height:195<=f&&215>=f?m="start"===u?.75*r.height:0:35<f&&90>=f?m="start"===u?.25*-r.height:r.height:215<f&&270>=f&&(m="start"===u?r.height:.25*-r.height),15>g?y="start"===u?.15*-r.height:.15*r.height:165<g&&180>=g&&(y="start"===u?.15*r.height:.15*-r.height),e.attr({align:h}),e.translate(y,m+a)),t.pos.x=v.x+(i.x||0),t.pos.y=v.y+(l||0)}}}function P(t){this.axis.getPosition&&c(t.pos,this.axis.getPosition(this.pos))}function k(t,e){var n=this.chart,r=this.center;return t=this.startAngleRad+t,{x:n.plotLeft+r[0]+Math.cos(t)*e,y:n.plotTop+r[1]+Math.sin(t)*e}}function I(){this.isDirty=!1}function N(){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 Q(){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 F(t){(t=this.options=u(this.constructor.defaultOptions,this.defaultPolarOptions,s[this.coll],t)).plotBands||(t.plotBands=[]),h(this,"afterSetOptions")}function L(t,e,n,r,i,s,o){var a=this.axis;return a.isRadial?["M",e,n,"L",(t=a.getPosition(this.pos,a.center[2]/2+r)).x,t.y]:t.call(this,e,n,r,i,s,o)}var M=[],D={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},R={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},U={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===M.indexOf(t)&&(M.push(t),a(t,"afterInit",_),a(t,"autoLabelAlign",S),a(t,"destroy",C),a(t,"init",E),a(t,"initialAxisTranslation",B)),-1===M.indexOf(e)&&(M.push(e),a(e,"afterGetLabelPosition",T),a(e,"afterGetPosition",P),f(e.prototype,"getMarkPath",L)),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,n,r,i){function s(t,e,n,r){var i=r?1:0,o=0<=e&&e<=t.length-1?e:0>e?t.length-1+e:0,a=t[e=0>o-1?t.length-(1+i):o-1];i=t[o+1>t.length-1?i:o+1];var l=a.plotY,A=i.plotX,c=i.plotY;i=t[o].plotX,o=t[o].plotY,a=(1.5*i+a.plotX)/2.5,l=(1.5*o+l)/2.5,A=(1.5*i+A)/2.5;var h=(1.5*o+c)/2.5;c=Math.sqrt(Math.pow(a-i,2)+Math.pow(l-o,2));var u=Math.sqrt(Math.pow(A-i,2)+Math.pow(h-o,2));return a=Math.atan2(l-o,a-i),h=Math.PI/2+(a+Math.atan2(h-o,A-i))/2,Math.abs(a-h)>Math.PI/2&&(h-=Math.PI),a=i+Math.cos(h)*c,l=o+Math.sin(h)*c,i={rightContX:A=i+Math.cos(Math.PI+h)*u,rightContY:h=o+Math.sin(Math.PI+h)*u,leftContX:a,leftContY:l,plotX:i,plotY:o},n&&(i.prevPointCont=s(t,e,!1,r)),i}function o(){(this.pane||[]).forEach(function(t){t.render()})}function a(t){var e=t.args[0].xAxis,n=t.args[0].yAxis;t=t.args[0].chart,e&&n&&("polygon"===n.gridLineInterpolation?(e.startOnTick=!0,e.endOnTick=!0):"polygon"===e.gridLineInterpolation&&t.inverted&&(n.startOnTick=!0,n.endOnTick=!0))}function l(){var t=this;this.pane||(this.pane=[]),this.options.pane=P(this.options.pane),this.options.pane.forEach(function(e){new n(e,t)},this)}function A(t){var e=t.args.marker,n=this.chart.xAxis[0],r=this.chart.yAxis[0],i=this.chart.inverted,s=i?r:n;if(n=i?n:r,this.chart.polar){t.preventDefault(),r=(e.attr?e.attr("start"):e.start)-s.startAngleRad,i=e.attr?e.attr("r"):e.r;var o=(e.attr?e.attr("end"):e.end)-s.startAngleRad;e=e.attr?e.attr("innerR"):e.innerR,t.result.x=r+s.pos,t.result.width=o-r,t.result.y=n.len+n.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 n=e.hoverPane.center,r=this.mouseDownX||0,i=this.mouseDownY||0,s=t.args.chartY,o=t.args.chartX,a=2*Math.PI,l=e.hoverPane.axis.startAngleRad,A=e.hoverPane.axis.endAngleRad,c=e.inverted?e.xAxis[0]:e.yAxis[0],h={},u="arc";if(h.x=n[0]+e.plotLeft,h.y=n[1]+e.plotTop,this.zoomHor){var p=0<l?A-l:Math.abs(l)+Math.abs(A),f=Math.atan2(i-e.plotTop-n[1],r-e.plotLeft-n[0])-l,g=Math.atan2(s-e.plotTop-n[1],o-e.plotLeft-n[0])-l;h.r=n[2]/2,h.innerR=n[3]/2,0>=f&&(f+=a),0>=g&&(g+=a),g<f&&(g=[f,f=g][0]),p<a&&l+g>A+(a-p)/2&&(g=f,f=0>=l?l:0),a=h.start=Math.max(f+l,l),f=h.end=Math.min(g+l,A),"polygon"===c.options.gridLineInterpolation&&(p=a-(g=e.hoverPane.axis).startAngleRad+g.pos,f-=a,u=c.getPlotLinePath({value:c.max}),a=g.toValue(p),p=g.toValue(p+f),a<g.getExtremes().min&&(a=(f=g.getExtremes()).max-(f.min-a)),p<g.getExtremes().min&&(p=(f=g.getExtremes()).max-(f.min-p)),p<a&&(p=[a,a=p][0]),(u=d(u,a,p,g)).push(["L",n[0]+e.plotLeft,e.plotTop+n[1]]),h.d=u,u="path")}this.zoomVert&&(g=e.inverted?e.xAxis[0]:e.yAxis[0],r=Math.sqrt(Math.pow(r-e.plotLeft-n[0],2)+Math.pow(i-e.plotTop-n[1],2)),(s=Math.sqrt(Math.pow(o-e.plotLeft-n[0],2)+Math.pow(s-e.plotTop-n[1],2)))<r&&(r=[s,s=r][0]),s>n[2]/2&&(s=n[2]/2),r<n[3]/2&&(r=n[3]/2),this.zoomHor||(h.start=l,h.end=A),h.r=s,h.innerR=r,"polygon"===g.options.gridLineInterpolation&&(f=g.toValue(g.len+g.pos-r),a=g.toValue(g.len+g.pos-s),u=g.getPlotLinePath({value:a}).concat(g.getPlotLinePath({value:f,reverse:!0})),h.d=u,u="path")),this.zoomHor&&this.zoomVert&&"polygon"===c.options.gridLineInterpolation&&(g=e.hoverPane.axis,a=h.start||0,f=h.end||0,p=a-g.startAngleRad+g.pos,f-=a,a=g.toValue(p),p=g.toValue(p+f),h.d instanceof Array&&(n=h.d.slice(0,h.d.length/2),l=h.d.slice(h.d.length/2,h.d.length),l=w([],l,!0).reverse(),n=d(n,a,p,e=e.hoverPane.axis),(l=d(l,a,p,e))&&(l[0][0]="L"),l=w([],l,!0).reverse(),h.d=n.concat(l),u="path")),t.attrs=h,t.shapeType=u}}function h(){var t=this.chart;t.polar&&(this.polar=new Q(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 n=this.points,r=n.length;r--;)this.preventPostTranslate||this.polar.toXY(n[r]),t.hasParallelCoordinates||this.yAxis.reversed||(T(n[r].y,Number.MIN_VALUE)<this.yAxis.min||n[r].x<this.xAxis.min||n[r].x>this.xAxis.max?(n[r].isNull=!0,n[r].plotY=NaN):n[r].isNull=n[r].isValid&&!n[r].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(S(this,"afterRender",function(){if(t.polar){var n=this.yAxis.pane.center;if(this.clipCircle)this.clipCircle.animate({x:n[0],y:n[1],r:n[2]/2,innerR:n[3]/2});else{var r=t.renderer,i=n[0],s=n[1],o=n[2]/2,a=n[3]/2;n=k();var l=r.createElement("clipPath").attr({id:n}).add(r.defs);(r=a?r.arc(i,s,o,a,0,2*Math.PI).add(l):r.circle(i,s,o).add(l)).id=n,r.clipPath=l,this.clipCircle=r}this.group.clip(this.clipCircle),this.setClip=e.noop}})))}}function p(t){var e=this.chart,n=this.xAxis;return n=n.pane&&n.pane.center,this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(t.chartX-(n&&n[0]||0)-e.plotLeft,t.chartY-(n&&n[1]||0)-e.plotTop)})}function d(t,e,n,r){var i=r.tickInterval;r=r.tickPositions;var s=E(r,function(t){return t>=n}),o=E(w([],r,!0).reverse(),function(t){return t<=e});return C(s)||(s=r[r.length-1]),C(o)||(o=r[0],s+=i,t[0][0]="L",t.unshift(t[t.length-3])),(t=t.slice(r.indexOf(o),r.indexOf(s)+1))[0][0]="M",t}function f(t,e){return E(this.pane||[],function(t){return t.options.id===e})||t.call(this,e)}function g(t,e,n,r,i,s){var o=this.chart,a=T(r.inside,!!this.options.stacking);o.polar?(t=e.rectPlotX/Math.PI*180,o.inverted?(this.forceDL=o.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-o.plotLeft,y:i.y-o.plotTop}):e.tooltipPos&&(i={x:e.tooltipPos[0],y:e.tooltipPos[1]}),r.align=T(r.align,"center"),r.verticalAlign=T(r.verticalAlign,"middle")):(null===r.align&&(r.align=20<t&&160>t?"left":200<t&&340>t?"right":"center"),null===r.verticalAlign&&(r.verticalAlign=45>t||315<t?"bottom":135<t&&225>t?"top":"middle")),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,e,n,r,i,s),this.isRadialBar&&e.shapeArgs&&e.shapeArgs.start===e.shapeArgs.end?n.hide():n.show()):t.call(this,e,n,r,i,s)}function m(t){var e=this.options,n=e.stacking,r=this.chart,s=this.xAxis,o=this.yAxis,a=o.reversed,l=o.center,A=s.startAngleRad,c=s.endAngleRad-A,h=0,u=0,p=0;if(this.preventPostTranslate=!0,t.call(this),s.isRadial){s=(t=this.points).length;var d=o.translate(o.min),f=o.translate(o.max);for(e=e.threshold||0,r.inverted&&B(e)&&(h=o.translate(e),C(h)&&(0>h?h=0:h>c&&(h=c),this.translatedThreshold=h+A));s--;){var g=(e=t[s]).barX,m=e.x,y=e.y;e.shapeType="arc",r.inverted?(e.plotY=o.translate(y),n&&o.stacking?(y=o.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=o.translate(p[0]),p=o.translate(p[1]),C(u)&&(u=i.clamp(u,0,c)))):(u=h,p=e.plotY),u>p&&(p=[u,u=p][0]),a?p>d?p=d:u<f?u=f:(u>d||p<f)&&(u=p=c):u<d?u=d:p>f?p=f:(p<d||u>f)&&(u=p=0),o.min>o.max&&(u=p=a?c:0),u+=A,p+=A,l&&(e.barX=g+=l[3]/2),m=Math.max(g,0),y=Math.max(g+e.pointWidth,0),e.shapeArgs={x:l&&l[0],y:l&&l[1],r:y,innerR:m,start:u,end:p},e.opacity=u===p?0:void 0,e.plotY=(C(this.translatedThreshold)&&(u<this.translatedThreshold?u:p))-A):(u=g+A,e.shapeArgs=this.polar.arc(e.yBottom,e.plotY,u,u+e.pointWidth)),this.polar.toXY(e),r.inverted?(g=o.postTranslate(e.rectPlotY,g+e.pointWidth/2),e.tooltipPos=[g.x-r.plotLeft,g.y-r.plotTop]):e.tooltipPos=[e.plotX,e.plotY],l&&(e.ttBelow=e.plotY>l[1])}}}function y(t,e){var n=this;if(this.chart.polar){e=e||this.points;for(var r=0;r<e.length;r++)if(!e[r].isNull){var i=r;break}if(!1!==this.options.connectEnds&&void 0!==i){this.connectEnds=!0,e.splice(e.length,0,e[i]);var s=!0}e.forEach(function(t){void 0===t.polarPlotY&&n.polar.toXY(t)})}return i=t.apply(this,[].slice.call(arguments,1)),s&&e.pop(),i}function v(t,e){var n=this.chart,r={xAxis:[],yAxis:[]};return n.polar?n.axes.forEach(function(t){if("colorAxis"!==t.coll){var i=t.isXAxis,s=t.center,o=e.chartX-s[0]-n.plotLeft;s=e.chartY-s[1]-n.plotTop,r[i?"xAxis":"yAxis"].push({axis:t,value:t.translate(i?Math.PI-Math.atan2(o,s):Math.sqrt(Math.pow(o,2)+Math.pow(s,2)),!0)})}}):r=t.call(this,e),r}function O(t,e){this.chart.polar||t.call(this,e)}function b(t,n){var r,i,s,o,a=this,l=this.chart,A=this.group,c=this.markerGroup,h=this.xAxis&&this.xAxis.center,u=l.plotLeft,p=l.plotTop,d=this.options.animation;if(l.polar){if(a.isRadialBar)n||(a.startAngleRad=T(a.translatedThreshold,a.xAxis.startAngleRad),e.seriesTypes.pie.prototype.animate.call(a,n));else if(l.renderer.isSVG)if(d=_(d),a.is("column")){if(!n){var f=h[3]/2;a.points.forEach(function(t){r=t.graphic,s=(i=t.shapeArgs)&&i.r,o=i&&i.innerR,r&&i&&(r.attr({r:f,innerR:f}),r.animate({r:s,innerR:o},a.options.animation))})}}else n?(t={translateX:h[0]+u,translateY:h[1]+p,scaleX:.001,scaleY:.001},A.attr(t),c&&c.attr(t)):(t={translateX:u,translateY:p,scaleX:1,scaleY:1},A.animate(t,d),c&&c.animate(t,d))}else t.call(this,n)}function x(t,e,n,r){return this.chart.polar?r?(e=(t=s(e,r,!0,this.connectEnds)).prevPointCont&&t.prevPointCont.rightContX,n=t.prevPointCont&&t.prevPointCont.rightContY,t=["C",B(e)?e:t.plotX,B(n)?n:t.plotY,B(t.leftContX)?t.leftContX:t.plotX,B(t.leftContY)?t.leftContY:t.plotY,t.plotX,t.plotY]):t=["M",n.plotX,n.plotY]:t=t.call(this,e,n,r),t}var w=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},_=t.animObject,S=i.addEvent,C=i.defined,E=i.find,B=i.isNumber,T=i.pick,P=i.splat,k=i.uniqueKey,I=i.wrap,N=[],Q=function(){function t(t){this.series=t}return t.compose=function(t,e,n,i,s,p,d,w,_){r.compose(t,s),-1===N.indexOf(e)&&(N.push(e),S(e,"afterDrawChartBox",o),S(e,"getAxes",l),S(e,"init",a),I(e.prototype,"get",f)),-1===N.indexOf(n)&&(N.push(n),t=n.prototype,I(t,"getCoordinates",v),I(t,"pinch",O),S(n,"getSelectionMarkerAttrs",c),S(n,"getSelectionBox",A)),-1===N.indexOf(i)&&(N.push(i),S(i,"afterInit",h),S(i,"afterTranslate",u,{order:2}),I(i.prototype,"animate",b)),d&&-1===N.indexOf(d)&&(N.push(d),n=d.prototype,I(n,"alignDataLabel",g),I(n,"animate",b),I(n,"translate",m)),w&&-1===N.indexOf(w)&&(N.push(w),I(w.prototype,"getGraphPath",y)),_&&-1===N.indexOf(_)&&(N.push(_),w=_.prototype,I(w,"getPointSpline",x),p&&-1===N.indexOf(p)&&(N.push(p),p.prototype.getPointSpline=w.getPointSpline))},t.prototype.arc=function(t,e,n,r){var i=this.series,s=i.xAxis.center,o=i.yAxis.len,a=s[3]/2;return e=o-e+a,t=o-T(t,o)+a,i.yAxis.reversed&&(0>e&&(e=a),0>t&&(t=a)),{x:s[0],y:s[1],r:e,innerR:t,start:n,end:r}},t.prototype.toXY=function(t){var e=this.series,n=e.chart,r=e.xAxis,i=e.yAxis,s=t.plotX,o=n.inverted,a=t.y,l=t.plotY,A=o?s:i.len-l;o&&e&&!e.isRadialBar&&(t.plotY=l=B(a)?i.translate(a):0),t.rectPlotX=s,t.rectPlotY=l,i.center&&(A+=i.center[3]/2),B(l)&&(i=o?i.postTranslate(l,A):r.postTranslate(s,A),t.plotX=t.polarPlotX=i.x-n.plotLeft,t.plotY=t.polarPlotY=i.y-n.plotTop),e.kdByAngle?(0>(e=(s/Math.PI*180+r.pane.options.startAngle)%360)&&(e+=360),t.clientX=e):t.clientX=t.plotX},t}();return Q}),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,n,r,i){n.compose(t.Axis,t.Chart,t.Legend,t.Series),r.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?(s.default=s,t.exports=s):(r=[n(43663)],void 0===(i=function(t){return s(t),s.Highcharts=t,s}.apply(e,r))||(t.exports=i))},43663(t,e,n){var r,i,s;i="undefined"!=typeof window?window:this,s=function(t){function e(e,n,r,i){e.hasOwnProperty(n)||(e[n]=i.apply(null,r),"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:n,module:e[n]}})))}var n={};return e(n,"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 n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",e.noop,n),e.win.removeEventListener("testPassive",e.noop,n))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0}(e||(e={})),e}),e(n,"Core/Utilities.js",[n["Core/Globals.js"]],function(t){function e(n,r,i,s){var o=r?"Highcharts error":"Highcharts warning";32===n&&(n=o+": Deprecated member");var a=l(n),A=a?o+" #"+n+": www.highcharts.com/errors/"+n+"/":n.toString();if(void 0!==s){var c="";a&&(A+="?"),g(s,function(t,e){c+="\n - ".concat(e,": ").concat(t),a&&(A+=encodeURI(e)+"="+encodeURI(t))}),A+=c}y(t,"displayError",{chart:i,code:n,message:A,params:s},function(){if(r)throw Error(A);b.console&&-1===e.messages.indexOf(A)&&console.warn(A)}),e.messages.push(A)}function n(t,e){return parseInt(t,e||10)}function r(t){return"string"==typeof t}function i(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function s(t,e){return!(!t||"object"!=typeof t||e&&i(t))}function o(t){return s(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!s(t,!0)||o(t)||!e||!e.name||"Object"===e.name)}function l(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function A(t){return null!=t}function c(t,e,n){var i,s=r(e)&&!A(n),o=function(e,n){A(e)?t.setAttribute(n,e):s?(i=t.getAttribute(n))||"class"!==n||(i=t.getAttribute(n+"Name")):t.removeAttribute(n)};return r(e)?o(n,e):g(e,o),i}function h(t,e){var n;for(n in t||(t={}),e)t[n]=e[n];return t}function u(){for(var t=arguments,e=t.length,n=0;n<e;n++){var r=t[n];if(null!=r)return r}}function p(e,n){t.isMS&&!t.svg&&n&&A(n.opacity)&&(n.filter="alpha(opacity=".concat(100*n.opacity,")")),h(e.style,n)}function d(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function f(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}function g(t,e,n){for(var r in t)Object.hasOwnProperty.call(t,r)&&e.call(n||t[r],t[r],r,t)}function m(e,n,r){function i(n,r){var i=e.removeEventListener||t.removeEventListenerPolyfill;i&&i.call(e,n,r,!1)}function s(t){var r;if(e.nodeName){if(n){var s={};s[n]=!0}else s=t;g(s,function(e,n){if(t[n])for(r=t[n].length;r--;)i(n,t[n][r].fn)})}}var o="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(o,"hcEvents")){var a=o.hcEvents;n?(o=a[n]||[],r?(a[n]=o.filter(function(t){return r!==t.fn}),i(n,r)):(s(a),a[n]=[])):(s(a),delete o.hcEvents)}}function y(e,n,r,i){if(r=r||{},O.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var s=O.createEvent("Events");s.initEvent(n,!0,!0),r=h(s,r),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent(n,r)}else if(e.hcEvents){r.target||h(r,{preventDefault:function(){r.defaultPrevented=!0},target:e,type:n}),s=[];for(var o=e,a=!1;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[n]&&(s.length&&(a=!0),s.unshift.apply(s,o.hcEvents[n])),o=Object.getPrototypeOf(o);a&&s.sort(function(t,e){return t.order-e.order}),s.forEach(function(t){!1===t.fn.call(e,r)&&r.preventDefault()})}i&&!r.defaultPrevented&&i.call(e,r)}var v=t.charts,O=t.doc,b=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 n,r=t.length;for(n=0;n<r;n++)if(e(t[n],n))return t[n]};g({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(n,r){t[r]=function(t){var i;return e(32,!1,void 0,((i={})["Highcharts.".concat(r)]="use Array.".concat(n),i)),Array.prototype[n].apply(t,[].slice.call(arguments,1))}});var w,_=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(w?"":t)+e++}}();return b.jQuery&&(b.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[r(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):v[c(this[0],"data-highcharts-chart")]}),x={addEvent:function(e,n,r,i){void 0===i&&(i={});var s="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={}),s=s.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var o=e.addEventListener||t.addEventListenerPolyfill;return o&&o.call(e,n,r,!!t.supportsPassiveEvents&&{passive:void 0===i.passive?-1!==n.indexOf("touch"):i.passive,capture:!1}),s[n]||(s[n]=[]),s[n].push({fn:r,order:"number"==typeof i.order?i.order:1/0}),s[n].sort(function(t,e){return t.order-e.order}),function(){m(e,n,r)}},arrayMax:function(t){for(var e=t.length,n=t[0];e--;)t[e]>n&&(n=t[e]);return n},arrayMin:function(t){for(var e=t.length,n=t[0];e--;)t[e]<n&&(n=t[e]);return n},attr:c,clamp:function(t,e,n){return t>e?t<n?t:n:e},cleanRecursively:function t(e,n){var r={};return g(e,function(i,o){s(e[o],!0)&&!e.nodeType&&n[o]?(i=t(e[o],n[o]),Object.keys(i).length&&(r[o]=i)):(s(e[o])||e[o]!==n[o]||o in e&&!(o in n))&&(r[o]=e[o])}),r},clearTimeout:function(t){A(t)&&clearTimeout(t)},correctFloat:f,createElement:function(t,e,n,r,i){return t=O.createElement(t),e&&h(t,e),i&&p(t,{padding:"0",border:"none",margin:"0"}),n&&p(t,n),r&&r.appendChild(t),t},css:p,defined:A,destroyObjectProperties:function(t,e){g(t,function(n,r){n&&n!==e&&n.destroy&&n.destroy(),delete t[r]})},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var n=t.length;n--;)if(t[n]===e){t.splice(n,1);break}},error:e,extend:h,extendClass:function(t,e){var n=function(){};return h(n.prototype=new t,e),n},find:x,fireEvent:y,getMagnitude:d,getNestedProperty:function(t,e){for(t=t.split(".");t.length&&A(e);){var n=t.shift();if(void 0===n||"__proto__"===n)return;if(!A(e=e[n])||"function"==typeof e||"number"==typeof e.nodeType||e===b)return}return e},getStyle:function r(i,s,o){var a=t.getStyle||r;if("width"===s)return s=Math.min(i.offsetWidth,i.scrollWidth),(o=i.getBoundingClientRect&&i.getBoundingClientRect().width)<s&&o>=s-1&&(s=Math.floor(o)),Math.max(0,s-(a(i,"padding-left",!0)||0)-(a(i,"padding-right",!0)||0));if("height"===s)return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(a(i,"padding-top",!0)||0)-(a(i,"padding-bottom",!0)||0));if(b.getComputedStyle||e(27,!0),i=b.getComputedStyle(i,void 0)){var l=i.getPropertyValue(s);u(o,"opacity"!==s)&&(l=n(l))}return l},inArray:function(t,n,r){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),n.indexOf(t,r)},isArray:i,isClass:a,isDOMElement:o,isFunction:function(t){return"function"==typeof t},isNumber:l,isObject:s,isString:r,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,n={},r=function(t,e){return"object"!=typeof t&&(t={}),g(e,function(n,i){"__proto__"!==i&&"constructor"!==i&&(!s(n,!0)||a(n)||o(n)?t[i]=e[i]:t[i]=r(t[i]||{},n))}),t};!0===e[0]&&(n=e[1],e=Array.prototype.slice.call(e,2));var i=e.length;for(t=0;t<i;t++)n=r(n,e[t]);return n},normalizeTickInterval:function(t,e,n,r,i){var s=t,o=t/(n=u(n,d(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===r&&(1===n?e=e.filter(function(t){return 0==t%1}):.1>=n&&(e=[1/n]))),r=0;r<e.length&&(s=e[r],!(i&&s*n>=t||!i&&o<=(e[r]+(e[r+1]||e[r]))/2));r++);return f(s*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:g,offset:function(t){var e=O.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(b.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(b.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,n){return Array((e||2)+1-String(t).replace("-","").length).join(n||"0")+t},pick:u,pInt:n,relativeLength:function(t,e,n){return/%$/.test(t)?e*parseFloat(t)/100+(n||0):parseFloat(t)},removeEvent:m,splat:function(t){return i(t)?t:[t]},stableSort:function(t,e){var n,r,i=t.length;for(r=0;r<i;r++)t[r].safeI=r;for(t.sort(function(t,r){return 0===(n=e(t,r))?t.safeI-r.safeI:n}),r=0;r<i;r++)delete t[r].safeI},syncTimeout:function(t,e,n){return 0<e?setTimeout(t,e,n):(t.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:_,useSerialIds:function(t){return w=u(t,w)},wrap:function(t,e,n){var r=t[e];t[e]=function(){var t=arguments,e=this;return n.apply(this,[function(){return r.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}},x}),e(n,"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(n,"Core/Color/Color.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(t,e){var n=e.isNumber,r=e.merge,i=e.pInt;return e=function(){function e(n){this.rgba=[NaN,NaN,NaN,NaN],this.input=n;var r=t.Color;return r&&r!==e?new r(n):this instanceof e?void this.init(n):new e(n)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.init=function(t){var n;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 r=t.length,i=parseInt(t.substr(1),16);7===r?n=[(16711680&i)>>16,(65280&i)>>8,255&i,1]:4===r&&(n=[(3840&i)>>4|(3840&i)>>8,(240&i)>>4|240&i,(15&i)<<4|15&i,1])}if(!n)for(i=e.parsers.length;i--&&!n;){var s=e.parsers[i];(r=s.regex.exec(t))&&(n=s.parse(r))}}n&&(this.rgba=n)},e.prototype.get=function(t){var e=this.input,i=this.rgba;if("object"==typeof e&&void 0!==this.stops){var s=r(e);return s.stops=[].slice.call(s.stops),this.stops.forEach(function(e,n){s.stops[n]=[s.stops[n][0],e.get(t)]}),s}return i&&n(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(n(t)&&0!==t)for(var r=0;3>r;r++)e[r]+=i(255*t),0>e[r]&&(e[r]=0),255<e[r]&&(e[r]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var r=this.rgba,i=t.rgba;return n(r[0])&&n(i[0])?((t=1!==i[3]||1!==r[3])?"rgba(":"rgb(")+Math.round(i[0]+(r[0]-i[0])*(1-e))+","+Math.round(i[1]+(r[1]-i[1])*(1-e))+","+Math.round(i[2]+(r[2]-i[2])*(1-e))+(t?","+(i[3]+(r[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(n,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),e(n,"Core/Time.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(t,e){var n=t.win,r=e.defined,i=e.error,s=e.extend,o=e.isObject,a=e.merge,l=e.objectEach,A=e.pad,c=e.pick,h=e.splat,u=e.timeUnits,p=t.isSafari&&n.Intl&&n.Intl.DateTimeFormat.prototype.formatRange,d=t.isSafari&&n.Intl&&!n.Intl.DateTimeFormat.prototype.formatRange;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=n.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var n=e.getTime(),r=n-this.getTimezoneOffset(e);return e.setTime(r),t=e["getUTC"+t](),e.setTime(n),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,n){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](n);var r=this.getTimezoneOffset(e);return r=e.getTime()-r,e.setTime(r),e["setUTC"+t](n),t=this.getTimezoneOffset(e),r=e.getTime()+t,e.setTime(r)}return this.useUTC||p&&"FullYear"===t?e["setUTC"+t](n):e["set"+t](n)},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||n.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,n,r,i,s){if(this.useUTC){var o=this.Date.UTC.apply(0,arguments),a=this.getTimezoneOffset(o);o+=a;var l=this.getTimezoneOffset(o);a!==l?o+=l-a:a-36e5!==this.getTimezoneOffset(o-36e5)||d||(o-=36e5)}else o=new this.Date(t,e,c(n,1),c(r,0),c(i,0),c(s,0)).getTime();return o},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,r=e.getTimezoneOffset,s=e.moment||n.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(s)return function(t){return 6e4*-s.tz(t,e.timezone).utcOffset()};i(25)}return this.useUTC&&r?function(t){return 6e4*r(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,n,i){if(!r(n)||isNaN(n))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=c(e,"%Y-%m-%d %H:%M:%S");var o=this,a=new this.Date(n),h=this.get("Hours",a),u=this.get("Day",a),p=this.get("Date",a),d=this.get("Month",a),f=this.get("FullYear",a),g=t.defaultOptions.lang,m=g&&g.weekdays,y=g&&g.shortWeekdays;return a=s({a:y?y[u]:m[u].substr(0,3),A:m[u],d:A(p),e:A(p,2," "),w:u,b:g.shortMonths[d],B:g.months[d],m:A(d+1),o:d+1,y:f.toString().substr(2,2),Y:f,H:A(h),k:h,I:A(h%12||12),l:h%12||12,M:A(this.get("Minutes",a)),p:12>h?"AM":"PM",P:12>h?"am":"pm",S:A(a.getSeconds()),L:A(Math.floor(n%1e3),3)},t.dateFormats),l(a,function(t,r){for(;-1!==e.indexOf("%"+r);)e=e.replace("%"+r,"function"==typeof t?t.call(o,n):t)}),i?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return o(t,!0)?t:{main:(t=h(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,n,i){var o,a=this,l=[],A={},h=new a.Date(e),p=t.unitRange,d=t.count||1;if(i=c(i,1),r(e)){if(a.set("Milliseconds",h,p>=u.second?0:d*Math.floor(a.get("Milliseconds",h)/d)),p>=u.second&&a.set("Seconds",h,p>=u.minute?0:d*Math.floor(a.get("Seconds",h)/d)),p>=u.minute&&a.set("Minutes",h,p>=u.hour?0:d*Math.floor(a.get("Minutes",h)/d)),p>=u.hour&&a.set("Hours",h,p>=u.day?0:d*Math.floor(a.get("Hours",h)/d)),p>=u.day&&a.set("Date",h,p>=u.month?1:Math.max(1,d*Math.floor(a.get("Date",h)/d))),p>=u.month){a.set("Month",h,p>=u.year?0:d*Math.floor(a.get("Month",h)/d));var f=a.get("FullYear",h)}p>=u.year&&a.set("FullYear",h,f-f%d),p===u.week&&(f=a.get("Day",h),a.set("Date",h,a.get("Date",h)-f+i+(f<i?-7:0))),f=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||!r(n)||(o=n-e>4*u.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(n)),e=h.getTime(),h=1;e<n;)l.push(e),e=p===u.year?a.makeTime(f+h*d,0):p===u.month?a.makeTime(f,i+h*d):!o||p!==u.day&&p!==u.week?o&&p===u.hour&&1<d?a.makeTime(f,i,g,m+h*d):e+p*d:a.makeTime(f,i,g+h*d*(p===u.day?1:7)),h++;l.push(e),p<=u.hour&&1e4>l.length&&l.forEach(function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(A[t]="day")})}return l.info=s(t,{higherRanks:A,totalRange:p*d}),l},e.prototype.getDateFormat=function(t,e,n,r){var i=this.dateFormat("%m-%d %H:%M:%S.%L",e),s={millisecond:15,second:12,minute:9,hour:6,day:3},o="millisecond";for(a in u){if(t===u.week&&+this.dateFormat("%w",e)===n&&"00:00:00.000"===i.substr(6)){var a="week";break}if(u[a]>t){a=o;break}if(s[a]&&i.substr(s[a])!=="01-01 00:00:00.000".substr(s[a]))break;"week"!==a&&(o=a)}return this.resolveDTLFormat(r[a]).main},e}(),e}),e(n,"Core/Defaults.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palettes.js"],n["Core/Time.js"],n["Core/Utilities.js"]],function(t,e,n,r,i,s){e=e.parse;var o=s.merge,a={colors:r.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:n.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:n.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 l=new i(o(a.global,a.time));return{defaultOptions:a,defaultTime:l,getOptions:function(){return a},setOptions:function(t){return o(!0,a,t),(t.time||t.global)&&(n.time?n.time.update(o(a.global,a.time,t.global,t.time)):n.time=l),a}}}),e(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(t,e,n){var r=t.parse,i=e.win,s=n.isNumber,o=n.objectEach;return function(){function t(t,e,n){this.pos=NaN,this.options=e,this.elem=t,this.prop=n}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var n=this.now||0,r=[];if(1!==n&&e&&t)if(e.length===t.length&&1>n)for(var i=0;i<t.length;i++){for(var o=e[i],a=t[i],l=[],A=0;A<a.length;A++){var c=o[A],h=a[A];s(c)&&s(h)&&("A"!==a[0]||4!==A&&5!==A)?l[A]=c+n*(h-c):l[A]=h}r.push(l)}else r=t;else r=this.toD||[];this.elem.attr("d",r,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,n=this.now,r=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,n,null,!0):t.style[e]=n+this.unit,r&&r.call(t,n,this)},t.prototype.run=function(e,n,r){var s=this,o=s.options,a=function(t){return!a.stopped&&s.step(t)},l=i.requestAnimationFrame||function(t){setTimeout(t,13)},A=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&l(A)};e!==n||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=n,this.unit=r,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&l(A)):(delete o.curAnim[this.prop],o.complete&&0===Object.keys(o.curAnim).length&&o.complete.call(this.elem))},t.prototype.step=function(t){var e=+new Date,n=this.options,r=this.elem,i=n.complete,s=n.duration,a=n.curAnim;if(r.attr&&!r.element)t=!1;else if(t||e>=s+this.startTime){this.now=this.end,this.pos=1,this.update();var l=a[this.prop]=!0;o(a,function(t){!0!==t&&(l=!1)}),l&&i&&i.call(r),t=!1}else this.pos=n.easing((e-this.startTime)/s),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,n){function r(t,e){for(;t.length<u;){var n=t[0],r=e[u-t.length];r&&"M"===n[0]&&(t[0]="C"===r[0]?["C",n[1],n[2],n[1],n[2],n[1],n[2]]:["L",n[1],n[2]]),t.unshift(n),l&&(n=t.pop(),t.push(t[t.length-1],n))}}function i(t,e){for(;t.length<u;)if("C"===(e=t[Math.floor(t.length/A)-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),l){var n=t[Math.floor(t.length/A)].slice();t.splice(t.length/2,0,e,n)}else t.push(e)}var o=t.startX,a=t.endX;n=n.slice();var l=t.isArea,A=l?2:1;if(!(e=e&&e.slice()))return[n,n];if(o&&a&&a.length){for(t=0;t<o.length;t++){if(o[t]===a[0]){var c=t;break}if(o[0]===a[a.length-o.length+t]){c=t;var h=!0;break}if(o[o.length-1]===a[a.length-o.length+t]){c=o.length-t;break}}void 0===c&&(e=[])}if(e.length&&s(c)){var u=n.length+c*A;h?(r(e,n),i(n,e)):(r(n,e),i(e,n))}return[e,n]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)},t.timers=[],t}()}),e(n,"Core/Animation/AnimationUtilities.js",[n["Core/Animation/Fx.js"],n["Core/Utilities.js"]],function(t,e){function n(t){return l(t)?A({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function r(e,n){for(var r=t.timers.length;r--;)t.timers[r].elem!==e||n&&n!==t.timers[r].prop||(t.timers[r].stopped=!0)}var i=e.defined,s=e.getStyle,o=e.isArray,a=e.isNumber,l=e.isObject,A=e.merge,c=e.objectEach,h=e.pick;return{animate:function(e,n,i){var h,u,p,d="";if(!l(i)){var f=arguments;i={duration:f[2],easing:f[3],complete:f[4]}}a(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=A(n),c(n,function(a,l){r(e,l),p=new t(e,i,l),u=void 0,"d"===l&&o(n.d)?(p.paths=p.initPath(e,e.pathArray,n.d),p.toD=n.d,h=0,u=1):e.attr?h=e.attr(l):(h=parseFloat(s(e,l))||0,"opacity"!==l&&(d="px")),u||(u=a),"string"==typeof u&&u.match("px")&&(u=u.replace(/px/g,"")),p.run(h,u,d)})},animObject:n,getDeferredAnimation:function(t,e,r){var s=n(e),o=0,a=0;return(r?[r]:t.series).forEach(function(t){t=n(t.options.animation),o=e&&i(e.defer)?s.defer:Math.max(o,t.duration+t.defer),a=Math.min(s.duration,t.duration)}),t.renderer.forExport&&(o=0),{defer:Math.max(0,o-a),duration:Math.min(o,a)}},setAnimation:function(t,e){e.renderer.globalAnimation=h(t,e.options.chart.animation,!0)},stop:r}}),e(n,"Core/Renderer/HTML/AST.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],function(t,e){var n=t.SVG_NS,r=e.attr,i=e.createElement,s=e.css,o=e.error,a=e.isFunction,l=e.isString,A=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 A(t,function(n,r){var i=!0;-1===e.allowedAttributes.indexOf(r)&&(i=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(r)&&(i=l(n)&&e.allowedReferences.some(function(t){return 0===n.indexOf(t)})),i||(o(33,!1,void 0,{"Invalid attribute in config":"".concat(r)}),delete t[r]),l(n)&&t[r]&&(t[r]=n.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 n=e.shift();return n&&e.length&&(t[n.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})]=e.join(":")),t},{})},e.setElementHTML=function(t,n){t.innerHTML=e.emptyHTML,n&&new e(n).addToDOM(t)},e.prototype.addToDOM=function(i){return function i(a,l){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 d=u;else if(-1!==e.allowedTags.indexOf(c)||p){c=t.doc.createElementNS("svg"===c?n:l.namespaceURI||n,c);var f=a.attributes||{};A(a,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(f[e]=t)}),r(c,p?f:e.filterUserAttributes(f)),a.style&&s(c,a.style),u&&c.appendChild(u),i(a.children||[],c),d=c}else o(33,!1,void 0,{"Invalid tagName in config":c});d&&l.appendChild(d),h=d}),h}(this.nodes,i)},e.prototype.parseMarkup=function(t){var n=[];if(t=t.trim().replace(/ style=(["'])/g," data-style=$1"),p)t=(new DOMParser).parseFromString(h?h.createHTML(t):t,"text/html");else{var r=i("div");r.innerHTML=t,t={body:r}}var s=function(t,n){var r=t.nodeName.toLowerCase(),i={tagName:r};if("#text"===r&&(i.textContent=t.textContent||""),r=t.attributes){var o={};[].forEach.call(r,function(t){"data-style"===t.name?i.style=e.parseStyle(t.value):o[t.name]=t.value}),i.attributes=o}if(t.childNodes.length){var a=[];[].forEach.call(t.childNodes,function(t){s(t,a)}),a.length&&(i.children=a)}n.push(i)};return[].forEach.call(t.body.childNodes,function(t){return s(t,n)}),n},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(n,"Core/FormatUtilities.js",[n["Core/Defaults.js"],n["Core/Utilities.js"]],function(t,e){function n(t,e,n,i){t=+t||0,e=+e;var s=r.lang,A=(t.toString().split(".")[1]||"").split("e")[0].length,c=t.toString().split("e"),h=e;if(-1===e)e=Math.min(A,20);else if(o(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,A)-1)).toFixed(e);var p=3<(A=String(l(u))).length?A.length%3:0;return n=a(n,s.decimalPoint),i=a(i,s.thousandsSep),t=(0>t?"-":"")+(p?A.substr(0,p)+i:""),t=0>+c[1]&&!h?"0":t+A.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+i),e&&(t+=n+u.slice(-e)),c[1]&&0!==+t&&(t+="e"+c[1]),t}var r=t.defaultOptions,i=t.defaultTime,s=e.getNestedProperty,o=e.isNumber,a=e.pick,l=e.pInt;return{dateFormat:function(t,e,n){return i.dateFormat(t,e,n)},format:function(t,e,o){var a="{",l=!1,A=/f$/,c=/\.([0-9])/,h=r.lang,u=o&&o.time||i;o=o&&o.numberFormatter||n;for(var p=[];t;){var d=t.indexOf(a);if(-1===d)break;var f=t.slice(0,d);if(l){if(f=f.split(":"),a=s(f.shift()||"",e),f.length&&"number"==typeof a)if(f=f.join(":"),A.test(f)){var g=parseInt((f.match(c)||["","-1"])[1],10);null!==a&&(a=o(a,g,h.decimalPoint,-1<f.indexOf(",")?h.thousandsSep:""))}else a=u.dateFormat(f,a);p.push(a)}else p.push(f);t=t.slice(d+1),a=(l=!l)?"}":"{"}return p.push(t),p.join("")},numberFormat:n}}),e(n,"Core/Renderer/RendererUtilities.js",[n["Core/Utilities.js"]],function(t){var e,n=t.clamp,r=t.pick,i=t.stableSort;return function(t){t.distribute=function t(e,s,o){var a,l=e,A=l.reducedLen||s,c=function(t,e){return(e.rank||0)-(t.rank||0)},h=function(t,e){return t.target-e.target},u=!0,p=[],d=0;for(a=e.length;a--;)d+=e[a].size;if(d>A){for(i(e,c),d=a=0;d<=A;)d+=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:r(t.align,.5)}});u;){for(a=e.length;a--;)A=e[a],c=(Math.min.apply(0,A.targets)+Math.max.apply(0,A.targets))/2,A.pos=n(c-A.size*A.align,0,s-A.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>s&&(e[a-1].pos=s-e[a-1].size),e.splice(a,1),u=!0)}return l.push.apply(l,p),a=0,e.some(function(e){var n=0;return(e.targets||[]).some(function(){return l[a].pos=e.pos+n,void 0!==o&&Math.abs(l[a].pos-l[a].target)>o?(l.slice(0,a+1).forEach(function(t){return delete t.pos}),l.reducedLen=(l.reducedLen||s)-.1*s,l.reducedLen>.1*s&&t(l,s,o),!0):(n+=l[a].size,a++,!1)})}),i(l,h),l}}(e||(e={})),e}),e(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(t,e,n,r){var i=t.animate,s=t.animObject,o=t.stop,a=n.deg2rad,l=n.doc,A=n.svg,c=n.SVG_NS,h=n.win,u=r.addEvent,p=r.attr,d=r.createElement,f=r.css,g=r.defined,m=r.erase,y=r.extend,v=r.fireEvent,O=r.isArray,b=r.isFunction,x=r.isString,w=r.merge,_=r.objectEach,S=r.pick,C=r.pInt,E=r.syncTimeout,B=r.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=S(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,n){n.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,n=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 r=this.zIndexSetter();return r||(t?t.element:e.box).appendChild(n),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var n=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce(function(t,e){return-1===n.indexOf(e)&&t.push(e),t},n?[n]:[]).join(" "),t!==n&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,n){var r,i,s,o={},a=this.renderer,l=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!n||x(n))&&(this.alignTo=r=n||"renderer",m(l,this),l.push(this),n=void 0)):(t=this.alignOptions,e=this.alignByTranslate,r=this.alignTo),n=S(n,a[r],"scrollablePlotBox"===r?a.plotBox:void 0,a),r=t.align;var A=t.verticalAlign;return a=(n.x||0)+(t.x||0),l=(n.y||0)+(t.y||0),"right"===r?i=1:"center"===r&&(i=2),i&&(a+=(n.width-(t.width||0))/i),o[e?"translateX":"x"]=Math.round(a),"bottom"===A?s=1:"middle"===A&&(s=2),s&&(l+=(n.height-(t.height||0))/s),o[e?"translateY":"y"]=Math.round(l),this[this.placed?"animate":"attr"](o),this.placed=!0,this.alignAttr=o,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,n){var r=this,o=s(S(e,this.renderer.globalAnimation,!0));return e=o.defer,S(l.hidden,l.msHidden,l.webkitHidden,!1)&&(o.duration=0),0!==o.duration?(n&&(o.complete=n),E(function(){r.element&&i(r,t,o)},e)):(this.attr(t,void 0,n||o.complete),_(t,function(t,e){o.step&&o.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 r=t.split(" ");if(t=r[r.length-1],(r=r[0])&&"none"!==r&&n.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,n){return 2*Number(e)+n}),this.removeTextOutline();var i=l.createElementNS(c,"tspan");p(i,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":r,"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 s=0;[].forEach.call(t.querySelectorAll("text tspan"),function(t){s+=Number(t.getAttribute("dy"))}),(r=l.createElementNS(c,"tspan")).textContent="​",p(r,{x:Number(e.getAttribute("x")),dy:-s}),i.appendChild(r),t.insertBefore(i,t.firstChild)}},t.prototype.attr=function(t,e,n,r){var i,s,a,l=this.element,A=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,l):(_(t,function(e,n){s=!1,r||o(this,n),this.symbolName&&-1!==A.indexOf(n)&&(i||(this.symbolAttr(t),i=!0),s=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),s||((a=this[n+"Setter"]||this._defaultSetter).call(this,e,n,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,e,a))},this),this.afterSetters()),n&&n.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 n=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+n,t.y=Math.floor(t.y||this.y||0)+n,t.width=Math.floor((t.width||this.width||0)-2*n),t.height=Math.floor((t.height||this.height||0)-2*n),g(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,n,r){var i,s,o,a,l,A,c,h,u,p,d,f=this.renderer,m=[];v(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?s="radialGradient":t.linearGradient&&(s="linearGradient"),s){if(o=t[s],l=f.gradients,A=t.stops,u=r.radialReference,O(o)&&(t[s]=o={x1:o[0],y1:o[1],x2:o[2],y2:o[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===s&&u&&!g(o.gradientUnits)&&(a=o,o=w(o,f.getRadialAttr(u,a),{gradientUnits:"userSpaceOnUse"})),_(o,function(t,e){"id"!==e&&m.push(e,t)}),_(A,function(t){m.push(t)}),m=m.join(","),l[m])p=l[m].attr("id");else{o.id=p=B();var y=l[m]=f.createElement(s).attr(o).add(f.defs);y.radAttr=a,y.stops=[],A.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=f.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":h}).add(y),y.stops.push(t)})}d="url("+f.url+"#"+p+")",r.setAttribute(n,d),r.gradient=m,t.toString=function(){return d}}})},t.prototype.css=function(t){var e=this.styles,n={},r=this.element,i=!e;if(t.color&&(t.fill=t.color),e&&_(t,function(t,r){e&&e[r]!==t&&(n[r]=t,i=!0)}),i){if(e&&(t=y(e,n)),null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===r.nodeName.toLowerCase()&&t.width)var s=this.textWidth=C(t.width);this.styles=t,s&&!A&&this.renderer.forExport&&delete t.width;var o=w(t);r.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(t){return o&&delete o[t]}),f(r,o),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 n=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=n.length;t--;)n[t]=""+C(n[t])*S(e,NaN);t=n.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},n=t.renderer,r=e.ownerSVGElement,i=n.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,o(t),t.clipPath&&r){var s=t.clipPath;[].forEach.call(r.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){-1<t.getAttribute("clip-path").indexOf(s.element.id)&&t.removeAttribute("clip-path")}),t.clipPath=s.destroy()}if(t.stops){for(r=0;r<t.stops.length;r++)t.stops[r].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),n.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(n.alignedObjects,t),_(t,function(e,n){t[n]&&t[n].parentGroup===t&&t[n].destroy&&t[n].destroy(),delete t[n]})},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},t.prototype.dSetter=function(t,e,n){O(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce(function(t,e,n){return e&&e.join?(n?t+" ":"")+e.join(" "):(e||"").toString()},"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(n.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0},{duration:S(t,150),complete:function(){e.hide()}})},t.prototype.fillSetter=function(t,e,n){"string"==typeof t?n.setAttribute(e,t):t&&this.complexColor(t,e,n)},t.prototype.getBBox=function(e,n){var r=this.alignValue,i=this.element,s=this.renderer,o=this.styles,l=this.textStr,A=s.cache,c=s.cacheKeys,h=i.namespaceURI===this.SVG_NS;n=S(n,this.rotation,0);var u,p=s.styledMode?i&&t.prototype.getStyle.call(i,"font-size"):o&&o.fontSize;if(g(l)){var d=l.toString();-1===d.indexOf("<")&&(d=d.replace(/[0-9]/g,"0")),d+=["",n,p,this.textWidth,r,o&&o.textOverflow,o&&o.fontWeight].join()}if(d&&!e&&(u=A[d]),!u){if(h||s.forExport){try{var m=this.fakeTS&&function(t){var e=i.querySelector(".highcharts-text-outline");e&&f(e,{display:t})};b(m)&&m("none"),u=i.getBBox?y({},i.getBBox()):{width:i.offsetWidth,height:i.offsetHeight,x:0,y:0},b(m)&&m("")}catch(t){}(!u||0>u.width)&&(u={x:0,y:0,width:0,height:0})}else u=this.htmlGetBBox();if(s.isSVG&&(s=u.width,e=u.height,h&&(u.height=e={"11px,17":14,"13px,20":16}[""+(p||"")+",".concat(Math.round(e))]||e),n)){h=Number(i.getAttribute("y")||0)-u.y,r={right:1,center:.5}[r||0]||0,o=n*a,p=(n-90)*a;var v=s*Math.cos(o);n=s*Math.sin(o),m=Math.cos(p),o=Math.sin(p),v=(m=(p=(s=u.x+r*(s-v)+h*m)+v)-e*m)-v,n=(e=(r=(h=u.y+h-r*n+h*o)+n)-e*o)-n,u.x=Math.min(s,p,m,v),u.y=Math.min(h,r,e,n),u.width=Math.max(s,p,m,v)-u.x,u.height=Math.max(h,r,e,n)-u.y}if(d&&(""===l||0<u.height)){for(;250<c.length;)delete A[c.shift()];A[d]||c.push(d),A[d]=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?d(e):l.createElementNS(this.SVG_NS,e),this.renderer=t,v(this,"afterInit")},t.prototype.on=function(t,e){var n=this.onEvents;return n[t]&&n[t](),n[t]=u(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,n){this.opacity=t=Number(Number(t).toFixed(3)),n.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 n=this;e=w(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);var r=this.renderer.url,i=this.text||this,s=i.textPath,o=e.attributes,a=e.enabled;return t=t||s&&s.path,s&&s.undo(),t&&a?(e=u(i,"afterModifyTree",function(e){if(t&&a){var s=t.attr("id");s||t.attr("id",s=B());var l={x:0,y:0};g(o.dx)&&(l.dx=o.dx,delete o.dx),g(o.dy)&&(l.dy=o.dy,delete o.dy),i.attr(l),n.attr({transform:""}),n.box&&(n.box=n.box.destroy()),l=e.nodes.slice(0),e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:y(o,{"text-anchor":o.textAnchor,href:""+r+"#".concat(s)}),children:l}}}),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,n){var r=[],i=this.element,s=this.oldShadowOptions,o=this.parentGroup,a=o&&90===o.rotation;o={color:"#000000",offsetX:a?-1:1,offsetY:a?-1:1,opacity:.15,width:3};var l,A=!1;if(!0===t?l=o:"object"==typeof t&&(l=y(o,t)),l&&(l&&s&&_(l,function(t,e){t!==s[e]&&(A=!0)}),A&&this.destroyShadows(),this.oldShadowOptions=l),l){if(!this.shadows){o=l.opacity/l.width;var c=a?"translate(".concat(l.offsetY,", ").concat(l.offsetX,")"):"translate(".concat(l.offsetX,", ").concat(l.offsetY,")");for(a=1;a<=l.width;a++){var h=i.cloneNode(!1),u=2*l.width+1-2*a;p(h,{stroke:t.color||"#000000","stroke-opacity":o*a,"stroke-width":u,transform:c,fill:"none"}),h.setAttribute("class",(h.getAttribute("class")||"")+" highcharts-shadow"),n&&(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),r.push(h)}this.shadows=r}}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,n){this[e]=t,n.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=C(t);else if(""!==t){var n=l.createElementNS(c,"rect");p(n,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(n),e=n.getBBox().width,n.parentNode.removeChild(n)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(n){e[n]=S(t[n],e[n])}),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,n=e.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(n,e.firstChild):e.appendChild(n),n.textContent=String(S(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,n){var r=this.shadows;if(r)for(var i=r.length;i--;)n.call(r[i],"height"===t?Math.max(e-(r[i].cutHeight||0),0):"d"===t?this.d:e,t,r[i])},t.prototype.updateTransform=function(){var t=this.element,e=this.matrix,n=this.rotation;n=void 0===n?0:n;var r=this.scaleX,i=this.scaleY,s=this.translateX,o=this.translateY;s=["translate("+(void 0===s?0:s)+","+(void 0===o?0:o)+")"],g(e)&&s.push("matrix("+e.join(",")+")"),n&&s.push("rotate("+n+" "+S(this.rotationOriginX,t.getAttribute("x"),0)+" "+S(this.rotationOriginY,t.getAttribute("y")||0)+")"),(g(r)||g(i))&&s.push("scale("+S(r,1)+" "+S(i,1)+")"),s.length&&!(this.text||this).textPath&&t.setAttribute("transform",s.join(" "))},t.prototype.visibilitySetter=function(t,e,n){"inherit"===t?n.removeAttribute(e):this[e]!==t&&n.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 n=this.renderer,r=this.parentGroup,i=(r||n).element||n.box,s=this.element;n=i===n.box;var o,a=!1,l=this.added;if(g(t)?(s.setAttribute("data-z-index",t),t=+t,this[e]===t&&(l=!1)):g(this[e])&&s.removeAttribute("data-z-index"),this[e]=t,l){for((t=this.zIndex)&&r&&(r.handleZ=!0),o=(e=i.childNodes).length-1;0<=o&&!a;o--){l=(r=e[o]).getAttribute("data-z-index");var A=!g(l);r!==s&&(0>t&&A&&!n&&!o?(i.insertBefore(s,e[o]),a=!0):(C(l)<=t||A&&(!g(t)||0<=t))&&(i.insertBefore(s,e[o+1]||null),a=!0))}a||(i.insertBefore(s,e[n?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(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],function(t){var e;return function(e){var n;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=n),e.rendererTypes[t]||e.rendererTypes[n]},e.registerRendererType=function(r,i,s){e.rendererTypes[r]=i,n&&!s||(n=r,t.Renderer=i)}}(e||(e={})),e}),e(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=e.defined,i=e.extend,s=e.isNumber,o=e.merge,a=e.pick,l=e.removeEvent;return function(e){function A(t,n,r,i,s,o,a,l,c,h){var u,p=e.call(this)||this;return p.paddingLeftSetter=p.paddingSetter,p.paddingRightSetter=p.paddingSetter,p.init(t,"g"),p.textStr=n,p.x=r,p.y=i,p.anchorX=o,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,l).attr({zIndex:1}),"string"==typeof s&&((u=/^url\((.*?)\)$/.test(s))||p.renderer.symbols[s])&&(p.symbolKey=s),p.bBox=A.emptyBBox,p.padding=3,p.baselineOffset=0,p.needsBox=t.styledMode||u,p.deferredAttr={},p.alignFactor=0,p}return n(A,e),A.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&s(this.xSetting)&&this.attr({x:this.xSetting}))},A.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},A.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},A.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},A.prototype.css=function(e){if(e){var n={};e=o(e),A.textProps.forEach(function(t){void 0!==e[t]&&(n[t]=e[t],delete e[t])}),this.text.css(n),"fontSize"in n||"fontWeight"in n?this.updateTextPadding():("width"in n||"textOverflow"in n)&&this.updateBoxSize()}return t.prototype.css.call(this,e)},A.prototype.destroy=function(){l(this.element,"mouseenter"),l(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},A.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},A.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}},A.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},A.prototype.heightSetter=function(t){this.heightSetting=t},A.prototype.onAdd=function(){this.text.add(this),this.attr({text:a(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&r(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},A.prototype.paddingSetter=function(t,e){s(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},A.prototype.rSetter=function(t,e){this.boxAttr(e,t)},A.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},A.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},A.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},A.prototype["text-alignSetter"]=function(t){this.textAlign=t},A.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},A.prototype.updateBoxSize=function(){var t=this.text,e=t.element.style,n={},o=this.padding,a=this.bBox=s(this.widthSetting)&&s(this.heightSetting)&&!this.textAlign||!r(t.textStr)?A.emptyBBox:t.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*o,e=this.renderer.fontMetrics(e&&e.fontSize,t),this.baselineOffset=o+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(),n.x=t,n.y=(this.baseline?-this.baselineOffset:0)+t,n.width=Math.round(this.width),n.height=Math.round(this.height),this.box.attr(i(n,this.deferredAttr)),this.deferredAttr={})},A.prototype.updateTextPadding=function(){var t=this.text;if(!t.textPath){this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,n=a(this.paddingLeft,this.padding);r(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(n+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),n===t.x&&e===t.y||(t.attr("x",n),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=n,t.y=e}},A.prototype.widthSetter=function(t){this.widthSetting=s(t)?t:void 0},A.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},A.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)},A.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},A.emptyBBox={width:0,height:0,x:0,y:0},A.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),A}(t)}),e(n,"Core/Renderer/SVG/Symbols.js",[n["Core/Utilities.js"]],function(t){function e(t,e,n,r,s){var a=[];if(s){var l=s.start||0,A=o(s.r,n);n=o(s.r,r||n);var c=(s.end||0)-.001;r=s.innerR;var h=o(s.open,.001>Math.abs((s.end||0)-l-2*Math.PI)),u=Math.cos(l),p=Math.sin(l),d=Math.cos(c),f=Math.sin(c);l=o(s.longArc,.001>c-l-Math.PI?0:1),a.push(["M",t+A*u,e+n*p],["A",A,n,0,l,o(s.clockwise,1),t+A*d,e+n*f]),i(r)&&a.push(h?["M",t+r*d,e+r*f]:["L",t+r*d,e+r*f],["A",r,r,0,l,i(s.clockwise)?1-s.clockwise:0,t+r*u,e+r*p]),h||a.push(["Z"])}return a}function n(t,e,n,i,s){return s&&s.r?r(t,e,n,i,s):[["M",t,e],["L",t+n,e],["L",t+n,e+i],["L",t,e+i],["Z"]]}function r(t,e,n,r,i){return[["M",t+(i=i&&i.r||0),e],["L",t+n-i,e],["C",t+n,e,t+n,e,t+n,e+i],["L",t+n,e+r-i],["C",t+n,e+r,t+n,e+r,t+n-i,e+r],["L",t+i,e+r],["C",t,e+r,t,e+r,t,e+r-i],["L",t,e+i],["C",t,e,t,e,t+i,e]]}var i=t.defined,s=t.isNumber,o=t.pick;return{arc:e,callout:function(t,e,n,i,o){var a=Math.min(o&&o.r||0,n,i),l=a+6,A=o&&o.anchorX;o=o&&o.anchorY||0;var c=r(t,e,n,i,{r:a});return s(A)?(t+A>=n?o>e+l&&o<e+i-l?c.splice(3,1,["L",t+n,o-6],["L",t+n+6,o],["L",t+n,o+6],["L",t+n,e+i-a]):c.splice(3,1,["L",t+n,i/2],["L",A,o],["L",t+n,i/2],["L",t+n,e+i-a]):0>=t+A?o>e+l&&o<e+i-l?c.splice(7,1,["L",t,o+6],["L",t-6,o],["L",t,o-6],["L",t,e+a]):c.splice(7,1,["L",t,i/2],["L",A,o],["L",t,i/2],["L",t,e+a]):o&&o>i&&A>t+l&&A<t+n-l?c.splice(5,1,["L",A+6,e+i],["L",A,e+i+6],["L",A-6,e+i],["L",t+a,e+i]):o&&0>o&&A>t+l&&A<t+n-l&&c.splice(1,1,["L",A-6,e],["L",A,e-6],["L",A+6,e],["L",n-a,e]),c):c},circle:function(t,n,r,i){return e(t+r/2,n+i/2,r/2,i/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,n,r){return[["M",t+n/2,e],["L",t+n,e+r/2],["L",t+n/2,e+r],["L",t,e+r/2],["Z"]]},rect:n,roundedRect:r,square:n,triangle:function(t,e,n,r){return[["M",t+n/2,e],["L",t+n,e+r],["L",t,e+r],["Z"]]},"triangle-down":function(t,e,n,r){return[["M",t,e],["L",t+n,e],["L",t+n/2,e+r],["Z"]]}}}),e(n,"Core/Renderer/SVG/TextBuilder.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(t,e,n){var r=e.doc,i=e.SVG_NS,s=e.win,o=n.attr,a=n.extend,l=n.fireEvent,A=n.isString,c=n.objectEach,h=n.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,n=e.element,i=e.renderer,s=h(e.textStr,"").toString(),o=-1!==s.indexOf("<"),a=n.childNodes;i=this.width&&!e.added&&i.box;var l=[s,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(l!==e.textCache){for(e.textCache=l,delete e.actualWidth,l=a.length;l--;)n.removeChild(a[l]);o||this.ellipsis||this.width||e.textPath||-1!==s.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(s))?""!==s&&(i&&i.appendChild(n),s=new t(s),this.modifyTree(s.nodes),s.addToDOM(n),this.modifyDOM(),this.ellipsis&&-1!==(n.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),i&&i.removeChild(n)):n.appendChild(r.createTextNode(this.unescapeEntities(s))),A(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,n=this.svgElement,a=o(n.element,"x");for(n.firstLineMetrics=void 0;(t=n.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)n.element.removeChild(t);[].forEach.call(n.element.querySelectorAll("tspan.highcharts-br"),function(t,r){t.nextSibling&&t.previousSibling&&(0===r&&1===t.previousSibling.nodeType&&(n.firstLineMetrics=n.renderer.fontMetrics(void 0,t.previousSibling)),o(t,{dy:e.getLineHeight(t.nextSibling),x:a}))});var l=this.width||0;if(l){var A=function(t,s){var A=t.textContent||"",c=A.replace(/([^\^])-/g,"$1- ").split(" "),h=!e.noWrap&&(1<c.length||1<n.element.childNodes.length),u=e.getLineHeight(s),p=0,d=n.actualWidth;if(e.ellipsis)A&&e.truncate(t,A,void 0,0,Math.max(0,l-parseInt(e.fontSize||12,10)),function(t,e){return t.substring(0,e)+"…"});else if(h){for(A=[],h=[];s.firstChild&&s.firstChild!==t;)h.push(s.firstChild),s.removeChild(s.firstChild);for(;c.length;)c.length&&!e.noWrap&&0<p&&(A.push(t.textContent||""),t.textContent=c.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,c,0===p&&d||0,l,function(t,e){return c.slice(0,e).join(" ").replace(/- /g,"-")}),d=n.actualWidth,p++;h.forEach(function(e){s.insertBefore(e,t)}),A.forEach(function(e){s.insertBefore(r.createTextNode(e),t),(e=r.createElementNS(i,"tspan")).textContent="​",o(e,{dy:u,x:a}),s.insertBefore(e,t)})}},c=function(t){[].slice.call(t.childNodes).forEach(function(e){e.nodeType===s.Node.TEXT_NODE?A(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(n.actualWidth=0),c(e))})};c(n.element)}},e.prototype.getLineHeight=function(t){var e;return t=t.nodeType===s.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,n=function(r,i){var s=r.attributes;s=void 0===s?{}:s;var o=r.children,l=r.style;l=void 0===l?{}:l;var A=r.tagName,c=e.renderer.styledMode;"b"===A||"strong"===A?c?s.class="highcharts-strong":l.fontWeight="bold":"i"!==A&&"em"!==A||(c?s.class="highcharts-emphasized":l.fontStyle="italic"),l&&l.color&&(l.fill=l.color),"br"===A?(s.class="highcharts-br",r.textContent="​",(i=t[i+1])&&i.textContent&&(i.textContent=i.textContent.replace(/^ +/gm,""))):"a"===A&&o&&o.some(function(t){return"#text"===t.tagName})&&(r.children=[{children:o,tagName:"tspan"}]),"#text"!==A&&"a"!==A&&(r.tagName="tspan"),a(r,{attributes:s,style:l}),o&&o.filter(function(t){return"#text"!==t.tagName}).forEach(n)};t.forEach(n),l(this.svgElement,"afterModifyTree",{nodes:t})},e.prototype.truncate=function(t,e,n,r,i,s){var o,a=this.svgElement,l=a.renderer,A=a.rotation,c=[],h=n?1:0,u=(e||n||"").length,p=u,d=function(i,o){o=o||i;var A=t.parentNode;if(A&&void 0===c[o])if(A.getSubStringLength)try{c[o]=r+A.getSubStringLength(0,n?o+1:o)}catch(t){}else l.getSpanWidth&&(t.textContent=s(e||n,i),c[o]=r+l.getSpanWidth(a,t));return c[o]};a.rotation=0;var f=d(t.textContent.length);if(r+f>i){for(;h<=u;)p=Math.ceil((h+u)/2),n&&(o=s(n,p)),f=d(p,o&&o.length-1),h===u?h=u+1:f>i?u=p-1:h=p;0===u?t.textContent="":e&&u===e.length-1||(t.textContent=o||s(e||n,p))}n&&n.splice(0,p),a.actualWidth=f,a.rotation=A},e.prototype.unescapeEntities=function(t,e){return c(this.renderer.escapes,function(n,r){e&&-1!==e.indexOf(n)||(t=t.toString().replace(new RegExp(n,"g"),r))}),t},e}()}),e(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Renderer/SVG/TextBuilder.js"],n["Core/Utilities.js"]],function(t,e,n,r,i,s,o,a,l){var A,c=n.charts,h=n.deg2rad,u=n.doc,p=n.isFirefox,d=n.isMS,f=n.isWebKit,g=n.noop,m=n.SVG_NS,y=n.symbolSizes,v=n.win,O=l.addEvent,b=l.attr,x=l.createElement,w=l.css,_=l.defined,S=l.destroyObjectProperties,C=l.extend,E=l.isArray,B=l.isNumber,T=l.isObject,P=l.isString,k=l.merge,I=l.pick,N=l.pInt,Q=l.uniqueKey;return n=function(){function n(t,e,n,r,i,s,o){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,n,r,i,s,o)}return n.prototype.init=function(t,e,n,r,i,s,o){var a,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),A=l.element;o||l.css(this.getStyle(r)),t.appendChild(A),b(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&b(A,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=A,this.boxWrapper=l,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=s,this.forExport=i,this.styledMode=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1),p&&t.getBoundingClientRect&&((e=function(){w(t,{left:0,top:0}),a=t.getBoundingClientRect(),w(t,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=O(v,"resize",e))},n.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},n.prototype.getReferenceURL=function(){if((p||f)&&u.getElementsByTagName("base").length){if(!_(A)){var e=Q();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),w(e,{position:"fixed",top:0,left:0,zIndex:9e5});var n=u.elementFromPoint(6,6);A="hitme"===(n&&n.id),u.body.removeChild(e)}if(A)return v.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},n.prototype.getStyle=function(t){return this.style=C({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},n.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},n.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),S(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},n.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},n.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]}},n.prototype.buildText=function(t){new a(t).buildSVG()},n.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"},n.prototype.button=function(e,n,r,i,s,o,a,l,A,c){void 0===s&&(s={});var h=this.label(e,n,r,A,void 0,void 0,c,void 0,"button"),u=this.styledMode;e=s.states||{};var p=0;delete(s=k(s)).states;var f=k({color:"#333333",cursor:"pointer",fontWeight:"normal"},s.style);delete s.style;var g=t.filterUserAttributes(s);if(h.attr(k({padding:8,r:2},g)),!u){g=k({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},g);var m=(o=k(g,{fill:"#e6e6e6"},t.filterUserAttributes(o||e.hover||{}))).style;delete o.style;var y=(a=k(g,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(a||e.select||{}))).style;delete a.style;var v=(l=k(g,{style:{color:"#cccccc"}},t.filterUserAttributes(l||e.disabled||{}))).style;delete l.style}return O(h.element,d?"mouseover":"mouseenter",function(){3!==p&&h.setState(1)}),O(h.element,d?"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,o,a,l][t||0]),T(t=[f,m,y,v][t||0])&&h.css(t))},u||(h.attr(g).css(C({cursor:"default"},f)),c&&h.text.css({pointerEvents:"none"})),h.on("touchstart",function(t){return t.stopPropagation()}).on("click",function(t){3!==p&&i.call(h,t)})},n.prototype.crispLine=function(t,e,n){void 0===n&&(n="round");var r=t[0],i=t[1];return _(r[1])&&r[1]===i[1]&&(r[1]=i[1]=Math[n](r[1])-e%2/2),_(r[2])&&r[2]===i[2]&&(r[2]=i[2]=Math[n](r[2])+e%2/2),t},n.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return E(t)?e.d=t:T(t)&&C(e,t),this.createElement("path").attr(e)},n.prototype.circle=function(t,e,n){return t=T(t)?t:void 0===t?{}:{x:t,y:e,r:n},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,n){n.setAttribute("c"+e,t)},e.attr(t)},n.prototype.arc=function(t,e,n,r,i,s){return T(t)?(e=(r=t).y,n=r.r,t=r.x):r={innerR:r,start:i,end:s},(t=this.symbol("arc",t,e,n,n,r)).r=n,t},n.prototype.rect=function(t,e,n,r,i,s){i=T(t)?t.r:i;var o=this.createElement("rect");return t=T(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(n,0),height:Math.max(r,0)},this.styledMode||(void 0!==s&&(t["stroke-width"]=s,t=o.crisp(t)),t.fill="none"),i&&(t.r=i),o.rSetter=function(t,e,n){o.r=t,b(n,{rx:t,ry:t})},o.rGetter=function(){return o.r||0},o.attr(t)},n.prototype.setSize=function(t,e,n){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:I(n,!0)?void 0:0}),this.alignElements()},n.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},n.prototype.image=function(t,e,n,r,i,s){var o={preserveAspectRatio:"none"},a=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};B(e)&&(o.x=e),B(n)&&(o.y=n),B(r)&&(o.width=r),B(i)&&(o.height=i);var l=this.createElement("image").attr(o);return e=function(e){a(l.element,t),s.call(l,e)},s?(a(l.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n=new v.Image,O(n,"load",e),n.src=t,n.complete&&e({})):a(l.element,t),l},n.prototype.symbol=function(t,e,n,r,i,s){var o,a=this,l=/^url\((.*?)\)$/,A=l.test(t),h=!A&&(this.symbols[t]?t:"circle"),p=h&&this.symbols[h];if(p){"number"==typeof e&&(o=p.call(this.symbols,Math.round(e||0),Math.round(n||0),r||0,i||0,s));var d=this.path(o);a.styledMode||d.attr("fill","none"),C(d,{symbolName:h||void 0,x:e,y:n,width:r,height:i}),s&&C(d,s)}else if(A){var f=t.match(l)[1],g=d=this.image(f);g.imgwidth=I(y[f]&&y[f].width,s&&s.width),g.imgheight=I(y[f]&&y[f].height,s&&s.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 n=this.element,r=this.width,i=this.height,o=this.imgwidth,a=this.imgheight,l=this["img"+e];if(_(l)){var A=1;s&&"within"===s.backgroundSize&&r&&i?(A=Math.min(r/o,i/a),l=Math.round(l*A),b(n,{width:Math.round(o*A),height:Math.round(a*A)})):n&&n.setAttribute(e,l),t||this.translate(((r||0)-l*A)/2,((i||0)-l*A)/2)}}}),_(e)&&g.attr({x:e,y:n}),g.isImg=!0,_(g.imgwidth)&&_(g.imgheight)?m(g):(g.attr({width:0,height:0}),x("img",{onload:function(){var t=c[a.chartIndex];0===this.width&&(w(this,{position:"absolute",top:"-999em"}),u.body.appendChild(this)),y[f]={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:f}),this.imgCount++)}return d},n.prototype.clipRect=function(t,e,n,r){var i=Q()+"-",s=this.createElement("clipPath").attr({id:i}).add(this.defs);return(t=this.rect(t,e,n,r,0).add(s)).id=i,t.clipPath=s,t.count=0,t},n.prototype.text=function(t,e,n,r){var i={};return!r||!this.allowHTML&&this.forExport?(i.x=Math.round(e||0),n&&(i.y=Math.round(n)),_(t)&&(i.text=t),t=this.createElement("text").attr(i),(!r||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,n){for(var r,i=n.getElementsByTagName("tspan"),s=n.getAttribute(e),o=0;o<i.length;o++)(r=i[o]).getAttribute(e)===s&&r.setAttribute(e,t);n.setAttribute(e,t)}),t):this.html(t,e,n)},n.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)?N(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},n.prototype.rotCorr=function(t,e,n){var r=t;return e&&n&&(r=Math.max(r*Math.cos(e*h),4)),{x:-t/3*Math.sin(e*h),y:r}},n.prototype.pathToSegments=function(t){for(var e=[],n=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},i=0;i<t.length;i++)P(n[0])&&B(t[i])&&n.length===r[n[0].toUpperCase()]&&t.splice(i,0,n[0].replace("M","L").replace("m","l")),"string"==typeof t[i]&&(n.length&&e.push(n.slice(0)),n.length=0),n.push(t[i]);return e.push(n.slice(0)),e},n.prototype.label=function(t,e,n,r,i,o,a,l,A){return new s(this,t,e,n,r,i,o,a,l,A)},n.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},n}(),C(n.prototype,{Element:i,SVG_NS:m,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:o,draw:g}),r.registerRendererType("svg",n,!0),n}),e(n,"Core/Renderer/HTML/HTMLElement.js",[n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t.isFirefox,s=t.isMS,o=t.isWebKit,a=t.win,l=n.css,A=n.defined,c=n.extend,h=n.pick,u=n.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var n=e.prototype,r=t.prototype;r.getSpanCorrection=n.getSpanCorrection,r.htmlCss=n.htmlCss,r.htmlGetBBox=n.htmlGetBBox,r.htmlUpdateTransform=n.htmlUpdateTransform,r.setSpanRotation=n.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,n){this.xCorr=-t*n,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,n=h(e&&t.width,void 0);if(e){delete t.width,this.textWidth=n;var r=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=c(this.styles,t),l(this.element,t),r&&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,n=this.translateX||0,r=this.translateY||0,i=this.x||0,s=this.y||0,o=this.textAlign||"left",a={left:0,center:.5,right:1}[o],c=this.styles;if(c=c&&c.whiteSpace,l(e,{marginLeft:n,marginTop:r}),!t.styledMode&&this.shadows&&this.shadows.forEach(function(t){l(t,{marginLeft:n+1,marginTop:r+1})}),this.inverted&&[].forEach.call(e.childNodes,function(n){t.invertChild(n,e)}),"SPAN"===e.tagName){var h=this.rotation,p=this.textWidth&&u(this.textWidth),d=[h,o,e.innerHTML,this.textWidth,this.textAlign].join(),f=void 0;if(f=!1,p!==this.oldTextWidth){if(this.textPxLength)var g=this.textPxLength;else l(e,{width:"",whiteSpace:c||"nowrap"}),g=e.offsetWidth;(p>this.oldTextWidth||g>p)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(l(e,{width:g>p||h?p+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=p,f=!0)}this.hasBoxWidthChanged=f,d!==this.cTT&&(f=t.fontMetrics(e.style.fontSize,e).b,!A(h)||h===(this.oldRotation||0)&&o===this.oldAlign||this.setSpanRotation(h,a,f),this.getSpanCorrection(!A(h)&&this.textPxLength||e.offsetWidth,f,a,h,o)),l(e,{left:i+(this.xCorr||0)+"px",top:s+(this.yCorr||0)+"px"}),this.cTT=d,this.oldRotation=h,this.oldAlign=o}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,n){var r={},A=s&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":o?"-webkit-transform":i?"MozTransform":a.opera?"-o-transform":void 0;A&&(r[A]=r.transform="rotate("+t+"deg)",r[A+(i?"Origin":"-origin")]=r.transformOrigin=100*e+"% "+n+"px",l(this.element,r))},e.composedClasses=[],e}(e)}),e(n,"Core/Renderer/HTML/HTMLRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],function(t,e,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=r.attr,o=r.createElement,a=r.extend,l=r.pick;return function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return i(r,n),r.compose=function(t){return-1===r.composedClasses.indexOf(t)&&(r.composedClasses.push(t),t.prototype.html=r.prototype.html),t},r.prototype.html=function(n,r,i){var A=this.createElement("span"),c=A.element,h=A.renderer,u=h.isSVG,p=function(t,n){["opacity","visibility"].forEach(function(r){t[r+"Setter"]=function(i,s,o){var a=t.div?t.div.style:n;e.prototype[r+"Setter"].call(this,i,s,o),a&&(a[s]=i)}}),t.addedSetters=!0};return A.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,l(e,"")),this.textStr=e,A.doTransform=!0)},u&&p(A,A.element.style),A.xSetter=A.ySetter=A.alignSetter=A.rotationSetter=function(t,e){"align"===e?A.alignValue=A.textAlign=t:A[e]=t,A.doTransform=!0},A.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},A.attr({text:n,x:Math.round(r),y:Math.round(i)}).css({position:"absolute"}),h.styledMode||A.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",A.css=A.htmlCss,u&&(A.add=function(t){var e=h.box.parentNode,n=[];if(this.parentGroup=t){var r=t.div;if(!r){for(;t;)n.push(t),t=t.parentGroup;n.reverse().forEach(function(t){function i(e,n){t[n]=e,"translateX"===n?h.left=e+"px":h.top=e+"px",t.doTransform=!0}var l=s(t.element,"class"),c=t.styles||{},h=(r=t.div=t.div||o("div",l?{className:l}: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},r||e)).style;a(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(r),on:function(){return n[0].div&&A.on.apply({element:n[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:i,translateYSetter:i}),t.addedSetters||p(t)})}}else r=e;return r.appendChild(c),A.added=!0,A.alignOnAdd&&A.htmlUpdateTransform(),A}),A},r.composedClasses=[],r}(n)}),e(n,"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(n,"Core/Foundation.js",[n["Core/Utilities.js"]],function(t){var e,n=t.addEvent,r=t.isFunction,i=t.objectEach,s=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]&&(s(t,i,t.eventOptions[i]),delete t.eventOptions[i]),r(e)&&(t.eventOptions[i]=e,n(t,i,e)))})}}(e||(e={})),e}),e(n,"Core/Axis/Tick.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],function(t,e,n){var r=e.deg2rad,i=n.clamp,s=n.correctFloat,o=n.defined,a=n.destroyObjectProperties,l=n.extend,A=n.fireEvent,c=n.isNumber,h=n.merge,u=n.objectEach,p=n.pick;return e=function(){function e(t,e,n,r,i){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=n||"",this.parameters=i||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,A(this,"init"),n||r||this.addLabel()}return e.prototype.addLabel=function(){var e=this,n=e.axis,r=n.options,i=n.chart,a=n.categories,h=n.logarithmic,u=n.names,d=e.pos,f=p(e.options&&e.options.labels,r.labels),g=n.tickPositions,m=d===g[0],y=d===g[g.length-1],v=(!f.step||1===f.step)&&1===n.tickInterval;g=g.info;var O,b=e.label;if(a=this.parameters.category||(a?p(a[d],u[d],d):d),h&&c(a)&&(a=s(h.lin2log(a))),n.dateTime)if(g)var x=i.time.resolveDTLFormat(r.dateTimeLabelFormats[!r.grid&&g.higherRanks[d]||g.unitName]),w=x.main;else c(a)&&(w=n.dateTime.getXDateFormat(a,r.dateTimeLabelFormats||{}));e.isFirst=m,e.isLast=y;var _={axis:n,chart:i,dateTimeLabelFormat:w,isFirst:m,isLast:y,pos:d,tick:e,tickPositionInfo:g,value:a};A(this,"labelFormat",_);var S=function(e){return f.formatter?f.formatter.call(e,e):f.format?(e.text=n.defaultLabelFormatter.call(e,e),t.format(f.format,e,i)):n.defaultLabelFormatter.call(e,e)};r=S.call(_,_);var C=x&&x.list;e.shortenLabel=C?function(){for(O=0;O<C.length;O++)if(l(_,{dateTimeLabelFormat:C[O]}),b.attr({text:S.call(_,_)}),b.getBBox().width<n.getSlotWidth(e)-2*f.padding)return;b.attr({text:""})}:void 0,v&&n._addedPlotLB&&e.moveLabel(r,f),o(b)||e.movedLabel?b&&b.textStr!==r&&!v&&(!b.textWidth||f.style.width||b.styles.width||b.css({width:null}),b.attr({text:r}),b.textPxLength=b.getBBox().width):(e.label=b=e.createLabel({x:0,y:0},r,f),e.rotation=0)},e.prototype.createLabel=function(t,e,n){var r=this.axis,i=r.chart;return(t=o(e)&&n.enabled?i.renderer.text(e,t.x,t.y,n.useHTML).add(r.labelGroup):null)&&(i.styledMode||t.css(h(n.style)),t.textPxLength=t.getBBox().width),t},e.prototype.destroy=function(){a(this,this.axis)},e.prototype.getPosition=function(t,e,n,r){var o=this.axis,a=o.chart,l=r&&a.oldChartHeight||a.chartHeight;return(t={x:t?s(o.translate(e+n,void 0,void 0,r)+o.transB):o.left+o.offset+(o.opposite?(r&&a.oldChartWidth||a.chartWidth)-o.right-o.left:0),y:t?l-o.bottom+o.offset-(o.opposite?o.height:0):s(l-o.translate(e+n,void 0,void 0,r)-o.transB)}).y=i(t.y,-1e5,1e5),A(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,n,i,s,a,l,c){var h=this.axis,u=h.transA,p=h.isLinked&&h.linkedParent?h.linkedParent.reversed:h.reversed,d=h.staggerLines,f=h.tickRotCorr||{x:0,y:0},g=i||h.reserveSpaceDefault?0:-h.labelOffset*("center"===h.labelAlign?.5:1),m={};return n=0===h.side?n.rotation?-8:-n.getBBox().height:2===h.side?f.y+8:Math.cos(n.rotation*r)*(f.y-n.getBBox(!1,0).height/2),o(s.y)&&(n=0===h.side&&h.horiz?s.y+n:s.y),t=t+s.x+g+f.x-(a&&i?a*u*(p?-1:1):0),e=e+n-(a&&!i?a*u*(p?1:-1):0),d&&(i=l/(c||1)%d,h.opposite&&(i=d-i-1),e+=h.labelOffset/d*i),m.x=t,m.y=Math.round(e),A(this,"afterGetLabelPosition",{pos:m,tickmarkOffset:a,index:l}),m},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,n,r,i,s){return s.crispLine([["M",t,e],["L",t+(i?0:-n),e+(i?n:0)]],r)},e.prototype.handleOverflow=function(t){var e=this.axis,n=e.options.labels,i=t.x,s=e.chart.chartWidth,o=e.chart.spacing,a=p(e.labelLeft,Math.min(e.pos,o[3]));o=p(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,s-o[1]));var l,A=this.label,c=this.rotation,h={left:0,center:.5,right:1}[e.labelAlign||A.attr("align")],u=A.getBBox().width,d=e.getSlotWidth(this),f={},g=d,m=1;c||"justify"!==n.overflow?0>c&&i-h*u<a?l=Math.round(i/Math.cos(c*r)-a):0<c&&i+h*u>o&&(l=Math.round((s-i)/Math.cos(c*r))):(s=i+(1-h)*u,i-h*u<a?g=t.x+g*(1-h)-a:s>o&&(g=o-t.x+g*h,m=-1),(g=Math.min(d,g))<d&&"center"===e.labelAlign&&(t.x+=m*(d-g-h*(d-Math.min(u,g)))),(u>g||e.autoRotation&&(A.styles||{}).width)&&(l=g)),l&&(this.shortenLabel?this.shortenLabel():(f.width=Math.floor(l)+"px",(n.style||{}).textOverflow||(f.textOverflow="ellipsis"),A.css(f)))},e.prototype.moveLabel=function(t,e){var n=this,r=n.label,i=n.axis,s=i.reversed,o=!1;if(r&&r.textStr===t?(n.movedLabel=r,o=!0,delete n.label):u(i.ticks,function(e){o||e.isNew||e===n||!e.label||e.label.textStr!==t||(n.movedLabel=e.label,o=!0,e.labelPos=n.movedLabel.xy,delete e.label)}),!o&&(n.labelPos||r)){var a=n.labelPos||r.xy;r=i.horiz?s?0:i.width+i.left:a.x,i=i.horiz?a.y:s?i.width+i.left:0,n.movedLabel=n.createLabel({x:r,y:i},t,e),n.movedLabel&&n.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,n){var r=this.axis,i=r.horiz,s=this.pos,o=p(this.tickmarkOffset,r.tickmarkOffset);o=(s=this.getPosition(i,s,o,e)).x;var a=s.y;r=i&&o===r.pos+r.len||!i&&a===r.pos?-1:1,i=p(n,this.label&&this.label.newOpacity,1),n=p(n,1),this.isActive=!0,this.renderGridLine(e,n,r),this.renderMark(s,n,r),this.renderLabel(s,e,i,t),this.isNew=!1,A(this,"afterRender")},e.prototype.renderGridLine=function(t,e,n){var r=this.axis,i=r.options,s={},o=this.pos,a=this.type,l=p(this.tickmarkOffset,r.tickmarkOffset),A=r.chart.renderer,c=this.gridLine,h=i.gridLineWidth,u=i.gridLineColor,d=i.gridLineDashStyle;"minor"===this.type&&(h=i.minorGridLineWidth,u=i.minorGridLineColor,d=i.minorGridLineDashStyle),c||(r.chart.styledMode||(s.stroke=u,s["stroke-width"]=h||0,s.dashstyle=d),a||(s.zIndex=1),t&&(e=0),this.gridLine=c=A.path().attr(s).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(r.gridGroup)),c&&(n=r.getPlotLinePath({value:o+l,lineWidth:c.strokeWidth()*n,force:"pass",old:t,acrossPanes:!1}))&&c[t||this.isNew?"attr":"animate"]({d:n,opacity:e})},e.prototype.renderMark=function(t,e,n){var r=this.axis,i=r.options,s=r.chart.renderer,o=this.type,a=r.tickSize(o?o+"Tick":"tick"),l=t.x;t=t.y;var A=p(i["minor"!==o?"tickWidth":"minorTickWidth"],!o&&r.isXAxis?1:0);i=i["minor"!==o?"tickColor":"minorTickColor"];var c=this.mark,h=!c;a&&(r.opposite&&(a[0]=-a[0]),c||(this.mark=c=s.path().addClass("highcharts-"+(o?o+"-":"")+"tick").add(r.axisGroup),r.chart.styledMode||c.attr({stroke:i,"stroke-width":A})),c[h?"attr":"animate"]({d:this.getMarkPath(l,t,a[0],c.strokeWidth()*n,r.horiz,s),opacity:e}))},e.prototype.renderLabel=function(t,e,n,r){var i=this.axis,s=i.horiz,o=i.options,a=this.label,l=o.labels,A=l.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,s,l,i,r,A),this.isFirst&&!this.isLast&&!o.showFirstLabel||this.isLast&&!this.isFirst&&!o.showLastLabel?u=!1:!s||l.step||l.rotation||e||0===n||this.handleOverflow(t),A&&r%A&&(u=!1),u&&c(t.y)?(t.opacity=n,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,n=e.reversed;if(t&&!this.isNew){var r=e.horiz?n?e.left:e.width+e.left:t.xy.x;n=e.horiz?t.xy.y:n?e.width+e.top:e.top,t.animate({x:r,y:n,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}(),e}),e(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/AxisDefaults.js"],n["Core/Color/Color.js"],n["Core/Defaults.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"]],function(t,e,n,r,i,s,o,a){var l=t.animObject,A=r.defaultOptions,c=i.registerEventOptions,h=s.deg2rad,u=a.arrayMax,p=a.arrayMin,d=a.clamp,f=a.correctFloat,g=a.defined,m=a.destroyObjectProperties,y=a.erase,v=a.error,O=a.extend,b=a.fireEvent,x=a.isArray,w=a.isNumber,_=a.isString,S=a.merge,C=a.normalizeTickInterval,E=a.objectEach,B=a.pick,T=a.relativeLength,P=a.removeEvent,k=a.splat,I=a.syncTimeout,N=function(t,e){return C(e,void 0,void 0,B(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 n=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!n:n,this.isXAxis=n,this.coll=this.coll||(n?"xAxis":"yAxis"),b(this,"init",{userOptions:e}),this.opposite=B(e.opposite,this.opposite),this.side=B(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var r=this.options,i=r.labels,s=r.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=B(r.reversed,this.reversed),this.visible=r.visible,this.zoomEnabled=r.zoomEnabled,this.hasNames="category"===s||!0===r.categories,this.categories=r.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=g(r.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.offset=r.offset||0,this.min=this.max=null,e=B(r.crosshair,k(t.options.tooltip.crosshairs)[n?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(n?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&&n&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=w(i.rotation)?i.rotation:void 0,c(this,r),b(this,"afterInit")},t.prototype.setOptions=function(t){this.options=S(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],S(A[this.coll],t)),b(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var n=w(this.value)?this.value:NaN,r=e.chart.time,i=this.dateTimeLabelFormat,s=A.lang,o=s.numericSymbols;s=s.numericSymbolMagnitude||1e3;var a=e.logarithmic?Math.abs(n):e.tickInterval,l=o&&o.length;if(e.categories)var c="".concat(this.value);else if(i)c=r.dateFormat(i,n);else if(l&&1e3<=a)for(;l--&&void 0===c;)a>=(e=Math.pow(s,l+1))&&0==10*n%e&&null!==o[l]&&0!==n&&(c=t(n/e,-1)+o[l]);return void 0===c&&(c=1e4<=Math.abs(n)?t(n,-1):t(n,-1,void 0,"")),c},t.prototype.getSeriesExtremes=function(){var t,e=this,n=e.chart;b(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.series.forEach(function(r){if(r.visible||!n.options.chart.ignoreHiddenSeries){var i=r.options,s=i.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=s&&(s=null),e.isXAxis){if((i=r.xData).length){i=e.logarithmic?i.filter(e.validatePositiveValue):i;var o=(t=r.getXExtremes(i)).min,a=t.max;w(o)||o instanceof Date||(i=i.filter(w),o=(t=r.getXExtremes(i)).min,a=t.max),i.length&&(e.dataMin=Math.min(B(e.dataMin,o),o),e.dataMax=Math.max(B(e.dataMax,a),a))}}else r=r.applyExtremes(),w(r.dataMin)&&(o=r.dataMin,e.dataMin=Math.min(B(e.dataMin,o),o)),w(r.dataMax)&&(a=r.dataMax,e.dataMax=Math.max(B(e.dataMax,a),a)),g(s)&&(e.threshold=s),(!i.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),b(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,n,r,i,s){var o=this.linkedParent||this,a=r&&o.old?o.old.min:o.min;if(!w(a))return NaN;var l=o.minPixelPadding;i=(o.isOrdinal||o.brokenAxis&&o.brokenAxis.hasBreaks||o.logarithmic&&i)&&o.lin2val;var A=1,c=0;return(r=r&&o.old?o.old.transA:o.transA)||(r=o.transA),n&&(A*=-1,c=o.len),o.reversed&&(c-=(A*=-1)*(o.sector||o.len)),e?(s=(t*A+c-l)/r+a,i&&(s=o.lin2val(s))):(i&&(t=o.val2lin(t)),t=A*(t-a)*r,s=(o.isRadial?t:f(t))+c+A*l+(w(s)?r*s:0)),s},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,n){return"pass"!==v&&(t<e||t>n)&&(v?t=d(t,e,n):o=!0),t}var n,r,i,s,o,a=this,l=a.chart,A=a.left,c=a.top,h=t.old,u=t.value,p=t.lineWidth,f=h&&l.oldChartHeight||l.chartHeight,g=h&&l.oldChartWidth||l.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},b(this,"getPlotLinePath",t,function(t){y=B(y,a.translate(u,void 0,void 0,h)),y=d(y,-1e5,1e5),n=i=Math.round(y+m),r=s=Math.round(f-y-m),w(y)?a.horiz?(r=c,s=f-a.bottom,n=i=e(n,A,A+a.width)):(n=A,i=g-a.right,r=s=e(r,c,c+a.height)):(o=!0,v=!1),t.path=o&&!v?null:l.renderer.crispLine([["M",n,r],["L",i,s]],p||1)}),t.path},t.prototype.getLinearTickPositions=function(t,e,n){var r=f(Math.floor(e/t)*t);n=f(Math.ceil(n/t)*t);var i,s=[];if(f(r+t)===r&&(i=20),this.single)return[e];for(e=r;e<=n&&(s.push(e),(e=f(e+t,i))!==o);)var o=e;return s},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?B(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,n=this.minorTickInterval,r=this.pointRangePadding||0,i=this.min-r,s=(r=this.max+r)-i,o=[];if(s&&s/n<this.len/3){var a=this.logarithmic;if(a)this.paddedTicks.forEach(function(t,e,r){e&&o.push.apply(o,a.getLogTickPositions(n,r[e-1],r[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())o=o.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(n),i,r,t.startOfWeek));else for(t=i+(e[0]-i)%n;t<=r&&t!==o[0];t+=n)o.push(t)}return 0!==o.length&&this.trimTicks(o),o},t.prototype.adjustForMinRange=function(){var t,e,n,r,i=this.options,s=this.logarithmic,o=this.min,a=this.max,l=0;if(this.isXAxis&&void 0===this.minRange&&!s&&(g(i.min)||g(i.max)||g(i.floor)||g(i.ceiling)?this.minRange=null:(this.series.forEach(function(i){if(n=i.xData,r=i.xIncrement?1:n.length-1,1<n.length)for(t=r;0<t;t--)e=n[t]-n[t-1],(!l||e<l)&&(l=e)}),this.minRange=Math.min(5*l,this.dataMax-this.dataMin))),a-o<this.minRange){var A=this.dataMax-this.dataMin>=this.minRange,c=this.minRange,h=(c-a+o)/2;h=[o-h,B(i.min,o-h)],A&&(h[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),a=[(o=u(h))+c,B(i.max,o+c)],A&&(a[2]=s?s.log2lin(this.dataMax):this.dataMax),(a=p(a))-o<c&&(h[0]=a-c,h[1]=B(i.min,a-c),o=u(h))}this.min=o,this.max=a},t.prototype.getClosest=function(){var t;return this.categories?t=1:this.series.forEach(function(e){var n=e.closestPointRange,r=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&g(n)&&r&&(t=g(t)?Math.min(t,n):n)}),t},t.prototype.nameToX=function(t){var e=x(this.options.categories),n=e?this.categories:this.names,r=t.options.x;if(t.series.requireSorting=!1,g(r)||(r=this.options.uniqueNames&&n?e?n.indexOf(t.name):B(n.keys[t.name],-1):t.series.autoIncrement()),-1===r){if(!e&&n)var i=n.length}else i=r;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(n,r){if(n&&n.options&&void 0!==n.name){var i=t.nameToX(n);void 0!==i&&i!==n.x&&(n.x=i,e.xData[r]=i)}})}))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,n=t.linkedParent,r=!!t.categories,i=t.isXAxis,s=t.axisPointRange||0,o=0,a=0,l=t.transA;if(i||r||s){var A=t.getClosest();n?(o=n.minPointOffset,a=n.pointRangePadding):t.series.forEach(function(e){var n=r?1:i?B(e.options.pointRange,A,0):t.axisPointRange||0,l=e.options.pointPlacement;s=Math.max(s,n),t.single&&!r||(e=e.is("xrange")?!i:i,o=Math.max(o,e&&_(l)?0:n/2),a=Math.max(a,e&&"on"===l?0:n))}),n=t.ordinal&&t.ordinal.slope&&A?t.ordinal.slope/A:1,t.minPointOffset=o*=n,t.pointRangePadding=a*=n,t.pointRange=Math.min(s,t.single&&r?1:e),i&&(t.closestPointRange=A)}t.translationSlope=t.transA=l=t.staticScale||t.len/(e+a||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=l*o,b(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this.chart,n=this.logarithmic,r=this.options,i=this.isXAxis,s=this.isLinked,o=r.tickPixelInterval,a=this.categories,l=this.softThreshold,A=r.maxPadding,c=r.minPadding,h=w(r.tickInterval)&&0<=r.tickInterval?r.tickInterval:void 0,u=w(this.threshold)?this.threshold:null;this.dateTime||a||s||this.getTickAmount();var p=B(this.userMin,r.min),d=B(this.userMax,r.max);if(s){this.linkedParent=e[this.coll][r.linkedTo];var m=this.linkedParent.getExtremes();this.min=B(m.min,m.dataMin),this.max=B(m.max,m.dataMax),r.type!==this.linkedParent.options.type&&v(11,1,e)}else{if(l&&g(u))if(this.dataMin>=u)m=u,c=0;else if(this.dataMax<=u){var y=u;A=0}this.min=B(p,m,this.dataMin),this.max=B(d,y,this.dataMax)}if(n&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,B(this.dataMin,this.min))&&v(10,1,e),this.min=f(n.log2lin(this.min),16),this.max=f(n.log2lin(this.max),16)),this.range&&g(this.max)&&(this.userMin=this.min=p=Math.max(this.dataMin,this.minFromRange()),this.userMax=d=this.max,this.range=null),b(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(a||this.axisPointRange||this.stacking&&this.stacking.usePercentage||s)&&g(this.min)&&g(this.max)&&(e=this.max-this.min)&&(!g(p)&&c&&(this.min-=e*c),!g(d)&&A&&(this.max+=e*A)),w(this.userMin)||(w(r.softMin)&&r.softMin<this.min&&(this.min=p=r.softMin),w(r.floor)&&(this.min=Math.max(this.min,r.floor))),w(this.userMax)||(w(r.softMax)&&r.softMax>this.max&&(this.max=d=r.softMax),w(r.ceiling)&&(this.max=Math.min(this.max,r.ceiling))),l&&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(d)&&this.max>u&&this.dataMax<=u&&(this.max=this.options.minRange?Math.max(u,this.min+this.minRange):u)),w(this.min)&&w(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:s&&this.linkedParent&&!h&&o===this.linkedParent.options.tickPixelInterval?h=this.linkedParent.tickInterval:B(h,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,a?1:(this.max-this.min)*o/Math.max(this.len,o)),i&&!t){var O=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(O)}),b(this,"postProcessData",{hasExtremesChanged:O})}this.setAxisTranslation(),b(this,"initialAxisTranslation"),this.pointRange&&!h&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=B(r.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=N(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t,e=this.options,n=e.tickPositions,r=e.tickPositioner,i=this.getMinorTickInterval(),s=this.hasVerticalPanning(),o="colorAxis"===this.coll,a=(o||!s)&&e.startOnTick;if(s=(o||!s)&&e.endOnTick,o=[],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),n)o=n.slice();else if(w(this.min)&&w(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)o=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)o=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(i=e=this.tickInterval;i<=2*e&&(o=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&o.length>this.tickAmount);)this.tickInterval=N(this,i*=1.1);else o=[this.min,this.max],v(19,!1,this.chart);o.length>this.len&&(o=[o[0],o[o.length-1]])[0]===o[1]&&(o.length=1),r&&(this.tickPositions=o,(t=r.apply(this,[this.min,this.max]))&&(o=t))}this.tickPositions=o,this.paddedTicks=o.slice(0),this.trimTicks(o,a,s),!this.isLinked&&w(this.min)&&w(this.max)&&(this.single&&2>o.length&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),n||t||this.adjustTickAmount()),b(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,n){var r=t[0],i=t[t.length-1],s=!this.isOrdinal&&this.minPointOffset||0;if(b(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==r)this.min=r;else for(;this.min-s>t[0];)t.shift();if(n)this.max=i;else for(;this.max+s<t[t.length-1];)t.pop();0===t.length&&g(r)&&!this.options.tickPositions&&t.push((i+r)/2)}},t.prototype.alignToOthers=function(){var t,e=this,n=[this],r=e.options,i="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,s=[];if(e.thresholdAlignment=void 0,(!1!==this.chart.options.chart.alignTicks&&r.alignTicks||i)&&!1!==r.startOnTick&&!1!==r.endOnTick&&!e.logarithmic){var o=function(t){var e=t.options;return[t.horiz?e.left:e.top,e.width,e.height,e.pane].join()},a=o(this);this.chart[this.coll].forEach(function(r){var i=r.series;i.length&&i.some(function(t){return t.visible})&&r!==e&&o(r)===a&&(t=!0,n.push(r))})}if(t&&i){n.forEach(function(t){t=t.getThresholdAlignment(e),w(t)&&s.push(t)});var l=1<s.length?s.reduce(function(t,e){return t+e},0)/s.length:void 0;n.forEach(function(t){t.thresholdAlignment=l})}return t},t.prototype.getThresholdAlignment=function(t){if((!w(this.dataMin)||this!==t&&this.series.some(function(t){return t.isDirty||t.isDirtyData}))&&this.getSeriesExtremes(),w(this.threshold))return t=d((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,n=t.tickAmount;!g(t.tickInterval)&&!n&&this.len<e&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/e)+1),4>n&&(this.finalTickAmt=n,n=5),this.tickAmount=n},t.prototype.adjustTickAmount=function(){var t=this,e=t.finalTickAmt,n=t.max,r=t.min,i=t.options,s=t.tickPositions,o=t.tickAmount,a=t.thresholdAlignment,l=s&&s.length,A=B(t.threshold,t.softThreshold?0:null),c=t.tickInterval;if(w(a)){var h=.5>a?Math.ceil(a*(o-1)):Math.floor(a*(o-1));i.reversed&&(h=o-1-h)}if(t.hasData()&&w(r)&&w(n)){if(a=function(){t.transA*=(l-1)/(o-1),t.min=i.startOnTick?s[0]:Math.min(r,s[0]),t.max=i.endOnTick?s[s.length-1]:Math.max(n,s[s.length-1])},w(h)&&w(t.threshold)){for(;s[h]!==A||s.length!==o||s[0]>r||s[s.length-1]<n;){for(s.length=0,s.push(t.threshold);s.length<o;)void 0===s[h]||s[h]>t.threshold?s.unshift(f(s[0]-c)):s.push(f(s[s.length-1]+c));if(c>8*t.tickInterval)break;c*=2}a()}else if(l<o){for(;s.length<o;)s.length%2||r===A?s.push(f(s[s.length-1]+c)):s.unshift(f(s[0]-c));a()}if(g(e)){for(c=A=s.length;c--;)(3===e&&1==c%2||2>=e&&0<c&&c<A-1)&&s.splice(c,1);t.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t=!1,e=!1;this.series.forEach(function(n){t=t||n.isDirtyData||n.isDirty,e=e||n.xAxis&&n.xAxis.isDirty||!1}),this.setAxisSize();var n=this.len!==(this.old&&this.old.len);n||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=n||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),b(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,n,r,i){var s=this,o=s.chart;n=B(n,!0),s.series.forEach(function(t){delete t.kdTree}),i=O(i,{min:t,max:e}),b(s,"setExtremes",i,function(){s.userMin=t,s.userMax=e,s.eventArgs=i,n&&o.redraw(r)})},t.prototype.zoom=function(t,e){var n=this,r=this.dataMin,i=this.dataMax,s=this.options,o=Math.min(r,B(s.min,r)),a=Math.max(i,B(s.max,i));return b(this,"zoom",t={newMin:t,newMax:e},function(t){var e=t.newMin,s=t.newMax;e===n.min&&s===n.max||(n.allowZoomOutside||(g(r)&&(e<o&&(e=o),e>a&&(e=a)),g(i)&&(s<o&&(s=o),s>a&&(s=a))),n.displayBtn=void 0!==e||void 0!==s,n.setExtremes(e,s,!1,void 0,{trigger:"zoom"})),t.zoomed=!0}),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,n=e.offsets||[0,0,0,0],r=this.horiz,i=this.width=Math.round(T(B(e.width,t.plotWidth-n[3]+n[1]),t.plotWidth)),s=this.height=Math.round(T(B(e.height,t.plotHeight-n[0]+n[2]),t.plotHeight)),o=this.top=Math.round(T(B(e.top,t.plotTop+n[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(T(B(e.left,t.plotLeft+n[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-s-o,this.right=t.chartWidth-i-e,this.len=Math.max(r?i:s,0),this.pos=r?e:o},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?f(t.lin2log(this.min)):this.min,max:t?f(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,n=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=n:1/0===t?t=e:n>t?t=n:e<t&&(t=e),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(B(t,0)-90*this.side+720)%360;return b(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,n=B(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),r=e["tick"===t?"tickLength":"minorTickLength"];if(n&&r){"inside"===e[t+"Position"]&&(r=-r);var i=[r,n]}return b(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,n=this.tickInterval,r=this.len/(((this.categories?1:0)+this.max-this.min)/n),i=t.rotation,s=this.labelMetrics(),o=Math.max(this.max-this.min,0),a=function(t){var e=t/(r||1);return(e=1<e?Math.ceil(e):1)*n>o&&1/0!==t&&1/0!==r&&o&&(e=Math.ceil(o/n)),f(e*n)},l=n,A=Number.MAX_VALUE;if(e){if(!t.staggerLines)if(w(i))var c=[i];else r<t.autoRotationLimit&&(c=t.autoRotation);if(c)for(var u=e=void 0,p=0,d=c;p<d.length;p++){var g=d[p];if((g===i||g&&-90<=g&&90>=g)&&(u=(e=a(Math.abs(s.h/Math.sin(h*g))))+Math.abs(g/360))<A){A=u;var m=g;l=e}}}else l=a(s.h);return this.autoRotation=c,this.labelRotation=B(m,w(i)?i:0),t.step?n:l},t.prototype.getSlotWidth=function(t){var e=this.chart,n=this.horiz,r=this.options.labels,i=Math.max(this.tickPositions.length-(this.categories?0:1),1),s=e.margin[3];if(t&&w(t.slotWidth))return t.slotWidth;if(n&&2>r.step)return r.rotation?0:(this.staggerLines||1)*this.len/i;if(!n){if(void 0!==(t=r.style.width))return parseInt(String(t),10);if(s)return s-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,n=this.tickPositions,r=this.ticks,i=this.options.labels,s=i.style,o=this.horiz,a=this.getSlotWidth(),l=Math.max(1,Math.round(a-2*i.padding)),A={},c=this.labelMetrics(),h=s.textOverflow,u=0;if(_(i.rotation)||(A.rotation=i.rotation||0),n.forEach(function(t){(t=r[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>u&&(u=t.label.textPxLength)}),this.maxLabelLength=u,this.autoRotation)u>l&&u>c.h?A.rotation=this.labelRotation:this.labelRotation=0;else if(a){var p=l;if(!h){var d="clip";for(l=n.length;!o&&l--;){var f=n[l];(f=r[f].label)&&(f.styles&&"ellipsis"===f.styles.textOverflow?f.css({textOverflow:"clip"}):f.textPxLength>a&&f.css({width:a+"px"}),f.getBBox().height>this.len/n.length-(c.h-c.f)&&(f.specificTextOverflow="ellipsis"))}}}A.rotation&&(p=u>.5*t.chartHeight?.33*t.chartHeight:u,h||(d="ellipsis")),(this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation))&&(A.align=this.labelAlign),n.forEach(function(t){var e=(t=r[t])&&t.label,n=s.width,i={};e&&(e.attr(A),t.shortenLabel?t.shortenLabel():p&&!n&&"nowrap"!==s.whiteSpace&&(p<e.textPxLength||"SPAN"===e.element.tagName)?(i.width=p+"px",h||(i.textOverflow=e.specificTextOverflow||d),e.css(i)):e.styles&&e.styles.width&&!i.width&&!n&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=A.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,n=this.chart.renderer,r=this.horiz,i=this.opposite,s=this.options.title,o=this.chart.styledMode;this.axisTitle||((e=s.textAlign)||(e=(r?{low:"left",middle:"center",high:"right"}:{low:i?"right":"left",middle:"center",high:i?"left":"right"})[s.align]),this.axisTitle=n.text(s.text||"",0,0,s.useHTML).attr({zIndex:7,rotation:s.rotation,align:e}).addClass("highcharts-axis-title"),o||this.axisTitle.css(S(s.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),o||s.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 o(this,t)},t.prototype.getOffset=function(){var t=this,e=this,n=e.chart,r=e.horiz,i=e.options,s=e.side,o=e.ticks,a=e.tickPositions,l=e.coll,A=e.axisParent,c=n.renderer,h=n.inverted&&!e.isZAxis?[1,0,3,2][s]:s,u=e.hasData(),p=i.title,d=i.labels,f=n.axisOffset;n=n.clipOffset;var m,y=[-1,1,1,-1][s],v=i.className,O=0,x=0,w=0;if(e.showAxis=m=u||i.showEmpty,e.staggerLines=e.horiz&&d.staggerLines||void 0,!e.axisGroup){var _=function(e,n,r){return c.g(e).attr({zIndex:r}).addClass("highcharts-".concat(l.toLowerCase()).concat(n," ")+(t.isRadial?"highcharts-radial-axis".concat(n," "):"")+(v||"")).add(A)};e.gridGroup=_("grid","-grid",i.gridZIndex),e.axisGroup=_("axis","",i.zIndex),e.labelGroup=_("axis-labels","-labels",d.zIndex)}if(u||e.isLinked?(a.forEach(function(t){e.generateTick(t)}),e.renderUnsquish(),e.reserveSpaceDefault=0===s||2===s||{1:"left",3:"right"}[s]===e.labelAlign,B(d.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&a.forEach(function(t){w=Math.max(o[t].getLabelSize(),w)}),e.staggerLines&&(w*=e.staggerLines),e.labelOffset=w*(e.opposite?-1:1)):E(o,function(t,e){t.destroy(),delete o[e]}),p&&p.text&&!1!==p.enabled&&(e.addTitle(m),m&&!1!==p.reserveSpace)){e.titleOffset=O=e.axisTitle.getBBox()[r?"height":"width"];var S=p.offset;x=g(S)?0:B(p.margin,r?5:10)}e.renderLine(),e.offset=y*B(i.offset,f[s]?f[s]+(i.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},p=0===s?-e.labelMetrics().h:2===s?e.tickRotCorr.y:0,u=Math.abs(w)+x,w&&(u=u-p+y*(r?B(d.y,e.tickRotCorr.y+8*y):d.x)),e.axisTitleMargin=B(S,u),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(o,a)),"colorAxis"!==l&&(r=this.tickSize("tick"),f[s]=Math.max(f[s],(e.axisTitleMargin||0)+O+y*e.offset,u,a&&a.length&&r?r[0]+y*e.offset:0),i=!e.axisLine||i.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),n[h]=Math.max(n[h],i)),b(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,n=this.opposite,r=this.offset,i=this.horiz,s=this.left+(n?this.width:0)+r;return r=e.chartHeight-this.bottom-(n?this.height:0)+r,n&&(t*=-1),e.renderer.crispLine([["M",i?this.left:s,i?r:this.top],["L",i?e.chartWidth-this.right:s,i?r: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,n=this.top,r=this.len,i=this.options.title,s=t?e:n,o=this.opposite,a=this.offset,l=i.x,A=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,r={low:s+(t?0:r),middle:s+r/2,high:s+(t?r:0)}[i.align],e=(t?n+this.height:e)+(t?1:-1)*(o?-1:1)*(this.axisTitleMargin||0)+[-c,c,h.f,-c][this.side],t={x:t?r+l:e+(o?this.width:0)+a+l,y:t?e+A-(o?this.height:0)+a:r+A},b(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t,e){var n=this.minorTicks;n[t]||(n[t]=new o(this,t,"minor")),e&&n[t].isNew&&n[t].render(null,!0),n[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,n){var r=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(r[t]||(r[t]=new o(this,t)),n&&r[t].isNew&&r[t].render(e,!0,-1),r[t].render(e))},t.prototype.render=function(){var t,e,n=this,r=n.chart,i=n.logarithmic,a=n.options,A=n.isLinked,c=n.tickPositions,h=n.axisTitle,u=n.ticks,p=n.minorTicks,d=n.alternateBands,f=a.stackLabels,g=a.alternateGridColor,m=n.tickmarkOffset,y=n.axisLine,v=n.showAxis,O=l(r.renderer.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[u,p,d].forEach(function(t){E(t,function(t){t.isActive=!1})}),n.hasData()||A){var x=n.chart.hasRendered&&n.old&&w(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach(function(t){n.renderMinorTick(t,x)}),c.length&&(c.forEach(function(t,e){n.renderTick(t,e,x)}),m&&(0===n.min||n.single)&&(u[-1]||(u[-1]=new o(n,-1,null,!0)),u[-1].render(-1))),g&&c.forEach(function(o,a){e=void 0!==c[a+1]?c[a+1]+m:n.max-m,0==a%2&&o<n.max&&e<=n.max+(r.polar?-m:m)&&(d[o]||(d[o]=new s.PlotLineOrBand(n)),t=o+m,d[o].options={from:i?i.lin2log(t):t,to:i?i.lin2log(e):e,color:g,className:"highcharts-alternate-grid"},d[o].render(),d[o].isActive=!0)}),n._addedPlotLB||(n._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(t){n.addPlotBandOrLine(t)}))}[u,p,d].forEach(function(t){var e=[],n=O.duration;E(t,function(t,n){t.isActive||(t.render(n,!1,0),t.isActive=!1,e.push(n))}),I(function(){for(var n=e.length;n--;)t[e[n]]&&!t[e[n]].isActive&&(t[e[n]].destroy(),delete t[e[n]])},t!==d&&r.hasRendered&&n?n:0)}),y&&(y[y.isPlaced?"animate":"attr"]({d:this.getLinePath(y.strokeWidth())}),y.isPlaced=!0,y[v?"show":"hide"](v)),h&&v&&(a=n.getTitlePosition(),h[h.isNew?"attr":"animate"](a),h.isNew=!1),f&&f.enabled&&n.stacking&&n.stacking.renderStackTotals(),n.old={len:n.len,max:n.max,min:n.min,transA:n.transA,userMax:n.userMax,userMin:n.userMin},n.isDirty=!1,b(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,n=e.plotLinesAndBands,r=this.eventOptions;if(b(this,"destroy",{keepEvents:t}),t||P(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){m(t)}),n)for(t=n.length;t--;)n[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();E(e,function(t,n){-1===e.getKeepProps().indexOf(n)&&delete e[n]}),this.eventOptions=r},t.prototype.drawCrosshair=function(t,e){var r,i=this.crosshair,s=B(i&&i.snap,!0),o=this.chart,a=this.cross;if(b(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),i&&!1!==(g(e)||!s)){if(s?g(e)&&(r=B("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):r=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),g(r)){var l={value:e&&(this.isXAxis?e.x:B(e.stackY,e.y)),translatedValue:r};o.polar&&O(l,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),l=this.getPlotLinePath(l)||null}if(!g(l))return void this.hideCrosshair();s=this.categories&&!this.isRadial,a||(this.cross=a=o.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(s?"category ":"thin ")+(i.className||"")).attr({zIndex:B(i.zIndex,2)}).add(),o.styledMode||(a.attr({stroke:i.color||(s?n.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":B(i.width,1)}).css({"pointer-events":"none"}),i.dashStyle&&a.attr({dashstyle:i.dashStyle}))),a.show().attr({d:l}),s&&!i.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();b(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),b(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 w(t)&&0<t},t.prototype.update=function(t,e){var n=this.chart;t=S(this.userOptions,t),this.destroy(!0),this.init(n,t),n.isDirtyBox=!0,B(e,!0)&&n.redraw()},t.prototype.remove=function(t){for(var e=this.chart,n=this.coll,r=this.series,i=r.length;i--;)r[i]&&r[i].remove(!1);y(e.axes,this),y(e[n],this),e[n].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,B(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(n,"Core/Axis/DateTimeAxis.js",[n["Core/Utilities.js"]],function(t){var e,n=t.addEvent,r=t.getMagnitude,i=t.normalizeTickInterval,s=t.timeUnits;return function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function o(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new l(this))}var a=[];t.compose=function(t){return-1===a.indexOf(t)&&(a.push(t),t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,n(t,"init",o)),t};var l=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var n=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=n[n.length-1];var o,a=s[e[0]],l=e[1];for(o=0;o<n.length&&(e=n[o],a=s[e[0]],l=e[1],!(n[o+1]&&t<=(a*l[l.length-1]+s[n[o+1][0]])/2));o++);return a===s.year&&t<5*a&&(l=[1,2,5]),{unitRange:a,count:t=i(t/a,l,"year"===e[0]?Math.max(r(t/a),1):1),unitName:e[0]}},t.prototype.getXDateFormat=function(t,e){var n=this.axis,r=n.chart.time;return n.closestPointRange?r.getDateFormat(n.closestPointRange,t,n.options.startOfWeek,e)||r.resolveDTLFormat(e.year).main:r.resolveDTLFormat(e.day).main},t}();t.Additions=l}(e||(e={})),e}),e(n,"Core/Axis/LogarithmicAxis.js",[n["Core/Utilities.js"]],function(t){var e,n=t.addEvent,r=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 s(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}var o=[];t.compose=function(t){return-1===o.indexOf(t)&&(o.push(t),t.keepProps.push("logarithmic"),n(t,"init",e),n(t,"afterInit",s)),t};var a=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,n,s){var o=this.axis,a=o.len,l=o.options,A=[];if(s||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),A=o.getLinearTickPositions(t,e,n);else if(.08<=t){var c,h=Math.floor(e),u=l=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<n+1&&!u;h++){var p=a.length;for(c=0;c<p&&!u;c++){var d=this.log2lin(this.lin2log(h)*a[c]);d>e&&(!s||l<=n)&&void 0!==l&&A.push(l),l>n&&(u=!0),l=d}}}else e=this.lin2log(e),n=this.lin2log(n),t=s?o.getMinorTickInterval():l.tickInterval,t=i("auto"===t?null:t,this.minorAutoInterval,l.tickPixelInterval/(s?5:1)*(n-e)/((s?a/o.tickPositions.length:a)||1)),t=r(t),A=o.getLinearTickPositions(t,e,n).map(this.log2lin),s||(this.minorAutoInterval=t/5);return s||(o.tickInterval=t),A},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(n,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[n["Core/Utilities.js"]],function(t){var e,n=t.erase,r=t.extend,i=t.isNumber;return function(t){var e,s=[];t.compose=function(t,n){return e||(e=t),-1===s.indexOf(n)&&(s.push(n),r(n.prototype,o.prototype)),n};var o=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,n){void 0===n&&(n=this.options);var r=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),s=[],o=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:n.acrossPanes}),n=1,t&&r){if(e){var a=t.toString()===r.toString();n=0}for(e=0;e<t.length;e+=2){var l=t[e],A=t[e+1],c=r[e],h=r[e+1];"M"!==l[0]&&"L"!==l[0]||"M"!==A[0]&&"L"!==A[0]||"M"!==c[0]&&"L"!==c[0]||"M"!==h[0]&&"L"!==h[0]||(o&&c[1]===l[1]?(c[1]+=n,h[1]+=n):o||c[2]!==l[2]||(c[2]+=n,h[2]+=n),s.push(["M",l[1],l[2]],["L",A[1],A[2]],["L",h[1],h[2]],["L",c[1],c[2]],["Z"])),s.isFlat=a}}return s},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,n){var r=this,i=this.userOptions,s=new e(this,t);if(this.visible&&(s=s.render()),s){if(this._addedPlotLB||(this._addedPlotLB=!0,(i.plotLines||[]).concat(i.plotBands||[]).forEach(function(t){r.addPlotBandOrLine(t)})),n){var o=i[n]||[];o.push(t),i[n]=o}this.plotLinesAndBands.push(s)}return s},t.prototype.removePlotBandOrLine=function(t){var e=this.plotLinesAndBands,r=this.options,i=this.userOptions;if(e){for(var s=e.length;s--;)e[s].id===t&&e[s].destroy();[r.plotLines||[],i.plotLines||[],r.plotBands||[],i.plotBands||[]].forEach(function(e){for(s=e.length;s--;)(e[s]||{}).id===t&&n(e,e[s])})}},t.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},t.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},t}()}(e||(e={})),e}),e(n,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[n["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],n["Core/Utilities.js"]],function(t,e){var n=e.arrayMax,r=e.arrayMin,i=e.defined,s=e.destroyObjectProperties,o=e.erase,a=e.fireEvent,l=e.merge,A=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(n){return t.compose(e,n)},e.prototype.render=function(){a(this,"render");var t=this,e=t.axis,n=e.horiz,r=e.logarithmic,s=t.options,o=s.color,h=c(s.zIndex,0),u=s.events,p={},d=e.chart.renderer,f=s.label,g=t.label,m=s.to,y=s.from,v=s.value,O=t.svgElem,b=[],x=i(y)&&i(m);b=i(v);var w=!O,_={class:"highcharts-plot-"+(x?"band ":"line ")+(s.className||"")},S=x?"bands":"lines";if(r&&(y=r.log2lin(y),m=r.log2lin(m),v=r.log2lin(v)),e.chart.styledMode||(b?(_.stroke=o||"#999999",_["stroke-width"]=c(s.width,1),s.dashStyle&&(_.dashstyle=s.dashStyle)):x&&(_.fill=o||"#e6ebf5",s.borderWidth&&(_.stroke=s.borderColor,_["stroke-width"]=s.borderWidth))),p.zIndex=h,S+="-"+h,(r=e.plotLinesAndBandsGroups[S])||(e.plotLinesAndBandsGroups[S]=r=d.g("plot-"+S).attr(p).add()),w&&(t.svgElem=O=d.path().attr(_).add(r)),b)b=e.getPlotLinePath({value:v,lineWidth:O.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!x)return;b=e.getPlotBandPath(y,m,s)}return!t.eventsAdded&&u&&(A(u,function(e,n){O.on(n,function(e){u[n].apply(t,[e])})}),t.eventsAdded=!0),(w||!O.d)&&b&&b.length?O.attr({d:b}):O&&(b?(O.show(),O.animate({d:b})):O.d&&(O.hide(),g&&(t.label=g=g.destroy()))),f&&(i(f.text)||i(f.formatter))&&b&&b.length&&0<e.width&&0<e.height&&!b.isFlat?(f=l({align:n&&x&&"center",x:n?!x&&4:10,verticalAlign:!n&&x&&"middle",y:n?x?16:10:x?6:-4,rotation:n&&!x&&90},f),this.renderLabel(f,b,x,h)):g&&g.hide(),t},e.prototype.renderLabel=function(t,e,i,s){var o=this.axis,a=o.chart.renderer,A=this.label;A||(this.label=A=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:s}).add(),o.chart.styledMode||A.css(l({textOverflow:"ellipsis"},t.style))),s=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=r(s),a=r(e),A.align(t,!1,{x:i,y:a,width:n(s)-i,height:n(e)-a}),A.alignValue&&"left"!==A.alignValue||(t=t.clip?o.width:o.chart.chartWidth,A.css({width:(90===A.rotation?o.height-(A.alignAttr.y-o.top):t-(A.alignAttr.x-o.left))+"px"})),A.show(!0)},e.prototype.getLabelText=function(t){return i(t.formatter)?t.formatter.call(this):t.text},e.prototype.destroy=function(){o(this.axis.plotLinesAndBands,this),delete this.axis,s(this)},e}(),e}),e(n,"Core/Tooltip.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],function(t,e,n,r,i){var s=t.format,o=e.doc,a=n.distribute,l=i.clamp,A=i.css,c=i.discardElement,h=i.extend,u=i.fireEvent,p=i.isArray,d=i.isNumber,f=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 n=e&&e.tt;n&&(!n.isActive||t?e.tt=n.destroy():n.isActive=!1)})},t.prototype.defaultFormatter=function(t){var e=this.points||y(this),n=[t.tooltipFooterHeaderFormatter(e[0])];return(n=n.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),n},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 n=this.chart,r=n.pointer,i=n.inverted,s=n.plotTop;if(n=n.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=r.normalize(e)),t=[e.chartX-n,e.chartY-s];else if(t[0].tooltipPos)t=t[0].tooltipPos;else{var o=0,a=0;t.forEach(function(t){(t=t.pos(!0))&&(o+=t[0],a+=t[1])}),o/=t.length,a/=t.length,this.shared&&1<t.length&&e&&(i?o=e.chartX:a=e.chartY),t=[o-n,a-s]}return t.map(Math.round)},t.prototype.getClassName=function(t,e,n){var r=t.series,i=r.options;return[this.options.className,"highcharts-label",n&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!n&&"highcharts-color-"+m(t.colorIndex,r.colorIndex),i&&i.className].filter(f).join(" ")},t.prototype.getLabel=function(){var t,n=this,i=this.chart.styledMode,s=this.options,o=this.split&&this.allowShared,a=s.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),l=this.chart.renderer;if(n.label){var c=!n.label.hasClass("highcharts-label");(o&&!c||!o&&c)&&n.destroy()}if(!this.label){if(this.outside){c=this.chart.options.chart.style;var h=r.getRendererType();this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",A(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=l=new h(t,0,0,c,void 0,void 0,l.styledMode)}if(o?this.label=l.g("tooltip"):(this.label=l.label("",0,0,s.shape,void 0,void 0,s.useHTML,void 0,"tooltip").attr({padding:s.padding,r:s.borderRadius}),i||this.label.attr({fill:s.backgroundColor,"stroke-width":s.borderWidth}).css(s.style).css({pointerEvents:a}).shadow(s.shadow)),i&&s.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),n.outside&&!n.split){var u=this.label,p=u.xSetter,d=u.ySetter;u.xSetter=function(e){p.call(u,n.distance),t.style.left=e+"px"},u.ySetter=function(e){d.call(u,n.distance),t.style.top=e+"px"}}this.label.attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,n){var r,i=this.chart,s=this.distance,a={},l=i.inverted&&n.h||0,A=this.outside,c=A?o.documentElement.clientWidth-2*s:i.chartWidth,h=A?Math.max(o.body.scrollHeight,o.documentElement.scrollHeight,o.body.offsetHeight,o.documentElement.offsetHeight,o.documentElement.clientHeight):i.chartHeight,u=i.pointer.getChartPosition(),p=function(r){var o="x"===r;return[r,o?c:h,o?t:e].concat(A?[o?t*u.scaleX:e*u.scaleY,o?u.left-s+(n.plotX+i.plotLeft)*u.scaleX:u.top-s+(n.plotY+i.plotTop)*u.scaleY,0,o?c:h]:[o?t:e,o?n.plotX+i.plotLeft:n.plotY+i.plotTop,o?i.plotLeft:i.plotTop,o?i.plotLeft+i.plotWidth:i.plotTop+i.plotHeight])},d=p("y"),f=p("x");p=!!n.negative,!i.polar&&i.hoverSeries&&i.hoverSeries.yAxis&&i.hoverSeries.yAxis.reversed&&(p=!p);var g=!this.followPointer&&m(n.ttBelow,!i.inverted===p),y=function(t,e,n,r,i,o,c){var h=A?"y"===t?s*u.scaleY:s*u.scaleX:s,p=(n-r)/2,d=r<i-s,f=i+s+r<e,m=i-h-n+p;if(i=i+h-p,g&&f)a[t]=i;else if(!g&&d)a[t]=m;else if(d)a[t]=Math.min(c-r,0>m-l?m:m-l);else{if(!f)return!1;a[t]=Math.max(o,i+l+n>e?i:i+l)}},v=function(t,e,n,r,i){var o;return i<s||i>e-s?o=!1:a[t]=i<n/2?1:i>e-r/2?e-r-2:i-n/2,o},O=function(t){var e=d;d=f,f=e,r=t},b=function(){!1!==y.apply(0,d)?!1!==v.apply(0,f)||r||(O(!0),b()):r?a.x=a.y=0:(O(!0),b())};return(i.inverted||1<this.len)&&O(),b(),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,n,r){var s=this,o=s.now,a=!1!==s.options.animation&&!s.isHidden&&(1<Math.abs(t-o.x)||1<Math.abs(e-o.y)),l=s.followPointer||1<s.len;h(o,{x:a?(2*o.x+t)/3:t,y:a?(o.y+e)/2:e,anchorX:l?void 0:a?(2*o.anchorX+n)/3:n,anchorY:l?void 0:a?(o.anchorY+r)/2:r}),s.getLabel().attr(o),s.drawTracker(),a&&(i.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){s&&s.move(t,e,n,r)},32))},t.prototype.refresh=function(t,e){var n=this.chart,r=this.options,s=n.pointer,o=y(t),a=o[0],l=[],A=r.formatter||this.defaultFormatter,c=this.shared,h=n.styledMode,d={};if(r.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 f=(t=this.getAnchor(t,e))[0],g=t[1];if(c&&this.allowShared?(s.applyInactiveState(o),o.forEach(function(t){t.setState("hover"),l.push(t.getLabelConfig())}),(d={x:a.category,y:a.y}).points=l):d=a.getLabelConfig(),this.len=l.length,A=A.call(d,this),c=a.series,this.distance=m(c.tooltipOptions.distance,16),!1===A)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(A,o);else{var v=f,O=g;if(e&&s.isDirectTouch&&(v=e.chartX-n.plotLeft,O=e.chartY-n.plotTop),!n.polar&&!1!==c.options.clip&&!o.some(function(t){return s.isDirectTouch||t.series.shouldShowTooltip(v,O)}))return void this.hide();e=this.getLabel(),r.style.width&&!h||e.css({width:n.spacingBox.width+"px"}),e.attr({text:A&&A.join?A.join(""):A}),e.addClass(this.getClassName(a),!0),h||e.attr({stroke:r.borderColor||a.color||c.color||"#666666"}),this.updatePosition({plotX:f,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 n(t,e,n,i,s){return void 0===s&&(s=!0),n?(e=T?0:N,t=l(t-i/2,C.left,C.right-i-(r.outside?P:0))):(e-=k,t=l(t=s?t-i-w:t+w,s?t:C.left,C.right)),{x:t,y:e}}var r=this,i=r.chart,s=r.chart,A=s.chartWidth,c=s.chartHeight,u=s.plotHeight,p=s.plotLeft,d=s.plotTop,g=s.pointer,y=s.scrollablePixelsY;y=void 0===y?0:y;var v=s.scrollablePixelsX,O=s.scrollingContainer,b=(O=void 0===O?{scrollLeft:0,scrollTop:0}:O).scrollLeft;O=O.scrollTop;var x=s.styledMode,w=r.distance,_=r.options,S=r.options.positioner,C=r.outside&&"number"!=typeof v?o.documentElement.getBoundingClientRect():{left:b,right:b+A,top:O,bottom:O+c},E=r.getLabel(),B=this.renderer||i.renderer,T=!(!i.xAxis[0]||!i.xAxis[0].opposite),P=(i=g.getChartPosition()).left;i=i.top;var k=d+O,I=0,N=u-y;f(t)&&(t=[!1,t]),t=t.slice(0,e.length+1).reduce(function(t,i,s){if(!1!==i&&""!==i){var o=(s=e[s-1]||{isHeader:!0,plotX:e[0].plotX,plotY:u,series:{}}).isHeader,a=o?r:s.series;i=i.toString();var A=a.tt,c=s.isHeader,h=s.series;A||(A={padding:_.padding,r:_.borderRadius},x||(A.fill=_.backgroundColor,A["stroke-width"]=_.borderWidth),A=B.label("",0,0,_[c?"headerShape":"shape"],void 0,void 0,_.useHTML).addClass(r.getClassName(s,!0,c)).attr(A).add(E)),A.isActive=!0,A.attr({text:i}),x||A.css(_.style).shadow(_.shadow).attr({stroke:_.borderColor||s.color||h.color||"#333333"}),i=(c=(a=a.tt=A).getBBox()).width+a.strokeWidth(),o&&(I=c.height,N+=I,T&&(k-=I)),h=void 0===(h=s.plotX)?0:h,A=void 0===(A=s.plotY)?0:A;var f=s.series;if(s.isHeader){h=p+h;var g=d+u/2}else{var y=f.xAxis,v=f.yAxis;h=y.pos+l(h,-w,y.len+w),f.shouldShowTooltip(0,v.pos-d+A,{ignoreX:!0})&&(g=v.pos+A)}h=l(h,C.left-w,C.right+w),"number"==typeof g?(c=c.height+1,A=S?S.call(r,i,c,s):n(h,g,o,i),t.push({align:S?0:void 0,anchorX:h,anchorY:g,boxWidth:i,point:s,rank:m(A.rank,o?1:0),size:c,target:A.y,tt:a,x:A.x})):a.isActive=!1}return t},[]),!S&&t.some(function(t){var e=(r.outside?P:0)+t.anchorX;return e<C.left&&e+t.boxWidth<C.right||e<P-C.left+t.boxWidth&&C.right-e>e})&&(t=t.map(function(t){var e=n(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return h(t,{target:e.y,x:e.x})})),r.cleanSplit(),a(t,N);var Q=P,F=P;t.forEach(function(t){var e=t.x,n=t.boxWidth;(t=t.isHeader)||(r.outside&&P+e<Q&&(Q=P+e),!t&&r.outside&&Q+n>F&&(F=P+e))}),t.forEach(function(t){var e=t.x,n=t.anchorX,i=t.pos,s=t.point.isHeader;if(i={visibility:void 0===i?"hidden":"inherit",x:e,y:(i||0)+k,anchorX:n,anchorY:t.anchorY},r.outside&&e<n){var o=P-Q;0<o&&(s||(i.x=e+o,i.anchorX=n+o),s&&(i.x=(F-Q)/2,i.anchorX=n+o))}t.tt.attr(i)}),t=r.container,y=r.renderer,r.outside&&t&&y&&(s=E.getBBox(),y.setSize(s.width+s.x,s.height+s.y,!1),t.style.left=Q+"px",t.style.top=i+"px")},t.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var t=this.chart,e=this.label,n=this.shared?t.hoverPoints:t.hoverPoint;if(e&&n){var r={x:0,y:0,width:0,height:0};n=this.getAnchor(n);var i=e.getBBox();n[0]+=t.plotLeft-e.translateX,n[1]+=t.plotTop-e.translateY,r.x=Math.min(0,n[0]),r.y=Math.min(0,n[1]),r.width=0>n[0]?Math.max(Math.abs(n[0]),i.width-n[0]):Math.max(Math.abs(n[0]),i.width),r.height=0>n[1]?Math.max(Math.abs(n[1]),i.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),i.height),this.tracker?this.tracker.attr(r):(this.tracker=e.renderer.rect(r).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 n=t.series,r=n.tooltipOptions,i=n.xAxis,o=i&&i.dateTime;i={isFooter:e,labelConfig:t};var a=r.xDateFormat,l=r[e?"footerFormat":"headerFormat"];return u(this,"headerFormatter",i,function(e){o&&!a&&d(t.key)&&(a=o.getXDateFormat(t.key,r.dateTimeLabelFormats)),o&&a&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach(function(t){l=l.replace("{point."+t+"}","{point."+t+":"+a+"}")}),n.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=s(l,{point:t,series:n},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,n=this.distance,r=this.options,i=e.pointer,s=this.getLabel(),o=i.getChartPosition();i=o.left;var a=o.top,l=o.scaleX;o=o.scaleY;var c=(r.positioner||this.getPosition).call(this,s.width,s.height,t),h=(t.plotX||0)+e.plotLeft;t=(t.plotY||0)+e.plotTop,this.outside&&(r.positioner&&(c.x+=i-n,c.y+=a-n),n=r.borderWidth+2*n,this.renderer.setSize(s.width+n,s.height+n,!1),1===l&&1===o||(A(this.container,{transform:"scale(".concat(l,", ").concat(o,")")}),h*=l,t*=o),h+=i-c.x,t+=a-c.y),this.move(Math.round(c.x),Math.round(c.y||0),h,t)},t}(),t}),e(n,"Core/Series/Point.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Defaults.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],function(t,e,n,r,i){var s=e.animObject,o=n.defaultOptions,a=r.format,l=i.addEvent,A=i.defined,c=i.erase,h=i.extend,u=i.fireEvent,p=i.getNestedProperty,d=i.isArray,f=i.isFunction,g=i.isNumber,m=i.isObject,y=i.merge,v=i.objectEach,O=i.pick,b=i.syncTimeout,x=i.removeEvent,w=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},n=t.getGraphicalProps();n.singular.forEach(function(n){t[n]=t[n].animate("dataLabel"===n?{x:t[n].startXPos,y:t[n].startYPos,opacity:0}:e)}),n.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,n){var r=this.series,i=r.options.pointValKey||r.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===n&&r.xAxis&&r.xAxis.hasNames&&(this.x=r.xAxis.nameToX(this)),void 0===this.x&&r?this.x=void 0===n?r.autoIncrement():n:g(t.x)&&r.options.relativeXValue&&(this.x=r.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,n=e.series,r=n.chart;n=n.options.dataSorting;var i,o=r.hoverPoints,a=s(e.series.chart.renderer.globalAnimation);e.legendItem&&r.legend.destroyItem(e),o&&(e.setState(),c(o,e),o.length||(r.hoverPoints=null)),e===r.hoverPoint&&e.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),b(t,a.duration)):t(),r.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,n){var r=this,i=this.series.options;(i.point.events[t]||r.options&&r.options.events&&r.options.events[t])&&r.importEvents(),"click"===t&&i.allowPointSelect&&(n=function(t){r.select&&r.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),u(r,t,e,n)},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,n=this,r=[],i={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&r.push("graphic","shadowGroup"),t.dataLabel&&r.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),e=r.length;e--;){var s=r[e];n[s]&&i.singular.push(s)}return["graphic","dataLabel","connector"].forEach(function(e){var r=e+"s";t[e]&&n[r]&&i.plural.push(r)}),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 n,r=0;for(n=e[r];this[t]>=n.value;)n=e[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,n){return this.series=t,this.applyOptions(e,n),this.id=A(this.id)?this.id:w(),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 n=this.series,r=n.options.keys,i=r||n.pointArrayMap||["y"],s=i.length,o={},a=0,l=0;if(g(t)||null===t)o[i[0]]=t;else if(d(t))for(!r&&t.length>s&&("string"==(n=typeof t[0])?o.name=t[0]:"number"===n&&(o.x=t[0]),a++);l<s;)r&&void 0===t[a]||(0<i[l].indexOf(".")?e.prototype.setNestedProperty(o,t[a],i[l]):o[i[l]]=t[a]),a++,l++;else"object"==typeof t&&(o=t,t.dataLabels&&(n._hasPointLabels=!0),t.marker&&(n._hasPointMarkers=!0));return o},e.prototype.pos=function(t,e){void 0===e&&(e=this.plotY);var n=this.plotX,r=this.series,i=r.chart,s=r.xAxis;r=r.yAxis;var o=0,a=0;if(g(n)&&g(e))return t&&(o=s?s.pos:i.plotLeft,a=r?r.pos:i.plotTop),i.inverted&&s&&r?[r.len-e+a,s.len-n+o]:[n+o,e+a]},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.styledMode,n=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!e){var r=(n=t.options.colors||t.chart.options.colors)[t.colorCounter];n=n.length}e=t.colorCounter,t.colorCounter++,t.colorCounter===n&&(t.colorCounter=0)}else e||(r=t.color),e=t.colorIndex;this.colorIndex=O(this.options.colorIndex,e),this.color=O(this.options.color,r)},e.prototype.setNestedProperty=function(t,e,n){return n.split(".").reduce(function(t,n,r,i){return t[n]=i.length-1===r?e:m(t[n],!0)?t[n]:{},t[n]},t),t},e.prototype.shouldDraw=function(){return!this.isNull},e.prototype.tooltipFormatter=function(t){var e=this.series,n=e.tooltipOptions,r=O(n.valueDecimals,""),i=n.valuePrefix||"",s=n.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach(function(e){e="{point."+e,(i||s)&&(t=t.replace(RegExp(e+"}","g"),i+e+"}"+s)),t=t.replace(RegExp(e+"}","g"),e+":,."+r+"f}")}),a(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,n,r){function i(){o.applyOptions(t);var r=l&&o.hasMockGraphic;r=null===o.y?!r:r,l&&r&&(o.graphic=l.destroy(),delete o.hasMockGraphic),m(t,!0)&&(l&&l.element&&t&&t.marker&&void 0!==t.marker.symbol&&(o.graphic=l.destroy()),t&&t.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy()),o.connector&&(o.connector=o.connector.destroy())),s=o.index,a.updateParallelArrays(o,s),c.data[s]=m(c.data[s],!0)||m(t,!0)?o.options:O(t,c.data[s]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(A.isDirtyBox=!0),"point"===c.legendType&&(A.isDirtyLegend=!0),e&&A.redraw(n)}var s,o=this,a=o.series,l=o.graphic,A=a.chart,c=a.options;e=O(e,!0),!1===r?i():o.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 n=this,r=n.series,i=r.chart;this.selectedStaging=t=O(t,!n.selected),n.firePointEvent(t?"select":"unselect",{accumulate:e},function(){n.selected=n.options.selected=t,r.options.data[r.data.indexOf(n)]=n.options,n.setState(t&&"select"),e||i.getSelectedPoints().forEach(function(t){var e=t.series;t.selected&&t!==n&&(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,n=e.pointer;t=t?n.normalize(t):n.getChartCoordinatesFromPoint(this,e.inverted),n.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,n){f(e)&&l(t,n,e)}),this.hasImportedEvents=!0}},e.prototype.setState=function(e,n){var r,i=this.series,s=this.state,a=i.options.states[e||"normal"]||{},l=o.plotOptions[i.type].marker&&i.options.marker,A=l&&!1===l.enabled,c=l&&l.states&&l.states[e||"normal"]||{},p=!1===c.enabled,d=this.marker||{},f=i.chart,m=l&&i.markerAttribs,y=i.halo,v=i.stateMarkerGraphic;if(!((e=e||"")===this.state&&!n||this.selected&&"select"!==e||!1===a.enabled||e&&(p||A&&!1===c.enabled)||e&&d.states&&d.states[e]&&!1===d.states[e].enabled)){if(this.state=e,m&&(r=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),e&&this.graphic.addClass("highcharts-point-"+e),!f.styledMode){s=i.pointAttribs(this,e);var b=O(f.options.chart.animation,a.animation),x=s.opacity;i.options.inactiveOtherPoints&&g(x)&&((this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&t.animate({opacity:x},b)}),this.connector&&this.connector.animate({opacity:x},b)),this.graphic.animate(s,b)}r&&this.graphic.animate(r,O(f.options.chart.animation,c.animation,l.animation)),v&&v.hide()}else e&&c&&(l=d.symbol||i.symbol,v&&v.currentSymbol!==l&&(v=v.destroy()),r&&(v?v[n?"animate":"attr"]({x:r.x,y:r.y}):l&&(i.stateMarkerGraphic=v=f.renderer.symbol(l,r.x,r.y,r.width,r.height).add(i.markerGroup),v.currentSymbol=l)),!f.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,r=(v=this.graphic||v)&&v.visibility||"inherit",a&&a.size&&v&&"hidden"!==r&&!this.isCluster?(y||(i.halo=y=f.renderer.path().add(v.parentGroup)),y.show()[n?"animate":"attr"]({d:this.haloPath(a.size)}),y.attr({class:"highcharts-halo highcharts-color-"+O(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:r,zIndex:-1}),y.point=this,f.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(n,"Core/Pointer.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Tooltip.js"],n["Core/Utilities.js"]],function(t,e,n,r){var i=t.parse,s=e.charts,o=e.noop,a=r.addEvent,l=r.attr,A=r.css,c=r.defined,h=r.extend,u=r.find,p=r.fireEvent,d=r.isNumber,f=r.isObject,g=r.objectEach,m=r.offset,y=r.pick,v=r.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,n=[];(t||[]).forEach(function(t){e=t.series,n.push(e),e.linkedParent&&n.push(e.linkedParent),e.linkedSeries&&(n=n.concat(e.linkedSeries)),e.navigatorSeries&&n.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===n.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},t.prototype.destroy=function(){var n=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(n.tooltipTimeout),g(n,function(t,e){n[e]=void 0})},t.prototype.getSelectionMarkerAttrs=function(t,e){var n=this,r={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return p(this,"getSelectionMarkerAttrs",r,function(r){var i=n.chart,s=n.mouseDownX;s=void 0===s?0:s;var o=n.mouseDownY;o=void 0===o?0:o;var a=n.zoomHor,l=n.zoomVert;(r=r.attrs).x=i.plotLeft,r.y=i.plotTop,r.width=a?1:i.plotWidth,r.height=l?1:i.plotHeight,a&&(i=t-s,r.width=Math.abs(i),r.x=(0<i?0:i)+s),l&&(i=e-o,r.height=Math.abs(i),r.y=(0<i?0:i)+o)}),r},t.prototype.drag=function(t){var e=this.chart,n=e.options.chart,r=e.plotLeft,s=e.plotTop,o=e.plotWidth,a=e.plotHeight,l=this.mouseDownX||0,A=this.mouseDownY||0,c=f(n.panning)?n.panning&&n.panning.enabled:n.panning,h=n.panKey&&t[n.panKey+"Key"],u=t.chartX,p=t.chartY,d=this.selectionMarker;d&&d.touch||(u<r?u=r:u>r+o&&(u=r+o),p<s?p=s:p>s+a&&(p=s+a),this.hasDragged=Math.sqrt(Math.pow(l-u,2)+Math.pow(A-p,2)),10<this.hasDragged&&(r=e.isInsidePlot(l-r,A-s,{visiblePlotOnly:!0}),u=(p=this.getSelectionMarkerAttrs(u,p)).shapeType,p=p.attrs,!e.hasCartesianSeries&&!e.mapView||!this.zoomX&&!this.zoomY||!r||h||d||(this.selectionMarker=d=e.renderer[u](),d.attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||d.attr({fill:n.selectionMarkerFill||i("#335cad").setOpacity(.25).get()})),d&&d.attr(p),r&&!d&&c&&e.pan(t,n.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,n=this.chart,r=this.hasPinched;if(this.selectionMarker){var i=this.getSelectionBox(this.selectionMarker),s=i.x,o=i.y,a=i.width,l=i.height,u={originalEvent:t,xAxis:[],yAxis:[],x:s,y:o,width:a,height:l},f=!!n.mapView;(this.hasDragged||r)&&(n.axes.forEach(function(n){if(n.zoomEnabled&&c(n.min)&&(r||e[{xAxis:"zoomX",yAxis:"zoomY"}[n.coll]])&&d(s)&&d(o)&&d(a)&&d(l)){var i=n.horiz,A="touchend"===t.type?n.minPixelPadding:0,h=n.toValue((i?s:o)+A);i=n.toValue((i?s+a:o+l)-A),u[n.coll].push({axis:n,min:Math.min(h,i),max:Math.max(h,i)}),f=!0}}),f&&p(n,"selection",u,function(t){n.zoom(h(t,r?{animation:!1}:null))})),d(n.index)&&(this.selectionMarker=this.selectionMarker.destroy()),r&&this.scaleGroups()}n&&d(n.index)&&(A(n.container,{cursor:n._cursor}),n.cancelClick=10<this.hasDragged,n.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,n){var r;return t.forEach(function(t){var i=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(n,i),(i=f(t,!0)&&t.series)&&!(i=!f(r,!0))){i=r.distX-t.distX;var s=r.dist-t.dist,o=(t.series.group&&t.series.group.zIndex)-(r.series.group&&r.series.group.zIndex);i=0<(0!==i&&e?i:0!==s?s:0!==o?o:r.series.index>t.series.index?-1:1)}i&&(r=t)}),r},t.prototype.getChartCoordinatesFromPoint=function(t,e){var n=t.series,r=n.xAxis;n=n.yAxis;var i=t.shapeArgs;if(r&&n){var s=y(t.clientX,t.plotX),o=t.plotY||0;return t.isNode&&i&&d(i.x)&&d(i.y)&&(s=i.x,o=i.y),e?{chartX:n.len+n.pos-o,chartY:r.len+r.pos-s}:{chartX:s+r.pos,chartY:o+n.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 n=t.offsetWidth;return t=t.offsetHeight,2<n&&2<t&&(this.chartPosition.scaleX=e.width/n,this.chartPosition.scaleY=e.height/t),this.chartPosition},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(n){e[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(t[n.horiz?"chartX":"chartY"])})}),e},t.prototype.getHoverData=function(t,e,n,r,i,s){var o=[];r=!(!r||!t);var a=function(t){return t.visible&&!(!i&&t.directTouch)&&y(t.options.enableMouseTracking,!0)},l={chartX:s?s.chartX:void 0,chartY:s?s.chartY:void 0,shared:i};p(this,"beforeGetHoverData",l);var A=e&&!e.stickyTracking?[e]:n.filter(function(t){return t.stickyTracking&&(l.filter||a)(t)}),c=r||!s?t:this.findNearestKDPoint(A,i,s);return e=c&&c.series,c&&(i&&!e.noSharedTooltip?(A=n.filter(function(t){return l.filter?l.filter(t):a(t)&&!t.noSharedTooltip}),A.forEach(function(t){var e=u(t.points,function(t){return t.x===c.x&&!t.isNull});f(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),o.push(e))})):o.push(c)),p(this,"afterGetHoverData",l={hoverPoint:c}),{hoverPoint:l.hoverPoint,hoverSeries:e,hoverPoints:o}},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 n;t;){if(n=l(t,"class")){if(-1!==n.indexOf(e))return!0;if(-1!==n.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={},n&&(t.tooltip=new n(t,e.tooltip)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var n=t.touches,r=n?n.length?n.item(0):y(n.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),n=r.pageX-e.left,r=r.pageY-e.top,n/=e.scaleX,r/=e.scaleY,h(t,{chartX:Math.round(n),chartY:Math.round(r)})},t.prototype.onContainerClick=function(t){var e=this.chart,n=e.hoverPoint;t=this.normalize(t);var r=e.plotLeft,i=e.plotTop;e.cancelClick||(n&&this.inClass(t.target,"highcharts-tracker")?(p(n.series,"click",h(t,{point:n})),e.hoverPoint&&n.firePointEvent("click",t)):(h(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-r,t.chartY-i,{visiblePlotOnly:!0})&&p(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var n=!(1&~(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||n)&&(this.zoomOption(t),n&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var n=s[y(t.hoverChartIndex,-1)],r=this.chart.tooltip;e=this.normalize(e),n&&(e.relatedTarget||e.toElement)&&(n.pointer.reset(),n.pointer.chartPosition=void 0),r&&!r.isHidden&&this.reset()},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart,n=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})||n&&n.shouldStickOnContact(t)||(this.inClass(t.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(t))},t.prototype.onDocumentTouchEnd=function(e){var n=s[y(t.hoverChartIndex,-1)];n&&n.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,n=e.tooltip,r=this.chartPosition;t=this.normalize(t,r),!r||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||n&&n.shouldStickOnContact(t)||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var n=s[y(t.hoverChartIndex,-1)];n&&n.pointer.drop(e)},t.prototype.pinch=function(t){var e=this,n=e.chart,r=e.pinchDown,i=t.touches||[],s=i.length,a=e.lastValidTouch,l=e.hasZoom,A={},c=1===s&&(e.inClass(t.target,"highcharts-tracker")&&n.runTrackerClick||e.runChartClick),u={},d=e.chart.tooltip;d=1===s&&y(d&&d.options.followTouchMove,!0);var f=e.selectionMarker;1<s?e.initiated=!0:d&&(e.initiated=!1),l&&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){r[e]={chartX:t.chartX,chartY:t.chartY}}),a.x=[r[0].chartX,r[1]&&r[1].chartX],a.y=[r[0].chartY,r[1]&&r[1].chartY],n.axes.forEach(function(t){if(t.zoomEnabled){var e=n.bounds[t.horiz?"h":"v"],r=t.minPixelPadding,i=t.toPixels(Math.min(y(t.options.min,t.dataMin),t.dataMin)),s=t.toPixels(Math.max(y(t.options.max,t.dataMax),t.dataMax)),o=Math.max(i,s);e.min=Math.min(t.pos,Math.min(i,s)-r),e.max=Math.max(t.pos+t.len,o+r)}}),e.res=!0):d?this.runPointActions(e.normalize(t)):r.length&&(p(n,"touchpan",{originalEvent:t},function(){f||(e.selectionMarker=f=h({destroy:o,touch:!0},n.plotBox)),e.pinchTranslate(r,i,A,f,u,a),e.hasPinched=l,e.scaleGroups(A,u)}),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,n,r,i,s){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,n,r,i,s),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,n,r,i,s)},t.prototype.pinchTranslateDirection=function(t,e,n,r,i,s,o,a){var l=this.chart,A=t?"x":"y",c=t?"X":"Y",h="chart"+c,u=t?"width":"height",p=l["plot"+(t?"Left":"Top")],d=l.inverted,f=l.bounds[t?"h":"v"],g=1===e.length,m=e[0][h],y=!g&&e[1][h];e=function(){"number"==typeof w&&20<Math.abs(m-y)&&(b=a||Math.abs(x-w)/Math.abs(m-y)),O=(p-x)/b+m,v=l["plot"+(t?"Width":"Height")]/b};var v,O,b=a||1,x=n[0][h],w=!g&&n[1][h];if(e(),(n=O)<f.min){n=f.min;var _=!0}else n+v>f.max&&(n=f.max-v,_=!0);_?(x-=.8*(x-o[A][0]),"number"==typeof w&&(w-=.8*(w-o[A][1])),e()):o[A]=[x,w],d||(s[A]=O-p,s[u]=v),s=d?1/b:b,i[u]=v,i[A]=n,r[d?t?"scaleY":"scaleX":"scale"+c]=b,r["translate"+c]=s*p+(x-s*m)},t.prototype.reset=function(t,e){var n=this.chart,r=n.hoverSeries,i=n.hoverPoint,s=n.hoverPoints,o=n.tooltip,a=o&&o.shared?s:i;t&&a&&v(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?o&&a&&v(a).length&&(o.refresh(a),o.shared&&s?s.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),n.axes.forEach(function(t){t.crosshair&&i.series[t.coll]===t&&t.drawCrosshair(null,i)}))):(i&&i.onMouseOut(),s&&s.forEach(function(t){t.setState()}),r&&r.onMouseOut(),o&&o.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach(function(t){t.hideCrosshair()}),this.hoverX=n.hoverPoints=n.hoverPoint=null)},t.prototype.runPointActions=function(e,n,r){var i=this.chart,o=i.tooltip&&i.tooltip.options.enabled?i.tooltip:void 0,l=!!o&&o.shared,A=n||i.hoverPoint,c=A&&A.series||i.hoverSeries;n=this.getHoverData(A,c,i.series,(!e||"touchmove"!==e.type)&&(!!n||c&&c.directTouch&&this.isDirectTouch),l,e),A=n.hoverPoint,c=n.hoverSeries;var h=n.hoverPoints;n=c&&c.tooltipOptions.followPointer&&!c.tooltipOptions.split;var p=l&&c&&!c.noSharedTooltip;if(A&&(r||A!==i.hoverPoint||o&&o.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"),!A.series)return;i.hoverPoints=h,i.hoverPoint=A,A.firePointEvent("mouseOver",void 0,function(){o&&A&&o.refresh(p?h:A,e)})}else n&&o&&!o.isHidden&&(r=o.getAnchor([{}],e),i.isInsidePlot(r[0],r[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:r[0],plotY:r[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(i.container.ownerDocument,"mousemove",function(e){var n=s[t.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),i.axes.forEach(function(t){var n,r=y((t.crosshair||{}).snap,!0);r&&((n=i.hoverPoint)&&n.series[t.coll]===t||(n=u(h,function(e){return e.series&&e.series[t.coll]===t}))),n||!r?t.drawCrosshair(e,n):t.hideCrosshair()})},t.prototype.scaleGroups=function(t,e){var n=this.chart;n.series.forEach(function(r){var i=t||r.getPlotBox();r.group&&(r.xAxis&&r.xAxis.zoomEnabled||n.mapView)&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(i),r.markerGroup.clip(e?n.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))}),n.clipRect.attr(e||n.clipBox)},t.prototype.setDOMEvents=function(){var n=this,r=this.chart.container,i=r.ownerDocument;r.onmousedown=this.onContainerMouseDown.bind(this),r.onmousemove=this.onContainerMouseMove.bind(this),r.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(a(r,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(a(r,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=a(i,"mouseup",this.onDocumentMouseUp.bind(this)));for(var s=this.chart.renderTo.parentElement;s&&"BODY"!==s.tagName;)this.eventsToUnbind.push(a(s,"scroll",function(){delete n.chartPosition})),s=s.parentElement;e.hasTouch&&(this.eventsToUnbind.push(a(r,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(a(r,"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 n=this.chart,r=e.charts[y(t.hoverChartIndex,-1)];r&&r!==n&&r.pointer.onContainerMouseLeave({relatedTarget:n.container}),r&&r.mouseIsDown||(t.hoverChartIndex=n.index)},t.prototype.touch=function(t,e){var n=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop,{visiblePlotOnly:!0})&&!n.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var r=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));y(r,!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,n=e.options.chart;e=e.inverted;var r=n.zooming.type||"";/touch/.test(t.type)&&(r=y(n.zooming.pinchType,r)),this.zoomX=t=/x/.test(r),this.zoomY=n=/y/.test(r),this.zoomHor=t&&!e||n&&e,this.zoomVert=n&&!e||t&&e,this.hasZoom=t||n},t}(),t}),e(n,"Core/MSPointer.js",[n["Core/Globals.js"],n["Core/Pointer.js"],n["Core/Utilities.js"]],function(t,e,n){function r(){var t=[];return t.item=function(t){return this[t]},u(f,function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),t}function i(t,n,i,s){var a=o[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!a||(a=a.pointer,s(t),a[n]({type:i,target:t.currentTarget,preventDefault:l,touches:r()}))}var s=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=t.charts,a=t.doc,l=t.noop,A=t.win,c=n.addEvent,h=n.css,u=n.objectEach,p=n.pick,d=n.removeEvent,f={},g=!!A.PointerEvent;return function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return s(n,e),n.isRequired=function(){return!(t.hasTouch||!A.PointerEvent&&!A.MSPointerEvent)},n.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)},n.prototype.destroy=function(){this.batchMSEvents(d),e.prototype.destroy.call(this)},n.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this.hasZoom&&h(t.container,{"-ms-touch-action":"none","touch-action":"none"})},n.prototype.onContainerPointerDown=function(t){i(t,"onContainerTouchStart","touchstart",function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},n.prototype.onContainerPointerMove=function(t){i(t,"onContainerTouchMove","touchmove",function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY},f[t.pointerId].target||(f[t.pointerId].target=t.currentTarget)})},n.prototype.onDocumentPointerUp=function(t){i(t,"onDocumentTouchEnd","touchend",function(t){delete f[t.pointerId]})},n.prototype.setDOMEvents=function(){var t=this.chart.tooltip;e.prototype.setDOMEvents.call(this),(this.hasZoom||p(t&&t.options.followTouchMove,!0))&&this.batchMSEvents(c)},n}(e)}),e(n,"Core/Legend/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Series/Point.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Utilities.js"]],function(t,e,n,r,i,s){var o=t.animObject,a=t.setAnimation,l=e.format,A=n.marginNames,c=i.distribute,h=s.addEvent,u=s.createElement,p=s.css,d=s.defined,f=s.discardElement,g=s.find,m=s.fireEvent,y=s.isNumber,v=s.merge,O=s.pick,b=s.relativeLength,x=s.stableSort,w=s.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=O(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=O(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var n=this.chart;this.setOptions(v(!0,this.options,t)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,O(e,!0)&&n.redraw(),m(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){var n=t.legendItem||{},r=n.group,i=n.label,s=n.line;if(n=n.symbol,r&&r[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var o=this.options;r=this.itemHiddenStyle.color,o=e?o.itemStyle.color:r;var a=e&&t.color||r,l=t.options&&t.options.marker,A={fill:a};i&&i.css({fill:o,color:o}),s&&s.attr({stroke:a}),n&&(l&&n.isMarker&&(A=t.pointAttribs(),e||(A.stroke=A.fill=r)),n.attr(A))}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,n=t.legendItem||{},r=n.group,i=n.x;i=void 0===i?0:i,n=void 0===(n=n.y)?0:n;var s=this.options,o=s.symbolPadding,a=!s.rtl;s=t.checkbox,r&&r.element&&(o={translateX:a?i:this.legendWidth-i-2*o-4,translateY:n},r[d(r.translateY)?"animate":"attr"](o,void 0,function(){m(e,"afterPositionItem",{item:t})})),s&&(s.x=i,s.y=n)},t.prototype.destroyItem=function(t){for(var e=t.checkbox,n=t.legendItem||{},r=0,i=["group","label","line","symbol"];r<i.length;r++){var s=i[r];n[s]&&(n[s]=n[s].destroy())}e&&f(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 n=e[t];this[n]&&(this[n]=this[n].destroy())}this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,n=this.titleHeight;if(t){var r=t.translateY;this.allItems.forEach(function(i){var s=i.checkbox;if(s){var o=r+n+s.y+(this.scrollOffset||0)+3;p(s,{left:t.translateX+i.checkboxOffset+s.x-20+"px",top:o+"px",display:this.proximate||o>r-6&&o<r+e-6?"":"none"})}},this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,n=t.title,r=0;n.text&&(this.title||(this.title=this.chart.renderer.label(n.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(n.style),this.title.add(this.group)),n.width||this.title.css({width:this.maxLegendWidth+"px"}),r=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r},t.prototype.setText=function(t){var e=this.options;t.legendItem.label.attr({text:e.labelFormat?l(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=t.legendItem=t.legendItem||{},n=this.chart,r=n.renderer,i=this.options,s=this.symbolWidth,o=i.symbolPadding||0,a=this.itemStyle,l=this.itemHiddenStyle,A="horizontal"===i.layout?O(i.itemDistance,20):0,c=!i.rtl,h=!t.series,u=!h&&t.series.drawLegendSymbol?t.series:t,p=u.options,d=this.createCheckboxForItem&&p&&p.showCheckbox,f=i.useHTML,g=t.options.className,m=e.label;p=s+o+A+(d?20:0),m||(e.group=r.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=r.text("",c?s+o:-o,this.baseline||0,f),n.styledMode||m.css(v(t.visible?a:l)),m.attr({align:c?"left":"right",zIndex:2}).add(e.group),this.baseline||(this.fontMetrics=r.fontMetrics(n.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=O(i.symbolWidth,Math.max(this.symbolHeight,16)),p=this.symbolWidth+o+A+(d?20:0),c&&m.attr("x",this.symbolWidth+o))),u.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,m,f)),d&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!n.styledMode&&a.width||m.css({width:(i.itemWidth||this.widthOption||n.spacingBox.width)-p+"px"}),this.setText(t),n=m.getBBox(),r=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=i.itemWidth||e.labelWidth||n.width+p,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(n.height>1.5*r?n.height:r))},t.prototype.layoutItem=function(t){var e=this.options,n=this.padding,r="horizontal"===e.layout,i=t.itemHeight,s=this.itemMarginBottom,o=this.itemMarginTop,a=r?O(e.itemDistance,20):0,l=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth;var A=t.legendItem||{};r&&this.itemX-n+e>l&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=o+this.lastLineHeight+s),this.lastLineHeight=0),this.lastItemY=o+this.itemY+s,this.lastLineHeight=Math.max(i,this.lastLineHeight),A.x=this.itemX,A.y=this.itemY,r?this.itemX+=e:(this.itemY+=o+i+s,this.lastLineHeight=i),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(t.checkbox?0:a):e)+n,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(e){var n=e&&e.options;e&&O(n.showInLegend,!d(n.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===n.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 n=this.chart,r=this.options,i=this.getAlignment();i&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(s,o){s.test(i)&&!d(t[o])&&(n[A[o]]=Math.max(n[A[o]],n.legend[(o+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][o]*r[o%2?"x":"y"]+O(r.margin,12)+e[o]+(n.titleOffset[o]||0)))})},t.prototype.proximatePositions=function(){var t=this.chart,e=[],n="left"===this.options.align;this.allItems.forEach(function(r){var i,s=n;if(r.yAxis){r.xAxis.options.reversed&&(s=!s),r.points&&(i=g(s?r.points:r.points.slice(0).reverse(),function(t){return y(t.plotY)})),s=this.itemMarginTop+r.legendItem.label.getBBox().height+this.itemMarginBottom;var o=r.yAxis.top-t.plotTop;r.visible?(i=i?i.plotY:r.yAxis.height,i+=o-.3*s):i=o+r.yAxis.height,e.push({target:i,size:s,item:r})}},this);for(var r,i=0,s=c(e,t.plotHeight);i<s.length;i++){var o=s[i];r=o.item.legendItem||{},y(o.pos)&&(r.y=t.plotTop-t.spacing[0]+o.pos)}},t.prototype.render=function(){var t=this.chart,e=t.renderer,n=this.options,r=this.padding,i=this.getAllItems(),s=this.group,o=this.box;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=b(n.width,t.spacingBox.width-r);var a=t.spacingBox.width-2*r-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(a/=2),this.maxLegendWidth=this.widthOption||a,s||(this.group=s=e.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(s),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)}),n.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)+r;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l),l+=r,o||(this.box=o=e.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(s)),t.styledMode||o.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0<i&&0<l&&o[o.placed?"animate":"attr"](o.crisp.call({},{x:0,y:0,width:i,height:l},o.strokeWidth())),s[a?"show":"hide"](),t.styledMode&&"none"===s.getStyle("display")&&(i=l=0),this.legendWidth=i,this.legendHeight=l,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,n=this.options,r=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?r+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(r-=e.titleOffset[2]),r!==t.y&&(t=v(t,{y:r})),e.hasRendered||(this.group.placed=!1),this.group.align(v(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,n,r,i=this,s=this.chart,o=s.renderer,a=this.options,l=a.y,A="top"===a.verticalAlign,c=this.padding,h=a.maxHeight,u=a.navigation,p=O(u.animation,!0),d=u.arrowSize||12,f=this.pages,g=this.allItems,m=function(t){"number"==typeof t?b.attr({height:t}):b&&(i.clipRect=b.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]=o.circle(0,0,1.3*d).translate(d/2,d/2).add(v),s.styledMode||i[t].attr("fill","rgba(0,0,0,0.0001)"),i[t]};l=s.spacingBox.height+(A?-l:l)-c;var v=this.nav,b=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(l/=2),h&&(l=Math.min(l,h)),f.length=0,t&&0<l&&t>l&&!1!==u.enabled?(this.clipHeight=e=Math.max(l-20-this.titleHeight-c,0),this.currentPage=O(this.currentPage,1),this.fullHeight=t,g.forEach(function(t,i){t=(r=t.legendItem||{}).y||0;var s=Math.round(r.label.getBBox().height),o=f.length;(!o||t-f[o-1]>e&&(n||t)!==f[o-1])&&(f.push(n||t),o++),r.pageIx=o-1,n&&((g[i-1].legendItem||{}).pageIx=o-1),i===g.length-1&&t+s-f[o-1]>e&&s<=e&&(f.push(t),r.pageIx=o),t!==n&&(n=t)}),b||(b=i.clipRect=o.clipRect(0,c,9999,0),i.contentGroup.clip(b)),m(e),v||(this.nav=v=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,d,d).add(v),y("upTracker").on("click",function(){i.scroll(-1,p)}),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),!s.styledMode&&u.style&&this.pager.css(u.style),this.pager.add(v),this.down=o.symbol("triangle-down",0,0,d,d).add(v),y("downTracker").on("click",function(){i.scroll(1,p)})),i.scroll(0),t=l):v&&(m(),this.nav=v.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var n=this,r=this.chart,i=this.pages,s=i.length,l=this.clipHeight,A=this.options.navigation,c=this.pager,h=this.padding,u=this.currentPage+t;u>s&&(u=s),0<u&&(void 0!==e&&a(e,r),this.nav.attr({translateX:h,translateY:l+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+"/"+s}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:u===s?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),r.styledMode||(this.up.attr({fill:1===u?A.inactiveColor:A.activeColor}),this.upTracker.css({cursor:1===u?"default":"pointer"}),this.down.attr({fill:u===s?A.inactiveColor:A.activeColor}),this.downTracker.css({cursor:u===s?"default":"pointer"})),this.scrollOffset=-i[u-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=u,this.positionCheckboxes(),t=o(O(e,r.renderer.globalAnimation,!0)),w(function(){m(n,"afterScroll",{currentPage:u})},t.duration))},t.prototype.setItemEvents=function(t,e,n){var i=this,s=t.legendItem||{},o=i.chart.renderer.boxWrapper,a=t instanceof r,l="highcharts-legend-"+(a?"point":"series")+"-active",A=i.chart.styledMode,c=function(e){i.allItems.forEach(function(n){t!==n&&[n].concat(n.linkedSeries||[]).forEach(function(t){t.setState(e,!a)})})},h=0;for(n=n?[e,s.symbol]:[s.group];h<n.length;h++)(s=n[h])&&s.on("mouseover",function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&o.addClass(l),A||e.css(i.options.itemHoverStyle)}).on("mouseout",function(){i.chart.styledMode||e.css(v(t.visible?i.itemStyle:i.itemHiddenStyle)),c(""),o.removeClass(l),t.setState()}).on("click",function(e){var n=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};o.removeClass(l),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,n):m(t,"legendItemClick",e,n)})},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(n,"Core/Series/SeriesRegistry.js",[n["Core/Globals.js"],n["Core/Defaults.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],function(t,e,n,r){var i,s=e.defaultOptions,o=r.extendClass,a=r.merge;return function(e){function r(t,r){var i=s.plotOptions||{},o=r.defaultOptions,a=r.prototype;a.type=t,a.pointClass||(a.pointClass=n),o&&(i[t]=o),e.seriesTypes[t]=r}e.seriesTypes=t.seriesTypes,e.registerSeriesType=r,e.seriesType=function(t,i,l,A,c){var h=s.plotOptions||{};return i=i||"",h[t]=a(h[i],l),r(t,o(e.seriesTypes[i]||function(){},A)),e.seriesTypes[t].prototype.type=t,c&&(e.seriesTypes[t].prototype.pointClass=o(n,c)),e.seriesTypes[t]}}(i||(i={})),i}),e(n,"Core/Chart/Chart.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Defaults.js"],n["Core/FormatUtilities.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/Legend.js"],n["Core/MSPointer.js"],n["Core/Pointer.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Time.js"],n["Core/Utilities.js"],n["Core/Renderer/HTML/AST.js"]],function(t,e,n,r,i,s,o,a,l,A,c,h,u,p,d){var f=t.animate,g=t.animObject,m=t.setAnimation,y=n.defaultOptions,v=n.defaultTime,O=r.numberFormat,b=i.registerEventOptions,x=s.charts,w=s.doc,_=s.marginNames,S=s.svg,C=s.win,E=c.seriesTypes,B=p.addEvent,T=p.attr,P=p.cleanRecursively,k=p.createElement,I=p.css,N=p.defined,Q=p.discardElement,F=p.erase,L=p.error,M=p.extend,D=p.find,R=p.fireEvent,U=p.getStyle,$=p.isArray,j=p.isNumber,H=p.isObject,V=p.isString,X=p.merge,z=p.objectEach,G=p.pick,Y=p.pInt,W=p.relativeLength,Z=p.removeEvent,K=p.splat,q=p.syncTimeout,J=p.uniqueKey;return t=function(){function t(t,e,n){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,n)}return t.chart=function(e,n,r){return new t(e,n,r)},t.prototype.getArgs=function(t,e,n){V(t)||t.nodeName?(this.renderTo=t,this.init(e,n)):this.init(t,e)},t.prototype.init=function(t,e){var n=t.plotOptions||{};R(this,"init",{args:arguments},function(){var r=X(y,t),i=r.chart;z(r.plotOptions,function(t,e){H(t)&&(t.tooltip=n[e]&&X(n[e].tooltip)||void 0)}),r.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 o=i.zooming=i.zooming||{};t.chart&&!t.chart.zooming&&(o.resetButton=i.resetZoomButton),o.key=G(o.key,i.zoomKey),o.pinchType=G(o.pinchType,i.pinchType),o.singleTouch=G(o.singleTouch,i.zoomBySingleTouch),o.type=G(o.type,i.zoomType),this.options=r,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new u(t.time):s.time,this.numberFormatter=i.numberFormatter||O,this.styledMode=i.styledMode,this.hasCartesianSeries=i.showAxes,this.index=x.length,x.push(this),s.chartCount++,b(this,i),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,R(this,"afterInit"),this.firstRender()})},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var n=E[e];return n||L(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new n).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 n=e.length;t<n;++t)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,n){void 0===n&&(n={});var r=this.inverted,i=this.plotBox,s=this.plotLeft,o=this.plotTop,a=this.scrollablePlotBox,l=0,A=0;n.visiblePlotOnly&&this.scrollingContainer&&(l=(A=this.scrollingContainer).scrollLeft,A=A.scrollTop);var c=n.series;if(i=n.visiblePlotOnly&&a||i,t={x:a=n.inverted?e:t,y:e=n.inverted?t:e,isInsidePlot:!0,options:n},!n.ignoreX){var h=c&&(r&&!this.polar?c.yAxis:c.xAxis)||{pos:s,len:1/0};(a=n.paneCoordinates?h.pos+a:s+a)>=Math.max(l+s,h.pos)&&a<=Math.min(l+s+i.width,h.pos+h.len)||(t.isInsidePlot=!1)}return!n.ignoreY&&t.isInsidePlot&&(r=n.axis&&!n.axis.isXAxis&&n.axis||c&&(r?c.xAxis:c.yAxis)||{pos:o,len:1/0},(n=n.paneCoordinates?r.pos+e:o+e)>=Math.max(A+o,r.pos)&&n<=Math.min(A+o+i.height,r.pos+r.len)||(t.isInsidePlot=!1)),R(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){R(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],n=this.series,r=this.pointer,i=this.legend,s=this.userOptions.legend,o=this.renderer,a=o.isHidden(),l=[],A=this.isDirtyBox,c=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),m(!!this.hasRendered&&t,this),a&&this.temporaryDisplay(),this.layOutTitles(),t=n.length;t--;){var h=n[t];if(h.options.stacking||h.options.centerInCategory){var u=!0;if(h.isDirty){var p=!0;break}}}if(p)for(t=n.length;t--;)(h=n[t]).options.stacking&&(h.isDirty=!0);n.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),c=!0):s&&(s.labelFormatter||s.labelFormat)&&(c=!0)),t.isDirtyData&&R(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&&(A=!0)}),e.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,l.push(function(){R(t,"afterSetExtremes",M(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(A||u)&&t.redraw()}),A&&this.drawChartBox(),R(this,"predraw"),n.forEach(function(t){(A||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),r&&r.reset(!0),o.draw(),R(this,"redraw"),R(this,"render"),a&&this.temporaryDisplay(!0),l.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 n=this.series,r=D(this.axes,e)||D(this.series,e),i=0;!r&&i<n.length;i++)r=D(n[i].points||[],e);return r},t.prototype.getAxes=function(){var t=this,n=this.options,r=n.xAxis=K(n.xAxis||{});n=n.yAxis=K(n.yAxis||{}),R(this,"getAxes"),r.forEach(function(t,e){t.index=e,t.isX=!0}),n.forEach(function(t,e){t.index=e}),r.concat(n).forEach(function(n){new e(t,n)}),R(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce(function(t,e){return e.getPointsCollection().forEach(function(e){G(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,n){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(n)},t.prototype.applyDescription=function(t,e){var n=this,r="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};r=this.options[t]=X(!this.styledMode&&{style:r},this.options[t],e);var i=this[t];i&&e&&(this[t]=i=i.destroy()),r&&!i&&((i=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:"highcharts-"+t,zIndex:r.zIndex||4}).add()).update=function(e){n[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||i.css(r.style),this[t]=i)},t.prototype.layOutTitles=function(t){var e=[0,0,0],n=this.renderer,r=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var i,s=this[t],o=this.options[t],a=o.verticalAlign||"top";if(t="title"===t?"top"===a?-3:0:"top"===a?e[0]+2:0,s){this.styledMode||(i=o.style&&o.style.fontSize),i=n.fontMetrics(i,s).b,s.css({width:(o.width||r.width+(o.widthAdjust||0))+"px"});var l=Math.round(s.getBBox(o.useHTML).height);s.align(M({y:"bottom"===a?i:t+i,height:l},o),!1,"spacingBox"),o.floating||("top"===a?e[0]=Math.ceil(e[0]+l):"bottom"===a&&(e[2]=Math.ceil(e[2]+l)))}},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,R(this,"afterLayOutTitles"),!this.isDirtyBox&&i&&(this.isDirtyBox=this.isDirtyLegend=i,this.hasRendered&&G(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var n=this.renderTo;N(e)||(this.containerWidth=U(n,"width")),N(t)||(this.containerHeight=U(n,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,W(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&&(I(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(w.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(w.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,w.body.appendChild(e)),("none"===U(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),I(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==w.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e=this.options,n=e.chart,r=J(),i=this.renderTo;i||(this.renderTo=i=n.renderTo),V(i)&&(this.renderTo=i=w.getElementById(i)),i||L(13,!0,this);var s=Y(T(i,"data-highcharts-chart"));j(s)&&x[s]&&x[s].hasRendered&&x[s].destroy(),T(i,"data-highcharts-chart",this.index),i.innerHTML=d.emptyHTML,n.skipClone||i.offsetWidth||this.temporaryDisplay(),this.getChartSize(),s=this.chartWidth;var o=this.chartHeight;if(I(i,{overflow:"hidden"}),this.styledMode||(t=M({position:"relative",overflow:"hidden",width:s+"px",height:o+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},n.style||{})),this.container=r=k("div",{id:r},t,i),this._cursor=r.style.cursor,this.renderer=new(n.renderer||!S?A.getRendererType(n.renderer):h)(r,s,o,void 0,n.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),m(void 0,this),this.setClassName(n.className),this.styledMode)for(var a in e.defs)this.renderer.definition(e.defs[a]);else this.renderer.setStyle(n.style);this.renderer.chartIndex=this.index,R(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,n=this.margin,r=this.titleOffset;this.resetMargins(),r[0]&&!N(n[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+e[0])),r[2]&&!N(n[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(n,e),R(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],n=t.colorAxis,r=t.margin,i=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?i(t.axes):n&&n.length&&i(n),_.forEach(function(n,i){N(r[i])||(t[n]+=e[i])}),t.setChartSize()},t.prototype.reflow=function(t){var e=this,n=e.options.chart,r=e.renderTo,i=N(n.width)&&N(n.height),s=n.width||U(r,"width");n=n.height||U(r,"height"),r=t?t.target:C,delete e.pointer.chartPosition,i||e.isPrinting||!s||!n||r!==C&&r!==w||(s===e.containerWidth&&n===e.containerHeight||(p.clearTimeout(e.reflowTimeout),e.reflowTimeout=q(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerWidth=s,e.containerHeight=n)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=B(C,"resize",function(t){e.options&&e.reflow(t)}),B(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,n){var r=this,i=r.renderer;r.isResizing+=1,m(n,r),n=i.globalAnimation,r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,void 0!==t&&(r.options.chart.width=t),void 0!==e&&(r.options.chart.height=e),r.getChartSize(),r.styledMode||(n?f:I)(r.container,{width:r.chartWidth+"px",height:r.chartHeight+"px"},n),r.setChartSize(!0),i.setSize(r.chartWidth,r.chartHeight,n),r.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(n),r.oldChartHeight=null,R(r,"resize"),q(function(){r&&R(r,"endResize",null,function(){--r.isResizing})},g(n).duration)},t.prototype.setChartSize=function(t){var e,n,r,i,s=this.inverted,o=this.renderer,a=this.chartWidth,l=this.chartHeight,A=this.options.chart,c=this.spacing,h=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=r=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=i=Math.max(0,Math.round(l-n-this.marginBottom)),this.plotSizeX=s?i:r,this.plotSizeY=s?r:i,this.plotBorderWidth=A.plotBorderWidth||0,this.spacingBox=o.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:l-c[0]-c[2]},this.plotBox=o.plotBox={x:e,y:n,width:r,height:i},s=2*Math.floor(this.plotBorderWidth/2),a=Math.ceil(Math.max(s,h[3])/2),l=Math.ceil(Math.max(s,h[0])/2),this.clipBox={x:a,y:l,width:Math.floor(this.plotSizeX-Math.max(s,h[1])/2-a),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(s,h[2])/2-l))},t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),o.alignElements()),R(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){R(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach(function(n){var r=e[n],i=H(r)?r:[r,r,r,r];["Top","Right","Bottom","Left"].forEach(function(r,s){t[n][s]=G(e[n+r],i[s])})}),_.forEach(function(e,n){t[e]=G(t.margin[n],t.spacing[n])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,n=this.renderer,r=this.chartWidth,i=this.chartHeight,s=this.styledMode,o=this.plotBGImage,a=e.backgroundColor,l=e.plotBackgroundColor,A=e.plotBackgroundImage,c=this.plotLeft,h=this.plotTop,u=this.plotWidth,p=this.plotHeight,d=this.plotBox,f=this.clipRect,g=this.clipBox,m=this.chartBackground,y=this.plotBackground,v=this.plotBorder,O="animate";if(m||(this.chartBackground=m=n.rect().addClass("highcharts-background").add(),O="attr"),s)var b=t=m.strokeWidth();else t=(b=e.borderWidth||0)+(e.shadow?8:0),a={fill:a||"none"},(b||m["stroke-width"])&&(a.stroke=e.borderColor,a["stroke-width"]=b),m.attr(a).shadow(e.shadow);m[O]({x:t/2,y:t/2,width:r-t-b%2,height:i-t-b%2,r:e.borderRadius}),O="animate",y||(O="attr",this.plotBackground=y=n.rect().addClass("highcharts-plot-background").add()),y[O](d),s||(y.attr({fill:l||"none"}).shadow(e.plotShadow),A&&(o?(A!==o.attr("href")&&o.attr("href",A),o.animate(d)):this.plotBGImage=n.image(A,c,h,u,p).add())),f?f.animate({width:g.width,height:g.height}):this.clipRect=n.clipRect(g),O="animate",v||(O="attr",this.plotBorder=v=n.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),s||v.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),v[O](v.crisp({x:c,y:h,width:u,height:p},-v.strokeWidth())),this.isDirtyBox=!1,R(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,n,r=this,i=r.options.chart,s=r.options.series;["inverted","angular","polar"].forEach(function(o){for(e=E[i.type||i.defaultSeriesType],n=i[o]||e&&e.prototype[o],t=s&&s.length;!n&&t--;)(e=E[s[t].type])&&e.prototype[o]&&(n=!0);r[o]=n})},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach(function(t){t.linkedSeries.length=0}),e.forEach(function(e){var n=e.options.linkedTo;V(n)&&(n=":previous"===n?t.series[e.index-1]:t.get(n))&&n.linkedParent!==e&&(n.linkedSeries.push(e),e.linkedParent=n,n.enabledDataSorting&&e.setDataSortingOptions(),e.visible=G(e.options.visible,n.options.visible,e.visible))}),R(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(n){var r=M(e.style,n.style),i=Y(r.left)+t.plotLeft,s=Y(r.top)+t.plotTop+12;delete r.left,delete r.top,t.renderer.text(n.html,i,s).attr({zIndex:2}).css(r).add()})},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,n=this.renderer,r=this.options,i=function(t){t.forEach(function(t){t.visible&&t.render()})},s=0;this.setTitle(),this.legend=new o(this,r.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),r=this.plotWidth,t.some(function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return s=21,!0});var a=this.plotHeight=Math.max(this.plotHeight-s,0);t.forEach(function(t){t.setScale()}),this.getAxisMargins();var l=1.1<r/this.plotWidth,A=1.05<a/this.plotHeight;(l||A)&&(t.forEach(function(t){(t.horiz&&l||!t.horiz&&A)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?i(t):e&&e.length&&i(e),this.seriesGroup||(this.seriesGroup=n.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,n=X(!0,this.options.credits,t);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){n.href&&(C.location.href=n.href)}).attr({align:n.position.align,zIndex:8}),e.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,n=e.axes,r=e.series,i=e.container,o=i&&i.parentNode;for(R(e,"destroy"),e.renderer.forExport?F(x,e):x[e.index]=void 0,s.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),Z(e),t=n.length;t--;)n[t]=n[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=r.length;t--;)r[t]=r[t].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(t){var n=e[t];n&&n.destroy&&(e[t]=n.destroy())}),i&&(i.innerHTML=d.emptyHTML,Z(i),o&&Q(i)),z(e,function(t,n){delete e[n]})},t.prototype.firstRender=function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),($(e.series)?e.series:[]).forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSeriesData(),R(t,"beforeRender"),l&&(a.isRequired()?t.pointer=new a(t,e):t.pointer=new l(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),R(this,"load"),R(this,"render"),N(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||L('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,n){var r,i=this;return t&&(e=G(e,!0),R(i,"addSeries",{options:t},function(){r=i.initSeries(t),i.isDirtyLegend=!0,i.linkSeries(),r.enabledDataSorting&&r.setData(t.data,!1),R(i,"afterAddSeries",{series:r}),e&&i.redraw(n)})),r},t.prototype.addAxis=function(t,e,n,r){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:n,animation:r})},t.prototype.addColorAxis=function(t,e,n){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:n})},t.prototype.createAxis=function(t,n){return t=new e(this,X(n.axis,{index:this[t].length,isX:"xAxis"===t})),G(n.redraw,!0)&&this.redraw(n.animation),t},t.prototype.showLoading=function(t){var e=this,n=e.options,r=n.loading,i=function(){s&&I(s,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},s=e.loadingDiv,o=e.loadingSpan;s||(e.loadingDiv=s=k("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),o||(e.loadingSpan=o=k("span",{className:"highcharts-loading-inner"},null,s),B(e,"redraw",i)),s.className="highcharts-loading",d.setElementHTML(o,G(t,n.lang.loading,"")),e.styledMode||(I(s,M(r.style,{zIndex:10})),I(o,r.labelStyle),e.loadingShown||(I(s,{opacity:0,display:""}),f(s,{opacity:r.style.opacity||.5},{duration:r.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||f(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){I(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,n,r){var i,s,o=this,a={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=t.isResponsiveOptions,A=[];R(o,"update",{options:t}),l||o.setResponsive(!1,!0),t=P(t,o.options),o.userOptions=X(o.userOptions,t);var c=t.chart;if(c){if(X(!0,o.options.chart,c),"className"in c&&o.setClassName(c.className),"reflow"in c&&o.setReflow(c.reflow),"inverted"in c||"polar"in c||"type"in c){o.propFromSeries();var h=!0}"alignTicks"in c&&(h=!0),"events"in c&&b(this,c),z(c,function(t,e){-1!==o.propsRequireUpdateSeries.indexOf("chart."+e)&&(i=!0),-1!==o.propsRequireDirtyBox.indexOf(e)&&(o.isDirtyBox=!0),-1!==o.propsRequireReflow.indexOf(e)&&(l?o.isDirtyBox=!0:s=!0)}),!o.styledMode&&c.style&&o.renderer.setStyle(o.options.chart.style||{})}!o.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===v&&(this.time=new u(t.time)),X(!0,o.options.time,t.time)),z(t,function(e,n){o[n]&&"function"==typeof o[n].update?o[n].update(e,!1):"function"==typeof o[a[n]]?o[a[n]](e):"colors"!==n&&-1===o.collectionsWithUpdate.indexOf(n)&&X(!0,o.options[n],t[n]),"chart"!==n&&-1!==o.propsRequireUpdateSeries.indexOf(n)&&(i=!0)}),this.collectionsWithUpdate.forEach(function(e){if(t[e]){var r=[];o[e].forEach(function(t,e){t.options.isInternal||r.push(G(t.options.index,e))}),K(t[e]).forEach(function(t,i){var s,a=N(t.id);a&&(s=o.get(t.id)),!s&&o[e]&&(s=o[e][r?r[i]:i])&&a&&N(s.options.id)&&(s=void 0),s&&s.coll===e&&(s.update(t,!1),n&&(s.touched=!0)),!s&&n&&o.collectionsWithInit[e]&&(o.collectionsWithInit[e][0].apply(o,[t].concat(o.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),n&&o[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:A.push(t)})}}),A.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),h&&o.axes.forEach(function(t){t.update({},!1)}),i&&o.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this),h=c&&c.width,c=c&&(V(c.height)?W(c.height,h||o.chartWidth):c.height),s||j(h)&&h!==o.chartWidth||j(c)&&c!==o.chartHeight?o.setSize(h,c,r):G(e,!0)&&o.redraw(r),R(o,"afterUpdate",{options:t,redraw:e,animation:r})},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,n=y.lang,r=e.options.chart.zooming.resetButton,i=r.theme,s="chart"===r.relativeTo||"spacingBox"===r.relativeTo?null:"scrollablePlotBox";R(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(n.resetZoom,null,null,t,i).attr({align:r.position.align,title:n.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(r.position,!1,s)}),R(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){R(this,"selection",{resetSelection:!0},this.zoom)},t.prototype.zoom=function(t){var e,n=this,r=n.pointer,i=!1;!t||t.resetSelection?(n.axes.forEach(function(t){e=t.zoom()}),r.initiated=!1):t.xAxis.concat(t.yAxis).forEach(function(t){var s=t.axis;(r[s.isXAxis?"zoomX":"zoomY"]&&N(r.mouseDownX)&&N(r.mouseDownY)&&n.isInsidePlot(r.mouseDownX-n.plotLeft,r.mouseDownY-n.plotTop,{axis:s})||!N(n.inverted?r.mouseDownX:r.mouseDownY))&&(e=s.zoom(t.min,t.max),s.displayBtn&&(i=!0))});var s=n.resetZoomButton;i&&!s?n.showResetZoom():!i&&H(s)&&(n.resetZoomButton=s.destroy()),e&&n.redraw(G(n.options.chart.animation,t&&t.animation,100>n.pointCount))},t.prototype.pan=function(t,e){var n=this,r=n.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var i=n.options.chart;i&&i.panning&&(i.panning=e);var s,o=e.type;R(this,"pan",{originalEvent:t},function(){r&&r.forEach(function(t){t.setState()});var e=n.xAxis;"xy"===o?e=e.concat(n.yAxis):"y"===o&&(e=n.yAxis);var i={};e.forEach(function(e){if(e.options.panningEnabled&&!e.options.isInternal){var r=e.horiz,a=t[r?"chartX":"chartY"],l=n[r=r?"mouseDownX":"mouseDownY"],A=e.minPointOffset||0,c=e.reversed&&!n.inverted||!e.reversed&&n.inverted?-1:1,h=e.getExtremes(),u=e.toValue(l-a,!0)+A*c,p=e.toValue(l+e.len-a,!0)-(A*c||e.isXAxis&&e.pointRangePadding||0),d=p<u;c=e.hasVerticalPanning(),l=d?p:u,u=d?u:p;var f=e.panningState;!c||e.isXAxis||f&&!f.isDirty||e.series.forEach(function(t){var e=t.getProcessedData(!0);e=t.getExtremes(e.yData,!0),f||(f={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),j(e.dataMin)&&j(e.dataMax)&&(f.startMin=Math.min(G(t.options.threshold,1/0),e.dataMin,f.startMin),f.startMax=Math.max(G(t.options.threshold,-1/0),e.dataMax,f.startMax))}),c=Math.min(G(f&&f.startMin,h.dataMin),A?h.min:e.toValue(e.toPixels(h.min)-e.minPixelPadding)),p=Math.max(G(f&&f.startMax,h.dataMax),A?h.max:e.toValue(e.toPixels(h.max)+e.minPixelPadding)),e.panningState=f,e.isOrdinal||(0<(A=c-l)&&(u+=A,l=c),0<(A=u-p)&&(u=p,l-=A),e.series.length&&l!==h.min&&u!==h.max&&l>=c&&u<=p&&(e.setExtremes(l,u,!1,!1,{trigger:"pan"}),!n.resetZoomButton&&l!==c&&u!==p&&o.match("y")&&(n.showResetZoom(),e.displayBtn=!1),s=!0),i[r]=a)}}),z(i,function(t,e){n[e]=t}),s&&n.redraw(!1),I(n.container,{cursor:"move"})})},t}(),M(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(n,"Core/Legend/LegendSymbol.js",[n["Core/Utilities.js"]],function(t){var e,n=t.extend,r=t.merge,i=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.legendItem=this.legendItem||{},s=this.options,o=t.symbolWidth,a=t.symbolHeight,l=a/2,A=this.chart.renderer,c=e.group;t=t.baseline-Math.round(.3*t.fontMetrics.b);var h={},u=s.marker,p=0;this.chart.styledMode||(h={"stroke-width":Math.min(s.lineWidth||0,24)},s.dashStyle?h.dashstyle=s.dashStyle:"square"!==s.linecap&&(h["stroke-linecap"]="round")),e.line=A.path().addClass("highcharts-graph").attr(h).add(c),h["stroke-linecap"]&&(p=Math.min(e.line.strokeWidth(),o)/2),e.line.attr({d:[["M",p,t],["L",o-p,t]]}),u&&!1!==u.enabled&&o&&(s=Math.min(i(u.radius,l),l),0===this.symbol.indexOf("url")&&(u=r(u,{width:a,height:a}),s=0),e.symbol=e=A.symbol(this.symbol,o/2-s,t-s,2*s,2*s,n({context:"legend"},u)).addClass("highcharts-point").add(c),e.isMarker=!0)},t.drawRectangle=function(t,e){e=e.legendItem||{};var n=t.symbolHeight,r=t.options.squareSymbol;e.symbol=this.chart.renderer.rect(r?(t.symbolWidth-n)/2:0,t.baseline-n+1,r?n:t.symbolWidth,n,i(t.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.group)}}(e||(e={})),e}),e(n,"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(n,"Core/Series/Series.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Defaults.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],function(t,e,n,r,i,s,o,a,l,A){var c=t.animObject,h=t.setAnimation,u=e.defaultOptions,p=n.registerEventOptions,d=r.hasTouch,f=r.svg,g=r.win,m=a.seriesTypes,y=A.arrayMax,v=A.arrayMin,O=A.clamp,b=A.cleanRecursively,x=A.correctFloat,w=A.defined,_=A.erase,S=A.error,C=A.extend,E=A.find,B=A.fireEvent,T=A.getNestedProperty,P=A.isArray,k=A.isNumber,I=A.isString,N=A.merge,Q=A.objectEach,F=A.pick,L=A.removeEvent,M=A.splat,D=A.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){B(this,"init",{options:e});var n=this,r=t.series;this.eventsToUnbind=[],n.chart=t,n.options=n.setOptions(e),e=n.options,n.linkedSeries=[],n.bindAxes(),C(n,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),p(this,e);var i,s=e.events;(s&&s.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach(function(t){n[t+"Data"]||(n[t+"Data"]=[])}),n.isCartesian&&(t.hasCartesianSeries=!0),r.length&&(i=r[r.length-1]),n._i=F(i&&i._i,-1)+1,n.opacity=n.options.opacity,t.orderSeries(this.insert(r)),e.dataSorting&&e.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(e.data,!1),B(this,"afterInit")},t.prototype.is=function(t){return m[t]&&this instanceof m[t]},t.prototype.insert=function(t){var e,n=this.options.index;if(k(n)){for(e=t.length;e--;)if(n>=F(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 F(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,n=e.options,r=e.chart;B(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(i){var s=0;r[i].forEach(function(r){t=r.options,(n[i]===s&&!t.isInternal||void 0!==n[i]&&n[i]===t.id||void 0===n[i]&&0===t.index)&&(e.insert(r.series),e[i]=r,r.isDirty=!0),t.isInternal||s++}),e[i]||e.optionalAxis===i||S(18,!0,r)})}),B(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var n=t.series,r=arguments,i=k(e)?function(r){var i="y"===r&&n.toYData?n.toYData(t):t[r];n[r+"Data"][e]=i}:function(t){Array.prototype[e].apply(n[t+"Data"],Array.prototype.slice.call(r,2))};n.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,n=this.options,r=n.pointIntervalUnit,i=n.relativeXValue,s=this.chart.time,o=this.xIncrement;return o=F(o,n.pointStart,0),this.pointInterval=e=F(this.pointInterval,n.pointInterval,1),i&&k(t)&&(e*=t),r&&(n=new s.Date(o),"day"===r?s.set("Date",n,s.get("Date",n)+e):"month"===r?s.set("Month",n,s.get("Month",n)+e):"year"===r&&s.set("FullYear",n,s.get("FullYear",n)+e),e=n.getTime()-o),i&&k(t)?o+e:(this.xIncrement=o+e,o)},t.prototype.setDataSortingOptions=function(){var t=this.options;C(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),w(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,n=e.options,r=n.plotOptions,i=e.userOptions||{};t=N(t),e=e.styledMode;var s={plotOptions:r,userOptions:t};B(this,"setOptions",s);var o=s.plotOptions[this.type],a=i.plotOptions||{};return this.userOptions=s.userOptions,i=N(o,r.series,i.plotOptions&&i.plotOptions[this.type],t),this.tooltipOptions=N(u.tooltip,u.plotOptions.series&&u.plotOptions.series.tooltip,u.plotOptions[this.type].tooltip,n.tooltip.userOptions,r.series&&r.series.tooltip,r[this.type].tooltip,t.tooltip),this.stickyTracking=F(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||i.stickyTracking),null===o.marker&&delete i.marker,this.zoneAxis=i.zoneAxis,r=this.zones=(i.zones||[]).slice(),!i.negativeColor&&!i.negativeFillColor||i.zones||(n={value:i[this.zoneAxis+"Threshold"]||i.threshold||0,className:"highcharts-negative"},e||(n.color=i.negativeColor,n.fillColor=i.negativeFillColor),r.push(n)),r.length&&w(r[r.length-1].value)&&r.push(e?{}:{color:this.color,fillColor:this.fillColor}),B(this,"afterSetOptions",{options:i}),i},t.prototype.getName=function(){return F(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,n){var r=this.chart,i=this.userOptions,s=t+"Index",o=t+"Counter",a=n?n.length:F(r.options.chart[t+"Count"],r[t+"Count"]);if(!e){var l=F(i[s],i["_"+s]);w(l)||(r.series.length||(r[o]=0),i["_"+s]=l=r[o]%a,r[o]+=1),n&&(e=n[l])}void 0!==l&&(this[s]=l),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 n,r,i=t.id,o=t.x,a=this.points,l=this.options.dataSorting;if(i)(l=this.chart.get(i))instanceof s&&(n=l);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(n=function(e){return!e.touched&&e.index===t.index},l&&l.matchByName?n=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(n=function(e){return!e.touched&&e.options.x===t.x}),!(n=E(a,n))))return;if(n){var A=n&&n.index;void 0!==A&&(r=!0)}return void 0===A&&k(o)&&(A=this.xData.indexOf(o,e)),-1!==A&&void 0!==A&&this.cropped&&(A=A>=this.cropStart?A-this.cropStart:A),!r&&k(A)&&a[A]&&a[A].touched&&(A=void 0),A},t.prototype.updateData=function(t,e){var n,r,i,s=this.options,o=s.dataSorting,a=this.points,l=[],A=this.requireSorting,c=t.length===a.length,h=!0;if(this.xIncrement=null,t.forEach(function(t,e){var r=w(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},h=r.x;r.id||k(h)?(-1===(r=this.findPointIndex(r,i))||void 0===r?l.push(t):a[r]&&t!==s.data[r]?(a[r].update(t,!1,null,!1),a[r].touched=!0,A&&(i=r+1)):a[r]&&(a[r].touched=!0),(!c||e!==r||o&&o.enabled||this.hasDerivedData)&&(n=!0)):l.push(t)},this),n)for(t=a.length;t--;)(r=a[t])&&!r.touched&&r.remove&&r.remove(!1,e);else!c||o&&o.enabled?h=!1:(t.forEach(function(t,e){t!==a[e].y&&a[e].update&&a[e].update(t,!1,null,!1)}),l.length=0);return a.forEach(function(t){t&&(t.touched=!1)}),!!h&&(l.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,n,r){void 0===e&&(e=!0);var i=this,s=i.points,o=s&&s.length||0,a=i.options,l=i.chart,A=a.dataSorting,c=i.xAxis,h=a.turboThreshold,u=this.xData,p=this.yData,d=i.pointArrayMap;d=d&&d.length;var f,g=a.keys,m=0,y=1,v=null;if(!l.options.chart.allowMutatingData){a.data&&delete i.options.data,i.userOptions.data&&delete i.userOptions.data;var O=N(!0,t)}if(O=(t=O||t||[]).length,A&&A.enabled&&(t=this.sortData(t)),l.options.chart.allowMutatingData&&!1!==r&&O&&o&&!i.cropped&&!i.hasGroupedData&&i.visible&&!i.boosted&&(f=this.updateData(t,n)),!f){if(i.xIncrement=null,i.colorCounter=0,this.parallelArrays.forEach(function(t){i[t+"Data"].length=0}),h&&O>h)if(v=i.getFirstValidPoint(t),k(v))for(n=0;n<O;n++)u[n]=this.autoIncrement(),p[n]=t[n];else if(P(v))if(d)if(v.length===d)for(n=0;n<O;n++)u[n]=this.autoIncrement(),p[n]=t[n];else for(n=0;n<O;n++)r=t[n],u[n]=r[0],p[n]=r.slice(1,d+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(n=0;n<O;n++)u[n]=this.autoIncrement(),p[n]=t[n][y];else for(n=0;n<O;n++)r=t[n],u[n]=r[m],p[n]=r[y];else S(12,!1,l);else for(n=0;n<O;n++)void 0!==t[n]&&(r={series:i},i.pointClass.prototype.applyOptions.apply(r,[t[n]]),i.updateParallelArrays(r,n));for(p&&I(p[0])&&S(14,!0,l),i.data=[],i.options.data=i.userOptions.data=t,n=o;n--;)s[n]&&s[n].destroy&&s[n].destroy();c&&(c.minRange=c.userMinRange),i.isDirty=l.isDirtyBox=!0,i.isDirtyData=!!s,n=!1}"point"===a.legendType&&(this.processData(),this.generatePoints()),e&&l.redraw(n)},t.prototype.sortData=function(t){var e=this,n=e.options.dataSorting.sortKey||"y",r=function(t,e){return w(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(n,i){t[i]=r(e,n),t[i].index=i},this),t.concat().sort(function(t,e){return t=T(n,t),(e=T(n,e))<t?-1:e>t?1:0}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var n=e.options,i=n.data;n.dataSorting&&n.dataSorting.enabled||!i||(i.forEach(function(n,s){i[s]=r(e,n),t[s]&&(i[s].x=t[s].x,i[s].index=s)}),e.setData(i,!1))}),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,n=this.options,r=n.cropThreshold,i=t||this.getExtremesFromAll||n.getExtremesFromAll,s=this.isCartesian;t=e&&e.val2lin,n=!(!e||!e.logarithmic);var o=0,a=this.xData,l=this.yData,A=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(s&&this.sorted&&!i&&(!r||h>r||this.forceCrop))if(a[h-1]<u||a[0]>p)a=[],l=[];else if(this.yData&&(a[0]<u||a[h-1]>p)){var d=this.cropData(this.xData,this.yData,u,p);a=d.xData,l=d.yData,o=d.start,d=!0}for(r=a.length||1;--r;)if(0<(e=n?t(a[r])-t(a[r-1]):a[r]-a[r-1])&&(void 0===f||e<f))var f=e;else 0>e&&A&&!c&&(S(15,!1,this.chart),A=!1);return{xData:a,yData:l,cropped:d,cropStart:o,closestPointRange:f}},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,B(this,"afterProcessData")},t.prototype.cropData=function(t,e,n,r,i){var s,o=t.length,a=0,l=o;for(i=F(i,this.cropShoulder),s=0;s<o;s++)if(t[s]>=n){a=Math.max(0,s-i);break}for(n=s;n<o;n++)if(t[n]>r){l=n+i;break}return{xData:t.slice(a,l),yData:e.slice(a,l),start:a,end:l}},t.prototype.generatePoints=function(){var t=this.options,e=this.processedData||t.data,n=this.processedXData,r=this.processedYData,i=this.pointClass,s=n.length,o=this.cropStart||0,a=this.hasGroupedData,l=t.keys,A=[];t=t.dataGrouping&&t.dataGrouping.groupAll?o:0;var c,h,u=this.data;if(!u&&!a){var p=[];p.length=e.length,u=this.data=p}for(l&&a&&(this.options.keys=!1),h=0;h<s;h++){if(p=o+h,a){var d=(new i).init(this,[n[h]].concat(M(r[h])));d.dataGroup=this.groupMap[t+h],d.dataGroup.options&&(d.options=d.dataGroup.options,C(d,d.dataGroup.options),delete d.dataLabels)}else(d=u[p])||void 0===e[p]||(u[p]=d=(new i).init(this,e[p],n[h]));d&&(d.index=a?t+h:p,A[h]=d)}if(this.options.keys=l,u&&(s!==(c=u.length)||a))for(h=0;h<c;h++)h!==o||a||(h+=s),u[h]&&(u[h].destroyElements(),u[h].plotX=void 0);this.data=u,this.points=A,B(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:v(t),max:y(t)}},t.prototype.getExtremes=function(t,e){var n=this.xAxis,r=this.yAxis,i=this.processedXData||this.xData,s=[],o=this.requireSorting?this.cropShoulder:0;r=!!r&&r.positiveValuesOnly;var a,l=0,A=0,c=0,h=(t=t||this.stackedYData||this.processedYData||[]).length;if(n){var u=n.getExtremes();l=u.min,A=u.max}for(a=0;a<h;a++){var p=i[a];u=t[a];var d=(k(u)||P(u))&&(u.length||0<u||!r);if(p=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!n||(i[a+o]||p)>=l&&(i[a-o]||p)<=A,d&&p)if(d=u.length)for(;d--;)k(u[d])&&(s[c++]=u[d]);else s[c++]=u}return t={activeYData:s,dataMin:v(s),dataMax:y(s)},B(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,n=0,r=null;null===r&&n<e;)r=t[n],n++;return r},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,n=this.options,r=n.stacking,i=this.xAxis,s=i.categories,o=this.enabledDataSorting,a=this.yAxis,l=this.points,A=l.length,c=this.pointPlacementToXValue(),h=!!c,u=n.threshold,p=n.startFromThreshold?u:0,d=this.zoneAxis||"y",f=Number.MAX_VALUE;for(t=0;t<A;t++){var g=l[t],m=g.x,y=void 0,v=void 0,b=g.y,_=g.low,S=r&&a.stacking&&a.stacking.stacks[(this.negStacks&&b<(p?0:u)?"-":"")+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(b)||i.positiveValuesOnly&&!i.validatePositiveValue(m))&&(g.isNull=!0),g.plotX=e=x(O(i.translate(m,0,0,0,1,c,"flags"===this.type),-1e5,1e5)),r&&this.visible&&S&&S[m]){var C=this.getStackIndicator(C,m,this.index);!g.isNull&&C.key&&(v=(y=S[m]).points[C.key]),y&&P(v)&&(_=v[0],b=v[1],_===p&&C.key===S[m].base&&(_=F(k(u)?u:a.min)),a.positiveValuesOnly&&w(_)&&0>=_&&(_=void 0),g.total=g.stackTotal=F(y.total),g.percentage=w(g.y)&&y.total?g.y/y.total*100:void 0,g.stackY=b,this.irregularWidths||y.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(g.yBottom=w(_)?O(a.translate(_,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(b=this.dataModify.modifyValue(b,t)),g.plotY=void 0,k(b)&&void 0!==(y=a.translate(b,!1,!0,!1,!0))&&(g.plotY=O(y,-1e5,1e5)),g.isInside=this.isPointInside(g),g.clientX=h?x(i.translate(m,0,0,0,1,c)):e,g.negative=g[d]<(n[d+"Threshold"]||u||0),g.category=F(s&&s[g.x],g.x),!g.isNull&&!1!==g.visible){void 0!==E&&(f=Math.min(f,Math.abs(e-E)));var E=e}g.zone=this.zones.length?g.getZone():void 0,!g.graphic&&this.group&&o&&(g.isNew=!0)}this.closestPointRangePx=f,B(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,n){var r=this.chart;return(t||this.points||[]).filter(function(t){return!(e&&!r.isInsidePlot(t.plotX,t.plotY,{inverted:r.inverted}))&&!1!==t.visible&&(n||!t.isNull)})},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis,r=N(t.clipBox);return e&&e.len!==t.plotSizeX&&(r.width=e.len),n&&n.len!==t.plotSizeY&&(r.height=n.len),r},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,n=this.markerGroup,r=t.sharedClips;t=t.renderer;var i=this.getClipBox(),s=this.getSharedClipKey(),o=r[s];o?o.animate(i):r[s]=o=t.clipRect(i),e&&e.clip(!1===this.options.clip?void 0:o),n&&n.clip()},t.prototype.animate=function(t){var e=this.chart,n=this.group,r=this.markerGroup,i=e.inverted,s=c(this.options.animation),o=[this.getSharedClipKey(),s.duration,s.easing,s.defer].join(),a=e.sharedClips[o],l=e.sharedClips[o+"m"];if(t&&n)s=this.getClipBox(),a?a.attr("height",s.height):(s.width=0,i&&(s.x=e.plotHeight),a=e.renderer.clipRect(s),e.sharedClips[o]=a,l=e.renderer.clipRect({x:-99,y:-99,width:i?e.plotWidth+199:99,height:i?99:e.plotHeight+199}),e.sharedClips[o+"m"]=l),n.clip(a),r&&r.clip(l);else if(a&&!a.hasClass("highcharts-animating")){e=this.getClipBox();var A=s.step;r&&r.element.childNodes.length&&(s.step=function(t,e){A&&A.apply(e,arguments),"width"===e.prop&&l&&l.element&&l.attr(i?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(e,s)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),Q(this.chart.sharedClips,function(e,n,r){e&&!t.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete r[n])}),this.finishedAnimating=!0,B(this,"afterAnimate")},t.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,n,r=this.chart,i=r.styledMode,s=this.colorAxis,o=this.options.marker,a=this[this.specialGroup||"markerGroup"],l=this.xAxis,A=F(o.enabled,!(l&&!l.isRadial)||null,this.closestPointRangePx>=o.enabledThreshold*o.radius);if(!1!==o.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++){var c=t[e],h=(n=c.graphic)?"animate":"attr",u=c.marker||{},p=!!c.marker;if((A&&void 0===u.enabled||u.enabled)&&!c.isNull&&!1!==c.visible){var d=F(u.symbol,this.symbol,"rect"),f=this.markerAttribs(c,c.selected&&"select");this.enabledDataSorting&&(c.startXPos=l.reversed?-(f.width||0):l.width);var g=!1!==c.isInside;!n&&g&&(0<(f.width||0)||c.hasImage)&&(c.graphic=n=r.renderer.symbol(d,f.x,f.y,f.width,f.height,p?u:o).add(a),this.enabledDataSorting&&r.hasRendered&&(n.attr({x:c.startXPos}),h="animate")),n&&"animate"===h&&n[g?"show":"hide"](g).animate(f),n&&(u=this.pointAttribs(c,i||!c.selected?void 0:"select"),i?s&&n.css({fill:u.fill}):n[h](u)),n&&n.addClass(c.getClassName(),!0)}else n&&(c.graphic=n.destroy())}},t.prototype.markerAttribs=function(t,e){var n=this.options,r=n.marker,i=t.marker||{},s=i.symbol||r.symbol,o={},a=F(i.radius,r&&r.radius);return e&&(r=r.states[e],e=i.states&&i.states[e],a=F(e&&e.radius,r&&r.radius,a&&a+(r&&r.radiusPlus||0))),t.hasImage=s&&0===s.indexOf("url"),t.hasImage&&(a=0),t=t.pos(),k(a)&&t&&(o.x=t[0]-a,o.y=t[1]-a,n.crisp&&(o.x=Math.floor(o.x))),a&&(o.width=o.height=2*a),o},t.prototype.pointAttribs=function(t,e){var n=this.options.marker,r=t&&t.options,i=r&&r.marker||{},s=r&&r.color,o=t&&t.color,a=t&&t.zone&&t.zone.color,l=this.color;return t=F(i.lineWidth,n.lineWidth),r=1,l=s||a||o||l,s=i.fillColor||n.fillColor||l,o=i.lineColor||n.lineColor||l,e=e||"normal",n=n.states[e]||{},e=i.states&&i.states[e]||{},t=F(e.lineWidth,n.lineWidth,t+F(e.lineWidthPlus,n.lineWidthPlus,0)),s=e.fillColor||n.fillColor||s,{stroke:o=e.lineColor||n.lineColor||o,"stroke-width":t,fill:s,opacity:r=F(e.opacity,n.opacity,r)}},t.prototype.destroy=function(t){var e,n,r,i=this,s=i.chart,o=/AppleWebKit\/533/.test(g.navigator.userAgent),a=i.data||[];for(B(i,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(i.axisTypes||[]).forEach(function(t){(r=i[t])&&r.series&&(_(r.series,i),r.isDirty=r.forceRedraw=!0)}),i.legendItem&&i.chart.legend.destroyItem(i),e=a.length;e--;)(n=a[e])&&n.destroy&&n.destroy();i.clips&&i.clips.forEach(function(t){return t.destroy()}),A.clearTimeout(i.animationTimeout),Q(i,function(t,e){t instanceof l&&!t.survive&&t[o&&"group"===e?"hide":"destroy"]()}),s.hoverSeries===i&&(s.hoverSeries=void 0),_(s.series,i),s.orderSeries(),Q(i,function(e,n){t&&"hcEvents"===n||delete i[n]})},t.prototype.applyZones=function(){var t,e,n,r,i,s,o,a,l=this,A=this.chart,c=A.renderer,h=this.zones,u=this.clips||[],p=this.graph,d=this.area,f=Math.max(A.plotWidth,A.plotHeight),g=this[(this.zoneAxis||"y")+"Axis"],m=A.inverted,y=!1;if(h.length&&(p||d)&&g&&void 0!==g.min){var v=g.reversed,b=g.horiz;p&&!this.showLine&&p.hide(),d&&d.hide();var x=g.getExtremes();h.forEach(function(h,w){t=v?b?A.plotWidth:0:b?0:g.toPixels(x.min)||0,t=O(F(e,t),0,f),e=O(Math.round(g.toPixels(F(h.value,x.max),!0)||0),0,f),y&&(t=e=g.toPixels(x.max)),r=Math.abs(t-e),i=Math.min(t,e),s=Math.max(t,e),g.isXAxis?(n={x:m?s:i,y:0,width:r,height:f},b||(n.x=A.plotHeight-n.x)):(n={x:0,y:m?s:i,width:f,height:r},b&&(n.y=A.plotWidth-n.y)),m&&c.isVML&&(n=g.isXAxis?{x:0,y:v?i:s,height:n.width,width:A.chartWidth}:{x:n.y-A.plotLeft-A.spacingBox.x,y:0,width:n.height,height:A.chartHeight}),u[w]?u[w].animate(n):u[w]=c.clipRect(n),o=l["zone-area-"+w],a=l["zone-graph-"+w],p&&a&&a.clip(u[w]),d&&o&&o.clip(u[w]),y=h.value>x.max,l.resetZones&&0===e&&(e=void 0)}),this.clips=u}else l.visible&&(p&&p.show(),d&&d.show())},t.prototype.plotGroup=function(t,e,n,r,i){var s=this[t],o=!s;return n={visibility:n,zIndex:r||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(n.opacity=this.opacity),o&&(this[t]=s=this.chart.renderer.g().add(i)),s.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(s.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),s.attr(n)[o?"attr":"animate"](this.getPlotBox(e)),s},t.prototype.getPlotBox=function(t){var e=this.xAxis,n=this.yAxis,r=this.chart;return t=r.inverted&&!r.polar&&e&&!1!==this.invertible&&"series"===t,r.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:r.plotLeft,translateY:n?n.top:r.plotTop,rotation:t?90:0,rotationOriginX:t?(e.len-n.len)/2:0,rotationOriginY:t?(e.len+n.len)/2:0,scaleX:t?-1:1,scaleY:1}},t.prototype.removeEvents=function(t){t||L(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,n=t.options,r=c(n.animation),i=t.visible?"inherit":"hidden",s=n.zIndex,o=t.hasRendered,a=e.seriesGroup;e=!t.finishedAnimating&&e.renderer.isSVG?r.duration:0,B(this,"render"),t.plotGroup("group","series",i,s,a),t.markerGroup=t.plotGroup("markerGroup","markers",i,s,a),!1!==n.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(),o||(e&&r.defer&&(e+=r.defer),t.animationTimeout=D(function(){t.afterAnimate()},e||0)),t.isDirty=!1,t.hasRendered=!0,B(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 n=this.xAxis,r=this.yAxis,i=this.chart.inverted;return this.searchKDTree({clientX:i?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:i?r.len-t.chartX+r.pos:t.chartY-r.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,r,i){var s=t&&t.length;if(s){var o=n.kdAxisArray[r%i];return t.sort(function(t,e){return t[o]-e[o]}),{point:t[s=Math.floor(s/2)],left:e(t.slice(0,s),r+1,i),right:e(t.slice(s+1),r+1,i)}}}this.buildingKdTree=!0;var n=this,r=-1<n.options.findNearestPointBy.indexOf("y")?2:1;delete n.kdTree,D(function(){n.kdTree=e(n.getValidPoints(null,!n.directTouch),r,r),n.buildingKdTree=!1},n.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,n){var r=this,i=this.kdAxisArray[0],s=this.kdAxisArray[1],o=e?"distX":"dist";if(e=-1<r.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return function t(e,n,a,l){var A=n.point,c=r.kdAxisArray[a%l],h=A,u=w(e[i])&&w(A[i])?Math.pow(e[i]-A[i],2):null,p=w(e[s])&&w(A[s])?Math.pow(e[s]-A[s],2):null;return p=(u||0)+(p||0),A.dist=w(p)?Math.sqrt(p):Number.MAX_VALUE,A.distX=w(u)?Math.sqrt(u):Number.MAX_VALUE,u=0>(c=e[c]-A[c])?"right":"left",n[p=0>c?"left":"right"]&&(h=(p=t(e,n[p],a+1,l))[o]<h[o]?p:A),n[u]&&Math.sqrt(c*c)<h[o]&&(h=(e=t(e,n[u],a+1,l))[o]<h[o]?e:h),h}(t,this.kdTree,e,e)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,n=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=n.reversed?-.5:.5),k(t)?t*(e||n.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,n=this.xAxis,r=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(r?r.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(n?n.len:e.plotWidth)},t.prototype.drawTracker=function(){var t=this,e=t.options,n=e.trackByArea,r=[].concat(n?t.areaPath:t.graphPath),i=t.chart,s=i.pointer,o=i.renderer,a=i.options.tooltip.snap,l=t.tracker,A=function(e){i.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(f?1e-4:.002)+")";l?l.attr({d:r}):t.graph&&(t.tracker=o.path(r).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(n?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),i.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:n?c:"none","stroke-width":t.graph.strokeWidth()+(n?0:2*a)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",A).on("mouseout",function(t){s.onTrackerMouseOut(t)}),e.cursor&&!i.styledMode&&t.css({cursor:e.cursor}),d)&&t.on("touchstart",A)})),B(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,n,r,i){var s=this.options,o=this.data,a=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var A,c=s.data,h=this.xData;e=F(e,!0);var u={series:this};this.pointClass.prototype.applyOptions.apply(u,[t]);var p=u.x,d=h.length;if(this.requireSorting&&p<h[d-1])for(A=!0;d&&h[d-1]>p;)d--;this.updateParallelArrays(u,"splice",d,0,0),this.updateParallelArrays(u,d),l&&u.name&&(l[p]=u.name),c.splice(d,0,t),(A||this.processedData)&&(this.data.splice(d,0,null),this.processData()),"point"===s.legendType&&this.generatePoints(),n&&(o[0]&&o[0].remove?o[0].remove(!1):(o.shift(),this.updateParallelArrays(u,"shift"),c.shift())),!1!==i&&B(this,"addPoint",{point:u}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(r)},t.prototype.removePoint=function(t,e,n){var r=this,i=r.data,s=i[t],o=r.points,a=r.chart,l=function(){o&&o.length===i.length&&o.splice(t,1),i.splice(t,1),r.options.data.splice(t,1),r.updateParallelArrays(s||{series:r},"splice",t,1),s&&s.destroy(),r.isDirty=!0,r.isDirtyData=!0,e&&a.redraw()};h(n,a),e=F(e,!0),s?s.firePointEvent("remove",null,l):l()},t.prototype.remove=function(t,e,n,r){function i(){s.destroy(r),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),F(t,!0)&&o.redraw(e)}var s=this,o=s.chart;!1!==n?B(s,"remove",null,i):i()},t.prototype.update=function(t,e){t=b(t,this.userOptions),B(this,"update",{options:t});var n=this,r=n.chart,i=n.userOptions,s=n.initialType||n.type,o=r.options.plotOptions,a=m[s].prototype,l=n.finishedAnimating&&{animation:!1},A={},c=["eventOptions","navigatorSeries","baseSeries"],h=t.type||i.type||r.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||n.hasOptionChanged("dataGrouping")||n.hasOptionChanged("pointStart")||n.hasOptionChanged("pointInterval")||n.hasOptionChanged("pointIntervalUnit")||n.hasOptionChanged("keys"));if(h=h||s,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"),n.parallelArrays.forEach(function(t){c.push(t+"Data")}),t.data&&(t.dataSorting&&C(n.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=N(i,l,{index:void 0===i.index?n.index:i.index,pointStart:F(o&&o.series&&o.series.pointStart,i.pointStart,n.xData[0])},!u&&{data:n.options.data},t),u&&t.data&&(t.data=n.options.data),(c=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(c)).forEach(function(t){c[t]=n[t],delete n[t]}),o=!1,m[h]){if(o=h!==n.type,n.remove(!1,!1,!1,!0),o)if(Object.setPrototypeOf)Object.setPrototypeOf(n,m[h].prototype);else{for(p in l=Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents,a)n[p]=void 0;C(n,m[h].prototype),l?n.hcEvents=l:delete n.hcEvents}}else S(17,!0,r,{missingModuleFor:h});if(c.forEach(function(t){n[t]=c[t]}),n.init(r,t),u&&this.points){if(!1===(t=n.options).visible)A.graphic=1,A.dataLabel=1;else if(!n._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||(A.graphic=1),p&&!1===p.enabled&&(A.dataLabel=1)}for(i=0,a=this.points;i<a.length;i++)(p=a[i])&&p.series&&(p.resolveColor(),Object.keys(A).length&&p.destroyElements(A),!1===t.showInLegend&&p.legendItem&&r.legend.destroyItem(p))}n.initialType=s,r.linkSeries(),o&&n.linkedSeries.length&&(n.isDirtyData=!0),B(this,"afterUpdate"),F(e,!0)&&r.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],n=this.chart.options.plotOptions,r=this.userOptions[t];return r?e!==r:e!==F(n&&n[this.type]&&n[this.type][t],n&&n.series&&n.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&&B(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,n=e.tooltip,r=e.hoverPoint;e.hoverSeries=null,r&&r.onMouseOut(),this&&t.events.mouseOut&&B(this,"mouseOut"),!n||this.stickyTracking||n.shared&&!this.noSharedTooltip||n.hide(),e.series.forEach(function(t){t.setState("",!0)})},t.prototype.setState=function(t,e){var n=this,r=n.options,i=n.graph,s=r.inactiveOtherPoints,o=r.states,a=F(o[t||"normal"]&&o[t||"normal"].animation,n.chart.options.chart.animation),l=r.lineWidth,A=0,c=r.opacity;if(t=t||"",n.state!==t&&([n.group,n.markerGroup,n.dataLabelsGroup].forEach(function(e){e&&(n.state&&e.removeClass("highcharts-series-"+n.state),t&&e.addClass("highcharts-series-"+t))}),n.state=t,!n.chart.styledMode)){if(o[t]&&!1===o[t].enabled)return;if(t&&(l=o[t].lineWidth||l+(o[t].lineWidthPlus||0),c=F(o[t].opacity,c)),i&&!i.dashstyle&&k(l))for(r={"stroke-width":l},i.animate(r,a);n["zone-graph-"+A];)n["zone-graph-"+A].animate(r,a),A+=1;s||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach(function(t){t&&t.animate({opacity:c},a)})}e&&s&&n.points&&n.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 n=this,r=n.chart,i=r.options.chart.ignoreHiddenSeries,s=n.visible,o=(n.visible=t=n.options.visible=n.userOptions.visible=void 0===t?!s:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){n[t]&&n[t][o]()}),r.hoverSeries!==n&&(r.hoverPoint&&r.hoverPoint.series)!==n||n.onMouseOut(),n.legendItem&&r.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&r.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),n.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),i&&(r.isDirtyBox=!0),B(n,o),!1!==e&&r.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),B(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,n){return void 0===n&&(n={}),n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,n)},t.defaultOptions=o,t.types=a.seriesTypes,t.registerType=a.registerSeriesType,t}(),C(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:s,requireSorting:!0,sorted:!0}),a.series=t,t}),e(n,"Extensions/ScrollablePlotArea.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],function(t,e,n,r,i,s){var o=t.stop,a=s.addEvent,l=s.createElement,A=s.defined,c=s.merge,h=s.pick;a(n,"afterSetChartSize",function(t){var n=this.options.chart.scrollablePlotArea,r=n&&n.minWidth;if(n=n&&n.minHeight,!this.renderer.forExport){if(r){if(this.scrollablePixelsX=r=Math.max(0,r-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.width=this.plotWidth+=r,this.inverted?this.clipBox.height+=r:this.clipBox.width+=r;var i={1:{name:"right",value:r}}}}else n&&(this.scrollablePixelsY=r=Math.max(0,n-this.chartHeight),A(r)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.height=this.plotHeight+=r,this.inverted?this.clipBox.width+=r:this.clipBox.height+=r,i={2:{name:"bottom",value:r}}));i&&!t.skipAxes&&this.axes.forEach(function(t){i[t.side]?t.getPlotLinePath=function(){var n=i[t.side].name,r=this[n];this[n]=r-i[t.side].value;var s=e.prototype.getPlotLinePath.apply(this,arguments);return this[n]=r,s}:(t.setAxisSize(),t.setAxisTranslation())})}}),a(n,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),n.prototype.setUpScrolling=function(){var t,e=this,n={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(n.overflowX="auto"),this.scrollablePixelsY&&(n.overflowY="auto"),this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=l("div",{className:"highcharts-scrolling"},n,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=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},n.prototype.moveFixedElements=function(){var t,e=this.container,n=this.fixedRenderer,r=".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&&r.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),r.forEach(function(t){[].forEach.call(e.querySelectorAll(t),function(t){(t.namespaceURI===n.SVG_NS?n.box:n.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})})},n.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,n=e.scrollablePlotArea,r=i.getRendererType();t?(this.fixedDiv=l("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 r(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":h(n.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),r=this.chartHeight+(this.scrollablePixelsY||0),o(this.container),this.container.style.width=e+"px",this.container.style.height=r+"px",this.renderer.boxWrapper.attr({width:e,height:r,viewBox:[0,0,e,r].join(" ")}),this.chartBackground.attr({width:e,height:r}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(n.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*n.scrollPositionX),n.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*n.scrollPositionY)),r=this.axisOffset,t=this.plotTop-r[0]-1,n=this.plotLeft-r[3]-1,e=this.plotTop+this.plotHeight+r[2]+1,r=this.plotLeft+this.plotWidth+r[1]+1;var s=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),A=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",s,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",s,e],["Z"]]:this.scrollablePixelsY?[["M",n,0],["L",n,this.plotTop-1],["L",r,this.plotTop-1],["L",r,0],["Z"],["M",n,A],["L",n,this.chartHeight],["L",r,this.chartHeight],["L",r,A],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},a(e,"afterInit",function(){this.chart.scrollableDirty=!0}),a(r,"show",function(){this.chart.scrollableDirty=!0})}),e(n,"Core/Axis/Stacking/StackItem.js",[n["Core/FormatUtilities.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(t,e,n){var r=t.format,i=e.series,s=n.destroyObjectProperties,o=n.pick,a=n.isNumber;return t=function(){function t(t,e,n,r,i){var s=t.chart.inverted,o=t.reversed;this.axis=t,t=this.isNegative=!!n!=!!o,this.options=e=e||{},this.x=r,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=i,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(s?t?"left":"right":"center"),verticalAlign:e.verticalAlign||(s?"middle":t?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(s?t?"right":"left":"center")}return t.prototype.destroy=function(){s(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,n=this.options,i=n.format;i=i?r(i,this,e):n.formatter.call(this),this.label?this.label.attr({text:i,visibility:"hidden"}):(this.label=e.renderer.label(i,null,void 0,n.shape,void 0,void 0,n.useHTML,!1,"stack-labels"),i={r:n.borderRadius||0,text:i,padding:o(n.padding,5),visibility:"hidden"},e.styledMode||(i.fill=n.backgroundColor,i.stroke=n.borderColor,i["stroke-width"]=n.borderWidth,this.label.css(n.style||{})),this.label.attr(i),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY},t.prototype.setOffset=function(t,e,n,r,s,l){var A=this.alignOptions,c=this.axis,h=this.label,u=this.options,p=this.textAlign,d=c.chart;t=this.getStackBox({xOffset:t,width:e,boxBottom:n,boxTop:r,defaultX:s,xAxis:l}),s=A.verticalAlign,h&&t&&(e=h.getBBox(),n=h.padding,r="justify"===o(u.overflow,"justify"),A.x=u.x||0,A.y=u.y||0,p=(s=this.adjustStackPosition({labelBox:e,verticalAlign:s,textAlign:p})).x,s=s.y,t.x-=p,t.y-=s,h.align(A,!1,t),(p=d.isInsidePlot(h.alignAttr.x+A.x+p,h.alignAttr.y+A.y+s))||(r=!1),r&&i.prototype.justifyDataLabel.call(c,h,A,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}),o(!r&&u.crop,!0)&&(p=a(h.x)&&a(h.y)&&d.isInsidePlot(h.x-n+h.width,h.y)&&d.isInsidePlot(h.x+n,h.y)),h[p?"show":"hide"]())},t.prototype.adjustStackPosition=function(t){var e=t.labelBox,n={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:e.width/2+e.width/2*n[t.textAlign],y:e.height/2*n[t.verticalAlign]}},t.prototype.getStackBox=function(t){var e=this.axis,n=e.chart,r=t.boxTop,i=t.defaultX,s=t.xOffset,a=t.width,l=t.boxBottom;return r=e.stacking.usePercentage?100:o(r,this.total,0),r=e.toPixels(r),t=o(i,(t.xAxis||n.xAxis[0]).toPixels(this.x))+s,e=e.toPixels(l||0),e=Math.abs(r-e),l=this.isNegative,n.inverted?{x:(l?r:r-e)-n.plotLeft,y:t-n.plotTop,width:e,height:a}:{x:t-n.plotLeft,y:(l?r-e:r)-n.plotTop,width:a,height:e}},t}(),t}),e(n,"Core/Axis/Stacking/StackingAxis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Utilities.js"]],function(t,e,n,r,i){function s(){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(n){var r=n.xAxis&&n.xAxis.options||{};!n.options.stacking||!0!==n.visible&&!1!==t.options.chart.ignoreHiddenSeries||(n.stackKey=[n.type,_(n.options.stack,""),e?r.top:r.left,e?r.height:r.width].join())})}function o(){var t=this.stacking;if(t){var e=t.stacks;w(e,function(t,n){v(t),e[n]=null}),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function a(){"yAxis"!==this.coll||this.stacking||(this.stacking=new S(this))}function l(t,e,n,r){return!y(t)||t.x!==e||r&&t.stackKey!==r?t={x:e,index:0,key:r,stackKey:r}:t.index++,t.key=[n,e,t.index].join(),t}function A(){var t,e=this,n=e.stackKey,r=e.yAxis.stacking.stacks,i=e.processedXData,s=e[e.options.stacking+"Stacker"];s&&[n,"-"+n].forEach(function(n){for(var o,a,l=i.length;l--;)o=i[l],t=e.getStackIndicator(t,o,e.index,n),(a=(o=r[n]&&r[n][o])&&o.points[t.key])&&s.call(e,a,o,l)})}function c(t,e,n){e=e.total?100/e.total:0,t[0]=m(t[0]*e),t[1]=m(t[1]*e),this.stackedYData[n]=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?f.setStackedPoints.call(this,"group"):t&&w(t.stacks,function(e,n){"group"===n.slice(-5)&&(w(e,function(t){return t.destroy()}),delete t.stacks[n])})}function u(t){var e=this.chart,n=t||this.options.stacking;if(n&&(!0===this.visible||!1===e.options.chart.ignoreHiddenSeries)){var i=this.processedXData,s=this.processedYData,o=[],a=s.length,l=this.options,A=l.threshold,c=_(l.startFromThreshold&&A,0);l=l.stack;var h,u,p="-"+(t=t?""+this.type+",".concat(n):this.stackKey),d=this.negStacks,f=(e="group"===n?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],O=s[u],x=this.getStackIndicator(x,v,this.index),w=x.key,S=(h=d&&O<(c?0:A))?p:t;f[S]||(f[S]={}),f[S][v]||(g[S]&&g[S][v]?(f[S][v]=g[S][v],f[S][v].total=null):f[S][v]=new r(e,e.options.stackLabels,!!h,v,l)),S=f[S][v],null!==O?(S.points[w]=S.points[this.index]=[_(S.cumulative,c)],y(S.cumulative)||(S.base=w),S.touched=e.stacking.stacksTouched,0<x.index&&!1===this.singleStacks&&(S.points[w][0]=S.points[this.index+","+v+",0"][0])):S.points[w]=S.points[this.index]=null,"percent"===n?(h=h?t:p,d&&f[h]&&f[h][v]?(h=f[h][v],S.total=h.total=Math.max(h.total,S.total)+Math.abs(O)||0):S.total=m(S.total+(Math.abs(O)||0))):"group"===n?(b(O)&&(O=O[0]),null!==O&&(S.total=(S.total||0)+1)):S.total=m(S.total+(O||0)),S.cumulative="group"===n?(S.total||1)-1:_(S.cumulative,c)+(O||0),null!==O&&(S.points[w].push(S.cumulative),o[u]=S.cumulative,S.hasValidPoints=!0)}"percent"===n&&(e.stacking.usePercentage=!0),"group"!==n&&(this.stackedYData=o),e.stacking.oldStacks={}}}var p,d=t.getDeferredAnimation,f=n.series.prototype,g=i.addEvent,m=i.correctFloat,y=i.defined,v=i.destroyObjectProperties,O=i.fireEvent,b=i.isArray,x=i.isNumber,w=i.objectEach,_=i.pick,S=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,n=e.series,r=e.options.reversedStacks,i=n.length;for(this.usePercentage=!1,t=i;t--;){var s=n[r?t:i-t-1];s.setStackedPoints(),s.setGroupedPoints()}for(t=0;t<i;t++)n[t].modifyStacks();O(e,"afterBuildStacks")},t.prototype.cleanStacks=function(){if(this.oldStacks)var t=this.stacks=this.oldStacks;w(t,function(t){w(t,function(t){t.cumulative=t.total})})},t.prototype.resetStacks=function(){var t=this;w(this.stacks,function(e){w(e,function(n,r){x(n.touched)&&n.touched<t.stacksTouched?(n.destroy(),delete e[r]):(n.total=null,n.cumulative=null)})})},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,n=e.renderer,r=this.stacks;t=d(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var i=this.stackTotalGroup=this.stackTotalGroup||n.g("stack-labels").attr({zIndex:6,opacity:0}).add();i.translate(e.plotLeft,e.plotTop),w(r,function(t){w(t,function(t){t.render(i)})}),i.animate({opacity:1},t)},t}();return function(t){var e=[];t.compose=function(t,n,r){-1===e.indexOf(t)&&(e.push(t),g(t,"init",a),g(t,"destroy",o)),-1===e.indexOf(n)&&(e.push(n),n.prototype.getStacks=s),-1===e.indexOf(r)&&(e.push(r),(t=r.prototype).getStackIndicator=l,t.modifyStacks=A,t.percentStacker=c,t.setGroupedPoints=h,t.setStackedPoints=u)}}(p||(p={})),p}),e(n,"Series/Line/LineSeries.js",[n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n.defined,s=n.merge;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(n,e),n.prototype.drawGraph=function(){var t=this,e=this.options,n=(this.gappedPath||this.getGraphPath).call(this),r=this.chart.styledMode,i=[["graph","highcharts-graph"]];r||i[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(i=t.getZonesGraphs(i)).forEach(function(i,s){var o=i[0],a=t[o],l=a?"animate":"attr";a?(a.endX=t.preventGraphAnimation?null:n.xMap,a.animate({d:n})):n.length&&(t[o]=a=t.chart.renderer.path(n).addClass(i[1]).attr({zIndex:1}).add(t.group)),a&&!r&&(o={stroke:i[2],"stroke-width":e.lineWidth||0,fill:t.fillGraph&&t.color||"none"},i[3]?o.dashstyle=i[3]:"square"!==e.linecap&&(o["stroke-linecap"]=o["stroke-linejoin"]="round"),a[l](o).shadow(2>s&&e.shadow)),a&&(a.startX=n.xMap,a.isArea=n.isArea)})},n.prototype.getGraphPath=function(t,e,n){var r,s=this,o=s.options,a=[],l=[],A=o.step,c=(t=t||s.points).reversed;return c&&t.reverse(),(A={right:1,center:2}[A]||A&&3)&&c&&(A=4-A),(t=this.getValidPoints(t,!1,!(o.connectNulls&&!e&&!n))).forEach(function(c,h){var u=c.plotX,p=c.plotY,d=t[h-1];(c.leftCliff||d&&d.rightCliff)&&!n&&(r=!0),c.isNull&&!i(e)&&0<h?r=!o.connectNulls:c.isNull&&!e?r=!0:(0===h||r?h=[["M",c.plotX,c.plotY]]:s.getPointSpline?h=[s.getPointSpline(t,c,h)]:A?(h=1===A?[["L",d.plotX,p]]:2===A?[["L",(d.plotX+u)/2,d.plotY],["L",(d.plotX+u)/2,p]]:[["L",u,d.plotY]]).push(["L",u,p]):h=[["L",u,p]],l.push(c.x),A&&(l.push(c.x),2===A&&l.push(c.x)),a.push.apply(a,h),r=!1)}),a.xMap=l,s.graphPath=a},n.prototype.getZonesGraphs=function(t){return this.zones.forEach(function(e,n){n=["zone-graph-"+n,"highcharts-graph highcharts-zone-graph-"+n+" "+(e.className||"")],this.chart.styledMode||n.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(n)},this),t},n.defaultOptions=s(t.defaultOptions,{}),n}(t),e.registerSeriesType("line",n),n}),e(n,"Series/Area/AreaSeries.js",[n["Core/Color/Color.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(t,e,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=t.parse,o=n.seriesTypes.line;t=r.extend;var a=r.merge,l=r.objectEach,A=r.pick;return r=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,n=this.areaPath,r=this.options,i=[["area","highcharts-area",this.color,r.fillColor]];this.zones.forEach(function(t,n){i.push(["zone-area-"+n,"highcharts-area highcharts-zone-area-"+n+" "+t.className,t.color||e.color,t.fillColor||r.fillColor])}),i.forEach(function(t){var i=t[0],o={},a=e[i],l=a?"animate":"attr";a?(a.endX=e.preventGraphAnimation?null:n.xMap,a.animate({d:n})):(o.zIndex=0,(a=e[i]=e.chart.renderer.path(n).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(o.fill=A(t[3],s(t[2]).setOpacity(A(r.fillOpacity,.75)).get())),a[l](o),a.startX=n.xMap,a.shiftUnit=r.step?2:1})},e.prototype.getGraphPath=function(t){var e=o.prototype.getGraphPath,n=this.options,r=n.stacking,i=this.yAxis,s=[],a=[],l=this.index,c=i.stacking.stacks[this.stackKey],h=n.threshold,u=Math.round(i.getThreshold(n.threshold));n=A(n.connectNulls,"percent"===r);var p=function(e,n,o){var A=t[e];e=r&&c[A.x].points[l];var p=A[o+"Null"]||0;if(o=A[o+"Cliff"]||0,A=!0,o||p){var d=(p?e[0]:e[1])+o,f=e[0]+o;A=!!p}else!r&&t[n]&&t[n].isNull&&(d=f=h);void 0!==d&&(a.push({plotX:m,plotY:null===d?u:i.getThreshold(d),isNull:A,isCliff:!0}),s.push({plotX:m,plotY:null===f?u:i.getThreshold(f),doCurve:!1}))};t=t||this.points,r&&(t=this.getStackPoints(t));for(var d=0,f=t.length;d<f;++d){r||(t[d].leftCliff=t[d].rightCliff=t[d].leftNull=t[d].rightNull=void 0);var g=t[d].isNull,m=A(t[d].rectPlotX,t[d].plotX),y=r?A(t[d].yBottom,u):u;g&&!n||(n||p(d,d-1,"left"),g&&!r&&n||(a.push(t[d]),s.push({x:d,plotX:m,plotY:y})),n||p(d,d+1,"right"))}return p=e.call(this,a,!0,!0),s.reversed=!0,(y=(g=e.call(this,s,!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,n),g.xMap=p.xMap,this.areaPath=g,e},e.prototype.getStackPoints=function(t){var e=this,n=[],r=[],i=this.xAxis,s=this.yAxis,o=s.stacking.stacks[this.stackKey],a={},c=s.series,h=c.length,u=s.options.reversedStacks?1:-1,p=c.indexOf(e);if(t=t||this.points,this.options.stacking){for(var d=0;d<t.length;d++)t[d].leftNull=t[d].rightNull=void 0,a[t[d].x]=t[d];l(o,function(t,e){null!==t.total&&r.push(e)}),r.sort(function(t,e){return t-e});var f=c.map(function(t){return t.visible});r.forEach(function(t,l){var d,g,m=0;if(a[t]&&!a[t].isNull)n.push(a[t]),[-1,1].forEach(function(n){var i=1===n?"rightNull":"leftNull",s=o[r[l+n]],A=0;if(s)for(var m=p;0<=m&&m<h;){var y=c[m].index;(d=s.points[y])||(y===e.index?a[t][i]=!0:f[m]&&(g=o[t].points[y])&&(A-=g[1]-g[0])),m+=u}a[t][1===n?"rightCliff":"leftCliff"]=A});else{for(var y=p;0<=y&&y<h;){if(d=o[t].points[c[y].index]){m=d[1];break}y+=u}m=A(m,0),m=s.translate(m,0,1,0,1),n.push({isNull:!0,plotX:i.translate(t,0,0,0,1),x:t,plotY:m,yBottom:m})}})}return n},e.defaultOptions=a(o.defaultOptions,{threshold:0}),e}(o),t(r.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),n.registerSeriesType("area",r),r}),e(n,"Series/Spline/SplineSeries.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=t.seriesTypes.line,i=e.merge,s=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 n(e,t),e.prototype.getPointSpline=function(t,e,n){var r=e.plotX||0,i=e.plotY||0,o=t[n-1];if(n=t[n+1],o&&!o.isNull&&!1!==o.doCurve&&!e.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!e.isCliff){t=o.plotY||0;var a=n.plotX||0;n=n.plotY||0;var l=0,A=(1.5*r+(o.plotX||0))/2.5,c=(1.5*i+t)/2.5,h=(1.5*i+n)/2.5;(a=(1.5*r+a)/2.5)!==A&&(l=(h-c)*(a-r)/(a-A)+i-h),h+=l,(c+=l)>t&&c>i?h=2*i-(c=Math.max(t,i)):c<t&&c<i&&(h=2*i-(c=Math.min(t,i))),h>n&&h>i?c=2*i-(h=Math.max(n,i)):h<n&&h<i&&(c=2*i-(h=Math.min(n,i))),e.rightContX=a,e.rightContY=h}return e=["C",s(o.rightContX,o.plotX,0),s(o.rightContY,o.plotY,0),s(A,r,0),s(c,i,0),r,i],o.rightContX=o.rightContY=void 0,e},e.defaultOptions=i(r.defaultOptions),e}(r),t.registerSeriesType("spline",e),e}),e(n,"Series/AreaSpline/AreaSplineSeries.js",[n["Series/Spline/SplineSeries.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(t,e,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=n.seriesTypes,o=s.area;s=s.area.prototype;var a=r.extend,l=r.merge;return r=function(e){function n(){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(n,e),n.defaultOptions=l(t.defaultOptions,o.defaultOptions),n}(t),a(r.prototype,{getGraphPath:s.getGraphPath,getStackPoints:s.getStackPoints,drawGraph:s.drawGraph,drawLegendSymbol:e.drawRectangle}),n.registerSeriesType("areaspline",r),r}),e(n,"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(n,"Series/Column/ColumnSeries.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Series/Column/ColumnSeriesDefaults.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(t,e,n,r,i,s,o,a){var l=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=t.animObject,c=e.parse,h=r.hasTouch;t=r.noop;var u=a.clamp,p=a.defined,d=a.extend,f=a.fireEvent,g=a.isArray,m=a.isNumber,y=a.merge,v=a.pick,O=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 l(e,t),e.prototype.animate=function(t){var e=this,n=this.yAxis,r=e.options,i=this.chart.inverted,s={},o=i?"translateX":"translateY";if(t)s.scaleY=.001,t=u(n.toPixels(r.threshold),n.pos,n.pos+n.len),i?s.translateX=t-n.len:s.translateY=t,e.clipBox&&e.setClip(),e.group.attr(s);else{var a=Number(e.group.attr(o));e.group.animate({scaleY:1},d(A(e.options.animation),{step:function(t,r){e.group&&(s[o]=a+r.pos*(n.pos-a),e.group.attr(s))}}))}},e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments);var r=this;(e=r.chart).hasRendered&&e.series.forEach(function(t){t.type===r.type&&(t.isDirty=!0)})},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,n=t.xAxis,r=t.yAxis,i=n.options.reversedStacks;i=n.reversed&&!i||!n.reversed&&i;var s,o={},a=0;!1===e.grouping?a=1:t.chart.series.forEach(function(e){var n=e.yAxis,i=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&r.len===n.len&&r.pos===n.pos){if(i.stacking&&"group"!==i.stacking){s=e.stackKey,void 0===o[s]&&(o[s]=a++);var l=o[s]}else!1!==i.grouping&&(l=a++);e.columnIndex=l}});var l=Math.min(Math.abs(n.transA)*(n.ordinal&&n.ordinal.slope||e.pointRange||n.closestPointRange||n.tickInterval||1),n.len),A=l*e.groupPadding,c=(l-2*A)/(a||1);return e=Math.min(e.maxPointWidth||n.len,v(e.pointWidth,c*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(c-e)/2+(A+((t.columnIndex||0)+(i?1:0))*c-l/2)*(i?-1:1),paddedWidth:c,columnCount:a},t.columnMetrics},e.prototype.crispCol=function(t,e,n,r){var i=this.chart,s=this.borderWidth,o=-(s%2?.5:0);return s=s%2?.5:1,i.inverted&&i.renderer.isVML&&(s+=1),this.options.crisp&&(n=Math.round(t+n)+o,n-=t=Math.round(t)+o),r=Math.round(e+r)+s,o=.5>=Math.abs(e)&&.5<r,r-=e=Math.round(e)+s,o&&r&&(--e,r+=1),{x:t,y:e,width:n,height:r}},e.prototype.adjustForMissingColumns=function(t,e,n,r){var i=this,s=this.options.stacking;if(!n.isNull&&1<r.columnCount){var o=this.yAxis.options.reversedStacks,a=0,l=o?0:-r.columnCount;O(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(t){if("number"==typeof n.x){var e=t[n.x.toString()];e&&(t=e.points[i.index],s?(t&&(a=l),e.hasValidPoints&&(o?l++:l--)):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),l=t.length))}}),t=(n.plotX||0)+((l-1)*r.paddedWidth+e)/2-e-a*r.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,n=t.options,r=t.dense=2>t.closestPointRange*t.xAxis.transA;r=t.borderWidth=v(n.borderWidth,r?0:1);var i=t.xAxis,o=t.yAxis,a=n.threshold,l=t.translatedThreshold=o.getThreshold(a),A=v(n.minPointLength,5),c=t.getColumnMetrics(),h=c.width,d=t.pointXOffset=c.offset,f=t.dataMin,g=t.dataMax,y=t.barW=Math.max(h,1+2*r);e.inverted&&(l-=.5),n.pointPadding&&(y=Math.ceil(y)),s.prototype.translate.apply(t),t.points.forEach(function(r){var s=v(r.yBottom,l),O=999+Math.abs(s),b=r.plotX||0;O=u(r.plotY,-O,o.len+O);var x=Math.min(O,s),w=Math.max(O,s)-x,_=h,S=b+d,C=y;A&&Math.abs(w)<A&&(w=A,b=!o.reversed&&!r.negative||o.reversed&&r.negative,m(a)&&m(g)&&r.y===a&&g<=a&&(o.min||0)<a&&(f!==g||(o.max||0)<=a)&&(b=!b),x=Math.abs(x-l)>A?s-A:l-(b?A:0)),p(r.options.pointWidth)&&(_=C=Math.ceil(r.options.pointWidth),S-=Math.round((_-h)/2)),n.centerInCategory&&(S=t.adjustForMissingColumns(S,_,r,c)),r.barX=S,r.pointWidth=_,r.tooltipPos=e.inverted?[u(o.len+o.pos-e.plotLeft-O,o.pos-e.plotLeft,o.len+o.pos-e.plotLeft),i.len+i.pos-e.plotTop-S-C/2,w]:[i.left-e.plotLeft+S+C/2,u(O+o.pos-e.plotTop,o.pos-e.plotTop,o.len+o.pos-e.plotTop),w],r.shapeType=t.pointClass.prototype.shapeType||"rect",r.shapeArgs=t.crispCol.apply(t,r.isNull?[S,l,C,0]:[S,x,C,w])})},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var n=this.options,r=this.pointAttrToOptions||{},i=r.stroke||"borderColor",s=r["stroke-width"]||"borderWidth",o=t&&t.color||this.color,a=t&&t[i]||n[i]||o;r=t&&t.options.dashStyle||n.dashStyle;var l=t&&t[s]||n[s]||this[s]||0,A=v(t&&t.opacity,n.opacity,1);if(t&&this.zones.length){var h=t.getZone();o=t.options.color||h&&(h.color||t.nonZonedColor)||this.color,h&&(a=h.borderColor||a,r=h.dashStyle||r,l=h.borderWidth||l)}return e&&t&&(e=(t=y(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,o=t.color||void 0!==e&&c(o).brighten(t.brightness).get()||o,a=t[i]||a,l=t[s]||l,r=t.dashStyle||r,A=v(t.opacity,A)),i={fill:o,stroke:a,"stroke-width":l,opacity:A},r&&(i.dashstyle=r),i},e.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,n=this,r=this.chart,i=n.options,s=r.renderer,o=i.animationLimit||250;t.forEach(function(t){var a=t.graphic,l=!!a,A=a&&r.pointCount<o?"animate":"attr";m(t.plotY)&&null!==t.y?(e=t.shapeArgs,a&&t.hasNewShapeType()&&(a=a.destroy()),n.enabledDataSorting&&(t.startXPos=n.xAxis.reversed?-(e&&e.width||0):n.xAxis.width),a||(t.graphic=a=s[t.shapeType](e).add(t.group||n.group))&&n.enabledDataSorting&&r.hasRendered&&r.pointCount<o&&(a.attr({x:t.startXPos}),l=!0,A="animate"),a&&l&&a[A](y(e)),i.borderRadius&&a[A]({r:i.borderRadius}),r.styledMode||a[A](n.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,n=this,r=n.chart,i=r.pointer,s=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})}),n._hasTracking||(n.trackerGroups.forEach(function(t){n[t]&&(n[t].addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(t){i.onTrackerMouseOut(t)}),h&&n[t].on("touchstart",s),!r.styledMode&&n.options.cursor&&n[t].css({cursor:n.options.cursor}))}),n._hasTracking=!0),f(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)}),s.prototype.remove.apply(t,arguments)},e.defaultOptions=y(s.defaultOptions,n),e}(s),d(a.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:i.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),o.registerSeriesType("column",a),a}),e(n,"Core/Series/DataLabel.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],function(t,e,n){var r,i=t.getDeferredAnimation,s=e.format,o=n.defined,a=n.extend,l=n.fireEvent,A=n.isArray,c=n.isString,h=n.merge,u=n.objectEach,p=n.pick,d=n.splat;return function(t){function e(t,e,n,r,i){var s=this,l=this.chart,A=this.isCartesian&&l.inverted,c=this.enabledDataSorting,h=t.plotX,u=t.plotY,d=n.rotation,f=n.align,g=o(h)&&o(u)&&l.isInsidePlot(h,Math.round(u),{inverted:A,paneCoordinates:!0,series:s});u=function(n){c&&s.xAxis&&!m&&s.setDataLabelStartPos(t,e,i,g,n)};var m="justify"===p(n.overflow,c?"none":"justify");if(h=this.visible&&!1!==t.visible&&o(h)&&(t.series.forceDL||c&&!m||g||p(n.inside,!!this.options.stacking)&&r&&l.isInsidePlot(h,A?r.x+1:r.y+r.height-1,{inverted:A,paneCoordinates:!0,series:s})),A=t.pos(),h&&A){d&&e.attr({align:f}),f=e.getBBox(!0);var y=[0,0],v=l.renderer.fontMetrics(l.styledMode?void 0:n.style.fontSize,e).b;r=a({x:A[0],y:Math.round(A[1]),width:0,height:0},r),a(n,{width:f.width,height:f.height}),d?(m=!1,y=l.renderer.rotCorr(v,d),v={x:r.x+(n.x||0)+r.width/2+y.x,y:r.y+(n.y||0)+{top:0,middle:.5,bottom:1}[n.verticalAlign]*r.height},y=[f.x-Number(e.attr("x")),f.y-Number(e.attr("y"))],u(v),e[i?"attr":"animate"](v)):(u(r),e.align(n,void 0,r),v=e.alignAttr),m&&0<=r.height?this.justifyDataLabel(e,n,v,f,r,i):p(n.crop,!0)&&(r=v.x,u=v.y,r+=y[0],u+=y[1],h=l.isInsidePlot(r,u,{paneCoordinates:!0,series:s})&&l.isInsidePlot(r+f.width,u+f.height,{paneCoordinates:!0,series:s})),n.shape&&!d&&e[i?"attr":"animate"]({anchorX:A[0],anchorY:A[1]})}i&&c&&(e.placed=!1),h||c&&!m?e.show():(e.hide(),e.placed=!1)}function n(t){void 0===t&&(t=this.points);var e=this,n=e.chart,r=e.options,a=e.hasRendered||0,h=n.renderer,g=n.options.chart,m=g.backgroundColor;g=g.plotBackgroundColor;var y=h.getContrast(c(g)&&g||c(m)&&m||"#000000"),v=r.dataLabels;if(m=v.animation,m=v.defer?i(n,m,e):{defer:0,duration:0},v=f(f(n.options.plotOptions&&n.options.plotOptions.series&&n.options.plotOptions.series.dataLabels,n.options.plotOptions&&n.options.plotOptions[e.type]&&n.options.plotOptions[e.type].dataLabels),v),l(this,"drawDataLabels"),A(v)||v.enabled||e._hasPointLabels){var O=e.plotGroup("dataLabelsGroup","data-labels",a?"inherit":"hidden",v.zIndex||6);O.attr({opacity:+a}),!a&&(a=e.dataLabelsGroup)&&(e.visible&&O.show(),a[r.animation?"animate":"attr"]({opacity:1},m)),t.forEach(function(t){d(f(v,t.dlOptions||t.options&&t.options.dataLabels)).forEach(function(i,a){var l=i.enabled&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var n=e.filter;return!n||(e=n.operator,t=t[n.property],n=n.value,">"===e&&t>n||"<"===e&&t<n||">="===e&&t>=n||"<="===e&&t<=n||"=="===e&&t==n||"==="===e&&t===n)}(t,i),A=t.connectors?t.connectors[a]:t.connector,c=t.dataLabels?t.dataLabels[a]:t.dataLabel,d=!c,f=p(i.distance,t.labelDistance);if(l){var g=t.getLabelConfig(),m=p(i[t.formatPrefix+"Format"],i.format);g=o(m)?s(m,g,n):(i[t.formatPrefix+"Formatter"]||i.formatter).call(g,i),m=i.style;var v=i.rotation;n.styledMode||(m.color=p(i.color,m.color,e.color,"#000000"),"contrast"===m.color?(t.contrastColor=h.getContrast(t.color||e.color),m.color=!o(f)&&i.inside||0>f||r.stacking?t.contrastColor:y):delete t.contrastColor,r.cursor&&(m.cursor=r.cursor));var b={r:i.borderRadius||0,rotation:v,padding:i.padding,zIndex:1};if(!n.styledMode){f=i.backgroundColor;var x=i.borderColor;b.fill="auto"===f?t.color:f,b.stroke="auto"===x?t.color:x,b["stroke-width"]=i.borderWidth}u(b,function(t,e){void 0===t&&delete b[e]})}!c||l&&o(g)&&!!c.div==!!i.useHTML&&(c.rotation&&i.rotation||c.rotation===i.rotation)||(d=!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,A&&(t.connector=t.connector.destroy(),t.connectors&&(1===t.connectors.length?delete t.connectors:delete t.connectors[a]))),l&&o(g)?(c?b.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(b),n.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(O),e.alignDataLabel(t,c,i,null,d)):c&&c.hide()})})}l(this,"afterDrawDataLabels")}function r(t,e,n,r,i,s){var o=this.chart,a=e.align,l=e.verticalAlign,A=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=(n.x||0)+A;if(0>u){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=u;var p=!0}return(u=(n.x||0)+r.width-A)>o.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=o.plotWidth-u,p=!0),0>(u=n.y+A)&&("bottom"===l&&0<=h?(e.verticalAlign="top",e.inside=!0):h-=u,p=!0),(u=(n.y||0)+r.height-A)>o.plotHeight&&("top"===l&&0>=h?(e.verticalAlign="bottom",e.inside=!0):h+=o.plotHeight-u,p=!0),p&&(e.x=c,e.y=h,t.placed=!s,t.align(e,void 0,i)),p}function f(t,e){var n,r=[];if(A(t)&&!A(e))r=t.map(function(t){return h(t,e)});else if(A(e)&&!A(t))r=e.map(function(e){return h(t,e)});else if(A(t)||A(e))for(n=Math.max(t.length,e.length);n--;)r[n]=h(t[n],e[n]);else r=h(t,e);return r}function g(t,e,n,r,i){var s=this.chart,o=s.inverted,a=this.xAxis,l=a.reversed,A=o?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=o?i.x:l?-A-t:a.width-A+t,e.startYPos=o?l?this.yAxis.height-A+t:-A-t:i.y,r?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),s.hasRendered&&(n&&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=n,i.justifyDataLabel=r,i.setDataLabelStartPos=g}}}(r||(r={})),r}),e(n,"Series/Column/ColumnDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(t,e,n){var r,i=e.series,s=n.merge,o=n.pick;return function(e){function n(t,e,n,r,a){var l=this.chart.inverted,A=t.series,c=(A.xAxis?A.xAxis.len:this.chart.plotSizeX)||0;A=(A.yAxis?A.yAxis.len:this.chart.plotSizeY)||0;var h=t.dlBox||t.shapeArgs,u=o(t.below,t.plotY>o(this.translatedThreshold,A)),p=o(n.inside,!!this.options.stacking);h&&(0>(r=s(h)).y&&(r.height+=r.y,r.y=0),0<(h=r.y+r.height-A)&&h<r.height&&(r.height-=h),l&&(r={x:A-r.y-r.height,y:c-r.x-r.width,width:r.height,height:r.width}),p||(l?(r.x+=u?0:r.width,r.width=0):(r.y+=u?r.height:0,r.height=0))),n.align=o(n.align,!l||p?"center":u?"right":"left"),n.verticalAlign=o(n.verticalAlign,l||p?"middle":u?"top":"bottom"),i.prototype.alignDataLabel.call(this,t,e,n,r,a),n.inside&&t.contrastColor&&e.css({color:t.contrastColor})}var r=[];e.compose=function(e){t.compose(i),-1===r.indexOf(e)&&(r.push(e),e.prototype.alignDataLabel=n)}}(r||(r={})),r}),e(n,"Series/Bar/BarSeries.js",[n["Series/Column/ColumnSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n.extend,s=n.merge;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(n,e),n.defaultOptions=s(t.defaultOptions,{}),n}(t),i(n.prototype,{inverted:!0}),e.registerSeriesType("bar",n),n}),e(n,"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(n,"Series/Scatter/ScatterSeries.js",[n["Series/Scatter/ScatterSeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=e.seriesTypes,s=i.column,o=i.line;i=n.addEvent;var a=n.extend,l=n.merge;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(n,e),n.prototype.applyJitter=function(){var t=this,e=this.options.jitter,n=this.points.length;e&&this.points.forEach(function(r,i){["x","y"].forEach(function(s,o){var a="plot"+s.toUpperCase();if(e[s]&&!r.isNull){var l=t[s+"Axis"],A=e[s]*l.transA;if(l&&!l.isLog){var c=Math.max(0,r[a]-A);l=Math.min(l.len,r[a]+A),o=1e4*Math.sin(i+o*n),r[a]=c+(l-c)*(o-Math.floor(o)),"x"===s&&(r.clientX=r.plotX)}}})})},n.prototype.drawGraph=function(){this.options.lineWidth?e.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},n.defaultOptions=l(o.defaultOptions,t),n}(o),a(n.prototype,{drawTracker:s.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),i(n,"afterTranslate",function(){this.applyJitter()}),e.registerSeriesType("scatter",n),n}),e(n,"Series/CenteredUtilities.js",[n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],function(t,e,n){var r,i=t.deg2rad,s=n.fireEvent,o=n.isNumber,a=n.pick,l=n.relativeLength;return function(t){t.getCenter=function(){var t=this.options,n=this.chart,r=2*(t.slicedOffset||0),i=n.plotWidth-2*r,A=n.plotHeight-2*r,c=t.center,h=Math.min(i,A),u=t.thickness,p=t.size,d=t.innerSize||0;for("string"==typeof p&&(p=parseFloat(p)),"string"==typeof d&&(d=parseFloat(d)),t=[a(c[0],"50%"),a(c[1],"50%"),a(p&&0>p?void 0:t.size,"100%"),a(d&&0>d?void 0:t.innerSize||0,"0%")],!n.angular||this instanceof e||(t[3]=0),c=0;4>c;++c)p=t[c],n=2>c||2===c&&/%$/.test(p),t[c]=l(p,[i,A,h,t[2]][c])+(n?r:0);return t[3]>t[2]&&(t[3]=t[2]),o(u)&&2*u<t[2]&&0<u&&(t[3]=t[2]-2*u),s(this,"afterGetCenter",{positions:t}),t},t.getStartAndEndRadians=function(t,e){return t=o(t)?t:0,e=o(e)&&e>t&&360>e-t?e:t+360,{start:i*(t+-90),end:i*(e+-90)}}}(r||(r={})),r}),e(n,"Series/Pie/PiePoint.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t.setAnimation,s=n.addEvent,o=n.defined;t=n.extend;var a=n.isNumber,l=n.pick,A=n.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 r(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,n=this.connectorShapes,r=e.connectorShape;return n[r]&&(r=n[r]),r.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=l(this.name,"Slice");var n=function(t){e.slice("select"===t.type)};return s(this,"select",n),s(this,"unselect",n),this},e.prototype.isValid=function(){return a(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var n=this,r=this.series,i=r.chart,s=r.options.ignoreHiddenPoint;e=l(e,s),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,r.options.data[r.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){n[e]&&n[e][t?"show":"hide"](t)}),this.legendItem&&i.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),s&&(r.isDirty=!0),e&&i.redraw())},e.prototype.slice=function(t,e,n){var r=this.series;i(n,r.chart),l(e,!0),this.sliced=this.options.sliced=o(t)?t:!this.sliced,r.options.data[r.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,n){var r=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],n.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*r.x-e.x,2*r.y-e.y,r.x,r.y]:["L",r.x,r.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,n){e=e.touchingSliceAt;var r=this.series,i=r.center[0],s=r.chart.plotWidth,o=r.chart.plotLeft;r=t.alignment;var a=this.shapeArgs.r;return n=A(n.crookDistance,1),n=["L",s="left"===r?i+a+(s+o-i-a)*(1-n):o+(i-a)*n,t.y],i=!0,("left"===r?s>t.x||s<e.x:s<t.x||s>e.x)&&(i=!1),t=[["M",t.x,t.y]],i&&t.push(n),t.push(["L",e.x,e.y]),t}}}),e}),e(n,"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(n,"Series/Pie/PieSeries.js",[n["Series/CenteredUtilities.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Series/Pie/PiePoint.js"],n["Series/Pie/PieSeriesDefaults.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],function(t,e,n,r,i,s,o,a,l,A){var c=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=t.getStartAndEndRadians;n=n.noop;var u=A.clamp,p=A.extend,d=A.fireEvent,f=A.merge,g=A.pick,m=A.relativeLength;return A=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,n=e.points,r=e.startAngleRad;t||n.forEach(function(t){var n=t.graphic,i=t.shapeArgs;n&&i&&(n.attr({r:g(t.startR,e.center&&e.center[3]/2),start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},e.options.animation))})},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,n=this.options;if(0===this.total&&this.center){var r=this.center[0],i=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(r,i,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:l.arc(r,i,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||"none",stroke:n.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,n){var r=this.center,i=this.radii?this.radii[n.index]||0:r[2]/2;return t=Math.asin(u((t-r[1])/(i+n.labelDistance),-1,1)),r[0]+(e?-1:1)*Math.cos(t)*(i+n.labelDistance)+(0<n.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,n,r,i=this,s=i.chart,o=s.renderer,a=i.options.shadow;this.drawEmpty(),!a||i.shadowGroup||s.styledMode||(i.shadowGroup=o.g("shadow").attr({zIndex:-1}).add(i.group)),i.points.forEach(function(l){var A={};if(e=l.graphic,!l.isNull&&e){var c=void 0;r=l.shapeArgs,t=l.getTranslate(),s.styledMode||(c=l.shadowGroup,a&&!c&&(c=l.shadowGroup=o.g("shadow").add(i.shadowGroup)),c&&c.attr(t),n=i.pointAttribs(l,l.selected&&"select")),l.delayedRendering?(e.setRadialReference(i.center).attr(r).attr(t),s.styledMode||e.attr(n).attr({"stroke-linejoin":"round"}).shadow(a,c),l.delayedRendering=!1):(e.setRadialReference(i.center),s.styledMode||f(!0,A,n),f(!0,A,r,t),e.animate(A)),e.attr({visibility:l.visible?"inherit":"hidden"}),e.addClass(l.getClassName(),!0)}else e&&(l.graphic=e.destroy())})},e.prototype.sortByAngle=function(t,e){t.sort(function(t,n){return void 0!==t.angle&&(n.angle-t.angle)*e})},e.prototype.translate=function(t){d(this,"translate"),this.generatePoints();var e=this.options,n=e.slicedOffset,r=n+(e.borderWidth||0),i=h(e.startAngle,e.endAngle),s=this.startAngleRad=i.start;i=(this.endAngleRad=i.end)-s;var o=this.points,a=e.dataLabels.distance;e=e.ignoreHiddenPoint;var l,A=o.length,c=0;for(t||(this.center=t=this.getCenter()),l=0;l<A;l++){var u=o[l],p=s+c*i;!u.isValid()||e&&!u.visible||(c+=u.percentage/100);var f=s+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*f)/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),(f=(f+p)/2)>1.5*Math.PI?f-=2*Math.PI:f<-Math.PI/2&&(f+=2*Math.PI),u.slicedTranslation={translateX:Math.round(Math.cos(f)*n),translateY:Math.round(Math.sin(f)*n)},y=Math.cos(f)*t[2]/2;var v=Math.sin(f)*t[2]/2;u.tooltipPos=[t[0]+.7*y,t[1]+.7*v],u.half=f<-Math.PI/2||f>Math.PI/2?1:0,u.angle=f,p=Math.min(r,u.labelDistance/5),u.labelPosition={natural:{x:t[0]+y+Math.cos(f)*u.labelDistance,y:t[1]+v+Math.sin(f)*u.labelDistance},final:{},alignment:0>u.labelDistance?"center":u.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+y+Math.cos(f)*p,y:t[1]+v+Math.sin(f)*p},touchingSliceAt:{x:t[0]+y,y:t[1]+v}}}}d(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,n=e.length,r=this.options.ignoreHiddenPoint,i=0;for(t=0;t<n;t++){var s=e[t];!s.isValid()||r&&!s.visible||(i+=s.y)}for(this.total=i,t=0;t<n;t++)(s=e[t]).percentage=0<i&&(s.visible||!r)?s.y/i*100:0,s.total=i},e.defaultOptions=f(o.defaultOptions,s),e}(o),p(A.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:r.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:n,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:i,requireSorting:!1,searchPoint:n,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",A),A}),e(n,"Series/Pie/PieDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],function(t,e,n,r,i){var s,o=e.noop,a=n.distribute,l=r.series,A=i.arrayMax,c=i.clamp,h=i.defined,u=i.merge,p=i.pick,d=i.relativeLength;return function(e){function n(){var t,e,n,r,i,s,o,c,d,f,g,m,y=this,v=y.data,O=y.chart,b=y.options.dataLabels||{},x=b.connectorPadding,w=O.plotWidth,_=O.plotHeight,S=O.plotLeft,C=Math.round(O.chartWidth/3),E=y.center,B=E[2]/2,T=E[1],P=[[],[]],k=[0,0,0,0],I=y.dataLabelPositioners;y.visible&&(b.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)}),l.prototype.drawDataLabels.apply(y),v.forEach(function(t){t.dataLabel&&(t.visible?(P[t.half].push(t),t.dataLabel._pos=null,!h(b.style.width)&&!h(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>C&&(t.dataLabel.css({width:Math.round(.7*C)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),P.forEach(function(e,n){var l,A=e.length,u=[];if(A){if(y.sortByAngle(e,n-.5),0<y.maxLabelDistance){var v=Math.max(0,T-B-y.maxLabelDistance),C=Math.min(T+B+y.maxLabelDistance,O.plotHeight);e.forEach(function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,T-B-t.labelDistance),t.bottom=Math.min(T+B+t.labelDistance,O.plotHeight),l=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+l/2,size:l,rank:t.y},u.push(t.distributeBox))}),a(u,v=C+l-v,v/5)}for(g=0;g<A;g++){if(t=e[g],s=t.labelPosition,r=t.dataLabel,f=!1===t.visible?"hidden":"inherit",d=v=s.natural.y,u&&h(t.distributeBox)&&(void 0===t.distributeBox.pos?f="hidden":(o=t.distributeBox.size,d=I.radialDistributionY(t))),delete t.positionIndex,b.justify)c=I.justify(t,B,E);else switch(b.alignTo){case"connectors":c=I.alignToConnectors(e,n,w,S);break;case"plotEdges":c=I.alignToPlotEdges(r,n,w,S);break;default:c=I.radialDistributionX(y,t,d,v)}r._attr={visibility:f,align:s.alignment},m=t.options.dataLabels||{},r._pos={x:c+p(m.x,b.x)+({left:x,right:-x}[s.alignment]||0),y:d+p(m.y,b.y)-10},s.final.x=c,s.final.y=d,p(b.crop,!0)&&(i=r.getBBox().width,v=null,c-i<x&&1===n?(v=Math.round(i-c+x),k[3]=Math.max(v,k[3])):c+i>w-x&&0===n&&(v=Math.round(c+i-w+x),k[1]=Math.max(v,k[1])),0>d-o/2?k[0]=Math.max(Math.round(o/2-d),k[0]):d+o/2>_&&(k[2]=Math.max(Math.round(d+o/2-_),k[2])),r.sideOverflow=v)}}}),0===A(k)||this.verifyDataLabelOverflow(k))&&(this.placeDataLabels(),this.points.forEach(function(t){var i;m=u(b,t.options.dataLabels),(e=p(m.connectorWidth,1))&&(n=t.connector,(r=t.dataLabel)&&r._pos&&t.visible&&0<t.labelDistance?(f=r._attr.visibility,(i=!n)&&(t.connector=n=O.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(y.dataLabelsGroup),O.styledMode||n.attr({"stroke-width":e,stroke:m.connectorColor||t.color||"#666666"})),n[i?"attr":"animate"]({d:t.getConnectorPath()}),n.attr("visibility",f)):n&&(t.connector=n.destroy()))}))}function r(){this.points.forEach(function(t){var e,n=t.dataLabel;n&&t.visible&&((e=n._pos)?(n.sideOverflow&&(n._attr.width=Math.max(n.getBBox().width-n.sideOverflow,0),n.css({width:n._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),n.shortened=!0),n.attr(n._attr),n[n.moved?"animate":"attr"](e),n.moved=!0):n&&n.attr({y:-9999})),delete t.distributeBox},this)}function i(t){var e=this.center,n=this.options,r=n.center,i=n.minSize||80,s=null!==n.size;if(!s){if(null!==r[0])var o=Math.max(e[2]-Math.max(t[1],t[3]),i);else o=Math.max(e[2]-t[1]-t[3],i),e[0]+=(t[3]-t[1])/2;null!==r[1]?o=c(o,i,e[2]-Math.max(t[0],t[2])):(o=c(o,i,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),o<e[2]?(e[2]=o,e[3]=Math.min(n.thickness?Math.max(0,o-2*n.thickness):Math.max(0,d(n.innerSize||0,o)),o),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):s=!0}return s}var s=[],f={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,n,r){return t.getX(n<e.top+2||n>e.bottom-2?r:n,e.half,e)},justify:function(t,e,n){return n[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,n,r){return t=t.getBBox().width,e?t+r:n-t-r},alignToConnectors:function(t,e,n,r){var i,s=0;return t.forEach(function(t){(i=t.dataLabel.getBBox().width)>s&&(s=i)}),e?s+r:n-s-r}};e.compose=function(e){t.compose(l),-1===s.indexOf(e)&&(s.push(e),(e=e.prototype).dataLabelPositioners=f,e.alignDataLabel=o,e.drawDataLabels=n,e.placeDataLabels=r,e.verifyDataLabelOverflow=i)}}(s||(s={})),s}),e(n,"Extensions/OverlappingDataLabels.js",[n["Core/Chart/Chart.js"],n["Core/Utilities.js"]],function(t,e){function n(t,e){var n=!1;if(t){var r=t.newOpacity;t.oldOpacity!==r&&(t.alignAttr&&t.placed?(t[r?"removeClass":"addClass"]("highcharts-data-label-hidden"),n=!0,t.alignAttr.opacity=r,t[t.isOld?"animate":"attr"](t.alignAttr,null,function(){e.styledMode||t.css({pointerEvents:r?"auto":"none"})}),i(e,"afterHideOverlappingLabel")):t.attr({opacity:r})),t.isOld=!0}return n}var r=e.addEvent,i=e.fireEvent,s=e.isArray,o=e.isNumber,a=e.objectEach,l=e.pick;r(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(r){var i=r.options.dataLabels;r.visible&&(!1!==i.enabled||r._hasPointLabels)&&(i=function(r){return r.forEach(function(r){r.visible&&(s(r.dataLabels)?r.dataLabels:r.dataLabel?[r.dataLabel]:[]).forEach(function(i){var s=i.options;i.labelrank=l(s.labelrank,r.labelrank,r.shapeArgs&&r.shapeArgs.height),s.allowOverlap?(i.oldOpacity=i.opacity,i.newOpacity=1,n(i,t)):e.push(i)})})},i(r.nodes||[]),i(r.points))}),this.hideOverlappingLabels(e)}),t.prototype.hideOverlappingLabels=function(t){var e,r,s,a=this,l=t.length,A=a.renderer,c=!1,h=function(t){var e,n,r=t.box?0:t.padding||0,i=e=0;if(t&&(!t.alignAttr||t.placed)){var s=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=A.fontMetrics(null,t.element).h);var l=t.width-2*r;return(n={left:"0",center:"0.5",right:"1"}[t.alignValue])?i=+n*l:o(t.x)&&Math.round(t.x)!==t.translateX&&(i=t.x-t.translateX),{x:s.x+(a.translateX||0)+r-(i||0),y:s.y+(a.translateY||0)+r-e,width:t.width-2*r,height:t.height-2*r}}};for(r=0;r<l;r++)(e=t[r])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=h(e));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),r=0;r<l;r++){var u=(h=t[r])&&h.absoluteBox;for(e=r+1;e<l;++e){var p=(s=t[e])&&s.absoluteBox;!u||!p||h===s||0===h.newOpacity||0===s.newOpacity||"hidden"===h.visibility||"hidden"===s.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<s.labelrank?h:s).newOpacity=0)}}t.forEach(function(t){n(t,a)&&(c=!0)}),c&&i(a,"afterHideAllOverlappingLabels")}}),e(n,"Core/Responsive.js",[n["Core/Utilities.js"]],function(t){var e,n=t.extend,r=t.find,i=t.isArray,s=t.isObject,o=t.merge,a=t.objectEach,l=t.pick,A=t.splat,c=t.uniqueKey;return function(t){var e=[];t.compose=function(t){return-1===e.indexOf(t)&&(e.push(t),n(t.prototype,h.prototype)),t};var h=function(){function t(){}return t.prototype.currentOptions=function(t){var e=this,n={};return function t(n,r,o,l){var c;a(n,function(n,a){if(!l&&-1<e.collectionsWithUpdate.indexOf(a)&&r[a])for(n=A(n),o[a]=[],c=0;c<Math.max(n.length,r[a].length);c++)r[a][c]&&(void 0===n[c]?o[a][c]=r[a][c]:(o[a][c]={},t(n[c],r[a][c],o[a][c],l+1)));else s(n)?(o[a]=i(n)?[]:{},t(n,r[a]||{},o[a],l+1)):o[a]=void 0===r[a]?null:r[a]})}(t,this.options,n,0),n},t.prototype.matchResponsiveRule=function(t,e){var n=t.condition;(n.callback||function(){return this.chartWidth<=l(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=l(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=l(n.minWidth,0)&&this.chartHeight>=l(n.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var n=this,i=this.options.responsive,s=this.currentResponsive,a=[];!e&&i&&i.rules&&i.rules.forEach(function(t){void 0===t._id&&(t._id=c()),n.matchResponsiveRule(t,a)},this),e=o.apply(void 0,a.map(function(t){return r((i||{}).rules||[],function(e){return e._id===t})}).map(function(t){return t&&t.chartOptions})),e.isResponsiveOptions=!0,(a=a.toString()||void 0)!==(s&&s.ruleIds)&&(s&&this.update(s.undoOptions,t,!0),a?((s=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:a,mergedOptions:e,undoOptions:s},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e}),e(n,"masters/highcharts.src.js",[n["Core/Globals.js"],n["Core/Utilities.js"],n["Core/Defaults.js"],n["Core/Animation/Fx.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/FormatUtilities.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Renderer/HTML/HTMLElement.js"],n["Core/Renderer/HTML/HTMLRenderer.js"],n["Core/Axis/Axis.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Axis/LogarithmicAxis.js"],n["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],n["Core/Axis/Tick.js"],n["Core/Tooltip.js"],n["Core/Series/Point.js"],n["Core/Pointer.js"],n["Core/MSPointer.js"],n["Core/Legend/Legend.js"],n["Core/Chart/Chart.js"],n["Core/Axis/Stacking/StackingAxis.js"],n["Core/Axis/Stacking/StackItem.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Series/Column/ColumnSeries.js"],n["Series/Column/ColumnDataLabel.js"],n["Series/Pie/PieSeries.js"],n["Series/Pie/PieDataLabel.js"],n["Core/Series/DataLabel.js"],n["Core/Responsive.js"],n["Core/Color/Color.js"],n["Core/Time.js"]],function(t,e,n,r,i,s,o,a,l,A,c,h,u,p,d,f,g,m,y,v,O,b,x,w,_,S,C,E,B,T,P,k,I,N,Q){return t.animate=i.animate,t.animObject=i.animObject,t.getDeferredAnimation=i.getDeferredAnimation,t.setAnimation=i.setAnimation,t.stop=i.stop,t.timers=r.timers,t.AST=s,t.Axis=u,t.Chart=x,t.chart=x.chart,t.Fx=r,t.Legend=b,t.PlotLineOrBand=f,t.Point=y,t.Pointer=O.isRequired()?O:v,t.Series=S,t.StackItem=_,t.SVGElement=l,t.SVGRenderer=A,t.Tick=g,t.Time=Q,t.Tooltip=m,t.Color=N,t.color=N.parse,h.compose(A),c.compose(l),t.defaultOptions=n.defaultOptions,t.getOptions=n.getOptions,t.time=n.defaultTime,t.setOptions=n.setOptions,t.dateFormat=o.dateFormat,t.format=o.format,t.numberFormat=o.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=C.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,B.compose(E),k.compose(S),p.compose(u),d.compose(u),P.compose(T),f.compose(u),I.compose(x),w.compose(u,x,S),t}),n["masters/highcharts.src.js"]._modules=n,n["masters/highcharts.src.js"]},t.exports?(s.default=s,t.exports=i.document?s(i):s):void 0===(r=function(){return s(i)}.call(e,n,e,t))||(t.exports=r)},69062(t,e,n){var r,i,s;s=function(t){function e(t,e,n,r){t.hasOwnProperty(e)||(t[e]=r.apply(null,n),"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 n,r=t.parse,i=e.extend,s=e.merge;return function(t){var e={initDataClasses:function(t){var e,n=this.chart,i=0,o=this.options;this.dataClasses=e=[],t.dataClasses.forEach(function(a,l){a=s(a),e.push(a),a.color||("category"===o.dataClassColor?(l=n.options.colors,a.color=l[i++],i===l.length&&(i=0)):a.color=r(o.minColor).tweenTo(r(o.maxColor),l/(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=r(t[1])})},toColor:function(t,e){var n,r=this.stops,i=this.dataClasses;if(i)for(n=i.length;n--;){var s=i[n],o=s.from;if(r=s.to,(void 0===o||t>=o)&&(void 0===r||t<=r)){var a=s.color;e&&(e.dataClass=n);break}}else{for(this.logarithmic&&(t=this.val2lin(t)),t=1-(this.max-t)/(this.max-this.min),n=r.length;n--&&!(t>r[n][0]););o=r[n]||r[n+1],t=1-((r=r[n+1]||o)[0]-t)/(r[0]-o[0]||1),a=o.color.tweenTo(r.color,t)}return a}};t.init=function(t){i(t,e)}}(n||(n={})),n}),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,n,r,i,s){return t=e(t,n,r,i,s),s&&s.rounded&&(r=((s.r||r)-(s.innerR||0))/2,n=t[0],s=t[2],"M"===n[0]&&"L"===s[0]&&(n=["A",r,r,0,1,1,n[1],n[2]],t[2]=["A",r,r,0,1,1,s[1],s[2]],t[4]=n)),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,n,r,i){var s=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=e.seriesTypes,a=o.gauge,l=o.pie.prototype,A=i.clamp,c=i.extend,h=i.isNumber,u=i.merge,p=i.pick,d=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 s(e,t),e.prototype.translate=function(){var t=this.yAxis;n.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,n=e.center,r=this.options,i=this.chart.renderer,s=r.overshoot;s=h(s)?s/180*Math.PI:0,h(r.threshold)&&(t=e.startAngleRad+e.translate(r.threshold,void 0,void 0,void 0,!0)),this.thresholdAngleRad=p(t,e.startAngleRad),t=0;for(var o=this.points;t<o.length;t++){var a=o[t];if(!a.isNull){var l=d(p(a.options.radius,r.radius,100))*n[2]/200,u=d(p(a.options.innerRadius,r.innerRadius,60))*n[2]/200,f=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=A(y,f-s,g+s),!1===r.wrap&&(y=A(y,f,g)),f=Math.min(y,this.thresholdAngleRad),(y=Math.max(y,this.thresholdAngleRad))-f>2*Math.PI&&(y=f+2*Math.PI),a.shapeArgs=u={x:n[0],y:n[1],r:l,innerR:u,start:f,end:y,rounded:r.rounded},a.startR=l,m?(l=u.d,m.animate(c({fill:v},u)),l&&(u.d=l)):a.graphic=m=i.arc(u).attr({fill:v,"sweep-flag":0}).add(this.group),this.chart.styledMode||("square"!==r.linecap&&m.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),m.attr({stroke:r.borderColor||"none","stroke-width":r.borderWidth||0})),m&&m.addClass(a.getClassName(),!0)}}},e.prototype.animate=function(t){t||(this.startAngleRad=this.thresholdAngleRad,l.animate.call(this,t))},e.defaultOptions=u(a.defaultOptions,r),e}(a),c(i.prototype,{drawLegendSymbol:t.drawRectangle}),e.registerSeriesType("solidgauge",i),i}),e(t,"masters/modules/solid-gauge.src.js",[],function(){})},t.exports?(s.default=s,t.exports=s):(r=[n(43663),n(29132)],void 0===(i=function(t){return s(t),s.Highcharts=t,s}.apply(e,r))||(t.exports=i))},52519(t,e,n){"use strict";var r=n(61631),i=n(94209),s=n(35578);function o(t){if(!(this instanceof o))return new o(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"),n=i.toArray(t.nonce,t.nonceEnc||"hex"),r=i.toArray(t.pers,t.persEnc||"hex");s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}t.exports=o,o.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);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(r),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},o.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())},o.prototype.reseed=function(t,e,n,r){"string"!=typeof e&&(r=n,n=e,e=null),t=i.toArray(t,e),n=i.toArray(n,r),s(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},o.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var s=[];s.length<t;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);var o=s.slice(0,t);return this._update(n),this._reseed++,i.encode(o,e)}},4674(t,e,n){"use strict";var r=n(17020),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(t){return r.isMemo(t)?o:a[t.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=o;var A=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(d){var i=p(n);i&&i!==d&&t(e,i,r)}var o=c(n);h&&(o=o.concat(h(n)));for(var a=l(e),f=l(n),g=0;g<o.length;++g){var m=o[g];if(!(s[m]||r&&r[m]||f&&f[m]||a&&a[m])){var y=u(n,m);try{A(e,m,y)}catch(t){}}}}return e}},20743(t,e,n){var r;!function(){var i=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n])v(e,r)&&(t[r]=e[r]);return t},s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=c(["χρόνος","χρόνια"],["μήνας","μήνες"],["εβδομάδα","εβδομάδες"],["μέρα","μέρες"],["ώρα","ώρες"],["λεπτό","λεπτά"],["δευτερόλεπτο","δευτερόλεπτα"],["χιλιοστό του δευτερολέπτου","χιλιοστά του δευτερολέπτου"],","),a={af:c(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:l("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:i(l(function(t){return["سنة","سنتان","سنوات"][d(t)]},function(t){return["شهر","شهران","أشهر"][d(t)]},function(t){return["أسبوع","أسبوعين","أسابيع"][d(t)]},function(t){return["يوم","يومين","أيام"][d(t)]},function(t){return["ساعة","ساعتين","ساعات"][d(t)]},function(t){return["دقيقة","دقيقتان","دقائق"][d(t)]},function(t){return["ثانية","ثانيتان","ثواني"][d(t)]},function(t){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][d(t)]},","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:p(["години","година","години"],["месеца","месец","месеца"],["седмици","седмица","седмици"],["дни","ден","дни"],["часа","час","часа"],["минути","минута","минути"],["секунди","секунда","секунди"],["милисекунди","милисекунда","милисекунди"]),bn:l("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:c(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:l("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:l(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:l("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:o,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:l("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:l("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),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:l(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:o,he:c(["שנה","שנים"],["חודש","חודשים"],["שבוע","שבועות"],["יום","ימים"],["שעה","שעות"],["דקה","דקות"],["שניה","שניות"],["מילישנייה","מילישניות"]),hr:l(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"},A(["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:l("साल",A(["महीना","महीने"]),A(["हफ़्ता","हफ्ते"]),"दिन",A(["घंटा","घंटे"]),"मिनट","सेकंड","मिलीसेकंड"),hu:l("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:l("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:l("年","ヶ月","週間","日","時間","分","秒","ミリ秒"),km:l("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:c(["ವರ್ಷ","ವರ್ಷಗಳು"],["ತಿಂಗಳು","ತಿಂಗಳುಗಳು"],["ವಾರ","ವಾರಗಳು"],["ದಿನ","ದಿನಗಳು"],["ಗಂಟೆ","ಗಂಟೆಗಳು"],["ನಿಮಿಷ","ನಿಮಿಷಗಳು"],["ಸೆಕೆಂಡ್","ಸೆಕೆಂಡುಗಳು"],["ಮಿಲಿಸೆಕೆಂಡ್","ಮಿಲಿಸೆಕೆಂಡುಗಳು"]),ko:l("년","개월","주일","일","시간","분","초","밀리 초"),ku:l("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:l("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:l(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:l(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:l("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:l(A(["वर्ष","वर्षे"]),A(["महिना","महिने"]),A(["आठवडा","आठवडे"]),"दिवस","तास",A(["मिनिट","मिनिटे"]),"सेकंद","मिलिसेकंद"),ms:l("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:l(function(t){return["rok","roku","lata","lat"][f(t)]},function(t){return["miesiąc","miesiąca","miesiące","miesięcy"][f(t)]},function(t){return["tydzień","tygodnia","tygodnie","tygodni"][f(t)]},function(t){return["dzień","dnia","dni","dni"][f(t)]},function(t){return["godzina","godziny","godziny","godzin"][f(t)]},function(t){return["minuta","minuty","minuty","minut"][f(t)]},function(t){return["sekunda","sekundy","sekundy","sekund"][f(t)]},function(t){return["milisekunda","milisekundy","milisekundy","milisekund"][f(t)]},","),pt:c(["ano","anos"],["mês","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:l(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:l(A(["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:l("سال",A(["مہینہ","مہینے"]),A(["ہفتہ","ہفتے"]),"دن",A(["گھنٹہ","گھنٹے"]),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:l(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:l(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:l("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:l("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:l("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:l("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:l("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:l("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:l("年","個月","周","天","小時","分鐘","秒","毫秒")};function l(t,e,n,r,i,s,o,a,l){var A={y:t,mo:e,w:n,d:r,h:i,m:s,s:o,ms:a};return l&&(A.decimal=l),A}function A(t){return function(e){return 1===e?t[0]:t[1]}}function c(t,e,n,r,i,s,o,a,c){return l(A(t),A(e),A(n),A(r),A(i),A(s),A(o),A(a),c)}function h(t,e,n){return function(r){if(1===r)return t;if(Math.floor(r)!==r||0===r)return e;var i=r%100;return i>=1&&i<=19?e:n}}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,n,r,i,s,o,a){return l(u(t),u(e),u(n),u(r),u(i),u(s),u(o),u(a),",")}function d(t){return 2===t?1:t>2&&t<11?2:0}function f(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 O(t,e,n){var r,i,s,o=t.unitName,a=t.unitCount,l=n.spacer,A=n.maxDecimalPoints;r=v(n,"decimal")?n.decimal:v(e,"decimal")?e.decimal:".","digitReplacements"in n?i=n.digitReplacements:"_digitReplacements"in e&&(i=e._digitReplacements);var c=(void 0===A?a:Math.floor(a*Math.pow(10,A))/Math.pow(10,A)).toString();if(e._hideCountIf2&&2===a)s="",l="";else if(i){s="";for(var h=0;h<c.length;h++){var u=c[h];s+="."===u?r:i[u]}}else s=c.replace(".",r);var p,d=e[o];return p="function"==typeof d?d(a):d,e._numberFirst?p+l+s:s+l+p}function b(t){var e=function(t,n){t=Math.abs(t);var r=i({},e,n||{}),o=function(t,e){var n,r,i,s,o=e.units,a=e.unitMeasures,l="largest"in e?e.largest:1/0;if(!o.length)return[];var A={};for(s=t,r=0;r<o.length;r++){var c=a[n=o[r]];i=r===o.length-1?s/c:Math.floor(s/c),A[n]=i,s-=i*c}if(e.round){var h=l;for(r=0;r<o.length;r++)if(0!==(i=A[n=o[r]])&&0===--h){for(var u=r+1;u<o.length;u++){var p=o[u],d=A[p];A[n]+=d*a[p]/a[n],A[p]=0}break}for(r=o.length-1;r>=0;r--)if(0!==(i=A[n=o[r]])){var f=Math.round(i);if(A[n]=f,0===r)break;var g=o[r-1],m=a[g],y=Math.floor(f*a[n]/m);if(!y)break;A[g]+=y,A[n]=0}}var v=[];for(r=0;r<o.length&&v.length<l;r++)(i=A[n=o[r]])&&v.push({unitName:n,unitCount:i});return v}(t,r);return function(t,e){var n=function(t){var e=[t.language];if(v(t,"fallbacks")){if(!s(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 n=0;n<e.length;n++){var r=e[n];if(v(t.languages,r))return t.languages[r];if(v(a,r))return a[r]}throw new Error("No language found.")}(e);if(!t.length){var r=e.units;return O({unitName:r[r.length-1],unitCount:0},n,e)}var i,o=e.conjunction,l=e.serialComma;i=v(e,"delimiter")?e.delimiter:v(n,"delimiter")?n.delimiter:", ";for(var A=[],c=0;c<t.length;c++)A.push(O(t[c],n,e));return o&&1!==t.length?2===t.length?A.join(o):A.slice(0,-1).join(i)+(l?",":"")+o+A.slice(-1):A.join(i)}(o,r)};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(b({}),{getSupportedLanguages:function(){var t=[];for(var e in a)v(a,e)&&"gr"!==e&&t.push(e);return t},humanizer:b});void 0===(r=function(){return x}.call(e,n,e,t))||(t.exports=r)}()},63328(t,e){e.read=function(t,e,n,r,i){var s,o,a=8*i-r-1,l=(1<<a)-1,A=l>>1,c=-7,h=n?i-1:0,u=n?-1:1,p=t[e+h];for(h+=u,s=p&(1<<-c)-1,p>>=-c,c+=a;c>0;s=256*s+t[e+h],h+=u,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=r;c>0;o=256*o+t[e+h],h+=u,c-=8);if(0===s)s=1-A;else{if(s===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),s-=A}return(p?-1:1)*o*Math.pow(2,s-r)},e.write=function(t,e,n,r,i,s){var o,a,l,A=8*s-i-1,c=(1<<A)-1,h=c>>1,u=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:s-1,d=r?1:-1,f=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+h>=1?u/l:u*Math.pow(2,1-h))*l>=2&&(o++,l/=2),o+h>=c?(a=0,o=c):o+h>=1?(a=(e*l-1)*Math.pow(2,i),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(o=o<<i|a,A+=i;A>0;t[n+p]=255&o,p+=d,o/=256,A-=8);t[n+p-d]|=128*f}},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 n=function(){};n.prototype=e.prototype,t.prototype=new n,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 n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},36488(t){var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,A="";function c(t){return t?t.replace(l,A):A}t.exports=function(t,l){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];l=l||{};var h=1,u=1;function p(t){var e=t.match(n);e&&(h+=e.length);var r=t.lastIndexOf("\n");u=~r?t.length-r:u+t.length}function d(){var t={line:h,column:u};return function(e){return e.position=new f(t),v(),e}}function f(t){this.start=t,this.end={line:h,column:u},this.source=l.source}f.prototype.content=t;var g=[];function m(e){var n=new Error(l.source+":"+h+":"+u+": "+e);if(n.reason=e,n.filename=l.source,n.line=h,n.column=u,n.source=t,!l.silent)throw n;g.push(n)}function y(e){var n=e.exec(t);if(n){var r=n[0];return p(r),t=t.slice(r.length),n}}function v(){y(r)}function O(t){var e;for(t=t||[];e=b();)!1!==e&&t.push(e);return t}function b(){var e=d();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;A!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,A===t.charAt(n-1))return m("End of comment missing");var r=t.slice(2,n-2);return u+=2,p(r),t=t.slice(n),u+=2,e({type:"comment",comment:r})}}function x(){var t=d(),n=y(i);if(n){if(b(),!y(s))return m("property missing ':'");var r=y(o),l=t({type:"declaration",property:c(n[0].replace(e,A)),value:r?c(r[0].replace(e,A)):A});return y(a),l}}return v(),function(){var t,e=[];for(O(e);t=x();)!1!==t&&(e.push(t),O(e));return e}()}},83176(t){"use strict";var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,A="";function c(t){return t?t.replace(l,A):A}t.exports=function(t,l){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];l=l||{};var h=1,u=1;function p(t){var e=t.match(n);e&&(h+=e.length);var r=t.lastIndexOf("\n");u=~r?t.length-r:u+t.length}function d(){var t={line:h,column:u};return function(e){return e.position=new f(t),y(),e}}function f(t){this.start=t,this.end={line:h,column:u},this.source=l.source}function g(e){var n=new Error(l.source+":"+h+":"+u+": "+e);if(n.reason=e,n.filename=l.source,n.line=h,n.column=u,n.source=t,!l.silent)throw n}function m(e){var n=e.exec(t);if(n){var r=n[0];return p(r),t=t.slice(r.length),n}}function y(){m(r)}function v(t){var e;for(t=t||[];e=O();)!1!==e&&t.push(e);return t}function O(){var e=d();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;A!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,A===t.charAt(n-1))return g("End of comment missing");var r=t.slice(2,n-2);return u+=2,p(r),t=t.slice(n),u+=2,e({type:"comment",comment:r})}}function b(){var t=d(),n=m(i);if(n){if(O(),!m(s))return g("property missing ':'");var r=m(o),l=t({type:"declaration",property:c(n[0].replace(e,A)),value:r?c(r[0].replace(e,A)):A});return m(a),l}}return f.prototype.content=t,y(),function(){var t,e=[];for(v(e);t=b();)!1!==t&&(e.push(t),v(e));return e}()}},81133(t,e,n){"use strict";n.r(e),n.d(e,{ErrorCode:()=>r,FormatError:()=>l,IntlMessageFormat:()=>f,InvalidValueError:()=>A,InvalidValueTypeError:()=>c,MissingValueError:()=>h,PART_TYPE:()=>a,default:()=>g,formatToParts:()=>p,isFormatXMLElementFn:()=>u});var r,i=n(65959),s=n(9991),o=n(78582);!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(r||(r={}));var a,l=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.code=n,i.originalMessage=r,i}return(0,i.__extends)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),A=function(t){function e(e,n,i,s){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),r.INVALID_VALUE,s)||this}return(0,i.__extends)(e,t),e}(l),c=function(t){function e(e,n,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(n),r.INVALID_VALUE,i)||this}return(0,i.__extends)(e,t),e}(l),h=function(t){function e(e,n){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(n,'"'),r.MISSING_VALUE,n)||this}return(0,i.__extends)(e,t),e}(l);function u(t){return"function"==typeof t}function p(t,e,n,i,s,d,f){if(1===t.length&&(0,o.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,o.eW)(v))g.push({type:a.literal,value:v.value});else if((0,o.jA)(v))"number"==typeof d&&g.push({type:a.literal,value:n.getNumberFormat(e).format(d)});else{var O=v.value;if(!s||!(O in s))throw new h(O,f);var b=s[O];if((0,o.Im)(v))b&&"string"!=typeof b&&"number"!=typeof b||(b="string"==typeof b||"number"==typeof b?String(b):""),g.push({type:"string"==typeof b?a.literal:a.object,value:b});else if((0,o.tv)(v)){var x="string"==typeof v.style?i.date[v.style]:(0,o.Tu)(v.style)?v.style.parsedOptions:void 0;g.push({type:a.literal,value:n.getDateTimeFormat(e,x).format(b)})}else if((0,o.Qh)(v))x="string"==typeof v.style?i.time[v.style]:(0,o.Tu)(v.style)?v.style.parsedOptions:i.time.medium,g.push({type:a.literal,value:n.getDateTimeFormat(e,x).format(b)});else if((0,o.oF)(v))(x="string"==typeof v.style?i.number[v.style]:(0,o.N1)(v.style)?v.style.parsedOptions:void 0)&&x.scale&&(b*=x.scale||1),g.push({type:a.literal,value:n.getNumberFormat(e,x).format(b)});else{if((0,o.xm)(v)){var w=v.children,_=v.value,S=s[_];if(!u(S))throw new c(_,"function",f);var C=S(p(w,e,n,i,s,d).map(function(t){return t.value}));Array.isArray(C)||(C=[C]),g.push.apply(g,C.map(function(t){return{type:"string"==typeof t?a.literal:a.object,value:t}}))}if((0,o.Jp)(v)){if(!(E=v.options[b]||v.options.other))throw new A(v.value,b,Object.keys(v.options),f);g.push.apply(g,p(E.value,e,n,i,s))}else if((0,o.N6)(v)){var E;if(!(E=v.options["=".concat(b)])){if(!Intl.PluralRules)throw new l('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',r.MISSING_INTL_API,f);var B=n.getPluralRules(e,{type:v.pluralType}).select(b-(v.offset||0));E=v.options[B]||v.options.other}if(!E)throw new A(v.value,b,Object.keys(v.options),f);g.push.apply(g,p(E.value,e,n,i,s,b-(v.offset||0)))}}}}return(T=g).length<2?T:T.reduce(function(t,e){var n=t[t.length-1];return n&&n.type===a.literal&&e.type===a.literal?n.value+=e.value:t.push(e),t},[]);var T}function d(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(a||(a={}));var f=function(){function t(e,n,r,o){void 0===n&&(n=t.defaultLocale);var l,A,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 n=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 n.length<=1?n[0]||"":n},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=n,this.resolvedLocale=t.resolveLocale(n),"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=o||{},f=(u.formatters,(0,i.__rest)(u,["formatters"]));this.ast=t.__parse(e,(0,i.__assign)((0,i.__assign)({},f),{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=(A=t.formats,(c=r)?Object.keys(A).reduce(function(t,e){var n,r;return t[e]=(n=A[e],(r=c[e])?(0,i.__assign)((0,i.__assign)((0,i.__assign)({},n||{}),r||{}),Object.keys(n).reduce(function(t,e){return t[e]=(0,i.__assign)((0,i.__assign)({},n[e]),r[e]||{}),t},{})):n),t},(0,i.__assign)({},A)):A),this.formatters=o&&o.formatters||(void 0===(l=this.formatterCache)&&(l={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,s.B)(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,(0,i.__spreadArray)([void 0],e,!1)))},{cache:d(l.number),strategy:s.W.variadic}),getDateTimeFormat:(0,s.B)(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,(0,i.__spreadArray)([void 0],e,!1)))},{cache:d(l.dateTime),strategy:s.W.variadic}),getPluralRules:(0,s.B)(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,(0,i.__spreadArray)([void 0],e,!1)))},{cache:d(l.pluralRules),strategy:s.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=o.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=f},92859(t,e,n){"use strict";n.d(e,{S:()=>l});var r=n(65959),i=n(26140),s=n(59556),o=n(23231);function a(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}var l=function(){function t(e,n,i,l){var A,c,h,u=this;if(void 0===n&&(n=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 n=e.reduce(function(t,e){return t.length&&e.type===o.TT.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return(0,o.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=n,this.resolvedLocale=t.resolveLocale(n),"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==l?void 0:l.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 n,i;return t[e]=(n=c[e],(i=h[e])?(0,r.__assign)((0,r.__assign)((0,r.__assign)({},n||{}),i||{}),Object.keys(n).reduce(function(t,e){return t[e]=(0,r.__assign)((0,r.__assign)({},n[e]),i[e]||{}),t},{})):n),t},(0,r.__assign)({},c)):c),this.formatters=l&&l.formatters||(void 0===(A=this.formatterCache)&&(A={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,s.A)(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,(0,r.__spreadArray)([void 0],e,!1)))},{cache:a(A.number),strategy:s.W.variadic}),getDateTimeFormat:(0,s.A)(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,(0,r.__spreadArray)([void 0],e,!1)))},{cache:a(A.dateTime),strategy:s.W.variadic}),getPluralRules:(0,s.A)(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,(0,r.__spreadArray)([void 0],e,!1)))},{cache:a(A.pluralRules),strategy:s.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,n){"use strict";n.d(e,{$x:()=>o,Ei:()=>l,IF:()=>s,O4:()=>r,Zo:()=>a});var r,i=n(65959);!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(r||(r={}));var s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.code=n,i.originalMessage=r,i}return(0,i.__extends)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),o=function(t){function e(e,n,i,s){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),r.INVALID_VALUE,s)||this}return(0,i.__extends)(e,t),e}(s),a=function(t){function e(e,n,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(n),r.INVALID_VALUE,i)||this}return(0,i.__extends)(e,t),e}(s),l=function(t){function e(e,n){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(n,'"'),r.MISSING_VALUE,n)||this}return(0,i.__extends)(e,t),e}(s)},23231(t,e,n){"use strict";n.d(e,{RK:()=>o,TT:()=>r,hN:()=>a});var r,i=n(26140),s=n(660);function o(t){return"function"==typeof t}function a(t,e,n,l,A,c,h){if(1===t.length&&(0,i.eW)(t[0]))return[{type:r.literal,value:t[0].value}];for(var u=[],p=0,d=t;p<d.length;p++){var f=d[p];if((0,i.eW)(f))u.push({type:r.literal,value:f.value});else if((0,i.jA)(f))"number"==typeof c&&u.push({type:r.literal,value:n.getNumberFormat(e).format(c)});else{var g=f.value;if(!A||!(g in A))throw new s.Ei(g,h);var m=A[g];if((0,i.Im)(f))m&&"string"!=typeof m&&"number"!=typeof m||(m="string"==typeof m||"number"==typeof m?String(m):""),u.push({type:"string"==typeof m?r.literal:r.object,value:m});else if((0,i.tv)(f)){var y="string"==typeof f.style?l.date[f.style]:(0,i.Tu)(f.style)?f.style.parsedOptions:void 0;u.push({type:r.literal,value:n.getDateTimeFormat(e,y).format(m)})}else if((0,i.Qh)(f))y="string"==typeof f.style?l.time[f.style]:(0,i.Tu)(f.style)?f.style.parsedOptions:l.time.medium,u.push({type:r.literal,value:n.getDateTimeFormat(e,y).format(m)});else if((0,i.oF)(f))(y="string"==typeof f.style?l.number[f.style]:(0,i.N1)(f.style)?f.style.parsedOptions:void 0)&&y.scale&&(m*=y.scale||1),u.push({type:r.literal,value:n.getNumberFormat(e,y).format(m)});else{if((0,i.xm)(f)){var v=f.children,O=f.value,b=A[O];if(!o(b))throw new s.Zo(O,"function",h);var x=b(a(v,e,n,l,A,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?r.literal:r.object,value:t}}))}if((0,i.Jp)(f)){if(!(w=f.options[m]||f.options.other))throw new s.$x(f.value,m,Object.keys(f.options),h);u.push.apply(u,a(w.value,e,n,l,A))}else if((0,i.N6)(f)){var w;if(!(w=f.options["=".concat(m)])){if(!Intl.PluralRules)throw new s.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',s.O4.MISSING_INTL_API,h);var _=n.getPluralRules(e,{type:f.pluralType}).select(m-(f.offset||0));w=f.options[_]||f.options.other}if(!w)throw new s.$x(f.value,m,Object.keys(f.options),h);u.push.apply(u,a(w.value,e,n,l,A,m-(f.offset||0)))}}}}return(S=u).length<2?S:S.reduce(function(t,e){var n=t[t.length-1];return n&&n.type===r.literal&&e.type===r.literal?n.value+=e.value:t.push(e),t},[]);var S}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(r||(r={}))},84708(t,e,n){"use strict";function r(t,e="utf8"){return new TextDecoder(e).decode(t)}n.d(e,{H:()=>a});const i=new TextEncoder,s=(()=>{const t=new Uint8Array(4);return!((new Uint32Array(t.buffer)[0]=1)&t[0])})(),o={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 n=!1;"number"==typeof t?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const r=e.offset?e.offset>>>0:0,i=t.byteLength-r;let s=r;(ArrayBuffer.isView(t)||t instanceof a)&&(t.byteLength!==t.buffer.byteLength&&(s=t.byteOffset+r),t=t.buffer),this.lastWrittenByte=n?i:0,this.buffer=t,this.length=i,this.byteLength=i,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,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),n=new Uint8Array(e);n.set(new Uint8Array(this.buffer)),this.buffer=n.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 n=o[e].BYTES_PER_ELEMENT*t,r=this.byteOffset+this.offset,i=this.buffer.slice(r,r+n);if(this.littleEndian===s&&"uint8"!==e&&"int8"!==e){const t=new Uint8Array(this.buffer.slice(r,r+n));t.reverse();const i=new o[e](t.buffer);return this.offset+=n,i.reverse(),i}const a=new o[e](i);return this.offset+=n,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 n=0;n<t;n++)e+=this.readChar();return e}readUtf8(t=1){return r(this.readBytes(t))}decodeText(t=1,e="utf8"){return r(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)}}},21815(t){t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},22956(t){"use strict";var e,n,r=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 n}}),n={},i(function(){throw 42},null,e)}catch(t){t!==n&&(i=null)}else i=null;var s=/^\s*class\b/,o=function(t){try{var e=r.call(t);return s.test(e)}catch(t){return!1}},a=function(t){try{return!o(t)&&(r.call(t),!0)}catch(t){return!1}},l=Object.prototype.toString,A="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var u=document.all;l.call(u)===l.call(document.all)&&(h=function(t){if((c||!t)&&(void 0===t||"object"==typeof t))try{var e=l.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!==n)return!1}return!o(t)&&a(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(A)return a(t);if(o(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},72856(t){"use strict";t.exports=t=>{const e=typeof t;return null!==t&&("object"===e||"function"===e)}},40006(t,e,n){"use strict";var r=n(36496);t.exports=function(t){return!!r(t)}},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,n){n(49047),t.exports=self.fetch.bind(self)},40061(t,e,n){t.exports=self.fetch||(self.fetch=n(3866).default||n(3866))},97351(t,e,n){var r,i,s;s=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function i(){}function s(e,n,s){if("undefined"!=typeof document){"number"==typeof(s=t({path:"/"},i.defaults,s)).expires&&(s.expires=new Date(1*new Date+864e5*s.expires)),s.expires=s.expires?s.expires.toUTCString():"";try{var o=JSON.stringify(n);/^[\{\[]/.test(o)&&(n=o)}catch(t){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).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 l in s)s[l]&&(a+="; "+l,!0!==s[l]&&(a+="="+s[l].split(";")[0]));return document.cookie=e+"="+n+a}}function o(t,n){if("undefined"!=typeof document){for(var i={},s=document.cookie?document.cookie.split("; "):[],o=0;o<s.length;o++){var a=s[o].split("="),l=a.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var A=e(a[0]);if(l=(r.read||r)(l,A)||e(l),n)try{l=JSON.parse(l)}catch(t){}if(i[A]=l,t===A)break}catch(t){}}return t?i[t]:i}}return i.set=s,i.get=function(t){return o(t,!1)},i.getJSON=function(t){return o(t,!0)},i.remove=function(e,n){s(e,"",t(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}(function(){})},void 0===(i="function"==typeof(r=s)?r.call(e,n,e,t):r)||(t.exports=i),t.exports=s()},6134(t){t.exports=function(t,e,n,r){var i=new Blob(void 0!==r?[r,t]:[t],{type:n||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(i,e);else{var s=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),o=document.createElement("a");o.style.display="none",o.href=s,o.setAttribute("download",e),void 0===o.download&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(function(){document.body.removeChild(o),window.URL.revokeObjectURL(s)},200)}}},50205(t){"use strict";var e=t.exports=function(t,e,r){"function"==typeof e&&(r=e,e={}),n(e,"function"==typeof(r=e.cb||r)?r:r.pre||function(){},r.post||function(){},t,"",t)};function n(t,i,s,o,a,l,A,c,h,u){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var p in i(o,a,l,A,c,h,u),o){var d=o[p];if(Array.isArray(d)){if(p in e.arrayKeywords)for(var f=0;f<d.length;f++)n(t,i,s,d[f],a+"/"+p+"/"+f,l,a,p,o,f)}else if(p in e.propsKeywords){if(d&&"object"==typeof d)for(var g in d)n(t,i,s,d[g],a+"/"+p+"/"+r(g),l,a,p,o,g)}else(p in e.keywords||t.allKeys&&!(p in e.skipKeywords))&&n(t,i,s,d,a+"/"+p,l,a,p,o)}s(o,a,l,A,c,h,u)}}function r(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},51148(t,e,n){var r=n(1047),i=function(t){var e="",n=Object.keys(t);return n.forEach(function(i,s){var o=t[i];(function(t){return/[height|width]$/.test(t)})(i=r(i))&&"number"==typeof o&&(o+="px"),e+=!0===o?i:!1===o?"not "+i:"("+i+": "+o+")",s<n.length-1&&(e+=" and ")}),e};t.exports=function(t){var e="";return"string"==typeof t?t:t instanceof Array?(t.forEach(function(n,r){e+=i(n),r<t.length-1&&(e+=", ")}),e):i(t)}},30583(t,e,n){"use strict";n.d(e,{Ay:()=>U});var r=n(97408),i=n(32016),s=n(72743),o=n(53039),a=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this}();function l(){a.console&&"function"==typeof a.console.log&&a.console.log.apply(a.console,arguments)}var A={log:l,warn:function(t){a.console&&("function"==typeof a.console.warn?a.console.warn.apply(a.console,arguments):l.call(null,arguments))},error:function(t){a.console&&("function"==typeof a.console.error?a.console.error.apply(a.console,arguments):l(t))}};function c(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){p(r.response,e,n)},r.onerror=function(){A.error("could not download file")},r.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(n){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,r.A)(window))||window!==a?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=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,n):u(i,i.target="_blank"):u(i)):(i.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){u(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(h(t))c(t,e,n);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,r.A)(e)&&(A.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,n),e)}:function(t,e,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return c(t,e,n);var s="application/octet-stream"===t.type,o=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&o)&&"object"===("undefined"==typeof FileReader?"undefined":(0,r.A)(FileReader))){var A=new FileReader;A.onloadend=function(){var t=A.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},A.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 d(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 n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(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)]}}],r=0;r<n.length;r++){var i=n[r].re,s=n[r].process,o=i.exec(t);o&&(e=s(o),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),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}var f=a.atob.bind(a),g=a.btoa.bind(a);function m(t,e){var n=t[0],r=t[1],i=t[2],s=t[3];n=v(n,r,i,s,e[0],7,-680876936),s=v(s,n,r,i,e[1],12,-389564586),i=v(i,s,n,r,e[2],17,606105819),r=v(r,i,s,n,e[3],22,-1044525330),n=v(n,r,i,s,e[4],7,-176418897),s=v(s,n,r,i,e[5],12,1200080426),i=v(i,s,n,r,e[6],17,-1473231341),r=v(r,i,s,n,e[7],22,-45705983),n=v(n,r,i,s,e[8],7,1770035416),s=v(s,n,r,i,e[9],12,-1958414417),i=v(i,s,n,r,e[10],17,-42063),r=v(r,i,s,n,e[11],22,-1990404162),n=v(n,r,i,s,e[12],7,1804603682),s=v(s,n,r,i,e[13],12,-40341101),i=v(i,s,n,r,e[14],17,-1502002290),n=O(n,r=v(r,i,s,n,e[15],22,1236535329),i,s,e[1],5,-165796510),s=O(s,n,r,i,e[6],9,-1069501632),i=O(i,s,n,r,e[11],14,643717713),r=O(r,i,s,n,e[0],20,-373897302),n=O(n,r,i,s,e[5],5,-701558691),s=O(s,n,r,i,e[10],9,38016083),i=O(i,s,n,r,e[15],14,-660478335),r=O(r,i,s,n,e[4],20,-405537848),n=O(n,r,i,s,e[9],5,568446438),s=O(s,n,r,i,e[14],9,-1019803690),i=O(i,s,n,r,e[3],14,-187363961),r=O(r,i,s,n,e[8],20,1163531501),n=O(n,r,i,s,e[13],5,-1444681467),s=O(s,n,r,i,e[2],9,-51403784),i=O(i,s,n,r,e[7],14,1735328473),n=b(n,r=O(r,i,s,n,e[12],20,-1926607734),i,s,e[5],4,-378558),s=b(s,n,r,i,e[8],11,-2022574463),i=b(i,s,n,r,e[11],16,1839030562),r=b(r,i,s,n,e[14],23,-35309556),n=b(n,r,i,s,e[1],4,-1530992060),s=b(s,n,r,i,e[4],11,1272893353),i=b(i,s,n,r,e[7],16,-155497632),r=b(r,i,s,n,e[10],23,-1094730640),n=b(n,r,i,s,e[13],4,681279174),s=b(s,n,r,i,e[0],11,-358537222),i=b(i,s,n,r,e[3],16,-722521979),r=b(r,i,s,n,e[6],23,76029189),n=b(n,r,i,s,e[9],4,-640364487),s=b(s,n,r,i,e[12],11,-421815835),i=b(i,s,n,r,e[15],16,530742520),n=x(n,r=b(r,i,s,n,e[2],23,-995338651),i,s,e[0],6,-198630844),s=x(s,n,r,i,e[7],10,1126891415),i=x(i,s,n,r,e[14],15,-1416354905),r=x(r,i,s,n,e[5],21,-57434055),n=x(n,r,i,s,e[12],6,1700485571),s=x(s,n,r,i,e[3],10,-1894986606),i=x(i,s,n,r,e[10],15,-1051523),r=x(r,i,s,n,e[1],21,-2054922799),n=x(n,r,i,s,e[8],6,1873313359),s=x(s,n,r,i,e[15],10,-30611744),i=x(i,s,n,r,e[6],15,-1560198380),r=x(r,i,s,n,e[13],21,1309151649),n=x(n,r,i,s,e[4],6,-145523070),s=x(s,n,r,i,e[11],10,-1120210379),i=x(i,s,n,r,e[2],15,718787259),r=x(r,i,s,n,e[9],21,-343485551),t[0]=P(n,t[0]),t[1]=P(r,t[1]),t[2]=P(i,t[2]),t[3]=P(s,t[3])}function y(t,e,n,r,i,s){return e=P(P(e,t),P(r,s)),P(e<<i|e>>>32-i,n)}function v(t,e,n,r,i,s,o){return y(e&n|~e&r,t,e,i,s,o)}function O(t,e,n,r,i,s,o){return y(e&r|n&~r,t,e,i,s,o)}function b(t,e,n,r,i,s,o){return y(e^n^r,t,e,i,s,o)}function x(t,e,n,r,i,s,o){return y(n^(e|~r),t,e,i,s,o)}function w(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)m(r,_(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(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,m(r,i),r}function _(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}var S="0123456789abcdef".split("");function C(t){for(var e="",n=0;n<4;n++)e+=S[t>>8*n+4&15]+S[t>>8*n&15];return e}function E(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function B(t){return w(t).map(E).join("")}var T="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=C(t[e]);return t.join("")}(w("hello"));function P(t,e){if(T){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function k(t,e){var n,r,i,s;if(t!==n){for(var o=(i=t,s=1+(256/t.length|0),new Array(s+1).join(i)),a=[],l=0;l<256;l++)a[l]=l;var A=0;for(l=0;l<256;l++){var c=a[l];A=(A+c+o.charCodeAt(l))%256,a[l]=a[A],a[A]=c}n=t,r=a}else a=r;var h=e.length,u=0,p=0,d="";for(l=0;l<h;l++)p=(p+(c=a[u=(u+1)%256]))%256,a[u]=a[p],a[p]=c,o=a[(a[u]+a[p])%256],d+=String.fromCharCode(e.charCodeAt(l)^o);return d}var I={print:4,modify:8,copy:16,"annot-forms":32};function N(t,e,n,r){this.v=1,this.r=2;var i=192;t.forEach(function(t){if(void 0!==I.perm)throw new Error("Invalid permission: "+t);i+=I[t]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var s=(e+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,o),this.P=-(1+(255^i)),this.encryptionKey=B(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=k(this.encryptionKey,this.padding)}function Q(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r<n;r++){var i=t.charCodeAt(r);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[r]}return e}function F(t){if("object"!==(0,r.A)(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)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]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var s in e[n]){var o=e[n][s];try{o[0].apply(t,r)}catch(t){a.console&&A.error("jsPDF PubSub Error",t.message,t)}o[1]&&i.push(s)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function L(t){if(!(this instanceof L))return new L(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function M(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function D(t,e,n,r,i){if(!(this instanceof D))return new D(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,M.call(this,r,i)}function R(t,e,n,r,i){if(!(this instanceof R))return new R(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,M.call(this,r,i)}function U(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],s=arguments[2],o=arguments[3],l=[],c=1,h=16,u="S",f=null;"object"===(0,r.A)(t=t||{})&&(n=t.orientation,i=t.unit||i,s=t.format||s,o=t.compress||t.compressPdf||o,null!==(f=t.encryption||null)&&(f.userPassword=f.userPassword||"",f.ownerPassword=f.ownerPassword||"",f.userPermissions=f.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"),l=t.filters||(!0===o?["FlateEncode"]:l),i=i||"mm",n=(""+(n||"P")).toLowerCase();var m=t.putOnlyUsedFonts||!1,y={},v={internal:{},__private__:{}};v.__private__.PubSub=F;var O="1.3",b=v.__private__.getPdfVersion=function(){return O};v.__private__.setPdfVersion=function(t){O=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 w=v.__private__.getPageFormat=function(t){return x[t]};s=s||"a4";var _="compat",S="advanced",C=_;function E(){this.saveGraphicsState(),ct(new Vt(St,0,0,-St,0,Bn()*St).toString()+" cm"),this.setFontSize(this.getFontSize()/St),u="n",C=S}function B(){this.restoreGraphicsState(),u="S",C=_}var T=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=C===_;return e&&E.call(this),"function"!=typeof t||(t(this),e&&B.call(this)),this},v.compatAPI=function(t){var e=C===S;return e&&B.call(this),"function"!=typeof t||(t(this),e&&E.call(this)),this},v.isAdvancedAPI=function(){return C===S};var P,k=function(t){if(C!==S)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},I=v.roundToPrecision=v.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};P=v.hpf=v.__private__.hpf="number"==typeof h?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return I(t,h)}:"smart"===h?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return I(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return I(t,16)};var M=v.f2=v.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return I(t,2)},$=v.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return I(t,3)},j=v.scale=v.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return C===_?t*St:C===S?t:void 0},H=function(t){return j(function(t){return C===_?Bn()-t:C===S?t:void 0}(t))};v.__private__.setPrecision=v.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var V,X="00000000000000000000000000000000",z=v.__private__.getFileId=function(){return X},G=v.__private__.setFileId=function(t){return X=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():X.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==f&&(Ne=new N(f.userPermissions,f.userPassword,f.ownerPassword,X)),X};v.setFileId=function(t){return G(t),this},v.getFileId=function(){return z()};var Y=v.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),s=[n,J(r),"'",J(i),"'"].join("");return["D:",t.getFullYear(),J(t.getMonth()+1),J(t.getDate()),J(t.getHours()),J(t.getMinutes()),J(t.getSeconds()),s].join("")},W=v.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),s=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,s,o,0)},Z=v.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=Y(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 V=e},K=v.__private__.getCreationDate=function(t){var e=V;return"jsDate"===t&&(e=W(V)),e};v.setCreationDate=function(t){return Z(t),this},v.getCreationDate=function(t){return K(t)};var q,J=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,nt=[],rt=[],it=0,st=[],ot=[],at=!1,lt=rt;v.__private__.setCustomOutputDestination=function(t){at=!0,lt=t};var At=function(t){at||(lt=t)};v.__private__.resetCustomOutputDestination=function(){at=!1,lt=rt};var ct=v.__private__.out=function(t){return t=t.toString(),it+=t.length+1,lt.push(t),lt},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,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},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 dt=t.fontSize||16;v.__private__.setFontSize=v.setFontSize=function(t){return dt=C===S?t/St:t,this};var ft,gt=v.__private__.getFontSize=v.getFontSize=function(){return C===_?dt:dt*St},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))ft=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.');ft=t}else ft=parseInt(t,10)};v.__private__.getZoomMode=function(){return ft};var Ot,bt=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.');Ot=t};v.__private__.getLayoutMode=function(){return Ot},v.__private__.setDisplayMode=v.setDisplayMode=function(t,e,n){return vt(t),xt(e),bt(n),this};var wt={title:"",subject:"",author:"",keywords:"",creator:""};v.__private__.getDocumentProperty=function(t){if(-1===Object.keys(wt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return wt[t]},v.__private__.getDocumentProperties=function(){return wt},v.__private__.setDocumentProperties=v.setProperties=v.setDocumentProperties=function(t){for(var e in wt)wt.hasOwnProperty(e)&&t[e]&&(wt[e]=t[e]);return this},v.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(wt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return wt[t]=e};var _t,St,Ct,Et,Bt,Tt={},Pt={},kt=[],It={},Nt={},Qt={},Ft={},Lt=null,Mt=0,Dt=[],Rt=new F(v),Ut=t.hotfixes||[],$t={},jt={},Ht=[],Vt=function t(e,n,r,i,s,o){if(!(this instanceof t))return new t(e,n,r,i,s,o);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(s)&&(s=0),isNaN(o)&&(o=0),this._matrix=[e,n,r,i,s,o]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Vt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(P).join(t)},Vt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,s=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Vt(e,n,r,i,s,o)},Vt.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,s=this.ty,o=Math.sqrt(t*t+e*e),a=(t/=o)*n+(e/=o)*r;n-=t*a,r-=e*a;var l=Math.sqrt(n*n+r*r);return a/=l,t*(r/=l)<e*(n/=l)&&(t=-t,e=-e,a=-a,o=-o),{scale:new Vt(o,0,0,l,0,0),translate:new Vt(1,0,0,1,i,s),rotate:new Vt(t,e,-e,t,0,0),skew:new Vt(1,0,a,1,0,0)}},Vt.prototype.toString=function(t){return this.join(" ")},Vt.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,s=this.ty,o=1/(t*r-e*n),a=r*o,l=-e*o,A=-n*o,c=t*o;return new Vt(a,l,A,c,-a*i-A*s,-l*i-c*s)},Vt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new mn(e,n)},Vt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new mn(t.x+t.w,t.y+t.h));return new yn(e.x,e.y,n.x-e.x,n.y-e.y)},Vt.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,s=this.ty;return new Vt(t,e,n,r,i,s)},v.Matrix=Vt;var Xt=v.matrixMult=function(t,e){return e.multiply(t)},zt=new Vt(1,0,0,1,0,0);v.unitMatrix=v.identityMatrix=zt;var Gt=function(t,e){if(!Nt[t]){var n=(e instanceof D?"Sh":"P")+(Object.keys(It).length+1).toString(10);e.id=n,Nt[t]=n,It[n]=e,Rt.publish("addPattern",e)}};v.ShadingPattern=D,v.TilingPattern=R,v.addShadingPattern=function(t,e){return k("addShadingPattern()"),Gt(t,e),this},v.beginTilingPattern=function(t){k("beginTilingPattern()"),On(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=ot[q].join("\n"),Gt(t,e),Rt.publish("endTilingPattern",e),Ht.pop().restore()};var Yt,Wt=v.__private__.newObject=function(){var t=Zt();return Kt(t,!0),t},Zt=v.__private__.newObjectDeferred=function(){return et++,nt[et]=function(){return it},et},Kt=function(t,e){return e="boolean"==typeof e&&e,nt[t]=it,e&&ct(t+" 0 obj"),t},qt=v.__private__.newAdditionalObject=function(){var t={objId:Zt(),content:""};return st.push(t),t},Jt=Zt(),te=Zt(),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 n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return r},ne=v.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,i=t.ch2,s=t.ch3,o=t.ch4,a="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var l=new d(n);if(l.ok)n=l.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var A=parseInt(n.substr(1),16);n=A>>16&255,i=A>>8&255,s=255&A}if(void 0===i||void 0===o&&n===i&&i===s)e="string"==typeof n?n+" "+a[0]:2===t.precision?M(n/255)+" "+a[0]:$(n/255)+" "+a[0];else if(void 0===o||"object"===(0,r.A)(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",a[1]].join(" ");e="string"==typeof n?[n,i,s,a[1]].join(" "):2===t.precision?[M(n/255),M(i/255),M(s/255),a[1]].join(" "):[$(n/255),$(i/255),$(s/255),a[1]].join(" ")}else e="string"==typeof n?[n,i,s,o,a[2]].join(" "):2===t.precision?[M(n),M(i),M(s),M(o),a[2]].join(" "):[$(n),$(i),$(s),$(o),a[2]].join(" ");return e},re=v.__private__.getFilters=function(){return l},ie=v.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||re(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,s=e.length,o=t.objectId,a=function(t){return t};if(null!==f&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==f&&(a=Ne.encryptor(o,0));var l={};!0===n&&(n=["FlateEncode"]);var A=t.additionalKeyValues||[],c=(l=void 0!==U.API.processDataByFilters?U.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==l.data.length&&(A.push({key:"Length",value:l.data.length}),!0===i&&A.push({key:"Length1",value:s})),0!=c.length)if(c.split("/").length-1==1)A.push({key:"Filter",value:c});else{A.push({key:"Filter",value:"["+c+"]"});for(var h=0;h<A.length;h+=1)if("DecodeParms"===A[h].key){for(var u=[],p=0;p<l.reverseChain.split("/").length-1;p+=1)u.push("null");u.push(A[h].value),A[h].value="["+u.join(" ")+"]"}}ct("<<");for(var d=0;d<A.length;d++)ct("/"+A[d].key+" "+A[d].value);ct(">>"),0!==l.data.length&&(ct("stream"),ct(a(l.data)),ct("endstream"))},se=v.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;Kt(r,!0),ct("<</Type /Page"),ct("/Parent "+t.rootDictionaryObjId+" 0 R"),ct("/Resources "+t.resourceDictionaryObjId+" 0 R"),ct("/MediaBox ["+parseFloat(P(t.mediaBox.bottomLeftX))+" "+parseFloat(P(t.mediaBox.bottomLeftY))+" "+P(t.mediaBox.topRightX)+" "+P(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&ct("/CropBox ["+P(t.cropBox.bottomLeftX)+" "+P(t.cropBox.bottomLeftY)+" "+P(t.cropBox.topRightX)+" "+P(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&ct("/BleedBox ["+P(t.bleedBox.bottomLeftX)+" "+P(t.bleedBox.bottomLeftY)+" "+P(t.bleedBox.topRightX)+" "+P(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&ct("/TrimBox ["+P(t.trimBox.bottomLeftX)+" "+P(t.trimBox.bottomLeftY)+" "+P(t.trimBox.topRightX)+" "+P(t.trimBox.topRightY)+"]"),null!==t.artBox&&ct("/ArtBox ["+P(t.artBox.bottomLeftX)+" "+P(t.artBox.bottomLeftY)+" "+P(t.artBox.topRightX)+" "+P(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&ct("/UserUnit "+t.userUnit),Rt.publish("putPage",{objId:r,pageContext:Dt[e],pageNumber:e,page:n}),ct("/Contents "+i+" 0 R"),ct(">>"),ct("endobj");var s=n.join("\n");return C===S&&(s+="\nQ"),Kt(i,!0),ie({data:s,filters:re(),objectId:i}),ct("endobj"),r},oe=v.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Mt;t++)Dt[t].objId=Zt(),Dt[t].contentsObjId=Zt();for(t=1;t<=Mt;t++)n.push(se({number:t,data:ot[t],objId:Dt[t].objId,contentsObjId:Dt[t].contentsObjId,mediaBox:Dt[t].mediaBox,cropBox:Dt[t].cropBox,bleedBox:Dt[t].bleedBox,trimBox:Dt[t].trimBox,artBox:Dt[t].artBox,userUnit:Dt[t].userUnit,rootDictionaryObjId:Jt,resourceDictionaryObjId:te}));Kt(Jt,!0),ct("<</Type /Pages");var r="/Kids [";for(e=0;e<Mt;e++)r+=n[e]+" 0 R ";ct(r+"]"),ct("/Count "+Mt),ct(">>"),ct("endobj"),Rt.publish("postPutPages")},ae=function(t){Rt.publish("putFont",{font:t,out:ct,newObject:Wt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Wt(),ct("<<"),ct("/Type /Font"),ct("/BaseFont /"+Q(t.postScriptName)),ct("/Subtype /Type1"),"string"==typeof t.encoding&&ct("/Encoding /"+t.encoding),ct("/FirstChar 32"),ct("/LastChar 255"),ct(">>"),ct("endobj"))},le=function(t){t.objectNumber=Wt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[P(t.x),P(t.y),P(t.x+t.width),P(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");ie({data:n,additionalKeyValues:e,objectId:t.objectNumber}),ct("endobj")},Ae=function(t,e){e||(e=21);var n=Wt(),r=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var s={offset:0,color:t[0].color};t.unshift(s)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var a="",l=0,A=0;A<r.length;A++){for(n=r[A];n>t[l+1].offset;)l++;var c=t[l].offset,h=(n-c)/(t[l+1].offset-c),u=t[l].color,p=t[l+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:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),ct("endobj"),t.objectNumber=Wt(),ct("<< /ShadingType "+t.type),ct("/ColorSpace /DeviceRGB");var s="/Coords ["+P(parseFloat(t.coords[0]))+" "+P(parseFloat(t.coords[1]))+" ";2===t.type?s+=P(parseFloat(t.coords[2]))+" "+P(parseFloat(t.coords[3])):s+=P(parseFloat(t.coords[2]))+" "+P(parseFloat(t.coords[3]))+" "+P(parseFloat(t.coords[4]))+" "+P(parseFloat(t.coords[5])),ct(s+="]"),t.matrix&&ct("/Matrix ["+t.matrix.toString()+"]"),ct("/Function "+n+" 0 R"),ct("/Extend [true true]"),ct(">>"),ct("endobj")},ce=function(t,e){var n=Zt(),r=Wt();e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(P).join(" ")+"]"}),i.push({key:"XStep",value:P(t.xStep)}),i.push({key:"YStep",value:P(t.yStep)}),i.push({key:"Resources",value:n+" 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=Wt(),ct("<<"),t)switch(e){case"opacity":ct("/ca "+M(t[e]));break;case"stroke-opacity":ct("/CA "+M(t[e]))}ct(">>"),ct("endobj")},ue=function(t){Kt(t.resourcesOid,!0),ct("<<"),ct("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in ct("/Font <<"),Tt)Tt.hasOwnProperty(t)&&(!1===m||!0===m&&y.hasOwnProperty(t))&&ct("/"+t+" "+Tt[t].objectNumber+" 0 R");ct(">>")}(),function(){if(Object.keys(It).length>0){for(var t in ct("/Shading <<"),It)It.hasOwnProperty(t)&&It[t]instanceof D&&It[t].objectNumber>=0&&ct("/"+t+" "+It[t].objectNumber+" 0 R");Rt.publish("putShadingPatternDict"),ct(">>")}}(),function(t){if(Object.keys(It).length>0){for(var e in ct("/Pattern <<"),It)It.hasOwnProperty(e)&&It[e]instanceof v.TilingPattern&&It[e].objectNumber>=0&&It[e].objectNumber<t&&ct("/"+e+" "+It[e].objectNumber+" 0 R");Rt.publish("putTilingPatternDict"),ct(">>")}}(t.objectOid),function(){if(Object.keys(Qt).length>0){var t;for(t in ct("/ExtGState <<"),Qt)Qt.hasOwnProperty(t)&&Qt[t].objectNumber>=0&&ct("/"+t+" "+Qt[t].objectNumber+" 0 R");Rt.publish("putGStateDict"),ct(">>")}}(),function(){for(var t in ct("/XObject <<"),$t)$t.hasOwnProperty(t)&&$t[t].objectNumber>=0&&ct("/"+t+" "+$t[t].objectNumber+" 0 R");Rt.publish("putXobjectDict"),ct(">>")}(),ct(">>"),ct("endobj")},pe=function(t){Pt[t.fontName]=Pt[t.fontName]||{},Pt[t.fontName][t.fontStyle]=t.id},de=function(t,e,n,r,i){var s={id:"F"+(Object.keys(Tt).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return Rt.publish("addFont",{font:s,instance:this}),Tt[s.id]=s,pe(s),s.id},fe=v.__private__.pdfEscape=v.pdfEscape=function(t,e){return function(t,e){var n,r,i,s,o,a,l,A,c;if(i=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&Tt[_t].metadata&&Tt[_t].metadata[i]&&Tt[_t].metadata[i].encoding&&(s=Tt[_t].metadata[i].encoding,!o&&Tt[_t].encoding&&(o=Tt[_t].encoding),!o&&s.codePages&&(o=s.codePages[0]),"string"==typeof o&&(o=s[o]),o)){for(l=!1,a=[],n=0,r=t.length;n<r;n++)(A=o[t.charCodeAt(n)])?a.push(String.fromCharCode(A)):a.push(t[n]),a[n].charCodeAt(0)>>8&&(l=!0);t=a.join("")}for(n=t.length;void 0===l&&0!==n;)t.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return t;for(a=e.noBOM?[]:[254,255],n=0,r=t.length;n<r;n++){if((c=(A=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(c),a.push(A-(c<<8))}return String.fromCharCode.apply(void 0,a)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ge=v.__private__.beginPage=function(t){ot[++Mt]=[],Dt[Mt]={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(Mt),At(ot[q])},me=function(t,e){var r,i,o;switch(n=e||n,"string"==typeof t&&(r=w(t.toLowerCase()),Array.isArray(r)&&(i=r[0],o=r[1])),Array.isArray(t)&&(i=t[0]*St,o=t[1]*St),isNaN(i)&&(i=s[0],o=s[1]),(i>14400||o>14400)&&(A.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),o=Math.min(14400,o)),s=[i,o],n.substr(0,1)){case"l":o>i&&(s=[o,i]);break;case"p":i>o&&(s=[o,i])}ge(s),Je(Ke),ct(ln),0!==dn&&ct(dn+" J"),0!==fn&&ct(fn+" j"),Rt.publish("addPage",{pageNumber:Mt})},ye=function(t){t>0&&t<=Mt&&(ot.splice(t,1),Dt.splice(t,1),Mt--,q>Mt&&(q=Mt),this.setPage(q))},ve=function(t){t>0&&t<=Mt&&(q=t)},Oe=v.__private__.getNumberOfPages=v.getNumberOfPages=function(){return ot.length-1},be=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:Tt[_t].fontName,e=void 0!==e?e:Tt[_t].fontStyle,r=t.toLowerCase(),void 0!==Pt[r]&&void 0!==Pt[r][e]?i=Pt[r][e]:void 0!==Pt[t]&&void 0!==Pt[t][e]?i=Pt[t][e]:!1===n.disableWarning&&A.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=Pt.times[e])&&(i=Pt.times.normal),i},xe=v.__private__.putInfo=function(){var t=Wt(),e=function(t){return t};for(var n in null!==f&&(e=Ne.encryptor(t,0)),ct("<<"),ct("/Producer ("+fe(e("jsPDF "+U.version))+")"),wt)wt.hasOwnProperty(n)&&wt[n]&&ct("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+fe(e(wt[n]))+")");ct("/CreationDate ("+fe(e(V))+")"),ct(">>"),ct("endobj")},we=v.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Jt;switch(Wt(),ct("<<"),ct("/Type /Catalog"),ct("/Pages "+e+" 0 R"),ft||(ft="fullwidth"),ft){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 n=""+ft;"%"===n.substr(n.length-1)&&(ft=parseInt(ft)/100),"number"==typeof ft&&ct("/OpenAction [3 0 R /XYZ null null "+M(ft)+"]")}switch(Ot||(Ot="continuous"),Ot){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),Rt.publish("putCatalog"),ct(">>"),ct("endobj")},_e=v.__private__.putTrailer=function(){ct("trailer"),ct("<<"),ct("/Size "+(et+1)),ct("/Root "+et+" 0 R"),ct("/Info "+(et-1)+" 0 R"),null!==f&&ct("/Encrypt "+Ne.oid+" 0 R"),ct("/ID [ <"+X+"> <"+X+"> ]"),ct(">>")},Se=v.__private__.putHeader=function(){ct("%PDF-"+O),ct("%ºß¬à")},Ce=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 nt[e]?ct((t+nt[e]()).slice(-10)+" 00000 n "):void 0!==nt[e]?ct((t+nt[e]).slice(-10)+" 00000 n "):ct("0000000000 00000 n ")},Ee=v.__private__.buildDocument=function(){var t;et=0,it=0,rt=[],nt=[],st=[],Jt=Zt(),te=Zt(),At(rt),Rt.publish("buildDocument"),Se(),oe(),function(){Rt.publish("putAdditionalObjects");for(var t=0;t<st.length;t++){var e=st[t];Kt(e.objId,!0),ct(e.content),ct("endobj")}Rt.publish("postPutAdditionalObjects")}(),t=[],function(){for(var t in Tt)Tt.hasOwnProperty(t)&&(!1===m||!0===m&&y.hasOwnProperty(t))&&ae(Tt[t])}(),function(){var t;for(t in Qt)Qt.hasOwnProperty(t)&&he(Qt[t])}(),function(){for(var t in $t)$t.hasOwnProperty(t)&&le($t[t])}(),function(t){var e;for(e in It)It.hasOwnProperty(e)&&(It[e]instanceof D?Ae(It[e]):It[e]instanceof R&&ce(It[e],t))}(t),Rt.publish("putResources"),t.forEach(ue),ue({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),Rt.publish("postPutResources"),null!==f&&(Ne.oid=Wt(),ct("<<"),ct("/Filter /Standard"),ct("/V "+Ne.v),ct("/R "+Ne.r),ct("/U <"+Ne.toHexString(Ne.U)+">"),ct("/O <"+Ne.toHexString(Ne.O)+">"),ct("/P "+Ne.P),ct(">>"),ct("endobj")),xe(),we();var e=it;return Ce(),_e(),ct("startxref"),ct(""+e),ct("%%EOF"),At(ot[q]),rt.join("\n")},Be=v.__private__.getBlob=function(t){return new Blob([ut(t)],{type:"application/pdf"})},Te=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},Pe=function(t){var e,n=t.document,r=n.documentElement,i=n.head,s=n.body;return i||(i=n.createElement("head"),r.appendChild(i)),s||(s=n.createElement("body"),r.appendChild(s)),Te(i),Te(s),(e=n.createElement("style")).appendChild(n.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),i.appendChild(e),{document:n,body:s}},ke=v.output=v.__private__.output=(Yt=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return Ee();case"save":v.save(e.filename);break;case"arraybuffer":return ut(Ee());case"blob":return Be(Ee());case"bloburi":case"bloburl":if(void 0!==a.URL&&"function"==typeof a.URL.createObjectURL)return a.URL&&a.URL.createObjectURL(Be(Ee()))||void 0;A.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=Ee();try{n=g(r)}catch(t){n=g(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+encodeURIComponent(e.filename)+";base64,"+n;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",s=!e.pdfObjectUrl;s||(i=e.pdfObjectUrl);var o=a.open();if(null!==o){var l=Pe(o),c=l.document.createElement("script"),h=this;c.src=i,s&&(c.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",c.crossOrigin="anonymous"),c.onload=function(){o.PDFObject.embed(h.output("dataurlstring"),e)},l.body.appendChild(c)}return o}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(a)){var u=e.pdfJsUrl||"examples/PDF.js/web/viewer.html",p=a.open();if(null!==p){var d=Pe(p),f=d.document.createElement("iframe"),m=-1===u.indexOf("?")?"?":"&";h=this,f.id="pdfViewer",f.width="500px",f.height="400px",f.src=u+m+"file=&downloadName="+encodeURIComponent(e.filename),f.onload=function(){p.document.title=e.filename,f.contentWindow.PDFViewerApplication.open(h.output("bloburl"))},d.body.appendChild(f)}return p}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 y=a.open();if(null!==y){var O=Pe(y),b=O.document.createElement("iframe");b.src=this.output("datauristring",e),O.body.appendChild(b),y.document.title=e.filename}if(y||"undefined"==typeof safari)return y;break;case"datauri":case"dataurl":return a.document.location.href=this.output("datauristring",e);default:return null}},Yt.foo=function(){try{return Yt.apply(this,arguments)}catch(n){var t=n.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var e="Error in function "+t.split("\n")[0].split("<")[0]+": "+n.message;if(!a.console)throw new Error(e);a.console.error(e,n),a.alert&&alert(e)}},Yt.foo.bar=Yt,Yt.foo),Ie=function(t){return!0===Array.isArray(Ut)&&Ut.indexOf(t)>-1};switch(i){case"pt":St=1;break;case"mm":St=72/25.4;break;case"cm":St=72/2.54;break;case"in":St=72;break;case"px":St=1==Ie("px_scaling")?.75:96/72;break;case"pc":case"em":St=12;break;case"ex":St=6;break;default:if("number"!=typeof i)throw new Error("Invalid unit: "+i);St=i}var Ne=null;Z(),G();var Qe=v.__private__.getPageInfo=v.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Dt[t].objId,pageNumber:t,pageContext:Dt[t]}},Fe=v.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Dt)if(Dt[e].objId===t)break;return Qe(e)},Le=v.__private__.getCurrentPageInfo=v.getCurrentPageInfo=function(){return{objId:Dt[q].objId,pageNumber:q,pageContext:Dt[q]}};v.addPage=function(){return me.apply(this,arguments),this},v.setPage=function(){return ve.apply(this,arguments),At.call(this,ot[q]),this},v.insertPage=function(t){return this.addPage(),this.movePage(q,t),this},v.movePage=function(t,e){var n,r;if(t>e){n=ot[t],r=Dt[t];for(var i=t;i>e;i--)ot[i]=ot[i-1],Dt[i]=Dt[i-1];ot[e]=n,Dt[e]=r,this.setPage(e)}else if(t<e){n=ot[t],r=Dt[t];for(var s=t;s<e;s++)ot[s]=ot[s+1],Dt[s]=Dt[s+1];ot[e]=n,Dt[e]=r,this.setPage(e)}return this},v.deletePage=function(){return ye.apply(this,arguments),this},v.__private__.text=v.text=function(t,e,n,i,s){var o,a,l,A,c,h,u,p,d,f=(i=i||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof n||Array.isArray(n))){var g=n;n=e,e=t,t=g}if(arguments[3]instanceof Vt==0?(l=arguments[4],A=arguments[5],"object"===(0,r.A)(u=arguments[3])&&null!==u||("string"==typeof l&&(A=l,l=null),"string"==typeof u&&(A=u,u=null),"number"==typeof u&&(l=u,u=null),i={flags:u,angle:l,align:A})):(k("The transform parameter of text() with a Matrix value"),d=s),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return f;var m,v="",O="number"==typeof i.lineHeightFactor?i.lineHeightFactor:Ze,b=f.internal.scaleFactor;function x(t){return t=t.split("\t").join(Array(i.TabLen||9).join(" ")),fe(t,u)}function w(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function _(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i,s=t.concat(),o=[],a=s.length;a--;)"string"==typeof(r=s.shift())?o.push(e(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(i=e(r[0],r[1],r[2]),o.push([i[0],i[1],i[2]]));n=o}return n}var E=!1,B=!0;if("string"==typeof t)E=!0;else if(Array.isArray(t)){var T=t.concat();a=[];for(var I,N=T.length;N--;)("string"!=typeof(I=T.shift())||Array.isArray(I)&&"string"!=typeof I[0])&&(B=!1);E=B}if(!1===E)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 Q=dt/f.internal.scaleFactor,F=Q*(O-1);switch(i.baseline){case"bottom":n-=F;break;case"top":n+=Q-F;break;case"hanging":n+=Q-2*F;break;case"middle":n+=Q/2-F}if((h=i.maxWidth||0)>0&&("string"==typeof t?t=f.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(f.splitTextToSize(e,h))},[]))),o={text:t,x:e,y:n,options:i,mutex:{pdfEscape:fe,activeFontKey:_t,fonts:Tt,activeFontSize:dt}},Rt.publish("preProcessText",o),t=o.text,l=(i=o.options).angle,d instanceof Vt==0&&l&&"number"==typeof l){l*=Math.PI/180,0===i.rotationDirection&&(l=-l),C===S&&(l=-l);var L=Math.cos(l),M=Math.sin(l);d=new Vt(L,M,-M,L,0,0)}else l&&l instanceof Vt&&(d=l);C!==S||d||(d=zt),void 0!==(c=i.charSpace||un)&&(v+=P(j(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(p=i.horizontalScale)&&(v+=P(100*p)+" Tz\n"),i.lang;var D=-1,R=void 0!==i.renderingMode?i.renderingMode:i.stroke,U=f.internal.getCurrentPageInfo().pageContext;switch(R){case 0:case!1:case"fill":D=0;break;case 1:case!0:case"stroke":D=1;break;case 2:case"fillThenStroke":D=2;break;case 3:case"invisible":D=3;break;case 4:case"fillAndAddForClipping":D=4;break;case 5:case"strokeAndAddPathForClipping":D=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":D=6;break;case 7:case"addToPathForClipping":D=7}var $=void 0!==U.usedRenderingMode?U.usedRenderingMode:-1;-1!==D?v+=D+" Tr\n":-1!==$&&(v+="0 Tr\n"),-1!==D&&(U.usedRenderingMode=D),A=i.align||"left";var H,V=dt*O,X=f.internal.pageSize.getWidth(),z=Tt[_t];c=i.charSpace||un,h=i.maxWidth||0,u=Object.assign({autoencode:!0,noBOM:!0},i.flags);var G=[],Y=function(t){return f.getStringUnitWidth(t,{font:z,charSpace:c,fontSize:dt,doKerning:!1})*dt/b};if("[object Array]"===Object.prototype.toString.call(t)){var W;a=w(t),"left"!==A&&(H=a.map(Y));var Z,K=0;if("right"===A){e-=H[0],t=[],N=a.length;for(var q=0;q<N;q++)0===q?(Z=rn(e),W=sn(n)):(Z=j(K-H[q]),W=-V),t.push([a[q],Z,W]),K=H[q]}else if("center"===A){e-=H[0]/2,t=[],N=a.length;for(var J=0;J<N;J++)0===J?(Z=rn(e),W=sn(n)):(Z=j((K-H[J])/2),W=-V),t.push([a[J],Z,W]),K=H[J]}else if("left"===A){t=[],N=a.length;for(var tt=0;tt<N;tt++)t.push(a[tt])}else if("justify"===A&&"Identity-H"===z.encoding){t=[],N=a.length,h=0!==h?h:X;for(var et=0,nt=0;nt<N;nt++)if(W=0===nt?sn(n):-V,Z=0===nt?rn(e):et,nt<N-1){var rt=j((h-H[nt])/(a[nt].split(" ").length-1)),it=a[nt].split(" ");t.push([it[0]+" ",Z,W]),et=0;for(var st=1;st<it.length;st++){var ot=(Y(it[st-1]+" "+it[st])-Y(it[st]))*b+rt;st==it.length-1?t.push([it[st],ot,0]):t.push([it[st]+" ",ot,0]),et-=ot}}else t.push([a[nt],Z,W]);t.push(["",et,0])}else{if("justify"!==A)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(t=[],N=a.length,h=0!==h?h:X,nt=0;nt<N;nt++){W=0===nt?sn(n):-V,Z=0===nt?rn(e):0;var at=a[nt].split(" ").length-1,lt=at>0?(h-H[nt])/at:0;nt<N-1?G.push(P(j(lt))):G.push(0),t.push([a[nt],Z,W])}}}!0===("boolean"==typeof i.R2L?i.R2L:mt)&&(t=_(t,function(t,e,n){return[t.split("").reverse().join(""),e,n]})),o={text:t,x:e,y:n,options:i,mutex:{pdfEscape:fe,activeFontKey:_t,fonts:Tt,activeFontSize:dt}},Rt.publish("postProcessText",o),t=o.text,m=o.mutex.isHex||!1;var At=Tt[_t].encoding;"WinAnsiEncoding"!==At&&"StandardEncoding"!==At||(t=_(t,function(t,e,n){return[x(t),e,n]})),a=w(t),t=[];for(var ht,ut,pt,ft=Array.isArray(a[0])?1:0,gt="",yt=function(t,e,n){var r="";return n instanceof Vt?(n="number"==typeof i.angle?Xt(n,new Vt(1,0,0,1,t,e)):Xt(new Vt(1,0,0,1,t,e),n),C===S&&(n=Xt(new Vt(1,0,0,-1,0,0),n)),r=n.join(" ")+" Tm\n"):r=P(t)+" "+P(e)+" Td\n",r},vt=0;vt<a.length;vt++){switch(gt="",ft){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=rn(e),ut=sn(n)}void 0!==G&&void 0!==G[vt]&&(gt=G[vt]+" Tw\n"),0===vt?t.push(gt+yt(ht,ut,d)+pt):0===ft?t.push(gt+pt):1===ft&&t.push(gt+yt(ht,ut,d)+pt)}t=0===ft?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var Ot="BT\n/";return Ot+=_t+" "+dt+" Tf\n",Ot+=P(dt*O)+" TL\n",Ot+=cn+"\n",Ot+=v,Ot+=t,ct(Ot+="ET"),y[_t]=!0,f};var Me=v.__private__.clip=v.clip=function(t){return ct("evenodd"===t?"W*":"W"),this};v.clipEvenOdd=function(){return Me("evenodd")},v.__private__.discardPath=v.discardPath=function(){return ct("n"),this};var De=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 De(t)&&(u=t),this};var Re=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 $e("f",t),this},v.fillEvenOdd=function(t){return $e("f*",t),this},v.fillStroke=function(t){return $e("B",t),this},v.fillStrokeEvenOdd=function(t){return $e("B*",t),this};var $e=function(t,e){"object"===(0,r.A)(e)?Ve(e,t):ct(t)},je=function(t){null===t||C===S&&void 0===t||(t=Re(t),ct(t))};function He(t,e,n,r,i){var s=new R(e||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);s.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return Gt(o,s),s}var Ve=function(t,e){var n=Nt[t.key],r=It[n];if(r instanceof D)ct("q"),ct(Xe(e)),r.gState&&v.setGState(r.gState),ct(t.matrix.toString()+" cm"),ct("/"+n+" sh"),ct("Q");else if(r instanceof R){var i=new Vt(1,0,0,-1,0,Bn());t.matrix&&(i=i.multiply(t.matrix||zt),n=He.call(r,t.key,t.boundingBox,t.xStep,t.yStep,i).id),ct("q"),ct("/Pattern cs"),ct("/"+n+" scn"),r.gState&&v.setGState(r.gState),ct(e),ct("Q")}},Xe=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(P(j(t))+" "+P(H(e))+" m"),this},Ge=v.lineTo=function(t,e){return ct(P(j(t))+" "+P(H(e))+" l"),this},Ye=v.curveTo=function(t,e,n,r,i,s){return ct([P(j(t)),P(H(e)),P(j(n)),P(H(r)),P(j(i)),P(H(s)),"c"].join(" ")),this};v.__private__.line=v.line=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!De(i))throw new Error("Invalid arguments passed to jsPDF.line");return C===_?this.lines([[n-t,r-e]],t,e,[1,1],i||"S"):this.lines([[n-t,r-e]],t,e,[1,1]).stroke()},v.__private__.lines=v.lines=function(t,e,n,r,i,s){var o,a,l,A,c,h,u,p,d,f,g,m;if("number"==typeof t&&(m=n,n=e,e=t,t=m),r=r||[1,1],s=s||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!De(i)||"boolean"!=typeof s)throw new Error("Invalid arguments passed to jsPDF.lines");for(ze(e,n),o=r[0],a=r[1],A=t.length,f=e,g=n,l=0;l<A;l++)2===(c=t[l]).length?(f=c[0]*o+f,g=c[1]*a+g,Ge(f,g)):(h=c[0]*o+f,u=c[1]*a+g,p=c[2]*o+f,d=c[3]*a+g,f=c[4]*o+f,g=c[5]*a+g,Ye(h,u,p,d,f,g));return s&&Ue(),je(i),this},v.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=n.c;switch(n.op){case"m":ze(r[0],r[1]);break;case"l":Ge(r[0],r[1]);break;case"c":Ye.apply(this,r);break;case"h":Ue()}}return this},v.__private__.rect=v.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!De(i))throw new Error("Invalid arguments passed to jsPDF.rect");return C===_&&(r=-r),ct([P(j(t)),P(H(e)),P(j(n)),P(j(r)),"re"].join(" ")),je(i),this},v.__private__.triangle=v.triangle=function(t,e,n,r,i,s,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(s)||!De(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,r-e],[i-n,s-r],[t-i,e-s]],t,e,[1,1],o,!0),this},v.__private__.roundedRect=v.roundedRect=function(t,e,n,r,i,s,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(s)||!De(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),s=Math.min(s,.5*r),this.lines([[n-2*i,0],[i*a,0,i,s-s*a,i,s],[0,r-2*s],[0,s*a,-i*a,s,-i,s],[2*i-n,0],[-i*a,0,-i,-s*a,-i,-s],[0,2*s-r],[0,-s*a,i*a,-s,i,-s]],t+i,e,[1,1],o,!0),this},v.__private__.ellipse=v.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!De(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var s=4/3*(Math.SQRT2-1)*n,o=4/3*(Math.SQRT2-1)*r;return ze(t+n,e),Ye(t+n,e-o,t+s,e-r,t,e-r),Ye(t-s,e-r,t-n,e-o,t-n,e),Ye(t-n,e+o,t-s,e+r,t,e+r),Ye(t+s,e+r,t+n,e+o,t+n,e),je(i),this},v.__private__.circle=v.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!De(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)},v.setFont=function(t,e,n){return n&&(e=T(e,n)),_t=be(t,e,{disableWarning:!1}),this};var We=v.__private__.getFont=v.getFont=function(){return Tt[be.apply(v,arguments)]};v.__private__.getFontList=v.getFontList=function(){var t,e,n={};for(t in Pt)if(Pt.hasOwnProperty(t))for(e in n[t]=[],Pt[t])Pt[t].hasOwnProperty(e)&&n[t].push(e);return n},v.addFont=function(t,e,n,r,i){var s=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==s.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==s.indexOf(arguments[3])&&(n=T(n,r)),de.call(this,t,e,n,i=i||"Identity-H")};var Ze,Ke=t.lineWidth||.200025,qe=v.__private__.getLineWidth=v.getLineWidth=function(){return Ke},Je=v.__private__.setLineWidth=v.setLineWidth=function(t){return Ke=t,ct(P(j(t))+" w"),this};v.__private__.setLineDash=U.API.setLineDash=U.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 P(j(t))}).join(" "),e=P(j(e)),ct("["+t+"] "+e+" d"),this};var tn=v.__private__.getLineHeight=v.getLineHeight=function(){return dt*Ze};v.__private__.getLineHeight=v.getLineHeight=function(){return dt*Ze};var en=v.__private__.setLineHeightFactor=v.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(Ze=t),this},nn=v.__private__.getLineHeightFactor=v.getLineHeightFactor=function(){return Ze};en(t.lineHeight);var rn=v.__private__.getHorizontalCoordinate=function(t){return j(t)},sn=v.__private__.getVerticalCoordinate=function(t){return C===S?t:Dt[q].mediaBox.topRightY-Dt[q].mediaBox.bottomLeftY-j(t)},on=v.__private__.getHorizontalCoordinateString=v.getHorizontalCoordinateString=function(t){return P(rn(t))},an=v.__private__.getVerticalCoordinateString=v.getVerticalCoordinateString=function(t){return P(sn(t))},ln=t.strokeColor||"0 G";v.__private__.getStrokeColor=v.getDrawColor=function(){return ee(ln)},v.__private__.setStrokeColor=v.setDrawColor=function(t,e,n,r){return ln=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),ct(ln),this};var An=t.fillColor||"0 g";v.__private__.getFillColor=v.getFillColor=function(){return ee(An)},v.__private__.setFillColor=v.setFillColor=function(t,e,n,r){return An=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),ct(An),this};var cn=t.textColor||"0 g",hn=v.__private__.getTextColor=v.getTextColor=function(){return ee(cn)};v.__private__.setTextColor=v.setTextColor=function(t,e,n,r){return cn=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var un=t.charSpace,pn=v.__private__.getCharSpace=v.getCharSpace=function(){return parseFloat(un||0)};v.__private__.setCharSpace=v.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return un=t,this};var dn=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 dn=e,ct(e+" J"),this};var fn=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 fn=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(P(j(t))+" M"),this},v.GState=L,v.setGState=function(t){(t="string"==typeof t?Qt[Ft[t]]:gn(null,t)).equals(Lt)||(ct("/"+t.id+" gs"),Lt=t)};var gn=function(t,e){if(!t||!Ft[t]){var n=!1;for(var r in Qt)if(Qt.hasOwnProperty(r)&&Qt[r].equals(e)){n=!0;break}if(n)e=Qt[r];else{var i="GS"+(Object.keys(Qt).length+1).toString(10);Qt[i]=e,e.id=i}return t&&(Ft[t]=e.id),Rt.publish("addGState",e),e}};v.addGState=function(t,e){return gn(t,e),this},v.saveGraphicsState=function(){return ct("q"),kt.push({key:_t,size:dt,color:cn}),this},v.restoreGraphicsState=function(){ct("Q");var t=kt.pop();return _t=t.key,dt=t.size,cn=t.color,Lt=null,this},v.setCurrentTransformationMatrix=function(t){return ct(t.toString()+" cm"),this},v.comment=function(t){return ct("#"+t),this};var mn=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},yn=function(t,e,n,r){mn.call(this,t,e),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var s=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return s},set:function(t){isNaN(t)||(s=parseFloat(t))}}),this},vn=function(){this.page=Mt,this.currentPage=q,this.pages=ot.slice(0),this.pagesContext=Dt.slice(0),this.x=Ct,this.y=Et,this.matrix=Bt,this.width=xn(q),this.height=_n(q),this.outputDestination=lt,this.id="",this.objectNumber=-1};vn.prototype.restore=function(){Mt=this.page,q=this.currentPage,Dt=this.pagesContext,ot=this.pages,Ct=this.x,Et=this.y,Bt=this.matrix,wn(q,this.width),Sn(q,this.height),lt=this.outputDestination};var On=function(t,e,n,r,i){Ht.push(new vn),Mt=q=0,ot=[],Ct=t,Et=e,Bt=i,ge([n,r])};for(var bn in v.beginFormObject=function(t,e,n,r,i){return On(t,e,n,r,i),this},v.endFormObject=function(t){return function(t){if(jt[t])Ht.pop().restore();else{var e=new vn,n="Xo"+(Object.keys($t).length+1).toString(10);e.id=n,jt[t]=n,$t[n]=e,Rt.publish("addFormObject",e),Ht.pop().restore()}}(t),this},v.doFormObject=function(t,e){var n=$t[jt[t]];return ct("q"),ct(e.toString()+" cm"),ct("/"+n.id+" Do"),ct("Q"),this},v.getFormObject=function(t){var e=$t[jt[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(Be(Ee()),t),"function"==typeof p.unload&&a.setTimeout&&setTimeout(p.unload,911),this):new Promise(function(e,n){try{var r=p(Be(Ee()),t);"function"==typeof p.unload&&a.setTimeout&&setTimeout(p.unload,911),e(r)}catch(t){n(t.message)}})},U.API)U.API.hasOwnProperty(bn)&&("events"===bn&&U.API.events.length?function(t,e){var n,r,i;for(i=e.length-1;-1!==i;i--)n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(Rt,U.API.events):v[bn]=U.API[bn]);function xn(t){return Dt[t].mediaBox.topRightX-Dt[t].mediaBox.bottomLeftX}function wn(t,e){Dt[t].mediaBox.topRightX=e+Dt[t].mediaBox.bottomLeftX}function _n(t){return Dt[t].mediaBox.topRightY-Dt[t].mediaBox.bottomLeftY}function Sn(t,e){Dt[t].mediaBox.topRightY=e+Dt[t].mediaBox.bottomLeftY}var Cn=v.getPageWidth=function(t){return xn(t=t||q)/St},En=v.setPageWidth=function(t,e){wn(t,e*St)},Bn=v.getPageHeight=function(t){return _n(t=t||q)/St},Tn=v.setPageHeight=function(t,e){Sn(t,e*St)};return v.internal={pdfEscape:fe,getStyle:Re,getFont:We,getFontSize:gt,getCharSpace:pn,getTextColor:hn,getLineHeight:tn,getLineHeightFactor:nn,getLineWidth:qe,write:ht,getHorizontalCoordinate:rn,getVerticalCoordinate:sn,getCoordinateString:on,getVerticalCoordinateString:an,collections:{},newObject:Wt,newAdditionalObject:qt,newObjectDeferred:Zt,newObjectDeferredBegin:Kt,getFilters:re,putStream:ie,events:Rt,scaleFactor:St,pageSize:{getWidth:function(){return Cn(q)},setWidth:function(t){En(q,t)},getHeight:function(){return Bn(q)},setHeight:function(t){Tn(q,t)}},encryptionOptions:f,encryption:Ne,getEncryptor:function(t){return null!==f?Ne.encryptor(t,0):function(t){return t}},output:ke,getNumberOfPages:Oe,get pages(){return ot},out:ct,f2:M,f3:$,getPageInfo:Qe,getPageInfoByObjId:Fe,getCurrentPageInfo:Le,getPDFVersion:b,Point:mn,Rectangle:yn,Matrix:Vt,hasHotfix:Ie},Object.defineProperty(v.internal.pageSize,"width",{get:function(){return Cn(q)},set:function(t){En(q,t)},enumerable:!0,configurable:!0}),Object.defineProperty(v.internal.pageSize,"height",{get:function(){return Bn(q)},set:function(t){Tn(q,t)},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=pt.length;e<n;e++){var r=de.call(this,t[e][0],t[e][1],t[e][2],pt[e][3],!0);!1===m&&(y[r]=!0);var i=t[e][0].split("-");pe({id:r,fontName:i[0],fontStyle:i[1]||""})}Rt.publish("addFonts",{fonts:Tt,dictionary:Pt})}.call(v,pt),_t="F1",me(s,n),Rt.publish("initialized"),v}N.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},N.prototype.toHexString=function(t){return t.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},N.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},N.prototype.processOwnerPassword=function(t,e){return k(B(e).substr(0,5),t)},N.prototype.encryptor=function(t,e){var n=B(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(n,t)}},L.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||(0,r.A)(t)!==(0,r.A)(this))return!1;var i=0;for(e in this)if(!(n.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)&&n.indexOf(e)<0&&i--;return 0===i},U.API={events:[]},U.version="4.2.1";var $=U.API,j=1,H=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},V=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},X=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(1===e.length?"0"+e:e)})},z=function(t){return t.toFixed(2)},G=function(t){return t.toFixed(5)};$.__acroform__={};var Y=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},W=function(t){return t*j},Z=function(t){var e=new ut,n=Ct.internal.getHeight(t)||0,r=Ct.internal.getWidth(t)||0;return e.BBox=[0,0,Number(z(r)),Number(z(n))],e},K=$.__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},q=$.__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)},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},tt=$.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return J(t,e-1)},et=$.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return K(t,e-1)},nt=$.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return q(t,e-1)},rt=$.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,i=t[0],s=t[1],o=t[2],a=t[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(s+a)||0,l.upperRight_X=n(i+o)||0,l.upperRight_Y=r(s)||0,[Number(z(l.lowerLeft_X)),Number(z(l.lowerLeft_Y)),Number(z(l.upperRight_X)),Number(z(l.upperRight_Y))]},it=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,r=st(t,n),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+" "+z(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var s=Z(t);return s.scope=t.scope,s.stream=e.join("\n"),s}},st=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,r={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 s=n,o=Ct.internal.getHeight(t)||0;o=o<0?-o:o;var a=Ct.internal.getWidth(t)||0;a=a<0?-a:a;var l=function(e,n,r){if(e+1<i.length){var s=n+" "+i[e+1][0];return ot(s,t,r).width<=a-4}return!1};s++;t:for(;s>0;){e="",s--;var A,c,h=ot("3",t,s).height,u=t.multiline?o-s:(o-h)/2,p=u+=2,d=0,f=0,g=0;if(s<=0){e="(...) Tj\n",e+="% Width of Text: "+ot(e,t,s=12).width+", FieldWidth:"+a+"\n";break}for(var m="",y=0,v=0;v<i.length;v++)if(i.hasOwnProperty(v)){var O=!1;if(1!==i[v].length&&g!==i[v].length-1){if((h+2)*(y+2)+2>o)continue t;m+=i[v][g],O=!0,f=v,v--}else{m=" "==(m+=i[v][g]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var b=parseInt(v),x=l(b,m,s),w=v>=i.length-1;if(x&&!w){m+=" ",g=0;continue}if(x||w){if(w)f=b;else if(t.multiline&&(h+2)*(y+2)+2>o)continue t}else{if(!t.multiline)continue t;if((h+2)*(y+2)+2>o)continue t;f=b}}for(var _="",S=d;S<=f;S++){var C=i[S];if(t.multiline){if(S===f){_+=C[g]+" ",g=(g+1)%C.length;continue}if(S===d){_+=C[C.length-1]+" ";continue}}_+=C[0]+" "}switch(_=" "==_.substr(_.length-1)?_.substr(0,_.length-1):_,c=ot(_,t,s).width,t.textAlign){case"right":A=a-c-2;break;case"center":A=(a-c)/2;break;default:A=2}e+=z(A)+" "+z(p)+" Td\n",e+="("+H(_)+") Tj\n",e+=-z(A)+" 0 Td\n",p=-(s+2),c=0,d=O?f:f+1,y++,m=""}break}return r.text=e,r.fontSize=s,r},ot=function(t,e,n){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},at={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},lt=function(t,e){var n={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===n.type&&t.object===n.object})&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},At=$.__acroform__.arrayToPdfArray=function(t,e,n){var i=function(t){return t};if(Array.isArray(t)){for(var s="[",o=0;o<t.length;o++)switch(0!==o&&(s+=" "),(0,r.A)(t[o])){case"boolean":case"number":case"object":s+=t[o].toString();break;case"string":"/"===t[o].substr(0,1)?s+="/"+X(t[o].substr(1)):(void 0!==e&&n&&(i=n.internal.getEncryptor(e)),s+="("+H(i(t[o].toString()))+")")}return s+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ct=function(t,e,n){var r=function(t){return t};return void 0!==e&&n&&(r=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+H(r(t))+")"},ht=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})};ht.prototype.toString=function(){return this.objId+" 0 R"},ht.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},ht.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 n in e)if(!1===Object.getOwnPropertyDescriptor(this,e[n]).configurable){var r=e[n],i=this[r];i&&(Array.isArray(i)?t.push({key:r,value:At(i,this.objId,this.scope)}):i instanceof ht?(i.scope=this.scope,t.push({key:r,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:r,value:i}))}return t};var ut=function(){ht.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}})};Y(ut,ht);var pt=function(){ht.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)),"("+H(e(t))+")"}},set:function(e){t=e}})};Y(pt,ht);var dt=function t(){ht.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(tt(e,3))},set:function(t){!0===Boolean(t)?this.F=et(e,3):this.F=nt(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(t){r[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(t){r[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(t){r[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(t){r[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 s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof xt)return;s="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+H(e(s))+")"},set:function(t){s=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(t){s=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var A=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===A?50/j:A},set:function(t){A=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 xt||this instanceof _t))return ct(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 vt==0?ct(u,this.objId,this.scope):u},set:function(t){t=t.toString(),u=this instanceof vt==0?"("===t.substr(0,1)?V(t.substr(1,t.length-2)):V(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof vt==1?V(u.substr(1,u.length-1)):u},set:function(t){t=t.toString(),u=this instanceof vt==1?"/"+X(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 vt==0?ct(p,this.objId,this.scope):p},set:function(t){t=t.toString(),p=this instanceof vt==0?"("===t.substr(0,1)?V(t.substr(1,t.length-2)):V(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof vt==1?V(p.substr(1,p.length-1)):p},set:function(t){t=t.toString(),p=this instanceof vt==1?"/"+X(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 d,f=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return f},set:function(t){t=Boolean(t),f=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(d)return d},set:function(t){d=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,1):this.Ff=nt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,2):this.Ff=nt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,3):this.Ff=nt(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}}})};Y(dt,ht);var ft=function(){dt.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 n,r;r=[],"string"==typeof(n=t)&&(r=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),e=r}}),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,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,18):this.Ff=nt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=et(this.Ff,19):this.Ff=nt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=et(this.Ff,20),e.sort()):this.Ff=nt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,22):this.Ff=nt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,23):this.Ff=nt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,27):this.Ff=nt(this.Ff,27)}}),this.hasAppearanceStream=!1};Y(ft,dt);var gt=function(){ft.call(this),this.fontName="helvetica",this.combo=!1};Y(gt,ft);var mt=function(){gt.call(this),this.combo=!0};Y(mt,gt);var yt=function(){mt.call(this),this.edit=!0};Y(yt,mt);var vt=function(){dt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,15):this.Ff=nt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,16):this.Ff=nt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,17):this.Ff=nt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,26):this.Ff=nt(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 n,r=[];for(n in r.push("<<"),e)r.push("/"+n+" ("+H(t(e[n]))+")");return r.push(">>"),r.join("\n")}},set:function(t){"object"===(0,r.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){var n=null==e?"":e.toString();"/"===n.substr(0,1)&&(n=n.substr(1)),t="/"+X(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+X(e)}})};Y(vt,dt);var Ot=function(){vt.call(this),this.pushButton=!0};Y(Ot,vt);var bt=function(){vt.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:[]}})};Y(bt,vt);var xt=function(){var t,e;dt.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 n,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,n=[];for(e in n.push("<<"),i)n.push("/"+e+" ("+H(t(i[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"===(0,r.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 n},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),n="/"+X(e)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),n="/"+X(e)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ct.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Y(xt,dt),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 n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},bt.prototype.createOption=function(t){var e=new xt;return e.Parent=this,e.optionName=t,this.Kids.push(e),Tt.call(this.scope,e),e};var wt=function(){vt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ct.CheckBox.createAppearanceStream()};Y(wt,vt);var _t=function(){dt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,13):this.Ff=nt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,21):this.Ff=nt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,23):this.Ff=nt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,24):this.Ff=nt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,25):this.Ff=nt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,26):this.Ff=nt(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}})};Y(_t,dt);var St=function(){_t.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(tt(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=et(this.Ff,14):this.Ff=nt(this.Ff,14)}}),this.password=!0};Y(St,_t);var Ct={CheckBox:{createAppearanceStream:function(){return{N:{On:Ct.CheckBox.YesNormal},D:{On:Ct.CheckBox.YesPushDown,Off:Ct.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=Z(t);e.scope=t.scope;var n=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),s=st(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+z(Ct.internal.getWidth(t))+" "+z(Ct.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+z(s.fontSize)+" Tf "+i),n.push("BT"),n.push(s.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=Z(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=[],s=Ct.internal.getHeight(t),o=Ct.internal.getWidth(t),a=st(t,t.caption);return i.push("1 g"),i.push("0 0 "+z(o)+" "+z(s)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+z(o-1)+" "+z(s-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+z(a.fontSize)+" Tf "+r),i.push(a.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=Z(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+z(Ct.internal.getWidth(t))+" "+z(Ct.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Ct.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Ct.RadioButton.Circle.YesNormal,e.D[t]=Ct.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=Z(t);e.scope=t.scope;var n=[],r=Ct.internal.getWidth(t)<=Ct.internal.getHeight(t)?Ct.internal.getWidth(t)/4:Ct.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Ct.internal.Bezier_C,s=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+G(Ct.internal.getWidth(t)/2)+" "+G(Ct.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),n.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),n.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),n.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=Z(t);e.scope=t.scope;var n=[],r=Ct.internal.getWidth(t)<=Ct.internal.getHeight(t)?Ct.internal.getWidth(t)/4:Ct.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),s=Number((i*Ct.internal.Bezier_C).toFixed(5)),o=Number((r*Ct.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+G(Ct.internal.getWidth(t)/2)+" "+G(Ct.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+G(Ct.internal.getWidth(t)/2)+" "+G(Ct.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=Z(t);e.scope=t.scope;var n=[],r=Ct.internal.getWidth(t)<=Ct.internal.getHeight(t)?Ct.internal.getWidth(t)/4:Ct.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),s=Number((i*Ct.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+G(Ct.internal.getWidth(t)/2)+" "+G(Ct.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Ct.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Ct.RadioButton.Cross.YesNormal,e.D[t]=Ct.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=Z(t);e.scope=t.scope;var n=[],r=Ct.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+z(Ct.internal.getWidth(t)-2)+" "+z(Ct.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(z(r.x1.x)+" "+z(r.x1.y)+" m"),n.push(z(r.x2.x)+" "+z(r.x2.y)+" l"),n.push(z(r.x4.x)+" "+z(r.x4.y)+" m"),n.push(z(r.x3.x)+" "+z(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=Z(t);e.scope=t.scope;var n=Ct.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+z(Ct.internal.getWidth(t))+" "+z(Ct.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+z(Ct.internal.getWidth(t)-2)+" "+z(Ct.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(z(n.x1.x)+" "+z(n.x1.y)+" m"),r.push(z(n.x2.x)+" "+z(n.x2.y)+" l"),r.push(z(n.x4.x)+" "+z(n.x4.y)+" m"),r.push(z(n.x3.x)+" "+z(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=Z(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+z(Ct.internal.getWidth(t))+" "+z(Ct.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};Ct.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Ct.internal.getWidth(t),n=Ct.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},Ct.internal.getWidth=function(t){var e=0;return"object"===(0,r.A)(t)&&(e=W(t.Rect[2])),e},Ct.internal.getHeight=function(t){var e=0;return"object"===(0,r.A)(t)&&(e=W(t.Rect[3])),e};var Et,Bt,Tt=$.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(dt.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(at)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");j=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new pt,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 n in e)if(e.hasOwnProperty(n)){var r=e[n];r.objId=void 0,r.hasAnnotation&&lt(r,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 n=!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 s=t[i],o=[],a=s.Rect;if(s.Rect&&(s.Rect=rt(s.Rect,e)),e.internal.newObjectDeferredBegin(s.objId,!0),s.DA=Ct.createDefaultAppearanceStream(s),"object"===(0,r.A)(s)&&"function"==typeof s.getKeyValueListForStream&&(o=s.getKeyValueListForStream()),s.Rect=a,s.hasAppearanceStream&&!s.appearanceStreamContent){var l=it(s);o.push({key:"AP",value:"<</N "+l+">>"}),e.internal.acroformPlugin.xForms.push(l)}if(s.appearanceStreamContent){var A="";for(var c in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(c)){var h=s.appearanceStreamContent[c];if(A+="/"+c+" ",A+="<<",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,s)),A+="/"+i+" "+u+" ",e.internal.acroformPlugin.xForms.indexOf(u)>=0||e.internal.acroformPlugin.xForms.push(u)}}else"function"==typeof(u=h)&&(u=u.call(e,s)),A+="/"+i+" "+u,e.internal.acroformPlugin.xForms.indexOf(u)>=0||e.internal.acroformPlugin.xForms.push(u);A+=">>"}o.push({key:"AP",value:"<<\n"+A+">>"})}e.internal.putStream({additionalKeyValues:o,objectId:s.objId}),e.internal.out("endobj")}n&&function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var i=n,s=t[n];e.internal.newObjectDeferredBegin(s.objId,!0),"object"===(0,r.A)(s)&&"function"==typeof s.putStream&&s.putStream(),delete t[i]}}(e.internal.acroformPlugin.xForms,e)}(e,t)}),t.internal.acroformPlugin.isInitialized=!0}}(this,t),!(t instanceof dt))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 Pt(t){return t.reduce(function(t,e,n){return t[e]=n,t},{})}$.AcroFormChoiceField=ft,$.AcroFormListBox=gt,$.AcroFormComboBox=mt,$.AcroFormEditBox=yt,$.AcroFormButton=vt,$.AcroFormPushButton=Ot,$.AcroFormRadioButton=bt,$.AcroFormCheckBox=wt,$.AcroFormTextField=_t,$.AcroFormPasswordField=St,$.AcroFormAppearance=Ct,$.AcroForm={ChoiceField:ft,ListBox:gt,ComboBox:mt,EditBox:yt,Button:vt,PushButton:Ot,RadioButton:bt,CheckBox:wt,TextField:_t,PasswordField:St,Appearance:Ct},U.AcroForm={ChoiceField:ft,ListBox:gt,ComboBox:mt,EditBox:yt,Button:vt,PushButton:Ot,RadioButton:bt,CheckBox:wt,TextField:_t,PasswordField:St,Appearance:Ct},U.AcroForm,function(t){var e="addImage_";t.__addimage__={};var n="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]]},s=t.__addimage__.getImageFileTypeByImageData=function(t,e){var r,s,o,a,l,A=n;if("RGBA"===(e=e||n)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(_(t))for(l in i)for(o=i[l],r=0;r<o.length;r+=1){for(a=!0,s=0;s<o[r].length;s+=1)if(void 0!==o[r][s]&&o[r][s]!==t[s]){a=!1;break}if(!0===a){A=l;break}}else for(l in i)for(o=i[l],r=0;r<o.length;r+=1){for(a=!0,s=0;s<o[r].length;s+=1)if(void 0!==o[r][s]&&o[r][s]!==t.charCodeAt(s)){a=!1;break}if(!0===a){A=l;break}}return A===n&&e!==n&&(A=e),A},o=function t(e){for(var n=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var s=[];if(s.push({key:"Type",value:"/XObject"}),s.push({key:"Subtype",value:"/Image"}),s.push({key:"Width",value:e.width}),s.push({key:"Height",value:e.height}),e.colorSpace===v.INDEXED?s.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]"}):(s.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===v.DEVICE_CMYK&&s.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),s.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&s.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)&&e.transparency.length>0){for(var o="",a=0,l=e.transparency.length;a<l;a++)o+=e.transparency[a]+" "+e.transparency[a]+" ";s.push({key:"Mask",value:"["+o+"]"})}void 0!==e.sMask&&s.push({key:"SMask",value:e.objectId+1+" 0 R"});var A=void 0!==e.filter?["/"+e.filter]:void 0;if(r({data:e.data,additionalKeyValues:s,alreadyAppliedFilters:A,objectId:e.objectId}),n("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();r({data:C(new Uint8Array(e.palette)),objectId:p}),n("endobj")}},a=function(){var t=this.internal.collections[e+"images"];for(var n in t)o.call(this,t[n])},l=function(){var t,n=this.internal.collections[e+"images"],r=this.internal.write;for(var i in n)r("/I"+(t=n[i]).index,t.objectId,"0","R")},A=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",l))},c=function(){var t=this.internal.collections[e+"images"];return A.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,r.A)(t)&&1===t.nodeType},d=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var r=""+e.getAttribute("src");if(0===r.indexOf("data:image/"))return f(unescape(r).split("base64,").pop());var i=t.loadFile(r,!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 s;switch(n){case"PNG":s="image/png";break;case"WEBP":s="image/webp";break;default:s="image/jpeg"}return f(e.toDataURL(s,1).split("base64,").pop())}},g=function(t){var n=this.internal.collections[e+"images"];if(n)for(var r in n)if(t===n[r].alias)return n[r]},m=function(t,e,n){return t||e||(t=-96,e=-96),t<0&&(t=-1*n.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.height*72/e/this.internal.scaleFactor),0===t&&(t=e*n.width/n.height),0===e&&(e=t*n.height/n.width),[t,e]},y=function(t,e,n,r,i,s){var o=m.call(this,n,r,i),a=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,A=c.call(this);if(n=o[0],r=o[1],A[i.index]=i,s){s*=Math.PI/180;var h=Math.cos(s),u=Math.sin(s),p=function(t){return t.toFixed(4)},d=[p(h),p(u),p(-1*u),p(h),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,a(t),l(e+r),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([a(n),"0","0",a(r),"0","0","cm"].join(" "))):this.internal.write([a(n),"0","0",a(r),a(t),l(e+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},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 O=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},b=t.__addimage__.sHashCode=function(t){var e,n,r=0;if("string"==typeof t)for(n=t.length,e=0;e<n;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;else if(_(t))for(n=t.byteLength/2,e=0;e<n;e++)r=(r<<5)-r+t[e],r|=0;return r},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},w=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 _=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},S=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},C=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",n=_(t)?t:new Uint8Array(t),r=0;r<n.length;r+=8192)e+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return e};t.addImage=function(){var t,e,i,s,o,a,l,c,h;if("number"==typeof arguments[1]?(e=n,i=arguments[1],s=arguments[2],o=arguments[3],a=arguments[4],l=arguments[5],c=arguments[6],h=arguments[7]):(e=arguments[1],i=arguments[2],s=arguments[3],o=arguments[4],a=arguments[5],l=arguments[6],c=arguments[7],h=arguments[8]),"object"===(0,r.A)(t=arguments[0])&&!p(t)&&"imageData"in t){var u=t;t=u.imageData,e=u.format||e||n,i=u.x||i||0,s=u.y||s||0,o=u.w||u.width||o,a=u.h||u.height||a,l=u.alias||l,c=u.compression||c,h=u.rotation||u.angle||h}var d=this.internal.getFilters();if(void 0===c&&-1!==d.indexOf("FlateEncode")&&(c="SLOW"),isNaN(i)||isNaN(s))throw new Error("Invalid coordinates passed to jsPDF.addImage");A.call(this);var f=E.call(this,t,e,l,c);return y.call(this,i,s,o,a,f,h),this};var E=function(e,r,i,o){var a,l,A;if("string"==typeof e&&s(e)===n){e=unescape(e);var c=B(e,!1);(""!==c||void 0!==(c=t.loadFile(e,!0)))&&(e=c)}if(p(e)&&(e=d(e,r)),r=s(e,r),!u(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if((null==(A=i)||0===A.length)&&(i=function(t){return"string"==typeof t||_(t)?b(t):_(t.data)?b(t.data):null}(e)),(a=g.call(this,i))||(e instanceof Uint8Array||"RGBA"===r||(l=e,e=S(e)),a=this["process"+r.toUpperCase()](e,h.call(this),i,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:O.NONE}(o),l)),!a)throw new Error("An unknown error occurred whilst processing the image.");return a},B=t.__addimage__.convertBase64ToBinaryString=function(t,e){e="boolean"!=typeof e||e;var n,r="";if("string"==typeof t){var i;n=null!==(i=w(t))&&void 0!==i?i:t;try{r=f(n)}catch(t){if(e)throw x(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return r};t.getImageProperties=function(e){var r,i,o="";if(p(e)&&(e=d(e)),"string"==typeof e&&s(e)===n&&(""===(o=B(e,!1))&&(o=t.loadFile(e)||""),e=o),i=s(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=S(e)),!(r=this["process"+i.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return r.fileType=i,r}}(U.API),Et=U.API,Bt=function(t){if(void 0!==t&&""!=t)return!0},U.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),Et.events.push(["putPage",function(t){for(var e,n,r,i=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(t.objId),a=t.pageContext.annotations,l=!1,A=0;A<a.length&&!l;A++)switch((e=a[A]).type){case"link":(Bt(e.options.url)||Bt(e.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){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(),d=this.internal.newAdditionalObject(),f=this.internal.getEncryptor(p.objId),g=e.title||"Note";r="<</Type /Annot /Subtype /Text "+(n="/Rect ["+i(e.bounds.x)+" "+s(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w)+" "+s(e.bounds.y)+"] ")+"/Contents ("+h(f(e.contents))+")",r+=" /Popup "+d.objId+" 0 R",r+=" /P "+o.objId+" 0 R",r+=" /T ("+h(f(g))+") >>",p.content=r;var m=p.objId+" 0 R";r="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+i(e.bounds.x+30)+" "+s(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w+30)+" "+s(e.bounds.y)+"] ")+" /Parent "+m,e.open&&(r+=" /Open true"),r+=" >>",d.content=r,this.internal.write(p.objId,"0 R",d.objId,"0 R");break;case"freetext":n="/Rect ["+i(e.bounds.x)+" "+s(e.bounds.y)+" "+i(e.bounds.x+e.bounds.w)+" "+s(e.bounds.y+e.bounds.h)+"] ";var y="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(e.color||"#000000");r="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+h(u(e.contents))+")",r+=" /DS("+h(u(y))+")",r+=" /Border [0 0 0]",r+=" >>",this.internal.write(r);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(n="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",r="",e.options.url)r="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+h(u(e.options.url))+") >>";else if(e.options.pageNumber)switch(r="<</Type /Annot /Subtype /Link "+n+"/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":r+=" /Fit]";break;case"FitH":r+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,r+=" /FitV "+e.options.left+"]";break;default:var O=s(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),r+=" /XYZ "+e.options.left+" "+O+" "+e.options.zoom+"]"}""!=r&&(r+=" >>",this.internal.write(r))}}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,n,r,i){var s=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:o(t),y:a(e),w:o(t+n),h:a(e+r)},options:i,type:"link"})},Et.textWithLink=function(t,e,n,r){var i,s,o=this.getTextWidth(t),a=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){s=r.maxWidth;var l=this.splitTextToSize(t,s).length;i=Math.ceil(a*l)}else s=o,i=a;return this.text(t,e,n,r),n+=.2*a,"center"===r.align&&(e-=o/2),"right"===r.align&&(e-=o),this.link(e,n-a,s,i,r),o},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]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var s=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},o=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 o(t)&&s(t)&&e[t.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&s(t)&&e[t.charCodeAt(0)].length>=1};var A=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&s(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&s(t)&&e[t.charCodeAt(0)].length>=3};var c=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&s(t)&&4==e[t.charCodeAt(0)].length},h=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i="",s=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(s++,"number"==typeof(r=r[t.charCodeAt(e)])&&(i+=String.fromCharCode(r),r=n,s=0),e===t.length-1&&(r=n,i+=t.charAt(e-(s-1)),e-=s-1,s=0)):(r=n,i+=t.charAt(e-s),e-=s,s=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]};var u=t.__arabicParser__.getCorrectForm=function(t,e,n){return o(t)?!1===s(t)?-1:!A(t)||!o(e)&&!o(n)||!o(n)&&a(e)||a(t)&&!o(e)||a(t)&&l(e)||a(t)&&a(e)?0:c(t)&&o(e)&&!a(e)&&o(n)&&A(n)?3:a(t)||!o(n)?1:2:-1},p=function(t){var n=0,r=0,i=0,s="",a="",l="",A=(t=t||"").split("\\s+"),c=[];for(n=0;n<A.length;n+=1){for(c.push(""),r=0;r<A[n].length;r+=1)s=A[n][r],a=A[n][r-1],l=A[n][r+1],o(s)?(i=u(s,a,l),c[n]+=-1!==i?String.fromCharCode(e[s.charCodeAt(0)][i]):s):c[n]+=s;c[n]=h(c[n])}return c.join(" ")},d=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(e)){var r=0;for(n=[],r=0;r<e.length;r+=1)Array.isArray(e[r])?n.push([p(e[r][0]),e[r][1],e[r][2]]):n.push([p(e[r])]);t=n}else t=p(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",d])}(U.API),U.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 n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=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 n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);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}])}(U.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!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(),s.call(this))},s=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=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 n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var s=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return s},set:function(t){s=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},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 n=(e=e||{}).fontSize||this.getFontSize(),r=e.font||this.getFont(),s=e.scaleFactor||this.internal.scaleFactor,o=0,a=0,l=0,A=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(A.splitTextToSize(e,c))},[])):t=Array.isArray(t)?t:[t];for(var h=0;h<t.length;h++)o<(l=this.getStringUnitWidth(t[h],{font:r})*n)&&(o=l);return 0!==o&&(a=t.length),{w:o/=s,h:Math.max((a*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/s,0)}},t.cellAddPage=function(){i.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(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 o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),i.call(this);var r=this.internal.__cell__.lastCell,s=this.internal.__cell__.padding,a=this.internal.__cell__.margins||e,l=this.internal.__cell__.tableHeaderRow,A=this.internal.__cell__.printHeaders;return void 0!==r.lineNumber&&(r.lineNumber===t.lineNumber?(t.x=(r.x||0)+(r.width||0),t.y=r.y||0):r.y+r.height+t.height+a.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=a.top,A&&l&&(this.printHeaderRow(t.lineNumber,!0),t.y+=l[0].height)):t.y=r.y+r.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-s,t.y+s,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+s,{align:"center",baseline:"top",maxWidth:t.width-s-s}):this.text(t.text,t.x+s,t.y+s,{align:"left",baseline:"top",maxWidth:t.width-s-s})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,A,c,h){if(i.call(this),!A)throw new Error("No data for PDF table.");var u,p,d,f,g=[],m=[],y=[],v={},O={},b=[],x=[],w=(h=h||{}).autoSize||!1,_=!1!==h.printHeaders,S=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,C=h.margins||Object.assign({width:this.getPageWidth()},e),E="number"==typeof h.padding?h.padding:3,B=h.headerBackgroundColor||"#c8c8c8",T=h.headerTextColor||"#000";if(s.call(this),this.internal.__cell__.printHeaders=_,this.internal.__cell__.margins=C,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=B,this.internal.__cell__.headerTextColor=T,this.setFontSize(S),null==c)m=g=Object.keys(A[0]),y=g.map(function(){return"left"});else if(Array.isArray(c)&&"object"===(0,r.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)O[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(w||Array.isArray(c)&&"string"==typeof c[0])for(u=0;u<g.length;u+=1){for(v[f=g[u]]=A.map(function(t){return t[f]}),this.setFont(void 0,"bold"),b.push(this.getTextDimensions(m[u],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),p=v[f],this.setFont(void 0,"normal"),d=0;d<p.length;d+=1)b.push(this.getTextDimensions(p[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);O[f]=Math.max.apply(null,b)+E+E,b=[]}if(_){var P={};for(u=0;u<g.length;u+=1)P[g[u]]={},P[g[u]].text=m[u],P[g[u]].align=y[u];var k=l.call(this,P,O);x=g.map(function(e){return new o(t,n,O[e],k,P[e].text,void 0,P[e].align)}),this.setTableHeaderRow(x),this.printHeaderRow(1,!1)}var I=c.reduce(function(t,e){return t[e.name]=e.align,t},{});for(u=0;u<A.length;u+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:u,data:A[u]},this);var N=l.call(this,A[u],O);for(d=0;d<g.length;d+=1){var Q=A[u][g[d]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:u,col:d,data:Q},this),a.call(this,new o(t,n,O[g[d]],N,Q,u+2,I[g[d]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var l=function(t,e){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map(function(r){var i=t[r];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[r]-n-n)},this).map(function(t){return this.getLineHeightFactor()*t.length*r/i+n+n},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 r;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var s=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(s[0],s[1],s[2],s[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],A=0;A<this.internal.__cell__.tableHeaderRow.length;A+=1){r=this.internal.__cell__.tableHeaderRow[A].clone(),e&&(r.y=this.internal.__cell__.margins.top||0,l.push(r)),r.lineNumber=t;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,r),this.setTextColor(c)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(U.API);var kt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},It=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Nt=Pt(It),Qt=[100,200,300,400,500,600,700,800,900],Ft=Pt(Qt);function Lt(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(t){return kt[t=t||"normal"]?t:"normal"}(t.style),r=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 Nt[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:n,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,n,r].join(" ")}}}function Mt(t,e,n,r){var i;for(i=n;i>=0&&i<e.length;i+=r)if(t[e[i]])return t[e[i]];for(i=n;i>=0&&i<e.length;i-=r)if(t[e[i]])return t[e[i]]}var Dt={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Rt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ut(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function $t(t){return t.trimLeft()}function jt(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=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,Xt,zt,Gt,Yt,Wt=["times"];function Zt(t,e,n,r,s){var o=4,a=Jt;switch(s){case U.API.image_compression.FAST:o=1,a=qt;break;case U.API.image_compression.MEDIUM:o=6,a=te;break;case U.API.image_compression.SLOW:o=9,a=ee}t=function(t,e,n,r){for(var i,s=t.length/e,o=new Uint8Array(t.length+s),a=[Kt,qt,Jt,te,ee],l=0;l<s;l+=1){var A=l*e,c=t.subarray(A,A+e);if(r)o.set(r(c,n,i),A+l);else{for(var h=a.length,u=[],p=0;p<h;p+=1)u[p]=a[p](c,n,i);var d=re(u.concat());o.set(u[d],A+l)}i=c}return o}(t,e,Math.ceil(n*r/8),a);var l=(0,i.$)(t,{level:o});return U.API.__addimage__.arrayBufferToBinaryString(l)}function Kt(t){var e=Array.apply([],t);return e.unshift(0),e}function qt(t,e){var n=t.length,r=[];r[0]=1;for(var i=0;i<n;i+=1){var s=t[i-e]||0;r[i+1]=t[i]-s+256&255}return r}function Jt(t,e,n){var r=t.length,i=[];i[0]=2;for(var s=0;s<r;s+=1){var o=n&&n[s]||0;i[s+1]=t[s]-o+256&255}return i}function te(t,e,n){var r=t.length,i=[];i[0]=3;for(var s=0;s<r;s+=1){var o=t[s-e]||0,a=n&&n[s]||0;i[s+1]=t[s]+256-(o+a>>>1)&255}return i}function ee(t,e,n){var r=t.length,i=[];i[0]=4;for(var s=0;s<r;s+=1){var o=ne(t[s-e]||0,n&&n[s]||0,n&&n[s-e]||0);i[s+1]=t[s]-o+256&255}return i}function ne(t,e,n){if(t===e&&e===n)return t;var r=Math.abs(e-n),i=Math.abs(t-n),s=Math.abs(t+e-n-n);return r<=i&&r<=s?t:i<=s?e:n}function re(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 ie(t,e,n){var r=e*n,i=Math.floor(r/8),s=16-(r-8*i+n),o=(1<<n)-1;return oe(t,i)>>s&o}function se(t,e,n,r){var i=n*r,s=Math.floor(i/8),o=16-(i-8*s+r),a=(1<<r)-1,l=(e&a)<<o;!function(t,e,n){if(e+1<t.byteLength)t.setUint16(e,n,!1);else{var r=n>>8&255;t.setUint8(e,r)}}(t,s,oe(t,s)&~(a<<o)&65535|l)}function oe(t,e){return e+1<t.byteLength?t.getUint16(e,!1):t.getUint8(e)<<8}function ae(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 n=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,i=t[e++],s=i>>7,o=1<<1+(7&i);t[e++],t[e++];var a=null,l=null;s&&(a=e,l=o,e+=3*o);var A=!0,c=[],h=0,u=null,p=0,d=null;for(this.width=n,this.height=r;A&&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,d=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((E=t[e++])>=0))throw Error("Invalid block size");if(0===E)break;e+=E}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var f=t[e++];h=t[e++]|t[e++]<<8,u=t[e++],1&f||(u=null),p=f>>2&7,e++;break;case 254:for(;;){if(!((E=t[e++])>=0))throw Error("Invalid block size");if(0===E)break;e+=E}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,O=t[e++],b=O>>6&1,x=1<<1+(7&O),w=a,_=l,S=!1;O>>7&&(S=!0,w=e,_=x,e+=3*x);var C=e;for(e++;;){var E;if(!((E=t[e++])>=0))throw Error("Invalid block size");if(0===E)break;e+=E}c.push({x:g,y:m,width:y,height:v,has_local_palette:S,palette_offset:w,palette_size:_,data_offset:C,data_length:e-C,transparent_index:u,interlaced:!!b,delay:h,disposal:p});break;case 59:A=!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 d},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,r){var i=this.frameInfo(e),s=i.width*i.height;if(s>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var o=new Uint8Array(s);le(t,i.data_offset,o,s);var a=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var A=i.width,c=n-A,h=A,u=4*(i.y*n+i.x),p=4*((i.y+i.height)*n+i.x),d=u,f=4*c;!0===i.interlaced&&(f+=4*n*7);for(var g=8,m=0,y=o.length;m<y;++m){var v=o[m];if(0===h&&(h=A,(d+=f)>=p&&(f=4*c+4*n*(g-1),d=u+(A+c)*(g<<1),g>>=1)),v===l)d+=4;else{var O=t[a+3*v],b=t[a+3*v+1],x=t[a+3*v+2];r[d++]=x,r[d++]=b,r[d++]=O,r[d++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,r){var i=this.frameInfo(e),s=i.width*i.height;if(s>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var o=new Uint8Array(s);le(t,i.data_offset,o,s);var a=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var A=i.width,c=n-A,h=A,u=4*(i.y*n+i.x),p=4*((i.y+i.height)*n+i.x),d=u,f=4*c;!0===i.interlaced&&(f+=4*n*7);for(var g=8,m=0,y=o.length;m<y;++m){var v=o[m];if(0===h&&(h=A,(d+=f)>=p&&(f=4*c+4*n*(g-1),d=u+(A+c)*(g<<1),g>>=1)),v===l)d+=4;else{var O=t[a+3*v],b=t[a+3*v+1],x=t[a+3*v+2];r[d++]=O,r[d++]=b,r[d++]=x,r[d++]=255}--h}}}function le(t,e,n,r){for(var i=t[e++],s=1<<i,o=s+1,a=o+1,l=i+1,c=(1<<l)-1,h=0,u=0,p=0,d=t[e++],f=new Int32Array(4096),g=null;;){for(;h<16&&0!==d;)u|=t[e++]<<h,h+=8,1===d?d=t[e++]:--d;if(h<l)break;var m=u&c;if(u>>=l,h-=l,m!==s){if(m===o)break;for(var y=m<a?m:g,v=0,O=y;O>s;)O=f[O]>>8,++v;var b=O;if(p+v+(y!==m?1:0)>r)return void A.log("Warning, gif stream longer than expected.");n[p++]=b;var x=p+=v;for(y!==m&&(n[p++]=b),O=y;v--;)O=f[O],n[--x]=255&O,O>>=8;null!==g&&a<4096&&(f[a++]=g<<8|b,a>=c+1&&l<12&&(++l,c=c<<1|1)),g=m}else a=o+1,c=(1<<(l=i+1))-1,g=null}return p!==r&&A.log("Warning, gif stream shorter than expected."),n}function Ae(t){var e,n,r,i,s,o=Math.floor,a=new Array(64),l=new Array(64),A=new Array(64),c=new Array(64),h=new Array(65535),u=new Array(65535),p=new Array(64),d=new Array(64),f=[],g=0,m=7,y=new Array(64),v=new Array(64),O=new Array(64),b=new Array(256),x=new Array(2048),w=[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],_=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],E=[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],B=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],P=[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 I(t,e){for(var n=0,r=0,i=new Array,s=1;s<=16;s++){for(var o=1;o<=t[s];o++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=s,r++,n++;n*=2}return i}function N(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(g|=1<<m),n--,--m<0&&(255==g?(Q(255),Q(0)):Q(g),m=7,g=0)}function Q(t){f.push(t)}function F(t){Q(t>>8&255),Q(255&t)}function L(t,e,n,r,i){for(var s,o=i[0],a=i[240],l=function(t,e){var n,r,i,s,o,a,l,A,c,h,u=0;for(c=0;c<8;++c){n=t[u],r=t[u+1],i=t[u+2],s=t[u+3],o=t[u+4],a=t[u+5],l=t[u+6];var d=n+(A=t[u+7]),f=n-A,g=r+l,m=r-l,y=i+a,v=i-a,O=s+o,b=s-o,x=d+O,w=d-O,_=g+y,S=g-y;t[u]=x+_,t[u+4]=x-_;var C=.707106781*(S+w);t[u+2]=w+C,t[u+6]=w-C;var E=.382683433*((x=b+v)-(S=m+f)),B=.5411961*x+E,T=1.306562965*S+E,P=.707106781*(_=v+m),k=f+P,I=f-P;t[u+5]=I+B,t[u+3]=I-B,t[u+1]=k+T,t[u+7]=k-T,u+=8}for(u=0,c=0;c<8;++c){n=t[u],r=t[u+8],i=t[u+16],s=t[u+24],o=t[u+32],a=t[u+40],l=t[u+48];var N=n+(A=t[u+56]),Q=n-A,F=r+l,L=r-l,M=i+a,D=i-a,R=s+o,U=s-o,$=N+R,j=N-R,H=F+M,V=F-M;t[u]=$+H,t[u+32]=$-H;var X=.707106781*(V+j);t[u+16]=j+X,t[u+48]=j-X;var z=.382683433*(($=U+D)-(V=L+Q)),G=.5411961*$+z,Y=1.306562965*V+z,W=.707106781*(H=D+L),Z=Q+W,K=Q-W;t[u+40]=K+G,t[u+24]=K-G,t[u+8]=Z+Y,t[u+56]=Z-Y,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),A=0;A<64;++A)d[w[A]]=l[A];var c=d[0]-n;n=d[0],0==c?N(r[0]):(N(r[u[s=32767+c]]),N(h[s]));for(var f=63;f>0&&0==d[f];)f--;if(0==f)return N(o),n;for(var g,m=1;m<=f;){for(var y=m;0==d[m]&&m<=f;)++m;var v=m-y;if(v>=16){g=v>>4;for(var O=1;O<=g;++O)N(a);v&=15}s=32767+d[m],N(i[(v<<4)+u[s]]),N(h[s]),m++}return 63!=f&&N(o),n}function M(t){t=Math.min(Math.max(t,1),100),s!=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],n=0;n<64;n++){var r=o((e[n]*t+50)/100);r=Math.min(Math.max(r,1),255),a[w[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],s=0;s<64;s++){var h=o((i[s]*t+50)/100);h=Math.min(Math.max(h,1),255),l[w[s]]=h}for(var u=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,d=0;d<8;d++)for(var f=0;f<8;f++)A[p]=1/(a[w[p]]*u[d]*u[f]*8),c[p]=1/(l[w[p]]*u[d]*u[f]*8),p++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),s=t)}this.encode=function(t,s){s&&M(s),f=new Array,g=0,m=7,F(65496),F(65504),F(16),Q(74),Q(70),Q(73),Q(70),Q(0),Q(1),Q(1),Q(0),F(1),F(1),Q(0),Q(0),function(){F(65499),F(132),Q(0);for(var t=0;t<64;t++)Q(a[t]);Q(1);for(var e=0;e<64;e++)Q(l[e])}(),function(t,e){F(65472),F(17),Q(8),F(e),F(t),Q(3),Q(1),Q(17),Q(0),Q(2),Q(17),Q(1),Q(3),Q(17),Q(1)}(t.width,t.height),function(){F(65476),F(418),Q(0);for(var t=0;t<16;t++)Q(_[t+1]);for(var e=0;e<=11;e++)Q(S[e]);Q(16);for(var n=0;n<16;n++)Q(C[n+1]);for(var r=0;r<=161;r++)Q(E[r]);Q(1);for(var i=0;i<16;i++)Q(B[i+1]);for(var s=0;s<=11;s++)Q(T[s]);Q(17);for(var o=0;o<16;o++)Q(P[o+1]);for(var a=0;a<=161;a++)Q(k[a])}(),F(65498),F(12),Q(3),Q(1),Q(0),Q(2),Q(17),Q(3),Q(17),Q(0),Q(63),Q(0);var o=0,h=0,u=0;g=0,m=7,this.encode.displayName="_encode_";for(var p,d,b,w,I,D,R,U,$,j=t.data,H=t.width,V=t.height,X=4*H,z=0;z<V;){for(p=0;p<X;){for(I=X*z+p,R=-1,U=0,$=0;$<64;$++)D=I+(U=$>>3)*X+(R=4*(7&$)),z+U>=V&&(D-=X*(z+1+U-V)),p+R>=X&&(D-=p+R-X+4),d=j[D++],b=j[D++],w=j[D++],y[$]=(x[d]+x[b+256|0]+x[w+512|0]>>16)-128,v[$]=(x[d+768|0]+x[b+1024|0]+x[w+1280|0]>>16)-128,O[$]=(x[d+1280|0]+x[b+1536|0]+x[w+1792|0]>>16)-128;o=L(y,A,o,e,r),h=L(v,c,h,n,i),u=L(O,c,u,n,i),p+=32}z+=8}if(m>=0){var G=[];G[1]=m+1,G[0]=(1<<m+1)-1,N(G)}return F(65497),new Uint8Array(f)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)b[e]=t(e)}(),e=I(_,S),n=I(B,T),r=I(C,E),i=I(P,k),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)u[32767+r]=n,h[32767+r]=[],h[32767+r][1]=n,h[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)u[32767+i]=n,h[32767+i]=[],h[32767+i][1]=n,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}(),M(t)}function ce(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 he(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var r=0;4>r;r++)if(t[e+r]!=n.charCodeAt(r))return!0;return!1}function r(t,e,n,r,i){for(var s=0;s<i;s++)t[e+s]=n[r+s]}function i(t,e,n,r){for(var i=0;i<r;i++)t[e+i]=n}function s(t){return new Int32Array(t)}function o(t,e){for(var n=[],r=0;r<t;r++)n.push(new e);return n}function a(t,e){var n=[];return function t(n,r,i){for(var s=i[r],o=0;o<s&&(n.push(i.length>r+1?[]:new e),!(i.length<r+1));o++)t(n[o],r+1,i)}(n,0,t),n}var l=function(){var t=this;function l(t,e){for(var n=1<<e-1>>>0;t&n;)n>>>=1;return n?(t&n-1)+n:t}function A(t,n,r,i,s){e(!(i%r));do{t[n+(i-=r)]=s}while(0<i)}function c(t,n,r,i,o){if(e(2328>=o),512>=o)var a=s(512);else if(null==(a=s(o)))return 0;return function(t,n,r,i,o,a){var c,u,p=n,d=1<<r,f=s(16),g=s(16);for(e(0!=o),e(null!=i),e(null!=t),e(0<r),u=0;u<o;++u){if(15<i[u])return 0;++f[i[u]]}if(f[0]==o)return 0;for(g[1]=0,c=1;15>c;++c){if(f[c]>1<<c)return 0;g[c+1]=g[c]+f[c]}for(u=0;u<o;++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],A(t,p,1,d,i),d;var m,y=-1,v=d-1,O=0,b=1,x=1,w=1<<r;for(u=0,c=1,o=2;c<=r;++c,o<<=1){if(b+=x<<=1,0>(x-=f[c]))return 0;for(;0<f[c];--f[c])(i=new h).g=c,i.value=a[u++],A(t,p+O,o,w,i),O=l(O,c)}for(c=r+1,o=2;15>=c;++c,o<<=1){if(b+=x<<=1,0>(x-=f[c]))return 0;for(;0<f[c];--f[c]){if(i=new h,(O&v)!=y){for(p+=w,m=1<<(y=c)-r;15>y&&!(0>=(m-=f[y]));)++y,m<<=1;d+=w=1<<(m=y-r),t[n+(y=O&v)].g=m+r,t[n+y].value=p-n-y}i.g=c-r,i.value=a[u++],A(t,p+(O>>r),o,w,i),O=l(O,c)}}return b!=2*g[15]-1?0:d}(t,n,r,i,o,a)}function h(){this.value=this.g=0}function u(){this.value=this.g=0}function p(){this.G=o(5,h),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Dn,u)}function d(t,n,r,i){e(null!=t),e(null!=n),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=r,t.Jd=n,t.Yc=r+i,t.Zc=4<=i?r+i-4+1:r,C(t)}function f(t,e){for(var n=0;0<e--;)n|=B(t,128)<<e;return n}function g(t,e){var n=f(t,e);return E(t)?-n:n}function m(t,n,r,i){var s,o=0;for(e(null!=t),e(null!=n),e(4294967288>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),s=0;s<i;++s)o+=n[r+s]<<8*s;t.Ra=o,t.bb=i,t.oa=n,t.pa=r}function y(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<$n-8>>>0,++t.bb,t.u-=8;w(t)&&(t.h=1,t.u=0)}function v(t,n){if(e(0<=n),!t.h&&n<=Un){var r=x(t)&Rn[n];return t.u+=n,y(t),r}return t.h=1,t.u=0}function O(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function b(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function x(t){return t.Ra>>>(t.u&$n-1)>>>0}function w(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>$n}function _(t,e){t.u=e,t.h=w(t)}function S(t){t.u>=jn&&(e(t.u>=jn),y(t))}function C(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 E(t){return f(t,1)}function B(t,e){var n=t.Ca;0>t.b&&C(t);var r=t.b,i=n*e>>>8,s=(t.I>>>r>i)+0;for(s?(n-=i,t.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+Hn[r],t.b-=r,t.Ca=(n<<r)-1,s}function T(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n}function P(t,e){return t[e+0]|t[e+1]<<8}function k(t,e){return P(t,e)|t[e+2]<<16}function I(t,e){return P(t,e)|P(t,e+2)<<16}function N(t,n){var r=1<<n;return e(null!=t),e(0<n),t.X=s(r),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function Q(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),r(n.X,0,t.X,0,1<<n.Xa)}function F(){this.X=[],this.Xa=this.Mb=0}function L(t,n,r,i){e(null!=r),e(null!=i);var s=r[0],o=i[0];return 0==s&&(s=(t*o+n/2)/n),0==o&&(o=(n*s+t/2)/t),0>=s||0>=o?0:(r[0]=s,i[0]=o,1)}function M(t,e){return t+(1<<e)-1>>>e}function D(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function R(e,n){t[n]=function(n,r,i,s,o,a,l){var A;for(A=0;A<o;++A){var c=t[e](a[l+A-1],i,s+A);a[l+A]=D(n[r+A],c)}}}function U(){this.ud=this.hd=this.jd=0}function $(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function j(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function H(t,e){return j(t+(t-e+.5>>1))}function V(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function X(t,e,n,r,i,s,o){for(r=s[o-1],n=0;n<i;++n)s[o+n]=r=D(t[e+n],r)}function z(t,e,n,r,i){var s;for(s=0;s<n;++s){var o=t[e+s],a=o>>8&255,l=16711935&(l=(l=16711935&o)+((a<<16)+a));r[i+s]=(4278255360&o)+l>>>0}}function G(t,e){e.jd=255&t,e.hd=t>>8&255,e.ud=t>>16&255}function Y(t,e,n,r,i,s){var o;for(o=0;o<r;++o){var a=e[n+o],l=a>>>8,A=a,c=255&(c=(c=a>>>16)+((t.jd<<24>>24)*(l<<24>>24)>>>5));A=255&(A=(A+=(t.hd<<24>>24)*(l<<24>>24)>>>5)+((t.ud<<24>>24)*(c<<24>>24)>>>5)),i[s+o]=(4278255360&a)+(c<<16)+A}}function W(e,n,r,i,s){t[n]=function(t,e,n,r,o,a,l,A,c){for(r=l;r<A;++r)for(l=0;l<c;++l)o[a++]=s(n[i(t[e++])])},t[e]=function(e,n,o,a,l,A,c){var h=8>>e.b,u=e.Ea,p=e.K[0],d=e.w;if(8>h)for(e=(1<<e.b)-1,d=(1<<h)-1;n<o;++n){var f,g=0;for(f=0;f<u;++f)f&e||(g=i(a[l++])),A[c++]=s(p[g&d]),g>>=h}else t["VP8LMapColor"+r](a,l,p,d,A,c,n,o,u)}}function Z(t,e,n,r,i){for(n=e+n;e<n;){var s=t[e++];r[i++]=s>>16&255,r[i++]=s>>8&255,r[i++]=255&s}}function K(t,e,n,r,i){for(n=e+n;e<n;){var s=t[e++];r[i++]=s>>16&255,r[i++]=s>>8&255,r[i++]=255&s,r[i++]=s>>24&255}}function q(t,e,n,r,i){for(n=e+n;e<n;){var s=(o=t[e++])>>16&240|o>>12&15,o=240&o|o>>28&15;r[i++]=s,r[i++]=o}}function J(t,e,n,r,i){for(n=e+n;e<n;){var s=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;r[i++]=s,r[i++]=o}}function tt(t,e,n,r,i){for(n=e+n;e<n;){var s=t[e++];r[i++]=255&s,r[i++]=s>>8&255,r[i++]=s>>16&255}}function et(t,e,n,i,s,o){if(0==o)for(n=e+n;e<n;)T(i,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),s+=32;else r(i,s,t,e,n)}function nt(e,n){t[n][0]=t[e+"0"],t[n][1]=t[e+"1"],t[n][2]=t[e+"2"],t[n][3]=t[e+"3"],t[n][4]=t[e+"4"],t[n][5]=t[e+"5"],t[n][6]=t[e+"6"],t[n][7]=t[e+"7"],t[n][8]=t[e+"8"],t[n][9]=t[e+"9"],t[n][10]=t[e+"10"],t[n][11]=t[e+"11"],t[n][12]=t[e+"12"],t[n][13]=t[e+"13"],t[n][14]=t[e+"0"],t[n][15]=t[e+"0"]}function rt(t){return t==jr||t==Hr||t==Vr||t==Xr}function it(){this.eb=[],this.size=this.A=this.fb=0}function st(){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 ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new st,this.sd=null}function at(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function lt(){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 At(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ct(t,e){var n=t.T,i=e.ba.f.RGBA,s=i.eb,o=i.fb+t.ka*i.A,a=gi[e.ba.S],l=t.y,A=t.O,c=t.f,h=t.N,u=t.ea,p=t.W,d=e.cc,f=e.dc,g=e.Mc,m=e.Nc,y=t.ka,v=t.ka+t.T,O=t.U,b=O+1>>1;for(0==y?a(l,A,null,null,c,h,u,p,c,h,u,p,s,o,null,null,O):(a(e.ec,e.fc,l,A,d,f,g,m,c,h,u,p,s,o-i.A,s,o,O),++n);y+2<v;y+=2)d=c,f=h,g=u,m=p,h+=t.Rc,p+=t.Rc,o+=2*i.A,a(l,(A+=2*t.fa)-t.fa,l,A,d,f,g,m,c,h,u,p,s,o-i.A,s,o,O);return A+=t.fa,t.j+v<t.o?(r(e.ec,e.fc,l,A,O),r(e.cc,e.dc,c,h,b),r(e.Mc,e.Nc,u,p,b),n--):1&v||a(l,A,null,null,c,h,u,p,c,h,u,p,s,o+i.A,null,null,O),n}function ht(t,n,r){var i=t.F,s=[t.J];if(null!=i){var o=t.U,a=n.ba.S,l=a==Rr||a==Vr;n=n.ba.f.RGBA;var A=[0],c=t.ka;A[0]=t.T,t.Kb&&(0==c?--A[0]:(--c,s[0]-=t.width),t.j+t.ka+t.T==t.o&&(A[0]=t.o-t.j-c));var h=n.eb;c=n.fb+c*n.A,t=_r(i,s[0],t.width,o,A,h,c+(l?0:3),n.A),e(r==A),t&&rt(a)&&xr(h,c,l,o,A,n.A)}return 0}function ut(t){var e=t.ma,n=e.ba.S,r=11>n,i=n==Lr||n==Dr||n==Rr||n==Ur||12==n||rt(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!Fn(e.Oa,t,i?11:12))return 0;if(i&&rt(n)&&yn(),t.da)alert("todo:use_scaling");else{if(r){if(e.Ib=At,t.Kb){if(n=t.U+1>>1,e.memory=s(t.U+2*n),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+n,e.Ib=ct,yn()}}else alert("todo:EmitYUV");i&&(e.Jb=ht,r&&gn())}if(r&&!Pi){for(t=0;256>t;++t)ki[t]=89858*(t-128)+Si>>_i,Qi[t]=-22014*(t-128)+Si,Ni[t]=-45773*(t-128),Ii[t]=113618*(t-128)+Si>>_i;for(t=Ci;t<Ei;++t)e=76283*(t-16)+Si>>_i,Fi[t-Ci]=Xt(e,255),Li[t-Ci]=Xt(e+8>>4,15);Pi=1}return 1}function pt(t){var n=t.ma,r=t.U,i=t.T;return e(!(1&t.ka)),0>=r||0>=i?0:(r=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,r),n.Dc+=r,1)}function dt(t){t.ma.memory=null}function ft(t,e,n,r){return 47!=v(t,8)?0:(e[0]=v(t,14)+1,n[0]=v(t,14)+1,r[0]=v(t,1),0!=v(t,3)?0:!t.h)}function gt(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+v(e,n)+1}function mt(t,e){return 120<e?e-120:1<=(n=((n=Kr[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function yt(t,e,n){var r=x(n),i=t[e+=255&r].g-8;return 0<i&&(_(n,n.u+8),r=x(n),e+=t[e].value,e+=r&(1<<i)-1),_(n,n.u+t[e].g),t[e].value}function vt(t,n,r){return r.g+=t.g,r.value+=t.value<<n>>>0,e(8>=r.g),t.g}function Ot(t,n,r){var i=t.xc;return e((n=0==i?0:t.vc[t.md*(r>>i)+(n>>i)])<t.Wb),t.Ya[n]}function bt(t,n,i,s){var o=t.ab,a=t.c*n,l=t.C;n=l+n;var A=i,c=s;for(s=t.Ta,i=t.Ua;0<o--;){var h=t.gc[o],u=l,p=n,d=A,f=c,g=(c=s,A=i,h.Ea);switch(e(u<p),e(p<=h.nc),h.hc){case 2:zn(d,f,(p-u)*g,c,A);break;case 0:var m=u,y=p,v=c,O=A,b=(C=h).Ea;0==m&&(Vn(d,f,null,null,1,v,O),X(d,f+1,0,0,b-1,v,O+1),f+=b,O+=b,++m);for(var x=1<<C.b,w=x-1,_=M(b,C.b),S=C.K,C=C.w+(m>>C.b)*_;m<y;){var E=S,B=C,T=1;for(Xn(d,f,v,O-b,1,v,O);T<b;){var P=(T&~w)+x;P>b&&(P=b),(0,Kn[E[B++]>>8&15])(d,f+ +T,v,O+T-b,P-T,v,O+T),T=P}f+=b,O+=b,++m&w||(C+=_)}p!=h.nc&&r(c,A-g,c,A+(p-u-1)*g,g);break;case 1:for(g=d,y=f,b=(d=h.Ea)-(O=d&~(v=(f=1<<h.b)-1)),m=M(d,h.b),x=h.K,h=h.w+(u>>h.b)*m;u<p;){for(w=x,_=h,S=new U,C=y+O,E=y+d;y<C;)G(w[_++],S),qn(S,g,y,f,c,A),y+=f,A+=f;y<E&&(G(w[_++],S),qn(S,g,y,b,c,A),y+=b,A+=b),++u&v||(h+=m)}break;case 3:if(d==c&&f==A&&0<h.b){for(y=c,d=g=A+(p-u)*g-(O=(p-u)*M(h.Ea,h.b)),f=c,v=A,m=[],O=(b=O)-1;0<=O;--O)m[O]=f[v+O];for(O=b-1;0<=O;--O)y[d+O]=m[O];Gn(h,u,p,c,g,c,A)}else Gn(h,u,p,d,f,c,A)}A=s,c=i}c!=i&&r(s,i,A,c,a)}function xt(t,n){var r=t.V,i=t.Ba+t.c*t.C,s=n-t.C;if(e(n<=t.l.o),e(16>=s),0<s){var o=t.l,a=t.Ta,l=t.Ua,A=o.width;if(bt(t,s,r,i),s=l=[l],e((r=t.C)<(i=n)),e(o.v<o.va),i>o.o&&(i=o.o),r<o.j){var c=o.j-r;r=o.j,s[0]+=c*A}if(r>=i?r=0:(s[0]+=4*o.v,o.ka=r-o.j,o.U=o.va-o.v,o.T=i-r,r=1),r){if(l=l[0],11>(r=t.ca).S){var h=r.f.RGBA,u=(i=r.S,s=o.U,o=o.T,c=h.eb,h.A),p=o;for(h=h.fb+t.Ma*h.A;0<p--;){var d=a,f=l,g=s,m=c,y=h;switch(i){case Fr:Jn(d,f,g,m,y);break;case Lr:tr(d,f,g,m,y);break;case jr:tr(d,f,g,m,y),xr(m,y,0,g,1,0);break;case Mr:rr(d,f,g,m,y);break;case Dr:et(d,f,g,m,y,1);break;case Hr:et(d,f,g,m,y,1),xr(m,y,0,g,1,0);break;case Rr:et(d,f,g,m,y,0);break;case Vr:et(d,f,g,m,y,0),xr(m,y,1,g,1,0);break;case Ur:er(d,f,g,m,y);break;case Xr:er(d,f,g,m,y),wr(m,y,g,1,0);break;case $r:nr(d,f,g,m,y);break;default:e(0)}l+=A,h+=u}t.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=r.height)}}t.C=n,e(t.C<=t.i)}function wt(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,r=t.Ya[e].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function _t(t,n,r,i,s,o){if(0!=t.Z){var a=t.qd,l=t.rd;for(e(null!=fi[t.Z]);n<r;++n)fi[t.Z](a,l,i,s,i,s,o),a=i,l=s,s+=o;t.qd=a,t.rd=l}}function St(t,n){var r=t.l.ma,i=0==r.Z||1==r.Z?t.l.j:t.C;if(i=t.C<i?i:t.C,e(n<=t.l.o),n>i){var s=t.l.width,o=r.ca,a=r.tb+s*i,l=t.V,A=t.Ba+t.c*i,c=t.gc;e(1==t.ab),e(3==c[0].hc),Wn(c[0],i,n,l,A,o,a),_t(r,i,n,o,a,s)}t.C=t.Ma=n}function Ct(t,n,r,i,s,o,a){var l=t.$/i,A=t.$%i,c=t.m,h=t.s,u=r+t.$,p=u;s=r+i*s;var d=r+i*o,f=280+h.ua,g=t.Pb?l:16777216,m=0<h.ua?h.Wa:null,y=h.wc,v=u<d?Ot(h,A,l):null;e(t.C<o),e(d<=s);var O=!1;t:for(;;){for(;O||u<d;){var b=0;if(l>=g){var C=u-r;e((g=t).Pb),g.wd=g.m,g.xd=C,0<g.s.ua&&Q(g.s.Wa,g.s.vb),g=l+Jr}if(A&y||(v=Ot(h,A,l)),e(null!=v),v.Qb&&(n[u]=v.qb,O=!0),!O)if(S(c),v.jc){b=c,C=n;var E=u,B=v.pd[x(b)&Dn-1];e(v.jc),256>B.g?(_(b,b.u+B.g),C[E]=B.value,b=0):(_(b,b.u+B.g-256),e(256<=B.value),b=B.value),0==b&&(O=!0)}else b=yt(v.G[0],v.H[0],c);if(c.h)break;if(O||256>b){if(!O)if(v.nd)n[u]=(v.qb|b<<8)>>>0;else{if(S(c),O=yt(v.G[1],v.H[1],c),S(c),C=yt(v.G[2],v.H[2],c),E=yt(v.G[3],v.H[3],c),c.h)break;n[u]=(E<<24|O<<16|b<<8|C)>>>0}if(O=!1,++u,++A>=i&&(A=0,++l,null!=a&&l<=o&&!(l%16)&&a(t,l),null!=m))for(;p<u;)b=n[p++],m.X[(506832829*b&4294967295)>>>m.Mb]=b}else if(280>b){if(b=gt(b-256,c),C=yt(v.G[4],v.H[4],c),S(c),C=mt(i,C=gt(C,c)),c.h)break;if(u-r<C||s-u<b)break t;for(E=0;E<b;++E)n[u+E]=n[u+E-C];for(u+=b,A+=b;A>=i;)A-=i,++l,null!=a&&l<=o&&!(l%16)&&a(t,l);if(e(u<=s),A&y&&(v=Ot(h,A,l)),null!=m)for(;p<u;)b=n[p++],m.X[(506832829*b&4294967295)>>>m.Mb]=b}else{if(!(b<f))break t;for(O=b-280,e(null!=m);p<u;)b=n[p++],m.X[(506832829*b&4294967295)>>>m.Mb]=b;b=u,e(!(O>>>(C=m).Xa)),n[b]=C.X[O],O=!0}O||e(c.h==w(c))}if(t.Pb&&c.h&&u<s)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&Q(t.s.vb,t.s.Wa);else{if(c.h)break t;null!=a&&a(t,l>o?o:l),t.a=0,t.$=u-r}return 1}return t.a=3,0}function Et(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;null!=n&&(n.X=null),t.vb=null,e(null!=t)}function Bt(){var e=new on;return null==e?null:(e.a=0,e.xb=di,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),zn=z,qn=Y,Jn=Z,tr=K,er=q,nr=J,rr=tt,t.VP8LMapColor32b=Yn,t.VP8LMapColor8b=Zn,e)}function Tt(t,n,r,a,l){var A=1,u=[t],d=[n],f=a.m,g=a.s,m=null,y=0;t:for(;;){if(r)for(;A&&v(f,1);){var O=u,b=d,w=a,C=1,E=w.m,B=w.gc[w.ab],T=v(E,2);if(w.Oc&1<<T)A=0;else{switch(w.Oc|=1<<T,B.hc=T,B.Ea=O[0],B.nc=b[0],B.K=[null],++w.ab,e(4>=w.ab),T){case 0:case 1:B.b=v(E,3)+2,C=Tt(M(B.Ea,B.b),M(B.nc,B.b),0,w,B.K),B.K=B.K[0];break;case 3:var P,k=v(E,8)+1,I=16<k?0:4<k?1:2<k?2:3;if(O[0]=M(B.Ea,I),B.b=I,P=C=Tt(k,1,0,w,B.K)){var Q,F=k,L=B,R=1<<(8>>L.b),U=s(R);if(null==U)P=0;else{var $=L.K[0],j=L.w;for(U[0]=L.K[0][0],Q=1;Q<1*F;++Q)U[Q]=D($[j+Q],U[Q-1]);for(;Q<4*R;++Q)U[Q]=0;L.K[0]=null,L.K[0]=U,P=1}}C=P;break;case 2:break;default:e(0)}A=C}}if(u=u[0],d=d[0],A&&v(f,1)&&!(A=1<=(y=v(f,4))&&11>=y)){a.a=3;break t}var H;if(H=A)e:{var V,X,z,G=a,Y=u,W=d,Z=y,K=r,q=G.m,J=G.s,tt=[null],et=1,nt=0,rt=qr[Z];n:for(;;){if(K&&v(q,1)){var it=v(q,3)+2,st=M(Y,it),ot=M(W,it),at=st*ot;if(!Tt(st,ot,0,G,tt))break n;for(tt=tt[0],J.xc=it,V=0;V<at;++V){var lt=tt[V]>>8&65535;tt[V]=lt,lt>=et&&(et=lt+1)}}if(q.h)break n;for(X=0;5>X;++X){var At=Yr[X];!X&&0<Z&&(At+=1<<Z),nt<At&&(nt=At)}var ct=o(et*rt,h),ht=et,ut=o(ht,p);if(null==ut)var pt=null;else e(65536>=ht),pt=ut;var dt=s(nt);if(null==pt||null==dt||null==ct){G.a=1;break n}var ft=ct;for(V=z=0;V<et;++V){var gt=pt[V],mt=gt.G,yt=gt.H,Ot=0,bt=1,xt=0;for(X=0;5>X;++X){At=Yr[X],mt[X]=ft,yt[X]=z,!X&&0<Z&&(At+=1<<Z);r:{var wt,_t=At,St=G,Bt=dt,Pt=ft,kt=z,It=0,Nt=St.m,Qt=v(Nt,1);if(i(Bt,0,0,_t),Qt){var Ft=v(Nt,1)+1,Lt=v(Nt,1),Mt=v(Nt,0==Lt?1:8);Bt[Mt]=1,2==Ft&&(Bt[Mt=v(Nt,8)]=1);var Dt=1}else{var Rt=s(19),Ut=v(Nt,4)+4;if(19<Ut){St.a=3;var $t=0;break r}for(wt=0;wt<Ut;++wt)Rt[Zr[wt]]=v(Nt,3);var jt=void 0,Ht=void 0,Vt=St,Xt=Rt,zt=_t,Gt=Bt,Yt=0,Wt=Vt.m,Zt=8,Kt=o(128,h);i:for(;c(Kt,0,7,Xt,19);){if(v(Wt,1)){var qt=2+2*v(Wt,3);if((jt=2+v(Wt,qt))>zt)break i}else jt=zt;for(Ht=0;Ht<zt&&jt--;){S(Wt);var Jt=Kt[0+(127&x(Wt))];_(Wt,Wt.u+Jt.g);var te=Jt.value;if(16>te)Gt[Ht++]=te,0!=te&&(Zt=te);else{var ee=16==te,ne=te-16,re=Gr[ne],ie=v(Wt,zr[ne])+re;if(Ht+ie>zt)break i;for(var se=ee?Zt:0;0<ie--;)Gt[Ht++]=se}}Yt=1;break i}Yt||(Vt.a=3),Dt=Yt}(Dt=Dt&&!Nt.h)&&(It=c(Pt,kt,8,Bt,_t)),Dt&&0!=It?$t=It:(St.a=3,$t=0)}if(0==$t)break n;if(bt&&1==Wr[X]&&(bt=0==ft[z].g),Ot+=ft[z].g,z+=$t,3>=X){var oe,ae=dt[0];for(oe=1;oe<At;++oe)dt[oe]>ae&&(ae=dt[oe]);xt+=ae}}if(gt.nd=bt,gt.Qb=0,bt&&(gt.qb=(mt[3][yt[3]+0].value<<24|mt[1][yt[1]+0].value<<16|mt[2][yt[2]+0].value)>>>0,0==Ot&&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 le,Ae=gt;for(le=0;le<Dn;++le){var ce=le,he=Ae.pd[ce],ue=Ae.G[0][Ae.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(Ae.G[1][Ae.H[1]+ce],16,he),ce>>=vt(Ae.G[2][Ae.H[2]+ce],0,he),vt(Ae.G[3][Ae.H[3]+ce],24,he))}}}J.vc=tt,J.Wb=et,J.Ya=pt,J.yc=ct,H=1;break e}H=0}if(!(A=H)){a.a=3;break t}if(0<y){if(g.ua=1<<y,!N(g.Wa,y)){a.a=1,A=0;break t}}else g.ua=0;var pe=a,de=u,fe=d,ge=pe.s,me=ge.xc;if(pe.c=de,pe.i=fe,ge.md=M(de,me),ge.wc=0==me?-1:(1<<me)-1,r){a.xb=pi;break t}if(null==(m=s(u*d))){a.a=1,A=0;break t}A=(A=Ct(a,m,0,u,d,d,null))&&!f.h;break t}return A?(null!=l?l[0]=m:(e(null==m),e(r)),a.$=0,r||Et(g)):Et(g),A}function Pt(t,n){var r=t.c*t.i,i=r+n+16*n;return e(t.c<=n),t.V=s(i),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+r+n,1)}function kt(t,n){var r=t.C,i=n-r,s=t.V,o=t.Ba+t.c*r;for(e(n<=t.l.o);0<i;){var a=16<i?16:i,l=t.l.ma,A=t.l.width,c=A*a,h=l.ca,u=l.tb+A*r,p=t.Ta,d=t.Ua;bt(t,a,s,o),Sr(p,d,h,u,c),_t(l,r,r+a,h,u,A),i-=a,s+=a*t.c,r+=a}e(r==n),t.C=t.Ma=n}function It(){this.ub=this.yd=this.td=this.Rb=0}function Nt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Qt(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function Ft(){this.Yb=function(){var t=[];return function t(e,n,r){for(var i=r[n],s=0;s<i&&(e.push(r.length>n+1?[]:0),!(r.length<n+1));s++)t(e[s],n+1,r)}(t,0,[3,11]),t}()}function Lt(){this.jb=s(3),this.Wc=a([4,8],Ft),this.Xc=a([4,17],Ft)}function Mt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function Dt(){this.ld=this.La=this.dd=this.tc=0}function Rt(){this.Na=this.la=0}function Ut(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function $t(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function jt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Dt),this.Y=0,this.ya=Array(new $t),this.aa=0,this.l=new zt}function Ht(){this.y=s(16),this.f=s(8),this.ea=s(8)}function Vt(){this.cb=this.a=0,this.sc="",this.m=new O,this.Od=new It,this.Kc=new Nt,this.ed=new Mt,this.Qa=new Qt,this.Ic=this.$c=this.Aa=0,this.D=new jt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,O),this.ia=0,this.pb=o(4,Ut),this.Pa=new Lt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ht),this.Hd=0,this.rb=Array(new Rt),this.sb=0,this.wa=Array(new Dt),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 $t),this.L=this.aa=0,this.gd=a([4,2],Dt),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 Xt(t,e){return 0>t?0:t>e?e:t}function zt(){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 Gt(){var t=new Vt;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ni||(ni=Kt)),t}function Yt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function Wt(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Zt(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return Yt(t,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,s=n.w,o=n.ha;if(4>o)return Yt(t,7,"Truncated header.");var a=r[s+0]|r[s+1]<<8|r[s+2]<<16,l=t.Od;if(l.Rb=!(1&a),l.td=a>>1&7,l.yd=a>>4&1,l.ub=a>>5,3<l.td)return Yt(t,3,"Incorrect keyframe parameters.");if(!l.yd)return Yt(t,4,"Frame not displayable.");s+=3,o-=3;var A=t.Kc;if(l.Rb){if(7>o)return Yt(t,7,"cannot parse picture header");if(!Wt(r,s,o))return Yt(t,3,"Bad code word");A.c=16383&(r[s+4]<<8|r[s+3]),A.Td=r[s+4]>>6,A.i=16383&(r[s+6]<<8|r[s+5]),A.Ud=r[s+6]>>6,s+=7,o-=7,t.za=A.c+15>>4,t.Ub=A.i+15>>4,n.width=A.c,n.height=A.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,i((a=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(l.ub>o)return Yt(t,7,"bad partition length");d(a=t.m,r,s,l.ub),s+=l.ub,o-=l.ub,l.Rb&&(A.Ld=E(a),A.Kd=E(a)),A=t.Qa;var c,h=t.Pa;if(e(null!=a),e(null!=A),A.Cb=E(a),A.Cb){if(A.Bb=E(a),E(a)){for(A.Fb=E(a),c=0;4>c;++c)A.Zb[c]=E(a)?g(a,7):0;for(c=0;4>c;++c)A.Lb[c]=E(a)?g(a,6):0}if(A.Bb)for(c=0;3>c;++c)h.jb[c]=E(a)?f(a,8):255}else A.Bb=0;if(a.Ka)return Yt(t,3,"cannot parse segment header");if((A=t.ed).zd=E(a),A.Tb=f(a,6),A.wb=f(a,3),A.Pc=E(a),A.Pc&&E(a)){for(h=0;4>h;++h)E(a)&&(A.vd[h]=g(a,6));for(h=0;4>h;++h)E(a)&&(A.od[h]=g(a,6))}if(t.L=0==A.Tb?0:A.zd?1:2,a.Ka)return Yt(t,3,"cannot parse filter header");var u=o;if(o=c=s,s=c+u,A=u,t.Xb=(1<<f(t.m,2))-1,u<3*(h=t.Xb))r=7;else{for(c+=3*h,A-=3*h,u=0;u<h;++u){var p=r[o+0]|r[o+1]<<8|r[o+2]<<16;p>A&&(p=A),d(t.Jc[+u],r,c,p),c+=p,A-=p,o+=3}d(t.Jc[+h],r,c,A),r=c<s?0:5}if(0!=r)return Yt(t,r,"cannot parse partitions");for(r=f(c=t.m,7),o=E(c)?g(c,4):0,s=E(c)?g(c,4):0,A=E(c)?g(c,4):0,h=E(c)?g(c,4):0,c=E(c)?g(c,4):0,u=t.Qa,p=0;4>p;++p){if(u.Cb){var m=u.Zb[p];u.Fb||(m+=r)}else{if(0<p){t.pb[p]=t.pb[0];continue}m=r}var y=t.pb[p];y.Sc[0]=ti[Xt(m+o,127)],y.Sc[1]=ei[Xt(m+0,127)],y.Eb[0]=2*ti[Xt(m+s,127)],y.Eb[1]=101581*ei[Xt(m+A,127)]>>16,8>y.Eb[1]&&(y.Eb[1]=8),y.Qc[0]=ti[Xt(m+h,117)],y.Qc[1]=ei[Xt(m+c,127)],y.lc=m+c}if(!l.Rb)return Yt(t,4,"Not a key frame.");for(E(a),l=t.Pa,r=0;4>r;++r){for(o=0;8>o;++o)for(s=0;3>s;++s)for(A=0;11>A;++A)h=B(a,li[r][o][s][A])?f(a,8):oi[r][o][s][A],l.Wc[r][o].Yb[s][A]=h;for(o=0;17>o;++o)l.Xc[r][o]=l.Wc[r][Ai[o]]}return t.kc=E(a),t.kc&&(t.Bd=f(a,8)),t.cb=1}function Kt(t,e,n,r,i,s,o){var a=e[i].Yb[n];for(n=0;16>i;++i){if(!B(t,a[n+0]))return i;for(;!B(t,a[n+1]);)if(a=e[++i].Yb[0],n=0,16==i)return 16;var l=e[i+1].Yb;if(B(t,a[n+2])){var A=t,c=0;if(B(A,(u=a)[(h=n)+3]))if(B(A,u[h+6])){for(a=0,h=2*(c=B(A,u[h+8]))+(u=B(A,u[h+9+c])),c=0,u=ri[h];u[a];++a)c+=c+B(A,u[a]);c+=3+(8<<h)}else B(A,u[h+7])?(c=7+2*B(A,165),c+=B(A,145)):c=5+B(A,159);else c=B(A,u[h+4])?3+B(A,u[h+5]):2;a=l[2]}else c=1,a=l[1];l=o+ii[i],0>(A=t).b&&C(A);var h,u=A.b,p=(h=A.Ca>>1)-(A.I>>u)>>31;--A.b,A.Ca+=p,A.Ca|=1,A.I-=(h+1&p)<<u,s[l]=((c^p)-p)*r[(0<i)+0]}return 16}function qt(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 Jt(t,e,n,r,i){i=t[e+n+32*r]+(i>>3),t[e+n+32*r]=-256&i?0>i?0:255:i}function te(t,e,n,r,i,s){Jt(t,e,0,n,r+i),Jt(t,e,1,n,r+s),Jt(t,e,2,n,r-s),Jt(t,e,3,n,r-i)}function ee(t){return(20091*t>>16)+t}function ne(t,e,n,r){var i,o=0,a=s(16);for(i=0;4>i;++i){var l=t[e+0]+t[e+8],A=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[o+0]=l+h,a[o+1]=A+c,a[o+2]=A-c,a[o+3]=l-h,o+=4,e++}for(i=o=0;4>i;++i)l=(t=a[o+0]+4)+a[o+8],A=t-a[o+8],c=(35468*a[o+4]>>16)-ee(a[o+12]),Jt(n,r,0,0,l+(h=ee(a[o+4])+(35468*a[o+12]>>16))),Jt(n,r,1,0,A+c),Jt(n,r,2,0,A-c),Jt(n,r,3,0,l-h),o++,r+=32}function re(t,e,n,r){var i=t[e+0]+4,s=35468*t[e+4]>>16,o=ee(t[e+4]),a=35468*t[e+1]>>16;te(n,r,0,i+o,t=ee(t[e+1]),a),te(n,r,1,i+s,t,a),te(n,r,2,i-s,t,a),te(n,r,3,i-o,t,a)}function ie(t,e,n,r,i){ne(t,e,n,r),i&&ne(t,e+16,n,r+4)}function se(t,e,n,r){sr(t,e+0,n,r,1),sr(t,e+32,n,r+128,1)}function oe(t,e,n,r){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)Jt(n,r,e,i,t)}function ae(t,e,n,r){t[e+0]&&lr(t,e+0,n,r),t[e+16]&&lr(t,e+16,n,r+4),t[e+32]&&lr(t,e+32,n,r+128),t[e+48]&&lr(t,e+48,n,r+128+4)}function le(t,e,n,r){var i,o=s(16);for(i=0;4>i;++i){var a=t[e+0+i]+t[e+12+i],l=t[e+4+i]+t[e+8+i],A=t[e+4+i]-t[e+8+i],c=t[e+0+i]-t[e+12+i];o[0+i]=a+l,o[8+i]=a-l,o[4+i]=c+A,o[12+i]=c-A}for(i=0;4>i;++i)a=(t=o[0+4*i]+3)+o[3+4*i],l=o[1+4*i]+o[2+4*i],A=o[1+4*i]-o[2+4*i],c=t-o[3+4*i],n[r+0]=a+l>>3,n[r+16]=c+A>>3,n[r+32]=a-l>>3,n[r+48]=c-A>>3,r+=64}function Ae(t,e,n){var r,i=e-32,s=Nr,o=255-t[i-1];for(r=0;r<n;++r){var a,l=s,A=o+t[e-1];for(a=0;a<n;++a)t[e+a]=l[A+t[i+a]];e+=32}}function ce(t,e){Ae(t,e,4)}function he(t,e){Ae(t,e,8)}function ue(t,e){Ae(t,e,16)}function pe(t,e){var n;for(n=0;16>n;++n)r(t,e+32*n,t,e-32,16)}function de(t,e){var n;for(n=16;0<n;--n)i(t,e,t[e-1],16),e+=32}function fe(t,e,n){var r;for(r=0;16>r;++r)i(e,n+32*r,t,16)}function ge(t,e){var n,r=16;for(n=0;16>n;++n)r+=t[e-1+32*n]+t[e+n-32];fe(r>>5,t,e)}function me(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e-1+32*n];fe(r>>4,t,e)}function ye(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e+n-32];fe(r>>4,t,e)}function ve(t,e){fe(128,t,e)}function Oe(t,e,n){return t+2*e+n+2>>2}function be(t,e){var n,i=e-32;for(i=new Uint8Array([Oe(t[i-1],t[i+0],t[i+1]),Oe(t[i+0],t[i+1],t[i+2]),Oe(t[i+1],t[i+2],t[i+3]),Oe(t[i+2],t[i+3],t[i+4])]),n=0;4>n;++n)r(t,e+32*n,i,0,i.length)}function xe(t,e){var n=t[e-1],r=t[e-1+32],i=t[e-1+64],s=t[e-1+96];T(t,e+0,16843009*Oe(t[e-1-32],n,r)),T(t,e+32,16843009*Oe(n,r,i)),T(t,e+64,16843009*Oe(r,i,s)),T(t,e+96,16843009*Oe(i,s,s))}function we(t,e){var n,r=4;for(n=0;4>n;++n)r+=t[e+n-32]+t[e-1+32*n];for(r>>=3,n=0;4>n;++n)i(t,e+32*n,r,4)}function _e(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],s=t[e-1-32],o=t[e+0-32],a=t[e+1-32],l=t[e+2-32],A=t[e+3-32];t[e+0+96]=Oe(r,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=Oe(n,r,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=Oe(s,n,r),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=Oe(o,s,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=Oe(a,o,s),t[e+3+32]=t[e+2+0]=Oe(l,a,o),t[e+3+0]=Oe(A,l,a)}function Se(t,e){var n=t[e+1-32],r=t[e+2-32],i=t[e+3-32],s=t[e+4-32],o=t[e+5-32],a=t[e+6-32],l=t[e+7-32];t[e+0+0]=Oe(t[e+0-32],n,r),t[e+1+0]=t[e+0+32]=Oe(n,r,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=Oe(r,i,s),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=Oe(i,s,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=Oe(s,o,a),t[e+3+64]=t[e+2+96]=Oe(o,a,l),t[e+3+96]=Oe(a,l,l)}function Ce(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],s=t[e-1-32],o=t[e+0-32],a=t[e+1-32],l=t[e+2-32],A=t[e+3-32];t[e+0+0]=t[e+1+64]=s+o+1>>1,t[e+1+0]=t[e+2+64]=o+a+1>>1,t[e+2+0]=t[e+3+64]=a+l+1>>1,t[e+3+0]=l+A+1>>1,t[e+0+96]=Oe(i,r,n),t[e+0+64]=Oe(r,n,s),t[e+0+32]=t[e+1+96]=Oe(n,s,o),t[e+1+32]=t[e+2+96]=Oe(s,o,a),t[e+2+32]=t[e+3+96]=Oe(o,a,l),t[e+3+32]=Oe(a,l,A)}function Ee(t,e){var n=t[e+0-32],r=t[e+1-32],i=t[e+2-32],s=t[e+3-32],o=t[e+4-32],a=t[e+5-32],l=t[e+6-32],A=t[e+7-32];t[e+0+0]=n+r+1>>1,t[e+1+0]=t[e+0+64]=r+i+1>>1,t[e+2+0]=t[e+1+64]=i+s+1>>1,t[e+3+0]=t[e+2+64]=s+o+1>>1,t[e+0+32]=Oe(n,r,i),t[e+1+32]=t[e+0+96]=Oe(r,i,s),t[e+2+32]=t[e+1+96]=Oe(i,s,o),t[e+3+32]=t[e+2+96]=Oe(s,o,a),t[e+3+64]=Oe(o,a,l),t[e+3+96]=Oe(a,l,A)}function Be(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],s=t[e-1+96];t[e+0+0]=n+r+1>>1,t[e+2+0]=t[e+0+32]=r+i+1>>1,t[e+2+32]=t[e+0+64]=i+s+1>>1,t[e+1+0]=Oe(n,r,i),t[e+3+0]=t[e+1+32]=Oe(r,i,s),t[e+3+32]=t[e+1+64]=Oe(i,s,s),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=s}function Te(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],s=t[e-1+96],o=t[e-1-32],a=t[e+0-32],l=t[e+1-32],A=t[e+2-32];t[e+0+0]=t[e+2+32]=n+o+1>>1,t[e+0+32]=t[e+2+64]=r+n+1>>1,t[e+0+64]=t[e+2+96]=i+r+1>>1,t[e+0+96]=s+i+1>>1,t[e+3+0]=Oe(a,l,A),t[e+2+0]=Oe(o,a,l),t[e+1+0]=t[e+3+32]=Oe(n,o,a),t[e+1+32]=t[e+3+64]=Oe(r,n,o),t[e+1+64]=t[e+3+96]=Oe(i,r,n),t[e+1+96]=Oe(s,i,r)}function Pe(t,e){var n;for(n=0;8>n;++n)r(t,e+32*n,t,e-32,8)}function ke(t,e){var n;for(n=0;8>n;++n)i(t,e,t[e-1],8),e+=32}function Ie(t,e,n){var r;for(r=0;8>r;++r)i(e,n+32*r,t,8)}function Ne(t,e){var n,r=8;for(n=0;8>n;++n)r+=t[e+n-32]+t[e-1+32*n];Ie(r>>4,t,e)}function Qe(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e+n-32];Ie(r>>3,t,e)}function Fe(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e-1+32*n];Ie(r>>3,t,e)}function Le(t,e){Ie(128,t,e)}function Me(t,e,n){var r=t[e-n],i=t[e+0],s=3*(i-r)+kr[1020+t[e-2*n]-t[e+n]],o=Ir[112+(s+4>>3)];t[e-n]=Nr[255+r+Ir[112+(s+3>>3)]],t[e+0]=Nr[255+i-o]}function De(t,e,n,r){var i=t[e+0],s=t[e+n];return Qr[255+t[e-2*n]-t[e-n]]>r||Qr[255+s-i]>r}function Re(t,e,n,r){return 4*Qr[255+t[e-n]-t[e+0]]+Qr[255+t[e-2*n]-t[e+n]]<=r}function Ue(t,e,n,r,i){var s=t[e-3*n],o=t[e-2*n],a=t[e-n],l=t[e+0],A=t[e+n],c=t[e+2*n],h=t[e+3*n];return 4*Qr[255+a-l]+Qr[255+o-A]>r?0:Qr[255+t[e-4*n]-s]<=i&&Qr[255+s-o]<=i&&Qr[255+o-a]<=i&&Qr[255+h-c]<=i&&Qr[255+c-A]<=i&&Qr[255+A-l]<=i}function $e(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)Re(t,e+r,n,i)&&Me(t,e+r,n)}function je(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)Re(t,e+r*n,1,i)&&Me(t,e+r*n,1)}function He(t,e,n,r){var i;for(i=3;0<i;--i)$e(t,e+=4*n,n,r)}function Ve(t,e,n,r){var i;for(i=3;0<i;--i)je(t,e+=4,n,r)}function Xe(t,e,n,r,i,s,o,a){for(s=2*s+1;0<i--;){if(Ue(t,e,n,s,o))if(De(t,e,n,a))Me(t,e,n);else{var l=t,A=e,c=n,h=l[A-2*c],u=l[A-c],p=l[A+0],d=l[A+c],f=l[A+2*c],g=27*(y=kr[1020+3*(p-u)+kr[1020+h-d]])+63>>7,m=18*y+63>>7,y=9*y+63>>7;l[A-3*c]=Nr[255+l[A-3*c]+y],l[A-2*c]=Nr[255+h+m],l[A-c]=Nr[255+u+g],l[A+0]=Nr[255+p-g],l[A+c]=Nr[255+d-m],l[A+2*c]=Nr[255+f-y]}e+=r}}function ze(t,e,n,r,i,s,o,a){for(s=2*s+1;0<i--;){if(Ue(t,e,n,s,o))if(De(t,e,n,a))Me(t,e,n);else{var l=t,A=e,c=n,h=l[A-c],u=l[A+0],p=l[A+c],d=Ir[112+(4+(f=3*(u-h))>>3)],f=Ir[112+(f+3>>3)],g=d+1>>1;l[A-2*c]=Nr[255+l[A-2*c]+g],l[A-c]=Nr[255+h+f],l[A+0]=Nr[255+u-d],l[A+c]=Nr[255+p-g]}e+=r}}function Ge(t,e,n,r,i,s){Xe(t,e,n,1,16,r,i,s)}function Ye(t,e,n,r,i,s){Xe(t,e,1,n,16,r,i,s)}function We(t,e,n,r,i,s){var o;for(o=3;0<o;--o)ze(t,e+=4*n,n,1,16,r,i,s)}function Ze(t,e,n,r,i,s){var o;for(o=3;0<o;--o)ze(t,e+=4,1,n,16,r,i,s)}function Ke(t,e,n,r,i,s,o,a){Xe(t,e,i,1,8,s,o,a),Xe(n,r,i,1,8,s,o,a)}function qe(t,e,n,r,i,s,o,a){Xe(t,e,1,i,8,s,o,a),Xe(n,r,1,i,8,s,o,a)}function Je(t,e,n,r,i,s,o,a){ze(t,e+4*i,i,1,8,s,o,a),ze(n,r+4*i,i,1,8,s,o,a)}function tn(t,e,n,r,i,s,o,a){ze(t,e+4,1,i,8,s,o,a),ze(n,r+4,1,i,8,s,o,a)}function en(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new lt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nn(){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 rn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function sn(){this.ua=0,this.Wa=new F,this.vb=new F,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new p,this.yc=new h}function on(){this.xb=this.a=0,this.l=new zt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new b,this.Pb=0,this.wd=new b,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new sn,this.ab=0,this.gc=o(4,rn),this.Oc=0}function an(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new zt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ln(t,e,n,r,i,s,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)i[s+e]=t+n[r+e]&255,t=i[s+e]}function An(t,e,n,r,i,s,o){var a;if(null==t)ln(null,null,n,r,i,s,o);else for(a=0;a<o;++a)i[s+a]=t[e+a]+n[r+a]&255}function cn(t,e,n,r,i,s,o){if(null==t)ln(null,null,n,r,i,s,o);else{var a,l=t[e+0],A=l,c=l;for(a=0;a<o;++a)A=c+(l=t[e+a])-A,c=n[r+a]+(-256&A?0>A?0:255:A)&255,A=l,i[s+a]=c}}function hn(t,n,i,o){var a=n.width,l=n.o;if(e(null!=t&&null!=n),0>i||0>=o||i+o>l)return null;if(!t.Cc){if(null==t.ga){var A;if(t.ga=new an,(A=null==t.ga)||(A=n.width*n.o,e(0==t.Gb.length),t.Gb=s(A),t.Uc=0,null==t.Gb?A=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,A=1),A=!A),!A){A=t.ga;var c=t.Fa,h=t.P,u=t.qc,p=t.mb,d=t.nb,f=h+1,g=u-1,y=A.l;if(e(null!=c&&null!=p&&null!=n),fi[0]=null,fi[1]=ln,fi[2]=An,fi[3]=cn,A.ca=p,A.tb=d,A.c=n.width,A.i=n.height,e(0<A.c&&0<A.i),1>=u)n=0;else if(A.$a=3&c[h+0],A.Z=c[h+0]>>2&3,A.Lc=c[h+0]>>4&3,h=c[h+0]>>6&3,0>A.$a||1<A.$a||4<=A.Z||1<A.Lc||h)n=0;else if(y.put=pt,y.ac=ut,y.bc=dt,y.ma=A,y.width=n.width,y.height=n.height,y.Da=n.Da,y.v=n.v,y.va=n.va,y.j=n.j,y.o=n.o,A.$a)t:{e(1==A.$a),n=Bt();e:for(;;){if(null==n){n=0;break t}if(e(null!=A),A.mc=n,n.c=A.c,n.i=A.i,n.l=A.l,n.l.ma=A,n.l.width=A.c,n.l.height=A.i,n.a=0,m(n.m,c,f,g),!Tt(A.c,A.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&wt(n.s)?(A.ic=1,c=n.c*n.i,n.Ta=null,n.Ua=0,n.V=s(c),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(A.ic=0,n=Pt(n,A.c)),!n)break e;n=1;break t}A.mc=null,n=0}else n=g>=A.c*A.i;A=!n}if(A)return null;1!=t.ga.Lc?t.Ga=0:o=l-i}e(null!=t.ga),e(i+o<=l);t:{if(n=(c=t.ga).c,l=c.l.o,0==c.$a){if(f=t.rc,g=t.Vc,y=t.Fa,h=t.P+1+i*n,u=t.mb,p=t.nb+i*n,e(h<=t.P+t.qc),0!=c.Z)for(e(null!=fi[c.Z]),A=0;A<o;++A)fi[c.Z](f,g,y,h,u,p,n),f=u,g=p,p+=n,h+=n;else for(A=0;A<o;++A)r(u,p,y,h,n),f=u,g=p,p+=n,h+=n;t.rc=f,t.Vc=g}else{if(e(null!=c.mc),n=i+o,e(null!=(A=c.mc)),e(n<=A.i),A.C>=n)n=1;else if(c.ic||gn(),c.ic){c=A.V,f=A.Ba,g=A.c;var v=A.i,O=(y=1,h=A.$/g,u=A.$%g,p=A.m,d=A.s,A.$),b=g*v,x=g*n,_=d.wc,C=O<x?Ot(d,u,h):null;e(O<=b),e(n<=v),e(wt(d));e:for(;;){for(;!p.h&&O<x;){if(u&_||(C=Ot(d,u,h)),e(null!=C),S(p),256>(v=yt(C.G[0],C.H[0],p)))c[f+O]=v,++O,++u>=g&&(u=0,++h<=n&&!(h%16)&&St(A,h));else{if(!(280>v)){y=0;break e}v=gt(v-256,p);var E,B=yt(C.G[4],C.H[4],p);if(S(p),!(O>=(B=mt(g,B=gt(B,p)))&&b-O>=v)){y=0;break e}for(E=0;E<v;++E)c[f+O+E]=c[f+O+E-B];for(O+=v,u+=v;u>=g;)u-=g,++h<=n&&!(h%16)&&St(A,h);O<x&&u&_&&(C=Ot(d,u,h))}e(p.h==w(p))}St(A,h>n?n:h);break e}!y||p.h&&O<b?(y=0,A.a=p.h?5:3):A.$=O,n=y}else n=Ct(A,A.V,A.Ba,A.c,A.i,n,kt);if(!n){o=0;break t}}i+o>=l&&(t.Cc=1),o=1}if(!o)return null;if(t.Cc&&(null!=(o=t.ga)&&(o.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+i*a}function un(t,e,n,r,i,s){for(;0<i--;){var o,a=t,l=e+(n?1:0),A=t,c=e+(n?0:3);for(o=0;o<r;++o){var h=A[c+4*o];255!=h&&(h*=32897,a[l+4*o+0]=a[l+4*o+0]*h>>23,a[l+4*o+1]=a[l+4*o+1]*h>>23,a[l+4*o+2]=a[l+4*o+2]*h>>23)}e+=s}}function pn(t,e,n,r,i){for(;0<r--;){var s;for(s=0;s<n;++s){var o=t[e+2*s+0],a=15&(A=t[e+2*s+1]),l=4369*a,A=(240&A|A>>4)*l>>16;t[e+2*s+0]=(240&o|o>>4)*l>>16&240|(15&o|o<<4)*l>>16>>4&15,t[e+2*s+1]=240&A|a}e+=i}}function dn(t,e,n,r,i,s,o,a){var l,A,c=255;for(A=0;A<i;++A){for(l=0;l<r;++l){var h=t[e+l];s[o+4*l]=h,c&=h}e+=n,o+=a}return 255!=c}function fn(t,e,n,r,i){var s;for(s=0;s<i;++s)n[r+s]=t[e+s]>>8}function gn(){xr=un,wr=pn,_r=dn,Sr=fn}function mn(n,r,i){t[n]=function(t,n,s,o,a,l,A,c,h,u,p,d,f,g,m,y,v){var O,b=v-1>>1,x=a[l+0]|A[c+0]<<16,w=h[u+0]|p[d+0]<<16;e(null!=t);var _=3*x+w+131074>>2;for(r(t[n+0],255&_,_>>16,f,g),null!=s&&(_=3*w+x+131074>>2,r(s[o+0],255&_,_>>16,m,y)),O=1;O<=b;++O){var S=a[l+O]|A[c+O]<<16,C=h[u+O]|p[d+O]<<16,E=x+S+w+C+524296,B=E+2*(S+w)>>3;_=B+x>>1,x=(E=E+2*(x+C)>>3)+S>>1,r(t[n+2*O-1],255&_,_>>16,f,g+(2*O-1)*i),r(t[n+2*O-0],255&x,x>>16,f,g+(2*O-0)*i),null!=s&&(_=E+w>>1,x=B+C>>1,r(s[o+2*O-1],255&_,_>>16,m,y+(2*O-1)*i),r(s[o+2*O+0],255&x,x>>16,m,y+(2*O+0)*i)),x=S,w=C}1&v||(_=3*x+w+131074>>2,r(t[n+v-1],255&_,_>>16,f,g+(v-1)*i),null!=s&&(_=3*w+x+131074>>2,r(s[o+v-1],255&_,_>>16,m,y+(v-1)*i)))}}function yn(){gi[Fr]=mi,gi[Lr]=vi,gi[Mr]=yi,gi[Dr]=Oi,gi[Rr]=bi,gi[Ur]=xi,gi[$r]=wi,gi[jr]=vi,gi[Hr]=Oi,gi[Vr]=bi,gi[Xr]=xi}function vn(t){return t&~Ti?0>t?0:255:t>>Bi}function On(t,e){return vn((19077*t>>8)+(26149*e>>8)-14234)}function bn(t,e,n){return vn((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function xn(t,e){return vn((19077*t>>8)+(33050*e>>8)-17685)}function wn(t,e,n,r,i){r[i+0]=On(t,n),r[i+1]=bn(t,e,n),r[i+2]=xn(t,e)}function _n(t,e,n,r,i){r[i+0]=xn(t,e),r[i+1]=bn(t,e,n),r[i+2]=On(t,n)}function Sn(t,e,n,r,i){var s=bn(t,e,n);e=s<<3&224|xn(t,e)>>3,r[i+0]=248&On(t,n)|s>>5,r[i+1]=e}function Cn(t,e,n,r,i){var s=240&xn(t,e)|15;r[i+0]=240&On(t,n)|bn(t,e,n)>>4,r[i+1]=s}function En(t,e,n,r,i){r[i+0]=255,wn(t,e,n,r,i+1)}function Bn(t,e,n,r,i){_n(t,e,n,r,i),r[i+3]=255}function Tn(t,e,n,r,i){wn(t,e,n,r,i),r[i+3]=255}function Pn(e,n,r){t[e]=function(t,e,i,s,o,a,l,A,c){for(var h=A+(-2&c)*r;A!=h;)n(t[e+0],i[s+0],o[a+0],l,A),n(t[e+1],i[s+0],o[a+0],l,A+r),e+=2,++s,++a,A+=2*r;1&c&&n(t[e+0],i[s+0],o[a+0],l,A)}}function kn(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function In(t,e,n,r,i){switch(t>>>30){case 3:sr(e,n,r,i,0);break;case 2:or(e,n,r,i);break;case 1:lr(e,n,r,i)}}function Nn(t,e){var n,s,o=e.M,a=e.Nb,l=t.oc,A=t.pc+40,c=t.oc,h=t.pc+584,u=t.oc,p=t.pc+600;for(n=0;16>n;++n)l[A+32*n-1]=129;for(n=0;8>n;++n)c[h+32*n-1]=129,u[p+32*n-1]=129;for(0<o?l[A-1-32]=c[h-1-32]=u[p-1-32]=129:(i(l,A-32-1,127,21),i(c,h-32-1,127,9),i(u,p-32-1,127,9)),s=0;s<t.za;++s){var d=e.ya[e.aa+s];if(0<s){for(n=-1;16>n;++n)r(l,A+32*n-4,l,A+32*n+12,4);for(n=-1;8>n;++n)r(c,h+32*n-4,c,h+32*n+4,4),r(u,p+32*n-4,u,p+32*n+4,4)}var f=t.Gd,g=t.Hd+s,m=d.ad,y=d.Hc;if(0<o&&(r(l,A-32,f[g].y,0,16),r(c,h-32,f[g].f,0,8),r(u,p-32,f[g].ea,0,8)),d.Za){var v=l,O=A-32+16;for(0<o&&(s>=t.za-1?i(v,O,f[g].y[15],4):r(v,O,f[g+1].y,0,4)),n=0;4>n;n++)v[O+128+n]=v[O+256+n]=v[O+384+n]=v[O+0+n];for(n=0;16>n;++n,y<<=2)v=l,O=A+Mi[n],hi[d.Ob[n]](v,O),In(y,m,16*+n,v,O)}else if(v=kn(s,o,d.Ob[0]),ci[v](l,A),0!=y)for(n=0;16>n;++n,y<<=2)In(y,m,16*+n,l,A+Mi[n]);for(n=d.Gc,v=kn(s,o,d.Dd),ui[v](c,h),ui[v](u,p),y=m,v=c,O=h,255&(d=0|n)&&(170&d?ar(y,256,v,O):Ar(y,256,v,O)),d=u,y=p,255&(n>>=8)&&(170&n?ar(m,320,d,y):Ar(m,320,d,y)),o<t.Ub-1&&(r(f[g].y,0,l,A+480,16),r(f[g].f,0,c,h+224,8),r(f[g].ea,0,u,p+224,8)),n=8*a*t.B,f=t.sa,g=t.ta+16*s+16*a*t.R,m=t.qa,d=t.ra+8*s+n,y=t.Ha,v=t.Ia+8*s+n,n=0;16>n;++n)r(f,g+n*t.R,l,A+32*n,16);for(n=0;8>n;++n)r(m,d+n*t.B,c,h+32*n,8),r(y,v+n*t.B,u,p+32*n,8)}}function Qn(t,r,i,s,o,a,l,A,c){var h=[0],u=[0],p=0,d=null!=c?c.kd:0,f=null!=c?c:new nn;if(null==t||12>i)return 7;f.data=t,f.w=r,f.ha=i,r=[r],i=[i],f.gb=[f.gb];t:{var g=r,y=i,v=f.gb;if(e(null!=t),e(null!=y),e(null!=v),v[0]=0,12<=y[0]&&!n(t,g[0],"RIFF")){if(n(t,g[0]+8,"WEBP")){v=3;break t}var O=I(t,g[0]+4);if(12>O||4294967286<O){v=3;break t}if(d&&O>y[0]-8){v=7;break t}v[0]=O,g[0]+=12,y[0]-=12}v=0}if(0!=v)return v;for(O=0<f.gb[0],i=i[0];;){t:{var x=t;y=r,v=i;var w=h,_=u,S=g=[0];if((B=p=[p])[0]=0,8>v[0])v=7;else{if(!n(x,y[0],"VP8X")){if(10!=I(x,y[0]+4)){v=3;break t}if(18>v[0]){v=7;break t}var C=I(x,y[0]+8),E=1+k(x,y[0]+12);if(2147483648<=E*(x=1+k(x,y[0]+15))){v=3;break t}null!=S&&(S[0]=C),null!=w&&(w[0]=E),null!=_&&(_[0]=x),y[0]+=18,v[0]-=18,B[0]=1}v=0}}if(p=p[0],g=g[0],0!=v)return v;if(y=!!(2&g),!O&&p)return 3;if(null!=a&&(a[0]=!!(16&g)),null!=l&&(l[0]=y),null!=A&&(A[0]=0),l=h[0],g=u[0],p&&y&&null==c){v=0;break}if(4>i){v=7;break}if(O&&p||!O&&!p&&!n(t,r[0],"ALPH")){i=[i],f.na=[f.na],f.P=[f.P],f.Sa=[f.Sa];t:{C=t,v=r,O=i;var B=f.gb;w=f.na,_=f.P,S=f.Sa,E=22,e(null!=C),e(null!=O),x=v[0];var T=O[0];for(e(null!=w),e(null!=S),w[0]=null,_[0]=null,S[0]=0;;){if(v[0]=x,O[0]=T,8>T){v=7;break t}var P=I(C,x+4);if(4294967286<P){v=3;break t}var N=8+P+1&-2;if(E+=N,0<B&&E>B){v=3;break t}if(!n(C,x,"VP8 ")||!n(C,x,"VP8L")){v=0;break t}if(T[0]<N){v=7;break t}n(C,x,"ALPH")||(w[0]=C,_[0]=x+8,S[0]=P),x+=N,T-=N}}if(i=i[0],f.na=f.na[0],f.P=f.P[0],f.Sa=f.Sa[0],0!=v)break}i=[i],f.Ja=[f.Ja],f.xa=[f.xa];t:if(B=t,v=r,O=i,w=f.gb[0],_=f.Ja,S=f.xa,C=v[0],x=!n(B,C,"VP8 "),E=!n(B,C,"VP8L"),e(null!=B),e(null!=O),e(null!=_),e(null!=S),8>O[0])v=7;else{if(x||E){if(B=I(B,C+4),12<=w&&B>w-12){v=3;break t}if(d&&B>O[0]-8){v=7;break t}_[0]=B,v[0]+=8,O[0]-=8,S[0]=E}else S[0]=5<=O[0]&&47==B[C+0]&&!(B[C+4]>>5),_[0]=O[0];v=0}if(i=i[0],f.Ja=f.Ja[0],f.xa=f.xa[0],r=r[0],0!=v)break;if(4294967286<f.Ja)return 3;if(null==A||y||(A[0]=f.xa?2:1),l=[l],g=[g],f.xa){if(5>i){v=7;break}A=l,d=g,y=a,null==t||5>i?t=0:5<=i&&47==t[r+0]&&!(t[r+4]>>5)?(O=[0],B=[0],w=[0],m(_=new b,t,r,i),ft(_,O,B,w)?(null!=A&&(A[0]=O[0]),null!=d&&(d[0]=B[0]),null!=y&&(y[0]=w[0]),t=1):t=0):t=0}else{if(10>i){v=7;break}A=g,null==t||10>i||!Wt(t,r+3,i-3)?t=0:(d=t[r+0]|t[r+1]<<8|t[r+2]<<16,y=16383&(t[r+7]<<8|t[r+6]),t=16383&(t[r+9]<<8|t[r+8]),1&d||3<(d>>1&7)||!(d>>4&1)||d>>5>=f.Ja||!y||!t?t=0:(l&&(l[0]=y),A&&(A[0]=t),t=1))}if(!t)return 3;if(l=l[0],g=g[0],p&&(h[0]!=l||u[0]!=g))return 3;null!=c&&(c[0]=f,c.offset=r-c.w,e(4294967286>r-c.w),e(c.offset==c.ha-i));break}return 0==v||7==v&&p&&null==c?(null!=a&&(a[0]|=null!=f.na&&0<f.na.length),null!=s&&(s[0]=l),null!=o&&(o[0]=g),0):v}function Fn(t,e,n){var r=e.width,i=e.height,s=0,o=0,a=r,l=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(a=t.cd,l=t.bd,s=t.v,o=t.j,11>n||(s&=-2,o&=-2),0>s||0>o||0>=a||0>=l||s+a>r||o+l>i))return 0;if(e.v=s,e.j=o,e.va=s+a,e.o=o+l,e.U=a,e.T=l,e.da=null!=t&&0<t.da,e.da){if(!L(a,l,n=[t.ib],s=[t.hb]))return 0;e.ib=n[0],e.hb=s[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*r/4&&e.hb<3*i/4,e.Kb=0),1}function Ln(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 Mn(t,e,n,r){if(null==r||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var i=n.cd,o=n.bd,a=-2&n.v,l=-2&n.j;if(0>a||0>l||0>=i||0>=o||a+i>t||l+o>e)return 2;t=i,e=o}if(n.da){if(!L(t,e,i=[n.ib],o=[n.hb]))return 2;t=i[0],e=o[0]}}r.width=t,r.height=e;t:{var A=r.width,c=r.height;if(t=r.S,0>=A||0>=c||!(t>=Fr&&13>t))t=2;else{if(0>=r.Rd&&null==r.sd){a=o=i=e=0;var h=(l=A*Ui[t])*c;if(11>t||(o=(c+1)/2*(e=(A+1)/2),12==t&&(a=(i=A)*c)),null==(c=s(h+2*o+a))){t=1;break t}r.sd=c,11>t?((A=r.f.RGBA).eb=c,A.fb=0,A.A=l,A.size=h):((A=r.f.kb).y=c,A.O=0,A.fa=l,A.Fd=h,A.f=c,A.N=0+h,A.Ab=e,A.Cd=o,A.ea=c,A.W=0+h+o,A.Db=e,A.Ed=o,12==t&&(A.F=c,A.J=0+h+2*o),A.Tc=a,A.lb=i)}if(e=1,i=r.S,o=r.width,a=r.height,i>=Fr&&13>i)if(11>i)t=r.f.RGBA,e&=(l=Math.abs(t.A))*(a-1)+o<=t.size,e&=l>=o*Ui[i],e&=null!=t.eb;else{t=r.f.kb,l=(o+1)/2,h=(a+1)/2,A=Math.abs(t.fa),c=Math.abs(t.Ab);var u=Math.abs(t.Db),p=Math.abs(t.lb),d=p*(a-1)+o;e&=A*(a-1)+o<=t.Fd,e&=c*(h-1)+l<=t.Cd,e=(e&=u*(h-1)+l<=t.Ed)&A>=o&c>=l&u>=l,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==i&&(e&=p>=o,e&=d<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=Ln(r)),t}var Dn=64,Rn=[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],Un=24,$n=32,jn=8,Hn=[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];R("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,n){return e[n+0]},t.Predictor3=function(t,e,n){return e[n+1]},t.Predictor4=function(t,e,n){return e[n-1]},t.Predictor5=function(t,e,n){return $($(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return $(t,e[n-1])},t.Predictor7=function(t,e,n){return $(t,e[n+0])},t.Predictor8=function(t,e,n){return $(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return $(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return $($(t,e[n-1]),$(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var r=e[n+0];return 0>=V(r>>24&255,t>>24&255,(e=e[n-1])>>24&255)+V(r>>16&255,t>>16&255,e>>16&255)+V(r>>8&255,t>>8&255,e>>8&255)+V(255&r,255&t,255&e)?r:t},t.Predictor12=function(t,e,n){var r=e[n+0];return(j((t>>24&255)+(r>>24&255)-((e=e[n-1])>>24&255))<<24|j((t>>16&255)+(r>>16&255)-(e>>16&255))<<16|j((t>>8&255)+(r>>8&255)-(e>>8&255))<<8|j((255&t)+(255&r)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var r=e[n-1];return(H((t=$(t,e[n+0]))>>24&255,r>>24&255)<<24|H(t>>16&255,r>>16&255)<<16|H(t>>8&255,r>>8&255)<<8|H(255&t,255&r))>>>0};var Vn=t.PredictorAdd0;t.PredictorAdd1=X,R("Predictor2","PredictorAdd2"),R("Predictor3","PredictorAdd3"),R("Predictor4","PredictorAdd4"),R("Predictor5","PredictorAdd5"),R("Predictor6","PredictorAdd6"),R("Predictor7","PredictorAdd7"),R("Predictor8","PredictorAdd8"),R("Predictor9","PredictorAdd9"),R("Predictor10","PredictorAdd10"),R("Predictor11","PredictorAdd11"),R("Predictor12","PredictorAdd12"),R("Predictor13","PredictorAdd13");var Xn=t.PredictorAdd2;W("ColorIndexInverseTransform","MapARGB","32b",function(t){return t>>8&255},function(t){return t}),W("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(t){return t},function(t){return t>>8&255});var zn,Gn=t.ColorIndexInverseTransform,Yn=t.MapARGB,Wn=t.VP8LColorIndexInverseTransformAlpha,Zn=t.MapAlpha,Kn=t.VP8LPredictorsAdd=[];Kn.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var qn,Jn,tr,er,nr,rr,ir,sr,or,ar,lr,Ar,cr,hr,ur,pr,dr,fr,gr,mr,yr,vr,Or,br,xr,wr,_r,Sr,Cr=s(511),Er=s(2041),Br=s(225),Tr=s(767),Pr=0,kr=Er,Ir=Br,Nr=Tr,Qr=Cr,Fr=0,Lr=1,Mr=2,Dr=3,Rr=4,Ur=5,$r=6,jr=7,Hr=8,Vr=9,Xr=10,zr=[2,3,7],Gr=[3,3,11],Yr=[280,256,256,256,40],Wr=[0,1,1,1,0],Zr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Kr=[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],qr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Jr=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],ni=null,ri=[[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],si=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],oi=[[[[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]]],li=[[[[255,255,255,255,255,255,255,255,255,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]]]],Ai=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ci=[],hi=[],ui=[],pi=1,di=2,fi=[],gi=[];mn("UpsampleRgbLinePair",wn,3),mn("UpsampleBgrLinePair",_n,3),mn("UpsampleRgbaLinePair",Tn,4),mn("UpsampleBgraLinePair",Bn,4),mn("UpsampleArgbLinePair",En,4),mn("UpsampleRgba4444LinePair",Cn,2),mn("UpsampleRgb565LinePair",Sn,2);var mi=t.UpsampleRgbLinePair,yi=t.UpsampleBgrLinePair,vi=t.UpsampleRgbaLinePair,Oi=t.UpsampleBgraLinePair,bi=t.UpsampleArgbLinePair,xi=t.UpsampleRgba4444LinePair,wi=t.UpsampleRgb565LinePair,_i=16,Si=1<<_i-1,Ci=-227,Ei=482,Bi=6,Ti=(256<<Bi)-1,Pi=0,ki=s(256),Ii=s(256),Ni=s(256),Qi=s(256),Fi=s(Ei-Ci),Li=s(Ei-Ci);Pn("YuvToRgbRow",wn,3),Pn("YuvToBgrRow",_n,3),Pn("YuvToRgbaRow",Tn,4),Pn("YuvToBgraRow",Bn,4),Pn("YuvToArgbRow",En,4),Pn("YuvToRgba4444Row",Cn,2),Pn("YuvToRgb565Row",Sn,2);var Mi=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Di=[0,2,8],Ri=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(t,n,a,l,A){var c=Lr,h=new en,u=new ot;h.ba=u,u.S=c,u.width=[u.width],u.height=[u.height];var p=u.width,d=u.height,f=new at;if(null==f||null==t)var g=2;else e(null!=f),g=Qn(t,n,a,f.width,f.height,f.Pd,f.Qd,f.format,null);if(0!=g?p=0:(null!=p&&(p[0]=f.width[0]),null!=d&&(d[0]=f.height[0]),p=1),p){u.width=u.width[0],u.height=u.height[0],null!=l&&(l[0]=u.width),null!=A&&(A[0]=u.height);t:{if(l=new zt,(A=new nn).data=t,A.w=n,A.ha=a,A.kd=1,n=[0],e(null!=A),(0==(t=Qn(A.data,A.w,A.ha,null,null,null,n,null,A))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=h),l.data=A.data,l.w=A.w+A.offset,l.ha=A.ha-A.offset,l.put=pt,l.ac=ut,l.bc=dt,l.ma=h,A.xa){if(null==(t=Bt())){h=1;break t}if(function(t,n){var r=[0],i=[0],s=[0];e:for(;;){if(null==t)return 0;if(null==n)return t.a=2,0;if(t.l=n,t.a=0,m(t.m,n.data,n.w,n.ha),!ft(t.m,r,i,s)){t.a=3;break e}if(t.xb=di,n.width=r[0],n.height=i[0],!Tt(r[0],i[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,l)){if(l=0==(n=Mn(l.width,l.height,h.Oa,h.ba))){e:{l=t;n:for(;;){if(null==l){l=0;break e}if(e(null!=l.s.yc),e(null!=l.s.Ya),e(0<l.s.Wb),e(null!=(a=l.l)),e(null!=(A=a.ma)),0!=l.xb){if(l.ca=A.ba,l.tb=A.tb,e(null!=l.ca),!Fn(A.Oa,a,Dr)){l.a=2;break n}if(!Pt(l,a.width))break n;if(a.da)break n;if((a.da||rt(l.ca.S))&&gn(),11>l.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=l.ca.f.kb.F&&gn()),l.Pb&&0<l.s.ua&&null==l.s.vb.X&&!N(l.s.vb,l.s.Wa.Xa)){l.a=1;break n}l.xb=0}if(!Ct(l,l.V,l.Ba,l.c,l.i,a.o,xt))break n;A.Dc=l.Ma,l=1;break e}e(0!=l.a),l=0}l=!l}l&&(n=t.a)}else n=t.a}else{if(null==(t=new Gt)){h=1;break t}if(t.Fa=A.na,t.P=A.P,t.qc=A.Sa,Zt(t,l)){if(0==(n=Mn(l.width,l.height,h.Oa,h.ba))){if(t.Aa=0,a=h.Oa,e(null!=(A=t)),null!=a){if(0<(p=0>(p=a.Md)?0:100<p?255:255*p/100)){for(d=f=0;4>d;++d)12>(g=A.pb[d]).lc&&(g.ia=p*Ri[0>g.lc?0:g.lc]>>3),f|=g.ia;f&&(alert("todo:VP8InitRandom"),A.ia=1)}A.Ga=a.Id,100<A.Ga?A.Ga=100:0>A.Ga&&(A.Ga=0)}(function(t,n){if(null==t)return 0;if(null==n)return Yt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Zt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var a=Di[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=n.v-a>>4,t.zb=n.j-a>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+a>>4,t.Hb=n.va+15+a>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var l=t.ed;for(a=0;4>a;++a){var A;if(t.Qa.Cb){var c=t.Qa.Lb[a];t.Qa.Fb||(c+=l.Tb)}else c=l.Tb;for(A=0;1>=A;++A){var h=t.gd[a][A],u=c;if(l.Pc&&(u+=l.vd[0],A&&(u+=l.od[0])),0<(u=0>u?0:63<u?63:u)){var p=u;0<l.wb&&(p=4<l.wb?p>>2:p>>1)>9-l.wb&&(p=9-l.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=A}}}a=0}else Yt(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,l=4*(p=t.za);var d=32*p,f=p+1,g=0<t.L?p*(0<t.Aa?2:1):0,m=(2==t.Aa?2:1)*p;if((h=l+832+(A=3*(16*a+Di[t.L])/2*d)+(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=s(h),t.Fc=0,null==t.Ec){a=Yt(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+=l,t.Gd=o(d,Ht),t.Hd=0,t.rb=o(f+1,Rt),t.sb=1,t.wa=g?o(g,Dt):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=o(m,$t),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=(d=Di[t.L])*t.R,d=d/2*t.B,t.sa=h,t.ta=u+p,t.qa=t.sa,t.ra=t.ta+16*a*t.R+d,t.Ha=t.qa,t.Ia=t.ra+8*a*t.B+d,t.$c=0,u+=A,t.mb=c?h:null,t.nb=c?u:null,e(u+c<=t.Fc+t.Vb),qt(t),i(t.Ac,t.Bc,0,l),a=1}}if(a){if(n.ka=0,n.y=t.sa,n.O=t.ta,n.f=t.qa,n.N=t.ra,n.ea=t.Ha,n.Vd=t.Ia,n.fa=t.R,n.Rc=t.B,n.F=null,n.J=0,!Pr){for(a=-255;255>=a;++a)Cr[255+a]=0>a?-a:a;for(a=-1020;1020>=a;++a)Er[1020+a]=-128>a?-128:127<a?127:a;for(a=-112;112>=a;++a)Br[112+a]=-16>a?-16:15<a?15:a;for(a=-255;510>=a;++a)Tr[255+a]=0>a?0:255<a?255:a;Pr=1}ir=le,sr=ie,ar=se,lr=oe,Ar=ae,or=re,cr=Ge,hr=Ye,ur=Ke,pr=qe,dr=We,fr=Ze,gr=Je,mr=tn,yr=$e,vr=je,Or=He,br=Ve,hi[0]=we,hi[1]=ce,hi[2]=be,hi[3]=xe,hi[4]=_e,hi[5]=Ce,hi[6]=Se,hi[7]=Ee,hi[8]=Te,hi[9]=Be,ci[0]=ge,ci[1]=ue,ci[2]=pe,ci[3]=de,ci[4]=me,ci[5]=ye,ci[6]=ve,ui[0]=Ne,ui[1]=he,ui[2]=Pe,ui[3]=ke,ui[4]=Fe,ui[5]=Qe,ui[6]=Le,a=1}else a=0}a&&(a=function(t,n){for(t.M=0;t.M<t.Va;++t.M){var o,a=t.Jc[t.M&t.Xb],l=t.m,A=t;for(o=0;o<A.za;++o){var c=l,h=A,u=h.Ac,p=h.Bc+4*o,d=h.zc,f=h.ya[h.aa+o];if(h.Qa.Bb?f.$b=B(c,h.Pa.jb[0])?2+B(c,h.Pa.jb[2]):B(c,h.Pa.jb[1]):f.$b=0,h.kc&&(f.Ad=B(c,h.Bd)),f.Za=!B(c,145)+0,f.Za){var g=f.Ob,m=0;for(h=0;4>h;++h){var y,v=d[0+h];for(y=0;4>y;++y){v=ai[u[p+y]][v];for(var O=si[B(c,v[0])];0<O;)O=si[2*O+B(c,v[O])];v=-O,u[p+y]=v}r(g,m,u,p,4),m+=4,d[0+h]=v}}else v=B(c,156)?B(c,128)?1:3:B(c,163)?2:0,f.Ob[0]=v,i(u,p,v,4),i(d,0,v,4);f.Dd=B(c,142)?B(c,114)?B(c,183)?1:3:2:0}if(A.m.Ka)return Yt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(A=a,c=(l=t).rb[l.sb-1],u=l.rb[l.sb+l.ja],o=l.ya[l.aa+l.ja],p=l.kc?o.Ad:0)c.la=u.la=0,o.Za||(c.Na=u.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var b,x;if(c=u,u=A,p=l.Pa.Xc,d=l.ya[l.aa+l.ja],f=l.pb[d.$b],h=d.ad,g=0,m=l.rb[l.sb-1],v=y=0,i(h,g,0,384),d.Za)var w=0,_=p[3];else{O=s(16);var S=c.Na+m.Na;if(S=ni(u,p[1],S,f.Eb,0,O,0),c.Na=m.Na=(0<S)+0,1<S)ir(O,0,h,g);else{var C=O[0]+3>>3;for(O=0;256>O;O+=16)h[g+O]=C}w=1,_=p[0]}var E=15&c.la,T=15&m.la;for(O=0;4>O;++O){var P=1&T;for(C=x=0;4>C;++C)E=E>>1|(P=(S=ni(u,_,S=P+(1&E),f.Sc,w,h,g))>w)<<7,x=x<<2|(3<S?3:1<S?2:0!=h[g+0]),g+=16;E>>=4,T=T>>1|P<<7,y=(y<<8|x)>>>0}for(_=E,w=T>>4,b=0;4>b;b+=2){for(x=0,E=c.la>>4+b,T=m.la>>4+b,O=0;2>O;++O){for(P=1&T,C=0;2>C;++C)S=P+(1&E),E=E>>1|(P=0<(S=ni(u,p[2],S,f.Qc,0,h,g)))<<3,x=x<<2|(3<S?3:1<S?2:0!=h[g+0]),g+=16;E>>=2,T=T>>1|P<<5}v|=x<<4*b,_|=E<<4<<b,w|=(240&T)<<b}c.la=_,m.la=w,d.Hc=y,d.Gc=v,d.ia=43690&v?0:f.ia,p=!(y|v)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[o.$b][o.Za],l.wa[l.Y+l.ja].La|=!p),A.Ka)return Yt(t,7,"Premature end-of-file encountered.")}if(qt(t),l=n,A=1,o=(a=t).D,c=0<a.L&&a.M>=a.zb&&a.M<=a.Va,0==a.Aa)e:{if(o.M=a.M,o.uc=c,Nn(a,o),A=1,o=(x=a.D).Nb,c=(v=Di[a.L])*a.R,u=v/2*a.B,O=16*o*a.R,C=8*o*a.B,p=a.sa,d=a.ta-c+O,f=a.qa,h=a.ra-u+C,g=a.Ha,m=a.Ia-u+C,T=0==(E=x.M),y=E>=a.Va-1,2==a.Aa&&Nn(a,x),x.uc)for(P=(S=a).D.M,e(S.D.uc),x=S.yb;x<S.Hb;++x){w=x,_=P;var k=(I=($=S).D).Nb;b=$.R;var I=I.wa[I.Y+w],N=$.sa,Q=$.ta+16*k*b+16*w,F=I.dd,L=I.tc;if(0!=L)if(e(3<=L),1==$.L)0<w&&vr(N,Q,b,L+4),I.La&&br(N,Q,b,L),0<_&&yr(N,Q,b,L+4),I.La&&Or(N,Q,b,L);else{var M=$.B,D=$.qa,R=$.ra+8*k*M+8*w,U=$.Ha,$=$.Ia+8*k*M+8*w;k=I.ld,0<w&&(hr(N,Q,b,L+4,F,k),pr(D,R,U,$,M,L+4,F,k)),I.La&&(fr(N,Q,b,L,F,k),mr(D,R,U,$,M,L,F,k)),0<_&&(cr(N,Q,b,L+4,F,k),ur(D,R,U,$,M,L+4,F,k)),I.La&&(dr(N,Q,b,L,F,k),gr(D,R,U,$,M,L,F,k))}}if(a.ia&&alert("todo:DitherRow"),null!=l.put){if(x=16*E,E=16*(E+1),T?(l.y=a.sa,l.O=a.ta+O,l.f=a.qa,l.N=a.ra+C,l.ea=a.Ha,l.W=a.Ia+C):(x-=v,l.y=p,l.O=d,l.f=f,l.N=h,l.ea=g,l.W=m),y||(E-=v),E>l.o&&(E=l.o),l.F=null,l.J=null,null!=a.Fa&&0<a.Fa.length&&x<E&&(l.J=hn(a,l,x,E-x),l.F=a.mb,null==l.F&&0==l.F.length)){A=Yt(a,3,"Could not decode alpha data.");break e}x<l.j&&(v=l.j-x,x=l.j,e(!(1&v)),l.O+=a.R*v,l.N+=a.B*(v>>1),l.W+=a.B*(v>>1),null!=l.F&&(l.J+=l.width*v)),x<E&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=x-l.j,l.U=l.va-l.v,l.T=E-x,A=l.put(l))}o+1!=a.Ic||y||(r(a.sa,a.ta-c,p,d+16*a.R,c),r(a.qa,a.ra-u,f,h+8*a.B,u),r(a.Ha,a.Ia-u,g,m+8*a.B,u))}if(!A)return Yt(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),a&=1}return a?(t.cb=0,a):0})(t,l)||(n=t.a)}}else n=t.a}0==n&&null!=h.Oa&&h.Oa.fd&&(n=Ln(h.ba))}h=n}c=0!=h?null:11>c?u.f.RGBA.eb:u.f.kb.y}else c=null;return c};var Ui=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function A(t,e){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(t[e++]);return n}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 l;var p=[0],d=[0],f=[],g=new l,m=t,y=function(t,e){var n={},r=0,i=!1,s=0,o=0;if(n.frames=[],!function(t,e){for(var n=0;n<4;n++)if(t[e+n]!="RIFF".charCodeAt(n))return!0;return!1}(t,e)){for(u(t,e+=4),e+=8;e<t.length;){var a=A(t,e),l=u(t,e+=4);e+=4;var p=l+(1&l);switch(a){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(g=n.frames[r]).src_off=i?o:e-8,g.src_size=s+l+8,r++,i&&(i=!1,s=0,o=0);break;case"VP8X":(g=n.header={}).feature_flags=t[e];var d=e+4;g.canvas_width=1+h(t,d),d+=3,g.canvas_height=1+h(t,d),d+=3;break;case"ALPH":i=!0,s=p+8,o=e-8;break;case"ANIM":(g=n.header).bgcolor=u(t,e),d=e+4,g.loop_count=c(t,d),d+=2;break;case"ANMF":var f,g;(g=n.frames[r]={}).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,f=t[e++],g.dispose=1&f,g.blend=f>>1&1}"ANMF"!=a&&(e+=p)}return n}}(m,0);y.response=m,y.rgbaoutput=!0,y.dataurl=!1;var v=y.header?y.header:null,O=y.frames?y.frames:null;if(v){v.loop_counter=v.loop_count,p=[v.canvas_height],d=[v.canvas_width];for(var b=0;b<O.length&&0!=O[b].blend;b++);}var x=O[0],w=g.WebPDecodeRGBA(m,x.src_off,x.src_size,d,p);x.rgba=w,x.imgwidth=d[0],x.imgheight=p[0];for(var _=0;_<d[0]*p[0]*4;_++)f[_]=w[_];return this.width=d,this.height=p,this.data=f,this}function ue(){var t,e=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(e));t=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function pe(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}!function(t){var e,n,i,s,o,a,l,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,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,s=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,a=this.internal.Point,l=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 n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var s=0;Object.defineProperty(this,"posY",{get:function(){return s},set:function(t){isNaN(t)||(s=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 o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=t}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(t){a=t}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(t){l=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 A=[];Object.defineProperty(this,"ctxStack",{get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=f(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=f(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,d=null;Object.defineProperty(this,"fontFaces",{get:function(){return d},set:function(t){c=null,p=null,d=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 n=e[1];e[2];var r=e[3],i=e[4];e[5];var s=e[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===o?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===o?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,n,r=[],i=t.trim();if(""===i)return Wt;if(i in Rt)return[Rt[i]];for(;""!==i;){switch(n=null,e=(i=$t(i)).charAt(0)){case'"':case"'":n=jt(i.substring(1),e);break;default:n=Ht(i)}if(null===n)return Wt;if(r.push(n[0]),""!==(i=$t(n[1]))&&","!==i.charAt(0))return Wt;i=i.replace(/^,/,"")}return r}(s);if(this.fontFaces){var l=function(t,e){var n=t.getFontList(),r=JSON.stringify(n);if(null===c||p!==r){var i=function(t){var e=[];return Object.keys(t).forEach(function(n){t[n].forEach(function(t){var r=null;switch(t){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:t},e.push(r))})}),e}(n);c=function(t){for(var e={},n=0;n<t.length;++n){var r=Lt(t[n]),i=r.family,s=r.stretch,o=r.style,a=r.weight;e[i]=e[i]||{},e[i][s]=e[i][s]||{},e[i][s][o]=e[i][s][o]||{},e[i][s][o][a]=r}return e}(i.concat(e)),p=r}return c}(this.pdf,this.fontFaces),A=a.map(function(t){return{family:t,stretch:"normal",weight:r,style:n}}),h=function(t,e,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},Dt,n.genericFontFamilies||{}),s=null,o=null,a=0;a<e.length;++a)if(i[(s=Lt(e[a])).family]&&(s.family=i[s.family]),t.hasOwnProperty(s.family)){o=t[s.family];break}if(!(o=o||t[r]))throw new Error("Could not find a font-family for the rule '"+Ut(s)+"' and default family '"+r+"'.");if(o=function(t,e){if(e[t])return e[t];var n=Nt[t],r=n<=Nt.normal?-1:1,i=Mt(e,It,n,r);if(!i)throw new Error("Could not find a matching font-stretch value for "+t);return i}(s.stretch,o),o=function(t,e){if(e[t])return e[t];for(var n=kt[t],r=0;r<n.length;++r)if(e[n[r]])return e[n[r]];throw new Error("Could not find a matching font-style for "+t)}(s.style,o),!(o=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 n=Ft[t],r=Mt(e,Qt,n,t<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+t);return r}(s.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Ut(s)+"'.");return o}(l,A);this.pdf.setFont(h.ref.name,h.ref.style)}else{var u="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(u="bold"),"italic"===n&&(u+="italic"),0===u.length&&(u="normal");for(var d="",f={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})){d=a[g];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(a[g],"bold",{noFallback:!0,disableWarning:!0}))d=a[g],u="bold";else if(void 0!==this.pdf.internal.getFont(a[g],"normal",{noFallback:!0,disableWarning:!0})){d=a[g],u="normal";break}}if(""===d)for(var m=0;m<a.length;m++)if(f[a[m]]){d=f[a[m]];break}d=""===d?"Times":d,this.pdf.setFont(d,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,U.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,U.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(){w.call(this,"fill",!1)},p.prototype.stroke=function(){w.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw A.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"mt",x:n.x,y:n.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,r.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 A.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new a(n.x,n.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),w.call(this,null,!0)},p.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw A.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new a(n,r)),s=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"qct",x1:s.x,y1:s.y,x:i.x,y:i.y}),this.ctx.lastPoint=new a(i.x,i.y)},p.prototype.bezierCurveTo=function(t,e,n,r,i,s){if(isNaN(i)||isNaN(s)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw A.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new a(i,s)),l=this.ctx.transform.applyToPoint(new a(t,e)),c=this.ctx.transform.applyToPoint(new a(n,r));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:c.x,y2:c.y,x:o.x,y:o.y}),this.ctx.lastPoint=new a(o.x,o.y)},p.prototype.arc=function(t,e,n,r,i,s){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw A.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(s=Boolean(s),!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new a(t,e));t=o.x,e=o.y;var l=this.ctx.transform.applyToPoint(new a(0,n)),c=this.ctx.transform.applyToPoint(new a(0,0));n=Math.sqrt(Math.pow(l.x-c.x,2)+Math.pow(l.y-c.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:s})},p.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},p.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw A.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},p.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw A.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,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},p.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw A.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,n,r),this.stroke())},p.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw A.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,n,r))},p.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},p.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(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 f=function(t){var e,n,r,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,n=0,r=0,i=0;else{var s=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==s)e=parseInt(s[1]),n=parseInt(s[2]),r=parseInt(s[3]),i=1;else if(null!==(s=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(s[1]),n=parseInt(s[2]),r=parseInt(s[3]),i=parseFloat(s[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new d(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:e,g:n,b:r,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,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw A.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!g.call(this)){var i=M(this.ctx.transform.rotation),s=this.ctx.transform.scaleX;k.call(this,{text:t,x:e,y:n,scale:s,angle:i,align:this.textAlign,maxWidth:r})}},p.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw A.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){r=isNaN(r)?void 0:r;var i=M(this.ctx.transform.rotation),s=this.ctx.transform.scaleX;k.call(this,{text:t,x:e,y:n,scale:s,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},p.prototype.measureText=function(t){if("string"!=typeof t)throw A.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,r=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*r/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*n/72*1e4)/1e4})},p.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw A.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new c(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},p.prototype.rotate=function(t){if(isNaN(t))throw A.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 A.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new c(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},p.prototype.transform=function(t,e,n,r,i,s){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(s))throw A.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new c(t,e,n,r,i,s);this.ctx.transform=this.ctx.transform.multiply(o)},p.prototype.setTransform=function(t,e,n,r,i,s){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,s=isNaN(s)?0:s,this.ctx.transform=new c(t,e,n,r,i,s)};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,n,r,i,s,o,a,A){var h=this.pdf.getImageProperties(t),u=1,p=1,d=1,f=1;void 0!==r&&void 0!==a&&(d=a/r,f=A/i,u=h.width/r*a/r,p=h.height/i*A/i),void 0===s&&(s=e,o=n,e=0,n=0),void 0!==r&&void 0===a&&(a=r,A=i),void 0===r&&void 0===a&&(a=h.width,A=h.height);var g=this.ctx.transform.decompose(),m=M(g.rotate.shx),O=new c,w=(O=(O=(O=O.multiply(g.translate)).multiply(g.skew)).multiply(g.scale)).applyToRectangle(new l(s-e*d,o-n*f,r*u,i*p));if(this.autoPaging){for(var S,C=v.call(this,w),E=[],B=0;B<C.length;B+=1)-1===E.indexOf(C[B])&&E.push(C[B]);x(E);for(var T=E[0],P=E[E.length-1],k=T;k<P+1;k++){this.pdf.setPage(k);var I=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],N=1===k?this.posY+this.margin[0]:this.margin[0],Q=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],L=1===k?0:Q+(k-2)*F;if(0!==this.ctx.clip_path.length){var D=this.path;S=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(S,this.posX+this.margin[3],-L+N+this.ctx.prevPageLastElemOffset),_.call(this,"fill",!0),this.path=D}var R=JSON.parse(JSON.stringify(w));R=b([R],this.posX+this.margin[3],-L+N+this.ctx.prevPageLastElemOffset)[0];var U=(k>T||k<P)&&y.call(this);U&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,F,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",R.x,R.y,R.w,R.h,null,null,m),U&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(t,"JPEG",w.x,w.y,w.w,w.h,null,null,m)};var v=function(t,e,n){var r=[];e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+i)/n)+1);break;case"arc":r.push(Math.floor((t.y+i-t.radius)/n)+1),r.push(Math.floor((t.y+i+t.radius)/n)+1);break;case"qct":var s=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor((s.y+i)/n)+1),r.push(Math.floor((s.y+s.h+i)/n)+1);break;case"bct":var o=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor((o.y+i)/n)+1),r.push(Math.floor((o.y+o.h+i)/n)+1);break;case"rect":r.push(Math.floor((t.y+i)/n)+1),r.push(Math.floor((t.y+t.h+i)/n)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)O.call(this);return r},O=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,s=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=s},b=function(t,e,n){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=n;case"qct":t[r].x1+=e,t[r].y1+=n;default:t[r].x+=e,t[r].y+=n}return t},x=function(t){return t.sort(function(t,e){return t-e})},w=function(t,e){var n=this.fillStyle,r=this.strokeStyle,i=this.lineCap,s=this.lineWidth,o=Math.abs(s*this.ctx.transform.scaleX),a=this.lineJoin;if(this.autoPaging){for(var l,A,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 d=v.call(this,h[p]),f=0;f<d.length;f+=1)-1===u.indexOf(d[f])&&u.push(d[f]);for(var g=0;g<u.length;g++)for(;this.pdf.internal.getNumberOfPages()<u[g];)O.call(this);x(u);for(var m=u[0],w=u[u.length-1],S=m;S<w+1;S++){this.pdf.setPage(S),this.fillStyle=n,this.strokeStyle=r,this.lineCap=i,this.lineWidth=o,this.lineJoin=a;var C=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],E=1===S?this.posY+this.margin[0]:this.margin[0],B=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],T=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],P=1===S?0:B+(S-2)*T;if(0!==this.ctx.clip_path.length){var k=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(l,this.posX+this.margin[3],-P+E+this.ctx.prevPageLastElemOffset),_.call(this,t,!0),this.path=k}if(A=JSON.parse(JSON.stringify(c)),this.path=b(A,this.posX+this.margin[3],-P+E+this.ctx.prevPageLastElemOffset),!1===e||0===S){var I=(S>m||S<w)&&y.call(this);I&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],C,T,null).clip().discardPath()),_.call(this,t,e),I&&this.pdf.restoreGraphicsState()}this.lineWidth=s}this.path=c}else this.lineWidth=o,_.call(this,t,e),this.lineWidth=s},_=function(t,e){if(("stroke"!==t||e||!m.call(this))&&("stroke"===t||e||!g.call(this))){for(var n,r,i=[],s=this.path,o=0;o<s.length;o++){var a=s[o];switch(a.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:a,deltas:[],abs:[]});break;case"lt":var l=i.length;if(s[o-1]&&!isNaN(s[o-1].x)&&(n=[a.x-s[o-1].x,a.y-s[o-1].y],l>0))for(;l>=0;l--)if(!0!==i[l-1].close&&!0!==i[l-1].begin){i[l-1].deltas.push(n),i[l-1].abs.push(a);break}break;case"bct":n=[a.x1-s[o-1].x,a.y1-s[o-1].y,a.x2-s[o-1].x,a.y2-s[o-1].y,a.x-s[o-1].x,a.y-s[o-1].y],i[i.length-1].deltas.push(n);break;case"qct":var A=s[o-1].x+2/3*(a.x1-s[o-1].x),c=s[o-1].y+2/3*(a.y1-s[o-1].y),h=a.x+2/3*(a.x1-a.x),u=a.y+2/3*(a.y1-a.y),p=a.x,d=a.y;n=[A-s[o-1].x,c-s[o-1].y,h-s[o-1].x,u-s[o-1].y,p-s[o-1].x,d-s[o-1].y],i[i.length-1].deltas.push(n);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(a)}}r=e?null:"stroke"===t?"stroke":"fill";for(var f=!1,y=0;y<i.length;y++)if(i[y].arc)for(var v=i[y].abs,O=0;O<v.length;O++){var b=v[O];"arc"===b.type?E.call(this,b.x,b.y,b.radius,b.startAngle,b.endAngle,b.counterclockwise,void 0,e,!f):I.call(this,b.x,b.y),f=!0}else if(!0===i[y].close)this.pdf.internal.out("h"),f=!1;else if(!0!==i[y].begin){var x=i[y].start.x,w=i[y].start.y;N.call(this,i[y].deltas,x,w),f=!0}r&&B.call(this,r),e&&T.call(this)}},S=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;default:return t}},C=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 E=function(t,e,n,r,i,s,o,a,l){for(var A=F.call(this,n,r,i,s),c=0;c<A.length;c++){var h=A[c];0===c&&(l?P.call(this,h.x1+t,h.y1+e):I.call(this,h.x1+t,h.y1+e)),Q.call(this,t,e,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}a?T.call(this):B.call(this,o)},B=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},T=function(){this.pdf.clip(),this.pdf.discardPath()},P=function(t,e){this.pdf.internal.out(n(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 n,r,i,s=this.pdf.getTextDimensions(t.text),o=S.call(this,t.y),A=C.call(this,o)-s.h,h=this.ctx.transform.applyToPoint(new a(t.x,o));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 d=this.ctx.transform.applyToRectangle(new l(t.x,o,s.w,s.h)),f=p.applyToRectangle(new l(t.x,A,s.w,s.h)),g=v.call(this,f),m=[],O=0;O<g.length;O+=1)-1===m.indexOf(g[O])&&m.push(g[O]);x(m);for(var w=m[0],E=m[m.length-1],B=w;B<E+1;B++){this.pdf.setPage(B);var T=1===B?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[2],I=k-this.margin[0],N=this.pdf.internal.pageSize.width-this.margin[1],Q=N-this.margin[3],F=1===B?0:P+(B-2)*I;if(0!==this.ctx.clip_path.length){var L=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(n,this.posX+this.margin[3],-1*F+T),_.call(this,"fill",!0),this.path=L}var M=b([JSON.parse(JSON.stringify(f))],this.posX+this.margin[3],-F+T+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*t.scale),i=this.lineWidth,this.lineWidth=i*t.scale);var D="text"!==this.autoPaging;if(D||M.y+M.h<=k){if(D||M.y>=T&&M.x<=N){var R=D?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||N-M.x)[0],U=b([JSON.parse(JSON.stringify(d))],this.posX+this.margin[3],-F+T+this.ctx.prevPageLastElemOffset)[0],$=D&&(B>w||B<E)&&y.call(this);$&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Q,I,null).clip().discardPath()),this.pdf.text(R,U.x,U.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),$&&this.pdf.restoreGraphicsState()}}else M.y<k&&(this.ctx.prevPageLastElemOffset+=k-M.y);t.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=i)}}else t.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*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(r),this.lineWidth=i)},I=function(t,e,r,s){r=r||0,s=s||0,this.pdf.internal.out(n(t+r)+" "+i(e+s)+" l")},N=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},Q=function(t,n,r,i,a,l,A,c){this.pdf.internal.out([e(s(r+t)),e(o(i+n)),e(s(a+t)),e(o(l+n)),e(s(A+t)),e(o(c+n)),"c"].join(" "))},F=function(t,e,n,r){for(var i=2*Math.PI,s=Math.PI/2;e>n;)e-=i;var o=Math.abs(n-e);o<i&&r&&(o=i-o);for(var a=[],l=r?-1:1,A=e;o>1e-5;){var c=A+l*Math.min(o,s);a.push(L.call(this,t,A,c)),o-=Math.abs(c-A),A=c}return a},L=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),s=t*Math.sin(r),o=i,a=-s,l=o*o+a*a,A=l+o*i+a*s,c=4/3*(Math.sqrt(2*l*A)-A)/(o*s-a*i),h=o-c*a,u=a+c*o,p=h,d=-u,f=r+e,g=Math.cos(f),m=Math.sin(f);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:h*g-u*m,y2:h*m+u*g,x3:p*g-d*m,y3:p*m+d*g,x4:t*Math.cos(n),y4:t*Math.sin(n)}},M=function(t){return 180*t/Math.PI},D=function(t,e,n,r,i,s){var o=t+.5*(n-t),a=e+.5*(r-e),A=i+.5*(n-i),c=s+.5*(r-s),h=Math.min(t,i,o,A),u=Math.max(t,i,o,A),p=Math.min(e,s,a,c),d=Math.max(e,s,a,c);return new l(h,p,u-h,d-p)},R=function(t,e,n,r,i,s,o,a){var A,c,h,u,p,d,f,g,m,y,v,O,b,x,w=n-t,_=r-e,S=i-n,C=s-r,E=o-i,B=a-s;for(c=0;c<41;c++)m=(f=(h=t+(A=c/40)*w)+A*((p=n+A*S)-h))+A*(p+A*(i+A*E-p)-f),y=(g=(u=e+A*_)+A*((d=r+A*C)-u))+A*(d+A*(s+A*B-d)-g),0==c?(v=m,O=y,b=m,x=y):(v=Math.min(v,m),O=Math.min(O,y),b=Math.max(b,m),x=Math.max(x,y));return new l(Math.round(v),Math.round(O),Math.round(b-v),Math.round(x-O))},U=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,n=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(U.API),function(t){var e=function(t){var e,n,r,i,s,o,a,l,A,c;for(/[^\x00-\xFF]/.test(t),n=[],r=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>r;r+=4)0!==(s=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(o=(s=((s=((s=((s=(s-(c=s%85))/85)-(A=s%85))/85)-(l=s%85))/85)-(a=s%85))/85)%85,n.push(o+33,a+33,l+33,A+33,c+33)):n.push(122);return function(t,e){for(var n=e;n>0;n--)t.pop()}(n,e.length),String.fromCharCode.apply(String,n)+"~>"},n=function(t){var e,n,r,i,s,o=String,a="length",l=255,A="charCodeAt",c="slice",h="replace";for(t[c](-2),t=t[c](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),r=[],i=0,s=(t+=e="uuuuu"[c](t[a]%5||5))[a];s>i;i+=5)n=52200625*(t[A](i)-33)+614125*(t[A](i+1)-33)+7225*(t[A](i+2)-33)+85*(t[A](i+3)-33)+(t[A](i+4)-33),r.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(t,e){for(var n=e;n>0;n--)t.pop()}(r,e[a]),o.fromCharCode.apply(o,r)},r=function(t){return t.split("").map(function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)}).join("")+">"},s=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 n="",r=0;r<t.length;r+=2)n+=String.fromCharCode("0x"+(t[r]+t[r+1]));return n},o=function(t){for(var e=new Uint8Array(t.length),n=t.length;n--;)e[n]=t.charCodeAt(n);return(e=(0,i.$)(e)).reduce(function(t,e){return t+String.fromCharCode(e)},"")};t.processDataByFilters=function(t,i){var a=0,l=t||"",A=[];for("string"==typeof(i=i||[])&&(i=[i]),a=0;a<i.length;a+=1)switch(i[a]){case"ASCII85Decode":case"/ASCII85Decode":l=n(l),A.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),A.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=s(l),A.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=r(l),A.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=o(l),A.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[a]+'" is not implemented')}return{data:l,reverseChain:A.reverse().join(" ")}}}(U.API),function(t){t.loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(t,e,n){var r=new XMLHttpRequest,i=0,s=function(t){var e=t.length,n=[],r=String.fromCharCode;for(i=0;i<e;i+=1)n.push(r(255&t.charCodeAt(i)));return n.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){200===r.status?n(s(this.responseText)):n(void 0)}),r.send(null),e&&200===r.status)return s(r.responseText)}(t,e,n)}catch(t){}return r}(t,e,n)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile}(U.API),function(t){function e(){return(a.html2canvas?Promise.resolve(a.html2canvas):n.e(3440).then(n.t.bind(n,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):n.e(559).then(n.bind(n,30559))).catch(function(t){return Promise.reject(new Error("Could not load dompurify: "+t))}).then(function(t){return t.default?t.default:t})}var s=function(t){var e=(0,r.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"},o=function(t,e){var n=document.createElement(t);for(var r in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[r]=e.style[r];return n},l=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft},!0)),r},A=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),n);return(r=r.setProgress(1,t,1,[t])).set(e)};(A.prototype=Object.create(Promise.prototype)).constructor=A,A.convert=function(t,e){return t.__proto__=e||A.prototype,t},A.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"}},A.prototype.from=function(t,e){return this.then(function(){switch(e=e||function(t){switch(s(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:o("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.")}})},A.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.")}},A.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=l(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=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},A.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)})},A.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,n=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.onrendered,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=n,n)for(var s=0;s<n.length;++s){var o=n[s],a=o.src.find(function(t){return"truetype"===t.format});a&&e.addFont(a.url,o.ref.name,o.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)})},A.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})},A.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},A.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},A.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(t,e)})},A.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.'}})},A.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)})},A.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},A.prototype.set=function(t){if("object"!==s(t))return this;var e=Object.keys(t||{}).map(function(e){if(e in A.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)})},A.prototype.get=function(t,e){return this.then(function(){var n=t in A.template.prop?this.prop[t]:this.opt[t];return e?e(n):n})},A.prototype.setMargin=function(t){return this.then(function(){switch(s(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)},A.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then(function(){(t=t||U.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})},A.prototype.setProgress=function(t,e,n,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},A.prototype.updateProgress=function(t,e,n,r){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},A.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,function(e){return n.updateProgress(null,t),e}).then(t,e).then(function(t){return n.updateProgress(1),t})})},A.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then;var r=this;t&&(t=t.bind(r)),e&&(e=e.bind(r));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:A.convert(Object.assign({},r),Promise.prototype),s=n.call(i,t,e);return A.convert(s,r.__proto__)},A.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},A.prototype.thenList=function(t){var e=this;return t.forEach(function(t){e=e.thenCore(t)}),e},A.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return A.convert(e,this)},A.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},A.prototype.error=function(t){return this.then(function(){throw new Error(t)})},A.prototype.using=A.prototype.set,A.prototype.saveAs=A.prototype.save,A.prototype.export=A.prototype.output,A.prototype.run=A.prototype.then,U.getPageSize=function(t,e,n){if("object"===(0,r.A)(t)){var i=t;t=i.orientation,e=i.unit||e,n=i.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var s,o=(""+n).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":s=1;break;case"mm":s=72/25.4;break;case"cm":s=72/2.54;break;case"in":s=72;break;case"px":s=.75;break;case"pc":case"em":s=12;break;case"ex":s=6;break;default:throw"Invalid unit: "+e}var l,A=0,c=0;if(a.hasOwnProperty(o))A=a[o][1]/s,c=a[o][0]/s;else try{A=n[1],c=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",c>A&&(l=c,c=A,A=l);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",A>c&&(l=c,c=A,A=l)}return{width:c,height:A,unit:e,k:s,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(Lt):null;var n=new A(e);return e.worker?n:n.from(t).doCallback()}}(U.API),U.API.addJS=function(t){var e,n,r=function(t){for(var e="",n=0;n<t.length;n++){var r=t[n];if("("===r||")"===r){for(var i=0,s=n-1;s>=0&&"\\"===t[s];s--)i++;e+=i%2==0?"\\"+r:r}else e+=r}return e}(t);return this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==e&&void 0!==n&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")}),this},function(t){var e;t.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=t.outline.render().split(/\r\n/),i=0;i<r.length;i++){var s=r[i],o=n.exec(s);if(null!=o){var a=o[1];t.internal.newObjectDeferredBegin(a,!1)}t.internal.write(s)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,A=[];for(i=0;i<l;i++){var c=t.internal.newObject();A.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<A.length;i++)t.internal.write("(page_"+(i+1)+")"+A[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,n){var r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},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 n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},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 n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<e.children.length;r++){var i=e.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),r>0&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var s=this.count=this.count_r({count:0},i);if(s>0&&this.line("/Count "+s),i.options&&i.options.pageNumber){var o=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(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 n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}])}(U.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,n,r,i,s,o){var a,l=this.decode.DCT_DECODE,A=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=s||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,a=function(t){for(var n,r=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,s={width:0,height:0,numcomponents:1},o=4;o<i;o+=2){if(o+=r,-1!==e.indexOf(t.charCodeAt(o+1))){n=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),s={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:n,numcomponents:t.charCodeAt(o+9)};break}r=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return s}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t),a.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}A={data:t,width:a.width,height:a.height,colorSpace:o,bitsPerComponent:8,filter:l,index:n,alias:r}}return A}}(U.API),U.API.processPNG=function(t,e,n,r){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var a,l=(0,o.D4)(t,{checkCrc:!0}),A=l.width,c=l.height,h=l.channels,u=l.palette,p=l.depth;a=u&&1===h?function(t){for(var e=t.width,n=t.height,r=t.data,i=t.palette,o=t.depth,a=!1,l=[],A=[],c=void 0,h=!1,u=0,p=0;p<i.length;p++){var d=(0,s.A)(i[p],4),f=d[0],g=d[1],m=d[2],y=d[3];l.push(f,g,m),null!=y&&(0===y?(u++,A.length<1&&A.push(p)):y<255&&(h=!0))}if(h||u>1){a=!0,A=void 0;var v=e*n;c=new Uint8Array(v);for(var O=new DataView(r.buffer),b=0;b<v;b++){var x=ie(O,b,o),w=(0,s.A)(i[x],4)[3];c[b]=w}}else 0===u&&(A=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:a?8:void 0,colorBytes:r,alphaBytes:c,needSMask:a,palette:l,mask:A}}(l):2===h||4===h?function(t){for(var e=t.data,n=t.width,r=t.height,i=t.channels,s=t.depth,o=2===i?"DeviceGray":"DeviceRGB",a=i-1,l=n*r,A=a,c=l*A,h=1*l,u=Math.ceil(c*s/8),p=Math.ceil(h*s/8),d=new Uint8Array(u),f=new Uint8Array(p),g=new DataView(e.buffer),m=new DataView(d.buffer),y=new DataView(f.buffer),v=!1,O=0;O<l;O++){for(var b=O*i,x=0;x<A;x++)se(m,ie(g,b+x,s),O*A+x,s);var w=ie(g,b+A,s);w<(1<<s)-1&&(v=!0),se(y,w,1*O,s)}return{colorSpace:o,colorsPerPixel:a,sMaskBitsPerComponent:v?s:void 0,colorBytes:d,alphaBytes:f,needSMask:v}}(l):function(t){var e=t.data,n=1===t.channels?"DeviceGray":"DeviceRGB";return{colorSpace:n,colorsPerPixel:"DeviceGray"===n?1:3,colorBytes:e instanceof Uint16Array?function(t){for(var e=t.length,n=new Uint8Array(2*e),r=new DataView(n.buffer,n.byteOffset,n.byteLength),i=0;i<e;i++)r.setUint16(2*i,t[i],!1);return n}(e):e,needSMask:!1}}(l);var d,f,g,m=a,y=m.colorSpace,v=m.colorsPerPixel,O=m.sMaskBitsPerComponent,b=m.colorBytes,x=m.alphaBytes,w=m.needSMask,_=m.palette,S=m.mask,C=null;return r!==U.API.image_compression.NONE&&"function"==typeof i.$?(C=function(t){var e;switch(t){case U.API.image_compression.FAST:e=11;break;case U.API.image_compression.MEDIUM:e=13;break;case U.API.image_compression.SLOW:e=14;break;default:e=12}return e}(r),d=this.decode.FLATE_DECODE,f="/Predictor ".concat(C," /Colors ").concat(v," /BitsPerComponent ").concat(p," /Columns ").concat(A),t=Zt(b,Math.ceil(A*v*p/8),v,p,r),w&&(g=Zt(x,Math.ceil(A*O/8),1,O,r))):(d=void 0,f=void 0,t=b,w&&(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:n,data:t,index:e,filter:d,decodeParameters:f,transparency:S,palette:_,sMask:g,predictor:C,width:A,height:c,bitsPerComponent:p,sMaskBitsPerComponent:O,colorSpace:y}}},function(t){t.processGIF89A=function(e,n,r,i){var s=new ae(e),o=s.width,a=s.height,l=[];s.decodeAndBlitFrameRGBA(0,l);var A={data:l,width:o,height:a},c=new Ae(100).encode(A,100);return t.processJPEG.call(this,c,n,r,i)},t.processGIF87A=t.processGIF89A}(U.API),ce.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 n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ce.prototype.parseBGR=function(){this.pos=this.offset;var t="bit"+this.bitPP,e=this.width*this.height*4;if(e>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(e);try{this[t]()}catch(t){A.log("bit decode error:"+t)}},ce.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var s=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,a=0;a<8&&8*i+a<this.width;a++){var l=this.palette[s>>7-a&1];this.data[o+4*a]=l.blue,this.data[o+4*a+1]=l.green,this.data[o+4*a+2]=l.red,this.data[o+4*a+3]=255}0!==n&&(this.pos+=4-n)}},ce.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var s=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,a=s>>4,l=15&s,A=this.palette[a];if(this.data[o]=A.blue,this.data[o+1]=A.green,this.data[o+2]=A.red,this.data[o+3]=255,2*i+1>=this.width)break;A=this.palette[l],this.data[o+4]=A.blue,this.data[o+4+1]=A.green,this.data[o+4+2]=A.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},ce.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[s]=o.red,this.data[s+1]=o.green,this.data[s+2]=o.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}0!==t&&(this.pos+=4-t)}},ce.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&e)/e*255|0,a=(s>>5&e)/e*255|0,l=(s>>10&e)/e*255|0,A=s>>15?255:0,c=r*this.width*4+4*i;this.data[c]=l,this.data[c+1]=a,this.data[c+2]=o,this.data[c+3]=A}this.pos+=t}},ce.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,s=0;s<this.width;s++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,l=(o>>5&n)/n*255|0,A=(o>>11)/e*255|0,c=i*this.width*4+4*s;this.data[c]=A,this.data[c+1]=l,this.data[c+2]=a,this.data[c+3]=255}this.pos+=t}},ce.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*n;this.data[o]=s,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},ce.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*n;this.data[a]=s,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=o}},ce.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,r,i){var s=new ce(e,!1),o=s.width,a=s.height,l={data:s.getData(),width:o,height:a},A=new Ae(100).encode(l,100);return t.processJPEG.call(this,A,n,r,i)}}(U.API),he.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,r,i){var s=new he(e),o=s.width,a=s.height,l={data:s.getData(),width:o,height:a},A=new Ae(100).encode(l,100);return t.processJPEG.call(this,A,n,r,i)}}(U.API),U.API.processRGBA=function(t,e,n){for(var r=t.data,i=r.length,s=new Uint8Array(i/4*3),o=new Uint8Array(i/4),a=0,l=0,A=0;A<i;A+=4){var c=r[A],h=r[A+1],u=r[A+2],p=r[A+3];s[a++]=c,s[a++]=h,s[a++]=u,o[l++]=p}var d=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:d,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},U.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},Vt=U.API,Xt=Vt.getCharWidthsArray=function(t,e){var n,i,s=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:s.metadata.Unicode.widths,A=l.fof?l.fof:1,c=e.kerning?e.kerning:s.metadata.Unicode.kerning,h=c.fof?c.fof:1,u=!1!==e.doKerning,p=0,d=t.length,f=0,g=l[0]||A,m=[];for(n=0;n<d;n++)i=t.charCodeAt(n),"function"==typeof s.metadata.widthOfString?m.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(i))+a*(1e3/o)||0)/1e3):(p=u&&"object"===(0,r.A)(c[i])&&!isNaN(parseInt(c[i][f],10))?c[i][f]/h:0,m.push((l[i]||g)/A+p)),f=i;return m},zt=Vt.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Vt.processArabic&&(t=Vt.processArabic(t)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:Xt.apply(this,arguments).reduce(function(t,e){return t+e},0)},Gt=function(t,e,n,r){for(var i=[],s=0,o=t.length,a=0;s!==o&&a+e[s]<n;)a+=e[s],s++;i.push(t.slice(0,s));var l=s;for(a=0;s!==o;)a+e[s]>r&&(i.push(t.slice(l,s)),a=0,l=s),a+=e[s],s++;return l!==s&&i.push(t.slice(l,s)),i},Yt=function(t,e,n){n||(n={});var r,i,s,o,a,l,A,c=[],h=[c],u=n.textIndent||0,p=0,d=0,f=t.split(" "),g=Xt.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?f[0].length+2:n.lineIndent||0){var m=Array(l).join(" "),y=[];f.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])}),f=y,l=zt.apply(this,[m,n])}for(s=0,o=f.length;s<o;s++){var v=0;if(r=f[s],l&&"\n"==r[0]&&(r=r.substr(1),v=1),u+p+(d=(i=Xt.apply(this,[r,n])).reduce(function(t,e){return t+e},0))>e||v){if(d>e){for(a=Gt.apply(this,[r,i,e-(u+p),e]),c.push(a.shift()),c=[a.pop()];a.length;)h.push([a.shift()]);d=i.slice(r.length-(c[0]?c[0].length:0)).reduce(function(t,e){return t+e},0)}else c=[r];h.push(c),u=d+l,p=g}else c.push(r),u+=p+d,p=g}return A=l?function(t,e){return(e?m:"")+t.join(" ")}:function(t){return t.join(" ")},h.map(A)},Vt.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),s=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle),n="Unicode";return e.metadata[n]?{widths:e.metadata[n].widths||{0:1},kerning:e.metadata[n].kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;s.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,s.lineIndent=n.lineIndent;var a,l,A=[];for(a=0,l=r.length;a<l;a++)A=A.concat(Yt.apply(this,[r[a],o,s]));return A},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="0123456789abcdef",n="klmnopqrstuvwxyz",i={},s={},o=0;o<16;o++)i[n[o]]=e[o],s[e[o]]=n[o];var a=function(t){return"0x"+parseInt(t,10).toString(16)},l=t.__fontmetrics__.compress=function(t){var e,n,i,o,A=["{"];for(var c in t){if(e=t[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=a(c).slice(2)).slice(0,-1)+s[n.slice(-1)]),"number"==typeof e)e<0?(i=a(e).slice(3),o="-"):(i=a(e).slice(2),o=""),i=o+i.slice(0,-1)+s[i.slice(-1)];else{if("object"!==(0,r.A)(e))throw new Error("Don't know what to do with value type "+(0,r.A)(e)+".");i=l(e)}A.push(n+i)}return A.push("}"),A.join("")},A=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,n,r,s,o={},a=1,l=o,A=[],c="",h="",u=t.length-1,p=1;p<u;p+=1)"'"==(s=t[p])?e?(r=e.join(""),e=void 0):e=[]:e?e.push(s):"{"==s?(A.push([l,r]),l={},r=void 0):"}"==s?((n=A.pop())[0][n[1]]=l,r=void 0,l=n[0]):"-"==s?a=-1:void 0===r?i.hasOwnProperty(s)?(c+=i[s],r=parseInt(c,16)*a,a=1,c=""):c+=s:i.hasOwnProperty(s)?(h+=i[s],l[r]=parseInt(h,16)*a,a=1,r=void 0,h=""):h+=s;return o},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:A("{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":A("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":A("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":A("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:A("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":A("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":A("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:A("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:A("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":A("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:A("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":A("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":A("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":A("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":A("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e=t.font,n=u.Unicode[e.postScriptName];n&&(e.metadata.Unicode={},e.metadata.Unicode.widths=n.widths,e.metadata.Unicode.kerning=n.kerning);var r=h.Unicode[e.postScriptName];r&&(e.metadata.Unicode.encoding=r,e.encoding=r.codePages[0])}])}(U.API),function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n};t.API.events.push(["addFont",function(n){var r=void 0,i=n.font,s=n.instance;if(!i.isStandardFont){if(void 0===s)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(r=!1===s.existsFileInVFS(i.postScriptName)?s.loadFile(i.postScriptName):s.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?e(r):e(f(r)),n.metadata=t.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(i,r)}}])}(U),U.API.addSvgAsImage=function(t,e,r,i,s,o,l,c){if(isNaN(e)||isNaN(r))throw A.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(s))throw A.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=s;var u=h.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,h.width,h.height);var p={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return(a.canvg?Promise.resolve(a.canvg):n.e(6143).then(n.bind(n,46143))).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(){d.addImage(h.toDataURL("image/jpeg",1),e,r,i,s,l,c)})},U.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},U.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var i,s,o,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}},l=Object.keys(a),A=[],c=0,h=0,u=0;function p(t,e){var n,r=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var d=l.length;for(u=0;u<d;u+=1)n[l[u]].value=n[l[u]].defaultValue,n[l[u]].explicitSet=!1}if("object"===(0,r.A)(t))for(s in t)if(o=t[s],p(l,s)&&void 0!==o){if("boolean"===n[s].type&&"boolean"==typeof o)n[s].value=o;else if("name"===n[s].type&&p(n[s].valueSet,o))n[s].value=o;else if("integer"===n[s].type&&Number.isInteger(o))n[s].value=o;else if("array"===n[s].type){for(c=0;c<o.length;c+=1)if(i=!0,1===o[c].length&&"number"==typeof o[c][0])A.push(String(o[c]-1));else if(o[c].length>1){for(h=0;h<o[c].length;h+=1)"number"!=typeof o[c][h]&&(i=!1);!0===i&&A.push([o[c][0]-1,o[c][1]-1].join(" "))}n[s].value="["+A.join(" ")+"]"}else n[s].value=n[s].defaultValue;n[s].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},U.API.addMetadata=function(t,e){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceUri:null!=e?e:"http://jspdf.default.namespaceuri/",rawXml:"boolean"==typeof e&&e},this.internal.events.subscribe("putCatalog",pe),this.internal.events.subscribe("postPutResources",ue)),this},function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],s=[""],o=0,a=t.length;o<a;++o){if(n=e.metadata.characterToGlyph(t.charCodeAt(o)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(o),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return s.join("");n=n.toString(16),s.push(i[4-n.length],n)}return s.join("")},r=function(t){var e,n,r,i,s,o,a;for(s="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],o=0,a=(n=Object.keys(t).sort(function(t,e){return t-e})).length;o<a;o++)e=n[o],r.length>=100&&(s+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),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),r.push("<"+e+"><"+i+">"));return r.length&&(s+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),s+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,s=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"Identity-H"===n.encoding){for(var a=n.metadata.Unicode.widths,l=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),A="",c=0;c<l.length;c++)A+=String.fromCharCode(l[c]);var h=s();o({data:A,addLength1:!0,objectId:h}),i("endobj");var u=s();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:u}),i("endobj");var p=s();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+Q(n.fontName)),i("/FontFile2 "+h+" 0 R"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/Flags "+n.metadata.flags),i("/StemV "+n.metadata.stemV),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i(">>"),i("endobj");var d=s();i("<<"),i("/Type /Font"),i("/BaseFont /"+Q(n.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 ("+n.encoding+")"),i(">>"),i(">>"),i("endobj"),n.objectNumber=s(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+u+" 0 R"),i("/BaseFont /"+Q(n.fontName)),i("/Encoding /"+n.encoding),i("/DescendantFonts ["+d+" 0 R]"),i(">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,s=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var a=n.metadata.rawData,l="",A=0;A<a.length;A++)l+=String.fromCharCode(a[A]);var c=s();o({data:l,addLength1:!0,objectId:c}),i("endobj");var h=s();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var u=s();i("<<"),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i("/StemV "+n.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+c+" 0 R"),i("/Flags 96"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/FontName /"+Q(n.fontName)),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i(">>"),i("endobj"),n.objectNumber=s();for(var p=0;p<n.metadata.hmtx.widths.length;p++)n.metadata.hmtx.widths[p]=parseInt(n.metadata.hmtx.widths[p]*(1e3/n.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+Q(n.fontName)+"/FontDescriptor "+u+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]);var i=function(t){var e,r=t.text||"",i=t.x,s=t.y,o=t.options||{},a=t.mutex||{},l=a.pdfEscape,A=a.activeFontKey,c=a.fonts,h=A,u="",p=0,d="",f=c[h].encoding;if("Identity-H"!==c[h].encoding)return{text:r,x:i,y:s,options:o,mutex:a};for(d=r,h=A,Array.isArray(r)&&(d=r[0]),p=0;p<d.length;p+=1)c[h].metadata.hasOwnProperty("cmap")&&(e=c[h].metadata.cmap.unicode.codeMap[d[p].charCodeAt(0)]),e||d[p].charCodeAt(0)<256&&c[h].metadata.hasOwnProperty("Unicode")?u+=d[p]:u+="";var g="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===f?g=l(u,h).split("").map(function(t){return t.charCodeAt(0).toString(16)}).join(""):"Identity-H"===f&&(g=n(u,c[h])),a.isHex=!0,{text:g,x:i,y:s,options:o,mutex:a}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=[],r={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var s=0;for(s=0;s<e.length;s+=1)Array.isArray(e[s])&&3===e[s].length?n.push([i(Object.assign({},r,{text:e[s][0]})).text,e[s][1],e[s][2]]):n.push(i(Object.assign({},r,{text:e[s]})).text);t.text=n}else t.text=i(Object.assign({},r,{text:e})).text}])}(U),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,n){return e.call(this),this.internal.vFS[t]=n,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(U.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,r,i,s,o,a,l,A=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},d=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],f=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,m=0;this.__bidiEngine__={};var y=function(t){var e=t.charCodeAt(),n=e>>8,r=p[n];return void 0!==r?A[256*r+(255&e)]:252===n||253===n?"AL":f.test(n)?"L":8===n?"R":"N"},v=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=y(t.charAt(n))))return!1;if("R"===e)return!0}return!1},O=function(t,e,o,a){var l,A,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"!==(l=o[a-1])&&"AN"!==l||"EN"!==(A=e[a+1])&&"AN"!==A?u="N":g&&(A="AN"),u=A===l?A:"N";break;case"ES":u="EN"===(l=a>0?o[a-1]:"B")&&a+1<e.length&&"EN"===e[a+1]?"EN":"N";break;case"ET":if(a>0&&"EN"===o[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&&!s){for(h=e.length,c=a+1;c<h&&"NSM"===e[c];)c++;if(c<h){var p=t[a],d=p>=1425&&p<=2303||64286===p;if(l=e[c],d&&("R"===l||"AL"===l)){u="R";break}}}u=a<1||"B"===(l=e[a-1])?"N":o[a-1];break;case"B":g=!1,n=!0,u=m;break;case"S":r=!0,u="N"}return u},b=function(t,e,n){var r=t.split("");return n&&x(r,n,{hiLevel:m}),r.reverse(),e&&e.reverse(),r.join("")},x=function(t,e,i){var s,o,a,l,A,p=-1,d=t.length,f=0,v=[],b=m?h:c,x=[];for(g=!1,n=!1,r=!1,o=0;o<d;o++)x[o]=y(t[o]);for(a=0;a<d;a++){if(A=f,v[a]=O(t,x,v,a),s=240&(f=b[A][u[v[a]]]),f&=15,e[a]=l=b[f][5],s>0)if(16===s){for(o=p;o<a;o++)e[o]=1;p=-1}else p=-1;if(b[f][6])-1===p&&(p=a);else if(p>-1){for(o=p;o<a;o++)e[o]=l;p=-1}"B"===x[a]&&(e[a]=0),i.hiLevel|=l}r&&function(t,e,n){for(var r=0;r<n;r++)if("S"===t[r]){e[r]=m;for(var i=r-1;i>=0&&"WS"===t[i];i--)e[i]=m}}(x,e,d)},w=function(t,e,r,i,s){if(!(s.hiLevel<t)){if(1===t&&1===m&&!n)return e.reverse(),void(r&&r.reverse());for(var o,a,l,A,c=e.length,h=0;h<c;){if(i[h]>=t){for(l=h+1;l<c&&i[l]>=t;)l++;for(A=h,a=l-1;A<a;A++,a--)o=e[A],e[A]=e[a],e[a]=o,r&&(o=r[A],r[A]=r[a],r[a]=o);h=l}h++}}},_=function(t,e,n){var r=t.split(""),i={hiLevel:m};return n||(n=[]),x(r,n,i),function(t,e,n){if(0!==n.hiLevel&&l)for(var r,i=0;i<t.length;i++)1===e[i]&&(r=d.indexOf(t[i]))>=0&&(t[i]=d[r+1])}(r,n,i),w(2,r,e,n,i),w(1,r,e,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===s&&(s=v(t)),void 0===a&&(a=v(t))}(t,e),i||!o||a)if(i&&o&&s^a)m=s?1:0,t=b(t,e,n);else if(!i&&o&&a)m=s?1:0,t=_(t,e,n),t=b(t,e);else if(!i||s||o||a){if(i&&!o&&s^a)t=b(t,e),s?(m=0,t=_(t,e,n)):(m=1,t=_(t,e,n),t=b(t,e));else if(i&&s&&!o&&a)m=1,t=_(t,e,n),t=b(t,e);else if(!i&&!o&&s^a){var r=l;s?(m=1,t=_(t,e,n),m=0,l=!1,t=_(t,e,n),l=r):(m=0,t=_(t,e,n),t=b(t,e),m=1,l=!1,t=_(t,e,n),l=r,t=b(t,e))}}else m=0,t=_(t,e,n);else m=s?1:0,t=_(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,o=t.isOutputVisual,s=t.isInputRtl,a=t.isOutputRtl,l=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"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text;t.x,t.y;var r=t.options||{};t.mutex,r.lang;var i=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(e)){var s=0;for(i=[],s=0;s<e.length;s+=1)"[object Array]"===Object.prototype.toString.call(e[s])?i.push([n.doBidiReorder(e[s][0]),e[s][1],e[s][2]]):i.push([n.doBidiReorder(e[s])]);t.text=i}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(U),U.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new fe(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new Qe(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 Ce(this),this.cmap=new be(this),this.toUnicode={},this.hhea=new xe(this),this.maxp=new Ee(this),this.hmtx=new Be(this),this.post=new _e(this),this.os2=new we(this),this.loca=new Ne(this),this.glyf=new Pe(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,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,r,i;for(i=[],e=0,n=(r=this.bbox).length;e<n;e++)t=r[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),32768&(e=r>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):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,n){var r,i,s,o;for(s=0,i=0,o=(t=""+t).length;0<=o?i<o:i>o;i=0<=o?++i:--i)r=t.charCodeAt(i),s+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/e)||0;return s*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var de,fe=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,n;for(n=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r;for(r=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)r.push(this.writeByte(t.charCodeAt(e)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,s,o,a;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),s=this.readByte(),o=this.readByte(),a=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^s)+256*(255^o)+(255^a)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*s+256*o+a},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),ge=function(){var t;function e(t){var e,n,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)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 n,r,i,s,o,a,l,A,c,h,u,p,d;for(d in u=Object.keys(e).length,a=Math.log(2),c=16*Math.floor(Math.log(u)/a),s=Math.floor(c/a),A=16*u-c,(r=new fe).writeInt(this.scalarType),r.writeShort(u),r.writeShort(c),r.writeShort(s),r.writeShort(A),i=16*u,l=r.pos+i,o=null,p=[],e)for(h=e[d],r.writeString(d),r.writeInt(t(h)),r.writeInt(l),r.writeInt(h.length),p=p.concat(h),"head"===d&&(o=l),l+=h.length;l%4;)p.push(0),l++;return r.write(p),n=2981146554-t(r.data),r.pos=o+8,r.writeUInt32(n),r.data},t=function(t){var e,n,r,i;for(t=Te.call(t);t.length%4;)t.push(0);for(r=new fe(t),n=0,e=0,i=t.length;e<i;e=e+=4)n+=r.readUInt32();return 4294967295&n},e}(),me={}.hasOwnProperty,ye=function(t,e){for(var n in e)me.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};de=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,de),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 fe).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}(),Oe=function(){function t(t,e){var n,r,i,s,o,a,l,A,c,h,u,p,d,f,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,n;for(n=[],a=e=0;0<=h?e<h:e>h;a=0<=h?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,d=function(){var e,n;for(n=[],a=e=0;0<=h?e<h:e>h;a=0<=h?++e:--e)n.push(t.readUInt16());return n}(),l=function(){var e,n;for(n=[],a=e=0;0<=h?e<h:e>h;a=0<=h?++e:--e)n.push(t.readUInt16());return n}(),A=function(){var e,n;for(n=[],a=e=0;0<=h?e<h:e>h;a=0<=h?++e:--e)n.push(t.readUInt16());return n}(),r=(this.length-t.pos+this.offset)/2,o=function(){var e,n;for(n=[],a=e=0;0<=r?e<r:e>r;a=0<=r?++e:--e)n.push(t.readUInt16());return n}(),a=g=0,y=i.length;g<y;a=++g)for(f=i[a],n=m=p=d[a];p<=f?m<=f:m>=f;n=p<=f?++m:--m)0===A[a]?s=n+l[a]:0!==(s=o[A[a]/2+(n-p)-(h-a)]||0)&&(s+=l[a]),this.codeMap[n]=65535&s}t.pos=c}return t.encode=function(t,e){var n,r,i,s,o,a,l,A,c,h,u,p,d,f,g,m,y,v,O,b,x,w,_,S,C,E,B,T,P,k,I,N,Q,F,L,M,D,R,U,$,j,H,V,X,z,G;switch(T=new fe,s=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(d=0,f=function(){var t=[];for(p=0;p<256;++p)t.push(0);return t}(),m={0:0},i={},P=0,Q=s.length;P<Q;P++)null==m[V=t[r=s[P]]]&&(m[V]=++d),i[r]={old:t[r],new:m[t[r]]},f[r]=m[t[r]];return T.writeUInt16(1),T.writeUInt16(0),T.writeUInt32(12),T.writeUInt16(0),T.writeUInt16(262),T.writeUInt16(0),T.write(f),{charMap:i,subtable:T.data,maxGlyphID:d+1};case"unicode":for(E=[],c=[],y=0,m={},n={},g=l=null,k=0,F=s.length;k<F;k++)null==m[O=t[r=s[k]]]&&(m[O]=++y),n[r]={old:O,new:m[O]},o=m[O]-r,null!=g&&o===l||(g&&c.push(g),E.push(r),l=o),g=r;for(g&&c.push(g),c.push(65535),E.push(65535),S=2*(_=E.length),w=2*Math.pow(Math.log(_)/Math.LN2,2),h=Math.log(w/2)/Math.LN2,x=2*_-w,a=[],b=[],u=[],p=I=0,L=E.length;I<L;p=++I){if(C=E[p],A=c[p],65535===C){a.push(0),b.push(0);break}if(C-(B=n[C].new)>=32768)for(a.push(0),b.push(2*(u.length+_-p)),r=N=C;C<=A?N<=A:N>=A;r=C<=A?++N:--N)u.push(n[r].new);else a.push(B-C),b.push(0)}for(T.writeUInt16(3),T.writeUInt16(1),T.writeUInt32(12),T.writeUInt16(4),T.writeUInt16(16+8*_+2*u.length),T.writeUInt16(0),T.writeUInt16(S),T.writeUInt16(w),T.writeUInt16(h),T.writeUInt16(x),j=0,M=c.length;j<M;j++)r=c[j],T.writeUInt16(r);for(T.writeUInt16(0),H=0,D=E.length;H<D;H++)r=E[H],T.writeUInt16(r);for(X=0,R=a.length;X<R;X++)o=a[X],T.writeUInt16(o);for(z=0,U=b.length;z<U;z++)v=b[z],T.writeUInt16(v);for(G=0,$=u.length;G<$;G++)d=u[G],T.writeUInt16(d);return{charMap:n,subtable:T.data,maxGlyphID:y+1}}},t}(),be=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="cmap",t.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),r=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)e=new Oe(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},t.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=Oe.encode(t,e),(r=new fe).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},t}(),xe=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),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}(),we=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),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,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),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,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n}(),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}(),_e=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="post",t.prototype.parse=function(t){var e,n,r;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(n=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)e=t.readByte(),r.push(this.names.push(t.readString(e)));return r;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=function(){var e,n,r;for(r=[],i=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;i=0<=n?++e:--e)r.push(t.readUInt32());return r}.call(this)}},t}(),Se=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Ce=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="name",t.prototype.parse=function(t){var e,n,r,i,s,o,a,l,A,c,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),n=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(a={},i=A=0,c=n.length;A<c;i=++A)r=n[i],t.pos=r.offset,l=t.readString(r.length),s=new Se(l,r),null==a[h=r.nameID]&&(a[h]=[]),a[r.nameID].push(s);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}(),Ee=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),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}(),Be=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="hmtx",t.prototype.parse=function(t){var e,n,r,i,s,o,a;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],e=n=0;0<=r?n<r:n>r;e=0<=r?++n:--n)i.push(t.readInt16());return i}(),this.widths=function(){var t,e,n,r;for(r=[],t=0,e=(n=this.metrics).length;t<e;t++)i=n[t],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],a=[],e=s=0;0<=r?s<r:s>r;e=0<=r?++s:--s)a.push(this.widths.push(n));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}(),Te=[].slice,Pe=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(t){var e,n,r,i,s,o,a,l,A,c;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,s=(o=new fe(e.read(r))).readShort(),l=o.readShort(),c=o.readShort(),a=o.readShort(),A=o.readShort(),this.cache[t]=-1===s?new Ie(o,l,c,a,A):new ke(o,s,l,c,a,A),this.cache[t]))},t.prototype.encode=function(t,e,n){var r,i,s,o,a;for(s=[],i=[],o=0,a=e.length;o<a;o++)r=t[e[o]],i.push(s.length),r&&(s=s.concat(r.encode(n)));return i.push(s.length),{table:s,offsets:i}},t}(),ke=function(){function t(t,e,n,r,i,s){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=s,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Ie=function(){function t(t,e,n,r,i){var s,o;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;o=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&o;)s.pos+=1&o?4:2,128&o?s.pos+=8:64&o?s.pos+=4:8&o&&(s.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new fe(Te.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),Ne=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ye(t,de),t.prototype.tag="loca",t.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=4)r.push(t.readUInt32());return r}.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 n=new Uint32Array(this.offsets.length),r=0,i=0,s=0;s<n.length;++s)if(n[s]=r,i<e.length&&e[i]==s){++i,n[s]=r;var o=this.offsets[s],a=this.offsets[s+1]-o;a>0&&(r+=a)}for(var l=new Array(4*n.length),A=0;A<n.length;++A)l[4*A+3]=255&n[A],l[4*A+2]=(65280&n[A])>>8,l[4*A+1]=(16711680&n[A])>>16,l[4*A]=(4278190080&n[A])>>24;return l},t}(),Qe=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,s,o,a;for(r={},s=0,o=t.length;s<o;s++)r[i=t[s]]=this.font.glyf.glyphFor(i);for(i in e=[],r)(null!=(n=r[i])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(i in a=this.glyphsFor(e))n=a[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,s,o,a,l,A,c,h,u,p,d,f,g;for(r in n=be.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(t),u={0:0},g=n.charMap)u[(a=g[r]).old]=a.new;for(p in h=n.maxGlyphID,s)p in u||(u[p]=h++);return A=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(u),c=Object.keys(A).sort(function(t,e){return t-e}),d=function(){var t,e,n;for(n=[],t=0,e=c.length;t<e;t++)o=c[t],n.push(A[o]);return n}(),i=this.font.glyf.encode(s,d,u),l=this.font.loca.encode(i.offsets,d),f={cmap:this.font.cmap.raw(),glyf:i.table,loca:l,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&&(f["OS/2"]=this.font.os2.raw()),this.font.directory.encode(f)},t}();U.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(n){var r,i,s,o;if(Array.isArray(n))return"["+function(){var t,i,s;for(s=[],t=0,i=n.length;t<i;t++)r=n[t],s.push(e.convert(r));return s}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(i in s=["<<"],n)o=n[i],s.push("/"+i+" "+e.convert(o));return s.push(">>"),s.join("\n")}return""+n},e}()},66546(t,e,n){"use strict";function r(t){this.message=t}n.d(e,{A:()=>a}),r.prototype=new Error,r.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 r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,s=0,o=0,a="";i=e.charAt(o++);~i&&(n=s%4?64*n+i:i,s++%4)?a+=String.fromCharCode(255&n>>(-2*s&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a};function s(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 n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(e)}catch(t){return i(e)}}function o(t){this.message=t}o.prototype=new Error,o.prototype.name="InvalidTokenError";const a=function(t,e){if("string"!=typeof t)throw new o("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(s(t.split(".")[n]))}catch(t){throw new o("Invalid token specified: "+t.message)}}},63850(t){var e=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt,o="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,a="object"==typeof self&&self&&self.Object===Object&&self,l=o||a||Function("return this")(),A=Object.prototype.toString,c=Math.max,h=Math.min,u=function(){return l.Date.now()};function p(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function d(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==A.call(t)}(t))return NaN;if(p(t)){var o="function"==typeof t.valueOf?t.valueOf():t;t=p(o)?o+"":o}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(e,"");var a=r.test(t);return a||i.test(t)?s(t.slice(2),a?2:8):n.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,s,o,a,l,A=0,f=!1,g=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=r,s=i;return r=i=void 0,A=e,o=t.apply(s,n)}function v(t){var n=t-l;return void 0===l||n>=e||n<0||g&&t-A>=s}function O(){var t=u();if(v(t))return b(t);a=setTimeout(O,function(t){var n=e-(t-l);return g?h(n,s-(t-A)):n}(t))}function b(t){return a=void 0,m&&r?y(t):(r=i=void 0,o)}function x(){var t=u(),n=v(t);if(r=arguments,i=this,l=t,n){if(void 0===a)return function(t){return A=t,a=setTimeout(O,e),f?y(t):o}(l);if(g)return a=setTimeout(O,e),y(l)}return void 0===a&&(a=setTimeout(O,e)),o}return e=d(e)||0,p(n)&&(f=!!n.leading,s=(g="maxWait"in n)?c(d(n.maxWait)||0,e):s,m="trailing"in n?!!n.trailing:m),x.cancel=function(){void 0!==a&&clearTimeout(a),A=0,r=l=i=a=void 0},x.flush=function(){return void 0===a?o:b(u())},x}},56869(t,e,n){var r=n(45201)(n(91736),"DataView");t.exports=r},5748(t,e,n){var r=n(14319),i=n(85931),s=n(31914),o=n(78670),a=n(6646);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,t.exports=l},89819(t,e,n){var r=n(21481),i=n(61808);function s(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}s.prototype=r(i.prototype),s.prototype.constructor=s,t.exports=s},14296(t,e,n){var r=n(30651),i=n(73919),s=n(10830),o=n(60794),a=n(4642);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,t.exports=l},42958(t,e,n){var r=n(21481),i=n(61808);function s(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}s.prototype=r(i.prototype),s.prototype.constructor=s,t.exports=s},4292(t,e,n){var r=n(45201)(n(91736),"Map");t.exports=r},98464(t,e,n){var r=n(96771),i=n(70295),s=n(27462),o=n(81410),a=n(90842);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,t.exports=l},2715(t,e,n){var r=n(45201)(n(91736),"Promise");t.exports=r},86646(t,e,n){var r=n(45201)(n(91736),"Set");t.exports=r},84870(t,e,n){var r=n(98464),i=n(22611),s=n(73984);function o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}o.prototype.add=o.prototype.push=i,o.prototype.has=s,t.exports=o},51410(t,e,n){var r=n(14296),i=n(66897),s=n(32345),o=n(93760),a=n(16228),l=n(10468);function A(t){var e=this.__data__=new r(t);this.size=e.size}A.prototype.clear=i,A.prototype.delete=s,A.prototype.get=o,A.prototype.has=a,A.prototype.set=l,t.exports=A},25572(t,e,n){var r=n(91736).Symbol;t.exports=r},52769(t,e,n){var r=n(91736).Uint8Array;t.exports=r},96696(t,e,n){var r=n(45201)(n(91736),"WeakMap");t.exports=r},91442(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},73190(t){t.exports=function(t,e,n,r){for(var i=-1,s=null==t?0:t.length;++i<s;){var o=t[i];e(r,o,n(o),t)}return r}},69542(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},12908(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}},73001(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}},19338(t,e,n){var r=n(71908);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},45318(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},51684(t,e,n){var r=n(7967),i=n(64201),s=n(96628),o=n(77103),a=n(51258),l=n(68276),A=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=s(t),c=!n&&i(t),h=!n&&!c&&o(t),u=!n&&!c&&!h&&l(t),p=n||c||h||u,d=p?r(t.length,String):[],f=d.length;for(var g in t)!e&&!A.call(t,g)||p&&("length"==g||h&&("offset"==g||"parent"==g)||u&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,f))||d.push(g);return d}},39221(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},78255(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},86587(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},52351(t){t.exports=function(t){return t.split("")}},14220(t,e,n){var r=n(9935),i=n(38763);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},60484(t,e,n){var r=n(9935),i=n(38763),s=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var o=t[e];s.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}},65996(t,e,n){var r=n(38763);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},26344(t,e,n){var r=n(82020);t.exports=function(t,e,n,i){return r(t,function(t,r,s){e(i,t,n(t),s)}),i}},5264(t,e,n){var r=n(84534),i=n(86353);t.exports=function(t,e){return t&&r(e,i(e),t)}},67903(t,e,n){var r=n(84534),i=n(93562);t.exports=function(t,e){return t&&r(e,i(e),t)}},9935(t,e,n){var r=n(32582);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},60444(t,e,n){var r=n(51410),i=n(69542),s=n(60484),o=n(5264),a=n(67903),l=n(10481),A=n(20380),c=n(86735),h=n(67939),u=n(20979),p=n(57856),d=n(55804),f=n(85292),g=n(58262),m=n(73798),y=n(96628),v=n(77103),O=n(85487),b=n(97230),x=n(39601),w=n(86353),_=n(93562),S="[object Arguments]",C="[object Function]",E="[object Object]",B={};B[S]=B["[object Array]"]=B["[object ArrayBuffer]"]=B["[object DataView]"]=B["[object Boolean]"]=B["[object Date]"]=B["[object Float32Array]"]=B["[object Float64Array]"]=B["[object Int8Array]"]=B["[object Int16Array]"]=B["[object Int32Array]"]=B["[object Map]"]=B["[object Number]"]=B[E]=B["[object RegExp]"]=B["[object Set]"]=B["[object String]"]=B["[object Symbol]"]=B["[object Uint8Array]"]=B["[object Uint8ClampedArray]"]=B["[object Uint16Array]"]=B["[object Uint32Array]"]=!0,B["[object Error]"]=B[C]=B["[object WeakMap]"]=!1,t.exports=function t(e,n,T,P,k,I){var N,Q=1&n,F=2&n,L=4&n;if(T&&(N=k?T(e,P,k,I):T(e)),void 0!==N)return N;if(!b(e))return e;var M=y(e);if(M){if(N=f(e),!Q)return A(e,N)}else{var D=d(e),R=D==C||"[object GeneratorFunction]"==D;if(v(e))return l(e,Q);if(D==E||D==S||R&&!k){if(N=F||R?{}:m(e),!Q)return F?h(e,a(N,e)):c(e,o(N,e))}else{if(!B[D])return k?e:{};N=g(e,D,Q)}}I||(I=new r);var U=I.get(e);if(U)return U;I.set(e,N),x(e)?e.forEach(function(r){N.add(t(r,n,T,r,e,I))}):O(e)&&e.forEach(function(r,i){N.set(i,t(r,n,T,i,e,I))});var $=M?void 0:(L?F?p:u:F?_:w)(e);return i($||e,function(r,i){$&&(r=e[i=r]),s(N,i,t(r,n,T,i,e,I))}),N}},21481(t,e,n){var r=n(97230),i=Object.create,s=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=s},82020(t,e,n){var r=n(93880),i=n(67636)(r);t.exports=i},17210(t,e,n){var r=n(82020);t.exports=function(t,e){var n=!0;return r(t,function(t,r,i){return n=!!e(t,r,i)}),n}},69587(t,e,n){var r=n(82020);t.exports=function(t,e){var n=[];return r(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}},86424(t){t.exports=function(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}},34403(t,e,n){var r=n(78255),i=n(62892);t.exports=function t(e,n,s,o,a){var l=-1,A=e.length;for(s||(s=i),a||(a=[]);++l<A;){var c=e[l];n>0&&s(c)?n>1?t(c,n-1,s,o,a):r(a,c):o||(a[a.length]=c)}return a}},19810(t,e,n){var r=n(70034)();t.exports=r},93880(t,e,n){var r=n(19810),i=n(86353);t.exports=function(t,e){return t&&r(t,e,i)}},85049(t,e,n){var r=n(46476),i=n(20018);t.exports=function(t,e){for(var n=0,s=(e=r(e,t)).length;null!=t&&n<s;)t=t[i(e[n++])];return n&&n==s?t:void 0}},18614(t,e,n){var r=n(78255),i=n(96628);t.exports=function(t,e,n){var s=e(t);return i(t)?s:r(s,n(t))}},98561(t,e,n){var r=n(25572),i=n(18504),s=n(31567),o=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):s(t)}},19142(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},71908(t,e,n){var r=n(86424),i=n(80148),s=n(23092);t.exports=function(t,e,n){return e==e?s(t,e,n):r(t,i,n)}},83465(t,e,n){var r=n(98561),i=n(28089);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},14877(t,e,n){var r=n(38527),i=n(28089);t.exports=function t(e,n,s,o,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,s,o,t,a))}},38527(t,e,n){var r=n(51410),i=n(5988),s=n(98611),o=n(1608),a=n(55804),l=n(96628),A=n(77103),c=n(68276),h="[object Arguments]",u="[object Array]",p="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,f,g,m){var y=l(t),v=l(e),O=y?u:a(t),b=v?u:a(e),x=(O=O==h?p:O)==p,w=(b=b==h?p:b)==p,_=O==b;if(_&&A(t)){if(!A(e))return!1;y=!0,x=!1}if(_&&!x)return m||(m=new r),y||c(t)?i(t,e,n,f,g,m):s(t,e,O,n,f,g,m);if(!(1&n)){var S=x&&d.call(t,"__wrapped__"),C=w&&d.call(e,"__wrapped__");if(S||C){var E=S?t.value():t,B=C?e.value():e;return m||(m=new r),g(E,B,n,f,m)}}return!!_&&(m||(m=new r),o(t,e,n,f,g,m))}},9839(t,e,n){var r=n(55804),i=n(28089);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},36084(t,e,n){var r=n(51410),i=n(14877);t.exports=function(t,e,n,s){var o=n.length,a=o,l=!s;if(null==t)return!a;for(t=Object(t);o--;){var A=n[o];if(l&&A[2]?A[1]!==t[A[0]]:!(A[0]in t))return!1}for(;++o<a;){var c=(A=n[o])[0],h=t[c],u=A[1];if(l&&A[2]){if(void 0===h&&!(c in t))return!1}else{var p=new r;if(s)var d=s(h,u,c,t,e,p);if(!(void 0===d?i(u,h,3,s,p):d))return!1}}return!0}},80148(t){t.exports=function(t){return t!=t}},70986(t,e,n){var r=n(65085),i=n(29617),s=n(97230),o=n(9716),a=/^\[object .+?Constructor\]$/,l=Function.prototype,A=Object.prototype,c=l.toString,h=A.hasOwnProperty,u=RegExp("^"+c.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||i(t))&&(r(t)?u:a).test(o(t))}},27217(t,e,n){var r=n(55804),i=n(28089);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},3924(t,e,n){var r=n(98561),i=n(33341),s=n(28089),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return s(t)&&i(t.length)&&!!o[r(t)]}},55992(t,e,n){var r=n(71176),i=n(80229),s=n(1007),o=n(96628),a=n(79564);t.exports=function(t){return"function"==typeof t?t:null==t?s:"object"==typeof t?o(t)?i(t[0],t[1]):r(t):a(t)}},41009(t,e,n){var r=n(95804),i=n(54407),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))s.call(t,n)&&"constructor"!=n&&e.push(n);return e}},58458(t,e,n){var r=n(97230),i=n(95804),s=n(48716),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return s(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&o.call(t,a))&&n.push(a);return n}},61808(t){t.exports=function(){}},75059(t,e,n){var r=n(82020),i=n(72059);t.exports=function(t,e){var n=-1,s=i(t)?Array(t.length):[];return r(t,function(t,r,i){s[++n]=e(t,r,i)}),s}},71176(t,e,n){var r=n(36084),i=n(15157),s=n(82001);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?s(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},80229(t,e,n){var r=n(14877),i=n(32249),s=n(5830),o=n(5749),a=n(50265),l=n(82001),A=n(20018);t.exports=function(t,e){return o(t)&&a(e)?l(A(t),e):function(n){var o=i(n,t);return void 0===o&&o===e?s(n,t):r(e,o,3)}}},22725(t,e,n){var r=n(51410),i=n(14220),s=n(19810),o=n(2887),a=n(97230),l=n(93562),A=n(2169);t.exports=function t(e,n,c,h,u){e!==n&&s(n,function(s,l){if(u||(u=new r),a(s))o(e,n,l,c,t,h,u);else{var p=h?h(A(e,l),s,l+"",e,n,u):void 0;void 0===p&&(p=s),i(e,l,p)}},l)}},2887(t,e,n){var r=n(14220),i=n(10481),s=n(78534),o=n(20380),a=n(73798),l=n(64201),A=n(96628),c=n(81856),h=n(77103),u=n(65085),p=n(97230),d=n(23506),f=n(68276),g=n(2169),m=n(58089);t.exports=function(t,e,n,y,v,O,b){var x=g(t,n),w=g(e,n),_=b.get(w);if(_)r(t,n,_);else{var S=O?O(x,w,n+"",t,e,b):void 0,C=void 0===S;if(C){var E=A(w),B=!E&&h(w),T=!E&&!B&&f(w);S=w,E||B||T?A(x)?S=x:c(x)?S=o(x):B?(C=!1,S=i(w,!0)):T?(C=!1,S=s(w,!0)):S=[]:d(w)||l(w)?(S=x,l(x)?S=m(x):p(x)&&!u(x)||(S=a(w))):C=!1}C&&(b.set(w,S),v(S,w,y,O,b),b.delete(w)),r(t,n,S)}}},99528(t,e,n){var r=n(39221),i=n(85049),s=n(55992),o=n(75059),a=n(79920),l=n(36390),A=n(55925),c=n(1007),h=n(96628);t.exports=function(t,e,n){e=e.length?r(e,function(t){return h(t)?function(e){return i(e,1===t.length?t[0]:t)}:t}):[c];var u=-1;e=r(e,l(s));var p=o(t,function(t,n,i){return{criteria:r(e,function(e){return e(t)}),index:++u,value:t}});return a(p,function(t,e){return A(t,e,n)})}},36364(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},71986(t,e,n){var r=n(85049);t.exports=function(t){return function(e){return r(e,t)}}},74959(t,e,n){var r=n(1007),i=n(12036),s=n(55806);t.exports=function(t,e){return s(i(t,e,r),t+"")}},35421(t,e,n){var r=n(60484),i=n(46476),s=n(51258),o=n(97230),a=n(20018);t.exports=function(t,e,n,l){if(!o(t))return t;for(var A=-1,c=(e=i(e,t)).length,h=c-1,u=t;null!=u&&++A<c;){var p=a(e[A]),d=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(A!=h){var f=u[p];void 0===(d=l?l(f,p,u):void 0)&&(d=o(f)?f:s(e[A+1])?[]:{})}r(u,p,d),u=u[p]}return t}},83549(t,e,n){var r=n(1007),i=n(43011),s=i?function(t,e){return i.set(t,e),t}:r;t.exports=s},3317(t,e,n){var r=n(7965),i=n(32582),s=n(1007),o=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:s;t.exports=o},30495(t){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}},79920(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},76982(t){t.exports=function(t,e){for(var n,r=-1,i=t.length;++r<i;){var s=e(t[r]);void 0!==s&&(n=void 0===n?s:n+s)}return n}},7967(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},75293(t,e,n){var r=n(25572),i=n(39221),s=n(96628),o=n(83089),a=r?r.prototype:void 0,l=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(s(e))return i(e,t)+"";if(o(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},29605(t,e,n){var r=n(49327),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},36390(t){t.exports=function(t){return function(e){return t(e)}}},97936(t,e,n){var r=n(84870),i=n(19338),s=n(45318),o=n(39506),a=n(72454),l=n(57850);t.exports=function(t,e,n){var A=-1,c=i,h=t.length,u=!0,p=[],d=p;if(n)u=!1,c=s;else if(h>=200){var f=e?null:a(t);if(f)return l(f);u=!1,c=o,d=new r}else d=e?[]:p;t:for(;++A<h;){var g=t[A],m=e?e(g):g;if(g=n||0!==g?g:0,u&&m==m){for(var y=d.length;y--;)if(d[y]===m)continue t;e&&d.push(m),p.push(g)}else c(d,m,n)||(d!==p&&d.push(m),p.push(g))}return p}},1116(t,e,n){var r=n(46476),i=n(10017),s=n(42940),o=n(20018),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=-1,l=(e=r(e,t)).length;if(!l)return!0;for(var A=null==t||"object"!=typeof t&&"function"!=typeof t;++n<l;){var c=e[n];if("string"==typeof c){if("__proto__"===c&&!a.call(t,"__proto__"))return!1;if("constructor"===c&&n+1<l&&"string"==typeof e[n+1]&&"prototype"===e[n+1]){if(A&&0===n)continue;return!1}}}var h=s(t,e);return null==h||delete h[o(i(e))]}},39506(t){t.exports=function(t,e){return t.has(e)}},46476(t,e,n){var r=n(96628),i=n(5749),s=n(71951),o=n(55805);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:s(o(t))}},46189(t,e,n){var r=n(30495);t.exports=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}},34428(t,e,n){var r=n(52769);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},10481(t,e,n){t=n.nmd(t);var r=n(91736),i=e&&!e.nodeType&&e,s=i&&t&&!t.nodeType&&t,o=s&&s.exports===i?r.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}},88454(t,e,n){var r=n(34428);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},27202(t){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},48687(t,e,n){var r=n(25572),i=r?r.prototype:void 0,s=i?i.valueOf:void 0;t.exports=function(t){return s?Object(s.call(t)):{}}},78534(t,e,n){var r=n(34428);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},73895(t,e,n){var r=n(83089);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,s=t==t,o=r(t),a=void 0!==e,l=null===e,A=e==e,c=r(e);if(!l&&!c&&!o&&t>e||o&&a&&A&&!l&&!c||i&&a&&A||!n&&A||!s)return 1;if(!i&&!o&&!c&&t<e||c&&n&&s&&!i&&!o||l&&n&&s||!a&&s||!A)return-1}return 0}},55925(t,e,n){var r=n(73895);t.exports=function(t,e,n){for(var i=-1,s=t.criteria,o=e.criteria,a=s.length,l=n.length;++i<a;){var A=r(s[i],o[i]);if(A)return i>=l?A:A*("desc"==n[i]?-1:1)}return t.index-e.index}},50199(t){var e=Math.max;t.exports=function(t,n,r,i){for(var s=-1,o=t.length,a=r.length,l=-1,A=n.length,c=e(o-a,0),h=Array(A+c),u=!i;++l<A;)h[l]=n[l];for(;++s<a;)(u||s<o)&&(h[r[s]]=t[s]);for(;c--;)h[l++]=t[s++];return h}},84309(t){var e=Math.max;t.exports=function(t,n,r,i){for(var s=-1,o=t.length,a=-1,l=r.length,A=-1,c=n.length,h=e(o-l,0),u=Array(h+c),p=!i;++s<h;)u[s]=t[s];for(var d=s;++A<c;)u[d+A]=n[A];for(;++a<l;)(p||s<o)&&(u[d+r[a]]=t[s++]);return u}},20380(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},84534(t,e,n){var r=n(60484),i=n(9935);t.exports=function(t,e,n,s){var o=!n;n||(n={});for(var a=-1,l=e.length;++a<l;){var A=e[a],c=s?s(n[A],t[A],A,n,t):void 0;void 0===c&&(c=t[A]),o?i(n,A,c):r(n,A,c)}return n}},86735(t,e,n){var r=n(84534),i=n(7781);t.exports=function(t,e){return r(t,i(t),e)}},67939(t,e,n){var r=n(84534),i=n(16438);t.exports=function(t,e){return r(t,i(t),e)}},40080(t,e,n){var r=n(91736)["__core-js_shared__"];t.exports=r},25862(t){t.exports=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}},52937(t,e,n){var r=n(73190),i=n(26344),s=n(55992),o=n(96628);t.exports=function(t,e){return function(n,a){var l=o(n)?r:i,A=e?e():{};return l(n,t,s(a,2),A)}}},25834(t,e,n){var r=n(74959),i=n(3025);t.exports=function(t){return r(function(e,n){var r=-1,s=n.length,o=s>1?n[s-1]:void 0,a=s>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(s--,o):void 0,a&&i(n[0],n[1],a)&&(o=s<3?void 0:o,s=1),e=Object(e);++r<s;){var l=n[r];l&&t(e,l,r,o)}return e})}},67636(t,e,n){var r=n(72059);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var s=n.length,o=e?s:-1,a=Object(n);(e?o--:++o<s)&&!1!==i(a[o],o,a););return n}}},70034(t){t.exports=function(t){return function(e,n,r){for(var i=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[t?a:++i];if(!1===n(s[l],l,s))break}return e}}},32735(t,e,n){var r=n(83782),i=n(91736);t.exports=function(t,e,n){var s=1&e,o=r(t);return function e(){return(this&&this!==i&&this instanceof e?o:t).apply(s?n:this,arguments)}}},3228(t,e,n){var r=n(46189),i=n(52135),s=n(66459),o=n(55805);t.exports=function(t){return function(e){e=o(e);var n=i(e)?s(e):void 0,a=n?n[0]:e.charAt(0),l=n?r(n,1).join(""):e.slice(1);return a[t]()+l}}},83782(t,e,n){var r=n(21481),i=n(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 n=r(t.prototype),s=t.apply(n,e);return i(s)?s:n}}},71185(t,e,n){var r=n(91442),i=n(83782),s=n(54270),o=n(63258),a=n(17280),l=n(55471),A=n(91736);t.exports=function(t,e,n){var c=i(t);return function i(){for(var h=arguments.length,u=Array(h),p=h,d=a(i);p--;)u[p]=arguments[p];var f=h<3&&u[0]!==d&&u[h-1]!==d?[]:l(u,d);return(h-=f.length)<n?o(t,e,s,i.placeholder,void 0,u,f,void 0,void 0,n-h):r(this&&this!==A&&this instanceof i?c:t,this,u)}}},69384(t,e,n){var r=n(42958),i=n(73985),s=n(61546),o=n(22815),a=n(96628),l=n(79538);t.exports=function(t){return i(function(e){var n=e.length,i=n,A=r.prototype.thru;for(t&&e.reverse();i--;){var c=e[i];if("function"!=typeof c)throw new TypeError("Expected a function");if(A&&!h&&"wrapper"==o(c))var h=new r([],!0)}for(i=h?i:n;++i<n;){c=e[i];var u=o(c),p="wrapper"==u?s(c):void 0;h=p&&l(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?h[o(p[0])].apply(h,p[3]):1==c.length&&l(c)?h[u]():h.thru(c)}return function(){var t=arguments,r=t[0];if(h&&1==t.length&&a(r))return h.plant(r).value();for(var i=0,s=n?e[i].apply(this,t):r;++i<n;)s=e[i].call(this,s);return s}})}},54270(t,e,n){var r=n(50199),i=n(84309),s=n(25862),o=n(83782),a=n(63258),l=n(17280),A=n(71017),c=n(55471),h=n(91736);t.exports=function t(e,n,u,p,d,f,g,m,y,v){var O=128&n,b=1&n,x=2&n,w=24&n,_=512&n,S=x?void 0:o(e);return function C(){for(var E=arguments.length,B=Array(E),T=E;T--;)B[T]=arguments[T];if(w)var P=l(C),k=s(B,P);if(p&&(B=r(B,p,d,w)),f&&(B=i(B,f,g,w)),E-=k,w&&E<v){var I=c(B,P);return a(e,n,t,C.placeholder,u,B,I,m,y,v-E)}var N=b?u:this,Q=x?N[e]:e;return E=B.length,m?B=A(B,m):_&&E>1&&B.reverse(),O&&y<E&&(B.length=y),this&&this!==h&&this instanceof C&&(Q=S||o(Q)),Q.apply(N,B)}}},70859(t,e,n){var r=n(91442),i=n(83782),s=n(91736);t.exports=function(t,e,n,o){var a=1&e,l=i(t);return function e(){for(var i=-1,A=arguments.length,c=-1,h=o.length,u=Array(h+A),p=this&&this!==s&&this instanceof e?l:t;++c<h;)u[c]=o[c];for(;A--;)u[c++]=arguments[++i];return r(p,a?n:this,u)}}},63258(t,e,n){var r=n(79538),i=n(64006),s=n(8214);t.exports=function(t,e,n,o,a,l,A,c,h,u){var p=8&e;e|=p?32:64,4&(e&=~(p?64:32))||(e&=-4);var d=[t,e,a,p?l:void 0,p?A:void 0,p?void 0:l,p?void 0:A,c,h,u],f=n.apply(void 0,d);return r(t)&&i(f,d),f.placeholder=o,s(f,t,e)}},22734(t,e,n){var r=n(91736),i=n(78164),s=n(43569),o=n(55805),a=r.isFinite,l=Math.min;t.exports=function(t){var e=Math[t];return function(t,n){if(t=s(t),(n=null==n?0:l(i(n),292))&&a(t)){var r=(o(t)+"e").split("e"),A=e(r[0]+"e"+(+r[1]+n));return+((r=(o(A)+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}},72454(t,e,n){var r=n(86646),i=n(19697),s=n(57850),o=r&&1/s(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=o},42836(t,e,n){var r=n(83549),i=n(32735),s=n(71185),o=n(54270),a=n(70859),l=n(61546),A=n(98198),c=n(64006),h=n(8214),u=n(78164),p=Math.max;t.exports=function(t,e,n,d,f,g,m,y){var v=2&e;if(!v&&"function"!=typeof t)throw new TypeError("Expected a function");var O=d?d.length:0;if(O||(e&=-97,d=f=void 0),m=void 0===m?m:p(u(m),0),y=void 0===y?y:u(y),O-=f?f.length:0,64&e){var b=d,x=f;d=f=void 0}var w=v?void 0:l(t),_=[t,e,n,d,f,b,x,g,m,y];if(w&&A(_,w),t=_[0],e=_[1],n=_[2],d=_[3],f=_[4],!(y=_[9]=void 0===_[9]?v?0:t.length:p(_[9]-O,0))&&24&e&&(e&=-25),e&&1!=e)S=8==e||16==e?s(t,e,y):32!=e&&33!=e||f.length?o.apply(void 0,_):a(t,e,n,d);else var S=i(t,e,n);return h((w?r:c)(S,_),t,e)}},11241(t,e,n){var r=n(23506);t.exports=function(t){return r(t)?void 0:t}},32582(t,e,n){var r=n(45201),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},5988(t,e,n){var r=n(84870),i=n(86587),s=n(39506);t.exports=function(t,e,n,o,a,l){var A=1&n,c=t.length,h=e.length;if(c!=h&&!(A&&h>c))return!1;var u=l.get(t),p=l.get(e);if(u&&p)return u==e&&p==t;var d=-1,f=!0,g=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++d<c;){var m=t[d],y=e[d];if(o)var v=A?o(y,m,d,e,t,l):o(m,y,d,t,e,l);if(void 0!==v){if(v)continue;f=!1;break}if(g){if(!i(e,function(t,e){if(!s(g,e)&&(m===t||a(m,t,n,o,l)))return g.push(e)})){f=!1;break}}else if(m!==y&&!a(m,y,n,o,l)){f=!1;break}}return l.delete(t),l.delete(e),f}},98611(t,e,n){var r=n(25572),i=n(52769),s=n(38763),o=n(5988),a=n(64960),l=n(57850),A=r?r.prototype:void 0,c=A?A.valueOf:void 0;t.exports=function(t,e,n,r,A,h,u){switch(n){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 s(+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 d=1&r;if(p||(p=l),t.size!=e.size&&!d)return!1;var f=u.get(t);if(f)return f==e;r|=2,u.set(t,e);var g=o(p(t),p(e),r,A,h,u);return u.delete(t),g;case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},1608(t,e,n){var r=n(20979),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,s,o,a){var l=1&n,A=r(t),c=A.length;if(c!=r(e).length&&!l)return!1;for(var h=c;h--;){var u=A[h];if(!(l?u in e:i.call(e,u)))return!1}var p=a.get(t),d=a.get(e);if(p&&d)return p==e&&d==t;var f=!0;a.set(t,e),a.set(e,t);for(var g=l;++h<c;){var m=t[u=A[h]],y=e[u];if(s)var v=l?s(y,m,u,e,t,a):s(m,y,u,t,e,a);if(!(void 0===v?m===y||o(m,y,n,s,a):v)){f=!1;break}g||(g="constructor"==u)}if(f&&!g){var O=t.constructor,b=e.constructor;O==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof O&&O instanceof O&&"function"==typeof b&&b instanceof b||(f=!1)}return a.delete(t),a.delete(e),f}},73985(t,e,n){var r=n(23555),i=n(12036),s=n(55806);t.exports=function(t){return s(i(t,void 0,r),t+"")}},38433(t){var e="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;t.exports=e},20979(t,e,n){var r=n(18614),i=n(7781),s=n(86353);t.exports=function(t){return r(t,s,i)}},57856(t,e,n){var r=n(18614),i=n(16438),s=n(93562);t.exports=function(t){return r(t,s,i)}},61546(t,e,n){var r=n(43011),i=n(19697),s=r?function(t){return r.get(t)}:i;t.exports=s},22815(t,e,n){var r=n(53498),i=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",n=r[e],s=i.call(r,e)?n.length:0;s--;){var o=n[s],a=o.func;if(null==a||a==t)return o.name}return e}},17280(t){t.exports=function(t){return t.placeholder}},88670(t,e,n){var r=n(19169);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},15157(t,e,n){var r=n(50265),i=n(86353);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var s=e[n],o=t[s];e[n]=[s,o,r(o)]}return e}},45201(t,e,n){var r=n(70986),i=n(91793);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},12566(t,e,n){var r=n(25300)(Object.getPrototypeOf,Object);t.exports=r},18504(t,e,n){var r=n(25572),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=s.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=o.call(t);return r&&(e?t[a]=n:delete t[a]),i}},7781(t,e,n){var r=n(73001),i=n(32148),s=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(t){return null==t?[]:(t=Object(t),r(o(t),function(e){return s.call(t,e)}))}:i;t.exports=a},16438(t,e,n){var r=n(78255),i=n(12566),s=n(7781),o=n(32148),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,s(t)),t=i(t);return e}:o;t.exports=a},55804(t,e,n){var r=n(56869),i=n(4292),s=n(2715),o=n(86646),a=n(96696),l=n(98561),A=n(9716),c="[object Map]",h="[object Promise]",u="[object Set]",p="[object WeakMap]",d="[object DataView]",f=A(r),g=A(i),m=A(s),y=A(o),v=A(a),O=l;(r&&O(new r(new ArrayBuffer(1)))!=d||i&&O(new i)!=c||s&&O(s.resolve())!=h||o&&O(new o)!=u||a&&O(new a)!=p)&&(O=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,r=n?A(n):"";if(r)switch(r){case f:return d;case g:return c;case m:return h;case y:return u;case v:return p}return e}),t.exports=O},91793(t){t.exports=function(t,e){return null==t?void 0:t[e]}},28602(t){var e=/\{\n\/\* \[wrapped with (.+)\] \*/,n=/,? & /;t.exports=function(t){var r=t.match(e);return r?r[1].split(n):[]}},86913(t,e,n){var r=n(46476),i=n(64201),s=n(96628),o=n(51258),a=n(33341),l=n(20018);t.exports=function(t,e,n){for(var A=-1,c=(e=r(e,t)).length,h=!1;++A<c;){var u=l(e[A]);if(!(h=null!=t&&n(t,u)))break;t=t[u]}return h||++A!=c?h:!!(c=null==t?0:t.length)&&a(c)&&o(u,c)&&(s(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,n){var r=n(22919);t.exports=function(){this.__data__=r?r(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,n){var r=n(22919),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},78670(t,e,n){var r=n(22919),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},6646(t,e,n){var r=n(22919);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},85292(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},58262(t,e,n){var r=n(34428),i=n(88454),s=n(27202),o=n(48687),a=n(78534);t.exports=function(t,e,n){var l=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new l(+t);case"[object DataView]":return i(t,n);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,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(t);case"[object RegExp]":return s(t);case"[object Symbol]":return o(t)}}},73798(t,e,n){var r=n(21481),i=n(12566),s=n(95804);t.exports=function(t){return"function"!=typeof t.constructor||s(t)?{}:r(i(t))}},31727(t){var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,n){var r=n.length;if(!r)return t;var i=r-1;return n[i]=(r>1?"& ":"")+n[i],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}},62892(t,e,n){var r=n(25572),i=n(64201),s=n(96628),o=r?r.isConcatSpreadable:void 0;t.exports=function(t){return s(t)||i(t)||!!(o&&t&&t[o])}},51258(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},3025(t,e,n){var r=n(38763),i=n(72059),s=n(51258),o=n(97230);t.exports=function(t,e,n){if(!o(n))return!1;var a=typeof e;return!!("number"==a?i(n)&&s(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},5749(t,e,n){var r=n(96628),i=n(83089),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||o.test(t)||!s.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,n){var r=n(89819),i=n(61546),s=n(22815),o=n(42671);t.exports=function(t){var e=s(t),n=o[e];if("function"!=typeof n||!(e in r.prototype))return!1;if(t===n)return!0;var a=i(n);return!!a&&t===a[0]}},29617(t,e,n){var r,i=n(40080),s=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!s&&s in t}},95804(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},50265(t,e,n){var r=n(97230);t.exports=function(t){return t==t&&!r(t)}},30651(t){t.exports=function(){this.__data__=[],this.size=0}},73919(t,e,n){var r=n(65996),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},10830(t,e,n){var r=n(65996);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},60794(t,e,n){var r=n(65996);t.exports=function(t){return r(this.__data__,t)>-1}},4642(t,e,n){var r=n(65996);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},96771(t,e,n){var r=n(5748),i=n(14296),s=n(4292);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(s||i),string:new r}}},70295(t,e,n){var r=n(88670);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},27462(t,e,n){var r=n(88670);t.exports=function(t){return r(this,t).get(t)}},81410(t,e,n){var r=n(88670);t.exports=function(t){return r(this,t).has(t)}},90842(t,e,n){var r=n(88670);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},64960(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},82001(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},70944(t,e,n){var r=n(84101);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},98198(t,e,n){var r=n(50199),i=n(84309),s=n(55471),o="__lodash_placeholder__",a=Math.min;t.exports=function(t,e){var n=t[1],l=e[1],A=n|l,c=A<131,h=128==l&&8==n||128==l&&256==n&&t[7].length<=e[8]||384==l&&e[7].length<=e[8]&&8==n;if(!c&&!h)return t;1&l&&(t[2]=e[2],A|=1&n?0:4);var u=e[3];if(u){var p=t[3];t[3]=p?r(p,u,e[4]):u,t[4]=p?s(t[3],o):e[4]}return(u=e[5])&&(p=t[5],t[5]=p?i(p,u,e[6]):u,t[6]=p?s(t[5],o):e[6]),(u=e[7])&&(t[7]=u),128&l&&(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]=A,t}},43011(t,e,n){var r=n(96696),i=r&&new r;t.exports=i},22919(t,e,n){var r=n(45201)(Object,"create");t.exports=r},54407(t,e,n){var r=n(25300)(Object.keys,Object);t.exports=r},48716(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},67728(t,e,n){t=n.nmd(t);var r=n(38433),i=e&&!e.nodeType&&e,s=i&&t&&!t.nodeType&&t,o=s&&s.exports===i&&r.process,a=function(){try{return s&&s.require&&s.require("util").types||o&&o.binding&&o.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(n){return t(e(n))}}},12036(t,e,n){var r=n(91442),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var s=arguments,o=-1,a=i(s.length-e,0),l=Array(a);++o<a;)l[o]=s[e+o];o=-1;for(var A=Array(e+1);++o<e;)A[o]=s[o];return A[e]=n(l),r(t,this,A)}}},42940(t,e,n){var r=n(85049),i=n(30495);t.exports=function(t,e){return e.length<2?t:r(t,i(e,0,-1))}},53498(t){t.exports={}},71017(t,e,n){var r=n(20380),i=n(51258),s=Math.min;t.exports=function(t,e){for(var n=t.length,o=s(e.length,n),a=r(t);o--;){var l=e[o];t[o]=i(l,n)?a[l]:void 0}return t}},55471(t){var e="__lodash_placeholder__";t.exports=function(t,n){for(var r=-1,i=t.length,s=0,o=[];++r<i;){var a=t[r];a!==n&&a!==e||(t[r]=e,o[s++]=r)}return o}},91736(t,e,n){var r=n(38433),i="object"==typeof self&&self&&self.Object===Object&&self,s=r||i||Function("return this")();t.exports=s},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,n){var r=n(83549),i=n(55586)(r);t.exports=i},57850(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},55806(t,e,n){var r=n(3317),i=n(55586)(r);t.exports=i},8214(t,e,n){var r=n(28602),i=n(31727),s=n(55806),o=n(43679);t.exports=function(t,e,n){var a=e+"";return s(t,i(a,o(r(a),n)))}},55586(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),s=16-(i-r);if(r=i,s>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},66897(t,e,n){var r=n(14296);t.exports=function(){this.__data__=new r,this.size=0}},32345(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},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,n){var r=n(14296),i=n(4292),s=n(98464);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new s(o)}return n.set(t,e),this.size=n.size,this}},23092(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},66459(t,e,n){var r=n(52351),i=n(52135),s=n(45931);t.exports=function(t){return i(t)?s(t):r(t)}},71951(t,e,n){var r=n(70944),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,o=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,n,r,i){e.push(r?i.replace(s,"$1"):n||t)}),e});t.exports=o},20018(t,e,n){var r=n(83089);t.exports=function(t){if("string"==typeof t||r(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 n=t.length;n--&&e.test(t.charAt(n)););return n}},45931(t){var e="\\ud800-\\udfff",n="["+e+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",s="[^"+e+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")?",A="[\\ufe0e\\ufe0f]?",c=A+l+"(?:\\u200d(?:"+[s,o,a].join("|")+")"+A+l+")*",h="(?:"+[s+r+"?",r,o,a,n].join("|")+")",u=RegExp(i+"(?="+i+")|"+h+c,"g");t.exports=function(t){return t.match(u)||[]}},43679(t,e,n){var r=n(69542),i=n(19338),s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return r(s,function(n){var r="_."+n[0];e&n[1]&&!i(t,r)&&t.push(r)}),t.sort()}},48368(t,e,n){var r=n(89819),i=n(42958),s=n(20380);t.exports=function(t){if(t instanceof r)return t.clone();var e=new i(t.__wrapped__,t.__chain__);return e.__actions__=s(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},27535(t,e,n){var r=n(42836);t.exports=function(t,e,n){return e=n?void 0:e,e=t&&null==e?t.length:e,r(t,128,void 0,void 0,void 0,void 0,e)}},45867(t,e,n){var r=n(55805),i=n(93107);t.exports=function(t){return i(r(t).toLowerCase())}},8716(t,e,n){var r=n(30495),i=n(3025),s=n(78164),o=Math.ceil,a=Math.max;t.exports=function(t,e,n){e=(n?i(t,e,n):void 0===e)?1:a(s(e),0);var l=null==t?0:t.length;if(!l||e<1)return[];for(var A=0,c=0,h=Array(o(l/e));A<l;)h[c++]=r(t,A,A+=e);return h}},7740(t,e,n){var r=n(60444);t.exports=function(t){return r(t,4)}},70114(t,e,n){var r=n(60444);t.exports=function(t){return r(t,5)}},7965(t){t.exports=function(t){return function(){return t}}},99742(t,e,n){var r=n(42836);function i(t,e,n){var s=r(t,8,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return s.placeholder=i.placeholder,s}i.placeholder={},t.exports=i},82702(t,e,n){var r=n(97230),i=n(61381),s=n(43569),o=Math.max,a=Math.min;t.exports=function(t,e,n){var l,A,c,h,u,p,d=0,f=!1,g=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=l,r=A;return l=A=void 0,d=e,h=t.apply(r,n)}function v(t){var n=t-p;return void 0===p||n>=e||n<0||g&&t-d>=c}function O(){var t=i();if(v(t))return b(t);u=setTimeout(O,function(t){var n=e-(t-p);return g?a(n,c-(t-d)):n}(t))}function b(t){return u=void 0,m&&l?y(t):(l=A=void 0,h)}function x(){var t=i(),n=v(t);if(l=arguments,A=this,p=t,n){if(void 0===u)return function(t){return d=t,u=setTimeout(O,e),f?y(t):h}(p);if(g)return clearTimeout(u),u=setTimeout(O,e),y(p)}return void 0===u&&(u=setTimeout(O,e)),h}return e=s(e)||0,r(n)&&(f=!!n.leading,c=(g="maxWait"in n)?o(s(n.maxWait)||0,e):c,m="trailing"in n?!!n.trailing:m),x.cancel=function(){void 0!==u&&clearTimeout(u),d=0,l=p=A=u=void 0},x.flush=function(){return void 0===u?h:b(i())},x}},38763(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},20218(t,e,n){var r=n(12908),i=n(17210),s=n(55992),o=n(96628),a=n(3025);t.exports=function(t,e,n){var l=o(t)?r:i;return n&&a(t,e,n)&&(e=void 0),l(t,s(e,3))}},53331(t,e,n){var r=n(73001),i=n(69587),s=n(55992),o=n(96628);t.exports=function(t,e){return(o(t)?r:i)(t,s(e,3))}},23555(t,e,n){var r=n(34403);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},66771(t,e,n){var r=n(69384)(!0);t.exports=r},53541(t,e,n){var r=n(68123),i=n(80470),s=Array.prototype.push;function o(t,e){return 2==e?function(e,n){return t(e,n)}:function(e){return t(e)}}function a(t){for(var e=t?t.length:0,n=Array(e);e--;)n[e]=t[e];return n}function l(t,e){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=e.apply(void 0,r);return t.apply(void 0,r),i}}}t.exports=function t(e,n,A,c){var h="function"==typeof n,u=n===Object(n);if(u&&(c=A,A=n,n=void 0),null==A)throw new TypeError;c||(c={});var p=!("cap"in c)||c.cap,d=!("curry"in c)||c.curry,f=!("fixed"in c)||c.fixed,g=!("immutable"in c)||c.immutable,m=!("rearg"in c)||c.rearg,y=h?A:i,v="curry"in c&&c.curry,O="fixed"in c&&c.fixed,b="rearg"in c&&c.rearg,x=h?A.runInContext():void 0,w=h?A:{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},_=w.ary,S=w.assign,C=w.clone,E=w.curry,B=w.forEach,T=w.isArray,P=w.isError,k=w.isFunction,I=w.isWeakMap,N=w.keys,Q=w.rearg,F=w.toInteger,L=w.toPath,M=N(r.aryMethod),D={castArray:function(t){return function(){var e=arguments[0];return T(e)?t(a(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[1],n=t(arguments[0],e),r=n.length;return p&&"number"==typeof e?(e=e>2?e-2:1,r&&r<=e?n:o(n,e)):n}},mixin:function(t){return function(e){var n=this;if(!k(n))return t(n,Object(e));var r=[];return B(N(e),function(t){k(e[t])&&r.push([t,n.prototype[t]])}),t(n,Object(e)),B(r,function(t){var e=t[1];k(e)?n.prototype[t[0]]=e:delete n.prototype[t[0]]}),n}},nthArg:function(t){return function(e){var n=e<0?1:F(e)+1;return E(t(e),n)}},rearg:function(t){return function(e,n){var r=n?n.length:0;return E(t(e,n),r)}},runInContext:function(n){return function(r){return t(e,n(r),c)}}};function R(t,e,n){if(f&&(O||!r.skipFixed[t])){var i=r.methodSpread[t],o=i&&i.start;return void 0===o?_(e,n):function(t,e){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var o=i[e],a=i.slice(0,e);return o&&s.apply(a,o),e!=r&&s.apply(a,i.slice(e+1)),t.apply(this,a)}}(e,o)}return e}function U(t,e,n){return m&&n>1&&(b||!r.skipRearg[t])?Q(e,r.methodRearg[t]||r.aryRearg[n]):e}function $(t,e){for(var n=-1,r=(e=L(e)).length,i=r-1,s=C(Object(t)),o=s;null!=o&&++n<r;){var a=e[n],l=o[a];null==l||k(l)||P(l)||I(l)||(o[a]=C(n==i?l:Object(l))),o=o[a]}return s}function j(e,n){var i=r.aliasToReal[e]||e,s=r.remap[i]||i,o=c;return function(e){var r=h?x:w,a=h?x[s]:n,l=S(S({},o),e);return t(r,i,a,l)}}function H(t,e){return function(){var n=arguments.length;if(!n)return t();for(var r=Array(n);n--;)r[n]=arguments[n];var i=m?0:n-1;return r[i]=e(r[i]),t.apply(void 0,r)}}function V(t,e,n){var i,s=r.aliasToReal[t]||t,A=e,c=D[s];return c?A=c(e):g&&(r.mutate.array[s]?A=l(e,a):r.mutate.object[s]?A=l(e,function(t){return function(e){return t({},e)}}(e)):r.mutate.set[s]&&(A=l(e,$))),B(M,function(t){return B(r.aryMethod[t],function(e){if(s==e){var n=r.methodSpread[s],a=n&&n.afterRearg;return i=a?R(s,U(s,A,t),t):U(s,R(s,A,t),t),i=function(t,e,n){return v||d&&n>1?E(e,n):e}(0,i=function(t,e){if(p){var n=r.iterateeRearg[t];if(n)return function(t,e){return H(t,function(t){var n=e.length;return function(t,e){return 2==e?function(e,n){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(Q(o(t,n),e),n)})}(e,n);var i=!h&&r.iterateeAry[t];if(i)return function(t,e){return H(t,function(t){return"function"==typeof t?o(t,e):t})}(e,i)}return e}(s,i),t),!1}}),!i}),i||(i=A),i==e&&(i=v?E(i,1):function(){return e.apply(this,arguments)}),i.convert=j(s,e),i.placeholder=e.placeholder=n,i}if(!u)return V(n,A,y);var X=A,z=[];return B(M,function(t){B(r.aryMethod[t],function(t){var e=X[r.remap[t]||t];e&&z.push([t,V(t,e,X)])})}),B(N(X),function(t){var e=X[t];if("function"==typeof e){for(var n=z.length;n--;)if(z[n][0]==t)return;e.convert=j(t,e),z.push([t,e])}}),B(z,function(t){X[t[0]]=t[1]}),X.convert=function(t){return X.runInContext.convert(t)(void 0)},X.placeholder=X,B(N(X),function(t){B(r.realToAlias[t]||[],function(e){X[e]=X[t]})}),X}},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,n=e.aliasToReal,r={};for(var i in n){var s=n[i];t.call(r,s)?r[s].push(i):r[s]=[i]}return r}(),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,n){t.exports={ary:n(27535),assign:n(5264),clone:n(7740),curry:n(99742),forEach:n(69542),isArray:n(96628),isError:n(71239),isFunction:n(65085),isWeakMap:n(77151),iteratee:n(64043),keys:n(41009),rearg:n(58806),toInteger:n(78164),toPath:n(38135)}},68851(t,e,n){var r=n(53541),i=n(87945);t.exports=function(t,e,n){return r(i,t,e,n)}},47106(t,e,n){var r=n(68851)("flowRight",n(66771));r.placeholder=n(80470),t.exports=r},80470(t){t.exports={}},47396(t,e,n){var r=n(68851)("set",n(17181));r.placeholder=n(80470),t.exports=r},32249(t,e,n){var r=n(85049);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},9355(t,e,n){var r=n(9935),i=n(52937),s=Object.prototype.hasOwnProperty,o=i(function(t,e,n){s.call(t,n)?t[n].push(e):r(t,n,[e])});t.exports=o},5830(t,e,n){var r=n(19142),i=n(86913);t.exports=function(t,e){return null!=t&&i(t,e,r)}},1007(t){t.exports=function(t){return t}},64201(t,e,n){var r=n(83465),i=n(28089),s=Object.prototype,o=s.hasOwnProperty,a=s.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return i(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=l},96628(t){var e=Array.isArray;t.exports=e},72059(t,e,n){var r=n(65085),i=n(33341);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},81856(t,e,n){var r=n(72059),i=n(28089);t.exports=function(t){return i(t)&&r(t)}},77103(t,e,n){t=n.nmd(t);var r=n(91736),i=n(14078),s=e&&!e.nodeType&&e,o=s&&t&&!t.nodeType&&t,a=o&&o.exports===s?r.Buffer:void 0,l=(a?a.isBuffer:void 0)||i;t.exports=l},33600(t,e,n){var r=n(41009),i=n(55804),s=n(64201),o=n(96628),a=n(72059),l=n(77103),A=n(95804),c=n(68276),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||c(t)||s(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(A(t))return!r(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},51549(t,e,n){var r=n(14877);t.exports=function(t,e){return r(t,e)}},71239(t,e,n){var r=n(98561),i=n(28089),s=n(23506);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!s(t)}},65085(t,e,n){var r=n(98561),i=n(97230);t.exports=function(t){if(!i(t))return!1;var e=r(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,n){var r=n(9839),i=n(36390),s=n(67728),o=s&&s.isMap,a=o?i(o):r;t.exports=a},59190(t){t.exports=function(t){return null==t}},31348(t){t.exports=function(t){return null===t}},93448(t,e,n){var r=n(98561),i=n(28089);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(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,n){var r=n(98561),i=n(12566),s=n(28089),o=Function.prototype,a=Object.prototype,l=o.toString,A=a.hasOwnProperty,c=l.call(Object);t.exports=function(t){if(!s(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=A.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},39601(t,e,n){var r=n(27217),i=n(36390),s=n(67728),o=s&&s.isSet,a=o?i(o):r;t.exports=a},83089(t,e,n){var r=n(98561),i=n(28089);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},68276(t,e,n){var r=n(3924),i=n(36390),s=n(67728),o=s&&s.isTypedArray,a=o?i(o):r;t.exports=a},95933(t){t.exports=function(t){return void 0===t}},77151(t,e,n){var r=n(55804),i=n(28089);t.exports=function(t){return i(t)&&"[object WeakMap]"==r(t)}},64043(t,e,n){var r=n(60444),i=n(55992);t.exports=function(t){return i("function"==typeof t?t:r(t,1))}},23047(t,e,n){var r=n(9935),i=n(52937)(function(t,e,n){r(t,n,e)});t.exports=i},86353(t,e,n){var r=n(51684),i=n(41009),s=n(72059);t.exports=function(t){return s(t)?r(t):i(t)}},93562(t,e,n){var r=n(51684),i=n(58458),s=n(72059);t.exports=function(t){return s(t)?r(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,n){var r;t=n.nmd(t),function(){var i,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,A=128,c=1/0,h=9007199254740991,u=NaN,p=4294967295,d=[["ary",A],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],f="[object Arguments]",g="[object Array]",m="[object Boolean]",y="[object Date]",v="[object Error]",O="[object Function]",b="[object GeneratorFunction]",x="[object Map]",w="[object Number]",_="[object Object]",S="[object Promise]",C="[object RegExp]",E="[object Set]",B="[object String]",T="[object Symbol]",P="[object WeakMap]",k="[object ArrayBuffer]",I="[object DataView]",N="[object Float32Array]",Q="[object Float64Array]",F="[object Int8Array]",L="[object Int16Array]",M="[object Int32Array]",D="[object Uint8Array]",R="[object Uint8ClampedArray]",U="[object Uint16Array]",$="[object Uint32Array]",j=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,G=RegExp(X.source),Y=RegExp(z.source),W=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,it=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,At=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ut=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ft=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,Ot=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",wt="\\u2700-\\u27bf",_t="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Ct="\\ufe0e\\ufe0f",Et="\\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",Bt="["+bt+"]",Tt="["+Et+"]",Pt="["+xt+"]",kt="\\d+",It="["+wt+"]",Nt="["+_t+"]",Qt="[^"+bt+Et+kt+wt+_t+St+"]",Ft="\\ud83c[\\udffb-\\udfff]",Lt="[^"+bt+"]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Rt="["+St+"]",Ut="\\u200d",$t="(?:"+Nt+"|"+Qt+")",jt="(?:"+Rt+"|"+Qt+")",Ht="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xt="(?:"+Pt+"|"+Ft+")?",zt="["+Ct+"]?",Gt=zt+Xt+"(?:"+Ut+"(?:"+[Lt,Mt,Dt].join("|")+")"+zt+Xt+")*",Yt="(?:"+[It,Mt,Dt].join("|")+")"+Gt,Wt="(?:"+[Lt+Pt+"?",Pt,Mt,Dt,Bt].join("|")+")",Zt=RegExp("['’]","g"),Kt=RegExp(Pt,"g"),qt=RegExp(Ft+"(?="+Ft+")|"+Wt+Gt,"g"),Jt=RegExp([Rt+"?"+Nt+"+"+Ht+"(?="+[Tt,Rt,"$"].join("|")+")",jt+"+"+Vt+"(?="+[Tt,Rt+$t,"$"].join("|")+")",Rt+"?"+$t+"+"+Ht,Rt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kt,Yt].join("|"),"g"),te=RegExp("["+Ut+bt+xt+Ct+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["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"],re=-1,ie={};ie[N]=ie[Q]=ie[F]=ie[L]=ie[M]=ie[D]=ie[R]=ie[U]=ie[$]=!0,ie[f]=ie[g]=ie[k]=ie[m]=ie[I]=ie[y]=ie[v]=ie[O]=ie[x]=ie[w]=ie[_]=ie[C]=ie[E]=ie[B]=ie[P]=!1;var se={};se[f]=se[g]=se[k]=se[I]=se[m]=se[y]=se[N]=se[Q]=se[F]=se[L]=se[M]=se[x]=se[w]=se[_]=se[C]=se[E]=se[B]=se[T]=se[D]=se[R]=se[U]=se[$]=!0,se[v]=se[O]=se[P]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,le=parseInt,Ae="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,ce="object"==typeof self&&self&&self.Object===Object&&self,he=Ae||ce||Function("return this")(),ue=e&&!e.nodeType&&e,pe=ue&&t&&!t.nodeType&&t,de=pe&&pe.exports===ue,fe=de&&Ae.process,ge=function(){try{return pe&&pe.require&&pe.require("util").types||fe&&fe.binding&&fe.binding("util")}catch(t){}}(),me=ge&&ge.isArrayBuffer,ye=ge&&ge.isDate,ve=ge&&ge.isMap,Oe=ge&&ge.isRegExp,be=ge&&ge.isSet,xe=ge&&ge.isTypedArray;function we(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function _e(t,e,n,r){for(var i=-1,s=null==t?0:t.length;++i<s;){var o=t[i];e(r,o,n(o),t)}return r}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ce(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ee(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Be(t,e){for(var n=-1,r=null==t?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}function Te(t,e){return!(null==t||!t.length)&&Re(t,e,0)>-1}function Pe(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function ke(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Ie(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Ne(t,e,n,r){var i=-1,s=null==t?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function Qe(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Fe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Le=He("length");function Me(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function De(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}function Re(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):De(t,$e,n)}function Ue(t,e,n,r){for(var i=n-1,s=t.length;++i<s;)if(r(t[i],e))return i;return-1}function $e(t){return t!=t}function je(t,e){var n=null==t?0:t.length;return n?ze(t,e)/n:u}function He(t){return function(e){return null==e?i:e[t]}}function Ve(t){return function(e){return null==t?i:t[e]}}function Xe(t,e,n,r,i){return i(t,function(t,i,s){n=r?(r=!1,t):e(n,t,i,s)}),n}function ze(t,e){for(var n,r=-1,s=t.length;++r<s;){var o=e(t[r]);o!==i&&(n=n===i?o:n+o)}return n}function Ge(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ye(t){return t?t.slice(0,un(t)+1).replace(rt,""):t}function We(t){return function(e){return t(e)}}function Ze(t,e){return ke(e,function(e){return t[e]})}function Ke(t,e){return t.has(e)}function qe(t,e){for(var n=-1,r=t.length;++n<r&&Re(e,t[n],0)>-1;);return n}function Je(t,e){for(var n=t.length;n--&&Re(e,t[n],0)>-1;);return n}var tn=Ve({À:"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"}),en=Ve({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(t){return"\\"+oe[t]}function rn(t){return te.test(t)}function sn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function on(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n];o!==e&&o!==a||(t[n]=a,s[i++]=n)}return s}function ln(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function An(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function cn(t){return rn(t)?function(t){for(var e=qt.lastIndex=0;qt.test(t);)++e;return e}(t):Le(t)}function hn(t){return rn(t)?function(t){return t.match(qt)||[]}(t):function(t){return t.split("")}(t)}function un(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var pn=Ve({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dn=function t(e){var n,r=(e=null==e?he:dn.defaults(he.Object(),e,dn.pick(he,ne))).Array,it=e.Date,bt=e.Error,xt=e.Function,wt=e.Math,_t=e.Object,St=e.RegExp,Ct=e.String,Et=e.TypeError,Bt=r.prototype,Tt=xt.prototype,Pt=_t.prototype,kt=e["__core-js_shared__"],It=Tt.toString,Nt=Pt.hasOwnProperty,Qt=0,Ft=(n=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Lt=Pt.toString,Mt=It.call(_t),Dt=he._,Rt=St("^"+It.call(Nt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ut=de?e.Buffer:i,$t=e.Symbol,jt=e.Uint8Array,Ht=Ut?Ut.allocUnsafe:i,Vt=on(_t.getPrototypeOf,_t),Xt=_t.create,zt=Pt.propertyIsEnumerable,Gt=Bt.splice,Yt=$t?$t.isConcatSpreadable:i,Wt=$t?$t.iterator:i,qt=$t?$t.toStringTag:i,te=function(){try{var t=ls(_t,"defineProperty");return t({},"",{}),t}catch(t){}}(),oe=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,Ae=it&&it.now!==he.Date.now&&it.now,ce=e.setTimeout!==he.setTimeout&&e.setTimeout,ue=wt.ceil,pe=wt.floor,fe=_t.getOwnPropertySymbols,ge=Ut?Ut.isBuffer:i,Le=e.isFinite,Ve=Bt.join,fn=on(_t.keys,_t),gn=wt.max,mn=wt.min,yn=it.now,vn=e.parseInt,On=wt.random,bn=Bt.reverse,xn=ls(e,"DataView"),wn=ls(e,"Map"),_n=ls(e,"Promise"),Sn=ls(e,"Set"),Cn=ls(e,"WeakMap"),En=ls(_t,"create"),Bn=Cn&&new Cn,Tn={},Pn=Ls(xn),kn=Ls(wn),In=Ls(_n),Nn=Ls(Sn),Qn=Ls(Cn),Fn=$t?$t.prototype:i,Ln=Fn?Fn.valueOf:i,Mn=Fn?Fn.toString:i;function Dn(t){if(ta(t)&&!Ho(t)&&!(t instanceof jn)){if(t instanceof $n)return t;if(Nt.call(t,"__wrapped__"))return Ms(t)}return new $n(t)}var Rn=function(){function t(){}return function(e){if(!Jo(e))return{};if(Xt)return Xt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Un(){}function $n(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function jn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function zn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Xn;++e<n;)this.add(t[e])}function Gn(t){var e=this.__data__=new Vn(t);this.size=e.size}function Yn(t,e){var n=Ho(t),r=!n&&jo(t),i=!n&&!r&&Go(t),s=!n&&!r&&!i&&la(t),o=n||r||i||s,a=o?Ge(t.length,Ct):[],l=a.length;for(var A in t)!e&&!Nt.call(t,A)||o&&("length"==A||i&&("offset"==A||"parent"==A)||s&&("buffer"==A||"byteLength"==A||"byteOffset"==A)||fs(A,l))||a.push(A);return a}function Wn(t){var e=t.length;return e?t[Xr(0,e-1)]:i}function Zn(t,e){return ks(Ci(t),sr(e,0,t.length))}function Kn(t){return ks(Ci(t))}function qn(t,e,n){(n!==i&&!Ro(t[e],n)||n===i&&!(e in t))&&rr(t,e,n)}function Jn(t,e,n){var r=t[e];Nt.call(t,e)&&Ro(r,n)&&(n!==i||e in t)||rr(t,e,n)}function tr(t,e){for(var n=t.length;n--;)if(Ro(t[n][0],e))return n;return-1}function er(t,e,n,r){return cr(t,function(t,i,s){e(r,t,n(t),s)}),r}function nr(t,e){return t&&Ei(e,Pa(e),t)}function rr(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ir(t,e){for(var n=-1,s=e.length,o=r(s),a=null==t;++n<s;)o[n]=a?i:Sa(t,e[n]);return o}function sr(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function or(t,e,n,r,s,o){var a,l=1&e,A=2&e,c=4&e;if(n&&(a=s?n(t,r,s,o):n(t)),a!==i)return a;if(!Jo(t))return t;var h=Ho(t);if(h){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Nt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!l)return Ci(t,a)}else{var u=hs(t),p=u==O||u==b;if(Go(t))return Oi(t,l);if(u==_||u==f||p&&!s){if(a=A||p?{}:ps(t),!l)return A?function(t,e){return Ei(t,cs(t),e)}(t,function(t,e){return t&&Ei(e,ka(e),t)}(a,t)):function(t,e){return Ei(t,As(t),e)}(t,nr(a,t))}else{if(!se[u])return s?t:{};a=function(t,e,n){var r,i=t.constructor;switch(e){case k:return bi(t);case m:case y:return new i(+t);case I:return function(t,e){var n=e?bi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case N:case Q:case F:case L:case M:case D:case R:case U:case $:return xi(t,n);case x:return new i;case w:case B:return new i(t);case C:return function(t){var e=new t.constructor(t.source,ut.exec(t));return e.lastIndex=t.lastIndex,e}(t);case E:return new i;case T:return r=t,Ln?_t(Ln.call(r)):{}}}(t,u,l)}}o||(o=new Gn);var d=o.get(t);if(d)return d;o.set(t,a),sa(t)?t.forEach(function(r){a.add(or(r,e,n,r,t,o))}):ea(t)&&t.forEach(function(r,i){a.set(i,or(r,e,n,i,t,o))});var g=h?i:(c?A?es:ts:A?ka:Pa)(t);return Se(g||t,function(r,i){g&&(r=t[i=r]),Jn(a,i,or(r,e,n,i,t,o))}),a}function ar(t,e,n){var r=n.length;if(null==t)return!r;for(t=_t(t);r--;){var s=n[r],o=e[s],a=t[s];if(a===i&&!(s in t)||!o(a))return!1}return!0}function lr(t,e,n){if("function"!=typeof t)throw new Et(s);return Es(function(){t.apply(i,n)},e)}function Ar(t,e,n,r){var i=-1,s=Te,o=!0,a=t.length,l=[],A=e.length;if(!a)return l;n&&(e=ke(e,We(n))),r?(s=Pe,o=!1):e.length>=200&&(s=Ke,o=!1,e=new zn(e));t:for(;++i<a;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,o&&h==h){for(var u=A;u--;)if(e[u]===h)continue t;l.push(c)}else s(e,h,r)||l.push(c)}return l}Dn.templateSettings={escape:W,evaluate:Z,interpolate:K,variable:"",imports:{_:Dn}},Dn.prototype=Un.prototype,Dn.prototype.constructor=Dn,$n.prototype=Rn(Un.prototype),$n.prototype.constructor=$n,jn.prototype=Rn(Un.prototype),jn.prototype.constructor=jn,Hn.prototype.clear=function(){this.__data__=En?En(null):{},this.size=0},Hn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Hn.prototype.get=function(t){var e=this.__data__;if(En){var n=e[t];return n===o?i:n}return Nt.call(e,t)?e[t]:i},Hn.prototype.has=function(t){var e=this.__data__;return En?e[t]!==i:Nt.call(e,t)},Hn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=En&&e===i?o:e,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=tr(e,t);return!(n<0||(n==e.length-1?e.pop():Gt.call(e,n,1),--this.size,0))},Vn.prototype.get=function(t){var e=this.__data__,n=tr(e,t);return n<0?i:e[n][1]},Vn.prototype.has=function(t){return tr(this.__data__,t)>-1},Vn.prototype.set=function(t,e){var n=this.__data__,r=tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Xn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(wn||Vn),string:new Hn}},Xn.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},Xn.prototype.get=function(t){return os(this,t).get(t)},Xn.prototype.has=function(t){return os(this,t).has(t)},Xn.prototype.set=function(t,e){var n=os(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},zn.prototype.add=zn.prototype.push=function(t){return this.__data__.set(t,o),this},zn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Gn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Gn.prototype.get=function(t){return this.__data__.get(t)},Gn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!wn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Xn(r)}return n.set(t,e),this.size=n.size,this};var cr=Pi(yr),hr=Pi(vr,!0);function ur(t,e){var n=!0;return cr(t,function(t,r,i){return n=!!e(t,r,i)}),n}function pr(t,e,n){for(var r=-1,s=t.length;++r<s;){var o=t[r],a=e(o);if(null!=a&&(l===i?a==a&&!aa(a):n(a,l)))var l=a,A=o}return A}function dr(t,e){var n=[];return cr(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function fr(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=ds),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?fr(a,e-1,n,r,i):Ie(i,a):r||(i[i.length]=a)}return i}var gr=ki(),mr=ki(!0);function yr(t,e){return t&&gr(t,e,Pa)}function vr(t,e){return t&&mr(t,e,Pa)}function Or(t,e){return Be(e,function(e){return Zo(t[e])})}function br(t,e){for(var n=0,r=(e=gi(e,t)).length;null!=t&&n<r;)t=t[Fs(e[n++])];return n&&n==r?t:i}function xr(t,e,n){var r=e(t);return Ho(t)?r:Ie(r,n(t))}function wr(t){return null==t?t===i?"[object Undefined]":"[object Null]":qt&&qt in _t(t)?function(t){var e=Nt.call(t,qt),n=t[qt];try{t[qt]=i;var r=!0}catch(t){}var s=Lt.call(t);return r&&(e?t[qt]=n:delete t[qt]),s}(t):function(t){return Lt.call(t)}(t)}function _r(t,e){return t>e}function Sr(t,e){return null!=t&&Nt.call(t,e)}function Cr(t,e){return null!=t&&e in _t(t)}function Er(t,e,n){for(var s=n?Pe:Te,o=t[0].length,a=t.length,l=a,A=r(a),c=1/0,h=[];l--;){var u=t[l];l&&e&&(u=ke(u,We(e))),c=mn(u.length,c),A[l]=!n&&(e||o>=120&&u.length>=120)?new zn(l&&u):i}u=t[0];var p=-1,d=A[0];t:for(;++p<o&&h.length<c;){var f=u[p],g=e?e(f):f;if(f=n||0!==f?f:0,!(d?Ke(d,g):s(h,g,n))){for(l=a;--l;){var m=A[l];if(!(m?Ke(m,g):s(t[l],g,n)))continue t}d&&d.push(g),h.push(f)}}return h}function Br(t,e,n){var r=null==(t=_s(t,e=gi(e,t)))?t:t[Fs(Ys(e))];return null==r?i:we(r,t,n)}function Tr(t){return ta(t)&&wr(t)==f}function Pr(t,e,n,r,s){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,n,r,s,o){var a=Ho(t),l=Ho(e),A=a?g:hs(t),c=l?g:hs(e),h=(A=A==f?_:A)==_,u=(c=c==f?_:c)==_,p=A==c;if(p&&Go(t)){if(!Go(e))return!1;a=!0,h=!1}if(p&&!h)return o||(o=new Gn),a||la(t)?qi(t,e,n,r,s,o):function(t,e,n,r,i,s,o){switch(n){case I:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case k:return!(t.byteLength!=e.byteLength||!s(new jt(t),new jt(e)));case m:case y:case w:return Ro(+t,+e);case v:return t.name==e.name&&t.message==e.message;case C:case B:return t==e+"";case x:var a=sn;case E:var l=1&r;if(a||(a=ln),t.size!=e.size&&!l)return!1;var A=o.get(t);if(A)return A==e;r|=2,o.set(t,e);var c=qi(a(t),a(e),r,i,s,o);return o.delete(t),c;case T:if(Ln)return Ln.call(t)==Ln.call(e)}return!1}(t,e,A,n,r,s,o);if(!(1&n)){var d=h&&Nt.call(t,"__wrapped__"),O=u&&Nt.call(e,"__wrapped__");if(d||O){var b=d?t.value():t,S=O?e.value():e;return o||(o=new Gn),s(b,S,n,r,o)}}return!!p&&(o||(o=new Gn),function(t,e,n,r,s,o){var a=1&n,l=ts(t),A=l.length;if(A!=ts(e).length&&!a)return!1;for(var c=A;c--;){var h=l[c];if(!(a?h in e:Nt.call(e,h)))return!1}var u=o.get(t),p=o.get(e);if(u&&p)return u==e&&p==t;var d=!0;o.set(t,e),o.set(e,t);for(var f=a;++c<A;){var g=t[h=l[c]],m=e[h];if(r)var y=a?r(m,g,h,e,t,o):r(g,m,h,t,e,o);if(!(y===i?g===m||s(g,m,n,r,o):y)){d=!1;break}f||(f="constructor"==h)}if(d&&!f){var v=t.constructor,O=e.constructor;v==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof O&&O instanceof O||(d=!1)}return o.delete(t),o.delete(e),d}(t,e,n,r,s,o))}(t,e,n,r,Pr,s))}function kr(t,e,n,r){var s=n.length,o=s,a=!r;if(null==t)return!o;for(t=_t(t);s--;){var l=n[s];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++s<o;){var A=(l=n[s])[0],c=t[A],h=l[1];if(a&&l[2]){if(c===i&&!(A in t))return!1}else{var u=new Gn;if(r)var p=r(c,h,A,t,e,u);if(!(p===i?Pr(h,c,3,r,u):p))return!1}}return!0}function Ir(t){return!(!Jo(t)||(e=t,Ft&&Ft in e))&&(Zo(t)?Rt:ft).test(Ls(t));var e}function Nr(t){return"function"==typeof t?t:null==t?nl:"object"==typeof t?Ho(t)?Dr(t[0],t[1]):Mr(t):hl(t)}function Qr(t){if(!Os(t))return fn(t);var e=[];for(var n in _t(t))Nt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Fr(t,e){return t<e}function Lr(t,e){var n=-1,i=Xo(t)?r(t.length):[];return cr(t,function(t,r,s){i[++n]=e(t,r,s)}),i}function Mr(t){var e=as(t);return 1==e.length&&e[0][2]?xs(e[0][0],e[0][1]):function(n){return n===t||kr(n,t,e)}}function Dr(t,e){return ms(t)&&bs(e)?xs(Fs(t),e):function(n){var r=Sa(n,t);return r===i&&r===e?Ca(n,t):Pr(e,r,3)}}function Rr(t,e,n,r,s){t!==e&&gr(e,function(o,a){if(s||(s=new Gn),Jo(o))!function(t,e,n,r,s,o,a){var l=Ss(t,n),A=Ss(e,n),c=a.get(A);if(c)qn(t,n,c);else{var h=o?o(l,A,n+"",t,e,a):i,u=h===i;if(u){var p=Ho(A),d=!p&&Go(A),f=!p&&!d&&la(A);h=A,p||d||f?Ho(l)?h=l:zo(l)?h=Ci(l):d?(u=!1,h=Oi(A,!0)):f?(u=!1,h=xi(A,!0)):h=[]:ra(A)||jo(A)?(h=l,jo(l)?h=ga(l):Jo(l)&&!Zo(l)||(h=ps(A))):u=!1}u&&(a.set(A,h),s(h,A,r,o,a),a.delete(A)),qn(t,n,h)}}(t,e,a,n,Rr,r,s);else{var l=r?r(Ss(t,a),o,a+"",t,e,s):i;l===i&&(l=o),qn(t,a,l)}},ka)}function Ur(t,e){var n=t.length;if(n)return fs(e+=e<0?n:0,n)?t[e]:i}function $r(t,e,n){e=e.length?ke(e,function(t){return Ho(t)?function(e){return br(e,1===t.length?t[0]:t)}:t}):[nl];var r=-1;e=ke(e,We(ss()));var i=Lr(t,function(t,n,i){var s=ke(e,function(e){return e(t)});return{criteria:s,index:++r,value:t}});return function(t){var e=t.length;for(t.sort(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,s=e.criteria,o=i.length,a=n.length;++r<o;){var l=wi(i[r],s[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)});e--;)t[e]=t[e].value;return t}(i)}function jr(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],a=br(t,o);n(a,o)&&Zr(s,gi(o,t),a)}return s}function Hr(t,e,n,r){var i=r?Ue:Re,s=-1,o=e.length,a=t;for(t===e&&(e=Ci(e)),n&&(a=ke(t,We(n)));++s<o;)for(var l=0,A=e[s],c=n?n(A):A;(l=i(a,c,l,r))>-1;)a!==t&&Gt.call(a,l,1),Gt.call(t,l,1);return t}function Vr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==s){var s=i;fs(i)?Gt.call(t,i,1):li(t,i)}}return t}function Xr(t,e){return t+pe(On()*(e-t+1))}function zr(t,e){var n="";if(!t||e<1||e>h)return n;do{e%2&&(n+=t),(e=pe(e/2))&&(t+=t)}while(e);return n}function Gr(t,e){return Bs(ws(t,e,nl),t+"")}function Yr(t){return Wn(Ra(t))}function Wr(t,e){var n=Ra(t);return ks(n,sr(e,0,n.length))}function Zr(t,e,n,r){if(!Jo(t))return t;for(var s=-1,o=(e=gi(e,t)).length,a=o-1,l=t;null!=l&&++s<o;){var A=Fs(e[s]),c=n;if("__proto__"===A||"constructor"===A||"prototype"===A)return t;if(s!=a){var h=l[A];(c=r?r(h,A,l):i)===i&&(c=Jo(h)?h:fs(e[s+1])?[]:{})}Jn(l,A,c),l=l[A]}return t}var Kr=Bn?function(t,e){return Bn.set(t,e),t}:nl,qr=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Ja(e),writable:!0})}:nl;function Jr(t){return ks(Ra(t))}function ti(t,e,n){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var o=r(s);++i<s;)o[i]=t[i+e];return o}function ei(t,e){var n;return cr(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function ni(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var s=r+i>>>1,o=t[s];null!==o&&!aa(o)&&(n?o<=e:o<e)?r=s+1:i=s}return i}return ri(t,e,nl,n)}function ri(t,e,n,r){var s=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,l=null===e,A=aa(e),c=e===i;s<o;){var h=pe((s+o)/2),u=n(t[h]),p=u!==i,d=null===u,f=u==u,g=aa(u);if(a)var m=r||f;else m=c?f&&(r||p):l?f&&p&&(r||!d):A?f&&p&&!d&&(r||!g):!d&&!g&&(r?u<=e:u<e);m?s=h+1:o=h}return mn(o,4294967294)}function ii(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n],a=e?e(o):o;if(!n||!Ro(a,l)){var l=a;s[i++]=0===o?0:o}}return s}function si(t){return"number"==typeof t?t:aa(t)?u:+t}function oi(t){if("string"==typeof t)return t;if(Ho(t))return ke(t,oi)+"";if(aa(t))return Mn?Mn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ai(t,e,n){var r=-1,i=Te,s=t.length,o=!0,a=[],l=a;if(n)o=!1,i=Pe;else if(s>=200){var A=e?null:zi(t);if(A)return ln(A);o=!1,i=Ke,l=new zn}else l=e?[]:a;t:for(;++r<s;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,o&&h==h){for(var u=l.length;u--;)if(l[u]===h)continue t;e&&l.push(h),a.push(c)}else i(l,h,n)||(l!==a&&l.push(h),a.push(c))}return a}function li(t,e){var n=-1,r=(e=gi(e,t)).length;if(!r)return!0;for(var i=null==t||"object"!=typeof t&&"function"!=typeof t;++n<r;){var s=e[n];if("string"==typeof s){if("__proto__"===s&&!Nt.call(t,"__proto__"))return!1;if("constructor"===s&&n+1<r&&"string"==typeof e[n+1]&&"prototype"===e[n+1]){if(i&&0===n)continue;return!1}}}var o=_s(t,e);return null==o||delete o[Fs(Ys(e))]}function Ai(t,e,n,r){return Zr(t,e,n(br(t,e)),r)}function ci(t,e,n,r){for(var i=t.length,s=r?i:-1;(r?s--:++s<i)&&e(t[s],s,t););return n?ti(t,r?0:s,r?s+1:i):ti(t,r?s+1:0,r?i:s)}function hi(t,e){var n=t;return n instanceof jn&&(n=n.value()),Ne(e,function(t,e){return e.func.apply(e.thisArg,Ie([t],e.args))},n)}function ui(t,e,n){var i=t.length;if(i<2)return i?ai(t[0]):[];for(var s=-1,o=r(i);++s<i;)for(var a=t[s],l=-1;++l<i;)l!=s&&(o[s]=Ar(o[s]||a,t[l],e,n));return ai(fr(o,1),e,n)}function pi(t,e,n){for(var r=-1,s=t.length,o=e.length,a={};++r<s;){var l=r<o?e[r]:i;n(a,t[r],l)}return a}function di(t){return zo(t)?t:[]}function fi(t){return"function"==typeof t?t:nl}function gi(t,e){return Ho(t)?t:ms(t,e)?[t]:Qs(ma(t))}var mi=Gr;function yi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var vi=oe||function(t){return he.clearTimeout(t)};function Oi(t,e){if(e)return t.slice();var n=t.length,r=Ht?Ht(n):new t.constructor(n);return t.copy(r),r}function bi(t){var e=new t.constructor(t.byteLength);return new jt(e).set(new jt(t)),e}function xi(t,e){var n=e?bi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function wi(t,e){if(t!==e){var n=t!==i,r=null===t,s=t==t,o=aa(t),a=e!==i,l=null===e,A=e==e,c=aa(e);if(!l&&!c&&!o&&t>e||o&&a&&A&&!l&&!c||r&&a&&A||!n&&A||!s)return 1;if(!r&&!o&&!c&&t<e||c&&n&&s&&!r&&!o||l&&n&&s||!a&&s||!A)return-1}return 0}function _i(t,e,n,i){for(var s=-1,o=t.length,a=n.length,l=-1,A=e.length,c=gn(o-a,0),h=r(A+c),u=!i;++l<A;)h[l]=e[l];for(;++s<a;)(u||s<o)&&(h[n[s]]=t[s]);for(;c--;)h[l++]=t[s++];return h}function Si(t,e,n,i){for(var s=-1,o=t.length,a=-1,l=n.length,A=-1,c=e.length,h=gn(o-l,0),u=r(h+c),p=!i;++s<h;)u[s]=t[s];for(var d=s;++A<c;)u[d+A]=e[A];for(;++a<l;)(p||s<o)&&(u[d+n[a]]=t[s++]);return u}function Ci(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ei(t,e,n,r){var s=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var l=e[o],A=r?r(n[l],t[l],l,n,t):i;A===i&&(A=t[l]),s?rr(n,l,A):Jn(n,l,A)}return n}function Bi(t,e){return function(n,r){var i=Ho(n)?_e:er,s=e?e():{};return i(n,t,ss(r,2),s)}}function Ti(t){return Gr(function(e,n){var r=-1,s=n.length,o=s>1?n[s-1]:i,a=s>2?n[2]:i;for(o=t.length>3&&"function"==typeof o?(s--,o):i,a&&gs(n[0],n[1],a)&&(o=s<3?i:o,s=1),e=_t(e);++r<s;){var l=n[r];l&&t(e,l,r,o)}return e})}function Pi(t,e){return function(n,r){if(null==n)return n;if(!Xo(n))return t(n,r);for(var i=n.length,s=e?i:-1,o=_t(n);(e?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function ki(t){return function(e,n,r){for(var i=-1,s=_t(e),o=r(e),a=o.length;a--;){var l=o[t?a:++i];if(!1===n(s[l],l,s))break}return e}}function Ii(t){return function(e){var n=rn(e=ma(e))?hn(e):i,r=n?n[0]:e.charAt(0),s=n?yi(n,1).join(""):e.slice(1);return r[t]()+s}}function Ni(t){return function(e){return Ne(Za(ja(e).replace(Zt,"")),t,"")}}function Qi(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 n=Rn(t.prototype),r=t.apply(n,e);return Jo(r)?r:n}}function Fi(t){return function(e,n,r){var s=_t(e);if(!Xo(e)){var o=ss(n,3);e=Pa(e),n=function(t){return o(s[t],t,s)}}var a=t(e,n,r);return a>-1?s[o?e[a]:a]:i}}function Li(t){return Ji(function(e){var n=e.length,r=n,o=$n.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new Et(s);if(o&&!l&&"wrapper"==rs(a))var l=new $n([],!0)}for(r=l?r:n;++r<n;){var A=rs(a=e[r]),c="wrapper"==A?ns(a):i;l=c&&ys(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[rs(c[0])].apply(l,c[3]):1==a.length&&ys(a)?l[A]():l.thru(a)}return function(){var t=arguments,r=t[0];if(l&&1==t.length&&Ho(r))return l.plant(r).value();for(var i=0,s=n?e[i].apply(this,t):r;++i<n;)s=e[i].call(this,s);return s}})}function Mi(t,e,n,s,o,a,l,c,h,u){var p=e&A,d=1&e,f=2&e,g=24&e,m=512&e,y=f?i:Qi(t);return function A(){for(var v=arguments.length,O=r(v),b=v;b--;)O[b]=arguments[b];if(g)var x=is(A),w=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(O,x);if(s&&(O=_i(O,s,o,g)),a&&(O=Si(O,a,l,g)),v-=w,g&&v<u){var _=an(O,x);return Vi(t,e,Mi,A.placeholder,n,O,_,c,h,u-v)}var S=d?n:this,C=f?S[t]:t;return v=O.length,c?O=function(t,e){for(var n=t.length,r=mn(e.length,n),s=Ci(t);r--;){var o=e[r];t[r]=fs(o,n)?s[o]:i}return t}(O,c):m&&v>1&&O.reverse(),p&&h<v&&(O.length=h),this&&this!==he&&this instanceof A&&(C=y||Qi(C)),C.apply(S,O)}}function Di(t,e){return function(n,r){return function(t,e,n,r){return yr(t,function(t,i,s){e(r,n(t),i,s)}),r}(n,t,e(r),{})}}function Ri(t,e){return function(n,r){var s;if(n===i&&r===i)return e;if(n!==i&&(s=n),r!==i){if(s===i)return r;"string"==typeof n||"string"==typeof r?(n=oi(n),r=oi(r)):(n=si(n),r=si(r)),s=t(n,r)}return s}}function Ui(t){return Ji(function(e){return e=ke(e,We(ss())),Gr(function(n){var r=this;return t(e,function(t){return we(t,r,n)})})})}function $i(t,e){var n=(e=e===i?" ":oi(e)).length;if(n<2)return n?zr(e,t):e;var r=zr(e,ue(t/cn(e)));return rn(e)?yi(hn(r),0,t).join(""):r.slice(0,t)}function ji(t){return function(e,n,s){return s&&"number"!=typeof s&&gs(e,n,s)&&(n=s=i),e=ua(e),n===i?(n=e,e=0):n=ua(n),function(t,e,n,i){for(var s=-1,o=gn(ue((e-t)/(n||1)),0),a=r(o);o--;)a[i?o:++s]=t,t+=n;return a}(e,n,s=s===i?e<n?1:-1:ua(s),t)}}function Hi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=fa(e),n=fa(n)),t(e,n)}}function Vi(t,e,n,r,s,o,a,A,c,h){var u=8&e;e|=u?l:64,4&(e&=~(u?64:l))||(e&=-4);var p=[t,e,s,u?o:i,u?a:i,u?i:o,u?i:a,A,c,h],d=n.apply(i,p);return ys(t)&&Cs(d,p),d.placeholder=r,Ts(d,t,e)}function Xi(t){var e=wt[t];return function(t,n){if(t=fa(t),(n=null==n?0:mn(pa(n),292))&&Le(t)){var r=(ma(t)+"e").split("e");return+((r=(ma(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var zi=Sn&&1/ln(new Sn([,-0]))[1]==c?function(t){return new Sn(t)}:al;function Gi(t){return function(e){var n=hs(e);return n==x?sn(e):n==E?An(e):function(t,e){return ke(e,function(e){return[e,t[e]]})}(e,t(e))}}function Yi(t,e,n,o,c,h,u,p){var d=2&e;if(!d&&"function"!=typeof t)throw new Et(s);var f=o?o.length:0;if(f||(e&=-97,o=c=i),u=u===i?u:gn(pa(u),0),p=p===i?p:pa(p),f-=c?c.length:0,64&e){var g=o,m=c;o=c=i}var y=d?i:ns(t),v=[t,e,n,o,c,g,m,h,u,p];if(y&&function(t,e){var n=t[1],r=e[1],i=n|r,s=i<131,o=r==A&&8==n||r==A&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!s&&!o)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var l=e[3];if(l){var c=t[3];t[3]=c?_i(c,l,e[4]):l,t[4]=c?an(t[3],a):e[4]}(l=e[5])&&(c=t[5],t[5]=c?Si(c,l,e[6]):l,t[6]=c?an(t[5],a):e[6]),(l=e[7])&&(t[7]=l),r&A&&(t[8]=null==t[8]?e[8]:mn(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],n=v[2],o=v[3],c=v[4],!(p=v[9]=v[9]===i?d?0:t.length:gn(v[9]-f,0))&&24&e&&(e&=-25),e&&1!=e)O=8==e||16==e?function(t,e,n){var s=Qi(t);return function o(){for(var a=arguments.length,l=r(a),A=a,c=is(o);A--;)l[A]=arguments[A];var h=a<3&&l[0]!==c&&l[a-1]!==c?[]:an(l,c);return(a-=h.length)<n?Vi(t,e,Mi,o.placeholder,i,l,h,i,i,n-a):we(this&&this!==he&&this instanceof o?s:t,this,l)}}(t,e,p):e!=l&&33!=e||c.length?Mi.apply(i,v):function(t,e,n,i){var s=1&e,o=Qi(t);return function e(){for(var a=-1,l=arguments.length,A=-1,c=i.length,h=r(c+l),u=this&&this!==he&&this instanceof e?o:t;++A<c;)h[A]=i[A];for(;l--;)h[A++]=arguments[++a];return we(u,s?n:this,h)}}(t,e,n,o);else var O=function(t,e,n){var r=1&e,i=Qi(t);return function e(){return(this&&this!==he&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Ts((y?Kr:Cs)(O,v),t,e)}function Wi(t,e,n,r){return t===i||Ro(t,Pt[n])&&!Nt.call(r,n)?e:t}function Zi(t,e,n,r,s,o){return Jo(t)&&Jo(e)&&(o.set(e,t),Rr(t,e,i,Zi,o),o.delete(e)),t}function Ki(t){return ra(t)?i:t}function qi(t,e,n,r,s,o){var a=1&n,l=t.length,A=e.length;if(l!=A&&!(a&&A>l))return!1;var c=o.get(t),h=o.get(e);if(c&&h)return c==e&&h==t;var u=-1,p=!0,d=2&n?new zn:i;for(o.set(t,e),o.set(e,t);++u<l;){var f=t[u],g=e[u];if(r)var m=a?r(g,f,u,e,t,o):r(f,g,u,t,e,o);if(m!==i){if(m)continue;p=!1;break}if(d){if(!Fe(e,function(t,e){if(!Ke(d,e)&&(f===t||s(f,t,n,r,o)))return d.push(e)})){p=!1;break}}else if(f!==g&&!s(f,g,n,r,o)){p=!1;break}}return o.delete(t),o.delete(e),p}function Ji(t){return Bs(ws(t,i,Hs),t+"")}function ts(t){return xr(t,Pa,As)}function es(t){return xr(t,ka,cs)}var ns=Bn?function(t){return Bn.get(t)}:al;function rs(t){for(var e=t.name+"",n=Tn[e],r=Nt.call(Tn,e)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==t)return i.name}return e}function is(t){return(Nt.call(Dn,"placeholder")?Dn:t).placeholder}function ss(){var t=Dn.iteratee||rl;return t=t===rl?Nr:t,arguments.length?t(arguments[0],arguments[1]):t}function os(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function as(t){for(var e=Pa(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,bs(i)]}return e}function ls(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Ir(n)?n:i}var As=fe?function(t){return null==t?[]:(t=_t(t),Be(fe(t),function(e){return zt.call(t,e)}))}:dl,cs=fe?function(t){for(var e=[];t;)Ie(e,As(t)),t=Vt(t);return e}:dl,hs=wr;function us(t,e,n){for(var r=-1,i=(e=gi(e,t)).length,s=!1;++r<i;){var o=Fs(e[r]);if(!(s=null!=t&&n(t,o)))break;t=t[o]}return s||++r!=i?s:!!(i=null==t?0:t.length)&&qo(i)&&fs(o,i)&&(Ho(t)||jo(t))}function ps(t){return"function"!=typeof t.constructor||Os(t)?{}:Rn(Vt(t))}function ds(t){return Ho(t)||jo(t)||!!(Yt&&t&&t[Yt])}function fs(t,e){var n=typeof t;return!!(e=null==e?h:e)&&("number"==n||"symbol"!=n&&mt.test(t))&&t>-1&&t%1==0&&t<e}function gs(t,e,n){if(!Jo(n))return!1;var r=typeof e;return!!("number"==r?Xo(n)&&fs(e,n.length):"string"==r&&e in n)&&Ro(n[e],t)}function ms(t,e){if(Ho(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!aa(t))||J.test(t)||!q.test(t)||null!=e&&t in _t(e)}function ys(t){var e=rs(t),n=Dn[e];if("function"!=typeof n||!(e in jn.prototype))return!1;if(t===n)return!0;var r=ns(n);return!!r&&t===r[0]}(xn&&hs(new xn(new ArrayBuffer(1)))!=I||wn&&hs(new wn)!=x||_n&&hs(_n.resolve())!=S||Sn&&hs(new Sn)!=E||Cn&&hs(new Cn)!=P)&&(hs=function(t){var e=wr(t),n=e==_?t.constructor:i,r=n?Ls(n):"";if(r)switch(r){case Pn:return I;case kn:return x;case In:return S;case Nn:return E;case Qn:return P}return e});var vs=kt?Zo:fl;function Os(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Pt)}function bs(t){return t==t&&!Jo(t)}function xs(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in _t(n))}}function ws(t,e,n){return e=gn(e===i?t.length-1:e,0),function(){for(var i=arguments,s=-1,o=gn(i.length-e,0),a=r(o);++s<o;)a[s]=i[e+s];s=-1;for(var l=r(e+1);++s<e;)l[s]=i[s];return l[e]=n(a),we(t,this,l)}}function _s(t,e){return e.length<2?t:br(t,ti(e,0,-1))}function Ss(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Cs=Ps(Kr),Es=ce||function(t,e){return he.setTimeout(t,e)},Bs=Ps(qr);function Ts(t,e,n){var r=e+"";return Bs(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Se(d,function(n){var r="_."+n[0];e&n[1]&&!Te(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(r),n)))}function Ps(t){var e=0,n=0;return function(){var r=yn(),s=16-(r-n);if(n=r,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function ks(t,e){var n=-1,r=t.length,s=r-1;for(e=e===i?r:e;++n<e;){var o=Xr(n,s),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var Is,Ns,Qs=(Is=No(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,function(t,n,r,i){e.push(r?i.replace(ct,"$1"):n||t)}),e},function(t){return 500===Ns.size&&Ns.clear(),t}),Ns=Is.cache,Is);function Fs(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ls(t){if(null!=t){try{return It.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ms(t){if(t instanceof jn)return t.clone();var e=new $n(t.__wrapped__,t.__chain__);return e.__actions__=Ci(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Ds=Gr(function(t,e){return zo(t)?Ar(t,fr(e,1,zo,!0)):[]}),Rs=Gr(function(t,e){var n=Ys(e);return zo(n)&&(n=i),zo(t)?Ar(t,fr(e,1,zo,!0),ss(n,2)):[]}),Us=Gr(function(t,e){var n=Ys(e);return zo(n)&&(n=i),zo(t)?Ar(t,fr(e,1,zo,!0),i,n):[]});function $s(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:pa(n);return i<0&&(i=gn(r+i,0)),De(t,ss(e,3),i)}function js(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r-1;return n!==i&&(s=pa(n),s=n<0?gn(r+s,0):mn(s,r-1)),De(t,ss(e,3),s,!0)}function Hs(t){return null!=t&&t.length?fr(t,1):[]}function Vs(t){return t&&t.length?t[0]:i}var Xs=Gr(function(t){var e=ke(t,di);return e.length&&e[0]===t[0]?Er(e):[]}),zs=Gr(function(t){var e=Ys(t),n=ke(t,di);return e===Ys(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Er(n,ss(e,2)):[]}),Gs=Gr(function(t){var e=Ys(t),n=ke(t,di);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Er(n,i,e):[]});function Ys(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Ws=Gr(Zs);function Zs(t,e){return t&&t.length&&e&&e.length?Hr(t,e):t}var Ks=Ji(function(t,e){var n=null==t?0:t.length,r=ir(t,e);return Vr(t,ke(e,function(t){return fs(t,n)?+t:t}).sort(wi)),r});function qs(t){return null==t?t:bn.call(t)}var Js=Gr(function(t){return ai(fr(t,1,zo,!0))}),to=Gr(function(t){var e=Ys(t);return zo(e)&&(e=i),ai(fr(t,1,zo,!0),ss(e,2))}),eo=Gr(function(t){var e=Ys(t);return e="function"==typeof e?e:i,ai(fr(t,1,zo,!0),i,e)});function no(t){if(!t||!t.length)return[];var e=0;return t=Be(t,function(t){if(zo(t))return e=gn(t.length,e),!0}),Ge(e,function(e){return ke(t,He(e))})}function ro(t,e){if(!t||!t.length)return[];var n=no(t);return null==e?n:ke(n,function(t){return we(e,i,t)})}var io=Gr(function(t,e){return zo(t)?Ar(t,e):[]}),so=Gr(function(t){return ui(Be(t,zo))}),oo=Gr(function(t){var e=Ys(t);return zo(e)&&(e=i),ui(Be(t,zo),ss(e,2))}),ao=Gr(function(t){var e=Ys(t);return e="function"==typeof e?e:i,ui(Be(t,zo),i,e)}),lo=Gr(no),Ao=Gr(function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,ro(t,n)});function co(t){var e=Dn(t);return e.__chain__=!0,e}function ho(t,e){return e(t)}var uo=Ji(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,s=function(e){return ir(e,t)};return!(e>1||this.__actions__.length)&&r instanceof jn&&fs(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ho,args:[s],thisArg:i}),new $n(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(i),t})):this.thru(s)}),po=Bi(function(t,e,n){Nt.call(t,n)?++t[n]:rr(t,n,1)}),fo=Fi($s),go=Fi(js);function mo(t,e){return(Ho(t)?Se:cr)(t,ss(e,3))}function yo(t,e){return(Ho(t)?Ce:hr)(t,ss(e,3))}var vo=Bi(function(t,e,n){Nt.call(t,n)?t[n].push(e):rr(t,n,[e])}),Oo=Gr(function(t,e,n){var i=-1,s="function"==typeof e,o=Xo(t)?r(t.length):[];return cr(t,function(t){o[++i]=s?we(e,t,n):Br(t,e,n)}),o}),bo=Bi(function(t,e,n){rr(t,n,e)});function xo(t,e){return(Ho(t)?ke:Lr)(t,ss(e,3))}var wo=Bi(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),_o=Gr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&gs(t,e[0],e[1])?e=[]:n>2&&gs(e[0],e[1],e[2])&&(e=[e[0]]),$r(t,fr(e,1),[])}),So=Ae||function(){return he.Date.now()};function Co(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Yi(t,A,i,i,i,i,e)}function Eo(t,e){var n;if("function"!=typeof e)throw new Et(s);return t=pa(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Bo=Gr(function(t,e,n){var r=1;if(n.length){var i=an(n,is(Bo));r|=l}return Yi(t,r,e,n,i)}),To=Gr(function(t,e,n){var r=3;if(n.length){var i=an(n,is(To));r|=l}return Yi(e,r,t,n,i)});function Po(t,e,n){var r,o,a,l,A,c,h=0,u=!1,p=!1,d=!0;if("function"!=typeof t)throw new Et(s);function f(e){var n=r,s=o;return r=o=i,h=e,l=t.apply(s,n)}function g(t){var n=t-c;return c===i||n>=e||n<0||p&&t-h>=a}function m(){var t=So();if(g(t))return y(t);A=Es(m,function(t){var n=e-(t-c);return p?mn(n,a-(t-h)):n}(t))}function y(t){return A=i,d&&r?f(t):(r=o=i,l)}function v(){var t=So(),n=g(t);if(r=arguments,o=this,c=t,n){if(A===i)return function(t){return h=t,A=Es(m,e),u?f(t):l}(c);if(p)return vi(A),A=Es(m,e),f(c)}return A===i&&(A=Es(m,e)),l}return e=fa(e)||0,Jo(n)&&(u=!!n.leading,a=(p="maxWait"in n)?gn(fa(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),v.cancel=function(){A!==i&&vi(A),h=0,r=c=o=A=i},v.flush=function(){return A===i?l:y(So())},v}var ko=Gr(function(t,e){return lr(t,1,e)}),Io=Gr(function(t,e,n){return lr(t,fa(e)||0,n)});function No(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Et(s);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(No.Cache||Xn),n}function Qo(t){if("function"!=typeof t)throw new Et(s);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)}}No.Cache=Xn;var Fo=mi(function(t,e){var n=(e=1==e.length&&Ho(e[0])?ke(e[0],We(ss())):ke(fr(e,1),We(ss()))).length;return Gr(function(r){for(var i=-1,s=mn(r.length,n);++i<s;)r[i]=e[i].call(this,r[i]);return we(t,this,r)})}),Lo=Gr(function(t,e){var n=an(e,is(Lo));return Yi(t,l,i,e,n)}),Mo=Gr(function(t,e){var n=an(e,is(Mo));return Yi(t,64,i,e,n)}),Do=Ji(function(t,e){return Yi(t,256,i,i,i,e)});function Ro(t,e){return t===e||t!=t&&e!=e}var Uo=Hi(_r),$o=Hi(function(t,e){return t>=e}),jo=Tr(function(){return arguments}())?Tr:function(t){return ta(t)&&Nt.call(t,"callee")&&!zt.call(t,"callee")},Ho=r.isArray,Vo=me?We(me):function(t){return ta(t)&&wr(t)==k};function Xo(t){return null!=t&&qo(t.length)&&!Zo(t)}function zo(t){return ta(t)&&Xo(t)}var Go=ge||fl,Yo=ye?We(ye):function(t){return ta(t)&&wr(t)==y};function Wo(t){if(!ta(t))return!1;var e=wr(t);return e==v||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function Zo(t){if(!Jo(t))return!1;var e=wr(t);return e==O||e==b||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ko(t){return"number"==typeof t&&t==pa(t)}function qo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function Jo(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=ve?We(ve):function(t){return ta(t)&&hs(t)==x};function na(t){return"number"==typeof t||ta(t)&&wr(t)==w}function ra(t){if(!ta(t)||wr(t)!=_)return!1;var e=Vt(t);if(null===e)return!0;var n=Nt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&It.call(n)==Mt}var ia=Oe?We(Oe):function(t){return ta(t)&&wr(t)==C},sa=be?We(be):function(t){return ta(t)&&hs(t)==E};function oa(t){return"string"==typeof t||!Ho(t)&&ta(t)&&wr(t)==B}function aa(t){return"symbol"==typeof t||ta(t)&&wr(t)==T}var la=xe?We(xe):function(t){return ta(t)&&qo(t.length)&&!!ie[wr(t)]},Aa=Hi(Fr),ca=Hi(function(t,e){return t<=e});function ha(t){if(!t)return[];if(Xo(t))return oa(t)?hn(t):Ci(t);if(Wt&&t[Wt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Wt]());var e=hs(t);return(e==x?sn:e==E?ln:Ra)(t)}function ua(t){return t?(t=fa(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),n=e%1;return e==e?n?e-n:e:0}function da(t){return t?sr(pa(t),0,p):0}function fa(t){if("number"==typeof t)return t;if(aa(t))return u;if(Jo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Jo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var n=dt.test(t);return n||gt.test(t)?le(t.slice(2),n?2:8):pt.test(t)?u:+t}function ga(t){return Ei(t,ka(t))}function ma(t){return null==t?"":oi(t)}var ya=Ti(function(t,e){if(Os(e)||Xo(e))Ei(e,Pa(e),t);else for(var n in e)Nt.call(e,n)&&Jn(t,n,e[n])}),va=Ti(function(t,e){Ei(e,ka(e),t)}),Oa=Ti(function(t,e,n,r){Ei(e,ka(e),t,r)}),ba=Ti(function(t,e,n,r){Ei(e,Pa(e),t,r)}),xa=Ji(ir),wa=Gr(function(t,e){t=_t(t);var n=-1,r=e.length,s=r>2?e[2]:i;for(s&&gs(e[0],e[1],s)&&(r=1);++n<r;)for(var o=e[n],a=ka(o),l=-1,A=a.length;++l<A;){var c=a[l],h=t[c];(h===i||Ro(h,Pt[c])&&!Nt.call(t,c))&&(t[c]=o[c])}return t}),_a=Gr(function(t){return t.push(i,Zi),we(Na,i,t)});function Sa(t,e,n){var r=null==t?i:br(t,e);return r===i?n:r}function Ca(t,e){return null!=t&&us(t,e,Cr)}var Ea=Di(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),t[e]=n},Ja(nl)),Ba=Di(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),Nt.call(t,e)?t[e].push(n):t[e]=[n]},ss),Ta=Gr(Br);function Pa(t){return Xo(t)?Yn(t):Qr(t)}function ka(t){return Xo(t)?Yn(t,!0):function(t){if(!Jo(t))return function(t){var e=[];if(null!=t)for(var n in _t(t))e.push(n);return e}(t);var e=Os(t),n=[];for(var r in t)("constructor"!=r||!e&&Nt.call(t,r))&&n.push(r);return n}(t)}var Ia=Ti(function(t,e,n){Rr(t,e,n)}),Na=Ti(function(t,e,n,r){Rr(t,e,n,r)}),Qa=Ji(function(t,e){var n={};if(null==t)return n;var r=!1;e=ke(e,function(e){return e=gi(e,t),r||(r=e.length>1),e}),Ei(t,es(t),n),r&&(n=or(n,7,Ki));for(var i=e.length;i--;)li(n,e[i]);return n}),Fa=Ji(function(t,e){return null==t?{}:function(t,e){return jr(t,e,function(e,n){return Ca(t,n)})}(t,e)});function La(t,e){if(null==t)return{};var n=ke(es(t),function(t){return[t]});return e=ss(e),jr(t,n,function(t,n){return e(t,n[0])})}var Ma=Gi(Pa),Da=Gi(ka);function Ra(t){return null==t?[]:Ze(t,Pa(t))}var Ua=Ni(function(t,e,n){return e=e.toLowerCase(),t+(n?$a(e):e)});function $a(t){return Wa(ma(t).toLowerCase())}function ja(t){return(t=ma(t))&&t.replace(yt,tn).replace(Kt,"")}var Ha=Ni(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Va=Ni(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Xa=Ii("toLowerCase"),za=Ni(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Ga=Ni(function(t,e,n){return t+(n?" ":"")+Wa(e)}),Ya=Ni(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Wa=Ii("toUpperCase");function Za(t,e,n){return t=ma(t),(e=n?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.match(lt)||[]}(t):t.match(e)||[]}var Ka=Gr(function(t,e){try{return we(t,i,e)}catch(t){return Wo(t)?t:new bt(t)}}),qa=Ji(function(t,e){return Se(e,function(e){e=Fs(e),rr(t,e,Bo(t[e],t))}),t});function Ja(t){return function(){return t}}var tl=Li(),el=Li(!0);function nl(t){return t}function rl(t){return Nr("function"==typeof t?t:or(t,1))}var il=Gr(function(t,e){return function(n){return Br(n,t,e)}}),sl=Gr(function(t,e){return function(n){return Br(t,n,e)}});function ol(t,e,n){var r=Pa(e),i=Or(e,r);null!=n||Jo(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Or(e,Pa(e)));var s=!(Jo(n)&&"chain"in n&&!n.chain),o=Zo(t);return Se(i,function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=Ci(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Ie([this.value()],arguments))})}),t}function al(){}var ll=Ui(ke),Al=Ui(Ee),cl=Ui(Fe);function hl(t){return ms(t)?He(Fs(t)):function(t){return function(e){return br(e,t)}}(t)}var ul=ji(),pl=ji(!0);function dl(){return[]}function fl(){return!1}var gl,ml=Ri(function(t,e){return t+e},0),yl=Xi("ceil"),vl=Ri(function(t,e){return t/e},1),Ol=Xi("floor"),bl=Ri(function(t,e){return t*e},1),xl=Xi("round"),wl=Ri(function(t,e){return t-e},0);return Dn.after=function(t,e){if("function"!=typeof e)throw new Et(s);return t=pa(t),function(){if(--t<1)return e.apply(this,arguments)}},Dn.ary=Co,Dn.assign=ya,Dn.assignIn=va,Dn.assignInWith=Oa,Dn.assignWith=ba,Dn.at=xa,Dn.before=Eo,Dn.bind=Bo,Dn.bindAll=qa,Dn.bindKey=To,Dn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ho(t)?t:[t]},Dn.chain=co,Dn.chunk=function(t,e,n){e=(n?gs(t,e,n):e===i)?1:gn(pa(e),0);var s=null==t?0:t.length;if(!s||e<1)return[];for(var o=0,a=0,l=r(ue(s/e));o<s;)l[a++]=ti(t,o,o+=e);return l},Dn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i},Dn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Ie(Ho(n)?Ci(n):[n],fr(e,1))},Dn.cond=function(t){var e=null==t?0:t.length,n=ss();return t=e?ke(t,function(t){if("function"!=typeof t[1])throw new Et(s);return[n(t[0]),t[1]]}):[],Gr(function(n){for(var r=-1;++r<e;){var i=t[r];if(we(i[0],this,n))return we(i[1],this,n)}})},Dn.conforms=function(t){return function(t){var e=Pa(t);return function(n){return ar(n,t,e)}}(or(t,1))},Dn.constant=Ja,Dn.countBy=po,Dn.create=function(t,e){var n=Rn(t);return null==e?n:nr(n,e)},Dn.curry=function t(e,n,r){var s=Yi(e,8,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},Dn.curryRight=function t(e,n,r){var s=Yi(e,16,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},Dn.debounce=Po,Dn.defaults=wa,Dn.defaultsDeep=_a,Dn.defer=ko,Dn.delay=Io,Dn.difference=Ds,Dn.differenceBy=Rs,Dn.differenceWith=Us,Dn.drop=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=n||e===i?1:pa(e))<0?0:e,r):[]},Dn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,0,(e=r-(e=n||e===i?1:pa(e)))<0?0:e):[]},Dn.dropRightWhile=function(t,e){return t&&t.length?ci(t,ss(e,3),!0,!0):[]},Dn.dropWhile=function(t,e){return t&&t.length?ci(t,ss(e,3),!0):[]},Dn.fill=function(t,e,n,r){var s=null==t?0:t.length;return s?(n&&"number"!=typeof n&&gs(t,e,n)&&(n=0,r=s),function(t,e,n,r){var s=t.length;for((n=pa(n))<0&&(n=-n>s?0:s+n),(r=r===i||r>s?s:pa(r))<0&&(r+=s),r=n>r?0:da(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Dn.filter=function(t,e){return(Ho(t)?Be:dr)(t,ss(e,3))},Dn.flatMap=function(t,e){return fr(xo(t,e),1)},Dn.flatMapDeep=function(t,e){return fr(xo(t,e),c)},Dn.flatMapDepth=function(t,e,n){return n=n===i?1:pa(n),fr(xo(t,e),n)},Dn.flatten=Hs,Dn.flattenDeep=function(t){return null!=t&&t.length?fr(t,c):[]},Dn.flattenDepth=function(t,e){return null!=t&&t.length?fr(t,e=e===i?1:pa(e)):[]},Dn.flip=function(t){return Yi(t,512)},Dn.flow=tl,Dn.flowRight=el,Dn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Dn.functions=function(t){return null==t?[]:Or(t,Pa(t))},Dn.functionsIn=function(t){return null==t?[]:Or(t,ka(t))},Dn.groupBy=vo,Dn.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},Dn.intersection=Xs,Dn.intersectionBy=zs,Dn.intersectionWith=Gs,Dn.invert=Ea,Dn.invertBy=Ba,Dn.invokeMap=Oo,Dn.iteratee=rl,Dn.keyBy=bo,Dn.keys=Pa,Dn.keysIn=ka,Dn.map=xo,Dn.mapKeys=function(t,e){var n={};return e=ss(e,3),yr(t,function(t,r,i){rr(n,e(t,r,i),t)}),n},Dn.mapValues=function(t,e){var n={};return e=ss(e,3),yr(t,function(t,r,i){rr(n,r,e(t,r,i))}),n},Dn.matches=function(t){return Mr(or(t,1))},Dn.matchesProperty=function(t,e){return Dr(t,or(e,1))},Dn.memoize=No,Dn.merge=Ia,Dn.mergeWith=Na,Dn.method=il,Dn.methodOf=sl,Dn.mixin=ol,Dn.negate=Qo,Dn.nthArg=function(t){return t=pa(t),Gr(function(e){return Ur(e,t)})},Dn.omit=Qa,Dn.omitBy=function(t,e){return La(t,Qo(ss(e)))},Dn.once=function(t){return Eo(2,t)},Dn.orderBy=function(t,e,n,r){return null==t?[]:(Ho(e)||(e=null==e?[]:[e]),Ho(n=r?i:n)||(n=null==n?[]:[n]),$r(t,e,n))},Dn.over=ll,Dn.overArgs=Fo,Dn.overEvery=Al,Dn.overSome=cl,Dn.partial=Lo,Dn.partialRight=Mo,Dn.partition=wo,Dn.pick=Fa,Dn.pickBy=La,Dn.property=hl,Dn.propertyOf=function(t){return function(e){return null==t?i:br(t,e)}},Dn.pull=Ws,Dn.pullAll=Zs,Dn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Hr(t,e,ss(n,2)):t},Dn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Hr(t,e,i,n):t},Dn.pullAt=Ks,Dn.range=ul,Dn.rangeRight=pl,Dn.rearg=Do,Dn.reject=function(t,e){return(Ho(t)?Be:dr)(t,Qo(ss(e,3)))},Dn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],s=t.length;for(e=ss(e,3);++r<s;){var o=t[r];e(o,r,t)&&(n.push(o),i.push(r))}return Vr(t,i),n},Dn.rest=function(t,e){if("function"!=typeof t)throw new Et(s);return Gr(t,e=e===i?e:pa(e))},Dn.reverse=qs,Dn.sampleSize=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:pa(e),(Ho(t)?Zn:Wr)(t,e)},Dn.set=function(t,e,n){return null==t?t:Zr(t,e,n)},Dn.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Zr(t,e,n,r)},Dn.shuffle=function(t){return(Ho(t)?Kn:Jr)(t)},Dn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&gs(t,e,n)?(e=0,n=r):(e=null==e?0:pa(e),n=n===i?r:pa(n)),ti(t,e,n)):[]},Dn.sortBy=_o,Dn.sortedUniq=function(t){return t&&t.length?ii(t):[]},Dn.sortedUniqBy=function(t,e){return t&&t.length?ii(t,ss(e,2)):[]},Dn.split=function(t,e,n){return n&&"number"!=typeof n&&gs(t,e,n)&&(e=n=i),(n=n===i?p:n>>>0)?(t=ma(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=oi(e))&&rn(t)?yi(hn(t),0,n):t.split(e,n):[]},Dn.spread=function(t,e){if("function"!=typeof t)throw new Et(s);return e=null==e?0:gn(pa(e),0),Gr(function(n){var r=n[e],i=yi(n,0,e);return r&&Ie(i,r),we(t,this,i)})},Dn.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},Dn.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===i?1:pa(e))<0?0:e):[]},Dn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=r-(e=n||e===i?1:pa(e)))<0?0:e,r):[]},Dn.takeRightWhile=function(t,e){return t&&t.length?ci(t,ss(e,3),!1,!0):[]},Dn.takeWhile=function(t,e){return t&&t.length?ci(t,ss(e,3)):[]},Dn.tap=function(t,e){return e(t),t},Dn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Et(s);return Jo(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Po(t,e,{leading:r,maxWait:e,trailing:i})},Dn.thru=ho,Dn.toArray=ha,Dn.toPairs=Ma,Dn.toPairsIn=Da,Dn.toPath=function(t){return Ho(t)?ke(t,Fs):aa(t)?[t]:Ci(Qs(ma(t)))},Dn.toPlainObject=ga,Dn.transform=function(t,e,n){var r=Ho(t),i=r||Go(t)||la(t);if(e=ss(e,4),null==n){var s=t&&t.constructor;n=i?r?new s:[]:Jo(t)&&Zo(s)?Rn(Vt(t)):{}}return(i?Se:yr)(t,function(t,r,i){return e(n,t,r,i)}),n},Dn.unary=function(t){return Co(t,1)},Dn.union=Js,Dn.unionBy=to,Dn.unionWith=eo,Dn.uniq=function(t){return t&&t.length?ai(t):[]},Dn.uniqBy=function(t,e){return t&&t.length?ai(t,ss(e,2)):[]},Dn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},Dn.unset=function(t,e){return null==t||li(t,e)},Dn.unzip=no,Dn.unzipWith=ro,Dn.update=function(t,e,n){return null==t?t:Ai(t,e,fi(n))},Dn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Ai(t,e,fi(n),r)},Dn.values=Ra,Dn.valuesIn=function(t){return null==t?[]:Ze(t,ka(t))},Dn.without=io,Dn.words=Za,Dn.wrap=function(t,e){return Lo(fi(e),t)},Dn.xor=so,Dn.xorBy=oo,Dn.xorWith=ao,Dn.zip=lo,Dn.zipObject=function(t,e){return pi(t||[],e||[],Jn)},Dn.zipObjectDeep=function(t,e){return pi(t||[],e||[],Zr)},Dn.zipWith=Ao,Dn.entries=Ma,Dn.entriesIn=Da,Dn.extend=va,Dn.extendWith=Oa,ol(Dn,Dn),Dn.add=ml,Dn.attempt=Ka,Dn.camelCase=Ua,Dn.capitalize=$a,Dn.ceil=yl,Dn.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=fa(n))==n?n:0),e!==i&&(e=(e=fa(e))==e?e:0),sr(fa(t),e,n)},Dn.clone=function(t){return or(t,4)},Dn.cloneDeep=function(t){return or(t,5)},Dn.cloneDeepWith=function(t,e){return or(t,5,e="function"==typeof e?e:i)},Dn.cloneWith=function(t,e){return or(t,4,e="function"==typeof e?e:i)},Dn.conformsTo=function(t,e){return null==e||ar(t,e,Pa(e))},Dn.deburr=ja,Dn.defaultTo=function(t,e){return null==t||t!=t?e:t},Dn.divide=vl,Dn.endsWith=function(t,e,n){t=ma(t),e=oi(e);var r=t.length,s=n=n===i?r:sr(pa(n),0,r);return(n-=e.length)>=0&&t.slice(n,s)==e},Dn.eq=Ro,Dn.escape=function(t){return(t=ma(t))&&Y.test(t)?t.replace(z,en):t},Dn.escapeRegExp=function(t){return(t=ma(t))&&nt.test(t)?t.replace(et,"\\$&"):t},Dn.every=function(t,e,n){var r=Ho(t)?Ee:ur;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},Dn.find=fo,Dn.findIndex=$s,Dn.findKey=function(t,e){return Me(t,ss(e,3),yr)},Dn.findLast=go,Dn.findLastIndex=js,Dn.findLastKey=function(t,e){return Me(t,ss(e,3),vr)},Dn.floor=Ol,Dn.forEach=mo,Dn.forEachRight=yo,Dn.forIn=function(t,e){return null==t?t:gr(t,ss(e,3),ka)},Dn.forInRight=function(t,e){return null==t?t:mr(t,ss(e,3),ka)},Dn.forOwn=function(t,e){return t&&yr(t,ss(e,3))},Dn.forOwnRight=function(t,e){return t&&vr(t,ss(e,3))},Dn.get=Sa,Dn.gt=Uo,Dn.gte=$o,Dn.has=function(t,e){return null!=t&&us(t,e,Sr)},Dn.hasIn=Ca,Dn.head=Vs,Dn.identity=nl,Dn.includes=function(t,e,n,r){t=Xo(t)?t:Ra(t),n=n&&!r?pa(n):0;var i=t.length;return n<0&&(n=gn(i+n,0)),oa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Re(t,e,n)>-1},Dn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:pa(n);return i<0&&(i=gn(r+i,0)),Re(t,e,i)},Dn.inRange=function(t,e,n){return e=ua(e),n===i?(n=e,e=0):n=ua(n),function(t,e,n){return t>=mn(e,n)&&t<gn(e,n)}(t=fa(t),e,n)},Dn.invoke=Ta,Dn.isArguments=jo,Dn.isArray=Ho,Dn.isArrayBuffer=Vo,Dn.isArrayLike=Xo,Dn.isArrayLikeObject=zo,Dn.isBoolean=function(t){return!0===t||!1===t||ta(t)&&wr(t)==m},Dn.isBuffer=Go,Dn.isDate=Yo,Dn.isElement=function(t){return ta(t)&&1===t.nodeType&&!ra(t)},Dn.isEmpty=function(t){if(null==t)return!0;if(Xo(t)&&(Ho(t)||"string"==typeof t||"function"==typeof t.splice||Go(t)||la(t)||jo(t)))return!t.length;var e=hs(t);if(e==x||e==E)return!t.size;if(Os(t))return!Qr(t).length;for(var n in t)if(Nt.call(t,n))return!1;return!0},Dn.isEqual=function(t,e){return Pr(t,e)},Dn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Pr(t,e,i,n):!!r},Dn.isError=Wo,Dn.isFinite=function(t){return"number"==typeof t&&Le(t)},Dn.isFunction=Zo,Dn.isInteger=Ko,Dn.isLength=qo,Dn.isMap=ea,Dn.isMatch=function(t,e){return t===e||kr(t,e,as(e))},Dn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,kr(t,e,as(e),n)},Dn.isNaN=function(t){return na(t)&&t!=+t},Dn.isNative=function(t){if(vs(t))throw new bt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ir(t)},Dn.isNil=function(t){return null==t},Dn.isNull=function(t){return null===t},Dn.isNumber=na,Dn.isObject=Jo,Dn.isObjectLike=ta,Dn.isPlainObject=ra,Dn.isRegExp=ia,Dn.isSafeInteger=function(t){return Ko(t)&&t>=-9007199254740991&&t<=h},Dn.isSet=sa,Dn.isString=oa,Dn.isSymbol=aa,Dn.isTypedArray=la,Dn.isUndefined=function(t){return t===i},Dn.isWeakMap=function(t){return ta(t)&&hs(t)==P},Dn.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==wr(t)},Dn.join=function(t,e){return null==t?"":Ve.call(t,e)},Dn.kebabCase=Ha,Dn.last=Ys,Dn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r;return n!==i&&(s=(s=pa(n))<0?gn(r+s,0):mn(s,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,s):De(t,$e,s,!0)},Dn.lowerCase=Va,Dn.lowerFirst=Xa,Dn.lt=Aa,Dn.lte=ca,Dn.max=function(t){return t&&t.length?pr(t,nl,_r):i},Dn.maxBy=function(t,e){return t&&t.length?pr(t,ss(e,2),_r):i},Dn.mean=function(t){return je(t,nl)},Dn.meanBy=function(t,e){return je(t,ss(e,2))},Dn.min=function(t){return t&&t.length?pr(t,nl,Fr):i},Dn.minBy=function(t,e){return t&&t.length?pr(t,ss(e,2),Fr):i},Dn.stubArray=dl,Dn.stubFalse=fl,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=bl,Dn.nth=function(t,e){return t&&t.length?Ur(t,pa(e)):i},Dn.noConflict=function(){return he._===this&&(he._=Dt),this},Dn.noop=al,Dn.now=So,Dn.pad=function(t,e,n){t=ma(t);var r=(e=pa(e))?cn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return $i(pe(i),n)+t+$i(ue(i),n)},Dn.padEnd=function(t,e,n){t=ma(t);var r=(e=pa(e))?cn(t):0;return e&&r<e?t+$i(e-r,n):t},Dn.padStart=function(t,e,n){t=ma(t);var r=(e=pa(e))?cn(t):0;return e&&r<e?$i(e-r,n)+t:t},Dn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),vn(ma(t).replace(rt,""),e||0)},Dn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&gs(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=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 r=t;t=e,e=r}if(n||t%1||e%1){var s=On();return mn(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Xr(t,e)},Dn.reduce=function(t,e,n){var r=Ho(t)?Ne:Xe,i=arguments.length<3;return r(t,ss(e,4),n,i,cr)},Dn.reduceRight=function(t,e,n){var r=Ho(t)?Qe:Xe,i=arguments.length<3;return r(t,ss(e,4),n,i,hr)},Dn.repeat=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:pa(e),zr(ma(t),e)},Dn.replace=function(){var t=arguments,e=ma(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Dn.result=function(t,e,n){var r=-1,s=(e=gi(e,t)).length;for(s||(s=1,t=i);++r<s;){var o=null==t?i:t[Fs(e[r])];o===i&&(r=s,o=n),t=Zo(o)?o.call(t):o}return t},Dn.round=xl,Dn.runInContext=t,Dn.sample=function(t){return(Ho(t)?Wn:Yr)(t)},Dn.size=function(t){if(null==t)return 0;if(Xo(t))return oa(t)?cn(t):t.length;var e=hs(t);return e==x||e==E?t.size:Qr(t).length},Dn.snakeCase=za,Dn.some=function(t,e,n){var r=Ho(t)?Fe:ei;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},Dn.sortedIndex=function(t,e){return ni(t,e)},Dn.sortedIndexBy=function(t,e,n){return ri(t,e,ss(n,2))},Dn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ni(t,e);if(r<n&&Ro(t[r],e))return r}return-1},Dn.sortedLastIndex=function(t,e){return ni(t,e,!0)},Dn.sortedLastIndexBy=function(t,e,n){return ri(t,e,ss(n,2),!0)},Dn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ni(t,e,!0)-1;if(Ro(t[n],e))return n}return-1},Dn.startCase=Ga,Dn.startsWith=function(t,e,n){return t=ma(t),n=null==n?0:sr(pa(n),0,t.length),e=oi(e),t.slice(n,n+e.length)==e},Dn.subtract=wl,Dn.sum=function(t){return t&&t.length?ze(t,nl):0},Dn.sumBy=function(t,e){return t&&t.length?ze(t,ss(e,2)):0},Dn.template=function(t,e,n){var r=Dn.templateSettings;n&&gs(t,e,n)&&(e=i),t=ma(t),e=Oa({},e,r,Wi);var s,o,a=Oa({},e.imports,r.imports,Wi),l=Pa(a),A=Ze(a,l),c=0,h=e.interpolate||vt,u="__p += '",p=St((e.escape||vt).source+"|"+h.source+"|"+(h===K?ht:vt).source+"|"+(e.evaluate||vt).source+"|$","g"),d="//# sourceURL="+(Nt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++re+"]")+"\n";t.replace(p,function(e,n,r,i,a,l){return r||(r=i),u+=t.slice(c,l).replace(Ot,nn),n&&(s=!0,u+="' +\n__e("+n+") +\n'"),a&&(o=!0,u+="';\n"+a+";\n__p += '"),r&&(u+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+e.length,e}),u+="';\n";var f=Nt.call(e,"variable")&&e.variable;if(f){if(At.test(f))throw new bt("Invalid `variable` option passed into `_.template`")}else u="with (obj) {\n"+u+"\n}\n";u=(o?u.replace(j,""):u).replace(H,"$1").replace(V,"$1;"),u="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var g=Ka(function(){return xt(l,d+"return "+u).apply(i,A)});if(g.source=u,Wo(g))throw g;return g},Dn.times=function(t,e){if((t=pa(t))<1||t>h)return[];var n=p,r=mn(t,p);e=ss(e),t-=p;for(var i=Ge(r,e);++n<t;)e(n);return i},Dn.toFinite=ua,Dn.toInteger=pa,Dn.toLength=da,Dn.toLower=function(t){return ma(t).toLowerCase()},Dn.toNumber=fa,Dn.toSafeInteger=function(t){return t?sr(pa(t),-9007199254740991,h):0===t?t:0},Dn.toString=ma,Dn.toUpper=function(t){return ma(t).toUpperCase()},Dn.trim=function(t,e,n){if((t=ma(t))&&(n||e===i))return Ye(t);if(!t||!(e=oi(e)))return t;var r=hn(t),s=hn(e);return yi(r,qe(r,s),Je(r,s)+1).join("")},Dn.trimEnd=function(t,e,n){if((t=ma(t))&&(n||e===i))return t.slice(0,un(t)+1);if(!t||!(e=oi(e)))return t;var r=hn(t);return yi(r,0,Je(r,hn(e))+1).join("")},Dn.trimStart=function(t,e,n){if((t=ma(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=oi(e)))return t;var r=hn(t);return yi(r,qe(r,hn(e))).join("")},Dn.truncate=function(t,e){var n=30,r="...";if(Jo(e)){var s="separator"in e?e.separator:s;n="length"in e?pa(e.length):n,r="omission"in e?oi(e.omission):r}var o=(t=ma(t)).length;if(rn(t)){var a=hn(t);o=a.length}if(n>=o)return t;var l=n-cn(r);if(l<1)return r;var A=a?yi(a,0,l).join(""):t.slice(0,l);if(s===i)return A+r;if(a&&(l+=A.length-l),ia(s)){if(t.slice(l).search(s)){var c,h=A;for(s.global||(s=St(s.source,ma(ut.exec(s))+"g")),s.lastIndex=0;c=s.exec(h);)var u=c.index;A=A.slice(0,u===i?l:u)}}else if(t.indexOf(oi(s),l)!=l){var p=A.lastIndexOf(s);p>-1&&(A=A.slice(0,p))}return A+r},Dn.unescape=function(t){return(t=ma(t))&&G.test(t)?t.replace(X,pn):t},Dn.uniqueId=function(t){var e=++Qt;return ma(t)+e},Dn.upperCase=Ya,Dn.upperFirst=Wa,Dn.each=mo,Dn.eachRight=yo,Dn.first=Vs,ol(Dn,(gl={},yr(Dn,function(t,e){Nt.call(Dn.prototype,e)||(gl[e]=t)}),gl),{chain:!1}),Dn.VERSION="4.17.23",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Dn[t].placeholder=Dn}),Se(["drop","take"],function(t,e){jn.prototype[t]=function(n){n=n===i?1:gn(pa(n),0);var r=this.__filtered__&&!e?new jn(this):this.clone();return r.__filtered__?r.__takeCount__=mn(n,r.__takeCount__):r.__views__.push({size:mn(n,p),type:t+(r.__dir__<0?"Right":"")}),r},jn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Se(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;jn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ss(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Se(["head","last"],function(t,e){var n="take"+(e?"Right":"");jn.prototype[t]=function(){return this[n](1).value()[0]}}),Se(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");jn.prototype[t]=function(){return this.__filtered__?new jn(this):this[n](1)}}),jn.prototype.compact=function(){return this.filter(nl)},jn.prototype.find=function(t){return this.filter(t).head()},jn.prototype.findLast=function(t){return this.reverse().find(t)},jn.prototype.invokeMap=Gr(function(t,e){return"function"==typeof t?new jn(this):this.map(function(n){return Br(n,t,e)})}),jn.prototype.reject=function(t){return this.filter(Qo(ss(t)))},jn.prototype.slice=function(t,e){t=pa(t);var n=this;return n.__filtered__&&(t>0||e<0)?new jn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=pa(e))<0?n.dropRight(-e):n.take(e-t)),n)},jn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},jn.prototype.toArray=function(){return this.take(p)},yr(jn.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),s=Dn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);s&&(Dn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,l=e instanceof jn,A=a[0],c=l||Ho(e),h=function(t){var e=s.apply(Dn,Ie([t],a));return r&&u?e[0]:e};c&&n&&"function"==typeof A&&1!=A.length&&(l=c=!1);var u=this.__chain__,p=!!this.__actions__.length,d=o&&!u,f=l&&!p;if(!o&&c){e=f?e:new jn(this);var g=t.apply(e,a);return g.__actions__.push({func:ho,args:[h],thisArg:i}),new $n(g,u)}return d&&f?t.apply(this,a):(g=this.thru(h),d?r?g.value()[0]:g.value():g)})}),Se(["pop","push","shift","sort","splice","unshift"],function(t){var e=Bt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Dn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ho(i)?i:[],t)}return this[n](function(n){return e.apply(Ho(n)?n:[],t)})}}),yr(jn.prototype,function(t,e){var n=Dn[e];if(n){var r=n.name+"";Nt.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:e,func:n})}}),Tn[Mi(i,2).name]=[{name:"wrapper",func:i}],jn.prototype.clone=function(){var t=new jn(this.__wrapped__);return t.__actions__=Ci(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ci(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ci(this.__views__),t},jn.prototype.reverse=function(){if(this.__filtered__){var t=new jn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},jn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ho(t),r=e<0,i=n?t.length:0,s=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=mn(e,t+o);break;case"takeRight":t=gn(t,e-o)}}return{start:t,end:e}}(0,i,this.__views__),o=s.start,a=s.end,l=a-o,A=r?a:o-1,c=this.__iteratees__,h=c.length,u=0,p=mn(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return hi(t,this.__actions__);var d=[];t:for(;l--&&u<p;){for(var f=-1,g=t[A+=e];++f<h;){var m=c[f],y=m.iteratee,v=m.type,O=y(g);if(2==v)g=O;else if(!O){if(1==v)continue t;break t}}d[u++]=g}return d},Dn.prototype.at=uo,Dn.prototype.chain=function(){return co(this)},Dn.prototype.commit=function(){return new $n(this.value(),this.__chain__)},Dn.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__++]}},Dn.prototype.plant=function(t){for(var e,n=this;n instanceof Un;){var r=Ms(n);r.__index__=0,r.__values__=i,e?s.__wrapped__=r:e=r;var s=r;n=n.__wrapped__}return s.__wrapped__=t,e},Dn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof jn){var e=t;return this.__actions__.length&&(e=new jn(this)),(e=e.reverse()).__actions__.push({func:ho,args:[qs],thisArg:i}),new $n(e,this.__chain__)}return this.thru(qs)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,Wt&&(Dn.prototype[Wt]=function(){return this}),Dn}();he._=dn,(r=function(){return dn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},44773(t,e,n){var r=n(9935),i=n(93880),s=n(55992);t.exports=function(t,e){var n={};return e=s(e,3),i(t,function(t,i,s){r(n,i,e(t,i,s))}),n}},84101(t,e,n){var r=n(98464);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},50277(t,e,n){var r=n(22725),i=n(25834)(function(t,e,n){r(t,e,n)});t.exports=i},19697(t){t.exports=function(){}},61381(t,e,n){var r=n(91736);t.exports=function(){return r.Date.now()}},47520(t,e,n){var r=n(39221),i=n(60444),s=n(1116),o=n(46476),a=n(84534),l=n(11241),A=n(73985),c=n(57856),h=A(function(t,e){var n={};if(null==t)return n;var A=!1;e=r(e,function(e){return e=o(e,t),A||(A=e.length>1),e}),a(t,c(t),n),A&&(n=i(n,7,l));for(var h=e.length;h--;)s(n,e[h]);return n});t.exports=h},78664(t,e,n){var r=n(99528),i=n(96628);t.exports=function(t,e,n,s){return null==t?[]:(i(e)||(e=null==e?[]:[e]),i(n=s?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},63447(t,e,n){var r=n(52937)(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});t.exports=r},79564(t,e,n){var r=n(36364),i=n(71986),s=n(5749),o=n(20018);t.exports=function(t){return s(t)?r(o(t)):i(t)}},58806(t,e,n){var r=n(42836),i=n(73985)(function(t,e){return r(t,256,void 0,void 0,void 0,e)});t.exports=i},87677(t,e,n){var r=n(22734)("round");t.exports=r},17181(t,e,n){var r=n(35421);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},32148(t){t.exports=function(){return[]}},14078(t){t.exports=function(){return!1}},46059(t,e,n){var r=n(55992),i=n(76982);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):0}},96263(t,e,n){var r=n(43569),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},78164(t,e,n){var r=n(96263);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},43569(t,e,n){var r=n(29605),i=n(97230),s=n(83089),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,A=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(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=r(t);var n=a.test(t);return n||l.test(t)?A(t.slice(2),n?2:8):o.test(t)?NaN:+t}},38135(t,e,n){var r=n(39221),i=n(20380),s=n(96628),o=n(83089),a=n(71951),l=n(20018),A=n(55805);t.exports=function(t){return s(t)?r(t,l):o(t)?[t]:i(a(A(t)))}},58089(t,e,n){var r=n(84534),i=n(93562);t.exports=function(t){return r(t,i(t))}},55805(t,e,n){var r=n(75293);t.exports=function(t){return null==t?"":r(t)}},40944(t,e,n){var r=n(97936);t.exports=function(t){return t&&t.length?r(t):[]}},93107(t,e,n){var r=n(3228)("toUpperCase");t.exports=r},42671(t,e,n){var r=n(89819),i=n(42958),s=n(61808),o=n(96628),a=n(28089),l=n(48368),A=Object.prototype.hasOwnProperty;function c(t){if(a(t)&&!o(t)&&!(t instanceof r)){if(t instanceof i)return t;if(A.call(t,"__wrapped__"))return l(t)}return new i(t)}c.prototype=s.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 n,r,i=t.length;for(n=0;n<i;n+=1)for(var s in r=t[n].prototype)Object.prototype.hasOwnProperty.call(r,s)&&(e.prototype[s]=r[s])}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,n=this.audios.length;for(e=0;e<n;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 n,r=0,i=[];switch(t){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<e;r+=1)i.push(n);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,n){return"float32"===e?new Float32Array(n):"int16"===e?new Int16Array(n):"uint8c"===e?new Uint8ClampedArray(n):t(e,n)}: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"],n=e.length;for(t=0;t<n;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,n=createSizedArray(t.length),r=t.length;for(e=0;e<r;e+=1)n[e]=Math.abs(t[e]);return n}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,n,r){this.type=t,this.currentTime=e,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,n,r){this.type=t,this.currentLoop=n,this.totalLoops=e,this.direction=r<0?-1:1}function BMSegmentStartEvent(t,e,n){this.type=t,this.firstFrame=e,this.totalFrames=n}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,n){var r,i,s,o,a,l,A,c;switch(l=n*(1-e),A=n*(1-(a=6*t-(o=Math.floor(6*t)))*e),c=n*(1-(1-a)*e),o%6){case 0:r=n,i=c,s=l;break;case 1:r=A,i=n,s=l;break;case 2:r=l,i=n,s=c;break;case 3:r=l,i=A,s=n;break;case 4:r=c,i=l,s=n;break;case 5:r=n,i=l,s=A}return[r,i,s]}function RGBtoHSV(t,e,n){var r,i=Math.max(t,e,n),s=Math.min(t,e,n),o=i-s,a=0===i?0:o/i,l=i/255;switch(i){case s:r=0;break;case t:r=e-n+o*(e<n?6:0),r/=6*o;break;case e:r=n-t+2*o,r/=6*o;break;case n:r=t-e+4*o,r/=6*o}return[r,a,l]}function addSaturationToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[1]+=e,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var t,e,n=[];for(t=0;t<256;t+=1)e=t.toString(16),n[t]=1===e.length?"0"+e:e;return function(t,e,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+n[t]+n[e]+n[r]}}(),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,n=1,r=[],i={onmessage:function(){},postMessage:function(e){t({data:e})}},s={postMessage:function(t){i.onmessage({data:t})}};function o(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return t=e,i}(function(t){if(s.dataManager||(s.dataManager=function(){function t(i,s){var o,a,l,A,c,u,p=i.length;for(a=0;a<p;a+=1)if("ks"in(o=i[a])&&!o.completed){if(o.completed=!0,o.hasMask){var d=o.masksProperties;for(A=d.length,l=0;l<A;l+=1)if(d[l].pt.k.i)r(d[l].pt.k);else for(u=d[l].pt.k.length,c=0;c<u;c+=1)d[l].pt.k[c].s&&r(d[l].pt.k[c].s[0]),d[l].pt.k[c].e&&r(d[l].pt.k[c].e[0])}0===o.ty?(o.layers=e(o.refId,s),t(o.layers,s)):4===o.ty?n(o.shapes):5===o.ty&&h(o)}}function e(t,e){var n=function(t,e){for(var n=0,r=e.length;n<r;){if(e[n].id===t)return e[n];n+=1}return null}(t,e);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(t){var e,i,s;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)r(t[e].ks.k);else for(s=t[e].ks.k.length,i=0;i<s;i+=1)t[e].ks.k[i].s&&r(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&r(t[e].ks.k[i].e[0]);else"gr"===t[e].ty&&n(t[e].it)}function r(t){var e,n=t.i.length;for(e=0;e<n;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 n=e?e.split("."):[100,100,100];return t[0]>n[0]||!(n[0]>t[0])&&(t[1]>n[1]||!(n[1]>t[1])&&(t[2]>n[2]||!(n[2]>t[2])&&null))}var s,o=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(i(t,e.v)&&(n(e.layers),e.assets)){var r,s=e.assets.length;for(r=0;r<s;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),a=(s=[4,7,99],function(t){if(t.chars&&!i(s,t.v)){var e,r=t.chars.length;for(e=0;e<r;e+=1){var o=t.chars[e];o.data&&o.data.shapes&&(n(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.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||(o.data.shapes.push({ty:"no"}),o.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"})))}}}),l=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 n(t){var n,r=t.length;for(n=0;n<r;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(i(t,e.v)&&(n(e.layers),e.assets)){var r,s=e.assets.length;for(r=0;r<s;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),A=function(){var t=[4,1,9];function e(t){var n,r,i,s=t.length;for(n=0;n<s;n+=1)if("gr"===t[n].ty)e(t[n].it);else if("fl"===t[n].ty||"st"===t[n].ty)if(t[n].c.k&&t[n].c.k[0].i)for(i=t[n].c.k.length,r=0;r<i;r+=1)t[n].c.k[r].s&&(t[n].c.k[r].s[0]/=255,t[n].c.k[r].s[1]/=255,t[n].c.k[r].s[2]/=255,t[n].c.k[r].s[3]/=255),t[n].c.k[r].e&&(t[n].c.k[r].e[0]/=255,t[n].c.k[r].e[1]/=255,t[n].c.k[r].e[2]/=255,t[n].c.k[r].e[3]/=255);else t[n].c.k[0]/=255,t[n].c.k[1]/=255,t[n].c.k[2]/=255,t[n].c.k[3]/=255}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)4===t[n].ty&&e(t[n].shapes)}return function(e){if(i(t,e.v)&&(n(e.layers),e.assets)){var r,s=e.assets.length;for(r=0;r<s;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var n,r,i;for(n=t.length-1;n>=0;n-=1)if("sh"===t[n].ty)if(t[n].ks.k.i)t[n].ks.k.c=t[n].closed;else for(i=t[n].ks.k.length,r=0;r<i;r+=1)t[n].ks.k[r].s&&(t[n].ks.k[r].s[0].c=t[n].closed),t[n].ks.k[r].e&&(t[n].ks.k[r].e[0].c=t[n].closed);else"gr"===t[n].ty&&e(t[n].it)}function n(t){var n,r,i,s,o,a,l=t.length;for(r=0;r<l;r+=1){if((n=t[r]).hasMask){var A=n.masksProperties;for(s=A.length,i=0;i<s;i+=1)if(A[i].pt.k.i)A[i].pt.k.c=A[i].cl;else for(a=A[i].pt.k.length,o=0;o<a;o+=1)A[i].pt.k[o].s&&(A[i].pt.k[o].s[0].c=A[i].cl),A[i].pt.k[o].e&&(A[i].pt.k[o].e[0].c=A[i].cl)}4===n.ty&&e(n.shapes)}}return function(e){if(i(t,e.v)&&(n(e.layers),e.assets)){var r,s=e.assets.length;for(r=0;r<s;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}();function h(t){0===t.t.a.length&&t.t.p}var u={completeData:function(n){n.__complete||(A(n),o(n),a(n),l(n),c(n),t(n.layers,n.assets),function(n,r){if(n){var i=0,s=n.length;for(i=0;i<s;i+=1)1===n[i].t&&(n[i].data.layers=e(n[i].data.refId,r),t(n[i].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};return u.checkColors=A,u.checkChars=a,u.checkPathProperties=l,u.checkShapes=c,u.completeLayers=t,u}()),s.assetLoader||(s.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,n,r,i){var s,o=new XMLHttpRequest;try{o.responseType="json"}catch(t){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)s=t(o),r(s);else try{s=t(o),r(s)}catch(t){i&&i(t)}};try{o.open(["G","E","T"].join(""),e,!0)}catch(t){o.open(["G","E","T"].join(""),n+"/"+e,!0)}o.send()}}}()),"loadAnimation"===t.data.type)s.assetLoader.load(t.data.path,t.data.fullPath,function(e){s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})},function(){s.postMessage({id:t.data.id,status:"error"})});else if("complete"===t.data.type){var e=t.data.animation;s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&s.assetLoader.load(t.data.path,t.data.fullPath,function(e){s.postMessage({id:t.data.id,payload:e,status:"success"})},function(){s.postMessage({id:t.data.id,status:"error"})})}),e.onmessage=function(t){var e=t.data,n=e.id,i=r[n];r[n]=null,"success"===e.status?i.onComplete(e.payload):i.onError&&i.onError()})}function a(t,e){var i="processId_"+(n+=1);return r[i]={onComplete:t,onError:e},i}return{loadAnimation:function(t,n,r){o();var i=a(n,r);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(t,n,r){o();var i=a(n,r);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(t,n,r){o();var i=a(n,r);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 n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,n){var r="";if(t.e)r=t.p;else if(e){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=e+i}else r=n,r+=t.u?t.u:"",r+=t.p;return r}function i(t){var e=0,n=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(n)),e+=1}.bind(this),50)}function s(t){var e={assetData:t},n=r(t,this.assetsPath,this.path);return dataManager.loadData(n,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(t,e){var n;this.imagesLoadedCb=e;var r=t.length;for(n=0;n<r;n+=1)t[n].layers||(t[n].t&&"seq"!==t[n].t?3===t[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[n]))):(this.totalImages+=1,this.images.push(this._createImageData(t[n]))))},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,n=this.images.length;e<n;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var n=r(e,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),i.src=n;var s={img:i,assetData:e};return s},createImageData:function(e){var n=r(e,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var s={img:i,assetData:e};return s},imageLoaded:e,footageLoaded:n,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var n=this._cbs[t],r=0;r<n.length;r+=1)n[r](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 n=0,r=this._cbs[t].length;n<r;)this._cbs[t][n]===e&&(this._cbs[t].splice(n,1),n-=1,r-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,n=t.split("\r\n"),r={},i=0,s=0;s<n.length;s+=1)2===(e=n[s].split(":")).length&&(r[e[0]]=e[1].trim(),i+=1);if(0===i)throw new Error;return r}return function(e){for(var n=[],r=0;r<e.length;r+=1){var i=e[r],s={time:i.tm,duration:i.dr};try{s.payload=JSON.parse(e[r].cm)}catch(n){try{s.payload=t(e[r].cm)}catch(t){s.payload={name:e[r].cm}}}n.push(s)}return n}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,n=this.compositions.length;e<n;){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 n=getRenderer(e);this.renderer=new n(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 n={wrapper:t,animationData:e},r=t.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var s=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==s,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),n.path?this.setParams(n):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,n,r=this.animationData.layers,i=r.length,s=t.layers,o=s.length;for(n=0;n<o;n+=1)for(e=0;e<i;){if(r[e].id===s[n].id){r[e]=s[n];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 n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,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 n="number"==typeof t?t:void 0,r="number"==typeof e?e:void 0;this.renderer.updateContainerSize(n,r)},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,n=0;n<this.markers.length;n+=1)if((e=this.markers[n]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,n){if(!n||this.name===n){var r=Number(t);if(isNaN(r)){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,n){if(!n||this.name===n){var r=Number(t);if(isNaN(r)){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(r,e,n);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,n=!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)||(n=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),n&&(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 n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?n=t:this.currentRawFrame+this.firstFrame>e&&(n=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var n,r=t.length;for(n=0;n<r;n+=1)this.segments.push(t[n])}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 n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),e=this.assetsPath+n}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,n=this.assets.length;e<n;){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,n){try{this.renderer.getElementByPath(t).updateDocumentData(e,n)}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=[],n=0,r=0,i=0,s=!0,o=!1;function a(t){for(var n=0,i=t.target;n<r;)e[n].animation===i&&(e.splice(n,1),n-=1,r-=1,i.isPaused||c()),n+=1}function l(t,n){if(!t)return null;for(var i=0;i<r;){if(e[i].elem===t&&null!==e[i].elem)return e[i].animation;i+=1}var s=new AnimationItem;return h(s,t),s.setData(t,n),s}function A(){i+=1,d()}function c(){i-=1}function h(t,n){t.addEventListener("destroy",a),t.addEventListener("_active",A),t.addEventListener("_idle",c),e.push({elem:n,animation:t}),r+=1}function u(t){var a,l=t-n;for(a=0;a<r;a+=1)e[a].animation.advanceTime(l);n=t,i&&!o?window.requestAnimationFrame(u):s=!0}function p(t){n=t,window.requestAnimationFrame(u)}function d(){!o&&i&&s&&(window.requestAnimationFrame(p),s=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return h(e,null),e.setParams(t),e},t.setSpeed=function(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setSpeed(t,n)},t.setDirection=function(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setDirection(t,n)},t.play=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.play(t)},t.pause=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.pause(t)},t.stop=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.stop(t)},t.togglePause=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.togglePause(t)},t.searchAnimations=function(t,e,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=i.length;for(r=0;r<s;r+=1)n&&i[r].setAttribute("data-bm-type",n),l(i[r],t);if(e&&0===s){n||(n="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var a=createTag("div");a.style.width="100%",a.style.height="100%",a.setAttribute("data-bm-type",n),o.appendChild(a),l(a,t)}},t.resize=function(){var t;for(t=0;t<r;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,n,i){var s;for(s=0;s<r;s+=1)e[s].animation.goToAndStop(t,n,i)},t.destroy=function(t){var n;for(n=r-1;n>=0;n-=1)e[n].animation.destroy(t)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,d()},t.setVolume=function(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setVolume(t,n)},t.mute=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.mute(t)},t.unmute=function(t){var n;for(n=0;n<r;n+=1)e[n].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r.push(e[t].animation);return r},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,n,r,i,s){var o=s||("bez_"+t+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(e[o])return e[o];var a=new c([t,n,r,i]);return e[o]=a,a}},e={},n=11,r=1/(n-1),i="function"==typeof Float32Array;function s(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function a(t){return 3*t}function l(t,e,n){return((s(e,n)*t+o(e,n))*t+a(e))*t}function A(t,e,n){return 3*s(e,n)*t*t+2*o(e,n)*t+a(e)}function c(t){this._p=t,this._mSampleValues=i?new Float32Array(n):new Array(n),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(t){var e=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),e===n&&r===i?t:0===t?0:1===t?1:l(this._getTForX(t),n,i)},_precompute:function(){var t=this._p[0],e=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<n;++i)this._mSampleValues[i]=l(i*r,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],s=this._mSampleValues,o=0,a=1,c=n-1;a!==c&&s[a]<=t;++a)o+=r;var h=o+(t-s[--a])/(s[a+1]-s[a])*r,u=A(h,e,i);return u>=.001?function(t,e,n,r){for(var i=0;i<4;++i){var s=A(e,n,r);if(0===s)return e;e-=(l(e,n,r)-t)/s}return e}(t,h,e,i):0===u?h:function(t,e,n,r,i){var s,o,a=0;do{(s=l(o=e+(n-e)/2,r,i)-t)>0?n=o:e=o}while(Math.abs(s)>1e-7&&++a<10);return o}(t,o,o+r,e,i)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,n){var r=0,i=t,s=createSizedArray(i);return{newElement:function(){return r?s[r-=1]:e()},release:function(t){r===i&&(s=pooling.double(s),i*=2),n&&n(t),s[r]=t,r+=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,n=t.lengths.length;for(e=0;e<n;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0});function bezFunction(){var t=Math;function e(t,e,n,r,i,s){var o=t*r+e*i+n*s-i*r-s*t-n*e;return o>-.001&&o<.001}var n=function(t,e,n,r){var i,s,o,a,l,A,c=getDefaultCurveSegments(),h=0,u=[],p=[],d=bezierLengthPool.newElement();for(o=n.length,i=0;i<c;i+=1){for(l=i/(c-1),A=0,s=0;s<o;s+=1)a=bmPow(1-l,3)*t[s]+3*bmPow(1-l,2)*l*n[s]+3*(1-l)*bmPow(l,2)*r[s]+bmPow(l,3)*e[s],u[s]=a,null!==p[s]&&(A+=bmPow(u[s]-p[s],2)),p[s]=u[s];A&&(h+=A=bmSqrt(A)),d.percents[i]=l,d.lengths[i]=h}return d.addedLength=h,d};function r(t){this.segmentLength=0,this.points=new Array(t)}function i(t,e){this.partialLength=t,this.point=e}var s,o=(s={},function(t,n,o,a){var l=(t[0]+"_"+t[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]+"_"+a[0]+"_"+a[1]).replace(/\./g,"p");if(!s[l]){var A,c,h,u,p,d,f,g=getDefaultCurveSegments(),m=0,y=null;2===t.length&&(t[0]!==n[0]||t[1]!==n[1])&&e(t[0],t[1],n[0],n[1],t[0]+o[0],t[1]+o[1])&&e(t[0],t[1],n[0],n[1],n[0]+a[0],n[1]+a[1])&&(g=2);var v=new r(g);for(h=o.length,A=0;A<g;A+=1){for(f=createSizedArray(h),p=A/(g-1),d=0,c=0;c<h;c+=1)u=bmPow(1-p,3)*t[c]+3*bmPow(1-p,2)*p*(t[c]+o[c])+3*(1-p)*bmPow(p,2)*(n[c]+a[c])+bmPow(p,3)*n[c],f[c]=u,null!==y&&(d+=bmPow(f[c]-y[c],2));m+=d=bmSqrt(d),v.points[A]=new i(d,f),y=f}v.segmentLength=m,s[l]=v}return s[l]});function a(t,e){var n=e.percents,r=e.lengths,i=n.length,s=bmFloor((i-1)*t),o=t*e.addedLength,a=0;if(s===i-1||0===s||o===r[s])return n[s];for(var l=r[s]>o?-1:1,A=!0;A;)if(r[s]<=o&&r[s+1]>o?(a=(o-r[s])/(r[s+1]-r[s]),A=!1):s+=l,s<0||s>=i-1){if(s===i-1)return n[s];A=!1}return n[s]+(n[s+1]-n[s])*a}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segmentsLengthPool.newElement(),i=t.c,s=t.v,o=t.o,a=t.i,l=t._length,A=r.lengths,c=0;for(e=0;e<l-1;e+=1)A[e]=n(s[e],s[e+1],o[e],a[e+1]),c+=A[e].addedLength;return i&&l&&(A[e]=n(s[e],s[0],o[e],a[0]),c+=A[e].addedLength),r.totalLength=c,r},getNewSegment:function(e,n,r,i,s,o,A){s<0?s=0:s>1&&(s=1);var c,h=a(s,A),u=a(o=o>1?1:o,A),p=e.length,d=1-h,f=1-u,g=d*d*d,m=h*d*d*3,y=h*h*d*3,v=h*h*h,O=d*d*f,b=h*d*f+d*h*f+d*d*u,x=h*h*f+d*h*u+h*d*u,w=h*h*u,_=d*f*f,S=h*f*f+d*u*f+d*f*u,C=h*u*f+d*u*u+h*f*u,E=h*u*u,B=f*f*f,T=u*f*f+f*u*f+f*f*u,P=u*u*f+f*u*u+u*f*u,k=u*u*u;for(c=0;c<p;c+=1)l[4*c]=t.round(1e3*(g*e[c]+m*r[c]+y*i[c]+v*n[c]))/1e3,l[4*c+1]=t.round(1e3*(O*e[c]+b*r[c]+x*i[c]+w*n[c]))/1e3,l[4*c+2]=t.round(1e3*(_*e[c]+S*r[c]+C*i[c]+E*n[c]))/1e3,l[4*c+3]=t.round(1e3*(B*e[c]+T*r[c]+P*i[c]+k*n[c]))/1e3;return l},getPointInSegment:function(e,n,r,i,s,o){var l=a(s,o),A=1-l;return[t.round(1e3*(A*A*A*e[0]+(l*A*A+A*l*A+A*A*l)*r[0]+(l*l*A+A*l*l+l*A*l)*i[0]+l*l*l*n[0]))/1e3,t.round(1e3*(A*A*A*e[1]+(l*A*A+A*l*A+A*A*l)*r[1]+(l*l*A+A*l*l+l*A*l)*i[1]+l*l*l*n[1]))/1e3]},buildBezierData:o,pointOnLine2D:e,pointOnLine3D:function(n,r,i,s,o,a,l,A,c){if(0===i&&0===a&&0===c)return e(n,r,s,o,l,A);var h,u=t.sqrt(t.pow(s-n,2)+t.pow(o-r,2)+t.pow(a-i,2)),p=t.sqrt(t.pow(l-n,2)+t.pow(A-r,2)+t.pow(c-i,2)),d=t.sqrt(t.pow(l-s,2)+t.pow(A-o,2)+t.pow(c-a,2));return(h=u>p?u>d?u-p-d:d-p-u:d>p?d-p-u:p-u-d)>-1e-4&&h<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var n,r=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var i,s,o,a,l,A,c,h,u,p=e.lastIndex,d=p,f=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[d],s=this.keyframes[d+1],d===f-1&&t>=s.t-r){i.h&&(i=s),p=0;break}if(s.t-r>t){p=d;break}d<f-1?d+=1:(p=0,g=!1)}o=this.keyframesMetadata[d]||{};var m,y=s.t-r,v=i.t-r;if(i.to){o.bezierData||(o.bezierData=bez.buildBezierData(i.s,s.s||i.e,i.to,i.ti));var O=o.bezierData;if(t>=y||t<v){var b=t>=y?O.points.length-1:0;for(l=O.points[b].point.length,a=0;a<l;a+=1)n[a]=O.points[b].point[a]}else{o.__fnct?u=o.__fnct:(u=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,o.__fnct=u),A=u((t-v)/(y-v));var x,w=O.segmentLength*A,_=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastAddedLength:0;for(h=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastPoint:0,g=!0,c=O.points.length;g;){if(_+=O.points[h].partialLength,0===w||0===A||h===O.points.length-1){for(l=O.points[h].point.length,a=0;a<l;a+=1)n[a]=O.points[h].point[a];break}if(w>=_&&w<_+O.points[h+1].partialLength){for(x=(w-_)/O.points[h+1].partialLength,l=O.points[h].point.length,a=0;a<l;a+=1)n[a]=O.points[h].point[a]+(O.points[h+1].point[a]-O.points[h].point[a])*x;break}h<c-1?h+=1:g=!1}e._lastPoint=h,e._lastAddedLength=_-O.points[h].partialLength,e._lastKeyframeIndex=d}}else{var S,C,E,B,T;if(f=i.s.length,m=s.s||i.e,this.sh&&1!==i.h)t>=y?(n[0]=m[0],n[1]=m[1],n[2]=m[2]):t<=v?(n[0]=i.s[0],n[1]=i.s[1],n[2]=i.s[2]):quaternionToEuler(n,slerp(createQuaternion(i.s),createQuaternion(m),(t-v)/(y-v)));else for(d=0;d<f;d+=1)1!==i.h&&(t>=y?A=1:t<v?A=0:(i.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[d]?u=o.__fnct[d]:(S=void 0===i.o.x[d]?i.o.x[0]:i.o.x[d],C=void 0===i.o.y[d]?i.o.y[0]:i.o.y[d],E=void 0===i.i.x[d]?i.i.x[0]:i.i.x[d],B=void 0===i.i.y[d]?i.i.y[0]:i.i.y[d],u=BezierFactory.getBezierEasing(S,C,E,B).get,o.__fnct[d]=u)):o.__fnct?u=o.__fnct:(S=i.o.x,C=i.o.y,E=i.i.x,B=i.i.y,u=BezierFactory.getBezierEasing(S,C,E,B).get,i.keyframeMetadata=u),A=u((t-v)/(y-v)))),m=s.s||i.e,T=1===i.h?i.s[d]:i.s[d]+(m[d]-i.s[d])*A,"multidimensional"===this.propType?n[d]=T:n=T}return e.lastIndex=p,n}function slerp(t,e,n){var r,i,s,o,a,l=[],A=t[0],c=t[1],h=t[2],u=t[3],p=e[0],d=e[1],f=e[2],g=e[3];return(i=A*p+c*d+h*f+u*g)<0&&(i=-i,p=-p,d=-d,f=-f,g=-g),1-i>1e-6?(r=Math.acos(i),s=Math.sin(r),o=Math.sin((1-n)*r)/s,a=Math.sin(n*r)/s):(o=1-n,a=n),l[0]=o*A+a*p,l[1]=o*c+a*d,l[2]=o*h+a*f,l[3]=o*u+a*g,l}function quaternionToEuler(t,e){var n=e[0],r=e[1],i=e[2],s=e[3],o=Math.atan2(2*r*s-2*n*i,1-2*r*r-2*i*i),a=Math.asin(2*n*r+2*i*s),l=Math.atan2(2*n*s-2*r*i,1-2*n*n-2*i*i);t[0]=o/degToRads,t[1]=a/degToRads,t[2]=l/degToRads}function createQuaternion(t){var e=t[0]*degToRads,n=t[1]*degToRads,r=t[2]*degToRads,i=Math.cos(e/2),s=Math.cos(n/2),o=Math.cos(r/2),a=Math.sin(e/2),l=Math.sin(n/2),A=Math.sin(r/2);return[a*l*o+i*s*A,a*s*o+i*l*A,i*l*o-a*s*A,i*s*o-a*l*A]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&t>=n||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r}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 n=0,r=this.v.length;n<r;)e=t[n]*this.mult,mathAbs(this.v[n]-e)>1e-5&&(this.v[n]=e,this._mdf=!0),n+=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,n=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)n=this.effectsSequence[t](n);this.setVValue(n),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,n,r){this.propType="unidimensional",this.mult=n||1,this.data=e,this.v=n?e.k*n:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,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,n,r){var i;this.propType="multidimensional",this.mult=n||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s=e.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),i=0;i<s;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,n,r){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=n||1,this.elem=t,this.container=r,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,n,r){var i;this.propType="multidimensional";var s,o,a,l,A=e.k.length;for(i=0;i<A-1;i+=1)e.k[i].to&&e.k[i].s&&e.k[i+1]&&e.k[i+1].s&&(s=e.k[i].s,o=e.k[i+1].s,a=e.k[i].to,l=e.k[i].ti,(2===s.length&&(s[0]!==o[0]||s[1]!==o[1])&&bez.pointOnLine2D(s[0],s[1],o[0],o[1],s[0]+a[0],s[1]+a[1])&&bez.pointOnLine2D(s[0],s[1],o[0],o[1],o[0]+l[0],o[1]+l[1])||3===s.length&&(s[0]!==o[0]||s[1]!==o[1]||s[2]!==o[2])&&bez.pointOnLine3D(s[0],s[1],s[2],o[0],o[1],o[2],s[0]+a[0],s[1]+a[1],s[2]+a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],o[0],o[1],o[2],o[0]+l[0],o[1]+l[1],o[2]+l[2]))&&(e.k[i].to=null,e.k[i].ti=null),s[0]===o[0]&&s[1]===o[1]&&0===a[0]&&0===a[1]&&0===l[0]&&0===l[1]&&(2===s.length||s[2]===o[2]&&0===a[2]&&0===l[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=n||1,this.elem=t,this.container=r,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,n,r,i){var s;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])s=new MultiDimensionalProperty(t,e,r,i);else switch(n){case 0:s=new KeyframedValueProperty(t,e,r,i);break;case 1:s=new KeyframedMultidimensionalProperty(t,e,r,i)}else s=new ValueProperty(t,e,r,i);return s.effectsSequence.length&&i.addDynamicProperty(s),s}};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 n=0;n<e;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=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,n,r,i){var s;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[r]||s[r]&&!i)&&(s[r]=pointPool.newElement()),s[r][0]=t,s[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,n,r,i,s,o,a){this.setXYAt(t,e,"v",o,a),this.setXYAt(n,r,"o",o,a),this.setXYAt(i,s,"i",o,a)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,n=this.o,r=this.i,i=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var s,o=this._length-1,a=this._length;for(s=i;s<a;s+=1)t.setTripleAt(e[o][0],e[o][1],r[o][0],r[o][1],n[o][0],n[o][1],s,!1),o-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){var e,n=t._length;for(e=0;e<n;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,n=factory.newElement(),r=void 0===t._length?t.v.length:t._length;for(n.setLength(r),n.c=t.c,e=0;e<r;e+=1)n.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 n},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,n=t._length;for(e=0;e<n;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,n){var r,i,s,o,a,l,A,c,h,u=n.lastIndex,p=this.keyframes;if(t<p[0].t-this.offsetTime)r=p[0].s[0],s=!0,u=0;else if(t>=p[p.length-1].t-this.offsetTime)r=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],s=!0;else{for(var d,f,g,m=u,y=p.length-1,v=!0;v&&(d=p[m],!((f=p[m+1]).t-this.offsetTime>t));)m<y-1?m+=1:v=!1;if(g=this.keyframesMetadata[m]||{},u=m,!(s=1===d.h)){if(t>=f.t-this.offsetTime)c=1;else if(t<d.t-this.offsetTime)c=0;else{var O;g.__fnct?O=g.__fnct:(O=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,g.__fnct=O),c=O((t-(d.t-this.offsetTime))/(f.t-this.offsetTime-(d.t-this.offsetTime)))}i=f.s?f.s[0]:d.e[0]}r=d.s[0]}for(l=e._length,A=r.i[0].length,n.lastIndex=u,o=0;o<l;o+=1)for(a=0;a<A;a+=1)h=s?r.i[o][a]:r.i[o][a]+(i.i[o][a]-r.i[o][a])*c,e.i[o][a]=h,h=s?r.o[o][a]:r.o[o][a]+(i.o[o][a]-r.o[o][a])*c,e.o[o][a]=h,h=s?r.v[o][a]:r.v[o][a]+(i.v[o][a]-r.v[o][a])*c,e.v[o][a]=h}function n(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==t&&(i<n&&e<n||i>r&&e>r)||(this._caching.lastIndex=i<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function r(){this.paths=this.localShapeCollection}function i(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var n,r=t._length;for(n=0;n<r;n+=1)if(t.v[n][0]!==e.v[n][0]||t.v[n][1]!==e.v[n][1]||t.o[n][0]!==e.o[n][0]||t.o[n][1]!==e.o[n][1]||t.i[n][0]!==e.i[n][0]||t.i[n][1]!==e.i[n][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 s(){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 n=this.effectsSequence.length;for(e=0;e<n;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(t,e,n){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===n?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=r,this.effectsSequence=[]}function a(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,i,s){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===s?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=r,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[n.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=s,o.prototype.setVValue=i,o.prototype.addEffect=a,l.prototype.getValue=s,l.prototype.interpolateShape=e,l.prototype.setVValue=i,l.prototype.addEffect=a;var A=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:r,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],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,s=3!==this.d,o=this.v;o.v[0][0]=e,o.v[0][1]=n-i,o.v[1][0]=s?e+r:e-r,o.v[1][1]=n,o.v[2][0]=e,o.v[2][1]=n+i,o.v[3][0]=s?e-r:e+r,o.v[3][1]=n,o.i[0][0]=s?e-r*t:e+r*t,o.i[0][1]=n-i,o.i[1][0]=s?e+r:e-r,o.i[1][1]=n-i*t,o.i[2][0]=s?e+r*t:e-r*t,o.i[2][1]=n+i,o.i[3][0]=s?e-r:e+r,o.i[3][1]=n+i*t,o.o[0][0]=s?e+r*t:e-r*t,o.o[0][1]=n-i,o.o[1][0]=s?e+r:e-r,o.o[1][1]=n+i*t,o.o[2][0]=s?e-r*t:e+r*t,o.o[2][1]=n+i,o.o[3][0]=s?e-r:e+r,o.o[3][1]=n-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:r,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,n,r,i=2*Math.floor(this.pt.v),s=2*Math.PI/i,o=!0,a=this.or.v,l=this.ir.v,A=this.os.v,c=this.is.v,h=2*Math.PI*a/(2*i),u=2*Math.PI*l/(2*i),p=-Math.PI/2;p+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<i;t+=1){n=o?A:c,r=o?h:u;var f=(e=o?a:l)*Math.cos(p),g=e*Math.sin(p),m=0===f&&0===g?0:g/Math.sqrt(f*f+g*g),y=0===f&&0===g?0:-f/Math.sqrt(f*f+g*g);f+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(f,g,f-m*r*n*d,g-y*r*n*d,f+m*r*n*d,g+y*r*n*d,t,!0),o=!o,p+=s*d}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),n=2*Math.PI/e,r=this.or.v,i=this.os.v,s=2*Math.PI*r/(4*e),o=.5*-Math.PI,a=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=r*Math.cos(o),A=r*Math.sin(o),c=0===l&&0===A?0:A/Math.sqrt(l*l+A*A),h=0===l&&0===A?0:-l/Math.sqrt(l*l+A*A);l+=+this.p.v[0],A+=+this.p.v[1],this.v.setTripleAt(l,A,l-c*s*i*a,A-h*s*i*a,l+c*s*i*a,A+h*s*i*a,t,!0),o+=n*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],n=this.s.v[0]/2,r=this.s.v[1]/2,i=bmMin(n,r,this.r.v),s=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+n,e-r+i,t+n,e-r+i,t+n,e-r+s,0,!0),this.v.setTripleAt(t+n,e+r-i,t+n,e+r-s,t+n,e+r-i,1,!0),0!==i?(this.v.setTripleAt(t+n-i,e+r,t+n-i,e+r,t+n-s,e+r,2,!0),this.v.setTripleAt(t-n+i,e+r,t-n+s,e+r,t-n+i,e+r,3,!0),this.v.setTripleAt(t-n,e+r-i,t-n,e+r-i,t-n,e+r-s,4,!0),this.v.setTripleAt(t-n,e-r+i,t-n,e-r+s,t-n,e-r+i,5,!0),this.v.setTripleAt(t-n+i,e-r,t-n+i,e-r,t-n+s,e-r,6,!0),this.v.setTripleAt(t+n-i,e-r,t+n-s,e-r,t+n-i,e-r,7,!0)):(this.v.setTripleAt(t-n,e+r,t-n+s,e+r,t-n,e+r,2),this.v.setTripleAt(t-n,e-r,t-n,e-r+s,t-n,e-r,3))):(this.v.setTripleAt(t+n,e-r+i,t+n,e-r+s,t+n,e-r+i,0,!0),0!==i?(this.v.setTripleAt(t+n-i,e-r,t+n-i,e-r,t+n-s,e-r,1,!0),this.v.setTripleAt(t-n+i,e-r,t-n+s,e-r,t-n+i,e-r,2,!0),this.v.setTripleAt(t-n,e-r+i,t-n,e-r+i,t-n,e-r+s,3,!0),this.v.setTripleAt(t-n,e+r-i,t-n,e+r-s,t-n,e+r-i,4,!0),this.v.setTripleAt(t-n+i,e+r,t-n+i,e+r,t-n+s,e+r,5,!0),this.v.setTripleAt(t+n-i,e+r,t+n-s,e+r,t+n-i,e+r,6,!0),this.v.setTripleAt(t+n,e+r-i,t+n,e+r-i,t+n,e+r-s,7,!0)):(this.v.setTripleAt(t-n,e-r,t-n+s,e-r,t-n,e-r,1,!0),this.v.setTripleAt(t-n,e+r,t-n,e+r-s,t-n,e+r,2,!0),this.v.setTripleAt(t+n,e+r,t+n-s,e+r,t+n,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],t),t}();return{getShapeProp:function(t,e,n){var r;return 3===n||4===n?r=(3===n?e.pt:e.ks).k.length?new l(t,e,n):new o(t,e,n):5===n?r=new h(t,e):6===n?r=new A(t,e):7===n&&(r=new c(t,e)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}}}(),Matrix=function(){var t=Math.cos,e=Math.sin,n=Math.tan,r=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 s(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function o(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}function a(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function A(t,e){return this._t(1,e,t,1,0,0)}function c(t,e){return this.shear(n(t),n(e))}function h(r,i){var s=t(i),o=e(i);return this._t(s,o,0,0,-o,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(s,-o,0,0,o,s,0,0,0,0,1,0,0,0,0,1)}function u(t,e,n){return n||0===n||(n=1),1===t&&1===e&&1===n?this:this._t(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1)}function p(t,e,n,r,i,s,o,a,l,A,c,h,u,p,d,f){return this.props[0]=t,this.props[1]=e,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=s,this.props[6]=o,this.props[7]=a,this.props[8]=l,this.props[9]=A,this.props[10]=c,this.props[11]=h,this.props[12]=u,this.props[13]=p,this.props[14]=d,this.props[15]=f,this}function d(t,e,n){return n=n||0,0!==t||0!==e||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1):this}function f(t,e,n,r,i,s,o,a,l,A,c,h,u,p,d,f){var g=this.props;if(1===t&&0===e&&0===n&&0===r&&0===i&&1===s&&0===o&&0===a&&0===l&&0===A&&1===c&&0===h)return g[12]=g[12]*t+g[15]*u,g[13]=g[13]*s+g[15]*p,g[14]=g[14]*c+g[15]*d,g[15]*=f,this._identityCalculated=!1,this;var m=g[0],y=g[1],v=g[2],O=g[3],b=g[4],x=g[5],w=g[6],_=g[7],S=g[8],C=g[9],E=g[10],B=g[11],T=g[12],P=g[13],k=g[14],I=g[15];return g[0]=m*t+y*i+v*l+O*u,g[1]=m*e+y*s+v*A+O*p,g[2]=m*n+y*o+v*c+O*d,g[3]=m*r+y*a+v*h+O*f,g[4]=b*t+x*i+w*l+_*u,g[5]=b*e+x*s+w*A+_*p,g[6]=b*n+x*o+w*c+_*d,g[7]=b*r+x*a+w*h+_*f,g[8]=S*t+C*i+E*l+B*u,g[9]=S*e+C*s+E*A+B*p,g[10]=S*n+C*o+E*c+B*d,g[11]=S*r+C*a+E*h+B*f,g[12]=T*t+P*i+k*l+I*u,g[13]=T*e+P*s+k*A+I*p,g[14]=T*n+P*o+k*c+I*d,g[15]=T*r+P*a+k*h+I*f,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 O(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function b(t,e,n){return{x:t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}}function x(t,e,n){return t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12]}function w(t,e,n){return t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13]}function _(t,e,n){return t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}function S(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,n=-this.props[1]/t,r=-this.props[4]/t,i=this.props[0]/t,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,a=new Matrix;return a.props[0]=e,a.props[1]=n,a.props[4]=r,a.props[5]=i,a.props[12]=s,a.props[13]=o,a}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function E(t){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r[e]=C(t[e]);return r}function B(t,e,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=t[0],r[1]=t[1],r[2]=e[0],r[3]=e[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],s=this.props[1],o=this.props[4],a=this.props[5],l=this.props[12],A=this.props[13];r[0]=t[0]*i+t[1]*o+l,r[1]=t[0]*s+t[1]*a+A,r[2]=e[0]*i+e[1]*o+l,r[3]=e[0]*s+e[1]*a+A,r[4]=n[0]*i+n[1]*o+l,r[5]=n[0]*s+n[1]*a+A}return r}function T(t,e,n){return this.isIdentity()?[t,e,n]:[t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]]}function P(t,e){if(this.isIdentity())return t+","+e;var n=this.props;return Math.round(100*(t*n[0]+e*n[4]+n[12]))/100+","+Math.round(100*(t*n[1]+e*n[5]+n[13]))/100}function k(){for(var t=0,e=this.props,n="matrix3d(";t<16;)n+=r(1e4*e[t])/1e4,n+=15===t?")":",",t+=1;return n}function I(t){return t<1e-6&&t>0||t>-1e-6&&t<0?r(1e4*t)/1e4:t}function N(){var t=this.props;return"matrix("+I(t[0])+","+I(t[1])+","+I(t[4])+","+I(t[5])+","+I(t[12])+","+I(t[13])+")"}return function(){this.reset=i,this.rotate=s,this.rotateX=o,this.rotateY=a,this.rotateZ=l,this.skew=c,this.skewFromAxis=h,this.shear=A,this.scale=u,this.setTransform=p,this.translate=d,this.transform=f,this.multiply=g,this.applyToPoint=b,this.applyToX=x,this.applyToY=w,this.applyToZ=_,this.applyToPointArray=T,this.applyToTriplePoints=B,this.applyToPointStringified=P,this.toCSS=k,this.to2dCSS=N,this.clone=v,this.cloneFromProps=O,this.equals=y,this.inversePoints=E,this.inversePoint=C,this.getInverseMatrix=S,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("&"),n=0;n<e.length;n+=1){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[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,n){e[t]||(e[t]=n)},t.getModifier=function(t,n,r){return new e[t](n,r)},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,n,r,i){var s=[];e<=1?s.push({s:t,e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var o,a,l=[],A=s.length;for(o=0;o<A;o+=1){var c,h;(a=s[o]).e*i<r||a.s*i>r+n||(c=a.s*i<=r?0:(a.s*i-r)/n,h=a.e*i>=r+n?1:(a.e*i-r)/n,l.push([c,h]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,n=t.length;for(e=0;e<n;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,n,r,i;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(n=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var o=e;e=n,n=o}e=1e-4*Math.round(1e4*e),n=1e-4*Math.round(1e4*n),this.sValue=e,this.eValue=n}else e=this.sValue,n=this.eValue;var a,l,A,c,h,u=this.shapes.length,p=0;if(n===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===n&&0===e||0===n&&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 d,f,g=[];for(i=0;i<u;i+=1)if((d=this.shapes[i]).shape._mdf||this._mdf||t||2===this.m){if(l=(r=d.shape.paths)._length,h=0,!d.shape._mdf&&d.pathsData.length)h=d.totalShapeLength;else{for(A=this.releasePathsData(d.pathsData),a=0;a<l;a+=1)c=bez.getSegmentsLength(r.shapes[a]),A.push(c),h+=c.totalLength;d.totalShapeLength=h,d.pathsData=A}p+=h,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var m,y=e,v=n,O=0;for(i=u-1;i>=0;i-=1)if((d=this.shapes[i]).shape._mdf){for((f=d.localShapeCollection).releaseShapes(),2===this.m&&u>1?(m=this.calculateShapeEdges(e,n,d.totalShapeLength,O,p),O+=d.totalShapeLength):m=[[y,v]],l=m.length,a=0;a<l;a+=1){y=m[a][0],v=m[a][1],g.length=0,v<=1?g.push({s:d.totalShapeLength*y,e:d.totalShapeLength*v}):y>=1?g.push({s:d.totalShapeLength*(y-1),e:d.totalShapeLength*(v-1)}):(g.push({s:d.totalShapeLength*y,e:d.totalShapeLength}),g.push({s:0,e:d.totalShapeLength*(v-1)}));var b=this.addShapes(d,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var x=b.pop();this.addPaths(b,f),b=this.addShapes(d,g[1],x)}else this.addPaths(b,f),b=this.addShapes(d,g[1]);this.addPaths(b,f)}}d.shape.paths=f}}},TrimModifier.prototype.addPaths=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)e.addShape(t[n])},TrimModifier.prototype.addSegment=function(t,e,n,r,i,s,o){i.setXYAt(e[0],e[1],"o",s),i.setXYAt(n[0],n[1],"i",s+1),o&&i.setXYAt(t[0],t[1],"v",s),i.setXYAt(r[0],r[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,n,r){e.setXYAt(t[1],t[5],"o",n),e.setXYAt(t[2],t[6],"i",n+1),r&&e.setXYAt(t[0],t[4],"v",n),e.setXYAt(t[3],t[7],"v",n+1)},TrimModifier.prototype.addShapes=function(t,e,n){var r,i,s,o,a,l,A,c,h=t.pathsData,u=t.shape.paths.shapes,p=t.shape.paths._length,d=0,f=[],g=!0;for(n?(a=n._length,c=n._length):(n=shapePool.newElement(),a=0,c=0),f.push(n),r=0;r<p;r+=1){for(l=h[r].lengths,n.c=u[r].c,s=u[r].c?l.length:l.length+1,i=1;i<s;i+=1)if(d+(o=l[i-1]).addedLength<e.s)d+=o.addedLength,n.c=!1;else{if(d>e.e){n.c=!1;break}e.s<=d&&e.e>=d+o.addedLength?(this.addSegment(u[r].v[i-1],u[r].o[i-1],u[r].i[i],u[r].v[i],n,a,g),g=!1):(A=bez.getNewSegment(u[r].v[i-1],u[r].v[i],u[r].o[i-1],u[r].i[i],(e.s-d)/o.addedLength,(e.e-d)/o.addedLength,l[i-1]),this.addSegmentFromArray(A,n,a,g),g=!1,n.c=!1),d+=o.addedLength,a+=1}if(u[r].c&&l.length){if(o=l[i-1],d<=e.e){var m=l[i-1].addedLength;e.s<=d&&e.e>=d+m?(this.addSegment(u[r].v[i-1],u[r].o[i-1],u[r].i[0],u[r].v[0],n,a,g),g=!1):(A=bez.getNewSegment(u[r].v[i-1],u[r].v[0],u[r].o[i-1],u[r].i[0],(e.s-d)/m,(e.e-d)/m,l[i-1]),this.addSegmentFromArray(A,n,a,g),g=!1,n.c=!1)}else n.c=!1;d+=o.addedLength,a+=1}if(n._length&&(n.setXYAt(n.v[c][0],n.v[c][1],"i",c),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),d>e.e)break;r<p-1&&(n=shapePool.newElement(),g=!0,f.push(n),a=0)}return f},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 n=e/100,r=[0,0],i=t._length,s=0;for(s=0;s<i;s+=1)r[0]+=t.v[s][0],r[1]+=t.v[s][1];r[0]/=i,r[1]/=i;var o,a,l,A,c,h,u=shapePool.newElement();for(u.c=t.c,s=0;s<i;s+=1)o=t.v[s][0]+(r[0]-t.v[s][0])*n,a=t.v[s][1]+(r[1]-t.v[s][1])*n,l=t.o[s][0]+(r[0]-t.o[s][0])*-n,A=t.o[s][1]+(r[1]-t.o[s][1])*-n,c=t.i[s][0]+(r[0]-t.i[s][0])*-n,h=t.i[s][1]+(r[1]-t.i[s][1])*-n,u.setTripleAt(o,a,l,A,c,h,s);return u},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,n,r,i,s,o,a=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<a;n+=1){if(o=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,i=s.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(e[r],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,n){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(n||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 r,i=e.or.k.length;for(r=0;r<i;r+=1)e.or.k[r].to=null,e.or.k[r].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 n;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 r,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var s=this.px,o=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(r[0]=s.getValueAtTime((s.keyframes[0].t+.01)/n,0),r[1]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),i[0]=s.getValueAtTime(s.keyframes[0].t/n,0),i[1]=o.getValueAtTime(o.keyframes[0].t/n,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(r[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/n,0),r[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),i[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/n,0),i[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0)):(r=[s.pv,o.pv],i[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/n,s.offsetTime),i[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime))}else r=i=t;this.v.rotate(-Math.atan2(r[1]-i[1],r[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,n,r){return new e(t,n,r)}}}();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,n){return t*(1-n)+e*n}function lerpPoint(t,e,n){return[lerp(t[0],e[0],n),lerp(t[1],e[1],n)]}function quadRoots(t,e,n){if(0===t)return[];var r=e*e-4*t*n;if(r<0)return[];var i=-e/(2*t);if(0===r)return[i];var s=Math.sqrt(r)/(2*t);return[i-s,i+s]}function polynomialCoefficients(t,e,n,r){return[3*e-t-3*n+r,3*t-6*e+3*n,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,n,r,i){i&&pointEqual(t,e)&&(e=lerpPoint(t,r,1/3)),i&&pointEqual(n,r)&&(n=lerpPoint(t,r,2/3));var s=polynomialCoefficients(t[0],e[0],n[0],r[0]),o=polynomialCoefficients(t[1],e[1],n[1],r[1]);this.a=[s[0],o[0]],this.b=[s[1],o[1]],this.c=[s[2],o[2]],this.d=[s[3],o[3]],this.points=[t,e,n,r]}function extrema(t,e){var n=t.points[0][e],r=t.points[t.points.length-1][e];if(n>r){var i=r;r=n,n=i}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<s.length;o+=1)if(s[o]>0&&s[o]<1){var a=t.point(s[o])[e];a<n?n=a:a>r&&(r=a)}return{min:n,max:r}}function intersectData(t,e,n){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+n)/2,t1:e,t2:n}}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,n,r,i,s){if(boxIntersect(t,e))if(n>=s||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r)i.push([t.t,e.t]);else{var o=splitData(t),a=splitData(e);intersectsImpl(o[0],a[0],n+1,r,i,s),intersectsImpl(o[0],a[1],n+1,r,i,s),intersectsImpl(o[1],a[0],n+1,r,i,s),intersectsImpl(o[1],a[1],n+1,r,i,s)}}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,n,r){var i=[t[0],t[1],1],s=[e[0],e[1],1],o=[n[0],n[1],1],a=[r[0],r[1],1],l=crossProduct(crossProduct(i,s),crossProduct(o,a));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,n){return[t[0]+Math.cos(e)*n,t[1]-Math.sin(e)*n]}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,n,r,i,s,o){var a=n-Math.PI/2,l=n+Math.PI/2,A=e[0]+Math.cos(n)*r*i,c=e[1]-Math.sin(n)*r*i;t.setTripleAt(A,c,A+Math.cos(a)*s,c-Math.sin(a)*s,A+Math.cos(l)*o,c-Math.sin(l)*o,t.length())}function getPerpendicularVector(t,e){var n=[e[0]-t[0],e[1]-t[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function getProjectingAngle(t,e){var n=0===e?t.length()-1:e-1,r=(e+1)%t.length(),i=getPerpendicularVector(t.v[n],t.v[r]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(t,e,n,r,i,s,o){var a=getProjectingAngle(e,n),l=e.v[n%e._length],A=e.v[0===n?e._length-1:n-1],c=e.v[(n+1)%e._length],h=2===s?Math.sqrt(Math.pow(l[0]-A[0],2)+Math.pow(l[1]-A[1],2)):0,u=2===s?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[n%e._length],a,o,r,u/(2*(i+1)),h/(2*(i+1)),s)}function zigZagSegment(t,e,n,r,i,s){for(var o=0;o<r;o+=1){var a=(o+1)/(r+1),l=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,A=e.normalAngle(a);setPoint(t,e.point(a),A,s,n,l/(2*(r+1)),l/(2*(r+1)),i),s=-s}return s}function linearOffset(t,e,n){var r=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,r,n),polarOffset(e,r,n)]}function offsetSegment(t,e){var n,r,i,s,o,a,l;n=(l=linearOffset(t.points[0],t.points[1],e))[0],r=l[1],i=(l=linearOffset(t.points[1],t.points[2],e))[0],s=l[1],o=(l=linearOffset(t.points[2],t.points[3],e))[0],a=l[1];var A=lineIntersection(n,r,i,s);null===A&&(A=r);var c=lineIntersection(o,a,i,s);return null===c&&(c=o),new PolynomialBezier(n,A,c,a)}function joinLines(t,e,n,r,i){var s=e.points[3],o=n.points[0];if(3===r)return s;if(pointEqual(s,o))return s;if(2===r){var a=-e.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,A=lineIntersection(s,polarOffset(s,a+Math.PI/2,100),o,polarOffset(o,a+Math.PI/2,100)),c=A?pointDistance(A,s):pointDistance(s,o)/2,h=polarOffset(s,a,2*c*roundCorner);return t.setXYAt(h[0],h[1],"o",t.length()-1),h=polarOffset(o,l,2*c*roundCorner),t.setTripleAt(o[0],o[1],o[0],o[1],h[0],h[1],t.length()),o}var u=lineIntersection(pointEqual(s,e.points[2])?e.points[0]:e.points[2],s,o,pointEqual(o,n.points[1])?n.points[3]:n.points[1]);return u&&pointDistance(u,s)<i?(t.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],t.length()),u):s}function getIntersection(t,e){var n=t.intersections(e);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(t,e){var n=t.slice(),r=e.slice(),i=getIntersection(t[t.length-1],e[0]);return i&&(n[t.length-1]=t[t.length-1].split(i[0])[0],r[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]]]:[n,r]}function pruneIntersections(t){for(var e,n=1;n<t.length;n+=1)e=pruneSegmentIntersection(t[n-1],t[n]),t[n-1]=e[0],t[n]=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 n,r,i,s,o=t.inflectionPoints();if(0===o.length)return[offsetSegment(t,e)];if(1===o.length||floatEqual(o[1],1))return n=(i=t.split(o[0]))[0],r=i[1],[offsetSegment(n,e),offsetSegment(r,e)];n=(i=t.split(o[0]))[0];var a=(o[1]-o[0])/(1-o[0]);return s=(i=i[1].split(a))[0],r=i[1],[offsetSegment(n,e),offsetSegment(s,e),offsetSegment(r,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],n="normal",r="normal",i=e.length,s=0;s<i;s+=1)switch(e[s].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:t.fWeight||n}}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,n,r,i,s){var o=s?-1:1,a=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);t.translate(r.p.v[0]*o*i,r.p.v[1]*o*i,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*o*i),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(s?1/a:a,s?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,n,r){for(this.elem=t,this.arr=e,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[n]);n>0;)n-=1,this._elements.unshift(e[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,n=t.length;for(e=0;e<n;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 n,r=t.length;for(n=0;n<r;n+=1)t[n]._render=e,"gr"===t[n].ty&&this.changeGroupRender(t[n].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,n,r,i,s,o=!1;if(this._mdf||t){var a,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var A={it:this.cloneElements(this._elements),ty:"gr"};A.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,A),this._groups.splice(0,0,A),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(s=0,r=0;r<=this._groups.length-1;r+=1){if(a=s<l,this._groups[r]._render=a,this.changeGroupRender(this._groups[r].it,a),!a){var c=this.elemsData[r].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}s+=1}this._currentCopies=l;var u=this.o.v,p=u%1,d=u>0?Math.floor(u):Math.ceil(u),f=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,O=0;if(u>0){for(;O<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),O+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),O+=p)}else if(u<0){for(;O>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),O-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),O-=p)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,s=this._currentCopies;s;){if(v=(n=(e=this.elemsData[r].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)*(r/(this._currentCopies-1)),0!==O){for((0!==r&&1===i||r!==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(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),y=0;y<v;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<v;y+=1)n[y]=this.matrix.props[y];O+=1,s-=1,r+=i}}else for(s=this._currentCopies,r=0,i=1;s;)n=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,r+=i;return o},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 n,r=shapePool.newElement();r.c=t.c;var i,s,o,a,l,A,c,h,u,p,d,f,g=t._length,m=0;for(n=0;n<g;n+=1)i=t.v[n],o=t.o[n],s=t.i[n],i[0]===o[0]&&i[1]===o[1]&&i[0]===s[0]&&i[1]===s[1]?0!==n&&n!==g-1||t.c?(a=0===n?t.v[g-1]:t.v[n-1],A=(l=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(l/2,e)/l:0,c=d=i[0]+(a[0]-i[0])*A,h=f=i[1]-(i[1]-a[1])*A,u=c-(c-i[0])*roundCorner,p=h-(h-i[1])*roundCorner,r.setTripleAt(c,h,u,p,d,f,m),m+=1,a=n===g-1?t.v[0]:t.v[n+1],A=(l=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(l/2,e)/l:0,c=u=i[0]+(a[0]-i[0])*A,h=p=i[1]+(a[1]-i[1])*A,d=c-(c-i[0])*roundCorner,f=h-(h-i[1])*roundCorner,r.setTripleAt(c,h,u,p,d,f,m),m+=1):(r.setTripleAt(i[0],i[1],o[0],o[1],s[0],s[1],m),m+=1):(r.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],m),m+=1);return r},RoundCornersModifier.prototype.processShapes=function(t){var e,n,r,i,s,o,a=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<a;n+=1){if(o=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,i=s.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(e[r],l));s.shape.paths=s.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,n=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[e]:[]:[e-r,e+r].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),n=lerpPoint(this.points[1],this.points[2],t),r=lerpPoint(this.points[2],this.points[3],t),i=lerpPoint(e,n,t),s=lerpPoint(n,r,t),o=lerpPoint(i,s,t);return[new PolynomialBezier(this.points[0],e,i,o,!0),new PolynomialBezier(o,s,r,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,n){void 0===e&&(e=2),void 0===n&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,n),r},PolynomialBezier.shapeSegment=function(t,e){var n=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[n],t.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var n=(e+1)%t.length();return new PolynomialBezier(t.v[n],t.i[n],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,n,r){var i=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(i-=1),0===i)return s;var o=-1,a=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,n,r,o);for(var l=0;l<i;l+=1)o=zigZagSegment(s,a,e,n,r,-o),a=l!==i-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%i):null,zigZagCorner(s,t,l+1,e,n,r,o);return s},ZigZagModifier.prototype.processShapes=function(t){var e,n,r,i,s,o,a=this.shapes.length,l=this.amplitude.v,A=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(n=0;n<a;n+=1){if(o=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,i=s.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(e[r],l,A,c));s.shape.paths=s.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,n,r){var i=shapePool.newElement();i.c=t.c;var s,o,a,l=t.length();t.c||(l-=1);var A=[];for(s=0;s<l;s+=1)a=PolynomialBezier.shapeSegment(t,s),A.push(offsetSegmentSplit(a,e));if(!t.c)for(s=l-1;s>=0;s-=1)a=PolynomialBezier.shapeSegmentInverted(t,s),A.push(offsetSegmentSplit(a,e));A=pruneIntersections(A);var c=null,h=null;for(s=0;s<A.length;s+=1){var u=A[s];for(h&&(c=joinLines(i,h,u[0],n,r)),h=u[u.length-1],o=0;o<u.length;o+=1)a=u[o],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 A.length&&joinLines(i,h,A[0][0],n,r),i},OffsetPathModifier.prototype.processShapes=function(t){var e,n,r,i,s,o,a=this.shapes.length,l=this.amount.v,A=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(n=0;n<a;n+=1){if(o=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,i=s.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(e[r],l,c,A));s.shape.paths=s.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 n=127988,r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function i(t,e){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=e;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=function(t){var e,n=t.split(","),r=n.length,i=[];for(e=0;e<r;e+=1)"sans-serif"!==n[e]&&"monospace"!==n[e]&&i.push(n[e]);return i.join(",")}(t)+", "+e,{node:r,w:i,parent:n}}function s(t,e){var n,r=document.body&&e?"svg":"canvas",i=getFontProperties(t);if("svg"===r){var s=createNS("text");s.style.fontSize="100px",s.setAttribute("font-family",t.fFamily),s.setAttribute("font-style",i.style),s.setAttribute("font-weight",i.weight),s.textContent="1",t.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",t.fClass)):s.style.fontFamily=t.fFamily,e.appendChild(s),n=s}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=i.style+" "+i.weight+" 100px "+t.fFamily,n=o}return{measureText:function(t){return"svg"===r?(n.textContent=t,n.getComputedTextLength()):n.measureText(t).width}}}function o(t){var e=0,n=t.charCodeAt(0);if(n>=55296&&n<=56319){var r=t.charCodeAt(1);r>=56320&&r<=57343&&(e=1024*(n-55296)+r-56320+65536)}return e}function a(t){var e=o(t);return e>=127462&&e<=127487}var l=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)};l.isModifier=function(t,e){var n=t.toString(16)+e.toString(16);return-1!==r.indexOf(n)},l.isZeroWidthJoiner=function(t){return 8205===t},l.isFlagEmoji=function(t){return a(t.substr(0,2))&&a(t.substr(2,2))},l.isRegionalCode=a,l.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},l.isRegionalFlag=function(t,e){var r=o(t.substr(e,2));if(r!==n)return!1;var i=0;for(e+=2;i<5;){if((r=o(t.substr(e,2)))<917601||r>917626)return!1;i+=1,e+=2}return 917631===o(t.substr(e,2))},l.isVariationSelector=function(t){return 65039===t},l.BLACK_FLAG_CODE_POINT=n;var A={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var n,r,i=t.length,s=this.chars.length;for(e=0;e<i;e+=1){for(n=0,r=!1;n<s;)this.chars[n].style===t[e].style&&this.chars[n].fFamily===t[e].fFamily&&this.chars[n].ch===t[e].ch&&(r=!0),n+=1;r||(this.chars.push(t[e]),s+=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=s(t),t.cache={}}),void(this.fonts=t.list);var n,r=t.list,o=r.length,a=o;for(n=0;n<o;n+=1){var l,A,c=!0;if(r[n].loaded=!1,r[n].monoCase=i(r[n].fFamily,"monospace"),r[n].sansCase=i(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(c=!1),c){var h=createTag("style");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.setAttribute("f-family",r[n].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",e.appendChild(h)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),A=0;A<l.length;A+=1)-1!==l[A].href.indexOf(r[n].fPath)&&(c=!1);if(c){var u=createTag("link");u.setAttribute("f-forigin",r[n].fOrigin),u.setAttribute("f-origin",r[n].origin),u.type="text/css",u.rel="stylesheet",u.href=r[n].fPath,document.body.appendChild(u)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),A=0;A<l.length;A+=1)r[n].fPath===l[A].src&&(c=!1);if(c){var p=createTag("link");p.setAttribute("f-forigin",r[n].fOrigin),p.setAttribute("f-origin",r[n].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",r[n].fPath),e.appendChild(p)}}}else r[n].loaded=!0,a-=1;r[n].helper=s(r[n],e),r[n].cache={},this.fonts.push(r[n])}0===a?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,n,r){for(var i=0,s=this.chars.length;i<s;){if(this.chars[i].ch===e&&this.chars[i].style===n&&this.chars[i].fFamily===r)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,n,r)),t},getFontByName:function(t){for(var e=0,n=this.fonts.length;e<n;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,n){var r=this.getFontByName(e),i=t;if(!r.cache[i]){var s=r.helper;if(" "===t){var o=s.measureText("|"+t+"|"),a=s.measureText("||");r.cache[i]=(o-a)/100}else r.cache[i]=s.measureText(t)/100}return r.cache[i]*n},checkLoadedFonts:function(){var t,e,n,r=this.fonts.length,i=r;for(t=0;t<r;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,n=this.fonts[t].monoCase.w,e.offsetWidth!==n?(i-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,n=this.fonts[t].sansCase.w,e.offsetWidth!==n&&(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 l.prototype=A,l}();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,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function AngleEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function ColorEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,1,0,n)}function PointEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,1,0,n)}function LayerIndexEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function MaskIndexEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function CheckboxEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var n,r=t.ef||[];this.effectElements=[];var i,s=r.length;for(n=0;n<s;n+=1)i=new GroupEffect(r[n],e),this.effectElements.push(i)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,n)}function AudioElement(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),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 n;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,i=this.data.ef.length,s=this.data.ef;for(n=0;n<i;n+=1){switch(r=null,s[n].ty){case 0:r=new SliderEffect(s[n],e,this);break;case 1:r=new AngleEffect(s[n],e,this);break;case 2:r=new ColorEffect(s[n],e,this);break;case 3:r=new PointEffect(s[n],e,this);break;case 4:case 7:r=new CheckboxEffect(s[n],e,this);break;case 10:r=new LayerIndexEffect(s[n],e,this);break;case 11:r=new MaskIndexEffect(s[n],e,this);break;case 5:r=new EffectsManager(s[n],e,this);break;default:r=new NoValueEffect(s[n],e,this)}r&&this.effectElements.push(r)}},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"),n=t("effects"),r=t("shape"),i=t("text"),s=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),0===this.data.ty||this.data.xt?this.compInterface=s(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(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,n){this.globalData=e,this.comp=n,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 n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(e||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._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 n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},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,n,r=this.layers.length;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(n=this.layers[e]).ip-n.st<=t-this.layers[e].st&&n.op-n.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 n,r=t.length,i=this.layers.length;for(e=0;e<r;e+=1)for(n=0;n<i;){if(this.layers[n].id===t[e].id){this.layers[n]=t[e];break}n+=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,n){for(var r=this.elements,i=this.layers,s=0,o=i.length;s<o;)i[s].ind==e&&(r[s]&&!0!==r[s]?(n.push(r[s]),r[s].setAsParent(),void 0!==i[s].parent?this.buildElementParenting(t,i[s].parent,n):t.setHierarchy(n)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,n=t.length;for(e=0;e<n;e+=1)if(t[e].xt){var r=this.createComp(t[e]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(t){var e,n=this.elements.length;for(e=0;e<n;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,n=t.shift();if("number"==typeof n)e=this.elements[n];else{var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===n){e=this.elements[r];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,n){this.data=t,this.element=e,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,i,s=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var a,l,A,c,h,u,p=this.masksProperties,d=0,f=[],g=createElementID(),m="clipPath",y="clip-path";for(r=0;r<o;r+=1)if(("a"!==p[r].mode&&"n"!==p[r].mode||p[r].inv||100!==p[r].o.k||p[r].o.x)&&(m="mask",y="mask"),"s"!==p[r].mode&&"i"!==p[r].mode||0!==d?A=null:((A=createNS("rect")).setAttribute("fill","#ffffff"),A.setAttribute("width",this.element.comp.data.w||0),A.setAttribute("height",this.element.comp.data.h||0),f.push(A)),i=createNS("path"),"n"===p[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),elem:i,lastPath:""},s.appendChild(i);else{var v;if(d+=1,i.setAttribute("fill","s"===p[r].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==p[r].x.k?(m="mask",y="mask",u=PropertyFactory.getProp(this.element,p[r].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),s.appendChild(c),i.setAttribute("stroke","s"===p[r].mode?"#000000":"#ffffff")):(h=null,u=null),this.storedData[r]={elem:i,x:u,expan:h,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===p[r].mode){l=f.length;var O=createNS("g");for(a=0;a<l;a+=1)O.appendChild(f[a]);var b=createNS("mask");b.setAttribute("mask-type","alpha"),b.setAttribute("id",g+"_"+d),b.appendChild(i),s.appendChild(b),O.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+d+")"),f.length=0,f.push(O)}else f.push(i);p[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),invRect:A},this.viewData[r].prop.k||this.drawPath(p[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(m),o=f.length,r=0;r<o;r+=1)this.maskElement.appendChild(f[r]);d>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),s.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,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),n=0;n<r;n+=1)e.multiply(this.hierarchy[n].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 n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),t=1;t<e;t+=1){var r=this.localTransforms[t].matrix;n.multiply(r)}n.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,n=t.length;for(e=0;e<n;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var n,r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&e.splice(0,0,i.finalTransform),i=i.comp):r=!1;var s,o=e.length;for(n=0;n<o;n+=1)s=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(e=0;e<r;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",n.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,n){var r,i,s=" M"+e.v[0][0]+","+e.v[0][1];for(i=e._length,r=1;r<i;r+=1)s+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[r][0]+","+e.i[r][1]+" "+e.v[r][0]+","+e.v[r][1];if(e.c&&i>1&&(s+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),n.lastPath!==s){var o="";n.elem&&(e.c&&(o=t.inv?this.solidPath+s:s),n.elem.setAttribute("d",o)),n.lastPath=s}},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 n=createNS("filter");return n.setAttribute("id",t),!0!==e&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},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,n,r="SourceGraphic",i=t.data.ef?t.data.ef.length:0,s=createElementID(),o=filtersFactory.createFilter(s,!0),a=0;for(this.filters=[],e=0;e<i;e+=1){n=null;var l=t.data.ef[e].ty;registeredEffects$1[l]&&(n=new(0,registeredEffects$1[l].effect)(o,t.effectsManager.effectElements[e],t,idPrefix+a,r),r=idPrefix+a,registeredEffects$1[l].countsAsEffect&&(a+=1)),n&&this.filters.push(n)}a&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,n){registeredEffects$1[t]={effect:e,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,n),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,n=this.filters.length;for(e=0;e<n;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,n=this.filters.length,r=[];for(e=0;e<n;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r},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 n=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(n.setAttribute("id",i),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),s.appendChild(this.layerElement),this.transformedElement=s,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,n,r,i,s=this.layerId+"_"+t;if(1===t||3===t){var o=createNS("mask");o.setAttribute("id",s),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(r),this.globalData.defs.appendChild(o),featureSupport.maskType||1!==t||(o.setAttribute("mask-type","luminance"),e=createElementID(),n=filtersFactory.createFilter(e),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(r),o.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var a=createNS("mask");a.setAttribute("id",s),a.setAttribute("mask-type","alpha");var l=createNS("g");a.appendChild(l),e=createElementID(),n=filtersFactory.createFilter(e);var A=createNS("feComponentTransfer");A.setAttribute("in","SourceGraphic"),n.appendChild(A);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),A.appendChild(c),this.globalData.defs.appendChild(n);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"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(h),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(a.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),l.appendChild(h),i.appendChild(this.layerElement),l.appendChild(i)),this.globalData.defs.appendChild(a)}this.matteMasks[t]=s}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,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),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,n=this.shapeModifiers.length;for(e=0;e<n;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,n=0,r=e.length;n<r;){if(e[n].elem===t)return e[n].pos;n+=1}return 0},addProcessedElement:function(t,e){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===t)return void(n[r].pos=e);n.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,n){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=n,this.lvl=e,this._isAnimated=!!n.k;for(var r=0,i=t.length;r<i;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=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,n,r){var i;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var s,o=e.length||0;for(i=0;i<o;i+=1)s=PropertyFactory.getProp(t,e[i].v,0,0,this),this.k=s.k||this.k,this.dataProps[i]={n:e[i].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,n){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=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,n){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=n}function SVGNoStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(t,e,n){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var r=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",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,n)}function SVGGradientStrokeStyleData(t,e,n){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,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,n){this.transform={mProps:t,op:e,container:n},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,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<n;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 n=0,r=this.o.length/2;n<r;){if(Math.abs(t[4*n]-t[4*e+2*n])>.01)return!1;n+=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,n,r,i=4*this.data.p;for(e=0;e<i;e+=1)n=e%4==0?100:255,r=Math.round(this.prop.v[e]*n),this.c[e]!==r&&(this.c[e]=r,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,e=4*this.data.p;e<i;e+=1)n=e%2==0?100:1,r=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==r&&(this.o[e-4*this.data.p]=r,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,n){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=n,this.stops=[],this.setGradientData(n.pElem,e),this.setGradientOpacity(e,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var n=createElementID(),r=createNS(1===e.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i,s,o,a=[];for(o=4*e.g.p,s=0;s<o;s+=4)i=createNS("stop"),r.appendChild(i),a.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,s=createNS("mask"),o=createNS("path");s.appendChild(o);var a=createElementID(),l=createElementID();s.setAttribute("id",l);var A=createNS(1===t.t?"linearGradient":"radialGradient");A.setAttribute("id",a),A.setAttribute("spreadMethod","pad"),A.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(r=4*t.g.p;r<i;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),A.appendChild(n),c.push(n);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=A,this.ms=s,this.ost=c,this.maskId=l,e.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,n,r){if(0===e)return"";var i,s=t.o,o=t.i,a=t.v,l=" M"+r.applyToPointStringified(a[0][0],a[0][1]);for(i=1;i<e;i+=1)l+=" C"+r.applyToPointStringified(s[i-1][0],s[i-1][1])+" "+r.applyToPointStringified(o[i][0],o[i][1])+" "+r.applyToPointStringified(a[i][0],a[i][1]);return n&&e&&(l+=" C"+r.applyToPointStringified(s[i-1][0],s[i-1][1])+" "+r.applyToPointStringified(o[0][0],o[0][1])+" "+r.applyToPointStringified(a[0][0],a[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function n(t,e,n){(n||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(n||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function r(){}function i(n,r,i){var s,o,a,l,A,c,h,u,p,d,f=r.styles.length,g=r.lvl;for(c=0;c<f;c+=1){if(l=r.sh._mdf||i,r.styles[c].lvl<g){for(u=e.reset(),p=g-r.styles[c].lvl,d=r.transformers.length-1;!l&&p>0;)l=r.transformers[d].mProps._mdf||l,p-=1,d-=1;if(l)for(p=g-r.styles[c].lvl,d=r.transformers.length-1;p>0;)u.multiply(r.transformers[d].mProps.v),p-=1,d-=1}else u=t;if(o=(h=r.sh.paths)._length,l){for(a="",s=0;s<o;s+=1)(A=h.shapes[s])&&A._length&&(a+=buildShapeString(A,A._length,A.c,u));r.caches[c]=a}else a=r.caches[c];r.styles[c].d+=!0===n.hd?"":a,r.styles[c]._mdf=l||r.styles[c]._mdf}}function s(t,e,n){var r=e.style;(e.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function o(t,e,n){a(t,e,n),l(0,e,n)}function a(t,e,n){var r,i,s,o,a,l=e.gf,A=e.g._hasOpacity,c=e.s.v,h=e.e.v;if(e.o._mdf||n){var u="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(u,e.o.v)}if(e.s._mdf||n){var p=1===t.t?"x1":"cx",d="x1"===p?"y1":"cy";l.setAttribute(p,c[0]),l.setAttribute(d,c[1]),A&&!e.g._collapsable&&(e.of.setAttribute(p,c[0]),e.of.setAttribute(d,c[1]))}if(e.g._cmdf||n){r=e.cst;var f=e.g.c;for(s=r.length,i=0;i<s;i+=1)(o=r[i]).setAttribute("offset",f[4*i]+"%"),o.setAttribute("stop-color","rgb("+f[4*i+1]+","+f[4*i+2]+","+f[4*i+3]+")")}if(A&&(e.g._omdf||n)){var g=e.g.o;for(s=(r=e.g._collapsable?e.cst:e.ost).length,i=0;i<s;i+=1)o=r[i],e.g._collapsable||o.setAttribute("offset",g[2*i]+"%"),o.setAttribute("stop-opacity",g[2*i+1])}if(1===t.t)(e.e._mdf||n)&&(l.setAttribute("x2",h[0]),l.setAttribute("y2",h[1]),A&&!e.g._collapsable&&(e.of.setAttribute("x2",h[0]),e.of.setAttribute("y2",h[1])));else if((e.s._mdf||e.e._mdf||n)&&(a=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)),l.setAttribute("r",a),A&&!e.g._collapsable&&e.of.setAttribute("r",a)),e.s._mdf||e.e._mdf||e.h._mdf||e.a._mdf||n){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,O=Math.cos(m+e.a.v)*v+c[0],b=Math.sin(m+e.a.v)*v+c[1];l.setAttribute("fx",O),l.setAttribute("fy",b),A&&!e.g._collapsable&&(e.of.setAttribute("fx",O),e.of.setAttribute("fy",b))}}function l(t,e,n){var r=e.style,i=e.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),e.c&&(e.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return s;case"gf":return a;case"gs":return o;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,n),this.prevViewData=[]}function LetterProps(t,e,n,r,i,s){this.o=t,this.sw=e,this.sc=n,this.fc=r,this.m=i,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!r,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,n,r,i=this.shapes.length,s=this.stylesList.length,o=[],a=!1;for(n=0;n<s;n+=1){for(r=this.stylesList[n],a=!1,o.length=0,t=0;t<i;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(r)&&(o.push(e),a=e._isAnimated||a);o.length>1&&a&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var n,r=new SVGStyleData(t,e),i=r.pElem;return"st"===t.ty?n=new SVGStrokeStyleData(this,t,r):"fl"===t.ty?n=new SVGFillStyleData(this,t,r):"gf"===t.ty||"gs"===t.ty?(n=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===t.ty&&(n=new SVGNoStyleData(this,t,r)),"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(r),this.addToAnimatedContents(t,n),n},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 n=TransformPropertyFactory.getTransformProperty(this,t,this),r=new SVGTransformData(n,n.o,e);return this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createShapeElement=function(t,e,n){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);var i=new SVGShapeData(e,n,ShapePropertyFactory.getShapeProp(this,t,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===e)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,n=t.styles,r=this.stylesList.length;for(e=0;e<r;e+=1)-1!==n.indexOf(this.stylesList[e])||this.stylesList[e].closed||n.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,n,r,i,s,o){var a,l,A,c,h,u,p=[].concat(s),d=t.length-1,f=[],g=[];for(a=d;a>=0;a-=1){if((u=this.searchProcessedElement(t[a]))?e[a]=n[u-1]:t[a]._render=o,"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!==r&&r.appendChild(e[a].style.pElem),f.push(e[a].style);else if("gr"===t[a].ty){if(u)for(A=e[a].it.length,l=0;l<A;l+=1)e[a].prevViewData[l]=e[a].it[l];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,e[a].gr,i+1,p,o),t[a]._render&&e[a].gr.parentNode!==r&&r.appendChild(e[a].gr)}else"tr"===t[a].ty?(u||(e[a]=this.createTransformElement(t[a],r)),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),o=!1),g.push(h));this.addProcessedElement(t[a],a+1)}for(d=f.length,a=0;a<d;a+=1)f[a].closed=!0;for(d=g.length,a=0;a<d;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,n=this.animatedContents.length;for(t=0;t<n;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,n,r,i,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,o=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,o=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,o=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,o=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);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,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)s=n!==this.keysIndex?this.effectsSequence[r](s,s.t):this.effectsSequence[r](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,n=0,r=t.length;n<=r-1&&!(n===r-1||t[n+1].t>e);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,n,r=[],i=0,s=t.length,o=!1,a=!1,l="";i<s;)o=a,a=!1,e=t.charCodeAt(i),l=t.charAt(i),FontManager.isCombinedCharacter(e)?o=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,i)?l=t.substr(i,14):(n=t.charCodeAt(i+1))>=56320&&n<=57343&&(FontManager.isModifier(e,n)?(l=t.substr(i,2),o=!0):l=FontManager.isFlagEmoji(t.substr(i,4))?t.substr(i,4):t.substr(i,2)):e>56319?(n=t.charCodeAt(i+1),FontManager.isVariationSelector(e)&&(o=!0)):FontManager.isZeroWidthJoiner(e)&&(o=!0,a=!0),o?(r[r.length-1]+=l,o=!1):r.push(l),i+=l.length;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,n,r,i,s,o,a,l=this.elem.globalData.fontManager,A=this.data,c=[],h=0,u=A.m.g,p=0,d=0,f=0,g=[],m=0,y=0,v=l.getFontByName(t.f),O=0,b=getFontProperties(v);t.fWeight=b.weight,t.fStyle=b.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),n=t.finalText.length,t.finalLineHeight=t.lh;var x,w=t.tr/1e3*t.finalSize;if(t.sz)for(var _,S,C=!0,E=t.sz[0],B=t.sz[1];C;){_=0,m=0,n=(S=this.buildFinalText(t.t)).length,w=t.tr/1e3*t.finalSize;var T=-1;for(e=0;e<n;e+=1)x=S[e].charCodeAt(0),r=!1," "===S[e]?T=e:13!==x&&3!==x||(m=0,r=!0,_+=t.finalLineHeight||1.2*t.finalSize),l.chars?(a=l.getCharData(S[e],v.fStyle,v.fFamily),O=r?0:a.w*t.finalSize/100):O=l.measureText(S[e],t.f,t.finalSize),m+O>E&&" "!==S[e]?(-1===T?n+=1:e=T,_+=t.finalLineHeight||1.2*t.finalSize,S.splice(e,T===e?1:0,"\r"),T=-1,m=0):(m+=O,m+=w);_+=v.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&B<_?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=S,n=t.finalText.length,C=!1)}m=-w,O=0;var P,k=0;for(e=0;e<n;e+=1)if(r=!1,13===(x=(P=t.finalText[e]).charCodeAt(0))||3===x?(k=0,g.push(m),y=m>y?m:y,m=-2*w,i="",r=!0,f+=1):i=P,l.chars?(a=l.getCharData(P,v.fStyle,l.getFontByName(t.f).fFamily),O=r?0:a.w*t.finalSize/100):O=l.measureText(i,t.f,t.finalSize)," "===P?k+=O+w:(m+=O+w+k,k=0),c.push({l:O,an:O,add:p,n:r,anIndexes:[],val:i,line:f,animatorJustifyOffset:0}),2==u){if(p+=O,""===i||" "===i||e===n-1){for(""!==i&&" "!==i||(p-=O);d<=e;)c[d].an=p,c[d].ind=h,c[d].extra=O,d+=1;h+=1,p=0}}else if(3==u){if(p+=O,""===i||e===n-1){for(""===i&&(p-=O);d<=e;)c[d].an=p,c[d].ind=h,c[d].extra=O,d+=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 I,N,Q,F,L=A.a;o=L.length;var M=[];for(s=0;s<o;s+=1){for((I=L[s]).a.sc&&(t.strokeColorAnim=!0),I.a.sw&&(t.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(t.fillColorAnim=!0),F=0,Q=I.s.b,e=0;e<n;e+=1)(N=c[e]).anIndexes[s]=F,(1==Q&&""!==N.val||2==Q&&""!==N.val&&" "!==N.val||3==Q&&(N.n||" "==N.val||e==n-1)||4==Q&&(N.n||e==n-1))&&(1===I.s.rn&&M.push(F),F+=1);A.a[s].s.totalChars=F;var D,R=-1;if(1===I.s.rn)for(e=0;e<n;e+=1)R!=(N=c[e]).anIndexes[s]&&(R=N.anIndexes[s],D=M.splice(Math.floor(Math.random()*M.length),1)[0]),N.anIndexes[s]=D}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 n=this.copyData({},this.data.d.k[e].s);n=this.copyData(n,t),this.data.d.k[e].s=n,this.recalculate(e),this.setCurrentData(n),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,n=Math.floor;function r(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 r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,s=0,o=1,a=1;this.ne.v>0?i=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:a=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,s,o,a).get,A=0,c=this.finalS,h=this.finalE,u=this.data.sh;if(2===u)A=l(A=h===c?r>=h?1:0:t(0,e(.5/(h-c)+(r-c)/(h-c),1)));else if(3===u)A=l(A=h===c?r>=h?0:1:1-t(0,e(.5/(h-c)+(r-c)/(h-c),1)));else if(4===u)h===c?A=0:(A=t(0,e(.5/(h-c)+(r-c)/(h-c),1)))<.5?A*=2:A=1-2*(A-.5),A=l(A);else if(5===u){if(h===c)A=0;else{var p=h-c,d=-p/2+(r=e(t(0,r+.5-c),h-c)),f=p/2;A=Math.sqrt(1-d*d/(f*f))}A=l(A)}else 6===u?(h===c?A=0:(r=e(t(0,r+.5-c),h-c),A=(1+Math.cos(Math.PI+2*Math.PI*r/(h-c)))/2),A=l(A)):(r>=n(c)&&(A=t(0,e(r-c<0?e(h,1)-(c-r):h-r,1))),A=l(A));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var m=.5-.5*g;A<m?A=0:(A=(A-m)/g)>1&&(A=1)}return A*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,n=this.o.v/e,r=this.s.v/e+n,i=this.e.v/e+n;if(r>i){var s=r;r=i,i=s}this.finalS=r,this.finalE=i}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,n){return new r(t,e,n)}}}();function TextAnimatorDataProperty(t,e,n){var r={propType:!1},i=PropertyFactory.getProp,s=e.a;this.a={r:s.r?i(t,s.r,0,degToRads,n):r,rx:s.rx?i(t,s.rx,0,degToRads,n):r,ry:s.ry?i(t,s.ry,0,degToRads,n):r,sk:s.sk?i(t,s.sk,0,degToRads,n):r,sa:s.sa?i(t,s.sa,0,degToRads,n):r,s:s.s?i(t,s.s,1,.01,n):r,a:s.a?i(t,s.a,1,0,n):r,o:s.o?i(t,s.o,0,.01,n):r,p:s.p?i(t,s.p,1,0,n):r,sw:s.sw?i(t,s.sw,0,0,n):r,sc:s.sc?i(t,s.sc,1,0,n):r,fc:s.fc?i(t,s.fc,1,0,n):r,fh:s.fh?i(t,s.fh,0,0,n):r,fs:s.fs?i(t,s.fs,0,.01,n):r,fb:s.fb?i(t,s.fb,0,.01,n):r,t:s.t?i(t,s.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function TextAnimatorProperty(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,n=this._textData.a.length,r=PropertyFactory.getProp;for(t=0;t<n;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(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=r(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 n,r,i,s,o,a,l,A,c,h,u,p,d,f,g,m,y,v,O,b=this._moreOptions.alignment.v,x=this._animatorsData,w=this._textData,_=this.mHelper,S=this._renderType,C=this.renderedLetters.length,E=t.l;if(this._hasMaskedPath){if(O=this._pathData.m,!this._pathData.n||this._pathData._mdf){var B,T=O.v;for(this._pathData.r.v&&(T=T.reverse()),o={tLength:0,segments:[]},s=T._length-1,m=0,i=0;i<s;i+=1)B=bez.buildBezierData(T.v[i],T.v[i+1],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[i+1][0]-T.v[i+1][0],T.i[i+1][1]-T.v[i+1][1]]),o.tLength+=B.segmentLength,o.segments.push(B),m+=B.segmentLength;i=s,O.v.c&&(B=bez.buildBezierData(T.v[i],T.v[0],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),o.tLength+=B.segmentLength,o.segments.push(B),m+=B.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,a=this._pathData.f.v,u=0,h=1,A=0,c=!0,f=o.segments,a<0&&O.v.c)for(o.tLength<Math.abs(a)&&(a=-Math.abs(a)%o.tLength),h=(d=f[u=f.length-1].points).length-1;a<0;)a+=d[h].partialLength,(h-=1)<0&&(h=(d=f[u-=1].points).length-1);p=(d=f[u].points)[h-1],g=(l=d[h]).partialLength}s=E.length,n=0,r=0;var P,k,I,N,Q,F=1.2*t.finalSize*.714,L=!0;I=x.length;var M,D,R,U,$,j,H,V,X,z,G,Y,W=-1,Z=a,K=u,q=h,J=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var nt=0,rt=0,it=2===t.j?-.5:-1,st=0,ot=!0;for(i=0;i<s;i+=1)if(E[i].n){for(nt&&(nt+=rt);st<i;)E[st].animatorJustifyOffset=nt,st+=1;nt=0,ot=!0}else{for(k=0;k<I;k+=1)(P=x[k].a).t.propType&&(ot&&2===t.j&&(rt+=P.t.v*it),(Q=x[k].s.getMult(E[i].anIndexes[k],w.a[k].s.totalChars)).length?nt+=P.t.v*Q[0]*it:nt+=P.t.v*Q*it);ot=!1}for(nt&&(nt+=rt);st<i;)E[st].animatorJustifyOffset=nt,st+=1}for(i=0;i<s;i+=1){if(_.reset(),U=1,E[i].n)n=0,r+=t.yOffset,r+=L?1:0,a=Z,L=!1,this._hasMaskedPath&&(h=q,p=(d=f[u=K].points)[h-1],g=(l=d[h]).partialLength,A=0),tt="",G="",X="",Y="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(J!==E[i].line){switch(t.j){case 1:a+=m-t.lineWidths[E[i].line];break;case 2:a+=(m-t.lineWidths[E[i].line])/2}J=E[i].line}W!==E[i].ind&&(E[W]&&(a+=E[W].extra),a+=E[i].an/2,W=E[i].ind),a+=b[0]*E[i].an*.005;var at=0;for(k=0;k<I;k+=1)(P=x[k].a).p.propType&&((Q=x[k].s.getMult(E[i].anIndexes[k],w.a[k].s.totalChars)).length?at+=P.p.v[0]*Q[0]:at+=P.p.v[0]*Q),P.a.propType&&((Q=x[k].s.getMult(E[i].anIndexes[k],w.a[k].s.totalChars)).length?at+=P.a.v[0]*Q[0]:at+=P.a.v[0]*Q);for(c=!0,this._pathData.a.v&&(a=.5*E[0].an+(m-this._pathData.f.v-.5*E[0].an-.5*E[E.length-1].an)*W/(s-1),a+=this._pathData.f.v);c;)A+g>=a+at||!d?(y=(a+at-A)/l.partialLength,D=p.point[0]+(l.point[0]-p.point[0])*y,R=p.point[1]+(l.point[1]-p.point[1])*y,_.translate(-b[0]*E[i].an*.005,-b[1]*F*.01),c=!1):d&&(A+=l.partialLength,(h+=1)>=d.length&&(h=0,f[u+=1]?d=f[u].points:O.v.c?(h=0,d=f[u=0].points):(A-=l.partialLength,d=null)),d&&(p=l,g=(l=d[h]).partialLength));M=E[i].an/2-E[i].add,_.translate(-M,0,0)}else M=E[i].an/2-E[i].add,_.translate(-M,0,0),_.translate(-b[0]*E[i].an*.005,-b[1]*F*.01,0);for(k=0;k<I;k+=1)(P=x[k].a).t.propType&&(Q=x[k].s.getMult(E[i].anIndexes[k],w.a[k].s.totalChars),0===n&&0===t.j||(this._hasMaskedPath?Q.length?a+=P.t.v*Q[0]:a+=P.t.v*Q:Q.length?n+=P.t.v*Q[0]:n+=P.t.v*Q));for(t.strokeWidthAnim&&(j=t.sw||0),t.strokeColorAnim&&($=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),k=0;k<I;k+=1)(P=x[k].a).a.propType&&((Q=x[k].s.getMult(E[i].anIndexes[k],w.a[k].s.totalChars)).length?_.translate(-P.a.v[0]*Q[0],-P.a.v[1]*Q[1],P.a.v[2]*Q[2]):_.translate(-P.a.v[0]*Q,-P.a.v[1]*Q,P.a.v[2]*Q));for(k=0;k<I;k+=1)(P=x[k].a).s.propType&&((Q=x[k].s.getMult(E[i].anIndexes[k],w.a[k].s.totalChars)).length?_.scale(1+(P.s.v[0]-1)*Q[0],1+(P.s.v[1]-1)*Q[1],1):_.scale(1+(P.s.v[0]-1)*Q,1+(P.s.v[1]-1)*Q,1));for(k=0;k<I;k+=1){if(P=x[k].a,Q=x[k].s.getMult(E[i].anIndexes[k],w.a[k].s.totalChars),P.sk.propType&&(Q.length?_.skewFromAxis(-P.sk.v*Q[0],P.sa.v*Q[1]):_.skewFromAxis(-P.sk.v*Q,P.sa.v*Q)),P.r.propType&&(Q.length?_.rotateZ(-P.r.v*Q[2]):_.rotateZ(-P.r.v*Q)),P.ry.propType&&(Q.length?_.rotateY(P.ry.v*Q[1]):_.rotateY(P.ry.v*Q)),P.rx.propType&&(Q.length?_.rotateX(P.rx.v*Q[0]):_.rotateX(P.rx.v*Q)),P.o.propType&&(Q.length?U+=(P.o.v*Q[0]-U)*Q[0]:U+=(P.o.v*Q-U)*Q),t.strokeWidthAnim&&P.sw.propType&&(Q.length?j+=P.sw.v*Q[0]:j+=P.sw.v*Q),t.strokeColorAnim&&P.sc.propType)for(V=0;V<3;V+=1)Q.length?$[V]+=(P.sc.v[V]-$[V])*Q[0]:$[V]+=(P.sc.v[V]-$[V])*Q;if(t.fillColorAnim&&t.fc){if(P.fc.propType)for(V=0;V<3;V+=1)Q.length?H[V]+=(P.fc.v[V]-H[V])*Q[0]:H[V]+=(P.fc.v[V]-H[V])*Q;P.fh.propType&&(H=Q.length?addHueToRGB(H,P.fh.v*Q[0]):addHueToRGB(H,P.fh.v*Q)),P.fs.propType&&(H=Q.length?addSaturationToRGB(H,P.fs.v*Q[0]):addSaturationToRGB(H,P.fs.v*Q)),P.fb.propType&&(H=Q.length?addBrightnessToRGB(H,P.fb.v*Q[0]):addBrightnessToRGB(H,P.fb.v*Q))}}for(k=0;k<I;k+=1)(P=x[k].a).p.propType&&(Q=x[k].s.getMult(E[i].anIndexes[k],w.a[k].s.totalChars),this._hasMaskedPath?Q.length?_.translate(0,P.p.v[1]*Q[0],-P.p.v[2]*Q[1]):_.translate(0,P.p.v[1]*Q,-P.p.v[2]*Q):Q.length?_.translate(P.p.v[0]*Q[0],P.p.v[1]*Q[1],-P.p.v[2]*Q[2]):_.translate(P.p.v[0]*Q,P.p.v[1]*Q,-P.p.v[2]*Q));if(t.strokeWidthAnim&&(X=j<0?0:j),t.strokeColorAnim&&(z="rgb("+Math.round(255*$[0])+","+Math.round(255*$[1])+","+Math.round(255*$[2])+")"),t.fillColorAnim&&t.fc&&(G="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(_.translate(0,-t.ls),_.translate(0,b[1]*F*.01+r,0),this._pathData.p.v){v=(l.point[1]-p.point[1])/(l.point[0]-p.point[0]);var lt=180*Math.atan(v)/Math.PI;l.point[0]<p.point[0]&&(lt+=180),_.rotate(-lt*Math.PI/180)}_.translate(D,R,0),a-=b[0]*E[i].an*.005,E[i+1]&&W!==E[i+1].ind&&(a+=E[i].an/2,a+=.001*t.tr*t.finalSize)}else{switch(_.translate(n,r,0),t.ps&&_.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:_.translate(E[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[i].line]),0,0);break;case 2:_.translate(E[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[i].line])/2,0,0)}_.translate(0,-t.ls),_.translate(M,0,0),_.translate(b[0]*E[i].an*.005,b[1]*F*.01,0),n+=E[i].l+.001*t.tr*t.finalSize}"html"===S?tt=_.toCSS():"svg"===S?tt=_.to2dCSS():et=[_.props[0],_.props[1],_.props[2],_.props[3],_.props[4],_.props[5],_.props[6],_.props[7],_.props[8],_.props[9],_.props[10],_.props[11],_.props[12],_.props[13],_.props[14],_.props[15]],Y=U}C<=i?(N=new LetterProps(Y,X,z,G,tt,et),this.renderedLetters.push(N),C+=1,this.lettersChangedFlag=!0):(N=this.renderedLetters[i],this.lettersChangedFlag=N.update(Y,X,z,G,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,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,n),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,n),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 n,r,i=e.length,s="";for(n=0;n<i;n+=1)"sh"===e[n].ty&&(r=e[n].ks.k,s+=buildShapeString(r,r.i.length,!0,t));return s},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,n,r,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[n]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n])/2,0,0)}e.translate(r,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,n){this.textSpans=[],this.renderType="svg",this.initElement(t,e,n)}function ISolidElement(t,e,n){this.initElement(t,e,n)}function NullElement(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initFrame(),this.initTransform(t,e,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,n){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,n),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 n="";if(e&&e.title){var r=createNS("title"),i=createElementID();r.setAttribute("id",i),r.textContent=e.title,this.svgElement.appendChild(r),n+=i}if(e&&e.description){var s=createNS("desc"),o=createElementID();s.setAttribute("id",o),s.textContent=e.description,this.svgElement.appendChild(s),n+=" "+o}n&&this.svgElement.setAttribute("aria-labelledby",n);var a=createNS("defs");this.svgElement.appendChild(a);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,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,n=t.length,r=[],i="";e<n;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(i),i=""):i+=t[e],e+=1;return r.push(i),r},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var n=t.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=e,r.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,s=n.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var o,a=n.l||[],l=!!this.globalData.fontManager.chars;e=a.length;var A=this.mHelper,c=this.data.singleShape,h=0,u=0,p=!0,d=.001*n.tr*n.finalSize;if(!c||l||n.sz){var f,g=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!c||0===t){if(o=g>t?this.textSpans[t].span:createNS(l?"g":"text"),g<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,l){var m=createNS("g");o.appendChild(m),this.textSpans[t].childSpan=m}this.textSpans[t].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(A.reset(),c&&(a[t].n&&(h=-d,u+=n.yOffset,u+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(n,A,a[t].line,h,u),h+=a[t].l||0,h+=d),l){var y;if(1===(f=this.globalData.fontManager.getCharData(n.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)y=new SVGCompElement(f.data,this.globalData,this);else{var v=emptyShapeData;f.data&&f.data.shapes&&(v=this.buildShapeData(f.data,n.finalSize)),y=new SVGShapeElement(v,this.globalData,this)}if(this.textSpans[t].glyph){var O=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(O.layerElement),O.destroy()}this.textSpans[t].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[t].childSpan.appendChild(y.layerElement),1===f.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else c&&o.setAttribute("transform","translate("+A.props[12]+","+A.props[13]+")"),o.textContent=a[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&o&&o.setAttribute("d","")}else{var b=this.textContainer,x="start";switch(n.j){case 1:x="end";break;case 2:x="middle";break;default:x="start"}b.setAttribute("text-anchor",x),b.setAttribute("letter-spacing",d);var w=this.buildTextContents(n.finalText);for(e=w.length,u=n.ps?n.ps[1]+n.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t].span||createNS("tspan")).textContent=w[t],o.setAttribute("x",0),o.setAttribute("y",u),o.style.display="inherit",b.appendChild(o),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=o,u+=n.finalLineHeight;this.layerElement.appendChild(b)}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,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<n;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 n,r,i,s=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n||(n=s[t],r=this.textSpans[t].span,(i=this.textSpans[t].glyph)&&i.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.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 n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=createElementID();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),e.appendChild(n),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,n=this.layers.length;for(e=0;e<n;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 n=this.createItem(this.layers[t]);if(e[t]=n,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,t),this.layers[t].tt){var r="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var i=e[r].getMatte(this.layers[t].tt);n.setMatte(i)}else this.buildItem(r),this.addPendingElement(n)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,n=this.elements.length;e<n;){if(this.elements[e]===t){var r="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,i=this.elements[r].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 n=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=n-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<n;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){for(var r,i=0;i<e;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},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,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),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 n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._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,n=t.length,r="_";for(e=0;e<n;e+=1)r+=t[e].transform.key+"_";var i=this.sequences[r];return i||(i={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=i,this.sequenceList.push(i)),i},processSequence:function(t,e){for(var n=0,r=t.transforms.length,i=e;n<r&&!e;){if(t.transforms[n].transform.mProps._mdf){i=!0;break}n+=1}if(i)for(t.finalTransform.reset(),n=r-1;n>=0;n-=1)t.finalTransform.multiply(t.transforms[n].transform.mProps.v);t._mdf=i},processSequences:function(t){var e,n=this.sequenceList.length;for(e=0;e<n;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,n=null,r=null;function i(){var i,s,o;e||(i=createNS("svg"),s=createNS("filter"),o=createNS("feColorMatrix"),s.setAttribute("id",t),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.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"),s.appendChild(o),i.appendChild(s),i.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(i.style.display="none"),r=i,document.body.appendChild(r),e=createTag("canvas"),(n=e.getContext("2d")).filter="url(#"+t+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}return{load:i,get:function(r){return e||i(),e.width=r.width,e.height=r.height,n.filter="url(#"+t+")",e}}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var n=createTag("canvas");return n.width=t,n.height=e,n}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(t){var e,n,r=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<r;e+=1){n=null;var i=t.data.ef[e].ty;registeredEffects[i]&&(n=new(0,registeredEffects[i].effect)(t.effectsManager.effectElements[e],t)),n&&this.filters.push(n)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){var n;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,i=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(i=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,n=this.filters.length;for(e=0;e<n;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,n=this.filters.length,r=[];for(e=0;e<n;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,n,r,i=this.element.finalTransform.mat,s=this.element.canvasContext,o=this.masksProperties.length;for(s.beginPath(),t=0;t<o;t+=1)if("n"!==this.masksProperties[t].mode){var a;this.masksProperties[t].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),r=this.viewData[t].v,e=i.applyToPointArray(r.v[0][0],r.v[0][1],0),s.moveTo(e[0],e[1]);var l=r._length;for(a=1;a<l;a+=1)n=i.applyToTriplePoints(r.o[a-1],r.i[a],r.v[a]),s.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=i.applyToTriplePoints(r.o[a-1],r.i[0],r.v[0]),s.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),s.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,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,s=4;"rc"===e.ty?s=5:"el"===e.ty?s=6:"sr"===e.ty&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var o,a=n.length;for(i=0;i<a;i+=1)n[i].closed||(o={transforms:r.addTransformSequence(n[i].transforms),trNodes:[]},this.styledShapes.push(o),n[i].elements.push(o))}function CVShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,n)}function CVTextElement(t,e,n){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,n)}function CVImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,n)}function CVSolidElement(t,e,n){this.initElement(t,e,n)}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,n){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,n),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,n){this.initElement(t,e,n)}function HShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,n)}function HCameraElement(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,t.pe,0,0,this),t.ks.p.s?(this.px=r(this,t.ks.p.x,1,0,this),this.py=r(this,t.ks.p.y,1,0,this),this.pz=r(this,t.ks.p.z,1,0,this)):this.p=r(this,t.ks.p,1,0,this),t.ks.a&&(this.a=r(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var i,s=t.ks.or.k.length;for(i=0;i<s;i+=1)t.ks.or.k[i].to=null,t.ks.or.k[i].ti=null}this.or=r(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,t.ks.rx,0,degToRads,this),this.ry=r(this,t.ks.ry,0,degToRads,this),this.rz=r(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,n){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,n)}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,n){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,n),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 n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n),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 n=assetLoader.getLumaCanvas(this.canvasContext.canvas);n.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,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 n={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},r={};if("fl"===t.ty||"st"===t.ty?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(n.lc=lineCapEnum[t.lc||2],n.lj=lineJoinEnum[t.lj||2],1==t.lj&&(n.ml=t.ml),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(n.wi=r.w.v),t.d){var i=new DashProperty(this,t.d,"canvas",this);r.d=i,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},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,n=this.stylesList.length;for(e=0;e<n;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,n=t.length;for(e=0;e<n;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,n,r,i){var s,o,a,l,A,c,h=t.length-1,u=[],p=[],d=[].concat(i);for(s=h;s>=0;s-=1){if((l=this.searchProcessedElement(t[s]))?e[s]=n[l-1]:t[s]._shouldRender=r,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty)l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],d),u.push(e[s].style);else if("gr"===t[s].ty){if(l)for(a=e[s].it.length,o=0;o<a;o+=1)e[s].prevViewData[o]=e[s].it[o];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,r,d)}else"tr"===t[s].ty?(l||(c=this.createTransformElement(t[s]),e[s]=c),d.push(e[s]),this.addTransformToStyleList(e[s])):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?l||(e[s]=this.createShapeElement(t[s])):"tm"===t[s].ty||"rd"===t[s].ty||"pb"===t[s].ty||"zz"===t[s].ty||"op"===t[s].ty?(l?(A=e[s]).closed=!1:((A=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=A,this.shapeModifiers.push(A)),p.push(A)):"rp"===t[s].ty&&(l?(A=e[s]).closed=!0:(A=ShapeModifiers.getModifier(t[s].ty),e[s]=A,A.init(this,t,s,e),this.shapeModifiers.push(A),r=!1),p.push(A));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),h=p.length,s=0;s<h;s+=1)p[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,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,n,r,i,s,o,a,l,A=this.stylesList.length,c=this.globalData.renderer,h=this.globalData.canvasContext;for(t=0;t<A;t+=1)if(("st"!==(a=(l=this.stylesList[t]).type)&&"gs"!==a||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),s=l.elements,"st"===a||"gs"===a?(c.ctxStrokeStyle("st"===a?l.co:l.grd),c.ctxLineWidth(l.wi),c.ctxLineCap(l.lc),c.ctxLineJoin(l.lj),c.ctxMiterLimit(l.ml||0)):c.ctxFillStyle("fl"===a?l.co:l.grd),c.ctxOpacity(l.coOp),"st"!==a&&"gs"!==a&&h.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),n=s.length,e=0;e<n;e+=1){for("st"!==a&&"gs"!==a||(h.beginPath(),l.da&&(h.setLineDash(l.da),h.lineDashOffset=l.do)),i=(o=s[e].trNodes).length,r=0;r<i;r+=1)"m"===o[r].t?h.moveTo(o[r].p[0],o[r].p[1]):"c"===o[r].t?h.bezierCurveTo(o[r].pts[0],o[r].pts[1],o[r].pts[2],o[r].pts[3],o[r].pts[4],o[r].pts[5]):h.closePath();"st"!==a&&"gs"!==a||(c.ctxStroke(),l.da&&h.setLineDash(this.dashResetter))}"st"!==a&&"gs"!==a&&this.globalData.renderer.ctxFill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,n,r){var i,s;for(s=t,i=e.length-1;i>=0;i-=1)"tr"===e[i].ty?(s=n[i].transform,this.renderShapeTransform(t,s)):"sh"===e[i].ty||"el"===e[i].ty||"rc"===e[i].ty||"sr"===e[i].ty?this.renderPath(e[i],n[i]):"fl"===e[i].ty?this.renderFill(e[i],n[i],s):"st"===e[i].ty?this.renderStroke(e[i],n[i],s):"gf"===e[i].ty||"gs"===e[i].ty?this.renderGradientFill(e[i],n[i],s):"gr"===e[i].ty?this.renderShape(s,e[i].it,n[i].it):e[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var n,r,i,s=t.trNodes,o=e.paths,a=o._length;s.length=0;var l=t.transforms.finalTransform;for(i=0;i<a;i+=1){var A=o.shapes[i];if(A&&A.v){for(r=A._length,n=1;n<r;n+=1)1===n&&s.push({t:"m",p:l.applyToPointArray(A.v[0][0],A.v[0][1],0)}),s.push({t:"c",pts:l.applyToTriplePoints(A.o[n-1],A.i[n],A.v[n])});1===r&&s.push({t:"m",p:l.applyToPointArray(A.v[0][0],A.v[0][1],0)}),A.c&&r&&(s.push({t:"c",pts:l.applyToTriplePoints(A.o[n-1],A.i[0],A.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var n,r=e.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(e.styledShapes[n],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,n){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,n){var r,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 s,o=this.globalData.canvasContext,a=e.s.v,l=e.e.v;if(1===t.t)r=o.createLinearGradient(a[0],a[1],l[0],l[1]);else{var A=Math.sqrt(Math.pow(a[0]-l[0],2)+Math.pow(a[1]-l[1],2)),c=Math.atan2(l[1]-a[1],l[0]-a[0]),h=e.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var u=A*h,p=Math.cos(c+e.a.v)*u+a[0],d=Math.sin(c+e.a.v)*u+a[1];r=o.createRadialGradient(p,d,0,a[0],a[1],A)}var f=t.g.p,g=e.g.c,m=1;for(s=0;s<f;s+=1)e.g._hasOpacity&&e.g._collapsable&&(m=e.g.o[2*s+1]),r.addColorStop(g[4*s]/100,"rgba("+g[4*s+1]+","+g[4*s+2]+","+g[4*s+3]+","+m+")");i.grd=r}i.coOp=e.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(t,e,n){var r=e.style,i=e.d;i&&(i._mdf||this._isFirstFrame)&&(r.da=i.dashArray,r.do=i.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*n.opacity),(e.w._mdf||this._isFirstFrame)&&(r.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 n=!1;t.sc&&(n=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var r,i,s,o,a,l,A,c,h,u,p,d,f=this.globalData.fontManager.getFontByName(t.f),g=t.l,m=this.mHelper;this.stroke=n,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,O=0,b=0,x=!0,w=0;for(r=0;r<i;r+=1){o=(s=this.globalData.fontManager.getCharData(t.finalText[r],f.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&s.data||{},m.reset(),y&&g[r].n&&(O=-v,b+=t.yOffset,b+=x?1:0,x=!1),h=(A=o.shapes?o.shapes[0].it:[]).length,m.scale(t.finalSize/100,t.finalSize/100),y&&this.applyTextPropertiesToMatrix(t,m,g[r].line,O,b),p=createSizedArray(h-1);var _=0;for(c=0;c<h;c+=1)if("sh"===A[c].ty){for(l=A[c].ks.k.i.length,u=A[c].ks.k,d=[],a=1;a<l;a+=1)1===a&&d.push(m.applyToX(u.v[0][0],u.v[0][1],0),m.applyToY(u.v[0][0],u.v[0][1],0)),d.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));d.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[_]=d,_+=1}y&&(O+=g[r].l,O+=v),this.textSpans[w]?this.textSpans[w].elem=p:this.textSpans[w]={elem:p},w+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,n,r,i,s;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 o,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var A,c,h=null,u=null,p=null,d=this.globalData.renderer;for(t=0;t<e;t+=1)if(!l[t].n){if((o=a[t])&&(d.save(),d.ctxTransform(o.p),d.ctxOpacity(o.o)),this.fill){for(o&&o.fc?h!==o.fc&&(d.ctxFillStyle(o.fc),h=o.fc):h!==this.values.fill&&(h=this.values.fill,d.ctxFillStyle(this.values.fill)),r=(A=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(s=(c=A[n]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),i=2;i<s;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(),d.ctxFill()}if(this.stroke){for(o&&o.sw?p!==o.sw&&(p=o.sw,d.ctxLineWidth(o.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,d.ctxLineWidth(this.values.sWidth)),o&&o.sc?u!==o.sc&&(u=o.sc,d.ctxStrokeStyle(o.sc)):u!==this.values.stroke&&(u=this.values.stroke,d.ctxStrokeStyle(this.values.stroke)),r=(A=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(s=(c=A[n]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),i=2;i<s;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(),d.ctxStroke()}o&&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,n,r=t.getContext("2d"),i=this.img.width,s=this.img.height,o=i/s,a=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>a&&"xMidYMid slice"===l||o<a&&"xMidYMid slice"!==l?e=(n=s)*a:n=(e=i)/a,r.drawImage(this.img,(i-e)/2,(s-n)/2,e,n,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,n,r){this.canvasContext.fillRect(t,e,n,r)},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 n="0px 0px 0px";e.transformOrigin=n,e.mozTransformOrigin=n,e.webkitTransformOrigin=n,e["-webkit-transform"]=n,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 n,r,i,s;if(this.reset(),t?(n=t,r=e,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var o=this.renderConfig.preserveAspectRatio.split(" "),a=o[1]||"meet",l=o[0]||"xMidYMid",A=l.substr(0,4),c=l.substr(4);i=n/r,(s=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===a||s<i&&"slice"===a?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===A&&(s<i&&"meet"===a||s>i&&"slice"===a)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===A&&(s<i&&"meet"===a||s>i&&"slice"===a)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===c&&(s>i&&"meet"===a||s<i&&"slice"===a)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(s>i&&"meet"===a||s<i&&"slice"===a)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(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 n;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 r=this.layers.length;for(this.completeLayers||this.checkLayers(t),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(t-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].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 n=this.createItem(this.layers[t],this,this.globalData);e[t]=n,n.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,n=this.stack[this.cArrPos],r=n.transform,i=this.cTr.props;for(e=0;e<16;e+=1)i[e]=r[e];if(t){this.nativeContext.restore();var s=this.stack[this.cArrPos+1];this.appliedFillStyle=s.fillStyle,this.appliedStrokeStyle=s.strokeStyle,this.appliedLineWidth=s.lineWidth,this.appliedLineCap=s.lineCap,this.appliedLineJoin=s.lineJoin,this.appliedMiterLimit=s.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(t||-1!==n.opacity&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n,r=this.stack[this.cArrPos];for(n=0;n<16;n+=1)r.transform[n]=e[n];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=r.opacity,i.fillStyle=r.fillStyle,i.strokeStyle=r.strokeStyle,i.lineWidth=r.lineWidth,i.lineCap=r.lineCap,i.lineJoin=r.lineJoin,i.miterLimit=r.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 n=e.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[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,n,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,n,r)},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 n,r=t.length;for(n=0;n<r;n+=1)e=t[n].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var n,r,i,s,o,a=t.sh.v,l=t.transformers,A=a._length;if(!(A<=1)){for(n=0;n<A-1;n+=1)r=this.getTransformedPoint(l,a.v[n]),i=this.getTransformedPoint(l,a.o[n]),s=this.getTransformedPoint(l,a.i[n+1]),o=this.getTransformedPoint(l,a.v[n+1]),this.checkBounds(r,i,s,o,e);a.c&&(r=this.getTransformedPoint(l,a.v[n]),i=this.getTransformedPoint(l,a.o[n]),s=this.getTransformedPoint(l,a.i[0]),o=this.getTransformedPoint(l,a.v[0]),this.checkBounds(r,i,s,o,e))}},HShapeElement.prototype.checkBounds=function(t,e,n,r,i){this.getBoundsOfCurve(t,e,n,r);var s=this.shapeBoundingBox;i.x=bmMin(s.left,i.x),i.xMax=bmMax(s.right,i.xMax),i.y=bmMin(s.top,i.y),i.yMax=bmMax(s.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,n,r){for(var i,s,o,a,l,A,c,h=[[t[0],r[0]],[t[1],r[1]]],u=0;u<2;++u)s=6*t[u]-12*e[u]+6*n[u],i=-3*t[u]+9*e[u]-9*n[u]+3*r[u],o=3*e[u]-3*t[u],s|=0,o|=0,0==(i|=0)&&0===s||(0===i?(a=-o/s)>0&&a<1&&h[u].push(this.calculateF(a,t,e,n,r,u)):(l=s*s-4*o*i)>=0&&((A=(-s+bmSqrt(l))/(2*i))>0&&A<1&&h[u].push(this.calculateF(A,t,e,n,r,u)),(c=(-s-bmSqrt(l))/(2*i))>0&&c<1&&h[u].push(this.calculateF(c,t,e,n,r,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,n,r,i,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*n[s]+3*(1-t)*bmPow(t,2)*r[s]+bmPow(t,3)*i[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)t[n]&&t[n].sh?this.calculateShapeBoundingBox(t[n],e):t[n]&&t[n].it?this.calculateBoundingBox(t[n].it,e):t[n]&&t[n].style&&t[n].w&&this.expandStrokeBoundingBox(t[n].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var n=0;if(t.keyframes){for(var r=0;r<t.keyframes.length;r+=1){var i=t.keyframes[r].s;i>n&&(n=i)}n*=t.mult}else n=t.v*t.mult;e.x-=n,e.xMax+=n,e.y-=n,e.yMax+=n},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 n=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),n=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),n=!0),n||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 r=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=i,r.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,n=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=n,e.color=n,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var r,i,s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var o=t.fWeight,a=t.fStyle;e.fontStyle=a,e.fontWeight=o}var l,A,c,h=t.l;i=h.length;var u,p=this.mHelper,d="",f=0;for(r=0;r<i;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[f]?l=this.textPaths[f]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[f]?c=(A=this.textSpans[f]).children[0]:((A=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(A)))):this.isMasked?l=this.textPaths[f]?this.textPaths[f]:createNS("text"):this.textSpans[f]?(A=this.textSpans[f],l=this.textPaths[f]):(styleDiv(A=createTag("span")),styleDiv(l=createTag("span")),A.appendChild(l)),this.globalData.fontManager.chars){var g,m=this.globalData.fontManager.getCharData(t.finalText[r],s.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),d=this.createPathShape(p,u),l.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(A),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,O="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";v.transform=O,v.webkitTransform=O,h[r].yOffset=y.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);A.appendChild(c)}}else if(l.textContent=h[r].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(A);var b=l.style,x="translate3d(0,"+-t.finalSize/1.2+"px,0)";b.transform=x,b.webkitTransform=x}this.isMasked?this.textSpans[f]=l:this.textSpans[f]=A,this.textSpans[f].style.display="block",this.textPaths[f]=l,f+=1}for(;f<this.textSpans.length;)this.textSpans[f].style.display="none",f+=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 n,r,i,s,o,a=0,l=this.textAnimator.renderedLetters,A=this.textProperty.currentData.l;for(r=A.length,n=0;n<r;n+=1)A[n].n?a+=1:(s=this.textSpans[n],o=this.textPaths[n],i=l[a],a+=1,i._mdf.m&&(this.isMasked?s.setAttribute("transform",i.m):(s.style.webkitTransform=i.m,s.style.transform=i.m)),s.style.opacity=i.o,i.sw&&i._mdf.sw&&o.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&o.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(o.setAttribute("fill",i.fc),o.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,n,r,i=this.comp.threeDElements.length;for(t=0;t<i;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){n=e.perspectiveElem.style,r=e.container.style;var s=this.pe.v+"px",o="0px 0px 0px",a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=s,n.webkitPerspective=s,r.transformOrigin=o,r.mozTransformOrigin=o,r.webkitTransformOrigin=o,n.transform=a,n.webkitTransform=a}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,n=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)n=this.hierarchy[t].finalTransform.mProp._mdf||n;if(n||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 r=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.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 s=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),o=[i[0]/s,i[1]/s,i[2]/s],a=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],a),A=Math.atan2(o[0],-o[2]);this.mat.rotateY(A).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var 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 d=this.mat.toCSS();(p=h.container.style).transform=d,p.webkitTransform=d}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 n=t.getBaseElement();if(n){var r=this.layers[e];if(r.ddd&&this.supports3d)this.addTo3dContainer(n,e);else if(this.threeDElements)this.addTo3dContainer(n,e);else{for(var i,s,o=0;o<e;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(s=this.elements[o],i=(this.layers[o].ddd?this.getThreeDContainerByPos(o):s.getBaseElement())||i),o+=1;i?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,i):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,n=this.threeDElements.length;e<n;){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 n,r,i=createTag("div");styleDiv(i);var s=createTag("div");if(styleDiv(s),"3d"===e){(n=i.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var o="50% 50%";n.webkitTransformOrigin=o,n.mozTransformOrigin=o,n.transformOrigin=o;var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=s.style).transform=a,r.webkitTransform=a}i.appendChild(s);var l={container:s,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e,n=this.layers.length,r="";for(t=0;t<n;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==r&&(r="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==r&&(r="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(n=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var n=0,r=this.threeDElements.length;n<r;){if(e<=this.threeDElements[n].endPos){for(var i,s=this.threeDElements[n].startPos;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(i=this.elements[s].getBaseElement()),s+=1;i?this.threeDElements[n].container.insertBefore(t,i):this.threeDElements[n].container.appendChild(t);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),n=this.animationItem.wrapper,r=e.style;r.width=t.w+"px",r.height=t.h+"px",this.resizerElem=e,styleDiv(e),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),n.appendChild(e),r.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var s=createNS("defs");i.appendChild(s),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=s,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,n,r,i=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,o=i/s;this.globalData.compSize.w/this.globalData.compSize.h>o?(t=i/this.globalData.compSize.w,e=i/this.globalData.compSize.w,n=0,r=(s-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,n=(i-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,r=0);var a=this.resizerElem.style;a.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+n+","+r+",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,n=this.globalData.compSize.h,r=this.threeDElements.length;for(t=0;t<r;t+=1){var i=this.threeDElements[t].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(n,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,n=t.length,r=createTag("div");for(e=0;e<n;e+=1)if(t[e].xt){var i=this.createComp(t[e],r,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 n,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(t,n):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 n=0,r=t.layers.length;n<r;){if(t.layers[n].nm===e||t.layers[n].ind===e)return t.elements[n].layerInterface;n+=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 n=this,r=256,i="random",s=e.pow(r,6),o=e.pow(2,52),a=2*o,l=255;function A(t){var e,n=t.length,i=this,s=0,o=i.i=i.j=0,a=i.S=[];for(n||(t=[n++]);s<r;)a[s]=s++;for(s=0;s<r;s++)a[s]=a[o=l&o+t[s%n]+(e=a[s])],a[o]=e;i.g=function(t){for(var e,n=0,s=i.i,o=i.j,a=i.S;t--;)e=a[s=l&s+1],n=n*r+a[l&(a[s]=a[o=l&o+e])+(a[o]=e)];return i.i=s,i.j=o,n}}function c(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function h(t,e){var n,r=[],i=_typeof$2(t);if(e&&"object"==i)for(n in t)try{r.push(h(t[n],e-1))}catch(t){}return r.length?r:"string"==i?t:t+"\0"}function u(t,e){for(var n,r=t+"",i=0;i<r.length;)e[l&i]=l&(n^=19*e[l&i])+r.charCodeAt(i++);return p(e)}function p(t){return String.fromCharCode.apply(0,t)}e["seed"+i]=function(l,d,f){var g=[],m=u(h((d=!0===d?{entropy:!0}:d||{}).entropy?[l,p(t)]:null===l?function(){try{var e=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(e),p(e)}catch(e){var i=n.navigator,s=i&&i.plugins;return[+new Date,n,s,n.screen,p(t)]}}():l,3),g),y=new A(g),v=function(){for(var t=y.g(6),e=s,n=0;t<o;)t=(t+n)*r,e*=r,n=y.g(1);for(;t>=a;)t/=2,e/=2,n>>>=1;return(t+n)/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),(d.pass||f||function(t,n,r,s){return s&&(s.S&&c(s,y),t.state=function(){return c(y,{})}),r?(e[i]=t,n):t})(v,m,"global"in d?d.global:this==e,d.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 n,r=t.length,i=[];for(n=0;n<r;n+=1)i[n]=-t[n];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 n=_typeof$1(t),r=_typeof$1(e);if(isNumerable(n,t)&&isNumerable(r,e)||"string"===n||"string"===r)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(n,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,s=t.length,o=e.length,a=[];i<s||i<o;)("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 n=_typeof$1(t),r=_typeof$1(e);if(isNumerable(n,t)&&isNumerable(r,e))return"string"===n&&(t=parseInt(t,10)),"string"===r&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(n,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,s=t.length,o=e.length,a=[];i<s||i<o;)("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 n,r,i,s=_typeof$1(t),o=_typeof$1(e);if(isNumerable(s,t)&&isNumerable(o,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=t[r]*e;return n}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=t*e[r];return n}return 0}function div(t,e){var n,r,i,s=_typeof$1(t),o=_typeof$1(e);if(isNumerable(s,t)&&isNumerable(o,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=t[r]/e;return n}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=t/e[r];return n}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,n){if(e>n){var r=n;n=e,e=r}return Math.min(Math.max(t,e),n)}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 n;e||(e=helperLengthArray);var r=Math.min(t.length,e.length),i=0;for(n=0;n<r;n+=1)i+=Math.pow(e[n]-t[n],2);return Math.sqrt(i)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,n,r=t[0],i=t[1],s=t[2],o=Math.max(r,i,s),a=Math.min(r,i,s),l=(o+a)/2;if(o===a)e=0,n=0;else{var A=o-a;switch(n=l>.5?A/(2-o-a):A/(o+a),o){case r:e=(i-s)/A+(i<s?6:0);break;case i:e=(s-r)/A+2;break;case s:e=(r-i)/A+4}e/=6}return[e,n,l,t[3]]}function hue2rgb(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function hslToRgb(t){var e,n,r,i=t[0],s=t[1],o=t[2];if(0===s)e=o,r=o,n=o;else{var a=o<.5?o*(1+s):o+s-o*s,l=2*o-a;e=hue2rgb(l,a,i+1/3),n=hue2rgb(l,a,i),r=hue2rgb(l,a,i-1/3)}return[e,n,r,t[3]]}function linear(t,e,n,r,i){if(void 0!==r&&void 0!==i||(r=e,i=n,e=0,n=1),n<e){var s=n;n=e,e=s}if(t<=e)return r;if(t>=n)return i;var o,a=n===e?0:(t-e)/(n-e);if(!r.length)return r+(i-r)*a;var l=r.length,A=createTypedArray("float32",l);for(o=0;o<l;o+=1)A[o]=r[o]+(i[o]-r[o])*a;return A}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var n,r=e.length;t||(t=createTypedArray("float32",r));var i=createTypedArray("float32",r),s=BMMath.random();for(n=0;n<r;n+=1)i[n]=t[n]+s*(e[n]-t[n]);return i}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,n,r){var i,s=t.length,o=shapePool.newElement();o.setPathData(!!r,s);var a,l,A=[0,0];for(i=0;i<s;i+=1)a=e&&e[i]?e[i]:A,l=n&&n[i]?n[i]:A,o.setTripleAt(t[i][0],t[i][1],l[0]+t[i][0],l[1]+t[i][1],a[0]+t[i][0],a[1]+t[i][1],i,!0);return o}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-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 n,r,i=this.pv.length?this.pv.length:1,s=createTypedArray("float32",i),o=Math.floor(5*time);for(n=0,r=0;n<o;){for(r=0;r<i;r+=1)s[r]+=-e+2*e*BMMath.random();n+=1}var a=5*time,l=a-Math.floor(a),A=createTypedArray("float32",i);if(i>1){for(r=0;r<i;r+=1)A[r]=this.pv[r]+s[r]+(-e+2*e*BMMath.random())*l;return A}return this.pv+s[0]+(-e+2*e*BMMath.random())*l}.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 n=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(t,e,n,r,i){return applyEase(easeOutBez,t,e,n,r,i)}function easeIn(t,e,n,r,i){return applyEase(easeInBez,t,e,n,r,i)}function ease(t,e,n,r,i){return applyEase(easeInOutBez,t,e,n,r,i)}function applyEase(t,e,n,r,i,s){void 0===i?(i=n,s=r):e=(e-n)/(r-n),e>1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(i)){var a,l=i.length,A=createTypedArray("float32",l);for(a=0;a<l;a+=1)A[a]=(s[a]-i[a])*o+i[a];return A}return(s-i)*o+i}function nearestKey(t){var e,n,r,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(n=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(e=0;e<i-1;e+=1){if(t===data.k[e].t){n=e+1,r=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?(n=e+2,r=data.k[e+1].t):(n=e+1,r=data.k[e].t);break}}-1===n&&(n=e+1,r=data.k[e].t)}else n=0,r=0;var s={};return s.index=n,s.time=r/elem.comp.globalData.frameRate,s}function key(t){var e,n,r;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(r=i.length,n=0;n<r;n+=1)e[n]=i[n],e.value[n]=i[n];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,n=[];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=n.length;for(t=0;t<e;t+=1)n[t].release();n.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===n.indexOf(t)&&n.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 n,r=createSizedArray(e.viewData.length),i=e.viewData.length;for(n=0;n<i;n+=1)r[n]=new t(e.viewData[n],e.masksProperties[n]);return function(t){for(n=0;n<i;){if(e.masksProperties[n].nm===t)return r[n];n+=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 n(t,e,n){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(r){if(!t.numKeys)return 0;var i;i="s"in e.keyframes[r-1]?e.keyframes[r-1].s:"e"in e.keyframes[r-2]?e.keyframes[r-2].e:e.keyframes[r-2].s;var s="unidimensional"===n?new Number(i):Object.assign({},i);return s.time=e.keyframes[r-1].t/e.elem.comp.globalData.frameRate,s.value="unidimensional"===n?i[0]:i,s},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function r(){return t}return function(i){return i?"unidimensional"===i.propType?function(e){e&&"pv"in e||(e=t);var r=1/e.mult,i=e.pv*r,s=new Number(i);return s.value=i,n(s,e,"unidimensional"),function(){return e.k&&e.getValue(),i=e.v*r,s.value!==i&&((s=new Number(i)).value=i,s[0]=i,n(s,e,"unidimensional")),s}}(i):function(t){t&&"pv"in t||(t=e);var r=1/t.mult,i=t.data&&t.data.l||t.pv.length,s=createTypedArray("float32",i),o=createTypedArray("float32",i);return s.value=o,n(s,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<i;e+=1)o[e]=t.v[e]*r,s[e]=o[e];return s}}(i):r}}(),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 n,r,i,s;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?s=ExpressionPropertyInterface(t.p):(n=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(i=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[n(),r(),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 n=this.getMatrix(e);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,t)}function n(t,e){var n=this.getMatrix(e);return this.applyPoint(n,t)}function r(t,e){var n=this.getMatrix(e);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,t)}function i(t,e){var n=this.getMatrix(e);return this.invertPoint(n,t)}function s(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function o(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].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 n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(A){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=o,h.applyPoint=s,h.toWorld=n,h.toWorldVec=e,h.fromWorld=i,h.fromWorldVec=r,h.toComp=n,h.fromComp=a,h.sampleImage=l,h.sourceRectAtTime=A.sourceRectAtTime.bind(A),h._elem=A;var u=getDescriptor(c=TransformExpressionInterface(A.finalTransform.mProp),"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return A.hierarchy.length}},parent:{get:function(){return A.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 A.isInRange}}}),h.startTime=A.data.st,h.index=A.data.ind,h.source=A.data.refId,h.height=0===A.data.ty?A.data.h:100,h.width=0===A.data.ty?A.data.w:100,h.inPoint=A.data.ip/A.comp.globalData.frameRate,h.outPoint=A.data.op/A.comp.globalData.frameRate,h._name=A.data.nm,h.registerMaskInterface=function(t){h.mask=new MaskManagerInterface(t,A)},h.registerEffectsInterface=function(t){h.effect=t},h}}(),propertyGroupFactory=function(t,e){return function(n){return(n=void 0===n?1:n)<=0?t:e(n-1)}},PropertyInterface=function(t,e){var n={_name:t};return function(t){return(t=void 0===t?1:t)<=0?n:e(t-1)}},EffectsExpressionInterface=function(){function t(n,r,i,s){function o(t){for(var e=n.ef,r=0,i=e.length;r<i;){if(t===e[r].nm||t===e[r].mn||t===e[r].ix)return 5===e[r].ty?A[r]:A[r]();r+=1}throw new Error}var a,l=propertyGroupFactory(o,i),A=[],c=n.ef.length;for(a=0;a<c;a+=1)5===n.ef[a].ty?A.push(t(n.ef[a],r.effectElements[a],r.effectElements[a].propertyGroup,s)):A.push(e(r.effectElements[a],n.ef[a].ty,s,l));return"ADBE Color Control"===n.mn&&Object.defineProperty(o,"color",{get:function(){return A[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:l}}),o.enabled=0!==n.en,o.active=o.enabled,o}function e(t,e,n,r){var i=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===e?n.comp.compInterface(t.p.v):i()}}return{createEffectsInterface:function(e,n){if(e.effectsManager){var r,i=[],s=e.data.ef,o=e.effectsManager.effectElements.length;for(r=0;r<o;r+=1)i.push(t(s[r],e.effectsManager.effectElements[r],n,e));var a=e.data.ef||[],l=function(t){for(r=0,o=a.length;r<o;){if(t===a[r].nm||t===a[r].mn||t===a[r].ix)return i[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return a.length}}),l}return null}}}(),ShapePathInterface=function(t,e,n){var r=e.sh;function i(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?i.path:null}var s=propertyGroupFactory(i,n);return r.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(i,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:n}}),i},ShapeExpressionInterface=function(){function t(t,a,p){var d,f=[],g=t?t.length:0;for(d=0;d<g;d+=1)"gr"===t[d].ty?f.push(e(t[d],a[d],p)):"fl"===t[d].ty?f.push(n(t[d],a[d],p)):"st"===t[d].ty?f.push(s(t[d],a[d],p)):"tm"===t[d].ty?f.push(o(t[d],a[d],p)):"tr"===t[d].ty||("el"===t[d].ty?f.push(l(t[d],a[d],p)):"sr"===t[d].ty?f.push(A(t[d],a[d],p)):"sh"===t[d].ty?f.push(ShapePathInterface(t[d],a[d],p)):"rc"===t[d].ty?f.push(c(t[d],a[d],p)):"rd"===t[d].ty?f.push(h(t[d],a[d],p)):"rp"===t[d].ty?f.push(u(t[d],a[d],p)):"gf"===t[d].ty?f.push(r(t[d],a[d],p)):f.push(i(t[d],a[d])));return f}function e(e,n,r){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,r);var s=function(e,n,r){var i,s=function(t){for(var e=0,n=i.length;e<n;){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};s.propertyGroup=propertyGroupFactory(s,r),i=t(e.it,n.it,s.propertyGroup),s.numProperties=i.length;var o=a(e.it[e.it.length-1],n.it[n.it.length-1],s.propertyGroup);return s.transform=o,s.propertyIndex=e.cix,s._name=e.nm,s}(e,n,i.propertyGroup),o=a(e.it[e.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.content=s,i.transform=o,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 n(t,e,n){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function r(t,e,n){function r(t){return"Start Point"===t||"start point"===t?r.startPoint:"End Point"===t||"end point"===t?r.endPoint:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{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",n)),e.e.setGroupProperty(PropertyInterface("End Point",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function i(){return function(){return null}}function s(t,e,n){var r,i=propertyGroupFactory(A,n),s=propertyGroupFactory(l,i);function o(n){Object.defineProperty(l,t.d[n].nm,{get:ExpressionPropertyInterface(e.d.dataProps[n].p)})}var a=t.d?t.d.length:0,l={};for(r=0;r<a;r+=1)o(r),e.d.dataProps[r].p.setGroupProperty(s);function A(t){return"Color"===t||"color"===t?A.color:"Opacity"===t||"opacity"===t?A.opacity:"Stroke Width"===t||"stroke width"===t?A.strokeWidth:null}return Object.defineProperties(A,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_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)),A}function o(t,e,n){function r(e){return e===t.e.ix||"End"===e||"end"===e?r.end:e===t.s.ix?r.start:e===t.o.ix?r.offset:null}var i=propertyGroupFactory(r,n);return r.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",i)),e.e.setGroupProperty(PropertyInterface("End",i)),e.o.setGroupProperty(PropertyInterface("Offset",i)),r.propertyIndex=t.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),r.mn=t.mn,r}function a(t,e,n){function r(e){return t.a.ix===e||"Anchor Point"===e?r.anchorPoint:t.o.ix===e||"Opacity"===e?r.opacity:t.p.ix===e||"Position"===e?r.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?r.rotation:t.s.ix===e||"Scale"===e?r.scale:t.sk&&t.sk.ix===e||"Skew"===e?r.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?r.skewAxis:null}var i=propertyGroupFactory(r,n);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(r,{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}}),r.ty="tr",r.mn=t.mn,r.propertyGroup=n,r}function l(t,e,n){function r(e){return t.p.ix===e?r.position:t.s.ix===e?r.size:null}var i=propertyGroupFactory(r,n);r.propertyIndex=t.ix;var s="tm"===e.sh.ty?e.sh.prop:e.sh;return s.s.setGroupProperty(PropertyInterface("Size",i)),s.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(s.s)},position:{get:ExpressionPropertyInterface(s.p)},_name:{value:t.nm}}),r.mn=t.mn,r}function A(t,e,n){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.rotation:t.pt.ix===e?r.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?r.outerRadius:t.os.ix===e?r.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?r.innerRoundness:null:r.innerRadius}var i=propertyGroupFactory(r,n),s="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,s.or.setGroupProperty(PropertyInterface("Outer Radius",i)),s.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),s.pt.setGroupProperty(PropertyInterface("Points",i)),s.p.setGroupProperty(PropertyInterface("Position",i)),s.r.setGroupProperty(PropertyInterface("Rotation",i)),t.ir&&(s.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),s.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(s.p)},rotation:{get:ExpressionPropertyInterface(s.r)},points:{get:ExpressionPropertyInterface(s.pt)},outerRadius:{get:ExpressionPropertyInterface(s.or)},outerRoundness:{get:ExpressionPropertyInterface(s.os)},innerRadius:{get:ExpressionPropertyInterface(s.ir)},innerRoundness:{get:ExpressionPropertyInterface(s.is)},_name:{value:t.nm}}),r.mn=t.mn,r}function c(t,e,n){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?r.size:null}var i=propertyGroupFactory(r,n),s="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,s.p.setGroupProperty(PropertyInterface("Position",i)),s.s.setGroupProperty(PropertyInterface("Size",i)),s.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(s.p)},roundness:{get:ExpressionPropertyInterface(s.r)},size:{get:ExpressionPropertyInterface(s.s)},_name:{value:t.nm}}),r.mn=t.mn,r}function h(t,e,n){function r(e){return t.r.ix===e||"Round Corners 1"===e?r.radius:null}var i=propertyGroupFactory(r,n),s=e;return r.propertyIndex=t.ix,s.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(s.rd)},_name:{value:t.nm}}),r.mn=t.mn,r}function u(t,e,n){function r(e){return t.c.ix===e||"Copies"===e?r.copies:t.o.ix===e||"Offset"===e?r.offset:null}var i=propertyGroupFactory(r,n),s=e;return r.propertyIndex=t.ix,s.c.setGroupProperty(PropertyInterface("Copies",i)),s.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(s.c)},offset:{get:ExpressionPropertyInterface(s.o)},_name:{value:t.nm}}),r.mn=t.mn,r}return function(e,n,r){var i;function s(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?r:i[t-1];for(var e=0,n=i.length;e<n;){if(i[e]._name===t)return i[e];e+=1}return null}return s.propertyGroup=propertyGroupFactory(s,function(){return r}),i=t(e,n,s.propertyGroup),s.numProperties=i.length,s._name="Contents",s}}(),TextExpressionInterface=function(t){var e;function n(t){return"ADBE Text Document"===t?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){t.textProperty.getValue();var n=t.textProperty.currentData.t;return e&&n===e.value||((e=new String(n)).value=n||new String(n),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),n};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="",n=t.getFootageData();function r(t){if(n[t])return e=t,"object"===_typeof(n=n[t])?r:n;var i=t.indexOf(e);if(-1!==i){var s=parseInt(t.substr(i+e.length),10);return"object"===_typeof(n=n[s])?r:n}return""}return function(){return e="",n=t.getFootageData(),r}}(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,n){e.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(t,e,n).bind(n)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),n=this.getValueAtTime(t+-.01),r=0;if(e.length){var i;for(i=0;i<e.length;i+=1)r+=Math.pow(n[i]-e[i],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,n,r=-.001,i=this.getValueAtTime(t),s=this.getValueAtTime(t+r);if(i.length)for(e=createTypedArray("float32",i.length),n=0;n<i.length;n+=1)e[n]=(s[n]-i[n])/r;else e=(s-i)/r;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,n){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var r,i,s,o,a,l=this.comp.renderedFrame,A=this.keyframes,c=A[A.length-1].t;if(l<=c)return this.pv;if(n?i=c-(r=e?Math.abs(c-this.elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>A.length-1)&&(e=A.length-1),r=c-(i=A[A.length-1-e].t)),"pingpong"===t){if(Math.floor((l-i)/r)%2!=0)return this.getValueAtTime((r-(l-i)%r+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(((l-i)%r+i)/this.comp.globalData.frameRate,0),d=Math.floor((l-i)/r);if(this.pv.length){for(o=(a=new Array(h.length)).length,s=0;s<o;s+=1)a[s]=(u[s]-h[s])*d+p[s];return a}return(u-h)*d+p}if("continue"===t){var f=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(a=new Array(f.length)).length,s=0;s<o;s+=1)a[s]=f[s]+(f[s]-g[s])*((l-c)/this.comp.globalData.frameRate)/5e-4;return a}return f+(l-c)/.001*(f-g)}}return this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0)}function e(t,e,n){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,i,s,o,a,l=this.comp.renderedFrame,A=this.keyframes,c=A[0].t;if(l>=c)return this.pv;if(n?i=c+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):((!e||e>A.length-1)&&(e=A.length-1),r=(i=A[e].t)-c),"pingpong"===t){if(Math.floor((c-l)/r)%2==0)return this.getValueAtTime(((c-l)%r+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((r-(c-l)%r+c)/this.comp.globalData.frameRate,0),d=Math.floor((c-l)/r)+1;if(this.pv.length){for(o=(a=new Array(h.length)).length,s=0;s<o;s+=1)a[s]=p[s]-(u[s]-h[s])*d;return a}return p-(u-h)*d}if("continue"===t){var f=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(a=new Array(f.length)).length,s=0;s<o;s+=1)a[s]=f[s]+(f[s]-g[s])*(c-l)/.001;return a}return f+(f-g)*(c-l)/.001}}return this.getValueAtTime((r-((c-l)%r+c))/this.comp.globalData.frameRate,0)}function n(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var n,r,i=this.comp.renderedFrame/this.comp.globalData.frameRate,s=i-t,o=e>1?(i+t-s)/(e-1):1,a=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;a<e;){if(r=this.getValueAtTime(s+a*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]+=r[l];else n+=r;a+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]/=e;else n/=e;return n}function r(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(t);e.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(t);e.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(t),s=this.sa.getValueAtTime(t);e.skewFromAxis(-i*this.sk.mult,s*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(t);e.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var a=this.rz.getValueAtTime(t),l=this.ry.getValueAtTime(t),A=this.rx.getValueAtTime(t),c=this.or.getValueAtTime(t);e.rotateZ(-a*this.rz.mult).rotateY(l*this.ry.mult).rotateX(A*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 d=this.p.getValueAtTime(t);e.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return e}function i(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,n){var o=s(t,e,n);return o.dynamicProperties.length?o.getValueAtTime=r.bind(o):o.getValueAtTime=i.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(r,i,s,a,l){var A=o(r,i,s,a,l);A.kf?A.getValueAtTime=expressionHelpers.getValueAtTime.bind(A):A.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(A),A.setGroupProperty=expressionHelpers.setGroupProperty,A.loopOut=t,A.loopIn=e,A.smooth=n,A.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(A),A.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(A),A.numKeys=1===i.a?i.k.length:0,A.propertyIndex=i.ix;var c=0;return 0!==s&&(c=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),A._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(r,i,A),A.k&&l.addDynamicProperty(A),A};var a=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function A(){}A.prototype={vertices:function(t,e){this.k&&this.getValue();var n,r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0));var i=r._length,s=r[t],o=r.v,a=createSizedArray(i);for(n=0;n<i;n+=1)a[n]="i"===t||"o"===t?[s[n][0]-o[n][0],s[n][1]-o[n][1]]:[s[n][0],s[n][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 n=this.v;void 0!==e&&(n=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var r,i=this._segmentsLength,s=i.lengths,o=i.totalLength*t,a=0,l=s.length,A=0;a<l;){if(A+s[a].addedLength>o){var c=a,h=n.c&&a===l-1?0:a+1,u=(o-A)/s[a].addedLength;r=bez.getPointInSegment(n.v[c],n.v[h],n.o[c],n.i[h],u,s[a]);break}A+=s[a].addedLength,a+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(t,e,n){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),i=this.pointOnPath(t+.001,e),s=i[0]-r[0],o=i[1]-r[1],a=Math.sqrt(Math.pow(s,2)+Math.pow(o,2));return 0===a?[0,0]:"tangent"===n?[s/a,o/a]:[-o/a,s/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([A],a),extendPrototype([A],l),l.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},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,n,r,i){var s=c(t,e,n,r,i);return s.propertyIndex=e.ix,s.lock=!1,3===n?expressionHelpers.searchExpressions(t,e.pt,s):4===n&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var n=this.calculateExpression(e);if(t.t!==n){var r={};return this.copyData(r,t),r.t=n.toString(),r.__complete=!1,r}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 n,r,i=createNS("feMerge");for(i.setAttribute("result",t),r=0;r<e.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",e[r]),i.appendChild(n),i.appendChild(n);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,n,r,i){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",r+"_tint_1"),t.appendChild(s),(s=createNS("feColorMatrix")).setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",r+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var o=this.createMergeNode(r,[i,r+"_tint_1",r+"_tint_2"]);t.appendChild(o)}function SVGFillFilter(t,e,n,r){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",r),t.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(t,e,n){this.initialized=!1,this.filterManager=e,this.elem=n,this.paths=[]}function SVGTritoneFilter(t,e,n,r){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 s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",r),this.matrixFilter=s;var o=createNS("feFuncR");o.setAttribute("type","table"),s.appendChild(o),this.feFuncR=o;var a=createNS("feFuncG");a.setAttribute("type","table"),s.appendChild(a),this.feFuncG=a;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,t.appendChild(s)}function SVGProLevelsFilter(t,e,n,r){this.filterManager=e;var i=this.filterManager.effectElements,s=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",s)),(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",s)),(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",s)),(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",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(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)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",r),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,e,n,r,i){var s=e.container.globalData.renderConfig.filterSize,o=e.data.fs||s;t.setAttribute("x",o.x||s.x),t.setAttribute("y",o.y||s.y),t.setAttribute("width",o.width||s.width),t.setAttribute("height",o.height||s.height),this.filterManager=e;var a=createNS("feGaussianBlur");a.setAttribute("in","SourceAlpha"),a.setAttribute("result",r+"_drop_shadow_1"),a.setAttribute("stdDeviation","0"),this.feGaussianBlur=a,t.appendChild(a);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,t.appendChild(l);var A=createNS("feFlood");A.setAttribute("flood-color","#00ff00"),A.setAttribute("flood-opacity","1"),A.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=A,t.appendChild(A);var c=createNS("feComposite");c.setAttribute("in",r+"_drop_shadow_3"),c.setAttribute("in2",r+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(c);var h=this.createMergeNode(r,[r+"_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,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",n[0]-e[0]+" 0 0 0 "+e[0]+" "+(n[1]-e[1])+" 0 0 0 "+e[1]+" "+(n[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,n=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 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,n,r,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=1+(n=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);n<r;n+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:n});if(3===this.filterManager.effectElements[10].p.v){var s=createNS("mask"),o=createElementID();s.setAttribute("id",o),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var a=createNS("g");for(a.setAttribute("mask","url("+getLocationHref()+"#"+o+")");i[0];)a.appendChild(i[0]);this.elem.layerElement.appendChild(a),this.masker=s,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 n,r,i=this.paths.length;for(e=0;e<i;e+=1)if(-1!==this.paths[e].m&&(n=this.elem.maskManager.viewData[this.paths[e].m],r=this.paths[e].p,(t||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.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||n.prop._mdf)){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.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),l=r.getTotalLength();s="0 0 0 "+l*o+" ";var A,c=l*(a-o),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,u=Math.floor(c/h);for(A=0;A<u;A+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*l+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",s)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",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,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,i=r[0]+" "+n[0]+" "+e[0],s=r[1]+" "+n[1]+" "+e[1],o=r[2]+" "+n[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var n=createNS(t);return n.setAttribute("type","table"),e.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(t,e,n,r,i){for(var s,o,a=0,l=Math.min(t,e),A=Math.max(t,e),c=Array.call(null,{length:256}),h=0,u=i-r,p=e-t;a<=256;)o=(s=a/256)<=l?p<0?i:r:s>=A?p<0?r:i:r+u*Math.pow((s-t)/p,1/n),c[h]=o,h+=1,a+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,n=this.filterManager.effectElements;this.feFuncRComposed&&(t||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(e=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(e=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(e=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(e=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(e=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[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 n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),s=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,n){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(t,e,n,r){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",r),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,n=_svgMatteSymbols.length;e<n;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var n=t.layerElement.parentNode;if(n){for(var r,i=n.children,s=0,o=i.length;s<o&&i[s]!==t.layerElement;)s+=1;s<=o-2&&(r=i[s+1]);var a=createNS("use");a.setAttribute("href","#"+e),r?n.insertBefore(a,r):n.appendChild(a)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",e.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var i=t.globalData.defs;i.appendChild(r);var s=createNS("symbol");s.setAttribute("id",n),this.replaceInParent(e,n),s.appendChild(e.layerElement),i.appendChild(s);var o=createNS("use");o.setAttribute("href","#"+n),r.appendChild(o),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,n=0,r=e.length;n<r;)e[n]&&e[n].data.ind===t&&this.setElementAsMask(this.elem,e[n]),n+=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,n=this.filterManager.effectElements[1].p.v,r=3==n?0:e,i=2==n?0:e;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+i);var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},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,n=e[0].p.v,r=e[1].p.v,i=1===e[2].p.v,s=e[3].p.v,o=i?s:e[4].p.v,a=e[5].p.v,l=e[6].p.v,A=e[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(.01*o,.01*s,1),this.matrix.rotate(-A*degToRads),this.matrix.skewFromAxis(-a*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[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())},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,n){"use strict";var r=n(41694);t.exports=function(t){return r(t)||0===t?t:t<0?-1:1}},86481(t,e,n){"use strict";n.d(e,{t:()=>l});var r=n(51918);const i=(t,e,n)=>{if(t&&"reportValidity"in t){const i=(0,r.Jt)(n,e);t.setCustomValidity(i&&i.message||""),t.reportValidity()}},s=(t,e)=>{for(const n in e.fields){const r=e.fields[n];r&&r.ref&&"reportValidity"in r.ref?i(r.ref,n,t):r.refs&&r.refs.forEach(e=>i(e,n,t))}},o=(t,e)=>{e.shouldUseNativeValidation&&s(t,e);const n={};for(const i in t){const s=(0,r.Jt)(e.fields,i),o=Object.assign(t[i]||{},{ref:s&&s.ref});if(a(e.names||Object.keys(t),i)){const t=Object.assign({},(0,r.Jt)(n,i));(0,r.hZ)(t,"root",o),(0,r.hZ)(n,i,t)}else(0,r.hZ)(n,i,o)}return n},a=(t,e)=>t.some(t=>t.startsWith(e+"."));function l(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),function(i,a,l){try{return Promise.resolve(function(r,o){try{var A=(e.context,Promise.resolve(t["sync"===n.mode?"validateSync":"validate"](i,Object.assign({abortEarly:!1},e,{context:a}))).then(function(t){return l.shouldUseNativeValidation&&s({},l),{values:n.raw?i:t,errors:{}}}))}catch(t){return o(t)}return A&&A.then?A.then(void 0,o):A}(0,function(t){if(!t.inner)throw t;return{values:{},errors:o((e=t,n=!l.shouldUseNativeValidation&&"all"===l.criteriaMode,(e.inner||[]).reduce(function(t,e){if(t[e.path]||(t[e.path]={message:e.message,type:e.type}),n){var i=t[e.path].types,s=i&&i[e.type];t[e.path]=(0,r.Gb)(e.path,n,t,e.type,s?[].concat(s,e.message):e.message)}return t},{})),l)};var e,n}))}catch(t){return Promise.reject(t)}}}},89383(t,e,n){"use strict";n.d(e,{Bi:()=>v,_R:()=>I,dF:()=>b,g$:()=>C,gh:()=>S,go:()=>l,jL:()=>x,lW:()=>B,xg:()=>k});var r=n(90415),i=n(91420),s=n(28350),o=n(12303),a=n(49408);function l(t,e,n=null){const i=(0,r.getRootOwnerDocument)(n),s=n?(0,r.getDOMShadowRoots)(n):[],o=null!==n&&s.length>0;if(o&&"function"==typeof i.caretPositionFromPoint){const o=i.caretPositionFromPoint(t,e,{shadowRoots:s});if(null!==o&&function(t,e){for(let n=t;null!==n;){if(n===e)return!0;n=(0,r.getParentElement)(n)}return!1}(o.offsetNode,n))return{node:o.offsetNode,offset:o.offset}}if(o){const s=n.getRootNode();if((0,r.isDOMShadowRoot)(s)){const r=s.elementFromPoint(t,e);if(null!==r&&n.contains(r)){const n=function(t,e,n,r){const i=r.createRange(),s=t=>e<t.top?t.top-e:e>t.bottom?e-t.bottom:0,o=e=>t<e.left?e.left-t:t>e.right?t-e.right:0,a=r.createTreeWalker(n,NodeFilter.SHOW_TEXT);let l=null,A=1/0,c=1/0;for(let t=a.nextNode();t;t=a.nextNode()){i.selectNodeContents(t);for(const e of i.getClientRects()){const n=s(e),r=o(e);(n<A||n===A&&r<c)&&(A=n,c=r,l=t)}}if(null===l)return null;let h=0,u=1/0,p=1/0;for(let e=0;e<=l.length;e++){i.setStart(l,e),i.collapse(!0);const n=i.getBoundingClientRect(),r=s(n),o=Math.abs(t-n.left);(r<u||r===u&&o<p)&&(u=r,p=o,h=e)}return{node:l,offset:h}}(t,e,r,i);if(null!==n)return n}}}if("function"==typeof i.caretRangeFromPoint){const n=i.caretRangeFromPoint(t,e);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("function"==typeof i.caretPositionFromPoint){const n=i.caretPositionFromPoint(t,e);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}function A(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const c={"application/x-lexical-editor":0,"text/html":10,"text/plain":20,"text/uri-list":30};const h=(t,e)=>{if(!(0,r.$isRangeSelection)(e))return e.insertRawText(t),!0;const n=t=>{const e=(0,r.$getSelection)();(0,r.$isRangeSelection)(e)&&t(e)};return(0,r.tokenizeRawText)(t,{linebreak:()=>n(t=>t.insertParagraph()),tab:()=>n(t=>t.insertNodes([(0,r.$createTabNode)()])),text:t=>n(e=>e.insertText(t))}),!0},u={"application/x-lexical-editor":[(t,e,n)=>{try{const n=(0,r.$getEditor)(),i=JSON.parse(t);if(i&&i.namespace===n._config.namespace&&Array.isArray(i.nodes))return w(n,C(i.nodes),e),!0}catch(t){console.error(t)}return n()}],"text/html":[(t,e,n)=>{try{const n=(0,r.$getEditor)(),i=(new DOMParser).parseFromString(function(t){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:t=>t}).createHTML(t):t}(t),"text/html");return w(n,(0,s.dh)(n,i),e),!0}catch(t){return console.error(t),n()}}],"text/plain":[h],"text/uri-list":[h]};function p(t,e,n,r){if(!t)return!1;const i=s=>!!t[s]&&t[s](e,n,i.bind(null,s-1),r);return i(t.length-1)}function d(t,e,n){const r=e.getData("text/plain");for(const i of function(t){return Object.keys(t.$importMimeType).filter(e=>void 0!==t.$importMimeType[e]).sort((e,n)=>{const r=t.priority[e],i=t.priority[n];return void 0===r&&void 0===i?e<n?-1:e>n?1:0:void 0===r?1:void 0===i?-1:r-i})}(t)){const s=e.getData(i);if(s&&("text/html"!==i||s!==r)&&p(t.$importMimeType[i],s,n,e))return!0}return!1}const f={$importMimeType:u,$insertDataTransfer:(t,e)=>d({$importMimeType:u,priority:c},t,e),priority:c},g=(0,r.defineExtension)({build:(t,e)=>({$importMimeType:e.$importMimeType,$insertDataTransfer:(t,n)=>d(e,t,n),priority:e.priority}),config:(0,r.safeCast)({$importMimeType:u,priority:c}),mergeConfig(t,e){const n=(0,r.shallowMergeConfig)(t,e);if(e.$importMimeType){const r={...t.$importMimeType};for(const[t,n]of Object.entries(e.$importMimeType))if(n){const e=r[t];r[t]=e?[...e,...n]:n}n.$importMimeType=r}return e.priority&&(n.priority={...t.priority,...e.priority}),n},name:"@lexical/clipboard/Import"});function m(t,e=(0,r.$getSelection)()){return null==e&&A(166),(0,r.$isRangeSelection)(e)&&e.isCollapsed()||0===e.getNodes().length?"":(0,s.g2)(t,e)}function y(t,e=(0,r.$getSelection)()){return null==e&&A(166),(0,r.$isRangeSelection)(e)&&e.isCollapsed()||0===e.getNodes().length?null:JSON.stringify(S(t,e))}function v(t,e,n){(function(){const t=(0,i.cP)(g.name);return t?t.output:f})().$insertDataTransfer(t,e)}s._e;const O="application/x-lexical-drag";function b(t,e){const n={editorKey:e.getKey()};t.setData(O,JSON.stringify(n))}function x(t,e){return function(t,e,n){const i=t.dataTransfer;if(null===i)return!1;const s=function(t){const e=t.getData(O);if(!e)return null;let n;try{n=JSON.parse(e)}catch(t){return null}return null!==(r=n)&&"object"==typeof r&&"editorKey"in r&&"string"==typeof r.editorKey?n:null;var r}(i);if(null===s)return!1;const o=function(t,e){const n=l(t.clientX,t.clientY,e.getRootElement());if(null===n)return null;const i=(0,r.$getNearestNodeFromDOMNode)(n.node);if(null===i)return null;if((0,r.$isTextNode)(i))return(0,r.$getTextPointCaret)(i,"next",n.offset);if((0,r.$isElementNode)(i))return(0,r.$getChildCaretAtIndex)(i,n.offset,"next");const s=i.getParent();return null===s?null:(0,r.$getChildCaretAtIndex)(s,i.getIndexWithinParent()+1,"next")}(t,e);if(null===o)return!1;const a=(0,r.$splitAtPointCaretNext)(o);if(null===a)return!1;const A=s.editorKey===e.getKey(),c=(0,r.$getSelection)();if(A){if(!(0,r.$isRangeSelection)(c)||c.isCollapsed())return!1;if(function(t,e){const{anchor:n,focus:i}=(0,r.$getCaretRangeInDirection)((0,r.$caretRangeFromSelection)(e),"next");return(0,r.$comparePointCaretNext)(n,t)<0&&(0,r.$comparePointCaretNext)(t,i)<0}(o,c))return t.preventDefault(),!0;c.removeText()}if(!a.origin.isAttached())return t.preventDefault(),!0;if(n(i,(0,r.$setSelectionFromCaretRange)((0,r.$getCollapsedCaretRange)(a)),e),!A){const t=e.getRootElement(),n=t?t.ownerDocument:null,i=n?function(t,e){for(const n of(0,r.findAllLexicalElementsDeep)(e)){const e=(0,r.getEditorPropertyFromDOMNode)(n);if((0,r.isLexicalEditor)(e)&&e.getKey()===t&&(0,r.isHTMLElement)(n))return n}return null}(s.editorKey,n):null;null!==i&&i.dispatchEvent(new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteByDrag"}))}return t.preventDefault(),!0}(t,e,v)}function w(t,e,n){t.dispatchCommand(r.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,{nodes:e,selection:n})||(n.insertNodes(e),function(t){if((0,r.$isRangeSelection)(t)&&t.isCollapsed()){const e=t.anchor;let n=null;const i=(0,r.$caretFromPoint)(e,"previous");if(i)if((0,r.$isTextPointCaret)(i))n=i.origin;else{const t=(0,r.$getCaretRange)(i,(0,r.$getChildCaret)((0,r.$getRoot)(),"next").getFlipped());for(const e of t){if((0,r.$isTextNode)(e.origin)){n=e.origin;break}if((0,r.$isElementNode)(e.origin)&&!e.origin.isInline())break}}if(n&&(0,r.$isTextNode)(n)){const e=n.getFormat(),r=n.getStyle();t.format===e&&t.style===r||(t.format=e,t.style=r,t.dirty=!0)}}}(n))}function _(t,e,n,i=[]){let s=null===e||n.isSelected(e);const a=(0,r.$isElementNode)(n)&&n.excludeFromCopy("html");let l=n;null!==e&&(0,r.$isTextNode)(l)&&(l=(0,o.SD)(e,l,"clone"));const c=(0,r.$isElementNode)(l)?l.getChildren():[],h=function(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&A(58,n.name),(0,r.$isElementNode)(t)){const t=e.children;Array.isArray(t)||A(59,n.name)}return e}(l);(0,r.$isTextNode)(l)&&0===l.getTextContentSize()&&(s=!1);const u=s&&(0,r.$isNodeSelection)(e)&&(0,r.$isElementNode)(n)?null:e;for(let i=0;i<c.length;i++){const o=c[i],a=_(t,u,o,h.children);!s&&(0,r.$isElementNode)(n)&&a&&n.extractWithChild(o,e,"clone")&&(s=!0)}if(s&&!a){const e=(0,r.$getSlotNames)(l);if(e.length>0){const n={};for(const i of e){const e=(0,r.$getSlot)(l,i);null===e&&A(366,l.constructor.name,i);const s=[];_(t,null,e,s),1===s.length&&s[0].type===e.getType()||A(385,i,l.constructor.name,String(s.length),String(s.length>0?s[0].type:"none")),n[i]=s[0]}h.$slots=n}}if(s&&!a)i.push(h);else if(Array.isArray(h.children))for(let t=0;t<h.children.length;t++){const e=h.children[t];i.push(e)}return s}function S(t,e){const n=[],i=(0,r.$getRoot)(),s=(0,r.$isRangeSelection)(e)?e.anchor.getNode():(0,r.$isNodeSelection)(e)?e.getNodes()[0]??null:null,o=null!==s?(0,r.$getSlotFrame)(s):null,a=((0,r.$isElementNode)(o)?o:i).getChildren();for(let r=0;r<a.length;r++)_(t,e,a[r],n);return{namespace:t._config.namespace,nodes:n}}function C(t){const e=[];for(const n of t)e.push((0,r.$parseSerializedNode)(n));return e}let E=null;async function B(t,e,n){if(null!==E)return!1;if(null!==e)return new Promise((r,i)=>{t.update(()=>{r(T(t,e,n))})});const i=t.getRootElement(),s=t._window||window,o=s.document,l=(0,r.getDOMSelection)(s);if(null===i||null===l)return!1;const A=o.createElement("span");A.style.position="fixed",A.style.top="-1000px",A.append(o.createTextNode("#")),i.append(A);const c=o.createRange();return c.setStart(A,0),c.setEnd(A,1),l.removeAllRanges(),l.addRange(c),new Promise((e,i)=>{const l=t.registerCommand(r.COPY_COMMAND,r=>((0,a.xj)(r,ClipboardEvent)&&(l(),null!==E&&(s.clearTimeout(E),E=null),e(T(t,r,n))),!0),r.COMMAND_PRIORITY_CRITICAL);E=s.setTimeout(()=>{l(),E=null,e(!1)},50),o.execCommand("copy"),A.remove()})}function T(t,e,n){if(void 0===n){const e=(0,r.getDOMSelection)(t._window),i=(0,r.$getSelection)();if(!i||i.isCollapsed())return!1;if(!e)return!1;const s=(0,r.getDOMSelectionPoints)(e,t.getRootElement()),o=s.anchorNode,a=s.focusNode;if(null!==o&&null!==a&&!(0,r.isSelectionWithinEditor)(t,o,a))return!1;n=k(i)}e.preventDefault();const i=e.clipboardData;return null!==i&&(I(i,n),!0)}const P=[["text/html",m],["application/x-lexical-editor",y]];function k(t=(0,r.$getSelection)()){return function(t,e){const n={"text/plain":""};for(const[r,i]of Object.entries(t))if(i){const t=Q(i,e);null!==t&&(n[r]=t)}return n}(function(t=(0,r.$getEditor)()){const e=(0,i.xT)(t,F.name);return e?e.output:N}(),t)}function I(t,e){for(const[n]of P)void 0===e[n]&&t.setData(n,"");for(const n in e){const r=e[n];void 0!==r&&t.setData(n,r)}}const N={"application/x-lexical-editor":[(t,e)=>t?y((0,r.$getEditor)(),t):e()],"text/html":[(t,e)=>t?m((0,r.$getEditor)(),t):e()],"text/plain":[(t,e)=>t?t.getTextContent():e()]};function Q(t,e){const n=r=>t[r]?t[r](e,n.bind(null,r-1)):null;return n(t.length-1)}const F=(0,r.defineExtension)({build:(t,e,n)=>e.$exportMimeType,config:(0,r.safeCast)({$exportMimeType:N}),mergeConfig(t,e){const n=(0,r.shallowMergeConfig)(t,e);if(e.$exportMimeType){const r={...t.$exportMimeType};for(const[t,n]of Object.entries(e.$exportMimeType))if(n){const e=r[t];r[t]=e?[...e,...n]:n}n.$exportMimeType=r}return n},name:"@lexical/clipboard/GetClipboardData"})},50804(t,e,n){"use strict";n.d(e,{Pc:()=>u,Ug:()=>c});var r=n(91420),i=n(90415);const s={bold:"bold",italic:"italic",strikeThrough:"strikethrough",subscript:"subscript",superscript:"superscript",underline:"underline"},o=Symbol.for("@lexical/dragon/WindowState");function a(t,e,n){const r=function(t){let e=t[o];return void 0===e&&(e={dispose:()=>{},editors:new Map,installs:new Set},t[o]=e),e}(t);if(0===r.installs.size){const e=h.bind(t);t.addEventListener("message",e,!0),r.dispose=()=>{t.removeEventListener("message",e,!0)}}if(r.installs.add(e),n){const t=r.editors.get(n)||new Set;t.add(e),r.editors.set(n,t)}return l.bind(null,t,r,e,n)}function l(t,e,n,r){if(r){const t=e.editors.get(r);t&&t.delete(n)&&0===t.size&&e.editors.delete(r)}e.installs.delete(n)&&0===e.installs.size&&(e.dispose(),delete t[o])}function A(t){return t&&t.ownerDocument.defaultView}function c(t){const e=(0,r.jX)(()=>A(t.getRootElement()),e=>t.registerRootListener(t=>{e.value=A(t)}));return(0,r.QZ)(()=>{const n=e.value;if(n)return a(n,Symbol("@lexical/dragon/editorInstall"),t)})}function h(t){if(t.origin!==this.location.origin)return;const e=function(t){const e=t[o];if(void 0===e)return null;const n=(0,i.getEditorPropertyFromDOMNode)((0,i.getActiveElementDeep)(t.document));return(0,i.isLexicalEditor)(n)&&e.editors.has(n)?n:null}(this);if(null===e)return;const n=t.data;if("string"==typeof n){let r;try{r=JSON.parse(n)}catch(t){return}if(r&&"nuanria_messaging"===r.protocol&&"request"===r.type){const n=r.payload;if(n&&"makeChanges"===n.functionId){const r=n.args;if(Array.isArray(r)){const[n,o,a,l,A,c]=r;if(![n,o,l,A].every(Number.isFinite)||"string"!=typeof a&&-1!==a)return;e.update(()=>{const e=(0,i.$getSelection)();if((0,i.$isRangeSelection)(e)){const r=e.anchor;let h=r.getNode(),u=0,p=0;if((0,i.$isTextNode)(h)&&n>=0&&o>=0&&(u=n,p=n+o,e.setTextNodeRange(h,u,h,p)),"string"!=typeof a||u===p&&""===a||(e.insertRawText(a),h=r.getNode()),(0,i.$isTextNode)(h)){const t=h.getTextContentSize();u=Math.min(Math.max(l,0),t),p=l<0||A<0?u:Math.min(l+A,t),e.setTextNodeRange(h,u,h,p)}if("string"==typeof c&&A>0&&!e.isCollapsed()){const t=s[c];void 0!==t&&e.formatText(t)}t.stopImmediatePropagation()}})}}}}}const u=(0,i.defineExtension)({build:(t,e,n)=>(0,r.v)(e),config:(0,i.safeCast)({disabled:"undefined"==typeof window}),name:"@lexical/dragon",register:(t,e,n)=>(0,r.QZ)(()=>n.getOutput().disabled.value?void 0:c(t))})},91420(t,e,n){"use strict";n.d(e,{Bw:()=>pt,C_:()=>G,Hd:()=>At,MM:()=>mt,PL:()=>lt,QZ:()=>B,SY:()=>ct,XT:()=>P,cP:()=>nt,fS:()=>ot,fU:()=>et,gn:()=>ht,iZ:()=>q,jX:()=>I,jZ:()=>X,s0:()=>st,v:()=>T,vA:()=>a,vP:()=>v,vw:()=>ft,wD:()=>J,xT:()=>tt});var r=n(90415),i=n(49408);const s=Symbol.for("preact-signals");function o(){if(u>1)return void u--;let t,e=!1;for(function(){let t=h;for(h=void 0;void 0!==t;)t.S.v===t.v&&(t.S.i=t.i),t=t.o}();void 0!==A;){let n=A;for(A=void 0,p++;void 0!==n;){const r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&O(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=r}}if(p=0,u--,e)throw t}function a(t){if(u>0)return t();f=++d,u++;try{return t()}finally{o()}}let l,A;function c(t){const e=l;l=void 0;try{return t()}finally{l=e}}let h,u=0,p=0,d=0,f=0,g=0;function m(t){if(void 0===l)return;let e=t.n;return void 0===e||e.t!==l?(e={i:0,S:t,p:l.s,n:void 0,t:l,e:void 0,x:void 0,r:e},void 0!==l.s&&(l.s.n=e),l.s=e,t.n=e,32&l.f&&t.S(e),e):-1===e.i?(e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=l.s,e.n=void 0,l.s.n=e,l.s=e),e):void 0}function y(t,e){this.v=t,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==e?void 0:e.watched,this.Z=null==e?void 0:e.unwatched,this.name=null==e?void 0:e.name}function v(t,e){return new y(t,e)}function O(t){for(let e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function b(t){for(let e=t.s;void 0!==e;e=e.n){const n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function x(t){let e,n=t.s;for(;void 0!==n;){const t=n.p;-1===n.i?(n.S.U(n),void 0!==t&&(t.n=n.n),void 0!==n.n&&(n.n.p=t)):e=n,n.S.n=n.r,void 0!==n.r&&(n.r=void 0),n=t}t.s=e}function w(t,e){y.call(this,void 0),this.x=t,this.s=void 0,this.g=g-1,this.f=4,this.W=null==e?void 0:e.watched,this.Z=null==e?void 0:e.unwatched,this.name=null==e?void 0:e.name}function _(t){const e=t.m;if(t.m=void 0,"function"==typeof e){u++;const n=l;l=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,S(t),e}finally{l=n,o()}}}function S(t){for(let e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,_(t)}function C(t){if(l!==this)throw new Error("Out-of-order effect");x(this),l=t,this.f&=-2,8&this.f&&S(this),o()}function E(t,e){this.x=t,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==e?void 0:e.name}function B(t,e){const n=new E(t,e);try{n.c()}catch(t){throw n.d(),t}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function T(t,e={}){const n={};for(const r in t){const i=e[r],s=v(void 0===i?t[r]:i);n[r]=s}return n}function P(t){const e=new Set,n=new Set;for(const i of k(t)){const t="function"==typeof i?i:i.replace;(0,r.getStaticNodeConfig)(t),e.add(t.getType()),n.add(t)}return{nodes:n,types:e}}function k(t){return("function"==typeof t.nodes?t.nodes():t.nodes)||[]}function I(t,e){let n;return v(t(),{unwatched(){n&&(n(),n=void 0)},watched(){this.value=t(),n=e(this)}})}y.prototype.brand=s,y.prototype.h=function(){return!0},y.prototype.S=function(t){const e=this.t;e!==t&&void 0===t.e&&(t.x=e,this.t=t,void 0!==e?e.e=t:c(()=>{var t;null==(t=this.W)||t.call(this)}))},y.prototype.U=function(t){if(void 0!==this.t){const e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n,void 0===n&&c(()=>{var t;null==(t=this.Z)||t.call(this)}))}},y.prototype.subscribe=function(t){return B(()=>{const e=this.value,n=l;l=void 0;try{t(e)}finally{l=n}},{name:"sub"})},y.prototype.valueOf=function(){return this.value},y.prototype.toString=function(){return this.value+""},y.prototype.toJSON=function(){return this.value},y.prototype.peek=function(){const t=l;l=void 0;try{return this.value}finally{l=t}},Object.defineProperty(y.prototype,"value",{get(){const t=m(this);return void 0!==t&&(t.i=this.i),this.v},set(t){if(t!==this.v){if(p>100)throw new Error("Cycle detected");!function(t){0!==u&&0===p&&t.l!==f&&(t.l=f,h={S:t,v:t.v,i:t.i,o:h})}(this),this.v=t,this.i++,g++,u++;try{for(let t=this.t;void 0!==t;t=t.x)t.t.N()}finally{o()}}}}),w.prototype=new y,w.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===g)return!0;if(this.g=g,this.f|=1,this.i>0&&!O(this))return this.f&=-2,!0;const t=l;try{b(this),l=this;const t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return l=t,x(this),this.f&=-2,!0},w.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(let t=this.s;void 0!==t;t=t.n)t.S.S(t)}y.prototype.S.call(this,t)},w.prototype.U=function(t){if(void 0!==this.t&&(y.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(let t=this.s;void 0!==t;t=t.n)t.S.U(t)}},w.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let t=this.t;void 0!==t;t=t.x)t.t.N()}},Object.defineProperty(w.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const t=m(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),E.prototype.c=function(){const t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;const t=this.x();"function"==typeof t&&(this.m=t)}finally{t()}},E.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,_(this),b(this),u++;const t=l;return l=this,C.bind(this,t)},E.prototype.N=function(){2&this.f||(this.f|=2,this.u=A,A=this)},E.prototype.d=function(){this.f|=8,1&this.f||S(this)},E.prototype.dispose=function(){this.d()},r.DecoratorNode;const N=(0,r.defineExtension)({build:t=>I(()=>t.getEditorState(),e=>t.registerUpdateListener(t=>{e.value=t.editorState})),name:"@lexical/extension/EditorState"});function Q(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let F;try{F="0.48.0+prod.esm"}catch(t){}const L=F??'"<unknown>+source"',M=new Set(["__proto__","constructor","prototype"]);function D(t,e){if(t&&e&&!Array.isArray(e)&&"object"==typeof t&&"object"==typeof e){const n=t,r=e;for(const t in r)!M.has(t)&&Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=D(n[t],r[t]));return t}return e}function R(t){return 0===t.id}function U(t){return 2===t.id}const $=new Set;class j{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(t,e){this.builder=t,this.extension=e,this.configs=new Set,this.state={id:0}}mergeConfigs(){let t=this.extension.config||{};const e=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):r.shallowMergeConfig;for(const n of this.configs)t=e(t,n);return t}init(t){const e=this.state;U(e)||Q(306,String(e.id));const n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},i=function(t,e,n){return Object.assign(t,{config:e,id:3,registerState:n})}(e,this.mergeConfigs(),n);let s;this.state=i,this.extension.init&&(s=this.extension.init(t,i.config,n)),this.state=function(t,e,n){return Object.assign(t,{id:4,initResult:e,registerState:n})}(i,s,r)}build(t){const e=this.state;let n;4!==e.id&&Q(307,String(e.id),String(5)),this.extension.build&&(n=this.extension.build(t,e.config,e.registerState));const r={...e.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(t,e,n){return Object.assign(t,{id:5,output:e,registerState:n})}(e,n,r)}register(t,e){this._signal=e;const n=this.state;5!==n.id&&Q(308,String(n.id),String(5));const r=this.extension.register&&this.extension.register(t,n.config,n.registerState);return this.state=function(t){return Object.assign(t,{id:6})}(n),()=>{const t=this.state;7!==t.id&&Q(309,String(n.id),String(7)),this.state=function(t){return Object.assign(t,{id:5})}(t),r&&r()}}afterRegistration(t){const e=this.state;let n;return 6!==e.id&&Q(310,String(e.id),String(6)),this.extension.afterRegistration&&(n=this.extension.afterRegistration(t,e.config,e.registerState)),this.state=function(t){return Object.assign(t,{id:7})}(e),n}getSignal(){return void 0===this._signal&&Q(311),this._signal}getInitResult(){void 0===this.extension.init&&Q(312,this.extension.name);const t=this.state;return function(t){return t.id>=4}(t)||Q(313,String(t.id),String(4)),t.initResult}getInitPeer(t){const e=this.builder.extensionNameMap.get(t);return e?e.getExtensionInitDependency():void 0}getExtensionInitDependency(){const t=this.state;return function(t){return t.id>=3}(t)||Q(314,String(t.id),String(3)),{config:t.config}}getPeer(t){const e=this.builder.extensionNameMap.get(t);return e?e.getExtensionDependency():void 0}getInitDependency(t){const e=this.builder.getExtensionRep(t);return void 0===e&&Q(315,this.extension.name,t.name),e.getExtensionInitDependency()}getDependency(t){const e=this.builder.getExtensionRep(t);return void 0===e&&Q(315,this.extension.name,t.name),e.getExtensionDependency()}getState(){const t=this.state;return function(t){return t.id>=7}(t)||Q(316,String(t.id),String(7)),t}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||$}getPeerNameSet(){let t=this._peerNameSet;return t||(t=new Set((this.extension.peerDependencies||[]).map(([t])=>t)),this._peerNameSet=t),t}getExtensionDependency(){if(!this._dependency){const t=this.state;(function(t){return t.id>=5})(t)||Q(317,this.extension.name),this._dependency={config:t.config,init:t.initResult,output:t.output}}return this._dependency}}const H={tag:r.HISTORY_MERGE_TAG};function V(){const t=(0,r.$getRoot)();t.isEmpty()&&t.append((0,r.$createParagraphNode)())}const X=(0,r.defineExtension)({config:(0,r.safeCast)({setOptions:H,updateOptions:H}),init:({$initialEditorState:t=V})=>({$initialEditorState:t,initialized:!1}),afterRegistration(t,{updateOptions:e,setOptions:n},i){const s=i.getInitResult();if(!s.initialized){s.initialized=!0;const{$initialEditorState:i}=s;if((0,r.$isEditorState)(i))t.setEditorState(i,n);else if("function"==typeof i)t.update(()=>{i(t)},e);else if(i&&("string"==typeof i||"object"==typeof i)){const e=t.parseEditorState(i);t.setEditorState(e,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[r.RootNode,r.TextNode,r.LineBreakNode,r.TabNode,r.ParagraphNode]}),z=Symbol.for("@lexical/extension/LexicalBuilder");function G(...t){return q.fromExtensions(t).buildEditor()}function Y(){}function W(t){throw t}function Z(t){return Array.isArray(t)?t:[t]}const K=L;class q{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(t){this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=K,this.roots=t;for(const e of t)this.addExtension(e)}static fromExtensions(t){const e=[Z(X)];for(const n of t)e.push(Z(n));return new q(e)}static maybeFromEditor(t){const e=t[z];return e&&(e.PACKAGE_VERSION!==K&&Q(292,e.PACKAGE_VERSION,K),e instanceof q||Q(293)),e}static fromEditor(t){const e=q.maybeFromEditor(t);return void 0===e&&Q(294),e}constructEditor(){const{$initialEditorState:t,onError:e,onWarn:n,...i}=this.buildCreateEditorArgs(),s=Object.assign((0,r.createEditor)({...i,...e?{onError:t=>{e(t,s)}}:{},...n?{onWarn:t=>{n(t,s)}}:{}}),{[z]:this});for(const t of this.sortedExtensionReps())t.build(s);return s}buildEditor(){let t=Y;function e(){try{t()}finally{t=Y}}const n=Object.assign(this.constructEditor(),{dispose:e,[Symbol.dispose]:e});return t=(0,r.mergeRegister)(this.registerEditor(n),()=>n.setRootElement(null)),n}hasExtensionByName(t){return this.extensionNameMap.has(t)}getExtensionRep(t){const e=this.extensionNameMap.get(t.name);if(e)return e.extension!==t&&Q(295,t.name),e}addEdge(t,e,n){const r=this.outgoingConfigEdges.get(t);r?r.set(e,n):this.outgoingConfigEdges.set(t,new Map([[e,n]]));const i=this.incomingEdges.get(e);i?i.add(t):this.incomingEdges.set(e,new Set([t]))}addExtension(t){void 0!==this._sortedExtensionReps&&Q(296);const e=Z(t),[n]=e;"string"!=typeof n.name&&Q(297,typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&Q(298,n.name),!r){r=new j(this,n),this.extensionNameMap.set(n.name,r);const t=this.conflicts.get(n.name);"string"==typeof t&&Q(299,n.name,t);for(const t of n.conflictsWith||[])this.extensionNameMap.has(t)&&Q(299,n.name,t),this.conflicts.set(t,n.name);for(const t of n.dependencies||[]){const e=Z(t);this.addEdge(n.name,e[0].name,e.slice(1)),this.addExtension(e)}for(const[t,e]of n.peerDependencies||[])this.addEdge(n.name,t,e?[e]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const t=[],e=(n,r)=>{let i=n.state;if(U(i))return;const s=n.extension.name;var o;R(i)||Q(300,s,r||"[unknown]"),R(o=i)||Q(304,String(o.id),String(0)),i=Object.assign(o,{id:1}),n.state=i;const a=this.outgoingConfigEdges.get(s);if(a)for(const t of a.keys()){const n=this.extensionNameMap.get(t);n&&e(n,s)}i=function(t){return function(t){return 1===t.id}(t)||Q(305,String(t.id),String(1)),Object.assign(t,{id:2})}(i),n.state=i,t.push(n)};for(const t of this.extensionNameMap.values())R(t.state)&&e(t);for(const e of t)for(const[t,n]of this.outgoingConfigEdges.get(e.extension.name)||[])if(n.length>0){const e=this.extensionNameMap.get(t);if(e)for(const t of n)e.configs.add(t)}for(const[t,...e]of this.roots)if(e.length>0){const n=this.extensionNameMap.get(t.name);void 0===n&&Q(301,t.name);for(const t of e)n.configs.add(t)}return this._sortedExtensionReps=t,this._sortedExtensionReps}registerEditor(t){const e=this.sortedExtensionReps(),n=new AbortController,i=[()=>n.abort()],s=n.signal;for(const n of e){const e=n.register(t,s);e&&i.push(e)}for(const n of e){const e=n.afterRegistration(t);e&&i.push(e)}return(0,r.mergeRegister)(...i)}buildCreateEditorArgs(){const t={},e=new Set,n=new Map,r=new Map,i={},s={},o=this.sortedExtensionReps();for(const a of o){const{extension:o}=a;if(void 0!==o.onError&&(t.onError=o.onError),void 0!==o.onWarn&&(t.onWarn=o.onWarn),void 0!==o.disableEvents&&(t.disableEvents=o.disableEvents),void 0!==o.parentEditor&&(t.parentEditor=o.parentEditor),void 0!==o.editable&&(t.editable=o.editable),void 0!==o.namespace&&(t.namespace=o.namespace),void 0!==o.$initialEditorState&&(t.$initialEditorState=o.$initialEditorState),o.nodes)for(const t of k(o)){if("function"!=typeof t){const e=n.get(t.replace);e&&Q(302,o.name,t.replace.name,e.extension.name),n.set(t.replace,a)}e.add(t)}if(o.html){if(o.html.export)for(const[t,e]of o.html.export.entries())r.set(t,e);o.html.import&&Object.assign(i,o.html.import)}o.theme&&D(s,o.theme)}Object.keys(s).length>0&&(t.theme=s),e.size&&(t.nodes=[...e]);const a=Object.keys(i).length>0,l=r.size>0;(a||l)&&(t.html={},a&&(t.html.import=i),l&&(t.html.export=r));for(const e of o)e.init(t);return t.onError||(t.onError=W),t}}function J(t,e){const n=q.fromEditor(t).getExtensionRep(e);return void 0===n&&Q(303,e.name),n.getExtensionDependency()}function tt(t,e){const n=q.maybeFromEditor(t);if(!n)return;const r=n.extensionNameMap.get(e);return r?r.getExtensionDependency():void 0}function et(t){return function(t){return J((0,r.$getEditor)(),t)}(t).output}function nt(t){return tt((0,r.$getEditor)(),t)}const rt=new Set,it=(0,r.defineExtension)({build(t,e,n){const i=n.getDependency(N).output,s=v({watchedNodeKeys:new Map}),o=I(()=>{},()=>B(()=>{const t=o.peek(),{watchedNodeKeys:e}=s.value;let n,a=!1;i.value.read(()=>{if((0,r.$getSelection)())for(const[i,s]of e.entries()){if(0===s.size){e.delete(i);continue}const o=(0,r.$getNodeByKey)(i),l=o&&o.isSelected()||!1;a=a||l!==(!!t&&t.has(i)),l&&(n=n||new Set,n.add(i))}}),!a&&n&&t&&n.size===t.size||(o.value=n)}));return{watchNodeKey:function(t){const e=function(t){return new w(t,void 0)}(()=>(o.value||rt).has(t)),{watchedNodeKeys:n}=s.peek();let r=n.get(t);const i=void 0!==r;return r=r||new Set,r.add(e),i||(n.set(t,r),s.value={watchedNodeKeys:n}),e}}},dependencies:[N],name:"@lexical/extension/NodeSelection"}),st=(0,r.createCommand)("INSERT_HORIZONTAL_RULE_COMMAND");class ot extends r.DecoratorNode{static getType(){return"horizontalrule"}static clone(t){return new ot(t.__key)}static importJSON(t){return lt().updateFromJSON(t)}static importDOM(){return{hr:()=>({conversion:at,priority:0})}}exportDOM(){return{element:(0,r.$getDocument)().createElement("hr")}}createDOM(t){const e=(0,r.$getDocument)().createElement("hr");return(0,r.addClassNamesToElement)(e,t.theme.hr),e}getTextContent(){return"\n"}isInline(){return!1}updateDOM(){return!1}}function at(){return{node:lt()}}function lt(){return(0,r.$create)(ot)}function At(t){return t instanceof ot}const ct=(0,r.defineExtension)({dependencies:[N,it],name:"@lexical/extension/HorizontalRule",nodes:()=>[ot],register(t,e,n){const{watchNodeKey:s}=n.getDependency(it).output,o=v({nodeSelections:new Map}),l=t._config.theme.hrSelected??"selected";return(0,r.mergeRegister)(t.registerCommand(st,t=>{const e=(0,r.$getSelection)();if(!(0,r.$isRangeSelection)(e))return!1;if(null!==e.focus.getNode()){const t=lt();(0,i.Pe)(t)}return!0},r.COMMAND_PRIORITY_EDITOR),t.registerCommand(r.CLICK_COMMAND,t=>{if((0,r.isDOMNode)(t.target)){const e=(0,r.$getNodeFromDOMNode)(t.target);if(At(e))return function(t,e=!1){const n=(0,r.$getSelection)(),i=t.isSelected(),s=t.getKey();let o;e&&(0,r.$isNodeSelection)(n)?o=n:(o=(0,r.$createNodeSelection)(),(0,r.$setSelection)(o)),i?o.delete(s):o.add(s)}(e,t.shiftKey),!0}return!1},r.COMMAND_PRIORITY_LOW),t.registerMutationListener(ot,(e,n)=>{a(()=>{let n=!1;const{nodeSelections:r}=o.peek();for(const[i,o]of e.entries())if("destroyed"===o)r.delete(i),n=!0;else{const e=r.get(i),o=t.getElementByKey(i);e?e.domNode.value=o:(n=!0,r.set(i,{domNode:v(o),selectedSignal:s(i)}))}n&&(o.value={nodeSelections:r})})}),B(()=>{const t=[];for(const{domNode:e,selectedSignal:n}of o.value.nodeSelections.values())t.push(B(()=>{const t=e.value;t&&(n.value?(0,r.addClassNamesToElement)(t,l):(0,r.removeClassNamesFromElement)(t,l))}));return(0,r.mergeRegister)(...t)}))}}),ht=(0,r.defineExtension)({build:(t,e)=>T({inheritEditableFromParent:e.inheritEditableFromParent}),config:(0,r.safeCast)({$getParentEditor:function(){const t=(0,r.$getEditor)();return q.fromEditor(t),t},inheritEditableFromParent:!1}),init:(t,e,n)=>{const r=e.$getParentEditor();t.parentEditor=r,t.theme=t.theme||r._config.theme},name:"@lexical/extension/NestedEditor",register:(t,e,n)=>B(()=>{const e=t._parentEditor;if(e&&n.getOutput().inheritEditableFromParent.value)return t.setEditable(e.isEditable()),e.registerEditableListener(t.setEditable.bind(t))})});function ut(t){(0,r.$isElementNode)(t)&&t.isInline()&&t.isEmpty()&&t.remove()}const pt=(0,r.defineExtension)({build:(t,e,n)=>T(e),config:(0,r.safeCast)({disabled:!1}),name:"@lexical/NormalizeInlineElements",register:(t,e,n)=>{const i=n.getOutput();return B(()=>{if(!i.disabled.value){const e=[];for(const{klass:n,transforms:i}of t._nodes.values())n.prototype instanceof r.ElementNode&&n.prototype.isInline!==r.ElementNode.prototype.isInline&&(i.add(ut),e.push(()=>i.delete(ut)));return()=>e.forEach(t=>t())}})}}),dt=new Set([r.SKIP_SELECTION_FOCUS_TAG,r.SKIP_SCROLL_INTO_VIEW_TAG]),ft=(0,r.defineExtension)({build:(t,e,n)=>T(e),config:(0,r.safeCast)({$fixFocusOverselection:function(){const t=(0,r.$getSelection)();if((0,r.$isRangeSelection)(t)&&!t.isCollapsed()){const e=(0,r.$getCaretRangeInDirection)((0,r.$caretRangeFromSelection)(t),"next");let n=e.focus;for((0,r.$isTextPointCaret)(n)&&e.anchor.origin!==n.origin&&0===n.offset&&(n=(0,r.$rewindSiblingCaret)(n.getSiblingCaret())),(0,r.$isSiblingCaret)(n)&&e.anchor.origin!==n.origin&&(0,r.$isLineBreakNode)(n.origin)&&(n=(0,r.$rewindSiblingCaret)(n));(0,r.$isChildCaret)(n)&&e.anchor.origin!==n.origin;)n=(0,r.$rewindSiblingCaret)((0,r.$getSiblingCaret)(n.origin,"next"));if((0,r.$isSiblingCaret)(n)&&(0,r.$isElementNode)(n.origin)&&(n=(0,r.$normalizeCaret)((0,r.$getChildCaret)(n.origin,"previous")).getFlipped()),n=(0,r.$normalizeCaret)(n),!n.isSamePointCaret(e.focus)){const t=(0,r.$setSelectionFromCaretRange)((0,r.$getCaretRange)(e.anchor,n)),i=(0,r.$getEditor)().getRootElement(),s=i&&(0,r.getDOMSelection)(i.ownerDocument.defaultView);s&&(0,r.$updateDOMSelection)((0,r.$getPreviousSelection)(),t,(0,r.$getEditor)(),s,dt,i)}}},dateNow:Date.now,disabled:!1,thresholdMsec:100}),name:"@lexical/NormalizeTripleClickSelection",register:(t,e,n)=>B(()=>{const e=n.getOutput();if(!e.disabled.value)return t.registerRootListener(n=>{if(!n)return;let i=0;const s=t=>{if(t?3===t.detail:i>0){const n=e.dateNow.peek()();i=t&&"mousedown"===t.type||n-i<=e.thresholdMsec.peek()?n:0}return i};return(0,r.mergeRegister)(t.registerCommand(r.SELECTION_CHANGE_COMMAND,()=>(s(null)&&(i=0,e.$fixFocusOverselection.peek()()),!1),r.COMMAND_PRIORITY_BEFORE_CRITICAL),(0,r.registerEventListeners)(n,{mousedown:s,mouseup:s},!0))})})});function gt(t){return t.canIndent()}function mt(t,e,n=gt){return(0,r.mergeRegister)(t.registerCommand(r.KEY_TAB_COMMAND,e=>{const n=(0,r.$getSelection)();if(!(0,r.$isRangeSelection)(n))return!1;e.preventDefault();const s=function(t){if(t.getNodes().filter(t=>(0,r.$isBlockElementNode)(t)&&t.canIndent()).length>0)return!0;const e=t.anchor,n=t.focus,s=n.isBefore(e)?n:e,o=s.getNode(),a=(0,i.mB)(o);if(a.canIndent()){const t=a.getKey();let e=(0,r.$createRangeSelection)();if(e.anchor.set(t,0,"element"),e.focus.set(t,0,"element"),e=(0,r.$normalizeSelection__EXPERIMENTAL)(e),e.anchor.is(s))return!0}return!1}(n)?e.shiftKey?r.OUTDENT_CONTENT_COMMAND:r.INDENT_CONTENT_COMMAND:r.INSERT_TAB_COMMAND;return t.dispatchCommand(s,void 0)},r.COMMAND_PRIORITY_EDITOR),t.registerCommand(r.INDENT_CONTENT_COMMAND,()=>{const t="number"==typeof e?e:e?e.peek():null,s=(0,r.$getSelection)();if(!(0,r.$isRangeSelection)(s))return!1;const o="function"==typeof n?n:n.peek();return(0,i.Jy)(e=>{if(o(e)){const n=e.getIndent()+1;(!t||n<t)&&e.setIndent(n)}})},r.COMMAND_PRIORITY_CRITICAL))}},8881(t,e,n){"use strict";n.d(e,{We:()=>a,ht:()=>o,jd:()=>l});var r=n(91420),i=n(90415);function s(t,e){t.undoStack=[],t.redoStack=[],t.current=null,e&&e(t)}function o(){return{current:null,redoStack:[],undoStack:[]}}const a=(0,i.defineExtension)({build:(t,{delay:e,createInitialHistoryState:n,disabled:i,maxDepth:s,now:o},a)=>({...(0,r.v)({delay:e,disabled:i,historyState:n(t),maxDepth:s,now:o}),...a.getInitResult()}),config:(0,i.safeCast)({createInitialHistoryState:o,delay:300,disabled:"undefined"==typeof window,maxDepth:null,now:Date.now}),init:()=>({canRedo:(0,r.vP)(!1),canUndo:(0,r.vP)(!1)}),name:"@lexical/history/History",register:(t,e,n)=>{const{canUndo:o,canRedo:a}=n.getInitResult(),l=n.getOutput(),A=t=>(0,r.vA)(()=>{o.value=null!=t&&t.undoStack.length>0,a.value=null!=t&&t.redoStack.length>0});return(0,r.QZ)(()=>{if(!l.disabled.value)return function(t,e,n,r=Date.now,o,a=null){const l=function(t,e,n){let r=n(),s=0,o=r,a=0,l=null;return(A,c,h,u,p,d)=>{const f=n();if(d.has(i.COMPOSITION_START_TAG)&&(o=r,a=s,l=A),d.has(i.HISTORIC_TAG))return s=0,r=f,2;d.has(i.COMPOSITION_END_TAG)&&l&&(r=o,s=a,A=l);const g=d.has(i.PASTE_TAG)||d.has(i.CUT_TAG)?0:function(t,e,n,r,s){if(null===t||0===n.size&&0===r.size&&!s)return 0;const o=e._selection,a=t._selection;if(s)return 1;if(!((0,i.$isRangeSelection)(o)&&(0,i.$isRangeSelection)(a)&&a.isCollapsed()&&o.isCollapsed()))return 0;const l=function(t,e,n){const r=t._nodeMap,s=[];for(const t of e){const e=r.get(t);void 0!==e&&s.push(e)}for(const[t,e]of n){if(!e)continue;const n=r.get(t);void 0===n||(0,i.$isRootNode)(n)||s.push(n)}return s}(e,n,r);if(0===l.length)return 0;if(l.length>1){const n=e._nodeMap,r=n.get(o.anchor.key),s=n.get(a.anchor.key);return r&&s&&!t._nodeMap.has(r.__key)&&(0,i.$isTextNode)(r)&&1===r.__text.length&&1===o.anchor.offset?2:0}const A=l[0],c=t._nodeMap.get(A.__key);if(!(0,i.$isTextNode)(c)||!(0,i.$isTextNode)(A)||c.__mode!==A.__mode)return 0;const h=c.__text,u=A.__text;if(h===u)return 0;const p=o.anchor,d=a.anchor;if(p.key!==d.key||"text"!==p.type)return 0;const f=p.offset,g=d.offset,m=u.length-h.length;return 1===m&&g===f-1?2:-1===m&&g===f+1?3:-1===m&&g===f?4:0}(A,c,u,p,t.isComposing()),m=(()=>{const n=null===h||h.editor===t,o=d.has(i.HISTORY_PUSH_TAG);if(!o&&n&&d.has(i.HISTORY_MERGE_TAG))return 0;if(1===g)return 2;if(null===A)return 1;const a=c._selection;if(!(u.size>0||p.size>0))return null!==a?0:2;const l="number"==typeof e?e:e.peek();return!1===o&&0!==g&&g===s&&f<r+l&&n||1===u.size&&function(t,e,n){const r=e._nodeMap.get(t),s=n._nodeMap.get(t),o=e._selection,a=n._selection;return!((0,i.$isRangeSelection)(o)&&(0,i.$isRangeSelection)(a)&&"element"===o.anchor.type&&"element"===o.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!(0,i.$isTextNode)(r)||!(0,i.$isTextNode)(s)||r.__parent!==s.__parent)&&JSON.stringify(e.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>s.exportJSON()))}(Array.from(u)[0],A,c)?0:1})();return r=f,s=g,m}}(t,n,r),A=()=>{o&&o(e)};return A(),(0,i.mergeRegister)(t.registerCommand(i.UNDO_COMMAND,()=>(function(t,e,n){const r=e.redoStack,s=e.undoStack;if(0!==s.length){const o=e.current,a=s.pop();null!==o&&(r.push(o),t.dispatchCommand(i.CAN_REDO_COMMAND,!0)),0===s.length&&t.dispatchCommand(i.CAN_UNDO_COMMAND,!1),e.current=a||null,n&&n(e),a&&a.editor.setEditorState(a.editorState,{tag:i.HISTORIC_TAG})}}(t,e,o),!0),i.COMMAND_PRIORITY_EDITOR),t.registerCommand(i.REDO_COMMAND,()=>(function(t,e,n){const r=e.redoStack,s=e.undoStack;if(0!==r.length){const o=e.current;null!==o&&(s.push(o),t.dispatchCommand(i.CAN_UNDO_COMMAND,!0));const a=r.pop();0===r.length&&t.dispatchCommand(i.CAN_REDO_COMMAND,!1),e.current=a||null,n&&n(e),a&&a.editor.setEditorState(a.editorState,{tag:i.HISTORIC_TAG})}}(t,e,o),!0),i.COMMAND_PRIORITY_EDITOR),t.registerCommand(i.CLEAR_EDITOR_COMMAND,()=>(s(e,o),!1),i.COMMAND_PRIORITY_EDITOR),t.registerCommand(i.CLEAR_HISTORY_COMMAND,()=>(s(e,o),t.dispatchCommand(i.CAN_REDO_COMMAND,!1),t.dispatchCommand(i.CAN_UNDO_COMMAND,!1),!0),i.COMMAND_PRIORITY_EDITOR),t.registerUpdateListener(({editorState:n,prevEditorState:r,dirtyLeaves:s,dirtyElements:o,tags:c})=>{const h=e.current,u=e.redoStack,p=e.undoStack,d=null===h?null:h.editorState;if(null!==h&&n===d)return;const f=l(r,n,h,s,o,c);if(1===f){if(0!==u.length&&(e.redoStack=[],t.dispatchCommand(i.CAN_REDO_COMMAND,!1)),null!==h){p.push({...h});const e="number"==typeof a||null===a?a:a.peek();null!==e&&p.length>e&&p.splice(0,p.length-e),t.dispatchCommand(i.CAN_UNDO_COMMAND,!0)}}else if(2===f)return;e.current={editor:t,editorState:n},A()}))}(t,l.historyState.value,l.delay,()=>l.now.peek()(),A,l.maxDepth);A(null)})}}),l=(0,i.defineExtension)({build:(t,{disabled:e,parentEditor:n})=>(0,r.v)({disabled:e,parentEditor:n||t._parentEditor}),config:(0,i.safeCast)({disabled:!1,parentEditor:null}),dependencies:[(0,i.configExtension)(a,{disabled:!0})],name:"@lexical/history/SharedHistory",register:(t,e,n)=>(0,r.QZ)(()=>{const{disabled:t,parentEditor:e}=n.getOutput();if(!t.value){const{output:t}=n.getDependency(a),i=function(t){return t?(0,r.xT)(t,a.name):null}(e.value);if(!i)return;const s=i.output;(0,r.vA)(()=>{t.delay.value=s.delay.value,t.historyState.value=s.historyState.value,t.now.value=s.now.value,t.disabled.value=s.disabled.value})}})})},28350(t,e,n){"use strict";n.d(e,{Ah:()=>nt,BU:()=>Et,Bu:()=>j,FD:()=>rt,LR:()=>K,S$:()=>D,VR:()=>Mt,Zj:()=>Qt,_e:()=>Lt,_l:()=>X,bP:()=>st,dA:()=>f,dh:()=>Rt,g2:()=>Ut,k4:()=>et,up:()=>Ft,vT:()=>V});var r=n(12303),i=n(90415),s=n(49408),o=n(91420);function a(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let l;function A(t,e){const{key:n}=e;return t&&n in t?t[n]:e.defaultValue}function c(t){return l&&l.editor===t?l:void 0}function h(t,e){const n=c(e);return n&&n[t]}function u(t,e){if("cfg"in e){const{cfg:n,updater:r}=e;return[n,r(A(t,n))]}return e}function p(t,e){let n=e;for(const r of t){const[t,i]=u(n,r),s=t.key;if(n===e&&A(n,t)===i)continue;const o=n===e||void 0===n?d(e):n;o[s]=i,n=o}return n}function d(t){return Object.create(t||null)}function f(t,e){return[t,e]}function g(t,e,n,r=(0,i.$getEditor)()){const s=l,o=c(r);try{return l={...o,editor:r,[t]:e},n()}finally{l=s}}function m(t,e=()=>{}){return(n,r=(0,i.$getEditor)())=>i=>{const s=c(r),o=s&&s[t],a=p(n,o||e(r));return a&&a!==o?g(t,a,i,r):i()}}function y(t,e,n,r){return Object.assign((0,i.createState)(Symbol(e),{isEqual:r,parse:n}),{[t]:!0})}function v(t){if(!(0,i.isDOMDocumentNode)(t))return;const e=t;if(null===e.querySelector("style"))return;const n=new Map;function r(t){let e=n.get(t);if(void 0===e){e=new Set;for(let n=0;n<t.style.length;n++)e.add(t.style[n]);n.set(t,e)}return e}try{for(const n of Array.from(e.styleSheets)){let o;try{o=n.cssRules}catch(t){continue}for(const n of Array.from(o)){if(!(0,s.xj)(n,CSSStyleRule))continue;let o;try{o=e.querySelectorAll(n.selectorText)}catch(t){continue}for(const t of Array.from(o)){if(!(0,i.isHTMLElement)(t))continue;const e=r(t);for(let r=0;r<n.style.length;r++){const i=n.style[r];e.has(i)||t.style.setProperty(i,n.style.getPropertyValue(i),n.style.getPropertyPriority(i))}}}}}catch(t){}}const O="@lexical/html/DOM",b=Symbol.for("@lexical/html/DOMExportContext"),x="@lexical/html/DOMImport",w=Symbol.for("@lexical/html/DOMImportContext");function _(t,e,n){return y(b,t,e,n)}const S=_("isExport",Boolean);function C(t=(0,i.$getEditor)()){const e=function(t){const e=(0,o.xT)(t,O);return e?e.output.runtime:void 0}(t);return e?e.getSessionConfig():(0,i.$getEditorDOMRenderConfig)(t)}const E=m(b,function(t){const e=(0,o.xT)(t,O);return e?e.output.defaults:void 0});new Map([[i.RootNode,()=>{const t=(0,i.$getDocument)().createElement("div");return t.role="textbox",{element:t}}]]);const B=Symbol.for("@lexical/html/SelectorImpl");function T(t,e){const n={kind:"element",predicate:(r=e,0===r.length?i.isHTMLElement:1===r.length?r[0]:(t,e)=>{for(const n of r)if(!n(t,e))return!1;return!0}),tags:t};var r;const s=n=>T(t,[...e,n]);return{[B]:n,attr:(t,e,n)=>s(I(t,e,n)),classAll:(...t)=>s(k(t)),classAny:(...t)=>s(function(t){const e=P(t);return 0===e.length?()=>!1:t=>{if(!(0,i.isHTMLElement)(t))return!1;const n=t.classList;for(const t of e)if(n.contains(t))return!0;return!1}}(t)),styleAny:(t,e,n)=>s(function(t,e,n){if("string"==typeof e)return n=>(0,i.isHTMLElement)(n)&&n.style.getPropertyValue(t)===e;if(e instanceof RegExp){const r=n&&n.capture,s=e;return(e,n)=>{if(!(0,i.isHTMLElement)(e))return!1;const o=e.style.getPropertyValue(t);if(!o)return!1;const a=o.match(s);return null!==a&&(void 0!==r&&(n[r]=a),!0)}}a(362,JSON.stringify(t))}(t,e,n))}}function P(t){const e=[];for(const n of t)n&&e.push(n);return e}function k(t){const e=P(t);return 0===e.length?()=>!0:t=>{if(!(0,i.isHTMLElement)(t))return!1;const n=t.classList;for(const t of e)if(!n.contains(t))return!1;return!0}}function I(t,e,n){if(!0===e)return e=>(0,i.isHTMLElement)(e)&&e.hasAttribute(t);if("string"==typeof e)return n=>(0,i.isHTMLElement)(n)&&n.getAttribute(t)===e;if(e instanceof RegExp){const r=n&&n.capture,s=e;return(e,n)=>{if(!(0,i.isHTMLElement)(e))return!1;const o=e.getAttribute(t);if(null==o)return!1;const a=o.match(s);return null!==a&&(void 0!==r&&(n[r]=a),!0)}}a(361,JSON.stringify(t))}const N={kind:"text",predicate:i.isDOMTextNode,tags:new Set},Q={[B]:N},F={kind:"comment",predicate:t=>8===t.nodeType,tags:new Set},L={[B]:F},M={any:()=>T(new Set,[]),comment:()=>L,tag(...t){t.length>0||a(363);const e=new Set;for(const n of t)e.add(n.toUpperCase());return T(e,[])},text:()=>Q};function D(t,e){return(0,i.isHTMLElement)(t)&&t.nodeName===e.toUpperCase()}const R=/[A-Za-z0-9_-]/;class U{constructor(t,e){this.source=t,this.pos=e}peek(t=0){return this.source[this.pos+t]||""}consume(){return this.source[this.pos++]||""}eof(){return this.pos>=this.source.length}skipWhitespace(){for(;!this.eof()&&/\s/.test(this.peek());)this.pos++}readIdent(){const t=this.pos;for(;!this.eof()&&R.test(this.peek());)this.pos++;return this.source.slice(t,this.pos)}readQuoted(){const t=this.consume();this.assert('"'===t||"'"===t,"expected quote");const e=this.pos;for(;!this.eof()&&this.peek()!==t;)"\\"===this.peek()?this.pos+=2:this.pos++;this.assert(!this.eof(),"unterminated string");const n=this.source.slice(e,this.pos);return this.pos++,n.replace(/\\(.)/g,"$1")}assert(t,e){t||a(364,String(this.pos+1),e,this.source)}}function $(t){const e=new Set,n=[],r=[];if(t.skipWhitespace(),"*"===t.peek())t.consume();else if(R.test(t.peek())){const n=t.readIdent();n&&e.add(n.toUpperCase())}for(;!t.eof();){const e=t.peek();if("."===e){t.consume();const e=t.readIdent();t.assert(""!==e,'expected class name after "."'),r.push(e)}else if("#"===e){t.consume();const e=t.readIdent();t.assert(""!==e,'expected id after "#"'),n.push(I("id",e))}else{if("["!==e)break;{t.consume(),t.skipWhitespace();const e=t.readIdent();t.assert(""!==e,'expected attribute name after "["'),t.skipWhitespace();let r=!0;if("="===t.peek()){t.consume(),t.skipWhitespace();const e=t.peek();'"'===e||"'"===e?r=t.readQuoted():(r=t.readIdent(),t.assert(""!==r,"expected attribute value")),t.skipWhitespace()}t.assert("]"===t.peek(),'expected "]"'),t.consume(),n.push(I(e,r))}}}return r.length>0&&n.push(k(r)),{predicates:n,tags:e}}function j(t){return t}function H(t,e,n){return y(w,t,e,n)}const V=H("importSource",()=>"unknown"),X=H("importSourceDataTransfer",()=>null),z=H("textFormat",()=>0),G=H("textStyle",()=>({}));function Y(t){if(!(0,i.isHTMLElement)(t))return!1;if("PRE"===t.nodeName)return!0;const e=t.style.whiteSpace;return"string"==typeof e&&e.startsWith("pre")}function W(t){if((0,i.isDOMTextNode)(t))return!0;if(!(0,i.isHTMLElement)(t))return!1;const e=t.style.display;return e?e.startsWith("inline"):!(0,i.isBlockDomNode)(t)&&(0,i.isInlineDomNode)(t)}const Z=H("whitespaceConfig",()=>({isInline:W,preservesWhitespace:Y})),K=H("importOverlays",()=>[]);class q{constructor(t){this.record=t}get(t){return A(this.record,t)}set(t,e){this.record[t.key]=e}update(t,e){this.record[t.key]=e(A(this.record,t))}has(t){return Object.prototype.hasOwnProperty.call(this.record,t.key)}}function J(t){const e=(0,o.xT)(t,x);return e?e.output.defaults:void 0}const tt=m(w,J);function et(t){return(0,i.$isBlockElementNode)(t)||(0,i.$isDecoratorNode)(t)&&!t.isInline()}function nt(t,e){const n=[];let r=[];const s=()=>{0!==r.length&&(n.push(e().splice(0,0,r)),r=[])};for(const o of t)if(et(o)){if(s(),(0,i.$isElementNode)(o)){const t=nt(o.getChildren(),e);o.splice(0,o.getChildrenSize(),t)}n.push(o)}else r.push(o);return s(),n}function rt(t,e){if(!(0,i.isHTMLElement)(e))return t;const n=e.style.textAlign;if(!At(n))return t;for(const e of t)(0,i.$isBlockElementNode)(e)&&""===e.getFormatType()&&e.setFormat(n);return t}function it(t,e,n){1===t.length&&(0,i.$isLineBreakNode)(t[0])&&(t=[]);const r=(0,i.$createParagraphNode)();if((0,i.isHTMLElement)(n)){const t=n.style.textAlign;At(t)&&r.setFormat(t)}return[r.splice(0,0,t)]}const st={$accepts:et,$packageRun:it,name:"BlockSchema"},ot={$accepts:et,$packageRun:it,name:"RootSchema"},at=M,lt=new Set(["center","end","justify","left","right","start"]);function At(t){return lt.has(t)}const ct={B:{fontWeight:"bold"},EM:{fontStyle:"italic"},I:{fontStyle:"italic"},S:{textDecoration:"line-through"},STRONG:{fontWeight:"bold"},SUB:{verticalAlign:"sub"},SUP:{verticalAlign:"super"},U:{textDecoration:"underline"}},ht={CODE:i.IS_CODE,MARK:i.IS_HIGHLIGHT},ut=new Set(["font-weight","font-style","text-decoration","vertical-align"]),pt=j({$import:(t,e)=>{const n=t.get(z),r=ct[e.nodeName],s=function(t){return{fontStyle:t.style.fontStyle,fontWeight:t.style.fontWeight,textDecoration:t.style.textDecoration,verticalAlign:t.style.verticalAlign}}(e);var o,a;let l=(A=n,c=function(t){let e=0,n=0;const{fontWeight:r,fontStyle:s,textDecoration:o,verticalAlign:a}=t;if("700"===r||"bold"===r?e|=i.IS_BOLD:"normal"!==r&&"400"!==r||(n|=i.IS_BOLD),"italic"===s?e|=i.IS_ITALIC:"normal"===s&&(n|=i.IS_ITALIC),o){const t=o.split(" ");t.includes("underline")&&(e|=i.IS_UNDERLINE),t.includes("line-through")&&(e|=i.IS_STRIKETHROUGH),t.includes("none")&&(n|=i.IS_UNDERLINE|i.IS_STRIKETHROUGH)}return"sub"===a?(e|=i.IS_SUBSCRIPT,n|=i.IS_SUPERSCRIPT):"super"===a?(e|=i.IS_SUPERSCRIPT,n|=i.IS_SUBSCRIPT):"baseline"===a&&(n|=i.IS_SUBSCRIPT|i.IS_SUPERSCRIPT),{clear:n,set:e}}(r?(o=r,{fontStyle:(a=s).fontStyle||o.fontStyle,fontWeight:a.fontWeight||o.fontWeight,textDecoration:a.textDecoration||o.textDecoration,verticalAlign:a.verticalAlign||o.verticalAlign}):s),A&~c.clear|c.set);var A,c;const h=ht[e.nodeName];return h&&(l|=h),l===n?t.$importChildren(e):t.$importChildren(e,{context:[f(z,l)]})},match:at.tag("b","strong","em","i","code","mark","s","sub","sup","u","span"),name:"@lexical/html/inline-format"});function dt(t,e,n){let r=t;for(;;){let t=null;for(;null===(t=e?r.nextSibling:r.previousSibling);){const t=r.parentNode;if(null===t)return null;r=t}if(r=t,!n.isInline(r))return null;let s=r;for(;null!==(s=e?r.firstChild:r.lastChild);)r=s;if((0,i.isDOMTextNode)(r))return r;if("BR"===r.nodeName)return null}}function ft(t,e){return 0!==e&&(0,i.$isTextNode)(t)?t.setFormat(e):t}function gt(t,e){if((0,i.$isTextNode)(t)){const n=function(t){let e="";for(const n in t)ut.has(n)||(e+=`${n}: ${t[n]}; `);return e.trimEnd()}(e);""!==n&&t.setStyle(n)}return t}const mt=j({$import:(t,e)=>{const n=t.get(z),r=t.get(G),s=t.get(Z);if(function(t,e){let n=t.parentNode;for(;null!==n;){if(e.preservesWhitespace(n))return!0;n=n.parentNode}return!1}(e,s)){const t=(0,i.$generateNodesFromRawText)(e.textContent||"");for(const e of t)ft(e,n),gt(e,r);return t}const o=function(t,e){let n=(t.textContent||"").replace(/\r/g,"").replace(/[ \t\n]+/g," ");if(0===n.length)return"";if(" "===n[0]){let r=t,i=!0;for(;null!==r&&null!==(r=dt(r,!1,e));){const t=r.textContent||"";if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),i=!1;break}}i&&(n=n.slice(1))}if(n.length>0&&" "===n[n.length-1]){let r=t,i=!0;for(;null!==r&&null!==(r=dt(r,!0,e));)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){i=!1;break}i&&(n=n.slice(0,-1))}return n}(e,s);if(""===o)return[];const a=(0,i.$createTextNode)(o);return ft(a,n),gt(a,r),[a]},match:at.text(),name:"@lexical/html/#text"}),yt=j({$import:()=>[],match:at.tag("script","style"),name:"@lexical/html/script-style-ignore"}),vt=j({$import:(t,e)=>(0,i.isOnlyChildInBlockNode)(e)||(0,i.isLastChildInBlockNode)(e)?[]:[(0,i.$createLineBreakNode)()],match:at.tag("br"),name:"@lexical/html/br"}),Ot=[yt,j({$import:(t,e)=>{const n=(0,i.$createParagraphNode)();if((0,i.$setFormatFromDOM)(n,e),(0,i.setNodeIndentFromDOM)(e,n),""===n.getFormatType()){const t=e.getAttribute("align");t&&At(t)&&n.setFormat(t)}return(0,i.$setDirectionFromDOM)(n,e),[n.splice(0,0,t.$importChildren(e))]},match:at.tag("p"),name:"@lexical/html/p"}),j({$import:(t,e,n)=>(0,i.$getEditor)().hasNode(o.fS)?[(0,o.PL)()]:n(),match:at.tag("hr"),name:"@lexical/html/hr"}),j({$import:(t,e,n)=>(0,i.isBlockDomNode)(e)?rt(t.$importChildren(e,{schema:st}),e):n(),match:at.any(),name:"@lexical/html/transparent-block"}),mt,vt,pt];function bt(t,e){const n=[];let r=0,i=0;for(;r<t.length&&i<e.length;)t[r]<=e[i]?n.push(t[r++]):n.push(e[i++]);for(;r<t.length;)n.push(t[r++]);for(;i<e.length;)n.push(e[i++]);return n}function xt(t){const e=[],n=new Map,r=[],i=[],s=[],o=new Set;t.forEach((t,l)=>{const A=function(t){const e=t[B];return void 0===e&&a(360),e}(t.match),c=t.name||function(t,e){return"text"===t.kind?`#text@${e}`:"comment"===t.kind?`#comment@${e}`:0===t.tags.size?`*@${e}`:`${Array.from(t.tags).join(",").toLowerCase()}@${e}`}(A,l);if(t.name&&o.add(t.name),e.push({$import:t.$import,name:c,predicate:A.predicate}),"text"===A.kind)i.push(l);else if("comment"===A.kind)s.push(l);else if(0===A.tags.size)r.push(l);else for(const t of A.tags){let e=n.get(t);e||(e=[],n.set(t,e)),e.push(l)}});const l=new Map;if(0===r.length)for(const[t,e]of n)l.set(t,e);else for(const[t,e]of n)l.set(t,bt(e,r));return{byTag:l,commentIndices:s,rules:e,textIndices:i,wildcardIndices:r}}function wt(t,e){return(0,i.isDOMTextNode)(e)?t.textIndices:8===e.nodeType?t.commentIndices:(0,i.isHTMLElement)(e)?t.byTag.get(e.nodeName)||t.wildcardIndices:_t}const _t=Object.freeze([]);function St(t){const e=[];for(const n of t)if(Ct(n))for(const t of n.rules)e.push(t);else e.push(n);return e}function Ct(t){return"object"==typeof t&&null!==t&&"__type"in t&&"CompiledOverlayRules"===t.__type}function Et(t){const e=St(t);return{__type:"CompiledOverlayRules",dispatch:xt(e),rules:e}}const Bt=Object.freeze({});function Tt(t,e){const n={$importChildren:(e,n)=>function(t,e,n){const r=n&&n.rules?n.rules.dispatch:void 0;r&&t.overlays.push(r);try{const r=()=>Pt(t,e,n);return n&&n.context?tt(n.context,t.editor)(r):r()}finally{r&&t.overlays.pop()}}(t,e,n),$importOne:(e,n)=>kt(t,e,n),captures:e,get:e=>function(t,e=(0,i.$getEditor)()){return A(function(t){return h(w,t)||J(t)}(e),t)}(e,t.editor),session:t.session};return n}function Pt(t,e,n){const r=n&&n.$onChild,i=[];for(const n of Array.from(e.childNodes)){const e=kt(t,n,void 0);for(const t of e){const e=r?r(t):t;null!=e&&i.push(e)}}const s=n&&n.$after?n.$after(i):i,o=n&&n.schema;return o?function(t,e,n,r){const i=[];let s=null;const o=()=>{if(null===s)return;const e=s;if(s=null,t.$packageRun){const s=t.$packageRun(e,n,r);if(s.length>0){for(const t of s)i.push(t);return}}if("hoist"===t.onReject)for(const t of e)i.push(t)};for(const r of e)t.$accepts(r,n)?(o(),i.push(r)):(null===s&&(s=[]),s.push(r));return o(),t.$finalize?t.$finalize(i,n):i}(o,s,null,e):s}function kt(t,e,n){const r=()=>function(t,e){const n=function(t,e){const n=[];for(let r=t.overlays.length-1;r>=0;r--){const i=t.overlays[r],s=wt(i,e);s.length>0&&n.push({dispatch:i,indices:s})}const r=wt(t.dispatch,e);return r.length>0&&n.push({dispatch:t.dispatch,indices:r}),n}(t,e);if(0===n.length)return It(t,e);let r=0,i=0;const s=()=>{for(;r<n.length;){const{dispatch:o,indices:a}=n[r];for(;i<a.length;){const n=a[i++],r=o.rules[n],l={};if(r.predicate(e,l)){const n=Tt(t,0===Object.keys(l).length?Bt:l);try{return r.$import(n,e,s)}catch(t){throw t}}}r++,i=0}return It(t,e)};return s()}(t,e);return n&&n.context?tt(n.context,t.editor)(r):r()}function It(t,e){if(0===e.childNodes.length)return[];const n=[];for(const r of Array.from(e.childNodes)){const e=kt(t,r,void 0);for(const t of e)n.push(t)}return n}const Nt=j({$import:(t,e)=>t.$importChildren(e),match:M.any(),name:"@lexical/html/default-hoist"}),Qt=(0,i.defineExtension)({build(t,e){const n=xt(St(e.rules)),r=p(e.contextDefaults,void 0),s=e.preprocess;return{$generateNodesFromDOM:(e,o)=>{const a=h(w,t)||r,l=o&&o.context?p(o.context,a):a,A=void 0!==l&&l!==a?l:Object.create(a||null),c=new q(A),u={session:c};return function(t,e,n){let r=t.length-1;const i=()=>{for(;r>=0;)return void(0,t[r--])(e,n,i)};i()}(o&&o.preprocess?[...s,...o.preprocess]:s,e,u),g(w,A,()=>function(t,e,n,r){return Pt({dispatch:t,editor:e,overlays:r.get(K).map(t=>t.dispatch),session:r},(0,i.isDOMDocumentNode)(n)?n.body:n,{schema:ot})}(n,t,e,c),t)},defaults:r}},config:{contextDefaults:[],preprocess:[(t,e,n)=>{v(t),n()}],rules:[Nt]},mergeConfig:(t,e)=>(0,i.shallowMergeConfig)(t,{...e,...e.contextDefaults&&{contextDefaults:[...t.contextDefaults,...e.contextDefaults]},...e.preprocess&&{preprocess:[...t.preprocess,...e.preprocess]},...e.rules&&{rules:[...e.rules,...t.rules]}}),name:x});function Ft(t,e){return(0,o.fU)(Qt).$generateNodesFromDOM(t,e)}const Lt=(0,i.defineExtension)({dependencies:[(0,i.configExtension)(Qt,{rules:Ot})],name:"@lexical/html/CoreImport"}),Mt=(o.SY,{any:M.any,comment:M.comment,css:function(t){const e=new U(t,0),n=[];for(;;){const t=$(e);if(n.push(t),e.skipWhitespace(),e.eof())break;e.assert(","===e.peek(),'expected "," (selector lists are the only supported combinator)'),e.consume(),e.skipWhitespace()}if(1===n.length)return T(n[0].tags,n[0].predicates);const r=new Set;for(const t of n)for(const e of t.tags)r.add(e);return T(r,[(t,e)=>{for(const r of n){const n=t.nodeName;if(r.tags.size>0&&!r.tags.has(n))continue;let i=!0;for(const n of r.predicates)if(!n(t,e)){i=!1;break}if(i)return!0}return!1}])},tag:M.tag,text:M.text}),Dt=new Set(["STYLE","SCRIPT"]);function Rt(t,e){v(e);const n=(0,i.isDOMDocumentNode)(e)?e.body.childNodes:e.childNodes,r=[],s=[];for(const e of n)if(!Dt.has(e.nodeName)){const n=jt(e,t,s,!1);if(null!==n)for(const t of n)r.push(t)}return function(t){for(const e of t)e.getParent()&&e.getNextSibling()instanceof i.ArtificialNode__DO_NOT_USE&&e.insertAfter((0,i.$createLineBreakNode)());for(const e of t){const t=e.getParent();t&&t.splice(e.getIndexWithinParent(),1,e.getChildren())}}(s),r}function Ut(t,e=null){return("undefined"==typeof document||"undefined"==typeof window&&void 0===globalThis.window)&&a(338),(0,i.$assumeActiveEditor)(t),function(t,e=null,n=(0,i.$getEditor)()){return E([f(S,!0)],n)(()=>{const r=(0,i.$getRoot)(),s=C(n),o=(0,i.$isRangeSelection)(e)?(0,i.$getSlotFrame)(e.anchor.getNode()):null,a=t.append.bind(t);for(const t of((0,i.$isElementNode)(o)?o:r).getChildren())$t(n,t,a,e,s);return t})}((0,i.$getDocument)().createElement("div"),e,t).innerHTML}function $t(t,e,n,s=null,o=(0,i.$getEditorDOMRenderConfig)(t)){let a=o.$shouldInclude(e,s,t);const l=o.$shouldExclude(e,s,t);let A=e;null!==s&&(0,i.$isTextNode)(e)&&(A=(0,r.SD)(s,e,"clone"));const c=o.$exportDOM(A,t),{element:h,after:u,append:p,$getChildNodes:d}=c;if(!h)return!1;const f=(0,i.$getDocument)().createDocumentFragment(),g=d?d():(0,i.$isElementNode)(A)?A.getChildren():[],m=a&&(0,i.$isNodeSelection)(s)&&(0,i.$isElementNode)(e)?null:s,y=f.append.bind(f);for(const n of g){const r=$t(t,n,y,m,o);!a&&r&&o.$extractWithChild(e,n,s,"html",t)&&(a=!0)}if(a&&!l){if(((0,i.isHTMLElement)(h)||(0,i.isDocumentFragment)(h))&&(p?p(f):h.append(f)),n(h),u){const t=u.call(A,h);t&&((0,i.isDocumentFragment)(h)?h.replaceChildren(t):h.replaceWith(t))}}else n(f);return a}function jt(t,e,n,r,s=new Map,o){const a=[];if(Dt.has(t.nodeName))return a;let l=null;const A=function(t,e){const{nodeName:n}=t,r=e._htmlConversions.get(n.toLowerCase());let i=null;if(void 0!==r)for(const e of r){const n=e(t);null!==n&&(null===i||(i.priority||0)<=(n.priority||0))&&(i=n)}return null!==i?i.conversion:null}(t,e),c=A?A(t):null;let h=null;if(null!==c){h=c.after;const e=c.node;if(l=Array.isArray(e)?e[e.length-1]:e,null!==l){for(const[,t]of s)if(l=t(l,o),!l)break;l&&a.push(...Array.isArray(e)?e:[l])}null!=c.forChild&&s.set(t.nodeName,c.forChild)}const u=t.childNodes;let p=[];const d=(null==l||!(0,i.$isRootOrShadowRoot)(l))&&(null!=l&&(0,i.$isBlockElementNode)(l)||r);for(let t=0;t<u.length;t++)p.push(...jt(u[t],e,n,d,new Map(s),l));if(null!=h&&(p=h(p)),(0,i.isBlockDomNode)(t)&&(p=function(t,e,n){const r=t.style.textAlign,s=[];let o=[];for(let t=0;t<e.length;t++){const a=e[t];if((0,i.$isBlockElementNode)(a))r&&!a.getFormat()&&a.setFormat(r),s.push(a);else if(o.push(a),t===e.length-1||t<e.length-1&&(0,i.$isBlockElementNode)(e[t+1])){const t=n();t.setFormat(r),t.append(...o),s.push(t),o=[]}}return s}(t,p,d?()=>{const t=new i.ArtificialNode__DO_NOT_USE;return n.push(t),t}:i.$createParagraphNode)),null==l)if(p.length>0)for(const t of p)a.push(t);else(0,i.isBlockDomNode)(t)&&function(t){return null!=t.nextSibling&&null!=t.previousSibling&&(0,i.isInlineDomNode)(t.nextSibling)&&(0,i.isInlineDomNode)(t.previousSibling)}(t)&&a.push((0,i.$createLineBreakNode)());else(0,i.$isElementNode)(l)&&l.append(...p);return a}},18857(t,e,n){"use strict";n.d(e,{Db:()=>l,FJ:()=>d,Ou:()=>w,Pm:()=>D,iK:()=>m,k_:()=>f,oP:()=>_,yW:()=>y,zA:()=>p});var r=n(91420),i=n(90415),s=n(28350),o=n(49408);const a=new Set(["http:","https:","mailto:","sms:","tel:"]);class l extends i.ElementNode{__url;__target;__rel;__title;static getType(){return"link"}static clone(t){return new l(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}constructor(t="",e={},n){super(n);const{target:r=null,rel:i=null,title:s=null}=e;this.__url=t,this.__target=r,this.__rel=i,this.__title=s}afterCloneFrom(t){super.afterCloneFrom(t),this.__url=t.__url,this.__rel=t.__rel,this.__target=t.__target,this.__title=t.__title}createDOM(t){const e=(0,i.$getDocument)().createElement("a");return this.updateLinkDOM(null,e,t),(0,i.addClassNamesToElement)(e,t.theme.link),e}updateLinkDOM(t,e,n){if((0,i.isHTMLAnchorElement)(e)){t&&t.__url===this.__url||(e.href=this.sanitizeUrl(this.__url));for(const n of["target","rel","title"]){const r=`__${n}`,i=this[r];t&&t[r]===i||(i?e[n]=i:e.removeAttribute(n))}}}updateDOM(t,e,n){return this.updateLinkDOM(t,e,n),!1}static importDOM(){return{a:t=>({conversion:u,priority:1})}}static importJSON(t){return p().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setURL(t.url).setRel(t.rel||null).setTarget(t.target||null).setTitle(t.title||null)}sanitizeUrl(t){const e=t;t=x(t);try{const e=new URL(x(t));if(!a.has(e.protocol))return"about:blank"}catch(t){const n=e.replace(/[\u0000-\u001F\u007F\s]/g,"").match(/^([a-z][a-z0-9+.-]*):/i);if(null!=n&&!a.has(`${n[1].toLowerCase()}:`))return"about:blank"}return t}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(t){const e=this.getWritable();return e.__url=t,e}getTarget(){return this.getLatest().__target}setTarget(t){const e=this.getWritable();return e.__target=t,e}getRel(){return this.getLatest().__rel}setRel(t){const e=this.getWritable();return e.__rel=t,e}getTitle(){return this.getLatest().__title}setTitle(t){const e=this.getWritable();return e.__title=t,e}insertNewAfter(t,e=!0){const n=(0,i.$copyNode)(this);return this.insertAfter(n,e),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(t,e,n){if(!(0,i.$isRangeSelection)(e))return!1;const r=e.anchor.getNode(),s=e.focus.getNode();return(this.is(r)||this.isParentOf(r))&&(this.is(s)||this.isParentOf(s))&&e.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}shouldMergeAdjacentLink(t){return this.getType()===t.getType()&&this.__url===t.__url&&this.__target===t.__target&&this.__rel===t.__rel&&this.__title===t.__title}}function A(t){const e=(0,i.$caretFromPoint)(t,"next");return[e,e.getFlipped()]}function c(t,e){for(const n of e)if(n.origin.isAttached()){const e=(0,i.$normalizeCaret)(n);return void(0,i.$setPointFromCaret)(t,e)}}function h(t){const e=(0,i.$getSelection)();let n=null,r=null;function s(){(0,i.$isRangeSelection)(e)&&(c(e.anchor,n),c(e.focus,r),(0,i.$normalizeSelection__EXPERIMENTAL)(e))}(0,i.$isRangeSelection)(e)&&(n=A(e.anchor),r=A(e.focus));let o=!1;for(const e of(0,i.$getChildCaret)(t,"next")){const n=e.origin;if((0,i.$isElementNode)(n)&&!n.isInline()){const r=n.getChildren();if(r.length>0){const e=(0,i.$copyNode)(t);e.append(...r),n.append(e),o=!0}(0,i.$insertNodeToNearestRootAtCaret)(n,(0,i.$rewindSiblingCaret)(e),{$shouldSplit:()=>!1})}}function a(t,e,n){const[r,s]=t,o=t=>(0,i.$isSiblingCaret)(t)&&t.origin.is(e);if(!o(r)&&!o(s))return t;const a=(0,i.$normalizeCaret)((0,i.$getChildCaret)(n,"next"));return[a,a.getFlipped()]}if(t.isAttached()){const e=t.getPreviousSibling();if(d(e)&&e.shouldMergeAdjacentLink(t))return n&&(n=a(n,e,t)),r&&(r=a(r,e,t)),e.append(...t.getChildren()),t.remove(),void s();const i=t.getNextSibling();d(i)&&t.shouldMergeAdjacentLink(i)&&(n&&(n=a(n,t,i)),r&&(r=a(r,t,i)),t.append(...i.getChildren()),i.remove(),o=!0)}if(o){if(!t.canBeEmpty()&&t.isEmpty()){const e=t.getParent();t.remove(),e&&e.isEmpty()&&e.remove()}s()}}function u(t){let e=null;if((0,i.isHTMLAnchorElement)(t)){const n=t.textContent;(null!==n&&""!==n||t.children.length>0)&&(e=p(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function p(t="",e){return(0,i.$applyNodeReplacement)(new l(t,e))}function d(t){return t instanceof l}class f extends l{__isUnlinked;constructor(t="",e={},n){super(t,e,n),this.__isUnlinked=void 0!==e.isUnlinked&&null!==e.isUnlinked&&e.isUnlinked}afterCloneFrom(t){super.afterCloneFrom(t),this.__isUnlinked=t.__isUnlinked}static getType(){return"autolink"}static clone(t){return new f(t.__url,{isUnlinked:t.__isUnlinked,rel:t.__rel,target:t.__target,title:t.__title},t.__key)}shouldMergeAdjacentLink(t){return!1}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(t){const e=this.getWritable();return e.__isUnlinked=t,e}createDOM(t){return this.__isUnlinked?(0,i.$getDocument)().createElement("span"):super.createDOM(t)}updateDOM(t,e,n){return super.updateDOM(t,e,n)||t.__isUnlinked!==this.__isUnlinked}static importJSON(t){return g().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setIsUnlinked(t.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(t,e=!0){const n=g(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,e),n}}function g(t="",e){return(0,i.$applyNodeReplacement)(new f(t,e))}function m(t){return t instanceof f}const y=(0,i.createCommand)("TOGGLE_LINK_COMMAND");function v(t,e){if("element"===t.type){const n=t.getNode();return(0,i.$isElementNode)(n)||function(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[t.offset+e]||null}return null}function O(t,e={}){let n;if(t&&"object"==typeof t){const{url:r,...i}=t;n=r,e={...i,...e}}else n=t;const{target:r,title:s}=e,o=void 0===e.rel?"noreferrer":e.rel,a=(0,i.$getSelection)();if(null===a||!(0,i.$isRangeSelection)(a)&&!(0,i.$isNodeSelection)(a))return;if((0,i.$isNodeSelection)(a)){const t=a.getNodes();if(0===t.length)return;return void t.forEach(t=>{if(null===n){const e=(0,i.$findMatchingParent)(t,t=>!m(t)&&d(t));e&&(e.insertBefore(t),0===e.getChildren().length&&e.remove())}else{const e=(0,i.$findMatchingParent)(t,t=>!m(t)&&d(t));if(e)e.setURL(n),void 0!==r&&e.setTarget(r),void 0!==o&&e.setRel(o);else{const e=p(n,{rel:o,target:r});t.insertBefore(e),e.append(t)}}})}if(a.isCollapsed()&&null===n)for(const t of a.getNodes()){const e=(0,i.$findMatchingParent)(t,t=>!m(t)&&d(t));return void(null!==e&&(e.getParentOrThrow().splice(e.getIndexWithinParent(),0,e.getChildren()),e.remove()))}const l=a.extract();if(null===n){const t=new Set;return void l.forEach(e=>{const n=(0,i.$findMatchingParent)(e,t=>!m(t)&&d(t));if(null!==n){const e=n.getKey();if(t.has(e))return;!function(t,e){const n=new Set(e.filter(e=>t.isParentOf(e)).map(t=>t.getKey())),r=t.getChildren(),s=r=>n.has(r.getKey())||(0,i.$isElementNode)(r)&&e.some(e=>t.isParentOf(e)&&r.isParentOf(e)),o=r.filter(s);if(o.length===r.length)return r.forEach(e=>t.insertBefore(e)),void t.remove();const a=r.findIndex(s),l=r.findLastIndex(s),A=0===a,c=l===r.length-1;if(A)o.forEach(e=>t.insertBefore(e));else if(c)for(let e=o.length-1;e>=0;e--)t.insertAfter(o[e]);else{for(let e=o.length-1;e>=0;e--)t.insertAfter(o[e]);const e=r.slice(l+1);if(e.length>0){const n=(0,i.$copyNode)(t);o[o.length-1].insertAfter(n),e.forEach(t=>n.append(t))}}}(n,l),t.add(e)}})}const A=new Set,c=t=>{A.has(t.getKey())||(A.add(t.getKey()),t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==o&&t.setRel(o),void 0!==s&&t.setTitle(s))};if(1===l.length){const t=l[0],e=(0,i.$findMatchingParent)(t,d);if(null!==e)return c(e)}!function(t){const e=(0,i.$getSelection)();if(!(0,i.$isRangeSelection)(e))return t();const n=(0,i.$normalizeSelection__EXPERIMENTAL)(e),r=n.isBackward(),s=v(n.anchor,r?-1:0),o=v(n.focus,r?0:-1);if(t(),s||o){const t=(0,i.$getSelection)();if((0,i.$isRangeSelection)(t)){const e=t.clone();if(s){const t=s.getParent();t&&e.anchor.set(t.getKey(),s.getIndexWithinParent()+(r?1:0),"element")}if(o){const t=o.getParent();t&&e.focus.set(t.getKey(),o.getIndexWithinParent()+(r?0:1),"element")}(0,i.$setSelection)((0,i.$normalizeSelection__EXPERIMENTAL)(e))}}}(()=>{let t=null;for(const e of l){if(!e.isAttached())continue;const a=(0,i.$findMatchingParent)(e,d);if(a){c(a);continue}if((0,i.$isElementNode)(e)){if(!e.isInline())continue;if(d(e)){if(!(m(e)||null!==t&&t.getParentOrThrow().isParentOf(e))){c(e),t=e;continue}for(const t of e.getChildren())e.insertBefore(t);e.remove();continue}}const l=e.getPreviousSibling();d(l)&&l.is(t)?l.append(e):(t=p(n,{rel:o,target:r,title:s}),e.insertAfter(t),t.append(e))}})}const b=/^\+?[0-9\s()-]{5,}$/;function x(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:b.test(t)?`tel:${t}`:`https://${t}`}s.VR.tag("a");function w(t,e){return(0,i.mergeRegister)(t.registerNodeTransform(l,h),t.registerCommand(y,t=>{const n=e.validateUrl.peek(),r=e.attributes.peek();if(null===t)return O(null),!0;if("string"==typeof t)return!(void 0!==n&&!n(t)||(O(t,r),0));{const{url:e,target:n,rel:i,title:s}=t;return O(e,{...r,rel:i,target:n,title:s}),!0}},i.COMMAND_PRIORITY_EDITOR),(0,r.QZ)(()=>{const n=e.validateUrl.value;if(!n)return;const r=e.attributes.value;return t.registerCommand(i.PASTE_COMMAND,e=>{const s=(0,i.$getSelection)();if(!(0,i.$isRangeSelection)(s)||s.isCollapsed()||!(0,o.xj)(e,ClipboardEvent))return!1;if(null===e.clipboardData)return!1;const a=e.clipboardData.getData("text");return!!n(a)&&!s.getNodes().some(t=>(0,i.$isElementNode)(t)||(0,i.$isTextNode)(t)&&!t.isSimpleText())&&(t.dispatchCommand(y,{...r,url:a}),e.preventDefault(),!0)},i.COMMAND_PRIORITY_LOW)}))}function _(t,e=t=>t){return n=>{const r=t.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:e(r[0])}}}function S(t,e){for(let n=0;n<e.length;n++){const r=e[n](t);if(r)return r}return null}s._e,s.Zj,_(/(([^<>()[\]\\.,;:\s@"]{1,64}(\.[^<>()[\]\\.,;:\s@"]{1,64}){0,63})|(".{1,255}"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]{1,63}\.){1,127}[a-zA-Z]{2,63}))/,t=>`mailto:${t}`);const C=/[.,;\s]/;function E(t,e){return e.test(t)}function B(t,e){return E(t[t.length-1],e)}function T(t,e){return E(t[0],e)}function P(t,e){let n=t.getPreviousSibling();return(0,i.$isElementNode)(n)&&(n=n.getLastDescendant()),null===n||(0,i.$isLineBreakNode)(n)||(0,i.$isTextNode)(n)&&B(n.getTextContent(),e)}function k(t,e){let n=t.getNextSibling();return(0,i.$isElementNode)(n)&&(n=n.getFirstDescendant()),null===n||(0,i.$isLineBreakNode)(n)||(0,i.$isTextNode)(n)&&T(n.getTextContent(),e)}function I(t,e,n,r,i){return!!(t>0?E(r[t-1],n):P(i[0],n))&&(e<r.length?E(r[e],n):k(i[i.length-1],n))}function N(t,e,n){const r=[],i=[],s=[];let o=0,a=0;const l=[...t];for(;l.length>0;){const t=l[0],A=t.getTextContent().length,c=a;a+A<=e?(r.push(t),o+=A):c>=n?s.push(t):i.push(t),a+=A,l.shift()}return[o,r,i,s]}function Q(t,e,n,r){const s=g(r.url,r.attributes);if(1===t.length){let o,a=t[0];0===e?[o,a]=a.splitText(n):[,o,a]=a.splitText(e,n);const l=(0,i.$createTextNode)(r.text);return l.setFormat(o.getFormat()),l.setDetail(o.getDetail()),l.setStyle(o.getStyle()),s.append(l),o.replace(s),a}if(t.length>1){const r=t[0];let o,a=r.getTextContent().length;0===e?o=r:[,o]=r.splitText(e);const l=[];let A;for(let e=1;e<t.length;e++){const r=t[e],i=r.getTextContent().length,s=a;if(s<n)if(a+i<=n)l.push(r);else{const[t,e]=r.splitText(n-s);l.push(t),A=e}a+=i}const c=(0,i.$getSelection)(),h=c?c.getNodes().find(i.$isTextNode):void 0,u=(0,i.$createTextNode)(o.getTextContent());return u.setFormat(o.getFormat()),u.setDetail(o.getDetail()),u.setStyle(o.getStyle()),s.append(u,...l),h&&h===o&&((0,i.$isRangeSelection)(c)?u.select(c.anchor.offset,c.focus.offset):(0,i.$isNodeSelection)(c)&&u.select(0,u.getTextContent().length)),o.replace(s),A}}function F(t,e,n,r){const s=t.getChildren(),o=s.length;for(let e=0;e<o;e++){const r=s[e];if(!(0,i.$isTextNode)(r)||!r.isSimpleText())return L(t),void n(null,t.getURL())}const a=t.getTextContent(),l=S(a,e);if(null===l||l.text!==a)return L(t),void n(null,t.getURL());if(!P(t,r)||!k(t,r))return L(t),void n(null,t.getURL());const A=t.getURL();if(A!==l.url&&(t.setURL(l.url),n(l.url,A)),l.attributes){const e=t.getRel();e!==l.attributes.rel&&(t.setRel(l.attributes.rel||null),n(l.attributes.rel||null,e));const r=t.getTarget();r!==l.attributes.target&&(t.setTarget(l.attributes.target||null),n(l.attributes.target||null,r))}}function L(t){const e=t.getChildren();for(let n=e.length-1;n>=0;n--)t.insertAfter(e[n]);return t.remove(),e.map(t=>t.getLatest())}const M={changeHandlers:[],excludeParents:[],matchers:[],separatorRegex:C};function D(t,e=M){const{matchers:n,changeHandlers:r,excludeParents:s,separatorRegex:o=C}=e,a=(t,e)=>{for(const n of r)n(t,e)};return(0,i.mergeRegister)(t.registerNodeTransform(i.TextNode,t=>{const e=t.getParentOrThrow(),r=t.getPreviousSibling();if(m(e))F(e,n,a,o);else if(!d(e)&&!s.some(t=>t(e))){if(t.isSimpleText()&&(T(t.getTextContent(),o)||!m(r))){const e=function(t){const e=[t];let n=t.getNextSibling();for(;null!==n&&(0,i.$isTextNode)(n)&&n.isSimpleText()&&(e.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return e}(t);!function(t,e,n,r){for(const e of t){const t=e.getParent();if(m(t)&&!t.getIsUnlinked())return}let i=[...t];const s=i.map(t=>t.getTextContent()).join("");let o,a=s,l=0;for(;(o=S(a,e))&&null!==o;){const t=o.index,e=t+o.length;if(I(l+t,l+e,r,s,i)){const[r,,s,A]=N(i,l+t,l+e);let c=!1;for(const t of s){const e=t.getParent();if(m(e)&&!e.getIsUnlinked()){c=!0;break}}if(c){l+=e,a=a.substring(e);continue}const h=Q(s,l+t-r,l+e-r,o);i=h?[h,...A]:A,n(o.url,null),l=0}else l+=e;a=a.substring(e)}}(e,n,a,o)}!function(t,e,n,r){const i=t.getParent(),s=t.getPreviousSibling(),o=t.getNextSibling(),a=t.getTextContent();if(!m(i)||i.getIsUnlinked()){if(m(s)&&!s.getIsUnlinked()&&s.is(t.getPreviousSibling())&&t.getParent()===s.getParent()){if(!T(a,r))return L(s),void n(null,s.getURL());if(l=a,s.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(l):/^\.[a-zA-Z0-9]{1,}/.test(l)){const i=s.getTextContent()+a,o=S(i,e);null!==o&&o.text===i&&(s.append(t),F(s,e,n,r),n(null,s.getURL()))}}var l;!m(o)||o.getIsUnlinked()||B(a,r)||o.is(t.getNextSibling())&&t.getParent()===o.getParent()&&(L(o),n(null,o.getURL()))}}(t,n,a,o)}}),t.registerCommand(y,t=>{const e=(0,i.$getSelection)();return!(null!==t||!(0,i.$isRangeSelection)(e)||(e.extract().forEach(t=>{const e=t.getParent();m(e)&&(e.setIsUnlinked(!e.getIsUnlinked()),e.markDirty())}),1))},i.COMMAND_PRIORITY_LOW))}},52741(t,e,n){"use strict";n.d(e,{DE:()=>T,GO:()=>I,HY:()=>P,Js:()=>Y,Mz:()=>_,YW:()=>v,cz:()=>G,g2:()=>a,i:()=>w,mJ:()=>k,q7:()=>V,uS:()=>z,v5:()=>S,x:()=>X});var r=n(49408),i=n(90415),s=(n(91420),n(28350));function o(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function a(t){let e=1,n=t.getParent();for(;null!=n;){if(_(n)){const t=n.getParent();if(P(t)){e++,n=t.getParent();continue}o(40)}return e}return e}function l(t){const e=t.getParent();P(e)||o(40);let n=e,r=e;for(;null!==r;)r=r.getParent(),P(r)&&(n=r);return n}function A(t){let e=[];const n=t.getChildren().filter(_);for(let t=0;t<n.length;t++){const r=n[t],i=r.getFirstChild();P(i)?e=e.concat(A(i)):e.push(r)}return e}function c(t){return _(t)&&P(t.getFirstChild())}function h(t,e){return _(t)&&(0===e.length||1===e.length&&t.is(e[0])&&0===t.getChildrenSize())}function u(t){const e=(0,i.$getSelection)();if(null!==e){let n=e.getNodes();if((0,i.$isRangeSelection)(e)){const[r]=e.getStartEndPoints(),s=r.getNode(),o=s.getParent();if((0,i.$isRootOrShadowRoot)(s)){const t=s.getFirstChild();if(t)n=t.selectStart().getNodes();else{const t=(0,i.$createParagraphNode)();s.append(t),n=t.select().getNodes()}}else if(h(s,n)){const e=T(t);if((0,i.$isRootOrShadowRoot)(o)){s.replace(e);const t=w();(0,i.$isElementNode)(s)&&(t.setFormat(s.getFormatType()),t.setIndent(s.getIndent())),e.append(t)}else if(_(s)){const t=s.getParentOrThrow();p(e,t.getChildren()),t.replace(e)}return}}const r=new Set;for(let e=0;e<n.length;e++){const s=n[e];if((0,i.$isElementNode)(s)&&s.isEmpty()&&!_(s)&&!r.has(s.getKey())){d(s,t);continue}let o=(0,i.$isLeafNode)(s)?s.getParent():_(s)&&s.isEmpty()?s:null;for(;null!=o;){const e=o.getKey();if(P(o)){if(!r.has(e)){const n=T(t);p(n,o.getChildren()),o.replace(n),r.add(e)}break}{const n=o.getParent();if((0,i.$isRootOrShadowRoot)(n)&&!r.has(e)){r.add(e),d(o,t);break}o=n}}}}}function p(t,e){t.splice(t.getChildrenSize(),0,e)}function d(t,e){if(P(t))return t;const n=t.getPreviousSibling(),r=t.getNextSibling(),s=w();let o;if(p(s,t.getChildren()),P(n)&&e===n.getListType())n.append(s),P(r)&&e===r.getListType()&&(p(n,r.getChildren()),r.remove()),o=n;else if(P(r)&&e===r.getListType())r.getFirstChildOrThrow().insertBefore(s),o=r;else{const n=T(e);n.append(s),t.replace(n),o=n}s.setFormat(t.getFormatType()),s.setIndent(t.getIndent());const a=(0,i.$getSelection)();return(0,i.$isRangeSelection)(a)&&(o.getKey()===a.anchor.key&&a.anchor.set(s.getKey(),a.anchor.offset,"element"),o.getKey()===a.focus.key&&a.focus.set(s.getKey(),a.focus.offset,"element")),t.remove(),o}function f(t,e){const n=t.getLastChild(),r=e.getFirstChild();n&&r&&c(n)&&c(r)&&(f(n.getFirstChild(),r.getFirstChild()),r.remove());const i=e.getChildren();i.length>0&&t.append(...i),e.remove()}function g(t){const e="check"!==t.getListType();let n=t.getStart();for(const r of t.getChildren())_(r)&&(r.getValue()!==n&&r.setValue(n),e&&null!=r.getLatest().__checked&&r.setChecked(void 0),P(r.getFirstChild())||n++)}function m(t){const e=new Set;if(c(t)||e.has(t.getKey()))return;const n=t.getParent(),r=t.getNextSibling(),s=t.getPreviousSibling();if(c(r)&&c(s)){const n=s.getFirstChild();if(P(n)){n.append(t);const i=r.getFirstChild();P(i)&&(p(n,i.getChildren()),r.remove(),e.add(r.getKey()))}}else if(c(r)){const e=r.getFirstChild();if(P(e)){const n=e.getFirstChild();null!==n&&n.insertBefore(t)}}else if(c(s)){const e=s.getFirstChild();P(e)&&e.append(t)}else if(P(n)){const e=(0,i.$copyNode)(t),o=(0,i.$copyNode)(n);e.append(o),o.append(t),s?s.insertAfter(e):r?r.insertBefore(e):n.append(e)}}function y(t){if(c(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(P(n?n.getParent():void 0)&&_(n)&&P(e)){const r=e?e.getFirstChild():void 0,s=e?e.getLastChild():void 0;if(t.is(r))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(s))n.insertAfter(t),e.isEmpty()&&n.remove();else{const r=(0,i.$copyNode)(t),s=(0,i.$copyNode)(e);r.append(s),t.getPreviousSiblings().forEach(t=>s.append(t));const o=(0,i.$copyNode)(t),a=(0,i.$copyNode)(e);o.append(a),p(a,t.getNextSiblings()),n.insertBefore(r),n.insertAfter(o),n.replace(t)}}}class v extends i.ElementNode{__value;__checked;$config(){return this.config("listitem",{$transform:t=>{const e=t.getParent();if(P(e))"check"!==e.getListType()&&null!=t.getChecked()&&t.setChecked(void 0);else if(e){const n=t.createParentElementNode();P(n)||o(340);const r=[t];for(const e of["previous","next"]){r.reverse();for(const{origin:n}of(0,i.$getSiblingCaret)(t,e)){if(!_(n))break;r.push(n)}}t.insertBefore(n),n.splice(0,0,r),(0,i.$isRootOrShadowRoot)(e)||((0,i.$insertNodeToNearestRootAtCaret)(n,(0,i.$rewindSiblingCaret)((0,i.$getSiblingCaret)(n,"next")),{$shouldSplit:()=>!1,removeEmptyDestination:!0}),e.isEmpty()&&e.isAttached()&&e.remove())}},extends:i.ElementNode,importDOM:(0,i.buildImportMap)({li:()=>({conversion:O,priority:0})})})}constructor(t=1,e=void 0,n){super(n),this.__value=void 0===t?1:t,this.__checked=e}afterCloneFrom(t){super.afterCloneFrom(t),this.__value=t.__value,this.__checked=t.__checked}createDOM(t){const e=(0,i.$getDocument)().createElement("li");return this.updateListItemDOM(null,e,t),e}updateListItemDOM(t,e,n){!function(t,e){const n=e.getParent();!P(n)||"check"!==n.getListType()||P(e.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),t.setAttribute("aria-checked",e.getChecked()?"true":"false"))}(e,this),e.value=this.__value,function(t,e,n){const r=e.list;if(!r)return;const s=r.listitem,o=r.nested&&r.nested.listitem,a=n.getParent(),l=P(a)&&"check"===a.getListType(),A=n.getChecked(),c=n.getChildren().some(t=>P(t)),h=[];void 0!==r.listitemChecked&&h.push(r.listitemChecked),void 0!==r.listitemUnchecked&&h.push(r.listitemUnchecked),void 0!==o&&h.push(...(0,i.normalizeClassNames)(o)),h.length>0&&(0,i.removeClassNamesFromElement)(t,...h);const u=[];if(void 0!==s&&u.push(...(0,i.normalizeClassNames)(s)),l){const t=A?r.listitemChecked:r.listitemUnchecked;void 0!==t&&u.push(t)}void 0!==o&&c&&u.push(...(0,i.normalizeClassNames)(o)),u.length>0&&(0,i.addClassNamesToElement)(t,...u)}(e,n.theme,this);const r=t?t.__style:"",s=this.__style;r!==s&&(0,i.setDOMStyleFromCSS)(e.style,s,r),function(t,e,n){const r=e.__textStyle,s=n?n.__textStyle:"";if(null!==n&&s===r)return;const o=(0,i.getStyleObjectFromCSS)(r);for(const e in o)t.style.setProperty(`--listitem-marker-${e}`,o[e]);if(""!==s)for(const e in(0,i.getStyleObjectFromCSS)(s))e in o||t.style.removeProperty(`--listitem-marker-${e}`)}(e,this,t)}updateDOM(t,e,n){const r=e;return this.updateListItemDOM(t,r,n),!1}updateFromJSON(t){return super.updateFromJSON(t).setValue(t.value).setChecked(t.checked)}exportDOM(t){const e=this.createDOM(t._config),n=this.getFormatType();n&&(e.style.textAlign=n);const r=this.getDirection();return r&&(e.dir=r),c(this)?{after(t){if((0,i.isHTMLElement)(t)){const e=t.previousElementSibling;if((0,i.isHTMLElement)(e)&&"LI"===e.nodeName){for(;t.firstChild;)e.append(t.firstChild);t.remove()}}return t},element:e}:{element:e}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...t){for(let e=0;e<t.length;e++){const n=t[e];if((0,i.$isElementNode)(n)&&this.canMergeWith(n)){const t=n.getChildren();this.append(...t),n.remove()}else super.append(n)}return this}replace(t,e){if(_(t))return super.replace(t);this.setIndent(0);const n=this.getParentOrThrow();if(!P(n))return t;if(n.__first===this.getKey())n.insertBefore(t);else if(n.__last===this.getKey())n.insertAfter(t);else{const e=(0,i.$copyNode)(n);let r=this.getNextSibling();for(;r;){const t=r;r=r.getNextSibling(),e.append(t)}n.insertAfter(t),t.insertAfter(e)}const r=this.__key;let s=0;if(e&&((0,i.$isElementNode)(t)||o(139),s=t.getChildrenSize(),t.splice(s,0,this.getChildren())),e&&(0,i.$isElementNode)(t)){const e=(0,i.$getSelection)();if((0,i.$isRangeSelection)(e))for(const n of e.getStartEndPoints())n.key===r&&"element"===n.type&&n.set(t.getKey(),s+n.offset,"element")}return this.remove(),0===n.getChildrenSize()&&n.remove(),t}insertAfter(t,e=!0){const n=this.getParentOrThrow();if(P(n)||o(39),_(t))return super.insertAfter(t,e);const r=this.getNextSiblings();if(n.insertAfter(t,e),0!==r.length){const s=(0,i.$copyNode)(n);r.forEach(t=>s.append(t)),t.insertAfter(s,e)}return t}remove(t){const e=this.getPreviousSibling(),n=this.getNextSibling();super.remove(t),e&&n&&c(e)&&c(n)&&(f(e.getFirstChild(),n.getFirstChild()),n.remove())}resetOnCopyNodeFrom(t){super.resetOnCopyNodeFrom(t),t.getChecked()&&this.setChecked(!1)}insertNewAfter(t,e=!0){const n=(0,i.$copyNode)(this);return this.insertAfter(n,e),n}collapseAtStart(t){if(c(this))return!1;const e=this.getParentOrThrow();if(_(e.getParentOrThrow()))return y(this),!0;const n=(0,i.$createParagraphNode)().append(...this.getChildren()),r=this.getNextSiblings();if(r.length>0){const t=(0,i.$copyNode)(e);t.append(...r),e.insertAfter(t)}return e.insertAfter(n),this.remove(),0===e.getChildrenSize()&&e.remove(),n.selectStart(),!0}getValue(){return this.getLatest().__value}setValue(t){const e=this.getWritable();return e.__value=t,e}getChecked(){const t=this.getLatest();let e;const n=this.getParent();return P(n)&&(e=n.getListType()),"check"===e?Boolean(t.__checked):void 0}setChecked(t){const e=this.getWritable();return e.__checked=t,e}toggleChecked(){const t=this.getWritable();return t.setChecked(!t.__checked)}getIndent(){const t=this.getParent();if(null===t||!this.isAttached())return this.getLatest().__indent;let e=t.getParentOrThrow(),n=0;for(;_(e);)e=e.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(t){"number"!=typeof t&&o(117),(t=Math.floor(t))>=0||o(199);let e=this.getIndent();for(;e!==t;)e<t?(m(this),e++):(y(this),e--);return this}canInsertAfter(t){return _(t)}canReplaceWith(t){return _(t)}canMergeWith(t){return _(t)||(0,i.$isParagraphNode)(t)}extractWithChild(t,e){if(!(0,i.$isRangeSelection)(e))return!1;const n=e.anchor.getNode(),r=e.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===e.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return T("bullet")}canMergeWhenEmpty(){return!0}}function O(t){if(t.classList.contains("task-list-item"))for(const e of t.children)if("INPUT"===e.tagName)return b(e);if(t.classList.contains("joplin-checkbox"))for(const e of t.children)if(e.classList.contains("checkbox-wrapper")&&e.children.length>0&&"INPUT"===e.children[0].tagName)return b(e.children[0]);const e=t.getAttribute("aria-checked"),n=w("true"===e||"false"!==e&&void 0);return(0,i.$setFormatFromDOM)(n,t),{after:x.bind(null,n),node:(0,i.$setDirectionFromDOM)(n,t)}}function b(t){if("checkbox"!==t.getAttribute("type"))return{node:null};const e=w(t.hasAttribute("checked"));return{after:x.bind(null,e),node:e}}function x(t,e){const n=e[0];return 1===e.length&&(0,i.$isParagraphNode)(n)&&!t.getFormatType()&&n.getFormatType()?(t.setFormat(n.getFormatType()),n.getChildren()):e}function w(t){return(0,i.$applyNodeReplacement)(new v(void 0,t))}function _(t){return t instanceof v}class S extends i.ElementNode{__tag;__start;__listType;$config(){return this.config("list",{$transform:t=>{!function(t){const e=t.getNextSibling();P(e)&&t.getListType()===e.getListType()&&f(t,e)}(t),g(t)},extends:i.ElementNode,importDOM:(0,i.buildImportMap)({ol:()=>({conversion:E,priority:0}),ul:()=>({conversion:E,priority:0})})})}constructor(t="number",e=1,n){super(n);const r=B[t]||t;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=e}afterCloneFrom(t){super.afterCloneFrom(t),this.__listType=t.__listType,this.__tag=t.__tag,this.__start=t.__start}getTag(){return this.getLatest().__tag}setListType(t){const e=this.getWritable();return e.__listType=t,e.__tag="number"===t?"ol":"ul",e}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(t){const e=this.getWritable();return e.__start=t,e}createDOM(t,e){const n=this.__tag,r=(0,i.$getDocument)().createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,C(r,t.theme,this),r}updateDOM(t,e,n){return t.__tag!==this.__tag||t.__listType!==this.__listType||(C(e,n.theme,this),t.__start!==this.__start&&e.setAttribute("start",String(this.__start)),!1)}updateFromJSON(t){return super.updateFromJSON(t).setListType(t.listType).setStart(t.start)}exportDOM(t){const e=this.createDOM(t._config,t);return(0,i.isHTMLElement)(e)&&(1!==this.__start&&e.setAttribute("start",String(this.__start)),"check"===this.__listType&&e.setAttribute("__lexicalListType","check")),{element:e}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(t,e,n){let r=n;for(let t=0;t<n.length;t++){const e=n[t];_(e)||(r===n&&(r=[...n]),r[t]=this.createListItemNode().append(!(0,i.$isElementNode)(e)||P(e)||e.isInline()?e:(0,i.$createTextNode)(e.getTextContent())))}return super.splice(t,e,r)}extractWithChild(t){return _(t)}createListItemNode(){return w()}}function C(t,e,n){const r=[],s=[],o=e.list;if(void 0!==o){const t=o[`${n.__tag}Depth`]||[],e=a(n)-1,l=e%t.length,A=t[l],c=o[n.__tag];let h;const u=o.nested,p=o.checklist;if(void 0!==u&&u.list&&(h=u.list),void 0!==c&&r.push(c),void 0!==p&&"check"===n.__listType&&r.push(p),void 0!==A){r.push(...(0,i.normalizeClassNames)(A));for(let e=0;e<t.length;e++)e!==l&&s.push(n.__tag+e)}if(void 0!==h){const t=(0,i.normalizeClassNames)(h);e>1?r.push(...t):s.push(...t)}}s.length>0&&(0,i.removeClassNamesFromElement)(t,...s),r.length>0&&(0,i.addClassNamesToElement)(t,...r)}function E(t){let e;if(function(t){return(0,i.isHTMLElement)(t)&&"ol"===t.nodeName.toLowerCase()}(t)){const n=t.start;e=T("number",n)}else e=function(t){if("check"===t.getAttribute("__lexicallisttype")||t.classList.contains("contains-task-list")||"1"===t.getAttribute("data-is-checklist"))return!0;for(const e of t.childNodes)if((0,i.isHTMLElement)(e)&&e.hasAttribute("aria-checked"))return!0;return!1}(t)?T("check"):T("bullet");return(0,i.$setDirectionFromDOM)(e,t),{after:t=>function(t,e){const n=e.createListItemNode.bind(e),r=[];for(let e=0;e<t.length;e++){const i=t[e];if(_(i)){r.push(i);const t=i.getChildren();t.length>1&&t.forEach(t=>{P(t)&&r.push(n().append(t))})}else r.push(n().append(i))}return r}(t,e),node:e}}const B={ol:"number",ul:"bullet"};function T(t="number",e=1){return(0,i.$applyNodeReplacement)(new S(t,e))}function P(t){return t instanceof S}const k=(0,i.createCommand)("INSERT_CHECK_LIST_COMMAND");function I(t,e){const n=e&&e.disableTakeFocusOnClick||!1,r="boolean"==typeof n?()=>n:n.peek.bind(n),s=t=>{const e=t.target;if(!(0,i.isHTMLElement)(e))return!1;const n=e.__lexicalCheckListLastHandled;return void 0!==n&&t.timeStamp-n<500},o=t=>{const e=t.target;(0,i.isHTMLElement)(e)&&(e.__lexicalCheckListLastHandled=t.timeStamp)},a=t=>{s(t)||(o(t),Q(t,r()))},l=t=>{"touch"===t.pointerType&&(s(t)||(o(t),Q(t,r())))},A=t=>{!function(t,e){N(t,()=>{t.preventDefault(),e&&t.stopPropagation()})}(t,r())};return(0,i.mergeRegister)(t.registerCommand(k,()=>(u("check"),!0),i.COMMAND_PRIORITY_LOW),t.registerCommand(i.KEY_ARROW_DOWN_COMMAND,e=>L(e,t,!1),i.COMMAND_PRIORITY_LOW),t.registerCommand(i.KEY_ARROW_UP_COMMAND,e=>L(e,t,!0),i.COMMAND_PRIORITY_LOW),t.registerCommand(i.KEY_ESCAPE_COMMAND,()=>{if(null!=F(t)){const e=t.getRootElement();return null!=e&&e.focus(),!0}return!1},i.COMMAND_PRIORITY_LOW),t.registerCommand(i.KEY_SPACE_COMMAND,e=>{const n=F(t);return!(null==n||!t.isEditable()||(t.update(()=>{const t=(0,i.$getNearestNodeFromDOMNode)(n);_(t)&&(e.preventDefault(),t.toggleChecked())}),0))},i.COMMAND_PRIORITY_LOW),t.registerCommand(i.KEY_ARROW_LEFT_COMMAND,e=>t.read("latest",()=>{const n=(0,i.$getSelection)();if((0,i.$isRangeSelection)(n)&&n.isCollapsed()){const{anchor:r}=n,s="element"===r.type;if(s||0===r.offset){const n=r.getNode(),o=(0,i.$findMatchingParent)(n,t=>(0,i.$isElementNode)(t)&&!t.isInline());if(_(o)){const r=o.getParent();if(P(r)&&"check"===r.getListType()&&(s||o.getFirstDescendant()===n)){const n=t.getElementByKey(o.__key);if(null!=n&&(0,i.getActiveElement)(n)!==n)return n.focus(),e.preventDefault(),!0}}}}return!1}),i.COMMAND_PRIORITY_LOW),t.registerRootListener(t=>{if(null!==t)return(0,i.mergeRegister)((0,i.registerEventListeners)(t,{click:a,pointerup:l}),(0,i.registerEventListeners)(t,{mousedown:A,pointerdown:A},{capture:!0}),(0,i.registerEventListener)(t,"touchstart",A,{capture:!0,passive:!1}))}))}function N(t,e){const n=t.target;if(!(0,i.isHTMLElement)(n))return;const s=n.firstChild;if((0,i.isHTMLElement)(s)&&("UL"===s.tagName||"OL"===s.tagName))return;const o=n.parentNode;if(!o||"check"!==o.__lexicalListType)return;let a=null,l=null;if("clientX"in t)a=t.clientX;else if("touches"in t){const e=t.touches;e.length>0&&(a=e[0].clientX,l="touch")}if(null==a)return;const A=n.getBoundingClientRect(),c=a/(0,r.OV)(n),h=n.ownerDocument.defaultView,u=h?h.getComputedStyle(n,"::before"):{width:"0px"},p=parseFloat(u.width),d="touch"===l||"pointerType"in t&&"touch"===t.pointerType?32:0;("rtl"===n.dir?c<A.right+d&&c>A.right-p-d:c>A.left-d&&c<A.left+p+d)&&e()}function Q(t,e){N(t,()=>{if((0,i.isHTMLElement)(t.target)){const n=t.target,r=(0,i.getNearestEditorFromDOMNode)(n);null!=r&&r.isEditable()&&r.update(()=>{const t=(0,i.$getNearestNodeFromDOMNode)(n);_(t)&&(e?((0,i.$addUpdateTag)(i.SKIP_SELECTION_FOCUS_TAG),(0,i.$addUpdateTag)(i.SKIP_DOM_SELECTION_TAG)):n.focus(),t.toggleChecked())})}})}function F(t){const e=t.getRootElement(),n=e?(0,i.getActiveElement)(e):null;return(0,i.isHTMLElement)(n)&&"LI"===n.tagName&&null!=n.parentNode&&"check"===n.parentNode.__lexicalListType?n:null}function L(t,e,n){const r=F(e);return null!=r&&e.update(()=>{const s=(0,i.$getNearestNodeFromDOMNode)(r);if(!_(s))return;const o=function(t,e){let n=e?t.getPreviousSibling():t.getNextSibling(),r=t;for(;null==n&&_(r);)r=r.getParentOrThrow().getParent(),null!=r&&(n=e?r.getPreviousSibling():r.getNextSibling());for(;_(n);){const t=e?n.getLastChild():n.getFirstChild();if(!P(t))return n;n=e?t.getLastChild():t.getFirstChild()}return null}(s,n);if(null!=o){o.selectStart();const n=e.getElementByKey(o.__key);null!=n&&(t.preventDefault(),setTimeout(()=>{n.focus()},0))}}),!1}function M(t){const e=[];for(const n of t)if(_(n)){e.push(n);const t=n.getChildren();if(t.length>1)for(const n of t)P(n)&&e.push(w().append(n))}else e.push(w().append(n));return e}const D=(0,s.Bu)({$import:(t,e)=>{let n;var r;return n=(0,s.S$)(e,"ol")?T("number",e.start):(r=e).matches('[__lexicallisttype="check"], .contains-task-list, [data-is-checklist="1"]')||null!==r.querySelector(":scope > [aria-checked]")?T("check"):T("bullet"),(0,i.$setDirectionFromDOM)(n,e),[n.splice(0,0,(0,s.FD)(M(t.$importChildren(e)),e))]},match:s.VR.tag("ol","ul"),name:"@lexical/list/list"});function R(t,e){if(1!==e.length)return e;const n=e[0];return(0,i.$isParagraphNode)(n)&&!t.getFormatType()&&n.getFormatType()?(t.setFormat(n.getFormatType()),n.getChildren()):e}function U(t){const e=t=>(0,s.k4)(t)&&!P(t);if(!t.some(e))return t;const n=[];let r=[];const o=()=>{r.length>0&&(n.push(r),r=[])};for(const s of t)e(s)?(o(),n.push((0,i.$isElementNode)(s)?s.getChildren():[s])):r.push(s);o();const a=[];for(const t of n)a.length>0&&a.push((0,i.$createLineBreakNode)()),a.push(...t);return a}const $=(0,s.Bu)({$import:(t,e)=>{const n=e.getAttribute("aria-checked"),r=w("true"===n||"false"!==n&&void 0);return(0,i.$setFormatFromDOM)(r,e),(0,i.$setDirectionFromDOM)(r,e),[r.splice(0,0,U(R(r,t.$importChildren(e))))]},match:s.VR.tag("li"),name:"@lexical/list/li"});function j(t,e,n){const r=(0,s.S$)(n,"input")?n:n.querySelector('input[type="checkbox"]');if(!r||"checkbox"!==r.getAttribute("type"))return[];const o=w(r.hasAttribute("checked"));return(0,i.$setFormatFromDOM)(o,e),(0,i.$setDirectionFromDOM)(o,e),[o.splice(0,0,U(R(o,t.$importChildren(e))))]}s.VR.tag("li").classAll("task-list-item"),s.VR.tag("li").classAll("joplin-checkbox");const H=(0,i.createCommand)("UPDATE_LIST_START_COMMAND"),V=(0,i.createCommand)("INSERT_UNORDERED_LIST_COMMAND"),X=(0,i.createCommand)("INSERT_ORDERED_LIST_COMMAND"),z=(0,i.createCommand)("REMOVE_LIST_COMMAND");function G(t,e){return(0,i.mergeRegister)(t.registerCommand(X,()=>(u("number"),!0),i.COMMAND_PRIORITY_LOW),t.registerCommand(H,t=>{const{listNodeKey:e,newStart:n}=t,r=(0,i.$getNodeByKey)(e);return!!P(r)&&("number"===r.getListType()&&(r.setStart(n),g(r)),!0)},i.COMMAND_PRIORITY_LOW),t.registerCommand(V,()=>(u("bullet"),!0),i.COMMAND_PRIORITY_LOW),t.registerCommand(z,()=>(function(){const t=(0,i.$getSelection)();if((0,i.$isRangeSelection)(t)){const e=new Set,n=t.getNodes(),s=t.anchor.getNode();if(h(s,n))e.add(l(s));else for(let t=0;t<n.length;t++){const s=n[t];if((0,i.$isLeafNode)(s)){const t=(0,r.eu)(s,v);null!=t&&e.add(l(t))}}for(const n of e){let e=n;const r=A(n);for(const n of r){const r=(0,i.$createParagraphNode)().setTextStyle(t.style).setTextFormat(t.format);p(r,n.getChildren()),e.insertAfter(r),e=r,n.__key===t.anchor.key&&(0,i.$setPointFromCaret)(t.anchor,(0,i.$normalizeCaret)((0,i.$getChildCaret)(r,"next"))),n.__key===t.focus.key&&(0,i.$setPointFromCaret)(t.focus,(0,i.$normalizeCaret)((0,i.$getChildCaret)(r,"next"))),n.remove()}n.remove()}}}(),!0),i.COMMAND_PRIORITY_LOW),t.registerCommand(i.INSERT_PARAGRAPH_COMMAND,()=>function(t=!1){const e=(0,i.$getSelection)();if(!(0,i.$isRangeSelection)(e)||!e.isCollapsed())return!1;const n=e.anchor.getNode();let r=null;if(_(n)&&0===n.getChildrenSize())r=n;else if((0,i.$isTextNode)(n)){const t=n.getParent();_(t)&&t.getChildren().every(t=>(0,i.$isTextNode)(t)&&""===t.getTextContent().trim())&&(r=t)}if(null===r)return!1;const s=l(r),a=r.getParent();P(a)||o(40);const A=a.getParent();let c;if((0,i.$isRootOrShadowRoot)(A))c=(0,i.$createParagraphNode)(),s.insertAfter(c);else{if(!_(A))return!1;c=(0,i.$copyNode)(A),A.insertAfter(c)}c.setTextStyle(e.style).setTextFormat(e.format).select();const h=r.getNextSiblings();if(h.length>0){const e=t?function(t,e){return t.getStart()+e.getIndexWithinParent()}(a,r):1,n=(0,i.$copyNode)(a).setStart(e);if(_(c)){const t=(0,i.$copyNode)(c);t.append(n),c.insertAfter(t)}else c.insertAfter(n);n.append(...h)}return function(t){let e=t;for(;null==e.getNextSibling()&&null==e.getPreviousSibling();){const t=e.getParent();if(null==t||!_(t)&&!P(t))break;e=t}e.remove()}(r),!0}(!(!e||!e.restoreNumbering)),i.COMMAND_PRIORITY_LOW),t.registerCommand(i.KEY_BACKSPACE_COMMAND,t=>{if(function(){const t=(0,i.$getSelection)();if(!(0,i.$isRangeSelection)(t)||!t.isCollapsed()||0!==t.anchor.offset)return!1;const e=t.anchor.getNode(),n=(0,i.$findMatchingParent)(e,_);if(!_(n))return!1;const r=n.getFirstDescendant();if(null===r)return!1;if(!n.is(e)&&!r.is(e))return!1;const s=n.getParent();if(!P(s)||!n.is(s.getFirstChild()))return!1;const o=s.getPreviousSibling();if(!(0,i.$isDecoratorNode)(o)||o.isIsolated()||!o.isKeyboardSelectable()&&o.isInline())return!1;const a=(0,i.$createParagraphNode)().append(...n.getChildren());return s.insertBefore(a),n.remove(),s.isEmpty()&&s.remove(),a.selectStart(),!0}())return t.preventDefault(),!0;const e=(0,i.$getSelection)();if(!(0,i.$isRangeSelection)(e)||!e.isCollapsed())return!1;const{anchor:n}=e;if(0!==n.offset)return!1;let r=n.getNode();for(;!_(r);){if(null!==r.getPreviousSibling())return!1;const t=r.getParent();if(null===t)return!1;r=t}return!(!_(r)||!r.collapseAtStart(e)||(t.preventDefault(),0))},i.COMMAND_PRIORITY_BEFORE_EDITOR),t.registerNodeTransform(v,t=>{const e=t.getFirstChild();if(e){if((0,i.$isTextNode)(e)){const n=e.getStyle(),r=e.getFormat();t.getTextStyle()!==n&&t.setTextStyle(n),t.getTextFormat()!==r&&t.setTextFormat(r)}}else{const e=(0,i.$getSelection)();(0,i.$isRangeSelection)(e)&&(e.style!==t.getTextStyle()||e.format!==t.getTextFormat())&&e.isCollapsed()&&t.is(e.anchor.getNode())&&t.setTextStyle(e.style).setTextFormat(e.format)}}),t.registerNodeTransform(i.TextNode,t=>{const e=t.getParent();if(_(e)&&t.is(e.getFirstChild())){const n=t.getStyle(),r=t.getFormat();n===e.getTextStyle()&&r===e.getTextFormat()||e.setTextStyle(n).setTextFormat(r)}}))}function Y(t){const e=t=>{const e=t.getParent();if(P(t.getFirstChild())||!P(e))return;const n=(0,i.$findMatchingParent)(t,t=>_(t)&&P(t.getParent())&&_(t.getPreviousSibling()));if(null===n&&t.getIndent()>0)t.setIndent(0);else if(_(n)){const r=n.getPreviousSibling();if(_(r)){const n=function(t){let e=t,n=e.getFirstChild();for(;P(n);){const t=n.getLastChild();if(!_(t))break;e=t,n=e.getFirstChild()}return e}(r),i=n.getParent();if(P(i)){const n=a(i);n+1<a(e)&&t.setIndent(n)}}}};return t.registerNodeTransform(S,t=>{const n=[t];for(;n.length>0;){const t=n.shift();if(P(t))for(const r of t.getChildren())if(_(r)){e(r);const t=r.getFirstChild();P(t)&&n.push(t)}}})}s._e,s.Zj},8713(t,e,n){"use strict";n.d(e,{eA:()=>J,gb:()=>tt,d7:()=>et,Pi:()=>nt,_s:()=>Z,Sq:()=>Y,Up:()=>q,Eg:()=>rt,gW:()=>it,ps:()=>st,NB:()=>K,jA:()=>G,Rm:()=>ot,mK:()=>W,iM:()=>dt});var r=n(90415),i=n(28350),s=n(91420);function o(t){return function(t,e){let n=t;for(let i=(0,r.$getSiblingCaret)(t,e);i&&(w(i.origin)||(0,r.$isTabNode)(i.origin));i=i.getAdjacentCaret())n=i.origin;return n}(t,"previous")}function a(t,e){for(const n of t.childNodes){if((0,r.isHTMLElement)(n)&&n.tagName===e)return!0;if(a(n,e))return!0}return!1}n(49408);const l="data-language",A="data-highlight-language",c="data-theme";class h extends r.ElementNode{__language;__theme;__isSyntaxHighlightSupported;static getType(){return"code"}static clone(t){return new h(t.__language,t.__key)}constructor(t,e){super(e),this.__language=t||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(t){super.afterCloneFrom(t),this.__language=t.__language,this.__theme=t.__theme,this.__isSyntaxHighlightSupported=t.__isSyntaxHighlightSupported}createDOM(t){const e=(0,r.$getDocument)().createElement("code");(0,r.addClassNamesToElement)(e,t.theme.code),e.setAttribute("spellcheck","false");const n=this.getLanguage();n&&(e.setAttribute(l,n),this.getIsSyntaxHighlightSupported()&&e.setAttribute(A,n));const i=this.getTheme();i&&e.setAttribute(c,i);const s=this.getStyle();return s&&(0,r.setDOMStyleFromCSS)(e.style,s),e}updateDOM(t,e,n){const i=this.__language,s=t.__language;i?i!==s&&e.setAttribute(l,i):s&&e.removeAttribute(l);const o=this.__isSyntaxHighlightSupported;t.__isSyntaxHighlightSupported&&s?o&&i?i!==s&&e.setAttribute(A,i):e.removeAttribute(A):o&&i&&e.setAttribute(A,i);const a=this.__theme,h=t.__theme;a?a!==h&&e.setAttribute(c,a):h&&e.removeAttribute(c);const u=this.__style,p=t.__style;return u!==p&&(0,r.setDOMStyleFromCSS)(e.style,u,p),!1}exportDOM(t){const e=(0,r.$getDocument)().createElement("pre");(0,r.addClassNamesToElement)(e,t._config.theme.code),e.setAttribute("spellcheck","false");const n=this.getLanguage();n&&(e.setAttribute(l,n),this.getIsSyntaxHighlightSupported()&&e.setAttribute(A,n));const i=this.getTheme();i&&e.setAttribute(c,i);const s=this.getStyle();return s&&(0,r.setDOMStyleFromCSS)(e.style,s),{element:e}}static importDOM(){return{code:t=>null!=t.textContent&&(/\r?\n/.test(t.textContent)||a(t,"BR"))?{conversion:d,priority:1}:null,div:()=>({conversion:f,priority:1}),pre:()=>({conversion:d,priority:0}),table:t=>v(t)?{conversion:g,priority:3}:null,td:t=>{const e=t,n=e.closest("table");return e.classList.contains("js-file-line")||n&&v(n)?{conversion:m,priority:3}:null},tr:t=>{const e=t.closest("table");return e&&v(e)?{conversion:m,priority:3}:null}}}static importJSON(t){return u().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setLanguage(t.language).setTheme(t.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(t,e=!0){if(!(0,s.xT)((0,r.$getEditor)(),"@lexical/code")){const e=function(t){const{anchor:e}=t;if(t.isCollapsed()&&"element"===e.type){const t=e.getNode();if(p(t)){const n=t.getChildrenSize();if(n>=2&&e.offset===n){const e=t.getLastChild();if((0,r.$isLineBreakNode)(e)&&(0,r.$isLineBreakNode)(e.getPreviousSibling())){const e=(0,r.$createParagraphNode)();return t.splice(n-2,2,[]).insertAfter(e,!1),e.select(),e}}}}return null}(t);if(e)return e}const{anchor:n,focus:i}=t,a=(n.isBefore(i)?n:i).getNode();if((0,r.$isTextNode)(a)){let t=o(a);const e=[];for(;;)if((0,r.$isTabNode)(t))e.push((0,r.$createTabNode)()),t=t.getNextSibling();else{if(!w(t))break;{let n=0;const r=t.getTextContent(),i=t.getTextContentSize();for(;n<i&&" "===r[n];)n++;if(0!==n&&e.push(x(" ".repeat(n))),n!==i)break;t=t.getNextSibling()}}const i=a.splitText(n.offset)[0],s=0===n.offset?0:1,l=i.getIndexWithinParent()+s,A=a.getParentOrThrow(),c=[(0,r.$createLineBreakNode)(),...e];A.splice(l,0,c);const h=e[e.length-1];h?h.select():0===n.offset?i.selectPrevious():i.getNextSibling().selectNext(0,0)}if(p(a)){const{offset:e}=t.anchor;a.splice(e,0,[(0,r.$createLineBreakNode)()]),a.select(e+1,e+1)}return null}canIndent(){return!1}collapseAtStart(){const t=(0,r.$createParagraphNode)();return this.getChildren().forEach(e=>t.append(e)),this.replace(t),!0}setLanguage(t){const e=this.getWritable();return e.__language=t||void 0,e}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(t){const e=this.getWritable();return e.__isSyntaxHighlightSupported=t,e}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(t){const e=this.getWritable();return e.__theme=t||void 0,e}getTheme(){return this.getLatest().__theme}}function u(t,e){return(0,r.$create)(h).setLanguage(t).setTheme(e)}function p(t){return t instanceof h}function d(t){return{node:u(t.getAttribute(l))}}function f(t){const e=t,n=y(e);return n||function(t){let e=t.parentElement;for(;null!==e;){if(y(e))return!0;e=e.parentElement}return!1}(e)?{node:n?u():null}:{node:null}}function g(){return{node:u()}}function m(){return{node:null}}function y(t){return null!==t.style.fontFamily.match("monospace")}function v(t){return t.classList.contains("js-file-line-container")}class O extends r.TextNode{__highlightType;constructor(t="",e,n){super(t,n),this.__highlightType=e}static getType(){return"code-highlight"}static clone(t){return new O(t.__text,t.__highlightType||void 0,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__highlightType=t.__highlightType}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(t){const e=this.getWritable();return e.__highlightType=t||void 0,e}canHaveFormat(){return!1}createDOM(t){const e=super.createDOM(t),n=b(t.theme,this.__highlightType);return(0,r.addClassNamesToElement)(e,n),e}updateDOM(t,e,n){const i=super.updateDOM(t,e,n),s=b(n.theme,t.__highlightType),o=b(n.theme,this.__highlightType);return s!==o&&(s&&(0,r.removeClassNamesFromElement)(e,s),o&&(0,r.addClassNamesToElement)(e,o)),i}static importJSON(t){return x().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setHighlightType(t.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(t){return this}isParentRequired(){return!0}createParentElementNode(){return u()}}function b(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function x(t="",e){return(0,r.$applyNodeReplacement)(new O(t,e))}function w(t){return t instanceof O}const _="data-language";function S(t){return null!==t.style.fontFamily.match("monospace")}function C(t){let e=t.parentElement;for(;null!==e;){if(S(e))return!0;e=e.parentElement}return!1}const E=(0,i.BU)([(0,i.Bu)({$import:(t,e)=>t.$importChildren(e),match:i.VR.tag("tr","td"),name:"@lexical/code/github-code-table/unwrap"})]),B=(0,i.Bu)({$import:(t,e)=>[u(e.getAttribute(_)).splice(0,0,t.$importChildren(e))],match:i.VR.tag("pre"),name:"@lexical/code/pre"}),T=(0,i.Bu)({$import:(t,e,n)=>{const r=e.textContent||"";return/\r?\n/.test(r)||null!==e.querySelector("br")?[u(e.getAttribute(_)).splice(0,0,t.$importChildren(e))]:n()},match:i.VR.tag("code"),name:"@lexical/code/code-multiline"});function P(t){if(!(0,r.isHTMLElement)(t))return!1;const e=t.style.fontFamily,n=t.style.whiteSpace;return"string"==typeof e&&/monospace/i.test(e)&&"string"==typeof n&&n.startsWith("pre")}function k(t){let e=!1;const n=[];let i="",s=!1;const o=()=>{s&&(n.push(i),i="",s=!1)};for(const a of Array.from(t.childNodes))if((0,r.isHTMLElement)(a))"DIV"===a.tagName?(o(),n.push(a.textContent||""),e=!0):"BR"===a.tagName?(o(),n.push(""),e=!0):(i+=a.textContent||"",s=!0);else if((0,r.isDOMTextNode)(a)){const t=a.textContent||"";t.length>0&&(i+=t,s=!0)}return o(),e?n:null}i.VR.tag("div"),i.VR.tag("div","br");const I=(0,i.Bu)({$import:(t,e,n)=>S(e)?[u().splice(0,0,t.$importChildren(e))]:C(e)?t.$importChildren(e):n(),match:i.VR.tag("div"),name:"@lexical/code/div"});i.VR.tag("table").classAll("js-file-line-container"),i.VR.tag("td").classAll("js-file-line");i._e,i.Zj;var N=n(18857),Q=n(52741),F=n(98672);function L(t,e){const n={};for(const r of t){const t=e(r);t&&(n[t]?n[t].push(r):n[t]=[r])}return n}const M=/[!-/:-@[-`{-~\s]/;function D(t){return t.replace(/\\([!-/:-@[-`{-~])/g,"$1").replace(/&#(\d+);/g,(t,e)=>String.fromCodePoint(Number(e)))}const R=(0,r.createState)("mdListMarker",{parse:t=>"string"==typeof t&&/^[-*+]$/.test(t)?t:"-",resetOnCopyNode:!0}),U=(0,r.createState)("mdCodeFence",{parse:t=>"string"==typeof t&&/^`{3,}$/.test(t)?t:"```",resetOnCopyNode:!0}),$=(0,r.createState)("mdHardLineBreak",{parse:t=>"string"==typeof t&&/^(\\| {2,})$/.test(t)?t:"",resetOnCopyNode:!0});function j(t){const e=(0,r.$createLineBreakNode)(),n=function(t){const e=t.getChildren(),n=e.length-1,i=e[n];if(!(0,r.$isTextNode)(i))return null;const s=i.getTextContent(),o=function(t){if(t.endsWith("\\"))return[t.slice(0,-1),"\\"];const e=t.match(/^(.*?\S)( {2,})$/);return e?[e[1],e[2]]:null}(s);if(null!==o){const[t,e]=o;return i.setTextContent(t),e}return/^ {2,}$/.test(s)&&function(t,e){for(let n=e-1;n>=0;n--){if((0,r.$isLineBreakNode)(t[n]))return!1;if(/\S/.test(t[n].getTextContent()))return!0}return!1}(e,n)?(i.setTextContent(""),s):null}(t);return null!==n&&(0,r.$setState)(e,$,n),e}const H=t=>(e,n,r,i)=>{const s=t(r);s.append(...n),e.replace(s),i||s.select(0,0)},V=t=>(e,n,i,s)=>{const o=e.getPreviousSibling(),a=e.getNextSibling(),l=(0,Q.i)("check"===t?"x"===i[3]:void 0),A=i[0].trim()[0],c="bullet"!==t&&"check"!==t||A!==R.parse(A)?void 0:A;if((0,Q.HY)(a)&&a.getListType()===t){c&&(0,r.$setState)(a,R,c);const n=a.getFirstChild();null!==n?n.insertBefore(l):a.append(l),"number"===t&&a.setStart(Number(i[2])),e.remove()}else if((0,Q.HY)(o)&&o.getListType()===t)c&&(0,r.$setState)(o,R,c),o.append(l),e.remove();else{const n=(0,Q.DE)(t,"number"===t?Number(i[2]):void 0);c&&(0,r.$setState)(n,R,c),n.append(l),e.replace(n)}l.append(...n),s||l.select(0,0);const h=function(t){const e=t.match(/\t/g),n=t.match(/ /g);let r=0;return e&&(r+=e.length),n&&(r+=Math.floor(n.length/4)),r}(i[1]);h&&l.setIndent(h)},X=(t,e,n,i)=>{const s=[],o=t.getChildren();let a=0;for(const l of o)if((0,Q.Mz)(l)){if(1===l.getChildrenSize()){const t=l.getFirstChild();if((0,Q.HY)(t)){const r=X(t,e,n+1,i);r&&s.push(r);continue}}if(i&&!l.getChildren().some(t=>t.isSelected(i)))continue;const o=" ".repeat(4*n),A=t.getListType(),c=(0,r.$getState)(t,R),h="number"===A?`${t.getStart()+a}. `:"check"===A?`${c} [${l.getChecked()?"x":" "}] `:c+" ";let u=e(l);"number"!==A&&(u=u.replace(/^(\s{0,3}\d+)(\.\s)/,"$1\\$2")),s.push(o+h+u),a++}return s.join("\n")},z={dependencies:[F.jL],export:(t,e)=>{if(!(0,F.Pi)(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:/^(#{1,6})\s/,replace:H(t=>{const e="h"+t[1].length;return(0,F.fi)(e)}),triggerOnEnter:!0,type:"element"},G={dependencies:[F.dJ],export:(t,e)=>{if(!(0,F.jd)(t))return null;const n=e(t).split("\n"),r=[];for(const t of n)r.push("> "+t);return r.join("\n")},regExp:/^>\s/,replace:(t,e,n,r)=>{if(r){const n=t.getPreviousSibling();if((0,F.jd)(n))return n.splice(n.getChildrenSize(),0,[j(n),...e]),void t.remove()}const i=(0,F.xi)();i.append(...e),t.replace(i),r||i.select(0,0)},triggerOnEnter:!0,type:"element"},Y={dependencies:[h],export:t=>{if(!p(t))return null;const e=t.getTextContent();let n=(0,r.$getState)(t,U);if(e.indexOf(n)>-1){const t=e.match(/`{3,}/g);if(t){const e=Math.max(...t.map(t=>t.length));n="`".repeat(e+1)}}return n+(t.getLanguage()||"")+(e?"\n"+e:"")+"\n"+n},handleImportAfterStartMatch:({lines:t,rootNode:e,startLineIndex:n,startMatch:r})=>{const i=r[1],s=i.trim().length,o=t[n],a=r.index+i.length,l=o.slice(a),A=new RegExp(`\`{${s},}$`);if(A.test(l)){const t=l.match(A),i=l.slice(0,l.lastIndexOf(t[0])),s=[...r];return s[2]="",Y.replace(e,null,s,t,[i],!0),[!0,n]}const c=new RegExp(`^[ \\t]*\`{${s},}$`);for(let i=n+1;i<t.length;i++){const s=t[i];if(c.test(s)){const a=s.match(c),l=t.slice(n+1,i),A=o.slice(r[0].length);return A.length>0&&l.unshift(A),Y.replace(e,null,r,a,l,!0),[!0,i]}}const h=t.slice(n+1),u=o.slice(r[0].length);return u.length>0&&h.unshift(u),Y.replace(e,null,r,null,h,!0),[!0,t.length-1]},regExpEnd:{optional:!0,regExp:/^[ \t]*`{3,}$/},regExpStart:/^([ \t]*`{3,})([\w-]+)?[ \t]?/,replace:(t,e,n,i,s,o)=>{let a,l;const A=n[1]?n[1].trim():"```",c=n[2]||void 0;if(!e&&s){if(1===s.length)i?(a=u(c),l=s[0]):(a=u(c),l=s[0].startsWith(" ")?s[0].slice(1):s[0]);else{for(a=u(c),s.length>0&&(0===s[0].trim().length?s.shift():s[0].startsWith(" ")&&(s[0]=s[0].slice(1)));s.length>0&&!s[s.length-1].length;)s.pop();l=s.join("\n")}(0,r.$setState)(a,U,A);const e=(0,r.$createTextNode)(l);a.append(e),t.append(a)}else e&&H(t=>u(t?t[2]:void 0))(t,e,n,o)},type:"multiline-element"},W={dependencies:[Q.v5,Q.YW],export:(t,e,n)=>(0,Q.HY)(t)?X(t,e,0,n):null,regExp:/^(\s*)[-*+]\s/,replace:V("bullet"),triggerOnEnter:!0,type:"element"},Z={dependencies:[Q.v5,Q.YW],export:(t,e,n)=>(0,Q.HY)(t)?X(t,e,0,n):null,regExp:/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,replace:V("check"),triggerOnEnter:!0,type:"element"},K={dependencies:[Q.v5,Q.YW],export:(t,e,n)=>(0,Q.HY)(t)?X(t,e,0,n):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:V("number"),triggerOnEnter:!0,type:"element"},q={format:["code"],tag:"`",type:"text-format"},J={format:["bold","italic"],tag:"***",type:"text-format"},tt={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},et={format:["bold"],tag:"**",type:"text-format"},nt={format:["bold"],intraword:!1,tag:"__",type:"text-format"},rt={format:["italic"],tag:"*",type:"text-format"},it={format:["italic"],intraword:!1,tag:"_",type:"text-format"},st={dependencies:[N.Db],export:(t,e,n)=>{if(!(0,N.FJ)(t)||(0,N.iK)(t))return null;const r=e(t);let i=t.getTitle();return null!=i&&(i=i.replace(/([\\"])/g,"\\$1")),i?`[${r}](${t.getURL()} "${i}")`:`[${r}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[\]]*(?:\[[^[\]]*\][^[\]]*)*)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{if((0,r.$findMatchingParent)(t,N.FJ))return;const[,n,i,s]=e,o=null!=i?D(i):void 0,a=null!=s?D(s):void 0,l=(0,N.zA)(o,{title:a}),A=n.split("[").length-1,c=n.split("]").length-1;let h=n,u="";if(A<c)return;if(A>c){const t=n.split("[");u="["+t[0],h=t.slice(1).join("[")}const p=(0,r.$createTextNode)(h);return p.setFormat(t.getFormat()),l.append(p),t.replace(l),u&&l.insertBefore((0,r.$createTextNode)(u)),p},trigger:")",type:"text-match"},ot=[z,G,W,K,Y,q,J,tt,et,nt,{format:["highlight"],tag:"==",type:"text-format"},rt,it,{format:["strikethrough"],tag:"~~",type:"text-format"},st];function at(t){return(0,r.$isTextNode)(t)&&!t.hasFormat("code")}function lt(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function At(t,e,n,i,s){const o=t.getParent();if(!(0,r.$isRootOrShadowRoot)(o)||t.getFirstChild()!==e)return!1;const a=e.getTextContent();if(!s&&" "!==a[n-1])return!1;for(const{regExp:r,replace:o}of i){const i=a.match(r),l=s||i&&i[0].endsWith(" ")?n:n-1;if(i&&i[0].length===l){const r=e.getNextSiblings(),[s,a]=e.splitText(n);if(!1!==o(t,a?[a,...r]:r,i,!1))return s.remove(),!0}}return!1}function ct(t,e,n,i,s){const o=t.getParent();if(!(0,r.$isRootOrShadowRoot)(o)||t.getFirstChild()!==e)return!1;const a=e.getTextContent();if(!s&&" "!==a[n-1])return!1;for(const{regExpStart:r,replace:o,regExpEnd:l}of i){if(l&&!("optional"in l)||l&&"optional"in l&&!l.optional)continue;const i=a.match(r);if(i){const r=s||i[0].endsWith(" ")?n:n-1;if(i[0].length!==r)continue;const a=e.getNextSiblings(),[l,A]=e.splitText(n);if(!1!==o(t,A?[A,...a]:a,i,null,null,!1))return l.remove(),!0}}return!1}function ht(t,e){let n=0;const r=t.getTextContent();for(let t=0;t<e;t++)"`"===r[t]&&n++;return n%2!=0}function ut(t,e,n){const r=n.length;for(let i=e;i>=r;i--){const e=i-r;if(pt(t,e,n,0,r)&&" "!==t[e+r])return e}return-1}function pt(t,e,n,r,i){for(let s=0;s<i;s++)if(t[e+s]!==n[r+s])return!1;return!0}function dt(t,e=ot){const n=function(t){const e=L(t,t=>t.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}(e),i=n.element.filter(t=>t.triggerOnEnter),s=L(n.textFormat,({tag:t})=>t[t.length-1]),o=L(n.textMatch,({trigger:t})=>t),a=new Set([" "]);for(const t of n.textFormat)a.add(t.tag.slice(-1));for(const t of n.textMatch)void 0!==t.trigger&&a.add(t.trigger);for(const n of e){const e=n.type;if("element"===e||"text-match"===e||"multiline-element"===e){const e=n.dependencies;for(const n of e)t.hasNode(n)||lt(173,n.getType())}}const l=(t,e,i)=>!!(At(t,e,i,n.element)||ct(t,e,i,n.multilineElement)||function(t,e,n){let r=t.getTextContent();const i=n[r[e-1]];if(null==i)return!1;e<r.length&&(r=r.slice(0,e));for(const e of i){if(!e.replace||!e.regExp)continue;const n=r.match(e.regExp);if(null===n)continue;const i=n.index||0,s=i+n[0].length;let o;return 0===i?[o]=t.splitText(s):[,o]=t.splitText(i,s),o.selectNext(0,0),e.replace(o,n),!0}return!1}(e,i,o)||function(t,e,n){const i=t.getTextContent(),s=e-1,o=i[s],a=n[o];if(!a)return!1;for(const e of a){const{tag:n}=e,a=n.length,l=s-a+1;if(a>1&&!pt(i,l,n,0,a))continue;if(" "===i[l-1])continue;const A=i[s+1];if(!1===e.intraword&&A&&!M.test(A))continue;const c=t;let h=c,u=ut(i,l,n),p=h;for(;u<0&&(p=p.getPreviousSibling())&&!(0,r.$isLineBreakNode)(p);)if((0,r.$isTextNode)(p)){if(p.hasFormat("code"))continue;const t=p.getTextContent();h=p,u=ut(t,t.length,n)}if(u<0)continue;if(h===c&&u+a===l)continue;const d=h.getTextContent();if(u>0&&d[u-1]===o)continue;const f=d[u-1];if(!1===e.intraword&&f&&!M.test(f))continue;if(!e.format.includes("code")&&ht(h,u))continue;const g=c.getTextContent(),m=g.slice(0,l)+g.slice(s+1);c.setTextContent(m);const y=h===c?m:d;h.setTextContent(y.slice(0,u)+y.slice(u+a));const v=(0,r.$getSelection)(),O=(0,r.$createRangeSelection)();(0,r.$setSelection)(O);const b=s-a*(h===c?2:1)+1;O.anchor.set(h.__key,u,"text"),O.focus.set(c.__key,b,"text");for(const t of e.format)O.formatText(t,r.TEXT_TYPE_TO_FORMAT[t]);O.anchor.set(O.focus.key,O.focus.offset,O.focus.type);for(const t of e.format)O.hasFormat(t)&&O.toggleFormat(t);return(0,r.$isRangeSelection)(v)&&(O.format=v.format),!0}return!1}(e,i,s));return(0,r.mergeRegister)(t.registerUpdateListener(({tags:e,dirtyLeaves:n,editorState:i,prevEditorState:s})=>{if(e.has(r.COLLABORATION_TAG)||e.has(r.HISTORIC_TAG))return;if(t.isComposing())return;const o=e.has(r.COMPOSITION_END_TAG),A=i.read(r.$getSelection),c=s.read(r.$getSelection);if(!(0,r.$isRangeSelection)(c)||!(0,r.$isRangeSelection)(A)||!A.isCollapsed()||A.is(c)&&!o)return;const h=A.anchor.key,u=A.anchor.offset,d=i._nodeMap.get(h);if((0,r.$isTextNode)(d)&&n.has(h)&&(o||1===u||!(u>c.anchor.offset+1))){if(o){const t=i.read(()=>d.getTextContent())[u-1];if(!a.has(t))return}t.update(()=>{if(!at(d))return;const t=d.getParent();null===t||p(t)||l(t,d,A.anchor.offset)&&(0,r.$addUpdateTag)(r.HISTORY_PUSH_TAG)})}}),t.registerCommand(r.KEY_ENTER_COMMAND,t=>{if(null!==t&&t.shiftKey)return!1;const e=(0,r.$getSelection)();if(!(0,r.$isRangeSelection)(e)||!e.isCollapsed())return!1;const s=e.anchor.offset,o=e.anchor.getNode();if(!(0,r.$isTextNode)(o)||!at(o))return!1;const a=o.getParent();return null!==a&&!p(a)&&!(s!==o.getTextContent().length||!ct(a,o,s,n.multilineElement,!0)&&!At(a,o,s,i,!0)||(null!==t&&t.preventDefault(),0))},r.COMMAND_PRIORITY_LOW))}},52527(t,e,n){"use strict";n.d(e,{p:()=>o});var r=n(18857),i=n(29562),s=n(22155);function o({matchers:t,onChange:e,excludeParents:n}){const[o]=(0,i.DF)();return function(t,e,n,i){(0,s.useEffect)(()=>{t.hasNodes([r.k_])||function(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77)}),(0,s.useEffect)(()=>(0,r.Pm)(t,{changeHandlers:n?[n]:[],excludeParents:i??[],matchers:e}),[t,e,n,i])}(o,t,e,n),null}},7472(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(52741),i=n(29562),s=n(22155);function o({disableTakeFocusOnClick:t=!1}){const[e]=(0,i.DF)();return(0,s.useEffect)(()=>(0,r.GO)(e,{disableTakeFocusOnClick:t}),[e,t]),null}},29562(t,e,n){"use strict";n.d(e,{DF:()=>s,Gu:()=>i});var r=n(22155);const i=(0,r.createContext)(null);function s(){const t=(0,r.useContext)(i);return null==t&&function(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),t}},97950(t,e,n){"use strict";n.d(e,{a:()=>u});var r=n(29562),i=n(22155),s=n(90415),o=n(65723),a=n(13956);const l=s.CAN_USE_DOM?i.useLayoutEffect:i.useEffect;function A({editor:t,ariaActiveDescendant:e,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:s,ariaErrorMessage:a,ariaExpanded:A,ariaInvalid:c,ariaLabel:h,ariaLabelledBy:u,ariaMultiline:p,ariaOwns:d,ariaRequired:f,autoCapitalize:g,className:m,id:y,role:v="textbox",spellCheck:O=!0,style:b,tabIndex:x,"data-testid":w,..._},S){const[C,E]=(0,i.useState)(t.isEditable()),B=(0,i.useCallback)(e=>{e&&e.ownerDocument&&e.ownerDocument.defaultView?t.setRootElement(e):t.setRootElement(null)},[t]),T=(0,i.useMemo)(()=>function(...t){return e=>{for(const n of t)"function"==typeof n?n(e):null!=n&&(n.current=e)}}(S,B),[B,S]);return l(()=>(E(t.isEditable()),t.registerEditableListener(t=>{E(t)})),[t]),(0,o.jsx)("div",{"aria-activedescendant":C?e:void 0,"aria-autocomplete":C?n:"none","aria-controls":C?r:void 0,"aria-describedby":s,...null!=a?{"aria-errormessage":a}:{},"aria-expanded":C&&"combobox"===v?!!A:void 0,...null!=c?{"aria-invalid":c}:{},"aria-label":h,"aria-labelledby":u,"aria-multiline":p,"aria-owns":C?d:void 0,"aria-readonly":!C||void 0,"aria-required":f,autoCapitalize:g,className:m,contentEditable:C,"data-testid":w,id:y,ref:T,role:v,spellCheck:O,style:b,tabIndex:x??(C?void 0:-1),..._})}const c=(0,i.forwardRef)(A);function h(t){return t.read("latest",(0,a.yl)(t.isComposing()))}const u=(0,i.forwardRef)(p);function p(t,e){const{placeholder:n,...i}=t,[s]=(0,r.DF)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c,{editor:s,...i,ref:e}),null!=n&&(0,o.jsx)(d,{editor:s,content:n})]})}function d({content:t,editor:e}){const n=function(t){const[e,n]=(0,i.useState)(()=>h(t));return l(()=>{function e(){const e=h(t);n(e)}return e(),(0,s.mergeRegister)(t.registerUpdateListener(()=>{e()}),t.registerEditableListener(()=>{e()}))},[t]),e}(e),[r,a]=(0,i.useState)(e.isEditable());if((0,i.useLayoutEffect)(()=>(a(e.isEditable()),e.registerEditableListener(t=>{a(t)})),[e]),!n)return null;let A=null;return"function"==typeof t?A=t(r):null!==t&&(A=t),null===A?null:(0,o.jsx)("div",{"aria-hidden":!0,children:A})}},70227(t,e,n){"use strict";n.d(e,{R:()=>o});var r=n(22155),i=n(65723);class s extends r.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,e){this.props.onError(t instanceof Error?t:new Error(String(t),{cause:t}),e)}render(){return this.state.hasError?this.props.fallback:this.props.children}}function o({children:t,fallback:e,onError:n}){return(0,i.jsx)(s,{fallback:void 0===e?(0,i.jsx)("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}):e,onError:n,children:t})}},5473(t,e,n){"use strict";n.d(e,{p:()=>o});var r=n(91420),i=n(8191),s=n(65723);function o({initialEditor:t,children:e}){const{Component:n}=(0,r.wD)(t,i.n).output;return(0,s.jsx)(n,{children:e})}},70057(t,e,n){"use strict";n.d(e,{PL:()=>u,fS:()=>c});var r=n(91420),i=n(29562),s=n(56406),o=n(90415),a=n(22155),l=n(65723);function A({nodeKey:t}){const[e]=(0,i.DF)(),[n,r,l]=(0,s.Y)(t);return(0,a.useEffect)(()=>(0,o.mergeRegister)(e.registerCommand(o.CLICK_COMMAND,i=>{const s=e.getElementByKey(t);return(0,o.getComposedEventTarget)(i)===s&&(i.shiftKey||l(),r(!n),!0)},o.COMMAND_PRIORITY_LOW)),[l,e,n,t,r]),(0,a.useEffect)(()=>{const r=e.getElementByKey(t),i=e._config.theme.hrSelected??"selected";null!==r&&(n?(0,o.addClassNamesToElement)(r,i):(0,o.removeClassNamesFromElement)(r,i))},[e,n,t]),null}class c extends r.fS{static getType(){return"horizontalrule"}static clone(t){return new c(t.__key)}static importJSON(t){return u().updateFromJSON(t)}static importDOM(){return{hr:()=>({conversion:h,priority:0})}}decorate(){return(0,l.jsx)(A,{nodeKey:this.__key})}}function h(){return{node:u()}}function u(){return(0,o.$applyNodeReplacement)(new c)}},95462(t,e,n){"use strict";n.d(e,{C:()=>A});var r=n(29562),i=n(70057),s=n(91420),o=n(49408),a=n(90415),l=n(22155);function A(){const[t]=(0,r.DF)();return(0,l.useEffect)(()=>t.registerCommand(s.s0,t=>{const e=(0,a.$getSelection)();if(!(0,a.$isRangeSelection)(e))return!1;if(null!==e.focus.getNode()){const t=(0,i.PL)();(0,o.Pe)(t)}return!0},a.COMMAND_PRIORITY_EDITOR),[t]),null}},55856(t,e,n){"use strict";n.d(e,{W:()=>a});var r=n(91420),i=n(18857),s=n(29562),o=n(22155);function a({validateUrl:t,attributes:e}){const[n]=(0,s.DF)();return(0,o.useEffect)(()=>{if(!n.hasNodes([i.Db]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),(0,o.useEffect)(()=>(0,i.Ou)(n,(0,r.v)({attributes:e,validateUrl:t})),[n,t,e]),null}},10120(t,e,n){"use strict";n.d(e,{Q:()=>a});var r=n(52741),i=n(29562),s=n(90415),o=n(22155);function a({hasStrictIndent:t=!1,shouldPreserveNumbering:e=!1}){const[n]=(0,i.DF)();return(0,o.useEffect)(()=>{if(!n.hasNodes([r.v5,r.YW]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),(0,o.useEffect)(()=>(0,s.mergeRegister)((0,r.cz)(n,{restoreNumbering:e}),t?(0,r.Js)(n):()=>{}),[n,t,e]),a=n,(0,o.useEffect)(()=>(0,r.cz)(a),[a]),null;var a}},71547(t,e,n){"use strict";n.d(e,{E:()=>l});var r=n(91420),i=n(8713),s=n(29562),o=n(22155);const a=[{dependencies:[r.fS],export:t=>(0,r.Hd)(t)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,i)=>{const s=(0,r.PL)();i||null!=t.getNextSibling()?t.replace(s):t.insertBefore(s),s.selectNext()},triggerOnEnter:!0,type:"element"},...i.Rm];function l({transformers:t=a}){const[e]=(0,s.DF)();return(0,o.useEffect)(()=>(0,i.iM)(e,t),[e,t]),null}},8191(t,e,n){"use strict";n.d(e,{n:()=>p});var r=n(97950),i=n(70227),s=n(10108),o=n(90415),a=n(29562),l=n(22155),A=n(70316),c=n(65723);function h(t,e){const[n]=e,r=t.decorators.map(t=>"function"==typeof t?(0,c.jsx)(t,{context:e}):t);return function(i){const{EditorChildrenComponent:s=t.EditorChildrenComponent,ErrorBoundary:o=t.ErrorBoundary,contentEditable:h=t.contentEditable,children:u}=i,p=function(t,e){const[n,r]=(0,l.useMemo)(()=>[e=>t.registerDecoratorListener(e),()=>t.getDecorators()],[t]),i=(0,l.useSyncExternalStore)(n,r,r);return(0,l.useMemo)(()=>{const n=[];for(const r in i){const s=t.getElementByKey(r);if(null!==s){const o=(0,c.jsx)(e,{onError:e=>{t._onError(e)},children:(0,c.jsx)(l.Suspense,{fallback:null,children:i[r]})});n.push((0,A.createPortal)(o,s,r))}}return n},[e,i,t])}(n,o),d=(0,l.useMemo)(()=>r.map((t,e)=>(0,c.jsx)(o,{onError:t=>{n._onError(t)},children:(0,c.jsx)(l.Suspense,{fallback:null,children:t})},e)),[o]);return(0,c.jsx)(a.Gu.Provider,{value:e,children:(0,c.jsxs)(s,{context:e,contentEditable:h,children:[u,d,p]})})}}const u={EditorChildrenComponent:function({contentEditable:t,children:e}){return(0,c.jsxs)(c.Fragment,{children:[t,e]})},ErrorBoundary:i.R,contentEditable:(0,c.jsx)(r.a,{}),decorators:[]},p=(0,o.defineExtension)({build(t,e,n){n.getPeer(s.m.name)||function(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(321,[...n.getDirectDependentNames()].join(" "));const r=[t,{getTheme:()=>t._config.theme}];return{Component:h(e,r),context:r}},config:u,mergeConfig(t,e){const n=(0,o.shallowMergeConfig)(t,e);return e.decorators&&(n.decorators=e.decorators.length>0?[...t.decorators,...e.decorators]:t.decorators),n},name:"@lexical/react/React",peerDependencies:[(0,o.declarePeerDependency)(s.m.name)]})},10108(t,e,n){"use strict";n.d(e,{m:()=>r});const r=(0,n(90415).defineExtension)({name:"@lexical/react/ReactProvider"})},32412(t,e,n){"use strict";n.d(e,{$:()=>O});var r=n(29562),i=n(22155),s=n(90415);const o=s.CAN_USE_DOM?i.useLayoutEffect:i.useEffect;function a(t){return{initialValueFn:()=>t.isEditable(),subscribe:e=>t.registerEditableListener(e)}}var l=n(91420),A=n(10108),c=n(70316),h=n(65723),u=n(13956),p=n(50804),d=n(98672);function f(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const g=s.CAN_USE_DOM?i.useLayoutEffect:i.useEffect;function m({editor:t,ErrorBoundary:e}){return function(t,e){const[n,r]=(0,i.useState)(()=>t.getDecorators());return g(()=>t.registerDecoratorListener(t=>{(0,c.flushSync)(()=>{r(t)})}),[t]),(0,i.useEffect)(()=>{r(t.getDecorators())},[t]),(0,i.useMemo)(()=>{const r=[],s=Object.keys(n);for(let o=0;o<s.length;o++){const a=s[o],l=(0,h.jsx)(e,{onError:e=>t._onError(e),children:(0,h.jsx)(i.Suspense,{fallback:null,children:n[a]})}),A=t.getElementByKey(a);null!==A&&r.push((0,c.createPortal)(l,A,a))}return r},[e,n,t])}(t,e)}function y({editor:t,ErrorBoundary:e}){return function(t){const e=l.iZ.maybeFromEditor(t);if(e&&e.hasExtensionByName(A.m.name)){for(const t of["@lexical/plain-text","@lexical/rich-text"])e.hasExtensionByName(t)&&f(320,t);return!0}return!1}(t)?null:(0,h.jsx)(m,{editor:t,ErrorBoundary:e})}function v(t){return t.read("latest",(0,u.yl)(t.isComposing()))}function O({contentEditable:t,placeholder:e=null,ErrorBoundary:n}){const[i]=(0,r.DF)();return g(()=>(0,s.mergeRegister)((0,d.ZI)(o),(0,p.Ug)(o)),[o=i]),(0,h.jsxs)(h.Fragment,{children:[t,(0,h.jsx)(b,{content:e}),(0,h.jsx)(y,{editor:i,ErrorBoundary:n})]});var o}function b({content:t}){const[e]=(0,r.DF)(),n=function(t){const[e,n]=(0,i.useState)(()=>v(t));return g(()=>{function e(){const e=v(t);n(e)}return e(),(0,s.mergeRegister)(t.registerUpdateListener(()=>{e()}),t.registerEditableListener(()=>{e()}))},[t]),e}(e),l=function(t){const[e]=(0,r.DF)(),n=(0,i.useMemo)(()=>t(e),[e,t]),[s,a]=(0,i.useState)(()=>n.initialValueFn()),l=(0,i.useRef)(s);return o(()=>{const{initialValueFn:t,subscribe:e}=n,r=t();return l.current!==r&&(l.current=r,a(r)),e(t=>{l.current=t,a(t)})},[n,t]),s}(a);return n?"function"==typeof t?t(l):t:null}},72078(t,e,n){"use strict";n.d(e,{m:()=>o});var r=n(91420),i=n(29562),s=n(22155);function o({maxIndent:t,$canIndent:e}){const[n]=(0,i.DF)();return(0,s.useEffect)(()=>(0,r.MM)(n,t,e),[n,t,e]),null}},56406(t,e,n){"use strict";n.d(e,{Y:()=>a});var r=n(29562),i=n(90415),s=n(22155);function o(t,e){return t.read("latest",()=>{const t=(0,i.$getNodeByKey)(e);return null!==t&&t.isSelected()})}function a(t){const[e]=(0,r.DF)(),[n,a]=(0,s.useState)(()=>o(e,t));return(0,s.useEffect)(()=>{let n=!0;const r=e.registerUpdateListener(()=>{n&&a(o(e,t))});return()=>{n=!1,r()}},[e,t]),[n,(0,s.useCallback)(n=>{e.update(()=>{let e=(0,i.$getSelection)();(0,i.$isNodeSelection)(e)||(e=(0,i.$createNodeSelection)(),(0,i.$setSelection)(e)),(0,i.$isNodeSelection)(e)&&(n?e.add(t):e.delete(t))})},[e,t]),(0,s.useCallback)(()=>{e.update(()=>{const t=(0,i.$getSelection)();(0,i.$isNodeSelection)(t)&&t.clear()})},[e])]}},98672(t,e,n){"use strict";n.d(e,{Pi:()=>x,ZI:()=>Q,dJ:()=>d,fi:()=>b,jL:()=>m,jd:()=>g,xi:()=>f});var r=n(89383),i=n(91420),s=n(12303),o=n(49408),a=n(90415),l=n(50804),A=n(28350);const c=(0,A.Bu)({$import:(t,e)=>{const n=b(e.nodeName.toLowerCase());return(0,a.setNodeIndentFromDOM)(e,n),(0,a.$setFormatFromDOM)(n,e),(0,a.$setDirectionFromDOM)(n,e),[n.splice(0,0,t.$importChildren(e))]},match:A.VR.tag("h1","h2","h3","h4","h5","h6"),name:"@lexical/rich-text/heading"}),h=(0,A.Bu)({$import:(t,e)=>{const n=f();return(0,a.$setFormatFromDOM)(n,e),(0,a.setNodeIndentFromDOM)(e,n),(0,a.$setDirectionFromDOM)(n,e),[n.splice(0,0,t.$importChildren(e))]},match:A.VR.tag("blockquote"),name:"@lexical/rich-text/blockquote"});A.VR.tag("blockquote"),A.VR.tag("p"),A.VR.tag("span");l.Pc,i.Bw,i.vw,A._e,A.Zj;const u=(0,a.createCommand)("DRAG_DROP_PASTE_FILE"),p=(0,a.createState)("shadowRoot",{parse:Boolean});class d extends a.ElementNode{static getType(){return"quote"}static clone(t){return new d(t.__key)}$config(){return this.config("quote",{extends:a.ElementNode,stateConfigs:[{flat:!0,stateConfig:p}]})}isShadowRoot(){return(0,a.$getState)(this,p)}setIsShadowRoot(t){return(0,a.$setState)(this,p,t)}createDOM(t){const e=(0,a.$getDocument)().createElement("blockquote");return(0,a.addClassNamesToElement)(e,t.theme.quote),e}updateDOM(t,e){return!1}static importDOM(){return{blockquote:t=>({conversion:O,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if((0,a.isHTMLElement)(e)){this.isEmpty()&&e.append((0,a.$getDocument)().createElement("br"));const t=this.getFormatType();t&&(e.style.textAlign=t);const n=this.getDirection();n&&(e.dir=n)}return{element:e}}static importJSON(t){return f().updateFromJSON(t)}exportJSON(){return super.exportJSON()}insertNewAfter(t,e){const n=(0,a.$createParagraphNode)(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,e),n}collapseAtStart(){if(this.isShadowRoot()){for(const t of this.getChildren())this.insertBefore(t);return this.remove(),!0}const t=(0,a.$createParagraphNode)();return this.getChildren().forEach(e=>t.append(e)),this.replace(t),!0}canMergeWhenEmpty(){return!0}}function f(t){const e=(0,a.$applyNodeReplacement)(new d);return t&&t.shadowRoot?e.setIsShadowRoot(!0):e}function g(t){return t instanceof d}class m extends a.ElementNode{__tag;static getType(){return"heading"}static clone(t){return new m(t.__tag,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__tag=t.__tag}constructor(t="h1",e){super(e),this.__tag=t}getTag(){return this.getLatest().__tag}setTag(t){const e=this.getWritable();return e.__tag=t,e}createDOM(t){const e=this.__tag,n=(0,a.$getDocument)().createElement(e),r=t.theme.heading;if(void 0!==r){const t=r[e];(0,a.addClassNamesToElement)(n,t)}return n}updateDOM(t,e,n){return t.__tag!==this.__tag}static importDOM(){return{h1:t=>({conversion:v,priority:0}),h2:t=>({conversion:v,priority:0}),h3:t=>({conversion:v,priority:0}),h4:t=>({conversion:v,priority:0}),h5:t=>({conversion:v,priority:0}),h6:t=>({conversion:v,priority:0}),p:t=>{const e=t.firstChild;return null!==e&&y(e)?{conversion:()=>({node:null}),priority:3}:null},span:t=>y(t)?{conversion:t=>({node:b("h1")}),priority:3}:null}}exportDOM(t){const{element:e}=super.exportDOM(t);if((0,a.isHTMLElement)(e)){this.isEmpty()&&e.append((0,a.$getDocument)().createElement("br"));const t=this.getFormatType();t&&(e.style.textAlign=t);const n=this.getDirection();n&&(e.dir=n)}return{element:e}}static importJSON(t){return b(t.tag).updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTag(t.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(t,e=!0){const n=t?t.anchor.offset:0,r=this.getLastDescendant(),i=!r||t&&t.anchor.key===r.getKey()&&n===r.getTextContentSize()||!t?(0,a.$createParagraphNode)():b(this.getTag()),s=this.getDirection();if(i.setDirection(s),this.insertAfter(i,e),0===n&&!this.isEmpty()&&t){const t=(0,a.$createParagraphNode)();t.select(),this.replace(t,!0)}return i}collapseAtStart(){if(this.isEmpty()){const t=(0,a.$createParagraphNode)();this.getChildren().forEach(e=>t.append(e)),this.replace(t)}return!0}extractWithChild(){return!0}}function y(t){return"span"===t.nodeName.toLowerCase()&&"26pt"===t.style.fontSize}function v(t){const e=t.nodeName.toLowerCase();let n=null;return"h1"!==e&&"h2"!==e&&"h3"!==e&&"h4"!==e&&"h5"!==e&&"h6"!==e||(n=b(e),(0,a.setNodeIndentFromDOM)(t,n),(0,a.$setFormatFromDOM)(n,t),(0,a.$setDirectionFromDOM)(n,t)),{node:n}}function O(t){const e=f();return(0,a.$setFormatFromDOM)(e,t),(0,a.setNodeIndentFromDOM)(t,e),(0,a.$setDirectionFromDOM)(e,t),{node:e}}function b(t="h1"){return(0,a.$applyNodeReplacement)(new m(t))}function x(t){return t instanceof m}function w(t){const e=(0,a.$getNearestNodeFromDOMNode)(t);return(0,a.$isDecoratorNode)(e)}function _(t,e,n,r){let i=!1,s=null;if(t.isCollapsed()&&"text"===t.anchor.type){const e=t.anchor.getNode();if((0,a.$isTextNode)(e)){s=e;const r=t.anchor.offset,o=r===e.getTextContentSize()&&null===e.getNextSibling(),a=0===r&&null===e.getPreviousSibling();i="end"===n&&o||"start"===n&&a||"both"===n&&(o||a)}}let o=!1;for(const[n,l]of Object.entries(r)){if(null==l||!l[e])continue;const r=n;if(l.onlyAtBoundary){if(!(i&&s&&(0,a.$isTextNode)(s)&&s.hasFormat(r)))continue;o=!0}t.hasFormat(r)&&t.toggleFormat(r)}o&&t.setStyle("")}const S={capitalize:{enter:!0,space:!0,tab:!0},lowercase:{enter:!0,space:!0,tab:!0},uppercase:{enter:!0,space:!0,tab:!0}};function C(t,e){return function(t,e){if(!t.isCollapsed())return!1;const n=(0,a.$caretFromPoint)(t.focus,e),r=(0,a.$findMatchingParent)(n.origin,a.$isShadowRootNode);if(!r)return!1;const i=t.focus.getNode();if(!r.is(i)&&!(0,a.$hasAncestor)(i,r))return!1;const s=(0,a.$getCaretRange)(n,(0,a.$getSiblingCaret)(r,e));if(s.getTextSlices().some(t=>t&&t.getTextContentSize()>0))return!1;const o=(0,a.$getCaretRange)(s.anchor.getSiblingCaret(),s.focus);let l=o.anchor.origin;for(const t of o){if(!(0,a.$isSiblingCaret)(t)||!t.origin.is(l.getParent()))return!1;l=t.origin}let A=r;for(const t of(0,a.$extendCaretToRange)((0,a.$getSiblingCaret)(r,e))){if(!t.origin.is(A.getParent())){if((0,a.$needsBlockCursorBeside)(t.origin)){const t=(0,a.$getSiblingCaret)(A,e);return(0,a.$setSelectionFromCaretRange)((0,a.$getCaretRange)(t,t)),!0}break}if(!(0,a.$isShadowRootNode)(t.origin))break;A=t.origin}return!1}(t,e)||function(t,e){if(!t.isCollapsed()||"element"!==t.anchor.type)return!1;const n=(0,a.$caretFromPoint)(t.anchor,e).getNodeAtCaret();return!(!(0,a.$isShadowRootNode)(n)||n.isInline()||((0,a.$setSelectionFromCaretRange)((0,a.$getCollapsedCaretRange)((0,a.$normalizeCaret)((0,a.$getChildCaret)(n,e)))),0))}(t,e)}function E(t){return(0,a.$isDecoratorNode)(t)&&!t.isInline()&&!t.isIsolated()&&t.isKeyboardSelectable()}function B(t){const e=(0,a.$createNodeSelection)();e.add(t),(0,a.$setSelection)(e)}function T(t,e){if(!t.isCollapsed())return!1;const n=t.focus,r=n.getNode(),i=e?"previous":"next",s=(0,a.$caretFromPoint)(n,i);if("element"===n.type&&(0,a.$isElementNode)(r)&&((0,a.$isRootNode)(r)||(0,a.$isShadowRootNode)(r))){const t=s.getNodeAtCaret();return!(null===t||!E(t)||(B(t.__key),0))}const o=(0,a.$findMatchingParent)((0,a.$isElementNode)(r)?r:r.getParentOrThrow(),t=>(0,a.$isElementNode)(t)&&!t.isInline()&&(0,a.$isRootOrShadowRoot)(t.getParent()));if(null===o)return!1;const l=(0,a.$getSiblingCaret)(o,i).getNodeAtCaret();if(null===l||!E(l))return!1;if(0===o.getTextContentSize())return B(l.__key),!0;const A=(0,a.$getEditor)().getRootElement();if(null===A)return!1;const c=(0,a.getDOMSelection)(A.ownerDocument.defaultView);if(null===c||0===c.rangeCount)return!1;const h=c.anchorNode,u=c.anchorOffset,p=c.focusNode,d=c.focusOffset;c.modify("move",e?"backward":"forward","line");const f=c.anchorNode,g=c.anchorOffset;if(null===f)return P(c,h,u,p,d),!1;const m=(0,a.$getNearestNodeFromDOMNode)(f);return P(c,h,u,p,d),null!==m&&(f===h&&g===u||!m.is(o)&&!(0,a.$hasAncestor)(m,o))&&(B(l.__key),!0)}function P(t,e,n,r,i){null!==e&&null!==r&&t.setBaseAndExtent(e,n,r,i)}function k(t,e){if(!t.isCollapsed())return!1;const n=t.focus.getNode(),i=(0,a.$findMatchingParent)((0,a.$isElementNode)(n)?n:n.getParentOrThrow(),t=>(0,a.$isElementNode)(t)&&!t.isInline());if(null===i)return!1;const s=(0,a.$getEditor)(),o=s.getRootElement();if(null===o)return!1;const l=o.ownerDocument.defaultView;if(null===l)return!1;let A=!1;for(const t of i.getChildren())if((0,a.$isElementNode)(t)&&t.isInline()){const e=s.getElementByKey(t.getKey());if(null!==e){const t=l.getComputedStyle(e).display;if("inline-grid"===t||"inline-flex"===t){A=!0;break}}}if(!A)return!1;const c=(0,a.$getSiblingCaret)(i,e?"previous":"next").getNodeAtCaret();if(null===c||!(0,a.$isElementNode)(c)){if(e){const t=i.getFirstDescendant();(0,a.$isTextNode)(t)?t.select(0,0):i.select(0,0)}else{const t=i.getLastDescendant();if((0,a.$isTextNode)(t)){const e=t.getTextContentSize();t.select(e,e)}else{const t=i.getChildrenSize();i.select(t,t)}}return!0}const h=s.getElementByKey(c.getKey());if(null===h)return!1;const u=(0,a.getDOMSelection)(l);if(null===u||0===u.rangeCount)return!1;const p=u.getRangeAt(0).cloneRange();p.collapse(!0);const d=p.getBoundingClientRect(),f=h.getBoundingClientRect(),g=f.top+f.height/2;if(d.height>0){const e=(0,r.go)(d.left,g,o);if(null!==e&&h.contains(e.node)){const n=o.ownerDocument.createRange();return n.setStart(e.node,e.offset),n.collapse(!0),t.applyDOMRange(n),t.dirty=!0,!0}}const m=e?c.getLastDescendant():c.getFirstDescendant();if((0,a.$isTextNode)(m)){const t=e?m.getTextContentSize():0;m.select(t,t)}else{const t=c.getChildrenSize();c.select(e?t:0,e?t:0)}return!0}function I(t,e){const n=(0,a.$getSiblingCaret)(t,e),r=n.getAdjacentCaret();null!==r&&(0,a.$isElementNode)(r.origin)&&!r.origin.isInline()&&r.origin.isShadowRoot()?(0,a.$setSelectionFromCaretRange)((0,a.$getCollapsedCaretRange)(n)):"next"===e?t.selectNext(0,0):t.selectPrevious()}function N(t,e,n){n.preventDefault(),n.stopPropagation();const r=t.getNodes();if(0===r.length)return!0;const i=r.map(t=>(0,a.$getSiblingCaret)(t,"next")).sort(a.$comparePointCaretNext),s=(e?i[0]:i[i.length-1]).origin,o=(0,a.$findMatchingParent)(s,t=>t!==s&&(0,a.$isElementNode)(t)&&!t.isInline())??(0,a.$getRoot)(),l=e?0:o.getChildrenSize();return o.select(l,l),!0}function Q(t,e=(0,i.vP)(S)){return(0,a.mergeRegister)(t.registerCommand(a.CLICK_COMMAND,()=>{const t=(0,a.$getSelection)();return(0,a.$isNodeSelection)(t)?(t.clear(),!0):((0,a.$isRangeSelection)(t)&&_(t,"click","both",e.peek()),!1)},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.DELETE_CHARACTER_COMMAND,t=>{const e=(0,a.$getSelection)();return(0,a.$isRangeSelection)(e)?(e.deleteCharacter(t),!0):!!(0,a.$isNodeSelection)(e)&&(e.deleteNodes(),!0)},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.DELETE_WORD_COMMAND,t=>{const e=(0,a.$getSelection)();return!!(0,a.$isRangeSelection)(e)&&(e.deleteWord(t),!0)},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.DELETE_LINE_COMMAND,t=>{const e=(0,a.$getSelection)();return!!(0,a.$isRangeSelection)(e)&&(e.deleteLine(t),!0)},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.CONTROLLED_TEXT_INSERTION_COMMAND,e=>{const n=(0,a.$getSelection)();if("string"==typeof e)null!==n&&n.insertText(e);else{if(null===n)return!1;const i=e.dataTransfer;if(null!=i)(0,r.Bi)(i,n,t);else if((0,a.$isRangeSelection)(n)){const t=e.data;return t&&n.insertText(t),!0}}return!0},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.REMOVE_TEXT_COMMAND,()=>{const t=(0,a.$getSelection)();return!!(0,a.$isRangeSelection)(t)&&(t.removeText(),!0)},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.FORMAT_TEXT_COMMAND,t=>{const e=(0,a.$getSelection)();return!(!(0,a.$isRangeSelection)(e)&&!(0,a.$isNodeSelection)(e)||((0,a.$formatText)(e,t),0))},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.SET_TEXT_FORMAT_COMMAND,t=>{const e=(0,a.$getSelection)();return!(!(0,a.$isRangeSelection)(e)&&!(0,a.$isNodeSelection)(e)||((0,a.$setTextFormat)(e,t),0))},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.FORMAT_ELEMENT_COMMAND,t=>{const e=(0,a.$getSelection)();if(!(0,a.$isRangeSelection)(e)&&!(0,a.$isNodeSelection)(e))return!1;const n=e.getNodes();for(const e of n){const n=(0,a.$findMatchingParent)(e,t=>(0,a.$isElementNode)(t)&&!t.isInline());null!==n&&n.setFormat(t)}return!0},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.INSERT_LINE_BREAK_COMMAND,t=>{const e=(0,a.$getSelection)();return!!(0,a.$isRangeSelection)(e)&&(e.insertLineBreak(t),!0)},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.INSERT_PARAGRAPH_COMMAND,()=>{const t=(0,a.$getSelection)();return!!(0,a.$isRangeSelection)(t)&&(t.insertParagraph(),!0)},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.INSERT_TAB_COMMAND,()=>{const t=(0,a.$createTabNode)(),e=(0,a.$getSelection)();return(0,a.$isRangeSelection)(e)&&(t.setFormat(e.format),t.setStyle(e.style)),(0,a.$insertNodes)([t]),!0},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.INDENT_CONTENT_COMMAND,()=>(0,o.Jy)(t=>{const e=t.getIndent();t.setIndent(e+1)}),a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.OUTDENT_CONTENT_COMMAND,()=>(0,o.Jy)(t=>{const e=t.getIndent();e>0&&t.setIndent(Math.max(0,e-1))}),a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.KEY_ARROW_UP_COMMAND,t=>{const e=(0,a.$getSelection)();if((0,a.$isNodeSelection)(e)){const n=e.getNodes();if(n.length>0)return t.preventDefault(),I(n[0],"previous"),!0}else if((0,a.$isRangeSelection)(e)){if(!t.shiftKey&&C(e,"previous"))return t.preventDefault(),!0;if(!t.shiftKey&&T(e,!0))return t.preventDefault(),!0;if(!t.shiftKey&&k(e,!0))return t.preventDefault(),!0}return!1},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.KEY_ARROW_DOWN_COMMAND,t=>{const e=(0,a.$getSelection)();if((0,a.$isNodeSelection)(e)){const n=e.getNodes();if(n.length>0)return t.preventDefault(),I(n[0],"next"),!0}else if((0,a.$isRangeSelection)(e)){if(function(t){const e=t.focus;return"root"===e.key&&e.offset===(0,a.$getRoot)().getChildrenSize()}(e))return t.preventDefault(),!0;if(!t.shiftKey&&C(e,"next"))return t.preventDefault(),!0;if(!t.shiftKey&&T(e,!1))return t.preventDefault(),!0;if(!t.shiftKey&&k(e,!1))return t.preventDefault(),!0}return!1},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.KEY_ARROW_LEFT_COMMAND,t=>{const n=(0,a.$getSelection)();if((0,a.$isNodeSelection)(n)){const e=n.getNodes();if(e.length>0)return t.preventDefault(),I(e[0],(0,s.dt)(e[0])?"next":"previous"),!0}if(!(0,a.$isRangeSelection)(n))return!1;if(!t.shiftKey&&C(n,(0,s.dt)(n.anchor.getNode())?"next":"previous"))return t.preventDefault(),!0;if(t.shiftKey||_(n,"arrow","start",e.peek()),(0,s.Cb)(n,!0)){const e=t.shiftKey;return t.preventDefault(),(0,s.Rk)(n,e,!0),!0}return!1},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.KEY_ARROW_RIGHT_COMMAND,t=>{const n=(0,a.$getSelection)();if((0,a.$isNodeSelection)(n)){const e=n.getNodes();if(e.length>0)return t.preventDefault(),I(e[0],(0,s.dt)(e[0])?"previous":"next"),!0}if(!(0,a.$isRangeSelection)(n))return!1;if(!t.shiftKey&&C(n,(0,s.dt)(n.anchor.getNode())?"previous":"next"))return t.preventDefault(),!0;if(t.shiftKey||_(n,"arrow","end",e.peek()),(0,s.Cb)(n,!1)){const e=t.shiftKey;return t.preventDefault(),(0,s.Rk)(n,e,!1),!0}return!1},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.KEY_BACKSPACE_COMMAND,e=>{const n=(0,a.$getSelection)();if(!(0,a.$isNodeSelection)(n)&&w(e.target))return!1;if((0,a.$isRangeSelection)(n)){if(function(t){if(!t.isCollapsed())return!1;const{anchor:e}=t;if(0!==e.offset)return!1;const n=e.getNode();if((0,a.$isRootNode)(n))return!1;const r=(0,o.mB)(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(a.OUTDENT_CONTENT_COMMAND,void 0);if(a.IS_IOS&&a.CAN_USE_BEFORE_INPUT)return!1}else if(!(0,a.$isNodeSelection)(n))return!1;return e.preventDefault(),t.dispatchCommand(a.DELETE_CHARACTER_COMMAND,!0)},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.KEY_DELETE_COMMAND,e=>{const n=(0,a.$getSelection)();return!(!(0,a.$isNodeSelection)(n)&&w(e.target))&&!(!(0,a.$isRangeSelection)(n)&&!(0,a.$isNodeSelection)(n))&&(e.preventDefault(),t.dispatchCommand(a.DELETE_CHARACTER_COMMAND,!1))},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.KEY_ENTER_COMMAND,n=>{let r=(0,a.$getSelection)();if((0,a.$isNodeSelection)(r)){const t=r.getNodes();1===t.length&&(0,a.$isDecoratorNode)(t[0])&&!t[0].isInline()&&(r=t[0].selectNext())}if(!(0,a.$isRangeSelection)(r))return!1;if(_(r,"enter","both",e.peek()),null!==n){if((a.IS_IOS||a.IS_SAFARI||a.IS_APPLE_WEBKIT)&&a.CAN_USE_BEFORE_INPUT)return!1;if(n.preventDefault(),n.shiftKey)return t.dispatchCommand(a.INSERT_LINE_BREAK_COMMAND,!1)}return t.dispatchCommand(a.INSERT_PARAGRAPH_COMMAND,void 0)},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.KEY_ESCAPE_COMMAND,()=>{const e=(0,a.$getSelection)();return!!(0,a.$isRangeSelection)(e)&&(t.blur(),!0)},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.DROP_COMMAND,e=>{const[,n]=(0,o.gA)(e);if(n.length>0){const i=e.clientX,s=e.clientY,o=(0,r.go)(i,s,t.getRootElement());if(null!==o){const{offset:e,node:r}=o,i=(0,a.$getNearestNodeFromDOMNode)(r);if(null!==i){const t=(0,a.$createRangeSelection)();if((0,a.$isTextNode)(i))t.anchor.set(i.getKey(),e,"text"),t.focus.set(i.getKey(),e,"text");else{const e=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;t.anchor.set(e,n,"element"),t.focus.set(e,n,"element")}const n=(0,a.$normalizeSelection__EXPERIMENTAL)(t);(0,a.$setSelection)(n)}t.dispatchCommand(u,n)}return e.preventDefault(),!0}return(0,r.jL)(e,t)},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.DRAGSTART_COMMAND,e=>{const[n]=(0,o.gA)(e),i=(0,a.$getSelection)();return!(n&&!(0,a.$isRangeSelection)(i)||((0,a.$isRangeSelection)(i)&&!i.isCollapsed()&&null!==e.dataTransfer&&((0,r._R)(e.dataTransfer,(0,r.xg)(i)),(0,r.dF)(e.dataTransfer,t)),0))},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.DRAGOVER_COMMAND,e=>{const[n]=(0,o.gA)(e),i=(0,a.$getSelection)();if(n&&!(0,a.$isRangeSelection)(i))return!1;const s=e.clientX,l=e.clientY,A=(0,r.go)(s,l,t.getRootElement());if(null!==A){const t=(0,a.$getNearestNodeFromDOMNode)(A.node);(0,a.$isDecoratorNode)(t)&&e.preventDefault()}return!0},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.SELECT_ALL_COMMAND,()=>{const t=(0,a.$getSelection)();return(0,a.$selectAll)((0,a.$isRangeSelection)(t)&&null!==(0,a.$getSlotFrame)(t.anchor.getNode())?t:null),!0},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.COPY_COMMAND,e=>((0,r.lW)(t,(0,o.xj)(e,ClipboardEvent)?e:null),!0),a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.CUT_COMMAND,e=>(async function(t,e){await(0,r.lW)(e,(0,o.xj)(t,ClipboardEvent)?t:null),e.update(()=>{const t=(0,a.$getSelection)();(0,a.$isRangeSelection)(t)?t.removeText():(0,a.$isNodeSelection)(t)&&t.getNodes().forEach(t=>t.remove())},{tag:a.CUT_TAG})}(e,t),!0),a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.PASTE_COMMAND,e=>{const[,n,i]=(0,o.gA)(e);return n.length>0&&!i?(t.dispatchCommand(u,n),!0):!((0,a.isDOMNode)(e.target)&&(0,a.$isSelectionCapturedInDecoratorInput)(e.target)||null===(0,a.$getSelection)()||(function(t,e){t.preventDefault(),e.update(()=>{const n=(0,a.$getSelection)(),i=(0,o.xj)(t,InputEvent)||(0,o.xj)(t,KeyboardEvent)?null:t.clipboardData;null!=i&&null!==n&&(0,r.Bi)(i,n,e)},{tag:a.PASTE_TAG})}(e,t),0))},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.KEY_SPACE_COMMAND,()=>{const t=(0,a.$getSelection)();return(0,a.$isRangeSelection)(t)&&_(t,"space","both",e.peek()),!1},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.KEY_TAB_COMMAND,()=>{const t=(0,a.$getSelection)();return(0,a.$isRangeSelection)(t)&&_(t,"tab","both",e.peek()),!1},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.MOVE_TO_END,t=>{const e=(0,a.$getSelection)();if((0,a.$isNodeSelection)(e))return N(e,!1,t);if(!(0,a.$isRangeSelection)(e))return!1;const{anchor:n}=e;if("element"!==n.type||0!==n.offset)return!1;const r=n.getNode();if(!(0,a.$isElementNode)(r))return!1;const i=r.getFirstChild();if(!(0,a.$isDecoratorNode)(i)||!i.isInline())return!1;const s=r.getKey(),o=r.selectEnd();return t.shiftKey&&o.anchor.set(s,0,"element"),t.preventDefault(),t.stopPropagation(),!0},a.COMMAND_PRIORITY_EDITOR),t.registerCommand(a.MOVE_TO_START,t=>{const e=(0,a.$getSelection)();if((0,a.$isNodeSelection)(e))return N(e,!0,t);if(!(0,a.$isRangeSelection)(e))return!1;const{anchor:n,focus:r}=e,i=(0,a.$findMatchingParent)(r.getNode(),t=>(0,a.$isElementNode)(t)&&!t.isInline());if(null===i)return!1;const s=i.getFirstChild();if(!(0,a.$isDecoratorNode)(s)||!s.isInline())return!1;if((0,a.$findMatchingParent)(n.getNode(),t=>(0,a.$isElementNode)(t)&&!t.isInline())!==i)return!1;const o=i.getKey();return("element"!==r.type||r.key!==o||0!==r.offset)&&(e.focus.set(o,0,"element"),t.shiftKey||e.anchor.set(o,0,"element"),t.preventDefault(),t.stopPropagation(),!0)},a.COMMAND_PRIORITY_EDITOR))}},12303(t,e,n){"use strict";n.d(e,{Cb:()=>v,Nx:()=>u,Rk:()=>b,SD:()=>h,_A:()=>p,_n:()=>f,cb:()=>o,dt:()=>c,zI:()=>g,zT:()=>a});var r=n(90415);function i(t){let e=t;for(;null!=e;){if(e.nodeType===Node.TEXT_NODE)return e;e=e.firstChild}return null}function s(t){const e=t.parentNode;if(null==e)throw new Error("Should never happen");return[e,Array.from(e.childNodes).indexOf(t)]}function o(t,e,n,o,a){const l=e.getKey(),A=o.getKey(),c=(0,r.getRootOwnerDocument)(t.getRootElement()).createRange();let h=t.getElementByKey(l),u=t.getElementByKey(A),p=n,d=a;if((0,r.$isTextNode)(e)&&(h=i(h)),(0,r.$isTextNode)(o)&&(u=i(u)),void 0===e||void 0===o||null===h||null===u)return null;"BR"===h.nodeName&&([h,p]=s(h)),"BR"===u.nodeName&&([u,d]=s(u));const f=h.firstChild;h===u&&null!=f&&"BR"===f.nodeName&&0===p&&0===d&&(d=1);try{c.setStart(h,p),c.setEnd(u,d)}catch(t){return null}return!c.collapsed||p===d&&l===A||(c.setStart(u,d),c.setEnd(h,p)),c}function a(t,e){const n=t.getRootElement();if(null===n)return[];const r=n.getBoundingClientRect(),i=getComputedStyle(n),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),o=Array.from(e.getClientRects());let a,l=o.length;o.sort((t,e)=>{const n=t.top-e.top;return Math.abs(n)<=3?t.left-e.left:n});for(let t=0;t<l;t++){const e=o[t],n=a&&a.top<=e.top&&a.top+a.height>e.top&&a.left+a.width>e.left,i=e.width+s===r.width;n||i?(o.splice(t--,1),l--):a=e}return o}function l(t){const e=(0,r.$getEditor)().getElementByKey(t.getKey());if(null===e)return null;const n=e.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(e)}function A(t){return l((0,r.$isRootNode)(t)?t:t.getParentOrThrow())}function c(t){const e=A(t);return null!==e&&"rtl"===e.direction}function h(t,e,n="self"){const i=t.getStartEndPoints();if(e.isSelected(t)&&!(0,r.$isTokenOrSegmented)(e)&&null!==i){const[s,o]=i,a=t.isBackward(),l=s.getNode(),A=o.getNode(),c=e.is(l),h=e.is(A);if(c||h){const[i,s]=(0,r.$getCharacterOffsets)(t),o=l.is(A),c=e.is(a?A:l),h=e.is(a?l:A);let u,p=0;o?(p=i>s?s:i,u=i>s?i:s):c?(p=a?s:i,u=void 0):h&&(p=0,u=a?i:s);const d=e.__text.slice(p,u);d!==e.__text&&("clone"===n&&(e=(0,r.$cloneWithPropertiesEphemeral)(e)),e.__text=d)}}return e}function u(t){if("text"===t.type)return t.offset===t.getNode().getTextContentSize();const e=t.getNode();return(0,r.$isElementNode)(e)||function(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(177),t.offset===e.getChildrenSize()}function p(t,e,n){let i=e.getNode(),s=n;if((0,r.$isElementNode)(i)){const t=i.getDescendantByIndex(e.offset);null!==t&&(i=t)}for(;s>0&&null!==i;){if((0,r.$isElementNode)(i)){const t=i.getLastDescendant();null!==t&&(i=t)}let n=i.getPreviousSibling(),o=0;if(null===n){let t=i.getParentOrThrow(),e=t.getPreviousSibling();for(;null===e;){if(t=t.getParent(),null===t){n=null;break}e=t.getPreviousSibling()}null!==t&&(o=t.isInline()?0:2,n=e)}let a=i.getTextContent();""===a&&(0,r.$isElementNode)(i)&&!i.isInline()&&(a="\n\n");const l=a.length;if(!(0,r.$isTextNode)(i)||s>=l){const t=i.getParent();i.remove(),null==t||0!==t.getChildrenSize()||(0,r.$isRootNode)(t)||t.remove(),s-=l+o,i=n}else{const n=i.getKey(),o=t.read("latest",()=>{const t=(0,r.$getNodeByKey)(n);return(0,r.$isTextNode)(t)&&t.isSimpleText()?t.getTextContent():null}),A=l-s,c=a.slice(0,A);if(null!==o&&o!==a){const t=(0,r.$getPreviousSelection)();let e=i;if(i.isSimpleText())i.setTextContent(o);else{const t=(0,r.$createTextNode)(o);i.replace(t),e=t}if((0,r.$isRangeSelection)(t)&&t.isCollapsed()){const n=t.anchor.offset;e.select(n,n)}}else if(i.isSimpleText()){const t=e.key===n;let r=e.offset;r<s&&(r=l);const o=t?r-s:0,a=t?r:A;if(t&&0===o){const[t]=i.splitText(o,a);t.remove()}else{const[,t]=i.splitText(o,a);t.remove()}}else{const t=(0,r.$createTextNode)(c);i.replace(t)}s=0}}}function d(t,e){const n=t.getFormatType(),r=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),r!==e.getIndent()&&e.setIndent(r)}function f(t,e,n){let i=(0,r.$caretFromPoint)(t,n);if((0,r.$isExtendableTextPointCaret)(i))return!1;for(;i;i=i.getParentCaret()){const t=i.getParentAtCaret();if(!t||i.getNodeAtCaret())return!1;if(e.is(t))return!0}return!1}function g(t,e,n=d){if(!t)return;const i=t.getStartEndPoints();let s=!1,o=null;const a=new Map;if(i){const[e,n]=i,l=(0,r.$findMatchingParent)(e.getNode(),r.INTERNAL_$isBlock);o=(0,r.$findMatchingParent)(n.getNode(),r.INTERNAL_$isBlock);const A=t.isBackward()?"previous":"next";s=(0,r.$isElementNode)(o)&&!o.is(l)&&function(t,e,n){const i=t.getNode();return(!(0,r.$isElementNode)(i)||!i.isEmpty())&&f(t,e,n)}(n,o,(0,r.flipDirection)(A)),(0,r.$isElementNode)(l)&&a.set(l.getKey(),l),(0,r.$isElementNode)(o)&&!s&&a.set(o.getKey(),o)}for(const e of t.getNodes())if((0,r.$isElementNode)(e)&&(0,r.INTERNAL_$isBlock)(e)){if(s&&e.is(o))continue;a.set(e.getKey(),e)}else if(!i){const t=(0,r.$findMatchingParent)(e,r.INTERNAL_$isBlock);(0,r.$isElementNode)(t)&&a.set(t.getKey(),t)}for(const t of a.values()){const r=e();n(t,r),t.replace(r,!0)}}function m(t){const e=y(t);return null!==e&&"vertical-rl"===e.writingMode}function y(t){const e=t.anchor.getNode();return(0,r.$isElementNode)(e)?l(e):A(e)}function v(t,e){let n=m(t)?!e:e;O(t)&&(n=!n);const i=(0,r.$caretFromPoint)(t.focus,n?"previous":"next");if((0,r.$isExtendableTextPointCaret)(i))return!1;if((0,r.$isTextPointCaret)(i)&&!(0,r.$isTabNode)(i.origin)&&i.origin.isUnmergeable()){const t=i.getNodeAtCaret();if((0,r.$isTextNode)(t)&&!(0,r.$isTabNode)(t))return!0}for(const t of(0,r.$extendCaretToRange)(i)){if((0,r.$isChildCaret)(t))return!t.origin.isInline();if(!(0,r.$isElementNode)(t.origin)){if((0,r.$isDecoratorNode)(t.origin))return!0;break}}return!1}function O(t){const e=y(t);return null!==e&&"rtl"===e.direction}function b(t,e,n){const r=O(t);let i;i=m(t)||r?!n:n,function(t,e,n){t.modify(e?"extend":"move",n,"character")}(t,e,i)}},13956(t,e,n){"use strict";n.d(e,{yl:()=>i});var r=n(90415);function i(t){return()=>function(t){if(!function(t,e=!0){if(t)return!1;let n=(0,r.$getRoot)().getTextContent();return e&&(n=n.trim()),""===n}(t,!1))return!1;const e=(0,r.$getRoot)().getChildren(),n=e.length;if(n>1)return!1;for(let t=0;t<n;t++){const n=e[t];if((0,r.$isDecoratorNode)(n))return!1;if((0,r.$isElementNode)(n)){if(!(0,r.$isParagraphNode)(n))return!1;if(0!==n.__indent)return!1;const e=n.getChildren(),i=e.length;for(let n=0;n<i;n++){const n=e[t];if(!(0,r.$isTextNode)(n))return!1}}}return!0}(t)}},49408(t,e,n){"use strict";n.d(e,{Jy:()=>O,Lf:()=>_,OV:()=>x,Pe:()=>g,RM:()=>d,V0:()=>h,Ws:()=>w,Xq:()=>f,cj:()=>m,eu:()=>u,gA:()=>v,mB:()=>p,xj:()=>y});var r=n(12303),i=n(90415);function s(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function o(t){return`${t}px`}const a={attributes:!0,characterData:!0,childList:!0,subtree:!0};function l(t,e,n,r){if("text"!==e.type&&(0,i.$isElementNode)(n)){const s=(0,i.$getDOMSlot)(n,r,t);return[s.element,s.getFirstChildOffset()+e.offset]}return[((0,i.$isTextNode)(n)?(0,i.$getDOMTextNode)(n,r,t):(0,i.getDOMTextNode)(r))||r,e.offset]}function A(t){for(const e of t){const t=e.style;"Highlight"!==t.background&&(t.background="Highlight"),"HighlightText"!==t.color&&(t.color="HighlightText"),t.marginTop!==o(-1.5)&&(t.marginTop=o(-1.5)),t.paddingTop!==o(4)&&(t.paddingTop=o(4)),t.paddingBottom!==o(0)&&(t.paddingBottom=o(0))}}function c(t,e=A){let n=null,c=null,h=null,u=null,p=null,d=null,f=()=>{};function g(A){A.read(()=>{const A=(0,i.$getSelection)();if(!(0,i.$isRangeSelection)(A))return n=null,h=null,u=null,d=null,f(),void(f=()=>{});const[g,m]=function(t){const e=t.getStartEndPoints();return t.isBackward()?[e[1],e[0]]:e}(A),y=g.getNode(),v=y.getKey(),O=g.offset,b=m.getNode(),x=b.getKey(),w=m.offset,_=t.getElementByKey(v),S=t.getElementByKey(x),C=null===n||_!==c||O!==h||v!==n.getKey(),E=null===u||S!==p||w!==d||x!==u.getKey();if((C||E)&&null!==_&&null!==S){const n=function(t,e,n,r,i,s,o){const a=(t._window?t._window.document:document).createRange();return a.setStart(...l(t,e,n,r)),a.setEnd(...l(t,i,s,o)),a}(t,g,y,_,m,b,S);f(),f=function(t,e,n){let l=null,A=null,c=null,h=[];const u=(0,i.getRootOwnerDocument)(t.getRootElement()).createElement("div");function p(){null===l&&s(182),null===A&&s(183);const{left:a,top:c}=A.getBoundingClientRect(),p=function(t){const e=(t,e)=>e.left>=t.left-1&&e.top>=t.top-1&&e.right<=t.right+1&&e.bottom<=t.bottom+1,n=[];for(const r of Array.from(t))if(!(r.width<.5||r.height<.5||n.some(t=>e(r,t)))){for(let t=n.length-1;t>=0;t--)e(n[t],r)&&n.splice(t,1);n.push(r)}return n}((0,r.zT)(t,e));var d,f;u.isConnected||(f=u,(d=A).insertBefore(f,d.firstChild));let g=!1;for(let t=0;t<p.length;t++){const e=p[t],n=h[t]||(0,i.getRootOwnerDocument)(l).createElement("div"),r=n.style;"absolute"!==r.position&&(r.position="absolute",g=!0);const s=o(e.left-a);r.left!==s&&(r.left=s,g=!0);const A=o(e.top-c);r.top!==A&&(n.style.top=A,g=!0);const d=o(e.width);r.width!==d&&(n.style.width=d,g=!0);const f=o(e.height);r.height!==f&&(n.style.height=f,g=!0),n.parentNode!==u&&(u.append(n),g=!0),h[t]=n}for(;h.length>p.length;){const t=h.pop();null!=t&&t.remove()}g&&n(h)}function d(){A=null,l=null,null!==c&&c.disconnect(),c=null,u.remove();for(const t of h)t.remove();h=[]}u.style.position="relative";const f=t.registerRootListener(function e(){const n=t.getRootElement();if(null===n)return d();const r=n.parentElement;if(!(0,i.isHTMLElement)(r))return d();d(),l=n,A=r,c=new MutationObserver(n=>{const r=t.getRootElement(),i=r&&r.parentElement;if(r!==l||i!==A)return e();for(const t of n)if(!u.contains(t.target))return p()}),c.observe(r,a),p()});return()=>{f(),d()}}(t,n,e)}n=y,c=_,h=O,u=b,p=S,d=w},{editor:t})}return g(t.getEditorState()),(0,i.mergeRegister)(t.registerUpdateListener(({editorState:t})=>g(t)),()=>{f()})}function h(t,e){let n=null;const r=()=>{const r=t.getRootElement(),s=null!==r?r.ownerDocument.defaultView:null,o=null!==s?s.getSelection():null,a=null!==o?(0,i.getDOMSelectionPoints)(o,r).anchorNode:null;null!==a&&null!==r&&r.contains(a)?null!==n&&(n(),n=null):null===n&&(n=c(t,e))};return t.registerRootListener(t=>{if(t){const e=t.ownerDocument,s=(0,i.mergeRegister)((0,i.registerEventListener)(e,"selectionchange",r),()=>{null!==n&&n()});return r(),s}})}function u(t,e){let n=t;for(;null!=n;){if(n instanceof e)return n;n=n.getParent()}return null}function p(t){const e=(0,i.$findMatchingParent)(t,t=>(0,i.$isElementNode)(t)&&!t.isInline());return(0,i.$isElementNode)(e)||s(4,t.__key),e}function d(t,e){const n=(0,i.$getCaretRangeInDirection)((0,i.$isRangeSelection)(e)?(0,i.$caretRangeFromSelection)(e):e,"next"),r=(0,i.$getSlotFrame)(n.anchor.origin),s=(0,i.$getSlotFrame)(t.getLatest());if(null===r?null!==s:!r.is(s))return!1;const o=(0,i.$normalizeCaret)((0,i.$getChildCaret)(t,"next")),a=(0,i.$getCaretInDirection)((0,i.$normalizeCaret)((0,i.$getChildCaret)(t,"previous")),"next");return(0,i.$comparePointCaretNext)(n.anchor,o)<=0&&(0,i.$comparePointCaretNext)(n.focus,a)>=0}function f(t,e){const n=new Map,r=t._pendingEditorState;for(const[t,r]of e._nodeMap)n.set(t,(0,i.$cloneWithProperties)(r));r&&(r._nodeMap=n),(0,i.$fullReconcile)();const s=e._selection;(0,i.$setSelection)(null===s?null:s.clone())}function g(t){const e=(0,i.$getSelection)()||(0,i.$getPreviousSelection)();let n;if((0,i.$isRangeSelection)(e))n=(0,i.$caretFromPoint)(e.focus,"next");else{if(null!=e){const t=e.getNodes(),r=t[t.length-1];r&&(n=(0,i.$getSiblingCaret)(r,"next"))}n=n||(0,i.$getChildCaret)((0,i.$getRoot)(),"previous").getFlipped().insert((0,i.$createParagraphNode)())}const r=(0,i.$insertNodeToNearestRootAtCaret)(t,n),s=(0,i.$getAdjacentChildCaret)(r),o=(0,i.$isChildCaret)(s)?(0,i.$normalizeCaret)(s):r;return(0,i.$setSelectionFromCaretRange)((0,i.$getCollapsedCaretRange)(o)),t.getLatest()}function m(t,e){const n=e();return t.replace(n),n.append(t),n}function y(t,e){return null!==t&&Object.getPrototypeOf(t).constructor.name===e.name}function v(t){let e=null;if(y(t,DragEvent)?e=t.dataTransfer:y(t,ClipboardEvent)&&(e=t.clipboardData),null===e)return[!1,[],!1];const n=e.types,r=n.includes("Files"),i=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(e.files),i]}function O(t){const e=(0,i.$getSelection)();if(!(0,i.$isRangeSelection)(e))return!1;const n=new Set,r=e.getNodes();for(let e=0;e<r.length;e++){const s=r[e],o=s.getKey();if(n.has(o))continue;const a=(0,i.$findMatchingParent)(s,t=>(0,i.$isElementNode)(t)&&!t.isInline());if(null===a)continue;const l=a.getKey();a.canIndent()&&!n.has(l)&&(n.add(l),t(a))}return n.size>0}let b=!(i.IS_FIREFOX||!i.CAN_USE_DOM)&&void 0;function x(t,e=!1){let n=1;if(function(){if(void 0===b){const t=document.createElement("div");t.style.position="absolute",t.style.opacity="0",t.style.width="100px",t.style.left="-1000px",document.body.appendChild(t);const e=t.getBoundingClientRect();t.style.setProperty("zoom","2"),b=t.getBoundingClientRect().width===e.width,document.body.removeChild(t)}return b}()||e){const e=t&&t.ownerDocument.defaultView||window;for(;t;)n*=Number(e.getComputedStyle(t).getPropertyValue("zoom")),t=(0,i.getParentElement)(t)}return n}function w(t,e){const n=(0,i.$getSelection)();if((0,i.$isRangeSelection)(n)&&n.isCollapsed()){const s=(0,i.$findMatchingParent)(n.anchor.getNode(),t);if(s){const t=s.getParent();if(null!==t&&t.getFirstChild()===s&&function(t,e){return(0,r._n)(t,e,"previous")}(n.anchor,s))return s.insertBefore((0,i.$createParagraphNode)()).selectEnd(),e&&e.preventDefault(),!0}}return!1}function _(t,e){const n=(0,i.$getSelection)();if((0,i.$isRangeSelection)(n)&&n.isCollapsed()){const s=(0,i.$findMatchingParent)(n.anchor.getNode(),t);if(s){const t=s.getParent();if(null!==t&&t.getLastChild()===s&&function(t,e){return(0,r._n)(t,e,"next")}(n.anchor,s))return s.insertAfter((0,i.$createParagraphNode)()).selectEnd(),e&&e.preventDefault(),!0}}return!1}},16713(t,e,n){"use strict";n.d(e,{$g:()=>L,PH:()=>d,Qj:()=>p,RY:()=>I,Z6:()=>A,cF:()=>r,fI:()=>c,iX:()=>Q,rr:()=>N,uY:()=>o});const r=1024;let i=0;class s{constructor(t,e){this.from=t,this.to=e}}class o{constructor(t={}){this.id=i++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=A.match(t)),e=>{let n=t(e);return void 0===n?null:[this,n]}}}o.closedBy=new o({deserialize:t=>t.split(" ")}),o.openedBy=new o({deserialize:t=>t.split(" ")}),o.group=new o({deserialize:t=>t.split(" ")}),o.isolate=new o({deserialize:t=>{if(t&&"rtl"!=t&&"ltr"!=t&&"auto"!=t)throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),o.contextHash=new o({perNode:!0}),o.lookAhead=new o({perNode:!0}),o.mounted=new o({perNode:!0});class a{constructor(t,e,n,r=!1){this.tree=t,this.overlay=e,this.parser=n,this.bracketed=r}static get(t){return t&&t.props&&t.props[o.mounted.id]}}const l=Object.create(null);class A{constructor(t,e,n,r=0){this.name=t,this.props=e,this.id=n,this.flags=r}static define(t){let e=t.props&&t.props.length?Object.create(null):l,n=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),r=new A(t.name||"",e,t.id,n);if(t.props)for(let n of t.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[n[0].id]=n[1]}return r}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(o.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let n in t)for(let r of n.split(" "))e[r]=t[n];return t=>{for(let n=t.prop(o.group),r=-1;r<(n?n.length:0);r++){let i=e[r<0?t.name:n[r]];if(i)return i}}}}A.none=new A("",Object.create(null),0,8);class c{constructor(t){this.types=t;for(let e=0;e<t.length;e++)if(t[e].id!=e)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let e=[];for(let n of this.types){let r=null;for(let e of t){let t=e(n);if(t){r||(r=Object.assign({},n.props));let e=t[1],i=t[0];i.combine&&i.id in r&&(e=i.combine(r[i.id],e)),r[i.id]=e}}e.push(r?new A(n.name,r,n.id,n.flags):n)}return new c(e)}}const h=new WeakMap,u=new WeakMap;var p;!function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays",t[t.EnterBracketed=16]="EnterBracketed"}(p||(p={}));class d{constructor(t,e,n,r,i){if(this.type=t,this.children=e,this.positions=n,this.length=r,this.props=null,i&&i.length){this.props=Object.create(null);for(let[t,e]of i)this.props["number"==typeof t?t:t.id]=e}}toString(){let t=a.get(this);if(t&&!t.overlay)return t.tree.toString();let e="";for(let t of this.children){let n=t.toString();n&&(e&&(e+=","),e+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(e.length?"("+e+")":""):e}cursor(t=0){return new E(this.topNode,t)}cursorAt(t,e=0,n=0){let r=h.get(this)||this.topNode,i=new E(r);return i.moveTo(t,e),h.set(this,i._tree),i}get topNode(){return new O(this,0,0,null)}resolve(t,e=0){let n=y(h.get(this)||this.topNode,t,e,!1);return h.set(this,n),n}resolveInner(t,e=0){let n=y(u.get(this)||this.topNode,t,e,!0);return u.set(this,n),n}resolveStack(t,e=0){return function(t,e,n){let r=t.resolveInner(e,n),i=null;for(let t=r instanceof O?r:r.context.parent;t;t=t.parent)if(t.index<0){let s=t.parent;(i||(i=[r])).push(s.resolve(e,n)),t=s}else{let s=a.get(t.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let o=new O(s.tree,s.overlay[0].from+t.from,-1,t);(i||(i=[r])).push(y(o,e,n,!1))}}return i?S(i):r}(this,t,e)}iterate(t){let{enter:e,leave:n,from:r=0,to:i=this.length}=t,s=t.mode||0,o=(s&p.IncludeAnonymous)>0;for(let t=this.cursor(s|p.IncludeAnonymous);;){let s=!1;if(t.from<=i&&t.to>=r&&(!o&&t.type.isAnonymous||!1!==e(t))){if(t.firstChild())continue;s=!0}for(;s&&n&&(o||!t.type.isAnonymous)&&n(t),!t.nextSibling();){if(!t.parent())return;s=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:k(A.none,this.children,this.positions,0,this.children.length,0,this.length,(t,e,n)=>new d(this.type,t,e,n,this.propValues),t.makeTree||((t,e,n)=>new d(A.none,t,e,n)))}static build(t){return function(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:s=r,reused:a=[],minRepeatType:l=i.types.length}=t,A=Array.isArray(n)?new f(n,n.length):n,c=i.types,h=0,u=0;function p(t,e,n,r,f,b){let{id:x,start:w,end:_,size:S}=A,C=u,E=h;if(S<0){if(A.next(),-1==S){let e=a[x];return n.push(e),void r.push(w-t)}if(-3==S)return void(h=x);if(-4==S)return void(u=x);throw new RangeError(`Unrecognized record size: ${S}`)}let B,T,P=c[x],I=w-t;if(_-w<=s&&(T=function(t,e){let n=A.fork(),r=0,i=0,o=0,a=n.end-s,c={size:0,start:0,skip:0};t:for(let s=n.pos-t;n.pos>s;){let t=n.size;if(n.id==e&&t>=0){c.size=r,c.start=i,c.skip=o,o+=4,r+=4,n.next();continue}let A=n.pos-t;if(t<0||A<s||n.start<a)break;let h=n.id>=l?4:0,u=n.start;for(n.next();n.pos>A;){if(n.size<0){if(-3!=n.size&&-4!=n.size)break t;h+=4}else n.id>=l&&(h+=4);n.next()}i=u,r+=t,o+=h}return(e<0||r==t)&&(c.size=r,c.start=i,c.skip=o),c.size>4?c:void 0}(A.pos-e,f))){let e=new Uint16Array(T.size-T.skip),n=A.pos-T.size,r=e.length;for(;A.pos>n;)r=O(T.start,e,r);B=new g(e,_-T.start,i),I=T.start-t}else{let t=A.pos-S;A.next();let e=[],n=[],r=x>=l?x:-1,i=0,a=_;for(;A.pos>t;)r>=0&&A.id==r&&A.size>=0?(A.end<=a-s&&(y(e,n,w,i,A.end,a,r,C,E),i=e.length,a=A.end),A.next()):b>2500?m(w,t,e,n):p(w,t,e,n,r,b+1);if(r>=0&&i>0&&i<e.length&&y(e,n,w,i,w,a,r,C,E),e.reverse(),n.reverse(),r>-1&&i>0){let t=function(t,e){return(n,r,i)=>{let s,a,l=0,A=n.length-1;if(A>=0&&(s=n[A])instanceof d){if(!A&&s.type==t&&s.length==i)return s;(a=s.prop(o.lookAhead))&&(l=r[A]+s.length+a)}return v(t,n,r,i,l,e)}}(P,E);B=k(P,e,n,0,e.length,0,_-w,t,t)}else B=v(P,e,n,_-w,C-_,E)}n.push(B),r.push(I)}function m(t,e,n,r){let o=[],a=0,l=-1;for(;A.pos>e;){let{id:t,start:e,end:n,size:r}=A;if(r>4)A.next();else{if(l>-1&&e<l)break;l<0&&(l=n-s),o.push(t,e,n),a++,A.next()}}if(a){let e=new Uint16Array(4*a),s=o[o.length-2];for(let t=o.length-3,n=0;t>=0;t-=3)e[n++]=o[t],e[n++]=o[t+1]-s,e[n++]=o[t+2]-s,e[n++]=n;n.push(new g(e,o[2]-s,i)),r.push(s-t)}}function y(t,e,n,r,s,o,a,l,A){let c=[],h=[];for(;t.length>r;)c.push(t.pop()),h.push(e.pop()+n-s);t.push(v(i.types[a],c,h,o-s,l-o,A)),e.push(s-n)}function v(t,e,n,r,i,s,a){if(s){let t=[o.contextHash,s];a=a?[t].concat(a):[t]}if(i>25){let t=[o.lookAhead,i];a=a?[t].concat(a):[t]}return new d(t,e,n,r,a)}function O(t,e,n){let{id:r,start:i,end:s,size:o}=A;if(A.next(),o>=0&&r<l){let a=n;if(o>4){let r=A.pos-(o-4);for(;A.pos>r;)n=O(t,e,n)}e[--n]=a,e[--n]=s-t,e[--n]=i-t,e[--n]=r}else-3==o?h=r:-4==o&&(u=r);return n}let b=[],x=[];for(;A.pos>0;)p(t.start||0,t.bufferStart||0,b,x,-1,0);let w=null!==(e=t.length)&&void 0!==e?e:b.length?x[0]+b[0].length:0;return new d(c[t.topID],b.reverse(),x.reverse(),w)}(t)}}d.empty=new d(A.none,[],[],0);class f{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new f(this.buffer,this.index)}}class g{constructor(t,e,n){this.buffer=t,this.length=e,this.set=n}get type(){return A.none}toString(){let t=[];for(let e=0;e<this.buffer.length;)t.push(this.childString(e)),e=this.buffer[e+3];return t.join(",")}childString(t){let e=this.buffer[t],n=this.buffer[t+3],r=this.set.types[e],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(t+=4))return i;let s=[];for(;t<n;)s.push(this.childString(t)),t=this.buffer[t+3];return i+"("+s.join(",")+")"}findChild(t,e,n,r,i){let{buffer:s}=this,o=-1;for(let a=t;a!=e&&!(m(i,r,s[a+1],s[a+2])&&(o=a,n>0));a=s[a+3]);return o}slice(t,e,n){let r=this.buffer,i=new Uint16Array(e-t),s=0;for(let o=t,a=0;o<e;){i[a++]=r[o++],i[a++]=r[o++]-n;let e=i[a++]=r[o++]-n;i[a++]=r[o++]-t,s=Math.max(s,e)}return new g(i,s,this.set)}}function m(t,e,n,r){switch(t){case-2:return n<e;case-1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function y(t,e,n,r){for(var i;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let e=!r&&t instanceof O&&t.index<0?null:t.parent;if(!e)return t;t=e}let s=r?0:p.IgnoreOverlays;if(r)for(let r=t,o=r.parent;o;r=o,o=r.parent)r instanceof O&&r.index<0&&(null===(i=o.enter(e,n,s))||void 0===i?void 0:i.from)!=r.from&&(t=o);for(;;){let r=t.enter(e,n,s);if(!r)return t;t=r}}class v{cursor(t=0){return new E(this,t)}getChild(t,e=null,n=null){let r=b(this,t,e,n);return r.length?r[0]:null}getChildren(t,e=null,n=null){return b(this,t,e,n)}resolve(t,e=0){return y(this,t,e,!1)}resolveInner(t,e=0){return y(this,t,e,!0)}matchContext(t){return x(this.parent,t)}enterUnfinishedNodesBefore(t){let e=this.childBefore(t),n=this;for(;e;){let t=e.lastChild;if(!t||t.to!=e.to)break;t.type.isError&&t.from==t.to?(n=e,e=t.prevSibling):e=t}return n}get node(){return this}get next(){return this.parent}}class O extends v{constructor(t,e,n,r){super(),this._tree=t,this.from=e,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,e,n,r,i=0){for(let s=this;;){for(let{children:o,positions:l}=s._tree,A=e>0?o.length:-1;t!=A;t+=e){let A,c=o[t],h=l[t]+s.from;if(i&p.EnterBracketed&&c instanceof d&&(A=a.get(c))&&!A.overlay&&A.bracketed&&n>=h&&n<=h+c.length||m(r,n,h,h+c.length))if(c instanceof g){if(i&p.ExcludeBuffers)continue;let o=c.findChild(0,c.buffer.length,e,n-h,r);if(o>-1)return new _(new w(s,c,t,h),null,o)}else if(i&p.IncludeAnonymous||!c.type.isAnonymous||B(c)){let o;if(!(i&p.IgnoreMounts)&&(o=a.get(c))&&!o.overlay)return new O(o.tree,h,t,s);let l=new O(c,h,t,s);return i&p.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(e<0?c.children.length-1:0,e,n,r,i)}}if(i&p.IncludeAnonymous||!s.type.isAnonymous)return null;if(t=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,s=s._parent,!s)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}prop(t){return this._tree.prop(t)}enter(t,e,n=0){let r;if(!(n&p.IgnoreOverlays)&&(r=a.get(this._tree))&&r.overlay){let i=t-this.from,s=n&p.EnterBracketed&&r.bracketed;for(let{from:t,to:n}of r.overlay)if((e>0||s?t<=i:t<i)&&(e<0||s?n>=i:n>i))return new O(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function b(t,e,n,r){let i=t.cursor(),s=[];if(!i.firstChild())return s;if(null!=n)for(let t=!1;!t;)if(t=i.type.is(n),!i.nextSibling())return s;for(;;){if(null!=r&&i.type.is(r))return s;if(i.type.is(e)&&s.push(i.node),!i.nextSibling())return null==r?s:[]}}function x(t,e,n=e.length-1){for(let r=t;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class w{constructor(t,e,n,r){this.parent=t,this.buffer=e,this.index=n,this.start=r}}class _ extends v{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,n){super(),this.context=t,this._parent=e,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,e,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.context.start,n);return i<0?null:new _(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}prop(t){return this.type.prop(t)}enter(t,e,n=0){if(n&p.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return i<0?null:new _(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new _(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new _(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let s=n.buffer[this.index+1];t.push(n.slice(r,i,s)),e.push(0)}return new d(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function S(t){if(!t.length)return null;let e=0,n=t[0];for(let r=1;r<t.length;r++){let i=t[r];(i.from>n.from||i.to<n.to)&&(n=i,e=r)}let r=n instanceof O&&n.index<0?null:n.parent,i=t.slice();return r?i[e]=r:i.splice(e,1),new C(i,n)}class C{constructor(t,e){this.heads=t,this.node=e}get next(){return S(this.heads)}}class E{get name(){return this.type.name}constructor(t,e=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=e&~p.EnterBracketed,t instanceof O)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let e=t._parent;e;e=e._parent)this.stack.unshift(e.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}yieldBuf(t,e){this.index=t;let{start:n,buffer:r}=this.buffer;return this.type=e||r.set.types[r.buffer[t]],this.from=n+r.buffer[t+1],this.to=n+r.buffer[t+2],!0}yield(t){return!!t&&(t instanceof O?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,n){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,n=this.mode){return this.buffer?!(n&p.ExcludeBuffers)&&this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&p.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&p.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));let{buffer:e}=this.buffer,n=this.stack.length-1;if(t<0){let t=n<0?0:this.stack[n]+4;if(this.index!=t)return this.yieldBuf(e.findChild(t,this.index,-1,0,4))}else{let t=e.buffer[this.index+3];if(t<(n<0?e.buffer.length:e.buffer[this.stack[n]+3]))return this.yieldBuf(t)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,n,{buffer:r}=this;if(r){if(t>0){if(this.index<r.buffer.buffer.length)return!1}else for(let t=0;t<this.index;t++)if(r.buffer.buffer[t+3]<this.index)return!1;({index:e,parent:n}=r)}else({index:e,_parent:n}=this._tree);for(;n;({index:e,_parent:n}=n))if(e>-1)for(let r=e+t,i=t<0?-1:n._tree.children.length;r!=i;r+=t){let t=n._tree.children[r];if(this.mode&p.IncludeAnonymous||t instanceof g||!t.type.isAnonymous||B(t))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,e););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,e=null,n=0;if(t&&t.context==this.buffer)t:for(let r=this.index,i=this.stack.length;i>=0;){for(let s=t;s;s=s._parent)if(s.index==r){if(r==this.index)return s;e=s,n=i+1;break t}r=this.stack[--i]}for(let t=n;t<this.stack.length;t++)e=new _(this.buffer,e,this.stack[t]);return this.bufferNode=new _(this.buffer,e,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,e){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==t(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&e&&e(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(t){if(!this.buffer)return x(this.node.parent,t);let{buffer:e}=this.buffer,{types:n}=e.set;for(let r=t.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return x(this._tree,t,r);let s=n[e.buffer[this.stack[i]]];if(!s.isAnonymous){if(t[r]&&t[r]!=s.name)return!1;r--}}return!0}}function B(t){return t.children.some(t=>t instanceof g||!t.type.isAnonymous||B(t))}const T=new WeakMap;function P(t,e){if(!t.isAnonymous||e instanceof g||e.type!=t)return 1;let n=T.get(e);if(null==n){n=1;for(let r of e.children){if(r.type!=t||!(r instanceof d)){n=1;break}n+=P(t,r)}T.set(e,n)}return n}function k(t,e,n,r,i,s,o,a,l){let A=0;for(let n=r;n<i;n++)A+=P(t,e[n]);let c=Math.ceil(1.5*A/8),h=[],u=[];return function e(n,r,i,o,a){for(let A=i;A<o;){let i=A,p=r[A],d=P(t,n[A]);for(A++;A<o;A++){let e=P(t,n[A]);if(d+e>=c)break;d+=e}if(A==i+1){if(d>c){let t=n[i];e(t.children,t.positions,0,t.children.length,r[i]+a);continue}h.push(n[i])}else{let e=r[A-1]+n[A-1].length-p;h.push(k(t,n,r,i,A,p,e,null,l))}u.push(p+a-s)}}(e,n,r,i,0),(a||l)(h,u,o)}class I{constructor(){this.map=new WeakMap}setBuffer(t,e,n){let r=this.map.get(t);r||this.map.set(t,r=new Map),r.set(e,n)}getBuffer(t,e){let n=this.map.get(t);return n&&n.get(e)}set(t,e){t instanceof _?this.setBuffer(t.context.buffer,t.index,e):t instanceof O&&this.map.set(t.tree,e)}get(t){return t instanceof _?this.getBuffer(t.context.buffer,t.index):t instanceof O?this.map.get(t.tree):void 0}cursorSet(t,e){t.buffer?this.setBuffer(t.buffer.buffer,t.index,e):this.map.set(t.tree,e)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class N{constructor(t,e,n,r,i=!1,s=!1){this.from=t,this.to=e,this.tree=n,this.offset=r,this.open=(i?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],n=!1){let r=[new N(0,t.length,t,0,!1,n)];for(let n of e)n.to>t.length&&r.push(n);return r}static applyChanges(t,e,n=128){if(!e.length)return t;let r=[],i=1,s=t.length?t[0]:null;for(let o=0,a=0,l=0;;o++){let A=o<e.length?e[o]:null,c=A?A.fromA:1e9;if(c-a>=n)for(;s&&s.from<c;){let e=s;if(a>=e.from||c<=e.to||l){let t=Math.max(e.from,a)-l,n=Math.min(e.to,c)-l;e=t>=n?null:new N(t,n,e.tree,e.offset+l,o>0,!!A)}if(e&&r.push(e),s.to>c)break;s=i<t.length?t[i++]:null}if(!A)break;a=A.toA,l=A.toA-A.toB}return r}}class Q{startParse(t,e,n){return"string"==typeof t&&(t=new F(t)),n=n?n.length?n.map(t=>new s(t.from,t.to)):[new s(0,0)]:[new s(0,t.length)],this.createParse(t,e||[],n)}parse(t,e,n){let r=this.startParse(t,e,n);for(;;){let t=r.advance();if(t)return t}}}class F{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}function L(t){return(e,n,r,i)=>new $(e,t,n,r,i)}class M{constructor(t,e,n,r,i,s){this.parser=t,this.parse=e,this.overlay=n,this.bracketed=r,this.target=i,this.from=s}}function D(t){if(!t.length||t.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class R{constructor(t,e,n,r,i,s,o,a){this.parser=t,this.predicate=e,this.mounts=n,this.index=r,this.start=i,this.bracketed=s,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const U=new o({perNode:!0});class ${constructor(t,e,n,r,i){this.nest=e,this.input=n,this.fragments=r,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let t=this.baseParse.advance();if(!t)return null;if(this.baseParse=null,this.baseTree=t,this.startInner(),null!=this.stoppedAt)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let t=this.baseTree;return null!=this.stoppedAt&&(t=new d(t.type,t.children,t.positions,t.length,t.propValues.concat([[U,this.stoppedAt]]))),t}let t=this.inner[this.innerDone],e=t.parse.advance();if(e){this.innerDone++;let n=Object.assign(Object.create(null),t.target.props);n[o.mounted.id]=new a(e,t.overlay,t.parser,t.bracketed),t.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let e=this.innerDone;e<this.inner.length;e++)this.inner[e].from<t&&(t=Math.min(t,this.inner[e].parse.parsedPos));return t}stopAt(t){if(this.stoppedAt=t,this.baseParse)this.baseParse.stopAt(t);else for(let e=this.innerDone;e<this.inner.length;e++)this.inner[e].parse.stopAt(t)}startInner(){let t=new z(this.fragments),e=null,n=null,r=new E(new O(this.baseTree,this.ranges[0].from,0,null),p.IncludeAnonymous|p.IgnoreMounts);t:for(let i,o;;){let a,l=!0;if(null!=this.stoppedAt&&r.from>=this.stoppedAt)l=!1;else if(t.hasNode(r)){if(e){let t=e.mounts.find(t=>t.frag.from<=r.from&&t.frag.to>=r.to&&t.mount.overlay);if(t)for(let n of t.mount.overlay){let i=n.from+t.pos,s=n.to+t.pos;i>=r.from&&s<=r.to&&!e.ranges.some(t=>t.from<s&&t.to>i)&&e.ranges.push({from:i,to:s})}}l=!1}else if(n&&(o=j(n.ranges,r.from,r.to)))l=2!=o;else if(!r.type.isAnonymous&&(i=this.nest(r,this.input))&&(r.from<r.to||!i.overlay)){r.tree||(V(r),e&&e.depth++,n&&n.depth++);let o=t.findMounts(r.from,i.parser);if("function"==typeof i.overlay)e=new R(i.parser,i.overlay,o,this.inner.length,r.from,!!i.bracketed,r.tree,e);else{let t=G(this.ranges,i.overlay||(r.from<r.to?[new s(r.from,r.to)]:[]));t.length&&D(t),!t.length&&i.overlay||this.inner.push(new M(i.parser,t.length?i.parser.startParse(this.input,W(o,t),t):i.parser.startParse(""),i.overlay?i.overlay.map(t=>new s(t.from-r.from,t.to-r.from)):null,!!i.bracketed,r.tree,t.length?t[0].from:r.from)),i.overlay?t.length&&(n={ranges:t,depth:0,prev:n}):l=!1}}else if(e&&(a=e.predicate(r))&&(!0===a&&(a=new s(r.from,r.to)),a.from<a.to)){let t=e.ranges.length-1;t>=0&&e.ranges[t].to==a.from?e.ranges[t]={from:e.ranges[t].from,to:a.to}:e.ranges.push(a)}if(l&&r.firstChild())e&&e.depth++,n&&n.depth++;else for(;!r.nextSibling();){if(!r.parent())break t;if(e&&! --e.depth){let t=G(this.ranges,e.ranges);t.length&&(D(t),this.inner.splice(e.index,0,new M(e.parser,e.parser.startParse(this.input,W(e.mounts,t),t),e.ranges.map(t=>new s(t.from-e.start,t.to-e.start)),e.bracketed,e.target,t[0].from))),e=e.prev}n&&! --n.depth&&(n=n.prev)}}}}function j(t,e,n){for(let r of t){if(r.from>=n)break;if(r.to>e)return r.from<=e&&r.to>=n?2:1}return 0}function H(t,e,n,r,i,s){if(e<n){let o=t.buffer[e+1];r.push(t.slice(e,n,o)),i.push(o-s)}}function V(t){let{node:e}=t,n=[],r=e.context.buffer;do{n.push(t.index),t.parent()}while(!t.tree);let i=t.tree,s=i.children.indexOf(r),o=i.children[s],a=o.buffer,l=[s];i.children[s]=function t(r,i,s,A,c,h){let u=n[h],p=[],f=[];H(o,r,u,p,f,A);let g=a[u+1],m=a[u+2];l.push(p.length);let y=h?t(u+4,a[u+3],o.set.types[a[u]],g,m-g,h-1):e.toTree();return p.push(y),f.push(g-A),H(o,a[u+3],i,p,f,A),new d(s,p,f,c)}(0,a.length,A.none,0,o.length,n.length-1);for(let e of l){let n=t.tree.children[e],r=t.tree.positions[e];t.yield(new O(n,r+t.from,e,t._tree))}}class X{constructor(t,e){this.offset=e,this.done=!1,this.cursor=t.cursor(p.IncludeAnonymous|p.IgnoreMounts|p.ExcludeBuffers)}moveTo(t){let{cursor:e}=this,n=t-this.offset;for(;!this.done&&e.from<n;)if(e.to>=n&&e.enter(n,1,p.IncludeAnonymous|p.IgnoreOverlays|p.ExcludeBuffers));else{if(!(e.to<=n))break;e.next(!1)||(this.done=!0)}}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let e=this.cursor.tree;;){if(e==t.tree)return!0;if(!(e.children.length&&0==e.positions[0]&&e.children[0]instanceof d))break;e=e.children[0]}return!1}}class z{constructor(t){var e;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let n=this.curFrag=t[0];this.curTo=null!==(e=n.tree.prop(U))&&void 0!==e?e:n.to,this.inner=new X(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let e=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(t=e.tree.prop(U))&&void 0!==t?t:e.to,this.inner=new X(e.tree,-e.offset)}}findMounts(t,e){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let t=this.inner.cursor.node;t;t=t.parent){let i=null===(n=t.tree)||void 0===n?void 0:n.prop(o.mounted);if(i&&i.parser==e)for(let e=this.fragI;e<this.fragments.length;e++){let n=this.fragments[e];if(n.from>=t.to)break;n.tree==this.curFrag.tree&&r.push({frag:n,pos:t.from-n.offset,mount:i})}}}return r}}function G(t,e){let n=null,r=e;for(let i=1,o=0;i<t.length;i++){let a=t[i-1].to,l=t[i].from;for(;o<r.length;o++){let t=r[o];if(t.from>=l)break;t.to<=a||(n||(r=n=e.slice()),t.from<a?(n[o]=new s(t.from,a),t.to>l&&n.splice(o+1,0,new s(l,t.to))):t.to>l?n[o--]=new s(l,t.to):n.splice(o--,1))}}return r}function Y(t,e,n,r){let i=0,o=0,a=!1,l=!1,A=-1e9,c=[];for(;;){let h=i==t.length?1e9:a?t[i].to:t[i].from,u=o==e.length?1e9:l?e[o].to:e[o].from;if(a!=l){let t=Math.max(A,n),e=Math.min(h,u,r);t<e&&c.push(new s(t,e))}if(A=Math.min(h,u),1e9==A)break;h==A&&(a?(a=!1,i++):a=!0),u==A&&(l?(l=!1,o++):l=!0)}return c}function W(t,e){let n=[];for(let{pos:r,mount:i,frag:o}of t){let t=r+(i.overlay?i.overlay[0].from:0),a=t+i.tree.length,l=Math.max(o.from,t),A=Math.min(o.to,a);if(i.overlay){let a=Y(e,i.overlay.map(t=>new s(t.from+r,t.to+r)),l,A);for(let e=0,r=l;;e++){let s=e==a.length,l=s?A:a[e].from;if(l>r&&n.push(new N(r,l,i.tree,-t,o.from>=r||o.openStart,o.to<=l||o.openEnd)),s)break;r=a[e].to}}else n.push(new N(l,A,i.tree,-t,o.from>=t||o.openStart,o.to<=a||o.openEnd))}return n}},29199(t,e,n){"use strict";n.d(e,{K:()=>b});var r=n(47405),i=n(60214);const s=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function o(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function a(t){return t>=48&&t<=57}function l(t){return a(t)||t>=97&&t<=102||t>=65&&t<=70}const A=(t,e,n)=>(r,i)=>{for(let s=!1,A=0,c=0;;c++){let{next:h}=r;if(o(h)||45==h||95==h||s&&a(h))!s&&(45!=h||c>0)&&(s=!0),A===c&&45==h&&A++,r.advance();else{if(92!=h||10==r.peek(1)){s&&r.acceptToken(A>=2&&i.canShift(2)?e:40==h?n:t);break}if(r.advance(),l(r.next)){do{r.advance()}while(l(r.next));32==r.next&&r.advance()}else r.next>-1&&r.advance();s=!0}}},c=new r.Lu(A(149,2,150),{contextual:!0}),h=new r.Lu(A(151,3,4),{contextual:!0}),u=new r.Lu(t=>{if(s.includes(t.peek(-1))){let{next:e}=t;(o(e)||95==e||35==e||46==e||42==e||91==e||58==e&&o(t.peek(1))||45==e||38==e)&&t.acceptToken(148)}}),p=new r.Lu(t=>{if(!s.includes(t.peek(-1))){let{next:e}=t;if(37==e&&(t.advance(),t.acceptToken(1)),o(e)){do{t.advance()}while(o(t.next)||a(t.next));t.acceptToken(1)}}});function d(t){let e=t.length;return 4!=e&&5!=e&&7!=e&&9!=e||!/^#[a-f\d]+$/i.test(t)?-1:152}const f=(0,i.pn)({"AtKeyword import charset namespace keyframes media supports font-feature-values":i._A.definitionKeyword,"from to selector scope MatchFlag":i._A.keyword,NamespaceName:i._A.namespace,KeyframeName:i._A.labelName,KeyframeRangeName:i._A.operatorKeyword,TagName:i._A.tagName,ClassName:i._A.className,PseudoClassName:i._A.constant(i._A.className),IdName:i._A.labelName,"FeatureName PropertyName":i._A.propertyName,AttributeName:i._A.attributeName,NumberLiteral:i._A.number,KeywordQuery:i._A.keyword,UnaryQueryOp:i._A.operatorKeyword,"CallTag ValueName FontName":i._A.atom,VariableName:i._A.variableName,Callee:i._A.operatorKeyword,Unit:i._A.unit,"UniversalSelector NestingSelector":i._A.definitionOperator,"MatchOp CompareOp":i._A.compareOperator,"ChildOp SiblingOp, LogicOp":i._A.logicOperator,BinOp:i._A.arithmeticOperator,Important:i._A.modifier,Comment:i._A.blockComment,ColorLiteral:i._A.color,"ParenthesizedContent StringLiteral":i._A.string,":":i._A.punctuation,PseudoOp:i._A.derefOperator,"; , |":i._A.separator,"( )":i._A.paren,"[ ]":i._A.squareBracket,"{ }":i._A.brace}),g={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:88,url:158,"url-prefix":158,domain:158,regexp:158},m={__proto__:null,or:102,and:102,not:112,only:112,layer:212},y={__proto__:null,selector:118,style:124,layer:208},v={__proto__:null,"@import":204,"@media":216,"@charset":220,"@namespace":224,"@keyframes":230,"@supports":242,"@scope":246,"@font-feature-values":252},O={__proto__:null,to:249},b=r.U1.deserialize({version:14,states:"MrQYQdOOO$TQdOOP$[O`OOO%XQaO'#CfOOQP'#Ce'#CeO%`QdO'#CgO%eQ`O'#CgO%jQaO'#FrO&eQdO'#CkO'XQaO'#CcO'cQdO'#CnOOQP'#ES'#ESOOQP'#ER'#ERO'nQdO'#ETO'yQdO'#E[O'yQdO'#E_OOQP'#Fr'#FrO)`QhO'#FQOOQS'#Fq'#FqOOQS'#FT'#FTQYQdOOO)gQdO'#EeO*vQhO'#EkO)gQdO'#EmO*}QdO'#EoO+YQdO'#ErO*[QhO'#ExO+bQdO'#EzO+mQdO'#E}O+rQaO'#CfO+yQ`O'#EbO,OQ`O'#GPO,ZQdO'#GPQOQ`OOP,eO&jO'#CaPOOO)CAa)CAaOOQP'#Ci'#CiOOQP,59R,59RO%`QdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&eQdO,59VO,pQdO,59YOOQP,5:m,5:mO'nQdO,5:oO'yQdO,5:vO'yQdO,5:xO'yQdO,5:yO'yQdO'#F[O,{Q`O,58}O-TQdO'#EaOOQS,58},58}OOQP'#Cq'#CqOOQO'#EP'#EPOOQP,59Y,59YO-[Q`O,59YO-aQ`O,59YO-fQpO'#EUO-qQdO'#EVO-vQ`O'#EVO-{QpO,5:oO.iQaO,5:vO/PQaO,5:yOOQW'#D]'#D]O0OQhO'#DgO0cQhO,5;lO*[QhO'#DeO0pQ`O'#DnO0uQhO'#D{OOQW'#Fx'#FxOOQS,5;l,5;lO0zQ`O'#DhO1PQ`O'#DkOOQS-E9R-E9ROOQ['#Cv'#CvO1UQdO'#CwO1iQdO'#C|O1|QdO'#DPOOQ['#DQ'#DQO2aQ!pO'#DRO4jQ!jO,5;POOQO'#DW'#DWO-aQ`O'#DVO4zQ!nO'#FuO6}Q`O'#DXO7SQ`O'#D|OOQ['#Fu'#FuO7XQhO'#GSO7gQ`O,5;VO7lQ!bO,5;XOOQS'#Eq'#EqO7tQ`O,5;ZO7yQdO,5;ZOOQO'#Et'#EtO8RQ`O,5;^O8WQhO,5;dO'yQdO'#DjOOQS,5;f,5;fO0zQ`O,5;fO8`QdO,5;fOOQS'#Fc'#FcO8hQdO'#FPO7gQ`O,5;iO8pQdO,5:|O9QQdO'#F^O9_Q`O,5<kO9_Q`O,5<kPOOO'#FS'#FSP9jO&jO,58{POOO,58{,58{OOQP1G.m1G.mOOQP1G.q1G.qOOQP1G.t1G.tO-[Q`O1G.tO-aQ`O1G.tO9uQpO1G0ZO9}QaO1G0bO:eQaO1G0dO:{QaO1G0eO;cQaO,5;vOOQO-E9Y-E9YOOQS1G.i1G.iO;mQ`O,5:{O;rQdO'#EQO;yQdO'#CuOOQO'#EX'#EXOOQO,5:q,5:qO-qQdO,5:qOOQP1G0Z1G0ZO)gQdO1G0ZO<QQ!jO'#D]O<`Q!bO,59xO<hQhO,5:ROOQO'#Dc'#DcOOQO'#Fy'#FyO<cQ!bO,59|O<pQhO'#FdO*[QhO,59zO*[QhO'#FdO=hQhO1G1WOOQS1G1W1G1WO=rQhO,5:PO>mQhO'#DoOOQW,5:Y,5:YOOQW,5:g,5:gOOQW,5:S,5:SO>wQhO,5:VO?cQ!fO'#FvOOQS'#Fv'#FvOOQS'#FV'#FVO@pQdO,59cOOQ[,59c,59cOATQdO,59hOOQ[,59h,59hOAhQdO,59kOOQ[,59k,59kOOQ[,59m,59mO)gQdO,59oOA{QhO'#EgOOQW'#Eg'#EgOBjQ`O1G0kO4sQhO1G0kOOQ[,59q,59qO*[QhO'#DZOOQ[,59s,59sOBoQ#tO,5:hOBzQhO'#F`OCXQ`O,5<nOOQS1G0q1G0qOOQS1G0s1G0sOOQS1G0u1G0uOCdQ`O1G0uOCiQdO'#EuOOQS1G0x1G0xOOQS1G1O1G1OOCtQaO,5:UO7gQ`O1G1QOOQS1G1Q1G1QO0zQ`O1G1QOOQS-E9a-E9aOOQS1G1T1G1TOC{Q!fO1G0hODcQ`O'#EdOOQO1G0h1G0hOOQO,5;x,5;xODhQdO,5;xOOQO-E9[-E9[ODuQ`O1G2VPOOO-E9Q-E9QPOOO1G.g1G.gOOQP7+$`7+$`OOQP7+%u7+%uO)gQdO7+%uOOQS1G0g1G0gOEQQaO'#F}OE[Q`O,5:lOEaQ!fO'#FUOF_QdO'#FtOFiQ`O,59aOOQO1G0]1G0]OFnQ!bO7+%uO)gQdO1G/dOFyQhO1G/hOOQW1G/m1G/mOOQW1G/f1G/fOG[QhO,5<OOOQW-E9b-E9bOOQS7+&r7+&rOHSQhO'#D]OHbQhO'#F|OHmQ`O'#F|OHrQ`O,5:ZOHwQ!bO'#D_O>wQhO'#DmOISQhO'#DsOI[QhO'#DuOIaQ!jO'#F{OOQO'#F{'#F{OIlQ`O'#DxOItQ!bO'#DzOOQO'#Fz'#FzOIyQ`O1G/qOOQS-E9T-E9TOOQ[1G.}1G.}OOQ[1G/S1G/SOOQ[1G/V1G/VOOQ[1G/Z1G/ZOJOQdO,5;ROOQS7+&V7+&VOJTQ`O7+&VOJYQhO'#D[OJbQ`O,59uO*[QhO,59uOOQ[1G0S1G0SOJjQ`O1G0SOJoQhO,5;zOOQO-E9^-E9^OOQS7+&a7+&aOJ}QbO'#DROOQO'#Ew'#EwOK]Q`O'#EvOOQO'#Ev'#EvOKhQ`O'#FaOKpQdO,5;aOOQS,5;a,5;aOOQ[1G/p1G/pOOQS7+&l7+&lO7gQ`O7+&lOK{Q!fO'#F]O)gQdO'#F]OMSQdO7+&SOOQO7+&S7+&SOOQO,5;O,5;OOOQO1G1d1G1dOMgQ!bO<<IaOMrQdO'#FZOM|Q`O,5<iOOQP1G0W1G0WOOQS-E9S-E9SONUQdO'#FYON`Q`O,5<`OOQ]1G.{1G.{OOQP<<Ia<<IaONhQ`O<<IaONmQdO7+%OOOQO'#D_'#D_ONtQ!bO7+%SON|QhO'#FXO! ZQ`O,5<hO)gQdO,5<hOOQW1G/u1G/uO! cQ`O,5:XO>wQhO'#DtOOQO,5:_,5:_O! hQhO,5:aO! pQhO,5:fO)gQdO,5:dOOQW7+%]7+%]OOQO'#Ei'#EiO! wQ`O1G0mOOQS<<Iq<<IqO)gQdO,59vO!!kQhO1G/aOOQ[1G/a1G/aO!!rQ`O1G/aOOQW-E9U-E9UOOQ[7+%n7+%nOOQO,5;b,5;bOClQdO'#FbOKhQ`O,5;{OOQS,5;{,5;{OOQS-E9_-E9_OOQS1G0{1G0{OOQS<<JW<<JWO!!zQ!fO,5;wOOQS-E9Z-E9ZOOQO<<In<<InOOQPAN>{AN>{O!$RQ`OAN>{O!$WQaO,5;uOOQO-E9X-E9XO!$bQdO,5;tOOQO-E9W-E9WOOQW<<Hj<<HjOOQW<<Hn<<HnO!$lQhO<<HnO!$}QhO'#D]O!%]QhO,5;sO!%hQ`O,5;sOOQO-E9V-E9VO!%mQdO1G2SO!%wQhO1G/sO!&PQ`O,5:`O>wQhO'#DwOOQO1G/{1G/{O!&UQ!bO1G0QO!&^QdO1G0OOJOQdO'#F_O!&eQ`O7+&XOOQW7+&X7+&XO!&mQ!bO1G/bOOQ[7+${7+${O!&xQhO7+${P!'PQ`O'#FWOOQO,5;|,5;|OOQO-E9`-E9`OOQS1G1g1G1gOOQPG24gG24gO!'UQ`OAN>YO)gQdO1G1_O!'ZQ`O7+'nOOQO1G/z1G/zO!'cQ`O,5:cO!'hQhO7+%lOOQO,5;y,5;yOOQO-E9]-E9]OOQW<<Is<<IsOOQ[<<Hg<<HgPOQW,5;r,5;rOOQWG23tG23tO!'oQdO7+&yOOQO1G/}1G/}OOQO<<IW<<IW",stateData:"!(R~O$`OS$aQQ~OWVO^`O`WOcYOdYOlaOo]O#P^O#S_O#YeO#`fO#bgO#dhO#giO#mjO#okO#rlO$ZRO$^ZO$gTO$rZO~OQnOWVO^`O`WOcYOdYOlaOo]O#P^O#S_O#YeO#`fO#bgO#dhO#giO#mjO#okO#rlO$ZmO$^ZO$gTO$rZO~O$X$sP~P!mO$arO~O`YXcYXdYXoYXrYX!eYX#PYX#SYX$YYX$^YX$g[X$rYX~OgYX~P$aO$ZtO~O$gvO~O$gvO`$fXc$fXd$fXo$fXr$fX!e$fX#P$fX#S$fX$Y$fX$^$fX$r$fXg$fX~O$ZwO~O`yOczOdzOo|O#P}O#S!PO$Y!OO$^ZO$rZO~Or!SO!e!QO~P&jOf!YO$Z!UO$[!VO~OW!]O$Z!ZO$g![O~OWVO^`O`WOcYOdYOo]O#P^O#S_O$ZRO$^ZO$gTO$rZO~OS!eOc!fOd!fOh!bOr!SO!Y!dO!]!iO!`!jO$]!aO~Om!hO~P(qOQ!uOh!mOo!nOr!oOv!xO|!vO!q!wO$Z!lO$[!sO$^!pO$k!qO~OS!eOc!fOd!fOh!bO!Y!dO!]!iO!`!jO$]!aO~Or$vP~P*[Ov!}O!q!wO$Z!|O~Ov#PO$Z#PO~Oh#SOr!SO#p#UO~O$Z#WO~Oc#VX~P$aOc#ZO~Om#[O$X$sXq$sX~O$X$sXq$sX~P!mO$b#_O$c#_O$d#aO~Of#fO$Z!UO$[!VO~Or!SO!e!QO~Oq$sP~P!mOh#oO~Oh#pO~On!xX!|!xX$g!zX~O$Z#qO~O$g#sO~On#tO!|#uO~O`yOczOdzOo|O$^ZO$rZO~Or#Oa!e#Oa#P#Oa#S#Oa$Y#Oag#Oa~P.TOr#Ra!e#Ra#P#Ra#S#Ra$Y#Rag#Ra~P.TOS!eOc!fOd!fOh!bO!Y!dO!]!iO!`!jO~OR#zOv#zO$]#vO$^#yO$k!qO~P/gOm$QO!T#}O!e$OO~P(qOh$SO~O$]$UO~Oh#SO~Oh$WO~O`$YOc$YOg$]Ol$YOm$YO~P)gO`$YOc$YOl$YOm$YOn$_O~P)gO`$YOc$YOl$YOm$YOq$aO~P)gOP$bOSuXcuXduXhuXmuXxuX!YuX!]uX!`uX#[uX#^uX$]uX!WuXQuX`uXguXluXouXruXvuX|uX!quX$ZuX$[uX$^uX$kuXnuXquX!euX$XuX$uuX!}uX~Ox$cO#[$dO#^$eOm$vP~P*[Oh#pOS$iXc$iXd$iXm$iXx$iX!Y$iX!]$iX!`$iX#[$iX#^$iX$]$iXQ$iX`$iXg$iXl$iXo$iXr$iXv$iX|$iX!q$iX$Z$iX$[$iX$^$iX$k$iXn$iXq$iX!e$iX$X$iX$u$iX!}$iX~Oh$iO~Oh$kO~O!T#}O!e$lOr$vXm$vX~Or!SO~Om$oOx$cO~Om$pO~Ov$qO!q!wO~Or$rO~Or!SO!T#}O~Or!SO#p$xO~O$Z#WOr#sX~O$u$|Om#Ua$X#Uaq#Ua~P)gOm$QX$X$QXq$QX~P!mOm#[O$X$saq$sa~O$b#_O$c#_O$d%TO~On%VO!|%WO~Or#Oi!e#Oi#P#Oi#S#Oi$Y#Oig#Oi~P.TOr#Qi!e#Qi#P#Qi#S#Qi$Y#Qig#Qi~P.TOr#Ri!e#Ri#P#Ri#S#Ri$Y#Rig#Ri~P.TOr$Oa!e$Oa~P&jOq%XO~Og$qP~P'yOg$hP~P)gOc!RXg!PX!T!PX!W!RX~Oc%aO!W%bO~Og%cO!T#}O~O!T#}OS$WXc$WXd$WXh$WXm$WXr$WX!Y$WX!]$WX!`$WX!e$WX$]$WX~Om%gO!e$OO~P(qO!T#}OS!Xac!Xad!Xah!Xam!Xar!Xa!Y!Xa!]!Xa!`!Xa!e!Xa$]!Xag!Xa~O$]%hOg$pP~P/gOR#zOS!eOh%mOv#zO!Y%nO$]%lO$^#yO$k!qO~Ox$cOQ$jX`$jXc$jXg$jXh$jXl$jXm$jXo$jXr$jXv$jX|$jX!q$jX$Z$jX$[$jX$^$jX$k$jXn$jXq$jX~O`$YOc$YOg%wOl$YOm$YO~P)gO`$YOc$YOl$YOm$YOn%xO~P)gO`$YOc$YOl$YOm$YOq%yO~P)gOh%{OS#ZXc#ZXd#ZXm#ZX!Y#ZX!]#ZX!`#ZX$]#ZX~Om%|O~Og&ROv&SO!r&SO~Or$SX!e$SXm$SX~P*[O!e$lOr$vam$va~Om&VO~Oq&^O$Z&XO$k&WO~Og&_O~P&jOx$cO!e&cO$u$|Om#Ui$X#Uiq#Ui~P)gO$t&fO~Om$Qa$X$Qaq$Qa~P!mOm#[O$X$siq$si~O!e&iOg$qX~P&jOg&kO~Ox$cOQ#xXg#xXh#xXo#xXr#xXv#xX|#xX!e#xX!q#xX$Z#xX$[#xX$^#xX$k#xX~O!e&mOg$hX~P)gOg&oO~On&pOx$cO!}&qO~OR#zOv#zO$]&sO$^#yO$k!qO~O!T#}OS$Wac$Wad$Wah$Wam$War$Wa!Y$Wa!]$Wa!`$Wa!e$Wa$]$Wa~Oc!dXg!PX!T!PX!e!PX~O!T#}O!e&uOg$pX~Oc&wO~Og&xO~Oc!mXg!mX!W!RX~OS!eOh&zO~O!T&|O~O!T&|O!W&}Og$oX~Oc'OOg!lX~O!W&}O~Og'PO~O$Z'QO~Om'SO~Oc'TO!T#}O~Og'VOm'UO~Og'YO~O!T#}Or$Sa!e$Sam$Sa~OP$bOruX!euXguX~O$k&WOr#jX!e#jX~Or!SO!e'[O~Oq'`O$Z&XO$k&WO~Ox$cOQ$PXh$PXm$PXo$PXr$PXv$PX|$PX!e$PX!q$PX$X$PX$Z$PX$[$PX$^$PX$k$PX$u$PXq$PX~O!e&cO$u$|Om#Uq$X#Uqq#Uq~P)gOn'eOx$cO!}'fO~Og#}X!e#}X~P'yO!e&iOg$qa~Og#|X!e#|X~P)gO!e&mOg$ha~On'eO~Og'kO~P)gOg'lO!W'mO~O$]'nOg#{X!e#{X~P/gO!e&uOg$pa~Og'sO~OS!eOh'uO~OS!eO~PFyO`'yOg'{O~OS#zac#zad#zah#za!Y#za!]#za!`#za$]#za~Og'}O~P!!POg'}Om(OO~Ox$cOQ$Pah$Pam$Pao$Par$Pav$Pa|$Pa!e$Pa!q$Pa$X$Pa$Z$Pa$[$Pa$^$Pa$k$Pa$u$Paq$Pa~On(TO~Og#}a!e#}a~P&jOg#|a!e#|a~P)gOR#zOv#zO$]&sO$^#yO$k&WO~Oc!fXg!PX!T!PX!e!PX~O!T#}Og#{a!e#{a~Oc(VO~O!e&uOg$pi~P)gOg!ai!T!ji~Og(XO~O!W(ZOg!ni~Og!li~P)gO`'yOg(^O~Ox$cOg!Oim!Oi~Og(_O~P!!POm(`O~Og(aO~O!e&uOg$pq~Og(cO~OS!eO~P!$lOg#{q!e#{q~P)gO$`!r$a$k`x#S~",goto:"8^$wPPPPP$xP${P%U%h%U%z&^P%UP&d%UPP&jPPP&p&z&zPPPP&zPP&z&z'jP&zP&z(m&zP)])`)f)f)x)fP)f*_P)fP)f)fP*j)fP*v*|+r+uP+x*v+{*v,O,U,X,_,X)f,ePP-Z-a%U-g%U.V.V.].aPP%UP%U%UP.g/c/p/w${P0QP0TP${P${P${P0Z${P0^0a0d0k${P${PP${P0p${P0s0y1Y1t2S2Y2d2j2p2v2|3W3^3d3j3p3vPPPPPPPPPPPP3|4VP4{5O6SP6[7U7k,X7w7zP7}PP8TRsQ_bOPdp!S#[%Pq`OP^_dp}!O!P!Q!S#S#[#o%P&iqSOP^_dp}!O!P!Q!S#S#[#o%P&iqUOP^_dp}!O!P!Q!S#S#[#o%P&iQuTR#bvQxWR#cyQ!WYR#dzQ#d!YS$h!t!uR%U#f!Z!xeg!m!n!o#Z#p#u$[$^$`$c${%W%]%a&c&d&m&r&w'O'T'i'r'x(V(b!Y!xeg!m!n!o#Z#p#u$[$^$`$c${%W%]%a&c&d&m&r&w'O'T'i'r'x(V(bb#z!b$W%b%m&z&}'m'u(ZU&Z$r&]'[R'Z&Y!Z!teg!m!n!o#Z#p#u$[$^$`$c${%W%]%a&c&d&m&r&w'O'T'i'r'x(V(bR$j!vQ&P$iR'W&Qq!gafj!b!c!d!r#}$O$P$S$g$i$l&Q&uQ#w!bW%s$W%m&z'uQ&t%bQ'w&}Q(U'mR(d(Zc#z!b$W%b%m&z&}'m'u(ZQ#VkQ$V!iQ$v#UR&a$xX%q$W%m&z'up!gafj!b!c!d!r#}$O$P$S$g$i$l&Q&uW%p$W%m&z'uQ&{%nQ'v&|Q'w&}R(d(ZR$T!eR%j$SR'p&uR&{%nX%o$W%m&z'uR'v&|X%t$W%m&z'uX%r$W%m&z'u!Y!xeg!m!n!o#Z#p#u$[$^$`$c${%W%]%a&c&d&m&r&w'O'T'i'r'x(V(bQ!}hR$q#OQ!XYR#ezQ#d!XR%U#ep[OP^_dp}!O!P!Q!S#S#[#o%P&ie{X!_!`#h#i#j#k$u%Y'gQ!^]R#g|T!]]|Q#r![R%_#sQ!TXQ!haQ#TkQ#m!RQ$Q!cQ$n!zQ$t#RQ$w#VQ$z#YQ%g$PQ&`$vQ'^&[Q'a&aR(S']SoP!SQ#^pQ%O#[R&g%PZnPp!S#[%PQ$}#ZQ&e${R'd&dR$g!rQ'R%{R(['yR#OhR#QiR$s#QS&[$r&]R(Q'[V&Y$r&]'[R#YlQ#`rR%S#`QdOSpP!SU!kdp%PR%P#[Q%]#p[&l%]&r'i'r'x(bQ&r%aQ'i&mQ'r&wQ'x'OR(b(VQ$[!mQ$^!nQ$`!oV%v$[$^$`Q&Q$iR'X&QQ&v%iS'q&v(WR(W'rQ&n%]R'j&nQ&j%YR'h&jQ!RXR#l!RQ&d${R'c&dQ#]oS%Q#]%RR%R#^Q'z'RR(]'zQ$m!yR&U$mQ&]$rR'_&]Q']&[R(R']Q#XlR$y#XQ$P!cR%f$P_cOPdp!S#[%P^XOPdp!S#[%PQ!_^Q!`_Q#h}Q#i!OQ#j!PQ#k!QQ$u#SQ%Y#oR'g&iR%^#pQ!reQ!{g[$X!m!n!o$[$^$`Q${#Zh%[#p%]%a&m&r&w'O'i'r'x(V(bQ%`#uQ%z$cS&b${&dQ&h%WQ'b&cR'|'T]$Z!m!n!o$[$^$`Q!caU!yf!r$gQ#RjQ#x!bS#|!c$PQ$R!dQ%d#}Q%e$OQ%i$SS&O$i&QQ&T$lR'o&uQ#{!bW%s$W%m&z'uQ&t%bQ'w&}Q(U'mR(d(ZQ%u$WQ&y%mQ't&zR(Y'uR%k$SR%Z#oQqPR#n!SQ!zfQ$f!rR%}$g",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery ColorLiteral CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector StyleQuery style ParenthesedQuery CallQuery ArgList PropertyName , PropertyName UnaryQuery ParenthesedQuery BinaryQuery ParenthesedQuery ParenthesedQuery StyleFeature PropertyName StyleRange PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:176,nodeProps:[["isolate",-2,5,38,""],["openedBy",23,"(",30,"[",33,"{"],["closedBy",24,")",31,"]",34,"}"]],propSources:[f],skippedNodes:[0,5,130],repeatNodeCount:17,tokenData:"IO~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu/wuv%Zvw0qwx1Sxy2qyz3Sz{3X{|3r|}8e}!O8v!O!P9e!P!Q9|!Q![:u![!];p!]!^<l!^!_<}!_!`=y!`!a>^!a!b%Z!b!c?_!c!k%Z!k!lAl!l!u%Z!u!vAl!v!}%Z!}#OA}#O#P%Z#P#QB`#Q#R/w#R#]%Z#]#^Bq#^#g%Z#g#hAl#h#o%Z#o#pGU#p#qGg#q#rHO#r#sHa#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`Hx<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!r`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$`~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%j~'yh$`~!r`OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%jj)jS$uYOy%jz;'S%j;'S;=`%{<%lO%j~)yWOY)vZr)vrs*cs#O)v#O#P*h#P;'S)v;'S;=`+d<%lO)v~*hOv~~*kRO;'S)v;'S;=`*t;=`O)v~*wXOY)vZr)vrs*cs#O)v#O#P*h#P;'S)v;'S;=`+d;=`<%l)v<%lO)v~+gP;=`<%l)vj+maOy%jz}%j}!O,r!O!Q%j!Q![,r![!c%j!c!},r!}#O%j#O#P.O#P#R%j#R#S,r#S#T%j#T#o,r#o$g%j$g;'S,r;'S;=`/q<%lO,rj,ya$rY!r`Oy%jz}%j}!O,r!O!Q%j!Q![,r![!c%j!c!},r!}#O%j#O#P.O#P#R%j#R#S,r#S#T%j#T#o,r#o$g%j$g;'S,r;'S;=`/q<%lO,rj.TV!r`OY,rYZ%jZy,ryz.jz;'S,r;'S;=`/q<%lO,rY.oX$rY}!O.j!Q![.j!c!}.j#O#P/[#R#S.j#T#o.j$g;'S.j;'S;=`/k<%lO.jY/_SOY.jZ;'S.j;'S;=`/k<%lO.jY/nP;=`<%l.jj/tP;=`<%l,rd/zUOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%jd0eS!|S!r`Oy%jz;'S%j;'S;=`%{<%lO%jb0vS^QOy%jz;'S%j;'S;=`%{<%lO%j~1VWOY1SZw1Swx*cx#O1S#O#P1o#P;'S1S;'S;=`2k<%lO1S~1rRO;'S1S;'S;=`1{;=`O1S~2OXOY1SZw1Swx*cx#O1S#O#P1o#P;'S1S;'S;=`2k;=`<%l1S<%lO1S~2nP;=`<%l1Sj2vShYOy%jz;'S%j;'S;=`%{<%lO%j~3XOg~n3`UWQxWOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%jj3yWxW#SQOy%jz!O%j!O!P4c!P!Q%j!Q![7h![;'S%j;'S;=`%{<%lO%jj4hU!r`Oy%jz!Q%j!Q![4z![;'S%j;'S;=`%{<%lO%jj5RY!r`$kYOy%jz!Q%j!Q![4z![!g%j!g!h5q!h#X%j#X#Y5q#Y;'S%j;'S;=`%{<%lO%jj5vY!r`Oy%jz{%j{|6f|}%j}!O6f!O!Q%j!Q![6}![;'S%j;'S;=`%{<%lO%jj6kU!r`Oy%jz!Q%j!Q![6}![;'S%j;'S;=`%{<%lO%jj7UU!r`$kYOy%jz!Q%j!Q![6}![;'S%j;'S;=`%{<%lO%jj7o[!r`$kYOy%jz!O%j!O!P4z!P!Q%j!Q![7h![!g%j!g!h5q!h#X%j#X#Y5q#Y;'S%j;'S;=`%{<%lO%jj8jS!eYOy%jz;'S%j;'S;=`%{<%lO%jj8{WxWOy%jz!O%j!O!P4c!P!Q%j!Q![7h![;'S%j;'S;=`%{<%lO%jj9jU`YOy%jz!Q%j!Q![4z![;'S%j;'S;=`%{<%lO%j~:RTxWOy%jz{:b{;'S%j;'S;=`%{<%lO%j~:iS!r`$a~Oy%jz;'S%j;'S;=`%{<%lO%jj:z[$kYOy%jz!O%j!O!P4z!P!Q%j!Q![7h![!g%j!g!h5q!h#X%j#X#Y5q#Y;'S%j;'S;=`%{<%lO%jj;uUcYOy%jz![%j![!]<X!];'S%j;'S;=`%{<%lO%jj<`SdY!r`Oy%jz;'S%j;'S;=`%{<%lO%jj<qSmYOy%jz;'S%j;'S;=`%{<%lO%jh=SU!WWOy%jz!_%j!_!`=f!`;'S%j;'S;=`%{<%lO%jh=mS!WW!r`Oy%jz;'S%j;'S;=`%{<%lO%jl>QS!WW!|SOy%jz;'S%j;'S;=`%{<%lO%jj>eV#PQ!WWOy%jz!_%j!_!`=f!`!a>z!a;'S%j;'S;=`%{<%lO%jb?RS#PQ!r`Oy%jz;'S%j;'S;=`%{<%lO%jj?bYOy%jz}%j}!O@Q!O!c%j!c!}@o!}#T%j#T#o@o#o;'S%j;'S;=`%{<%lO%jj@VW!r`Oy%jz!c%j!c!}@o!}#T%j#T#o@o#o;'S%j;'S;=`%{<%lO%jj@v[lY!r`Oy%jz}%j}!O@o!O!Q%j!Q![@o![!c%j!c!}@o!}#T%j#T#o@o#o;'S%j;'S;=`%{<%lO%jhAqS!}WOy%jz;'S%j;'S;=`%{<%lO%jjBSSoYOy%jz;'S%j;'S;=`%{<%lO%jnBeSn^Oy%jz;'S%j;'S;=`%{<%lO%jjBvU!}WOy%jz#a%j#a#bCY#b;'S%j;'S;=`%{<%lO%jbC_U!r`Oy%jz#d%j#d#eCq#e;'S%j;'S;=`%{<%lO%jbCvU!r`Oy%jz#c%j#c#dDY#d;'S%j;'S;=`%{<%lO%jbD_U!r`Oy%jz#f%j#f#gDq#g;'S%j;'S;=`%{<%lO%jbDvU!r`Oy%jz#h%j#h#iEY#i;'S%j;'S;=`%{<%lO%jbE_U!r`Oy%jz#T%j#T#UEq#U;'S%j;'S;=`%{<%lO%jbEvU!r`Oy%jz#b%j#b#cFY#c;'S%j;'S;=`%{<%lO%jbF_U!r`Oy%jz#h%j#h#iFq#i;'S%j;'S;=`%{<%lO%jbFxS$tQ!r`Oy%jz;'S%j;'S;=`%{<%lO%jjGZSrYOy%jz;'S%j;'S;=`%{<%lO%jfGlU$gUOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%jjHTSqYOy%jz;'S%j;'S;=`%{<%lO%jfHfU#SQOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%j`H{P;=`<%l%Z",tokenizers:[u,p,c,h,1,2,3,4,new r.uC("m~RRYZ[z{a~~g~aO$c~~dP!P!Qg~lO$d~~",28,156)],topRules:{StyleSheet:[0,6],Styles:[1,129]},dynamicPrecedences:{97:1},specialized:[{term:172,get:(t,e)=>d(t)<<1,external:d},{term:150,get:t=>g[t]||-1},{term:151,get:t=>m[t]||-1},{term:4,get:t=>y[t]||-1},{term:28,get:t=>v[t]||-1},{term:149,get:t=>O[t]||-1}],tokenPrec:2433})},60214(t,e,n){"use strict";n.d(e,{DM:()=>u,_A:()=>T,az:()=>h,pn:()=>l,vw:()=>s});var r=n(16713);let i=0;class s{constructor(t,e,n,r){this.name=t,this.set=e,this.base=n,this.modified=r,this.id=i++}toString(){let{name:t}=this;for(let e of this.modified)e.name&&(t=`${e.name}(${t})`);return t}static define(t,e){let n="string"==typeof t?t:"?";if(t instanceof s&&(e=t),null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let r=new s(n,[],null,[]);if(r.set.push(r),e)for(let t of e.set)r.set.push(t);return r}static defineModifier(t){let e=new a(t);return t=>t.modified.indexOf(e)>-1?t:a.get(t.base||t,t.modified.concat(e).sort((t,e)=>t.id-e.id))}}let o=0;class a{constructor(t){this.name=t,this.instances=[],this.id=o++}static get(t,e){if(!e.length)return t;let n=e[0].instances.find(n=>{return n.base==t&&(r=e,i=n.modified,r.length==i.length&&r.every((t,e)=>t==i[e]));var r,i});if(n)return n;let r=[],i=new s(t.name,r,t,e);for(let t of e)t.instances.push(i);let o=function(t){let e=[[]];for(let n=0;n<t.length;n++)for(let r=0,i=e.length;r<i;r++)e.push(e[r].concat(t[n]));return e.sort((t,e)=>e.length-t.length)}(e);for(let e of t.set)if(!e.modified.length)for(let t of o)r.push(a.get(e,t));return i}}function l(t){let e=Object.create(null);for(let n in t){let r=t[n];Array.isArray(r)||(r=[r]);for(let t of n.split(" "))if(t){let n=[],i=2,s=t;for(let e=0;;){if("..."==s&&e>0&&e+3==t.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!r)throw new RangeError("Invalid path: "+t);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),e+=r[0].length,e==t.length)break;let o=t[e++];if(e==t.length&&"!"==o){i=0;break}if("/"!=o)throw new RangeError("Invalid path: "+t);s=t.slice(e)}let o=n.length-1,a=n[o];if(!a)throw new RangeError("Invalid path: "+t);let l=new c(r,i,o>0?n.slice(0,o):null);e[a]=l.sort(e[a])}}return A.add(e)}const A=new r.uY({combine(t,e){let n,r,i;for(;t||e;){if(!t||e&&t.depth<=e.depth?(i=e,e=e.next):(i=t,t=t.next),n&&n.mode==i.mode&&!i.context&&!n.context)continue;let s=new c(i.tags,i.mode,i.context);n?n.next=s:r=s,n=s}return r}});class c{constructor(t,e,n,r){this.tags=t,this.mode=e,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}function h(t,e){let n=Object.create(null);for(let e of t)if(Array.isArray(e.tag))for(let t of e.tag)n[t.id]=e.class;else n[e.tag.id]=e.class;let{scope:r,all:i=null}=e||{};return{style:t=>{let e=i;for(let r of t)for(let t of r.set){let r=n[t.id];if(r){e=e?e+" "+r:r;break}}return e},scope:r}}function u(t,e,n,r=0,i=t.length){let s=new p(r,Array.isArray(e)?e:[e],n);s.highlightRange(t.cursor(),r,i,"",s.highlighters),s.flush(i)}c.empty=new c([],2,null);class p{constructor(t,e,n){this.at=t,this.highlighters=e,this.span=n,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,n,i,s){let{type:o,from:a,to:l}=t;if(a>=n||l<=e)return;o.isTop&&(s=this.highlighters.filter(t=>!t.scope||t.scope(o)));let h=i,u=function(t){let e=t.type.prop(A);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(t)||c.empty,p=function(t,e){let n=null;for(let r of t){let t=r.style(e);t&&(n=n?n+" "+t:t)}return n}(s,u.tags);if(p&&(h&&(h+=" "),h+=p,1==u.mode&&(i+=(i?" ":"")+p)),this.startSpan(Math.max(e,a),h),u.opaque)return;let d=t.tree&&t.tree.prop(r.uY.mounted);if(d&&d.overlay){let r=t.node.enter(d.overlay[0].from+a,1),o=this.highlighters.filter(t=>!t.scope||t.scope(d.tree.type)),A=t.firstChild();for(let c=0,u=a;;c++){let p=c<d.overlay.length?d.overlay[c]:null,f=p?p.from+a:l,g=Math.max(e,u),m=Math.min(n,f);if(g<m&&A)for(;t.from<m&&(this.highlightRange(t,g,m,i,s),this.startSpan(Math.min(m,t.to),h),!(t.to>=f)&&t.nextSibling()););if(!p||f>n)break;u=p.to+a,u>e&&(this.highlightRange(r.cursor(),Math.max(e,p.from+a),Math.min(n,u),"",o),this.startSpan(Math.min(n,u),h))}A&&t.parent()}else if(t.firstChild()){d&&(i="");do{if(!(t.to<=e)){if(t.from>=n)break;this.highlightRange(t,e,n,i,s),this.startSpan(Math.min(n,t.to),h)}}while(t.nextSibling());t.parent()}}}const d=s.define,f=d(),g=d(),m=d(g),y=d(g),v=d(),O=d(v),b=d(v),x=d(),w=d(x),_=d(),S=d(),C=d(),E=d(C),B=d(),T={comment:f,lineComment:d(f),blockComment:d(f),docComment:d(f),name:g,variableName:d(g),typeName:m,tagName:d(m),propertyName:y,attributeName:d(y),className:d(g),labelName:d(g),namespace:d(g),macroName:d(g),literal:v,string:O,docString:d(O),character:d(O),attributeValue:d(O),number:b,integer:d(b),float:d(b),bool:d(v),regexp:d(v),escape:d(v),color:d(v),url:d(v),keyword:_,self:d(_),null:d(_),atom:d(_),unit:d(_),modifier:d(_),operatorKeyword:d(_),controlKeyword:d(_),definitionKeyword:d(_),moduleKeyword:d(_),operator:S,derefOperator:d(S),arithmeticOperator:d(S),logicOperator:d(S),bitwiseOperator:d(S),compareOperator:d(S),updateOperator:d(S),definitionOperator:d(S),typeOperator:d(S),controlOperator:d(S),punctuation:C,separator:d(C),bracket:E,angleBracket:d(E),squareBracket:d(E),paren:d(E),brace:d(E),content:x,heading:w,heading1:d(w),heading2:d(w),heading3:d(w),heading4:d(w),heading5:d(w),heading6:d(w),contentSeparator:d(x),list:d(x),quote:d(x),emphasis:d(x),strong:d(x),link:d(x),monospace:d(x),strikethrough:d(x),inserted:d(),deleted:d(),changed:d(),invalid:d(),meta:B,documentMeta:d(B),annotation:d(B),processingInstruction:d(B),definition:s.defineModifier("definition"),constant:s.defineModifier("constant"),function:s.defineModifier("function"),standard:s.defineModifier("standard"),local:s.defineModifier("local"),special:s.defineModifier("special")};for(let t in T){let e=T[t];e instanceof s&&(e.name=t)}h([{tag:T.link,class:"tok-link"},{tag:T.heading,class:"tok-heading"},{tag:T.emphasis,class:"tok-emphasis"},{tag:T.strong,class:"tok-strong"},{tag:T.keyword,class:"tok-keyword"},{tag:T.atom,class:"tok-atom"},{tag:T.bool,class:"tok-bool"},{tag:T.url,class:"tok-url"},{tag:T.labelName,class:"tok-labelName"},{tag:T.inserted,class:"tok-inserted"},{tag:T.deleted,class:"tok-deleted"},{tag:T.literal,class:"tok-literal"},{tag:T.string,class:"tok-string"},{tag:T.number,class:"tok-number"},{tag:[T.regexp,T.escape,T.special(T.string)],class:"tok-string2"},{tag:T.variableName,class:"tok-variableName"},{tag:T.local(T.variableName),class:"tok-variableName tok-local"},{tag:T.definition(T.variableName),class:"tok-variableName tok-definition"},{tag:T.special(T.variableName),class:"tok-variableName2"},{tag:T.definition(T.propertyName),class:"tok-propertyName tok-definition"},{tag:T.typeName,class:"tok-typeName"},{tag:T.namespace,class:"tok-namespace"},{tag:T.className,class:"tok-className"},{tag:T.macroName,class:"tok-macroName"},{tag:T.propertyName,class:"tok-propertyName"},{tag:T.operator,class:"tok-operator"},{tag:T.comment,class:"tok-comment"},{tag:T.meta,class:"tok-meta"},{tag:T.invalid,class:"tok-invalid"},{tag:T.punctuation,class:"tok-punctuation"}])},99064(t,e,n){"use strict";n.d(e,{K:()=>E,n:()=>k});var r=n(47405),i=n(60214),s=n(16713);const o={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},a={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},l={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function A(t){return 45==t||46==t||58==t||t>=65&&t<=90||95==t||t>=97&&t<=122||t>=161}let c=null,h=null,u=0;function p(t,e){let n=t.pos+e;if(u==n&&h==t)return c;let r=t.peek(e),i="";for(;A(r);)i+=String.fromCharCode(r),r=t.peek(++e);return h=t,u=n,c=i?i.toLowerCase():r==d||r==f?void 0:null}const d=63,f=33;function g(t,e){this.name=t,this.parent=e}const m=[6,10,7,8,9],y=new r.Aj({start:null,shift:(t,e,n,r)=>m.indexOf(e)>-1?new g(p(r,1)||"",t):t,reduce:(t,e)=>21==e&&t?t.parent:t,reuse(t,e,n,r){let i=e.type.id;return 6==i||37==i?new g(p(r,1)||"",t):t},strict:!1}),v=new r.Lu((t,e)=>{if(60!=t.next)return void(t.next<0&&e.context&&t.acceptToken(58));t.advance();let n=47==t.next;n&&t.advance();let r=p(t,0);if(void 0===r)return;if(!r)return t.acceptToken(n?15:14);let i=e.context?e.context.name:null;if(n){if(r==i)return t.acceptToken(11);if(i&&a[i])return t.acceptToken(58,-2);if(e.dialectEnabled(0))return t.acceptToken(12);for(let t=e.context;t;t=t.parent)if(t.name==r)return;t.acceptToken(13)}else{if("script"==r)return t.acceptToken(7);if("style"==r)return t.acceptToken(8);if("textarea"==r)return t.acceptToken(9);if(o.hasOwnProperty(r))return t.acceptToken(10);i&&l[i]&&l[i][r]?t.acceptToken(58,-1):t.acceptToken(6)}},{contextual:!0}),O=new r.Lu(t=>{for(let e=0,n=0;;n++){if(t.next<0){n&&t.acceptToken(59);break}if(45==t.next)e++;else{if(62==t.next&&e>=2){n>=3&&t.acceptToken(59,-2);break}e=0}t.advance()}}),b=new r.Lu((t,e)=>{if(47==t.next&&62==t.peek(1)){let n=e.dialectEnabled(1)||function(t){for(;t;t=t.parent)if("svg"==t.name||"math"==t.name)return!0;return!1}(e.context);t.acceptToken(n?5:4,2)}else 62==t.next&&t.acceptToken(4,1)});function x(t,e,n){let i=2+t.length;return new r.Lu(r=>{for(let s=0,o=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(e);break}if(0==s&&60==r.next||1==s&&47==r.next||s>=2&&s<i&&r.next==t.charCodeAt(s-2))s++,o++;else{if(s==i&&62==r.next){a>o?r.acceptToken(e,-o):r.acceptToken(n,-(o-2));break}if((10==r.next||13==r.next)&&a){r.acceptToken(e,1);break}s=o=0}r.advance()}})}const w=x("script",55,1),_=x("style",56,2),S=x("textarea",57,3),C=(0,i.pn)({"Text RawText IncompleteTag IncompleteCloseTag":i._A.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":i._A.angleBracket,TagName:i._A.tagName,"MismatchedCloseTag/TagName":[i._A.tagName,i._A.invalid],AttributeName:i._A.attributeName,"AttributeValue UnquotedAttributeValue":i._A.attributeValue,Is:i._A.definitionOperator,"EntityReference CharacterReference":i._A.character,Comment:i._A.blockComment,ProcessingInst:i._A.processingInstruction,DoctypeDecl:i._A.documentMeta}),E=r.U1.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:",c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:y,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[C],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!dpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!b`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!b`!dpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYlWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]`aP!b`!dp!_^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebiSlWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXiSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vciSaP!b`!dpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!ahaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WiiSlWd!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QciSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[w,_,S,b,v,O,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function B(t,e){let n=Object.create(null);for(let r of t.getChildren(24)){let t=r.getChild(25),i=r.getChild(27)||r.getChild(28);t&&(n[e.read(t.from,t.to)]=i?27==i.type.id?e.read(i.from+1,i.to-1):e.read(i.from,i.to):"")}return n}function T(t,e){let n=t.getChild(23);return n?e.read(n.from,n.to):" "}function P(t,e,n){let r;for(let i of n)if(!i.attrs||i.attrs(r||(r=B(t.node.parent.firstChild,e))))return{parser:i.parser,bracketed:!0};return null}function k(t=[],e=[]){let n=[],r=[],i=[],o=[];for(let e of t)("script"==e.tag?n:"style"==e.tag?r:"textarea"==e.tag?i:o).push(e);let a=e.length?Object.create(null):null;for(let t of e)(a[t.name]||(a[t.name]=[])).push(t);return(0,s.$g)((t,e)=>{let s=t.type.id;if(29==s)return P(t,e,n);if(32==s)return P(t,e,r);if(35==s)return P(t,e,i);if(21==s&&o.length){let n,r=t.node,i=r.firstChild,s=i&&T(i,e);if(s)for(let t of o)if(t.tag==s&&(!t.attrs||t.attrs(n||(n=B(i,e))))){let e=r.lastChild,n=38==e.type.id?e.from:r.to;if(n>i.to)return{parser:t.parser,overlay:[{from:i.to,to:n}]}}}if(a&&24==s){let n,r=t.node;if(n=r.firstChild){let t=a[e.read(n.from,n.to)];if(t)for(let n of t){if(n.tagName&&n.tagName!=T(r.parent,e))continue;let t=r.lastChild;if(27==t.type.id){let e=t.from+1,r=t.lastChild,i=t.to-(r&&r.isError?0:1);if(i>e)return{parser:n.parser,overlay:[{from:e,to:i}],bracketed:!0}}else if(28==t.type.id)return{parser:n.parser,overlay:[{from:t.from,to:t.to}]}}}}return null})}},70062(t,e,n){"use strict";n.d(e,{K:()=>m});var r=n(47405),i=n(60214);const s=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],o=new r.Aj({start:!1,shift:(t,e)=>5==e||6==e||321==e?t:322==e,strict:!1}),a=new r.Lu((t,e)=>{let{next:n}=t;(125==n||-1==n||e.context)&&t.acceptToken(319)},{contextual:!0,fallback:!0}),l=new r.Lu((t,e)=>{let n,{next:r}=t;s.indexOf(r)>-1||(47!=r||47!=(n=t.peek(1))&&42!=n)&&(125==r||59==r||-1==r||e.context||t.acceptToken(317))},{contextual:!0}),A=new r.Lu((t,e)=>{91!=t.next||e.context||t.acceptToken(318)},{contextual:!0}),c=new r.Lu((t,e)=>{let{next:n}=t;if(43==n||45==n){if(t.advance(),n==t.next){t.advance();let n=!e.context&&e.canShift(1);t.acceptToken(n?1:2)}}else 63==n&&46==t.peek(1)&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(3))},{contextual:!0});function h(t,e){return t>=65&&t<=90||t>=97&&t<=122||95==t||t>=192||!e&&t>=48&&t<=57}const u=new r.Lu((t,e)=>{if(60!=t.next||!e.dialectEnabled(0))return;if(t.advance(),47==t.next)return;let n=0;for(;s.indexOf(t.next)>-1;)t.advance(),n++;if(h(t.next,!0)){for(t.advance(),n++;h(t.next,!1);)t.advance(),n++;for(;s.indexOf(t.next)>-1;)t.advance(),n++;if(44==t.next)return;for(let e=0;;e++){if(7==e){if(!h(t.next,!0))return;break}if(t.next!="extends".charCodeAt(e))break;t.advance(),n++}}t.acceptToken(4,-n)}),p=(0,i.pn)({"get set async static":i._A.modifier,"for while do if else switch try catch finally return throw break continue default case defer":i._A.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":i._A.operatorKeyword,"let var const using function class extends":i._A.definitionKeyword,"import export from":i._A.moduleKeyword,"with debugger new":i._A.keyword,TemplateString:i._A.special(i._A.string),super:i._A.atom,BooleanLiteral:i._A.bool,this:i._A.self,null:i._A.null,Star:i._A.modifier,VariableName:i._A.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":i._A.function(i._A.variableName),VariableDefinition:i._A.definition(i._A.variableName),Label:i._A.labelName,PropertyName:i._A.propertyName,PrivatePropertyName:i._A.special(i._A.propertyName),"CallExpression/MemberExpression/PropertyName":i._A.function(i._A.propertyName),"FunctionDeclaration/VariableDefinition":i._A.function(i._A.definition(i._A.variableName)),"ClassDeclaration/VariableDefinition":i._A.definition(i._A.className),"NewExpression/VariableName":i._A.className,PropertyDefinition:i._A.definition(i._A.propertyName),PrivatePropertyDefinition:i._A.definition(i._A.special(i._A.propertyName)),UpdateOp:i._A.updateOperator,"LineComment Hashbang":i._A.lineComment,BlockComment:i._A.blockComment,Number:i._A.number,String:i._A.string,Escape:i._A.escape,ArithOp:i._A.arithmeticOperator,LogicOp:i._A.logicOperator,BitOp:i._A.bitwiseOperator,CompareOp:i._A.compareOperator,RegExp:i._A.regexp,Equals:i._A.definitionOperator,Arrow:i._A.function(i._A.punctuation),": Spread":i._A.punctuation,"( )":i._A.paren,"[ ]":i._A.squareBracket,"{ }":i._A.brace,"InterpolationStart InterpolationEnd":i._A.special(i._A.brace),".":i._A.derefOperator,", ;":i._A.separator,"@":i._A.meta,TypeName:i._A.typeName,TypeDefinition:i._A.definition(i._A.typeName),"type enum interface implements namespace module declare":i._A.definitionKeyword,"abstract global Privacy readonly override":i._A.modifier,"is keyof unique infer asserts":i._A.operatorKeyword,JSXAttributeValue:i._A.attributeValue,JSXText:i._A.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":i._A.angleBracket,"JSXIdentifier JSXNameSpacedName":i._A.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":i._A.attributeName,"JSXBuiltin/JSXIdentifier":i._A.standard(i._A.tagName)}),d={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:237,private:237,protected:237,readonly:239,instanceof:258,satisfies:261,import:294,keyof:351,unique:355,infer:361,asserts:397,is:399,abstract:419,implements:421,type:423,let:426,var:428,using:431,interface:437,enum:441,namespace:447,module:449,declare:453,global:457,defer:473,for:478,of:487,while:490,with:494,do:498,if:502,else:504,switch:508,case:514,try:520,catch:524,finally:528,return:532,throw:536,break:540,continue:544,debugger:548},f={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:403},g={__proto__:null,"<":193},m=r.U1.deserialize({version:14,states:"$GSQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Im'#ImO1XQ`O'#GtO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JsO6[Q!0MxO'#JtO6uQ`O'#F^O6zQ,UO'#FuOOQ!0Lf'#Fg'#FgO7VO7dO'#FgO9XQMhO'#F}O9`Q`O'#F|OOQ!0Lf'#Jt'#JtOOQ!0Lb'#Js'#JsO9eQ`O'#GxOOQ['#K`'#K`O9pQ`O'#IZO9uQ!0LrO'#I[OOQ['#Ja'#JaOOQ['#I`'#I`Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GtO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EzO;hQMhO'#FfO;xQ`O'#GtOOQO'#Ka'#KaO;}Q`O'#KaO<]Q`O'#G|O<]Q`O'#G}O<]Q`O'#HPO9kQ`O'#HSO=SQ`O'#HVO>kQ`O'#CeO>{Q`O'#HdO?TQ`O'#HjO?TQ`O'#HlO`QlO'#HnO?TQ`O'#HpO?TQ`O'#HsO?YQ`O'#HyO?_Q!0LsO'#IPO%[QlO'#IRO?jQ!0LsO'#ITO?uQ!0LsO'#IVO9uQ!0LrO'#IXO@QQ!0MxO'#CiOASQpO'#DlQOQ`OOO%[QlO'#EQOAjQ`O'#ETO:dQMhO'#EnOAuQ`O'#EnOBQQ!bO'#FfOOQ['#Cg'#CgOOQ!0Lb'#Dq'#DqOOQ!0Lb'#Jw'#JwO%[QlO'#JwOOQO'#Jz'#JzOOQO'#Ii'#IiOCQQpO'#EgOOQ!0Lb'#Ef'#EfOOQ!0Lb'#KO'#KOOC|Q!0MSO'#EgODWQpO'#EWOOQO'#Jy'#JyODlQpO'#JzOEyQpO'#EWODWQpO'#EgPFWO&2DjO'#CbPOOO)CEO)CEOOOOO'#Ia'#IaOFcO#tO,59UOOQ!0Lh,59U,59UOOOO'#Ib'#IbOFqO&jO,59UOGPQ!L^O'#DcOOOO'#Id'#IdOGWO#@ItO,59{OOQ!0Lf,59{,59{OGfQlO'#IeOGyQ`O'#JuOIxQ!fO'#JuO+}QlO'#JuOJPQ`O,5:ROJgQ`O'#EpOJtQ`O'#KUOKPQ`O'#KTOKPQ`O'#KTOKXQ`O,5;^OK^Q`O'#KSOOQ!0Ln,5:^,5:^OKeQlO,5:^OMcQ!0MxO,5:fONSQ`O,5:nONmQ!0LrO'#KRONtQ`O'#KQO9eQ`O'#KQO! YQ`O'#KQO! bQ`O,5;]O! gQ`O'#KQO!#lQ!fO'#JtOOQ!0Lh'#Ci'#CiO%[QlO'#ESO!$[Q!fO,5:sOOQS'#J{'#J{OOQO-E<k-E<kO9kQ`O,5=`O!$rQ`O,5=`O!$wQlO,5;ZO!&zQMhO'#EkO!(eQ`O,5;ZO!(jQlO'#DyO!(tQpO,5;eO!(|QpO,5;eO%[QlO,5;eOOQ['#FU'#FUOOQ['#FW'#FWO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fO%[QlO,5;fOOQ['#F['#F[O!)[QlO,5;uOOQ!0Lf,5;z,5;zOOQ!0Lf,5;{,5;{OOQ!0Lf,5;},5;}O%[QlO'#IqO!+_Q!0LrO,5<jO%[QlO,5;fO!&zQMhO,5;fO!+|QMhO,5;fO!-nQMhO'#E^O%[QlO,5;xOOQ!0Lf,5;|,5;|O!-uQ,UO'#FkO!.rQ,UO'#KYO!.^Q,UO'#KYO!.yQ,UO'#KYOOQO'#KY'#KYO!/_Q,UO,5<TOOOW,5<a,5<aO!/pQlO'#FwOOOW'#Ip'#IpO7VO7dO,5<RO!/wQ,UO'#FyOOQ!0Lf,5<R,5<RO!0hQ$IUO'#CyOOQ!0Lh'#C}'#C}O!0{O#@ItO'#DRO!1iQMjO,5<fO!1pQ`O,5<iO!3YQ(CWO'#GYO!3jQ`O'#GZO!3oQ`O'#GZO!5_Q(CWO'#G_O!6dQpO'#GcOOQO'#Go'#GoO!,TQMhO'#GnOOQO'#Gq'#GqO!,TQMhO'#GpO!7VQ$IUO'#JmOOQ!0Lh'#Jm'#JmO!7aQ`O'#JlO!7oQ`O'#JkO!7wQ`O'#CuOOQ!0Lh'#C{'#C{O!8YQ`O'#C}OOQ!0Lh'#DV'#DVOOQ!0Lh'#DX'#DXO!8_Q`O,5<fO1SQ`O'#DZO!,TQMhO'#GQO!,TQMhO'#GSO!8gQ`O'#GUO!8lQ`O'#GVO!3oQ`O'#G]O!,TQMhO'#GbO<]Q`O'#JlO!8qQ`O'#EqO!9`Q`O,5<hOOQ!0Lb'#Cr'#CrO!9hQ`O'#ErO!:bQpO'#EsOOQ!0Lb'#KS'#KSO!:iQ!0LrO'#KbO9uQ!0LrO,5=dO`QlO,5>uOOQ['#Ji'#JiOOQ[,5>v,5>vOOQ[-E<^-E<^O!<hQ!0MxO,5:bO!=[QpO,5:`O!?WQ!0MxO,5:jO%[QlO,5:jO!AnQ!0MxO,5:lOOQO,5@{,5@{O!B_QMhO,5=`O!BmQ!0LrO'#JjO9`Q`O'#JjO!COQ!0LrO,59ZO!CZQpO,59ZO!CcQMhO,59ZO:dQMhO,59ZO!CnQ`O,5;ZO!CvQ`O'#HcO!D[Q`O'#KeO%[QlO,5<OO!=[QpO,5<QO!DdQ`O,5={O!DiQ`O,5={O!DnQ`O,5={O!D|Q`O,5={O9uQ!0LrO,5={O<]Q`O,5=kOOQO'#Cy'#CyO!ETQpO,5=hO!E]QMhO,5=iO!EhQ`O,5=kO!EmQ!bO,5=nO!EuQ`O'#KaO?YQ`O'#HXO9kQ`O'#HZO!EzQ`O'#HZO:dQMhO'#H]O!FPQ`O'#H]OOQ[,5=q,5=qO!FUQ`O'#H^O!FgQ`O'#CoO!FlQ`O,59PO!FvQ`O,59PO!H{QlO,59POOQ[,59P,59PO!I]Q!0LrO,59PO%[QlO,59PO!KhQlO'#HfOOQ['#Hg'#HgOOQ['#Hh'#HhO`QlO,5>OO!LOQ`O,5>OO`QlO,5>UO`QlO,5>WO!LTQ`O,5>YO`QlO,5>[O!LYQ`O,5>_O!L_QlO,5>eOOQ[,5>k,5>kO%[QlO,5>kO9uQ!0LrO,5>mOOQ[,5>o,5>oO#!iQ`O,5>oOOQ[,5>q,5>qO#!iQ`O,5>qOOQ[,5>s,5>sO##VQpO'#D_O%[QlO'#JwO##aQpO'#JwO##{QpO'#DmO#$^QpO'#DmO#&oQlO'#DmO#&vQ`O'#JvO#'OQ`O,5:WO#'TQ`O'#EtO#'`Q`O'#EtO#'eQ`O'#KVO#'mQ`O,5;_O#'rQpO'#DmO#(PQpO'#EVOOQ!0Lf,5:o,5:oO%[QlO,5:oO#(WQ`O,5:oO?YQ`O,5;YO!CZQpO,5;YO!CcQMhO,5;YO:dQMhO,5;YO#(`Q`O,5@cO#(eQ07dO,5:sOOQO-E<g-E<gO#)kQ!0MSO,5;RODWQpO,5:rO#)uQpO,5:rODWQpO,5;RO!COQ!0LrO,5:rOOQ!0Lb'#Ej'#EjOOQO,5;R,5;RO%[QlO,5;RO#*SQ!0LrO,5;RO#*_Q!0LrO,5;RO!CZQpO,5:rOOQO,5;X,5;XO#*mQ!0LrO,5;RPOOO'#I_'#I_P#+RO&2DjO,58|POOO,58|,58|OOOO-E<_-E<_OOQ!0Lh1G.p1G.pOOOO-E<`-E<`OOOO,59},59}O#+^Q!bO,59}OOOO-E<b-E<bOOQ!0Lf1G/g1G/gO#+cQ!fO,5?PO+}QlO,5?POOQO,5?V,5?VO#+mQlO'#IeOOQO-E<c-E<cO#+zQ`O,5@aO#,SQ!fO,5@aO#,ZQ`O,5@oOOQ!0Lf1G/m1G/mO%[QlO,5@pO#,cQ`O'#IkOOQO-E<i-E<iO#,ZQ`O,5@oOOQ!0Lb1G0x1G0xOOQ!0Ln1G/x1G/xOOQ!0Ln1G0Y1G0YO%[QlO,5@mO#,wQ!0LrO,5@mO#-YQ!0LrO,5@mO#-aQ`O,5@lO9eQ`O,5@lO#-iQ`O,5@lO#-wQ`O'#InO#-aQ`O,5@lOOQ!0Lb1G0w1G0wO!(tQpO,5:uO!)PQpO,5:uOOQS,5:w,5:wO#.iQdO,5:wO#.qQMhO1G2zO9kQ`O1G2zOOQ!0Lf1G0u1G0uO#/PQ!0MxO1G0uO#0UQ!0MvO,5;VOOQ!0Lh'#GX'#GXO#0rQ!0MzO'#JmO!$wQlO1G0uO#2}Q!fO'#JxO%[QlO'#JxO#3XQ`O,5:eOOQ!0Lh'#D_'#D_OOQ!0Lf1G1P1G1PO%[QlO1G1POOQ!0Lf1G1g1G1gO#3^Q`O1G1PO#5rQ!0MxO1G1QO#5yQ!0MxO1G1QO#8aQ!0MxO1G1QO#8hQ!0MxO1G1QO#;OQ!0MxO1G1QO#=fQ!0MxO1G1QO#=mQ!0MxO1G1QO#=tQ!0MxO1G1QO#@[Q!0MxO1G1QO#@cQ!0MxO1G1QO#BpQ?MtO'#CiO#DkQ?MtO1G1aO#DrQ?MtO'#JtO#EVQ!0MxO,5?]OOQ!0Lb-E<o-E<oO#GdQ!0MxO1G1QO#HaQ!0MzO1G1QOOQ!0Lf1G1Q1G1QO#IdQMjO'#J}O#InQ`O,5:xO#IsQ!0MxO1G1dO#JgQ,UO,5<XO#JoQ,UO,5<YO#JwQ,UO'#FpO#K`Q`O'#FoOOQO'#KZ'#KZOOQO'#Io'#IoO#KeQ,UO1G1oOOQ!0Lf1G1o1G1oOOOW1G1z1G1zO#KvQ?MtO'#JsO#LQQ`O,5<cO!)[QlO,5<cOOOW-E<n-E<nOOQ!0Lf1G1m1G1mO#LVQpO'#KYOOQ!0Lf,5<e,5<eO#L_QpO,5<eO#LdQMhO'#DTOOOO'#Ic'#IcO#LkO#@ItO,59mOOQ!0Lh,59m,59mO%[QlO1G2QO!8lQ`O'#IsO#LvQ`O,5<{OOQ!0Lh,5<x,5<xO!,TQMhO'#IvO#MdQMjO,5=YO!,TQMhO'#IxO#NVQMjO,5=[O!&zQMhO,5=^OOQO1G2T1G2TO#NaQ!dO'#CrO#NtQ(CWO'#ErO$ |QpO'#GcO$!dQ!dO,5<tO$!kQ`O'#K]O9eQ`O'#K]O$!yQ`O,5<vO$#aQ!dO'#C{O!,TQMhO,5<uO$#kQ`O'#G[O$$PQ`O,5<uO$$UQ!dO'#GXO$$cQ!dO'#K^O$$mQ`O'#K^O!&zQMhO'#K^O$$rQ`O,5<yO$$wQlO'#JwO$%RQpO'#GdO#$^QpO'#GdO$%dQ`O'#GhO!3oQ`O'#GlO$%iQ!0LrO'#IuO$%tQpO,5<}OOQ!0Lp,5<},5<}O$%{QpO'#GdO$&YQpO'#GeO$&kQpO'#GeO$&pQMjO,5=YO$'QQMjO,5=[OOQ!0Lh,5=_,5=_O!,TQMhO,5@WO!,TQMhO,5@WO$'bQ`O'#IzO$'vQ`O,5@VO$(OQ`O,59aOOQ!0Lh,59i,59iO$(TQ`O,5@WO$)TQ$IYO,59uOOQ!0Lh'#Jq'#JqO$)vQMjO,5<lO$*iQMjO,5<nO@zQ`O,5<pOOQ!0Lh,5<q,5<qO$*sQ`O,5<wO$*xQMjO,5<|O$+YQ`O'#KQO!$wQlO1G2SO$+_Q`O1G2SO9eQ`O'#KTO$+dQ`O'#D_O9eQ`O'#EtO%[QlO'#EtO9eQ`O'#I|O$+rQ!0LrO,5@|OOQ[1G3O1G3OOOQ[1G4a1G4aOOQ!0Lf1G/|1G/|OOQ!0Lf1G/z1G/zO$-tQ!0MxO1G0UOOQ[1G2z1G2zO!&zQMhO1G2zO%[QlO1G2zO#.tQ`O1G2zO$/xQMhO'#EkOOQ!0Lb,5@U,5@UO$0VQ!0LrO,5@UOOQ[1G.u1G.uO!COQ!0LrO1G.uO!CZQpO1G.uO!CcQMhO1G.uO$0hQ`O1G0uO$0mQ`O'#CiO$0xQ`O'#KfO$1QQ`O,5=}O$1VQ`O'#KfO$1[Q`O'#KfO$1jQ`O'#JSO$1xQ`O,5APO$2QQ!fO1G1jOOQ!0Lf1G1l1G1lO9kQ`O1G3gO@zQ`O1G3gO$2XQ`O1G3gO$2^Q`O1G3gO!DnQ`O1G3gO9uQ!0LrO1G3gOOQ[1G3g1G3gO!EhQ`O1G3VO!&zQMhO1G3SO$2cQ`O1G3SOOQ[1G3T1G3TO!&zQMhO1G3TO$2hQ`O1G3TO$2pQpO'#HROOQ[1G3V1G3VO!6_QpO'#JOO!EmQ!bO1G3YOOQ[1G3Y1G3YOOQ[,5=s,5=sO$2xQMhO,5=uO9kQ`O,5=uO$%dQ`O,5=wO9`Q`O,5=wO!CZQpO,5=wO!CcQMhO,5=wO:dQMhO,5=wO$3WQ`O'#KdO$3cQ`O,5=xOOQ[1G.k1G.kO$3hQ!0LrO1G.kO@zQ`O1G.kO$3sQ`O1G.kO9uQ!0LrO1G.kO$5{Q!fO,5ARO$6YQ`O,5ARO9eQ`O,5ARO$6eQlO,5>QO$6lQ`O,5>QOOQ[1G3j1G3jO`QlO1G3jOOQ[1G3p1G3pOOQ[1G3r1G3rO?TQ`O1G3tO$6qQlO1G3vO$:uQlO'#HuOOQ[1G3y1G3yO$;SQ`O'#H{O?YQ`O'#H}OOQ[1G4P1G4PO$;[QlO1G4PO9uQ!0LrO1G4VOOQ[1G4X1G4XOOQ!0Lb'#G`'#G`O9uQ!0LrO1G4ZO9uQ!0LrO1G4]O$?cQ`O,5@cO9eQ`O,5;`O?YQ`O,5:XO!)[QlO,5:XO!CZQpO,5:XO$?hQ?MtO,5:XOOQO,5;`,5;`O$?rQpO'#IfO$@YQ`O,5@bOOQ!0Lf1G/r1G/rO!)[QlO,5;`O$@bQpO'#IlO$@lQ`O,5@qOOQ!0Lb1G0y1G0yO#$^QpO,5:XOOQO'#Ih'#IhO$@tQpO,5:qOOQ!0Ln,5:q,5:qO#(ZQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO?YQ`O1G0tO!CZQpO1G0tO!CcQMhO1G0tOOQ!0Lb1G5}1G5}O!COQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$@{Q!0LrO1G0mO$AWQ!0LrO1G0mO!CZQpO1G0^ODWQpO1G0^O$AfQ!0LrO1G0mOOQO1G0^1G0^O$AzQ!0MxO1G0mPOOO-E<]-E<]POOO1G.h1G.hOOOO1G/i1G/iO$BUQ!bO,5<jO$B^Q!fO1G4kOOQO1G4q1G4qO%[QlO,5?PO$BhQ`O1G5{O$BpQ`O1G6ZO$BxQ!fO1G6[O9eQ`O,5?VO$CSQ!0MxO1G6XO%[QlO1G6XO$CdQ!0LrO1G6XO$CuQ`O1G6WO$CuQ`O1G6WO9eQ`O1G6WO$C}Q`O,5?YO9eQ`O,5?YOOQO,5?Y,5?YO$DcQ`O,5?YO$+YQ`O,5?YOOQO-E<l-E<lOOQS1G0a1G0aOOQS1G0c1G0cO#.lQ`O1G0cOOQ[7+(f7+(fO!&zQMhO7+(fO%[QlO7+(fO$DqQ`O7+(fO$D|QMhO7+(fO$E[Q!0MzO,5=YO$GgQ!0MzO,5=[O$IrQ!0MzO,5=YO$LTQ!0MzO,5=[O$NfQ!0MzO,59uO%!kQ!0MzO,5<lO%$vQ!0MzO,5<nO%'RQ!0MzO,5<|OOQ!0Lf7+&a7+&aO%)dQ!0MxO7+&aO%*WQlO'#IgO%*eQ`O,5@dO%*mQ!fO,5@dOOQ!0Lf1G0P1G0PO%*wQ`O7+&kOOQ!0Lf7+&k7+&kO%*|Q?MtO,5:fO%[QlO7+&{O%+WQ?MtO,5:bO%+eQ?MtO,5:jO%+oQ?MtO,5:lO%+yQMhO'#IjO%,TQ`O,5@iOOQ!0Lh1G0d1G0dOOQO1G1s1G1sOOQO1G1t1G1tO%,]Q!jO,5<[O!)[QlO,5<ZOOQO-E<m-E<mOOQ!0Lf7+'Z7+'ZOOOW7+'f7+'fOOOW1G1}1G1}O%,hQ`O1G1}OOQ!0Lf1G2P1G2POOOO,59o,59oO%,mQ!dO,59oOOOO-E<a-E<aOOQ!0Lh1G/X1G/XO%,tQ!0MxO7+'lOOQ!0Lh,5?_,5?_O%-hQMhO1G2gP%-oQ`O'#IsPOQ!0Lh-E<q-E<qO%.]QMjO,5?bOOQ!0Lh-E<t-E<tO%/OQMjO,5?dOOQ!0Lh-E<v-E<vO%/YQ!dO1G2xO%/aQ!dO'#CrO%/wQMhO'#KTO$$wQlO'#JwOOQ!0Lh1G2`1G2`O%0RQ`O'#IrO%0jQ`O,5@wO%0jQ`O,5@wO%0rQ`O,5@wO%0}Q`O,5@wOOQO1G2b1G2bO%1]QMjO1G2aO$+YQ`O'#K]O!,TQMhO1G2aO%1mQ(CWO'#ItO%1zQ`O,5@xO!&zQMhO,5@xO%2SQ!dO,5@xOOQ!0Lh1G2e1G2eO%4dQ!fO'#CiO%4nQ`O,5=QOOQ!0Lb,5=O,5=OO%4vQpO,5=OOOQ!0Lb,5=P,5=POCwQ`O,5=OO%5RQpO,5=OOOQ!0Lb,5=S,5=SO$+YQ`O,5=WOOQO,5?a,5?aOOQO-E<s-E<sOOQ!0Lp1G2i1G2iO#$^QpO,5=OO$$wQlO,5=QO%5aQ`O,5=PO%5lQpO,5=PO!,TQMhO'#IvO%6fQMjO1G2tO!,TQMhO'#IxO%7XQMjO1G2vO%7cQMjO1G5rO%7mQMjO1G5rOOQO,5?f,5?fOOQO-E<x-E<xOOQO1G.{1G.{O!,TQMhO1G5rO!,TQMhO1G5rO!=[QpO,59wO%[QlO,59wOOQ!0Lh,5<k,5<kO%7zQ`O1G2[O!,TQMhO1G2cO%8PQ!0MxO7+'nOOQ!0Lf7+'n7+'nO!$wQlO7+'nO%8sQ`O,5;`OOQ!0Lb,5?h,5?hOOQ!0Lb-E<z-E<zO%8xQ!dO'#K_O#(ZQ`O7+(fO4UQ!fO7+(fO$DtQ`O7+(fO%9SQ!0MvO'#CiO%9gQ!0MvO,5=TO%9zQ`O,5=TO%:SQ`O,5=TOOQ!0Lb1G5p1G5pOOQ[7+$a7+$aO!COQ!0LrO7+$aO!CZQpO7+$aO!$wQlO7+&aO%:XQ`O'#JRO%:pQ`O,5AQOOQO1G3i1G3iO9kQ`O,5AQO%:pQ`O,5AQO%:xQ`O,5AQOOQO,5?n,5?nOOQO-E=Q-E=QOOQ!0Lf7+'U7+'UO%:}Q`O7+)RO9uQ!0LrO7+)RO9kQ`O7+)RO@zQ`O7+)RO%;SQ`O7+)ROOQ[7+)R7+)ROOQ[7+(q7+(qO%;XQ!0MvO7+(nO!&zQMhO7+(nO!EcQ`O7+(oOOQ[7+(o7+(oO!&zQMhO7+(oO%;cQ`O'#KcO%;nQ`O,5=mOOQO,5?j,5?jOOQO-E<|-E<|OOQ[7+(t7+(tO%=QQpO'#H[OOQ[1G3a1G3aO!&zQMhO1G3aO%[QlO1G3aO%=XQ`O1G3aO%=dQMhO1G3aO9uQ!0LrO1G3cO$%dQ`O1G3cO9`Q`O1G3cO!CZQpO1G3cO!CcQMhO1G3cO%=rQ`O'#JQO%>WQ`O,5AOO%>`QpO,5AOOOQ!0Lb1G3d1G3dOOQ[7+$V7+$VO@zQ`O7+$VO9uQ!0LrO7+$VO%>kQ`O7+$VO%[QlO1G6mO%[QlO1G6nO%>pQ!0LrO1G6mO%>zQlO1G3lO%?RQ`O1G3lO%?WQlO1G3lOOQ[7+)U7+)UO9uQ!0LrO7+)`O`QlO7+)bOOQ['#Ki'#KiOOQ['#JT'#JTO%?_QlO,5>aOOQ[,5>a,5>aO%[QlO'#HvO%?lQ`O'#HxOOQ[,5>g,5>gO9eQ`O,5>gOOQ[,5>i,5>iOOQ[7+)k7+)kOOQ[7+)q7+)qOOQ[7+)u7+)uOOQ[7+)w7+)wO%?qQpO1G5}O%@]Q`O1G0zOOQO1G/s1G/sO%@hQ?MtO1G/sO?YQ`O1G/sO!)[QlO'#DmOOQO,5?Q,5?QOOQO-E<d-E<dO%@rQ?MtO1G0zOOQO,5?W,5?WOOQO-E<j-E<jO!CZQpO1G/sOOQO-E<f-E<fOOQ!0Ln1G0]1G0]OOQ!0Lf7+%u7+%uO#(ZQ`O7+%uOOQ!0Lf7+&`7+&`O?YQ`O7+&`O!CZQpO7+&`OOQO7+%x7+%xO$AzQ!0MxO7+&XOOQO7+&X7+&XO%[QlO7+&XO%@|Q!0LrO7+&XO!COQ!0LrO7+%xO!CZQpO7+%xO%AXQ!0LrO7+&XO%AgQ!0MxO7++sO%[QlO7++sO%AwQ`O7++rO%AwQ`O7++rOOQO1G4t1G4tO9eQ`O1G4tO%BPQ`O1G4tOOQS7+%}7+%}O#(ZQ`O<<LQO4UQ!fO<<LQO%B_Q`O<<LQOOQ[<<LQ<<LQO!&zQMhO<<LQO%[QlO<<LQO%BgQ`O<<LQO%BrQ!0MzO,5?bO%D}Q!0MzO,5?dO%GYQ!0MzO1G2aO%IkQ!0MzO1G2tO%KvQ!0MzO1G2vO%NRQ!fO,5?RO%[QlO,5?ROOQO-E<e-E<eO%N]Q`O1G6OOOQ!0Lf<<JV<<JVO%NeQ?MtO1G0uO&!lQ?MtO1G1QO&!sQ?MtO1G1QO&$tQ?MtO1G1QO&${Q?MtO1G1QO&&|Q?MtO1G1QO&(}Q?MtO1G1QO&)UQ?MtO1G1QO&)]Q?MtO1G1QO&+^Q?MtO1G1QO&+eQ?MtO1G1QO&+lQ!0MxO<<JgO&-dQ?MtO1G1QO&.aQ?MvO1G1QO&/dQ?MvO'#JmO&1jQ?MtO1G1dO&1wQ?MtO1G0UO&2RQMjO,5?UOOQO-E<h-E<hO!)[QlO'#FrOOQO'#K['#K[OOQO1G1v1G1vO&2]Q`O1G1uO&2bQ?MtO,5?]OOOW7+'i7+'iOOOO1G/Z1G/ZO&2lQ!dO1G4yOOQ!0Lh7+(R7+(RP!&zQMhO,5?_O!,TQMhO7+(dO&2sQ`O,5?^O9eQ`O,5?^O$+YQ`O,5?^OOQO-E<p-E<pO&3RQ`O1G6cO&3RQ`O1G6cO&3ZQ`O1G6cO&3fQMjO7+'{O&3vQ!dO,5?`O&4QQ`O,5?`O!&zQMhO,5?`OOQO-E<r-E<rO&4VQ!dO1G6dO&4aQ`O1G6dO&4iQ`O1G2lO!&zQMhO1G2lOOQ!0Lb1G2j1G2jOOQ!0Lb1G2k1G2kO%4vQpO1G2jO!CZQpO1G2jOCwQ`O1G2jOOQ!0Lb1G2r1G2rO&4nQpO1G2jO&4|Q`O1G2lO$+YQ`O1G2kOCwQ`O1G2kO$$wQlO1G2lO&5UQ`O1G2kO&5xQMjO,5?bOOQ!0Lh-E<u-E<uO&6kQMjO,5?dOOQ!0Lh-E<w-E<wO!,TQMhO7++^O&6uQMjO7++^O&7PQMjO7++^OOQ!0Lh1G/c1G/cO&7^Q`O1G/cOOQ!0Lh7+'v7+'vO&7cQMjO7+'}O&7sQ!0MxO<<KYOOQ!0Lf<<KY<<KYO&8gQ`O1G0zO!&zQMhO'#I{O&8lQ`O,5@yO&:nQ!fO<<LQO!&zQMhO1G2oO&:uQ!0LrO1G2oOOQ[<<G{<<G{O!COQ!0LrO<<G{O&;WQ!0MxO<<I{OOQ!0Lf<<I{<<I{OOQO,5?m,5?mO&;zQ`O,5?mO&<PQ`O,5?mOOQO-E=P-E=PO&<_Q`O1G6lO&<_Q`O1G6lO9kQ`O1G6lO@zQ`O<<LmOOQ[<<Lm<<LmO&<gQ`O<<LmO9uQ!0LrO<<LmO9kQ`O<<LmOOQ[<<LY<<LYO%;XQ!0MvO<<LYOOQ[<<LZ<<LZO!EcQ`O<<LZO&<lQpO'#I}O&<wQ`O,5@}O!)[QlO,5@}OOQ[1G3X1G3XOOQO'#JP'#JPO9uQ!0LrO'#JPO&=PQpO,5=vOOQ[,5=v,5=vO&=WQpO'#EgO&=_QpO'#GfO&=dQ`O7+({O&=iQ`O7+({OOQ[7+({7+({O!&zQMhO7+({O%[QlO7+({O&=qQ`O7+({OOQ[7+(}7+(}O9uQ!0LrO7+(}O$%dQ`O7+(}O9`Q`O7+(}O!CZQpO7+(}O&=|Q`O,5?lOOQO-E=O-E=OOOQO'#H_'#H_O&>XQ`O1G6jO9uQ!0LrO<<GqOOQ[<<Gq<<GqO@zQ`O<<GqO&>aQ`O7+,XO&>fQ`O7+,YO%[QlO7+,XO%[QlO7+,YOOQ[7+)W7+)WO&>kQ`O7+)WO&>pQlO7+)WO&>wQ`O7+)WOOQ[<<Lz<<LzOOQ[<<L|<<L|OOQ[-E=R-E=ROOQ[1G3{1G3{O&>|Q`O,5>bOOQ[,5>d,5>dO&?RQ`O1G4RO9eQ`O7+&fO!)[QlO7+&fOOQO7+%_7+%_O&?WQ?MtO1G6[O?YQ`O7+%_OOQ!0Lf<<Ia<<IaOOQ!0Lf<<Iz<<IzO?YQ`O<<IzOOQO<<Is<<IsO$AzQ!0MxO<<IsO%[QlO<<IsOOQO<<Id<<IdO!COQ!0LrO<<IdO&?bQ!0LrO<<IsO&?mQ!0MxO<= _O&?}Q`O<= ^OOQO7+*`7+*`O9eQ`O7+*`OOQ[ANAlANAlO&@VQ!fOANAlO!&zQMhOANAlO#(ZQ`OANAlO4UQ!fOANAlO&@^Q`OANAlO%[QlOANAlO&@fQ!0MzO7+'{O&BwQ!0MzO,5?bO&ESQ!0MzO,5?dO&G_Q!0MzO7+'}O&IpQ!fO1G4mO&IzQ?MtO7+&aO&LOQ?MvO,5=YO&NVQ?MvO,5=[O&NgQ?MvO,5=YO&NwQ?MvO,5=[O' XQ?MvO,59uO'#_Q?MvO,5<lO'%bQ?MvO,5<nO''vQ?MvO,5<|O')lQ?MtO7+'lO')yQ?MtO7+'nO'*WQ`O,5<^OOQO7+'a7+'aOOQ!0Lh7+*e7+*eO'*]QMjO<<LOOOQO1G4x1G4xO'*dQ`O1G4xO'*oQ`O1G4xO'*}Q`O7++}O'*}Q`O7++}O!&zQMhO1G4zO'+VQ!dO1G4zO'+aQ`O7+,OO'+iQ`O7+(WO'+tQ!dO7+(WOOQ!0Lb7+(U7+(UOOQ!0Lb7+(V7+(VO!CZQpO7+(UOCwQ`O7+(UO',OQ`O7+(WO!&zQMhO7+(WO$+YQ`O7+(VO',TQ`O7+(WOCwQ`O7+(VO',]QMjO<<NxO!,TQMhO<<NxOOQ!0Lh7+$}7+$}O',gQ!dO,5?gOOQO-E<y-E<yO',qQ!0MvO7+(ZO!&zQMhO7+(ZOOQ[AN=gAN=gO9kQ`O1G5XOOQO1G5X1G5XO'-RQ`O1G5XO'-WQ`O7+,WO'-WQ`O7+,WO9uQ!0LrOANBXO@zQ`OANBXOOQ[ANBXANBXO'-`Q`OANBXOOQ[ANAtANAtOOQ[ANAuANAuO'-eQ`O,5?iOOQO-E<{-E<{O'-pQ?MtO1G6iOOQO,5?k,5?kOOQO-E<}-E<}OOQ[1G3b1G3bO'-zQ`O,5=QOOQ[<<Lg<<LgO!&zQMhO<<LgO&=dQ`O<<LgO'.PQ`O<<LgO%[QlO<<LgOOQ[<<Li<<LiO9uQ!0LrO<<LiO$%dQ`O<<LiO9`Q`O<<LiO'.XQpO1G5WO'.dQ`O7+,UOOQ[AN=]AN=]O9uQ!0LrOAN=]OOQ[<= s<= sOOQ[<= t<= tO'.lQ`O<= sO'.qQ`O<= tOOQ[<<Lr<<LrO'.vQ`O<<LrO'.{QlO<<LrOOQ[1G3|1G3|O?YQ`O7+)mO'/SQ`O<<JQO'/_Q?MtO<<JQOOQO<<Hy<<HyOOQ!0LfAN?fAN?fOOQOAN?_AN?_O$AzQ!0MxOAN?_OOQOAN?OAN?OO%[QlOAN?_OOQO<<Mz<<MzOOQ[G27WG27WO!&zQMhOG27WO#(ZQ`OG27WO'/iQ!fOG27WO4UQ!fOG27WO'/pQ`OG27WO'/xQ?MtO<<JgO'0VQ?MvO1G2aO'1{Q?MvO,5?bO'4OQ?MvO,5?dO'6RQ?MvO1G2tO'8UQ?MvO1G2vO':XQ?MtO<<KYO':fQ?MtO<<I{OOQO1G1x1G1xO!,TQMhOANAjOOQO7+*d7+*dO':sQ`O7+*dO';OQ`O<= iO';WQ!dO7+*fOOQ!0Lb<<Kr<<KrO$+YQ`O<<KrOCwQ`O<<KrO';bQ`O<<KrO!&zQMhO<<KrOOQ!0Lb<<Kp<<KpO!CZQpO<<KpO';mQ!dO<<KrOOQ!0Lb<<Kq<<KqO';wQ`O<<KrO!&zQMhO<<KrO$+YQ`O<<KqO';|QMjOANDdO'<WQ!0MvO<<KuOOQO7+*s7+*sO9kQ`O7+*sO'<hQ`O<= rOOQ[G27sG27sO9uQ!0LrOG27sO@zQ`OG27sO!)[QlO1G5TO'<pQ`O7+,TO'<xQ`O1G2lO&=dQ`OANBROOQ[ANBRANBRO!&zQMhOANBRO'<}Q`OANBROOQ[ANBTANBTO9uQ!0LrOANBTO$%dQ`OANBTOOQO'#H`'#H`OOQO7+*r7+*rOOQ[G22wG22wOOQ[ANE_ANE_OOQ[ANE`ANE`OOQ[ANB^ANB^O'=VQ`OANB^OOQ[<<MX<<MXO!)[QlOAN?lOOQOG24yG24yO$AzQ!0MxOG24yO#(ZQ`OLD,rOOQ[LD,rLD,rO!&zQMhOLD,rO'=[Q!fOLD,rO'=cQ?MvO7+'{O'?XQ?MvO,5?bO'A[Q?MvO,5?dO'C_Q?MvO7+'}O'ETQMjOG27UOOQO<<NO<<NOOOQ!0LbANA^ANA^O$+YQ`OANA^OCwQ`OANA^O'EeQ!dOANA^OOQ!0LbANA[ANA[O'ElQ`OANA^O!&zQMhOANA^O'EwQ!dOANA^OOQ!0LbANA]ANA]OOQO<<N_<<N_OOQ[LD-_LD-_O9uQ!0LrOLD-_O'FRQ?MtO7+*oOOQO'#Gg'#GgOOQ[G27mG27mO&=dQ`OG27mO!&zQMhOG27mOOQ[G27oG27oO9uQ!0LrOG27oOOQ[G27xG27xO'F]Q?MtOG25WOOQOLD*eLD*eOOQ[!$(!^!$(!^O#(ZQ`O!$(!^O!&zQMhO!$(!^O'FgQ!0MzOG27UOOQ!0LbG26xG26xO$+YQ`OG26xO'HxQ`OG26xOCwQ`OG26xO'ITQ!dOG26xO!&zQMhOG26xOOQ[!$(!y!$(!yOOQ[LD-XLD-XO&=dQ`OLD-XOOQ[LD-ZLD-ZOOQ[!)9Ex!)9ExO#(ZQ`O!)9ExOOQ!0LbLD,dLD,dO$+YQ`OLD,dOCwQ`OLD,dO'I[Q`OLD,dO'IgQ!dOLD,dOOQ[!$(!s!$(!sOOQ[!.K;d!.K;dO'InQ?MvOG27UOOQ!0Lb!$(!O!$(!OO$+YQ`O!$(!OOCwQ`O!$(!OO'KdQ`O!$(!OOOQ!0Lb!)9Ej!)9EjO$+YQ`O!)9EjOCwQ`O!)9EjOOQ!0Lb!.K;U!.K;UO$+YQ`O!.K;UOOQ!0Lb!4/0p!4/0pO!)[QlO'#DzO1PQ`O'#EXO'KoQ!fO'#JsO'KvQ!L^O'#DvO'K}QlO'#EOO'LUQ!fO'#CiO'NlQ!fO'#CiO!)[QlO'#EQO'N|QlO,5;ZO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO,5;fO!)[QlO'#IqO(#PQ`O,5<jO!)[QlO,5;fO(#XQMhO,5;fO($rQMhO,5;fO!)[QlO,5;xO!&zQMhO'#GnO(#XQMhO'#GnO!&zQMhO'#GpO(#XQMhO'#GpO1SQ`O'#DZO1SQ`O'#DZO!&zQMhO'#GQO(#XQMhO'#GQO!&zQMhO'#GSO(#XQMhO'#GSO!&zQMhO'#GbO(#XQMhO'#GbO!)[QlO,5:jO($yQpO'#D_O!)[QlO,5@pO'N|QlO1G0uO(%TQ?MtO'#CiO!)[QlO1G2QO!&zQMhO'#IvO(#XQMhO'#IvO!&zQMhO'#IxO(#XQMhO'#IxO(%_Q!dO'#CrO!&zQMhO,5<uO(#XQMhO,5<uO'N|QlO1G2SO!)[QlO7+&{O!&zQMhO1G2aO(#XQMhO1G2aO!&zQMhO'#IvO(#XQMhO'#IvO!&zQMhO'#IxO(#XQMhO'#IxO!&zQMhO1G2cO(#XQMhO1G2cO'N|QlO7+'nO'N|QlO7+&aO!&zQMhOANAjO(#XQMhOANAjO(%rQ`O'#EoO(%wQ`O'#EoO(&PQ`O'#F^O(&UQ`O'#EzO(&ZQ`O'#KUO(&fQ`O'#KSO(&qQ`O,5;ZO(&vQMjO,5<fO(&}Q`O'#GZO('SQ`O'#GZO('XQ`O,5<fO('aQ`O,5<hO('iQ`O,5;ZO('qQ?MtO1G1aO('xQ`O,5<uO('}Q`O,5<uO((SQ`O,5<wO((XQ`O,5<wO((^Q`O1G2SO((cQ`O1G0uO((hQMjO<<LOO((oQMjO<<LOO((vQMhO'#F}O9`Q`O'#F|OAuQ`O'#EnO!)[QlO,5;uO!3oQ`O'#GZO!3oQ`O'#GZO!3oQ`O'#G]O!3oQ`O'#G]O!,TQMhO7+(dO!,TQMhO7+(dO%/YQ!dO1G2xO%/YQ!dO1G2xO!&zQMhO,5=^O!&zQMhO,5=^",stateData:"(){~O'}OS(OOSTOS(PRQ~OPYOQYOSfOY!VOaqOdzOeyOl!POpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!uwO!xxO!|]O$X|O$oiO%i}O%k!QO%m!OO%n!OO%o!OO%r!RO%t!SO%w!TO%x!TO%z!UO&X!WO&_!XO&a!YO&c!ZO&e![O&h!]O&n!^O&t!_O&v!`O&x!aO&z!bO&|!cO(USO(WTO(ZUO(bVO(p[O~OWtO~P`OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$X!kO$oiO(U!dO(WTO(ZUO(bVO(p[O~Oa!wOs!nO!S!oO!b!yO!c!vO!d!vO!|<XO#T!pO#U!pO#V!xO#W!pO#X!pO#[!zO#]!zO(V!lO(WTO(ZUO(f!mO(p!sO~O(P!{O~OP]XR]X[]Xa]Xj]Xr]X!Q]X!S]X!]]X!l]X!p]X#R]X#S]X#`]X#lfX#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#w]X#y]X#{]X#|]X$R]X'{]X(b]X(s]X(z]X({]X~O!g%SX~P(qO_!}O(W#PO(X!}O(Y#PO~O_#QO(Y#PO(Z#PO([#QO~Ox#SO!U#TO(c#TO(d#VO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$X!kO$oiO(U<]O(WTO(ZUO(bVO(p[O~O![#ZO!]#WO!Y(iP!Y(wP~P+}O!^#cO~P`OPYOQYOSfOd!jOe!iOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$X!kO$oiO(WTO(ZUO(bVO(p[O~Op#mO![#iO!|]O#j#lO#k#iO(U<^O!k(tP~P.iO!l#oO(U#nO~O!x#sO!|]O%i#tO~O#l#uO~O!g#vO#l#uO~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!]$_O!l#xO!p$[O#R$RO#o$OO#p$PO#q$PO#r$PO#s$QO#t$RO#u$RO#v$bO#w$SO#y$UO#{$WO#|$XO(bVO(s$YO(z#|O({#}O~Oa(gX'{(gX'x(gX!k(gX!Y(gX!_(gX%j(gX!g(gX~P1qO#S$dO#`$eO$R$eOP(hXR(hX[(hXj(hXr(hX!Q(hX!S(hX!](hX!l(hX!p(hX#R(hX#o(hX#p(hX#q(hX#r(hX#s(hX#t(hX#u(hX#v(hX#w(hX#y(hX#{(hX#|(hX(b(hX(s(hX(z(hX({(hX!_(hX%j(hX~Oa(hX'{(hX'x(hX!Y(hX!k(hXv(hX!g(hX~P4UO#`$eO~O$^$hO$`$gO$g$mO~OSfO!_$nO$j$oO$l$qO~Oh%VOj%dOk%dOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#k%cO$X%`O$u%^O$w%_O$z%aO(U$sO(WTO(ZUO(b$uO(z$}O({%POg(_P~Ol%[O~P7eO!l%eO~O!S%hO!_%iO(U%gO~O!g%mO~Oa%nO'{%nO~O!Q%rO~P%[O(V!lO~P%[O%o%vO~P%[Oh%VO!l%eO(U%gO(V!lO~Oe%}O!l%eO(U%gO~Oj$RO~O!_&PO(U%gO(V!lO(WTO(ZUO`)XP~O!Q&SO!l&RO%k&VO&U&WO~P;SO!x#sO~O%t&YO!S)TX!_)TX(U)TX~O(U&ZO~Ol!PO!u&`O%k!QO%m!OO%n!OO%o!OO%r!RO%t!SO%w!TO%x!TO~Od&eOe&dO!x&bO%i&cO%|&aO~P<bOd&hOeyOl!PO!_&gO!u&`O!xxO!|]O%i}O%m!OO%n!OO%o!OO%r!RO%t!SO%w!TO%x!TO%z!UO~Ob&kO#`&nO%k&iO(V!lO~P=gO!l&oO!u&sO~O!l#oO~O!_XO~Oa%nO'y&{O'{%nO~Oa%nO'y'OO'{%nO~Oa%nO'y'QO'{%nO~O'x]X!Y]Xv]X!k]X&]]X!_]X%j]X!g]X~P(qO!b'`O!c'WO!d'WO(V!lO(WTO(ZUO~Os'UO!S'TO!['XO(f'SO!^(jP!^(yP~P@nOn'cO!_'aO(U%gO~Oe'hO!l%eO(U%gO~O!Q&SO!l&RO~Os!nO!S!oO!|<XO#T!pO#U!pO#W!pO#X!pO(V!lO(WTO(ZUO(f!mO(p!sO~O!b'nO!c'mO!d'mO#V!pO#['oO#]'oO~PBYOa%nOh%VO!g#vO!l%eO'{%nO(s'qO~O!p'uO#`'sO~PChOs!nO!S!oO(WTO(ZUO(f!mO(p!sO~O!_XOs(nX!S(nX!b(nX!c(nX!d(nX!|(nX#T(nX#U(nX#V(nX#W(nX#X(nX#[(nX#](nX(V(nX(W(nX(Z(nX(f(nX(p(nX~O!c'mO!d'mO(V!lO~PDWO(Q'yO(R'yO(S'{O~O_!}O(W'}O(X!}O(Y'}O~O_#QO(Y'}O(Z'}O([#QO~Ov(PO~P%[Ox#SO!U#TO(c#TO(d(SO~O![(UO!Y'XX!Y'_X!]'XX!]'_X~P+}O!](WO!Y(iX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!](WO!l#xO!p$[O#R$RO#o$OO#p$PO#q$PO#r$PO#s$QO#t$RO#u$RO#v$bO#w$SO#y$UO#{$WO#|$XO(bVO(s$YO(z#|O({#}O~O!Y(iX~PHRO!Y(]O~O!Y(vX!](vX!g(vX!k(vX(s(vX~O#`(vX#l#dX!^(vX~PJUO#`(^O!Y(xX!](xX~O!](_O!Y(wX~O!Y(bO~O#`$eO~PJUO!^(cO~P`OR#zO!Q#yO!S#{O!l#xO(bVOP!na[!naj!nar!na!]!na!p!na#R!na#o!na#p!na#q!na#r!na#s!na#t!na#u!na#v!na#w!na#y!na#{!na#|!na(s!na(z!na({!na~Oa!na'{!na'x!na!Y!na!k!nav!na!_!na%j!na!g!na~PKlO!k(dO~O!g#vO#`(eO(s'qO!](uXa(uX'{(uX~O!k(uX~PNXO!S%hO!_%iO!|]O#j(jO#k(iO(U%gO~O!](kO!k(tX~O!k(mO~O!S%hO!_%iO#k(iO(U%gO~OP(hXR(hX[(hXj(hXr(hX!Q(hX!S(hX!](hX!l(hX!p(hX#R(hX#o(hX#p(hX#q(hX#r(hX#s(hX#t(hX#u(hX#v(hX#w(hX#y(hX#{(hX#|(hX(b(hX(s(hX(z(hX({(hX~O!g#vO!k(hX~P! uOR(oO!Q(nO!l#xO#S$dO!|!{a!S!{a~O!x!{a%i!{a!_!{a#j!{a#k!{a(U!{a~P!#vO!x(sO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$X!kO$oiO(U!dO(WTO(ZUO(bVO(p[O~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<uO!S${O!_$|O!i>WO!l$xO#k<{O$X%`O$u<wO$w<yO$z%aO(U(wO(WTO(ZUO(b$uO(z$}O({%PO~O#l(yO~O![({O!k(lP~P%[O(f(}O(p[O~O!S)PO!l#xO(f(}O(p[O~OP<WOQ<WOSfOd>SOe!iOpkOr<WOskOtkOzkO|<WO!O<WO!SWO!WkO!XkO!_!eO!i<ZO!lZO!o<WO!p<WO!q<WO!s<[O!u<_O!x!hO$X!kO$o>QO(U)^O(WTO(ZUO(bVO(p[O~O!]$_Oa$ra'{$ra'x$ra!k$ra!Y$ra!_$ra%j$ra!g$ra~Ol)eO~P!&zOh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#k%cO$X%`O$u%^O$w%_O$z%aO(U(wO(WTO(ZUO(b$uO(z$}O({%PO~Og(qP~P!,TO!Q)jO!g)iO!_$_X$[$_X$^$_X$`$_X$g$_X~O!g)iO!_(|X$[(|X$^(|X$`(|X$g(|X~O!Q)jO~P!.^O!Q)jO!_(|X$[(|X$^(|X$`(|X$g(|X~O!_)lO$[)pO$^)kO$`)kO$g)qO~O![)tO~P!)[O$^$hO$`$gO$g)xO~On${X!Q${X#S${X'z${X(z${X({${X~OgmXg${XnmX!]mX#`mX~P!0SOx)zO(c){O(d)}O~On*WO!Q*PO'z*QO(z$}O({%PO~Og*OO~P!1WOg*XO~Oh%VOr%XOs$tOt$tOz%YO|%ZO!O<uO!S*ZO!_*[O!i>WO!l$xO#k<{O$X%`O$u<wO$w<yO$z%aO(WTO(ZUO(b$uO(z$}O({%PO~Op*aO![*_O(U*YO!k)PP~P!1uO#l*bO~O!l*cO~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<uO!S${O!_$|O!i>WO!l$xO#k<{O$X%`O$u<wO$w<yO$z%aO(U*eO(WTO(ZUO(b$uO(z$}O({%PO~O![*hO!Y)QP~P!3tOr*tOs!nO!S*jO!b*rO!c*lO!d*lO!l*cO#[*sO%a*nO(V!lO(WTO(ZUO(f!mO~O!^*qO~P!5iO#S$dOn(aX!Q(aX'z(aX(z(aX({(aX!](aX#`(aX~Og(aX$P(aX~P!6kOn*yO#`*xOg(`X!](`X~O!]*zOg(_X~Oj%dOk%dOl%dO(U&ZOg(_P~Os*}O~Og*OO(U&ZO~O!l+TO~O(U(wO~Op+XO!S%hO![#iO!_%iO!|]O#j#lO#k#iO(U%gO!k(tP~O!g#vO#l+YO~O!S%hO![+[O!](_O!_%iO(U%gO!Y(wP~Os']O!S+_O![+^O(WTO(ZUO(f+]O~O!^(yP~P!9|O!]+`Oa)UX'{)UX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#o$OO#p$PO#q$PO#r$PO#s$QO#t$RO#u$RO#v$bO#w$SO#y$UO#{$WO#|$XO(bVO(s$YO(z#|O({#}O~Oa!ja!]!ja'{!ja'x!ja!Y!ja!k!jav!ja!_!ja%j!ja!g!ja~P!:tO(f(}O~OR#zO!Q#yO!S#{O!l#xO(bVOP!ra[!raj!rar!ra!]!ra!p!ra#R!ra#o!ra#p!ra#q!ra#r!ra#s!ra#t!ra#u!ra#v!ra#w!ra#y!ra#{!ra#|!ra(s!ra(z!ra({!ra~Oa!ra'{!ra'x!ra!Y!ra!k!rav!ra!_!ra%j!ra!g!ra~P!=aOR#zO!Q#yO!S#{O!l#xO(bVOP!ta[!taj!tar!ta!]!ta!p!ta#R!ta#o!ta#p!ta#q!ta#r!ta#s!ta#t!ta#u!ta#v!ta#w!ta#y!ta#{!ta#|!ta(s!ta(z!ta({!ta~Oa!ta'{!ta'x!ta!Y!ta!k!tav!ta!_!ta%j!ta!g!ta~P!?wOh%VOn+iO!_'aO%j+hO~O!g+kOa(^X!_(^X'{(^X!](^X~Oa%nO!_XO'{%nO~Oh%VO!l%eO~Oh%VO!l%eO(U%gO~O!g#vO#l(yO~Ob+vO%k+wO(U+sO(WTO(ZUO!^)YP~O!]+xO`)XX~O[+|O~O`+}O~O!_&PO(U%gO(V!lO`)XP~O%k,QO~P;SOh%VO#`,UO~Oh%VOn,XO!_$|O~O!_,ZO~O!Q,]O!_XO~O%o%vO~O!x,bO~Oe,gO~Ob,hO(U#nO(WTO(ZUO!^)WP~Oe%}O~O%k!QO(U&ZO~P=gO[,mO`,lO~OPYOQYOSfOdzOeyOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!iuO!lZO!oYO!pYO!qYO!svO!xxO!|]O$oiO%i}O(WTO(ZUO(bVO(p[O~O!_!eO!u!gO$X!kO(U!dO~P!GOO`,lOa%nO'{%nO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!x!hO$X!kO$oiO(U!dO(WTO(ZUO(bVO(p[O~Oa,rOl!OO!uwO%m!OO%n!OO%o!OO~P!IhO!l&oO~O&_,xO~O!_,zO~O&p,|O&r,}OP&maQ&maS&maY&maa&mad&mae&mal&map&mar&mas&mat&maz&ma|&ma!O&ma!S&ma!W&ma!X&ma!_&ma!i&ma!l&ma!o&ma!p&ma!q&ma!s&ma!u&ma!x&ma!|&ma$X&ma$o&ma%i&ma%k&ma%m&ma%n&ma%o&ma%r&ma%t&ma%w&ma%x&ma%z&ma&X&ma&_&ma&a&ma&c&ma&e&ma&h&ma&n&ma&t&ma&v&ma&x&ma&z&ma&|&ma'x&ma(U&ma(W&ma(Z&ma(b&ma(p&ma!^&ma&f&mab&ma&k&ma~O(U-SO~Oh!eX!]#iX!^#iX!g!RX!g!eX!l!eX#`#iX~O!]!eX!^!eX~P#!nO!g-WOh(kX!](kX!^(kX!g(kX!l(kXr(kX(s(kX~Oh%VO!g-YO!l%eO!]!aX!^!aX~Os!nO!S!oO(WTO(ZUO(f!mO~OP<WOQ<WOSfOd>SOe!iOpkOr<WOskOtkOzkO|<WO!O<WO!SWO!WkO!XkO!_!eO!i<ZO!lZO!o<WO!p<WO!q<WO!s<[O!u<_O!x!hO$X!kO$o>QO(WTO(ZUO(bVO(p[O~O(U=RO~P#$oO!]-^O!^(jX~O!^-`O~O#`-aO!]#hX!^#hX~O!g-WO~O!]-bO!^(yX~O!^-dO~O!c-eO!d-eO(V!lO~P#$^O!^-hO~P'_On-kO!_'aO~O!Y-pO~Os!{a!b!{a!c!{a!d!{a#T!{a#U!{a#V!{a#W!{a#X!{a#[!{a#]!{a(V!{a(W!{a(Z!{a(f!{a(p!{a~P!#vO!p-uO#`-sO~PChO!c-wO!d-wO(V!lO~PDWOa%nO#`-sO'{%nO~Oa%nO!g#vO#`-sO'{%nO~Oa%nO!g#vO!p-uO#`-sO'{%nO(s'qO~O(Q'yO(R'yO(S-|O~Ov-}O~O!Y'Xa!]'Xa~P!:tO![.RO!Y'XX!]'XX~P%[O!](WO!Y(ia~O!Y(ia~PHRO!](_O!Y(wa~O!S%hO![.VO!_%iO(U%gO!Y'_X!]'_X~O#`.XO!](ua!k(uaa(ua'{(ua~O!g#vO~P#,wO!](kO!k(ta~O!S%hO!_%iO#k.]O(U%gO~Op.bO!S%hO![._O!_%iO!|]O#j.aO#k._O(U%gO!]'bX!k'bX~OR.fO!l#xO~Oh%VOn.iO!_'aO%j.hO~Oa#ci!]#ci'{#ci'x#ci!Y#ci!k#civ#ci!_#ci%j#ci!g#ci~P!:tOn>^O!Q*PO'z*QO(z$}O({%PO~O#l#_aa#_a#`#_a'{#_a!]#_a!k#_a!_#_a!Y#_a~P#/sO#l(aXP(aXR(aX[(aXa(aXj(aXr(aX!S(aX!l(aX!p(aX#R(aX#o(aX#p(aX#q(aX#r(aX#s(aX#t(aX#u(aX#v(aX#w(aX#y(aX#{(aX#|(aX'{(aX(b(aX(s(aX!k(aX!Y(aX'x(aXv(aX!_(aX%j(aX!g(aX~P!6kO!].vO!k(lX~P!:tO!k.yO~O!Y.{O~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(bVO[#nia#nij#nir#ni!]#ni#R#ni#p#ni#q#ni#r#ni#s#ni#t#ni#u#ni#v#ni#w#ni#y#ni#{#ni#|#ni'{#ni(s#ni(z#ni({#ni'x#ni!Y#ni!k#niv#ni!_#ni%j#ni!g#ni~O#o#ni~P#3cO#o$OO~P#3cOP$[OR#zOr$aO!Q#yO!S#{O!l#xO!p$[O#o$OO#p$PO#q$PO#r$PO(bVO[#nia#nij#ni!]#ni#R#ni#t#ni#u#ni#v#ni#w#ni#y#ni#{#ni#|#ni'{#ni(s#ni(z#ni({#ni'x#ni!Y#ni!k#niv#ni!_#ni%j#ni!g#ni~O#s#ni~P#6QO#s$QO~P#6QOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#o$OO#p$PO#q$PO#r$PO#s$QO#t$RO#u$RO#v$bO(bVOa#ni!]#ni#y#ni#{#ni#|#ni'{#ni(s#ni(z#ni({#ni'x#ni!Y#ni!k#niv#ni!_#ni%j#ni!g#ni~O#w#ni~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#o$OO#p$PO#q$PO#r$PO#s$QO#t$RO#u$RO#v$bO#w$SO(bVO({#}Oa#ni!]#ni#{#ni#|#ni'{#ni(s#ni(z#ni'x#ni!Y#ni!k#niv#ni!_#ni%j#ni!g#ni~O#y$UO~P#;VO#y#ni~P#;VO#w$SO~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#o$OO#p$PO#q$PO#r$PO#s$QO#t$RO#u$RO#v$bO#w$SO#y$UO(bVO(z#|O({#}Oa#ni!]#ni#|#ni'{#ni(s#ni'x#ni!Y#ni!k#niv#ni!_#ni%j#ni!g#ni~O#{#ni~P#={O#{$WO~P#={OP]XR]X[]Xj]Xr]X!Q]X!S]X!l]X!p]X#R]X#S]X#`]X#lfX#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#w]X#y]X#{]X#|]X$R]X(b]X(s]X(z]X({]X!]]X!^]X~O$P]X~P#@jOP$[OR#zO[<oOj<dOr<mO!Q#yO!S#{O!l#xO!p$[O#R<dO#o<aO#p<bO#q<bO#r<bO#s<cO#t<dO#u<dO#v<nO#w<eO#y<gO#{<iO#|<jO(bVO(s$YO(z#|O({#}O~O$P.}O~P#BwO#S$dO#`<pO$R<pO$P(hX!^(hX~P! uOa'ea!]'ea'{'ea'x'ea!k'ea!Y'eav'ea!_'ea%j'ea!g'ea~P!:tO[#nia#nij#nir#ni!]#ni#R#ni#s#ni#t#ni#u#ni#v#ni#w#ni#y#ni#{#ni#|#ni'{#ni(s#ni'x#ni!Y#ni!k#niv#ni!_#ni%j#ni!g#ni~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#o$OO#p$PO#q$PO#r$PO(bVO(z#ni({#ni~P#EyOn>^O!Q*PO'z*QO(z$}O({%POP#niR#ni!S#ni!l#ni!p#ni#o#ni#p#ni#q#ni#r#ni(b#ni~P#EyO!]/ROg(qX~P!1WOg/TO~Oa$Qi!]$Qi'{$Qi'x$Qi!Y$Qi!k$Qiv$Qi!_$Qi%j$Qi!g$Qi~P!:tO$^/UO$`/UO~O$^/VO$`/VO~O!g)iO#`/WO!_$dX$[$dX$^$dX$`$dX$g$dX~O![/XO~O!_)lO$[/ZO$^)kO$`)kO$g/[O~O!]<kO!^(gX~P#BwO!^/]O~O!g)iO$g(|X~O$g/_O~Ov/`O~P!&zOx)zO(c){O(d/cO~O!S/fO~O(z$}On%ba!Q%ba'z%ba({%ba!]%ba#`%ba~Og%ba$P%ba~P#L{O({%POn%da!Q%da'z%da(z%da!]%da#`%da~Og%da$P%da~P#MnO!]fX!gfX!kfX!k${X(sfX~P!0SOp%WO![/oO!](_O(U/nO!Y(wP!Y)QP~P!1uOr*tO!b*rO!c*lO!d*lO!l*cO#[*sO%a*nO(V!lO(WTO(ZUO~Os'UO!S/pO![+^O!^*qO(f=OO!^(yP~P$ [O!k/qO~P#/sO!]/rO!g#vO(s'qO!k)PX~O!k/wO~OnoX!QoX'zoX(zoX({oX~O!g#vO!koX~P$#OOp/yO!S%hO![*_O!_%iO(U%gO!k)PP~O#l/zO~O!Y${X!]${X!g%SX~P!0SO!]/{O!Y)QX~P#/sO!g/}O~O!Y0PO~OpkO(U0QO~P.iOh%VOr0VO!g#vO!l%eO(s'qO~O!g+kO~Oa%nO!]0ZO'{%nO~O!^0]O~P!5iO!c0^O!d0^O(V!lO~P#$^Os!nO!S0_O(WTO(ZUO(f!mO~O#[0aO~Og%ba!]%ba#`%ba$P%ba~P!1WOg%da!]%da#`%da$P%da~P!1WOj%dOk%dOl%dO(U&ZOg'nX!]'nX~O!]*zOg(_a~Og0jO~On0lO#`0kOg(`a!](`a~OR0mO!Q0mO!S0nO#S$dOn}a'z}a(z}a({}a!]}a#`}a~Og}a$P}a~P$(cO!Q*PO'z*QOn$ta(z$ta({$ta!]$ta#`$ta~Og$ta$P$ta~P$)_O!Q*PO'z*QOn$va(z$va({$va!]$va#`$va~Og$va$P$va~P$*QO#l0qO~Og%Ua!]%Ua#`%Ua$P%Ua~P!1WO!g#vO~O#l0tO~O!]#iX!^#iX!g!RX#`#iX~O!]+`Oa)Ua'{)Ua~OR#zO!Q#yO!S#{O!l#xO(bVOP!ri[!rij!rir!ri!]!ri!p!ri#R!ri#o!ri#p!ri#q!ri#r!ri#s!ri#t!ri#u!ri#v!ri#w!ri#y!ri#{!ri#|!ri(s!ri(z!ri({!ri~Oa!ri'{!ri'x!ri!Y!ri!k!riv!ri!_!ri%j!ri!g!ri~P$+}Oh%VOr%XOs$tOt$tOz%YO|%ZO!O<uO!S${O!_$|O!i>WO!l$xO#k<{O$X%`O$u<wO$w<yO$z%aO(WTO(ZUO(b$uO(z$}O({%PO~Op0}O%^1OO(U0|O~P$.eO!g+kOa(^a!_(^a'{(^a!](^a~O#l1UO~O[]X!]fX!^fX~O!]1VO!^)YX~O!^1XO~O[1YO~Ob1[O(U+sO(WTO(ZUO~O!_&PO(U%gO`'vX!]'vX~O!]+xO`)Xa~O!k1_O~P!:tO[1bO~O`1cO~O#`1hO~On1kO!_$|O~O(f(}O!^)VP~Oh%VOn1tO!_1qO%j1sO~O[2OO!]1|O!^)WX~O!^2PO~O`2ROa%nO'{%nO~O(U#nO(WTO(ZUO~O#S$dO#`$eO$R$eOP(hXR(hX[(hXr(hX!Q(hX!S(hX!](hX!l(hX!p(hX#R(hX#o(hX#p(hX#q(hX#r(hX#s(hX#t(hX#u(hX#v(hX#w(hX#y(hX#{(hX#|(hX(b(hX(s(hX(z(hX({(hX~Oj2UO&]2VOa(hX~P$4OOj2UO#`$eO&]2VO~Oa2XO~P%[Oa2ZO~O&f2^OP&diQ&diS&diY&dia&did&die&dil&dip&dir&dis&dit&diz&di|&di!O&di!S&di!W&di!X&di!_&di!i&di!l&di!o&di!p&di!q&di!s&di!u&di!x&di!|&di$X&di$o&di%i&di%k&di%m&di%n&di%o&di%r&di%t&di%w&di%x&di%z&di&X&di&_&di&a&di&c&di&e&di&h&di&n&di&t&di&v&di&x&di&z&di&|&di'x&di(U&di(W&di(Z&di(b&di(p&di!^&dib&di&k&di~Ob2dO!^2bO&k2cO~P`O!_XO!l2fO~O&r,}OP&miQ&miS&miY&mia&mid&mie&mil&mip&mir&mis&mit&miz&mi|&mi!O&mi!S&mi!W&mi!X&mi!_&mi!i&mi!l&mi!o&mi!p&mi!q&mi!s&mi!u&mi!x&mi!|&mi$X&mi$o&mi%i&mi%k&mi%m&mi%n&mi%o&mi%r&mi%t&mi%w&mi%x&mi%z&mi&X&mi&_&mi&a&mi&c&mi&e&mi&h&mi&n&mi&t&mi&v&mi&x&mi&z&mi&|&mi'x&mi(U&mi(W&mi(Z&mi(b&mi(p&mi!^&mi&f&mib&mi&k&mi~O!Y2lO~O!]!aa!^!aa~P#BwOs!nO!S!oO![2qO(f!mO!]'YX!^'YX~P@nO!]-^O!^(ja~O!]'`X!^'`X~P!9|O!]-bO!^(ya~O!^2yO~P'_Oa%nO#`3SO'{%nO~Oa%nO!g#vO#`3SO'{%nO~Oa%nO!g#vO!p3WO#`3SO'{%nO(s'qO~Oa%nO'{%nO~P!:tO!]$_Ov$ra~O!Y'Xi!]'Xi~P!:tO!](WO!Y(ii~O!](_O!Y(wi~O!Y(xi!](xi~P!:tO!](ui!k(uia(ui'{(ui~P!:tO#`3YO!](ui!k(uia(ui'{(ui~O!](kO!k(ti~O!S%hO!_%iO!|]O#j3_O#k3^O(U%gO~O!S%hO!_%iO#k3^O(U%gO~On3fO!_'aO%j3eO~Oh%VOn3fO!_'aO%j3eO~O#l%baP%baR%ba[%baa%baj%bar%ba!S%ba!l%ba!p%ba#R%ba#o%ba#p%ba#q%ba#r%ba#s%ba#t%ba#u%ba#v%ba#w%ba#y%ba#{%ba#|%ba'{%ba(b%ba(s%ba!k%ba!Y%ba'x%bav%ba!_%ba%j%ba!g%ba~P#L{O#l%daP%daR%da[%daa%daj%dar%da!S%da!l%da!p%da#R%da#o%da#p%da#q%da#r%da#s%da#t%da#u%da#v%da#w%da#y%da#{%da#|%da'{%da(b%da(s%da!k%da!Y%da'x%dav%da!_%da%j%da!g%da~P#MnO#l%baP%baR%ba[%baa%baj%bar%ba!S%ba!]%ba!l%ba!p%ba#R%ba#o%ba#p%ba#q%ba#r%ba#s%ba#t%ba#u%ba#v%ba#w%ba#y%ba#{%ba#|%ba'{%ba(b%ba(s%ba!k%ba!Y%ba'x%ba#`%bav%ba!_%ba%j%ba!g%ba~P#/sO#l%daP%daR%da[%daa%daj%dar%da!S%da!]%da!l%da!p%da#R%da#o%da#p%da#q%da#r%da#s%da#t%da#u%da#v%da#w%da#y%da#{%da#|%da'{%da(b%da(s%da!k%da!Y%da'x%da#`%dav%da!_%da%j%da!g%da~P#/sO#l}aP}a[}aa}aj}ar}a!l}a!p}a#R}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#w}a#y}a#{}a#|}a'{}a(b}a(s}a!k}a!Y}a'x}av}a!_}a%j}a!g}a~P$(cO#l$taP$taR$ta[$taa$taj$tar$ta!S$ta!l$ta!p$ta#R$ta#o$ta#p$ta#q$ta#r$ta#s$ta#t$ta#u$ta#v$ta#w$ta#y$ta#{$ta#|$ta'{$ta(b$ta(s$ta!k$ta!Y$ta'x$tav$ta!_$ta%j$ta!g$ta~P$)_O#l$vaP$vaR$va[$vaa$vaj$var$va!S$va!l$va!p$va#R$va#o$va#p$va#q$va#r$va#s$va#t$va#u$va#v$va#w$va#y$va#{$va#|$va'{$va(b$va(s$va!k$va!Y$va'x$vav$va!_$va%j$va!g$va~P$*QO#l%UaP%UaR%Ua[%Uaa%Uaj%Uar%Ua!S%Ua!]%Ua!l%Ua!p%Ua#R%Ua#o%Ua#p%Ua#q%Ua#r%Ua#s%Ua#t%Ua#u%Ua#v%Ua#w%Ua#y%Ua#{%Ua#|%Ua'{%Ua(b%Ua(s%Ua!k%Ua!Y%Ua'x%Ua#`%Uav%Ua!_%Ua%j%Ua!g%Ua~P#/sOa#cq!]#cq'{#cq'x#cq!Y#cq!k#cqv#cq!_#cq%j#cq!g#cq~P!:tO![3nO!]'ZX!k'ZX~P%[O!].vO!k(la~O!].vO!k(la~P!:tO!Y3qO~O$P!na!^!na~PKlO$P!ja!]!ja!^!ja~P#BwO$P!ra!^!ra~P!=aO$P!ta!^!ta~P!?wOg'^X!]'^X~P!,TO!]/ROg(qa~OSfO!_4VO$e4WO~O!^4[O~Ov4]O~P#/sOa$nq!]$nq'{$nq'x$nq!Y$nq!k$nqv$nq!_$nq%j$nq!g$nq~P!:tO!Y4_O~P!&zO!S4`O~O!Q*PO'z*QO({%POn'ja(z'ja!]'ja#`'ja~Og'ja$P'ja~P%-tO!Q*PO'z*QOn'la(z'la({'la!]'la#`'la~Og'la$P'la~P%.gO(s$YO~P#/sO!YfX!Y${X!]fX!]${X!g%SX#`fX~P!0SOp%WO(U=XO~P!1uOp4dO!S%hO![4cO!_%iO(U%gO!]'fX!k'fX~O!]/rO!k)Pa~O!]/rO!g#vO!k)Pa~O!]/rO!g#vO(s'qO!k)Pa~Og$}i!]$}i#`$}i$P$}i~P!1WO![4lO!Y'hX!]'hX~P!3tO!]/{O!Y)Qa~O!]/{O!Y)Qa~P#/sOP]XR]X[]Xj]Xr]X!Q]X!S]X!Y]X!]]X!l]X!p]X#R]X#S]X#`]X#lfX#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#w]X#y]X#{]X#|]X$R]X(b]X(s]X(z]X({]X~Oj%ZX!g%ZX~P%2^Oj4qO!g#vO~Oh%VO!g#vO!l%eO~Oh%VOr4vO!l%eO(s'qO~Or4{O!g#vO(s'qO~Os!nO!S4|O(WTO(ZUO(f!mO~O(z$}On%bi!Q%bi'z%bi({%bi!]%bi#`%bi~Og%bi$P%bi~P%5}O({%POn%di!Q%di'z%di(z%di!]%di#`%di~Og%di$P%di~P%6pOg(`i!](`i~P!1WO#`5SOg(`i!](`i~P!1WO!k5XO~Oa$pq!]$pq'{$pq'x$pq!Y$pq!k$pqv$pq!_$pq%j$pq!g$pq~P!:tO!Y5]O~O!]5^O!_)RX~P#/sOa${X!_${X%_]X'{${X!]${X~P!0SO%_5aOaoX!_oX'{oX!]oX~P$#OOp5bO(U#nO~O%_5aO~Ob5hO%k5iO(U+sO(WTO(ZUO!]'uX!^'uX~O!]1VO!^)Ya~O[5mO~O`5nO~O[5rO~Oa%nO'{%nO~P#/sO!]5wO#`5yO!^)VX~O!^5zO~Or6QOs!nO!S*jO!b!yO!c!vO!d!vO!|<XO#T!pO#U!pO#V!pO#W!pO#X!pO#[6PO#]!zO(V!lO(WTO(ZUO(f!mO(p!sO~O!^6OO~P%;sOn6VO!_1qO%j6UO~Oh%VOn6VO!_1qO%j6UO~Ob6^O(U#nO(WTO(ZUO!]'tX!^'tX~O!]1|O!^)Wa~O(WTO(ZUO(f6`O~O`6dO~Oj6gO&]6hO~PNXO!k6iO~P%[Oa6kO~Oa6kO~P%[Ob2dO!^6pO&k2cO~P`O!g6rO~O!g6tOh(ki!](ki!^(ki!g(ki!l(kir(ki(s(ki~O#`6uO!]#hi!^#hi~O!]!ai!^!ai~P#BwO!]#hi!^#hi~P#BwOa%nO#`7OO'{%nO~Oa%nO!g#vO#`7OO'{%nO~O!](uq!k(uqa(uq'{(uq~P!:tO!](kO!k(tq~O!S%hO!_%iO#k7VO(U%gO~O!_'aO%j7YO~On7^O!_'aO%j7YO~O#l'jaP'jaR'ja['jaa'jaj'jar'ja!S'ja!l'ja!p'ja#R'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#w'ja#y'ja#{'ja#|'ja'{'ja(b'ja(s'ja!k'ja!Y'ja'x'jav'ja!_'ja%j'ja!g'ja~P%-tO#l'laP'laR'la['laa'laj'lar'la!S'la!l'la!p'la#R'la#o'la#p'la#q'la#r'la#s'la#t'la#u'la#v'la#w'la#y'la#{'la#|'la'{'la(b'la(s'la!k'la!Y'la'x'lav'la!_'la%j'la!g'la~P%.gO#l$}iP$}iR$}i[$}ia$}ij$}ir$}i!S$}i!]$}i!l$}i!p$}i#R$}i#o$}i#p$}i#q$}i#r$}i#s$}i#t$}i#u$}i#v$}i#w$}i#y$}i#{$}i#|$}i'{$}i(b$}i(s$}i!k$}i!Y$}i'x$}i#`$}iv$}i!_$}i%j$}i!g$}i~P#/sO#l%biP%biR%bi[%bia%bij%bir%bi!S%bi!l%bi!p%bi#R%bi#o%bi#p%bi#q%bi#r%bi#s%bi#t%bi#u%bi#v%bi#w%bi#y%bi#{%bi#|%bi'{%bi(b%bi(s%bi!k%bi!Y%bi'x%biv%bi!_%bi%j%bi!g%bi~P%5}O#l%diP%diR%di[%dia%dij%dir%di!S%di!l%di!p%di#R%di#o%di#p%di#q%di#r%di#s%di#t%di#u%di#v%di#w%di#y%di#{%di#|%di'{%di(b%di(s%di!k%di!Y%di'x%div%di!_%di%j%di!g%di~P%6pO!]'Za!k'Za~P!:tO!].vO!k(li~O$P#ci!]#ci!^#ci~P#BwOP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(bVO[#nij#nir#ni#R#ni#p#ni#q#ni#r#ni#s#ni#t#ni#u#ni#v#ni#w#ni#y#ni#{#ni#|#ni$P#ni(s#ni(z#ni({#ni!]#ni!^#ni~O#o#ni~P%NrO#o<aO~P%NrOP$[OR#zOr<mO!Q#yO!S#{O!l#xO!p$[O#o<aO#p<bO#q<bO#r<bO(bVO[#nij#ni#R#ni#t#ni#u#ni#v#ni#w#ni#y#ni#{#ni#|#ni$P#ni(s#ni(z#ni({#ni!]#ni!^#ni~O#s#ni~P&!zO#s<cO~P&!zOP$[OR#zO[<oOj<dOr<mO!Q#yO!S#{O!l#xO!p$[O#R<dO#o<aO#p<bO#q<bO#r<bO#s<cO#t<dO#u<dO#v<nO(bVO#y#ni#{#ni#|#ni$P#ni(s#ni(z#ni({#ni!]#ni!^#ni~O#w#ni~P&%SOP$[OR#zO[<oOj<dOr<mO!Q#yO!S#{O!l#xO!p$[O#R<dO#o<aO#p<bO#q<bO#r<bO#s<cO#t<dO#u<dO#v<nO#w<eO(bVO({#}O#{#ni#|#ni$P#ni(s#ni(z#ni!]#ni!^#ni~O#y<gO~P&'TO#y#ni~P&'TO#w<eO~P&%SOP$[OR#zO[<oOj<dOr<mO!Q#yO!S#{O!l#xO!p$[O#R<dO#o<aO#p<bO#q<bO#r<bO#s<cO#t<dO#u<dO#v<nO#w<eO#y<gO(bVO(z#|O({#}O#|#ni$P#ni(s#ni!]#ni!^#ni~O#{#ni~P&)dO#{<iO~P&)dOa#}y!]#}y'{#}y'x#}y!Y#}y!k#}yv#}y!_#}y%j#}y!g#}y~P!:tO[#nij#nir#ni#R#ni#s#ni#t#ni#u#ni#v#ni#w#ni#y#ni#{#ni#|#ni$P#ni(s#ni!]#ni!^#ni~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#o<aO#p<bO#q<bO#r<bO(bVO(z#ni({#ni~P&,`On>_O!Q*PO'z*QO(z$}O({%POP#niR#ni!S#ni!l#ni!p#ni#o#ni#p#ni#q#ni#r#ni(b#ni~P&,`O#S$dOP(aXR(aX[(aXj(aXn(aXr(aX!Q(aX!S(aX!l(aX!p(aX#R(aX#o(aX#p(aX#q(aX#r(aX#s(aX#t(aX#u(aX#v(aX#w(aX#y(aX#{(aX#|(aX$P(aX'z(aX(b(aX(s(aX(z(aX({(aX!](aX!^(aX~O$P$Qi!]$Qi!^$Qi~P#BwO$P!ri!^!ri~P$+}Og'^a!]'^a~P!1WO!^7pO~O!]'ea!^'ea~P#BwO!Y7qO~P#/sO!g#vO(s'qO!]'fa!k'fa~O!]/rO!k)Pi~O!]/rO!g#vO!k)Pi~Og$}q!]$}q#`$}q$P$}q~P!1WO!Y'ha!]'ha~P#/sO!g7xO~O!]/{O!Y)Qi~P#/sO!]/{O!Y)Qi~O!Y7{O~Oh%VOr8QO!l%eO(s'qO~Oj8SO!g#vO~Or8VO!g#vO(s'qO~O!Q*PO'z*QO({%POn'ka(z'ka!]'ka#`'ka~Og'ka$P'ka~P&5aO!Q*PO'z*QOn'ma(z'ma({'ma!]'ma#`'ma~Og'ma$P'ma~P&6SOg(`q!](`q~P!1WO#`8XOg(`q!](`q~P!1WO!Y8YO~Og%Pq!]%Pq#`%Pq$P%Pq~P!1WOa$py!]$py'{$py'x$py!Y$py!k$pyv$py!_$py%j$py!g$py~P!:tO!g6tO~O!]5^O!_)Ra~O!_'aOP$UaR$Ua[$Uaj$Uar$Ua!Q$Ua!S$Ua!]$Ua!l$Ua!p$Ua#R$Ua#o$Ua#p$Ua#q$Ua#r$Ua#s$Ua#t$Ua#u$Ua#v$Ua#w$Ua#y$Ua#{$Ua#|$Ua(b$Ua(s$Ua(z$Ua({$Ua~O%j7YO~P&8tO%_8^Oa%]i!_%]i'{%]i!]%]i~Oa#cy!]#cy'{#cy'x#cy!Y#cy!k#cyv#cy!_#cy%j#cy!g#cy~P!:tO[8`O~Ob8bO(U+sO(WTO(ZUO~O!]1VO!^)Yi~O`8fO~O(f(}O!]'qX!^'qX~O!]5wO!^)Va~O!^8pO~P%;sO(p!sO~P$&YO#[8qO~O!_1qO~O!_1qO%j8sO~On8vO!_1qO%j8sO~O[8{O!]'ta!^'ta~O!]1|O!^)Wi~O!k9PO~O!k9QO~O!k9TO~O!k9TO~P%[Oa9VO~O!g9WO~O!k9XO~O!](xi!^(xi~P#BwOa%nO#`9aO'{%nO~O!](uy!k(uya(uy'{(uy~P!:tO!](kO!k(ty~O%j9dO~P&8tO!_'aO%j9dO~O#l$}qP$}qR$}q[$}qa$}qj$}qr$}q!S$}q!]$}q!l$}q!p$}q#R$}q#o$}q#p$}q#q$}q#r$}q#s$}q#t$}q#u$}q#v$}q#w$}q#y$}q#{$}q#|$}q'{$}q(b$}q(s$}q!k$}q!Y$}q'x$}q#`$}qv$}q!_$}q%j$}q!g$}q~P#/sO#l'kaP'kaR'ka['kaa'kaj'kar'ka!S'ka!l'ka!p'ka#R'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#w'ka#y'ka#{'ka#|'ka'{'ka(b'ka(s'ka!k'ka!Y'ka'x'kav'ka!_'ka%j'ka!g'ka~P&5aO#l'maP'maR'ma['maa'maj'mar'ma!S'ma!l'ma!p'ma#R'ma#o'ma#p'ma#q'ma#r'ma#s'ma#t'ma#u'ma#v'ma#w'ma#y'ma#{'ma#|'ma'{'ma(b'ma(s'ma!k'ma!Y'ma'x'mav'ma!_'ma%j'ma!g'ma~P&6SO#l%PqP%PqR%Pq[%Pqa%Pqj%Pqr%Pq!S%Pq!]%Pq!l%Pq!p%Pq#R%Pq#o%Pq#p%Pq#q%Pq#r%Pq#s%Pq#t%Pq#u%Pq#v%Pq#w%Pq#y%Pq#{%Pq#|%Pq'{%Pq(b%Pq(s%Pq!k%Pq!Y%Pq'x%Pq#`%Pqv%Pq!_%Pq%j%Pq!g%Pq~P#/sO!]'Zi!k'Zi~P!:tO$P#cq!]#cq!^#cq~P#BwO(z$}OP%baR%ba[%baj%bar%ba!S%ba!l%ba!p%ba#R%ba#o%ba#p%ba#q%ba#r%ba#s%ba#t%ba#u%ba#v%ba#w%ba#y%ba#{%ba#|%ba$P%ba(b%ba(s%ba!]%ba!^%ba~On%ba!Q%ba'z%ba({%ba~P&JXO({%POP%daR%da[%daj%dar%da!S%da!l%da!p%da#R%da#o%da#p%da#q%da#r%da#s%da#t%da#u%da#v%da#w%da#y%da#{%da#|%da$P%da(b%da(s%da!]%da!^%da~On%da!Q%da'z%da(z%da~P&L`On>_O!Q*PO'z*QO({%PO~P&JXOn>_O!Q*PO'z*QO(z$}O~P&L`OR0mO!Q0mO!S0nO#S$dOP}a[}aj}an}ar}a!l}a!p}a#R}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#w}a#y}a#{}a#|}a$P}a'z}a(b}a(s}a(z}a({}a!]}a!^}a~O!Q*PO'z*QOP$taR$ta[$taj$tan$tar$ta!S$ta!l$ta!p$ta#R$ta#o$ta#p$ta#q$ta#r$ta#s$ta#t$ta#u$ta#v$ta#w$ta#y$ta#{$ta#|$ta$P$ta(b$ta(s$ta(z$ta({$ta!]$ta!^$ta~O!Q*PO'z*QOP$vaR$va[$vaj$van$var$va!S$va!l$va!p$va#R$va#o$va#p$va#q$va#r$va#s$va#t$va#u$va#v$va#w$va#y$va#{$va#|$va$P$va(b$va(s$va(z$va({$va!]$va!^$va~On>_O!Q*PO'z*QO(z$}O({%PO~OP%UaR%Ua[%Uaj%Uar%Ua!S%Ua!l%Ua!p%Ua#R%Ua#o%Ua#p%Ua#q%Ua#r%Ua#s%Ua#t%Ua#u%Ua#v%Ua#w%Ua#y%Ua#{%Ua#|%Ua$P%Ua(b%Ua(s%Ua!]%Ua!^%Ua~P''eO$P$nq!]$nq!^$nq~P#BwO$P$pq!]$pq!^$pq~P#BwO!^9qO~O$P9rO~P!1WO!g#vO!]'fi!k'fi~O!g#vO(s'qO!]'fi!k'fi~O!]/rO!k)Pq~O!Y'hi!]'hi~P#/sO!]/{O!Y)Qq~Or9yO!g#vO(s'qO~O[9{O!Y9zO~P#/sO!Y9zO~Oj:RO!g#vO~Og(`y!](`y~P!1WO!]'oa!_'oa~P#/sOa%]q!_%]q'{%]q!]%]q~P#/sO[:WO~O!]1VO!^)Yq~O`:[O~O#`:]O!]'qa!^'qa~O!]5wO!^)Vi~P#BwO!S:_O~O!_1qO%j:bO~O(WTO(ZUO(f:gO~O!]1|O!^)Wq~O!k:jO~O!k:kO~O!k:lO~O!k:lO~P%[O#`:oO!]#hy!^#hy~O!]#hy!^#hy~P#BwO%j:tO~P&8tO!_'aO%j:tO~O$P#}y!]#}y!^#}y~P#BwOP$}iR$}i[$}ij$}ir$}i!S$}i!l$}i!p$}i#R$}i#o$}i#p$}i#q$}i#r$}i#s$}i#t$}i#u$}i#v$}i#w$}i#y$}i#{$}i#|$}i$P$}i(b$}i(s$}i!]$}i!^$}i~P''eO!Q*PO'z*QO({%POP'jaR'ja['jaj'jan'jar'ja!S'ja!l'ja!p'ja#R'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#w'ja#y'ja#{'ja#|'ja$P'ja(b'ja(s'ja(z'ja!]'ja!^'ja~O!Q*PO'z*QOP'laR'la['laj'lan'lar'la!S'la!l'la!p'la#R'la#o'la#p'la#q'la#r'la#s'la#t'la#u'la#v'la#w'la#y'la#{'la#|'la$P'la(b'la(s'la(z'la({'la!]'la!^'la~O(z$}OP%biR%bi[%bij%bin%bir%bi!Q%bi!S%bi!l%bi!p%bi#R%bi#o%bi#p%bi#q%bi#r%bi#s%bi#t%bi#u%bi#v%bi#w%bi#y%bi#{%bi#|%bi$P%bi'z%bi(b%bi(s%bi({%bi!]%bi!^%bi~O({%POP%diR%di[%dij%din%dir%di!Q%di!S%di!l%di!p%di#R%di#o%di#p%di#q%di#r%di#s%di#t%di#u%di#v%di#w%di#y%di#{%di#|%di$P%di'z%di(b%di(s%di(z%di!]%di!^%di~O$P$py!]$py!^$py~P#BwO$P#cy!]#cy!^#cy~P#BwO!g#vO!]'fq!k'fq~O!]/rO!k)Py~O!Y'hq!]'hq~P#/sOr;OO!g#vO(s'qO~O[;SO!Y;RO~P#/sO!Y;RO~Og(`!R!](`!R~P!1WOa%]y!_%]y'{%]y!]%]y~P#/sO!]1VO!^)Yy~O!]5wO!^)Vq~O(U;ZO~O!_1qO%j;^O~O!k;aO~O%j;fO~P&8tOP$}qR$}q[$}qj$}qr$}q!S$}q!l$}q!p$}q#R$}q#o$}q#p$}q#q$}q#r$}q#s$}q#t$}q#u$}q#v$}q#w$}q#y$}q#{$}q#|$}q$P$}q(b$}q(s$}q!]$}q!^$}q~P''eO!Q*PO'z*QO({%POP'kaR'ka['kaj'kan'kar'ka!S'ka!l'ka!p'ka#R'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#w'ka#y'ka#{'ka#|'ka$P'ka(b'ka(s'ka(z'ka!]'ka!^'ka~O!Q*PO'z*QOP'maR'ma['maj'man'mar'ma!S'ma!l'ma!p'ma#R'ma#o'ma#p'ma#q'ma#r'ma#s'ma#t'ma#u'ma#v'ma#w'ma#y'ma#{'ma#|'ma$P'ma(b'ma(s'ma(z'ma({'ma!]'ma!^'ma~OP%PqR%Pq[%Pqj%Pqr%Pq!S%Pq!l%Pq!p%Pq#R%Pq#o%Pq#p%Pq#q%Pq#r%Pq#s%Pq#t%Pq#u%Pq#v%Pq#w%Pq#y%Pq#{%Pq#|%Pq$P%Pq(b%Pq(s%Pq!]%Pq!^%Pq~P''eOg%f!Z!]%f!Z#`%f!Z$P%f!Z~P!1WO!Y;jO~P#/sOr;kO!g#vO(s'qO~O[;mO!Y;jO~P#/sO!]'qq!^'qq~P#BwO!]#h!Z!^#h!Z~P#BwO#l%f!ZP%f!ZR%f!Z[%f!Za%f!Zj%f!Zr%f!Z!S%f!Z!]%f!Z!l%f!Z!p%f!Z#R%f!Z#o%f!Z#p%f!Z#q%f!Z#r%f!Z#s%f!Z#t%f!Z#u%f!Z#v%f!Z#w%f!Z#y%f!Z#{%f!Z#|%f!Z'{%f!Z(b%f!Z(s%f!Z!k%f!Z!Y%f!Z'x%f!Z#`%f!Zv%f!Z!_%f!Z%j%f!Z!g%f!Z~P#/sOr;vO!g#vO(s'qO~O!Y;wO~P#/sOr<OO!g#vO(s'qO~O!Y<PO~P#/sOP%f!ZR%f!Z[%f!Zj%f!Zr%f!Z!S%f!Z!l%f!Z!p%f!Z#R%f!Z#o%f!Z#p%f!Z#q%f!Z#r%f!Z#s%f!Z#t%f!Z#u%f!Z#v%f!Z#w%f!Z#y%f!Z#{%f!Z#|%f!Z$P%f!Z(b%f!Z(s%f!Z!]%f!Z!^%f!Z~P''eOr<SO!g#vO(s'qO~Ov(gX~P1qO!Q%rO~P!)[O(V!lO~P!)[O!YfX!]fX#`fX~P%2^OP]XR]X[]Xj]Xr]X!Q]X!S]X!]]X!]fX!l]X!p]X#R]X#S]X#`]X#`fX#lfX#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#w]X#y]X#{]X#|]X$R]X(b]X(s]X(z]X({]X~O!gfX!k]X!kfX(sfX~P'LcOP<WOQ<WOSfOd>SOe!iOpkOr<WOskOtkOzkO|<WO!O<WO!SWO!WkO!XkO!_XO!i<ZO!lZO!o<WO!p<WO!q<WO!s<[O!u<_O!x!hO$X!kO$o>QO(U)^O(WTO(ZUO(bVO(p[O~O!]<kO!^$ra~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<vO!S${O!_$|O!i>XO!l$xO#k<|O$X%`O$u<xO$w<zO$z%aO(U(wO(WTO(ZUO(b$uO(z$}O({%PO~Ol)eO~P(#XOr!eX(s!eX~P#!nO!^]X!^fX~P'LcO!YfX!Y${X!]fX!]${X#`fX~P!0SO#l<`O~O!g#vO#l<`O~O#`<pO~Oj<dO~O#`=PO!](xX!^(xX~O#`<pO!](vX!^(vX~O#l=QO~Og=SO~P!1WO#l=YO~O#l=ZO~Og=SO(U&ZO~O!g#vO#l=[O~O!g#vO#l=QO~O$P=]O~P#BwO#l=^O~O#l=_O~O#l=dO~O#l=eO~O#l=fO~O#l=gO~O$P=hO~P!1WO$P=iO~P!1WOl=tO~P7eOk#S#T#U#W#X#[#j#k#v$o$u$w$z%^%_%i%j%k%r%t%w%x%z%|~(PT#p!X'}(V#qs#o#rr!Q(O$^(U$`(f~",goto:"$9_)^PPPPPP)_PP)bP)sP+X/^PPPP6lPP7SPP=PPPP@sPA]PA]PPPA]PCePA]PA]PA]PCiPCnPD]PIVPPPIZPPPPIZL^PPPLdMUPIZPIZPP! dIZPPPIZPIZP!#kIZP!'R!(W!(aP!)T!)X!)T!,fPPPPPPP!-V!(WPP!-g!/XP!2hIZIZ!2m!5y!:g!:g!>f!>nPPP!>tIZPPPPPPPPP!BTP!CbPPIZ!DsPIZPIZIZIZIZIZPIZ!FVP!IaP!LgP!Lk!Lu!Ly!LyP!I^P!L}!L}P#!TP#!XIZPIZ#!_#%dCiA]PA]PA]A]P#&qA]A]#)TA]#+{A]#.XA]A]#.w#1]#1]#1b#1k#1]#1vPP#1]PA]#2`A]#6_A]A]6lPPP#:dPPP#:}#:}P#:}P#;e#:}PP#;kP#;bP#;b#<O#;b#<j#<p#<s)bP#<v)bP#=P#=P#=PP)bP)bP)bP)bPP)bP#=V#=YP#=Y)bP#=^P#=aP)bP)bP)bP)bP)bP)b)bPP#=g#=m#=x#>O#>U#>[#>b#>p#>v#?Q#?W#?b#?h#?x#@O#@p#AS#AY#A`#An#BT#Cx#DW#D_#Ey#FX#Gy#HX#H_#He#Hk#Hu#H{#IR#I]#Io#IuPPPPPPPPPPP#I{PPPPPPP#Jp#M}$ g$ n$ vPPP$'bP$'k$*d$0}$1Q$1T$2S$2V$2^$2fP$2l$2oP$3]$3a$4X$5g$5l$6SPP$6X$6_$6c$6f$6j$6n$7j$8R$8j$8n$8q$8t$9O$9R$9V$9ZR!|RoqOXst!Z#d%m&r&t&u&w,u,z2^2aY!vQ'a-g1q5}Q%tvQ%|yQ&T|Q&j!VS'W!e-^Q'g!iS'm!r!yU*l$|*[*pQ+q%}S,O&V&WQ,f&dQ-e'`Q-o'hQ-w'nQ0^*rQ1d,QQ1{,gR<}<[%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'c's(U(W(^(e(y({)P*O*j+Y+_,r,u,z-k-s.R.X.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3n4|6V6g6h6k7O8v9V9aS#q]<X!r)`$Z$n'X)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TU+Q%]<u<vQ+v&PQ,h&gQ,o&oQ0z+iQ1P+kQ1[+wQ2T,mQ3b.iQ5b1OQ5h1VQ6^1|Q7[3fQ8b5iR9g7^'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>T!S!nQ!r!v!y!z$|'W'`'a'm'n'o*l*p*r*s-^-e-g-w0^0a1q5}6P%[$ti#v$b$c$d$x${%O%Q%^%_%c)z*S*U*W*Z*b*h*x*y+h+k,U,X.h/R/f/o/z/{/}0b0d0k0l0q1h1k1s3e4`4a4l4q5S5^5a6U7Y7x8S8X8^8s9d9r9{:R:b:t;S;^;f;m<n<o<q<r<s<t<w<x<y<z<{<|=T=U=V=W=Y=Z=^=_=`=a=b=c=d=e=h=i>Q>Y>Z>^>_Q&X|S'U!e*[S']%i-bQ+v&PQ,R&WQ,h&gQ0p+TQ1[+wQ1a+}Q2S,lQ2T,mQ5h1VQ5q1cQ6^1|Q6a2OQ6b2RQ8b5iQ8e5nQ9O6dQ:Z8fQ:h8{R;X:[rnOXst!V!Z#d%m&i&r&t&u&w,u,z2^2aR,j&k&z^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'c's(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>S>T[#]WZ#W#Z'X(U!b%jm#h#i#l$x%e%h(_(i(j(k*Z*_*c+[+^+`,q-W.V.].^._.a/o/r2f3^3_4c6t7VQ%wxQ%{yW&Q|&V&W,QQ&_!TQ'd!hQ'f!iQ(r#sS+p%|%}Q+t&PQ,a&bQ,e&dS-n'g'hQ.k(sQ1T+qQ1Z+wQ1]+xQ1`+|Q1v,bS1z,f,gQ3O-oQ5g1VQ5k1YQ5p1bQ6]1{Q8a5iQ8d5mQ8h5rQ:V8`R;V:W!U$zi$d%O%Q%^%_%c*S*U*b*x*y/R/z0b0d0k0l0q4a5S8X9r>Q>Y>Z!^%yy!i!u%{%|%}'V'f'g'h'l'v*k+p+q-Z-n-o-v0T0W1T2w3O3V4t4u4x8P9}Q+j%wQ,V&[Q,Y&]Q,d&dQ.j(rQ1u,aU1y,e,f,gQ3g.kQ6W1vS6[1z1{Q8z6]#f>U#v$b$c$x${)z*W*Z*h+h+k,U,X.h/f/o/{/}1h1k1s3e4`4l4q5^5a6U7Y7x8S8^8s9d9{:R:b:t;S;^;f;m<q<s<w<y<{=T=V=Y=^=`=b=d=h>^>_o>V<n<o<r<t<x<z<|=U=W=Z=_=a=c=e=iW%Ti%V*z>QS&[!Q&iQ&]!RQ&^!SU+O%[%d=tR,T&Y%]%Si#v$b$c$d$x${%O%Q%^%_%c)z*S*U*W*Z*b*h*x*y+h+k,U,X.h/R/f/o/z/{/}0b0d0k0l0q1h1k1s3e4`4a4l4q5S5^5a6U7Y7x8S8X8^8s9d9r9{:R:b:t;S;^;f;m<n<o<q<r<s<t<w<x<y<z<{<|=T=U=V=W=Y=Z=^=_=`=a=b=c=d=e=h=i>Q>Y>Z>^>_T){$u)|V+Q%]<u<vW']!e%i*[-bS)O#y#zQ+e%rQ+{&SS.d(n(oQ1l,ZQ5V0mR8k5w'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>T$i$^c#Y#e%q%s%u(T(Z(u(z)S)T)U)V)W)X)Y)Z)[)])_)a)c)h)r+f+z-[-z.P.U.W.u.x.|/O/P/Q/d0r2o2t3Q3X3m3r3s3t3u3v3w3x3y3z3{3|3}4O4R4S4Z5Z5e6w6}7S7c7d7m7n8m9Z9_9i9o9p:q;Y;b<Y=wT#TV#U'RkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TQ'Y!eR2r-^!W!nQ!e!r!v!y!z$|'W'`'a'm'n'o*[*l*p*r*s-^-e-g-w0^0a1q5}6PR1n,]nqOXst!Z#d%m&r&t&u&w,u,z2^2aQ&y!^Q'w!xS(t#u<`Q+n%zQ,_&_Q,`&aQ-l'eQ-y'pS.t(y=QS0s+Y=[Q1R+oQ1p,^Q2e,|Q2g,}Q2n-XQ2|-mQ3P-qS5[0t=fQ5c1SS5f1U=gQ6v2pQ6z2}Q7P3UQ8_5dQ9[6xQ9]6{Q9`7QR:n9X$d$]c#Y#e%s%u(T(Z(u(z)S)T)U)V)W)X)Y)Z)[)])_)a)c)h)r+f+z-[-z.P.U.W.u.x.|/P/Q/d0r2o2t3Q3X3m3r3s3t3u3v3w3x3y3z3{3|3}4O4R4S4Z5Z5e6w6}7S7c7d7m7n8m9Z9_9i9o9p:q;Y;b<Y=wS(p#p'jQ)Q#zS+d%q/OS.e(o(qR3`.f'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TS#q]<XQ&t!XQ&u!YQ&w![Q&x!]R2],xQ'b!hQ+g%wQ-j'dS.g(r+jQ2z-iW3d.j.k0y0{Q6y2{W7W3a3c3g5`U9c7X7Z7]U:s9e9f9hS;d:r:uQ;r;eR;z;sU!wQ'a-gT5{1q5}!Q_OXZ`st!V!Z#d#h%e%m&i&k&r&t&u&w(k,u,z.^2^2a]!pQ!r'a-g1q5}T#q]<X%^{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'c's(U(W(^(e(y({)P*O*j+Y+_+i,r,u,z-k-s.R.X.i.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3f3n4|6V6g6h6k7O7^8v9V9aS)O#y#zS.d(n(o!s=m$Z$n'X)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TU$fd)`,oS(q#p'jU*w%R(x4QU0o+P.p7iQ5`0zQ7X3bQ9f7[R:u9gm!tQ!r!v!y!z'a'm'n'o-g-w1q5}6PQ'u!uS(g#g2WS-u'l'xQ/u*^Q0T*kQ3W-xQ4h/vQ4t0VQ4u0WQ4z0`Q7t4bS8P4v4xS8T4{4}Q9t7uQ9x7{Q9}8QQ:S8VS:}9y9zS;i;O;RS;u;j;kS;};v;wS<R<O<PR<U<SQ#wbQ't!uS(f#g2WS(h#m+XQ+Z%fQ+l%xQ+r&OU-t'l'u'xQ.Y(gU/t*^*a/yQ0U*kQ0X*mQ1Q+mQ1w,cS3T-u-xQ3].bS4g/u/vQ4p0RS4s0T0`Q4w0YQ6Y1xQ7R3WS7s4b4dQ7w4hU8O4t4z4}Q8R4yQ8x6ZS9s7t7uQ9w7{Q:P8TQ:Q8UQ:e8yQ:{9tS:|9x9zQ;U:SQ;`:fS;h:};RS;t;i;jS;|;u;wS<Q;}<PQ<T<RQ<V<UQ=p=kQ=|=uR=}=vV!wQ'a-g%^aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'c's(U(W(^(e(y({)P*O*j+Y+_+i,r,u,z-k-s.R.X.i.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3f3n4|6V6g6h6k7O7^8v9V9aS#wz!j!r=j$Z$n'X)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TR=p>S%^bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'c's(U(W(^(e(y({)P*O*j+Y+_+i,r,u,z-k-s.R.X.i.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3f3n4|6V6g6h6k7O7^8v9V9aQ%fj!^%xy!i!u%{%|%}'V'f'g'h'l'v*k+p+q-Z-n-o-v0T0W1T2w3O3V4t4u4x8P9}S&Oz!jQ+m%yQ,c&dW1x,d,e,f,gU6Z1y1z1{S8y6[6]Q:f8z!r=k$Z$n'X)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TQ=u>RR=v>S%QeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'c's(W(^(e(y({)P*O*j+Y+_+i,r,u,z-k-s.R.X.i.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3f3n4|6V6g6h6k7O7^8v9V9aY#bWZ#W#Z(U!b%jm#h#i#l$x%e%h(_(i(j(k*Z*_*c+[+^+`,q-W.V.].^._.a/o/r2f3^3_4c6t7VQ,p&o!p=l$Z$n)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TR=o'XU'^!e%i*[R2u-bX'[!e%i*[-b%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{'T'c's(U(W(^(e(y({)P*O*j+Y+_,r,u,z-k-s.R.X.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3n4|6V6g6h6k7O8v9V9a!r)`$Z$n'X)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TQ,o&oQ0z+iQ3b.iQ7[3fR9g7^!b$Tc#Y%q(T(Z(u(z)[)])a)h+z-z.P.U.W.u.x/d0r3Q3X3m3}5Z5e6}7S7c9_:q<Y!P<f)_)r-[/O2o2t3r3{3|4R4Z6w7d7m7n8m9Z9i9o9p;Y;b=w!f$Vc#Y%q(T(Z(u(z)X)Y)[)])a)h+z-z.P.U.W.u.x/d0r3Q3X3m3}5Z5e6}7S7c9_:q<Y!T<h)_)r-[/O2o2t3r3x3y3{3|4R4Z6w7d7m7n8m9Z9i9o9p;Y;b=w!^$Zc#Y%q(T(Z(u(z)a)h+z-z.P.U.W.u.x/d0r3Q3X3m3}5Z5e6}7S7c9_:q<YQ4a/mz>T)_)r-[/O2o2t3r4R4Z6w7d7m7n8m9Z9i9o9p;Y;b=wQ>Y>[R>Z>]'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TS$oh$pR4W/W'XgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/W/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TT$kf$qQ$ifS)k$l)oR)w$qT$jf$qT)m$l)o'XhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{'T'X'c's(U(W(^(e(y({)P)t*O*j+Y+_+i,r,u,z-Y-a-k-s.R.X.i.v.}/W/X/p0_0n0t1U1t2U2V2X2Z2^2a2c2q3S3Y3f3n4V4|5y6V6g6h6k6u7O7^8v9V9a:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>TT$oh$pQ$rhR)v$p%^jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{'T'c's(U(W(^(e(y({)P*O*j+Y+_+i,r,u,z-k-s.R.X.i.v.}/p0_0n0t1U1t2U2V2X2Z2^2a2c3S3Y3f3n4|6V6g6h6k7O7^8v9V9a!s>R$Z$n'X)t-Y-a/X2q4V5y6u:]:o<W<Z<[<_<`<a<b<c<d<e<f<g<h<i<j<k<m<p<}=P=Q=S=[=]=f=g>T#glOPXZst!Z!`!o#S#d#o#{$n%m&k&n&o&r&t&u&w&{'T'c)P)t*j+_+i,r,u,z-k.i/X/p0_0n1t2U2V2X2Z2^2a2c3f4V4|6V6g6h6k7^8v9V!U%Ri$d%O%Q%^%_%c*S*U*b*x*y/R/z0b0d0k0l0q4a5S8X9r>Q>Y>Z#f(x#v$b$c$x${)z*W*Z*h+h+k,U,X.h/f/o/{/}1h1k1s3e4`4l4q5^5a6U7Y7x8S8^8s9d9{:R:b:t;S;^;f;m<q<s<w<y<{=T=V=Y=^=`=b=d=h>^>_Q+U%aQ/e*Po4Q<n<o<r<t<x<z<|=U=W=Z=_=a=c=e=i!U$yi$d%O%Q%^%_%c*S*U*b*x*y/R/z0b0d0k0l0q4a5S8X9r>Q>Y>ZQ*d$zU*m$|*[*pQ+V%bQ0Y*n#f=r#v$b$c$x${)z*W*Z*h+h+k,U,X.h/f/o/{/}1h1k1s3e4`4l4q5^5a6U7Y7x8S8^8s9d9{:R:b:t;S;^;f;m<q<s<w<y<{=T=V=Y=^=`=b=d=h>^>_n=s<n<o<r<t<x<z<|=U=W=Z=_=a=c=e=iQ=x>UQ=y>VQ=z>WR={>X!U%Ri$d%O%Q%^%_%c*S*U*b*x*y/R/z0b0d0k0l0q4a5S8X9r>Q>Y>Z#f(x#v$b$c$x${)z*W*Z*h+h+k,U,X.h/f/o/{/}1h1k1s3e4`4l4q5^5a6U7Y7x8S8^8s9d9{:R:b:t;S;^;f;m<q<s<w<y<{=T=V=Y=^=`=b=d=h>^>_o4Q<n<o<r<t<x<z<|=U=W=Z=_=a=c=e=inoOXst!Z#d%m&r&t&u&w,u,z2^2aS*g${*ZQ-T'OQ-U'QR4k/{%[%Si#v$b$c$d$x${%O%Q%^%_%c)z*S*U*W*Z*b*h*x*y+h+k,U,X.h/R/f/o/z/{/}0b0d0k0l0q1h1k1s3e4`4a4l4q5S5^5a6U7Y7x8S8X8^8s9d9r9{:R:b:t;S;^;f;m<n<o<q<r<s<t<w<x<y<z<{<|=T=U=V=W=Y=Z=^=_=`=a=b=c=d=e=h=i>Q>Y>Z>^>_Q,W&]Q1j,YQ5u1iR8j5vV*o$|*[*pU*o$|*[*pT5|1q5}S0R*j/pQ4y0_T8U4|:_Q+l%xQ0X*mQ1Q+mQ1w,cQ6Y1xQ8x6ZQ:e8yR;`:f!U%Oi$d%O%Q%^%_%c*S*U*b*x*y/R/z0b0d0k0l0q4a5S8X9r>Q>Y>Zx*S$v)f*T*v+W/x0f0g4T4i5T5U5Y7r8W:T:z=q>O>PS0b*u0c#f<q#v$b$c$x${)z*W*Z*h+h+k,U,X.h/f/o/{/}1h1k1s3e4`4l4q5^5a6U7Y7x8S8^8s9d9{:R:b:t;S;^;f;m<q<s<w<y<{=T=V=Y=^=`=b=d=h>^>_n<r<n<o<r<t<x<z<|=U=W=Z=_=a=c=e=i!d=T(v)d*]*f.l.o.s/a/m0O0x1g3j4^4j4n5t7_7b7y7|8Z8]9v:O:U;P;T;g;l;x>[>]`=U4P7e7h7l9j:v:y;{S=`.n3kT=a7g9m!U%Qi$d%O%Q%^%_%c*S*U*b*x*y/R/z0b0d0k0l0q4a5S8X9r>Q>Y>Z|*U$v)f*V*u+W/i/x0f0g4T4i5O5T5U5Y7r8W:T:z=q>O>PS0d*v0e#f<s#v$b$c$x${)z*W*Z*h+h+k,U,X.h/f/o/{/}1h1k1s3e4`4l4q5^5a6U7Y7x8S8^8s9d9{:R:b:t;S;^;f;m<q<s<w<y<{=T=V=Y=^=`=b=d=h>^>_n<t<n<o<r<t<x<z<|=U=W=Z=_=a=c=e=i!h=V(v)d*]*f.m.n.s/a/m0O0x1g3h3j4^4j4n5t7_7`7b7y7|8Z8]9v:O:U;P;T;g;l;x>[>]d=W4P7f7g7l9j9k:v:w:y;{S=b.o3lT=c7h9nrnOXst!V!Z#d%m&i&r&t&u&w,u,z2^2aQ&f!UR,r&ornOXst!V!Z#d%m&i&r&t&u&w,u,z2^2aR&f!UQ,[&^R1f,TsnOXst!V!Z#d%m&i&r&t&u&w,u,z2^2aQ1r,aS6T1u1vU8r6R6S6WS:a8t8uS;[:`:cQ;o;]R;y;pQ&m!VR,k&iR6a2OR:h8{W&Q|&V&W,QR1]+xQ&r!WR,u&sR,{&xT2_,z2aR-P&yQ-O&yR2h-PQ'z!{R-{'zSsOtQ#dXT%ps#dQ#OTR'|#OQ#RUR(O#RQ)|$uR/b)|Q#UVR(R#UQ#XWU(X#X(Y.SQ(Y#YR.S(ZQ-_'YR2s-_Q.w(zS3o.w3pR3p.xQ-g'aR2x-gY!rQ'a-g1q5}R'k!rQ/S)fR4U/SU#_W%h*ZU(`#_(a.TQ(a#`R.T([Q-c'^R2v-ct`OXst!V!Z#d%m&i&k&r&t&u&w,u,z2^2aS#hZ%eU#r`#h.^R.^(kQ(l#jQ.Z(hW.c(l.Z3Z7TQ3Z.[R7T3[Q)o$lR/Y)oQ$phR)u$pQ$`cU)b$`.O<lQ.O<YR<l)rQ/s*^W4e/s4f7v9uU4f/t/u/vS7v4g4hR9u7w$e*R$v(v)d)f*]*f*u*v+R+S+W.n.o.q.r.s/a/i/k/m/x0O0f0g0x1g3h3i3j4P4T4^4i4j4n5O5Q5T5U5Y5t7_7`7a7b7g7h7j7k7l7r7y7|8W8Z8]9j9k9l9v:O:T:U:v:w:x:y:z;P;T;g;l;x;{=q>O>P>[>]Q/|*fU4m/|4o7zQ4o0OR7z4nS*p$|*[R0[*px*T$v)f*u*v+W/x0f0g4T4i5T5U5Y7r8W:T:z=q>O>P!d.l(v)d*]*f.n.o.s/a/m0O0x1g3j4^4j4n5t7_7b7y7|8Z8]9v:O:U;P;T;g;l;x>[>]U/j*T.l7ea7e4P7g7h7l9j:v:y;{Q0c*uQ3k.nU5P0c3k9mR9m7g|*V$v)f*u*v+W/i/x0f0g4T4i5O5T5U5Y7r8W:T:z=q>O>P!h.m(v)d*]*f.n.o.s/a/m0O0x1g3h3j4^4j4n5t7_7`7b7y7|8Z8]9v:O:U;P;T;g;l;x>[>]U/l*V.m7fe7f4P7g7h7l9j9k:v:w:y;{Q0e*vQ3l.oU5R0e3l9nR9n7hQ*{%UR0i*{Q5_0xR8[5_Q+a%kR0w+aQ5x1lS8l5x:^R:^8mQ,^&_R1o,^Q5}1qR8o5}Q1},hS6_1}8|R8|6aQ1W+tW5j1W5l8c:XQ5l1ZQ8c5kR:X8dQ+y&QR1^+yQ2a,zR6o2aYrOXst#dQ&v!ZQ+c%mQ,t&rQ,v&tQ,w&uQ,y&wQ2[,uS2_,z2aR6n2^Q%opQ&z!_Q&}!aQ'P!bQ'R!cQ'r!uQ+b%lQ+n%zQ,S&XQ,j&mQ-R&|W-r'l't'u'xQ-y'pQ0Z*oQ1R+oQ1e,RS2Q,k,nQ2i-QQ2j-TQ2k-UQ3P-qW3R-t-u-x-zQ5c1SQ5o1aQ5s1gQ6X1wQ6c2SQ6m2]U6|3Q3T3WQ7P3UQ8_5dQ8g5qQ8i5tQ8n5|Q8w6YQ8}6bS9^6}7RQ9`7QQ:Y8eQ:d8xQ:i9OQ:p9_Q;W:ZQ;_:eQ;c:qQ;n;XR;q;`Q%zyQ'e!iQ'p!uU+o%{%|%}Q-X'VU-m'f'g'hS-q'l'vQ0S*kS1S+p+qQ2p-ZS2}-n-oQ3U-vS4r0T0WQ5d1TQ6x2wQ6{3OQ7Q3VU7}4t4u4xQ9|8PR;Q9}S$wi>QR*|%VU%Ui%V>QR0h*zQ$viS(v#v+kS)d$b$cQ)f$dQ*]$xS*f${*ZQ*u%OQ*v%QQ+R%^Q+S%_Q+W%cQ.n<qQ.o<sQ.q<wQ.r<yQ.s<{Q/a)zQ/i*SQ/k*UQ/m*WQ/x*bS0O*h/oQ0f*xQ0g*yl0x+h,X.h1k1s3e6U7Y8s9d:b:t;^;fQ1g,UQ3h=TQ3i=VQ3j=YS4P<n<oQ4T/RS4^/f4`Q4i/zQ4j/{Q4n/}Q5O0bQ5Q0dQ5T0kQ5U0lQ5Y0qQ5t1hQ7_=^Q7`=`Q7a=bQ7b=dQ7g<rQ7h<tQ7j<xQ7k<zQ7l<|Q7r4aQ7y4lQ7|4qQ8W5SQ8Z5^Q8]5aQ9j=ZQ9k=UQ9l=WQ9v7xQ:O8SQ:T8XQ:U8^Q:v=_Q:w=aQ:x=cQ:y=eQ:z9rQ;P9{Q;T:RQ;g=hQ;l;SQ;x;mQ;{=iQ=q>QQ>O>YQ>P>ZQ>[>^R>]>_Q+P%]Q.p<uR7i<vnpOXst!Z#d%m&r&t&u&w,u,z2^2aQ!fPS#fZ#oQ&|!`W'i!o*j0_4|Q(Q#SQ)R#{Q)s$nS,n&k&nQ,s&oQ-Q&{S-V'T/pQ-i'cQ.z)PQ/^)tQ0u+_Q0{+iQ2Y,rQ2{-kQ3c.iQ4Y/XQ5W0nQ6S1tQ6e2UQ6f2VQ6j2XQ6l2ZQ6q2cQ7]3fQ7o4VQ8u6VQ9R6gQ9S6hQ9U6kQ9h7^Q:c8vR:m9V#[cOPXZst!Z!`!o#d#o#{%m&k&n&o&r&t&u&w&{'T'c)P*j+_+i,r,u,z-k.i/p0_0n1t2U2V2X2Z2^2a2c3f4|6V6g6h6k7^8v9VQ#YWQ#eYQ%quQ%svS%uw!gS(T#W(WQ(Z#ZQ(u#uQ(z#xQ)S$OQ)T$PQ)U$QQ)V$RQ)W$SQ)X$TQ)Y$UQ)Z$VQ)[$WQ)]$XQ)_$ZQ)a$_Q)c$aQ)h$eW)r$n)t/X4VQ+f%tQ+z&RS-['X2qQ-z'sS.P(U.RQ.U(^Q.W(eQ.u(yQ.x({Q.|<WQ/O<ZQ/P<[Q/Q<_Q/d*OQ0r+YQ2o-YQ2t-aQ3Q-sQ3X.XQ3m.vQ3r<`Q3s<aQ3t<bQ3u<cQ3v<dQ3w<eQ3x<fQ3y<gQ3z<hQ3{<iQ3|<jQ3}.}Q4O<mQ4R<pQ4S<}Q4Z<kQ5Z0tQ5e1UQ6w=PQ6}3SQ7S3YQ7c3nQ7d=QQ7m=SQ7n=[Q8m5yQ9Z6uQ9_7OQ9i=]Q9o=fQ9p=gQ:q9aQ;Y:]Q;b:oQ<Y#SR=w>TR#[WR'Z!el!tQ!r!v!y!z'a'm'n'o-g-w1q5}6PS'V!e-^U*k$|*[*pS-Z'W'`S0W*l*rQ0`*sQ2w-eQ4x0^R4}0aR(|#xQ!fQT-f'a-g]!qQ!r'a-g1q5}Q#p]R'j<XR)g$dY!uQ'a-g1q5}Q'l!rS'v!v!yS'x!z6PS-v'm'nQ-x'oR3V-wT#kZ%eS#jZ%eS%km,qU(h#h#i#lS.[(i(jQ.`(kQ0v+`Q3[.]U3].^._.aS7U3^3_R9b7Vd#^W#W#Z%h(U(_*Z+[.V/or#gZm#h#i#l%e(i(j(k+`.].^._.a3^3_7VS*^$x*cQ/v*_Q2W,qQ2m-WQ4b/rQ6s2fQ7u4cQ9Y6tT=n'X+^V#aW%h*ZU#`W%h*ZS(V#W(_U([#Z+[/oS-]'X+^T.Q(U.VV'_!e%i*[Q$lfR)y$qT)n$l)oR4X/WT*`$x*cT*i${*ZQ0y+hQ1i,XQ3a.hQ5v1kQ6R1sQ7Z3eQ8t6UQ9e7YQ:`8sQ:r9dQ;]:bQ;e:tQ;p;^R;s;fnqOXst!Z#d%m&r&t&u&w,u,z2^2aQ&l!VR,j&itmOXst!U!V!Z#d%m&i&r&t&u&w,u,z2^2aR,q&oT%lm,qR1m,ZR,i&gQ&U|S,P&V&WR1`,QR+u&PT&p!W&sT&q!W&sT2`,z2a",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty VariableDefinition Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:381,context:o,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,208,212,216,217,219,222,225,235,238,244,246,248,250,253,259,265,267,269,271,273,275,276,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,121,122,137,140,142,143,144,145,146,148,149,168,170,172,"Expression",-23,31,33,37,41,43,45,174,176,178,179,181,182,183,185,186,187,189,190,191,202,204,206,207,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",161,"JSXStartCloseTag"],["closedBy",-2,24,169,">",40,"InterpolationEnd",50,"]",61,"}",74,")",166,"JSXEndTag"]],propSources:[p],skippedNodes:[0,5,6,279],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$j&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$j&j([!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU([!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$j&j(XpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(XpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Xp([!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$j&j(Xp([!b'}0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(Y#S$j&j(O0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$j&j(Xp([!b(O0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$j&j!p),Q(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#w(Ch$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#w(Ch$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(W':f$j&j([!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$j&j([!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$j&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$e`$j&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$e``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$e`$j&j([!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ([!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$e`([!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$j&j(Xp([!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$j&j(Xp([!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$j&j([!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$j&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS([!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$j&j(XpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(XpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Xp([!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$j&j(p%1l(Xp([!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$j&j(Xp([!b$^#t(U,2j(f$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$j&j(Xp([!b$^#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$j&j(Xp([!b#q(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$j&j$R(Ch(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva({+JY$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$j&j#{(Ch(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(Z';W$j&j(XpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$j&j(XpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$j&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$e`$j&j(XpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(XpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$e`(XpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!l/.^$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!k!Lf$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$j&j(Xp([!b(V%&f#r(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$j&j(Xp([!b#o(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$j&j(Xp([!br+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!]+Jf$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$j&j(Xp([!b!Q.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_![!L^$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$j&j(Xp([!b#p(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$j&j(Xp([!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$j&j([!b!X7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$j&j!X7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$j&j!X7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!X7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!X7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$j&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$j&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$j&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$j&j([!b!X7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ([!b!X7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse([!b!X7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX([!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$j&j([!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$j&j(Xp!X7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$j&j(Xp!X7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Xp!X7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Xp!X7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(XpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$j&j(XpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$j&j(Xp([!b!X7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Xp([!b!X7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Xp([!b!X7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Xp([!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$j&j(Xp([!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$j&j(Xp([!b(P0/l!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$j&j(Xp([!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$j&j([!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$j&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW([!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$j&j(XpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(XpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Xp([!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$j&j$R(Ch(Xp([!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$[#t$j&j(Xp([!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$j&j(Xp([!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!g$b$j&j$P)Lv(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#R-<U(Xp([!b$o7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$l&j(Xp([!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#s(Ch(Xp([!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$R(Ch(Xp([!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#t(Ch(Xp([!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#`*!Y$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#l(Cl$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#t(Ch$g#|$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#t(Ch$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#s(Ch$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#s(Ch$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(s(Ct$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$j&j#|(Ch(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!|$Ip$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!S0,v$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$j&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$j&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$j&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$j&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$j&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$j&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!Y#)l$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#y(Ch$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$j&j(Xp([!b(b+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$j&j(Xp([!b(U,2j$`#t(f$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$j&j(Xp([!b$`#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X!_#Hb(Xp([!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(z+JY$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z)>v$?V_!^(CdvBr$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!q7`$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$j&j(Xp([!b'}0/l$^#t(U,2j(f$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$j&j(Xp([!b(O0/l$^#t(U,2j(f$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[l,A,c,u,2,3,4,5,6,7,8,9,10,11,12,13,14,a,new r.uC("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(d~~",141,341),new r.uC("j~RQYZXz{^~^O(R~~aP!P!Qd~iO(S~~",25,324)],topRules:{Script:[0,7],SingleExpression:[1,277],SingleClassItem:[2,278]},dialects:{jsx:0,ts:15179},dynamicPrecedences:{80:1,82:1,94:1,170:1,200:1},specialized:[{term:328,get:t=>d[t]||-1},{term:344,get:t=>f[t]||-1},{term:95,get:t=>g[t]||-1}],tokenPrec:15205})},47405(t,e,n){"use strict";n.d(e,{Aj:()=>B,Lu:()=>f,U1:()=>T,uC:()=>d});var r=n(16713),i=n(85409);class s{constructor(t,e,n,r,i,s,o,a,l,A=0,c){this.p=t,this.stack=e,this.state=n,this.reducePos=r,this.pos=i,this.score=s,this.buffer=o,this.bufferBase=a,this.curContext=l,this.lookAhead=A,this.parent=c}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,n=0){let r=t.parser.context;return new s(t,[],e,n,n,0,[],0,r?new o(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let n=t>>19,r=65535&t,{parser:i}=this.p,s=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),o=i.dynamicPrecedence(r);if(o&&(this.score+=o),0==n)return r<i.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(i.getGoto(this.state,r,!0),this.reducePos),r<i.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,s?8:4,!0),void this.reduceContext(r,this.reducePos);let a=this.stack.length-3*(n-1)-(262144&t?6:0),l=a?this.stack[a-2]:this.p.ranges[0].from;r<i.minRepeatTerm&&l==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let A=this.reducePos-l;A>=2e3&&!(null===(e=this.p.parser.nodeSet.types[r])||void 0===e?void 0:e.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=A):this.p.lastBigReductionSize<A&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=A));let c=a?this.stack[a-1]:0,h=this.bufferBase+this.buffer.length-c;if(r<i.minRepeatTerm||131072&t){let t=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,l,t,h+4,!0)}if(262144&t)this.state=this.stack[a];else{let t=this.stack[a-3];this.state=i.getGoto(t,r,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(r,l)}storeNode(t,e,n,r=4,i=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let t=this.buffer.length;if(t>0&&0==this.buffer[t-4]&&this.buffer[t-1]>-1){if(e==n)return;if(this.buffer[t-2]>=e)return void(this.buffer[t-2]=n)}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&(0!=this.buffer[i-4]||this.buffer[i-1]<0)){let t=!1;for(let e=i;e>0&&this.buffer[e-2]>n;e-=4)if(this.buffer[e-1]>=0){t=!0;break}if(t)for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4)}this.buffer[i]=t,this.buffer[i+1]=e,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(t,e,n,r)}shift(t,e,n,r){if(131072&t)this.pushState(65535&t,this.pos);else if(262144&t)this.pos=r,this.shiftContext(e,n),e<=this.p.parser.maxNode&&this.buffer.push(e,n,r,4);else{let i=t,{parser:s}=this.p;this.pos=r;let o=s.stateFlag(i,1);!o&&(r>n||e<=s.maxNode)&&(this.reducePos=r),this.pushState(i,o?n:Math.min(n,this.reducePos)),this.shiftContext(e,n),e<=s.maxNode&&this.buffer.push(e,n,r,4)}}apply(t,e,n,r){65536&t?this.reduce(t):this.shift(t,e,n,r)}useNode(t,e,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.reducePos=this.pos=n+t.length;this.pushState(e,n),this.buffer.push(r,n,i,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(e&&0==t.buffer[e-4]&&(e-=4);e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let n=t.buffer.slice(e),r=t.bufferBase+e;for(;t&&r==t.bufferBase;)t=t.parent;return new s(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let n=t<=this.p.parser.maxNode;n&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,n?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new a(this);;){let n=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==n)return!1;if(!(65536&n))return!0;e.reduce(n)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let n=[];for(let r,i=0;i<e.length;i+=2)(r=e[i+1])!=this.state&&this.p.parser.hasAction(r,t)&&n.push(e[i],r);if(this.stack.length<120)for(let t=0;n.length<8&&t<e.length;t+=2){let r=e[t+1];n.some((t,e)=>1&e&&t==r)||n.push(e[t],r)}e=n}let n=[];for(let t=0;t<e.length&&n.length<4;t+=2){let r=e[t+1];if(r==this.state)continue;let i=this.split();i.pushState(r,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(e[t],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if(!(65536&e))return!1;if(!t.validAction(this.state,e)){let n=e>>19,r=65535&e,i=this.stack.length-3*n;if(i<0||t.getGoto(this.stack[i],r,!1)<0){let t=this.findForcedReduction();if(null==t)return!1;e=t}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],n=(r,i)=>{if(!e.includes(r))return e.push(r),t.allActions(r,e=>{if(393216&e);else if(65536&e){let n=(e>>19)-i;if(n>1){let r=65535&e,i=this.stack.length-3*n;if(i>=0&&t.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let t=n(e,i+1);if(null!=t)return t}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||-3!=this.buffer[t])&&this.storeNode(this.curContext.hash,this.reducePos,this.reducePos,-3,!0)}emitLookAhead(){let t=this.buffer.length-1;(t<0||-4!=this.buffer[t])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new o(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){return!(t<=this.lookAhead||(this.emitLookAhead(),this.lookAhead=t,0))}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class o{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class a{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=65535&t,n=t>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}}class l{constructor(t,e,n){this.stack=t,this.pos=e,this.index=n,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new l(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new l(this.stack,this.pos,this.index)}}function A(t,e=Uint16Array){if("string"!=typeof t)return t;let n=null;for(let r=0,i=0;r<t.length;){let s=0;for(;;){let e=t.charCodeAt(r++),n=!1;if(126==e){s=65535;break}e>=92&&e--,e>=34&&e--;let i=e-32;if(i>=46&&(i-=46,n=!0),s+=i,n)break;s*=46}n?n[i++]=s:n=new e(s)}return n}class c{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const h=new c;class u{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=h,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let n=this.range,r=this.rangeIndex,i=this.pos+t;for(;i<n.from;){if(!r)return null;let t=this.ranges[--r];i-=n.from-t.to,n=t}for(;e<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let t=this.ranges[++r];i+=t.from-n.to,n=t}return i}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e,n,r=this.chunkOff+t;if(r>=0&&r<this.chunk.length)e=this.pos+t,n=this.chunk.charCodeAt(r);else{let r=this.resolveOffset(t,1);if(null==r)return-1;if(e=r,e>=this.chunk2Pos&&e<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(e-this.chunk2Pos);else{let t=this.rangeIndex,r=this.range;for(;r.to<=e;)r=this.ranges[++t];this.chunk2=this.input.chunk(this.chunk2Pos=e),e+this.chunk2.length>r.to&&(this.chunk2=this.chunk2.slice(0,r.to-e)),n=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),n}acceptToken(t,e=0){let n=e?this.resolveOffset(e,-1):this.pos;if(null==n||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=n}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=h,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let n="";for(let r of this.ranges){if(r.from>=e)break;r.to>t&&(n+=this.input.read(Math.max(r.from,t),Math.min(r.to,e)))}return n}}class p{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:n}=e.p;g(this.data,t,e,this.id,n.data,n.tokenPrecTable)}}p.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class d{constructor(t,e,n){this.precTable=e,this.elseToken=n,this.data="string"==typeof t?A(t):t}token(t,e){let n=t.pos,r=0;for(;;){let n=t.next<0,i=t.resolveOffset(1,1);if(g(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(null==this.elseToken)return;if(n||r++,null==i)break;t.reset(i,t.token)}r&&(t.reset(n,t.token),t.acceptToken(this.elseToken,r))}}d.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class f{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function g(t,e,n,r,i,s){let o=0,a=1<<r,{dialect:l}=n.p.parser;t:for(;0!=(a&t[o]);){let n=t[o+1];for(let r=o+3;r<n;r+=2)if((t[r+1]&a)>0){let n=t[r];if(l.allows(n)&&(-1==e.token.value||e.token.value==n||y(n,e.token.value,i,s))){e.acceptToken(n);break}}let r=e.next,A=0,c=t[o+2];if(!(e.next<0&&c>A&&65535==t[n+3*c-3])){for(;A<c;){let i=A+c>>1,s=n+i+(i<<1),a=t[s],l=t[s+1]||65536;if(r<a)c=i;else{if(!(r>=l)){o=t[s+2],e.advance();continue t}A=i+1}}break}o=t[n+3*c-1]}}function m(t,e,n){for(let r,i=e;65535!=(r=t[i]);i++)if(r==n)return i-e;return-1}function y(t,e,n,r){let i=m(n,r,e);return i<0||m(n,r,t)<i}const v=void 0!==i&&{NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-100671}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Rio_AI_Ltd}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2027}____[v3]_[02]_MTgwNjE5MjAwMDAwMA==388e7d5fd16c7af6f350e7707024b637",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_ANALYST_AGENT_ENDPOINT:"https://bedrock-agentcore.eu-west-2.amazonaws.com/runtimes/arn%3Aaws%3Abedrock-agentcore%3Aeu-west-2%3A523523762637%3Aruntime%2Fdata_analysis_agent_prod-FHjO5N5Zv7/invocations?qualifier=DEFAULT",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_DASHBOARD_DATA_API_URL:"",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_SENTRY_RELEASE:"85df3110fa7a2b8304fe361da0b891146f871ce2",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}&&/\bparse\b/.test({NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-100671}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Rio_AI_Ltd}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2027}____[v3]_[02]_MTgwNjE5MjAwMDAwMA==388e7d5fd16c7af6f350e7707024b637",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_ANALYST_AGENT_ENDPOINT:"https://bedrock-agentcore.eu-west-2.amazonaws.com/runtimes/arn%3Aaws%3Abedrock-agentcore%3Aeu-west-2%3A523523762637%3Aruntime%2Fdata_analysis_agent_prod-FHjO5N5Zv7/invocations?qualifier=DEFAULT",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_DASHBOARD_DATA_API_URL:"",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_SENTRY_RELEASE:"85df3110fa7a2b8304fe361da0b891146f871ce2",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}.LOG);let O=null;function b(t,e,n){let i=t.cursor(r.Qj.IncludeAnonymous);for(i.moveTo(e);;)if(!(n<0?i.childBefore(e):i.childAfter(e)))for(;;){if((n<0?i.to<e:i.from>e)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:t.length}}class x{constructor(t,e){this.fragments=t,this.minRepeat=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.lastRepeat=null,this.lastRepeatPos=-1,this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?b(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?b(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let n=this.trees[e],i=this.index[e];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=n.children[i],o=this.start[e]+n.positions[i];if(o>t)return this.nextStart=o,null;if(s instanceof r.PH){let n=o>this.lastRepeatPos&&s.type.id>=this.minRepeat;if(o==t||n){let e,i=o+s.length;if(o>=this.safeFrom&&i<=this.safeTo&&(!(e=s.prop(r.uY.lookAhead))||i+e<this.fragment.to)){if(n&&(this.lastRepeat=s,this.lastRepeatPos=o),o==t)return s}else if(o==t)return null}this.index[e]++,o+s.length>=Math.max(this.safeFrom,t)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[e]++,this.nextStart=o+s.length}}}class w{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(t=>new c)}getActions(t){let e=0,n=null,{parser:r}=t.p,{tokenizers:i}=r,s=r.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,a=0;for(let r=0;r<i.length;r++){if(!(1<<r&s))continue;let l=i[r],A=this.tokens[r];if((!n||l.fallback)&&((l.contextual||A.start!=t.pos||A.mask!=s||A.context!=o)&&(this.updateCachedToken(A,l,t),A.mask=s,A.context=o),A.lookAhead>A.end+25&&(a=Math.max(A.lookAhead,a)),0!=A.value)){let r=e;if(A.extended>-1&&(e=this.addActions(t,A.extended,A.end,e)),e=this.addActions(t,A.value,A.end,e),!l.extend&&(n=A,e>r))break}}for(;this.actions.length>e;)this.actions.pop();return a&&t.setLookAhead(a),n||t.pos!=this.stream.end||(n=new c,n.value=t.p.parser.eofTerm,n.start=n.end=t.pos,e=this.addActions(t,n.value,n.end,e)),this.mainToken=n,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new c,{pos:n,p:r}=t;return e.start=n,e.end=Math.min(n+1,r.stream.end),e.value=n==r.stream.end?r.parser.eofTerm:0,e}updateCachedToken(t,e,n){let r=this.stream.clipPos(n.pos);if(e.token(this.stream.reset(r,t),n),t.value>-1){let{parser:e}=n.p;for(let r=0;r<e.specialized.length;r++)if(e.specialized[r]==t.value){let i=e.specializers[r](this.stream.read(t.start,t.end),n);if(i>=0&&n.p.parser.dialect.allows(i>>1)){1&i?t.extended=i>>1:t.value=i>>1;break}}}else t.value=0,t.end=this.stream.clipPos(r+1)}putAction(t,e,n,r){for(let e=0;e<r;e+=3)if(this.actions[e]==t)return r;return this.actions[r++]=t,this.actions[r++]=e,this.actions[r++]=n,r}addActions(t,e,n,r){let{state:i}=t,{parser:s}=t.p,{data:o}=s;for(let t=0;t<2;t++)for(let a=s.stateSlot(i,t?2:1);;a+=3){if(65535==o[a]){if(1!=o[a+1]){0==r&&2==o[a+1]&&(r=this.putAction(P(o,a+2),e,n,r));break}a=P(o,a+2)}o[a]==e&&(r=this.putAction(P(o,a+1),e,n,r))}return r}}class _{constructor(t,e,n,r){this.parser=t,this.input=e,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new u(e,r),this.tokens=new w(t,this.stream),this.topTerm=t.top[1];let{from:i}=r[0];this.stacks=[s.start(this,t.top[0],i)],this.fragments=n.length&&this.stream.end-i>4*t.bufferLength?new x(n,t.minRepeatTerm):null}get parsedPos(){return this.minStackPos}advance(){let t,e,n=this.stacks,r=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[t]=n;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<n.length;s++){let o=n[s];for(;;){if(this.tokens.mainToken=null,o.pos>r)i.push(o);else{if(this.advanceStack(o,i,n))continue;{t||(t=[],e=[]),t.push(o);let n=this.tokens.getMainToken(o);e.push(n.value,n.end)}}break}}if(!i.length){let e=t&&function(t){let e=null;for(let n of t){let t=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=t&&n.pos>t)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}(t);if(e)return v&&console.log("Finish with "+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw v&&t&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&t){let n=null!=this.stoppedAt&&t[0].pos>this.stoppedAt?t[0]:this.runRecovery(t,e,i);if(n)return v&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let t=1==this.recovering?1:3*this.recovering;if(i.length>t)for(i.sort((t,e)=>e.score-t.score);i.length>t;)i.pop();i.some(t=>t.reducePos>r)&&this.recovering--}else if(i.length>1){t:for(let t=0;t<i.length-1;t++){let e=i[t];for(let n=t+1;n<i.length;n++){let r=i[n];if(e.sameState(r)||e.buffer.length>500&&r.buffer.length>500){if(!((e.score-r.score||e.buffer.length-r.buffer.length)>0)){i.splice(t--,1);continue t}i.splice(n--,1)}}}i.length>12&&(i.sort((t,e)=>e.score-t.score),i.splice(12,i.length-12))}this.minStackPos=i[0].pos;for(let t=1;t<i.length;t++)i[t].pos<this.minStackPos&&(this.minStackPos=i[t].pos);return null}stopAt(t){if(null!=this.stoppedAt&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}tryReuse(t,e,n,i){if(!n)return null;let s=t.curContext&&t.curContext.tracker.strict,o=s?t.curContext.hash:0;for(;n;){let a=this.parser.nodeSet.types[n.type.id]!=n.type?-1:this.parser.getGoto(t.state,n.type.id);if(a>-1&&n.length&&(!s||(n.prop(r.uY.contextHash)||0)==o))return t.useNode(n,a,e),n;if(0==n.children.length||n.positions[0]>0)break;let l=n.children[0];if(!(l instanceof r.PH&&(!i||l.type.id>=this.parser.minRepeatTerm)))break;n=l}return null}advanceStack(t,e,n){let r=t.pos,{parser:i}=this,s=v?this.stackID(t)+" -> ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.reducePos<r&&t.buffer.length&&t.buffer[t.buffer.length-2]<=t.reducePos&&this.fragments.lastRepeatPos==t.reducePos&&this.tryReuse(t,t.reducePos,this.fragments.lastRepeat,!0)||this.tryReuse(t,r,this.fragments.nodeAt(r),!1);if(e)return v&&console.log(s+this.stackID(t)+` (via reuse of ${i.getName(e.type.id)})`),!0}let o=i.stateSlot(t.state,4);if(o>0)return t.reduce(o),v&&console.log(s+this.stackID(t)+` (via always-reduce ${i.getName(65535&o)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let a=this.tokens.getActions(t);for(let o=0;o<a.length;){let l=a[o++],A=a[o++],c=a[o++],h=o==a.length||!n,u=h?t:t.split(),p=this.tokens.mainToken;if(u.apply(l,A,p?p.start:u.pos,c),v&&console.log(s+this.stackID(u)+` (via ${65536&l?`reduce of ${i.getName(65535&l)}`:"shift"} for ${i.getName(A)} @ ${r}${u==t?"":", split"})`),h)return!0;u.pos>r?e.push(u):n.push(u)}return!1}advanceFully(t,e){let n=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>n)return S(t,e),!0}}runRecovery(t,e,n){let r=null,i=!1;for(let s=0;s<t.length;s++){let o=t[s],a=e[s<<1],l=e[1+(s<<1)],A=v?this.stackID(o)+" -> ":"";if(o.deadEnd){if(i)continue;if(i=!0,o.restart(),v&&console.log(A+this.stackID(o)+" (restarted)"),this.advanceFully(o,n))continue}let c=o.split(),h=A;for(let t=0;t<10&&c.forceReduce()&&(v&&console.log(h+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,n));t++)v&&(h=this.stackID(c)+" -> ");for(let t of o.recoverByInsert(a))v&&console.log(A+this.stackID(t)+" (via recover-insert)"),this.advanceFully(t,n);this.stream.end>o.pos?(l==o.pos&&(l++,a=0),o.recoverByDelete(a,l),v&&console.log(A+this.stackID(o)+` (via recover-delete ${this.parser.getName(a)})`),S(o,n)):(!r||r.score<c.score)&&(r=c)}return r}stackToTree(t){return t.close(),r.PH.build({buffer:l.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(O||(O=new WeakMap)).get(t);return e||O.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function S(t,e){for(let n=0;n<e.length;n++){let r=e[n];if(r.pos==t.pos&&r.sameState(t))return void(e[n].score<t.score&&(e[n]=t))}e.push(t)}class C{constructor(t,e,n){this.source=t,this.flags=e,this.disabled=n}allows(t){return!this.disabled||0==this.disabled[t]}}const E=t=>t;class B{constructor(t){this.start=t.start,this.shift=t.shift||E,this.reduce=t.reduce||E,this.reuse=t.reuse||E,this.hash=t.hash||(()=>0),this.strict=!1!==t.strict}}class T extends r.iX{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;n<t.repeatNodeCount;n++)e.push("");let n=Object.keys(t.topRules).map(e=>t.topRules[e][1]),i=[];for(let t=0;t<e.length;t++)i.push([]);function s(t,e,n){i[t].push([e,e.deserialize(String(n))])}if(t.nodeProps)for(let e of t.nodeProps){let t=e[0];"string"==typeof t&&(t=r.uY[t]);for(let n=1;n<e.length;){let r=e[n++];if(r>=0)s(r,t,e[n++]);else{let i=e[n+-r];for(let o=-r;o>0;o--)s(e[n++],t,i);n++}}}this.nodeSet=new r.fI(e.map((e,s)=>r.Z6.define({name:s>=this.minRepeatTerm?void 0:e,id:s,props:i[s],top:n.indexOf(s)>-1,error:0==s,skipped:t.skippedNodes&&t.skippedNodes.indexOf(s)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=r.cF;let o=A(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let t=0;t<this.specializerSpecs.length;t++)this.specialized[t]=this.specializerSpecs[t].term;this.specializers=this.specializerSpecs.map(k),this.states=A(t.states,Uint32Array),this.data=A(t.stateData),this.goto=A(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(t=>"number"==typeof t?new p(o,t):t),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,n){let r=new _(this,t,e,n);for(let i of this.wrappers)r=i(r,t,e,n);return r}getGoto(t,e,n=!1){let r=this.goto;if(e>=r[0])return-1;for(let i=r[e+1];;){let e=r[i++],s=1&e,o=r[i++];if(s&&n)return o;for(let n=i+(e>>1);i<n;i++)if(r[i]==t)return o;if(s)return-1}}hasAction(t,e){let n=this.data;for(let r=0;r<2;r++)for(let i,s=this.stateSlot(t,r?2:1);;s+=3){if(65535==(i=n[s])){if(1!=n[s+1]){if(2==n[s+1])return P(n,s+2);break}i=n[s=P(n,s+2)]}if(i==e||0==i)return P(n,s+1)}return 0}stateSlot(t,e){return this.states[6*t+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,t=>t==e||null)}allActions(t,e){let n=this.stateSlot(t,4),r=n?e(n):void 0;for(let n=this.stateSlot(t,1);null==r;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=P(this.data,n+2)}r=e(P(this.data,n+1))}return r}nextStates(t){let e=[];for(let n=this.stateSlot(t,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=P(this.data,n+2)}if(!(1&this.data[n+2])){let t=this.data[n+1];e.some((e,n)=>1&n&&e==t)||e.push(this.data[n],t)}}return e}configure(t){let e=Object.assign(Object.create(T.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let n=this.topRules[t.top];if(!n)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=n}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(e=>{let n=t.tokenizers.find(t=>t.from==e);return n?n.to:e})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((n,r)=>{let i=t.specializers.find(t=>t.from==n.external);if(!i)return n;let s=Object.assign(Object.assign({},n),{external:i.to});return e.specializers[r]=k(s),s})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),n=e.map(()=>!1);if(t)for(let r of t.split(" ")){let t=e.indexOf(r);t>=0&&(n[t]=!0)}let r=null;for(let t=0;t<e.length;t++)if(!n[t])for(let n,i=this.dialects[e[t]];65535!=(n=this.data[i++]);)(r||(r=new Uint8Array(this.maxTerm+1)))[n]=1;return new C(t,n,r)}static deserialize(t){return new T(t)}}function P(t,e){return t[e]|t[e+1]<<16}function k(t){if(t.external){let e=t.extend?1:0;return(n,r)=>t.external(n,r)<<1|e}return t.get}},84735(t,e,n){"use strict";n.d(e,{E:()=>Nt,Fd:()=>D,Fz:()=>Pt,K3:()=>ht,Xp:()=>pt,Z3:()=>It,zT:()=>Qt});var r,i=n(16713),s=n(60214);class o{static create(t,e,n,r,i){return new o(t,e,n,r+(r<<8)+t+(e<<4)|0,i,[],[])}constructor(t,e,n,r,s,o,a){this.type=t,this.value=e,this.from=n,this.hash=r,this.end=s,this.children=o,this.positions=a,this.hashProp=[[i.uY.contextHash,r]]}addChild(t,e){t.prop(i.uY.contextHash)!=this.hash&&(t=new i.PH(t.type,t.children,t.positions,t.length,this.hashProp)),this.children.push(t),this.positions.push(e)}toTree(t,e=this.end){let n=this.children.length-1;return n>=0&&(e=Math.max(e,this.positions[n]+this.children[n].length+this.from)),new i.PH(t.types[this.type],this.children,this.positions,e-this.from).balance({makeTree:(t,e,n)=>new i.PH(i.Z6.none,t,e,n,this.hashProp)})}}!function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"}(r||(r={}));class a{constructor(t,e){this.start=t,this.content=e,this.marks=[],this.parsers=[]}}class l{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let t=this.skipSpace(this.basePos);this.indent=this.countIndent(t,this.pos,this.indent),this.pos=t,this.next=t==this.text.length?-1:this.text.charCodeAt(t)}skipSpace(t){return u(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,e=0,n=0){for(let r=e;r<t;r++)n+=9==this.text.charCodeAt(r)?4-n%4:1;return n}findColumn(t){let e=0;for(let n=0;e<this.text.length&&n<t;e++)n+=9==this.text.charCodeAt(e)?4-n%4:1;return e}scrub(){if(!this.baseIndent)return this.text;let t="";for(let e=0;e<this.basePos;e++)t+=" ";return t+this.text.slice(this.basePos)}}function A(t,e,n){if(n.pos==n.text.length||t!=e.block&&n.indent>=e.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let i=(t.type==r.OrderedList?v:y)(n,e,!1);return i>0&&(t.type!=r.BulletList||g(n,e,!1)<0)&&n.text.charCodeAt(n.pos+i-1)==t.value}const c={[r.Blockquote]:(t,e,n)=>62==n.next&&(n.markers.push(G(r.QuoteMark,e.lineStart+n.pos,e.lineStart+n.pos+1)),n.moveBase(n.pos+(h(n.text.charCodeAt(n.pos+1))?2:1)),t.end=e.lineStart+n.text.length,!0),[r.ListItem]:(t,e,n)=>!(n.indent<n.baseIndent+t.value&&n.next>-1||(n.moveBaseColumn(n.baseIndent+t.value),0)),[r.OrderedList]:A,[r.BulletList]:A,[r.Document]:()=>!0};function h(t){return 32==t||9==t||10==t||13==t}function u(t,e=0){for(;e<t.length&&h(t.charCodeAt(e));)e++;return e}function p(t,e,n){for(;e>n&&h(t.charCodeAt(e-1));)e--;return e}function d(t){if(96!=t.next&&126!=t.next)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;if(e<t.pos+3)return-1;if(96==t.next)for(let n=e;n<t.text.length;n++)if(96==t.text.charCodeAt(n))return-1;return e}function f(t){return 62!=t.next?-1:32==t.text.charCodeAt(t.pos+1)?2:1}function g(t,e,n){if(42!=t.next&&45!=t.next&&95!=t.next)return-1;let r=1;for(let e=t.pos+1;e<t.text.length;e++){let n=t.text.charCodeAt(e);if(n==t.next)r++;else if(!h(n))return-1}return n&&45==t.next&&b(t)>-1&&t.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(N.SetextHeading)>-1||r<3?-1:1}function m(t,e){for(let n=t.stack.length-1;n>=0;n--)if(t.stack[n].type==e)return!0;return!1}function y(t,e,n){return 45!=t.next&&43!=t.next&&42!=t.next||t.pos!=t.text.length-1&&!h(t.text.charCodeAt(t.pos+1))||!(!n||m(e,r.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?-1:1}function v(t,e,n){let i=t.pos,s=t.next;for(;s>=48&&s<=57;){if(i++,i==t.text.length)return-1;s=t.text.charCodeAt(i)}return i==t.pos||i>t.pos+9||46!=s&&41!=s||i<t.text.length-1&&!h(t.text.charCodeAt(i+1))||n&&!m(e,r.OrderedList)&&(t.skipSpace(i+1)==t.text.length||i>t.pos+1||49!=t.next)?-1:i+1-t.pos}function O(t){if(35!=t.next)return-1;let e=t.pos+1;for(;e<t.text.length&&35==t.text.charCodeAt(e);)e++;if(e<t.text.length&&32!=t.text.charCodeAt(e))return-1;let n=e-t.pos;return n>6?-1:n}function b(t){if(45!=t.next&&61!=t.next||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;let n=e;for(;e<t.text.length&&h(t.text.charCodeAt(e));)e++;return e==t.text.length?n:-1}const x=/^[ \t]*$/,w=/-->/,_=/\?>/,S=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,w],[/^\s*<\?/,_],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,x],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,x]];function C(t,e,n){if(60!=t.next)return-1;let r=t.text.slice(t.pos);for(let t=0,e=S.length-(n?1:0);t<e;t++)if(S[t][0].test(r))return t;return-1}function E(t,e){let n=t.countIndent(e,t.pos,t.indent),r=t.skipSpace(e),i=t.countIndent(r,e,n);return i>=n+5||r==t.text.length?n+1:i}function B(t,e,n){let i=t.length-1;i>=0&&t[i].to==e&&t[i].type==r.CodeText?t[i].to=n:t.push(G(r.CodeText,e,n))}const T={LinkReference:void 0,IndentedCode(t,e){let n=e.baseIndent+4;if(e.indent<n)return!1;let i=e.findColumn(n),s=t.lineStart+i,o=t.lineStart+e.text.length,a=[],l=[];for(B(a,s,o);t.nextLine()&&e.depth>=t.stack.length;)if(e.pos==e.text.length){B(l,t.lineStart-1,t.lineStart);for(let t of e.markers)l.push(t)}else{if(e.indent<n)break;{if(l.length){for(let t of l)t.type==r.CodeText?B(a,t.from,t.to):a.push(t);l=[]}B(a,t.lineStart-1,t.lineStart);for(let t of e.markers)a.push(t);o=t.lineStart+e.text.length;let n=t.lineStart+e.findColumn(e.baseIndent+4);n<o&&B(a,n,o)}}return l.length&&(l=l.filter(t=>t.type!=r.CodeText),l.length&&(e.markers=l.concat(e.markers))),t.addNode(t.buffer.writeElements(a,-s).finish(r.CodeBlock,o-s),s),!0},FencedCode(t,e){let n=d(e);if(n<0)return!1;let i=t.lineStart+e.pos,s=e.next,o=n-e.pos,a=e.skipSpace(n),l=p(e.text,e.text.length,a),A=[G(r.CodeMark,i,i+o)];a<l&&A.push(G(r.CodeInfo,t.lineStart+a,t.lineStart+l));for(let n=!0,i=!0,a=!1;t.nextLine()&&e.depth>=t.stack.length;n=!1){let l=e.pos;if(e.indent-e.baseIndent<4)for(;l<e.text.length&&e.text.charCodeAt(l)==s;)l++;if(l-e.pos>=o&&e.skipSpace(l)==e.text.length){for(let t of e.markers)A.push(t);i&&a&&B(A,t.lineStart-1,t.lineStart),A.push(G(r.CodeMark,t.lineStart+e.pos,t.lineStart+l)),t.nextLine();break}{a=!0,n||(B(A,t.lineStart-1,t.lineStart),i=!1);for(let t of e.markers)A.push(t);let r=t.lineStart+e.basePos,s=t.lineStart+e.text.length;r<s&&(B(A,r,s),i=!1)}}return t.addNode(t.buffer.writeElements(A,-i).finish(r.FencedCode,t.prevLineEnd()-i),i),!0},Blockquote(t,e){let n=f(e);return!(n<0)&&(t.startContext(r.Blockquote,e.pos),t.addNode(r.QuoteMark,t.lineStart+e.pos,t.lineStart+e.pos+1),e.moveBase(e.pos+n),null)},HorizontalRule(t,e){if(g(e,t,!1)<0)return!1;let n=t.lineStart+e.pos;return t.nextLine(),t.addNode(r.HorizontalRule,n),!0},BulletList(t,e){let n=y(e,t,!1);if(n<0)return!1;t.block.type!=r.BulletList&&t.startContext(r.BulletList,e.basePos,e.next);let i=E(e,e.pos+1);return t.startContext(r.ListItem,e.basePos,i-e.baseIndent),t.addNode(r.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+n),e.moveBaseColumn(i),null},OrderedList(t,e){let n=v(e,t,!1);if(n<0)return!1;t.block.type!=r.OrderedList&&t.startContext(r.OrderedList,e.basePos,e.text.charCodeAt(e.pos+n-1));let i=E(e,e.pos+n);return t.startContext(r.ListItem,e.basePos,i-e.baseIndent),t.addNode(r.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+n),e.moveBaseColumn(i),null},ATXHeading(t,e){let n=O(e);if(n<0)return!1;let i=e.pos,s=t.lineStart+i,o=p(e.text,e.text.length,i),a=o;for(;a>i&&e.text.charCodeAt(a-1)==e.next;)a--;a!=o&&a!=i&&h(e.text.charCodeAt(a-1))||(a=e.text.length);let l=t.buffer.write(r.HeaderMark,0,n).writeElements(t.parser.parseInline(e.text.slice(i+n+1,a),s+n+1),-s);a<e.text.length&&l.write(r.HeaderMark,a-i,o-i);let A=l.finish(r.ATXHeading1-1+n,e.text.length-i);return t.nextLine(),t.addNode(A,s),!0},HTMLBlock(t,e){let n=C(e,0,!1);if(n<0)return!1;let i=t.lineStart+e.pos,s=S[n][1],o=[],a=s!=x;for(;!s.test(e.text)&&t.nextLine();){if(e.depth<t.stack.length){a=!1;break}for(let t of e.markers)o.push(t)}a&&t.nextLine();let l=s==w?r.CommentBlock:s==_?r.ProcessingInstructionBlock:r.HTMLBlock,A=t.prevLineEnd();return t.addNode(t.buffer.writeElements(o,-i).finish(l,A-i),i),!0},SetextHeading:void 0};class P{constructor(t){this.stage=0,this.elts=[],this.pos=0,this.start=t.start,this.advance(t.content)}nextLine(t,e,n){if(-1==this.stage)return!1;let r=n.content+"\n"+e.scrub(),i=this.advance(r);return i>-1&&i<r.length&&this.complete(t,n,i)}finish(t,e){return(2==this.stage||3==this.stage)&&u(e.content,this.pos)==e.content.length&&this.complete(t,e,e.content.length)}complete(t,e,n){return t.addLeafElement(e,G(r.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(t){return t?(this.pos=t.to-this.start,this.elts.push(t),this.stage++,!0):(!1===t&&(this.stage=-1),!1)}advance(t){for(;;){if(-1==this.stage)return-1;if(0==this.stage){if(!this.nextStage(it(t,this.pos,this.start,!0)))return-1;if(58!=t.charCodeAt(this.pos))return this.stage=-1;this.elts.push(G(r.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else{if(1!=this.stage){if(2==this.stage){let e=u(t,this.pos),n=0;if(e>this.pos){let r=rt(t,e,this.start);if(r){let e=k(t,r.to-this.start);e>0&&(this.nextStage(r),n=e)}}return n||(n=k(t,this.pos)),n>0&&n<t.length?n:-1}return k(t,this.pos)}if(!this.nextStage(nt(t,u(t,this.pos),this.start)))return-1}}}}function k(t,e){for(;e<t.length;e++){let n=t.charCodeAt(e);if(10==n)break;if(!h(n))return-1}return e}class I{nextLine(t,e,n){let i=e.depth<t.stack.length?-1:b(e),s=e.next;if(i<0)return!1;let o=G(r.HeaderMark,t.lineStart+e.pos,t.lineStart+i);return t.nextLine(),t.addLeafElement(n,G(61==s?r.SetextHeading1:r.SetextHeading2,n.start,t.prevLineEnd(),[...t.parser.parseInline(n.content,n.start),o])),!0}finish(){return!1}}const N={LinkReference:(t,e)=>91==e.content.charCodeAt(0)?new P(e):null,SetextHeading:()=>new I},Q=[(t,e)=>O(e)>=0,(t,e)=>d(e)>=0,(t,e)=>f(e)>=0,(t,e)=>y(e,t,!0)>=0,(t,e)=>v(e,t,!0)>=0,(t,e)=>g(e,t,!0)>=0,(t,e)=>C(e,0,!0)>=0],F={text:"",end:0};class L{constructor(t,e,n,i){this.parser=t,this.input=e,this.ranges=i,this.line=new l,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=i[i.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=i[0].from,this.block=o.create(r.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new lt(n,e):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(null!=this.stoppedAt&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:t}=this;for(;;){for(let e=0;;){let n=t.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;e<t.markers.length&&(!n||t.markers[e].from<n.end);){let n=t.markers[e++];this.addNode(n.type,n.from,n.to)}if(!n)break;this.finishContext()}if(t.pos<t.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(t.basePos))return null;t:for(;;){for(let e of this.parser.blockParsers)if(e){let n=e(this,t);if(0!=n){if(1==n)return null;t.forward();continue t}}break}if(t.pos==t.text.length)return this.nextLine()?null:this.finish();let e=new a(this.lineStart+t.pos,t.text.slice(t.pos));for(let t of this.parser.leafBlockParsers)if(t){let n=t(this,e);n&&e.parsers.push(n)}t:for(;this.nextLine()&&t.pos!=t.text.length;){if(t.indent<t.baseIndent+4)for(let n of this.parser.endLeafBlock)if(n(this,t,e))break t;for(let n of e.parsers)if(n.nextLine(this,t,e))return null;e.content+="\n"+t.scrub();for(let n of t.markers)e.marks.push(n)}return this.finishLeaf(e),null}stopAt(t){if(null!=this.stoppedAt&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}reuseFragment(t){if(!this.fragments.moveTo(this.absoluteLineStart+t,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let e=this.fragments.takeNodes(this);return!!e&&(this.absoluteLineStart+=e,this.lineStart=At(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0)}get depth(){return this.stack.length}parentType(t=this.depth-1){return this.parser.nodeSet.types[this.stack[t].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(t){let e=F;if(e.end=t,t>=this.to)e.text="";else if(e.text=this.lineChunkAt(t),e.end+=e.text.length,this.ranges.length>1){let t=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<e.end;){n++;let r=this.ranges[n].from,i=this.lineChunkAt(r);e.end=r+i.length,e.text=e.text.slice(0,this.ranges[n-1].to-t)+i,t=e.end-e.text.length}}return e}readLine(){let{line:t}=this,{text:e,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,t.reset(e);t.depth<this.stack.length;t.depth++){let e=this.stack[t.depth],n=this.parser.skipContextMarkup[e.type];if(!n)throw new Error("Unhandled block context "+r[e.type]);let i=this.line.markers.length;if(!n(e,this,t)){this.line.markers.length>i&&(e.end=this.line.markers[this.line.markers.length-1].to),t.forward();break}t.forward()}}lineChunkAt(t){let e,n=this.input.chunk(t);if(this.input.lineChunks)e="\n"==n?"":n;else{let t=n.indexOf("\n");e=t<0?n:n.slice(0,t)}return t+e.length>this.to?e.slice(0,this.to-t):e}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(t,e,n=0){this.block=o.create(t,n,this.lineStart+e,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(t,e,n=0){this.startContext(this.parser.getNodeType(t),e,n)}addNode(t,e,n){"number"==typeof t&&(t=new i.PH(this.parser.nodeSet.types[t],H,H,(null!=n?n:this.prevLineEnd())-e)),this.block.addChild(t,e-this.block.from)}addElement(t){this.block.addChild(t.toTree(this.parser.nodeSet),t.from-this.block.from)}addLeafElement(t,e){this.addNode(this.buffer.writeElements(ot(e.children,t.marks),-e.from).finish(e.type,e.to-e.from),e.from)}finishContext(){let t=this.stack.pop(),e=this.stack[this.stack.length-1];e.addChild(t.toTree(this.parser.nodeSet),t.from-e.from),this.block=e}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(t){return this.ranges.length>1?M(this.ranges,0,t.topNode,this.ranges[0].from,this.reusePlaceholders):t}finishLeaf(t){for(let e of t.parsers)if(e.finish(this,t))return;let e=ot(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(e,-t.start).finish(r.Paragraph,t.content.length),t.start)}elt(t,e,n,r){return"string"==typeof t?G(this.parser.getNodeType(t),e,n,r):new z(t,e)}get buffer(){return new V(this.parser.nodeSet)}}function M(t,e,n,r,s){let o=t[e].to,a=[],l=[],A=n.from+r;function c(n,i){for(;i?n>=o:n>o;){let i=t[e+1].from-o;r+=i,n+=i,e++,o=t[e].to}}for(let i=n.firstChild;i;i=i.nextSibling){c(i.from+r,!0);let n,h=i.from+r,u=s.get(i.tree);u?n=u:i.to+r>o?(n=M(t,e,i,r,s),c(i.to+r,!1)):n=i.toTree(),a.push(n),l.push(h-A)}return c(n.to+r,!1),new i.PH(n.type,a,l,n.to+r-A,n.tree?n.tree.propValues:void 0)}class D extends i.iX{constructor(t,e,n,r,i,s,o,a,l){super(),this.nodeSet=t,this.blockParsers=e,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=i,this.skipContextMarkup=s,this.inlineParsers=o,this.inlineNames=a,this.wrappers=l,this.nodeTypes=Object.create(null);for(let e of t.types)this.nodeTypes[e.name]=e.id}createParse(t,e,n){let r=new L(this,t,e,n);for(let i of this.wrappers)r=i(r,t,e,n);return r}configure(t){let e=U(t);if(!e)return this;let{nodeSet:n,skipContextMarkup:o}=this,a=this.blockParsers.slice(),l=this.leafBlockParsers.slice(),A=this.blockNames.slice(),c=this.inlineParsers.slice(),h=this.inlineNames.slice(),u=this.endLeafBlock.slice(),p=this.wrappers;if(R(e.defineNodes)){o=Object.assign({},o);let t,a=n.types.slice();for(let n of e.defineNodes){let{name:e,block:l,composite:A,style:c}="string"==typeof n?{name:n}:n;if(a.some(t=>t.name==e))continue;A&&(o[a.length]=(t,e,n)=>A(e,n,t.value));let h=a.length,u=A?["Block","BlockContext"]:l?h>=r.ATXHeading1&&h<=r.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;a.push(i.Z6.define({id:h,name:e,props:u&&[[i.uY.group,u]]})),c&&(t||(t={}),Array.isArray(c)||c instanceof s.vw?t[e]=c:Object.assign(t,c))}n=new i.fI(a),t&&(n=n.extend((0,s.pn)(t)))}if(R(e.props)&&(n=n.extend(...e.props)),R(e.remove))for(let t of e.remove){let e=this.blockNames.indexOf(t),n=this.inlineNames.indexOf(t);e>-1&&(a[e]=l[e]=void 0),n>-1&&(c[n]=void 0)}if(R(e.parseBlock))for(let t of e.parseBlock){let e=A.indexOf(t.name);if(e>-1)a[e]=t.parse,l[e]=t.leaf;else{let e=t.before?$(A,t.before):t.after?$(A,t.after)+1:A.length-1;a.splice(e,0,t.parse),l.splice(e,0,t.leaf),A.splice(e,0,t.name)}t.endLeaf&&u.push(t.endLeaf)}if(R(e.parseInline))for(let t of e.parseInline){let e=h.indexOf(t.name);if(e>-1)c[e]=t.parse;else{let e=t.before?$(h,t.before):t.after?$(h,t.after)+1:h.length-1;c.splice(e,0,t.parse),h.splice(e,0,t.name)}}return e.wrap&&(p=p.concat(e.wrap)),new D(n,a,l,A,u,o,c,h,p)}getNodeType(t){let e=this.nodeTypes[t];if(null==e)throw new RangeError(`Unknown node type '${t}'`);return e}parseInline(t,e){let n=new st(this,t,e);t:for(let t=e;t<n.end;){let e=n.char(t);for(let r of this.inlineParsers)if(r){let i=r(n,e,t);if(i>=0){t=i;continue t}}t++}return n.resolveMarkers(0)}}function R(t){return null!=t&&t.length>0}function U(t){if(!Array.isArray(t))return t;if(0==t.length)return null;let e=U(t[0]);if(1==t.length)return e;let n=U(t.slice(1));if(!n||!e)return e||n;let r=(t,e)=>(t||H).concat(e||H),i=e.wrap,s=n.wrap;return{props:r(e.props,n.props),defineNodes:r(e.defineNodes,n.defineNodes),parseBlock:r(e.parseBlock,n.parseBlock),parseInline:r(e.parseInline,n.parseInline),remove:r(e.remove,n.remove),wrap:i?s?(t,e,n,r)=>i(s(t,e,n,r),e,n,r):i:s}}function $(t,e){let n=t.indexOf(e);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return n}let j=[i.Z6.none];for(let t,e=1;t=r[e];e++)j[e]=i.Z6.define({id:e,name:t,props:e>=r.Escape?[]:[[i.uY.group,e in c?["Block","BlockContext"]:["Block","LeafBlock"]]],top:"Document"==t});const H=[];class V{constructor(t){this.nodeSet=t,this.content=[],this.nodes=[]}write(t,e,n,r=0){return this.content.push(t,e,n,4+4*r),this}writeElements(t,e=0){for(let n of t)n.writeTo(this,e);return this}finish(t,e){return i.PH.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:t,length:e})}}class X{constructor(t,e,n,r=H){this.type=t,this.from=e,this.to=n,this.children=r}writeTo(t,e){let n=t.content.length;t.writeElements(this.children,e),t.content.push(this.type,this.from+e,this.to+e,t.content.length+4-n)}toTree(t){return new V(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}}class z{constructor(t,e){this.tree=t,this.from=e}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return H}writeTo(t,e){t.nodes.push(this.tree),t.content.push(t.nodes.length-1,this.from+e,this.to+e,-1)}toTree(){return this.tree}}function G(t,e,n,r){return new X(t,e,n,r)}const Y={resolve:"Emphasis",mark:"EmphasisMark"},W={resolve:"Emphasis",mark:"EmphasisMark"},Z={},K={};class q{constructor(t,e,n,r,i=n-e){this.type=t,this.from=e,this.to=n,this.side=r,this.size=i}}let J=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{J=new RegExp("[\\p{S}|\\p{P}]","u")}catch(t){}const tt={Escape(t,e,n){if(92!=e||n==t.end-1)return-1;let i=t.char(n+1);for(let e=0;e<32;e++)if("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~".charCodeAt(e)==i)return t.append(G(r.Escape,n,n+2));return-1},Entity(t,e,n){if(38!=e)return-1;let i=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(n+1,n+31));return i?t.append(G(r.Entity,n,n+1+i[0].length)):-1},InlineCode(t,e,n){if(96!=e||n&&96==t.char(n-1))return-1;let i=n+1;for(;i<t.end&&96==t.char(i);)i++;let s=i-n,o=0;for(;i<t.end;i++)if(96==t.char(i)){if(o++,o==s&&96!=t.char(i+1))return t.append(G(r.InlineCode,n,i+1,[G(r.CodeMark,n,n+s),G(r.CodeMark,i+1-s,i+1)]))}else o=0;return-1},HTMLTag(t,e,n){if(60!=e||n==t.end-1)return-1;let i=t.slice(n+1,t.end),s=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(i);if(s)return t.append(G(r.Autolink,n,n+1+s[0].length,[G(r.LinkMark,n,n+1),G(r.URL,n+1,n+s[0].length),G(r.LinkMark,n+s[0].length,n+1+s[0].length)]));let o=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(i);if(o)return t.append(G(r.Comment,n,n+1+o[0].length));let a=/^\?[^]*?\?>/.exec(i);if(a)return t.append(G(r.ProcessingInstruction,n,n+1+a[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(i);return l?t.append(G(r.HTMLTag,n,n+1+l[0].length)):-1},Emphasis(t,e,n){if(95!=e&&42!=e)return-1;let r=n+1;for(;t.char(r)==e;)r++;let i=t.slice(n-1,n),s=t.slice(r,r+1),o=J.test(i),a=J.test(s),l=/\s|^$/.test(i),A=/\s|^$/.test(s),c=!A&&(!a||l||o),h=!l&&(!o||A||a),u=c&&(42==e||!h||o),p=h&&(42==e||!c||a);return t.append(new q(95==e?Y:W,n,r,(u?1:0)|(p?2:0)))},HardBreak(t,e,n){if(92==e&&10==t.char(n+1))return t.append(G(r.HardBreak,n,n+2));if(32==e){let e=n+1;for(;32==t.char(e);)e++;if(10==t.char(e)&&e>=n+2)return t.append(G(r.HardBreak,n,e+1))}return-1},Link:(t,e,n)=>91==e?t.append(new q(Z,n,n+1,1)):-1,Image:(t,e,n)=>33==e&&91==t.char(n+1)?t.append(new q(K,n,n+2,1)):-1,LinkEnd(t,e,n){if(93!=e)return-1;for(let e=t.parts.length-1;e>=0;e--){let i=t.parts[e];if(i instanceof q&&(i.type==Z||i.type==K)){if(!i.side||t.skipSpace(i.to)==n&&!/[(\[]/.test(t.slice(n+1,n+2)))return t.parts[e]=null,-1;let s=t.takeContent(e),o=t.parts[e]=et(t,s,i.type==Z?r.Link:r.Image,i.from,n+1);if(i.type==Z)for(let n=0;n<e;n++){let e=t.parts[n];e instanceof q&&e.type==Z&&(e.side=0)}return o.to}}return-1}};function et(t,e,n,i,s){let{text:o}=t,a=t.char(s),l=s;if(e.unshift(G(r.LinkMark,i,i+(n==r.Image?2:1))),e.push(G(r.LinkMark,s-1,s)),40==a){let n,i=t.skipSpace(s+1),a=nt(o,i-t.offset,t.offset);a&&(i=t.skipSpace(a.to),i!=a.to&&(n=rt(o,i-t.offset,t.offset),n&&(i=t.skipSpace(n.to)))),41==t.char(i)&&(e.push(G(r.LinkMark,s,s+1)),l=i+1,a&&e.push(a),n&&e.push(n),e.push(G(r.LinkMark,i,l)))}else if(91==a){let n=it(o,s-t.offset,t.offset,!1);n&&(e.push(n),l=n.to)}return G(n,i,l,e)}function nt(t,e,n){if(60==t.charCodeAt(e)){for(let i=e+1;i<t.length;i++){let s=t.charCodeAt(i);if(62==s)return G(r.URL,e+n,i+1+n);if(60==s||10==s)return!1}return null}{let i=0,s=e;for(let e=!1;s<t.length;s++){let n=t.charCodeAt(s);if(h(n))break;if(e)e=!1;else if(40==n)i++;else if(41==n){if(!i)break;i--}else 92==n&&(e=!0)}return s>e?G(r.URL,e+n,s+n):s==t.length&&null}}function rt(t,e,n){let i=t.charCodeAt(e);if(39!=i&&34!=i&&40!=i)return!1;let s=40==i?41:i;for(let i=e+1,o=!1;i<t.length;i++){let a=t.charCodeAt(i);if(o)o=!1;else{if(a==s)return G(r.LinkTitle,e+n,i+1+n);92==a&&(o=!0)}}return null}function it(t,e,n,i){for(let s=!1,o=e+1,a=Math.min(t.length,o+999);o<a;o++){let a=t.charCodeAt(o);if(s)s=!1;else{if(93==a)return!i&&G(r.LinkLabel,e+n,o+1+n);if(i&&!h(a)&&(i=!1),91==a)return!1;92==a&&(s=!0)}}return null}class st{constructor(t,e,n){this.parser=t,this.text=e,this.offset=n,this.parts=[]}char(t){return t>=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,e){return this.text.slice(t-this.offset,e-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,e,n,r,i){return this.append(new q(t,e,n,(r?1:0)|(i?2:0)))}get hasOpenLink(){for(let t=this.parts.length-1;t>=0;t--){let e=this.parts[t];if(e instanceof q&&(e.type==Z||e.type==K))return!0}return!1}addElement(t){return this.append(t)}resolveMarkers(t){for(let e=t;e<this.parts.length;e++){let n=this.parts[e];if(!(n instanceof q&&n.type.resolve&&2&n.side))continue;let r,i=n.type==Y||n.type==W,s=n.to-n.from,o=e-1;for(;o>=t;o--){let t=this.parts[o];if(t instanceof q&&1&t.side&&t.type==n.type&&!(i&&(1&n.side||2&t.side)&&(t.size+n.size)%3==0&&(t.size%3||n.size%3))){r=t;break}}if(!r)continue;let a=n.type.resolve,l=[],A=r.from,c=n.to;if(i){let t=Math.min(2,r.to-r.from,s);A=r.to-t,c=n.from+t,a=1==t?"Emphasis":"StrongEmphasis"}r.type.mark&&l.push(this.elt(r.type.mark,A,r.to));for(let t=o+1;t<e;t++)this.parts[t]instanceof X&&l.push(this.parts[t]),this.parts[t]=null;n.type.mark&&l.push(this.elt(n.type.mark,n.from,c));let h=this.elt(a,A,c,l);this.parts[o]=i&&r.from!=A?new q(r.type,r.from,A,r.side,r.size):null,(this.parts[e]=i&&n.to!=c?new q(n.type,c,n.to,n.side,n.size):null)?this.parts.splice(e,0,h):this.parts[e]=h}let e=[];for(let n=t;n<this.parts.length;n++){let t=this.parts[n];t instanceof X&&e.push(t)}return e}findOpeningDelimiter(t){for(let e=this.parts.length-1;e>=0;e--){let n=this.parts[e];if(n instanceof q&&n.type==t&&1&n.side)return e}return null}takeContent(t){let e=this.resolveMarkers(t);return this.parts.length=t,e}getDelimiterAt(t){let e=this.parts[t];return e instanceof q?e:null}skipSpace(t){return u(this.text,t-this.offset)+this.offset}elt(t,e,n,r){return"string"==typeof t?G(this.parser.getNodeType(t),e,n,r):new z(t,e)}}function ot(t,e){if(!e.length)return t;if(!t.length)return e;let n=t.slice(),r=0;for(let t of e){for(;r<n.length&&n[r].to<t.to;)r++;if(r<n.length&&n[r].from<t.from){let e=n[r];e instanceof X&&(n[r]=new X(e.type,e.from,e.to,ot(e.children,[t])))}else n.splice(r++,0,t)}return n}st.linkStart=Z,st.imageStart=K,st.emphasisAsterisk=W,st.emphasisUnderscore=Y;const at=[r.CodeBlock,r.ListItem,r.OrderedList,r.BulletList];class lt{constructor(t,e){this.fragments=t,this.input=e,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,t.length&&(this.fragment=t[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(t,e){for(;this.fragment&&this.fragment.to<=t;)this.nextFragment();if(!this.fragment||this.fragment.from>(t?t-1:0))return!1;if(this.fragmentEnd<0){let t=this.fragment.to;for(;t>0&&"\n"!=this.input.read(t-1,t);)t--;this.fragmentEnd=t?t-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=t+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=e;if(!n.childAfter(r))return!1}}matches(t){let e=this.cursor.tree;return e&&e.prop(i.uY.contextHash)==t}takeNodes(t){let e=this.cursor,n=this.fragment.offset,s=this.fragmentEnd-(this.fragment.openEnd?1:0),o=t.absoluteLineStart,a=o,l=t.block.children.length,A=a,c=l;for(;;){if(e.to-n>s||e.to-n>t.to){if(e.type.isAnonymous&&e.firstChild())continue;break}let o=At(e.from-n,t.ranges);if(e.to-n<=t.ranges[t.rangeI].to)t.addNode(e.tree,o);else{let n=new i.PH(t.parser.nodeSet.types[r.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(n,e.tree),t.addNode(n,o)}if(e.type.is("Block")&&(at.indexOf(e.type.id)<0?(a=e.to-n,l=t.block.children.length):(a=A,l=c),A=e.to-n,c=t.block.children.length),!e.nextSibling())break}for(;t.block.children.length>l;)t.block.children.pop(),t.block.positions.pop();return a-o}}function At(t,e){let n=t;for(let r=1;r<e.length;r++){let i=e[r-1].to,s=e[r].from;i<t&&(n-=s-i)}return n}const ct=(0,s.pn)({"Blockquote/...":s._A.quote,HorizontalRule:s._A.contentSeparator,"ATXHeading1/... SetextHeading1/...":s._A.heading1,"ATXHeading2/... SetextHeading2/...":s._A.heading2,"ATXHeading3/...":s._A.heading3,"ATXHeading4/...":s._A.heading4,"ATXHeading5/...":s._A.heading5,"ATXHeading6/...":s._A.heading6,"Comment CommentBlock":s._A.comment,Escape:s._A.escape,Entity:s._A.character,"Emphasis/...":s._A.emphasis,"StrongEmphasis/...":s._A.strong,"Link/... Image/...":s._A.link,"OrderedList/... BulletList/...":s._A.list,"BlockQuote/...":s._A.quote,"InlineCode CodeText":s._A.monospace,"URL Autolink":s._A.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":s._A.processingInstruction,"CodeInfo LinkLabel":s._A.labelName,LinkTitle:s._A.string,Paragraph:s._A.content}),ht=new D(new i.fI(j).extend(ct),Object.keys(T).map(t=>T[t]),Object.keys(T).map(t=>N[t]),Object.keys(T),Q,c,Object.keys(tt).map(t=>tt[t]),Object.keys(tt),[]);function ut(t,e,n){let r=[];for(let i=t.firstChild,s=e;;i=i.nextSibling){let t=i?i.from:n;if(t>s&&r.push({from:s,to:t}),!i)break;s=i.to}return r}function pt(t){let{codeParser:e,htmlParser:n}=t,s=(0,i.$g)((t,i)=>{let s=t.type.id;if(!e||s!=r.CodeBlock&&s!=r.FencedCode){if(n&&(s==r.HTMLBlock||s==r.HTMLTag||s==r.CommentBlock))return{parser:n,overlay:ut(t.node,t.from,t.to)}}else{let n="";if(s==r.FencedCode){let e=t.node.getChild(r.CodeInfo);e&&(n=i.read(e.from,e.to))}let o=e(n);if(o)return{parser:o,overlay:t=>t.type.id==r.CodeText,bracketed:s==r.FencedCode}}return null});return{wrap:s}}const dt={resolve:"Strikethrough",mark:"StrikethroughMark"},ft={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":s._A.strikethrough}},{name:"StrikethroughMark",style:s._A.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,n){if(126!=e||126!=t.char(n+1)||126==t.char(n+2))return-1;let r=t.slice(n-1,n),i=t.slice(n+2,n+3),s=/\s|^$/.test(r),o=/\s|^$/.test(i),a=J.test(r),l=J.test(i);return t.addDelimiter(dt,n,n+2,!o&&(!l||s||a),!s&&(!a||o||l))},after:"Emphasis"}]};function gt(t,e,n=0,r,i=0){let s=0,o=!0,a=-1,l=-1,A=!1,c=()=>{r.push(t.elt("TableCell",i+a,i+l,t.parser.parseInline(e.slice(a,l),i+a)))};for(let h=n;h<e.length;h++){let n=e.charCodeAt(h);124!=n||A?(A||32!=n&&9!=n)&&(a<0&&(a=h),l=h+1):((!o||a>-1)&&s++,o=!1,r&&(a>-1&&c(),r.push(t.elt("TableDelimiter",h+i,h+i+1))),a=l=-1),A=!A&&92==n}return a>-1&&(s++,r&&c()),s}function mt(t,e){for(let n=e;n<t.length;n++){let e=t.charCodeAt(n);if(124==e)return!0;92==e&&n++}return!1}const yt=/^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class vt{constructor(){this.rows=null}nextLine(t,e,n){if(null==this.rows){let r;if(this.rows=!1,(45==e.next||58==e.next||124==e.next)&&yt.test(r=e.text.slice(e.pos))){let i=[];gt(t,n.content,0,i,n.start)==gt(t,r,0)&&(this.rows=[t.elt("TableHeader",n.start,n.start+n.content.length,i),t.elt("TableDelimiter",t.lineStart+e.pos,t.lineStart+e.text.length)])}}else if(this.rows){let n=[];gt(t,e.text,e.pos,n,t.lineStart),this.rows.push(t.elt("TableRow",t.lineStart+e.pos,t.lineStart+e.text.length,n))}return!1}finish(t,e){return!!this.rows&&(t.addLeafElement(e,t.elt("Table",e.start,e.start+e.content.length,this.rows)),!0)}}const Ot={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":s._A.heading}},"TableRow",{name:"TableCell",style:s._A.content},{name:"TableDelimiter",style:s._A.processingInstruction}],parseBlock:[{name:"Table",leaf:(t,e)=>mt(e.content,0)?new vt:null,endLeaf(t,e,n){if(n.parsers.some(t=>t instanceof vt)||!mt(e.text,e.basePos))return!1;let r=t.peekLine();return yt.test(r)&&gt(t,e.text,e.basePos)==gt(t,r,e.basePos)},before:"SetextHeading"}]};class bt{nextLine(){return!1}finish(t,e){return t.addLeafElement(e,t.elt("Task",e.start,e.start+e.content.length,[t.elt("TaskMarker",e.start,e.start+3),...t.parser.parseInline(e.content.slice(3),e.start+3)])),!0}}const xt={defineNodes:[{name:"Task",block:!0,style:s._A.list},{name:"TaskMarker",style:s._A.atom}],parseBlock:[{name:"TaskList",leaf:(t,e)=>/^\[[ xX]\][ \t]/.test(e.content)&&"ListItem"==t.parentType().name?new bt:null,after:"SetextHeading"}]},wt=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,_t=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,St=/[\w-]+\.[\w-]+($|[/:])/,Ct=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Et=/\/[a-zA-Z\d@.]+/gy;function Bt(t,e,n,r){let i=0;for(let s=e;s<n;s++)t[s]==r&&i++;return i}function Tt(t,e){Ct.lastIndex=e;let n=Ct.exec(t);if(!n)return-1;let r=n[0][n[0].length-1];return"_"==r||"-"==r?-1:e+n[0].length-("."==r?1:0)}const Pt=[Ot,xt,ft,{parseInline:[{name:"Autolink",parse(t,e,n){let r=n-t.offset;if(r&&/\w/.test(t.text[r-1]))return-1;wt.lastIndex=r;let i=wt.exec(t.text),s=-1;return i?(i[1]||i[2]?(s=function(t,e){_t.lastIndex=e;let n=_t.exec(t);if(!n||St.exec(n[0])[0].indexOf("_")>-1)return-1;let r=e+n[0].length;for(;;){let n,i=t[r-1];if(/[?!.,:*_~]/.test(i)||")"==i&&Bt(t,e,r,")")>Bt(t,e,r,"("))r--;else{if(";"!=i||!(n=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,r))))break;r=e+n.index}}return r}(t.text,r+i[0].length),s>-1&&t.hasOpenLink&&(s=r+/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(r,s))[0].length)):i[3]?s=Tt(t.text,r):(s=Tt(t.text,r+i[0].length),s>-1&&"xmpp:"==i[0]&&(Et.lastIndex=s,i=Et.exec(t.text),i&&(s=i.index+i[0].length))),s<0?-1:(t.addElement(t.elt("URL",n,s+t.offset)),s+t.offset)):-1}}]}];function kt(t,e,n){return(r,i,s)=>{if(i!=t||r.char(s+1)==t)return-1;let o=[r.elt(n,s,s+1)];for(let i=s+1;i<r.end;i++){let a=r.char(i);if(a==t)return r.addElement(r.elt(e,s,i+1,o.concat(r.elt(n,i,i+1))));if(92==a&&o.push(r.elt("Escape",i,2+i++)),h(a))break}return-1}}const It={defineNodes:[{name:"Superscript",style:s._A.special(s._A.content)},{name:"SuperscriptMark",style:s._A.processingInstruction}],parseInline:[{name:"Superscript",parse:kt(94,"Superscript","SuperscriptMark")}]},Nt={defineNodes:[{name:"Subscript",style:s._A.special(s._A.content)},{name:"SubscriptMark",style:s._A.processingInstruction}],parseInline:[{name:"Subscript",parse:kt(126,"Subscript","SubscriptMark")}]},Qt={defineNodes:[{name:"Emoji",style:s._A.character}],parseInline:[{name:"Emoji",parse(t,e,n){let r;return 58==e&&(r=/^[a-zA-Z_0-9]+:/.exec(t.slice(n+1,t.end)))?t.addElement(t.elt("Emoji",n,n+1+r[0].length)):-1}}]}},23877(t,e,n){"use strict";n.d(e,{z:()=>a});let r=[],i=[];function s(t){if(t<768)return!1;for(let e=0,n=r.length;;){let s=e+n>>1;if(t<r[s])n=s;else{if(!(t>=i[s]))return!0;e=s+1}if(e==n)return!1}}function o(t){return t>=127462&&t<=127487}function a(t,e,n=!0,r=!0){return(n?l:A)(t,e,r)}function l(t,e,n){if(e==t.length)return e;e&&h(t.charCodeAt(e))&&u(t.charCodeAt(e-1))&&e--;let r=c(t,e);for(e+=p(r);e<t.length;){let i=c(t,e);if(8205==r||8205==i||n&&s(i))e+=p(i),r=i;else{if(!o(i))break;{let n=0,r=e-2;for(;r>=0&&o(c(t,r));)n++,r-=2;if(n%2==0)break;e+=2}}}return e}function A(t,e,n){for(;e>1;){let r=l(t,e-2,n);if(r<e)return r;e--}return 0}function c(t,e){let n=t.charCodeAt(e);if(!u(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return h(r)?r-56320+(n-55296<<10)+65536:n}function h(t){return t>=56320&&t<57344}function u(t){return t>=55296&&t<56320}function p(t){return t<65536?1:2}(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,1n,9,16,o,,x,1i,3,,i,,7,a,2,t,3,1k,,,7,2,2,2,3,9,,a,2,q,,2,3,1k,,,5,4,2,2,3,3,,u,2,3,,b,3,1k,,,8,,3,,3,k,2,m,6,,3,1k,,,7,2,2,2,3,7,3,a,2,u,,1n,5,3,3,,4,9,,14,5,1j,,,7,,3,,4,7,2,b,2,t,3,1k,,,7,,3,,4,7,2,b,2,f,,c,4,1j,2,,7,,3,,4,9,,a,2,t,3,1y,,4,6,,,,8,i,2,1p,,,8,c,8,2q,,,a,b,7,21,2,r,,,,,,4,2,1d,k,,2,5,b,,10,9,,2u,b,,6,n,4,4,3,g,4,d,,,3,6,,f,,jj,3,qa,4,s,3,t,2,u,2,1s,w,9,,19,3,,,39,2,y,,3a,c,4,c,63,5,1l,a,,,,,2,o,2,,1c,1a,2,c,k,5,1b,h,12,9,c,3,u,d,1k,e,1c,k,48,3,,l,4,,6,,2,3,5i,1s,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,n,5,4,,2b,2,1e,i,q,i,d,,12,8,p,d,18,4,1b,e,10,,1v,e,c,,8,2,1a,,1f,,,3,2,2,5,2,,,15,5,5,2,6k,8,,2,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,1t,5,8t,2,25,6,1y,b,1d,4,3e,3,1h,f,15,,2,2,a,4,19,b,7,,1p,3,10,e,g,2,18,,c,3,1c,e,8,4,,2,2k,c,6,,2,,4d,c,l,4,1j,2,,7,2,2,2,3,9,,a,2,2,7,3,5,1v,9,,,2,,,4,,5,,,e,2,2a,i,n,,29,k,6j,7,2,9,r,2,2a,h,2y,d,2t,3,2,a,74,f,6t,6,,2,2,4,,,,2,3x,7,2,7,3,,s,a,14,7,,4,8,,9,b,1a,g,5i,8,5j,8,,8,2a,m,,e,3e,6,3,,,2,,7,,,1u,5,,2,,5,9n,4,9,2,,,1c,7,3,5,n,,44l,,6,f,8ug,i,1xc,5,1n,7,t4,,,1j,7,4,29,,b,2,f57,2,3mp,1a,2,n,f2,5,3,6,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,2s,,4g,7,af,,1p,4,e4,4,72,2,6r,,2,,7,2,5,,d6,7,31,7,240,5".split(",").map(t=>t?parseInt(t,36):1);for(let e=0,n=0;e<t.length;e++)(e%2?i:r).push(n+=t[e])})()},234(t,e,n){"use strict";function r(t,e){if(!Boolean(t))throw new Error(e)}n.d(e,{U:()=>r})},55565(t,e,n){"use strict";function r(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 n=[...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,n)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";const n=Math.min(10,t.length),r=t.length-n,s=[];for(let r=0;r<n;++r)s.push(i(t[r],e));return 1===r?s.push("... 1 more item"):r>1&&s.push(`... ${r} more items`),"["+s.join(", ")+"]"}(t,n);return function(t,e){const n=Object.entries(t);if(0===n.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 r=n.map(([t,n])=>t+": "+i(n,e));return"{ "+r.join(", ")+" }"}(t,n)}(t,e);default:return String(t)}}n.d(e,{N:()=>r})},34695(t,e,n){"use strict";n.d(e,{Ll:()=>a,aD:()=>s,aZ:()=>r,cE:()=>l,ou:()=>i});class r{constructor(t,e,n){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(t,e,n,r,i,s){this.kind=t,this.start=e,this.end=n,this.line=r,this.column=i,this.value=s,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 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"]},o=new Set(Object.keys(s));function a(t){const e=null==t?void 0:t.kind;return"string"==typeof e&&o.has(e)}let l;!function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(l||(l={}))},22359(t,e,n){"use strict";function r(t){const e=t.split(/\r\n|[\n\r]/g),n=function(t){var e;let n=!0,r=!0,i=0,s=null;for(let e=0;e<t.length;++e)switch(t.charCodeAt(e)){case 13:10===t.charCodeAt(e+1)&&++e;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===s||i<s)&&(s=i),r=!1}return null!==(e=s)&&void 0!==e?e:0}(t);if(0!==n)for(let t=1;t<e.length;t++)e[t]=e[t].slice(n);let r=0;for(;r<e.length&&i(e[r]);)++r;let s=e.length;for(;s>r&&i(e[s-1]);)--s;return e.slice(r,s).join("\n")}function i(t){for(const e of t)if(" "!==e&&"\t"!==e)return!1;return!0}function s(t,e=!1){const n=!t.includes("\n"),r=t.startsWith(" ")||t.startsWith("\t"),i=t.endsWith('"'),s=t.endsWith("\\"),o=!n||i||s||e;let a="";return!o||n&&r||(a+="\n"),a+=t,o&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}n.d(e,{i$:()=>r,yo:()=>s})},49270(t,e,n){"use strict";let r;n.d(e,{b:()=>r}),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"}(r||(r={}))},96891(t,e,n){"use strict";n.d(e,{VK:()=>i});var r=n(49270);function i(t){return t.kind===r.b.FIELD||t.kind===r.b.FRAGMENT_SPREAD||t.kind===r.b.INLINE_FRAGMENT}},74831(t,e,n){"use strict";n.d(e,{y:()=>l});var r=n(85517),i=n(22359);const s=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(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 l(t){return(0,r.YR)(t,A)}const A={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,", "),")"),n=c([t.operation,c([t.name,e]),c(t.directives," ")]," ");return("query"===n?"":n+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:n,directives:r})=>t+": "+e+u(" = ",n)+u(" ",c(r," "))},SelectionSet:{leave:({selections:t})=>h(t)},Field:{leave({alias:t,name:e,arguments:n,directives:r,selectionSet:i}){const s=u("",t,": ")+e;let o=s+u("(",c(n,", "),")");return o.length>80&&(o=s+u("(\n",p(c(n,"\n")),"\n)")),c([o,c(r," "),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:n})=>c(["...",u("on ",t),c(e," "),n]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${t}${u("(",c(n,", "),")")} on ${e} ${u("",c(r," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?(0,i.yo)(t):`"${t.replace(s,o)}"`},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:n})=>u("",t,"\n")+c(["schema",c(e," "),h(n)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:n})=>u("",t,"\n")+c(["scalar",e,c(n," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:r,fields:i})=>u("",t,"\n")+c(["type",e,u("implements ",c(n," & ")),c(r," "),h(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:n,type:r,directives:i})=>u("",t,"\n")+e+(d(n)?u("(\n",p(c(n,"\n")),"\n)"):u("(",c(n,", "),")"))+": "+r+u(" ",c(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:n,defaultValue:r,directives:i})=>u("",t,"\n")+c([e+": "+n,u("= ",r),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:r,fields:i})=>u("",t,"\n")+c(["interface",e,u("implements ",c(n," & ")),c(r," "),h(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:n,types:r})=>u("",t,"\n")+c(["union",e,c(n," "),u("= ",c(r," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:n,values:r})=>u("",t,"\n")+c(["enum",e,c(n," "),h(r)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:n})=>u("",t,"\n")+c([e,c(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:n,fields:r})=>u("",t,"\n")+c(["input",e,c(n," "),h(r)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:n,repeatable:r,locations:i})=>u("",t,"\n")+"directive @"+e+(d(n)?u("(\n",p(c(n,"\n")),"\n)"):u("(",c(n,", "),")"))+(r?" 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:n,fields:r})=>c(["extend type",t,u("implements ",c(e," & ")),c(n," "),h(r)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:r})=>c(["extend interface",t,u("implements ",c(e," & ")),c(n," "),h(r)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:n})=>c(["extend union",t,c(e," "),u("= ",c(n," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:n})=>c(["extend enum",t,c(e," "),h(n)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:n})=>c(["extend input",t,c(e," "),h(n)]," ")}};function c(t,e=""){var n;return null!==(n=null==t?void 0:t.filter(t=>t).join(e))&&void 0!==n?n:""}function h(t){return u("{\n",p(c(t,"\n")),"\n}")}function u(t,e,n=""){return null!=e&&""!==e?t+e+n:""}function p(t){return u("  ",t.replace(/\n/g,"\n  "))}function d(t){var e;return null!==(e=null==t?void 0:t.some(t=>t.includes("\n")))&&void 0!==e&&e}},85517(t,e,n){"use strict";n.d(e,{YR:()=>l,sP:()=>a});var r=n(55565),i=n(234),s=n(34695),o=n(49270);const a=Object.freeze({});function l(t,e,n=s.aD){const l=new Map;for(const t of Object.values(o.b))l.set(t,A(e,t));let c,h,u,p,d=Array.isArray(t),f=[t],g=-1,m=[];const y=[],v=[];let O=t;do{g++;const t=g===f.length,o=t&&0!==m.length;if(t){if(u=0===v.length?void 0:y[y.length-1],h=p,p=v.pop(),o)if(d){h=h.slice();let t=0;for(const[e,n]of m){const r=e-t;null===n?(h.splice(r,1),t++):h[r]=n}}else{h=Object.defineProperties({},Object.getOwnPropertyDescriptors(h));for(const[t,e]of m)h[t]=e}g=c.index,f=c.keys,m=c.edits,d=c.inArray,c=c.prev}else{if(u=p?d?g:f[g]:void 0,h=p?p[u]:O,null==h)continue;p&&y.push(u)}let A;if(!Array.isArray(h)){var b,x;(0,s.Ll)(h)||(0,i.U)(!1,`Invalid AST Node: ${(0,r.N)(h)}.`);const n=t?null===(b=l.get(h.kind))||void 0===b?void 0:b.leave:null===(x=l.get(h.kind))||void 0===x?void 0:x.enter;if(A=null==n?void 0:n.call(e,h,u,p,y,v),A===a)break;if(!1===A){if(!t){y.pop();continue}}else if(void 0!==A&&(m.push([u,A]),!t)){if(!(0,s.Ll)(A)){y.pop();continue}h=A}}var w;void 0===A&&o&&m.push([u,h]),t?y.pop():(c={inArray:d,index:g,keys:f,edits:m,prev:c},d=Array.isArray(h),f=d?h:null!==(w=n[h.kind])&&void 0!==w?w:[],g=-1,m=[],p&&v.push(p),p=h)}while(void 0!==c);return 0!==m.length&&(O=m[m.length-1][1]),O}function A(t,e){const n=t[e];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}},61001(t,e,n){"use strict";n.r(e),n.d(e,{BREAK:()=>It,BreakingChangeType:()=>ao,DEFAULT_DEPRECATION_REASON:()=>gn,DangerousChangeType:()=>lo,DirectiveLocation:()=>S,ExecutableDefinitionsRule:()=>Or,FieldsOnCorrectTypeRule:()=>br,FragmentsOnCompositeTypesRule:()=>xr,GRAPHQL_MAX_INT:()=>tn,GRAPHQL_MIN_INT:()=>en,GraphQLBoolean:()=>on,GraphQLDeprecatedDirective:()=>mn,GraphQLDirective:()=>pn,GraphQLEnumType:()=>Xe,GraphQLError:()=>d,GraphQLFloat:()=>rn,GraphQLID:()=>an,GraphQLIncludeDirective:()=>dn,GraphQLInputObjectType:()=>Ye,GraphQLInt:()=>nn,GraphQLInterfaceType:()=>je,GraphQLList:()=>be,GraphQLNonNull:()=>xe,GraphQLObjectType:()=>Qe,GraphQLOneOfDirective:()=>vn,GraphQLScalarType:()=>Ne,GraphQLSchema:()=>$n,GraphQLSkipDirective:()=>fn,GraphQLSpecifiedByDirective:()=>yn,GraphQLString:()=>sn,GraphQLUnionType:()=>He,Kind:()=>C,KnownArgumentNamesRule:()=>wr,KnownDirectivesRule:()=>Sr,KnownFragmentNamesRule:()=>Cr,KnownTypeNamesRule:()=>Er,Lexer:()=>M,Location:()=>v,LoneAnonymousOperationRule:()=>Tr,LoneSchemaDefinitionRule:()=>Pr,MaxIntrospectionDepthRule:()=>kr,NoDeprecatedCustomRule:()=>ws,NoFragmentCyclesRule:()=>Ir,NoSchemaIntrospectionCustomRule:()=>_s,NoUndefinedVariablesRule:()=>Nr,NoUnusedFragmentsRule:()=>Qr,NoUnusedVariablesRule:()=>Fr,OperationTypeNode:()=>_,OverlappingFieldsCanBeMergedRule:()=>Dr,PossibleFragmentSpreadsRule:()=>Zr,PossibleTypeExtensionsRule:()=>Kr,ProvidedRequiredArgumentsRule:()=>Jr,ScalarLeafsRule:()=>ni,SchemaMetaFieldDef:()=>Qn,SingleFieldSubscriptionsRule:()=>bi,Source:()=>at,Token:()=>O,TokenKind:()=>E,TypeInfo:()=>or,TypeKind:()=>In,TypeMetaFieldDef:()=>Fn,TypeNameMetaFieldDef:()=>Ln,UniqueArgumentDefinitionNamesRule:()=>wi,UniqueArgumentNamesRule:()=>_i,UniqueDirectiveNamesRule:()=>Si,UniqueDirectivesPerLocationRule:()=>Ci,UniqueEnumValueNamesRule:()=>Ei,UniqueFieldDefinitionNamesRule:()=>Bi,UniqueFragmentNamesRule:()=>Pi,UniqueInputFieldNamesRule:()=>ki,UniqueOperationNamesRule:()=>Ii,UniqueOperationTypesRule:()=>Ni,UniqueTypeNamesRule:()=>Qi,UniqueVariableNamesRule:()=>Fi,ValidationContext:()=>zi,ValuesOfCorrectTypeRule:()=>Li,VariablesAreInputTypesRule:()=>Di,VariablesInAllowedPositionRule:()=>Ri,__Directive:()=>Cn,__DirectiveLocation:()=>En,__EnumValue:()=>kn,__Field:()=>Tn,__InputValue:()=>Pn,__Schema:()=>Sn,__Type:()=>Bn,__TypeKind:()=>Nn,assertAbstractType:()=>Oe,assertCompositeType:()=>ye,assertDirective:()=>un,assertEnumType:()=>ie,assertEnumValueName:()=>zt,assertInputObjectType:()=>oe,assertInputType:()=>ue,assertInterfaceType:()=>te,assertLeafType:()=>ge,assertListType:()=>le,assertName:()=>Xt,assertNamedType:()=>Te,assertNonNullType:()=>ce,assertNullableType:()=>Ce,assertObjectType:()=>qt,assertOutputType:()=>de,assertScalarType:()=>Zt,assertSchema:()=>Un,assertType:()=>Yt,assertUnionType:()=>ne,assertValidName:()=>so,assertValidSchema:()=>Vn,assertWrappingType:()=>_e,astFromValue:()=>wn,buildASTSchema:()=>Fs,buildClientSchema:()=>Ts,buildSchema:()=>Ls,coerceInputValue:()=>oi,concatAST:()=>to,createSourceEventStream:()=>xs,defaultFieldResolver:()=>fs,defaultTypeResolver:()=>ds,doTypesOverlap:()=>Je,execute:()=>es,executeSync:()=>ns,extendSchema:()=>Ps,findBreakingChanges:()=>Ao,findDangerousChanges:()=>co,formatError:()=>m,getArgumentValues:()=>pi,getDirectiveValues:()=>di,getEnterLeaveForKind:()=>Ft,getIntrospectionQuery:()=>Ss,getLocation:()=>c,getNamedType:()=>Pe,getNullableType:()=>Ee,getOperationAST:()=>Cs,getOperationRootType:()=>Es,getVariableValues:()=>ui,getVisitFn:()=>Lt,graphql:()=>ms,graphqlSync:()=>ys,introspectionFromSchema:()=>Bs,introspectionTypes:()=>Mn,isAbstractType:()=>ve,isCompositeType:()=>me,isConstValueNode:()=>pr,isDefinitionNode:()=>Ar,isDirective:()=>hn,isEnumType:()=>re,isEqualType:()=>Ke,isExecutableDefinitionNode:()=>cr,isInputObjectType:()=>se,isInputType:()=>he,isInterfaceType:()=>Jt,isIntrospectionType:()=>Dn,isLeafType:()=>fe,isListType:()=>ae,isNamedType:()=>Be,isNonNullType:()=>Ae,isNullableType:()=>Se,isObjectType:()=>Kt,isOutputType:()=>pe,isRequiredArgument:()=>$e,isRequiredInputField:()=>Ze,isScalarType:()=>Wt,isSchema:()=>Rn,isSchemaCoordinateNode:()=>vr,isSelectionNode:()=>hr,isSpecifiedDirective:()=>bn,isSpecifiedScalarType:()=>An,isType:()=>Gt,isTypeDefinitionNode:()=>gr,isTypeExtensionNode:()=>yr,isTypeNode:()=>dr,isTypeSubTypeOf:()=>qe,isTypeSystemDefinitionNode:()=>fr,isTypeSystemExtensionNode:()=>mr,isUnionType:()=>ee,isValidNameError:()=>oo,isValueNode:()=>ur,isWrappingType:()=>we,lexicographicSortSchema:()=>Ms,locatedError:()=>qi,parse:()=>At,parseConstValue:()=>ht,parseSchemaCoordinate:()=>pt,parseType:()=>ut,parseValue:()=>ct,print:()=>Mt,printError:()=>g,printIntrospectionSchema:()=>js,printLocation:()=>h,printSchema:()=>$s,printSourceLocation:()=>u,printType:()=>zs,recommendedRules:()=>$i,resolveASTSchemaCoordinate:()=>Eo,resolveObjMapThunk:()=>Ie,resolveReadonlyArrayThunk:()=>ke,resolveSchemaCoordinate:()=>Co,responsePathAsArray:()=>si,separateOperations:()=>eo,specifiedDirectives:()=>On,specifiedRules:()=>ji,specifiedScalarTypes:()=>ln,stripIgnoredCharacters:()=>io,subscribe:()=>bs,syntaxError:()=>y,typeFromAST:()=>sr,validate:()=>Yi,validateSchema:()=>Hn,valueFromAST:()=>Ai,valueFromASTUntyped:()=>Vt,version:()=>r,versionInfo:()=>i,visit:()=>Nt,visitInParallel:()=>Qt,visitWithTypeInfo:()=>lr});const r="16.14.2",i=Object.freeze({major:16,minor:14,patch:2,preReleaseTag:null});function s(t,e){if(!Boolean(t))throw new Error(e)}function o(t){return"function"==typeof(null==t?void 0:t.then)}function a(t){return"object"==typeof t&&null!==t}function l(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}const A=/\r\n|[\n\r]/g;function c(t,e){let n=0,r=1;for(const i of t.body.matchAll(A)){if("number"==typeof i.index||l(!1),i.index>=e)break;n=i.index+i[0].length,r+=1}return{line:r,column:e+1-n}}function h(t){return u(t.source,c(t.source,t.start))}function u(t,e){const n=t.locationOffset.column-1,r="".padStart(n)+t.body,i=e.line-1,s=t.locationOffset.line-1,o=e.line+s,a=1===e.line?n:0,l=e.column+a,A=`${t.name}:${o}:${l}\n`,c=r.split(/\r\n|[\n\r]/g),h=c[i];if(h.length>120){const t=Math.floor(l/80),e=l%80,n=[];for(let t=0;t<h.length;t+=80)n.push(h.slice(t,t+80));return A+p([[`${o} |`,n[0]],...n.slice(1,t+1).map(t=>["|",t]),["|","^".padStart(e)],["|",n[t+1]]])}return A+p([[o-1+" |",c[i-1]],[`${o} |`,h],["|","^".padStart(l)],[`${o+1} |`,c[i+1]]])}function p(t){const e=t.filter(([t,e])=>void 0!==e),n=Math.max(...e.map(([t])=>t.length));return e.map(([t,e])=>t.padStart(n)+(e?" "+e:"")).join("\n")}class d extends Error{constructor(t,...e){var n,r,i;const{nodes:s,source:o,positions:l,path:A,originalError:h,extensions:u}=function(t){const e=t[0];return null==e||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}(e);super(t),this.name="GraphQLError",this.path=null!=A?A:void 0,this.originalError=null!=h?h:void 0,this.nodes=f(Array.isArray(s)?s:s?[s]:void 0);const p=f(null===(n=this.nodes)||void 0===n?void 0:n.map(t=>t.loc).filter(t=>null!=t));this.source=null!=o?o:null==p||null===(r=p[0])||void 0===r?void 0:r.source,this.positions=null!=l?l:null==p?void 0:p.map(t=>t.start),this.locations=l&&o?l.map(t=>c(o,t)):null==p?void 0:p.map(t=>c(t.source,t.start));const g=a(null==h?void 0:h.extensions)?null==h?void 0:h.extensions:void 0;this.extensions=null!==(i=null!=u?u:g)&&void 0!==i?i: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!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,d):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"+h(e.loc));else if(this.source&&this.locations)for(const e of this.locations)t+="\n\n"+u(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 f(t){return void 0===t||0===t.length?void 0:t}function g(t){return t.toString()}function m(t){return t.toJSON()}function y(t,e,n){return new d(`Syntax Error: ${n}`,{source:t,positions:[e]})}class v{constructor(t,e,n){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class O{constructor(t,e,n,r,i,s){this.kind=t,this.start=e,this.end=n,this.line=r,this.column=i,this.value=s,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 b={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},x=new Set(Object.keys(b));function w(t){const e=null==t?void 0:t.kind;return"string"==typeof e&&x.has(e)}var _,S,C,E;function B(t){return 9===t||32===t}function T(t){return t>=48&&t<=57}function P(t){return t>=97&&t<=122||t>=65&&t<=90}function k(t){return P(t)||95===t}function I(t){return P(t)||T(t)||95===t}function N(t){var e;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let e=0;e<t.length;++e){var s;const o=t[e],a=Q(o);a!==o.length&&(r=null!==(s=r)&&void 0!==s?s:e,i=e,0!==e&&a<n&&(n=a))}return t.map((t,e)=>0===e?t:t.slice(n)).slice(null!==(e=r)&&void 0!==e?e:0,i+1)}function Q(t){let e=0;for(;e<t.length&&B(t.charCodeAt(e));)++e;return e}function F(t){if(""===t)return!0;let e=!0,n=!1,r=!0,i=!1;for(let s=0;s<t.length;++s)switch(t.codePointAt(s)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(e&&!i)return!1;i=!0,e=!0,n=!1;break;case 9:case 32:n||(n=e);break;default:r&&(r=n),e=!1}return!(e||r&&i)}function L(t,e){const n=t.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,s=r.length>1&&r.slice(1).every(t=>0===t.length||B(t.charCodeAt(0))),o=n.endsWith('\\"""'),a=t.endsWith('"')&&!o,l=t.endsWith("\\"),A=a||l,c=!(null!=e&&e.minimize)&&(!i||t.length>70||A||s||o);let h="";const u=i&&B(t.charCodeAt(0));return(c&&!u||s)&&(h+="\n"),h+=n,(c||A)&&(h+="\n"),'"""'+h+'"""'}!function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(_||(_={})),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",t.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"}(S||(S={})),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.DIRECTIVE_EXTENSION="DirectiveExtension",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",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(C||(C={})),function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.DOT=".",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"}(E||(E={}));class M{constructor(t){const e=new O(E.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!==E.EOF)do{if(t.next)t=t.next;else{const e=X(this,t.end);t.next=e,e.prev=t,t=e}}while(t.kind===E.COMMENT);return t}}function D(t){return t===E.BANG||t===E.DOLLAR||t===E.AMP||t===E.PAREN_L||t===E.PAREN_R||t===E.DOT||t===E.SPREAD||t===E.COLON||t===E.EQUALS||t===E.AT||t===E.BRACKET_L||t===E.BRACKET_R||t===E.BRACE_L||t===E.PIPE||t===E.BRACE_R}function R(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function U(t,e){return $(t.charCodeAt(e))&&j(t.charCodeAt(e+1))}function $(t){return t>=55296&&t<=56319}function j(t){return t>=56320&&t<=57343}function H(t,e){const n=t.source.body.codePointAt(e);if(void 0===n)return E.EOF;if(n>=32&&n<=126){const t=String.fromCodePoint(n);return'"'===t?"'\"'":`"${t}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function V(t,e,n,r,i){const s=t.line,o=1+n-t.lineStart;return new O(e,n,r,s,o,i)}function X(t,e){const n=t.source.body,r=n.length;let i=e;for(;i<r;){const e=n.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===n.charCodeAt(i+1)?i+=2:++i,++t.line,t.lineStart=i;continue;case 35:return z(t,i);case 33:return V(t,E.BANG,i,i+1);case 36:return V(t,E.DOLLAR,i,i+1);case 38:return V(t,E.AMP,i,i+1);case 40:return V(t,E.PAREN_L,i,i+1);case 41:return V(t,E.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return V(t,E.SPREAD,i,i+3);break;case 58:return V(t,E.COLON,i,i+1);case 61:return V(t,E.EQUALS,i,i+1);case 64:return V(t,E.AT,i,i+1);case 91:return V(t,E.BRACKET_L,i,i+1);case 93:return V(t,E.BRACKET_R,i,i+1);case 123:return V(t,E.BRACE_L,i,i+1);case 124:return V(t,E.PIPE,i,i+1);case 125:return V(t,E.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?et(t,i):W(t,i)}if(T(e)||45===e)return G(t,i,e);if(k(e))return nt(t,i);throw y(t.source,i,39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":R(e)||U(n,i)?`Unexpected character: ${H(t,i)}.`:`Invalid character: ${H(t,i)}.`)}return V(t,E.EOF,r,r)}function z(t,e){const n=t.source.body,r=n.length;let i=e+1;for(;i<r;){const t=n.charCodeAt(i);if(10===t||13===t)break;if(R(t))++i;else{if(!U(n,i))break;i+=2}}return V(t,E.COMMENT,e,i,n.slice(e+1,i))}function G(t,e,n){const r=t.source.body;let i=e,s=n,o=!1;if(45===s&&(s=r.charCodeAt(++i)),48===s){if(s=r.charCodeAt(++i),T(s))throw y(t.source,i,`Invalid number, unexpected digit after 0: ${H(t,i)}.`)}else i=Y(t,i,s),s=r.charCodeAt(i);if(46===s&&(o=!0,s=r.charCodeAt(++i),i=Y(t,i,s),s=r.charCodeAt(i)),69!==s&&101!==s||(o=!0,s=r.charCodeAt(++i),43!==s&&45!==s||(s=r.charCodeAt(++i)),i=Y(t,i,s),s=r.charCodeAt(i)),46===s||k(s))throw y(t.source,i,`Invalid number, expected digit but got: ${H(t,i)}.`);return V(t,o?E.FLOAT:E.INT,e,i,r.slice(e,i))}function Y(t,e,n){if(!T(n))throw y(t.source,e,`Invalid number, expected digit but got: ${H(t,e)}.`);const r=t.source.body;let i=e+1;for(;T(r.charCodeAt(i));)++i;return i}function W(t,e){const n=t.source.body,r=n.length;let i=e+1,s=i,o="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return o+=n.slice(s,i),V(t,E.STRING,e,i+1,o);if(92===r){o+=n.slice(s,i);const e=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?Z(t,i):K(t,i):tt(t,i);o+=e.value,i+=e.size,s=i;continue}if(10===r||13===r)break;if(R(r))++i;else{if(!U(n,i))throw y(t.source,i,`Invalid character within String: ${H(t,i)}.`);i+=2}}throw y(t.source,i,"Unterminated string.")}function Z(t,e){const n=t.source.body;let r=0,i=3;for(;i<12;){const t=n.charCodeAt(e+i++);if(125===t){if(i<5||!R(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|J(t),r<0)break}throw y(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+i)}".`)}function K(t,e){const n=t.source.body,r=q(n,e+2);if(R(r))return{value:String.fromCodePoint(r),size:6};if($(r)&&92===n.charCodeAt(e+6)&&117===n.charCodeAt(e+7)){const t=q(n,e+8);if(j(t))return{value:String.fromCodePoint(r,t),size:12}}throw y(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+6)}".`)}function q(t,e){return J(t.charCodeAt(e))<<12|J(t.charCodeAt(e+1))<<8|J(t.charCodeAt(e+2))<<4|J(t.charCodeAt(e+3))}function J(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function tt(t,e){const n=t.source.body;switch(n.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 y(t.source,e,`Invalid character escape sequence: "${n.slice(e,e+2)}".`)}function et(t,e){const n=t.source.body,r=n.length;let i=t.lineStart,s=e+3,o=s,a="";const l=[];for(;s<r;){const r=n.charCodeAt(s);if(34===r&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){a+=n.slice(o,s),l.push(a);const r=V(t,E.BLOCK_STRING,e,s+3,N(l).join("\n"));return t.line+=l.length-1,t.lineStart=i,r}if(92!==r||34!==n.charCodeAt(s+1)||34!==n.charCodeAt(s+2)||34!==n.charCodeAt(s+3))if(10!==r&&13!==r)if(R(r))++s;else{if(!U(n,s))throw y(t.source,s,`Invalid character within String: ${H(t,s)}.`);s+=2}else a+=n.slice(o,s),l.push(a),13===r&&10===n.charCodeAt(s+1)?s+=2:++s,a="",o=s,i=s;else a+=n.slice(o,s),o=s+1,s+=4}throw y(t.source,s,"Unterminated string.")}function nt(t,e){const n=t.source.body,r=n.length;let i=e+1;for(;i<r&&I(n.charCodeAt(i));)++i;return V(t,E.NAME,e,i,n.slice(e,i))}class rt{line=1;lineStart=0;constructor(t){const e=new O(E.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==E.EOF){const e=function(t,e){const n=t.source.body,r=n.length,i=e;if(i<r){const e=n.charCodeAt(i);switch(e){case 46:return V(t,E.DOT,i,i+1);case 40:return V(t,E.PAREN_L,i,i+1);case 41:return V(t,E.PAREN_R,i,i+1);case 58:return V(t,E.COLON,i,i+1);case 64:return V(t,E.AT,i,i+1)}if(k(e))return nt(t,i);throw y(t.source,i,`Invalid character: ${H(t,i)}.`)}return V(t,E.EOF,r,r)}(this,t.end);t.next=e,e.prev=t,t=e}return t}}function it(t){return st(t,[])}function st(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 n=[...e,t];if(function(t){return"function"==typeof t.toJSON}(t)){const e=t.toJSON();if(e!==t)return"string"==typeof e?e:st(e,n)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";const n=Math.min(10,t.length),r=t.length-n,i=[];for(let r=0;r<n;++r)i.push(st(t[r],e));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(t,n);return function(t,e){const n=Object.entries(t);if(0===n.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 r=n.map(([t,n])=>t+": "+st(n,e));return"{ "+r.join(", ")+" }"}(t,n)}(t,e);default:return String(t)}}const ot=globalThis.process?function(t,e){return t instanceof e}:function(t,e){if(t instanceof e)return!0;if("object"==typeof t&&null!==t){var n;const r=e.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in t?t[Symbol.toStringTag]:null===(n=t.constructor)||void 0===n?void 0:n.name)){const e=it(t);throw new Error(`Cannot use ${r} "${e}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class at{constructor(t,e="GraphQL request",n={line:1,column:1}){"string"==typeof t||s(!1,`Body must be a string. Received: ${it(t)}.`),this.body=t,this.name=e,this.locationOffset=n,this.locationOffset.line>0||s(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||s(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function lt(t){return ot(t,at)}function At(t,e){const n=new dt(t,e),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function ct(t,e){const n=new dt(t,e);n.expectToken(E.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(E.EOF),r}function ht(t,e){const n=new dt(t,e);n.expectToken(E.SOF);const r=n.parseConstValueLiteral();return n.expectToken(E.EOF),r}function ut(t,e){const n=new dt(t,e);n.expectToken(E.SOF);const r=n.parseTypeReference();return n.expectToken(E.EOF),r}function pt(t){const e=lt(t)?t:new at(t),n=new rt(e),r=new dt(t,{lexer:n});r.expectToken(E.SOF);const i=r.parseSchemaCoordinate();return r.expectToken(E.EOF),i}class dt{constructor(t,e={}){const{lexer:n,...r}=e;if(n)this._lexer=n;else{const e=lt(t)?t:new at(t);this._lexer=new M(e)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(E.NAME);return this.node(t,{kind:C.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:C.DOCUMENT,definitions:this.many(E.SOF,this.parseDefinition,E.EOF)})}parseDefinition(){if(this.peek(E.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(t&&e.kind===E.BRACE_L)throw y(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(e.kind===E.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()}switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw y(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===e.value)return this.parseTypeSystemExtension()}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(E.BRACE_L))return this.node(t,{kind:C.OPERATION_DEFINITION,operation:_.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseDescription(),n=this.parseOperationType();let r;return this.peek(E.NAME)&&(r=this.parseName()),this.node(t,{kind:C.OPERATION_DEFINITION,operation:n,description:e,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(E.NAME);switch(t.value){case"query":return _.QUERY;case"mutation":return _.MUTATION;case"subscription":return _.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(E.PAREN_L,this.parseVariableDefinition,E.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:C.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(E.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(E.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(E.DOLLAR),this.node(t,{kind:C.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:C.SELECTION_SET,selections:this.many(E.BRACE_L,this.parseSelection,E.BRACE_R)})}parseSelection(){return this.peek(E.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let n,r;return this.expectOptionalToken(E.COLON)?(n=e,r=this.parseName()):r=e,this.node(t,{kind:C.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(E.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(E.PAREN_L,e,E.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,n=this.parseName();return this.expectToken(E.COLON),this.node(e,{kind:C.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(E.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(E.NAME)?this.node(t,{kind:C.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:C.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,e=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(t,{kind:C.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:C.FRAGMENT_DEFINITION,description:e,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 E.BRACKET_L:return this.parseList(t);case E.BRACE_L:return this.parseObject(t);case E.INT:return this.advanceLexer(),this.node(e,{kind:C.INT,value:e.value});case E.FLOAT:return this.advanceLexer(),this.node(e,{kind:C.FLOAT,value:e.value});case E.STRING:case E.BLOCK_STRING:return this.parseStringLiteral();case E.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:C.BOOLEAN,value:!0});case"false":return this.node(e,{kind:C.BOOLEAN,value:!1});case"null":return this.node(e,{kind:C.NULL});default:return this.node(e,{kind:C.ENUM,value:e.value})}case E.DOLLAR:if(t){if(this.expectToken(E.DOLLAR),this._lexer.token.kind===E.NAME){const t=this._lexer.token.value;throw y(this._lexer.source,e.start,`Unexpected variable "$${t}" in constant value.`)}throw this.unexpected(e)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:C.STRING,value:t.value,block:t.kind===E.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:C.LIST,values:this.any(E.BRACKET_L,()=>this.parseValueLiteral(t),E.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:C.OBJECT,fields:this.any(E.BRACE_L,()=>this.parseObjectField(t),E.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,n=this.parseName();return this.expectToken(E.COLON),this.node(e,{kind:C.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(E.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(E.AT),this.node(e,{kind:C.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(E.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(E.BRACKET_R),e=this.node(t,{kind:C.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(E.BANG)?this.node(t,{kind:C.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:C.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(E.STRING)||this.peek(E.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(E.BRACE_L,this.parseOperationTypeDefinition,E.BRACE_R);return this.node(t,{kind:C.SCHEMA_DEFINITION,description:e,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(E.COLON);const n=this.parseNamedType();return this.node(t,{kind:C.OPERATION_TYPE_DEFINITION,operation:e,type:n})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(t,{kind:C.SCALAR_TYPE_DEFINITION,description:e,name:n,directives:r})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:C.OBJECT_TYPE_DEFINITION,description:e,name:n,interfaces:r,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(E.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(E.BRACE_L,this.parseFieldDefinition,E.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(E.COLON);const i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:C.FIELD_DEFINITION,description:e,name:n,arguments:r,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(E.PAREN_L,this.parseInputValueDef,E.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),n=this.parseName();this.expectToken(E.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(E.EQUALS)&&(i=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:C.INPUT_VALUE_DEFINITION,description:e,name:n,type:r,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:C.INTERFACE_TYPE_DEFINITION,description:e,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:C.UNION_TYPE_DEFINITION,description:e,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(E.EQUALS)?this.delimitedMany(E.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:C.ENUM_TYPE_DEFINITION,description:e,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(E.BRACE_L,this.parseEnumValueDefinition,E.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(t,{kind:C.ENUM_VALUE_DEFINITION,description:e,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw y(this._lexer.source,this._lexer.token.start,`${ft(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 n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:C.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(E.BRACE_L,this.parseInputValueDef,E.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===E.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();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),n=this.optionalMany(E.BRACE_L,this.parseOperationTypeDefinition,E.BRACE_R);if(0===e.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:C.SCHEMA_EXTENSION,directives:e,operationTypes:n})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(t,{kind:C.SCALAR_TYPE_EXTENSION,name:e,directives:n})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:C.OBJECT_TYPE_EXTENSION,name:e,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:C.INTERFACE_TYPE_EXTENSION,name:e,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:C.UNION_TYPE_EXTENSION,name:e,directives:n,types:r})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:C.ENUM_TYPE_EXTENSION,name:e,directives:n,values:r})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:C.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:n,fields:r})}parseDirectiveDefinitionExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(E.AT);const e=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(t,{kind:C.DIRECTIVE_EXTENSION,name:e,directives:n})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(E.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(t,{kind:C.DIRECTIVE_DEFINITION,description:e,name:n,arguments:r,directives:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(E.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(S,e.value))return e;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,e=this.expectOptionalToken(E.AT),n=this.parseName();let r,i;return!e&&this.expectOptionalToken(E.DOT)&&(r=this.parseName()),(e||r)&&this.expectOptionalToken(E.PAREN_L)&&(i=this.parseName(),this.expectToken(E.COLON),this.expectToken(E.PAREN_R)),e?i?this.node(t,{kind:C.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(t,{kind:C.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(t,{kind:C.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(t,{kind:C.MEMBER_COORDINATE,name:n,memberName:r}):this.node(t,{kind:C.TYPE_COORDINATE,name:n})}node(t,e){return!0!==this._options.noLocation&&(e.loc=new v(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.advanceLexer(),e;throw y(this._lexer.source,e.start,`Expected ${gt(t)}, found ${ft(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const e=this._lexer.token;if(e.kind!==E.NAME||e.value!==t)throw y(this._lexer.source,e.start,`Expected "${t}", found ${ft(e)}.`);this.advanceLexer()}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===E.NAME&&e.value===t&&(this.advanceLexer(),!0)}unexpected(t){const e=null!=t?t:this._lexer.token;return y(this._lexer.source,e.start,`Unexpected ${ft(e)}.`)}any(t,e,n){this.expectToken(t);const r=[];for(;!this.expectOptionalToken(n);)r.push(e.call(this));return r}optionalMany(t,e,n){if(this.expectOptionalToken(t)){const t=[];do{t.push(e.call(this))}while(!this.expectOptionalToken(n));return t}return[]}many(t,e,n){this.expectToken(t);const r=[];do{r.push(e.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(t,e){this.expectOptionalToken(t);const n=[];do{n.push(e.call(this))}while(this.expectOptionalToken(t));return n}advanceLexer(){const{maxTokens:t}=this._options,e=this._lexer.advance();if(e.kind!==E.EOF&&(++this._tokenCounter,void 0!==t&&this._tokenCounter>t))throw y(this._lexer.source,e.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function ft(t){const e=t.value;return gt(t.kind)+(null!=e?` "${e}"`:"")}function gt(t){return D(t)?`"${t}"`:t}function mt(t,e){const[n,r]=e?[t,e]:[void 0,t];let i=" Did you mean ";n&&(i+=n+" ");const s=r.map(t=>`"${t}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}const o=s.slice(0,5),a=o.pop();return i+o.join(", ")+", or "+a+"?"}function yt(t){return t}function vt(t,e){const n=Object.create(null);for(const r of t)n[e(r)]=r;return n}function Ot(t,e,n){const r=Object.create(null);for(const i of t)r[e(i)]=n(i);return r}function bt(t,e){const n=Object.create(null);for(const r of Object.keys(t))n[r]=e(t[r],r);return n}function xt(t,e){let n=0,r=0;for(;n<t.length&&r<e.length;){let i=t.charCodeAt(n),s=e.charCodeAt(r);if(_t(i)&&_t(s)){let o=0;do{++n,o=10*o+i-wt,i=t.charCodeAt(n)}while(_t(i)&&o>0);let a=0;do{++r,a=10*a+s-wt,s=e.charCodeAt(r)}while(_t(s)&&a>0);if(o<a)return-1;if(o>a)return 1}else{if(i<s)return-1;if(i>s)return 1;++n,++r}}return t.length-e.length}const wt=48;function _t(t){return!isNaN(t)&&wt<=t&&t<=57}function St(t,e){const n=Object.create(null),r=new Ct(t),i=Math.floor(.4*t.length)+1;for(const t of e){const e=r.measure(t,i);void 0!==e&&(n[t]=e)}return Object.keys(n).sort((t,e)=>{const r=n[t]-n[e];return 0!==r?r:xt(t,e)})}class Ct{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Et(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)]}measure(t,e){if(this._input===t)return 0;const n=t.toLowerCase();if(this._inputLowerCase===n)return 1;let r=Et(n),i=this._inputArray;if(r.length<i.length){const t=r;r=i,i=t}const s=r.length,o=i.length;if(s-o>e)return;const a=this._rows;for(let t=0;t<=o;t++)a[0][t]=t;for(let t=1;t<=s;t++){const n=a[(t-1)%3],s=a[t%3];let l=s[0]=t;for(let e=1;e<=o;e++){const o=r[t-1]===i[e-1]?0:1;let A=Math.min(n[e]+1,s[e-1]+1,n[e-1]+o);if(t>1&&e>1&&r[t-1]===i[e-2]&&r[t-2]===i[e-1]){const n=a[(t-2)%3][e-2];A=Math.min(A,n+1)}A<l&&(l=A),s[e]=A}if(l>e)return}const l=a[s%3][o];return l<=e?l:void 0}}function Et(t){const e=t.length,n=new Array(e);for(let r=0;r<e;++r)n[r]=t.charCodeAt(r);return n}function Bt(t){if(null==t)return Object.create(null);if(null===Object.getPrototypeOf(t))return t;const e=Object.create(null);for(const[n,r]of Object.entries(t))e[n]=r;return e}const Tt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Pt(t){return kt[t.charCodeAt(0)]}const kt=["\\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"],It=Object.freeze({});function Nt(t,e,n=b){const r=new Map;for(const t of Object.values(C))r.set(t,Ft(e,t));let i,o,a,l=Array.isArray(t),A=[t],c=-1,h=[],u=t;const p=[],d=[];do{c++;const t=c===A.length,y=t&&0!==h.length;if(t){if(o=0===d.length?void 0:p[p.length-1],u=a,a=d.pop(),y)if(l){u=u.slice();let t=0;for(const[e,n]of h){const r=e-t;null===n?(u.splice(r,1),t++):u[r]=n}}else{u={...u};for(const[t,e]of h)u[t]=e}c=i.index,A=i.keys,h=i.edits,l=i.inArray,i=i.prev}else if(a){if(o=l?c:A[c],u=a[o],null==u)continue;p.push(o)}let v;if(!Array.isArray(u)){var f,g;w(u)||s(!1,`Invalid AST Node: ${it(u)}.`);const n=t?null===(f=r.get(u.kind))||void 0===f?void 0:f.leave:null===(g=r.get(u.kind))||void 0===g?void 0:g.enter;if(v=null==n?void 0:n.call(e,u,o,a,p,d),v===It)break;if(!1===v){if(!t){p.pop();continue}}else if(void 0!==v&&(h.push([o,v]),!t)){if(!w(v)){p.pop();continue}u=v}}var m;void 0===v&&y&&h.push([o,u]),t?p.pop():(i={inArray:l,index:c,keys:A,edits:h,prev:i},l=Array.isArray(u),A=l?u:null!==(m=n[u.kind])&&void 0!==m?m:[],c=-1,h=[],a&&d.push(a),a=u)}while(void 0!==i);return 0!==h.length?h[h.length-1][1]:t}function Qt(t){const e=new Array(t.length).fill(null),n=Object.create(null);for(const r of Object.values(C)){let i=!1;const s=new Array(t.length).fill(void 0),o=new Array(t.length).fill(void 0);for(let e=0;e<t.length;++e){const{enter:n,leave:a}=Ft(t[e],r);i||(i=null!=n||null!=a),s[e]=n,o[e]=a}if(!i)continue;const a={enter(...n){const r=n[0];for(let o=0;o<t.length;o++)if(null===e[o]){var i;const a=null===(i=s[o])||void 0===i?void 0:i.apply(t[o],n);if(!1===a)e[o]=r;else if(a===It)e[o]=It;else if(void 0!==a)return a}},leave(...n){const r=n[0];for(let s=0;s<t.length;s++)if(null===e[s]){var i;const r=null===(i=o[s])||void 0===i?void 0:i.apply(t[s],n);if(r===It)e[s]=It;else if(void 0!==r&&!1!==r)return r}else e[s]===r&&(e[s]=null)}};n[r]=a}return n}function Ft(t,e){const n=t[e];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}function Lt(t,e,n){const{enter:r,leave:i}=Ft(t,e);return n?i:r}function Mt(t){return Nt(t,Dt)}const Dt={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Rt(t.definitions,"\n\n")},OperationDefinition:{leave(t){const e=Ht(t.variableDefinitions)?$t("(\n",Rt(t.variableDefinitions,"\n"),"\n)"):$t("(",Rt(t.variableDefinitions,", "),")"),n=$t("",t.description,"\n")+Rt([t.operation,Rt([t.name,e]),Rt(t.directives," ")]," ");return("query"===n?"":n+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:n,directives:r,description:i})=>$t("",i,"\n")+t+": "+e+$t(" = ",n)+$t(" ",Rt(r," "))},SelectionSet:{leave:({selections:t})=>Ut(t)},Field:{leave({alias:t,name:e,arguments:n,directives:r,selectionSet:i}){const s=$t("",t,": ")+e;let o=s+$t("(",Rt(n,", "),")");return o.length>80&&(o=s+$t("(\n",jt(Rt(n,"\n")),"\n)")),Rt([o,Rt(r," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+$t(" ",Rt(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:n})=>Rt(["...",$t("on ",t),Rt(e," "),n]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:n,directives:r,selectionSet:i,description:s})=>$t("",s,"\n")+`fragment ${t}${$t("(",Rt(n,", "),")")} `+`on ${e} ${$t("",Rt(r," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?L(t):`"${t.replace(Tt,Pt)}"`},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+Rt(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+Rt(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+$t("(",Rt(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:n})=>$t("",t,"\n")+Rt(["schema",Rt(e," "),Ut(n)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:n})=>$t("",t,"\n")+Rt(["scalar",e,Rt(n," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:r,fields:i})=>$t("",t,"\n")+Rt(["type",e,$t("implements ",Rt(n," & ")),Rt(r," "),Ut(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:n,type:r,directives:i})=>$t("",t,"\n")+e+(Ht(n)?$t("(\n",jt(Rt(n,"\n")),"\n)"):$t("(",Rt(n,", "),")"))+": "+r+$t(" ",Rt(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:n,defaultValue:r,directives:i})=>$t("",t,"\n")+Rt([e+": "+n,$t("= ",r),Rt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:r,fields:i})=>$t("",t,"\n")+Rt(["interface",e,$t("implements ",Rt(n," & ")),Rt(r," "),Ut(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:n,types:r})=>$t("",t,"\n")+Rt(["union",e,Rt(n," "),$t("= ",Rt(r," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:n,values:r})=>$t("",t,"\n")+Rt(["enum",e,Rt(n," "),Ut(r)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:n})=>$t("",t,"\n")+Rt([e,Rt(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:n,fields:r})=>$t("",t,"\n")+Rt(["input",e,Rt(n," "),Ut(r)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:n,directives:r,repeatable:i,locations:s})=>$t("",t,"\n")+"directive @"+e+(Ht(n)?$t("(\n",jt(Rt(n,"\n")),"\n)"):$t("(",Rt(n,", "),")"))+$t(" ",Rt(r," "))+(i?" repeatable":"")+" on "+Rt(s," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>Rt(["extend schema",Rt(t," "),Ut(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>Rt(["extend scalar",t,Rt(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:r})=>Rt(["extend type",t,$t("implements ",Rt(e," & ")),Rt(n," "),Ut(r)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:r})=>Rt(["extend interface",t,$t("implements ",Rt(e," & ")),Rt(n," "),Ut(r)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:n})=>Rt(["extend union",t,Rt(e," "),$t("= ",Rt(n," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:n})=>Rt(["extend enum",t,Rt(e," "),Ut(n)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:n})=>Rt(["extend input",t,Rt(e," "),Ut(n)]," ")},DirectiveExtension:{leave:({name:t,directives:e})=>Rt(["extend directive @"+t,Rt(e," ")]," ")},TypeCoordinate:{leave:({name:t})=>t},MemberCoordinate:{leave:({name:t,memberName:e})=>Rt([t,$t(".",e)])},ArgumentCoordinate:{leave:({name:t,fieldName:e,argumentName:n})=>Rt([t,$t(".",e),$t("(",n,":)")])},DirectiveCoordinate:{leave:({name:t})=>Rt(["@",t])},DirectiveArgumentCoordinate:{leave:({name:t,argumentName:e})=>Rt(["@",t,$t("(",e,":)")])}};function Rt(t,e=""){var n;return null!==(n=null==t?void 0:t.filter(t=>t).join(e))&&void 0!==n?n:""}function Ut(t){return $t("{\n",jt(Rt(t,"\n")),"\n}")}function $t(t,e,n=""){return null!=e&&""!==e?t+e+n:""}function jt(t){return $t("  ",t.replace(/\n/g,"\n  "))}function Ht(t){var e;return null!==(e=null==t?void 0:t.some(t=>t.includes("\n")))&&void 0!==e&&e}function Vt(t,e){switch(t.kind){case C.NULL:return null;case C.INT:return parseInt(t.value,10);case C.FLOAT:return parseFloat(t.value);case C.STRING:case C.ENUM:case C.BOOLEAN:return t.value;case C.LIST:return t.values.map(t=>Vt(t,e));case C.OBJECT:return Ot(t.fields,t=>t.name.value,t=>Vt(t.value,e));case C.VARIABLE:return null==e?void 0:e[t.name.value]}}function Xt(t){if(null!=t||s(!1,"Must provide name."),"string"==typeof t||s(!1,"Expected name to be a string."),0===t.length)throw new d("Expected name to be a non-empty string.");for(let e=1;e<t.length;++e)if(!I(t.charCodeAt(e)))throw new d(`Names must only contain [_a-zA-Z0-9] but "${t}" does not.`);if(!k(t.charCodeAt(0)))throw new d(`Names must start with [_a-zA-Z] but "${t}" does not.`);return t}function zt(t){if("true"===t||"false"===t||"null"===t)throw new d(`Enum values cannot be named: ${t}`);return Xt(t)}function Gt(t){return Wt(t)||Kt(t)||Jt(t)||ee(t)||re(t)||se(t)||ae(t)||Ae(t)}function Yt(t){if(!Gt(t))throw new Error(`Expected ${it(t)} to be a GraphQL type.`);return t}function Wt(t){return ot(t,Ne)}function Zt(t){if(!Wt(t))throw new Error(`Expected ${it(t)} to be a GraphQL Scalar type.`);return t}function Kt(t){return ot(t,Qe)}function qt(t){if(!Kt(t))throw new Error(`Expected ${it(t)} to be a GraphQL Object type.`);return t}function Jt(t){return ot(t,je)}function te(t){if(!Jt(t))throw new Error(`Expected ${it(t)} to be a GraphQL Interface type.`);return t}function ee(t){return ot(t,He)}function ne(t){if(!ee(t))throw new Error(`Expected ${it(t)} to be a GraphQL Union type.`);return t}function re(t){return ot(t,Xe)}function ie(t){if(!re(t))throw new Error(`Expected ${it(t)} to be a GraphQL Enum type.`);return t}function se(t){return ot(t,Ye)}function oe(t){if(!se(t))throw new Error(`Expected ${it(t)} to be a GraphQL Input Object type.`);return t}function ae(t){return ot(t,be)}function le(t){if(!ae(t))throw new Error(`Expected ${it(t)} to be a GraphQL List type.`);return t}function Ae(t){return ot(t,xe)}function ce(t){if(!Ae(t))throw new Error(`Expected ${it(t)} to be a GraphQL Non-Null type.`);return t}function he(t){return Wt(t)||re(t)||se(t)||we(t)&&he(t.ofType)}function ue(t){if(!he(t))throw new Error(`Expected ${it(t)} to be a GraphQL input type.`);return t}function pe(t){return Wt(t)||Kt(t)||Jt(t)||ee(t)||re(t)||we(t)&&pe(t.ofType)}function de(t){if(!pe(t))throw new Error(`Expected ${it(t)} to be a GraphQL output type.`);return t}function fe(t){return Wt(t)||re(t)}function ge(t){if(!fe(t))throw new Error(`Expected ${it(t)} to be a GraphQL leaf type.`);return t}function me(t){return Kt(t)||Jt(t)||ee(t)}function ye(t){if(!me(t))throw new Error(`Expected ${it(t)} to be a GraphQL composite type.`);return t}function ve(t){return Jt(t)||ee(t)}function Oe(t){if(!ve(t))throw new Error(`Expected ${it(t)} to be a GraphQL abstract type.`);return t}class be{constructor(t){Gt(t)||s(!1,`Expected ${it(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class xe{constructor(t){Se(t)||s(!1,`Expected ${it(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function we(t){return ae(t)||Ae(t)}function _e(t){if(!we(t))throw new Error(`Expected ${it(t)} to be a GraphQL wrapping type.`);return t}function Se(t){return Gt(t)&&!Ae(t)}function Ce(t){if(!Se(t))throw new Error(`Expected ${it(t)} to be a GraphQL nullable type.`);return t}function Ee(t){if(t)return Ae(t)?t.ofType:t}function Be(t){return Wt(t)||Kt(t)||Jt(t)||ee(t)||re(t)||se(t)}function Te(t){if(!Be(t))throw new Error(`Expected ${it(t)} to be a GraphQL named type.`);return t}function Pe(t){if(t){let e=t;for(;we(e);)e=e.ofType;return e}}function ke(t){return"function"==typeof t?t():t}function Ie(t){return"function"==typeof t?t():t}class Ne{constructor(t){var e,n,r,i;const o=null!==(e=t.parseValue)&&void 0!==e?e:yt;this.name=Xt(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=null!==(n=t.serialize)&&void 0!==n?n:yt,this.parseValue=o,this.parseLiteral=null!==(r=t.parseLiteral)&&void 0!==r?r:(t,e)=>o(Vt(t,e)),this.extensions=Bt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(i=t.extensionASTNodes)&&void 0!==i?i:[],null==t.specifiedByURL||"string"==typeof t.specifiedByURL||s(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${it(t.specifiedByURL)}.`),null==t.serialize||"function"==typeof t.serialize||s(!1,`${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(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){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:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Qe{constructor(t){var e;this.name=Xt(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=Bt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._fields=()=>Le(t),this._interfaces=()=>Fe(t),null==t.isTypeOf||"function"==typeof t.isTypeOf||s(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${it(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Re(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Fe(t){var e;const n=ke(null!==(e=t.interfaces)&&void 0!==e?e:[]);return Array.isArray(n)||s(!1,`${t.name} interfaces must be an Array or a function which returns an Array.`),n}function Le(t){const e=Ie(t.fields);return De(e)||s(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),bt(e,(e,n)=>{var r;De(e)||s(!1,`${t.name}.${n} field config must be an object.`),null==e.resolve||"function"==typeof e.resolve||s(!1,`${t.name}.${n} field resolver must be a function if provided, but got: ${it(e.resolve)}.`);const i=null!==(r=e.args)&&void 0!==r?r:{};return De(i)||s(!1,`${t.name}.${n} args must be an object with argument names as keys.`),{name:Xt(n),description:e.description,type:e.type,args:Me(i),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:Bt(e.extensions),astNode:e.astNode}})}function Me(t){return Object.entries(t).map(([t,e])=>({name:Xt(t),description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:Bt(e.extensions),astNode:e.astNode}))}function De(t){return a(t)&&!Array.isArray(t)}function Re(t){return bt(t,t=>({description:t.description,type:t.type,args:Ue(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Ue(t){return Ot(t,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function $e(t){return Ae(t.type)&&void 0===t.defaultValue}class je{constructor(t){var e;this.name=Xt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Bt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._fields=Le.bind(void 0,t),this._interfaces=Fe.bind(void 0,t),null==t.resolveType||"function"==typeof t.resolveType||s(!1,`${this.name} must provide "resolveType" as a function, but got: ${it(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Re(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class He{constructor(t){var e;this.name=Xt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Bt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._types=Ve.bind(void 0,t),null==t.resolveType||"function"==typeof t.resolveType||s(!1,`${this.name} must provide "resolveType" as a function, but got: ${it(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ve(t){const e=ke(t.types);return Array.isArray(e)||s(!1,`Must provide Array of types or a function which returns such an array for Union ${t.name}.`),e}class Xe{constructor(t){var e;this.name=Xt(t.name),this.description=t.description,this.extensions=Bt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._values="function"==typeof t.values?t.values:Ge(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=Ge(this.name,this._values())),this._values}getValue(t){return null===this._nameLookup&&(this._nameLookup=vt(this.getValues(),t=>t.name)),this._nameLookup[t]}serialize(t){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(t=>[t.value,t])));const e=this._valueLookup.get(t);if(void 0===e)throw new d(`Enum "${this.name}" cannot represent value: ${it(t)}`);return e.name}parseValue(t){if("string"!=typeof t){const e=it(t);throw new d(`Enum "${this.name}" cannot represent non-string value: ${e}.`+ze(this,e))}const e=this.getValue(t);if(null==e)throw new d(`Value "${t}" does not exist in "${this.name}" enum.`+ze(this,t));return e.value}parseLiteral(t,e){if(t.kind!==C.ENUM){const e=Mt(t);throw new d(`Enum "${this.name}" cannot represent non-enum value: ${e}.`+ze(this,e),{nodes:t})}const n=this.getValue(t.value);if(null==n){const e=Mt(t);throw new d(`Value "${e}" does not exist in "${this.name}" enum.`+ze(this,e),{nodes:t})}return n.value}toConfig(){const t=Ot(this.getValues(),t=>t.name,t=>({description:t.description,value:t.value,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ze(t,e){return mt("the enum value",St(e,t.getValues().map(t=>t.name)))}function Ge(t,e){return De(e)||s(!1,`${t} values must be an object with value names as keys.`),Object.entries(e).map(([e,n])=>(De(n)||s(!1,`${t}.${e} must refer to an object with a "value" key representing an internal value but got: ${it(n)}.`),{name:zt(e),description:n.description,value:void 0!==n.value?n.value:e,deprecationReason:n.deprecationReason,extensions:Bt(n.extensions),astNode:n.astNode}))}class Ye{constructor(t){var e,n;this.name=Xt(t.name),this.description=t.description,this.extensions=Bt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this.isOneOf=null!==(n=t.isOneOf)&&void 0!==n&&n,this._fields=We.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const t=bt(this.getFields(),t=>({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:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function We(t){const e=Ie(t.fields);return De(e)||s(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),bt(e,(e,n)=>(!("resolve"in e)||s(!1,`${t.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:Xt(n),description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:Bt(e.extensions),astNode:e.astNode}))}function Ze(t){return Ae(t.type)&&void 0===t.defaultValue}function Ke(t,e){return t===e||(Ae(t)&&Ae(e)||!(!ae(t)||!ae(e)))&&Ke(t.ofType,e.ofType)}function qe(t,e,n){return e===n||(Ae(n)?!!Ae(e)&&qe(t,e.ofType,n.ofType):Ae(e)?qe(t,e.ofType,n):ae(n)?!!ae(e)&&qe(t,e.ofType,n.ofType):!ae(e)&&ve(n)&&(Jt(e)||Kt(e))&&t.isSubType(n,e))}function Je(t,e,n){return e===n||(ve(e)?ve(n)?t.getPossibleTypes(e).some(e=>t.isSubType(n,e)):t.isSubType(e,n):!!ve(n)&&t.isSubType(n,e))}const tn=2147483647,en=-2147483648,nn=new Ne({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(t){const e=cn(t);if("boolean"==typeof e)return e?1:0;let n=e;if("string"==typeof e&&""!==e&&(n=Number(e)),"number"!=typeof n||!Number.isInteger(n))throw new d(`Int cannot represent non-integer value: ${it(e)}`);if(n>tn||n<en)throw new d("Int cannot represent non 32-bit signed integer value: "+it(e));return n},parseValue(t){if("number"!=typeof t||!Number.isInteger(t))throw new d(`Int cannot represent non-integer value: ${it(t)}`);if(t>tn||t<en)throw new d(`Int cannot represent non 32-bit signed integer value: ${t}`);return t},parseLiteral(t){if(t.kind!==C.INT)throw new d(`Int cannot represent non-integer value: ${Mt(t)}`,{nodes:t});const e=parseInt(t.value,10);if(e>tn||e<en)throw new d(`Int cannot represent non 32-bit signed integer value: ${t.value}`,{nodes:t});return e}}),rn=new Ne({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(t){const e=cn(t);if("boolean"==typeof e)return e?1:0;let n=e;if("string"==typeof e&&""!==e&&(n=Number(e)),"number"!=typeof n||!Number.isFinite(n))throw new d(`Float cannot represent non numeric value: ${it(e)}`);return n},parseValue(t){if("number"!=typeof t||!Number.isFinite(t))throw new d(`Float cannot represent non numeric value: ${it(t)}`);return t},parseLiteral(t){if(t.kind!==C.FLOAT&&t.kind!==C.INT)throw new d(`Float cannot represent non numeric value: ${Mt(t)}`,t);return parseFloat(t.value)}}),sn=new Ne({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(t){const e=cn(t);if("string"==typeof e)return e;if("boolean"==typeof e)return e?"true":"false";if("number"==typeof e&&Number.isFinite(e))return e.toString();throw new d(`String cannot represent value: ${it(t)}`)},parseValue(t){if("string"!=typeof t)throw new d(`String cannot represent a non string value: ${it(t)}`);return t},parseLiteral(t){if(t.kind!==C.STRING)throw new d(`String cannot represent a non string value: ${Mt(t)}`,{nodes:t});return t.value}}),on=new Ne({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(t){const e=cn(t);if("boolean"==typeof e)return e;if(Number.isFinite(e))return 0!==e;throw new d(`Boolean cannot represent a non boolean value: ${it(e)}`)},parseValue(t){if("boolean"!=typeof t)throw new d(`Boolean cannot represent a non boolean value: ${it(t)}`);return t},parseLiteral(t){if(t.kind!==C.BOOLEAN)throw new d(`Boolean cannot represent a non boolean value: ${Mt(t)}`,{nodes:t});return t.value}}),an=new Ne({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(t){const e=cn(t);if("string"==typeof e)return e;if(Number.isInteger(e))return String(e);throw new d(`ID cannot represent value: ${it(t)}`)},parseValue(t){if("string"==typeof t)return t;if("number"==typeof t&&Number.isInteger(t))return t.toString();throw new d(`ID cannot represent value: ${it(t)}`)},parseLiteral(t){if(t.kind!==C.STRING&&t.kind!==C.INT)throw new d("ID cannot represent a non-string and non-integer value: "+Mt(t),{nodes:t});return t.value}}),ln=Object.freeze([sn,nn,rn,on,an]);function An(t){return ln.some(({name:e})=>t.name===e)}function cn(t){if(a(t)){if("function"==typeof t.valueOf){const e=t.valueOf();if(!a(e))return e}if("function"==typeof t.toJSON)return t.toJSON()}return t}function hn(t){return ot(t,pn)}function un(t){if(!hn(t))throw new Error(`Expected ${it(t)} to be a GraphQL directive.`);return t}class pn{constructor(t){var e,n,r;this.name=Xt(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=null!==(e=t.isRepeatable)&&void 0!==e&&e,this.deprecationReason=t.deprecationReason,this.extensions=Bt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(n=t.extensionASTNodes)&&void 0!==n?n:[],Array.isArray(t.locations)||s(!1,`@${t.name} locations must be an Array.`);const i=null!==(r=t.args)&&void 0!==r?r:{};a(i)&&!Array.isArray(i)||s(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=Me(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Ue(this.args),isRepeatable:this.isRepeatable,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const dn=new pn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[S.FIELD,S.FRAGMENT_SPREAD,S.INLINE_FRAGMENT],args:{if:{type:new xe(on),description:"Included when true."}}}),fn=new pn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[S.FIELD,S.FRAGMENT_SPREAD,S.INLINE_FRAGMENT],args:{if:{type:new xe(on),description:"Skipped when true."}}}),gn="No longer supported",mn=new pn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[S.FIELD_DEFINITION,S.ARGUMENT_DEFINITION,S.INPUT_FIELD_DEFINITION,S.ENUM_VALUE,S.DIRECTIVE_DEFINITION],args:{reason:{type:sn,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:gn}}}),yn=new pn({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[S.SCALAR],args:{url:{type:new xe(sn),description:"The URL that specifies the behavior of this scalar."}}}),vn=new pn({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[S.INPUT_OBJECT],args:{}}),On=Object.freeze([dn,fn,mn,yn,vn]);function bn(t){return On.some(({name:e})=>e===t.name)}function xn(t){return"object"==typeof t&&"function"==typeof(null==t?void 0:t[Symbol.iterator])}function wn(t,e){if(Ae(e)){const n=wn(t,e.ofType);return(null==n?void 0:n.kind)===C.NULL?null:n}if(null===t)return{kind:C.NULL};if(void 0===t)return null;if(ae(e)){const n=e.ofType;if(xn(t)){const e=[];for(const r of t){const t=wn(r,n);null!=t&&e.push(t)}return{kind:C.LIST,values:e}}return wn(t,n)}if(se(e)){if(!a(t))return null;const n=[];for(const r of Object.values(e.getFields())){const e=wn(t[r.name],r.type);e&&n.push({kind:C.OBJECT_FIELD,name:{kind:C.NAME,value:r.name},value:e})}return{kind:C.OBJECT,fields:n}}if(fe(e)){const n=e.serialize(t);if(null==n)return null;if("boolean"==typeof n)return{kind:C.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const t=String(n);return _n.test(t)?{kind:C.INT,value:t}:{kind:C.FLOAT,value:t}}if("string"==typeof n)return re(e)?{kind:C.ENUM,value:n}:e===an&&_n.test(n)?{kind:C.INT,value:n}:{kind:C.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${it(n)}.`)}l(!1,"Unexpected input type: "+it(e))}const _n=/^-?(?:0|[1-9][0-9]*)$/,Sn=new Qe({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:()=>({description:{type:sn,resolve:t=>t.description},types:{description:"A list of all types supported by this server.",type:new xe(new be(new xe(Bn))),resolve:t=>Object.values(t.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new xe(Bn),resolve:t=>t.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Bn,resolve:t=>t.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Bn,resolve:t=>t.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new xe(new be(new xe(Cn))),args:{includeDeprecated:{type:new xe(on),defaultValue:!1}},resolve:(t,{includeDeprecated:e})=>e?t.getDirectives():t.getDirectives().filter(t=>null==t.deprecationReason)}})}),Cn=new Qe({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:()=>({name:{type:new xe(sn),resolve:t=>t.name},description:{type:sn,resolve:t=>t.description},isRepeatable:{type:new xe(on),resolve:t=>t.isRepeatable},locations:{type:new xe(new be(new xe(En))),resolve:t=>t.locations},args:{type:new xe(new be(new xe(Pn))),args:{includeDeprecated:{type:on,defaultValue:!1}},resolve:(t,{includeDeprecated:e})=>e?t.args:t.args.filter(t=>null==t.deprecationReason)},isDeprecated:{type:new xe(on),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:sn,resolve:t=>t.deprecationReason}})}),En=new Xe({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:S.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:S.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:S.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:S.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:S.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:S.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:S.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:S.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:S.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:S.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:S.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:S.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:S.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:S.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:S.UNION,description:"Location adjacent to a union definition."},ENUM:{value:S.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:S.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:S.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:S.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."},DIRECTIVE_DEFINITION:{value:S.DIRECTIVE_DEFINITION,description:"Location adjacent to a directive definition."}}}),Bn=new Qe({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:()=>({kind:{type:new xe(Nn),resolve:t=>Wt(t)?In.SCALAR:Kt(t)?In.OBJECT:Jt(t)?In.INTERFACE:ee(t)?In.UNION:re(t)?In.ENUM:se(t)?In.INPUT_OBJECT:ae(t)?In.LIST:Ae(t)?In.NON_NULL:void l(!1,`Unexpected type: "${it(t)}".`)},name:{type:sn,resolve:t=>"name"in t?t.name:void 0},description:{type:sn,resolve:t=>"description"in t?t.description:void 0},specifiedByURL:{type:sn,resolve:t=>"specifiedByURL"in t?t.specifiedByURL:void 0},fields:{type:new be(new xe(Tn)),args:{includeDeprecated:{type:on,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(Kt(t)||Jt(t)){const n=Object.values(t.getFields());return e?n:n.filter(t=>null==t.deprecationReason)}}},interfaces:{type:new be(new xe(Bn)),resolve(t){if(Kt(t)||Jt(t))return t.getInterfaces()}},possibleTypes:{type:new be(new xe(Bn)),resolve(t,e,n,{schema:r}){if(ve(t))return r.getPossibleTypes(t)}},enumValues:{type:new be(new xe(kn)),args:{includeDeprecated:{type:on,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(re(t)){const n=t.getValues();return e?n:n.filter(t=>null==t.deprecationReason)}}},inputFields:{type:new be(new xe(Pn)),args:{includeDeprecated:{type:on,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(se(t)){const n=Object.values(t.getFields());return e?n:n.filter(t=>null==t.deprecationReason)}}},ofType:{type:Bn,resolve:t=>"ofType"in t?t.ofType:void 0},isOneOf:{type:on,resolve:t=>{if(se(t))return t.isOneOf}}})}),Tn=new Qe({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:()=>({name:{type:new xe(sn),resolve:t=>t.name},description:{type:sn,resolve:t=>t.description},args:{type:new xe(new be(new xe(Pn))),args:{includeDeprecated:{type:on,defaultValue:!1}},resolve:(t,{includeDeprecated:e})=>e?t.args:t.args.filter(t=>null==t.deprecationReason)},type:{type:new xe(Bn),resolve:t=>t.type},isDeprecated:{type:new xe(on),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:sn,resolve:t=>t.deprecationReason}})}),Pn=new Qe({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:()=>({name:{type:new xe(sn),resolve:t=>t.name},description:{type:sn,resolve:t=>t.description},type:{type:new xe(Bn),resolve:t=>t.type},defaultValue:{type:sn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(t){const{type:e,defaultValue:n}=t,r=wn(n,e);return r?Mt(r):null}},isDeprecated:{type:new xe(on),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:sn,resolve:t=>t.deprecationReason}})}),kn=new Qe({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:()=>({name:{type:new xe(sn),resolve:t=>t.name},description:{type:sn,resolve:t=>t.description},isDeprecated:{type:new xe(on),resolve:t=>null!=t.deprecationReason},deprecationReason:{type:sn,resolve:t=>t.deprecationReason}})});var In;!function(t){t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.INPUT_OBJECT="INPUT_OBJECT",t.LIST="LIST",t.NON_NULL="NON_NULL"}(In||(In={}));const Nn=new Xe({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:In.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:In.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:In.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:In.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:In.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:In.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:In.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:In.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Qn={name:"__schema",type:new xe(Sn),description:"Access the current type schema of this server.",args:[],resolve:(t,e,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Fn={name:"__type",type:Bn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new xe(sn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(t,{name:e},n,{schema:r})=>r.getType(e),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ln={name:"__typename",type:new xe(sn),description:"The name of the current Object type at runtime.",args:[],resolve:(t,e,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Mn=Object.freeze([Sn,Cn,En,Bn,Tn,Pn,kn,Nn]);function Dn(t){return Mn.some(({name:e})=>t.name===e)}function Rn(t){return ot(t,$n)}function Un(t){if(!Rn(t))throw new Error(`Expected ${it(t)} to be a GraphQL schema.`);return t}class $n{constructor(t){var e,n;this.__validationErrors=!0===t.assumeValid?[]:void 0,a(t)||s(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||s(!1,`"types" must be Array if provided but got: ${it(t.types)}.`),!t.directives||Array.isArray(t.directives)||s(!1,`"directives" must be Array if provided but got: ${it(t.directives)}.`),this.description=t.description,this.extensions=Bt(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=null!==(e=t.extensionASTNodes)&&void 0!==e?e:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=null!==(n=t.directives)&&void 0!==n?n:On;const r=new Set(t.types);if(null!=t.types)for(const e of t.types)r.delete(e),jn(e,r);null!=this._queryType&&jn(this._queryType,r),null!=this._mutationType&&jn(this._mutationType,r),null!=this._subscriptionType&&jn(this._subscriptionType,r);for(const t of this._directives)if(hn(t))for(const e of t.args)jn(e.type,r);jn(Sn,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const t of r){if(null==t)continue;const e=t.name;if(e||s(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[e])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${e}".`);if(this._typeMap[e]=t,Jt(t)){for(const e of t.getInterfaces())if(Jt(e)){let n=this._implementationsMap[e.name];void 0===n&&(n=this._implementationsMap[e.name]={objects:[],interfaces:[]}),n.interfaces.push(t)}}else if(Kt(t))for(const e of t.getInterfaces())if(Jt(e)){let n=this._implementationsMap[e.name];void 0===n&&(n=this._implementationsMap[e.name]={objects:[],interfaces:[]}),n.objects.push(t)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case _.QUERY:return this.getQueryType();case _.MUTATION:return this.getMutationType();case _.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return ee(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){const e=this._implementationsMap[t.name];return null!=e?e:{objects:[],interfaces:[]}}isSubType(t,e){let n=this._subTypeMap[t.name];if(void 0===n){if(n=Object.create(null),ee(t))for(const e of t.getTypes())n[e.name]=!0;else{const e=this.getImplementations(t);for(const t of e.objects)n[t.name]=!0;for(const t of e.interfaces)n[t.name]=!0}this._subTypeMap[t.name]=n}return void 0!==n[e.name]}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(e=>e.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function jn(t,e){const n=Pe(t);if(!e.has(n))if(e.add(n),ee(n))for(const t of n.getTypes())jn(t,e);else if(Kt(n)||Jt(n)){for(const t of n.getInterfaces())jn(t,e);for(const t of Object.values(n.getFields())){jn(t.type,e);for(const n of t.args)jn(n.type,e)}}else if(se(n))for(const t of Object.values(n.getFields()))jn(t.type,e);return e}function Hn(t){if(Un(t),t.__validationErrors)return t.__validationErrors;const e=new Xn(t);!function(t){const e=t.schema,n=e.getQueryType();if(n){if(!Kt(n)){var r;t.reportError(`Query root type must be Object type, it cannot be ${it(n)}.`,null!==(r=zn(e,_.QUERY))&&void 0!==r?r:n.astNode)}}else t.reportError("Query root type must be provided.",e.astNode);const i=e.getMutationType();var s;i&&!Kt(i)&&t.reportError(`Mutation root type must be Object type if provided, it cannot be ${it(i)}.`,null!==(s=zn(e,_.MUTATION))&&void 0!==s?s:i.astNode);const o=e.getSubscriptionType();var a;o&&!Kt(o)&&t.reportError(`Subscription root type must be Object type if provided, it cannot be ${it(o)}.`,null!==(a=zn(e,_.SUBSCRIPTION))&&void 0!==a?a:o.astNode)}(e),function(t){for(const n of t.schema.getDirectives())if(hn(n)){Gn(t,n),0===n.locations.length&&t.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args){var e;Gn(t,r),he(r.type)||t.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${it(r.type)}.`,r.astNode),$e(r)&&null!=r.deprecationReason&&t.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[ir(r.astNode),null===(e=r.astNode)||void 0===e?void 0:e.type])}}else t.reportError(`Expected directive but got: ${it(n)}.`,null==n?void 0:n.astNode)}(e),function(t){const e=function(t){const e=Object.create(null),n=[],r=Object.create(null);return function i(s){if(e[s.name])return;e[s.name]=!0,r[s.name]=n.length;const o=Object.values(s.getFields());for(const e of o)if(Ae(e.type)&&se(e.type.ofType)){const s=e.type.ofType,o=r[s.name];if(n.push(e),void 0===o)i(s);else{const e=n.slice(o),r=e.map(t=>t.name).join(".");t.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${r}".`,e.map(t=>t.astNode))}n.pop()}r[s.name]=void 0}}(t),n=t.schema.getTypeMap();for(const r of Object.values(n))Be(r)?(Dn(r)||Gn(t,r),Kt(r)||Jt(r)?(Yn(t,r),Wn(t,r)):ee(r)?qn(t,r):re(r)?Jn(t,r):se(r)&&(tr(t,r),e(r))):t.reportError(`Expected GraphQL named type but got: ${it(r)}.`,r.astNode)}(e);const n=e.getErrors();return t.__validationErrors=n,n}function Vn(t){const e=Hn(t);if(0!==e.length)throw new Error(e.map(t=>t.message).join("\n\n"))}class Xn{constructor(t){this._errors=[],this.schema=t}reportError(t,e){const n=Array.isArray(e)?e.filter(Boolean):e;this._errors.push(new d(t,{nodes:n}))}getErrors(){return this._errors}}function zn(t,e){var n;return null===(n=[t.astNode,...t.extensionASTNodes].flatMap(t=>{var e;return null!==(e=null==t?void 0:t.operationTypes)&&void 0!==e?e:[]}).find(t=>t.operation===e))||void 0===n?void 0:n.type}function Gn(t,e){e.name.startsWith("__")&&t.reportError(`Name "${e.name}" must not begin with "__", which is reserved by GraphQL introspection.`,e.astNode)}function Yn(t,e){const n=Object.values(e.getFields());0===n.length&&t.reportError(`Type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const o of n){var r;Gn(t,o),pe(o.type)||t.reportError(`The type of ${e.name}.${o.name} must be Output Type but got: ${it(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type);for(const n of o.args){const r=n.name;var i,s;Gn(t,n),he(n.type)||t.reportError(`The type of ${e.name}.${o.name}(${r}:) must be Input Type but got: ${it(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type),$e(n)&&null!=n.deprecationReason&&t.reportError(`Required argument ${e.name}.${o.name}(${r}:) cannot be deprecated.`,[ir(n.astNode),null===(s=n.astNode)||void 0===s?void 0:s.type])}}}function Wn(t,e){const n=Object.create(null);for(const r of e.getInterfaces())Jt(r)?e!==r?n[r.name]?t.reportError(`Type ${e.name} can only implement ${r.name} once.`,nr(e,r)):(n[r.name]=!0,Kn(t,e,r),Zn(t,e,r)):t.reportError(`Type ${e.name} cannot implement itself because it would create a circular reference.`,nr(e,r)):t.reportError(`Type ${it(e)} must only implement Interface types, it cannot implement ${it(r)}.`,nr(e,r))}function Zn(t,e,n){const r=e.getFields();for(const l of Object.values(n.getFields())){const A=l.name,c=r[A];if(c){var i,s;qe(t.schema,c.type,l.type)||t.reportError(`Interface field ${n.name}.${A} expects type ${it(l.type)} but ${e.name}.${A} is type ${it(c.type)}.`,[null===(i=l.astNode)||void 0===i?void 0:i.type,null===(s=c.astNode)||void 0===s?void 0:s.type]);for(const r of l.args){const i=r.name,s=c.args.find(t=>t.name===i);var o,a;s?Ke(r.type,s.type)||t.reportError(`Interface field argument ${n.name}.${A}(${i}:) expects type ${it(r.type)} but ${e.name}.${A}(${i}:) is type ${it(s.type)}.`,[null===(o=r.astNode)||void 0===o?void 0:o.type,null===(a=s.astNode)||void 0===a?void 0:a.type]):t.reportError(`Interface field argument ${n.name}.${A}(${i}:) expected but ${e.name}.${A} does not provide it.`,[r.astNode,c.astNode])}for(const r of c.args){const i=r.name;!l.args.find(t=>t.name===i)&&$e(r)&&t.reportError(`Object field ${e.name}.${A} includes required argument ${i} that is missing from the Interface field ${n.name}.${A}.`,[r.astNode,l.astNode])}}else t.reportError(`Interface field ${n.name}.${A} expected but ${e.name} does not provide it.`,[l.astNode,e.astNode,...e.extensionASTNodes])}}function Kn(t,e,n){const r=e.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||t.reportError(i===e?`Type ${e.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${e.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...nr(n,i),...nr(e,n)])}function qn(t,e){const n=e.getTypes();0===n.length&&t.reportError(`Union type ${e.name} must define one or more member types.`,[e.astNode,...e.extensionASTNodes]);const r=Object.create(null);for(const i of n)r[i.name]?t.reportError(`Union type ${e.name} can only include type ${i.name} once.`,rr(e,i.name)):(r[i.name]=!0,Kt(i)||t.reportError(`Union type ${e.name} can only include Object types, it cannot include ${it(i)}.`,rr(e,String(i))))}function Jn(t,e){const n=e.getValues();0===n.length&&t.reportError(`Enum type ${e.name} must define one or more values.`,[e.astNode,...e.extensionASTNodes]);for(const e of n)Gn(t,e)}function tr(t,e){const n=Object.values(e.getFields());0===n.length&&t.reportError(`Input Object type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const s of n){var r,i;Gn(t,s),he(s.type)||t.reportError(`The type of ${e.name}.${s.name} must be Input Type but got: ${it(s.type)}.`,null===(r=s.astNode)||void 0===r?void 0:r.type),Ze(s)&&null!=s.deprecationReason&&t.reportError(`Required input field ${e.name}.${s.name} cannot be deprecated.`,[ir(s.astNode),null===(i=s.astNode)||void 0===i?void 0:i.type]),e.isOneOf&&er(e,s,t)}}function er(t,e,n){var r;Ae(e.type)&&n.reportError(`OneOf input field ${t.name}.${e.name} must be nullable.`,null===(r=e.astNode)||void 0===r?void 0:r.type),void 0!==e.defaultValue&&n.reportError(`OneOf input field ${t.name}.${e.name} cannot have a default value.`,e.astNode)}function nr(t,e){const{astNode:n,extensionASTNodes:r}=t;return(null!=n?[n,...r]:r).flatMap(t=>{var e;return null!==(e=t.interfaces)&&void 0!==e?e:[]}).filter(t=>t.name.value===e.name)}function rr(t,e){const{astNode:n,extensionASTNodes:r}=t;return(null!=n?[n,...r]:r).flatMap(t=>{var e;return null!==(e=t.types)&&void 0!==e?e:[]}).filter(t=>t.name.value===e)}function ir(t){var e;return null==t||null===(e=t.directives)||void 0===e?void 0:e.find(t=>t.name.value===mn.name)}function sr(t,e){switch(e.kind){case C.LIST_TYPE:{const n=sr(t,e.type);return n&&new be(n)}case C.NON_NULL_TYPE:{const n=sr(t,e.type);return n&&new xe(n)}case C.NAMED_TYPE:return t.getType(e.name.value)}}class or{constructor(t,e,n){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!=n?n:ar,e&&(he(e)&&this._inputTypeStack.push(e),me(e)&&this._parentTypeStack.push(e),pe(e)&&this._typeStack.push(e))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){const e=this._schema;switch(t.kind){case C.SELECTION_SET:{const t=Pe(this.getType());this._parentTypeStack.push(me(t)?t:void 0);break}case C.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(e,n,t),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(pe(i)?i:void 0);break}case C.DIRECTIVE:this._directive=e.getDirective(t.name.value);break;case C.OPERATION_DEFINITION:{const n=e.getRootType(t.operation);this._typeStack.push(Kt(n)?n:void 0);break}case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:{const n=t.typeCondition,r=n?sr(e,n):Pe(this.getType());this._typeStack.push(pe(r)?r:void 0);break}case C.VARIABLE_DEFINITION:{const n=sr(e,t.type);this._inputTypeStack.push(he(n)?n:void 0);break}case C.ARGUMENT:{var n;let e,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(e=i.args.find(e=>e.name===t.name.value),e&&(r=e.type)),this._argument=e,this._defaultValueStack.push(e?e.defaultValue:void 0),this._inputTypeStack.push(he(r)?r:void 0);break}case C.LIST:{const t=Ee(this.getInputType()),e=ae(t)?t.ofType:t;this._defaultValueStack.push(void 0),this._inputTypeStack.push(he(e)?e:void 0);break}case C.OBJECT_FIELD:{const e=Pe(this.getInputType());let n,r;se(e)&&(r=e.getFields()[t.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(he(n)?n:void 0);break}case C.ENUM:{const e=Pe(this.getInputType());let n;re(e)&&(n=e.getValue(t.value)),this._enumValue=n;break}}}leave(t){switch(t.kind){case C.SELECTION_SET:this._parentTypeStack.pop();break;case C.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case C.DIRECTIVE:this._directive=null;break;case C.OPERATION_DEFINITION:case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:this._typeStack.pop();break;case C.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case C.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.LIST:case C.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.ENUM:this._enumValue=null}}}function ar(t,e,n){const r=n.name.value;return r===Qn.name&&t.getQueryType()===e?Qn:r===Fn.name&&t.getQueryType()===e?Fn:r===Ln.name&&me(e)?Ln:Kt(e)||Jt(e)?e.getFields()[r]:void 0}function lr(t,e){return{enter(...n){const r=n[0];t.enter(r);const i=Ft(e,r.kind).enter;if(i){const s=i.apply(e,n);return void 0!==s&&(t.leave(r),w(s)&&t.enter(s)),s}},leave(...n){const r=n[0],i=Ft(e,r.kind).leave;let s;return i&&(s=i.apply(e,n)),t.leave(r),s}}}function Ar(t){return cr(t)||fr(t)||mr(t)}function cr(t){return t.kind===C.OPERATION_DEFINITION||t.kind===C.FRAGMENT_DEFINITION}function hr(t){return t.kind===C.FIELD||t.kind===C.FRAGMENT_SPREAD||t.kind===C.INLINE_FRAGMENT}function ur(t){return t.kind===C.VARIABLE||t.kind===C.INT||t.kind===C.FLOAT||t.kind===C.STRING||t.kind===C.BOOLEAN||t.kind===C.NULL||t.kind===C.ENUM||t.kind===C.LIST||t.kind===C.OBJECT}function pr(t){return ur(t)&&(t.kind===C.LIST?t.values.some(pr):t.kind===C.OBJECT?t.fields.some(t=>pr(t.value)):t.kind!==C.VARIABLE)}function dr(t){return t.kind===C.NAMED_TYPE||t.kind===C.LIST_TYPE||t.kind===C.NON_NULL_TYPE}function fr(t){return t.kind===C.SCHEMA_DEFINITION||gr(t)||t.kind===C.DIRECTIVE_DEFINITION}function gr(t){return t.kind===C.SCALAR_TYPE_DEFINITION||t.kind===C.OBJECT_TYPE_DEFINITION||t.kind===C.INTERFACE_TYPE_DEFINITION||t.kind===C.UNION_TYPE_DEFINITION||t.kind===C.ENUM_TYPE_DEFINITION||t.kind===C.INPUT_OBJECT_TYPE_DEFINITION}function mr(t){return t.kind===C.SCHEMA_EXTENSION||t.kind===C.DIRECTIVE_EXTENSION||yr(t)}function yr(t){return t.kind===C.SCALAR_TYPE_EXTENSION||t.kind===C.OBJECT_TYPE_EXTENSION||t.kind===C.INTERFACE_TYPE_EXTENSION||t.kind===C.UNION_TYPE_EXTENSION||t.kind===C.ENUM_TYPE_EXTENSION||t.kind===C.INPUT_OBJECT_TYPE_EXTENSION}function vr(t){return t.kind===C.TYPE_COORDINATE||t.kind===C.MEMBER_COORDINATE||t.kind===C.ARGUMENT_COORDINATE||t.kind===C.DIRECTIVE_COORDINATE||t.kind===C.DIRECTIVE_ARGUMENT_COORDINATE}function Or(t){return{Document(e){for(const n of e.definitions)if(!cr(n)){const e=n.kind===C.SCHEMA_DEFINITION||n.kind===C.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';t.reportError(new d(`The ${e} definition is not executable.`,{nodes:n}))}return!1}}}function br(t){return{Field(e){const n=t.getParentType();if(n&&!t.getFieldDef()){const r=t.getSchema(),i=e.name.value;let s=mt("to use an inline fragment on",function(t,e,n){if(!ve(e))return[];const r=new Set,i=Object.create(null);for(const o of t.getPossibleTypes(e))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(const t of o.getInterfaces()){var s;t.getFields()[n]&&(r.add(t),i[t.name]=(null!==(s=i[t.name])&&void 0!==s?s:0)+1)}}return[...r].sort((e,n)=>{const r=i[n.name]-i[e.name];return 0!==r?r:Jt(e)&&t.isSubType(e,n)?-1:Jt(n)&&t.isSubType(n,e)?1:xt(e.name,n.name)}).map(t=>t.name)}(r,n,i));""===s&&(s=mt(function(t,e){return Kt(t)||Jt(t)?St(e,Object.keys(t.getFields())):[]}(n,i))),t.reportError(new d(`Cannot query field "${i}" on type "${n.name}".`+s,{nodes:e}))}}}}function xr(t){return{InlineFragment(e){const n=e.typeCondition;if(n){const e=sr(t.getSchema(),n);if(e&&!me(e)){const e=Mt(n);t.reportError(new d(`Fragment cannot condition on non composite type "${e}".`,{nodes:n}))}}},FragmentDefinition(e){const n=sr(t.getSchema(),e.typeCondition);if(n&&!me(n)){const n=Mt(e.typeCondition);t.reportError(new d(`Fragment "${e.name.value}" cannot condition on non composite type "${n}".`,{nodes:e.typeCondition}))}}}}function wr(t){return{..._r(t),Argument(e){const n=t.getArgument(),r=t.getFieldDef(),i=t.getParentType();if(!n&&r&&i){const n=e.name.value,s=St(n,r.args.map(t=>t.name));t.reportError(new d(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+mt(s),{nodes:e}))}}}}function _r(t){const e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():On;for(const t of r)e[t.name]=t.args.map(t=>t.name);const i=t.getDocument().definitions;for(const t of i)if(t.kind===C.DIRECTIVE_DEFINITION){var s;const n=null!==(s=t.arguments)&&void 0!==s?s:[];e[t.name.value]=n.map(t=>t.name.value)}return{Directive(n){const r=n.name.value,i=e[r];if(n.arguments&&i)for(const e of n.arguments){const n=e.name.value;if(!i.includes(n)){const s=St(n,i);t.reportError(new d(`Unknown argument "${n}" on directive "@${r}".`+mt(s),{nodes:e}))}}return!1}}}function Sr(t){const e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():On;for(const t of r)e[t.name]=t.locations;const i=t.getDocument().definitions;for(const t of i)t.kind===C.DIRECTIVE_DEFINITION&&(e[t.name.value]=t.locations.map(t=>t.value));return{Directive(n,r,i,s,o){const a=n.name.value,A=e[a];if(!A)return void t.reportError(new d(`Unknown directive "@${a}".`,{nodes:n}));const c=function(t){const e=t[t.length-1];switch("kind"in e||l(!1),e.kind){case C.OPERATION_DEFINITION:return function(t){switch(t){case _.QUERY:return S.QUERY;case _.MUTATION:return S.MUTATION;case _.SUBSCRIPTION:return S.SUBSCRIPTION}}(e.operation);case C.FIELD:return S.FIELD;case C.FRAGMENT_SPREAD:return S.FRAGMENT_SPREAD;case C.INLINE_FRAGMENT:return S.INLINE_FRAGMENT;case C.FRAGMENT_DEFINITION:return S.FRAGMENT_DEFINITION;case C.VARIABLE_DEFINITION:return S.VARIABLE_DEFINITION;case C.SCHEMA_DEFINITION:case C.SCHEMA_EXTENSION:return S.SCHEMA;case C.SCALAR_TYPE_DEFINITION:case C.SCALAR_TYPE_EXTENSION:return S.SCALAR;case C.OBJECT_TYPE_DEFINITION:case C.OBJECT_TYPE_EXTENSION:return S.OBJECT;case C.FIELD_DEFINITION:return S.FIELD_DEFINITION;case C.INTERFACE_TYPE_DEFINITION:case C.INTERFACE_TYPE_EXTENSION:return S.INTERFACE;case C.UNION_TYPE_DEFINITION:case C.UNION_TYPE_EXTENSION:return S.UNION;case C.ENUM_TYPE_DEFINITION:case C.ENUM_TYPE_EXTENSION:return S.ENUM;case C.ENUM_VALUE_DEFINITION:return S.ENUM_VALUE;case C.INPUT_OBJECT_TYPE_DEFINITION:case C.INPUT_OBJECT_TYPE_EXTENSION:return S.INPUT_OBJECT;case C.INPUT_VALUE_DEFINITION:{const e=t[t.length-3];return"kind"in e||l(!1),e.kind===C.INPUT_OBJECT_TYPE_DEFINITION?S.INPUT_FIELD_DEFINITION:S.ARGUMENT_DEFINITION}case C.DIRECTIVE_DEFINITION:case C.DIRECTIVE_EXTENSION:return S.DIRECTIVE_DEFINITION;default:l(!1,"Unexpected kind: "+it(e.kind))}}(o);c&&!A.includes(c)&&t.reportError(new d(`Directive "@${a}" may not be used on ${c}.`,{nodes:n}))}}}function Cr(t){return{FragmentSpread(e){const n=e.name.value;t.getFragment(n)||t.reportError(new d(`Unknown fragment "${n}".`,{nodes:e.name}))}}}function Er(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),r=Object.create(null);for(const e of t.getDocument().definitions)gr(e)&&(r[e.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(e,s,o,a,l){const A=e.name.value;if(!n[A]&&!r[A]){var c;const n=null!==(c=l[2])&&void 0!==c?c:o,r=null!=n&&"kind"in(h=n)&&(fr(h)||mr(h));if(r&&Br.includes(A))return;const s=St(A,r?Br.concat(i):i);t.reportError(new d(`Unknown type "${A}".`+mt(s),{nodes:e}))}var h}}}const Br=[...ln,...Mn].map(t=>t.name);function Tr(t){let e=0;return{Document(t){e=t.definitions.filter(t=>t.kind===C.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&e>1&&t.reportError(new d("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function Pr(t){var e,n,r;const i=t.getSchema(),s=null!==(e=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==e?e:null==i?void 0:i.getSubscriptionType();let o=0;return{SchemaDefinition(e){s?t.reportError(new d("Cannot define a new schema within a schema extension.",{nodes:e})):(o>0&&t.reportError(new d("Must provide only one schema definition.",{nodes:e})),++o)}}}function kr(t){function e(n,r=Object.create(null),i=0){if(n.kind===C.FRAGMENT_SPREAD){const s=n.name.value;if(!0===r[s])return!1;const o=t.getFragment(s);if(!o)return!1;try{return r[s]=!0,e(o,r,i)}finally{r[s]=void 0}}if(n.kind===C.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=3)return!0;if("selectionSet"in n&&n.selectionSet)for(const t of n.selectionSet.selections)if(e(t,r,i))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&e(n))return t.reportError(new d("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}function Ir(t){const e=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:t=>(i(t),!1)};function i(s){if(e[s.name.value])return;const o=s.name.value;e[o]=!0;const a=t.getFragmentSpreads(s.selectionSet);if(0!==a.length){r[o]=n.length;for(const e of a){const s=e.name.value,o=r[s];if(n.push(e),void 0===o){const e=t.getFragment(s);e&&i(e)}else{const e=n.slice(o),r=e.slice(0,-1).map(t=>'"'+t.name.value+'"').join(", ");t.reportError(new d(`Cannot spread fragment "${s}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:e}))}n.pop()}r[o]=void 0}}}function Nr(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(n){const r=t.getRecursiveVariableUsages(n);for(const{node:i}of r){const r=i.name.value;!0!==e[r]&&t.reportError(new d(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(t){e[t.variable.name.value]=!0}}}function Qr(t){const e=[],n=[];return{OperationDefinition:t=>(e.push(t),!1),FragmentDefinition:t=>(n.push(t),!1),Document:{leave(){const r=Object.create(null);for(const n of e)for(const e of t.getRecursivelyReferencedFragments(n))r[e.name.value]=!0;for(const e of n){const n=e.name.value;!0!==r[n]&&t.reportError(new d(`Fragment "${n}" is never used.`,{nodes:e}))}}}}}function Fr(t){let e=[];return{OperationDefinition:{enter(){e=[]},leave(n){const r=Object.create(null),i=t.getRecursiveVariableUsages(n);for(const{node:t}of i)r[t.name.value]=!0;for(const i of e){const e=i.variable.name.value;!0!==r[e]&&t.reportError(new d(n.name?`Variable "$${e}" is never used in operation "${n.name.value}".`:`Variable "$${e}" is never used.`,{nodes:i}))}}},VariableDefinition(t){e.push(t)}}}function Lr(t){switch(t.kind){case C.OBJECT:return{...t,fields:(e=t.fields,e.map(t=>({...t,value:Lr(t.value)})).sort((t,e)=>xt(t.name.value,e.name.value)))};case C.LIST:return{...t,values:t.values.map(Lr)};case C.INT:case C.FLOAT:case C.STRING:case C.BOOLEAN:case C.NULL:case C.ENUM:case C.VARIABLE:return t}var e}function Mr(t){return Array.isArray(t)?t.map(([t,e])=>`subfields "${t}" conflict because `+Mr(e)).join(" and "):t}function Dr(t){const e=new Yr,n=new Wr,r=new Map;return{SelectionSet(i){const s=function(t,e,n,r,i,s){const o=[],[a,l]=Xr(t,e,i,s);if(function(t,e,n,r,i,s){for(const[o,a]of Object.entries(s))if(a.length>1)for(let s=0;s<a.length;s++)for(let l=s+1;l<a.length;l++){const A=jr(t,n,r,i,!1,o,a[s],a[l]);A&&e.push(A)}}(t,o,e,n,r,a),0!==l.length)for(let i=0;i<l.length;i++){Rr(t,o,e,n,r,!1,a,l[i]);for(let s=i+1;s<l.length;s++)Ur(t,o,e,n,r,!1,l[i],l[s])}return o}(t,r,e,n,t.getParentType(),i);for(const[[e,n],r,i]of s){const s=Mr(n);t.reportError(new d(`Fields "${e}" conflict because ${s}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(i)}))}}}}function Rr(t,e,n,r,i,s,o,a){if(r.has(o,a,s))return;r.add(o,a,s);const l=t.getFragment(a);if(!l)return;const[A,c]=zr(t,n,l);if(o!==A){$r(t,e,n,r,i,s,o,A);for(const a of c)Rr(t,e,n,r,i,s,o,a)}}function Ur(t,e,n,r,i,s,o,a){if(o===a)return;if(i.has(o,a,s))return;i.add(o,a,s);const l=t.getFragment(o),A=t.getFragment(a);if(!l||!A)return;const[c,h]=zr(t,n,l),[u,p]=zr(t,n,A);$r(t,e,n,r,i,s,c,u);for(const a of p)Ur(t,e,n,r,i,s,o,a);for(const o of h)Ur(t,e,n,r,i,s,o,a)}function $r(t,e,n,r,i,s,o,a){for(const[l,A]of Object.entries(o)){const o=a[l];if(o)for(const a of A)for(const A of o){const o=jr(t,n,r,i,s,l,a,A);o&&e.push(o)}}}function jr(t,e,n,r,i,s,o,a){const[l,A,c]=o,[h,u,p]=a,d=i||l!==h&&Kt(l)&&Kt(h);if(!d){const t=A.name.value,e=u.name.value;if(t!==e)return[[s,`"${t}" and "${e}" are different fields`],[A],[u]];if(!function(t,e){const n=t.arguments,r=e.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const i=new Map(r.map(({name:t,value:e})=>[t.value,e]));return n.every(t=>{const e=t.value,n=i.get(t.name.value);return void 0!==n&&Hr(e)===Hr(n)})}(A,u))return[[s,"they have differing arguments"],[A],[u]]}const f=null==c?void 0:c.type,g=null==p?void 0:p.type;if(f&&g&&Vr(f,g))return[[s,`they return conflicting types "${it(f)}" and "${it(g)}"`],[A],[u]];const m=A.selectionSet,y=u.selectionSet;if(m&&y){const i=function(t,e,n,r,i,s,o,a,l){const A=[],[c,h]=Xr(t,e,s,o),[u,p]=Xr(t,e,a,l);$r(t,A,e,n,r,i,c,u);for(const s of p)Rr(t,A,e,n,r,i,c,s);for(const s of h)Rr(t,A,e,n,r,i,u,s);for(const s of h)for(const o of p)Ur(t,A,e,n,r,i,s,o);return A}(t,e,n,r,d,Pe(f),m,Pe(g),y);return function(t,e,n,r){if(t.length>0)return[[e,t.map(([t])=>t)],[n,...t.map(([,t])=>t).flat()],[r,...t.map(([,,t])=>t).flat()]]}(i,s,A,u)}}function Hr(t){return Mt(Lr(t))}function Vr(t,e){return ae(t)?!ae(e)||Vr(t.ofType,e.ofType):!!ae(e)||(Ae(t)?!Ae(e)||Vr(t.ofType,e.ofType):!!Ae(e)||!(!fe(t)&&!fe(e))&&t!==e)}function Xr(t,e,n,r){const i=e.get(r);if(i)return i;const s=Object.create(null),o=Object.create(null);Gr(t,n,r,s,o);const a=[s,Object.keys(o)];return e.set(r,a),a}function zr(t,e,n){const r=e.get(n.selectionSet);if(r)return r;const i=sr(t.getSchema(),n.typeCondition);return Xr(t,e,i,n.selectionSet)}function Gr(t,e,n,r,i){for(const s of n.selections)switch(s.kind){case C.FIELD:{const t=s.name.value;let n;(Kt(e)||Jt(e))&&(n=e.getFields()[t]);const i=s.alias?s.alias.value:t;r[i]||(r[i]=[]),r[i].push([e,s,n]);break}case C.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case C.INLINE_FRAGMENT:{const n=s.typeCondition,o=n?sr(t.getSchema(),n):e;Gr(t,o,s.selectionSet,r,i);break}}}class Yr{constructor(){this._data=new Map}has(t,e,n){var r;const i=null===(r=this._data.get(t))||void 0===r?void 0:r.get(e);return void 0!==i&&(!!n||n===i)}add(t,e,n){const r=this._data.get(t);void 0===r?this._data.set(t,new Map([[e,n]])):r.set(e,n)}}class Wr{constructor(){this._orderedPairSet=new Yr}has(t,e,n){return t<e?this._orderedPairSet.has(t,e,n):this._orderedPairSet.has(e,t,n)}add(t,e,n){t<e?this._orderedPairSet.add(t,e,n):this._orderedPairSet.add(e,t,n)}}function Zr(t){return{InlineFragment(e){const n=t.getType(),r=t.getParentType();if(me(n)&&me(r)&&!Je(t.getSchema(),n,r)){const i=it(r),s=it(n);t.reportError(new d(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:e}))}},FragmentSpread(e){const n=e.name.value,r=function(t,e){const n=t.getFragment(e);if(n){const e=sr(t.getSchema(),n.typeCondition);if(me(e))return e}}(t,n),i=t.getParentType();if(r&&i&&!Je(t.getSchema(),r,i)){const s=it(i),o=it(r);t.reportError(new d(`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,{nodes:e}))}}}}function Kr(t){const e=t.getSchema(),n=Object.create(null);for(const e of t.getDocument().definitions)gr(e)&&(n[e.name.value]=e);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,s=n[i],o=null==e?void 0:e.getType(i);let a;if(s?a=qr[s.kind]:o&&(a=Wt(A=o)?C.SCALAR_TYPE_EXTENSION:Kt(A)?C.OBJECT_TYPE_EXTENSION:Jt(A)?C.INTERFACE_TYPE_EXTENSION:ee(A)?C.UNION_TYPE_EXTENSION:re(A)?C.ENUM_TYPE_EXTENSION:se(A)?C.INPUT_OBJECT_TYPE_EXTENSION:void l(!1,"Unexpected type: "+it(A))),a){if(a!==r.kind){const e=function(t){switch(t){case C.SCALAR_TYPE_EXTENSION:return"scalar";case C.OBJECT_TYPE_EXTENSION:return"object";case C.INTERFACE_TYPE_EXTENSION:return"interface";case C.UNION_TYPE_EXTENSION:return"union";case C.ENUM_TYPE_EXTENSION:return"enum";case C.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:l(!1,"Unexpected kind: "+it(t))}}(r.kind);t.reportError(new d(`Cannot extend non-${e} type "${i}".`,{nodes:s?[s,r]:r}))}}else{const s=St(i,Object.keys({...n,...null==e?void 0:e.getTypeMap()}));t.reportError(new d(`Cannot extend type "${i}" because it is not defined.`+mt(s),{nodes:r.name}))}var A}}const qr={[C.SCALAR_TYPE_DEFINITION]:C.SCALAR_TYPE_EXTENSION,[C.OBJECT_TYPE_DEFINITION]:C.OBJECT_TYPE_EXTENSION,[C.INTERFACE_TYPE_DEFINITION]:C.INTERFACE_TYPE_EXTENSION,[C.UNION_TYPE_DEFINITION]:C.UNION_TYPE_EXTENSION,[C.ENUM_TYPE_DEFINITION]:C.ENUM_TYPE_EXTENSION,[C.INPUT_OBJECT_TYPE_DEFINITION]:C.INPUT_OBJECT_TYPE_EXTENSION};function Jr(t){return{...ti(t),Field:{leave(e){var n;const r=t.getFieldDef();if(!r)return!1;const i=new Set(null===(n=e.arguments)||void 0===n?void 0:n.map(t=>t.name.value));for(const n of r.args)if(!i.has(n.name)&&$e(n)){const i=it(n.type);t.reportError(new d(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:e}))}}}}}function ti(t){var e;const n=Object.create(null),r=t.getSchema(),i=null!==(e=null==r?void 0:r.getDirectives())&&void 0!==e?e:On;for(const t of i)n[t.name]=vt(t.args.filter($e),t=>t.name);const s=t.getDocument().definitions;for(const t of s)if(t.kind===C.DIRECTIVE_DEFINITION){var o;const e=null!==(o=t.arguments)&&void 0!==o?o:[];n[t.name.value]=vt(e.filter(ei),t=>t.name.value)}return{Directive:{leave(e){const r=e.name.value,i=n[r];if(i){var s;const n=null!==(s=e.arguments)&&void 0!==s?s:[],o=new Set(n.map(t=>t.name.value));for(const[n,s]of Object.entries(i))if(!o.has(n)){const i=Gt(s.type)?it(s.type):Mt(s.type);t.reportError(new d(`Directive "@${r}" argument "${n}" of type "${i}" is required, but it was not provided.`,{nodes:e}))}}}}}}function ei(t){return t.type.kind===C.NON_NULL_TYPE&&null==t.defaultValue}function ni(t){return{Field(e){const n=t.getType(),r=e.selectionSet;if(n)if(fe(Pe(n))){if(r){const i=e.name.value,s=it(n);t.reportError(new d(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){const r=e.name.value,i=it(n);t.reportError(new d(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:e}))}}else{const r=e.name.value,i=it(n);t.reportError(new d(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:e}))}}}}function ri(t){return t.map(t=>"number"==typeof t?"["+t.toString()+"]":"."+t).join("")}function ii(t,e,n){return{prev:t,key:e,typename:n}}function si(t){const e=[];let n=t;for(;n;)e.push(n.key),n=n.prev;return e.reverse()}function oi(t,e,n=ai){return li(t,e,n,void 0)}function ai(t,e,n){let r="Invalid value "+it(e);throw t.length>0&&(r+=` at "value${ri(t)}"`),n.message=r+": "+n.message,n}function li(t,e,n,r){if(Ae(e))return null!=t?li(t,e.ofType,n,r):void n(si(r),t,new d(`Expected non-nullable type "${it(e)}" not to be null.`));if(null==t)return null;if(ae(e)){const i=e.ofType;return xn(t)?Array.from(t,(t,e)=>{const s=ii(r,e,void 0);return li(t,i,n,s)}):[li(t,i,n,r)]}if(se(e)){if(!a(t)||Array.isArray(t))return void n(si(r),t,new d(`Expected type "${e.name}" to be an object.`));const i=Object.create(null),s=e.getFields();for(const o of Object.values(s)){const s=t[o.name];if(void 0!==s)i[o.name]=li(s,o.type,n,ii(r,o.name,e.name));else if(void 0!==o.defaultValue)i[o.name]=o.defaultValue;else if(Ae(o.type)){const e=it(o.type);n(si(r),t,new d(`Field "${o.name}" of required type "${e}" was not provided.`))}}for(const i of Object.keys(t))if(!s[i]){const s=St(i,Object.keys(e.getFields()));n(si(r),t,new d(`Field "${i}" is not defined by type "${e.name}".`+mt(s)))}if(e.isOneOf){const s=Object.keys(i);1!==s.length&&n(si(r),t,new d(`Exactly one key must be specified for OneOf type "${e.name}".`));const o=s[0],a=i[o];null===a&&n(si(r).concat(o),a,new d(`Field "${o}" must be non-null.`))}return{...i}}if(fe(e)){let i;try{i=e.parseValue(t)}catch(i){return void n(si(r),t,i instanceof d?i:new d(`Expected type "${e.name}". `+i.message,{originalError:i}))}return void 0===i&&n(si(r),t,new d(`Expected type "${e.name}".`)),i}l(!1,"Unexpected input type: "+it(e))}function Ai(t,e,n){if(t){if(t.kind===C.VARIABLE){const r=t.name.value;if(null==n||void 0===n[r]||!hi(n,r))return;const i=n[r];if(null===i&&Ae(e))return;return i}if(Ae(e)){if(t.kind===C.NULL)return;return Ai(t,e.ofType,n)}if(t.kind===C.NULL)return null;if(ae(e)){const r=e.ofType;if(t.kind===C.LIST){const e=[];for(const i of t.values)if(ci(i,n)){if(Ae(r))return;e.push(null)}else{const t=Ai(i,r,n);if(void 0===t)return;e.push(t)}return e}const i=Ai(t,r,n);if(void 0===i)return;return[i]}if(se(e)){if(t.kind!==C.OBJECT)return;const r=Object.create(null),i=vt(t.fields,t=>t.name.value);for(const t of Object.values(e.getFields())){const e=i[t.name];if(!e||ci(e.value,n)){if(void 0!==t.defaultValue)r[t.name]=t.defaultValue;else if(Ae(t.type))return;continue}const s=Ai(e.value,t.type,n);if(void 0===s)return;r[t.name]=s}if(e.isOneOf){const t=Object.keys(r);if(1!==t.length)return;if(null===r[t[0]])return}return r}if(fe(e)){let r;try{r=e.parseLiteral(t,n)}catch(t){return}if(void 0===r)return;return r}l(!1,"Unexpected input type: "+it(e))}}function ci(t,e){return t.kind===C.VARIABLE&&(null==e||void 0===e[t.name.value]||!hi(e,t.name.value))}function hi(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ui(t,e,n,r){const i=[],s=null==r?void 0:r.maxErrors;try{const r=function(t,e,n,r){const i=Object.create(null);for(const s of e){const e=s.variable.name.value,o=sr(t,s.type);if(!he(o)){const t=Mt(s.type);r(new d(`Variable "$${e}" expected value of type "${t}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!fi(n,e)){if(s.defaultValue)i[e]=Ai(s.defaultValue,o);else if(Ae(o)){const t=it(o);r(new d(`Variable "$${e}" of required type "${t}" was not provided.`,{nodes:s}))}continue}const a=n[e];if(null===a&&Ae(o)){const t=it(o);r(new d(`Variable "$${e}" of non-null type "${t}" must not be null.`,{nodes:s}));continue}i[e]=oi(a,o,(t,n,i)=>{let o=`Variable "$${e}" got invalid value `+it(n);t.length>0&&(o+=` at "${e}${ri(t)}"`),r(new d(o+"; "+i.message,{nodes:s,originalError:i}))})}return{...i}}(t,e,n,t=>{if(null!=s&&i.length>=s)throw new d("Too many errors processing variables, error limit reached. Execution aborted.");i.push(t)});if(0===i.length)return{coerced:r}}catch(t){i.push(t)}return{errors:i}}function pi(t,e,n){var r;const i=Object.create(null),s=vt(null!==(r=e.arguments)&&void 0!==r?r:[],t=>t.name.value);for(const r of t.args){const t=r.name,o=r.type,a=s[t];if(!a){if(void 0!==r.defaultValue)i[t]=r.defaultValue;else if(Ae(o))throw new d(`Argument "${t}" of required type "${it(o)}" was not provided.`,{nodes:e});continue}const l=a.value;let A=l.kind===C.NULL;if(l.kind===C.VARIABLE){const e=l.name.value;if(null==n||!fi(n,e)){if(void 0!==r.defaultValue)i[t]=r.defaultValue;else if(Ae(o))throw new d(`Argument "${t}" of required type "${it(o)}" was provided the variable "$${e}" which was not provided a runtime value.`,{nodes:l});continue}A=null==n[e]}if(A&&Ae(o))throw new d(`Argument "${t}" of non-null type "${it(o)}" must not be null.`,{nodes:l});const c=Ai(l,o,n);if(void 0===c)throw new d(`Argument "${t}" has invalid value ${Mt(l)}.`,{nodes:l});i[t]=c}return{...i}}function di(t,e,n){var r;const i=null===(r=e.directives)||void 0===r?void 0:r.find(e=>e.name.value===t.name);if(i)return pi(t,i,n)}function fi(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function gi(t,e,n,r,i){const s=new Map;return mi(t,e,n,r,i,s,new Set),s}function mi(t,e,n,r,i,s,o){for(const a of i.selections)switch(a.kind){case C.FIELD:{if(!yi(n,a))continue;const t=Oi(a),e=s.get(t);void 0!==e?e.push(a):s.set(t,[a]);break}case C.INLINE_FRAGMENT:if(!yi(n,a)||!vi(t,a,r))continue;mi(t,e,n,r,a.selectionSet,s,o);break;case C.FRAGMENT_SPREAD:{const i=a.name.value;if(o.has(i)||!yi(n,a))continue;o.add(i);const l=e[i];if(!l||!vi(t,l,r))continue;mi(t,e,n,r,l.selectionSet,s,o);break}}}function yi(t,e){const n=di(fn,e,t);if(!0===(null==n?void 0:n.if))return!1;const r=di(dn,e,t);return!1!==(null==r?void 0:r.if)}function vi(t,e,n){const r=e.typeCondition;if(!r)return!0;const i=sr(t,r);return i===n||!!ve(i)&&t.isSubType(i,n)}function Oi(t){return t.alias?t.alias.value:t.name.value}function bi(t){return{OperationDefinition(e){if("subscription"===e.operation){const n=t.getSchema(),r=n.getSubscriptionType();if(r){const i=e.name?e.name.value:null,s=Object.create(null),o=t.getDocument(),a=Object.create(null);for(const t of o.definitions)t.kind===C.FRAGMENT_DEFINITION&&(a[t.name.value]=t);const l=gi(n,a,s,r,e.selectionSet);if(l.size>1){const e=[...l.values()].slice(1).flat();t.reportError(new d(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:e}))}for(const e of l.values())e[0].name.value.startsWith("__")&&t.reportError(new d(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:e}))}}}}}function xi(t,e){const n=new Map;for(const r of t){const t=e(r),i=n.get(t);void 0===i?n.set(t,[r]):i.push(r)}return n}function wi(t){return{DirectiveDefinition(t){var e;const r=null!==(e=t.arguments)&&void 0!==e?e:[];return n(`@${t.name.value}`,r)},InterfaceTypeDefinition:e,InterfaceTypeExtension:e,ObjectTypeDefinition:e,ObjectTypeExtension:e};function e(t){var e;const r=t.name.value,i=null!==(e=t.fields)&&void 0!==e?e:[];for(const t of i){var s;n(`${r}.${t.name.value}`,null!==(s=t.arguments)&&void 0!==s?s:[])}return!1}function n(e,n){const r=xi(n,t=>t.name.value);for(const[n,i]of r)i.length>1&&t.reportError(new d(`Argument "${e}(${n}:)" can only be defined once.`,{nodes:i.map(t=>t.name)}));return!1}}function _i(t){return{Field:e,Directive:e};function e(e){var n;const r=xi(null!==(n=e.arguments)&&void 0!==n?n:[],t=>t.name.value);for(const[e,n]of r)n.length>1&&t.reportError(new d(`There can be only one argument named "${e}".`,{nodes:n.map(t=>t.name)}))}}function Si(t){const e=Object.create(null),n=t.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==n||!n.getDirective(i))return e[i]?t.reportError(new d(`There can be only one directive named "@${i}".`,{nodes:[e[i],r.name]})):e[i]=r.name,!1;t.reportError(new d(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}function Ci(t){const e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():On;for(const t of r)e[t.name]=!t.isRepeatable;const i=t.getDocument().definitions;for(const t of i)t.kind===C.DIRECTIVE_DEFINITION&&(e[t.name.value]=!t.repeatable);const s=Object.create(null),o=Object.create(null),a=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===C.SCHEMA_DEFINITION||n.kind===C.SCHEMA_EXTENSION)r=s;else if(gr(n)||yr(n)){const t=n.name.value;r=o[t],void 0===r&&(o[t]=r=Object.create(null))}else if(n.kind===C.DIRECTIVE_DEFINITION||n.kind===C.DIRECTIVE_EXTENSION){const t=n.name.value;r=a[t],void 0===r&&(a[t]=r=Object.create(null))}else r=Object.create(null);for(const i of n.directives){const n=i.name.value;e[n]&&(r[n]?t.reportError(new d(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}function Ei(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(e){var i;const s=e.name.value;r[s]||(r[s]=Object.create(null));const o=null!==(i=e.values)&&void 0!==i?i:[],a=r[s];for(const e of o){const r=e.name.value,i=n[s];re(i)&&i.getValue(r)?t.reportError(new d(`Enum value "${s}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:e.name})):a[r]?t.reportError(new d(`Enum value "${s}.${r}" can only be defined once.`,{nodes:[a[r],e.name]})):a[r]=e.name}return!1}}function Bi(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(e){var i;const s=e.name.value;r[s]||(r[s]=Object.create(null));const o=null!==(i=e.fields)&&void 0!==i?i:[],a=r[s];for(const e of o){const r=e.name.value;Ti(n[s],r)?t.reportError(new d(`Field "${s}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:e.name})):a[r]?t.reportError(new d(`Field "${s}.${r}" can only be defined once.`,{nodes:[a[r],e.name]})):a[r]=e.name}return!1}}function Ti(t,e){return!!(Kt(t)||Jt(t)||se(t))&&null!=t.getFields()[e]}function Pi(t){const e=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return e[r]?t.reportError(new d(`There can be only one fragment named "${r}".`,{nodes:[e[r],n.name]})):e[r]=n.name,!1}}}function ki(t){const e=[];let n=Object.create(null);return{ObjectValue:{enter(){e.push(n),n=Object.create(null)},leave(){const t=e.pop();t||l(!1),n=t}},ObjectField(e){const r=e.name.value;n[r]?t.reportError(new d(`There can be only one input field named "${r}".`,{nodes:[n[r],e.name]})):n[r]=e.name}}}function Ii(t){const e=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(e[r.value]?t.reportError(new d(`There can be only one operation named "${r.value}".`,{nodes:[e[r.value],r]})):e[r.value]=r),!1},FragmentDefinition:()=>!1}}function Ni(t){const e=t.getSchema(),n=Object.create(null),r=e?{query:e.getQueryType(),mutation:e.getMutationType(),subscription:e.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(e){var i;const s=null!==(i=e.operationTypes)&&void 0!==i?i:[];for(const e of s){const i=e.operation,s=n[i];r[i]?t.reportError(new d(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:e})):s?t.reportError(new d(`There can be only one ${i} type in schema.`,{nodes:[s,e]})):n[i]=e}return!1}}function Qi(t){const e=Object.create(null),n=t.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==n||!n.getType(i))return e[i]?t.reportError(new d(`There can be only one type named "${i}".`,{nodes:[e[i],r.name]})):e[i]=r.name,!1;t.reportError(new d(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}function Fi(t){return{OperationDefinition(e){var n;const r=xi(null!==(n=e.variableDefinitions)&&void 0!==n?n:[],t=>t.variable.name.value);for(const[e,n]of r)n.length>1&&t.reportError(new d(`There can be only one variable named "$${e}".`,{nodes:n.map(t=>t.variable.name)}))}}}function Li(t){return{ListValue(e){if(!ae(Ee(t.getParentInputType())))return Mi(t,e),!1},ObjectValue(e){const n=Pe(t.getInputType());if(!se(n))return Mi(t,e),!1;const r=vt(e.fields,t=>t.name.value);for(const i of Object.values(n.getFields()))if(!r[i.name]&&Ze(i)){const r=it(i.type);t.reportError(new d(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:e}))}n.isOneOf&&function(t,e,n,r){var i;const s=Object.keys(r);if(1!==s.length)return void t.reportError(new d(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[e]}));const o=null===(i=r[s[0]])||void 0===i?void 0:i.value;o&&o.kind!==C.NULL||t.reportError(new d(`Field "${n.name}.${s[0]}" must be non-null.`,{nodes:[e]}))}(t,e,n,r)},ObjectField(e){const n=Pe(t.getParentInputType());if(!t.getInputType()&&se(n)){const r=St(e.name.value,Object.keys(n.getFields()));t.reportError(new d(`Field "${e.name.value}" is not defined by type "${n.name}".`+mt(r),{nodes:e}))}},NullValue(e){const n=t.getInputType();Ae(n)&&t.reportError(new d(`Expected value of type "${it(n)}", found ${Mt(e)}.`,{nodes:e}))},EnumValue:e=>Mi(t,e),IntValue:e=>Mi(t,e),FloatValue:e=>Mi(t,e),StringValue:e=>Mi(t,e),BooleanValue:e=>Mi(t,e)}}function Mi(t,e){const n=t.getInputType();if(!n)return;const r=Pe(n);if(!fe(r)){const r=it(n);return void t.reportError(new d(`Expected value of type "${r}", found ${Mt(e)}.`,{nodes:e}))}try{if(void 0===r.parseLiteral(e,void 0)){const r=it(n);t.reportError(new d(`Expected value of type "${r}", found ${Mt(e)}.`,{nodes:e}))}}catch(r){const i=it(n);r instanceof d?t.reportError(r):t.reportError(new d(`Expected value of type "${i}", found ${Mt(e)}; `+r.message,{nodes:e,originalError:r}))}}function Di(t){return{VariableDefinition(e){const n=sr(t.getSchema(),e.type);if(void 0!==n&&!he(n)){const n=e.variable.name.value,r=Mt(e.type);t.reportError(new d(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:e.type}))}}}}function Ri(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(n){const r=t.getRecursiveVariableUsages(n);for(const{node:n,type:i,defaultValue:s,parentType:o}of r){const r=n.name.value,a=e[r];if(a&&i){const e=t.getSchema(),l=sr(e,a.type);if(l&&!Ui(e,l,a.defaultValue,i,s)){const e=it(l),s=it(i);t.reportError(new d(`Variable "$${r}" of type "${e}" used in position expecting type "${s}".`,{nodes:[a,n]}))}se(o)&&o.isOneOf&&Se(l)&&t.reportError(new d(`Variable "$${r}" is of type "${l}" but must be non-nullable to be used for OneOf Input Object "${o}".`,{nodes:[a,n]}))}}}},VariableDefinition(t){e[t.variable.name.value]=t}}}function Ui(t,e,n,r,i){return Ae(r)&&!Ae(e)?(null!=n&&n.kind!==C.NULL||void 0!==i)&&qe(t,e,r.ofType):qe(t,e,r)}const $i=Object.freeze([kr]),ji=Object.freeze([Or,Ii,Tr,bi,Er,xr,Di,ni,br,Pi,Cr,Qr,Zr,Ir,Fi,Nr,Fr,Sr,Ci,wr,_i,Li,Jr,Ri,Dr,ki,...$i]),Hi=Object.freeze([Pr,Ni,Qi,Ei,Bi,wi,Si,Er,Sr,Ci,Kr,_r,_i,ki,ti]);class Vi{constructor(t,e){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=e}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let e;if(this._fragments)e=this._fragments;else{e=Object.create(null);for(const t of this.getDocument().definitions)t.kind===C.FRAGMENT_DEFINITION&&(e[t.name.value]=t);this._fragments=e}return e[t]}getFragmentSpreads(t){let e=this._fragmentSpreads.get(t);if(!e){e=[];const n=[t];let r;for(;r=n.pop();)for(const t of r.selections)t.kind===C.FRAGMENT_SPREAD?e.push(t):t.selectionSet&&n.push(t.selectionSet);this._fragmentSpreads.set(t,e)}return e}getRecursivelyReferencedFragments(t){let e=this._recursivelyReferencedFragments.get(t);if(!e){e=[];const n=Object.create(null),r=[t.selectionSet];let i;for(;i=r.pop();)for(const t of this.getFragmentSpreads(i)){const i=t.name.value;if(!0!==n[i]){n[i]=!0;const t=this.getFragment(i);t&&(e.push(t),r.push(t.selectionSet))}}this._recursivelyReferencedFragments.set(t,e)}return e}}class Xi extends Vi{constructor(t,e,n){super(t,n),this._schema=e}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class zi extends Vi{constructor(t,e,n,r){super(e,r),this._schema=t,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let e=this._variableUsages.get(t);if(!e){const n=[],r=new or(this._schema);Nt(t,lr(r,{VariableDefinition:()=>!1,Variable(t){n.push({node:t,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),e=n,this._variableUsages.set(t,e)}return e}getRecursiveVariableUsages(t){let e=this._recursiveVariableUsages.get(t);if(!e){e=this.getVariableUsages(t);for(const n of this.getRecursivelyReferencedFragments(t))e=e.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(t,e)}return e}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}const Gi=bt(b,t=>t.filter(t=>"description"!==t));function Yi(t,e,n=ji,r,i=new or(t)){var o;const a=null!==(o=null==r?void 0:r.maxErrors)&&void 0!==o?o:100;e||s(!1,"Must provide document."),Vn(t);const l=Object.freeze({}),A=[],c=new zi(t,e,i,t=>{if(A.length>=a)throw A.push(new d("Too many validation errors, error limit reached. Validation aborted.")),l;A.push(t)}),h=Qt(n.map(t=>t(c)));try{Nt(e,lr(i,h),Gi)}catch(t){if(t!==l)throw t}return A}function Wi(t,e,n=Hi){const r=[],i=new Xi(t,e,t=>{r.push(t)});return Nt(t,Qt(n.map(t=>t(i)))),r}function Zi(t){return Promise.all(Object.values(t)).then(e=>{const n=Object.create(null);for(const[r,i]of Object.keys(t).entries())n[i]=e[r];return n})}class Ki extends Error{constructor(t){super("Unexpected error value: "+it(t)),this.name="NonErrorThrown",this.thrownValue=t}}function qi(t,e,n){var r;const i=(s=t)instanceof Error?s:new Ki(s);var s,o;return o=i,Array.isArray(o.path)?i:new d(i.message,{nodes:null!==(r=i.nodes)&&void 0!==r?r:e,source:i.source,positions:i.positions,path:n,originalError:i})}const Ji=function(){let t;return function(e,n,r){void 0===t&&(t=new WeakMap);let i=t.get(e);void 0===i&&(i=new WeakMap,t.set(e,i));let s=i.get(n);void 0===s&&(s=new WeakMap,i.set(n,s));let o=s.get(r);return void 0===o&&(l=n,A=r,o=function(t,e,n,r,i){const s=new Map,o=new Set;for(const a of i)a.selectionSet&&mi(t,e,n,r,a.selectionSet,s,o);return s}((a=e).schema,a.fragments,a.variableValues,l,A),s.set(r,o)),o;var a,l,A}}();class ts{constructor(){this._errorPositions=new Set,this._errors=[]}get errors(){return this._errors}add(t,e){this._hasNulledPosition(e)||(this._errorPositions.add(e),this._errors.push(t))}_hasNulledPosition(t){let e=t;for(;void 0!==e;){if(this._errorPositions.has(e))return!0;e=e.prev}return this._errorPositions.has(void 0)}}function es(t){arguments.length<2||s(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,document:n,variableValues:r,rootValue:i}=t;is(e,n,r);const a=ss(t);if(!("schema"in a))return{errors:a};try{const{operation:t}=a,e=function(t,e,n){const r=t.schema.getRootType(e.operation);if(null==r)throw new d(`Schema is not configured to execute ${e.operation} operation.`,{nodes:e});const i=gi(t.schema,t.fragments,t.variableValues,r,e.selectionSet),s=void 0;switch(e.operation){case _.QUERY:return os(t,r,n,s,i);case _.MUTATION:return function(t,e,n,r,i){return function(t,e){let n=Object.create(null);for(const r of t)n=o(n)?n.then(t=>e(t,r)):e(n,r);return n}(i.entries(),(i,[s,a])=>{const l=ii(r,s,e.name),A=as(t,e,n,a,l);return void 0===A?i:o(A)?A.then(t=>(i[s]=t,i)):(i[s]=A,i)})}(t,r,n,s,i);case _.SUBSCRIPTION:return os(t,r,n,s,i)}}(a,t,i);return o(e)?e.then(t=>rs(t,a.collectedErrors.errors),t=>(a.collectedErrors.add(t,void 0),rs(null,a.collectedErrors.errors))):rs(e,a.collectedErrors.errors)}catch(t){return a.collectedErrors.add(t,void 0),rs(null,a.collectedErrors.errors)}}function ns(t){const e=es(t);if(o(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function rs(t,e){return 0===e.length?{data:t}:{errors:e,data:t}}function is(t,e,n){e||s(!1,"Must provide document."),Vn(t),null==n||a(n)||s(!1,"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 ss(t){var e,n,r;const{schema:i,document:s,rootValue:o,contextValue:a,variableValues:l,operationName:A,fieldResolver:c,typeResolver:h,subscribeFieldResolver:u,options:p}=t;let f;const g=Object.create(null);for(const t of s.definitions)switch(t.kind){case C.OPERATION_DEFINITION:if(null==A){if(void 0!==f)return[new d("Must provide operation name if query contains multiple operations.")];f=t}else(null===(e=t.name)||void 0===e?void 0:e.value)===A&&(f=t);break;case C.FRAGMENT_DEFINITION:g[t.name.value]=t}if(!f)return null!=A?[new d(`Unknown operation named "${A}".`)]:[new d("Must provide an operation.")];const m=ui(i,null!==(n=f.variableDefinitions)&&void 0!==n?n:[],null!=l?l:{},{maxErrors:null!==(r=null==p?void 0:p.maxCoercionErrors)&&void 0!==r?r:50});return m.errors?m.errors:{schema:i,fragments:g,rootValue:o,contextValue:a,operation:f,variableValues:m.coerced,fieldResolver:null!=c?c:fs,typeResolver:null!=h?h:ds,subscribeFieldResolver:null!=u?u:fs,collectedErrors:new ts}}function os(t,e,n,r,i){const s=Object.create(null);let a=!1;try{for(const[l,A]of i.entries()){const i=as(t,e,n,A,ii(r,l,e.name));void 0!==i&&(s[l]=i,o(i)&&(a=!0))}}catch(t){if(a)return Zi(s).finally(()=>{throw t});throw t}return a?Zi(s):s}function as(t,e,n,r,i){var s;const a=gs(t.schema,e,r[0]);if(!a)return;const l=a.type,A=null!==(s=a.resolve)&&void 0!==s?s:t.fieldResolver,c=ls(t,a,r,e,i);try{const e=A(n,pi(a,r[0],t.variableValues),t.contextValue,c);let s;return s=o(e)?e.then(e=>cs(t,l,r,c,i,e)):cs(t,l,r,c,i,e),o(s)?s.then(void 0,e=>As(qi(e,r,si(i)),l,i,t)):s}catch(e){return As(qi(e,r,si(i)),l,i,t)}}function ls(t,e,n,r,i){return{fieldName:e.name,fieldNodes:n,returnType:e.type,parentType:r,path:i,schema:t.schema,fragments:t.fragments,rootValue:t.rootValue,operation:t.operation,variableValues:t.variableValues}}function As(t,e,n,r){if(Ae(e))throw t;return r.collectedErrors.add(t,n),null}function cs(t,e,n,r,i,s){if(s instanceof Error)throw s;if(Ae(e)){const o=cs(t,e.ofType,n,r,i,s);if(null===o)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}return null==s?null:ae(e)?function(t,e,n,r,i,s){if(!xn(s))throw new d(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const a=e.ofType;let l=!1;const A=Array.from(s,(e,s)=>{const A=ii(i,s,void 0);try{let i;return i=o(e)?e.then(e=>cs(t,a,n,r,A,e)):cs(t,a,n,r,A,e),o(i)?(l=!0,i.then(void 0,e=>As(qi(e,n,si(A)),a,A,t))):i}catch(e){return As(qi(e,n,si(A)),a,A,t)}});return l?Promise.all(A):A}(t,e,n,r,i,s):fe(e)?function(t,e){const n=t.serialize(e);if(null==n)throw new Error(`Expected \`${it(t)}.serialize(${it(e)})\` to return non-nullable value, returned: ${it(n)}`);return n}(e,s):ve(e)?function(t,e,n,r,i,s){var a;const l=null!==(a=e.resolveType)&&void 0!==a?a:t.typeResolver,A=t.contextValue,c=l(s,A,r,e);return o(c)?c.then(o=>us(t,hs(o,t,e,n,r,s),n,r,i,s)):us(t,hs(c,t,e,n,r,s),n,r,i,s)}(t,e,n,r,i,s):Kt(e)?us(t,e,n,r,i,s):void l(!1,"Cannot complete value of unexpected output type: "+it(e))}function hs(t,e,n,r,i,s){if(null==t)throw new d(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(Kt(t))throw new d("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof t)throw new d(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${it(s)}, received "${it(t)}".`);const o=e.schema.getType(t);if(null==o)throw new d(`Abstract type "${n.name}" was resolved to a type "${t}" that does not exist inside the schema.`,{nodes:r});if(!Kt(o))throw new d(`Abstract type "${n.name}" was resolved to a non-object type "${t}".`,{nodes:r});if(!e.schema.isSubType(n,o))throw new d(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function us(t,e,n,r,i,s){const a=Ji(t,e,n);if(e.isTypeOf){const l=e.isTypeOf(s,t.contextValue,r);if(o(l))return l.then(r=>{if(!r)throw ps(e,s,n);return os(t,e,s,i,a)});if(!l)throw ps(e,s,n)}return os(t,e,s,i,a)}function ps(t,e,n){return new d(`Expected value of type "${t.name}" but got: ${it(e)}.`,{nodes:n})}const ds=function(t,e,n,r){if(a(t)&&"string"==typeof t.__typename)return t.__typename;const i=n.schema.getPossibleTypes(r),s=[];for(let r=0;r<i.length;r++){const a=i[r];if(a.isTypeOf){const i=a.isTypeOf(t,e,n);if(o(i))s[r]=i;else if(i)return s.length&&Promise.allSettled(s).catch(()=>{}),a.name}}return s.length?Promise.all(s).then(t=>{for(let e=0;e<t.length;e++)if(t[e])return i[e].name}):void 0},fs=function(t,e,n,r){if(a(t)||"function"==typeof t){const i=t[r.fieldName];return"function"==typeof i?t[r.fieldName](e,n,r):i}};function gs(t,e,n){const r=n.name.value;return r===Qn.name&&t.getQueryType()===e?Qn:r===Fn.name&&t.getQueryType()===e?Fn:r===Ln.name?Ln:e.getFields()[r]}function ms(t){return new Promise(e=>e(vs(t)))}function ys(t){const e=vs(t);if(o(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function vs(t){arguments.length<2||s(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,source:n,rootValue:r,contextValue:i,variableValues:o,operationName:a,fieldResolver:l,typeResolver:A}=t,c=Hn(e);if(c.length>0)return{errors:c};let h;try{h=At(n)}catch(t){return{errors:[t]}}const u=Yi(e,h);return u.length>0?{errors:u}:es({schema:e,document:h,rootValue:r,contextValue:i,variableValues:o,operationName:a,fieldResolver:l,typeResolver:A})}function Os(t){return"function"==typeof(null==t?void 0:t[Symbol.asyncIterator])}async function bs(t){arguments.length<2||s(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const e=await xs(t);return Os(e)?function(e){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await(r=e.value,es({...t,rootValue:r})),done:!1}}catch(t){if("function"==typeof n.return)try{await n.return()}catch(t){}throw t}var r}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(t){if("function"==typeof n.throw)return r(await n.throw(t));throw t},[Symbol.asyncIterator](){return this}}}(e):e}async function xs(...t){const e=function(t){const e=t[0];return e&&"document"in e?e:{schema:e,document:t[1],rootValue:t[2],contextValue:t[3],variableValues:t[4],operationName:t[5],subscribeFieldResolver:t[6]}}(t),{schema:n,document:r,variableValues:i}=e;is(n,r,i);const s=ss(e);if(!("schema"in s))return{errors:s};try{const t=await async function(t){const{schema:e,fragments:n,operation:r,variableValues:i,rootValue:s}=t,o=e.getSubscriptionType();if(null==o)throw new d("Schema is not configured to execute subscription operation.",{nodes:r});const a=gi(e,n,i,o,r.selectionSet),[l,A]=[...a.entries()][0],c=gs(e,o,A[0]);if(!c){const t=A[0].name.value;throw new d(`The subscription field "${t}" is not defined.`,{nodes:A})}const h=ii(void 0,l,o.name),u=ls(t,c,A,o,h);try{var p;const e=pi(c,A[0],i),n=t.contextValue,r=null!==(p=c.subscribe)&&void 0!==p?p:t.subscribeFieldResolver,o=await r(s,e,n,u);if(o instanceof Error)throw o;return o}catch(t){throw qi(t,A,si(h))}}(s);if(!Os(t))throw new Error(`Subscription field must return Async Iterable. Received: ${it(t)}.`);return t}catch(t){if(t instanceof d)return{errors:[t]};throw t}}function ws(t){return{Field(e){const n=t.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=t.getParentType();null!=i||l(!1),t.reportError(new d(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:e}))}},Argument(e){const n=t.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=t.getDirective();if(null!=i)t.reportError(new d(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:e}));else{const i=t.getParentType(),s=t.getFieldDef();null!=i&&null!=s||l(!1),t.reportError(new d(`Field "${i.name}.${s.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:e}))}}},ObjectField(e){const n=Pe(t.getParentInputType());if(se(n)){const r=n.getFields()[e.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&t.reportError(new d(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:e}))}},EnumValue(e){const n=t.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=Pe(t.getInputType());null!=i||l(!1),t.reportError(new d(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:e}))}}}}function _s(t){return{Field(e){const n=Pe(t.getType());n&&Dn(n)&&t.reportError(new d(`GraphQL introspection has been disabled, but the requested query contained the field "${e.name.value}".`,{nodes:e}))}}}function Ss(t){const e={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,experimentalDirectiveDeprecation:!1,oneOf:!1,typeDepth:9,...t},n=e.descriptions?"description":"",r=e.specifiedByUrl?"specifiedByURL":"",i=e.directiveIsRepeatable?"isRepeatable":"",s=e.schemaDescription?n:"";function o(t){return e.inputValueDeprecation?t:""}function a(t){return e.experimentalDirectiveDeprecation?t:""}const l=e.oneOf?"isOneOf":"";return`\n    query IntrospectionQuery {\n      __schema {\n        ${s}\n        queryType { name kind }\n        mutationType { name kind }\n        subscriptionType { name kind }\n        types {\n          ...FullType\n        }\n        directives${a("(includeDeprecated: true)")} {\n          name\n          ${n}\n          ${i}\n          ${a("isDeprecated")}\n          ${a("deprecationReason")}\n          locations\n          args${o("(includeDeprecated: true)")} {\n            ...InputValue\n          }\n        }\n      }\n    }\n\n    fragment FullType on __Type {\n      kind\n      name\n      ${n}\n      ${r}\n      ${l}\n      fields(includeDeprecated: true) {\n        name\n        ${n}\n        args${o("(includeDeprecated: true)")} {\n          ...InputValue\n        }\n        type {\n          ...TypeRef\n        }\n        isDeprecated\n        deprecationReason\n      }\n      inputFields${o("(includeDeprecated: true)")} {\n        ...InputValue\n      }\n      interfaces {\n        ...TypeRef\n      }\n      enumValues(includeDeprecated: true) {\n        name\n        ${n}\n        isDeprecated\n        deprecationReason\n      }\n      possibleTypes {\n        ...TypeRef\n      }\n    }\n\n    fragment InputValue on __InputValue {\n      name\n      ${n}\n      type { ...TypeRef }\n      defaultValue\n      ${o("isDeprecated")}\n      ${o("deprecationReason")}\n    }\n\n    fragment TypeRef on __Type {\n      kind\n      name${function t(e,n){if(e<=0)return"";if(e>100)throw new Error("Please set typeDepth to a reasonable value between 0 and 100; the default is 9.");return`\n${n}ofType {\n${n}  name\n${n}  kind${t(e-1,n+"  ")}\n${n}}`}(e.typeDepth,"      ")}\n    }\n  `}function Cs(t,e){let n=null;for(const i of t.definitions){var r;if(i.kind===C.OPERATION_DEFINITION)if(null==e){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===e)return i}return n}function Es(t,e){if("query"===e.operation){const n=t.getQueryType();if(!n)throw new d("Schema does not define the required query root type.",{nodes:e});return n}if("mutation"===e.operation){const n=t.getMutationType();if(!n)throw new d("Schema is not configured for mutations.",{nodes:e});return n}if("subscription"===e.operation){const n=t.getSubscriptionType();if(!n)throw new d("Schema is not configured for subscriptions.",{nodes:e});return n}throw new d("Can only have query, mutation and subscription operations.",{nodes:e})}function Bs(t,e){const n=ns({schema:t,document:At(Ss({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,experimentalDirectiveDeprecation:!0,oneOf:!0,...e}))});return!n.errors&&n.data||l(!1),n.data}function Ts(t,e){a(t)&&a(t.__schema)||s(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${it(t)}.`);const n=t.__schema,r=Ot(n.types,t=>t.name,t=>function(t){if(null!=t&&null!=t.name&&null!=t.kind)switch(t.kind){case In.SCALAR:return new Ne({name:(r=t).name,description:r.description,specifiedByURL:r.specifiedByURL});case In.OBJECT:return new Qe({name:(n=t).name,description:n.description,interfaces:()=>d(n),fields:()=>f(n)});case In.INTERFACE:return new je({name:(e=t).name,description:e.description,interfaces:()=>d(e),fields:()=>f(e)});case In.UNION:return function(t){if(!t.possibleTypes){const e=it(t);throw new Error(`Introspection result missing possibleTypes: ${e}.`)}return new He({name:t.name,description:t.description,types:()=>t.possibleTypes.map(u)})}(t);case In.ENUM:return function(t){if(!t.enumValues){const e=it(t);throw new Error(`Introspection result missing enumValues: ${e}.`)}return new Xe({name:t.name,description:t.description,values:Ot(t.enumValues,t=>t.name,t=>({description:t.description,deprecationReason:t.deprecationReason}))})}(t);case In.INPUT_OBJECT:return function(t){if(!t.inputFields){const e=it(t);throw new Error(`Introspection result missing inputFields: ${e}.`)}return new Ye({name:t.name,description:t.description,fields:()=>m(t.inputFields),isOneOf:t.isOneOf})}(t)}var e,n,r;const i=it(t);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(t));for(const t of[...ln,...Mn])r[t.name]&&(r[t.name]=t);const i=n.queryType?u(n.queryType):null,o=n.mutationType?u(n.mutationType):null,l=n.subscriptionType?u(n.subscriptionType):null,A=n.directives?n.directives.map(function(t){if(!t.args){const e=it(t);throw new Error(`Introspection result missing directive args: ${e}.`)}if(!t.locations){const e=it(t);throw new Error(`Introspection result missing directive locations: ${e}.`)}return new pn({name:t.name,description:t.description,isRepeatable:t.isRepeatable,deprecationReason:t.deprecationReason,locations:t.locations.slice(),args:m(t.args)})}):[];return new $n({description:n.description,query:i,mutation:o,subscription:l,types:Object.values(r),directives:A,assumeValid:null==e?void 0:e.assumeValid});function c(t){if(t.kind===In.LIST){const e=t.ofType;if(!e)throw new Error("Decorated type deeper than introspection query.");return new be(c(e))}if(t.kind===In.NON_NULL){const e=t.ofType;if(!e)throw new Error("Decorated type deeper than introspection query.");const n=c(e);return new xe(Ce(n))}return h(t)}function h(t){const e=t.name;if(!e)throw new Error(`Unknown type reference: ${it(t)}.`);const n=r[e];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${e}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function u(t){return qt(h(t))}function p(t){return te(h(t))}function d(t){if(null===t.interfaces&&t.kind===In.INTERFACE)return[];if(!t.interfaces){const e=it(t);throw new Error(`Introspection result missing interfaces: ${e}.`)}return t.interfaces.map(p)}function f(t){if(!t.fields)throw new Error(`Introspection result missing fields: ${it(t)}.`);return Ot(t.fields,t=>t.name,g)}function g(t){const e=c(t.type);if(!pe(e)){const t=it(e);throw new Error(`Introspection must provide output type for fields, but received: ${t}.`)}if(!t.args){const e=it(t);throw new Error(`Introspection result missing field args: ${e}.`)}return{description:t.description,deprecationReason:t.deprecationReason,type:e,args:m(t.args)}}function m(t){return Ot(t,t=>t.name,y)}function y(t){const e=c(t.type);if(!he(e)){const t=it(e);throw new Error(`Introspection must provide input type for arguments, but received: ${t}.`)}const n=null!=t.defaultValue?Ai(ct(t.defaultValue),e):void 0;return{description:t.description,type:e,defaultValue:n,deprecationReason:t.deprecationReason}}}function Ps(t,e,n){Un(t),null!=e&&e.kind===C.DOCUMENT||s(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(t,e){const n=Wi(t,e);if(0!==n.length)throw new Error(n.map(t=>t.message).join("\n\n"))}(e,t);const r=t.toConfig(),i=ks(r,e,n);return r===i?t:new $n(i)}function ks(t,e,n){var r,i,s,o;const a=[],A=Object.create(null),c=Object.create(null),h=[];let u;const p=[];for(const t of e.definitions)if(t.kind===C.SCHEMA_DEFINITION)u=t;else if(t.kind===C.SCHEMA_EXTENSION)p.push(t);else if(gr(t))a.push(t);else if(yr(t)){const e=t.name.value,n=A[e];A[e]=n?n.concat([t]):[t]}else if(t.kind===C.DIRECTIVE_DEFINITION)h.push(t);else if(t.kind===C.DIRECTIVE_EXTENSION){const e=t.name.value,n=c[e];c[e]=n?n.concat([t]):[t]}if(0===Object.keys(A).length&&0===a.length&&0===Object.keys(c).length&&0===h.length&&0===p.length&&null==u)return t;const d=Object.create(null);for(const e of t.types)d[e.name]=b(e);for(const t of a){var f;const e=t.name.value;d[e]=null!==(f=Is[e])&&void 0!==f?f:F(t)}const g=Object.create(null);for(const e of t.directives)g[e.name]=S(e);const m={query:t.query&&O(t.query),mutation:t.mutation&&O(t.mutation),subscription:t.subscription&&O(t.subscription),...u&&_([u]),..._(p)},y=Object.values(g);return{description:null===(r=u)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value,...m,types:Object.values(d),directives:[...y.map(function(t){const e=t.toConfig();return new pn({...e,args:bt(e.args,w)})}),...h.map(function(t){var e,n,r;const i=null!==(e=c[t.name.value])&&void 0!==e?e:[],s=null!==(n=Ns(t))&&void 0!==n?n:i.map(t=>Ns(t)).find(t=>null!=t);return new pn({name:t.name.value,description:null===(r=t.description)||void 0===r?void 0:r.value,locations:t.locations.map(({value:t})=>t),isRepeatable:t.repeatable,args:P(t.arguments),deprecationReason:s,astNode:t,extensionASTNodes:i})})],extensions:Object.create(null),astNode:null!==(s=u)&&void 0!==s?s:t.astNode,extensionASTNodes:t.extensionASTNodes.concat(p),assumeValid:null!==(o=null==n?void 0:n.assumeValid)&&void 0!==o&&o};function v(t){return ae(t)?new be(v(t.ofType)):Ae(t)?new xe(v(t.ofType)):O(t)}function O(t){return d[t.name]}function b(t){return Dn(t)||An(t)?t:Wt(t)?function(t){var e;const n=t.toConfig(),r=null!==(e=A[n.name])&&void 0!==e?e:[];let i=n.specifiedByURL;for(const t of r){var s;i=null!==(s=Qs(t))&&void 0!==s?s:i}return new Ne({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):Kt(t)?function(t){var e;const n=t.toConfig(),r=null!==(e=A[n.name])&&void 0!==e?e:[];return new Qe({...n,interfaces:()=>[...t.getInterfaces().map(O),...N(r)],fields:()=>({...bt(n.fields,x),...T(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):Jt(t)?function(t){var e;const n=t.toConfig(),r=null!==(e=A[n.name])&&void 0!==e?e:[];return new je({...n,interfaces:()=>[...t.getInterfaces().map(O),...N(r)],fields:()=>({...bt(n.fields,x),...T(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):ee(t)?function(t){var e;const n=t.toConfig(),r=null!==(e=A[n.name])&&void 0!==e?e:[];return new He({...n,types:()=>[...t.getTypes().map(O),...Q(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):re(t)?function(t){var e;const n=t.toConfig(),r=null!==(e=A[t.name])&&void 0!==e?e:[];return new Xe({...n,values:{...n.values,...I(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):se(t)?function(t){var e;const n=t.toConfig(),r=null!==(e=A[n.name])&&void 0!==e?e:[];return new Ye({...n,fields:()=>({...bt(n.fields,t=>({...t,type:v(t.type)})),...k(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):void l(!1,"Unexpected type: "+it(t))}function x(t){return{...t,type:v(t.type),args:t.args&&bt(t.args,w)}}function w(t){return{...t,type:v(t.type)}}function _(t){const e={};for(const r of t){var n;const t=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of t)e[n.operation]=E(n.type)}return e}function S(t){var e,n;const r=t.toConfig(),i=null!==(e=c[r.name])&&void 0!==e?e:[],s=null!==(n=r.deprecationReason)&&void 0!==n?n:i.map(t=>Ns(t)).find(t=>null!=t);return new pn({...r,deprecationReason:s,extensionASTNodes:r.extensionASTNodes.concat(i)})}function E(t){var e;const n=t.name.value,r=null!==(e=Is[n])&&void 0!==e?e:d[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function B(t){return t.kind===C.LIST_TYPE?new be(B(t.type)):t.kind===C.NON_NULL_TYPE?new xe(B(t.type)):E(t)}function T(t){const e=Object.create(null);for(const i of t){var n;const t=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of t){var r;e[n.name.value]={type:B(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:P(n.arguments),deprecationReason:Ns(n),astNode:n}}}return e}function P(t){const e=null!=t?t:[],n=Object.create(null);for(const t of e){var r;const e=B(t.type);n[t.name.value]={type:e,description:null===(r=t.description)||void 0===r?void 0:r.value,defaultValue:Ai(t.defaultValue,e),deprecationReason:Ns(t),astNode:t}}return n}function k(t){const e=Object.create(null);for(const i of t){var n;const t=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of t){var r;const t=B(n.type);e[n.name.value]={type:t,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:Ai(n.defaultValue,t),deprecationReason:Ns(n),astNode:n}}}return e}function I(t){const e=Object.create(null);for(const i of t){var n;const t=null!==(n=i.values)&&void 0!==n?n:[];for(const n of t){var r;e[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:Ns(n),astNode:n}}}return e}function N(t){return t.flatMap(t=>{var e,n;return null!==(e=null===(n=t.interfaces)||void 0===n?void 0:n.map(E))&&void 0!==e?e:[]})}function Q(t){return t.flatMap(t=>{var e,n;return null!==(e=null===(n=t.types)||void 0===n?void 0:n.map(E))&&void 0!==e?e:[]})}function F(t){var e;const n=t.name.value,r=null!==(e=A[n])&&void 0!==e?e:[];switch(t.kind){case C.OBJECT_TYPE_DEFINITION:{var i;const e=[t,...r];return new Qe({name:n,description:null===(i=t.description)||void 0===i?void 0:i.value,interfaces:()=>N(e),fields:()=>T(e),astNode:t,extensionASTNodes:r})}case C.INTERFACE_TYPE_DEFINITION:{var s;const e=[t,...r];return new je({name:n,description:null===(s=t.description)||void 0===s?void 0:s.value,interfaces:()=>N(e),fields:()=>T(e),astNode:t,extensionASTNodes:r})}case C.ENUM_TYPE_DEFINITION:{var o;const e=[t,...r];return new Xe({name:n,description:null===(o=t.description)||void 0===o?void 0:o.value,values:I(e),astNode:t,extensionASTNodes:r})}case C.UNION_TYPE_DEFINITION:{var a;const e=[t,...r];return new He({name:n,description:null===(a=t.description)||void 0===a?void 0:a.value,types:()=>Q(e),astNode:t,extensionASTNodes:r})}case C.SCALAR_TYPE_DEFINITION:var l;return new Ne({name:n,description:null===(l=t.description)||void 0===l?void 0:l.value,specifiedByURL:Qs(t),astNode:t,extensionASTNodes:r});case C.INPUT_OBJECT_TYPE_DEFINITION:{var c;const e=[t,...r];return new Ye({name:n,description:null===(c=t.description)||void 0===c?void 0:c.value,fields:()=>k(e),astNode:t,extensionASTNodes:r,isOneOf:(h=t,Boolean(di(vn,h)))})}}var h}}const Is=vt([...ln,...Mn],t=>t.name);function Ns(t){const e=di(mn,t);return null==e?void 0:e.reason}function Qs(t){const e=di(yn,t);return null==e?void 0:e.url}function Fs(t,e){null!=t&&t.kind===C.DOCUMENT||s(!1,"Must provide valid Document AST."),!0!==(null==e?void 0:e.assumeValid)&&!0!==(null==e?void 0:e.assumeValidSDL)&&function(t){const e=Wi(t);if(0!==e.length)throw new Error(e.map(t=>t.message).join("\n\n"))}(t);const n=ks({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},t,e);if(null==n.astNode)for(const t of n.types)switch(t.name){case"Query":n.query=t;break;case"Mutation":n.mutation=t;break;case"Subscription":n.subscription=t}const r=[...n.directives,...On.filter(t=>n.directives.every(e=>e.name!==t.name))];return new $n({...n,directives:r})}function Ls(t,e){return Fs(At(t,{noLocation:null==e?void 0:e.noLocation,allowLegacyFragmentVariables:null==e?void 0:e.allowLegacyFragmentVariables,experimentalDirectivesOnDirectiveDefinitions:null==e?void 0:e.experimentalDirectivesOnDirectiveDefinitions}),{assumeValidSDL:null==e?void 0:e.assumeValidSDL,assumeValid:null==e?void 0:e.assumeValid})}function Ms(t){const e=t.toConfig(),n=Ot(Rs(e.types),t=>t.name,function(t){if(Wt(t)||Dn(t))return t;if(Kt(t)){const e=t.toConfig();return new Qe({...e,interfaces:()=>A(e.interfaces),fields:()=>a(e.fields)})}if(Jt(t)){const e=t.toConfig();return new je({...e,interfaces:()=>A(e.interfaces),fields:()=>a(e.fields)})}if(ee(t)){const e=t.toConfig();return new He({...e,types:()=>A(e.types)})}if(re(t)){const e=t.toConfig();return new Xe({...e,values:Ds(e.values,t=>t)})}if(se(t)){const e=t.toConfig();return new Ye({...e,fields:()=>Ds(e.fields,t=>({...t,type:r(t.type)}))})}l(!1,"Unexpected type: "+it(t))});return new $n({...e,types:Object.values(n),directives:Rs(e.directives).map(function(t){const e=t.toConfig();return new pn({...e,locations:Us(e.locations,t=>t),args:o(e.args)})}),query:s(e.query),mutation:s(e.mutation),subscription:s(e.subscription)});function r(t){return ae(t)?new be(r(t.ofType)):Ae(t)?new xe(r(t.ofType)):i(t)}function i(t){return n[t.name]}function s(t){return t&&i(t)}function o(t){return Ds(t,t=>({...t,type:r(t.type)}))}function a(t){return Ds(t,t=>({...t,type:r(t.type),args:t.args&&o(t.args)}))}function A(t){return Rs(t).map(i)}}function Ds(t,e){const n=Object.create(null);for(const r of Object.keys(t).sort(xt))n[r]=e(t[r]);return n}function Rs(t){return Us(t,t=>t.name)}function Us(t,e){return t.slice().sort((t,n)=>xt(e(t),e(n)))}function $s(t){return Vs(t,t=>!bn(t),Hs)}function js(t){return Vs(t,bn,Dn)}function Hs(t){return!An(t)&&!Dn(t)}function Vs(t,e,n){const r=t.getDirectives().filter(e),i=Object.values(t.getTypeMap()).filter(n);return[Xs(t),...r.map(t=>function(t){return Js(t)+"directive @"+t.name+Zs(t.args)+qs(t.deprecationReason)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}(t)),...i.map(t=>zs(t))].filter(Boolean).join("\n\n")}function Xs(t){if(null==t.description&&function(t){const e=t.getQueryType();if(e&&"Query"!==e.name)return!1;const n=t.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=t.getSubscriptionType();return!r||"Subscription"===r.name}(t))return;const e=[],n=t.getQueryType();n&&e.push(`  query: ${n.name}`);const r=t.getMutationType();r&&e.push(`  mutation: ${r.name}`);const i=t.getSubscriptionType();return i&&e.push(`  subscription: ${i.name}`),Js(t)+`schema {\n${e.join("\n")}\n}`}function zs(t){return Wt(t)?function(t){return Js(t)+`scalar ${t.name}`+(null==(e=t).specifiedByURL?"":` @specifiedBy(url: ${Mt({kind:C.STRING,value:e.specifiedByURL})})`);var e}(t):Kt(t)?function(t){return Js(t)+`type ${t.name}`+Gs(t)+Ys(t)}(t):Jt(t)?function(t){return Js(t)+`interface ${t.name}`+Gs(t)+Ys(t)}(t):ee(t)?function(t){const e=t.getTypes(),n=e.length?" = "+e.join(" | "):"";return Js(t)+"union "+t.name+n}(t):re(t)?function(t){const e=t.getValues().map((t,e)=>Js(t,"  ",!e)+"  "+t.name+qs(t.deprecationReason));return Js(t)+`enum ${t.name}`+Ws(e)}(t):se(t)?function(t){const e=Object.values(t.getFields()).map((t,e)=>Js(t,"  ",!e)+"  "+Ks(t));return Js(t)+`input ${t.name}`+(t.isOneOf?" @oneOf":"")+Ws(e)}(t):void l(!1,"Unexpected type: "+it(t))}function Gs(t){const e=t.getInterfaces();return e.length?" implements "+e.map(t=>t.name).join(" & "):""}function Ys(t){return Ws(Object.values(t.getFields()).map((t,e)=>Js(t,"  ",!e)+"  "+t.name+Zs(t.args,"  ")+": "+String(t.type)+qs(t.deprecationReason)))}function Ws(t){return 0!==t.length?" {\n"+t.join("\n")+"\n}":""}function Zs(t,e=""){return 0===t.length?"":t.every(t=>!t.description)?"("+t.map(Ks).join(", ")+")":"(\n"+t.map((t,n)=>Js(t,"  "+e,!n)+"  "+e+Ks(t)).join("\n")+"\n"+e+")"}function Ks(t){const e=wn(t.defaultValue,t.type);let n=t.name+": "+String(t.type);return e&&(n+=` = ${Mt(e)}`),n+qs(t.deprecationReason)}function qs(t){return null==t?"":t!==gn?` @deprecated(reason: ${Mt({kind:C.STRING,value:t})})`:" @deprecated"}function Js(t,e="",n=!0){const{description:r}=t;return null==r?"":(e&&!n?"\n"+e:e)+Mt({kind:C.STRING,value:r,block:F(r)}).replace(/\n/g,"\n"+e)+"\n"}function to(t){const e=[];for(const n of t)e.push(...n.definitions);return{kind:C.DOCUMENT,definitions:e}}function eo(t){const e=[],n=Object.create(null);for(const r of t.definitions)switch(r.kind){case C.OPERATION_DEFINITION:e.push(r);break;case C.FRAGMENT_DEFINITION:n[r.name.value]=ro(r.selectionSet)}const r=Object.create(null);for(const i of e){const e=new Set;for(const t of ro(i.selectionSet))no(e,n,t);r[i.name?i.name.value:""]={kind:C.DOCUMENT,definitions:t.definitions.filter(t=>t===i||t.kind===C.FRAGMENT_DEFINITION&&e.has(t.name.value))}}return r}function no(t,e,n){if(!t.has(n)){t.add(n);const r=e[n];if(void 0!==r)for(const n of r)no(t,e,n)}}function ro(t){const e=[];return Nt(t,{FragmentSpread(t){e.push(t.name.value)}}),e}function io(t){const e=lt(t)?t:new at(t),n=e.body,r=new M(e);let i="",s=!1;for(;r.advance().kind!==E.EOF;){const t=r.token,e=t.kind,o=!D(t.kind);s&&(o||t.kind===E.SPREAD)&&(i+=" ");const a=n.slice(t.start,t.end);e===E.BLOCK_STRING?i+=L(t.value,{minimize:!0}):i+=a,s=o}return i}function so(t){const e=oo(t);if(e)throw e;return t}function oo(t){if("string"==typeof t||s(!1,"Expected name to be a string."),t.startsWith("__"))return new d(`Name "${t}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Xt(t)}catch(t){return t}}var ao,lo;function Ao(t,e){return ho(t,e).filter(t=>t.type in ao)}function co(t,e){return ho(t,e).filter(t=>t.type in lo)}function ho(t,e){return[...po(t,e),...uo(t,e)]}function uo(t,e){const n=[],r=So(t.getDirectives(),e.getDirectives());for(const t of r.removed)n.push({type:ao.DIRECTIVE_REMOVED,description:`${t.name} was removed.`});for(const[t,e]of r.persisted){const r=So(t.args,e.args);for(const e of r.added)$e(e)&&n.push({type:ao.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${e.name} on directive ${t.name} was added.`});for(const e of r.removed)n.push({type:ao.DIRECTIVE_ARG_REMOVED,description:`${e.name} was removed from ${t.name}.`});t.isRepeatable&&!e.isRepeatable&&n.push({type:ao.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${t.name}.`});for(const r of t.locations)e.locations.includes(r)||n.push({type:ao.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${t.name}.`})}return n}function po(t,e){const n=[],r=So(Object.values(t.getTypeMap()),Object.values(e.getTypeMap()));for(const t of r.removed)n.push({type:ao.TYPE_REMOVED,description:An(t)?`Standard scalar ${t.name} was removed because it is not referenced anymore.`:`${t.name} was removed.`});for(const[t,e]of r.persisted)re(t)&&re(e)?n.push(...mo(t,e)):ee(t)&&ee(e)?n.push(...go(t,e)):se(t)&&se(e)?n.push(...fo(t,e)):Kt(t)&&Kt(e)||Jt(t)&&Jt(e)?n.push(...vo(t,e),...yo(t,e)):t.constructor!==e.constructor&&n.push({type:ao.TYPE_CHANGED_KIND,description:`${t.name} changed from ${wo(t)} to ${wo(e)}.`});return n}function fo(t,e){const n=[],r=So(Object.values(t.getFields()),Object.values(e.getFields()));for(const e of r.added)Ze(e)?n.push({type:ao.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${e.name} on input type ${t.name} was added.`}):n.push({type:lo.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${e.name} on input type ${t.name} was added.`});for(const e of r.removed)n.push({type:ao.FIELD_REMOVED,description:`${t.name}.${e.name} was removed.`});for(const[e,i]of r.persisted)xo(e.type,i.type)||n.push({type:ao.FIELD_CHANGED_KIND,description:`${t.name}.${e.name} changed type from ${String(e.type)} to ${String(i.type)}.`});return n}function go(t,e){const n=[],r=So(t.getTypes(),e.getTypes());for(const e of r.added)n.push({type:lo.TYPE_ADDED_TO_UNION,description:`${e.name} was added to union type ${t.name}.`});for(const e of r.removed)n.push({type:ao.TYPE_REMOVED_FROM_UNION,description:`${e.name} was removed from union type ${t.name}.`});return n}function mo(t,e){const n=[],r=So(t.getValues(),e.getValues());for(const e of r.added)n.push({type:lo.VALUE_ADDED_TO_ENUM,description:`${e.name} was added to enum type ${t.name}.`});for(const e of r.removed)n.push({type:ao.VALUE_REMOVED_FROM_ENUM,description:`${e.name} was removed from enum type ${t.name}.`});return n}function yo(t,e){const n=[],r=So(t.getInterfaces(),e.getInterfaces());for(const e of r.added)n.push({type:lo.IMPLEMENTED_INTERFACE_ADDED,description:`${e.name} added to interfaces implemented by ${t.name}.`});for(const e of r.removed)n.push({type:ao.IMPLEMENTED_INTERFACE_REMOVED,description:`${t.name} no longer implements interface ${e.name}.`});return n}function vo(t,e){const n=[],r=So(Object.values(t.getFields()),Object.values(e.getFields()));for(const e of r.removed)n.push({type:ao.FIELD_REMOVED,description:`${t.name}.${e.name} was removed.`});for(const[e,i]of r.persisted)n.push(...Oo(t,e,i)),bo(e.type,i.type)||n.push({type:ao.FIELD_CHANGED_KIND,description:`${t.name}.${e.name} changed type from ${String(e.type)} to ${String(i.type)}.`});return n}function Oo(t,e,n){const r=[],i=So(e.args,n.args);for(const n of i.removed)r.push({type:ao.ARG_REMOVED,description:`${t.name}.${e.name} arg ${n.name} was removed.`});for(const[n,s]of i.persisted)if(xo(n.type,s.type)){if(void 0!==n.defaultValue)if(void 0===s.defaultValue)r.push({type:lo.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${n.name} defaultValue was removed.`});else{const i=_o(n.defaultValue,n.type),o=_o(s.defaultValue,s.type);i!==o&&r.push({type:lo.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${n.name} has changed defaultValue from ${i} to ${o}.`})}}else r.push({type:ao.ARG_CHANGED_KIND,description:`${t.name}.${e.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(s.type)}.`});for(const n of i.added)$e(n)?r.push({type:ao.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${t.name}.${e.name} was added.`}):r.push({type:lo.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${t.name}.${e.name} was added.`});return r}function bo(t,e){return ae(t)?ae(e)&&bo(t.ofType,e.ofType)||Ae(e)&&bo(t,e.ofType):Ae(t)?Ae(e)&&bo(t.ofType,e.ofType):Be(e)&&t.name===e.name||Ae(e)&&bo(t,e.ofType)}function xo(t,e){return ae(t)?ae(e)&&xo(t.ofType,e.ofType):Ae(t)?Ae(e)&&xo(t.ofType,e.ofType)||!Ae(e)&&xo(t.ofType,e):Be(e)&&t.name===e.name}function wo(t){return Wt(t)?"a Scalar type":Kt(t)?"an Object type":Jt(t)?"an Interface type":ee(t)?"a Union type":re(t)?"an Enum type":se(t)?"an Input type":void l(!1,"Unexpected type: "+it(t))}function _o(t,e){const n=wn(t,e);return null!=n||l(!1),Mt(Lr(n))}function So(t,e){const n=[],r=[],i=[],s=vt(t,({name:t})=>t),o=vt(e,({name:t})=>t);for(const e of t){const t=o[e.name];void 0===t?r.push(e):i.push([e,t])}for(const t of e)void 0===s[t.name]&&n.push(t);return{added:n,persisted:i,removed:r}}function Co(t,e){return Eo(t,pt(e))}function Eo(t,e){switch(e.kind){case C.TYPE_COORDINATE:return function(t,e){const n=e.name.value,r=t.getType(n);if(null!=r)return{kind:"NamedType",type:r}}(t,e);case C.MEMBER_COORDINATE:return function(t,e){const n=e.name.value,r=t.getType(n);if(!r)throw new Error(`Expected ${it(n)} to be defined as a type in the schema.`);if(!(re(r)||se(r)||Kt(r)||Jt(r)))throw new Error(`Expected ${it(n)} to be an Enum, Input Object, Object or Interface type.`);if(re(r)){const t=e.memberName.value,n=r.getValue(t);if(null==n)return;return{kind:"EnumValue",type:r,enumValue:n}}if(se(r)){const t=e.memberName.value,n=r.getFields()[t];if(null==n)return;return{kind:"InputField",type:r,inputField:n}}const i=e.memberName.value,s=r.getFields()[i];if(null!=s)return{kind:"Field",type:r,field:s}}(t,e);case C.ARGUMENT_COORDINATE:return function(t,e){const n=e.name.value,r=t.getType(n);if(null==r)throw new Error(`Expected ${it(n)} to be defined as a type in the schema.`);if(!Kt(r)&&!Jt(r))throw new Error(`Expected ${it(n)} to be an object type or interface type.`);const i=e.fieldName.value,s=r.getFields()[i];if(null==s)throw new Error(`Expected ${it(i)} to exist as a field of type ${it(n)} in the schema.`);const o=e.argumentName.value,a=s.args.find(t=>t.name===o);if(null!=a)return{kind:"FieldArgument",type:r,field:s,fieldArgument:a}}(t,e);case C.DIRECTIVE_COORDINATE:return function(t,e){const n=e.name.value,r=t.getDirective(n);if(r)return{kind:"Directive",directive:r}}(t,e);case C.DIRECTIVE_ARGUMENT_COORDINATE:return function(t,e){const n=e.name.value,r=t.getDirective(n);if(!r)throw new Error(`Expected ${it(n)} to be defined as a directive in the schema.`);const{argumentName:{value:i}}=e,s=r.args.find(t=>t.name===i);if(s)return{kind:"DirectiveArgument",directive:r,directiveArgument:s}}(t,e)}}!function(t){t.TYPE_REMOVED="TYPE_REMOVED",t.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",t.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",t.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",t.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",t.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",t.FIELD_REMOVED="FIELD_REMOVED",t.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",t.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",t.ARG_REMOVED="ARG_REMOVED",t.ARG_CHANGED_KIND="ARG_CHANGED_KIND",t.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",t.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",t.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",t.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",t.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(ao||(ao={})),function(t){t.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",t.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",t.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",t.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",t.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",t.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(lo||(lo={}))},25722(t,e,n){"use strict";n.d(e,{H:()=>b});var r=n(12172),i=n(40562),s=n(10150);const o=/[ \t\n\f\r]/g;function a(t){return""===t.replace(o,"")}var l=n(639),A=n(74946),c=n(67389),h=n(34683),u=n(41832),p=n(69974),d=n(48112);const f={}.hasOwnProperty,g=new Map,m=/[A-Z]/g,y=new Set(["table","tbody","thead","tfoot","tr"]),v=new Set(["td","th"]),O="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function b(t,e){if(!e||void 0===e.Fragment)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if("function"!=typeof e.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(t,e){return function(n,r,i,s){const o=Array.isArray(i.children),a=(0,p.PW)(n);return e(r,i,s,o,{columnNumber:a?a.column-1:void 0,fileName:t,lineNumber:a?a.line:void 0},void 0)}}(n,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,s=e.jsxs,r=function(t,e,n,r){const o=Array.isArray(n.children)?s:i;return r?o(e,n,r):o(e,n)}}var i,s;const o={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:!1!==e.passKeys,passNode:e.passNode||!1,schema:"svg"===e.space?l.JW:l.qy,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==e.tableCellAlignToStyle},a=x(o,t,void 0);return a&&"string"!=typeof a?a:o.create(t,o.Fragment,{children:a||void 0},void 0)}function x(t,e,n){return"element"===e.type?function(t,e,n){const r=t.schema;let i=r;"svg"===e.tagName.toLowerCase()&&"html"===r.space&&(i=l.JW,t.schema=i),t.ancestors.push(e);const s=E(t,e.tagName,!1),o=function(t,e){const n={};let r,i;for(i in e.properties)if("children"!==i&&f.call(e.properties,i)){const s=C(t,i,e.properties[i]);if(s){const[i,o]=s;t.tableCellAlignToStyle&&"align"===i&&"string"==typeof o&&v.has(e.tagName)?r=o:n[i]=o}}return r&&((n.style||(n.style={}))["css"===t.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(t,e);let A=S(t,e);return y.has(e.tagName)&&(A=A.filter(function(t){return"string"!=typeof t||!("object"==typeof(e=t)?"text"===e.type&&a(e.value):a(e));var e})),w(t,o,s,e),_(o,A),t.ancestors.pop(),t.schema=r,t.create(e,s,o,n)}(t,e,n):"mdxFlowExpression"===e.type||"mdxTextExpression"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater){const n=e.data.estree.body[0];return(0,i.ok)("ExpressionStatement"===n.type),t.evaluater.evaluateExpression(n.expression)}B(t,e.position)}(t,e):"mdxJsxFlowElement"===e.type||"mdxJsxTextElement"===e.type?function(t,e,n){const r=t.schema;let s=r;"svg"===e.name&&"html"===r.space&&(s=l.JW,t.schema=s),t.ancestors.push(e);const o=null===e.name?t.Fragment:E(t,e.name,!0),a=function(t,e){const n={};for(const r of e.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&t.evaluater){const e=r.data.estree.body[0];(0,i.ok)("ExpressionStatement"===e.type);const s=e.expression;(0,i.ok)("ObjectExpression"===s.type);const o=s.properties[0];(0,i.ok)("SpreadElement"===o.type),Object.assign(n,t.evaluater.evaluateExpression(o.argument))}else B(t,e.position);else{const s=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&t.evaluater){const e=r.value.data.estree.body[0];(0,i.ok)("ExpressionStatement"===e.type),o=t.evaluater.evaluateExpression(e.expression)}else B(t,e.position);else o=null===r.value||r.value;n[s]=o}return n}(t,e),A=S(t,e);return w(t,a,o,e),_(a,A),t.ancestors.pop(),t.schema=r,t.create(e,o,a,n)}(t,e,n):"mdxjsEsm"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);B(t,e.position)}(t,e):"root"===e.type?function(t,e,n){const r={};return _(r,S(t,e)),t.create(e,t.Fragment,r,n)}(t,e,n):"text"===e.type?function(t,e){return e.value}(0,e):void 0}function w(t,e,n,r){"string"!=typeof n&&n!==t.Fragment&&t.passNode&&(e.node=r)}function _(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function S(t,e){const n=[];let r=-1;const i=t.passKeys?new Map:g;for(;++r<e.children.length;){const s=e.children[r];let o;if(t.passKeys){const t="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(t){const e=i.get(t)||0;o=t+"-"+e,i.set(t,e+1)}}const a=x(t,s,o);void 0!==a&&n.push(a)}return n}function C(t,e,n){const i=(0,A.I)(t.schema,e);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?(0,r.A)(n):(0,h.A)(n)),"style"===i.property){let e="object"==typeof n?n:function(t,e){try{return u(e,{reactCompat:!0})}catch(e){if(t.ignoreInvalidStyle)return{};const n=e,r=new d.o("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=O+"#cannot-parse-style-attribute",r}}(t,String(n));return"css"===t.stylePropertyNameCase&&(e=function(t){const e={};let n;for(n in t)f.call(t,n)&&(e[T(n)]=t[n]);return e}(e)),["style",e]}return["react"===t.elementAttributeNameCase&&i.space?c.H[i.property]||i.property:i.attribute,n]}}function E(t,e,n){let r;if(n)if(e.includes(".")){const t=e.split(".");let n,o=-1;for(;++o<t.length;){const e=(0,s.UU)(t[o])?{type:"Identifier",name:t[o]}:{type:"Literal",value:t[o]};n=n?{type:"MemberExpression",object:n,property:e,computed:Boolean(o&&"Literal"===e.type),optional:!1}:e}(0,i.ok)(n,"always a result"),r=n}else r=(0,s.UU)(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};else r={type:"Literal",value:e};if("Literal"===r.type){const e=r.value;return f.call(t.components,e)?t.components[e]:e}if(t.evaluater)return t.evaluater.evaluateExpression(r);B(t)}function B(t,e){const n=new d.o("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=O+"#cannot-handle-mdx-estrees-without-createevaluater",n}function T(t){let e=t.replace(m,P);return"ms-"===e.slice(0,3)&&(e="-"+e),e}function P(t){return"-"+t.toLowerCase()}},17770(t,e,n){"use strict";function r(t){const e=t&&"object"==typeof t&&"text"===t.type?t.value||"":t;return"string"==typeof e&&""===e.replace(/[ \t\n\f\r]/g,"")}n.d(e,{m:()=>r})},37519(t,e,n){"use strict";n.d(e,{$:()=>r});const r={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"]}},29695(t,e,n){"use strict";n.d(e,{Ay:()=>sa});class r{constructor(t,e,n,r){this.left=t,this.top=e,this.width=n,this.height=r}add(t,e,n,i){return new r(this.left+t,this.top+e,this.width+n,this.height+i)}static fromClientRect(t,e){return new r(e.left+t.windowBounds.left,e.top+t.windowBounds.top,e.width,e.height)}static fromDOMRectList(t,e){const n=Array.from(e);let i=n.find(t=>0!==t.width);return i||(i=n.find(t=>0!==t.height)),!i&&n.length>0&&(i=n[0]),i?new r(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height):r.EMPTY}}r.EMPTY=new r(0,0,0,0);const i=(t,e)=>r.fromClientRect(t,e.getBoundingClientRect());for(var s=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var s=t.charCodeAt(n++);56320==(64512&s)?e.push(((1023&i)<<10)+(1023&s)+65536):(e.push(i),n--)}else e.push(i)}return e},o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],i=-1,s="";++i<n;){var o=t[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},a="undefined"==typeof Uint8Array?[]:new Uint8Array(256),l=0;l<64;l++)a["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(l)]=l;for(var A="undefined"==typeof Uint8Array?[]:new Uint8Array(256),c=0;c<64;c++)A["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(c)]=c;for(var h=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},u=function(){function t(t,e,n,r,i,s){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}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),d=0;d<64;d++)p["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(d)]=d;var f,g,m,y,v,O,b,x,w=10,_=13,S=15,C=17,E=18,B=19,T=20,P=21,k=22,I=24,N=25,Q=26,F=27,L=28,M=30,D=32,R=33,U=34,$=35,j=37,H=38,V=39,X=40,z=42,G=[9001,65288],Y="×",W="÷",Z=(y=function(t){var e,n,r,i,s,o=.75*t.length,a=t.length,l=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),h=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<a;e+=4)n=A[t.charCodeAt(e)],r=A[t.charCodeAt(e+1)],i=A[t.charCodeAt(e+2)],s=A[t.charCodeAt(e+3)],h[l++]=n<<2|r>>4,h[l++]=(15&r)<<4|i>>2,h[l++]=(3&i)<<6|63&s;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,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n}(y):new Uint32Array(y),O=Array.isArray(y)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n}(y):new Uint16Array(y),b=h(O,12,v[4]/2),x=2===v[5]?h(O,(24+v[4])/2):(f=v,g=Math.ceil((24+v[4])/4),f.slice?f.slice(g,m):new Uint32Array(Array.prototype.slice.call(f,g,m))),new u(v[0],v[1],v[2],v[3],b,x)),K=[M,36],q=[1,2,3,5],J=[w,8],tt=[F,Q],et=q.concat(J),nt=[H,V,X,U,$],rt=[S,_],it=function(t,e,n,r){var i=r[n];if(Array.isArray(t)?-1!==t.indexOf(i):t===i)for(var s=n;s<=r.length;){if((l=r[++s])===e)return!0;if(l!==w)break}if(i===w)for(s=n;s>0;){var o=r[--s];if(Array.isArray(t)?-1!==t.indexOf(o):t===o)for(var a=n;a<=r.length;){var l;if((l=r[++a])===e)return!0;if(l!==w)break}if(o!==w)break}return!1},st=function(t,e){for(var n=t;n>=0;){var r=e[n];if(r!==w)return r;n--}return 0},ot=function(t,e,n,r,i){if(0===n[r])return Y;var s=r-1;if(Array.isArray(i)&&!0===i[s])return Y;var o=s-1,a=s+1,l=e[s],A=o>=0?e[o]:0,c=e[a];if(2===l&&3===c)return Y;if(-1!==q.indexOf(l))return"!";if(-1!==q.indexOf(c))return Y;if(-1!==J.indexOf(c))return Y;if(8===st(s,e))return W;if(11===Z.get(t[s]))return Y;if((l===D||l===R)&&11===Z.get(t[a]))return Y;if(7===l||7===c)return Y;if(9===l)return Y;if(-1===[w,_,S].indexOf(l)&&9===c)return Y;if(-1!==[C,E,B,I,L].indexOf(c))return Y;if(st(s,e)===k)return Y;if(it(23,k,s,e))return Y;if(it([C,E],P,s,e))return Y;if(it(12,12,s,e))return Y;if(l===w)return W;if(23===l||23===c)return Y;if(16===c||16===l)return W;if(-1!==[_,S,P].indexOf(c)||14===l)return Y;if(36===A&&-1!==rt.indexOf(l))return Y;if(l===L&&36===c)return Y;if(c===T)return Y;if(-1!==K.indexOf(c)&&l===N||-1!==K.indexOf(l)&&c===N)return Y;if(l===F&&-1!==[j,D,R].indexOf(c)||-1!==[j,D,R].indexOf(l)&&c===Q)return Y;if(-1!==K.indexOf(l)&&-1!==tt.indexOf(c)||-1!==tt.indexOf(l)&&-1!==K.indexOf(c))return Y;if(-1!==[F,Q].indexOf(l)&&(c===N||-1!==[k,S].indexOf(c)&&e[a+1]===N)||-1!==[k,S].indexOf(l)&&c===N||l===N&&-1!==[N,L,I].indexOf(c))return Y;if(-1!==[N,L,I,C,E].indexOf(c))for(var h=s;h>=0;){if((u=e[h])===N)return Y;if(-1===[L,I].indexOf(u))break;h--}if(-1!==[F,Q].indexOf(c))for(h=-1!==[C,E].indexOf(l)?o:s;h>=0;){var u;if((u=e[h])===N)return Y;if(-1===[L,I].indexOf(u))break;h--}if(H===l&&-1!==[H,V,U,$].indexOf(c)||-1!==[V,U].indexOf(l)&&-1!==[V,X].indexOf(c)||-1!==[X,$].indexOf(l)&&c===X)return Y;if(-1!==nt.indexOf(l)&&-1!==[T,Q].indexOf(c)||-1!==nt.indexOf(c)&&l===F)return Y;if(-1!==K.indexOf(l)&&-1!==K.indexOf(c))return Y;if(l===I&&-1!==K.indexOf(c))return Y;if(-1!==K.concat(N).indexOf(l)&&c===k&&-1===G.indexOf(t[a])||-1!==K.concat(N).indexOf(c)&&l===E)return Y;if(41===l&&41===c){for(var p=n[s],d=1;p>0&&41===e[--p];)d++;if(d%2!=0)return Y}return l===D&&c===R?Y:W},at=function(){function t(t,e,n,r){this.codePoints=t,this.required="!"===e,this.start=n,this.end=r}return t.prototype.slice=function(){return o.apply(void 0,this.codePoints.slice(this.start,this.end))},t}();const lt=45,At=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,dt=t=>(t=>(t=>t>=97&&t<=122)(t)||(t=>t>=65&&t<=90)(t))(t)||(t=>t>=128)(t)||95===t,ft=t=>dt(t)||ht(t)||t===lt,gt=t=>t>=0&&t<=8||11===t||t>=14&&t<=31||127===t,mt=(t,e)=>92===t&&10!==e,yt=(t,e,n)=>t===lt?dt(e)||mt(e,n):!!dt(t)||!(92!==t||!mt(t,e)),vt=(t,e,n)=>t===At||t===lt?!!ht(e)||46===e&&ht(n):ht(46===t?e:t),Ot=t=>{let e=0,n=1;t[e]!==At&&t[e]!==lt||(t[e]===lt&&(n=-1),e++);const r=[];for(;ht(t[e]);)r.push(t[e++]);const i=r.length?parseInt(o(...r),10):0;46===t[e]&&e++;const s=[];for(;ht(t[e]);)s.push(t[e++]);const a=s.length,l=a?parseInt(o(...s),10):0;69!==t[e]&&101!==t[e]||e++;let A=1;t[e]!==At&&t[e]!==lt||(t[e]===lt&&(A=-1),e++);const c=[];for(;ht(t[e]);)c.push(t[e++]);const h=c.length?parseInt(o(...c),10):0;return n*(i+l*Math.pow(10,-a))*Math.pow(10,A*h)},bt={type:2},xt={type:3},wt={type:4},_t={type:13},St={type:8},Ct={type:21},Et={type:9},Bt={type:10},Tt={type:11},Pt={type:12},kt={type:14},It={type:23},Nt={type:1},Qt={type:25},Ft={type:24},Lt={type:26},Mt={type:27},Dt={type:28},Rt={type:29},Ut={type:31},$t={type:32};class jt{constructor(){this._value=[]}write(t){this._value=this._value.concat(s(t))}read(){const t=[];let e=this.consumeToken();for(;e!==$t;)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),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ft(e)||mt(n,r)){const t=yt(e,n,r)?2:1;return{type:5,value:this.consumeName(),flags:t}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_t;break;case 39:return this.consumeStringToken(39);case 40:return bt;case 41:return xt;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),kt;break;case At:if(vt(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return wt;case lt:const i=t,s=this.peekCodePoint(0),o=this.peekCodePoint(1);if(vt(i,s,o))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(yt(i,s,o))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(s===lt&&62===o)return this.consumeCodePoint(),this.consumeCodePoint(),Ft;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 Lt;case 59:return Mt;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===lt&&this.peekCodePoint(2)===lt)return this.consumeCodePoint(),this.consumeCodePoint(),Qt;break;case 64:const a=this.peekCodePoint(0),l=this.peekCodePoint(1),A=this.peekCodePoint(2);if(yt(a,l,A))return{type:7,value:this.consumeName()};break;case 91:return Dt;case 92:if(mt(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return Rt;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),St;break;case 123:return Tt;case 125:return Pt;case 117:case 85:const c=this.peekCodePoint(0),h=this.peekCodePoint(1);return c!==At||!ut(h)&&63!==h||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Et;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Ct;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Bt;break;case ct:return $t}return pt(t)?(this.consumeWhiteSpace(),Ut):ht(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):dt(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:o(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 n=!1;for(;63===e&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(o(...t.map(t=>63===t?48:t)),16),end:parseInt(o(...t.map(t=>63===t?70:t)),16)};const r=parseInt(o(...t),16);if(this.peekCodePoint(0)===lt&&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:r,end:parseInt(o(...t),16)}}return{type:30,start:r,end:r}}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(),It)}for(;;){const e=this.consumeCodePoint();if(e===ct||41===e)return{type:22,value:o(...t)};if(pt(e))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ct||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:o(...t)}):(this.consumeBadUrlRemnants(),It);if(34===e||39===e||40===e||gt(e))return this.consumeBadUrlRemnants(),It;if(92===e){if(!mt(e,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),It;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 n=Math.min(5e4,t);e+=o(...this._value.splice(0,n)),t-=n}return this._value.shift(),e}consumeStringToken(t){let e="",n=0;for(;;){const r=this._value[n];if(r===ct||void 0===r||r===t)return e+=this.consumeStringSlice(n),{type:0,value:e};if(10===r)return this._value.splice(0,n),Nt;if(92===r){const t=this._value[n+1];t!==ct&&void 0!==t&&(10===t?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):mt(r,t)&&(e+=this.consumeStringSlice(n),e+=o(this.consumeEscapedCodePoint()),n=-1))}n++}}consumeNumber(){const t=[];let e=4,n=this.peekCodePoint(0);for(n!==At&&n!==lt||t.push(this.consumeCodePoint());ht(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);let r=this.peekCodePoint(1);if(46===n&&ht(r))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;ht(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);const i=this.peekCodePoint(2);if((69===n||101===n)&&((r===At||r===lt)&&ht(i)||ht(r)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;ht(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[Ot(t),e]}consumeNumericToken(){const[t,e]=this.consumeNumber(),n=this.peekCodePoint(0),r=this.peekCodePoint(1),i=this.peekCodePoint(2);return yt(n,r,i)?{type:15,number:t,flags:e,unit:this.consumeName()}:37===n?(this.consumeCodePoint(),{type:16,number:t,flags:e}):{type:17,number:t,flags:e}}consumeEscapedCodePoint(){const t=this.consumeCodePoint();if(ut(t)){let e=o(t);for(;ut(this.peekCodePoint(0))&&e.length<6;)e+=o(this.consumeCodePoint());pt(this.peekCodePoint(0))&&this.consumeCodePoint();const n=parseInt(e,16);return 0===n||(t=>t>=55296&&t<=57343)(n)||n>1114111?65533:n}return t===ct?65533:t}consumeName(){let t="";for(;;){const e=this.consumeCodePoint();if(ft(e))t+=o(e);else{if(!mt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=o(this.consumeEscapedCodePoint())}}}}class Ht{constructor(t){this._tokens=t}static create(t){const e=new jt;return e.write(t),new Ht(e.read())}static parseValue(t){return Ht.create(t).parseComponentValue()}static parseValues(t){return Ht.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 n=this.consumeToken();for(;;){if(32===n.type||qt(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=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?$t:t}reconsumeToken(t){this._tokens.unshift(t)}}const Vt=t=>15===t.type,Xt=t=>17===t.type,zt=t=>20===t.type,Gt=t=>0===t.type,Yt=(t,e)=>zt(t)&&t.value===e,Wt=t=>31!==t.type,Zt=t=>31!==t.type&&4!==t.type,Kt=t=>{const e=[];let n=[];return t.forEach(t=>{if(4===t.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(n),void(n=[])}31!==t.type&&n.push(t)}),n.length&&e.push(n),e},qt=(t,e)=>11===e&&12===t.type||28===e&&29===t.type||2===e&&3===t.type,Jt=t=>17===t.type||15===t.type,te=t=>16===t.type||Jt(t),ee=t=>t.length>1?[t[0],t[1]]:[t[0]],ne={type:17,number:0,flags:4},re={type:16,number:50,flags:4},ie={type:16,number:100,flags:4},se=(t,e,n)=>{const[r,i]=t;return[oe(r,e),oe(void 0!==i?i:r,n)]},oe=(t,e)=>{if(16===t.type)return t.number/100*e;if(Vt(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},ae="grad",le="turn",Ae=(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 le: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===le),he=t=>{switch(t.filter(zt).map(t=>t.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ne,ne];case"to top":case"bottom":return ue(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ne,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,ne];case"to left":case"right":return ue(270)}return 0},ue=t=>Math.PI*t/180,pe=t=>!(255&t),de=t=>{const e=255&t,n=255&t>>8,r=255&t>>16,i=255&t>>24;return e<255?`rgba(${i},${r},${n},${e/255})`:`rgb(${i},${r},${n})`},fe=(t,e,n,r)=>(t<<24|e<<16|n<<8|Math.round(255*r))>>>0,ge=(t,e)=>{if(17===t.type)return t.number;if(16===t.type){const n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},me=t=>"from"===(20===t[0].type?t[0].value:"unknown"),ye=(t,e,n)=>Math.min(Math.max(t,e),n),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]],Oe=([t,e,n,r])=>{const i=De([t,e,n]);return fe(ye(Math.round(255*i[0]),0,255),ye(Math.round(255*i[1]),0,255),ye(Math.round(255*i[2]),0,255),r)},be=t=>{const e=Le([t[0],t[1],t[2]]);return Oe([e[0],e[1],e[2],t[3]])},xe=(t,e)=>{const n=e.filter(Zt),[r,i,s,o]=n;return[(17===r.type?ue(r.number):Ae(0,r))/(2*Math.PI),te(i)?i.number/100:0,te(s)?s.number/100:0,void 0!==o&&te(o)?oe(o,1):1]},we=(t,e)=>{if(me(e))throw new Error("Relative color not supported for hsl()");const[n,r,i,s]=xe(0,e),o=Pe([n,r,i]);return fe(255*o[0],255*o[1],255*o[2],0===r?1:s)},_e=t=>{const e=t.filter(Zt);return[te(e[0])?e[0].number:0,te(e[1])?e[1].number:0,Xt(e[2])||Vt(e[2])?e[2].number:0,void 0!==e[4]&&te(e[4])?oe(e[4],1):1]},Se=t=>{const e=t.filter(Zt);return[16===e[0].type?e[0].number/100:Xt(e[0])?e[0].number:0,16===e[1].type?e[1].number/100:Xt(e[1])?e[1].number:0,Xt(e[2])||Vt(e[2])?e[2].number:0,void 0!==e[4]&&te(e[4])?oe(e[4],1):1]},Ce=t=>{const e=t.filter(Zt);return[16===e[0].type?e[0].number/100:Xt(e[0])?e[0].number:0,16===e[1].type?e[1].number/100:Xt(e[1])?e[1].number:0,Xt(e[2])||Vt(e[2])?e[2].number:0,void 0!==e[4]&&te(e[4])?oe(e[4],1):1]},Ee=t=>ve([1.0479297925449969,.022946870601609652,-.05019226628920524,.02962780877005599,.9904344267538799,-.017073799063418826,-.009243040646204504,.015055191490298152,.7518742814281371],t),Be=t=>ve([.955473421488075,-.02309845494876471,.06325924320057072,-.0283697093338637,1.0099953980813041,.021041441191917323,.012314014864481998,-.020507649298898964,1.330365926242124],t),Te=(t,e,n)=>(n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<.5?e:n<2/3?6*(e-t)*(2/3-n)+t:t),Pe=([t,e,n])=>{if(0===e)return[255*n,255*n,255*n];const r=n<=.5?n*(e+1):n+e-n*e,i=2*n-r;return[Te(i,r,t+1/3),Te(i,r,t),Te(i,r,t-1/3)]},ke=([t,e,n])=>(e<0&&(e=0),isNaN(n)&&(n=0),[t,e*Math.cos(n*Math.PI/180),e*Math.sin(n*Math.PI/180)]),Ie=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)},Ne=t=>{const e=(t[0]+16)/116,n=t[1]/500+e,r=e-t[2]/200,i=24389/27,s=24/116,o=[.3457*(n>s?n**3:(116*n-16)/i)/.3585,t[0]>8?e**3:t[0]/i,.2958*(r>s?r**3:(116*r-16)/i)/.3585];return Be([o[0],o[1],o[2]])},Qe=t=>t,Fe=t=>be([t[0],t[1],t[2],t[3]]),Le=t=>ve([3.2409699419045226,-1.537383177570094,-.4986107602930034,-.9692436362808796,1.8759675015077202,.04155505740717559,.05563007969699366,-.20397695888897652,1.0569715142428786],t),Me=t=>ve([.41239079926595934,.357584339383878,.1804807884018343,.21263900587151027,.715168678767756,.07219231536073371,.01933081871559182,.11919477979462598,.9505321522496607],t),De=t=>t.map(t=>{const e=t<0?-1:1,n=Math.abs(t);return n>.0031308?e*(1.055*n**(1/2.4)-.055):12.92*t}),Re=t=>t.map(t=>{const e=t<0?-1:1,n=Math.abs(t);return n<=.04045?t/12.92:e*((n+.055)/1.055)**2.4}),Ue=1.09929682680944,$e=.018053968510807,je=(t,e)=>{if(18===e.type){const n=Ye[e.name];if(void 0===n)throw new Error(`Attempting to parse an unsupported color function "${e.name}"`);return n(t,e.values)}if(5===e.type){const[t,n,r,i]=He(e);return fe(t,n,r,i)}if(20===e.type){const t=Ze[e.value.toUpperCase()];if(void 0!==t)return t}return Ze.TRANSPARENT},He=t=>{if(3===t.value.length){const e=t.value.substring(0,1),n=t.value.substring(1,2),r=t.value.substring(2,3);return[parseInt(e+e,16),parseInt(n+n,16),parseInt(r+r,16),1]}if(4===t.value.length){const e=t.value.substring(0,1),n=t.value.substring(1,2),r=t.value.substring(2,3),i=t.value.substring(3,4);return[parseInt(e+e,16),parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16)/255]}if(6===t.value.length){const e=t.value.substring(0,2),n=t.value.substring(2,4),r=t.value.substring(4,6);return[parseInt(e,16),parseInt(n,16),parseInt(r,16),1]}if(8===t.value.length){const e=t.value.substring(0,2),n=t.value.substring(2,4),r=t.value.substring(4,6),i=t.value.substring(6,8);return[parseInt(e,16),parseInt(n,16),parseInt(r,16),parseInt(i,16)/255]}return[0,0,0,1]},Ve=(t,e)=>{const n=e.filter(Zt);if(me(n))throw new Error("Relative color not supported for rgb()");if(3===n.length){const[t,e,r]=n.map(ge);return fe(t,e,r,1)}if(4===n.length){const[t,e,r,i]=n.map(ge);return fe(t,e,r,i)}if(5===n.length&&6===n[3].type&&"/"===n[3].value){const t=ge(n[0],0),e=ge(n[1],1),r=ge(n[2],2),i=ge(n[4],3);return fe(t,e,r,i)}return 0},Xe={srgb:t=>fe(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":Oe,"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 n;return n=[e[0],e[1],e[2]],ve([.4865709486482162,.26566769316909306,.1982172852343625,.2289745640697488,.6917385218365064,.079286914093745,0,.04511338185890264,1.043944368900976],n)})([t[0],t[1],t[2]]);return be([e[0],e[1],e[2],t[3]])},"a98-rgb":t=>{const e=Le((n=(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],n)));var n;return Oe([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 Be((n=[e[0],e[1],e[2]],ve([.7977666449006423,.13518129740053308,.0313477341283922,.2880748288194013,.711835234241873,8993693872564e-17,0,0,.8251046025104602],n)));var n})([t[0],t[1],t[2]]);return be([e[0],e[1],e[2],t[3]])},xyz:Fe,"xyz-d50":t=>{const e=(t=>Be([t[0],t[1],t[2]]))([t[0],t[1],t[2]]);return be([e[0],e[1],e[2],t[3]])},"xyz-d65":Fe,rec2020:t=>{const e=(t=>{const e=(t=>t.map(function(t){return t<4.5*$e?t/4.5:Math.pow((t+Ue-1)/Ue,1/.45)}))([t[0],t[1],t[2]]);return n=[e[0],e[1],e[2]],ve([.6369580483012914,.14461690358620832,.1688809751641721,.2627002120112671,.6779980715188708,.05930171646986196,0,.028072693049087428,1.060985057710791],n);var n})([t[0],t[1],t[2]]);return be([e[0],e[1],e[2],t[3]])}},ze={rgb:(t,e)=>{const n=e.filter(Zt);if(3===n.length){const[t,e,r]=n.map(ge),i=Re([t/255,e/255,r/255]),[s,o,a]=Me([i[0],i[1],i[2]]);return[s,o,a,1]}if(4===n.length){const[t,e,r,i]=n.map(ge),s=Re([t/255,e/255,r/255]),[o,a,l]=Me([s[0],s[1],s[2]]);return[o,a,l,i]}return[0,0,0,1]},hsl:(t,e)=>{const[n,r,i,s]=xe(0,e),o=Re(Pe([n,r,i])),[a,l,A]=Me([o[0],o[1],o[2]]);return[a,l,A,s]},lab:(t,e)=>{const[n,r,i,s]=Se(e),[o,a,l]=Ne([n,r,i]);return[o,a,l,s]},lch:(t,e)=>{const[n,r,i,s]=_e(e),[o,a,l]=Ne(ke([n,r,i]));return[o,a,l,s]},oklab:(t,e)=>{const[n,r,i,s]=Se(e),[o,a,l]=Ie([n,r,i]);return[o,a,l,s]},oklch:(t,e)=>{const[n,r,i,s]=Ce(e),[o,a,l]=Ie(ke([n,r,i]));return[o,a,l,s]}},Ge={srgb:t=>{const[e,n,r]=De(Le([t[0],t[1],t[2]]));return[e,n,r,t[3]]},"srgb-linear":t=>{const[e,n,r]=Le([t[0],t[1],t[2]]);return[ye(Math.round(255*e),0,255),ye(Math.round(255*n),0,255),ye(Math.round(255*r),0,255),t[3]]},"display-p3":t=>{const[e,n,r]=(s=[t[0],t[1],t[2]],i=ve([2.493496911941425,-.9313836179191239,-.40271078445071684,-.8294889695615747,1.7626640603183463,.023624685841943577,.03584583024378447,-.07617238926804182,.9568845240076872],s),De(i));var i,s;return[e,n,r,t[3]]},"a98-rgb":t=>{const[e,n,r]=(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,n,r,t[3]]},"prophoto-rgb":t=>{const[e,n,r]=(i=Ee([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,n,r,t[3]]},xyz:Qe,"xyz-d50":t=>{const[e,n,r]=Ee([t[0],t[2],t[3]]);return[e,n,r,t[3]]},"xyz-d65":Qe,rec2020:t=>{const[e,n,r]=(t=>t.map(function(t){return t>=$e?Ue*Math.pow(t,.45)-(Ue-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,n,r,t[3]]}},Ye={hsl:we,hsla:we,rgb:Ve,rgba:Ve,lch:(t,e)=>{if(me(e.filter(Zt)))throw new Error("Relative color not supported for lch()");const[n,r,i,s]=_e(e),o=De(Le(Ne(ke([n,r,i]))));return fe(ye(Math.round(255*o[0]),0,255),ye(Math.round(255*o[1]),0,255),ye(Math.round(255*o[2]),0,255),s)},oklch:(t,e)=>{if(me(e.filter(Zt)))throw new Error("Relative color not supported for oklch()");const[n,r,i,s]=Ce(e),o=De(Le(Ie(ke([n,r,i]))));return fe(ye(Math.round(255*o[0]),0,255),ye(Math.round(255*o[1]),0,255),ye(Math.round(255*o[2]),0,255),s)},oklab:(t,e)=>{if(me(e.filter(Zt)))throw new Error("Relative color not supported for oklab()");const[n,r,i,s]=Se(e),o=De(Le(Ie([n,r,i])));return fe(ye(Math.round(255*o[0]),0,255),ye(Math.round(255*o[1]),0,255),ye(Math.round(255*o[2]),0,255),s)},lab:(t,e)=>{if(me(e.filter(Zt)))throw new Error("Relative color not supported for lab()");const[n,r,i,s]=Se(e),o=De(Le(Ne([n,r,i])));return fe(ye(Math.round(255*o[0]),0,255),ye(Math.round(255*o[1]),0,255),ye(Math.round(255*o[2]),0,255),s)},color:(t,e)=>{const n=e.filter(Zt),r=20===n[0].type?n[0].value:"unknown";if(!me(n)){const t=Xe[r];if(void 0===t)throw new Error(`Attempting to parse an unsupported color space "${r}" for color() function`);return t([Xt(n[1])?n[1].number:0,Xt(n[2])?n[2].number:0,Xt(n[3])?n[3].number:0,n.length>4&&6===n[4].type&&"/"===n[4].value&&Xt(n[5])?n[5].number:1])}{const e=(t,e)=>{if(Xt(e))return e.number;if(zt(e))return t["r"===(n=e.value)||"x"===n?0:"g"===n||"y"===n?1:2];var n;const r=t=>{const e=t.filter(Zt);let n="(";for(const t of e)n+=18===t.type&&"calc"===t.name?r(t.values):Xt(t)?t.number:6===t.type||zt(t)?t.value:"";return n+=")",n};if(18===e.type){const n=e.values.filter(Zt);if("calc"===e.name){const e=r(n).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},r=18===n[1].type?n[1].name:zt(n[1])||5===n[1].type?"rgb":"unknown",i=zt(n[2])?n[2].value:"unknown";let s=18===n[1].type?n[1].values:zt(n[1])?[n[1]]:[];if(zt(n[1])){if(void 0===Ze[n[1].value.toUpperCase()])throw new Error("Attempting to use unknown color in relative color 'from'");{const e=We(t,n[1].value),r=255&e;s=[{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:r>1?r/255:r,flags:1}]}}else if(5===n[1].type){const[t,e,r,i]=He(n[1]);s=[{type:17,number:t,flags:1},{type:17,number:e,flags:1},{type:17,number:r,flags:1},{type:17,number:i>1?i/255:i,flags:1}]}if(0===s.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 o=ze[r],a=Ge[i],l=Xe[i];if(void 0===o)throw new Error(`Attempting to parse an unsupported color space "${r}" for color() function`);if(void 0===a)throw new Error(`Attempting to parse an unsupported color space "${i}" for color() function`);const A=a(o(t,s)),c=e(A,n[3]),h=e(A,n[4]),u=e(A,n[5]),p=n.length>6&&6===n[6].type&&"/"===n[6].value&&Xt(n[7])?n[7].number:1;if(null===c||null===h||null===u)throw new Error("Invalid relative color in color() function");return l([c,h,u,p])}}},We=(t,e)=>je(t,Ht.create(e).parseComponentValue()),Ze={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},Ke={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:(t,e)=>e.map(t=>{if(zt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})},qe={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Je=(t,e)=>{const n=je(t,e[0]),r=e[1];return r&&te(r)?{color:n,stop:r}:{color:n,stop:null}},tn=(t,e)=>{const n=t[0],r=t[t.length-1];null===n.stop&&(n.stop=ne),null===r.stop&&(r.stop=ie);const i=[];let s=0;for(let n=0;n<t.length;n++){const r=t[n].stop;if(null!==r){const t=oe(r,e);t>s?i.push(t):i.push(s),s=t}else i.push(null)}let o=null;for(let t=0;t<i.length;t++){const e=i[t];if(null===e)null===o&&(o=t);else if(null!==o){const n=t-o,r=(e-i[o-1])/(n+1);for(let t=1;t<=n;t++)i[o+t-1]=r*t;o=null}}return t.map(({color:t},n)=>({color:t,stop:Math.max(Math.min(1,i[n]/e),0)}))},en=(t,e,n)=>{const r="number"==typeof t?t:((t,e,n)=>{const r=e/2,i=n/2,s=oe(t[0],e)-r,o=i-oe(t[1],n);return(Math.atan2(o,s)+2*Math.PI)%(2*Math.PI)})(t,e,n),i=Math.abs(e*Math.sin(r))+Math.abs(n*Math.cos(r)),s=e/2,o=n/2,a=i/2,l=Math.sin(r-Math.PI/2)*a,A=Math.cos(r-Math.PI/2)*a;return[i,s-A,s+A,o-l,o+l]},nn=(t,e)=>Math.sqrt(t*t+e*e),rn=(t,e,n,r,i)=>[[0,0],[0,e],[t,0],[t,e]].reduce((t,e)=>{const[s,o]=e,a=nn(n-s,r-o);return(i?a<t.optimumDistance:a>t.optimumDistance)?{optimumCorner:e,optimumDistance:a}:t},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner,sn=(t,e,n,r,i)=>{let s=0,o=0;switch(t.size){case 0:0===t.shape?s=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(s=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===t.shape)s=o=Math.min(nn(e,n),nn(e,n-i),nn(e-r,n),nn(e-r,n-i));else if(1===t.shape){const t=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(e),Math.abs(e-r)),[a,l]=rn(r,i,e,n,!0);s=nn(a-e,(l-n)/t),o=t*s}break;case 1:0===t.shape?s=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(s=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===t.shape)s=o=Math.max(nn(e,n),nn(e,n-i),nn(e-r,n),nn(e-r,n-i));else if(1===t.shape){const t=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(e),Math.abs(e-r)),[a,l]=rn(r,i,e,n,!1);s=nn(a-e,(l-n)/t),o=t*s}}return Array.isArray(t.size)&&(s=oe(t.size[0],r),o=2===t.size.length?oe(t.size[1],i):s),[s,o]},on=(t,e)=>{let n=ue(180);const r=[];return Kt(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(n=he(e));if(ce(t))return void(n=(Ae(0,t)+ue(270))%ue(360))}const s=Je(t,e);r.push(s)}),{angle:n,stops:r,type:1}},an="closest-side",ln="farthest-side",An="closest-corner",cn="farthest-corner",hn="circle",un="ellipse",pn="cover",dn="contain",fn=(t,e)=>{let n=0,r=3;const i=[],s=[];return Kt(e).forEach((e,o)=>{let a=!0;if(0===o?a=e.reduce((t,e)=>{if(zt(e))switch(e.value){case"center":return s.push(re),!1;case"top":case"left":return s.push(ne),!1;case"right":case"bottom":return s.push(ie),!1}else if(te(e)||Jt(e))return s.push(e),!1;return t},a):1===o&&(a=e.reduce((t,e)=>{if(zt(e))switch(e.value){case hn:return n=0,!1;case un:return n=1,!1;case dn:case an:return r=0,!1;case ln:return r=1,!1;case An:return r=2,!1;case pn:case cn:return r=3,!1}else if(Jt(e)||te(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t},a)),a){const n=Je(t,e);i.push(n)}}),{size:r,shape:n,stops:i,position:s,type:2}},gn=t=>1===t.type,mn=t=>2===t.type,yn=(t,e)=>{if(22===e.type){const n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(18===e.type){const n=vn[e.name];if(void 0===n)throw new Error(`Attempting to parse an unsupported image function "${e.name}"`);return n(t,e.values)}throw new Error(`Unsupported image type ${e.type}`)},vn={"linear-gradient":(t,e)=>{let n=ue(180);const r=[];return Kt(e).forEach((e,i)=>{if(0===i){const t=e[0];if(20===t.type&&"to"===t.value)return void(n=he(e));if(ce(t))return void(n=Ae(0,t))}const s=Je(t,e);r.push(s)}),{angle:n,stops:r,type:1}},"-moz-linear-gradient":on,"-ms-linear-gradient":on,"-o-linear-gradient":on,"-webkit-linear-gradient":on,"radial-gradient":(t,e)=>{let n=0,r=3;const i=[],s=[];return Kt(e).forEach((e,o)=>{let a=!0;if(0===o){let t=!1;a=e.reduce((e,i)=>{if(t)if(zt(i))switch(i.value){case"center":return s.push(re),e;case"top":case"left":return s.push(ne),e;case"right":case"bottom":return s.push(ie),e}else(te(i)||Jt(i))&&s.push(i);else if(zt(i))switch(i.value){case hn:return n=0,!1;case un:return n=1,!1;case"at":return t=!0,!1;case an:return r=0,!1;case pn:case ln:return r=1,!1;case dn:case An:return r=2,!1;case cn:return r=3,!1}else if(Jt(i)||te(i))return Array.isArray(r)||(r=[]),r.push(i),!1;return e},a)}if(a){const n=Je(t,e);i.push(n)}}),{size:r,shape:n,stops:i,position:s,type:2}},"-moz-radial-gradient":fn,"-ms-radial-gradient":fn,"-o-radial-gradient":fn,"-webkit-radial-gradient":fn,"-webkit-gradient":(t,e)=>{const n=ue(180),r=[];let i=1;return Kt(e).forEach((e,n)=>{const s=e[0];if(0===n){if(zt(s)&&"linear"===s.value)return void(i=1);if(zt(s)&&"radial"===s.value)return void(i=2)}if(18===s.type)if("from"===s.name){const e=je(t,s.values[0]);r.push({stop:ne,color:e})}else if("to"===s.name){const e=je(t,s.values[0]);r.push({stop:ie,color:e})}else if("color-stop"===s.name){const e=s.values.filter(Zt);if(2===e.length){const n=je(t,e[1]),i=e[0];Xt(i)&&r.push({stop:{type:16,number:100*i.number,flags:i.flags},color:n})}}}),1===i?{angle:(n+ue(180))%ue(360),stops:r,type:i}:{size:3,shape:0,stops:r,position:[],type:i}}},On={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>{if(0===e.length)return[];const n=e[0];return 20===n.type&&"none"===n.value?[]:e.filter(t=>Zt(t)&&function(t){return!(20===t.type&&"none"===t.value||18===t.type&&!vn[t.name])}(t)).map(e=>yn(t,e))}},bn={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:(t,e)=>e.map(t=>{if(zt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})},xn={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:(t,e)=>Kt(e).map(t=>t.map(t=>{return 18===(e=t).type&&"calc"===e.name?((t,e=0)=>{const n=t=>{let r="";for(const i of t)if(31!==i.type)if(18===i.type){if("calc"!==i.name)return null;{const t=n(i.values);if(null===t)return null;r+=`(${t})`}}else if(17===i.type)r+=i.number.toString();else if(15===i.type)"px"===i.unit?r+=i.number.toString():"rem"===i.unit||"em"===i.unit?r+=(16*i.number).toString():r+=i.number.toString();else if(16===i.type)r+=(i.number/100*e).toString();else if(6===i.type){const t=i.value;"+"===t||"-"===t||"*"===t||"/"===t?r+=` ${t} `:"("===t?r+="(":")"===t&&(r+=")")}return r};try{const e=n(t.values);if(null===e||""===e.trim())return null;const r=new Function("return "+e)();if("number"==typeof r&&!isNaN(r))return{type:17,number:r,flags:4}}catch(t){return null}return null})(t,0):te(t)?t:null;var e}).filter(t=>null!==t)).map(ee)},wn={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:(t,e)=>Kt(e).map(t=>t.filter(zt).map(t=>t.value).join(" ")).map(_n)},_n=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 Sn;!function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(Sn||(Sn={}));const Cn={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:(t,e)=>Kt(e).map(t=>t.filter(En))},En=t=>zt(t)||te(t),Bn=t=>({name:`border-${t}-color`,initialValue:"transparent",prefix:!1,type:3,format:"color"}),Tn=Bn("top"),Pn=Bn("right"),kn=Bn("bottom"),In=Bn("left"),Nn=t=>({name:`border-radius-${t}`,initialValue:"0 0",prefix:!1,type:1,parse:(t,e)=>ee(e.filter(te))}),Qn=Nn("top-left"),Fn=Nn("top-right"),Ln=Nn("bottom-right"),Mn=Nn("bottom-left"),Dn=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}}),Rn=Dn("top"),Un=Dn("right"),$n=Dn("bottom"),jn=Dn("left"),Hn=t=>({name:`border-${t}-width`,initialValue:"0",type:0,prefix:!1,parse:(t,e)=>Vt(e)?e.number:0}),Vn=Hn("top"),Xn=Hn("right"),zn=Hn("bottom"),Gn=Hn("left"),Yn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Wn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:(t,e)=>"rtl"===e?1:0},Zn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:(t,e)=>e.filter(zt).reduce((t,e)=>t|Kn(e.value),0)},Kn=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},qn={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}},Jn={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 tr;!function(t){t.NORMAL="normal",t.STRICT="strict"}(tr||(tr={}));const er={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>"strict"===e?tr.STRICT:tr.NORMAL},nr={name:"line-height",initialValue:"normal",prefix:!1,type:4},rr=(t,e)=>zt(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:te(t)?oe(t,e):e,ir={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:(t,e)=>20===e.type&&"none"===e.value?null:yn(t,e)},sr={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:(t,e)=>"inside"===e?0:1},or={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}}},ar=t=>({name:`margin-${t}`,initialValue:"0",prefix:!1,type:4}),lr=ar("top"),Ar=ar("right"),cr=ar("bottom"),hr=ar("left"),ur={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:(t,e)=>e.filter(zt).map(t=>{switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})},pr={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>"break-word"===e?"break-word":"normal"},dr=t=>({name:`padding-${t}`,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}),fr=dr("top"),gr=dr("right"),mr=dr("bottom"),yr=dr("left"),vr={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}}},Or={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}},br={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>1===e.length&&Yt(e[0],"none")?[]:Kt(e).map(e=>{const n={color:Ze.TRANSPARENT,offsetX:ne,offsetY:ne,blur:ne};let r=0;for(let i=0;i<e.length;i++){const s=e[i];Jt(s)?(0===r?n.offsetX=s:1===r?n.offsetY=s:n.blur=s,r++):n.color=je(t,s)}return n})},xr={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}},wr={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 n=_r[e.name];if(void 0===n)throw new Error(`Attempting to parse an unsupported transform function "${e.name}"`);return n(t,e.values)}return null}},_r={matrix:(t,e)=>{const n=e.filter(t=>17===t.type).map(t=>t.number);return 6===n.length?n:null},matrix3d:(t,e)=>{const n=e.filter(t=>17===t.type).map(t=>t.number),[r,i,{},{},s,o,{},{},{},{},{},{},a,l]=n;return 16===n.length?[r,i,s,o,a,l]:null},rotate:(t,e)=>{if(1!==e.length)return null;const n=e[0];let r=0;if(17===n.type&&0===n.number)r=0;else{if(15!==n.type)return null;r=Ae(0,n)}const i=Math.cos(r),s=Math.sin(r);return[i,s,-s,i,0,0]}},Sr={type:16,number:50,flags:4},Cr=[Sr,Sr],Er={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:(t,e)=>{const n=e.filter(te);return 2!==n.length?Cr:[n[0],n[1]]}},Br={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*Ae(0,e)/Math.PI:null},Tr={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 Pr;!function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"}(Pr||(Pr={}));const kr={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:(t,e)=>{switch(e){case"break-all":return Pr.BREAK_ALL;case"keep-all":return Pr.KEEP_ALL;default:return Pr.NORMAL}}},Ir={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:(t,e)=>{if(20===e.type)return{auto:!0,order:0};if(Xt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Nr=(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")},Qr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:(t,e)=>Xt(e)?e.number:1},Fr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Lr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:(t,e)=>e.filter(zt).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)},Mr={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}}},Dr={name:"text-decoration-thickness",initialValue:"auto",prefix:!1,type:0,parse:(t,e)=>{if(zt(e))switch(e.value){case"auto":return"auto";case"from-font":return"from-font"}return Vt(e)?e.number:"auto"}},Rr={name:"text-underline-offset",initialValue:"auto",prefix:!1,type:0,parse:(t,e)=>zt(e)&&"auto"===e.value?"auto":Vt(e)?e.number:"auto"},Ur={name:"font-family",initialValue:"",prefix:!1,type:1,parse:(t,e)=>{const n=[],r=[];return e.forEach(t=>{switch(t.type){case 20:case 0:n.push(t.value);break;case 17:n.push(t.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}}),n.length&&r.push(n.join(" ")),r.map(t=>-1===t.indexOf(" ")?t:`'${t}'`)}},$r={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},jr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:(t,e)=>Xt(e)?e.number:zt(e)&&"bold"===e.value?700:400},Hr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>e.filter(zt).map(t=>t.value)},Vr={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"}}},Xr=(t,e)=>0!==(t&e),zr={name:"content",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>{if(0===e.length)return[];const n=e[0];return 20===n.type&&"none"===n.value?[]:e}},Gr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:(t,e)=>{if(0===e.length)return null;const n=e[0];if(20===n.type&&"none"===n.value)return null;const r=[],i=e.filter(Wt);for(let t=0;t<i.length;t++){const e=i[t],n=i[t+1];if(20===e.type){const t=n&&Xt(n)?n.number:1;r.push({counter:e.value,increment:t})}}return r}},Yr={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:(t,e)=>{if(0===e.length)return[];const n=[],r=e.filter(Wt);for(let t=0;t<r.length;t++){const e=r[t],i=r[t+1];if(zt(e)&&"none"!==e.value){const t=i&&Xt(i)?i.number:0;n.push({counter:e.value,reset:t})}}return n}},Wr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:(t,e)=>e.filter(Vt).map(t=>Nr(0,t))},Zr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:(t,e)=>{if(0===e.length)return null;const n=e[0];if(20===n.type&&"none"===n.value)return null;const r=[],i=e.filter(Gt);if(i.length%2!=0)return null;for(let t=0;t<i.length;t+=2){const e=i[t].value,n=i[t+1].value;r.push({open:e,close:n})}return r}},Kr=(t,e,n)=>{if(!t)return"";const r=t[Math.min(e,t.length-1)];return r?n?r.open:r.close:""},qr={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:(t,e)=>1===e.length&&Yt(e[0],"none")?[]:Kt(e).map(e=>{const n={color:255,offsetX:ne,offsetY:ne,blur:ne,spread:ne,inset:!1};let r=0;for(let i=0;i<e.length;i++){const s=e[i];Yt(s,"inset")?n.inset=!0:Jt(s)?(0===r?n.offsetX=s:1===r?n.offsetY=s:2===r?n.blur=s:n.spread=s,r++):n.color=je(t,s)}return n})},Jr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:(t,e)=>{const n=[];return e.filter(zt).forEach(t=>{switch(t.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2)}}),[0,1,2].forEach(t=>{-1===n.indexOf(t)&&n.push(t)}),n}},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)=>Vt(e)?e.number:0},ni={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},ri={name:"objectFit",initialValue:"fill",prefix:!1,type:1,parse:(t,e)=>e.filter(zt).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},si={name:"text-overflow",initialValue:"clip",prefix:!1,type:2,parse:(t,e)=>"ellipsis"===e?1:0};class oi{constructor(t,e){this.animationDuration=Ai(t,Wr,e.animationDuration),this.backgroundClip=Ai(t,Ke,e.backgroundClip),this.backgroundColor=Ai(t,qe,e.backgroundColor),this.backgroundImage=Ai(t,On,e.backgroundImage),this.backgroundOrigin=Ai(t,bn,e.backgroundOrigin),this.backgroundPosition=Ai(t,xn,e.backgroundPosition),this.backgroundRepeat=Ai(t,wn,e.backgroundRepeat),this.backgroundSize=Ai(t,Cn,e.backgroundSize),this.borderTopColor=Ai(t,Tn,e.borderTopColor),this.borderRightColor=Ai(t,Pn,e.borderRightColor),this.borderBottomColor=Ai(t,kn,e.borderBottomColor),this.borderLeftColor=Ai(t,In,e.borderLeftColor),this.borderTopLeftRadius=Ai(t,Qn,e.borderTopLeftRadius),this.borderTopRightRadius=Ai(t,Fn,e.borderTopRightRadius),this.borderBottomRightRadius=Ai(t,Ln,e.borderBottomRightRadius),this.borderBottomLeftRadius=Ai(t,Mn,e.borderBottomLeftRadius),this.borderTopStyle=Ai(t,Rn,e.borderTopStyle),this.borderRightStyle=Ai(t,Un,e.borderRightStyle),this.borderBottomStyle=Ai(t,$n,e.borderBottomStyle),this.borderLeftStyle=Ai(t,jn,e.borderLeftStyle),this.borderTopWidth=Ai(t,Vn,e.borderTopWidth),this.borderRightWidth=Ai(t,Xn,e.borderRightWidth),this.borderBottomWidth=Ai(t,zn,e.borderBottomWidth),this.borderLeftWidth=Ai(t,Gn,e.borderLeftWidth),this.boxShadow=Ai(t,qr,e.boxShadow),this.color=Ai(t,Yn,e.color),this.direction=Ai(t,Wn,e.direction),this.display=Ai(t,Zn,e.display),this.float=Ai(t,qn,e.cssFloat),this.fontFamily=Ai(t,Ur,e.fontFamily),this.fontSize=Ai(t,$r,e.fontSize),this.fontStyle=Ai(t,Vr,e.fontStyle),this.fontVariant=Ai(t,Hr,e.fontVariant),this.fontWeight=Ai(t,jr,e.fontWeight),this.letterSpacing=Ai(t,Jn,e.letterSpacing),this.lineBreak=Ai(t,er,e.lineBreak),this.lineHeight=Ai(t,nr,e.lineHeight),this.listStyleImage=Ai(t,ir,e.listStyleImage),this.listStylePosition=Ai(t,sr,e.listStylePosition),this.listStyleType=Ai(t,or,e.listStyleType),this.marginTop=Ai(t,lr,e.marginTop),this.marginRight=Ai(t,Ar,e.marginRight),this.marginBottom=Ai(t,cr,e.marginBottom),this.marginLeft=Ai(t,hr,e.marginLeft),this.opacity=Ai(t,Qr,e.opacity);const n=Ai(t,ur,e.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=Ai(t,pr,e.overflowWrap),this.paddingTop=Ai(t,fr,e.paddingTop),this.paddingRight=Ai(t,gr,e.paddingRight),this.paddingBottom=Ai(t,mr,e.paddingBottom),this.paddingLeft=Ai(t,yr,e.paddingLeft),this.paintOrder=Ai(t,Jr,e.paintOrder),this.position=Ai(t,Or,e.position),this.textAlign=Ai(t,vr,e.textAlign),this.textDecorationColor=Ai(t,Fr,e.textDecorationColor??e.color),this.textDecorationLine=Ai(t,Lr,e.textDecorationLine??e.textDecoration),this.textDecorationStyle=Ai(t,Mr,e.textDecorationStyle),this.textDecorationThickness=Ai(t,Dr,e.textDecorationThickness),this.textUnderlineOffset=Ai(t,Rr,e.textUnderlineOffset),this.textShadow=Ai(t,br,e.textShadow),this.textTransform=Ai(t,xr,e.textTransform),this.textOverflow=Ai(t,si,e.textOverflow),this.transform=Ai(t,wr,e.transform),this.transformOrigin=Ai(t,Er,e.transformOrigin),this.rotate=Ai(t,Br,e.rotate),this.visibility=Ai(t,Tr,e.visibility),this.webkitTextStrokeColor=Ai(t,ti,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ai(t,ei,e.webkitTextStrokeWidth),this.webkitLineClamp=Ai(t,ni,e.webkitLineClamp),this.wordBreak=Ai(t,kr,e.wordBreak),this.zIndex=Ai(t,Ir,e.zIndex),this.objectFit=Ai(t,ri,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 Xr(this.display,4)||Xr(this.display,33554432)||Xr(this.display,268435456)||Xr(this.display,536870912)||Xr(this.display,67108864)||Xr(this.display,134217728)}}class ai{constructor(t,e){this.content=Ai(t,zr,e.content),this.quotes=Ai(t,Zr,e.quotes)}}class li{constructor(t,e){this.counterIncrement=Ai(t,Gr,e.counterIncrement),this.counterReset=Ai(t,Yr,e.counterReset)}}const Ai=(t,e,n)=>{const r=new jt,i=null!=n?n.toString():e.initialValue;r.write(i);const s=new Ht(r.read());switch(e.type){case 2:const n=s.parseComponentValue();return e.parse(t,zt(n)?n.value:e.initialValue);case 0:return e.parse(t,s.parseComponentValue());case 1:return e.parse(t,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(e.format){case"angle":return Ae(0,s.parseComponentValue());case"color":return je(t,s.parseComponentValue());case"image":return yn(t,s.parseComponentValue());case"length":const e=s.parseComponentValue();return Jt(e)?e:ne;case"length-percentage":const n=s.parseComponentValue();return te(n)?n:ne;case"time":return Nr(0,s.parseComponentValue())}}},ci=(t,e)=>{const n=(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===n||e===n};class hi{constructor(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,ci(e,3),this.styles=new oi(t,window.getComputedStyle(e,null)),As(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 di=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},fi=function(){function t(t,e,n,r,i,s){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}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,Oi=11,bi=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 n=t.length;if(!n)return"";for(var r=[],i=-1,s="";++i<n;){var o=t[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},wi=function(){var t,e,n,r=function(t){var e,n,r,i,s,o=.75*t.length,a=t.length,l=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var A="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(A)?A:new Uint8Array(A);for(e=0;e<a;e+=4)n=ui[t.charCodeAt(e)],r=ui[t.charCodeAt(e+1)],i=ui[t.charCodeAt(e+2)],s=ui[t.charCodeAt(e+3)],c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&s;return A}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),i=Array.isArray(r)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n}(r):new Uint32Array(r),s=Array.isArray(r)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n}(r):new Uint16Array(r),o=di(s,12,i[4]/2),a=2===i[5]?di(s,(24+i[4])/2):(t=i,e=Math.ceil((24+i[4])/4),t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n)));return new fi(i[0],i[1],i[2],i[3],o,a)}(),_i="×",Si=function(t){return wi.get(t)},Ci=function(t,e,n){var r=n-2,i=e[r],s=e[n-1],o=e[n];if(2===s&&3===o)return _i;if(2===s||3===s||4===s)return"÷";if(2===o||3===o||4===o)return"÷";if(s===yi&&-1!==[yi,vi,Oi,bi].indexOf(o))return _i;if(!(s!==Oi&&s!==vi||o!==vi&&10!==o))return _i;if((s===bi||10===s)&&10===o)return _i;if(13===o||5===o)return _i;if(7===o)return _i;if(1===s)return _i;if(13===s&&14===o){for(;5===i;)i=e[--r];if(14===i)return _i}if(15===s&&15===o){for(var a=0;15===i;)a++,i=e[--r];if(a%2==0)return _i}return"÷"},Ei=function(t){var e=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var s=t.charCodeAt(n++);56320==(64512&s)?e.push(((1023&i)<<10)+(1023&s)+65536):(e.push(i),n--)}else e.push(i)}return e}(t),n=e.length,r=0,i=0,s=e.map(Si);return{next:function(){if(r>=n)return{done:!0,value:null};for(var t=_i;r<n&&(t=Ci(0,s,++r))===_i;);if(t!==_i||r===n){var o=xi.apply(null,e.slice(i,r));return i=r,{value:o,done:!1}}return{done:!0,value:null}}}};const Bi=t=>0===t[0]&&255===t[1]&&0===t[2]&&255===t[3],Ti=(t,e,n,r,i)=>{const s="http://www.w3.org/2000/svg",o=document.createElementNS(s,"svg"),a=document.createElementNS(s,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(i),o},Pi=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>e(r),r.onerror=n,r.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 n=t.createElement("boundtest");n.style.height="123px",n.style.display="block",t.body.appendChild(n),e.selectNode(n);const r=e.getBoundingClientRect(),i=Math.round(r.height);if(t.body.removeChild(n),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 n=t.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";const r=e.firstChild,i=s(r.data).map(t=>o(t));let a=0,l={};const A=i.every((t,e)=>{n.setStart(r,a),n.setEnd(r,a+t.length);const i=n.getBoundingClientRect();a+=t.length;const s=i.x>l.x||i.y>l.y;return l=i,0===e||s});return t.body.removeChild(e),A})(document);return Object.defineProperty(ki,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){const t=(t=>{const e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),n.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"),n=100;e.width=n,e.height=n;const r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);const i=new Image,s=e.toDataURL();i.src=s;const o=Ti(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),Pi(o).then(e=>{r.drawImage(e,0,0);const i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);const o=t.createElement("div");return o.style.backgroundImage=`url(${s})`,o.style.height="100px",Bi(i)?Pi(Ti(n,n,0,0,o)):Promise.reject(!1)}).then(t=>(r.drawImage(t,0,0),Bi(r.getImageData(0,0,n,n).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 Ii{constructor(t,e){this.text=t,this.bounds=e}}const Ni=(t,e,n)=>{const r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");const i=r.createRange();return i.setStart(t,e),i.setEnd(t,e+n),i},Qi=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,n=Ei(t),r=[];!(e=n.next()).done;)e.value&&r.push(e.value.slice());return r}(t)},Fi=[32,160,4961,65792,65793,4153,4241],Li=(t,e)=>{const n=function(t,e){var n=s(t),r=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=function(t,e){void 0===e&&(e="strict");var n=[],r=[],i=[];return t.forEach(function(t,s){var o=Z.get(t);if(o>50?(i.push(!0),o-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(s),n.push(16);if(4===o||11===o){if(0===s)return r.push(s),n.push(M);var a=n[s-1];return-1===et.indexOf(a)?(r.push(r[s-1]),n.push(a)):(r.push(s),n.push(M))}return r.push(s),31===o?n.push("strict"===e?P:j):o===z||29===o?n.push(M):43===o?t>=131072&&t<=196605||t>=196608&&t<=262141?n.push(j):n.push(M):void n.push(o)}),[r,n,i]}(t,e.lineBreak),r=n[0],i=n[1],s=n[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(i=i.map(function(t){return-1!==[N,M,z].indexOf(t)?j:t}));var o="keep-all"===e.wordBreak?s.map(function(e,n){return e&&t[n]>=19968&&t[n]<=40959}):void 0;return[r,i,o]}(n,e),i=r[0],o=r[1],a=r[2],l=n.length,A=0,c=0;return{next:function(){if(c>=l)return{done:!0,value:null};for(var t=Y;c<l&&(t=ot(n,o,i,++c,a))===Y;);if(t!==Y||c===l){var e=new at(n,t,A,c);return A=c,{value:e,done:!1}}return{done:!0,value:null}}}}(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),r=[];let i;for(;!(i=n.next()).done;)if(i.value){const t=i.value.slice(),e=s(t);let n="";e.forEach(t=>{-1===Fi.indexOf(t)?n+=o(t):(n.length&&r.push(n),r.push(o(t)),n="")}),n.length&&r.push(n)}return r};class Mi{constructor(t,e,n){this.text=Di(e.data,n.textTransform),this.textBounds=((t,e,n,s)=>{const o=((t,e)=>0!==e.letterSpacing?Qi(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 Li(t,e)})(t,e))(e,n),a=[];let l=0;return o.forEach(e=>{if(n.textDecorationLine.length||e.trim().length>0)if(ki.SUPPORT_RANGE_BOUNDS){const n=Ni(s,l,e.length).getClientRects();if(n.length>1){const n=Qi(e);let i=0;n.forEach(e=>{a.push(new Ii(e,r.fromDOMRectList(t,Ni(s,i+l,e.length).getClientRects()))),i+=e.length})}else a.push(new Ii(e,r.fromDOMRectList(t,n)))}else{const n=s.splitText(e.length);a.push(new Ii(e,((t,e)=>{const n=e.ownerDocument;if(n){const r=n.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));const s=e.parentNode;if(s){s.replaceChild(r,e);const n=i(t,r);return r.firstChild&&s.replaceChild(r.firstChild,r),n}}return r.EMPTY})(t,s))),s=n}else ki.SUPPORT_RANGE_BOUNDS||(s=s.splitText(e.length));l+=e.length}),a})(t,this.text,n,e)}}const Di=(t,e)=>{switch(e){case 1:return t.toLowerCase();case 3:return t.replace(Ri,Ui);case 2:return t.toUpperCase();default:return t}},Ri=/(^|\s|:|-|\(|\))([a-z])/g,Ui=(t,e,n)=>t.length>0?e+n.toUpperCase():t;class $i 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 ji extends hi{constructor(t,e){super(t,e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}}class Hi extends hi{constructor(t,e){super(t,e);const n=new XMLSerializer,r=i(t,e);e.setAttribute("width",`${r.width}px`),e.setAttribute("height",`${r.height}px`),this.svg=`data:image/svg+xml,${encodeURIComponent(n.serializeToString(e))}`,this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,this.context.cache.addImage(this.svg)}}class Vi extends hi{constructor(t,e){super(t,e),this.value=e.value}}class Xi extends hi{constructor(t,e){super(t,e),this.start=e.start,this.reversed="boolean"==typeof e.reversed&&!0===e.reversed}}const zi=[{type:15,flags:0,unit:"px",number:3}],Gi=[{type:16,flags:0,number:50}],Yi="checkbox",Wi="radio",Zi=707406591;class Ki extends hi{constructor(t,e){var n,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===(n=e).value.length&&!!n.placeholder,this.type!==Yi&&this.type!==Wi||(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 r(i.left+(i.width-i.height)/2,i.top,i.height,i.height):i.width<i.height?new r(i.left,i.top+(i.height-i.width)/2,i.width,i.width):i),this.type){case Yi:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=zi;break;case Wi:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=Gi}}}class qi extends hi{constructor(t,e){super(t,e);const n=e.options[e.selectedIndex||0];this.value=n&&n.text||""}}class Ji extends hi{constructor(t,e){super(t,e),this.value=e.value}}class ts 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=is(t,e.contentWindow.document.documentElement);const n=e.contentWindow.document.documentElement?We(t,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):Ze.TRANSPARENT,r=e.contentWindow.document.body?We(t,getComputedStyle(e.contentWindow.document.body).backgroundColor):Ze.TRANSPARENT;this.backgroundColor=pe(n)?pe(r)?this.styles.backgroundColor:r:n}}catch(t){}}}const es=["OL","UL","MENU"],ns=(t,e,n,r)=>{for(let i,s=e.firstChild;s;s=i)if(i=s.nextSibling,as(s)&&s.data.length>0)n.textNodes.push(new Mi(t,s,n.styles));else if(ls(s))if(_s(s)&&s.assignedNodes)s.assignedNodes().forEach(e=>ns(t,e,n,r));else{const e=rs(t,s);e.styles.isVisible()&&(ss(s,e,r)?e.flags|=4:os(e.styles)&&(e.flags|=2),-1!==es.indexOf(s.tagName)&&(e.flags|=8),n.elements.push(e),s.slot,s.shadowRoot?ns(t,s.shadowRoot,e,r):xs(s)||ds(s)||ws(s)||ns(t,s,e,r))}},rs=(t,e)=>ys(e)?new $i(t,e):gs(e)?new ji(t,e):ds(e)?new Hi(t,e):hs(e)?new Vi(t,e):us(e)?new Xi(t,e):ps(e)?new Ki(t,e):ws(e)?new qi(t,e):xs(e)?new Ji(t,e):vs(e)?new ts(t,e):new hi(t,e),is=(t,e)=>{const n=rs(t,e);return n.flags|=4,ns(t,e,n,n),n},ss=(t,e,n)=>e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||fs(t)&&n.styles.isTransparent(),os=t=>!(!t.isPositioned()&&!t.isFloating())||Xr(t.display,268435456)||Xr(t.display,33554432)||Xr(t.display,536870912)||Xr(t.display,134217728),as=t=>t.nodeType===Node.TEXT_NODE,ls=t=>t.nodeType===Node.ELEMENT_NODE,As=t=>ls(t)&&void 0!==t.style&&!cs(t),cs=t=>"object"==typeof t.className,hs=t=>"LI"===t.tagName,us=t=>"OL"===t.tagName,ps=t=>"INPUT"===t.tagName,ds=t=>"svg"===t.tagName,fs=t=>"BODY"===t.tagName,gs=t=>"CANVAS"===t.tagName,ms=t=>"VIDEO"===t.tagName,ys=t=>"IMG"===t.tagName,vs=t=>"IFRAME"===t.tagName,Os=t=>"STYLE"===t.tagName,bs=t=>"SCRIPT"===t.tagName,xs=t=>"TEXTAREA"===t.tagName,ws=t=>"SELECT"===t.tagName,_s=t=>"SLOT"===t.tagName,Ss=t=>t.tagName.indexOf("-")>0;class Cs{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,n=t.counterReset;let r=!0;null!==e&&e.forEach(t=>{const e=this.counters[t.counter];e&&0!==t.increment&&(r=!1,e.length||e.push(1),e[Math.max(0,e.length-1)]+=t.increment)});const i=[];return r&&n.forEach(t=>{let e=this.counters[t.counter];i.push(t.counter),e||(e=this.counters[t.counter]=[]),e.push(t.reset)}),i}}const Es={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"]},Bs={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ts={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ps={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ks=(t,e,n,r,i,s)=>t<e||t>n?Us(t,i,s.length>0):r.integers.reduce((e,n,i)=>{for(;t>=n;)t-=n,e+=r.values[i];return e},"")+s,Is=(t,e,n,r)=>{let i="";do{n||t--,i=r(t)+i,t/=e}while(t*e>=e);return i},Ns=(t,e,n,r,i)=>{const s=n-e+1;return(t<0?"-":"")+(Is(Math.abs(t),s,r,t=>o(Math.floor(t%s)+e))+i)},Qs=(t,e,n=". ")=>{const r=e.length;return Is(Math.abs(t),r,!1,t=>e[Math.floor(t%r)])+n},Fs=(t,e,n,r,i,s)=>{if(t<-9999||t>9999)return Us(t,4,i.length>0);let o=Math.abs(t),a=i;if(0===o)return e[0]+a;for(let r=0;o>0&&r<=4;r++){const i=o%10;0===i&&Xr(s,1)&&""!==a?a=e[i]+a:i>1||1===i&&0===r||1===i&&1===r&&Xr(s,2)||1===i&&1===r&&Xr(s,4)&&t>100||1===i&&r>1&&Xr(s,8)?a=e[i]+(r>0?n[r-1]:"")+a:1===i&&r>0&&(a=n[r-1]+a),o=Math.floor(o/10)}return(t<0?r:"")+a},Ls="十百千萬",Ms="拾佰仟萬",Ds="マイナス",Rs="마이너스",Us=(t,e,n)=>{const r=n?". ":"",i=n?"、":"",s=n?", ":"",o=n?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:const e=Ns(t,48,57,!0,r);return e.length<4?`0${e}`:e;case 4:return Qs(t,"〇一二三四五六七八九",i);case 6:return ks(t,1,3999,Es,3,r).toLowerCase();case 7:return ks(t,1,3999,Es,3,r);case 8:return Ns(t,945,969,!1,r);case 9:return Ns(t,97,122,!1,r);case 10:return Ns(t,65,90,!1,r);case 11:return Ns(t,1632,1641,!0,r);case 12:case 49:return ks(t,1,9999,Bs,3,r);case 35:return ks(t,1,9999,Bs,3,r).toLowerCase();case 13:return Ns(t,2534,2543,!0,r);case 14:case 30:return Ns(t,6112,6121,!0,r);case 15:return Qs(t,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Qs(t,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Fs(t,"零一二三四五六七八九",Ls,"負",i,14);case 47:return Fs(t,"零壹貳參肆伍陸柒捌玖",Ms,"負",i,15);case 42:return Fs(t,"零一二三四五六七八九",Ls,"负",i,14);case 41:return Fs(t,"零壹贰叁肆伍陆柒捌玖",Ms,"负",i,15);case 26:return Fs(t,"〇一二三四五六七八九","十百千万",Ds,i,0);case 25:return Fs(t,"零壱弐参四伍六七八九","拾百千万",Ds,i,7);case 31:return Fs(t,"영일이삼사오육칠팔구","십백천만",Rs,s,7);case 33:return Fs(t,"零一二三四五六七八九","十百千萬",Rs,s,0);case 32:return Fs(t,"零壹貳參四五六七八九","拾百千",Rs,s,7);case 18:return Ns(t,2406,2415,!0,r);case 20:return ks(t,1,19999,Ps,3,r);case 21:return Ns(t,2790,2799,!0,r);case 22:return Ns(t,2662,2671,!0,r);case 52:return ks(t,1,10999,Ts,3,r);case 23:return Qs(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Qs(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ns(t,3302,3311,!0,r);case 28:return Qs(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Qs(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Ns(t,3792,3801,!0,r);case 37:return Ns(t,6160,6169,!0,r);case 38:return Ns(t,4160,4169,!0,r);case 39:return Ns(t,2918,2927,!0,r);case 40:return Ns(t,1776,1785,!0,r);case 43:return Ns(t,3046,3055,!0,r);case 44:return Ns(t,3174,3183,!0,r);case 45:return Ns(t,3664,3673,!0,r);case 46:return Ns(t,3872,3881,!0,r);default:return Ns(t,48,57,!0,r)}},$s="data-html2canvas-ignore";class js{constructor(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new Cs,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 n=Vs(t,e,this.options.iframeContainer);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");const r=t.defaultView.pageXOffset,i=t.defaultView.pageYOffset,s=n.contentWindow,o=s.document,a=Gs(n).then(async()=>{this.scrolledElements.forEach(qs),s&&(s.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===e.top&&s.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0)));const t=this.options.onclone,r=this.clonedReferenceElement;return void 0===r?Promise.reject(`Error finding the ${this.referenceElement.nodeName} in the cloned document`):(o.fonts&&o.fonts.ready&&await o.fonts.ready,/(AppleWebKit)/g.test(navigator.userAgent)&&await zs(o),"function"==typeof t?Promise.resolve().then(()=>t(o,r)).then(()=>n):n)}),l=o.baseURI;o.open();try{const t=trustedTypes.createPolicy("my-policy",{createHTML:t=>t}),e=Zs(document.doctype)+"<html></html>",n=t.createHTML(e);o.write(n)}catch(t){o.write(Zs(document.doctype)+"<html></html>")}Ks(this.referenceElement.ownerDocument,r,i);const A=o.adoptNode(this.documentElement);return io(A,l),o.replaceChild(A,o.documentElement),o.close(),a}createElementClone(t){if(ci(t,2),gs(t))return this.createCanvasClone(t);if(ms(t))return this.createVideoClone(t);if(Os(t))return this.createStyleClone(t);const e=t.cloneNode(!1);return ys(e)&&(ys(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Ss(e)?this.createCustomElementClone(e):e}createCustomElementClone(t){const e=document.createElement("div");if(e.className=t.className,Ws(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 n=[].slice.call(e.cssRules,0).reduce((t,e)=>e&&"string"==typeof e.cssText?t+e.cssText:t,""),r=t.cloneNode(!1);return r.textContent=n,this.options.cspNonce&&(r.nonce=this.options.cspNonce),r}}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 n=t.getContext("2d"),r=e.getContext("2d",{willReadFrequently:!0});if(r)if(!this.options.allowTaint&&n)r.putImageData(n.getImageData(0,0,t.width,t.height),0,0);else{const e=t.getContext("webgl2")??t.getContext("webgl");if(e){const n=e.getContextAttributes();!1===n?.preserveDrawingBuffer&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}r.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 n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",t)}const r=t.ownerDocument.createElement("canvas");return r.width=t.offsetWidth,r.height=t.offsetHeight,r}appendChildNode(t,e,n){ls(e)&&(bs(e)||e.hasAttribute($s)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&ls(e)&&Os(e)||t.appendChild(this.cloneNode(e,n))}shouldCloneChild(t){return!(ls(t)&&(bs(t)||t.hasAttribute($s)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t)))}shouldCloneStyleElement(t){return!this.options.copyStyles||!ls(t)||!Os(t)}safeAppendClonedChild(t,e,n){this.shouldCloneChild(e)&&this.shouldCloneStyleElement(e)&&t.appendChild(this.cloneNode(e,n))}cloneAssignedNodes(t,e,n){t.forEach(t=>{this.safeAppendClonedChild(e,t,n)})}cloneSlotFallbackContent(t,e,n){for(let r=t.firstChild;r;r=r.nextSibling)this.safeAppendClonedChild(e,r,n)}cloneSlotElement(t,e,n){if(!_s(t))return;const r=t;if("function"!=typeof r.assignedNodes)return this.context.logger.warn("HTMLSlotElement.assignedNodes is not available",t),void this.cloneSlotFallbackContent(t,e,n);const i=r.assignedNodes();if(!i||!Array.isArray(i))return this.context.logger.warn("assignedNodes() did not return a valid array",t),void this.cloneSlotFallbackContent(t,e,n);i.length>0?this.cloneAssignedNodes(i,e,n):this.cloneSlotFallbackContent(t,e,n)}cloneShadowDOMChildren(t,e,n){for(let r=t.firstChild;r;r=r.nextSibling)ls(r)&&_s(r)?this.cloneSlotElement(r,e,n):this.safeAppendClonedChild(e,r,n)}cloneLightDOMChildren(t,e,n){for(let r=t.firstChild;r;r=r.nextSibling)this.appendChildNode(e,r,n)}cloneSlotElementAsLightDOM(t,e,n){if(!_s(t))return;const r=t;if("function"!=typeof r.assignedNodes){for(let r=t.firstChild;r;r=r.nextSibling)this.appendChildNode(e,r,n);return}const i=r.assignedNodes();if(i&&Array.isArray(i)&&i.length>0)i.forEach(t=>this.appendChildNode(e,t,n));else for(let r=t.firstChild;r;r=r.nextSibling)this.appendChildNode(e,r,n)}cloneShadowDOMAsLightDOM(t,e,n){for(let r=t.firstChild;r;r=r.nextSibling)ls(r)&&_s(r)?this.cloneSlotElementAsLightDOM(r,e,n):this.appendChildNode(e,r,n)}cloneChildNodes(t,e,n){t.shadowRoot&&e.shadowRoot?(this.cloneShadowDOMChildren(t.shadowRoot,e.shadowRoot,n),this.cloneLightDOMChildren(t,e,n)):t.shadowRoot&&!e.shadowRoot?this.cloneShadowDOMAsLightDOM(t.shadowRoot,e,n):this.cloneLightDOMChildren(t,e,n)}cloneNode(t,e){if(as(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);const n=t.ownerDocument.defaultView;if(n&&ls(t)&&(As(t)||cs(t))){const r=this.createElementClone(t);r.style.transitionProperty="none";const i=n.getComputedStyle(t),s=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&As(r)&&(this.clonedReferenceElement=r),fs(r)&&no(r,this.options.cspNonce);const a=this.counters.parse(new li(this.context,i)),l=this.resolvePseudoContent(t,r,s,Hs.BEFORE);Ss(t)&&(e=!0),ms(t)||this.cloneChildNodes(t,r,e),l&&r.insertBefore(l,r.firstChild);const A=this.resolvePseudoContent(t,r,o,Hs.AFTER);return A&&r.appendChild(A),this.counters.pop(a),(i&&(this.options.copyStyles||cs(t))&&!vs(t)||e)&&Ws(i,r),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([r,t.scrollLeft,t.scrollTop]),(xs(t)||ws(t))&&(xs(r)||ws(r))&&(r.value=t.value),r}return t.cloneNode(!1)}resolvePseudoContent(t,e,n,r){if(!n)return;const i=n.content,s=e.ownerDocument;if(!s||!i||"none"===i||"-moz-alt-content"===i||"none"===n.display)return;this.counters.parse(new li(this.context,n));const o=new ai(this.context,n),a=s.createElement("html2canvaspseudoelement");Ws(n,a),o.content.forEach(e=>{if(0===e.type)a.appendChild(s.createTextNode(e.value));else if(22===e.type){const t=s.createElement("img");t.src=e.value,t.style.opacity="1",a.appendChild(t)}else if(18===e.type){if("attr"===e.name){const n=e.values.filter(zt);n.length&&a.appendChild(s.createTextNode(t.getAttribute(n[0].value)||""))}else if("counter"===e.name){const[t,n]=e.values.filter(Zt);if(t&&zt(t)){const e=this.counters.getCounterValue(t.value),r=n&&zt(n)?or.parse(this.context,n.value):3;a.appendChild(s.createTextNode(Us(e,r,!1)))}}else if("counters"===e.name){const[t,n,r]=e.values.filter(Zt);if(t&&zt(t)){const e=this.counters.getCounterValues(t.value),i=r&&zt(r)?or.parse(this.context,r.value):3,o=n&&0===n.type?n.value:"",l=e.map(t=>Us(t,i,!1)).join(o);a.appendChild(s.createTextNode(l))}}}else if(20===e.type)switch(e.value){case"open-quote":a.appendChild(s.createTextNode(Kr(o.quotes,this.quoteDepth++,!0)));break;case"close-quote":a.appendChild(s.createTextNode(Kr(o.quotes,--this.quoteDepth,!1)));break;default:a.appendChild(s.createTextNode(e.value))}}),a.className=`${Js} ${to}`;const l=r===Hs.BEFORE?` ${Js}`:` ${to}`;return cs(e)?e.className.baseValue+=l:e.className+=l,a}static destroy(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)}}var Hs;!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(Hs||(Hs={}));const Vs=(t,e,n)=>{const r=t.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute($s,"true"),(n||t.body).appendChild(r),r},Xs=t=>new Promise(e=>{t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}),zs=t=>Promise.all([].slice.call(t.images,0).map(Xs)),Gs=t=>new Promise((e,n)=>{const r=t.contentWindow;if(!r)return n("No window assigned for iframe");const i=r.document;r.onload=t.onload=()=>{r.onload=t.onload=null;const n=setInterval(()=>{i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),e(t))},50)}}),Ys=["all","d","content"],Ws=(t,e)=>{for(let n=t.length-1;n>=0;n--){const r=t.item(n);-1!==Ys.indexOf(r)||r.startsWith("--")||e.style.setProperty(r,t.getPropertyValue(r))}return e},Zs=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},Ks=(t,e,n)=>{t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},qs=([t,e,n])=>{t.scrollLeft=e,t.scrollTop=n},Js="___html2canvas___pseudoelement_before",to="___html2canvas___pseudoelement_after",eo='{\n    content: "" !important;\n    display: none !important;\n}',no=(t,e)=>{ro(t,`.${Js}:before${eo}\n         .${to}:after${eo}`,e)},ro=(t,e,n)=>{const r=t.ownerDocument;if(r){const i=r.createElement("style");i.textContent=e,n&&(i.nonce=n),t.appendChild(i)}},io=(t,e)=>{const n=t.ownerDocument.createElement("base");n.href=e;const r=t.getElementsByTagName("head").item(0);r?.insertBefore(n,r?.firstChild??null)};class so{static getOrigin(t){const e=so._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"}static isSameOrigin(t){return so.getOrigin(t)===so._origin}static setContext(t){so._link=t.document.createElement("a"),so._origin=so.getOrigin(t.location.href)}}so._origin="about:blank";class oo{constructor(t,e){this.context=t,this._options=e,this._cache={}}addImage(t){const e=Promise.resolve();return this.has(t)?e:po(t)||co(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,so.isSameOrigin):so.isSameOrigin(t),n=!ho(t)&&!0===this._options.useCORS&&ki.SUPPORT_CORS_IMAGES&&!e,r=!ho(t)&&!e&&!po(t)&&"string"==typeof this._options.proxy&&ki.SUPPORT_CORS_XHR&&!n;if(!(e||!1!==this._options.allowTaint||ho(t)||po(t)||r||n))return;let i=t;return r&&(i=await this.proxy(i)),this.context.logger.debug(`Added image ${t.substring(0,256)}`),await new Promise((t,e)=>{const r=new Image;r.onload=()=>t(r),r.onerror=e,(uo(i)||n)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout(()=>t(r),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 n=t.substring(0,256);return new Promise((r,i)=>{const s=ki.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=()=>{if(200===o.status)if("text"===s)r(o.response);else{const t=new FileReader;t.addEventListener("load",()=>r(t.result),!1),t.addEventListener("error",t=>i(t),!1),t.readAsDataURL(o.response)}else i(`Failed to proxy resource ${n} with status code ${o.status}`)},o.onerror=i;const a=e.indexOf("?")>-1?"&":"?";if(o.open("GET",`${e}${a}url=${encodeURIComponent(t)}&responseType=${s}`),"text"!==s&&o instanceof XMLHttpRequest&&(o.responseType=s),this._options.imageTimeout){const t=this._options.imageTimeout;o.timeout=t,o.ontimeout=()=>i(`Timed out (${t}ms) proxying ${n}`)}o.send()})}}const ao=/^data:image\/svg\+xml/i,lo=/^data:image\/.*;base64,/i,Ao=/^data:image\/.*/i,co=t=>ki.SUPPORT_SVG_DRAWING||!fo(t),ho=t=>Ao.test(t),uo=t=>lo.test(t),po=t=>"blob"===t.substr(0,4),fo=t=>"svg"===t.substr(-3).toLowerCase()||ao.test(t);class go{constructor(t,e){this.type=0,this.x=t,this.y=e}add(t,e){return new go(this.x+t,this.y+e)}}const mo=(t,e,n)=>new go(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n);class yo{constructor(t,e,n,r){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=r}subdivide(t,e){const n=mo(this.start,this.startControl,t),r=mo(this.startControl,this.endControl,t),i=mo(this.endControl,this.end,t),s=mo(n,r,t),o=mo(r,i,t),a=mo(s,o,t);return e?new yo(this.start,n,s,a):new yo(a,o,i,this.end)}add(t,e){return new yo(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))}reverse(){return new yo(this.end,this.endControl,this.startControl,this.start)}}const vo=t=>1===t.type;class Oo{constructor(t){const e=t.styles,n=t.bounds;let[r,i]=se(e.borderTopLeftRadius,n.width,n.height),[s,o]=se(e.borderTopRightRadius,n.width,n.height),[a,l]=se(e.borderBottomRightRadius,n.width,n.height),[A,c]=se(e.borderBottomLeftRadius,n.width,n.height);const h=[];h.push((r+s)/n.width),h.push((A+a)/n.width),h.push((i+c)/n.height),h.push((o+l)/n.height);const u=Math.max(...h);u>1&&(r/=u,i/=u,s/=u,o/=u,a/=u,l/=u,A/=u,c/=u);const p=n.width-s,d=n.height-l,f=n.width-a,g=n.height-c,m=e.borderTopWidth,y=e.borderRightWidth,v=e.borderBottomWidth,O=e.borderLeftWidth,b=oe(e.paddingTop,t.bounds.width),x=oe(e.paddingRight,t.bounds.width),w=oe(e.paddingBottom,t.bounds.width),_=oe(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||i>0?xo(n.left+O/3,n.top+m/3,r-O/3,i-m/3,bo.TOP_LEFT):new go(n.left+O/3,n.top+m/3),this.topRightBorderDoubleOuterBox=r>0||i>0?xo(n.left+p,n.top+m/3,s-y/3,o-m/3,bo.TOP_RIGHT):new go(n.left+n.width-y/3,n.top+m/3),this.bottomRightBorderDoubleOuterBox=a>0||l>0?xo(n.left+f,n.top+d,a-y/3,l-v/3,bo.BOTTOM_RIGHT):new go(n.left+n.width-y/3,n.top+n.height-v/3),this.bottomLeftBorderDoubleOuterBox=A>0||c>0?xo(n.left+O/3,n.top+g,A-O/3,c-v/3,bo.BOTTOM_LEFT):new go(n.left+O/3,n.top+n.height-v/3),this.topLeftBorderDoubleInnerBox=r>0||i>0?xo(n.left+2*O/3,n.top+2*m/3,r-2*O/3,i-2*m/3,bo.TOP_LEFT):new go(n.left+2*O/3,n.top+2*m/3),this.topRightBorderDoubleInnerBox=r>0||i>0?xo(n.left+p,n.top+2*m/3,s-2*y/3,o-2*m/3,bo.TOP_RIGHT):new go(n.left+n.width-2*y/3,n.top+2*m/3),this.bottomRightBorderDoubleInnerBox=a>0||l>0?xo(n.left+f,n.top+d,a-2*y/3,l-2*v/3,bo.BOTTOM_RIGHT):new go(n.left+n.width-2*y/3,n.top+n.height-2*v/3),this.bottomLeftBorderDoubleInnerBox=A>0||c>0?xo(n.left+2*O/3,n.top+g,A-2*O/3,c-2*v/3,bo.BOTTOM_LEFT):new go(n.left+2*O/3,n.top+n.height-2*v/3),this.topLeftBorderStroke=r>0||i>0?xo(n.left+O/2,n.top+m/2,r-O/2,i-m/2,bo.TOP_LEFT):new go(n.left+O/2,n.top+m/2),this.topRightBorderStroke=r>0||i>0?xo(n.left+p,n.top+m/2,s-y/2,o-m/2,bo.TOP_RIGHT):new go(n.left+n.width-y/2,n.top+m/2),this.bottomRightBorderStroke=a>0||l>0?xo(n.left+f,n.top+d,a-y/2,l-v/2,bo.BOTTOM_RIGHT):new go(n.left+n.width-y/2,n.top+n.height-v/2),this.bottomLeftBorderStroke=A>0||c>0?xo(n.left+O/2,n.top+g,A-O/2,c-v/2,bo.BOTTOM_LEFT):new go(n.left+O/2,n.top+n.height-v/2),this.topLeftBorderBox=r>0||i>0?xo(n.left,n.top,r,i,bo.TOP_LEFT):new go(n.left,n.top),this.topRightBorderBox=s>0||o>0?xo(n.left+p,n.top,s,o,bo.TOP_RIGHT):new go(n.left+n.width,n.top),this.bottomRightBorderBox=a>0||l>0?xo(n.left+f,n.top+d,a,l,bo.BOTTOM_RIGHT):new go(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=A>0||c>0?xo(n.left,n.top+g,A,c,bo.BOTTOM_LEFT):new go(n.left,n.top+n.height),this.topLeftPaddingBox=r>0||i>0?xo(n.left+O,n.top+m,Math.max(0,r-O),Math.max(0,i-m),bo.TOP_LEFT):new go(n.left+O,n.top+m),this.topRightPaddingBox=s>0||o>0?xo(n.left+Math.min(p,n.width-y),n.top+m,p>n.width+y?0:Math.max(0,s-y),Math.max(0,o-m),bo.TOP_RIGHT):new go(n.left+n.width-y,n.top+m),this.bottomRightPaddingBox=a>0||l>0?xo(n.left+Math.min(f,n.width-O),n.top+Math.min(d,n.height-v),Math.max(0,a-y),Math.max(0,l-v),bo.BOTTOM_RIGHT):new go(n.left+n.width-y,n.top+n.height-v),this.bottomLeftPaddingBox=A>0||c>0?xo(n.left+O,n.top+Math.min(g,n.height-v),Math.max(0,A-O),Math.max(0,c-v),bo.BOTTOM_LEFT):new go(n.left+O,n.top+n.height-v),this.topLeftContentBox=r>0||i>0?xo(n.left+O+_,n.top+m+b,Math.max(0,r-(O+_)),Math.max(0,i-(m+b)),bo.TOP_LEFT):new go(n.left+O+_,n.top+m+b),this.topRightContentBox=s>0||o>0?xo(n.left+Math.min(p,n.width+O+_),n.top+m+b,p>n.width+O+_?0:s-O+_,o-(m+b),bo.TOP_RIGHT):new go(n.left+n.width-(y+x),n.top+m+b),this.bottomRightContentBox=a>0||l>0?xo(n.left+Math.min(f,n.width-(O+_)),n.top+Math.min(d,n.height+m+b),Math.max(0,a-(y+x)),l-(v+w),bo.BOTTOM_RIGHT):new go(n.left+n.width-(y+x),n.top+n.height-(v+w)),this.bottomLeftContentBox=A>0||c>0?xo(n.left+O+_,n.top+g,Math.max(0,A-(O+_)),c-(v+w),bo.BOTTOM_LEFT):new go(n.left+O+_,n.top+n.height-(v+w))}}var bo;!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"}(bo||(bo={}));const xo=(t,e,n,r,i)=>{const s=(Math.sqrt(2)-1)/3*4,o=n*s,a=r*s,l=t+n,A=e+r;switch(i){case bo.TOP_LEFT:return new yo(new go(t,A),new go(t,A-a),new go(l-o,e),new go(l,e));case bo.TOP_RIGHT:return new yo(new go(t,e),new go(t+o,e),new go(l,A-a),new go(l,A));case bo.BOTTOM_RIGHT:return new yo(new go(l,e),new go(l,e+a),new go(t+o,A),new go(t,A));case bo.BOTTOM_LEFT:default:return new yo(new go(l,A),new go(l-o,A),new go(t,e+a),new go(t,e))}},wo=t=>[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox],_o=t=>[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox];class So{constructor(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}}class Co{constructor(t,e){this.path=t,this.target=e,this.type=1}}class Eo{constructor(t){this.opacity=t,this.type=2,this.target=6}}const Bo=t=>1===t.type,To=(t,e)=>t.length===e.length&&t.some((t,n)=>t===e[n]);class Po{constructor(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}class ko{constructor(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Oo(this.container),this.container.styles.opacity<1&&this.effects.push(new Eo(this.container.styles.opacity)),null!==this.container.styles.rotate){const t=this.container.styles.transformOrigin,e=this.container.bounds.left+oe(t[0],this.container.bounds.width),n=this.container.bounds.top+oe(t[1],this.container.bounds.height),r=this.container.styles.rotate*Math.PI/180,i=Math.cos(r),s=Math.sin(r),o=[i,s,-s,i,0,0];this.effects.push(new So(e,n,o))}if(null!==this.container.styles.transform){const t=this.container.styles.transformOrigin,e=this.container.bounds.left+oe(t[0],this.container.bounds.width),n=this.container.bounds.top+oe(t[1],this.container.bounds.height),r=this.container.styles.transform;this.effects.push(new So(e,n,r))}if(0!==this.container.styles.overflowX){const t=wo(this.curves),e=_o(this.curves);To(t,e)?this.effects.push(new Co(t,6)):(this.effects.push(new Co(t,2)),this.effects.push(new Co(e,4)))}}getEffects(t){let e=-1===[2,3].indexOf(this.container.styles.position),n=this.parent;const r=this.effects.slice(0);for(;n;){const t=n.effects.filter(t=>!Bo(t));if(e||0!==n.container.styles.position||!n.parent){if(e=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){const t=wo(n.curves),e=_o(n.curves);To(t,e)||r.unshift(new Co(e,6))}r.unshift(...t)}else r.unshift(...t);n=n.parent}return r.filter(e=>Xr(e.target,t))}}const Io=(t,e,n,r)=>{t.container.elements.forEach(i=>{const s=Xr(i.flags,4),o=Xr(i.flags,2),a=new ko(i,t);Xr(i.styles.display,2048)&&r.push(a);const l=Xr(i.flags,8)?[]:r;if(s||o){const t=s||i.styles.isPositioned()?n:e,r=new Po(a);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){const e=i.styles.zIndex.order;if(e<0){let n=0;t.negativeZIndex.some((t,r)=>e>t.element.container.styles.zIndex.order?(n=r,!1):n>0),t.negativeZIndex.splice(n,0,r)}else if(e>0){let n=0;t.positiveZIndex.some((t,r)=>e>=t.element.container.styles.zIndex.order?(n=r+1,!1):n>0),t.positiveZIndex.splice(n,0,r)}else t.zeroOrAutoZIndexOrTransformedOrOpacity.push(r)}else i.styles.isFloating()?t.nonPositionedFloats.push(r):t.nonPositionedInlineLevel.push(r);Io(a,r,s?r:n,l)}else i.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),Io(a,e,n,l);Xr(i.flags,8)&&No(i,l)})},No=(t,e)=>{let n=t instanceof Xi?t.start:1;const r=t instanceof Xi&&t.reversed;for(let t=0;t<e.length;t++){const i=e[t];i.container instanceof Vi&&"number"==typeof i.container.value&&0!==i.container.value&&(n=i.container.value),i.listValue=Us(n,i.container.styles.listStyleType,!0),n+=r?-1:1}},Qo=(t,e)=>{switch(e){case 0:return Lo(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Lo(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Lo(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return Lo(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Fo=(t,e)=>{const n=[];return vo(t)?n.push(t.subdivide(.5,!1)):n.push(t),vo(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},Lo=(t,e,n,r)=>{const i=[];return vo(t)?i.push(t.subdivide(.5,!1)):i.push(t),vo(n)?i.push(n.subdivide(.5,!0)):i.push(n),vo(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),vo(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},Mo=t=>{const e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Do=t=>{const e=t.styles,n=t.bounds,r=oe(e.paddingLeft,n.width),i=oe(e.paddingRight,n.width),s=oe(e.paddingTop,n.width),o=oe(e.paddingBottom,n.width);return n.add(r+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+i),-(e.borderTopWidth+e.borderBottomWidth+s+o))},Ro=(t,e,n)=>{const r=((t,e)=>0===t?e.bounds:2===t?Do(e):Mo(e))(Ho(t.styles.backgroundOrigin,e),t),i=((t,e)=>0===t?e.bounds:2===t?Do(e):Mo(e))(Ho(t.styles.backgroundClip,e),t),s=jo(Ho(t.styles.backgroundSize,e),n,r);let[o,a]=s;const l=se(Ho(t.styles.backgroundPosition,e),r.width-o,r.height-a),A=Vo(Ho(t.styles.backgroundRepeat,e),l,s,r,i),c=Math.round(r.left+l[0]),h=Math.round(r.top+l[1]);return o=Math.max(1,o),a=Math.max(1,a),[A,c,h,o,a]},Uo=t=>zt(t)&&t.value===Sn.AUTO,$o=t=>"number"==typeof t,jo=(t,[e,n,r],i)=>{const[s,o]=t;if(!s)return[0,0];if(te(s)&&o&&te(o))return[oe(s,i.width),oe(o,i.height)];const a=$o(r);if(zt(s)&&(s.value===Sn.CONTAIN||s.value===Sn.COVER))return $o(r)?i.width/i.height<r!=(s.value===Sn.COVER)?[i.width,i.width/r]:[i.height*r,i.height]:[i.width,i.height];const l=$o(e),A=$o(n),c=l||A;if(Uo(s)&&(!o||Uo(o)))return l&&A?[e,n]:a||c?c&&a?[l?e:n*r,A?n:e/r]:[l?e:i.width,A?n:i.height]:[i.width,i.height];if(a){let t=0,e=0;return te(s)?t=oe(s,i.width):te(o)&&(e=oe(o,i.height)),Uo(s)?t=e*r:o&&!Uo(o)||(e=t/r),[t,e]}let h=null,u=null;if(te(s)?h=oe(s,i.width):o&&te(o)&&(u=oe(o,i.height)),null===h||o&&!Uo(o)||(u=l&&A?h/e*n:i.height),null!==u&&Uo(s)&&(h=l&&A?u/n*e:i.width),null!==h&&null!==u)return[h,u];throw new Error("Unable to calculate background-size for element")},Ho=(t,e)=>{const n=t[e];return void 0===n?t[0]:n},Vo=(t,[e,n],[r,i],s,o)=>{switch(t){case 2:return[new go(Math.round(s.left),Math.round(s.top+n)),new go(Math.round(s.left+s.width),Math.round(s.top+n)),new go(Math.round(s.left+s.width),Math.round(i+s.top+n)),new go(Math.round(s.left),Math.round(i+s.top+n))];case 3:return[new go(Math.round(s.left+e),Math.round(s.top)),new go(Math.round(s.left+e+r),Math.round(s.top)),new go(Math.round(s.left+e+r),Math.round(s.height+s.top)),new go(Math.round(s.left+e),Math.round(s.height+s.top))];case 1:return[new go(Math.round(s.left+e),Math.round(s.top+n)),new go(Math.round(s.left+e+r),Math.round(s.top+n)),new go(Math.round(s.left+e+r),Math.round(s.top+n+i)),new go(Math.round(s.left+e),Math.round(s.top+n+i))];default:return[new go(Math.round(o.left),Math.round(o.top)),new go(Math.round(o.left+o.width),Math.round(o.top)),new go(Math.round(o.left+o.width),Math.round(o.height+o.top)),new go(Math.round(o.left),Math.round(o.height+o.top))]}},Xo="Hidden Text";class zo{constructor(t){this._data={},this._document=t}parseMetrics(t,e){const n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(Xo)),n.appendChild(i),n.appendChild(r);const o=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(Xo)),n.style.lineHeight="normal",r.style.verticalAlign="super";const a=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:o,middle:a}}getMetrics(t,e){const n=`${t} ${e}`;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]}}class Go{constructor(t,e){this.context=t,this.options=e}}class Yo extends Go{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 zo(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)),Bo(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){Xr(t.container.flags,16),t.container.styles.isVisible()&&(await this.renderNodeBackgroundAndBorders(t),await this.renderNodeContent(t))}renderTextWithLetterSpacing(t,e,n){0===e?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n):Qi(t.text).reduce((e,r)=>(this.ctx.fillText(r,e,t.bounds.top+n),e+this.ctx.measureText(r).width),t.bounds.left)}renderTextBoundWithPaintOrder(t,e,n){n.forEach(n=>{switch(n){case 0:this.ctx.fillStyle=de(e.color),this.renderTextWithLetterSpacing(t,e.letterSpacing,e.fontSize.number);break;case 1:e.webkitTextStrokeWidth&&t.text.trim().length&&(this.ctx.strokeStyle=de(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=de(e.textDecorationColor||e.color);let n=1;"number"==typeof e.textDecorationThickness?n=e.textDecorationThickness:"from-font"===e.textDecorationThickness&&(n=Math.max(1,Math.floor(.05*e.fontSize.number)));let r=0;"number"==typeof e.textUnderlineOffset&&(r=e.textUnderlineOffset);const i=e.textDecorationStyle;e.textDecorationLine.forEach(e=>{let s=0;switch(e){case 1:s=t.top+t.height-n+r;break;case 2:s=t.top;break;case 3:s=t.top+(t.height/2-n/2);break;default:return}this.drawDecorationLine(t.left,s,t.width,n,i)})}drawDecorationLine(t,e,n,r,i){switch(i){case 0:default:this.ctx.fillRect(t,e,n,r);break;case 1:const i=Math.max(1,r);this.ctx.fillRect(t,e,n,r),this.ctx.fillRect(t,e+r+i,n,r);break;case 2:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([r,2*r]),this.ctx.lineWidth=r,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(t,e+r/2),this.ctx.lineTo(t+n,e+r/2),this.ctx.stroke(),this.ctx.restore();break;case 3:this.ctx.save(),this.ctx.beginPath(),this.ctx.setLineDash([3*r,2*r]),this.ctx.lineWidth=r,this.ctx.strokeStyle=this.ctx.fillStyle,this.ctx.moveTo(t,e+r/2),this.ctx.lineTo(t+n,e+r/2),this.ctx.stroke(),this.ctx.restore();break;case 4:this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=r,this.ctx.strokeStyle=this.ctx.fillStyle;const s=2*r,o=4*r;let a=t;for(this.ctx.moveTo(a,e+r/2);a<t+n;){const i=Math.min(a+o/2,t+n);if(this.ctx.quadraticCurveTo(a+o/4,e+r/2-s,i,e+r/2),a=i,a<t+n){const i=Math.min(a+o/2,t+n);this.ctx.quadraticCurveTo(a+o/4,e+r/2+s,i,e+r/2),a=i}}this.ctx.stroke(),this.ctx.restore()}}truncateTextWithEllipsis(t,e,n){const r="...",i=this.ctx.measureText(r).width;if(0===n){let n=t;for(;this.ctx.measureText(n).width+i>e&&n.length>0;)n=n.slice(0,-1);return n+r}{const s=Qi(t);let o=i,a=[];for(const t of s){const r=this.ctx.measureText(t).width+n;if(o+r>e)break;a.push(t),o+=r}return a.join("")+r}}createFontStyle(t){const e=t.fontVariant.filter(t=>"normal"===t||"small-caps"===t).join(""),n=Jo(t.fontFamily).join(", "),r=Vt(t.fontSize)?`${t.fontSize.number}${t.fontSize.unit}`:`${t.fontSize.number}px`;return[[t.fontStyle,e,t.fontWeight,r,n].join(" "),n,r]}async renderTextNode(t,e,n){const[r]=this.createFontStyle(e);this.ctx.font=r,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic";const i=e.paintOrder,s=1.5*e.fontSize.number;if(e.webkitLineClamp>0&&2&e.display&&1===e.overflowY&&t.textBounds.length>0){const r=[];let o=[],a=t.textBounds[0].bounds.top;t.textBounds.forEach(t=>{Math.abs(t.bounds.top-a)>=.5*s?(o.length>0&&r.push(o),o=[t],a=t.bounds.top):o.push(t)}),o.length>0&&r.push(o);const l=e.webkitLineClamp;if(r.length>l){for(let t=0;t<l-1;t++)r[t].forEach(t=>{this.renderTextBoundWithPaintOrder(t,e,i)});const t=r[l-1];if(t&&t.length>0&&n){const r=t.map(t=>t.text).join(""),s=t[0],o=n.width-(s.bounds.left-n.left),a=this.truncateTextWithEllipsis(r,o,e.letterSpacing);i.forEach(t=>{switch(t){case 0:this.ctx.fillStyle=de(e.color),0===e.letterSpacing?this.ctx.fillText(a,s.bounds.left,s.bounds.top+e.fontSize.number):Qi(a).reduce((t,n)=>(this.ctx.fillText(n,t,s.bounds.top+e.fontSize.number),t+this.ctx.measureText(n).width+e.letterSpacing),s.bounds.left);break;case 1:e.webkitTextStrokeWidth&&a.trim().length&&(this.ctx.strokeStyle=de(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round",0===e.letterSpacing?this.ctx.strokeText(a,s.bounds.left,s.bounds.top+e.fontSize.number):Qi(a).reduce((t,n)=>(this.ctx.strokeText(n,t,s.bounds.top+e.fontSize.number),t+this.ctx.measureText(n).width+e.letterSpacing),s.bounds.left))}})}return}}const o=1===e.textOverflow&&n&&1===e.overflowX&&t.textBounds.length>0;let a=!1,l="";if(o){const r=t.textBounds[0].bounds.top;if(t.textBounds.every(t=>Math.abs(t.bounds.top-r)<.5*s)){let r=t.textBounds.map(t=>t.text).join("");r=r.replace(/\s+/g," ").trim();const i=this.ctx.measureText(r).width,s=n.width;i>s&&(a=!0,l=this.truncateTextWithEllipsis(r,s,e.letterSpacing))}}if(a){const n=t.textBounds[0];return void i.forEach(t=>{switch(t){case 0:this.ctx.fillStyle=de(e.color),0===e.letterSpacing?this.ctx.fillText(l,n.bounds.left,n.bounds.top+e.fontSize.number):Qi(l).reduce((t,r)=>(this.ctx.fillText(r,t,n.bounds.top+e.fontSize.number),t+this.ctx.measureText(r).width+e.letterSpacing),n.bounds.left);const t=e.textShadow;t.length&&l.trim().length&&(t.slice(0).reverse().forEach(t=>{this.ctx.shadowColor=de(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(l,n.bounds.left,n.bounds.top+e.fontSize.number):Qi(l).reduce((t,r)=>(this.ctx.fillText(r,t,n.bounds.top+e.fontSize.number),t+this.ctx.measureText(r).width+e.letterSpacing),n.bounds.left)}),this.ctx.shadowColor="",this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0,this.ctx.shadowBlur=0);break;case 1:e.webkitTextStrokeWidth&&l.trim().length&&(this.ctx.strokeStyle=de(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round",0===e.letterSpacing?this.ctx.strokeText(l,n.bounds.left,n.bounds.top+e.fontSize.number):Qi(l).reduce((t,r)=>(this.ctx.strokeText(r,t,n.bounds.top+e.fontSize.number),t+this.ctx.measureText(r).width+e.letterSpacing),n.bounds.left))}})}t.textBounds.forEach(t=>{i.forEach(n=>{switch(n){case 0:this.ctx.fillStyle=de(e.color),this.renderTextWithLetterSpacing(t,e.letterSpacing,e.fontSize.number);const n=e.textShadow;n.length&&t.text.trim().length&&(n.slice(0).reverse().forEach(n=>{this.ctx.shadowColor=de(n.color),this.ctx.shadowOffsetX=n.offsetX.number*this.options.scale,this.ctx.shadowOffsetY=n.offsetY.number*this.options.scale,this.ctx.shadowBlur=n.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=de(e.webkitTextStrokeColor),this.ctx.lineWidth=e.webkitTextStrokeWidth,this.ctx.lineJoin=window.chrome?"miter":"round";const n=e.fontSize.number;0===e.letterSpacing?this.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+n):Qi(t.text).reduce((e,r)=>(this.ctx.strokeText(r,e,t.bounds.top+n),e+this.ctx.measureText(r).width),t.bounds.left)}this.ctx.strokeStyle="",this.ctx.lineWidth=0,this.ctx.lineJoin="miter"}})})}renderReplacedElement(t,e,n){const r=n.naturalWidth||t.intrinsicWidth,i=n.naturalHeight||t.intrinsicHeight;if(n&&r>0&&i>0){const s=Do(t),o=_o(e);this.path(o),this.ctx.save(),this.ctx.clip();let a=0,l=0,A=r,c=i,h=s.left,u=s.top,p=s.width,d=s.height;const{objectFit:f}=t.styles,g=p/d,m=A/c;2===f?m>g?(d=p/m,u+=(s.height-d)/2):(p=d*m,h+=(s.width-p)/2):4===f?m>g?(A=c*g,a+=(r-A)/2):(c=A/g,l+=(i-c)/2):8===f?(A>p?(a+=(A-p)/2,A=p):(h+=(p-A)/2,p=A),c>d?(l+=(c-d)/2,c=d):(u+=(d-c)/2,d=c)):16===f&&((m>g?p:d*m)<(A>p?A:p)?m>g?(d=p/m,u+=(s.height-d)/2):(p=d*m,h+=(s.width-p)/2):(A>p?(a+=(A-p)/2,A=p):(h+=(p-A)/2,p=A),c>d?(l+=(c-d)/2,c=d):(u+=(d-c)/2,d=c))),this.ctx.drawImage(n,a,l,A,c,h,u,p,d),this.ctx.restore()}}async renderNodeContent(t){this.applyEffects(t.getEffects(4));const e=t.container,n=t.curves,i=e.styles,s=Do(e);for(const t of e.textNodes)await this.renderTextNode(t,i,s);if(e instanceof $i)try{const t=await this.context.cache.match(e.src);this.renderReplacedElement(e,n,t)}catch(t){this.context.logger.error(`Error loading image ${e.src}`)}if(e instanceof ji&&this.renderReplacedElement(e,n,e.canvas),e instanceof Hi)try{const t=await this.context.cache.match(e.svg);this.renderReplacedElement(e,n,t)}catch(t){this.context.logger.error(`Error loading svg ${e.svg.substring(0,255)}`)}if(e instanceof ts&&e.tree){const t=new Yo(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}),n=await t.render(e.tree);e.width&&e.height&&this.ctx.drawImage(n,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height)}if(e instanceof Ki){const t=Math.min(e.bounds.width,e.bounds.height);e.type===Yi?e.checked&&(this.ctx.save(),this.path([new go(e.bounds.left+.39363*t,e.bounds.top+.79*t),new go(e.bounds.left+.16*t,e.bounds.top+.5549*t),new go(e.bounds.left+.27347*t,e.bounds.top+.44071*t),new go(e.bounds.left+.39694*t,e.bounds.top+.5649*t),new go(e.bounds.left+.72983*t,e.bounds.top+.23*t),new go(e.bounds.left+.84*t,e.bounds.top+.34085*t),new go(e.bounds.left+.39363*t,e.bounds.top+.79*t)]),this.ctx.fillStyle=de(Zi),this.ctx.fill(),this.ctx.restore()):e.type===Wi&&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=de(Zi),this.ctx.fill(),this.ctx.restore())}if(Wo(e)&&e.value.length){const[t,n,r]=this.createFontStyle(i),{baseline:s}=this.fontMetrics.getMetrics(n,r);this.ctx.font=t;const o=e instanceof Ki&&e.isPlaceholder;this.ctx.fillStyle=de(o?1970632191:i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ko(e.styles.textAlign);const a=Do(e);let l=0;switch(e.styles.textAlign){case 1:l+=a.width/2;break;case 2:l+=a.width}let A=0;if(e instanceof Ki){const t=oe(i.fontSize,0);A=(a.height-t)/2}const c=a.add(l,A,0,0);this.ctx.save(),this.path([new go(a.left,a.top),new go(a.left+a.width,a.top),new go(a.left+a.width,a.top+a.height),new go(a.left,a.top+a.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ii(e.value,c),i.letterSpacing,s),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(Xr(e.styles.display,2048))if(null!==e.styles.listStyleImage){const t=e.styles.listStyleImage;if(0===t.type){let n;const r=t.url;try{n=await this.context.cache.match(r),this.ctx.drawImage(n,e.bounds.left-(n.width+10),e.bounds.top)}catch(t){this.context.logger.error(`Error loading list-style-image ${r}`)}}}else if(t.listValue&&-1!==e.styles.listStyleType){const[n]=this.createFontStyle(i);this.ctx.font=n,this.ctx.fillStyle=de(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right";const s=new r(e.bounds.left,e.bounds.top+oe(e.styles.paddingTop,e.bounds.width),e.bounds.width,rr(i.lineHeight,i.fontSize.number)/2+1);this.renderTextWithLetterSpacing(new Ii(t.listValue,s),i.letterSpacing,rr(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}}async renderStackContent(t){Xr(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 n=vo(t)?t.start:t;0===e?this.ctx.moveTo(n.x,n.y):this.ctx.lineTo(n.x,n.y),vo(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,n,r){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)}resizeImage(t,e,n){const r=(this.canvas.ownerDocument??document).createElement("canvas");return r.width=Math.max(1,e),r.height=Math.max(1,n),r.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e,n),r}async renderBackgroundImage(t){let e=t.styles.backgroundImage.length-1;for(const n of t.styles.backgroundImage.slice(0).reverse()){if(0===n.type){let r;const i=n.url;try{r=await this.context.cache.match(i)}catch(t){this.context.logger.error(`Error loading background-image ${i}`)}if(r){const n=isNaN(r.width)||0===r.width?1:r.width,i=isNaN(r.height)||0===r.height?1:r.height,[s,o,a,l,A]=Ro(t,e,[n,i,n/i]),c=this.ctx.createPattern(this.resizeImage(r,l,A),"repeat");this.renderRepeat(s,c,o,a)}}else if(gn(n)){const[r,i,s,o,a]=Ro(t,e,[null,null,null]),[l,A,c,h,u]=en(n.angle,o,a),p=document.createElement("canvas");p.width=o,p.height=a;const d=p.getContext("2d"),f=d.createLinearGradient(A,h,c,u);if(tn(n.stops,l||1).forEach(t=>f.addColorStop(t.stop,de(t.color))),d.fillStyle=f,d.fillRect(0,0,o,a),o>0&&a>0){const t=this.ctx.createPattern(p,"repeat");this.renderRepeat(r,t,i,s)}}else if(mn(n)){const[r,i,s,o,a]=Ro(t,e,[null,null,null]),l=0===n.position.length?[re]:n.position,A=oe(l[0],o),c=oe(l[l.length-1],a);let[h,u]=sn(n,A,c,o,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+A,s+c,0,i+A,s+c,h);if(tn(n.stops,2*h).forEach(t=>e.addColorStop(t.stop,de(t.color))),this.path(r),this.ctx.fillStyle=e,h!==u){const e=t.bounds.left+.5*t.bounds.width,n=t.bounds.top+.5*t.bounds.height,r=u/h,l=1/r;this.ctx.save(),this.ctx.translate(e,n),this.ctx.transform(1,0,0,r,0,0),this.ctx.translate(-e,-n),this.ctx.fillRect(i,l*(s-n)+n,o,a*l),this.ctx.restore()}else this.ctx.fill()}}e--}}async renderSolidBorder(t,e,n){this.path(Qo(n,e)),this.ctx.fillStyle=de(t),this.ctx.fill()}async renderDoubleBorder(t,e,n,r){if(e<3)return void await this.renderSolidBorder(t,n,r);const i=((t,e)=>{switch(e){case 0:return Lo(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Lo(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Lo(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return Lo(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}})(r,n);this.path(i),this.ctx.fillStyle=de(t),this.ctx.fill();const s=((t,e)=>{switch(e){case 0:return Lo(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Lo(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Lo(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return Lo(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}})(r,n);this.path(s),this.ctx.fill()}async renderNodeBackgroundAndBorders(t){this.applyEffects(t.getEffects(2));const e=t.container.styles,n=!pe(e.backgroundColor)||e.backgroundImage.length,r=[{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=Zo(Ho(e.backgroundClip,0),t.curves);(n||e.boxShadow.length)&&(this.ctx.save(),this.path(i),this.ctx.clip(),pe(e.backgroundColor)||(this.ctx.fillStyle=de(e.backgroundColor),this.ctx.fill()),await this.renderBackgroundImage(t.container),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(e=>{this.ctx.save();const n=wo(t.curves),r=e.inset?0:1e4,i=(s=n,o=-r+(e.inset?1:-1)*e.spread.number,a=(e.inset?1:-1)*e.spread.number,l=e.spread.number*(e.inset?-2:2),A=e.spread.number*(e.inset?-2:2),s.map((t,e)=>{switch(e){case 0:return t.add(o,a);case 1:return t.add(o+l,a);case 2:return t.add(o+l,a+A);case 3:return t.add(o,a+A)}return t}));var s,o,a,l,A;e.inset?(this.path(n),this.ctx.clip(),this.mask(i)):(this.mask(n),this.ctx.clip(),this.path(i)),this.ctx.shadowOffsetX=e.offsetX.number+r,this.ctx.shadowOffsetY=e.offsetY.number,this.ctx.shadowColor=de(e.color),this.ctx.shadowBlur=e.blur.number,this.ctx.fillStyle=e.inset?de(e.color):"rgba(0,0,0,1)",this.ctx.fill(),this.ctx.restore()}));let s=0;for(const e of r)0!==e.style&&!pe(e.color)&&e.width>0&&(2===e.style?await this.renderDashedDottedBorder(e.color,e.width,s,t.curves,2):3===e.style?await this.renderDashedDottedBorder(e.color,e.width,s,t.curves,3):4===e.style?await this.renderDoubleBorder(e.color,e.width,s,t.curves):await this.renderSolidBorder(e.color,s,t.curves)),s++}async renderDashedDottedBorder(t,e,n,r,i){this.ctx.save();const s=((t,e)=>{switch(e){case 0:return Fo(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fo(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fo(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return Fo(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}})(r,n),o=Qo(r,n);let a,l,A,c,h;2===i&&(this.path(o),this.ctx.clip()),vo(o[0])?(a=o[0].start.x,l=o[0].start.y):(a=o[0].x,l=o[0].y),vo(o[1])?(A=o[1].end.x,c=o[1].end.y):(A=o[1].x,c=o[1].y),h=0===n||2===n?Math.abs(a-A):Math.abs(l-c),this.ctx.beginPath(),3===i?this.formatPath(s):this.formatPath(o.slice(0,2));let u=e<3?3*e:2*e,p=e<3?2*e:e;3===i&&(u=e,p=e);let d=!0;if(h<=2*u)d=!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),n=(h-(t+1)*u)/t;p=n<=0||Math.abs(p-e)<Math.abs(p-n)?e:n}if(d&&(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=de(t),this.ctx.stroke(),this.ctx.setLineDash([]),2===i){if(vo(o[0])){const t=o[3],e=o[0];this.ctx.beginPath(),this.formatPath([new go(t.end.x,t.end.y),new go(e.start.x,e.start.y)]),this.ctx.stroke()}if(vo(o[1])){const t=o[1],e=o[2];this.ctx.beginPath(),this.formatPath([new go(t.end.x,t.end.y),new go(e.start.x,e.start.y)]),this.ctx.stroke()}}this.ctx.restore()}async render(t){this.options.backgroundColor&&(this.ctx.fillStyle=de(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height));const e=(t=>{const e=new ko(t,null),n=new Po(e),r=[];return Io(e,n,n,r),No(e.container,r),n})(t);return await this.renderStack(e),this.applyEffects([]),this.canvas}}const Wo=t=>t instanceof Ji||t instanceof qi||t instanceof Ki&&t.type!==Wi&&t.type!==Yi,Zo=(t,e)=>{switch(t){case 0:return wo(e);case 2:return(t=>[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox])(e);default:return _o(e)}},Ko=t=>{switch(t){case 1:return"center";case 2:return"right";default:return"left"}},qo=["-apple-system","system-ui"],Jo=t=>/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(t=>-1===qo.indexOf(t)):t;class ta extends Go{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=Ti(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),n=await ea(e);return this.options.backgroundColor&&(this.ctx.fillStyle=de(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),this.canvas}}const ea=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>{e(r)},r.onerror=n,r.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent((new XMLSerializer).serializeToString(t))}`});class na{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))}}na.instances={};class ra{constructor(t,e){this.windowBounds=e,this.instanceName="#"+ra.instanceCount++,this.logger=new na({id:this.instanceName,enabled:t.logging}),this.cache=t.cache??new oo(this,t)}}let ia;ra.instanceCount=1;const sa=(t,e={})=>oa(t,e);sa.setCspNonce=t=>{ia=t},"undefined"!=typeof window&&so.setContext(window);const oa=async(t,e)=>{if(!t||"object"!=typeof t)return Promise.reject("Invalid element provided as first argument");const n=t.ownerDocument;if(!n)throw new Error("Element is not attached to a Document");const s=n.defaultView;if(!s)throw new Error("Document is not attached to a Window");const o={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,...o},l={windowWidth:e.windowWidth??s.innerWidth,windowHeight:e.windowHeight??s.innerHeight,scrollX:e.scrollX??s.pageXOffset,scrollY:e.scrollY??s.pageYOffset},A=new r(l.scrollX,l.scrollY,l.windowWidth,l.windowHeight),c=new ra(a,A),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 ${A.width}x${A.height} scrolled to ${-A.left},${-A.top}`);const p=new js(c,t,u),d=p.clonedReferenceElement;if(!d)return Promise.reject("Unable to find element in cloned iframe");const f=await p.toIFrame(n,A),{width:g,height:m,left:y,top:v}=fs(d)||"HTML"===d.tagName?(t=>{const e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");const i=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),s=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new r(0,0,i,s)})(d.ownerDocument):i(c,d),O=aa(c,d,e.backgroundColor),b={canvas:e.canvas,backgroundColor:O,scale:e.scale??s.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,b);x=await t.render(d)}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=is(c,d);O===t.styles.backgroundColor&&(t.styles.backgroundColor=Ze.TRANSPARENT),c.logger.debug(`Starting renderer for element at ${b.x},${b.y} with size ${b.width}x${b.height}`);const e=new Yo(c,b);x=await e.render(t)}return(e.removeContainer??1)&&(js.destroy(f)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),x},aa=(t,e,n)=>{const r=e.ownerDocument,i=r.documentElement?We(t,getComputedStyle(r.documentElement).backgroundColor):Ze.TRANSPARENT,s=r.body?We(t,getComputedStyle(r.body).backgroundColor):Ze.TRANSPARENT,o="string"==typeof n?We(t,n):null===n?Ze.TRANSPARENT:4294967295;return e===r.documentElement?pe(i)?pe(s)?o:s:i:o}},75894(t,e,n){"use strict";n.d(e,{R:()=>i});var r=n(2);function i(t){return function(t){const e="string"==typeof t?t.charCodeAt(0):t;return e>=97&&e<=122||e>=65&&e<=90}(t)||(0,r.a)(t)}},2(t,e,n){"use strict";function r(t){const e="string"==typeof t?t.charCodeAt(0):t;return e>=48&&e<=57}n.d(e,{a:()=>r})},59114(t,e,n){"use strict";function r(t){const e="string"==typeof t?t.charCodeAt(0):t;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}n.d(e,{S:()=>r})},64616(t,e,n){"use strict";function r(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)}n.d(e,{A:()=>r})},85587(t,e,n){"use strict";n.d(e,{vj:()=>c});var r=function(){function t(){}return t.prototype.expandToken=function(t){for(var e=[],n="",r=0,i=t.length;r<i;++r)n+=t.charAt(r),e.push(n);return e},t}(),i=function(){function t(){}return t.prototype.sanitize=function(t){return t?t.toLocaleLowerCase().trim():""},t}();function s(t,e){e=e||[];for(var n=t=t||{},r=0;r<e.length;r++)if(null==(n=n[e[r]]))return null;return n}var o=function(){function t(t){this._uidFieldName=t,this._tokenToIdfCache={},this._tokenMap={}}var e=t.prototype;return e.indexDocument=function(t,e,n){this._tokenToIdfCache={};var r,i=this._tokenMap;"object"!=typeof i[t]?i[t]=r={$numDocumentOccurrences:0,$totalNumOccurrences:1,$uidMap:{}}:(r=i[t]).$totalNumOccurrences++;var s=r.$uidMap;"object"!=typeof s[e]?(r.$numDocumentOccurrences++,s[e]={$document:n,$numTokenOccurrences:1}):s[e].$numTokenOccurrences++},e.search=function(t,e){for(var n={},r=0,i=t.length;r<i;r++){var s,o=t[r],a=this._tokenMap[o];if(!a)return[];if(0===r)for(var l=0,A=(s=Object.keys(a.$uidMap)).length;l<A;l++)n[c=s[l]]=a.$uidMap[c].$document;else for(l=0,A=(s=Object.keys(n)).length;l<A;l++){var c=s[l];"object"!=typeof a.$uidMap[c]&&delete n[c]}}var h=[];for(var c in n)h.push(n[c]);var u=this._createCalculateTfIdf();return h.sort(function(n,r){return u(t,r,e)-u(t,n,e)})},e._createCalculateIdf=function(){var t=this._tokenMap,e=this._tokenToIdfCache;return function(n,r){if(!e[n]){var i=void 0!==t[n]?t[n].$numDocumentOccurrences:0;e[n]=1+Math.log(r.length/(1+i))}return e[n]}},e._createCalculateTfIdf=function(){var t=this._tokenMap,e=this._uidFieldName,n=this._createCalculateIdf();return function(r,i,o){for(var a=0,l=0,A=r.length;l<A;++l){var c,h=r[l],u=n(h,o);u===1/0&&(u=0),c=e instanceof Array?i&&s(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,l=function(){function t(){}return t.prototype.tokenize=function(t){return t.split(a).filter(function(t){return t})},t}();function A(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}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 r,this._searchIndex=new o(t),this._sanitizer=new i,this._tokenizer=new l,this._documents=[],this._searchableFields=[]}var e,n,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 n=this._indexStrategy,r=this._sanitizer,i=this._searchIndex,o=this._tokenizer,a=this._uidFieldName,l=0,A=t.length;l<A;l++){var c,h=t[l];c=a instanceof Array?s(h,a):h[a];for(var u=0,p=e.length;u<p;u++){var d,f=e[u];if(null!=(d=f instanceof Array?s(h,f):h[f])&&"string"!=typeof d&&d.toString&&(d=d.toString()),"string"==typeof d)for(var g=o.tokenize(r.sanitize(d)),m=0,y=g.length;m<y;m++)for(var v=g[m],O=n.expandToken(v),b=0,x=O.length;b<x;b++){var w=O[b];i.indexDocument(w,c,h)}}}},e=t,(n=[{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}}])&&A(e.prototype,n),t}()},14439(t,e,n){"use strict";function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}n.d(e,{Ay:()=>wt});var i,s,o,a,l,A,c,h,u,p,d,f,g,m,y,v,O,b,x,w,_,S,C,E,B,T,P,k,I,N,Q,F,L,M,D,R,U,$,j,H,V,X,z,G,Y={},W={},Z={};function K(){if(i)return Z;function t(t){return null==t}return i=1,Z.isNothing=t,Z.isObject=function(t){return"object"==typeof t&&null!==t},Z.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},Z.repeat=function(t,e){let n="";for(let r=0;r<e;r+=1)n+=t;return n},Z.isNegativeZero=function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},Z.extend=function(t,e){if(e){const n=Object.keys(e);for(let r=0,i=n.length;r<i;r+=1){const i=n[r];t[i]=e[i]}}return t},Z}function q(){if(o)return s;function t(t,e){let n="";const r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),r+" "+n):r}function e(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}return o=1,e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=function(e){return this.name+": "+t(this,e)},s=e}function J(){if(c)return A;c=1;const t=q(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];return A=function(r,i){if(i=i||{},Object.keys(i).forEach(function(n){if(-1===e.indexOf(n))throw new t('Unknown option "'+n+'" is met in definition of "'+r+'" YAML type.')}),this.options=i,this.tag=r,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(t){return t},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.representName=i.representName||null,this.defaultStyle=i.defaultStyle||null,this.multi=i.multi||!1,this.styleAliases=function(t){const e={};return null!==t&&Object.keys(t).forEach(function(n){t[n].forEach(function(t){e[String(t)]=n})}),e}(i.styleAliases||null),-1===n.indexOf(this.kind))throw new t('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}function tt(){if(u)return h;u=1;const t=q(),e=J();function n(t,e){const n=[];return t[e].forEach(function(t){let e=n.length;n.forEach(function(n,r){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=r)}),n[e]=t}),n}function r(t){return this.extend(t)}return r.prototype.extend=function(i){let s=[],o=[];if(i instanceof e)o.push(i);else if(Array.isArray(i))o=o.concat(i);else{if(!i||!Array.isArray(i.implicit)&&!Array.isArray(i.explicit))throw new t("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.implicit&&(s=s.concat(i.implicit)),i.explicit&&(o=o.concat(i.explicit))}s.forEach(function(n){if(!(n instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&"scalar"!==n.loadKind)throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new t("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),o.forEach(function(n){if(!(n instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const a=Object.create(r.prototype);return a.implicit=(this.implicit||[]).concat(s),a.explicit=(this.explicit||[]).concat(o),a.compiledImplicit=n(a,"implicit"),a.compiledExplicit=n(a,"explicit"),a.compiledTypeMap=function(){const t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function e(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}for(let t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(e);return t}(a.compiledImplicit,a.compiledExplicit),a},h=r}function et(){if(d)return p;d=1;const t=J();return p=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}})}function nt(){if(g)return f;g=1;const t=J();return f=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}})}function rt(){if(y)return m;y=1;const t=J();return m=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})}function it(){if(O)return v;O=1;const t=tt();return v=new t({explicit:[et(),nt(),rt()]})}function st(){if(x)return b;x=1;const t=J();return b=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;const e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})}function ot(){if(_)return w;_=1;const t=J();return w=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;const e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})}function at(){if(C)return S;C=1;const t=K(),e=J();function n(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function r(t){return t>=48&&t<=55}function i(t){return t>=48&&t<=57}function s(t){let e=t,n=1,r=e[0];if("-"!==r&&"+"!==r||("-"===r&&(n=-1),e=e.slice(1),r=e[0]),"0"===e)return 0;if("0"===r){if("b"===e[1])return n*parseInt(e.slice(2),2);if("x"===e[1])return n*parseInt(e.slice(2),16);if("o"===e[1])return n*parseInt(e.slice(2),8)}return n*parseInt(e,10)}return S=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;const e=t.length;let o=0,a=!1;if(!e)return!1;let l=t[o];if("-"!==l&&"+"!==l||(l=t[++o]),"0"===l){if(o+1===e)return!0;if(l=t[++o],"b"===l){for(o++;o<e;o++){if(l=t[o],"0"!==l&&"1"!==l)return!1;a=!0}return a&&isFinite(s(t))}if("x"===l){for(o++;o<e;o++){if(!n(t.charCodeAt(o)))return!1;a=!0}return a&&isFinite(s(t))}if("o"===l){for(o++;o<e;o++){if(!r(t.charCodeAt(o)))return!1;a=!0}return a&&isFinite(s(t))}}for(;o<e;o++){if(!i(t.charCodeAt(o)))return!1;a=!0}return!!a&&isFinite(s(t))},construct:function(t){return s(t)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!t.isNegativeZero(e)},represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function lt(){if(B)return E;B=1;const t=K(),e=J(),n=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),r=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=/^[-+]?[0-9]+e/;return E=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!!n.test(t)&&(!!isFinite(parseFloat(t,10))||r.test(t))},construct:function(t){let e=t.toLowerCase();const n="-"===e[0]?-1:1;return"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:n*parseFloat(e,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||t.isNegativeZero(e))},represent:function(e,n){if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(e))return"-0.0";const r=e.toString(10);return i.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})}function At(){return P?T:(P=1,T=it().extend({implicit:[st(),ot(),at(),lt()]}))}function ct(){return I?k:(I=1,k=At())}function ht(){if(Q)return N;Q=1;const t=J(),e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return N=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==e.exec(t)||null!==n.exec(t))},construct:function(t){let r=0,i=null,s=e.exec(t);if(null===s&&(s=n.exec(t)),null===s)throw new Error("Date resolve error");const o=+s[1],a=+s[2]-1,l=+s[3];if(!s[4])return new Date(Date.UTC(o,a,l));const A=+s[4],c=+s[5],h=+s[6];if(s[7]){for(r=s[7].slice(0,3);r.length<3;)r+="0";r=+r}s[9]&&(i=6e4*(60*+s[10]+ +(s[11]||0)),"-"===s[9]&&(i=-i));const u=new Date(Date.UTC(o,a,l,A,c,h,r));return i&&u.setTime(u.getTime()-i),u},instanceOf:Date,represent:function(t){return t.toISOString()}})}function ut(){if(L)return F;L=1;const t=J();return F=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}})}function pt(){if(D)return M;D=1;const t=J(),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return M=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;let n=0;const r=t.length,i=e;for(let e=0;e<r;e++){const r=i.indexOf(t.charAt(e));if(!(r>64)){if(r<0)return!1;n+=6}}return n%8==0},construct:function(t){const n=t.replace(/[\r\n=]/g,""),r=n.length,i=e;let s=0;const o=[];for(let t=0;t<r;t++)t%4==0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(255&s)),s=s<<6|i.indexOf(n.charAt(t));const a=r%4*6;return 0===a?(o.push(s>>16&255),o.push(s>>8&255),o.push(255&s)):18===a?(o.push(s>>10&255),o.push(s>>2&255)):12===a&&o.push(s>>4&255),new Uint8Array(o)},predicate:function(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){let n="",r=0;const i=t.length,s=e;for(let e=0;e<i;e++)e%3==0&&e&&(n+=s[r>>18&63],n+=s[r>>12&63],n+=s[r>>6&63],n+=s[63&r]),r=(r<<8)+t[e];const o=i%3;return 0===o?(n+=s[r>>18&63],n+=s[r>>12&63],n+=s[r>>6&63],n+=s[63&r]):2===o?(n+=s[r>>10&63],n+=s[r>>4&63],n+=s[r<<2&63],n+=s[64]):1===o&&(n+=s[r>>2&63],n+=s[r<<4&63],n+=s[64],n+=s[64]),n}})}function dt(){if(U)return R;U=1;const t=J(),e=Object.prototype.hasOwnProperty,n=Object.prototype.toString;return R=new t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;const r={},i=t;for(let t=0,s=i.length;t<s;t+=1){const s=i[t];let o,a=!1;if("[object Object]"!==n.call(s))return!1;for(o in s)if(e.call(s,o)){if(a)return!1;a=!0}if(!a)return!1;if(e.call(r,o))return!1;Object.defineProperty(r,o,{value:!0})}return!0},construct:function(t){return null!==t?t:[]}})}function ft(){if(j)return $;j=1;const t=J(),e=Object.prototype.toString;return $=new t("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return!0;const n=t,r=new Array(n.length);for(let t=0,i=n.length;t<i;t+=1){const i=n[t];if("[object Object]"!==e.call(i))return!1;const s=Object.keys(i);if(1!==s.length)return!1;r[t]=[s[0],i[s[0]]]}return!0},construct:function(t){if(null===t)return[];const e=t,n=new Array(e.length);for(let t=0,r=e.length;t<r;t+=1){const r=e[t],i=Object.keys(r);n[t]=[i[0],r[i[0]]]}return n}})}function gt(){if(V)return H;V=1;const t=J(),e=Object.prototype.hasOwnProperty;return H=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return!0;const n=t;for(const t in n)if(e.call(n,t)&&null!==n[t])return!1;return!0},construct:function(t){return null!==t?t:{}}})}function mt(){return z?X:(z=1,X=ct().extend({implicit:[ht(),ut()],explicit:[pt(),dt(),ft(),gt()]}))}function yt(){if(G)return W;G=1;const t=K(),e=q(),n=function(){if(l)return a;l=1;const t=K();function e(t,e,n,r,i){let s="",o="";const a=Math.floor(i/2)-1;return r-e>a&&(s=" ... ",e=r-a+s.length),n-r>a&&(o=" ...",n=r+a-o.length),{str:s+t.slice(e,n).replace(/\t/g,"→")+o,pos:r-e+s.length}}function n(e,n){return t.repeat(" ",n-e.length)+e}return a=function(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),"number"!=typeof i.indent&&(i.indent=1),"number"!=typeof i.linesBefore&&(i.linesBefore=3),"number"!=typeof i.linesAfter&&(i.linesAfter=2);const s=/\r?\n|\r|\0/g,o=[0],a=[];let l,A=-1;for(;l=s.exec(r.buffer);)a.push(l.index),o.push(l.index+l[0].length),r.position<=l.index&&A<0&&(A=o.length-2);A<0&&(A=o.length-1);let c="";const h=Math.min(r.line+i.linesAfter,a.length).toString().length,u=i.maxLength-(i.indent+h+3);for(let s=1;s<=i.linesBefore&&!(A-s<0);s++){const l=e(r.buffer,o[A-s],a[A-s],r.position-(o[A]-o[A-s]),u);c=t.repeat(" ",i.indent)+n((r.line-s+1).toString(),h)+" | "+l.str+"\n"+c}const p=e(r.buffer,o[A],a[A],r.position,u);c+=t.repeat(" ",i.indent)+n((r.line+1).toString(),h)+" | "+p.str+"\n",c+=t.repeat("-",i.indent+h+3+p.pos)+"^\n";for(let s=1;s<=i.linesAfter&&!(A+s>=a.length);s++){const l=e(r.buffer,o[A+s],a[A+s],r.position-(o[A]-o[A+s]),u);c+=t.repeat(" ",i.indent)+n((r.line+s+1).toString(),h)+" | "+l.str+"\n"}return c.replace(/\n$/,"")}}(),r=mt(),i=Object.prototype.hasOwnProperty,s=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o=/[\x85\u2028\u2029]/,A=/[,\[\]{}]/,c=/^(?:!|!!|![0-9A-Za-z-]+!)$/,h=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function u(t){return Object.prototype.toString.call(t)}function p(t){return 10===t||13===t}function d(t){return 9===t||32===t}function f(t){return 9===t||32===t||10===t||13===t}function g(t){return 44===t||91===t||93===t||123===t||125===t}function m(t){if(t>=48&&t<=57)return t-48;const e=32|t;return e>=97&&e<=102?e-97+10:-1}function y(t){return 120===t?2:117===t?4:85===t?8:0}function v(t){return t>=48&&t<=57?t-48:-1}function O(t){switch(t){case 48:return"\0";case 97:return"";case 98:return"\b";case 116:case 9:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function b(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}function x(t,e,n){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:n}):t[e]=n}const w=new Array(256),_=new Array(256);for(let t=0;t<256;t++)w[t]=O(t)?1:0,_[t]=O(t);function S(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||r,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:100,this.maxTotalMergeKeys="number"==typeof e.maxTotalMergeKeys?e.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function C(t,r){const i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=n(i),new e(r,i)}function E(t,e){throw C(t,e)}function B(t,e){t.onWarning&&t.onWarning.call(null,C(t,e))}function T(t,e,n){const r=t.anchorMapTransactions;if(0!==r.length){const n=r[r.length-1];i.call(n,e)||(n[e]={existed:i.call(t.anchorMap,e),value:t.anchorMap[e]})}t.anchorMap[e]=n}function P(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,tag:t.tag,anchor:t.anchor,kind:t.kind,result:t.result}}function k(t,e){t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.tag=e.tag,t.anchor=e.anchor,t.kind=e.kind,t.result=e.result}const I={YAML:function(t,e,n){null!==t.version&&E(t,"duplication of %YAML directive"),1!==n.length&&E(t,"YAML directive accepts exactly one argument");const r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);null===r&&E(t,"ill-formed argument of the YAML directive");const i=parseInt(r[1],10),s=parseInt(r[2],10);1!==i&&E(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,1!==s&&2!==s&&B(t,"unsupported YAML version of the document")},TAG:function(t,e,n){let r;2!==n.length&&E(t,"TAG directive accepts exactly two arguments");const s=n[0];r=n[1],c.test(s)||E(t,"ill-formed tag handle (first argument) of the TAG directive"),i.call(t.tagMap,s)&&E(t,'there is a previously declared suffix for "'+s+'" tag handle'),h.test(r)||E(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(e){E(t,"tag prefix is malformed: "+r)}t.tagMap[s]=r}};function N(t,e,n,r){if(e<n){const i=t.input.slice(e,n);if(r)for(let e=0,n=i.length;e<n;e+=1){const n=i.charCodeAt(e);9===n||n>=32&&n<=1114111||E(t,"expected valid JSON character")}else s.test(i)&&E(t,"the stream contains non-printable characters");t.result+=i}}function Q(t){t.totalMergeKeys++,-1!==t.maxTotalMergeKeys&&t.totalMergeKeys>t.maxTotalMergeKeys&&E(t,"merge keys exceeded maxTotalMergeKeys ("+t.maxTotalMergeKeys+")")}function F(e,n,r,s){t.isObject(r)||E(e,"cannot merge mappings; the provided source object is unacceptable"),Q(e);const o=Object.keys(r);for(let t=0,a=o.length;t<a;t+=1){const a=o[t];Q(e),i.call(n,a)||(x(n,a,r[a]),s[a]=!0)}}function L(t,e,n,r,s,o,a,l,A){if(Array.isArray(s))for(let e=0,n=(s=Array.prototype.slice.call(s)).length;e<n;e+=1)Array.isArray(s[e])&&E(t,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===u(s[e])&&(s[e]="[object Object]");if("object"==typeof s&&"[object Object]"===u(s)&&(s="[object Object]"),s=String(s),null===e&&(e={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o)){o.length>100&&E(t,"abnormal merge sequence size");for(let r=0,i=o.length;r<i;r+=1)F(t,e,o[r],n)}else F(t,e,o,n);else t.json||i.call(n,s)||!i.call(e,s)||(t.line=a||t.line,t.lineStart=l||t.lineStart,t.position=A||t.position,E(t,"duplicated mapping key")),x(e,s,o),delete n[s];return e}function M(t){const e=t.input.charCodeAt(t.position);10===e?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):E(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function D(t,e,n){let r=0,i=t.input.charCodeAt(t.position);for(;0!==i;){for(;d(i);)9===i&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&35===i)do{i=t.input.charCodeAt(++t.position)}while(10!==i&&13!==i&&0!==i);if(!p(i))break;for(M(t),i=t.input.charCodeAt(t.position),r++,t.lineIndent=0;32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position)}return-1!==n&&0!==r&&t.lineIndent<n&&B(t,"deficient indentation"),r}function R(t){let e=t.position,n=t.input.charCodeAt(e);return!(45!==n&&46!==n||n!==t.input.charCodeAt(e+1)||n!==t.input.charCodeAt(e+2)||(e+=3,n=t.input.charCodeAt(e),0!==n&&!f(n)))}function U(e,n){1===n?e.result+=" ":n>1&&(e.result+=t.repeat("\n",n-1))}function $(t,e){const n=t.tag,r=t.anchor,i=[];let s=!1;if(-1!==t.firstTabInLine)return!1;null!==t.anchor&&T(t,t.anchor,i);let o=t.input.charCodeAt(t.position);for(;0!==o&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,E(t,"tab characters must not be used in indentation")),45===o)&&f(t.input.charCodeAt(t.position+1));){if(s=!0,t.position++,D(t,!0,-1)&&t.lineIndent<=e){i.push(null),o=t.input.charCodeAt(t.position);continue}const n=t.line;if(X(t,e,3,!1,!0),i.push(t.result),D(t,!0,-1),o=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&0!==o)E(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return!!s&&(t.tag=n,t.anchor=r,t.kind="sequence",t.result=i,!0)}function j(t,e,n){let r,i,s,o;const a=t.tag,l=t.anchor,A={},c=Object.create(null);let h=null,u=null,p=null,g=!1,m=!1;if(-1!==t.firstTabInLine)return!1;null!==t.anchor&&T(t,t.anchor,A);let y=t.input.charCodeAt(t.position);for(;0!==y;){g||-1===t.firstTabInLine||(t.position=t.firstTabInLine,E(t,"tab characters must not be used in indentation"));const v=t.input.charCodeAt(t.position+1),O=t.line;if(63!==y&&58!==y||!f(v)){if(i=t.line,s=t.lineStart,o=t.position,!X(t,n,2,!1,!0))break;if(t.line===O){for(y=t.input.charCodeAt(t.position);d(y);)y=t.input.charCodeAt(++t.position);if(58===y)y=t.input.charCodeAt(++t.position),f(y)||E(t,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(L(t,A,c,h,u,null,i,s,o),h=u=p=null),m=!0,g=!1,r=!1,h=t.tag,u=t.result;else{if(!m)return t.tag=a,t.anchor=l,!0;E(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!m)return t.tag=a,t.anchor=l,!0;E(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===y?(g&&(L(t,A,c,h,u,null,i,s,o),h=u=p=null),m=!0,g=!0,r=!0):g?(g=!1,r=!0):E(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,y=v;if((t.line===O||t.lineIndent>e)&&(g&&(i=t.line,s=t.lineStart,o=t.position),X(t,e,4,!0,r)&&(g?u=t.result:p=t.result),g||(L(t,A,c,h,u,p,i,s,o),h=u=p=null),D(t,!0,-1),y=t.input.charCodeAt(t.position)),(t.line===O||t.lineIndent>e)&&0!==y)E(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return g&&L(t,A,c,h,u,null,i,s,o),m&&(t.tag=a,t.anchor=l,t.kind="mapping",t.result=A),m}function H(t){let e,n,r=!1,s=!1,o=t.input.charCodeAt(t.position);if(33!==o)return!1;null!==t.tag&&E(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),60===o?(r=!0,o=t.input.charCodeAt(++t.position)):33===o?(s=!0,e="!!",o=t.input.charCodeAt(++t.position)):e="!";let a=t.position;if(r){do{o=t.input.charCodeAt(++t.position)}while(0!==o&&62!==o);t.position<t.length?(n=t.input.slice(a,t.position),o=t.input.charCodeAt(++t.position)):E(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!f(o);)33===o&&(s?E(t,"tag suffix cannot contain exclamation marks"):(e=t.input.slice(a-1,t.position+1),c.test(e)||E(t,"named tag handle cannot contain such characters"),s=!0,a=t.position+1)),o=t.input.charCodeAt(++t.position);n=t.input.slice(a,t.position),A.test(n)&&E(t,"tag suffix cannot contain flow indicator characters")}n&&!h.test(n)&&E(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(e){E(t,"tag name is malformed: "+n)}return r?t.tag=n:i.call(t.tagMap,e)?t.tag=t.tagMap[e]+n:"!"===e?t.tag="!"+n:"!!"===e?t.tag="tag:yaml.org,2002:"+n:E(t,'undeclared tag handle "'+e+'"'),!0}function V(t){let e=t.input.charCodeAt(t.position);if(38!==e)return!1;null!==t.anchor&&E(t,"duplication of an anchor property"),e=t.input.charCodeAt(++t.position);const n=t.position;for(;0!==e&&!f(e)&&!g(e);)e=t.input.charCodeAt(++t.position);return t.position===n&&E(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(n,t.position),!0}function X(e,n,r,s,o){let a,l,A,c,h,u=1,O=!1,x=!1,S=null;e.depth>=e.maxDepth&&E(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;const C=a=l=4===r||3===r;if(s&&D(e,!0,-1)&&(O=!0,e.lineIndent>n?u=1:e.lineIndent===n?u=0:e.lineIndent<n&&(u=-1)),1===u)for(;;){const t=e.input.charCodeAt(e.position),r=P(e);if(O&&(33===t&&null!==e.tag||38===t&&null!==e.anchor))break;if(!H(e)&&!V(e))break;null===S&&(S=r),D(e,!0,-1)?(O=!0,l=C,e.lineIndent>n?u=1:e.lineIndent===n?u=0:e.lineIndent<n&&(u=-1)):l=!1}if(l&&(l=O||o),1===u||4===r)if(c=1===r||2===r?n:n+1,h=e.position-e.lineStart,1===u)if(l&&($(e,h)||j(e,h,c))||function(t,e){let n,r,i,s=!0;const o=t.tag;let a;const l=t.anchor;let A,c,h,u;const p=Object.create(null);let d,g,m,y=t.input.charCodeAt(t.position);if(91===y)A=93,u=!1,a=[];else{if(123!==y)return!1;A=125,u=!0,a={}}for(null!==t.anchor&&T(t,t.anchor,a),y=t.input.charCodeAt(++t.position);0!==y;){if(D(t,!0,e),y=t.input.charCodeAt(t.position),y===A)return t.position++,t.tag=o,t.anchor=l,t.kind=u?"mapping":"sequence",t.result=a,!0;s?44===y&&E(t,"expected the node content, but found ','"):E(t,"missed comma between flow collection entries"),g=d=m=null,c=h=!1,63===y&&f(t.input.charCodeAt(t.position+1))&&(c=h=!0,t.position++,D(t,!0,e)),n=t.line,r=t.lineStart,i=t.position,X(t,e,1,!1,!0),g=t.tag,d=t.result,D(t,!0,e),y=t.input.charCodeAt(t.position),!h&&t.line!==n||58!==y||(c=!0,y=t.input.charCodeAt(++t.position),D(t,!0,e),X(t,e,1,!1,!0),m=t.result),u?L(t,a,p,g,d,m,n,r,i):c?a.push(L(t,null,p,g,d,m,n,r,i)):a.push(d),D(t,!0,e),y=t.input.charCodeAt(t.position),44===y?(s=!0,y=t.input.charCodeAt(++t.position)):s=!1}E(t,"unexpected end of the stream within a flow collection")}(e,c))x=!0;else{const n=e.input.charCodeAt(e.position);null!==S&&C&&!l&&124!==n&&62!==n&&function(t,e,n,r){const s=P(t);return function(t){t.anchorMapTransactions.push(Object.create(null))}(t),k(t,e),t.tag=null,t.anchor=null,t.kind=null,t.result=null,j(t,n,r)&&"mapping"===t.kind?(function(t){const e=t.anchorMapTransactions.pop(),n=t.anchorMapTransactions;if(0===n.length)return;const r=n[n.length-1],s=Object.keys(e);for(let t=0,n=s.length;t<n;t+=1){const n=s[t];i.call(r,n)||(r[n]=e[n])}}(t),!0):(function(t){const e=t.anchorMapTransactions.pop(),n=Object.keys(e);for(let r=n.length-1;r>=0;r-=1){const i=e[n[r]];i.existed?t.anchorMap[n[r]]=i.value:delete t.anchorMap[n[r]]}}(t),k(t,s),!1)}(e,S,S.position-S.lineStart,c)||a&&function(e,n){let r,i,s=1,o=!1,a=!1,l=n,A=0,c=!1,h=e.input.charCodeAt(e.position);if(124===h)r=!1;else{if(62!==h)return!1;r=!0}for(e.kind="scalar",e.result="";0!==h;)if(h=e.input.charCodeAt(++e.position),43===h||45===h)1===s?s=43===h?3:2:E(e,"repeat of a chomping mode identifier");else{if(!((i=v(h))>=0))break;0===i?E(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?E(e,"repeat of an indentation width identifier"):(l=n+i-1,a=!0)}if(d(h)){do{h=e.input.charCodeAt(++e.position)}while(d(h));if(35===h)do{h=e.input.charCodeAt(++e.position)}while(!p(h)&&0!==h)}for(;0!==h;){for(M(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<l)&&32===h;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>l&&(l=e.lineIndent),p(h)){A++;continue}if(a||0!==l||E(e,"missing indentation for block scalar"),e.lineIndent<l){3===s?e.result+=t.repeat("\n",o?1+A:A):1===s&&o&&(e.result+="\n");break}r?d(h)?(c=!0,e.result+=t.repeat("\n",o?1+A:A)):c?(c=!1,e.result+=t.repeat("\n",A+1)):0===A?o&&(e.result+=" "):e.result+=t.repeat("\n",A):e.result+=t.repeat("\n",o?1+A:A),o=!0,a=!0,A=0;const n=e.position;for(;!p(h)&&0!==h;)h=e.input.charCodeAt(++e.position);N(e,n,e.position,!1)}return!0}(e,c)||function(t,e){let n,r,i=t.input.charCodeAt(t.position);if(39!==i)return!1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;0!==(i=t.input.charCodeAt(t.position));)if(39===i){if(N(t,n,t.position,!0),i=t.input.charCodeAt(++t.position),39!==i)return!0;n=t.position,t.position++,r=t.position}else p(i)?(N(t,n,r,!0),U(t,D(t,!1,e)),n=r=t.position):t.position===t.lineStart&&R(t)?E(t,"unexpected end of the document within a single quoted scalar"):(t.position++,d(i)||(r=t.position));E(t,"unexpected end of the stream within a single quoted scalar")}(e,c)||function(t,e){let n,r,i,s=t.input.charCodeAt(t.position);if(34!==s)return!1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return N(t,n,t.position,!0),t.position++,!0;if(92===s){if(N(t,n,t.position,!0),s=t.input.charCodeAt(++t.position),p(s))D(t,!1,e);else if(s<256&&w[s])t.result+=_[s],t.position++;else if((i=y(s))>0){let e=i,n=0;for(;e>0;e--)s=t.input.charCodeAt(++t.position),(i=m(s))>=0?n=(n<<4)+i:E(t,"expected hexadecimal character");t.result+=b(n),t.position++}else E(t,"unknown escape sequence");n=r=t.position}else p(s)?(N(t,n,r,!0),U(t,D(t,!1,e)),n=r=t.position):t.position===t.lineStart&&R(t)?E(t,"unexpected end of the document within a double quoted scalar"):(t.position++,d(s)||(r=t.position))}E(t,"unexpected end of the stream within a double quoted scalar")}(e,c)?x=!0:function(t){let e=t.input.charCodeAt(t.position);if(42!==e)return!1;e=t.input.charCodeAt(++t.position);const n=t.position;for(;0!==e&&!f(e)&&!g(e);)e=t.input.charCodeAt(++t.position);t.position===n&&E(t,"name of an alias node must contain at least one character");const r=t.input.slice(n,t.position);return i.call(t.anchorMap,r)||E(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],D(t,!0,-1),!0}(e)?(x=!0,null===e.tag&&null===e.anchor||E(e,"alias node should not have any properties")):function(t,e,n){let r,i,s,o,a,l;const A=t.kind,c=t.result;let h=t.input.charCodeAt(t.position);if(f(h)||g(h)||35===h||38===h||42===h||33===h||124===h||62===h||39===h||34===h||37===h||64===h||96===h)return!1;if(63===h||45===h){const e=t.input.charCodeAt(t.position+1);if(f(e)||n&&g(e))return!1}for(t.kind="scalar",t.result="",r=i=t.position,s=!1;0!==h;){if(58===h){const e=t.input.charCodeAt(t.position+1);if(f(e)||n&&g(e))break}else if(35===h){if(f(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&R(t)||n&&g(h))break;if(p(h)){if(o=t.line,a=t.lineStart,l=t.lineIndent,D(t,!1,-1),t.lineIndent>=e){s=!0,h=t.input.charCodeAt(t.position);continue}t.position=i,t.line=o,t.lineStart=a,t.lineIndent=l;break}}s&&(N(t,r,i,!1),U(t,t.line-o),r=i=t.position,s=!1),d(h)||(i=t.position+1),h=t.input.charCodeAt(++t.position)}return N(t,r,i,!1),!!t.result||(t.kind=A,t.result=c,!1)}(e,c,1===r)&&(x=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&T(e,e.anchor,e.result)}else 0===u&&(x=l&&$(e,h));if(null===e.tag)null!==e.anchor&&T(e,e.anchor,e.result);else if("?"===e.tag){null!==e.result&&"scalar"!==e.kind&&E(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let t=0,n=e.implicitTypes.length;t<n;t+=1)if(A=e.implicitTypes[t],A.resolve(e.result)){e.result=A.construct(e.result),e.tag=A.tag,null!==e.anchor&&T(e,e.anchor,e.result);break}}else if("!"!==e.tag){if(i.call(e.typeMap[e.kind||"fallback"],e.tag))A=e.typeMap[e.kind||"fallback"][e.tag];else{A=null;const t=e.typeMap.multi[e.kind||"fallback"];for(let n=0,r=t.length;n<r;n+=1)if(e.tag.slice(0,t[n].tag.length)===t[n].tag){A=t[n];break}}A||E(e,"unknown tag !<"+e.tag+">"),null!==e.result&&A.kind!==e.kind&&E(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+A.kind+'", not "'+e.kind+'"'),A.resolve(e.result,e.tag)?(e.result=A.construct(e.result,e.tag),null!==e.anchor&&T(e,e.anchor,e.result)):E(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),e.depth-=1,null!==e.tag||null!==e.anchor||x}function z(t){const e=t.position;let n,r=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(n=t.input.charCodeAt(t.position))&&(D(t,!0,-1),n=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==n));){r=!0,n=t.input.charCodeAt(++t.position);let e=t.position;for(;0!==n&&!f(n);)n=t.input.charCodeAt(++t.position);const s=t.input.slice(e,t.position),o=[];for(s.length<1&&E(t,"directive name must not be less than one character in length");0!==n;){for(;d(n);)n=t.input.charCodeAt(++t.position);if(35===n){do{n=t.input.charCodeAt(++t.position)}while(0!==n&&!p(n));break}if(p(n))break;for(e=t.position;0!==n&&!f(n);)n=t.input.charCodeAt(++t.position);o.push(t.input.slice(e,t.position))}0!==n&&M(t),i.call(I,s)?I[s](t,s,o):B(t,'unknown document directive "'+s+'"')}D(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,D(t,!0,-1)):r&&E(t,"directives end mark is expected"),X(t,t.lineIndent-1,4,!1,!0),D(t,!0,-1),t.checkLineBreaks&&o.test(t.input.slice(e,t.position))&&B(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&R(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,D(t,!0,-1)):t.position<t.length-1&&E(t,"end of the stream or a document separator is expected")}function Y(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));const n=new S(t,e),r=t.indexOf("\0");for(-1!==r&&(n.position=r,E(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)z(n);return n.documents}return W.loadAll=function(t,e,n){null!==e&&"object"==typeof e&&void 0===n&&(n=e,e=null);const r=Y(t,n);if("function"!=typeof e)return r;for(let t=0,n=r.length;t<n;t+=1)e(r[t])},W.load=function(t,n){const r=Y(t,n);if(0!==r.length){if(1===r.length)return r[0];throw new e("expected a single document in the stream, but found more")}},W}var vt,Ot,bt={};function xt(){if(vt)return bt;vt=1;const t=K(),e=q(),n=mt(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,s=65279,o={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},a=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],l=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function A(n){let r,i;const s=n.toString(16).toUpperCase();if(n<=255)r="x",i=2;else if(n<=65535)r="u",i=4;else{if(!(n<=4294967295))throw new e("code point within a string may not be greater than 0xFFFFFFFF");r="U",i=8}return"\\"+r+t.repeat("0",i-s.length)+s}function c(e){this.schema=e.schema||n,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=t.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(t,e){if(null===e)return{};const n={},r=Object.keys(e);for(let s=0,o=r.length;s<o;s+=1){let o=r[s],a=String(e[o]);"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2));const l=t.compiledTypeMap.fallback[o];l&&i.call(l.styleAliases,a)&&(a=l.styleAliases[a]),n[o]=a}return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function h(e,n){const r=t.repeat(" ",n);let i=0,s="";const o=e.length;for(;i<o;){let t;const n=e.indexOf("\n",i);-1===n?(t=e.slice(i),i=o):(t=e.slice(i,n+1),i=n+1),t.length&&"\n"!==t&&(s+=r),s+=t}return s}function u(e,n){return"\n"+t.repeat(" ",e.indent*n)}function p(t){return 32===t||9===t}function d(t){return t>=32&&t<=126||t>=161&&t<=55295&&8232!==t&&8233!==t||t>=57344&&t<=65533&&t!==s||t>=65536&&t<=1114111}function f(t){return d(t)&&t!==s&&13!==t&&10!==t}function g(t,e,n){const r=f(t),i=r&&!p(t);return(n?r:r&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!i)||f(e)&&!p(e)&&35===t||58===e&&i}function m(t,e){const n=t.charCodeAt(e);let r;return n>=55296&&n<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1),r>=56320&&r<=57343)?1024*(n-55296)+r-56320+65536:n}function y(t){return/^\n* /.test(t)}function v(t,n,r,i,c){t.dump=function(){if(0===n.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==a.indexOf(n)||l.test(n)))return 2===t.quotingType?'"'+n+'"':"'"+n+"'";const u=t.indent*Math.max(1,r),f=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-u),v=i||t.flowLevel>-1&&r>=t.flowLevel;switch(function(t,e,n,r,i,o,a,l){let A,c=0,h=null,u=!1,f=!1;const v=-1!==r;let O=-1,b=d(x=m(t,0))&&x!==s&&!p(x)&&45!==x&&63!==x&&58!==x&&44!==x&&91!==x&&93!==x&&123!==x&&125!==x&&35!==x&&38!==x&&42!==x&&33!==x&&124!==x&&61!==x&&62!==x&&39!==x&&34!==x&&37!==x&&64!==x&&96!==x&&function(t){return!p(t)&&58!==t}(m(t,t.length-1));var x;if(e||a)for(A=0;A<t.length;c>=65536?A+=2:A++){if(c=m(t,A),!d(c))return 5;b=b&&g(c,h,l),h=c}else{for(A=0;A<t.length;c>=65536?A+=2:A++){if(c=m(t,A),10===c)u=!0,v&&(f=f||A-O-1>r&&" "!==t[O+1],O=A);else if(!d(c))return 5;b=b&&g(c,h,l),h=c}f=f||v&&A-O-1>r&&" "!==t[O+1]}return u||f?n>9&&y(t)?5:a?2===o?5:2:f?4:3:!b||a||i(t)?2===o?5:2:1}(n,v,t.indent,f,function(e){return function(t,e){for(let n=0,r=t.implicitTypes.length;n<r;n+=1)if(t.implicitTypes[n].resolve(e))return!0;return!1}(t,e)},t.quotingType,t.forceQuotes&&!i,c)){case 1:return n;case 2:return"'"+n.replace(/'/g,"''")+"'";case 3:return"|"+O(n,t.indent)+b(h(n,u));case 4:return">"+O(n,t.indent)+b(h(function(t,e){const n=/(\n+)([^\n]*)/g;let r,i,s=function(){let r=t.indexOf("\n");return r=-1!==r?r:t.length,n.lastIndex=r,x(t.slice(0,r),e)}(),o="\n"===t[0]||" "===t[0];for(;i=n.exec(t);){const t=i[1],n=i[2];r=" "===n[0],s+=t+(o||r||""===n?"":"\n")+x(n,e),o=r}return s}(n,f),u));case 5:return'"'+function(t){let e="",n=0;for(let r=0;r<t.length;n>=65536?r+=2:r++){n=m(t,r);const i=o[n];!i&&d(n)?(e+=t[r],n>=65536&&(e+=t[r+1])):e+=i||A(n)}return e}(n)+'"';default:throw new e("impossible error: invalid scalar style")}}()}function O(t,e){const n=y(t)?String(e):"",r="\n"===t[t.length-1];return n+(!r||"\n"!==t[t.length-2]&&"\n"!==t?r?"":"-":"+")+"\n"}function b(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function x(t,e){if(""===t||" "===t[0])return t;const n=/ [^ ]/g;let r,i,s=0,o=0,a=0,l="";for(;r=n.exec(t);)a=r.index,a-s>e&&(i=o>s?o:a,l+="\n"+t.slice(s,i),s=i+1),o=a;return l+="\n",t.length-s>e&&o>s?l+=t.slice(s,o)+"\n"+t.slice(o+1):l+=t.slice(s),l.slice(1)}function w(t,e,n,r){let i="";const s=t.tag;for(let s=0,o=n.length;s<o;s+=1){let o=n[s];t.replacer&&(o=t.replacer.call(n,String(s),o)),(S(t,e+1,o,!0,!0,!1,!0)||void 0===o&&S(t,e+1,null,!0,!0,!1,!0))&&(r&&""===i||(i+=u(t,e)),t.dump&&10===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump)}t.tag=s,t.dump=i||"[]"}function _(t,n,s){const o=s?t.explicitTypes:t.implicitTypes;for(let a=0,l=o.length;a<l;a+=1){const l=o[a];if((l.instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof n&&n instanceof l.instanceOf)&&(!l.predicate||l.predicate(n))){if(s?l.multi&&l.representName?t.tag=l.representName(n):t.tag=l.tag:t.tag="?",l.represent){const s=t.styleMap[l.tag]||l.defaultStyle;let o;if("[object Function]"===r.call(l.represent))o=l.represent(n,s);else{if(!i.call(l.represent,s))throw new e("!<"+l.tag+'> tag resolver accepts not "'+s+'" style');o=l.represent[s](n,s)}t.dump=o}return!0}}return!1}function S(t,n,i,s,o,a,l){t.tag=null,t.dump=i,_(t,i,!1)||_(t,i,!0);const A=r.call(t.dump),c=s;s&&(s=t.flowLevel<0||t.flowLevel>n);const h="[object Object]"===A||"[object Array]"===A;let p,d;if(h&&(p=t.duplicates.indexOf(i),d=-1!==p),(null!==t.tag&&"?"!==t.tag||d||2!==t.indent&&n>0)&&(o=!1),d&&t.usedDuplicates[p])t.dump="*ref_"+p;else{if(h&&d&&!t.usedDuplicates[p]&&(t.usedDuplicates[p]=!0),"[object Object]"===A)s&&0!==Object.keys(t.dump).length?(function(t,n,r,i){let s="";const o=t.tag,a=Object.keys(r);if(!0===t.sortKeys)a.sort();else if("function"==typeof t.sortKeys)a.sort(t.sortKeys);else if(t.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let e=0,o=a.length;e<o;e+=1){let o="";i&&""===s||(o+=u(t,n));const l=a[e];let A=r[l];if(t.replacer&&(A=t.replacer.call(r,l,A)),!S(t,n+1,l,!0,!0,!0))continue;const c=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024;c&&(t.dump&&10===t.dump.charCodeAt(0)?o+="?":o+="? "),o+=t.dump,c&&(o+=u(t,n)),S(t,n+1,A,!0,c)&&(t.dump&&10===t.dump.charCodeAt(0)?o+=":":o+=": ",o+=t.dump,s+=o)}t.tag=o,t.dump=s||"{}"}(t,n,t.dump,o),d&&(t.dump="&ref_"+p+t.dump)):(function(t,e,n){let r="";const i=t.tag,s=Object.keys(n);for(let i=0,o=s.length;i<o;i+=1){let o="";""!==r&&(o+=", "),t.condenseFlow&&(o+='"');const a=s[i];let l=n[a];t.replacer&&(l=t.replacer.call(n,a,l)),S(t,e,a,!1,!1)&&(t.dump.length>1024&&(o+="? "),o+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),S(t,e,l,!1,!1)&&(o+=t.dump,r+=o))}t.tag=i,t.dump="{"+r+"}"}(t,n,t.dump),d&&(t.dump="&ref_"+p+" "+t.dump));else if("[object Array]"===A)s&&0!==t.dump.length?(t.noArrayIndent&&!l&&n>0?w(t,n-1,t.dump,o):w(t,n,t.dump,o),d&&(t.dump="&ref_"+p+t.dump)):(function(t,e,n){let r="";const i=t.tag;for(let i=0,s=n.length;i<s;i+=1){let s=n[i];t.replacer&&(s=t.replacer.call(n,String(i),s)),(S(t,e,s,!1,!1)||void 0===s&&S(t,e,null,!1,!1))&&(""!==r&&(r+=","+(t.condenseFlow?"":" ")),r+=t.dump)}t.tag=i,t.dump="["+r+"]"}(t,n,t.dump),d&&(t.dump="&ref_"+p+" "+t.dump));else{if("[object String]"!==A){if("[object Undefined]"===A)return!1;if(t.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+A)}"?"!==t.tag&&v(t,t.dump,n,a,c)}if(null!==t.tag&&"?"!==t.tag){let e=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21");e="!"===t.tag[0]?"!"+e:"tag:yaml.org,2002:"===e.slice(0,18)?"!!"+e.slice(18):"!<"+e+">",t.dump=e+" "+t.dump}}return!0}function C(t,e){const n=[],r=[];E(t,n,r);const i=r.length;for(let t=0;t<i;t+=1)e.duplicates.push(n[r[t]]);e.usedDuplicates=new Array(i)}function E(t,e,n){if(null!==t&&"object"==typeof t){const r=e.indexOf(t);if(-1!==r)-1===n.indexOf(r)&&n.push(r);else if(e.push(t),Array.isArray(t))for(let r=0,i=t.length;r<i;r+=1)E(t[r],e,n);else{const r=Object.keys(t);for(let i=0,s=r.length;i<s;i+=1)E(t[r[i]],e,n)}}}return bt.dump=function(t,e){const n=new c(e=e||{});n.noRefs||C(t,n);let r=t;return n.replacer&&(r=n.replacer.call({"":r},"",r)),S(n,0,r,!0,!0)?n.dump+"\n":""},bt}const wt=r(function(){if(Ot)return Y;Ot=1;const t=yt(),e=xt();function n(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}return Y.Type=J(),Y.Schema=tt(),Y.FAILSAFE_SCHEMA=it(),Y.JSON_SCHEMA=At(),Y.CORE_SCHEMA=ct(),Y.DEFAULT_SCHEMA=mt(),Y.load=t.load,Y.loadAll=t.loadAll,Y.dump=e.dump,Y.YAMLException=q(),Y.types={binary:pt(),float:lt(),map:rt(),null:st(),pairs:ft(),set:gt(),timestamp:ht(),bool:ot(),int:at(),merge:ut(),omap:dt(),seq:nt(),str:et()},Y.safeLoad=n("safeLoad","load"),Y.safeLoadAll=n("safeLoadAll","loadAll"),Y.safeDump=n("safeDump","dump"),Y}()),{Type:_t,Schema:St,FAILSAFE_SCHEMA:Ct,JSON_SCHEMA:Et,CORE_SCHEMA:Bt,DEFAULT_SCHEMA:Tt,load:Pt,loadAll:kt,dump:It,YAMLException:Nt,types:Qt,safeLoad:Ft,safeLoadAll:Lt,safeDump:Mt}=wt},98032(t,e,n){"use strict";n.d(e,{A:()=>u});var r=n(85409);let i,s,o,a,l=!0;void 0!==r&&(({FORCE_COLOR:i,NODE_DISABLE_COLORS:s,NO_COLOR:o,TERM:a}={NODE_ENV:"production",REACT_APP_LEARN_THUMBNAIL_UPLOAD:"https://vbmmdf81nl.execute-api.eu-west-2.amazonaws.com/live/learnthumbnailupload",REACT_APP_COGNITO_DOMAIN:"rio.auth.eu-west-2.amazoncognito.com",REACT_APP_RESOLVE_EXTERNAL_USER_URL:"https://zp73c6vc5l.execute-api.eu-west-2.amazonaws.com/current/resolve-external-user",REACT_APP_IDENTITY_POOL_ID:"eu-west-2:2fee832d-d0ba-420c-a056-0ed865cde419",REACT_APP_PROFILE_BUCKET:"https://platform-profilepictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_BANNER_CONTENT:"/VIDEO/LearnBanner.mp4",REACT_APP_AG_GRID_LICENSE_KEY:"Using_this_{AG_Grid}_Enterprise_key_{AG-063287}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{RIO_ESG_LTD}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{30_September_2025}____[v3]_[01]_MTc1OTE4NjgwMDAwMA==8e1b4570338f7c27ca6155479e1e2c14",REACT_APP_DS_URL:"https://rio.ai",REACT_APP_LOCATION_PICTURE_BUCKET:"https://platform-location-pictures-live.s3.eu-west-2.amazonaws.com",REACT_APP_GOOGLE_ANALYTIC_KEY:"UA-74511216-3",REACT_APP_AG_CHARTS_LICENSE_KEY:"Using_this_{AG_Charts}_Enterprise_key_{AG-100671}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Rio_AI_Ltd}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{Rio}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{Rio}_need_to_be_licensed___{Rio}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Charts}_Enterprise_versions_released_before_{28_March_2027}____[v3]_[02]_MTgwNjE5MjAwMDAwMA==388e7d5fd16c7af6f350e7707024b637",REACT_APP_IMPACT_LOCATIONS_MAP_ID:"b3c1bd97c9d0fbf8",REACT_APP_DOCUMENT_UPLOAD:"https://1iyju5wg22.execute-api.eu-west-1.amazonaws.com/dev/documentupload",REACT_APP_INTELLIGENCE_API_STAGE:"live",REACT_APP_CONSULTATIONS_URL:"https://inference-engine.esg-r.io/api",REACT_APP_ENVIRONMENT_NAME:"Live",REACT_APP_USER_POOL_ID:"eu-west-2_CXMj8XQn0",REACT_APP_USER_POOL_WEB_CLIENT_ID:"2a8c10u5721464di89s75deqbr",REACT_APP_ANALYST_AGENT_ENDPOINT:"https://bedrock-agentcore.eu-west-2.amazonaws.com/runtimes/arn%3Aaws%3Abedrock-agentcore%3Aeu-west-2%3A523523762637%3Aruntime%2Fdata_analysis_agent_prod-FHjO5N5Zv7/invocations?qualifier=DEFAULT",REACT_APP_SENTRY_ENV:"LIVE",REACT_APP_BASE_URL:"https://sustainability.rio.ai",REACT_APP_DROMO_LICENSE_KEY:"a1fc32a8-fb02-4546-ad17-74254111f991",REACT_APP_HUBSPOT_TRACKER:"3847934",REACT_APP_GOOGLE_MAP_API_KEY:"AIzaSyD0bNhOInxPo2plOg1oxsYHeOsIXdefauE",REACT_APP_DASHBOARD_DATA_API_URL:"",REACT_APP_AZURE_SSO_APP_ID:"f7c97800-e70d-43a3-800e-64b6ba778a31",REACT_APP_SENTRY_RELEASE:"85df3110fa7a2b8304fe361da0b891146f871ce2",REACT_APP_AWS_REGION:"eu-west-2",REACT_APP_PINPOINT_REGION:"us-east-1",REACT_APP_GRAPHQL_URI:"https://kmkdrdo3dzcvnkzqzfnmfuwt4m.appsync-api.eu-west-2.amazonaws.com/graphql",REACT_APP_PINPOINT_APP_CLIENT_ID:"1b81e38efb7546329dd7eb32e0088b29"}||{}),l=r.stdout&&r.stdout.isTTY);const A={enabled:!s&&null==o&&"dumb"!==a&&(null!=i&&"0"!==i||l),reset:h(0,0),bold:h(1,22),dim:h(2,22),italic:h(3,23),underline:h(4,24),inverse:h(7,27),hidden:h(8,28),strikethrough:h(9,29),black:h(30,39),red:h(31,39),green:h(32,39),yellow:h(33,39),blue:h(34,39),magenta:h(35,39),cyan:h(36,39),white:h(37,39),gray:h(90,39),grey:h(90,39),bgBlack:h(40,49),bgRed:h(41,49),bgGreen:h(42,49),bgYellow:h(43,49),bgBlue:h(44,49),bgMagenta:h(45,49),bgCyan:h(46,49),bgWhite:h(47,49)};function c(t,e){let n,r=0,i="",s="";for(;r<t.length;r++)n=t[r],i+=n.open,s+=n.close,~e.indexOf(n.close)&&(e=e.replace(n.rgx,n.close+n.open));return i+e+s}function h(t,e){let n={open:`[${t}m`,close:`[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(e){return void 0!==this&&void 0!==this.has?(~this.has.indexOf(t)||(this.has.push(t),this.keys.push(n)),void 0===e?this:A.enabled?c(this.keys,e+""):e+""):void 0===e?function(t,e){let n={has:t,keys:e};return n.reset=A.reset.bind(n),n.bold=A.bold.bind(n),n.dim=A.dim.bind(n),n.italic=A.italic.bind(n),n.underline=A.underline.bind(n),n.inverse=A.inverse.bind(n),n.hidden=A.hidden.bind(n),n.strikethrough=A.strikethrough.bind(n),n.black=A.black.bind(n),n.red=A.red.bind(n),n.green=A.green.bind(n),n.yellow=A.yellow.bind(n),n.blue=A.blue.bind(n),n.magenta=A.magenta.bind(n),n.cyan=A.cyan.bind(n),n.white=A.white.bind(n),n.gray=A.gray.bind(n),n.grey=A.grey.bind(n),n.bgBlack=A.bgBlack.bind(n),n.bgRed=A.bgRed.bind(n),n.bgGreen=A.bgGreen.bind(n),n.bgYellow=A.bgYellow.bind(n),n.bgBlue=A.bgBlue.bind(n),n.bgMagenta=A.bgMagenta.bind(n),n.bgCyan=A.bgCyan.bind(n),n.bgWhite=A.bgWhite.bind(n),n}([t],[n]):A.enabled?c([n],e+""):e+""}}const u=A},90415(t,e,n){"use strict";function r(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function i(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const t of e)r.append("v",t);n.search=r.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}n.r(e),n.d(e,{$addUpdateTag:()=>Ea,$applyNodeReplacement:()=>Ma,$assumeActiveEditor:()=>cs,$caretFromPoint:()=>GA,$caretRangeFromSelection:()=>KA,$cloneWithProperties:()=>Bl,$cloneWithPropertiesEphemeral:()=>Tl,$comparePointCaretNext:()=>jA,$copyNode:()=>La,$create:()=>jl,$createChildrenArray:()=>Vl,$createLineBreakNode:()=>Vs,$createNodeSelection:()=>Pi,$createParagraphNode:()=>Ks,$createPoint:()=>ti,$createRangeSelection:()=>Ti,$createRangeSelectionFromDom:()=>ki,$createTabNode:()=>Kr,$createTextNode:()=>Gr,$extendCaretToRange:()=>DA,$findMatchingParent:()=>Hl,$formatText:()=>ci,$fullReconcile:()=>us,$generateNodesFromRawText:()=>Vi,$getAdjacentChildCaret:()=>QA,$getAdjacentNode:()=>Oa,$getAdjacentSiblingOrParentSiblingCaret:()=>ac,$getCaretInDirection:()=>ic,$getCaretRange:()=>UA,$getCaretRangeInDirection:()=>sc,$getCharacterOffsets:()=>ui,$getChildCaret:()=>IA,$getChildCaretAtIndex:()=>oc,$getChildCaretOrSelf:()=>NA,$getCollapsedCaretRange:()=>RA,$getCommonAncestor:()=>zA,$getCommonAncestorResultBranchOrder:()=>HA,$getDOMSlot:()=>Ol,$getDOMTextNode:()=>_l,$getDocument:()=>Wa,$getEditor:()=>yl,$getEditorDOMRenderConfig:()=>vl,$getNearestNodeFromDOMNode:()=>Wo,$getNearestRootOrShadowRoot:()=>Na,$getNodeByKey:()=>Xo,$getNodeByKeyOrThrow:()=>Ra,$getNodeFromDOMNode:()=>zo,$getPreviousSelection:()=>Qi,$getRoot:()=>qo,$getSelection:()=>Ni,$getSiblingCaret:()=>BA,$getSlot:()=>eA,$getSlotFrame:()=>ql,$getSlotHost:()=>Zl,$getSlotNameWithinHost:()=>Kl,$getSlotNames:()=>tA,$getState:()=>xt,$getStateChange:()=>wt,$getTextContent:()=>Xi,$getTextNodeOffset:()=>PA,$getTextPointCaret:()=>TA,$getTextPointCaretSlice:()=>kA,$getWritableNodeState:()=>Bt,$hasAncestor:()=>Ta,$hasUpdateTag:()=>Ca,$insertNodeToNearestRootAtCaret:()=>hc,$insertNodes:()=>ji,$isBlockElementNode:()=>Ei,$isChildCaret:()=>_A,$isDecoratorNode:()=>Ns,$isEditorState:()=>Rs,$isElementDOMSlot:()=>wl,$isElementNode:()=>Ps,$isExtendableTextPointCaret:()=>rc,$isInlineElementOrDecoratorNode:()=>Ia,$isInlineFormattable:()=>Mr,$isLeafNode:()=>Do,$isLexicalNode:()=>dr,$isLineBreakNode:()=>Xs,$isNodeCaret:()=>xA,$isNodeSelection:()=>ai,$isParagraphNode:()=>qs,$isRangeSelection:()=>si,$isRootNode:()=>Fs,$isRootOrShadowRoot:()=>Fa,$isSelectionCapturedInDecoratorInput:()=>So,$isShadowRootNode:()=>Qa,$isSiblingCaret:()=>wA,$isSlotChild:()=>Yl,$isSlotHost:()=>Gl,$isTabNode:()=>qr,$isTextNode:()=>Yr,$isTextPointCaret:()=>bA,$isTextPointCaretSlice:()=>MA,$isTokenOrSegmented:()=>No,$isTokenOrTab:()=>Io,$markSlotEditable:()=>Fl,$needsBlockCursorBeside:()=>Ua,$nodesOfType:()=>ya,$normalizeCaret:()=>nc,$normalizeSelection__EXPERIMENTAL:()=>Dt,$onUpdate:()=>Ba,$parseSerializedNode:()=>ys,$removeFromParent:()=>Uo,$removeSlot:()=>hA,$removeTextFromCaretRange:()=>ec,$rewindSiblingCaret:()=>qA,$selectAll:()=>fa,$setCompositionKey:()=>Ho,$setDirectionFromDOM:()=>kl,$setFormatFromDOM:()=>Il,$setPointFromCaret:()=>YA,$setSelection:()=>Jo,$setSelectionFromCaretRange:()=>WA,$setSlot:()=>cA,$setState:()=>_t,$setTextFormat:()=>Ai,$splitAtPointCaretNext:()=>cc,$splitNode:()=>ol,$updateDOMSelection:()=>$i,$updateRangeSelectionFromCaretRange:()=>ZA,ArtificialNode__DO_NOT_USE:()=>$s,BEFORE_INPUT_COMMAND:()=>De,BLUR_COMMAND:()=>Pn,CAN_REDO_COMMAND:()=>En,CAN_UNDO_COMMAND:()=>Bn,CAN_USE_BEFORE_INPUT:()=>A,CAN_USE_DOM:()=>s,CLEAR_EDITOR_COMMAND:()=>Sn,CLEAR_HISTORY_COMMAND:()=>Cn,CLICK_COMMAND:()=>Me,COLLABORATION_TAG:()=>Or,COMMAND_PRIORITY_BEFORE_CRITICAL:()=>Ao,COMMAND_PRIORITY_BEFORE_EDITOR:()=>so,COMMAND_PRIORITY_BEFORE_HIGH:()=>lo,COMMAND_PRIORITY_BEFORE_LOW:()=>oo,COMMAND_PRIORITY_BEFORE_NORMAL:()=>ao,COMMAND_PRIORITY_CRITICAL:()=>io,COMMAND_PRIORITY_EDITOR:()=>to,COMMAND_PRIORITY_HIGH:()=>ro,COMMAND_PRIORITY_LOW:()=>eo,COMMAND_PRIORITY_NORMAL:()=>no,COMPOSITION_END_COMMAND:()=>$e,COMPOSITION_END_TAG:()=>Cr,COMPOSITION_START_COMMAND:()=>Ue,COMPOSITION_START_TAG:()=>Sr,CONTROLLED_TEXT_INSERTION_COMMAND:()=>Xe,COPY_COMMAND:()=>xn,CUT_COMMAND:()=>wn,CUT_TAG:()=>vr,DEFAULT_EDITOR_DOM_CONFIG:()=>uo,DELETE_CHARACTER_COMMAND:()=>je,DELETE_LINE_COMMAND:()=>We,DELETE_WORD_COMMAND:()=>Ye,DRAGEND_COMMAND:()=>bn,DRAGOVER_COMMAND:()=>On,DRAGSTART_COMMAND:()=>vn,DROP_COMMAND:()=>mn,DecoratorNode:()=>Is,ElementNode:()=>Ts,FOCUS_COMMAND:()=>Tn,FORMAT_ELEMENT_COMMAND:()=>yn,FORMAT_TEXT_COMMAND:()=>Ze,HISTORIC_TAG:()=>fr,HISTORY_MERGE_TAG:()=>mr,HISTORY_PUSH_TAG:()=>gr,INDENT_CONTENT_COMMAND:()=>fn,INPUT_COMMAND:()=>Re,INSERT_LINE_BREAK_COMMAND:()=>He,INSERT_PARAGRAPH_COMMAND:()=>Ve,INSERT_TAB_COMMAND:()=>dn,INTERNAL_$isBlock:()=>ml,IS_ALL_FORMATTING:()=>E,IS_ANDROID:()=>h,IS_ANDROID_CHROME:()=>d,IS_APPLE:()=>a,IS_APPLE_WEBKIT:()=>f,IS_BOLD:()=>v,IS_CHROME:()=>p,IS_CODE:()=>w,IS_FIREFOX:()=>l,IS_HIGHLIGHT:()=>C,IS_IOS:()=>c,IS_ITALIC:()=>O,IS_SAFARI:()=>u,IS_STRIKETHROUGH:()=>b,IS_SUBSCRIPT:()=>_,IS_SUPERSCRIPT:()=>S,IS_UNDERLINE:()=>x,KEY_ARROW_DOWN_COMMAND:()=>an,KEY_ARROW_LEFT_COMMAND:()=>rn,KEY_ARROW_RIGHT_COMMAND:()=>en,KEY_ARROW_UP_COMMAND:()=>on,KEY_BACKSPACE_COMMAND:()=>cn,KEY_DELETE_COMMAND:()=>un,KEY_DOWN_COMMAND:()=>tn,KEY_ENTER_COMMAND:()=>ln,KEY_ESCAPE_COMMAND:()=>hn,KEY_MODIFIER_COMMAND:()=>kn,KEY_SPACE_COMMAND:()=>An,KEY_TAB_COMMAND:()=>pn,LineBreakNode:()=>js,MOVE_TO_END:()=>nn,MOVE_TO_START:()=>sn,NODE_STATE_DIRECT:()=>yt,NODE_STATE_KEY:()=>G,NODE_STATE_LATEST:()=>vt,OUTDENT_CONTENT_COMMAND:()=>gn,PASTE_COMMAND:()=>ze,PASTE_TAG:()=>yr,ParagraphNode:()=>Ws,REDO_COMMAND:()=>Je,REMOVE_TEXT_COMMAND:()=>Ge,RootNode:()=>Qs,SELECTION_CHANGE_COMMAND:()=>Fe,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:()=>Le,SELECT_ALL_COMMAND:()=>_n,SET_TEXT_FORMAT_COMMAND:()=>Ke,SKIP_COLLAB_TAG:()=>br,SKIP_DOM_SELECTION_TAG:()=>wr,SKIP_SCROLL_INTO_VIEW_TAG:()=>xr,SKIP_SELECTION_FOCUS_TAG:()=>_r,TEXT_TYPE_TO_FORMAT:()=>$,TabNode:()=>Zr,TextNode:()=>Dr,UNDO_COMMAND:()=>qe,addClassNamesToElement:()=>yc,buildImportMap:()=>Ar,configExtension:()=>pc,createCommand:()=>Qe,createEditor:()=>po,createRefCountedRegistry:()=>In,createSharedNodeState:()=>St,createState:()=>bt,declarePeerDependency:()=>dc,defineExtension:()=>uc,findAllLexicalElementsDeep:()=>Ga,flipDirection:()=>mA,getActiveElement:()=>rl,getActiveElementDeep:()=>il,getComposedEventTarget:()=>sl,getComposedStaticRange:()=>Za,getDOMOwnerDocument:()=>Sa,getDOMSelection:()=>ja,getDOMSelectionFromTarget:()=>Ha,getDOMSelectionPoints:()=>qa,getDOMSelectionRange:()=>Ka,getDOMSelectionRangeAndPoints:()=>Ja,getDOMShadowRoots:()=>za,getDOMTextNode:()=>Lo,getDeclaredSlots:()=>aA,getEditorPropertyFromDOMNode:()=>Po,getNearestEditorFromDOMNode:()=>To,getParentElement:()=>_a,getRegisteredNode:()=>wo,getRegisteredNodeOrThrow:()=>xo,getRegisteredSubtypeMap:()=>$l,getRootOwnerDocument:()=>Ya,getStaticNodeConfig:()=>Rl,getStyleObjectFromCSS:()=>Er,getTextDirection:()=>ko,getTransformSetFromKlass:()=>ho,isBlockDomNode:()=>gl,isCurrentlyReadOnlyMode:()=>os,isDOMCapturingSelection:()=>Ll,isDOMDocumentNode:()=>Fo,isDOMNode:()=>hl,isDOMShadowRoot:()=>Va,isDOMTextNode:()=>Qo,isDOMUnmanaged:()=>Ql,isDocumentFragment:()=>ul,isExactShortcutMatch:()=>ha,isHTMLAnchorElement:()=>al,isHTMLElement:()=>cl,isHTMLTableCellElement:()=>Al,isHTMLTableRowElement:()=>ll,isInlineDomNode:()=>dl,isLastChildInBlockNode:()=>Gs,isLexicalEditor:()=>Bo,isModifierMatch:()=>ca,isOnlyChildInBlockNode:()=>zs,isSelectionCapturedInDecoratorInput:()=>Co,isSelectionWithinEditor:()=>Eo,iterStaticNodeConfigChain:()=>Ul,makeStepwiseIterator:()=>$A,mergeRegister:()=>Oc,mountSlotContainer:()=>bl,normalizeClassNames:()=>mc,registerEventListener:()=>Nn,registerEventListeners:()=>bc,removeClassNamesFromElement:()=>vc,removeFromParent:()=>$o,resetRandomKey:()=>bo,safeCast:()=>fc,setDOMStyleFromCSS:()=>Pr,setDOMStyleObject:()=>Tr,setDOMUnmanaged:()=>Nl,setNodeIndentFromDOM:()=>Pl,shallowMergeConfig:()=>gc,stopLexicalPropagation:()=>sr,toggleTextFormatType:()=>Mo,tokenizeRawText:()=>Hi,unmountSlotContainer:()=>xl});const s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,o=s&&"documentMode"in document?document.documentMode:null,a=s&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),l=s&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),A=!(!s||!("InputEvent"in window)||o)&&"getTargetRanges"in new window.InputEvent("input"),c=s&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,h=s&&/Android/.test(navigator.userAgent),u=s&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!h,p=s&&/^(?=.*Chrome).*/i.test(navigator.userAgent),d=s&&h&&p,f=s&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&a&&!p,g=0,m=1,y=2,v=1,O=2,b=4,x=8,w=16,_=32,S=64,C=128,E=2047,B=1,T=2,P=3,k=4,I=5,N=6,Q=u||c||f?" ":"​",F="\n\n",L=l?" ":Q,M="֑-߿יִ-﷽ﹰ-ﻼ",D="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",R=new RegExp("^[^"+D+"]*["+M+"]"),U=new RegExp("^[^"+M+"]*["+D+"]"),$={bold:1,capitalize:1024,code:16,highlight:C,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},j={directionless:1,unmergeable:2},H={center:2,end:6,justify:4,left:1,right:3,start:5},V={[T]:"center",[N]:"end",[k]:"justify",[B]:"left",[P]:"right",[I]:"start"},X={normal:0,segmented:2,token:1},z={[g]:"normal",[y]:"segmented",[m]:"token"},G="$",Y="$config";function W(){return yl()._blockCursorElement}function Z(t){return null!==t&&1===t.nodeType&&t.hasAttribute("data-lexical-slot")}class K{element;before;after;constructor(t,e,n){this.element=t,this.before=e||null,this.after=n||null}withBefore(t){return new K(this.element,t,this.after)}withAfter(t){return new K(this.element,this.before,t)}withElement(t){return this.element===t?this:new K(t,this.before,this.after)}insertChild(t){const e=this.getInsertionAnchor();return null!==e&&e.parentElement!==this.element&&r(357),this.element.insertBefore(t,e),this}removeChild(t){return t.parentElement!==this.element&&r(358),this.element.removeChild(t),this}replaceChild(t,e){return e.parentElement!==this.element&&r(359),this.element.replaceChild(t,e),this}getFirstChild(){const t=this.getFirstChildAnchor(),e=t?t.nextSibling:this.element.firstChild;return e===this.getInsertionAnchor()?null:e}getFirstChildAnchor(){return this.after}resolveLeafPosition(t,e,n){if(this.element===t)return e===t&&0===n?"before":"after";const r=q(t,this.element);if(null===r)return"after";const i=Array.prototype.indexOf.call(t.childNodes,r);if(i<0)return"after";if(e===t)return n<=i?"before":"after";const s=q(t,e);if(null===s)return"after";const o=Array.prototype.indexOf.call(t.childNodes,s);return o>=0&&o<=i?"before":"after"}getInsertionAnchor(){return this.before}}function q(t,e){let n=e;for(;null!==n&&n.parentNode!==t;)n=n.parentNode;return n}class J extends K{withBefore(t){return new J(this.element,t,this.after)}withAfter(t){return new J(this.element,this.before,t)}withElement(t){return this.element===t?this:new J(t,this.before,this.after)}getInsertionAnchor(){return super.getInsertionAnchor()||this.getManagedLineBreak()}getFirstChildAnchor(){let t=super.getFirstChildAnchor(),e=t?t.nextSibling:this.element.firstChild;for(;Z(e);)t=e,e=e.nextSibling;const n=t?t.nextSibling:this.element.firstChild;return null!==n&&n===W()?n:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(this.element.__lexicalLastChildKind=t,null===t)this.removeManagedLineBreak();else{const e="decorator"===t&&(f||c||u);this.insertManagedLineBreak(e)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const e=this.element,n="IMG"===t.nodeName?t.nextSibling:null;n&&e.removeChild(n),e.removeChild(t),e.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const e=this.getManagedLineBreak();if(e){if(t===("IMG"===e.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,i=Wa().createElement("br");if(i.setAttribute("data-lexical-managed-linebreak","true"),n.insertBefore(i,r),t){const t=Wa().createElement("img");t.setAttribute("data-lexical-managed-linebreak","true"),t.style.setProperty("display","inline","important"),t.style.setProperty("border","0px","important"),t.style.setProperty("margin","0px","important"),t.alt="",n.insertBefore(t,i),n.__lexicalLineBreak=t}else n.__lexicalLineBreak=i}getFirstChildOffset(){const t=this.getFirstChild(),e=this.getInsertionAnchor();let n=0;for(let r=this.element.firstChild;null!==r&&r!==t&&r!==e;r=r.nextSibling)n++;return n}resolveChildIndex(t,e,n,r){if(n===this.element){const e=this.getFirstChildOffset(),n=W(),i=this.element.childNodes,s=Math.min(r,i.length);let o=0;for(let t=e;t<s;t++)i[t]!==n&&o++;return[t,Math.min(o,t.getChildrenSize())]}const i=tt(e,n);i.push(r);const s=tt(e,this.element);let o=t.getIndexWithinParent();for(let t=0;t<s.length;t++){const e=i[t],n=s[t];if(void 0===e||e<n)break;if(e>n){o+=1;break}}return[t.getParentOrThrow(),o]}}function tt(t,e){const n=[];let i=e;for(;i!==t&&null!==i;i=i.parentNode){let t=0;for(let e=i.previousSibling;null!==e;e=e.previousSibling)t++;n.push(t)}return i!==t&&r(225),n.reverse()}let et;try{et="0.48.0+prod.esm"}catch(r){}const nt=et??'"<unknown>+source"';class rt{_front=new Set;_back=new Set;_cache;get size(){return this._front.size+this._back.size}addBack(t){return delete this._cache,this._front.has(t)||this._back.add(t),this}addFront(t){return delete this._cache,this._back.has(t)||this._front.add(t),this}delete(t){return delete this._cache,this._front.delete(t)||this._back.delete(t)}toArray(){const t=Array.from(this._front).reverse();for(const e of this._back)t.push(e);return t}toReadonlyArray(){return this._cache=this._cache||this.toArray(),this._cache}[Symbol.iterator](){return this.toReadonlyArray()[Symbol.iterator]()}}const it=null;function st(t,e=1e3){return t instanceof ot?t.clone():t.size<e?new Map(t):(new ot).init(new Map(t),void 0,t.size)}class ot{_mutable=!1;_old=void 0;_nursery=void 0;_size=0;clone(){return this._mutable=!1,(new ot).init(this._old,this._nursery,this._size)}init(t,e,n){return this._old=t,this._nursery=e,this._size=n,this}get size(){return this._size}has(t){return void 0!==this.get(t)}getWithTombstone(t){const e=this._nursery&&this._nursery.get(t);return void 0!==e?e:this._old&&this._old.get(t)}get(t){const e=this.getWithTombstone(t);return e===it?void 0:e}shouldCompact(){return void 0!==this._nursery&&2*this._nursery.size>this._size}getNursery(){return this._mutable&&this._nursery||(this.compact(),this._nursery=new Map(this._nursery),this._mutable=!0),this._nursery}compact(t=!1){if(this._nursery&&this._nursery.size>0&&(t||this.shouldCompact())){const t=new Map(this._old);for(const[e,n]of this._nursery)n!==it?t.set(e,n):t.delete(e);this._old=t,this._nursery=void 0}return this._mutable=!1,this}set(t,e){const n=this.getWithTombstone(t);if(n===e)return this;const r=this.getNursery();return n!==it&&void 0!==n||(this._size++,n===it&&r.delete(t)),r.set(t,e),this}delete(t){const e=this.has(t);return e&&(this.getNursery().set(t,it),this._size--),e}getOrInsert(t,e){const n=this.get(t);return void 0!==n?n:(this.set(t,e),e)}getOrInsertComputed(t,e){const n=this.get(t);if(void 0!==n)return n;const r=e(t);return this.set(t,r),r}clear(){this._mutable=!1,this._old=void 0,this._nursery=void 0,this._size=0}*keys(){for(const t of this.entries())yield t[0]}*values(){for(const t of this.entries())yield t[1]}*entries(){const t=this._nursery,e=this._old;if(e)for(const n of e){const e=n[0],r=t?t.get(e):void 0;r!==it&&(void 0!==r&&(n[1]=r),yield n)}if(t)for(const n of t)n[1]===it||e&&e.has(n[0])||(yield n)}forEach(t,e){void 0!==e&&(t=t.bind(e));for(const[e,n]of this.entries())t(n,e,this)}get[Symbol.toStringTag](){return"GenMap"}[Symbol.iterator](){return this.entries()}}function at(t,e,n,r,i,s){if(Ps(t)){let o=t.getFirstChild();for(;null!==o;){const t=o.__key;o.__parent===e&&((Ps(o)||Gl(o)&&null!==o.__slots)&&at(o,t,n,r,i,s),n.has(t)||s.delete(t),i.push(t)),o=o.getNextSibling()}}for(const o of Gl(t)&&null!==t.__slots?t.__slots.values():[]){const t=r.get(o);void 0!==t&&Yl(t)&&t.__slotHost===e&&((Ps(t)||Gl(t)&&null!==t.__slots)&&at(t,o,n,r,i,s),n.has(o)||s.delete(o),i.push(o))}}let lt=!1,At=0;function ct(t){At=t.timeStamp}function ht(t,e,n){const r="BR"===t.nodeName,i=e.__lexicalLineBreak;return i&&(t===i||r&&t.previousSibling===i)||r&&void 0!==Yo(t,n)}function ut(t,e,n){const r=ja(ka(n)),i=r&&qa(r,n._rootElement);let s=null,o=null;null!==i&&i.anchorNode===t&&(s=i.anchorOffset,o=i.focusOffset);const a=t.nodeValue;null!==a&&aa(e,a,s,o,!1)}function pt(t,e,n){if(si(t)){const e=t.anchor.getNode();if(e.is(n)&&t.format!==e.getFormat())return!1}return Qo(e)&&n.isAttached()}function dt(t,e,n){for(let r=t;r&&!Ql(r);r=_a(r)){const t=Yo(r,e);if(void 0!==t){const e=Xo(t,n);if(e)return Ns(e)||!cl(r)?void 0:[r,e]}}}function ft(t,e,n){lt=!0;const r=performance.now()-At>100;try{Es(t,()=>{const i=Ni()||function(t){return t.read("latest",()=>{const t=Ni();return null!==t?t.clone():null})}(t),s=new Map,o=t._editorState,a=t._blockCursorElement;let A=!1,c="";for(let n=0;n<e.length;n++){const h=e[n],u=h.type,p=h.target,d=dt(p,t,o);if(!d)continue;const[f,g]=d;if("characterData"===u)r&&Yr(g)&&Qo(p)&&pt(i,p,g)&&ut(p,g,t);else if("childList"===u){A=!0;const e=h.addedNodes;for(let n=0;n<e.length;n++){const r=e[n],i=zo(r),s=r.parentNode;if(!(null==s||r===a||null!==i||ht(r,s,t)||t._slotsUsed&&cl(r)&&r.hasAttribute("data-lexical-slot")||Ql(r))){if(l){const t=(cl(r)?r.innerText:null)||r.nodeValue;t&&(c+=t)}s.removeChild(r)}}const n=h.removedNodes,r=n.length;if(r>0){let e=0;for(let i=0;i<r;i++){const r=n[i];(ht(r,p,t)||a===r)&&(p.appendChild(r),e++)}r!==e&&s.set(f,g)}}}if(s.size>0)for(const[e,n]of s)n.reconcileObservedMutation(e,t);const h=n.takeRecords();if(h.length>0){for(let e=0;e<h.length;e++){const n=h[e],r=n.addedNodes,i=n.target;for(let e=0;e<r.length;e++){const n=r[e],s=n.parentNode;null==s||"BR"!==n.nodeName||ht(n,i,t)||s.removeChild(n)}}n.takeRecords()}null!==i&&(A&&Jo(i),l&&ba(t)&&i.insertRawText(c))})}finally{lt=!1}}function gt(t){const e=t._observer;null!==e&&ft(t,e.takeRecords(),e)}function mt(t){!function(t){0===At&&ka(t).addEventListener("textInput",ct,!0)}(t),t._observer=new MutationObserver((e,n)=>{ft(t,e,n)})}const yt="direct",vt="latest";class Ot{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(t,e){this.key=t,this.parse=e.parse.bind(e),this.unparse=(e.unparse||kt).bind(e),this.isEqual=(e.isEqual||Object.is).bind(e),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=e.resetOnCopyNode||!1}}function bt(t,e){return new Ot(t,e)}function xt(t,e,n=vt){const r=(n===vt?t.getLatest():t).__state;return r?r.getValue(e):e.defaultValue}function wt(t,e,n){const r=xt(t,n,yt),i=xt(e,n,yt);return n.isEqual(r,i)?null:[r,i]}function _t(t,e,n){let r;if(as(),"function"==typeof n){const i=t.getLatest(),s=xt(i,e);if(r=n(s),e.isEqual(s,r))return i}else r=n;const i=t.getWritable();return Bt(i).updateFromKnown(e,r),i}function St(t){const e=new Map,n=new Set;for(const{ownNodeConfig:r}of Ul("function"==typeof t?t:t.replace))if(r&&r.stateConfigs)for(const t of r.stateConfigs){let r;"stateConfig"in t?(r=t.stateConfig,t.flat&&n.add(r.key)):r=t,e.set(r.key,r)}return{flatKeys:n,sharedConfigMap:e}}const Ct=new Set(["__proto__","constructor","prototype"]);class Et{node;knownState;unknownState;sharedNodeState;size;constructor(t,e,n=void 0,r=new Map,i=void 0){this.node=t,this.sharedNodeState=e,this.unknownState=n,this.knownState=r;const{sharedConfigMap:s}=this.sharedNodeState,o=void 0!==i?i:function(t,e,n){let r=n.size;if(e)for(const i in e){const e=t.get(i);e&&n.has(e)||r++}return r}(s,n,r);this.size=o}getValue(t){const e=this.knownState.get(t);if(void 0!==e)return e;this.sharedNodeState.sharedConfigMap.set(t.key,t);let n=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const e=this.unknownState[t.key];void 0!==e&&(n=t.parse(e)),this.updateFromKnown(t,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},e={};for(const[e,n]of this.knownState)e.isEqual(n,e.defaultValue)?delete t[e.key]:t[e.key]=e.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in t&&(e[n]=t[n],delete t[n]);return Pt(t)&&(e.$=t),e}getWritable(t){if(this.node===t)return this;const{sharedNodeState:e,unknownState:n}=this,r=new Map(this.knownState);return new Et(t,e,function(t,e,n){let r;if(n)for(const[i,s]of Object.entries(n)){if(Ct.has(i))continue;const n=t.get(i);n?e.has(n)||e.set(n,n.parse(s)):(r=r||{},r[i]=s)}return r}(e.sharedConfigMap,r,n),r,this.size)}resetOnCopyNode(){for(const t of this.knownState.keys())t.resetOnCopyNode&&this.knownState.set(t,t.defaultValue);return this}updateFromKnown(t,e){const n=t.key;this.sharedNodeState.sharedConfigMap.set(n,t);const{knownState:r,unknownState:i}=this;r.has(t)||i&&n in i||(i&&(delete i[n],this.unknownState=Pt(i)),this.size++),r.set(t,e)}updateFromUnknown(t,e){if(Ct.has(t))return;const n=this.sharedNodeState.sharedConfigMap.get(t);n?this.updateFromKnown(n,n.parse(e)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=e)}updateFromJSON(t){const{knownState:e}=this;for(const t of e.keys())e.set(t,t.defaultValue);if(this.size=e.size,this.unknownState=void 0,t)for(const[e,n]of Object.entries(t))this.updateFromUnknown(e,n)}}function Bt(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new Et(e,Tt(e));return e.__state=n,n}function Tt(t){return t.__state?t.__state.sharedNodeState:xo(yl(),t.getType()).sharedNodeState}function Pt(t){if(t)for(const e in t)return t}function kt(t){return t}function It(t,e,n){for(const[r,i]of e.knownState){if(t.has(r.key))continue;t.add(r.key);const e=n?n.getValue(r):r.defaultValue;if(e!==i&&!r.isEqual(e,i))return!0}return!1}function Nt(t,e,n){const{unknownState:r}=e,i=n?n.unknownState:void 0;if(r)for(const[e,n]of Object.entries(r))if(!t.has(e)&&(t.add(e),n!==(i?i[e]:void 0)))return!0;return!1}function Qt(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function Ft(t,e){const n=t.__mode,r=t.__format,i=t.__style,s=e.__mode,o=e.__format,a=e.__style,l=t.__state,A=e.__state;return(null===n||n===s)&&(null===r||r===o)&&(null===i||i===a)&&(null===t.__state||l===A||function(t,e){if(t===e)return!0;const n=new Set;return!(t&&It(n,t,e)||e&&It(n,e,t)||t&&Nt(n,t,e)||e&&Nt(n,e,t))}(l,A))}function Lt(t,e){const n=t.mergeWithSibling(e),r=hs()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function Mt(t){let e,n,r=t;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(e=r.getPreviousSibling())&&Yr(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(""!==e.__text){if(Ft(e,r)){r=Lt(e,r);break}break}e.remove()}for(;null!==(n=r.getNextSibling())&&Yr(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Ft(r,n)){r=Lt(r,n);break}break}n.remove()}}else r.remove()}function Dt(t){return Rt(t.anchor),Rt(t.focus),t}function Rt(t){for(;"element"===t.type;){const e=t.getNode(),n=t.offset;let r,i;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),i=!0):(r=e.getChildAtIndex(n),i=!1),Yr(r)){t.set(r.__key,i?r.getTextContentSize():0,"text",!0);break}if(!Ps(r))break;t.set(r.__key,i?r.getChildrenSize():0,"element",!0)}}const Ut=Symbol.for("@lexical/CachedTextSize");function $t(t,e){return re.read(()=>{let n=0,i=t;for(let t=0;t<e&&null!==i;t++){const s=ne.get(i);if(void 0===s&&r(345,i),Ps(s)){const o=ie.get(i);if(void 0!==o&&Ps(o)&&o.__parent!==s.__parent)n+=s.getTextContentSize();else{const t=se.get(i),e=t&&t.__lexicalTextContent;"string"!=typeof e&&r(346,s.getType()),n+=e.length}t<e-1&&!s.isInline()&&(n+=2)}else{const t=s[Ut];void 0===t&&r(347,s.getType(),i),n+=t}i=s.__next}return n},{editor:Vt})}function jt(t){Ps(t)||void 0===t[Ut]&&(t[Ut]=Yr(t)?t.__text.length:t.getTextContentSize())}let Ht,Vt,Xt,zt="",Gt=null,Yt=null,Wt=null;function Zt(){return{firstTextKey:Wt,format:Gt,style:Yt}}function Kt(t){null!==t.firstTextKey&&(Gt=t.format,Yt=t.style,Wt=t.firstTextKey)}function qt(t){if(null!==Wt)return;const e=t.__lexicalFirstTextKey;if(void 0===e&&r(348),null===e)return;const n=ie.get(e);Yr(n)&&(Gt=n.getFormat(),Yt=n.getStyle(),Wt=e)}let Jt,te,ee,ne,re,ie,se,oe,ae,le,Ae=!1,ce=!1;function he(t,e){const n=ne.get(t),r=ie.has(t);if(null!==e){const n=Ne(t);n.parentNode===e&&e.removeChild(n)}if(!r){if(Vt._keyToDOMMap.delete(t),Ps(n)){const t=Vl(n,ne);ue(t,0,t.length-1,null)}if(void 0!==n){for(const t of Oe(n).values()){const e=xe(t);he(t,null),null!==e&&e.remove()}ma(ae,Xt,Jt,n,"destroyed")}}}function ue(t,e,n,r){for(let i=e;i<=n;++i){const e=t[i];void 0!==e&&he(e,r)}}function pe(t,e){t.setProperty("text-align",e)}function de(t,e){const n=Ht.theme.indent;if("string"==typeof n){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}t.style.setProperty("padding-inline-start",0===e?"":`calc(${e} * var(--lexical-indent-base-value, 40px))`)}function fe(t,e){const n=t.style;0===e?pe(n,""):1===e?pe(n,"left"):2===e?pe(n,"center"):3===e?pe(n,"right"):4===e?pe(n,"justify"):5===e?pe(n,"start"):6===e&&pe(n,"end")}function ge(t,e){const n=function(t){const e=t.__dir;if(null!==e)return e;if(Fs(t))return null;const n=t.getParent();return null===n||Fa(n)&&null===n.__dir?"auto":null}(e);null!==n?t.dir=n:t.removeAttribute("dir")}function me(t){const e=Wa().createElement("div");return e.setAttribute("data-lexical-slot",t),e.style.display="none",e}function ye(t,e,n){e||"false"===t.contentEditable?Fl(n,Vt):n.removeAttribute("contenteditable")}function ve(t,e,n){const r=zt,i=Zt();zt="";let s="";const o=Ns(t);for(const[r,i]of n){const n=me(r);ye(e,o,n),e.appendChild(n),zt="";const a=Zt();_e(i,Ol(t,n,Vt)),Kt(a),be(t,r,e,n),s+=zt}return Kt(i),zt=r,s}function Oe(t){return Gl(t)&&null!==t.__slots?t.__slots:zl}function be(t,e,n,r){const i=le.$getSlotTargetElement(t,e,n,Vt);null!==i&&(r.parentElement!==i&&i.appendChild(r),r.style.display="")}function xe(t){const e=se.get(t);return void 0!==e?e.parentElement:null}function we(t,e,n){const r=Oe(t),i=Oe(e);for(const[t,e]of r)if(!i.has(t)){const t=xe(e);he(e,null),null!==t&&t.remove()}const s=zt,o=Zt();let a="",l=null;const A=Ns(e);for(const[t,s]of i){const i=r.get(t);let o=void 0!==i?xe(i):null;zt="";const c=Zt();if(null===o){o=me(t);let r=null;for(const t of n.children)if(!t.hasAttribute("data-lexical-slot")){r=t;break}n.insertBefore(o,r),_e(s,Ol(e,o,Vt))}else i===s?Te(s,o):(void 0!==i&&he(i,o),_e(s,Ol(e,o,Vt)));if(Kt(c),ye(n,A,o),be(e,t,n,o),a+=zt,o.parentElement===n){const t=null===l?n.firstChild:l.nextSibling;t!==o&&n.insertBefore(o,t),l=o}}return Kt(o),zt=s,a}function _e(t,e){const n=ie.get(t);if(void 0===n&&r(60),null!==e){const r=ne.get(t);if(void 0!==r){const i=se.get(t);if(void 0!==i){const s=Yl(r)?r.__slotHost:null,o=Yl(n)?n.__slotHost:null,a=r.__parent!==n.__parent||s!==o,l=null!==o&&i.parentElement!==e.element;if(a||l)return e.insertChild(i),Te(t,e.element)}}}const i=le.$createDOM(n,Vt);if(function(t,e,n){const r=n._keyToDOMMap;Go(e,n,t),r.set(t,e)}(t,i,Vt),Yr(n)?i.setAttribute("data-lexical-text","true"):Ns(n)&&(i.setAttribute("data-lexical-decorator","true"),Nl(i,{captureSelection:!0})),Ps(n)){const t=n.__indent,e=n.__size;ge(i,n),0!==t&&de(i,t);const r=Oe(n),s=r.size>0?ve(n,i,r):"";if(0===e)i.__lexicalTextContent=s,i.__lexicalFirstTextKey=null,zt+=s,r.size>0&&(i.__lexicalSlotTextLength=s.length);else{const t=zt,o=e-1;if(Se(Vl(n,ie),n,0,o,Ol(n,i,Vt)),""!==s){const e=i.__lexicalTextContent||"";i.__lexicalTextContent=s+e,zt=t+s+e}r.size>0&&(i.__lexicalSlotTextLength=s.length)}const o=n.__format;0!==o&&fe(i,o),n.isInline()||Ce(0,n,i)}else{const e=n.getTextContent();if(Ns(n)){const e=n.decorate(Vt,Ht);null!==e&&Pe(t,e),i.contentEditable="false";const r=Oe(n);r.size>0&&ve(n,i,r)}zt+=e}return null!==e&&e.insertChild(i),le.$decorateDOM(n,null,i,Vt),jt(n),ma(ae,Xt,Jt,n,"created"),i}function Se(t,e,n,i,s){const o=zt,a=Zt();zt="",Gt=null,Yt=null,Wt=null;let l=n;for(;l<=i;++l){const e=Zt();_e(t[l],s);const n=ie.get(t[l]);null!==n&&Yr(n)?null===Gt&&(Gt=n.getFormat(),Yt=n.getStyle(),Wt=n.__key):Ps(n)&&l<i&&!n.isInline()&&(zt+=F),Kt(e)}const A=Vt._keyToDOMMap.get(e.__key);void 0===A&&r(349,e.__key),A.__lexicalTextContent=zt,A.__lexicalFirstTextKey=Wt,zt=o+zt,Kt(a)}function Ce(t,e,n){const r=Ol(e,n,Vt),i=r.element.__lexicalLastChildKind??null,s=function(t,e){if(t){const n=t.__last;if(n){const t=e.get(n);if(t)return Xs(t)?"line-break":Ns(t)&&t.isInline()?"decorator":null}return Oe(t).size>0?null:"empty"}return null}(e,ie);i!==s&&r.setManagedLineBreak(s)}function Ee(t,e,n){var i;Gt=null,Yt=null,Wt=null,function(t,e,n){const i=zt,s=t.__size,o=e.__size;zt="";const a=n.element,l=Vt._keyToDOMMap.get(e.__key);void 0===l&&r(351,e.__key);const A=o-s;if(!Ae&&Math.abs(A)<=1&&s>=4&&t.__first===e.__first&&(0!==A||!Vt._cloneNotNeeded.has(t.__key))){const s=l.__lexicalTextContent,c=oe.get(t.__key);if(!Ae&&"string"==typeof s&&void 0!==c){const o=function(t,e){const n=e.size;if(0===n||n>=t.__size)return null;let r=t.__last,i=null,s=0;for(;null!==r&&s<n;){if(!e.has(r))return null;i=r;const t=ie.get(r);if(void 0===t)return null;r=t.__prev,s++}return s!==n||null!==r&&e.has(r)?null:i}(e,c);if(null!==o){const h=c.size;if(0===A){const t=$t(o,h);let n=o,A=0;for(;null!==n&&A<h;){const t=ie.get(n);if(void 0===t)break;const e=Zt();Te(n,a),Yr(t)&&null===Gt&&(Gt=t.getFormat(),Yt=t.getStyle(),Wt=t.__key),Kt(e),n=t.__next,A++}let u="";for(n=o,A=0;null!==n&&A<h;){const t=ie.get(n);if(void 0===t)break;let e;if(Ps(t)){const i=Vt._keyToDOMMap.get(n),s=i&&i.__lexicalTextContent;"string"!=typeof s&&r(352,t.getType()),e=s}else e=t.getTextContent();u+=e,A<h-1&&Ps(t)&&!t.isInline()&&(u+=F),n=t.__next,A++}const p=l.__lexicalSlotTextLength||0,d=p>0?s.slice(p):s,f=d.slice(0,d.length-t)+u;return l.__lexicalTextContent=f,zt=i+f,void Be(e,l,c)}if(function(t,e,n,i,s,o,a,l){if(1!==l&&-1!==l)return!1;if(a!==(1===l?2:1))return!1;const A=a-l;let c=t.__last;for(let t=0;t<A-1;t++){if(null===c)return!1;const t=ne.get(c);if(void 0===t)return!1;c=t.__prev}if(null===c)return!1;const h=ie.get(o),u=ne.get(c);if(void 0===h||void 0===u)return!1;if(h.__prev!==u.__prev)return!1;const p=[];let d=o;for(let t=0;t<a;t++){if(null===d)return!1;p.push(d);const t=ie.get(d);d=t?t.__next:null}const f=[];d=c;for(let t=0;t<A;t++){if(null===d)return!1;f.push(d);const t=ne.get(d);d=t?t.__next:null}const g=new Set(f),m=new Set(p),y=[];let v=0,O=0;for(;v<A&&O<a;)if(p[O]===f[v])y.push({key:p[O],kind:"reconcile"}),v++,O++;else if(m.has(f[v])){if(g.has(p[O]))return!1;y.push({key:p[O],kind:"create",nextIndex:O}),O++}else y.push({key:f[v],kind:"destroy"}),v++;for(;v<A;)y.push({key:f[v++],kind:"destroy"});for(;O<a;)y.push({key:p[O],kind:"create",nextIndex:O}),O++;const b=$t(c,A);for(const t of y){const e=Zt();if("reconcile"===t.kind)Te(t.key,n.element);else if("destroy"===t.kind)he(t.key,n.element);else{let e=null;for(let n=t.nextIndex+1;n<a;n++){const t=Vt._keyToDOMMap.get(p[n]);if(void 0!==t){e=t;break}}_e(t.key,n.withBefore(e??n.before))}if("destroy"!==t.kind){const e=ie.get(t.key);e&&Yr(e)&&null===Gt&&(Gt=e.getFormat(),Yt=e.getStyle(),Wt=e.__key)}Kt(e)}let x="";for(let t=0;t<a;t++){const e=ie.get(p[t]);if(void 0===e)return!1;let n;if(Ps(e)){const i=Vt._keyToDOMMap.get(p[t]),s=i&&i.__lexicalTextContent;"string"!=typeof s&&r(350,e.getType()),n=s}else n=e.getTextContent();x+=n,t<a-1&&Ps(e)&&!e.isInline()&&(x+=F)}const w=i.__lexicalSlotTextLength||0,_=w>0?s.slice(w):s;return i.__lexicalTextContent=_.slice(0,_.length-b)+x,!0}(t,0,n,l,s,o,h,A)){const t=l.__lexicalTextContent;return"string"!=typeof t&&r(353),zt=i+t,void Be(e,l,c)}}}if(0===A){let e=t.__first,n=0;for(;null!==e;){const t=ie.get(e);if(void 0===t)break;const i=Ae||ee.has(e)||te.has(e),s=Zt();if(i)Te(e,a);else{let n,i;if(Ps(t)){i=se.get(e);const s=i&&i.__lexicalTextContent;"string"!=typeof s&&r(354,t.getType()),n=s}else n=t.getTextContent();zt+=n,void 0!==i&&qt(i)}Yr(t)?null===Gt&&(Gt=t.getFormat(),Yt=t.getStyle(),Wt=t.__key):Ps(t)&&n<o-1&&!t.isInline()&&(zt+=F),Kt(s),e=t.__next,n++}return l.__lexicalTextContent=zt,l.__lexicalFirstTextKey=Wt,void(zt=i+zt)}}if(1===s&&1===o){const r=t.__first,i=e.__first;if(r===i)Te(r,a);else{const t=Ne(r),e=_e(i,null);try{t.parentNode===a?a.replaceChild(e,t):n.insertChild(e)}catch(n){if("object"==typeof n&&null!=n){const s=`${n.toString()} Parent: ${a.tagName}, new child: {tag: ${e.tagName} key: ${i}}, old child: {tag: ${t.tagName}, key: ${r}}.`;throw new Error(s)}throw n}he(r,null)}const s=ie.get(i);Yr(s)&&null===Gt&&(Gt=s.getFormat(),Yt=s.getStyle(),Wt=s.__key)}else{const i=Vl(t,ne),l=Vl(e,ie);if(i.length!==s&&r(227),l.length!==o&&r(228),0===s)0!==o&&Se(l,e,0,o-1,n);else if(0===o){if(0!==s){const t=null==n.after&&null==n.before&&0===Oe(e).size&&null==n.element.__lexicalLineBreak;ue(i,0,s-1,t?null:a),t&&(a.textContent="")}}else!function(t,e,n,r,i,s){const o=r-1,a=i-1;let l,A,c=s.getFirstChild(),h=0,u=0;for(;h<=o&&u<=a;){const t=e[h],r=n[u],i=Zt();if(t===r)c=ke(Te(r,s.element)),h++,u++;else{if(void 0===A&&(A=Ie(n,u)),void 0===l)l=Ie(e,h);else if(!l.has(t)){h++,Kt(i);continue}if(!A.has(t)){c=ke(Ne(t)),he(t,s.element),h++,l.delete(t),Kt(i);continue}if(l.has(r)){const t=wa(Vt,r);t!==c&&s.withBefore(c??s.before).insertChild(t),c=ke(Te(r,s.element)),h++,u++}else _e(r,s.withBefore(c??s.before)),u++}const o=ie.get(r);null!==o&&Yr(o)?null===Gt&&(Gt=o.getFormat(),Yt=o.getStyle(),Wt=o.__key):Ps(o)&&u<=a&&!o.isInline()&&(zt+=F),Kt(i)}const p=h>o,d=u>a;if(p&&!d){const e=n[a+1],r=void 0===e?null:Vt.getElementByKey(e);Se(n,t,u,a,s.withBefore(r??s.before))}else d&&!p&&ue(e,h,o,s.element)}(e,i,l,s,o,n)}l.__lexicalTextContent=zt,l.__lexicalFirstTextKey=Wt,zt=i+zt}(t,e,Ol(e,n,Vt)),Fa(e)||(i=e,null==Gt||Gt===i.__textFormat||ce||i.setTextFormat(Gt),function(t){null==Yt||Yt===t.__textStyle||ce||t.setTextStyle(Yt)}(e))}function Be(t,e,n){const r=e.__lexicalFirstTextKey;if(null!=r){const e=t.__key;let i=r;for(;null!==i;){const t=ie.get(i);if(void 0===t){i=null;break}if(t.__parent===e)break;i=t.__parent}if(null!==i&&!n.has(i)){const t=ie.get(r);if(Yr(t))return Gt=t.getFormat(),void(Yt=t.getStyle())}}e.__lexicalFirstTextKey=Wt}function Te(t,e){const n=ne.get(t);let i=ie.get(t);void 0!==n&&void 0!==i||r(61);const s=Ae||ee.has(t)||te.has(t),o=wa(Vt,t);if(n===i&&!s){let t;if(Ps(n)){const e=o.__lexicalTextContent;"string"!=typeof e&&r(355,n.getType()),t=e,qt(o)}else t=n.getTextContent();return zt+=t,o}if(n!==i&&s&&ma(ae,Xt,Jt,i,"updated"),le.$updateDOM(i,n,o,Vt)){const n=_e(t,null);return null===e&&r(62),e.replaceChild(n,o),he(t,null),n}if(Ps(n)){Ps(i)||r(334,t);const e=i.__indent;(Ae||e!==n.__indent)&&de(o,e);const a=i.__format;(Ae||a!==n.__format)&&fe(o,a);const l=s&&(Oe(i).size>0||Oe(n).size>0)?we(n,i,o):"";if(s){const t=zt;if(Ee(n,i,o),Fs(i)||i.isInline()||Ce(0,i,o),""!==l){const e=o.__lexicalTextContent||"";o.__lexicalTextContent=l+e,zt=t+l+e,o.__lexicalSlotTextLength=l.length}else(Oe(i).size>0||Oe(n).size>0)&&(o.__lexicalSlotTextLength=0)}else{const t=o.__lexicalTextContent;"string"!=typeof t&&r(356,n.getType()),zt+=t,qt(o)}if((Ae||i.__dir!==n.__dir||i.__parent!==n.__parent)&&(ge(o,i),Fs(i)&&!Ae))for(const t of i.getChildren())Ps(t)&&ge(wa(Vt,t.getKey()),t)}else{const e=i.getTextContent();if(Ns(i)){const e=i.decorate(Vt,Ht);null!==e&&Pe(t,e),s&&(Oe(i).size>0||Oe(n).size>0)&&we(n,i,o)}zt+=e}if(!ce&&Fs(i)){const t=i.getLatest();if(t.__cachedText!==zt){const e=t.getWritable();e.__cachedText=zt,i=e}}return le.$decorateDOM(i,n,o,Vt),jt(i),o}function Pe(t,e){let n=Vt._pendingDecorators;const r=Vt._decorators;if(null===n){if(r[t]===e)return;n=Zo(Vt)}n[t]=e}function ke(t){let e=t.nextSibling;return null!==e&&e===Vt._blockCursorElement&&(e=e.nextSibling),e}function Ie(t,e){const n=new Set;for(let r=e;r<t.length;r++)n.add(t[r]);return n}function Ne(t){const e=se.get(t);return void 0===e&&r(75,t),e}function Qe(t){return{type:t}}const Fe=Qe("SELECTION_CHANGE_COMMAND"),Le=Qe("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Me=Qe("CLICK_COMMAND"),De=Qe("BEFORE_INPUT_COMMAND"),Re=Qe("INPUT_COMMAND"),Ue=Qe("COMPOSITION_START_COMMAND"),$e=Qe("COMPOSITION_END_COMMAND"),je=Qe("DELETE_CHARACTER_COMMAND"),He=Qe("INSERT_LINE_BREAK_COMMAND"),Ve=Qe("INSERT_PARAGRAPH_COMMAND"),Xe=Qe("CONTROLLED_TEXT_INSERTION_COMMAND"),ze=Qe("PASTE_COMMAND"),Ge=Qe("REMOVE_TEXT_COMMAND"),Ye=Qe("DELETE_WORD_COMMAND"),We=Qe("DELETE_LINE_COMMAND"),Ze=Qe("FORMAT_TEXT_COMMAND"),Ke=Qe("SET_TEXT_FORMAT_COMMAND"),qe=Qe("UNDO_COMMAND"),Je=Qe("REDO_COMMAND"),tn=Qe("KEYDOWN_COMMAND"),en=Qe("KEY_ARROW_RIGHT_COMMAND"),nn=Qe("MOVE_TO_END"),rn=Qe("KEY_ARROW_LEFT_COMMAND"),sn=Qe("MOVE_TO_START"),on=Qe("KEY_ARROW_UP_COMMAND"),an=Qe("KEY_ARROW_DOWN_COMMAND"),ln=Qe("KEY_ENTER_COMMAND"),An=Qe("KEY_SPACE_COMMAND"),cn=Qe("KEY_BACKSPACE_COMMAND"),hn=Qe("KEY_ESCAPE_COMMAND"),un=Qe("KEY_DELETE_COMMAND"),pn=Qe("KEY_TAB_COMMAND"),dn=Qe("INSERT_TAB_COMMAND"),fn=Qe("INDENT_CONTENT_COMMAND"),gn=Qe("OUTDENT_CONTENT_COMMAND"),mn=Qe("DROP_COMMAND"),yn=Qe("FORMAT_ELEMENT_COMMAND"),vn=Qe("DRAGSTART_COMMAND"),On=Qe("DRAGOVER_COMMAND"),bn=Qe("DRAGEND_COMMAND"),xn=Qe("COPY_COMMAND"),wn=Qe("CUT_COMMAND"),_n=Qe("SELECT_ALL_COMMAND"),Sn=Qe("CLEAR_EDITOR_COMMAND"),Cn=Qe("CLEAR_HISTORY_COMMAND"),En=Qe("CAN_REDO_COMMAND"),Bn=Qe("CAN_UNDO_COMMAND"),Tn=Qe("FOCUS_COMMAND"),Pn=Qe("BLUR_COMMAND"),kn=Qe("KEY_MODIFIER_COMMAND");function In(t){const e=new Map;return{dispose(){for(const t of e.values())t.dispose();e.clear()},register(n,r){let i=e.get(n);void 0===i&&(i={dispose:t(n,r),holders:new Set},e.set(n,i));const s=()=>{const t=e.get(n);t&&t.holders.delete(s)&&0===t.holders.size&&(e.delete(n),t.dispose())};return i.holders.add(s),s}}}function Nn(t,e,n,r){return t.addEventListener(e,n,r),t.removeEventListener.bind(t,e,n,r)}const Qn=Object.freeze({}),Fn=[["keydown",function(t,e){const n=e._inputState;n.lastKeyDownTimeStamp=t.timeStamp,n.lastKeyCode=t.key,"Backspace"!==t.key&&zn(n),e.isComposing()||xa(e,tn,t)}],["pointerdown",function(t,e){const n=sl(t),r=t.pointerType;hl(n)&&"touch"!==r&&"pen"!==r&&0===t.button&&Es(e,()=>{Ll(n,e)||(e._inputState.isSelectionChangeFromMouseDown=!0)})}],["compositionstart",function(t,e){xa(e,Ue,t)}],["compositionend",function(t,e){const n=e._inputState;l?n.compositionPhase="ending-firefox":c||!u&&!f?xa(e,$e,t):(n.compositionPhase="ending-safari",n.compositionEndData=t.data)}],["input",function(t,e){t.stopPropagation();const n=e._inputState;zn(n),Es(e,()=>{Yn(t,e)||e.dispatchCommand(Re,t)},{event:t}),n.unprocessedBeforeInputData=null}],["click",function(t,e){Es(e,()=>{const n=Ni(),r=ja(ka(e)),i=Qi();if(r)if(si(n)){const t=n.anchor,e=t.getNode();"element"===t.type&&0===t.offset&&n.isCollapsed()&&!Fs(e)&&1===qo().getChildrenSize()&&e.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}else if("touch"===t.pointerType||"pen"===t.pointerType){const n=qa(r,e._rootElement).anchorNode;(cl(n)||Qo(n))&&Jo(Ii(i,r,e,t))}xa(e,Me,t)})}],["cut",Qn],["copy",Qn],["dragstart",Qn],["dragover",Qn],["dragend",Qn],["paste",Qn],["focus",Qn],["blur",Qn],["drop",Qn]];A&&Fn.push(["beforeinput",(t,e)=>function(t,e){const n=t.inputType;"deleteCompositionText"===n||l&&ba(e)||"insertCompositionText"!==n&&Es(e,()=>{Yn(t,e)||xa(e,De,t)},{event:t})}(t,e)]);const Ln=new WeakMap,Mn=new WeakMap,Dn=In(t=>(t.addEventListener("selectionchange",ir),()=>t.removeEventListener("selectionchange",ir)));function Rn(t,e,n,r,i,s){const o=t.anchor,a=t.focus,l=o.getNode(),c=hs();let h;if(void 0!==s)h=s;else{const t=ja(ka(c));h=null!==t?qa(t,c._rootElement):null}const u=null!==h?h.anchorNode:null,p=o.key,d=c.getElementByKey(p),f=n.length;return p!==a.key||!Yr(l)||(!i&&(!A||c._inputState.lastBeforeInputInsertTextTimeStamp<r+50)||l.isDirty()&&f<2||na(n))&&o.offset!==a.offset&&!l.isComposing()||No(l)||l.isDirty()&&f>1||(i||!A)&&null!==d&&!l.isComposing()&&u!==_l(l,d,c)||null!==h&&null!==e&&(!e.collapsed||e.startContainer!==h.anchorNode||e.startOffset!==h.anchorOffset)||!l.isComposing()&&(l.getFormat()!==t.format||l.getStyle()!==t.style)||function(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;const n=t.anchor.offset,r=e.getParentOrThrow(),i=Io(e);return 0===n?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||i||function(t){const e=t.getPreviousSibling();return(Yr(e)||Ps(e)&&e.isInline())&&!e.canInsertTextAfter()}(e):n===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||i)}(t,l)}function Un(t,e){return Qo(t)&&null!==t.nodeValue&&0!==e&&e!==t.nodeValue.length}function $n(t,e,n){const{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:a}=qa(t,e._rootElement),l=e._inputState;l.isSelectionChangeFromDOMUpdate&&(l.isSelectionChangeFromDOMUpdate=!1,Un(i,s)&&Un(o,a)&&!l.postDeleteSelectionToRestore)||Es(e,()=>{if(!n)return void Jo(null);if(!Eo(e,i,o))return;let A=Ni();if(l.postDeleteSelectionToRestore&&si(A)&&A.isCollapsed()){const t=A.anchor,e=l.postDeleteSelectionToRestore.anchor;(t.key===e.key&&t.offset===e.offset+1||1===t.offset&&e.getNode().is(t.getNode().getPreviousSibling()))&&(A=l.postDeleteSelectionToRestore.clone(),Jo(A))}if(l.postDeleteSelectionToRestore=null,si(A)){const n=A.anchor,c=n.getNode();if(A.isCollapsed()){"Range"===t.type&&i===o&&(A.dirty=!0);const s=ka(e).event,a=s?s.timeStamp:performance.now(),{format:h,style:u,offset:p,key:d,timeStamp:f}=l.collapsedSelectionFormat,g=qo(),m=!1===e.isComposing()&&""===g.getTextContent();if(a<f+200&&n.offset===p&&n.key===d)jn(A,h,u);else if("text"===n.type)Yr(c)||r(141),Hn(A,c);else if("element"===n.type&&!m){Ps(c)||r(259);const t=n.getNode();t.isEmpty()?function(t,e){jn(t,e.getTextFormat(),e.getTextStyle())}(A,t):jn(A,A.format,"")}}else{const t=n.key,e=A.focus.key,r=A.getNodes(),i=r.length,o=A.isBackward(),l=o?a:s,c=o?s:a,h=o?e:t,u=o?t:e;let p=2047,d=!1;for(let t=0;t<i;t++){const e=r[t],n=e.getTextContentSize();if(Yr(e)&&0!==n&&!(0===t&&e.__key===h&&l===n||t===i-1&&e.__key===u&&0===c)&&(d=!0,p&=e.getFormat(),0===p))break}A.format=d?p:0}}xa(e,Fe,void 0)})}function jn(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function Hn(t,e){jn(t,e.getFormat(),e.getStyle())}function Vn(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return 0===e.length?null:e[0]}function Xn(t){const{lastKeyCode:e}=hs()._inputState;if(null==t||t.length<=1||null==e)return;const n=1===e.length?e:"Enter"===e?"\n":"Tab"===e?"\t":null;if(!n)return;const r=Ni();if(!si(r)||!r.isCollapsed())return;const i=r.anchor.getNode();if(!Yr(i))return;const{offset:s}=r.anchor;if(i.getTextContentSize()===s){const t=i.getNextSibling();if("\n"===n){if(Xs(t))t.selectEnd();else if(!t){const t=Hl(i,Ei),e=t&&t.getNextSibling();Ps(e)&&e.selectStart()}}else"\t"===n?qr(t)&&t.selectEnd():Yr(t)&&t.getTextContent()[0]===n&&t.select(1,1)}else i.getTextContent()[s]===n&&i.select(s+1,s+1)}function zn(t){t.isInsertTextAfterHandledSelectionCommand=!1,null!==t.handledSelectionCommandTimeoutId&&(clearTimeout(t.handledSelectionCommandTimeoutId),t.handledSelectionCommandTimeoutId=null)}function Gn(t){zn(t),t.isInsertTextAfterHandledSelectionCommand=!0,t.handledSelectionCommandTimeoutId=setTimeout(()=>zn(t),0)}function Yn(t,e){const n=sl(t);if(cl(n)&&Ll(n,e))return!0;const r=e.getRootElement();if(null===r)return!1;const i=il(r.ownerDocument);return null!==i&&r.contains(i)&&Ll(i,e)}function Wn(t){const e=t.inputType,n=Vn(t),i=hs(),s=i._inputState,o=Ni();if("insertText"===e&&t.data&&s.isInsertTextAfterHandledSelectionCommand){if(zn(s),t.preventDefault(),si(o)&&!o.isCollapsed()){const t=o.isBackward()?o.anchor:o.focus;o.anchor.set(t.key,t.offset,t.type),o.focus.set(t.key,t.offset,t.type)}return!0}if("deleteContentBackward"===e){if(null===o){const t=Qi();if(!si(t))return!0;Jo(t.clone())}if(si(o)){const e=o.anchor.key===o.focus.key;if(function(t,e){return"MediaLast"===t.lastKeyCode&&e<t.lastKeyDownTimeStamp+30}(s,t.timeStamp)&&i.isComposing()&&e){if(Ho(null),s.lastKeyDownTimeStamp=0,setTimeout(()=>{Es(i,()=>{Ho(null)})},30),si(o)){const t=o.anchor.getNode();t.markDirty(),Yr(t)||r(142),Hn(o,t)}}else{if(Ho(null),c&&null!==n&&!n.collapsed&&(o.applyDOMRange(n),!o.isCollapsed()))return t.preventDefault(),o.removeText(),!0;t.preventDefault();const r=o.anchor.getNode(),a=r.getTextContent(),l=r.canInsertTextAfter(),A=0===o.anchor.offset&&o.focus.offset===a.length;let h=d&&e&&!A&&l;if(h&&o.isCollapsed()&&(h=!Ns(Oa(o.anchor,!0))),!h){xa(i,je,!0);const t=Ni();d&&si(t)&&t.isCollapsed()&&(s.postDeleteSelectionToRestore=t,setTimeout(()=>s.postDeleteSelectionToRestore=null))}}return!0}}if(!si(o))return!0;const a=t.data;null!==s.unprocessedBeforeInputData&&oa(!1,i,s.unprocessedBeforeInputData),o.dirty&&null===s.unprocessedBeforeInputData||!o.isCollapsed()||Fs(o.anchor.getNode())||null===n||o.applyDOMRange(n),s.unprocessedBeforeInputData=null;const l=o.anchor,A=o.focus,h=l.getNode(),u=A.getNode();if("insertText"===e||"insertTranspose"===e){if("\n"===a)t.preventDefault(),xa(i,He,!1);else if(a===F)t.preventDefault(),xa(i,Ve,void 0);else if(null==a&&t.dataTransfer){const e=t.dataTransfer.getData("text/plain");t.preventDefault(),o.insertRawText(e)}else null!=a&&Rn(o,n,a,t.timeStamp,!0)?(t.preventDefault(),xa(i,Xe,a),Xn(a)):s.unprocessedBeforeInputData=a;return s.lastBeforeInputInsertTextTimeStamp=t.timeStamp,!0}switch(t.preventDefault(),e){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":xa(i,Xe,t),Xn((t.dataTransfer?t.dataTransfer.getData("text/plain"):null)??t.data);break;case"insertFromComposition":{const e=s.hadOrphanedCompositionEvents;s.hadOrphanedCompositionEvents=!1;const n=i._compositionKey;Ho(null),e||xa(i,Xe,t),Jn(n);break}case"insertLineBreak":Ho(null),xa(i,He,!1);break;case"insertParagraph":Ho(null),s.isInsertLineBreak&&!c?(s.isInsertLineBreak=!1,xa(i,He,!1)):xa(i,Ve,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":xa(i,ze,t);break;case"deleteByComposition":(function(t,e){return t!==e||Ps(t)||Ps(e)||!Io(t)||!Io(e)})(h,u)&&xa(i,Ge,t);break;case"deleteByDrag":Ea(_r),xa(i,Ge,t);break;case"deleteByCut":xa(i,Ge,t);break;case"deleteContent":xa(i,je,!1);break;case"deleteWordBackward":xa(i,Ye,!0);break;case"deleteWordForward":xa(i,Ye,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":xa(i,We,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":xa(i,We,!1);break;case"formatStrikeThrough":xa(i,Ze,"strikethrough");break;case"formatBold":xa(i,Ze,"bold");break;case"formatItalic":xa(i,Ze,"italic");break;case"formatUnderline":xa(i,Ze,"underline");break;case"historyUndo":xa(i,qe,void 0);break;case"historyRedo":xa(i,Je,void 0)}return!0}function Zn(t){const e=hs(),n=e._inputState,r=Ni(),i=t.data,s=Vn(t);let o=!1;if(null!=i&&si(r)){const a=ja(ka(e)),c=null!==a?qa(a,e._rootElement):null,h="insertCompositionText"===t.inputType&&"ending-firefox"!==n.compositionPhase&&!e.isComposing();h&&(n.hadOrphanedCompositionEvents=!0);const u=r.anchor.getNode(),p="insertCompositionText"===t.inputType&&"ending-firefox"!==n.compositionPhase&&e.isComposing()&&Yr(u)&&No(u);if(!h&&!p&&Rn(r,s,i,t.timeStamp,!1,c)){if(o=!0,"ending-firefox"===n.compositionPhase){const t=tr(e,i);if(n.compositionPhase="idle",t)return Ea(Cr),ta(),!0}const s=r.anchor.getNode();if(null===a||null===c)return!0;const h=r.isBackward(),u=h?r.anchor.offset:r.focus.offset,p=h?r.focus.offset:r.anchor.offset;A&&!r.isCollapsed()&&Yr(s)&&null!==c.anchorNode&&s.getTextContent().slice(0,u)+i+s.getTextContent().slice(u+p)===sa(c.anchorNode)||xa(e,Xe,i);const f=i.length;l&&f>1&&"insertCompositionText"===t.inputType&&!e.isComposing()&&(r.anchor.offset-=f,r._cachedNodes=null,r._cachedIsBackward=null),d&&e.isComposing()&&(n.lastKeyDownTimeStamp=0,Ho(null))}}return o||(oa(!1,e,null!==i?i:void 0),"ending-firefox"===n.compositionPhase&&(tr(e,i||void 0),Ea(Cr),n.compositionPhase="idle")),ta(),!0}function Kn(t){const e=hs(),n=e._inputState,r=Ni();if(si(r)&&!e.isComposing()){n.compositionPhase="composing",n.hadOrphanedCompositionEvents=!1;const i=r.anchor,s=r.anchor.getNode();if(Ho(i.key),Ea(Sr),t.timeStamp<n.lastKeyDownTimeStamp+30||"element"===i.type||!r.isCollapsed()||!d&&(s.getFormat()!==r.format||Yr(s)&&s.getStyle()!==r.style)||Yr(s)&&(No(s)||0===i.offset&&!s.canInsertTextBefore()||i.offset===s.getTextContentSize()&&!s.canInsertTextAfter())){xa(e,Xe,L);const t=Ni();si(t)&&Ho(t.anchor.key)}}return!0}function qn(t){const e=hs();return e._inputState.compositionPhase="idle",tr(e,t.data),Ea(Cr),!0}function Jn(t){if(null===t)return;const e=Xo(t);if(!Yr(e)||"text"===e.getType()||No(e)||!e.isAttached())return;const n=Ni(),r=si(n)&&n.anchor.key===t?n.anchor.offset:null,i=Gr(e.getTextContent());if(i.setFormat(e.getFormat()),i.setStyle(e.getStyle()),e.replace(i),null!==r){const t=Math.min(r,i.getTextContentSize());i.select(t,t)}}function tr(t,e){const n=t._compositionKey;if(Ho(null),null!==n&&null!=e){if(""===e){const e=Xo(n),r=t.getElementByKey(n),i=null!==r&&Yr(e)?_l(e,r,t):null;if(null!==i&&null!==i.nodeValue&&Yr(e)){const n=ja(ka(t)),r=n&&qa(n,t._rootElement);let s=null,o=null;null!==r&&r.anchorNode===i&&(s=r.anchorOffset,o=r.focusOffset),aa(e,i.nodeValue,s,o,!0)}return Jn(n),!1}if("\n"===e[e.length-1]){const e=Ni();if(si(e)||ai(e)){if(si(e)){const t=e.focus;e.anchor.set(t.key,t.offset,t.type)}return xa(t,ln,null),Jn(n),!1}}const r=Xo(n);if(null!==r&&Yr(r)&&No(r)){r.markDirty();const t=Ni(),i=r.getTextContentSize(),s=si(t)&&t.anchor.key===n?t.anchor.offset:i;return r.select(s,s).insertText(e),!0}}return oa(!0,t,e),Jn(n),!1}function er(t){const e=hs(),n=e._inputState;if(null==t.key)return!0;if("ending-safari"===n.compositionPhase){const r=da(t);if(r&&Es(e,()=>{tr(e,n.compositionEndData)}),n.compositionPhase="idle",n.compositionEndData="",r)return!0}if(function(t){return ha(t,"ArrowRight",{shiftKey:"any"})}(t))xa(e,en,t);else if(function(t){return ha(t,"ArrowRight",{...ua,shiftKey:"any"})}(t))xa(e,nn,t);else if(function(t){return ha(t,"ArrowLeft",{shiftKey:"any"})}(t))xa(e,rn,t);else if(function(t){return ha(t,"ArrowLeft",{...ua,shiftKey:"any"})}(t))xa(e,sn,t);else if(function(t){return ha(t,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))xa(e,on,t);else if(function(t){return ha(t,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))xa(e,an,t);else if(function(t){return ha(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))n.isInsertLineBreak=!0,xa(e,ln,t);else if(function(t){return" "===t.key}(t))xa(e,An,t);else if(function(t){return a&&ha(t,"o",{ctrlKey:!0})}(t))t.preventDefault(),n.isInsertLineBreak=!0,xa(e,He,!0);else if(function(t){return ha(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))n.isInsertLineBreak=!1,xa(e,ln,t);else if(function(t){return ha(t,"Backspace",{shiftKey:"any"})||a&&ha(t,"h",{ctrlKey:!0})}(t))da(t)?xa(e,cn,t)&&Gn(n):(t.preventDefault(),xa(e,je,!0));else if(function(t){return"Escape"===t.key}(t))xa(e,hn,t);else if(function(t){return ha(t,"Delete",{})||a&&ha(t,"d",{ctrlKey:!0})}(t))!function(t){return"Delete"===t.key}(t)?(t.preventDefault(),xa(e,je,!1)):xa(e,un,t);else if(function(t){return ha(t,"Backspace",pa)}(t))t.preventDefault(),xa(e,Ye,!0);else if(function(t){return ha(t,"Delete",pa)}(t))t.preventDefault(),xa(e,Ye,!1);else if(function(t){return a&&ha(t,"Backspace",{metaKey:!0})}(t))t.preventDefault(),xa(e,We,!0);else if(function(t){return a&&(ha(t,"Delete",{metaKey:!0})||ha(t,"k",{ctrlKey:!0}))}(t))t.preventDefault(),xa(e,We,!1);else if(function(t){return ha(t,"b",ua)}(t))t.preventDefault(),xa(e,Ze,"bold");else if(function(t){return ha(t,"u",ua)}(t))t.preventDefault(),xa(e,Ze,"underline");else if(function(t){return ha(t,"i",ua)}(t))t.preventDefault(),xa(e,Ze,"italic");else if(function(t){return ha(t,"Tab",{shiftKey:"any"})}(t))xa(e,pn,t);else if(function(t){return ha(t,"z",ua)}(t))t.preventDefault(),xa(e,qe,void 0);else if(function(t){return a?ha(t,"z",{metaKey:!0,shiftKey:!0}):ha(t,"y",{ctrlKey:!0})||ha(t,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),xa(e,Je,void 0);else{const r=e._editorState._selection;!function(t){return ha(t,"a",ua)}(t)?null===r||si(r)||(function(t){return ha(t,"c",ua)}(t)?(t.preventDefault(),xa(e,xn,t)):function(t){return ha(t,"x",ua)}(t)&&(t.preventDefault(),xa(e,wn,t))):(t.preventDefault(),xa(e,_n,t)&&Gn(n))}return function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey}(t)&&e.dispatchCommand(kn,t),!0}function nr(t){let e=t.__lexicalEventHandles;return void 0===e&&(e=[],t.__lexicalEventHandles=e),e}const rr=new Map;function ir(t){const e=Ha(t.target);if(null===e)return;const n=Sa(t.target);let r=null,i=null;const s=null!==n?Mn.get(n):void 0;if(null!==n){if(void 0!==s){const t=s.editors;let n=s.hasShadowEditor;if(void 0===n){n=!1;for(const e of t)if(null!==e._rootElement&&Va(e._rootElement.getRootNode())){n=!0;break}s.hasShadowEditor=n}if(n){let n=null,s=null;for(const o of t){const t=o._rootElement;if(null===t)continue;const a=qa(e,t).anchorNode;if(null!==a&&To(a)===o){if(Va(t.getRootNode())){r=o,i=a;break}null===n&&(n=o,s=a)}}null===r&&null!==n&&(r=n,i=s)}else{const t=e.anchorNode;null===t||cl(t)&&null!==t.shadowRoot||(r=To(t),null!==r&&(i=t))}}if(null===r){const t=il(n);r=null!==t?To(t):null}}if(null===r)return;if(r._inputState.isSelectionChangeFromMouseDown){if(void 0!==s)for(const t of s.editors)t._inputState.isSelectionChangeFromMouseDown=!1;Es(r,()=>{const n=Qi(),s=i??qa(e,r._rootElement).anchorNode;(cl(s)||Qo(s))&&Jo(Ii(n,e,r,t))})}const o=ra(r),a=o[o.length-1],l=a._key,A=rr.get(l),c=A||a;c!==r&&$n(e,c,!1),$n(e,r,!0),r!==a?rr.set(l,r):A&&rr.delete(l)}function sr(t){t._lexicalHandled=!0}function or(t){return!0===t._lexicalHandled}function ar(t){const e=Ln.get(t);if(void 0===e)return;const n=Mn.get(e);if(void 0===n)return;Ln.delete(t);const i=Po(t);Bo(i)?(function(t){if(null!==t._parentEditor){const e=ra(t),n=e[e.length-1]._key;rr.get(n)===t&&rr.delete(n)}else rr.delete(t._key)}(i),n.editors.delete(i),n.hasShadowEditor=void 0,t.__lexicalEditor=null):i&&r(198);const s=nr(t);for(let t=0;t<s.length;t++)s[t]();t.__lexicalEventHandles=[]}function lr(t,e,n){as();const i=t.__key,s=t.getParent();if(null===s)return void(null!==Wl(t)&&r(367,i,String(Wl(t))));const o=function(t){const e=Ni();if(!si(e)||!Ps(t))return e;const{anchor:n,focus:r}=e,i=n.getNode(),s=r.getNode();return Ta(i,t)&&n.set(t.__key,0,"element"),Ta(s,t)&&r.set(t.__key,0,"element"),e}(t);let a=!1;if(si(o)&&e){const e=o.anchor,n=o.focus;e.key===i&&(Mi(e,t,s,t.getPreviousSibling(),t.getNextSibling()),a=!0),n.key===i&&(Mi(n,t,s,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else ai(o)&&e&&t.isSelected()&&t.selectPrevious();if(si(o)&&e&&!a){const e=t.getIndexWithinParent();Uo(t),Fi(o,s,e,-1)}else Uo(t);n||Fa(s)||s.canBeEmpty()||!s.isEmpty()||lr(s,e),e&&o&&Fs(s)&&s.isEmpty()&&s.selectEnd()}function Ar(t){return t}const cr=Symbol.for("ephemeral");function hr(t){return t[cr]||!1}const ur={configurable:!0,enumerable:!1,value:void 0,writable:!0};class pr{__type;__key;__parent;__prev;__next;__state;[Ut];static getType(){const{ownNodeType:t}=Rl(this);return void 0===t&&r(64,this.name),t}static clone(t){r(65,this.name)}$config(){return{}}config(t,e){const n=e.extends||Xl(this.constructor);return Object.assign(e,{extends:n}),"string"==typeof t&&Object.assign(e,{type:t}),{[t]:e}}afterCloneFrom(t){this.__key===t.__key?(this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state):t.__state&&(this.__state=t.__state.getWritable(this))}resetOnCopyNodeFrom(t){this.__state&&(this.__state=this.__state.getWritable(this).resetOnCopyNode())}static importDOM;constructor(t){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",ur),Object.defineProperty(this,Ut,ur),Ro(this,t)}getType(){return this.__type}isInline(){r(137,this.constructor.name)}isAttached(){let t=this.__key;for(;null!==t;){if("root"===t)return!0;const e=Xo(t);if(null===e)break;t=null!==e.__parent?e.__parent:Wl(e)}return!1}isSelected(t){const e=t||Ni();if(null==e)return!1;const n=e.getNodes().some(t=>t.__key===this.__key);if(Yr(this))return n;if(si(e)&&"element"===e.anchor.type&&"element"===e.focus.type){if(e.isCollapsed())return!1;const t=this.getParent();if(Ns(this)&&this.isInline()&&t){const n=e.isBackward()?e.focus:e.anchor;if(t.is(n.getNode())&&n.offset===t.getChildrenSize()&&this.is(t.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(null===t)return-1;let e=t.getFirstChild(),n=0;for(;null!==e;){if(this.is(e))return n;n++,e=e.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return null===t?null:Xo(t)}getParentOrThrow(){const t=this.getParent();return null===t&&r(66,this.__key),t}getTopLevelElement(){let t=this;for(;null!==t;){const e=t.getParent();if(Fa(e)||null!==Wl(t))return Ps(t)||t===this&&Ns(t)||r(194),t;t=e}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return null===t&&r(67,this.__key),t}getParents(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return null===t?null:Xo(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(null===e)return t;let n=e.getFirstChild();for(;null!==n&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return null===t?null:Xo(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=Ps(this)?this:this.getParent(),n=Ps(t)?t:t.getParent(),r=e&&n?zA(e,n):null;return r?r.commonAncestor:null}is(t){return null!=t&&this.__key===t.__key}isBefore(t){const e=zA(this,t);return null!==e&&("descendant"===e.type||("branch"===e.type?-1===HA(e):("same"!==e.type&&"ancestor"!==e.type&&r(279),!1)))}isParentOf(t){return Ta(t,this)}getNodesBetween(t){const e=this.isBefore(t),n=[],i=new Set;let s=this;for(;null!==s;){const o=s.__key;if(i.has(o)||(i.add(o),n.push(s)),s===t)break;const a=Ps(s)?e?s.getFirstChild():s.getLastChild():null;if(null!==a){s=a;continue}const l=e?s.getNextSibling():s.getPreviousSibling();if(null!==l){s=l;continue}const A=s.getParentOrThrow();if(i.has(A.__key)||n.push(A),A===t)break;let c=null,h=A;do{if(null===h&&r(68),c=e?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),null===h)break;null!==c||i.has(h.__key)||n.push(h)}while(null===c);s=c}return e||n.reverse(),n}isDirty(){const t=hs()._dirtyLeaves;return null!==t&&t.has(this.__key)}getLatest(){if(hr(this))return this;const t=Xo(this.__key);return null===t&&r(113),t}getWritable(){if(hr(this))return this;as();const t=As(),e=hs(),n=t._nodeMap,r=this.__key,i=this.getLatest(),s=e._cloneNotNeeded,o=Ni();if(null!==o&&o.setCachedNodes(null),s.has(r))return jo(i),i;const a=Bl(i);return s.add(r),jo(a),n.set(r,a),a}getTextContent(){return lA(this)}getTextContentSize(){return this.getTextContent().length}createDOM(t,e){r(70)}updateDOM(t,e,n){r(71)}getDOMSlot(t){return new K(t)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...t}}static importJSON(t){r(18,this.name)}updateFromJSON(t){return function(t,e){const n=t.getWritable(),r=e.$;let i=r;for(const t of Tt(n).flatKeys)t in e&&(void 0!==i&&i!==r||(i={...r}),i[t]=e[t]);return(n.__state||i)&&Bt(t).updateFromJSON(i),n}(this,t)}static transform(){return null}remove(t){lr(this,!0,t)}replace(t,e){as();let n=Ni();null!==n&&(n=n.clone()),Da(this,t);const i=this.getLatest(),s=this.__key,o=t.__key,a=t.getWritable(),l=this.getParentOrThrow().getWritable(),A=l.__size,c=a.getParent(),h=null!==c?a.getIndexWithinParent():-1;Uo(a),null!==c&&si(n)&&Fi(n,c,h,-1);const u=i.getPreviousSibling(),p=i.getNextSibling(),d=i.__prev,f=i.__next,g=i.__parent;lr(i,!1,!0),null===u?l.__first=o:u.getWritable().__next=o,a.__prev=d,null===p?l.__last=o:p.getWritable().__prev=o,a.__next=f,a.__parent=g,l.__size=A;let m=0;e&&(Ps(this)&&Ps(a)||r(139),m=a.getChildrenSize(),a.splice(m,0,this.getChildren()));const y=tA(this);if(y.length>0){Gl(this)&&Gl(a)||r(368,this.__key,a.__key);for(const t of y){const e=eA(this,t);null!==e&&(hA(this,t),cA(a,t,e))}}if(si(n)){Jo(n);const t=n.anchor,r=n.focus;t.key===s&&(e&&"element"===t.type?t.set(a.__key,m+t.offset,"element"):ni(t,a)),r.key===s&&(e&&"element"===r.type?r.set(a.__key,m+r.offset,"element"):ni(r,a))}return Vo()===s&&Ho(o),a}insertAfter(t,e=!0){as(),Da(this,t);const n=this.getWritable(),r=t.getWritable();this.getParentOrThrow();const i=r.getParent(),s=Ni();let o=!1,a=!1;if(null!==i){const n=t.getIndexWithinParent();if(si(s)){const t=i.__key,e=s.anchor,r=s.focus;o="element"===e.type&&e.key===t&&e.offset===n+1,a="element"===r.type&&r.key===t&&r.offset===n+1}Uo(r),e&&si(s)&&Fi(s,i,n,-1)}else Uo(r);const l=this.getNextSibling(),A=this.getParentOrThrow().getWritable(),c=r.__key,h=n.__next;if(null===l?A.__last=c:l.getWritable().__prev=c,A.__size++,n.__next=c,r.__next=h,r.__prev=n.__key,r.__parent=n.__parent,e&&si(s)){const t=this.getIndexWithinParent();Fi(s,A,t+1);const e=A.__key;o&&s.anchor.set(e,t+2,"element"),a&&s.focus.set(e,t+2,"element")}return t}insertBefore(t,e=!0){as(),Da(this,t);const n=this.getWritable(),r=t.getWritable();this.getParentOrThrow();const i=r.__key,s=Ni(),o=r.getParent(),a=null!==o?r.getIndexWithinParent():-1;Uo(r),null!==o&&e&&si(s)&&Fi(s,o,a,-1);const l=this.getPreviousSibling(),A=this.getParentOrThrow().getWritable(),c=n.__prev,h=this.getIndexWithinParent();return null===l?A.__first=i:l.getWritable().__next=i,A.__size++,n.__prev=i,r.__prev=c,r.__next=n.__key,r.__parent=n.__parent,e&&si(s)&&Fi(s,this.getParentOrThrow(),h),t}isParentRequired(){return!1}createParentElementNode(){return Ks()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){as();const n=Zl(this);if(null!==n)return n.selectPrevious(t,e);const r=this.getPreviousSibling(),i=this.getParentOrThrow();if(null===r)return i.select(0,0);if(Ps(r))return r.select();if(!Yr(r)){const t=r.getIndexWithinParent()+1;return i.select(t,t)}return r.select(t,e)}selectNext(t,e){as();const n=Zl(this);if(null!==n)return n.selectNext(t,e);const r=this.getNextSibling(),i=this.getParentOrThrow();if(null===r)return i.select();if(Ps(r))return r.select(0,0);if(!Yr(r)){const t=r.getIndexWithinParent();return i.select(t,t)}return r.select(t,e)}markDirty(){this.getWritable()}reconcileObservedMutation(t,e){this.markDirty()}}function dr(t){return t instanceof pr}const fr="historic",gr="history-push",mr="history-merge",yr="paste",vr="cut",Or="collaboration",br="skip-collab",xr="skip-scroll-into-view",wr="skip-dom-selection",_r="skip-selection-focus",Sr="composition-start",Cr="composition-end";function Er(t){const e={};if(!t)return e;let n="",r="",i=null,s=!1,o=!1,a=!1,l=0;const A=t.length;let c=-1;for(let h=0;h<A;h++){const A=t[h];if(s)"*"===A&&"/"===t[h+1]&&(s=!1,h++);else if(o)-1===c&&(c=h),o=!1;else if(null===i)if("/"!==A||"*"!==t[h+1])if('"'!==A&&"'"!==A)if("("!==A)if(")"!==A)if(a||":"!==A||0!==l){if(";"===A&&0===l){-1!==c&&(a?r+=t.slice(c,h):n+=t.slice(c,h),c=-1);const i=n.trim(),s=r.trim();""!==i&&""!==s&&(e[i]=s),n="",r="",a=!1;continue}-1===c&&(c=h)}else-1!==c&&(n+=t.slice(c,h),c=-1),a=!0;else-1===c&&(c=h),l=Math.max(0,l-1);else-1===c&&(c=h),l++;else-1===c&&(c=h),i=A;else-1!==c&&(a?r+=t.slice(c,h):n+=t.slice(c,h),c=-1),s=!0,h++;else-1===c&&(c=h),"\\"===A?o=!0:A===i&&(i=null)}-1!==c&&(a?r+=t.slice(c,A):n+=t.slice(c,A));const h=n.trim(),u=r.trim();return""!==h&&""!==u&&(e[h]=u),e}function Br(t,e,n){const r=n.trimEnd(),i=r.length-10;i>=0&&"!important"===r.slice(i).toLowerCase()?t.setProperty(e,r.slice(0,i).trim(),"important"):t.setProperty(e,n,"")}function Tr(t,e){for(const n in e){const r=e[n];null==r?t.removeProperty(n):Br(t,n,r)}}function Pr(t,e,n=""){if(e===n)return;const r=Er(n),i=Er(e);for(const e in i)delete r[e],Br(t,e,i[e]);for(const e in r)t.removeProperty(e)}function kr(t,e){return 16&e?"code":e&C?"mark":32&e?"sub":64&e?"sup":null}function Ir(t,e){return 1&e?"strong":2&e?"em":"span"}function Nr(t,e,n,r,i){const s=r.classList;let o=ga(i,"base");void 0!==o&&s.add(...o),o=ga(i,"underlineStrikethrough");let a=!1;const l=8&e&&4&e;void 0!==o&&(8&n&&4&n?(a=!0,l||s.add(...o)):l&&s.remove(...o));for(const t in $){const r=$[t];if(o=ga(i,t),void 0!==o)if(n&r){if(a&&("underline"===t||"strikethrough"===t)){e&r&&s.remove(...o);continue}(0===(e&r)||l&&"underline"===t||"strikethrough"===t)&&s.add(...o)}else e&r&&s.remove(...o)}}function Qr(t,e,n){const r=n.isComposing(),i=t+(r?Q:""),s=yl(),o=vl(s).$getDOMSlot(n,e,s),a=o.getFirstChild();if(null===a||a.nodeType!==Node.TEXT_NODE)return void o.insertChild(Wa().createTextNode(i));const A=a,c=A.nodeValue;if(c!==i)if(r||l){const[t,e,n]=function(t,e){const n=t.length,r=e.length;let i=0,s=0;for(;i<n&&i<r&&t[i]===e[i];)i++;for(;s+i<n&&s+i<r&&t[n-s-1]===e[r-s-1];)s++;return[i,n-i-s,e.slice(i,r-s)]}(c,i);0!==e&&A.deleteData(t,e),A.insertData(t,n)}else A.nodeValue=i}function Fr(t,e,n,r,i,s){Qr(i,t,e);const o=s.theme.text;void 0!==o&&Nr(0,0,r,t,o)}function Lr(t,e){const n=Wa().createElement(e);return n.appendChild(t),n}function Mr(t){return null!=t&&!0===t.__isInlineFormattable}class Dr extends pr{__text;__format;__style;__mode;__detail;get __isInlineFormattable(){return!0}static getType(){return"text"}static clone(t){return new Dr(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail}constructor(t="",e){super(e),this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return z[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Vo()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const e=$[t];return 0!==(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(t,e){return Mo(this.getLatest().__format,t,e)}canHaveFormat(){return!0}isInline(){return!0}createDOM(t,e){const n=this.__format,r=kr(0,n),i=Ir(0,n),s=null===r?i:r,o=Wa().createElement(s);let a=o;this.hasFormat("code")&&o.setAttribute("spellcheck","false"),null!==r&&(a=Wa().createElement(i),o.appendChild(a)),Fr(a,this,0,n,this.__text,t);const l=this.__style;return""!==l&&Pr(o.style,l),o}updateDOM(t,e,n){const i=this.__text,s=t.__format,o=this.__format,a=kr(0,s),l=kr(0,o),A=Ir(0,s),c=Ir(0,o);if((null===a?A:a)!==(null===l?c:l))return!0;if(a===l&&A!==c){const t=e.firstChild;null==t&&r(48);const s=Wa().createElement(c);return Fr(s,this,0,o,i,n),e.replaceChild(s,t),!1}let h=e;null!==l&&null!==a&&(h=e.firstChild,null==h&&r(49)),Qr(i,h,this);const u=n.theme.text;void 0!==u&&s!==o&&Nr(0,s,o,h,u);const p=t.__style,d=this.__style;return p!==d&&Pr(e.style,d,p),!1}static importDOM(){return{"#text":()=>({conversion:Hr,priority:0}),b:()=>({conversion:Ur,priority:0}),code:()=>({conversion:zr,priority:0}),em:()=>({conversion:zr,priority:0}),i:()=>({conversion:zr,priority:0}),mark:()=>({conversion:zr,priority:0}),s:()=>({conversion:zr,priority:0}),span:()=>({conversion:Rr,priority:0}),strong:()=>({conversion:zr,priority:0}),sub:()=>({conversion:zr,priority:0}),sup:()=>({conversion:zr,priority:0}),u:()=>({conversion:zr,priority:0})}}static importJSON(t){return Gr().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(t){let{element:e}=super.exportDOM(t);return cl(e)||r(132),e.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?e.style.textTransform="lowercase":this.hasFormat("uppercase")?e.style.textTransform="uppercase":this.hasFormat("capitalize")&&(e.style.textTransform="capitalize"),this.hasFormat("bold")&&(e=Lr(e,"b")),this.hasFormat("italic")&&(e=Lr(e,"i")),this.hasFormat("strikethrough")&&(e=Lr(e,"s")),this.hasFormat("underline")&&(e=Lr(e,"u")),{element:e}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,e){}setFormat(t){const e=this.getWritable();return e.__format="string"==typeof t?$[t]:t,e}setDetail(t){const e=this.getWritable();return e.__detail="string"==typeof t?j[t]:t,e}setStyle(t){const e=this.getWritable();return e.__style=t,e}toggleFormat(t){const e=Mo(this.getFormat(),t,null);return this.setFormat(e)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const e=X[t];if(this.__mode===e)return this;const n=this.getWritable();return n.__mode=e,n}setTextContent(t){if(this.__text===t)return this;const e=this.getWritable();return e.__text=t,e}select(t,e){as();let n=t,r=e;const i=Ni(),s=this.getTextContent(),o=this.__key;if("string"==typeof s){const t=s.length;void 0===n&&(n=t),void 0===r&&(r=t)}else n=0,r=0;if(!si(i))return Bi(o,n,o,r,"text","text");{const t=Vo();t!==i.anchor.key&&t!==i.focus.key||Ho(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,e,n,r){const i=this.getWritable(),s=i.__text,o=n.length;let a=t;a<0&&(a=o+a,a<0&&(a=0));const l=Ni();if(r&&si(l)){const e=t+o;l.setTextNodeRange(i,e,i,e)}const A=s.slice(0,a)+n+s.slice(a+e);return i.__text=A,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){as();const e=this.getLatest(),n=e.getTextContent();if(""===n)return[];const r=e.__key,i=Vo(),s=n.length;t.sort((t,e)=>t-e),t.push(s);const o=[],a=t.length;for(let e=0,r=0;e<s&&r<=a;r++){const i=t[r];i>e&&(o.push(n.slice(e,i)),e=i)}const l=o.length;if(1===l)return[e];const A=o[0],c=e.getParent();let h;const u=e.getFormat(),p=e.getStyle(),d=e.__detail;let f=!1,g=null,m=null;const y=Ni();if(si(y)){const[t,e]=y.isBackward()?[y.focus,y.anchor]:[y.anchor,y.focus];"text"===t.type&&t.key===r&&(g=t),"text"===e.type&&e.key===r&&(m=e)}e.isSegmented()?(h=Gr(A),h.__format=u,h.__style=p,h.__detail=d,h.__state=Qt(e,h),f=!0):h=e.setTextContent(A);const v=[h];for(let t=1;t<l;t++){const n=Gr(o[t]);n.__format=u,n.__style=p,n.__detail=d,n.__state=Qt(e,n);const s=n.__key;i===r&&Ho(s),v.push(n)}const O=g?g.offset:null,b=m?m.offset:null;let x=0;for(const t of v){if(!g&&!m)break;const e=x+t.getTextContentSize();if(null!==g&&null!==O&&O<=e&&O>=x&&(g.set(t.getKey(),O-x,"text"),O<e&&(g=null)),null!==m&&null!==b&&b<=e&&b>=x){m.set(t.getKey(),b-x,"text");break}x=e}if(null!==c){!function(t){const e=t.getPreviousSibling(),n=t.getNextSibling();null!==e&&jo(e),null!==n&&jo(n)}(this);const t=c.getWritable(),e=this.getIndexWithinParent();f?(t.splice(e,0,v),this.remove()):t.splice(e,1,v),si(y)&&Fi(y,c,e,l-1)}return v}mergeWithSibling(t){const e=t===this.getPreviousSibling();e||t===this.getNextSibling()||r(50);const n=this.__key,i=t.__key,s=this.__text,o=s.length;Vo()===i&&Ho(n);const a=Ni();if(si(a)){const r=a.anchor,s=a.focus;null!==r&&r.key===i&&Di(r,e,n,t,o),null!==s&&s.key===i&&Di(s,e,n,t,o)}const l=t.__text,A=e?l+s:s+l;this.setTextContent(A);const c=this.getWritable();return t.remove(),c}isTextEntity(){return!1}}function Rr(t){return{forChild:Wr(t.style),node:null}}function Ur(t){const e=t,n="normal"===e.style.fontWeight;return{forChild:Wr(e.style,n?void 0:"bold"),node:null}}const $r=new WeakMap;function jr(t){if(!cl(t))return!1;if("PRE"===t.nodeName)return!0;const e=t.style.whiteSpace;return"string"==typeof e&&e.startsWith("pre")}function Hr(t){const e=t;null===t.parentElement&&r(129);let n=e.textContent||"";if(null!==function(t){let e,n=t.parentNode;const r=[t];for(;null!==n&&void 0===(e=$r.get(n))&&!jr(n);)r.push(n),n=n.parentNode;const i=void 0===e?n:e;for(let t=0;t<r.length;t++)$r.set(r[t],i);return i}(e))return{node:Vi(n)};if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===n)return{node:null};if(" "===n[0]){let t=e,r=!0;for(;null!==t&&null!==(t=Vr(t,!1));){const e=t.textContent||"";if(e.length>0){/[ \t\n]$/.test(e)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let t=e,r=!0;for(;null!==t&&null!==(t=Vr(t,!0));)if((t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:Gr(n)}}function Vr(t,e){let n=t;for(;;){let t;for(;null===(t=e?n.nextSibling:n.previousSibling);){const t=n.parentElement;if(null===t)return null;n=t}if(n=t,cl(n)){const t=n.style.display;if(""===t&&!dl(n)||""!==t&&!t.startsWith("inline"))return null}let r=n;for(;null!==(r=e?n.firstChild:n.lastChild);)n=r;if(Qo(n))return n;if("BR"===n.nodeName)return null}}const Xr={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function zr(t){const e=Xr[t.nodeName.toLowerCase()];return void 0===e?{node:null}:{forChild:Wr(t.style,e),node:null}}function Gr(t=""){return Ma(new Dr(t))}function Yr(t){return t instanceof Dr}function Wr(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),i="700"===n||"bold"===n,s=r.includes("line-through"),o="italic"===t.fontStyle,a=r.includes("underline"),l=t.verticalAlign;return t=>Yr(t)||Mr(t)?(i&&!t.hasFormat("bold")&&t.toggleFormat("bold"),s&&!t.hasFormat("strikethrough")&&t.toggleFormat("strikethrough"),o&&!t.hasFormat("italic")&&t.toggleFormat("italic"),a&&!t.hasFormat("underline")&&t.toggleFormat("underline"),"sub"!==l||t.hasFormat("subscript")||t.toggleFormat("subscript"),"super"!==l||t.hasFormat("superscript")||t.toggleFormat("superscript"),e&&!t.hasFormat(e)&&t.toggleFormat(e),t):t}class Zr extends Dr{static getType(){return"tab"}static clone(t){return new Zr(t.__key)}constructor(t){super("\t",t),this.__detail=2}static importDOM(){return null}createDOM(t){const e=super.createDOM(t),n=ga(t.theme,"tab");return void 0!==n&&e.classList.add(...n),e}static importJSON(t){return Kr().updateFromJSON(t)}setTextContent(t){return super.setTextContent("\t")}spliceText(t,e,n,i){return""===n&&0===e||"\t"===n&&1===e||r(286),this}setDetail(t){return 2!==t&&r(127),this}setMode(t){return"normal"!==t&&r(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Kr(){return Ma(new Zr)}function qr(t){return t instanceof Zr}class Jr{key;offset;type;_selection;constructor(t,e,n){this._selection=null,this.key=t,this.offset=e,this.type=n}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){return this.key===t.key?this.offset<t.offset:jA(nc(GA(this,"next")),nc(GA(t,"next")))<0}getNode(){const t=Xo(this.key);return null===t&&r(20),t}set(t,e,n,r){const i=this._selection,s=this.key;r&&this.key===t&&this.offset===e&&this.type===n||(this.key=t,this.offset=e,this.type=n,os()||(Vo()===s&&Ho(t),null!==i&&(i.setCachedNodes(null),si(i)&&(i._cachedIsBackward=null),i.dirty=!0)))}}function ti(t,e,n){return new Jr(t,e,n)}function ei(t,e){let n=e.__key,r=t.offset,i="element";if(Yr(e)){i="text";const t=e.getTextContentSize();r>t&&(r=t)}else if(!Ps(e)){const t=e.getNextSibling();if(Yr(t))n=t.__key,r=0,i="text";else{const t=e.getParent();t&&(n=t.__key,r=e.getIndexWithinParent()+1)}}t.set(n,r,i)}function ni(t,e){if(Ps(e)){const n=e.getLastDescendant();Ps(n)||Yr(n)?ei(t,n):ei(t,e)}else ei(t,e)}class ri{_nodes;_cachedNodes;dirty;constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!ai(t))return!1;const e=this._nodes,n=t._nodes;return e.size===n.size&&Array.from(e).every(t=>n.has(t))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new ri(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes().filter(t=>null===Wl(t)),n=e.length;if(0===n)return;const r=e[n-1];let i;if(Yr(r))i=r.select();else{const t=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(t,t)}i.insertNodes(t);for(let t=0;t<n;t++)e[t].remove()}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=this._nodes,n=[];for(const t of e){const e=Xo(t);null!==e&&n.push(e)}return os()||(this._cachedNodes=n),n}getTextContent(){const t=this.getNodes();let e="";for(let n=0;n<t.length;n++)e+=t[n].getTextContent();return e}deleteNodes(){const t=this.getNodes().filter(t=>null===Wl(t));if((Ni()||Qi())===this&&t[0]){const e=BA(t[0],"next");WA(UA(e,e))}for(const e of t)e.remove();ii()}}function ii(){const t=qo();if(t.isEmpty()){const e=Ks();t.append(e),e.select()}}function si(t){return t instanceof oi}class oi{format;style;anchor;focus;_cachedNodes;_cachedIsBackward;dirty;constructor(t,e,n,r){this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this._cachedIsBackward=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return!!si(t)&&this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=function(t){const e=[],[n,r]=t.getTextSlices();n&&e.push(n.caret.origin);const i=new Set,s=new Set;for(const n of t)if(_A(n)){const{origin:t}=n;0===e.length?i.add(t):(s.add(t),e.push(t))}else{const{origin:t}=n;Ps(t)&&s.has(t)||e.push(t)}if(r&&e.push(r.caret.origin),wA(t.focus)&&Ps(t.focus.origin)&&null===t.focus.getNodeAtCaret())for(let n=IA(t.focus.origin,"previous");_A(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(e[e.length-1]);n=QA(n))i.delete(n.origin),e.pop();for(;e.length>1;){const t=e[e.length-1];if(!Ps(t)||s.has(t)||t.isEmpty()||i.has(t))break;e.pop()}if(0===e.length&&t.isCollapsed()){const n=nc(t.anchor),r=nc(t.anchor.getFlipped()),i=t=>bA(t)?t.origin:t.getNodeAtCaret(),s=i(n)||i(r)||(t.anchor.getNodeAtCaret()?n.origin:r.origin);e.push(s)}return e}(sc(KA(this),"next"));return os()||(this._cachedNodes=e),e}setTextNodeRange(t,e,n,r){return this.anchor.set(t.__key,e,"text"),this.focus.set(n.__key,r,"text"),this}getTextContent(){const t=this.getNodes();if(0===t.length)return"";const e=t[0],n=t[t.length-1],r=this.anchor,i=this.focus,s=r.isBefore(i),[o,a]=ui(this);let l="",A=!0;for(let c=0;c<t.length;c++){const h=t[c];if(Ps(h)&&!h.isInline()){A||(l+="\n");let t="";for(const e of tA(h)){const n=eA(h,e);null!==n&&(t+=n.getTextContent())}""!==t?(l+=t,A=!1):A=!h.isEmpty()}else if(A=!1,Yr(h)){let t=h.getTextContent();h===e?h===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(t=o<a?t.slice(o,a):t.slice(a,o)):t=s?t.slice(o):t.slice(a):h===n&&(t=s?t.slice(0,a):t.slice(0,o)),l+=t}else!Ns(h)&&!Xs(h)||h===n&&this.isCollapsed()||(l+=h.getTextContent())}return l}applyDOMRange(t){const e=hs(),n=e.getEditorState()._selection,r=Ci(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,n);if(null===r)return;const[i,s,o]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),o&&(this.dirty=!0),Dt(this)}clone(){const t=this.anchor,e=this.focus;return new oi(ti(t.key,t.offset,t.type),ti(e.key,e.offset,e.type),this.format,this.style)}toggleFormat(t){this.format=Mo(this.format,t,null),this.dirty=!0}setFormat(t){this.format=t,this.dirty=!0}setStyle(t){this.style=t,this.dirty=!0}hasFormat(t){const e=$[t];return 0!==(this.format&e)}insertRawText(t){this.insertNodes(Vi(t))}insertText(t){const e=this.anchor,n=this.focus,i=this.format,s=this.style;let o=e,a=n;!this.isCollapsed()&&n.isBefore(e)&&(o=n,a=e),"element"===o.type&&function(t,e,n,r){const i=t.getNode(),s=i.getChildAtIndex(t.offset),o=Gr();if(o.setFormat(n),o.setStyle(r),qs(s))s.splice(0,0,[o]);else if(null!==s){const t=Fa(i)?Ks().append(o):o;s.insertBefore(t)}else if(Fa(i)){const t=i.getLastChild();Ps(t)&&!t.isInline()&&t.isEmpty()?t.append(o):i.append(Ks().append(o))}else i.append(o);t.is(e)&&e.set(o.__key,0,"text"),t.set(o.__key,0,"text")}(o,a,i,s),"element"===a.type&&YA(a,nc(GA(a,"next")));const l=o.offset;let A=a.offset;const c=this.getNodes(),h=c.length;let u=c[0];Yr(u)||r(26);const p=u.getTextContent().length,d=u.getParentOrThrow();let f=c[h-1];if(1===h&&"element"===a.type&&(A=p,a.set(o.key,A,"text")),this.isCollapsed()&&l===p&&(No(u)||!u.canInsertTextAfter()||!d.canInsertTextAfter()&&null===u.getNextSibling())){const e=u.getNextSibling();let n;if(Yr(e)&&e.canInsertTextBefore()&&!No(e)?n=e:(n=Gr(),n.setFormat(i),n.setStyle(s),d.canInsertTextAfter()?u.insertAfter(n):d.insertAfter(n)),n.select(0,0),u=n,""!==t)return void this.insertText(t)}else if(this.isCollapsed()&&0===l&&(No(u)||!u.canInsertTextBefore()||!d.canInsertTextBefore()&&null===u.getPreviousSibling())){const e=u.getPreviousSibling();let n;if(!Yr(e)||No(e)?(n=Gr(),n.setFormat(i),d.canInsertTextBefore()?u.insertBefore(n):d.insertBefore(n)):n=e,n.select(),u=n,""!==t)return void this.insertText(t)}else if(u.isSegmented()&&l!==p)if(null!==Vo())u=u.setMode("normal").setFormat(i).setStyle(s);else{const t=Gr(u.getTextContent());t.setFormat(i),u.replace(t),u=t}else if(!this.isCollapsed()&&""!==t){const e=f.getParent();if(!d.canInsertTextBefore()||!d.canInsertTextAfter()||Ps(e)&&(!e.canInsertTextBefore()||!e.canInsertTextAfter()))return this.insertText(""),xi(this.anchor,this.focus),void this.insertText(t)}if(1===h){if(Io(u)){const e=Gr(t);return e.select(),void u.replace(e)}const e=u.getFormat(),n=u.getStyle();if(l!==A||e===i&&n===s){if(qr(u)){const e=Gr(t);return e.setFormat(i),e.setStyle(s),e.select(),void u.replace(e)}}else{if(""!==u.getTextContent()){const e=Gr(t);if(e.setFormat(i),e.setStyle(s),e.select(),0===l)u.insertBefore(e,!1);else{const[t]=u.splitText(l);t.insertAfter(e,!1)}return void(e.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=t.length,this._cachedNodes=null,this._cachedIsBackward=null))}u.setFormat(i),u.setStyle(s)}const r=A-l;u=u.spliceText(l,r,t,!0),""===u.getTextContent()?u.remove():"text"===this.anchor.type&&(this.format=e,this.style=n,u.isComposing()&&(this.anchor.offset-=t.length,this._cachedNodes=null,this._cachedIsBackward=null))}else{const e=new Set([...u.getParentKeys(),...f.getParentKeys()]),n=Ps(u)?u:u.getParentOrThrow();let i=Ps(f)?f:f.getParentOrThrow(),s=f;if(!n.is(i)&&i.isInline())do{s=i,i=i.getParentOrThrow()}while(i.isInline());if("text"===a.type&&(0!==A||""===f.getTextContent())||"element"===a.type&&f.getIndexWithinParent()<A)if(Yr(f)&&!Io(f)&&A!==f.getTextContentSize()){if(f.isSegmented()){const t=Gr(f.getTextContent());f.replace(t),f=t}Fs(a.getNode())||"text"!==a.type||(Yr(f)||r(395),f=f.spliceText(0,A,"")),e.add(f.__key)}else{const t=f.getParentOrThrow();t.canBeEmpty()||1!==t.getChildrenSize()?f.remove():t.remove()}else e.add(f.__key);const o=i.getChildren(),d=new Set(c),g=n.is(i),m=n.isInline()&&null===u.getNextSibling()?n:u;for(let t=o.length-1;t>=0;t--){const e=o[t];if(e.is(u)||Ps(e)&&e.isParentOf(u))break;e.isAttached()&&(!d.has(e)||e.is(s)?g||m.insertAfter(e,!1):e.remove())}if(!g){let t=i,n=null;for(;null!==t;){const r=t.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(e.delete(t.__key),n=t),t=t.getParent()}}if(Io(u))if(l===p)u.select();else{const e=Gr(t);e.select(),u.replace(e)}else u=u.spliceText(l,p-l,t,!0),""===u.getTextContent()?u.remove():"text"===this.anchor.type&&(this.format=u.getFormat(),this.style=u.getStyle(),u.isComposing()&&(this.anchor.offset-=t.length,this._cachedNodes=null,this._cachedIsBackward=null));for(let t=1;t<h;t++){const n=c[t],r=n.__key;e.has(r)||n.remove()}}}removeText(){const t=Ni()===this;ZA(this,ec(KA(this))),t&&Ni()!==this&&Jo(this)}formatText(t,e=null){ci(this,t,e)}insertNodes(t){if(0===t.length)return;this.isCollapsed()||this.removeText();const e=this.anchor.getNode();if("element"===this.anchor.type&&Ps(e)&&null!==Wl(e)){let n=e.isShadowRoot()?e.getFirstChild()??e.append(Ks()).getFirstChild():e.getFirstChild();if(e.isShadowRoot()&&null!==n&&!Ps(n)){const t=Ks();n.insertBefore(t),n=t}if(null!==n){n.selectStart();const e=Ni();return si(e)||r(369),e.insertNodes(t)}}if("element"===this.anchor.type&&Fa(e)){const n=Zi(t),r=n.getLastDescendant();return e.splice(this.anchor.offset,0,n.getChildren()),void(null!==r&&r.selectEnd())}let n=(this.isBackward()?this.focus:this.anchor).getNode(),i=Hl(n,ml);const s=t[t.length-1];if(Ps(i)&&"__language"in i){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const e=Gi(this);i.splice(e,0,t),s.selectEnd()}return}if(!t.some(t=>(Ps(t)||Ns(t))&&!t.isInline())){Ps(i)||r(211,n.constructor.name,n.getType());const e=Gi(this);return i.splice(e,0,t),void s.selectEnd()}if(Ps(i)&&null!==Wl(i)){const e=Gi(this),n=zi(t);i.splice(e,0,n);const r=n[n.length-1];return void(void 0!==r?r.selectEnd():i.select(e,e))}if(null===i){const e=Zi(t),n=e.getLastDescendant();let r=GA(this.anchor,"next");for(const t of e.getChildren())r=hc(t,r);return void(null!==n&&n.selectEnd())}if(Ps(i)&&!i.isParentRequired()&&!Fa(i.getParentOrThrow())){const e=Gi(this),n=zi(t);i.splice(e,0,n);const r=n[n.length-1];return void(void 0!==r?r.selectEnd():i.select(e,e))}const o=Zi(t),a=o.getLastDescendant(),l=o.getChildren(),A=Ps(i)&&i.isEmpty()?null:this.insertParagraph();A&&!i.isAttached()&&(n=this.anchor.getNode(),i=Hl(n,ml));const c=l[l.length-1];let h=l[0];var u;Ps(u=h)&&ml(u)&&!u.isEmpty()&&Ps(i)&&(!i.isEmpty()||i.canMergeWhenEmpty())&&(Ps(i)||r(211,n.constructor.name,n.getType()),i.append(...h.getChildren()),h=l[1]),h&&(null===i&&r(212,n.constructor.name,n.getType()),function(t,e){const n=e.getParentOrThrow().getLastChild();let i=e;const s=[e];for(;i!==n;)i.getNextSibling()||r(140),i=i.getNextSibling(),s.push(i);let o=t;for(const t of s)o=o.insertAfter(t)}(i,h));const p=Hl(a,ml);A&&Ps(p)&&(A.canMergeWhenEmpty()||ml(c))&&(p.append(...A.getChildren()),A.remove()),Ps(i)&&i.isEmpty()&&i.remove(),a.selectEnd();const d=Ps(i)?i.getLastChild():null;Xs(d)&&p!==i&&d.remove()}insertParagraph(){const t=this.anchor.getNode();if("element"===this.anchor.type&&Fa(t)){const e=Ks();return t.splice(this.anchor.offset,0,[e]),e.select(),e}const e=Gi(this),n=Hl(this.anchor.getNode(),ml);if(null!==n&&null!==Wl(n))return null;Ps(n)||r(213);const i=n.getChildAtIndex(e),s=i?[i,...i.getNextSiblings()]:[],o=n.insertNewAfter(this,!1);return o?(o.append(...s),o.selectStart(),o):null}insertLineBreak(t){const e=Vs();if(this.insertNodes([e]),t){const t=e.getParentOrThrow(),n=e.getIndexWithinParent();t.select(n,n)}}extract(){const t=[...this.getNodes()],e=t.length;let n=t[0],r=t[e-1];const[i,s]=ui(this),o=this.isBackward(),[a,l]=o?[this.focus,this.anchor]:[this.anchor,this.focus],[A,c]=o?[s,i]:[i,s];if(0===e)return[];if(1===e){if(Yr(n)&&!this.isCollapsed()){const t=n.splitText(A,c),e=0===A?t[0]:t[1];return e?(a.set(e.getKey(),0,"text"),l.set(e.getKey(),e.getTextContentSize(),"text"),[e]):[]}return[n]}if(Yr(n)&&(A===n.getTextContentSize()?t.shift():0!==A&&([,n]=n.splitText(A),t[0]=n,a.set(n.getKey(),0,"text"))),Yr(r)){const e=r.getTextContent().length;0===c?t.pop():c!==e&&([r]=r.splitText(c),t[t.length-1]=r,l.set(r.getKey(),r.getTextContentSize(),"text"))}return t}modify(t,e,n){if(Ki(this,t,e,n))return;const r="move"===t,i=hs(),s=ja(ka(i));if(!s)return;const o=i._blockCursorElement,a=i._rootElement,l=this.focus.getNode();null===a||null===o||!Ps(l)||l.isInline()||l.canBeEmpty()||$a(o,i,a);const A=wa(i,this.focus.key);let c=A;if("text"===this.focus.type&&(c=Yr(l)?_l(l,A,i):null),this.dirty){const t=wa(i,this.anchor.key);let e=t;if("text"===this.anchor.type){const n=this.anchor.getNode();e=Yr(n)?_l(n,t,i):null}e&&c&&Ri(s,e,this.anchor.offset,c,this.focus.offset)}if("character"===n&&Yr(l)&&l.isUnmergeable()&&(e?0===this.focus.offset:this.focus.offset===l.getTextContentSize())){const t=BA(l,e?"previous":"next").getNodeAtCaret();if(Yr(t)){if(!r){const n=t.getTextContentSize();return e?this.focus.set(t.__key,n-1,"text"):this.focus.set(t.__key,1,"text"),void(this.dirty=!0)}{const n=i.getElementByKey(t.getKey()),r=n?_l(t,n,i):null;if(r){const t=e?r.length:0;Ri(s,r,t,r,t)}}}}if(fi(s,t,e?"backward":"forward",n),s.rangeCount>0){const t=Za(s,i._rootElement),n=t||s.getRangeAt(0),o=this.anchor.getNode(),a=Fs(o)?o:Na(o);this.applyDOMRange(n),this.dirty=!0,r||(gi(this,e,a),(t?"backward"!==s.direction:s.anchorNode===n.startContainer&&s.anchorOffset===n.startOffset)||di(this))}"lineboundary"===n&&Ki(this,t,e,n,"decorators")}forwardDeletion(t,e,n){if(!n&&("element"===t.type&&Ps(e)&&t.offset===e.getChildrenSize()||"text"===t.type&&t.offset===e.getTextContentSize())){const t=e.getParent(),n=e.getNextSibling()||(null===t?null:t.getNextSibling());if(Ps(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(t){const e=this.isCollapsed();if(this.isCollapsed()){const e=this.anchor;let n=e.getNode();if(this.forwardDeletion(e,n,t))return;const r=DA(GA(e,t?"previous":"next"));if(r.getTextSlices().every(t=>null===t||0===t.distance)){let t={type:"initial"};for(const e of r.iterNodeCarets("shadowRoot"))if(_A(e))if(e.origin.isInline());else{if(e.origin.isShadowRoot()){if("merge-block"===t.type)break;if(Ps(r.anchor.origin)&&r.anchor.origin.isEmpty()){const t=nc(e);ZA(this,UA(t,t)),r.anchor.origin.remove()}return}"merge-next-block"!==t.type&&"merge-block"!==t.type||(t={block:t.block,caret:e,type:"merge-block"})}else{if("merge-block"===t.type)break;if(wA(e)){if(Ps(e.origin)){if(e.origin.isInline()){if(!e.origin.isParentOf(r.anchor.origin))break}else t={block:e.origin,type:"merge-next-block"};continue}if(Ns(e.origin)){if(e.origin.isIsolated());else if(tA(e.origin).length>0){if(Ps(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const t=Pi();t.add(e.origin.getKey()),Jo(t)}}else if("merge-next-block"===t.type&&(e.origin.isKeyboardSelectable()||!e.origin.isInline())&&Ps(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const t=Pi();t.add(e.origin.getKey()),Jo(t)}else e.origin.remove();return}break}}if("merge-block"===t.type){const{caret:e,block:n}=t;if(tA(n).length>0)return;return e.origin.isEmpty()&&!n.isEmpty()&&e.origin.getParent()===n.getParent()?void e.origin.remove(!0):(ZA(this,UA(!e.origin.isEmpty()&&n.isEmpty()?qA(BA(n,e.direction)):r.anchor,e)),this.removeText())}for(let t=e.getNode();null!==t;){if(null!==Wl(t))return;if(Ps(t)&&t.isShadowRoot())break;t=t.getParent()}}const i=this.focus;if(mi(this,t,"character"),this.isCollapsed()){if(t&&0===e.offset&&pi(this,e.getNode()))return}else{const r="text"===i.type?i.getNode():null;if(n="text"===e.type?e.getNode():null,null!==r&&r.isSegmented()){const e=i.offset,s=r.getTextContentSize();if(r.is(n)||t&&e!==s||!t&&0!==e)return void vi(r,t,e)}else if(null!==n&&n.isSegmented()){const i=e.offset,s=n.getTextContentSize();if(n.is(r)||t&&0!==i||!t&&i!==s)return void vi(n,t,i)}!function(t,e){const n=t.anchor,r=t.focus,i=n.getNode();if(i===r.getNode()&&"text"===n.type&&"text"===r.type){const t=n.offset,s=r.offset,o=t<s,a=o?t:s,l=o?s:t,A=l-1;a!==A&&function(t){return!(na(t)||yi(t))}(i.getTextContent().slice(a,l))&&(e?r.set(r.key,A,r.type):n.set(n.key,A,n.type))}}(this,t)}}if(this.removeText(),t&&!e&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const t=this.anchor.getNode();t.isEmpty()&&Fs(t.getParent())&&null===t.getPreviousSibling()&&pi(this,t),ii()}}deleteLine(t){const e=wi(this.anchor);if(null!==e&&Ns(Zl(e)))return this.isCollapsed()||this.focus.set(this.anchor.key,this.anchor.offset,this.anchor.type),void this.deleteCharacter(t);this.isCollapsed()&&mi(this,t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):Hl(this.anchor.getNode(),ml)!==Hl(this.focus.getNode(),ml)?(this.focus.set(this.anchor.key,this.anchor.offset,this.anchor.type),this.deleteCharacter(t)):this.removeText()}deleteWord(t){if(this.isCollapsed()){const e=this.anchor,n=e.getNode();if(this.forwardDeletion(e,n,t))return;mi(this,t,"word")}this.isCollapsed()?this.deleteCharacter(t):this.removeText()}isBackward(){const t=this._cachedIsBackward;if(null!==t)return t;const e=this.focus.isBefore(this.anchor);return os()||(this._cachedIsBackward=e),e}getStartEndPoints(){return[this.anchor,this.focus]}}function ai(t){return t instanceof ri}function li(t,e){if(ai(t)){for(const n of t.getNodes())Mr(n)&&n.setFormat(e(n.getFormat()));return}if(t.isCollapsed())return t.setFormat(e(t.format)),void Ho(null);const n=[];for(const r of t.getNodes())Yr(r)?n.push(r):Ps(r)?r.setTextFormat(e(r.getTextFormat())):Mr(r)&&r.setFormat(e(r.getFormat()));const r=n.length;if(0===r)return t.setFormat(e(t.format)),void Ho(null);const i=t.anchor,s=t.focus,o=t.isBackward(),a=o?s:i,l=o?i:s;let A=0,c=n[0],h="element"===a.type?0:a.offset;if("text"===a.type&&h===c.getTextContentSize()&&(A=1,c=n[1],h=0),null==c)return;const u=r-1;let p=n[u];const d="text"===l.type?l.offset:p.getTextContentSize();if(c.is(p)){if(h===d)return;const n=e(c.getFormat());if(No(c)||0===h&&d===c.getTextContentSize())c.setFormat(n);else{const t=c.splitText(h,d),e=0===h?t[0]:t[1];e.setFormat(n),"text"===a.type&&a.set(e.__key,0,"text"),"text"===l.type&&l.set(e.__key,d-h,"text")}return void(t.format=n)}0===h||No(c)||([,c]=c.splitText(h),h=0);const f=e(c.getFormat());c.setFormat(f);const g=e(p.getFormat());d>0&&(d===p.getTextContentSize()||No(p)||([p]=p.splitText(d)),p.setFormat(g));for(let t=A+1;t<u;t++){const r=n[t];r.setFormat(e(r.getFormat()))}"text"===a.type&&a.set(c.__key,h,"text"),"text"===l.type&&l.set(p.__key,d,"text"),t.format=f|g}function Ai(t,e){const n=[];for(const[t,r]of Object.entries(e))"boolean"==typeof r&&n.push([t,r]);0!==n.length&&li(t,t=>{for(const[e,r]of n)t=Mo(t,e,r?$[e]:0);return t})}function ci(t,e,n=null){const r=null===n&&si(t)?Mo(t.format,e,null):n;li(t,t=>Mo(t,e,r))}function hi(t){const e=t.offset;if("text"===t.type)return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function ui(t){const e=t.getStartEndPoints();if(null===e)return[0,0];const[n,r]=e;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[hi(n),hi(r)]}function pi(t,e){for(let n=e;n;n=n.getParent()){if(Ps(n)){if(n.collapseAtStart(t))return!0;if(Fa(n))break}if(n.getPreviousSibling())break}return!1}function di(t){const e=t.focus,n=t.anchor,r=n.key,i=n.offset,s=n.type;n.set(e.key,e.offset,e.type,!0),e.set(r,i,s,!0)}function fi(t,e,n,r){t.modify(e,n,r)}function gi(t,e,n){const r=t.getNodes(),i=r.filter(t=>Ta(t,n));if(0===i.length||i.length===r.length)return!1;const s=e?i[0]:i[i.length-1],o=Ps(s)?s:s.getParentOrThrow();return e?o.selectStart():o.selectEnd(),!0}function mi(t,e,n){if(Ki(t,"extend",e,n))return;const r=hs(),i=ja(ka(r));if(!i||"function"!=typeof i.modify)return;const s=r._blockCursorElement,o=r._rootElement,a=t.anchor,l=t.focus.getNode();null===o||null===s||!Ps(l)||l.isInline()||l.canBeEmpty()||$a(s,r,o);const A=t=>{const e=t.getNode(),n=r.getElementByKey(t.key);return null!==n&&"text"===t.type&&Yr(e)?_l(e,n,r):n},c=a.getNode(),h=A(a);if(null===h)return;const u=a.offset,p=t.isCollapsed(),d=t.focus,f=p?h:A(d);if(null===f)return;const g=d.offset;if(Ri(i,f,g,f,g),fi(i,"move",e?"backward":"forward",n),0===i.rangeCount)return;const m=Za(i,o)||i.getRangeAt(0),y=m.startContainer,v=m.startOffset;if(p&&"character"===n&&"text"===a.type&&Yr(c)&&c.isUnmergeable()&&u===(e?0:c.getTextContentSize())){const n=BA(c,e?"previous":"next").getNodeAtCaret();if(Yr(n)){const r=e?n.getTextContentSize()-1:1;return t.focus.set(n.__key,r,"text"),void(t.dirty=!0)}}if(p&&"character"===n&&"text"===a.type){const n=e?0:c.getTextContentSize(),r=y===h?v:u!==n?n:-1;if(r>=0)return void(r!==u&&(t.focus.set(a.key,r,"text"),t.dirty=!0))}const[O,b,x,w]=e?[y,v,h,u]:[h,u,y,v],_=Fs(c)?c:Na(c);t.applyDOMRange({collapsed:!1,endContainer:x,endOffset:w,startContainer:O,startOffset:b}),t.dirty=!0,!gi(t,e,_)&&e&&di(t),"lineboundary"===n&&Ki(t,"extend",e,n,"decorators")}const yi=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch(t){}return()=>!1})();function vi(t,e,n){const r=t,i=r.getTextContent().split(/(?=\s)/g),s=i.length;let o=0,a=0;for(let t=0;t<s;t++){const r=t===s-1;if(a=o,o+=i[t].length,e&&o===n||o>n||r){i.splice(t,1),r&&(a=void 0);break}}const l=i.join("").trim();""===l?r.remove():(r.setTextContent(l),r.select(a,a))}function Oi(t,e,n,i){let s,o=e,a=!1;if(cl(t)){let l=!1;const A=t.childNodes,c=A.length,h=i._blockCursorElement;o===c&&c>0&&(l=!0,o=c-1),void 0!==Yo(t,i)||Ll(t,i)||(a=!0);let u=A[o],p=!1;if(u===h)u=A[o+1],p=!0;else if(null!==h){const n=h.parentNode;t===n&&e>Array.prototype.indexOf.call(n.children,h)&&o--}if(s=ea(u),Yr(s))o=PA(s,l?"next":"previous");else{let A=ea(t);if(null===A)return null;if(Ps(A)){const a=i.getElementByKey(A.getKey());null===a&&r(214);const c=Ol(A,a,i);[A,o]=c.resolveChildIndex(A,a,t,e),Ps(A)||r(215),l&&o>=A.getChildrenSize()&&(o=Math.max(0,A.getChildrenSize()-1));let h=A.getChildAtIndex(o);if(Ps(h)&&function(t,e,n){const r=t.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(h,0,n)){const t=l?h.getLastDescendant():h.getFirstDescendant();null===t?A=h:(h=t,A=Ps(h)?h:h.getParentOrThrow()),o=0}Yr(h)?(s=h,A=null,o=PA(h,l?"next":"previous")):h!==A&&l&&!p&&(Ps(A)||r(216),o=Math.min(A.getChildrenSize(),o+1))}else{const n=Zl(A),r=null!==n?n:A,s=r.getIndexWithinParent(),a=i.getElementByKey(A.getKey());let l="after";if(null!==a&&ea(t)===A){const n=Ol(A,a,i);n.element!==a?l=n.resolveLeafPosition(a,t,e):0===e&&Ns(A)&&(l="before")}o="before"===l?s:s+1,A=r.getParentOrThrow()}if(Ps(A))return[ti(A.__key,o,"element"),a]}}else s=ea(t);return Yr(s)?[ti(s.__key,PA(s,o,"clamp"),"text"),a]:null}function bi(t,e,n){const r=t.offset,i=t.getNode();if(0===r){const r=i.getPreviousSibling(),s=i.getParent();if(e){if((n||!e)&&null===r&&Ps(s)&&s.isInline()){const e=s.getPreviousSibling();Yr(e)&&t.set(e.__key,e.getTextContent().length,"text")}}else Ps(r)&&!n&&r.isInline()?t.set(r.__key,r.getChildrenSize(),"element"):Yr(r)&&!i.isUnmergeable()&&t.set(r.__key,r.getTextContent().length,"text")}else if(r===i.getTextContent().length){const r=i.getNextSibling(),s=i.getParent();if(e&&Ps(r)&&r.isInline())t.set(r.__key,0,"element");else if((n||e)&&null===r&&Ps(s)&&s.isInline()&&!s.canInsertTextAfter()&&s.getTextContentSize()>1){const e=s.getNextSibling();Yr(e)&&t.set(e.__key,0,"text")}}}function xi(t,e,n){if("text"===t.type&&"text"===e.type){const n=t.isBefore(e),r=t.is(e);bi(t,n,r),bi(e,!n,r),r&&e.set(t.key,t.offset,t.type)}}function wi(t){const e=Xo(t.key);return null===e?null:ql(e)}function _i(t,e,n){const r=wi(t),i=wi(e);if(r===i||null!==r&&null!==i&&r.is(i))return!1;const s=n(r,i);if(null!==r)return Ps(r)?e.set(r.getKey(),s?r.getChildrenSize():0,"element"):e.set(r.getKey(),s?r.getTextContentSize():0,"text"),!0;const o=Zl(i);if(null===o)return!1;const a=o.getParent();if(null===a)return!1;const l=o.getIndexWithinParent();return e.set(a.getKey(),s?l+1:l,"element"),!0}function Si(t){const e=_i(t.anchor,t.focus,(e,n)=>function(t,e,n,r){if(null!==n&&null!==r){const t=Zl(n),e=Zl(r);if(null!==t&&t.is(e)){for(const e of Jl(t).values()){if(e===n.getKey())return!0;if(e===r.getKey())return!1}return!0}return null===t||null===e||t.isBefore(e)}if(null!==n){const t=Zl(n),r=Xo(e.key);return null===t||null===r||!(!t.is(r)&&!t.isParentOf(r))||t.isBefore(r)}const i=Zl(r),s=Xo(t.key);return null!==i&&null!==s&&!i.is(s)&&!i.isParentOf(s)&&s.isBefore(i)}(t.anchor,t.focus,e,n));return e&&(t.dirty=!0),e}function Ci(t,e,n,r,i,s){if(null===t||null===n||!Eo(i,t,n))return null;const o=Oi(t,e,si(s)?s.anchor:null,i);if(null===o)return null;const a=Oi(n,r,si(s)?s.focus:null,i);if(null===a)return null;const[l,A]=o,[c,h]=a;if("element"===l.type&&"element"===c.type){const e=ea(t),r=ea(n);if(Ns(e)&&Ns(r))return null}const u=i._slotsUsed&&_i(l,c,()=>0!==(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING));return xi(l,c),[l,c,A||h||u]}function Ei(t){return Ps(t)&&!t.isInline()}function Bi(t,e,n,r,i,s){const o=As(),a=new oi(ti(t,e,i),ti(n,r,s),0,"");return a.dirty=!0,o._selection=a,a}function Ti(){const t=ti("root",0,"element"),e=ti("root",0,"element");return new oi(t,e,0,"")}function Pi(){return new ri(new Set)}function ki(t,e){return Ii(null,t,e,null)}function Ii(t,e,n,r){const i=n._window;if(null===i)return null;const s=r||i.event,o=s?s.type:void 0,a="selectionchange"===o,l=!lt&&(a||"beforeinput"===o||"compositionstart"===o||"compositionend"===o||"click"===o&&s&&3===s.detail||"drop"===o||void 0===o);let A,c,h,u;if(si(t)&&!l)return t.clone();{if(null===e)return null;const r=qa(e,n._rootElement);if(A=r.anchorNode,c=r.focusNode,h=r.anchorOffset,u=r.focusOffset,(a||void 0===o)&&si(t)&&!Eo(n,A,c))return t.clone()}const p=Ci(A,h,c,u,n,t);if(null===p)return null;const[d,f,g]=p;let m=0,y="";if(si(t)){const e=t.anchor;if(d.key===e.key)m=t.format,y=t.style;else{const t=d.getNode();Yr(t)?(m=t.getFormat(),y=t.getStyle()):Ps(t)&&(m=t.getTextFormat(),y=t.getTextStyle())}}const v=new oi(d,f,m,y);return g&&(v.dirty=!0),v}function Ni(){return As()._selection}function Qi(){return hs()._editorState._selection}function Fi(t,e,n,r=1){const i=t.anchor,s=t.focus,o=i.getNode(),a=s.getNode();if(!e.is(o)&&!e.is(a))return;const l=e.__key;if(t.isCollapsed()){const e=i.offset;if(n<=e&&r>0||n<e&&r<0){const n=Math.max(0,e+r);i.set(l,n,"element"),s.set(l,n,"element"),Li(t)}}else{const o=t.isBackward(),a=o?s:i,A=a.getNode(),c=o?i:s,h=c.getNode();if(e.is(A)){const t=a.offset;(n<=t&&r>0||n<t&&r<0)&&a.set(l,Math.max(0,t+r),"element")}if(e.is(h)){const t=c.offset;(n<=t&&r>0||n<t&&r<0)&&c.set(l,Math.max(0,t+r),"element")}}Li(t)}function Li(t){const e=t.anchor,n=e.offset,r=t.focus,i=r.offset,s=e.getNode(),o=r.getNode();if(t.isCollapsed()){if(!Ps(s))return;const t=s.getChildrenSize(),i=n>=t,o=i?s.getChildAtIndex(t-1):s.getChildAtIndex(n);if(Yr(o)){let t=0;i&&(t=o.getTextContentSize()),e.set(o.__key,t,"text"),r.set(o.__key,t,"text")}return}if(Ps(s)){const t=s.getChildrenSize(),r=n>=t,i=r?s.getChildAtIndex(t-1):s.getChildAtIndex(n);if(Yr(i)){let t=0;r&&(t=i.getTextContentSize()),e.set(i.__key,t,"text")}}if(Ps(o)){const t=o.getChildrenSize(),e=i>=t,n=e?o.getChildAtIndex(t-1):o.getChildAtIndex(i);if(Yr(n)){let t=0;e&&(t=n.getTextContentSize()),r.set(n.__key,t,"text")}}}function Mi(t,e,n,r,i){let s=null,o=0,a=null;null!==r?(s=r.__key,Yr(r)?(o=r.getTextContentSize(),a="text"):Ps(r)&&(o=r.getChildrenSize(),a="element")):null!==i&&(s=i.__key,Yr(i)?a="text":Ps(i)&&(a="element")),null!==s&&null!==a?t.set(s,o,a):(o=e.getIndexWithinParent(),-1===o&&(o=n.getChildrenSize()),t.set(n.__key,o,"element"))}function Di(t,e,n,r,i){"text"===t.type?t.set(n,t.offset+(e?0:i),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function Ri(t,e,n,r,i){try{t.setBaseAndExtent(e,n,r,i)}catch(t){}}function Ui(t,e,n){const r=wa(t,e.getKey());if(Ps(e)){const i=Ol(e,r,t);return[i.element,n+i.getFirstChildOffset()]}return[r,n]}function $i(t,e,n,r,i,s){const o=s.getRootNode(),a=Fo(o)||Va(o)?il(o):null;if(i.has(Or)&&a!==s||null!==a&&So(a,a))return;const A=qa(r,s);let c;if(!si(e))return void(null!==t&&Eo(n,A.anchorNode,A.focusNode)&&r.removeAllRanges());const h=e.anchor,u=e.focus,p=h.getNode(),d=u.getNode(),[f,g]=Ui(n,p,h.offset),[m,y]=Ui(n,d,u.offset),v=e.format,O=e.style,b=e.isCollapsed();let x=f,w=m,_=!1;if("text"===h.type?(x=Yr(p)?_l(p,f,n):null,_=p.getFormat()!==v||p.getStyle()!==O):si(t)&&"text"===t.anchor.type&&(_=!0),"text"===u.type&&(w=Yr(d)?_l(d,m,n):null),null!==x&&null!==w){if(b&&(null===t||_||si(t)&&(t.format!==v||t.style!==O))&&function(t,e,n,r,i,s){t._inputState.collapsedSelectionFormat={format:e,key:i,offset:r,style:n,timeStamp:s}}(n,v,O,g,h.key,performance.now()),("Range"!==r.type||!b)&&A.anchorOffset===g&&A.focusOffset===y&&A.anchorNode===x&&A.focusNode===w){if(null===a||!s.contains(a)){const t=null!==a?To(a):null;null!==t&&t!==n||i.has(_r)||s.focus({preventScroll:!0})}if("element"!==h.type)return}if(Ri(r,x,g,w,y),l&&e.isCollapsed()&&null!==s&&!i.has(_r)){const t=rl(s);if(null===t||!s.contains(t)){const t=il(s.ownerDocument),e=null!==t?To(t):null;null!==e&&e!==n||s.focus({preventScroll:!0})}}if(!i.has(xr)&&e.isCollapsed()&&null!==s&&s===rl(s)){const t=si(e)&&"element"===e.anchor.type?x.childNodes[g]||null:(void 0===c&&(c=Ka(r,s)),c);if(null!==t){let e;if(Qo(t)){const n=t.ownerDocument.createRange();n.selectNode(t),e=n.getBoundingClientRect()}else e=t.getBoundingClientRect();!function(t,e,n){const r=Sa(n),i=Pa(r);if(null===r||null===i)return;const s=n.getBoundingClientRect();if(e.bottom<s.top)return;let{top:o,bottom:a}=e,l=0,A=0,c=n;for(;null!==c;){const e=c===r.body;if(e){const e=i.visualViewport;if(e){const t=e.offsetTop;l=t,A=t+e.height}else l=0,A=ka(t).innerHeight;const n=i.getComputedStyle(r.documentElement),s=parseFloat(n.scrollPaddingTop),o=parseFloat(n.scrollPaddingBottom);isFinite(s)&&(l+=s),isFinite(o)&&(A-=o)}else{const t=c===n?s:c.getBoundingClientRect();l=t.top,A=t.bottom}let h=0;if(o<l?h=-(l-o):a>A&&(h=a-A),0!==h)if(e)i.scrollBy(0,h);else{const t=c.scrollTop;c.scrollTop+=h;const e=c.scrollTop-t;o-=e,a-=e}if(e)break;c=_a(c)}}(n,e,s)}}!function(t){t._inputState.isSelectionChangeFromDOMUpdate=!0}(n)}}function ji(t){let e=Ni()||Qi();null===e&&(e=qo().selectEnd()),e.insertNodes(t)}function Hi(t,e){for(const n of t.split(/(\r?\n|\t)/))"\n"===n||"\r\n"===n?e.linebreak():"\t"===n?e.tab():""!==n&&e.text(n)}function Vi(t){const e=[];return Hi(t,{linebreak:()=>e.push(Vs()),tab:()=>e.push(Kr()),text:t=>e.push(Gr(t))}),e}function Xi(){const t=Ni();return null===t?"":t.getTextContent()}function zi(t){const e=[];for(const n of t)Xs(n)||(!Ps(n)&&!Ns(n)||n.isInline()?e.push(n):Ps(n)&&e.push(...zi(n.getChildren())));return e}function Gi(t){let e=t;t.isCollapsed()||e.removeText();const n=Ni();si(n)&&(e=n),si(e)||r(161);const i=e.anchor;let s=i.getNode(),o=i.offset;for(;!ml(s)&&null===Wl(s);){const t=s;if([s,o]=Yi(s,o),t.is(s))break}return o}function Yi(t,e){const n=t.getParent();if(!n){const t=Ks();return qo().append(t),t.select(),[qo(),0]}if(Yr(t)){const r=t.splitText(e);if(0===r.length)return[n,t.getIndexWithinParent()];const i=0===e?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!Ps(t)||0===e)return[n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const n=new oi(ti(t.__key,e,"element"),ti(t.__key,e,"element"),0,""),i=t.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function Wi(t){return Xs(t)||Ia(t)||Yr(t)||t.isParentRequired()}function Zi(t){const e=Ks();let n=null;for(let r=0;r<t.length;r++){const i=t[r];if(Wi(i)){if(null===n){n=i.createParentElementNode(),e.append(n);const s=t[r+1];if(Xs(i)&&(void 0===s||!Wi(s)))continue}n.append(i)}else e.append(i),n=null}return e}function Ki(t,e,n,r,i="decorators-and-blocks"){if("move"===e&&"character"===r&&!t.isCollapsed()){const[e,r]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return r.set(e.key,e.offset,e.type),!0}const s=GA(t.focus,n?"previous":"next"),o="lineboundary"===r,a="move"===e;let l=s,A="decorators-and-blocks"===i;if(!rc(l)){for(const t of l){A=!1;const{origin:e}=t;if(!Ns(e)||e.isIsolated()||(l=t,!o||!e.isInline()))break}if(A)for(const t of DA(s).iterNodeCarets("extend"===e?"shadowRoot":"root")){if(_A(t))t.origin.isInline()||(l=t);else{if(Ps(t.origin))continue;Ns(t.origin)&&!t.origin.isInline()&&(l=t)}break}}if(l===s)return!1;if(a&&!o&&Ns(l.origin)&&l.origin.isKeyboardSelectable()){const t=Pi();return t.add(l.origin.getKey()),Jo(t),!0}return l=nc(l),a&&YA(t.anchor,l),YA(t.focus,l),A||!o}let qi=null,Ji=null,ts=!1,es=!1,ns=!1;const rs=new Set;let is=0;const ss={characterData:!0,childList:!0,subtree:!0};function os(){return ts||null!==qi&&qi._readOnly}function as(){ts&&r(13)}function ls(){is>99&&r(14)}function As(){return null===qi&&r(195,ps()),qi}function cs(t){null!==As()&&null===Ji&&(Ji=t),Ji!==t&&i(378)}function hs(){return null===Ji&&r(337,ps()),Ji}function us(){hs()._dirtyType=2}function ps(){let t=0;const e=new Set,n=mo.version;if("undefined"!=typeof window)for(const r of Ga(document)){const i=Po(r);if(Bo(i))t++;else if(i){let t=String(i.constructor.version||"<0.17.1");t===n&&(t+=" (separately built, likely a bundler configuration issue)"),e.add(t)}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function ds(){return Ji}function fs(t,e,n){const r=e.__type,i=xo(t,r);let s=n.get(r);void 0===s&&(s=Array.from(i.transforms),n.set(r,s));const o=s.length;for(let t=0;t<o&&(s[t](e),e.isAttached());t++);}function gs(t,e){return void 0!==t&&t.__key!==e&&t.isAttached()}function ms(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const t of r)n.add(t)}function ys(t){return vs(t,hs()._nodes)}function vs(t,e){const n=t.type,i=e.get(n);void 0===i&&r(17,n);const s=i.klass;t.type!==s.getType()&&r(18,s.name);const o=s.importJSON(t),a=t.children;if(Ps(o)&&Array.isArray(a))for(let t=0;t<a.length;t++){const n=vs(a[t],e);o.append(n)}const l=t.$slots;if(l){Gl(o)||r(379,s.name);for(const t in l)cA(o,t,vs(l[t],e))}return o}function Os(t,e,n){const r=qi,i=ts,s=Ji;qi=e,ts=!0,Ji=t;try{return n()}finally{qi=r,ts=i,Ji=s}}function bs(t,e){const n=ns;ns=!0;try{!function(t,e){const n=t._pendingEditorState,r=t._rootElement,i=t._headless||null===r;if(null===n)return void(!t._updating&&t._deferred.length>0&&_s(t,t._deferred));const s=t._editorState,o=s._selection,a=n._selection,l=0!==t._dirtyType,A=qi,c=ts,h=Ji,u=t._updating,p=t._observer;let d=null;if(t._pendingEditorState=null,t._editorState=n,!i&&l&&null!==p){Ji=t,qi=n,ts=!1,t._updating=!0;try{const e=t._dirtyType,r=t._dirtyElements,i=t._dirtyLeaves;p.disconnect(),d=function(t,e,n,r,i,s){zt="",Gt=null,Yt=null,Wt=null,Ae=2===r,Vt=n,Ht=n._config,le=n._config.dom||uo,Xt=n._nodes,Jt=Vt._listeners.mutation,te=i,ee=s,ne=t._nodeMap,re=t,ie=e._nodeMap,ce=e._readOnly,se=st(n._keyToDOMMap),oe=function(){const t=new Map,e=e=>{for(const n of e){const e=ie.get(n);if(void 0===e)continue;const r=e.__parent;if(null===r)continue;let i=t.get(r);void 0===i&&(i=new Set,t.set(r,i)),i.add(n)}};return e(te.keys()),e(ee),t}();const o=new Map;return ae=o,Te("root",null),Vt=void 0,Xt=void 0,te=void 0,ee=void 0,ne=void 0,re=void 0,ie=void 0,Ht=void 0,se=void 0,oe=void 0,ae=void 0,le=uo,o}(s,n,t,e,r,i)}catch(e){if(e instanceof Error&&t._onError(e),es)throw e;return co(t,null,r,n),mt(t),t._dirtyType=2,es=!0,bs(t,s),void(es=!1)}finally{p.observe(r,ss),t._updating=u,qi=A,ts=c,Ji=h}}n._readOnly||(n._readOnly=!0);const f=t._dirtyLeaves,g=t._dirtyElements,m=t._normalizedNodes,y=t._updateTags;l&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set),t._updateTags=new Set,function(t,e){const n=t._decorators;let r=t._pendingDecorators||n;const i=e._nodeMap;let s;for(s in r)i.has(s)||(r===n&&(r=Zo(t)),delete r[s])}(t,n);const v=i?null:ja(ka(t));if(t._editable&&null!==v&&(l||null===a||a.dirty||!a.is(o))&&null!==r&&!y.has(wr)){Ji=t,qi=n;try{if(null!==p&&p.disconnect(),l||null===a||a.dirty){const e=t._blockCursorElement;null!==e&&$a(e,t,r),$i(o,a,t,v,y,r)}!function(t,e,n){let r=t._blockCursorElement;if(si(n)&&n.isCollapsed()&&"element"===n.anchor.type&&e.contains(rl(e))){const i=n.anchor,s=i.getNode(),o=i.offset;let a=!1,l=null;if(o===s.getChildrenSize())Ua(s.getChildAtIndex(o-1))&&(a=!0);else{const e=s.getChildAtIndex(o);if(null!==e&&Ua(e)){const n=e.getPreviousSibling();(null===n||Ua(n))&&(a=!0,l=t.getElementByKey(e.__key))}}if(a){const n=Ol(s,t.getElementByKey(s.__key),t).element;return null===r&&(t._blockCursorElement=r=function(t){const e=t.theme,n=Wa().createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=e.blockCursor;if(void 0!==r){if("string"==typeof r){const t=mc(r);r=e.blockCursor=t}void 0!==r&&n.classList.add(...r)}return n}(t._config)),e.style.caretColor="transparent",void(null===l?n.appendChild(r):n.insertBefore(r,l))}}null!==r&&$a(r,t,e)}(t,r,a)}finally{null!==p&&p.observe(r,ss),Ji=h,qi=A}}null!==d&&function(t,e,n,r,i){const s=Array.from(t._listeners.mutation),o=s.length;for(let t=0;t<o;t++){const[o,a]=s[t];for(const t of a){const s=e.get(t);void 0!==s&&o(s,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(t,d,y,f,s),si(a)||null===a||null!==o&&o.is(a)||t.dispatchCommand(Fe,void 0);const O=t._pendingDecorators;null!==O&&(t._decorators=O,t._pendingDecorators=null,xs("decorator",t,!0,O)),function(t,e,n){const r=Ko(e),i=Ko(n);r!==i&&xs("textcontent",t,!0,i)}(t,e||s,n),xs("update",t,!0,{dirtyElements:g,dirtyLeaves:f,editorState:n,mutatedNodes:d,normalizedNodes:m,prevEditorState:e||s,tags:y}),u||_s(t,t._deferred),function(t){const e=t._updates;if(0===e.length)return void(t._cascadeCount=0);if(function(t){rs.has(t)||(rs.add(t),setTimeout(()=>{rs.delete(t),t._cascadeCount=0},0))}(t),t._cascadeCount++>99)return t._updates=[],t._cascadeCount=0,void t._onWarn(new Error(`One or more update listeners are endlessly enqueueing more updates. May have encountered infinite recursion caused by update listeners that trigger additional updates without a stop condition. Editor namespace: ${t._config.namespace}`));const n=e.shift();if(n){const[e,r]=n;Cs(t,e,r)}}(t)}(t,e)}finally{ns=n}}function xs(t,e,n,...r){const i=e._updating;e._updating=n;try{const n=e._listeners[t],i=Array.from(n);for(const[t,e]of i){e&&e();const i=t(...r);n.has(t)?n.set(t,i):i&&i()}}finally{e._updating=i}}function ws(t,e,n,r){const i=ra(t);let s;if(!ns)for(let t=0;t<i.length;t++)i[t]._updating||(i[t]._cascadeCount=0);for(let t=4;t>=0;t--)for(let o=0;o<i.length;o++){const a=i[o];if(o>0&&a._updating){s=a;break}const l=a._commands.get(e);if(void 0!==l){const e=l[t];if(e.size>0){let t=!1;if(Es(a,()=>{for(const i of e)if(i(n,r))return void(t=!0)}),t)return t}}}return s&&s.update(()=>{ws(s,e,n,r)}),!1}function _s(t,e){if(t._deferred=[],0!==e.length){const n=t._updating;t._updating=!0;try{for(let t=0;t<e.length;t++)e[t]()}finally{t._updating=n}}}function Ss(t,e){const n=t._updates;let i=e||!1;for(;0!==n.length;){const e=n.shift();if(e){const[n,s]=e,o=t._pendingEditorState;let a;void 0!==s&&(a=s.onUpdate,s.skipTransforms&&(i=!0),s.discrete&&(null===o&&r(191),o._flushSync=!0),a&&t._deferred.push(a),ms(t,s.tag)),null==o?Cs(t,n,s):n()}}return i}function Cs(t,e,n){const i=t._updateTags;let s,o=!1,a=!1;void 0!==n&&(s=n.onUpdate,ms(t,n.tag),o=n.skipTransforms||!1,a=n.discrete||!1),s&&t._deferred.push(s);const l=t._editorState;let A=t._pendingEditorState,c=!1;(null===A||A._readOnly)&&(A=t._pendingEditorState=Ls(A||l),c=!0),A._flushSync=a;const h=qi,u=ts,p=Ji,d=t._updating;qi=A,ts=!1,t._updating=!0,Ji=t;const f=t._headless||null===t.getRootElement();vo(null);try{c&&(f?null!==l._selection&&(A._selection=l._selection.clone()):A._selection=function(t,e){const n=t.getEditorState()._selection,r=ja(ka(t));return si(n)||null==n?Ii(n,r,t,e):n.clone()}(t,n&&n.event||null));const i=t._compositionKey;e(),o=Ss(t,o),function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(si(r)){const t=r.anchor,e=r.focus;let i;if("text"===t.type&&(i=t.getNode(),i.selectionTransform(n,r)),"text"===e.type){const t=e.getNode();i!==t&&t.selectionTransform(n,r)}}}(A,t),0!==t._dirtyType&&(o?function(t,e){const n=e._dirtyLeaves,r=t._nodeMap;for(const t of n){const e=r.get(t);Yr(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&Mt(e)}}(A,t):function(t,e){const n=e._dirtyLeaves,r=e._dirtyElements,i=t._nodeMap,s=Vo(),o=new Map;let a=n,l=a.size,A=r,c=A.size;for(;l>0||c>0;){if(l>0){e._dirtyLeaves=new Set;for(const t of a){const r=i.get(t);Yr(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Mt(r),void 0!==r&&gs(r,s)&&fs(e,r,o),n.add(t)}if(a=e._dirtyLeaves,l=a.size,l>0){is++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map,A.delete("root")&&A.set("root",!0);for(const t of A){const n=t[0],a=t[1];if(r.set(n,a),!a)continue;const l=i.get(n);void 0!==l&&gs(l,s)&&fs(e,l,o)}a=e._dirtyLeaves,l=a.size,A=e._dirtyElements,c=A.size,is++}e._dirtyLeaves=n,e._dirtyElements=r}(A,t),Ss(t),function(t,e,n,r){const i=t._nodeMap,s=e._nodeMap,o=[];for(const[t]of r){const e=s.get(t);void 0!==e&&(e.isAttached()||(Ps(e)&&at(e,t,i,s,o,r),i.has(t)||r.delete(t),o.push(t)))}for(const t of n){const e=s.get(t);void 0===e||e.isAttached()||(Gl(e)&&null!==e.__slots&&at(e,t,i,s,o,n),i.has(t)||n.delete(t),o.push(t))}for(const t of o)s.delete(t);const a=hs(),l=a._compositionKey;null===l||s.has(l)||(a._compositionKey=null)}(l,A,t._dirtyLeaves,t._dirtyElements)),i!==t._compositionKey&&(A._flushSync=!0);const s=A._selection;if(si(s)){t._slotsUsed&&Si(s);const e=A._nodeMap,n=s.anchor.key,i=s.focus.key;void 0!==e.get(n)&&void 0!==e.get(i)||r(19)}else ai(s)&&0===s._nodes.size&&(A._selection=null)}catch(e){return e instanceof Error&&t._onError(e),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void bs(t)}finally{qi=h,ts=u,Ji=p,t._updating=d,is=0}const g=0!==t._dirtyType||t._deferred.length>0||function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(A,t);g?A._flushSync?(A._flushSync=!1,bs(t)):c&&_o(()=>{bs(t)}):(A._flushSync=!1,c&&(i.clear(),t._deferred=[],t._pendingEditorState=null))}function Es(t,e,n){Ji===t&&void 0===n?e():Cs(t,e,n)}function Bs(t){if(Fa(t)){let e=null;for(const n of t.getChildren())e=n.isInline()?(e||n.replace(n.createParentElementNode())).append(n):null}}class Ts extends pr{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;__slotHost;__slots;$config(){return this.config(Symbol.for("ElementNode"),{$transform:Bs,extends:pr})}constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle="",this.__slotHost=null,this.__slots=null}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__first=t.__first,this.__last=t.__last,this.__size=t.__size,this.__slotHost=t.__slotHost,null!==this.__slotHost&&null!==this.__parent&&r(384,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=t.__slots),this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return V[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getChildrenKeys(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e.__key),e=e.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()&&0===tA(this).length}isDirty(){const t=hs()._dirtyElements;return null!==t&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),e=this.getParentOrThrow().getLastChild();return null!==e&&e.is(t)}getAllTextNodes(){const t=[];for(const e of tA(this)){const n=eA(this,e);Ps(n)&&t.push(...n.getAllTextNodes())}let e=this.getFirstChild();for(;null!==e;){if(Yr(e)&&t.push(e),Ps(e)){const n=e.getAllTextNodes();t.push(...n)}e=e.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;Ps(t);){const e=t.getFirstChild();if(null===e)break;t=e}return t}getLastDescendant(){let t=this.getLastChild();for(;Ps(t);){const e=t.getLastChild();if(null===e)break;t=e}return t}getDescendantByIndex(t){const e=this.getChildren(),n=e.length;if(t>=n){const t=e[n-1];return Ps(t)&&t.getLastDescendant()||t||null}const r=e[t];return Ps(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const t=this.getLatest().__first;return null===t?null:Xo(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return null===t&&r(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return null===t?null:Xo(t)}getLastChildOrThrow(){const t=this.getLastChild();return null===t&&r(96,this.__key),t}getChildAtIndex(t){const e=this.getChildrenSize();let n,r;if(t<e/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=t;){if(r===t)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=e-1;null!==n&&r>=t;){if(r===t)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let t=lA(this);const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContent(),Ps(i)&&r!==n-1&&!i.isInline()&&(t+=F)}return t}getTextContentSize(){let t=function(t){let e=0;for(const n of tA(t)){const r=eA(t,n);null!==r&&(e+=r.getTextContentSize())}return e}(this);const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContentSize(),Ps(i)&&r!==n-1&&!i.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(""!==t){const e=H[t];return 0!==(this.getFormat()&e)}return!1}hasTextFormat(t){const e=$[t];return 0!==(this.getTextFormat()&e)}getFormatFlags(t,e){return Mo(this.getLatest().__textFormat,t,e)}getTextStyle(){return this.getLatest().__textStyle}select(t,e){as();const n=Ni();let r=t,i=e;const s=this.getChildrenSize();if(!this.canBeEmpty())if(0===t&&0===e){const t=this.getFirstChild();if(Yr(t)||Ps(t))return t.select(0,0)}else if(!(void 0!==t&&t!==s||void 0!==e&&e!==s)){const t=this.getLastChild();if(Yr(t)||Ps(t))return t.select()}void 0===r&&(r=s),void 0===i&&(i=s);const o=this.__key;return si(n)?(n.anchor.set(o,r,"element"),n.focus.set(o,i,"element"),n.dirty=!0,n):Bi(o,r,o,i,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach(t=>t.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const e=this.getWritable();return e.__dir=t,e}setFormat(t){return this.getWritable().__format=""!==t&&H[t]||0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const e=this.getWritable();return e.__textFormat=t,e}setTextStyle(t){const e=this.getWritable();return e.__textStyle=t,e}setIndent(t){return this.getWritable().__indent=t,this}splice(t,e,n){hr(this)&&r(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();t+e<=i||r(226,String(t),String(e),String(i));for(const t of n);const o=s.__key,a=[],l=[],A=this.getChildAtIndex(t+e);let c=null,h=i-e+n.length;if(0!==t)if(t===i)c=this.getLastChild();else{const e=this.getChildAtIndex(t);null!==e&&(c=e.getPreviousSibling())}if(e>0){let t=null===c?this.getFirstChild():c.getNextSibling();for(let n=0;n<e;n++){null===t&&r(100);const e=t.getNextSibling(),n=t.__key;Uo(t.getWritable()),l.push(n),t=e}}let u=c;for(const t of n){null!==u&&t.is(u)&&(c=u=u.getPreviousSibling());const e=t.getWritable();e.__parent===o&&h--,Uo(e);const n=t.__key;if(null===u)s.__first=n,e.__prev=null;else{const t=u.getWritable();t.__next=n,e.__prev=t.__key}t.__key===o&&r(76),e.__parent=o,a.push(n),u=t}if(t+e===i)null!==u&&(u.getWritable().__next=null,s.__last=u.__key);else if(null!==A){const t=A.getWritable();if(null!==u){const e=u.getWritable();t.__prev=u.__key,e.__next=A.__key}else t.__prev=null}if(s.__size=h,l.length){const t=Ni();if(si(t)){const e=new Set(l),n=new Set(a),{anchor:r,focus:i}=t;ks(r,e,n)&&Mi(r,r.getNode(),this,c,A),ks(i,e,n)&&Mi(i,i.getNode(),this,c,A),0!==h||this.canBeEmpty()||Fa(this)||this.remove()}}return s}getDOMSlot(t){return new J(t)}exportDOM(t){const{element:e}=super.exportDOM(t);if(cl(e)){const t=this.getIndent();t>0&&(e.style.paddingInlineStart=40*t+"px",e.setAttribute("data-lexical-indent",String(t)));const n=this.getDirection();n&&(e.dir=n)}return{element:e}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},e=this.getTextFormat(),n=this.getTextStyle();return 0===e&&""===n||Fa(this)||this.getChildren().some(Yr)||(0!==e&&(t.textFormat=e),""!==n&&(t.textStyle=n)),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,e){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,e,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,e){const n=Ol(this,t,e);let r=n.getFirstChild();for(let t=this.getFirstChild();t;t=t.getNextSibling()){const i=e.getElementByKey(t.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}}function Ps(t){return t instanceof Ts}function ks(t,e,n){let r=t.getNode();for(;r;){const t=r.__key;if(e.has(t)&&!n.has(t))return!0;r=r.getParent()}return!1}class Is extends pr{__slotHost;__slots;constructor(t){super(t),this.__slotHost=null,this.__slots=null}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__slotHost=t.__slotHost,null!==this.__slotHost&&null!==this.__parent&&r(383,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=t.__slots)}decorate(t,e){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ns(t){return t instanceof Is}class Qs extends Ts{__cachedText;static getType(){return"root"}static clone(){return new Qs}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){r(51)}getTextContent(){const t=this.__cachedText;return null===t||!os()&&0!==hs()._dirtyType?super.getTextContent():t}remove(){r(52)}replace(t){r(53)}insertBefore(t){r(54)}insertAfter(t){r(55)}updateDOM(t,e){return!1}splice(t,e,n){for(const t of n)Ps(t)||Ns(t)||r(282);return super.splice(t,e,n)}static importJSON(t){return qo().updateFromJSON(t)}collapseAtStart(){return!0}}function Fs(t){return t instanceof Qs}function Ls(t){return new Us(st(t._nodeMap),null,t._slotsUsed)}function Ms(){return new Us(new Map([["root",new Qs]]),null,!1)}function Ds(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&r(130,n.name),Ps(t)){const i=e.children;Array.isArray(i)||r(59,n.name);const s=t.getChildren();for(let t=0;t<s.length;t++){const e=Ds(s[t]);i.push(e)}}const i=tA(t);if(i.length>0){const s={};for(const e of i){const i=eA(t,e);null===i&&r(366,n.name,e),s[e]=Ds(i)}e.$slots=s}return e}function Rs(t){return t instanceof Us}class Us{_nodeMap;_selection;_flushSync;_readOnly;_parsed;_slotsUsed;constructor(t,e=null,n=!1){this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1,this._parsed=!1,this._slotsUsed=n}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(t,e){return Os(e&&e.editor||null,this,t)}clone(t){const e=new Us(this._nodeMap,void 0===t?this._selection:t,this._slotsUsed);return e._readOnly=!0,e}toJSON(){return Os(null,this,()=>({root:Ds(qo())}))}}class $s extends Ts{static getType(){return"artificial"}createDOM(t){return Wa().createElement("div")}}class js extends pr{static getType(){return"linebreak"}static clone(t){return new js(t.__key)}constructor(t){super(t)}getTextContent(){return"\n"}createDOM(){return Wa().createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:t=>zs(t)||Gs(t)?null:{conversion:Hs,priority:0}}}static importJSON(t){return Vs().updateFromJSON(t)}}function Hs(t){return{node:Vs()}}function Vs(){return Ma(new js)}function Xs(t){return t instanceof js}function zs(t){const e=t.parentElement;if(null!==e&&gl(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Ys(n)){const n=e.lastChild;if(n===t||n.previousSibling===t&&Ys(n))return!0}}return!1}function Gs(t){const e=t.parentElement;if(null!==e&&gl(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&Ys(n))return!1;const r=e.lastChild;if(r===t||r.previousSibling===t&&Ys(r))return!0}return!1}function Ys(t){return Qo(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}class Ws extends Ts{static getType(){return"paragraph"}static clone(t){return new Ws(t.__key)}createDOM(t){const e=Wa().createElement("p"),n=ga(t.theme,"paragraph");return void 0!==n&&e.classList.add(...n),e}updateDOM(t,e,n){return!1}static importDOM(){return{p:t=>({conversion:Zs,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(cl(e)){this.isEmpty()&&e.append(Wa().createElement("br"));const t=this.getFormatType();t&&(e.style.textAlign=t)}return{element:e}}static importJSON(t){return Ks().updateFromJSON(t)}exportJSON(){const t=super.exportJSON();if(void 0===t.textFormat||void 0===t.textStyle){const e=this.getChildren().find(Yr);e?(t.textFormat=e.getFormat(),t.textStyle=e.getStyle()):(t.textFormat=this.getTextFormat(),t.textStyle=this.getTextStyle())}return t}insertNewAfter(t,e){const n=Ks();n.setTextFormat(t.format),n.setTextStyle(t.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,e),n}collapseAtStart(){const t=this.getChildren();if(0===t.length||Yr(t[0])&&""===t[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function Zs(t){const e=Ks();if(Il(e,t),Pl(t,e),""===e.getFormatType()){const n=t.getAttribute("align");n&&n&&n in H&&e.setFormat(n)}return kl(e,t),{node:e}}function Ks(){return Ma(new Ws)}function qs(t){return t instanceof Ws}function Js(t){console.warn(t)}const to=0,eo=1,no=2,ro=3,io=4,so=-8,oo=-7,ao=-6,lo=-5,Ao=-4;function co(t,e,n,r,i){const s=t._keyToDOMMap;s.clear(),t._editorState=Ms(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,i&&i.preserveUpdateQueue||(t._updateTags=new Set,t._updates=[],t._cascadeCount=0),t._blockCursorElement=null,null!==t._inputState.handledSelectionCommandTimeoutId&&clearTimeout(t._inputState.handledSelectionCommandTimeoutId),t._inputState={collapsedSelectionFormat:{format:0,key:"root",offset:0,style:"",timeStamp:0},compositionEndData:"",compositionPhase:"idle",hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null};const o=t._observer;null!==o&&(o.disconnect(),t._observer=null),null!==e&&(e.textContent="",function(t,e){delete t[`__lexicalKey_${e._key}`]}(e,t)),null!==n&&(n.textContent="",s.set("root",n),Go(n,t,"root"))}function ho(t){const e=new Set,n=new Set;for(const{klass:r,ownNodeConfig:i}of Ul(t)){const t=r.transform;if(!n.has(t)){n.add(t);const i=r.transform();i&&e.add(i)}if(i){const t=i.$transform;t&&e.add(t)}}return e}const uo={$createDOM:(t,e)=>t.createDOM(e._config,e),$decorateDOM:(t,e,n,r)=>{},$exportDOM:(t,e)=>{const n=wo(e,t.getType());return n&&void 0!==n.exportDOM?n.exportDOM(e,t):t.exportDOM(e)},$extractWithChild:(t,e,n,r,i)=>Ps(t)&&t.extractWithChild(e,n,r),$getDOMSlot:(t,e,n)=>t.getDOMSlot(e),$getSlotTargetElement:(t,e,n,r)=>null,$shouldExclude:(t,e,n)=>Ps(t)&&t.excludeFromCopy("html"),$shouldInclude:(t,e,n)=>!e||t.isSelected(e),$updateDOM:(t,e,n,r)=>t.updateDOM(e,n,r._config)};function po(t){const e=t||{},n=ds(),i=e.theme||{},s=void 0===t?n:e.parentEditor||null,o=e.disableEvents||!1,a=Ms(),l=e.namespace||(null!==s?s._config.namespace:ia()),A=e.editorState,c=[Qs,Dr,js,Zr,Ws,$s,...e.nodes||[]],{onError:h,onWarn:u,html:p}=e,d=void 0===e.editable||e.editable;let f;if(void 0===t&&null!==n)f=n._nodes;else{f=new Map;for(let t=0;t<c.length;t++){let n=c[t],i=null,s=null;if(n&&"object"==typeof n){const t=n;n=t.replace,i=t.with,s=t.withKlass||null}if("function"!=typeof n||!n.prototype||!(n===pr||n.prototype instanceof pr)){let i="<unknown>";try{i=JSON.parse(nt)}catch(t){}r(365,String(t-c.length+(e.nodes?e.nodes.length:0)),"function"==typeof n?`${n.name}${"function"==typeof n.getType?` (type ${String(n.getType())})`:""}`:String(n),String(i))}Rl(n);const o=n.getType(),a=ho(n);f.set(o,{exportDOM:p&&p.export?p.export.get(n):void 0,klass:n,replace:i,replaceWithKlass:s,sharedNodeState:St(c[t]),transforms:a})}}const g=new mo(a,s,f,{disableEvents:o,dom:{...uo,...t&&t.dom},namespace:l,theme:i},h||console.error,u||Js,function(t,e){const n=new Map,r=new Set,i=t=>{Object.keys(t).forEach(e=>{let r=n.get(e);void 0===r&&(r=[],n.set(e,r)),r.push(t[e])})};return t.forEach(t=>{const e=t.klass.importDOM;if(null==e||r.has(e))return;r.add(e);const n=e.call(t.klass);null!==n&&i(n)}),e&&i(e),n}(f,p?p.import:void 0),d,t);return void 0!==A&&(g._pendingEditorState=A,g._dirtyType=2),function(t){t.registerCommand(De,Wn,to),t.registerCommand(Re,Zn,to),t.registerCommand(Ue,Kn,to),t.registerCommand($e,qn,to),t.registerCommand(tn,er,to)}(g),g}function fo(t,e){const n=t.get(e);t.delete(e),n&&n()}function go(t,e,n){return t.set(e,n),fo.bind(null,t,e)}class mo{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_cascadeCount;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_onWarn;_htmlConversions;_window;_editable;_blockCursorElement;_slotsUsed;_inputState;_createEditorArgs;constructor(t,e,n,r,i,s,o,a,l){this._createEditorArgs=l,this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new ot,this._updates=[],this._updating=!1,this._cascadeCount=0,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=ia(),this._onError=i,this._onWarn=s,this._htmlConversions=o,this._editable=a,this._headless=null!==e&&e._headless,this._window=null,this._blockCursorElement=null,this._slotsUsed=!1,this._inputState={collapsedSelectionFormat:{format:0,key:"root",offset:0,style:"",timeStamp:0},compositionEndData:"",compositionPhase:"idle",hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null}}isComposing(){return null!=this._compositionKey}registerUpdateListener(t){return go(this._listeners.update,t)}registerEditableListener(t){return go(this._listeners.editable,t)}registerDecoratorListener(t){return go(this._listeners.decorator,t)}registerTextContentListener(t){return go(this._listeners.textcontent,t)}registerRootListener(t){const e=this._listeners.root;return Oc(go(e,t,t(this._rootElement,null)||void 0),()=>function(t,e,n){const r=t.get(e);r&&r(),t.set(e,e(...n)||void 0)}(e,t,[null,this._rootElement]))}registerCommand(t,e,n){void 0===n&&r(35);const i=this._commands;i.has(t)||i.set(t,[new rt,new rt,new rt,new rt,new rt]);const s=i.get(t);void 0===s&&r(36,String(t));const o=function(t){return 7&t}(n),a=s[o];return o!==n?a.addFront(e):a.addBack(e),()=>{a.delete(e),s.every(t=>0===t.size)&&i.delete(t)}}registerMutationListener(t,e,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;let s=i.get(e);void 0===s&&(s=new Set,i.set(e,s)),s.add(r);const o=n&&n.skipInitialization;return void 0!==o&&o||this.initializeMutationListener(e,r),()=>{s.delete(r),0===s.size&&i.delete(e)}}getRegisteredNode(t){const e=this._nodes.get(t.getType());return void 0===e&&r(37,t.name),e}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const n=this._editorState,r=El(n).get(e.getType());if(!r)return;const i=new Map;for(const t of r.keys())i.set(t,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,e){const n=this.getRegisteredNode(t);return n.transforms.add(e),n}registerNodeTransform(t,e){const n=this.registerNodeTransformToKlass(t,e),r=[n],i=n.replaceWithKlass;if(null!=i){const t=this.registerNodeTransformToKlass(i,e);r.push(t)}return function(t,e){const n=El(t.getEditorState()),r=[];for(const t of e){const e=n.get(t);e&&r.push(e)}0!==r.length&&t.update(()=>{for(const t of r)for(const e of t.keys()){const t=Xo(e);t&&t.markDirty()}},null===t._pendingEditorState?{tag:mr}:void 0)}(this,r.map(t=>t.klass.getType())),()=>{r.forEach(t=>t.transforms.delete(e))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return xa(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const n=ga(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=t,co(this,e,t,r,{preserveUpdateQueue:!0}),null!==e&&(this._config.disableEvents||ar(e),null!=n&&e.classList.remove(...n)),null!==t){const e=Pa(t),r=t.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=e,this._dirtyType=2,mt(this),this._updateTags.add(mr),bs(this),this._config.disableEvents||function(t,e){const n=t.ownerDocument;Ln.set(t,n);let r=Mn.get(n);void 0===r&&(r={editors:new Set,hasShadowEditor:void 0},Mn.set(n,r)),r.editors.add(e),r.hasShadowEditor=void 0,t.__lexicalEditor=e;const i=nr(t);i.push(Dn.register(n));for(let n=0;n<Fn.length;n++){const[r,s]=Fn[n],o="function"==typeof s?t=>{or(t)||(sr(t),(e.isEditable()||"click"===r)&&s(t,e))}:t=>{if(or(t))return;sr(t);const n=e.isEditable();switch(r){case"cut":return n&&xa(e,wn,t);case"copy":return xa(e,xn,t);case"paste":return n&&xa(e,ze,t);case"dragstart":return n&&xa(e,vn,t);case"dragover":return n&&xa(e,On,t);case"dragend":return n&&xa(e,bn,t);case"focus":return n&&xa(e,Tn,t);case"blur":return n&&xa(e,Pn,t);case"drop":return n&&xa(e,mn,t)}};i.push(Nn(t,r,o))}}(t,this),null!=n&&t.classList.add(...n)}else this._window=null,this._updateTags.add(mr),bs(this);xs("root",this,!1,t,e)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,e){t.isEmpty()&&r(38);let n=t;n._readOnly&&(n=Ls(t),n._selection=t._selection?t._selection.clone():null),gt(this);const i=this._pendingEditorState,s=void 0!==e?e.tag:null;null===i||i.isEmpty()||(null!=s&&this._updateTags.add(s),bs(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,this._slotsUsed=this._slotsUsed||t._slotsUsed,Es(this,()=>{if(s&&this._updateTags.add(s),t._parsed)for(const[t,e]of n._nodeMap.entries())Ps(e)?this._dirtyElements.set(t,!0):this._dirtyLeaves.add(t)},{discrete:!this._updating||void 0})}parseEditorState(t,e){return function(t,e,n){const r=Ms(),i=qi,s=ts,o=Ji,a=e._dirtyElements,l=e._dirtyLeaves,A=e._cloneNotNeeded,c=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._cloneNotNeeded=new Set,e._dirtyType=0,qi=r,ts=!1,Ji=e,vo(null);try{const i=e._nodes;vs(t.root,i),n&&n(),r._readOnly=!0,r._parsed=!0}catch(t){t instanceof Error&&e._onError(t)}finally{e._dirtyElements=a,e._dirtyLeaves=l,e._cloneNotNeeded=A,e._dirtyType=c,qi=i,ts=s,Ji=o}return r}("string"==typeof t?JSON.parse(t):t,this,e)}read(...t){const[e,n]=1===t.length?["force-commit",t[0]]:t;return"force-commit"===e&&bs(this),("pending"===e?this._pendingEditorState||this._editorState:this.getEditorState()).read(n,{editor:this})}update(t,e){!function(t,e,n){t._updating?t._updates.push([e,n]):Cs(t,e,n)}(this,t,e)}focus(t,e={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Es(this,()=>{const r=Ni(),i=qo();null!==r?r.dirty||Jo(r.clone()):0!==i.getChildrenSize()&&("rootStart"===e.defaultSelection?i.selectStart():i.selectEnd()),Ea("focus"),Ba(()=>{n.removeAttribute("autocapitalize"),t&&t()})}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;null!==t&&t.blur();const e=ja(this._window);null!==e&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,xs("editable",this,!0,t),this._slotsUsed&&this.update(()=>us()))}toJSON(){return{editorState:this._editorState.toJSON()}}}mo.version=nt;let yo=null;function vo(t){yo=t}let Oo=1;function bo(){Oo=1}function xo(t,e){const n=wo(t,e);return void 0===n&&r(30,e),n}function wo(t,e){return t._nodes.get(e)}const _o="function"==typeof queueMicrotask?queueMicrotask:t=>{Promise.resolve().then(t)};function So(t,e){const n=void 0!==e?e:(()=>{const e=t.getRootNode();return Fo(e)||Va(e)?il(e):null})();if(!cl(n))return!1;if(n.hasAttribute("data-lexical-slot"))return!1;const r=Wo(n),i=n.nodeName;return dr(r)&&("INPUT"===i||"TEXTAREA"===i||"true"===n.contentEditable&&null==Po(n))}const Co=So;function Eo(t,e,n){const r=t.getRootElement();if(!r)return!1;try{if(!e||!r.contains(e)||!r.contains(n))return!1}catch(t){return!1}return To(e)===t&&t.read("latest",()=>!So(e))}function Bo(t){return t instanceof mo}function To(t){let e=t;for(;null!=e;){const t=Po(e);if(Bo(t))return t;e=_a(e)}return null}function Po(t){return t?t.__lexicalEditor:null}function ko(t){return R.test(t)?"rtl":U.test(t)?"ltr":null}function Io(t){return qr(t)||t.isToken()}function No(t){return Io(t)||t.isSegmented()}function Qo(t){return hl(t)&&3===t.nodeType}function Fo(t){return hl(t)&&9===t.nodeType}function Lo(t){let e=t;for(;null!=e;){if(Qo(e))return e;e=e.firstChild}return null}function Mo(t,e,n){const r=$[e];if(null!==n&&(t&r)===(n&r))return t;let i=t^r;return"subscript"===e?i&=~$.superscript:"superscript"===e?i&=~$.subscript:"lowercase"===e?(i&=~$.uppercase,i&=~$.capitalize):"uppercase"===e?(i&=~$.lowercase,i&=~$.capitalize):"capitalize"===e&&(i&=~$.lowercase,i&=~$.uppercase),i}function Do(t){return Yr(t)||Xs(t)||Ns(t)}function Ro(t,e){const n=function(){const t=yo;return yo=null,t}();if(null!=(e=e||n&&n.__key))return void(t.__key=e);as(),ls();const r=hs(),i=As(),s=""+Oo++;i._nodeMap.set(s,t),Ps(t)?r._dirtyElements.set(s,!0):r._dirtyLeaves.add(s),r._cloneNotNeeded.add(s),0===r._dirtyType&&(r._dirtyType=1),t.__key=s}function Uo(t){null!==Wl(t)&&r(380,t.__key,String(Wl(t)));const e=t.getParent();if(null!==e){const n=t.getWritable(),r=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling(),o=null!==s?s.__key:null,a=null!==i?i.__key:null,l=null!==i?i.getWritable():null,A=null!==s?s.getWritable():null;null===i&&(r.__first=o),null===s&&(r.__last=a),null!==l&&(l.__next=o),null!==A&&(A.__prev=a),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}const $o=Uo;function jo(t){ls(),hr(t)&&r(323,t.__key,t.__type);const e=t.getLatest(),n=null!==e.__parent?e.__parent:Yl(e)?e.__slotHost:null,i=As(),s=hs(),o=i._nodeMap,a=s._dirtyElements;null!==n&&function(t,e,n){let r=t;for(;null!==r;){if(n.has(r))return;const t=e.get(r);if(void 0===t)break;n.set(r,!1),r=null!==t.__parent?t.__parent:Yl(t)?t.__slotHost:null}}(n,o,a);const l=e.__key;0===s._dirtyType&&(s._dirtyType=1),Ps(t)?a.set(l,!0):s._dirtyLeaves.add(l)}function Ho(t){as();const e=hs(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,null!==n){const t=Xo(n);null!==t&&t.getWritable()}if(null!==t){const e=Xo(t);null!==e&&e.getWritable()}}}function Vo(){return os()?null:hs()._compositionKey}function Xo(t,e){const n=(e||As())._nodeMap.get(t);return void 0===n?null:n}function zo(t,e){const n=Yo(t,hs());return void 0!==n?Xo(n,e):null}function Go(t,e,n){t[`__lexicalKey_${e._key}`]=n}function Yo(t,e){return t[`__lexicalKey_${e._key}`]}function Wo(t,e){let n=t;for(;null!=n;){const t=zo(n,e);if(null!==t)return t;n=_a(n)}return null}function Zo(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function Ko(t){return t.read(()=>qo().getTextContent())}function qo(){return As()._nodeMap.get("root")}function Jo(t){as();const e=As();null!==t&&(t.dirty=!0,t.setCachedNodes(null),si(t)&&hs()._slotsUsed&&Si(t)),e._selection=t}function ta(){as(),gt(hs())}function ea(t){const e=function(t,e){let n=t;for(;null!=n;){const t=Yo(n,e);if(void 0!==t)return t;n=_a(n)}return null}(t,hs());return null===e?null:Xo(e)}function na(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function ra(t){const e=[];for(let n=t;null!==n;n=n._parentEditor)e.push(n);return e}function ia(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function sa(t){return Qo(t)?t.nodeValue:null}function oa(t,e,n){const r=ja(ka(e));if(null===r)return;const i=qa(r,e._rootElement),s=i.anchorNode;let{anchorOffset:o,focusOffset:a}=i;if(null!==s){let e=sa(s);const r=Wo(s);if(null!==e&&Yr(r)){if((e===Q||e===L)&&n){const t=n.length;e=n,o=t,a=t}null!==e&&aa(r,e,o,a,t)}}}function aa(t,e,n,r,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const o=s.isComposing();if(s.isToken()&&o)return;let a=e;if((o||i)&&(e.endsWith(Q)&&(a=e.slice(0,-Q.length)),i)){const t=L;let e;for(;-1!==(e=a.indexOf(t));)a=a.slice(0,e)+a.slice(e+t.length),null!==n&&n>e&&(n=Math.max(e,n-t.length)),null!==r&&r>e&&(r=Math.max(e,r-t.length))}const l=s.getTextContent();if(i||a!==l){const e=Ni();if(""===a){if(Ho(null),u||c||f)s.remove();else{const t=hs();la(s,"",e),setTimeout(()=>{t.update(()=>{s.isAttached()&&""===s.getTextContent()&&s.remove()})},20)}return}const i=s.getParent(),l=Qi(),A=s.getTextContentSize(),h=Vo(),p=s.getKey();if(s.isToken()&&!o||null!==h&&p===h&&!o||si(l)&&(null!==i&&!i.canInsertTextBefore()&&0===l.anchor.offset||l.anchor.key===t.__key&&0===l.anchor.offset&&!s.canInsertTextBefore()&&!o||l.focus.key===t.__key&&l.focus.offset===A&&!s.canInsertTextAfter()&&!o))return void s.markDirty();if(!si(e)||null===n||null===r)return void la(s,a,e);if(e.setTextNodeRange(s,n,s,r),s.isSegmented()){const t=Gr(s.getTextContent());s.replace(t),s=t}la(s,a,e)}}}function la(t,e,n){if(t.setTextContent(e),si(n)){const e=t.getKey();let r=!1;for(const i of["anchor","focus"]){const s=n[i];"text"===s.type&&s.key===e&&(s.offset=PA(t,s.offset,"clamp"),r=!0)}r&&(n._cachedNodes=null,n._cachedIsBackward=null)}}function Aa(t,e,n){const r=e[n]||!1;return"any"===r||r===t[n]}function ca(t,e){return Aa(t,e,"altKey")&&Aa(t,e,"ctrlKey")&&Aa(t,e,"shiftKey")&&Aa(t,e,"metaKey")}function ha(t,e,n){if(!ca(t,n))return!1;if(t.key.toLowerCase()===e.toLowerCase())return!0;if(e.length>1)return!1;if(1===t.key.length&&t.key.charCodeAt(0)<=127)return!1;if(t.code.startsWith("Digit")&&/^\d$/.test(e))return t.code===`Digit${e}`;const r="Key"+e.toUpperCase();return t.code===r}const ua={ctrlKey:!a,metaKey:a},pa={altKey:a,ctrlKey:!a};function da(t){return"Backspace"===t.key}function fa(t){const e=qo();if(si(t)){const e=t.anchor,n=t.focus,r=e.getNode();if(Fs(r))return e.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),Dt(t),t;const i=r.getTopLevelElementOrThrow(),s=i.getParent();if(null===s)return Ps(i)&&(e.set(i.getKey(),0,"element"),n.set(i.getKey(),i.getChildrenSize(),"element"),Dt(t)),t;const o=s;return e.set(o.getKey(),0,"element"),n.set(o.getKey(),o.getChildrenSize(),"element"),Dt(t),t}{const t=e.select(0,e.getChildrenSize());return Jo(Dt(t)),t}}function ga(t,e){void 0===t.__lexicalClassNameCache&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(void 0!==r)return r;const i=t[e];if("string"==typeof i){const t=mc(i);return n[e]=t,t}return i}function ma(t,e,n,i,s){if(0===n.size)return;const o=i.__type,a=i.__key,l=e.get(o);void 0===l&&r(33,o);const A=l.klass;let c=t.get(A);void 0===c&&(c=new Map,t.set(A,c));const h=c.get(a),u="destroyed"===h&&"created"===s;(void 0===h||u)&&c.set(a,u?"updated":s)}function ya(t){const e=t.getType(),n=As();if(n._readOnly){const t=El(n).get(e);return t?Array.from(t.values()):[]}const r=n._nodeMap,i=[];for(const[,n]of r)n instanceof t&&n.__type===e&&n.isAttached()&&i.push(n);return i}function va(t,e,n){const r=t.getParent();let i=n,s=t;return null!==r&&(e&&0===n?(i=s.getIndexWithinParent(),s=r):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=r)),s.getChildAtIndex(e?i-1:i)}function Oa(t,e){const n=t.offset;if("element"===t.type)return va(t.getNode(),e,n);{const r=t.getNode();if(e&&0===n||!e&&n===r.getTextContentSize()){const t=e?r.getPreviousSibling():r.getNextSibling();return null===t?va(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):t}}return null}function ba(t){const e=ka(t).event,n=e&&e.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function xa(t,e,n){return ws(t,e,n,t)}function wa(t,e){const n=t._keyToDOMMap.get(e);return void 0===n&&r(75,e),n}function _a(t){const e=t.assignedSlot||t.parentElement;if(null!==e)return e;const n=t.parentNode;return Va(n)?n.host:null}function Sa(t){return Fo(t)?t:cl(t)?t.ownerDocument:null}function Ca(t){return hs()._updateTags.has(t)}function Ea(t){as(),hs()._updateTags.add(t)}function Ba(t){as(),hs()._deferred.push(t)}function Ta(t,e){let n=t.getParent();for(;null!==n;){if(n.is(e))return!0;n=n.getParent()}return!1}function Pa(t){const e=Sa(t);return e?e.defaultView:null}function ka(t){const e=t._window;return null===e&&r(78),e}function Ia(t){return Ps(t)&&t.isInline()||Ns(t)&&t.isInline()}function Na(t){let e=t.getLatest();for(;null!==e;){if(null!==Wl(e)&&Ps(e))return e;const t=e.getParentOrThrow();if(Fa(t))return t;e=t}return e}function Qa(t){return Ps(t)&&t.isShadowRoot()}function Fa(t){return Fs(t)||Qa(t)}function La(t,e=!1){const n=t.constructor.clone(t);return Ro(n,null),n.afterCloneFrom(t),e||n.resetOnCopyNodeFrom(t),n}function Ma(t){const e=hs(),n=t.getType(),i=wo(e,n);void 0===i&&r(200,t.constructor.name,n);const{replace:s,replaceWithKlass:o}=i;if(null!==s){const e=s(t),i=e.constructor;return null!==o?e instanceof o||r(201,o.name,o.getType(),i.name,i.getType(),t.constructor.name,n):e instanceof t.constructor&&i!==t.constructor||r(202,i.name,i.getType(),t.constructor.name,n),e.__key===t.__key&&r(203,t.constructor.name,n,i.name,i.getType()),e}return t}function Da(t,e){!Fs(t.getParent())||Ps(e)||Ns(e)||r(99)}function Ra(t){const e=Xo(t);return null===e&&r(63,t),e}function Ua(t){if(!t||t.isInline())return!1;if(Ns(t))return!0;if(Ps(t)){if(t.isShadowRoot()){const e=t.getParent();return!(Ps(e)&&e.isShadowRoot())}return!t.canBeEmpty()}return!1}function $a(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;null!==r&&r.removeChild(t)}function ja(t){return s?(t||window).getSelection():null}function Ha(t){const e=Pa(t);return e?e.getSelection():null}function Va(t){return ul(t)&&"host"in t}const Xa=[];function za(t){const e=t.getRootNode();if(e===t||!Va(e))return Xa;const n=[e];let r=e.host;for(;;){const t=r.getRootNode();if(t===r||!Va(t))break;n.push(t),r=t.host}return n}function*Ga(t){const e=[t];let n;for(;n=e.pop();){yield*n.querySelectorAll('[data-lexical-editor="true"]');const t=(Fo(n)?n:n.ownerDocument).createTreeWalker(n,NodeFilter.SHOW_ELEMENT);let r;for(;r=t.nextNode();)r.shadowRoot&&e.push(r.shadowRoot)}}function Ya(t){return null!==t?t.ownerDocument:document}function Wa(){const t=ds();return Ya(null!==t?t._rootElement:null)}function Za(t,e){if(null===e||"function"!=typeof t.getComposedRanges)return null;const n=za(e);if(0===n.length)return null;const r=t.getComposedRanges;try{const e=r.call(t,{shadowRoots:n})[0];if(void 0!==e)return e}catch(t){}try{const e=r.apply(t,n)[0];if(void 0!==e)return e}catch(t){}return null}function Ka(t,e){const n=Za(t,e);if(null!==n){const t=tl(n);if(null!==t)return t}return t.rangeCount>0?t.getRangeAt(0):null}function qa(t,e){const n=Za(t,e);return null===n?t:el(n,nl(t))}function Ja(t,e){const n=Za(t,e);if(null===n)return{points:t,range:t.rangeCount>0?t.getRangeAt(0):null};const r=tl(n)??(t.rangeCount>0?t.getRangeAt(0):null);return{points:el(n,nl(t)),range:r}}function tl(t){const e=t.startContainer.ownerDocument;if(null===e)return null;const n=e.createRange();try{return n.setStart(t.startContainer,t.startOffset),n.setEnd(t.endContainer,t.endOffset),n}catch(t){return null}}function el(t,e){const{startContainer:n,startOffset:r,endContainer:i,endOffset:s}=t;return"backward"===e?{anchorNode:i,anchorOffset:s,direction:e,focusNode:n,focusOffset:r}:{anchorNode:n,anchorOffset:r,direction:e,focusNode:i,focusOffset:s}}function nl(t){return t.direction}function rl(t){const e=t.getRootNode();return Fo(e)||Va(e)?e.activeElement:null}function il(t){let e=t.activeElement;for(;null!==e&&null!==e.shadowRoot;){const t=e.shadowRoot.activeElement;if(null===t)break;e=t}return e}function sl(t){const e=t.target;if(null!==e&&cl(e)&&null!==e.shadowRoot&&"function"==typeof t.composedPath){const e=t.composedPath();if(e.length>0)return e[0]}return e}function ol(t,e){let n=t.getChildAtIndex(e);null==n&&(n=t),Fa(t)&&r(102);const i=t=>{const e=t.getParentOrThrow(),s=Fa(e),o=t!==n||s?La(t):t;if(s)return Ps(t)&&Ps(o)||r(133),t.insertAfter(o),[t,o,o];{const[n,r,s]=i(e),a=t.getNextSiblings();return s.append(o,...a),[n,r,o]}},[s,o]=i(n);return[s,o]}function al(t){return cl(t)&&"A"===t.tagName}function ll(t){return cl(t)&&"TR"===t.tagName}function Al(t){return cl(t)&&("TD"===t.tagName||"TH"===t.tagName)}function cl(t){return hl(t)&&1===t.nodeType}function hl(t){return"object"==typeof t&&null!==t&&"nodeType"in t&&"number"==typeof t.nodeType}function ul(t){return hl(t)&&11===t.nodeType}const pl=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/i;function dl(t){return!(!cl(t)||!t.style.display.startsWith("inline"))||pl.test(t.nodeName)}const fl=/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/i;function gl(t){return(!cl(t)||!t.style.display.startsWith("inline"))&&fl.test(t.nodeName)}function ml(t){if(Ns(t)&&!t.isInline())return!0;if(!Ps(t)||Fa(t))return!1;const e=t.getFirstChild(),n=null===e||Xs(e)||Yr(e)||e.isInline();return!t.isInline()&&!1!==t.canBeEmpty()&&n}function yl(){return hs()}function vl(t=yl()){return t._config.dom||uo}function Ol(t,e,n=yl()){const i=vl(n).$getDOMSlot(t,e,n);return Ps(t)&&(wl(i)||r(344,t.getKey(),t.getType())),i}function bl(t,e,n,r){const i=t.read("latest",()=>{const r=Xo(e);return null!==r?function(t,e,n=yl()){const r=eA(t,e);if(null===r)return null;const i=n.getElementByKey(r.getKey());return null!==i?i.parentElement:null}(r,n,t):null});return null!==i&&(i.parentElement!==r&&r.appendChild(i),i.style.display=""),i}function xl(t,e,n){n.style.display="none";const r=t.getElementByKey(e);null!==r&&n.parentElement!==r&&r.insertBefore(n,r.firstChild)}function wl(t){return t instanceof J}function _l(t,e,n=yl()){return Lo(Ol(t,e,n).element)}const Sl=new WeakMap,Cl=new Map;function El(t){if(!t._readOnly&&t.isEmpty())return Cl;t._readOnly||r(192);let e=Sl.get(t);return e||(e=function(t){const e=new Map;for(const[n,r]of t._nodeMap){const t=r.__type;let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)}return e}(t),Sl.set(t,e)),e}function Bl(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function Tl(t){return(e=Bl(t))[cr]=!0,e;var e}function Pl(t,e){const n=t.getAttribute("data-lexical-indent");if(null!==n){const t=parseInt(n,10);if(Number.isFinite(t)&&t>=0)return void e.setIndent(t)}const r=parseInt(t.style.paddingInlineStart,10)||0,i=Math.round(r/40);e.setIndent(i)}function kl(t,e){const n=e.getAttribute("dir");return"ltr"===n||"rtl"===n?t.setDirection(n):t}function Il(t,e){const n=e.style.textAlign;return n&&n in H?t.setFormat(n):t}function Nl(t,e){t.__lexicalUnmanaged=!0,e&&void 0!==e.captureSelection&&(t.__lexicalCapturedSelection=e.captureSelection)}function Ql(t){return!0===t.__lexicalUnmanaged}function Fl(t,e=yl()){const n=e.isEditable();t.contentEditable=n?"true":"false",n?t.__lexicalEditor=e:delete t.__lexicalEditor}function Ll(t,e){let n=t;for(;null!=n;){if(!0===n.__lexicalCapturedSelection)return!0;if(cl(n)&&n.hasAttribute("data-lexical-slot"))return!1;if(void 0!==Yo(n,e))return!1;n=_a(n)}return!1}function Ml(t,e){return function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,e)&&t[e]!==pr[e]}const Dl=new WeakMap;function Rl(t){const e=Dl.get(t);if(e)return e;const n=null!=t.prototype&&Y in t.prototype?t.prototype[Y]():void 0,i=function(t){if(!(t===pr||t.prototype instanceof pr)){let e="<unknown>",n="<unknown>";try{e=t.getType()}catch(t){}try{mo.version&&(n=JSON.parse(mo.version))}catch(t){}r(290,t.name,e,n)}return t===Is||t===Ts||t===pr}(t),s=!i&&Ml(t,"getType")?t.getType():void 0;let o,a=s;if(n)if(s)o=n[s];else{for(const[t,e]of Object.entries(n))a=t,o=e;if(!o)for(const t of Object.getOwnPropertySymbols(n)){const e=n[t];if(e){o=e;break}}}if(!i&&a&&(Ml(t,"getType")||(t.getType=()=>a),Ml(t,"clone")||(t.clone=e=>(vo(e),new t)),Ml(t,"importJSON")||(t.importJSON=o&&o.$importJSON||(e=>(new t).updateFromJSON(e))),!Ml(t,"importDOM")&&o)){const{importDOM:e}=o;e&&(t.importDOM=()=>e)}const l={klass:t,ownNodeConfig:o,ownNodeType:a};return Dl.set(t,l),l}function*Ul(t){for(let e=t;e&&(e===pr||dr(e.prototype));){const t=Rl(e);yield t,e=t.ownNodeConfig&&t.ownNodeConfig.extends||Xl(e)}}function $l(t){const e=new Map,n=new Map;for(const r of t){const{ownNodeType:t}=Rl(r);t&&(n.set(t,r),e.set(t,new Set))}for(const[t,r]of n)for(const{ownNodeType:n}of Ul(r)){const r=n&&e.get(n);r&&r.add(t)}return e}function jl(t){const e=yl();return as(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t)).klass)}const Hl=(t,e)=>{let n=t;for(;null!=n&&!Fs(n);){if(e(n))return n;n=n.getParent()}return null};function Vl(t,e){const n=[];let i=t.__first;for(;null!==i;){const t=null===e?Xo(i):e.get(i);null==t&&r(174),n.push(i),i=t.__next}return n}function Xl(t){const e=Object.getPrototypeOf(t);if("function"==typeof e&&e!==Function.prototype)return e;const n=t.prototype&&Object.getPrototypeOf(t.prototype);return n?n.constructor:null}const zl=new Map;function Gl(t){return Ps(t)||Ns(t)}function Yl(t){return Ps(t)||Ns(t)}function Wl(t){const e=t.getLatest();return Yl(e)?e.__slotHost:null}function Zl(t){const e=Wl(t);if(null===e)return null;const n=Xo(e);return Ps(n)||Ns(n)||r(370),n}function Kl(t){const e=Zl(t);if(null===e)return null;const n=t.getLatest().__key;for(const[t,r]of Jl(e))if(r===n)return t;return null}function ql(t){let e=t.getLatest();for(;null!==e;){if(null!==Wl(e))return e;e=e.getParent()}return null}function Jl(t){const e=t.getLatest();return Gl(e)&&null!==e.__slots?e.__slots:zl}function tA(t){return Array.from(Jl(t).keys())}function eA(t,e){const n=Jl(t).get(e);return void 0===n?null:Xo(n)}const nA=["__proto__","constructor","prototype"],rA=Symbol("slotMapOwner");function iA(t){let e=t.__slots;return null!==e&&e[rA]===t||(e=new Map(e),e[rA]=t,t.__slots=e),e}const sA=new WeakMap,oA=[];function aA(t){for(const{ownNodeConfig:e}of Ul(t)){const t=e&&e.slots;if(t)return t}return oA}function lA(t){let e="";for(const n of tA(t)){const r=eA(t,n);null!==r&&(e+=r.getTextContent())}return e}function AA(t,e,n){const r=n.get(t),i=n.get(e);return void 0!==r?void 0!==i?r-i:-1:void 0!==i?1:t<e?-1:t>e?1:0}function cA(t,e,n){"__proto__"!==e&&"constructor"!==e&&"prototype"!==e||r(373,e);const i=t.getLatest();if(null!==i.__slots&&i.__slots.get(e)===n.getLatest().__key)return i;(!Ps(n)&&!Ns(n)||n.isInline())&&r(374,n.__key);const s=t.getWritable(),o=iA(s),a=o.get(e);void 0!==a&&uA(a);const l=n.getWritable(),A=Zl(l);if(null!==A){const t=Kl(l);null!==t&&iA(A.getWritable()).delete(t),l.__slotHost=null}return Uo(l),l.__slotHost=s.__key,o.set(e,l.__key),function(t){const e=t.__slots;if(null===e||e.size<2)return;const n=function(t){let e=sA.get(t);if(void 0===e){const n=aA(t),i=new Map;for(const e of n)nA.includes(e)&&r(371,t.name,e),i.has(e)&&r(372,t.name,e),i.set(e,i.size);e=i,sA.set(t,e)}return e}(t.constructor);let i=null,s=!0;for(const t of e.keys()){if(null!==i&&AA(i,t,n)>0){s=!1;break}i=t}if(s)return;const o=Array.from(e).sort(([t],[e])=>AA(t,e,n));e.clear();for(const[t,n]of o)e.set(t,n)}(s),function(){const t=yl();t._slotsUsed=!0,t._pendingEditorState&&(t._pendingEditorState._slotsUsed=!0)}(),s}function hA(t,e){const n=t.getWritable();if(null===n.__slots)return n;const r=n.__slots.get(e);return void 0!==r&&(uA(r),iA(n).delete(e)),n}function uA(t){const e=Xo(t);if(null===e)return;const n=e.getWritable();Yl(n)||r(377,t),n.__slotHost=null,n.remove()}const pA={next:"previous",previous:"next"};class dA{origin;constructor(t){this.origin=t}[Symbol.iterator](){return $A({hasNext:wA,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return BA(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return BA(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,e){const n=this.getNodeAtCaret();return t.is(this.origin)||t.is(n)||(null===n?this.insert(t):n.replace(t,e)),this}splice(t,e,n="next"){const i=n===this.direction?e:Array.from(e).reverse();let s=this;const o=this.getParentAtCaret(),a=new Map;for(let e=s.getAdjacentCaret();null!==e&&a.size<t;e=e.getAdjacentCaret()){const t=e.origin.getWritable();a.set(t.getKey(),t)}for(const t of i){if(a.size>0){const e=s.getNodeAtCaret();if(e)if(a.delete(e.getKey()),a.delete(t.getKey()),e.is(t)||s.origin.is(t));else{const n=t.getParent();n&&n.is(o)&&t.remove(),e.replace(t)}else null===e&&r(263,Array.from(a).join(" "))}else s.insert(t);s=BA(t,this.direction)}for(const t of a.values())t.remove();return this}}class fA extends dA{type="child";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:IA(t,this.direction)}getParentCaret(t="root"){return BA(yA(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=mA(this.direction);return BA(this.getNodeAtCaret(),t)||IA(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof fA&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}}const gA={root:Fs,shadowRoot:Fa};function mA(t){return pA[t]}function yA(t,e="root"){return null===t||gA[e](t)?null:null===Wl(t)?t:null}class vA extends dA{type="sibling";getLatest(){const t=this.origin.getLatest();return t===this.origin?this:BA(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return Ps(this.origin)?IA(this.origin,this.direction):null}getParentCaret(t="root"){return BA(yA(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=mA(this.direction);return BA(this.getNodeAtCaret(),t)||IA(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof vA&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof vA||t instanceof OA)&&this.direction===t.direction&&this.origin.is(t.origin)}}class OA extends dA{type="text";offset;constructor(t,e){super(t),this.offset=e}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:TA(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return BA(yA(this.getParentAtCaret(),t),this.direction)}getFlipped(){return TA(this.origin,mA(this.direction),this.offset)}isSamePointCaret(t){return t instanceof OA&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof vA||t instanceof OA)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return BA(this.origin,this.direction)}}function bA(t){return t instanceof OA}function xA(t){return t instanceof dA}function wA(t){return t instanceof vA}function _A(t){return t instanceof fA}const SA={next:class extends OA{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends OA{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},CA={next:class extends vA{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends vA{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},EA={next:class extends fA{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends fA{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function BA(t,e){return t?new CA[e](t):null}function TA(t,e,n){return t?new SA[e](t,PA(t,n)):null}function PA(t,e,n="error"){const r=t.getTextContentSize();let s="next"===e?r:"previous"===e?0:e;return(s<0||s>r)&&("clamp"!==n&&i(284,String(e),String(r),t.getKey()),s=s<0?0:r),s}function kA(t,e){return new LA(t,e)}function IA(t,e){return Ps(t)?new EA[e](t):null}function NA(t){return t&&t.getChildCaret()||t}function QA(t){return t&&NA(t.getAdjacentCaret())}class FA{type="node-caret-range";direction;anchor;focus;constructor(t,e,n){this.anchor=t,this.focus=e,this.direction=n}getLatest(){const t=this.anchor.getLatest(),e=this.focus.getLatest();return t===this.anchor&&e===this.focus?this:new FA(t,e,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=t=>{const e=this[t].getLatest();return bA(e)?function(t,e){const{direction:n,origin:r}=t;return kA(t,PA(r,"focus"===e?mA(n):n)-t.offset)}(e,t):null},e=t("anchor"),n=t("focus");if(e&&n){const{caret:t}=e,{caret:r}=n;if(t.isSameNodeCaret(r))return[kA(t,r.offset-t.offset),null]}return[e,n]}iterNodeCarets(t="root"){const e=bA(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=bA(n),i=e=>e.isSameNodeCaret(n)?null:QA(e)||e.getParentCaret(t);return $A({hasNext:t=>null!==t&&!(r&&n.isSameNodeCaret(t)),initial:e.isSameNodeCaret(n)?null:i(e),map:t=>t,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class LA{type="slice";caret;distance;constructor(t,e){this.caret=t,this.distance=e}getSliceIndices(){const{distance:t,caret:{offset:e}}=this,n=e+t;return n<e?[n,e]:[e,n]}getTextContent(){const[t,e]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,e)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:e}}=this,[n,r]=this.getSliceIndices(),i=t.getTextContent();return TA(t.setTextContent(i.slice(0,n)+i.slice(r)),e,n)}}function MA(t){return t instanceof LA}function DA(t){return UA(t,BA(qo(),t.direction))}function RA(t){return UA(t,t)}function UA(t,e){return t.direction!==e.direction&&r(265),new FA(t,e,t.direction)}function $A(t){const{initial:e,hasNext:n,step:r,map:i}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const t={done:!1,value:i(s)};return s=r(s),t}}}function jA(t,e){const n=zA(t.origin,e.origin);switch(null===n&&r(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const n="text"===t.type,r="text"===e.type;return n&&r?function(t,e){return Math.sign(t-e)}(t.offset,e.offset):t.type===e.type?0:n?-1:r?1:"child"===t.type?-1:1}case"ancestor":return"child"===t.type?-1:1;case"descendant":return"child"===e.type?1:-1;case"branch":return HA(n)}}function HA(t){const{a:e,b:n}=t,r=e.__key,i=n.__key;let s=e,o=n;for(;s&&o;s=s.getNextSibling(),o=o.getNextSibling()){if(s.__key===i)return-1;if(o.__key===r)return 1}return null===s?1:-1}function VA(t,e){return e.is(t)}function XA(t){return Ps(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function zA(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[e,r]=XA(t);e;r=e,e=e.getParent())n.set(e,r);for(let[i,s]=XA(e);i;s=i,i=i.getParent()){const o=n.get(i);if(void 0!==o)return null===o?(VA(t,i)||r(276),{commonAncestor:i,type:"ancestor"}):null===s?(VA(e,i)||r(277),{commonAncestor:i,type:"descendant"}):((Ps(o)||VA(t,o))&&(Ps(s)||VA(e,s))&&i.is(o.getParent())&&i.is(s.getParent())||r(278),{a:o,b:s,commonAncestor:i,type:"branch"})}return null}function GA(t,e){const{type:n,key:i,offset:s}=t,o=Ra(t.key);return"text"===n?(Yr(o)||r(266,o.getType(),i),TA(o,e,s)):(Ps(o)||r(267,o.getType(),i),oc(o,t.offset,e))}function YA(t,e){const{origin:n,direction:i}=e,s="next"===i;bA(e)?t.set(n.getKey(),e.offset,"text"):wA(e)?Yr(n)?t.set(n.getKey(),PA(n,i),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(s?1:0),"element"):(_A(e)&&Ps(n)||r(268),t.set(n.getKey(),s?0:n.getChildrenSize(),"element"))}function WA(t){const e=Ni(),n=si(e)?e:Ti();return ZA(n,t),Jo(n),n}function ZA(t,e){YA(t.anchor,e.anchor),YA(t.focus,e.focus)}function KA(t){const{anchor:e,focus:n}=t,r=GA(e,"next"),i=GA(n,"next"),s=jA(r,i)<=0?"next":"previous";return UA(ic(r,s),ic(i,s))}function qA(t){const{direction:e,origin:n}=t,r=BA(n,mA(e)).getNodeAtCaret();return r?BA(r,e):IA(n.getParentOrThrow(),e)}function JA(t,e="root"){const n=[t];for(let r=_A(t)?t.getParentCaret(e):t.getSiblingCaret();null!==r;r=r.getParentCaret(e))n.push(qA(r));return n}function tc(t){return!!t&&t.origin.isAttached()}function ec(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",i="next";let s=e;const o=sc(t,i),a=JA(o.anchor,n),l=JA(o.focus.getFlipped(),n),A=new Set,c=[];for(const t of o.iterNodeCarets(n))if(_A(t))A.add(t.origin.getKey());else if(wA(t)){const{origin:e}=t;Ps(e)&&!A.has(e.getKey())||c.push(e)}for(const t of c)t.remove();for(const t of o.getTextSlices()){if(!t)continue;const{origin:e}=t.caret,n=e.getTextContentSize(),r=qA(BA(e,i)),o=e.getMode();if(Math.abs(t.distance)===n&&"removeEmptySlices"===s||"token"===o&&0!==t.distance)r.remove();else if(0!==t.distance){s="removeEmptySlices";let e=t.removeTextSlice();const n=t.caret.origin;if("segmented"===o){const t=e.origin,n=Gr(t.getTextContent()).setStyle(t.getStyle()).setFormat(t.getFormat());r.replaceOrInsert(n),e=TA(n,i,e.offset)}n.is(a[0].origin)&&(a[0]=e),n.is(l[0].origin)&&(l[0]=e.getFlipped())}}let h,u;for(const t of a)if(tc(t)){h=nc(t);break}for(const t of l)if(tc(t)){u=nc(t);break}const p=function(t,e,n){if(!t||!e)return null;const r=t.getParentAtCaret(),i=e.getParentAtCaret();if(!r||!i)return null;const s=r.getParents().reverse();s.push(r);const o=i.getParents().reverse();o.push(i);const a=Math.min(s.length,o.length);let l;for(l=0;l<a&&s[l]===o[l];l++);const A=(t,e)=>{let n;for(let r=l;r<t.length;r++){const i=t[r];if(Fa(i))return;!n&&e(i)&&(n=i)}return n},c=A(s,ml),h=c&&A(o,t=>n.has(t.getKey())&&ml(t));return h&&tA(h).length>0?null:c&&h?[c,h]:null}(h,u,A);if(p){const[t,e]=p;IA(t,"previous").splice(0,e.getChildren());let n=e.getParent();for(e.remove(!0);n&&n.isEmpty();){const t=n;n=n.getParent(),t.remove(!0)}}else if(u){const t=function(t){if(_A(t)){const e=t.origin;if(ml(e))return e}else{const e=t.getParentAtCaret();if(e&&ml(e))return e}return null}(u),e=t&&t.getParent(),n=t&&t.getParents().findLast(Qa);if(t&&e&&!Fs(e)&&t.isEmpty()&&A.has(t.getKey())&&0===tA(t).length&&(!n||A.has(n.getKey()))){t.remove(!0);let n=e;for(;n&&!Fs(n)&&n.isEmpty();){const t=n.getParent();if(t&&Fs(t)&&t.getChildrenSize()<=1)break;const e=n;n=t,e.remove(!0)}}}const d=[h,u,...a,...l].find(tc);if(d)return RA(ic(nc(d),t.direction));r(269,JSON.stringify(a.map(t=>t.origin.__key)))}function nc(t){const e=function(t){let e=t;for(;_A(e);){const t=QA(e);if(!_A(t))break;e=t}return e}(t.getLatest()),{direction:n}=e;if(Yr(e.origin))return bA(e)?e:TA(e.origin,n,n);const r=e.getAdjacentCaret();return wA(r)&&Yr(r.origin)?TA(r.origin,n,mA(n)):e}function rc(t){return bA(t)&&t.offset!==PA(t.origin,t.direction)}function ic(t,e){return t.direction===e?t:t.getFlipped()}function sc(t,e){return t.direction===e?t:UA(ic(t.focus,e),ic(t.anchor,e))}function oc(t,e,n){let r=IA(t,"next");for(let t=0;t<e;t++){const t=r.getAdjacentCaret();if(null===t)break;r=t}return ic(r,n)}function ac(t,e="root"){let n=0,r=t,i=QA(r);for(;null===i;){if(n--,i=r.getParentCaret(e),!i)return null;r=i,i=QA(r)}return i&&[i,n]}function lc(t){const{origin:e,offset:n,direction:i}=t;if(n===PA(e,i))return t.getSiblingCaret();if(n===PA(e,mA(i)))return qA(t.getSiblingCaret());const[s]=e.splitText(n);return Yr(s)||r(281),ic(BA(s,"next"),i)}function Ac(t,e){return!0}function cc(t,{$copyElementNode:e=La,$splitTextPointCaretNext:n=lc,rootMode:r="shadowRoot",$shouldSplit:i=Ac,removeEmptyDestination:s=!1}={}){if(bA(t))return n(t);const o=t.getParentCaret(r);if(o){const{origin:n}=o;if(_A(t)){const t=qA(o);if(s&&n.isEmpty())return n.remove(),t;if(!n.canBeEmpty()||!i(n,"first"))return t}const r=function(t){const e=[];for(let n=t.getAdjacentCaret();n;n=n.getAdjacentCaret())e.push(n.origin);return e}(t);(r.length>0||!s&&n.canBeEmpty()&&i(n,"last"))&&o.insert(e(n).splice(0,0,r))}return o}function hc(t,e,n){let i=ic(e,"next");bA(i)&&(0===i.offset?i=BA(i.origin,"previous").getFlipped():i.offset===i.origin.getTextContentSize()&&(i=BA(i.origin,"next"))),i.origin.is(t)&&(wA(i)||r(342,t.getKey(),t.getType()),i=qA(i)),(t.is(i.getNodeAtCaret())||t.is(i.getFlipped().getNodeAtCaret()))&&t.remove(!0);for(let t=i;t;t=cc(t,n))i=t;return bA(i)&&r(283),i.insert(t.isInline()?Ks().append(t):t),ic(BA(t.getLatest(),"next"),e.direction)}function uc(t){return t}function pc(...t){return t}function dc(t,e){return[t,e]}function fc(t){return t}function gc(t,e){if(!e||t===e)return t;for(const n in e)if(t[n]!==e[n])return{...t,...e};return t}function mc(...t){const e=[];for(const n of t)if(n&&"string"==typeof n)for(const[t]of n.matchAll(/\S+/g))e.push(t);return e}function yc(t,...e){const n=mc(...e);n.length>0&&t.classList.add(...n)}function vc(t,...e){const n=mc(...e);n.length>0&&t.classList.remove(...n)}function Oc(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}function bc(t,e,n){return Oc(...Object.entries(e).map(([e,r])=>Nn(t,e,r,n)))}},98889(t,e,n){"use strict";function r(t,e){const n=String(t);let r=n.indexOf(e),i=r,s=0,o=0;if("string"!=typeof e)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++s>o&&(o=s):s=1,i=r+e.length,r=n.indexOf(e,i);return o}n.d(e,{D:()=>r})},37358(t,e,n){"use strict";function r(t){return t.length}function i(t,e){const n=e||{},i=(n.align||[]).concat(),a=n.stringLength||r,l=[],A=[],c=[],h=[];let u=0,p=-1;for(;++p<t.length;){const e=[],r=[];let i=-1;for(t[p].length>u&&(u=t[p].length);++i<t[p].length;){const o=s(t[p][i]);if(!1!==n.alignDelimiters){const t=a(o);r[i]=t,(void 0===h[i]||t>h[i])&&(h[i]=t)}e.push(o)}A[p]=e,c[p]=r}let d=-1;if("object"==typeof i&&"length"in i)for(;++d<u;)l[d]=o(i[d]);else{const t=o(i);for(;++d<u;)l[d]=t}d=-1;const f=[],g=[];for(;++d<u;){const t=l[d];let e="",r="";99===t?(e=":",r=":"):108===t?e=":":114===t&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,h[d]-e.length-r.length);const s=e+"-".repeat(i)+r;!1!==n.alignDelimiters&&(i=e.length+i+r.length,i>h[d]&&(h[d]=i),g[d]=i),f[d]=s}A.splice(1,0,f),c.splice(1,0,g),p=-1;const m=[];for(;++p<A.length;){const t=A[p],e=c[p];d=-1;const r=[];for(;++d<u;){const i=t[d]||"";let s="",o="";if(!1!==n.alignDelimiters){const t=h[d]-(e[d]||0),n=l[d];114===n?s=" ".repeat(t):99===n?t%2?(s=" ".repeat(t/2+.5),o=" ".repeat(t/2-.5)):(s=" ".repeat(t/2),o=s):o=" ".repeat(t)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===i||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(s),r.push(i),!1!==n.alignDelimiters&&r.push(o),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===u-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}function s(t){return null==t?"":String(t)}function o(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}n.d(e,{Q:()=>i})}}]);
//# sourceMappingURL=3081.1521f5d4ddbf9d828089.js.map