-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-es2015.6f4f54a02b5537ac2572.js
1 lines (1 loc) · 928 KB
/
main-es2015.6f4f54a02b5537ac2572.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,r){t.exports=r("zUnb")},"07dN":function(t,e){var r;(r=jqxBaseFramework).extend(r.jqx._jqxChart.prototype,{_moduleWaterfall:!0,_isSummary:function(t,e){for(var r=this.seriesGroups[t],n=0;n<r.series.length;n++)if(void 0!==r.series[n].summary&&void 0!==this._getDataValue(e,r.series[n].summary,t))return!0;return!1},_applyWaterfall:function(t,e,r,n,i,s,o,a,l){var h=this.seriesGroups[r];if(0==t.length)return t;for(var u=n,c={},d=[],f=void 0,p=[],g=0;g<h.series.length;g++)p.push(this._isSerieVisible(r,g));for(var m={},v=0;v<e;v++){var y=n,x=0,_=this._isSummary(r,v);for(g=0;g<t.length;g++)if(p[g]){var b=0;if(_){b=y==n?i:0,t[g][v].value=c[g],t[g][v].summary=!0,f=t[g][v].value<b,a&&(f=!f);var w=0;w=isNaN(s)?this._getDataPointOffsetDiff(t[g][v].value,b,b,NaN,o,n,a):this._getDataPointOffsetDiff(t[g][v].value+x,0==x?i:x,b||i,s,o,n,a),t[g][v].to=y+(f?w:-w),t[g][v].from=y,l&&(x+=t[g][v].value,y=t[g][v].to)}else{var C,S=l?-1:g;if(!isNaN(t[g][v].value))void 0===m[S]&&(b=i,m[S]=!0),f=t[g][v].value<b,a&&(f=!f),w=NaN,C=l?u:0==v?n:t[g][d[g]].to,w=0,w=isNaN(s)?this._getDataPointOffsetDiff(t[g][v].value,b,b,NaN,o,n,a):this._getDataPointOffsetDiff(t[g][v].value+(isNaN(c[S])?0:c[S]),isNaN(c[S])?i:c[S],b||i,s,o,C,a),t[g][v].to=u=C+(f?w:-w),t[g][v].from=C,isNaN(c[S])?c[S]=t[g][v].value:c[S]+=t[g][v].value,-1==S&&(isNaN(c[g])?c[g]=t[g][v].value:c[g]+=t[g][v].value),l||(d[g]=v)}}}return t}})},"3Sd5":function(t,e){var r;(r=jqxBaseFramework).extend(r.jqx._jqxChart.prototype,{_moduleApi:!0,getItemsCount:function(t,e){var r=this.seriesGroups[t];if(!this._isSerieVisible(t,e))return 0;var n=this._renderData;return!r||!n||n.length<=t?0:r.series[e]?n[t].offsets[e].length:0},getXAxisRect:function(t){var e=this._renderData;if(e&&!(e.length<=t)&&e[t].xAxis)return e[t].xAxis.rect},getXAxisLabels:function(t){var e=[],r=this._renderData;if(!r||r.length<=t)return e;if(!(r=r[t].xAxis))return e;var n=this.seriesGroups[t];if(n.polar||n.spider){for(var i=0;i<r.polarLabels.length;i++){var s=r.polarLabels[i];e.push({offset:{x:s.x,y:s.y},value:s.value})}return e}var o=this._getXAxis(t),a=this.getXAxisRect(t),l="top"==o.position||"right"==o.position,h="horizontal"==n.orientation;for(i=0;i<r.data.length;i++)e.push(h?{offset:{x:a.x+(l?0:a.width),y:a.y+r.data.data[i]},value:r.data.xvalues[i]}:{offset:{x:a.x+r.data.data[i],y:a.y+(l?a.height:0)},value:r.data.xvalues[i]});return e},getValueAxisRect:function(t){var e=this._renderData;if(e&&!(e.length<=t)&&e[t].valueAxis)return e[t].valueAxis.rect},getValueAxisLabels:function(t){var e=[],r=this._renderData;if(!r||r.length<=t)return e;if(!(r=r[t].valueAxis))return e;var n=this._getValueAxis(t),i="top"==n.position||"right"==n.position,s=this.seriesGroups[t],o="horizontal"==s.orientation;if(s.polar||s.spider){for(var a=0;a<r.polarLabels.length;a++){var l=r.polarLabels[a];e.push({offset:{x:l.x,y:l.y},value:l.value})}return e}for(a=0;a<r.items.length;a++)e.push(o?{offset:{x:r.itemOffsets[r.items[a]].x+r.itemWidth/2,y:r.rect.y+(i?r.rect.height:0)},value:r.items[a]}:{offset:{x:r.rect.x+r.rect.width,y:r.itemOffsets[r.items[a]].y+r.itemWidth/2},value:r.items[a]});return e},getPlotAreaRect:function(){return this._plotRect},getRect:function(){return this._rect},showToolTip:function(t,e,r,n,i){var s=this.getItemCoord(t,e,r);isNaN(s.x)||isNaN(s.y)||this._startTooltipTimer(t,e,r,s.x,s.y,n,i)},hideToolTip:function(t){isNaN(t)&&(t=0);var e=this;e._cancelTooltipTimer(),setTimeout((function(){e._hideToolTip(0)}),t)}})},"3Vay":function(t,e){var r,n;r=jqxBaseFramework,n=function(){var t,e,s,o,a,l={};function h(t,n,i,s){var o,a=this;a||(a=window.jqx),1!=s&&t.beginRow();var l=0;for(var h in e){if(e[h].columnsDataFields&&(h=e[h].columnsDataFields[l].displayfield),o=d(i,h)){if(null!=o.level&&o.index-1>n.level&&o.index-1<o.maxLevel){l++;continue}null!=o.maxLevel&&o.index-1==o.maxLevel&&((o=r.extend({},o)).merge=o.maxLevel-n.level-1)}if(null!=n.level&&null!=n.label&&("xml"===a.exportFormat||"json"===a.exportFormat)){t.appendBodyCell(n.label,{text:"group"},o,n,l,"group");break}n.hasOwnProperty(h)?t.appendBodyCell(n[h],e[h],o,n,l):t.appendBodyCell("",e[h],o,n,l),l++}1!=s&&t.endRow()}function u(t,e){if(e.style)return s[e.style];var r=c();return r.length>0?r[0].style:null}function c(){return a||(a=new Array,r.each(s,(function(t,e){a[a.length]={name:t,style:e}}))),a}function d(t,r){var n=e[r];if(n){if(n.customCellStyles){var i=n.customCellStyles[t];if(i)return s[i]}if(n.cellStyle)return n.cellAltStyle?0==t%2?s[n.cellStyle]:s[n.cellAltStyle]:s[n.cellStyle];var o=c();if(o.length>0)return o[t%(o.length-1)+1].style}return null}function f(t,e,r){var n=document.createElement("input");return n.name=e,n.value=t,n.type="hidden",r.appendChild(n),n}return(o=function(o,a,c,d,p,g){if(!(this instanceof n))return new n(o,a,c,p,g);t=o,e=a,s=c,this.exportTo=function(n,s,o,a){n=n.toString().toLowerCase();var c=l[n];if(void 0===c)throw"You can't export to "+n+" format.";if("pdf"===n&&null==a){var d=this.exportTo(n,s,n,"pdf");r.jqx.pdfExport||(r.jqx.pdfExport={orientation:"portrait",paperSize:"a4"});var f=new i(r.jqx.pdfExport.orientation,"pt",r.jqx.pdfExport.paperSize);f.cellInitialize();var p=r(d).find("th"),g=r(d).find("tr"),m=0;f.setFontSize(9.75);var v=595;switch(r.jqx.pdfExport.paperSize){case"legal":v=612,"portrait"!==r.jqx.pdfExport.orientation&&(v=1008);break;case"letter":v=612,"portrait"!==r.jqx.pdfExport.orientation&&(v=792);break;case"a3":v=841,"portrait"!==r.jqx.pdfExport.orientation&&(v=1190);break;case"a4":v=595,"portrait"!==r.jqx.pdfExport.orientation&&(v=842);break;case"a5":v=420,"portrait"!==r.jqx.pdfExport.orientation&&(v=595)}v-=20;var y=0,x=[];if(r.each(p,(function(t){var e=parseInt(this.style.width);isNaN(e)&&(e=25);var r=72*e/96;x[t]=r,y+=r})),0===p.length&&r.each(g[0].cells,(function(t){var e=parseInt(this.style.width);isNaN(e)&&(e=v/g[0].cells.length);var r=72*e/96;x[t]=r,y+=r})),y>v&&r.each(x,(function(t){x[t]=x[t]/y*100,x[t]=x[t]*v/100})),r.each(p,(function(t){var e,n=x[t],i=f.getTextDimensions(r(this).html()),s=r(this).html();i.w+3>n&&(s=(e=f.splitTextToSize(s,n-3)[0]).length>3?e.substring(0,e.length-3)+"...":e.substring(0,1)+"...",(e=f.splitTextToSize(s,n-3)[0])!=s&&(s=e)),f.cell(10,10,n,18.75,s,m)})),m++,r.each(g,(function(t){if(0===t)return!0;var e=r(this).children();if(e.length>p.length&&p.length>0){for(var n=e.length-p.length,i="",s=x[0],o=18.75,a=0;a<=n;a++){var l=e[a].innerHTML;"+"!==l&&"-"!==l||(l+=" ")," "===l&&(l=" "),i+=l}for(f.getTextDimensions(i).w+3>s&&(i=(h=f.splitTextToSize(i,s-3)[0]).length>3?h.substring(0,h.length-3)+"...":h.substring(0,1)+"...",(h=f.splitTextToSize(i,s-3)[0])!=i&&(i=h)),f.cell(10,10,s,o,i,m),a=n+1;a<e.length;a++){var h;s=x[t=a-n],o=18.75,i=r(e[a]).html(),f.getTextDimensions(r(e[a]).html()).w+3>s&&(i=(h=f.splitTextToSize(i,s-3)[0]).length>3?h.substring(0,h.length-3)+"...":h.substring(0,1)+"...",(h=f.splitTextToSize(i,s-3)[0])!=i&&(i=h)),f.cell(10,10,s,o,i,m)}return m++,!0}r.each(e,(function(t){var e,n=x[t],i=r(this).html();f.getTextDimensions(r(this).html()).w+3>n&&(i=(e=f.splitTextToSize(i,n-3)[0]).length>3?e.substring(0,e.length-3)+"...":e.substring(0,1)+"...",(e=f.splitTextToSize(i,n-3)[0])!=i&&(i=e)),f.cell(10,10,n,18.75,i,m)})),m++})),r.jqx.browser.msie&&r.jqx.browser.version<10)throw new Error("PDF export requires a browser with HTML5 support");return f}return function(n,i,s,o,a,l,c){var d=this;return d||(d=window.jqx),d.hierarchy=a,d.exportFormat=l,d.filename=c,n.beginFile(c),function(t){var n=!0;r.each(e,(function(){if(this.hidden)return n=!1,!1})),t.beginHeader(n);var i=0;for(var s in e){e[s].columnsDataFields&&(s=e[s].columnsDataFields[i].displayfield);var o=u(0,e[s]);t.appendHeaderCell(e[s],s,o,n,i),i++}t.endHeader(n)}(n),function(e){var r=this;if(r||(r=window.jqx),e.beginBody(),r.hierarchy){var n=function(t){for(var r=0;r<t.length;r+=1)void 0!==t[r]&&(e.hierarchy=!0,e.beginRow(t[r].level),h(e,t[r],r,!0),t[r].records&&(e.beginRows(t[r].level),n(t[r].records),e.endRows(t[r].level)),e.endRow(t[r].level))};return n(t),void e.endBody()}for(var i=0;i<t.length;i+=1)void 0!==t[i]&&h(e,t[i],i);e.endBody()}(n),n.endFile(c),n.getFile()}(c,0,0,0,s,o,a)},this.exportToFile=function(t,e,n,s,o){if("pdf"!==t){var a=function(t,e,r,n,i){var s=document.createElement("form");return f(t,"filename",s),f(e,"format",s),function(t,e,r){var n=document.createElement("textarea");n.name="content",n.value=t,r.appendChild(n)}(r,0,s),null!=n&&""!=n||(n=window&&window.location.toString().indexOf("jqwidgets.com")>=0?"https://jqwidgets.com/export_server/dataexport.php":"http://jquerygrid.net/export_server/dataexport.php"),s.action=n,s.method="post",i&&(s.acceptCharset=i),document.body.appendChild(s),s}(e,t,this.exportTo(t,o,t,e),n,s);a.submit(),document.body.removeChild(a)}else{var l=this.exportTo(t,o,t,e);r.jqx.pdfExport||(r.jqx.pdfExport={orientation:"portrait",paperSize:"a4"});var h=new i(r.jqx.pdfExport.orientation,"pt",r.jqx.pdfExport.paperSize);"utf-8"!=s&&"UTF-8"!=s||h.setFont("courier","normal"),h.cellInitialize();var u=r(l).find("th"),c=r(l).find("tr"),d=0;h.setFontSize(9.75);var p=595;switch(r.jqx.pdfExport.paperSize){case"legal":p=612,"portrait"!==r.jqx.pdfExport.orientation&&(p=1008);break;case"letter":p=612,"portrait"!==r.jqx.pdfExport.orientation&&(p=792);break;case"a3":p=841,"portrait"!==r.jqx.pdfExport.orientation&&(p=1190);break;case"a4":p=595,"portrait"!==r.jqx.pdfExport.orientation&&(p=842);break;case"a5":p=420,"portrait"!==r.jqx.pdfExport.orientation&&(p=595)}p-=20;var g=0,m=[];if(r.each(u,(function(t){var e=parseInt(this.style.width);isNaN(e)&&(e=25);var r=72*e/96;m[t]=r,g+=r})),0===u.length&&r.each(c[0].cells,(function(t){var e=parseInt(this.style.width);isNaN(e)&&(e=p/c[0].cells.length);var r=72*e/96;m[t]=r,g+=r})),g>p&&r.each(m,(function(t){m[t]=m[t]/g*100,m[t]=m[t]*p/100})),r.each(u,(function(t){var e,n=m[t],i=h.getTextDimensions(r(this).html()),s=r(this).html();i.w+3>n&&(s=(e=h.splitTextToSize(s,n-3)[0]).length>3?e.substring(0,e.length-3)+"...":e.substring(0,1)+"...",(e=h.splitTextToSize(s,n-3)[0])!=s&&(s=e)),h.cell(10,10,n,18.75,s,d)})),d++,r.each(c,(function(t){if(0===t)return!0;var e=r(this).children();if(e.length>u.length&&u.length>0){for(var n=e.length-u.length,i="",s=m[0],o=18.75,a=0;a<=n;a++){var l=e[a].innerHTML;"+"!==l&&"-"!==l||(l+=" ")," "===l&&(l=" "),i+=l}for(h.getTextDimensions(i).w+3>s&&(i=(c=h.splitTextToSize(i,s-3)[0]).length>3?c.substring(0,c.length-3)+"...":c.substring(0,1)+"...",(c=h.splitTextToSize(i,s-3)[0])!=i&&(i=c)),h.cell(10,10,s,o,i,d),a=n+1;a<e.length;a++){var c;s=m[t=a-n],o=18.75," "===(i=r(e[a]).html())&&(i=" "),h.getTextDimensions(r(e[a]).html()).w+3>s&&(i=(c=h.splitTextToSize(i,s-3)[0]).length>3?c.substring(0,c.length-3)+"...":c.substring(0,1)+"...",(c=h.splitTextToSize(i,s-3)[0])!=i&&(i=c)),h.cell(10,10,s,o,i,d)}return d++,!0}r.each(e,(function(t){var e,n=m[t],i=r(this).html();" "===i&&(i=" "),h.getTextDimensions(r(this).html()).w+3>n&&(i=(e=h.splitTextToSize(i,n-3)[0]).length>3?e.substring(0,e.length-3)+"...":e.substring(0,1)+"...",(e=h.splitTextToSize(i,n-3)[0])!=i&&(i=e)),h.cell(10,10,n,18.75,i,d)})),d++})),r.jqx.browser.msie&&r.jqx.browser.version<10)throw new Error("PDF export requires a browser with HTML5 support");h.save(e+".pdf")}},this.exportToLocalFile=function(t,e,r,n){var i=this.exportTo(t,r,n);document.location.href="data:application/octet-stream;filename="+e+","+encodeURIComponent(i)}}).extend=function(t,e){if(!(e instanceof r.jqx.dataAdapter.DataExportModuleBase))throw"The module "+t+" is not instance of DataExportModuleBase.";l[t]=e},o}(),r.jqx.dataAdapter.ArrayExporter=n,function(t){t.jqx.dataAdapter.DataExportModuleBase=function(){this.formatData=function(e,r,n,i){if("date"===r){var s="";if("string"==typeof e&&(e=s=t.jqx.dataFormat.tryparsedate(e)),""===e||null===e)return"";if((s=t.jqx.dataFormat.formatdate(e,n,i))&&"NaN"==s.toString()||null==s)return"";e=s}else if("number"===r||"float"===r||"int"===r||"integer"==r){if(""===e||null===e)return"";if(!isNaN(new Number(e))){var o=t.jqx.dataFormat.formatnumber(e,n,i);if("NaN"==o.toString())return"";e=o}}else e=e;return null===e?"":e},this.getFormat=function(t){var e,r=t?t.formatString:"";return"number"!=(e=t?t.type:"string")&&"float"!=e||r||(r="f2"),"int"!=e&&"integer"!=e||r||(r="n0"),"date"==e&&(r||(r="d")),{type:e,formatString:r,localization:t?t.localization:""}},this.beginFile=function(){throw"Not implemented!"},this.beginHeader=function(){throw"Not implemented!"},this.appendHeaderCell=function(){throw"Not implemented!"},this.endHeader=function(){throw"Not implemented!"},this.beginBody=function(){throw"Not implemented!"},this.beginRow=function(){throw"Not implemented!"},this.beginRows=function(){throw"Not implemented!"},this.endRows=function(){throw"Not implemented!"},this.appendBodyCell=function(){throw"Not implemented!"},this.endRow=function(){throw"Not implemented!"},this.endBody=function(){throw"Not implemented!"},this.endFile=function(){throw"Not implemented!"},this.getFile=function(){throw"Not implemented!"}}}(jqxBaseFramework),function(t){var e=function(t){var e,r,n=0,i=this;function s(r,n){r=function(t,e){if(e){var r=i.getFormat(e);t=i.formatData(t,r.type,r.formatString,r.localization)}return'"'+t+'"'}(r,n),e+=r+t}this.beginFile=function(){e=""},this.beginHeader=function(){},this.appendHeaderCell=function(t,e,n,i,o){if(n&&null!=n.level){if(o<n.maxLevel)return;if(o===n.maxLevel){i&&s(t.text);for(var a=0;a<n.maxLevel;a++)s("");return}}r=i,i&&s(t.text)},this.endHeader=function(){this.endRow()},this.beginBody=function(){n=0},this.beginRow=function(){(n>0||0==n&&r)&&(e+="\n"),n++},this.appendBodyCell=function(t,e,r,n,i){if(r&&null!=r.maxLevel&&i===r.maxLevel){s(t,e);for(var o=0;o<r.maxLevel-n.level-1;o++)s("",e)}else s(t,e)},this.endRow=function(){e=e.substring(0,e.length-1)},this.endBody=function(){},this.endFile=function(){},this.getFile=function(){return e}};e.prototype=new t.jqx.dataAdapter.DataExportModuleBase;var r=function(){};r.prototype=new e(",");var n=function(){};n.prototype=new e("\t"),t.jqx.dataAdapter.ArrayExporter.extend("csv",new r),t.jqx.dataAdapter.ArrayExporter.extend("tsv",new n)}(jqxBaseFramework),function(t){var e=function(){var t,e,r=!1,n=0;function i(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(r&&"font-size"==n&&(t[n]="100%"),e+=n+":"+t[n]+";");return e}this.setPDF=function(){r=!0},this.beginFile=function(e){t=r||null==e?'<table style="empty-cells: show;" cellspacing="0" cellpadding="2">':'<html>\n\t<head>\n\t\t<title></title>\n\t\t<meta http-equiv=Content-type content="text/html; charset=UTF-8">\n\t</head>\n\t<body>\n\t\t<table style="empty-cells: show;" cellspacing="0" cellpadding="2">'},this.beginHeader=function(){t+=r?"\n\t<thead><tr>":"\n\t\t\t<thead>"},this.appendHeaderCell=function(n,s,o,a){if(e=a,a)if(r)t+='\n\t\t\t\t<th style="'+i(o)+'">'+n.text+"</th>";else{if(o.disabled)return;t+=o.merge?n.width?"\n\t\t\t\t<th colspan="+(1+o.merge)+' style="width: '+n.width+"px; "+i(o)+'">'+n.text+"</th>":"\n\t\t\t\t<th colspan="+(1+o.merge)+' style="'+i(o)+'">'+n.text+"</th>":n.width?'\n\t\t\t\t<th style="width: '+n.width+"px; "+i(o)+'">'+n.text+"</th>":'\n\t\t\t\t<th style="'+i(o)+'">'+n.text+"</th>"}},this.endHeader=function(){t+=r?"\n\t</tr></thead>":"\n\t\t\t</thead>"},this.beginBody=function(){t+=r?"\n\t<tbody>":"\n\t\t\t<tbody>",n=0},this.beginRow=function(){t+=r?"\n\t<tr>":"\n\t\t\t\t<tr>",n++},this.appendBodyCell=function(s,o,a){var l=this.getFormat(o);""===s&&(s=" "),t+=r?1!=n||e?'\n\t\t\t\t\t<td style="'+i(a)+'">'+this.formatData(s,l.type,l.formatString,l.localization)+"</td>":'\n\t\t\t\t\t<td style="'+i(a)+' border-top-width: 1px;">'+this.formatData(s,l.type,l.formatString,l.localization)+"</td>":a.merge?1!=n||e?"\n\t\t\t\t\t<td colspan="+(1+a.merge)+' style="'+i(a)+'">'+this.formatData(s,l.type,l.formatString,l.localization)+"</td>":"\n\t\t\t\t\t<td colspan="+(1+a.merge)+' style="'+i(a)+' border-top-width: 1px;">'+this.formatData(s,l.type,l.formatString,l.localization)+"</td>":1!=n||e?'\n\t\t\t\t\t<td style="'+i(a)+'">'+this.formatData(s,l.type,l.formatString,l.localization)+"</td>":'\n\t\t\t\t\t<td style="'+i(a)+' border-top-width: 1px;">'+this.formatData(s,l.type,l.formatString,l.localization)+"</td>"},this.endRow=function(){t+=r?"\n\t</tr>":"\n\t\t\t\t</tr>"},this.endBody=function(){t+=r?"\n\t</tbody>":"\n\t\t\t</tbody>"},this.endFile=function(e){t+=r||null==e?"\n</table>":"\n\t\t</table>\n\t</body>\n</html>\n"},this.getFile=function(){return t}};e.prototype=new t.jqx.dataAdapter.DataExportModuleBase;var r=function(){};r.prototype=new e;var n=function(){};n.prototype=new e;var i=new n;t.jqx.dataAdapter.ArrayExporter.extend("html",new r),t.jqx.dataAdapter.ArrayExporter.extend("pdf",i)}(jqxBaseFramework),function(t){var e=function(){var t,e,r,n,i,s,o={style:"",stylesMap:{font:{color:"Color","font-family":"FontName","font-style":"Italic","font-weight":"Bold"},interior:{"background-color":"Color",background:"Color"},alignment:{left:"Left",center:"Center",right:"Right"}},startStyle:function(t){this.style+='\n\t\t<Style ss:ID="'+t+'" ss:Name="'+t+'">'},buildAlignment:function(t){if(t["text-align"]){var e=this.stylesMap.alignment[t["text-align"]];e||(e="Left"),this.style+='\n\t\t\t<Alignment ss:Vertical="Bottom" ss:Horizontal="'+e+'"/>'}},buildBorder:function(t){if(t["border-color"]){var e="\n\t\t\t<Borders>";e+='\n\t\t\t\t<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+t["border-color"]+'"/>',e+='\n\t\t\t\t<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+t["border-color"]+'"/>',e+='\n\t\t\t\t<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+t["border-color"]+'"/>',e+='\n\t\t\t\t<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" ss:Color="'+t["border-color"]+'"/>',this.style+=e+="\n\t\t\t</Borders>"}},buildFont:function(t){var e=this.stylesMap.font,r="\n\t\t\t<Font ";for(var n in e)void 0!==t[n]&&("font-style"===n&&"italic"===t[n].toString().toLowerCase()?r+='ss:Italic="1" ':"font-weight"===n&&"bold"===t[n].toString().toLowerCase()?r+='ss:Bold="1" ':"color"===n&&(r+="ss:"+e[n]+'="'+t[n]+'" '));this.style+=r+="/>"},buildInterior:function(t){var e=this.stylesMap.interior,r="\n\t\t\t<Interior ",n=!1;for(var i in e)void 0!==t[i]&&(r+="ss:"+e[i]+'="'+t[i]+'" ',n=!0);n&&(r+='ss:Pattern="Solid"'),this.style+=r+="/>"},buildFormat:function(t){if("number"==t.dataType||"float"==t.dataType||"int"==t.dataType||"integer"==t.dataType){var e=t.formatString;""==e||-1!=e.indexOf("n")||-1!=e.indexOf("N")?this.style+='\n\t\t\t<NumberFormat ss:Format="0"/>':"f"==e||"F"==e||"D"==e||-1!=e.indexOf("d")?this.style+='\n\t\t\t<NumberFormat ss:Format="#,##0.00_);[Red](#,##0.00)"/>':-1!=e.indexOf("p")||-1!=e.indexOf("P")?this.style+='\n\t\t\t<NumberFormat ss:Format="Percent"/>':-1==e.indexOf("c")&&-1==e.indexOf("C")||(t.currencysymbol&&8364==parseInt(t.currencysymbol.charCodeAt(0))?this.style+='\n\t\t\t<NumberFormat ss:Format="Euro Currency"/>':this.style+='\n\t\t\t<NumberFormat ss:Format="Currency"/>')}else"date"==t.dataType&&(this.style+='\n\t\t\t<NumberFormat ss:Format="Short Date"/>')},closeStyle:function(){this.style+="\n\t\t</Style>"},toString:function(){var t=this.style;return this.style="",t}};function a(r,n,a,h){var u="String",c=this.getFormat(n);if(null!=r&&"_AG"==r.toString().substring(0,3))r=r.toString().substring(3),u="String";else{if("date"==c.type){var d=r;null===(r=this.formatData(r,c.type,c.formatString,c.localization))||""===r?(r="",u="String"):(r=d.toISOString(),u="DateTime")}"string"==c.type&&(null==r?r="":(r.toString().indexOf("&")>=0&&(r=r.toString().replace(/&/g,"&")),r.toString().indexOf(">")>=0&&(r=r.toString().replace(/>/g,">")),r.toString().indexOf("<")>=0&&(r=r.toString().replace(/</g,"<")),r.toString().indexOf('"')>=0&&(r=r.toString().replace(/"/g,""")),r.toString().indexOf("'")>=0&&(r=r.toString().replace(/'/g,"'")))),"number"!=a.dataType&&"float"!=a.dataType&&"int"!=a.dataType&&"integer"!=a.dataType||(u="Number",(null===(r=parseFloat(r))||isNaN(r)||""===r)&&(r="",u="String"),r&&"String"!=u&&""!=r&&n&&n.formatString&&n.formatString.indexOf("p")>=0&&(r/=100),a.currencysymbol=n.localization.currencysymbol)}var f=function(e){if(!e)return"";var r=function(t){for(var e in i)if(l(t,i[e])&&l(i[e],t))return e}(e);return void 0===r&&(r="xls-style-"+(s+=1),i[r]=e,function(e,r){o.startStyle(e),o.buildAlignment(r),o.buildBorder(r),o.buildFont(r),o.buildInterior(r),o.buildFormat(r),o.closeStyle(),t+=o.toString()}(r,e)),r}(a);e+=a.merge?'\n\t\t\t\t<Cell ss:MergeAcross="'+a.merge+'" ss:StyleID="'+f+'"><Data ss:Type="'+u+'">'+r+"</Data></Cell>":'\n\t\t\t\t<Cell ss:StyleID="'+f+'"><Data ss:Type="'+u+'">'+r+"</Data></Cell>"}function l(t,e){var r=!0;for(var n in t)t[n]!==e[n]&&(r=!1);return r}this.beginFile=function(){i={},s=0,t='<?xml version="1.0"?>\n\t<?mso-application progid="Excel.Sheet"?> \n\t<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" \n\txmlns:o="urn:schemas-microsoft-com:office:office" \n\txmlns:x="urn:schemas-microsoft-com:office:excel" \n\txmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" \n\txmlns:html="http://www.w3.org/TR/REC-html40"> \n\t<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> \n\t<Version>12.00</Version> \n\t</DocumentProperties> \n\t<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> \n\t<WindowHeight>8130</WindowHeight> \n\t<WindowWidth>15135</WindowWidth> \n\t<WindowTopX>120</WindowTopX> \n\t<WindowTopY>45</WindowTopY> \n\t<ProtectStructure>False</ProtectStructure> \n\t<ProtectWindows>False</ProtectWindows> \n\t</ExcelWorkbook> \n\t<Styles>'},this.beginHeader=function(){e='\n\t<Worksheet ss:Name="Sheet1">\n\t\t<Table>',r=[],n=[]},this.appendHeaderCell=function(t,i,s){e+='\n\t\t\t<Column ss:Width="'+(null!=t.width?t.width:10*t.text.length)+'"/>',r.push(t),n.push(s)},this.endHeader=function(t){if(t){this.beginRow();for(var e=0;e<r.length;e+=1)n[e].disabled||a.call(this,r[e].text,null,n[e]);this.endRow()}},this.beginBody=function(){},this.beginRow=function(t){if(null==t)e+="\n\t\t\t<Row>";else{e+="\n\t\t\t";for(var r=0;r<t;r++)e+="\t";e+="<Row>"}},this.beginRows=function(t){e+="\n\t\t\t\t<Rows>"},this.appendBodyCell=function(t,e,r,n){a.call(this,t,e,r,n)},this.endRow=function(t){if(null==t)e+="\n\t\t\t</Row>";else{e+="\n\t\t\t";for(var r=0;r<t;r++)e+="\t";e+="</Row>"}},this.endRows=function(t){if(null==t);else{e+="\n\t\t\t";for(var r=0;r<t;r++)e+="\t";e+="</Rows>"}},this.endBody=function(){e+="\n\t\t</Table>"},this.endFile=function(){e+="\n\t</Worksheet>\n</Workbook>",t+="\n\t</Styles>"},this.getFile=function(){return t+e}};e.prototype=new t.jqx.dataAdapter.DataExportModuleBase,t.jqx.dataAdapter.ArrayExporter.extend("xls",new e)}(jqxBaseFramework),function(t){var e=function(){var t,e,r;this.beginFile=function(){t='<?xml version="1.0" encoding="UTF-8" ?>',t+="\n<table>"},this.beginHeader=function(){e=[]},this.appendHeaderCell=function(t,r){e.push(r)},this.endHeader=function(){},this.beginBody=function(t,e){},this.beginRow=function(e){var n=this;if(n||(n=window.jqx),null!=e&&n.hierarchy){t+="\n\t";for(var i=0;i<e;i++)t+="\t\t";return t+="<row>",void(r=0)}t+="\n\t<row>",r=0},this.beginRows=function(e){if(null!=e){t+="\n\t\t";for(var n=0;n<e;n++)t+="\t\t";return t+="<rows>",void(r=0)}t+="\n\t\t<rows>"},this.appendBodyCell=function(n,i,s,o,a,l){var h=this;h||(h=window.jqx);var u=this.getFormat(i);if(n=this.formatData(n,u.type,u.formatString,u.localization),"string"==u.type&&(n.toString().indexOf("&")>=0&&(n=n.toString().replace(/&/g,"&")),n.toString().indexOf(">")>=0&&(n=n.toString().replace(/>/g,">")),n.toString().indexOf("<")>=0&&(n=n.toString().replace(/</g,"<")),n.toString().indexOf('"')>=0&&(n=n.toString().replace(/"/g,""")),n.toString().indexOf("'")>=0&&(n=n.toString().replace(/'/g,"'"))),null!=o.level)if(h.hierarchy){t+="\n\t\t";for(var c=0;c<o.level;c++)t+="\t\t";t+=void 0===l?"<"+e[r]+">"+n+"</"+e[r]+">":"<"+l+">"+n+"</"+l+">"}else t+=null!=l?"\n\t\t<"+l+">"+n+"</"+l+">":"\n\t\t<"+e[r]+">"+n+"</"+e[r]+">";else t+="\n\t\t<"+e[r]+">"+n+"</"+e[r]+">";r++},this.endRow=function(e){var n=this;if(n||(n=window.jqx),null!=e&&n.hierarchy){t+="\n\t";for(var i=0;i<e;i++)t+="\t\t";return t+="</row>",void(r=0)}t+="\n\t</row>",r=0},this.endRows=function(e){if(null!=e){t+="\n\t\t";for(var n=0;n<e;n++)t+="\t\t";return t+="</rows>",void(r=0)}t+="\n\t\t</rows>"},this.endBody=function(){},this.endFile=function(){t+="\n</table>"},this.getFile=function(){return t}};e.prototype=new t.jqx.dataAdapter.DataExportModuleBase,t.jqx.dataAdapter.ArrayExporter.extend("xml",new e)}(jqxBaseFramework),function(t){var e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function n(t){return'"'+t.replace(e,(function(t){var e=r[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"'}function i(t){return t<10?"0"+t:t}var s=function(){var t=this;this.prepareData=function(e,r){if(r){var n=t.getFormat(r);e=t.formatData(e,n.type,n.formatString,n.localization)}return e};var e,r,s,o=[],a=0;this.beginFile=function(){r=[]},this.beginHeader=function(){},this.appendHeaderCell=function(t){},this.endHeader=function(){},this.beginBody=function(t,e){},this.beginRow=function(){var t=this;t||(t=window.jqx),t.hierarchy||window.jqx.hierarchy?o[a]={}:s={}},this.beginRows=function(){o[a].rows=[],a++,o[a]={}},this.endRows=function(){a--},this.appendBodyCell=function(t,e){var r=this;r||(r=window.jqx);var n=this.prepareData(t,e);r.hierarchy||window.jqx.hierarchy?o[a][e.text]=n:s[e.text]=n},this.endRow=function(){var t=this;t||(t=window.jqx),t.hierarchy||window.jqx.hierarchy?0==a?r.push(o[a]):o[a-1].rows.push(o[a]):r.push(s)},this.endBody=function(){},this.endFile=function(){e=function(t){return window.JSON&&"function"==typeof window.JSON.stringify?window.JSON.stringify(t):function t(e,r){var s=r[e],o=typeof s;return s&&"object"==typeof s&&"function"==typeof s.toJSON&&(o=typeof(s=s.toJSON(e))),/(number|float|int|integer|string|boolean)/.test(o)||!s&&"object"===o?function(t,e){switch(e){case"string":return n(t);case"number":case"float":case"integer":case"int":return isFinite(t)?t:"null";case"boolean":return t}return"null"}(s,o):function(e){switch(Object.prototype.toString.call(e)){case"[object Date]":return r=e,isFinite(r.valueOf())?r.getUTCFullYear()+"-"+i(r.getUTCMonth()+1)+"-"+i(r.getUTCDate())+"T"+i(r.getUTCHours())+":"+i(r.getUTCMinutes())+":"+i(r.getUTCSeconds())+'Z"':"null";case"[object Array]":return function(e){var r,n=e.length,i=[];for(r=0;r<n;r++)i.push(t(r,e)||"null");return"["+i.join(",")+"]"}(e)}var r;return function(e){var r,i,s=[];for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i=t(r,e))&&s.push(n(r)+":"+i);return"{"+s.join(",")+"}"}(e)}(s)}("",{"":t})}(r)},this.getFile=function(){return e}};s.prototype=new t.jqx.dataAdapter.DataExportModuleBase,t.jqx.dataAdapter.ArrayExporter.extend("json",new s)}(jqxBaseFramework);var i=window.jqxPdfDataExport=function(){"undefined"==typeof btoa&&(window.btoa=function(t){var e,r,n,i,s,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),a=0,l=0,h="",u=[];do{e=t.charCodeAt(a++),r=t.charCodeAt(a++),n=t.charCodeAt(a++),u[l++]=o[(i=e<<16|r<<8|n)>>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]}while(a<t.length);return h=u.join(""),((s=t.length%3)?h.slice(0,s-3):h)+"===".slice(s||3)}),"undefined"==typeof atob&&(window.atob=function(t){var e,r,n,i,s,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,h=0,u=[];if(!t)return t;t+="";do{e=(o=a.indexOf(t.charAt(l++))<<18|a.indexOf(t.charAt(l++))<<12|(i=a.indexOf(t.charAt(l++)))<<6|(s=a.indexOf(t.charAt(l++))))>>16&255,r=o>>8&255,n=255&o,u[h++]=64===i?String.fromCharCode(e):64===s?String.fromCharCode(e,r):String.fromCharCode(e,r,n)}while(l<t.length);return u.join("")});var t="function"==typeof Object.keys?function(t){return Object.keys(t).length}:function(t){var e,r=0;for(e in t)t.hasOwnProperty(e)&&r++;return r},e=function(t){this.topics={},this.context=t,this.publish=function(t,e){if(this.topics[t]){var r,n,i,s,o=this.topics[t],a=[],l=function(){};for(e=Array.prototype.slice.call(arguments,1),n=0,i=o.length;n<i;n++)r=(s=o[n])[0],s[1]&&(s[0]=l,a.push(n)),r.apply(this.context,e);for(n=0,i=a.length;n<i;n++)o.splice(a[n],1)}},this.subscribe=function(t,e,r){return this.topics[t]?this.topics[t].push([e,r]):this.topics[t]=[[e,r]],{topic:t,callback:e}},this.unsubscribe=function(t){if(this.topics[t.topic]){var e,r,n=this.topics[t.topic];for(e=0,r=n.length;e<r;e++)n[e][0]===t.callback&&n.splice(e,1)}}};function r(n,i,o,a){n=void 0===n?"p":n.toString().toLowerCase(),void 0===i&&(i="mm"),void 0===o&&(o="a4"),void 0===a&&"undefined"==typeof zpipe&&(a=!1);var l,h,u,c,d,f,p,g,m,v=o.toString().toLowerCase(),y=[],x=0,_=a,b={a3:[841.89,1190.55],a4:[595.28,841.89],a5:[420.94,595.28],letter:[612,792],legal:[612,1008]},w="0 g",C=0,S=[],A=2,k=!1,T=[],j={},q={},N=16,E={title:"",subject:"",author:"",keywords:"",creator:""},M=0,O=0,I={},D=new e(I),P=function(t){return t.toFixed(2)},R=function(t){return t.toFixed(3)},F=function(t){var e=t.toFixed(0);return t<10?"0"+e:e},L=function(t){var e=t.toFixed(0);return e.length<10?new Array(11-e.length).join("0")+e:e},H=function(t){k?S[C].push(t):(y.push(t),x+=t.length+1)},V=function(){return A++,T[A]=x,H(A+" 0 obj"),A},B=function(t){H("stream"),H(t),H("endstream")},z=function(t){t.objectNumber=V(),H("<</BaseFont/"+t.PostScriptName+"/Type/Font"),"string"==typeof t.encoding&&H("/Encoding/"+t.encoding),H("/Subtype/Type1>>"),H("endobj")},G=function(t,e,r){void 0===q[e]&&(q[e]={}),q[e][r]=t},U=function(e,r,n,i){var s="F"+(t(j)+1).toString(10),o=j[s]={id:s,PostScriptName:e,fontName:r,fontStyle:n,encoding:i,metadata:{}};return G(s,r,n),D.publish("addFont",o),s},W=function(t,e){return function(t,e){var r,n,i,s,o,a,h,u,c,d;if(e===i&&(e={}),s=e.sourceEncoding?s:"Unicode",a=e.outputEncoding,(e.autoencode||a)&&j[l].metadata&&j[l].metadata[s]&&j[l].metadata[s].encoding&&(o=j[l].metadata[s].encoding,!a&&j[l].encoding&&(a=j[l].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(u=!1,h=[],r=0,n=t.length;r<n;r++)c=a[t.charCodeAt(r)],h.push(c?String.fromCharCode(c):t[r]),h[r].charCodeAt(0)>>8&&(u=!0);t=h.join("")}for(r=t.length;u===i&&0!==r;)t.charCodeAt(r-1)>>8&&(u=!0),r--;if(u){for(h=e.noBOM?[]:[254,255],r=0,n=t.length;r<n;r++){if((d=(c=t.charCodeAt(r))>>8)>>8)throw new Error("Character at position "+r.toString(10)+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");h.push(d),h.push(c-(d<<8))}return String.fromCharCode.apply(i,h)}return t}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},$=function(){C++,k=!0,S[C]=[],H(P(.200025*c)+" w"),H("0 G"),0!==M&&H(M.toString(10)+" J"),0!==O&&H(O.toString(10)+" j"),D.publish("addPage",{pageNumber:C})},X=function(t,e){var r,n;t===n&&(t=j[l].fontName),e===n&&(e=j[l].fontStyle);try{r=q[t][e]}catch(i){r=n}if(!r)throw new Error("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts.");return r},Y=function(){k=!1,y=[],T=[],H("%PDF-1.3"),function(){var t,e,r,n,i,s;for(p=u*c,g=h*c,t=1;t<=C;t++){if(V(),H("<</Type /Page"),H("/Parent 1 0 R"),H("/Resources 2 0 R"),H("/Contents "+(A+1)+" 0 R>>"),H("endobj"),e=S[t].join("\n"),V(),_){for(r=[],n=0;n<e.length;++n)r[n]=e.charCodeAt(n);for(n in s=adler32cs.from(e),(i=new Deflater(6)).append(new Uint8Array(r)),e=i.flush(),r=[new Uint8Array([120,156]),new Uint8Array(e),new Uint8Array([255&s,s>>8&255,s>>16&255,s>>24&255])],e="",r)r.hasOwnProperty(n)&&(e+=String.fromCharCode.apply(null,r[n]));H("<</Length "+e.length+" /Filter [/FlateDecode]>>")}else H("<</Length "+e.length+">>");B(e),H("endobj")}for(T[1]=x,H("1 0 obj"),H("<</Type /Pages"),m="/Kids [",n=0;n<C;n++)m+=3+2*n+" 0 R ";H(m+"]"),H("/Count "+C),H("/MediaBox [0 0 "+P(p)+" "+P(g)+"]"),H(">>"),H("endobj")}(),function(){var t;for(t in j)j.hasOwnProperty(t)&&z(j[t])}(),D.publish("putResources"),T[2]=x,H("2 0 obj"),H("<<"),function(){var t;for(t in H("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),H("/Font <<"),j)j.hasOwnProperty(t)&&H("/"+t+" "+j[t].objectNumber+" 0 R");H(">>"),H("/XObject <<"),D.publish("putXobjectDict"),H(">>")}(),H(">>"),H("endobj"),D.publish("postPutResources"),V(),H("<<"),function(){H("/Producer (pdfDataExport 0.9.0rc2)"),E.title&&H("/Title ("+W(E.title)+")"),E.subject&&H("/Subject ("+W(E.subject)+")"),E.author&&H("/Author ("+W(E.author)+")"),E.keywords&&H("/Keywords ("+W(E.keywords)+")"),E.creator&&H("/Creator ("+W(E.creator)+")");var t=new Date;H("/CreationDate (D:"+[t.getFullYear(),F(t.getMonth()+1),F(t.getDate()),F(t.getHours()),F(t.getMinutes()),F(t.getSeconds())].join("")+")")}(),H(">>"),H("endobj"),V(),H("<<"),H("/Type /Catalog"),H("/Pages 1 0 R"),H("/OpenAction [3 0 R /FitH null]"),H("/PageLayout /OneColumn"),D.publish("putCatalog"),H(">>"),H("endobj");var t,e=x;for(H("xref"),H("0 "+(A+1)),H("0000000000 65535 f "),t=1;t<=A;t++)H(L(T[t])+" 00000 n ");return H("trailer"),H("<<"),H("/Size "+(A+1)),H("/Root "+A+" 0 R"),H("/Info "+(A-1)+" 0 R"),H(">>"),H("startxref"),H(e),H("%%EOF"),k=!0,y.join("\n")},Q=function(t){var e="S";return"F"===t?e="f":"FD"!==t&&"DF"!==t||(e="B"),e},J=function(t,e){var r,n,i,o,a;switch(t){case void 0:return Y();case"save":if(navigator.getUserMedia){if(void 0===window.URL)return I.output("dataurlnewwindow");if(void 0===window.URL.createObjectURL)return I.output("dataurlnewwindow")}for(n=(r=Y()).length,i=new Uint8Array(new ArrayBuffer(n)),o=0;o<n;o++)i[o]=r.charCodeAt(o);a=new Blob([i],{type:"application/pdf"}),s(a,e);break;case"datauristring":case"dataurlstring":return"data:application/pdf;base64,"+btoa(Y());case"datauri":case"dataurl":document.location.href="data:application/pdf;base64,"+btoa(Y());break;case"dataurlnewwindow":window.open("data:application/pdf;base64,"+btoa(Y()));break;default:throw new Error('Output type "'+t+'" is not supported.')}};if("pt"===i)c=1;else if("mm"===i)c=72/25.4;else if("cm"===i)c=72/2.54;else{if("in"!==i)throw"Invalid unit: "+i;c=72}if(b.hasOwnProperty(v))h=b[v][1]/c,u=b[v][0]/c;else try{h=o[1],u=o[0]}catch(tt){throw"Invalid format: "+o}if("p"===n||"portrait"===n)n="p",u>h&&(d=u,u=h,h=d);else{if("l"!==n&&"landscape"!==n)throw"Invalid orientation: "+n;n="l",h>u&&(d=u,u=h,h=d)}I.internal={pdfEscape:W,getStyle:Q,getFont:function(){return j[X.apply(I,arguments)]},getFontSize:function(){return N},btoa,write:function(t,e,r,n){H(1===arguments.length?t:Array.prototype.join.call(arguments," "))},getCoordinateString:function(t){return P(t*c)},getVerticalCoordinateString:function(t){return P((h-t)*c)},collections:{},newObject:V,putStream:B,events:D,scaleFactor:c,pageSize:{width:u,height:h},output:function(t,e){return J(t,e)}},I.addPage=function(){return $(),this};var Z=["","0","00","000","0000"],K=function(t,e){for(var r,n=["FEFF"],i=0,s=t.length;i<s;++i)r=t.charCodeAt(i).toString(16).toUpperCase(),n.push(Z[4-r.length],r);return n.join("")};for(f in I.text16=function(t,e,r,n){var i,s,o,a,u;if("number"==typeof t&&(i=t,s=e,t=r,e=i,r=s),"string"==typeof t&&t.match(/[\n\r]/)&&(t=t.split(/\r\n|\r|\n/g)),void 0===n?n={noBOM:!0,autoencode:!0}:(void 0===n.noBOM&&(n.noBOM=!0),void 0===n.autoencode&&(n.autoencode=!0)),n.autoencode=!1,"string"==typeof t)a=K(t);else{if(!(t instanceof Array))throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');for(u=(o=t.concat()).length-1;-1!==u;u--)o[u]=K(o[u]);a=o.join("> Tj\nT* <")}return H("BT\n/"+l+" "+N+" Tf\n"+N+" TL\n"+w+"\n"+P(e*c)+" "+P((h-r)*c)+" Td\n<"+a+"> Tj\nET"),this},I.text=function(t,e,r,n){var i,s,o,a,u;if("number"==typeof t&&(i=t,s=e,t=r,e=i,r=s),"string"==typeof t&&t.match(/[\n\r]/)&&(t=t.split(/\r\n|\r|\n/g)),void 0===n?n={noBOM:!0,autoencode:!0}:(void 0===n.noBOM&&(n.noBOM=!0),void 0===n.autoencode&&(n.autoencode=!0)),"string"==typeof t)a=W(t,n);else{if(!(t instanceof Array))throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');for(u=(o=t.concat()).length-1;-1!==u;u--)o[u]=W(o[u],n);a=o.join(") Tj\nT* (")}return H("BT\n/"+l+" "+N+" Tf\n"+N+" TL\n"+w+"\n"+P(e*c)+" "+P((h-r)*c)+" Td\n("+a+") Tj\nET"),this},I.line=function(t,e,r,n){return H(P(t*c)+" "+P((h-e)*c)+" m "+P(r*c)+" "+P((h-n)*c)+" l S"),this},I.lines=function(t,e,r,n,i){var s,o,a,l,u,d,f,p,g,m,v,y,x;for("number"==typeof t&&(s=t,o=e,t=r,e=s,r=o),i=Q(i),n=void 0===n?[1,1]:n,H(R(e*c)+" "+R((h-r)*c)+" m "),a=n[0],l=n[1],d=t.length,y=e,x=r,u=0;u<d;u++)2===(f=t[u]).length?(x=f[1]*l+x,H(R((y=f[0]*a+y)*c)+" "+R((h-x)*c)+" l")):(p=f[0]*a+y,g=f[1]*l+x,m=f[2]*a+y,v=f[3]*l+x,y=f[4]*a+y,x=f[5]*l+x,H(R(p*c)+" "+R((h-g)*c)+" "+R(m*c)+" "+R((h-v)*c)+" "+R(y*c)+" "+R((h-x)*c)+" c"));return H(i),this},I.rect=function(t,e,r,n,i){var s=Q(i);return H([P(t*c),P((h-e)*c),P(r*c),P(-n*c),"re",s].join(" ")),this},I.triangle=function(t,e,r,n,i,s,o){return this.lines([[r-t,n-e],[i-r,s-n],[t-i,e-s]],t,e,[1,1],o),this},I.roundedRect=function(t,e,r,n,i,s,o){var a=4/3*(Math.SQRT2-1);return this.lines([[r-2*i,0],[i*a,0,i,s-s*a,i,s],[0,n-2*s],[0,s*a,-i*a,s,-i,s],[2*i-r,0],[-i*a,0,-i,-s*a,-i,-s],[0,2*s-n],[0,-s*a,i*a,-s,i,-s]],t+i,e,[1,1],o),this},I.ellipse=function(t,e,r,n,i){var s=Q(i),o=4/3*(Math.SQRT2-1)*r,a=4/3*(Math.SQRT2-1)*n;return H([P((t+r)*c),P((h-e)*c),"m",P((t+r)*c),P((h-(e-a))*c),P((t+o)*c),P((h-(e-n))*c),P(t*c),P((h-(e-n))*c),"c"].join(" ")),H([P((t-o)*c),P((h-(e-n))*c),P((t-r)*c),P((h-(e-a))*c),P((t-r)*c),P((h-e)*c),"c"].join(" ")),H([P((t-r)*c),P((h-(e+a))*c),P((t-o)*c),P((h-(e+n))*c),P(t*c),P((h-(e+n))*c),"c"].join(" ")),H([P((t+o)*c),P((h-(e+n))*c),P((t+r)*c),P((h-(e+a))*c),P((t+r)*c),P((h-e)*c),"c",s].join(" ")),this},I.circle=function(t,e,r,n){return this.ellipse(t,e,r,r,n)},I.setProperties=function(t){var e;for(e in E)E.hasOwnProperty(e)&&t[e]&&(E[e]=t[e]);return this},I.setFontSize=function(t){return N=t,this},I.setFont=function(t,e){return l=X(t,e),this},I.setFontStyle=I.setFontType=function(t){return l=X(void 0,t),this},I.getFontList=function(){var t,e,r,n={};for(t in q)if(q.hasOwnProperty(t))for(e in n[t]=r=[],q[t])q[t].hasOwnProperty(e)&&r.push(e);return n},I.setLineWidth=function(t){return H((t*c).toFixed(2)+" w"),this},I.setDrawColor=function(t,e,r,n){var i;return i=void 0===e||void 0===n&&t===e===r?"string"==typeof t?t+" G":P(t/255)+" G":void 0===n?"string"==typeof t?[t,e,r,"RG"].join(" "):[P(t/255),P(e/255),P(r/255),"RG"].join(" "):"string"==typeof t?[t,e,r,n,"K"].join(" "):[P(t),P(e),P(r),P(n),"K"].join(" "),H(i),this},I.setFillColor=function(t,e,r,n){var i;return i=void 0===e||void 0===n&&t===e===r?"string"==typeof t?t+" g":P(t/255)+" g":void 0===n?"string"==typeof t?[t,e,r,"rg"].join(" "):[P(t/255),P(e/255),P(r/255),"rg"].join(" "):"string"==typeof t?[t,e,r,n,"k"].join(" "):[P(t),P(e),P(r),P(n),"k"].join(" "),H(i),this},I.setTextColor=function(t,e,r){return w=0===t&&0===e&&0===r||void 0===e?R(t/255)+" g":[R(t/255),R(e/255),R(r/255),"rg"].join(" "),this},I.CapJoinStyles={0:0,butt:0,but:0,bevel:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,milter:2},I.setLineCap=function(t){var e=this.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return M=e,H(e.toString(10)+" J"),this},I.setLineJoin=function(t){var e=this.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return O=e,H(e.toString(10)+" j"),this},I.output=J,I.save=function(t){I.output("save",t)},r.API)r.API.hasOwnProperty(f)&&("events"===f&&r.API.events.length?function(t,e){var r,n;for(n=e.length-1;-1!==n;n--)t.subscribe.apply(t,[e[n][0]].concat("function"==typeof(r=e[n][1])?[r]:r))}(D,r.API.events):I[f]=r.API[f]);return function(){var t,e,r,n,i="helvetica",s="times",o="courier",a="normal",l="bold",h="italic",u="bolditalic",c=[["Helvetica",i,a],["Helvetica-Bold",i,l],["Helvetica-Oblique",i,h],["Helvetica-BoldOblique",i,u],["Courier",o,a],["Courier-Bold",o,l],["Courier-Oblique",o,h],["Courier-BoldOblique",o,u],["Times-Roman",s,a],["Times-Bold",s,l],["Times-Italic",s,h],["Times-BoldItalic",s,u]];for(t=0,e=c.length;t<e;t++)r=U(c[t][0],c[t][1],c[t][2],"StandardEncoding"),n=c[t][0].split("-"),G(r,n[0],n[1]||"");D.publish("addFonts",{fonts:j,dictionary:q})}(),l="F1",$(),D.publish("initialized"),I}return r.API={events:[]},r}();!function(t){var e,r,n,i=0,s=0,o={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},a=1,l=!1,h=function(t,e,r,n,i){o={x:t,y:e,w:r,h:n,ln:i}},u=function(){return o},c=function(){return i},d=function(t){s=t},f=function(t){return s};t.getTextDimensions=function(t){e=this.internal.getFont().fontName,r=this.internal.getFontSize(),n=this.internal.getFont().fontStyle;var i,s,o=19.049976/25.4;return(s=document.createElement("font")).id="pdfDataExportCell",s.style.fontStyle=n,s.style.fontName=e,s.style.fontSize=r+"pt",s.innerHTML=t,document.body.appendChild(s),i={w:(s.offsetWidth+1)*o,h:(s.offsetHeight+1)*o},document.body.removeChild(s),i},t.cellAddPage=function(){this.addPage(),h(void 0,void 0,void 0,void 0,void 0),l=!0,a+=1,d(1)},t.cellInitialize=function(){i=0,o={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},a=1,l=!1,d(0)},t.cell=function(t,e,r,n,s,o){this.lnMod=void 0===this.lnMod?0:this.lnMod,!0!==this.printingHeaderRow&&0!==this.lnMod&&(o+=this.lnMod),(o*n+e+2*n)/a>=this.internal.pageSize.height&&1===a&&!l?(this.cellAddPage(),this.printHeaders&&this.tableHeaderRow&&(this.printHeaderRow(o),this.lnMod+=1,o+=1),0===c()&&function(t){i=t}(Math.round((this.internal.pageSize.height-2*n)/n))):l&&u().ln!==o&&f()===c()&&(this.cellAddPage(),this.printHeaders&&this.tableHeaderRow&&(this.printHeaderRow(o),this.lnMod+=1,o+=1));var p=u(),g=(this.getTextDimensions(s),1);return void 0!==p.x&&p.ln===o&&(t=p.x+p.w),void 0!==p.y&&p.y===e&&(e=p.y),void 0!==p.h&&p.h===n&&(n=p.h),void 0!==p.ln&&p.ln===o&&(o=p.ln,g=0),l?e=n*(f()+g):e+=n*Math.abs(c()*a-o-c()),this.rect(t,e,r,n),/[\u0430-\u044f\u0410-\u042f\u0401\u0451]/.test(s)?this.text16(s,t+3,e+n-3):this.text(s,t+3,e+n-3),d(f()+g),h(t,e,r,n,o),this},t.getKeys="function"==typeof Object.keys?function(t){return t?Object.keys(t):[]}:function(t){var e,r=[];for(e in t)t.hasOwnProperty(e)&&r.push(e);return r},t.arrayMax=function(t,e){var r,n,i,s=t[0];for(r=0,n=t.length;r<n;r+=1)i=t[r],e?-1===e(s,i)&&(s=i):i>s&&(s=i);return s},t.table=function(e,r,n){var i,s,o,a,l,h,u,c,d=[],f=[],p={},g={},m=[],v=[];if(this.lnMod=0,n&&(this.printHeaders=n.printHeaders||!0),!e)throw"No data for PDF table";if(null==r)d=this.getKeys(e[0]);else if(r[0]&&"string"!=typeof r[0])for(s=0,o=r.length;s<o;s+=1)d.push((i=r[s]).name),f.push(i.prompt);else d=r;if(n.autoSize)for(c=function(t){return t[i]},s=0,o=d.length;s<o;s+=1){for(p[i=d[s]]=e.map(c),m.push(this.getTextDimensions(f[s]||i).w),l=0,o=(a=p[i]).length;l<o;l+=1)m.push(this.getTextDimensions(a[l]).w);g[i]=t.arrayMax(m)}if(n.printHeaders){for(s=0,o=d.length;s<o;s+=1)v.push([10,10,g[i=d[s]],25,String(f.length?f[s]:i)]);this.setTableHeaderRow(v),this.printHeaderRow(1)}for(s=0,o=e.length;s<o;s+=1)for(h=e[s],l=0,u=d.length;l<u;l+=1)this.cell(10,10,g[i=d[l]],25,String(h[i]),s+2);return this},t.setTableHeaderRow=function(t){this.tableHeaderRow=t},t.printHeaderRow=function(t){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var e,r,n;for(this.printingHeaderRow=!0,r=0,n=this.tableHeaderRow.length;r<n;r+=1)e=[].concat(this.tableHeaderRow[r]),this.cell.apply(this,e.concat(t));this.printingHeaderRow=!1}}(i.API),function(t){var e=t.getCharWidthsArray=function(t,e){e||(e={});var r,n,i,s=e.widths?e.widths:this.internal.getFont().metadata.Unicode.widths,o=s.fof?s.fof:1,a=e.kerning?e.kerning:this.internal.getFont().metadata.Unicode.kerning,l=a.fof?a.fof:1,h=0,u=s[0]||o,c=[];for(r=0,n=t.length;r<n;r++)i=t.charCodeAt(r),c.push((s[i]||u)/o+(a[i]&&a[i][h]||0)/l),h=i;return c},r=function(t){for(var e=t.length,r=0;e;)r+=t[--e];return r},n=(t.getStringUnitWidth=function(t,n){return r(e.call(this,t,n))},function(t,e,r,n){for(var i=[],s=0,o=t.length,a=0;s!==o&&a+e[s]<r;)a+=e[s],s++;i.push(t.slice(0,s));var l=s;for(a=0;s!==o;)a+e[s]>n&&(i.push(t.slice(l,s)),a=0,l=s),a+=e[s],s++;return l!==s&&i.push(t.slice(l,s)),i}),i=function(t,i,s){s||(s={});var o,a,l,h,u,c=e(" ",s)[0],d=t.split(" "),f=[],p=[f],g=s.textIndent||0,m=0,v=0;for(l=0,h=d.length;l<h;l++)if(a=e(o=d[l],s),g+m+(v=r(a))>i){if(v>i){for(u=n(o,a,i-(g+m),i),f.push(u.shift()),f=[u.pop()];u.length;)p.push([u.shift()]);v=r(a.slice(o.length-f[0].length))}else f=[o];p.push(f),g=v,m=c}else f.push(o),g+=m+v,m=c;var y=[];for(l=0,h=p.length;l<h;l++)y.push(p[l].join(" "));return y};t.splitTextToSize=function(t,e,r){r||(r={});var n,s=r.fontSize||this.internal.getFontSize(),o=(function(t){var e={0:1},r={};if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var n=this.internal.getFont(t.fontName,t.fontStyle),i="Unicode";return n.metadata[i]?{widths:n.metadata[i].widths||e,kerning:n.metadata[i].kerning||r}:{widths:e,kerning:r}}).call(this,r);n=t.match(/[\n\r]/)?t.split(/\r\n|\r|\n/g):[t];var a=1*this.internal.scaleFactor*e/s;o.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/s:0;var l,h,u=[];for(l=0,h=n.length;l<h;l++)u=u.concat(i(n[l],a,o));return u}}(i.API),function(t){var e="addImage_",r=function(t){var e=this.internal.newObject(),r=this.internal.write,n=this.internal.putStream;if(t.n=e,r("<</Type /XObject"),r("/Subtype /Image"),r("/Width "+t.w),r("/Height "+t.h),"Indexed"===t.cs?r("/ColorSpace [/Indexed /DeviceRGB "+(t.pal.length/3-1)+" "+(e+1)+" 0 R]"):(r("/ColorSpace /"+t.cs),"DeviceCMYK"===t.cs&&r("/Decode [1 0 1 0 1 0 1 0]")),r("/BitsPerComponent "+t.bpc),"f"in t&&r("/Filter /"+t.f),"dp"in t&&r("/DecodeParms <<"+t.dp+">>"),"trns"in t&&t.trns.constructor==Array)for(var i="",s=0;s<t.trns.length;s++)r("/Mask ["+(i+=t[i][s]+" "+t.trns[s]+" ")+"]");"smask"in t&&r("/SMask "+(e+1)+" 0 R"),r("/Length "+t.data.length+">>"),n(t.data),r("endobj")},n=function(){var t=this.internal.collections[e+"images"];for(var n in t)r.call(this,t[n])},i=function(){var t,r=this.internal.collections[e+"images"],n=this.internal.write;for(var i in r)n("/I"+(t=r[i]).i,t.n,"0","R")};t.addImage=function(t,r,s,o,a,l){if("object"==typeof t&&1===t.nodeType){var h=document.createElement("canvas");h.width=t.clientWidth,h.height=t.clientHeight;var u=h.getContext("2d");if(!u)throw"addImage requires canvas to be supported by browser.";u.drawImage(t,0,0,h.width,h.height),t=h.toDataURL("image/jpeg"),r="JPEG"}if("JPEG"!==r.toUpperCase())throw new Error("addImage currently only supports format 'JPEG', not '"+r+"'");var c,d=this.internal.collections[e+"images"],f=this.internal.getCoordinateString,p=this.internal.getVerticalCoordinateString;"data:image/jpeg;base64,"===t.substring(0,23)&&(t=atob(t.replace("data:image/jpeg;base64,",""))),d?c=Object.keys?Object.keys(d).length:function(t){var e=0;for(var r in t)t.hasOwnProperty(r)&&e++;return e}(d):(c=0,this.internal.collections[e+"images"]=d={},this.internal.events.subscribe("putResources",n),this.internal.events.subscribe("putXobjectDict",i));var g=function(t){var e;if(255===!t.charCodeAt(0)||216===!t.charCodeAt(1)||255===!t.charCodeAt(2)||224===!t.charCodeAt(3)||!t.charCodeAt(6)==="J".charCodeAt(0)||!t.charCodeAt(7)==="F".charCodeAt(0)||!t.charCodeAt(8)==="I".charCodeAt(0)||!t.charCodeAt(9)==="F".charCodeAt(0)||0===!t.charCodeAt(10))throw new Error("getJpegSize requires a binary jpeg file");for(var r=256*t.charCodeAt(4)+t.charCodeAt(5),n=4,i=t.length;n<i;){if(255!==t.charCodeAt(n+=r))throw new Error("getJpegSize could not find the size of the image");if(192===t.charCodeAt(n+1))return e=256*t.charCodeAt(n+5)+t.charCodeAt(n+6),[256*t.charCodeAt(n+7)+t.charCodeAt(n+8),e];r=256*t.charCodeAt(n+=2)+t.charCodeAt(n+1)}}(t),m={w:g[0],h:g[1],cs:"DeviceRGB",bpc:8,f:"DCTDecode",i:c,data:t};return d[c]=m,a||l||(a=-96,l=-96),a<0&&(a=-1*m.w*72/a/this.internal.scaleFactor),l<0&&(l=-1*m.h*72/l/this.internal.scaleFactor),0===a&&(a=l*m.w/m.h),0===l&&(l=a*m.h/m.w),this.internal.write("q",f(a),"0 0",f(l),f(s),p(o+l),"cm /I"+m.i,"Do Q"),this}}(i.API),function(t){var e=function(t){for(var e="klmnopqrstuvwxyz",r={},n=0;n<e.length;n++)r[e[n]]="0123456789abcdef"[n];var i,s,o,a,l,h={},u=1,c=h,d=[],f="",p="",g=t.length-1;for(n=1;n!=g;)l=t[n],n+=1,"'"==l?s?(a=s.join(""),s=i):s=[]:s?s.push(l):"{"==l?(d.push([c,a]),c={},a=i):"}"==l?((o=d.pop())[0][o[1]]=c,a=i,c=o[0]):"-"==l?u=-1:a===i?r.hasOwnProperty(l)?(f+=r[l],a=parseInt(f,16)*u,u=1,f=""):f+=l:r.hasOwnProperty(l)?(p+=r[l],c[a]=parseInt(p,16)*u,u=1,a=i,p=""):p+=l;return h},r={codePages:["WinAnsiEncoding"],WinAnsiEncoding:e("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},n={Unicode:{Courier:r,"Courier-Bold":r,"Courier-BoldOblique":r,"Courier-Oblique":r,Helvetica:r,"Helvetica-Bold":r,"Helvetica-BoldOblique":r,"Helvetica-Oblique":r,"Times-Roman":r,"Times-Bold":r,"Times-BoldItalic":r,"Times-Italic":r}},i={Unicode:{"Courier-Oblique":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":e("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":e("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":e("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Helvetica:e("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":e("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),"Courier-Bold":e("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":e("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":e("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":e("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFonts",function(t){var e,r,s,o,a,l="Unicode";for(r in t.fonts)t.fonts.hasOwnProperty(r)&&((s=i[l][(e=t.fonts[r]).PostScriptName])&&((o=e.metadata[l]?e.metadata[l]:e.metadata[l]={}).widths=s.widths,o.kerning=s.kerning),(a=n[l][e.PostScriptName])&&((o=e.metadata[l]?e.metadata[l]:e.metadata[l]={}).encoding=a,a.codePages&&a.codePages.length&&(e.encoding=a.codePages[0])))}])}(i.API);var s=window.jqxSaveAs=s||navigator.msSaveBlob&&navigator.msSaveBlob.bind(navigator)||function(t){var e=t.document,r=t.URL||t.webkitURL||t,n=$("<a></a>")[0],i="download"in n,s=t.webkitRequestFileSystem,o=t.requestFileSystem||s||t.mozRequestFileSystem,a=function(e){(t.setImmediate||t.setTimeout)((function(){throw e}),0)},l="application/octet-stream",h=0,u=[],c=function(t,e,r){for(var n=(e=[].concat(e)).length;n--;){var i=t["on"+e[n]];if("function"==typeof i)try{i.call(t,r||t)}catch(s){a(s)}}},d=function(r,a){var d,f,p=this,g=r.type,m=!1,v=function(){var e=(t.URL||t.webkitURL||t).createObjectURL(r);return u.push(e),e},y=function(){c(p,"writestart progress write writeend".split(" "))},x=function(){!m&&d||(d=v()),f&&(f.location.href=d),p.readyState=p.DONE,y()},_=function(t){return function(){if(p.readyState!==p.DONE)return t.apply(this,arguments)}},b={create:!0,exclusive:!1};if(p.readyState=p.INIT,a||(a="download"),i&&(d=v(),n.href=d,n.download=a,function(r){var n=e.createEvent("MouseEvents");return n.initMouseEvent("click",!0,!1,t,0,0,0,0,0,!1,!1,!1,!1,0,null),r.dispatchEvent(n)}(n)))return p.readyState=p.DONE,void y();t.chrome&&g&&g!==l&&(r=(r.slice||r.webkitSlice).call(r,0,r.size,l),m=!0),s&&"download"!==a&&(a+=".download"),f=g===l||s?t:t.open(),o?o(t.TEMPORARY,h+=r.size,_((function(t){t.root.getDirectory("saved",b,_((function(t){var e=function(){t.getFile(a,b,_((function(t){t.createWriter(_((function(e){e.onwriteend=function(e){f.location.href=t.toURL(),u.push(t),p.readyState=p.DONE,c(p,"writeend",e)},e.onerror=function(){var t=e.error;t.code!==t.ABORT_ERR&&x()},"writestart progress write abort".split(" ").forEach((function(t){e["on"+t]=p["on"+t]})),e.write(r),p.abort=function(){e.abort(),p.readyState=p.DONE},p.readyState=p.WRITING})),x)})),x)};t.getFile(a,{create:!1},_((function(t){t.remove(),e()})),_((function(t){t.code===t.NOT_FOUND_ERR?e():x()})))})),x)})),x):x()},f=d.prototype;return f.abort=function(){var t=this;t.readyState=t.DONE,c(t,"abort")},f.readyState=f.INIT=0,f.WRITING=1,f.DONE=2,f.error=f.onwritestart=f.onprogress=f.onwrite=f.onabort=f.onerror=f.onwriteend=null,t.addEventListener&&t.addEventListener("unload",(function(){for(var t=u.length;t--;){var e=u[t];"string"==typeof e?r.revokeObjectURL(e):e.remove()}u.length=0}),!1),function(t,e){return new d(t,e)}}(self);!function(t){t.output=function(t,e){return this.internal.output(t,e)}}(i.API)},"5J2/":function(t,e){var r;(r=jqxBaseFramework).jqx.jqxWidget("jqxMaskedInput","",{}),r.extend(r.jqx._jqxMaskedInput.prototype,{defineInstance:function(){var t={value:null,mask:"99999",width:200,height:25,textAlign:"left",readOnly:!1,cookies:!1,promptChar:"_",placeHolder:"",template:"",rtl:!1,disabled:!1,hint:!0,events:["valueChanged","textchanged","mousedown","mouseup","keydown","keyup","keypress","change"],aria:{"aria-valuenow":{name:"value",type:"string"},"aria-disabled":{name:"disabled",type:"boolean"}}};return this===r.jqx._jqxMaskedInput.prototype?t:(r.extend(!0,this,t),t)},createInstance:function(){this.render()},render:function(){var t=this;t.element.setAttribute("role","textbox"),t.element.setAttribute("data-role","input"),t.host.addClass(t.toThemeProperty("jqx-maskedinput"));var e=t.element.getAttribute("value");void 0!==e&&""!==e&&null!==e&&(t.value=e),r.jqx.aria(this),r.jqx.aria(this,"aria-multiline",!1),r.jqx.aria(this,"aria-readonly",t.readOnly),t._helpers=[],t._helpers.element=new jqxHelper(t.element),t._helpers.element.addClass(t.toThemeProperty("jqx-input jqx-input-widget jqx-rc-all jqx-widget jqx-widget-content"));var n=t.element.getAttribute("name");if("div"===t.element.nodeName.toLowerCase()){t.element.innerHTML="";var i=document.createElement("input");i.setAttribute("type","textarea"),i.setAttribute("autocomplete","off"),i.setAttribute("autocorrect","off"),i.setAttribute("autocapitalize","off"),i.setAttribute("spellcheck",!1),i.setAttribute("name",n),t.element.appendChild(i),t.maskbox=r(i),t.disabled&&(t._helpers.element.addClass(t.toThemeProperty("jqx-input-disabled jqx-fill-state-disabled")),i.setAttribute("disabled",!0))}else t.maskbox=t.host,t.element.setAttribute("autocomplete","off"),t.element.setAttribute("autocorrect","off"),t.element.setAttribute("autocapitalize","off"),t.element.setAttribute("spellcheck",!1),t.element.setAttribute("name",n),t.disabled&&(t._helpers.element.addClass(t.toThemeProperty("jqx-input-disabled jqx-fill-state-disabled")),t.element.setAttribute("disabled",!0));if(t._helpers.maskbox=new jqxHelper(t.maskbox[0]),t._helpers.maskbox.addClass(t.toThemeProperty("jqx-reset jqx-input-content jqx-widget-content")),t.rtl&&t._helpers.maskbox.addClass(t.toThemeProperty("jqx-rtl")),t.propertyChangeMap.disabled=function(e,r,n,i){i?e._helpers.maskbox.addClass(t.toThemeProperty("jqx-input-disabled")):e._helpers.maskbox.removeClass(t.toThemeProperty("jqx-input-disabled"))},t.selectedText="",t.self=this,t.oldValue=t._value(),t.items=[],t._initializeLiterals(),t._render(),null!=t.value&&t.inputValue(t.value.toString()),t.host.parents("form").length>0&&t.host.parents("form").on("reset",(function(){setTimeout((function(){t.clearValue()}),10)})),t.addHandlers(),t.cookies){var s=r.jqx.cookie.cookie("maskedInput."+t.element.id);s&&t.val(s)}},addHandlers:function(){var t=this,e="";this.addHandler(this.maskbox,"blur",(function(){t.rtl&&t.maskbox.css("direction","ltr"),t._helpers.maskbox.removeClass(t.toThemeProperty("jqx-fill-state-focus")),t.maskbox.val()!==e&&(t._raiseEvent(7,{type:"keyboard"}),t.cookies&&r.jqx.cookie.cookie("maskedInput."+t.element.id,t.maskbox.val()))})),this.addHandler(this.maskbox,"focus",(function(){e=t.maskbox[0].value,t.rtl&&(t.maskbox[0].style.direction="rtl"),t._helpers.element.addClass(t.toThemeProperty("jqx-fill-state-focus"))})),this.addHandler(this.host,"keydown",(function(e){if(t.readOnly||t.disabled)return!1;var r=t._handleKeyDown(e,e.charCode?e.charCode:e.keyCode?e.keyCode:0);return r||(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()),r})),this.addHandler(this.host,"keyup",(function(e){return!(!t.readOnly&&!t.disabled&&(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),1))})),this.addHandler(this.host,"keypress",(function(e){if(t.readOnly||t.disabled)return!0;var r=t._handleKeyPress(e,e.charCode?e.charCode:e.keyCode?e.keyCode:0);return r||(e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()),r}))},focus:function(){try{var t=this;t.maskbox.focus(),setTimeout((function(){t.maskbox.focus()}))}catch(e){}},_getString:function(){for(var t="",e=0;e<this.items.length;e++)t+=this.items[e].character===this.promptChar&&this.promptChar!==this.items[e].defaultCharacter?this.items[e].defaultCharacter:this.items[e].character;return t},_initializeLiterals:function(){if(null!=this.mask){this.mask=this.mask.toString();for(var t=this.mask.length,e=0;e<t;e++){var r=this.mask.substring(e,e+1),n="",i=!1;if("["===r){for(var s=e;s<t&&"]"!==this.mask.substring(s,s+1);s++);n="("+this.mask.substring(e,s+1)+")",e=s,i=!0}"#"===r?(n="(\\d|[+]|[-])",i=!0):"9"===r||"0"===r?(n="\\d",i=!0):"$"===r?i=!1:"/"===r||":"===r?i=!1:"A"===r||"a"===r?(n="\\w",i=!0):"c"===r||"C"===r?(n=".",i=!0):"L"!==r&&"l"!==r||(n="([a-zA-Z])",i=!0),o=n,a=i,l=void 0,(l={}).character=i?this.promptChar:r,l.regex=o,l.canEdit=a,l.defaultCharacter=this.promptChar,this.items.push(l)}}else this.items=[];var o,a,l},setRegex:function(t,e,r,n){null!=t&&null!=e&&t<this.items.length&&(this.items[t].regex=e,null!=r&&(this.items[t].canEdit=r),null!=n&&(this.items[t].defaultCharacter=n))},_match:function(t,e){return new RegExp(e,"i").test(t)},_raiseEvent:function(t,e){var n=this.events[t],i={};i.owner=this;var s=!0,o=new r.Event(n);return o.owner=this,i.value=this.inputValue(),i.text=this.maskedValue(),7===t&&(i.type=e.type,void 0===i.type&&(i.type=null)),o.args=i,(t<2||t>6)&&(s=this.host.trigger(o)),s},_handleKeyPress:function(t,e){return this._isSpecialKey(e,t)},_insertKey:function(t,e){var r,n=this._selection(),i=this;if(n.start>=0&&n.start<this.items.length){var s=String.fromCharCode(t);t>=65&&t<=90&&(e.shiftKey||(s=s.toLowerCase()));for(var o=!1,a=0;a<this.items.length;a++)if(!(a<n.start)){var l=i.items[a];if(l.canEdit){if(i._match(s,l.regex)){if(!o&&n.length>0){for(var h=n.start;h<n.end;h++)i.items[h].canEdit&&(i.items[h].character=i.promptChar);r=i._getString(),i.maskedValue(r),o=!0}l.character=s,r=i._getString(),i.maskedValue(r),n.start<i.items.length&&i._setSelectionStart(a+1);break}break}}}},_deleteSelectedText:function(){var t=this._selection(),e=!1;if(t.start>0||t.length>0){for(var r=t.start;r<t.end;r++)r<this.items.length&&this.items[r].canEdit&&this.items[r].character!==this.promptChar&&(this.items[r].character=this.promptChar,e=!0);var n=this._getString();return this.maskedValue(n),e}},_saveSelectedText:function(){var t=this._selection(),e="";if(t.start>0||t.length>0)for(var n=t.start;n<t.end;n++)this.items[n].canEdit&&(e+=this.items[n].character);if(window.clipboardData)window.clipboardData.setData("Text",e);else{var i=r("<textarea style='position: absolute; left: -1000px; top: -1000px;'/>");i.val(e),r("body").append(i),i.select(),setTimeout((function(){document.designMode="off",i.select(),i.remove()}),100)}return e},_pasteSelectedText:function(){var t=this._selection(),e="",n=0,i=t.start,s="",o=this,a=function(r){if(!(r!==o.selectedText&&r.length>0&&(o.selectedText=r,null==o.selectedText))){if(t.start>=0||t.length>0)for(var s=t.start;s<o.items.length;s++)o.items[s].canEdit&&n<o.selectedText.length&&(o.items[s].character=o.selectedText[n],n++,i=1+s);e=o._getString(),o.maskedValue(e),o._setSelectionStart(i<o.items.length?i:o.items.length)}};if(window.clipboardData)s=window.clipboardData.getData("Text"),a(s);else{var l=r("<textarea style='position: absolute; left: -1000px; top: -1000px;'/>");r("body").append(l),l.select(),setTimeout((function(){var t=l.val();a(t),l.remove()}),100)}},_handleKeyDown:function(t,e){var n,i=this._selection();e>=96&&e<=105&&(e-=48);var s=t.ctrlKey||t.metaKey;if(s&&97===e||s&&65===e)return!0;if(s&&120===e||s&&88===e)return this.selectedText=this._saveSelectedText(t),this._deleteSelectedText(t),!r.jqx.browser.msie;if(s&&99===e||s&&67===e)return this.selectedText=this._saveSelectedText(t),!r.jqx.browser.msie;if(s&&122===e||s&&90===e)return!1;if(s&&118===e||s&&86===e||t.shiftKey&&45===e)return this._pasteSelectedText(),!r.jqx.browser.msie;if(8===e){if(0===i.length)for(n=this.items.length-1;n>=0;n--)if(this.items[n].canEdit&&n<i.end&&this.items[n].character!==this.promptChar){this._setSelection(n,n+1);break}i=this._selection();var o=this._deleteSelectedText();return(i.start>0||i.length>0)&&i.start<=this.items.length&&this._setSelectionStart(o?i.start:i.start-1),!1}if(190===e)for(n=i.start;n<this.items.length;n++)if("."===this.items[n].character){this._setSelectionStart(n+1);break}if(191===e)for(n=i.start;n<this.items.length;n++)if("/"===this.items[n].character){this._setSelectionStart(n+1);break}if(189===e)for(n=i.start;n<this.items.length;n++)if("-"===this.items[n].character){this._setSelectionStart(n+1);break}if(46===e){if(0===i.length)for(n=0;n<this.items.length;n++)if(this.items[n].canEdit&&n>=i.start&&this.items[n].character!==this.promptChar){this._setSelection(n,n+1);break}var a=i;return((i=this._selection()).start>=0||i.length>=0)&&i.start<this.items.length&&this._setSelectionStart(i.length<=1?a.end!==i.end?i.end:i.end+1:i.start),!1}return this._insertKey(e,t),this._isSpecialKey(e,t)},_isSpecialKey:function(t,e){return 189===t||9===t||13===t||35===t||36===t||37===t||39===t||46===t||!!(16===t&&e.shiftKey||e.ctrlKey||e.metaKey)},_selection:function(){var t=this.maskbox[0];if("selectionStart"in this.maskbox[0])return{start:t.selectionStart,end:t.selectionEnd,length:t.selectionEnd-t.selectionStart,text:t.value};var e=document.selection.createRange();if(null==e)return{start:0,end:t.value.length,length:0};var r=this.maskbox[0].createTextRange(),n=r.duplicate();return r.moveToBookmark(e.getBookmark()),n.setEndPoint("EndToStart",r),{start:n.text.length,end:n.text.length+e.text.length,length:e.text.length,text:e.text}},_setSelection:function(t,e){if("selectionStart"in this.maskbox[0])this.maskbox[0].focus(),this.maskbox[0].setSelectionRange(t,e);else{var r=this.maskbox[0].createTextRange();r.collapse(!0),r.moveEnd("character",e),r.moveStart("character",t),r.select()}},_setSelectionStart:function(t){this._setSelection(t,t)},refresh:function(t){t||this._render()},resize:function(t,e){this.width=t,this.height=e,this.refresh()},_render:function(){var t=parseInt(this.host.css("border-left-width"),10),e=parseInt(this.host.css("border-left-width"),10),r=parseInt(this.host.css("border-left-width"),10),n=parseInt(this.host.css("border-left-width"),10),i=parseInt(this.host.css("height"),10)-r-n,s=parseInt(this.host.css("width"),10)-t-e;null!=this.width&&-1!==this.width.toString().indexOf("px")?s=this.width:void 0===this.width||isNaN(this.width)||(s=this.width),null!=this.height&&-1!==this.height.toString().indexOf("px")?i=this.height:void 0===this.height||isNaN(this.height)||(i=this.height),s=parseInt(s,10),i=parseInt(i,10),this.maskbox[0]!==this.element&&this.maskbox.css({"border-left-width":0,"border-right-width":0,"border-bottom-width":0,"border-top-width":0}),this.maskbox.css("text-align",this.textAlign);var o=this.maskbox.css("font-size");isNaN(i)||this.maskbox.css("height",parseInt(o,10)+4+"px"),isNaN(s)||this.maskbox.css("width",s);var a=parseInt(i,10)-2*parseInt(r,10)-2*parseInt(n,10)-parseInt(o,10);isNaN(a)&&(a=0),null!=this.width&&-1!=this.width.toString().indexOf("px")?this.element.style.width=this.width:null==this.width||isNaN(this.width)||(this.element.style.width=this.width+"px"),null!=this.height&&-1!=this.height.toString().indexOf("px")?this.element.style.height=this.height:null==this.height||isNaN(this.height)||(this.element.style.height=this.height+"px"),this.maskbox[0]!==this.element&&(this.maskbox[0].style.height="100%"),this.maskbox[0].value=this._getString(),this.width&&(this.width.toString().indexOf("%")>=0&&(this.element.style.width=this.width),this.height.toString().indexOf("%")>=0&&(this.element.style.height=this.height)),this._addBarAndLabel(this.maskbox),this._updateHint()},_addBarAndLabel:function(t){if(!(a=this).label&&a.isMaterialized()){if(this.element instanceof HTMLInputElement){var e=r("<div></div>");e.addClass(a.toThemeProperty("jqx-input-group jqx-maskedinput")),this.host.after(e);var n=this.element,i=this.host.data();e.append(n);var s=r("<label></label");this.hint&&(s[0].innerHTML=this.placeHolder),s.addClass(a.toThemeProperty("jqx-input-label")),e.append(s);var o=r("<span></span>");e.append(o),o.addClass(a.toThemeProperty("jqx-input-bar")),e[0].id=this.element.id,this.element.removeAttribute("id"),this.element.setAttribute("hint",!0),e[0].style=this.element.style,a.input=a.element,this.input instanceof HTMLInputElement||(this.input=this.host.find("input"),this.input.length>0&&(this.input=this.input[0]),r(this.input).addClass(this.toThemeProperty("jqx-input-widget"))),e[0].style.width=this.input.style.width,e[0].style.height=this.input.style.height,this.label=s,this.bar=o,this.element.style="",this.host=e,this.element=e[0],this.host.data(i),this.input.style.width="100%",this.input.style.height="100%"}else{s=r("<label></label"),this.hint&&(s[0].innerHTML=this.placeHolder),s.addClass(a.toThemeProperty("jqx-input-label")),t.after(s),a.label=s,o=r("<span></span>"),t.after(o),o.addClass(a.toThemeProperty("jqx-input-bar")),a.bar=o;var a=this}a.template&&(a.bar.addClass(a.toThemeProperty("jqx-"+a.template)),a.label.addClass(a.toThemeProperty("jqx-"+a.template)))}},_updateHint:function(){var t=this;t.hint&&t.isMaterialized()&&setTimeout((function(){0===t.maskbox[0].value.length?(t.element.removeAttribute("hint"),t.label[0].innerHTML=t.placeHolder):t.element.setAttribute("hint",!0)}))},destroy:function(){r.jqx.utilities.resize(this.host,null,!0),this.host.remove(),this._helpers=[]},maskedValue:function(t){return void 0===t?this._value():(this.value=t,this._refreshValue(),this.oldValue!==t&&(this._raiseEvent(1,t),this.oldValue=t,this._raiseEvent(0,t)),this)},propertyChangedHandler:function(t,e,n,i){if(void 0!==this.isInitialized&&!1!==this.isInitialized){if("rtl"===e&&(t.rtl?t._helpers.maskbox.addClass(t.toThemeProperty("jqx-rtl")):t._helpers.maskbox.removeClass(t.toThemeProperty("jqx-rtl"))),"value"===e&&(null==i&&(i=""),""===i?this.clear():(i=i.toString(),this.inputValue(i)),t._raiseEvent(7,i)),"theme"===e&&r.jqx.utilities.setTheme(n,i,this.host),"disabled"===e&&(i?(t._helpers.maskbox.addClass(t.toThemeProperty("jqx-input-disabled")),t._helpers.element.addClass(t.toThemeProperty("jqx-fill-state-disabled")),t._helpers.maskbox.attr("disabled",!0)):(t._helpers.maskbox.removeClass(this.toThemeProperty("jqx-input-disabled")),t._helpers.element.removeClass(this.toThemeProperty("jqx-fill-state-disabled")),t._helpers.maskbox.attr("disabled",!1)),r.jqx.aria(t,"aria-disabled",i)),"readOnly"===e&&(this.readOnly=i),"promptChar"===e){for(var s=0;s<t.items.length;s++)t.items[s].character===t.promptChar&&(t.items[s].character=i,t.items[s].defaultCharacter=i);t.promptChar=i}"textAlign"===e&&(t.maskbox.css("text-align",i),t.textAlign=i),"mask"===e&&(t.mask=i,t.items=[],t._initializeLiterals(),t.value=t._getString(),t._refreshValue()),"width"===e?(t.width=i,t._render()):"height"===e&&(t.height=i,t._render())}},_value:function(){return this.value},_getEditStringLength:function(){for(var t="",e=0;e<this.items.length;e++)this.items[e].canEdit&&(t+=this.items[e].character);return t.length},_getEditValue:function(){for(var t="",e=0;e<this.items.length;e++)this.items[e].canEdit&&this.items[e].character!==this.promptChar&&(t+=this.items[e].character);return t},parseValue:function(t){if(null==t)return null;for(var e=t.toString(),r="",n=0,i=0;i<e.length;i++)for(var s=e.substring(i,i+1),o=n;o<this.items.length;o++)if(this.items[o].canEdit&&this._match(s,this.items[o].regex)){r+=s,n=o;break}return r},clear:function(){this.clearValue()},clearValue:function(){this.inputValue("",!0)},val:function(t){return void 0!==t&&"object"!=typeof t&&("number"==typeof t&&isFinite(t)&&(t=t.toString()),this.maskedValue(t)),this.maskbox[0].value},inputValue:function(t,e){var r;if(null==t){var n="";for(r=0;r<this.items.length;r++)this.items[r].canEdit&&(n+=this.items[r].character);return n}var i=0;for(t=t.toString(),r=0;r<this.items.length;r++)this.items[r].canEdit&&(this._match(t.substring(i,i+1),this.items[r].regex)?(this.items[r].character=t.substring(i,i+1),i++):e&&(this.items[r].character=this.promptChar,i++));var s=this._getString();return this.maskedValue(s),this.inputValue()},_refreshValue:function(){for(var t=this.maskedValue(),e=0,n=0;n<this.items.length;n++)t.length>e&&(this.items[n].canEdit&&this.items[n].character!==t[e]&&(!this._match(t[e],this.items[n].regex)&&t[e]!==this.promptChar||1!==t[e].length||(this.items[n].character=t[e])),e++);this.value=this._getString(),this.maskbox[0].value=t=this.value,r.jqx.aria(this,"aria-valuenow",t)}})},"8/F6":function(t,e){!function(t){t.jqx.observableArray=function(e,r){if("string"==typeof e&&(e=t.parseJSON(e)),!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}}()){var n=Object.defineProperty;Object.defineProperty=function(t,e,r){if(n)try{return n(t,e,r)}catch(i){}if(t!==Object(t))throw TypeError("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in r&&Object.prototype.__defineGetter__.call(t,e,r.get),Object.prototype.__defineSetter__&&"set"in r&&Object.prototype.__defineSetter__.call(t,e,r.set),"value"in r?t[e]=r.value:t[e]||(t[e]=r),t}}Array.prototype.forEach||(Array.prototype.forEach=function(t){if(null==this)throw TypeError();var e=Object(this),r=e.length>>>0;if("function"!=typeof t)throw TypeError();var n,i=arguments[1];for(n=0;n<r;n++)n in e&&t.call(i,e[n],n,e)}),"function"!=typeof Object.getOwnPropertyNames&&(Object.getOwnPropertyNames=function(t){if(t!==Object(t))throw TypeError("Object.getOwnPropertyNames called on non-object");var e,r=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r});var i,s=this,o=[];return s.notifier=null,s.name="observableArray",s.observing=!0,s.changes=new Array,r=r,s.observe=function(){s.observing=!0,1==arguments.length&&(r=arguments[0])},s.unobserve=function(){s.observing=!1},s.toArray=function(){return o.slice(0)},s.toJSON=function(t,e){var r=o;e&&(r=e);var n=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(t){return'"'+t.replace(n,(function(t){var e=i[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"'}function a(t){return t<10?"0"+t:t}return!t&&window.JSON&&"function"==typeof window.JSON.stringify?window.JSON.stringify(r):function e(r,n){var i=n[r],o=typeof i;return i&&"object"==typeof i&&"function"==typeof i.toJSON&&(o=typeof(i=i.toJSON(r))),/(number|float|int|integer|string|boolean)/.test(o)||!i&&"object"===o?function(t,e){switch(e){case"string":return s(t);case"number":case"float":case"integer":case"int":return isFinite(t)?t:"null";case"boolean":return t}return"null"}(i,o):function(r){switch(Object.prototype.toString.call(r)){case"[object Date]":return n=r,isFinite(n.valueOf())?n.getUTCFullYear()+"-"+a(n.getUTCMonth()+1)+"-"+a(n.getUTCDate())+"T"+a(n.getUTCHours())+":"+a(n.getUTCMinutes())+":"+a(n.getUTCSeconds())+'Z"':"null";case"[object Array]":return function(t){var r,n=t.length,i=[];for(r=0;r<n;r++)i.push(e(r,t)||"null");return"["+i.join(",")+"]"}(r)}var n;return function(r){var n,i,o=[];for(n in r)if(Object.prototype.hasOwnProperty.call(r,n)){if(""!=n&&t&&-1===t.indexOf(n))continue;(i=e(n,r))&&o.push(s(n)+":"+i)}return"{"+o.join(",")+"}"}(r)}(i)}("",{"":r})},s.defineIndexProperty=function(e){if(!(e in s)){var r=function(e,r,n,a){var l=e[r],h=l,u=function(){return h},c=function(e){if(h!==(l=e)){var n=h;if(h=l,"function"==typeof i){var u=o.indexOf(a),c="",d=function(e,n){Object.getOwnPropertyNames(e).forEach((function(i){var s=t.type(e[i]);"array"==s||"object"==s?d(e[i],n+"."+i):r===i&&(c=n+"."+i)}))};d(a,u),i({object:s,type:"update",path:c,index:u,name:r,newValue:l,oldValue:n})}}return h=l,l};null!=e[r]&&"length"!=r&&(Object.defineProperty?Object.defineProperty(e,r,{get:u,set:c}):Object.prototype.__defineGetter__&&Object.prototype.__defineSetter__&&(Object.prototype.__defineGetter__.call(e,r,u),Object.prototype.__defineSetter__.call(e,r,c)))},n=function(e,i,s){var o=t.type(e);/(number|float|int|integer|string|boolean)/.test(o)||void 0!==e&&Object.getOwnPropertyNames(e).forEach((function(o){var a=t.type(e[o]);"array"==a||"object"==a?(r(e,o,0,s),n(e[o],i+"."+o,s)):r(e,o,0,s)}))};Object.defineProperty(s,e,{configurable:!0,enumerable:!0,get:function(){return o[e]},set:function(t){var r=o[e];s.toJSON(null,r)!=s.toJSON(null,t)&&(o[e]=t,"function"==typeof i&&i({object:s,type:"update",path:e.toString(),index:e,name:"index",newValue:t,oldValue:r}),n(t,e,t))}}),n(s[e],e,s[e])}},s.push=function(){for(var t,e=0,r=arguments.length;e<r;e++)t=o.length,o.push(arguments[e]),s.defineIndexProperty(t),"function"==typeof i&&i({object:s,type:"add",name:"length",index:t,newValue:o.length,oldValue:t});return o.length},s.pop=function(){if(~o.length){var t=o.length-1,e=o.pop();return delete s[t],"function"==typeof i&&i({object:s,type:"delete",name:"length",index:t,newValue:o.length,oldValue:t}),e}},s.unshift=function(){for(var t=o.length,e=0,r=arguments.length;e<r;e++)o.splice(e,0,arguments[e]),s.defineIndexProperty(o.length-1);return"function"==typeof i&&i({object:s,type:"add",index:0,name:"length",newValue:o.length,oldValue:t}),o.length},s.shift=function(){var t=o.length;if(~o.length){var e=o.shift();return 0===o.length&&delete s[t],"function"==typeof i&&i({object:s,type:"delete",index:t,name:"length",newValue:o.length,oldValue:t}),e}},s.slice=function(e,r,n){var i=o.slice(e,r);return new t.jqx.observableArray(i,n)},s.splice=function(e,r,n){var a,l=[];for(e=~e?e:o.length-e,r=(null==r?o.length-e:r)||0;r--;)a=o.splice(e,1)[0],l.push(a),delete s[o.length],"function"==typeof i&&i({object:s,type:"delete",index:e,name:"length",newValue:-1,oldValue:e});for(var h=2,u=arguments.length;h<u;h++)o.splice(e,0,arguments[h]),this.defineIndexProperty(o.length-1),"function"==typeof i&&i({object:s,type:"add",index:e,name:"length",newValue:o.length-1,oldValue:e}),e++;var c=new t.jqx.observableArray(l,n);return c},Object.defineProperty(s,"length",{configurable:!1,enumerable:!0,get:function(){return o.length},set:function(t){var e=Number(t);if(!(e%1==0&&e>=0))throw new RangeError("Invalid array length");return e<o.length?s.splice(e):e>o.length&&s.push.apply(s,new Array(e-o.length)),t}}),t.jqx.observableArray.prototype.fromArray=function(e,r){return new t.jqx.observableArray(e,r)},t.jqx.observableArray.prototype.clone=function(){var e=new t.jqx.observableArray(o,r);return e.observing=s.observing,e.changes=s.changes,e.notifier=s.notifier,e},s.remove=function(t){if(t<0||t>=s.length)throw new Error("Invalid index : "+t);if(s.hasOwnProperty(t)){var e=s[t];return s[t]=void 0,o[t]=void 0,"function"==typeof i&&i({object:s,type:"delete",index:t,name:"index",newValue:void 0,oldValue:e}),!0}return!1},s.concat=function(e,r){var n=o.concat(e);return new t.jqx.observableArray(n,r)},Object.getOwnPropertyNames(Array.prototype).forEach((function(t){t in s||Object.defineProperty(s,t,{configurable:!1,enumerable:!0,writeable:!1,value:function(){var e=s.observing;s.observing=!1;var r=o[t],n=r.apply(o,arguments);return s.observing=e,n}})})),s.set=function(e,r){if("string"==t.type(e)&&e.split(".").length>1){for(var n=e.split("."),i=s,o=0;o<n.length;o++){if(0===o&&n[o]>=s.length)throw new Error("Invalid Index: "+e);o<n.length-1?i=i[n[o]]:i[n[o]]=r}return!0}return e>=s.length?s.push(r):s[e]=r,!0},s.get=function(t){return s[t]},e instanceof Array&&s.push.apply(s,e),i=function(){s.observing&&(arguments&&arguments[0]&&s.changes.push(arguments[0]),r&&r.apply(s,arguments),s.notifier&&s.notifier.apply(s,arguments))},s},t.jqx.formatDate=function(e,r,n){return t.jqx.dataFormat.formatdate(e,r,n)},t.jqx.formatNumber=function(e,r,n){return t.jqx.dataFormat.formatnumber(e,r,n)},t.jqx.dataAdapter=function(e,r){if(null!=e&&(void 0!==e.dataFields&&(e.datafields=e.dataFields),void 0!==e.dataType&&(e.datatype=e.dataType),void 0!==e.localData&&(e.localdata=e.localData),void 0!==e.sortColumn&&(e.sortcolumn=e.sortColumn),void 0!==e.sortDirection&&(e.sortdirection=e.sortDirection),void 0!==e.sortColumns&&(e.sortcolumns=e.sortColumns),void 0!==e.sortDirections&&(e.sortdirections=e.sortDirections),void 0!==e.sortOrder&&(e.sortdirection=e.sortOrder),void 0!==e.formatData&&(e.formatdata=e.formatData),void 0!==e.processData&&(e.processdata=e.processData),void 0!==e.pageSize&&(e.pagesize=e.pageSize),void 0!==e.pageNum&&(e.pagenum=e.pageNum),void 0!==e.updateRow&&(e.updaterow=e.updateRow),void 0!==e.addRow&&(e.addrow=e.addRow),void 0!==e.deleteRow&&(e.deleterow=e.deleteRow),void 0!==e.contentType&&(e.contenttype=e.contentType),null!=e.totalRecords&&(e.totalrecords=e.totalRecords),null!=e.loadError&&(e.loadError=e.loadError),null!=e.sortComparer&&(e.sortcomparer=e.sortComparer)),this._source=e,this._options=r||{},null!=e.beforeLoadComplete&&(this._options.beforeLoadComplete=this._source.beforeLoadComplete),null!=e.downloadComplete&&(this._options.downloadComplete=this._source.downloadComplete),null!=e.loadComplete&&(this._options.loadComplete=this._source.loadComplete),null!=e.autoBind&&(this._options.downloadComplete=this._source.autoBind),null!=e.formatData&&(this._options.formatData=this._source.formatData),null!=e.loadError&&(this._options.loadError=this._source.loadError),null!=e.beforeSend&&(this._options.beforeSend=this._source.beforeSend),null!=e.contentType&&(this._options.contentType=this._source.contentType),null!=e.async&&(this._options.async=this._source.async),null!=e.loadServerData&&(this._options.loadServerData=this._source.loadServerData),null!=e.uniqueDataFields&&(this._options.uniqueDataFields=this._source.uniqueDataFields),this.records=new Array,this._downloadComplete=new Array,this._bindingUpdate=new Array,null!=e&&null!=e.localdata&&"function"==typeof e.localdata){var n=e.localdata();if(null!=n){e._localdata=e.localdata;var i=this;e._localdata.subscribe&&(i._oldlocaldata=[],e._localdata.subscribe((function(e){var r=function(e){return t.isArray(e)?t.makeArray(r(t(e))):t.extend(!0,{},e)};0!=i.suspendKO&&null!=i.suspendKO&&0!=i._oldlocaldata.length||(i._oldlocaldata=r(e))}),e._localdata,"beforeChange"),e._localdata.subscribe((function(t){if(0==i.suspendKO||null==i.suspendKO){var r="";i._oldrecords=i.records,0==i._oldlocaldata.length&&(e.localdata=e._localdata()),0==i._oldlocaldata.length?r="change":t&&(i._oldlocaldata.length==t.length&&(r="update"),i._oldlocaldata.length>t.length&&(r="remove"),i._oldlocaldata.length<t.length&&(r="add")),i.dataBind(null,r)}}),e._localdata,"change"),i._knockoutdatasource=!0),e.localdata=n}}1==this._options.autoBind&&this.dataBind()},t.jqx.dataAdapter.prototype={getrecords:function(){return this.records},beginUpdate:function(){this.isUpdating=!0},endUpdate:function(t){this.isUpdating=!1,0!=t&&(this._changedrecords&&this._changedrecords.length>0?(this.callBindingUpdate("update"),this._changedrecords=[]):this.dataBind(null,""))},formatDate:function(e,r,n){return t.jqx.dataFormat.formatdate(e,r,n)},formatNumber:function(e,r,n){return t.jqx.dataFormat.formatnumber(e,r,n)},dataBind:function(e,r){if(1!=this.isUpdating){var n=this._source;if(n){n.generatedfields&&(n.datafields=null,n.generatedfields=null),t.jqx.dataFormat.datescache=new Array,null!=n.dataFields&&(n.datafields=n.dataFields),null==n.recordstartindex&&(n.recordstartindex=0),null==n.recordendindex&&(n.recordendindex=0),null==n.loadallrecords&&(n.loadallrecords=!0),null==n.root&&(n.root=""),null==n.record&&(n.record=""),null!=n.sort&&(this.sort=n.sort),this.filter=null!=n.filter?n.filter:null,null!=n.sortcolumn&&(this.sortcolumn=n.sortcolumn),null!=n.sortdirection&&(this.sortdirection=n.sortdirection),null!=n.sortcolumns&&(this.sortcolumns=n.sortcolumns),null!=n.sortdirections&&(this.sortdirections=n.sortdirections),null!=n.sortcomparer&&(this.sortcomparer=n.sortcomparer),this.records=new Array;var i=this._options||{};if(this.virtualmode=null!=i.virtualmode&&i.virtualmode,this.totalrecords=null!=i.totalrecords?i.totalrecords:0,this.pageable=null!=i.pageable&&i.pageable,this.pagesize=null!=i.pagesize?i.pagesize:0,this.pagenum=null!=i.pagenum?i.pagenum:0,this.cachedrecords=null!=i.cachedrecords?i.cachedrecords:new Array,this.originaldata=new Array,this.recordids=new Array,this.updaterow=null!=i.updaterow?i.updaterow:null,this.addrow=null!=i.addrow?i.addrow:null,this.deleterow=null!=i.deleterow?i.deleterow:null,this.cache=null!=i.cache&&i.cache,this.unboundmode=!1,null!=n.formatdata&&(i.formatData=n.formatdata),null!=n.data&&(null==i.data&&(i.data={}),t.extend(i.data,n.data)),null!=n.mapChar&&(n.mapchar=n.mapChar),this.mapChar=null!=n.mapchar?n.mapchar?n.mapchar:">":i.mapChar?i.mapChar:">",(i.unboundmode||n.unboundmode)&&(this.unboundmode=i.unboundmode||n.unboundmode),null!=n.cache&&(this.cache=n.cache),this.koSubscriptions)for(var s=0;s<this.koSubscriptions.length;s++)this.koSubscriptions[s].dispose();this.koSubscriptions=new Array,this.pagenum<0&&(this.pagenum=0);var o=this,a=n.datatype;"csv"!==n.datatype&&"tab"!==n.datatype&&"tsv"!==n.datatype&&"text"!=n.datatype||(a="text");var l=null==i.async||i.async;switch(null!=n.async&&(l=n.async),a){case"local":case"array":case"observablearray":case"observableArray":default:if(null==n.localdata&&n.length){n.localdata=new Array;for(var h=0;h<n.length;h++)n.localdata[n.localdata.length]=n[h],n[h].uid=h}n.beforeprocessing&&t.isFunction(n.beforeprocessing)&&n.beforeprocessing(n.localdata);var u=n.localdata.length;if(this.totalrecords=this.virtualmode&&n.totalrecords||u,this.unboundmode&&(this.totalrecords=this.unboundmode&&n.totalrecords||u,(f=n.datafields?n.datafields.length:0)>0))for(h=0;h<this.totalrecords;h++){for(var c={},d=0;d<f;d++)c[n.datafields[d].name]="";c.uid=h,n.localdata[n.localdata.length]=c}null==this.totalrecords&&(this.totalrecords=0);var f=n.datafields?n.datafields.length:0,p=function(e,r){for(var i={},s=0;s<r;s++){var a=n.datafields?n.datafields[s]:{},l="";if(null!=a&&null!=a){if(a.map){if(t.isFunction(a.map))l=a.map(e);else{var h=a.map.split(o.mapChar);if(h.length>0){for(var u=e,c=0;c<h.length;c++)u&&(u=u[h[c]]);l=u}else l=e[a.map]}null!=l&&null!=l?l=l.toString():null==l&&null!=l&&(l="")}var d=!1;""==l&&(d=!0,null!=(l=e[a.name])&&null!=l&&(n._localdata&&l.subscribe?l=l():"array"!=a.type&&("date"===a.type?l&&l instanceof Date&&(l=l):l=l.toString()))),"[object Object]"==l&&a.map&&d&&(l=""),l=o.getvaluebytype(l,a),null!=a.displayname?i[a.displayname]=l:i[a.name]=l}}return i};if(n._localdata){this._changedrecords=[],this.records=new Array;var g=n._localdata();if(t.each(g,(function(e,i){if("string"==typeof i)o.records.push(i);else{var s={},a=0,l=this;t.each(this,(function(r,i){var h=null,u="string",c=r;if(f>0){for(var d=!1,p=!1,g=0;g<f;g++){var m=n.datafields[g];if(null!=m&&m.name==r){d=!0,h=m.map,u=m.type,c=m.name;break}if(null!=m&&m.map&&m.map.indexOf(r)>=0){d=!0,u=m.type,c=m.name,p=!0;var v=l[r];if(null!=(h=m.map))if((b=h.split(o.mapChar)).length>0){for(var y=l,x=0;x<b.length;x++)y=y[b[x]];v=y}else v=l[h];"string"!=u&&(v=o.getvaluebytype(v,{type:u})),s[c]=v,null!=s[c]&&(a+=s[c].toString().length+s[c].toString().substr(0,1))}}if(!d)return!0;if(p)return!0}if(t.isFunction(l[r])){if(v=l[r](),"string"!=u&&(v=o.getvaluebytype(v,{type:u})),s[r]=v,l[r].subscribe){var _=e;o.koSubscriptions[o.koSubscriptions.length]=l[r].subscribe((function(t){var e=_;if(s[r]=t,o._changedrecords.push({index:e,oldrecord:s,record:s}),!o.isUpdating)return o.callBindingUpdate("update"),o._changedrecords=[],!1}))}}else{var b;if(v=l[r],null!=h)if((b=h.split(o.mapChar)).length>0){for(y=l,x=0;x<b.length;x++)y=y[b[x]];v=y}else v=l[h];"string"!=u&&(v=o.getvaluebytype(v,{type:u})),s[c]=v,null!=s[c]&&(a+=s[c].toString().length+s[c].toString().substr(0,1))}}));var h=o.getid(n.id,l,e);if(s.uid=h,o.records.push(s),s._koindex=a,o._oldrecords){var u=o.records.length-1;"update"==r&&o._oldrecords[u]._koindex!=a&&o._changedrecords.push({index:u,oldrecord:o._oldrecords[u],record:s})}}})),"add"==r)for(u=o.records.length,h=0;h<u;h++){c=o.records[h];for(var m=!1,v=0;v<o._oldrecords.length;v++)if(o._oldrecords[v]._koindex===c._koindex){m=!0;break}m||o._changedrecords.push({index:h,oldrecord:null,record:c,position:0!=h?"last":"first"})}else if("remove"==r)for(u=o._oldrecords.length,h=0;h<u;h++){var y=o._oldrecords[h];o.records[h]?o.records[h]._koindex!=y._koindex&&o._changedrecords.push({index:h,oldrecord:y,record:null}):o._changedrecords.push({index:h,oldrecord:y,record:null})}}else if(t.isArray(n.localdata))0==f?(x=0,_=new Array,t.each(n.localdata,(function(e,r){var i=new Object(this);if("string"==typeof r)return o.records=n.localdata,!1;var s=o.getid(n.id,i,e);if("object"==typeof s&&(s=e),i.uid=s,0==e){for(var a in this){x++;var l=t.type(this[a]);_.push({name:a,type:l})}f=x,n.datafields=_,n.generatedfields=_}if(f>0){var h=p(i,f);h.uid=s,o.records[o.records.length]=h}else o.records[o.records.length]=i}))):t.each(n.localdata,(function(t){var e,r=p(e=this,f),i=o.getid(n.id,r,t);"object"==typeof i&&(i=t),(e=new Object(r)).uid=i,o.records[o.records.length]=e}));else{this.records=new Array;var x=0,_=new Array;t.each(n.localdata,(function(e){var r=o.getid(n.id,this,e);if(0==f&&!("string"==typeof this||this instanceof String)){for(var i in this){x++;var s=t.type(this[i]);_.push({name:i,type:s})}f=x,n.datafields=_,n.generatedfields=_}if(f>0){var a=p(this,f);a.uid=r,o.records[o.records.length]=a}else this.uid=r,o.records[o.records.length]=this}))}if(this.originaldata=n.localdata,this.cachedrecords=this.records,this.addForeignValues(n),i.uniqueDataFields){var b=this.getUniqueRecords(this.records,i.uniqueDataFields);this.records=b,this.cachedrecords=b}if(i.beforeLoadComplete&&null!=(C=i.beforeLoadComplete(o.records,this.originaldata))&&(o.records=C,o.cachedrecords=C),i.autoSort&&i.autoSortField){var w=Object.prototype.toString;Object.prototype.toString="function"==typeof field?field:function(){return this[i.autoSortField]},o.records.sort((function(e,r){if(void 0===e&&(e=null),void 0===r&&(r=null),null===e&&null===r)return 0;if(null===e&&null!==r)return 1;if(null!==e&&null===r)return-1;if(e=e.toString(),r=r.toString(),null===e&&null===r)return 0;if(null===e&&null!==r)return 1;if(null!==e&&null===r)return-1;if(t.jqx.dataFormat.isNumber(e)&&t.jqx.dataFormat.isNumber(r))return e<r?-1:e>r?1:0;if(t.jqx.dataFormat.isDate(e)&&t.jqx.dataFormat.isDate(r))return e<r?-1:e>r?1:0;t.jqx.dataFormat.isNumber(e)||t.jqx.dataFormat.isNumber(r)||(e=String(e).toLowerCase(),r=String(r).toLowerCase());try{if(e<r)return-1;if(e>r)return 1}catch(n){}return 0})),Object.prototype.toString=w}o.loadedData=n.localdata,o.buildHierarchy(),t.isFunction(i.loadComplete)&&i.loadComplete(n.localdata,o.records);break;case"json":case"jsonp":case"xml":case"xhtml":case"script":case"text":case"ics":var C;if(null!=n.localdata&&!n.url)return t.isFunction(n.beforeprocessing)&&n.beforeprocessing(n.localdata),"xml"===n.datatype?o.loadxml(n.localdata,n.localdata,n):"text"===a?o.loadtext(n.localdata,n):"ics"===a?o.loadics(n.localdata,n):o.loadjson(n.localdata,n.localdata,n),o.addForeignValues(n),i.uniqueDataFields&&(b=o.getUniqueRecords(o.records,i.uniqueDataFields),o.records=b,o.cachedrecords=b),i.beforeLoadComplete&&null!=(C=i.beforeLoadComplete(o.records,this.originaldata))&&(o.records=C,o.cachedrecords=C),o.loadedData=n.localdata,o.buildHierarchy.call(o),t.isFunction(i.loadComplete)&&i.loadComplete(n.localdata,o.records),void o.callBindingUpdate(r);var S=null!=i.data?i.data:{};if(n.processdata&&n.processdata(S),t.isFunction(i.processData)&&i.processData(S),t.isFunction(i.formatData)){var A=i.formatData(S);null!=A&&(S=A)}var k="application/x-www-form-urlencoded";i.contentType&&(k=i.contentType);var T="GET";n.type&&(T=n.type),i.type&&(T=i.type);var j=a;if("ics"==a&&(j="text"),n.url&&n.url.length>0)t.isFunction(i.loadServerData)?o._requestData(S,n,i):this.xhr=t.jqx.data.ajax({dataType:j,cache:this.cache,type:T,url:n.url,async:l,timeout:n.timeout,contentType:k,data:S,success:function(e,r,s){var l;if(t.isFunction(n.beforeprocessing)&&null!=(l=n.beforeprocessing(e,r,s))&&(e=l),t.isFunction(i.downloadComplete)&&null!=(l=i.downloadComplete(e,r,s))&&(e=l),null==e)return o.records=new Array,o.cachedrecords=new Array,o.originaldata=new Array,o.callDownloadComplete(),void(t.isFunction(i.loadComplete)&&i.loadComplete(new Array));var h=e;if(e.records&&(h=e.records),null!=e.totalrecords?n.totalrecords=e.totalrecords:null!=e.totalRecords&&(n.totalrecords=e.totalRecords),"xml"===n.datatype?o.loadxml(null,h,n):"text"===a?o.loadtext(h,n):"ics"===a?o.loadics(h,n):o.loadjson(null,h,n),o.addForeignValues(n),i.uniqueDataFields){var u=o.getUniqueRecords(o.records,i.uniqueDataFields);o.records=u,o.cachedrecords=u}if(i.beforeLoadComplete){var c=i.beforeLoadComplete(o.records,e);null!=c&&(o.records=c,o.cachedrecords=c)}o.loadedData=e,o.buildHierarchy.call(o),o.callDownloadComplete(),t.isFunction(i.loadComplete)&&i.loadComplete(e,r,s,o.records)},error:function(e,r,s){t.isFunction(n.loaderror)&&n.loaderror(e,r,s),t.isFunction(i.loadError)&&i.loadError(e,r,s),e=null,o.callDownloadComplete()},beforeSend:function(e,r){t.isFunction(i.beforeSend)&&i.beforeSend(e,r),t.isFunction(n.beforesend)&&n.beforesend(e,r)}});else if(o.buildHierarchy(new Array),o.callDownloadComplete(),t.isFunction(i.loadComplete)){if(!q)var q={};i.loadComplete(q)}}this.callBindingUpdate(r)}}},buildHierarchy:function(t){var e=this._source,r=new Array;if(e.datafields&&(e.hierarchy&&!e.hierarchy.reservedNames?e.hierarchy.reservedNames={leaf:"leaf",parent:"parent",expanded:"expanded",checked:"checked",selected:"selected",level:"level",icon:"icon",data:"data"}:e.hierarchy&&((i=e.hierarchy.reservedNames).leaf||(i.leaf="leaf"),i.parent||(i.parent="parent"),i.expanded||(i.expanded="expanded"),i.checked||(i.checked="checked"),i.selected||(i.selected="selected"),i.level||(i.level="level"),i.data||(i.data="data")),e.hierarchy)){var n=this,i=e.hierarchy.reservedNames;if(e.hierarchy.root){if("xml"==e.dataType)return r=this.getRecordsHierarchy("uid","parentuid","records",null,t),this.hierarchy=r,r;this.hierarchy=this.records;for(var s=e.hierarchy.root,o=0;o<this.records.length;o++){var a=this.records[o];if(a){var l=function(t){if(e.hierarchy.record)t.records=t[s][e.hierarchy.record];else{var r=s.split(n.mapChar),o=null;if(r.length>1){for(var a=t,l=0;l<r.length;l++)null!=a&&(a=a[r[l]]);o=a}else o=t[s];t.records=o}(null==t.records||t.records&&0==t.records.length)&&(t[i.leaf]=!0)};l(a),a[i.level]=0;var h=this.getid(e.id,a,o);a.uid=h,a[i.parent]=null,a[i.data]=a,void 0===a[i.expanded]&&(a[i.expanded]=!1);var u=function(t,r){if(r)for(var s=0;s<r.length;s++){var o=r[s];if(o){l(o),o[i.level]=t[i.level]+1,o[i.parent]=t,o[i.data]=o;var a=n.getid(e.id,o,s);o.uid=a==s&&null==e.id?t.uid+"_"+a:a,void 0===o[i.expanded]&&(o[i.expanded]=!1),u(o,o.records)}}else t.records=new Array};u(a,a.records)}}return this.hierarchy}if(e.hierarchy.keyDataField&&e.hierarchy.parentDataField)return r=this.getRecordsHierarchy(e.hierarchy.keyDataField.name,e.hierarchy.parentDataField.name,"records",null,t),this.hierarchy=r,r;if(e.hierarchy.groupingDataFields){var c=new Array;for(o=0;o<e.hierarchy.groupingDataFields.length;o++)c.push(e.hierarchy.groupingDataFields[o].name);return r=this.getGroupedRecords(c,"records","label",null,"data",null,"parent",t),this.hierarchy=r,r}}},addRecord:function(t,e,r,n){var i=this;if(null!=t){if(null==r){if(this.hierarchy&&this.hierarchy.length>=0&&(this._source.hierarchy||n)){var s=i._source&&i._source.hierarchy?i._source.hierarchy.reservedNames:null;null==s&&(s={leaf:"leaf",parent:"parent",expanded:"expanded",checked:"checked",selected:"selected",level:"level",icon:"icon",data:"data"}),t[s.level]=0,"last"==e?this.hierarchy.push(t):"number"==typeof e&&isFinite(e)?this.hierarchy.splice(e,0,t):this.hierarchy.splice(0,0,t)}else"last"==e?this.records.push(t):"number"==typeof e&&isFinite(e)?this.records.splice(e,0,t):this.records.splice(0,0,t);return!0}if(this.hierarchy.length>0){var o=function(n){if(n)for(var s=0;s<n.length;s++){var a=n[s];if(a.uid==r){var l=i._source&&i._source.hierarchy?i._source.hierarchy.reservedNames:null;return null==l&&(l={leaf:"leaf",parent:"parent",expanded:"expanded",checked:"checked",selected:"selected",level:"level",icon:"icon",data:"data"}),t[l.parent]=a,t[l.level]=a[l.level]+1,a.records?a[l.leaf]=!1:(a.records=new Array,a[l.leaf]=!1),"last"==e?a.records.push(t):"number"==typeof e&&isFinite(e)?a.records.splice(e,0,t):a.records.splice(0,0,t),!0}a.records&&o(a.records)}};o(this.hierarchy)}}return!1},deleteRecord:function(t){var e=this;if(this.hierarchy.length>0){var r=function(n){if(n)for(var i=0;i<n.length;i++){if((a=n[i]).uid==t){n.splice(i,1),e.recordids[t]&&delete e.recordids[t];var s=function(t){for(var r=0;r<t.length;r++){for(var n=t[r].uid,i=0;i<e.records.length;i++)if(e.records[i].uid==n){e.records.splice(i,1);break}t[r].records&&s(t[r].records)}};a.records&&s(a.records);for(var o=0;o<e.records.length;o++){var a;if((a=e.records[o]).uid==t){e.records.splice(o,1);break}}return!0}a.records&&r(a.records)}};r(this.hierarchy)}else for(var n=0;n<this.records.length;n++)if(this.records[n].uid==t)return this.records.splice(n,1),!0;return!1},addForeignValues:function(t){for(var e=this,r=t.datafields?t.datafields.length:0,n=0;n<r;n++){var i=t.datafields[n];if(null!=i)if(null!=i.values){null==i.value&&(i.value=i.name),null==i.values.value&&(i.values.value=i.value);var s,o,a=new Array;e.pageable&&e.virtualmode?(o=(s=e.pagenum*e.pagesize)+e.pagesize)>e.totalrecords&&(o=e.totalrecords):e.virtualmode?(s=t.recordstartindex,(o=t.recordendindex)>e.totalrecords&&(o=e.totalrecords)):(s=0,o=e.records.length);for(var l=s;l<o;l++){var h=i.name,u=(g=e.records[l])[i.value];if(null!=a[u])g[h]=a[u];else for(var c=0;c<i.values.source.length;c++){var d=i.values.source[c],f=d[i.values.value];if(null==f&&(f=d.uid),f==u){var p=d[i.values.name];g[h]=p,a[u]=p;break}}}}else if(null!=i.value)for(l=0;l<e.records.length;l++){var g;(g=e.records[l])[i.name]=g[i.value]}}},abort:function(){this.xhr&&4!=this.xhr.readyState&&(this.xhr.abort(),this.callDownloadComplete())},_requestData:function(e,r,n){var i=this;n.loadServerData(e,r,(function(e){if(e.totalrecords&&(r.totalrecords=e.totalrecords,i.totalrecords=e.totalrecords),e.records&&(i.records=e.records,i.cachedrecords=e.records),i.addForeignValues(r),n.uniqueDataFields){var s=i.getUniqueRecords(i.records,n.uniqueDataFields);i.records=s,i.cachedrecords=s}if(n.beforeLoadComplete){var o=n.beforeLoadComplete(i.records,e);null!=o&&(i.records=o,i.cachedrecords=o)}for(var a=0;a<i.records.length;a++){var l=i.records[a];null!=l&&null==l.uid&&(l.uid=i.getid(r.id,l,a))}i.buildHierarchy.call(i),t.isFunction(n.loadComplete)&&n.loadComplete(e),i.callDownloadComplete()}))},getUniqueRecords:function(t,e){if(t&&e)for(var r=t.length,n=e.length,i=new Array,s=new Array,o=0;o<r;o++){var a=t[o],l="";if(null!=a){for(var h=0;h<n;h++)l+=a[e[h]]+"_";s[l]||(i[i.length]=a),s[l]=!0}}return i},getAggregatedData:function(e,r,n,i){var s=n;s||(s=this.records);var o={},a=new Array,l=s.length;if(0!=l&&null!=l){for(var h=0;h<l;h++)for(var u=s[h],c=0;c<e.length;c++){var d=u[(g=e[c]).name];if(g.aggregates){o[g.name]=o[g.name]||{},a[g.name]=a[g.name]||0,a[g.name]++;var f=function(e){for(var r in e){var n=o[g.name][r];null==n&&(o[g.name][r]=0,n=0),t.isFunction(e[r])&&(n=e[r](n,d,g.name,u,i)),o[g.name][r]=n}},p=parseFloat(d);(p=!isNaN(p))&&(d=parseFloat(d)),"number"==typeof d&&isFinite(d)?t.each(g.aggregates,(function(){var t=o[g.name][this];if(null==t&&(t=0,"min"==this&&(t=9999999999999),"max"==this&&(t=-9999999999999)),"sum"==this||"avg"==this||"stdev"==this||"stdevp"==this||"var"==this||"varp"==this)t+=parseFloat(d);else if("product"==this)0==h?t=parseFloat(d):t*=parseFloat(d);else if("min"==this)t=Math.min(t,parseFloat(d));else if("max"==this)t=Math.max(t,parseFloat(d));else if("count"==this)t++;else if("object"==typeof this)return void f(this);o[g.name][this]=t})):t.each(g.aggregates,(function(){if("min"==this||"max"==this||"count"==this||"product"==this||"sum"==this||"avg"==this||"stdev"==this||"stdevp"==this||"var"==this||"varp"==this){if(null===d)return!0;var t=o[g.name][this];return null==t&&(t=0),o[g.name][this]=t,!0}"object"==typeof this&&f(this)}))}}for(c=0;c<e.length;c++){var g;if(o[(g=e[c]).name]||(o[g.name]={},t.each(g.aggregates,(function(t){o[g.name][this]=0}))),null!=o[g.name].avg){d=o[g.name].avg;var m=a[g.name];o[g.name].avg=0===m||null==m?0:d/m}else null!=o[g.name].count&&(o[g.name].count=l);(o[g.name].stdev||o[g.name].stdevp||o[g.name].var||o[g.name].varp)&&t.each(g.aggregates,(function(t){if("stdev"==this||"var"==this||"varp"==this||"stdevp"==this){for(var e=l,r=o[g.name][this]/l,n=0,i=0;i<l;i++){var a=s[i][g.name];n+=(a-r)*(a-r)}var h="stdevp"==this||"varp"==this?e:e-1;0==h&&(h=1),"var"==this||"varp"==this?o[g.name][this]=n/h:"stdevp"!=this&&"stdev"!=this||(o[g.name][this]=Math.sqrt(n/h))}})),g.formatStrings&&t.each(g.aggregates,(function(e){var n=g.formatStrings[e];if(n)if("min"==this||"max"==this||"count"==this||"product"==this||"sum"==this||"avg"==this||"stdev"==this||"stdevp"==this||"var"==this||"varp"==this)o[g.name][this]=t.jqx.dataFormat.formatnumber(o[g.name][this],n,r);else if("object"==typeof this)for(var i in this)o[g.name][i]=t.jqx.dataFormat.formatnumber(o[g.name][i],n,r)}))}return o}},bindDownloadComplete:function(t,e){this._downloadComplete[this._downloadComplete.length]={id:t,func:e}},unbindDownloadComplete:function(t){for(var e=0;e<this._downloadComplete.length;e++)if(this._downloadComplete[e].id==t){this._downloadComplete[e].func=null,this._downloadComplete.splice(e,1);break}},callDownloadComplete:function(){for(var t=0;t<this._downloadComplete.length;t++){var e=this._downloadComplete[t];null!=e.func&&e.func()}},setSource:function(t){this._source=t},generatekey:function(){var t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},getGroupedRecords:function(e,r,n,i,s,o,a,l,h){h||(h=0);for(var u=new Array,c=0;c<e.length;c++)u[c]=this.generatekey();r||(r="items"),n||(n="group"),s||(s="record"),a||(a="parentItem"),void 0===o&&(o="value");var d=new Array,f=0,p=new Array,g=e.length;new Array,l||(l=this.records);for(var m=l.length,v=function(e){var r=e;return i&&t.each(i,(function(){this.name&&this.map&&(r[this.map]=r[this.name])})),r},y=0;y<m;y++){var x=v(l[y]),_=new Array,b=0;for(c=0;c<g;c++){var w=x[e[c]];null!=w&&(_[b++]={value:w,hash:u[c]})}if(_.length!=g)break;for(var C=null,S="",A=0;A<_.length;A++){var k=_[A].value;if(null==p[S=S+"_"+_[A].hash+"_"+k]||null==p[S]){if(null==C){(C={level:0})[a]=null,C[n]=k,C[s]=x,C.expanded=void 0!==x.expanded&&x.expanded,o&&(C[o]=x[o]),C[r]=new Array;var T=d.length+h;this._source.id&&"number"!=typeof x.uid&&!isFinite(x.uid)||(T="Row"+T),C.uid=T,d[f++]=C}else{var j={level:C.level+1};j[a]=C,j[n]=k,j[r]=new Array,j[s]=x,j.expanded=void 0!==x.expanded&&x.expanded,o&&(j[o]=x[o]),j.uid=C.uid+"_"+C[r].length,C[r][C[r].length]=j,C=j}p[S]=C}else C=p[S]}x&&(x.leaf=!0),null!=C?(null==this._source.id&&(null==x.uid?x.uid=C.uid+"_"+C[r].length:-1==x.uid.toString().indexOf(C.uid)&&(x.uid=C.uid+"_"+x.uid)),x[a]=C,x.level=C.level+1,C[r][C[r].length]=x):null==x.uid&&(x.uid=this.generatekey())}return d},getRecordsHierarchy:function(e,r,n,i,s){var o=new Array,a=this.records;if(s&&(a=s),0==this.records.length)return null;for(var l=null!=n?n:"items",h=[],u=a,c=u.length,d=this._source&&this._source.hierarchy?this._source.hierarchy.reservedNames:null,f=function(e){var r=e;return i&&t.each(i,(function(){this.name&&this.map&&(r[this.map]=r[this.name])})),r},p=0;p<c;p++)h[m=(v=t.extend({},u[p]))[e]]={parentid:g=v[r],item:v};for(p=0;p<c;p++){var g,m=(v=t.extend({},u[p]))[e];if(null!=h[g=v[r]]){var v={parentid:g,item:h[m].item},y=h[g].item;y[l]||(y[l]=[]);var x=y[l].length,_=v.item;d?null==_[d.parent]&&(_[d.parent]=y):null==_.parent&&(_.parent=y);var b=f(_);y[l][x]=b,h[g].item=y,h[m]=v}else _=h[m].item,d?null==_[d.parent]&&(_[d.parent]=null):null==_.parent&&(_.parent=null),b=f(_),d?b[d.level]=0:b.level=0,o[o.length]=b}if(0!=o.length){var w=function(t,e){for(var r=0;r<e.length;r++){d?e[r][d.level]=t:e[r].level=t;var n=e[r][l];n&&n.length>0?w(t+1,n):d?e[r][d.leaf]=!0:e[r].leaf=!0}};w(0,o)}return o},bindBindingUpdate:function(t,e){this._bindingUpdate[this._bindingUpdate.length]={id:t,func:e}},unbindBindingUpdate:function(t){for(var e=0;e<this._bindingUpdate.length;e++)if(this._bindingUpdate[e].id==t){this._bindingUpdate[e].func=null,this._bindingUpdate.splice(e,1);break}},callBindingUpdate:function(t){for(var e=0;e<this._bindingUpdate.length;e++){var r=this._bindingUpdate[e];null!=r.func&&r.func(t)}},getid:function(e,r,n){if(null==e||null==e.name||!e.name){if(t(e,r).length>0)return t(e,r).text();if(e&&e.toString().length>0){if(null!=(a=t(r).attr(e))&&a.toString().length>0)return t.trim(a).split(" ").join("").replace(/([ #;?%&,.+*~\':"!^$[\]()=>|\/\\@])/g,"");var i=e.split(this.mapChar);if(i.length>1){for(var s=r,o=0;o<i.length;o++)null!=s&&(s=s[i[o]]);if(null!=s)return s}else if(null!=r[e])return r[e]}return n}if(null!=(a=t(r).attr(e.name))&&a.toString().length>0)return a;if(e.map)try{var a;if(null!=(a=t(r).attr(e.map))&&a.toString().length>0)return a;if(t(e.map,r).length>0)return t(e.map,r).text();if(t(e.name,r).length>0)return t(e.name,r).text()}catch(l){return n}},loadjson:function(e,r,n){"string"==typeof e&&(e=t.parseJSON(e)),null==n.root&&(n.root=""),null==n.record&&(n.record=""),(e=e||r)||(e=[]);var i=this;if(""!=n.root){if((C=n.root.split(i.mapChar)).length>1){for(var s=e,o=0;o<C.length;o++)null!=s&&(s=s[C[o]]);e=s}else if(void 0!==e[n.root]?e=e[n.root]:e[0]&&void 0!==e[0][n.root]?e=e[0][n.root]:t.each(e,(function(t){if(this==n.root)return e=this,!1;null!=this[n.root]&&(e=this[n.root])})),!e&&(C=n.root.split(i.mapChar)).length>0){for(s=e,o=0;o<C.length;o++)null!=s&&(s=s[C[o]]);e=s}}else if(!e.length)for(var a in e)if(t.isArray(e[a])){e=e[a];break}if(null!=e&&null==e.length&&(e=t.makeArray(e)),null==e||null==e||"undefined"==e||null==e.length)throw new Error("jqxDataAdapter: JSON Parse error! Invalid JSON. Please, check your JSON or your jqxDataAdapter initialization!");if(0!=e.length){var l=e.length;this.totalrecords=this.virtualmode&&n.totalrecords||l,this.records=new Array,this.originaldata=new Array;var h=this.records,u=this.pageable?this.pagesize*this.pagenum:n.recordstartindex;this.recordids=new Array,n.loadallrecords&&(u=0,l=this.totalrecords);var c=0;this.virtualmode&&(c=u=this.pageable?this.pagesize*this.pagenum:n.recordstartindex,u=0,l=this.totalrecords);var d=n.datafields?n.datafields.length:0;if(0==d){var f=e[0],p=new Array;for(var a in f)p[p.length]={name:a};n.datafields=p,n.generatedfields=n.datafields,d=p.length}for(var g=u,m=u;m<l;m++){var v=e[m];if(null==v)break;if(!n.record||""==n.record||null!=(v=v[n.record])){var y=this.getid(n.id,v,m);if("object"==typeof y&&(y=m),!this.recordids[y]){this.recordids[y]=v;for(var x={},_=0;_<d;_++){var b=n.datafields[_],w="";if(null!=b&&null!=b){if(b.map){var C;if(t.isFunction(b.map))w=b.map(v);else if((C=b.map.split(i.mapChar)).length>0){var S=v;for(o=0;o<C.length;o++)null!=S&&(S=S[C[o]]);w=S}else w=v[b.map];null!=w&&null!=w?w=this.getvaluebytype(w,b):null==w&&null!=w&&(w="")}if(""==w&&!b.map&&(null==(w=v[b.name])&&null!=w&&(w=""),null!=b.value&&null!=w)){var A=w[b.value];null!=A&&(w=A)}if(w=this.getvaluebytype(w,b),null!=b.displayname?x[b.displayname]=w:x[b.name]=w,"array"===b.type){var k=function(e){if(e)for(var r=0;r<e.length;r++){var s=e[r];if(s)for(var o=0;o<d;o++){var a=n.datafields[o],l="";if(null!=a&&null!=a){if(a.map){if(t.isFunction(a.map))l=a.map(s);else{var h=a.map.split(i.mapChar);if(h.length>0){for(var u=s,c=0;c<h.length;c++)null!=u&&(u=u[h[c]]);l=u}else l=s[a.map]}null!=l&&null!=l?l=this.getvaluebytype(l,a):null==l&&null!=l&&(l="")}if(""==l&&!a.map&&(null==(l=s[a.name])&&null!=l&&(l=""),null!=a.value&&null!=l)){var f=l[a.value];null!=f&&(l=f)}l=this.getvaluebytype(l,a),null!=a.displayname?s[a.displayname]=l:s[a.name]=l,"array"===a.type&&k.call(this,l)}}}};k.call(this,w)}}}(n.recordendindex<=0||u<n.recordendindex)&&(h[c+g]=new Object(x),h[c+g].uid=y,this.originaldata[c+g]=new Object(h[m]),g++)}}}this.records=h,this.cachedrecords=this.records}else this.totalrecords=0},loadxml:function(e,r,n){"string"==typeof e&&(e=r=t(t.parseXML(e)),e=null),null==n.root&&(n.root=""),null==n.record&&(n.record=""),(e=t.jqx.browser.msie&&r&&null!=r.xml?t(n.root+" "+n.record,t.parseXML(r.xml)):e||t(n.root+" "+n.record,r))||(e=[]);var i=e.length;if(0!=e.length){this.totalrecords=this.virtualmode&&n.totalrecords||i,this.records=new Array,this.originaldata=new Array;var s=this.records,o=this.pageable?this.pagesize*this.pagenum:n.recordstartindex;this.recordids=new Array,n.loadallrecords&&(o=0,i=this.totalrecords);var a=0;this.virtualmode&&(a=o=this.pageable?this.pagesize*this.pagenum:n.recordstartindex,o=0,i=this.totalrecords);var l=n.datafields?n.datafields.length:0;if(0==l){var h=e[0],u=new Array;for(var c in h)u[u.length]={name:c};n.datafields=u,n.generatedfields=n.datafields,l=u.length}for(var d=o,f=o;f<i&&null!=(k=e[f]);f++){var p=this.getid(n.id,k,f);if(!this.recordids[p]){this.recordids[p]=k;var g={},m=!1;n.hierarchy&&n.hierarchy.root&&(m=!0);for(var v=0;v<l;v++){var y=n.datafields[v],x="";if(null!=y&&null!=y){if(y.map)if(t.isFunction(y.map))x=y.map(k);else{var _=y.map.indexOf("[");if(_<0)if(1==(x=t(y.map,k)).length)x=x.text();else{for(var b=new Array,w=0;w<x.length;w++)b.push(t(x[w]).text());x=b,m&&b.length>0&&(x=b[0])}else{var C=y.map.substring(0,_-1),S=y.map.indexOf("]"),A=y.map.substring(_+1,S);null==(x=t(C,k).attr(A))&&(x=t(k).attr(A)),null==x&&(x="")}""==x&&null==(x=t(k).attr(y.map))&&(x="")}if(""==x){if(1==(x=t(y.name,k)).length)x=x.text();else{for(b=new Array,w=0;w<x.length;w++)b.push(t(x[w]).text());x=b,m&&b.length>0&&(x=b[0])}""==x&&null==(x=t(k).attr(y.name))&&(x=""),""==x&&k.nodeName&&k.nodeName==y.name&&k.firstChild&&(x=t(k.firstChild).text())}x=this.getvaluebytype(x,y),null!=y.displayname?g[y.displayname]=x:g[y.name]=x}}(n.recordendindex<=0||o<n.recordendindex)&&(s[a+d]=t.extend({},g),s[a+d].uid=p,this.originaldata[a+d]=t.extend({},s[f]),d++)}}if(n.hierarchy&&n.hierarchy.root)for(f=o;f<i;f++){var k,T=s[f];t(k=e[f]).parent().length>0?(p=this.getid(n.id,t(k).parents(n.hierarchy.record+":first")),T.parentuid=p):T.parentuid=null}this.records=s,this.cachedrecords=this.records}},loadics:function(t,e){if(null!=t){var r=t.split(e.rowDelimiter||this.rowDelimiter||"\n"),n=r.length,i=t.split("\r");1==n&&i.length>1&&(n=(r=i).length),this.records=new Array,this.originaldata=new Array;var s=this.records;this.recordids=new Array;for(var o=function(t){var e=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z)?$/.exec(t);if(!e)throw new Error("Invalid UNTIL value: "+t);return new Date(Date.UTC(e[1],e[2]-1,e[3],e[5]||0,e[6]||0,e[7]||0))},a=0;a<n;a++){var l=r[a];if("BEGIN:VEVENT"!=l)if(l.indexOf("SUMMARY")>=0)u.SUMMARY=l.substring(l.indexOf("SUMMARY")+8);else if(l.indexOf("LOCATION")>=0)u.LOCATION=l.substring(l.indexOf("LOCATION")+9);else if(l.indexOf("DESCRIPTION")>=0)u.DESCRIPTION=l.substring(l.indexOf("DESCRIPTION")+12);else if(l.indexOf("RRULE")>=0)u.RRULE=l.substring(l.indexOf("RRULE")+6);else if(l.indexOf("EXDATE")>=0){var h=l.substring(l.indexOf("EXDATE")+7);u.EXDATE=h}else l.indexOf("DTEND")>=0?u.DTEND=o(l.substring(l.indexOf("DTEND")+6)):l.indexOf("DTSTART")>=0?u.DTSTART=o(l.substring(l.indexOf("DTSTART")+8)):l.indexOf("UID")>=0?u.uid=u.UID=l.substring(l.indexOf("UID")+4):l.indexOf("STATUS")>=0?u.STATUS=l.substring(l.indexOf("STATUS")+7):"END:VEVENT"!=l||s.push(u);else var u={}}this.records=s,this.cachedrecords=this.records}},loadtext:function(e,r){if(null!=e){var n=e.split(r.rowDelimiter||this.rowDelimiter||"\n"),i=n.length,s=e.split("\r");1==i&&s.length>1&&(i=(n=s).length),this.totalrecords=this.virtualmode&&r.totalrecords||i,this.records=new Array,this.originaldata=new Array;var o=this.records,a=this.pageable?this.pagesize*this.pagenum:r.recordstartindex;this.recordids=new Array,r.loadallrecords&&(a=0,i=this.totalrecords);var l=0;this.virtualmode&&(l=a=this.pageable?this.pagesize*this.pagenum:r.recordstartindex,a=0,i=this.totalrecords);var h=r.datafields.length,u=r.columnDelimiter||this.columnDelimiter;u||(u="tab"===r.datatype||"tsv"===r.datatype?"\t":",");for(var c=a;c<i;c++){var d=n[c],f=null;if(!this.recordids[f]){null==r.id&&(this.recordids[f=c]=d);for(var p={},g=n[c].split(u),m=0;m<h;m++)if(!(m>=g.length)){var v=r.datafields[m],y=g[m];v.map&&t.isFunction(v.map)&&(y=v.map(d)),v.type&&(y=this.getvaluebytype(y,v)),p[v.map||v.name||m.toString()]=y,null!=r.id&&r.id===v.name&&(this.recordids[f=y]=d)}null==f&&(f=c),o[l+c]=t.extend({},p),o[l+c].uid=f,this.originaldata[l+c]=t.extend({},o[c])}}this.records=o,this.cachedrecords=this.records}},getvaluebytype:function(e,r){var n=e;if(null==e)return e;if(t.isArray(e)&&"array"!=r.type){for(var i=0;i<e.length;i++)e[i]=this.getvaluebytype(e[i],r);return e}if("date"==r.type)if("NaN"==e)e="";else{if(e&&e instanceof Date)return e;var s=new Date(e);if("string"==typeof e&&r.format){var o=t.jqx.dataFormat.parsedate(e,r.format);null!=o&&(s=o)}null==(e="NaN"!=s.toString()&&"Invalid Date"!=s.toString()||!t.jqx.dataFormat?s:t.jqx.dataFormat.tryparsedate(e))&&(e=n)}else"float"==r.type||"number"==r.type||"decimal"==r.type?"NaN"==e?e="":(e=parseFloat(e),isNaN(e)&&(e=n)):"int"==r.type||"integer"==r.type?(e=parseInt(e),isNaN(e)&&(e=n)):"bool"!=r.type&&"boolean"!=r.type||(null!=e&&null!=e.toLowerCase&&("false"==e.toLowerCase()?e=!1:"true"==e.toLowerCase()&&(e=!0)),e=1==e||(0!=e||""===e)&&"");return e}},t.jqx.dataFormat={},t.extend(t.jqx.dataFormat,{regexTrim:/^\s+|\s+$/g,regexInfinity:/^[+-]?infinity$/i,regexHex:/^0x[a-f0-9]+$/i,regexParseFloat:/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/,toString:Object.prototype.toString,isBoolean:function(t){return"boolean"==typeof t},isObject:function(e){return e&&("object"==typeof e||t.isFunction(e))||!1},isDate:function(t){return t instanceof Date},arrayIndexOf:function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t&&isFinite(t)},isNull:function(t){return null===t},isUndefined:function(t){return void 0===t},isValue:function(t){return this.isObject(t)||this.isString(t)||this.isNumber(t)||this.isBoolean(t)},isEmpty:function(e){return!(!this.isString(e)&&this.isValue(e)||this.isValue(e)&&""!==t.trim(e).replace(/\ \;/gi,"").replace(/\ \;/gi,""))},startsWith:function(t,e){return 0===t.indexOf(e)},endsWith:function(t,e){return t.substr(t.length-e.length)===e},trim:function(t){return(t+"").replace(this.regexTrim,"")},isArray:function(t){return"[object Array]"===this.toString.call(t)},defaultcalendar:function(){return{"/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",ISO:"yyyy-MM-dd hh:mm:ss",ISO2:"yyyy-MM-dd HH:mm:ss",d1:"dd.MM.yyyy",d2:"dd-MM-yyyy",d3:"MM-dd-yyyy",zone1:"yyyy-MM-ddTHH:mm:ss-HH:mm",zone2:"yyyy-MM-ddTHH:mm:ss+HH:mm",custom:"yyyy-MM-ddTHH:mm:ss.fff",custom2:"yyyy-MM-dd HH:mm:ss.fff"},percentsymbol:"%",currencysymbol:"$",currencysymbolposition:"before",decimalseparator:".",thousandsseparator:","}},expandFormat:function(t,e){var r,n=(e=e||"F").length;if(1===n){if(!(r=t.patterns[e]))throw"Invalid date format string '"+e+"'.";e=r}else 2===n&&"%"===e.charAt(0)&&(e=e.charAt(1));return e},getEra:function(t,e){if(!e)return 0;if("string"==typeof t)return 0;for(var r,n=t.getTime(),i=0,s=e.length;i<s;i++)if(null===(r=e[i].start)||n>=r)return i;return 0},toUpper:function(t){return t.split("\xa0").join(" ").toUpperCase()},toUpperArray:function(t){for(var e=[],r=0,n=t.length;r<n;r++)e[r]=this.toUpper(t[r]);return e},getEraYear:function(t,e,r,n){var i=t.getFullYear();return!n&&e.eras&&(i-=e.eras[r].offset),i},toUpper:function(t){return t?t.toUpperCase():""},getDayIndex:function(t,e,r){var n,i=t.days,s=t._upperDays;return s||(t._upperDays=s=[this.toUpperArray(i.names),this.toUpperArray(i.namesAbbr),this.toUpperArray(i.namesShort)]),e=e.toUpperCase(),r?-1===(n=this.arrayIndexOf(s[1],e))&&(n=this.arrayIndexOf(s[2],e)):n=this.arrayIndexOf(s[0],e),n},getMonthIndex:function(t,e,r){var n=t.months,i=t.monthsGenitive||t.months,s=t._upperMonths,o=t._upperMonthsGen;s||(t._upperMonths=s=[this.toUpperArray(n.names),this.toUpperArray(n.namesAbbr)],t._upperMonthsGen=o=[this.toUpperArray(i.names),this.toUpperArray(i.namesAbbr)]),e=this.toUpper(e);var a=this.arrayIndexOf(r?s[1]:s[0],e);return a<0&&(a=this.arrayIndexOf(r?o[1]:o[0],e)),a},appendPreOrPostMatch:function(t,e){for(var r=0,n=!1,i=0,s=t.length;i<s;i++){var o=t.charAt(i);switch(o){case"'":n?e.push("'"):r++,n=!1;break;case"\\":n&&e.push("\\"),n=!n;break;default:e.push(o),n=!1}}return r},getTokenRegExp:function(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g},formatlink:function(t,e){var r="";return e&&e.target&&(r="target="+e.target),""!=r?"<a "+r+' href="'+t+'">'+t+"</a>":'<a href="'+t+'">'+t+"</a>"},formatemail:function(t){return'<a href="mailto:'+t+'">'+t+"</a>"},formatNumber:function(t,e,r){return this.formatnumber(t,e,r)},formatnumber:function(t,e,r){if(null!=r&&null!=r&&""!=r||(r=this.defaultcalendar()),""===e||null===e)return t;var n;this.isNumber(t)||(t*=1),e.length>1&&(n=parseInt(e.slice(1),10));var i={},s=e.charAt(0).toUpperCase();switch(i.thousandsSeparator=r.thousandsseparator,i.decimalSeparator=r.decimalseparator,s){case"D":case"d":case"F":case"f":i.decimalPlaces=n;break;case"N":case"n":i.decimalPlaces=0;break;case"C":case"c":i.decimalPlaces=n,"before"==r.currencysymbolposition?i.prefix=r.currencysymbol:i.suffix=r.currencysymbol;break;case"P":case"p":i.suffix=r.percentsymbol,i.decimalPlaces=n;break;default:throw"Bad number format specifier: "+s}if(this.isNumber(t)){var o,a=t<0,l=t+"",h=i.decimalSeparator?i.decimalSeparator:".";if(this.isNumber(i.decimalPlaces)){var u=i.decimalPlaces,c=Math.pow(10,u);if(o=(l=(t*c).toFixed(0)/c+"").lastIndexOf("."),u>0)for(o<0?o=(l+=h).length-1:"."!==h&&(l=l.replace(".",h));l.length-1-o<u;)l+="0"}else(o=(l=t+"").lastIndexOf("."))>0&&null==u&&"."!==h&&(l=l.replace(".",h));if(i.thousandsSeparator){var d=i.thousandsSeparator;o=l.lastIndexOf(h);for(var f=l.substring(o=o>-1?o:l.length),p=-1,g=o;g>0;g--)++p%3==0&&g!==o&&(!a||g>1)&&(f=d+f),f=l.charAt(g-1)+f;l=f}return l=i.prefix?i.prefix+l:l,i.suffix?l+i.suffix:l}return t},tryparsedate:function(e,r){null!=r&&null!=r||(r=this.defaultcalendar());var n=this;if(""==e)return null;if(null==e||e.substring||(e=e.toString()),null!=e&&"/Date("==e.substring(0,6)){if("Invalid Date"==(i=new Date(+e.replace(/\/Date\((\d+)\)\//,"$1")))){var i=null;(O=e.match(/^\/Date\((\d+)([-+]\d\d)(\d\d)\)\/$/))&&(i=new Date(1*O[1]+36e5*O[2]+6e4*O[3]))}if(null==i||"Invalid Date"==i||isNaN(i)){var s=/^\/Date\((-?\d+)(\+|-)?(\d+)?\)\/$/.exec(e);if(s){var o=new Date(parseInt(s[1]));if(s[2]){var a=parseInt(s[3]);"-"===s[2]&&(a=-a);var l=o.getUTCMinutes();o.setUTCMinutes(l-a)}if(!isNaN(o.valueOf()))return o}}return i}var h=r.patterns;for(var u in h)if(i=n.parsedate(e,h[u],r))return"ISO"==u&&(c=n.parsedate(e,h.ISO2,r))?c:i;if(null!=e){for(var c=null,d=[":","/","-"],f=!0,p=0;p<d.length;p++)-1!=e.indexOf(d[p])&&(f=!1);if(f){var g=new Number(e);if(!isNaN(g))return new Date(g)}}if("string"===t.type(e)){var m=n,v=[":","/","-"," ",","],y="",x=e=(e=m.trim(e)).replace(new RegExp(", ","g"),",");e.indexOf(":")>=0?(y=e.substring(e.indexOf(":")-2),y=m.trim(y),x=e.substring(0,e.indexOf(":")-2)):e.toUpperCase().indexOf("AM")>=0?(y=e.substring(e.toUpperCase().indexOf("AM")-2),y=m.trim(y),x=e.substring(0,e.toUpperCase().indexOf("AM")-2)):e.toUpperCase().indexOf("PM")>=0&&(y=e.substring(e.toUpperCase().indexOf("PM")-2),y=m.trim(y),x=e.substring(0,e.toUpperCase().indexOf("PM")-2));var _=new Date,b=!1;if(x){for(var w=0;w<v.length;w++)if(x.indexOf(v[w])>=0){d=x.split(v[w]);break}var C=new Array,S=new Array,A=new Array,k=null,T=null;for(w=0;w<d.length;w++){var j=m.parsedate(p=d[w],"d",r)||m.parsedate(p,"dd",r)||m.parsedate(p,"ddd",r)||m.parsedate(p,"dddd",r);if(j&&p.length<=2){k=w,C.push(j.getDate());break}}for(w=0;w<d.length;w++){var q=m.parsedate(p=d[w],"M",r)||m.parsedate(p,"MM",r)||m.parsedate(p,"MMM",r)||m.parsedate(p,"MMMM",r);if(q){if(null!=k&&k==w)continue;if(S.push(q.getMonth()),p.length>2){T=w;break}}}for(w=0;w<d.length;w++){var N=m.parsedate(p=d[w],"yyyy",r);if(N){if(null!=k&&k==w)continue;if(null!=T&&T==w)continue;A.push(N.getFullYear())}}for(var E=new Array,M=0;M<C.length;M++)for(var O=0;O<S.length;O++)for(var I=0;I<A.length;I++)o=new Date(A[I],S[O],C[M]),A[I]<1970&&o.setFullYear(A[I]),NaN!=o.getTime()&&E.push(o);E.length>0&&(_=E[0],b=!0)}if(y){var D=y.indexOf(":")>=0?y.split(":"):y,P=m.parsedate(y,"h:mm tt",r)||m.parsedate(y,"h:mm:ss tt",r)||m.parsedate(y,"HH:mm:ss.fff",r)||m.parsedate(y,"HH:mm:ss.ff",r)||m.parsedate(y,"HH:mm:ss.tttt",r)||m.parsedate(y,"HH:mm:ss",r)||m.parsedate(y,"HH:mm",r)||m.parsedate(y,"HH",r),R=0,F=0,L=0,H=0;P&&NaN!=P.getTime()?(R=P.getHours(),F=P.getMinutes(),L=P.getSeconds(),H=P.getMilliseconds()):(1==D.length&&(R=parseInt(D[0])),2==D.length&&(R=parseInt(D[0]),F=parseInt(D[1])),3==D.length&&(R=parseInt(D[0]),F=parseInt(D[1]),D[2].indexOf(".")>=0?(L=parseInt(D[2].toString().split(".")[0]),H=parseInt(D[2].toString().split(".")[1])):L=parseInt(D[2])),4==D.length&&(R=parseInt(D[0]),F=parseInt(D[1]),L=parseInt(D[2]),H=parseInt(D[3]))),!_||isNaN(R)||isNaN(F)||isNaN(L)||isNaN(H)||(_.setHours(R,F,L,H),b=!0)}if(b)return _}return null},getparseregexp:function(t,e){var r=t._parseRegExp;if(r){var n=r[e];if(n)return n}else t._parseRegExp=r={};for(var i,s=this.expandFormat(t,e).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),o=["^"],a=[],l=0,h=0,u=this.getTokenRegExp();null!==(i=u.exec(s));){var c=s.slice(l,i.index);if(l=u.lastIndex,(h+=this.appendPreOrPostMatch(c,o))%2)o.push(i[0]);else{var d,f=i[0],p=f.length;switch(f){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":d="(\\D+)";break;case"tt":case"t":d="(\\D*)";break;case"yyyy":case"fff":case"ff":case"f":d="(\\d{"+p+"})";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":d="(\\d\\d?)";break;case"zzz":d="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":d="([+-]?\\d\\d?)";break;case"/":d="(\\"+t["/"]+")";break;default:throw"Invalid date format pattern '"+f+"'."}d&&o.push(d),a.push(i[0])}}this.appendPreOrPostMatch(s.slice(l),o),o.push("$");var g=o.join("").replace(/\s+/g,"\\s+");return r[e]={regExp:g,groups:a}},outOfRange:function(t,e,r){return t<e||t>r},expandYear:function(t,e){var r=new Date,n=this.getEra(r);if(e<100){var i=t.twoDigitYearMax;i="string"==typeof i?(new Date).getFullYear()%100+parseInt(i,10):i;var s=this.getEraYear(r,t,n);(e+=s-s%100)>i&&(e-=100)}return e},parsedate:function(t,e,r){null!=r&&null!=r||(r=this.defaultcalendar()),t=this.trim(t);var n=r,i=this.getparseregexp(n,e),s=new RegExp(i.regExp).exec(t);if(null===s)return null;for(var o,a=i.groups,l=null,h=null,u=null,c=null,d=null,f=0,p=0,g=0,m=0,v=null,y=!1,x=0,_=a.length;x<_;x++){var b=s[x+1];if(b){var w=a[x],C=w.length,S=parseInt(b,10);switch(w){case"dd":case"d":if(this.outOfRange(c=S,1,31))return null;break;case"MMM":case"MMMM":if(u=this.getMonthIndex(n,b,3===C),this.outOfRange(u,0,11))return null;break;case"M":case"MM":if(this.outOfRange(u=S-1,0,11))return null;break;case"y":case"yy":case"yyyy":if(h=C<4?this.expandYear(n,S):S,this.outOfRange(h,0,9999))return null;break;case"h":case"hh":if(12===(f=S)&&(f=0),this.outOfRange(f,0,11))return null;break;case"H":case"HH":if(this.outOfRange(f=S,0,23))return null;break;case"m":case"mm":if(this.outOfRange(p=S,0,59))return null;break;case"s":case"ss":if(this.outOfRange(g=S,0,59))return null;break;case"tt":case"t":if(!(y=n.PM&&(b===n.PM[0]||b===n.PM[1]||b===n.PM[2]))&&(!n.AM||b!==n.AM[0]&&b!==n.AM[1]&&b!==n.AM[2]))return null;break;case"f":case"ff":case"fff":if(m=S*Math.pow(10,3-C),this.outOfRange(m,0,999))return null;break;case"ddd":case"dddd":if(d=this.getDayIndex(n,b,3===C),this.outOfRange(d,0,6))return null;break;case"zzz":var A=b.split(/:/);if(2!==A.length)return null;if(o=parseInt(A[0],10),this.outOfRange(o,-12,13))return null;var k=parseInt(A[1],10);if(this.outOfRange(k,0,59))return null;v=60*o+(this.startsWith(b,"-")?-k:k);break;case"z":case"zz":if(this.outOfRange(o=S,-12,13))return null;v=60*o;break;case"g":case"gg":var T=b;if(!T||!n.eras)return null;T=this.trim(T.toLowerCase());for(var j=0,q=n.eras.length;j<q;j++)if(T===n.eras[j].name.toLowerCase()){l=j;break}if(null===l)return null}}}var N,E=new Date,M=n.convert;if(N=E.getFullYear(),null===h?h=N:n.eras&&(h+=n.eras[l||0].offset),null===u&&(u=0),null===c&&(c=1),M){if(null===(E=M.toGregorian(h,u,c)))return null}else{if(E.setFullYear(h,u,c),E.getDate()!==c)return null;if(null!==d&&E.getDay()!==d)return null}if(y&&f<12&&(f+=12),E.setHours(f,p,g,m),null!==v){var O=E.getMinutes()-(v+E.getTimezoneOffset());E.setHours(E.getHours()+parseInt(O/60,10),O%60)}return E},cleardatescache:function(){this.datescache=new Array},formatDate:function(t,e,r){return this.formatdate(t,e,r)},formatdate:function(t,e,r){if(null!=r&&null!=r||(r=this.defaultcalendar()),"string"==typeof t)return t;var n,i=t.toString()+"_"+e;if(this.datescache&&this.datescache[i]&&-1==e.indexOf("f"))return this.datescache[i];if(!e||!e.length||"i"===e)return this.formatDate(t,r.patterns.F,r);var s=r.eras,o="s"===e;e=this.expandFormat(r,e),n=[];var a,l=["0","00","000"],h=0,u=this.getTokenRegExp();function c(t,e){var r,n=t+"";return e>1&&n.length<e?(r=l[e-2]+n).substr(r.length-e,e):r=n}function d(t,e){if(null!=t.getMonth)switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate()}}for(;;){var f=u.lastIndex,p=u.exec(e),g=e.slice(f,p?p.index:e.length);if(h+=this.appendPreOrPostMatch(g,n),!p)break;if(h%2)n.push(p[0]);else{var m=p[0],v=m.length;switch(m){case"ddd":case"dddd":n.push((3===v?r.days.namesAbbr:r.days.names)[t.getDay()]);break;case"d":case"dd":n.push(c(d(t,2),v));break;case"MMM":case"MMMM":var y=d(t,1);n.push(r.months[3===v?"namesAbbr":"names"][y]);break;case"M":case"MM":n.push(c(d(t,1)+1,v));break;case"y":case"yy":case"yyyy":y=this.getEraYear(t,r,this.getEra(t,s),o),v<4&&(y%=100),n.push(c(y,v));break;case"h":case"hh":0==(a=t.getHours()%12)&&(a=12),n.push(c(a,v));break;case"H":case"HH":n.push(c(t.getHours(),v));break;case"m":case"mm":n.push(c(t.getMinutes(),v));break;case"s":case"ss":n.push(c(t.getSeconds(),v));break;case"t":case"tt":y=t.getHours()<12?r.AM?r.AM[0]:" ":r.PM?r.PM[0]:" ",n.push(1===v?y.charAt(0):y);break;case"f":case"ff":case"fff":n.push(c(t.getMilliseconds(),3).substr(0,v));break;case"z":case"zz":a=t.getTimezoneOffset()/60,n.push((a<=0?"+":"-")+c(Math.floor(Math.abs(a)),v));break;case"zzz":a=t.getTimezoneOffset()/60,n.push((a<=0?"+":"-")+c(Math.floor(Math.abs(a)),2)+":"+c(Math.abs(t.getTimezoneOffset()%60),2));break;case"g":case"gg":r.eras&&n.push(r.eras[this.getEra(t,s)].name);break;case"/":n.push(r["/"]);break;default:throw"Invalid date format pattern '"+m+"'."}}}var x=n.join("");return this.datescache||(this.datescache=new Array),this.datescache[i]=x,x}}),t.jqx.data={};var e,r,n=/#.*$/,i=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,s=/^(?:GET|HEAD)$/,o=/^\/\//,a=/\?/,l=/([?&])_=[^&]*/,h=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,u=/\s+/,c={},d={},f=["*/"]+["*"];try{r=location.href}catch(k){(r=document.createElement("a")).href="",r=r.href}function p(e){return function(r,n){"string"!=typeof r&&(n=r,r="*");var i,s,o=r.toLowerCase().split(u),a=0,l=o.length;if(t.isFunction(n))for(;a<l;a++)(s=/^\+/.test(i=o[a]))&&(i=i.substr(1)||"*"),(e[i]=e[i]||[])[s?"unshift":"push"](n)}}function g(t,e,r,n,i,s){(s=s||{})[i=i||e.dataTypes[0]]=!0;for(var o,a=t[i],l=0,h=a?a.length:0,u=t===c;l<h&&(u||!o);l++)"string"==typeof(o=a[l](e,r,n))&&(!u||s[o]?o=void 0:(e.dataTypes.unshift(o),o=g(t,e,r,n,o,s)));return!u&&o||s["*"]||(o=g(t,e,r,n,"*",s)),o}function m(e,r){var n,i,s=t.jqx.data.ajaxSettings.flatOptions||{};for(n in r)void 0!==r[n]&&((s[n]?e:i||(i={}))[n]=r[n]);i&&t.extend(!0,e,i)}e=h.exec(r.toLowerCase())||[],t.extend(t.jqx.data,{ajaxSetup:function(e,r){return r?m(e,t.jqx.data.ajaxSettings):(r=e,e=t.jqx.data.ajaxSettings),m(e,r),e},ajaxSettings:{url:r,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(e[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":f},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":window.String,"text html":!0,"text json":t.parseJSON,"text xml":t.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:p(c),ajaxTransport:p(d),ajax:function(r,p){"object"==typeof r&&(p=r,r=void 0);var m,v,y,x,_,b,w,C,S=t.jqx.data.ajaxSetup({},p=p||{}),A=S.context||S,k=A!==S&&(A.nodeType||A instanceof t)?t(A):t.event,T=t.Deferred(),j=t.Callbacks("once memory"),q=S.statusCode||{},N={},E={},M=0,O="canceled",I={readyState:0,setRequestHeader:function(t,e){if(!M){var r=t.toLowerCase();t=E[r]=E[r]||t,N[t]=e}return this},getAllResponseHeaders:function(){return 2===M?v:null},getResponseHeader:function(t){var e;if(2===M){if(!y)for(y={};e=i.exec(v);)y[e[1].toLowerCase()]=e[2];e=y[t.toLowerCase()]}return void 0===e?null:e},overrideMimeType:function(t){return M||(S.mimeType=t),this},abort:function(t){return t=t||O,x&&x.abort(t),D(0,t),this}};function D(e,n,i,s){var o,a,l,h,u,c=n;2!==M&&(M=2,_&&clearTimeout(_),x=void 0,v=s||"",I.readyState=e>0?4:0,i&&(h=function(t,e,r){var n,i,s,o,a=t.contents,l=t.dataTypes,h=t.responseFields;for(i in h)i in r&&(e[h[i]]=r[i]);for(;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("content-type"));if(n)for(i in a)if(a[i]&&a[i].test(n)){l.unshift(i);break}if(l[0]in r)s=l[0];else{for(i in r){if(!l[0]||t.converters[i+" "+l[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==l[0]&&l.unshift(s),r[s]}(S,I,i)),e>=200&&e<300||304===e?(S.ifModified&&((u=I.getResponseHeader("Last-Modified"))&&(t.lastModified[m]=u),(u=I.getResponseHeader("Etag"))&&(t.etag[m]=u)),304===e?(c="notmodified",o=!0):(c=(o=function(t,e){var n,i,s,o,a=t.dataTypes.slice(),l=a[0],h={},u=0;if(t.dataFilter&&(e=t.dataFilter(e,t.dataType)),a[1])for(n in t.converters)h[n.toLowerCase()]=t.converters[n];for(;s=a[++u];)if("*"!==s){if("*"!==l&&l!==s){if(!(n=h[l+" "+s]||h["* "+s]))for(i in h)if((o=i.split(" "))[1]===s&&(n=h[l+" "+o[0]]||h["* "+o[0]])){!0===n?n=h[i]:!0!==h[i]&&a.splice(u--,0,s=o[0]);break}if(!0!==n)if(n&&t.throws)e=n(e);else try{e=n(e)}catch(r){return{state:"parsererror",error:n?r:"No conversion from "+l+" to "+s}}}l=s}return{state:"success",data:e}}(S,h)).state,a=o.data,o=!(l=o.error))):(l=c,c&&!e||(c="error",e<0&&(e=0))),I.status=e,I.statusText=(n||c)+"",o?T.resolveWith(A,[a,c,I]):T.rejectWith(A,[I,c,l]),I.statusCode(q),q=void 0,w&&k.trigger("ajax"+(o?"Success":"Error"),[I,S,o?a:l]),j.fireWith(A,[I,c]),w&&(k.trigger("ajaxComplete",[I,S]),--t.active||t.event.trigger("ajaxStop")))}if(T.promise(I),I.success=I.done,I.error=I.fail,I.complete=j.add,I.statusCode=function(t){var e;if(t)if(M<2)for(e in t)q[e]=[q[e],t[e]];else I.always(e=t[I.status]);return this},S.url=((r||S.url)+"").replace(n,"").replace(o,e[1]+"//"),S.dataTypes=t.trim(S.dataType||"*").toLowerCase().split(u),null==S.crossDomain&&(b=h.exec(S.url.toLowerCase()),S.crossDomain=!(!b||b[1]===e[1]&&b[2]===e[2]&&(b[3]||("http:"===b[1]?80:443))==(e[3]||("http:"===e[1]?80:443)))),S.data&&S.processData&&"string"!=typeof S.data&&(S.data=t.param(S.data,S.traditional)),g(c,S,p,I),2===M)return I;if(w=S.global,S.type=S.type.toUpperCase(),S.hasContent=!s.test(S.type),w&&0==t.active++&&t.event.trigger("ajaxStart"),!S.hasContent&&(S.data&&(S.url+=(a.test(S.url)?"&":"?")+S.data,delete S.data),m=S.url,!1===S.cache)){var P=(new Date).getTime(),R=S.url.replace(l,"$1_="+P);S.url=R+(R===S.url?(a.test(S.url)?"&":"?")+"_="+P:"")}for(C in(S.data&&S.hasContent&&!1!==S.contentType||p.contentType)&&I.setRequestHeader("Content-Type",S.contentType),S.ifModified&&(t.lastModified[m=m||S.url]&&I.setRequestHeader("If-Modified-Since",t.lastModified[m]),t.etag[m]&&I.setRequestHeader("If-None-Match",t.etag[m])),I.setRequestHeader("Accept",S.dataTypes[0]&&S.accepts[S.dataTypes[0]]?S.accepts[S.dataTypes[0]]+("*"!==S.dataTypes[0]?", "+f+"; q=0.01":""):S.accepts["*"]),S.headers)I.setRequestHeader(C,S.headers[C]);if(S.beforeSend&&(!1===S.beforeSend.call(A,I,S)||2===M))return I.abort();for(C in O="abort",{success:1,error:1,complete:1})I[C](S[C]);if(x=g(d,S,p,I)){I.readyState=1,w&&k.trigger("ajaxSend",[I,S]),S.async&&S.timeout>0&&(_=setTimeout((function(){I.abort("timeout")}),S.timeout));try{M=1,x.send(N,D)}catch(F){if(!(M<2))throw F;D(-1,F)}}else D(-1,"No Transport");return I},active:0,lastModified:{},etag:{}});var v=[],y=/\?/,x=/(=)\?(?=&|$)|\?\?/,_=(new Date).getTime();t.jqx.data.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=v.pop()||t.expando+"_"+_++;return this[e]=!0,e}}),t.jqx.data.ajaxPrefilter("json jsonp",(function(e,r,n){var i,s,o,a=e.data,l=e.url,h=!1!==e.jsonp,u=h&&x.test(l),c=h&&!u&&"string"==typeof a&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&x.test(a);if("jsonp"===e.dataTypes[0]||u||c)return i=e.jsonpCallback=t.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s=window[i],u?e.url=l.replace(x,"$1"+i):c?e.data=a.replace(x,"$1"+i):h&&(e.url+=(y.test(l)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||t.error(i+" was not called"),o[0]},e.dataTypes[0]="json",window[i]=function(){o=arguments},n.always((function(){window[i]=s,e[i]&&(e.jsonpCallback=r.jsonpCallback,v.push(i)),o&&t.isFunction(s)&&s(o[0]),o=s=void 0})),"script"})),t.jqx.data.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return t.globalEval(e),e}}}),t.jqx.data.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)})),t.jqx.data.ajaxTransport("script",(function(t){if(t.crossDomain){var e,r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;return{send:function(n,i){(e=document.createElement("script")).async="async",t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,r&&e.parentNode&&r.removeChild(e),e=void 0,n||i(200,"success"))},r.insertBefore(e,r.firstChild)},abort:function(){e&&e.onload(0,1)}}}}));var b,w,C=!!window.ActiveXObject&&function(){for(var t in b)b[t](0,1)},S=0;function A(){try{return new window.XMLHttpRequest}catch(t){}}t.jqx.data.ajaxSettings.xhr=window.ActiveXObject?function(){return!this.isLocal&&A()||function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:A,w=t.jqx.data.ajaxSettings.xhr(),t.extend(t.support,{ajax:!!w,cors:!!w&&"withCredentials"in w}),t.support||(t.support={ajax:!0}),t.support.ajax&&t.jqx.data.ajaxTransport((function(e){var r;if(!e.crossDomain||t.support.cors)return{send:function(n,i){var s,o,a=e.xhr();if(e.username?a.open(e.type,e.url,e.async,e.username,e.password):a.open(e.type,e.url,e.async),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");try{for(o in n)a.setRequestHeader(o,n[o])}catch(l){}a.send(e.hasContent&&e.data||null),r=function(t,n){var o,l,h,u,c;try{if(r&&(n||4===a.readyState))if(r=void 0,s&&(a.onreadystatechange=function(){},C&&delete b[s]),n)4!==a.readyState&&a.abort();else{o=a.status,h=a.getAllResponseHeaders(),u={},(c=a.responseXML)&&c.documentElement&&(u.xml=c);try{u.text=a.responseText}catch(d){}try{l=a.statusText}catch(d){l=""}o||!e.isLocal||e.crossDomain?1223===o&&(o=204):o=u.text?200:404}}catch(f){n||i(-1,f)}u&&i(o,l,u,h)},e.async?4===a.readyState?setTimeout(r,0):(s=++S,C&&(b||(b={},t(window).unload(C)),b[s]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}})),t.jqx.filter=function(){this.operator="and";var e=["EMPTY","NOT_EMPTY","CONTAINS","CONTAINS_CASE_SENSITIVE","DOES_NOT_CONTAIN","DOES_NOT_CONTAIN_CASE_SENSITIVE","STARTS_WITH","STARTS_WITH_CASE_SENSITIVE","ENDS_WITH","ENDS_WITH_CASE_SENSITIVE","EQUAL","EQUAL_CASE_SENSITIVE","NULL","NOT_NULL"],r=["EQUAL","NOT_EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","GREATER_THAN","GREATER_THAN_OR_EQUAL","NULL","NOT_NULL"],n=["EQUAL","NOT_EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","GREATER_THAN","GREATER_THAN_OR_EQUAL","NULL","NOT_NULL"],i=["EQUAL","NOT_EQUAL"],s=new Array,o=new Array;this.evaluate=function(t){for(var e=!0,r=0;r<s.length;r++){var n=s[r].evaluate(t);e=0==r?n:1==o[r]||"or"==o[r]?e||n:e&&n}return e},this.getfilterscount=function(){return s.length},this.setoperatorsbyfiltertype=function(t,s){switch(t){case"numericfilter":r=s;break;case"stringfilter":e=s;break;case"datefilter":n=s;break;case"booleanfilter":i=s}},this.getoperatorsbyfiltertype=function(t){var s=new Array;switch(t){case"numericfilter":s=r.slice(0);break;case"stringfilter":s=e.slice(0);break;case"datefilter":s=n.slice(0);break;case"booleanfilter":s=i.slice(0)}return s};var a=function(){var t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return t()+"-"+t()+"-"+t()};this.createfilter=function(t,e,r,n,i,s){if(null==t||null==t)return null;switch(t){case"numericfilter":return new u(e,r.toUpperCase());case"stringfilter":return new l(e,r.toUpperCase());case"datefilter":return new c(e,r.toUpperCase(),i,s);case"booleanfilter":return new h(e,r.toUpperCase());case"custom":return new d(e,r.toUpperCase(),n)}throw new Error("jqxGrid: There is no such filter type. The available filter types are: 'numericfilter', 'stringfilter', 'datefilter' and 'booleanfilter'")},this.getfilters=function(){for(var t=new Array,e=0;e<s.length;e++){var r={value:s[e].filtervalue,condition:s[e].comparisonoperator,operator:o[e],type:s[e].type};s[e].data&&(r.id=s[e].data),t[e]=r}return t},this.addfilter=function(t,e){s[s.length]=e,e.key=a(),o[o.length]=t},this.removefilter=function(t){for(var e=0;e<s.length;e++)if(s[e].key==t.key){s.splice(e,1),o.splice(e,1);break}},this.getoperatorat=function(t){return null==t||null==t?null:t<0||t>s.length?null:o[t]},this.setoperatorat=function(t,e){return null==t||null==t?null:t<0||t>s.length?null:void(o[e]=e)},this.getfilterat=function(t){return null==t||null==t?null:t<0||t>s.length?null:s[t]},this.setfilterat=function(t,e){return null==t||null==t?null:t<0||t>s.length?null:(e.key=a(),void(s[t]=e))},this.clear=function(){s=new Array,o=new Array};var l=function(e,r){this.filtervalue=e,this.comparisonoperator=r,this.type="stringfilter",this.evaluate=function(e){var r=this.filtervalue,n=this.comparisonoperator;if(null==e||null==e||""==e){if("NULL"==n)return!0;if("NOT_NULL"==n)return!1;if("EQUAL"==n&&e==r)return!0;if("NOT_EQUAL"==n&&e!=r)return!0;if("EMPTY"!=n)return!1;if(""==e)return!0}var i="";try{i=e.toString()}catch(v){return!0}var s=function(e,r){switch(n){case"EQUAL":return t.jqx.string.equalsIgnoreCase(e,r);case"EQUAL_CASE_SENSITIVE":return t.jqx.string.equals(e,r);case"NOT_EQUAL":return!t.jqx.string.equalsIgnoreCase(e,r);case"NOT_EQUAL_CASE_SENSITIVE":return!t.jqx.string.equals(e,r);case"CONTAINS":return t.jqx.string.containsIgnoreCase(e,r);case"CONTAINS_CASE_SENSITIVE":return t.jqx.string.contains(e,r);case"DOES_NOT_CONTAIN":return!t.jqx.string.containsIgnoreCase(e,r);case"DOES_NOT_CONTAIN_CASE_SENSITIVE":return!t.jqx.string.contains(e,r);case"EMPTY":return""==e;case"NOT_EMPTY":return""!=e;case"NOT_NULL":return null!=e;case"STARTS_WITH":return t.jqx.string.startsWithIgnoreCase(e,r);case"ENDS_WITH":return t.jqx.string.endsWithIgnoreCase(e,r);case"ENDS_WITH_CASE_SENSITIVE":return t.jqx.string.endsWith(e,r);case"STARTS_WITH_CASE_SENSITIVE":return t.jqx.string.startsWith(e,r);default:return!1}},o=new Array;if(r&&r.indexO&&"NOT_EQUAL"!==n&&(r.indexOf("|")>=0||r.indexOf(" AND ")>=0||r.indexOf(" OR ")>=0||r.indexOf(" and ")>=0||r.indexOf(" or ")>=0)){if(m=s(i,r))return m;var a=r.indexOf(" AND ")>=0?r.split(" AND "):new Array,l=r.indexOf(" OR ")>=0?r.split(" OR "):new Array,h=r.indexOf(" and ")>=0?r.split(" and "):new Array,u=r.indexOf(" or ")>=0?r.split(" or "):new Array,c=r.indexOf("|")>=0?r.split("|"):new Array;if(c.length>0)for(var d=0;d<c.length;d++)c[d]=t.trim(c[d]);var f=r.indexOf(" ")>=0?r.split(" "):new Array;if(f.length>0)for(d=0;d<f.length;d++)f[d]=t.trim(f[d]);if(a=(a=a.concat(f)).concat(h),l=(l=l.concat(c)).concat(u),a.length>0)for(d=0;d<a.length;d++)!a[d].indexOf(" OR ")>=0&&o.push(a[d]);if(l.length>0)for(d=0;d<l.length;d++)!l[d].indexOf(" AND ")>=0&&o.push(l[d]);for(var p=void 0,g=0;g<o.length;g++){var m=s(i,e=o[g]);p=null==p?m:"or"==(g<a.length?"and":"or")?p||m:p&&m}return p}return s(i,r)}},h=function(t,e){this.filtervalue=t,this.comparisonoperator=e,this.type="booleanfilter",this.evaluate=function(t){var e=this.filtervalue,r=this.comparisonoperator;if(null==t||null==t)return"NULL"==r;var n=t;switch(r){case"EQUAL":return n==e||n.toString()==e.toString();case"NOT_EQUAL":return n!=e&&n.toString()!=e.toString();default:return!1}}},u=function(e,r){this.filtervalue=e,this.comparisonoperator=r,this.type="numericfilter",this.evaluate=function(e){var r=this.filtervalue,n=this.comparisonoperator;if(null==e||""===e){if("NOT_NULL"==n)return!1;if("NULL"==n)return!0;switch(n){case"EQUAL":return e==r;case"NOT_EQUAL":return e!=r}return!1}if("NULL"==n)return!1;if("NOT_NULL"==n)return!0;var i=e;try{i=parseFloat(i)}catch(v){if(""!=e.toString())return!1}var s=function(e,r){switch(n){case"EQUAL":return e==r;case"NOT_EQUAL":return e!=r;case"GREATER_THAN":return e>r;case"GREATER_THAN_OR_EQUAL":return e>=r;case"LESS_THAN":return e<r;case"LESS_THAN_OR_EQUAL":return e<=r;case"STARTS_WITH":return t.jqx.string.startsWithIgnoreCase(e.toString(),r.toString());case"ENDS_WITH":return t.jqx.string.endsWithIgnoreCase(e.toString(),r.toString());case"ENDS_WITH_CASE_SENSITIVE":return t.jqx.string.endsWith(e.toString(),r.toString());case"STARTS_WITH_CASE_SENSITIVE":return t.jqx.string.startsWith(e.toString(),r.toString());case"CONTAINS":return t.jqx.string.containsIgnoreCase(e.toString(),r.toString());case"CONTAINS_CASE_SENSITIVE":return t.jqx.string.contains(e.toString(),r.toString());case"DOES_NOT_CONTAIN":return!t.jqx.string.containsIgnoreCase(e.toString(),r.toString());case"DOES_NOT_CONTAIN_CASE_SENSITIVE":return!t.jqx.string.contains(e.toString(),r.toString());default:return!0}},o=new Array;if(r&&r.indexOf&&(r=r.replace("$","")),r.indexOf&&(r.indexOf("|")>=0||r.indexOf(" AND ")>=0||r.indexOf(" OR ")>=0||r.indexOf(" and ")>=0||r.indexOf(" or ")>=0)){if(m=s(i,r))return m;var a=(r=r.toString()).indexOf(" AND ")>=0?r.split(" AND "):new Array,l=r.indexOf(" OR ")>=0?r.split(" OR "):new Array,h=r.indexOf(" and ")>=0?r.split(" and "):new Array,u=r.indexOf(" or ")>=0?r.split(" or "):new Array;a=a.concat(h),l=l.concat(u);var c=r.indexOf("|")>=0?r.split("|"):new Array;if(c.length>0)for(var d=0;d<c.length;d++)c[d]=t.trim(c[d]);if(l=l.concat(c),a.length>0)for(d=0;d<a.length;d++)!a[d].indexOf(" OR ")>=0&&o.push(a[d]);if(l.length>0)for(d=0;d<l.length;d++)!l[d].indexOf(" AND ")>=0&&o.push(l[d]);for(var f=void 0,p=0;p<o.length;p++){if((e=o[p])&&e.indexOf&&e.indexOf("..")>=0){var g=e.toString().split("..");2==g.length&&(m=i>=g[0]&&i<=g[1])}else var m=s(i,e);f=null==f?m:"or"==(p<a.length?"and":"or")?f||m:f&&m}return f}return r&&r.indexOf&&r.indexOf("..")>=0&&2==(o=r.toString().split("..")).length?i>=o[0]&&i<=o[1]:s(i,r)}},c=function(e,r,n,i){this.filtervalue=e,this.type="datefilter";var s=this;if(null!=n&&null!=i){var o=t.jqx.dataFormat.parsedate(e,n,i);if(null!=o)this.filterdate=o;else{var a=t.jqx.dataFormat.tryparsedate(e,i);null!=a&&(this.filterdate=a)}}else{var l=new Date(e);this.filterdate="NaN"==l.toString()||"Invalid Date"==l.toString()?t.jqx.dataFormat.tryparsedate(e):l}this.filterdate||(l=new Date(e),this.filterdate="NaN"==l.toString()||"Invalid Date"==l.toString()?t.jqx.dataFormat.tryparsedate(e):l),this.comparisonoperator=r,this.evaluate=function(e){var r=this.filtervalue,o=this.comparisonoperator;if(null==e||null==e||""==e){if("NOT_NULL"==o)return!1;if("NULL"==o)return!0;switch(o){case"EQUAL":return e==r;case"NOT_EQUAL":return e!=r}return!1}if("NULL"==o)return!1;if("NOT_NULL"==o)return!0;var a=new Date;a.setFullYear(1900,0,1),a.setHours(12,0,0,0);try{var l=new Date(e);a=e="NaN"==l.toString()||"Invalid Date"==l.toString()?t.jqx.dataFormat.tryparsedate(e):l;var h=!1;null!=n&&null!=i&&(n.indexOf("t")>=0||n.indexOf("T")>=0||n.indexOf(":")>=0||n.indexOf("f")>=0)&&(h=!0,r&&-1==r.toString().indexOf(":")&&null!=(C=t.jqx.dataFormat.tryparsedate(r.toString()+":00",i))&&(s.filterdate=C)),null!=n&&(n.indexOf("hh")>=0||n.indexOf("t")>=0)&&(h=!0),h||(a.setHours(0),a.setMinutes(0),a.setSeconds(0))}catch(S){if(""!=e.toString())return!1}if(null!=s.filterdate)r=s.filterdate;else if(r&&r.indexOf&&(-1!=r.indexOf(":")||!isNaN(parseInt(r)))){var u=new Date(a);u.setHours(12,0,0,0);for(var c=r.split(":"),d=0;d<c.length;d++)0==d&&u.setHours(c[d]),1==d&&u.setMinutes(c[d]),2==d&&u.setSeconds(c[d]);r=u}h&&r&&r.setFullYear&&a&&a.getFullYear&&-1==n.indexOf("d")&&-1==n.indexOf("M")&&-1==n.indexOf("y")&&r.setFullYear(a.getFullYear(),a.getMonth(),a.getDate());var f=function(e,r){switch(null==e&&(e=""),o){case"EQUAL":return e.toString()==r.toString();case"NOT_EQUAL":return e.toString()!=r.toString();case"GREATER_THAN":return e>r;case"GREATER_THAN_OR_EQUAL":return e>=r;case"LESS_THAN":return e<r;case"LESS_THAN_OR_EQUAL":return e<=r;case"STARTS_WITH":return t.jqx.string.startsWithIgnoreCase(e.toString(),r.toString());case"ENDS_WITH":return t.jqx.string.endsWithIgnoreCase(e.toString(),r.toString());case"ENDS_WITH_CASE_SENSITIVE":return t.jqx.string.endsWith(e.toString(),r.toString());case"STARTS_WITH_CASE_SENSITIVE":return t.jqx.string.startsWith(e.toString(),r.toString());case"CONTAINS":return t.jqx.string.containsIgnoreCase(e.toString(),r.toString());case"CONTAINS_CASE_SENSITIVE":return t.jqx.string.contains(e.toString(),r.toString());case"DOES_NOT_CONTAIN":return!t.jqx.string.containsIgnoreCase(e.toString(),r.toString());case"DOES_NOT_CONTAIN_CASE_SENSITIVE":return!t.jqx.string.contains(e.toString(),r.toString());default:return!0}},p=new Array;if(r&&r.indexOf&&(r.indexOf("|")>=0||r.indexOf(" AND ")>=0||r.indexOf(" OR ")>=0||r.indexOf(" and ")>=0||r.indexOf(" or ")>=0)){if(C=f(a,r))return C;var g=r.indexOf(" AND ")>=0?r.split(" AND "):new Array,m=r.indexOf(" OR ")>=0?r.split(" OR "):new Array,v=r.indexOf(" and ")>=0?r.split(" and "):new Array,y=r.indexOf(" or ")>=0?r.split(" or "):new Array;g=g.concat(v),m=m.concat(y);var x=r.indexOf("|")>=0?r.split("|"):new Array;if(x.length>0)for(d=0;d<x.length;d++)x[d]=t.trim(x[d]);if(m=m.concat(x),g.length>0)for(d=0;d<g.length;d++)!g[d].indexOf(" OR ")>=0&&p.push(g[d]);if(m.length>0)for(d=0;d<m.length;d++)!m[d].indexOf(" AND ")>=0&&p.push(m[d]);for(var _=void 0,b=0;b<p.length;b++){if((e=p[b])&&e.indexOf&&e.indexOf("..")>=0){var w=e.toString().split("..");2==w.length&&(C=a>=w[0]&&a<=w[1])}else var C=f(a,e);_=null==_?C:"or"==(b<g.length?"and":"or")?_||C:_&&C}return _}return r&&r.indexOf&&r.indexOf("..")>=0&&2==(p=r.toString().split("..")).length?a>=p[0]&&a<=p[1]:f(a,r)}},d=function(t,e,r){this.filtervalue=t,this.comparisonoperator=e,this.evaluate=function(t,e){return r(this.filtervalue,t,this.comparisonoperator)}}}}(jqxBaseFramework)},GSgz:function(t,e){var r;(r=jqxBaseFramework).extend(r.jqx._jqxChart.prototype,{_moduleAnnotations:!0,_renderAnnotation:function(t,e,r){var n=this.seriesGroups[t],i=this.renderer;if(!isNaN(t)){var s=this._get([this.getXAxisDataPointOffset(e.xValue,t),e.x]),o=this._get([this.getValueAxisDataPointOffset(e.yValue,t),e.y]),a=this._get([this.getXAxisDataPointOffset(e.xValue2,t),e.x2]),l=this._get([this.getValueAxisDataPointOffset(e.yValue2,t),e.y2]);if(n.polar||n.spider){var h=this.getPolarDataPointOffset(e.xValue,e.yValue,t);!h||isNaN(h.x)||isNaN(h.y)?(s=e.x,o=e.y):(s=h.x,o=h.y)}if(isNaN(o)||isNaN(s))return!1;if("horizontal"==n.orientation){var u=s;s=o,o=u,u=a,a=l,l=u}e.offset&&(isNaN(e.offset.x)||(s+=e.offset.x,a+=e.offset.x),isNaN(e.offset.y)||(o+=e.offset.y,l+=e.offset.y));var c,d,f=this._get([e.width,a-s]),p=this._get([e.height,l-o]);switch(e.type){case"rect":c=i.rect(s,o,f,p);break;case"circle":c=i.rect(s,o,e.radius);break;case"line":c=i.rect(s,o,a,l);break;case"path":c=i.path(e.path)}if(i.attr(c,{fill:e.fillColor,stroke:e.lineColor,opacity:this._get([e.fillOpacity,e.opacity]),"stroke-opacity":this._get([e.lineOpacity,e.opacity]),"stroke-width":e.lineWidth,"stroke-dasharray":e.dashStyle||"none"}),e.text){var g=e.text,m=0,v=0;g.offset&&(isNaN(g.offset.x)||(m+=g.offset.x),isNaN(g.offset.y)||(v+=g.offset.y)),d=i.text(g.value,s+m,o+v,NaN,NaN,g.angle,{},!0===g.clip,g.horizontalAlignment||"center",g.verticalAlignment||"center",g.rotationPoint||"centermiddle"),i.attr(d,{fill:g.fillColor,stroke:g.lineColor,class:g.class})}for(var y=["click","mouseenter","mouseleave"],x=this,_=0;_<y.length;_++){var b=this._getEvent(y[_])||y[_];c&&this.renderer.addHandler(c,b,(function(){x._raiseAnnotationEvent(e,b)})),d&&this.renderer.addHandler(d,b,(function(){x._raiseAnnotationEvent(e,b)}))}}},_raiseAnnotationEvent:function(t,e){this._raiseEvent("annotation_"+e,{annotation:t})}})},PDX0:function(t,e){(function(e){t.exports=e}).call(this,{})},UoPn:function(t,e){var r;(r=jqxBaseFramework).jqx.jqxWidget("jqxDraw","",{}),r.extend(r.jqx._jqxDraw.prototype,{defineInstance:function(){var t={renderEngine:""};r.extend(!0,this,t);var e=["clear","on","off","removeElement","attr","getAttr","line","circle","rect","path","pieslice","text","measureText"];for(var n in e)this._addFn(r.jqx._jqxDraw.prototype,e[n]);return t},_addFn:function(t,e){t[e]||(t[e]=function(){return this.renderer[e].apply(this.renderer,arguments)})},createInstance:function(t){},_initRenderer:function(t){return r.jqx.createRenderer(this,t)},_internalRefresh:function(){var t=this;if(!r.jqx.isHidden(t.host)){t.renderer||(t.host.empty(),t._initRenderer(t.host));var e=t.renderer;if(e){var n=e.getRect();t._render({x:1,y:1,width:n.width,height:n.height}),e instanceof r.jqx.HTML5Renderer&&e.refresh()}}},_saveAsImage:function(t,e,n,i){return r.jqx._widgetToImage(this,t,e,n,i)},_render:function(t){this._plotRect=t},refresh:function(){this._internalRefresh()},getSize:function(){var t=this._plotRect;return{width:t.width,height:t.height}},saveAsPNG:function(t,e,r){return this._saveAsImage("png",t,e,r)},saveAsJPEG:function(t,e,r){return this._saveAsImage("jpeg",t,e,r)}}),function(t){t.jqx.toGreyScale=function(e){if(-1==e.indexOf("#"))return e;var r=t.jqx.cssToRgb(e);r[0]=r[1]=r[2]=Math.round(.3*r[0]+.59*r[1]+.11*r[2]);var n=t.jqx.rgbToHex(r[0],r[1],r[2]);return"#"+n[0]+n[1]+n[2]},t.jqx.adjustColor=function(e,r){if("string"!=typeof e)return"#000000";if(-1==e.indexOf("#"))return e;var n=t.jqx.cssToRgb(e),i=t.jqx.rgbToHsl(n);i[2]=Math.min(1,i[2]*r),i[1]=Math.min(1,i[1]*r*1.1),n=t.jqx.hslToRgb(i),e="#";for(var s=0;s<3;s++){var o=Math.round(n[s]);1==(o=t.jqx.decToHex(o)).toString().length&&(e+="0"),e+=o}return e.toUpperCase()},t.jqx.decToHex=function(t){return t.toString(16)},t.jqx.hexToDec=function(t){return parseInt(t,16)},t.jqx.rgbToHex=function(e,r,n){return[t.jqx.decToHex(e),t.jqx.decToHex(r),t.jqx.decToHex(n)]},t.jqx.hexToRgb=function(e,r,n){return[t.jqx.hexToDec(e),t.jqx.hexToDec(r),t.jqx.hexToDec(n)]},t.jqx.cssToRgb=function(e){return e.indexOf("rgb")<=-1?t.jqx.hexToRgb(e.substring(1,3),e.substring(3,5),e.substring(5,7)):e.substring(4,e.length-1).split(",")},t.jqx.hslToRgb=function(e){var r=parseFloat(e[0]),n=parseFloat(e[1]),i=parseFloat(e[2]);if(0==n)a=l=h=i;else var s=i<.5?i*(1+n):i+n-i*n,o=2*i-s,a=t.jqx.hueToRgb(o,s,r+1/3),l=t.jqx.hueToRgb(o,s,r),h=t.jqx.hueToRgb(o,s,r-1/3);return[255*a,255*l,255*h]},t.jqx.hueToRgb=function(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t},t.jqx.rgbToHsl=function(t){var e,r,n=parseFloat(t[0])/255,i=parseFloat(t[1])/255,s=parseFloat(t[2])/255,o=Math.max(n,i,s),a=Math.min(n,i,s),l=(o+a)/2;if(o==a)e=r=0;else{var h=o-a;switch(r=l>.5?h/(2-o-a):h/(o+a),o){case n:e=(i-s)/h+(i<s?6:0);break;case i:e=(s-n)/h+2;break;case s:e=(n-i)/h+4}e/=6}return[e,r,l]},t.jqx.swap=function(t,e){var r=t;t=e,e=r},t.jqx.getNum=function(e){if(t.isArray(e)){for(var r=0;r<e.length;r++)if(!isNaN(e[r]))return e[r]}else if(isNaN(e))return 0;return 0},t.jqx._ptdist=function(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))},t.jqx._ptrnd=function(e){if(!document.createElementNS)return Math.round(e)==e?e:t.jqx._rnd(e,1,!1,!0);var r=t.jqx._rnd(e,.5,!1,!0);return.5!=Math.abs(r-Math.round(r))?r>e?r-.5:r+.5:r},t.jqx._ptRotate=function(t,e,r,n,i){var s=Math.sqrt(Math.pow(Math.abs(t-r),2)+Math.pow(Math.abs(e-n),2)),o=Math.asin((t-r)/s)+i;return{x:t=r+Math.cos(o)*s,y:e=n+Math.sin(o)*s}},t.jqx._rup=function(t){var e=Math.round(t);return t>e&&e++,e},t.jqx.log=function(t,e){return Math.log(t)/(e?Math.log(e):1)},t.jqx._mod=function(t,e){var r=Math.abs(t>e?e:t),n=1;if(0!=r)for(;r*n<100;)n*=10;return(t*=n)%(e*=n)/n},t.jqx._rnd=function(e,r,n,i){if(isNaN(e))return e;void 0===i&&(i=!0);var s=e-(1==i?e%r:t.jqx._mod(e,r));return e==s?s:(n?e>s&&(s+=r):s>e&&(s-=r),1==r?Math.round(s):s)},t.jqx.commonRenderer={pieSlicePath:function(t,e,r,n,i,s,o){n||(n=1);var a=Math.abs(i-s),l=a>180?1:0;a>=360&&(s=i+359.99);var h=i*Math.PI*2/360,u=s*Math.PI*2/360,c=t,d=t,f=e,p=e,g=!isNaN(r)&&r>0;if(g&&(o=0),o+r>0){if(o>0){var m=(a/2+i)*Math.PI*2/360;t+=o*Math.cos(m),e-=o*Math.sin(m)}if(g){var v=r;c=t+v*Math.cos(h),f=e-v*Math.sin(h),d=t+v*Math.cos(u),p=e-v*Math.sin(u)}}var y=t+n*Math.cos(h),x=t+n*Math.cos(u),_=e-n*Math.sin(h),b=e-n*Math.sin(u),w="",C=Math.abs(Math.abs(s-i)-360)>.02;return g?(w="M "+d+","+p,w+=" a"+r+","+r,w+=" 0 "+l+",1 "+(c-d)+","+(f-p),w+=C?" L"+y+","+_:" M"+y+","+_,w+=" a"+n+","+n,w+=" 0 "+l+",0 "+(x-y)+","+(b-_),C&&(w+=" Z")):(w="M "+x+","+b,w+=" a"+n+","+n,w+=" 0 "+l+",1 "+(y-x)+","+(_-b),C&&(w+=" L"+t+","+e,w+=" Z")),w},measureText:function(e,r,n,i,s){var o=s._getTextParts(e,r,n),a=o.width,l=o.height;0==i&&(l/=.6);var h={};if(isNaN(r)&&(r=0),0==r)h={width:t.jqx._rup(a),height:t.jqx._rup(l)};else{var u=r*Math.PI*2/360,c=Math.abs(Math.sin(u)),d=Math.abs(Math.cos(u)),f=Math.abs(a*c+l*d),p=Math.abs(a*d+l*c);h={width:t.jqx._rup(p),height:t.jqx._rup(f)}}return i&&(h.textPartsInfo=o),h},alignTextInRect:function(e,r,n,i,s,o,a,l,h,u){var c=h*Math.PI*2/360,d=Math.sin(c),f=Math.cos(c),p=s*d,g=s*f;"center"==a||""==a||"undefined"==a?e+=n/2:"right"==a&&(e+=n),"center"==l||"middle"==l||""==l||"undefined"==l?r+=i/2:"bottom"==l?r+=i-o/2:"top"==l&&(r+=o/2);var m="middle";-1!=(u=u||"").indexOf("top")?m="top":-1!=u.indexOf("bottom")&&(m="bottom");var v="center";return-1!=u.indexOf("left")?v="left":-1!=u.indexOf("right")&&(v="right"),"center"==v?(e-=g/2,r-=p/2):"right"==v&&(e-=g,r-=p),"top"==m?(e-=o*d,r+=o*f):"middle"==m&&(e-=o*d/2,r+=o*f/2),{x:e=t.jqx._rup(e),y:r=t.jqx._rup(r)}}},t.jqx.svgRenderer=function(){},t.jqx.svgRenderer.prototype={_svgns:"http://www.w3.org/2000/svg",init:function(t){t.append("<table class=tblChart cellspacing='0' cellpadding='0' border='0' align='left' valign='top'><tr><td colspan=2 class=tdTop></td></tr><tr><td class=tdLeft></td><td><div class='chartContainer' style='position:relative' onselectstart='return false;'></div></td></tr></table>"),this.host=t;var e=t.find(".chartContainer");e[0].style.width=t.width()+"px",e[0].style.height=t.height()+"px";try{var r=document.createElementNS(this._svgns,"svg");r.setAttribute("id","svgChart"),r.setAttribute("version","1.1"),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("overflow","hidden"),e[0].appendChild(r),this.canvas=r}catch(n){return!1}return this._id=(new Date).getTime(),this.clear(),this._layout(),this._runLayoutFix(),!0},getType:function(){return"SVG"},refresh:function(){},_runLayoutFix:function(){this._fixLayout()},_fixLayout:function(){var e=this.canvas.getBoundingClientRect(),r=parseFloat(e.left)==parseInt(e.left),n=parseFloat(e.top)==parseInt(e.top);if(t.jqx.browser.msie){r=!0,n=!0;for(var i=this.host,s=0,o=0;i&&i.position&&i[0].parentNode;){var a=i.position();s+=parseFloat(a.left)-parseInt(a.left),o+=parseFloat(a.top)-parseInt(a.top),i=i.parent()}r=parseFloat(s)==parseInt(s),n=parseFloat(o)==parseInt(o)}r||(this.host.find(".tdLeft")[0].style.width="0.5px"),n||(this.host.find(".tdTop")[0].style.height="0.5px")},_layout:function(){var e=this.host.find(".chartContainer");this._width=Math.max(t.jqx._rup(this.host.width())-1,0),this._height=Math.max(t.jqx._rup(this.host.height())-1,0),e[0].style.width=this._width,e[0].style.height=this._height,this._fixLayout()},getRect:function(){return{x:0,y:0,width:this._width,height:this._height}},getContainer:function(){return this.host.find(".chartContainer")},clear:function(){for(;this.canvas.childElementCount>0;)this.removeElement(this.canvas.firstElementChild);this._defaultParent=void 0,this._defs=document.createElementNS(this._svgns,"defs"),this._gradients={},this.canvas.appendChild(this._defs)},removeElement:function(t){if(null!=t){this.removeHandler(t);try{for(;t.firstChild;)this.removeElement(t.firstChild);t.parentNode?t.parentNode.removeChild(t):this.canvas.removeChild(t)}catch(e){}}},_openGroups:[],beginGroup:function(){var t=this._activeParent(),e=document.createElementNS(this._svgns,"g");return t.appendChild(e),this._openGroups.push(e),e},endGroup:function(){0!=this._openGroups.length&&this._openGroups.pop()},_activeParent:function(){return 0==this._openGroups.length?this.canvas:this._openGroups[this._openGroups.length-1]},createClipRect:function(t){var e=document.createElementNS(this._svgns,"clipPath"),r=document.createElementNS(this._svgns,"rect");return this.attr(r,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"none"}),this._clipId=this._clipId||0,e.id="cl"+this._id+"_"+(++this._clipId).toString(),e.appendChild(r),this._defs.appendChild(e),e},getWindowHref:function(){var e=t.jqx.browser;if(e&&"msie"==e.browser&&e.version<10)return"";var r=window.location.href;return r?r=(r=r.replace(/([\('\)])/g,"\\$1")).replace(/#.*$/,""):r},setClip:function(t,e){var r="url("+this.getWindowHref()+"#"+e.id+")";return this.attr(t,{"clip-path":r})},_clipId:0,addHandler:function(e,r,n){t(e).on?t(e).on(r,n):t(e).bind(r,n)},removeHandler:function(e,r,n){t(e).off?t(e).off(r,n):t(e).unbind(r,n)},on:function(t,e,r){this.addHandler(t,e,r)},off:function(t,e,r){this.removeHandler(t,e,r)},shape:function(t,e){var r=document.createElementNS(this._svgns,t);if(r){for(var n in e)void 0!==e[n]&&"NaN"===e[n].toString()?r.setAttribute(n,0):r.setAttribute(n,e[n]);return this._activeParent().appendChild(r),r}},_getTextParts:function(e,r,n){var i={width:0,height:0,parts:[]};if(void 0===e)return i;var s=e.toString().split("<br>"),o=this._activeParent(),a=document.createElementNS(this._svgns,"text");this.attr(a,n);for(var l=0;l<s.length;l++){var h,u=s[l],c=a.ownerDocument.createTextNode(u);a.appendChild(c),o.appendChild(a);try{h=a.getBBox()}catch(p){}var d=t.jqx._rup(h.width),f=t.jqx._rup(.6*h.height);a.removeChild(c),i.width=Math.max(i.width,d),i.height+=f+(l>0?4:0),i.parts.push({width:d,height:f,text:u})}return o.removeChild(a),i},_measureText:function(e,r,n,i){return t.jqx.commonRenderer.measureText(e,r,n,i,this)},measureText:function(t,e,r){return this._measureText(t,e,r,!1)},text:function(e,r,n,i,s,o,a,l,h,u,c){var d,f=this._measureText(e,o,a,!0).textPartsInfo,p=f.parts;if(h||(h="center"),u||(u="center"),(p.length>1||l)&&(d=this.beginGroup()),l){var g=this.createClipRect({x:t.jqx._rup(r)-1,y:t.jqx._rup(n)-1,width:t.jqx._rup(i)+2,height:t.jqx._rup(s)+2});this.setClip(d,g)}var m,v,y=this._activeParent();m=f.width,v=f.height,(isNaN(i)||i<=0)&&(i=m),(isNaN(s)||s<=0)&&(s=v);var x=i||0,_=s||0;if(!o||0==o){n+=v,"center"==u||"middle"==u?n+=(_-v)/2:"bottom"==u&&(n+=_-v),i||(i=m),s||(s=v),y=this._activeParent();for(var b=0,w=p.length-1;w>=0;w--){var C=document.createElementNS(this._svgns,"text");this.attr(C,a),this.attr(C,{cursor:"default"});var S=C.ownerDocument.createTextNode(p[w].text);C.appendChild(S);var A=r,k=p[w].width,T=p[w].height;"center"==h?A+=(x-k)/2:"right"==h&&(A+=x-k),this.attr(C,{x:t.jqx._rup(A),y:t.jqx._rup(n+b),width:t.jqx._rup(k),height:t.jqx._rup(T)}),y.appendChild(C),b-=p[w].height+4}return d?(this.endGroup(),d):C}var j=t.jqx.commonRenderer.alignTextInRect(r,n,i,s,m,v,h,u,o,c),q=this.shape("g",{transform:"translate("+(r=j.x)+","+(n=j.y)+")"}),N=this.shape("g",{transform:"rotate("+o+")"});for(q.appendChild(N),b=0,w=p.length-1;w>=0;w--){var E=document.createElementNS(this._svgns,"text");this.attr(E,a),this.attr(E,{cursor:"default"}),S=E.ownerDocument.createTextNode(p[w].text),E.appendChild(S),A=0,k=p[w].width,T=p[w].height,"center"==h?A+=(f.width-k)/2:"right"==h&&(A+=f.width-k),this.attr(E,{x:t.jqx._rup(A),y:t.jqx._rup(b),width:t.jqx._rup(k),height:t.jqx._rup(T)}),N.appendChild(E),b-=T+4}return y.appendChild(q),d&&this.endGroup(),q},line:function(t,e,r,n,i){var s=this.shape("line",{x1:t,y1:e,x2:r,y2:n});return this.attr(s,i),s},path:function(t,e){var r=this.shape("path");return r.setAttribute("d",t),e&&this.attr(r,e),r},rect:function(e,r,n,i,s){e=t.jqx._ptrnd(e),r=t.jqx._ptrnd(r),n=Math.max(1,t.jqx._rnd(n,1,!1)),i=Math.max(1,t.jqx._rnd(i,1,!1));var o=this.shape("rect",{x:e,y:r,width:n,height:i});return s&&this.attr(o,s),o},circle:function(t,e,r,n){var i=this.shape("circle",{cx:t,cy:e,r});return n&&this.attr(i,n),i},pieSlicePath:function(e,r,n,i,s,o,a){return t.jqx.commonRenderer.pieSlicePath(e,r,n,i,s,o,a)},pieslice:function(t,e,r,n,i,s,o,a){var l=this.pieSlicePath(t,e,r,n,i,s,o),h=this.shape("path");return h.setAttribute("d",l),a&&this.attr(h,a),h},attr:function(t,e){if(t&&e)for(var r in e)"textContent"==r?t.textContent=e[r]:t.setAttribute(r,e[r])},removeAttr:function(t,e){if(t&&e)for(var r in e)"textContent"==r?t.textContent="":t.removeAttribute(e[r])},getAttr:function(t,e){return t.getAttribute(e)},_gradients:{},_toLinearGradient:function(e,r,n){var i="grd"+this._id+e.replace("#","")+(r?"v":"h"),s="url("+this.getWindowHref()+"#"+i+")";if(this._gradients[s])return s;var o=document.createElementNS(this._svgns,"linearGradient");this.attr(o,{x1:"0%",y1:"0%",x2:r?"0%":"100%",y2:r?"100%":"0%",id:i});for(var a=0;a<n.length;a++){var l=n[a],h=document.createElementNS(this._svgns,"stop"),u="stop-color:"+t.jqx.adjustColor(e,l[1]);this.attr(h,{offset:l[0]+"%",style:u}),o.appendChild(h)}return this._defs.appendChild(o),this._gradients[s]=!0,s},_toRadialGradient:function(e,r,n){var i="grd"+this._id+e.replace("#","")+"r"+(null!=n?n.key:""),s="url("+this.getWindowHref()+"#"+i+")";if(this._gradients[s])return s;var o=document.createElementNS(this._svgns,"radialGradient");this.attr(o,null==n?{cx:"50%",cy:"50%",r:"100%",fx:"50%",fy:"50%",id:i}:{cx:n.x,cy:n.y,r:n.outerRadius,id:i,gradientUnits:"userSpaceOnUse"});for(var a=0;a<r.length;a++){var l=r[a],h=document.createElementNS(this._svgns,"stop"),u="stop-color:"+t.jqx.adjustColor(e,l[1]);this.attr(h,{offset:l[0]+"%",style:u}),o.appendChild(h)}return this._defs.appendChild(o),this._gradients[s]=!0,s}},t.jqx.vmlRenderer=function(){},t.jqx.vmlRenderer.prototype={init:function(e){e.append("<div class='chartContainer' style=\"position:relative;overflow:hidden;\"><div>"),this.host=e;var r=e.find(".chartContainer");r[0].style.width=e.width()+"px",r[0].style.height=e.height()+"px";var n=!0;try{for(var i=0;i<document.namespaces.length;i++)if("v"==document.namespaces[i].name&&"urn:schemas-microsoft-com:vml"==document.namespaces[i].urn){n=!1;break}}catch(s){return!1}return t.jqx.browser.msie&&parseInt(t.jqx.browser.version)<9&&document.childNodes&&document.childNodes.length>0&&document.childNodes[0].data&&-1!=document.childNodes[0].data.indexOf("DOCTYPE")?(n&&document.namespaces.add("v","urn:schemas-microsoft-com:vml"),this._ie8mode=!0):n&&(document.namespaces.add("v","urn:schemas-microsoft-com:vml"),document.createStyleSheet().cssText="v\\:* { behavior: url(#default#VML); display: inline-block; }"),this.canvas=r[0],this._width=Math.max(t.jqx._rup(r.width()),0),this._height=Math.max(t.jqx._rup(r.height()),0),r[0].style.width=this._width+2,r[0].style.height=this._height+2,this._id=(new Date).getTime(),this.clear(),!0},getType:function(){return"VML"},refresh:function(){},getRect:function(){return{x:0,y:0,width:this._width,height:this._height}},getContainer:function(){return this.host.find(".chartContainer")},clear:function(){for(;this.canvas.childElementCount>0;)this.removeHandler(this.canvas.firstElementChild),this.canvas.removeChild(this.canvas.firstElementChild);this._gradients={},this._defaultParent=void 0},removeElement:function(t){null!=t&&(this.removeHandler(t),t.parentNode.removeChild(t))},_openGroups:[],beginGroup:function(){var t=this._activeParent(),e=document.createElement("v:group");return e.style.position="absolute",e.coordorigin="0,0",e.coordsize=this._width+","+this._height,e.style.left=0,e.style.top=0,e.style.width=this._width,e.style.height=this._height,t.appendChild(e),this._openGroups.push(e),e},endGroup:function(){0!=this._openGroups.length&&this._openGroups.pop()},_activeParent:function(){return 0==this._openGroups.length?this.canvas:this._openGroups[this._openGroups.length-1]},createClipRect:function(t){var e=document.createElement("div");return e.style.height=t.height+1+"px",e.style.width=t.width+1+"px",e.style.position="absolute",e.style.left=t.x+"px",e.style.top=t.y+"px",e.style.overflow="hidden",this._clipId=this._clipId||0,e.id="cl"+this._id+"_"+(++this._clipId).toString(),this._activeParent().appendChild(e),e},setClip:function(t,e){},_clipId:0,addHandler:function(e,r,n){t(e).on?t(e).on(r,n):t(e).bind(r,n)},removeHandler:function(e,r,n){t(e).off?t(e).off(r,n):t(e).unbind(r,n)},on:function(t,e,r){this.addHandler(t,e,r)},off:function(t,e,r){this.removeHandler(t,e,r)},_getTextParts:function(e,r,n){var i={width:0,height:0,parts:[]},s=e.toString().split("<br>"),o=this._activeParent(),a=document.createElement("v:textbox");this.attr(a,n),o.appendChild(a);for(var l=0;l<s.length;l++){var h=s[l],u=document.createElement("span");u.appendChild(document.createTextNode(h)),a.appendChild(u),n&&n.class&&(u.className=n.class);var c=t(a),d=t.jqx._rup(c.width()),f=t.jqx._rup(.6*c.height());if(0==f&&t.jqx.browser.msie&&parseInt(t.jqx.browser.version)<9){var p=c.css("font-size");p&&(f=parseInt(p),isNaN(f)&&(f=0))}a.removeChild(u),i.width=Math.max(i.width,d),i.height+=f+(l>0?2:0),i.parts.push({width:d,height:f,text:h})}return o.removeChild(a),i},_measureText:function(e,r,n,i){return r=Math.abs(r)>45?90:0,t.jqx.commonRenderer.measureText(e,r,n,i,this)},measureText:function(t,e,r){return this._measureText(t,e,r,!1)},text:function(e,r,n,i,s,o,a,l,h,u){var c;a&&a.stroke&&(c=a.stroke),null==c&&(c="black");var d,f=this._measureText(e,o,a,!0),p=f.textPartsInfo.parts,g=f.width,m=f.height;if((isNaN(i)||0==i)&&(i=g),(isNaN(s)||0==s)&&(s=m),h||(h="center"),u||(u="center"),(p.length>0||l)&&(d=this.beginGroup()),l){var v=this.createClipRect({x:t.jqx._rup(r),y:t.jqx._rup(n),width:t.jqx._rup(i),height:t.jqx._rup(s)});this.setClip(d,v)}var y=this._activeParent(),x=i||0,_=s||0,b=0,w=0;"center"==h?b+=(x-g)/2:"right"==h&&(b+=x-g),"center"==u?w=(_-m)/2:"bottom"==u&&(w=_-m),0==(o=Math.abs(o)>45?90:0)?(n+=m+w,r+=b):(r+=g+b,n+=w);for(var C,S=0,A=p.length-1;A>=0;A--){var k=p[A],T=(g-k.width)/2;0==o&&"left"==h?T=0:0==o&&"right"==h?T=g-k.width:90==o&&(T=(m-k.width)/2);var j=S-k.height;w=90==o?T:j,b=90==o?j:T,(C=document.createElement("v:textbox")).style.position="absolute",C.style.left=t.jqx._rup(r+b),C.style.top=t.jqx._rup(n+w),C.style.width=t.jqx._rup(k.width),C.style.height=t.jqx._rup(k.height),90==o&&(C.style.filter="progid:DXImageTransform.Microsoft.BasicImage(rotation=3)",C.style.height=t.jqx._rup(k.height)+5);var q=document.createElement("span");q.appendChild(document.createTextNode(k.text)),a&&a.class&&(q.className=a.class),C.appendChild(q),y.appendChild(C),S-=k.height+(A>0?2:0)}return d?(this.endGroup(),y):C},shape:function(t,e){var r=document.createElement(this._createElementMarkup(t));if(r){for(var n in e)r.setAttribute(n,e[n]);return this._activeParent().appendChild(r),r}},line:function(t,e,r,n,i){var s=this.path("M "+t+","+e+" L "+r+","+n+" X E");return this.attr(s,i),s},_createElementMarkup:function(t){var e="<v:"+t+' style=""></v:'+t+">";return this._ie8mode&&(e=e.replace('style=""','style="behavior: url(#default#VML);"')),e},path:function(t,e){var r=document.createElement(this._createElementMarkup("shape"));return r.style.position="absolute",r.coordsize=this._width+" "+this._height,r.coordorigin="0 0",r.style.width=parseInt(this._width),r.style.height=parseInt(this._height),r.style.left="0px",r.style.top="0px",r.setAttribute("path",t),this._activeParent().appendChild(r),e&&this.attr(r,e),r},rect:function(e,r,n,i,s){e=t.jqx._ptrnd(e),r=t.jqx._ptrnd(r),n=t.jqx._rup(n),i=t.jqx._rup(i);var o=this.shape("rect",s);return o.style.position="absolute",o.style.left=e,o.style.top=r,o.style.width=n,o.style.height=i,o.strokeweight=0,s&&this.attr(o,s),o},circle:function(e,r,n,i){var s=this.shape("oval");return e=t.jqx._ptrnd(e-n),r=t.jqx._ptrnd(r-n),n=t.jqx._rup(n),s.style.position="absolute",s.style.left=e,s.style.top=r,s.style.width=2*n,s.style.height=2*n,i&&this.attr(s,i),s},updateCircle:function(e,r,n,i){null==r&&(r=parseFloat(e.style.left)+parseFloat(e.style.width)/2),null==n&&(n=parseFloat(e.style.top)+parseFloat(e.style.height)/2),null==i&&(i=parseFloat(e.width)/2),r=t.jqx._ptrnd(r-i),n=t.jqx._ptrnd(n-i),i=t.jqx._rup(i),e.style.left=r,e.style.top=n,e.style.width=2*i,e.style.height=2*i},pieSlicePath:function(e,r,n,i,s,o,a){i||(i=1);var l=Math.abs(s-o);l>360&&(s=0,o=360);var h=s*Math.PI*2/360,u=o*Math.PI*2/360,c=e,d=r,f=!isNaN(n)&&n>0;if(f&&(a=0),a>0){var p=(l/2+s)*Math.PI*2/360;e+=a*Math.cos(p),r-=a*Math.sin(p)}if(f){var g=n;c=t.jqx._ptrnd(e+g*Math.cos(h)),d=t.jqx._ptrnd(r-g*Math.sin(h)),t.jqx._ptrnd(e+g*Math.cos(u)),t.jqx._ptrnd(r-g*Math.sin(u))}t.jqx._ptrnd(e+i*Math.cos(h));var m=t.jqx._ptrnd(e+i*Math.cos(u)),v=(t.jqx._ptrnd(r-i*Math.sin(h)),t.jqx._ptrnd(r-i*Math.sin(u)));i=t.jqx._ptrnd(i),n=t.jqx._ptrnd(n),e=t.jqx._ptrnd(e),r=t.jqx._ptrnd(r);var y=Math.round(65535*s),x=Math.round(65536*(o-s));n<0&&(n=1);var _="";return f?(_="M"+c+" "+d,_+=" AE "+e+" "+r+" "+n+" "+n+" "+y+" "+x,_+=" L "+m+" "+v,y=Math.round(65535*(s-o)),_+=" AE "+e+" "+r+" "+i+" "+i+" "+(x=Math.round(65536*o))+" "+y,_+=" L "+c+" "+d):(_="M"+e+" "+r,_+=" AE "+e+" "+r+" "+i+" "+i+" "+y+" "+x),_+" X E"},pieslice:function(t,e,r,n,i,s,o,a){var l=this.pieSlicePath(t,e,r,n,i,s,o),h=this.path(l,a);return a&&this.attr(h,a),h},_keymap:[{svg:"fill",vml:"fillcolor"},{svg:"stroke",vml:"strokecolor"},{svg:"stroke-width",vml:"strokeweight"},{svg:"stroke-dasharray",vml:"dashstyle"},{svg:"fill-opacity",vml:"fillopacity"},{svg:"stroke-opacity",vml:"strokeopacity"},{svg:"opacity",vml:"opacity"},{svg:"cx",vml:"style.left"},{svg:"cy",vml:"style.top"},{svg:"height",vml:"style.height"},{svg:"width",vml:"style.width"},{svg:"x",vml:"style.left"},{svg:"y",vml:"style.top"},{svg:"d",vml:"v"},{svg:"display",vml:"style.display"}],_translateParam:function(t){for(var e in this._keymap)if(this._keymap[e].svg==t)return this._keymap[e].vml;return t},attr:function(t,e){if(t&&e)for(var r in e){var n=this._translateParam(r);null!=e[r]&&("fillcolor"==n&&-1!=e[r].indexOf("grd")?t.type=e[r]:"fillcolor"==n&&"transparent"==e[r]?(t.style.filter="alpha(opacity=0)",t["-ms-filter"]="progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"):"opacity"==n||"fillopacity"==n?t.fill&&(t.fill.opacity=e[r]):"textContent"==n?t.children[0].innerText=e[r]:"dashstyle"==n?t.dashstyle=e[r].replace(","," "):-1==n.indexOf("style.")?t[n]=e[r]:t.style[n.replace("style.","")]=e[r])}},removeAttr:function(t,e){if(t&&e)for(var r in e)t.removeAttribute(e[r])},getAttr:function(t,e){var r=this._translateParam(e);return"opacity"==r||"fillopacity"==r?t.fill?t.fill.opacity:1:-1==r.indexOf("style.")?t[r]:t.style[r.replace("style.","")]},_gradients:{},_toRadialGradient:function(t,e,r){return t},_toLinearGradient:function(e,r,n){if(this._ie8mode)return e;var i="grd"+e.replace("#","")+(r?"v":"h"),s="#"+i;if(this._gradients[s])return s;var o=document.createElement(this._createElementMarkup("fill"));o.type="gradient",o.method="linear",o.angle=r?0:90;for(var a="",l=0;l<n.length;l++){var h=n[l];h>0&&(a+=", "),a+=h[0]+"% "+t.jqx.adjustColor(e,h[1])}o.colors=a;var u=document.createElement(this._createElementMarkup("shapetype"));return u.appendChild(o),u.id=i,this.canvas.appendChild(u),s}},t.jqx.HTML5Renderer=function(){},t.jqx.ptrnd=function(t){if(.5==Math.abs(Math.round(t)-t))return t;var e=Math.round(t);return e<t&&(e-=1),e+.5},t.jqx.HTML5Renderer.prototype={init:function(t){try{this.host=t,this.host.append("<div class='chartContainer' style='position:relative' onselectstart='return false;'><canvas id='__jqxCanvasWrap' style='width:100%; height: 100%;'/></div>"),this.canvas=t.find("#__jqxCanvasWrap"),this.canvas[0].width=t.width(),this.canvas[0].height=t.height(),this.ctx=this.canvas[0].getContext("2d"),this._elements={},this._maxId=0,this._gradientId=0,this._gradients={},this._currentPoint={x:0,y:0},this._lastCmd="",this._pos=0}catch(e){return!1}return!0},getType:function(){return"HTML5"},getContainer:function(){return this.host.find(".chartContainer")},getRect:function(){return{x:0,y:0,width:this.canvas[0].width-1,height:this.canvas[0].height-1}},beginGroup:function(){},endGroup:function(){},setClip:function(){},createClipRect:function(t){},addHandler:function(t,e,r){},removeHandler:function(t,e,r){},on:function(t,e,r){this.addHandler(t,e,r)},off:function(t,e,r){this.removeHandler(t,e,r)},clear:function(){this._elements={},this._maxId=0,this._renderers._gradients={},this._gradientId=0},removeElement:function(t){null!=t&&this._elements[t.id]&&delete this._elements[t.id]},shape:function(t,e){var r={type:t,id:this._maxId++};for(var n in e)r[n]=e[n];return this._elements[r.id]=r,r},attr:function(t,e){for(var r in e)t[r]=e[r]},removeAttr:function(t,e){for(var r in e)delete t[e[r]]},rect:function(t,e,r,n,i){if(isNaN(t))throw'Invalid value for "x"';if(isNaN(e))throw'Invalid value for "y"';if(isNaN(r))throw'Invalid value for "width"';if(isNaN(n))throw'Invalid value for "height"';var s=this.shape("rect",{x:t,y:e,width:r,height:n});return i&&this.attr(s,i),s},path:function(t,e){var r=this.shape("path",e);return this.attr(r,{d:t}),r},line:function(t,e,r,n,i){return this.path("M "+t+","+e+" L "+r+","+n,i)},circle:function(t,e,r,n){var i=this.shape("circle",{x:t,y:e,r});return n&&this.attr(i,n),i},pieSlicePath:function(e,r,n,i,s,o,a){return t.jqx.commonRenderer.pieSlicePath(e,r,n,i,s,o,a)},pieslice:function(t,e,r,n,i,s,o,a){var l=this.path(this.pieSlicePath(t,e,r,n,i,s,o),a);return this.attr(l,{x:t,y:e,innerRadius:r,outerRadius:n,angleFrom:i,angleTo:s}),l},_getCSSStyle:function(t){var e=document.styleSheets;try{for(var r=0;r<e.length;r++)for(var n=0;e[r].cssRules&&n<e[r].cssRules.length;n++)if(-1!=e[r].cssRules[n].selectorText.indexOf(t))return e[r].cssRules[n].style}catch(i){}return{}},_getTextParts:function(e,r,n){var i="Arial",s="10pt",o="";if(n&&n.class){var a=this._getCSSStyle(n.class);a.fontSize&&(s=a.fontSize),a.fontFamily&&(i=a.fontFamily),a.fontWeight&&(o=a.fontWeight)}this.ctx.font=o+" "+s+" "+i;for(var l={width:0,height:0,parts:[]},h=e.toString().split("<br>"),u=0;u<h.length;u++){var c=h[u],d=this.ctx.measureText(c).width,f=document.createElement("span.jqxchart");f.font=this.ctx.font,f.textContent=c,document.body.appendChild(f);var p=.6*f.offsetHeight;document.body.removeChild(f),l.width=Math.max(l.width,t.jqx._rup(d)),l.height+=p+(u>0?4:0),l.parts.push({width:d,height:p,text:c})}return l},_measureText:function(e,r,n,i){return t.jqx.commonRenderer.measureText(e,r,n,i,this)},measureText:function(t,e,r){return this._measureText(t,e,r,!1)},text:function(t,e,r,n,i,s,o,a,l,h,u){var c=this.shape("text",{text:t,x:e,y:r,width:n,height:i,angle:s,clip:a,halign:l,valign:h,rotateAround:u});if(o&&this.attr(c,o),c.fontFamily="Arial",c.fontSize="10pt",c.fontWeight="",c.color="#000000",o&&o.class){var d=this._getCSSStyle(o.class);c.fontFamily=d.fontFamily||c.fontFamily,c.fontSize=d.fontSize||c.fontSize,c.fontWeight=d.fontWeight||c.fontWeight,c.color=d.color||c.color}var f=this._measureText(t,0,o,!0);return this.attr(c,{textPartsInfo:f.textPartsInfo,textWidth:f.width,textHeight:f.height}),(n<=0||isNaN(n))&&this.attr(c,{width:f.width}),(i<=0||isNaN(i))&&this.attr(c,{height:f.height}),c},_toLinearGradient:function(e,r,n){if(this._renderers._gradients[e])return e;for(var i=[],s=0;s<n.length;s++)i.push({percent:n[s][0]/100,color:t.jqx.adjustColor(e,n[s][1])});var o="gr"+this._gradientId++;return this.createGradient(o,r?"vertical":"horizontal",i),o},_toRadialGradient:function(e,r){if(this._renderers._gradients[e])return e;for(var n=[],i=0;i<r.length;i++)n.push({percent:r[i][0]/100,color:t.jqx.adjustColor(e,r[i][1])});var s="gr"+this._gradientId++;return this.createGradient(s,"radial",n),s},createGradient:function(t,e,r){this._renderers.createGradient(this,t,e,r)},_renderers:{createGradient:function(t,e,r,n){t._gradients[e]={orientation:r,colorStops:n}},setStroke:function(t,e){var r=t.ctx;r.strokeStyle=e.stroke||"transparent",r.lineWidth=e["stroke-width"]||1,r.globalAlpha=null!=e["fill-opacity"]?e["fill-opacity"]:null!=e.opacity?e.opacity:1,r.setLineDash&&r.setLineDash(e["stroke-dasharray"]?e["stroke-dasharray"].split(","):[])},setFillStyle:function(e,r){var n=e.ctx;if(n.fillStyle="transparent",n.globalAlpha=null!=r["fill-opacity"]?r["fill-opacity"]:null!=r.opacity?r.opacity:1,r.fill&&-1==r.fill.indexOf("#")&&e._gradients[r.fill]){var i,s="horizontal"!=e._gradients[r.fill].orientation,o="radial"==e._gradients[r.fill].orientation,a=t.jqx.ptrnd(r.x),l=t.jqx.ptrnd(r.y),h=t.jqx.ptrnd(r.x+(s?0:r.width)),u=t.jqx.ptrnd(r.y+(s?r.height:0));if(("circle"==r.type||"path"==r.type||"rect"==r.type)&&o){var c=t.jqx.ptrnd(r.x),d=t.jqx.ptrnd(r.y);"rect"==r.type&&(c+=r.width/2,d+=r.height/2),i=n.createRadialGradient(c,d,r.innerRadius||0,c,d,r.outerRadius||r.r||0)}o||((isNaN(a)||isNaN(h)||isNaN(l)||isNaN(u))&&(a=0,l=0,h=s?0:n.canvas.width,u=s?n.canvas.height:0),i=n.createLinearGradient(a,l,h,u));for(var f=e._gradients[r.fill].colorStops,p=0;p<f.length;p++)i.addColorStop(f[p].percent,f[p].color);n.fillStyle=i}else r.fill&&(n.fillStyle=r.fill)},rect:function(e,r){0!=r.width&&0!=r.height&&(e.fillRect(t.jqx.ptrnd(r.x),t.jqx.ptrnd(r.y),r.width,r.height),e.strokeRect(t.jqx.ptrnd(r.x),t.jqx.ptrnd(r.y),r.width,r.height))},circle:function(e,r){0!=r.r&&(e.beginPath(),e.arc(t.jqx.ptrnd(r.x),t.jqx.ptrnd(r.y),r.r,0,2*Math.PI,!1),e.closePath(),e.fill(),e.stroke())},_parsePoint:function(t){return{x:this._parseNumber(t),y:this._parseNumber(t)}},_parseNumber:function(t){for(var e=!1,r=this._pos;r<t.length;r++)if(t[r]>="0"&&t[r]<="9"||"."==t[r]||"e"==t[r]||"-"==t[r]&&!e||"-"==t[r]&&r>=1&&"e"==t[r-1])e=!0;else{if(e||" "!=t[r]&&","!=t[r])break;this._pos++}var n=parseFloat(t.substring(this._pos,r));if(!isNaN(n))return this._pos=r,n},_cmds:"mlcazq",_isRelativeCmd:function(e){return t.jqx.string.contains(this._cmds,e)},_parseCmd:function(e){for(var r=this._pos;r<e.length;r++){if(t.jqx.string.containsIgnoreCase(this._cmds,e[r]))return this._pos=r+1,this._lastCmd=e[r],this._lastCmd;if(" "!=e[r]){if(e[r]>="0"&&e[r]<="9"){if(this._pos=r,""==this._lastCmd)break;return this._lastCmd}}else this._pos++}},_toAbsolutePoint:function(t){return{x:this._currentPoint.x+t.x,y:this._currentPoint.y+t.y}},path:function(t,e){var r=e.d;this._pos=0,this._lastCmd="";var n=void 0;for(this._currentPoint={x:0,y:0},t.beginPath();this._pos<r.length;){var i=this._parseCmd(r);if(null==i)break;if("M"!=i&&"m"!=i)if("L"!=i&&"l"!=i)if("A"!=i&&"a"!=i)if("Z"!=i&&"z"!=i||null==n)if("C"!=i&&"c"!=i)"Q"!=i&&"q"!=i||(s=this._parsePoint(r),o=this._parsePoint(r),t.quadraticCurveTo(s.x,s.y,o.x,o.y),this._currentPoint=o);else{var s=this._parsePoint(r),o=this._parsePoint(r),a=this._parsePoint(r);t.bezierCurveTo(s.x,s.y,o.x,o.y,a.x,a.y),this._currentPoint=a}else t.lineTo(n.x,n.y),this._currentPoint=n;else{var l=this._parseNumber(r),h=this._parseNumber(r),u=this._parseNumber(r)*(Math.PI/180),c=this._parseNumber(r),d=this._parseNumber(r),f=this._parsePoint(r);if(this._isRelativeCmd(i)&&(f=this._toAbsolutePoint(f)),0==l||0==h)continue;var p=this._currentPoint,g={x:Math.cos(u)*(p.x-f.x)/2+Math.sin(u)*(p.y-f.y)/2,y:-Math.sin(u)*(p.x-f.x)/2+Math.cos(u)*(p.y-f.y)/2},m=Math.pow(g.x,2)/Math.pow(l,2)+Math.pow(g.y,2)/Math.pow(h,2);m>1&&(l*=Math.sqrt(m),h*=Math.sqrt(m));var v=(c==d?-1:1)*Math.sqrt((Math.pow(l,2)*Math.pow(h,2)-Math.pow(l,2)*Math.pow(g.y,2)-Math.pow(h,2)*Math.pow(g.x,2))/(Math.pow(l,2)*Math.pow(g.y,2)+Math.pow(h,2)*Math.pow(g.x,2)));isNaN(v)&&(v=0);var y={x:v*l*g.y/h,y:v*-h*g.x/l},x={x:(p.x+f.x)/2+Math.cos(u)*y.x-Math.sin(u)*y.y,y:(p.y+f.y)/2+Math.sin(u)*y.x+Math.cos(u)*y.y},_=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},b=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(_(t)*_(e))},w=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(b(t,e))},C=w([1,0],[(g.x-y.x)/l,(g.y-y.y)/h]),S=[(g.x-y.x)/l,(g.y-y.y)/h],A=[(-g.x-y.x)/l,(-g.y-y.y)/h],k=w(S,A);b(S,A)<=-1&&(k=Math.PI),b(S,A)>=1&&(k=0),0==d&&k>0&&(k-=2*Math.PI),1==d&&k<0&&(k+=2*Math.PI),b=l>h?l:h;var T=l>h?1:l/h,j=l>h?h/l:1;t.translate(x.x,x.y),t.rotate(u),t.scale(T,j),t.arc(0,0,b,C,C+k,1-d),t.scale(1/T,1/j),t.rotate(-u),t.translate(-x.x,-x.y)}else{if(null==(q=this._parsePoint(r)))break;t.lineTo(q.x,q.y),this._currentPoint=q}else{var q;if(null==(q=this._parsePoint(r)))break;t.moveTo(q.x,q.y),this._currentPoint=q,null==n&&(n=q)}}t.fill(),t.stroke(),t.closePath()},text:function(e,r){var n=t.jqx.ptrnd(r.x),i=t.jqx.ptrnd(r.y),s=t.jqx.ptrnd(r.width),o=t.jqx.ptrnd(r.height),a=r.halign,l=r.valign,h=r.angle,u=r.rotateAround,c=r.textPartsInfo,d=c.parts,f=r.clip;null==f&&(f=!0),e.save(),a||(a="center"),l||(l="center"),f&&(e.rect(n,i,s,o),e.clip());var p=r.textWidth,g=r.textHeight,m=s||0,v=o||0;if(e.fillStyle=r.color,e.font=r.fontWeight+" "+r.fontSize+" "+r.fontFamily,h&&0!=h){var y=t.jqx.commonRenderer.alignTextInRect(n,i,s,o,p,g,a,l,h,u);n=y.x,i=y.y;var x=h*Math.PI*2/360;e.translate(n,i),e.rotate(x),b=0;var _=c.width;for(w=d.length-1;w>=0;w--)S=0,"center"==a?S+=(_-d[w].width)/2:"right"==a&&(S+=_-d[w].width),e.fillText(d[w].text,S,b),b-=d[w].height+4;e.restore()}else{i+=g,"center"==l||"middle"==l?i+=(v-g)/2:"bottom"==l&&(i+=v-g),s||(s=p),o||(o=g);for(var b=0,w=d.length-1;w>=0;w--){var C=d[w],S=n,A=d[w].width;"center"==a?S+=(m-A)/2:"right"==a&&(S+=m-A),e.fillText(C.text,S,i+b),b-=C.height+(w>0?4:0)}e.restore()}}},refresh:function(){for(var t in this.ctx.clearRect(0,0,this.canvas[0].width,this.canvas[0].height),this._elements){var e=this._elements[t];this._renderers.setFillStyle(this,e),this._renderers.setStroke(this,e),this._renderers[this._elements[t].type](this.ctx,e)}}},t.jqx.createRenderer=function(e,r){var n=e,i=n.renderer=null;if(document.createElementNS&&"HTML5"!=n.renderEngine&&"VML"!=n.renderEngine&&!(i=new t.jqx.svgRenderer).init(r)){if("SVG"==n.renderEngine)throw"Your browser does not support SVG";return null}if(null==i&&"HTML5"!=n.renderEngine){if(!(i=new t.jqx.vmlRenderer).init(r)){if("VML"==n.renderEngine)throw"Your browser does not support VML";return null}n._isVML=!0}if(null==i&&("HTML5"==n.renderEngine||null==n.renderEngine)&&!(i=new t.jqx.HTML5Renderer).init(r))throw"Your browser does not support HTML5 Canvas";return n.renderer=i,i},t.jqx._widgetToImage=function(e,r,n,i,s,o){var a=e;if(!a)return!1;null!=n&&""!=n||(n="image."+r);var l=a.renderEngine,h=a.enableAnimations;if(a.enableAnimations=!1,a.renderEngine="HTML5",a.renderEngine!=l)try{a.refresh()}catch(f){return a.renderEngine=l,a.refresh(),a.enableAnimations=h,!1}var u=a.renderer.getContainer().find("canvas")[0],c=!0;t.isFunction(o)&&(c=o(e,u));var d=!0;return c&&(d=t.jqx.exportImage(u,r,n,i,s)),a.renderEngine!=l&&(a.renderEngine=l,a.refresh(),a.enableAnimations=h),d},t.jqx.getByPriority=function(t){for(var e=void 0,r=0;r<t.length&&null==e;r++)null==e&&null!=t[r]&&(e=t[r]);return e},t.jqx.exportImage=function(e,r,n,i,s){if(!e)return!1;var o="pdf"===r.toLowerCase();if(o&&(r="jpeg"),null!=n&&""!=n||(n="image."+r),null==i||""==i)throw"Please specifiy export server";var a=!0;try{if(e){var l=e.toDataURL("image/"+r);if(o){t.jqx.pdfExport||(t.jqx.pdfExport={orientation:"portrait",paperSize:"a4"});var h=595;switch(t.jqx.pdfExport.paperSize){case"legal":h=612,"portrait"!==t.jqx.pdfExport.orientation&&(h=1008);break;case"letter":h=612,"portrait"!==t.jqx.pdfExport.orientation&&(h=792);break;case"a3":h=841,"portrait"!==t.jqx.pdfExport.orientation&&(h=1190);break;case"a4":h=595,"portrait"!==t.jqx.pdfExport.orientation&&(h=842);break;case"a5":h=420,"portrait"!==t.jqx.pdfExport.orientation&&(h=595)}var u=72*t(e).width()/96;u>=h-20&&(u=h-20);try{var c=new window.pdfDataExport(t.jqx.pdfExport.orientation,"pt",t.jqx.pdfExport.paperSize)}catch(g){c=new window.jqxPdfDataExport(t.jqx.pdfExport.orientation,"pt",t.jqx.pdfExport.paperSize)}return c.addImage(l,"JPEG",10,10,u,0),void c.save(n)}if(l=l.replace("data:image/"+r+";base64,",""),s)t.ajax({dataType:"string",url:i,type:"POST",data:{content:l,fname:n},async:!1,success:function(t,e,r){a=!0},error:function(t,e,r){a=!1}});else{var d=document.createElement("form");d.method="POST",d.action=i,d.style.display="none",document.body.appendChild(d);var f=document.createElement("input");f.name="fname",f.value=n,f.style.display="none";var p=document.createElement("input");p.name="content",p.value=l,p.style.display="none",d.appendChild(f),d.appendChild(p),d.submit(),document.body.removeChild(d),a=!0}}}catch(m){a=!1}return a}}(jqxBaseFramework),function(t){window.jqxPlot=function(){},window.jqxPlot.prototype={get:function(t,e,r){return void 0!==r?t[e][r]:t[e]},min:function(t,e){for(var r=NaN,n=0;n<t.length;n++){var i=this.get(t,n,e);(isNaN(r)||i<r)&&(r=i)}return r},max:function(t,e){for(var r=NaN,n=0;n<t.length;n++){var i=this.get(t,n,e);(isNaN(r)||i>r)&&(r=i)}return r},sum:function(t,e){for(var r=0,n=0;n<t.length;n++){var i=this.get(t,n,e);isNaN(i)||(r+=i)}return r},count:function(t,e){for(var r=0,n=0;n<t.length;n++){var i=this.get(t,n,e);isNaN(i)||r++}return r},avg:function(t,e){return this.sum(t,e)/Math.max(1,this.count(t,e))},filter:function(t,e){if(!e)return t;for(var r=[],n=0;n<t.length;n++)e(t[n])&&r.push(t[n]);return r},scale:function(e,r,n,i){if(isNaN(e))return NaN;if((e<Math.min(r.min,r.max)||e>Math.max(r.min,r.max))&&(!i||!0!==i.ignore_range))return NaN;var s=NaN,o=1;if(void 0===r.type||"logarithmic"!=r.type){var a=Math.abs(r.max-r.min);a||(a=1),o=Math.abs(e-Math.min(r.min,r.max))/a}else if("logarithmic"===r.type){var l=r.base;isNaN(l)&&(l=10);var h=Math.min(r.min,r.max);h<=0&&(h=1);var u=Math.max(r.min,r.max);u<=0&&(u=1);var c=t.jqx.log(u,l);u=Math.pow(l,c);var d=t.jqx.log(h,l);h=Math.pow(l,d);var f=t.jqx.log(e,l);o=Math.abs(f-d)/(c-d)}return"logarithmic"===n.type?(l=n.base,isNaN(l)&&(l=10),c=t.jqx.log(n.max,l),d=t.jqx.log(n.min,l),n.flip&&(o=1-o),f=Math.min(d,c)+o*Math.abs(c-d),s=Math.pow(l,f)):(s=Math.min(n.min,n.max)+o*Math.abs(n.max-n.min),n.flip&&(s=Math.max(n.min,n.max)-s+n.min)),s},axis:function(e,r,n){if(n<=1)return[r,e];(isNaN(n)||n<2)&&(n=2);for(var i=0;Math.round(e)!=e&&Math.round(r)!=r&&i<10;)e*=10,r*=10,i++;for(var s=(r-e)/n;i<10&&Math.round(s)!=s;)e*=10,r*=10,s*=10,i++;for(var o=[1,2,5],a=0;;){var l=a%o.length,h=Math.floor(a/o.length),u=Math.pow(10,h)*o[l];l=(a+1)%o.length,h=Math.floor((a+1)/o.length);var c=Math.pow(10,h)*o[l];if(s>=u&&s<c)break;a++}for(var d=c,f=[],p=t.jqx._rnd(e,d,!1),g=i<=0?1:Math.pow(10,i);p<r+d;)f.push(p/g),p+=d;return f}}}(jqxBaseFramework)},aOaY:function(t,e){var r;(r=jqxBaseFramework).extend(r.jqx._jqxChart.prototype,{_moduleRangeSelector:!0,_renderXAxisRangeSelector:function(t,e){var n=this;n._isTouchDevice=r.jqx.mobile.isTouchDevice();var i=n.seriesGroups[t],s=n._getXAxis(t),o=s?s.rangeSelector:void 0;if(n._isSelectorRefresh||(o&&o.renderTo?o.renderTo:n.host).find(".rangeSelector").remove(),!s||0==s.visible||"spider"==i.type)return!1;if(!n._isGroupVisible(t))return!1;if(!o)return!1;var a="horizontal"==i.orientation;o.renderTo&&(a=!1),n.rtl&&(s.flip=!0);var l=a?this.host.height():this.host.width(),h=this._getXAxisStats(t,s,l-=4),u=s.position;if(o.renderTo&&o.position&&(u=o.position),!this._isSelectorRefresh){var c=o.renderTo,d=r("<div class='rangeSelector jqx-disableselect' style='position: absolute; background-color: transparent;' onselectstart='return false;'></div>").appendTo(c||this.renderer.getContainer());if(c)d.css({width:c.width(),height:c.height()}),e.width=c.width(),e.height=c.height();else{var f=this.host.coord();f.top=0,f.left=0;var p=this._selectorGetSize(s);a?(d.css("left",f.left+1+e.x+("right"!=u?-p:e.width)),d.css("top",f.top),d.css("height",l),d.css("width",p),e.height=p):(d.css("left",f.left+1),d.css("top",f.top+e.y+("top"!=u?e.height:-p)),d.css("height",p),d.css("width",l))}this._refreshSelector(t,s,h,d,e,a)}return this._isSelectorRefresh=!1,!0},_refreshSelector:function(t,e,n,i,s,o){var a={},l=e.rangeSelector;for(var h in l)a[h]=l[h];delete a.padding;var u=a.minValue,c=a.maxValue;null==u&&(u=Math.min(n.min.valueOf(),n.dsRange.min.valueOf())),null==c&&(c=Math.max(n.max.valueOf(),n.dsRange.max.valueOf())),this._isDate(n.min)&&(u=new Date(u)),this._isDate(n.max)&&(c=new Date(c));var d=e.position;l.renderTo&&l.position&&(d=l.position),a.dataField=e.dataField,delete a.rangeSelector,a.type=e.type,a.baseUnit=l.baseUnit||e.baseUnit,a.minValue=u,a.maxValue=c,a.flip=e.flip,a.position=d;var f=2,p=2,g=2,m=2;l.renderTo||(f=o?0:s.x,p=o?0:this._rect.width-s.x-s.width,g=o?s.y:5,m=o?this._paddedRect.height-this._plotRect.height:5);var v=l.padding;v=null!=v||l.renderTo?{left:v&&v.left?v.left:f,top:v&&v.top?v.top:g,right:v&&v.right?v.right:p,bottom:v&&v.bottom?v.bottom:m}:{left:f,top:g,right:p,bottom:m};var y=e.rangeSelector.dataField;for(h=0;null==y&&h<this.seriesGroups.length;h++)for(var x=0;null==y&&x<this.seriesGroups[h].series.length;x++)y=this.seriesGroups[h].series[x].dataField;var _={padding:v,_isRangeSelectorInstance:!0,title:l.title||"",description:l.description||"",titlePadding:l.titlePadding,colorScheme:l.colorScheme||this.colorScheme,backgroundColor:l.backgroundColor||this.backgroundColor||"transparent",backgroundImage:l.backgroundImage||"",showBorderLine:l.showBorderLine||!!l.renderTo,borderLineWidth:l.borderLineWidth||this.borderLineWidth,borderLineColor:l.borderLineColor||this.borderLineColor,rtl:l.rtl||this.rtl,greyScale:l.greyScale||this.greyScale,renderEngine:this.renderEngine,showLegend:!1,enableAnimations:!1,enableEvents:!1,showToolTips:!1,source:this.source,xAxis:a,seriesGroups:[{orientation:o?"horizontal":"vertical",valueAxis:{visible:!1},type:e.rangeSelector.serieType||"area",skipOverlappingPoints:r.jqx.getByPriority([e.rangeSelector.skipOverlappingPoints,!0]),columnSeriesOverlap:r.jqx.getByPriority([e.rangeSelector.columnSeriesOverlap,!1]),columnsGapPercent:r.jqx.getByPriority([e.rangeSelector.columnsGapPercent,25]),seriesGapPercent:r.jqx.getByPriority([e.rangeSelector.seriesGapPercent,25]),series:[{dataField:y,opacity:.8,lineWidth:1}]}]};e.rangeSelector.seriesGroups&&(_.seriesGroups=e.rangeSelector.seriesGroups),e.rangeSelector.valueAxis&&(_.valueAxis=e.rangeSelector.valueAxis),_.showBorderLine||(_.borderLineWidth=1,_.borderLineColor=r.jqx.getByPriority([this.backgroundColor,this.background,"#FFFFFF"]),_.showBorderLine=!0);var b=this;b._supressBindingRefresh=!0,i.empty(),i.jqxChart(_),b._rangeSelectorInstances[t]=i,b._supressBindingRefresh=!1,i.on(b._getEvent("mousemove"),(function(){b._unselect(),b._hideToolTip()}));var w=i.jqxChart("getInstance");if(w._plotRect){var C=w._paddedRect;if(C.height=w._plotRect.height,o||"top"!=d){if(o){var S=w._renderData[0].xAxis.rect.width;C.width-=S,"right"!=d&&(C.x+=S)}}else C.y+=w._renderData[0].xAxis.rect.height;b._createSliderElements(t,i,C,l),b.removeHandler(r(document),b._getEvent("mousemove")+"."+this.element.id,b._onSliderMouseMove),b.removeHandler(r(document),b._getEvent("mousedown"),b._onSliderMouseDown),b.removeHandler(r(document),b._getEvent("mouseup")+"."+this.element.id,b._onSliderMouseUp),b.addHandler(r(document),b._getEvent("mousemove")+"."+this.element.id,b._onSliderMouseMove,{self:this,groupIndex:t,renderTo:i,swapXY:o}),b.addHandler(r(i),b._getEvent("mousedown"),this._onSliderMouseDown,{self:this,groupIndex:t,renderTo:i,swapXY:o}),b.addHandler(r(document),b._getEvent("mouseup")+"."+this.element.id,b._onSliderMouseUp,{element:this.element.id,self:this,groupIndex:t,renderTo:i,swapXY:o})}},_createSliderElements:function(t,e,n,i){e.find(".slider").remove();var s=i.selectedRangeColor||"blue",o=r.jqx.getByPriority([i.selectedRangeOpacity,.1]),a=r.jqx.getByPriority([i.unselectedRangeOpacity,.5]),l=i.unselectedRangeColor||"white",h=i.rangeLineColor||"grey",u=r("<div class='slider' style='position: absolute;'></div>");for(u.css({background:s,opacity:o,left:n.x,top:n.y,width:n.width,height:n.height}),u.appendTo(e);this._sliders.length<t+1;)this._sliders.push({});var c="<div class='slider' style='position: absolute; background: "+l+"; opacity: "+a+";'></div>",d="<div class='slider' style='position: absolute; background:"+h+"; opacity: "+a+";'></div>",f="<div class='slider jqx-rc-all' style='position: absolute; background: white; border-style: solid; border-width: 1px; border-color: "+h+";'></div>";this._sliders[t]={element:u,host:e,_sliderInitialAbsoluteRect:{x:u.coord().left,y:u.coord().top,width:n.width,height:n.height},_hostInitialAbsolutePos:{x:e.coord().left,y:e.coord().top},getRect:function(){return{x:this.host.coord().left-this._hostInitialAbsolutePos.x+this._sliderInitialAbsoluteRect.x,y:this.host.coord().top-this._hostInitialAbsolutePos.y+this._sliderInitialAbsoluteRect.y,width:this._sliderInitialAbsoluteRect.width,height:this._sliderInitialAbsoluteRect.height}},rect:n,left:r(c),right:r(c),leftTop:r(d),rightTop:r(d),leftBorder:r(d),leftBar:r(f),rightBorder:r(d),rightBar:r(f)},this._sliders[t].left.appendTo(e),this._sliders[t].right.appendTo(e),this._sliders[t].leftTop.appendTo(e),this._sliders[t].rightTop.appendTo(e),this._sliders[t].leftBorder.appendTo(e),this._sliders[t].rightBorder.appendTo(e),this._sliders[t].leftBar.appendTo(e),this._sliders[t].rightBar.appendTo(e);var p=this._renderData[t].xAxis.data.axisStats,g=p.min.valueOf(),m=p.max.valueOf(),v=this._valueToOffset(t,g),y=this._valueToOffset(t,m);if(v>y){var x=y;y=v,v=x}u.css("horizontal"!=this.seriesGroups[t].orientation?{left:Math.round(n.x+v),top:n.y,width:Math.round(y-v),height:n.height}:{top:Math.round(n.y+v),left:n.x,height:Math.round(y-v),width:n.width}),this._setSliderPositions(t,v,y)},_setSliderPositions:function(t,e,r){var n=this.seriesGroups[t],i=this._getXAxis(t),s=i.rangeSelector,o="horizontal"==n.orientation;i.rangeSelector.renderTo&&(o=!1);var a=i.position;s.renderTo&&s.position&&(a=s.position);var l=this._sliders[t],h=o?"top":"left",u=o?"left":"top",c=o?"height":"width",d=o?"width":"height",f=o?"y":"x",p=o?"x":"y",g=l.rect;l.startOffset=e,l.endOffset=r,l.left.css(h,g[f]),l.left.css(u,g[p]),l.left.css(c,e),l.left.css(d,g[d]),l.right.css(h,g[f]+r),l.right.css(u,g[p]),l.right.css(c,g[c]-r+1),l.right.css(d,g[d]),l.leftTop.css(h,g[f]),l.leftTop.css(u,g[p]+(o&&"right"==a||!o&&"top"!=a?0:g[d])),l.leftTop.css(c,e),l.leftTop.css(d,1),l.rightTop.css(h,g[f]+r),l.rightTop.css(u,g[p]+(o&&"right"==a||!o&&"top"!=a?0:g[d])),l.rightTop.css(c,g[c]-r+1),l.rightTop.css(d,1),l.leftBorder.css(h,g[f]+e),l.leftBorder.css(u,g[p]),l.leftBorder.css(c,1),l.leftBorder.css(d,g[d]);var m=g[d]/4;m>20&&(m=20),m<3&&(m=3),l.leftBar.css(h,g[f]+e-3),l.leftBar.css(u,g[p]+g[d]/2-m/2),l.leftBar.css(c,5),l.leftBar.css(d,m),l.rightBorder.css(h,g[f]+r),l.rightBorder.css(u,g[p]),l.rightBorder.css(c,1),l.rightBorder.css(d,g[d]),l.rightBar.css(h,g[f]+r-3),l.rightBar.css(u,g[p]+g[d]/2-m/2),l.rightBar.css(c,5),l.rightBar.css(d,m)},_resizeState:{},_onSliderMouseDown:function(t){t.stopImmediatePropagation(),t.stopPropagation();var e=t.data.self;e._sliders[t.data.groupIndex]&&(null==e._resizeState.state&&e._testAndSetReadyResize(t),"ready"==e._resizeState.state&&(r.jqx._rangeSelectorTarget=e,e._resizeState.state="resizing"))},_valueToOffset:function(t,e){var r=this.seriesGroups[t],n=this._sliders[t],i=n.host.jqxChart("getInstance")._renderData[0].xAxis.data.axisStats,s=i.min.valueOf(),o=i.max.valueOf()-s;0==o&&(o=1);var a=this._getXAxis(t),l="horizontal"==r.orientation?"height":"width",h=(e.valueOf()-s)/o;return n.getRect()[l]*(a.flip?1-h:h)},_offsetToValue:function(t,e){var r=this._sliders[t],n=this.seriesGroups[t],i=this._getXAxis(t),s="horizontal"==n.orientation?"height":"width",o=r.getRect()[s];0==o&&(o=1);var a=r.host.jqxChart("getInstance")._renderData[0].xAxis.data.axisStats,l=a.min.valueOf(),h=a.max.valueOf(),u=e/o*(h-l)+l;return 1==i.flip&&(u=h-e/o*(h-l)),this._isDate(a.min)||this._isDate(a.max)?u=new Date(u):((null==i.dataField||a.useIndeces)&&(u=Math.round(u)),u<a.min&&(u=a.min),u>a.max&&(u=a.max)),u},_onSliderMouseUp:function(t){var e=r.jqx._rangeSelectorTarget;if(e){var n=t.data.groupIndex,i=t.data.swapXY,s=e._sliders[n];if(s&&"resizing"==e._resizeState.state){t.stopImmediatePropagation(),t.stopPropagation(),e._resizeState={},e.host.css("cursor","default");var o=i?"top":"left",a=i?"y":"x",l=s.element.coord()[o],h=l+(i?s.element.height():s.element.width()),u=s.getRect(),c=e._offsetToValue(n,l-u[a]),d=e._offsetToValue(n,h-u[a]);!s.host.jqxChart("getInstance")._renderData[0].xAxis.data.axisStats.isTimeUnit&&d.valueOf()-c.valueOf()>864e5&&(c.setHours(0,0,0,0),d.setDate(d.getDate()+1),d.setHours(0,0,0,0));var f=e._getXAxis(n);if(f.flip){var p=c;c=d,d=p}for(var g=0;g<e.seriesGroups.length;g++)e._getXAxis(g)==f&&(e._selectorRange[g]={min:c,max:d});e._isSelectorRefresh=!0;var m=e.enableAnimations;e._raiseEvent("rangeSelectionChanging",{instance:e,minValue:c,maxValue:d}),e.enableAnimations=!1,e.update(),e.enableAnimations=m,e._raiseEvent("rangeSelectionChanged",{instance:e,minValue:c,maxValue:d})}}},_onSliderMouseMove:function(t){var e=t.data.self,n=t.data.groupIndex,i=e._sliders[n],s=t.data.swapXY;if(i){var o=i.getRect(),a=i.element,l=r.jqx.position(t),h=a.coord(),u=s?"top":"left",c=s?"height":"width",d=s?"y":"x";if("resizing"==e._resizeState.state){if(t.stopImmediatePropagation(),t.stopPropagation(),"left"==e._resizeState.side){var f=Math.round(l[u]-h[u]);if(h[u]+f>=(m=o[d])&&h[u]+f<=m+o[c]){var p=parseInt(a.css(u)),g=Math.max(2,(s?a.height():a.width())-f);a.css(c,g),a.css(u,p+f)}}else if("right"==e._resizeState.side){var m,v=s?a.height():a.width();f=Math.round(l[u]-h[u]-v),h[u]+v+f>=(m=o[d])&&h[u]+f+v<=m+o[c]&&(g=Math.max(2,v+f),a.css(c,g))}else"move"==e._resizeState.side&&(v=s?a.height():a.width(),p=parseInt(a.css(u)),f=Math.round(l[u]-e._resizeState.startPos),h[u]+f>=o[d]&&h[u]+f+v<=o[d]+o[c]&&(e._resizeState.startPos=l[u],a.css(u,p+f)));var y=parseInt(a.css(u))-i.rect[d],x=y+(s?a.height():a.width());e._setSliderPositions(n,y,x)}else e._testAndSetReadyResize(t)}},_testAndSetReadyResize:function(t){var e=t.data.self,n=t.data.renderTo,i=e._sliders[t.data.groupIndex],s=t.data.swapXY,o=i.getRect(),a=i.element,l=r.jqx.position(t),h=a.coord(),u=s?"left":"top",c=s?"top":"left",d=e._isTouchDevice?30:5;l[u]>=h[u]&&l[u]<=h[u]+o[s?"width":"height"]?Math.abs(l[c]-h[c])<=d?(n.css("cursor",s?"row-resize":"col-resize"),e._resizeState={state:"ready",side:"left"}):Math.abs(l[c]-h[c]-(s?a.height():a.width()))<=d?(n.css("cursor",s?"row-resize":"col-resize"),e._resizeState={state:"ready",side:"right"}):l[c]+d>h[c]&&l[c]-d<h[c]+(s?a.height():a.width())?(n.css("cursor","pointer"),e._resizeState={state:"ready",side:"move",startPos:l[c]}):(n.css("cursor","default"),e._resizeState={}):(n.css("cursor","default"),e._resizeState={})},_selectorGetSize:function(t){return t.rangeSelector.renderTo?0:t.rangeSelector.size||this._paddedRect.height/3}})},aif6:function(t,e,r){var n,i;document.all&&!document.addEventListener||function(i,s){var o,a,l=i.document,h=i.navigator,u=i.JQXLite,c=i.$,d=Array.prototype.push,f=Array.prototype.slice,p=Array.prototype.indexOf,g=Object.prototype.toString,m=Object.prototype.hasOwnProperty,v=String.prototype.trim,y=function(t,e){return new y.fn.init(t,e,o)},x=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,_=/\S/,b=/\s+/,w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,C=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,S=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,A=/^[\],:{}\s]*$/,k=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,q=/^-ms-/,N=/-([\da-z])/gi,E=function(t,e){return(e+"").toUpperCase()},M=function(){l.addEventListener?(l.removeEventListener("DOMContentLoaded",M,!1),y.ready()):"complete"===l.readyState&&(l.detachEvent("onreadystatechange",M),y.ready())},O={};y.fn=y.prototype={constructor:y,init:function(t,e,r){var n,i;if(!t)return this;if(t.nodeType)return this.context=this[0]=t,this.length=1,this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:C.exec(t))||!n[1]&&e)return!e||e.jqx?(e||r).find(t):this.constructor(e).find(t);if(n[1])return t=y.parseHTML(n[1],(e=e instanceof y?e[0]:e)&&e.nodeType?e.ownerDocument||e:l,!0),S.test(n[1])&&y.isPlainObject(e)&&this.attr.call(t,e,!0),y.merge(this,t);if((i=l.getElementById(n[2]))&&i.parentNode){if(i.id!==n[2])return r.find(t);this.length=1,this[0]=i}return this.context=l,this.selector=t,this}return y.isFunction(t)?r.ready(t):(t.selector!==s&&(this.selector=t.selector,this.context=t.context),y.makeArray(t,this))},selector:"",jqx:"4.5.0",length:0,size:function(){return this.length},toArray:function(){return f.call(this)},get:function(t){return null==t?this.toArray():t<0?this[this.length+t]:this[t]},pushStack:function(t,e,r){var n=y.merge(this.constructor(),t);return n.prevObject=this,n.context=this.context,"find"===e?n.selector=this.selector+(this.selector?" ":"")+r:e&&(n.selector=this.selector+"."+e+"("+r+")"),n},each:function(t,e){return y.each(this,t,e)},ready:function(t){return y.ready.promise().done(t),this},eq:function(t){return-1==(t=+t)?this.slice(t):this.slice(t,t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(f.apply(this,arguments),"slice",f.call(arguments).join(","))},map:function(t){return this.pushStack(y.map(this,(function(e,r){return t.call(e,r,e)})))},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice},y.fn.init.prototype=y.fn,y.extend=y.fn.extend=function(){var t,e,r,n,i,o,a=arguments[0]||{},l=1,h=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[1]||{},l=2),"object"==typeof a||y.isFunction(a)||(a={}),h===l&&(a=this,--l);l<h;l++)if(null!=(t=arguments[l]))for(e in t)r=a[e],a!==(n=t[e])&&(u&&n&&(y.isPlainObject(n)||(i=y.isArray(n)))?(i?(i=!1,o=r&&y.isArray(r)?r:[]):o=r&&y.isPlainObject(r)?r:{},a[e]=y.extend(u,o,n)):n!==s&&(a[e]=n));return a},y.extend({noConflict:function(t){return i.$===y&&(i.$=c),t&&i.JQXLite===y&&(i.JQXLite=u),y},isReady:!1,readyWait:1,holdReady:function(t){t?y.readyWait++:y.ready(!0)},ready:function(t){if(!0===t?!--y.readyWait:!y.isReady){if(!l.body)return setTimeout(y.ready,1);y.isReady=!0,!0!==t&&--y.readyWait>0||(a.resolveWith(l,[y]),y.fn.trigger&&y(l).trigger("ready").off("ready"))}},isFunction:function(t){return"function"===y.type(t)},isArray:Array.isArray||function(t){return"array"===y.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):O[g.call(t)]||"object"},isPlainObject:function(t){if(!t||"object"!==y.type(t)||t.nodeType||y.isWindow(t))return!1;try{if(t.constructor&&!m.call(t,"constructor")&&!m.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(ct){return!1}var e;for(e in t);return e===s||m.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw new Error(t)},parseHTML:function(t,e,r){var n;return t&&"string"==typeof t?("boolean"==typeof e&&(r=e,e=0),e=e||l,(n=S.exec(t))?[e.createElement(n[1])]:(n=y.buildFragment([t],e,r?null:[]),y.merge([],(n.cacheable?y.clone(n.fragment):n.fragment).childNodes))):null},parseJSON:function(t){return t&&"string"==typeof t?(t=y.trim(t),i.JSON&&i.JSON.parse?i.JSON.parse(t):A.test(t.replace(T,"@").replace(j,"]").replace(k,""))?new Function("return "+t)():void y.error("Invalid JSON: "+t)):null},parseXML:function(t){var e;if(!t||"string"!=typeof t)return null;try{i.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t))}catch(r){e=s}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||y.error("Invalid XML: "+t),e},noop:function(){},globalEval:function(t){t&&_.test(t)&&(i.execScript||function(t){i.eval.call(i,t)})(t)},camelCase:function(t){return t.replace(q,"ms-").replace(N,E)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,r){var n,i=0,o=t.length,a=o===s||y.isFunction(t);if(r)if(a){for(n in t)if(!1===e.apply(t[n],r))break}else for(;i<o&&!1!==e.apply(t[i++],r););else if(a){for(n in t)if(!1===e.call(t[n],n,t[n]))break}else for(;i<o&&!1!==e.call(t[i],i,t[i++]););return t},trim:v&&!v.call("\ufeff\xa0")?function(t){return null==t?"":v.call(t)}:function(t){return null==t?"":(t+"").replace(w,"")},makeArray:function(t,e){var r,n=e||[];return null!=t&&(r=y.type(t),null==t.length||"string"===r||"function"===r||"regexp"===r||y.isWindow(t)?d.call(n,t):y.merge(n,t)),n},inArray:function(t,e,r){var n;if(e){if(p)return p.call(e,t,r);for(n=e.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in e&&e[r]===t)return r}return-1},merge:function(t,e){var r=e.length,n=t.length,i=0;if("number"==typeof r)for(;i<r;i++)t[n++]=e[i];else for(;e[i]!==s;)t[n++]=e[i++];return t.length=n,t},grep:function(t,e,r){var n=[],i=0,s=t.length;for(r=!!r;i<s;i++)r!==!!e(t[i],i)&&n.push(t[i]);return n},map:function(t,e,r){var n,i,o=[],a=0,l=t.length;if(t instanceof y||l!==s&&"number"==typeof l&&(l>0&&t[0]&&t[l-1]||0===l||y.isArray(t)))for(;a<l;a++)null!=(n=e(t[a],a,r))&&(o[o.length]=n);else for(i in t)null!=(n=e(t[i],i,r))&&(o[o.length]=n);return o.concat.apply([],o)},guid:1,proxy:function(t,e){var r,n,i;return"string"==typeof e&&(r=t[e],e=t,t=r),y.isFunction(t)?(n=f.call(arguments,2),(i=function(){return t.apply(e,n.concat(f.call(arguments)))}).guid=t.guid=t.guid||y.guid++,i):s},access:function(t,e,r,n,i,o,a){var l,h=null==r,u=0,c=t.length;if(r&&"object"==typeof r){for(u in r)y.access(t,e,u,r[u],1,o,n);i=1}else if(n!==s){if(l=a===s&&y.isFunction(n),h&&(l?(l=e,e=function(t,e,r){return l.call(y(t),r)}):(e.call(t,n),e=null)),e)for(;u<c;u++)e(t[u],r,l?n.call(t[u],u,e(t[u],r)):n,a);i=1}return i?t:h?e.call(t):c?e(t[0],r):o},now:function(){return(new Date).getTime()}}),y.ready.promise=function(t){if(!a)if(a=y.Deferred(),"complete"===l.readyState)setTimeout(y.ready,1);else if(l.addEventListener)l.addEventListener("DOMContentLoaded",M,!1),i.addEventListener("load",y.ready,!1);else{l.attachEvent("onreadystatechange",M),i.attachEvent("onload",y.ready);var e=!1;try{e=null==i.frameElement&&l.documentElement}catch(ct){}e&&e.doScroll&&function t(){if(!y.isReady){try{e.doScroll("left")}catch(r){return setTimeout(t,50)}y.ready()}}()}return a.promise(t)},y.each("Boolean Number String Function Array Date RegExp Object".split(" "),(function(t,e){O["[object "+e+"]"]=e.toLowerCase()})),o=y(l);var I={};y.Callbacks=function(t){t="string"==typeof t?I[t]||function(t){var e=I[t]={};return y.each(t.split(b),(function(t,r){e[r]=!0})),e}(t):y.extend({},t);var e,r,n,i,o,a,l=[],h=!t.once&&[],u=function(s){for(e=t.memory&&s,r=!0,a=i||0,i=0,o=l.length,n=!0;l&&a<o;a++)if(!1===l[a].apply(s[0],s[1])&&t.stopOnFalse){e=!1;break}n=!1,l&&(h?h.length&&u(h.shift()):e?l=[]:c.disable())},c={add:function(){if(l){var r=l.length;!function e(r){y.each(r,(function(r,n){var i=y.type(n);"function"===i?t.unique&&c.has(n)||l.push(n):n&&n.length&&"string"!==i&&e(n)}))}(arguments),n?o=l.length:e&&(i=r,u(e))}return this},remove:function(){return l&&y.each(arguments,(function(t,e){for(var r;(r=y.inArray(e,l,r))>-1;)l.splice(r,1),n&&(r<=o&&o--,r<=a&&a--)})),this},has:function(t){return y.inArray(t,l)>-1},empty:function(){return l=[],this},disable:function(){return l=h=e=s,this},disabled:function(){return!l},lock:function(){return h=s,e||c.disable(),this},locked:function(){return!h},fireWith:function(t,e){return e=[t,(e=e||[]).slice?e.slice():e],!l||r&&!h||(n?h.push(e):u(e)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},y.extend({Deferred:function(t){var e=[["resolve","done",y.Callbacks("once memory"),"resolved"],["reject","fail",y.Callbacks("once memory"),"rejected"],["notify","progress",y.Callbacks("memory")]],r="pending",n={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return y.Deferred((function(r){y.each(e,(function(e,n){var s=n[0],o=t[e];i[n[1]](y.isFunction(o)?function(){var t=o.apply(this,arguments);t&&y.isFunction(t.promise)?t.promise().done(r.resolve).fail(r.reject).progress(r.notify):r[s+"With"](this===i?r:this,[t])}:r[s])})),t=null})).promise()},promise:function(t){return null!=t?y.extend(t,n):n}},i={};return n.pipe=n.then,y.each(e,(function(t,s){var o=s[2],a=s[3];n[s[1]]=o.add,a&&o.add((function(){r=a}),e[1^t][2].disable,e[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith})),n.promise(i),t&&t.call(i,i),i},when:function(t){var e,r,n,i=0,s=f.call(arguments),o=s.length,a=1!==o||t&&y.isFunction(t.promise)?o:0,l=1===a?t:y.Deferred(),h=function(t,r,n){return function(i){r[t]=this,n[t]=arguments.length>1?f.call(arguments):i,n===e?l.notifyWith(r,n):--a||l.resolveWith(r,n)}};if(o>1)for(e=new Array(o),r=new Array(o),n=new Array(o);i<o;i++)s[i]&&y.isFunction(s[i].promise)?s[i].promise().done(h(i,n,s)).fail(l.reject).progress(h(i,r,e)):--a;return a||l.resolveWith(n,s),l.promise()}}),y.support=function(){var t,e,r,n,s,o,a,h,u,c,d,f=l.createElement("div");if(f.setAttribute("className","t"),f.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=f.getElementsByTagName("*"),r=f.getElementsByTagName("a")[0],!e||!r||!e.length)return{};s=(n=l.createElement("select")).appendChild(l.createElement("option")),o=f.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:3===f.firstChild.nodeType,tbody:!f.getElementsByTagName("tbody").length,htmlSerialize:!!f.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:"on"===o.value,optSelected:s.selected,getSetAttribute:"t"!==f.className,enctype:!!l.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==l.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===l.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,n.disabled=!0,t.optDisabled=!s.disabled;try{delete f.test}catch(p){t.deleteExpando=!1}if(!f.addEventListener&&f.attachEvent&&f.fireEvent&&(f.attachEvent("onclick",d=function(){t.noCloneEvent=!1}),f.cloneNode(!0).fireEvent("onclick"),f.detachEvent("onclick",d)),(o=l.createElement("input")).value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","checked"),o.setAttribute("name","t"),f.appendChild(o),(a=l.createDocumentFragment()).appendChild(f.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=o.checked,a.removeChild(o),a.appendChild(f),f.attachEvent)for(u in{submit:!0,change:!0,focusin:!0})(c=(h="on"+u)in f)||(f.setAttribute(h,"return;"),c="function"==typeof f[h]),t[u+"Bubbles"]=c;return y((function(){var e,r,n,s,o="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=l.getElementsByTagName("body")[0];a&&((e=l.createElement("div")).style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(e,a.firstChild),r=l.createElement("div"),e.appendChild(r),r.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(n=r.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",c=0===n[0].offsetHeight,n[0].style.display="",n[1].style.display="none",t.reliableHiddenOffsets=c&&0===n[0].offsetHeight,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===r.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==a.offsetTop,i.getComputedStyle&&(t.pixelPosition="1%"!==(i.getComputedStyle(r,null)||{}).top,t.boxSizingReliable="4px"===(i.getComputedStyle(r,null)||{width:"4px"}).width,(s=l.createElement("div")).style.cssText=r.style.cssText=o,s.style.marginRight=s.style.width="0",r.style.width="1px",r.appendChild(s),t.reliableMarginRight=!parseFloat((i.getComputedStyle(s,null)||{}).marginRight)),void 0!==r.style.zoom&&(r.innerHTML="",r.style.cssText=o+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===r.offsetWidth,r.style.display="block",r.style.overflow="visible",r.innerHTML="<div></div>",r.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==r.offsetWidth,e.style.zoom=1),a.removeChild(e),e=r=n=s=null)})),a.removeChild(f),e=r=n=s=o=a=f=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(t,e,r){if(r===s&&1===t.nodeType){var n="data-"+e.replace(P,"-$1").toLowerCase();if("string"==typeof(r=t.getAttribute(n))){try{r="true"===r||"false"!==r&&("null"===r?null:+r+""===r?+r:D.test(r)?y.parseJSON(r):r)}catch(i){}y.data(t,e,r)}else r=s}return r}function F(t){var e;for(e in t)if(("data"!==e||!y.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}y.extend({cache:{},deletedIds:[],uuid:0,expando:"JQXLite"+(y.fn.jqx+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return!!(t=t.nodeType?y.cache[t[y.expando]]:t[y.expando])&&!F(t)},data:function(t,e,r,n){if(y.acceptData(t)){var i,o,a=y.expando,l="string"==typeof e,h=t.nodeType,u=h?y.cache:t,c=h?t[a]:t[a]&&a;if(c&&u[c]&&(n||u[c].data)||!l||r!==s)return c||(h?t[a]=c=y.deletedIds.pop()||y.guid++:c=a),u[c]||(u[c]={},h||(u[c].toJSON=y.noop)),"object"!=typeof e&&"function"!=typeof e||(n?u[c]=y.extend(u[c],e):u[c].data=y.extend(u[c].data,e)),i=u[c],n||(i.data||(i.data={}),i=i.data),r!==s&&(i[y.camelCase(e)]=r),l?null==(o=i[e])&&(o=i[y.camelCase(e)]):o=i,o}},removeData:function(t,e,r){if(y.acceptData(t)){var n,i,s,o=t.nodeType,a=o?y.cache:t,l=o?t[y.expando]:y.expando;if(a[l]){if(e&&(n=r?a[l]:a[l].data)){y.isArray(e)||(e=e in n?[e]:(e=y.camelCase(e))in n?[e]:e.split(" "));for(i=0,s=e.length;i<s;i++)delete n[e[i]];if(!(r?F:y.isEmptyObject)(n))return}(r||(delete a[l].data,F(a[l])))&&(o?y.cleanData([t],!0):y.support.deleteExpando||a!=a.window?delete a[l]:a[l]=null)}}},_data:function(t,e,r){return y.data(t,e,r,!0)},acceptData:function(t){var e=t.nodeName&&y.noData[t.nodeName.toLowerCase()];return!e||!0!==e&&t.getAttribute("classid")===e}}),y.fn.extend({data:function(t,e){var r,n,i,o,a,l=this[0],h=0,u=null;if(t===s){if(this.length&&(u=y.data(l),1===l.nodeType&&!y._data(l,"parsedAttrs"))){for(a=(i=l.attributes).length;h<a;h++)(o=i[h].name).indexOf("data-")||(o=y.camelCase(o.substring(5)),R(l,o,u[o]));y._data(l,"parsedAttrs",!0)}return u}return"object"==typeof t?this.each((function(){y.data(this,t)})):((r=t.split(".",2))[1]=r[1]?"."+r[1]:"",n=r[1]+"!",y.access(this,(function(e){if(e===s)return(u=this.triggerHandler("getData"+n,[r[0]]))===s&&l&&(u=y.data(l,t),u=R(l,t,u)),u===s&&r[1]?this.data(r[0]):u;r[1]=e,this.each((function(){var i=y(this);i.triggerHandler("setData"+n,r),y.data(this,t,e),i.triggerHandler("changeData"+n,r)}))}),null,e,arguments.length>1,null,!1))},removeData:function(t){return this.each((function(){y.removeData(this,t)}))}}),y.extend({queue:function(t,e,r){var n;if(t)return n=y._data(t,e=(e||"fx")+"queue"),r&&(!n||y.isArray(r)?n=y._data(t,e,y.makeArray(r)):n.push(r)),n||[]},dequeue:function(t,e){var r=y.queue(t,e=e||"fx"),n=r.length,i=r.shift(),s=y._queueHooks(t,e);"inprogress"===i&&(i=r.shift(),n--),i&&("fx"===e&&r.unshift("inprogress"),delete s.stop,i.call(t,(function(){y.dequeue(t,e)}),s)),!n&&s&&s.empty.fire()},_queueHooks:function(t,e){var r=e+"queueHooks";return y._data(t,r)||y._data(t,r,{empty:y.Callbacks("once memory").add((function(){y.removeData(t,e+"queue",!0),y.removeData(t,r,!0)}))})}}),y.fn.extend({queue:function(t,e){var r=2;return"string"!=typeof t&&(e=t,t="fx",r--),arguments.length<r?y.queue(this[0],t):e===s?this:this.each((function(){var r=y.queue(this,t,e);y._queueHooks(this,t),"fx"===t&&"inprogress"!==r[0]&&y.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){y.dequeue(this,t)}))},delay:function(t,e){return t=y.fx&&y.fx.speeds[t]||t,this.queue(e=e||"fx",(function(e,r){var n=setTimeout(e,t);r.stop=function(){clearTimeout(n)}}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var r,n=1,i=y.Deferred(),o=this,a=this.length,l=function(){--n||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=s),t=t||"fx";a--;)(r=y._data(o[a],t+"queueHooks"))&&r.empty&&(n++,r.empty.add(l));return l(),i.promise(e)}});var L,H=/[\t\r\n]/g,V=/\r/g,B=/^(?:button|input)$/i,z=/^(?:button|input|object|select|textarea)$/i,G=/^a(?:rea|)$/i,U=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,W=y.support.getSetAttribute;y.fn.extend({attr:function(t,e){return y.access(this,y.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){y.removeAttr(this,t)}))},prop:function(t,e){return y.access(this,y.prop,t,e,arguments.length>1)},removeProp:function(t){return t=y.propFix[t]||t,this.each((function(){try{this[t]=s,delete this[t]}catch(ct){}}))},addClass:function(t){var e,r,n,i,s,o,a;if(y.isFunction(t))return this.each((function(e){y(this).addClass(t.call(this,e,this.className))}));if(t&&"string"==typeof t)for(e=t.split(b),r=0,n=this.length;r<n;r++)if(1===(i=this[r]).nodeType)if(i.className||1!==e.length){for(s=" "+i.className+" ",o=0,a=e.length;o<a;o++)s.indexOf(" "+e[o]+" ")<0&&(s+=e[o]+" ");i.className=y.trim(s)}else i.className=t;return this},removeClass:function(t){var e,r,n,i,o,a,l;if(y.isFunction(t))return this.each((function(e){y(this).removeClass(t.call(this,e,this.className))}));if(t&&"string"==typeof t||t===s)for(e=(t||"").split(b),a=0,l=this.length;a<l;a++)if(1===(n=this[a]).nodeType&&n.className){for(r=(" "+n.className+" ").replace(H," "),i=0,o=e.length;i<o;i++)for(;r.indexOf(" "+e[i]+" ")>=0;)r=r.replace(" "+e[i]+" "," ");n.className=t?y.trim(r):""}return this},toggleClass:function(t,e){var r=typeof t,n="boolean"==typeof e;return y.isFunction(t)?this.each((function(r){y(this).toggleClass(t.call(this,r,this.className,e),e)})):this.each((function(){if("string"===r)for(var i,s=0,o=y(this),a=e,l=t.split(b);i=l[s++];)a=n?a:!o.hasClass(i),o[a?"addClass":"removeClass"](i);else"undefined"!==r&&"boolean"!==r||(this.className&&y._data(this,"__className__",this.className),this.className=this.className||!1===t?"":y._data(this,"__className__")||"")}))},hasClass:function(t){for(var e=" "+t+" ",r=0,n=this.length;r<n;r++)if(1===this[r].nodeType&&(" "+this[r].className+" ").replace(H," ").indexOf(e)>=0)return!0;return!1},val:function(t){var e,r,n,i=this[0];return arguments.length?(n=y.isFunction(t),this.each((function(r){var i,o=y(this);1===this.nodeType&&(null==(i=n?t.call(this,r,o.val()):t)?i="":"number"==typeof i?i+="":y.isArray(i)&&(i=y.map(i,(function(t){return null==t?"":t+""}))),(e=y.valHooks[this.type]||y.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&e.set(this,i,"value")!==s||(this.value=i))}))):i?(e=y.valHooks[i.type]||y.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&(r=e.get(i,"value"))!==s?r:"string"==typeof(r=i.value)?r.replace(V,""):null==r?"":r:void 0}}),y.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){for(var e,r,n=t.options,i=t.selectedIndex,s="select-one"===t.type||i<0,o=s?null:[],a=s?i+1:n.length,l=i<0?a:s?i:0;l<a;l++)if(((r=n[l]).selected||l===i)&&(y.support.optDisabled?!r.disabled:null===r.getAttribute("disabled"))&&(!r.parentNode.disabled||!y.nodeName(r.parentNode,"optgroup"))){if(e=y(r).val(),s)return e;o.push(e)}return o},set:function(t,e){var r=y.makeArray(e);return y(t).find("option").each((function(){this.selected=y.inArray(y(this).val(),r)>=0})),r.length||(t.selectedIndex=-1),r}}},attrFn:{},attr:function(t,e,r,n){var i,o,a,l=t.nodeType;if(t&&3!==l&&8!==l&&2!==l)return n&&y.isFunction(y.fn[e])?y(t)[e](r):void 0===t.getAttribute?y.prop(t,e,r):((a=1!==l||!y.isXMLDoc(t))&&(e=e.toLowerCase(),o=y.attrHooks[e]||(U.test(e)?L:void 0)),r!==s?null===r?void y.removeAttr(t,e):o&&"set"in o&&a&&(i=o.set(t,r,e))!==s?i:(t.setAttribute(e,r+""),r):o&&"get"in o&&a&&null!==(i=o.get(t,e))?i:null===(i=t.getAttribute(e))?s:i)},removeAttr:function(t,e){var r,n,i,s,o=0;if(e&&1===t.nodeType)for(n=e.split(b);o<n.length;o++)(i=n[o])&&(r=y.propFix[i]||i,(s=U.test(i))||y.attr(t,i,""),t.removeAttribute(W?i:r),s&&r in t&&(t[r]=!1))},attrHooks:{type:{set:function(t,e){if(B.test(t.nodeName)&&t.parentNode)y.error("type property can't be changed");else if(!y.support.radioValue&&"radio"===e&&y.nodeName(t,"input")){var r=t.value;return t.setAttribute("type",e),r&&(t.value=r),e}}},value:{get:function(t,e){return e in t?t.value:null},set:function(t,e,r){t.value=e}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(t,e,r){var n,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return(1!==o||!y.isXMLDoc(t))&&(i=y.propHooks[e=y.propFix[e]||e]),r!==s?i&&"set"in i&&(n=i.set(t,r,e))!==s?n:t[e]=r:i&&"get"in i&&null!==(n=i.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=t.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):z.test(t.nodeName)||G.test(t.nodeName)&&t.href?0:s}}}}),L={get:function(t,e){var r,n=y.prop(t,e);return!0===n||"boolean"!=typeof n&&(r=t.getAttributeNode(e))&&!1!==r.nodeValue?e.toLowerCase():s},set:function(t,e,r){var n;return!1===e?y.removeAttr(t,r):((n=y.propFix[r]||r)in t&&(t[n]=!0),t.setAttribute(r,r.toLowerCase())),r}},y.support.enctype||(y.propFix.enctype="encoding");var $=/^([^\.]*|)(?:\.(.+)|)$/,X=/(?:^|\s)hover(\.\S+|)\b/,Y=/^key/,Q=/^(?:mouse|contextmenu)|click/,J=/^(?:focusinfocus|focusoutblur)$/,Z=function(t){return y.event.special.hover?t:t.replace(X,"mouseenter$1 mouseleave$1")};function K(){return!1}function tt(){return!0}y.event={add:function(t,e,r,n,i){var o,a,l,h,u,c,d,f,p,g,m;if(3!==t.nodeType&&8!==t.nodeType&&e&&r&&(o=y._data(t))){for(r.handler&&(r=(p=r).handler,i=p.selector),r.guid||(r.guid=y.guid++),(l=o.events)||(o.events=l={}),(a=o.handle)||(o.handle=a=function(t){return void 0===y||t&&y.event.triggered===t.type?s:y.event.dispatch.apply(a.elem,arguments)},a.elem=t),e=y.trim(Z(e)).split(" "),h=0;h<e.length;h++)c=(u=$.exec(e[h])||[])[1],d=(u[2]||"").split(".").sort(),m=y.event.special[c]||{},m=y.event.special[c=(i?m.delegateType:m.bindType)||c]||{},f=y.extend({type:c,origType:u[1],data:n,handler:r,guid:r.guid,selector:i,needsContext:i&&y.expr.match.needsContext.test(i),namespace:d.join(".")},p),(g=l[c])||((g=l[c]=[]).delegateCount=0,m.setup&&!1!==m.setup.call(t,n,d,a)||(t.addEventListener?t.addEventListener(c,a,!(!n||n.passive===s)&&n):t.attachEvent&&t.attachEvent("on"+c,a))),m.add&&(m.add.call(t,f),f.handler.guid||(f.handler.guid=r.guid)),i?g.splice(g.delegateCount++,0,f):g.push(f),y.event.global[c]=!0;t=null}},global:{},remove:function(t,e,r,n,i){var s,o,a,l,h,u,c,d,f,p,g,m=y.hasData(t)&&y._data(t);if(m&&(d=m.events)){for(e=y.trim(Z(e||"")).split(" "),s=0;s<e.length;s++)if(a=l=(o=$.exec(e[s])||[])[1],h=o[2],a){for(f=y.event.special[a]||{},u=(p=d[a=(n?f.delegateType:f.bindType)||a]||[]).length,h=h?new RegExp("(^|\\.)"+h.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c=0;c<p.length;c++)g=p[c],!i&&l!==g.origType||r&&r.guid!==g.guid||h&&!h.test(g.namespace)||n&&n!==g.selector&&("**"!==n||!g.selector)||(p.splice(c--,1),g.selector&&p.delegateCount--,f.remove&&f.remove.call(t,g));0===p.length&&u!==p.length&&(f.teardown&&!1!==f.teardown.call(t,h,m.handle)||y.removeEvent(t,a,m.handle),delete d[a])}else for(a in d)y.event.remove(t,a+e[s],r,n,!0);y.isEmptyObject(d)&&(delete m.handle,y.removeData(t,"events",!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(t,e,r,n){if(!r||3!==r.nodeType&&8!==r.nodeType){var o,a,h,u,c,d,f,p,g,m,v=t.type||t,x=[];if(!J.test(v+y.event.triggered)&&(v.indexOf("!")>=0&&(v=v.slice(0,-1),a=!0),v.indexOf(".")>=0&&(x=v.split("."),v=x.shift(),x.sort()),r&&!y.event.customEvent[v]||y.event.global[v]))if((t="object"==typeof t?t[y.expando]?t:new y.Event(v,t):new y.Event(v)).type=v,t.isTrigger=!0,t.exclusive=a,t.namespace=x.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,d=v.indexOf(":")<0?"on"+v:"",r){if(t.result=s,t.target||(t.target=r),(e=null!=e?y.makeArray(e):[]).unshift(t),!(f=y.event.special[v]||{}).trigger||!1!==f.trigger.apply(r,e)){if(g=[[r,f.bindType||v]],!n&&!f.noBubble&&!y.isWindow(r)){for(u=J.test((m=f.delegateType||v)+v)?r:r.parentNode,c=r;u;u=u.parentNode)g.push([u,m]),c=u;c===(r.ownerDocument||l)&&g.push([c.defaultView||c.parentWindow||i,m])}for(h=0;h<g.length&&!t.isPropagationStopped();h++)u=g[h][0],t.type=g[h][1],(p=(y._data(u,"events")||{})[t.type]&&y._data(u,"handle"))&&p.apply(u,e),(p=d&&u[d])&&y.acceptData(u)&&p.apply&&!1===p.apply(u,e)&&t.preventDefault();return t.type=v,n||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(r.ownerDocument,e)||"click"===v&&y.nodeName(r,"a")||!y.acceptData(r)||d&&r[v]&&("focus"!==v&&"blur"!==v||0!==t.target.offsetWidth)&&!y.isWindow(r)&&((c=r[d])&&(r[d]=null),y.event.triggered=v,r[v](),y.event.triggered=s,c&&(r[d]=c)),t.result}}else for(h in o=y.cache)o[h].events&&o[h].events[v]&&y.event.trigger(t,e,o[h].handle.elem,!0)}},dispatch:function(t){t=y.event.fix(t||i.event);var e,r,n,o,a,l,h,u,c,d=(y._data(this,"events")||{})[t.type]||[],p=d.delegateCount,g=f.call(arguments),m=!t.exclusive&&!t.namespace,v=y.event.special[t.type]||{},x=[];if(g[0]=t,t.delegateTarget=this,!v.preDispatch||!1!==v.preDispatch.call(this,t)){if(p&&(!t.button||"click"!==t.type))for(n=t.target;n!=this;n=n.parentNode||this)if(!0!==n.disabled||"click"!==t.type){for(a={},h=[],e=0;e<p;e++)a[c=(u=d[e]).selector]===s&&(a[c]=u.needsContext?y(c,this).index(n)>=0:y.find(c,this,null,[n]).length),a[c]&&h.push(u);h.length&&x.push({elem:n,matches:h})}for(d.length>p&&x.push({elem:this,matches:d.slice(p)}),e=0;e<x.length&&!t.isPropagationStopped();e++)for(t.currentTarget=(l=x[e]).elem,r=0;r<l.matches.length&&!t.isImmediatePropagationStopped();r++)u=l.matches[r],(m||!t.namespace&&!u.namespace||t.namespace_re&&t.namespace_re.test(u.namespace))&&(t.data=u.data,t.handleObj=u,(o=((y.event.special[u.origType]||{}).handle||u.handler).apply(l.elem,g))!==s&&(t.result=o,!1===o&&(t.preventDefault(),t.stopPropagation())));return v.postDispatch&&v.postDispatch.call(this,t),t.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var r,n,i,o=e.button,a=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=(r=t.target.ownerDocument||l).body,t.pageX=e.clientX+((n=r.documentElement)&&n.scrollLeft||i&&i.scrollLeft||0)-(n&&n.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||i&&i.scrollTop||0)-(n&&n.clientTop||i&&i.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?e.toElement:a),t.which||o===s||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[y.expando])return t;var e,r,n=t,i=y.event.fixHooks[t.type]||{},s=i.props?this.props.concat(i.props):this.props;for(t=y.Event(n),e=s.length;e;)t[r=s[--e]]=n[r];return t.target||(t.target=n.srcElement||l),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,i.filter?i.filter(t,n):t},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(t,e,r){y.isWindow(this)&&(this.onbeforeunload=r)},teardown:function(t,e){this.onbeforeunload===e&&(this.onbeforeunload=null)}}},simulate:function(t,e,r,n){var i=y.extend(new y.Event,r,{type:t,isSimulated:!0,originalEvent:{}});n?y.event.trigger(i,null,e):y.event.dispatch.call(e,i),i.isDefaultPrevented()&&r.preventDefault()}},y.event.handle=y.event.dispatch,y.removeEvent=l.removeEventListener?function(t,e,r){t.removeEventListener&&t.removeEventListener(e,r,!1)}:function(t,e,r){var n="on"+e;t.detachEvent&&(void 0===t[n]&&(t[n]=null),t.detachEvent(n,r))},y.Event=function(t,e){if(!(this instanceof y.Event))return new y.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||!1===t.returnValue||t.getPreventDefault&&t.getPreventDefault()?tt:K):this.type=t,e&&y.extend(this,e),this.timeStamp=t&&t.timeStamp||y.now(),this[y.expando]=!0},y.Event.prototype={preventDefault:function(){this.isDefaultPrevented=tt;var t=this.originalEvent;t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=tt;var t=this.originalEvent;t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=tt,this.stopPropagation()},isDefaultPrevented:K,isPropagationStopped:K,isImmediatePropagationStopped:K},y.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(t,e){y.event.special[t]={delegateType:e,bindType:e,handle:function(t){var r,n=this,i=t.relatedTarget,s=t.handleObj;return i&&(i===n||y.contains(n,i))||(t.type=s.origType,r=s.handler.apply(this,arguments),t.type=e),r}}})),y.fn.extend({on:function(t,e,r,n,i){var o,a;if("object"==typeof t){for(a in"string"!=typeof e&&(r=r||e,e=s),t)this.on(a,e,r,t[a],i);return this}if(null==r&&null==n?(n=e,r=e=s):null==n&&("string"==typeof e?(n=r,r=s):(n=r,r=e,e=s)),!1===n)n=K;else if(!n)return this;return 1===i&&(o=n,(n=function(t){return y().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=y.guid++)),this.each((function(){y.event.add(this,t,n,r,e)}))},off:function(t,e,r){var n,i;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,y(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(r=e,e=s),!1===r&&(r=K),this.each((function(){y.event.remove(this,t,r,e)}))},delegate:function(t,e,r,n){return this.on(e,t,r,n)},undelegate:function(t,e,r){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",r)},trigger:function(t,e){return this.each((function(){y.event.trigger(t,e,this)}))},triggerHandler:function(t,e){if(this[0])return y.event.trigger(t,e,this[0],!0)},toggle:function(t){var e=arguments,r=t.guid||y.guid++,n=0,i=function(r){var i=(y._data(this,"lastToggle"+t.guid)||0)%n;return y._data(this,"lastToggle"+t.guid,i+1),r.preventDefault(),e[i].apply(this,arguments)||!1};for(i.guid=r;n<e.length;)e[n++].guid=r;return this.click(i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),y.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(t,e){y.fn[e]=function(t,r){return null==r&&(r=t,t=null),arguments.length>0?this.on(e,null,t,r):this.trigger(e)},Y.test(e)&&(y.event.fixHooks[e]=y.event.keyHooks),Q.test(e)&&(y.event.fixHooks[e]=y.event.mouseHooks)})),function(t,e){var r,n,i,s,o,a,l,h,u,c,d,f,p,g,m,v,x,_,b="undefined",w=("sizcache"+Math.random()).replace(".",""),C=String,S=t.document,A=S.documentElement,k=0,T=0,j=[].pop,q=[].push,N=[].slice,E=[].indexOf||function(t){for(var e=0,r=this.length;e<r;e++)if(this[e]===t)return e;return-1},M=function(t,e){return t[w]=null==e||e,t},O=function(){var t={},e=[];return M((function(r,n){return e.push(r)>i.cacheLength&&delete t[e.shift()],t[r+" "]=n}),t)},I=O(),D=O(),P=O(),R="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",L=F.replace("w","w#"),H="\\["+R+"*("+F+")"+R+"*(?:([*^$|!~]?=)"+R+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+L+")|)|)"+R+"*\\]",V=":("+F+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+H+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)",z=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),G=new RegExp("^"+R+"*,"+R+"*"),U=new RegExp("^"+R+"*([\\x20\\t\\r\\n\\f>+~])"+R+"*"),W=new RegExp(V),$=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,X=/[\x20\t\r\n\f]*[+~]/,Y=/h\d/i,Q=/input|select|textarea|button/i,J=/\\(?!\\)/g,Z={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),NAME:new RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+V),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),needsContext:new RegExp("^"+R+"*[>+~]|"+B,"i")},K=function(t){var e=S.createElement("div");try{return t(e)}catch(v){return!1}finally{e=null}},tt=K((function(t){return t.appendChild(S.createComment("")),!t.getElementsByTagName("*").length})),et=K((function(t){return t.innerHTML="<a href='#'></a>",t.firstChild&&typeof t.firstChild.getAttribute!==b&&"#"===t.firstChild.getAttribute("href")})),rt=K((function(t){t.innerHTML="<select></select>";var e=typeof t.lastChild.getAttribute("multiple");return"boolean"!==e&&"string"!==e})),nt=K((function(t){return t.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!(!t.getElementsByClassName||!t.getElementsByClassName("e").length)&&(t.lastChild.className="e",2===t.getElementsByClassName("e").length)})),it=K((function(t){t.id=w+0,t.innerHTML="<a name='"+w+"'></a><div name='"+w+"'></div>",A.insertBefore(t,A.firstChild);var e=S.getElementsByName&&S.getElementsByName(w).length===2+S.getElementsByName(w+0).length;return n=!S.getElementById(w),A.removeChild(t),e}));try{N.call(A.childNodes,0)}catch(yt){N=function(t){for(var e,r=[];e=this[t];t++)r.push(e);return r}}function st(t,e,r,n){r=r||[];var i,s,l,h,u=(e=e||S).nodeType;if(!t||"string"!=typeof t)return r;if(1!==u&&9!==u)return[];if(!(l=o(e))&&!n&&(i=$.exec(t)))if(h=i[1]){if(9===u){if(!(s=e.getElementById(h))||!s.parentNode)return r;if(s.id===h)return r.push(s),r}else if(e.ownerDocument&&(s=e.ownerDocument.getElementById(h))&&a(e,s)&&s.id===h)return r.push(s),r}else{if(i[2])return q.apply(r,N.call(e.getElementsByTagName(t),0)),r;if((h=i[3])&&nt&&e.getElementsByClassName)return q.apply(r,N.call(e.getElementsByClassName(h),0)),r}return mt(t.replace(z,"$1"),e,r,n,l)}function ot(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function at(t){return function(e){var r=e.nodeName.toLowerCase();return("input"===r||"button"===r)&&e.type===t}}function lt(t){return M((function(e){return e=+e,M((function(r,n){for(var i,s=t([],r.length,e),o=s.length;o--;)r[i=s[o]]&&(r[i]=!(n[i]=r[i]))}))}))}function ht(t,e,r){if(t===e)return r;for(var n=t.nextSibling;n;){if(n===e)return-1;n=n.nextSibling}return 1}function ut(t,e){var r,n,s,o,a,l,h,u=D[w][t+" "];if(u)return e?0:u.slice(0);for(a=t,l=[],h=i.preFilter;a;){for(o in r&&!(n=G.exec(a))||(n&&(a=a.slice(n[0].length)||a),l.push(s=[])),r=!1,(n=U.exec(a))&&(s.push(r=new C(n.shift())),a=a.slice(r.length),r.type=n[0].replace(z," ")),i.filter)!(n=Z[o].exec(a))||h[o]&&!(n=h[o](n))||(s.push(r=new C(n.shift())),a=a.slice(r.length),r.type=o,r.matches=n);if(!r)break}return e?a.length:a?st.error(t):D(t,l).slice(0)}function ct(t,e,n){var i=e.dir,s=n&&"parentNode"===e.dir,o=T++;return e.first?function(e,r,n){for(;e=e[i];)if(s||1===e.nodeType)return t(e,r,n)}:function(e,n,a){if(a){for(;e=e[i];)if((s||1===e.nodeType)&&t(e,n,a))return e}else for(var l,h=k+" "+o+" ",u=h+r;e=e[i];)if(s||1===e.nodeType){if((l=e[w])===u)return e.sizset;if("string"==typeof l&&0===l.indexOf(h)){if(e.sizset)return e}else{if(e[w]=u,t(e,n,a))return e.sizset=!0,e;e.sizset=!1}}}}function dt(t){return t.length>1?function(e,r,n){for(var i=t.length;i--;)if(!t[i](e,r,n))return!1;return!0}:t[0]}function ft(t,e,r,n,i){for(var s,o=[],a=0,l=t.length,h=null!=e;a<l;a++)(s=t[a])&&(r&&!r(s,n,i)||(o.push(s),h&&e.push(a)));return o}function pt(t,e,r,n,i,s){return n&&!n[w]&&(n=pt(n)),i&&!i[w]&&(i=pt(i,s)),M((function(s,o,a,l){var h,u,c,d=[],f=[],p=o.length,g=s||function(t,e,r){for(var n=0,i=e.length;n<i;n++)st(t,e[n],r);return r}(e||"*",a.nodeType?[a]:a,[]),m=!t||!s&&e?g:ft(g,d,t,a,l),v=r?i||(s?t:p||n)?[]:o:m;if(r&&r(m,v,a,l),n)for(h=ft(v,f),n(h,[],a,l),u=h.length;u--;)(c=h[u])&&(v[f[u]]=!(m[f[u]]=c));if(s){if(i||t){if(i){for(h=[],u=v.length;u--;)(c=v[u])&&h.push(m[u]=c);i(null,v=[],h,l)}for(u=v.length;u--;)(c=v[u])&&(h=i?E.call(s,c):d[u])>-1&&(s[h]=!(o[h]=c))}}else v=ft(v===o?v.splice(p,v.length):v),i?i(null,o,v,l):q.apply(o,v)}))}function gt(t){for(var e,r,n,s=t.length,o=i.relative[t[0].type],a=o||i.relative[" "],l=o?1:0,h=ct((function(t){return t===e}),a,!0),u=ct((function(t){return E.call(e,t)>-1}),a,!0),d=[function(t,r,n){return!o&&(n||r!==c)||((e=r).nodeType?h(t,r,n):u(t,r,n))}];l<s;l++)if(r=i.relative[t[l].type])d=[ct(dt(d),r)];else{if((r=i.filter[t[l].type].apply(null,t[l].matches))[w]){for(n=++l;n<s&&!i.relative[t[n].type];n++);return pt(l>1&&dt(d),l>1&&t.slice(0,l-1).join("").replace(z,"$1"),r,l<n&>(t.slice(l,n)),n<s&>(t=t.slice(n)),n<s&&t.join(""))}d.push(r)}return dt(d)}function mt(t,e,r,n,s){var o,a,h,u,c,d=ut(t);if(!n&&1===d.length){if((a=d[0]=d[0].slice(0)).length>2&&"ID"===(h=a[0]).type&&9===e.nodeType&&!s&&i.relative[a[1].type]){if(!(e=i.find.ID(h.matches[0].replace(J,""),e,s)[0]))return r;t=t.slice(a.shift().length)}for(o=Z.POS.test(t)?-1:a.length-1;o>=0&&!i.relative[u=(h=a[o]).type];o--)if((c=i.find[u])&&(n=c(h.matches[0].replace(J,""),X.test(a[0].type)&&e.parentNode||e,s))){if(a.splice(o,1),!(t=n.length&&a.join("")))return q.apply(r,N.call(n,0)),r;break}}return l(t,d)(n,e,s,r,X.test(t)),r}function vt(){}st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){return st(e,null,null,[t]).length>0},s=st.getText=function(t){var e,r="",n=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)r+=s(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[n];n++)r+=s(e);return r},o=st.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},a=st.contains=A.contains?function(t,e){var r=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!!(n&&1===n.nodeType&&r.contains&&r.contains(n))}:A.compareDocumentPosition?function(t,e){return e&&!!(16&t.compareDocumentPosition(e))}:function(t,e){for(;e=e.parentNode;)if(e===t)return!0;return!1},st.attr=function(t,e){var r,n=o(t);return n||(e=e.toLowerCase()),(r=i.attrHandle[e])?r(t):n||rt?t.getAttribute(e):(r=t.getAttributeNode(e))?"boolean"==typeof t[e]?t[e]?e:null:r.specified?r.value:null:null},i=st.selectors={cacheLength:50,createPseudo:M,match:Z,attrHandle:et?{}:{href:function(t){return t.getAttribute("href",2)},type:function(t){return t.getAttribute("type")}},find:{ID:n?function(t,e,r){if(typeof e.getElementById!==b&&!r){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}}:function(t,e,r){if(typeof e.getElementById!==b&&!r){var n=e.getElementById(t);return n?n.id===t||typeof n.getAttributeNode!==b&&n.getAttributeNode("id").value===t?[n]:void 0:[]}},TAG:tt?function(t,e){if(typeof e.getElementsByTagName!==b)return e.getElementsByTagName(t)}:function(t,e){var r=e.getElementsByTagName(t);if("*"===t){for(var n,i=[],s=0;n=r[s];s++)1===n.nodeType&&i.push(n);return i}return r},NAME:it&&function(t,e){if(typeof e.getElementsByName!==b)return e.getElementsByName(name)},CLASS:nt&&function(t,e,r){if(typeof e.getElementsByClassName!==b&&!r)return e.getElementsByClassName(t)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(J,""),t[3]=(t[4]||t[5]||"").replace(J,""),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1]?(t[2]||st.error(t[0]),t[3]=+(t[3]?t[4]+(t[5]||1):2*("even"===t[2]||"odd"===t[2])),t[4]=+(t[6]+t[7]||"odd"===t[2])):t[2]&&st.error(t[0]),t},PSEUDO:function(t){var e,r;return Z.CHILD.test(t[0])?null:(t[3]?t[2]=t[3]:(e=t[4])&&(W.test(e)&&(r=ut(e,!0))&&(r=e.indexOf(")",e.length-r)-e.length)&&(e=e.slice(0,r),t[0]=t[0].slice(0,r)),t[2]=e),t.slice(0,3))}},filter:{ID:n?function(t){return t=t.replace(J,""),function(e){return e.getAttribute("id")===t}}:function(t){return t=t.replace(J,""),function(e){var r=typeof e.getAttributeNode!==b&&e.getAttributeNode("id");return r&&r.value===t}},TAG:function(t){return"*"===t?function(){return!0}:(t=t.replace(J,"").toLowerCase(),function(e){return e.nodeName&&e.nodeName.toLowerCase()===t})},CLASS:function(t){var e=I[w][t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&I(t,(function(t){return e.test(t.className||typeof t.getAttribute!==b&&t.getAttribute("class")||"")}))},ATTR:function(t,e,r){return function(n,i){var s=st.attr(n,t);return null==s?"!="===e:!e||(s+="","="===e?s===r:"!="===e?s!==r:"^="===e?r&&0===s.indexOf(r):"*="===e?r&&s.indexOf(r)>-1:"$="===e?r&&s.substr(s.length-r.length)===r:"~="===e?(" "+s+" ").indexOf(r)>-1:"|="===e&&(s===r||s.substr(0,r.length+1)===r+"-"))}},CHILD:function(t,e,r,n){return"nth"===t?function(t){var e,i,s=t.parentNode;if(1===r&&0===n)return!0;if(s)for(i=0,e=s.firstChild;e&&(1!==e.nodeType||(i++,t!==e));e=e.nextSibling);return(i-=n)===r||i%r==0&&i/r>=0}:function(e){var r=e;switch(t){case"only":case"first":for(;r=r.previousSibling;)if(1===r.nodeType)return!1;if("first"===t)return!0;r=e;case"last":for(;r=r.nextSibling;)if(1===r.nodeType)return!1;return!0}}},PSEUDO:function(t,e){var r,n=i.pseudos[t]||i.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return n[w]?n(e):n.length>1?(r=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?M((function(t,r){for(var i,s=n(t,e),o=s.length;o--;)t[i=E.call(t,s[o])]=!(r[i]=s[o])})):function(t){return n(t,0,r)}):n}},pseudos:{not:M((function(t){var e=[],r=[],n=l(t.replace(z,"$1"));return n[w]?M((function(t,e,r,i){for(var s,o=n(t,null,i,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))})):function(t,i,s){return e[0]=t,n(e,null,s,r),!r.pop()}})),has:M((function(t){return function(e){return st(t,e).length>0}})),contains:M((function(t){return function(e){return(e.textContent||e.innerText||s(e)).indexOf(t)>-1}})),enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return!0===t.selected},parent:function(t){return!i.pseudos.empty(t)},empty:function(t){var e;for(t=t.firstChild;t;){if(t.nodeName>"@"||3===(e=t.nodeType)||4===e)return!1;t=t.nextSibling}return!0},header:function(t){return Y.test(t.nodeName)},text:function(t){var e,r;return"input"===t.nodeName.toLowerCase()&&"text"===(e=t.type)&&(null==(r=t.getAttribute("type"))||r.toLowerCase()===e)},radio:ot("radio"),checkbox:ot("checkbox"),file:ot("file"),password:ot("password"),image:ot("image"),submit:at("submit"),reset:at("reset"),button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},input:function(t){return Q.test(t.nodeName)},focus:function(t){var e=t.ownerDocument;return t===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},active:function(t){return t===t.ownerDocument.activeElement},first:lt((function(){return[0]})),last:lt((function(t,e){return[e-1]})),eq:lt((function(t,e,r){return[r<0?r+e:r]})),even:lt((function(t,e){for(var r=0;r<e;r+=2)t.push(r);return t})),odd:lt((function(t,e){for(var r=1;r<e;r+=2)t.push(r);return t})),lt:lt((function(t,e,r){for(var n=r<0?r+e:r;--n>=0;)t.push(n);return t})),gt:lt((function(t,e,r){for(var n=r<0?r+e:r;++n<e;)t.push(n);return t}))}},[0,0].sort(h=A.compareDocumentPosition?function(t,e){return t===e?(u=!0,0):(t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e):t.compareDocumentPosition)?-1:1}:function(t,e){if(t===e)return u=!0,0;if(t.sourceIndex&&e.sourceIndex)return t.sourceIndex-e.sourceIndex;var r,n,i=[],s=[],o=t.parentNode,a=e.parentNode,l=o;if(o===a)return ht(t,e);if(!o)return-1;if(!a)return 1;for(;l;)i.unshift(l),l=l.parentNode;for(l=a;l;)s.unshift(l),l=l.parentNode;r=i.length,n=s.length;for(var h=0;h<r&&h<n;h++)if(i[h]!==s[h])return ht(i[h],s[h]);return h===r?ht(t,s[h],-1):ht(i[h],e,1)}),d=!u,st.uniqueSort=function(t){var e,r=[],n=1,i=0;if(u=d,t.sort(h),u){for(;e=t[n];n++)e===t[n-1]&&(i=r.push(n));for(;i--;)t.splice(r[i],1)}return t},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},l=st.compile=function(t,e){var n,s=[],o=[],a=P[w][t+" "];if(!a){for(e||(e=ut(t)),n=e.length;n--;)(a=gt(e[n]))[w]?s.push(a):o.push(a);a=P(t,function(t,e){var n=e.length>0,s=t.length>0,o=function(a,l,h,u,d){var f,p,g,m=[],v=0,y="0",x=a&&[],_=null!=d,b=c,w=a||s&&i.find.TAG("*",d&&l.parentNode||l),C=k+=null==b?1:Math.E;for(_&&(c=l!==S&&l,r=o.el);null!=(f=w[y]);y++){if(s&&f){for(p=0;g=t[p];p++)if(g(f,l,h)){u.push(f);break}_&&(k=C,r=++o.el)}n&&((f=!g&&f)&&v--,a&&x.push(f))}if(v+=y,n&&y!==v){for(p=0;g=e[p];p++)g(x,m,l,h);if(a){if(v>0)for(;y--;)x[y]||m[y]||(m[y]=j.call(u));m=ft(m)}q.apply(u,m),_&&!a&&m.length>0&&v+e.length>1&&st.uniqueSort(u)}return _&&(k=C,c=b),x};return o.el=0,n?M(o):o}(o,s))}return a},S.querySelectorAll&&(p=mt,g=/'|\\/g,m=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,v=[":focus"],x=[":active"],_=A.matchesSelector||A.mozMatchesSelector||A.webkitMatchesSelector||A.oMatchesSelector||A.msMatchesSelector,K((function(t){t.innerHTML="<select><option selected=''></option></select>",t.querySelectorAll("[selected]").length||v.push("\\["+R+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),t.querySelectorAll(":checked").length||v.push(":checked")})),K((function(t){t.innerHTML="<p test=''></p>",t.querySelectorAll("[test^='']").length&&v.push("[*^$]="+R+"*(?:\"\"|'')"),t.innerHTML="<input type='hidden'/>",t.querySelectorAll(":enabled").length||v.push(":enabled",":disabled")})),v=new RegExp(v.join("|")),mt=function(t,e,r,n,i){if(!n&&!i&&!v.test(t)){var s,o,a=!0,l=w,h=e,u=9===e.nodeType&&t;if(1===e.nodeType&&"object"!==e.nodeName.toLowerCase()){for(s=ut(t),(a=e.getAttribute("id"))?l=a.replace(g,"\\$&"):e.setAttribute("id",l),l="[id='"+l+"'] ",o=s.length;o--;)s[o]=l+s[o].join("");h=X.test(t)&&e.parentNode||e,u=s.join(",")}if(u)try{return q.apply(r,N.call(h.querySelectorAll(u),0)),r}catch(c){}finally{a||e.removeAttribute("id")}}return p(t,e,r,n,i)},_&&(K((function(t){f=_.call(t,"div");try{_.call(t,"[test!='']:sizzle"),x.push("!=",V)}catch(e){}})),x=new RegExp(x.join("|")),st.matchesSelector=function(t,e){if(e=e.replace(m,"='$1']"),!o(t)&&!x.test(e)&&!v.test(e))try{var r=_.call(t,e);if(r||f||t.document&&11!==t.document.nodeType)return r}catch(n){}return st(e,null,null,[t]).length>0})),i.pseudos.nth=i.pseudos.eq,i.filters=vt.prototype=i.pseudos,i.setFilters=new vt,st.attr=y.attr,y.find=st,y.expr=st.selectors,y.expr[":"]=y.expr.pseudos,y.unique=st.uniqueSort,y.text=st.getText,y.isXMLDoc=st.isXML,y.contains=st.contains}(i);var et=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,nt=/^.[^:#\[\.,]*$/,it=y.expr.match.needsContext,st={children:!0,contents:!0,next:!0,prev:!0};function ot(t){return!t||!t.parentNode||11===t.parentNode.nodeType}function at(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function lt(t,e,r){if(y.isFunction(e=e||0))return y.grep(t,(function(t,n){return!!e.call(t,n,t)===r}));if(e.nodeType)return y.grep(t,(function(t,n){return t===e===r}));if("string"==typeof e){var n=y.grep(t,(function(t){return 1===t.nodeType}));if(nt.test(e))return y.filter(e,n,!r);e=y.filter(e,n)}return y.grep(t,(function(t,n){return y.inArray(t,e)>=0===r}))}function ht(t){var e=dt.split("|"),r=t.createDocumentFragment();if(r.createElement)for(;e.length;)r.createElement(e.pop());return r}y.fn.extend({find:function(t){var e,r,n,i,s,o,a=this;if("string"!=typeof t)return y(t).filter((function(){for(e=0,r=a.length;e<r;e++)if(y.contains(a[e],this))return!0}));for(o=this.pushStack("","find",t),e=0,r=this.length;e<r;e++)if(n=o.length,y.find(t,this[e],o),e>0)for(i=n;i<o.length;i++)for(s=0;s<n;s++)if(o[s]===o[i]){o.splice(i--,1);break}return o},has:function(t){var e,r=y(t,this),n=r.length;return this.filter((function(){for(e=0;e<n;e++)if(y.contains(this,r[e]))return!0}))},not:function(t){return this.pushStack(lt(this,t,!1),"not",t)},filter:function(t){return this.pushStack(lt(this,t,!0),"filter",t)},is:function(t){return!!t&&("string"==typeof t?it.test(t)?y(t,this.context).index(this[0])>=0:y.filter(t,this).length>0:this.filter(t).length>0)},closest:function(t,e){for(var r,n=0,i=this.length,s=[],o=it.test(t)||"string"!=typeof t?y(t,e||this.context):0;n<i;n++)for(r=this[n];r&&r.ownerDocument&&r!==e&&11!==r.nodeType;){if(o?o.index(r)>-1:y.find.matchesSelector(r,t)){s.push(r);break}r=r.parentNode}return s=s.length>1?y.unique(s):s,this.pushStack(s,"closest",t)},index:function(t){return t?"string"==typeof t?y.inArray(this[0],y(t)):y.inArray(t.jqx?t[0]:t,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(t,e){var r="string"==typeof t?y(t,e):y.makeArray(t&&t.nodeType?[t]:t),n=y.merge(this.get(),r);return this.pushStack(ot(r[0])||ot(n[0])?n:y.unique(n))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),y.fn.andSelf=y.fn.addBack,y.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return y.dir(t,"parentNode")},parentsUntil:function(t,e,r){return y.dir(t,"parentNode",r)},next:function(t){return at(t,"nextSibling")},prev:function(t){return at(t,"previousSibling")},nextAll:function(t){return y.dir(t,"nextSibling")},prevAll:function(t){return y.dir(t,"previousSibling")},nextUntil:function(t,e,r){return y.dir(t,"nextSibling",r)},prevUntil:function(t,e,r){return y.dir(t,"previousSibling",r)},siblings:function(t){return y.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return y.sibling(t.firstChild)},contents:function(t){return y.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:y.merge([],t.childNodes)}},(function(t,e){y.fn[t]=function(r,n){var i=y.map(this,e,r);return et.test(t)||(n=r),n&&"string"==typeof n&&(i=y.filter(n,i)),i=this.length>1&&!st[t]?y.unique(i):i,this.length>1&&rt.test(t)&&(i=i.reverse()),this.pushStack(i,t,f.call(arguments).join(","))}})),y.extend({filter:function(t,e,r){return r&&(t=":not("+t+")"),1===e.length?y.find.matchesSelector(e[0],t)?[e[0]]:[]:y.find.matches(t,e)},dir:function(t,e,r){for(var n=[],i=t[e];i&&9!==i.nodeType&&(r===s||1!==i.nodeType||!y(i).is(r));)1===i.nodeType&&n.push(i),i=i[e];return n},sibling:function(t,e){for(var r=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&r.push(t);return r}});var ut,ct,dt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ft=/ JQXLite\d+="(?:null|\d+)"/g,pt=/^\s+/,gt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,mt=/<([\w:]+)/,vt=/<tbody/i,yt=/<|&#?\w+;/,xt=/<(?:script|style|link)/i,_t=/<(?:script|object|embed|option|style)/i,bt=new RegExp("<(?:"+dt+")[\\s/>]","i"),wt=/^(?:checkbox|radio)$/,Ct=/checked\s*(?:[^=]|=\s*.checked.)/i,St=/\/(java|ecma)script/i,At=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,kt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Tt=ht(l),jt=Tt.appendChild(l.createElement("div"));function qt(t,e){return t.getElementsByTagName(e)[0]||t.appendChild(t.ownerDocument.createElement(e))}function Nt(t,e){if(1===e.nodeType&&y.hasData(t)){var r,n,i,s=y._data(t),o=y._data(e,s),a=s.events;if(a)for(r in delete o.handle,o.events={},a)for(n=0,i=a[r].length;n<i;n++)y.event.add(e,r,a[r][n]);o.data&&(o.data=y.extend({},o.data))}}function Et(t,e){var r;1===e.nodeType&&(e.clearAttributes&&e.clearAttributes(),e.mergeAttributes&&e.mergeAttributes(t),"object"===(r=e.nodeName.toLowerCase())?(e.parentNode&&(e.outerHTML=t.outerHTML),y.support.html5Clone&&t.innerHTML&&!y.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===r&&wt.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===r?e.selected=t.defaultSelected:"input"===r||"textarea"===r?e.defaultValue=t.defaultValue:"script"===r&&e.text!==t.text&&(e.text=t.text),e.removeAttribute(y.expando))}function Mt(t){return void 0!==t.getElementsByTagName?t.getElementsByTagName("*"):void 0!==t.querySelectorAll?t.querySelectorAll("*"):[]}function Ot(t){wt.test(t.type)&&(t.defaultChecked=t.checked)}kt.optgroup=kt.option,kt.tbody=kt.tfoot=kt.colgroup=kt.caption=kt.thead,kt.th=kt.td,y.support.htmlSerialize||(kt._default=[1,"X<div>","</div>"]),y.fn.extend({text:function(t){return y.access(this,(function(t){return t===s?y.text(this):this.empty().append((this[0]&&this[0].ownerDocument||l).createTextNode(t))}),null,t,arguments.length)},wrapAll:function(t){if(y.isFunction(t))return this.each((function(e){y(this).wrapAll(t.call(this,e))}));if(this[0]){var e=y(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t})).append(this)}return this},wrapInner:function(t){return y.isFunction(t)?this.each((function(e){y(this).wrapInner(t.call(this,e))})):this.each((function(){var e=y(this),r=e.contents();r.length?r.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y.isFunction(t);return this.each((function(r){y(this).wrapAll(e?t.call(this,r):t)}))},unwrap:function(){return this.parent().each((function(){y.nodeName(this,"body")||y(this).replaceWith(this.childNodes)})).end()},append:function(){return this.domManip(arguments,!0,(function(t){1!==this.nodeType&&11!==this.nodeType||this.appendChild(t)}))},prepend:function(){return this.domManip(arguments,!0,(function(t){1!==this.nodeType&&11!==this.nodeType||this.insertBefore(t,this.firstChild)}))},before:function(){if(!ot(this[0]))return this.domManip(arguments,!1,(function(t){this.parentNode.insertBefore(t,this)}));if(arguments.length){var t=y.clean(arguments);return this.pushStack(y.merge(t,this),"before",this.selector)}},after:function(){if(!ot(this[0]))return this.domManip(arguments,!1,(function(t){this.parentNode.insertBefore(t,this.nextSibling)}));if(arguments.length){var t=y.clean(arguments);return this.pushStack(y.merge(this,t),"after",this.selector)}},remove:function(t,e){for(var r,n=0;null!=(r=this[n]);n++)t&&!y.filter(t,[r]).length||(e||1!==r.nodeType||(y.cleanData(r.getElementsByTagName("*")),y.cleanData([r])),r.parentNode&&r.parentNode.removeChild(r));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)for(1===t.nodeType&&y.cleanData(t.getElementsByTagName("*"));t.firstChild;)t.removeChild(t.firstChild);return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return y.clone(this,t,e)}))},html:function(t){return y.access(this,(function(t){var e=this[0]||{},r=0,n=this.length;if(t===s)return 1===e.nodeType?e.innerHTML.replace(ft,""):s;if("string"==typeof t&&!xt.test(t)&&(y.support.htmlSerialize||!bt.test(t))&&(y.support.leadingWhitespace||!pt.test(t))&&!kt[(mt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(gt,"<$1></$2>");try{for(;r<n;r++)1===(e=this[r]||{}).nodeType&&(y.cleanData(e.getElementsByTagName("*")),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(t){return ot(this[0])?this.length?this.pushStack(y(y.isFunction(t)?t():t),"replaceWith",t):this:y.isFunction(t)?this.each((function(e){var r=y(this),n=r.html();r.replaceWith(t.call(this,e,n))})):("string"!=typeof t&&(t=y(t).detach()),this.each((function(){var e=this.nextSibling,r=this.parentNode;y(this).remove(),e?y(e).before(t):y(r).append(t)})))},detach:function(t){return this.remove(t,!0)},domManip:function(t,e,r){var n,i,o,a,l=0,h=(t=[].concat.apply([],t))[0],u=[],c=this.length;if(!y.support.checkClone&&c>1&&"string"==typeof h&&Ct.test(h))return this.each((function(){y(this).domManip(t,e,r)}));if(y.isFunction(h))return this.each((function(n){var i=y(this);t[0]=h.call(this,n,e?i.html():s),i.domManip(t,e,r)}));if(this[0]){if(i=(o=(n=y.buildFragment(t,this,u)).fragment).firstChild,1===o.childNodes.length&&(o=i),i)for(e=e&&y.nodeName(i,"tr"),a=n.cacheable||c-1;l<c;l++)r.call(e&&y.nodeName(this[l],"table")?qt(this[l],"tbody"):this[l],l===a?o:y.clone(o,!0,!0));o=i=null,u.length&&y.each(u,(function(t,e){e.src?y.ajax?y.ajax({url:e.src,type:"GET",dataType:"script",async:!1,global:!1,throws:!0}):y.error("no ajax"):y.globalEval((e.text||e.textContent||e.innerHTML||"").replace(At,"")),e.parentNode&&e.parentNode.removeChild(e)}))}return this}}),y.buildFragment=function(t,e,r){var n,i,o,a=t[0];return e=(e=!(e=e||l).nodeType&&e[0]||e).ownerDocument||e,!(1===t.length&&"string"==typeof a&&a.length<512&&e===l&&"<"===a.charAt(0))||_t.test(a)||!y.support.checkClone&&Ct.test(a)||!y.support.html5Clone&&bt.test(a)||(i=!0,o=(n=y.fragments[a])!==s),n||(n=e.createDocumentFragment(),y.clean(t,e,n,r),i&&(y.fragments[a]=o&&n)),{fragment:n,cacheable:i}},y.fragments={},y.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){y.fn[t]=function(r){var n,i=0,s=[],o=y(r),a=o.length,l=1===this.length&&this[0].parentNode;if((null==l||l&&11===l.nodeType&&1===l.childNodes.length)&&1===a)return o[e](this[0]),this;for(;i<a;i++)n=(i>0?this.clone(!0):this).get(),y(o[i])[e](n),s=s.concat(n);return this.pushStack(s,t,o.selector)}})),y.extend({clone:function(t,e,r){var n,i,s,o;if(y.support.html5Clone||y.isXMLDoc(t)||!bt.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(jt.innerHTML=t.outerHTML,jt.removeChild(o=jt.firstChild)),!(y.support.noCloneEvent&&y.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||y.isXMLDoc(t)))for(Et(t,o),n=Mt(t),i=Mt(o),s=0;n[s];++s)i[s]&&Et(n[s],i[s]);if(e&&(Nt(t,o),r))for(n=Mt(t),i=Mt(o),s=0;n[s];++s)Nt(n[s],i[s]);return n=i=null,o},clean:function(t,e,r,n){var i,s,o,a,h,u,c,d,f,p,g,m=e===l&&Tt,v=[];for(e&&void 0!==e.createDocumentFragment||(e=l),i=0;null!=(o=t[i]);i++)if("number"==typeof o&&(o+=""),o){if("string"==typeof o)if(yt.test(o)){for(m=m||ht(e),c=e.createElement("div"),m.appendChild(c),o=o.replace(gt,"<$1></$2>"),a=(mt.exec(o)||["",""])[1].toLowerCase(),u=(h=kt[a]||kt._default)[0],c.innerHTML=h[1]+o+h[2];u--;)c=c.lastChild;if(!y.support.tbody)for(d=vt.test(o),s=(f="table"!==a||d?"<table>"!==h[1]||d?[]:c.childNodes:c.firstChild&&c.firstChild.childNodes).length-1;s>=0;--s)y.nodeName(f[s],"tbody")&&!f[s].childNodes.length&&f[s].parentNode.removeChild(f[s]);!y.support.leadingWhitespace&&pt.test(o)&&c.insertBefore(e.createTextNode(pt.exec(o)[0]),c.firstChild),o=c.childNodes,c.parentNode.removeChild(c)}else o=e.createTextNode(o);o.nodeType?v.push(o):y.merge(v,o)}if(c&&(o=c=m=null),!y.support.appendChecked)for(i=0;null!=(o=v[i]);i++)y.nodeName(o,"input")?Ot(o):void 0!==o.getElementsByTagName&&y.grep(o.getElementsByTagName("input"),Ot);if(r)for(p=function(t){if(!t.type||St.test(t.type))return n?n.push(t.parentNode?t.parentNode.removeChild(t):t):r.appendChild(t)},i=0;null!=(o=v[i]);i++)y.nodeName(o,"script")&&p(o)||(r.appendChild(o),void 0!==o.getElementsByTagName&&(g=y.grep(y.merge([],o.getElementsByTagName("script")),p),v.splice.apply(v,[i+1,0].concat(g)),i+=g.length));return v},cleanData:function(t,e){for(var r,n,i,s,o=0,a=y.expando,l=y.cache,h=y.support.deleteExpando,u=y.event.special;null!=(i=t[o]);o++)if((e||y.acceptData(i))&&(r=(n=i[a])&&l[n])){if(r.events)for(s in r.events)u[s]?y.event.remove(i,s):y.removeEvent(i,s,r.handle);l[n]&&(delete l[n],h?delete i[a]:i.removeAttribute?i.removeAttribute(a):i[a]=null,y.deletedIds.push(n))}}}),y.uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},ct={},(ut=y.uaMatch(h.userAgent)).browser&&(ct[ut.browser]=!0,ct.version=ut.version),ct.chrome?ct.webkit=!0:ct.webkit&&(ct.safari=!0),y.browser=ct,y.sub=function(){function t(e,r){return new t.fn.init(e,r)}y.extend(!0,t,this),t.superclass=this,(t.fn=t.prototype=this()).constructor=t,t.sub=this.sub,(t.fn.init=function(r,n){return n&&n instanceof y&&!(n instanceof t)&&(n=t(n)),y.fn.init.call(this,r,n,e)}).prototype=t.fn;var e=t(l);return t};var It,Dt,Pt,Rt=/alpha\([^)]*\)/i,Ft=/opacity=([^)]*)/,Lt=/^(top|right|bottom|left)$/,Ht=/^(none|table(?!-c[ea]).+)/,Vt=/^margin/,Bt=new RegExp("^("+x+")(.*)$","i"),zt=new RegExp("^("+x+")(?!px)[a-z%]+$","i"),Gt=new RegExp("^([-+])=("+x+")","i"),Ut={BODY:"block"},Wt={position:"absolute",visibility:"hidden",display:"block"},$t={letterSpacing:0,fontWeight:400},Xt=["Top","Right","Bottom","Left"],Yt=["Webkit","O","Moz","ms"],Qt=y.fn.toggle;function Jt(t,e){if(e in t)return e;for(var r=e.charAt(0).toUpperCase()+e.slice(1),n=e,i=Yt.length;i--;)if((e=Yt[i]+r)in t)return e;return n}function Zt(t,e){return"none"===y.css(t=e||t,"display")||!y.contains(t.ownerDocument,t)}function Kt(t,e){for(var r,n,i=[],s=0,o=t.length;s<o;s++)(r=t[s]).style&&(i[s]=y._data(r,"olddisplay"),e?(i[s]||"none"!==r.style.display||(r.style.display=""),""===r.style.display&&Zt(r)&&(i[s]=y._data(r,"olddisplay",ne(r.nodeName)))):(n=It(r,"display"),i[s]||"none"===n||y._data(r,"olddisplay",n)));for(s=0;s<o;s++)(r=t[s]).style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?i[s]||"":"none"));return t}function te(t,e,r){var n=Bt.exec(e);return n?Math.max(0,n[1]-(r||0))+(n[2]||"px"):e}function ee(t,e,r,n){for(var i=r===(n?"border":"content")?4:"width"===e?1:0,s=0;i<4;i+=2)"margin"===r&&(s+=y.css(t,r+Xt[i],!0)),n?("content"===r&&(s-=parseFloat(It(t,"padding"+Xt[i]))||0),"margin"!==r&&(s-=parseFloat(It(t,"border"+Xt[i]+"Width"))||0)):(s+=parseFloat(It(t,"padding"+Xt[i]))||0,"padding"!==r&&(s+=parseFloat(It(t,"border"+Xt[i]+"Width"))||0));return s}function re(t,e,r){var n="width"===e?t.offsetWidth:t.offsetHeight,i=!0,s=y.support.boxSizing&&"border-box"===y.css(t,"boxSizing");if(n<=0||null==n){if(((n=It(t,e))<0||null==n)&&(n=t.style[e]),zt.test(n))return n;i=s&&(y.support.boxSizingReliable||n===t.style[e]),n=parseFloat(n)||0}return n+ee(t,e,r||(s?"border":"content"),i)+"px"}function ne(t){if(Ut[t])return Ut[t];var e=y("<"+t+">").appendTo(l.body),r=e.css("display");return e.remove(),"none"!==r&&""!==r||(Dt=l.body.appendChild(Dt||y.extend(l.createElement("iframe"),{frameBorder:0,width:0,height:0})),Pt&&Dt.createElement||((Pt=(Dt.contentWindow||Dt.contentDocument).document).write("<!doctype html><html><body>"),Pt.close()),e=Pt.body.appendChild(Pt.createElement(t)),r=It(e,"display"),l.body.removeChild(Dt)),Ut[t]=r,r}y.fn.extend({css:function(t,e){return y.access(this,(function(t,e,r){return r!==s?y.style(t,e,r):y.css(t,e)}),t,e,arguments.length>1)},show:function(){return Kt(this,!0)},hide:function(){return Kt(this)},toggle:function(t,e){var r="boolean"==typeof t;return y.isFunction(t)&&y.isFunction(e)?Qt.apply(this,arguments):this.each((function(){(r?t:Zt(this))?y(this).show():y(this).hide()}))}}),y.extend({cssHooks:{opacity:{get:function(t,e){if(e){var r=It(t,"opacity");return""===r?"1":r}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:y.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,r,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,l=y.camelCase(e),h=t.style;if(e=y.cssProps[l]||(y.cssProps[l]=Jt(h,l)),a=y.cssHooks[e]||y.cssHooks[l],r===s)return a&&"get"in a&&(i=a.get(t,!1,n))!==s?i:h[e];if("string"==(o=typeof r)&&(i=Gt.exec(r))&&(r=(i[1]+1)*i[2]+parseFloat(y.css(t,e)),o="number"),!(null==r||"number"===o&&isNaN(r)||("number"!==o||y.cssNumber[l]||(r+="px"),a&&"set"in a&&(r=a.set(t,r,n))===s)))try{h[e]=r}catch(u){}}},css:function(t,e,r,n){var i,o,a,l=y.camelCase(e);return e=y.cssProps[l]||(y.cssProps[l]=Jt(t.style,l)),(a=y.cssHooks[e]||y.cssHooks[l])&&"get"in a&&(i=a.get(t,!0,n)),i===s&&(i=It(t,e)),"normal"===i&&e in $t&&(i=$t[e]),r||n!==s?(o=parseFloat(i),r||y.isNumeric(o)?o||0:i):i},swap:function(t,e,r){var n,i,s={};for(i in e)s[i]=t.style[i],t.style[i]=e[i];for(i in n=r.call(t),e)t.style[i]=s[i];return n}}),i.getComputedStyle?It=function(t,e){var r,n,s,o,a=i.getComputedStyle(t,null),l=t.style;return a&&(""!==(r=a.getPropertyValue(e)||a[e])||y.contains(t.ownerDocument,t)||(r=y.style(t,e)),zt.test(r)&&Vt.test(e)&&(n=l.width,s=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=r,r=a.width,l.width=n,l.minWidth=s,l.maxWidth=o)),r}:l.documentElement.currentStyle&&(It=function(t,e){var r,n,i=t.currentStyle&&t.currentStyle[e],s=t.style;return null==i&&s&&s[e]&&(i=s[e]),zt.test(i)&&!Lt.test(e)&&(r=s.left,(n=t.runtimeStyle&&t.runtimeStyle.left)&&(t.runtimeStyle.left=t.currentStyle.left),s.left="fontSize"===e?"1em":i,i=s.pixelLeft+"px",s.left=r,n&&(t.runtimeStyle.left=n)),""===i?"auto":i}),y.each(["height","width"],(function(t,e){y.cssHooks[e]={get:function(t,r,n){if(r)return 0===t.offsetWidth&&Ht.test(It(t,"display"))?y.swap(t,Wt,(function(){return re(t,e,n)})):re(t,e,n)},set:function(t,r,n){return te(0,r,n?ee(t,e,n,y.support.boxSizing&&"border-box"===y.css(t,"boxSizing")):0)}}})),y.support.opacity||(y.cssHooks.opacity={get:function(t,e){return Ft.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var r=t.style,n=t.currentStyle,i=y.isNumeric(e)?"alpha(opacity="+100*e+")":"",s=n&&n.filter||r.filter||"";r.zoom=1,e>=1&&""===y.trim(s.replace(Rt,""))&&r.removeAttribute&&(r.removeAttribute("filter"),n&&!n.filter)||(r.filter=Rt.test(s)?s.replace(Rt,i):s+" "+i)}}),y((function(){y.support.reliableMarginRight||(y.cssHooks.marginRight={get:function(t,e){return y.swap(t,{display:"inline-block"},(function(){if(e)return It(t,"marginRight")}))}}),!y.support.pixelPosition&&y.fn.position&&y.each(["top","left"],(function(t,e){y.cssHooks[e]={get:function(t,r){if(r){var n=It(t,e);return zt.test(n)?y(t).position()[e]+"px":n}}}}))})),y.expr&&y.expr.filters&&(y.expr.filters.hidden=function(t){return 0===t.offsetWidth&&0===t.offsetHeight||!y.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||It(t,"display"))},y.expr.filters.visible=function(t){return!y.expr.filters.hidden(t)}),y.each({margin:"",padding:"",border:"Width"},(function(t,e){y.cssHooks[t+e]={expand:function(r){var n,i="string"==typeof r?r.split(" "):[r],s={};for(n=0;n<4;n++)s[t+Xt[n]+e]=i[n]||i[n-2]||i[0];return s}},Vt.test(t)||(y.cssHooks[t+e].set=te)}));var ie=/%20/g,se=/\[\]$/,oe=/\r?\n/g,ae=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,le=/^(?:select|textarea)/i;function he(t,e,r,n){var i;if(y.isArray(e))y.each(e,(function(e,i){r||se.test(t)?n(t,i):he(t+"["+("object"==typeof i?e:"")+"]",i,r,n)}));else if(r||"object"!==y.type(e))n(t,e);else for(i in e)he(t+"["+i+"]",e[i],r,n)}y.fn.extend({serialize:function(){return y.param(this.serializeArray())},serializeArray:function(){return this.map((function(){return this.elements?y.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||le.test(this.nodeName)||ae.test(this.type))})).map((function(t,e){var r=y(this).val();return null==r?null:y.isArray(r)?y.map(r,(function(t,r){return{name:e.name,value:t.replace(oe,"\r\n")}})):{name:e.name,value:r.replace(oe,"\r\n")}})).get()}}),y.param=function(t,e){var r,n=[],i=function(t,e){e=y.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(e===s&&(e=y.ajaxSettings&&y.ajaxSettings.traditional),y.isArray(t)||t.jqx&&!y.isPlainObject(t))y.each(t,(function(){i(this.name,this.value)}));else for(r in t)he(r,t[r],e,i);return n.join("&").replace(ie,"+")},y.support.ajax&&y.ajaxTransport((function(t){var e;if(!t.crossDomain||y.support.cors)return{send:function(r,n){var o,a,l=t.xhr();if(t.username?l.open(t.type,t.url,t.async,t.username,t.password):l.open(t.type,t.url,t.async),t.xhrFields)for(a in t.xhrFields)l[a]=t.xhrFields[a];t.mimeType&&l.overrideMimeType&&l.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");try{for(a in r)l.setRequestHeader(a,r[a])}catch(h){}l.send(t.hasContent&&t.data||null),e=function(r,i){var a,h,u,c,d;try{if(e&&(i||4===l.readyState))if(e=s,o&&(l.onreadystatechange=y.noop,xhrOnUnloadAbort&&delete xhrCallbacks[o]),i)4!==l.readyState&&l.abort();else{a=l.status,u=l.getAllResponseHeaders(),c={},(d=l.responseXML)&&d.documentElement&&(c.xml=d);try{c.text=l.responseText}catch(f){}try{h=l.statusText}catch(f){h=""}a||!t.isLocal||t.crossDomain?1223===a&&(a=204):a=c.text?200:404}}catch(p){i||n(-1,p)}c&&n(a,h,c,u)},t.async?4===l.readyState?setTimeout(e,0):(o=++xhrId,xhrOnUnloadAbort&&(xhrCallbacks||(xhrCallbacks={},y(i).unload(xhrOnUnloadAbort)),xhrCallbacks[o]=e),l.onreadystatechange=e):e()},abort:function(){e&&e(0,1)}}}));var ue,ce,de=/^(?:toggle|show|hide)$/,fe=new RegExp("^(?:([-+])=|)("+x+")([a-z%]*)$","i"),pe=/queueHooks$/,ge=[function(t,e,r){var n,i,s,o,a,l,h,u,c,d=this,f=t.style,p={},g=[],m=t.nodeType&&Zt(t);for(n in r.queue||(null==(u=y._queueHooks(t,"fx")).unqueued&&(u.unqueued=0,c=u.empty.fire,u.empty.fire=function(){u.unqueued||c()}),u.unqueued++,d.always((function(){d.always((function(){u.unqueued--,y.queue(t,"fx").length||u.empty.fire()}))}))),1===t.nodeType&&("height"in e||"width"in e)&&(r.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===y.css(t,"display")&&"none"===y.css(t,"float")&&(y.support.inlineBlockNeedsLayout&&"inline"!==ne(t.nodeName)?f.zoom=1:f.display="inline-block")),r.overflow&&(f.overflow="hidden",y.support.shrinkWrapBlocks||d.done((function(){f.overflow=r.overflow[0],f.overflowX=r.overflow[1],f.overflowY=r.overflow[2]}))),e)if(de.exec(s=e[n])){if(delete e[n],l=l||"toggle"===s,s===(m?"hide":"show"))continue;g.push(n)}if(o=g.length){"hidden"in(a=y._data(t,"fxshow")||y._data(t,"fxshow",{}))&&(m=a.hidden),l&&(a.hidden=!m),m?y(t).show():d.done((function(){y(t).hide()})),d.done((function(){var e;for(e in y.removeData(t,"fxshow",!0),p)y.style(t,e,p[e])}));for(n=0;n<o;n++)h=d.createTween(i=g[n],m?a[i]:0),p[i]=a[i]||y.style(t,i),i in a||(a[i]=h.start,m&&(h.end=h.start,h.start="width"===i||"height"===i?1:0))}}],me={"*":[function(t,e){var r,n,i=this.createTween(t,e),s=fe.exec(e),o=i.cur(),a=+o||0,l=1,h=20;if(s){if(r=+s[2],"px"!==(n=s[3]||(y.cssNumber[t]?"":"px"))&&a){a=y.css(i.elem,t,!0)||r||1;do{y.style(i.elem,t,(a/=l=l||".5")+n)}while(l!==(l=i.cur()/o)&&1!==l&&--h)}i.unit=n,i.start=a,i.end=s[1]?a+(s[1]+1)*r:r}return i}]};function ve(){return setTimeout((function(){ue=s}),0),ue=y.now()}function ye(t,e,r){var n,i=0,s=ge.length,o=y.Deferred().always((function(){delete a.elem})),a=function(){for(var e=ue||ve(),r=Math.max(0,l.startTime+l.duration-e),n=1-(r/l.duration||0),i=0,s=l.tweens.length;i<s;i++)l.tweens[i].run(n);return o.notifyWith(t,[l,n,r]),n<1&&s?r:(o.resolveWith(t,[l]),!1)},l=o.promise({elem:t,props:y.extend({},e),opts:y.extend(!0,{specialEasing:{}},r),originalProperties:e,originalOptions:r,startTime:ue||ve(),duration:r.duration,tweens:[],createTween:function(e,r,n){var i=y.Tween(t,l.opts,e,r,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(i),i},stop:function(e){for(var r=0,n=e?l.tweens.length:0;r<n;r++)l.tweens[r].run(1);return e?o.resolveWith(t,[l,e]):o.rejectWith(t,[l,e]),this}}),h=l.props;for(function(t,e){var r,n,i,s,o;for(r in t)if(i=e[n=y.camelCase(r)],y.isArray(s=t[r])&&(i=s[1],s=t[r]=s[0]),r!==n&&(t[n]=s,delete t[r]),(o=y.cssHooks[n])&&"expand"in o)for(r in s=o.expand(s),delete t[n],s)r in t||(t[r]=s[r],e[r]=i);else e[n]=i}(h,l.opts.specialEasing);i<s;i++)if(n=ge[i].call(l,t,h,l.opts))return n;return function(t,e){y.each(e,(function(e,r){for(var n=(me[e]||[]).concat(me["*"]),i=0,s=n.length;i<s;i++)if(n[i].call(t,e,r))return}))}(l,h),y.isFunction(l.opts.start)&&l.opts.start.call(t,l),y.fx.timer(y.extend(a,{anim:l,queue:l.opts.queue,elem:t})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function xe(t,e,r,n,i){return new xe.prototype.init(t,e,r,n,i)}function _e(t,e){var r,n={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)n["margin"+(r=Xt[i])]=n["padding"+r]=t;return e&&(n.opacity=n.width=t),n}y.Animation=y.extend(ye,{tweener:function(t,e){y.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var r,n=0,i=t.length;n<i;n++)me[r=t[n]]=me[r]||[],me[r].unshift(e)},prefilter:function(t,e){e?ge.unshift(t):ge.push(t)}}),y.Tween=xe,(xe.prototype={constructor:xe,init:function(t,e,r,n,i,s){this.elem=t,this.prop=r,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(y.cssNumber[r]?"":"px")},cur:function(){var t=xe.propHooks[this.prop];return t&&t.get?t.get(this):xe.propHooks._default.get(this)},run:function(t){var e,r=xe.propHooks[this.prop];return this.pos=e=this.options.duration?y.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):xe.propHooks._default.set(this),this}}).init.prototype=xe.prototype,(xe.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=y.css(t.elem,t.prop,!1,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){y.fx.step[t.prop]?y.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[y.cssProps[t.prop]]||y.cssHooks[t.prop])?y.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}}).scrollTop=xe.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},y.each(["toggle","show","hide"],(function(t,e){var r=y.fn[e];y.fn[e]=function(n,i,s){return null==n||"boolean"==typeof n||!t&&y.isFunction(n)&&y.isFunction(i)?r.apply(this,arguments):this.animate(_e(e,!0),n,i,s)}})),y.fn.extend({fadeTo:function(t,e,r,n){return this.filter(Zt).css("opacity",0).show().end().animate({opacity:e},t,r,n)},animate:function(t,e,r,n){var i=y.isEmptyObject(t),s=y.speed(e,r,n),o=function(){var e=ye(this,y.extend({},t),s);i&&e.stop(!0)};return i||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,r){var n=function(t){var e=t.stop;delete t.stop,e(r)};return"string"!=typeof t&&(r=e,e=t,t=s),e&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){var e=!0,i=null!=t&&t+"queueHooks",s=y.timers,o=y._data(this);if(i)o[i]&&o[i].stop&&n(o[i]);else for(i in o)o[i]&&o[i].stop&&pe.test(i)&&n(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=t&&s[i].queue!==t||(s[i].anim.stop(r),e=!1,s.splice(i,1));!e&&r||y.dequeue(this,t)}))}}),y.each({slideDown:_e("show"),slideUp:_e("hide"),slideToggle:_e("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){y.fn[t]=function(t,r,n){return this.animate(e,t,r,n)}})),y.speed=function(t,e,r){var n=t&&"object"==typeof t?y.extend({},t):{complete:r||!r&&e||y.isFunction(t)&&t,duration:t,easing:r&&e||e&&!y.isFunction(e)&&e};return n.duration=y.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in y.fx.speeds?y.fx.speeds[n.duration]:y.fx.speeds._default,null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){y.isFunction(n.old)&&n.old.call(this),n.queue&&y.dequeue(this,n.queue)},n},y.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},y.timers=[],y.fx=xe.prototype.init,y.fx.tick=function(){var t,e=y.timers,r=0;for(ue=y.now();r<e.length;r++)(t=e[r])()||e[r]!==t||e.splice(r--,1);e.length||y.fx.stop(),ue=s},y.fx.timer=function(t){t()&&y.timers.push(t)&&!ce&&(ce=setInterval(y.fx.tick,y.fx.interval))},y.fx.interval=13,y.fx.stop=function(){clearInterval(ce),ce=null},y.fx.speeds={slow:600,fast:200,_default:400},y.fx.step={},y.expr&&y.expr.filters&&(y.expr.filters.animated=function(t){return y.grep(y.timers,(function(e){return t===e.elem})).length});var be=/^(?:body|html)$/i;function we(t){return y.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}y.fn.offset=function(t){if(arguments.length)return t===s?this:this.each((function(e){y.offset.setOffset(this,t,e)}));var e,r,n,i={top:0,left:0},o=this[0],a=o&&o.ownerDocument;return a?(r=a.body)===o?y.offset.bodyOffset(o):y.contains(e=a.documentElement,o)?(void 0!==o.getBoundingClientRect&&(i=o.getBoundingClientRect()),n=we(a),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||r.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||r.clientLeft||0)}):i:void 0},y.offset={bodyOffset:function(t){var e=t.offsetTop,r=t.offsetLeft;return y.support.doesNotIncludeMarginInBodyOffset&&(e+=parseFloat(y.css(t,"marginTop"))||0,r+=parseFloat(y.css(t,"marginLeft"))||0),{top:e,left:r}},setOffset:function(t,e,r){var n=y.css(t,"position");"static"===n&&(t.style.position="relative");var i,s,o=y(t),a=o.offset(),l=y.css(t,"top"),h=y.css(t,"left"),u={},c={};("absolute"===n||"fixed"===n)&&y.inArray("auto",[l,h])>-1?(i=(c=o.position()).top,s=c.left):(i=parseFloat(l)||0,s=parseFloat(h)||0),y.isFunction(e)&&(e=e.call(t,r,a)),null!=e.top&&(u.top=e.top-a.top+i),null!=e.left&&(u.left=e.left-a.left+s),"using"in e?e.using.call(t,u):o.css(u)}},y.fn.extend({isRendered:function(){var t=this[0];return null!=t.parentNode&&0!==t.offsetWidth&&0!==t.offsetHeight},getSizeFromStyle:function(){var t,e=null,r=null,n=this[0];return n.style.width&&(e=n.style.width),n.style.height&&(r=n.style.height),(t=i.getComputedStyle?getComputedStyle(n,null):n.currentStyle)&&(t.width&&(e=t.width),t.height&&(r=t.height)),"0px"===e&&(e=0),"0px"===r&&(r=0),null===e&&(e=0),null===r&&(r=0),{width:e,height:r}},initAnimate:function(){},sizeStyleChanged:function(t){var e,r=this;e={element:r[0],offsetWidth:r[0].offsetWidth,offsetHeight:r[0].offsetHeight,callback:t};try{r.elementStyleObserver||(r.elementStyleObserver=new MutationObserver((function(t){var n=e;t&&t[0]&&"style"===t[0].attributeName&&"attributes"===t[0].type&&(n.element.offsetWidth===n.offsetWidth&&n.element.offsetHeight===n.offsetHeight||(n.offsetWidth=n.element.offsetWidth,n.offsetHeight=n.element.offsetHeight,r.isRendered()&&n.callback()))})),r.elementStyleObserver.observe(r[0],{attributes:!0,childList:!1,characterData:!1}))}catch(ct){}},position:function(){if(this[0]){var t=this[0],e=this.offsetParent(),r=this.offset(),n=be.test(e[0].nodeName)?{top:0,left:0}:e.offset();return r.top-=parseFloat(y.css(t,"marginTop"))||0,r.left-=parseFloat(y.css(t,"marginLeft"))||0,n.top+=parseFloat(y.css(e[0],"borderTopWidth"))||0,n.left+=parseFloat(y.css(e[0],"borderLeftWidth"))||0,{top:r.top-n.top,left:r.left-n.left}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||l.body;t&&!be.test(t.nodeName)&&"static"===y.css(t,"position");)t=t.offsetParent;return t||l.body}))}}),y.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var r=/Y/.test(e);y.fn[t]=function(n){return y.access(this,(function(t,n,i){var o=we(t);if(i===s)return o?e in o?o[e]:o.document.documentElement[n]:t[n];o?o.scrollTo(r?y(o).scrollLeft():i,r?i:y(o).scrollTop()):t[n]=i}),t,n,arguments.length,null)}})),y.each({Height:"height",Width:"width"},(function(t,e){y.each({padding:"inner"+t,content:e,"":"outer"+t},(function(r,n){y.fn[n]=function(n,i){var o=arguments.length&&(r||"boolean"!=typeof n),a=r||(!0===n||!0===i?"margin":"border");return y.access(this,(function(e,r,n){var i;return y.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):n===s?y.css(e,r,n,a):y.style(e,r,n,a)}),e,o?n:s,o,null)}}))})),i.JQXLite=i.jqxHelper=y,r("PDX0").JQXLite&&(void 0===(n=(function(){return y}).apply(e,[]))||(t.exports=n))}(window),(i=window).jQuery?i.minQuery=i.JQXLite=i.jQuery:i.$?i.minQuery=i.JQXLite=i.$:i.$=i.minQuery=i.JQXLite,JQXLite.generateID=function(){var t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)},e="";do{e="jqx"+t()+t()+t()}while($("#"+e).length>0);return e};var s=window.jqxBaseFramework=window.minQuery||window.jQuery;!function(t){t.jqx=t.jqx||{},window.jqx=t.jqx;var e,r,n,i,s={createInstance:function(e,r,n){return"jqxDataAdapter"==r?new t.jqx.dataAdapter(n[0],n[1]||{}):(t(e)[r](n||{}),t(e)[r]("getInstance"))}};window.jqwidgets=s,t.jqx.define=function(t,e,r){t[e]=function(){this.baseType&&(this.base=new t[this.baseType],this.base.defineInstance()),this.defineInstance(),this.metaInfo()},t[e].prototype.defineInstance=function(){},t[e].prototype.metaInfo=function(){},t[e].prototype.base=null,t[e].prototype.baseType=void 0,r&&t[r]&&(t[e].prototype.baseType=r)},t.jqx.invoke=function(e,r){if(0!=r.length){for(var n=typeof r==Array||r.length>0?r[0]:r,i=typeof r==Array||r.length>1?Array.prototype.slice.call(r,1):t({}).toArray();null==e[n]&&null!=e.base;){if(null!=e[n]&&t.isFunction(e[n]))return e[n].apply(e,i);var s;if("string"==typeof n&&null!=e[s=n.toLowerCase()]&&t.isFunction(e[s]))return e[s].apply(e,i);e=e.base}if(null!=e[n]&&t.isFunction(e[n]))return e[n].apply(e,i);if("string"==typeof n&&null!=e[s=n.toLowerCase()]&&t.isFunction(e[s]))return e[s].apply(e,i)}},t.jqx.getByPriority=function(t){for(var e=void 0,r=0;r<t.length&&null==e;r++)null==e&&null!=t[r]&&(e=t[r]);return e},t.jqx.hasProperty=function(t,e){if("object"==typeof e)for(var r in e){for(var n=t;n;){if(n.hasOwnProperty(r))return!0;if(n.hasOwnProperty(r.toLowerCase()))return!0;n=n.base}return!1}else for(;t;){if(t.hasOwnProperty(e))return!0;if(t.hasOwnProperty(e.toLowerCase()))return!0;t=t.base}return!1},t.jqx.hasFunction=function(e,r){if(0==r.length)return!1;if(null==e)return!1;var n=typeof r==Array||r.length>0?r[0]:r;for((typeof r==Array||r.length>1)&&Array.prototype.slice.call(r,1);null==e[n]&&null!=e.base;){if(e[n]&&t.isFunction(e[n]))return!0;var i;if("string"==typeof n&&e[i=n.toLowerCase()]&&t.isFunction(e[i]))return!0;e=e.base}return!(!e[n]||!t.isFunction(e[n]))||!("string"!=typeof n||!e[i=n.toLowerCase()]||!t.isFunction(e[i]))},t.jqx.isPropertySetter=function(e,r){return 1==r.length&&"object"==typeof r[0]||2==r.length&&"string"==typeof r[0]&&!t.jqx.hasFunction(e,r)},t.jqx.validatePropertySetter=function(e,r,n){if(!t.jqx.propertySetterValidation)return!0;if(1==r.length&&"object"==typeof r[0]){for(var i in r[0]){for(var s=e;!s.hasOwnProperty(i)&&s.base;)s=s.base;if(!s||!s.hasOwnProperty(i)){if(!n){if(s.hasOwnProperty(i.toString().toLowerCase()))return!0;throw"Invalid property: "+i}return!1}}return!0}if(2!=r.length){if(!n)throw"Invalid property: "+r.length>=0?r[0]:"";return!1}for(;!e.hasOwnProperty(r[0])&&e.base;)e=e.base;if(!e||!e.hasOwnProperty(r[0])){if(!n)throw"Invalid property: "+r[0];return!1}return!0},Object.keys||(Object.keys=(e=Object.prototype.hasOwnProperty,r=!{toString:null}.propertyIsEnumerable("toString"),i=(n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("object"!=typeof t&&("function"!=typeof t||null===t))throw new TypeError("Object.keys called on non-object");var s,o,a=[];for(s in t)e.call(t,s)&&a.push(s);if(r)for(o=0;o<i;o++)e.call(t,n[o])&&a.push(n[o]);return a})),t.jqx.set=function(r,n){var i=0;if(1==n.length&&"object"==typeof n[0]){if(r.isInitialized&&Object.keys&&Object.keys(n[0]).length>1){var s=t.data(r.base?r.base.element:r.element,r.widgetName).initArgs;if(s&&JSON&&JSON.stringify&&n[0]&&s[0])try{if(JSON.stringify(n[0])==JSON.stringify(s[0])){var o=!0;if(t.each(n[0],(function(t,e){if(r[t]!=e)return o=!1,!1})),o)return}}catch(e){}r.batchUpdate=n[0];var a={},l={};t.each(n[0],(function(t,e){for(var n=r;!n.hasOwnProperty(t)&&null!=n.base;)n=n.base;n.hasOwnProperty(t)?r[t]!=e&&(a[t]=r[t],l[t]=e,i++):n.hasOwnProperty(t.toLowerCase())&&r[t.toLowerCase()]!=e&&(a[t.toLowerCase()]=r[t.toLowerCase()],l[t.toLowerCase()]=e,i++)})),i<2&&(r.batchUpdate=null)}t.each(n[0],(function(e,n){for(var i=r;!i.hasOwnProperty(e)&&null!=i.base;)i=i.base;if(i.hasOwnProperty(e))t.jqx.setvalueraiseevent(i,e,n);else if(i.hasOwnProperty(e.toLowerCase()))t.jqx.setvalueraiseevent(i,e.toLowerCase(),n);else if(t.jqx.propertySetterValidation)throw"jqxCore: invalid property '"+e+"'"})),null!=r.batchUpdate&&(r.batchUpdate=null,r.propertiesChangedHandler&&i>1&&r.propertiesChangedHandler(r,a,l))}else if(2==n.length){for(;!r.hasOwnProperty(n[0])&&r.base;)r=r.base;if(r.hasOwnProperty(n[0]))t.jqx.setvalueraiseevent(r,n[0],n[1]);else if(r.hasOwnProperty(n[0].toLowerCase()))t.jqx.setvalueraiseevent(r,n[0].toLowerCase(),n[1]);else if(t.jqx.propertySetterValidation)throw"jqxCore: invalid property '"+n[0]+"'"}},t.jqx.setvalueraiseevent=function(t,e,r){var n=t[e];t[e]=r,t.isInitialized&&(null!=t.propertyChangedHandler&&t.propertyChangedHandler(t,e,n,r),null!=t.propertyChangeMap&&null!=t.propertyChangeMap[e]&&t.propertyChangeMap[e](t,e,n,r))},t.jqx.get=function(t,e){if(null!=e&&null!=e){if(t.propertyMap){var r=t.propertyMap(e);if(null!=r)return r}if(t.hasOwnProperty(e))return t[e];if(t.hasOwnProperty(e.toLowerCase()))return t[e.toLowerCase()];var n=void 0;if(typeof e==Array){if(1!=e.length)return;n=e[0]}else"string"==typeof e&&(n=e);for(;!t.hasOwnProperty(n)&&t.base;)t=t.base;return t?t[n]:void 0}},t.jqx.serialize=function(e){var r="";if(t.isArray(e)){r="[";for(var n=0;n<e.length;n++)n>0&&(r+=", "),r+=t.jqx.serialize(e[n]);r+="]"}else if("object"==typeof e){r="{";var i=0;for(var n in e)i++>0&&(r+=", "),r+=n+": "+t.jqx.serialize(e[n]);r+="}"}else r=e.toString();return r},t.jqx.propertySetterValidation=!0,t.jqx.jqxWidgetProxy=function(e,r,n){t(r);var i=t.data(r,e);if(null!=i){var s=i.instance;if(t.jqx.hasFunction(s,n))return t.jqx.invoke(s,n);if(t.jqx.isPropertySetter(s,n)){if(t.jqx.validatePropertySetter(s,n))return void t.jqx.set(s,n)}else{if("object"==typeof n&&0==n.length)return;if("object"==typeof n&&1==n.length&&t.jqx.hasProperty(s,n[0]))return t.jqx.get(s,n[0]);if("string"==typeof n&&t.jqx.hasProperty(s,n[0]))return t.jqx.get(s,n)}throw"jqxCore: Invalid parameter '"+t.jqx.serialize(n)+"' does not exist."}},t.jqx.applyWidget=function(e,r,n,i){var s=!1;try{s=null!=window.MSApp}catch(u){}var o=t(e);i?(i.host=o,i.element=e):i=new t.jqx["_"+r],""==e.id&&(e.id=t.jqx.utilities.createId());var a={host:o,element:e,instance:i,initArgs:n};i.widgetName=r,t.data(e,r,a),t.data(e,"jqxWidget",a.instance);var l=new Array;for(i=a.instance;i;)i.isInitialized=!1,l.push(i),i=i.base;for(var h in l.reverse(),l[0].theme=t.jqx.theme||"",t.jqx.jqxWidgetProxy(r,e,n),l)i=l[h],0==h&&(i.host=o,i.element=e,i.WinJS=s),null!=i&&(i.definedInstance&&i.definedInstance(),null!=i.createInstance&&(s?MSApp.execUnsafeLocalFunction((function(){i.createInstance(n)})):i.createInstance(n)));for(var h in l)null!=l[h]&&(l[h].isInitialized=!0);s?MSApp.execUnsafeLocalFunction((function(){a.instance.refresh(!0)})):a.instance.refresh(!0)},t.jqx.jqxWidget=function(e,r,n){try{Array.prototype.slice.call(n,0)}catch(h){}try{window}catch(h){}var i=e,o="";r&&(o="_"+r),t.jqx.define(t.jqx,"_"+i,o);var a=new Array;if(!window[i]){var l=function(e){if(null==e)return"";switch(t.type(e)){case"string":case"number":case"date":case"boolean":case"bool":return null===e?"":e.toString()}var r="";return t.each(e,(function(e,n){var i=n;e>0&&(r+=", "),r+="[";var s=0;if("object"==t.type(i))for(var o in i)s>0&&(r+=", "),r+="{"+o+":"+i[o]+"}",s++;else s>0&&(r+=", "),r+="{"+e+":"+i+"}",s++;r+="]"})),r};s[i]=window[i]=function(e,r){var n=[];r||(r={}),n.push(r);var s=e;if("object"===t.type(s)&&e[0]?""===(s=e[0].id)&&(s=e[0].id=t.jqx.utilities.createId()):"object"===t.type(e)&&e&&e.nodeName&&""===(s=e.id)&&(s=e.id=t.jqx.utilities.createId()),window.jqxWidgets&&window.jqxWidgets[s]){var o;if(r&&t.each(window.jqxWidgets[s],(function(e){var n=t(this.element).data();n&&n.jqxWidget&&t(this.element)[i](r)})),1==window.jqxWidgets[s].length&&(o=t(window.jqxWidgets[s][0].widgetInstance.element).data())&&o.jqxWidget)return window.jqxWidgets[s][0];if((o=t(window.jqxWidgets[s][0].widgetInstance.element).data())&&o.jqxWidget)return window.jqxWidgets[s]}var h=t(e);0===h.length&&(h=t("<div></div>"),"jqxInput"!==i&&"jqxPasswordInput"!==i&&"jqxMaskedInput"!==i||(h=t("<input/>")),"jqxTextArea"===i&&(h=t("<textarea></textarea>")),"jqxButton"!==i&&"jqxRepeatButton"!==i&&"jqxToggleButton"!==i||(h=t("<button/>")),"jqxSplitter"===i&&(h=t("<div><div>Panel 1</div><div>Panel 2</div></div>")),"jqxTabs"===i&&(h=t("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div>Content 1</div><div>Content 2</div></div>")),"jqxRibbon"===i&&(h=t("<div><ul><li>Tab 1</li><li>Tab 2</li></ul><div><div>Content 1</div><div>Content 2</div></div></div>")),"jqxDocking"===i&&(h=t("<div><div><div><div>Title 1</div><div>Content 1</div></div></div></div>")),"jqxWindow"===i&&(h=t("<div><div>Title 1</div><div>Content 1</div></div>")));var u=[];return t.each(h,(function(e){var r=h[e];if(t.jqx.applyWidget(r,i,n,void 0),!a[i]){var o=t.data(r,"jqxWidget"),c=t.jqx["_"+i].prototype.defineInstance();t.jqx["_"+i].prototype.metaInfo&&t.jqx["_"+i].prototype.metaInfo(),"jqxDockingLayout"==i&&(c=t.extend(c,t.jqx._jqxLayout.prototype.defineInstance())),"jqxToggleButton"!=i&&"jqxRepeatButton"!=i||(c=t.extend(c,t.jqx._jqxButton.prototype.defineInstance())),"jqxTreeGrid"==i&&(c=t.extend(c,t.jqx._jqxDataTable.prototype.defineInstance()));var d=function(e){var r=t.data(e,"jqxWidget");this.widgetInstance=r;var n=t.extend(this,r);for(var i in n.on=n.addEventListener=function(t,e){n.addHandler(n.base?n.base.host:n.host,t,e)},n.off=n.removeEventListener=function(t){n.removeHandler(n.base?n.base.host:n.host,t)},r)"function"==t.type(r[i])&&(n[i]=t.proxy(r[i],r));return n};a[i]=d,t.each(c,(function(e,r){Object.defineProperty(d.prototype,e,{get:function(){return this.widgetInstance?this.widgetInstance[e]:r},set:function(r){if(this.widgetInstance&&(this.widgetInstance[e]!=r||"width"===e||"height"===e)){var n=this.widgetInstance[e],s=r,o=!1;if(t.type(n)==t.type(s)&&"source"!==e&&"width"!==e&&"height"!==e||(o=!0),o||l(n)!=l(s)){var a={};a[e]=r,this.widgetInstance.host?this.widgetInstance.host[i](a):this.widgetInstance.base.host[i](a),this.widgetInstance[e]=r,this.widgetInstance.propertyUpdated&&this.widgetInstance.propertyUpdated(e,n,r)}}}})}))}o=new a[i](r),u.push(o),window.jqxWidgets||(window.jqxWidgets=new Array),window.jqxWidgets[s]||(window.jqxWidgets[s]=new Array),window.jqxWidgets[s].push(o)})),1===u.length?u[0]:u}}t.fn[i]=function(){var e=Array.prototype.slice.call(arguments,0);if(0==e.length||1==e.length&&"object"==typeof e[0]){if(0==this.length)throw this.selector?new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct."):new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.");return this.each((function(){t(this),null==t.data(this,i)?t.jqx.applyWidget(this,i,e,void 0):t.jqx.jqxWidgetProxy(i,this,e)}))}if(0==this.length)throw this.selector?new Error("Invalid Selector - "+this.selector+"! Please, check whether the used ID or CSS Class name is correct."):new Error("Invalid Selector! Please, check whether the used ID or CSS Class name is correct.");var r=null,n=0;return this.each((function(){var s=t.jqx.jqxWidgetProxy(i,this,e);if(0==n)r=s,n++;else{if(1==n){var o=[];o.push(r),r=o}r.push(s)}})),r};try{t.extend(t.jqx["_"+i].prototype,Array.prototype.slice.call(n,0)[0])}catch(h){}t.extend(t.jqx["_"+i].prototype,{toThemeProperty:function(e,r){return t.jqx.toThemeProperty(this,e,r)},isMaterialized:function(){return!!this.theme&&(this.theme.indexOf("material")>=0||void 0)},isModern:function(){return!!this.theme&&(this.theme.indexOf("light")>=0||"dark"===this.theme||void 0)},_addBarAndLabel:function(e){var r=this,n=t("<label></label");n[0].innerHTML=this.placeHolder,n.addClass(r.toThemeProperty("jqx-input-label")),e.after(n),r.label=n;var i=t("<span></span>");e.after(i),i.addClass(r.toThemeProperty("jqx-input-bar")),r.bar=i,r.bar.css("top",this.host.height())}}),t.jqx["_"+i].prototype.refresh=function(){this.base&&this.base.refresh(!0)},t.jqx["_"+i].prototype.createInstance=function(){},t.jqx["_"+i].prototype.addEventHandler=function(t,e){this.base?this.base.host.on(t,e):this.host.on(t,e)},t.jqx["_"+i].prototype.removeEventHandler=function(t,e){this.base?this.base.host.off(t):this.host.off(t)},t.jqx["_"+i].prototype.applyTo=function(e,r){if(!(r instanceof Array)){var n=[];n.push(r),r=n}t.jqx.applyWidget(e,i,r,this)},t.jqx["_"+i].prototype.getInstance=function(){return this},t.jqx["_"+i].prototype.propertyChangeMap={},t.jqx["_"+i].prototype.addHandler=function(e,r,n,i){t.jqx.addHandler(t(e),r,n,i)},t.jqx["_"+i].prototype.removeHandler=function(e,r,n){t.jqx.removeHandler(t(e),r,n)},t.jqx["_"+i].prototype.setOptions=function(){if(this.host&&this.host.length&&1==this.host.length)return t.jqx.jqxWidgetProxy(i,this.host[0],arguments)}},t.jqx.toThemeProperty=function(t,e,r){if(""==t.theme)return e;for(var n=e.split(" "),i="",s=0;s<n.length;s++){s>0&&(i+=" ");var o=n[s];i+=null!=r&&r?o+"-"+t.theme:o+" "+o+"-"+t.theme}return i},t.jqx.addHandler=function(e,r,n,i){for(var s=r.split(" "),o=0;o<s.length;o++){var a=s[o];if(window.addEventListener)switch(a){case"mousewheel":e[0].addEventListener(t.jqx.browser.mozilla?"DOMMouseScroll":"mousewheel",n,!1);continue;case"mousemove":if(!i){e[0].addEventListener("mousemove",n,!1);continue}break;case"touchmove":if(!i){e[0].addEventListener("touchmove",n,!1);continue}if(i&&i.passive){e[0].addEventListener("touchmove",n,i);continue}}null==i||null==i?e.on?e.on(a,n):e.bind(a,n):e.on?e.on(a,i,n):e.bind(a,i,n)}},t.jqx.removeHandler=function(e,r,n){if(r)for(var i=r.split(" "),s=0;s<i.length;s++){var o=i[s];if(window.removeEventListener)switch(o){case"mousewheel":e[0].removeEventListener(t.jqx.browser.mozilla?"DOMMouseScroll":"mousewheel",n,!1);continue;case"mousemove":if(n){e[0].removeEventListener("mousemove",n,!1);continue}break;case"touchmove":if(n){e[0].removeEventListener("touchmove",n,!1);continue}}null!=o?null==n?e.off?e.off(o):e.unbind(o):e.off?e.off(o,n):e.unbind(o,n):e.off?e.off():e.unbind()}else e.off?e.off():e.unbind()},t.jqx.credits=t.jqx.credits||"",t.jqx.theme=t.jqx.theme||"",t.jqx.scrollAnimation=t.jqx.scrollAnimation||!1,t.jqx.resizeDelay=t.jqx.resizeDelay||10,t.jqx.ready=function(){t(window).trigger("jqxReady")},t.jqx.init=function(){t.each(arguments[0],(function(e,r){"theme"==e&&(t.jqx.theme=r),"scrollBarSize"==e&&(t.jqx.utilities.scrollBarSize=r),"touchScrollBarSize"==e&&(t.jqx.utilities.touchScrollBarSize=r),"scrollBarButtonsVisibility"==e&&(t.jqx.utilities.scrollBarButtonsVisibility=r)}))},t.jqx.utilities=t.jqx.utilities||{},t.extend(t.jqx.utilities,{scrollBarSize:13,touchScrollBarSize:8,scrollBarButtonsVisibility:"visible",createId:function(){var t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return"jqxWidget"+t()+t()+t()},setTheme:function(e,r,n){if(void 0!==n&&n[0].className.split){void 0===e&&(e=""),void 0===r&&(r="");for(var i=n[0].className.split(" "),s=[],o=[],a=n.children(),l=0;l<i.length;l+=1)i[l].indexOf(e)>=0&&(e.length>0?(s.push(i[l]),o.push(i[l].replace(e,r))):o.push(i[l].replace("-"+r,"")+"-"+r));for(this._removeOldClasses(s,n),this._addNewClasses(o,n),l=0;l<a.length;l+=1)this.setTheme(e,r,t(a[l]))}},_removeOldClasses:function(t,e){for(var r=0;r<t.length;r+=1)e.removeClass(t[r])},_addNewClasses:function(t,e){for(var r=0;r<t.length;r+=1)e.addClass(t[r])},getOffset:function(e){var r=t.jqx.mobile.getLeftPos(e[0]);return{top:t.jqx.mobile.getTopPos(e[0]),left:r}},resize:function(e,r,n,i){void 0===i&&(i=!0);var s=-1,o=this,a=function(t){if(!o.hiddenWidgets)return-1;for(var e=-1,r=0;r<o.hiddenWidgets.length;r++)if(t.id){if(o.hiddenWidgets[r].id==t.id){e=r;break}}else if(o.hiddenWidgets[r].id==t[0].id){e=r;break}return e};if(this.resizeHandlers){for(var l=0;l<this.resizeHandlers.length;l++)if(e.id){if(this.resizeHandlers[l].id==e.id){s=l;break}}else if(this.resizeHandlers[l].id==e[0].id){s=l;break}if(!0===n)return-1!=s&&(this.resizeHandlers.splice(s,1),this.watchedElementData&&this.watchedElementData.length>0&&this.watchedElementData.splice(s,1)),0==this.resizeHandlers.length&&((u=t(window)).off?(u.off("resize.jqx"),u.off("orientationchange.jqx"),u.off("orientationchanged.jqx")):(u.unbind("resize.jqx"),u.unbind("orientationchange.jqx"),u.unbind("orientationchanged.jqx")),this.resizeHandlers=null),void(-1!=(h=a(e))&&this.hiddenWidgets&&this.hiddenWidgets.splice(h,1))}else{var h;if(!0===n)return void(-1!=(h=a(e))&&this.hiddenWidgets&&this.hiddenWidgets.splice(h,1))}o=this;var u,c=function(e,r){if(o.resizeHandlers){var n=function(t){for(var e=-1,r=t.parentNode;r;)e++,r=r.parentNode;return e},i=function(t,e){if(!t.widget||!e.widget)return 0;var r=n(t.widget[0]),i=n(e.widget[0]);try{if(r<i)return-1;if(r>i)return 1}catch(s){}return 0},s=function(e){if(o.hiddenWidgets.length>0){o.hiddenWidgets.sort(i);var n=function(){for(var e=!1,n=new Array,i=0;i<o.hiddenWidgets.length;i++){var s=o.hiddenWidgets[i];t.jqx.isHidden(s.widget)?(e=!0,n.push(s)):s.callback&&s.callback(r)}o.hiddenWidgets=n,e||clearInterval(o.__resizeInterval)};if(0==e)return n(),void(o.__resizeInterval&&clearInterval(o.__resizeInterval));o.__resizeInterval&&clearInterval(o.__resizeInterval),o.__resizeInterval=setInterval((function(){n()}),100)}};o.hiddenWidgets&&o.hiddenWidgets.length>0&&s(!1),o.hiddenWidgets=new Array,o.resizeHandlers.sort(i);for(var l=0;l<o.resizeHandlers.length;l++){var h=o.resizeHandlers[l],u=h.widget,c=h.data;if(c&&c.jqxWidget){var d=c.jqxWidget.width,f=c.jqxWidget.height;c.jqxWidget.base&&(null==d&&(d=c.jqxWidget.base.width),null==f&&(f=c.jqxWidget.base.height)),void 0===d&&void 0===f&&(d=c.jqxWidget.element.style.width,f=c.jqxWidget.element.style.height);var p=!1;if(null!=d&&-1!=d.toString().indexOf("%")&&(p=!0),null!=f&&-1!=f.toString().indexOf("%")&&(p=!0),t.jqx.isHidden(u))-1===a(u)&&(p||!0===e)&&!0!==h.data.nestedWidget&&o.hiddenWidgets.push(h);else if(void 0===e||!0!==e){if(p){if(h.callback(r),o.watchedElementData)for(var g=0;g<o.watchedElementData.length;g++)if(o.watchedElementData[g].element==c.jqxWidget.element){o.watchedElementData[g].offsetWidth=c.jqxWidget.element.offsetWidth,o.watchedElementData[g].offsetHeight=c.jqxWidget.element.offsetHeight;break}o.hiddenWidgets.indexOf(h)>=0&&o.hiddenWidgets.splice(o.hiddenWidgets.indexOf(h),1)}if(c.jqxWidget.element){var m=c.jqxWidget.element.className;if((m.indexOf("dropdownlist")>=0||m.indexOf("datetimeinput")>=0||m.indexOf("combobox")>=0||m.indexOf("menu")>=0)&&c.jqxWidget.isOpened&&c.jqxWidget.isOpened()){if(r&&"resize"==r&&t.jqx.mobile.isTouchDevice())continue;c.jqxWidget.close()}}}}}s()}};this.resizeHandlers||(this.resizeHandlers=new Array,(u=t(window)).on?(this._resizeTimer=null,this._initResize=null,u.on("resize.jqx",(function(e){null!=o._resizeTimer&&clearTimeout(o._resizeTimer),o._initResize?o._resizeTimer=setTimeout((function(){c(null,"resize")}),t.jqx.resizeDelay):(o._initResize=!0,c(null,"resize"))})),u.on("orientationchange.jqx",(function(t){c(null,"orientationchange")})),u.on("orientationchanged.jqx",(function(t){c(null,"orientationchange")}))):(u.bind("resize.jqx",(function(t){c(null,"orientationchange")})),u.bind("orientationchange.jqx",(function(t){c(null,"orientationchange")})),u.bind("orientationchanged.jqx",(function(t){c(null,"orientationchange")}))));var d=e.data();i&&-1===s&&this.resizeHandlers.push({id:e[0].id,widget:e,callback:r,data:d});try{var f=d.jqxWidget.width,p=d.jqxWidget.height;d.jqxWidget.base&&(null==f&&(f=d.jqxWidget.base.width),null==p&&(p=d.jqxWidget.base.height)),void 0===f&&void 0===p&&(f=d.jqxWidget.element.style.width,p=d.jqxWidget.element.style.height);var g=!1;null!=f&&-1!=f.toString().indexOf("%")&&(g=!0),null!=p&&-1!=p.toString().indexOf("%")&&(g=!0),g&&(this.watchedElementData||(this.watchedElementData=[]),(o=this).watchedElementData.push({element:e[0],offsetWidth:e[0].offsetWidth,offsetHeight:e[0].offsetHeight,callback:r}),o.observer||(o.observer=new MutationObserver((function(e){o.watchedElementData.forEach&&o.watchedElementData.forEach((function(e){e.element.offsetWidth===e.offsetWidth&&e.element.offsetHeight===e.offsetHeight||(e.offsetWidth=e.element.offsetWidth,e.offsetHeight=e.element.offsetHeight,e.timer&&clearTimeout(e.timer),e.timer=setTimeout((function(){t.jqx.isHidden(t(e.element))?e.timer=setInterval((function(){t.jqx.isHidden(t(e.element))||(clearInterval(e.timer),e.callback())}),100):e.callback()})))}))})),o.observer.observe(document.body,{attributes:!0,childList:!0,characterData:!0})))}catch(m){}t.jqx.isHidden(e)&&!0===i&&c(!0),t.jqx.resize=function(){c(null,"resize")}},parseJSON:function(e){if(!e||"string"!=typeof e)return null;if(e=t.trim(e),window.JSON&&window.JSON.parse)return window.JSON.parse(e);if(/^[\],:{}\s]*$/.test(e.replace(/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,"@").replace(/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return new Function("return "+e)();throw new Error("Invalid JSON: "+e)},html:function(e,r){if(!t(e).on)return t(e).html(r);try{return t.access(e,(function(r){var n=e[0]||{},i=0,s=e.length;if(void 0===r)return 1===n.nodeType?n.innerHTML.replace(rinlinejQuery,""):void 0;var o=new RegExp("<(?:abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)[\\s/>]","i");if("string"==typeof r&&!/<(?:script|style|link)/i.test(r)&&(t.support.htmlSerialize||!o.test(r))&&(t.support.leadingWhitespace||!/^\s+/.test(r))&&!{option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]}[(/<([\w:]+)/.exec(r)||["",""])[1].toLowerCase()]){r=r.replace(/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,"<$1></$2>");try{for(;i<s;i++)1===(n=this[i]||{}).nodeType&&(t.cleanData(n.getElementsByTagName("*")),n.innerHTML=r);n=0}catch(a){}}n&&e.empty().append(r)}),null,r,arguments.length)}catch(i){return t(e).html(r)}},hasTransform:function(e){var r="";if(""==(r=e.css("transform"))||"none"==r){if(""!=(r=e.parents().css("transform"))&&"none"!=r)return""!=r&&"none"!=r;var n=t.jqx.utilities.getBrowser();"msie"==n.browser?""!=(r=e.css("-ms-transform"))&&"none"!=r||(r=e.parents().css("-ms-transform")):"chrome"==n.browser?""!=(r=e.css("-webkit-transform"))&&"none"!=r||(r=e.parents().css("-webkit-transform")):"opera"==n.browser?""!=(r=e.css("-o-transform"))&&"none"!=r||(r=e.parents().css("-o-transform")):"mozilla"==n.browser&&(""!=(r=e.css("-moz-transform"))&&"none"!=r||(r=e.parents().css("-moz-transform")))}return""!=r&&"none"!=r||(r=t(document.body).css("transform")),""!=r&&"none"!=r&&null!=r},getBrowser:function(){var t=navigator.userAgent.toLowerCase(),e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],r={browser:e[1]||"",version:e[2]||"0"};return t.indexOf("rv:11.0")>=0&&t.indexOf(".net4.0c")>=0&&(r.browser="msie",r.version="11",e[1]="msie"),t.indexOf("edge")>=0&&(r.browser="msie",r.version="12",e[1]="msie"),r[e[1]]=e[1],r}}),t.jqx.browser=t.jqx.utilities.getBrowser(),t.jqx.isHidden=function(t){return!(!t||!t[0]||0!==t[0].offsetWidth&&0!==t[0].offsetHeight)},t.jqx.ariaEnabled=!0,t.jqx.aria=function(e,r,n){if(t.jqx.ariaEnabled)if(null==r)t.each(e.aria,(function(r,n){if(null==(i=e.base?e.base.host.attr(r):e.host.attr(r))||t.isFunction(i)){var i;t.isFunction(i=e[n.name])&&(i=e[n.name]()),null==i&&(i="");try{e.base?e.base.host.attr(r,i.toString()):e.host.attr(r,i.toString())}catch(o){}}else{var s=i;switch(n.type){case"number":s=new Number(i),isNaN(s)&&(s=i);break;case"boolean":s="true"==i;break;case"date":("Invalid Date"==(s=new Date(i))||isNaN(s))&&(s=i)}e[n.name]=s}}));else try{e.host?e.base?e.base.host?e.base.host.attr(r,n.toString()):e.attr(r,n.toString()):e.host?e.element.setAttribute?e.element.setAttribute(r,n.toString()):e.host.attr(r,n.toString()):e.attr(r,n.toString()):e.setAttribute&&e.setAttribute(r,n.toString())}catch(i){}},Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e=this.length,r=Number(arguments[1])||0;for((r=r<0?Math.ceil(r):Math.floor(r))<0&&(r+=e);r<e;r++)if(r in this&&this[r]===t)return r;return-1}),t.jqx.mobile=t.jqx.mobile||{},t.jqx.position=function(e){var r=parseInt(e.pageX),n=parseInt(e.pageY);if(t.jqx.mobile.isTouchDevice()){var i=t.jqx.mobile.getTouches(e)[0];r=parseInt(i.pageX),n=parseInt(i.pageY)}return{left:r,top:n}},t.extend(t.jqx.mobile,{_touchListener:function(t,e){var r,n,i,s={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},o=(r=s[t.type],n=t,(i=document.createEvent("MouseEvents")).initMouseEvent(r,n.bubbles,n.cancelable,n.view,n.detail,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget),i._pageX=n.pageX,i._pageY=n.pageY,i);t.target.dispatchEvent(o);var a=t.target["on"+s[t.type]];"function"==typeof a&&a(t)},setMobileSimulator:function(t,e){if(!this.isTouchDevice()){this.simulatetouches=!0,0==e&&(this.simulatetouches=!1);var r={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},n=this;window.addEventListener&&function(){for(var e in r)t.addEventListener&&(t.removeEventListener(e,n._touchListener),t.addEventListener(e,n._touchListener,!1))}()}},isTouchDevice:function(){if(null!=this.touchDevice)return this.touchDevice;var t="Browser CodeName: "+navigator.appCodeName;if(t+="Browser Name: "+navigator.appName,t+="Browser Version: "+navigator.appVersion,t+="Platform: "+navigator.platform,-1!=(t+="User-agent header: "+navigator.userAgent).indexOf("Android"))return!0;if(-1!=t.indexOf("IEMobile"))return!0;if(-1!=t.indexOf("Windows Phone"))return!0;if(-1!=t.indexOf("WPDesktop"))return!0;if(-1!=t.indexOf("ZuneWP7"))return!0;if(-1!=t.indexOf("BlackBerry")&&-1!=t.indexOf("Mobile Safari"))return!0;if(-1!=t.indexOf("ipod"))return!0;if(-1!=t.indexOf("nokia")||-1!=t.indexOf("Nokia"))return!0;if(-1!=t.indexOf("Chrome/17"))return!1;if(-1!=t.indexOf("CrOS"))return!1;if(-1!=t.indexOf("Opera")&&-1==t.indexOf("Mobi")&&-1==t.indexOf("Mini")&&-1!=t.indexOf("Platform: Win"))return!1;if(-1!=t.indexOf("HybridDeviceTouch"))return!0;if(-1!=t.indexOf("HybridDeviceMouse"))return!1;if(-1!=t.indexOf("Opera")&&-1!=t.indexOf("Mobi")&&-1!=t.indexOf("Opera Mobi"))return!0;if(-1!=t.indexOf("Mozilla/5.0 (X11; Linux x86_64)"))return!1;var e={ios:"i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ",android:"(Android |HTC_|Silk/)",blackberry:"BlackBerry(?:.*)Version/",rimTablet:"RIM Tablet OS ",webos:"(?:webOS|hpwOS)/",bada:"Bada/"};try{if(null!=this.touchDevice)return this.touchDevice;for(var r in this.touchDevice=!1,e)if(e.hasOwnProperty(r)&&t.match(new RegExp("(?:"+e[r]+")([^\\s;]+)")))return"blackberry"==r.toString()?(this.touchDevice=!1,!1):(this.touchDevice=!0,!0);var n=navigator.userAgent;if(-1!=navigator.platform.toLowerCase().indexOf("win")){if(n.indexOf("Windows Phone")>=0||n.indexOf("WPDesktop")>=0||n.indexOf("IEMobile")>=0||n.indexOf("ZuneWP7")>=0)return this.touchDevice=!0,!0;if(n.indexOf("Touch")>=0)return"MSPointerDown"in window||"pointerdown"in window?(this.touchDevice=!0,!0):n.indexOf("ARM")>=0?(this.touchDevice=!0,!0):(this.touchDevice=!1,!1)}return-1!=navigator.platform.toLowerCase().indexOf("win")?(this.touchDevice=!1,!1):(("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&(this.touchDevice=!0),this.touchDevice)}catch(i){return this.touchDevice=!1,!1}},getLeftPos:function(t){for(var e=t.offsetLeft;null!=(t=t.offsetParent);)"HTML"!=t.tagName&&(e+=t.offsetLeft,document.all&&(e+=t.clientLeft));return e},getTopPos:function(e){for(var r=e.offsetTop,n=t(e).coord();null!=(e=e.offsetParent);)"HTML"!=e.tagName&&(r+=e.offsetTop-e.scrollTop,document.all&&(r+=e.clientTop));var i=navigator.userAgent.toLowerCase();return-1==i.indexOf("windows phone")&&-1==i.indexOf("WPDesktop")&&-1==i.indexOf("ZuneWP7")&&-1==i.indexOf("msie 9")&&-1==i.indexOf("msie 11")&&-1==i.indexOf("msie 10")||-1==i.indexOf("touch")?this.isSafariMobileBrowser()?this.isSafari4MobileBrowser()&&this.isIPadSafariMobileBrowser()?r:-1!=i.indexOf("version/7")?n.top:(-1==i.indexOf("version/6")&&-1==i.indexOf("version/5")||(r+=t(window).scrollTop()),/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)?r+t(window).scrollTop():/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)?r+t(window).scrollTop():n.top):r:n.top},isChromeMobileBrowser:function(){return-1!=navigator.userAgent.toLowerCase().indexOf("android")},isOperaMiniMobileBrowser:function(){var t=navigator.userAgent.toLowerCase();return-1!=t.indexOf("opera mini")||-1!=t.indexOf("opera mobi")},isOperaMiniBrowser:function(){return-1!=navigator.userAgent.toLowerCase().indexOf("opera mini")},isNewSafariMobileBrowser:function(){var t=navigator.userAgent.toLowerCase();return(-1!=t.indexOf("ipad")||-1!=t.indexOf("iphone")||-1!=t.indexOf("ipod"))&&-1!=t.indexOf("version/5")},isSafari4MobileBrowser:function(){var t=navigator.userAgent.toLowerCase();return(-1!=t.indexOf("ipad")||-1!=t.indexOf("iphone")||-1!=t.indexOf("ipod"))&&-1!=t.indexOf("version/4")},isWindowsPhone:function(){var t=navigator.userAgent.toLowerCase();return-1!=t.indexOf("windows phone")||-1!=t.indexOf("WPDesktop")||-1!=t.indexOf("ZuneWP7")||-1!=t.indexOf("msie 9")||-1!=t.indexOf("msie 11")||-1!=t.indexOf("msie 10")&&-1!=t.indexOf("touch")},isSafariMobileBrowser:function(){var t=navigator.userAgent.toLowerCase();return!!/(Android.*Chrome\/[.0-9]* (!?Mobile))/.exec(navigator.userAgent)||!!/(Android.*Chrome\/[.0-9]* Mobile)/.exec(navigator.userAgent)||-1!=t.indexOf("ipad")||-1!=t.indexOf("iphone")||-1!=t.indexOf("ipod")||-1!=t.indexOf("mobile safari")},isIPadSafariMobileBrowser:function(){return-1!=navigator.userAgent.toLowerCase().indexOf("ipad")},isMobileBrowser:function(){var t=navigator.userAgent.toLowerCase();return-1!=t.indexOf("ipad")||-1!=t.indexOf("iphone")||-1!=t.indexOf("android")},getTouches:function(t){if(t.originalEvent){if(t.originalEvent.touches&&t.originalEvent.touches.length)return t.originalEvent.touches;if(t.originalEvent.changedTouches&&t.originalEvent.changedTouches.length)return t.originalEvent.changedTouches}return t.touches||(t.touches=new Array,t.touches[0]=null!=t.originalEvent?t.originalEvent:t,null!=t.originalEvent&&t.pageX&&(t.touches[0]=t),"mousemove"==t.type&&(t.touches[0]=t)),t.touches},getTouchEventName:function(t){if(!this.isWindowsPhone())return t;if(-1!=navigator.userAgent.toLowerCase().indexOf("windows phone 7")){if(-1!=t.toLowerCase().indexOf("start"))return"MSPointerDown";if(-1!=t.toLowerCase().indexOf("move"))return"MSPointerMove";if(-1!=t.toLowerCase().indexOf("end"))return"MSPointerUp"}return-1!=t.toLowerCase().indexOf("start")?"pointerdown":-1!=t.toLowerCase().indexOf("move")?"pointermove":-1!=t.toLowerCase().indexOf("end")?"pointerup":void 0},dispatchMouseEvent:function(t,e,r){if(!this.simulatetouches){var n=document.createEvent("MouseEvent");n.initMouseEvent(t,!0,!0,e.view,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),null!=r&&r.dispatchEvent(n)}},getRootNode:function(t){for(;1!==t.nodeType;)t=t.parentNode;return t},setTouchScroll:function(t,e){this.enableScrolling||(this.enableScrolling=[]),this.enableScrolling[e]=t},touchScroll:function(e,r,n,i,s,o){if(null!=e){var a=this;this.scrolling||(this.scrolling=[]),this.scrolling[i]=!1;var l=!1,h=t(e),u=["select","input","textarea"];this.enableScrolling||(this.enableScrolling=[]),this.enableScrolling[i]=!0,i=i;var c,d,f,p,g,m,v,y,x,_,b,w,C,S,A=this.getTouchEventName("touchstart")+".touchScroll",k=this.getTouchEventName("touchend")+".touchScroll",T=this.getTouchEventName("touchmove")+".touchScroll";f=r;var j=0,q=0,N=0,E=0,M=s.jqxScrollBar("max"),O=function(){var t,e,r;e=(t=Date.now())-x,x=t,r=j-y;var n=q-c;y=j,c=q,g=!0,m=1e3*r/(1+e)*.8+.2*m,v=1e3*n/(1+e)*.8+.2*v},I=!1,D=function(e){if(!a.enableScrolling[i])return!0;if(-1===t.inArray(e.target.tagName.toLowerCase(),u)){j=o.jqxScrollBar("value"),q=s.jqxScrollBar("value");var r,n=a.getTouches(e),h=n[0];return 1==n.length&&a.dispatchMouseEvent("mousedown",h,a.getRootNode(h.target)),M=s.jqxScrollBar("max"),f=o.jqxScrollBar("max"),I=!1,g=!0,p=z(r=e),S=G(r),m=b=v=0,y=j,c=q,x=Date.now(),clearInterval(_),_=setInterval(O,100),N=j,E=q,l=!1,h.pageY,h.pageX,a.simulatetouches&&null!=h._pageY&&(h._pageY,h._pageX),a.scrolling[i]=!0,!0}};h.on?h.on(A,D):h.bind(A,D);var P=function(t,e){return j=t>f?f:t<0?0:t,n(null,t,0,0,e),t>f?"max":t<0?"min":"value"},R=function(t,e){return q=t>M?M:t<0?0:t,n(t,null,0,0,e),t>M?"max":t<0?"min":"value"},F=function(t){if(!a.enableScrolling[i])return!0;if(!a.scrolling[i])return!0;I&&(t.preventDefault(),t.stopPropagation());var e=a.getTouches(t);if(e.length>1)return!0;a.simulatetouches&&null!=e[0]._pageY&&e[0]._pageY;l=!0;var r=null==s||"hidden"!=s[0].style.visibility,n=null==o||"hidden"!=o[0].style.visibility;(r||n)&&(r||n)&&function(t){var e,i,s;if(g){e=z(t),s=G(t),d=S-s;var o="value";if((i=p-e)>2||i<-2)return p=e,o=P(j+i,t),O(),"min"==o&&0===N||"max"==o&&N===f||!n||(t.preventDefault(),t.stopPropagation(),I=!0,!1);if(d>2||d<-2)return S=s,o=R(q+d,t),O(),"min"==o&&0===E||"max"==o&&E===M||!r||(I=!0,t.preventDefault(),t.stopPropagation(),!1);t.preventDefault()}}(t)};h.on?h.on(T,F):h.bind(T,F);var L=function(t){if(!a.enableScrolling[i])return!0;var e=a.getTouches(t)[0];if(!a.scrolling[i])return!0;if(g=!1,clearInterval(_),m>10||m<-10?(b=.8*m,w=Math.round(j+b),x=Date.now(),requestAnimationFrame(U)):(v>10||v<-10)&&(b=.8*v,C=Math.round(q+b),x=Date.now(),requestAnimationFrame(W)),a.scrolling[i]=!1,!l){e=a.getTouches(t)[0];var r=a.getRootNode(e.target);return a.dispatchMouseEvent("mouseup",e,r),a.dispatchMouseEvent("click",e,r),!0}a.dispatchMouseEvent("mouseup",e,t.target)};if(this.simulatetouches){null!=t(window).on||t(window);var H=function(t){try{L(t)}catch(e){}a.scrolling[i]=!1};if(null!=t(window).on?t(document).on("mouseup.touchScroll",H):t(document).bind("mouseup.touchScroll",H),window.frameElement&&null!=window.top){var V=function(t){try{L(t)}catch(e){}a.scrolling[i]=!1};window.top.document&&(t(window.top.document).on?t(window.top.document).on("mouseup",V):t(window.top.document).bind("mouseup",V))}null!=t(document).on||t(document);var B=function(t){if(!a.scrolling[i])return!0;a.scrolling[i]=!1;var e=a.getTouches(t)[0],r=a.getRootNode(e.target);a.dispatchMouseEvent("mouseup",e,r),a.dispatchMouseEvent("click",e,r)};null!=t(document).on?t(document).on("touchend",B):t(document).bind("touchend",B)}h.on&&(h.on("dragstart",(function(t){t.preventDefault()})),h.on("selectstart",(function(t){t.preventDefault()}))),h.on?h.on(k+" touchcancel.touchScroll",L):h.bind(k+" touchcancel.touchScroll",L)}function z(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.originalEvent&&void 0!==t.originalEvent.clientY?t.originalEvent.clientY:a.getTouches(t)[0].clientY}function G(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.originalEvent&&void 0!==t.originalEvent.clientX?t.originalEvent.clientX:a.getTouches(t)[0].clientX}function U(){var t,e;b&&(t=Date.now()-x,(e=-b*Math.exp(-t/325))>.5||e<-.5?(P(w+e),requestAnimationFrame(U)):P(w))}function W(){var t,e;b&&(t=Date.now()-x,(e=-b*Math.exp(-t/325))>.5||e<-.5?(R(C+e),requestAnimationFrame(W)):R(C))}}}),t.jqx.cookie=t.jqx.cookie||{},t.extend(t.jqx.cookie,{cookie:function(e,r,n){if(arguments.length>1&&"[object Object]"!==String(r)){if(n=t.extend({},n),null==r&&(n.expires=-1),"number"==typeof n.expires){var i=n.expires,s=n.expires=new Date;s.setDate(s.getDate()+i)}return r=String(r),document.cookie=[encodeURIComponent(e),"=",n.raw?r:encodeURIComponent(r),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}var o,a=(n=r||{}).raw?function(t){return t}:decodeURIComponent;return(o=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie))?a(o[1]):null}}),t.jqx.string=t.jqx.string||{},t.extend(t.jqx.string,{replace:function(t,e,r){if(e===r)return this;for(var n=t,i=n.indexOf(e);-1!=i;)i=(n=n.replace(e,r)).indexOf(e);return n},contains:function(t,e){return null!=t&&null!=e&&-1!=t.indexOf(e)},containsIgnoreCase:function(t,e){return null!=t&&null!=e&&-1!=t.toString().toUpperCase().indexOf(e.toString().toUpperCase())},equals:function(t,e){return null!=t&&null!=e&&(t=this.normalize(t),e.length==t.length&&t.slice(0,e.length)==e)},equalsIgnoreCase:function(t,e){return null!=t&&null!=e&&(t=this.normalize(t),e.length==t.length&&t.toUpperCase().slice(0,e.length)==e.toUpperCase())},startsWith:function(t,e){return null!=t&&null!=e&&t.slice(0,e.length)==e},startsWithIgnoreCase:function(t,e){return null!=t&&null!=e&&t.toUpperCase().slice(0,e.length)==e.toUpperCase()},normalize:function(t){return 65279==t.charCodeAt(t.length-1)&&(t=t.substring(0,t.length-1)),t},endsWith:function(t,e){return null!=t&&null!=e&&(t=this.normalize(t)).slice(-e.length)==e},endsWithIgnoreCase:function(t,e){return null!=t&&null!=e&&(t=this.normalize(t)).toUpperCase().slice(-e.length)==e.toUpperCase()}}),t.extend(t.easing,{easeOutBack:function(t,e,r,n,i,s){return null==s&&(s=1.70158),n*((e=e/i-1)*e*((s+1)*e+s)+1)+r},easeInQuad:function(t,e,r,n,i){return n*(e/=i)*e+r},easeInOutCirc:function(t,e,r,n,i){return(e/=i/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+r:n/2*(Math.sqrt(1-(e-=2)*e)+1)+r},easeInOutSine:function(t,e,r,n,i){return-n/2*(Math.cos(Math.PI*e/i)-1)+r},easeInCubic:function(t,e,r,n,i){return n*(e/=i)*e*e+r},easeOutCubic:function(t,e,r,n,i){return n*((e=e/i-1)*e*e+1)+r},easeInOutCubic:function(t,e,r,n,i){return(e/=i/2)<1?n/2*e*e*e+r:n/2*((e-=2)*e*e+2)+r},easeInSine:function(t,e,r,n,i){return-n*Math.cos(e/i*(Math.PI/2))+n+r},easeOutSine:function(t,e,r,n,i){return n*Math.sin(e/i*(Math.PI/2))+r},easeInOutSine:function(t,e,r,n,i){return-n/2*(Math.cos(Math.PI*e/i)-1)+r}})}(s),function(t){t.event&&t.event.special&&t.extend(t.event.special,{close:{noBubble:!0},open:{noBubble:!0},cellclick:{noBubble:!0},rowclick:{noBubble:!0},tabclick:{noBubble:!0},selected:{noBubble:!0},expanded:{noBubble:!0},collapsed:{noBubble:!0},valuechanged:{noBubble:!0},expandedItem:{noBubble:!0},collapsedItem:{noBubble:!0},expandingItem:{noBubble:!0},collapsingItem:{noBubble:!0}}),t.fn.extend&&t.fn.extend({ischildof:function(e){if(!t(this).parents)return e.element.contains(this.element);for(var r=t(this).parents().get(),n=0;n<r.length;n++)if("string"!=typeof e){if(void 0!==e&&r[n]==e[0])return!0}else if(void 0!==e&&t(r[n]).is(e))return!0;return!1}}),t.fn.jqxProxy=function(){var e=t(this).data().jqxWidget,r=Array.prototype.slice.call(arguments,0),n=e.element;return n||(n=e.base.element),t.jqx.jqxWidgetProxy(e.widgetName,n,r)};var e=t.originalVal=t.fn.val;t.fn.val=function(r){return void 0===r?t(this).hasClass("jqx-widget")&&(n=t(this).data().jqxWidget)&&n.val?n.val():this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0&&(n=t(this).find(".jqx-widget").data().jqxWidget)&&n.val?n.val():e.call(this):t(this).hasClass("jqx-widget")&&(n=t(this).data().jqxWidget)&&n.val?2!=arguments.length?n.val(r):n.val(r,arguments[1]):this[0]&&this[0].tagName.toLowerCase().indexOf("angular")>=0&&(n=t(this).find(".jqx-widget").data().jqxWidget)&&n.val?2!=arguments.length?n.val(r):n.val(r,arguments[1]):e.call(this,r);var n},t.fn.modal&&t.fn.modal.Constructor&&(t.fn.modal.Constructor.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy((function(e){if(this.$element[0]!==e.target&&!this.$element.has(e.target).length){if(t(e.target).parents().hasClass("jqx-popup"))return!0;this.$element.trigger("focus")}}),this))}),t.fn.coord=function(e){var r,n,i={top:0,left:0},s=this[0],o=s&&s.ownerDocument;if(o){if(!t.contains(r=o.documentElement,s))return i;var a;void 0!==typeof s.getBoundingClientRect&&(i=s.getBoundingClientRect()),n=t.isWindow(a=o)?a:9===a.nodeType&&(a.defaultView||a.parentWindow);var l=0,h=0,u=navigator.userAgent.toLowerCase();if((-1!=u.indexOf("ipad")||-1!=u.indexOf("iphone"))&&(l=2),1==e&&"static"!=document.body.style.position&&""!=document.body.style.position){var c=t(document.body).coord();l=-c.left,h=-c.top}return{top:h+i.top+(n.pageYOffset||r.scrollTop)-(r.clientTop||0),left:l+i.left+(n.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}}},t.jqx.ripplers=[],t.jqx.ripple=function(e,r,n){r||(r=e);var i=t(e);i.append("<span class='ink'></span>");for(var s=i.find(".ink"),o=!1,a=0;a<t.jqx.ripplers.length;a++)if(t.jqx.ripplers[a].element[0]===e[0]){o=!0;break}if(o||t.jqx.ripplers.push({ink:s,element:e,hostElement:r,hostElementType:n}),"checkbox"===n||"radiobutton"===n){var l=Math.max(i.outerWidth(),i.outerHeight());s.css({height:l,width:l});var h=i.width()/2-s.width()/2,u=i.height()/2-s.height()/2;s.css({top:u+"px",left:h+"px"})}1===t.jqx.ripplers.length&&t(document).on("mouseup",(function(e){t.jqx.ripple.mouseCaptured=!1;for(var r=0;r<t.jqx.ripplers.length;r++){var i=t.jqx.ripplers[r];i.ink.removeClass("active"),i.element.removeClass("active"),"checkbox"!==n&&"radiobutton"!==n&&i.ink.hasClass("animate")&&i.ink.removeClass("animate")}})),r.off("mousedown.ripple"),r.on("mousedown.ripple",(function(i){var s=t(e);t.jqx.ripple.mouseCaptured=!0,setTimeout((function(){0==s.find(".ink").length&&s.append("<span class='ink'></span>");var o=s.find(".ink");if(o.removeClass("animate"),!o.height()&&!o.width()){var a=Math.max(s.outerWidth(),s.outerHeight());o.css({height:a,width:a})}if("checkbox"===n||"radiobutton"===n){if("checkbox"===n&&r.jqxCheckBox("disabled"))return;if("radiobutton"===n&&r.jqxRadioButton("disabled"))return;var l=s.width()/2-o.width()/2,h=s.height()/2-o.height()/2;return o.css({top:h+"px",left:l+"px"}).addClass("animate"),void o.on("animationend",(function(){t.jqx.ripple.mouseCaptured&&(o.removeClass("animate"),o.addClass("active"),e.addClass("active"))}))}l=i.pageX-s.offset().left-o.width()/2,h=i.pageY-s.offset().top-o.height()/2,o.css({top:h+"px",left:l+"px"}).addClass("animate")}))}))}}(s)},lqUE:function(module,exports){!function($){$.jqx.jqxWidget("jqxBarGauge","",{}),$.extend($.jqx._jqxBarGauge.prototype,{defineInstance:function(){var t={animationDuration:300,backgroundColor:"#e0e0e0",barSpacing:4,baseValue:null,colorScheme:"scheme01",customColorScheme:null,endAngle:-45,disabled:!1,formatFunction:null,geometry:{startAngle:225,endAngle:-45},height:400,labels:null,min:0,max:100,rendered:null,relativeInnerRadius:.3,startAngle:225,title:null,tooltip:null,values:[],width:400,useGradient:!0,_intervalArray:[],_drawnValues:[],_drawnSlices:[],_titleTemplate:{text:"",font:{color:"#232323",family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana",opacity:1,size:28,weight:100},horizontalAlignment:"center",verticalAlignment:"top",placeholderSize:null,margin:{bottom:0,left:0,right:0,top:0},subtitle:{text:"",font:{color:"#232323",family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana",opacity:1,size:16,weight:100}}},_labelTemplate:{connectorColor:null,connectorWidth:1,formatFunction:function(t){return t},font:{color:null,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana",size:16,weight:400},indent:20,precision:2,visible:!0},_tooltipTemplate:{classname:"",formatFunction:function(t){return t},visible:!1,precision:0},_colorSchemes:[{name:"scheme01",colors:["#307DD7","#AA4643","#89A54E","#71588F","#4198AF"]},{name:"scheme02",colors:["#7FD13B","#EA157A","#FEB80A","#00ADDC","#738AC8"]},{name:"scheme03",colors:["#E8601A","#FF9639","#F5BD6A","#599994","#115D6E"]},{name:"scheme04",colors:["#D02841","#FF7C41","#FFC051","#5B5F4D","#364651"]},{name:"scheme05",colors:["#25A0DA","#309B46","#8EBC00","#FF7515","#FFAE00"]},{name:"scheme06",colors:["#0A3A4A","#196674","#33A6B2","#9AC836","#D0E64B"]},{name:"scheme07",colors:["#CC6B32","#FFAB48","#FFE7AD","#A7C9AE","#888A63"]},{name:"scheme08",colors:["#3F3943","#01A2A6","#29D9C2","#BDF271","#FFFFA6"]},{name:"scheme09",colors:["#1B2B32","#37646F","#A3ABAF","#E1E7E8","#B22E2F"]},{name:"scheme10",colors:["#5A4B53","#9C3C58","#DE2B5B","#D86A41","#D2A825"]},{name:"scheme11",colors:["#993144","#FFA257","#CCA56A","#ADA072","#949681"]},{name:"scheme12",colors:["#105B63","#EEEAC5","#FFD34E","#DB9E36","#BD4932"]},{name:"scheme13",colors:["#BBEBBC","#F0EE94","#F5C465","#FA7642","#FF1E54"]},{name:"scheme14",colors:["#60573E","#F2EEAC","#BFA575","#A63841","#BFB8A3"]},{name:"scheme15",colors:["#444546","#FFBB6E","#F28D00","#D94F00","#7F203B"]},{name:"scheme16",colors:["#583C39","#674E49","#948658","#F0E99A","#564E49"]},{name:"scheme17",colors:["#142D58","#447F6E","#E1B65B","#C8782A","#9E3E17"]},{name:"scheme18",colors:["#4D2B1F","#635D61","#7992A2","#97BFD5","#BFDCF5"]},{name:"scheme19",colors:["#844341","#D5CC92","#BBA146","#897B26","#55591C"]},{name:"scheme20",colors:["#56626B","#6C9380","#C0CA55","#F07C6C","#AD5472"]},{name:"scheme21",colors:["#96003A","#FF7347","#FFBC7B","#FF4154","#642223"]},{name:"scheme22",colors:["#5D7359","#E0D697","#D6AA5C","#8C5430","#661C0E"]},{name:"scheme23",colors:["#16193B","#35478C","#4E7AC7","#7FB2F0","#ADD5F7"]},{name:"scheme24",colors:["#7B1A25","#BF5322","#9DA860","#CEA457","#B67818"]},{name:"scheme25",colors:["#0081DA","#3AAFFF","#99C900","#FFEB3D","#309B46"]},{name:"scheme26",colors:["#0069A5","#0098EE","#7BD2F6","#FFB800","#FF6800"]},{name:"scheme27",colors:["#FF6800","#A0A700","#FF8D00","#678900","#0069A5"]}],_colors:["#307DD7","#AA4643","#89A54E","#71588F","#4198AF"],_colorNames:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},_dimensions:{},_ie:$.jqx.browser.msie,_oldIEbrowser:$.jqx.browser.msie&&$.jqx.browser.version<=8,_ie8:$.jqx.browser.msie&&8==$.jqx.browser.version,_ie7:$.jqx.browser.msie&&$.jqx.browser.version<8,_centerX:null,_centerY:null,_coordinatePlane:null,_geometry:{startAngle:-45,baseAngle:-45,fix:0,endAngle:225},_userValues:[],_valuesToDegrees:[],_oldValues:[],_oldValuesToDegrees:[],_temporaryValuesToDegrees:[],_temporaryValues:[],_temporaryOldAngle:[],_valuesLength:0,_oldValuesLength:0,_alignmentIE:null,_title:{},_backgroundColor:"#e0e0e0",_label:{},_tooltip:{},_renderedValues:0,_barWidth:35,_barStartAt:30,_barGaugeSlices:[],_barGaugeBackgroundSlices:[],_barGaugeSlicesStrokeWidth:0,_barGaugeLabelLines:[],_barGaugeLabelText:[],_barGaugeTitle:null,_barGaugeSubTitle:null,_barGaugeTooltip:$("<div></div>"),_measuredText:$("<div class='jqx-bar-gauge-measure-text'></div>"),_measuredTextId:"",renderer:null,_barGaugeRadius:null,_barGaugeFigureRadius:null,_labelPositioningRadius:null,_placeholderSize:50,_rendering:!1,_titleLines:0,_subTitleLines:0,_initialized:!1,_events:["initialized","valueChanged","tooltipOpen","tooltipClose","drawStart","drawEnd"]};return this===$.jqx._jqxBarGauge.prototype?t:($.extend(!0,this,t),t)},createInstance:function(){this._createBarGauge()},_createBarGauge:function(){this._getLiquidDimensions(),this._addIEPolyfills(),this._barGaugeTooltip.css({display:"none"}),$(this.host).empty(),this._attachCustomColors(),this.geometry.startAngle=this.startAngle,this.geometry.endAngle=this.endAngle,this._validateGeometry(),this._validateTitle(),this._validateLabel(),this._validateValues(),this._validateTooltip(),this._validateAnimationDuration(),this._transformValuesToAngles(),this._getColorScheme(),0===this.animationDuration||this._ie8||this._ie7?this._drawStaticBarGauge():this._drawDynamicBarGauge(),this._raiseEvent("4"),this._createTooltip(),this._addCSS(),this._ie&&(this._removeBarGaugeTitle(),this._removeBarGaugeSubTitle(),this._drawBarGaugeTitle()),this._addEventHandlers()},_initRenderer:function(t){if(!$.jqx.createRenderer)throw"jqxBarGauge: Please include a reference to jqxdraw.js";return $.jqx.createRenderer(this,t)},_validateValues:function(){var t;0===this._userValues.length&&(this._userValues=this.values.slice()),0===this._oldValues.length&&(this._oldValues=this.values.slice()),this._valuesLength=this.values.length;for(var e=0;e<this._valuesLength;e++)this.values[e]=parseFloat(this.values[e]),this.values[e]<this.startValue||isNaN(this.values[e])?this.values[e]=this.startValue:this.values[e]>this.max&&(this.values[e]=this.max),this._drawnValues[e]=!1,this._drawnSlices[e]=!1;this.baseValue<=this.startValue||null===this.baseValue?this.baseValue=this.min:this.baseValue>this.max&&(this.baseValue=this.max),this.relativeInnerRadius>=1?this.relativeInnerRadius=.99:this.relativeInnerRadius<0&&(this.relativeInnerRadius=0),this._calculateBarGaugeRadius(),this.barSpacing>(t=this._barGaugeRadius*(1-this.relativeInnerRadius)/(this._valuesLength||1)-.01)&&(this.barSpacing=t),this._backgroundColor=this._validateColor(this.backgroundColor,this._backgroundColor)},_attachCustomColors:function(){var t=this._colorSchemes.length,e=!1;if(null!==this.customColorScheme&&null!==this.customColorScheme.colors&&null!==this.customColorScheme.name){for(var r=0;r<t;r++)this.customColorScheme.name===this._colorSchemes[r].name&&(this._colorSchemes[r].colors=this.customColorScheme.colors.slice(),e=!0);e||this._colorSchemes.push(this.customColorScheme)}},_getLiquidDimensions:function(){$.isEmptyObject(this._dimensions)&&(this._dimensions.width=this.width,this._dimensions.height=this.height),"string"==typeof this._dimensions.width&&-1!==this._dimensions.width.indexOf("%")&&(this.width=parseInt(this._dimensions.width,10)/100*$("#"+this.element.id).parent().width()),"string"==typeof this._dimensions.height&&-1!==this._dimensions.height.indexOf("%")&&(this.height=parseInt(this._dimensions.height,10)/100*$("#"+this.element.id).parent().height())},_getLongestValue:function(){for(var t=this.values.length,e="",r=0,n=0;n<t;n++)this.values[n].toString().length>r&&(r=(e=this.values[n]).toString().length);return e=this._calculatePrecision(this._label.precision,e),null!=this._label.formatFunction&&"function"==typeof this._label.formatFunction&&(e=this._label.formatFunction(e)),e.toUpperCase()},_validateGeometry:function(){var t=parseFloat(this.geometry.startAngle),e=parseFloat(this.geometry.endAngle);Math.abs(t)>=360&&(t%=360),t<0&&(t=360+t),Math.abs(e)>=360&&(e%=360),e<0&&(e=360+e),this.geometry.startAngle=t,this.geometry.endAngle=e},_validateColor:function(t,e){return null==t?e:/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)?t:/(^[0-9A-F]{6}$)|(^[0-9A-F]{3}$)/i.test(t)?"#"+t:void 0!==this._colorNames[t.toLowerCase()]?this._colorNames[t.toLowerCase()]:"transparent"},_validateTooltip:function(){null==this.tooltip||"object"!=typeof this.tooltip?this._tooltip=this._tooltipTemplate:(this._tooltip.visible=!1!==this.tooltip.visible&&(this.tooltip.visible||this._tooltipTemplate.visible),this._tooltip.classname=this.tooltip.classname||this._tooltipTemplate.classname,this._tooltip.formatFunction="function"==typeof this.tooltip.formatFunction?this.tooltip.formatFunction:this._tooltipTemplate.formatFunction,this._tooltip.precision=null==this.tooltip.precision?this._tooltipTemplate.precision:parseInt(this.tooltip.precision,10)<=0?0:parseInt(this.tooltip.precision,10))},_validateTitle:function(){var t;if(this._title=this._titleTemplate,this._measuredTextId=this.element.id+"measuredText","string"==typeof this.title?this._title.text=this.title:"number"==typeof this.title?this._title.text=String(this.title):"object"==typeof this.title&&null!=this.title&&(this._title.text=this.title.text||this._titleTemplate.text,this._title.horizontalAlignment=this.title.horizontalAlignment||this._titleTemplate.horizontalAlignment,this._title.verticalAlignment=this.title.verticalAlignment||this._titleTemplate.verticalAlignment),null==this.title||null==this.title.font?this._title.font=this._titleTemplate.font:(this._title.font.family=this.title.font.family||this._titleTemplate.font.family,this._title.font.opacity=this.title.font.opacity||this._titleTemplate.font.opacity,this._title.font.size=this.title.font.size||this._titleTemplate.font.size,this._title.font.weight=this.title.font.weight||this._titleTemplate.font.weight,(this._ie7||this._ie8)&&this._title.font.weight>100&&(this._title.font.weight="bold"),this._title.font.color=this._validateColor(this.title.font.color,this._titleTemplate.font.color)),null==this.title||null==this.title.margin)this._title.margin=this._titleTemplate.margin;else if("object"!=typeof this.title.margin){var e=parseInt(this.title.margin,10);this._title.margin.top=e,this._title.margin.right=e,this._title.margin.bottom=e,this._title.margin.left=e}else this._title.margin.top=0===this.title.margin.top?0:this.title.margin.top||this._titleTemplate.margin.top,this._title.margin.right=0===this.title.margin.right?0:this.title.margin.right||this._titleTemplate.margin.right,this._title.margin.bottom=0===this.title.margin.bottom?0:this.title.margin.bottom||this._titleTemplate.margin.bottom,this._title.margin.left=0===this.title.margin.left?0:this.title.margin.left||this._titleTemplate.margin.left;null==this.title||null==this.title.subtitle?(this._title.subtitle.text=this._titleTemplate.subtitle.text,this._title.subtitle.font=this._titleTemplate.subtitle.font):"object"!=typeof this.title.subtitle?(this._title.subtitle.text=String(this.title.subtitle),this._title.subtitle.font=this._titleTemplate.subtitle.font):null==this.title.subtitle.font?(this._title.subtitle.text=String(this.title.subtitle.text),this._title.subtitle.font=this._titleTemplate.subtitle.font):(this._title.subtitle.text=String(this.title.subtitle.text),this._title.subtitle.font.color=this.title.subtitle.font.color||this._titleTemplate.subtitle.font.color,this._title.subtitle.font.family=this.title.subtitle.font.family||this._titleTemplate.subtitle.font.family,this._title.subtitle.font.opacity=this.title.subtitle.font.opacity||this._titleTemplate.subtitle.font.opacity,this._title.subtitle.font.size=this.title.subtitle.font.size||this._titleTemplate.subtitle.font.size,this._title.subtitle.font.weight=this.title.subtitle.font.weight||this._titleTemplate.subtitle.font.weight,(this._ie7||this._ie8)&&this._title.subtitle.font.weight>100&&(this._title.subtitle.font.weight="bold")),""===this._title.text?t=0:""===this._title.subtitle.text||null==this._title.subtitle.text?(this._titleLines=null!==this._title.text.match(/<br>/g)?this._title.text.match(/<br>/g).length+1:1,t=this._title.font.size*this._titleLines+this._title.margin.top+this._title.margin.bottom):(this._titleLines=null!==this._title.text.match(/<br>/g)?this._title.text.match(/<br>/g).length+1:1,this._subTitleLines=null!==this._title.subtitle.text.match(/<br>/g)?this._title.text.match(/<br>/g).length+1:1,t=this._title.font.size*this._titleLines+this._title.subtitle.font.size*this._subTitleLines+this._title.margin.top+this._title.margin.bottom),this._title.placeholderSize=null==this.title||null==this.title.placeholderSize?t||.05*this.height:this.title.placeholderSize},_validateLabel:function(){null==this.labels||"object"!=typeof this.labels?this._label=this._labelTemplate:(this._label.connectorColor=this._validateColor(this.labels.connectorColor,this._labelTemplate.connectorColor),this._label.connectorWidth=this.labels.connectorWidth||this._labelTemplate.connectorWidth,this._label.formatFunction=this.labels.formatFunction||this._labelTemplate.formatFunction,this._label.precision=null==this.labels.precision||"number"!=typeof this.labels.precision?this._labelTemplate.precision:this.labels.precision,this._label.precision>15?this._label.precision=15:this._label.precision<0&&(this._label.precision=0),this._label.visible=null==this.labels.visible?this._labelTemplate.visible:!1!==this.labels.visible,this._label.indent="number"!=typeof this.labels.indent&&"string"!=typeof this.labels.indent||this.labels.indent<=0?0:"number"!=typeof this.labels.indent&&"string"!=typeof this.labels.indent||this.labels.indent<=0?0:this.labels.indent,null==this.labels.font||"object"!=typeof this.labels.font?this._label.font=this._labelTemplate.font:(this._label.font={},this._label.font.color=this._validateColor(this.labels.font.color,this._labelTemplate.font.color),this._label.font.family=this.labels.font.family||this._labelTemplate.font.family,this._label.font.size=this.labels.font.size||this._labelTemplate.font.size,this._label.font.weight=this.labels.font.weight||this._labelTemplate.font.weight,(this._ie7||this._ie8)&&this._label.font.weight>100&&(this._label.font.weight="bold")))},_validateAnimationDuration:function(){var t=parseInt(this.animationDuration,10);this.animationDuration=this._oldIEbrowser?0:t>0?t:0},_transformValuesToAngles:function(){var t,e,r,n;this._placeholderSize=this._title.placeholderSize||this._placeholderSize,this.geometry.endAngle<this.geometry.startAngle?(this._geometry.startAngle=parseFloat(this.geometry.endAngle)%360,this._geometry.endAngle=parseFloat(this.geometry.startAngle)%360):(this._geometry.startAngle=parseFloat(this.geometry.endAngle)%360-360,this._geometry.endAngle=parseFloat(this.geometry.startAngle)%360),(t=this._geometry.endAngle-this._geometry.startAngle)>360&&(this._geometry.startAngle=this._geometry.startAngle+(t-360)),null!=this.baseValue&&this.baseValue>=this.min&&this.baseValue<=this.max&&(this._geometry.baseAngle=(this.baseValue-this.min)*(this._geometry.endAngle-this._geometry.startAngle)/(this.max-this.min)+this._geometry.startAngle,this._geometry.fix=this.geometry.startAngle+this.geometry.endAngle-180),e=this._getLongestValue(),r=this._measureText(e,this._label.font.size,this._label.font.family,this._label.font.weight),(n=this._barGaugeRadius-1.2*this._label.indent-1.2*r.height)+r.width+1.2*this._label.indent>this.width/2&&(n=this._barGaugeRadius-1.2*this._label.indent-r.width),!1===this._label.visible&&(n=this._barGaugeRadius),(n*=.98)<0&&(n=0),this._barGaugeFigureRadius=n,this._barWidth=n*(1-this.relativeInnerRadius)/this._valuesLength-this.barSpacing,this._barStartAt=n*this.relativeInnerRadius,this._labelPositioningRadius=this._barStartAt+this._valuesLength*(this._barWidth+this.barSpacing)-this.barSpacing+this._label.indent;for(var i=0;i<this._valuesLength;i++)this._valuesToDegrees[i]=(this.values[i]-this.min)/(this.max-this.min)*(this._geometry.endAngle-this._geometry.startAngle)+this._geometry.startAngle;$(this.host).width(this.width),$(this.host).height(this.height),this._initialized||(this._initRenderer(this.host),this._initialized=!0)},_measureRadius:function(){var t=this._getLongestValue(),e=this._measureText(t,this._label.font.size,this._label.font.family,this._label.font.weight),r=this._barGaugeRadius-1.2*this._label.indent-1.2*e.height;r+e.width+1.2*this._label.indent>this.width/2&&(r=this._barGaugeRadius-1.2*this._label.indent-e.width),!1===this._label.visible&&(r=this._barGaugeRadius),(r*=.98)<0&&(r=0),this._barWidth=r*(1-this.relativeInnerRadius)/this._valuesLength-this.barSpacing,this._barStartAt=r*this.relativeInnerRadius,this._labelPositioningRadius=this._barStartAt+this._valuesLength*(this._barWidth+this.barSpacing)-this.barSpacing+this._label.indent},_drawEmptyBarGauge:function(){var t;this._barGaugeBackgroundSlices[0]=this.renderer.pieslice(this._centerX,this._centerY,this.relativeInnerRadius*(t=""===this._title.text?this._barGaugeRadius:this._barGaugeFigureRadius),t,this._geometry.startAngle,this._geometry.endAngle,0,{fill:this._backgroundColor,stroke:this._backgroundColor,"stroke-width":this._barGaugeSlicesStrokeWidth}),this.renderer.attr(this._barGaugeBackgroundSlices[0],{id:this.element.id+"BackgroundSlice0"}),this.renderer.attr(this._barGaugeBackgroundSlices[0],{class:"jqx-bar-gauge-background-slice"}),this._rendered(),this._oldValuesLength=0,this._oldValues.length=0},_drawBarGaugeLayout:function(){var t=this._barStartAt,e=t+this._barWidth;if(this._barGaugeSlicesStrokeWidth=0,this._centerX=this.width/2,this._centerY=""===this._title.text?this.height/2:"top"===this._title.verticalAlignment?(this.height+this._title.placeholderSize)/2:(this.height-this._title.placeholderSize)/2,this._valuesLength>0)for(var r=0;r<this._valuesLength;r++)this._barGaugeBackgroundSlices[r]=this.renderer.pieslice(this._centerX,this._centerY,t,e,this._geometry.startAngle,this._geometry.endAngle,0,{fill:this._backgroundColor,stroke:this._backgroundColor,"stroke-width":this._barGaugeSlicesStrokeWidth}),this.renderer.attr(this._barGaugeBackgroundSlices[r],{id:this.element.id+"BackgroundSlice"+r}),this.renderer.attr(this._barGaugeBackgroundSlices[r],{class:"jqx-bar-gauge-background-slice"}),e=(t=e+this.barSpacing)+this._barWidth;else this._drawEmptyBarGauge()},_drawBarGaugeElementsWithBase:function(){var t,e,r=180-this._geometry.baseAngle+this._geometry.fix;this._renderedValues=0,e=(t=this._barStartAt)+this._barWidth;for(var n=[],i=0;i<this._valuesLength;i++){n[i]=this.baseValue;var s=this._colors[i];this.formatFunction&&(s=this.formatFunction(this.values[i],i,s)),this._ie7||this._ie8?(r=180-this._valuesToDegrees[i]+this._geometry.fix,this._barGaugeSlices[i]=this._valuesToDegrees[i]>this._geometry.baseAngle?this.renderer.pieslice(this._centerX,this._centerY,t,e,180-this._geometry.baseAngle+this._geometry.fix,r,0,{fill:s,stroke:s,"stroke-width":this._barGaugeSlicesStrokeWidth}):this.renderer.pieslice(this._centerX,this._centerY,t,e,r,180-this._geometry.baseAngle+this._geometry.fix,0,{fill:s,stroke:s,"stroke-width":this._barGaugeSlicesStrokeWidth}),this.renderer.attr(this._barGaugeSlices[i],{id:this.element.id+"Slice"+i}),this.renderer.attr(this._barGaugeSlices[i],{class:"jqx-bar-gauge-slice"}),this._drawnSlices[i]=!0,!0===this._label.visible&&(this._drawLabelsLine(t,r,i),this._drawLabelsText(r,i)),this._rendered()):(this.useGradient&&(s=this.renderer._toLinearGradient(s,!0,[[0,1.4],[100,1]])),this._barGaugeSlices[i]=this.renderer.pieslice(this._centerX,this._centerY,t,e,r+.01,r,0,{fill:s,stroke:s,"stroke-width":this._barGaugeSlicesStrokeWidth}),this.renderer.attr(this._barGaugeSlices[i],{id:this.element.id+"Slice"+i}),this.renderer.attr(this._barGaugeSlices[i],{class:"jqx-bar-gauge-slice"}),this._drawnSlices[i]=!0),this.renderer.attr(this._barGaugeSlices[i],{id:this.element.id+"Slice"+i}),this.renderer.attr(this._barGaugeSlices[i],{class:"jqx-bar-gauge-slice"}),e=(t=e+this.barSpacing)+this._barWidth}for(this._oldValues=n,this._temporaryValues=n.slice(0),this._oldValuesToDegrees.length=0,i=0;i<this.values.length;i++)this._oldValuesToDegrees[i]=this._geometry.baseAngle,this._temporaryValuesToDegrees[i]=this._geometry.baseAngle;this._rendering=!0,this._redrawWithNewValuesArray(this.values,this._oldValues)},_drawBarGaugeElementWithBase:function(gaugeLayerStart,change,amount,changeContition,valueIndex){var that=this,newPieSlicePath,angleStepPercent,angleDiff,valueStep,animation=that._calculateAnimationInterval(valueIndex,!1),gaugeLayerEnd=gaugeLayerStart+that._barWidth,updatedItem=that._barGaugeSlices[valueIndex],updatedAngle=that._valuesToDegrees[valueIndex];function calculateNewPieSlicePath(){newPieSlicePath=-1===amount?$.jqx.commonRenderer.pieSlicePath(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,change,180-that._geometry.baseAngle+that._geometry.fix,0):$.jqx.commonRenderer.pieSlicePath(that._centerX,that._centerY,gaugeLayerStart,gaugeLayerEnd,180-that._geometry.baseAngle+that._geometry.fix,change,0)}0===that.animationDuration&&(change=180-updatedAngle+that._geometry.fix),angleDiff=Math.abs(that._geometry.baseAngle-updatedAngle),0===angleDiff&&(angleDiff=.01),angleStepPercent=Math.abs(amount/animation.smoothCoef/angleDiff),valueStep=angleStepPercent*Math.abs(that.baseValue-that.values[valueIndex]),isNaN(that._temporaryValues[valueIndex])&&(that._temporaryValues[valueIndex]=that.values[valueIndex]),isNaN(that._temporaryValuesToDegrees[valueIndex])&&(that._temporaryValuesToDegrees[valueIndex]=that._valuesToDegrees[valueIndex]),that._intervalArray[valueIndex]=setInterval((function(){calculateNewPieSlicePath(),eval(changeContition)&&!that.disabled?(that.renderer.attr(updatedItem,{d:newPieSlicePath}),change+=amount/animation.smoothCoef,that._temporaryValuesToDegrees[valueIndex]=(180-change+that._geometry.fix)%360,that._temporaryValues[valueIndex]=that._temporaryValues[valueIndex]+amount*valueStep):(change=180-updatedAngle+that._geometry.fix,that._temporaryValuesToDegrees[valueIndex]=updatedAngle%360,that._temporaryValues[valueIndex]=that.values[valueIndex],calculateNewPieSlicePath(),that.renderer.attr(updatedItem,{d:newPieSlicePath}),clearInterval(that._intervalArray[valueIndex]),that._renderedValues++,that._renderedValues===that.values.length&&that._rendered())}),animation.interval/animation.smoothCoef)},_drawStaticBarGaugeElementsWithBase:function(){var t,e,r,n;e=(t=this._barStartAt)+this._barWidth;for(var i=0;i<this._valuesLength;i++){n=this._valuesToDegrees[i]||this._geometry.baseAngle,this._oldValues[i]=this.values[i]||this.baseValue,r=180-n+this._geometry.fix;var s=this._colors[i];this.useGradient&&(s=this.renderer._toLinearGradient(s,!0,[[0,1.4],[100,1]])),this._barGaugeSlices[i]=this._valuesToDegrees[i]<this._geometry.baseAngle?this.renderer.pieslice(this._centerX,this._centerY,t,e,180-this._geometry.baseAngle+this._geometry.fix,r,0,{fill:s,stroke:s,"stroke-width":this._barGaugeSlicesStrokeWidth}):this.renderer.pieslice(this._centerX,this._centerY,t,e,r,180-this._geometry.baseAngle+this._geometry.fix,0,{fill:s,stroke:s,"stroke-width":this._barGaugeSlicesStrokeWidth}),this.renderer.attr(this._barGaugeSlices[i],{id:this.element.id+"Slice"+i}),this.renderer.attr(this._barGaugeSlices[i],{class:"jqx-bar-gauge-slice"}),this._drawnSlices[i]=!0,e=(t=e+this.barSpacing)+this._barWidth}this._removeLabels(),this._addLabels()},_addLabels:function(t,e,r){var n,i,s,o=this._barStartAt,a=o+this._barWidth;for(t||(t=this._valuesToDegrees),s=0;s<this._valuesLength;s++)i=s,null==r||s===r?(n=180-t[i]+this._geometry.fix,!0===this._label.visible&&!1===this.disabled&&(this._drawLabelsLine(o,n,i),e&&void 0!==e[i]?this._drawLabelsText(n,i,e[i]):this._drawLabelsText(n,i)),a=(o=a+this.barSpacing)+this._barWidth):a=(o=a+this.barSpacing)+this._barWidth},_removeLabels:function(t){for(var e=0;e<this._barGaugeLabelText.length;e++)null!=t&&e!=t||($(this._barGaugeLabelLines[e]).remove(),$(this._barGaugeLabelText[e]).remove(),this._barGaugeLabelLines[e]=null,this._barGaugeLabelText[e]=null)},_removeBarGaugeSlices:function(){this._removeBarGaugeBackgroundSlices(),this._removeBarGaugeForegroundSlices()},_removeBarGaugeBackgroundSlices:function(){for(var t=Math.max(this._valuesLength,this._oldValuesLength),e=0;e<t;e++)this._oldIEbrowser&&$(this._barGaugeBackgroundSlices[e]).remove(),this._barGaugeBackgroundSlices[e]=null,this._drawnSlices[e]=!1;$("#"+this.element.id+" .jqx-bar-gauge-background-slice").remove()},_removeBarGaugeForegroundSlices:function(){for(var t=Math.max(this._valuesLength,this._oldValuesLength),e=0;e<t;e++)!0===this._drawnSlices[e]&&(this._oldIEbrowser&&$(this._barGaugeSlices[e]).remove(),this._barGaugeSlices[e]=null,this._drawnSlices[e]=!1);$("#"+this.element.id+" .jqx-bar-gauge-slice").remove()},_removeBarGaugeTitle:function(){this._oldIEbrowser&&this._barGaugeTitle&&$(this._barGaugeTitle).remove(),$("#"+this.element.id+" .jqx-bar-gauge-title").remove()},_removeBarGaugeSubTitle:function(){this._oldIEbrowser&&this._barGaugeSubTitle&&$(this._barGaugeSubTitle).remove(),$("#"+this.element.id+" .jqx-bar-gauge-subtitle").remove()},_renderElements:function(){var t,e,r;e=(t=this._barStartAt)+this._barWidth,this._rendering=!0,this._renderedValues=0,this._renderingValues=0;var n=!1;if(!this.disabled)for(e=(t=this._barStartAt)+this._barWidth,r=0;r<this._valuesLength;r++)this.values[r]>this._oldValues[r]?(this._renderElement(t,e,1,"(oldAngle < newAngle)",r,!0),n=!0):this.values[r]<this._oldValues[r]&&(this._renderElement(t,e,-1,"(oldAngle > newAngle)",r,!1),n=!0),e=(t=e+this.barSpacing)+this._barWidth;n||this._rendered()},clearIntervals:function(){for(var t=this._intervalArray.length,e=0;e<t;e++)clearInterval(this._intervalArray[e]);this._intervalArray.length=0},_renderElement:function(t,e,r,n,i,s){var o,a,l=this;l._renderingValues++;var h=l._oldValues[i],u=l.values[i],c=l._valuesToDegrees[i],d=l._oldValuesToDegrees[i],f=l._barGaugeSlices[i],p=l._calculateAnimationInterval(i,!0),g=Math.abs(c-d),m=Math.abs(r/p.smoothCoef/g)*Math.abs(u-h),v=p.interval/p.smoothCoef;isNaN(l._temporaryValues[i])&&(l._temporaryValues[i]=h),isNaN(l._temporaryValuesToDegrees[i])&&(l._temporaryValuesToDegrees[i]=(180-d+l._geometry.fix)%360),isNaN(l._temporaryOldAngle[i])&&(l._temporaryOldAngle[i]=d);var y=function(){var n,h,u=l._valuesToDegrees[i];n=180-d+l._geometry.fix,h=180-l._geometry.baseAngle+l._geometry.fix,1===r?s&&(o=l._geometry.baseAngle<d?$.jqx.commonRenderer.pieSlicePath(l._centerX,l._centerY,t,e,n,h,0):$.jqx.commonRenderer.pieSlicePath(l._centerX,l._centerY,t,e,h,n,0)):s||(o=l._geometry.baseAngle<d?$.jqx.commonRenderer.pieSlicePath(l._centerX,l._centerY,t,e,n,h,0):$.jqx.commonRenderer.pieSlicePath(l._centerX,l._centerY,t,e,h,n,0));var c=!1;s&&d<u&&(c=!0),!s&&d>u&&(c=!0);var g,v=function(){l._removeLabels(i);for(var t=[],e=0;e<l._valuesToDegrees.length;e++)t[e]=null!=l._temporaryOldAngle[e]?l._temporaryOldAngle[e]:l._valuesToDegrees[e];l._addLabels(t,l._temporaryValues,i)};return c&&!1===l.disabled&&0!=l.animationDuration?(v(),l.renderer.attr(f,{d:o}),l.formatFunction&&(g=l.formatFunction(l.values[i],i,g=l._colors[i]),l.renderer.attr(f,{fill:g,stroke:g})),l._temporaryOldAngle[i]=d+=r/p.smoothCoef,l._temporaryValuesToDegrees[i]=(180-d+l._geometry.fix)%360,l._temporaryValues[i]=l._temporaryValues[i]+r*m,!1):(d=u,a=180-u+l._geometry.fix,l._temporaryOldAngle[i]=u,l._temporaryValuesToDegrees[i]=u%360,l._temporaryValues[i]=l.values[i],v(),function(r,n){o=r<=n?$.jqx.commonRenderer.pieSlicePath(l._centerX,l._centerY,t,e,r-1e-4,n,0):$.jqx.commonRenderer.pieSlicePath(l._centerX,l._centerY,t,e,n,r,0)}(a,180-l._geometry.baseAngle+l._geometry.fix),l.renderer.attr(f,{d:o}),l.formatFunction&&(g=l.formatFunction(l.values[i],i,g=l._colors[i]),l.renderer.attr(f,{fill:g,stroke:g})),clearInterval(l._intervalArray[i]),l._renderedValues++,l._renderedValues===l._renderingValues&&l._rendered(),!0)};if(0==l.animationDuration)y();else{var x=function(){clearInterval(l._intervalArray[i]);var t=y();if(l._rendering&&!t){var e=l._oldValues[i],n=l.values[i],s=l._valuesToDegrees[i],o=l._oldValuesToDegrees[i],a=l._calculateAnimationInterval(i,!0),h=Math.abs(s-o);Math.abs(r/a.smoothCoef/h),Math.abs(n-e),l._intervalArray[i]=setInterval(x,a.interval/a.smoothCoef)}};l._intervalArray[i]||(l._intervalArray[i]=setInterval(x,v))}},_calculateAnimationInterval:function(t,e){var r={},n=this.animationDuration/1e3,i=0;return e?this._oldValues[t]-this.values[t]!=0&&(i=1e3/Math.abs((this._oldValues[t]-this.values[t])/(this.max-this.min)*(this._geometry.endAngle-this._geometry.startAngle))):this.baseValue-this.values[t]!=0&&(i=1e3/Math.abs((this.baseValue-this.values[t])/(this.max-this.min)*(this._geometry.endAngle-this._geometry.startAngle))),r.smoothCoef=n||1,r.interval=i*n,r},_calculateLabelOffset:function(t,e,r){var n,i={};return n=t<=180?t/180:(360-t)/180,i.y=(t>=270?-(270-t)/180:t<=90?(90+t)/180:(270-t)/180)*e,i.x=n*r,i},_drawCoordinatePlane:function(){var t,e;"top"===this._title.verticalAlignment?(t=this._title.placeholderSize,e=this.height):(t=0,e=this.height-this._title.placeholderSize),null!==this._coordinatePlane&&$("#"+this.element.id+" .jqx-bar-gauge-coordinate-plane").remove(),this._coordinatePlane={},this._coordinatePlane.x=this.renderer.line(0,this._centerY,this.width,this._centerY,{fill:"gray",stroke:"gray","stroke-width":1,"stroke-opacity":.1}),this._coordinatePlane.y=this.renderer.line(this._centerX,t,this._centerX,e,{fill:"gray",stroke:"gray","stroke-width":1,"stroke-opacity":.1}),this.renderer.attr(this._coordinatePlane.x,{class:"jqx-bar-gauge-coordinate-plane"}),this.renderer.attr(this._coordinatePlane.y,{class:"jqx-bar-gauge-coordinate-plane"})},_getColorScheme:function(){var t,e=this._colorSchemes.length,r=Math.floor((this.values.length||1)/this._colorSchemes[0].colors.length),n=0;for(t=0;t<e;t++)this.colorScheme===this._colorSchemes[t].name&&(n=t);if(this._colors=this._colorSchemes[n].colors,r>0)for(t=0;t<r;t++)this._colors=this._colors.concat(this._colorSchemes[(n+t+1)%e].colors)},_drawLabelsLine:function(t,e,r){var n,i,s,o,a,l,h;e<0?e=360+e:e>360&&(e%=360),a=(360-e)*Math.PI/180,l=t+this._barWidth+(this._valuesLength-r-1)*(this._barWidth+this.barSpacing)+this._label.indent,n=this._centerX+t*Math.cos(a),i=this._centerY+t*Math.sin(a),s=this._centerX+l*Math.cos(a),o=this._centerY+l*Math.sin(a),h=this._label.connectorColor||this._colors[r],this.formatFunction&&(h=this.formatFunction(this.values[r],r,h)),(this._ie7||this._ie8)&&(n=parseInt(n,10),i=parseInt(i,10),s=parseInt(s,10),o=parseInt(o,10)),!0===this._label.visible&&!1===this.disabled&&(this._barGaugeLabelLines[r]=this.renderer.line(n,i,s,o,{fill:h,stroke:h,"stroke-width":this._label.connectorWidth})),this.renderer.attr(this._barGaugeLabelLines[r],{id:this.element.id+"LabelLine"+r}),this.renderer.attr(this._barGaugeLabelLines[r],{class:"jqx-bar-gauge-label-line"})},_drawLabelsText:function(t,e,r){var n,i,s,o,a,l,h=this._label.font.color||this._colors[e];this.formatFunction&&(h=this.formatFunction(this.values[e],e,h));var u=this._calculatePrecision(this._label.precision,this.values[e]);void 0!==r&&(u=new Number(r).toFixed(this._label.precision),u=this._calculatePrecision(this._label.precision,u)),null!=this._label.formatFunction&&"function"==typeof this._label.formatFunction&&(u=this._label.formatFunction(u,e)),this._cachedMeasurements||(this._cachedMeasurements=[]),this._cachedMeasurements[u.length]?n=this._cachedMeasurements[u.length]:(n=this._measureText(u,this._label.font.size,this._label.font.family,this._label.font.weight),this._cachedMeasurements[u.length]=n),t<0?t=360+t:t>360&&(t%=360),i=(360-t)*Math.PI/180,s=this._centerX+(this._labelPositioningRadius+.3*n.height)*Math.cos(i),o=this._centerY+(this._labelPositioningRadius+.3*n.height)*Math.sin(i),a=this._calculateLabelOffset(t,n.height,n.width),!0===this._label.visible&&!1===this.disabled&&(this._barGaugeLabelText[e]=this.renderer.text(u,s-a.x,o-a.y,void 0,void 0,0,{class:"jqx-bargauge-label",fill:h,"font-size":this._label.font.size+"px","font-family":this._label.font.family,"font-weight":this._label.font.weight},!1,"left","top","lefttop")),this.renderer.attr(this._barGaugeLabelText[e],{id:l=this.element.id+"Label"+e}),this.renderer.attr(this._barGaugeLabelText[e],{class:"jqx-bar-gauge-label-text"}),(this._ie7||this._ie8)&&$("#"+l+" .jqx-bargauge-label").css({color:h,"white-space":"nowrap","font-size":this._label.font.size+"px","font-family":this._label.font.family,"font-weight":this._label.font.weight})},_calculatePrecision:function(t,e){var r;return r=(r=t+Math.abs(e).toString().split(".")[0].length)>15?15:r,parseFloat(e).toPrecision(r)},_createTooltip:function(){this._barGaugeTooltip.attr("id",this.element.id+"tooltip"),$(this._barGaugeTooltip).addClass(this.toThemeProperty("jqx-bar-gauge-tooltip")),this._tooltip.classname.length>0&&$(this._barGaugeTooltip).addClass(this.toThemeProperty(this._tooltip.classname)),$(document.body).append(this._barGaugeTooltip),!0===this._tooltip.visible&&!1===this.disabled&&this._valuesLength>0&&this._addTooltipHandlers()},_refreshTooltipHandlers:function(){!0===this._tooltip.visible&&!1===this.disabled&&(this._removeTooltipHandlers(),this._addTooltipHandlers())},_addTooltipHandlers:function(){var t,e,r=this;r.addHandler($("#"+r.element.id+" .jqx-bar-gauge-slice"),"mouseenter",(function(){!0===r._tooltip.visible&&r._valuesLength>0&&(t=r.renderer.getAttr(this,"id").substr(r.element.id.length+5),e=r._calculatePrecision(r._tooltip.precision,r.values[t]),r._barGaugeTooltip.css({display:"block",color:r._colors[t],"border-color":r._colors[t]}),null!=r._tooltip.formatFunction&&"function"==typeof r._tooltip.formatFunction&&(e=r._tooltip.formatFunction(e,parseInt(t))),r._barGaugeTooltip.html(e),r._raiseEvent("2",{layer:t}))})),r.addHandler($("#"+r.element.id+" .jqx-bar-gauge-slice"),"mouseleave",(function(){r._barGaugeTooltip.css({display:"none"}),r._raiseEvent("3",{layer:t})})),r.addHandler($("#"+r.element.id+" .jqx-bar-gauge-slice"),"mouseup",(function(){r._barGaugeTooltip.css({display:"none"})})),$("#"+r.element.id+" .jqx-bar-gauge-slice").length>0&&r.addHandler($("#"+r.element.id+" .jqx-bar-gauge-slice"),"mousemove",(function(){!0===r._tooltip.visible&&r._valuesLength>0&&(t=r.renderer.getAttr(this,"id").substr(r.element.id.length+5),e=r._calculatePrecision(r._tooltip.precision,r.values[t]),r._barGaugeTooltip.css({display:"block",color:r._colors[t],"border-color":r._colors[t]}),null!=r._tooltip.formatFunction&&"function"==typeof r._tooltip.formatFunction&&(e=r._tooltip.formatFunction(e,parseInt(t))),r._barGaugeTooltip.html(e))})),r.addHandler($(r.host),"mousemove",(function(t){r._barGaugeTooltip.css({top:t.pageY-10+"px",left:t.pageX+15+"px"})}))},_removeTooltipHandlers:function(){this._barGaugeSlices.length>0&&(this.removeHandler($(this._barGaugeSlices),"mouseenter"),this.removeHandler($(this._barGaugeSlices),"mouseleave"),this.removeHandler($(this._barGaugeSlices),"mouseup"),this.removeHandler($(this._barGaugeSlices),"mousemove"),this.removeHandler($("#"+this.element.id+" .jqx-bar-gauge-slice"),"mouseenter mouseleave mouseup mousemove")),this.removeHandler($(this.host),"mousemove")},_drawBarGaugeTitle:function(){this._alignmentIE=this._alignmentIE||this._title.horizontalAlignment;var t,e,r,n,i,s,o,a,l,h=0;if((this._ie7||this._ie8)&&(this._title.horizontalAlignment="left"),this._titleLines>1){for(t=this._title.text.split("<br>"),l=0;l<this._titleLines;l++)for(r=this._measureText(t[l]+"_",this._title.font.size,this._title.font.family,this._title.font.weight),s=t[l];r.width>this.width;)s=s.slice(0,-1),t[l]=s+"...",r=this._measureText(t[l]+"_",this._title.font.size,this._title.font.family,this._title.font.weight);this._title.text=t.join("<br>")}else for(r=this._measureText(this._title.text+"_",this._title.font.size,this._title.font.family,this._title.font.weight),s=this._title.text;r.width>this.width;)s=s.slice(0,-1),this._title.text=s+"...",r=this._measureText(this._title.text+"_",this._title.font.size,this._title.font.family,this._title.font.weight);if("bottom"===this._title.verticalAlignment&&(h=this.height-this._title.placeholderSize),null!=this.title&&""!==this._title.text){if(this._barGaugeTitle=this.renderer.text(this._title.text,this._title.margin.left,h+this._title.margin.top,this.width-this._title.margin.right,0,void 0,{fill:this._title.font.color,"fill-opacity":this._title.font.opacity,"font-size":this._title.font.size,"font-family":this._title.font.family,"font-weight":this._title.font.weight},!1,this._title.horizontalAlignment,this._title.verticalAlignment,"centertop"),this.renderer.attr(this._barGaugeTitle,{id:a=this.element.id+"Title"}),this.renderer.attr(this._barGaugeTitle,{class:"jqx-bar-gauge-title"}),this._ie7||this._ie8){$("#"+a+" textbox").css({width:this.width+"px !important","padding-left":"10px",position:"relative"});var u=0;r.width<this.width&&("center"===this._alignmentIE?u=(this.width-r.width)/2:"right"===this._alignmentIE&&(u=this.width-r.width)),$("#"+a+" span").css({color:this._title.font.color,"margin-left":u+"px","white-space":"nowrap","text-align":"center","font-size":this._title.font.size+"px","font-family":this._title.font.family,"font-weight":this._title.font.weight})}if(""!==this._title.subtitle.text&&void 0!==this._title.subtitle.text){if(this._subTitleLines>1){for(e=this._title.subtitle.text.split("<br>"),l=0;l<this._subTitleLines;l++)for(n=this._measureText(e[l]+"_",this._title.subtitle.font.size,this._title.subtitle.font.family,this._title.subtitle.font.weight),i=e[l];n.width>this.width;)i=i.slice(0,-1),e[l]=i+"...",n=this._measureText(e[l]+"_",this._title.subtitle.font.size,this._title.subtitle.font.family,this._title.subtitle.font.weight);this._title.subtitle.text=e.join("<br>")}else for(n=this._measureText(this._title.subtitle.text+"_",this._title.subtitle.font.size,this._title.subtitle.font.family,this._title.subtitle.font.weight),i=this._title.subtitle.text;n.width>this.width;)i=i.slice(0,-1),this._title.subtitle.text=i+"...",n=this._measureText(this._title.subtitle.text+"_",this._title.subtitle.font.size,this._title.subtitle.font.family,this._title.subtitle.font.weight);if(this._barGaugeSubTitle=this.renderer.text(this._title.subtitle.text,this._title.margin.left,h+this._title.font.size*this._titleLines+this._title.margin.top,this.width-this._title.margin.right,0,void 0,{fill:this._title.subtitle.font.color,"fill-opacity":this._title.subtitle.font.opacity,"font-size":this._title.subtitle.font.size,"font-family":this._title.subtitle.font.family,"font-weight":this._title.subtitle.font.weight,"margin-top":this._title.margin.top},!1,this._title.horizontalAlignment,this._title.verticalAlignment,"centertop"),this.renderer.attr(this._barGaugeSubTitle,{id:o=this.element.id+"SubTitle"}),this.renderer.attr(this._barGaugeSubTitle,{class:"jqx-bar-gauge-subtitle"}),this._ie7||this._ie8){var c=0;n.width<this.width&&("center"===this._alignmentIE?c=(this.width-n.width)/2:"right"===this._alignmentIE&&(c=this.width-n.width)),$("#"+o+" textbox").css({width:this.width+"px !important",left:c+"px !important",position:"relative"}),$("#"+o+" span").css({width:"100%",color:this._title.subtitle.font.color,"margin-left":c+"px","white-space":"nowrap","text-align":"center","font-size":this._title.subtitle.font.size+"px","font-family":this._title.subtitle.font.family,"font-weight":this._title.subtitle.font.weight})}}}},_measureText:function(t,e,r,n){var i={};return $("#"+this._measuredTextId).length||(this._measuredText.attr("id",this._measuredTextId),$(this.host).append(this._measuredText),this._measuredText.css({"z-index":-999999,"white-space":"nowrap","font-size":e+"px","font-family":r,"font-weight":n})),this._measuredText[0].style.fontSize!=e+"px"&&(this._measuredText[0].style.fontSize=e+"px"),this._measuredText[0].style.fontFamily!=r+"px"&&(this._measuredText[0].style.fontFamily=r),this._measuredText[0].style.fontWeight!=n&&(this._measuredText[0].style.fontWeight=n+"px"),this._measuredText.text(t),i.width=this._measuredText[0].offsetWidth,i.height=this._measuredText[0].offsetHeight,i},_calculateBarGaugeRadius:function(){this._barGaugeRadius=this.width>this.height-this._title.placeholderSize?(this.height-this._title.placeholderSize)/2:this.width/2},_addCSS:function(){$(this.host).addClass(this.toThemeProperty("jqx-widget")),$(this.host).addClass(this.toThemeProperty("jqx-bar-gauge")),$(this.host).addClass(this.toThemeProperty("jqx-widget-content")),this.disabled&&$(this.host).addClass(this.toThemeProperty("jqx-fill-state-disabled"))},_rendered:function(){!0===this._rendering&&(null!==this.rendered&&"function"==typeof this.rendered&&this.rendered(),this._rendering=!1,this.clearIntervals(),this._temporaryOldAngle.length=0,this._temporaryValuesToDegrees.length=0,this._temporaryValues.length=0,this._raiseEvent("0"),this._raiseEvent("5"))},_render:function(){this._removeAllGraphicElements(),this.values.length>0?0===this.animationDuration||this._ie8||this._ie7?this._drawStaticBarGauge():this._drawDynamicBarGauge():(this._getLiquidDimensions(),this.host.width(this.width),this.host.height(this.height),this._validateValues(),this._transformValuesToAngles(),this._drawStaticBarGauge())},render:function(){this.clearIntervals(),this._getLiquidDimensions(),this.host.width(this.width),this.host.height(this.height),this._validateValues(),this._transformValuesToAngles(),this._getColorScheme(),!0!==this._rendering?this._render():(this._staticRefresh(),this._render())},refresh:function(t){!0!==t&&this.render()},_removeAllGraphicElements:function(){this._removeLabels(),this._removeBarGaugeSlices(),this._removeBarGaugeTitle(),this._removeBarGaugeSubTitle()},_drawStaticBarGauge:function(){this._rendering=!0,this._drawBarGaugeTitle(),this._drawBarGaugeLayout(),this.disabled?this._rendered():(this._getLiquidDimensions(),this.host.width(this.width),this.host.height(this.height),this._validateValues(),this._measureRadius(),this._drawStaticBarGaugeElementsWithBase(),this._rendered())},_drawDynamicBarGauge:function(){this._drawBarGaugeTitle(),this._drawBarGaugeLayout(),this.disabled?this._rendered():this._drawBarGaugeElementsWithBase()},val:function(t){return null!=t&&"object"==typeof t&&Object.keys(t).length>0?(this._raiseEvent("4","api"),t.length!=this.values.length?(this.values=t,this.render()):this._redrawWithNewValuesArray(t,this.values)):null!=t&&"object"==typeof t&&0===t.length&&(this._raiseEvent("4"),this._removeLabels(),this._removeBarGaugeSlices(),this._transformValuesToAngles(),this._drawEmptyBarGauge(),this._removeLabels(),this.values.length=0,this._refreshTooltipHandlers()),this.values},_redrawWithNewValuesArray:function(t,e){var r;if(!1===this._rendering)this._userValues=t.slice(),this._oldValues=e?e.slice():this.values.slice(),this._oldValuesToDegrees=this._valuesToDegrees.slice(),this._oldValuesLength=this._valuesLength,Object.keys(t).length>1?this.values=t.slice():null==t[0]?this.values=[]:(this.values=[],this.values[0]=parseFloat(t)),this._lastChange=new Date;else if(!0===this._rendering){for(this._userValues=t.slice(),this._oldValues.length=0,this._oldValuesToDegrees.length=0,r=0;r<this.values.length;r++)this._oldValues[r]=null!=this._temporaryValues[r]?this._temporaryValues[r]:this.values[r],this._oldValuesToDegrees[r]=null!=this._temporaryValuesToDegrees[r]?this._temporaryValuesToDegrees[r]:this._valuesToDegrees[r];this._oldValuesLength=this.values.length,t.length>1?this.values=t.slice():null==t[0]?this.values=[]:(this.values=[],this.values[0]=parseFloat(t))}else if(null==t)this.values=[];else{if("string"!=typeof t&&"number"!=typeof t)return this.values;this.values=[],this.values[0]=parseFloat(t)}if(this._valuesLength=this.values.length,this._getColorScheme(),this._valuesLength>this._oldValuesLength)for(var n=this._oldValuesLength;n<this._valuesLength;n++)this._oldValuesToDegrees[n]=this._geometry.baseAngle,this._oldValues[n]=this.baseValue;for(r=0;r<this._valuesLength;r++){this.values[r]<this.min?this.values[r]=this.min:this.values[r]>this.max&&(this.values[r]=this.max);var i=this.values[r];0==i&&(i=.03),this._valuesToDegrees[r]=((i-this.min)/(this.max-this.min)*(this._geometry.endAngle-this._geometry.startAngle)+this._geometry.startAngle)%360}this._renderElements(),this._refreshTooltipHandlers(),this._raiseEvent("1")},_staticRefresh:function(){var t=this.animationDuration;"string"==typeof this.width&&-1!==this.width.indexOf("%")&&(this._dimensions.width=this.width),"string"==typeof this.height&&-1!==this.height.indexOf("%")&&(this._dimensions.height=this.height),this._getLiquidDimensions(),this.host.width(this.width),this.host.height(this.height),$("#"+this.element.id+" .chartContainer").width(this.width),$("#"+this.element.id+" .chartContainer").height(this.height),this._removeBarGaugeTitle(),this._removeBarGaugeSubTitle(),this._validateGeometry(),this._validateTitle(),this._validateLabel(),this._validateValues(),this._validateTooltip(),this._measureRadius(),this.animationDuration=0,this._render(),this.animationDuration=t},propertyChangedHandler:function(t,e,r,n){var i,s=t;if(s._cachedMeasurements=[],null!=t.isInitialized&&!1!==t.isInitialized&&(s.ie7||!t.batchUpdate||!t.batchUpdate.width||!t.batchUpdate.height||2!==Object.keys(t.batchUpdate).length)&&(n!==r||"colorScheme"===e||"tooltip"===e))switch(s._titleTemplate=s._title,s._labelTemplate=s._label,s._tooltipTemplate=s._tooltip,e){case"width":case"height":s._staticRefresh();break;case"values":s.values=r,s.val(n);break;case"animationDuration":break;case"disabled":s.disabled?$(s.host).addClass(s.toThemeProperty("jqx-fill-state-disabled")):$(s.host).removeClass(s.toThemeProperty("jqx-fill-state-disabled")),s._render();break;case"geometry":case"min":case"baseValue":case"max":case"barSpacing":case"startAngle":case"endAngle":case"relativeInnerRadius":s.geometry.startAngle=s.startAngle,s.geometry.endAngle=s.endAngle,s.values=s._userValues.slice(),s._validateValues(),s._transformValuesToAngles(),s._render();break;case"tooltip":s._validateTooltip();break;case"rendered":break;case"backgroundColor":if(s._backgroundColor=s._validateColor(s.backgroundColor,s._backgroundColor),s._ie7||s._ie8)for(i=0;i<s._valuesLength;i++)s.renderer.attr(s._barGaugeBackgroundSlices[i],{fillcolor:s._backgroundColor,strokecolor:s._backgroundColor,"stroke-width":s._barGaugeSlicesStrokeWidth});else $("#"+s.element.id+" .jqx-bar-gauge-background-slice").attr({fill:s._backgroundColor,stroke:s._backgroundColor,"stroke-width":s._barGaugeSlicesStrokeWidth});break;case"customColorScheme":s._attachCustomColors();break;case"colorScheme":var o,a;for(s._getColorScheme(),i=0;i<s._valuesLength;i++){o=s._label.connectorColor||s._colors[i],a=s._label.font.color||s._colors[i];var l=s._colors[i];s.useGradient&&(l=s.renderer._toLinearGradient(l,!0,[[0,1.4],[100,1]])),s.renderer.attr(s._barGaugeSlices[i],{fill:l}),s.renderer.attr(s._barGaugeLabelLines[i],{fill:o,stroke:o}),s.renderer.attr(s._barGaugeLabelText[i],{fill:a}),(s._ie7||s._ie8)&&(s.renderer.attr(s._barGaugeSlices[i],{fillcolor:s._colors[i],strokecolor:s._colors[i],"stroke-width":s._barGaugeSlicesStrokeWidth}),s.renderer.attr(s._barGaugeLabelLines[i],{fillcolor:o,strokecolor:o}),$("#"+s.element.id+"Label"+i+" .jqx-bargauge-label").css({color:a}))}break;default:s._staticRefresh()}},_compareArrays:function(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0},_addIEPolyfills:function(){var t,e,r,n;Object.keys||(Object.keys=(t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),n=(r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(i){if("object"!=typeof i&&("function"!=typeof i||null===i))throw new TypeError("Object.keys called on non-object");var s,o,a=[];for(s in i)t.call(i,s)&&a.push(s);if(e)for(o=0;o<n;o++)t.call(i,r[o])&&a.push(r[o]);return a}))},destroy:function(){$("#"+this._measuredTextId).remove(),this.renderer.clear(),this.renderer=null,this._removeEventHandlers(),this._removeTooltipHandlers(),this.host.children().remove(),this.host.removeData(),this.host.removeClass(),this.host.remove(),this.host=null,this.element=null,delete this.element,delete this.host},_addEventHandlers:function(){var t=this;t.addHandler($(t.host),"drawStart",(function(){})),t.addHandler($(t.host),"drawEnd",(function(){t._refreshTooltipHandlers()})),t.addHandler($(window),"resize.jqxBarGauge"+t.host[0].id,(function(){var e=!1;t._dimensions.width&&t._dimensions.width.toString().indexOf("%")>=0&&(e=!0),t._dimensions.height&&t._dimensions.height.toString().indexOf("%")>=0&&(e=!0),e&&t._staticRefresh()}))},_removeEventHandlers:function(){this.removeHandler($(this.host),"drawStart"),this.removeHandler($(this.host),"drawEnd"),this.removeHandler($(window),"resize.jqxBarGauge"+this.host[0].id)},_refreshEventHandlers:function(){this._removeEventHandlers(),this._addEventHandlers()},_raiseEvent:function(t,e){var r=$.Event(this._events[t]);return r.args=e,this.host.trigger(r)},_getEvent:function(t){return this._isTouchDevice?this._touchEvents[t]:t}})}(jqxBaseFramework)},o6h3:function(t,e){var r;(r=jqxBaseFramework).jqx.cssroundedcorners=function(t){var e={all:"jqx-rc-all",top:"jqx-rc-t",bottom:"jqx-rc-b",left:"jqx-rc-l",right:"jqx-rc-r","top-right":"jqx-rc-tr","top-left":"jqx-rc-tl","bottom-right":"jqx-rc-br","bottom-left":"jqx-rc-bl"};for(var r in e)if(e.hasOwnProperty(r)&&t==r)return e[r]},r.jqx.jqxWidget("jqxButton","",{}),r.extend(r.jqx._jqxButton.prototype,{defineInstance:function(){var t={type:"",cursor:"arrow",roundedCorners:"all",disabled:!1,height:null,width:null,overrideTheme:!1,enableHover:!0,enableDefault:!0,enablePressed:!0,imgPosition:"center",imgSrc:"",imgWidth:16,imgHeight:16,value:null,textPosition:"",textImageRelation:"overlay",rtl:!1,_ariaDisabled:!1,_scrollAreaButton:!1,template:"default",aria:{"aria-disabled":{name:"disabled",type:"boolean"}}};return this===r.jqx._jqxButton.prototype?t:(r.extend(!0,this,t),t)},_addImage:function(t){var e=this;if("input"==e.element.nodeName.toLowerCase()||"button"==e.element.nodeName.toLowerCase()||"div"==e.element.nodeName.toLowerCase()){if(e._img)e._img.setAttribute("src",e.imgSrc),e._img.setAttribute("width",e.imgWidth),e._img.setAttribute("height",e.imgHeight),e._text.innerHTML=e.value;else{e.field=e.element,e.field.className&&(e._className=e.field.className);var n={title:e.field.title},i=null;e.field.getAttribute("value")?i=e.field.getAttribute("value"):"input"!=e.element.nodeName.toLowerCase()&&(i=e.element.innerHTML),e.value&&(i=e.value),n.id=e.field.id.length?e.field.id.replace(/[^\w]/g,"_")+"_"+t:r.jqx.utilities.createId()+"_"+t;var s=document.createElement("div");s.id=n.id,s.title=n.title,s.style.cssText=e.field.style.cssText,s.style.boxSizing="border-box";var o=document.createElement("img");o.setAttribute("src",e.imgSrc),o.setAttribute("width",e.imgWidth),o.setAttribute("height",e.imgHeight),s.appendChild(o),e._img=o;var a=document.createElement("span");i&&(a.innerHTML=i,e.value=i),s.appendChild(a),e._text=a,e.field.style.display="none",e.field.parentNode&&e.field.parentNode.insertBefore(s,e.field.nextSibling);var l=e.host.data();e.host=r(s),e.host.data(l),e.element=s,e.element.id=e.field.id,e.field.id=n.id;var h=new r(e.element),u=new r(e.field);if(e._className&&(h.addClass(e._className),u.removeClass(e._className)),e.field.tabIndex){var c=e.field.tabIndex;e.field.tabIndex=-1,e.element.tabIndex=c}}e._img.style.display=e.imgSrc?"inline":"none",e._text.style.display=e.value?"inline":"none",e._positionTextAndImage()}},_positionTextAndImage:function(){var t=this,e=t.element.offsetWidth,r=t.element.offsetHeight,n=t.imgWidth,i=t.imgHeight;""==t.imgSrc&&(n=0,i=0);var s=t._text.offsetWidth,o=t._text.offsetHeight,a=0,l=0;switch(t.textImageRelation){case"imageBeforeText":case"textBeforeImage":a=n+s+8+4+8,l=Math.max(i,o)+8+4+8;break;case"imageAboveText":case"textAboveImage":a=Math.max(n,s)+8,l=i+o+4+8+8;break;case"overlay":a=Math.max(n,s)+8,l=Math.max(i,o)+8}t.width||(t.element.style.width=a+"px",e=a),t.height||(t.element.style.height=l+"px",r=l),t._img.style.position="absolute",t._text.style.position="absolute",t.element.style.position="relative",t.element.style.overflow="hidden";var h={},u={},c=function(t,e,r,n,i){switch(e.width<n&&(e.width=n),e.height<i&&(e.height=i),r){case"left":t.style.left=e.left+"px",t.style.top=e.top+e.height/2-i/2+"px";break;case"topLeft":t.style.left=e.left+"px",t.style.top=e.top+"px";break;case"bottomLeft":t.style.left=e.left+"px",t.style.top=e.top+e.height-i+"px";break;default:case"center":t.style.left=e.left+e.width/2-n/2+"px",t.style.top=e.top+e.height/2-i/2+"px";break;case"top":t.style.left=e.left+e.width/2-n/2+"px",t.style.top=e.top+"px";break;case"bottom":t.style.left=e.left+e.width/2-n/2+"px",t.style.top=e.top+e.height-i+"px";break;case"right":t.style.left=e.left+e.width-n+"px",t.style.top=e.top+e.height/2-i/2+"px";break;case"topRight":t.style.left=e.left+e.width-n+"px",t.style.top=e.top+"px";break;case"bottomRight":t.style.left=e.left+e.width-n+"px",t.style.top=e.top+e.height-i+"px"}},d=0,f=0,p=e,g=r,m=(p-d)/2,v=(g-f)/2,y=t._img,x=t._text,_=g-f,b=p-d;switch(d+=4,f+=4,p=p-4-2,b=b-8-2,_=_-8-2,t.textImageRelation){case"imageBeforeText":switch(t.imgPosition){case"left":case"topLeft":case"bottomLeft":u={left:d,top:f,width:d+n,height:_},h={left:d+n+4,top:f,width:b-n-4,height:_};break;case"center":case"top":case"bottom":h={left:(u={left:m-s/2-n/2-2,top:f,width:n,height:_}).left+n+4,top:f,width:p-u.left-n-4,height:_};break;case"right":case"topRight":case"bottomRight":h={left:(u={left:p-s-n-4,top:f,width:n,height:_}).left+n+4,top:f,width:p-u.left-n-4,height:_}}c(y,u,t.imgPosition,n,i),c(x,h,t.textPosition,s,o);break;case"textBeforeImage":switch(t.textPosition){case"left":case"topLeft":case"bottomLeft":h={left:d,top:f,width:d+s,height:_},u={left:d+s+4,top:f,width:b-s-4,height:_};break;case"center":case"top":case"bottom":u={left:(h={left:m-s/2-n/2-2,top:f,width:s,height:_}).left+s+4,top:f,width:p-h.left-s-4,height:_};break;case"right":case"topRight":case"bottomRight":u={left:(h={left:p-s-n-4,top:f,width:s,height:_}).left+s+4,top:f,width:p-h.left-s-4,height:_}}c(y,u,t.imgPosition,n,i),c(x,h,t.textPosition,s,o);break;case"imageAboveText":switch(t.imgPosition){case"topRight":case"top":case"topLeft":u={left:d,top:f,width:b,height:i},h={left:d,top:f+i+4,width:b,height:_-i-4};break;case"left":case"center":case"right":h={left:d,top:(u={left:d,top:v-i/2-o/2-2,width:b,height:i}).top+4+i,width:b,height:_-u.top-4-i};break;case"bottomLeft":case"bottom":case"bottomRight":h={left:d,top:(u={left:d,top:g-i-o-4,width:b,height:i}).top+4+i,width:b,height:o}}c(y,u,t.imgPosition,n,i),c(x,h,t.textPosition,s,o);break;case"textAboveImage":switch(t.textPosition){case"topRight":case"top":case"topLeft":h={left:d,top:f,width:b,height:o},u={left:d,top:f+o+4,width:b,height:_-o-4};break;case"left":case"center":case"right":u={left:d,top:(h={left:d,top:v-i/2-o/2-2,width:b,height:o}).top+4+o,width:b,height:_-h.top-4-o};break;case"bottomLeft":case"bottom":case"bottomRight":u={left:d,top:(h={left:d,top:g-i-o-4,width:b,height:o}).top+4+o,width:b,height:i}}c(y,u,t.imgPosition,n,i),c(x,h,t.textPosition,s,o);break;case"overlay":default:h={left:d,top:f,width:b,height:_},c(y,u={left:d,top:f,width:b,height:_},t.imgPosition,n,i),c(x,h,t.textPosition,s,o)}},createInstance:function(t){var e=this;e._setSize(),e.isMaterialized(),e.buttonObj=new r(e.element),(""!=e.imgSrc||""!=e.textPosition||e.element.value&&e.element.value.indexOf("<")>=0||null!=e.value)&&(e.refresh(),e._addImage("jqxButton"),e.buttonObj=new r(e.element)),e._ariaDisabled||e.element.setAttribute("role","button"),""!==e.type&&e.element.setAttribute("type",e.type),e.overrideTheme||(e.buttonObj.addClass(e.toThemeProperty(r.jqx.cssroundedcorners(e.roundedCorners))),e.enableDefault&&e.buttonObj.addClass(e.toThemeProperty("jqx-button")),e.buttonObj.addClass(e.toThemeProperty("jqx-widget"))),e.isTouchDevice=r.jqx.mobile.isTouchDevice(),e._ariaDisabled||r.jqx.aria(this),"arrow"!=e.cursor&&(e.element.style.cursor=e.disabled?"arrow":e.cursor);var n="mouseenter mouseleave mousedown focus blur";e._scrollAreaButton&&(n="mousedown"),e.isTouchDevice&&(e.addHandler(e.host,r.jqx.mobile.getTouchEventName("touchstart"),(function(t){e.isPressed=!0,e.refresh()})),e.addHandler(r(document),r.jqx.mobile.getTouchEventName("touchend")+"."+e.element.id,(function(t){e.isPressed=!1,e.refresh()}))),e.addHandler(e.host,n,(function(t){switch(t.type){case"mouseenter":e.isTouchDevice||!e.disabled&&e.enableHover&&(e.isMouseOver=!0,e.refresh());break;case"mouseleave":e.isTouchDevice||!e.disabled&&e.enableHover&&(e.isMouseOver=!1,e.refresh());break;case"mousedown":e.disabled||(e.isPressed=!0,e.refresh());break;case"focus":e.disabled||(e.isFocused=!0,e.refresh());break;case"blur":e.disabled||(e.isFocused=!1,e.refresh())}})),e.mouseupfunc=function(t){e.disabled||(e.isPressed||e.isMouseOver)&&(e.isPressed=!1,e.refresh())},e.addHandler(document,"mouseup.button"+e.element.id,e.mouseupfunc);try{if((""!=document.referrer||window.frameElement)&&null!=window.top&&window.top!=window.that){var i="";window.parent&&document.referrer&&(i=document.referrer),-1!=i.indexOf(document.location.host)&&window.top.document&&window.top.document.addEventListener("mouseup",e._topDocumentMouseupHandler)}}catch(s){}e.propertyChangeMap.roundedCorners=function(t,e,n,i){t.buttonObj.removeClass(t.toThemeProperty(r.jqx.cssroundedcorners(n))),t.buttonObj.addClass(t.toThemeProperty(r.jqx.cssroundedcorners(i)))},e.propertyChangeMap.disabled=function(t,e,n,i){n!=i&&(t.refresh(),t.element.setAttribute("disabled",i),t.element.disabled=i,t.element.style.cursor=i?"default":t.cursor,r.jqx.aria(t,"aria-disabled",t.disabled))},e.propertyChangeMap.rtl=function(t,e,r,n){r!=n&&t.refresh()},e.propertyChangeMap.template=function(t,e,r,n){r!=n&&(t.buttonObj.removeClass(t.toThemeProperty("jqx-"+r)),t.refresh())},e.propertyChangeMap.theme=function(t,e,n,i){t.buttonObj.removeClass(t.element),n&&(t.buttonObj.removeClass("jqx-button-"+n),t.buttonObj.removeClass("jqx-widget-"+n),t.buttonObj.removeClass("jqx-fill-state-normal-"+n),t.buttonObj.removeClass(t.toThemeProperty(r.jqx.cssroundedcorners(t.roundedCorners))+"-"+n)),t.enableDefault&&t.buttonObj.addClass(t.toThemeProperty("jqx-button")),t.buttonObj.addClass(t.toThemeProperty("jqx-widget")),t.overrideTheme||t.buttonObj.addClass(t.toThemeProperty(r.jqx.cssroundedcorners(t.roundedCorners))),t._oldCSSCurrent=null,t.refresh()},e.disabled&&(e.element.disabled=!0,e.element.setAttribute("disabled","true"))},resize:function(t,e){this.width=t,this.height=e,this._setSize()},val:function(t){var e=this,n=e.host.find("input");return n.length>0?0==arguments.length||"object"==typeof t?n.val():(n.val(t),e.refresh(),n.val()):0==arguments.length||"object"==typeof t?"button"==e.element.nodeName.toLowerCase()?r(e.element).text():e.element.value:arguments.length>0&&e._text?(e._text.innerHTML=arguments[0],void e.refresh()):(arguments.length>0&&"DIV"===e.element.nodeName&&(e.element.innerHTML=arguments[0],e.refresh()),e.element.value=arguments[0],"button"==e.element.nodeName.toLowerCase()&&r(e.element).html(arguments[0]),void e.refresh())},_setSize:function(){var t=this,e=t.height,r=t.width;e&&(isNaN(e)||(e+="px"),t.element.style.height=e),r&&(isNaN(r)||(r+="px"),t.element.style.width=r)},_removeHandlers:function(){var t=this;t.removeHandler(t.host,"selectstart"),t.removeHandler(t.host,"click"),t.removeHandler(t.host,"focus"),t.removeHandler(t.host,"blur"),t.removeHandler(t.host,"mouseenter"),t.removeHandler(t.host,"mouseleave"),t.removeHandler(t.host,"mousedown"),t.removeHandler(r(document),"mouseup.button"+t.element.id,t.mouseupfunc),t.isTouchDevice&&(t.removeHandler(t.host,r.jqx.mobile.getTouchEventName("touchstart")),t.removeHandler(r(document),r.jqx.mobile.getTouchEventName("touchend")+"."+t.element.id)),t.mouseupfunc=null,delete t.mouseupfunc},focus:function(){this.host.focus()},destroy:function(){var t=this;t._removeHandlers();var e=r.data(t.element,"jqxButton");e&&delete e.instance,t.host.removeClass(),t.host.removeData(),t.host.remove(),delete t.set,delete t.get,delete t.call,delete t.element,delete t.host},render:function(){this.refresh()},propertiesChangedHandler:function(t,e,r){r&&r.width&&r.height&&2==Object.keys(r).length&&(t._setSize(),t.refresh())},propertyChangedHandler:function(t,e,r,n){null!=this.isInitialized&&0!=this.isInitialized&&n!=r&&(t.batchUpdate&&t.batchUpdate.width&&t.batchUpdate.height&&2==Object.keys(t.batchUpdate).length||("type"===e&&t.element.setAttribute("type",n),"textImageRelation"!=e&&"textPosition"!=e&&"imgPosition"!=e||(t._img?t._positionTextAndImage():t._addImage("jqxButton")),"imgSrc"!=e&&"imgWidth"!=e&&"imgHeight"!=e||t._addImage("jqxButton"),"value"===e&&t.val(n),"width"!=e&&"height"!=e||(t._setSize(),t.refresh())))},refresh:function(){var t=this;if(!t.overrideTheme){var e=t.toThemeProperty("jqx-fill-state-focus"),r=t.toThemeProperty("jqx-fill-state-disabled"),n=t.toThemeProperty("jqx-fill-state-normal");t.enableDefault||(n="");var i=t.toThemeProperty("jqx-fill-state-hover"),s=t.toThemeProperty("jqx-fill-state-pressed"),o=t.toThemeProperty("jqx-fill-state-pressed");t.enablePressed||(s="");var a="";if(t.host){if(t.element.disabled=t.disabled,t.disabled)return t._oldCSSCurrent&&t.buttonObj.removeClass(t._oldCSSCurrent),a=n+" "+r,"default"!==t.template&&""!==t.template&&(a+=" jqx-"+t.template,""!=t.theme&&(a+=" jqx-"+t.template+"-"+t.theme)),t.buttonObj.addClass(a),void(t._oldCSSCurrent=a);a=t.isMouseOver&&!t.isTouchDevice?t.isPressed?o:i:t.isPressed?s:n,t.isFocused&&(a+=" "+e),"default"!==t.template&&""!==t.template&&(a+=" jqx-"+t.template,""!=t.theme&&(a+=" jqx-"+t.template+"-"+t.theme)),a!=t._oldCSSCurrent&&(t._oldCSSCurrent&&t.buttonObj.removeClass(t._oldCSSCurrent),t.buttonObj.addClass(a),t._oldCSSCurrent=a),t.rtl&&(t.buttonObj.addClass(t.toThemeProperty("jqx-rtl")),t.element.style.direction="rtl"),t.isMaterialized()&&t.host.addClass("buttonRipple")}}}}),r.jqx.jqxWidget("jqxLinkButton","",{}),r.extend(r.jqx._jqxLinkButton.prototype,{defineInstance:function(){this.disabled=!1,this.height=null,this.width=null,this.rtl=!1,this.href=null},createInstance:function(t){var e=this;this.host.onselectstart=function(){return!1},this.host.attr("role","button");var n=this.height||this.element.offsetHeight,i=this.width||this.element.offsetWidth;this.href=this.element.getAttribute("href"),this.target=this.element.getAttribute("target"),this.content=this.host.text(),this.element.innerHTML="";var s=document.createElement("input");s.type="button",s.className="jqx-wrapper "+this.toThemeProperty("jqx-reset"),this._setSize(s,i,n),s.value=this.content,new r(this.element).addClass(this.toThemeProperty("jqx-link")),this.element.style.color="inherit",this.element.appendChild(s),this._setSize(s,i,n);var o=null==t?{}:t[0]||{};r(s).jqxButton(o),this.wrapElement=s,this.disabled&&(this.element.disabled=!0),this.propertyChangeMap.disabled=function(t,e,r,n){t.element.disabled=n,t.wrapElement.jqxButton({disabled:n})},this.addHandler(r(s),"click",(function(t){return this.disabled||e.onclick(t),!1}))},_setSize:function(t,e,r){r&&(isNaN(r)||(r+="px"),t.style.height=r),e&&(isNaN(e)||(e+="px"),t.style.width=e)},onclick:function(t){null!=this.target?window.open(this.href,this.target):window.location=this.href}}),r.jqx.jqxWidget("jqxRepeatButton","jqxButton",{}),r.extend(r.jqx._jqxRepeatButton.prototype,{defineInstance:function(){this.delay=50},createInstance:function(t){var e=this,n=r.jqx.mobile.isTouchDevice(),i=n?"touchend."+this.base.element.id:"mouseup."+this.base.element.id,s=n?"touchstart."+this.base.element.id:"mousedown."+this.base.element.id;this.addHandler(r(document),i,(function(t){null!=e.timeout&&(clearTimeout(e.timeout),e.timeout=null,e.refresh()),null!=e.timer&&(clearInterval(e.timer),e.timer=null,e.refresh())})),this.addHandler(this.base.host,s,(function(t){null!=e.timer&&clearInterval(e.timer),e.timeout=setTimeout((function(){clearInterval(e.timer),e.timer=setInterval((function(t){e.ontimer(t)}),e.delay)}),150)})),this.mousemovefunc=function(t){n||0==t.which&&null!=e.timer&&(clearInterval(e.timer),e.timer=null)},this.addHandler(this.base.host,"mousemove",this.mousemovefunc)},destroy:function(){var t=r.jqx.mobile.isTouchDevice(),e=t?"touchend."+this.base.element.id:"mouseup."+this.base.element.id,n=t?"touchstart."+this.base.element.id:"mousedown."+this.base.element.id;this.removeHandler(this.base.host,"mousemove",this.mousemovefunc),this.removeHandler(this.base.host,n),this.removeHandler(r(document),e),this.timer=null,delete this.mousemovefunc,delete this.timer;var i=r.data(this.base.element,"jqxRepeatButton");i&&delete i.instance,r(this.base.element).removeData(),this.base.destroy(),delete this.base},stop:function(){clearInterval(this.timer),this.timer=null},ontimer:function(t){t=new r.Event("click"),null!=this.base&&null!=this.base.host&&this.base.host.trigger(t)}}),r.jqx.jqxWidget("jqxToggleButton","jqxButton",{}),r.extend(r.jqx._jqxToggleButton.prototype,{defineInstance:function(){this.toggled=!1,this.uiToggle=!0,this.aria={"aria-checked":{name:"toggled",type:"boolean"},"aria-disabled":{name:"disabled",type:"boolean"}}},createInstance:function(t){var e=this;e.base.overrideTheme=!0,e.isTouchDevice=r.jqx.mobile.isTouchDevice(),r.jqx.aria(this),e.propertyChangeMap.roundedCorners=function(t,e,n,i){t.base.buttonObj.removeClass(t.toThemeProperty(r.jqx.cssroundedcorners(n))),t.base.buttonObj.addClass(t.toThemeProperty(r.jqx.cssroundedcorners(i)))},e.propertyChangeMap.toggled=function(t,e,r,n){t.refresh()},e.propertyChangeMap.disabled=function(t,e,r,n){t.base.disabled=n,t.refresh()},e.addHandler(e.base.host,"click",(function(t){!e.base.disabled&&e.uiToggle&&e.toggle()})),e.isTouchDevice||(e.addHandler(e.base.host,"mouseenter",(function(t){e.base.disabled||e.refresh()})),e.addHandler(e.base.host,"mouseleave",(function(t){e.base.disabled||e.refresh()}))),e.addHandler(e.base.host,"mousedown",(function(t){e.base.disabled||e.refresh()})),e.addHandler(r(document),"mouseup.togglebutton"+e.base.element.id,(function(t){e.base.disabled||e.refresh()}))},destroy:function(){this._removeHandlers(),this.base.destroy()},_removeHandlers:function(){this.removeHandler(this.base.host,"click"),this.removeHandler(this.base.host,"mouseenter"),this.removeHandler(this.base.host,"mouseleave"),this.removeHandler(this.base.host,"mousedown"),this.removeHandler(r(document),"mouseup.togglebutton"+this.base.element.id)},toggle:function(){this.toggled=!this.toggled,this.refresh(),r.jqx.aria(this,"aria-checked",this.toggled)},unCheck:function(){this.toggled=!1,this.refresh()},check:function(){this.toggled=!0,this.refresh()},refresh:function(){var t=this,e=t.base.toThemeProperty("jqx-fill-state-disabled"),r=t.base.toThemeProperty("jqx-fill-state-normal");t.base.enableDefault||(r="");var n=t.base.toThemeProperty("jqx-fill-state-hover"),i=t.base.toThemeProperty("jqx-fill-state-pressed"),s=t.base.toThemeProperty("jqx-fill-state-pressed"),o="";t.base.element.disabled=t.base.disabled,t.base.disabled?t.base.buttonObj.addClass(o=r+" "+e):(o=t.base.isMouseOver&&!t.isTouchDevice?t.base.isPressed||t.toggled?s:n:t.base.isPressed||t.toggled?i:r,"default"!==t.base.template&&""!==t.base.template&&(o+=" jqx-"+t.base.template,""!=t.base.theme&&(o+=" jqx-"+t.template+"-"+t.base.theme)),t.base.buttonObj.hasClass(e)&&e!=o&&t.base.buttonObj.removeClass(e),t.base.buttonObj.hasClass(r)&&r!=o&&t.base.buttonObj.removeClass(r),t.base.buttonObj.hasClass(n)&&n!=o&&t.base.buttonObj.removeClass(n),t.base.buttonObj.hasClass(i)&&i!=o&&t.base.buttonObj.removeClass(i),t.base.buttonObj.hasClass(s)&&s!=o&&t.base.buttonObj.removeClass(s),t.base.buttonObj.hasClass(o)||t.base.buttonObj.addClass(o))},_topDocumentMouseupHandler:function(t){this.isPressed=!1,this.refresh()}})},rrlK:function(t,e,r){var n;(n=jqxBaseFramework).jqx.jqxWidget("jqxChart","",{}),n.extend(n.jqx._jqxChart.prototype,{defineInstance:function(){return n.extend(!0,this,this._defaultSettings),this._createColorsCache(),this._defaultSettings},_defaultSettings:{title:"Title",description:"Description",source:[],seriesGroups:[],categoryAxis:null,xAxis:{},valueAxis:null,renderEngine:"",enableAnimations:!0,enableAxisTextAnimation:!1,backgroundImage:"",background:"#FFFFFF",padding:{left:5,top:5,right:5,bottom:5},backgroundColor:"#FFFFFF",showBorderLine:!0,borderLineWidth:1,borderLineColor:null,borderColor:null,titlePadding:{left:5,top:5,right:5,bottom:10},showLegend:!0,legendLayout:null,enabled:!0,colorScheme:"scheme01",animationDuration:500,showToolTips:!0,showToolTipsOnAllSeries:!1,toolTipShowDelay:300,toolTipDelay:500,toolTipHideDelay:4e3,toolTipMoveDuration:300,toolTipFormatFunction:null,toolTipAlignment:"dataPoint",localization:null,columnSeriesOverlap:!1,rtl:!1,legendPosition:null,greyScale:!1,axisPadding:5,enableCrosshairs:!1,crosshairsColor:"#BCBCBC",crosshairsDashStyle:"2,2",crosshairsLineWidth:1,enableEvents:!0,_itemsToggleState:[],_isToggleRefresh:!1,_isSelectorRefresh:!1,_sliders:[],_selectorRange:[],_rangeSelectorInstances:{},_resizeState:{},renderer:null,_isRangeSelectorInstance:!1,drawBefore:null,draw:null,_renderData:{},enableSampling:!0},_defaultLineColor:"#BCBCBC",_touchEvents:{mousedown:n.jqx.mobile.getTouchEventName("touchstart"),click:n.jqx.mobile.getTouchEventName("touchstart"),mouseup:n.jqx.mobile.getTouchEventName("touchend"),mousemove:n.jqx.mobile.getTouchEventName("touchmove"),mouseenter:"mouseenter",mouseleave:"mouseleave"},_getEvent:function(t){return this._isTouchDevice?this._touchEvents[t]:t},destroy:function(){this.host.remove()},_jqxPlot:null,createInstance:function(t){if(!n.jqx.dataAdapter)throw"jqxdata.js is not loaded";var e=this;e._refreshOnDownloadComlete(),e._isTouchDevice=n.jqx.mobile.isTouchDevice(),e._jqxPlot||(e._jqxPlot=new jqxPlot),e.addHandler(e.host,e._getEvent("mousemove"),(function(t){if(0!=e.enabled){e._isRangeSelectorInstance||e.host.css("cursor","default");var r=t.pageX||t.clientX||t.screenX,i=t.pageY||t.clientY||t.screenY,s=e.host.offset();if(e._isTouchDevice){var o=n.jqx.position(t);r=o.left,i=o.top}e.onmousemove(r-=s.left,i-=s.top)}})),e.addHandler(e.host,e._getEvent("mouseleave"),(function(t){if(0!=e.enabled){var r=e._mouseX,n=e._mouseY,i=e._plotRect;i&&r>=i.x&&r<=i.x+i.width&&n>=i.y&&n<=i.y+i.height||(e._cancelTooltipTimer(),e._hideToolTip(0),e._unselect())}})),e.addHandler(e.host,"click",(function(t){if(0!=e.enabled){var r=t.pageX||t.clientX||t.screenX,i=t.pageY||t.clientY||t.screenY,s=e.host.offset();if(e._isTouchDevice){var o=n.jqx.position(t);r=o.left,i=o.top}i-=s.top,e._mouseX=r-=s.left,e._mouseY=i,!isNaN(e._lastClickTs)&&(new Date).valueOf()-e._lastClickTs<100||(this._hostClickTimer=setTimeout((function(){if(e._isTouchDevice||(e._cancelTooltipTimer(),e._hideToolTip(),e._unselect()),e._pointMarker&&e._pointMarker.element){var r=e.seriesGroups[e._pointMarker.gidx],n=r.series[e._pointMarker.sidx];t.stopImmediatePropagation(),e._raiseItemEvent("click",r,n,e._pointMarker.iidx)}}),100))}}));var r=e.element.style;if(r){var i=!1;null!=r.width&&(i|=-1!=r.width.toString().indexOf("%")),null!=r.height&&(i|=-1!=r.height.toString().indexOf("%")),i&&n.jqx.utilities.resize(this.host,(function(){e.timer&&clearTimeout(e.timer),e.timer=setTimeout((function(){var t=e.enableAnimations;e.enableAnimations=!1,e.refresh(),e.enableAnimations=t}),1)}),!1,!0)}},_refreshOnDownloadComlete:function(){var t=this,e=this.source;if(e instanceof n.jqx.dataAdapter){var r=e._options;(null==r||null!=r&&!r.autoBind)&&(e.autoSync=!1,e.dataBind());var i=this.element.id;0==e.records.length?(e.unbindDownloadComplete(i),e.bindDownloadComplete(i,(function(){t.ready&&t.ready(),t.refresh()}))):t.ready&&t.ready(),e.unbindBindingUpdate(i),e.bindBindingUpdate(i,(function(){t._supressBindingRefresh||t.refresh()}))}},propertyChangedHandler:function(t,e,r,n){null!=this.isInitialized&&0!=this.isInitialized&&("source"==e&&this._refreshOnDownloadComlete(),this.refresh())},_initRenderer:function(t){if(!n.jqx.createRenderer)throw"Please include jqxdraw.js";return n.jqx.createRenderer(this,t)},_internalRefresh:function(){var t=this;if(!n.jqx.isHidden(t.host)){t._stopAnimations(),t.renderer&&(t._isToggleRefresh||t._isUpdate)||(t._hideToolTip(0),t._isVML=!1,t.host.empty(),t._measureDiv=void 0,t._initRenderer(t.host));var e=t.renderer;if(e){var r=e.getRect();t._render({x:1,y:1,width:r.width,height:r.height}),this._raiseEvent("refreshBegin",{instance:this}),e instanceof n.jqx.HTML5Renderer&&e.refresh(),t._isUpdate=!1,this._raiseEvent("refreshEnd",{instance:this})}}},saveAsPNG:function(t,e,r){return this._saveAsImage("png",t,e,r)},saveAsJPEG:function(t,e,r){return this._saveAsImage("jpeg",t,e,r)},saveAsPDF:function(t,e,r){return this._saveAsImage("pdf",t,e,r)},_saveAsImage:function(t,e,r,i){for(var s=!1,o=0;o<this.seriesGroups.length&&!s;o++){var a=this._getXAxis(o);a&&a.rangeSelector&&(s=!0)}return n.jqx._widgetToImage(this,t,e,r,i,s?this._selectorSaveAsImageCallback:void 0)},_selectorSaveAsImageCallback:function(t,e){for(var r=t,i=0;i<r.seriesGroups.length;i++){var s=r._getXAxis(i);if(s&&s.rangeSelector&&!s.rangeSelector.renderTo){var o=r._rangeSelectorInstances[i];if(o){var a=o.jqxChart("getInstance"),l=a.renderer.getRect(),h=a.renderer.getContainer().find("canvas")[0].getContext("2d"),u=r._sliders[i],c="horizontal"==r.seriesGroups[i].orientation,d=c?"height":"width",f=c?"width":"height",p=c?"y":"x",g=c?"x":"y",m={};m[p]=u.startOffset+u.rect[p],m[g]=u.rect[g],m[d]=u.endOffset-u.startOffset,m[f]=u.rect[f];var v=s.rangeSelector.colorRangeLine||"grey",y=[];y.push(a.renderer.rect(m.x,m.y,m.width,m.height,{fill:s.rangeSelector.colorSelectedRange||"blue",opacity:.1})),c?(y.push(a.renderer.line(n.jqx._ptrnd(u.rect.x+u.rect.width),n.jqx._ptrnd(u.rect.y),n.jqx._ptrnd(u.rect.x+u.rect.width),n.jqx._ptrnd(m.y),{stroke:v,opacity:.5})),y.push(a.renderer.line(n.jqx._ptrnd(u.rect.x+u.rect.width),n.jqx._ptrnd(m.y+m.height),n.jqx._ptrnd(u.rect.x+u.rect.width),n.jqx._ptrnd(u.rect.y+u.rect.height),{stroke:v,opacity:.5})),y.push(a.renderer.line(n.jqx._ptrnd(u.rect.x),n.jqx._ptrnd(m.y),n.jqx._ptrnd(u.rect.x+u.rect.width),n.jqx._ptrnd(m.y),{stroke:v,opacity:.5})),y.push(a.renderer.line(n.jqx._ptrnd(u.rect.x),n.jqx._ptrnd(m.y+m.height),n.jqx._ptrnd(u.rect.x+u.rect.width),n.jqx._ptrnd(m.y+m.height),{stroke:v,opacity:.5}))):(y.push(a.renderer.line(n.jqx._ptrnd(u.rect.x),n.jqx._ptrnd(u.rect.y),n.jqx._ptrnd(m.x),n.jqx._ptrnd(u.rect.y),{stroke:v,opacity:.5})),y.push(a.renderer.line(n.jqx._ptrnd(m.x+m.width),n.jqx._ptrnd(u.rect.y),n.jqx._ptrnd(u.rect.x+u.rect.width),n.jqx._ptrnd(u.rect.y),{stroke:v,opacity:.5})),y.push(a.renderer.line(n.jqx._ptrnd(m.x),n.jqx._ptrnd(u.rect.y),n.jqx._ptrnd(m.x),n.jqx._ptrnd(u.rect.y+u.rect.height),{stroke:v,opacity:.5})),y.push(a.renderer.line(n.jqx._ptrnd(m.x+m.width),n.jqx._ptrnd(u.rect.y),n.jqx._ptrnd(m.x+m.width),n.jqx._ptrnd(u.rect.y+u.rect.height),{stroke:v,opacity:.5}))),a.renderer.refresh();var x=h.getImageData(l.x,l.y,l.width,l.height);e.getContext("2d").putImageData(x,parseInt(o.css("left")),parseInt(o.css("top")),1,1,l.width,l.height);for(var _=0;_<y.length;_++)a.renderer.removeElement(y[_]);a.renderer.refresh()}}}return!0},refresh:function(){this._internalRefresh()},update:function(){this._isUpdate=!0,this._internalRefresh()},_seriesTypes:["line","stackedline","stackedline100","spline","stackedspline","stackedspline100","stepline","stackedstepline","stackedstepline100","area","stackedarea","stackedarea100","splinearea","stackedsplinearea","stackedsplinearea100","steparea","stackedsteparea","stackedsteparea100","rangearea","splinerangearea","steprangearea","column","stackedcolumn","stackedcolumn100","rangecolumn","scatter","stackedscatter","stackedscatter100","bubble","stackedbubble","stackedbubble100","pie","donut","candlestick","ohlc","waterfall","stackedwaterfall"],clear:function(){var t=this;for(var e in t._defaultSettings)t[e]=t._defaultSettings[e];t.title="",t.description="",t.refresh()},_validateSeriesGroups:function(){if(!n.isArray(this.seriesGroups))throw"Invalid property: 'seriesGroups' property is required and must be a valid array.";for(var t=0;t<this.seriesGroups.length;t++){var e=this.seriesGroups[t];if(!e.type)throw"Invalid property: Each series group must have a valid 'type' property.";if(!n.isArray(e.series))throw"Invalid property: Each series group must have a 'series' property which must be a valid array."}},_render:function(t){var e=this,r=e.renderer;e._validateSeriesGroups(),e._colorsCache.clear(),!e._isToggleRefresh&&e._isUpdate&&e._renderData&&e._renderDataClone(),e._renderData=[],r.clear(),e._unselect(),e._hideToolTip(0);var i=e.backgroundImage;e.host.css(null==i||""==i?{"background-image":""}:{"background-image":-1!=i.indexOf("(")?i:"url('"+i+"')"}),e._rect=t;var s=e.padding||{left:5,top:5,right:5,bottom:5},o=r.createClipRect(t),a=r.beginGroup();r.setClip(a,o);var l=r.rect(t.x,t.y,t.width-2,t.height-2);if(r.attr(l,null==i||""==i?{fill:e.backgroundColor||e.background||"white"}:{fill:"transparent"}),0!=e.showBorderLine){var h=null==e.borderLineColor?e.borderColor:e.borderLineColor;null==h&&(h=e._defaultLineColor);var u=this.borderLineWidth;(isNaN(u)||u<0||u>10)&&(u=1),r.attr(l,{"stroke-width":u,stroke:h})}else n.jqx.browser.msie&&n.jqx.browser.version<9&&r.attr(l,{"stroke-width":1,stroke:e.backgroundColor||"white"});n.isFunction(e.drawBefore)&&e.drawBefore(r,t);var c={x:s.left,y:s.top,width:t.width-s.left-s.right,height:t.height-s.top-s.bottom};e._paddedRect=c;var d,f=e.titlePadding||{left:2,top:2,right:2,bottom:2};if(e.title&&e.title.length>0){var p=e.toThemeProperty("jqx-chart-title-text",null);d=r.measureText(e.title,0,{class:p}),r.text(e.title,c.x+f.left,c.y+f.top,c.width-(f.left+f.right),d.height,0,{class:p},!0,"center","center"),c.y+=d.height,c.height-=d.height}if(e.description&&e.description.length>0){var g=e.toThemeProperty("jqx-chart-title-description",null);d=r.measureText(e.description,0,{class:g}),r.text(e.description,c.x+f.left,c.y+f.top,c.width-(f.left+f.right),d.height,0,{class:g},!0,"center","center"),c.y+=d.height,c.height-=d.height}(e.title||e.description)&&(c.y+=f.bottom+f.top,c.height-=f.bottom+f.top);var m={x:c.x,y:c.y,width:c.width,height:c.height};e._plotRect=m,e._buildStats(m);for(var v,y=e._isPieOnlySeries(),x=e.seriesGroups,_={xAxis:{},valueAxis:{}},b=0;b<x.length&&!y;b++)if("pie"!=x[b].type&&"donut"!=x[b].type){if(!(Q=e._getXAxis(b)))throw"seriesGroup["+b+"] is missing xAxis definition";var w=Q==e._getXAxis()?-1:b;_.xAxis[w]=0}var C=e.axisPadding;isNaN(C)&&(C=5);var S={left:0,right:0,leftCount:0,rightCount:0},A=[];for(b=0;b<x.length;b++)if("pie"!=(G=x[b]).type&&"donut"!=G.type&&1!=G.spider&&1!=G.polar){v="horizontal"==G.orientation,w=(Q=e._getXAxis(b))==e._getXAxis()?-1:b;var k=(O=e._getValueAxis(b))==e._getValueAxis()?-1:b,T=v?Q.axisSize:O.axisSize,j={x:0,y:m.y,width:m.width,height:m.height},q=v?e._getXAxis(b).position:O.position;T&&"auto"!=T||(v?(T=this._renderXAxis(b,j,!0,m).width,1==(1&_.xAxis[w])?T=0:T>0&&(_.xAxis[w]|=1)):(T=e._renderValueAxis(b,j,!0,m).width,1==(1&_.valueAxis[k])?T=0:T>0&&(_.valueAxis[k]|=1))),"left"!=q&&1==e.rtl&&(q="right"),"right"!=q&&(q="left"),S[q+"Count"]>0&&S[q]>0&&T>0&&(S[q]+=C),A.push({width:T,position:q,xRel:S[q]}),S[q]+=T,S[q+"Count"]++}else A.push({width:0,position:0,xRel:0});var N=Math.max(1,Math.max(t.width,t.height)),E={top:0,bottom:0,topCount:0,bottomCount:0},M=[];for(b=0;b<x.length;b++){var O;"pie"!=(G=x[b]).type&&"donut"!=G.type&&1!=G.spider&&1!=G.polar?(v="horizontal"==G.orientation,k=(O=this._getValueAxis(b))==e._getValueAxis()?-1:b,w=(Q=e._getXAxis(b))==e._getXAxis()?-1:b,q=v?O.position:Q.position,(H=v?O.axisSize:Q.axisSize)&&"auto"!=H||(v?(H=e._renderValueAxis(b,{x:0,y:0,width:N,height:0},!0,m).height,2==(2&_.valueAxis[k])?H=0:H>0&&(_.valueAxis[k]|=2)):(H=e._renderXAxis(b,{x:0,y:0,width:N,height:0},!0).height,2==(2&_.xAxis[w])?H=0:H>0&&(_.xAxis[w]|=2))),"top"!=q&&(q="bottom"),E[q+"Count"]>0&&E[q]>0&&H>0&&(E[q]+=C),M.push({height:H,position:q,yRel:E[q]}),E[q]+=H,E[q+"Count"]++):M.push({height:0,position:0,yRel:0})}e._createAnimationGroup("series");var I=0!=e.showLegend,D=I?e._renderLegend(e.legendLayout?e._rect:c,!0):{width:0,height:0};if(!this.legendLayout||isNaN(this.legendLayout.left)&&isNaN(this.legendLayout.top)||(D={width:0,height:0}),c.height<E.top+E.bottom+D.height||c.width<S.left+S.right)r.endGroup();else{m.height-=E.top+E.bottom+D.height,m.x+=S.left,m.width-=S.left+S.right,m.y+=E.top;var P=[];if(!y)for(e._getXAxis(),b=0;b<x.length;b++)if(1!=(G=x[b]).polar&&1!=G.spider&&"pie"!=G.type&&"donut"!=G.type)if(v="horizontal"==G.orientation,w=e._getXAxis(b)==e._getXAxis()?-1:b,k=e._getValueAxis(b)==e._getValueAxis()?-1:b,(j={x:m.x,y:0,width:m.width,height:M[b].height}).y="top"!=M[b].position?m.y+m.height+M[b].yRel:m.y-M[b].yRel-M[b].height,v){if(4==(4&_.valueAxis[k]))continue;if(!e._isGroupVisible(b))continue;e._renderValueAxis(b,j,!1,m),_.valueAxis[k]|=4}else{if(P.push(j),4==(4&_.xAxis[w]))continue;if(!e._isGroupVisible(b))continue;e._renderXAxis(b,j,!1,m),_.xAxis[w]|=4}if(I){var R=e.legendLayout?e._rect:c,F=c.x+n.jqx._ptrnd((c.width-D.width)/2),L=m.y+m.height+E.bottom,H=(T=c.width,D.height);e.legendLayout&&(isNaN(e.legendLayout.left)||(F=e.legendLayout.left),isNaN(e.legendLayout.top)||(L=e.legendLayout.top),isNaN(e.legendLayout.width)||(T=e.legendLayout.width),isNaN(e.legendLayout.height)||(H=e.legendLayout.height)),F+T>R.x+R.width&&(T=R.x+R.width-F),L+H>R.y+R.height&&(H=R.y+R.height-L),e._renderLegend({x:F,y:L,width:T,height:H})}if(e._hasHorizontalLines=!1,!y)for(b=0;b<x.length;b++)if(1!=(G=x[b]).polar&&1!=G.spider&&"pie"!=G.type&&"donut"!=G.type)if(v="horizontal"==x[b].orientation,j={x:m.x-A[b].xRel-A[b].width,y:m.y,width:A[b].width,height:m.height},"left"!=A[b].position&&(j.x=m.x+m.width+A[b].xRel),w=e._getXAxis(b)==e._getXAxis()?-1:b,k=e._getValueAxis(b)==e._getValueAxis()?-1:b,v){if(P.push(j),8==(8&_.xAxis[w]))continue;if(!e._isGroupVisible(b))continue;e._renderXAxis(b,j,!1,m),_.xAxis[w]|=8}else{if(8==(8&_.valueAxis[k]))continue;if(!e._isGroupVisible(b))continue;e._renderValueAxis(b,j,!1,m),_.valueAxis[k]|=8}if(!(m.width<=0||m.height<=0)){for(e._plotRect={x:m.x,y:m.y,width:m.width,height:m.height},b=0;b<x.length;b++)this._drawPlotAreaLines(b,!0,{gridLines:!1,tickMarks:!1,alternatingBackground:!0}),this._drawPlotAreaLines(b,!1,{gridLines:!1,tickMarks:!1,alternatingBackground:!0});for(b=0;b<x.length;b++)this._drawPlotAreaLines(b,!0,{gridLines:!0,tickMarks:!0,alternatingBackground:!1}),this._drawPlotAreaLines(b,!1,{gridLines:!0,tickMarks:!0,alternatingBackground:!1});var V=!1;for(b=0;b<x.length&&!V;b++)if(void 0!==(G=x[b]).annotations||n.isFunction(G.draw)||n.isFunction(G.drawBefore)){V=!0;break}var B=r.beginGroup();if(!V){var z=r.createClipRect({x:m.x-2,y:m.y,width:m.width+4,height:m.height});r.setClip(B,z)}for(b=0;b<x.length;b++){var G=x[b],U=!1;for(var W in e._seriesTypes)if(e._seriesTypes[W]==G.type){U=!0;break}if(!U)throw'Invalid serie type "'+G.type+'"';n.isFunction(G.drawBefore)&&G.drawBefore(r,t,b,this),1!=G.polar&&1!=G.spider||-1==G.type.indexOf("pie")&&-1==G.type.indexOf("donut")&&e._renderSpiderAxis(b,m),e._renderAxisBands(b,m,!0),e._renderAxisBands(b,m,!1)}for(b=0;b<x.length;b++){if(e._isColumnType((G=x[b]).type)?e._renderColumnSeries(b,m):-1!=G.type.indexOf("pie")||-1!=G.type.indexOf("donut")?e._renderPieSeries(b,m):-1!=G.type.indexOf("line")||-1!=G.type.indexOf("area")?e._renderLineSeries(b,m):-1!=G.type.indexOf("scatter")||-1!=G.type.indexOf("bubble")?e._renderScatterSeries(b,m):-1==G.type.indexOf("candlestick")&&-1==G.type.indexOf("ohlc")||e._renderCandleStickSeries(b,m,-1!=G.type.indexOf("ohlc")),G.annotations){if(!this._moduleAnnotations)throw"Please include 'jqxchart.annotations.js'";for(var $=0;$<G.annotations.length;$++)e._renderAnnotation(b,G.annotations[$],m)}n.isFunction(G.draw)&&e.draw(r,t,b,this)}if(r.endGroup(),0==e.enabled){var X=r.rect(t.x,t.y,t.width,t.height);r.attr(X,{fill:"#777777",opacity:.5,stroke:"#00FFFFFF"})}n.isFunction(e.draw)&&e.draw(r,t),r.endGroup(),e._startAnimation("series"),e._credits&&e._credits();var Y=!1;for(b=0;b<e.seriesGroups.length&&!Y;b++){var Q;(Q=e._getXAxis(b))&&Q.rangeSelector&&(Y=!0)}if(Y){if(!this._moduleRangeSelector)throw"Please include 'jqxchart.rangeselector.js'";var J=[];for(this._isSelectorRefresh||(e.removeHandler(n(document),e._getEvent("mousemove"),e._onSliderMouseMove),e.removeHandler(n(document),e._getEvent("mousedown"),e._onSliderMouseDown),e.removeHandler(n(document),e._getEvent("mouseup"),e._onSliderMouseUp)),e._isSelectorRefresh||(e._rangeSelectorInstances={}),b=0;b<e.seriesGroups.length;b++){var Z=this._getXAxis(b);-1==J.indexOf(Z)&&this._renderXAxisRangeSelector(b,P[b])&&J.push(Z)}}}}},_credits:function(){if("75CE8878-FCD1-4EC7-9249-BA0F153A5DE8"!==n.jqx.credits){var t=this,e=String.fromCharCode(119,119,119,46,106,113,119,105,100,103,101,116,115,46,99,111,109);if(!t._isRangeSelectorInstance&&-1==location.hostname.indexOf(e.substring(4))){var r=t.renderer,i=t._rect,s={class:t.toThemeProperty("jqx-chart-legend-text",null),opacity:.5},o=r.measureText(e,0,s),a=r.text(e,i.x+i.width-o.width-5,i.y+i.height-o.height-5,o.width,o.height,0,s);n(a).on("click",(function(){location.href="http://"+e+"/?ref="+t.widgetName}))}}},_isPieOnlySeries:function(){var t=this.seriesGroups;if(0==t.length)return!1;for(var e=0;e<t.length;e++)if("pie"!=t[e].type&&"donut"!=t[e].type)return!1;return!0},_renderChartLegend:function(t,e,r,i){var s=this,o=s.renderer,a={x:e.x,y:e.y,width:e.width,height:e.height};a.width>=6&&(a.x+=3,a.width-=6),a.height>=6&&(a.y+=3,a.height-=6);for(var l={width:a.width,height:0},h=0,u=0,c=20,d=0,f=0,p=0;p<t.length;p++){var g=t[p].css;g||(g=s.toThemeProperty("jqx-chart-legend-text",null)),c=20;var m=t[p].text,v=o.measureText(m,0,{class:g});v.height>c&&(c=v.height),v.width>f&&(f=v.width),i?(0!=p&&(u+=c),u>a.height&&(u=0,l.width=(h+=f+20+10)+(f=v.width))):(0!=h&&(h+=10),h+20+v.width>a.width&&v.width<a.width&&(h=0,d=a.width,l.height=(u+=c)+(c=20)));var y=!1;if(v.width>a.width){y=!0;for(var x=a.width,_=m.split(/\s+/),b=[],w="",C=0;C<_.length;C++)(k=s.renderer.measureText(R=w+(w.length>0?" ":"")+_[C],0,{class:g})).width>x&&R.length>0&&w.length>0?(b.push({text:w}),w=_[C]):w=R,C+1==_.length&&b.push({text:w});v.width=0;for(var S=0,A=0;A<b.length;A++){var k=s.renderer.measureText(F=b[A].text,0,{class:g});v.width=Math.max(v.width,k.width),S+=v.height}v.height=S}var T=h+v.width<a.width&&u+v.height<e.height;if(s.legendLayout&&(T=a.x+h+v.width<s._rect.x+s._rect.width&&a.y+u+v.height<s._rect.y+s._rect.height),!r&&T){var j=t[p].seriesIndex,q=t[p].groupIndex,N=t[p].itemIndex,E=t[p].fillColor,M=t[p].lineColor,O=s._isSerieVisible(q,j,N),I=o.beginGroup(),D=O?t[p].opacity:.1;if(y){x=a.width,_=m.split(/\s+/);var P=0;for(b=[],w="",C=0;C<_.length;C++){var R;(k=s.renderer.measureText(R=w+(w.length>0?" ":"")+_[C],0,{class:g})).width>x&&R.length>0&&w.length>0?(b.push({text:w,dy:P}),P+=k.height,w=_[C]):w=R,C+1==_.length&&b.push({text:w,dy:P})}for(A=0;A<b.length;A++){var F;P=b[A].dy,k=s.renderer.measureText(F=b[A].text,0,{class:g}),s.renderer.text(F,a.x+h+15,a.y+u+P,v.width,c,0,{class:g},!1,i?"left":"center","center")}var L=o.rect(a.x+h,a.y+u+5+P/2,10,10);i&&(u+=P),s.renderer.attr(L,{fill:E,"fill-opacity":D,stroke:M,"stroke-width":1,"stroke-opacity":t[p].opacity})}else L=o.rect(a.x+h,a.y+u+5,10,10),s.renderer.attr(L,{fill:E,"fill-opacity":D,stroke:M,"stroke-width":1,"stroke-opacity":t[p].opacity}),i?s.renderer.text(m,a.x+h+15,a.y+u,v.width,v.height+5,0,{class:g},!1,"left","center"):s.renderer.text(m,a.x+h+15,a.y+u,v.width,c,0,{class:g},!1,"center","center");s.renderer.endGroup(),s._setLegendToggleHandler(q,j,N,I)}i||d<(h+=v.width+20)&&(d=h)}if(r)return l.height=n.jqx._ptrnd(u+c+5),l.width=n.jqx._ptrnd(d),l},isSerieVisible:function(t,e,r){return this._isSerieVisible(t,e,r)},_isSerieVisible:function(t,e,r){for(;this._itemsToggleState.length<t+1;)this._itemsToggleState.push([]);for(var i=this._itemsToggleState[t];i.length<e+1;)i.push(!!isNaN(r)||[]);var s=i[e];if(isNaN(r))return s;for(n.isArray(s)||(i[e]=s=[]);s.length<r+1;)s.push(!0);return s[r]},isGroupVisible:function(t){return this._isGroupVisible(t)},_isGroupVisible:function(t){var e=!1,r=this.seriesGroups[t].series;if(!r)return e;for(var n=0;n<r.length;n++)if(this._isSerieVisible(t,n)){e=!0;break}return e},_toggleSerie:function(t,e,r,i){var s=!this._isSerieVisible(t,e,r);null!=i&&(s=i);var o=this.seriesGroups[t];if(this._raiseEvent("toggle",{state:s,seriesGroup:o,serie:o.series[e],elementIndex:r}),isNaN(r))this._itemsToggleState[t][e]=s;else{var a=this._itemsToggleState[t][e];for(n.isArray(a)||(a=[]);a.length<r;)a.push(!0);a[r]=s}this._isToggleRefresh=!0,this.update(),this._isToggleRefresh=!1},showSerie:function(t,e,r){this._toggleSerie(t,e,r,!0)},hideSerie:function(t,e,r){this._toggleSerie(t,e,r,!1)},_setLegendToggleHandler:function(t,e,r,n){var i=this.seriesGroups[t],s=i.series[e].enableSeriesToggle;if(null==s&&(s=0!=i.enableSeriesToggle),s){var o=this;this.renderer.addHandler(n,"click",(function(n){o._toggleSerie(t,e,r)}))}},_renderLegend:function(t,e){for(var r=this,n=[],i=0;i<r.seriesGroups.length;i++){var s=r.seriesGroups[i];if(0!=s.showLegend)for(var o=0;o<s.series.length;o++){var a=s.series[o];if(0!=a.showLegend){var l,h=r._getSerieSettings(i,o);if("pie"!=s.type&&"donut"!=s.type){l=r._formatValue(a.displayText||a.dataField||"",f=a.legendFormatSettings||s.legendFormatSettings,p=a.legendFormatFunction||s.legendFormatFunction,i,o,NaN),v=r._getSeriesColors(i,o);var u=this._get([a.legendFillColor,a.legendColor,v.fillColor]),c=this._get([a.legendLineColor,a.legendColor,v.lineColor]);n.push({groupIndex:i,seriesIndex:o,text:l,css:a.displayTextClass,fillColor:u,lineColor:c,opacity:h.opacity})}else for(var d=r._getXAxis(i),f=a.legendFormatSettings||s.legendFormatSettings||d.formatSettings||a.formatSettings||s.formatSettings,p=a.legendFormatFunction||s.legendFormatFunction||d.formatFunction||a.formatFunction||s.formatFunction,g=r._getDataLen(i),m=0;m<g;m++){l=r._getDataValue(m,a.displayText,i),l=r._formatValue(l,f,p,i,o,m);var v=r._getColors(i,o,m);n.push({groupIndex:i,seriesIndex:o,itemIndex:m,text:l,css:a.displayTextClass,fillColor:v.fillColor,lineColor:v.lineColor,opacity:h.opacity})}}}}return r._renderChartLegend(n,t,e,r.legendLayout&&"vertical"==r.legendLayout.flow)},_getInterval:function(t,e){if(!t)return e;var r=this._get([t.unitInterval,e]);return isNaN(t.step)||(r=t.step*e),r},_getOffsets:function(t,e,r,n,i,s,o,a,l){var h,u=this._getInterval(i[t],a),c=[];if((""==t||i[t].visible&&"custom"!=i[t].visible)&&(c=this._generateIntervalValues(n,u,a,o,l)),"labels"!=t){var d=o?s.left:0;if(!o&&a>1&&(d=s.left*(a+1)),1==c.length&&(d*=2),h=this._valuesToOffsets(c,e,n,r,s,!1,d),!o){var f=(s.left+s.right)*u/a;e.flip?h.unshift(h[0]+f):h.push(h[h.length-1]+f)}}else d=s.left,1==c.length&&(d*=2),h=this._valuesToOffsets(c,e,n,r,s,o,d);var p=this._arraysToObjectsArray([c,h],["value","offset"]);if(e[t]&&e[t].custom)for(var g=this._objectsArraysToArray(e[t].custom,"value"),m=this._objectsArraysToArray(e[t].custom,"offset"),v=this._valuesToOffsets(g,e,n,r,s,o,s.left),y=0;y<e[t].custom.length;y++)p.push({value:g[y],offset:isNaN(m[y])?v[y]:m[y]});return p},_renderXAxis:function(t,e,r,i){var s=this,o=s._getXAxis(t),a=s.seriesGroups[t],l="horizontal"==a.orientation,h={width:0,height:0},u=s._getAxisSettings(o);if(!o||!u.visible||"spider"==a.type)return h;if(!s._isGroupVisible(t)||this._isPieGroup(t))return h;for(var c=s._alignValuesWithTicks(t);s._renderData.length<t+1;)s._renderData.push({});s.rtl&&(o.flip=!0);var d=l?e.height:e.width,f=o.text,p=s._calculateXOffsets(t,d),g=p.axisStats,m=o.rangeSelector,v=0;if(m){if(!this._moduleRangeSelector)throw"Please include 'jqxchart.rangeselector.js'";v=this._selectorGetSize(o)}var y=l&&"right"==o.position||!l&&"top"==o.position;!r&&m&&(l?(e.width-=v,"right"!=o.position&&(e.x+=v)):(e.height-=v,"top"==o.position&&(e.y+=v)));var x={rangeLength:p.rangeLength,itemWidth:p.itemWidth,intervalWidth:p.intervalWidth,data:p,settings:u,isMirror:y,rect:e};s._renderData[t].xAxis=x;var _=g.interval;if(isNaN(_))return h;l&&(u.title.angle-=90,u.labels.angle-=90);var b,w,C=this._getInterval(u.gridLines,_),S=this._getInterval(u.tickMarks,_),A=this._getInterval(u.labels,_),k=g.min,T=g.max,j=p.padding,q=1==o.flip||s.rtl,N={min:k,max:T};g.logAxis.enabled&&(N.min=g.logAxis.minPow,N.max=g.logAxis.maxPow),"date"==o.type?(u.gridLines.offsets=this._generateDTOffsets(k,T,d,j,C,_,g.dateTimeUnit,c,NaN,!1,q),u.tickMarks.offsets=this._generateDTOffsets(k,T,d,j,S,_,g.dateTimeUnit,c,NaN,!1,q),b=this._generateDTOffsets(k,T,d,j,A,_,g.dateTimeUnit,c,NaN,!0,q)):(u.gridLines.offsets=this._getOffsets("gridLines",o,d,g,u,j,c,_),u.tickMarks.offsets=this._getOffsets("tickMarks",o,d,g,u,j,c,_),b=this._getOffsets("labels",o,d,g,u,j,c,_)),s.renderer.getRect(),s._getDataLen(t),s._elementRenderInfo&&s._elementRenderInfo.length>t&&(w=s._elementRenderInfo[t].xAxis);var E,M,O=[];u.labels.formatFunction&&(E=u.labels.formatFunction),u.labels.formatSettings&&(M=n.extend({},u.labels.formatSettings)),"date"==o.type&&(o.dateFormat&&!E?M?M.dateFormat=M.dateFormat||o.dateFormat:M={dateFormat:o.dateFormat}:E||M&&(!M||M.dateFormat)||(E=this._getDefaultDTFormatFn(o.baseUnit||"day")));for(var I=0;I<b.length;I++){var D=b[I].value,P=b[I].offset;if(!isNaN(P)){var R=void 0;"date"!=o.type&&g.useIndeces&&o.dataField&&(R=Math.round(D),null==(D=s._getDataValue(R,o.dataField))&&(D="")),null!=(f=s._formatValue(D,M,E,t,void 0,R))&&""!=f.toString()||(isNaN(R)&&(R=I),R>=g.filterRange.min&&R<=g.filterRange.max&&(f=g.useIndeces?(g.min+R).toString():null==D?"":D.toString()));var F={key:D,text:f,targetX:P,x:P};w&&w.itemOffsets[D]&&(F.x=w.itemOffsets[D].x,F.y=w.itemOffsets[D].y),O.push(F)}}var L=s._getAnimProps(t),H=L.enabled&&O.length<500?L.duration:0;0==s.enableAxisTextAnimation&&(H=0);var V=s._renderAxis(l,y,u,{x:e.x,y:e.y,width:e.width,height:e.height},i,_,!1,!0,{items:O,renderData:x},r,H);return l?V.width+=v:V.height+=v,V},_animateAxisText:function(t,e){for(var r=t.items,n=t.textSettings,i=0;i<r.length;i++){var s=r[i];if(s&&s.visible){var o=s.targetX,a=s.targetY;isNaN(s.x)||isNaN(s.y)||(o=s.x+(o-s.x)*e,a=s.y+(a-s.y)*e),s.element&&(this.renderer.removeElement(s.element),s.element=void 0),s.element=this.renderer.text(s.text,o,a,s.width,s.height,n.angle,{class:n.style},!1,n.halign,n.valign,n.textRotationPoint)}}},_getPolarAxisCoords:function(t,e){var r=this.seriesGroups[t],i=e.x+n.jqx.getNum([r.offsetX,e.width/2]),s=e.y+n.jqx.getNum([r.offsetY,e.height/2]),o=Math.min(e.width,e.height),a=r.radius;this._isPercent(a)&&(a=parseFloat(a)/100*o/2),isNaN(a)&&(a=o/2*.6);var l=this._alignValuesWithTicks(t),h=this._get([r.startAngle,r.minAngle,0])-90;h=isNaN(h)?0:2*Math.PI*h/360;var u=this._get([r.endAngle,r.maxAngle,360])-90;if(h>(u=isNaN(u)?2*Math.PI:2*Math.PI*u/360)){var c=h;h=u,u=c}var d=n.jqx._rnd(Math.abs(h-u)/(2*Math.PI),.001,!0),f=2*Math.PI*a*d,p=this._calcGroupOffsets(t,e).xoffsets;if(p){var g=!(Math.abs(Math.abs(u-h)-2*Math.PI)>1e-5);if(r.spider){var m=this._getXAxisStats(t,this._getXAxis(t),f),v=m.interval;(isNaN(v)||0==v)&&(v=1);var y=(m.max-m.min)/v+(g?1:0);if((y=Math.round(y))>2){var x=Math.cos(Math.abs(u-h)/2/y);0==(x=n.jqx._rnd(x,.01))&&(x=1);var _=a/x;_>a&&l&&(a=_)}}return{x:i,y:s,r:a=n.jqx._ptrnd(a),adjR:this._get([_,a]),itemWidth:p.itemWidth,rangeLength:p.rangeLength,valuesOnTicks:l,startAngle:h,endAngle:u,isClosedCircle:g,axisSize:f}}},_toPolarCoord:function(t,e,r,i){var s=Math.abs(t.startAngle-t.endAngle)/(2*Math.PI),o=2*(r-e.x)*Math.PI*s/Math.max(1,e.width)+t.startAngle,a=(e.height+e.y-i)*t.r/Math.max(1,e.height),l=t.x+a*Math.cos(o),h=t.y+a*Math.sin(o);return{x:n.jqx._ptrnd(l),y:n.jqx._ptrnd(h)}},_renderSpiderAxis:function(t,e){var r=this,i=r._getXAxis(t),s=this._getAxisSettings(i);if(i&&s.visible){var o=r.seriesGroups[t],a=r._getPolarAxisCoords(t,e);if(a){var l=n.jqx._ptrnd(a.x),h=n.jqx._ptrnd(a.y),u=a.adjR,c=a.startAngle,d=a.endAngle;if(!(u<1)){var f=n.jqx._rnd(Math.abs(c-d)/(2*Math.PI),.001,!0),p=2*Math.PI*u*f,g=a.isClosedCircle,m=this._renderData[t].xoffsets;if(m.rangeLength){var v=m.axisStats.interval;for((isNaN(v)||v<1)&&(v=1);r._renderData.length<t+1;)r._renderData.push({});var y={rangeLength:m.rangeLength,itemWidth:m.itemWidth,data:m,rect:e,settings:s};r._renderData[t].xAxis=y,r._renderData[t].polarCoords=a;for(var x=!0,_=0;_<t;_++){var b=r._renderData[_].polarCoords,w=r._getXAxis(_),C=!1;for(var S in a)if(a[S]!=b[S]){C=!0;break}C&&w==i||(x=!1)}var A,k,T=s.gridLines,j=s.tickMarks,q=s.labels,N=this._getInterval(T,v),E=this._getInterval(j,v),M=this._getInterval(q,v),O=r._alignValuesWithTicks(t),I=r.renderer,D=m.axisStats,P=D.min,R=D.max,F=this._getPaddingSize(m.axisStats,i,O,p,!0,g,!1),L=1==i.flip||r.rtl;"date"==i.type?(T.offsets=this._generateDTOffsets(P,R,p,F,N,v,i.baseUnit,!0,0,!1,L),j.offsets=this._generateDTOffsets(P,R,p,F,E,v,i.baseUnit,!0,0,!1,L),A=this._generateDTOffsets(P,R,p,F,M,v,i.baseUnit,!0,0,!0,L)):(s.gridLines.offsets=this._getOffsets("gridLines",i,p,D,s,F,!0,v),s.tickMarks.offsets=this._getOffsets("tickMarks",i,p,D,s,F,!0,v),A=this._getOffsets("labels",i,p,D,s,F,!0,v)),r.renderer.getRect(),r._getDataLen(t),r._elementRenderInfo&&r._elementRenderInfo.length>t&&(k=r._elementRenderInfo[t].xAxis);var H=[],V=this._getDataLen(t);for(_=0;_<A.length;_++){var B=A[_].offset,z=A[_].value;if("date"!=i.type&&D.useIndeces&&i.dataField){var G=Math.round(z);if(G>=V)continue;null==(z=r._getDataValue(G,i.dataField))&&(z="")}var U=r._formatValue(z,q.formatSettings,q.formatFunction,t,void 0,G);null!=U&&""!=U.toString()||(U=D.useIndeces?(D.min+_).toString():null==z?"":z.toString());var W={key:z,text:U,targetX:B,x:B};k&&k.itemOffsets[z]&&(W.x=k.itemOffsets[z].x,W.y=k.itemOffsets[z].y),H.push(W)}var $={stroke:T.color,fill:"none","stroke-width":T.width,"stroke-dasharray":T.dashStyle||""};if(!o.spider)if(1==f)I.circle(l,h,u,$);else{var X=-c/Math.PI*180,Y=-d/Math.PI*180;this.renderer.pieslice(l,h,0,u,Math.min(X,Y),Math.max(X,Y),void 0,$)}Math;var Q=c;if(T.visible&&x)for(O||g||T.offsets.unshift({offset:-F.right}),_=0;_<T.offsets.length;_++){var J=T.offsets[_].offset;if(O||(J+=g?F.right/2:F.right),!((ot=Q+2*J*Math.PI*f/Math.max(1,p))-d>.01)){var Z=n.jqx._ptrnd(l+u*Math.cos(ot)),K=n.jqx._ptrnd(h+u*Math.sin(ot));I.line(l,h,Z,K,$)}}if(j.visible&&x){var tt={stroke:j.color,fill:"none","stroke-width":j.width,"stroke-dasharray":j.dashStyle||""};for(O||g||j.offsets.unshift({offset:-F.right}),_=0;_<j.offsets.length;_++)if(J=j.offsets[_].offset,O||(J+=g?F.right/2:F.right),!((ot=Q+2*J*Math.PI*f/Math.max(1,p))-d>.01)){var et={x:l+u*Math.cos(ot),y:h+u*Math.sin(ot)},rt={x:l+(u+5)*Math.cos(ot),y:h+(u+5)*Math.sin(ot)};I.line(n.jqx._ptrnd(et.x),n.jqx._ptrnd(et.y),n.jqx._ptrnd(rt.x),n.jqx._ptrnd(rt.y),tt)}}var nt=[];if(o.spider){var it=[];for(it="date"==i.type?this._generateDTOffsets(P,R,p,F,v,v,i.baseUnit,!0,0,!1,L):this._getOffsets("",i,p,D,s,F,!0,v),O||g||it.unshift({offset:-F.right}),_=0;_<it.length;_++)J=it[_].offset,O||(J+=g?F.right/2:F.right),(ot=Q+2*J*Math.PI*f/Math.max(1,p))-d>.01||nt.push(ot);y.offsetAngles=nt}var st=r._renderSpiderValueAxis(t,e,O?a.adjR:a.r,nt);if(st||(st=[]),o.spider){if(!O)for(_=0;_<st.length;_++)st[_]=st[_]*a.adjR/a.r;st.push(u),this._renderSpiderLines(l,h,st,a,nt,$)}if(x&&q.visible)for(y.polarLabels=[],_=0;_<H.length;_++){var ot;(ot=(360-(ot=Q+2*(J=H[_].x)*Math.PI*f/Math.max(1,p))/(2*Math.PI)*360)%360)<0&&(ot=360+ot);var at,lt=I.measureText(H[_].text,0,{class:s.labels.style}),ht=(O?a.adjR:a.r)+(j.visible?7:2),ut=s.labels;if(ut.autoRotate){var ct=n.jqx._ptRotate(l-lt.width/2,h-ht-lt.height,l,h,-ot/180*Math.PI),dt=n.jqx._ptRotate(l+lt.width/2,h-ht,l,h,-ot/180*Math.PI);lt.width=Math.abs(ct.x-dt.x),lt.height=Math.abs(ct.y-dt.y),at={x:Math.min(ct.x,dt.x),y:Math.min(ct.y,dt.y)}}else at=this._adjustTextBoxPosition(l,h,lt,ht,ot,!1,!1,!1);y.polarLabels.push({x:at.x,y:at.y,value:H[_].text}),I.text(H[_].text,at.x,at.y,lt.width,lt.height,ut.autoRotate?90-ot:ut.angle,{class:ut.style},!1,ut.halign,ut.valign)}}}}}},_renderSpiderLines:function(t,e,r,i,s,o){for(var a=this.renderer,l=i.isClosedCircle,h=0;h<r.length;h++){for(var u=r[h],c=void 0,d=void 0,f=0;f<s.length;f++){var p=s[f],g=n.jqx._ptrnd(t+u*Math.cos(p)),m=n.jqx._ptrnd(e+u*Math.sin(p));c&&a.line(c.x,c.y,g,m,o),c={x:g,y:m},d||(d={x:g,y:m})}d&&l&&a.line(c.x,c.y,d.x,d.y,o)}},_renderSpiderValueAxis:function(t,e,r,i){var s=this.seriesGroups[t],o=this._getPolarAxisCoords(t,e);if(o){var a=n.jqx._ptrnd(o.x),l=n.jqx._ptrnd(o.y);r=r||o.r;var h=o.startAngle,u=o.endAngle,c=n.jqx._rnd(Math.abs(h-u)/(2*Math.PI),.001,!0);if(!(r<1)){r=n.jqx._ptrnd(r);var d=this._getValueAxis(t),f=this._getAxisSettings(d);if(d&&0!=f.visible){var p=this._stats.seriesGroups[t].mu,g=f.labels,m=g.formatSettings;-1!=s.type.indexOf("stacked")&&-1!=s.type.indexOf("100")&&!m&&(m={sufix:"%"});var v=this._get([g.step,g.unitInterval/p]);isNaN(v)&&(v=1),v=Math.max(1,Math.round(v)),this._calcValueAxisItems(t,r,v);var y=f.gridLines,x=f.tickMarks,_=(this._getInterval(y,p),this._getInterval(x,p),f.labels),b={stroke:y.color,fill:"none","stroke-width":1,"stroke-dasharray":y.dashStyle||""},w=this._renderData[t].valueAxis,C=w.items,S=h;if(C.length&&f.line.visible){isNaN(f.line.angle)||(S=2*Math.PI*f.line.angle/360);var A=a+Math.cos(S)*r,k=l+Math.sin(S)*r;if(-1==i.indexOf(S)){var T=n.extend({},b);T["stroke-width"]=f.line.lineWidth,T.stroke=f.line.color,T["stroke-dasharray"]=f.line.dashStyle,this.renderer.line(a,l,A,k,T)}}C=C.reverse();var j=this.renderer;w.polarLabels=[];for(var q=0;q<C.length-1;q++){var N=C[q];if(!isNaN(N)){var E=_.formatFunction?_.formatFunction(N):this._formatNumber(N,m),M=j.measureText(E,0,{class:_.style}),O=a+(0!=d.showTickMarks?3:2),I=n.jqx._ptRotate(O,B=l-w.itemWidth*q-M.height/2,a,l,S),D=n.jqx._ptRotate(O+M.width,B+M.height,a,l,S);O=Math.min(I.x,D.x),B=Math.min(I.y,D.y),M.width=Math.abs(I.x-D.x),M.height=Math.abs(I.y-D.y),w.polarLabels.push({x:O+=f.labels.textOffset.x,y:B+=f.labels.textOffset.y,value:E}),j.text(E,O,B,M.width,M.height,_.autoRotate?90+180*h/Math.PI:_.angle,{class:_.style},!1,_.halign,_.valign)}}Math;var P=0!=d.valuesOnTicks,R=this._stats.seriesGroups[t],F=R.mu,L=1==d.logarithmicScale;L&&(F=1);var H={min:R.min,max:R.max,logAxis:{enabled:1==L,base:d.logarithmicScaleBase,minPow:R.minPow,maxPow:R.maxPow}};(y.visible||s.spider||d.alternatingBackgroundColor||d.alternatingBackgroundColor2)&&(y.offsets=this._getOffsets("gridLines",d,r,H,f,{left:0,right:0},P,F));var V=[];if(y.visible||s.spider)for(b={stroke:y.color,fill:"none","stroke-width":1,"stroke-dasharray":y.dashStyle||""},q=0;q<y.offsets.length;q++){var B;if((B=n.jqx._ptrnd(y.offsets[q].offset))!=r)if(s.spider)V.push(B);else if(1!=c){var z=-h/Math.PI*180,G=-u/Math.PI*180;this.renderer.pieslice(a,l,0,B,Math.min(z,G),Math.max(z,G),void 0,b)}else j.circle(a,l,B,b)}if(d.tickMarks&&(d.tickMarks.visible||d.showTickMarks)||(x.visible=!1),x.visible){x.offsets=this._getOffsets("tickMarks",d,r,H,f,{left:0,right:0},P,F);var U=2*x.size;for(b={stroke:x.color,fill:"none","stroke-width":1,"stroke-dasharray":x.dashStyle||""},q=0;q<x.offsets.length;q++){var W=x.offsets[q].offset;I={x:a+W*Math.cos(S)-U/2*Math.sin(S+Math.PI/2),y:l+W*Math.sin(S)-U/2*Math.cos(S+Math.PI/2)},D={x:a+W*Math.cos(S)+U/2*Math.sin(S+Math.PI/2),y:l+W*Math.sin(S)+U/2*Math.cos(S+Math.PI/2)},j.line(n.jqx._ptrnd(I.x),n.jqx._ptrnd(I.y),n.jqx._ptrnd(D.x),n.jqx._ptrnd(D.y),b)}}return V}}}},_renderAxis:function(t,e,r,i,s,o,a,l,h,u,c){if(r.customDraw&&!u)return{width:NaN,height:NaN};var d=r.title,f=r.labels,p=r.tickMarks,g=r.padding,m=p.visible?p.size:0,v={width:0,height:0},y={width:0,height:0};t?v.height=y.height=i.height:v.width=y.width=i.width,!u&&e&&t&&(i.x-=i.width);var x=h.renderData,_=x.itemWidth;if(d.visible&&null!=d.text&&""!=d){var b=d.angle,w=this.renderer.measureText(d.text,b,{class:d.style});y.width=w.width,y.height=w.height,u||this.renderer.text(d.text,i.x+d.offset.x+(t?e?-g.right-2+2*i.width-y.width:2+g.left:0),i.y+d.offset.y+(t?0:e?g.top+2:i.height-2-y.height-g.bottom),t?y.width:i.width,t?i.height:y.height,b,{class:d.style},!0,d.halign,d.valign,d.rotationPoint)}var C=0,S=l?-_/2:0;l&&!t&&(f.halign="center");var A=i.x,k=i.y,T=f.textOffset;T&&(isNaN(T.x)||(A+=T.x),isNaN(T.y)||(k+=T.y)),t?(A+=g.left+2+(y.width>0?y.width+2:0)+(e?i.width-y.width:0),k+=S):(A+=S,e?(k+=y.height>0?y.height+6:4,k+=m-(l?m:m/4)):k+=l?m:m/4,k+=g.top);var j=0,q=0,N=h.items;x.itemOffsets={},!this._isToggleRefresh&&this._isUpdate||(c=0);for(var E=!1,M=0,O=0;O<N.length&&f.visible;O++,C+=_)if(N[O]&&!isNaN(_)){var I=N[O].text;if(isNaN(N[O].targetX)||(C=N[O].targetX),(w=this.renderer.measureText(I,f.angle,{class:f.style})).width>q&&(q=w.width),w.height>j&&(j=w.height),M+=t?j:q,!u){if(t&&C>i.height+2||!t&&C>i.width+2)continue;x.itemOffsets[N[O].key]={x:F=t?A+(e?0==y.width?m:m-2:0):A+C,y:L=t?k+C:k},E||(!isNaN(N[O].x)||!isNaN(N[O].y)&&c)&&(E=!0),N[O].targetX=F,N[O].targetY=L,N[O].width=t?i.width-g.left-g.right-4-m-(y.width>0?y.width+2:0):_,N[O].height=t?_:i.height-g.top-g.bottom-4-m-(y.height>0?y.height+2:0),N[O].visible=!0}}if(x.avgWidth=0==N.length?0:M/N.length,!u){var D={items:N,textSettings:f};if(!isNaN(c)&&E||(c=0),this._animateAxisText(D,0==c?1:0),0!=c){var P=this;this._enqueueAnimation("series",void 0,void 0,c,(function(t,e,r){P._animateAxisText(e,r)}),D)}}if(v.width+=4+m+y.width+q+(t&&y.width>0?2:0),v.height+=4+m+y.height+j+(!t&&y.height>0?2:0),t?v.width+=g.left+g.right:v.height+=g.top+g.bottom,!u&&r.line.visible){var R={stroke:r.line.color,"stroke-width":r.line.width,"stroke-dasharray":r.line.dashStyle||""};if(t){var F;F=n.jqx._ptrnd(F=i.x+i.width+(e?g.left:-g.right)),this.renderer.line(F,i.y,F,i.y+i.height,R)}else{var L=n.jqx._ptrnd(i.y+(e?i.height-g.bottom:g.top));this.renderer.line(n.jqx._ptrnd(i.x),L,n.jqx._ptrnd(i.x+i.width+1),L,R)}}return v.width=n.jqx._rup(v.width),v.height=n.jqx._rup(v.height),v},_drawPlotAreaLines:function(t,e,r){var i=this.seriesGroups[t],s="horizontal"!=i.orientation;if(this._renderData&&!(this._renderData.length<=t)){var o=this._renderData[t][e?"valueAxis":"xAxis"];if(o){var a=this._renderData.axisDrawState;a||(a=this._renderData.axisDrawState={});var l,h="";e?(h="valueAxis_"+(i.valueAxis?t:"")+(s?"swap":""),l=this._getValueAxis(t)):(h="xAxis_"+(i.xAxis||i.categoryAxis?t:"")+(s?"swap":""),l=this._getXAxis(t)),a=a[h]?a[h]:a[h]={},e||(s=!s);var u=o.settings;if(u&&!u.customDraw){var c=u.gridLines,d=u.tickMarks,f=u.padding,p=o.rect,g=this._plotRect;if(c&&d){var m=.5,v={},y={stroke:c.color,"stroke-width":c.width,"stroke-dasharray":c.dashStyle||""},x=e?p.y+p.height:p.x,_=c.offsets;if(e&&!l.flip&&(_=(_=n.extend([],_)).reverse()),_&&_.length>0)for(var b=NaN,w=0;w<_.length;w++){if(s){var C=n.jqx._ptrnd(p.y+_[w].offset);C<p.y-m&&(C=n.jqx._ptrnd(p.y)),C>p.y+p.height&&(C=p.y+p.height)}else(C=n.jqx._ptrnd(p.x+_[w].offset))>p.x+p.width+m&&(C=n.jqx._ptrnd(p.x+p.width));if(!isNaN(C)&&(isNaN(b)||!(Math.abs(C-b)<2))){if(b=C,r.gridLines&&0!=c.visible&&1!=a.gridLines&&(s?this.renderer.line(n.jqx._ptrnd(g.x),C,n.jqx._ptrnd(g.x+g.width),C,y):this.renderer.line(C,n.jqx._ptrnd(g.y),C,n.jqx._ptrnd(g.y+g.height),y)),v[C]=!0,r.alternatingBackground&&(c.alternatingBackgroundColor||c.alternatingBackgroundColor2)&&1!=a.alternatingBackground){var S,A=w%2==0?c.alternatingBackgroundColor2:c.alternatingBackgroundColor;w>0&&A&&(S=s?this.renderer.rect(n.jqx._ptrnd(g.x),x,n.jqx._ptrnd(g.width-1),C-x,y):this.renderer.rect(x,n.jqx._ptrnd(g.y),C-x,n.jqx._ptrnd(g.height),y),this.renderer.attr(S,{"stroke-width":0,fill:A,opacity:c.alternatingBackgroundOpacity||1}))}x=C}}if(y={stroke:d.color,"stroke-width":d.width,"stroke-dasharray":d.dashStyle||""},r.tickMarks&&d.visible&&1!=a.tickMarks){var k=d.size;for(_=d.offsets,b=NaN,w=0;w<_.length;w++)if(s?((C=n.jqx._ptrnd(p.y+_[w].offset))<p.y-m&&(C=n.jqx._ptrnd(p.y)),C>p.y+p.height&&(C=p.y+p.height)):(C=n.jqx._ptrnd(p.x+_[w].offset))>p.x+p.width+m&&(C=n.jqx._ptrnd(p.x+p.width)),!isNaN(C)&&(isNaN(b)||!(Math.abs(C-b)<2))){if(v[C-1]?C--:v[C+1]&&C++,s){if(C>p.y+p.height+m)break}else if(C>p.x+p.width+m)break;b=C;var T=o.isMirror?k:-k;if(s){var j=p.x+p.width+("right"==l.position?f.left:-f.right);e||(j=p.x+(o.isMirror?f.left:-f.right+p.width)),this.renderer.line(j,C,j+T,C,y)}else{var q=p.y+(o.isMirror?p.height:0);q=n.jqx._ptrnd(q+=o.isMirror?-f.bottom:f.top),this.renderer.line(C,q,C,q-T,y)}}}a.tickMarks=a.tickMarks||r.tickMarks,a.gridLines=a.gridLines||r.gridLines,a.alternatingBackground=a.alternatingBackground||r.alternatingBackground}}}}},_calcValueAxisItems:function(t,e,r){var n=this._stats.seriesGroups[t];if(!n||!n.isValid)return!1;var i=this.seriesGroups[t],s=this._getValueAxis(t),o=0!=s.valuesOnTicks,a=n.intervals,l=e/a,h=n.min,u=n.mu,c=1==s.logarithmicScale,d=s.logarithmicScaleBase||10,f=-1!=i.type.indexOf("stacked")&&-1!=i.type.indexOf("100");for(c&&(u=isNaN(s.unitInterval)?1:s.unitInterval),o||(a=Math.max(a-1,1));this._renderData.length<t+1;)this._renderData.push({});this._renderData[t].valueAxis={};var p=this._renderData[t].valueAxis;p.itemWidth=p.intervalWidth=l,p.items=[];for(var g=p.items,m=0;m<=a;m++){var v;v=c?f?n.max/Math.pow(d,a-m):h*Math.pow(d,m):o?h+m*u:h+(m+.5)*u,g.push(m%r==0?v:NaN)}return p.rangeLength=c&&!f?n.intervals:n.intervals*u,1!=s.flip&&(g=g.reverse()),!0},_getDecimalPlaces:function(t,e,r){var n=0;isNaN(r)&&(r=10);for(var i=0;i<t.length;i++){var s=void 0===e?t[i]:t[i][e];if(!isNaN(s)){for(var o=s.toString(),a=0;a<o.length;a++)if((o[a]<"0"||o[a]>"9")&&(n=o.length-(a+1))>=0)return Math.min(n,r);for(n>0&&(s*=Math.pow(10,n));Math.round(s)!=s&&n<r;)n++,s*=10}}return n},_renderValueAxis:function(t,e,r,n){var i=this.seriesGroups[t],s="horizontal"==i.orientation,o=this._getValueAxis(t);if(!o)throw"SeriesGroup "+t+" is missing valueAxis definition";var a={width:0,height:0};if(!this._isGroupVisible(t)||this._isPieOnlySeries()||"spider"==i.type)return a;var l=0!=o.valuesOnTicks,h=this._stats.seriesGroups[t],u=h.mu,c=1==o.logarithmicScale,d=o.logarithmicScaleBase||10;if(c&&(u=isNaN(o.unitInterval)?1:o.unitInterval),0==u&&(u=1),isNaN(u))return a;var f=this._getAxisSettings(o),p=f.title,g=f.labels;this._get([o.horizontalTextAlignment,(o.labels||{}).horizontalAlignment])||0!=g.angle||(g.halign=s?"center":"right"==o.position?"left":"right");var m=this._get([g.step,g.unitInterval/u]);if(isNaN(m)&&(m=1),m=Math.max(1,Math.round(m)),!this._calcValueAxisItems(t,s?e.width:e.height,m)||!f.visible)return a;s||(p.angle=this.rtl?90:-90,"centercenter"==p.rotationPoint&&("top"==p.valign?p.rotationPoint="rightcenter":"bottom"==p.valign&&(p.rotationPoint="leftcenter")));var v=this._renderData[t].valueAxis,y=g.formatSettings;-1!=i.type.indexOf("stacked")&&-1!=i.type.indexOf("100")&&!y&&(y={sufix:"%"}),g.formatFunction||y&&y.decimalPlaces||((y=y||{}).decimalPlaces=this._getDecimalPlaces([h.min,h.max,u],void 0,3));var x=f.gridLines,_=(c||this._getInterval(x,u),s?e.width:e.height),b=1==o.flip;o.flip=!b;var w={min:h.min,max:h.max,logAxis:{enabled:1==c,base:d,minPow:h.minPow,maxPow:h.maxPow}};(x.visible||o.alternatingBackgroundColor||o.alternatingBackgroundColor2)&&(x.offsets=this._getOffsets("gridLines",o,_,w,f,{left:0,right:0},l,u));var C=f.tickMarks;C.visible&&(C.offsets=this._getOffsets("tickMarks",o,_,w,f,{left:0,right:0},l,u));var S=this._getOffsets("labels",o,_,w,f,{left:0,right:0},l,u,!l);o.flip=b;var A,k=[];this._elementRenderInfo&&this._elementRenderInfo.length>t&&(A=this._elementRenderInfo[t].valueAxis);for(var T=0;T<S.length;T++){var j=S[T].value;if(isNaN(S[T].offset))k.push(void 0);else{var q={key:j,text:g.formatFunction?g.formatFunction(j):isNaN(j)?j:this._formatNumber(j,y)};A&&A.itemOffsets[j]&&(q.x=A.itemOffsets[j].x,q.y=A.itemOffsets[j].y),q.targetX=S[T].offset,isNaN(q.targetX)||k.push(q)}}var N=s&&"top"==o.position||!s&&"right"==o.position||!s&&this.rtl&&"left"!=o.position,E={items:k,renderData:v},M=this._getAnimProps(t),O=M.enabled&&k.length<500?M.duration:0;return 0==this.enableAxisTextAnimation&&(O=0),v.settings=f,v.isMirror=N,v.rect=e,this._renderAxis(!s,N,f,e,n,u,c,!0,E,r,O)},_objectsArraysToArray:function(t,e){var r=[];if(!n.isArray(t))return r;for(var i=0;i<t.length;i++)r.push(t[i][e]);return r},_arraysToObjectsArray:function(t,e){var r=[];if(t.length!=e.length)return r;for(var n=0;n<t.length;n++)for(var i=0;i<t[n].length;i++)r.length<=i&&r.push({}),r[i][e[n]]=t[n][i];return r},_valuesToOffsets:function(t,e,r,i,s,o,a){var l=[];if(!e||!n.isArray(t))return l;var h,u=r.logAxis.base,c=r.logAxis.enabled?"logarithmic":"linear",d=e.flip,f=0,p=0;s&&!isNaN(s.left)&&(f=s.left),s&&!isNaN(s.right)&&(p=s.right),i=h=i-f-p;for(var g=0;g<t.length;g++){var m=this._jqxPlot.scale(t[g],{min:r.min.valueOf(),max:r.max.valueOf(),type:c,base:u},{min:0,max:o?i:h,flip:d},{});isNaN(m)?l.push(NaN):(isNaN(a)||(m+=a),l.push(m<=i+f+p+1?n.jqx._ptrnd(m):NaN))}return l},_generateIntervalValues:function(t,e,r,n,i){var s=[],o=t.min,a=t.max;if(t.logAxis&&t.logAxis.enabled&&(o=t.logAxis.minPow,a=t.logAxis.maxPow),null==o||null==a)return s;if(o==a)return t.logAxis&&t.logAxis.enabled?[Math.pow(t.logAxis.base,o)]:[o];var l=1;r<1&&(o*=l=1e6,a*=l,r*=l);for(var h=o;h<=a;h+=r)s.push(h/l+(i?r/2:0));if(e>r){var u=[],c=Math.round(e/r);for(h=0;h<s.length;h++)h%c==0&&u.push(s[h]);s=u}if(t.logAxis&&t.logAxis.enabled)for(h=0;h<s.length;h++)s[h]=Math.pow(t.logAxis.base,s[h]);return s},_generateDTOffsets:function(t,e,r,i,s,o,a,l,h,u,c){a||(a="day");var d=[];if(t>e)return d;if(t==e)return u?d.push({offset:l?r/2:i.left,value:t}):l&&d.push({offset:r/2,value:t}),d;var f=r-i.left-i.right,p=t,g=i.left,m=g,v=o=Math.max(o,1),y=Math.min(1,o);for(o>1&&"millisecond"!=a&&(o=1);n.jqx._ptrnd(m)<=n.jqx._ptrnd(i.left+f+(l?0:i.right));){d.push({offset:m,value:p});var x=new Date(p.valueOf());if("millisecond"==a)x.setMilliseconds(p.getMilliseconds()+o);else if("second"==a)x.setSeconds(p.getSeconds()+o);else if("minute"==a)x.setMinutes(p.getMinutes()+o);else if("hour"==a){var _=x.valueOf();x.setHours(p.getHours()+o),_==x.valueOf()&&x.setHours(p.getHours()+o+1)}else"day"==a?x.setDate(p.getDate()+o):"month"==a?x.setMonth(p.getMonth()+o):"year"==a&&x.setFullYear(p.getFullYear()+o);m=g+((p=x).valueOf()-t.valueOf())*y/(e.valueOf()-t.valueOf())*f}if(c)for(var b=0;b<d.length;b++)d[b].offset=r-d[b].offset;if(v>1&&"millisecond"!=a){var w=[];for(b=0;b<d.length;b+=v)w.push({offset:d[b].offset,value:d[b].value});d=w}if(!l&&!u&&d.length>1){for((w=[]).push({offset:0,value:void 0}),b=1;b<d.length;b++)w.push({offset:d[b-1].offset+(d[b].offset-d[b-1].offset)/2,value:void 0});var C=w.length;w.push(C>1?{offset:w[C-1].offset+(w[C-1].offset-w[C-2].offset)}:{offset:r,value:void 0}),d=w}if(s>o){w=[];var S=Math.round(s/v);for(b=0;b<d.length;b++)b%S==0&&w.push({offset:d[b].offset,value:d[b].value});d=w}return d},_hasStackValueReversal:function(t,e){var r=this.seriesGroups[t];if(-1==r.type.indexOf("stacked"))return!1;for(var n=-1!=r.type.indexOf("waterfall"),i=this._getDataLen(t),s=!1,o=[],a=0;a<r.series.length;a++)o[a]=this._isSerieVisible(t,a);for(var l=0;l<i;l++){var h=void 0;n||(s=!1);for(var u=0;u<r.series.length;u++)if(o[u]){var c=this._getDataValueAsNumber(l,r.series[u].dataField,t);if(!isNaN(c)){if(r.series[u].summary&&void 0!==this._getDataValue(l,r.series[u].summary,t))continue;var d=s?c<0:c<e;if(s=!0,null==h&&(h=d),d!=h)return!0;h=d}}}return!1},_getValueAxis:function(t){var e=null==t?this.valueAxis:this.seriesGroups[t].valueAxis||this.valueAxis;return e||(e=this.valueAxis={}),e},_buildStats:function(t){var e={seriesGroups:[]};this._stats=e;for(var r=0;r<this.seriesGroups.length;r++){var n=this.seriesGroups[r];e.seriesGroups[r]={};var i=this._getXAxis(r),s=this._getValueAxis(r),o=this._getXAxisStats(r,i,"horizontal"!=n.orientation?t.width:t.height);(z=e.seriesGroups[r]).isValid=!0;var a="horizontal"==n.orientation?t.width:t.height,l=1==s.logarithmicScale,h=s.logarithmicScaleBase;isNaN(h)&&(h=10);var u=-1!=n.type.indexOf("stacked"),c=u&&-1!=n.type.indexOf("100"),d=-1!=n.type.indexOf("range"),f=-1!=n.type.indexOf("waterfall");if(f&&!this._moduleWaterfall)throw"Please include 'jqxchart.waterfall.js'";c&&(z.psums=[],z.nsums=[]);var p=NaN,g=NaN,m=NaN,v=NaN,y=s?s.baselineValue:NaN;isNaN(y)&&(y=l&&!c?1:0);var x=!1;0!=y&&u&&(x=this._hasStackValueReversal(r,y))&&(y=0),u&&f&&(x=this._hasStackValueReversal(r,y));var _=this._getDataLen(r),b=0,w=NaN,C=[];if(f)for(var S=0;S<n.series.length;S++)C.push(NaN);for(var A=NaN,k=0;k<_&&z.isValid;k++){if(i.rangeSelector){var T=i.dataField?this._getDataValue(k,i.dataField,r):k;if(T&&o.isDateTime&&(T=this._castAsDate(T,i.dateFormat)),o.useIndeces&&(T=k),T&&(T.valueOf()<o.min.valueOf()||T.valueOf()>o.max.valueOf()))continue}var j=s.minValue,q=s.maxValue;s.baselineValue&&(j=isNaN(j)?y:Math.min(y,j),q=isNaN(q)?y:Math.max(y,q));var N=0,E=0;for(S=0;n.series&&S<n.series.length;S++)if(this._isSerieVisible(r,S)){var M=NaN,O=NaN,I=NaN;if(-1!=n.type.indexOf("candle")||-1!=n.type.indexOf("ohlc")){var D=["Open","Low","Close","High"];for(var P in D){var R=this._getDataValueAsNumber(k,n.series[S]["dataField"+D[P]],r);isNaN(R)||(I=isNaN(O)?R:Math.min(I,R),O=isNaN(O)?R:Math.max(O,R))}}else if(d){var F=this._getDataValueAsNumber(k,n.series[S].dataFieldFrom,r),L=this._getDataValueAsNumber(k,n.series[S].dataFieldTo,r);O=Math.max(F,L),I=Math.min(F,L)}else{if(M=this._getDataValueAsNumber(k,n.series[S].dataField,r),f){if(this._isSummary(r,k)&&void 0!==this._getDataValue(k,n.series[S].summary,r))continue;u?(isNaN(A)||(M+=A),A=M):(isNaN(C[S])?C[S]=M:M+=C[S],C[S]=M)}if(isNaN(M)||l&&M<=0)continue;I=O=M}(isNaN(q)||O>q)&&(isNaN(s.maxValue)||O<=s.maxValue)&&(q=O),(isNaN(j)||I<j)&&(isNaN(s.minValue)||I>=s.minValue)&&(j=I),isNaN(M)||!u||f||(M>y?N+=M:M<y&&(E+=M))}if(c||(isNaN(s.maxValue)||(N=Math.min(s.maxValue,N)),isNaN(s.minValue)||(E=Math.max(s.minValue,E))),l&&c)for(S=0;S<n.series.length;S++)if(this._isSerieVisible(r,S))if(M=this._getDataValueAsNumber(k,n.series[S].dataField,r),isNaN(M)||M<=0)w=.01;else{var H=0==N?0:M/N;(isNaN(w)||H<w)&&(w=H)}else w=.01;var V=N-E;b<V&&(b=V),c&&(z.psums[k]=N,z.nsums[k]=E),(q>g||isNaN(g))&&(g=q),(j<p||isNaN(p))&&(p=j),(N>m||isNaN(m))&&(m=N),(E<v||isNaN(v))&&(v=E)}c&&(m=0==m?0:Math.max(m,-v),v=0==v?0:Math.min(v,-m)),p==g&&(!isNaN(s.minValue)&&isNaN(s.maxValue)?(p=s.minValue,g=l?p*h:p+1):isNaN(s.minValue)&&!isNaN(s.maxValue)&&(g=s.maxValue,p=l?g/h:g-1)),p==g&&(0==p?(p=-1,g=1):p<0?g=0:l?1==p&&(p/=h,g*=h):p=0);var B={gmin:p,gmax:g,gsumP:m,gsumN:v,gbase:y,isLogAxis:l,logBase:h,minPercent:w,gMaxRange:b,isStacked:u,isStacked100:c,isWaterfall:f,hasStackValueReversal:x,valueAxis:s,valueAxisSize:a};B.isStacked&&(B.gsumN<0&&(B.gmin=Math.min(B.gmin,B.gbase+B.gsumN)),B.gsumP>0&&(B.gmax=Math.max(B.gmax,B.gbase+B.gsumP))),z.context=B}for(this._mergeCommonValueAxisStats(),k=0;k<e.seriesGroups.length;k++){var z;if((z=e.seriesGroups[k]).isValid){var G=this._calcOutputGroupStats(z.context);for(var P in G)z[P]=G[P];delete z.context}}},_mergeCommonValueAxisStats:function(){for(var t={},e=0;e<this.seriesGroups.length;e++)if(this._isGroupVisible(e)&&!this.seriesGroups[e].valueAxis){var r=this._stats.seriesGroups[e].context;t.gbase=r.gbase,(isNaN(t.gmin)||r.gmin<t.gmin)&&(t.gmin=r.gmin),(isNaN(t.gmax)||r.gmax>t.gmax)&&(t.gmax=r.gmax),(isNaN(t.gsumP)||r.gsumP>t.gsumP)&&(t.gsumP=r.gsumP),(isNaN(t.gsumN)||r.gsumN<t.gsumN)&&(t.gsumN=r.gsumN),(isNaN(t.logBase)||r.logBase<t.logBase)&&(t.logBase=r.logBase),(isNaN(t.minPercent)||r.minPercent<t.minPercent)&&(t.minPercent=r.minPercent),t.gsumN>0&&(t.gmin=Math.min(t.gmin,t.gbase+t.gsumN)),t.gsumP>0&&(t.gmax=Math.max(t.gmax,t.gbase+t.gsumP))}for(e=0;e<this.seriesGroups.length;e++)if(!this.seriesGroups[e].valueAxis){var n=this._stats.seriesGroups[e].context;for(var i in t)n[i]=t[i]}},_calcOutputGroupStats:function(t){var e=t.gmin,r=t.gmax,i=t.gsumP,s=t.gsumN,o=t.gbase,a=t.isLogAxis,l=t.logBase,h=t.minPercent,u=t.gMaxRange,c=t.isStacked,d=t.isStacked100,f=t.isWaterfall,p=t.hasStackValueReversal,g=t.valueAxis,m=t.valueAxis.unitInterval;m||(m=this._calcInterval(e,r,Math.max(t.valueAxisSize/80,2))),e==r&&(e=o,r*=2);var v=NaN,y=0,x=0;if(a){if(d){v=0;var _=1;for(y=x=n.jqx.log(100,l);_>h;)_/=l,y--,v++;e=Math.pow(l,y)}else c&&!f&&(r=Math.max(r,i)),x=n.jqx._rnd(n.jqx.log(r,l),1,!0),r=Math.pow(l,x),y=n.jqx._rnd(n.jqx.log(e,l),1,!1),e=Math.pow(l,y);m=l}e<s&&(s=e),r>i&&(i=r);var b=e,w=r;if(a||0!=Math.abs(w-b)%m&&(b=n.jqx._rnd(e,m,!1),w=n.jqx._rnd(r,m,!0)),d&&w>100&&(w=100),d&&!a&&(w=w>0?100:0,b=b<0?-100:0,m=g.unitInterval,(isNaN(m)||m<=0||m>=100)&&(m=10),100%m!=0))for(;m>=1&&100%m!=0;m--);return isNaN(w)||isNaN(b)||isNaN(m)?{}:(isNaN(v)&&(v=parseInt(((w-b)/(0==m?1:m)).toFixed())),a&&!d&&(v=x-y,u=Math.pow(l,v)),v<1?{}:{min:b,max:w,logarithmic:a,logBase:l,base:a?b:o,minPow:y,maxPow:x,sumP:i,sumN:s,mu:m,maxRange:u,intervals:v,hasStackValueReversal:p})},_getDataLen:function(t){var e=this.source;return null!=t&&-1!=t&&this.seriesGroups[t].source&&(e=this.seriesGroups[t].source),e instanceof n.jqx.dataAdapter&&(e=e.records),e?e.length:0},_getDataValue:function(t,e,r){var i=this.source;if(null!=r&&-1!=r&&(i=this.seriesGroups[r].source||i),i instanceof n.jqx.dataAdapter&&(i=i.records),!(!i||t<0||t>i.length-1))return n.isFunction(e)?e(t,i):e&&""!=e?i[t][e]:i[t]},_getDataValueAsNumber:function(t,e,r){var n=this._getDataValue(t,e,r);return this._isDate(n)?n.valueOf():("number"!=typeof n&&(n=parseFloat(n)),"number"!=typeof n&&(n=void 0),n)},_isPieGroup:function(t){var e=this.seriesGroups[t];return!(!e||!e.type||-1==e.type.indexOf("pie")&&-1==e.type.indexOf("donut"))},_renderPieSeries:function(t,e){for(var r=this._getDataLen(t),i=this.seriesGroups[t],s=this._calcGroupOffsets(t,e).offsets,o=0;o<i.series.length;o++){var a=i.series[o];if(!a.customDraw){var l=this._getSerieSettings(t,o),h=this._getAnimProps(t,o),u=h.enabled&&r<5e3&&!this._isToggleRefresh&&1!=this._isVML?h.duration:0;n.jqx.mobile.isMobileBrowser()&&this.renderer instanceof n.jqx.HTML5Renderer&&(u=0);var c=this._get([a.minAngle,a.startAngle]);(isNaN(c)||c<0||c>360)&&(c=0);var d=this._get([a.maxAngle,a.endAngle]);(isNaN(d)||d<0||d>360)&&(d=360);for(var f={rect:e,minAngle:c,maxAngle:d,groupIndex:t,serieIndex:o,settings:l,items:[]},p=0;p<r;p++){var g=s[o][p];if(g.visible){var m=g.fromAngle,v=g.toAngle,y=this.renderer.pieslice(g.x,g.y,g.innerRadius,g.outerRadius,m,0==u?v:m,g.centerOffset);this._setRenderInfo(t,o,p,{element:y}),f.items.push({displayValue:g.displayValue,itemIndex:p,visible:g.visible,x:g.x,y:g.y,innerRadius:g.innerRadius,outerRadius:g.outerRadius,fromAngle:m,toAngle:v,centerOffset:g.centerOffset})}}this._animatePieSlices(f,0);var x=this;this._enqueueAnimation("series",void 0,void 0,u,(function(t,e,r){x._animatePieSlices(e,r)}),f)}}},_sliceSortFunction:function(t,e){return t.fromAngle-e.fromAngle},_animatePieSlices:function(t,e){var r;this._elementRenderInfo&&this._elementRenderInfo.length>t.groupIndex&&this._elementRenderInfo[t.groupIndex].series&&this._elementRenderInfo[t.groupIndex].series.length>t.serieIndex&&(r=this._elementRenderInfo[t.groupIndex].series[t.serieIndex]);for(var n=this._getLabelsSettings(t.groupIndex,t.serieIndex,NaN),i=n.visible,s=[],o=0;o<t.items.length;o++)if((d=t.items[o]).visible){var a=d.fromAngle,l=d.fromAngle+e*(d.toAngle-d.fromAngle);if(r&&r[d.displayValue]){var h=r[d.displayValue].fromAngle,u=r[d.displayValue].toAngle;a=h+(a-h)*e,l=u+(l-u)*e}s.push({index:o,from:a,to:l})}r&&s.sort(this._sliceSortFunction);var c=NaN;for(o=0;o<s.length;o++){var d,f=this._getRenderInfo(t.groupIndex,t.serieIndex,(d=t.items[s[o].index]).itemIndex);a=s[o].from,l=s[o].to,r&&(!isNaN(c)&&a>c&&(a=c),c=l,o==s.length-1&&l!=s[0].from&&(l=t.maxAngle+s[0].from));var p=this.renderer.pieSlicePath(d.x,d.y,d.innerRadius,d.outerRadius,a,l,d.centerOffset);this.renderer.attr(f.element,{d:p});var g=this._getColors(t.groupIndex,t.serieIndex,d.itemIndex,"radialGradient",d.outerRadius),m=t.settings;f.colors=g,f.settings=m,this.renderer.attr(f.element,{fill:g.fillColor,stroke:g.lineColor,"stroke-width":m.stroke,"fill-opacity":m.opacity,"stroke-opacity":m.opacity,"stroke-dasharray":"none"}),i&&this._showPieLabel(t.groupIndex,t.serieIndex,d.itemIndex,n),1==e&&this._installHandlers(f.element,"pieslice",t.groupIndex,t.serieIndex,d.itemIndex)}},_showPieLabel:function(t,e,r,i,s){var o=this._renderData[t].offsets[e][r];if(o.elementInfo.labelElement&&this.renderer.removeElement(o.elementInfo.labelElement),i||(i=this._getLabelsSettings(t,e,NaN)),i.visible){var a=o.fromAngle,l=o.toAngle,h=Math.abs(a-l);h>360&&(a=0,l=360),Math,Math;var u,c=h/2+a,d=(c%=360)*Math.PI*2/360;1==i.autoRotate&&(u=c<90||c>270?360-c:180-c);var f=i.linesEnabled,p=this._showLabel(t,e,r,{x:0,y:0,width:0,height:0},"center","center",!0,!1,!1,u),g=i.radius||o.outerRadius+Math.max(p.width,p.height);this._isPercent(g)&&(g=parseFloat(g)/100*Math.min(this._plotRect.width,this._plotRect.height)/2),g+=o.centerOffset,isNaN(s)&&(s=0),g+=s;var m=this.seriesGroups[t],v=m.series[e],y=n.jqx.getNum([v.offsetX,m.offsetX,this._plotRect.width/2]),x=n.jqx.getNum([v.offsetY,m.offsetY,this._plotRect.height/2]),_=this._plotRect.x+y,b=this._plotRect.y+x,w=this._adjustTextBoxPosition(_,b,p,g,c,o.outerRadius>g,0!=i.linesAngles,1==i.autoRotate),C={};o.elementInfo.labelElement=this._showLabel(t,e,r,{x:w.x,y:w.y,width:p.width,height:p.height},"left","top",!1,!1,!1,u,C),g>o.outerRadius+5&&0!=f&&(o.elementInfo.labelArrowPath=this._updateLebelArrowPath(o.elementInfo.labelArrowPath,_,b,g,o.outerRadius+s,d,0!=i.linesAngles,{lineColor:o.elementInfo.colors.lineColor,stroke:o.elementInfo.settings.stroke,opacity:o.elementInfo.settings.opacity,dashStyle:o.elementInfo.settings.dashStyle},C))}},_updateLebelArrowPath:function(t,e,r,i,s,o,a,l,h){var u=n.jqx._ptrnd(e+(i-0)*Math.cos(o)),c=n.jqx._ptrnd(r-(i-0)*Math.sin(o)),d=n.jqx._ptrnd(e+(s+2)*Math.cos(o)),f=n.jqx._ptrnd(r-(s+2)*Math.sin(o)),p=[];p.push({x:h.x+h.width/2,y:h.y}),p.push({x:h.x+h.width/2,y:h.y+h.height}),p.push({x:h.x,y:h.y+h.height/2}),p.push({x:h.x+h.width,y:h.y+h.height/2}),a||(p.push({x:h.x,y:h.y}),p.push({x:h.x+h.width,y:h.y}),p.push({x:h.x+h.width,y:h.y+h.height}),p.push({x:h.x,y:h.y+h.height})),p=(p=p.sort((function(t,i){return n.jqx._ptdist(t.x,t.y,e,r)-n.jqx._ptdist(i.x,i.y,e,r)}))).sort((function(t,n){return Math.abs(t.x-e)+Math.abs(t.y-r)-(Math.abs(n.x-e)+Math.abs(n.y-r))}));for(var g=0;g<p.length;g++)p[g].x=n.jqx._ptrnd(p[g].x),p[g].y=n.jqx._ptrnd(p[g].y);var m="M "+(u=p[0].x)+","+(c=p[0].y)+" L"+d+","+f;return a&&(m="M "+u+","+c+" L"+d+","+c+" L"+d+","+f),t?this.renderer.attr(t,{d:m}):t=this.renderer.path(m,{}),this.renderer.attr(t,{fill:"none",stroke:l.lineColor,"stroke-width":l.stroke,"stroke-opacity":l.opacity,"stroke-dasharray":"none"}),t},_adjustTextBoxPosition:function(t,e,r,i,s,o,a,l){var h=s*Math.PI*2/360,u=n.jqx._ptrnd(t+i*Math.cos(h)),c=n.jqx._ptrnd(e-i*Math.sin(h));if(l){var d=r.width,f=r.height,p=Math.atan(f/d)%(2*Math.PI),g=h%(2*Math.PI),m=0;return g<=p?m=d/2*Math.cos(h):g>=p&&g<Math.PI-p?m=f/2*Math.sin(h):g>=Math.PI-p&&g<Math.PI+p?m=d/2*Math.cos(h):g>=Math.PI+p&&g<2*Math.PI-p?m=f/2*Math.sin(h):g>=2*Math.PI-p&&g<2*Math.PI&&(m=d/2*Math.cos(h)),i+=Math.abs(m)+3,u=n.jqx._ptrnd(t+i*Math.cos(h)),c=n.jqx._ptrnd(e-i*Math.sin(h)),{x:u-=r.width/2,y:c-=r.height/2}}return o?(u-=r.width/2,c-=r.height/2):a?s>=90&&s<270?(c-=r.height/2,u-=r.width):c-=r.height/2:s>=0&&s<45||s>=315&&s<360?c-=r.height/2:s>=45&&s<135?(c-=r.height,u-=r.width/2):s>=135&&s<225?(c-=r.height/2,u-=r.width):s>=225&&s<315&&(u-=r.width/2),{x:u,y:c}},_isColumnType:function(t){return-1!=t.indexOf("column")||-1!=t.indexOf("waterfall")},_getColumnGroupsCount:function(t){var e=0;t=t||"vertical";for(var r=this.seriesGroups,n=0;n<r.length;n++){var i=r[n].orientation||"vertical";this._isColumnType(r[n].type)&&i==t&&e++}return this.columnSeriesOverlap&&(e=1),e},_getColumnGroupIndex:function(t){for(var e=0,r=this.seriesGroups[t].orientation||"vertical",n=0;n<t;n++){var i=this.seriesGroups[n],s=i.orientation||"vertical";this._isColumnType(i.type)&&s==r&&e++}return e},_renderAxisBands:function(t,e,r){var i=r?this._getXAxis(t):this._getValueAxis(t),s=this.seriesGroups[t],o=r?void 0:s.bands;if(!o){for(var a=0;a<t;a++)if((r?this._getXAxis(a):this._getValueAxis(a))==i)return;o=i.bands}if(n.isArray(o)){var l=e,h="horizontal"==s.orientation;for(h&&(l={x:e.y,y:e.x,width:e.height,height:e.width}),this._calcGroupOffsets(t,l),a=0;a<o.length;a++){var u=o[a],c=this._get([u.minValue,u.from]),d=this._get([u.maxValue,u.to]),f=r?this.getXAxisDataPointOffset(c,t):this.getValueAxisDataPointOffset(c,t),p=r?this.getXAxisDataPointOffset(d,t):this.getValueAxisDataPointOffset(d,t);if(!isNaN(f)&&!isNaN(p)){var g,m=Math.abs(f-p);if(s.polar||s.spider){var v=this._renderData[t],y=v.polarCoords;if(r)if(s.spider){var x=this.getPolarDataPointOffset(c,this._stats.seriesGroups[t].max,t),_=this.getPolarDataPointOffset(d,this._stats.seriesGroups[t].max,t);M="M "+y.x+","+y.y,M+=" L "+x.x+","+x.y,g=this.renderer.path(M+=" L "+_.x+","+_.y)}else{var b={},w={x:Math.min(f,p),y:e.y,width:m,height:e.height};this._columnAsPieSlice(b,e,y,w),g=b.element}else{var C=this._toPolarCoord(y,e,e.x,v.baseOffset),S=this._toPolarCoord(y,e,e.x,f),A=this._toPolarCoord(y,e,e.x,p),k=n.jqx._ptdist(C.x,C.y,S.x,S.y),T=n.jqx._ptdist(C.x,C.y,A.x,A.y),j=Math.round(360*-y.startAngle/(2*Math.PI)),q=Math.round(360*-y.endAngle/(2*Math.PI));if(j>q){var N=j;j=q,q=N}if(s.spider){var E=v.xAxis.offsetAngles,M="",O=[T,k],I=E;for(var D in y.isClosedCircle&&(I=n.extend([],E)).push(I[0]),O){for(var P=0;P<I.length;P++){var R=0==D?P:E.length-P-1,F=y.x+O[D]*Math.cos(I[R]),L=y.y+O[D]*Math.sin(I[R]);M+=""==M?"M ":" L",M+=n.jqx._ptrnd(F)+","+n.jqx._ptrnd(L)}0==D&&(F=y.x+O[1]*Math.cos(I[R]),L=y.y+O[1]*Math.sin(I[R]),M+=" L"+n.jqx._ptrnd(F)+","+n.jqx._ptrnd(L))}g=this.renderer.path(M+=" Z")}else g=this.renderer.pieslice(y.x,y.y,k,T,j,q)}}else{var H={x:Math.min(f,p),y:l.y,width:m,height:l.height};r||(H={x:l.x,y:Math.min(f,p),width:l.width,height:m}),h&&(N=H.x,H.x=H.y,H.y=N,N=H.width,H.width=H.height,H.height=N),g=0==m||1==m?this.renderer.line(n.jqx._ptrnd(H.x),n.jqx._ptrnd(H.y),n.jqx._ptrnd(H.x+(h?0:H.width)),n.jqx._ptrnd(H.y+(h?H.height:0))):this.renderer.rect(H.x,H.y,H.width,H.height)}var V=u.fillColor||u.color||"#AAAAAA",B=u.lineColor||V,z=u.lineWidth;isNaN(z)&&(z=1);var G=u.opacity;(isNaN(G)||G<0||G>1)&&(G=1),this.renderer.attr(g,{fill:V,"fill-opacity":G,stroke:B,"stroke-opacity":G,"stroke-width":z,"stroke-dasharray":u.dashStyle})}}}},_getColumnGroupWidth:function(t,e,r){var n=this.seriesGroups[t],i=-1!=n.type.indexOf("stacked"),s=this._getColumnGroupsCount(n.orientation);(isNaN(s)||0==s)&&(s=1);var o=e.rangeLength>=1?e.itemWidth:.9*r,a=n.columnsMinWidth;isNaN(a)&&(a=1),isNaN(n.columnsMaxWidth)||(a=Math.min(n.columnsMaxWidth,a)),a>o&&e.length>0&&(o=Math.max(o,.9*r/e.length));var l=a;if(!i){var h=n.seriesGapPercent;(isNaN(h)||h<0)&&(h=10);var u=a;l+=n.series.length*(u*=1+(h/=100))}return{requiredWidth:l,availableWidth:o,targetWidth:Math.max(o/s,l)}},_getColumnSerieWidthAndOffset:function(t,e){var r=this.seriesGroups[t],n="horizontal"==r.orientation,i=this._plotRect;n&&(i={x:i.y,y:i.x,width:i.height,height:i.width});var s=this._calcGroupOffsets(t,i);if(s&&0!=s.xoffsets.length){var o=this._getColumnGroupsCount(r.orientation);"candlestick"!=r.type&&"ohlc"!=r.type||(o=1);var a=this._getColumnGroupIndex(t),l=this._getColumnGroupWidth(t,s.xoffsets,n?i.height:i.width),h=0,u=l.targetWidth;(1==this.columnSeriesOverlap||Math.round(u)>Math.round(l.availableWidth/o))&&(o=1,a=0),h-=u*o/2,h+=u*a;var c=r.columnsGapPercent;c<=0&&(c=0),(isNaN(c)||c>=100)&&(c=25);var d=u*(c/=100);d+l.requiredWidth>l.targetWidth&&(d=Math.max(0,l.targetWidth-l.requiredWidth)),Math.round(u)>Math.round(l.availableWidth)&&(d=0),u-=d,h+=d/2;var f=r.seriesGapPercent;(isNaN(f)||f<0)&&(f=10);var p=-1!=r.type.indexOf("stacked"),g=u;p||(g/=r.series.length);var m=this._get([r.seriesGap,u*f/100/(r.series.length-1)]);(1==r.polar||1==r.spider||p||r.series.length<=1)&&(m=0);var v=m*(r.series.length-1);r.series.length>1&&v>u-1*r.series.length&&(m=(v=u-1*r.series.length)/Math.max(1,r.series.length-1));var y=g-v/r.series.length,x=0,_=r.columnsMaxWidth;return isNaN(_)||y>_&&(x=y-_,y=_),{width:y,offset:h+(p?x/2:(u-y*r.series.length-v)/2+y*e+Math.max(0,e)*m)}}},_renderColumnSeries:function(t,e){var r=this.seriesGroups[t];if(r.series&&0!=r.series.length){this._getDataLen(t);var i="horizontal"==r.orientation,s=e;i&&(s={x:e.y,y:e.x,width:e.height,height:e.width});var o=this._calcGroupOffsets(t,s);if(o&&0!=o.xoffsets.length){var a;1!=r.polar&&1!=r.spider||(a=this._getPolarAxisCoords(t,s));var l={groupIndex:t,rect:e,vertical:!i,seriesCtx:[],renderData:o,polarAxisCoords:a};l.columnGroupWidth=this._getColumnGroupWidth(t,o.xoffsets,i?s.height:s.width);for(var h=this._getGroupGradientType(t),u=0;u<r.series.length;u++){var c=r.series[u];if(!c.customDraw){var d=this._getAnimProps(t,u),f=d.enabled&&!this._isToggleRefresh&&o.xoffsets.length<100?d.duration:0,p=this._getColumnSerieWidthAndOffset(t,u),g=this._isSerieVisible(t,u),m=this._getSerieSettings(t,u),v=this._getColors(t,u,NaN,this._getGroupGradientType(t),4),y=[];if(n.isFunction(c.colorFunction)&&!a)for(var x=o.xoffsets.first;x<=o.xoffsets.last;x++)y.push(this._getColors(t,u,x,h,4));l.seriesCtx.push({seriesIndex:u,serieColors:v,itemsColors:y,settings:m,columnWidth:p.width,xAdjust:p.offset,isVisible:g})}}this._animColumns(l,0==f?1:0);var _=this;this._enqueueAnimation("series",void 0,void 0,f,(function(t,e,r){_._animColumns(e,r)}),l)}}},_getPercent:function(t,e,r,n){return isNaN(t)&&(t=e),!isNaN(r)&&!isNaN(t)&&t<r&&(t=r),!isNaN(n)&&!isNaN(t)&&t>n&&(t=n),isNaN(t)?NaN:t},_getColumnVOffsets:function(t,e,r,n,i,s){var o=this.seriesGroups[e],a=this._getPercent(o.columnsTopWidthPercent,100,0,100),l=this._getPercent(o.columnsBottomWidthPercent,100,0,100);0==a&&0==l&&(l=100);for(var h=this._getPercent(o.columnsNeckHeightPercent,NaN,0,100)/100,u=this._getPercent(o.columnsNeckWidthPercent,100,0,100)/100,c=[],d=NaN,f=0;f<r.length;f++){var p,g=(q=r[f]).seriesIndex,m=t.offsets[g][n].from,v=t.offsets[g][n].to,y=t.xoffsets.data[n],x=q.isVisible;x||(v=m);var _=this._elementRenderInfo;x&&_&&_.length>e&&_[e].series.length>g&&(!(p=_[e].series[g][t.xoffsets.xvalues[n]])||isNaN(p.from)||isNaN(p.to)||(m=p.from+(m-p.from)*s,v=p.to+(v-p.to)*s,y=p.xoffset+(y-p.xoffset)*s)),p||(v=m+(v-m)*(i?1:s)),isNaN(m)&&(m=isNaN(d)?t.baseOffset:d),d=!isNaN(v)&&i?v:m,isNaN(v)&&(v=m);var b={from:m,to:v,xOffset:y};100==a&&100==l||(b.funnel=!0,b.toWidthPercent=a,b.fromWidthPercent=l),c.push(b)}if(i&&c.length>1&&!(this._elementRenderInfo&&this._elementRenderInfo.length>e)){for(var w=0,C=0,S=-1/0,A=1/0,k=1/0,T=-1/0,j=0;j<c.length;j++){var q;(q=r[j]).isVisible&&(c[j].to>=c[j].from?(C+=c[j].to-c[j].from,k=Math.min(k,c[j].from),T=Math.max(T,c[j].to)):(w+=c[j].from-c[j].to,S=Math.max(S,c[j].from),A=Math.min(A,c[j].to)))}var N=w,E=C;w*=s,C*=s;var M=0,O=0;for(j=0;j<c.length;j++){var I;c[j].to>=c[j].from?((I=c[j].to-c[j].from)+O>C&&(I=Math.max(0,C-O),c[j].to=c[j].from+I),100==a&&100==l||(c[j].funnel=!0,c[j].fromWidthPercent=!isNaN(h)&&E*h>=O?100*u:Math.abs(c[j].from-k)/E*(a-l)+l,c[j].toWidthPercent=!isNaN(h)&&E*h>=0+(O+I)?100*u:Math.abs(c[j].to-k)/E*(a-l)+l),O+=I):((I=c[j].from-c[j].to)+M>w&&(I=Math.max(0,w-M),c[j].to=c[j].from-I),100==a&&100==l||(c[j].funnel=!0,c[j].fromWidthPercent=!isNaN(h)&&N*h>=M?100*u:Math.abs(c[j].from-S)/N*(a-l)+l,c[j].toWidthPercent=!isNaN(h)&&N*h>=0+(M+I)?100*u:Math.abs(c[j].to-S)/N*(a-l)+l),M+=I)}}return c},_columnAsPieSlice:function(t,e,r,i){var s=this._toPolarCoord(r,e,i.x,i.y),o=this._toPolarCoord(r,e,i.x,i.y+i.height),a=n.jqx._ptdist(r.x,r.y,o.x,o.y),l=n.jqx._ptdist(r.x,r.y,s.x,s.y),h=e.width,u=180*Math.abs(r.startAngle-r.endAngle)/Math.PI,c=-(i.x-e.x)*u/h,d=-(i.x+i.width-e.x)*u/h,f=r.startAngle;if(c-=f=360*f/(2*Math.PI),d-=f,t)if(null!=t.element){var p=this.renderer.pieSlicePath(r.x,r.y,a,l,d,c,0);this.renderer.attr(t.element,{d:p+=" Z"})}else t.element=this.renderer.pieslice(r.x,r.y,a,l,d,c,0);return{fromAngle:d,toAngle:c,innerRadius:a,outerRadius:l}},_setRenderInfo:function(t,e,r,n){this._renderData[t].offsets[e][r].elementInfo=n},_getRenderInfo:function(t,e,r){return this._renderData[t].offsets[e][r].elementInfo||{}},_animColumns:function(t,e){for(var r=this,i=t.groupIndex,s=this.seriesGroups[i],o=t.renderData,a=-1!=s.type.indexOf("waterfall"),l=this._getXAxis(i),h=-1!=s.type.indexOf("stacked"),u=t.polarAxisCoords,c=(this._getGroupGradientType(i),-1),d=0;d<s.series.length;d++)if(this._isSerieVisible(i,d)){c=d;break}var f=NaN,p=NaN;for(d=0;d<t.seriesCtx.length;d++){var g=t.seriesCtx[d];(isNaN(f)||f>g.xAdjust)&&(f=g.xAdjust),(isNaN(p)||p<g.xAdjust+g.columnWidth)&&(p=g.xAdjust+g.columnWidth)}var m=Math.abs(p-f),v=this._get([s.columnsGapPercent,25])/100;(isNaN(v)<0||v>=1)&&(v=.25);for(var y=v*m,x=t.renderData.xoffsets,_=-1,b={},w=1==s.skipOverlappingPoints,C=x.first;C<=x.last;C++){var S=x.data[C];if(!(isNaN(S)||-1!=_&&Math.abs(S-_)<m-1+y&&w)){_=S;var A=this._getColumnVOffsets(o,i,t.seriesCtx,C,h,e),k=!1;if(a)for(var T=0;T<s.series.length;T++)s.series[T].summary&&x.xvalues[C][s.series[T].summary]&&(k=!0);for(T=0;T<t.seriesCtx.length;T++){var j=(g=t.seriesCtx[T]).seriesIndex,q=s.series[j],N=A[T].from,E=A[T].to,M=A[T].xOffset,O=(t.vertical?t.rect.x:t.rect.y)+g.xAdjust,I=g.settings,D=0!=g.itemsColors.length?g.itemsColors[C-o.xoffsets.first]:g.serieColors,P=this._isSerieVisible(i,j);if(P){var R={x:S=n.jqx._ptrnd(O+M),width:g.columnWidth};A[T].funnel&&(R.fromWidthPercent=A[T].fromWidthPercent,R.toWidthPercent=A[T].toWidthPercent);var F=!0;t.vertical?(R.y=N,R.height=E-N,R.height<0&&(R.y+=R.height,R.height=-R.height,F=!1)):(R.x=N<E?N:E,R.width=Math.abs(N-E),F=N-E<0,R.y=S,R.height=g.columnWidth);var L=N-E;if(!isNaN(L)){L=Math.abs(L);var H=void 0,V=r._getRenderInfo(i,j,C),B=V.element,z=V.labelElement,G=null==B;if(z&&(r.renderer.removeElement(z),z=void 0),u){var U={element:B};H=this._columnAsPieSlice(U,t.rect,u,R),B=U.element,D=this._getColors(i,j,void 0,"radialGradient",H.outerRadius)}else if(A[T].funnel){var W=this._getTrapezoidPath(n.extend({},R),t.vertical,F);G?B=this.renderer.path(W,{}):this.renderer.attr(B,{d:W})}else G?B=this.renderer.rect(R.x,R.y,t.vertical?R.width:0,t.vertical?0:R.height):this.renderer.attr(B,1==t.vertical?{x:R.x,y:R.y,height:L}:{x:R.x,y:R.y,width:L});if(this.renderer.attr(B,L<1&&(1!=e||u)?{display:"none"}:{display:"block"}),G&&this.renderer.attr(B,{fill:D.fillColor,"fill-opacity":I.opacity,"stroke-opacity":I.opacity,stroke:D.lineColor,"stroke-width":I.stroke,"stroke-dasharray":I.dashStyle}),z&&this.renderer.removeElement(z),!P||0==L&&e<1)r._setRenderInfo(i,j,C,V={element:B,labelElement:z});else{if(a&&0!=this._get([q.showWaterfallLines,s.showWaterfallLines])){if(!h||h&&T==c){var $=h?-1:T;if(1==e&&!isNaN(o.offsets[T][C].from)&&!isNaN(o.offsets[T][C].to)){var X=b[$];if(null!=X){var Y={x:X.x,y:n.jqx._ptrnd(X.y)},Q={x:S,y:Y.y},J=s.columnsTopWidthPercent/100;isNaN(J)?J=1:(J>1||J<0)&&(J=1);var Z=s.columnsBottomWidthPercent/100;if(isNaN(Z)?Z=1:(Z>1||Z<0)&&(Z=1),Y.x=Y.x-(tt=t.vertical?R.width:R.height)/2+tt/2*J,k){var K=tt*J/2;Q.x=Q.x+tt/2-(l.flip?-K:K)}else K=tt*Z/2,Q.x=Q.x+tt/2-(l.flip?-K:K);t.vertical||(this._swapXY([Y]),this._swapXY([Q])),this.renderer.line(Y.x,Y.y,Q.x,Q.y,{stroke:X.color,"stroke-width":I.stroke,"stroke-opacity":I.opacity,"fill-opacity":I.opacity,"stroke-dasharray":I.dashStyle})}}}1==e&&0!=L&&(b[h?-1:T]={y:E,x:t.vertical?R.x+R.width:R.y+R.height,color:D.lineColor})}if(u){this._toPolarCoord(u,t.rect,R.x+R.width/2,R.y);var tt=this._showLabel(i,j,C,R,void 0,void 0,!0),et=this._adjustTextBoxPosition(u.x,u.y,tt,H.outerRadius+10,(H.fromAngle+H.toAngle)/2,!0,!1,!1);z=this._showLabel(i,j,C,{x:et.x,y:et.y},void 0,void 0,!1,!1,!1)}else z=this._showLabel(i,j,C,R,void 0,void 0,!1,!1,F);r._setRenderInfo(i,j,C,V={element:B,labelElement:z}),1==e&&this._installHandlers(B,"column",i,j,C)}}}}}}},_getTrapezoidPath:function(t,e,r){var i="",s=t.fromWidthPercent/100,o=t.toWidthPercent/100;if(!e){var a=t.width;t.width=t.height,t.height=a,a=t.x,t.x=t.y,t.y=a}var l=t.x+t.width/2,h=[{x:l-t.width*(r?o:s)/2,y:t.y+t.height},{x:l-t.width*(r?s:o)/2,y:t.y},{x:l+t.width*(r?s:o)/2,y:t.y},{x:l+t.width*(r?o:s)/2,y:t.y+t.height}];e||this._swapXY(h),i+="M "+n.jqx._ptrnd(h[0].x)+","+n.jqx._ptrnd(h[0].y);for(var u=1;u<h.length;u++)i+=" L "+n.jqx._ptrnd(h[u].x)+","+n.jqx._ptrnd(h[u].y);return i+" Z"},_swapXY:function(t){for(var e=0;e<t.length;e++){var r=t[e].x;t[e].x=t[e].y,t[e].y=r}},_renderCandleStickSeries:function(t,e,r){var i=this,s=i.seriesGroups[t];if(s.series&&0!=s.series.length){var o="horizontal"==s.orientation,a=e;o&&(a={x:e.y,y:e.x,width:e.height,height:e.width});var l=i._calcGroupOffsets(t,a);if(l&&0!=l.xoffsets.length){var h;(s.polar||s.spider)&&(h=i._getPolarAxisCoords(t,a)),i._alignValuesWithTicks(t);for(var u=i._getGroupGradientType(t),c=[],d=0;d<s.series.length;d++)c[d]=i._getColumnSerieWidthAndOffset(t,d);for(d=0;d<s.series.length;d++)if(this._isSerieVisible(t,d)){var f=i._getSerieSettings(t,d),p=s.series[d];if(!p.customDraw){var g=n.isFunction(p.colorFunction)?void 0:i._getColors(t,d,NaN,u),m={rect:e,inverse:o,groupIndex:t,seriesIndex:d,symbolType:p.symbolType,symbolSize:p.symbolSize,"fill-opacity":f.opacity,"stroke-opacity":f.opacity,"stroke-width":f.stroke,"stroke-dasharray":f.dashStyle,gradientType:u,colors:g,renderData:l,polarAxisCoords:h,columnsInfo:c,isOHLC:r,items:[],self:i},v=i._getAnimProps(t,d),y=v.enabled&&!i._isToggleRefresh&&l.xoffsets.length<5e3?v.duration:0;i._animCandleStick(m,0),i._enqueueAnimation("series",void 0,void 0,y,(function(t,e,r){i._animCandleStick(e,r)}),m)}}}}},_animCandleStick:function(t,e){var r=["Open","Low","Close","High"],i=t.columnsInfo[t.seriesIndex].width,s=t.self.seriesGroups[t.groupIndex],o=t.renderData.xoffsets,a=-1,l=Math.abs(o.data[o.last]-o.data[o.first]);l*=e;for(var h=NaN,u=NaN,c=0;c<t.columnsInfo.length;c++){var d=t.columnsInfo[c];(isNaN(h)||h>d.offset)&&(h=d.offset),(isNaN(u)||u<d.offset+d.width)&&(u=d.offset+d.width)}for(var f=Math.abs(u-h),p=0!=s.skipOverlappingPoints,g=o.first;g<=o.last;g++){var m=o.data[g];if(!(isNaN(m)||-1!=a&&Math.abs(m-a)<f&&p)){if(Math.abs(o.data[g]-o.data[o.first])>l)break;a=m;var v=t.items[g]=t.items[g]||{};for(var c in r){var y=t.self._getDataValueAsNumber(g,s.series[t.seriesIndex]["dataField"+r[c]],t.groupIndex);if(isNaN(y))break;var x=t.renderData.offsets[t.seriesIndex][g][r[c]];if(isNaN(x))break;v[r[c]]=x}if(m+=t.inverse?t.rect.y:t.rect.x,t.polarAxisCoords){var _=this._toPolarCoord(t.polarAxisCoords,this._plotRect,m,x);m=_.x,x=_.y}for(var b in m=n.jqx._ptrnd(m),r)v[b]=n.jqx._ptrnd(v[b]);var w=t.colors;if(w||(w=t.self._getColors(t.groupIndex,t.seriesIndex,g,t.gradientType)),t.isOHLC){var C="M"+m+","+v.Low+" L"+m+","+v.High+" M"+(m-i/2)+","+v.Open+" L"+m+","+v.Open+" M"+(m+i/2)+","+v.Close+" L"+m+","+v.Close;t.inverse&&(C="M"+v.Low+","+m+" L"+v.High+","+m+" M"+v.Open+","+(m-i/2)+" L"+v.Open+","+m+" M"+v.Close+","+m+" L"+v.Close+","+(m+i/2)),(S=v.lineElement)||(S=this.renderer.path(C,{}),this.renderer.attr(S,{fill:w.fillColor,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["fill-opacity"],stroke:w.lineColor,"stroke-width":t["stroke-width"],"stroke-dasharray":t["stroke-dasharray"]}),v.lineElement=S),1==e&&this._installHandlers(S,"column",t.groupIndex,t.seriesIndex,g)}else{var S;(S=v.lineElement)||(S=t.inverse?this.renderer.line(v.Low,m,v.High,m):this.renderer.line(m,v.Low,m,v.High),this.renderer.attr(S,{fill:w.fillColor,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["fill-opacity"],stroke:w.lineColor,"stroke-width":t["stroke-width"],"stroke-dasharray":t["stroke-dasharray"]}),v.lineElement=S);var A=v.stickElement;if(m-=i/2,!A){var k=w.fillColor;v.Close<=v.Open&&w.fillColorAlt&&(k=w.fillColorAlt),A=t.inverse?this.renderer.rect(Math.min(v.Open,v.Close),m,Math.abs(v.Close-v.Open),i):this.renderer.rect(m,Math.min(v.Open,v.Close),i,Math.abs(v.Close-v.Open)),this.renderer.attr(A,{fill:k,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["fill-opacity"],stroke:w.lineColor,"stroke-width":t["stroke-width"],"stroke-dasharray":t["stroke-dasharray"]}),v.stickElement=A}1==e&&this._installHandlers(A,"column",t.groupIndex,t.seriesIndex,g)}}}},_renderScatterSeries:function(t,e,r){var i=this.seriesGroups[t];if(i.series&&0!=i.series.length){var s=-1!=i.type.indexOf("bubble"),o="horizontal"==i.orientation,a=e;o&&(a={x:e.y,y:e.x,width:e.height,height:e.width});var l=this._calcGroupOffsets(t,a);if(l&&0!=l.xoffsets.length){var h,u=a.width;(i.polar||i.spider)&&(u=2*(h=this._getPolarAxisCoords(t,a)).r),this._alignValuesWithTicks(t);var c=this._getGroupGradientType(t);r||(r="to");for(var d=0;d<i.series.length;d++){var f=this._getSerieSettings(t,d),p=i.series[d];if(!p.customDraw){var g=p.dataField,m=n.isFunction(p.colorFunction),v=this._getColors(t,d,NaN,c),y=NaN,x=NaN;if(s)for(var _=l.xoffsets.first;_<=l.xoffsets.last;_++){if("number"!=typeof(j=this._getDataValueAsNumber(_,p.radiusDataField||p.sizeDataField,t)))throw"Invalid radiusDataField value at ["+_+"]";isNaN(j)||((isNaN(y)||j<y)&&(y=j),(isNaN(x)||j>x)&&(x=j))}var b=p.minRadius||p.minSymbolSize;isNaN(b)&&(b=u/50);var w=p.maxRadius||p.maxSymbolSize;isNaN(w)&&(w=u/25),b>w&&(w=b);var C=p.radius;C=isNaN(C)&&!isNaN(p.symbolSize)?"circle"==p.symbolType?p.symbolSize/2:p.symbolSize:5;var S=this._getAnimProps(t,d),A=S.enabled&&!this._isToggleRefresh&&l.xoffsets.length<5e3?S.duration:0,k={groupIndex:t,seriesIndex:d,symbolType:p.symbolType,symbolSize:p.symbolSize,"fill-opacity":f.opacity,"stroke-opacity":f.opacity,"stroke-width":f.stroke,"stroke-width-symbol":f.strokeSymbol,"stroke-dasharray":f.dashStyle,items:[],polarAxisCoords:h},T=void 0;for(_=l.xoffsets.first;_<=l.xoffsets.last;_++){var j;if("number"==typeof(j=this._getDataValueAsNumber(_,g,t))){var q=l.xoffsets.data[_],N=l.xoffsets.xvalues[_],E=l.offsets[d][_][r];if(!(E<a.y||E>a.y+a.height||isNaN(q)||isNaN(E))){if(o){var M=q;q=E,E=M+e.y}else q+=e.x;if(!(!m&&T&&this.enableSampling&&n.jqx._ptdist(T.x,T.y,q,E)<1)){T={x:q,y:E};var O=C;if(s){var I=this._getDataValueAsNumber(_,p.radiusDataField||p.sizeDataField,t);if("number"!=typeof I)continue;O=b+(w-b)*(I-y)/Math.max(1,x-y),isNaN(O)&&(O=b)}l.offsets[d][_].radius=O;var D=NaN,P=NaN,R=0,F=this._elementRenderInfo;if(null!=N&&F&&F.length>t&&F[t].series.length>d){var L=F[t].series[d][N];L&&!isNaN(L.to)&&(D=L.to,P=L.xoffset,R=C,o?(M=P,P=D,D=M+e.y):P+=e.x,s&&(R=b+(w-b)*(L.valueRadius-y)/Math.max(1,x-y),isNaN(R)&&(R=b)))}m&&(v=this._getColors(t,d,_,c)),k.items.push({from:R,to:O,itemIndex:_,fill:v.fillColor,stroke:v.lineColor,x:q,y:E,xFrom:P,yFrom:D})}}}}this._animR(k,0);var H=this;this._enqueueAnimation("series",void 0,void 0,A,(function(t,e,r){H._animR(e,r)}),k)}}}}},_animR:function(t,e){for(var r=t.items,i=t.symbolType||"circle",s=t.symbolSize,o=0;o<r.length;o++){var a=r[o],l=a.x,h=a.y,u=Math.round((a.to-a.from)*e+a.from);if(isNaN(a.yFrom)||(h=a.yFrom+(h-a.yFrom)*e),isNaN(a.xFrom)||(l=a.xFrom+(l-a.xFrom)*e),t.polarAxisCoords){var c=this._toPolarCoord(t.polarAxisCoords,this._plotRect,l,h);l=c.x,h=c.y}l=n.jqx._ptrnd(l),h=n.jqx._ptrnd(h),u=n.jqx._ptrnd(u);var d=this._getRenderInfo(t.groupIndex,t.seriesIndex,r[o].itemIndex),f=d.element,p=d.labelElement;"circle"==i?(f||(f=this.renderer.circle(l,h,u),this.renderer.attr(f,{fill:a.fill,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["fill-opacity"],stroke:a.stroke,"stroke-width":t["stroke-width"],"stroke-dasharray":t["stroke-dasharray"]})),this._isVML?this.renderer.updateCircle(f,void 0,void 0,u):this.renderer.attr(f,{r:u,cy:h,cx:l})):(f&&this.renderer.removeElement(f),f=this._drawSymbol(i,l,h,a.fill,t["fill-opacity"],a.stroke,t["stroke-opacity"]||t["fill-opacity"],t["stroke-width-symbol"],t["stroke-dasharray"],s||u)),p&&this.renderer.removeElement(p),p=this._showLabel(t.groupIndex,t.seriesIndex,a.itemIndex,{x:l-u,y:h-u,width:2*u,height:2*u}),e>=1&&this._installHandlers(f,"circle",t.groupIndex,t.seriesIndex,a.itemIndex),this._setRenderInfo(t.groupIndex,t.seriesIndex,r[o].itemIndex,{element:f,labelElement:p})}},_showMultiSeriesToolTip:function(t,e,r){for(var n=this,i='<div style="text-align:left">',s="",o=0;o<n.seriesGroups.length;o++)if(!n._isPieGroup(o)){var a=n._getXAxis(o),l=n._getValueAxis(o),h=n.seriesGroups[o],u=this._getAxisSettings(a),c=u.toolTipFormatSettings,d=u.toolTipFormatFunction,f=n._getDataValue(r,a.dataField,o);null!=a.dataField&&""!=a.dataField||(f=r),"date"==a.type&&(f=n._castAsDate(f,(c?c.dateFormat:void 0)||a.dateFormat)),d||c||"date"!=a.type||(d=this._getDefaultDTFormatFn(a.baseUnit||"day"));var p=a.displayText||a.dataField||"";""!=p&&(p+=": ");var g=p+n._formatValue(f,c,d,o,m,r);s!=g&&(""!=s&&(i+="<br />"),i+=g+"<br /><br />",s=g);for(var m=0;m<h.series.length;m++){var v=h.series[m];if(0!=h.showToolTips&&0!=v.showToolTips&&n._isSerieVisible(o,m)){var y=n._get([v.toolTipFormatSettings,h.toolTipFormatSettings,l.toolTipFormatSettings,n.toolTipFormatSettings]),x=n._get([v.toolTipFormatFunction,h.toolTipFormatFunction,l.toolTipFormatFunction,n.toolTipFormatFunction]),_=n._getFormattedValue(o,m,r,y,x);i+="<span style='color:"+n._getColors(o,m,r).lineColor+";'>"+_+"</span><br />\n"}}}var b=this._get([n.toolTipClass,this.toThemeProperty("jqx-chart-tooltip-text",null)]),w=this._get([n.toolTipBackground,"#FFFFFF"]),C=this._get([n.toolTipLineColor,n._defaultLineColor]),S=this._get([n.toolTipOpacity,1]);i+="</div>";var A=this.getItemCoord(n._ttEl.gidx,n._ttEl.sidx,n._ttEl.iidx);n._createTooltip(A,n.seriesGroups[n._ttEl.gidx],i,{css:b,fill:w,stroke:C,fillOpacity:S,symbolSize:3})},_showToolTip:function(t,e,r,i,s){var o=this,a=o._getXAxis(r),l=o._getValueAxis(r);if(!o._ttEl||r!=o._ttEl.gidx||i!=o._ttEl.sidx||s!=o._ttEl.iidx){var h=o.seriesGroups[r],u=h.series[i],c=o.enableCrosshairs;o._pointMarker?(t=parseInt(o._pointMarker.x+5),e=parseInt(o._pointMarker.y-5)):c=!1;var d=c&&0==o.showToolTips;if(t=n.jqx._ptrnd(t),e=n.jqx._ptrnd(e),0!=h.showToolTips&&0!=u.showToolTips){o._ttEl||(o._ttEl={}),o._ttEl.sidx=i,o._ttEl.gidx=r,o._ttEl.iidx=s;for(var f=0,p=0;p<o.seriesGroups.length;p++)for(var g=0;g<o.seriesGroups[p].series.length;g++)f++;if(o.showToolTipsOnAllSeries&&!o._isPieGroup(r)&&f>1)o._showMultiSeriesToolTip(t,e,s);else{var m=o._get([u.toolTipFormatSettings,h.toolTipFormatSettings,l.toolTipFormatSettings,o.toolTipFormatSettings]),v=o._get([u.toolTipFormatFunction,h.toolTipFormatFunction,l.toolTipFormatFunction,o.toolTipFormatFunction]),y=o._getColors(r,i,s),x=o._getDataValue(s,a.dataField,r);null!=a.dataField&&""!=a.dataField||(x=s),"date"==a.type&&(x=o._castAsDate(x,(m?m.dateFormat:void 0)||a.dateFormat));var _="";if(n.isFunction(v)){var b={},w=0;for(var C in u)0==C.indexOf("dataField")&&(b[C.substring(9,C.length).toLowerCase()]=o._getDataValue(s,u[C],r),w++);0==w?b=o._getDataValue(s,void 0,r):1==w&&(b=b[""]),_=v(b,s,u,h,x,a)}else{_=o._getFormattedValue(r,i,s,m,v);var S=this._getAxisSettings(a),A=S.toolTipFormatSettings,k=S.toolTipFormatFunction;k||A||"date"!=a.type||(k=this._getDefaultDTFormatFn(a.baseUnit||"day"));var T=o._formatValue(x,A,k,r,i,s);if(o._isPieGroup(r))x=o._getDataValue(s,u.displayText||u.dataField,r),_=(T=o._formatValue(x,A,k,r,i,s))+": "+_;else{var j=a.displayText||a.dataField||"";_=j.length>0?j+": "+T+"<br>"+_:T+"<br>"+_}}if(o.renderer.getRect(),c){var q=n.jqx._ptrnd(o._pointMarker.x),N=n.jqx._ptrnd(o._pointMarker.y),E=o.crosshairsColor||o._defaultLineColor;if(h.polar||h.spider){var M=this._getPolarAxisCoords(r,this._plotRect);if(n.jqx._ptdist(q,N,M.x,M.y)>M.r)return;var O=Math.atan2(N-M.y,q-M.x),I=Math.cos(O)*M.r+M.x,D=Math.sin(O)*M.r+M.y;o._ttEl.vLine?o.renderer.attr(o._ttEl.vLine,{x1:M.x,y1:M.y,x2:I,y2:D}):o._ttEl.vLine=o.renderer.line(M.x,M.y,I,D,{stroke:E,"stroke-width":o.crosshairsLineWidth||1,"stroke-dasharray":o.crosshairsDashStyle||""})}else o._ttEl.vLine&&o._ttEl.hLine?(o.renderer.attr(o._ttEl.vLine,{x1:q,x2:q}),o.renderer.attr(o._ttEl.hLine,{y1:N,y2:N})):(o._ttEl.vLine=o.renderer.line(q,o._plotRect.y,q,o._plotRect.y+o._plotRect.height,{stroke:E,"stroke-width":o.crosshairsLineWidth||1,"stroke-dasharray":o.crosshairsDashStyle||""}),o._ttEl.hLine=o.renderer.line(o._plotRect.x,N,o._plotRect.x+o._plotRect.width,N,{stroke:E,"stroke-width":o.crosshairsLineWidth||1,"stroke-dasharray":o.crosshairsDashStyle||""}))}if(!d&&0!=o.showToolTips){var P=this._get([u.toolTipClass,h.toolTipClass,o.toolTipClass,this.toThemeProperty("jqx-chart-tooltip-text",null)]),R=this._get([u.toolTipBackground,h.toolTipBackground,o.toolTipBackground,"#FFFFFF"]),F=this._get([u.toolTipLineColor,h.toolTipLineColor,o.toolTipLineColor,y.lineColor]),L=this._get([u.toolTipOpacity,h.toolTipOpacity,o.toolTipOpacity,1]),H=this.getItemCoord(r,i,s),V=0;o._pointMarker&&o._pointMarker.element&&(V=u.symbolSizeSelected,isNaN(V)&&(V=u.symbolSize),(isNaN(V)||V>50||V<0)&&(V=h.symbolSize),(isNaN(V)||V>50||V<0)&&(V=8)),o._createTooltip(H,h,_,{css:P,fill:R,stroke:F,fillOpacity:L,symbolSize:V})}}}}},_fitTooltip:function(t,e,r,n,i){var s={},o=2+i/2;if(e.x-r.width-7-o>t.x&&e.y+e.height/2-r.height/2>t.y&&e.y+e.height/2+r.height/2<t.y+t.height&&(s.left={arrowLocation:"right",x:e.x-r.width-7-o,y:e.y+e.height/2-r.height/2,width:r.width+7,height:r.height}),e.x+e.width+r.width+7+o<t.x+t.width&&e.y+e.height/2-r.height/2>t.y&&e.y+e.height/2+r.height/2<t.y+t.height&&(s.right={arrowLocation:"left",x:e.x+e.width+o,y:e.y+e.height/2-r.height/2,width:r.width+7,height:r.height}),e.y-r.height-o-7>t.y&&e.x+e.width/2-r.width/2>t.x&&e.x+e.width/2+r.width/2<t.x+t.width&&(s.top={arrowLocation:"bottom",x:e.x+e.width/2-r.width/2,y:e.y-r.height-o-7,width:r.width,height:r.height+7}),e.y+e.height+r.height+7+o<t.y+t.height&&e.x+e.width/2-r.width/2>t.x&&e.x+e.width/2+r.width/2<t.x+t.width&&(s.bottom={arrowLocation:"top",x:e.x+e.width/2-r.width/2,y:e.y+e.height+o,width:r.width,height:r.height+7}),e.width>e.height||(-1!=n.type.indexOf("stackedcolumn")||-1!=n.type.indexOf("stackedwaterfall"))&&"horizontal"!=n.orientation){if(s.left)return s.left;if(s.right)return s.right}else{if(s.top)return s.top;if(s.bottom)return s.bottom}for(var a in s)if(s[a])return s[a];return{arrowLocation:""}},_createTooltip:function(t,e,r,i){var s=this,o=e.type,a=!1,l=s._ttEl.box;if(!l){a=!0;var h=1e7;(l=s._ttEl.box=document.createElement("div")).style.position="absolute",l.style.cursor="default",n(u).css({"z-index":h,"box-sizing":"content-box"}),n(l).css({"z-index":h}),n(document.body).append(l);var u=document.createElement("div");u.id="arrowOuterDiv",u.style.width="0px",u.style.height="0px",u.style.position="absolute",n(u).css({"z-index":h+1,"box-sizing":"content-box"});var c=document.createElement("div");c.id="arrowInnerDiv",c.style.width="0px",c.style.height="0px",c.style.position="absolute";var d=document.createElement("div");d.id="contentDiv",d.style.position="absolute",n(d).css({"box-sizing":"content-box",outline:"none",border:"1px solid transparent",padding:"3px","text-align":"center","vertical-align":"middle",margin:"0 0 0 0",cursor:"default"}),n(d).addClass("jqx-rc-all"),n(d).appendTo(n(l)),n(u).appendTo(n(l)),n(c).appendTo(n(l)),n(c).css({"z-index":h+2,"box-sizing":"content-box"})}if(r&&0!=r.length){d=n(l).find("#contentDiv")[0],u=n(l).find("#arrowOuterDiv")[0],(c=n(l).find("#arrowInnerDiv")[0]).style.opacity=u.style.opacity=i.fillOpacity,d.style.backgroundColor=i.fill,d.style.borderColor=i.stroke,d.style.opacity=i.fillOpacity;var f="<span class='"+i.css+"'>"+r+"</span>";n(d).html(f);var p=this._measureHtml(f,"jqx-rc-all jqx-button"),g=s._plotRect;if(!(p.width>g.width||p.height>g.height)){var m={width:p.width,height:p.height},v="",y=s._isColumnType(o),x=Math.max(t.x,g.x),_=Math.max(t.y,g.y);if("dataPoint"==s.toolTipAlignment){if(-1!=o.indexOf("pie")||-1!=o.indexOf("donut")){var b=(t.fromAngle+t.toAngle)/2;b*=Math.PI/180;var w=!isNaN(t.innerRadius)&&t.innerRadius>0?(t.innerRadius+t.outerRadius)/2:.75*t.outerRadius;x=t.x=t.center.x+Math.cos(b)*w,_=t.y=t.center.y-Math.sin(b)*w,t.width=t.height=1}else y&&(e.polar||e.spider)&&(t.width=t.height=1);var C=this._fitTooltip(this._plotRect,t,m,e,i.symbolSize);""!=C.arrowLocation&&(v=C.arrowLocation,x=C.x,_=C.y,m.width=C.width,m.height=C.height)}else v="";"top"==v||"bottom"==v?(m.height+=7,x-=3.5,"bottom"==v&&(_-=7)):"left"!=v&&"right"!=v||(m.width+=7,_-=3.5,"right"==v&&(x-=7)),x+m.width>g.x+g.width&&(v="",x=g.x+g.width-m.width),_+m.height>g.y+g.height&&(v="",_=g.y+g.height-m.height);var S={x:0,y:0};n(d).css({width:p.width,height:p.height,left:0,top:0}),u.style["margin-top"]=u.style["margin-left"]=0,c.style["margin-top"]=c.style["margin-left"]=0,d.style["margin-top"]=d.style["margin-left"]=0;var A="7px solid",k="7px solid transparent";switch(v){case"left":S={x:0,y:(p.height-7)/2},d.style["margin-left"]="7px",u.style["margin-left"]="0px",u.style["margin-top"]=S.y+"px",u.style["border-left"]="",u.style["border-right"]=A+" "+i.stroke,u.style["border-top"]=k,u.style["border-bottom"]=k,c.style["margin-left"]="1px",c.style["margin-top"]=S.y+"px",c.style["border-left"]="",c.style["border-right"]=A+" "+i.fill,c.style["border-top"]=k,c.style["border-bottom"]=k;break;case"right":u.style["margin-left"]=(S={x:m.width-7,y:(p.height-7)/2}).x+"px",u.style["margin-top"]=S.y+"px",u.style["border-left"]=A+" "+i.stroke,u.style["border-right"]="",u.style["border-top"]=k,u.style["border-bottom"]=k,c.style["margin-left"]=S.x-1+"px",c.style["margin-top"]=S.y+"px",c.style["border-left"]=A+" "+i.fill,c.style["border-right"]="",c.style["border-top"]=k,c.style["border-bottom"]=k;break;case"top":S={x:m.width/2-3.5,y:0},d.style["margin-top"]="7px",u.style["margin-left"]=S.x+"px",u.style["border-top"]="",u.style["border-bottom"]=A+" "+i.stroke,u.style["border-left"]=k,u.style["border-right"]=k,c.style["margin-left"]=S.x+"px",c.style["margin-top"]="1px",c.style["border-top"]="",c.style["border-bottom"]=A+" "+i.fill,c.style["border-left"]=k,c.style["border-right"]=k;break;case"bottom":u.style["margin-left"]=(S={x:m.width/2-3.5,y:m.height-7}).x+"px",u.style["margin-top"]=S.y+"px",u.style["border-top"]=A+" "+i.stroke,u.style["border-bottom"]="",u.style["border-left"]=k,u.style["border-right"]=k,c.style["margin-left"]=S.x+"px",c.style["margin-top"]=S.y-1+"px",c.style["border-top"]=A+" "+i.fill,c.style["border-bottom"]="",c.style["border-left"]=k,c.style["border-right"]=k}""==v?(n(u).hide(),n(c).hide()):(n(u).show(),n(c).show()),n(l).css({width:m.width+"px",height:m.height+"px"});var T=s.host.coord();a&&(n(l).fadeOut(0,0),l.style.left=x+T.left+"px",l.style.top=_+T.top+"px"),n(l).clearQueue(),n(l).animate({left:x+T.left,top:_+T.top,opacity:1},s.toolTipMoveDuration,"easeInOutCirc"),n(l).fadeTo(400,1)}}else n(l).fadeTo(0,0)},_measureHtml:function(t,e){var r=this._measureDiv;r||(this._measureDiv=r=document.createElement("div"),r.style.position="absolute",r.style.cursor="default",r.style.overflow="hidden",r.style.display="none",n(r).addClass(e),this.host.append(r)),n(r).html(t);var i={width:n(r).width()+2,height:n(r).height()+2};return n.jqx.browser&&n.jqx.browser.mozilla&&(i.height+=3),i},_hideToolTip:function(t){this._ttEl&&(this._ttEl.box&&(0==t?n(this._ttEl.box).hide():n(this._ttEl.box).fadeOut()),this._hideCrosshairs(),this._ttEl.gidx=void 0)},_hideCrosshairs:function(){this._ttEl&&(this._ttEl.vLine&&(this.renderer.removeElement(this._ttEl.vLine),this._ttEl.vLine=void 0),this._ttEl.hLine&&(this.renderer.removeElement(this._ttEl.hLine),this._ttEl.hLine=void 0))},_get:function(t){return n.jqx.getByPriority(t)},_getAxisSettings:function(t){if(!t)return{};var e=this,r=t.gridLines||{},n={visible:this._get([r.visible,t.showGridLines,!0]),color:e._get([r.color,t.gridLinesColor,e._defaultLineColor]),unitInterval:e._get([r.unitInterval,r.interval,t.gridLinesInterval]),step:e._get([r.step,t.gridLinesStep]),dashStyle:e._get([r.dashStyle,t.gridLinesDashStyle]),width:e._get([r.lineWidth,1]),offsets:[],alternatingBackgroundColor:t.alternatingBackgroundColor,alternatingBackgroundColor2:t.alternatingBackgroundColor2,alternatingBackgroundOpacity:t.alternatingBackgroundOpacity},i=t.tickMarks||{},s={visible:this._get([i.visible,t.showTickMarks,!0]),color:e._get([i.color,t.tickMarksColor,e._defaultLineColor]),unitInterval:e._get([i.unitInterval,i.interval,t.tickMarksInterval]),step:e._get([i.step,t.tickMarksStep]),dashStyle:e._get([i.dashStyle,t.tickMarksDashStyle]),width:e._get([i.lineWidth,1]),size:e._get([i.size,4]),offsets:[]},o=t.title||{},a={visible:e._get([o.visible,!0]),text:e._get([t.description,o.text]),style:e._get([t.descriptionClass,o.class,e.toThemeProperty("jqx-chart-axis-description",null)]),halign:e._get([t.horizontalDescriptionAlignment,o.horizontalAlignment,"center"]),valign:e._get([t.verticalDescriptionAlignment,o.verticalAlignment,"center"]),angle:0,rotationPoint:e._get([o.rotationPoint,"centercenter"]),offset:e._get([o.offset,{x:0,y:0}])},l=t.line||{},h={visible:e._get([l.visible,!0]),color:e._get([l.color,n.color,e._defaultLineColor]),dashStyle:e._get([l.dashStyle,n.dashStyle,""]),width:e._get([l.lineWidth,1]),angle:e._get([l.angle,NaN])},u=t.padding||{};u={left:u.left||0,right:u.right||0,top:u.top||0,bottom:u.bottom||0};var c=this._getAxisLabelsSettings(t);return{visible:this._get([t.visible,t.showValueAxis,t.showXAxis,t.showCategoryAxis,!0]),customDraw:this._get([t.customDraw,!1]),gridLines:n,tickMarks:s,line:h,title:a,labels:c,padding:u,toolTipFormatFunction:this._get([t.toolTipFormatFunction,t.formatFunction,c.formatFunction]),toolTipFormatSettings:this._get([t.toolTipFormatSettings,t.formatSettings,c.formatSettings])}},_getAxisLabelsSettings:function(t){var e=this,r=t.labels||{};return{visible:e._get([t.showLabels,r.visible,!0]),unitInterval:e._get([r.unitInterval,r.interval,t.labelsInterval]),step:e._get([r.step,t.labelsStep]),angle:e._get([t.textRotationAngle,r.angle,0]),style:e._get([t.class,r.class,e.toThemeProperty("jqx-chart-axis-text",null)]),halign:e._get([t.horizontalTextAlignment,r.horizontalAlignment,"center"]),valign:e._get([t.verticalTextAlignment,r.verticalAlignment,"center"]),textRotationPoint:e._get([t.textRotationPoint,r.rotationPoint,"auto"]),textOffset:e._get([t.textOffset,r.offset,{x:0,y:0}]),autoRotate:e._get([t.labelsAutoRotate,r.autoRotate,!1]),formatSettings:e._get([t.formatSettings,r.formatSettings,void 0]),formatFunction:e._get([t.formatFunction,r.formatFunction,void 0])}},_getLabelsSettings:function(t,e,r,i){for(var s=this.seriesGroups[t],o=s.series[e],a=isNaN(r)?void 0:this._getDataValue(r,o.dataField,t),l=i||["Visible","Offset","Angle","HorizontalAlignment","VerticalAlignment","Class","BackgroundColor","BorderColor","BorderOpacity","Padding","Opacity","BackgroundOpacity","LinesAngles","LinesEnabled","AutoRotate","Radius"],h={},u=0;u<l.length;u++){var c=l[u],d="labels"+c,f="label"+c,p=c.substring(0,1).toLowerCase()+c.substring(1),g=void 0;s.labels&&"object"==typeof s.labels&&(g=s.labels[p]),o.labels&&"object"==typeof o.labels&&null!=o.labels[p]&&(g=o.labels[p]),g=this._get([o[d],o[f],g,s[d],s[f]]),h[p]=n.isFunction(g)?g(a,r,o,s):g}h.class=h.class||this.toThemeProperty("jqx-chart-label-text",null),h.visible=this._get([h.visible,o.showLabels,s.showLabels,null!=o.labels||void 0,null!=s.labels||void 0]);var m=h.padding||1;return h.padding={left:this._get([m.left,isNaN(m)?1:m]),right:this._get([m.right,isNaN(m)?1:m]),top:this._get([m.top,isNaN(m)?1:m]),bottom:this._get([m.bottom,isNaN(m)?1:m])},h},_showLabel:function(t,e,r,n,i,s,o,a,l,h,u){var c={width:0,height:0};if(!isNaN(r)){var d=this._getLabelsSettings(t,e,r);if(!d.visible)return o?c:void 0;if(n.width<0||n.height<0)return o?c:void 0;var f=d.angle;isNaN(h)||(f=h);var p=d.offset||{},g={x:p.x,y:p.y};isNaN(g.x)&&(g.x=0),isNaN(g.y)&&(g.y=0),i=i||d.horizontalAlignment||"center",s=s||d.verticalAlignment||"center";var m=this._getFormattedValue(t,e,r,void 0,void 0,!0),v=n.width,y=n.height;if(1==a&&"center"!=i&&(i="right"==i?"left":"right"),1==l&&"center"!=s&&"middle"!=s&&(s="top"==s?"bottom":"top",g.y*=-1),c=this.renderer.measureText(m,f,{class:d.class}),o)return c;var x=0,_=0;v>0&&(""==i||"center"==i?x+=(v-c.width)/2:"right"==i&&(x+=v-c.width)),y>0&&(""==s||"center"==s?_+=(y-c.height)/2:"bottom"==s&&(_+=y-c.height));var b=this._plotRect;(x+=n.x+g.x)<=b.x&&(x=b.x+2),(_+=n.y+g.y)<=b.y&&(_=b.y+2);var w,C=Math.max(c.width,1),S=Math.max(c.height,1);_+S>=b.y+b.height&&(_=b.y+b.height-S-2),x+C>=b.x+b.width&&(x=b.x+b.width-C-2);var A=d.backgroundColor,k=d.borderColor,T=d.padding;(A||k)&&(w=this.renderer.beginGroup(),n=this.renderer.rect(x-T.left,_-T.top,c.width+T.left+T.right,c.height+T.bottom+T.bottom,{fill:A||"transparent","fill-opacity":d.backgroundOpacity||1,stroke:k||"transparent","stroke-opacity":d.borderOpacity,"stroke-width":1}));var j=this.renderer.text(m,x,_,c.width,c.height,f,{class:d.class,opacity:d.opacity||1},!1,"center","center");return u&&(u.x=x-T.left,u.y=_-T.top,u.width=c.width+T.left+T.right,u.height=c.height+T.bottom+T.bottom),this._isVML&&(this.renderer.removeElement(j),this.renderer.getContainer()[0].appendChild(j)),w&&this.renderer.endGroup(),w||j}},_getAnimProps:function(t,e){var r=this.seriesGroups[t],n=isNaN(e)?void 0:r.series[e],i=1==this.enableAnimations;r.enableAnimations&&(i=1==r.enableAnimations),n&&n.enableAnimations&&(i=1==n.enableAnimations);var s=this.animationDuration;isNaN(s)&&(s=1e3);var o=r.animationDuration;if(isNaN(o)||(s=o),n){var a=n.animationDuration;isNaN(a)||(s=a)}return s>5e3&&(s=1e3),{enabled:i,duration:s}},_isColorTransition:function(t,e,r,n){if(n-1<r.xoffsets.first)return!1;var i=this._getColors(t,e,n,this._getGroupGradientType(t)),s=this._getColors(t,e,n-1,this._getGroupGradientType(t));return i.fillColor!=s.fillColor},_renderLineSeries:function(t,e){var r=this.seriesGroups[t];if(r.series&&0!=r.series.length){var i=-1!=r.type.indexOf("area"),s=-1!=r.type.indexOf("stacked"),o=s&&-1!=r.type.indexOf("100"),a=-1!=r.type.indexOf("spline"),l=-1!=r.type.indexOf("step"),h=-1!=r.type.indexOf("range"),u=1==r.polar||1==r.spider;if(u&&(l=!1),!l||!a){this._getDataLen(t);var c="horizontal"==r.orientation,d=1==this._getXAxis(t).flip,f=e;c&&(f={x:e.y,y:e.x,width:e.height,height:e.width});var p=this._calcGroupOffsets(t,f);if(p&&0!=p.xoffsets.length){this._linesRenderInfo||(this._linesRenderInfo={}),this._linesRenderInfo[t]={};for(var g=r.series.length-1;g>=0;g--){var m=this._getSerieSettings(t,g),v={groupIndex:t,rect:f,serieIndex:g,swapXY:c,isArea:i,isSpline:a,isRange:h,isPolar:u,settings:m,segments:[],pointsLength:0};if(this._isSerieVisible(t,g)){var y=r.series[g];if(!y.customDraw){var x,_=n.isFunction(y.colorFunction),b=p.xoffsets.first,w=b,C=this._getColors(t,g,NaN,this._getGroupGradientType(t));do{var S=[],A=[],k=[],T=0,j=0,q=NaN,N=NaN,E=NaN;if(!(p.xoffsets.length<1)){var M=this._getAnimProps(t,g),O=M.enabled&&!this._isToggleRefresh&&p.xoffsets.length<1e4&&1!=this._isVML?M.duration:0,I=b;x=!1,this._getColors(t,g,b,this._getGroupGradientType(t));for(var D=void 0,P=b;P<=p.xoffsets.last;P++){b=P;var R=p.xoffsets.data[P],F=p.xoffsets.xvalues[P];if(!(isNaN(R)||(T=R=Math.max(R,1),j=p.offsets[g][P].to,!_&&D&&this.enableSampling&&n.jqx._ptdist(D.x,D.y,T,j)<1))){D={x:T,y:j};var L=p.offsets[g][P].from;if(isNaN(j)||isNaN(L)){if("connect"==y.emptyPointsDisplay)continue;if("zero"!=y.emptyPointsDisplay){x=!0;break}isNaN(j)&&(j=p.baseOffset),isNaN(L)&&(L=p.baseOffset)}if(_&&this._isColorTransition(t,g,p,b)&&S.length>1){b--;break}var H=this._elementRenderInfo;if(H&&H.length>t&&H[t].series.length>g){var V=H[t].series[g][F],B=(E=n.jqx._ptrnd(V?V.to:void 0),n.jqx._ptrnd(f.x+(V?V.xoffset:void 0)));k.push(c?{y:B,x:E,index:P}:{x:B,y:E,index:P})}w=P,m.stroke<2&&(j-f.y<=1&&(j=f.y+1),L-f.y<=1&&(L=f.y+1),f.y+f.height-j<=1&&(j=f.y+f.height-1),f.y+f.height-L<=1&&(L=f.y+f.height-1)),!i&&o&&(j<=f.y&&(j=f.y+1),j>=f.y+f.height&&(j=f.y+f.height-1),L<=f.y&&(L=f.y+1),L>=f.y+f.height&&(L=f.y+f.height-1)),T=(R=Math.max(R,1))+f.x,1==r.skipOverlappingPoints&&!isNaN(q)&&Math.abs(q-T)<=1||(!l||isNaN(q)||isNaN(N)||N!=j&&S.push(c?{y:T,x:n.jqx._ptrnd(N)}:{x:T,y:n.jqx._ptrnd(N)}),S.push(c?{y:T,x:n.jqx._ptrnd(j),index:P}:{x:T,y:n.jqx._ptrnd(j),index:P}),A.push(c?{y:T,x:n.jqx._ptrnd(L),index:P}:{x:T,y:n.jqx._ptrnd(L),index:P}),q=T,N=j,isNaN(E)&&(E=j))}}if(0!=S.length){var z=S[S.length-1].index;_&&(C=this._getColors(t,g,z,this._getGroupGradientType(t)));var G=f.x+p.xoffsets.data[I],U=f.x+p.xoffsets.data[w];if(i&&1==r.alignEndPointsWithIntervals&&(G>f.x&&(G=f.x),U<f.x+f.width&&(U=f.x+f.width),d)){var W=G;G=U,U=W}U=n.jqx._ptrnd(U),G=n.jqx._ptrnd(G);var $=p.baseOffset;E=n.jqx._ptrnd(E);var X=n.jqx._ptrnd(j)||$;h&&(S=S.concat(A.reverse())),v.pointsLength+=S.length,v.segments.push({lastItemIndex:z,colorSettings:C,pointsArray:S,pointsStart:k,left:G,right:U,pyStart:E,pyEnd:X,yBase:$,labelElements:[],symbolElements:[]})}else b++}}while(b<p.xoffsets.first+p.xoffsets.length-1||x);this._linesRenderInfo[t][g]=v}}else this._linesRenderInfo[t][g]=v}var Y=this._linesRenderInfo[t],Q=[];for(var P in Y)Q.push(Y[P]);for(Q=Q.sort((function(t,e){return t.serieIndex-e.serieIndex})),i&&s&&Q.reverse(),P=0;P<Q.length;P++){this._animateLine(v=Q[P],0==O?1:0);var J=this;this._enqueueAnimation("series",void 0,void 0,O,(function(t,e,r){J._animateLine(e,r)}),v)}}}}},_animateLine:function(t,e){var r=t.settings,n=t.groupIndex,i=t.serieIndex,s=this.seriesGroups[n],o=s.series[i],a=this._getSymbol(n,i),l=this._getLabelsSettings(n,i,NaN,["Visible"]).visible,h=!0;t.isPolar&&(isNaN(s.endAngle)||360==Math.round(Math.abs((isNaN(s.startAngle)?0:s.startAngle)-s.endAngle))||(h=!1)),0==o.endPointsConnect&&(h=!1);for(var u=0,c=0;c<t.segments.length;c++){var d=t.segments[c],f=this._calculateLine(n,t.pointsLength,u,d.pointsArray,d.pointsStart,d.yBase,e,t.isArea,t.swapXY);if(u+=d.pointsArray.length,""!=f){var p=f.split(" "),g=f;g=""!=g?this._buildLineCmd(f,t.isRange,d.left,d.right,d.pyStart,d.pyEnd,d.yBase,t.isArea,t.isPolar,h,t.isSpline,t.swapXY):"M 0 0";var m=d.colorSettings;if(d.pathElement?this.renderer.attr(d.pathElement,{d:g}):(d.pathElement=this.renderer.path(g,{"stroke-width":r.stroke,stroke:m.lineColor,"stroke-opacity":r.opacity,"fill-opacity":r.opacity,"stroke-dasharray":r.dashStyle,fill:t.isArea?m.fillColor:"none"}),this._installHandlers(d.pathElement,"path",n,i,d.lastItemIndex)),d.labelElements){for(var v=0;v<d.labelElements.length;v++)this.renderer.removeElement(d.labelElements[v]);d.labelElements=[]}if(d.symbolElements){for(v=0;v<d.symbolElements.length;v++)this.renderer.removeElement(d.symbolElements[v]);d.symbolElements=[]}if(d.pointsArray.length==p.length&&("none"!=a||l)){var y=o.symbolSize,x=this._plotRect;for(v=0;v<p.length;v++){var _=p[v].split(",");if(!((_={x:parseFloat(_[0]),y:parseFloat(_[1])}).x<x.x||_.x>x.x+x.width||_.y<x.y||_.y>x.y+x.height)){if("none"!=a){var b=this._getColors(n,i,d.pointsArray[v].index,this._getGroupGradientType(n)),w=this._drawSymbol(a,_.x,_.y,b.fillColorSymbol,r.opacity,b.lineColorSymbol,r.opacity,r.strokeSymbol,void 0,y);d.symbolElements.push(w)}if(l){var C=(v>0?p[v-1]:p[v]).split(",");C={x:parseFloat(C[0]),y:parseFloat(C[1])};var S=(v<p.length-1?p[v+1]:p[v]).split(",");if(S={x:parseFloat(S[0]),y:parseFloat(S[1])},_=this._adjustLineLabelPosition(n,i,d.pointsArray[v].index,_,C,S)){var A=this._showLabel(n,i,d.pointsArray[v].index,{x:_.x,y:_.y,width:0,height:0});d.labelElements.push(A)}}}}}if(1==e&&"none"!=a)for(v=0;v<d.symbolElements.length;v++)isNaN(d.pointsArray[v].index)||this._installHandlers(d.symbolElements[v],"symbol",n,i,d.pointsArray[v].index)}}},_adjustLineLabelPosition:function(t,e,r,n,i,s){var o=this._showLabel(t,e,r,{width:0,height:0},"","",!0);if(o){var a={x:n.x-o.width/2,y:0};return a.y=n.y-1.5*o.height,a}},_calculateLine:function(t,e,r,i,s,o,a,l,h){var u,c=this.seriesGroups[t];1!=c.polar&&1!=c.spider||(u=this._getPolarAxisCoords(t,this._plotRect));var d="",f=i.length;l||0!=s.length||(f=e*a-r);for(var p=0;p<f+1&&p<i.length;p++){p>0&&(d+=" ");var g=i[p].y,m=i[p].x,v=l?o:g,y=m;if(s&&s.length>p&&(v=s[p].y,y=s[p].x,(isNaN(v)||isNaN(y))&&(v=g,y=m)),f<=i.length&&p>0&&p==f&&(y=i[p-1].x,v=i[p-1].y),h?(m=n.jqx._ptrnd((m-v)*(l?a:1)+v),g=n.jqx._ptrnd(g)):(m=n.jqx._ptrnd((m-y)*a+y),g=n.jqx._ptrnd((g-v)*a+v)),u){var x=this._toPolarCoord(u,this._plotRect,m,g);m=x.x,g=x.y}d+=m+","+g}return d},_buildLineCmd:function(t,e,r,n,i,s,o,a,l,h,u,c){var d=t,f=c?o+","+r:r+","+o;!a||l||e||(d=f+" "+t+" "+(c?o+","+n:n+","+o)),u&&(d=this._getBezierPoints(d));var p=d.split(" ");if(0==p.length)return"";if(1==p.length){var g=p[0].split(",");return"M "+p[0]+" L"+(parseFloat(g[0])+1)+","+(parseFloat(g[1])+1)}var m=p[0].replace("M","");return a&&!l?d=e?"M "+m+" L "+m+(u?"":" L "+m+" ")+d:"M "+f+" L "+m+" "+d:u||(d="M "+m+" L "+m+" "+d),(l&&h||e)&&(d+=" Z"),d},_getSerieSettings:function(t,e){var r=this.seriesGroups[t],n=-1!=r.type.indexOf("area"),i=-1!=r.type.indexOf("line"),s=r.series[e],o=s.dashStyle||r.dashStyle||"",a=s.opacity||r.opacity;(isNaN(a)||a<0||a>1)&&(a=1);var l=s.lineWidth;isNaN(l)&&"auto"!=l&&(l=r.lineWidth),("auto"==l||isNaN(l)||l<0||l>15)&&(l=n?2:i?3:1);var h=s.lineWidthSymbol;return isNaN(h)&&(h=1),{stroke:l,strokeSymbol:h,opacity:a,dashStyle:o}},_getColors:function(t,e,r,i,s){var o=this.seriesGroups[t],a=this._get([o.series[e].useGradientColors,o.useGradientColors,o.useGradient,!0]),l=this._getSeriesColors(t,e,r);l.fillColor||(l.fillColor=v,l.fillColorSelected=n.jqx.adjustColor(v,1.1),l.fillColorAlt=n.jqx.adjustColor(v,4),l.fillColorAltSelected=n.jqx.adjustColor(v,3),l.lineColor=l.symbolColor=n.jqx.adjustColor(v,.9),l.lineColorSelected=l.symbolColorSelected=n.jqx.adjustColor(v,.9));var h=[[0,1.4],[100,1]],u=[[0,1],[25,1.1],[50,1.4],[100,1]],c=NaN;if(isNaN(s)||(c=2==s?h:u),a){var d={};for(var f in l)d[f]=l[f];if(l=d,"verticalLinearGradient"==i||"horizontalLinearGradient"==i){var p="verticalLinearGradient"==i?c||h:c||u,g=["fillColor","fillColorSelected","fillColorAlt","fillColorAltSelected"];for(var m in g){var v=l[g[m]];v&&(l[g[m]]=this.renderer._toLinearGradient(v,"verticalLinearGradient"==i,p))}}else if("radialGradient"==i){var y;c=h,("pie"==o.type||"donut"==o.type||o.polar)&&null!=r&&this._renderData[t]&&this._renderData[t].offsets[e]&&(y=this._renderData[t].offsets[e][r],c=[[0,1.3],[90,1.2],[100,1]]),l.fillColor=this.renderer._toRadialGradient(l.fillColor,c,y),l.fillColorSelected=this.renderer._toRadialGradient(l.fillColorSelected,c,y)}}return l},_installHandlers:function(t,e,r,n,i){if(!this.enableEvents)return!1;var s=this,o=this.seriesGroups[r],a=this.seriesGroups[r].series[n],l=-1!=o.type.indexOf("line")||-1!=o.type.indexOf("area");l||0==o.enableSelection||0==a.enableSelection||this.renderer.addHandler(t,"mousemove",(function(t){var e=s._selected;if(!e||!e.isLineType||"click"!=e.linesUnselectMode||e.group==r&&e.series==n){var o=t.pageX||t.clientX||t.screenX,a=t.pageY||t.clientY||t.screenY,l=s.host.offset();s._mouseX==(o-=l.left)&&s._mouseY==(a-=l.top)||s._ttEl&&s._ttEl.gidx==r&&s._ttEl.sidx==n&&s._ttEl.iidx==i||s._startTooltipTimer(r,n,i)}})),0!=o.enableSelection&&0!=a.enableSelection&&this.renderer.addHandler(t,"mouseover",(function(o){var a=s._selected;a&&a.isLineType&&"click"==a.linesUnselectMode&&(a.group!=r||a.series!=n)||s._select(t,e,r,n,i,i)})),this.renderer.addHandler(t,"click",(function(t){clearTimeout(s._hostClickTimer),s._lastClickTs=(new Date).valueOf(),l&&"symbol"!=e&&"pointMarker"!=e||(s._isColumnType(o.type)&&s._unselect(),isNaN(i)||(t.stopImmediatePropagation(),s._raiseItemEvent("click",o,a,i)))}))},_getHorizontalOffset:function(t,e,r,i){var s=this._plotRect;if(0==this._getDataLen(t))return{index:void 0,value:r};var o=this._calcGroupOffsets(t,this._plotRect);if(0==o.xoffsets.length)return{index:void 0,value:void 0};var a,l=r,h=i,u=this.seriesGroups[t];(u.polar||u.spider)&&(a=this._getPolarAxisCoords(t,s)),this._getXAxis(t);for(var c,d,f,p,g=o.xoffsets.first;g<=o.xoffsets.last;g++){var m=o.xoffsets.data[g],v=o.offsets[e][g].to,y=0;if(a){var x=this._toPolarCoord(a,s,m+s.x,v);y=n.jqx._ptdist(l,h,m=x.x,v=x.y)}else if("horizontal"==u.orientation){var _=v;v=m+=s.y,y=n.jqx._ptdist(l,h,m=_,v)}else m+=s.x,y=Math.abs(l-m);(isNaN(c)||c>y)&&(c=y,d=g,f=m,p=v)}return{index:d,value:o.xoffsets.data[d],polarAxisCoords:a,x:f,y:p}},onmousemove:function(t,e){if((this._mouseX!=t||this._mouseY!=e)&&(this._mouseX=t,this._mouseY=e,this._selected)){var r=this._selected.group,i=this._selected.series,s=this.seriesGroups[r],o=s.series[i],a=this._plotRect;if(this.renderer&&((a=this.renderer.getRect()).x+=5,a.y+=5,a.width-=10,a.height-=10),t<a.x||t>a.x+a.width||e<a.y||e>a.y+a.height)return this._hideToolTip(),void this._unselect();var l="horizontal"==s.orientation;if(a=this._plotRect,-1!=s.type.indexOf("line")||-1!=s.type.indexOf("area")){var h=this._getHorizontalOffset(r,this._selected.series,t,e),u=h.index;if(null==u)return;if(this._selected.item!=u){for(var c=this._linesRenderInfo[r][i].segments,d=0;u>c[d].lastItemIndex;)if(++d>=c.length)return;var f=c[d].pathElement,p=c[d].lastItemIndex;this._unselect(!1),this._select(f,"path",r,i,u,p)}var g=this._getSymbol(this._selected.group,this._selected.series);"none"==g&&(g="circle");var m=this._calcGroupOffsets(r,a),v=m.offsets[this._selected.series][u].to,y=v;-1!=s.type.indexOf("range")&&(y=m.offsets[this._selected.series][u].from);var x=l?t:e;if(e=!isNaN(y)&&Math.abs(x-y)<Math.abs(x-v)?y:v,isNaN(e))return;if(t=h.value,l){var _=t;t=e,e=_+a.y}else t+=a.x;if(h.polarAxisCoords&&(t=h.x,e=h.y),e=n.jqx._ptrnd(e),t=n.jqx._ptrnd(t),this._pointMarker&&this._pointMarker.element&&(this.renderer.removeElement(this._pointMarker.element),this._pointMarker.element=void 0),isNaN(t)||isNaN(e))return;var b=this._getSeriesColors(r,i,u),w=this._getSerieSettings(r,i),C=o.symbolSizeSelected;isNaN(C)&&(C=o.symbolSize),(isNaN(C)||C>50||C<0)&&(C=s.symbolSize),(isNaN(C)||C>50||C<0)&&(C=8),(this.showToolTips||this.enableCrosshairs)&&(this._pointMarker={type:g,x:t,y:e,gidx:r,sidx:i,iidx:u},this._pointMarker.element=this._drawSymbol(g,t,e,b.fillColorSymbolSelected,w.opacity,b.lineColorSymbolSelected,w.opacity,w.strokeSymbol,w.dashStyle,C),this._installHandlers(this._pointMarker.element,"pointMarker",r,i,u)),this._startTooltipTimer(r,this._selected.series,u)}}},_drawSymbol:function(t,e,r,n,i,s,o,a,l,h){var u,c=h||6,d=c/2;switch(t){case"none":return;case"circle":u=this.renderer.circle(e,r,c/2);break;case"square":u=this.renderer.rect(e-(d=(c-=1)/2),r-d,c,c);break;case"diamond":u=this.renderer.path("M "+(e-d)+","+r+" L"+e+","+(r-d)+" L"+(e+d)+","+r+" L"+e+","+(r+d)+" Z");break;case"triangle_up":case"triangle":u=this.renderer.path("M "+(e-d)+","+(r+d)+" L "+(e+d)+","+(r+d)+" L "+e+","+(r-d)+" Z");break;case"triangle_down":u=this.renderer.path("M "+(e-d)+","+(r-d)+" L "+e+","+(r+d)+" L "+(e+d)+","+(r-d)+" Z");break;case"triangle_left":u=this.renderer.path("M "+(e-d)+","+r+" L "+(e+d)+","+(r+d)+" L "+(e+d)+","+(r-d)+" Z");break;case"triangle_right":u=this.renderer.path("M "+(e-d)+","+(r-d)+" L "+(e-d)+","+(r+d)+" L "+(e+d)+","+r+" Z");break;default:u=this.renderer.circle(e,r,c)}return this.renderer.attr(u,{fill:n,"fill-opacity":i,stroke:s,"stroke-width":a,"stroke-opacity":o,"stroke-dasharray":l||""}),"circle"!=t&&(this.renderer.attr(u,{r:c/2}),"square"!=t&&this.renderer.attr(u,{x:e,y:r})),u},_getSymbol:function(t,e){var r,n=["circle","square","diamond","triangle_up","triangle_down","triangle_left","triangle_right"],i=this.seriesGroups[t],s=i.series[e];return null!=s.symbolType&&(r=s.symbolType),null==r&&(r=i.symbolType),"default"==r?n[e%n.length]:null!=r?r:"none"},_startTooltipTimer:function(t,e,r,n,i,s,o){this._cancelTooltipTimer();var a=this,l=this.toolTipShowDelay||this.toolTipDelay;(isNaN(l)||l>1e4||l<0)&&(l=500),(this._ttEl||1==this.enableCrosshairs&&0==this.showToolTips)&&(l=0),isNaN(s)||(l=s),clearTimeout(this._tttimerHide),isNaN(n)&&(n=a._mouseX),isNaN(i)&&(i=a._mouseY-3),0==l&&a._showToolTip(n,i,t,e,r),this._tttimer=setTimeout((function(){0!=l&&a._showToolTip(n,i,t,e,r);var s=a.toolTipHideDelay;isNaN(o)||(s=o),isNaN(s)&&(s=4e3),a._tttimerHide=setTimeout((function(){a._hideToolTip(),a._unselect()}),s)}),l)},_cancelTooltipTimer:function(){clearTimeout(this._tttimer)},_getGroupGradientType:function(t){var e=this.seriesGroups[t];return-1!=e.type.indexOf("area")?"horizontal"==e.orientation?"horizontalLinearGradient":"verticalLinearGradient":this._isColumnType(e.type)||-1!=e.type.indexOf("candle")?e.polar?"radialGradient":"horizontal"==e.orientation?"verticalLinearGradient":"horizontalLinearGradient":-1!=e.type.indexOf("scatter")||-1!=e.type.indexOf("bubble")||this._isPieGroup(t)?"radialGradient":void 0},_select:function(t,e,r,n,i,s){if(this._selected){if(this._selected.item==i&&this._selected.series==n&&this._selected.group==r)return;this._unselect()}var o=this.seriesGroups[r],a=o.series[n];if(0!=o.enableSelection&&0!=a.enableSelection){var l=-1!=o.type.indexOf("line")&&-1==o.type.indexOf("area");this._selected={element:t,type:e,group:r,series:n,item:i,iidxBase:s,isLineType:l,linesUnselectMode:a.linesUnselectMode||o.linesUnselectMode};var h=this._getColors(r,n,s||i,this._getGroupGradientType(r)),u=h.fillColorSelected;l&&(u="none");var c=this._getSerieSettings(r,n),d="symbol"==e?h.lineColorSymbolSelected:h.lineColorSelected;u="symbol"==e?h.fillColorSymbolSelected:u;var f="symbol"==e?1:c.stroke;this.renderer.getAttr(t,"fill")==h.fillColorAlt&&(u=h.fillColorAltSelected),this.renderer.attr(t,{stroke:d,fill:u,"stroke-width":f}),-1==o.type.indexOf("pie")&&-1==o.type.indexOf("donut")||this._applyPieSelect(),this._raiseItemEvent("mouseover",o,a,i)}},_applyPieSelect:function(){var t=this;t._createAnimationGroup("animPieSlice");var e=this._selected;if(e){var r=this.getItemCoord(e.group,e.series,e.item);if(r){var n=this._getRenderInfo(e.group,e.series,e.item);this._enqueueAnimation("animPieSlice",void 0,void 0,300,(function(r,n,i){var s=n.coord,o=s.selectedRadiusChange*i,a=t.renderer.pieSlicePath(s.center.x,s.center.y,0==s.innerRadius?0:s.innerRadius+o,s.outerRadius+o,s.fromAngle,s.toAngle,s.centerOffset);t.renderer.attr(n.element.element,{d:a}),t._showPieLabel(e.group,e.series,e.item,void 0,o)}),{element:n,coord:r}),t._startAnimation("animPieSlice")}}},_applyPieUnselect:function(){this._stopAnimations();var t=this._selected;if(t){var e=this.getItemCoord(t.group,t.series,t.item);if(e&&e.center){var r=this.renderer.pieSlicePath(e.center.x,e.center.y,e.innerRadius,e.outerRadius,e.fromAngle,e.toAngle,e.centerOffset);this.renderer.attr(t.element,{d:r}),this._showPieLabel(t.group,t.series,t.item,void 0,0)}}},_unselect:function(){var t=this;if(t._selected){var e=t._selected.group,r=t._selected.series,n=t._selected.item,i=t._selected.iidxBase,s=t._selected.type,o=t.seriesGroups[e],a=o.series[r],l=-1!=o.type.indexOf("line")&&-1==o.type.indexOf("area"),h=t._getColors(e,r,i||n,t._getGroupGradientType(e)),u=h.fillColor;l&&(u="none");var c=t._getSerieSettings(e,r),d="symbol"==s?h.lineColorSymbol:h.lineColor;u="symbol"==s?h.fillColorSymbol:u,this.renderer.getAttr(t._selected.element,"fill")==h.fillColorAltSelected&&(u=h.fillColorAlt),t.renderer.attr(t._selected.element,{stroke:d,fill:u,"stroke-width":"symbol"==s?1:c.stroke}),-1==o.type.indexOf("pie")&&-1==o.type.indexOf("donut")||this._applyPieUnselect(),t._selected=void 0,isNaN(n)||t._raiseItemEvent("mouseout",o,a,n)}t._pointMarker&&(t._pointMarker.element&&(t.renderer.removeElement(t._pointMarker.element),t._pointMarker.element=void 0),t._pointMarker=void 0,t._hideCrosshairs())},_raiseItemEvent:function(t,e,r,i){for(var s=r[t]||e[t],o=0;o<this.seriesGroups.length&&this.seriesGroups[o]!=e;o++);if(o!=this.seriesGroups.length){var a={event:t,seriesGroup:e,serie:r,elementIndex:i,elementValue:this._getDataValue(i,r.dataField,o)};s&&n.isFunction(s)&&s(a),this._raiseEvent(t,a)}},_raiseEvent:function(t,e){var r=new n.Event(t);return r.owner=this,e.event=t,r.args=e,this.host.trigger(r)},_calcInterval:function(t,e,r){var n=Math.abs(e-t)/r,i=.1,s=[1,2,3,4,5,10,15,20,25,50,100];n<1&&(s=[.5,.25,.125,.1],i=10);var o=0;do{o=0,n>=1?i*=10:i/=10;for(var a=1;a<s.length&&Math.abs(s[o]*i-n)>Math.abs(s[a]*i-n);a++)o=a}while(o==s.length-1);return s[o]*i},_renderDataClone:function(){if(this._renderData&&!this._isToggleRefresh){var t=this._elementRenderInfo=[];if(!this._isSelectorRefresh)for(var e=0;e<this._renderData.length;e++){for(this._getXAxis(e);t.length<=e;)t.push({});var r=t[e],n=this._renderData[e];if(n.offsets){if(n.valueAxis)for(var i in r.valueAxis={itemOffsets:{}},n.valueAxis.itemOffsets)r.valueAxis.itemOffsets[i]=n.valueAxis.itemOffsets[i];if(n.xAxis)for(var i in r.xAxis={itemOffsets:{}},n.xAxis.itemOffsets)r.xAxis.itemOffsets[i]=n.xAxis.itemOffsets[i];r.series=[];for(var s=r.series,o=this._isPieGroup(e),a=0;a<n.offsets.length;a++){s.push({});for(var l=0;l<n.offsets[a].length;l++)if(o){var h=n.offsets[a][l];s[a][h.displayValue]={value:h.value,x:h.x,y:h.y,fromAngle:h.fromAngle,toAngle:h.toAngle}}else s[a][n.xoffsets.xvalues[l]]={value:n.offsets[a][l].value,valueRadius:n.offsets[a][l].valueRadius,xoffset:n.xoffsets.data[l],from:n.offsets[a][l].from,to:n.offsets[a][l].to}}}}}},getPolarDataPointOffset:function(t,e,r){var n=this._renderData[r];if(!n)return{x:NaN,y:NaN};var i=this.getValueAxisDataPointOffset(e,r),s=this.getXAxisDataPointOffset(t,r),o=this._toPolarCoord(n.polarCoords,n.xAxis.rect,s,i);return{x:o.x,y:o.y}},_getDataPointOffsetDiff:function(t,e,r,n,i,s,o){var a=this._getDataPointOffset(t,r,n,i,s,o),l=this._getDataPointOffset(e,r,n,i,s,o);return Math.abs(a-l)},_getXAxisRenderData:function(t){if(!(t>=this._renderData.length)){var e=this._renderData[t].xAxis;if(e){if(null==this.seriesGroups[t].xAxis){for(var r=0;r<=t&&null!=this.seriesGroups[r].xAxis;r++);e=this._renderData[r].xAxis}return e}}},getXAxisDataPointOffset:function(t,e){var r=this.seriesGroups[e];if(isNaN(t))return NaN;var n=this._getXAxisRenderData(e);if(!n)return NaN;var i=n.data.axisStats,s=i.min.valueOf(),o=i.max.valueOf(),a=o-s;if(0==a&&(a=1),t.valueOf()>o||t.valueOf()<s)return NaN;var l=this._getXAxis(e),h="horizontal"==r.orientation?"height":"width",u="horizontal"==r.orientation?"y":"x",c=(t.valueOf()-s)/a,d=n.rect[h]-n.data.padding.left-n.data.padding.right;return(r.polar||r.spider)&&this._renderData[e].polarCoords.isClosedCircle&&(d=n.data.axisSize),this._plotRect[u]+n.data.padding.left+d*(l.flip?1-c:c)},getValueAxisDataPointOffset:function(t,e){var r=this._getValueAxis(e);if(!r)return NaN;var n=this._renderData[e];return n?this._getDataPointOffset(t,n.gbase,n.logBase,n.scale,n.baseOffset,1==r.flip):NaN},_getDataPointOffset:function(t,e,r,i,s,o){var a;return isNaN(t)&&(t=e),a=isNaN(r)?(t-e)*i:(n.jqx.log(t,r)-n.jqx.log(e,r))*i,this._isVML&&(a=Math.round(a)),o?s+a:s-a},_calcGroupOffsets:function(t,e){for(var r=this.seriesGroups[t];this._renderData.length<t+1;)this._renderData.push({});if(null!=this._renderData[t]&&null!=this._renderData[t].offsets)return this._renderData[t];if(this._isPieGroup(t))return this._calcPieSeriesGroupOffsets(t,e);var i=this._getValueAxis(t);if(!i||!r.series||0==r.series.length)return this._renderData[t];var s=1==i.flip,o=1==i.logarithmicScale,a=i.logarithmicScaleBase||10,l=[],h=-1!=r.type.indexOf("stacked"),u=h&&-1!=r.type.indexOf("100"),c=-1!=r.type.indexOf("range"),d=this._isColumnType(r.type),f=-1!=r.type.indexOf("waterfall"),p=this._getDataLen(t),g=r.baselineValue||i.baselineValue||0;u&&(g=0);var m=this._stats.seriesGroups[t];if(m&&m.isValid){var v=m.hasStackValueReversal;if(v&&(g=0),f&&h){if(v)return;g=m.base}g>m.max&&(g=m.max),g<m.min&&(g=m.min);var y=u||o?m.maxRange:m.max-m.min,x=m.min,_=m.max,b=e.height/(o?m.intervals:y),w=0;w=u?x*_<0?-((y/=2)+g)*b:-g*b:-(g-x)*b,s?w=e.y-w:w+=e.y+e.height;var C,S=[],A=[],k=[];o&&(C=n.jqx.log(_,a)-n.jqx.log(g,a),h&&(C=m.intervals,g=u?0:x),s||(w=e.y+C/m.intervals*e.height)),w=n.jqx._ptrnd(w);var T=x*_<0?e.height/2:e.height,j=[],q=[],N=h&&(d||o),E=[];l=new Array(r.series.length);for(var M=0;M<r.series.length;M++)l[M]=new Array(p);for(var O=0;O<p;O++)for(!f&&h&&(q=[]),M=0;M<r.series.length;M++){!h&&o&&(j=[]);var I=r.series[M],D=I.dataField,P=I.dataFieldFrom,R=I.dataFieldTo,F=I.radiusDataField||I.sizeDataField;l[M][O]={};var L=this._isSerieVisible(t,M);if(-1==r.type.indexOf("candle")&&-1==r.type.indexOf("ohlc")){if(h)for(;q.length<=O;)q.push(0);var H=NaN;c&&(H=this._getDataValueAsNumber(O,P,t),isNaN(H)&&(H=g));var V=NaN;V=this._getDataValueAsNumber(O,c?R:D,t);var B=this._getDataValueAsNumber(O,F,t);if(h&&(q[O]+=L?V:0),L||(V=NaN),isNaN(V)||o&&V<=0)l[M][O]={from:void 0,to:void 0};else{var z;h&&(N?z=V>=g?S:A:V=q[O]);var G=b*(V-g);if(c&&(G=b*(V-H)),h&&N&&(E[O]?G=b*V:(E[O]=!0,G=b*(V-g))),o){for(;j.length<=O;)j.push({p:{value:0,height:0},n:{value:0,height:0}});var U=c||c?H:g,W=V>U?j[O].p:j[O].n;W.value+=V,u?G=(n.jqx.log(V=W.value/(m.psums[O]+m.nsums[O])*100,a)-m.minPow)*b:(G=n.jqx.log(W.value,a)-n.jqx.log(U,a),G*=b),W.height+=G-=W.height}var $,X=w;if(c)$=o?(n.jqx.log(H,a)-n.jqx.log(g,a))*b:(H-g)*b,X+=s?$:-$;if(h){if(u&&!o){var Y=m.psums[O]-m.nsums[O];V>g?(G=m.psums[O]/Y*T,0!=m.psums[O]&&(G*=V/m.psums[O])):(G=m.nsums[O]/Y*T,0!=m.nsums[O]&&(G*=V/m.nsums[O]))}N&&(isNaN(z[O])&&(z[O]=X),X=z[O])}isNaN(k[O])&&(k[O]=0);var Q=k[O],J=G=Math.abs(G);if(G>=1){var Z=this._isVML?Math.round(G):n.jqx._ptrnd(G)-1;G=Math.abs(G-Z)>.5?Math.round(G):Z}if(Q+=G-J,h||(Q=0),Math.abs(Q)>.5&&(Q>0?(G-=1,Q-=1):(G+=1,Q+=1)),k[O]=Q,M==r.series.length-1&&u){for(var K=0,tt=0;tt<M;tt++)K+=Math.abs(l[tt][O].to-l[tt][O].from);if((K+=G)<T)if(G>.5)G=n.jqx._ptrnd(G+T-K);else for(tt=M-1;tt>=0;){if(Math.abs(l[tt][O].to-l[tt][O].from)>1){l[tt][O].from>l[tt][O].to&&(l[tt][O].from+=T-K);break}tt--}}s&&(G*=-1);var et=V<g;c&&(et=H>V);var rt=isNaN(H)?V:{from:H,to:V};et?(N&&(z[O]+=G),l[M][O]={from:X,to:X+G,value:rt,valueRadius:B}):(N&&(z[O]-=G),l[M][O]={from:X,to:X-G,value:rt,valueRadius:B})}}else{var nt=["Open","Close","High","Low"];for(var it in nt){var st="dataField"+nt[it];I[st]&&(l[M][O][nt[it]]=this._getDataPointOffset(this._getDataValueAsNumber(O,I[st],t),g,o?a:NaN,b,w,s))}}}var ot=this._renderData[t];return ot.baseOffset=w,ot.gbase=g,ot.logBase=o?a:NaN,ot.scale=b,ot.offsets=f?this._applyWaterfall(l,p,t,w,g,o?a:NaN,b,s,h):l,ot.xoffsets=this._calculateXOffsets(t,e.width),this._renderData[t]}},_isPercent:function(t){return"string"==typeof t&&t.length>0&&t.indexOf("%")==t.length-1},_calcPieSeriesGroupOffsets:function(t,e){for(var r=this,i=this._getDataLen(t),s=this.seriesGroups[t],o=this._renderData[t]={},a=o.offsets=[],l=0;l<s.series.length;l++){var h=s.series[l],u=this._get([h.minAngle,h.startAngle]);(isNaN(u)||u<0||u>360)&&(u=0);var c=this._get([h.maxAngle,h.endAngle]);(isNaN(c)||c<0||c>360)&&(c=360);var d=c-u,f=h.initialAngle||0;f<u&&(f=u),f>c&&(f=c);var p=h.centerOffset||0,g=n.jqx.getNum([h.offsetX,s.offsetX,e.width/2]),m=n.jqx.getNum([h.offsetY,s.offsetY,e.height/2]),v=Math.min(e.width,e.height)/2,y=f,x=h.radius;r._isPercent(x)&&(x=parseFloat(x)/100*v),isNaN(x)&&(x=.4*v);var _=h.innerRadius;r._isPercent(_)&&(_=parseFloat(_)/100*v),(isNaN(_)||_>=x)&&(_=0);var b=h.selectedRadiusChange;r._isPercent(b)&&(b=parseFloat(b)/100*(x-_)),isNaN(b)&&(b=.1*(x-_)),a.push([]);for(var w=0,C=0,S=0;S<i;S++){var A=this._getDataValueAsNumber(S,h.dataField,t);isNaN(A)||(this._isSerieVisible(t,l,S)||1==h.hiddenPointsDisplay)&&(A>0?w+=A:C+=A)}var k=w-C;for(0==k&&(k=1),S=0;S<i;S++)if(A=this._getDataValueAsNumber(S,h.dataField,t),isNaN(A))a[l].push({});else{var T=this._getDataValue(S,h.displayText||h.displayField,t);null==T&&(T=S);var j=0,q=this._isSerieVisible(t,l,S);(q||1==h.hiddenPointsDisplay)&&(j=Math.abs(A)/k*d);var N=e.x+g,E=e.y+m,M=p;n.isFunction(p)&&(M=p({seriesIndex:l,seriesGroupIndex:t,itemIndex:S})),isNaN(M)&&(M=0),a[l].push({key:t+"_"+l+"_"+S,value:A,displayValue:T,x:N,y:E,fromAngle:y,toAngle:y+j,centerOffset:M,innerRadius:_,outerRadius:x,selectedRadiusChange:b,visible:q}),y+=j}}return o},_isPointSeriesOnly:function(){for(var t=0;t<this.seriesGroups.length;t++){var e=this.seriesGroups[t];if(-1==e.type.indexOf("line")&&-1==e.type.indexOf("area")&&-1==e.type.indexOf("scatter")&&-1==e.type.indexOf("bubble"))return!1}return!0},_hasColumnSeries:function(){for(var t=["column","ohlc","candlestick","waterfall"],e=0;e<this.seriesGroups.length;e++){var r=this.seriesGroups[e];for(var n in t)if(-1!=r.type.indexOf(t[n]))return!0}return!1},_alignValuesWithTicks:function(t){var e=this._isPointSeriesOnly(),r=this.seriesGroups[t],n=this._getXAxis(t),i=null==n.valuesOnTicks?e:0!=n.valuesOnTicks;return n.logarithmicScale&&(i=!0),null==t?i:null==r.valuesOnTicks?i:r.valuesOnTicks},_getYearsDiff:function(t,e){return e.getFullYear()-t.getFullYear()},_getMonthsDiff:function(t,e){return 12*(e.getFullYear()-t.getFullYear())+e.getMonth()-t.getMonth()},_getDateDiff:function(t,e,r,i){var s=0;switch("year"!=r&&"month"!=r&&(s=e.valueOf()-t.valueOf()),r){case"year":s=this._getYearsDiff(t,e);break;case"month":s=this._getMonthsDiff(t,e);break;case"day":s/=864e5;break;case"hour":s/=36e5;break;case"minute":s/=6e4;break;case"second":s/=1e3}return"year"!=r&&"month"!=r&&0!=i&&(s=n.jqx._rnd(s,1,!0)),s},_getBestDTUnit:function(t,e,r,n,i){var s,o=e.valueOf()-t.valueOf();s=o<1e3?"second":o<36e5?"minute":o<864e5?"hour":o<2592e6?"day":o<31104e6?"month":"year";for(var a=[{key:"year",cnt:o/31536e6},{key:"month",cnt:o/2592e6},{key:"day",cnt:o/864e5},{key:"hour",cnt:o/36e5},{key:"minute",cnt:o/6e4},{key:"second",cnt:o/1e3},{key:"millisecond",cnt:o}],l=-1,h=0;h<a.length;h++)if(a[h].key==s){l=h;break}for(var u=-1,c=-1;l<a.length&&!(a[l].cnt/100>n);l++){var d=this._estAxisInterval(t,e,r,n,a[l].key,i),f=this._getDTIntCnt(t,e,d,a[l].key);(-1==u||u<f)&&(u=f,c=l)}return a[c].key},_getXAxisStats:function(t,e,r){var i=this._getDataLen(t),s="date"==e.type||"time"==e.type;if(s&&!this._autoDateFormats){this._autoDateFormats||(this._autoDateFormats=[]);var o=this._testXAxisDateFormat();o&&this._autoDateFormats.push(o)}var a=s?this._castAsDate(e.minValue,e.dateFormat):this._castAsNumber(e.minValue),l=s?this._castAsDate(e.maxValue,e.dateFormat):this._castAsNumber(e.maxValue);if(this._selectorRange&&this._selectorRange[t]){var h=this._selectorRange[t].min;isNaN(h)||(a=s?this._castAsDate(h,e.dateFormat):this._castAsNumber(h));var u=this._selectorRange[t].max;isNaN(u)||(l=s?this._castAsDate(u,e.dateFormat):this._castAsNumber(u))}for(var c,d,f=a,p=l,g=null==e.type||"auto"==e.type,m=g||"basic"==e.type,v=0,y=0,x=0;x<i&&e.dataField;x++){var _=this._getDataValue(x,e.dataField,t);_=s?this._castAsDate(_,e.dateFormat):this._castAsNumber(_),isNaN(_)||(s?v++:y++,(isNaN(c)||_<c)&&(c=_),(isNaN(d)||_>=d)&&(d=_))}g&&(!s&&y==i||s&&v==i)&&(m=!1),m&&(c=0,d=Math.max(0,i-1)),isNaN(f)&&(f=c),isNaN(p)&&(p=d),s?(this._isDate(f)||(f=this._isDate(p)?p:new Date),this._isDate(p)||(p=this._isDate(f)?f:new Date)):(isNaN(f)&&(f=0),isNaN(p)&&(p=m?Math.max(0,i-1):f)),null==c&&(c=f),null==d&&(d=p);var b=e.rangeSelector;if(b){var w=b.minValue||f;w&&s&&(w=this._castAsDate(w,b.dateFormat||e.dateFormat));var C=b.maxValue||p;C&&s&&(C=this._castAsDate(C,b.dateFormat||e.rangeSelector)),f<w&&(f=w),p<w&&(p=C),f>C&&(f=w),p>C&&(p=C)}var S,A,k=e.unitInterval;s&&((S=e.baseUnit)||(S=this._getBestDTUnit(f,p,t,r)),A="hour"==S||"minute"==S||"second"==S||"millisecond"==S);var T=1==e.logarithmicScale,j=e.logarithmicScaleBase;(isNaN(j)||j<=1)&&(j=10),k=e.unitInterval,T?k=1:(isNaN(k)||k<=0)&&(k=this._estAxisInterval(f,p,t,r,S));var q={min:f,max:p},N=this.seriesGroups[t];if(T){f||(f=1,p&&f>p&&(f=p)),p||(p=f),q={min:f,max:p};var E=n.jqx._rnd(n.jqx.log(f,j),1,!1),M=n.jqx._rnd(n.jqx.log(p,j),1,!0);p=Math.pow(j,M),f=Math.pow(j,E)}else s||!N.polar&&!N.spider||(f=n.jqx._rnd(f,k,!1),p=n.jqx._rnd(p,k,!0));return{min:f,max:p,logAxis:{enabled:T,base:j,minPow:E,maxPow:M},dsRange:{min:c,max:d},filterRange:q,useIndeces:m,isDateTime:s,isTimeUnit:A,dateTimeUnit:S,interval:k}},_getDefaultDTFormatFn:function(t){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return"year"==t||"month"==t||"day"==t?function(t){return t.getDate()+"-"+e[t.getMonth()]+"-"+t.getFullYear()}:function(t){return t.getDate()+"-"+e[t.getMonth()]+"-"+t.getFullYear()+"<br>"+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()}},_getDTIntCnt:function(t,e,r,n){var i=0,s=new Date(t),o=new Date(e);if(o=o.valueOf(),r<=0)return 1;for(;s.valueOf()<o;)"millisecond"==n?s=new Date(s.valueOf()+r):"second"==n?s=new Date(s.valueOf()+1e3*r):"minute"==n?s=new Date(s.valueOf()+6e4*r):"hour"==n?s=new Date(s.valueOf()+6e4*r*24):"day"==n?s.setDate(s.getDate()+r):"month"==n?s.setMonth(s.getMonth()+r):"year"==n&&s.setFullYear(s.getFullYear()+r),i++;return i},_estAxisInterval:function(t,e,r,n,i,s){if(isNaN(t)||isNaN(e))return NaN;var o=[1,2,5,10,15,20,50,100,200,500],a=0,l=n/(!isNaN(s)&&s>0?s:50);if(this._renderData&&this._renderData.length>r&&this._renderData[r].xAxis&&!isNaN(this._renderData[r].xAxis.avgWidth)){var h=Math.max(1,this._renderData[r].xAxis.avgWidth);0!=h&&isNaN(s)&&(l=.9*n/h)}if(l<=1)return Math.abs(e-t);for(;;){var u=a>=o.length?Math.pow(10,3+a-o.length):o[a];if((this._isDate(t)&&this._isDate(e)?this._getDTIntCnt(t,e,u,i):(e-t)/u)<=l)break;a++}var c=this.seriesGroups[r];return(c.spider||c.polar)&&2*u>e-t&&(u=e-t),u},_getPaddingSize:function(t,e,r,n,i,s,o){var a=t.min,l=t.max;t.logAxis.enabled&&(a=t.logAxis.minPow,l=t.logAxis.maxPow);var h=t.interval,u=t.dateTimeUnit;if(i){var c=n/Math.max(1,l-a+h)*h;return s?{left:0,right:c}:r?{left:0,right:0}:{left:c/2,right:c/2}}if(r&&!o)return{left:0,right:0};if(this._isDate(a)&&this._isDate(l)){var d,f=this._getDTIntCnt(a,l,Math.min(h,l-a),u);return{left:(d=n/Math.max(2,f))/2,right:d/2}}if(1==(f=Math.max(1,l-a))){var p=n/4;return{left:p,right:p}}return{left:(d=n/(f+1))/2,right:d/2}},_calculateXOffsets:function(t,e){var r=this.seriesGroups[t],i=this._getXAxis(t),s=[],o=[],a=this._getDataLen(t),l=this._getXAxisStats(t,i,e),h=l.min,u=l.max,c=l.isDateTime,d=l.isTimeUnit,f=this._hasColumnSeries(),p=r.polar||r.spider,g=this._get([r.startAngle,r.minAngle,0]),m=this._get([r.endAngle,r.maxAngle,360]),v=p&&!(Math.abs(Math.abs(m-g)-360)>1e-4),y=this._alignValuesWithTicks(t),x=this._getPaddingSize(l,i,y,e,p,v,f),_=u-h,b=l.filterRange;0==_&&(_=1);var w=e-x.left-x.right;p&&y&&!v&&(x.left=x.right=0);for(var C=-1,S=-1,A=0;A<a;A++){var k=void 0===i.dataField?A:this._getDataValue(A,i.dataField,t);if(l.useIndeces){if(A<b.min||A>b.max){s.push(NaN),o.push(void 0);continue}if(j=x.left+(A-h)/_*w,1==l.logAxis.enabled){var T=l.logAxis.base;j=this._jqxPlot.scale(k,{min:h.valueOf(),max:u.valueOf(),type:"logarithmic",base:T},{min:0,max:w,flip:!1})}s.push(n.jqx._ptrnd(j)),o.push(k),-1==C&&(C=A),(-1==S||S<A)&&(S=A)}else if(k=c?this._castAsDate(k,i.dateFormat):this._castAsNumber(k),isNaN(k)||k<b.min||k>b.max)s.push(NaN),o.push(void 0);else{var j=0;1==l.logAxis.enabled?(T=l.logAxis.base,j=this._jqxPlot.scale(k,{min:h.valueOf(),max:u.valueOf(),type:"logarithmic",base:T},{min:0,max:w,flip:!1})):j=!c||c&&d?(k-h)*w/_:(k.valueOf()-h.valueOf())/(u.valueOf()-h.valueOf())*w,j=n.jqx._ptrnd(x.left+j),s.push(j),o.push(k),-1==C&&(C=A),(-1==S||S<A)&&(S=A)}}if(1==i.flip)for(A=0;A<s.length;A++)isNaN(s[A])||(s[A]=e-s[A]);(d||c)&&(_=this._getDateDiff(h,u,i.baseUnit),_=n.jqx._rnd(_,1,!1));var q=Math.max(1,_),N=w/q;return C==S&&1==q&&(s[C]=x.left+w/2),{axisStats:l,data:s,xvalues:o,first:C,last:S,length:-1==S?0:S-C+1,itemWidth:N,intervalWidth:N*l.interval,rangeLength:_,useIndeces:l.useIndeces,padding:x,axisSize:w}},_getXAxis:function(t){return null==t||this.seriesGroups.length<=t?this.categoryAxis||this.xAxis:this.seriesGroups[t].categoryAxis||this.seriesGroups[t].xAxis||this.categoryAxis||this.xAxis},_isGreyScale:function(t,e){var r=this.seriesGroups[t],n=r.series[e];return 1==n.greyScale||0!=n.greyScale&&(1==r.greyScale||0!=r.greyScale&&1==this.greyScale)},_getSeriesColors:function(t,e,r){var i=this._getSeriesColorsInternal(t,e,r);if(this._isGreyScale(t,e))for(var s in i)i[s]=n.jqx.toGreyScale(i[s]);return i},_getColorFromScheme:function(t,e,r){var n="#000000",i=this.seriesGroups[t],s=i.series[e];if(this._isPieGroup(t)){var o=this._getDataLen(t);n=this._getItemColorFromScheme(s.colorScheme||i.colorScheme||this.colorScheme,e*o+r,t,e)}else{for(var a=0,l=0;l<=t;l++)for(var h in this.seriesGroups[l].series){if(l==t&&h==e)break;a++}var u=this.colorScheme;if(i.colorScheme&&(u=i.colorScheme),null!=u&&""!=u||(u=this.colorSchemes[0].name),!u)return n;for(l=0;l<this.colorSchemes.length;l++){var c=this.colorSchemes[l];if(c.name==u){for(;a>c.colors.length;)a-=c.colors.length,++l>=this.colorSchemes.length&&(l=0),c=this.colorSchemes[l];n=c.colors[a%c.colors.length]}}}return n},_createColorsCache:function(){this._colorsCache={get:function(t){if(this._store[t])return this._store[t]},set:function(t,e){this._size<1e4&&(this._store[t]=e,this._size++)},clear:function(){this._store={},this._size=0},_size:0,_store:{}}},_getSeriesColorsInternal:function(t,e,r){var i=this.seriesGroups[t],s=i.series[e];n.isFunction(s.colorFunction)||"pie"==i.type||"donut"==i.type||(r=NaN);var o=t+"_"+e+"_"+(isNaN(r)?"NaN":r);if(this._colorsCache.get(o))return this._colorsCache.get(o);var a,l={lineColor:"#222222",lineColorSelected:"#151515",lineColorSymbol:"#222222",lineColorSymbolSelected:"#151515",fillColor:"#222222",fillColorSelected:"#333333",fillColorSymbol:"#222222",fillColorSymbolSelected:"#333333",fillColorAlt:"#222222",fillColorAltSelected:"#333333"};if(n.isFunction(s.colorFunction)){var h=isNaN(r)?NaN:this._getDataValue(r,s.dataField,t);if(-1==i.type.indexOf("range")||isNaN(r)||(h={from:this._getDataValue(r,s.dataFieldFrom,t),to:this._getDataValue(r,s.dataFieldTo,t)}),"object"==typeof(a=s.colorFunction(h,r,s,i)))for(var u in a)l[u]=a[u];else l.fillColor=a}else{for(var u in l)s[u]&&(l[u]=s[u]);s.fillColor||s.color?s.fillColor=s.fillColor||s.color:l.fillColor=this._getColorFromScheme(t,e,r)}var c={fillColor:{baseColor:"fillColor",adjust:1},fillColorSelected:{baseColor:"fillColor",adjust:1.1},fillColorSymbol:{baseColor:"fillColor",adjust:1},fillColorSymbolSelected:{baseColor:"fillColorSymbol",adjust:2},fillColorAlt:{baseColor:"fillColor",adjust:4},fillColorAltSelected:{baseColor:"fillColor",adjust:3},lineColor:{baseColor:"fillColor",adjust:.95},lineColorSelected:{baseColor:"lineColor",adjust:.95},lineColorSymbol:{baseColor:"lineColor",adjust:1},lineColorSymbolSelected:{baseColor:"lineColorSelected",adjust:1}};for(var u in l)"object"==typeof a&&a[u]||s[u]&&(l[u]=s[u]);for(var u in l)"object"==typeof a&&a[u]||s[u]||(l[u]=n.jqx.adjustColor(l[c[u].baseColor],c[u].adjust));return this._colorsCache.set(o,l),l},_getItemColorFromScheme:function(t,e,r,i){null!=t&&""!=t||(t=this.colorSchemes[0].name);for(var s=0;s<this.colorSchemes.length&&t!=this.colorSchemes[s].name;s++);for(var o=0;o<=e;){s==this.colorSchemes.length&&(s=0);var a=this.colorSchemes[s].colors.length;if(!(o+a<=e)){var l=this.colorSchemes[s].colors[e-o];return this._isGreyScale(r,i)&&0==l.indexOf("#")&&(l=n.jqx.toGreyScale(l)),l}o+=a,s++}},getColorScheme:function(t){for(var e=0;e<this.colorSchemes.length;e++)if(this.colorSchemes[e].name==t)return this.colorSchemes[e].colors},addColorScheme:function(t,e){for(var r=0;r<this.colorSchemes.length;r++)if(this.colorSchemes[r].name==t)return void(this.colorSchemes[r].colors=e);this.colorSchemes.push({name:t,colors:e})},removeColorScheme:function(t){for(var e=0;e<this.colorSchemes.length;e++)if(this.colorSchemes[e].name==t){this.colorSchemes.splice(e,1);break}},colorSchemes:[{name:"scheme01",colors:["#307DD7","#AA4643","#89A54E","#71588F","#4198AF"]},{name:"scheme02",colors:["#7FD13B","#EA157A","#FEB80A","#00ADDC","#738AC8"]},{name:"scheme03",colors:["#E8601A","#FF9639","#F5BD6A","#599994","#115D6E"]},{name:"scheme04",colors:["#D02841","#FF7C41","#FFC051","#5B5F4D","#364651"]},{name:"scheme05",colors:["#25A0DA","#309B46","#8EBC00","#FF7515","#FFAE00"]},{name:"scheme06",colors:["#0A3A4A","#196674","#33A6B2","#9AC836","#D0E64B"]},{name:"scheme07",colors:["#CC6B32","#FFAB48","#FFE7AD","#A7C9AE","#888A63"]},{name:"scheme08",colors:["#3F3943","#01A2A6","#29D9C2","#BDF271","#FFFFA6"]},{name:"scheme09",colors:["#1B2B32","#37646F","#A3ABAF","#E1E7E8","#B22E2F"]},{name:"scheme10",colors:["#5A4B53","#9C3C58","#DE2B5B","#D86A41","#D2A825"]},{name:"scheme11",colors:["#993144","#FFA257","#CCA56A","#ADA072","#949681"]},{name:"scheme12",colors:["#105B63","#EEEAC5","#FFD34E","#DB9E36","#BD4932"]},{name:"scheme13",colors:["#BBEBBC","#F0EE94","#F5C465","#FA7642","#FF1E54"]},{name:"scheme14",colors:["#60573E","#F2EEAC","#BFA575","#A63841","#BFB8A3"]},{name:"scheme15",colors:["#444546","#FFBB6E","#F28D00","#D94F00","#7F203B"]},{name:"scheme16",colors:["#583C39","#674E49","#948658","#F0E99A","#564E49"]},{name:"scheme17",colors:["#142D58","#447F6E","#E1B65B","#C8782A","#9E3E17"]},{name:"scheme18",colors:["#4D2B1F","#635D61","#7992A2","#97BFD5","#BFDCF5"]},{name:"scheme19",colors:["#844341","#D5CC92","#BBA146","#897B26","#55591C"]},{name:"scheme20",colors:["#56626B","#6C9380","#C0CA55","#F07C6C","#AD5472"]},{name:"scheme21",colors:["#96003A","#FF7347","#FFBC7B","#FF4154","#642223"]},{name:"scheme22",colors:["#5D7359","#E0D697","#D6AA5C","#8C5430","#661C0E"]},{name:"scheme23",colors:["#16193B","#35478C","#4E7AC7","#7FB2F0","#ADD5F7"]},{name:"scheme24",colors:["#7B1A25","#BF5322","#9DA860","#CEA457","#B67818"]},{name:"scheme25",colors:["#0081DA","#3AAFFF","#99C900","#FFEB3D","#309B46"]},{name:"scheme26",colors:["#0069A5","#0098EE","#7BD2F6","#FFB800","#FF6800"]},{name:"scheme27",colors:["#FF6800","#A0A700","#FF8D00","#678900","#0069A5"]}],_formatValue:function(t,e,r,i,s,o){if(null==t)return"";if(this._isObject(t)&&!this._isDate(t)&&!r)return"";if(r){if(!n.isFunction(r))return t.toString();try{return r(t,o,s,i)}catch(a){return a.message}}return this._isNumber(t)?this._formatNumber(t,e):this._isDate(t)?this._formatDate(t,e):e?(e.prefix||"")+t.toString()+(e.sufix||""):t.toString()},_getFormattedValue:function(t,e,r,i,s,o){var a=this.seriesGroups[t],l=a.series[e],h="",u=i,c=s;c||(c=l.formatFunction||a.formatFunction),u||(u=l.formatSettings||a.formatSettings),!l.formatFunction&&l.formatSettings&&(c=void 0);var d={},f=0;for(var p in l)0==p.indexOf("dataField")&&(d[p.substring(9).toLowerCase()]=this._getDataValue(r,l[p],t),f++);if(0==f&&(d=this._getDataValue(r,void 0,t)),-1!=a.type.indexOf("waterfall")&&this._isSummary(t,r)&&(d=this._renderData[t].offsets[e][r].value,f=0),c&&n.isFunction(c))try{return c(1==f?d[""]:d,r,l,a)}catch(x){return x.message}if(1==f&&this._isPieGroup(t))return this._formatValue(d[""],u,c,t,e,r);if(f>0){var g=0;for(var p in d){g>0&&""!=h&&(h+="<br>");var m="dataField"+(p.length>0?p.substring(0,1).toUpperCase()+p.substring(1):""),v=l["displayText"+(p.length>0?p.substring(0,1).toUpperCase()+p.substring(1):"")]||l[m],y=d[p];null!=y&&(y=this._formatValue(y,u,c,t,e,r),h+=!0===o?y:v+": "+y,g++)}}else null!=d&&(h=this._formatValue(d,u,c,t,e,r));return h||""},_isNumberAsString:function(t){if("string"!=typeof t)return!1;t=n.trim(t);for(var e=0;e<t.length;e++){var r=t.charAt(e);if(!(r>="0"&&r<="9"||","==r||"."==r||"-"==r&&0==e||"("==r&&0==e||")"==r&&e==t.length-1))return!1}return!0},_castAsDate:function(t,e){if(t instanceof Date&&!isNaN(t))return t;if("string"==typeof t){var r;if(e&&(r=n.jqx.dataFormat.parsedate(t,e),this._isDate(r)))return r;if(this._autoDateFormats)for(var i=0;i<this._autoDateFormats.length;i++)if(r=n.jqx.dataFormat.parsedate(t,this._autoDateFormats[i]),this._isDate(r))return r;var s=this._detectDateFormat(t);return s&&(r=n.jqx.dataFormat.parsedate(t,s),this._isDate(r))?(this._autoDateFormats.push(s),r):(r=new Date(t),this._isDate(r)&&-1==t.indexOf(":")&&r.setHours(0,0,0,0),r)}},_castAsNumber:function(t){if(t instanceof Date&&!isNaN(t))return t.valueOf();if("string"==typeof t)if(this._isNumber(t))t=parseFloat(t);else if(!/[a-zA-Z]/.test(t)){var e=new Date(t);null!=e&&(t=e.valueOf())}return t},_isNumber:function(t){return"string"==typeof t&&this._isNumberAsString(t)&&(t=parseFloat(t)),"number"==typeof t&&isFinite(t)},_isDate:function(t){return t instanceof Date&&!isNaN(t.getDate())},_isBoolean:function(t){return"boolean"==typeof t},_isObject:function(t){return t&&("object"==typeof t||n.isFunction(t))||!1},_formatDate:function(t,e){var r=t.toString();return e&&(e.dateFormat&&(r=n.jqx.dataFormat.formatDate(t,e.dateFormat)),r=(e.prefix||"")+r+(e.sufix||"")),r},_formatNumber:function(t,e){if(!this._isNumber(t))return t;var r=".",n="",i=this;i.localization&&(r=i.localization.decimalSeparator||i.localization.decimalseparator||r,n=i.localization.thousandsSeparator||i.localization.thousandsseparator||n),(e=e||{}).decimalSeparator&&(r=e.decimalSeparator),e.thousandsSeparator&&(n=e.thousandsSeparator);var s=e.prefix||"",o=e.sufix||"",a=e.decimalPlaces;isNaN(a)&&(a=this._getDecimalPlaces([t],void 0,3));var l=e.negativeWithBrackets||!1,h=t<0;h&&l&&(t*=-1);var u,c=t.toString(),d=Math.pow(10,a);if(c=(Math.round(t*d)/d).toString(),isNaN(c)&&(c=""),u=c.lastIndexOf("."),a>0)for(u<0?u=(c+=r).length-1:"."!==r&&(c=c.replace(".",r));c.length-1-u<a;)c+="0";u=c.lastIndexOf(r);for(var f=c.substring(u=u>-1?u:c.length),p=0,g=u;g>0;g--,p++)p%3==0&&g!==u&&(!h||g>1||h&&l)&&(f=n+f),f=c.charAt(g-1)+f;return c=f,h&&l&&(c="("+c+")"),s+c+o},_defaultNumberFormat:{prefix:"",sufix:"",decimalSeparator:".",thousandsSeparator:",",decimalPlaces:2,negativeWithBrackets:!1},_calculateControlPoints:function(t,e){var r=t[e],n=t[e+1],i=t[e+2],s=t[e+3],o=t[e+4],a=t[e+5],l=Math.sqrt(Math.pow(i-r,2)+Math.pow(s-n,2)),h=l+Math.sqrt(Math.pow(o-i,2)+Math.pow(a-s,2));0==h&&(h=1);var u=.4*l/h,c=.4-u;return[i+u*(r-o),s+u*(n-a),i-c*(r-o),s-c*(n-a)]},_getBezierPoints:function(t){for(var e="",r=[],i=[],s=t.split(" "),o=0;o<s.length;o++){var a=s[o].split(",");r.push(parseFloat(a[0])),r.push(parseFloat(a[1])),!isNaN(r[r.length-1])&&isNaN(r[r.length-2])}var l=r.length;if(l<=1)return"";if(2==l)return"M"+n.jqx._ptrnd(r[0])+","+n.jqx._ptrnd(r[1])+" L"+n.jqx._ptrnd(r[0]+1)+","+n.jqx._ptrnd(r[1]+1)+" ";for(o=0;o<l-4;o+=2)i=i.concat(this._calculateControlPoints(r,o));for(o=2;o<l-5;o+=2)e+=" C"+n.jqx._ptrnd(i[2*o-2])+","+n.jqx._ptrnd(i[2*o-1])+" "+n.jqx._ptrnd(i[2*o])+","+n.jqx._ptrnd(i[2*o+1])+" "+n.jqx._ptrnd(r[o+2])+","+n.jqx._ptrnd(r[o+3])+" ";return e=l<=4||Math.abs(r[0]-r[2])<3||Math.abs(r[1]-r[3])<3||this._isVML?"M"+n.jqx._ptrnd(r[0])+","+n.jqx._ptrnd(r[1])+" L"+n.jqx._ptrnd(r[2])+","+n.jqx._ptrnd(r[3])+" "+e:"M"+n.jqx._ptrnd(r[0])+","+n.jqx._ptrnd(r[1])+" Q"+n.jqx._ptrnd(i[0])+","+n.jqx._ptrnd(i[1])+" "+n.jqx._ptrnd(r[2])+","+n.jqx._ptrnd(r[3])+" "+e,l>=4&&(Math.abs(r[l-2]-r[l-4])<3||Math.abs(r[l-1]-r[l-3])<3||this._isVML)?e+=" L"+n.jqx._ptrnd(r[l-2])+","+n.jqx._ptrnd(r[l-1])+" ":l>=5&&(e+=" Q"+n.jqx._ptrnd(i[2*l-10])+","+n.jqx._ptrnd(i[2*l-9])+" "+n.jqx._ptrnd(r[l-2])+","+n.jqx._ptrnd(r[l-1])+" "),e},_animTickInt:50,_createAnimationGroup:function(t){this._animGroups||(this._animGroups={}),this._animGroups[t]={animations:[],startTick:NaN}},_startAnimation:function(t){var e=(new Date).getTime();this._animGroups[t].startTick=e,this._runAnimation(),this._enableAnimTimer()},_enqueueAnimation:function(t,e,r,n,i,s,o){n<0&&(n=0),null==o&&(o="easeInOutSine"),this._animGroups[t].animations.push({key:e,properties:r,duration:n,fn:i,context:s,easing:o})},_stopAnimations:function(){clearTimeout(this._animtimer),this._animtimer=void 0,this._animGroups=void 0},_enableAnimTimer:function(){if(!this._animtimer){var t=this;this._animtimer=setTimeout((function(){t._runAnimation()}),this._animTickInt)}},_runAnimation:function(t){if(this._animGroups){var e=(new Date).getTime(),r={};for(var i in this._animGroups){for(var s=this._animGroups[i].animations,o=this._animGroups[i].startTick,a=0,l=0;l<s.length;l++){var h=s[l],u=e-o;h.duration>a&&(a=h.duration);var c=h.duration>0?u/h.duration:1,d=c;if(h.easing&&0!=h.duration&&(d=n.easing[h.easing](c,u,0,1,h.duration)),c>1&&(c=1,d=1),h.fn)h.fn(h.key,h.context,d);else{var f={};for(i=0;i<h.properties.length;i++){var p=h.properties[i];f[p.key]=1==c?p.to:d*(p.to-p.from)+p.from}this.renderer.attr(h.key,f)}}o+a>e&&(r[i]={startTick:o,animations:s})}this._animGroups=r,this.renderer instanceof n.jqx.HTML5Renderer&&this.renderer.refresh()}for(var i in this._animtimer=null,this._animGroups){this._enableAnimTimer();break}},_fixCoords:function(t,e){if("horizontal"!=this.seriesGroups[e].orientation)return t;var r=t.x;return t.x=t.y,t.y=r+this._plotRect.y-this._plotRect.x,r=t.width,t.width=t.height,t.height=r,t},getItemCoord:function(t,e,r){var n=this;if(n._isPieGroup(t)&&(!n._isSerieVisible(t,e,r)||!n._renderData||n._renderData.length<=t))return{x:NaN,y:NaN};if(!n._isSerieVisible(t,e)||!n._renderData||n._renderData.length<=t)return{x:NaN,y:NaN};var i=n.seriesGroups[t],s=i.series[e],o=n._getItemCoord(t,e,r);if(n._isPieGroup(t)){if(isNaN(o.x)||isNaN(o.y)||isNaN(o.fromAngle)||isNaN(o.toAngle))return{x:NaN,y:NaN};var a=this._plotRect,l=o.fromAngle*(Math.PI/180),h=o.toAngle*(Math.PI/180),u=a.x+o.center.x+Math.cos(l)*o.outerRadius,c=a.x+o.center.x+Math.cos(h)*o.outerRadius,d=a.y+o.center.y-Math.sin(l)*o.outerRadius,f=a.y+o.center.y-Math.sin(h)*o.outerRadius,p=Math.min(u,c),g=Math.abs(c-u);return{x:p,y:v=Math.min(d,f),width:g,height:Math.abs(f-d),center:o.center,centerOffset:o.centerOffset,innerRadius:o.innerRadius,outerRadius:o.outerRadius,selectedRadiusChange:o.selectedRadiusChange,fromAngle:o.fromAngle,toAngle:o.toAngle}}if(-1!=i.type.indexOf("column")||-1!=i.type.indexOf("waterfall")){var m=this._getColumnSerieWidthAndOffset(t,e);o.height=Math.abs(o.y.to-o.y.from),o.y=Math.min(o.y.to,o.y.from),o.x+=m.offset,o.width=m.width}else if(-1!=i.type.indexOf("ohlc")||-1!=i.type.indexOf("candlestick")){m=this._getColumnSerieWidthAndOffset(t,e);var v=o.y,y=Math.min(v.Open,v.Close,v.Low,v.High),x=Math.max(v.Open,v.Close,v.Low,v.High);o.height=Math.abs(x-y),o.y=y,o.x+=m.offset,o.width=m.width}else if(-1!=i.type.indexOf("line")||-1!=i.type.indexOf("area"))o.width=o.height=0,o.y=o.y.to;else if(-1!=i.type.indexOf("bubble")||-1!=i.type.indexOf("scatter")){o.center={x:o.x,y:o.y.to};var _=o.y.radius;"circle"!=s.symbolType&&null!=s.symbolType&&(_/=2),o.y=o.y.to,o.radius=_,o.width=2*_,o.height=2*_}if(o=this._fixCoords(o,t),i.polar||i.spider){var b=this._toPolarCoord(this._renderData[t].polarCoords,this._plotRect,o.x,o.y);o.x=b.x,o.y=b.y,o.center&&(o.center=this._toPolarCoord(this._renderData[t].polarCoords,this._plotRect,o.center.x,o.center.y))}return-1==i.type.indexOf("bubble")&&-1==i.type.indexOf("scatter")||(o.x-=_,o.y-=_),o},_getItemCoord:function(t,e,r){var n,i,s=this.seriesGroups[t];if(!s||!this._renderData)return{x:NaN,y:NaN};if(!s.series[e])return{x:NaN,y:NaN};var o=this._plotRect;if(this._isPieGroup(t)){var a=this._renderData[t].offsets[e][r];if(!a)return{x:NaN,y:NaN};var l=(a.fromAngle+a.toAngle)/2*(Math.PI/180);return{x:n=o.x+a.x+Math.cos(l)*a.outerRadius,y:i=o.y+a.y-Math.sin(l)*a.outerRadius,center:{x:a.x,y:a.y},centerOffset:a.centerOffset,innerRadius:a.innerRadius,outerRadius:a.outerRadius,selectedRadiusChange:a.selectedRadiusChange,fromAngle:a.fromAngle,toAngle:a.toAngle}}if(n=o.x+this._renderData[t].xoffsets.data[r],i=this._renderData[t].offsets[e][r],isNaN(n)||!i)return{x:NaN,y:NaN};var h={};for(var u in i)h[u]=i[u];return{x:n,y:h}},getXAxisValue:function(t,e){var r=this.seriesGroups[e];if(r){var i=this._getXAxis(e),s=this._plotRect,o=0,a=NaN,l=this._renderData[0].xoffsets.axisStats,h=0,u=0;if(r.polar||r.spider){if(isNaN(t.x)||isNaN(t.y))return NaN;var c=this._getPolarAxisCoords(e,s);if(n.jqx._ptdist(t.x,t.y,c.x,c.y)>c.r)return NaN;var d=Math.atan2(c.y-t.y,t.x-c.x);(d=Math.PI/2-d)<0&&(d=2*Math.PI+d),a=d*c.r;var f=c.startAngle+Math.PI/2,p=c.endAngle+Math.PI/2;h=f*c.r,u=p*c.r;var g=this._getPaddingSize(l,i,i.valuesOnTicks,o=(p-f)*c.r,!0,c.isClosedCircle,this._hasColumnSeries());c.isClosedCircle?(o-=g.left+g.right,u-=g.left+g.right):i.valuesOnTicks||(h+=g.left,u-=g.right)}else{if("horizontal"!=r.orientation){if(t<s.x||t>s.x+s.width)return NaN;a=t-s.x,o=s.width}else{if(t<s.y||t>s.y+s.height)return NaN;a=t-s.y,o=s.height}this._renderData[e]&&this._renderData[e].xoffsets&&(o-=(g=this._renderData[e].xoffsets.padding).left+g.right,a-=g.left),u=o}return this._jqxPlot.scale(a,{min:h,max:u},{min:l.min.valueOf(),max:l.max.valueOf(),type:l.logAxis.enabled?"logarithmic":"linear",base:l.logAxis.base,flip:i.flip})}},getValueAxisValue:function(t,e){var r=this.seriesGroups[e];if(r){var i=this._getValueAxis(e),s=this._plotRect,o=0,a=NaN;if(r.polar||r.spider){if(isNaN(t.x)||isNaN(t.y))return NaN;var l=this._getPolarAxisCoords(e,s);a=n.jqx._ptdist(t.x,t.y,l.x,l.y),a=(o=l.r)-a}else if("horizontal"==r.orientation){if(t<s.x||t>s.x+s.width)return NaN;a=t-s.x,o=s.width}else{if(t<s.y||t>s.y+s.height)return NaN;a=t-s.y,o=s.height}var h=this._stats.seriesGroups[e];return this._jqxPlot.scale(a,{min:0,max:o},{min:h.min.valueOf(),max:h.max.valueOf(),type:h.logarithmic?"logarithmic":"linear",base:h.logBase,flip:!i.flip})}},_detectDateFormat:function(t,e){var r={en_US_d:"M/d/yyyy",en_US_D:"dddd, MMMM dd, yyyy",en_US_t:"h:mm tt",en_US_T:"h:mm:ss tt",en_US_f:"dddd, MMMM dd, yyyy h:mm tt",en_US_F:"dddd, MMMM dd, yyyy h:mm:ss tt",en_US_M:"MMMM dd",en_US_Y:"yyyy MMMM",en_US_S:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",en_CA_d:"dd/MM/yyyy",en_CA_D:"MMMM-dd-yy",en_CA_f:"MMMM-dd-yy h:mm tt",en_CA_F:"MMMM-dd-yy h:mm:ss tt",ISO:"yyyy-MM-dd hh:mm:ss",ISO2:"yyyy-MM-dd HH:mm:ss",d1:"dd.MM.yyyy",d2:"dd-MM-yyyy",zone1:"yyyy-MM-ddTHH:mm:ss-HH:mm",zone2:"yyyy-MM-ddTHH:mm:ss+HH:mm",custom:"yyyy-MM-ddTHH:mm:ss.fff",custom2:"yyyy-MM-dd HH:mm:ss.fff",de_DE_d:"dd.MM.yyyy",de_DE_D:"dddd, d. MMMM yyyy",de_DE_t:"HH:mm",de_DE_T:"HH:mm:ss",de_DE_f:"dddd, d. MMMM yyyy HH:mm",de_DE_F:"dddd, d. MMMM yyyy HH:mm:ss",de_DE_M:"dd MMMM",de_DE_Y:"MMMM yyyy",fr_FR_d:"dd/MM/yyyy",fr_FR_D:"dddd d MMMM yyyy",fr_FR_t:"HH:mm",fr_FR_T:"HH:mm:ss",fr_FR_f:"dddd d MMMM yyyy HH:mm",fr_FR_F:"dddd d MMMM yyyy HH:mm:ss",fr_FR_M:"d MMMM",fr_FR_Y:"MMMM yyyy",it_IT_d:"dd/MM/yyyy",it_IT_D:"dddd d MMMM yyyy",it_IT_t:"HH:mm",it_IT_T:"HH:mm:ss",it_IT_f:"dddd d MMMM yyyy HH:mm",it_IT_F:"dddd d MMMM yyyy HH:mm:ss",it_IT_M:"dd MMMM",it_IT_Y:"MMMM yyyy",ru_RU_d:"dd.MM.yyyy",ru_RU_D:"d MMMM yyyy '?.'",ru_RU_t:"H:mm",ru_RU_T:"H:mm:ss",ru_RU_f:"d MMMM yyyy '?.' H:mm",ru_RU_F:"d MMMM yyyy '?.' H:mm:ss",ru_RU_Y:"MMMM yyyy",cs_CZ_d:"d.M.yyyy",cs_CZ_D:"d. MMMM yyyy",cs_CZ_t:"H:mm",cs_CZ_T:"H:mm:ss",cs_CZ_f:"d. MMMM yyyy H:mm",cs_CZ_F:"d. MMMM yyyy H:mm:ss",cs_CZ_M:"dd MMMM",cs_CZ_Y:"MMMM yyyy",he_IL_d:"dd MMMM yyyy",he_IL_D:"dddd dd MMMM yyyy",he_IL_t:"HH:mm",he_IL_T:"HH:mm:ss",he_IL_f:"dddd dd MMMM yyyy HH:mm",he_IL_F:"dddd dd MMMM yyyy HH:mm:ss",he_IL_M:"dd MMMM",he_IL_Y:"MMMM yyyy",hr_HR_d:"d.M.yyyy.",hr_HR_D:"d. MMMM yyyy.",hr_HR_t:"H:mm",hr_HR_T:"H:mm:ss",hr_HR_f:"d. MMMM yyyy. H:mm",hr_HR_F:"d. MMMM yyyy. H:mm:ss",hr_HR_M:"d. MMMM",hu_HU_d:"yyyy.MM.dd.",hu_HU_D:"yyyy. MMMM d.",hu_HU_t:"H:mm",hu_HU_T:"H:mm:ss",hu_HU_f:"yyyy. MMMM d. H:mm",hu_HU_F:"yyyy. MMMM d. H:mm:ss",hu_HU_M:"MMMM d.",hu_HU_Y:"yyyy. MMMM",jp_JP_d:"gg y/M/d",jp_JP_D:"gg y'?'M'?'d'?'",jp_JP_t:"H:mm",jp_JP_T:"H:mm:ss",jp_JP_f:"gg y'?'M'?'d'?' H:mm",jp_JP_F:"gg y'?'M'?'d'?' H:mm:ss",jp_JP_M:"M'?'d'?'",jp_JP_Y:"gg y'?'M'?'",lt_LT_d:"yyyy.MM.dd",lt_LT_D:"yyyy 'm.' MMMM d 'd.'",lt_LT_t:"HH:mm",lt_LT_T:"HH:mm:ss",lt_LT_f:"yyyy 'm.' MMMM d 'd.' HH:mm",lt_LT_F:"yyyy 'm.' MMMM d 'd.' HH:mm:ss",lt_LT_M:"MMMM d 'd.'",lt_LT_Y:"yyyy 'm.' MMMM",sa_IN_d:"dd-MM-yyyy",sa_IN_D:"dd MMMM yyyy dddd",sa_IN_t:"HH:mm",sa_IN_T:"HH:mm:ss",sa_IN_f:"dd MMMM yyyy dddd HH:mm",sa_IN_F:"dd MMMM yyyy dddd HH:mm:ss",sa_IN_M:"dd MMMM",basic_y:"yyyy",basic_ym:"yyyy-MM",basic_d:"yyyy-MM-dd",basic_dhm:"yyyy-MM-dd hh:mm",basic_bhms:"yyyy-MM-dd hh:mm:ss",basic2_ym:"MM-yyyy",basic2_d:"MM-dd-yyyy",basic2_dhm:"MM-dd-yyyy hh:mm",basic2_dhms:"MM-dd-yyyy hh:mm:ss",basic3_ym:"yyyy/MM",basic3_d:"yyyy/MM/dd",basic3_dhm:"yyyy/MM/dd hh:mm",basic3_bhms:"yyyy/MM/dd hh:mm:ss",basic4_ym:"MM/yyyy",basic4_d:"MM/dd/yyyy",basic4_dhm:"MM/dd/yyyy hh:mm",basic4_dhms:"MM/dd/yyyy hh:mm:ss"};e&&(r=n.extend({},r,e));var i=[];for(var s in n.isArray(t)?i=t:i.push(t),r)r[s]={format:r[s],count:0};for(var o=0;o<i.length;o++){var a=i[o];if(null!=a&&null!=a)for(var s in r)null!=n.jqx.dataFormat.parsedate(a,r[s].format)&&r[s].count++}var l={key:void 0,count:0};for(var s in r)r[s].count>l.count&&(l.key=s,l.count=r[s].count);return l.key?r[l.key].format:""},_testXAxisDateFormat:function(t){var e=this,r=e._getXAxis(t),n=e._getDataLen(t),i={};if(e.localization&&e.localization.patterns)for(var s in e.localization.patterns)i["local_"+s]=e.localization.patterns[s];for(var o=[],a=0;a<n&&a<10;a++){var l=e._getDataValue(a,r.dataField,t);null!=l&&null!=l&&o.push(l)}return e._detectDateFormat(o,i)}})},zUnb:function(t,e,r){"use strict";function n(t){return"function"==typeof t}r.r(e);let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function h(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let c=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:r,_unsubscribe:i,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(null!==r)for(let t=0;t<r.length;++t)r[t].remove(this);if(n(i))try{i.call(this)}catch(o){e=o instanceof u?d(o.errors):[o]}if(l(s)){let t=-1,r=s.length;for(;++t<r;){const r=s[t];if(h(r))try{r.unsubscribe()}catch(o){e=e||[],o instanceof u?e=e.concat(d(o.errors)):e.push(o)}}}if(e)throw new u(e)}add(e){let r=e;if(!e)return t.EMPTY;switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){const e=r;r=new t,r._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:n}=r;if(null===n)r._parentOrParents=this;else if(n instanceof t){if(n===this)return r;r._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return r;n.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[r]:i.push(r),r}remove(t){const e=this._subscriptions;if(e){const r=e.indexOf(t);-1!==r&&e.splice(r,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof u?e.errors:e),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class p extends c{constructor(t,e,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof p?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,r)}}[f](){return this}static create(t,e,r){const n=new p(t,e,r);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends p{constructor(t,e,r,i){let s;super(),this._parentSubscriber=t;let o=this;n(e)?s=e:e&&(s=e.next,r=e.error,i=e.complete,e!==a&&(o=Object.create(e),n(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=r,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:r}=s;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(r){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw r;o(r)}}__tryOrSetError(t,e,r){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(n){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(o(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function v(){}function y(...t){return x(t)}function x(t){return t?1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}:v}let _=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const r=new t;return r.source=this,r.operator=e,r}subscribe(t,e,r){const{operator:n}=this,i=function(t,e,r){if(t){if(t instanceof p)return t;if(t[f])return t[f]()}return t||e||r?new p(t,e,r):new p(a)}(t,e,r);if(i.add(n?n.call(i,this.source):this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){s.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:r,isStopped:n}=t;if(e||n)return!1;t=r&&r instanceof p?r:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,r)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(i){r(i),n&&n.unsubscribe()}},r,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:x(t)(this)}toPromise(t){return new(t=b(t))((t,e)=>{let r;this.subscribe(t=>r=t,t=>e(t),()=>t(r))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const w=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class C extends c{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}class S extends p{constructor(t){super(t),this.destination=t}}let A=(()=>{class t extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new S(this)}lift(t){const e=new k(this,this);return e.operator=t,e}next(t){if(this.closed)throw new w;if(!this.isStopped){const{observers:e}=this,r=e.length,n=e.slice();for(let i=0;i<r;i++)n[i].next(t)}}error(t){if(this.closed)throw new w;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,r=e.length,n=e.slice();for(let i=0;i<r;i++)n[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new w;this.isStopped=!0;const{observers:t}=this,e=t.length,r=t.slice();for(let n=0;n<e;n++)r[n].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new w;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new w;return this.hasError?(t.error(this.thrownError),c.EMPTY):this.isStopped?(t.complete(),c.EMPTY):(this.observers.push(t),new C(this,t))}asObservable(){const t=new _;return t.source=this,t}}return t.create=(t,e)=>new k(t,e),t})();class k extends A{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):c.EMPTY}}function T(t){return t&&"function"==typeof t.schedule}class j extends p{constructor(t,e,r){super(),this.parent=t,this.outerValue=e,this.outerIndex=r,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const q=t=>e=>{for(let r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()};function N(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const E=N(),M=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function O(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const I=t=>{if(t&&"function"==typeof t[m])return n=t,t=>{const e=n[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(M(t))return q(t);if(O(t))return r=t,t=>(r.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[E])return e=t,t=>{const r=e[E]();for(;;){const e=r.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof r.return&&t.add(()=>{r.return&&r.return()}),t};{const e=h(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}var e,r,n};function D(t,e,r,n,i=new j(t,r,n)){if(!i.closed)return e instanceof _?e.subscribe(i):I(e)(i)}class P extends p{notifyNext(t,e,r,n,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function R(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new F(t,e))}}class F{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new L(t,this.project,this.thisArg))}}class L extends p{constructor(t,e,r){super(t),this.project=e,this.count=0,this.thisArg=r||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(e)}}function H(t,e){return new _(r=>{const n=new c;let i=0;return n.add(e.schedule((function(){i!==t.length?(r.next(t[i++]),r.closed||n.add(this.schedule())):r.complete()}))),n})}function V(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new _(r=>{const n=new c;return n.add(e.schedule(()=>{const i=t[m]();n.add(i.subscribe({next(t){n.add(e.schedule(()=>r.next(t)))},error(t){n.add(e.schedule(()=>r.error(t)))},complete(){n.add(e.schedule(()=>r.complete()))}}))})),n})}(t,e);if(O(t))return function(t,e){return new _(r=>{const n=new c;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{r.next(t),n.add(e.schedule(()=>r.complete()))}))},t=>{n.add(e.schedule(()=>r.error(t)))}))),n})}(t,e);if(M(t))return H(t,e);if(function(t){return t&&"function"==typeof t[E]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new _(r=>{const n=new c;let i;return n.add(()=>{i&&"function"==typeof i.return&&i.return()}),n.add(e.schedule(()=>{i=t[E](),n.add(e.schedule((function(){if(r.closed)return;let t,e;try{const r=i.next();t=r.value,e=r.done}catch(n){return void r.error(n)}e?r.complete():(r.next(t),this.schedule())})))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof _?t:new _(I(t))}function B(t,e,r=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(B((r,n)=>V(t(r,n)).pipe(R((t,i)=>e(r,t,n,i))),r)):("number"==typeof e&&(r=e),e=>e.lift(new z(t,r)))}class z{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new G(t,this.project,this.concurrent))}}class G extends P{constructor(t,e,r=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const r=this.index++;try{e=this.project(t,r)}catch(n){return void this.destination.error(n)}this.active++,this._innerSub(e,t,r)}_innerSub(t,e,r){const n=new j(this,e,r),i=this.destination;i.add(n);const s=D(this,t,void 0,void 0,n);s!==n&&i.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,r,n,i){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function U(t){return t}function W(t=Number.POSITIVE_INFINITY){return B(U,t)}function $(t,e){return e?H(t,e):new _(q(t))}function X(){return function(t){return t.lift(new Y(t))}}class Y{constructor(t){this.connectable=t}call(t,e){const{connectable:r}=this;r._refCount++;const n=new Q(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i}}class Q extends p{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:r}=this,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}class J extends _{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new c,t.add(this.source.subscribe(new K(this.getSubject(),this))),t.closed&&(this._connection=null,t=c.EMPTY)),t}refCount(){return X()(this)}}const Z=(()=>{const t=J.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class K extends S{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function tt(){return new A}function et(t){return function(...e){if(t){const r=t(...e);for(const t in r)this[t]=r[t]}}}function rt(t,e,r){const n=et(e);function i(...t){if(this instanceof i)return n.apply(this,t),this;const e=new i(...t);return r.annotation=e,r;function r(t,r,n){const i=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(e),t}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}function nt(t,e,r,n){const i=et(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return function(r,i){const s=r.constructor,o=s.hasOwnProperty("__prop__metadata__")?s.__prop__metadata__:Object.defineProperty(s,"__prop__metadata__",{value:{}}).__prop__metadata__;o[i]=o.hasOwnProperty(i)&&o[i]||[],o[i].unshift(e),n&&n(r,i,...t)}}return r&&(s.prototype=Object.create(r.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s}const it=rt("Inject",t=>({token:t})),st=rt("Optional"),ot=rt("Self"),at=rt("SkipSelf");var lt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function ht(t){for(let e in t)if(t[e]===ht)return e;throw Error("Could not find renamed property on target object.")}function ut(t,e){for(const r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function ct(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function dt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ft(t){return pt(t,t[mt])||pt(t,t[xt])}function pt(t,e){return e&&e.token===t?e:null}function gt(t){return t&&(t.hasOwnProperty(vt)||t.hasOwnProperty(_t))?t[vt]:null}const mt=ht({"\u0275prov":ht}),vt=ht({"\u0275inj":ht}),yt=ht({"\u0275provFallback":ht}),xt=ht({ngInjectableDef:ht}),_t=ht({ngInjectorDef:ht});function bt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(bt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const r=e.indexOf("\n");return-1===r?e:e.substring(0,r)}function wt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ct=ht({__forward_ref__:ht});function St(t){return t.__forward_ref__=St,t.toString=function(){return bt(this())},t}function At(t){return kt(t)?t():t}function kt(t){return"function"==typeof t&&t.hasOwnProperty(Ct)&&t.__forward_ref__===St}const Tt="undefined"!=typeof globalThis&&globalThis,jt="undefined"!=typeof window&&window,qt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Nt="undefined"!=typeof global&&global,Et=Tt||Nt||jt||qt,Mt=ht({"\u0275cmp":ht}),Ot=ht({"\u0275dir":ht}),It=ht({"\u0275pipe":ht}),Dt=ht({"\u0275mod":ht}),Pt=ht({"\u0275loc":ht}),Rt=ht({"\u0275fac":ht}),Ft=ht({__NG_ELEMENT_ID__:ht});class Lt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ct({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ht=new Lt("INJECTOR",-1),Vt={},Bt=/\n/gm,zt=ht({provide:String,useValue:ht});let Gt,Ut=void 0;function Wt(t){const e=Ut;return Ut=t,e}function $t(t){const e=Gt;return Gt=t,e}function Xt(t,e=lt.Default){if(void 0===Ut)throw new Error("inject() must be called from an injection context");return null===Ut?Qt(t,void 0,e):Ut.get(t,e<.Optional?null:void 0,e)}function Yt(t,e=lt.Default){return(Gt||Xt)(At(t),e)}function Qt(t,e,r){const n=ft(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(r<.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${bt(t)}]`)}function Jt(t){const e=[];for(let r=0;r<t.length;r++){const n=At(t[r]);if(Array.isArray(n)){if(0===n.length)throw new Error("Arguments array must have arguments.");let t=void 0,r=lt.Default;for(let e=0;e<n.length;e++){const i=n[e];i instanceof st||"Optional"===i.ngMetadataName||i===st?r|=lt.Optional:i instanceof at||"SkipSelf"===i.ngMetadataName||i===at?r|=lt.SkipSelf:i instanceof ot||"Self"===i.ngMetadataName||i===ot?r|=lt.Self:t=i instanceof it||i===it?i.token:i}e.push(Yt(t,r))}else e.push(Yt(n))}return e}class Zt{get(t,e=Vt){if(e===Vt){const e=new Error(`NullInjectorError: No provider for ${bt(t)}!`);throw e.name="NullInjectorError",e}return e}}class Kt{}class te{}function ee(t,e){t.forEach(t=>Array.isArray(t)?ee(t,e):e(t))}function re(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function ne(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ie(t,e){const r=[];for(let n=0;n<t;n++)r.push(e);return r}function se(t,e,r){let n=ae(t,e);return n>=0?t[1|n]=r:(n=~n,function(t,e,r,n){let i=t.length;if(i==e)t.push(r,n);else if(1===i)t.push(n,t[0]),t[0]=r;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=r,t[e+1]=n}}(t,n,e,r)),n}function oe(t,e){const r=ae(t,e);if(r>=0)return t[1|r]}function ae(t,e){return function(t,e,r){let n=0,i=t.length>>1;for(;i!==n;){const r=n+(i-n>>1),s=t[r<<1];if(e===s)return r<<1;s>e?i=r:n=r+1}return~(i<<1)}(t,e)}const le=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),he=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}();function ue(t){return""+{toString:t}}const ce={},de=[];let fe=0;function pe(t){const e=t.type,r=e.prototype,n={},i={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:r.ngOnInit||null,doCheck:r.ngDoCheck||null,afterContentInit:r.ngAfterContentInit||null,afterContentChecked:r.ngAfterContentChecked||null,afterViewInit:r.ngAfterViewInit||null,afterViewChecked:r.ngAfterViewChecked||null,onDestroy:r.ngOnDestroy||null,onPush:t.changeDetection===le.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||de,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||he.Emulated,id:"c",styles:t.styles||de,_:null,setInput:null,schemas:t.schemas||null,tView:null};return i._=ue(()=>{const e=t.directives,r=t.features,s=t.pipes;i.id+=fe++,i.inputs=xe(t.inputs,n),i.outputs=xe(t.outputs),r&&r.forEach(t=>t(i)),i.directiveDefs=e?()=>("function"==typeof e?e():e).map(ge):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(me):null}),i}function ge(t){return we(t)||function(t){return t[Ot]||null}(t)}function me(t){return function(t){return t[It]||null}(t)}const ve={};function ye(t){const e={type:t.type,bootstrap:t.bootstrap||de,declarations:t.declarations||de,imports:t.imports||de,exports:t.exports||de,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&ue(()=>{ve[t.id]=t.type}),e}function xe(t,e){if(null==t)return ce;const r={};for(const n in t)if(t.hasOwnProperty(n)){let i=t[n],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),r[i]=n,e&&(e[i]=s)}return r}const _e=pe;function be(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function we(t){return t[Mt]||null}function Ce(t,e){return t.hasOwnProperty(Rt)?t[Rt]:null}function Se(t,e){const r=t[Dt]||null;if(!r&&!0===e)throw new Error(`Type ${bt(t)} does not have '\u0275mod' property.`);return r}function Ae(t){return Array.isArray(t)&&"object"==typeof t[1]}function ke(t){return Array.isArray(t)&&!0===t[1]}function Te(t){return 0!=(8&t.flags)}function je(t){return 2==(2&t.flags)}function qe(t){return 1==(1&t.flags)}function Ne(t){return null!==t.template}function Ee(t){return 0!=(512&t[2])}const Me={lFrame:Je(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Oe(){return Me.bindingsEnabled}function Ie(){return Me.lFrame.lView}function De(){return Me.lFrame.tView}function Pe(t){Me.lFrame.contextLView=t}function Re(){return Me.lFrame.previousOrParentTNode}function Fe(t,e){Me.lFrame.previousOrParentTNode=t,Me.lFrame.isParent=e}function Le(){return Me.lFrame.isParent}function He(){Me.lFrame.isParent=!1}function Ve(){return Me.checkNoChangesMode}function Be(t){Me.checkNoChangesMode=t}function ze(){return Me.lFrame.bindingIndex++}function Ge(t){const e=Me.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function Ue(t,e){const r=Me.lFrame;r.bindingIndex=r.bindingRootIndex=t,r.currentDirectiveIndex=e}function We(){return Me.lFrame.currentQueryIndex}function $e(t){Me.lFrame.currentQueryIndex=t}function Xe(t,e){const r=Qe();Me.lFrame=r,r.previousOrParentTNode=e,r.lView=t}function Ye(t,e){const r=Qe(),n=t[1];Me.lFrame=r,r.previousOrParentTNode=e,r.lView=t,r.tView=n,r.contextLView=t,r.bindingIndex=n.bindingStartIndex}function Qe(){const t=Me.lFrame,e=null===t?null:t.child;return null===e?Je(t):e}function Je(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Ze(){const t=Me.lFrame;return Me.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Ke=Ze;function tr(){const t=Ze();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function er(){return Me.lFrame.selectedIndex}function rr(t){Me.lFrame.selectedIndex=t}function nr(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r<n;r++){const e=t.data[r];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-r,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(r,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(r,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-r,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(r,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(r,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(r,e.onDestroy)}}function ir(t,e,r){ar(t,e,3,r)}function sr(t,e,r,n){(3&t[2])===r&&ar(t,e,r,n)}function or(t,e){let r=t[2];(3&r)===e&&(r&=1023,r+=1,t[2]=r)}function ar(t,e,r,n){const i=null!=n?n:-1;let s=0;for(let o=void 0!==n?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(s=e[o],null!=n&&s>=n)break}else e[o]<0&&(t[18]+=65536),(s<i||-1==i)&&(lr(t,r,e,o),t[18]=(4294901760&t[18])+o+2),o++}function lr(t,e,r,n){const i=r[n]<0,s=r[n+1],o=t[i?-r[n]:r[n]];i?t[2]>>10<t[18]>>16&&(3&t[2])===e&&(t[2]+=1024,s.call(o)):s.call(o)}class hr{constructor(t,e,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}let ur=void 0;function cr(t){return!!t.listen}const dr={createRenderer:(t,e)=>void 0!==ur?ur:"undefined"!=typeof document?document:void 0};function fr(t,e,r){const n=cr(t);let i=0;for(;i<r.length;){const s=r[i];if("number"==typeof s){if(0!==s)break;i++;const o=r[i++],a=r[i++],l=r[i++];n?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=r[++i];gr(o)?n&&t.setProperty(e,o,a):n?t.setAttribute(e,o,a):e.setAttribute(o,a),i++}}return i}function pr(t){return 3===t||4===t||6===t}function gr(t){return 64===t.charCodeAt(0)}function mr(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let r=-1;for(let n=0;n<e.length;n++){const i=e[n];"number"==typeof i?r=i:0===r||vr(t,r,i,null,-1===r||2===r?e[++n]:null)}}return t}function vr(t,e,r,n,i){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const r=t[s++];if("number"==typeof r){if(r===e){o=-1;break}if(r>e){o=s-1;break}}}for(;s<t.length;){const e=t[s];if("number"==typeof e)break;if(e===r){if(null===n)return void(null!==i&&(t[s+1]=i));if(n===t[s+1])return void(t[s+2]=i)}s++,null!==n&&s++,null!==i&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,r),null!==n&&t.splice(s++,0,n),null!==i&&t.splice(s++,0,i)}function yr(t){return-1!==t}function xr(t){return 32767&t}function _r(t){return t>>16}function br(t,e){let r=_r(t),n=e;for(;r>0;)n=n[15],r--;return n}function wr(t){return"string"==typeof t?t:null==t?"":""+t}function Cr(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():wr(t)}const Sr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Et))();function Ar(t){return t instanceof Function?t():t}let kr=!0;function Tr(t){const e=kr;return kr=t,e}let jr=0;function qr(t,e){const r=Er(t,e);if(-1!==r)return r;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Nr(n.data,t),Nr(e,null),Nr(n.blueprint,null));const i=Mr(t,e),s=t.injectorIndex;if(yr(i)){const t=xr(i),r=br(i,e),n=r[1].data;for(let i=0;i<8;i++)e[s+i]=r[t+i]|n[t+i]}return e[s+8]=i,s}function Nr(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Er(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Mr(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let r=e[6],n=1;for(;r&&-1===r.injectorIndex;)r=(e=e[15])?e[6]:null,n++;return r?r.injectorIndex|n<<16:-1}function Or(t,e,r){!function(t,e,r){let n="string"!=typeof r?r[Ft]:r.charCodeAt(0)||0;null==n&&(n=r[Ft]=jr++);const i=255&n,s=1<<i,o=64&i,a=32&i,l=e.data;128&i?o?a?l[t+7]|=s:l[t+6]|=s:a?l[t+5]|=s:l[t+4]|=s:o?a?l[t+3]|=s:l[t+2]|=s:a?l[t+1]|=s:l[t]|=s}(t,e,r)}function Ir(t,e,r,n=lt.Default,i){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[Ft];return"number"==typeof e&&e>0?255&e:e}(r);if("function"==typeof i){Xe(e,t);try{const t=i();if(null!=t||n<.Optional)return t;throw new Error(`No provider for ${Cr(r)}!`)}finally{Ke()}}else if("number"==typeof i){if(-1===i)return new Vr(t,e);let s=null,o=Er(t,e),a=-1,l=n<.Host?e[16][6]:null;for((-1===o||n<.SkipSelf)&&(a=-1===o?Mr(t,e):e[o+8],Hr(n,!1)?(s=e[1],o=xr(a),e=br(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(Lr(i,o,t.data)){const t=Pr(o,e,r,s,n,l);if(t!==Dr)return t}Hr(n,e[1].data[o+8]===l)&&Lr(i,o,e)?(s=t,o=xr(a),e=br(a,e)):o=-1}}}if(n<.Optional&&void 0===i&&(i=null),0==(n&(lt.Self|lt.Host))){const t=e[9],s=$t(void 0);try{return t?t.get(r,i,n<.Optional):Qt(r,i,n<.Optional)}finally{$t(s)}}if(n<.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${Cr(r)}]`)}const Dr={};function Pr(t,e,r,n,i,s){const o=e[1],a=o.data[t+8],l=Rr(a,o,r,null==n?je(a)&&kr:n!=o&&3===a.type,i<.Host&&s===a);return null!==l?Fr(e,o,l,a):Dr}function Rr(t,e,r,n,i){const s=t.providerIndexes,o=e.data,a=65535&s,l=t.directiveStart,h=s>>16,u=i?a+h:t.directiveEnd;for(let c=n?a:a+h;c<u;c++){const t=o[c];if(c<l&&r===t||c>=l&&t.type===r)return c}if(i){const t=o[l];if(t&&Ne(t)&&t.type===r)return l}return null}function Fr(t,e,r,n){let i=t[r];const s=e.data;if(i instanceof hr){const o=i;if(o.resolving)throw new Error(`Circular dep for ${Cr(s[r])}`);const a=Tr(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=$t(o.injectImpl)),Xe(t,n);try{i=t[r]=o.factory(void 0,s,t,n),e.firstCreatePass&&r>=n.directiveStart&&function(t,e,r){const{onChanges:n,onInit:i,doCheck:s}=e;n&&((r.preOrderHooks||(r.preOrderHooks=[])).push(t,n),(r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(t,n)),i&&(r.preOrderHooks||(r.preOrderHooks=[])).push(-t,i),s&&((r.preOrderHooks||(r.preOrderHooks=[])).push(t,s),(r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(t,s))}(r,s[r],e)}finally{o.injectImpl&&$t(l),Tr(a),o.resolving=!1,Ke()}}return i}function Lr(t,e,r){const n=64&t,i=32&t;let s;return s=128&t?n?i?r[e+7]:r[e+6]:i?r[e+5]:r[e+4]:n?i?r[e+3]:r[e+2]:i?r[e+1]:r[e],!!(s&1<<t)}function Hr(t,e){return!(t<.Self||t<.Host&&e)}class Vr{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Ir(this._tNode,this._lView,t,void 0,e)}}function Br(t){const e=Object.getPrototypeOf(t.prototype).constructor,r=e[Rt]||function t(e){const r=e;if(kt(e))return()=>{const e=t(At(r));return e?e():null};let n=Ce(r);if(null===n){const t=gt(r);n=t&&t.factory}return n||null}(e);return null!==r?r:t=>new t}function zr(t){return t.ngDebugContext}function Gr(t){return t.ngOriginalError}function Ur(t,...e){t.error(...e)}class Wr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),r=this._findContext(t),n=function(t){return t.ngErrorLogger||Ur}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),r&&n(this._console,"ERROR CONTEXT",r)}_findContext(t){return t?zr(t)?zr(t):this._findContext(Gr(t)):null}_findOriginalError(t){let e=Gr(t);for(;e&&Gr(e);)e=Gr(e);return e}}class $r{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}function Xr(t){return t instanceof $r?t.changingThisBreaksApplicationSecurity:t}let Yr=!0,Qr=!1;function Jr(){return Qr=!0,Yr}const Zr=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Kr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,tn=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}();function en(t){const e=function(){const t=Ie();return t&&t[12]}();return e?e.sanitize(tn.URL,t)||"":function(t,e){const r=function(t){return t instanceof $r&&t.getTypeName()||null}(t);if(null!=r&&r!==e){if("ResourceURL"===r&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${r} (see http://g.co/ng/security#xss)`)}return r===e}(t,"URL")?Xr(t):(r=wr(t),(r=String(r)).match(Zr)||r.match(Kr)?r:(Jr()&&console.warn(`WARNING: sanitizing unsafe URL value ${r} (see http://g.co/ng/security#xss)`),"unsafe:"+r));var r}function rn(t){for(;Array.isArray(t);)t=t[0];return t}function nn(t,e){return rn(e[t+19])}function sn(t,e){return rn(e[t.index])}function on(t,e){return t.data[e+19]}function an(t,e){return t[e+19]}function ln(t,e){const r=e[t];return Ae(r)?r:r[0]}function hn(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function un(t){return 4==(4&t[2])}function cn(t){return 128==(128&t[2])}function dn(t,e){return null===t||null==e?null:t[e]}function fn(t){t[18]=0}function pn(t,e){t.__ngContext__=e}function gn(t){throw new Error(`Multiple components match node with tagname ${t.tagName}`)}function mn(){throw new Error("Cannot mix multi providers and regular providers")}function vn(t,e,r){let n=t.length;for(;;){const i=t.indexOf(e,r);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const r=e.length;if(i+r===n||t.charCodeAt(i+r)<=32)return i}r=i+1}}function yn(t,e,r){let n=0;for(;n<t.length;){let i=t[n++];if(r&&"class"===i){if(i=t[n],-1!==vn(i.toLowerCase(),e,0))return!0}else if(1===i){for(;n<t.length&&"string"==typeof(i=t[n++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function xn(t,e,r){return e===(0!==t.type||r?t.tagName:"ng-template")}function _n(t,e,r){let n=4;const i=t.attrs||[],s=function(t){for(let e=0;e<t.length;e++)if(pr(t[e]))return e;return t.length}(i);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&n){if(n=2|1&n,""!==l&&!xn(t,l,r)||""===l&&1===e.length){if(bn(n))return!1;o=!0}}else{const h=8&n?l:e[++a];if(8&n&&null!==t.attrs){if(!yn(t.attrs,h,r)){if(bn(n))return!1;o=!0}continue}const u=wn(8&n?"class":l,i,0==t.type&&"ng-template"!==t.tagName,r);if(-1===u){if(bn(n))return!1;o=!0;continue}if(""!==h){let t;t=u>s?"":i[u+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==vn(e,h,0)||2&n&&h!==t){if(bn(n))return!1;o=!0}}}}else{if(!o&&!bn(n)&&!bn(l))return!1;if(o&&bn(l))continue;o=!1,n=l|1&n}}return bn(n)||o}function bn(t){return 0==(1&t)}function wn(t,e,r,n){if(null===e)return-1;let i=0;if(n||!r){let r=!1;for(;i<e.length;){const n=e[i];if(n===t)return i;if(3===n||6===n)r=!0;else{if(1===n||2===n){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===n)break;if(0===n){i+=4;continue}}i+=r?1:2}return-1}return function(t,e){let r=t.indexOf(4);if(r>-1)for(r++;r<t.length;){if(t[r]===e)return r;r++}return-1}(e,t)}function Cn(t,e,r=!1){for(let n=0;n<e.length;n++)if(_n(t,e[n],r))return!0;return!1}function Sn(t,e){t:for(let r=0;r<e.length;r++){const n=e[r];if(t.length===n.length){for(let e=0;e<t.length;e++)if(t[e]!==n[e])continue t;return!0}}return!1}function An(t,e){return t?":not("+e.trim()+")":e}function kn(t){let e=t[0],r=1,n=2,i="",s=!1;for(;r<t.length;){let o=t[r];if("string"==typeof o)if(2&n){const e=t[++r];i+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&n?i+="."+o:4&n&&(i+=" "+o);else""===i||bn(o)||(e+=An(s,i),i=""),n=o,s=s||!bn(n);r++}return""!==i&&(e+=An(s,i)),e}const Tn={};function jn(t){const e=t[3];return ke(e)?e[3]:e}function qn(t){Nn(De(),Ie(),er()+t,Ve())}function Nn(t,e,r,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&ir(e,n,r)}else{const n=t.preOrderHooks;null!==n&&sr(e,n,0,r)}rr(r)}function En(t,e){return t<<17|e<<2}function Mn(t){return t>>17&32767}function On(t){return 2|t}function In(t){return(131068&t)>>2}function Dn(t,e){return-131069&t|e<<2}function Pn(t){return 1|t}function Rn(t,e){const r=t.contentQueries;if(null!==r)for(let n=0;n<r.length;n+=2){const i=r[n],s=r[n+1];if(-1!==s){const r=t.data[s];$e(i),r.contentQueries(2,e[s],s)}}}function Fn(t,e,r){return cr(e)?e.createElement(t,r):null===r?e.createElement(t):e.createElementNS(r,t)}function Ln(t,e,r,n,i,s,o,a,l,h){const u=e.blueprint.slice();return u[0]=i,u[2]=140|n,fn(u),u[3]=u[15]=t,u[8]=r,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=h||t&&t[9]||null,u[6]=s,u[16]=2==e.type?t[16]:u,u}function Hn(t,e,r,n,i,s){const o=r+19,a=t.data[o]||function(t,e,r,n,i,s){const o=Re(),a=Le(),l=a?o:o&&o.parent,h=t.data[r]=Yn(0,l&&l!==e?l:null,n,r,i,s);return null===t.firstChild&&(t.firstChild=h),o&&(!a||null!=o.child||null===h.parent&&2!==o.type?a||(o.next=h):o.child=h),h}(t,e,o,n,i,s);return Fe(a,!0),a}function Vn(t,e,r){Ye(e,e[6]);try{const n=t.viewQuery;null!==n&&yi(1,n,r);const i=t.template;null!==i&&Gn(t,e,i,1,r),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Rn(t,e),t.staticViewQueries&&yi(2,t.viewQuery,r);const s=t.components;null!==s&&function(t,e){for(let r=0;r<e.length;r++)fi(t,e[r])}(e,s)}finally{e[2]&=-5,tr()}}function Bn(t,e,r,n){const i=e[2];if(256==(256&i))return;Ye(e,e[6]);const s=Ve();try{fn(e),Me.lFrame.bindingIndex=t.bindingStartIndex,null!==r&&Gn(t,e,r,2,n);const o=3==(3&i);if(!s)if(o){const r=t.preOrderCheckHooks;null!==r&&ir(e,r,null)}else{const r=t.preOrderHooks;null!==r&&sr(e,r,0,null),or(e,0)}if(function(t){let e=t[13];for(;null!==e;){let r;if(ke(e)&&(r=e[2])>>1==-1){for(let t=9;t<e.length;t++){const r=e[t],n=r[1];cn(r)&&Bn(n,r,n.template,r[8])}0!=(1&r)&&ci(e,t[16])}e=e[4]}}(e),null!==t.contentQueries&&Rn(t,e),!s)if(o){const r=t.contentCheckHooks;null!==r&&ir(e,r)}else{const r=t.contentHooks;null!==r&&sr(e,r,1),or(e,1)}!function(t,e){try{const r=t.expandoInstructions;if(null!==r){let n=t.expandoStartIndex,i=-1,s=-1;for(let t=0;t<r.length;t++){const o=r[t];"number"==typeof o?o<=0?(s=0-o,rr(s),n+=9+r[++t],i=n):n+=o:(null!==o&&(Ue(n,i),o(2,e[i])),i++)}}}finally{rr(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let r=0;r<e.length;r++)di(t,e[r])}(e,a);const l=t.viewQuery;if(null!==l&&yi(2,l,n),!s)if(o){const r=t.viewCheckHooks;null!==r&&ir(e,r)}else{const r=t.viewHooks;null!==r&&sr(e,r,2),or(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73)}finally{tr()}}function zn(t,e,r,n){const i=e[10],s=!Ve(),o=un(e);try{s&&!o&&i.begin&&i.begin(),o&&Vn(t,e,n),Bn(t,e,r,n)}finally{s&&!o&&i.end&&i.end()}}function Gn(t,e,r,n,i){const s=er();try{rr(-1),2&n&&e.length>19&&Nn(t,e,0,Ve()),r(n,i)}finally{rr(s)}}function Un(t,e,r){Oe()&&(function(t,e,r,n){const i=r.directiveStart,s=r.directiveEnd;t.firstCreatePass||qr(r,e),pn(n,e);const o=r.initialInputs;for(let a=i;a<s;a++){const n=t.data[a],s=Ne(n);s&&ai(e,r,n);const l=Fr(e,t,a,r);pn(l,e),null!==o&&li(0,a-i,l,n,0,o),s&&(ln(r.index,e)[8]=l)}}(t,e,r,sn(r,e)),128==(128&r.flags)&&function(t,e,r){const n=r.directiveStart,i=r.directiveEnd,s=t.expandoInstructions,o=t.firstCreatePass,a=r.index-19;try{rr(a);for(let r=n;r<i;r++){const n=t.data[r],i=e[r];null!==n.hostBindings||0!==n.hostVars||null!==n.hostAttrs?ei(n,i):o&&s.push(null)}}finally{rr(-1)}}(t,e,r))}function Wn(t,e,r=sn){const n=e.localNames;if(null!==n){let i=e.index+1;for(let s=0;s<n.length;s+=2){const o=n[s+1],a=-1===o?r(e,t):t[o];t[i++]=a}}}function $n(t){return t.tView||(t.tView=Xn(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts))}function Xn(t,e,r,n,i,s,o,a,l,h){const u=19+n,c=u+i,d=function(t,e){const r=[];for(let n=0;n<e;n++)r.push(n<t?null:Tn);return r}(u,c);return d[1]={type:t,id:e,blueprint:d,template:r,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:c,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:h}}function Yn(t,e,r,n,i,s){return{type:r,index:n,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Qn(t,e,r){for(let n in t)if(t.hasOwnProperty(n)){const i=t[n];(r=null===r?{}:r).hasOwnProperty(n)?r[n].push(e,i):r[n]=[e,i]}return r}function Jn(t,e,r,n,i,s,o,a){const l=nn(r,e),h=on(t,r);let u,c=h.inputs;if(!o&&null!=c&&(u=c[n]))Ci(t,e,u,n,i),je(h)&&function(t,e){const r=ln(e,t);16&r[2]||(r[2]|=64)}(e,r+19);else if(3===h.type){n=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n);const t=a?a(h,e):e[11];i=null!=s?s(i,h.tagName||"",n):i,cr(t)?t.setProperty(l,n,i):gr(n)||(l.setProperty?l.setProperty(n,i):l[n]=i)}}function Zn(t,e,r,n){let i=!1;if(Oe()){const s=function(t,e,r){const n=t.directiveRegistry;let i=null;if(n)for(let s=0;s<n.length;s++){const o=n[s];Cn(r,o.selectors,!1)&&(i||(i=[]),Or(qr(r,e),t,o.type),Ne(o)?(2&r.flags&&gn(r),ni(t,r),i.unshift(o)):i.push(o))}return i}(t,e,r),o=null===n?null:{"":-1};if(null!==s){let n=0;i=!0,si(r,t.data.length,s.length);for(let t=0;t<s.length;t++){const e=s[t];e.providersResolver&&e.providersResolver(e)}ri(t,r,s.length);let a=!1,l=!1;for(let i=0;i<s.length;i++){const h=s[i];r.mergedAttrs=mr(r.mergedAttrs,h.hostAttrs),oi(t,e,h),ii(t.data.length-1,h,o),null!==h.contentQueries&&(r.flags|=8),null===h.hostBindings&&null===h.hostAttrs&&0===h.hostVars||(r.flags|=128),!a&&(h.onChanges||h.onInit||h.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(r.index-19),a=!0),l||!h.onChanges&&!h.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(r.index-19),l=!0),Kn(t,h),n+=h.hostVars}!function(t,e){const r=e.directiveEnd,n=t.data,i=e.attrs,s=[];let o=null,a=null;for(let l=e.directiveStart;l<r;l++){const t=n[l],e=t.inputs;s.push(null!==i?hi(e,i):null),o=Qn(e,l,o),a=Qn(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=o,e.outputs=a}(t,r),ti(t,e,n)}o&&function(t,e,r){if(e){const n=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=r[e[t+1]];if(null==i)throw new Error(`Export of name '${e[t+1]}' not found!`);n.push(e[t],i)}}}(r,n,o)}return r.mergedAttrs=mr(r.mergedAttrs,r.attrs),i}function Kn(t,e){const r=t.expandoInstructions;r.push(e.hostBindings),0!==e.hostVars&&r.push(e.hostVars)}function ti(t,e,r){for(let n=0;n<r;n++)e.push(Tn),t.blueprint.push(Tn),t.data.push(null)}function ei(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function ri(t,e,r){const n=19-e.index,i=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(n,i,r)}function ni(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function ii(t,e,r){if(r){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)r[e.exportAs[n]]=t;Ne(e)&&(r[""]=t)}}function si(t,e,r){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+r,t.providerIndexes=e}function oi(t,e,r){t.data.push(r);const n=r.factory||(r.factory=Ce(r.type)),i=new hr(n,Ne(r),null);t.blueprint.push(i),e.push(i)}function ai(t,e,r){const n=sn(e,t),i=$n(r),s=t[10],o=pi(t,Ln(t,i,null,r.onPush?64:16,n,e,s,s.createRenderer(n,r)));t[e.index]=o}function li(t,e,r,n,i,s){const o=s[e];if(null!==o){const t=n.setInput;for(let e=0;e<o.length;){const i=o[e++],s=o[e++],a=o[e++];null!==t?n.setInput(r,a,i,s):r[s]=a}}}function hi(t,e){let r=null,n=0;for(;n<e.length;){const i=e[n];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===r&&(r=[]),r.push(i,t[i],e[n+1])),n+=2}else n+=2;else n+=4}return r}function ui(t,e,r,n){return new Array(t,!0,-2,e,null,null,n,r,null)}function ci(t,e){const r=t[5];for(let n=0;n<r.length;n++){const t=r[n],i=t[3][3][16];if(i!==e&&0==(16&i[2])){const e=t[1];Bn(e,t,e.template,t[8])}}}function di(t,e){const r=ln(e,t);if(cn(r)&&80&r[2]){const t=r[1];Bn(t,r,t.template,r[8])}}function fi(t,e){const r=ln(e,t),n=r[1];!function(t,e){for(let r=e.length;r<t.blueprint.length;r++)e.push(t.blueprint[r])}(n,r),Vn(n,r,r[8])}function pi(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function gi(t){for(;t;){t[2]|=64;const e=jn(t);if(Ee(t)&&!e)return t;t=e}return null}function mi(t,e,r){const n=e[10];n.begin&&n.begin();try{Bn(t,e,t.template,r)}catch(i){throw wi(e,i),i}finally{n.end&&n.end()}}function vi(t){!function(t){for(let e=0;e<t.components.length;e++){const r=t.components[e],n=hn(r),i=n[1];zn(i,n,i.template,r)}}(t[8])}function yi(t,e,r){$e(0),e(t,r)}const xi=(()=>Promise.resolve(null))();function _i(t){return t[7]||(t[7]=[])}function bi(t){return t.cleanup||(t.cleanup=[])}function wi(t,e){const r=t[9],n=r?r.get(Wr,null):null;n&&n.handleError(e)}function Ci(t,e,r,n,i){for(let s=0;s<r.length;){const o=r[s++],a=r[s++],l=e[o],h=t.data[o];null!==h.setInput?h.setInput(l,i,n,a):l[a]=i}}function Si(t,e){const r=e[3];return-1===t.index?ke(r)?r:null:r}function Ai(t,e){const r=Si(t,e);return r?Ri(e[11],r[7]):null}function ki(t,e,r,n,i){if(null!=n){let s,o=!1;ke(n)?s=n:Ae(n)&&(o=!0,n=n[0]);const a=rn(n);0===t&&null!==r?null==i?Di(e,r,a):Ii(e,r,a,i||null):1===t&&null!==r?Ii(e,r,a,i||null):2===t?function(t,e,r){const n=Ri(t,e);n&&function(t,e,r,n){cr(t)?t.removeChild(e,r,n):e.removeChild(r)}(t,n,e,r)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,r,n,i){const s=r[7];s!==rn(r)&&ki(e,t,n,s,i);for(let o=9;o<r.length;o++){const i=r[o];Bi(i[1],i,t,e,n,s)}}(e,t,s,r,i)}}function Ti(t,e,r,n){const i=Ai(t.node,e);i&&Bi(t,e,e[11],r?1:2,i,n)}function ji(t,e){const r=t[5],n=r.indexOf(e);r.splice(n,1)}function qi(t,e){if(t.length<=9)return;const r=9+e,n=t[r];if(n){const i=n[17];null!==i&&i!==t&&ji(i,n),e>0&&(t[r-1][4]=n[4]);const s=ne(t,9+e);Ti(n[1],n,!1,null);const o=s[5];null!==o&&o.detachView(s[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}function Ni(t,e){if(!(256&e[2])){const r=e[11];cr(r)&&r.destroyNode&&Bi(t,e,r,3,null,null),function(t){let e=t[13];if(!e)return Mi(t[1],t);for(;e;){let r=null;if(Ae(e))r=e[13];else{const t=e[9];t&&(r=t)}if(!r){for(;e&&!e[4]&&e!==t;)Ae(e)&&Mi(e[1],e),e=Ei(e,t);null===e&&(e=t),Ae(e)&&Mi(e[1],e),r=e&&e[4]}e=r}}(e)}}function Ei(t,e){let r;return Ae(t)&&(r=t[6])&&2===r.type?Si(r,t):t[3]===e?null:t[3]}function Mi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let r;if(null!=t&&null!=(r=t.destroyHooks))for(let n=0;n<r.length;n+=2){const t=e[r[n]];t instanceof hr||r[n+1].call(t)}}(t,e),function(t,e){const r=t.cleanup;if(null!==r){const t=e[7];for(let n=0;n<r.length-1;n+=2)if("string"==typeof r[n]){const i=r[n+1],s="function"==typeof i?i(e):rn(e[i]),o=t[r[n+2]],a=r[n+3];"boolean"==typeof a?s.removeEventListener(r[n],o,a):a>=0?t[a]():t[-a].unsubscribe(),n+=2}else r[n].call(t[r[n+1]]);e[7]=null}}(t,e);const r=e[6];r&&3===r.type&&cr(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&ke(e[3])){n!==e[3]&&ji(n,e);const r=e[5];null!==r&&r.detachView(t)}}}function Oi(t,e,r){let n=e.parent;for(;null!=n&&(4===n.type||5===n.type);)n=(e=n).parent;if(null==n){const t=r[6];return 2===t.type?Ai(t,r):r[0]}if(e&&5===e.type&&4&e.flags)return sn(e,r).parentNode;if(2&n.flags){const e=t.data,r=e[e[n.index].directiveStart].encapsulation;if(r!==he.ShadowDom&&r!==he.Native)return null}return sn(n,r)}function Ii(t,e,r,n){cr(t)?t.insertBefore(e,r,n):e.insertBefore(r,n,!0)}function Di(t,e,r){cr(t)?t.appendChild(e,r):e.appendChild(r)}function Pi(t,e,r,n){null!==n?Ii(t,e,r,n):Di(t,e,r)}function Ri(t,e){return cr(t)?t.parentNode(e):e.parentNode}function Fi(t,e){if(2===t.type){const r=Si(t,e);return null===r?null:Hi(r.indexOf(e,9)-9,r)}return 4===t.type||5===t.type?sn(t,e):null}function Li(t,e,r,n){const i=Oi(t,n,e);if(null!=i){const t=e[11],s=Fi(n.parent||e[6],e);if(Array.isArray(r))for(let e=0;e<r.length;e++)Pi(t,i,r[e],s);else Pi(t,i,r,s)}}function Hi(t,e){const r=9+t+1;if(r<e.length){const t=e[r],n=t[1].firstChild;if(null!==n)return function t(e,r){if(null!==r){const n=r.type;if(3===n)return sn(r,e);if(0===n)return Hi(-1,e[r.index]);if(4===n||5===n){const n=r.child;if(null!==n)return t(e,n);{const t=e[r.index];return ke(t)?Hi(-1,t):rn(t)}}{const n=e[16],i=n[6],s=jn(n),o=i.projection[r.projection];return null!=o?t(s,o):t(e,r.next)}}return null}(t,n)}return e[7]}function Vi(t,e,r,n,i,s,o){for(;null!=r;){const a=n[r.index],l=r.type;o&&0===e&&(a&&pn(rn(a),n),r.flags|=4),64!=(64&r.flags)&&(4===l||5===l?(Vi(t,e,r.child,n,i,s,!1),ki(e,t,i,a,s)):1===l?zi(t,e,n,r,i,s):ki(e,t,i,a,s)),r=o?r.projectionNext:r.next}}function Bi(t,e,r,n,i,s){Vi(r,n,t.node.child,e,i,s,!1)}function zi(t,e,r,n,i,s){const o=r[16],a=o[6].projection[n.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)ki(e,t,i,a[l],s);else Vi(t,e,a,o[3],i,s,!0)}function Gi(t,e,r){cr(t)?t.setAttribute(e,"style",r):e.style.cssText=r}function Ui(t,e,r){cr(t)?""===r?t.removeAttribute(e,"class"):t.setAttribute(e,"class",r):e.className=r}class Wi{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,r,n,i,s=!1){for(;null!==n;){const o=r[n.index];if(null!==o&&i.push(rn(o)),ke(o))for(let e=9;e<o.length;e++){const r=o[e],n=r[1].firstChild;null!==n&&t(r[1],r,n,i)}const a=n.type;if(4===a||5===a)t(e,r,n.child,i);else if(1===a){const e=r[16],s=e[6],o=jn(e);let a=s.projection[n.projection];null!==a&&null!==o&&t(o[1],o,a,i,!0)}n=s?n.projectionNext:n.next}return i}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Ni(this._lView[1],this._lView)}onDestroy(t){var e,r,n;e=this._lView[1],n=t,_i(r=this._lView).push(n),e.firstCreatePass&&bi(e).push(r[7].length-1,null)}markForCheck(){gi(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){mi(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,r){Be(!0);try{mi(t,e,r)}finally{Be(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Bi(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class $i extends Wi{constructor(t){super(t),this._view=t}detectChanges(){vi(this._view)}checkNoChanges(){!function(t){Be(!0);try{vi(t)}finally{Be(!1)}}(this._view)}get context(){return null}}let Xi,Yi,Qi;function Ji(t,e,r){return Xi||(Xi=class extends t{}),new Xi(sn(e,r))}function Zi(t,e,r,n){return Yi||(Yi=class extends t{constructor(t,e,r){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=r}createEmbeddedView(t){const e=this._declarationTContainer.tViews,r=Ln(this._declarationView,e,t,16,null,e.node);r[17]=this._declarationView[this._declarationTContainer.index];const n=this._declarationView[5];null!==n&&(r[5]=n.createEmbeddedView(e)),Vn(e,r,t);const i=new Wi(r);return i._tViewNode=r[6],i}}),0===r.type?new Yi(n,r,Ji(e,r,n)):null}function Ki(t,e,r,n){let i;Qi||(Qi=class extends t{constructor(t,e,r){super(),this._lContainer=t,this._hostTNode=e,this._hostView=r}get element(){return Ji(e,this._hostTNode,this._hostView)}get injector(){return new Vr(this._hostTNode,this._hostView)}get parentInjector(){const t=Mr(this._hostTNode,this._hostView),e=br(t,this._hostView),r=function(t,e,r){if(r.parent&&-1!==r.parent.injectorIndex){const t=r.parent.injectorIndex;let e=r.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let n=_r(t),i=e,s=e[6];for(;n>1;)i=i[15],s=i[6],n--;return s}(t,this._hostView,this._hostTNode);return yr(t)&&null!=r?new Vr(r,e):new Vr(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-9}createEmbeddedView(t,e,r){const n=t.createEmbeddedView(e||{});return this.insert(n,r),n}createComponent(t,e,r,n,i){const s=r||this.parentInjector;if(!i&&null==t.ngModule&&s){const t=s.get(Kt,null);t&&(i=t)}const o=t.create(s,n,void 0,i);return this.insert(o.hostView,e),o}insert(t,e){const r=t._lView,n=r[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),ke(r[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=r[3],n=new Qi(e,e[6],e[3]);n.detach(n.indexOf(t))}}const i=this._adjustIndex(e);return function(t,e,r,n){const i=9+n,s=r.length;n>0&&(r[i-1][4]=e),n<s-9?(e[4]=r[i],re(r,9+n,e)):(r.push(e),e[4]=null),e[3]=r;const o=e[17];null!==o&&r!==o&&function(t,e){const r=t[5],n=e[3][3][16];16!=(16&n[2])&&e[16]!==n&&(t[2]|=1),null===r?t[5]=[e]:r.push(e)}(o,e);const a=e[5];null!==a&&a.insertView(t),e[2]|=128}(n,r,this._lContainer,i),Ti(n,r,!0,Hi(i,this._lContainer)),t.attachToViewContainerRef(this),re(this._lContainer[8],i,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1);(function(t,e){const r=qi(t,e);r&&Ni(r[1],r)})(this._lContainer,e),ne(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),r=qi(this._lContainer,e);return r&&null!=ne(this._lContainer[8],e)?new Wi(r):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const s=n[r.index];if(ke(s))i=s,function(t,e){t[2]=-2}(i);else{let t;if(4===r.type)t=rn(s);else if(t=n[11].createComment(""),Ee(n)){const e=n[11],i=sn(r,n);Ii(e,Ri(e,i),t,function(t,e){return cr(t)?t.nextSibling(e):e.nextSibling}(e,i))}else Li(n[1],n,t,r);n[r.index]=i=ui(s,n,t,r),pi(n,i)}return new Qi(i,r,n)}let ts=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>es(),t})();const es=function(t=!1){return function(t,e,r){if(!r&&je(t)){const r=ln(t.index,e);return new Wi(r,r)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Wi(e[16],e):null}(Re(),Ie(),t)},rs=new Lt("Set Injector scope."),ns={},is={},ss=[];let os=void 0;function as(){return void 0===os&&(os=new Zt),os}function ls(t,e=null,r=null,n){return new hs(t,r,e||as(),n)}class hs{constructor(t,e,r,n=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&ee(e,r=>this.processProvider(r,t,e)),ee([t],t=>this.processInjectorType(t,[],i)),this.records.set(Ht,ds(void 0,this));const s=this.records.get(rs);this.scope=null!=s?s.value:null,this.source=n||("object"==typeof t?null:bt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Vt,r=lt.Default){this.assertNotDestroyed();const n=Wt(this);try{if(!(r<.SkipSelf)){let e=this.records.get(t);if(void 0===e){const r=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Lt)&&ft(t);e=r&&this.injectableDefInScope(r)?ds(us(t),ns):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(r<.Self?as():this.parent).get(t,e=r<.Optional&&e===Vt?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(bt(t)),n)throw s;return function(t,e,r,n){const i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,r,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=bt(e);if(Array.isArray(e))i=e.map(bt).join(" -> ");else if("object"==typeof e){let t=[];for(let r in e)if(e.hasOwnProperty(r)){let n=e[r];t.push(r+":"+("string"==typeof n?JSON.stringify(n):bt(n)))}i=`{${t.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(Bt,"\n ")}`}("\n"+t.message,i,r,n),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{Wt(n)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,r)=>t.push(bt(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,r){if(!(t=At(t)))return!1;let n=gt(t);const i=null==n&&t.ngModule||void 0,s=void 0===i?t:i,o=-1!==r.indexOf(s);if(void 0!==i&&(n=gt(i)),null==n)return!1;if(null!=n.imports&&!o){let t;r.push(s);try{ee(n.imports,n=>{this.processInjectorType(n,e,r)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:r,providers:n}=t[e];ee(n,t=>this.processProvider(t,r,n||ss))}}this.injectorDefTypes.add(s),this.records.set(s,ds(n.factory,ns));const a=n.providers;if(null!=a&&!o){const e=t;ee(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,r){let n=ps(t=At(t))?t:At(t&&t.provide);const i=function(t,e,r){return fs(t)?ds(void 0,t.useValue):ds(cs(t,e,r),ns)}(t,e,r);if(ps(t)||!0!==t.multi){const t=this.records.get(n);t&&void 0!==t.multi&&mn()}else{let e=this.records.get(n);e?void 0===e.multi&&mn():(e=ds(void 0,ns,!0),e.factory=()=>Jt(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,i)}hydrate(t,e){var r;return e.value===is?function(t){throw new Error(`Cannot instantiate cyclic dependency! ${t}`)}(bt(t)):e.value===ns&&(e.value=is,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(r=e.value)&&"object"==typeof r&&"function"==typeof r.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function us(t){const e=ft(t),r=null!==e?e.factory:Ce(t);if(null!==r)return r;const n=gt(t);if(null!==n)return n.factory;if(t instanceof Lt)throw new Error(`Token ${bt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const r=ie(e,"?");throw new Error(`Can't resolve all parameters for ${bt(t)}: (${r.join(", ")}).`)}const r=function(t){const e=t&&(t[mt]||t[xt]||t[yt]&&t[yt]());if(e){const r=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${r}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${r}" class.`),e}return null}(t);return null!==r?()=>r.factory(t):()=>new t}(t);throw new Error("unreachable")}function cs(t,e,r){let n=void 0;if(ps(t)){const e=At(t);return Ce(e)||us(e)}if(fs(t))n=()=>At(t.useValue);else if((i=t)&&i.useFactory)n=()=>t.useFactory(...Jt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>Yt(At(t.useExisting));else{const i=At(t&&(t.useClass||t.provide));if(i||function(t,e,r){let n="";throw t&&e&&(n=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==r?"?"+r+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${bt(t)}'`+n)}(e,r,t),!function(t){return!!t.deps}(t))return Ce(i)||us(i);n=()=>new i(...Jt(t.deps))}var i;return n}function ds(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function fs(t){return null!==t&&"object"==typeof t&&zt in t}function ps(t){return"function"==typeof t}const gs=function(t,e,r){return function(t,e=null,r=null,n){const i=ls(t,e,r,n);return i._resolveInjectorDefTypes(),i}({name:r},e,t,r)};let ms=(()=>{class t{static create(t,e){return Array.isArray(t)?gs(t,e,""):gs(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Vt,t.NULL=new Zt,t.\u0275prov=ct({token:t,providedIn:"any",factory:()=>Yt(Ht)}),t.__NG_ELEMENT_ID__=-1,t})();const vs=new Lt("AnalyzeForEntryComponents");let ys=new Map;const xs=new Set;function _s(t){return"string"==typeof t?t:t.text()}function bs(t,e){let r=t.styles,n=t.classes,i=0;for(let s=0;s<e.length;s++){const t=e[s];"number"==typeof t?i=t:1==i?n=wt(n,t):2==i&&(r=wt(r,t+": "+e[++s]+";"))}null!==r&&(t.styles=r),null!==n&&(t.classes=n)}let ws=null;function Cs(){if(!ws){const t=Et.Symbol;if(t&&t.iterator)ws=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const r=t[e];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(ws=r)}}}return ws}function Ss(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}class As{constructor(t){this.wrapped=t}static wrap(t){return new As(t)}static unwrap(t){return As.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof As}}function ks(t){return!!Ts(t)&&(Array.isArray(t)||!(t instanceof Map)&&Cs()in t)}function Ts(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function js(t,e,r){return!Object.is(t[e],r)&&(t[e]=r,!0)}function qs(t,e,r,n){const i=Ie();return js(i,ze(),e)&&function(t,e,r,n,i,s,o){const a=nn(t,i),l=i[11];if(null==r)cr(l)?l.removeAttribute(a,e,o):a.removeAttribute(e);else{const i=on(n,t),h=null==s?wr(r):s(r,i.tagName||"",e);cr(l)?l.setAttribute(a,e,h,o):o?a.setAttributeNS(o,e,h):a.setAttribute(e,h)}}(er(),t,e,De(),i,r,n),qs}function Ns(t,e,r,n,i,s,o,a){const l=Ie(),h=De(),u=t+19,c=h.firstCreatePass?function(t,e,r,n,i,s,o,a,l){const h=e.consts,u=Hn(e,r[6],t,0,o||null,dn(h,a));Zn(e,r,u,dn(h,l)),nr(e,u);const c=u.tViews=Xn(2,-1,n,i,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,h),d=Yn(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,c.node=d,null!==e.queries&&(e.queries.template(e,u),c.queries=e.queries.embeddedTView(u)),u}(t,h,l,e,r,n,i,s,o):h.data[u];Fe(c,!1);const d=l[11].createComment("");Li(h,l,d,c),pn(d,l),pi(l,l[u]=ui(d,l,d,c)),qe(c)&&Un(h,l,c),null!=o&&Wn(l,c,a)}function Es(t){return an(Me.lFrame.contextLView,t)}function Ms(t,e=lt.Default){const r=Ie();return null==r?Yt(t,e):Ir(Re(),r,At(t),e)}function Os(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const r=t.attrs;if(r){const t=r.length;let n=0;for(;n<t;){const i=r[n];if(pr(i))break;if(0===i)n+=2;else if("number"==typeof i)for(n++;n<t&&"string"==typeof r[n];)n++;else{if(i===e)return r[n+1];n+=2}}}return null}(Re(),t)}function Is(){throw new Error("invalid")}function Ds(t,e,r){const n=Ie();if(js(n,ze(),e)){const i=er();Jn(De(),n,i,t,e,r)}return Ds}function Ps(t,e,r,n,i){const s=i?"class":"style";Ci(t,r,e.inputs[s],s,n)}function Rs(t,e,r,n){const i=Ie(),s=De(),o=19+t,a=i[11],l=i[o]=Fn(e,a,Me.lFrame.currentNamespace),h=s.firstCreatePass?function(t,e,r,n,i,s,o){const a=e.consts,l=dn(a,s),h=Hn(e,r[6],t,3,i,l);return Zn(e,r,h,dn(a,o)),null!==h.mergedAttrs&&bs(h,h.mergedAttrs),null!==e.queries&&e.queries.elementStart(e,h),h}(t,s,i,0,e,r,n):s.data[o];Fe(h,!0);const u=h.mergedAttrs;null!==u&&fr(a,l,u);const c=h.classes;null!==c&&Ui(a,l,c);const d=h.styles;null!==d&&Gi(a,l,d),Li(s,i,l,h),0===Me.lFrame.elementDepthCount&&pn(l,i),Me.lFrame.elementDepthCount++,qe(h)&&(Un(s,i,h),function(t,e,r){if(Te(e)){const n=e.directiveEnd;for(let i=e.directiveStart;i<n;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,r[i],i)}}}(s,h,i)),null!==n&&Wn(i,h)}function Fs(){let t=Re();Le()?He():(t=t.parent,Fe(t,!1));const e=t;Me.lFrame.elementDepthCount--;const r=De();r.firstCreatePass&&(nr(r,t),Te(t)&&r.queries.elementEnd(t)),null!==e.classes&&function(t){return 0!=(16&t.flags)}(e)&&Ps(r,e,Ie(),e.classes,!0),null!==e.styles&&function(t){return 0!=(32&t.flags)}(e)&&Ps(r,e,Ie(),e.styles,!1)}function Ls(t,e,r,n){Rs(t,e,r,n),Fs()}function Hs(){return Ie()}function Vs(t){return!!t&&"function"==typeof t.then}function Bs(t){return!!t&&"function"==typeof t.subscribe}function zs(t,e,r=!1,n){const i=Ie(),s=De(),o=Re();return function(t,e,r,n,i,s,o=!1,a){const l=qe(n),h=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=_i(e);let c=!0;if(3===n.type){const d=sn(n,e),f=a?a(d):ce,p=f.target||d,g=u.length,m=a?t=>a(rn(t[n.index])).target:n.index;if(cr(r)){let o=null;if(!a&&l&&(o=function(t,e,r,n){const i=t.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const t=i[s];if(t===r&&i[s+1]===n){const t=e[7],r=i[s+2];return t.length>r?t[r]:null}"string"==typeof t&&(s+=2)}return null}(t,e,i,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,c=!1;else{s=Us(n,e,s,!1);const t=r.listen(f.name||p,i,s);u.push(s,t),h&&h.push(i,m,g,g+1)}}else s=Us(n,e,s,!0),p.addEventListener(i,s,o),u.push(s),h&&h.push(i,m,g,o)}const d=n.outputs;let f;if(c&&null!==d&&(f=d[i])){const t=f.length;if(t)for(let r=0;r<t;r+=2){const t=e[f[r]][f[r+1]].subscribe(s),o=u.length;u.push(s,t),h&&h.push(i,n.index,o,-(o+1))}}}(s,i,i[11],o,t,e,r,n),zs}function Gs(t,e,r){try{return!1!==e(r)}catch(n){return wi(t,n),!1}}function Us(t,e,r,n){return function i(s){if(s===Function)return r;const o=2&t.flags?ln(t.index,e):e;0==(32&e[2])&&gi(o);let a=Gs(e,r,s),l=i.__ngNextListenerFn__;for(;l;)a=Gs(e,l,s)&&a,l=l.__ngNextListenerFn__;return n&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function Ws(t=1){return function(t){return(Me.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Me.lFrame.contextLView))[8]}(t)}function $s(t,e){let r=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let i=0;i<e.length;i++){const s=e[i];if("*"!==s){if(null===n?Cn(t,s,!0):Sn(n,s))return i}else r=i}return r}function Xs(t){const e=Ie()[16][6];if(!e.projection){const r=e.projection=ie(t?t.length:1,null),n=r.slice();let i=e.child;for(;null!==i;){const e=t?$s(i,t):0;null!==e&&(n[e]?n[e].projectionNext=i:r[e]=i,n[e]=i),i=i.next}}}function Ys(t,e=0,r){const n=Ie(),i=De(),s=Hn(i,n[6],t,1,null,r||null);null===s.projection&&(s.projection=e),He(),function(t,e,r){zi(e[11],0,e,r,Oi(t,r,e),Fi(r.parent||e[6],e))}(i,n,s)}const Qs=[];function Js(t,e,r,n,i){const s=t[r+1],o=null===e;let a=n?Mn(s):In(s),l=!1;for(;0!==a&&(!1===l||o);){const r=t[a+1];Zs(t[a],e)&&(l=!0,t[a+1]=n?Pn(r):On(r)),a=n?Mn(r):In(r)}l&&(t[r+1]=n?On(s):Pn(s))}function Zs(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ae(t,e)>=0}const Ks={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function to(t){return t.substring(Ks.key,Ks.keyEnd)}function eo(t,e){const r=Ks.textEnd;return r===e?-1:(e=Ks.keyEnd=function(t,e,r){for(;e<r&&t.charCodeAt(e)>32;)e++;return e}(t,Ks.key=e,r),ro(t,e,r))}function ro(t,e,r){for(;e<r&&t.charCodeAt(e)<=32;)e++;return e}function no(t,e){return function(t,e,r,n){const i=Ie(),s=De(),o=Ge(2);if(s.firstUpdatePass&&ao(s,t,o,!0),e!==Tn&&js(i,o,e)){let n;null==r&&(n=function(){const t=Me.lFrame;return null===t?null:t.currentSanitizer}())&&(r=n),uo(s,s.data[er()+19],i,i[11],t,i[o+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=bt(Xr(t)))),t}(e,r),!0,o)}}(t,e,null),no}function io(t){!function(t,e,r,n){const i=De(),s=Ge(2);i.firstUpdatePass&&ao(i,null,s,!0);const o=Ie();if(r!==Tn&&js(o,s,r)){const n=i.data[er()+19];if(po(n,!0)&&!oo(i,s)){let t=n.classes;null!==t&&(r=wt(t,r||"")),Ps(i,n,o,r,!0)}else!function(t,e,r,n,i,s,o,a){i===Tn&&(i=Qs);let l=0,h=0,u=0<i.length?i[0]:null,c=0<s.length?s[0]:null;for(;null!==u||null!==c;){const o=l<i.length?i[l+1]:void 0,d=h<s.length?s[h+1]:void 0;let f=null,p=void 0;u===c?(l+=2,h+=2,o!==d&&(f=c,p=d)):null===c||null!==u&&u<c?(l+=2,f=u):(h+=2,f=c,p=d),null!==f&&uo(t,e,r,n,f,p,!0,a),u=l<i.length?i[l]:null,c=h<s.length?s[h]:null}}(i,n,o,o[11],o[s+1],o[s+1]=function(t,e,r){if(null==r||""===r)return Qs;const n=[],i=Xr(r);if(Array.isArray(i))for(let s=0;s<i.length;s++)t(n,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&t(n,s,i[s]);else"string"==typeof i&&e(n,i);return n}(t,e,r),0,s)}}(se,so,t)}function so(t,e){for(let r=function(t){return function(t){Ks.key=0,Ks.keyEnd=0,Ks.value=0,Ks.valueEnd=0,Ks.textEnd=t.length}(t),eo(t,ro(t,0,Ks.textEnd))}(e);r>=0;r=eo(e,r))se(t,to(e),!0)}function oo(t,e){return e>=t.expandoStartIndex}function ao(t,e,r,n){const i=t.data;if(null===i[r+1]){const s=i[er()+19],o=oo(t,r);po(s,n)&&null===e&&!o&&(e=!1),e=function(t,e,r,n){const i=function(t){const e=Me.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let s=n?e.residualClasses:e.residualStyles;if(null===i)0===(n?e.classBindings:e.styleBindings)&&(r=ho(r=lo(null,t,e,r,n),e.attrs,n),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==i)if(r=lo(i,t,e,r,n),null===s){let r=function(t,e,r){const n=r?e.classBindings:e.styleBindings;if(0!==In(n))return t[Mn(n)]}(t,e,n);void 0!==r&&Array.isArray(r)&&(r=lo(null,t,e,r[1],n),r=ho(r,e.attrs,n),function(t,e,r,n){t[Mn(r?e.classBindings:e.styleBindings)]=n}(t,e,n,r))}else s=function(t,e,r){let n=void 0;const i=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<i;s++)n=ho(n,t[s].hostAttrs,r);return ho(n,e.attrs,r)}(t,e,n)}return void 0!==s&&(n?e.residualClasses=s:e.residualStyles=s),r}(i,s,e,n),function(t,e,r,n,i,s){let o=s?e.classBindings:e.styleBindings,a=Mn(o),l=In(o);t[n]=r;let h,u=!1;if(Array.isArray(r)){const t=r;h=t[1],(null===h||ae(t,h)>0)&&(u=!0)}else h=r;if(i)if(0!==l){const e=Mn(t[a+1]);t[n+1]=En(e,a),0!==e&&(t[e+1]=Dn(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=En(a,0),0!==a&&(t[a+1]=Dn(t[a+1],n)),a=n;else t[n+1]=En(l,0),0===a?a=n:t[l+1]=Dn(t[l+1],n),l=n;u&&(t[n+1]=On(t[n+1])),Js(t,h,n,!0),Js(t,h,n,!1),function(t,e,r,n,i){const s=i?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&ae(s,e)>=0&&(r[n+1]=Pn(r[n+1]))}(e,h,t,n,s),o=En(a,l),s?e.classBindings=o:e.styleBindings=o}(i,s,e,r,o,n)}}function lo(t,e,r,n,i){let s=null;const o=r.directiveEnd;let a=r.directiveStylingLast;for(-1===a?a=r.directiveStart:a++;a<o&&(s=e[a],n=ho(n,s.hostAttrs,i),s!==t);)a++;return null!==t&&(r.directiveStylingLast=a),n}function ho(t,e,r){const n=r?1:2;let i=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?i=o:i===n&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),se(t,o,!!r||e[++s]))}return void 0===t?null:t}function uo(t,e,r,n,i,s,o,a){if(3!==e.type)return;const l=t.data,h=l[a+1];fo(1==(1&h)?co(l,e,r,i,In(h),o):void 0)||(fo(s)||function(t){return 2==(2&t)}(h)&&(s=co(l,null,r,i,a,o)),function(t,e,r,n,i){const s=cr(t);if(e)i?s?t.addClass(r,n):r.classList.add(n):s?t.removeClass(r,n):r.classList.remove(n);else{const e=-1==n.indexOf("-")?void 0:2;null==i?s?t.removeStyle(r,n,e):r.style.removeProperty(n):s?t.setStyle(r,n,i,e):r.style.setProperty(n,i)}}(n,o,nn(er(),r),i,s))}function co(t,e,r,n,i,s){const o=null===e;let a=void 0;for(;i>0;){const e=t[i],s=Array.isArray(e),l=s?e[1]:e,h=null===l;let u=r[i+1];u===Tn&&(u=h?Qs:void 0);let c=h?oe(u,n):l===n?u:void 0;if(s&&!fo(c)&&(c=oe(e,n)),fo(c)&&(a=c,o))return a;const d=t[i+1];i=o?Mn(d):In(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=oe(t,n))}return a}function fo(t){return void 0!==t}function po(t,e){return 0!=(t.flags&(e?16:32))}function go(t,e=""){const r=Ie(),n=De(),i=t+19,s=n.firstCreatePass?Hn(n,r[6],t,3,null,null):n.data[i],o=r[i]=function(t,e){return cr(e)?e.createText(t):e.createTextNode(t)}(e,r[11]);Li(n,r,o,s),Fe(s,!1)}function mo(t){return vo("",t,""),mo}function vo(t,e,r){const n=Ie(),i=function(t,e,r,n){return js(t,ze(),r)?e+wr(r)+n:Tn}(n,t,e,r);return i!==Tn&&function(t,e,r){const n=nn(e,t),i=t[11];cr(i)?i.setValue(n,r):n.textContent=r}(n,er(),i),vo}function yo(t,e,r){const n=Ie();if(js(n,ze(),e)){const i=er();Jn(De(),n,i,t,e,r,!0)}return yo}function xo(t,e){const r=hn(t)[1],n=r.data.length-1;nr(r,{directiveStart:n,directiveEnd:n+1})}function _o(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,r=!0;const n=[t];for(;e;){let i=void 0;if(Ne(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(r){n.push(i);const e=t;e.inputs=bo(t.inputs),e.declaredInputs=bo(t.declaredInputs),e.outputs=bo(t.outputs);const r=i.hostBindings;r&&So(t,r);const s=i.viewQuery,o=i.contentQueries;if(s&&wo(t,s),o&&Co(t,o),ut(t.inputs,i.inputs),ut(t.declaredInputs,i.declaredInputs),ut(t.outputs,i.outputs),Ne(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}e.afterContentChecked=e.afterContentChecked||i.afterContentChecked,e.afterContentInit=t.afterContentInit||i.afterContentInit,e.afterViewChecked=t.afterViewChecked||i.afterViewChecked,e.afterViewInit=t.afterViewInit||i.afterViewInit,e.doCheck=t.doCheck||i.doCheck,e.onDestroy=t.onDestroy||i.onDestroy,e.onInit=t.onInit||i.onInit}const e=i.features;if(e)for(let n=0;n<e.length;n++){const i=e[n];i&&i.ngInherit&&i(t),i===_o&&(r=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,r=null;for(let n=t.length-1;n>=0;n--){const i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=mr(i.hostAttrs,r=mr(r,i.hostAttrs))}}(n)}function bo(t){return t===ce?{}:t===de?[]:t}function wo(t,e){const r=t.viewQuery;t.viewQuery=r?(t,n)=>{e(t,n),r(t,n)}:e}function Co(t,e){const r=t.contentQueries;t.contentQueries=r?(t,n,i)=>{e(t,n,i),r(t,n,i)}:e}function So(t,e){const r=t.hostBindings;t.hostBindings=r?(t,n)=>{e(t,n),r(t,n)}:e}class Ao{constructor(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function ko(){return To.ngInherit=!0,To}function To(t){t.type.prototype.ngOnChanges&&(t.setInput=jo,t.onChanges=function(){const t=qo(this),e=t&&t.current;if(e){const r=t.previous;if(r===ce)t.previous=e;else for(let t in e)r[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function jo(t,e,r,n){const i=qo(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:ce,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[r],l=o[a];s[a]=new Ao(l&&l.currentValue,e,o===ce),t[n]=e}function qo(t){return t.__ngSimpleChanges__||null}function No(t,e,r,n,i){if(t=At(t),Array.isArray(t))for(let s=0;s<t.length;s++)No(t[s],e,r,n,i);else{const s=De(),o=Ie();let a=ps(t)?t:At(t.provide),l=cs(t);const h=Re(),u=65535&h.providerIndexes,c=h.directiveStart,d=h.providerIndexes>>16;if(ps(t)||!t.multi){const n=new hr(l,i,Ms),f=Oo(a,e,i?u:u+d,c);-1===f?(Or(qr(h,o),s,a),Eo(s,t,e.length),e.push(a),h.directiveStart++,h.directiveEnd++,i&&(h.providerIndexes+=65536),r.push(n),o.push(n)):(r[f]=n,o[f]=n)}else{const f=Oo(a,e,u+d,c),p=Oo(a,e,u,u+d),g=f>=0&&r[f],m=p>=0&&r[p];if(i&&!m||!i&&!g){Or(qr(h,o),s,a);const u=function(t,e,r,n,i){const s=new hr(t,r,Ms);return s.multi=[],s.index=e,s.componentProviders=0,Mo(s,i,n&&!r),s}(i?Do:Io,r.length,i,n,l);!i&&m&&(r[p].providerFactory=u),Eo(s,t,e.length),e.push(a),h.directiveStart++,h.directiveEnd++,i&&(h.providerIndexes+=65536),r.push(u),o.push(u)}else Eo(s,t,f>-1?f:p),Mo(r[i?p:f],l,!i&&n);!i&&n&&m&&r[p].componentProviders++}}}function Eo(t,e,r){if(ps(e)||e.useClass){const n=(e.useClass||e).prototype.ngOnDestroy;n&&(t.destroyHooks||(t.destroyHooks=[])).push(r,n)}}function Mo(t,e,r){t.multi.push(e),r&&t.componentProviders++}function Oo(t,e,r,n){for(let i=r;i<n;i++)if(e[i]===t)return i;return-1}function Io(t,e,r,n){return Po(this.multi,[])}function Do(t,e,r,n){const i=this.multi;let s;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Fr(r,r[1],this.providerFactory.index,n);s=e.slice(0,t),Po(i,s);for(let r=t;r<e.length;r++)s.push(e[r])}else s=[],Po(i,s);return s}function Po(t,e){for(let r=0;r<t.length;r++)e.push((0,t[r])());return e}function Ro(t,e=[]){return r=>{r.providersResolver=(r,n)=>function(t,e,r){const n=De();if(n.firstCreatePass){const i=Ne(t);No(r,n.data,n.blueprint,i,!0),No(e,n.data,n.blueprint,i,!1)}}(r,n?n(t):t,e)}}class Fo{}class Lo{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${bt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Ho=(()=>{class t{}return t.NULL=new Lo,t})(),Vo=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Bo(t),t})();const Bo=function(t){return Ji(t,Re(),Ie())};class zo{}const Go=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let Uo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Wo(),t})();const Wo=function(){const t=Ie(),e=ln(Re().index,t);return function(t){const e=t[11];if(cr(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ae(e)?e:t)};let $o=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>null}),t})();class Xo{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Yo=new Xo("9.0.5");class Qo{constructor(){}supports(t){return ks(t)}create(t){return new Zo(t)}}const Jo=(t,e)=>e;class Zo{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Jo}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,r=this._removalsHead,n=0,i=null;for(;e||r;){const s=!r||e&&e.currentIndex<ra(r,n,i)?e:r,o=ra(s,n,i),a=s.currentIndex;if(s===r)n--,r=r._nextRemoved;else if(e=e._next,null==s.previousIndex)n++;else{i||(i=[]);const t=o-n,e=a-n;if(t!=e){for(let r=0;r<t;r++){const n=r<i.length?i[r]:i[r]=0,s=n+r;e<=s&&s<t&&(i[r]=n+1)}i[s.previousIndex]=e-t}}o!==a&&t(s,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!ks(t))throw new Error(`Error trying to diff '${bt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,r,n,i=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)r=t[e],n=this._trackByFn(e,r),null!==i&&Ss(i.trackById,n)?(s&&(i=this._verifyReinsertion(i,r,n,e)),Ss(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,n,e),s=!0),i=i._next}else e=0,function(t,e){if(Array.isArray(t))for(let r=0;r<t.length;r++)e(t[r]);else{const r=t[Cs()]();let n;for(;!(n=r.next()).done;)e(n.value)}}(t,t=>{n=this._trackByFn(e,t),null!==i&&Ss(i.trackById,n)?(s&&(i=this._verifyReinsertion(i,t,n,e)),Ss(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,n,e),s=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,r,n){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,n))?(Ss(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,n)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Ss(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,n)):t=this._addAfter(new Ko(e,r),i,n),t}_verifyReinsertion(t,e,r,n){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,i=t._nextRemoved;return null===n?this._removalsHead=i:n._nextRemoved=i,null===i?this._removalsTail=n:i._prevRemoved=n,this._insertAfter(t,e,r),this._addToMoves(t,r),t}_moveAfter(t,e,r){return this._unlink(t),this._insertAfter(t,e,r),this._addToMoves(t,r),t}_addAfter(t,e,r){return this._insertAfter(t,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,r){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ea),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,r=t._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,t}_addToMoves(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ea),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ko{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ta{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<=r.currentIndex)&&Ss(r.trackById,t))return r;return null}remove(t){const e=t._prevDup,r=t._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head}}class ea{constructor(){this.map=new Map}put(t){const e=t.trackById;let r=this.map.get(e);r||(r=new ta,this.map.set(e,r)),r.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ra(t,e,r){const n=t.previousIndex;if(null===n)return n;let i=0;return r&&n<r.length&&(i=r[n]),n+e+i}class na{constructor(){}supports(t){return t instanceof Map||Ts(t)}create(){return new ia}}class ia{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Ts(t)))throw new Error(`Error trying to diff '${bt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(r,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const r=t._prev;return e._next=t,e._prev=r,t._prev=e,r&&(r._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const n=r._prev,i=r._next;return n&&(n._next=i),i&&(i._prev=n),r._next=null,r._prev=null,r}const r=new sa(t);return this._records.set(t,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Ss(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(r=>e(t[r],r))}}class sa{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let oa=(()=>{class t{constructor(t){this.factories=t}static create(e,r){if(null!=r){const t=r.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>{if(!r)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,r)},deps:[[t,new at,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${r=t,r.name||typeof r}'`);var r}}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>new t([new Qo])}),t})(),aa=(()=>{class t{constructor(t){this.factories=t}static create(e,r){if(r){const t=r.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>{if(!r)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,r)},deps:[[t,new at,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>new t([new na])}),t})();const la=[new na],ha=new oa([new Qo]),ua=new aa(la);let ca=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>da(t,Vo),t})();const da=function(t,e){return Zi(t,e,Re(),Ie())};let fa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>pa(t,Vo),t})();const pa=function(t,e){return Ki(t,e,Re(),Ie())},ga={};class ma extends Ho{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=we(t);return new xa(e,this.ngModule)}}function va(t){const e=[];for(let r in t)t.hasOwnProperty(r)&&e.push({propName:t[r],templateName:r});return e}const ya=new Lt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Sr});class xa extends Fo{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(kn).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return va(this.componentDef.inputs)}get outputs(){return va(this.componentDef.outputs)}create(t,e,r,n){const i=(n=n||this.ngModule)?function(t,e){return{get:(r,n,i)=>{const s=t.get(r,ga,i);return s!==ga||n===ga?s:e.get(r,n,i)}}}(t,n.injector):t,s=i.get(zo,dr),o=i.get($o,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=r?function(t,e,r){if(cr(t))return t.selectRootElement(e,r===he.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,r,this.componentDef.encapsulation):Fn(l,s.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,c="string"==typeof r&&/^#root-ng-internal-isolated-\d+/.test(r),d={components:[],scheduler:Sr,clean:xi,playerHandler:null,flags:0},f=Xn(0,-1,null,1,0,null,null,null,null,null),p=Ln(null,f,d,u,null,null,s,a,o,i);let g,m;Ye(p,null);try{const t=function(t,e,r,n,i,s){const o=r[1];r[19]=t;const a=Hn(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(bs(a,l),null!==t&&(fr(i,t,l),null!==a.classes&&Ui(i,t,a.classes),null!==a.styles&&Gi(i,t,a.styles)));const h=n.createRenderer(t,e),u=Ln(r,$n(e),null,e.onPush?64:16,r[19],a,n,h,void 0);return o.firstCreatePass&&(Or(qr(a,r),o,e.type),ni(o,a),si(a,r.length,1)),pi(r,u),r[19]=u}(h,this.componentDef,p,s,a);if(h)if(r)fr(a,h,["ng-version",Yo.full]);else{const{attrs:t,classes:e}=function(t){const e=[],r=[];let n=1,i=2;for(;n<t.length;){let s=t[n];if("string"==typeof s)2===i?""!==s&&e.push(s,t[++n]):8===i&&r.push(s);else{if(!bn(i))break;i=s}n++}return{attrs:e,classes:r}}(this.componentDef.selectors[0]);t&&fr(a,h,t),e&&e.length>0&&Ui(a,h,e.join(" "))}m=on(p[1],0),e&&(m.projection=e.map(t=>Array.from(t))),g=function(t,e,r,n,i){const s=r[1],o=function(t,e,r){const n=Re();t.firstCreatePass&&(r.providersResolver&&r.providersResolver(r),ri(t,n,1),oi(t,e,r));const i=Fr(e,t,e.length-1,n);pn(i,e);const s=sn(n,e);return s&&pn(s,e),i}(s,r,e);n.components.push(o),t[8]=o,i&&i.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,r.length-1);const a=Re();if(s.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){rr(a.index-19);const t=r[1];Kn(t,e),ti(t,r,e.hostVars),ei(e,o)}return o}(t,this.componentDef,p,d,[xo]),Vn(f,p,null)}finally{tr()}const v=new _a(this.componentType,g,Ji(Vo,m,p),p,m);return r&&!c||(v.hostView._tViewNode.child=m),v}}class _a extends class{}{constructor(t,e,r,n,i){super(),this.location=r,this._rootLView=n,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new $i(n),this.hostView._tViewNode=function(t,e,r,n){let i=t.node;return null==i&&(t.node=i=Yn(0,null,2,-1,null,null)),n[6]=i}(n[1],0,0,n),this.componentType=t}get injector(){return new Vr(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const ba=void 0;var wa=["en",[["a","p"],["AM","PM"],ba],[["AM","PM"],ba,ba],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ba,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ba,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ba,"{1} 'at' {0}",ba],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(t){let e=Math.floor(Math.abs(t)),r=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===r?1:5}];let Ca={};function Sa(t){return t in Ca||(Ca[t]=Et.ng&&Et.ng.common&&Et.ng.common.locales&&Et.ng.common.locales[t]),Ca[t]}const Aa=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,PluralCase:19,ExtraData:20};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();let ka="en-US";function Ta(t){var e,r;r="Expected localeId to be defined",null==(e=t)&&function(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+` [Expected=> null != ${e} <=Actual]`)}(r,e),"string"==typeof t&&(ka=t.toLowerCase().replace(/_/g,"-"))}const ja=new Map;class qa extends Kt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ma(this);const r=Se(t),n=t[Pt]||null;n&&Ta(n),this._bootstrapComponents=Ar(r.bootstrap),this._r3Injector=ls(t,e,[{provide:Kt,useValue:this},{provide:Ho,useValue:this.componentFactoryResolver}],bt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ms.THROW_IF_NOT_FOUND,r=lt.Default){return t===ms||t===Kt||t===Ht?this:this._r3Injector.get(t,e,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Na extends te{constructor(t){super(),this.moduleType=t,null!==Se(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,r){if(e&&e!==r)throw new Error(`Duplicate module registered for ${t} - ${bt(e)} vs ${bt(e.name)}`)})(t,ja.get(t),e),ja.set(t,e)}let r=e.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach(e=>t(e))}(t)}create(t){return new qa(this.moduleType,t)}}function Ea(t,e){const r=De();let n;const i=t+19;r.firstCreatePass?(n=function(t,e){if(e)for(let r=e.length-1;r>=0;r--){const n=e[r];if(t===n.name)return n}throw new Error(`The pipe '${t}' could not be found!`)}(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];const s=n.factory||(n.factory=Ce(n.type)),o=$t(Ms),a=s();return $t(o),function(t,e,r,n){const i=r+19;i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(r,Ie(),t,a),a}function Ma(t,e,r){const n=Ie(),i=an(n,t);return function(t,e){return As.isWrapped(e)&&(e=As.unwrap(e),t[Me.lFrame.bindingIndex]=Tn),e}(n,function(t,e){return t[1].data[e+19].pure}(n,t)?function(t,e,r,n,i,s){const o=e+r;return js(t,o,i)?function(t,e,r){return t[e]=r}(t,o+1,s?n.call(s,i):n(i)):function(t,e){return t[e]}(t,o+1)}(n,function(){const t=Me.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),e,i.transform,r,i):i.transform(r))}class Oa extends A{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,r){let n,i=t=>null,s=()=>null;t&&"object"==typeof t?(n=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(n=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),r&&(s=this.__isAsync?()=>{setTimeout(()=>r())}:()=>{r()}));const o=super.subscribe(n,i,s);return t instanceof c&&t.add(o),o}}function Ia(){return this._results[Cs()]()}class Da{constructor(){this.dirty=!0,this._results=[],this.changes=new Oa,this.length=0;const t=Cs(),e=Da.prototype;e[t]||(e[t]=Ia)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,r){void 0===r&&(r=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(r===e&&(r=e.slice(0,n)),t(i,r)):r!==e&&r.push(i)}return r}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Pa{constructor(t){this.queryList=t,this.matches=null}clone(){return new Pa(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ra{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const r=null!==t.contentQueries?t.contentQueries[0]:e.length,n=[];for(let t=0;t<r;t++){const r=e.getByIndex(t);n.push(this.queries[r.indexInDeclarationView].clone())}return new Ra(n)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Ya(t,e).matches&&this.queries[e].setDirty()}}class Fa{constructor(t,e,r,n=null){this.predicate=t,this.descendants=e,this.isStatic=r,this.read=n}}class La{constructor(t=[]){this.queries=t}elementStart(t,e){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let r=0;r<this.length;r++){const n=null!==e?e.length:0,i=this.getByIndex(r).embeddedTView(t,n);i&&(i.indexInDeclarationView=r,null!==e?e.push(i):e=[i])}return null!==e?new La(e):null}template(t,e){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Ha{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Ha(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&4===r.type&&r.index!==e;)r=r.parent;return e===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const r=this.metadata.predicate;for(let n=0;n<r.length;n++)this.matchTNodeWithReadOption(t,e,Va(e,r[n]))}else{const r=this.metadata.predicate;r===ca?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Rr(e,t,r,!1,!1))}}matchTNodeWithReadOption(t,e,r){if(null!==r){const n=this.metadata.read;if(null!==n)if(n===Vo||n===fa||n===ca&&0===e.type)this.addMatch(e.index,-2);else{const r=Rr(e,t,n,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,r)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Va(t,e){const r=t.localNames;if(null!==r)for(let n=0;n<r.length;n+=2)if(r[n]===e)return r[n+1];return null}function Ba(t,e,r,n){return-1===r?function(t,e){return 3===t.type||4===t.type?Ji(Vo,t,e):0===t.type?Zi(ca,Vo,t,e):null}(e,t):-2===r?function(t,e,r){return r===Vo?Ji(Vo,e,t):r===ca?Zi(ca,Vo,e,t):r===fa?Ki(fa,Vo,e,t):void 0}(t,e,n):Fr(t,t[1],r,e)}function za(t,e,r,n){const i=e[5].queries[n];if(null===i.matches){const n=t.data,s=r.matches,o=[];for(let t=0;t<s.length;t+=2){const i=s[t];o.push(i<0?null:Ba(e,n[i],s[t+1],r.metadata.read))}i.matches=o}return i.matches}function Ga(t){const e=Ie(),r=De(),n=We();$e(n+1);const i=Ya(r,n);if(t.dirty&&un(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{const s=i.crossesNgTemplate?function t(e,r,n,i){const s=e.queries.getByIndex(n),o=s.matches;if(null!==o){const a=za(e,r,s,n);for(let e=0;e<o.length;e+=2){const n=o[e];if(n>0)i.push(a[e/2]);else{const s=o[e+1],a=r[-n];for(let e=9;e<a.length;e++){const r=a[e];r[17]===r[3]&&t(r[1],r,s,i)}if(null!==a[5]){const e=a[5];for(let r=0;r<e.length;r++){const n=e[r];t(n[1],n,s,i)}}}}}return i}(r,e,n,[]):za(r,e,i,n);t.reset(s),t.notifyOnChanges()}return!0}return!1}function Ua(t,e,r,n){!function(t,e,r,n,i,s,o,a){t.firstCreatePass&&(Xa(t,new Fa(r,n,!1,i),o.index),function(t,e){const r=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?r[r.length-1]:-1)&&r.push(t.queries.length-1,e)}(t,a)),$a(t,e)}(De(),Ie(),e,r,n,0,Re(),t)}function Wa(){return t=Ie(),e=We(),t[5].queries[e].queryList;var t,e}function $a(t,e){const r=new Da;!function(t,e,r,n){const i=_i(e);i.push(r),t.firstCreatePass&&bi(t).push(n,i.length-1)}(t,e,r,r.destroy),null===e[5]&&(e[5]=new Ra),e[5].queries.push(new Pa(r))}function Xa(t,e,r){null===t.queries&&(t.queries=new La),t.queries.track(new Ha(e,r))}function Ya(t,e){return t.queries.getByIndex(e)}const Qa=nt("Input",t=>({bindingPropertyName:t})),Ja=nt("Output",t=>({bindingPropertyName:t})),Za=new Lt("Application Initializer");let Ka=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const e=this.appInits[r]();Vs(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Yt(Za,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const tl=new Lt("AppId"),el={provide:tl,useFactory:function(){return`${rl()}${rl()}${rl()}`},deps:[]};function rl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const nl=new Lt("Platform Initializer"),il=new Lt("Platform ID"),sl=new Lt("appBootstrapListener");let ol=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const al=new Lt("LocaleId"),ll=new Lt("DefaultCurrencyCode");class hl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const ul=function(t){return new Na(t)},cl=ul,dl=function(t){return Promise.resolve(ul(t))},fl=function(t){const e=ul(t),r=Ar(Se(t).declarations).reduce((t,e)=>{const r=we(e);return r&&t.push(new xa(r)),t},[]);return new hl(e,r)},pl=fl,gl=function(t){return Promise.resolve(fl(t))};let ml=(()=>{class t{constructor(){this.compileModuleSync=cl,this.compileModuleAsync=dl,this.compileModuleAndAllComponentsSync=pl,this.compileModuleAndAllComponentsAsync=gl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const vl=new Lt("compilerOptions"),yl=(()=>Promise.resolve(0))();function xl(t){"undefined"==typeof Zone?yl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class _l{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Oa(!1),this.onMicrotaskEmpty=new Oa(!1),this.onStable=new Oa(!1),this.onError=new Oa(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Et.requestAnimationFrame,e=Et.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Et,()=>{t.lastRequestAnimationFrameId=-1,Sl(t),Cl(t)}),Sl(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(r,n,i,s,o,a)=>{try{return Al(t),r.invokeTask(i,s,o,a)}finally{e&&"eventTask"===s.type&&e(),kl(t)}},onInvoke:(e,r,n,i,s,o,a)=>{try{return Al(t),e.invoke(n,i,s,o,a)}finally{kl(t)}},onHasTask:(e,r,n,i)=>{e.hasTask(n,i),r===n&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Sl(t),Cl(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,r,n,i)=>(e.handleError(n,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_l.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_l.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,r){return this._inner.run(t,e,r)}runTask(t,e,r,n){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+n,t,wl,bl,bl);try{return i.runTask(s,e,r)}finally{i.cancelTask(s)}}runGuarded(t,e,r){return this._inner.runGuarded(t,e,r)}runOutsideAngular(t){return this._outer.run(t)}}function bl(){}const wl={};function Cl(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Sl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Al(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function kl(t){t._nesting--,Cl(t)}class Tl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Oa,this.onMicrotaskEmpty=new Oa,this.onStable=new Oa,this.onError=new Oa}run(t,e,r){return t.apply(e,r)}runGuarded(t,e,r){return t.apply(e,r)}runOutsideAngular(t){return t()}runTask(t,e,r,n){return t.apply(e,r)}}let jl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{_l.assertNotInAngularZone(),xl(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())xl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,r){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:r})}whenStable(t,e,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(Yt(_l))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),ql=(()=>{class t{constructor(){this._applications=new Map,Ml.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Ml.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Nl{addToWindow(t){}findTestabilityInTree(t,e,r){return null}}let El,Ml=new Nl,Ol=function(t,e,r){const n=new Na(r);if(0===ys.size)return Promise.resolve(n);const i=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(t.get(vl,[]).concat(e).map(t=>t.providers));if(0===i.length)return Promise.resolve(n);const s=function(){const t=Et.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),o=ms.create({providers:i}).get(s.ResourceLoader);return function(t){const e=[],r=new Map;function n(t){let e=r.get(t);if(!e){const n=(t=>Promise.resolve(o.get(t)))(t);r.set(t,e=n.then(_s))}return e}return ys.forEach((t,r)=>{const i=[];t.templateUrl&&i.push(n(t.templateUrl).then(e=>{t.template=e}));const s=t.styleUrls,o=t.styles||(t.styles=[]),a=t.styles.length;s&&s.forEach((e,r)=>{o.push(""),i.push(n(e).then(n=>{o[a+r]=n,s.splice(s.indexOf(e),1),0==s.length&&(t.styleUrls=void 0)}))});const l=Promise.all(i).then(()=>function(t){xs.delete(t)}(r));e.push(l)}),ys=new Map,Promise.all(e).then(()=>{})}().then(()=>n)};const Il=new Lt("AllowMultipleToken");class Dl{constructor(t,e){this.name=t,this.token=e}}function Pl(t,e,r=[]){const n=`Platform: ${e}`,i=new Lt(n);return(e=[])=>{let s=Rl();if(!s||s.injector.get(Il,!1))if(t)t(r.concat(e).concat({provide:i,useValue:!0}));else{const t=r.concat(e).concat({provide:i,useValue:!0},{provide:rs,useValue:"platform"});!function(t){if(El&&!El.destroyed&&!El.injector.get(Il,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");El=t.get(Fl);const e=t.get(nl,null);e&&e.forEach(t=>t())}(ms.create({providers:t,name:n}))}return function(t){const e=Rl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function Rl(){return El&&!El.destroyed?El:null}let Fl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const r=function(t,e){let r;return r="noop"===t?new Tl:("zone.js"===t?void 0:t)||new _l({enableLongStackTrace:Jr(),shouldCoalesceEventChangeDetection:e}),r}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),n=[{provide:_l,useValue:r}];return r.run(()=>{const e=ms.create({providers:n,parent:this.injector,name:t.moduleType.name}),i=t.create(e),s=i.injector.get(Wr,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>Vl(this._modules,i)),r.runOutsideAngular(()=>r.onError.subscribe({next:t=>{s.handleError(t)}})),function(t,e,r){try{const n=r();return Vs(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(s,r,()=>{const t=i.injector.get(Ka);return t.runInitializers(),t.donePromise.then(()=>(Ta(i.injector.get(al,"en-US")||"en-US"),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const r=Ll({},e);return Ol(this.injector,r,t).then(t=>this.bootstrapModuleFactory(t,r))}_moduleDoBootstrap(t){const e=t.injector.get(Hl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${bt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Yt(ms))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Ll(t,e){return Array.isArray(e)?e.reduce(Ll,t):Object.assign(Object.assign({},t),e)}let Hl=(()=>{class t{constructor(t,e,r,n,i,s){this._zone=t,this._console=e,this._injector=r,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Jr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new _(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new _(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{_l.assertNotInAngularZone(),xl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const r=this._zone.onUnstable.subscribe(()=>{_l.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),r.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,r=null,n=t[t.length-1];return T(n)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof n&&(e=t.pop()),null===r&&1===t.length&&t[0]instanceof _?t[0]:W(e)($(t,r))}(o,a.pipe(t=>{return X()((e=tt,function(t){let r;r="function"==typeof e?e:function(){return e};const n=Object.create(t,Z);return n.source=t,n.subjectFactory=r,n})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let r;r=t instanceof Fo?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(r.componentType);const n=r.isBoundToModule?void 0:this._injector.get(Kt),i=r.create(ms.NULL,[],e||r.selector,n);i.onDestroy(()=>{this._unloadComponent(i)});const s=i.injector.get(jl,null);return s&&i.injector.get(ql).registerApplication(i.location.nativeElement,s),this._loadComponent(i),Jr()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Vl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(sl,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Vl(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Yt(_l),Yt(ol),Yt(ms),Yt(Wr),Yt(Ho),Yt(Ka))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Vl(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class Bl{}class zl{}const Gl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ul=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Gl}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),r("zn8P")(e).then(t=>t[n]).then(t=>Wl(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),i="NgFactory";return void 0===n&&(n="default",i=""),r("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+i]).then(t=>Wl(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(Yt(ml),Yt(zl,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function Wl(t,e,r){if(!t)throw new Error(`Cannot find '${r}' in '${e}'`);return t}const $l=Pl(null,"core",[{provide:il,useValue:"unknown"},{provide:Fl,deps:[ms]},{provide:ql,deps:[]},{provide:ol,deps:[]}]),Xl=[{provide:Hl,useClass:Hl,deps:[_l,ol,ms,Wr,Ho,Ka]},{provide:ya,deps:[_l],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ka,useClass:Ka,deps:[[new st,Za]]},{provide:ml,useClass:ml,deps:[]},el,{provide:oa,useFactory:function(){return ha},deps:[]},{provide:aa,useFactory:function(){return ua},deps:[]},{provide:al,useFactory:function(t){return Ta(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new it(al),new st,new at]]},{provide:ll,useValue:"USD"}];let Yl=(()=>{class t{constructor(t){}}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Yt(Hl))},providers:Xl}),t})(),Ql=null;function Jl(){return Ql}const Zl=new Lt("DocumentToken");let Kl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:th,token:t,providedIn:"platform"}),t})();function th(){return Yt(rh)}const eh=new Lt("Location Initialized");let rh=(()=>{class t extends Kl{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Jl().getLocation(),this._history=Jl().getHistory()}getBaseHrefFromDOM(){return Jl().getBaseHref(this._doc)}onPopState(t){Jl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Jl().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,r){nh()?this._history.pushState(t,e,r):this.location.hash=r}replaceState(t,e,r){nh()?this._history.replaceState(t,e,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zl))},t.\u0275prov=ct({factory:ih,token:t,providedIn:"platform"}),t})();function nh(){return!!window.history.pushState}function ih(){return new rh(Yt(Zl))}function sh(t,e){if(0==t.length)return e;if(0==e.length)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,2==r?t+e.substring(1):1==r?t+e:t+"/"+e}function oh(t){const e=t.match(/#|\?|$/),r=e&&e.index||t.length;return t.slice(0,r-("/"===t[r-1]?1:0))+t.slice(r)}function ah(t){return t&&"?"!==t[0]?"?"+t:t}let lh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:hh,token:t,providedIn:"root"}),t})();function hh(t){const e=Yt(Zl).location;return new ch(Yt(Kl),e&&e.origin||"")}const uh=new Lt("appBaseHref");let ch=(()=>{class t extends lh{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return sh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+ah(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${e}${r}`:e}pushState(t,e,r,n){const i=this.prepareExternalUrl(r+ah(n));this._platformLocation.pushState(t,e,i)}replaceState(t,e,r,n){const i=this.prepareExternalUrl(r+ah(n));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Kl),Yt(uh,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),dh=(()=>{class t extends lh{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=sh(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,r,n){let i=this.prepareExternalUrl(r+ah(n));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,r,n){let i=this.prepareExternalUrl(r+ah(n));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Kl),Yt(uh,8))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),fh=(()=>{class t{constructor(t,e){this._subject=new Oa,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=oh(gh(r)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+ah(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,gh(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",r=null){this._platformStrategy.pushState(r,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ah(e)),r)}replaceState(t,e="",r=null){this._platformStrategy.replaceState(r,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ah(e)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(r=>r(t,e))}subscribe(t,e,r){return this._subject.subscribe({next:t,error:e,complete:r})}}return t.\u0275fac=function(e){return new(e||t)(Yt(lh),Yt(Kl))},t.normalizeQueryParams=ah,t.joinWithSlash=sh,t.stripTrailingSlash=oh,t.\u0275prov=ct({factory:ph,token:t,providedIn:"root"}),t})();function ph(){return new fh(Yt(lh),Yt(Kl))}function gh(t){return t.replace(/\/index.html$/,"")}const mh=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}();class vh{}let yh=(()=>{class t extends vh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let r=Sa(e);if(r)return r;const n=e.split("-")[0];if(r=Sa(n),r)return r;if("en"===n)return wa;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Aa.PluralCase]}(e||this.locale)(t)){case mh.Zero:return"zero";case mh.One:return"one";case mh.Two:return"two";case mh.Few:return"few";case mh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Yt(al))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function xh(t,e){e=encodeURIComponent(e);for(const r of t.split(";")){const t=r.indexOf("="),[n,i]=-1==t?[r,""]:[r.slice(0,t),r.slice(t+1)];if(n.trim()===e)return decodeURIComponent(i)}return null}class _h{constructor(t,e,r,n){this.$implicit=t,this.ngForOf=e,this.index=r,this.count=n}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let bh=(()=>{class t{constructor(t,e,r){this._viewContainer=t,this._template=e,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Jr()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. `+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const r=this._ngForOf;if(!this._differ&&r)try{this._differ=this._differs.find(r).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${r}' of type '${t=r,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,r,n)=>{if(null==t.previousIndex){const r=this._viewContainer.createEmbeddedView(this._template,new _h(null,this._ngForOf,-1,-1),null===n?void 0:n),i=new wh(t,r);e.push(i)}else if(null==n)this._viewContainer.remove(null===r?void 0:r);else if(null!==r){const i=this._viewContainer.get(r);this._viewContainer.move(i,n);const s=new wh(t,i);e.push(s)}});for(let r=0;r<e.length;r++)this._perViewChange(e[r].view,e[r].record);for(let r=0,n=this._viewContainer.length;r<n;r++){const t=this._viewContainer.get(r);t.context.index=r,t.context.count=n,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ms(fa),Ms(ca),Ms(oa))},t.\u0275dir=_e({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class wh{constructor(t,e){this.record=t,this.view=e}}let Ch=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Sh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Ah("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ah("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ms(fa),Ms(ca))},t.\u0275dir=_e({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Sh{constructor(){this.$implicit=null,this.ngIf=null}}function Ah(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${bt(e)}'.`)}let kh=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=be({name:"json",type:t,pure:!1}),t})(),Th=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[{provide:vh,useClass:yh}]}),t})(),jh=(()=>{class t{}return t.\u0275prov=ct({token:t,providedIn:"root",factory:()=>new qh(Yt(Zl),window,Yt(Wr))}),t})();class qh{constructor(t,e,r){this.document=t,this.window=e,this.errorHandler=r,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector(`#${t}`);if(e)return void this.scrollToElement(e);const r=this.document.querySelector(`[name='${t}']`);if(r)return void this.scrollToElement(r)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),r=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],n-i[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}class Nh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Nh,Ql||(Ql=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,r){return t.addEventListener(e,r,!1),()=>{t.removeEventListener(e,r,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Mh||(Mh=document.querySelector("base"),Mh)?Mh.getAttribute("href"):null;return null==e?null:(r=e,Eh||(Eh=document.createElement("a")),Eh.setAttribute("href",r),"/"===Eh.pathname.charAt(0)?Eh.pathname:"/"+Eh.pathname);var r}resetBaseElement(){Mh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return xh(document.cookie,t)}}let Eh,Mh=null;const Oh=new Lt("TRANSITION_ID"),Ih=[{provide:Za,useFactory:function(t,e,r){return()=>{r.get(Ka).donePromise.then(()=>{const r=Jl();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>r.remove(t))})}},deps:[Oh,Zl,ms],multi:!0}];class Dh{static init(){var t;t=new Dh,Ml=t}addToWindow(t){Et.getAngularTestability=(e,r=!0)=>{const n=t.findTestabilityInTree(e,r);if(null==n)throw new Error("Could not find testability for element.");return n},Et.getAllAngularTestabilities=()=>t.getAllTestabilities(),Et.getAllAngularRootElements=()=>t.getAllRootElements(),Et.frameworkStabilizers||(Et.frameworkStabilizers=[]),Et.frameworkStabilizers.push(t=>{const e=Et.getAllAngularTestabilities();let r=e.length,n=!1;const i=function(e){n=n||e,r--,0==r&&t(n)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,r){if(null==e)return null;const n=t.getTestability(e);return null!=n?n:r?Jl().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Ph=new Lt("EventManagerPlugins");let Rh=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,r){return this._findPluginFor(e).addEventListener(t,e,r)}addGlobalEventListener(t,e,r){return this._findPluginFor(e).addGlobalEventListener(t,e,r)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const r=this._plugins;for(let n=0;n<r.length;n++){const e=r[n];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Ph),Yt(_l))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Fh{constructor(t){this._doc=t}addGlobalEventListener(t,e,r){const n=Jl().getGlobalEventTarget(this._doc,t);if(!n)throw new Error(`Unsupported event target ${n} for event ${e}`);return this.addEventListener(n,e,r)}}let Lh=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Hh=(()=>{class t extends Lh{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const r=this._doc.createElement("style");r.textContent=t,this._styleNodes.add(e.appendChild(r))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Jl().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Vh={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Bh=/%COMP%/g;function zh(t,e,r){for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?zh(t,i,r):(i=i.replace(Bh,t),r.push(i))}return r}function Gh(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Uh=(()=>{class t{constructor(t,e,r){this.eventManager=t,this.sharedStylesHost=e,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Wh(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case he.Emulated:{let r=this.rendererByCompId.get(e.id);return r||(r=new $h(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,r)),r.applyToHost(t),r}case he.Native:case he.ShadowDom:return new Xh(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=zh(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Yt(Rh),Yt(Hh),Yt(tl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Wh{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Vh[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,r){t&&t.insertBefore(e,r)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,n){if(n){e=n+":"+e;const i=Vh[n];i?t.setAttributeNS(i,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){const n=Vh[r];n?t.removeAttributeNS(n,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,n){n&Go.DashCase?t.style.setProperty(e,r,n&Go.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&Go.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t[e]=r}setValue(t,e){t.nodeValue=e}listen(t,e,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Gh(r)):this.eventManager.addEventListener(t,e,Gh(r))}}class $h extends Wh{constructor(t,e,r,n){super(t),this.component=r;const i=zh(n+"-"+r.id,r.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(Bh,n+"-"+r.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Bh,t)}(n+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}}class Xh extends Wh{constructor(t,e,r,n){super(t),this.sharedStylesHost=e,this.hostEl=r,this.component=n,this.shadowRoot=n.encapsulation===he.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=zh(n.id,n.styles,[]);for(let s=0;s<i.length;s++){const t=document.createElement("style");t.textContent=i[s],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Yh=(()=>{class t extends Fh{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,r){return t.addEventListener(e,r,!1),()=>this.removeEventListener(t,e,r)}removeEventListener(t,e,r){return t.removeEventListener(e,r)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Qh=["alt","control","meta","shift"],Jh={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Zh={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Kh={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let tu=(()=>{class t extends Fh{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,r,n){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jl().onAndCancel(e,i.domEventName,s))}static parseEventName(e){const r=e.toLowerCase().split("."),n=r.shift();if(0===r.length||"keydown"!==n&&"keyup"!==n)return null;const i=t._normalizeKey(r.pop());let s="";if(Qh.forEach(t=>{const e=r.indexOf(t);e>-1&&(r.splice(e,1),s+=t+".")}),s+=i,0!=r.length||0===i.length)return null;const o={};return o.domEventName=n,o.fullKey=s,o}static getEventFullKey(t){let e="",r=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Zh.hasOwnProperty(e)&&(e=Zh[e]))}return Jh[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Qh.forEach(n=>{n!=r&&(0,Kh[n])(t)&&(e+=n+".")}),e+=r,e}static eventCallback(e,r,n){return i=>{t.getEventFullKey(i)===e&&n.runGuarded(()=>r(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zl))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const eu=Pl($l,"browser",[{provide:il,useValue:"browser"},{provide:nl,useValue:function(){Nh.makeCurrent(),Dh.init()},multi:!0},{provide:Zl,useFactory:function(){return function(t){ur=t}(document),document},deps:[]}]),ru=[[],{provide:rs,useValue:"root"},{provide:Wr,useFactory:function(){return new Wr},deps:[]},{provide:Ph,useClass:Yh,multi:!0,deps:[Zl,_l,il]},{provide:Ph,useClass:tu,multi:!0,deps:[Zl]},[],{provide:Uh,useClass:Uh,deps:[Rh,Hh,tl]},{provide:zo,useExisting:Uh},{provide:Lh,useExisting:Hh},{provide:Hh,useClass:Hh,deps:[Zl]},{provide:jl,useClass:jl,deps:[_l]},{provide:Rh,useClass:Rh,deps:[Ph,_l]},[]];let nu=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:tl,useValue:e.appId},{provide:Oh,useExisting:tl},Ih]}}}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Yt(t,12))},providers:ru,imports:[Th,Yl]}),t})();function iu(t,e){return new _(r=>{const n=t.length;if(0===n)return void r.complete();const i=new Array(n);let s=0,o=0;for(let a=0;a<n;a++){const l=V(t[a]);let h=!1;r.add(l.subscribe({next:t=>{h||(h=!0,o++),i[a]=t},error:t=>r.error(t),complete:()=>{s++,s!==n&&h||(o===n&&r.next(e?e.reduce((t,e,r)=>(t[e]=i[r],t),{}):i),r.complete())}}))}})}"undefined"!=typeof window&&window;const su=new Lt("NgValueAccessor"),ou={provide:su,useExisting:St(()=>au),multi:!0};let au=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ms(Uo),Ms(Vo))},t.\u0275dir=_e({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&zs("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[Ro([ou])]}),t})();const lu={provide:su,useExisting:St(()=>uu),multi:!0},hu=new Lt("CompositionEventMode");let uu=(()=>{class t{constructor(t,e,r){this._renderer=t,this._elementRef=e,this._compositionMode=r,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Jl()?Jl().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Ms(Uo),Ms(Vo),Ms(hu,8))},t.\u0275dir=_e({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&zs("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[Ro([lu])]}),t})(),cu=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=_e({type:t}),t})(),du=(()=>{class t extends cu{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return fu(e||t)},t.\u0275dir=_e({type:t,features:[_o]}),t})();const fu=Br(du);function pu(){throw new Error("unimplemented")}class gu extends cu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return pu()}get asyncValidator(){return pu()}}class mu{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let vu=(()=>{class t extends mu{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ms(gu,2))},t.\u0275dir=_e({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&no("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[_o]}),t})(),yu=(()=>{class t extends mu{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ms(du,2))},t.\u0275dir=_e({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&no("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[_o]}),t})();function xu(t){return null==t||0===t.length}const _u=new Lt("NgValidators"),bu=new Lt("NgAsyncValidators"),wu=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Cu{static min(t){return e=>{if(xu(e.value)||xu(t))return null;const r=parseFloat(e.value);return!isNaN(r)&&r<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(xu(e.value)||xu(t))return null;const r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}static required(t){return xu(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return xu(t.value)?null:wu.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(xu(e.value))return null;const r=e.value?e.value.length:0;return r<t?{minlength:{requiredLength:t,actualLength:r}}:null}}static maxLength(t){return e=>{const r=e.value?e.value.length:0;return r>t?{maxlength:{requiredLength:t,actualLength:r}}:null}}static pattern(t){if(!t)return Cu.nullValidator;let e,r;return"string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),t=>{if(xu(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Su);return 0==e.length?null:function(t){return ku(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Su);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return iu(e,null);if(h(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return iu(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return iu(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(R(t=>e(...t)))}return iu(t,null)}(function(t,e){return e.map(e=>e(t))}(t,e).map(Au)).pipe(R(ku))}}}function Su(t){return null!=t}function Au(t){const e=Vs(t)?V(t):t;if(!Bs(e))throw new Error("Expected validator to return Promise or Observable.");return e}function ku(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Tu(t){return t.validate?e=>t.validate(e):t}function ju(t){return t.validate?e=>t.validate(e):t}const qu={provide:su,useExisting:St(()=>Nu),multi:!0};let Nu=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ms(Uo),Ms(Vo))},t.\u0275dir=_e({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&zs("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Ro([qu])]}),t})();const Eu={provide:su,useExisting:St(()=>Ou),multi:!0};let Mu=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Ou=(()=>{class t{constructor(t,e,r,n){this._renderer=t,this._elementRef=e,this._registry=r,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(gu),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')}}return t.\u0275fac=function(e){return new(e||t)(Ms(Uo),Ms(Vo),Ms(Mu),Ms(ms))},t.\u0275dir=_e({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&zs("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ro([Eu])]}),t})();const Iu={provide:su,useExisting:St(()=>Du),multi:!0};let Du=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ms(Uo),Ms(Vo))},t.\u0275dir=_e({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&zs("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Ro([Iu])]}),t})();const Pu='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Ru='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',Fu={provide:su,useExisting:St(()=>Lu),multi:!0};let Lu=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Ss}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const r=function(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",r)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Ms(Uo),Ms(Vo))},t.\u0275dir=_e({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&zs("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Ro([Fu])]}),t})();const Hu={provide:su,useExisting:St(()=>Vu),multi:!0};let Vu=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Ss}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const r=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(r.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const r=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const n=t.item(e),i=this._getOptionValue(n.value);r.push(i)}}else{const t=e.options;for(let e=0;e<t.length;e++){const n=t.item(e);if(n.selected){const t=this._getOptionValue(n.value);r.push(t)}}}this.value=r,t(r)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(Ms(Uo),Ms(Vo))},t.\u0275dir=_e({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&zs("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Ro([Hu])]}),t})();function Bu(t,e){return[...e.path,t]}function zu(t,e){t||Uu(e,"Cannot find control with"),e.valueAccessor||Uu(e,"No value accessor for form control with"),t.validator=Cu.compose([t.validator,e.validator]),t.asyncValidator=Cu.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Gu(t,e)})}(t,e),function(t,e){t.registerOnChange((t,r)=>{e.valueAccessor.writeValue(t),r&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Gu(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Gu(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Uu(t,e){let r;throw r=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${r}`)}function Wu(t){return null!=t?Cu.compose(t.map(Tu)):null}function $u(t){return null!=t?Cu.composeAsync(t.map(ju)):null}const Xu=[au,Du,Nu,Lu,Vu,Ou];function Yu(t){const e=Ju(t)?t.validators:t;return Array.isArray(e)?Wu(e):e||null}function Qu(t,e){const r=Ju(e)?e.asyncValidators:t;return Array.isArray(r)?$u(r):r||null}function Ju(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Zu{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=Yu(t)}setAsyncValidators(t){this.asyncValidator=Qu(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=Au(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,r){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof tc?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof ec&&n.at(t)||null}),n}(this,t)}getError(t,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Oa,this.statusChanges=new Oa}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ju(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Ku extends Zu{constructor(t=null,e,r){super(Yu(e),Qu(r,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class tc extends Zu{constructor(t,e,r){super(Yu(e),Qu(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(r=>{this._throwIfControlMissing(r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((r,n)=>{r.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,r)=>(t[r]=e instanceof Ku?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((r,n)=>{e=e||this.contains(n)&&t(r)}),e}_reduceValue(){return this._reduceChildren({},(t,e,r)=>((e.enabled||this.disabled)&&(t[r]=e.value),t))}_reduceChildren(t,e){let r=t;return this._forEachChild((t,n)=>{r=e(r,t,n)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,r)=>{if(void 0===t[r])throw new Error(`Must supply a value for form control with name: '${r}'.`)})}}class ec extends Zu{constructor(t,e,r){super(Yu(e),Qu(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,r)=>{this._throwIfControlMissing(r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((r,n)=>{r.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Ku?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,r)=>{t(e,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,r)=>{if(void 0===t[r])throw new Error(`Must supply a value for form control at index: ${r}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const rc={provide:du,useExisting:St(()=>ic)},nc=(()=>Promise.resolve(null))();let ic=(()=>{class t extends du{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Oa,this.form=new tc({},Wu(t),$u(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){nc.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),zu(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){nc.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),function(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}(this._directives,t)})}addFormGroup(t){nc.then(()=>{const e=this._findContainer(t.path),r=new tc({});(function(t,e){null==t&&Uu(e,"Cannot find control with"),t.validator=Cu.compose([t.validator,e.validator]),t.asyncValidator=Cu.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),e.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){nc.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){nc.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Ms(_u,10),Ms(bu,10))},t.\u0275dir=_e({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&zs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ro([rc]),_o]}),t})(),sc=(()=>{class t extends du{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Bu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Wu(this._validators)}get asyncValidator(){return $u(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return oc(e||t)},t.\u0275dir=_e({type:t,features:[_o]}),t})();const oc=Br(sc);class ac{static modelParentException(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${Pu}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${Ru}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${Pu}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${Ru}`)}}const lc={provide:du,useExisting:St(()=>hc)};let hc=(()=>{class t extends sc{constructor(t,e,r){super(),this._parent=t,this._validators=e,this._asyncValidators=r}_checkParentType(){this._parent instanceof t||this._parent instanceof ic||ac.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Ms(du,5),Ms(_u,10),Ms(bu,10))},t.\u0275dir=_e({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Ro([lc]),_o]}),t})();const uc={provide:gu,useExisting:St(()=>dc)},cc=(()=>Promise.resolve(null))();let dc=(()=>{class t extends gu{constructor(t,e,r,n){super(),this.control=new Ku,this._registered=!1,this.update=new Oa,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=r||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Uu(t,"Value accessor was not provided as an array for form control with");let r=void 0,n=void 0,i=void 0;return e.forEach(e=>{var s;e.constructor===uu?r=e:(s=e,Xu.some(t=>s.constructor===t)?(n&&Uu(t,"More than one built-in value accessor matches form control with"),n=e):(i&&Uu(t,"More than one custom value accessor matches form control with"),i=e))}),i||n||r||(Uu(t,"No valid value accessor for form control with"),null)}(this,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const r=t.model;return!!r.isFirstChange()||!Ss(e,r.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Bu(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Wu(this._rawValidators)}get asyncValidator(){return $u(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){zu(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof hc)&&this._parent instanceof sc?ac.formGroupNameException():this._parent instanceof hc||this._parent instanceof ic||ac.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||ac.missingNameException()}_updateValue(t){cc.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,r=""===e||e&&"false"!==e;cc.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Ms(du,9),Ms(_u,10),Ms(bu,10),Ms(su,10))},t.\u0275dir=_e({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ro([uc]),_o,ko()]}),t})(),fc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=_e({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),pc=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),gc=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Mu],imports:[pc]}),t})();class mc extends A{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new w;return this._value}next(t){super.next(this._value=t)}}const vc={};class yc{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new xc(t,this.resultSelector))}}class xc extends P{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(vc),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let r=0;r<e;r++){const e=t[r];this.add(D(this,e,e,r))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,r,n,i){const s=this.values,o=this.toRespond?s[r]===vc?--this.toRespond:this.toRespond:0;s[r]=e,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(r){return void this.destination.error(r)}this.destination.next(e)}}class _c extends c{constructor(t,e){super()}schedule(t,e=0){return this}}class bc extends _c{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,r=0){return setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,e,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r=!1,n=void 0;try{this.work(t)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let wc=(()=>{class t{constructor(e,r=t.now){this.SchedulerAction=e,this.now=r}schedule(t,e=0,r){return new this.SchedulerAction(this,t).schedule(r,e)}}return t.now=()=>Date.now(),t})();class Cc extends wc{constructor(t,e=wc.now){super(t,()=>Cc.delegate&&Cc.delegate!==this?Cc.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,r){return Cc.delegate&&Cc.delegate!==this?Cc.delegate.schedule(t,e,r):super.schedule(t,e,r)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}}const Sc=new Cc(bc);function Ac(t,e,r,i){return n(r)&&(i=r,r=void 0),i?Ac(t,e,r).pipe(R(t=>l(t)?i(...t):i(t))):new _(n=>{!function t(e,r,n,i,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(r,n,s),o=()=>t.removeEventListener(r,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(r,n),o=()=>t.off(r,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(r,n),o=()=>t.removeListener(r,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],r,n,i,s)}i.add(o)}(t,e,(function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),n,r)})}class kc{call(t,e){return e.subscribe(new Tc(t))}}class Tc extends P{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let r=0;r<e&&!this.hasFirst;r++){let e=t[r],n=D(this,e,e,r);this.subscriptions&&this.subscriptions.push(n),this.add(n)}this.observables=null}}notifyNext(t,e,r,n,i){if(!this.hasFirst){this.hasFirst=!0;for(let t=0;t<this.subscriptions.length;t++)if(t!==r){let e=this.subscriptions[t];e.unsubscribe(),this.remove(e)}this.subscriptions=null}this.destination.next(e)}}function jc(...t){let e=t[t.length-1];return T(e)?(t.pop(),H(t,e)):$(t)}function qc(){return W(1)}function Nc(...t){return qc()(jc(...t))}function Ec(t,e){return"function"==typeof e?r=>r.pipe(Ec((r,n)=>V(t(r,n)).pipe(R((t,i)=>e(r,t,n,i))))):e=>e.lift(new Mc(t))}class Mc{constructor(t){this.project=t}call(t,e){return e.subscribe(new Oc(t,this.project))}}class Oc extends P{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const r=this.index++;try{e=this.project(t,r)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,r)}_innerSub(t,e,r){const n=this.innerSubscription;n&&n.unsubscribe();const i=new j(this,e,r),s=this.destination;s.add(i),this.innerSubscription=D(this,t,void 0,void 0,i),this.innerSubscription!==i&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,r,n,i){this.destination.next(e)}}function Ic(t){return e=>e.lift(new Dc(t))}class Dc{constructor(t){this.notifier=t}call(t,e){const r=new Pc(t),n=D(r,this.notifier);return n&&!r.seenValue?(r.add(n),e.subscribe(r)):r}}class Pc extends P{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,r,n,i){this.seenValue=!0,this.complete()}notifyComplete(){}}function Rc(t,e){return function(r){return r.lift(new Fc(t,e))}}class Fc{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Lc(t,this.predicate,this.thisArg))}}class Lc extends p{constructor(t,e,r){super(t),this.predicate=e,this.thisArg=r,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}e&&this.destination.next(t)}}const Hc=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})(),Vc=new _(t=>t.complete());function Bc(t){return t?function(t){return new _(e=>t.schedule(()=>e.complete()))}(t):Vc}function zc(t){return e=>0===t?Bc():e.lift(new Gc(t))}class Gc{constructor(t){if(this.total=t,this.total<0)throw new Hc}call(t,e){return e.subscribe(new Uc(t,this.total))}}class Uc extends p{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))}}function Wc(t,e,r){return function(n){return n.lift(new $c(t,e,r))}}class $c{constructor(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}call(t,e){return e.subscribe(new Xc(t,this.nextOrObserver,this.error,this.complete))}}class Xc extends p{constructor(t,e,r,i){super(t),this._tapNext=v,this._tapError=v,this._tapComplete=v,this._tapError=r||v,this._tapComplete=i||v,n(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||v,this._tapError=e.error||v,this._tapComplete=e.complete||v)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function Yc(...t){return e=>{let r;return"function"==typeof t[t.length-1]&&(r=t.pop()),e.lift(new Qc(t,r))}}class Qc{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new Jc(t,this.observables,this.project))}}class Jc extends P{constructor(t,e,r){super(t),this.observables=e,this.project=r,this.toRespond=[];const n=e.length;this.values=new Array(n);for(let i=0;i<n;i++)this.toRespond.push(i);for(let i=0;i<n;i++){let t=e[i];this.add(D(this,t,t,i))}}notifyNext(t,e,r,n,i){this.values[r]=e;const s=this.toRespond;if(s.length>0){const t=s.indexOf(r);-1!==t&&s.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(r){return void this.destination.error(r)}this.destination.next(e)}}let Zc=(()=>{class t{constructor(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}}accept(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)}toObservable(){switch(this.kind){case"N":return jc(this.value);case"E":return t=this.error,new _(e=>e.error(t));case"C":return Bc()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();function Kc(t,e=Sc){var r;const n=(r=t)instanceof Date&&!isNaN(+r)?+t-e.now():Math.abs(t);return t=>t.lift(new td(n,e))}class td{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new ed(t,this.delay,this.scheduler))}}class ed extends p{constructor(t,e,r){super(t),this.delay=e,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,r=e.queue,n=t.scheduler,i=t.destination;for(;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){const e=Math.max(0,r[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(ed.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,r=new rd(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Zc.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Zc.createComplete()),this.unsubscribe()}}class rd{constructor(t,e){this.time=t,this.notification=e}}$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;const nd=["*"];$localize`:@@ngb.carousel.previous␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,$localize`:@@ngb.carousel.next␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`,$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`;const id=["dialog"];function sd(t){return null!=t}$localize`:@@ngb.pagination.first␟656506dfd46380956a655f919f1498d018f75ca0␟6867721956102594380:««`,$localize`:@@ngb.pagination.previous␟6e52b6ee77a4848d899dd21b591c6fd499e3aef3␟6479320895410098858:«`,$localize`:@@ngb.pagination.next␟ba9cbb4ff311464308a3627e4f1c3345d9fe6d7d␟5458177150283468089:»`,$localize`:@@ngb.pagination.last␟49f27a460bc97e7e00be5b37098bfa79884fc7d9␟5277020320267646988:»»`,$localize`:@@ngb.pagination.first-aria␟f2f852318759c6396b5d3d17031d53817d7b38cc␟2241508602425256033:First`,$localize`:@@ngb.pagination.previous-aria␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,$localize`:@@ngb.pagination.next-aria␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,$localize`:@@ngb.pagination.last-aria␟5c729788ba138508aca1bec050b610f7bf81db3e␟4882268002141858767:Last`,$localize`:@@ngb.progressbar.value␟04d611d19c117c60c9e14d0a04399a027184bc77␟5214781723415385277:${"\ufffd0\ufffd"}:INTERPOLATION:%`,$localize`:@@ngb.timepicker.HH␟ce676ab1d6d98f85c836381cf100a4a91ef95a1f␟4043638465245303811:HH`,$localize`:@@ngb.timepicker.hours␟3bbce5fef7e1151da052a4e529453edb340e3912␟8070396816726827304:Hours`,$localize`:@@ngb.timepicker.MM␟72c8edf6a50068a05bde70991e36b1e881f4ca54␟1647282246509919852:MM`,$localize`:@@ngb.timepicker.minutes␟41e62daa962947c0d23ded0981975d1bddf0bf38␟5531237363767747080:Minutes`,$localize`:@@ngb.timepicker.increment-hours␟cb74bc1d625a6c1742f0d7d47306cf495780c218␟5939278348542933629:Increment hours`,$localize`:@@ngb.timepicker.decrement-hours␟147c7a19429da7d999e247d22e33fee370b1691b␟3651829882940481818:Decrement hours`,$localize`:@@ngb.timepicker.increment-minutes␟f5a4a3bc05e053f6732475d0e74875ec01c3a348␟180147720391025024:Increment minutes`,$localize`:@@ngb.timepicker.decrement-minutes␟c1a6899e529c096da5b660385d4e77fe1f7ad271␟7447789825403243588:Decrement minutes`,$localize`:@@ngb.timepicker.SS␟ebe38d36a40a2383c5fefa9b4608ffbda08bd4a3␟3628127143071124194:SS`,$localize`:@@ngb.timepicker.seconds␟4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c␟8874012390997067175:Seconds`,$localize`:@@ngb.timepicker.increment-seconds␟912322ecee7d659d04dcf494a70e22e49d334b26␟5364772110539092174:Increment seconds`,$localize`:@@ngb.timepicker.decrement-seconds␟5db47ac104294243a70eb9124fbea9d0004ddf69␟753633511487974857:Decrement seconds`,$localize`:@@ngb.timepicker.PM␟8d6e691e10306c1b34c6b26805151aaea320ef7f␟3564199131264287502:${"\ufffd0\ufffd"}:INTERPOLATION:`,$localize`:@@ngb.timepicker.AM␟69a1f176a93998876952adac57c3bc3863b6105e␟4592818992509942761:${"\ufffd0\ufffd"}:INTERPOLATION:`,$localize`:@@ngb.toast.close-aria␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});let od=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th]]}),t})(),ad=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th]]}),t})(),ld=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),hd=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th]]}),t})(),ud=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();var cd=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}({});const dd=(t,e)=>!!e&&e.some(e=>e.contains(t)),fd=(t,e)=>!e||null!=function(t,e){return e?t.closest(e):null}(t,e),pd=(()=>"undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)))();const gd=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function md(t){const e=Array.from(t.querySelectorAll(gd)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}class vd{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let r,n={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))r=t.getBoundingClientRect(),r={top:r.top,bottom:r.bottom,left:r.left,right:r.right,height:r.height,width:r.width};else{const e=this.offsetParent(t);r=this.offset(t,!1),e!==document.documentElement&&(n=this.offset(e,!1)),n.top+=e.clientTop,n.left+=e.clientLeft}return r.top-=n.top,r.bottom-=n.top,r.left-=n.left,r.right-=n.left,e&&(r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r}offset(t,e=!0){const r=t.getBoundingClientRect(),n=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft;let s={height:r.height||t.offsetHeight,width:r.width||t.offsetWidth,top:r.top+n,bottom:r.bottom+n,left:r.left+i,right:r.right+i};return e&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s}positionElements(t,e,r,n){const[i="top",s="center"]=r.split("-"),o=n?this.offset(t,!1):this.position(t,!1),a=this.getAllStyles(e),l=parseFloat(a.marginTop),h=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),c=parseFloat(a.marginRight);let d=0,f=0;switch(i){case"top":d=o.top-(e.offsetHeight+l+h);break;case"bottom":d=o.top+o.height;break;case"left":f=o.left-(e.offsetWidth+u+c);break;case"right":f=o.left+o.width}switch(s){case"top":d=o.top;break;case"bottom":d=o.top+o.height-e.offsetHeight;break;case"left":f=o.left;break;case"right":f=o.left+o.width-e.offsetWidth;break;case"center":"top"===i||"bottom"===i?f=o.left+o.width/2-e.offsetWidth/2:d=o.top+o.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(f)}px, ${Math.round(d)}px)`;const p=e.getBoundingClientRect(),g=document.documentElement,m=window.innerHeight||g.clientHeight,v=window.innerWidth||g.clientWidth;return p.left>=0&&p.top>=0&&p.right<=v&&p.bottom<=m}}const yd=/\s+/,xd=new vd;let _d=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th,gc]]}),t})(),bd=(()=>{let t=class{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:function(){return new t},token:t,providedIn:"root"}),t})();var wd;let Cd=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=_e({type:t,selectors:[["",8,"navbar"]]}),t})(),Sd=(()=>{let t=class{constructor(t){this.elementRef=t,this._disabled=!1}set disabled(t){this._disabled=""===t||!0===t}get disabled(){return this._disabled}};return t.\u0275fac=function(e){return new(e||t)(Ms(Vo))},t.\u0275dir=_e({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(t,e){2&t&&no("disabled",e.disabled)},inputs:{disabled:"disabled"}}),t})(),Ad=(()=>{let t=class{constructor(t){this.dropdown=t,this.placement="bottom",this.isOpen=!1}};return t.\u0275fac=function(e){return new(e||t)(Ms(St(()=>jd)))},t.\u0275dir=_e({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(t,e,r){var n;1&t&&Ua(r,Sd,!1),2&t&&Ga(n=Wa())&&(e.menuItems=n)},hostVars:5,hostBindings:function(t,e){1&t&&zs("keydown.ArrowUp",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.ArrowDown",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.Home",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.End",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.Enter",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.Space",(function(t){return e.dropdown.onKeyDown(t)})),2&t&&(qs("x-placement",e.placement),no("dropdown-menu",!0)("show",e.dropdown.isOpen()))}}),t})(),kd=(()=>{let t=class{constructor(t,e){this.dropdown=t,this._elementRef=e,this.anchorEl=e.nativeElement}getNativeElement(){return this._elementRef.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(Ms(St(()=>jd)),Ms(Vo))},t.\u0275dir=_e({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:["aria-haspopup","true",1,"dropdown-toggle"],hostVars:1,hostBindings:function(t,e){2&t&&qs("aria-expanded",e.dropdown.isOpen())}}),t})(),Td=(()=>{let t=wd=class extends kd{constructor(t,e){super(t,e)}};return t.\u0275fac=function(e){return new(e||t)(Ms(St(()=>jd)),Ms(Vo))},t.\u0275dir=_e({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:["aria-haspopup","true",1,"dropdown-toggle"],hostVars:1,hostBindings:function(t,e){1&t&&zs("click",(function(){return e.dropdown.toggle()}))("keydown.ArrowUp",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.ArrowDown",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.Home",(function(t){return e.dropdown.onKeyDown(t)}))("keydown.End",(function(t){return e.dropdown.onKeyDown(t)})),2&t&&qs("aria-expanded",e.dropdown.isOpen())},features:[Ro([{provide:kd,useExisting:St(()=>wd)}]),_o]}),t})(),jd=(()=>{let t=class{constructor(t,e,r,n,i,s,o){this._changeDetector=t,this._document=r,this._ngZone=n,this._elementRef=i,this._renderer=s,this._closed$=new A,this._open=!1,this.openChange=new Oa,this.placement=e.placement,this.container=e.container,this.autoClose=e.autoClose,this.display=o?"static":"dynamic",this._zoneSubscription=n.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(zc(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(t){t.container&&this._open&&this._applyContainer(this.container),t.placement&&!t.placement.isFirstChange&&this._applyPlacementClasses()}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers())}_setCloseHandlers(){const t=this._anchor;!function(t,e,r,n,i,s,o,a){var h;r&&t.runOutsideAngular((h=()=>{const h=Ac(e,"keydown").pipe(Ic(i),Rc(t=>t.which===cd.Escape),Wc(t=>t.preventDefault())),u=Ac(e,"mousedown").pipe(R(t=>{const e=t.target;return 2!==t.button&&!dd(e,o)&&("inside"===r?dd(e,s)&&fd(e,a):"outside"===r?!dd(e,s):fd(e,a)||!dd(e,s))}),Ic(i));(function(...t){if(1===t.length){if(!l(t[0]))return t[0];t=t[0]}return $(t,void 0).lift(new kc)})([h,Ac(e,"mouseup").pipe(Yc(u),Rc(([t,e])=>e),Kc(0),Ic(i))]).subscribe(()=>t.run(n))},pd?()=>setTimeout(()=>h(),100):h))}(this._ngZone,this._document,this.autoClose,()=>this.close(),this._closed$,this._menu?[this._menuElement.nativeElement]:[],t?[t.getNativeElement()]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(t){const e=t.which,r=this._getMenuElements();let n=-1,i=!1,s=null;const o=this._isEventFromToggle(t);if(!o&&r.length&&r.forEach((e,r)=>{e.contains(t.target)&&(i=!0,s=e),e===this._document.activeElement&&(n=r)}),e!==cd.Space&&e!==cd.Enter){if(o||i){if(this.open(),r.length){switch(e){case cd.ArrowDown:n=Math.min(n+1,r.length-1);break;case cd.ArrowUp:if(this._isDropup()&&-1===n){n=r.length-1;break}n=Math.max(n-1,0);break;case cd.Home:n=0;break;case cd.End:n=r.length-1}r[n].focus()}t.preventDefault()}}else!i||!0!==this.autoClose&&"inside"!==this.autoClose||Ac(s,"click").pipe(zc(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(t){return this._anchor.getNativeElement().contains(t.target)}_getMenuElements(){const t=this._menu;return null==t?[]:t.menuItems.filter(t=>!t.disabled).map(t=>t.elementRef.nativeElement)}_positionMenu(){const t=this._menu;this.isOpen()&&t&&this._applyPlacementClasses("dynamic"===this.display?function(t,e,r,n,i){let s=Array.isArray(r)?r:r.split(yd);const o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=t=>{const[e,r]=t.split("-"),n=[];return n};let l=s.findIndex(t=>"auto"===t);l>=0&&o.forEach((function(t){null==s.find(e=>-1!==e.search("^"+t))&&s.splice(l++,1,t)}));const h=e.style;let u;h.position="absolute",h.top="0",h.left="0",h["will-change"]="transform";let c=!1;for(u of s){a(u);if(xd.positionElements(t,e,u,n)){c=!0;break}}return c||(u=s[0],a(u),xd.positionElements(t,e,u,n)),u}(this._anchor.anchorEl,this._bodyContainer||this._menuElement.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(t){return Array.isArray(t)?t[0]:t.split(" ")[0]}_resetContainer(){const t=this._renderer,e=this._menuElement;if(e){const r=e.nativeElement;t.appendChild(this._elementRef.nativeElement,r),t.removeStyle(r,"position"),t.removeStyle(r,"transform")}this._bodyContainer&&(t.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(t=null){if(this._resetContainer(),"body"===t){const t=this._renderer,e=this._menuElement.nativeElement,r=this._bodyContainer=this._bodyContainer||t.createElement("div");t.setStyle(r,"position","absolute"),t.setStyle(e,"position","static"),t.setStyle(r,"z-index","1050"),t.appendChild(r,e),t.appendChild(this._document.body,r)}}_applyPlacementClasses(t){const e=this._menu;if(e){t||(t=this._getFirstPlacement(this.placement));const r=this._renderer,n=this._elementRef.nativeElement;r.removeClass(n,"dropup"),r.removeClass(n,"dropdown"),e.placement="static"===this.display?null:t;const i=-1!==t.search("^top")?"dropup":"dropdown";r.addClass(n,i);const s=this._bodyContainer;s&&(r.removeClass(s,"dropup"),r.removeClass(s,"dropdown"),r.addClass(s,i))}}};return t.\u0275fac=function(e){return new(e||t)(Ms(ts),Ms(bd),Ms(Zl),Ms(_l),Ms(Vo),Ms(Uo),Ms(Cd,8))},t.\u0275dir=_e({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(t,e,r){var n;1&t&&(Ua(r,Ad,!0),Ua(r,Ad,!0,Vo),Ua(r,kd,!0)),2&t&&(Ga(n=Wa())&&(e._menu=n.first),Ga(n=Wa())&&(e._menuElement=n.first),Ga(n=Wa())&&(e._anchor=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&no("show",e.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[ko()]}),t})(),qd=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),Nd=(()=>{let t=class{constructor(){this.backdrop=!0,this.keyboard=!0}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Ed{constructor(t,e,r){this.nodes=t,this.viewRef=e,this.componentRef=r}}const Md=()=>{};let Od=(()=>{let t=class{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):Md}_adjustBody(t){const e=this._document.body,r=e.style.paddingRight,n=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=`${n+t}px`,()=>e.style["padding-right"]=r}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const r=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),r}};return t.\u0275fac=function(e){return new(e||t)(Yt(Zl))},t.\u0275prov=ct({factory:function(){return new t(Yt(Zl))},token:t,providedIn:"root"}),t})(),Id=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:2,hostBindings:function(t,e){2&t&&io("modal-backdrop fade show"+(e.backdropClass?" "+e.backdropClass:""))},inputs:{backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();class Dd{close(t){}dismiss(t){}}class Pd{constructor(t,e,r,n){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=r,this._beforeDismiss=n,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}close(t){this._windowCmptRef&&(this._resolve(t),this._removeModalElements())}_dismiss(t){this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.location.nativeElement;if(t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._backdropCmptRef){const t=this._backdropCmptRef.location.nativeElement;t.parentNode.removeChild(t),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null}}var Rd=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}({});let Fd=(()=>{let t=class{constructor(t,e,r){this._document=t,this._elRef=e,this._zone=r,this._closed$=new A,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Oa}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:t}=this._elRef;if(this._zone.runOutsideAngular(()=>{Ac(t,"keydown").pipe(Ic(this._closed$),Rc(t=>t.which===cd.Escape&&this.keyboard)).subscribe(t=>requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(Rd.ESC))}));let e=!1;Ac(this._dialogEl.nativeElement,"mousedown").pipe(Ic(this._closed$),Wc(()=>e=!1),Ec(()=>Ac(t,"mouseup").pipe(Ic(this._closed$),zc(1))),Rc(({target:e})=>t===e)).subscribe(()=>{e=!0}),Ac(t,"click").pipe(Ic(this._closed$)).subscribe(({target:r})=>{!0!==this.backdrop||t!==r||e||this._zone.run(()=>this.dismiss(Rd.BACKDROP_CLICK)),e=!1})}),!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),r=md(t)[0];(e||r||t).focus()}}ngOnDestroy(){const t=this._document.body,e=this._elWithFocus;let r;r=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null}),this._closed$.next()}};return t.\u0275fac=function(e){return new(e||t)(Ms(Zl),Ms(Vo),Ms(_l))},t.\u0275cmp=pe({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){var r,n,i,s;1&t&&(n=id,i=!0,function(t,e,r,n,i,s){t.firstCreatePass&&(Xa(t,new Fa(r,n,!0,i),-1),t.staticViewQueries=!0),$a(t,e)}(De(),Ie(),n,i,s)),2&t&&Ga(r=Wa())&&(e._dialogEl=r.first)},hostAttrs:["role","dialog","tabindex","-1"],hostVars:4,hostBindings:function(t,e){2&t&&(qs("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy),io("modal fade show d-block"+(e.windowClass?" "+e.windowClass:"")))},inputs:{backdrop:"backdrop",keyboard:"keyboard",ariaLabelledBy:"ariaLabelledBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:nd,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(Xs(),Rs(0,"div",0,1),Rs(2,"div",2),Ys(3),Fs(),Fs()),2&t&&io("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),Ld=(()=>{let t=class{constructor(t,e,r,n,i,s){this._applicationRef=t,this._injector=e,this._document=r,this._scrollBar=n,this._rendererFactory=i,this._ngZone=s,this._activeWindowCmptHasChanged=new A,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];((t,e,r,n=!1)=>{this._ngZone.runOutsideAngular(()=>{const t=Ac(e,"focusin").pipe(Ic(r),R(t=>t.target));Ac(e,"keydown").pipe(Ic(r),Rc(t=>t.which===cd.Tab),Yc(t)).subscribe(([t,r])=>{const[n,i]=md(e);r!==n&&r!==e||!t.shiftKey||(i.focus(),t.preventDefault()),r!==i||t.shiftKey||(n.focus(),t.preventDefault())}),n&&Ac(e,"click").pipe(Ic(r),Yc(t),R(t=>t[1])).subscribe(t=>t.focus())})})(0,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,r,n){const i=n.container instanceof HTMLElement?n.container:sd(n.container)?this._document.querySelector(n.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!i)throw new Error(`The specified modal container "${n.container||"body"}" was not found in the DOM.`);const l=new Dd,h=this._getContentRef(t,n.injector||e,r,l,n);let u=!1!==n.backdrop?this._attachBackdrop(t,i):null,c=this._attachWindowComponent(t,i,h),d=new Pd(c,h,u,n.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(c),d.result.then(o,o),d.result.then(a,a),l.close=t=>{d.close(t)},l.dismiss=t=>{d.dismiss(t)},this._applyWindowOptions(c.instance,n),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&this._applyBackdropOptions(u.instance,n),d}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let r=t.resolveComponentFactory(Id).create(this._injector);return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_attachWindowComponent(t,e,r){let n=t.resolveComponentFactory(Fd).create(this._injector,r.nodes);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_applyWindowOptions(t,e){this._windowAttributes.forEach(r=>{sd(e[r])&&(t[r]=e[r])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(r=>{sd(e[r])&&(t[r]=e[r])})}_getContentRef(t,e,r,n,i){return r?r instanceof ca?this._createFromTemplateRef(r,n):"string"==typeof r?this._createFromString(r):this._createFromComponent(t,e,r,n,i):new Ed([])}_createFromTemplateRef(t,e){const r=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(r),new Ed([r.rootNodes],r)}_createFromString(t){const e=this._document.createTextNode(`${t}`);return new Ed([[e]])}_createFromComponent(t,e,r,n,i){const s=t.resolveComponentFactory(r),o=ms.create({providers:[{provide:Dd,useValue:n}],parent:e}),a=s.create(o),l=a.location.nativeElement;return i.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new Ed([[l]],a.hostView,a)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&this._modalRefs.splice(e,1)};this._modalRefs.push(t),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}};return t.\u0275fac=function(e){return new(e||t)(Yt(Hl),Yt(ms),Yt(Zl),Yt(Od),Yt(zo),Yt(_l))},t.\u0275prov=ct({factory:function(){return new t(Yt(Hl),Yt(Ht),Yt(Zl),Yt(Od),Yt(zo),Yt(_l))},token:t,providedIn:"root"}),t})(),Hd=(()=>{let t=class{constructor(t,e,r,n){this._moduleCFR=t,this._injector=e,this._modalStack=r,this._config=n}open(t,e={}){const r=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,r)}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}};return t.\u0275fac=function(e){return new(e||t)(Yt(Ho),Yt(ms),Yt(Ld),Yt(Nd))},t.\u0275prov=ct({factory:function(){return new t(Yt(Ho),Yt(Ht),Yt(Ld),Yt(Nd))},token:t,providedIn:"root"}),t})(),Vd=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Hd]}),t})(),Bd=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th]]}),t})(),zd=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th]]}),t})(),Gd=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th]]}),t})(),Ud=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th]]}),t})(),Wd=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th]]}),t})(),$d=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th]]}),t})(),Xd=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th]]}),t})(),Yd=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th]]}),t})(),Qd=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),Jd=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Th]]}),t})();const Zd=[od,ad,ld,hd,ud,_d,qd,Vd,Bd,zd,Gd,Ud,Wd,Xd,Yd,Qd,Jd,$d];let Kd=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[Zd,od,ad,ld,hd,ud,_d,qd,Vd,Bd,zd,Gd,Ud,Wd,Xd,Yd,Qd,Jd,$d]}),t})();const tf=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function ef(t){return new _(e=>{let r;try{r=t()}catch(n){return void e.error(n)}return(r?V(r):Bc()).subscribe(e)})}function rf(t){return function(e){return 0===t?Bc():e.lift(new nf(t))}}class nf{constructor(t){if(this.total=t,this.total<0)throw new Hc}call(t,e){return e.subscribe(new sf(t,this.total))}}class sf extends p{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,r=this.total,n=this.count++;e.length<r?e.push(t):e[n%r]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const r=this.count>=this.total?this.total:this.count,n=this.ring;for(let i=0;i<r;i++){const i=e++%r;t.next(n[i])}}t.complete()}}function of(t=hf){return e=>e.lift(new af(t))}class af{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new lf(t,this.errorFactory))}}class lf extends p{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function hf(){return new tf}function uf(t=null){return e=>e.lift(new cf(t))}class cf{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new df(t,this.defaultValue))}}class df extends p{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function ff(t,e){const r=arguments.length>=2;return n=>n.pipe(t?Rc((e,r)=>t(e,r,n)):U,rf(1),r?uf(e):of(()=>new tf))}function pf(t){return function(e){const r=new gf(t),n=e.lift(r);return r.caught=n}}class gf{constructor(t){this.selector=t}call(t,e){return e.subscribe(new mf(t,this.selector,this.caught))}}class mf extends P{constructor(t,e,r){super(t),this.selector=e,this.caught=r}error(t){if(!this.isStopped){let r;try{r=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new j(this,void 0,void 0);this.add(n);const i=D(this,r,void 0,void 0,n);i!==n&&this.add(i)}}}function vf(t,e){const r=arguments.length>=2;return n=>n.pipe(t?Rc((e,r)=>t(e,r,n)):U,zc(1),r?uf(e):of(()=>new tf))}class yf{constructor(t,e,r){this.predicate=t,this.thisArg=e,this.source=r}call(t,e){return e.subscribe(new xf(t,this.predicate,this.thisArg,this.source))}}class xf extends p{constructor(t,e,r,n){super(t),this.predicate=e,this.thisArg=r,this.source=n,this.index=0,this.thisArg=r||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(r){return void this.destination.error(r)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function _f(t,e){let r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new bf(t,e,r))}}class bf{constructor(t,e,r=!1){this.accumulator=t,this.seed=e,this.hasSeed=r}call(t,e){return e.subscribe(new wf(t,this.accumulator,this.seed,this.hasSeed))}}class wf extends p{constructor(t,e,r,n){super(t),this.accumulator=e,this._seed=r,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let r;try{r=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=r,this.destination.next(r)}}function Cf(t,e){return B(t,e,1)}class Sf{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Af(t,this.callback))}}class Af extends p{constructor(t,e){super(t),this.add(new c(e))}}class kf{constructor(t,e){this.id=t,this.url=e}}class Tf extends kf{constructor(t,e,r="imperative",n=null){super(t,e),this.navigationTrigger=r,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class jf extends kf{constructor(t,e,r){super(t,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class qf extends kf{constructor(t,e,r){super(t,e),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nf extends kf{constructor(t,e,r){super(t,e),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ef extends kf{constructor(t,e,r,n){super(t,e),this.urlAfterRedirects=r,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mf extends kf{constructor(t,e,r,n){super(t,e),this.urlAfterRedirects=r,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Of extends kf{constructor(t,e,r,n,i){super(t,e),this.urlAfterRedirects=r,this.state=n,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class If extends kf{constructor(t,e,r,n){super(t,e),this.urlAfterRedirects=r,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Df extends kf{constructor(t,e,r,n){super(t,e),this.urlAfterRedirects=r,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pf{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Rf{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ff{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Lf{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hf{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vf{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bf{constructor(t,e,r){this.routerEvent=t,this.position=e,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let zf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ls(0,"router-outlet")},directives:function(){return[Xg]},encapsulation:2}),t})();class Gf{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Uf(t){return new Gf(t)}function Wf(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function $f(t,e,r){const n=r.path.split("/");if(n.length>t.length)return null;if("full"===r.pathMatch&&(e.hasChildren()||n.length<t.length))return null;const i={};for(let s=0;s<n.length;s++){const e=n[s],r=t[s];if(e.startsWith(":"))i[e.substring(1)]=r;else if(e!==r.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}class Xf{constructor(t,e){this.routes=t,this.module=e}}function Yf(t,e=""){for(let r=0;r<t.length;r++){const n=t[r];Qf(n,Jf(e,n))}}function Qf(t,e){if(!t)throw new Error(`\n Invalid configuration of route '${e}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&Yf(t.children,e)}function Jf(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Zf(t){const e=t.children&&t.children.map(Zf),r=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!r.component&&(e||r.loadChildren)&&r.outlet&&"primary"!==r.outlet&&(r.component=zf),r}function Kf(t,e){const r=Object.keys(t),n=Object.keys(e);if(!r||!n||r.length!=n.length)return!1;let i;for(let s=0;s<r.length;s++)if(i=r[s],!tp(t[i],e[i]))return!1;return!0}function tp(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function ep(t){return Array.prototype.concat.apply([],t)}function rp(t){return t.length>0?t[t.length-1]:null}function np(t,e){for(const r in t)t.hasOwnProperty(r)&&e(t[r],r)}function ip(t){return Bs(t)?t:Vs(t)?V(Promise.resolve(t)):jc(t)}function sp(t,e,r){return r?function(t,e){return Kf(t,e)}(t.queryParams,e.queryParams)&&function t(e,r){if(!hp(e.segments,r.segments))return!1;if(e.numberOfChildren!==r.numberOfChildren)return!1;for(const n in r.children){if(!e.children[n])return!1;if(!t(e.children[n],r.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>tp(t[r],e[r]))}(t.queryParams,e.queryParams)&&function t(e,r){return function e(r,n,i){if(r.segments.length>i.length)return!!hp(r.segments.slice(0,i.length),i)&&!n.hasChildren();if(r.segments.length===i.length){if(!hp(r.segments,i))return!1;for(const e in n.children){if(!r.children[e])return!1;if(!t(r.children[e],n.children[e]))return!1}return!0}{const t=i.slice(0,r.segments.length),s=i.slice(r.segments.length);return!!hp(r.segments,t)&&!!r.children.primary&&e(r.children.primary,n,s)}}(e,r,r.segments)}(t.root,e.root)}class op{constructor(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Uf(this.queryParams)),this._queryParamMap}toString(){return fp.serialize(this)}}class ap{constructor(t,e){this.segments=t,this.children=e,this.parent=null,np(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return pp(this)}}class lp{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Uf(this.parameters)),this._parameterMap}toString(){return _p(this)}}function hp(t,e){return t.length===e.length&&t.every((t,r)=>t.path===e[r].path)}function up(t,e){let r=[];return np(t.children,(t,n)=>{"primary"===n&&(r=r.concat(e(t,n)))}),np(t.children,(t,n)=>{"primary"!==n&&(r=r.concat(e(t,n)))}),r}class cp{}class dp{parse(t){const e=new Ap(t);return new op(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,r){if(!e.hasChildren())return pp(e);if(r){const r=e.children.primary?t(e.children.primary,!1):"",n=[];return np(e.children,(e,r)=>{"primary"!==r&&n.push(`${r}:${t(e,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}{const r=up(e,(r,n)=>"primary"===n?[t(e.children.primary,!1)]:[`${n}:${t(r,!1)}`]);return`${pp(e)}/(${r.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const r=t[e];return Array.isArray(r)?r.map(t=>`${mp(e)}=${mp(t)}`).join("&"):`${mp(e)}=${mp(r)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const fp=new dp;function pp(t){return t.segments.map(t=>_p(t)).join("/")}function gp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mp(t){return gp(t).replace(/%3B/gi,";")}function vp(t){return gp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yp(t){return decodeURIComponent(t)}function xp(t){return yp(t.replace(/\+/g,"%20"))}function _p(t){return`${vp(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${vp(t)}=${vp(e[t])}`).join("")}`;var e}const bp=/^[^\/()?;=#]+/;function wp(t){const e=t.match(bp);return e?e[0]:""}const Cp=/^[^=?&#]+/,Sp=/^[^?&#]+/;class Ap{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ap([],{}):new ap([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r.primary=new ap(t,e)),r}parseSegment(){const t=wp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new lp(yp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=wp(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const t=wp(this.remaining);t&&(r=t,this.capture(r))}t[yp(e)]=yp(r)}parseQueryParam(t){const e=function(t){const e=t.match(Cp);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Sp);return e?e[0]:""}(this.remaining);t&&(r=t,this.capture(r))}const n=xp(e),i=xp(r);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(i)}else t[n]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=wp(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");const s=this.parseChildren();e[i]=1===Object.keys(s).length?s.primary:new ap([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class kp{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Tp(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Tp(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=jp(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return jp(t,this._root).map(t=>t.value)}}function Tp(t,e){if(t===e.value)return e;for(const r of e.children){const e=Tp(t,r);if(e)return e}return null}function jp(t,e){if(t===e.value)return[e];for(const r of e.children){const n=jp(t,r);if(n.length)return n.unshift(e),n}return[]}class qp{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Np(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ep extends kp{constructor(t,e){super(t),this.snapshot=e,Rp(this,t)}toString(){return this.snapshot.toString()}}function Mp(t,e){const r=function(t,e){const r=new Dp([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Pp("",new qp(r,[]))}(t,e),n=new mc([new lp("",{})]),i=new mc({}),s=new mc({}),o=new mc({}),a=new mc(""),l=new Op(n,i,o,a,s,"primary",e,r.root);return l.snapshot=r.root,new Ep(new qp(l,[]),r)}class Op{constructor(t,e,r,n,i,s,o,a){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=i,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(R(t=>Uf(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(R(t=>Uf(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ip(t,e="emptyOnly"){const r=t.pathFromRoot;let n=0;if("always"!==e)for(n=r.length-1;n>=1;){const t=r[n],e=r[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(r.slice(n))}class Dp{constructor(t,e,r,n,i,s,o,a,l,h,u){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=i,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=h,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Uf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Uf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Pp extends kp{constructor(t,e){super(e),this.url=t,Rp(this,e)}toString(){return Fp(this._root)}}function Rp(t,e){e.value._routerState=t,e.children.forEach(e=>Rp(t,e))}function Fp(t){const e=t.children.length>0?` { ${t.children.map(Fp).join(", ")} } `:"";return`${t.value}${e}`}function Lp(t){if(t.snapshot){const e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Kf(e.queryParams,r.queryParams)||t.queryParams.next(r.queryParams),e.fragment!==r.fragment&&t.fragment.next(r.fragment),Kf(e.params,r.params)||t.params.next(r.params),function(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!Kf(t[r],e[r]))return!1;return!0}(e.url,r.url)||t.url.next(r.url),Kf(e.data,r.data)||t.data.next(r.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Hp(t,e){var r,n;return Kf(t.params,e.params)&&hp(r=t.url,n=e.url)&&r.every((t,e)=>Kf(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Hp(t.parent,e.parent))}function Vp(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Bp(t,e,r,n,i){let s={};return n&&np(n,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new op(r.root===t?e:function t(e,r,n){const i={};return np(e.children,(e,s)=>{i[s]=e===r?n:t(e,r,n)}),new ap(e.segments,i)}(r.root,t,e),s,i)}class zp{constructor(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&Vp(r[0]))throw new Error("Root segment cannot have matrix parameters");const n=r.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(n&&n!==rp(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gp{constructor(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r}}function Up(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function Wp(t,e,r){if(t||(t=new ap([],{})),0===t.segments.length&&t.hasChildren())return $p(t,e,r);const n=function(t,e,r){let n=0,i=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=r.length)return s;const e=t.segments[i],o=Up(r[n]),a=n<r.length-1?r[n+1]:null;if(i>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Jp(o,a,e))return s;n+=2}else{if(!Jp(o,{},e))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){const e=new ap(t.segments.slice(0,n.pathIndex),{});return e.children.primary=new ap(t.segments.slice(n.pathIndex),t.children),$p(e,0,i)}return n.match&&0===i.length?new ap(t.segments,{}):n.match&&!t.hasChildren()?Xp(t,e,r):n.match?$p(t,0,i):Xp(t,e,r)}function $p(t,e,r){if(0===r.length)return new ap(t.segments,{});{const n=function(t){return"object"!=typeof t[0]?{primary:t}:void 0===t[0].outlets?{primary:t}:t[0].outlets}(r),i={};return np(n,(r,n)=>{null!==r&&(i[n]=Wp(t.children[n],e,r))}),np(t.children,(t,e)=>{void 0===n[e]&&(i[e]=t)}),new ap(t.segments,i)}}function Xp(t,e,r){const n=t.segments.slice(0,e);let i=0;for(;i<r.length;){if("object"==typeof r[i]&&void 0!==r[i].outlets){const t=Yp(r[i].outlets);return new ap(n,t)}if(0===i&&Vp(r[0])){n.push(new lp(t.segments[e].path,r[0])),i++;continue}const s=Up(r[i]),o=i<r.length-1?r[i+1]:null;s&&o&&Vp(o)?(n.push(new lp(s,Qp(o))),i+=2):(n.push(new lp(s,{})),i++)}return new ap(n,{})}function Yp(t){const e={};return np(t,(t,r)=>{null!==t&&(e[r]=Xp(new ap([],{}),0,t))}),e}function Qp(t){const e={};return np(t,(t,r)=>e[r]=`${t}`),e}function Jp(t,e,r){return t==r.path&&Kf(e,r.parameters)}class Zp{constructor(t,e,r,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=r,this.forwardEvent=n}activate(t){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),Lp(this.futureState.root),this.activateChildRoutes(e,r,t)}deactivateChildRoutes(t,e,r){const n=Np(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],r),delete n[e]}),np(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,r)})}deactivateRoutes(t,e,r){const n=t.value,i=e?e.value:null;if(n===i)if(n.component){const i=r.getContext(n.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,r);else i&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const r=e.getContext(t.value.outlet);if(r&&r.outlet){const e=r.outlet.detach(),n=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const r=e.getContext(t.value.outlet);if(r){const n=Np(t),i=t.value.component?r.children:e;np(n,(t,e)=>this.deactivateRouteAndItsChildren(t,i)),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}}activateChildRoutes(t,e,r){const n=Np(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],r),this.forwardEvent(new Vf(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Lf(t.value.snapshot))}activateRoutes(t,e,r){const n=t.value,i=e?e.value:null;if(Lp(n),n===i)if(n.component){const i=r.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,r);else if(n.component){const e=r.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Kp(t.route)}else{const r=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),i=r?r.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=i,e.outlet&&e.outlet.activateWith(n,i),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,r)}}function Kp(t){Lp(t.value),t.children.forEach(Kp)}function tg(t){return"function"==typeof t}function eg(t){return t instanceof op}class rg{constructor(t){this.segmentGroup=t||null}}class ng{constructor(t){this.urlTree=t}}function ig(t){return new _(e=>e.error(new rg(t)))}function sg(t){return new _(e=>e.error(new ng(t)))}function og(t){return new _(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class ag{constructor(t,e,r,n,i){this.configLoader=e,this.urlSerializer=r,this.urlTree=n,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(Kt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(R(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(pf(t=>{if(t instanceof ng)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof rg)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(R(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(pf(t=>{if(t instanceof rg)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,r){const n=t.segments.length>0?new ap([],{primary:t}):t;return new op(n,e,r)}expandSegmentGroup(t,e,r,n){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,e,r).pipe(R(t=>new ap([],t))):this.expandSegment(t,r,e,r.segments,n,!0)}expandChildren(t,e,r){return function(t,e){if(0===Object.keys(t).length)return jc({});const r=[],n=[],i={};return np(t,(t,s)=>{const o=e(s,t).pipe(R(t=>i[s]=t));"primary"===s?r.push(o):n.push(o)}),jc.apply(null,r.concat(n)).pipe(qc(),ff(),R(()=>i))}(r.children,(r,n)=>this.expandSegmentGroup(t,e,n,r))}expandSegment(t,e,r,n,i,s){return jc(...r).pipe(R(o=>this.expandSegmentAgainstRoute(t,e,r,o,n,i,s).pipe(pf(t=>{if(t instanceof rg)return jc(null);throw t}))),qc(),vf(t=>!!t),pf((t,r)=>{if(t instanceof tf||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,i))return jc(new ap([],{}));throw new rg(e)}throw t}))}noLeftoversInUrl(t,e,r){return 0===e.length&&!t.children[r]}expandSegmentAgainstRoute(t,e,r,n,i,s,o){return cg(n)!==s?ig(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,i,s):ig(e)}expandSegmentAgainstRouteUsingRedirect(t,e,r,n,i,s){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,r,n){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?sg(i):this.lineralizeSegments(r,i).pipe(B(r=>{const i=new ap(r,{});return this.expandSegment(t,i,e,r,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,i,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:h}=lg(e,n,i);if(!o)return ig(e);const u=this.applyRedirectCommands(a,n.redirectTo,h);return n.redirectTo.startsWith("/")?sg(u):this.lineralizeSegments(n,u).pipe(B(n=>this.expandSegment(t,e,r,n.concat(i.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,r,n){if("**"===r.path)return r.loadChildren?this.configLoader.load(t.injector,r).pipe(R(t=>(r._loadedConfig=t,new ap(n,{})))):jc(new ap(n,{}));const{matched:i,consumedSegments:s,lastChild:o}=lg(e,r,n);if(!i)return ig(e);const a=n.slice(o);return this.getChildConfig(t,r,n).pipe(B(t=>{const r=t.module,n=t.routes,{segmentGroup:i,slicedSegments:o}=function(t,e,r,n){return r.length>0&&function(t,e,r){return r.some(r=>ug(t,e,r)&&"primary"!==cg(r))}(t,r,n)?{segmentGroup:hg(new ap(e,function(t,e){const r={};r.primary=e;for(const n of t)""===n.path&&"primary"!==cg(n)&&(r[cg(n)]=new ap([],{}));return r}(n,new ap(r,t.children)))),slicedSegments:[]}:0===r.length&&function(t,e,r){return r.some(r=>ug(t,e,r))}(t,r,n)?{segmentGroup:hg(new ap(t.segments,function(t,e,r,n){const i={};for(const s of r)ug(t,e,s)&&!n[cg(s)]&&(i[cg(s)]=new ap([],{}));return Object.assign(Object.assign({},n),i)}(t,r,n,t.children))),slicedSegments:r}:{segmentGroup:t,slicedSegments:r}}(e,s,a,n);return 0===o.length&&i.hasChildren()?this.expandChildren(r,n,i).pipe(R(t=>new ap(s,t))):0===n.length&&0===o.length?jc(new ap(s,{})):this.expandSegment(r,i,n,o,"primary",!0).pipe(R(t=>new ap(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,r){return e.children?jc(new Xf(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?jc(e._loadedConfig):function(t,e,r){const n=e.canLoad;return n&&0!==n.length?V(n).pipe(R(n=>{const i=t.get(n);let s;if(function(t){return t&&tg(t.canLoad)}(i))s=i.canLoad(e,r);else{if(!tg(i))throw new Error("Invalid CanLoad guard");s=i(e,r)}return ip(s)})).pipe(qc(),(i=t=>!0===t,t=>t.lift(new yf(i,void 0,t)))):jc(!0);var i}(t.injector,e,r).pipe(B(r=>r?this.configLoader.load(t.injector,e).pipe(R(t=>(e._loadedConfig=t,t))):function(t){return new _(e=>e.error(Wf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):jc(new Xf([],t))}lineralizeSegments(t,e){let r=[],n=e.root;for(;;){if(r=r.concat(n.segments),0===n.numberOfChildren)return jc(r);if(n.numberOfChildren>1||!n.children.primary)return og(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,r){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,r)}applyRedirectCreatreUrlTree(t,e,r,n){const i=this.createSegmentGroup(t,e.root,r,n);return new op(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const r={};return np(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const i=t.substring(1);r[n]=e[i]}else r[n]=t}),r}createSegmentGroup(t,e,r,n){const i=this.createSegments(t,e.segments,r,n);let s={};return np(e.children,(e,i)=>{s[i]=this.createSegmentGroup(t,e,r,n)}),new ap(i,s)}createSegments(t,e,r,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,r))}findPosParam(t,e,r){const n=r[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let r=0;for(const n of e){if(n.path===t.path)return e.splice(r),n;r++}return t}}function lg(t,e,r){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const n=(e.matcher||$f)(r,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function hg(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new ap(t.segments.concat(e.segments),e.children)}return t}function ug(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&""===r.path&&void 0!==r.redirectTo}function cg(t){return t.outlet||"primary"}class dg{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class fg{constructor(t,e){this.component=t,this.route=e}}function pg(t,e,r){const n=t._root;return function t(e,r,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Np(r);return e.children.forEach(e=>{!function(e,r,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=r?r.value:null,l=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const h=function(t,e,r){if("function"==typeof r)return r(t,e);switch(r){case"pathParamsChange":return!hp(t.url,e.url);case"pathParamsOrQueryParamsChange":return!hp(t.url,e.url)||!Kf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hp(t,e)||!Kf(t.queryParams,e.queryParams);case"paramsChange":default:return!Hp(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);h?s.canActivateChecks.push(new dg(i)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,r,o.component?l?l.children:null:n,i,s),h&&s.canDeactivateChecks.push(new fg(l&&l.outlet&&l.outlet.component||null,a))}else a&&mg(r,l,s),s.canActivateChecks.push(new dg(i)),t(e,null,o.component?l?l.children:null:n,i,s)}(e,o[e.value.outlet],n,i.concat([e.value]),s),delete o[e.value.outlet]}),np(o,(t,e)=>mg(t,n.getContext(e),s)),s}(n,e?e._root:null,r,[n.value])}function gg(t,e,r){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:r).get(t)}function mg(t,e,r){const n=Np(t),i=t.value;np(n,(t,n)=>{mg(t,i.component?e?e.children.getContext(n):null:e,r)}),r.canDeactivateChecks.push(new fg(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}const vg=Symbol("INITIAL_VALUE");function yg(){return Ec(t=>function(...t){let e=null,r=null;return T(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),$(t,r).lift(new yc(e))}(...t.map(t=>t.pipe(zc(1),function(...t){const e=t[t.length-1];return T(e)?(t.pop(),r=>Nc(t,r,e)):e=>Nc(t,e)}(vg)))).pipe(_f((t,e)=>{let r=!1;return e.reduce((t,n,i)=>{if(t!==vg)return t;if(n===vg&&(r=!0),!r){if(!1===n)return n;if(i===e.length-1||eg(n))return n}return t},t)},vg),Rc(t=>t!==vg),R(t=>eg(t)?t:!0===t),zc(1)))}function xg(t,e){return null!==t&&e&&e(new Hf(t)),jc(!0)}function _g(t,e){return null!==t&&e&&e(new Ff(t)),jc(!0)}function bg(t,e,r){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?jc(n.map(n=>ef(()=>{const i=gg(n,e,r);let s;if(function(t){return t&&tg(t.canActivate)}(i))s=ip(i.canActivate(e,t));else{if(!tg(i))throw new Error("Invalid CanActivate guard");s=ip(i(e,t))}return s.pipe(vf())}))).pipe(yg()):jc(!0)}function wg(t,e,r){const n=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>ef(()=>jc(e.guards.map(i=>{const s=gg(i,e.node,r);let o;if(function(t){return t&&tg(t.canActivateChild)}(s))o=ip(s.canActivateChild(n,t));else{if(!tg(s))throw new Error("Invalid CanActivateChild guard");o=ip(s(n,t))}return o.pipe(vf())})).pipe(yg())));return jc(i).pipe(yg())}class Cg{}class Sg{constructor(t,e,r,n,i,s){this.rootComponentType=t,this.config=e,this.urlTree=r,this.url=n,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){try{const t=Tg(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),r=new Dp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new qp(r,e),i=new Pp(this.url,n);return this.inheritParamsAndData(i._root),jc(i)}catch(t){return new _(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,r=Ip(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,r)}processChildren(t,e){const r=up(e,(e,r)=>this.processSegmentGroup(t,e,r));return function(t){const e={};t.forEach(t=>{const r=e[t.value.outlet];if(r){const e=r.url.map(t=>t.toString()).join("/"),n=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${n}'.`)}e[t.value.outlet]=t.value})}(r),r.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),r}processSegment(t,e,r,n){for(const s of t)try{return this.processSegmentAgainstRoute(s,e,r,n)}catch(i){if(!(i instanceof Cg))throw i}if(this.noLeftoversInUrl(e,r,n))return[];throw new Cg}noLeftoversInUrl(t,e,r){return 0===e.length&&!t.children[r]}processSegmentAgainstRoute(t,e,r,n){if(t.redirectTo)throw new Cg;if((t.outlet||"primary")!==n)throw new Cg;let i,s=[],o=[];if("**"===t.path){const s=r.length>0?rp(r).parameters:{};i=new Dp(r,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ng(t),n,t.component,t,Ag(e),kg(e)+r.length,Eg(t))}else{const a=function(t,e,r){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||r.length>0))throw new Cg;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||$f)(r,t,e);if(!n)throw new Cg;const i={};np(n.posParams,(t,e)=>{i[e]=t.path});const s=n.consumed.length>0?Object.assign(Object.assign({},i),n.consumed[n.consumed.length-1].parameters):i;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:s}}(e,t,r);s=a.consumedSegments,o=r.slice(a.lastChild),i=new Dp(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ng(t),n,t.component,t,Ag(e),kg(e)+s.length,Eg(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:h}=Tg(e,s,o,a,this.relativeLinkResolution);if(0===h.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new qp(i,t)]}if(0===a.length&&0===h.length)return[new qp(i,[])];const u=this.processSegment(a,l,h,"primary");return[new qp(i,u)]}}function Ag(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function kg(t){let e=t,r=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,r+=e._segmentIndexShift?e._segmentIndexShift:0;return r-1}function Tg(t,e,r,n,i){if(r.length>0&&function(t,e,r){return r.some(r=>jg(t,e,r)&&"primary"!==qg(r))}(t,r,n)){const i=new ap(e,function(t,e,r,n){const i={};i.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const s of r)if(""===s.path&&"primary"!==qg(s)){const r=new ap([],{});r._sourceSegment=t,r._segmentIndexShift=e.length,i[qg(s)]=r}return i}(t,e,n,new ap(r,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===r.length&&function(t,e,r){return r.some(r=>jg(t,e,r))}(t,r,n)){const s=new ap(t.segments,function(t,e,r,n,i,s){const o={};for(const a of n)if(jg(t,r,a)&&!i[qg(a)]){const r=new ap([],{});r._sourceSegment=t,r._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[qg(a)]=r}return Object.assign(Object.assign({},i),o)}(t,e,r,n,t.children,i));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:r}}const s=new ap(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:r}}function jg(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&""===r.path&&void 0===r.redirectTo}function qg(t){return t.outlet||"primary"}function Ng(t){return t.data||{}}function Eg(t){return t.resolve||{}}function Mg(t,e,r,n){const i=gg(t,e,n);return ip(i.resolve?i.resolve(e,r):i(e,r))}function Og(t){return function(e){return e.pipe(Ec(e=>{const r=t(e);return r?V(r).pipe(R(()=>e)):V([e])}))}}class Ig{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const Dg=new Lt("ROUTES");class Pg{constructor(t,e,r,n){this.loader=t,this.compiler=e,this.onLoadStartListener=r,this.onLoadEndListener=n}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(R(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=r.create(t);return new Xf(ep(n.injector.get(Dg)).map(Zf),n)}))}loadModuleFactory(t){return"string"==typeof t?V(this.loader.load(t)):ip(t()).pipe(B(t=>t instanceof te?jc(t):V(this.compiler.compileModuleAsync(t))))}}class Rg{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Fg(t){throw t}function Lg(t,e,r){return e.parse("/")}function Hg(t,e){return jc(null)}let Vg=(()=>{class t{constructor(t,e,r,n,i,s,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=r,this.location=n,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new A,this.errorHandler=Fg,this.malformedUriErrorHandler=Lg,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hg,afterPreactivation:Hg},this.urlHandlingStrategy=new Rg,this.routeReuseStrategy=new Ig,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(Kt),this.console=i.get(ol);const l=i.get(_l);this.isNgZoneEnabled=l instanceof _l,this.resetConfig(a),this.currentUrlTree=new op(new ap([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Pg(s,o,t=>this.triggerEvent(new Pf(t)),t=>this.triggerEvent(new Rf(t))),this.routerState=Mp(this.currentUrlTree,this.rootComponentType),this.transitions=new mc({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Rc(t=>0!==t.id),R(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Ec(t=>{let r=!1,n=!1;return jc(t).pipe(Wc(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Ec(t=>{const r=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||r)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return jc(t).pipe(Ec(t=>{const r=this.transitions.getValue();return e.next(new Tf(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==this.transitions.getValue()?Vc:[t]}),Ec(t=>Promise.resolve(t)),(n=this.ngModule.injector,i=this.configLoader,s=this.urlSerializer,o=this.config,function(t){return t.pipe(Ec(t=>function(t,e,r,n,i){return new ag(t,e,r,n,i).apply()}(n,i,s,t.extractedUrl,o).pipe(R(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Wc(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,r,n,i){return function(s){return s.pipe(B(s=>function(t,e,r,n,i="emptyOnly",s="legacy"){return new Sg(t,e,r,n,i,s).recognize()}(t,e,s.urlAfterRedirects,r(s.urlAfterRedirects),n,i).pipe(R(t=>Object.assign(Object.assign({},s),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Wc(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Wc(t=>{const r=new Ef(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(r)}));var n,i,s,o;if(r&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:r,extractedUrl:n,source:i,restoredState:s,extras:o}=t,a=new Tf(r,this.serializeUrl(n),i,s);e.next(a);const l=Mp(n,this.rootComponentType).snapshot;return jc(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Vc}),Og(t=>{const{targetSnapshot:e,id:r,extractedUrl:n,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:r,appliedUrlTree:n,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),Wc(t=>{const e=new Mf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),R(t=>Object.assign(Object.assign({},t),{guards:pg(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(r){return r.pipe(B(r=>{const{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=r;return 0===o.length&&0===s.length?jc(Object.assign(Object.assign({},r),{guardsResult:!0})):function(t,e,r,n){return V(t).pipe(B(t=>function(t,e,r,n,i){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?jc(s.map(s=>{const o=gg(s,e,i);let a;if(function(t){return t&&tg(t.canDeactivate)}(o))a=ip(o.canDeactivate(t,e,r,n));else{if(!tg(o))throw new Error("Invalid CanDeactivate guard");a=ip(o(t,e,r,n))}return a.pipe(vf())})).pipe(yg()):jc(!0)}(t.component,t.route,r,e,n)),vf(t=>!0!==t,!0))}(o,n,i,t).pipe(B(r=>r&&"boolean"==typeof r?function(t,e,r,n){return V(e).pipe(Cf(e=>V([_g(e.route.parent,n),xg(e.route,n),wg(t,e.path,r),bg(t,e.route,r)]).pipe(qc(),vf(t=>!0!==t,!0))),vf(t=>!0!==t,!0))}(n,s,t,e):jc(r)),R(t=>Object.assign(Object.assign({},r),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Wc(t=>{if(eg(t.guardsResult)){const e=Wf(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Wc(t=>{const e=new Of(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Rc(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const r=new qf(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(r),t.resolve(!1),!1}return!0}),Og(t=>{if(t.guards.canActivateChecks.length)return jc(t).pipe(Wc(t=>{const e=new If(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,r=this.ngModule.injector,function(t){return t.pipe(B(t=>{const{targetSnapshot:n,guards:{canActivateChecks:i}}=t;return i.length?V(i).pipe(Cf(t=>function(t,e,r,n){return function(t,e,r,n){const i=Object.keys(t);if(0===i.length)return jc({});if(1===i.length){const s=i[0];return Mg(t[s],e,r,n).pipe(R(t=>({[s]:t})))}const s={};return V(i).pipe(B(i=>Mg(t[i],e,r,n).pipe(R(t=>(s[i]=t,t))))).pipe(ff(),R(()=>s))}(t._resolve,t,e,n).pipe(R(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Ip(t,r).resolve),null)))}(t.route,n,e,r)),function(t,e){return arguments.length>=2?function(r){return y(_f(t,e),rf(1),uf(e))(r)}:function(e){return y(_f((e,r,n)=>t(e,r,n+1)),rf(1))(e)}}((t,e)=>t),R(e=>t)):jc(t)}))}),Wc(t=>{const e=new Df(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,r}),Og(t=>{const{targetSnapshot:e,id:r,extractedUrl:n,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:r,appliedUrlTree:n,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),R(t=>{const e=function(t,e,r){const n=function t(e,r,n){if(n&&e.shouldReuseRoute(r.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=r.value;const s=function(e,r,n){return r.children.map(r=>{for(const i of n.children)if(e.shouldReuseRoute(i.value.snapshot,r.value))return t(e,r,i);return t(e,r)})}(e,r,n);return new qp(i,s)}{const n=e.retrieve(r.value);if(n){const t=n.route;return function t(e,r){if(e.value.routeConfig!==r.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==r.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");r.value._futureSnapshot=e.value;for(let n=0;n<e.children.length;++n)t(e.children[n],r.children[n])}(r,t),t}{const n=new Op(new mc((i=r.value).url),new mc(i.params),new mc(i.queryParams),new mc(i.fragment),new mc(i.data),i.outlet,i.component,i),s=r.children.map(r=>t(e,r));return new qp(n,s)}}var i}(t,e._root,r?r._root:void 0);return new Ep(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Wc(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),R(t=>(new Zp(o,t.targetRouterState,t.currentRouterState,a).activate(s),t))),Wc({next(){r=!0},complete(){r=!0}}),(i=()=>{if(!r&&!n){this.resetUrlToCurrentUrlTree();const r=new qf(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(r),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new Sf(i))),pf(r=>{if(n=!0,(i=r)&&i.ngNavigationCancelingError){const n=eg(r.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const i=new qf(t.id,this.serializeUrl(t.extractedUrl),r.message);e.next(i),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(r.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new Nf(t.id,this.serializeUrl(t.extractedUrl),r);e.next(n);try{t.resolve(this.errorHandler(r))}catch(s){t.reject(s)}}var i;return Vc}));var i,s,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const r="popstate"===t.type?"popstate":"hashchange",n=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,r,n,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Yf(t),this.config=t.map(Zf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:r,queryParams:n,fragment:i,preserveQueryParams:s,queryParamsHandling:o,preserveFragment:a}=e;Jr()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=r||this.routerState.root,h=a?this.currentUrlTree.fragment:i;let u=null;if(o)switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=n||null}else u=s?this.currentUrlTree.queryParams:n||null;return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,r,n,i){if(0===r.length)return Bp(e.root,e.root,e,n,i);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new zp(!0,0,t);let e=0,r=!1;const n=t.reduce((t,n,i)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return np(n.outlets,(t,r)=>{e[r]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===i?(n.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new zp(r,e,n)}(r);if(s.toRoot())return Bp(e.root,new ap([],{}),e,n,i);const o=function(t,e,r){if(t.isAbsolute)return new Gp(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new Gp(r.snapshot._urlSegment,!0,0);const n=Vp(t.commands[0])?0:1;return function(t,e,r){let n=t,i=e,s=r;for(;s>i;){if(s-=i,n=n.parent,!n)throw new Error("Invalid number of '../'");i=n.segments.length}return new Gp(n,!1,i-s)}(r.snapshot._urlSegment,r.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?$p(o.segmentGroup,o.index,s.commands):Wp(o.segmentGroup,o.index,s.commands);return Bp(o.segmentGroup,a,e,n,i)}(l,this.currentUrlTree,t,u,h)}navigateByUrl(t,e={skipLocationChange:!1}){Jr()&&this.isNgZoneEnabled&&!_l.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const r=eg(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const r=t[e];if(null==r)throw new Error(`The requested path contains ${r} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(r){e=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return e}isActive(t,e){if(eg(t))return sp(this.currentUrlTree,t,e);const r=this.parseUrl(t);return sp(this.currentUrlTree,r,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return null!=n&&(e[r]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new jf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,r,n,i){const s=this.getTransition();if(s&&"imperative"!==e&&"imperative"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"hashchange"==e&&"popstate"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"popstate"==e&&"hashchange"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;i?(o=i.resolve,a=i.reject,l=i.promise):l=new Promise((t,e)=>{o=t,a=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,r,n){const i=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object.assign(Object.assign({},n),{navigationId:r})):this.location.go(i,"",Object.assign(Object.assign({},n),{navigationId:r}))}resetStateAndUrl(t,e,r){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){Is()},t.\u0275dir=_e({type:t}),t})(),Bg=(()=>{class t{constructor(t,e,r,n,i){this.router=t,this.route=e,this.commands=[],null==r&&n.setAttribute(i.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Jr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:Gg(this.skipLocationChange),replaceUrl:Gg(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Gg(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Gg(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ms(Vg),Ms(Op),Os("tabindex"),Ms(Uo),Ms(Vo))},t.\u0275dir=_e({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&zs("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),zg=(()=>{class t{constructor(t,e,r){this.router=t,this.route=e,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof jf&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Jr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,r,n){if(0!==t||e||r||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const i={skipLocationChange:Gg(this.skipLocationChange),replaceUrl:Gg(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Gg(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Gg(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ms(Vg),Ms(Op),Ms(lh))},t.\u0275dir=_e({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&zs("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(yo("href",e.href,en),qs("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[ko()]}),t})();function Gg(t){return""===t||!!t}let Ug=(()=>{class t{constructor(t,e,r,n,i){this.router=t,this.element=e,this.renderer=r,this.link=n,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof jf&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(Ms(Vg),Ms(Vo),Ms(Uo),Ms(Bg,8),Ms(zg,8))},t.\u0275dir=_e({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,r){var n;1&t&&(Ua(r,Bg,!0),Ua(r,zg,!0)),2&t&&(Ga(n=Wa())&&(e.links=n),Ga(n=Wa())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[ko()]}),t})();class Wg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new $g,this.attachRef=null}}class $g{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const r=this.getOrCreateContext(t);r.outlet=e,this.contexts.set(t,r)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Wg,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Xg=(()=>{class t{constructor(t,e,r,n,i){this.parentContexts=t,this.location=e,this.resolver=r,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new Oa,this.deactivateEvents=new Oa,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const r=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,i=new Yg(t,n,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Ms($g),Ms(fa),Ms(Ho),Os("name"),Ms(ts))},t.\u0275dir=_e({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Yg{constructor(t,e,r){this.route=t,this.childContexts=e,this.parent=r}get(t,e){return t===Op?this.route:t===$g?this.childContexts:this.parent.get(t,e)}}class Qg{}class Jg{preload(t,e){return jc(null)}}let Zg=(()=>{class t{constructor(t,e,r,n,i){this.router=t,this.injector=n,this.preloadingStrategy=i,this.loader=new Pg(e,r,e=>t.triggerEvent(new Pf(e)),e=>t.triggerEvent(new Rf(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Rc(t=>t instanceof jf),Cf(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Kt);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const r=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;r.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?r.push(this.preloadConfig(t,n)):n.children&&r.push(this.processRoutes(t,n.children));return V(r).pipe(W(),R(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(B(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Vg),Yt(Bl),Yt(ml),Yt(ms),Yt(Qg))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Kg=(()=>{class t{constructor(t,e,r={}){this.router=t,this.viewportScroller=e,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Tf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof jf&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Bf&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Bf(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){Is()},t.\u0275dir=_e({type:t}),t})();const tm=new Lt("ROUTER_CONFIGURATION"),em=new Lt("ROUTER_FORROOT_GUARD"),rm=[fh,{provide:cp,useClass:dp},{provide:Vg,useFactory:function(t,e,r,n,i,s,o,a={},l,h){const u=new Vg(null,t,e,r,n,i,s,ep(o));if(l&&(u.urlHandlingStrategy=l),h&&(u.routeReuseStrategy=h),a.errorHandler&&(u.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(u.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=Jl();u.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(u.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(u.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(u.relativeLinkResolution=a.relativeLinkResolution),u},deps:[cp,$g,fh,ms,Bl,ml,Dg,tm,[class{},new st],[class{},new st]]},$g,{provide:Op,useFactory:function(t){return t.routerState.root},deps:[Vg]},{provide:Bl,useClass:Ul},Zg,Jg,class{preload(t,e){return e().pipe(pf(()=>jc(null)))}},{provide:tm,useValue:{enableTracing:!1}}];function nm(){return new Dl("Router",Vg)}let im=(()=>{class t{constructor(t,e){}static forRoot(e,r){return{ngModule:t,providers:[rm,lm(e),{provide:em,useFactory:am,deps:[[Vg,new st,new at]]},{provide:tm,useValue:r||{}},{provide:lh,useFactory:om,deps:[Kl,[new it(uh),new st],tm]},{provide:Kg,useFactory:sm,deps:[Vg,jh,tm]},{provide:Qg,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:Jg},{provide:Dl,multi:!0,useFactory:nm},[hm,{provide:Za,multi:!0,useFactory:um,deps:[hm]},{provide:dm,useFactory:cm,deps:[hm]},{provide:sl,multi:!0,useExisting:dm}]]}}static forChild(e){return{ngModule:t,providers:[lm(e)]}}}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Yt(em,8),Yt(Vg,8))}}),t})();function sm(t,e,r){return r.scrollOffset&&e.setOffset(r.scrollOffset),new Kg(t,e,r)}function om(t,e,r={}){return r.useHash?new dh(t,e):new ch(t,e)}function am(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function lm(t){return[{provide:vs,multi:!0,useValue:t},{provide:Dg,multi:!0,useValue:t}]}let hm=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new A}appInitializer(){return this.injector.get(eh,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),r=this.injector.get(Vg),n=this.injector.get(tm);if(this.isLegacyDisabled(n)||this.isLegacyEnabled(n))t(!0);else if("disabled"===n.initialNavigation)r.setUpLocationChangeListener(),t(!0);else{if("enabled"!==n.initialNavigation)throw new Error(`Invalid initialNavigation options: '${n.initialNavigation}'`);r.hooks.afterPreactivation=()=>this.initNavigation?jc(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),r.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(tm),r=this.injector.get(Zg),n=this.injector.get(Kg),i=this.injector.get(Vg),s=this.injector.get(Hl);t===s.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),r.setUpPreloading(),n.init(),i.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(Yt(ms))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();function um(t){return t.appInitializer.bind(t)}function cm(t){return t.bootstrapListener.bind(t)}const dm=new Lt("Router Initializer");function fm(t,e){1&t&&(Rs(0,"li",7),Rs(1,"a",13),go(2,"Calcul de ration"),Fs(),Fs())}function pm(t,e){1&t&&(Rs(0,"li",7),Rs(1,"a",14),go(2,"feuille de route"),Fs(),Fs())}function gm(t,e){1&t&&(Rs(0,"li",7),Rs(1,"a",15),go(2,"pr\xe9sentations des vaches"),Fs(),Fs())}function mm(t,e){1&t&&(Rs(0,"li",7),Rs(1,"a",16),go(2,"Data \xe0 suivre"),Fs(),Fs())}function vm(t,e){1&t&&(Rs(0,"li",7),Rs(1,"a",17),go(2,"Calculatrice"),Fs(),Fs())}function ym(t,e){if(1&t){const t=Hs();Rs(0,"li",18),Ls(1,"a",19),Rs(2,"div",20),Rs(3,"h5",21),go(4),Fs(),Rs(5,"p",22),go(6),Fs(),Ls(7,"div",23),Rs(8,"a",24),zs("click",(function(){return Pe(t),Ws().signOut()})),go(9,"Sign Out"),Fs(),Fs(),Fs()}if(2&t){const t=Ws();qn(4),mo(t.user.displayName),qn(2),mo(t.user.email)}}function xm(t,e){if(1&t){const t=Hs();Rs(0,"li",7),Rs(1,"form",25,26),zs("ngSubmit",(function(){Pe(t);const e=Es(2);return Ws().onSubmit(e.value)})),Ls(3,"br"),Rs(4,"input",27),zs("click",(function(){return Pe(t),Ws().toggleForm()})),Fs(),Fs(),Fs()}}let _m=(()=>{class t{constructor(){}ngOnInit(){this.showNav=!1,this.showForm=!1,this.authenticated=!1,this.user={}}toggleNavBar(){this.showNav=!this.showNav}toggleForm(){this.showForm=!this.showForm}signIn(t,e){this.authenticated=!0,this.user={email:t,password:e}}onSubmit(t){this.authenticated=!0}onSubmit2(t){"[email protected]"===t.email&&"1789"===t.pwd?(alert("Vous \xeates d\xe9sormais connect\xe9 : "+t.email),console.log(t),this.signIn(t.email,t.pwd)):(alert("mauvais login"),console.log(t.email),console.log(t.pwd))}signOut(){this.authenticated=!1,this.user={}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["app-header"]],decls:23,vars:10,consts:[[1,"navbar","navbar-expand-md","navbar-dark","fixed-top","bg-dark"],[1,"container"],["routerLink","/acceuil",1,"navbar-brand"],["type","button","aria-controls","navbarCollapse","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler",3,"click"],[1,"navbar-toggler-icon"],["id","navbarCollapse",1,"collapse","navbar-collapse"],[1,"navbar-nav","mr-auto"],[1,"nav-item"],["routerLink","/acceuil","routerLinkActive","active",1,"nav-link"],["class","nav-item",4,"ngIf"],[1,"navbar-nav","justify-content-end"],["routerLink","/doc","target","_self",1,"nav-link"],["ngbDropdown","","placement","bottom-right","class","nav-item",4,"ngIf"],["routerLink","/ration","routerLinkActive","active",1,"nav-link"],["routerLink","/dashboard","routerLinkActive","active",1,"nav-link"],["routerLink","/vache","routerLinkActive","active",1,"nav-link"],["routerLink","/http","routerLinkActive","active",1,"nav-link"],["routerLink","/calculatrice","routerLinkActive","active",1,"nav-link"],["ngbDropdown","","placement","bottom-right",1,"nav-item"],["ngbDropdownToggle","","id","userMenu","href","javascript:undefined","role","button","aria-haspopup","true","aria-expanded","false",1,"nav-link"],["ngbDropdownMenu","","aria-labelledby","userMenu"],[1,"dropdown-item-text","mb-0"],[1,"dropdown-item-text","text-muted","mb-0"],[1,"dropdown-divider"],["href","javascript:undefined","role","button",1,"dropdown-item",3,"click"],[3,"ngSubmit"],["loginForm","ngForm"],["type","submit","value","connexion",3,"click"]],template:function(t,e){1&t&&(Rs(0,"nav",0),Rs(1,"div",1),Rs(2,"a",2),go(3,"FoodRation"),Fs(),Rs(4,"button",3),zs("click",(function(){return e.toggleNavBar()})),Ls(5,"span",4),Fs(),Rs(6,"div",5),Rs(7,"ul",6),Rs(8,"li",7),Rs(9,"a",8),go(10,"Acceuil"),Fs(),Fs(),Ns(11,fm,3,0,"li",9),Ns(12,pm,3,0,"li",9),Ns(13,gm,3,0,"li",9),Ns(14,mm,3,0,"li",9),Fs(),Rs(15,"ul",10),Ns(16,vm,3,0,"li",9),Rs(17,"li",7),Rs(18,"a",11),go(19," Docs "),Fs(),Fs(),Ns(20,ym,10,2,"li",12),Ns(21,xm,5,0,"li",9),Fs(),Fs(),Fs(),Fs(),Ls(22,"router-outlet")),2&t&&(qn(4),qs("aria-expanded",e.showNav),qn(2),no("show",e.showNav),qn(5),Ds("ngIf",e.authenticated),qn(1),Ds("ngIf",e.authenticated),qn(1),Ds("ngIf",e.authenticated),qn(1),Ds("ngIf",e.authenticated),qn(2),Ds("ngIf",e.authenticated),qn(4),Ds("ngIf",e.authenticated),qn(1),Ds("ngIf",!e.authenticated))},directives:[Cd,zg,Ug,Ch,Xg,jd,Td,Ad,fc,yu,ic],styles:[""]}),t})(),bm=(()=>{class t{constructor(){this.title="foodAgriRation",this.values=[102,115,130,137]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(t,e){1&t&&(Ls(0,"app-header"),Ls(1,"router-outlet"))},directives:[_m,Xg],styles:[""]}),t})();class wm{}class Cm{}class Sm{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const r=t.slice(0,e),n=r.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(i):this.headers.set(n,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let r=t[e];const n=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(n,r),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Sm?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Sm;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Sm?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...r),this.headers.set(e,n);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Am{encodeKey(t){return km(t)}encodeValue(t){return km(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function km(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Tm{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Am,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const r=new Map;return t.length>0&&t.split("&").forEach(t=>{const n=t.indexOf("="),[i,s]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=r.get(i)||[];o.push(s),r.set(i,o)}),r}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const r=t.fromObject[e];this.map.set(e,Array.isArray(r)?r:[r])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Tm({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const r=e.indexOf(t.value);-1!==r&&e.splice(r,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function jm(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function qm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Nm(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Em{constructor(t,e,r,n){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==r?r:null,i=n):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new Sm),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const r=e.indexOf("?");this.urlWithParams=e+(-1===r?"?":r<e.length-1?"&":"")+t}}else this.params=new Tm,this.urlWithParams=e}serializeBody(){return null===this.body?null:jm(this.body)||qm(this.body)||Nm(this.body)||"string"==typeof this.body?this.body:this.body instanceof Tm?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body?null:Nm(this.body)?null:qm(this.body)?this.body.type||null:jm(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Tm?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,r=t.url||this.url,n=t.responseType||this.responseType,i=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,r)=>e.set(r,t.setHeaders[r]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,r)=>e.set(r,t.setParams[r]),l)),new Em(e,r,i,{params:l,headers:a,reportProgress:o,responseType:n,withCredentials:s})}}const Mm=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class Om{constructor(t,e=200,r="OK"){this.headers=t.headers||new Sm,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Im extends Om{constructor(t={}){super(t),this.type=Mm.ResponseHeader}clone(t={}){return new Im({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Dm extends Om{constructor(t={}){super(t),this.type=Mm.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Dm({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Pm extends Om{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Rm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Fm=(()=>{class t{constructor(t){this.handler=t}request(t,e,r={}){let n;if(t instanceof Em)n=t;else{let i=void 0;i=r.headers instanceof Sm?r.headers:new Sm(r.headers);let s=void 0;r.params&&(s=r.params instanceof Tm?r.params:new Tm({fromObject:r.params})),n=new Em(t,e,void 0!==r.body?r.body:null,{headers:i,params:s,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const i=jc(n).pipe(Cf(t=>this.handler.handle(t)));if(t instanceof Em||"events"===r.observe)return i;const s=i.pipe(Rc(t=>t instanceof Dm));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return s.pipe(R(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(R(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(R(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(R(t=>t.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Tm).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,r={}){return this.request("PATCH",t,Rm(r,e))}post(t,e,r={}){return this.request("POST",t,Rm(r,e))}put(t,e,r={}){return this.request("PUT",t,Rm(r,e))}}return t.\u0275fac=function(e){return new(e||t)(Yt(wm))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();class Lm{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Hm=new Lt("HTTP_INTERCEPTORS");let Vm=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Bm=/^\)\]\}',?\n/;class zm{}let Gm=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Um=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new _(e=>{const r=this.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach((t,e)=>r.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&r.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();r.responseType="json"!==e?e:"text"}const n=t.serializeBody();let i=null;const s=()=>{if(null!==i)return i;const e=1223===r.status?204:r.status,n=r.statusText||"OK",s=new Sm(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return i=new Im({headers:s,status:e,statusText:n,url:o}),i},o=()=>{let{headers:n,status:i,statusText:o,url:a}=s(),l=null;204!==i&&(l=void 0===r.response?r.responseText:r.response),0===i&&(i=l?200:0);let h=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Bm,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,h&&(h=!1,l={error:u,text:l})}}h?(e.next(new Dm({body:l,headers:n,status:i,statusText:o,url:a||void 0})),e.complete()):e.error(new Pm({error:l,headers:n,status:i,statusText:o,url:a||void 0}))},a=t=>{const{url:n}=s(),i=new Pm({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:n||void 0});e.error(i)};let l=!1;const h=n=>{l||(e.next(s()),l=!0);let i={type:Mm.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(i.total=n.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),e.next(i)},u=t=>{let r={type:Mm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),e.next(r)};return r.addEventListener("load",o),r.addEventListener("error",a),t.reportProgress&&(r.addEventListener("progress",h),null!==n&&r.upload&&r.upload.addEventListener("progress",u)),r.send(n),e.next({type:Mm.Sent}),()=>{r.removeEventListener("error",a),r.removeEventListener("load",o),t.reportProgress&&(r.removeEventListener("progress",h),null!==n&&r.upload&&r.upload.removeEventListener("progress",u)),r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Yt(zm))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})();const Wm=new Lt("XSRF_COOKIE_NAME"),$m=new Lt("XSRF_HEADER_NAME");class Xm{}let Ym=(()=>{class t{constructor(t,e,r){this.doc=t,this.platform=e,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=xh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zl),Yt(il),Yt(Wm))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Qm=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const r=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||r.startsWith("http://")||r.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Xm),Yt($m))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Jm=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Hm,[]);this.chain=t.reduceRight((t,e)=>new Lm(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Cm),Yt(ms))},t.\u0275prov=ct({token:t,factory:t.\u0275fac}),t})(),Zm=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Qm,useClass:Vm}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Wm,useValue:e.cookieName}:[],e.headerName?{provide:$m,useValue:e.headerName}:[]]}}}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Qm,{provide:Hm,useExisting:Qm,multi:!0},{provide:Xm,useClass:Ym},{provide:Wm,useValue:"XSRF-TOKEN"},{provide:$m,useValue:"X-XSRF-TOKEN"}]}),t})(),Km=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Fm,{provide:wm,useClass:Jm},Um,{provide:Cm,useExisting:Um},Gm,{provide:zm,useExisting:Gm}],imports:[[Zm.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),tv=(()=>{class t{constructor(t){this.httpClient=t,this.baseURL="https://alim-pprd.agriculture.gouv.fr/ift-api/api",this.baseURLRepo="https://api.github.com/",this.culture="/cultures"}getCultures(){return this.httpClient.get("https://alim-pprd.agriculture.gouv.fr/ift-api/api/cultures")}getRepos(t){return this.httpClient.get(this.baseURLRepo+"users/"+t+"/repos")}}return t.\u0275fac=function(e){return new(e||t)(Yt(Fm))},t.\u0275prov=ct({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ev(t,e){1&t&&(Rs(0,"div"),go(1,"vous \xeates authentifi\xe9"),Fs())}let rv=(()=>{class t{constructor(t){this.apiService=t}ngOnInit(){this.authenticated=!1,this.user={},this.apiService.getCultures().subscribe(t=>{console.log(t),this.cultures=t})}signIn(){this.authenticated=!0,this.user={displayName:"Adele Vance",email:"[email protected]"}}}return t.\u0275fac=function(e){return new(e||t)(Ms(tv))},t.\u0275cmp=pe({type:t,selectors:[["app-acceuil"]],decls:39,vars:1,consts:[[1,"jumbotron"],[4,"ngIf"],[1,"main-content"],[1,"container-fluid"],[1,"row"],[1,"col-md-8"],[1,"card"],[1,"card-header","card-header-danger"],[1,"card-title"],[1,"card-category"],[1,"card-body"],[1,"col-md-5"],["matInput","","placeholder","Company (disabled)","disabled",""],[1,"col-md-3"],["matInput","","placeholder","Username"],[1,"col-md-4"],["matInput","","placeholder","Email address","type","email"],[1,"col-md-6"],["matInput","","placeholder","Fist Name","type","text"],["matInput","","placeholder","Last Name","type","text"],[1,"col-md-12"],["matInput","","placeholder","Adress","type","text"],["matInput","","placeholder","City","type","text"],["matInput","","placeholder","Country","type","text"],["matInput","","placeholder","Postal Code","type","text"]],template:function(t,e){1&t&&(Rs(0,"div",0),Rs(1,"h1"),go(2,"Ration pour vaches laiti\xe8res, g\xe9nices et taries"),Fs(),Ns(3,ev,2,0,"div",1),Fs(),Rs(4,"div",2),Rs(5,"div",3),Rs(6,"div",4),Rs(7,"div",5),Rs(8,"div",6),Rs(9,"div",7),Rs(10,"h4",8),go(11,"Edit Profile"),Fs(),Rs(12,"p",9),go(13,"Complete your profile"),Fs(),Fs(),Rs(14,"div",10),Rs(15,"form"),Rs(16,"div",4),Rs(17,"div",11),Ls(18,"input",12),Fs(),Rs(19,"div",13),Ls(20,"input",14),Fs(),Rs(21,"div",15),Ls(22,"input",16),Fs(),Fs(),Rs(23,"div",4),Rs(24,"div",17),Ls(25,"input",18),Fs(),Rs(26,"div",17),Ls(27,"input",19),Fs(),Fs(),Rs(28,"div",4),Rs(29,"div",20),Ls(30,"input",21),Fs(),Fs(),Rs(31,"div",4),Rs(32,"div",15),Ls(33,"input",22),Fs(),Rs(34,"div",15),Ls(35,"input",23),Fs(),Rs(36,"div",15),Ls(37,"input",24),Fs(),Fs(),Ls(38,"router-outlet"),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Fs()),2&t&&(qn(3),Ds("ngIf",e.authenticated))},directives:[Ch,fc,yu,ic,Xg],styles:[""]}),t})(),nv=(()=>{class t{constructor(){this.showForm=!1}toggleNavBar(){this.showNav=!this.showNav}toggleForm(){this.showForm=!this.showForm}signIn(){this.authenticated=!0,this.user={displayName:"Adele Vance",email:"[email protected]"}}signOut(){this.authenticated=!1,this.user={}}onSubmit(t){"[email protected]"===t.email&&"1789"===t.pwd?(alert("Vous \xeates d\xe9sormais connect\xe9 : "+t.email),console.log(t),this.authenticated=!0):(alert("mauvais login"),console.log(t.email),console.log(t.pwd))}ngOnInit(){this.showNav=!1,this.authenticated=!1,this.user={}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["app-authent"]],decls:8,vars:0,consts:[[3,"ngSubmit"],["loginForm","ngForm"],["type","text","name","email","placeholder","email","ngModel",""],["type","password","name","pwd","placeholder","password","ngModel",""],["type","submit","value","submit"]],template:function(t,e){if(1&t){const t=Hs();Rs(0,"form",0,1),zs("ngSubmit",(function(){Pe(t);const r=Es(1);return e.onSubmit(r.value)})),Ls(2,"input",2),Ls(3,"br"),Ls(4,"input",3),Ls(5,"br"),Ls(6,"input",4),Fs(),Ls(7,"router-outlet")}},directives:[fc,yu,ic,uu,vu,dc,Xg],styles:[""]}),t})();function iv(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function sv(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}r("aif6"),r("8/F6"),r("3Vay"),r("UoPn"),r("rrlK"),r("3Sd5"),r("GSgz"),r("aOaY"),r("07dN");let ov=class{constructor(t){this.autoCreate=!0,this.properties=["title","description","source","showBorderLine","borderLineColor","borderLineWidth","backgroundColor","backgroundImage","showLegend","legendLayout","padding","titlePadding","colorScheme","greyScale","showToolTips","toolTipShowDelay","toolTipHideDelay","toolTipMoveDuration","drawBefore","draw","rtl","enableCrosshairs","crosshairsColor","crosshairsDashStyle","crosshairsLineWidth","columnSeriesOverlap","enabled","enableAnimations","animationDuration","enableAxisTextAnimation","renderEngine","xAxis","valueAxis","categoryAxis","seriesGroups"],this.onToggle=new Oa,this.onClick=new Oa,this.onRefreshBegin=new Oa,this.onRefreshEnd=new Oa,this.onRangeSelectionChanging=new Oa,this.onRangeSelectionChanged=new Oa,this.elementRef=t,JQXLite(window).resize(()=>{this.__updateRect__()})}ngOnInit(){this.autoCreate&&this.createComponent()}ngOnChanges(t){if(this.host){(t.hasOwnProperty("attrWidth")||t.hasOwnProperty("attrHeight"))&&this.__updateRect__();for(let t=0;t<this.properties.length;t++){let e="attr"+this.properties[t].substring(0,1).toUpperCase()+this.properties[t].substring(1),r=!1;if(void 0!==this[e]){if("object"==typeof this[e]){if(this[e]instanceof Array&&(r=this.arraysEqual(this[e],this.host.jqxChart(this.properties[t]))),r)return!1;this.host.jqxChart(this.properties[t],this[e]);continue}this[e]!==this.host.jqxChart(this.properties[t])&&this.host.jqxChart(this.properties[t],this[e])}}}}arraysEqual(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}manageAttributes(){let t={};for(let e=0;e<this.properties.length;e++){let r="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);void 0!==this[r]&&(t[this.properties[e]]=this[r])}return t}moveClasses(t,e){let r=t.classList;r.length>0&&e.classList.add(...r),t.className=""}moveStyles(t,e){e.style.cssText=t.style.cssText,t.style.cssText=""}createComponent(t){this.host||(t?JQXLite.extend(t,this.manageAttributes()):t=this.manageAttributes(),this.host=JQXLite(this.elementRef.nativeElement.firstChild),this.moveClasses(this.elementRef.nativeElement,this.host[0]),this.moveStyles(this.elementRef.nativeElement,this.host[0]),this.__wireEvents__(),this.widgetObject=jqwidgets.createInstance(this.host,"jqxChart",t),this.__updateRect__())}createWidget(t){this.createComponent(t)}__updateRect__(){this.host&&this.host.css({width:this.attrWidth,height:this.attrHeight}),this.refresh()}setOptions(t){this.host.jqxChart("setOptions",t)}title(t){if(void 0===t)return this.host.jqxChart("title");this.host.jqxChart("title",t)}description(t){if(void 0===t)return this.host.jqxChart("description");this.host.jqxChart("description",t)}source(t){if(void 0===t)return this.host.jqxChart("source");this.host.jqxChart("source",t)}showBorderLine(t){if(void 0===t)return this.host.jqxChart("showBorderLine");this.host.jqxChart("showBorderLine",t)}borderLineColor(t){if(void 0===t)return this.host.jqxChart("borderLineColor");this.host.jqxChart("borderLineColor",t)}borderLineWidth(t){if(void 0===t)return this.host.jqxChart("borderLineWidth");this.host.jqxChart("borderLineWidth",t)}backgroundColor(t){if(void 0===t)return this.host.jqxChart("backgroundColor");this.host.jqxChart("backgroundColor",t)}backgroundImage(t){if(void 0===t)return this.host.jqxChart("backgroundImage");this.host.jqxChart("backgroundImage",t)}showLegend(t){if(void 0===t)return this.host.jqxChart("showLegend");this.host.jqxChart("showLegend",t)}legendLayout(t){if(void 0===t)return this.host.jqxChart("legendLayout");this.host.jqxChart("legendLayout",t)}padding(t){if(void 0===t)return this.host.jqxChart("padding");this.host.jqxChart("padding",t)}titlePadding(t){if(void 0===t)return this.host.jqxChart("titlePadding");this.host.jqxChart("titlePadding",t)}colorScheme(t){if(void 0===t)return this.host.jqxChart("colorScheme");this.host.jqxChart("colorScheme",t)}greyScale(t){if(void 0===t)return this.host.jqxChart("greyScale");this.host.jqxChart("greyScale",t)}showToolTips(t){if(void 0===t)return this.host.jqxChart("showToolTips");this.host.jqxChart("showToolTips",t)}toolTipShowDelay(t){if(void 0===t)return this.host.jqxChart("toolTipShowDelay");this.host.jqxChart("toolTipShowDelay",t)}toolTipHideDelay(t){if(void 0===t)return this.host.jqxChart("toolTipHideDelay");this.host.jqxChart("toolTipHideDelay",t)}toolTipMoveDuration(t){if(void 0===t)return this.host.jqxChart("toolTipMoveDuration");this.host.jqxChart("toolTipMoveDuration",t)}drawBefore(t){if(void 0===t)return this.host.jqxChart("drawBefore");this.host.jqxChart("drawBefore",t)}draw(t){if(void 0===t)return this.host.jqxChart("draw");this.host.jqxChart("draw",t)}rtl(t){if(void 0===t)return this.host.jqxChart("rtl");this.host.jqxChart("rtl",t)}enableCrosshairs(t){if(void 0===t)return this.host.jqxChart("enableCrosshairs");this.host.jqxChart("enableCrosshairs",t)}crosshairsColor(t){if(void 0===t)return this.host.jqxChart("crosshairsColor");this.host.jqxChart("crosshairsColor",t)}crosshairsDashStyle(t){if(void 0===t)return this.host.jqxChart("crosshairsDashStyle");this.host.jqxChart("crosshairsDashStyle",t)}crosshairsLineWidth(t){if(void 0===t)return this.host.jqxChart("crosshairsLineWidth");this.host.jqxChart("crosshairsLineWidth",t)}columnSeriesOverlap(t){if(void 0===t)return this.host.jqxChart("columnSeriesOverlap");this.host.jqxChart("columnSeriesOverlap",t)}enabled(t){if(void 0===t)return this.host.jqxChart("enabled");this.host.jqxChart("enabled",t)}enableAnimations(t){if(void 0===t)return this.host.jqxChart("enableAnimations");this.host.jqxChart("enableAnimations",t)}animationDuration(t){if(void 0===t)return this.host.jqxChart("animationDuration");this.host.jqxChart("animationDuration",t)}enableAxisTextAnimation(t){if(void 0===t)return this.host.jqxChart("enableAxisTextAnimation");this.host.jqxChart("enableAxisTextAnimation",t)}renderEngine(t){if(void 0===t)return this.host.jqxChart("renderEngine");this.host.jqxChart("renderEngine",t)}xAxis(t){if(void 0===t)return this.host.jqxChart("xAxis");this.host.jqxChart("xAxis",t)}valueAxis(t){if(void 0===t)return this.host.jqxChart("valueAxis");this.host.jqxChart("valueAxis",t)}categoryAxis(t){if(void 0===t)return this.host.jqxChart("categoryAxis");this.host.jqxChart("categoryAxis",t)}seriesGroups(t){if(void 0===t)return this.host.jqxChart("seriesGroups");this.host.jqxChart("seriesGroups",t)}getInstance(){return this.host.jqxChart("getInstance")}refresh(){this.host.jqxChart("refresh")}update(){this.host.jqxChart("update")}destroy(){this.host.jqxChart("destroy")}addColorScheme(t,e){this.host.jqxChart("addColorScheme",t,e)}removeColorScheme(t){this.host.jqxChart("removeColorScheme",t)}getItemsCount(t,e){return this.host.jqxChart("getItemsCount",t,e)}getItemCoord(t,e,r){return this.host.jqxChart("getItemCoord",t,e,r)}getXAxisRect(t){return this.host.jqxChart("getXAxisRect",t)}getXAxisLabels(t){return this.host.jqxChart("getXAxisLabels",t)}getValueAxisRect(t){return this.host.jqxChart("getValueAxisRect",t)}getValueAxisLabels(t){return this.host.jqxChart("getValueAxisLabels",t)}getColorScheme(t){return this.host.jqxChart("getColorScheme",t)}hideSerie(t,e,r){this.host.jqxChart("hideSerie",t,e,r)}showSerie(t,e,r){this.host.jqxChart("showSerie",t,e,r)}hideToolTip(t){this.host.jqxChart("hideToolTip",t)}showToolTip(t,e,r,n,i){this.host.jqxChart("showToolTip",t,e,r,n,i)}saveAsJPEG(t,e){this.host.jqxChart("saveAsJPEG",t,e)}saveAsPNG(t,e){this.host.jqxChart("saveAsPNG",t,e)}saveAsPDF(t,e){this.host.jqxChart("saveAsPDF",t,e)}getXAxisValue(t,e){return this.host.jqxChart("getXAxisValue",t,e)}getValueAxisValue(t,e){return this.host.jqxChart("getValueAxisValue",t,e)}__wireEvents__(){this.host.on("toggle",t=>{this.onToggle.emit(t)}),this.host.on("click",t=>{this.onClick.emit(t)}),this.host.on("refreshBegin",t=>{this.onRefreshBegin.emit(t)}),this.host.on("refreshEnd",t=>{this.onRefreshEnd.emit(t)}),this.host.on("rangeSelectionChanging",t=>{this.onRangeSelectionChanging.emit(t)}),this.host.on("rangeSelectionChanged",t=>{this.onRangeSelectionChanged.emit(t)})}};ov.\u0275fac=function(t){return new(t||ov)(Ms(Vo))},ov.\u0275cmp=pe({type:ov,selectors:[["jqxChart"]],inputs:{autoCreate:["auto-create","autoCreate"],attrTitle:["title","attrTitle"],attrDescription:["description","attrDescription"],attrSource:["source","attrSource"],attrShowBorderLine:["showBorderLine","attrShowBorderLine"],attrBorderLineColor:["borderLineColor","attrBorderLineColor"],attrBorderLineWidth:["borderLineWidth","attrBorderLineWidth"],attrBackgroundColor:["backgroundColor","attrBackgroundColor"],attrBackgroundImage:["backgroundImage","attrBackgroundImage"],attrShowLegend:["showLegend","attrShowLegend"],attrLegendLayout:["legendLayout","attrLegendLayout"],attrPadding:["padding","attrPadding"],attrTitlePadding:["titlePadding","attrTitlePadding"],attrColorScheme:["colorScheme","attrColorScheme"],attrGreyScale:["greyScale","attrGreyScale"],attrShowToolTips:["showToolTips","attrShowToolTips"],attrToolTipShowDelay:["toolTipShowDelay","attrToolTipShowDelay"],attrToolTipHideDelay:["toolTipHideDelay","attrToolTipHideDelay"],attrToolTipMoveDuration:["toolTipMoveDuration","attrToolTipMoveDuration"],attrDrawBefore:["drawBefore","attrDrawBefore"],attrDraw:["draw","attrDraw"],attrRtl:["rtl","attrRtl"],attrEnableCrosshairs:["enableCrosshairs","attrEnableCrosshairs"],attrCrosshairsColor:["crosshairsColor","attrCrosshairsColor"],attrCrosshairsDashStyle:["crosshairsDashStyle","attrCrosshairsDashStyle"],attrCrosshairsLineWidth:["crosshairsLineWidth","attrCrosshairsLineWidth"],attrColumnSeriesOverlap:["columnSeriesOverlap","attrColumnSeriesOverlap"],attrEnabled:["enabled","attrEnabled"],attrEnableAnimations:["enableAnimations","attrEnableAnimations"],attrAnimationDuration:["animationDuration","attrAnimationDuration"],attrEnableAxisTextAnimation:["enableAxisTextAnimation","attrEnableAxisTextAnimation"],attrRenderEngine:["renderEngine","attrRenderEngine"],attrXAxis:["xAxis","attrXAxis"],attrValueAxis:["valueAxis","attrValueAxis"],attrCategoryAxis:["categoryAxis","attrCategoryAxis"],attrSeriesGroups:["seriesGroups","attrSeriesGroups"],attrWidth:["width","attrWidth"],attrHeight:["height","attrHeight"]},outputs:{onToggle:"onToggle",onClick:"onClick",onRefreshBegin:"onRefreshBegin",onRefreshEnd:"onRefreshEnd",onRangeSelectionChanging:"onRangeSelectionChanging",onRangeSelectionChanged:"onRangeSelectionChanged"},features:[ko()],ngContentSelectors:["*"],decls:2,vars:0,template:function(t,e){1&t&&(Xs(),Rs(0,"div"),Ys(1),Fs())},encapsulation:2}),ov.ctorParameters=()=>[{type:Vo}],iv([Qa("title"),sv("design:type",String)],ov.prototype,"attrTitle",void 0),iv([Qa("description"),sv("design:type",String)],ov.prototype,"attrDescription",void 0),iv([Qa("source"),sv("design:type",Object)],ov.prototype,"attrSource",void 0),iv([Qa("showBorderLine"),sv("design:type",Boolean)],ov.prototype,"attrShowBorderLine",void 0),iv([Qa("borderLineColor"),sv("design:type",String)],ov.prototype,"attrBorderLineColor",void 0),iv([Qa("borderLineWidth"),sv("design:type",Number)],ov.prototype,"attrBorderLineWidth",void 0),iv([Qa("backgroundColor"),sv("design:type",String)],ov.prototype,"attrBackgroundColor",void 0),iv([Qa("backgroundImage"),sv("design:type",String)],ov.prototype,"attrBackgroundImage",void 0),iv([Qa("showLegend"),sv("design:type",Boolean)],ov.prototype,"attrShowLegend",void 0),iv([Qa("legendLayout"),sv("design:type",Object)],ov.prototype,"attrLegendLayout",void 0),iv([Qa("padding"),sv("design:type",Object)],ov.prototype,"attrPadding",void 0),iv([Qa("titlePadding"),sv("design:type",Object)],ov.prototype,"attrTitlePadding",void 0),iv([Qa("colorScheme"),sv("design:type",String)],ov.prototype,"attrColorScheme",void 0),iv([Qa("greyScale"),sv("design:type",Boolean)],ov.prototype,"attrGreyScale",void 0),iv([Qa("showToolTips"),sv("design:type",Boolean)],ov.prototype,"attrShowToolTips",void 0),iv([Qa("toolTipShowDelay"),sv("design:type",Number)],ov.prototype,"attrToolTipShowDelay",void 0),iv([Qa("toolTipHideDelay"),sv("design:type",Number)],ov.prototype,"attrToolTipHideDelay",void 0),iv([Qa("toolTipMoveDuration"),sv("design:type",Number)],ov.prototype,"attrToolTipMoveDuration",void 0),iv([Qa("drawBefore"),sv("design:type",Function)],ov.prototype,"attrDrawBefore",void 0),iv([Qa("draw"),sv("design:type",Function)],ov.prototype,"attrDraw",void 0),iv([Qa("rtl"),sv("design:type",Boolean)],ov.prototype,"attrRtl",void 0),iv([Qa("enableCrosshairs"),sv("design:type",Boolean)],ov.prototype,"attrEnableCrosshairs",void 0),iv([Qa("crosshairsColor"),sv("design:type",String)],ov.prototype,"attrCrosshairsColor",void 0),iv([Qa("crosshairsDashStyle"),sv("design:type",String)],ov.prototype,"attrCrosshairsDashStyle",void 0),iv([Qa("crosshairsLineWidth"),sv("design:type",Number)],ov.prototype,"attrCrosshairsLineWidth",void 0),iv([Qa("columnSeriesOverlap"),sv("design:type",Boolean)],ov.prototype,"attrColumnSeriesOverlap",void 0),iv([Qa("enabled"),sv("design:type",Boolean)],ov.prototype,"attrEnabled",void 0),iv([Qa("enableAnimations"),sv("design:type",Boolean)],ov.prototype,"attrEnableAnimations",void 0),iv([Qa("animationDuration"),sv("design:type",Number)],ov.prototype,"attrAnimationDuration",void 0),iv([Qa("enableAxisTextAnimation"),sv("design:type",Boolean)],ov.prototype,"attrEnableAxisTextAnimation",void 0),iv([Qa("renderEngine"),sv("design:type",String)],ov.prototype,"attrRenderEngine",void 0),iv([Qa("xAxis"),sv("design:type",Object)],ov.prototype,"attrXAxis",void 0),iv([Qa("valueAxis"),sv("design:type",Object)],ov.prototype,"attrValueAxis",void 0),iv([Qa("categoryAxis"),sv("design:type",Object)],ov.prototype,"attrCategoryAxis",void 0),iv([Qa("seriesGroups"),sv("design:type",Array)],ov.prototype,"attrSeriesGroups",void 0),iv([Qa("width"),sv("design:type",Object)],ov.prototype,"attrWidth",void 0),iv([Qa("height"),sv("design:type",Object)],ov.prototype,"attrHeight",void 0),iv([Qa("auto-create"),sv("design:type",Boolean)],ov.prototype,"autoCreate",void 0),iv([Ja(),sv("design:type",Object)],ov.prototype,"onToggle",void 0),iv([Ja(),sv("design:type",Object)],ov.prototype,"onClick",void 0),iv([Ja(),sv("design:type",Object)],ov.prototype,"onRefreshBegin",void 0),iv([Ja(),sv("design:type",Object)],ov.prototype,"onRefreshEnd",void 0),iv([Ja(),sv("design:type",Object)],ov.prototype,"onRangeSelectionChanging",void 0),iv([Ja(),sv("design:type",Object)],ov.prototype,"onRangeSelectionChanged",void 0),ov=iv([sv("design:paramtypes",[Vo])],ov);let av=class{};function lv(t,e){1&t&&(Rs(0,"p"),go(1,"Modifications sauvegard\xe9es"),Fs())}function hv(t,e){if(1&t&&Ls(0,"jqxChart",29),2&t){const t=Ws();Ds("width",400)("height",250)("title","")("description",t.charts[0].title)("showLegend",!0)("enableAnimations",!1)("padding",t.padding)("titlePadding",t.titlePadding)("source",t.charts[0].dataSource)("showBorderLine",!0)("seriesGroups",t.seriesGroups)("colorScheme","scheme03")}}function uv(t,e){if(1&t&&(Rs(0,"tr"),Rs(1,"td"),go(2),Fs(),Rs(3,"td"),go(4),Fs(),Rs(5,"td"),go(6),Fs(),Rs(7,"td"),go(8),Fs(),Fs()),2&t){const t=e.$implicit;qn(2),mo(t.id),qn(2),mo(t.name),qn(2),mo(t.birth),qn(2),mo(t.description)}}function cv(t,e){1&t&&Ls(0,"div")}function dv(t,e){1&t&&(Rs(0,"div"),go(1,"loading..."),Fs())}function fv(t,e){if(1&t&&(Rs(0,"div",9),Rs(1,"strong"),go(2,"Warning!"),Fs(),go(3),Ea(4,"json"),Fs()),2&t){const t=Ws();qn(3),vo(" ",Ma(4,1,t.errorMessage),"\n")}}function pv(t,e){if(1&t&&(Rs(0,"tr"),Rs(1,"td"),go(2),Fs(),Rs(3,"td"),go(4),Fs(),Rs(5,"td"),go(6),Fs(),Rs(7,"td"),go(8),Fs(),Fs()),2&t){const t=e.$implicit;qn(2),mo(t.id),qn(2),mo(t.name),qn(2),mo(t.html_url),qn(2),mo(t.description)}}av.\u0275mod=ye({type:av}),av.\u0275inj=dt({factory:function(t){return new(t||av)},imports:[[]]});const gv=[{path:"",component:bm},{path:"ration",component:(()=>{class t{constructor(){this.rations="450",this.ble="150",this.blerxRation=Number(this.ble)*Number(this.rations),this.indiceBle=1,this.colza="10",this.colzaxRation=Number(this.colza)*Number(this.rations),this.indiceColza=1,this.paille="300",this.paillexRation=Number(this.paille)*Number(this.rations),this.indicePaille=1,this.mais="50",this.maisxRation=Number(this.mais)*Number(this.rations),this.indiceMais=1,this.mineraux="3",this.minerauxxRation=Number(this.mineraux)*Number(this.rations),this.indiceMineraux=1,this.bicarbonate="1",this.bicarbonatexRation=Number(this.bicarbonate)*Number(this.rations),this.indice=1,this.calcium="1",this.calciumxRation=Number(this.calcium)*Number(this.rations),this.indiceCalcium=1,this.sel="1",this.selxRation=Number(this.sel)*Number(this.rations),this.indiceSel=1,this.uree="1",this.ureexRation=Number(this.uree)*Number(this.rations),this.indiceUree=1,this.currentNumber="0",this.firstOperand=null,this.number=null,this.operator=null,this.waitForSecondNumber=!1,this.aliment="",this.instruction="Instructions",this.instruction2="Instructions2",this.dataStatCounter=[{Aliment:"ble",Share:this.ble},{Aliment:"colza",Share:this.colza},{Aliment:"paille",Share:this.paille},{Aliment:"mais",Share:this.mais}],this.charts=[{title:"compositiond de la ration",label:"StatRation",dataSource:this.dataStatCounter}],this.padding={left:5,top:5,right:5,bottom:5},this.titlePadding={left:0,top:0,right:0,bottom:10},this.seriesGroups=[{type:"pie",showLegend:!0,enableSeriesToggle:!0,series:[{dataField:"Share",displayText:"Aliment",showLabels:!0,labelRadius:160,labelLinesEnabled:!0,labelLinesAngles:!0,labelsAutoRotate:!1,initialAngle:0,radius:125,minAngle:0,maxAngle:180,centerOffset:0,offsetY:170,formatFunction:(t,e,r,n)=>isNaN(t)?t:t+"Kg"}]}]}getWidth(){return document.body.offsetWidth<850?"90%":850}ngOnInit(){this.modified=!1}modifier(){this.modified=!0}getDecimal(){this.currentNumber.includes(".")||(this.currentNumber+=".")}doCalculation(t,e,r){switch(t){case"+":return r+e;case"-":return e-r}}getAliment(t){switch(t){case"rations":return this.rations;case"ble":return this.ble;case"colza":return this.colza;case"paille":return this.paille;case"mais":return this.mais}}replaceOutput(t,e){switch(t){case"rations":return this.rations=e;case"ble":return this.ble=e;case"colza":return this.colza=e;case"paille":return this.paille=e;case"mais":return this.mais=e}}getOperation(t,e,r){console.log(t);let n=this.getAliment(r);console.log(n);const i=this.doCalculation(t,Number(n),e);n=String(i),this.replaceOutput(r,n),console.log(n)}onSubmit(t){console.log(this.rations),console.log(t.rations),this.rations=t.rations,this.ble=t.ble,this.blerxRation=Number(this.ble)*Number(this.rations),this.dataStatCounter[0].Share=t.ble,this.colza=t.colza,this.colzaxRation=Number(this.colza)*Number(this.rations),this.dataStatCounter[1].Share=t.colza,this.paille=t.paille,this.paillexRation=Number(this.paille)*Number(this.rations),this.dataStatCounter[2].Share=t.paille,this.mais=t.mais,this.maisxRation=Number(this.mais)*Number(this.rations),this.dataStatCounter[3].Share=t.mais,console.log(this.rations),console.log(t.rations)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["app-ration"]],decls:90,vars:18,consts:[[1,"card","w-75",2,"text-align","center"],[3,"ngSubmit"],["rationForm","ngForm"],[1,"card-body"],["type","button","value","ration",1,"operator",3,"click"],["type","text","name","rations","placeholder","rations","onkeypress","return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))",3,"ngModel"],["type","submit","value","Calculer",3,"click"],["type","button","value","ble",1,"operator",3,"click"],["type","text","name","ble","placeholder","bl\xe9","onkeypress","return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))",3,"ngModel","ngModelChange"],["size","3","type","text","name","blexRation","disabled","",3,"ngModel","ngModelChange"],["type","button","value","+",1,"operator",3,"click"],["type","text","name","colza","placeholder","colza","onkeypress","return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))",3,"ngModel"],["type","button","value","-",1,"operator",3,"click"],["size","3","type","text","name","colzaxRation","disabled","",3,"ngModel"],["type","text","name","paille","placeholder","paille","onkeypress","return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))",3,"ngModel"],["size","3","type","text","name","paillexRation","disabled","",3,"ngModel"],["type","text","name","mais","placeholder","mais","onkeypress","return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))",3,"ngModel"],["size","2","type","text","name","maisxRation","disabled","",3,"ngModel"],["size","1","type","text","name","mineraux","placeholder","mineraux","onkeypress","return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))",3,"ngModel"],["size","1","type","text","name","bicarbonate","placeholder","bicarbonate","onkeypress","return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))",3,"ngModel"],["size","1","type","text","name","calcium","placeholder","calcium","onkeypress","return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))",3,"ngModel"],["size","1","type","text","name","sel","placeholder","sel","onkeypress","return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))",3,"ngModel"],["size","1","type","text","name","ur\xe9e","placeholder","ur\xe9e","onkeypress","return (event.charCode !=8 && event.charCode ==0 || ( event.charCode == 46 || (event.charCode >= 48 && event.charCode <= 57)))",3,"ngModel"],["type","text","name","instruction","placeholder","instruction",1,"text-justify",3,"ngModel"],["type","text","name","instruction","placeholder","instruction",1,"text-break",3,"ngModel"],["type","submit","value","Modifier",3,"click"],[4,"ngIf"],[1,"card","w-50",2,"text-align","center"],[3,"width","height","title","description","showLegend","enableAnimations","padding","titlePadding","source","showBorderLine","seriesGroups","colorScheme",4,"ngIf"],[3,"width","height","title","description","showLegend","enableAnimations","padding","titlePadding","source","showBorderLine","seriesGroups","colorScheme"]],template:function(t,e){if(1&t){const t=Hs();Rs(0,"title"),go(1,"Calcul de la ration"),Fs(),Rs(2,"div",0),Rs(3,"form",1,2),zs("ngSubmit",(function(){Pe(t);const r=Es(4);return e.onSubmit(r.value)})),Rs(5,"div",3),Rs(6,"h3"),go(7,"Nombre de rations"),Fs(),Rs(8,"button",4),zs("click",(function(){return e.getOperation("+",1,"rations")})),go(9,"+"),Fs(),Ls(10,"input",5),Rs(11,"button",4),zs("click",(function(){return e.getOperation("-",1,"rations")})),go(12,"-"),Fs(),Rs(13,"input",6),zs("click",(function(){return e.modifier()})),Fs(),Fs(),Rs(14,"div",3),Rs(15,"label"),Rs(16,"h4"),go(17,"bl\xe9"),Fs(),Fs(),Rs(18,"button",7),zs("click",(function(){return e.getOperation("+",1,"ble")})),go(19,"+"),Fs(),Rs(20,"input",8),zs("ngModelChange",(function(t){return e.ble=t})),Fs(),Rs(21,"button",7),zs("click",(function(){return e.getOperation("-",1,"ble")})),go(22,"-"),Fs(),Rs(23,"input",9),zs("ngModelChange",(function(t){return e.blerxRation=t})),Fs(),go(24," kg "),Fs(),Rs(25,"div",3),Rs(26,"label"),Rs(27,"h4"),go(28,"Colza"),Fs(),Fs(),Rs(29,"button",10),zs("click",(function(){return e.getOperation("+",1,"colza")})),go(30,"+"),Fs(),Ls(31,"input",11),Rs(32,"button",12),zs("click",(function(){return e.getOperation("-",1,"colza")})),go(33,"-"),Fs(),Ls(34,"input",13),go(35," kg "),Fs(),Rs(36,"div",3),Rs(37,"label"),Rs(38,"h4"),go(39,"Paille"),Fs(),Fs(),Rs(40,"button",10),zs("click",(function(){return e.getOperation("+",1,"paille")})),go(41,"+"),Fs(),Ls(42,"input",14),Rs(43,"button",12),zs("click",(function(){return e.getOperation("-",1,"paille")})),go(44,"-"),Fs(),Ls(45,"input",15),go(46," kg "),Fs(),Rs(47,"div",3),Rs(48,"label"),Rs(49,"h4"),go(50,"Ma\xefs"),Fs(),Fs(),Rs(51,"button",10),zs("click",(function(){return e.getOperation("+",1,"mais")})),go(52,"+"),Fs(),Ls(53,"input",16),Rs(54,"button",12),zs("click",(function(){return e.getOperation("-",1,"mais")})),go(55,"-"),Fs(),Ls(56,"input",17),go(57," kg "),Fs(),Rs(58,"div",3),Rs(59,"h4"),go(60,"pelles de min\xe9raux"),Fs(),Ls(61,"input",18),Fs(),Rs(62,"div",3),Rs(63,"h4"),go(64,"sac de bicarbonate"),Fs(),Ls(65,"input",19),Fs(),Rs(66,"div",3),Rs(67,"h4"),go(68,"sac de calcium"),Fs(),Ls(69,"input",20),Fs(),Rs(70,"div",3),Rs(71,"h4"),go(72,"sac de sel"),Fs(),Ls(73,"input",21),Fs(),Rs(74,"div",3),Rs(75,"h4"),go(76,"pelles d'ur\xe9e"),Fs(),Ls(77,"input",22),Fs(),Rs(78,"div",3),Rs(79,"h4"),go(80,"Instructions"),Fs(),Ls(81,"input",23),Fs(),Rs(82,"div",3),Rs(83,"p"),Ls(84,"input",24),Fs(),Fs(),Rs(85,"input",25),zs("click",(function(){return e.modifier()})),Fs(),Ns(86,lv,2,0,"p",26),Fs(),Fs(),Ls(87,"br"),Rs(88,"div",27),Ns(89,hv,1,12,"jqxChart",28),Fs()}2&t&&(qn(10),Ds("ngModel",e.rations),qn(10),Ds("ngModel",e.ble),qn(3),Ds("ngModel",e.blerxRation),qn(8),Ds("ngModel",e.colza),qn(3),Ds("ngModel",e.colzaxRation),qn(8),Ds("ngModel",e.paille),qn(3),Ds("ngModel",e.paillexRation),qn(8),Ds("ngModel",e.mais),qn(3),Ds("ngModel",e.maisxRation),qn(5),Ds("ngModel",e.mineraux),qn(4),Ds("ngModel",e.bicarbonate),qn(4),Ds("ngModel",e.calcium),qn(4),Ds("ngModel",e.sel),qn(4),Ds("ngModel",e.uree),qn(4),Ds("ngModel",e.instruction),qn(3),Ds("ngModel",e.instruction2),qn(2),Ds("ngIf",e.modified),qn(3),Ds("ngIf",e.modified))},directives:[fc,yu,ic,uu,vu,dc,Ch,ov],styles:[""]}),t})()},{path:"authent",component:nv},{path:"calculatrice",component:(()=>{class t{constructor(){this.currentNumber="0",this.firstOperand=null,this.operator=null,this.waitForSecondNumber=!1}ngOnInit(){}getNumber(t){console.log(t),this.waitForSecondNumber?(this.currentNumber=t,this.waitForSecondNumber=!1):"0"===this.currentNumber?this.currentNumber=t:this.currentNumber+=t}getDecimal(){this.currentNumber.includes(".")||(this.currentNumber+=".")}doCalculation(t,e){switch(t){case"+":return this.firstOperand+=e;case"-":return this.firstOperand-=e;case"*":return this.firstOperand*=e;case"/":return this.firstOperand/=e;case"=":return e}}getOperation(t){if(console.log(t),null===this.firstOperand)this.firstOperand=Number(this.currentNumber);else if(this.operator){const t=this.doCalculation(this.operator,Number(this.currentNumber));this.currentNumber=String(t),this.firstOperand=t}this.operator=t,this.waitForSecondNumber=!0,console.log(this.firstOperand)}clear(){this.currentNumber="0",this.firstOperand=null,this.operator=null,this.waitForSecondNumber=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["app-calculatrice"]],decls:37,vars:1,consts:[[1,"calculator"],["type","text","disabled","",1,"calculator-screen",3,"value"],[1,"calculator-keys"],["type","button","value","+",1,"operator",3,"click"],["type","button","value","-",1,"operator",3,"click"],["type","button","value","*",1,"operator",3,"click"],["type","button","value","/",1,"operator",3,"click"],["type","button","value","7",3,"click"],["type","button","value","8",3,"click"],["type","button","value","9",3,"click"],["type","button","value","4",3,"click"],["type","button","value","5",3,"click"],["type","button","value","6",3,"click"],["type","button","value","1",3,"click"],["type","button","value","2",3,"click"],["type","button","value","3",3,"click"],["type","button","value","0",3,"click"],["type","button","value",".",1,"decimal",3,"click"],["type","button","value","all-clear",1,"all-clear",3,"click"],["type","button","value","=",1,"equal-sign",3,"click"]],template:function(t,e){1&t&&(Rs(0,"div",0),Ls(1,"input",1),Rs(2,"div",2),Rs(3,"button",3),zs("click",(function(){return e.getOperation("+")})),go(4,"+"),Fs(),Rs(5,"button",4),zs("click",(function(){return e.getOperation("-")})),go(6,"-"),Fs(),Rs(7,"button",5),zs("click",(function(){return e.getOperation("*")})),go(8,"\xd7"),Fs(),Rs(9,"button",6),zs("click",(function(){return e.getOperation("/")})),go(10,"\xf7"),Fs(),Rs(11,"button",7),zs("click",(function(){return e.getNumber("7")})),go(12,"7"),Fs(),Rs(13,"button",8),zs("click",(function(){return e.getNumber("8")})),go(14,"8"),Fs(),Rs(15,"button",9),zs("click",(function(){return e.getNumber("9")})),go(16,"9"),Fs(),Rs(17,"button",10),zs("click",(function(){return e.getNumber("4")})),go(18,"4"),Fs(),Rs(19,"button",11),zs("click",(function(){return e.getNumber("5")})),go(20,"5"),Fs(),Rs(21,"button",12),zs("click",(function(){return e.getNumber("6")})),go(22,"6"),Fs(),Rs(23,"button",13),zs("click",(function(){return e.getNumber("1")})),go(24,"1"),Fs(),Rs(25,"button",14),zs("click",(function(){return e.getNumber("2")})),go(26,"2"),Fs(),Rs(27,"button",15),zs("click",(function(){return e.getNumber("3")})),go(28,"3"),Fs(),Rs(29,"button",16),zs("click",(function(){return e.getNumber("0")})),go(30,"0"),Fs(),Rs(31,"button",17),zs("click",(function(){return e.getDecimal()})),go(32,"."),Fs(),Rs(33,"button",18),zs("click",(function(){return e.clear()})),go(34,"AC"),Fs(),Rs(35,"button",19),zs("click",(function(){return e.getOperation("=")})),go(36,"="),Fs(),Fs(),Fs()),2&t&&(qn(1),Ds("value",e.currentNumber))},styles:[".calculator[_ngcontent-%COMP%]{border:1px solid #ccc;border-radius:5px;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:400px}.calculator-screen[_ngcontent-%COMP%]{width:100%;font-size:5rem;height:80px;border:none;background-color:#252525;color:#fff;text-align:right;padding-right:20px;padding-left:10px}button[_ngcontent-%COMP%]{height:60px;background-color:#fff;border-radius:3px;border:1px solid #c4c4c4;background-color:transparent;font-size:2rem;color:#333;background-image:-webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(50%,transparent),to(rgba(0,0,0,.04)));background-image:linear-gradient(180deg,transparent,transparent 50%,rgba(0,0,0,.04));box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.05),inset 0 1px 0 0 hsla(0,0%,100%,.45),inset 0 -1px 0 0 hsla(0,0%,100%,.15),0 1px 0 0 hsla(0,0%,100%,.15);text-shadow:0 1px hsla(0,0%,100%,.4)}button[_ngcontent-%COMP%]:hover{background-color:#eaeaea}.operator[_ngcontent-%COMP%]{color:#337cac}.all-clear[_ngcontent-%COMP%]{background-color:#f0595f;border-color:#b0353a;color:#fff}.all-clear[_ngcontent-%COMP%]:hover{background-color:#f17377}.equal-sign[_ngcontent-%COMP%]{background-color:#2e86c0;border-color:#337cac;color:#fff;height:100%;grid-area:2/4/6/5}.equal-sign[_ngcontent-%COMP%]:hover{background-color:#4e9ed4}.calculator-keys[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:20px;padding:20px}"]}),t})()},{path:"dashboard",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["app-dashboard"]],decls:76,vars:0,consts:[[1,"card",2,"width","18rem"],["src","https://img.icons8.com/pastel-glyph/64/000000/cow-breed.png","alt","vache",1,"card-img-top"],[1,"card-body"],[1,"card-title"],[1,"card-text"],["href","#",1,"btn","btn-primary"],[1,"containerDash"],[1,"cardDash",2,"width","18rem"],["src","https://img.icons8.com/cute-clipart/64/000000/corn.png","alt","ma\xefs",1,"card-img-top"],["src","../../assets/image/colza.jpg","alt","colza",1,"card-img-top"],["src","../../assets/image/paille.JPG","alt","paille",1,"card-img-top"],["src","https://img.icons8.com/dusk/64/000000/salt.png","alt","sel",1,"card-img-top"],["src","../../assets/image/bicarbonate.jpg","alt","bicarbonate",1,"card-img-top"],["src","../../assets/image/calcium.jpg","alt","calcium",1,"card-img-top"],["src","../../assets/image/mineral.jpg","alt","mineral",1,"card-img-top"]],template:function(t,e){1&t&&(Rs(0,"p"),go(1,"dashboard works!"),Fs(),Rs(2,"div",0),Ls(3,"img",1),Rs(4,"div",2),Rs(5,"h5",3),go(6,"Nombre de vaches"),Fs(),Rs(7,"p",4),go(8,"Ration calcul\xe9 pour X vaches"),Fs(),Rs(9,"a",5),go(10,"Fiche des vaches"),Fs(),Fs(),Fs(),Rs(11,"div",6),Rs(12,"div",7),Ls(13,"img",8),Rs(14,"div",2),Rs(15,"h5",3),go(16,"Ration Ma\xefs"),Fs(),Rs(17,"p",4),go(18,"Donner la ration de Ma\xefs depuis le ration component"),Fs(),Rs(19,"a",5),go(20,"ref ou composition ou plus d'info disponible"),Fs(),Fs(),Fs(),Rs(21,"div",7),Ls(22,"img",9),Rs(23,"div",2),Rs(24,"h5",3),go(25,"Ration colza"),Fs(),Rs(26,"p",4),go(27,"Donner la ration de colza depuis le ration component"),Fs(),Rs(28,"a",5),go(29,"ref ou composition ou plus d'info disponible"),Fs(),Fs(),Fs(),Rs(30,"div",7),Ls(31,"img",10),Rs(32,"div",2),Rs(33,"h5",3),go(34,"Ration paille"),Fs(),Rs(35,"p",4),go(36,"Donner la ration de paille depuis le ration component"),Fs(),Rs(37,"a",5),go(38,"ref ou composition ou plus d'info disponible"),Fs(),Fs(),Fs(),Rs(39,"div",7),Ls(40,"img",11),Rs(41,"div",2),Rs(42,"h5",3),go(43,"Ration sel"),Fs(),Rs(44,"p",4),go(45,"Donner la ration de sel depuis le ration component"),Fs(),Rs(46,"a",5),go(47,"ref ou composition ou plus d'info disponible"),Fs(),Fs(),Fs(),Rs(48,"div",7),Ls(49,"img",12),Rs(50,"div",2),Rs(51,"h5",3),go(52,"Ration bicarbonate"),Fs(),Rs(53,"p",4),go(54,"Donner la ration de bicarbonate depuis le ration component"),Fs(),Rs(55,"a",5),go(56,"ref ou composition ou plus d'info disponible"),Fs(),Fs(),Fs(),Rs(57,"div",7),Ls(58,"img",13),Rs(59,"div",2),Rs(60,"h5",3),go(61,"Ration calcium"),Fs(),Rs(62,"p",4),go(63,"Donner la ration de calcium depuis le ration component"),Fs(),Rs(64,"a",5),go(65,"ref ou composition ou plus d'info disponible"),Fs(),Fs(),Fs(),Rs(66,"div",7),Ls(67,"img",14),Rs(68,"div",2),Rs(69,"h5",3),go(70,"Ration mineral"),Fs(),Rs(71,"p",4),go(72,"Donner la ration de mineral depuis le ration component"),Fs(),Rs(73,"a",5),go(74,"ref ou composition ou plus d'info disponible"),Fs(),Fs(),Fs(),Fs(),Ls(75,"router-outlet"))},directives:[Xg],styles:[""]}),t})()},{path:"header",component:_m},{path:"vache",component:(()=>{class t{constructor(){this.vaches=[{id:1,name:"marguerite",birth:"01/02/2018",description:"1 mamite en 2012 au pis proche jambe droite"},{id:2,name:"mango",birth:"22/04/2017",description:"acidose le 12 fevrier 2018"}]}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["app-vache"]],decls:13,vars:1,consts:[[1,"table"],[4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(Rs(0,"table",0),Rs(1,"thead"),Rs(2,"tr"),Rs(3,"th"),go(4,"IDVache"),Fs(),Rs(5,"th"),go(6,"NameVache"),Fs(),Rs(7,"th"),go(8,"Date Naissance"),Fs(),Rs(9,"th"),go(10,"description"),Fs(),Fs(),Fs(),Rs(11,"tbody"),Ns(12,uv,9,4,"tr",1),Fs(),Fs()),2&t&&(qn(12),Ds("ngForOf",e.vaches))},directives:[bh],styles:[""]}),t})()},{path:"http",component:(()=>{class t{constructor(t,e){this.http=t,this.apiService=e,this.userName="tektutorialshub",this.repos=[],this.loading=!1,this.restItemsUrl="https://public-api.wordpress.com/rest/v1.1/sites/vocon-it.com/posts"}ngOnInit(){this.getRestItems()}getRepos(){this.loading=!0,this.errorMessage="",this.apiService.getRepos(this.userName).subscribe(t=>{console.log("response received"),this.repos=t},t=>{console.error("Request failed with error"),this.errorMessage=t,this.loading=!1},()=>{console.error("Request completed"),this.loading=!1})}getRestItems(){this.restItemsServiceGetRestItems().subscribe(t=>{this.restItems=t,console.log(this.restItems)})}restItemsServiceGetRestItems(){return this.http.get(this.restItemsUrl).pipe(R(t=>t))}}return t.\u0275fac=function(e){return new(e||t)(Ms(Fm),Ms(tv))},t.\u0275cmp=pe({type:t,selectors:[["app-http"]],decls:32,vars:8,consts:[[4,"ngFor","ngForOf"],[1,"heading"],[1,"form-group"],["for","userName"],["type","text","name","userName",1,"form-control",3,"ngModel","ngModelChange"],["type","button",3,"click"],[4,"ngIf"],["class","alert alert-warning",4,"ngIf"],[1,"table"],[1,"alert","alert-warning"]],template:function(t,e){1&t&&(Rs(0,"h1"),go(1,"HTTP"),Fs(),Ns(2,cv,1,0,"div",0),Rs(3,"h1",1),Rs(4,"strong"),go(5,"HTTP "),Fs(),go(6,"Demo"),Fs(),Rs(7,"div",2),Rs(8,"label",3),go(9,"GitHub User Name"),Fs(),Rs(10,"input",4),zs("ngModelChange",(function(t){return e.userName=t})),Fs(),Fs(),Rs(11,"div",2),Rs(12,"button",5),zs("click",(function(){return e.getRepos()})),go(13,"Get Repos"),Fs(),Fs(),Ns(14,dv,2,0,"div",6),Ns(15,fv,5,3,"div",7),Rs(16,"table",8),Rs(17,"thead"),Rs(18,"tr"),Rs(19,"th"),go(20,"ID"),Fs(),Rs(21,"th"),go(22,"Name"),Fs(),Rs(23,"th"),go(24,"HTML Url"),Fs(),Rs(25,"th"),go(26,"description"),Fs(),Fs(),Fs(),Rs(27,"tbody"),Ns(28,pv,9,4,"tr",0),Fs(),Fs(),Rs(29,"pre"),go(30),Ea(31,"json"),Fs()),2&t&&(qn(2),Ds("ngForOf",e.restItems),qn(8),Ds("ngModel",e.userName),qn(4),Ds("ngIf",e.loading),qn(1),Ds("ngIf",e.errorMessage),qn(13),Ds("ngForOf",e.repos),qn(2),mo(Ma(31,6,e.repos)))},directives:[bh,uu,vu,dc,Ch],pipes:[kh],styles:[""]}),t})()},{path:"acceuil",component:rv},{path:"info",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["app-info"]],decls:8,vars:0,consts:[["href","https://www.societe.com/etablissement/gaec-toublanc-turban-81201969300017.html","target","_blank"],["width","600","height","400","frameborder","0","scrolling","no","marginheight","0","marginwidth","0","sandbox","allow-forms allow-scripts allow-same-origin","src","https://www.geoportail.gouv.fr/embed/visu.html?c=-3.0090584683460473,48.56205681446096&z=17&l0=ORTHOIMAGERY.ORTHOPHOTOS::GEOPORTAIL:OGC:WMTS(1)&l1=CADASTRALPARCELS.PARCELLAIRE_EXPRESS::GEOPORTAIL:OGC:WMTS(1)&l2=LANDUSE.AGRICULTURE2018::GEOPORTAIL:OGC:WMTS(0.6)&permalink=yes","allowfullscreen",""]],template:function(t,e){1&t&&(Rs(0,"h4"),go(1,"Information sur le GAEC"),Fs(),Rs(2,"a",0),go(3,"gaec-toublanc-turban"),Fs(),Ls(4,"br"),Rs(5,"h4"),go(6,"Plan de la ferme"),Fs(),Ls(7,"iframe",1))},styles:[""]}),t})()}];let mv=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[im.forRoot(gv)],im]}),t})();function vv(t){return(vv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yv(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){yv(t,e,r[e])}))}return t}function _v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(l){i=!0,s=l}finally{try{n||null==a.return||a.return()}finally{if(i)throw s}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var bv={},wv={};try{"undefined"!=typeof window&&(bv=window),"undefined"!=typeof document&&(wv=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&performance}catch(_y){}var Cv=(bv.navigator||{}).userAgent,Sv=void 0===Cv?"":Cv,Av=bv,kv=wv,Tv=!!kv.documentElement&&!!kv.head&&"function"==typeof kv.addEventListener&&"function"==typeof kv.createElement,jv=(~Sv.indexOf("MSIE")||Sv.indexOf("Trident/"),[1,2,3,4,5,6,7,8,9,10]),qv=jv.concat([11,12,13,14,15,16,17,18,19,20]),Nv={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Ev=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",Nv.GROUP,Nv.SWAP_OPACITY,Nv.PRIMARY,Nv.SECONDARY].concat(jv.map((function(t){return"".concat(t,"x")}))).concat(qv.map((function(t){return"w-".concat(t)}))),Av.FontAwesomeConfig||{});kv&&"function"==typeof kv.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(t){var e=_v(t,2),r=e[1],n=function(t){return""===t||"false"!==t&&("true"===t||t)}(function(t){var e=kv.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(e[0]));null!=n&&(Ev[r]=n)}));var Mv=xv({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},Ev);Mv.autoReplaceSvg||(Mv.observeMutations=!1);var Ov=xv({},Mv);Av.FontAwesomeConfig=Ov;var Iv=Av||{};Iv.___FONT_AWESOME___||(Iv.___FONT_AWESOME___={}),Iv.___FONT_AWESOME___.styles||(Iv.___FONT_AWESOME___.styles={}),Iv.___FONT_AWESOME___.hooks||(Iv.___FONT_AWESOME___.hooks={}),Iv.___FONT_AWESOME___.shims||(Iv.___FONT_AWESOME___.shims=[]);var Dv=Iv.___FONT_AWESOME___,Pv=[];Tv&&((kv.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(kv.readyState)||kv.addEventListener("DOMContentLoaded",(function t(){kv.removeEventListener("DOMContentLoaded",t),Pv.map((function(t){return t()}))})));var Rv,Fv=function(){},Lv="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,Hv="undefined"==typeof setImmediate?setTimeout:setImmediate,Vv=[];function Bv(){for(var t=0;t<Vv.length;t++)Vv[t][0](Vv[t][1]);Vv=[],Rv=!1}function zv(t,e){Vv.push([t,e]),Rv||(Rv=!0,Hv(Bv,0))}function Gv(t){var e=t.owner,r=e._state,n=e._data,i=t[r],s=t.then;if("function"==typeof i){r="fulfilled";try{n=i(n)}catch(_y){Xv(s,_y)}}Uv(s,n)||("fulfilled"===r&&Wv(s,n),"rejected"===r&&Xv(s,n))}function Uv(t,e){var r;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(e&&("function"==typeof e||"object"===vv(e))){var n=e.then;if("function"==typeof n)return n.call(e,(function(n){r||(r=!0,e===n?$v(t,n):Wv(t,n))}),(function(e){r||(r=!0,Xv(t,e))})),!0}}catch(_y){return r||Xv(t,_y),!0}return!1}function Wv(t,e){t!==e&&Uv(t,e)||$v(t,e)}function $v(t,e){"pending"===t._state&&(t._state="settled",t._data=e,zv(Qv,t))}function Xv(t,e){"pending"===t._state&&(t._state="settled",t._data=e,zv(Jv,t))}function Yv(t){t._then=t._then.forEach(Gv)}function Qv(t){t._state="fulfilled",Yv(t)}function Jv(t){t._state="rejected",Yv(t),!t._handled&&Lv&&global.process.emit("unhandledRejection",t._data,t)}function Zv(t){global.process.emit("rejectionHandled",t)}function Kv(t){if("function"!=typeof t)throw new TypeError("Promise resolver "+t+" is not a function");if(this instanceof Kv==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(t,e){function r(t){Xv(e,t)}try{t((function(t){Wv(e,t)}),r)}catch(_y){r(_y)}}(t,this)}Kv.prototype={constructor:Kv,_state:"pending",_then:null,_data:void 0,_handled:!1,then:function(t,e){var r={owner:this,then:new this.constructor(Fv),fulfilled:t,rejected:e};return!e&&!t||this._handled||(this._handled=!0,"rejected"===this._state&&Lv&&zv(Zv,this)),"fulfilled"===this._state||"rejected"===this._state?zv(Gv,r):this._then.push(r),r.then},catch:function(t){return this.then(null,t)}},Kv.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new Kv((function(e,r){var n=[],i=0;function s(t){return i++,function(r){n[t]=r,--i||e(n)}}for(var o,a=0;a<t.length;a++)(o=t[a])&&"function"==typeof o.then?o.then(s(a),r):n[a]=o;i||e(n)}))},Kv.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.race().");return new Kv((function(e,r){for(var n,i=0;i<t.length;i++)(n=t[i])&&"function"==typeof n.then?n.then(e,r):e(n)}))},Kv.resolve=function(t){return t&&"object"===vv(t)&&t.constructor===Kv?t:new Kv((function(e){e(t)}))},Kv.reject=function(t){return new Kv((function(e,r){r(t)}))};var ty=function(t,e,r,n){var i,s,o,a=Object.keys(t),l=a.length,h=void 0!==n?function(t,e){return function(r,n,i,s){return t.call(e,r,n,i,s)}}(e,n):e;for(void 0===r?(i=1,o=t[a[0]]):(i=0,o=r);i<l;i++)o=h(o,t[s=a[i]],s,t);return o};function ey(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.skipHooks,i=void 0!==n&&n,s=Object.keys(e).reduce((function(t,r){var n=e[r];return n.icon?t[n.iconName]=n.icon:t[r]=n,t}),{});"function"!=typeof Dv.hooks.addPack||i?Dv.styles[t]=xv({},Dv.styles[t]||{},s):Dv.hooks.addPack(t,s),"fas"===t&&ey("fa",e)}var ry=Dv.styles,ny=Dv.shims,iy=function(){var t=function(t){return ty(ry,(function(e,r,n){return e[n]=ty(r,t,{}),e}),{})};t((function(t,e,r){return e[3]&&(t[e[3]]=r),t})),t((function(t,e,r){var n=e[2];return t[r]=r,n.forEach((function(e){t[e]=r})),t}));var e="far"in ry;ty(ny,(function(t,r){var n=r[1];return"far"!==n||e||(n="fas"),t[r[0]]={prefix:n,iconName:r[2]},t}),{})};function sy(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}iy(),(sy.prototype=Object.create(Error.prototype)).constructor=sy;var oy={fill:"currentColor"},ay={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ly=(xv({},oy,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),xv({},ay,{attributeName:"opacity"}));xv({},oy,{cx:"256",cy:"364",r:"28"}),xv({},ay,{attributeName:"r",values:"28;14;28;28;14;28;"}),xv({},ly,{values:"1;0;1;1;0;1;"}),xv({},oy,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),xv({},ly,{values:"1;0;0;0;0;1;"}),xv({},oy,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),xv({},ly,{values:"0;0;1;1;0;0;"});var hy=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e;return(e=[{key:"add",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=r.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(e){t.definitions[e]=xv({},t.definitions[e]||{},i[e]),ey(e,i[e]),iy()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var r=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(r).map((function(e){var n=r[e],i=n.prefix,s=n.iconName,o=n.icon;t[i]||(t[i]={}),t[i][s]=o})),t}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}());let uy=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();r("lqUE");let cy=class{constructor(t){this.autoCreate=!0,this.properties=["animationDuration","backgroundColor","barSpacing","baseValue","colorScheme","customColorScheme","disabled","endAngle","formatFunction","height","labels","max","min","relativeInnerRadius","rendered","startAngle","title","tooltip","useGradient","values","width"],this.onDrawEnd=new Oa,this.onDrawStart=new Oa,this.onInitialized=new Oa,this.onTooltipClose=new Oa,this.onTooltipOpen=new Oa,this.onValueChanged=new Oa,this.elementRef=t}ngOnInit(){this.autoCreate&&this.createComponent()}ngOnChanges(t){if(this.host)for(let e=0;e<this.properties.length;e++){let t="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),r=!1;if(void 0!==this[t]){if("object"==typeof this[t]){if(this[t]instanceof Array&&(r=this.arraysEqual(this[t],this.host.jqxBarGauge(this.properties[e]))),r)return!1;this.host.jqxBarGauge(this.properties[e],this[t]);continue}this[t]!==this.host.jqxBarGauge(this.properties[e])&&this.host.jqxBarGauge(this.properties[e],this[t])}}}arraysEqual(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}manageAttributes(){let t={};for(let e=0;e<this.properties.length;e++){let r="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);void 0!==this[r]&&(t[this.properties[e]]=this[r])}return t}moveClasses(t,e){let r=t.classList;r.length>0&&e.classList.add(...r),t.className=""}moveStyles(t,e){e.style.cssText=t.style.cssText,t.style.cssText=""}createComponent(t){this.host||(t?JQXLite.extend(t,this.manageAttributes()):t=this.manageAttributes(),this.host=JQXLite(this.elementRef.nativeElement.firstChild),this.moveClasses(this.elementRef.nativeElement,this.host[0]),this.moveStyles(this.elementRef.nativeElement,this.host[0]),"string"==typeof t.width&&-1!==t.width.indexOf("%")&&(t.width=parseInt(t.width,10)/100*this.host.parent().parent().parent().width()),"string"==typeof t.height&&-1!==t.height.indexOf("%")&&(t.height=parseInt(t.height,10)/100*this.host.parent().parent().parent().height()),this.__wireEvents__(),this.widgetObject=jqwidgets.createInstance(this.host,"jqxBarGauge",t))}createWidget(t){this.createComponent(t)}__updateRect__(){this.host&&this.host.css({width:this.attrWidth,height:this.attrHeight})}setOptions(t){this.host.jqxBarGauge("setOptions",t)}animationDuration(t){if(void 0===t)return this.host.jqxBarGauge("animationDuration");this.host.jqxBarGauge("animationDuration",t)}backgroundColor(t){if(void 0===t)return this.host.jqxBarGauge("backgroundColor");this.host.jqxBarGauge("backgroundColor",t)}barSpacing(t){if(void 0===t)return this.host.jqxBarGauge("barSpacing");this.host.jqxBarGauge("barSpacing",t)}baseValue(t){if(void 0===t)return this.host.jqxBarGauge("baseValue");this.host.jqxBarGauge("baseValue",t)}colorScheme(t){if(void 0===t)return this.host.jqxBarGauge("colorScheme");this.host.jqxBarGauge("colorScheme",t)}customColorScheme(t){if(void 0===t)return this.host.jqxBarGauge("customColorScheme");this.host.jqxBarGauge("customColorScheme",t)}disabled(t){if(void 0===t)return this.host.jqxBarGauge("disabled");this.host.jqxBarGauge("disabled",t)}endAngle(t){if(void 0===t)return this.host.jqxBarGauge("endAngle");this.host.jqxBarGauge("endAngle",t)}formatFunction(t){if(void 0===t)return this.host.jqxBarGauge("formatFunction");this.host.jqxBarGauge("formatFunction",t)}height(t){if(void 0===t)return this.host.jqxBarGauge("height");this.host.jqxBarGauge("height",t)}labels(t){if(void 0===t)return this.host.jqxBarGauge("labels");this.host.jqxBarGauge("labels",t)}max(t){if(void 0===t)return this.host.jqxBarGauge("max");this.host.jqxBarGauge("max",t)}min(t){if(void 0===t)return this.host.jqxBarGauge("min");this.host.jqxBarGauge("min",t)}relativeInnerRadius(t){if(void 0===t)return this.host.jqxBarGauge("relativeInnerRadius");this.host.jqxBarGauge("relativeInnerRadius",t)}rendered(t){if(void 0===t)return this.host.jqxBarGauge("rendered");this.host.jqxBarGauge("rendered",t)}startAngle(t){if(void 0===t)return this.host.jqxBarGauge("startAngle");this.host.jqxBarGauge("startAngle",t)}title(t){if(void 0===t)return this.host.jqxBarGauge("title");this.host.jqxBarGauge("title",t)}tooltip(t){if(void 0===t)return this.host.jqxBarGauge("tooltip");this.host.jqxBarGauge("tooltip",t)}useGradient(t){if(void 0===t)return this.host.jqxBarGauge("useGradient");this.host.jqxBarGauge("useGradient",t)}values(t){if(void 0===t)return this.host.jqxBarGauge("values");this.host.jqxBarGauge("values",t)}width(t){if(void 0===t)return this.host.jqxBarGauge("width");this.host.jqxBarGauge("width",t)}refresh(){this.host.jqxBarGauge("refresh")}render(){this.host.jqxBarGauge("render")}val(t){return void 0!==t?this.host.jqxBarGauge("val",t):this.host.jqxBarGauge("val")}__wireEvents__(){this.host.on("drawEnd",t=>{this.onDrawEnd.emit(t)}),this.host.on("drawStart",t=>{this.onDrawStart.emit(t)}),this.host.on("initialized",t=>{this.onInitialized.emit(t)}),this.host.on("tooltipClose",t=>{this.onTooltipClose.emit(t)}),this.host.on("tooltipOpen",t=>{this.onTooltipOpen.emit(t)}),this.host.on("valueChanged",t=>{this.onValueChanged.emit(t)})}};cy.\u0275fac=function(t){return new(t||cy)(Ms(Vo))},cy.\u0275cmp=pe({type:cy,selectors:[["jqxBarGauge"]],inputs:{autoCreate:["auto-create","autoCreate"],attrAnimationDuration:["animationDuration","attrAnimationDuration"],attrBackgroundColor:["backgroundColor","attrBackgroundColor"],attrBarSpacing:["barSpacing","attrBarSpacing"],attrBaseValue:["baseValue","attrBaseValue"],attrColorScheme:["colorScheme","attrColorScheme"],attrCustomColorScheme:["customColorScheme","attrCustomColorScheme"],attrDisabled:["disabled","attrDisabled"],attrEndAngle:["endAngle","attrEndAngle"],attrFormatFunction:["formatFunction","attrFormatFunction"],attrLabels:["labels","attrLabels"],attrMax:["max","attrMax"],attrMin:["min","attrMin"],attrRelativeInnerRadius:["relativeInnerRadius","attrRelativeInnerRadius"],attrRendered:["rendered","attrRendered"],attrStartAngle:["startAngle","attrStartAngle"],attrTitle:["title","attrTitle"],attrTooltip:["tooltip","attrTooltip"],attrUseGradient:["useGradient","attrUseGradient"],attrValues:["values","attrValues"],attrWidth:["width","attrWidth"],attrHeight:["height","attrHeight"]},outputs:{onDrawEnd:"onDrawEnd",onDrawStart:"onDrawStart",onInitialized:"onInitialized",onTooltipClose:"onTooltipClose",onTooltipOpen:"onTooltipOpen",onValueChanged:"onValueChanged"},features:[ko()],ngContentSelectors:["*"],decls:2,vars:0,template:function(t,e){1&t&&(Xs(),Rs(0,"div"),Ys(1),Fs())},encapsulation:2}),cy.ctorParameters=()=>[{type:Vo}],iv([Qa("animationDuration"),sv("design:type",Number)],cy.prototype,"attrAnimationDuration",void 0),iv([Qa("backgroundColor"),sv("design:type",String)],cy.prototype,"attrBackgroundColor",void 0),iv([Qa("barSpacing"),sv("design:type",Number)],cy.prototype,"attrBarSpacing",void 0),iv([Qa("baseValue"),sv("design:type",Number)],cy.prototype,"attrBaseValue",void 0),iv([Qa("colorScheme"),sv("design:type",String)],cy.prototype,"attrColorScheme",void 0),iv([Qa("customColorScheme"),sv("design:type",Object)],cy.prototype,"attrCustomColorScheme",void 0),iv([Qa("disabled"),sv("design:type",Boolean)],cy.prototype,"attrDisabled",void 0),iv([Qa("endAngle"),sv("design:type",Number)],cy.prototype,"attrEndAngle",void 0),iv([Qa("formatFunction"),sv("design:type",Function)],cy.prototype,"attrFormatFunction",void 0),iv([Qa("labels"),sv("design:type",Object)],cy.prototype,"attrLabels",void 0),iv([Qa("max"),sv("design:type",Object)],cy.prototype,"attrMax",void 0),iv([Qa("min"),sv("design:type",Number)],cy.prototype,"attrMin",void 0),iv([Qa("relativeInnerRadius"),sv("design:type",Object)],cy.prototype,"attrRelativeInnerRadius",void 0),iv([Qa("rendered"),sv("design:type",Function)],cy.prototype,"attrRendered",void 0),iv([Qa("startAngle"),sv("design:type",Number)],cy.prototype,"attrStartAngle",void 0),iv([Qa("title"),sv("design:type",Object)],cy.prototype,"attrTitle",void 0),iv([Qa("tooltip"),sv("design:type",Object)],cy.prototype,"attrTooltip",void 0),iv([Qa("useGradient"),sv("design:type",Boolean)],cy.prototype,"attrUseGradient",void 0),iv([Qa("values"),sv("design:type",Array)],cy.prototype,"attrValues",void 0),iv([Qa("width"),sv("design:type",Object)],cy.prototype,"attrWidth",void 0),iv([Qa("height"),sv("design:type",Object)],cy.prototype,"attrHeight",void 0),iv([Qa("auto-create"),sv("design:type",Boolean)],cy.prototype,"autoCreate",void 0),iv([Ja(),sv("design:type",Object)],cy.prototype,"onDrawEnd",void 0),iv([Ja(),sv("design:type",Object)],cy.prototype,"onDrawStart",void 0),iv([Ja(),sv("design:type",Object)],cy.prototype,"onInitialized",void 0),iv([Ja(),sv("design:type",Object)],cy.prototype,"onTooltipClose",void 0),iv([Ja(),sv("design:type",Object)],cy.prototype,"onTooltipOpen",void 0),iv([Ja(),sv("design:type",Object)],cy.prototype,"onValueChanged",void 0),cy=iv([sv("design:paramtypes",[Vo])],cy);let dy=class{};dy.\u0275mod=ye({type:dy}),dy.\u0275inj=dt({factory:function(t){return new(t||dy)},imports:[[]]}),r("5J2/");const fy=()=>{},py={provide:su,useExisting:St(()=>gy),multi:!0};let gy=class{constructor(t){this.autoCreate=!0,this.properties=["disabled","height","mask","promptChar","readOnly","rtl","theme","textAlign","value","width"],this.onTouchedCallback=fy,this.onChangeCallback=fy,this.onChange=new Oa,this.onValueChanged=new Oa,this.elementRef=t}ngOnInit(){this.autoCreate&&this.createComponent()}ngOnChanges(t){if(this.host)for(let e=0;e<this.properties.length;e++){let t="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),r=!1;if(void 0!==this[t]){if("object"==typeof this[t]){if(this[t]instanceof Array&&(r=this.arraysEqual(this[t],this.host.jqxMaskedInput(this.properties[e]))),r)return!1;this.host.jqxMaskedInput(this.properties[e],this[t]);continue}this[t]!==this.host.jqxMaskedInput(this.properties[e])&&this.host.jqxMaskedInput(this.properties[e],this[t])}}}arraysEqual(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}manageAttributes(){let t={};for(let e=0;e<this.properties.length;e++){let r="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);void 0!==this[r]&&(t[this.properties[e]]=this[r])}return t}moveClasses(t,e){let r=t.classList;r.length>0&&e.classList.add(...r),t.className=""}moveStyles(t,e){e.style.cssText=t.style.cssText,t.style.cssText=""}createComponent(t){this.host||(t?JQXLite.extend(t,this.manageAttributes()):t=this.manageAttributes(),this.host=JQXLite(this.elementRef.nativeElement.firstChild),this.moveClasses(this.elementRef.nativeElement,this.host[0]),this.moveStyles(this.elementRef.nativeElement,this.host[0]),this.__wireEvents__(),this.widgetObject=jqwidgets.createInstance(this.host,"jqxMaskedInput",t))}createWidget(t){this.createComponent(t)}__updateRect__(){this.host&&this.host.css({width:this.attrWidth,height:this.attrHeight})}writeValue(t){this.widgetObject&&this.host.jqxMaskedInput("val",t)}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}setOptions(t){this.host.jqxMaskedInput("setOptions",t)}disabled(t){if(void 0===t)return this.host.jqxMaskedInput("disabled");this.host.jqxMaskedInput("disabled",t)}height(t){if(void 0===t)return this.host.jqxMaskedInput("height");this.host.jqxMaskedInput("height",t)}mask(t){if(void 0===t)return this.host.jqxMaskedInput("mask");this.host.jqxMaskedInput("mask",t)}promptChar(t){if(void 0===t)return this.host.jqxMaskedInput("promptChar");this.host.jqxMaskedInput("promptChar",t)}readOnly(t){if(void 0===t)return this.host.jqxMaskedInput("readOnly");this.host.jqxMaskedInput("readOnly",t)}rtl(t){if(void 0===t)return this.host.jqxMaskedInput("rtl");this.host.jqxMaskedInput("rtl",t)}theme(t){if(void 0===t)return this.host.jqxMaskedInput("theme");this.host.jqxMaskedInput("theme",t)}textAlign(t){if(void 0===t)return this.host.jqxMaskedInput("textAlign");this.host.jqxMaskedInput("textAlign",t)}value(t){if(void 0===t)return this.host.jqxMaskedInput("value");this.host.jqxMaskedInput("value",t)}width(t){if(void 0===t)return this.host.jqxMaskedInput("width");this.host.jqxMaskedInput("width",t)}clear(){this.host.jqxMaskedInput("clear")}destroy(){this.host.jqxMaskedInput("destroy")}focus(){this.host.jqxMaskedInput("focus")}val(t){return void 0!==t?this.host.jqxMaskedInput("val",t):this.host.jqxMaskedInput("val")}__wireEvents__(){this.host.parent().on("change",t=>{this.onChange.emit(t),this.onChangeCallback(this.host.val())}),this.host.parent().on("valueChanged",t=>{this.onValueChanged.emit(t),this.onChangeCallback(this.host.val())})}};gy.\u0275fac=function(t){return new(t||gy)(Ms(Vo))},gy.\u0275cmp=pe({type:gy,selectors:[["jqxMaskedInput"]],inputs:{autoCreate:["auto-create","autoCreate"],attrDisabled:["disabled","attrDisabled"],attrMask:["mask","attrMask"],attrPromptChar:["promptChar","attrPromptChar"],attrReadOnly:["readOnly","attrReadOnly"],attrRtl:["rtl","attrRtl"],attrTheme:["theme","attrTheme"],attrTextAlign:["textAlign","attrTextAlign"],attrValue:["value","attrValue"],attrWidth:["width","attrWidth"],attrHeight:["height","attrHeight"]},outputs:{onChange:"onChange",onValueChanged:"onValueChanged"},features:[Ro([py]),ko()],decls:1,vars:0,template:function(t,e){1&t&&Ls(0,"input")},encapsulation:2,changeDetection:0}),gy.ctorParameters=()=>[{type:Vo}],iv([Qa("disabled"),sv("design:type",Boolean)],gy.prototype,"attrDisabled",void 0),iv([Qa("mask"),sv("design:type",String)],gy.prototype,"attrMask",void 0),iv([Qa("promptChar"),sv("design:type",Object)],gy.prototype,"attrPromptChar",void 0),iv([Qa("readOnly"),sv("design:type",Boolean)],gy.prototype,"attrReadOnly",void 0),iv([Qa("rtl"),sv("design:type",Boolean)],gy.prototype,"attrRtl",void 0),iv([Qa("theme"),sv("design:type",String)],gy.prototype,"attrTheme",void 0),iv([Qa("textAlign"),sv("design:type",String)],gy.prototype,"attrTextAlign",void 0),iv([Qa("value"),sv("design:type",Object)],gy.prototype,"attrValue",void 0),iv([Qa("width"),sv("design:type",Object)],gy.prototype,"attrWidth",void 0),iv([Qa("height"),sv("design:type",Object)],gy.prototype,"attrHeight",void 0),iv([Qa("auto-create"),sv("design:type",Boolean)],gy.prototype,"autoCreate",void 0),iv([Ja(),sv("design:type",Object)],gy.prototype,"onChange",void 0),iv([Ja(),sv("design:type",Object)],gy.prototype,"onValueChanged",void 0),gy=iv([sv("design:paramtypes",[Vo])],gy);let my=class{};my.\u0275mod=ye({type:my}),my.\u0275inj=dt({factory:function(t){return new(t||my)},imports:[[gc]]}),r("o6h3");let vy=class{constructor(t){this.autoCreate=!0,this.properties=["disabled","height","imgSrc","imgWidth","imgHeight","imgPosition","roundedCorners","rtl","enableDefault","cursor","textPosition","textImageRelation","theme","template","width","value"],this.onClick=new Oa,this.elementRef=t}ngOnInit(){this.autoCreate&&this.createComponent()}ngOnChanges(t){if(this.host)for(let e=0;e<this.properties.length;e++){let t="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),r=!1;if(void 0!==this[t]){if("object"==typeof this[t]){if(this[t]instanceof Array&&(r=this.arraysEqual(this[t],this.host.jqxButton(this.properties[e]))),r)return!1;this.host.jqxButton(this.properties[e],this[t]);continue}this[t]!==this.host.jqxButton(this.properties[e])&&this.host.jqxButton(this.properties[e],this[t])}}}arraysEqual(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}manageAttributes(){let t={};for(let e=0;e<this.properties.length;e++){let r="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);void 0!==this[r]&&(t[this.properties[e]]=this[r])}return t}moveClasses(t,e){let r=t.classList;r.length>0&&e.classList.add(...r),t.className=""}moveStyles(t,e){e.style.cssText=t.style.cssText,t.style.cssText=""}createComponent(t){this.host||(t?JQXLite.extend(t,this.manageAttributes()):t=this.manageAttributes(),this.host=JQXLite(this.elementRef.nativeElement.firstChild),this.moveClasses(this.elementRef.nativeElement,this.host[0]),this.moveStyles(this.elementRef.nativeElement,this.host[0]),this.widgetObject=jqwidgets.createInstance(this.host,"jqxButton",t),this.host=this.widgetObject.host,this.__wireEvents__())}createWidget(t){this.createComponent(t)}__updateRect__(){this.host&&this.host.css({width:this.attrWidth,height:this.attrHeight})}setOptions(t){this.host.jqxButton("setOptions",t)}disabled(t){if(void 0===t)return this.host.jqxButton("disabled");this.host.jqxButton("disabled",t)}height(t){if(void 0===t)return this.host.jqxButton("height");this.host.jqxButton("height",t)}imgSrc(t){if(void 0===t)return this.host.jqxButton("imgSrc");this.host.jqxButton("imgSrc",t)}imgWidth(t){if(void 0===t)return this.host.jqxButton("imgWidth");this.host.jqxButton("imgWidth",t)}imgHeight(t){if(void 0===t)return this.host.jqxButton("imgHeight");this.host.jqxButton("imgHeight",t)}imgPosition(t){if(void 0===t)return this.host.jqxButton("imgPosition");this.host.jqxButton("imgPosition",t)}roundedCorners(t){if(void 0===t)return this.host.jqxButton("roundedCorners");this.host.jqxButton("roundedCorners",t)}rtl(t){if(void 0===t)return this.host.jqxButton("rtl");this.host.jqxButton("rtl",t)}enableDefault(t){if(void 0===t)return this.host.jqxButton("enableDefault");this.host.jqxButton("enableDefault",t)}cursor(t){if(void 0===t)return this.host.jqxButton("cursor");this.host.jqxButton("cursor",t)}textPosition(t){if(void 0===t)return this.host.jqxButton("textPosition");this.host.jqxButton("textPosition",t)}textImageRelation(t){if(void 0===t)return this.host.jqxButton("textImageRelation");this.host.jqxButton("textImageRelation",t)}theme(t){if(void 0===t)return this.host.jqxButton("theme");this.host.jqxButton("theme",t)}template(t){if(void 0===t)return this.host.jqxButton("template");this.host.jqxButton("template",t)}width(t){if(void 0===t)return this.host.jqxButton("width");this.host.jqxButton("width",t)}value(t){if(void 0===t)return this.host.jqxButton("value");this.host.jqxButton("value",t)}destroy(){this.host.jqxButton("destroy")}focus(){this.host.jqxButton("focus")}render(){this.host.jqxButton("render")}val(t){return void 0!==t?this.host.jqxButton("val",t):this.host.jqxButton("val")}__wireEvents__(){this.host.on("click",t=>{this.onClick.emit(t)})}};vy.\u0275fac=function(t){return new(t||vy)(Ms(Vo))},vy.\u0275cmp=pe({type:vy,selectors:[["jqxButton"]],inputs:{autoCreate:["auto-create","autoCreate"],attrDisabled:["disabled","attrDisabled"],attrImgSrc:["imgSrc","attrImgSrc"],attrImgWidth:["imgWidth","attrImgWidth"],attrImgHeight:["imgHeight","attrImgHeight"],attrImgPosition:["imgPosition","attrImgPosition"],attrRoundedCorners:["roundedCorners","attrRoundedCorners"],attrRtl:["rtl","attrRtl"],attrEnableDefault:["enableDefault","attrEnableDefault"],attrCursor:["cursor","attrCursor"],attrTextPosition:["textPosition","attrTextPosition"],attrTextImageRelation:["textImageRelation","attrTextImageRelation"],attrTheme:["theme","attrTheme"],attrTemplate:["template","attrTemplate"],attrValue:["value","attrValue"],attrWidth:["width","attrWidth"],attrHeight:["height","attrHeight"]},outputs:{onClick:"onClick"},features:[ko()],ngContentSelectors:["*"],decls:2,vars:0,template:function(t,e){1&t&&(Xs(),Rs(0,"button"),Ys(1),Fs())},encapsulation:2}),vy.ctorParameters=()=>[{type:Vo}],iv([Qa("disabled"),sv("design:type",Boolean)],vy.prototype,"attrDisabled",void 0),iv([Qa("imgSrc"),sv("design:type",String)],vy.prototype,"attrImgSrc",void 0),iv([Qa("imgWidth"),sv("design:type",Object)],vy.prototype,"attrImgWidth",void 0),iv([Qa("imgHeight"),sv("design:type",Object)],vy.prototype,"attrImgHeight",void 0),iv([Qa("imgPosition"),sv("design:type",String)],vy.prototype,"attrImgPosition",void 0),iv([Qa("roundedCorners"),sv("design:type",String)],vy.prototype,"attrRoundedCorners",void 0),iv([Qa("rtl"),sv("design:type",Boolean)],vy.prototype,"attrRtl",void 0),iv([Qa("enableDefault"),sv("design:type",Boolean)],vy.prototype,"attrEnableDefault",void 0),iv([Qa("cursor"),sv("design:type",Boolean)],vy.prototype,"attrCursor",void 0),iv([Qa("textPosition"),sv("design:type",String)],vy.prototype,"attrTextPosition",void 0),iv([Qa("textImageRelation"),sv("design:type",String)],vy.prototype,"attrTextImageRelation",void 0),iv([Qa("theme"),sv("design:type",String)],vy.prototype,"attrTheme",void 0),iv([Qa("template"),sv("design:type",String)],vy.prototype,"attrTemplate",void 0),iv([Qa("value"),sv("design:type",String)],vy.prototype,"attrValue",void 0),iv([Qa("width"),sv("design:type",Object)],vy.prototype,"attrWidth",void 0),iv([Qa("height"),sv("design:type",Object)],vy.prototype,"attrHeight",void 0),iv([Qa("auto-create"),sv("design:type",Boolean)],vy.prototype,"autoCreate",void 0),iv([Ja(),sv("design:type",Object)],vy.prototype,"onClick",void 0),vy=iv([sv("design:paramtypes",[Vo])],vy);let yy=class{};yy.\u0275mod=ye({type:yy}),yy.\u0275inj=dt({factory:function(t){return new(t||yy)},imports:[[]]}),hy.add({prefix:"fas",iconName:"external-link-alt",icon:[512,512,[],"f35d","M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"]}),hy.add({prefix:"far",iconName:"user-circle",icon:[496,512,[],"f2bd","M248 104c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96zm0 144c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm0-240C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-49.7 0-95.1-18.3-130.1-48.4 14.9-23 40.4-38.6 69.6-39.5 20.8 6.4 40.6 9.6 60.5 9.6s39.7-3.1 60.5-9.6c29.2 1 54.7 16.5 69.6 39.5-35 30.1-80.4 48.4-130.1 48.4zm162.7-84.1c-24.4-31.4-62.1-51.9-105.1-51.9-10.2 0-26 9.6-57.6 9.6-31.5 0-47.4-9.6-57.6-9.6-42.9 0-80.6 20.5-105.1 51.9C61.9 339.2 48 299.2 48 256c0-110.3 89.7-200 200-200s200 89.7 200 200c0 43.2-13.9 83.2-37.3 115.9z"]});let xy=(()=>{class t{}return t.\u0275mod=ye({type:t,bootstrap:[bm]}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[tv],imports:[[nu,mv,Kd,uy,Km,gc,dy,av,my,yy]]}),t})();(function(){if(Qr)throw new Error("Cannot enable prod mode after platform setup.");Yr=!1})(),eu().bootstrapModule(xy).catch(t=>console.error(t))},zn8P:function(t,e){function r(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}r.keys=function(){return[]},r.resolve=r,t.exports=r,r.id="zn8P"}},[[0,0]]]);