cdn.phenompeople.com Open in urlscan Pro
2600:9000:2644:5600:1e:11fb:8000:93a1  Public Scan

URL: https://cdn.phenompeople.com/CareerConnectResources/common/js/vendor/vendor-bundle-part1-4.1.js
Submission: On October 22 via api from DE — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

requirejs&&(requirejs.onError=function(e){console.log("Module loading error raised",e)}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd1?define(t):e.dayjs=t()}(this,function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",o="week",s="month",a="quarter",u="year",l="date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},d={s:f,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+f(r,2,"0")+":"+f(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,s),o=n-i<0,a=t.clone().add(r+(o?-1:1),s);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return{M:s,y:u,w:o,d:i,D:l,h:r,m:n,s:t,ms:e,Q:a}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",m={};m[v]=p;var y=function(e){return e instanceof w},g=function(e,t,n){var r;if(!e)return v;if("string"==typeof e)m[e]&&(r=e),t&&(m[e]=t,r=e);else{var i=e.name;m[i]=e,r=i}return!n&&r&&(v=r),r||!n&&v},b=function(e,t){if(y(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},x=d;x.l=g,x.i=y,x.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function p(e){this.$L=g(e.locale,null,!0),this.parse(e)}var f=p.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(c);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return x},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.isSame=function(e,t){var n=b(e);return this.startOf(t)<=n&&n<=this.endOf(t)},f.isAfter=function(e,t){return b(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<b(e)},f.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,a){var c=this,h=!!x.u(a)||a,p=x.p(e),f=function(e,t){var n=x.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return h?n:n.endOf(i)},d=function(e,t){return x.w(c.toDate()[e].apply(c.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},v=this.$W,m=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"");switch(p){case u:return h?f(1,0):f(31,11);case s:return h?f(1,m):f(0,m+1);case o:var b=this.$locale().weekStart||0,w=(v<b?v+7:v)-b;return f(h?y-w:y+(6-w),m);case i:case l:return d(g+"Hours",0);case r:return d(g+"Minutes",1);case n:return d(g+"Seconds",2);case t:return d(g+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(o,a){var c,h=x.p(o),p="set"+(this.$u?"UTC":""),f=(c={},c[i]=p+"Date",c[l]=p+"Date",c[s]=p+"Month",c[u]=p+"FullYear",c[r]=p+"Hours",c[n]=p+"Minutes",c[t]=p+"Seconds",c[e]=p+"Milliseconds",c)[h],d=h===i?this.$D+(a-this.$W):a;if(h===s||h===u){var v=this.clone().set(l,1);v.$d[f](d),v.init(),this.$d=v.set(l,Math.min(this.$D,v.daysInMonth())).$d}else f&&this.$d[f](d);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[x.p(e)]()},f.add=function(e,a){var l,c=this;e=Number(e);var h=x.p(a),p=function(t){var n=b(c);return x.w(n.date(n.date()+Math.round(t*e)),c)};if(h===s)return this.set(s,this.$M+e);if(h===u)return this.set(u,this.$y+e);if(h===i)return p(1);if(h===o)return p(7);var f=(l={},l[n]=6e4,l[r]=36e5,l[t]=1e3,l)[h]||1,d=this.$d.getTime()+e*f;return x.w(d,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=x.z(this),i=this.$locale(),o=this.$H,s=this.$m,a=this.$M,u=i.weekdays,l=i.months,c=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].substr(0,o)},p=function(e){return x.s(o%12||12,e,"0")},f=i.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},d={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:x.s(a+1,2,"0"),MMM:c(i.monthsShort,a,l,3),MMMM:c(l,a),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:c(i.weekdaysMin,this.$W,u,2),ddd:c(i.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(o),HH:x.s(o,2,"0"),h:p(1),hh:p(2),a:f(o,s,!0),A:f(o,s,!1),m:String(s),mm:x.s(s,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:r};return n.replace(h,function(e,t){return t||d[e]||r.replace(":","")})},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(e,l,c){var h,p=x.p(l),f=b(e),d=6e4*(f.utcOffset()-this.utcOffset()),v=this-f,m=x.m(this,f);return m=(h={},h[u]=m/12,h[s]=m,h[a]=m/3,h[o]=(v-d)/6048e5,h[i]=(v-d)/864e5,h[r]=v/36e5,h[n]=v/6e4,h[t]=v/1e3,h)[p]||v,c?m:x.a(m)},f.daysInMonth=function(){return this.endOf(s).$D},f.$locale=function(){return m[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=g(e,t,!0);return r&&(n.$L=r),n},f.clone=function(){return x.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},p}(),k=w.prototype;return b.prototype=k,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W",i],["$M",s],["$y",u],["$D",l]].forEach(function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,w,b),e.$i=!0),b},b.locale=g,b.isDayjs=y,b.unix=function(e){return b(1e3*e)},b.en=m[v],b.Ls=m,b.p={},b}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd1?define(t):e.dayjs_plugin_utc=t()}(this,function(){"use strict";return function(e,t,n){var r=t.prototype;n.utc=function(e){return new t({date:e,utc:!0,args:arguments})},r.utc=function(e){var t=n(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),"minute"):t},r.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var i=r.parse;r.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),i.call(this,e)};var o=r.init;r.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else o.call(this)};var s=r.utcOffset;r.utcOffset=function(e,t){var n=this.$utils().u;if(n(e))return this.$u?0:n(this.$offset)?s.call(this):this.$offset;var r=Math.abs(e)<=16?60*e:e,i=this;if(t)return i.$offset=r,i.$u=0===e,i;if(0!==e){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(r+o,"minute")).$offset=r,i.$x.$localOffset=o}else i=this.utc();return i};var a=r.format;r.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return a.call(this,t)},r.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*e},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var u=r.toDate;r.toDate=function(e){return"s"===e&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var l=r.diff;r.diff=function(e,t,r){if(e&&this.$u===e.$u)return l.call(this,e,t,r);var i=this.local(),o=n(e).local();return l.call(i,o,t,r)}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd1?define(t):e.dayjs_plugin_timezone=t()}(this,function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var o,s=i().utcOffset(),a=function(e,n,r){void 0===r&&(r={});var i=new Date(e);return function(e,n){void 0===n&&(n={});var r=n.timeZoneName||"short",i=e+"|"+r,o=t[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),t[i]=o),o}(n,r).formatToParts(i)},u=function(t,n){for(var r=a(t,n),o=[],s=0;s<r.length;s+=1){var u=r[s],l=u.type,c=u.value,h=e[l];h>=0&&(o[h]=parseInt(c,10))}var p=o[3],f=24===p?0:p,d=o[0]+"-"+o[1]+"-"+o[2]+" "+f+":"+o[4]+":"+o[5]+":000",v=+t;return(i.utc(d).valueOf()-(v-=v%1e3))/6e4},l=r.prototype;l.tz=function(e,t){void 0===e&&(e=o);var n=this.utcOffset(),r=this.toDate().toLocaleString("en-US",{timeZone:e}),a=Math.round((this.toDate()-new Date(r))/1e3/60),u=i(r).$set("millisecond",this.$ms).utcOffset(s-a,!0);if(t){var l=u.utcOffset();u=u.add(n-l,"minute")}return u.$x.$timezone=e,u},l.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return n&&n.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,s=n||t||o,a=u(+i(),s);if("string"!=typeof e)return i(e).tz(s);var l=function(e,t,n){var r=e-60*t*1e3,i=u(r,n);if(t===i)return[r,t];var o=u(r-=60*(i-t)*1e3,n);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(e,r).valueOf(),a,s),c=l[0],h=l[1],p=i(c).utcOffset(h);return p.$x.$timezone=s,p},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){o=e}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd1?define(t):e.dayjs_plugin_advancedFormat=t()}(this,function(){"use strict";return function(e,t,n){var r=t.prototype,i=r.format;n.en.ordinal=function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"},r.format=function(e){var t=this,n=this.$locale(),r=this.$utils(),o=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|zzz|z|gggg|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return i.bind(this)(o)}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd1?define(t):e.dayjs_plugin_customParseFormat=t()}(this,function(){"use strict";var e,t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=function(e,n){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,r,i){var o=i&&i.toUpperCase();return r||n[i]||t[i]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})},r=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,o=/\d\d?/,s=/\d*[^\s\d-:/()]+/,a=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],l=function(t){var n=e[t];return n&&(n.indexOf?n:n.s.concat(n.f))},c=function(t,n){var r,i=e.meridiem;if(i){for(var o=1;o<=24;o+=1)if(t.indexOf(i(o,0,n))>-1){r=o>12;break}}else r=t===(n?"pm":"PM");return r},h={A:[s,function(e){this.afternoon=c(e,!1)}],a:[s,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[i,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,a("seconds")],ss:[o,a("seconds")],m:[o,a("minutes")],mm:[o,a("minutes")],H:[o,a("hours")],h:[o,a("hours")],HH:[o,a("hours")],hh:[o,a("hours")],D:[o,a("day")],DD:[i,a("day")],Do:[s,function(t){var n=e.ordinal,r=t.match(/\d+/);if(this.day=r[0],n)for(var i=1;i<=31;i+=1)n(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],M:[o,a("month")],MM:[i,a("month")],MMM:[s,function(e){var t=l("months"),n=(l("monthsShort")||t.map(function(e){return e.substr(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(e){var t=l("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[i,function(e){e=+e,this.year=e+(e>68?1900:2e3)}],YYYY:[/\d{4}/,a("year")],Z:u,ZZ:u},p=function(t,i,o){try{var s=function(t){for(var i=(t=n(t,e&&e.formats)).match(r),o=i.length,s=0;s<o;s+=1){var a=i[s],u=h[a],l=u&&u[0],c=u&&u[1];i[s]=c?{regex:l,parser:c}:a.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<o;n+=1){var s=i[n];if("string"==typeof s)r+=s.length;else{var a=s.regex,u=s.parser,l=e.substr(r),c=a.exec(l)[0];u.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}(i)(t),a=s.year,u=s.month,l=s.day,c=s.hours,p=s.minutes,f=s.seconds,d=s.milliseconds,v=s.zone,m=new Date,y=l||(a||u?1:m.getDate()),g=a||m.getFullYear(),b=0;a&&!u||(b=u>0?u-1:m.getMonth());var x=c||0,w=p||0,k=f||0,E=d||0;return v?new Date(Date.UTC(g,b,y,x,w,k,E+60*v.offset*1e3)):o?new Date(Date.UTC(g,b,y,x,w,k,E)):new Date(g,b,y,x,w,k,E)}catch(e){return new Date("")}};return function(t,n,r){r.p.customParseFormat=!0;var i=n.prototype,o=i.parse;i.parse=function(t){var n=t.date,i=t.utc,s=t.args;this.$u=i;var a=s[1];if("string"==typeof a){var u=!0===s[2],l=!0===s[3],c=u||l,h=s[2];l&&(h=s[2]),u||(e=h?r.Ls[h]:this.$locale()),this.$d=p(n,a,i),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),c&&n!==this.format(a)&&(this.$d=new Date("")),e=void 0}else if(a instanceof Array)for(var f=a.length,d=1;d<=f;d+=1){s[1]=a[d-1];var v=r.apply(this,s);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}d===f&&(this.$d=new Date(""))}else o.call(this,t)}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd1?define(t):e.dayjs_plugin_localizedFormat=t()}(this,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var i=n.prototype,o=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,i){var o=i&&i.toUpperCase();return r||n[i]||e[i]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})}(t,void 0===n?{}:n);return o.call(this,r)}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd1?define(t):e.dayjs_plugin_duration=t()}(this,function(){"use strict";var e,t,n=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,r=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,i={years:31536e6,months:2592e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},o=function(e){return e instanceof u},s=function(e,t,n){return new u(e,n,t.$l)},a=function(e){return t.p(e)+"s"},u=function(){function u(e,t,n){var o=this;if(this.$d={},this.$l=n,t)return s(e*i[a(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach(function(t){o.$d[a(t)]=e[t]}),this.calMilliseconds(),this;if("string"==typeof e){var u=e.match(r);if(u)return this.$d.years=u[2],this.$d.months=u[3],this.$d.weeks=u[4],this.$d.days=u[5],this.$d.hours=u[6],this.$d.minutes=u[7],this.$d.seconds=u[8],this.calMilliseconds(),this}return this}var l=u.prototype;return l.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(t,n){return t+(e.$d[n]||0)*i[n]},0)},l.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=Math.floor(e/31536e6),e%=31536e6,this.$d.months=Math.floor(e/2592e6),e%=2592e6,this.$d.days=Math.floor(e/864e5),e%=864e5,this.$d.hours=Math.floor(e/36e5),e%=36e5,this.$d.minutes=Math.floor(e/6e4),e%=6e4,this.$d.seconds=Math.floor(e/1e3),e%=1e3,this.$d.milliseconds=e},l.toISOString=function(){var e=this.$d.years?this.$d.years+"Y":"",t=this.$d.months?this.$d.months+"M":"",n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=n?n+"D":"",i=this.$d.hours?this.$d.hours+"H":"",o=this.$d.minutes?this.$d.minutes+"M":"",s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3);var a=s?s+"S":"",u="P"+e+t+r+(i||o||a?"T":"")+i+o+a;return"P"===u?"P0D":u},l.toJSON=function(){return this.toISOString()},l.format=function(e){var r=e||"YYYY-MM-DDTHH:mm:ss",i={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return r.replace(n,function(e,t){return t||String(i[e])})},l.as=function(e){return this.$ms/i[a(e)]},l.get=function(e){var t=this.$ms,n=a(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?Math.floor(t/i[n]):this.$d[n],t},l.add=function(e,t,n){var r;return r=t?e*i[a(t)]:o(e)?e.$ms:s(e,this).$ms,s(this.$ms+r*(n?-1:1),this)},l.subtract=function(e,t){return this.add(e,t,!0)},l.locale=function(e){var t=this.clone();return t.$l=e,t},l.clone=function(){return s(this.$ms,this)},l.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},l.milliseconds=function(){return this.get("milliseconds")},l.asMilliseconds=function(){return this.as("milliseconds")},l.seconds=function(){return this.get("seconds")},l.asSeconds=function(){return this.as("seconds")},l.minutes=function(){return this.get("minutes")},l.asMinutes=function(){return this.as("minutes")},l.hours=function(){return this.get("hours")},l.asHours=function(){return this.as("hours")},l.days=function(){return this.get("days")},l.asDays=function(){return this.as("days")},l.weeks=function(){return this.get("weeks")},l.asWeeks=function(){return this.as("weeks")},l.months=function(){return this.get("months")},l.asMonths=function(){return this.as("months")},l.years=function(){return this.get("years")},l.asYears=function(){return this.as("years")},u}();return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){var n=i.locale();return s(e,{$l:n},t)},i.isDuration=o;var a=r.prototype.add,u=r.prototype.subtract;r.prototype.add=function(e,t){return o(e)&&(e=e.asMilliseconds()),a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return o(e)&&(e=e.asMilliseconds()),u.bind(this)(e,t)}}}),define("aurelia-metadata",["exports","aurelia-pal"],function(e,t){"use strict";function n(e){return e&&("function"==typeof e||"object"===(void 0===e?"undefined":f(e)))}function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e,n,r){var i=t.length;if(n){for(r=r||{value:e[n],writable:!0,configurable:!0,enumerable:!0};i--;)r=t[i](e,n,r)||r;Object.defineProperty(e,n,r)}else for(;i--;)e=t[i](e)||e;return e};return r.on=r,r}function i(e,t,n){function r(n,r,i){var o=n.constructor.name+"#"+r,s=t?{}:e||{},a="DEPRECATION - "+o;if("function"!=typeof i.value)throw new SyntaxError("Only methods can be marked as deprecated.");return s.message&&(a+=" - "+s.message),p({},i,{value:function(){if(s.error)throw new Error(a);return console.warn(a),i.value.apply(this,arguments)}})}return t?r(e,t,n):r}function o(e){function t(t){var r=function(t){for(var r="function"==typeof t?t.prototype:t,i=n.length;i--;){var o=n[i];Object.defineProperty(r,o,{value:e[o],writable:!0})}};return t?r(t):r}var n=Object.keys(e);return t}function s(){return!0}function a(){}function u(e){return void 0===e?e={}:"function"==typeof e&&(e={validate:e}),e.validate||(e.validate=s),e.compose||(e.compose=a),e}function l(e){return function(t){return!0===e(t)}}function c(e,t){return function(n){var r=t(n);if(!0!==r)throw new Error(r||e+" was not correctly implemented.")}}function h(e,t){t=u(t);var n=function n(r){var i="function"==typeof r?r.prototype:r;t.compose(i),n.assert(i),Object.defineProperty(i,"protocol:"+e,{enumerable:!1,configurable:!1,writable:!1,value:!0})};return n.validate=l(t.validate),n.assert=c(e,t.validate),n}Object.defineProperty(e,"__esModule",{value:!0}),e.Origin=e.metadata=void 0,e.decorators=r,e.deprecated=i,e.mixin=o,e.protocol=h;var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},d=e.metadata={resource:"aurelia:resource",paramTypes:"design:paramtypes",propertyType:"design:type",properties:"design:properties",get:function(e,t,r){if(n(t)){var i=d.getOwn(e,t,r);return void 0===i?d.get(e,Object.getPrototypeOf(t),r):i}},getOwn:function(e,t,r){if(n(t))return Reflect.getOwnMetadata(e,t,r)},define:function(e,t,n,r){Reflect.defineMetadata(e,t,n,r)},getOrCreateOwn:function(e,t,n,r){var i=d.getOwn(e,n,r);return void 0===i&&(i=new t,Reflect.defineMetadata(e,i,n,r)),i}},v=new Map,m=Object.freeze({moduleId:void 0,moduleMember:void 0});e.Origin=function(){function e(e,t){this.moduleId=e,this.moduleMember=t}return e.get=function(n){var r=v.get(n);return void 0===r&&t.PLATFORM.eachModule(function(t,i){if("object"===(void 0===i?"undefined":f(i)))for(var o in i){var s=i[o];if(s===n)return v.set(n,r=new e(t,o)),!0}return i===n&&(v.set(n,r=new e(t,"default")),!0)}),r||m},e.set=function(e,t){v.set(e,t)},e}();h.create=function(e,t){t=u(t);var n="protocol:"+e,r=function(n){var r=h(e,t);return n?r(n):r};return r.decorates=function(e){return!0===e[n]},r.validate=l(t.validate),r.assert=c(e,t.validate),r}}),define("aurelia-dependency-injection",["exports","aurelia-metadata","aurelia-pal"],function(e,t,n){"use strict";function r(e,n){var r=e.inject;if("function"==typeof r)throw new Error("Decorator "+n+' cannot be used with "inject()".  Please use an array instead.');return r||(r=t.metadata.getOwn(t.metadata.paramTypes,e).slice(),e.inject=r),r}function i(e){return function(t,n,i){r(t,"lazy")[i]=j.of(e)}}function o(e){return function(t,n,i){r(t,"all")[i]=N.of(e)}}function s(){var e=arguments.length<=0||void 0===arguments[0]||arguments[0],t=function(e){return function(t,n,i){var o=r(t,"optional");o[i]=z.of(o[i],e)}};return t("boolean"==typeof e?e:!0)}function a(e,t,n){var i=r(e,"parent");i[n]=$.of(i[n])}function u(e,t){return function(n,i,o){var s=r(n,"factory"),a=I.of(e);s[o]=t?a.as(t):a}}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=function(e){return function(t,i,o){var s=r(t,"newInstance");s[o]=U.of.apply(U,[s[o]].concat(n)),e&&s[o].as(e)}};return arguments.length>=1?o(e):o()}function c(e){return function(n){t.metadata.define(t.metadata.invoker,e,n)}}function h(e){var n=function(e){t.metadata.define(t.metadata.invoker,B.instance,e)};return e?n(e):n}function p(e){return function(n){t.metadata.define(t.metadata.registration,e,n)}}function f(e){return p(new V(e))}function d(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return p(new H(e,t))}function v(e){if(null===e||void 0===e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function m(e,t,n,r){for(var i=n.length,o=new Array(i),s=void 0;i--;){if(null===(s=n[i])||void 0===s)throw new Error("Constructor Parameter with index "+i+" cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?");o[i]=e.get(s)}return void 0!==r&&(o=o.concat(r)),Reflect.construct(t,o)}function y(e){return e.hasOwnProperty("inject")?"function"==typeof e.inject?e.inject():e.inject:[]}function g(e){var n=function(e){var n=e.inject?e.inject.slice():null,r=t.metadata.getOwn(t.metadata.paramTypes,e)||Y;if(n){for(var i=0;i<r.length;i++)if(n[i]&&n[i]!==r[i]){var o=n.indexOf(r[i]);o>-1&&n.splice(o,1),n.splice(o>-1&&o<i?i-1:i,0,r[i])}else n[i]||(n[i]=r[i]);e.inject=n}else e.inject=r};return e?n(e):n}function b(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,r,i){if("number"==typeof i&&1===n.length){var o=e.inject;if("function"==typeof o)throw new Error('Decorator inject cannot be used with "inject()".  Please use an array instead.');return o||(o=t.metadata.getOwn(t.metadata.paramTypes,e).slice(),e.inject=o),void(o[i]=n[0])}if(i){i.value.inject=n}else e.inject=n}}Object.defineProperty(e,"__esModule",{value:!0}),e.Container=e.InvocationHandler=e._emptyParameters=e.SingletonRegistration=e.TransientRegistration=e.FactoryInvoker=e.NewInstance=e.Factory=e.StrategyResolver=e.Parent=e.Optional=e.All=e.Lazy=e.resolver=void 0,e.getDecoratorDependencies=r,e.lazy=i,e.all=o,e.optional=s,e.parent=a,e.factory=u,e.newInstance=l,e.invoker=c,e.invokeAsFactory=h,e.registration=p,e.transient=f,e.singleton=d,e.autoinject=g,e.inject=b;var x,w,k,E,_,O,S,C,A,M,L,F,T,R,P,D=e.resolver=t.protocol.create("aurelia:resolver",function(e){return"function"==typeof e.get||"Resolvers must implement: get(container: Container, key: any): any"}),j=e.Lazy=(x=D())(w=function(){function e(e){this._key=e}return e.prototype.get=function(e){var t=this;return function(){return e.get(t._key)}},e.of=function(t){return new e(t)},e}())||w,N=e.All=(k=D())(E=function(){function e(e){this._key=e}return e.prototype.get=function(e){return e.getAll(this._key)},e.of=function(t){return new e(t)},e}())||E,z=e.Optional=(_=D())(O=function(){function e(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];this._key=e,this._checkParent=t}return e.prototype.get=function(e){return e.hasResolver(this._key,this._checkParent)?e.get(this._key):null},e.of=function(t){return new e(t,arguments.length<=1||void 0===arguments[1]||arguments[1])},e}())||O,$=e.Parent=(S=D())(C=function(){function e(e){this._key=e}return e.prototype.get=function(e){return e.parent?e.parent.get(this._key):null},e.of=function(t){return new e(t)},e}())||C,q=e.StrategyResolver=(A=D())(M=function(){function e(e,t){this.strategy=e,this.state=t}return e.prototype.get=function(e,t){switch(this.strategy){case 0:return this.state;case 1:var n=e.invoke(this.state);return this.state=n,this.strategy=0,n;case 2:return e.invoke(this.state);case 3:return this.state(e,t,this);case 4:return this.state[0].get(e,t);case 5:return e.get(this.state);default:throw new Error("Invalid strategy: "+this.strategy)}},e}())||M,I=e.Factory=(L=D())(F=function(){function e(e){this._key=e}return e.prototype.get=function(e){var t=this;return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.invoke(t._key,r)}},e.of=function(t){return new e(t)},e}())||F,U=e.NewInstance=(T=D())(R=function(){function e(e){this.key=e,this.asKey=e;for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.dynamicDependencies=n}return e.prototype.get=function(e){var t=this.dynamicDependencies.length>0?this.dynamicDependencies.map(function(t){return t["protocol:aurelia:resolver"]?t.get(e):e.get(t)}):void 0,n=e.invoke(this.key,t);return e.registerInstance(this.asKey,n),n},e.prototype.as=function(e){return this.asKey=e,this},e.of=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new(Function.prototype.bind.apply(e,[null].concat([t],r)))},e}())||R,B=e.FactoryInvoker=function(){function e(){}return e.prototype.invoke=function(e,t,n){for(var r=n.length,i=new Array(r);r--;)i[r]=e.get(n[r]);return t.apply(void 0,i)},e.prototype.invokeWithDynamicDependencies=function(e,t,n,r){for(var i=n.length,o=new Array(i);i--;)o[i]=e.get(n[i]);return void 0!==r&&(o=o.concat(r)),t.apply(void 0,o)},e}();B.instance=new B;var V=e.TransientRegistration=function(){function e(e){this._key=e}return e.prototype.registerResolver=function(e,t,n){var r=e.getResolver(this._key||t);return void 0===r?e.registerTransient(this._key||t,n):r},e}(),H=e.SingletonRegistration=function(){function e(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];"boolean"==typeof e?this._registerInChild=e:(this._key=e,this._registerInChild=t)}return e.prototype.registerResolver=function(e,t,n){var r=this._registerInChild?e:e.root,i=r.getResolver(this._key||t);return void 0===i?r.registerSingleton(this._key||t,n):i},e}(),Y=e._emptyParameters=Object.freeze([]);t.metadata.registration="aurelia:registration",t.metadata.invoker="aurelia:invoker";var Q=D.decorates,W=e.InvocationHandler=function(){function e(e,t,n){this.fn=e,this.invoker=t,this.dependencies=n}return e.prototype.invoke=function(e,t){return void 0!==t?this.invoker.invokeWithDynamicDependencies(e,this.fn,this.dependencies,t):this.invoker.invoke(e,this.fn,this.dependencies)},e}(),G=(P={},P[0]={invoke:function(e,t){return new t},invokeWithDynamicDependencies:m},P[1]={invoke:function(e,t,n){return new t(e.get(n[0]))},invokeWithDynamicDependencies:m},P[2]={invoke:function(e,t,n){return new t(e.get(n[0]),e.get(n[1]))},invokeWithDynamicDependencies:m},P[3]={invoke:function(e,t,n){return new t(e.get(n[0]),e.get(n[1]),e.get(n[2]))},invokeWithDynamicDependencies:m},P[4]={invoke:function(e,t,n){return new t(e.get(n[0]),e.get(n[1]),e.get(n[2]),e.get(n[3]))},invokeWithDynamicDependencies:m},P[5]={invoke:function(e,t,n){return new t(e.get(n[0]),e.get(n[1]),e.get(n[2]),e.get(n[3]),e.get(n[4]))},invokeWithDynamicDependencies:m},P.fallback={invoke:m,invokeWithDynamicDependencies:m},P);e.Container=function(){function e(e){void 0===e&&(e={}),this._configuration=e,this._onHandlerCreated=e.onHandlerCreated,this._handlers=e.handlers||(e.handlers=new Map),this._resolvers=new Map,this.root=this,this.parent=null}return e.prototype.makeGlobal=function(){return e.instance=this,this},e.prototype.setHandlerCreatedCallback=function(e){this._onHandlerCreated=e,this._configuration.onHandlerCreated=e},e.prototype.registerInstance=function(e,t){return this.registerResolver(e,new q(0,void 0===t?e:t))},e.prototype.registerSingleton=function(e,t){return this.registerResolver(e,new q(1,void 0===t?e:t))},e.prototype.registerTransient=function(e,t){return this.registerResolver(e,new q(2,void 0===t?e:t))},e.prototype.registerHandler=function(e,t){return this.registerResolver(e,new q(3,t))},e.prototype.registerAlias=function(e,t){return this.registerResolver(t,new q(5,e))},e.prototype.registerResolver=function(e,t){v(e);var n=this._resolvers,r=n.get(e);return void 0===r?n.set(e,t):4===r.strategy?r.state.push(t):n.set(e,new q(4,[r,t])),t},
e.prototype.autoRegister=function(e,n){if("function"==typeof(n=void 0===n?e:n)){var r=t.metadata.get(t.metadata.registration,n);return void 0===r?this.registerResolver(e,new q(1,n)):r.registerResolver(this,e,n)}return this.registerResolver(e,new q(0,n))},e.prototype.autoRegisterAll=function(e){for(var t=e.length;t--;)this.autoRegister(e[t])},e.prototype.unregister=function(e){this._resolvers.delete(e)},e.prototype.hasResolver=function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return v(e),this._resolvers.has(e)||t&&null!==this.parent&&this.parent.hasResolver(e,t)},e.prototype.getResolver=function(e){return this._resolvers.get(e)},e.prototype.get=function(n){if(v(n),n===e)return this;if(Q(n))return n.get(this,n);var r=this._resolvers.get(n);if(void 0===r){if(null===this.parent)return this.autoRegister(n).get(this,n);var i=t.metadata.get(t.metadata.registration,n);return void 0===i?this.parent._get(n):i.registerResolver(this,n,n).get(this,n)}return r.get(this,n)},e.prototype._get=function(e){var t=this._resolvers.get(e);return void 0===t?null===this.parent?this.autoRegister(e).get(this,e):this.parent._get(e):t.get(this,e)},e.prototype.getAll=function(e){v(e);var t=this._resolvers.get(e);if(void 0===t)return null===this.parent?Y:this.parent.getAll(e);if(4===t.strategy){for(var n=t.state,r=n.length,i=new Array(r);r--;)i[r]=n[r].get(this,e);return i}return[t.get(this,e)]},e.prototype.createChild=function(){var t=new e(this._configuration);return t.root=this.root,t.parent=this,t},e.prototype.invoke=function(e,t){try{var r=this._handlers.get(e);return void 0===r&&(r=this._createInvocationHandler(e),this._handlers.set(e,r)),r.invoke(this,t)}catch(t){throw new n.AggregateError("Error invoking "+e.name+". Check the inner error for details.",t,!0)}},e.prototype._createInvocationHandler=function(e){var n=void 0;if(void 0===e.inject)n=t.metadata.getOwn(t.metadata.paramTypes,e)||Y;else{n=[];for(var r=e;"function"==typeof r;){var i;(i=n).push.apply(i,y(r)),r=Object.getPrototypeOf(r)}}var o=t.metadata.getOwn(t.metadata.invoker,e)||G[n.length]||G.fallback,s=new W(e,o,n);return void 0!==this._onHandlerCreated?this._onHandlerCreated(s):s},e}()}),define("aurelia-binding",["exports","aurelia-logging","aurelia-pal","aurelia-task-queue","aurelia-metadata"],function(e,t,n,r,i){"use strict";function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){if(e in Ie)return Ie[e];var t=e.charAt(0).toLowerCase()+e.slice(1).replace(/[_.-](\w|$)/g,function(e,t){return t.toUpperCase()});return Ie[e]=t,t}function u(e,t){return{bindingContext:e,parentOverrideContext:t||null}}function l(e,t,n){var r=t.overrideContext;if(n){for(;n&&r;)n--,r=r.parentOverrideContext;if(n||!r)return;return e in r?r:r.bindingContext}for(;r&&!(e in r)&&!(r.bindingContext&&e in r.bindingContext);)r=r.parentOverrideContext;return r?e in r?r:r.bindingContext:t.bindingContext||t.overrideContext}function c(e,t){return t?{bindingContext:e,overrideContext:u(e,u(t))}:{bindingContext:e,overrideContext:u(e)}}function h(e){for(var t=void 0===this._observerSlots?0:this._observerSlots,n=t;n--&&this[Ue[n]]!==e;);if(-1===n){for(n=0;this[Ue[n]];)n++;this[Ue[n]]=e,e.subscribe(qe,this),n===t&&(this._observerSlots=n+1)}void 0===this._version&&(this._version=0),this[Be[n]]=this._version}function p(e,t){var n=this.observerLocator.getObserver(e,t);h.call(this,n)}function f(e){var t=this.observerLocator.getArrayObserver(e);h.call(this,t)}function d(e){for(var t=this._observerSlots;t--;)if(e||this[Be[t]]!==this._version){var n=this[Ue[t]];this[Ue[t]]=null,n&&n.unsubscribe(qe,this)}}function v(){return function(e){e.prototype.observeProperty=p,e.prototype.observeArray=f,e.prototype.unobserve=d,e.prototype.addObserver=h}}function m(e){for(var t=He.length,r=0;r<t;){var i=He[r];if(Ye[i.__connectQueueId]=!1,i.connect(!0),++r%100==0&&n.PLATFORM.performance.now()-e>Ge)break}He.splice(0,r),He.length?n.PLATFORM.requestAnimationFrame(m):(Xe=!1,Ze=0)}function y(e){if(Ze<We)Ze++,e.connect(!1);else{var t=e.__connectQueueId;void 0===t&&(t=Qe,Qe++,e.__connectQueueId=t),Ye[t]||(He.push(e),Ye[t]=!0)}Xe||(Xe=!0,n.PLATFORM.requestAnimationFrame(m))}function g(e,t){return!this.hasSubscriber(e,t)&&(this._context0?this._context1?this._context2?this._contextsRest?(this._contextsRest.push(e),this._callablesRest.push(t),!0):(this._contextsRest=[e],this._callablesRest=[t],!0):(this._context2=e,this._callable2=t,!0):(this._context1=e,this._callable1=t,!0):(this._context0=e,this._callable0=t,!0))}function b(e,t){if(this._context0===e&&this._callable0===t)return this._context0=null,this._callable0=null,!0;if(this._context1===e&&this._callable1===t)return this._context1=null,this._callable1=null,!0;if(this._context2===e&&this._callable2===t)return this._context2=null,this._callable2=null,!0;var n=this._callablesRest;if(void 0===n||0===n.length)return!1;for(var r=this._contextsRest,i=0;(n[i]!==t||r[i]!==e)&&n.length>i;)i++;return!(i>=n.length)&&(r.splice(i,1),n.splice(i,1),!0)}function x(e,t){var n=this._context0,r=this._callable0,i=this._context1,o=this._callable1,s=this._context2,a=this._callable2,u=this._contextsRest?this._contextsRest.length:0,l=void 0,c=void 0,h=void 0,p=void 0;if(u){for(h=et.length;h--&&et[h];);for(h<0?(h=et.length,l=[],c=[],et.push(!0),Ke.push(l),Je.push(c)):(et[h]=!0,l=Ke[h],c=Je[h]),p=u;p--;)l[p]=this._contextsRest[p],c[p]=this._callablesRest[p]}if(n&&(r?r.call(n,e,t):n(e,t)),i&&(o?o.call(i,e,t):i(e,t)),s&&(a?a.call(s,e,t):s(e,t)),u){for(p=0;p<u;p++){var f=c[p],d=l[p];f?f.call(d,e,t):d(e,t),l[p]=null,c[p]=null}et[h]=!1}}function w(){return!!(this._context0||this._context1||this._context2||this._contextsRest&&this._contextsRest.length)}function k(e,t){if(this._context0===e&&this._callable0===t||this._context1===e&&this._callable1===t||this._context2===e&&this._callable2===t)return!0;var n=void 0,r=this._contextsRest;if(!r||0===(n=r.length))return!1;for(var i=this._callablesRest;n--;)if(r[n]===e&&i[n]===t)return!0;return!1}function E(){return function(e){e.prototype.addSubscriber=g,e.prototype.removeSubscriber=b,e.prototype.callSubscribers=x,e.prototype.hasSubscribers=w,e.prototype.hasSubscriber=k}}function _(e){return+e==e>>>0}function O(e){return+e}function S(e,t,n){return{index:e,removed:t,addedCount:n}}function C(){}function A(e,t,n,r,i,o){return nt.calcSplices(e,t,n,r,i,o)}function M(e,t,n,r){return t<n||r<e?-1:t===n||r===e?0:e<n?t<r?t-n:r-n:r<t?r-e:t-e}function L(e,t,n,r){for(var i=S(t,n,r),o=!1,s=0,a=0;a<e.length;a++){var u=e[a];if(u.index+=s,!o){var l=M(i.index,i.index+i.removed.length,u.index,u.index+u.addedCount);if(l>=0){e.splice(a,1),a--,s-=u.addedCount-u.removed.length,i.addedCount+=u.addedCount-l;var c=i.removed.length+u.removed.length-l;if(i.addedCount||c){var h=u.removed;if(i.index<u.index){var p=i.removed.slice(0,u.index-i.index);Array.prototype.push.apply(p,h),h=p}if(i.index+i.removed.length>u.index+u.addedCount){var f=i.removed.slice(u.index+u.addedCount-i.index);Array.prototype.push.apply(h,f)}i.removed=h,u.index<i.index&&(i.index=u.index)}else o=!0}else if(i.index<u.index){o=!0,e.splice(a,0,i),a++;var d=i.addedCount-i.removed.length;u.index+=d,s+=d}}}o||e.push(i)}function F(e,t){for(var n=[],r=0;r<t.length;r++){var i=t[r];switch(i.type){case"splice":L(n,i.index,i.removed.slice(),i.addedCount);break;case"add":case"update":case"delete":if(!_(i.name))continue;var o=O(i.name);if(o<0)continue;L(n,o,[i.oldValue],"delete"===i.type?0:1);break;default:console.error("Unexpected record type: "+JSON.stringify(i))}}return n}function T(e,t){var n=[];return F(e,t).forEach(function(t){if(1===t.addedCount&&1===t.removed.length)return void(t.removed[0]!==e[t.index]&&n.push(t));n=n.concat(A(e,t.index,t.index+t.addedCount,t.removed,0,t.removed.length))}),n}function R(e,t,n,r){return{type:e,object:t,key:n,oldValue:r}}function P(e){for(var t=new Array(e.size),n=e.keys(),r=0,i=void 0;(i=n.next())&&!i.done;)t[r]=R("added",e,i.value),r++;return t}function D(e,t){return pt.for(e,t)}function j(e,t,n){for(var r=t.length,i=[],o=0;o<r;o++)i[o]=t[o].evaluate(e,n);return i}function N(e,t){return null!==e&&null!==t?"string"==typeof e&&"string"!=typeof t?e+t.toString():"string"!=typeof e&&"string"==typeof t?e.toString()+t:e+t:null!==e?e:null!==t?t:0}function z(e,t,n){var r=null===e||void 0===e?null:e[t];if("function"==typeof r)return r;if(!n&&(null===r||void 0===r))return null;throw new Error(t+" is not a function")}function $(e,t){if(Array.isArray(e))return e[parseInt(t,10)];if(e)return e[t];if(null!==e&&void 0!==e)return e[t]}function q(e,t,n){if(Array.isArray(e)){var r=parseInt(t,10);e.length<=r&&(e.length=r+1),e[r]=n}else e[t]=n;return n}function I(e){var t=new Rt;return e.accept(t)}function U(e){return e>=qt&&e<=Ht||e===Dn}function B(e){return En<=e&&e<=Fn||vn<=e&&e<=yn||e===kn||e===Wt}function V(e){return En<=e&&e<=Fn||vn<=e&&e<=yn||fn<=e&&e<=dn||e===kn||e===Wt}function H(e){return fn<=e&&e<=dn}function Y(e){return e===_n||e===mn}function Q(e){return e===rn||e===tn}function W(e){switch(e){case Sn:return It;case On:return Bt;case Cn:return Vt;case An:return qt;case Ln:return Ut;default:return e}}function G(e,t){if(!e)throw t||"Assertion failed"}function X(e,t){return qn.for(e,t)}function Z(e){return e.path&&e.path[0]||e.deepPath&&e.deepPath[0]||e.target}function K(){this.standardStopPropagation(),this.propagationStopped=!0}function J(e){e.standardStopPropagation=e.stopPropagation,e.stopPropagation=K}function ee(e){var t=!1;e.propagationStopped=!1;for(var n=Z(e),r=[];n;){if(n.capturedCallbacks){var i=n.capturedCallbacks[e.type];i&&(t||(J(e),t=!0),r.push(i))}n=n.parentNode}for(var o=r.length-1;o>=0;o--){var s=r[o];if("handleEvent"in s?s.handleEvent(e):s(e),e.propagationStopped)break}}function te(e){var t=!1;e.propagationStopped=!1;for(var n=Z(e);n&&!e.propagationStopped;){if(n.delegatedCallbacks){var r=n.delegatedCallbacks[e.type];r&&(t||(J(e),t=!0),"handleEvent"in r?r.handleEvent(e):r(e))}n=n.parentNode}}function ne(e){return!!(e&&e.get&&e.get.dependencies)}function re(e,t,n){Object.getOwnPropertyDescriptor(e.prototype,t).get.dependencies=n}function ie(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){return r.get.dependencies=t,r}}function oe(e,t,n,r){var i=n.get.dependencies;if(!(i instanceof sr)){for(var o=i.length;o--;)i[o]=r.parser.parse(i[o]);i=n.get.dependencies=new sr(t,i)}var s={bindingContext:e,overrideContext:u(e)};return new tt(s,i,r)}function se(e){if(void 0===e||"string"==typeof e)return function(t){i.metadata.define(i.metadata.resource,new br(e),t)};i.metadata.define(i.metadata.resource,new br,e)}function ae(e){if(void 0===e||"string"==typeof e)return function(t){i.metadata.define(i.metadata.resource,new xr(e),t)};i.metadata.define(i.metadata.resource,new xr,e)}function ue(e){var t=e.au;if(void 0===t)throw new Error('No Aurelia APIs are defined for the element: "'+e.tagName+'".');return t}function le(e,t){return Or.for(e,t)}function ce(e,t,n){function r(e,t,n,r){var i=void 0===t;i&&(e=e.prototype,t="string"==typeof r?r:r.name);var o="_"+t,s={configurable:!0,enumerable:!1,writable:!0},a=r&&r.changeHandler||t+"Changed";if(n?"function"==typeof n.initializer&&(s.value=n.initializer()):n={},"enumerable"in n||(n.enumerable=!0),delete n.value,delete n.writable,delete n.initializer,Reflect.defineProperty(e,o,s),n.get=function(){return this[o]},n.set=function(e){var n=this[o];e!==n&&(this[o]=e,Reflect.defineProperty(this,o,{enumerable:!1}),this[a]&&this[a](e,n,t))},n.get.dependencies=[o],!i)return n;Reflect.defineProperty(e,t,n)}return void 0===t?function(t,n,i){return r(t,n,i,e)}:r(e,t,n)}function he(e,t){Sr.hasOwnProperty(t)||(Sr[t]=0),e.observeProperty(Sr,t)}function pe(e){Sr.hasOwnProperty(e)&&Sr[e]++}Object.defineProperty(e,"__esModule",{value:!0}),e.getSetObserver=e.BindingEngine=e.NameExpression=e.Listener=e.ListenerExpression=e.BindingBehaviorResource=e.ValueConverterResource=e.Call=e.CallExpression=e.Binding=e.BindingExpression=e.ObjectObservationAdapter=e.ObserverLocator=e.SVGAnalyzer=e.presentationAttributes=e.presentationElements=e.elements=e.ComputedExpression=e.ClassObserver=e.SelectValueObserver=e.CheckedObserver=e.ValueAttributeObserver=e.StyleObserver=e.DataAttributeObserver=e.dataAttributeAccessor=e.XLinkAttributeObserver=e.SetterObserver=e.PrimitiveObserver=e.propertyAccessor=e.DirtyCheckProperty=e.DirtyChecker=e.EventManager=e.delegationStrategy=e.getMapObserver=e.ParserImplementation=e.Parser=e.Scanner=e.Lexer=e.Token=e.bindingMode=e.ExpressionCloner=e.Unparser=e.LiteralObject=e.LiteralArray=e.LiteralString=e.LiteralPrimitive=e.PrefixNot=e.Binary=e.CallFunction=e.CallMember=e.CallScope=e.AccessKeyed=e.AccessMember=e.AccessScope=e.AccessThis=e.Conditional=e.Assign=e.ValueConverter=e.BindingBehavior=e.Chain=e.Expression=e.getArrayObserver=e.CollectionLengthObserver=e.ModifyCollectionObserver=e.ExpressionObserver=e.sourceContext=e.targetContext=void 0,e.camelCase=a,e.createOverrideContext=u,e.getContextFor=l,e.createScopeForTest=c,e.connectable=v,e.enqueueBindingConnect=y,e.subscriberCollection=E,e.calcSplices=A,e.mergeSplice=L,e.projectArraySplices=T,e.getChangeRecords=P,e.cloneExpression=I,e.hasDeclaredDependencies=ne,e.declarePropertyDependencies=re,e.computedFrom=ie,e.createComputedObserver=oe,e.valueConverter=se,e.bindingBehavior=ae,e.observable=ce,e.connectBindingToSignal=he,e.signalBindings=pe;for(var fe,de,ve,me,ye,ge,be,xe,we,ke,Ee,_e,Oe,Se,Ce,Ae,Me,Le,Fe,Te,Re,Pe,De,je=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(t),Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},ze=(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),$e=e.targetContext="Binding:target",qe=e.sourceContext="Binding:source",Ie=Object.create(null),Ue=[],Be=[],Ve=0;Ve<100;Ve++)Ue.push("_observer"+Ve),Be.push("_observerVersion"+Ve);var He=[],Ye={},Qe=0,We=100,Ge=15,Xe=!1,Ze=0,Ke=[],Je=[],et=[],tt=e.ExpressionObserver=(fe=v(),de=E(),fe(ve=de(ve=function(){function e(e,t,n,r){this.scope=e,this.expression=t,this.observerLocator=n,this.lookupFunctions=r}return e.prototype.getValue=function(){return this.expression.evaluate(this.scope,this.lookupFunctions)},e.prototype.setValue=function(e){this.expression.assign(this.scope,e)},e.prototype.subscribe=function(e,t){var n=this;if(this.hasSubscribers()||(this.oldValue=this.expression.evaluate(this.scope,this.lookupFunctions),this.expression.connect(this,this.scope)),this.addSubscriber(e,t),1===arguments.length&&e instanceof Function)return{dispose:function(){n.unsubscribe(e,t)}}},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)&&!this.hasSubscribers()&&(this.unobserve(!0),this.oldValue=void 0)},e.prototype.call=function(){var e=this.expression.evaluate(this.scope,this.lookupFunctions),t=this.oldValue;e!==t&&(this.oldValue=e,this.callSubscribers(e,t)),this._version++,this.expression.connect(this,this.scope),this.unobserve(!1)},e}())||ve)||ve);C.prototype={calcEditDistances:function(e,t,n,r,i,o){for(var s=o-i+1,a=n-t+1,u=new Array(s),l=void 0,c=void 0,h=0;h<s;++h)u[h]=new Array(a),u[h][0]=h;for(var p=0;p<a;++p)u[0][p]=p;for(var f=1;f<s;++f)for(var d=1;d<a;++d)this.equals(e[t+d-1],r[i+f-1])?u[f][d]=u[f-1][d-1]:(l=u[f-1][d]+1,c=u[f][d-1]+1,u[f][d]=l<c?l:c);return u},spliceOperationsFromEditDistances:function(e){for(var t=e.length-1,n=e[0].length-1,r=e[t][n],i=[];t>0||n>0;)if(0!==t)if(0!==n){var o=e[t-1][n-1],s=e[t-1][n],a=e[t][n-1],u=void 0;u=s<a?s<o?s:o:a<o?a:o,u===o?(o===r?i.push(0):(i.push(1),r=o),t--,n--):u===s?(i.push(3),t--,r=s):(i.push(2),n--,r=a)}else i.push(3),t--;else i.push(2),n--;return i.reverse(),i},calcSplices:function(e,t,n,r,i,o){var s=0,a=0,u=Math.min(n-t,o-i);if(0===t&&0===i&&(s=this.sharedPrefix(e,r,u)),n===e.length&&o===r.length&&(a=this.sharedSuffix(e,r,u-s)),t+=s,i+=s,n-=a,o-=a,n-t==0&&o-i==0)return[];if(t===n){for(var l=S(t,[],0);i<o;)l.removed.push(r[i++]);return[l]}if(i===o)return[S(t,[],n-t)];for(var c=this.spliceOperationsFromEditDistances(this.calcEditDistances(e,t,n,r,i,o)),h=void 0,p=[],f=t,d=i,v=0;v<c.length;++v)switch(c[v]){case 0:h&&(p.push(h),h=void 0),f++,d++;break;case 1:h||(h=S(f,[],0)),h.addedCount++,f++,h.removed.push(r[d]),d++;break;case 2:h||(h=S(f,[],0)),h.addedCount++,f++;break;case 3:h||(h=S(f,[],0)),h.removed.push(r[d]),d++}return h&&p.push(h),p},sharedPrefix:function(e,t,n){for(var r=0;r<n;++r)if(!this.equals(e[r],t[r]))return r;return n},sharedSuffix:function(e,t,n){for(var r=e.length,i=t.length,o=0;o<n&&this.equals(e[--r],t[--i]);)o++;return o},calculateSplices:function(e,t){return this.calcSplices(e,0,e.length,t,0,t.length)},equals:function(e,t){return e===t}};var nt=new C,rt=e.ModifyCollectionObserver=(me=E())(ye=function(){function e(e,t){this.taskQueue=e,this.queued=!1,this.changeRecords=null,this.oldCollection=null,this.collection=t,this.lengthPropertyName=t instanceof Map||t instanceof Set?"size":"length"}return e.prototype.subscribe=function(e,t){this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)},e.prototype.addChangeRecord=function(e){if(this.hasSubscribers()||this.lengthObserver){if("splice"===e.type){var t=e.index,n=e.object.length;t>n?t=n-e.addedCount:t<0&&(t=n+e.removed.length+t-e.addedCount),t<0&&(t=0),e.index=t}null===this.changeRecords?this.changeRecords=[e]:this.changeRecords.push(e),this.queued||(this.queued=!0,this.taskQueue.queueMicroTask(this))}},e.prototype.flushChangeRecords=function(){(this.changeRecords&&this.changeRecords.length||this.oldCollection)&&this.call()},e.prototype.reset=function(e){this.oldCollection=e,this.hasSubscribers()&&!this.queued&&(this.queued=!0,this.taskQueue.queueMicroTask(this))},e.prototype.getLengthObserver=function(){return this.lengthObserver||(this.lengthObserver=new it(this.collection))},e.prototype.call=function(){var e=this.changeRecords,t=this.oldCollection,n=void 0;this.queued=!1,this.changeRecords=[],this.oldCollection=null,this.hasSubscribers()&&(n=t?this.collection instanceof Map||this.collection instanceof Set?P(t):A(this.collection,0,this.collection.length,t,0,t.length):this.collection instanceof Map||this.collection instanceof Set?e:T(this.collection,e),this.callSubscribers(n)),this.lengthObserver&&this.lengthObserver.call(this.collection[this.lengthPropertyName])},e}())||ye,it=e.CollectionLengthObserver=(ge=E())(be=function(){function e(e){this.collection=e,this.lengthPropertyName=e instanceof Map||e instanceof Set?"size":"length",this.currentValue=e[this.lengthPropertyName]}return e.prototype.getValue=function(){return this.collection[this.lengthPropertyName]},e.prototype.setValue=function(e){this.collection[this.lengthPropertyName]=e},e.prototype.subscribe=function(e,t){this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)},e.prototype.call=function(e){var t=this.currentValue;this.callSubscribers(e,t),this.currentValue=e},e}())||be,ot=Array.prototype.pop,st=Array.prototype.push,at=Array.prototype.reverse,ut=Array.prototype.shift,lt=Array.prototype.sort,ct=Array.prototype.splice,ht=Array.prototype.unshift;Array.prototype.pop=function(){var e=this.length>0,t=ot.apply(this,arguments);return e&&void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"delete",object:this,name:this.length,oldValue:t}),t},Array.prototype.push=function(){var e=st.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:this.length-arguments.length,removed:[],addedCount:arguments.length}),e},Array.prototype.reverse=function(){var e=void 0;void 0!==this.__array_observer__&&(this.__array_observer__.flushChangeRecords(),e=this.slice());var t=at.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.reset(e),t},Array.prototype.shift=function(){var e=this.length>0,t=ut.apply(this,arguments);return e&&void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"delete",object:this,name:0,oldValue:t}),t},Array.prototype.sort=function(){var e=void 0;void 0!==this.__array_observer__&&(this.__array_observer__.flushChangeRecords(),e=this.slice());var t=lt.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.reset(e),t},Array.prototype.splice=function(){var e=ct.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:+arguments[0],removed:e,addedCount:arguments.length>2?arguments.length-2:0}),e},Array.prototype.unshift=function(){var e=ht.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:0,removed:[],addedCount:arguments.length}),e},e.getArrayObserver=D;var pt=function(e){function t(t,n){return o(this,e.call(this,t,n))}return s(t,e),t.for=function(e,n){return"__array_observer__"in n||Reflect.defineProperty(n,"__array_observer__",{value:t.create(e,n),enumerable:!1,configurable:!1}),n.__array_observer__},t.create=function(e,n){return new t(e,n)},t}(rt),ft=e.Expression=function(){function e(){this.isChain=!1,this.isAssignable=!1}return e.prototype.evaluate=function(e,t,n){throw new Error('Binding expression "'+this+'" cannot be evaluated.')},e.prototype.assign=function(e,t,n){throw new Error('Binding expression "'+this+'" cannot be assigned to.')},e.prototype.toString=function(){return"undefined"==typeof FEATURE_NO_UNPARSER?Tt.unparse(this):Function.prototype.toString.call(this)},e}(),dt=e.Chain=function(e){function t(t){var n=o(this,e.call(this));return n.expressions=t,n.isChain=!0,n}return s(t,e),t.prototype.evaluate=function(e,t){for(var n=void 0,r=this.expressions,i=void 0,o=0,s=r.length;o<s;++o)null!==(i=r[o].evaluate(e,t))&&(n=i);return n},t.prototype.accept=function(e){return e.visitChain(this)},t}(ft),vt=e.BindingBehavior=function(e){function t(t,n,r){var i=o(this,e.call(this));return i.expression=t,i.name=n,i.args=r,i}return s(t,e),t.prototype.evaluate=function(e,t){return this.expression.evaluate(e,t)},t.prototype.assign=function(e,t,n){return this.expression.assign(e,t,n)},t.prototype.accept=function(e){return e.visitBindingBehavior(this)},t.prototype.connect=function(e,t){this.expression.connect(e,t)},t.prototype.bind=function(e,t,n){this.expression.expression&&this.expression.bind&&this.expression.bind(e,t,n);var r=n.bindingBehaviors(this.name);if(!r)throw new Error('No BindingBehavior named "'+this.name+'" was found!');var i="behavior-"+this.name;if(e[i])throw new Error('A binding behavior named "'+this.name+'" has already been applied to "'+this.expression+'"');e[i]=r,r.bind.apply(r,[e,t].concat(j(t,this.args,e.lookupFunctions)))},t.prototype.unbind=function(e,t){var n="behavior-"+this.name;e[n].unbind(e,t),e[n]=null,this.expression.expression&&this.expression.unbind&&this.expression.unbind(e,t)},t}(ft),mt=e.ValueConverter=function(e){function t(t,n,r,i){var s=o(this,e.call(this));return s.expression=t,s.name=n,s.args=r,s.allArgs=i,s}return s(t,e),t.prototype.evaluate=function(e,t){var n=t.valueConverters(this.name);if(!n)throw new Error('No ValueConverter named "'+this.name+'" was found!');return"toView"in n?n.toView.apply(n,j(e,this.allArgs,t)):this.allArgs[0].evaluate(e,t)},t.prototype.assign=function(e,t,n){var r=n.valueConverters(this.name);if(!r)throw new Error('No ValueConverter named "'+this.name+'" was found!');return"fromView"in r&&(t=r.fromView.apply(r,[t].concat(j(e,this.args,n)))),this.allArgs[0].assign(e,t,n)},t.prototype.accept=function(e){return e.visitValueConverter(this)},t.prototype.connect=function(e,t){for(var n=this.allArgs,r=n.length;r--;)n[r].connect(e,t);var i=e.lookupFunctions.valueConverters(this.name);if(!i)throw new Error('No ValueConverter named "'+this.name+'" was found!');var o=i.signals;if(void 0!==o)for(r=o.length;r--;)he(e,o[r])},t}(ft),yt=e.Assign=function(e){function t(t,n){var r=o(this,e.call(this));return r.target=t,r.value=n,r.isAssignable=!0,r}return s(t,e),t.prototype.evaluate=function(e,t){return this.target.assign(e,this.value.evaluate(e,t))},t.prototype.accept=function(e){e.visitAssign(this)},t.prototype.connect=function(e,t){},t.prototype.assign=function(e,t){this.value.assign(e,t),this.target.assign(e,t)},t}(ft),gt=e.Conditional=function(e){function t(t,n,r){var i=o(this,e.call(this));return i.condition=t,i.yes=n,i.no=r,i}return s(t,e),t.prototype.evaluate=function(e,t){return this.condition.evaluate(e,t)?this.yes.evaluate(e,t):this.no.evaluate(e,t)},t.prototype.accept=function(e){return e.visitConditional(this)},t.prototype.connect=function(e,t){this.condition.connect(e,t),this.condition.evaluate(t)?this.yes.connect(e,t):this.no.connect(e,t)},t}(ft),bt=e.AccessThis=function(e){function t(t){var n=o(this,e.call(this));return n.ancestor=t,n}return s(t,e),t.prototype.evaluate=function(e,t){for(var n=e.overrideContext,r=this.ancestor;r--&&n;)n=n.parentOverrideContext;return r<1&&n?n.bindingContext:void 0},t.prototype.accept=function(e){return e.visitAccessThis(this)},t.prototype.connect=function(e,t){},t}(ft),xt=e.AccessScope=function(e){function t(t,n){var r=o(this,e.call(this));return r.name=t,r.ancestor=n,r.isAssignable=!0,r}return s(t,e),t.prototype.evaluate=function(e,t){return l(this.name,e,this.ancestor)[this.name]},t.prototype.assign=function(e,t){var n=l(this.name,e,this.ancestor);return n?n[this.name]=t:void 0},t.prototype.accept=function(e){return e.visitAccessScope(this)},t.prototype.connect=function(e,t){var n=l(this.name,t,this.ancestor);e.observeProperty(n,this.name)},t}(ft),wt=e.AccessMember=function(e){function t(t,n){var r=o(this,e.call(this));return r.object=t,r.name=n,r.isAssignable=!0,r}return s(t,e),t.prototype.evaluate=function(e,t){var n=this.object.evaluate(e,t);return null===n||void 0===n?n:n[this.name]},t.prototype.assign=function(e,t){var n=this.object.evaluate(e);return null!==n&&void 0!==n||(n={},this.object.assign(e,n)),n[this.name]=t,t},t.prototype.accept=function(e){return e.visitAccessMember(this)},t.prototype.connect=function(e,t){this.object.connect(e,t);var n=this.object.evaluate(t);n&&e.observeProperty(n,this.name)},t}(ft),kt=e.AccessKeyed=function(e){function t(t,n){var r=o(this,e.call(this));return r.object=t,r.key=n,r.isAssignable=!0,r}return s(t,e),t.prototype.evaluate=function(e,t){return $(this.object.evaluate(e,t),this.key.evaluate(e,t))},t.prototype.assign=function(e,t){return q(this.object.evaluate(e),this.key.evaluate(e),t)},t.prototype.accept=function(e){return e.visitAccessKeyed(this)},t.prototype.connect=function(e,t){this.object.connect(e,t);var n=this.object.evaluate(t);if(n instanceof Object){this.key.connect(e,t);var r=this.key.evaluate(t);null===r||void 0===r||Array.isArray(n)&&"number"==typeof r||e.observeProperty(n,r)}},t}(ft),Et=e.CallScope=function(e){function t(t,n,r){var i=o(this,e.call(this));return i.name=t,i.args=n,i.ancestor=r,i}return s(t,e),t.prototype.evaluate=function(e,t,n){var r=j(e,this.args,t),i=l(this.name,e,this.ancestor),o=z(i,this.name,n);if(o)return o.apply(i,r)},t.prototype.accept=function(e){return e.visitCallScope(this)},t.prototype.connect=function(e,t){for(var n=this.args,r=n.length;r--;)n[r].connect(e,t)},t}(ft),_t=e.CallMember=function(e){function t(t,n,r){var i=o(this,e.call(this));return i.object=t,i.name=n,i.args=r,i}return s(t,e),t.prototype.evaluate=function(e,t,n){var r=this.object.evaluate(e,t),i=j(e,this.args,t),o=z(r,this.name,n);if(o)return o.apply(r,i)},t.prototype.accept=function(e){return e.visitCallMember(this)},t.prototype.connect=function(e,t){if(this.object.connect(e,t),z(this.object.evaluate(t),this.name,!1))for(var n=this.args,r=n.length;r--;)n[r].connect(e,t)},t}(ft),Ot=e.CallFunction=function(e){function t(t,n){var r=o(this,e.call(this));return r.func=t,r.args=n,r}return s(t,e),t.prototype.evaluate=function(e,t,n){var r=this.func.evaluate(e,t);if("function"==typeof r)return r.apply(null,j(e,this.args,t));if(n||null!==r&&void 0!==r)throw new Error(this.func+" is not a function")},t.prototype.accept=function(e){return e.visitCallFunction(this)},t.prototype.connect=function(e,t){if(this.func.connect(e,t),"function"==typeof this.func.evaluate(t))for(var n=this.args,r=n.length;r--;)n[r].connect(e,t)},t}(ft),St=e.Binary=function(e){function t(t,n,r){var i=o(this,e.call(this));return i.operation=t,i.left=n,i.right=r,i}return s(t,e),t.prototype.evaluate=function(e,t){var n=this.left.evaluate(e,t);switch(this.operation){case"&&":return n&&this.right.evaluate(e,t);case"||":return n||this.right.evaluate(e,t)}var r=this.right.evaluate(e,t);switch(this.operation){case"==":return n==r;case"===":return n===r;case"!=":return n!=r;case"!==":return n!==r}if(null===n||null===r||void 0===n||void 0===r){switch(this.operation){case"+":return null!==n&&void 0!==n?n:null!==r&&void 0!==r?r:0;case"-":return null!==n&&void 0!==n?n:null!==r&&void 0!==r?0-r:0}return null}switch(this.operation){case"+":return N(n,r);case"-":return n-r;case"*":return n*r;case"/":return n/r;case"%":return n%r;case"<":return n<r;case">":return n>r;case"<=":return n<=r;case">=":return n>=r;case"^":return n^r}throw new Error("Internal error ["+this.operation+"] not handled")},t.prototype.accept=function(e){return e.visitBinary(this)},t.prototype.connect=function(e,t){this.left.connect(e,t);var n=this.left.evaluate(t);"&&"===this.operation&&!n||"||"===this.operation&&n||this.right.connect(e,t)},t}(ft),Ct=e.PrefixNot=function(e){function t(t,n){var r=o(this,e.call(this));return r.operation=t,r.expression=n,r}return s(t,e),t.prototype.evaluate=function(e,t){return!this.expression.evaluate(e,t)},t.prototype.accept=function(e){return e.visitPrefix(this)},t.prototype.connect=function(e,t){this.expression.connect(e,t)},t}(ft),At=e.LiteralPrimitive=function(e){function t(t){var n=o(this,e.call(this));return n.value=t,n}return s(t,e),t.prototype.evaluate=function(e,t){return this.value},t.prototype.accept=function(e){return e.visitLiteralPrimitive(this)},t.prototype.connect=function(e,t){},t}(ft),Mt=e.LiteralString=function(e){function t(t){var n=o(this,e.call(this));return n.value=t,n}return s(t,e),t.prototype.evaluate=function(e,t){return this.value},t.prototype.accept=function(e){return e.visitLiteralString(this)},t.prototype.connect=function(e,t){},t}(ft),Lt=e.LiteralArray=function(e){function t(t){var n=o(this,e.call(this));return n.elements=t,n}return s(t,e),t.prototype.evaluate=function(e,t){for(var n=this.elements,r=[],i=0,o=n.length;i<o;++i)r[i]=n[i].evaluate(e,t);return r},t.prototype.accept=function(e){return e.visitLiteralArray(this)},t.prototype.connect=function(e,t){for(var n=this.elements.length,r=0;r<n;r++)this.elements[r].connect(e,t)},t}(ft),Ft=e.LiteralObject=function(e){function t(t,n){var r=o(this,e.call(this));return r.keys=t,r.values=n,r}return s(t,e),t.prototype.evaluate=function(e,t){for(var n={},r=this.keys,i=this.values,o=0,s=r.length;o<s;++o)n[r[o]]=i[o].evaluate(e,t);return n},t.prototype.accept=function(e){return e.visitLiteralObject(this)},t.prototype.connect=function(e,t){for(var n=this.keys.length,r=0;r<n;r++)this.values[r].connect(e,t)},t}(ft),Tt=null;e.Unparser=Tt,"undefined"==typeof FEATURE_NO_UNPARSER&&(e.Unparser=Tt=function(){function e(e){this.buffer=e}
return e.unparse=function(e){var t=[],n=new Tt(t);return e.accept(n),t.join("")},e.prototype.write=function(e){this.buffer.push(e)},e.prototype.writeArgs=function(e){this.write("(");for(var t=0,n=e.length;t<n;++t)0!==t&&this.write(","),e[t].accept(this);this.write(")")},e.prototype.visitChain=function(e){for(var t=e.expressions,n=0,r=expression.length;n<r;++n)0!==n&&this.write(";"),t[n].accept(this)},e.prototype.visitBindingBehavior=function(e){var t=e.args;e.expression.accept(this),this.write("&"+e.name);for(var n=0,r=t.length;n<r;++n)this.write(":"),t[n].accept(this)},e.prototype.visitValueConverter=function(e){var t=e.args;e.expression.accept(this),this.write("|"+e.name);for(var n=0,r=t.length;n<r;++n)this.write(":"),t[n].accept(this)},e.prototype.visitAssign=function(e){e.target.accept(this),this.write("="),e.value.accept(this)},e.prototype.visitConditional=function(e){e.condition.accept(this),this.write("?"),e.yes.accept(this),this.write(":"),e.no.accept(this)},e.prototype.visitAccessThis=function(e){if(0===e.ancestor)return void this.write("$this");this.write("$parent");for(var t=e.ancestor-1;t--;)this.write(".$parent")},e.prototype.visitAccessScope=function(e){for(var t=e.ancestor;t--;)this.write("$parent.");this.write(e.name)},e.prototype.visitAccessMember=function(e){e.object.accept(this),this.write("."+e.name)},e.prototype.visitAccessKeyed=function(e){e.object.accept(this),this.write("["),e.key.accept(this),this.write("]")},e.prototype.visitCallScope=function(e){for(var t=e.ancestor;t--;)this.write("$parent.");this.write(e.name),this.writeArgs(e.args)},e.prototype.visitCallFunction=function(e){e.func.accept(this),this.writeArgs(e.args)},e.prototype.visitCallMember=function(e){e.object.accept(this),this.write("."+e.name),this.writeArgs(e.args)},e.prototype.visitPrefix=function(e){this.write("("+e.operation),e.expression.accept(this),this.write(")")},e.prototype.visitBinary=function(e){e.left.accept(this),this.write(e.operation),e.right.accept(this)},e.prototype.visitLiteralPrimitive=function(e){this.write(""+e.value)},e.prototype.visitLiteralArray=function(e){var t=e.elements;this.write("[");for(var n=0,r=t.length;n<r;++n)0!==n&&this.write(","),t[n].accept(this);this.write("]")},e.prototype.visitLiteralObject=function(e){var t=e.keys,n=e.values;this.write("{");for(var r=0,i=t.length;r<i;++r)0!==r&&this.write(","),this.write("'"+t[r]+"':"),n[r].accept(this);this.write("}")},e.prototype.visitLiteralString=function(e){var t=e.value.replace(/'/g,"'");this.write("'"+t+"'")},e}());var Rt=e.ExpressionCloner=function(){function e(){}return e.prototype.cloneExpressionArray=function(e){for(var t=[],n=e.length;n--;)t[n]=e[n].accept(this);return t},e.prototype.visitChain=function(e){return new dt(this.cloneExpressionArray(e.expressions))},e.prototype.visitBindingBehavior=function(e){return new vt(e.expression.accept(this),e.name,this.cloneExpressionArray(e.args))},e.prototype.visitValueConverter=function(e){return new mt(e.expression.accept(this),e.name,this.cloneExpressionArray(e.args))},e.prototype.visitAssign=function(e){return new yt(e.target.accept(this),e.value.accept(this))},e.prototype.visitConditional=function(e){return new gt(e.condition.accept(this),e.yes.accept(this),e.no.accept(this))},e.prototype.visitAccessThis=function(e){return new bt(e.ancestor)},e.prototype.visitAccessScope=function(e){return new xt(e.name,e.ancestor)},e.prototype.visitAccessMember=function(e){return new wt(e.object.accept(this),e.name)},e.prototype.visitAccessKeyed=function(e){return new kt(e.object.accept(this),e.key.accept(this))},e.prototype.visitCallScope=function(e){return new Et(e.name,this.cloneExpressionArray(e.args),e.ancestor)},e.prototype.visitCallFunction=function(e){return new Ot(e.func.accept(this),this.cloneExpressionArray(e.args))},e.prototype.visitCallMember=function(e){return new _t(e.object.accept(this),e.name,this.cloneExpressionArray(e.args))},e.prototype.visitPrefix=function(e){return new Ct(e.operation,e.expression.accept(this))},e.prototype.visitBinary=function(e){return new St(e.operation,e.left.accept(this),e.right.accept(this))},e.prototype.visitLiteralPrimitive=function(e){return new At(e)},e.prototype.visitLiteralArray=function(e){return new Lt(this.cloneExpressionArray(e.elements))},e.prototype.visitLiteralObject=function(e){return new Ft(e.keys,this.cloneExpressionArray(e.values))},e.prototype.visitLiteralString=function(e){return new Mt(e.value)},e}(),Pt=e.bindingMode={oneTime:0,toView:1,oneWay:1,twoWay:2,fromView:3},Dt=e.Token=function(){function e(e,t){this.index=e,this.text=t}return e.prototype.withOp=function(e){return this.opKey=e,this},e.prototype.withGetterSetter=function(e){return this.key=e,this},e.prototype.withValue=function(e){return this.value=e,this},e.prototype.toString=function(){return"Token("+this.text+")"},e}(),jt=e.Lexer=function(){function e(){}return e.prototype.lex=function(e){for(var t=new Nt(e),n=[],r=t.scanToken();r;)n.push(r),r=t.scanToken();return n},e}(),Nt=e.Scanner=function(){function e(e){this.input=e,this.length=e.length,this.peek=0,this.index=-1,this.advance()}return e.prototype.scanToken=function(){for(;this.peek<=Ht;){if(++this.index>=this.length)return this.peek=$t,null;this.peek=this.input.charCodeAt(this.index)}if(B(this.peek))return this.scanIdentifier();if(H(this.peek))return this.scanNumber(this.index);var e=this.index;switch(this.peek){case on:return this.advance(),H(this.peek)?this.scanNumber(e):new Dt(e,".");case Kt:case Jt:case Tn:case Pn:case gn:case xn:case nn:case an:case un:return this.scanCharacter(e,String.fromCharCode(this.peek));case Zt:case Qt:return this.scanString();case tn:case rn:case en:case sn:case Gt:case wn:case pn:return this.scanOperator(e,String.fromCharCode(this.peek));case ln:case hn:case Yt:case cn:return this.scanComplexOperator(e,cn,String.fromCharCode(this.peek),"=");case Xt:return this.scanComplexOperator(e,Xt,"&","&");case Rn:return this.scanComplexOperator(e,Rn,"|","|");case Dn:for(;U(this.peek);)this.advance();return this.scanToken()}var t=String.fromCharCode(this.peek);return this.error("Unexpected character ["+t+"]"),null},e.prototype.scanCharacter=function(e,t){return G(this.peek===t.charCodeAt(0)),this.advance(),new Dt(e,t)},e.prototype.scanOperator=function(e,t){return G(this.peek===t.charCodeAt(0)),G(-1!==zt.indexOf(t)),this.advance(),new Dt(e,t).withOp(t)},e.prototype.scanComplexOperator=function(e,t,n,r){G(this.peek===n.charCodeAt(0)),this.advance();var i=n;return this.peek===t&&(this.advance(),i+=r),this.peek===t&&(this.advance(),i+=r),G(-1!==zt.indexOf(i)),new Dt(e,i).withOp(i)},e.prototype.scanIdentifier=function(){G(B(this.peek));var e=this.index;for(this.advance();V(this.peek);)this.advance();var t=this.input.substring(e,this.index),n=new Dt(e,t);return-1!==zt.indexOf(t)?n.withOp(t):n.withGetterSetter(t),n},e.prototype.scanNumber=function(e){G(H(this.peek));var t=this.index===e;for(this.advance();;){if(!H(this.peek))if(this.peek===on)t=!1;else{if(!Y(this.peek))break;this.advance(),Q(this.peek)&&this.advance(),H(this.peek)||this.error("Invalid exponent",-1),t=!1}this.advance()}var n=this.input.substring(e,this.index),r=t?parseInt(n,10):parseFloat(n);return new Dt(e,n).withValue(r)},e.prototype.scanString=function(){G(this.peek===Zt||this.peek===Qt);var e=this.index,t=this.peek;this.advance();for(var n=void 0,r=this.index;this.peek!==t;)if(this.peek===bn){n||(n=[]),n.push(this.input.substring(r,this.index)),this.advance();var i=void 0;if(this.peek===Mn){var o=this.input.substring(this.index+1,this.index+5);/[A-Z0-9]{4}/.test(o)||this.error("Invalid unicode escape [\\u"+o+"]"),i=parseInt(o,16);for(var s=0;s<5;++s)this.advance()}else i=W(this.peek),this.advance();n.push(String.fromCharCode(i)),r=this.index}else this.peek===$t?this.error("Unterminated quote"):this.advance();var a=this.input.substring(r,this.index);this.advance();var u=this.input.substring(e,this.index),l=a;return null!==n&&void 0!==n&&(n.push(a),l=n.join("")),new Dt(e,u).withValue(l)},e.prototype.advance=function(){++this.index>=this.length?this.peek=$t:this.peek=this.input.charCodeAt(this.index)},e.prototype.error=function(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=this.index+t;throw new Error("Lexer Error: "+e+" at column "+n+" in expression ["+this.input+"]")},e}(),zt=["undefined","null","true","false","+","-","*","/","%","^","=","==","===","!=","!==","<",">","<=",">=","&&","||","&","|","!","?"],$t=0,qt=9,It=10,Ut=11,Bt=12,Vt=13,Ht=32,Yt=33,Qt=34,Wt=36,Gt=37,Xt=38,Zt=39,Kt=40,Jt=41,en=42,tn=43,nn=44,rn=45,on=46,sn=47,an=58,un=59,ln=60,cn=61,hn=62,pn=63,fn=48,dn=57,vn=65,mn=69,yn=90,gn=91,bn=92,xn=93,wn=94,kn=95,En=97,_n=101,On=102,Sn=110,Cn=114,An=116,Mn=117,Ln=118,Fn=122,Tn=123,Rn=124,Pn=125,Dn=160,jn=new Dt(-1,null),Nn=e.Parser=function(){function e(){this.cache={},this.lexer=new jt}return e.prototype.parse=function(e){return e=e||"",this.cache[e]||(this.cache[e]=new zn(this.lexer,e).parseChain())},e}(),zn=e.ParserImplementation=function(){function e(e,t){this.index=0,this.input=t,this.tokens=e.lex(t)}return e.prototype.parseChain=function(){for(var e=!1,t=[];this.optional(";");)e=!0;for(;this.index<this.tokens.length;){")"!==this.peek.text&&"}"!==this.peek.text&&"]"!==this.peek.text||this.error("Unconsumed token "+this.peek.text);var n=this.parseBindingBehavior();for(t.push(n);this.optional(";");)e=!0;e&&this.error("Multiple expressions are not allowed.")}return 1===t.length?t[0]:new dt(t)},e.prototype.parseBindingBehavior=function(){for(var e=this.parseValueConverter();this.optional("&");){var t=this.peek.text,n=[];for(this.advance();this.optional(":");)n.push(this.parseExpression());e=new vt(e,t,n)}return e},e.prototype.parseValueConverter=function(){for(var e=this.parseExpression();this.optional("|");){var t=this.peek.text,n=[];for(this.advance();this.optional(":");)n.push(this.parseExpression());e=new mt(e,t,n,[e].concat(n))}return e},e.prototype.parseExpression=function(){for(var e=this.peek.index,t=this.parseConditional();"="===this.peek.text;){if(!t.isAssignable){var n=this.index<this.tokens.length?this.peek.index:this.input.length,r=this.input.substring(e,n);this.error("Expression "+r+" is not assignable")}this.expect("="),t=new yt(t,this.parseConditional())}return t},e.prototype.parseConditional=function(){var e=this.peek.index,t=this.parseLogicalOr();if(this.optional("?")){var n=this.parseExpression();if(!this.optional(":")){var r=this.index<this.tokens.length?this.peek.index:this.input.length,i=this.input.substring(e,r);this.error("Conditional expression "+i+" requires all 3 expressions")}var o=this.parseExpression();t=new gt(t,n,o)}return t},e.prototype.parseLogicalOr=function(){for(var e=this.parseLogicalAnd();this.optional("||");)e=new St("||",e,this.parseLogicalAnd());return e},e.prototype.parseLogicalAnd=function(){for(var e=this.parseEquality();this.optional("&&");)e=new St("&&",e,this.parseEquality());return e},e.prototype.parseEquality=function(){for(var e=this.parseRelational();;)if(this.optional("=="))e=new St("==",e,this.parseRelational());else if(this.optional("!="))e=new St("!=",e,this.parseRelational());else if(this.optional("==="))e=new St("===",e,this.parseRelational());else{if(!this.optional("!=="))return e;e=new St("!==",e,this.parseRelational())}},e.prototype.parseRelational=function(){for(var e=this.parseAdditive();;)if(this.optional("<"))e=new St("<",e,this.parseAdditive());else if(this.optional(">"))e=new St(">",e,this.parseAdditive());else if(this.optional("<="))e=new St("<=",e,this.parseAdditive());else{if(!this.optional(">="))return e;e=new St(">=",e,this.parseAdditive())}},e.prototype.parseAdditive=function(){for(var e=this.parseMultiplicative();;)if(this.optional("+"))e=new St("+",e,this.parseMultiplicative());else{if(!this.optional("-"))return e;e=new St("-",e,this.parseMultiplicative())}},e.prototype.parseMultiplicative=function(){for(var e=this.parsePrefix();;)if(this.optional("*"))e=new St("*",e,this.parsePrefix());else if(this.optional("%"))e=new St("%",e,this.parsePrefix());else{if(!this.optional("/"))return e;e=new St("/",e,this.parsePrefix())}},e.prototype.parsePrefix=function(){return this.optional("+")?this.parsePrefix():this.optional("-")?new St("-",new At(0),this.parsePrefix()):this.optional("!")?new Ct("!",this.parsePrefix()):this.parseAccessOrCallMember()},e.prototype.parseAccessOrCallMember=function(){for(var e=this.parsePrimary();;)if(this.optional(".")){var t=this.peek.text;if(this.advance(),this.optional("(")){var n=this.parseExpressionList(")");this.expect(")"),e=e instanceof bt?new Et(t,n,e.ancestor):new _t(e,t,n)}else e=e instanceof bt?new xt(t,e.ancestor):new wt(e,t)}else if(this.optional("[")){var r=this.parseExpression();this.expect("]"),e=new kt(e,r)}else{if(!this.optional("("))return e;var i=this.parseExpressionList(")");this.expect(")"),e=new Ot(e,i)}},e.prototype.parsePrimary=function(){if(this.optional("(")){var e=this.parseExpression();return this.expect(")"),e}if(this.optional("null"))return new At(null);if(this.optional("undefined"))return new At(void 0);if(this.optional("true"))return new At(!0);if(this.optional("false"))return new At(!1);if(this.optional("[")){var t=this.parseExpressionList("]");return this.expect("]"),new Lt(t)}if("{"===this.peek.text)return this.parseObject();if(null!==this.peek.key&&void 0!==this.peek.key)return this.parseAccessOrCallScope();if(null!==this.peek.value&&void 0!==this.peek.value){var n=this.peek.value;return this.advance(),n instanceof String||"string"==typeof n?new Mt(n):new At(n)}if(this.index>=this.tokens.length)throw new Error("Unexpected end of expression: "+this.input);this.error("Unexpected token "+this.peek.text)},e.prototype.parseAccessOrCallScope=function(){var e=this.peek.key;if(this.advance(),"$this"===e)return new bt(0);for(var t=0;"$parent"===e;)if(t++,this.optional("."))e=this.peek.key,this.advance();else{if(this.peek===jn||"("===this.peek.text||")"===this.peek.text||"["===this.peek.text||"}"===this.peek.text||","===this.peek.text||"|"===this.peek.text||"&"===this.peek.text)return new bt(t);this.error("Unexpected token "+this.peek.text)}if(this.optional("(")){var n=this.parseExpressionList(")");return this.expect(")"),new Et(e,n,t)}return new xt(e,t)},e.prototype.parseObject=function(){var e=[],t=[];if(this.expect("{"),"}"!==this.peek.text)do{var n=this.peek,r=n.value;e.push("string"==typeof r?r:n.text),this.advance(),!n.key||","!==this.peek.text&&"}"!==this.peek.text?(this.expect(":"),t.push(this.parseExpression())):(--this.index,t.push(this.parseAccessOrCallScope()))}while(this.optional(","));return this.expect("}"),new Ft(e,t)},e.prototype.parseExpressionList=function(e){var t=[];if(this.peek.text!==e)do{t.push(this.parseExpression())}while(this.optional(","));return t},e.prototype.optional=function(e){return this.peek.text===e&&(this.advance(),!0)},e.prototype.expect=function(e){this.peek.text===e?this.advance():this.error("Missing expected "+e)},e.prototype.advance=function(){this.index++},e.prototype.error=function(e){var t=this.index<this.tokens.length?"at column "+(this.tokens[this.index].index+1)+" in":"at the end of the expression";throw new Error("Parser Error: "+e+" "+t+" ["+this.input+"]")},ze(e,[{key:"peek",get:function(){return this.index<this.tokens.length?this.tokens[this.index]:jn}}]),e}(),$n=Map.prototype;e.getMapObserver=X;var qn=function(e){function t(t,n){return o(this,e.call(this,t,n))}return s(t,e),t.for=function(e,n){return"__map_observer__"in n||Reflect.defineProperty(n,"__map_observer__",{value:t.create(e,n),enumerable:!1,configurable:!1}),n.__map_observer__},t.create=function(e,n){var r=new t(e,n),i=$n;return i.set===n.set&&i.delete===n.delete&&i.clear===n.clear||(i={set:n.set,delete:n.delete,clear:n.clear}),n.set=function(){var e=n.has(arguments[0]),t=e?"update":"add",o=n.get(arguments[0]),s=i.set.apply(n,arguments);return e&&o===n.get(arguments[0])||r.addChangeRecord({type:t,object:n,key:arguments[0],oldValue:o}),s},n.delete=function(){var e=n.has(arguments[0]),t=n.get(arguments[0]),o=i.delete.apply(n,arguments);return e&&r.addChangeRecord({type:"delete",object:n,key:arguments[0],oldValue:t}),o},n.clear=function(){var e=i.clear.apply(n,arguments);return r.addChangeRecord({type:"clear",object:n}),e},r},t}(rt),In=function(){function e(e){this.eventName=e,this.count=0}return e.prototype.increment=function(){1===++this.count&&n.DOM.addEventListener(this.eventName,ee,!0)},e.prototype.decrement=function(){0===--this.count&&n.DOM.removeEventListener(this.eventName,ee,!0)},e}(),Un=function(){function e(e){this.eventName=e,this.count=0}return e.prototype.increment=function(){1===++this.count&&n.DOM.addEventListener(this.eventName,te,!1)},e.prototype.decrement=function(){0===--this.count&&n.DOM.removeEventListener(this.eventName,te)},e}(),Bn=function(){function e(){this.delegatedHandlers={},this.capturedHandlers={}}return e.prototype.subscribe=function(e,t,n,r){var i=this,o=void 0,s=void 0,a=void 0;if(r===Vn.bubbling){var u=function(){o=i.delegatedHandlers,a=o[t]||(o[t]=new Un(t));var r=e.delegatedCallbacks||(e.delegatedCallbacks={});return a.increment(),r[t]=n,{v:function(){a.decrement(),r[t]=null}}}();if("object"===(void 0===u?"undefined":Ne(u)))return u.v}if(r===Vn.capturing){var l=function(){s=i.capturedHandlers,a=s[t]||(s[t]=new In(t));var r=e.capturedCallbacks||(e.capturedCallbacks={});return a.increment(),r[t]=n,{v:function(){a.decrement(),r[t]=null}}}();if("object"===(void 0===l?"undefined":Ne(l)))return l.v}return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n)}},e}(),Vn=e.delegationStrategy={none:0,capturing:1,bubbling:2},Hn=e.EventManager=function(){function e(){this.elementHandlerLookup={},this.eventStrategyLookup={},this.registerElementConfig({tagName:"input",properties:{value:["change","input"],checked:["change","input"],files:["change","input"]}}),this.registerElementConfig({tagName:"textarea",properties:{value:["change","input"]}}),this.registerElementConfig({tagName:"select",properties:{value:["change"]}}),this.registerElementConfig({tagName:"content editable",properties:{value:["change","input","blur","keyup","paste"]}}),this.registerElementConfig({tagName:"scrollable element",properties:{scrollTop:["scroll"],scrollLeft:["scroll"]}}),this.defaultEventStrategy=new Bn}return e.prototype.registerElementConfig=function(e){var t=e.tagName.toLowerCase(),n=e.properties,r=void 0;this.elementHandlerLookup[t]={};for(r in n)n.hasOwnProperty(r)&&this.registerElementPropertyConfig(t,r,n[r])},e.prototype.registerElementPropertyConfig=function(e,t,n){this.elementHandlerLookup[e][t]=this.createElementHandler(n)},e.prototype.createElementHandler=function(e){return{subscribe:function(t,n){return e.forEach(function(e){t.addEventListener(e,n,!1)}),function(){e.forEach(function(e){t.removeEventListener(e,n,!1)})}}}},e.prototype.registerElementHandler=function(e,t){this.elementHandlerLookup[e.toLowerCase()]=t},e.prototype.registerEventStrategy=function(e,t){this.eventStrategyLookup[e]=t},e.prototype.getElementHandler=function(e,t){var n=void 0,r=this.elementHandlerLookup;if(e.tagName){if(n=e.tagName.toLowerCase(),r[n]&&r[n][t])return r[n][t];if("textContent"===t||"innerHTML"===t)return r["content editable"].value;if("scrollTop"===t||"scrollLeft"===t)return r["scrollable element"][t]}return null},e.prototype.addEventListener=function(e,t,n,r){return(this.eventStrategyLookup[t]||this.defaultEventStrategy).subscribe(e,t,n,r)},e}(),Yn=e.DirtyChecker=function(){function e(){this.tracked=[],this.checkDelay=120}return e.prototype.addProperty=function(e){var t=this.tracked;t.push(e),1===t.length&&this.scheduleDirtyCheck()},e.prototype.removeProperty=function(e){var t=this.tracked;t.splice(t.indexOf(e),1)},e.prototype.scheduleDirtyCheck=function(){var e=this;setTimeout(function(){return e.check()},this.checkDelay)},e.prototype.check=function(){for(var e=this.tracked,t=e.length;t--;){var n=e[t];n.isDirty()&&n.call()}e.length&&this.scheduleDirtyCheck()},e}(),Qn=e.DirtyCheckProperty=(xe=E())(we=function(){function e(e,t,n){this.dirtyChecker=e,this.obj=t,this.propertyName=n}return e.prototype.getValue=function(){return this.obj[this.propertyName]},e.prototype.setValue=function(e){this.obj[this.propertyName]=e},e.prototype.call=function(){var e=this.oldValue,t=this.getValue();this.callSubscribers(t,e),this.oldValue=t},e.prototype.isDirty=function(){return this.oldValue!==this.obj[this.propertyName]},e.prototype.subscribe=function(e,t){this.hasSubscribers()||(this.oldValue=this.getValue(),this.dirtyChecker.addProperty(this)),this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)&&!this.hasSubscribers()&&this.dirtyChecker.removeProperty(this)},e}())||we,Wn=je.getLogger("property-observation"),Gn=e.propertyAccessor={getValue:function(e,t){return e[t]},setValue:function(e,t,n){t[n]=e}},Xn=e.PrimitiveObserver=function(){function e(e,t){this.doNotCache=!0,this.primitive=e,this.propertyName=t}return e.prototype.getValue=function(){return this.primitive[this.propertyName]},e.prototype.setValue=function(){var e=Ne(this.primitive);throw new Error("The "+this.propertyName+" property of a "+e+" ("+this.primitive+") cannot be assigned.")},e.prototype.subscribe=function(){},e.prototype.unsubscribe=function(){},e}(),Zn=e.SetterObserver=(ke=E())(Ee=function(){function e(e,t,n){this.taskQueue=e,this.obj=t,this.propertyName=n,this.queued=!1,this.observing=!1}return e.prototype.getValue=function(){return this.obj[this.propertyName]},e.prototype.setValue=function(e){this.obj[this.propertyName]=e},e.prototype.getterValue=function(){return this.currentValue},e.prototype.setterValue=function(e){var t=this.currentValue;t!==e&&(this.queued||(this.oldValue=t,this.queued=!0,this.taskQueue.queueMicroTask(this)),this.currentValue=e)},e.prototype.call=function(){var e=this.oldValue,t=this.currentValue;this.queued=!1,this.callSubscribers(t,e)},e.prototype.subscribe=function(e,t){this.observing||this.convertProperty(),this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)},e.prototype.convertProperty=function(){this.observing=!0,this.currentValue=this.obj[this.propertyName],this.setValue=this.setterValue,this.getValue=this.getterValue,Reflect.defineProperty(this.obj,this.propertyName,{configurable:!0,enumerable:!(this.propertyName in this.obj)||this.obj.propertyIsEnumerable(this.propertyName),get:this.getValue.bind(this),set:this.setValue.bind(this)})||Wn.warn("Cannot observe property '"+this.propertyName+"' of object",this.obj)},e}())||Ee,Kn=e.XLinkAttributeObserver=function(){function e(e,t,n){this.element=e,this.propertyName=t,this.attributeName=n}return e.prototype.getValue=function(){return this.element.getAttributeNS("http://www.w3.org/1999/xlink",this.attributeName)},e.prototype.setValue=function(e){return this.element.setAttributeNS("http://www.w3.org/1999/xlink",this.attributeName,e)},e.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "'+this.propertyName+'" property is not supported.')},e}(),Jn=e.dataAttributeAccessor={getValue:function(e,t){return e.getAttribute(t)},setValue:function(e,t,n){null===e||void 0===e?t.removeAttribute(n):t.setAttribute(n,e)}},er=e.DataAttributeObserver=function(){function e(e,t){this.element=e,this.propertyName=t}return e.prototype.getValue=function(){return this.element.getAttribute(this.propertyName)},e.prototype.setValue=function(e){return null===e||void 0===e?this.element.removeAttribute(this.propertyName):this.element.setAttribute(this.propertyName,e)},e.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "'+this.propertyName+'" property is not supported.')},e}(),tr=e.StyleObserver=function(){function e(e,t){this.element=e,this.propertyName=t,this.styles=null,this.version=0}return e.prototype.getValue=function(){return this.element.style.cssText},e.prototype._setProperty=function(e,t){var n="";null!==t&&void 0!==t&&"function"==typeof t.indexOf&&-1!==t.indexOf("!important")&&(n="important",t=t.replace("!important","")),this.element.style.setProperty(e,t,n)},e.prototype.setValue=function(e){var t=this.styles||{},n=void 0,r=this.version;if(null!==e&&void 0!==e)if(e instanceof Object){var i=void 0;for(n in e)e.hasOwnProperty(n)&&(i=e[n],n=n.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}),t[n]=r,this._setProperty(n,i))}else if(e.length)for(var o=/\s*([\w\-]+)\s*:\s*((?:(?:[\w\-]+\(\s*(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[\w\-]+\(\s*(?:^"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^\)]*)\),?|[^\)]*)\),?|"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^;]*),?\s*)+);?/g,s=void 0;null!==(s=o.exec(e));)(n=s[1])&&(t[n]=r,this._setProperty(n,s[2]));if(this.styles=t,this.version+=1,0!==r){r-=1;for(n in t)t.hasOwnProperty(n)&&t[n]===r&&this.element.style.removeProperty(n)}},e.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "'+this.propertyName+'" property is not supported.')},e}(),nr=e.ValueAttributeObserver=(_e=E())(Oe=function(){function e(e,t,n){this.element=e,this.propertyName=t,this.handler=n,"files"===t&&(this.setValue=function(){})}return e.prototype.getValue=function(){return this.element[this.propertyName]},e.prototype.setValue=function(e){e=void 0===e||null===e?"":e,this.element[this.propertyName]!==e&&(this.element[this.propertyName]=e,this.notify())},e.prototype.notify=function(){var e=this.oldValue,t=this.getValue();this.callSubscribers(t,e),this.oldValue=t},e.prototype.handleEvent=function(){this.notify()},e.prototype.subscribe=function(e,t){this.hasSubscribers()||(this.oldValue=this.getValue(),this.disposeHandler=this.handler.subscribe(this.element,this)),this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)&&!this.hasSubscribers()&&(this.disposeHandler(),this.disposeHandler=null)},e}())||Oe,rr=e.CheckedObserver=(Se=E())(Ce=function(){function e(e,t,n){this.element=e,this.handler=t,this.observerLocator=n}return e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(e){this.initialSync&&this.value===e||(this.arrayObserver&&(this.arrayObserver.unsubscribe("CheckedObserver:array",this),this.arrayObserver=null),"checkbox"===this.element.type&&Array.isArray(e)&&(this.arrayObserver=this.observerLocator.getArrayObserver(e),this.arrayObserver.subscribe("CheckedObserver:array",this)),this.oldValue=this.value,this.value=e,this.synchronizeElement(),this.notify(),this.initialSync||(this.initialSync=!0,this.observerLocator.taskQueue.queueMicroTask(this)))},e.prototype.call=function(e,t){this.synchronizeElement(),this.valueObserver||(this.valueObserver=this.element.__observers__.model||this.element.__observers__.value,this.valueObserver&&this.valueObserver.subscribe("CheckedObserver:value",this))},e.prototype.synchronizeElement=function(){var e=this.value,t=this.element,n=t.hasOwnProperty("model")?t.model:t.value,r="radio"===t.type,i=t.matcher||function(e,t){return e===t};t.checked=r&&!!i(e,n)||!r&&!0===e||!r&&Array.isArray(e)&&-1!==e.findIndex(function(e){return!!i(e,n)})},e.prototype.synchronizeValue=function(){var e=this.value,t=this.element,n=t.hasOwnProperty("model")?t.model:t.value,r=void 0,i=t.matcher||function(e,t){return e===t};if("checkbox"===t.type){if(Array.isArray(e))return r=e.findIndex(function(e){return!!i(e,n)}),void(t.checked&&-1===r?e.push(n):t.checked||-1===r||e.splice(r,1));e=t.checked}else{if(!t.checked)return;e=n}this.oldValue=this.value,this.value=e,this.notify()},e.prototype.notify=function(){var e=this.oldValue,t=this.value;t!==e&&this.callSubscribers(t,e)},e.prototype.handleEvent=function(){this.synchronizeValue()},e.prototype.subscribe=function(e,t){this.hasSubscribers()||(this.disposeHandler=this.handler.subscribe(this.element,this)),this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)&&!this.hasSubscribers()&&(this.disposeHandler(),this.disposeHandler=null)},e.prototype.unbind=function(){this.arrayObserver&&(this.arrayObserver.unsubscribe("CheckedObserver:array",this),this.arrayObserver=null),this.valueObserver&&this.valueObserver.unsubscribe("CheckedObserver:value",this)},e}())||Ce,ir=e.SelectValueObserver=(Ae=E())(Me=function(){function e(e,t,n){this.element=e,this.handler=t,this.observerLocator=n}return e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(e){if(null!==e&&void 0!==e&&this.element.multiple&&!Array.isArray(e))throw new Error("Only null or Array instances can be bound to a multi-select.");this.value!==e&&(this.arrayObserver&&(this.arrayObserver.unsubscribe("SelectValueObserver:array",this),this.arrayObserver=null),Array.isArray(e)&&(this.arrayObserver=this.observerLocator.getArrayObserver(e),this.arrayObserver.subscribe("SelectValueObserver:array",this)),this.oldValue=this.value,this.value=e,this.synchronizeOptions(),this.notify(),this.initialSync||(this.initialSync=!0,this.observerLocator.taskQueue.queueMicroTask(this)))},e.prototype.call=function(e,t){this.synchronizeOptions()},e.prototype.synchronizeOptions=function(){var e=this.value,t=void 0;Array.isArray(e)&&(t=!0);for(var n=this.element.options,r=n.length,i=this.element.matcher||function(e,t){return e===t};r--;){(function(){var o=n.item(r),s=o.hasOwnProperty("model")?o.model:o.value;if(t)return o.selected=-1!==e.findIndex(function(e){return!!i(s,e)}),"continue";o.selected=!!i(s,e)})()}},e.prototype.synchronizeValue=function(){for(var e=this,t=this.element.options,n=0,r=[],i=0,o=t.length;i<o;i++){var s=t.item(i);s.selected&&(r.push(s.hasOwnProperty("model")?s.model:s.value),n++)}if(this.element.multiple){if(Array.isArray(this.value)){var a=function(){for(var t=e.element.matcher||function(e,t){return e===t},n=0;n<e.value.length;)!function(){var i=e.value[n];-1===r.findIndex(function(e){return t(i,e)})?e.value.splice(n,1):n++}();n=0;for(;n<r.length;)!function(){var i=r[n];-1===e.value.findIndex(function(e){return t(i,e)})&&e.value.push(i),n++}();return{v:void 0}}();if("object"===(void 0===a?"undefined":Ne(a)))return a.v}}else r=0===n?null:r[0];r!==this.value&&(this.oldValue=this.value,this.value=r,this.notify())},e.prototype.notify=function(){var e=this.oldValue,t=this.value;this.callSubscribers(t,e)},e.prototype.handleEvent=function(){this.synchronizeValue()},e.prototype.subscribe=function(e,t){this.hasSubscribers()||(this.disposeHandler=this.handler.subscribe(this.element,this)),this.addSubscriber(e,t)},e.prototype.unsubscribe=function(e,t){this.removeSubscriber(e,t)&&!this.hasSubscribers()&&(this.disposeHandler(),this.disposeHandler=null)},e.prototype.bind=function(){var e=this;this.domObserver=n.DOM.createMutationObserver(function(){e.synchronizeOptions(),e.synchronizeValue()}),this.domObserver.observe(this.element,{childList:!0,subtree:!0})},e.prototype.unbind=function(){this.domObserver.disconnect(),this.domObserver=null,this.arrayObserver&&(this.arrayObserver.unsubscribe("SelectValueObserver:array",this),this.arrayObserver=null)},e}())||Me,or=e.ClassObserver=function(){function e(e){this.element=e,this.doNotCache=!0,this.value="",this.version=0}return e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(e){var t=this.nameIndex||{},n=this.version,r=void 0,i=void 0;if(null!==e&&void 0!==e&&e.length){r=e.split(/\s+/);for(var o=0,s=r.length;o<s;o++)""!==(i=r[o])&&(t[i]=n,this.element.classList.add(i))}if(this.value=e,this.nameIndex=t,this.version+=1,0!==n){n-=1;for(i in t)t.hasOwnProperty(i)&&t[i]===n&&this.element.classList.remove(i)}},e.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "class" property is not supported.')},e}(),sr=e.ComputedExpression=function(e){function t(t,n){var r=o(this,e.call(this));return r.name=t,r.dependencies=n,r.isAssignable=!0,r}return s(t,e),t.prototype.evaluate=function(e,t){return e.bindingContext[this.name]},t.prototype.assign=function(e,t){e.bindingContext[this.name]=t},
t.prototype.accept=function(e){throw new Error("not implemented")},t.prototype.connect=function(e,t){for(var n=this.dependencies,r=n.length;r--;)n[r].connect(e,t)},t}(ft),ar=void 0,ur=void 0,lr=void 0,cr=void 0;"undefined"==typeof FEATURE_NO_SVG&&function(){ar={a:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","target","transform","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],altGlyph:["class","dx","dy","externalResourcesRequired","format","glyphRef","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rotate","style","systemLanguage","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],altGlyphDef:["id","xml:base","xml:lang","xml:space"],altGlyphItem:["id","xml:base","xml:lang","xml:space"],animate:["accumulate","additive","attributeName","attributeType","begin","by","calcMode","dur","end","externalResourcesRequired","fill","from","id","keySplines","keyTimes","max","min","onbegin","onend","onload","onrepeat","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","systemLanguage","to","values","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],animateColor:["accumulate","additive","attributeName","attributeType","begin","by","calcMode","dur","end","externalResourcesRequired","fill","from","id","keySplines","keyTimes","max","min","onbegin","onend","onload","onrepeat","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","systemLanguage","to","values","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],animateMotion:["accumulate","additive","begin","by","calcMode","dur","end","externalResourcesRequired","fill","from","id","keyPoints","keySplines","keyTimes","max","min","onbegin","onend","onload","onrepeat","origin","path","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","rotate","systemLanguage","to","values","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],animateTransform:["accumulate","additive","attributeName","attributeType","begin","by","calcMode","dur","end","externalResourcesRequired","fill","from","id","keySplines","keyTimes","max","min","onbegin","onend","onload","onrepeat","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","systemLanguage","to","type","values","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],circle:["class","cx","cy","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","r","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],clipPath:["class","clipPathUnits","externalResourcesRequired","id","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],"color-profile":["id","local","name","rendering-intent","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],cursor:["externalResourcesRequired","id","requiredExtensions","requiredFeatures","systemLanguage","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],defs:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],desc:["class","id","style","xml:base","xml:lang","xml:space"],ellipse:["class","cx","cy","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rx","ry","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],feBlend:["class","height","id","in","in2","mode","result","style","width","x","xml:base","xml:lang","xml:space","y"],feColorMatrix:["class","height","id","in","result","style","type","values","width","x","xml:base","xml:lang","xml:space","y"],feComponentTransfer:["class","height","id","in","result","style","width","x","xml:base","xml:lang","xml:space","y"],feComposite:["class","height","id","in","in2","k1","k2","k3","k4","operator","result","style","width","x","xml:base","xml:lang","xml:space","y"],feConvolveMatrix:["bias","class","divisor","edgeMode","height","id","in","kernelMatrix","kernelUnitLength","order","preserveAlpha","result","style","targetX","targetY","width","x","xml:base","xml:lang","xml:space","y"],feDiffuseLighting:["class","diffuseConstant","height","id","in","kernelUnitLength","result","style","surfaceScale","width","x","xml:base","xml:lang","xml:space","y"],feDisplacementMap:["class","height","id","in","in2","result","scale","style","width","x","xChannelSelector","xml:base","xml:lang","xml:space","y","yChannelSelector"],feDistantLight:["azimuth","elevation","id","xml:base","xml:lang","xml:space"],feFlood:["class","height","id","result","style","width","x","xml:base","xml:lang","xml:space","y"],feFuncA:["amplitude","exponent","id","intercept","offset","slope","tableValues","type","xml:base","xml:lang","xml:space"],feFuncB:["amplitude","exponent","id","intercept","offset","slope","tableValues","type","xml:base","xml:lang","xml:space"],feFuncG:["amplitude","exponent","id","intercept","offset","slope","tableValues","type","xml:base","xml:lang","xml:space"],feFuncR:["amplitude","exponent","id","intercept","offset","slope","tableValues","type","xml:base","xml:lang","xml:space"],feGaussianBlur:["class","height","id","in","result","stdDeviation","style","width","x","xml:base","xml:lang","xml:space","y"],feImage:["class","externalResourcesRequired","height","id","preserveAspectRatio","result","style","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],feMerge:["class","height","id","result","style","width","x","xml:base","xml:lang","xml:space","y"],feMergeNode:["id","xml:base","xml:lang","xml:space"],feMorphology:["class","height","id","in","operator","radius","result","style","width","x","xml:base","xml:lang","xml:space","y"],feOffset:["class","dx","dy","height","id","in","result","style","width","x","xml:base","xml:lang","xml:space","y"],fePointLight:["id","x","xml:base","xml:lang","xml:space","y","z"],feSpecularLighting:["class","height","id","in","kernelUnitLength","result","specularConstant","specularExponent","style","surfaceScale","width","x","xml:base","xml:lang","xml:space","y"],feSpotLight:["id","limitingConeAngle","pointsAtX","pointsAtY","pointsAtZ","specularExponent","x","xml:base","xml:lang","xml:space","y","z"],feTile:["class","height","id","in","result","style","width","x","xml:base","xml:lang","xml:space","y"],feTurbulence:["baseFrequency","class","height","id","numOctaves","result","seed","stitchTiles","style","type","width","x","xml:base","xml:lang","xml:space","y"],filter:["class","externalResourcesRequired","filterRes","filterUnits","height","id","primitiveUnits","style","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],font:["class","externalResourcesRequired","horiz-adv-x","horiz-origin-x","horiz-origin-y","id","style","vert-adv-y","vert-origin-x","vert-origin-y","xml:base","xml:lang","xml:space"],"font-face":["accent-height","alphabetic","ascent","bbox","cap-height","descent","font-family","font-size","font-stretch","font-style","font-variant","font-weight","hanging","id","ideographic","mathematical","overline-position","overline-thickness","panose-1","slope","stemh","stemv","strikethrough-position","strikethrough-thickness","underline-position","underline-thickness","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","widths","x-height","xml:base","xml:lang","xml:space"],"font-face-format":["id","string","xml:base","xml:lang","xml:space"],"font-face-name":["id","name","xml:base","xml:lang","xml:space"],"font-face-src":["id","xml:base","xml:lang","xml:space"],"font-face-uri":["id","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],foreignObject:["class","externalResourcesRequired","height","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","width","x","xml:base","xml:lang","xml:space","y"],g:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],glyph:["arabic-form","class","d","glyph-name","horiz-adv-x","id","lang","orientation","style","unicode","vert-adv-y","vert-origin-x","vert-origin-y","xml:base","xml:lang","xml:space"],glyphRef:["class","dx","dy","format","glyphRef","id","style","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],hkern:["g1","g2","id","k","u1","u2","xml:base","xml:lang","xml:space"],image:["class","externalResourcesRequired","height","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","preserveAspectRatio","requiredExtensions","requiredFeatures","style","systemLanguage","transform","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],line:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","x1","x2","xml:base","xml:lang","xml:space","y1","y2"],linearGradient:["class","externalResourcesRequired","gradientTransform","gradientUnits","id","spreadMethod","style","x1","x2","xlink:arcrole","xlink:href","xlink:role","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y1","y2"],marker:["class","externalResourcesRequired","id","markerHeight","markerUnits","markerWidth","orient","preserveAspectRatio","refX","refY","style","viewBox","xml:base","xml:lang","xml:space"],mask:["class","externalResourcesRequired","height","id","maskContentUnits","maskUnits","requiredExtensions","requiredFeatures","style","systemLanguage","width","x","xml:base","xml:lang","xml:space","y"],metadata:["id","xml:base","xml:lang","xml:space"],"missing-glyph":["class","d","horiz-adv-x","id","style","vert-adv-y","vert-origin-x","vert-origin-y","xml:base","xml:lang","xml:space"],mpath:["externalResourcesRequired","id","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],path:["class","d","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","pathLength","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],pattern:["class","externalResourcesRequired","height","id","patternContentUnits","patternTransform","patternUnits","preserveAspectRatio","requiredExtensions","requiredFeatures","style","systemLanguage","viewBox","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],polygon:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","points","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],polyline:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","points","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],radialGradient:["class","cx","cy","externalResourcesRequired","fx","fy","gradientTransform","gradientUnits","id","r","spreadMethod","style","xlink:arcrole","xlink:href","xlink:role","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],rect:["class","externalResourcesRequired","height","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rx","ry","style","systemLanguage","transform","width","x","xml:base","xml:lang","xml:space","y"],script:["externalResourcesRequired","id","type","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],set:["attributeName","attributeType","begin","dur","end","externalResourcesRequired","fill","id","max","min","onbegin","onend","onload","onrepeat","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","systemLanguage","to","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],stop:["class","id","offset","style","xml:base","xml:lang","xml:space"],style:["id","media","title","type","xml:base","xml:lang","xml:space"],svg:["baseProfile","class","contentScriptType","contentStyleType","externalResourcesRequired","height","id","onabort","onactivate","onclick","onerror","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onresize","onscroll","onunload","onzoom","preserveAspectRatio","requiredExtensions","requiredFeatures","style","systemLanguage","version","viewBox","width","x","xml:base","xml:lang","xml:space","y","zoomAndPan"],switch:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],symbol:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","preserveAspectRatio","style","viewBox","xml:base","xml:lang","xml:space"],text:["class","dx","dy","externalResourcesRequired","id","lengthAdjust","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rotate","style","systemLanguage","textLength","transform","x","xml:base","xml:lang","xml:space","y"],textPath:["class","externalResourcesRequired","id","lengthAdjust","method","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","spacing","startOffset","style","systemLanguage","textLength","xlink:arcrole","xlink:href","xlink:role","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],title:["class","id","style","xml:base","xml:lang","xml:space"],tref:["class","dx","dy","externalResourcesRequired","id","lengthAdjust","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rotate","style","systemLanguage","textLength","x","xlink:arcrole","xlink:href","xlink:role","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],tspan:["class","dx","dy","externalResourcesRequired","id","lengthAdjust","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rotate","style","systemLanguage","textLength","x","xml:base","xml:lang","xml:space","y"],use:["class","externalResourcesRequired","height","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],view:["externalResourcesRequired","id","preserveAspectRatio","viewBox","viewTarget","xml:base","xml:lang","xml:space","zoomAndPan"],vkern:["g1","g2","id","k","u1","u2","xml:base","xml:lang","xml:space"]},ur={a:!0,altGlyph:!0,animate:!0,animateColor:!0,circle:!0,clipPath:!0,defs:!0,ellipse:!0,feBlend:!0,feColorMatrix:!0,feComponentTransfer:!0,feComposite:!0,feConvolveMatrix:!0,feDiffuseLighting:!0,feDisplacementMap:!0,feFlood:!0,feGaussianBlur:!0,feImage:!0,feMerge:!0,feMorphology:!0,feOffset:!0,feSpecularLighting:!0,feTile:!0,feTurbulence:!0,filter:!0,font:!0,foreignObject:!0,g:!0,glyph:!0,glyphRef:!0,image:!0,line:!0,linearGradient:!0,marker:!0,mask:!0,"missing-glyph":!0,path:!0,pattern:!0,polygon:!0,polyline:!0,radialGradient:!0,rect:!0,stop:!0,svg:!0,switch:!0,symbol:!0,text:!0,textPath:!0,tref:!0,tspan:!0,use:!0},lr={"alignment-baseline":!0,"baseline-shift":!0,"clip-path":!0,"clip-rule":!0,clip:!0,"color-interpolation-filters":!0,"color-interpolation":!0,"color-profile":!0,"color-rendering":!0,color:!0,cursor:!0,direction:!0,display:!0,"dominant-baseline":!0,"enable-background":!0,"fill-opacity":!0,"fill-rule":!0,fill:!0,filter:!0,"flood-color":!0,"flood-opacity":!0,"font-family":!0,"font-size-adjust":!0,"font-size":!0,"font-stretch":!0,"font-style":!0,"font-variant":!0,"font-weight":!0,"glyph-orientation-horizontal":!0,"glyph-orientation-vertical":!0,"image-rendering":!0,kerning:!0,"letter-spacing":!0,"lighting-color":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,mask:!0,opacity:!0,overflow:!0,"pointer-events":!0,"shape-rendering":!0,"stop-color":!0,"stop-opacity":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-miterlimit":!0,"stroke-opacity":!0,"stroke-width":!0,stroke:!0,"text-anchor":!0,"text-decoration":!0,"text-rendering":!0,"unicode-bidi":!0,visibility:!0,"word-spacing":!0,"writing-mode":!0};var e=function(e){var t=n.DOM.createElement("div");return t.innerHTML=e,t.firstChild};cr=function(){function t(){"altglyph"===e("<svg><altGlyph /></svg>").firstElementChild.nodeName&&hr.altGlyph&&(hr.altglyph=hr.altGlyph,delete hr.altGlyph,hr.altglyphdef=hr.altGlyphDef,delete hr.altGlyphDef,hr.altglyphitem=hr.altGlyphItem,delete hr.altGlyphItem,hr.glyphref=hr.glyphRef,delete hr.glyphRef)}return t.prototype.isStandardSvgAttribute=function(e,t){return pr[e]&&fr[t]||hr[e]&&-1!==hr[e].indexOf(t)},t}()}();var hr=e.elements=ar,pr=e.presentationElements=ur,fr=e.presentationAttributes=lr,dr=e.SVGAnalyzer=cr||function(){function e(){}return e.prototype.isStandardSvgAttribute=function(){return!1},e}(),vr=e.ObserverLocator=(Fe=Le=function(){function e(e,t,n,r,i){this.taskQueue=e,this.eventManager=t,this.dirtyChecker=n,this.svgAnalyzer=r,this.parser=i,this.adapters=[],this.logger=je.getLogger("observer-locator")}return e.prototype.getObserver=function(e,t){var n=e.__observers__,r=void 0;return n&&t in n?n[t]:(r=this.createPropertyObserver(e,t),r.doNotCache||(void 0===n&&(n=this.getOrCreateObserversLookup(e)),n[t]=r),r)},e.prototype.getOrCreateObserversLookup=function(e){return e.__observers__||this.createObserversLookup(e)},e.prototype.createObserversLookup=function(e){var t={};return Reflect.defineProperty(e,"__observers__",{enumerable:!1,configurable:!1,writable:!1,value:t})||this.logger.warn("Cannot add observers to object",e),t},e.prototype.addAdapter=function(e){this.adapters.push(e)},e.prototype.getAdapterObserver=function(e,t,n){for(var r=0,i=this.adapters.length;r<i;r++){var o=this.adapters[r],s=o.getObserver(e,t,n);if(s)return s}return null},e.prototype.createPropertyObserver=function(e,t){var r=void 0,i=void 0,o=void 0;if(!(e instanceof Object))return new Xn(e,t);if(e instanceof n.DOM.Element){if("class"===t)return new or(e);if("style"===t||"css"===t)return new tr(e,t);if(i=this.eventManager.getElementHandler(e,t),"value"===t&&"select"===e.tagName.toLowerCase())return new ir(e,i,this);if("checked"===t&&"input"===e.tagName.toLowerCase())return new rr(e,i,this);if(i)return new nr(e,t,i);if(o=/^xlink:(.+)$/.exec(t))return new Kn(e,t,o[1]);if("role"===t&&(e instanceof n.DOM.Element||e instanceof n.DOM.SVGElement)||/^\w+:|^data-|^aria-/.test(t)||e instanceof n.DOM.SVGElement&&this.svgAnalyzer.isStandardSvgAttribute(e.nodeName,t))return new er(e,t)}if(r=Object.getPropertyDescriptor(e,t),ne(r))return oe(e,t,r,this);if(r){var s=r.get||r.set;if(s){if(s.getObserver)return s.getObserver(e);var a=this.getAdapterObserver(e,t,r);return a||new Qn(this.dirtyChecker,e,t)}}return e instanceof Array?"length"===t?this.getArrayObserver(e).getLengthObserver():new Qn(this.dirtyChecker,e,t):e instanceof Map?"size"===t?this.getMapObserver(e).getLengthObserver():new Qn(this.dirtyChecker,e,t):e instanceof Set?"size"===t?this.getSetObserver(e).getLengthObserver():new Qn(this.dirtyChecker,e,t):new Zn(this.taskQueue,e,t)},e.prototype.getAccessor=function(e,t){if(e instanceof n.DOM.Element){if("class"===t||"style"===t||"css"===t||"value"===t&&("input"===e.tagName.toLowerCase()||"select"===e.tagName.toLowerCase())||"checked"===t&&"input"===e.tagName.toLowerCase()||"model"===t&&"input"===e.tagName.toLowerCase()||/^xlink:.+$/.exec(t))return this.getObserver(e,t);if(/^\w+:|^data-|^aria-/.test(t)||e instanceof n.DOM.SVGElement&&this.svgAnalyzer.isStandardSvgAttribute(e.nodeName,t)||"img"===e.tagName.toLowerCase()&&"src"===t||"a"===e.tagName.toLowerCase()&&"href"===t)return Jn}return Gn},e.prototype.getArrayObserver=function(e){return D(this.taskQueue,e)},e.prototype.getMapObserver=function(e){return X(this.taskQueue,e)},e.prototype.getSetObserver=function(e){return le(this.taskQueue,e)},e}(),Le.inject=[r.TaskQueue,Hn,Yn,dr,Nn],Fe),mr=(e.ObjectObservationAdapter=function(){function e(){}return e.prototype.getObserver=function(e,t,n){throw new Error("BindingAdapters must implement getObserver(object, propertyName).")},e}(),e.BindingExpression=function(){function e(e,t,n,r,i,o){this.observerLocator=e,this.targetProperty=t,this.sourceExpression=n,this.mode=r,this.lookupFunctions=i,this.attribute=o,this.discrete=!1}return e.prototype.createBinding=function(e){return new yr(this.observerLocator,this.sourceExpression,e,this.targetProperty,this.mode,this.lookupFunctions)},e}()),yr=e.Binding=(Te=v())(Re=function(){function e(e,t,n,r,i,o){this.observerLocator=e,this.sourceExpression=t,this.target=n,this.targetProperty=r,this.mode=i,this.lookupFunctions=o}return e.prototype.updateTarget=function(e){this.targetObserver.setValue(e,this.target,this.targetProperty)},e.prototype.updateSource=function(e){this.sourceExpression.assign(this.source,e,this.lookupFunctions)},e.prototype.call=function(e,t,n){if(this.isBound){if(e===qe)return n=this.targetObserver.getValue(this.target,this.targetProperty),t=this.sourceExpression.evaluate(this.source,this.lookupFunctions),t!==n&&this.updateTarget(t),void(this.mode!==Pt.oneTime&&(this._version++,this.sourceExpression.connect(this,this.source),this.unobserve(!1)));if(e===$e)return void(t!==this.sourceExpression.evaluate(this.source,this.lookupFunctions)&&this.updateSource(t));throw new Error("Unexpected call context "+e)}},e.prototype.bind=function(e){if(this.isBound){if(this.source===e)return;this.unbind()}this.isBound=!0,this.source=e,this.sourceExpression.bind&&this.sourceExpression.bind(this,e,this.lookupFunctions);var t=this.mode;if(!this.targetObserver){var n=t===Pt.twoWay||t===Pt.fromView?"getObserver":"getAccessor";this.targetObserver=this.observerLocator[n](this.target,this.targetProperty)}if("bind"in this.targetObserver&&this.targetObserver.bind(),this.mode!==Pt.fromView){var r=this.sourceExpression.evaluate(e,this.lookupFunctions);this.updateTarget(r)}t===Pt.toView?y(this):t===Pt.twoWay?(this.sourceExpression.connect(this,e),this.targetObserver.subscribe($e,this)):t===Pt.fromView&&this.targetObserver.subscribe($e,this)},e.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,"unbind"in this.targetObserver&&this.targetObserver.unbind(),this.targetObserver.unsubscribe&&this.targetObserver.unsubscribe($e,this),this.unobserve(!0))},e.prototype.connect=function(e){if(this.isBound){if(e){var t=this.sourceExpression.evaluate(this.source,this.lookupFunctions);this.updateTarget(t)}this.sourceExpression.connect(this,this.source)}},e}())||Re,gr=(e.CallExpression=function(){function e(e,t,n,r){this.observerLocator=e,this.targetProperty=t,this.sourceExpression=n,this.lookupFunctions=r}return e.prototype.createBinding=function(e){return new gr(this.observerLocator,this.sourceExpression,e,this.targetProperty,this.lookupFunctions)},e}(),e.Call=function(){function e(e,t,n,r,i){this.sourceExpression=t,this.target=n,this.targetProperty=e.getObserver(n,r),this.lookupFunctions=i}return e.prototype.callSource=function(e){var t=this.source.overrideContext;Object.assign(t,e),t.$event=e;var n=this.sourceExpression.evaluate(this.source,this.lookupFunctions,!0);delete t.$event;for(var r in e)delete t[r];return n},e.prototype.bind=function(e){var t=this;if(this.isBound){if(this.source===e)return;this.unbind()}this.isBound=!0,this.source=e,this.sourceExpression.bind&&this.sourceExpression.bind(this,e,this.lookupFunctions),this.targetProperty.setValue(function(e){return t.callSource(e)})},e.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,this.targetProperty.setValue(null))},e}()),br=e.ValueConverterResource=function(){function e(e){this.name=e}return e.convention=function(t){if(t.endsWith("ValueConverter"))return new e(a(t.substring(0,t.length-14)))},e.prototype.initialize=function(e,t){this.instance=e.get(t)},e.prototype.register=function(e,t){e.registerValueConverter(t||this.name,this.instance)},e.prototype.load=function(e,t){},e}(),xr=e.BindingBehaviorResource=function(){function e(e){this.name=e}return e.convention=function(t){if(t.endsWith("BindingBehavior"))return new e(a(t.substring(0,t.length-15)))},e.prototype.initialize=function(e,t){this.instance=e.get(t)},e.prototype.register=function(e,t){e.registerBindingBehavior(t||this.name,this.instance)},e.prototype.load=function(e,t){},e}(),wr=(e.ListenerExpression=function(){function e(e,t,n,r,i,o){this.eventManager=e,this.targetEvent=t,this.sourceExpression=n,this.delegationStrategy=r,this.discrete=!0,this.preventDefault=i,this.lookupFunctions=o}return e.prototype.createBinding=function(e){return new wr(this.eventManager,this.targetEvent,this.delegationStrategy,this.sourceExpression,e,this.preventDefault,this.lookupFunctions)},e}(),e.Listener=function(){function e(e,t,n,r,i,o,s){this.eventManager=e,this.targetEvent=t,this.delegationStrategy=n,this.sourceExpression=r,this.target=i,this.preventDefault=o,this.lookupFunctions=s}return e.prototype.callSource=function(e){var t=this.source.overrideContext;t.$event=e;var n=this.sourceExpression.evaluate(this.source,this.lookupFunctions,!0);return delete t.$event,!0!==n&&this.preventDefault&&e.preventDefault(),n},e.prototype.handleEvent=function(e){this.callSource(e)},e.prototype.bind=function(e){if(this.isBound){if(this.source===e)return;this.unbind()}this.isBound=!0,this.source=e,this.sourceExpression.bind&&this.sourceExpression.bind(this,e,this.lookupFunctions),this._disposeListener=this.eventManager.addEventListener(this.target,this.targetEvent,this,this.delegationStrategy)},e.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,this._disposeListener(),this._disposeListener=null)},e}()),kr=(e.NameExpression=function(){function e(e,t,n){this.sourceExpression=e,this.apiName=t,this.lookupFunctions=n,this.discrete=!0}return e.prototype.createBinding=function(t){return new kr(this.sourceExpression,e.locateAPI(t,this.apiName),this.lookupFunctions)},e.locateAPI=function(e,t){switch(t){case"element":return e;case"controller":return ue(e).controller;case"view-model":return ue(e).controller.viewModel;case"view":return ue(e).controller.view;default:var n=ue(e)[t];if(void 0===n)throw new Error('Attempted to reference "'+t+"\", but it was not found amongst the target's API.");return n.viewModel}},e}(),function(){function e(e,t,n){this.sourceExpression=e,this.target=t,this.lookupFunctions=n}return e.prototype.bind=function(e){if(this.isBound){if(this.source===e)return;this.unbind()}this.isBound=!0,this.source=e,this.sourceExpression.bind&&this.sourceExpression.bind(this,e,this.lookupFunctions),this.sourceExpression.assign(this.source,this.target,this.lookupFunctions)},e.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.evaluate(this.source,this.lookupFunctions)===this.target&&this.sourceExpression.assign(this.source,null,this.lookupFunctions),this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null)},e}()),Er={bindingBehaviors:function(e){return null},valueConverters:function(e){return null}},_r=(e.BindingEngine=(De=Pe=function(){function e(e,t){this.observerLocator=e,this.parser=t}return e.prototype.createBindingExpression=function(e,t){var n=arguments.length<=2||void 0===arguments[2]?Pt.toView:arguments[2],r=arguments.length<=3||void 0===arguments[3]?Er:arguments[3];return new mr(this.observerLocator,e,this.parser.parse(t),n,r)},e.prototype.propertyObserver=function(e,t){var n=this;return{subscribe:function(r){var i=n.observerLocator.getObserver(e,t);return i.subscribe(r),{dispose:function(){return i.unsubscribe(r)}}}}},e.prototype.collectionObserver=function(e){var t=this;return{subscribe:function(n){var r=void 0;if(e instanceof Array)r=t.observerLocator.getArrayObserver(e);else if(e instanceof Map)r=t.observerLocator.getMapObserver(e);else{if(!(e instanceof Set))throw new Error("collection must be an instance of Array, Map or Set.");r=t.observerLocator.getSetObserver(e)}return r.subscribe(n),{dispose:function(){return r.unsubscribe(n)}}}}},e.prototype.expressionObserver=function(e,t){var n={bindingContext:e,overrideContext:u(e)};return new tt(n,this.parser.parse(t),this.observerLocator,Er)},e.prototype.parseExpression=function(e){return this.parser.parse(e)},e.prototype.registerAdapter=function(e){this.observerLocator.addAdapter(e)},e}(),Pe.inject=[vr,Nn],De),Set.prototype);e.getSetObserver=le;var Or=function(e){function t(t,n){return o(this,e.call(this,t,n))}return s(t,e),t.for=function(e,n){return"__set_observer__"in n||Reflect.defineProperty(n,"__set_observer__",{value:t.create(e,n),enumerable:!1,configurable:!1}),n.__set_observer__},t.create=function(e,n){var r=new t(e,n),i=_r;return i.add===n.add&&i.delete===n.delete&&i.clear===n.clear||(i={
add:n.add,delete:n.delete,clear:n.clear}),n.add=function(){var e=n.size,t=i.add.apply(n,arguments);return n.size===e||r.addChangeRecord({type:"add",object:n,value:Array.from(n).pop()}),t},n.delete=function(){var e=n.has(arguments[0]),t=i.delete.apply(n,arguments);return e&&r.addChangeRecord({type:"delete",object:n,value:arguments[0]}),t},n.clear=function(){var e=i.clear.apply(n,arguments);return r.addChangeRecord({type:"clear",object:n}),e},r},t}(rt),Sr={}}),define("aurelia-loader",["exports","aurelia-path","aurelia-metadata"],function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=e.TemplateRegistryEntry=e.TemplateDependency=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=e.TemplateDependency=function(e,t){this.src=e,this.name=t},o=e.TemplateRegistryEntry=function(){function e(e){this.templateIsLoaded=!1,this.factoryIsReady=!1,this.resources=null,this.dependencies=null,this.address=e,this.onReady=null,this._template=null,this._factory=null}return e.prototype.addDependency=function(e,r){var o="string"==typeof e?(0,t.relativeToFile)(e,this.address):n.Origin.get(e).moduleId;this.dependencies.push(new i(o,r))},r(e,[{key:"template",get:function(){return this._template},set:function(e){var n=this.address,r=void 0,o=void 0,s=void 0,a=void 0;this._template=e,this.templateIsLoaded=!0,r=e.content.querySelectorAll("require"),a=this.dependencies=new Array(r.length);for(var u=0,l=r.length;u<l;++u){if(o=r[u],!(s=o.getAttribute("from")))throw new Error("<require> element in "+n+' has no "from" attribute.');a[u]=new i((0,t.relativeToFile)(s,n),o.getAttribute("as")),o.parentNode&&o.parentNode.removeChild(o)}}},{key:"factory",get:function(){return this._factory},set:function(e){this._factory=e,this.factoryIsReady=!0}}]),e}();e.Loader=function(){function e(){this.templateRegistry={}}return e.prototype.map=function(e,t){throw new Error("Loaders must implement map(id, source).")},e.prototype.normalizeSync=function(e,t){throw new Error("Loaders must implement normalizeSync(moduleId, relativeTo).")},e.prototype.normalize=function(e,t){throw new Error("Loaders must implement normalize(moduleId: string, relativeTo: string): Promise<string>.")},e.prototype.loadModule=function(e){throw new Error("Loaders must implement loadModule(id).")},e.prototype.loadAllModules=function(e){throw new Error("Loader must implement loadAllModules(ids).")},e.prototype.loadTemplate=function(e){throw new Error("Loader must implement loadTemplate(url).")},e.prototype.loadText=function(e){throw new Error("Loader must implement loadText(url).")},e.prototype.applyPluginToUrl=function(e,t){throw new Error("Loader must implement applyPluginToUrl(url, pluginName).")},e.prototype.addPlugin=function(e,t){throw new Error("Loader must implement addPlugin(pluginName, implementation).")},e.prototype.getOrCreateTemplateRegistryEntry=function(e){return this.templateRegistry[e]||(this.templateRegistry[e]=new o(e))},e}()}),define("aurelia-loader-default",["exports","aurelia-loader","aurelia-pal","aurelia-metadata"],function(e,t,n,r){"use strict";function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=e,i=void 0,o=void 0;n.__useDefault&&(n=n.default),r.Origin.set(n,new r.Origin(t,"default"));for(i in n)"function"==typeof(o=n[i])&&r.Origin.set(o,new r.Origin(t,i));return e}Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultLoader=e.TextTemplateLoader=void 0;var a=e.TextTemplateLoader=function(){function e(){}return e.prototype.loadTemplate=function(e,t){return e.loadText(t.address).then(function(e){t.template=n.DOM.createTemplateFromMarkup(e)})},e}(),u=e.DefaultLoader=function(e){function t(){var t=i(this,e.call(this));t.textPluginName="text",t.moduleRegistry=Object.create(null),t.useTemplateLoader(new a);var n=t;return t.addPlugin("template-registry-entry",{fetch:function(e){var t=n.getOrCreateTemplateRegistryEntry(e);return t.templateIsLoaded?t:n.templateLoader.loadTemplate(n,t).then(function(e){return t})}}),t}return o(t,e),t.prototype.useTemplateLoader=function(e){this.templateLoader=e},t.prototype.loadAllModules=function(e){for(var t=[],n=0,r=e.length;n<r;++n)t.push(this.loadModule(e[n]));return Promise.all(t)},t.prototype.loadTemplate=function(e){return this._import(this.applyPluginToUrl(e,"template-registry-entry"))},t.prototype.loadText=function(e){return this._import(this.applyPluginToUrl(e,this.textPluginName)).then(function(e){return"string"==typeof e?e:e.default})},t}(t.Loader);n.PLATFORM.Loader=u,n.PLATFORM.global.System&&n.PLATFORM.global.System.import?(n.PLATFORM.eachModule=function(e){if(System.registry)for(var t=Array.from(System.registry.keys()),n=0;n<t.length;n++)try{var r=t[n];if(e(r,System.registry.get(r)))return}catch(e){}else{var i=System._loader.modules;for(var o in i)try{if(e(o,i[o].module))return}catch(e){}}},System.set("text",System.newModule({translate:function(e){return'module.exports = "'+e.source.replace(/(["\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")+'";'}})),u.prototype._import=function(e){return System.import(e)},u.prototype.loadModule=function(e){var t=this;return System.normalize(e).then(function(e){var n=t.moduleRegistry[e];return void 0!==n?Promise.resolve(n):System.import(e).then(function(n){return t.moduleRegistry[e]=n,s(n,e)})})},u.prototype.map=function(e,t){var n;System.config({map:(n={},n[e]=t,n)})},u.prototype.normalizeSync=function(e,t){return System.normalizeSync(e,t)},u.prototype.normalize=function(e,t){return System.normalize(e,t)},u.prototype.applyPluginToUrl=function(e,t){return e+"!"+t},u.prototype.addPlugin=function(e,t){System.set(e,System.newModule({fetch:function(e,n){var r=t.fetch(e.address);return Promise.resolve(r).then(function(t){return e.metadata.result=t,""})},instantiate:function(e){return e.metadata.result}}))}):(n.PLATFORM.global.requirejs&&requirejs.s&&requirejs.s.contexts&&requirejs.s.contexts._&&requirejs.s.contexts._.defined?n.PLATFORM.eachModule=function(e){var t=requirejs.s.contexts._.defined;for(var n in t)try{if(e(n,t[n]))return}catch(e){}}:n.PLATFORM.eachModule=function(e){},u.prototype._import=function(e){return new Promise(function(t,n){require([e],t,n)})},u.prototype.loadModule=function(e){var t=this,n=this.moduleRegistry[e];return void 0!==n?Promise.resolve(n):new Promise(function(n,r){require([e],function(r){t.moduleRegistry[e]=r,n(s(r,e))},r)})},u.prototype.map=function(e,t){},u.prototype.normalize=function(e,t){return Promise.resolve(e)},u.prototype.normalizeSync=function(e,t){return e},u.prototype.applyPluginToUrl=function(e,t){return t+"!"+e},u.prototype.addPlugin=function(e,t){define(e,[],{load:function(e,n,r){var i=t.fetch(e);Promise.resolve(i).then(r)}})})}),define("aurelia-logging",["exports"],function(e){"use strict";function t(){return[this].concat(Array.prototype.slice.call(arguments))}function n(e){var n=l[e];return function(){if(!(this.level<n))for(var r=t.apply(this,arguments),i=h.length;i--;){var o;(o=h[i])[e].apply(o,r)}}}function r(){var e=f.prototype;e.debug=n("debug"),e.info=n("info"),e.warn=n("warn"),e.error=n("error")}function i(e){return c[e]||new f(e)}function o(e){1===h.push(e)&&r()}function s(e){h=h.filter(function(t){return t!==e})}function a(e){p=e;for(var t in c)c[t].setLevel(e)}function u(){return p}Object.defineProperty(e,"__esModule",{value:!0}),e.getLogger=i,e.addAppender=o,e.removeAppender=s,e.setLevel=a,e.getLevel=u;var l=e.logLevel={none:0,error:1,warn:2,info:3,debug:4},c={},h=[],p=l.none,f=e.Logger=function(){function e(e){var t=c[e];if(t)return t;c[e]=this,this.id=e,this.level=p}return e.prototype.debug=function(e){},e.prototype.info=function(e){},e.prototype.warn=function(e){},e.prototype.error=function(e){},e.prototype.setLevel=function(e){this.level=e},e}()}),define("aurelia-pal",["exports"],function(e){"use strict";function t(e,t,n){if(t){if(t.innerError&&n)return t;var r="\n------------------------------------------------\n";e+=r+"Inner Error:\n","string"==typeof t?e+="Message: "+t:(t.message?e+="Message: "+t.message:e+="Unknown Inner Error Type. Displaying Inner Error as JSON:\n "+JSON.stringify(t,null,"  "),t.stack&&(e+="\nInner Error Stack:\n"+t.stack,e+="\nEnd Inner Error Stack")),e+=r}var i=new Error(e);return t&&(i.innerError=t),i}function n(t){a||(e.isInitialized=a=!0,"function"!=typeof Object.getPropertyDescriptor&&(Object.getPropertyDescriptor=function(e,t){for(var n=Object.getOwnPropertyDescriptor(e,t),r=Object.getPrototypeOf(e);void 0===n&&null!==r;)n=Object.getOwnPropertyDescriptor(r,t),r=Object.getPrototypeOf(r);return n}),t(o,i,s))}function r(){e.isInitialized=a=!1}Object.defineProperty(e,"__esModule",{value:!0}),e.AggregateError=t,e.initializePAL=n,e.reset=r;var i=e.FEATURE={},o=e.PLATFORM={noop:function(){},eachModule:function(){},moduleName:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return e})};o.global=function(){return"undefined"!=typeof self?self:"undefined"!=typeof global?global:new Function("return this")()}();var s=e.DOM={},a=e.isInitialized=!1}),define("aurelia-pal-browser",["exports","aurelia-pal"],function(e,t){"use strict";function n(){t.isInitialized||(0,t.initializePAL)(function(e,t,n){Object.assign(e,i),Object.assign(t,l),Object.assign(n,h),Object.defineProperty(n,"title",{get:function(){return document.title},set:function(e){document.title=e}}),Object.defineProperty(n,"activeElement",{get:function(){return document.activeElement}}),Object.defineProperty(e,"XMLHttpRequest",{get:function(){return e.global.XMLHttpRequest}})})}Object.defineProperty(e,"__esModule",{value:!0}),e._DOM=e._FEATURE=e._PLATFORM=void 0,e.initialize=n;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=e._PLATFORM={location:window.location,history:window.history,addEventListener:function(e,t,n){this.global.addEventListener(e,t,n)},removeEventListener:function(e,t,n){this.global.removeEventListener(e,t,n)},performance:window.performance,requestAnimationFrame:function(e){return this.global.requestAnimationFrame(e)}};if("undefined"==typeof FEATURE_NO_IE){void 0===function(){}.name&&Object.defineProperty(Function.prototype,"name",{get:function(){var e=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:e}),e}})}if("undefined"==typeof FEATURE_NO_IE)if("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))){var o=document.createElement("_");if(o.classList.add("c1","c2"),!o.classList.contains("c2")){var s=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){for(var n=0,r=arguments.length;n<r;++n)e=arguments[n],t.call(this,e)}};s("add"),s("remove")}o.classList.toggle("c3",!1),o.classList.contains("c3")&&function(){var e=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,n){return 1 in arguments&&!this.contains(t)==!n?n:e.call(this,t)}}(),o=null}else!function(){var e=String.prototype.trim,t=Array.prototype.indexOf,n=[],r=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},i=function(e,n){if(""===n)throw new r("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(n))throw new r("INVALID_CHARACTER_ERR","String contains an invalid character");return t.call(e,n)},o=function(t){for(var r=e.call(t.getAttribute("class")||""),i=r?r.split(/\s+/):n,o=0,s=i.length;o<s;++o)this.push(i[o]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},s=o.prototype=[];r.prototype=Error.prototype,s.item=function(e){return this[e]||null},s.contains=function(e){return e+="",-1!==i(this,e)},s.add=function(){var e=arguments,t=0,n=e.length,r=void 0,o=!1;do{r=e[t]+"",-1===i(this,r)&&(this.push(r),o=!0)}while(++t<n);o&&this._updateClassName()},s.remove=function(){var e=arguments,t=0,n=e.length,r=void 0,o=!1,s=void 0;do{for(r=e[t]+"",s=i(this,r);-1!==s;)this.splice(s,1),o=!0,s=i(this,r)}while(++t<n);o&&this._updateClassName()},s.toggle=function(e,t){e+="";var n=this.contains(e),r=n?!0!==t&&"remove":!1!==t&&"add";return r&&this[r](e),!0===t||!1===t?t:!n},s.toString=function(){return this.join(" ")},Object.defineProperty(Element.prototype,"classList",{get:function(){return new o(this)},enumerable:!0,configurable:!0})}();if("undefined"==typeof FEATURE_NO_IE&&("performance"in window==!1&&(window.performance={}),"now"in window.performance==!1&&function(){var e=Date.now();performance.timing&&performance.timing.navigationStart&&(e=performance.timing.navigationStart),window.performance.now=function(){return Date.now()-e}}(),i.performance=window.performance),"undefined"==typeof FEATURE_NO_IE&&function(){var e=window.console=window.console||{},t=function(){};e.memory||(e.memory={}),"assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",").forEach(function(n){e[n]||(e[n]=t)}),"object"===r(e.log)&&"log,info,warn,error,assert,dir,clear,profile,profileEnd".split(",").forEach(function(e){console[e]=this.bind(console[e],console)},Function.prototype.call)}(),"undefined"==typeof FEATURE_NO_IE&&(!window.CustomEvent||"function"!=typeof window.CustomEvent)){var a=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};a.prototype=window.Event.prototype,window.CustomEvent=a}if(Element&&!Element.prototype.matches){var u=Element.prototype;u.matches=u.matchesSelector||u.mozMatchesSelector||u.msMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector}var l=e._FEATURE={shadowDOM:!!HTMLElement.prototype.attachShadow,scopedCSS:"scoped"in document.createElement("style"),htmlTemplateElement:"content"in document.createElement("template"),mutationObserver:!(!window.MutationObserver&&!window.WebKitMutationObserver),ensureHTMLTemplateElement:function(e){return e}};"undefined"==typeof FEATURE_NO_IE&&function(){var e=function(e){return"template"===e.tagName&&"http://www.w3.org/2000/svg"===e.namespaceURI},t=function(e){var t=e.ownerDocument.createElement("template"),r=e.attributes,i=r.length,o=void 0;for(e.parentNode.insertBefore(t,e);i-- >0;)o=r[i],t.setAttribute(o.name,o.value),e.removeAttribute(o.name);return e.parentNode.removeChild(e),n(t)},n=function(e){for(var t=e.content=document.createDocumentFragment(),n=void 0;n=e.firstChild;)t.appendChild(n);return e},r=function(r){for(var i=n(r).content,o=i.querySelectorAll("template"),s=0,a=o.length;s<a;++s){var u=o[s];e(u)?t(u):n(u)}return r};l.htmlTemplateElement||(l.ensureHTMLTemplateElement=r)}();var c=window.ShadowDOMPolyfill||null,h=e._DOM={Element:Element,SVGElement:SVGElement,boundary:"aurelia-dom-boundary",addEventListener:function(e,t,n){document.addEventListener(e,t,n)},removeEventListener:function(e,t,n){document.removeEventListener(e,t,n)},adoptNode:function(e){return document.adoptNode(e,!0)},createAttribute:function(e){return document.createAttribute(e)},createElement:function(e){return document.createElement(e)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},createDocumentFragment:function(){return document.createDocumentFragment()},createTemplateElement:function(){var e=document.createElement("template");return l.ensureHTMLTemplateElement(e)},createMutationObserver:function(e){return new(window.MutationObserver||window.WebKitMutationObserver)(e)},createCustomEvent:function(e,t){return new window.CustomEvent(e,t)},dispatchEvent:function(e){document.dispatchEvent(e)},getComputedStyle:function(e){return window.getComputedStyle(e)},getElementById:function(e){return document.getElementById(e)},querySelectorAll:function(e){return document.querySelectorAll(e)},nextElementSibling:function(e){if(e.nextElementSibling)return e.nextElementSibling;do{e=e.nextSibling}while(e&&1!==e.nodeType);return e},createTemplateFromMarkup:function(e){var t=document.createElement("div");t.innerHTML=e;var n=t.firstElementChild;if(!n||"TEMPLATE"!==n.nodeName)throw new Error("Template markup must be wrapped in a <template> element e.g. <template> \x3c!-- markup here --\x3e </template>");return l.ensureHTMLTemplateElement(n)},appendNode:function(e,t){(t||document.body).appendChild(e)},replaceNode:function(e,t,n){t.parentNode?t.parentNode.replaceChild(e,t):null!==c?c.unwrap(n).replaceChild(c.unwrap(e),c.unwrap(t)):n.replaceChild(e,t)},removeNode:function(e,t){e.parentNode?e.parentNode.removeChild(e):t&&(null!==c?c.unwrap(t).removeChild(c.unwrap(e)):t.removeChild(e))},injectStyles:function(e,t,n){var r=document.createElement("style");return r.innerHTML=e,r.type="text/css",t=t||document.head,n&&t.childNodes.length>0?t.insertBefore(r,t.childNodes[0]):t.appendChild(r),r}}}),define("aurelia-polyfills",["aurelia-pal"],function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};"undefined"==typeof FEATURE_NO_ES2015&&(function(n,r){if(!(r in n)){var i,o=e.PLATFORM.global,s=0,a=""+Math.random(),u="__symbol:",l=u.length,c="__symbol@@"+a,h="defineProperty",p="defineProperties",f="getOwnPropertyNames",d="getOwnPropertyDescriptor",v="propertyIsEnumerable",m=n[f],y=n[d],g=n.create,b=n.keys,x=n[h],w=n[p],k=y(n,f),E=n.prototype,_=E.hasOwnProperty,O=E[v],S=E.toString,C=(Array.prototype.indexOf,function(e,t,n){_.call(e,c)||x(e,c,{enumerable:!1,configurable:!1,writable:!1,value:{}}),e[c]["@@"+t]=n}),A=function(e,n){var r=g(e);return null!==n&&"object"===(void 0===n?"undefined":t(n))&&m(n).forEach(function(e){R.call(n,e)&&$(r,e,n[e])}),r},M=function(e){var t=g(e);return t.enumerable=!1,t},L=function(){},F=function(e){return e!=c&&!_.call(j,e)},T=function(e){return e!=c&&_.call(j,e)},R=function(e){var t=""+e;return T(t)?_.call(this,t)&&this[c]&&this[c]["@@"+t]:O.call(this,e)},P=function(e){return x(E,e,{enumerable:!1,configurable:!0,get:L,set:function(t){i(this,e,{enumerable:!1,configurable:!0,writable:!0,value:t}),C(this,e,!0)}}),j[e]=x(n(e),"constructor",N)},D=function(e){if(this&&this!==o)throw new TypeError("Symbol is not a constructor");return P(u.concat(e||"",a,++s))},j=g(null),N={value:D},z=function(e){return j[e]},$=function(e,t,n){var r=""+t;return T(r)?(i(e,r,n.enumerable?M(n):n),C(e,r,!!n.enumerable)):x(e,t,n),e},q=function(e){return e="[object String]"===S.call(e)?e.split(""):n(e),m(e).filter(T).map(z)};k.value=$,x(n,h,k),k.value=q,x(n,r,k);var I="object"===("undefined"==typeof window?"undefined":t(window))?n.getOwnPropertyNames(window):[],U=n.getOwnPropertyNames;k.value=function(e){if("[object Window]"===S.call(e))try{return U(e)}catch(e){return[].concat([],I)}return m(e).filter(F)},x(n,f,k),k.value=function(e,t){var n=q(t);return n.length?b(t).concat(n).forEach(function(n){R.call(t,n)&&$(e,n,t[n])}):w(e,t),e},x(n,p,k),k.value=R,x(E,v,k),k.value=D,x(o,"Symbol",k),k.value=function(e){var t=u.concat(u,e,a);return t in E?j[t]:P(t)},x(D,"for",k),k.value=function(e){return _.call(j,e)?e.slice(2*l,-a.length):void 0},x(D,"keyFor",k),k.value=function(e,t){var n=y(e,t);return n&&T(t)&&(n.enumerable=R.call(e,t)),n},x(n,d,k),k.value=function(e,t){return 1===arguments.length?g(e):A(e,t)},x(n,"create",k),k.value=function(){var e=S.call(this);return"[object String]"===e&&T(this)?"[object Symbol]":e},x(E,"toString",k);try{i=g(x({},u,{get:function(){return x(this,u,{value:!1})[u]}}))[u]||x}catch(e){i=function(e,t,n){var r=y(E,t);delete E[t],x(e,t,n),x(E,t,r)}}}}(Object,"getOwnPropertySymbols"),function(e,t){var n,r=e.defineProperty,i=e.prototype,o=i.toString;["iterator","match","replace","search","split","hasInstance","isConcatSpreadable","unscopables","species","toPrimitive","toStringTag"].forEach(function(t){if(!(t in Symbol))switch(r(Symbol,t,{value:Symbol(t)}),t){case"toStringTag":n=e.getOwnPropertyDescriptor(i,"toString"),n.value=function(){var e=o.call(this),t=void 0===this||null===this?void 0:this[Symbol.toStringTag];return void 0===t?e:"[object "+t+"]"},r(i,"toString",n)}})}(Object,Symbol),function(e,t,n){function r(){return this}t[e]||(t[e]=function(){var t=0,n=this,i={next:function(){var e=n.length<=t;return e?{done:e}:{done:e,value:n[t++]}}};return i[e]=r,i}),n[e]||(n[e]=function(){var t=String.fromCodePoint,n=this,i=0,o=n.length,s={next:function(){var e=o<=i,r=e?"":t(n.codePointAt(i));return i+=r.length,e?{done:e}:{done:e,value:r}}};return s[e]=r,s})}(Symbol.iterator,Array.prototype,String.prototype)),"undefined"==typeof FEATURE_NO_ES2015&&(Number.isNaN=Number.isNaN||function(e){return e!==e},Number.isFinite=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)}),String.prototype.endsWith&&!function(){try{return!"ab".endsWith("a",1)}catch(e){return!0}}()||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),String.prototype.startsWith&&!function(){try{return!"ab".startsWith("b",1)}catch(e){return!0}}()||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),"undefined"==typeof FEATURE_NO_ES2015&&(Array.from||(Array.from=function(){var e=function(e){return isNaN(e=+e)?0:(e>0?Math.floor:Math.ceil)(e)},t=function(t){return t>0?Math.min(e(t),9007199254740991):0},n=function(e,t,n,r){try{return t(n,r)}catch(t){throw"function"==typeof e.return&&e.return(),t}};return function(e){var r,i,o,s,a=Object(e),u="function"==typeof this?this:Array,l=arguments.length,c=l>1?arguments[1]:void 0,h=void 0!==c,p=0,f=a[Symbol.iterator];if(h&&(c=c.bind(l>2?arguments[2]:void 0)),void 0==f||Array.isArray(e))for(r=t(a.length),i=new u(r);r>p;p++)i[p]=h?c(a[p],p):a[p];else for(s=f.call(a),i=new u;!(o=s.next()).done;p++)i[p]=h?n(s,c,o.value,p):o.value;return i.length=p,i}}()),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,enumerable:!1,value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(t=n[o],e.call(i,t,o,n))return t}}),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{configurable:!0,writable:!0,enumerable:!1,value:function(e){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(t=n[o],e.call(i,t,o,n))return o;return-1}})),"undefined"!=typeof FEATURE_NO_ES2016||Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{configurable:!0,writable:!0,enumerable:!1,value:function(e){var t=Object(this),n=parseInt(t.length)||0;if(0===n)return!1;var r,i=parseInt(arguments[1])||0;i>=0?r=i:(r=n+i)<0&&(r=0);for(var o;r<n;){if(o=t[r],e===o||e!==e&&o!==o)return!0;r++}return!1}}),"undefined"==typeof FEATURE_NO_ES2015&&(function(){var e=!1;try{var t=Object.keys("a");e=1!==t.length||"0"!==t[0]}catch(t){e=!0}e&&(Object.keys=function(){var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(i){if(void 0===i||null===i)throw TypeError("Cannot convert undefined or null to object");i=Object(i);var o,s,a=[];for(o in i)e.call(i,o)&&a.push(o);if(t)for(s=0;s<r;s++)e.call(i,n[s])&&a.push(n[s]);return a}}())}(),function(e){"assign"in e||e.defineProperty(e,"assign",{configurable:!0,writable:!0,value:function(){var t=e.getOwnPropertySymbols,n=e.propertyIsEnumerable,r=t?function(e){return t(e).filter(n,e)}:function(){return Array.prototype};return function(n){function i(e){n[e]=a[e]}!t||n instanceof e||console.warn("problematic Symbols",n);for(var o=1,s=arguments.length;o<s;++o){var a=arguments[o];null!==a&&void 0!==a&&e.keys(a).concat(r(a)).forEach(i)}return n}}()})}(Object)),"undefined"==typeof FEATURE_NO_ES2015&&function(e){function t(e,t){function r(e){if(!this||this.constructor!==r)return new r(e);this._keys=[],this._values=[],this._itp=[],this.objectOnly=t,e&&n.call(this,e)}return t||b(e,"size",{get:m}),e.constructor=r,r.prototype=e,r}function n(e){this.add?e.forEach(this.add,this):e.forEach(function(e){this.set(e[0],e[1])},this)}function r(e){return this.has(e)&&(this._keys.splice(g,1),this._values.splice(g,1),this._itp.forEach(function(e){g<e[0]&&e[0]--})),-1<g}function i(e){return this.has(e)?this._values[g]:void 0}function o(e,t){if(this.objectOnly&&t!==Object(t))throw new TypeError("Invalid value used as weak collection key");if(t!=t||0===t)for(g=e.length;g--&&!x(e[g],t););else g=e.indexOf(t);return-1<g}function s(e){return o.call(this,this._values,e)}function a(e){return o.call(this,this._keys,e)}function u(e,t){return this.has(e)?this._values[g]=t:this._values[this._keys.push(e)-1]=t,this}function l(e){return this.has(e)||this._values.push(e),this}function c(){(this._keys||0).length=this._values.length=0}function h(){return v(this._itp,this._keys)}function p(){return v(this._itp,this._values)}function f(){return v(this._itp,this._keys,this._values)}function d(){return v(this._itp,this._values,this._values)}function v(e,t,n){var r,i=[0],o=!1;return e.push(i),r={},r[Symbol.iterator]=function(){return this},r.next=function(){var r,s=i[0];return!o&&s<t.length?(r=n?[t[s],n[s]]:t[s],i[0]++):(o=!0,e.splice(e.indexOf(i),1)),{done:o,value:r}},r}function m(){return this._values.length}function y(e,t){for(var n=this.entries();;){var r=n.next();if(r.done)break;e.call(t,r.value[1],r.value[0],this)}}var g,b=Object.defineProperty,x=function(e,t){return e===t||e!==e&&t!==t};if("undefined"==typeof WeakMap&&(e.WeakMap=t({delete:r,clear:c,get:i,has:a,set:u},!0)),"undefined"==typeof Map||"function"!=typeof(new Map).values||!(new Map).values().next){var w;e.Map=t((w={delete:r,has:a,get:i,set:u,keys:h,values:p,entries:f,forEach:y,clear:c},w[Symbol.iterator]=f,w))}if("undefined"==typeof Set||"function"!=typeof(new Set).values||!(new Set).values().next){var k;e.Set=t((k={has:s,add:l,delete:r,clear:c,keys:p,values:p,entries:d,forEach:y},k[Symbol.iterator]=p,k))}"undefined"==typeof WeakSet&&(e.WeakSet=t({delete:r,add:l,clear:c,has:s},!0))}(e.PLATFORM.global),"undefined"==typeof FEATURE_NO_ES2015&&function(){var n=Function.prototype.bind;void 0===e.PLATFORM.global.Reflect&&(e.PLATFORM.global.Reflect={}),"function"!=typeof Reflect.defineProperty&&(Reflect.defineProperty=function(e,n,r){if("object"===(void 0===e?"undefined":t(e))?null===e:"function"!=typeof e)throw new TypeError("Reflect.defineProperty called on non-object");try{return Object.defineProperty(e,n,r),!0}catch(e){return!1}}),"function"!=typeof Reflect.construct&&(Reflect.construct=function(e,t){if(t)switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(n.apply(e,r))}),"function"!=typeof Reflect.ownKeys&&(Reflect.ownKeys=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))})}(),"undefined"==typeof FEATURE_NO_ESNEXT&&function(){var e=Object.freeze({});"function"!=typeof Reflect.getOwnMetadata&&(Reflect.getOwnMetadata=function(t,n,r){if(n.hasOwnProperty("__metadata__"))return(n.__metadata__[r]||e)[t]}),"function"!=typeof Reflect.defineMetadata&&(Reflect.defineMetadata=function(e,t,n,r){var i=n.hasOwnProperty("__metadata__")?n.__metadata__:n.__metadata__={};(i[r]||(i[r]={}))[e]=t}),"function"!=typeof Reflect.metadata&&(Reflect.metadata=function(e,t){return function(n,r){Reflect.defineMetadata(e,t,n,r)}})}()}),define("aurelia-path",["exports"],function(e){"use strict";function t(e){for(var t=0;t<e.length;++t){var n=e[t];if("."===n)e.splice(t,1),t-=1;else if(".."===n){if(0===t||1===t&&".."===e[2]||".."===e[t-1])continue;t>0&&(e.splice(t-1,2),t-=2)}}}function n(e,n){var r=n&&n.split("/"),i=e.trim().split("/");if("."===i[0].charAt(0)&&r){var o=r.slice(0,r.length-1);i.unshift.apply(i,o)}return t(i),i.join("/")}function r(e,t){if(!e)return t;if(!t)return e;var n=e.match(/^([^/]*?:)\//),r=n&&n.length>0?n[1]:"";e=e.substr(r.length);var i=void 0;i=0===e.indexOf("///")&&"file:"===r?"///":0===e.indexOf("//")?"//":0===e.indexOf("/")?"/":"";for(var o="/"===t.slice(-1)?"/":"",s=e.split("/"),a=t.split("/"),u=[],l=0,c=s.length;l<c;++l)if(".."===s[l])u.pop();else{if("."===s[l]||""===s[l])continue;u.push(s[l])}for(var h=0,p=a.length;h<p;++h)if(".."===a[h])u.pop();else{if("."===a[h]||""===a[h])continue;u.push(a[h])}return r+i+u.join("/")+o}function i(e,t,n){var r=[];if(null===t||void 0===t)return r;if(Array.isArray(t))for(var o=0,s=t.length;o<s;o++)if(n)r.push(h(e)+"="+c(t[o]));else{var a=e+"["+("object"===l(t[o])&&null!==t[o]?o:"")+"]";r=r.concat(i(a,t[o]))}else if("object"!==(void 0===t?"undefined":l(t))||n)r.push(h(e)+"="+c(t));else for(var u in t)r=r.concat(i(e+"["+u+"]",t[u]));return r}function o(e,t){for(var n=[],r=Object.keys(e||{}).sort(),o=0,s=r.length;o<s;o++){var a=r[o];n=n.concat(i(a,e[a],t))}return 0===n.length?"":n.join("&")}function s(e,t){return Array.isArray(e)?(e.push(t),e):void 0!==e?[e,t]:t}function a(e,t,n){for(var r=e,i=t.length-1,o=0;o<=i;o++){var s=""===t[o]?r.length:t[o];if(o<i){var a=r[s]&&"object"!==l(r[s])?[r[s]]:r[s];r=r[s]=a||(isNaN(t[o+1])?{}:[])}else r=r[s]=n}}function u(e){var t={};if(!e||"string"!=typeof e)return t;var n=e;"?"===n.charAt(0)&&(n=n.substr(1));for(var r=n.replace(/\+/g," ").split("&"),i=0;i<r.length;i++){var o=r[i].split("="),u=decodeURIComponent(o[0]);if(u){var l=u.split("]["),c=l.length-1;if(/\[/.test(l[0])&&/\]$/.test(l[c])?(l[c]=l[c].replace(/\]$/,""),l=l.shift().split("[").concat(l),c=l.length-1):c=0,o.length>=2){var h=o[1]?decodeURIComponent(o[1]):"";c?a(t,l,h):t[u]=s(t[u],h)}else t[u]=!0}}return t}Object.defineProperty(e,"__esModule",{value:!0}),e.relativeToFile=n,e.join=r,e.buildQueryString=o,e.parseQueryString=u;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},c=encodeURIComponent,h=function(e){return c(e).replace("%24","$")}}),define("aurelia-task-queue",["exports","aurelia-pal"],function(e,t){"use strict";function n(e){var n=1,r=t.DOM.createMutationObserver(e),i=t.DOM.createTextNode("");return r.observe(i,{characterData:!0}),function(){n=-n,i.data=n}}function r(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}function i(e,t,n){n&&t.stack&&"object"===(void 0===e?"undefined":u(e))&&null!==e&&(e.stack=a(e.stack)+t.stack),"onError"in t?t.onError(e):l?setImmediate(function(){throw e}):setTimeout(function(){throw e},0)}function o(){var e=new Error
;if(e.stack)return e.stack;try{throw e}catch(e){return e.stack}}function s(e){return e.replace(/^[\s\S]*?\bqueue(Micro)?Task\b[^\n]*\n/,"")}function a(e){var t=e.lastIndexOf("flushMicroTaskQueue");return t<0&&(t=e.lastIndexOf("flushTaskQueue"))<0?e:(t=e.lastIndexOf("\n",t),t<0?e:e.substr(0,t))}Object.defineProperty(e,"__esModule",{value:!0}),e.TaskQueue=void 0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},l="function"==typeof setImmediate;e.TaskQueue=function(){function e(){var e=this;this.flushing=!1,this.longStacks=!1,this.microTaskQueue=[],this.microTaskQueueCapacity=1024,this.taskQueue=[],t.FEATURE.mutationObserver?this.requestFlushMicroTaskQueue=n(function(){return e.flushMicroTaskQueue()}):this.requestFlushMicroTaskQueue=r(function(){return e.flushMicroTaskQueue()}),this.requestFlushTaskQueue=r(function(){return e.flushTaskQueue()})}return e.prototype._flushQueue=function(e,t){var n=0,r=void 0;try{for(this.flushing=!0;n<e.length;)if(r=e[n],this.longStacks&&(this.stack="string"==typeof r.stack?r.stack:void 0),r.call(),++n>t){for(var o=0,s=e.length-n;o<s;o++)e[o]=e[o+n];e.length-=n,n=0}}catch(e){i(e,r,this.longStacks)}finally{this.flushing=!1}},e.prototype.queueMicroTask=function(e){this.microTaskQueue.length<1&&this.requestFlushMicroTaskQueue(),this.longStacks&&(e.stack=this.prepareQueueStack("\nEnqueued in MicroTaskQueue by:\n")),this.microTaskQueue.push(e)},e.prototype.queueTask=function(e){this.taskQueue.length<1&&this.requestFlushTaskQueue(),this.longStacks&&(e.stack=this.prepareQueueStack("\nEnqueued in TaskQueue by:\n")),this.taskQueue.push(e)},e.prototype.flushTaskQueue=function(){var e=this.taskQueue;this.taskQueue=[],this._flushQueue(e,Number.MAX_VALUE)},e.prototype.flushMicroTaskQueue=function(){var e=this.microTaskQueue;this._flushQueue(e,this.microTaskQueueCapacity),e.length=0},e.prototype.prepareQueueStack=function(e){var t=e+s(o());return"string"==typeof this.stack&&(t=a(t)+this.stack),t},e}()}),define("aurelia-fetch-client",["exports"],function(e){"use strict";function t(e){return new Blob([JSON.stringify(void 0!==e?e:{})],{type:"application/json"})}function n(e){if(!e.ok)throw e;return e}function r(){this.isRequesting=!!++this.activeRequestCount}function i(){this.isRequesting=!!--this.activeRequestCount}function o(e){var t=i.bind(this);return e.then(t,t),e}function s(e){var t={};for(var n in e||{})e.hasOwnProperty(n)&&(t[n]="function"==typeof e[n]?e[n]():e[n]);return t}function a(e,t){var n=this.defaults||{},r=void 0,i=void 0,o=void 0,a=s(n.headers);if(Request.prototype.isPrototypeOf(e))r=e,o=new Headers(r.headers).get("Content-Type");else{t||(t={}),i=t.body;var c=i?{body:i}:null,h=Object.assign({},n,{headers:{}},t,c);o=new Headers(h.headers).get("Content-Type"),r=new Request(u(this.baseUrl,e),h)}return!o&&new Headers(a).has("content-type")&&r.headers.set("Content-Type",new Headers(a).get("content-type")),l(r.headers,a),i&&Blob.prototype.isPrototypeOf(i)&&i.type&&r.headers.set("Content-Type",i.type),r}function u(e,t){return y.test(t)?t:(e||"")+t}function l(e,t){for(var n in t||{})t.hasOwnProperty(n)&&!e.has(n)&&e.set(n,t[n])}function c(e,t){return p(e,t,"request","requestError")}function h(e,t,n){return p(e,t,"response","responseError",n)}function p(e,t,n,r){for(var i=arguments.length,o=Array(i>4?i-4:0),s=4;s<i;s++)o[s-4]=arguments[s];return(t||[]).reduce(function(e,t){var i=t[n],s=t[r];return e.then(i&&function(e){return i.call.apply(i,[t,e].concat(o))}||f,s&&function(e){return s.call.apply(s,[t,e].concat(o))}||d)},Promise.resolve(e))}function f(e){return e}function d(e){throw e}Object.defineProperty(e,"__esModule",{value:!0}),e.json=t;var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},m=e.HttpClientConfiguration=function(){function e(){this.baseUrl="",this.defaults={},this.interceptors=[]}return e.prototype.withBaseUrl=function(e){return this.baseUrl=e,this},e.prototype.withDefaults=function(e){return this.defaults=e,this},e.prototype.withInterceptor=function(e){return this.interceptors.push(e),this},e.prototype.useStandardConfiguration=function(){var e={credentials:"same-origin"};return Object.assign(this.defaults,e,this.defaults),this.rejectErrorResponses()},e.prototype.rejectErrorResponses=function(){return this.withInterceptor({response:n})},e}(),y=(e.HttpClient=function(){function e(){if(this.activeRequestCount=0,this.isRequesting=!1,this.isConfigured=!1,this.baseUrl="",this.defaults=null,this.interceptors=[],"undefined"==typeof fetch)throw new Error("HttpClient requires a Fetch API implementation, but the current environment doesn't support it. You may need to load a polyfill such as https://github.com/github/fetch")}return e.prototype.configure=function(e){var t=void 0;if("object"===(void 0===e?"undefined":v(e)))t={defaults:e};else{if("function"!=typeof e)throw new Error("invalid config");t=new m,t.baseUrl=this.baseUrl,t.defaults=Object.assign({},this.defaults),t.interceptors=this.interceptors;var n=e(t);m.prototype.isPrototypeOf(n)&&(t=n)}var r=t.defaults;if(r&&Headers.prototype.isPrototypeOf(r.headers))throw new Error("Default headers must be a plain object.");return this.baseUrl=t.baseUrl,this.defaults=r,this.interceptors=t.interceptors||[],this.isConfigured=!0,this},e.prototype.fetch=function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){var n=this;r.call(this);var i=Promise.resolve().then(function(){return a.call(n,e,t,n.defaults)}),s=c(i,this.interceptors).then(function(e){var t=null;if(Response.prototype.isPrototypeOf(e))t=e;else{if(!Request.prototype.isPrototypeOf(e))throw new Error("An invalid result was returned by the interceptor chain. Expected a Request or Response instance, but got ["+e+"]");i=Promise.resolve(e),t=fetch(e)}return i.then(function(e){return h(t,n.interceptors,e)})});return o.call(this,s)}),e}(),/^([a-z][a-z0-9+\-.]*:)?\/\//i)}),function(e){"use strict";function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!=typeof e&&(e=String(e)),e}function r(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return y.iterable&&(t[Symbol.iterator]=function(){return t}),t}function i(e){this.map={},e instanceof i?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function o(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function s(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function a(e){var t=new FileReader,n=s(t);return t.readAsArrayBuffer(e),n}function u(e){var t=new FileReader,n=s(t);return t.readAsText(e),n}function l(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(y.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(y.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(y.arrayBuffer&&y.blob&&b(e))this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!y.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!x(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},y.blob&&(this.blob=function(){var e=o(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?o(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(a)}),this.text=function(){var e=o(this);if(e)return e;if(this._bodyBlob)return u(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(l(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},y.formData&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}function p(e){var t=e.toUpperCase();return w.indexOf(t)>-1?t:e}function f(e,t){t=t||{};var n=t.body;if("string"==typeof e)this.url=e;else{if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new i(t.headers)),this.method=p(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function v(e){var t=new i;return e.split("\r\n").forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t}function m(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new i(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var y={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(y.arrayBuffer)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},x=ArrayBuffer.isView||function(e){return e&&g.indexOf(Object.prototype.toString.call(e))>-1};i.prototype.append=function(e,r){e=t(e),r=n(r);var i=this.map[e];i||(i=[],this.map[e]=i),i.push(r)},i.prototype.delete=function(e){delete this.map[t(e)]},i.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},i.prototype.getAll=function(e){return this.map[t(e)]||[]},i.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},i.prototype.set=function(e,r){this.map[t(e)]=[n(r)]},i.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},this)},i.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},i.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},i.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},y.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this,{body:this._bodyInit})},h.call(f.prototype),h.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];m.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.Headers=i,e.Request=f,e.Response=m,e.fetch=function(e,t){return new Promise(function(n,r){var i=new f(e,t),o=new XMLHttpRequest;o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:v(o.getAllResponseHeaders()||"")};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var t="response"in o?o.response:o.responseText;n(new m(t,e))},o.onerror=function(){r(new TypeError("Network request failed"))},o.ontimeout=function(){r(new TypeError("Network request failed"))},o.open(i.method,i.url,!0),"include"===i.credentials&&(o.withCredentials=!0),"responseType"in o&&y.blob&&(o.responseType="blob"),i.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this),define("whatwg-fetch",[],function(){}),define("dropzone",["require","exports","module"],function(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){return void 0!==e&&null!==e?t(e):void 0}function a(e,t,n){return void 0!==e&&null!==e&&"function"==typeof e[t]?n(e,t):void 0}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(){function e(){o(this,e)}return u(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=t,s=0,o=o;;){var a;if(s>=o.length)break;a=o[s++];a.apply(this,r)}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var r=0;r<n.length;r++){if(n[r]===t){n.splice(r,1);break}}return this}}]),e}(),c=function(e){function t(e,n){o(this,t);var i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),s=void 0,a=void 0;if(i.element=e,i.version=t.version,i.defaultOptions.previewTemplate=i.defaultOptions.previewTemplate.replace(/\n*/g,""),i.clickableElements=[],i.listeners=[],i.files=[],"string"==typeof i.element&&(i.element=document.querySelector(i.element)),!i.element||null==i.element.nodeType)throw new Error("Invalid dropzone element.");if(i.element.dropzone)throw new Error("Dropzone already attached.");t.instances.push(i),i.element.dropzone=i;var u=null!=(a=t.optionsForElement(i.element))?a:{};if(i.options=t.extend({},i.defaultOptions,u,null!=n?n:{}),i.options.forceFallback||!t.isBrowserSupported()){var l;return l=i.options.fallback.call(i),r(i,l)}if(null==i.options.url&&(i.options.url=i.element.getAttribute("action")),!i.options.url)throw new Error("No URL provided.");if(i.options.acceptedFiles&&i.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(i.options.uploadMultiple&&i.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return i.options.acceptedMimeTypes&&(i.options.acceptedFiles=i.options.acceptedMimeTypes,delete i.options.acceptedMimeTypes),null!=i.options.renameFilename&&(i.options.renameFile=function(e){return i.options.renameFilename.call(i,e.name,e)}),i.options.method=i.options.method.toUpperCase(),(s=i.getExistingFallback())&&s.parentNode&&s.parentNode.removeChild(s),!1!==i.options.previewsContainer&&(i.options.previewsContainer?i.previewsContainer=t.getElement(i.options.previewsContainer,"previewsContainer"):i.previewsContainer=i.element),i.options.clickable&&(!0===i.options.clickable?i.clickableElements=[i.element]:i.clickableElements=t.getElements(i.options.clickable,"clickable")),i.init(),i}return i(t,e),u(t,null,[{key:"initClass",value:function(){this.prototype.Emitter=l,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var n=this.element.getElementsByTagName("div"),r=0,n=n;;){var i;if(r>=n.length)break;i=n[r++];var o=i;if(/(^| )dz-message($| )/.test(o.className)){e=o,o.className="dz-message";break}}e||(e=t.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var s=e.getElementsByTagName("span")[0];return s&&(null!=s.textContent?s.textContent=this.options.dictFallbackMessage:null!=s.innerText&&(s.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,r){var i={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},o=e.width/e.height;null==t&&null==n?(t=i.srcWidth,n=i.srcHeight):null==t?t=n*o:null==n&&(n=t/o),t=Math.min(t,i.srcWidth),n=Math.min(n,i.srcHeight);var s=t/n;if(i.srcWidth>t||i.srcHeight>n)if("crop"===r)o>s?(i.srcHeight=e.height,i.srcWidth=i.srcHeight*s):(i.srcWidth=e.width,i.srcHeight=i.srcWidth/s);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");o>s?n=t/o:t=n*o}return i.srcX=(e.width-i.srcWidth)/2,i.srcY=(e.height-i.srcHeight)/2,i.trgWidth=t,i.trgHeight=n,i},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Check</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Error</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var n=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=t.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var r=e.previewElement.querySelectorAll("[data-dz-name]"),i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s=o;s.textContent=e.name}for(var a=e.previewElement.querySelectorAll("[data-dz-size]"),u=0,a=a;!(u>=a.length);)s=a[u++],s.innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=t.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var l=function(r){return r.preventDefault(),r.stopPropagation(),e.status===t.UPLOADING?t.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(e)}):n.options.dictRemoveFileConfirmation?t.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(e)}):n.removeFile(e)},c=e.previewElement.querySelectorAll("[data-dz-remove]"),h=0,c=c;;){var p;if(h>=c.length)break;p=c[h++];p.addEventListener("click",l)}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var n=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),r=0,n=n;;){var i;if(r>=n.length)break;i=n[r++];var o=i;o.alt=e.name,o.src=t}return setTimeout(function(){return e.previewElement.classList.add("dz-image-preview")},1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=e.previewElement.querySelectorAll("[data-dz-errormessage]"),r=0,n=n;;){var i;if(r>=n.length)break;i=n[r++];i.textContent=t}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.textContent=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement)for(var r=e.previewElement.querySelectorAll("[data-dz-uploadprogress]"),i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s=o;"PROGRESS"===s.nodeName?s.value=t:s.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,"Upload canceled.")},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.textContent=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=n,o=0,i=i;;){var s;if(o>=i.length)break;s=i[o++];var a=s;for(var u in a){var l=a[u];e[u]=l}}return e}}]),u(t,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(e){return e.accepted}).map(function(e){return e})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(e){return!e.accepted}).map(function(e){return e})}},{key:"getFilesWithStatus",value:function(e){return this.files.filter(function(t){return t.status===e}).map(function(e){return e})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(t.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(t.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(t.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(e){return e.status===t.UPLOADING||e.status===t.QUEUED}).map(function(e){return e})}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(t.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length){!function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",document.querySelector(e.options.hiddenInputContainer).appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var n=e.hiddenFileInput.files;if(n.length)for(var r=n,i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s=o;e.addFile(s)}return e.emit("addedfiles",n),t()})}()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var n=this.events,r=0,n=n;;){var i;if(r>=n.length)break;i=n[r++];var o=i;this.on(o,this.options[o])}this.on("uploadprogress",function(){return e.updateTotalUploadProgress()}),this.on("removedfile",function(){return e.updateTotalUploadProgress()}),this.on("canceled",function(t){return e.emit("complete",t)}),this.on("complete",function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout(function(){return e.emit("queuecomplete")},0)});var s=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return s(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",s(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return s(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach(function(n){return e.listeners.push({element:n,events:{click:function(r){return(n!==e.element||r.target===e.element||t.elementInside(r.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,t.instances.splice(t.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){
for(var r=this.getActiveFiles(),i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s=o;t+=s.upload.bytesSent,n+=s.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e=void 0,n=void 0;if(e=this.getExistingFallback())return e;var r='<div class="dz-fallback">';this.options.dictFallbackText&&(r+="<p>"+this.options.dictFallbackText+"</p>"),r+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var i=t.createElement(r);return"FORM"!==this.element.tagName?(n=t.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>'),n.appendChild(i)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=n?n:i}},{key:"getExistingFallback",value:function(){for(var e=["div","form"],t=0;t<e.length;t++){var n,r=e[t];if(n=function(e){for(var t=e,n=0,t=t;;){var r;if(n>=t.length)break;r=t[n++];var i=r;if(/(^| )fallback($| )/.test(i.className))return i}}(this.element.getElementsByTagName(r)))return n}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.addEventListener(n,r,!1))}return t}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.removeEventListener(n,r,!1))}return t}()})}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),this.files.map(function(t){return e.cancelUpload(t)})}},{key:"enable",value:function(){return this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var r=["tb","gb","mb","kb","b"],i=0;i<r.length;i++){var o=r[i];if(e>=Math.pow(this.options.filesizeBase,4-i)/10){t=e/Math.pow(this.options.filesizeBase,4-i),n=o;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);var t=e.dataTransfer.files;if(this.emit("addedfiles",t),t.length){var n=e.dataTransfer.items;n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=s(null!=e?e.clipboardData:void 0,function(e){return e.items})){this.emit("paste",e);var t=e.clipboardData.items;return t.length?this._addFilesFromItems(t):void 0}}},{key:"handleFiles",value:function(e){var t=this;return e.map(function(e){return t.addFile(e)})}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],r=e,i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s,a=o;null!=a.webkitGetAsEntry&&(s=a.webkitGetAsEntry())?s.isFile?n.push(t.addFile(a.getAsFile())):s.isDirectory?n.push(t._addFilesFromDirectory(s,s.name)):n.push(void 0):null!=a.getAsFile&&(null==a.kind||"file"===a.kind)?n.push(t.addFile(a.getAsFile())):n.push(void 0)}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,r=e.createReader(),i=function(e){return a(console,"log",function(t){return t.log(e)})};return function e(){return r.readEntries(function(r){if(r.length>0){for(var i=r,o=0,i=i;;){var s;if(o>=i.length)break;s=i[o++];var a=s;a.isFile?a.file(function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)}):a.isDirectory&&n._addFilesFromDirectory(a,t+"/"+a.name)}e()}return null},i)}()}},{key:"accept",value:function(e,n){return e.size>1024*this.options.maxFilesize*1024?n(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):t.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(n(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,n):n(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var n=this;return e.upload={uuid:t.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=t.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(t){return t?(e.accepted=!1,n._errorProcessing([e],t)):(e.accepted=!0,n.options.autoQueue&&n.enqueueFile(e)),n._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(e){for(var t=e,n=0,t=t;;){var r;if(n>=t.length)break;r=t[n++];var i=r;this.enqueueFile(i)}return null}},{key:"enqueueFile",value:function(e){var n=this;if(e.status!==t.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=t.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return n.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout(function(){return t._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()})}}},{key:"removeFile",value:function(e){if(e.status===t.UPLOADING&&this.cancelUpload(e),this.files=h(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var n=this.files.slice(),r=0,n=n;;){var i;if(r>=n.length)break;i=n[r++];var o=i;(o.status!==t.UPLOADING||e)&&this.removeFile(o)}return null}},{key:"resizeImage",value:function(e,n,r,i,o){var s=this;return this.createThumbnail(e,n,r,i,!1,function(n,r){if(null===r)return o(e);var i=s.options.resizeMimeType;null==i&&(i=e.type);var a=r.toDataURL(i,s.options.resizeQuality);return"image/jpeg"!==i&&"image/jpg"!==i||(a=v.restore(e.dataURL,a)),o(t.dataURItoBlob(a))})}},{key:"createThumbnail",value:function(e,t,n,r,i,o){var s=this,a=new FileReader;return a.onload=function(){return e.dataURL=a.result,"image/svg+xml"===e.type?void(null!=o&&o(a.result)):s.createThumbnailFromUrl(e,t,n,r,i,o)},a.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,r,i,o,s){var a=this,u=document.createElement("img");return s&&(u.crossOrigin=s),u.onload=function(){var s=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&i&&(s=function(e){return EXIF.getData(u,function(){return e(EXIF.getTag(this,"Orientation"))})}),s(function(i){e.width=u.width,e.height=u.height;var s=a.options.resize.call(a,e,t,n,r),l=document.createElement("canvas"),c=l.getContext("2d");switch(l.width=s.trgWidth,l.height=s.trgHeight,i>4&&(l.width=s.trgHeight,l.height=s.trgWidth),i){case 2:c.translate(l.width,0),c.scale(-1,1);break;case 3:c.translate(l.width,l.height),c.rotate(Math.PI);break;case 4:c.translate(0,l.height),c.scale(1,-1);break;case 5:c.rotate(.5*Math.PI),c.scale(1,-1);break;case 6:c.rotate(.5*Math.PI),c.translate(0,-l.height);break;case 7:c.rotate(.5*Math.PI),c.translate(l.width,-l.height),c.scale(-1,1);break;case 8:c.rotate(-.5*Math.PI),c.translate(-l.width,0)}d(c,u,null!=s.srcX?s.srcX:0,null!=s.srcY?s.srcY:0,s.srcWidth,s.srcHeight,null!=s.trgX?s.trgX:0,null!=s.trgY?s.trgY:0,s.trgWidth,s.trgHeight);var h=l.toDataURL("image/png");if(null!=o)return o(h,l)})},null!=o&&(u.onerror=o),u.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n<e;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var n=e,r=0,n=n;;){var i;if(r>=n.length)break;i=n[r++];var o=i;o.processing=!0,o.status=t.UPLOADING,this.emit("processing",o)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter(function(t){return t.xhr===e}).map(function(e){return e})}},{key:"cancelUpload",value:function(e){if(e.status===t.UPLOADING){for(var n=this._getFilesWithXhr(e.xhr),r=n,i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];o.status=t.CANCELED}void 0!==e.xhr&&e.xhr.abort();for(var s=n,a=0,s=s;;){var u;if(a>=s.length)break;u=s[a++];var l=u;this.emit("canceled",l)}this.options.uploadMultiple&&this.emit("canceledmultiple",n)}else e.status!==t.ADDED&&e.status!==t.QUEUED||(e.status=t.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var n=this;this._transformFiles(e,function(r){if(e[0].upload.chunked){var i=e[0],o=r[0],s=0;i.upload.chunks=[];var a=function(){for(var r=0;void 0!==i.upload.chunks[r];)r++;if(!(r>=i.upload.totalChunkCount)){s++;var a=r*n.options.chunkSize,u=Math.min(a+n.options.chunkSize,i.size),l={name:n._getParamName(0),data:o.webkitSlice?o.webkitSlice(a,u):o.slice(a,u),filename:i.upload.filename,chunkIndex:r};i.upload.chunks[r]={file:i,index:r,dataBlock:l,status:t.UPLOADING,progress:0,retries:0},n._uploadData(e,[l])}};if(i.upload.finishedChunkUpload=function(r){var o=!0;r.status=t.SUCCESS,r.dataBlock=null;for(var s=0;s<i.upload.totalChunkCount;s++){if(void 0===i.upload.chunks[s])return a();i.upload.chunks[s].status!==t.SUCCESS&&(o=!1)}o&&n.options.chunksUploaded(i,function(){n._finished(e,"",null)})},n.options.parallelChunkUploads)for(var u=0;u<i.upload.totalChunkCount;u++)a();else a()}else{for(var l=[],c=0;c<e.length;c++)l[c]={name:n._getParamName(c),data:r[c],filename:e[c].upload.filename};n._uploadData(e,l)}})}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,n){for(var r=this,i=new XMLHttpRequest,o=e,s=0,o=o;;){var a;if(s>=o.length)break;a=o[s++];a.xhr=i}e[0].upload.chunked&&(e[0].upload.chunks[n[0].chunkIndex].xhr=i);var u=this.resolveOption(this.options.method,e),l=this.resolveOption(this.options.url,e);i.open(u,l,!0),i.timeout=this.resolveOption(this.options.timeout,e),i.withCredentials=!!this.options.withCredentials,i.onload=function(t){r._finishedUploading(e,i,t)},i.onerror=function(){r._handleUploadError(e,i)},(null!=i.upload?i.upload:i).onprogress=function(t){return r._updateFilesUploadProgress(e,i,t)};var c={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&t.extend(c,this.options.headers);for(var h in c){var p=c[h];p&&i.setRequestHeader(h,p)}var f=new FormData;if(this.options.params){var d=this.options.params;"function"==typeof d&&(d=d.call(this,e,i,e[0].upload.chunked?this._getChunk(e[0],i):null));for(var v in d){var m=d[v];f.append(v,m)}}for(var y=e,g=0,y=y;;){var b;if(g>=y.length)break;b=y[g++];var x=b;this.emit("sending",x,i,f)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,i,f),this._addFormElementData(f);for(var w=0;w<n.length;w++){var k=n[w];f.append(k.name,k.data,k.filename)}this.submitRequest(i,f,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,r=[],i=0,o=0;o<e.length;o++)!function(o){n.options.transformFile.call(n,e[o],function(n){r[o]=n,++i===e.length&&t(r)})}(o)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=this.element.querySelectorAll("input, textarea, select, button"),n=0,t=t;;){var r;if(n>=t.length)break;r=t[n++];var i=r,o=i.getAttribute("name"),s=i.getAttribute("type");if(s&&(s=s.toLowerCase()),void 0!==o&&null!==o)if("SELECT"===i.tagName&&i.hasAttribute("multiple"))for(var a=i.options,u=0,a=a;;){var l;if(u>=a.length)break;l=a[u++];var c=l;c.selected&&e.append(o,c.value)}else(!s||"checkbox"!==s&&"radio"!==s||i.checked)&&e.append(o,i.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,e[0].upload.chunked){var i=e[0],o=this._getChunk(i,t);o.progress=r,o.total=n.total,o.bytesSent=n.loaded;i.upload.progress=0,i.upload.total=0,i.upload.bytesSent=0;for(var s=0;s<i.upload.totalChunkCount;s++)void 0!==i.upload.chunks[s]&&void 0!==i.upload.chunks[s].progress&&(i.upload.progress+=i.upload.chunks[s].progress,i.upload.total+=i.upload.chunks[s].total,i.upload.bytesSent+=i.upload.chunks[s].bytesSent);i.upload.progress=i.upload.progress/i.upload.totalChunkCount}else for(var a=e,u=0,a=a;;){var l;if(u>=a.length)break;l=a[u++];var c=l;c.upload.progress=r,c.upload.total=n.total,c.upload.bytesSent=n.loaded}for(var h=e,p=0,h=h;;){var f;if(p>=h.length)break;f=h[p++];var d=f;this.emit("uploadprogress",d,d.upload.progress,d.upload.bytesSent)}}else{var v=!0;r=100;for(var m=e,y=0,m=m;;){var g;if(y>=m.length)break;g=m[y++];var b=g;100===b.upload.progress&&b.upload.bytesSent===b.upload.total||(v=!1),b.upload.progress=r,b.upload.bytesSent=b.upload.total}if(v)return;for(var x=e,w=0,x=x;;){var k;if(w>=x.length)break;k=x[w++];var E=k;this.emit("uploadprogress",E,r,E.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,n,r){var i=void 0;if(e[0].status!==t.CANCELED&&4===n.readyState){if("arraybuffer"!==n.responseType&&"blob"!==n.responseType&&(i=n.responseText,n.getResponseHeader("content-type")&&~n.getResponseHeader("content-type").indexOf("application/json")))try{i=JSON.parse(i)}catch(e){r=e,i="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=n.status&&n.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],n)):this._finished(e,i,r):this._handleUploadError(e,n,i)}}},{key:"_handleUploadError",value:function(e,n,r){if(e[0].status!==t.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var i=this._getChunk(e[0],n);if(i.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[i.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var o=e,s=0,o=o;;){if(s>=o.length)break;o[s++];this._errorProcessing(e,r||this.options.dictResponseError.replace("{{statusCode}}",n.status),n)}}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,n,r){for(var i=e,o=0,i=i;;){var s;if(o>=i.length)break;s=i[o++];var a=s;a.status=t.SUCCESS,this.emit("success",a,n,r),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,n,r),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,n,r){for(var i=e,o=0,i=i;;){var s;if(o>=i.length)break;s=i[o++];var a=s;a.status=t.ERROR,this.emit("error",a,n,r),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,n,r),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}]),t}(l);c.initClass(),c.version="5.2.0",c.options={},c.optionsForElement=function(e){return e.getAttribute("id")?c.options[p(e.getAttribute("id"))]:void 0},c.instances=[],c.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},c.autoDiscover=!0,c.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],r=t,i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s=o;/(^| )dropzone($| )/.test(s.className)?n.push(e.push(s)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=e,r=0,n=n;;){var i;if(r>=n.length)break;i=n[r++];var o=i;!1!==c.optionsForElement(o)?t.push(new c(o)):t.push(void 0)}return t}()},c.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],c.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=c.blacklistedBrowsers,n=0,t=t;;){var r;if(n>=t.length)break;r=t[n++];var i=r;i.test(navigator.userAgent)&&(e=!1)}else e=!1;else e=!1;return e},c.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),o=0,s=t.length,a=0<=s;a?o<=s:o>=s;a?o++:o--)i[o]=t.charCodeAt(o);return new Blob([r],{type:n})};var h=function(e,t){return e.filter(function(e){return e!==t}).map(function(e){return e})},p=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})};c.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},c.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},c.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},c.getElements=function(e,t){var n=void 0,r=void 0;if(e instanceof Array){r=[];try{for(var i=e,o=0,i=i;!(o>=i.length);)n=i[o++],r.push(this.getElement(n,t))}catch(e){r=null}}else if("string"==typeof e){r=[];for(var s=document.querySelectorAll(e),a=0,s=s;!(a>=s.length);)n=s[a++],r.push(n)}else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},c.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},c.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,r=n.replace(/\/.*$/,""),i=t,o=0,i=i;;){var s;if(o>=i.length)break;s=i[o++];var a=s;if(a=a.trim(),"."===a.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each(function(){return new c(this,e)})}),void 0!==n&&null!==n?n.exports=c:window.Dropzone=c,c.ADDED="added",c.QUEUED="queued",c.ACCEPTED=c.QUEUED,c.UPLOADING="uploading",c.PROCESSING=c.UPLOADING,c.CANCELED="canceled",c.ERROR="error",c.SUCCESS="success";var f=function(e){var t=(e.naturalWidth,e.naturalHeight),n=document.createElement("canvas");n.width=1,n.height=t;var r=n.getContext("2d");r.drawImage(e,0,0);for(var i=r.getImageData(1,0,1,t),o=i.data,s=0,a=t,u=t;u>s;){0===o[4*(u-1)+3]?a=u:s=u,u=a+s>>1}var l=u/t;return 0===l?1:l},d=function(e,t,n,r,i,o,s,a,u,l){var c=f(t);return e.drawImage(t,n,r,i,o,s,a,u,l/c)},v=function(){function e(){o(this,e)}return u(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,r=void 0,i="",o=void 0,s=void 0,a=void 0,u="",l=0;;)if(n=e[l++],r=e[l++],i=e[l++],o=n>>2,s=(3&n)<<4|r>>4,a=(15&r)<<2|i>>6,u=63&i,isNaN(r)?a=u=64:isNaN(i)&&(u=64),t=t+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(u),n=r=i="",o=s=a=u="",!(l<e.length))break;return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),i=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(i)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(t=e[n],255===t[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),s=r.slice(i),a=o;return a=a.concat(t),a=a.concat(s)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){var r;if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{r=256*e[t+2]+e[t+3];var i=t+r+2,o=e.slice(t,i);n.push(o),t=i}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,r="",i=void 0,o=void 0,s=void 0,a="",u=0,l=[],c=/[^A-Za-z0-9\+\/\=]/g;for(c.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");;)if(i=this.KEY_STR.indexOf(e.charAt(u++)),o=this.KEY_STR.indexOf(e.charAt(u++)),s=this.KEY_STR.indexOf(e.charAt(u++)),a=this.KEY_STR.indexOf(e.charAt(u++)),t=i<<2|o>>4,n=(15&o)<<4|s>>2,r=(3&s)<<6|a,l.push(t),64!==s&&l.push(n),64!==a&&l.push(r),t=n=r="",i=o=s=a="",!(u<e.length))break;return l}}]),e}();v.initClass();c._autoDiscoverFunction=function(){if(c.autoDiscover)return c.discover()},function(e,t){var n=!1,r=!0,i=e.document,o=i.documentElement,s=i.addEventListener?"addEventListener":"attachEvent",a=i.addEventListener?"removeEventListener":"detachEvent",u=i.addEventListener?"":"on",l=function r(o){if("readystatechange"!==o.type||"complete"===i.readyState)return("load"===o.type?e:i)[a](u+o.type,r,!1),!n&&(n=!0)?t.call(e,o.type||o):void 0};if("complete"!==i.readyState){if(i.createEventObject&&o.doScroll){try{r=!e.frameElement}catch(e){}r&&function e(){try{o.doScroll("left")}catch(t){return void setTimeout(e,50)}return l("poll")}()}i[s](u+"DOMContentLoaded",l,!1),i[s](u+"readystatechange",l,!1),e[s](u+"load",l,!1)}}(window,c._autoDiscoverFunction)});