',r.body.appendChild(n),e=n.lastChild,r.defaultView&&(t.correctRightMargin=!0,t.correctTransparentColor=!0),t.cssFloat=!!e.style.cssFloat,r.body.removeChild(n)};Ext.isReady?e():Ext.onReady(e)}(),Ext.EventObject=function(){var t=Ext.lib.Event,e=/(dbl)?click/,n={3:13,63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35},r=Ext.isIE?{1:0,4:1,2:2}:{0:0,1:1,2:2};return Ext.EventObjectImpl=function(t){t&&this.setEvent(t.browserEvent||t)},Ext.EventObjectImpl.prototype={setEvent:function(n){var i=this;return n==i||n&&n.browserEvent?n:(i.browserEvent=n,n?(i.button=n.button?r[n.button]:n.which?n.which-1:-1,e.test(n.type)&&-1==i.button&&(i.button=0),i.type=n.type,i.shiftKey=n.shiftKey,i.ctrlKey=n.ctrlKey||n.metaKey||!1,i.altKey=n.altKey,i.keyCode=n.keyCode,i.charCode=n.charCode,i.target=t.getTarget(n),i.xy=t.getXY(n)):(i.button=-1,i.shiftKey=!1,i.ctrlKey=!1,i.altKey=!1,i.keyCode=0,i.charCode=0,i.target=null,i.xy=[0,0]),i)},stopEvent:function(){var e=this;e.browserEvent&&("mousedown"==e.browserEvent.type&&Ext.EventManager.stoppedMouseDownEvent.fire(e),t.stopEvent(e.browserEvent))},preventDefault:function(){this.browserEvent&&t.preventDefault(this.browserEvent)},stopPropagation:function(){var e=this;e.browserEvent&&("mousedown"==e.browserEvent.type&&Ext.EventManager.stoppedMouseDownEvent.fire(e),t.stopPropagation(e.browserEvent))},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.normalizeKey(this.keyCode||this.charCode)},normalizeKey:function(t){return Ext.isSafari?n[t]||t:t},getPageX:function(){return this.xy[0]},getPageY:function(){return this.xy[1]},getXY:function(){return this.xy},getTarget:function(t,e,n){return t?Ext.fly(this.target).findParent(t,e,n):n?Ext.get(this.target):this.target},getRelatedTarget:function(){return this.browserEvent?t.getRelatedTarget(this.browserEvent):null},getWheelDelta:function(){var t=this.browserEvent,e=0;return t.wheelDelta?e=t.wheelDelta/120:t.detail&&(e=-t.detail/3),e},within:function(t,e,n){if(t){var r=this[e?"getRelatedTarget":"getTarget"]();return r&&(!!n&&r==Ext.getDom(t)||Ext.fly(t).contains(r))}return!1}},new Ext.EventObjectImpl}(),Ext.applyIf(String,{format:function(t){var e=Ext.toArray(arguments,1);return t.replace(/\{(\d+)\}/g,function(t,n){return e[n]})}}),Ext.applyIf(Array.prototype,{indexOf:function(t,e){var n=this.length;for(e=e||0,e+=e<0?n:0;e
1){for(var n=[],r=0,i=e.length;r",t,""].join("");for(var e,n=/]*>((?:(?=([^<]+))\2|<(?!tpl\b[^>]*>))*?)<\/tpl>/,r=/^]*?for="(.*?)"/,i=/^]*?if="(.*?)"/,a=/^]*?exec="(.*?)"/,o=0,s=[];e=t.match(n);){var l=e[0].match(r),u=e[0].match(i),c=e[0].match(a),d=null,h=null,f=null,p=l&&l[1]?l[1]:"";if(u&&(d=u&&u[1]?u[1]:null)&&(h=new Function("values","parent","xindex","xcount","with(values){ return "+Ext.util.Format.htmlDecode(d)+"; }")),c&&(d=c&&c[1]?c[1]:null)&&(f=new Function("values","parent","xindex","xcount","with(values){ "+Ext.util.Format.htmlDecode(d)+"; }")),p)switch(p){case".":p=new Function("values","parent","with(values){ return values; }");break;case"..":p=new Function("values","parent","with(values){ return parent; }");break;default:p=new Function("values","parent","with(values){ return "+p+"; }")}s.push({id:o,target:p,exec:f,test:h,body:e[1]||""}),t=t.replace(e[0],"{xtpl"+o+"}"),++o}for(var m=s.length-1;m>=0;--m)this.compileTpl(s[m]);this.master=s[s.length-1],this.tpls=s},Ext.extend(Ext.XTemplate,Ext.Template,{re:/\{([\w-\.\#]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\\]\s?[\d\.\+\-\*\\\(\)]+)?\}/g,codeRe:/\{\[((?:\\\]|.|\n)*?)\]\}/g,applySubTemplate:function(t,e,n,r,i){var a=this.tpls[t];if(a.test&&!a.test.call(this,e,n,r,i))return"";if(a.exec&&a.exec.call(this,e,n,r,i))return"";var o=a.target?a.target.call(this,e,n):e;if(n=a.target?e:n,a.target&&Ext.isArray(o)){for(var s=[],l=0,u=o.length;l=0;--r)t[n[r].selectorText]=n[r]}catch(t){}},getRules:function(n){if(null==t||n){t={};for(var r=e.styleSheets,i=0,a=r.length;i',i.body.appendChild(r),n=r.lastChild,(e=i.defaultView)&&("0px"!=e.getComputedStyle(r.firstChild.firstChild,null).marginRight&&(t.correctRightMargin=!1),"transparent"!=e.getComputedStyle(n,null).backgroundColor&&(t.correctTransparentColor=!1)),t.cssFloat=!!n.style.cssFloat,i.body.removeChild(r)};Ext.isReady?e():Ext.onReady(e)}(),Ext.EventObject=function(){var t=Ext.lib.Event,e=/(dbl)?click/,n={3:13,63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35},r=Ext.isIE?{1:0,4:1,2:2}:{0:0,1:1,2:2};return Ext.EventObjectImpl=function(t){t&&this.setEvent(t.browserEvent||t)},Ext.EventObjectImpl.prototype={setEvent:function(n){var i=this;return n==i||n&&n.browserEvent?n:(i.browserEvent=n,n?(i.button=n.button?r[n.button]:n.which?n.which-1:-1,e.test(n.type)&&-1==i.button&&(i.button=0),i.type=n.type,i.shiftKey=n.shiftKey,i.ctrlKey=n.ctrlKey||n.metaKey||!1,i.altKey=n.altKey,i.keyCode=n.keyCode,i.charCode=n.charCode,i.target=t.getTarget(n),i.xy=t.getXY(n)):(i.button=-1,i.shiftKey=!1,i.ctrlKey=!1,i.altKey=!1,i.keyCode=0,i.charCode=0,i.target=null,i.xy=[0,0]),i)},stopEvent:function(){var e=this;e.browserEvent&&("mousedown"==e.browserEvent.type&&Ext.EventManager.stoppedMouseDownEvent.fire(e),t.stopEvent(e.browserEvent))},preventDefault:function(){this.browserEvent&&t.preventDefault(this.browserEvent)},stopPropagation:function(){var e=this;e.browserEvent&&("mousedown"==e.browserEvent.type&&Ext.EventManager.stoppedMouseDownEvent.fire(e),t.stopPropagation(e.browserEvent))},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.normalizeKey(this.keyCode||this.charCode)},normalizeKey:function(t){return Ext.isSafari?n[t]||t:t},getPageX:function(){return this.xy[0]},getPageY:function(){return this.xy[1]},getXY:function(){return this.xy},getTarget:function(t,e,n){return t?Ext.fly(this.target).findParent(t,e,n):n?Ext.get(this.target):this.target},getRelatedTarget:function(){return this.browserEvent?t.getRelatedTarget(this.browserEvent):null},getWheelDelta:function(){var t=this.browserEvent,e=0;return t.wheelDelta?e=t.wheelDelta/120:t.detail&&(e=-t.detail/3),e},within:function(t,e,n){if(t){var r=this[e?"getRelatedTarget":"getTarget"]();return r&&(!!n&&r==Ext.getDom(t)||Ext.fly(t).contains(r))}return!1}},new Ext.EventObjectImpl}(),Ext.DomHelper=function(){function t(t,n,r,i,o,s){var l=a.insertHtml(i,Ext.getDom(t),e(n));return r?Ext.get(l,!0):l}function e(t){var n,r,i,a,o="";if("string"==typeof t)o=t;else if(Ext.isArray(t))for(var l=0;l
":(o+=">",(a=t.children||t.cn)?o+=e(a):t.html&&(o+=t.html),o+=""+t.tag+">")}return o}function n(t,e,n,r){o.innerHTML=[e,n,r].join("");for(var i,a=-1,s=o;++a
",v="",_=y+"",b=""+v,x=_+"",E="
"+b;return a={markup:function(t){return e(t)},applyStyles:function(t,e){if(e){var n;if(t=Ext.fly(t),"function"==typeof e&&(e=e.call()),"string"==typeof e)for(d.lastIndex=0;n=d.exec(e);)t.setStyle(n[1],n[2]);else"object"==typeof e&&t.setStyle(e)}},insertHtml:function(t,e,n){var a,o,s,u,c,d,y={};if(t=t.toLowerCase(),y[m]=["BeforeBegin","previousSibling"],y[p]=["AfterEnd","nextSibling"],!e.insertAdjacentHTML)return o=e.ownerDocument.createRange(),u="setStart"+(h.test(t)?"After":"Before"),y[t]?(o[u](e),c=o.createContextualFragment?o.createContextualFragment(n):i(n),e.parentNode.insertBefore(c,t==m?e:e.nextSibling),e[(t==m?"previous":"next")+"Sibling"]):(s=(t==f?"first":"last")+"Child",e.firstChild?(o[u](e[s]),c=o.createContextualFragment?o.createContextualFragment(n):i(n),t==f?e.insertBefore(c,e.firstChild):e.appendChild(c)):e.innerHTML=n,e[s]);if(l.test(e.tagName)&&(d=r(e.tagName.toLowerCase(),t,e,n)))return d;if(y[f]=["AfterBegin","firstChild"],y[g]=["BeforeEnd","lastChild"],a=y[t])return e.insertAdjacentHTML(a[0],n),e[a[1]];throw'Illegal insertion point -> "'+t+'"'},insertBefore:function(e,n,r){return t(e,n,r,m)},insertAfter:function(e,n,r){return t(e,n,r,p,"nextSibling")},insertFirst:function(e,n,r){return t(e,n,r,f,"firstChild")},append:function(e,n,r){return t(e,n,r,g,"",!0)},overwrite:function(t,n,r){return t=Ext.getDom(t),t.innerHTML=e(n),r?Ext.get(t.firstChild):t.firstChild},createHtml:e}}(),Ext.Element.addMethods(function(){var t=Ext.getDom,e=Ext.get,n=Ext.DomHelper;return{appendChild:function(t){return e(t).appendTo(this)},appendTo:function(e){return t(e).appendChild(this.dom),this},insertBefore:function(e){return(e=t(e)).parentNode.insertBefore(this.dom,e),this},insertAfter:function(e){return(e=t(e)).parentNode.insertBefore(this.dom,e.nextSibling),this},insertFirst:function(n,r){return n=n||{},n.nodeType||n.dom||"string"==typeof n?(n=t(n),this.dom.insertBefore(n,this.dom.firstChild),r?n:e(n)):this.createChild(n,this.dom.firstChild,r)},replace:function(t){return t=e(t),this.insertBefore(t),t.remove(),this},replaceWith:function(e){var r=this;return e.nodeType||e.dom||"string"==typeof e?(e=t(e),
r.dom.parentNode.insertBefore(e,r.dom)):e=n.insertBefore(r.dom,e),delete Ext.elCache[r.id],Ext.removeNode(r.dom),r.id=Ext.id(r.dom=e),Ext.Element.addToCache(r.isFlyweight?new Ext.Element(r.dom):r),r},createChild:function(t,e,r){return t=t||{tag:"div"},e?n.insertBefore(e,t,!0!==r):n[this.dom.firstChild?"append":"overwrite"](this.dom,t,!0!==r)},wrap:function(t,e){var r=n.insertBefore(this.dom,t||{tag:"div"},!e);return r.dom?r.dom.appendChild(this.dom):r.appendChild(this.dom),r},insertHtml:function(t,e,r){var i=n.insertHtml(t,this.dom,e);return r?Ext.get(i):i}}}()),function(t,e){function n(t){return!!(""===t||t&&t.charCodeAt&&t.substr)}function r(t){return d?d(t):"[object Array]"===h.call(t)}function i(t){return t&&"[object Object]"===h.call(t)}function a(t,e){var n;t=t||{},e=e||{};for(n in e)e.hasOwnProperty(n)&&null==t[n]&&(t[n]=e[n]);return t}function o(t,e,n){var r,i,a=[];if(!t)return a;if(c&&t.map===c)return t.map(e,n);for(r=0,i=t.length;r3?g.length%3:0;return h+(y?g.substr(0,y)+c.thousand:"")+g.substr(y).replace(/(\d{3})(?=\d)/g,"$1"+c.thousand)+(d?c.decimal+p(Math.abs(t),d).split(".")[1]:"")},g=u.formatMoney=function(t,e,n,c,d,h){if(r(t))return o(t,function(t){return g(t,e,n,c,d,h)});t=f(t);var p=a(i(e)?e:{symbol:e,precision:n,thousand:c,decimal:d,format:h},u.settings.currency),y=l(p.format);return(t>0?y.pos:t<0?y.neg:y.zero).replace("%s",p.symbol).replace("%v",m(Math.abs(t),s(p.precision),p.thousand,p.decimal))};u.formatColumn=function(t,e,c,d,h,p){if(!t)return[];var g=a(i(e)?e:{symbol:e,precision:c,thousand:d,decimal:h,format:p},u.settings.currency),y=l(g.format),v=y.pos.indexOf("%s")0?y.pos:t<0?y.neg:y.zero,i=n.replace("%s",g.symbol).replace("%v",m(Math.abs(t),s(g.precision),g.thousand,g.decimal));return i.length>_&&(_=i.length),i}),function(t,e){return n(t)&&t.length<_?v?t.replace(g.symbol,g.symbol+new Array(_-t.length+1).join(" ")):new Array(_-t.length+1).join(" ")+t:t})},"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=u),exports.accounting=u):(u.noConflict=function(e){return function(){return t.accounting=e,u.noConflict=void 0,u}}(t.accounting),t.accounting=u)}(this),function(t,e,n){var r={is_ie:/(msie|trident)/i.test(navigator.userAgent),is_safari:/safari/i.test(navigator.userAgent),env:"production",xml_decl:'',namespace:'xmlns:d="defiant-namespace"',tabsize:4,render:function(t,e){var n,r,i,a,o=new XSLTProcessor,s=document.createElement("span"),l={match:"/"};switch(typeof t){case"object":this.extend(l,t),l.data||(l.data=e);break;case"string":l.template=t,l.data=e;break;default:throw"error"}if(l.data=JSON.toXML(l.data),n='//xsl:template[@name="'+l.template+'"]',this.xsl_template||this.gatherTemplates(),l.sorter&&(a=this.node.selectSingleNode(this.xsl_template,n+"//xsl:for-each//xsl:sort"))&&(l.sorter.order&&a.setAttribute("order",l.sorter.order),l.sorter.select&&a.setAttribute("select",l.sorter.select),a.setAttribute("data-type",l.sorter.type||"text")),i=this.node.selectSingleNode(this.xsl_template,n),i.setAttribute("match",l.match),o.importStylesheet(this.xsl_template),s.appendChild(o.transformToFragment(l.data,document)),i.removeAttribute("match"),this.is_safari){r=s.getElementsByTagName("script");for(var u=0,c=r.length;u"+e.replace(/defiant:(\w+)/g,"$1")+"")},getSnapshot:function(t,e){return JSON.toXML(t,e||!0)},xmlFromString:function(t){var e,n;return t=t.replace(/>\s{1,}<"),null===t.trim().match(/<\?xml/)&&(t=this.xml_decl+t),"undefined"!=typeof ActiveXObject?(n=new ActiveXObject("Msxml2.DOMDocument"),n.loadXML(t),-1===t.indexOf("xsl:stylesheet")&&n.setProperty("SelectionLanguage","XPath")):(e=new DOMParser,n=e.parseFromString(t,"text/xml")),n},extend:function(t,e){for(var n in e)t[n]&&"object"==typeof e[n]?this.extend(t[n],e[n]):t[n]=e[n];return t},node:{}};t.Defiant=e.exports=r}("undefined"!=typeof window?window:{},"undefined"!=typeof module?module:{}),void 0===XSLTProcessor){var XSLTProcessor=function(){};XSLTProcessor.prototype={importStylesheet:function(t){this.xsldoc=t},transformToFragment:function(t,e){var n=t.transformNode(this.xsldoc),r=document.createElement("span");return r.innerHTML=n,r}}}else if("function"!=typeof XSLTProcessor&&!XSLTProcessor)throw"XSLTProcessor transformNode not implemented";String.prototype.fill||(String.prototype.fill=function(t,e){var n=this;for(e=e||" ";n.length/,rx_constructor:/<(.+?)( d:contr=".*?")>/,rx_namespace:/ xmlns\:d="defiant\-namespace"/,rx_data:/(<.+?>)(.*?)(<\/d:data>)/i,rx_function:/function (\w+)/i,namespace:'xmlns:d="defiant-namespace"',to_xml_str:function(t){return{str:this.hash_to_xml(null,t),map:this.map}},hash_to_xml:function(t,e,n){var r,i,a,o,s,l,u,c,d,h=e.constructor===Array,f=this,p=[],m=[],g=function(e,r){if(i=r[e],null!==i&&void 0!==i&&"NaN"!==i.toString()||(i=null),o="@"===e.slice(0,1),s=n?t:e,s==+s&&r.constructor!==Object&&(s="d:item"),null===i?(l=null,u=!1):(l=i.constructor,u=l.toString().match(f.rx_function)[1]),o)m.push(s.slice(1)+'="'+f.escape_xml(i)+'"'),"String"!==u&&m.push("d:"+s.slice(1)+'="'+u+'"');else if(null===i)p.push(f.scalar_to_xml(s,i));else switch(l){case Function:throw"JSON data should not contain functions. Please check your structure.";case Object:p.push(f.hash_to_xml(s,i));break;case Array:if(e===s){if(a=i.constructor===Array)for(c=i.length;c--;)null!==i[c]&&i[c]&&i[c].constructor!==Array||(a=!0),a||i[c].constructor!==Object||(a=!0);p.push(f.scalar_to_xml(s,i,a));break}case String:if("string"==typeof i&&(i=i.toString().replace(/\&/g,"&").replace(/\r|\n/g,"
")),"#text"===s){f.map.push(r),m.push('d:mi="'+f.map.length+'"'),m.push('d:constr="'+u+'"'),p.push(f.escape_xml(i));break}case Number:case Boolean:if("#text"===s&&"String"!==u){f.map.push(r),m.push('d:mi="'+f.map.length+'"'),m.push('d:constr="'+u+'"'),p.push(f.escape_xml(i));break}p.push(f.scalar_to_xml(s,i))}};if(e.constructor===Array)for(c=0,d=e.length;c"+p.join("")+""+t+">":"/>"))},scalar_to_xml:function(t,e,n){var r,i,a,o="";if(null===t.match(this.rx_validate_name)&&(o+=' d:name="'+t+'"',t="d:name",n=!1),null!==e&&"NaN"!==e.toString()||(e=null),null===e)return"<"+t+' d:constr="null"/>';if(1===e.length&&e.constructor===Array&&!e[0])return"<"+t+' d:constr="null" d:type="ArrayItem"/>';if(1===e.length&&e[0].constructor===Object){r=this.hash_to_xml(!1,e[0]);var s=r.match(this.rx_node),l=r.match(this.rx_constructor);return s=null!==s?s[2].replace(this.rx_namespace,"").replace(/>/,"").replace(/"\/$/,'"'):"",l=null!==l?l[2]:"",r=r.match(this.rx_data),r=null!==r?r[2]:"","<"+t+s+" "+l+' d:type="ArrayItem">'+r+""+t+">"}return 0===e.length&&e.constructor===Array?"<"+t+' d:constr="Array"/>':n?this.hash_to_xml(t,e,!0):(i=e.constructor,a=i.toString().match(this.rx_function)[1],r=i===Array?this.hash_to_xml("d:item",e,!0):this.escape_xml(e),o+=' d:constr="'+a+'"',this.map.push(e),o+=' d:mi="'+this.map.length+'"',"#text"===t?this.escape_xml(e):"<"+t+o+">"+r+""+t+">")},escape_xml:function(t){return String(t).replace(//g,">").replace(/"/g,""").replace(/ /g," ")}};switch(typeof e){case"function":return i=x10.compile(a),void i.to_xml_str(t,function(n){e({doc:Defiant.xmlFromString(n.str),src:t,map:n.map})});case"boolean":return n=a.to_xml_str.call(a,t),{doc:Defiant.xmlFromString(n.str),src:t,map:n.map};default:return n=a.to_xml_str.call(a,t),r=Defiant.xmlFromString(n.str),this.search.map=n.map,r}}),JSON.search||(JSON.search=function(t,e,n){"use strict";var r,i,a=t.doc&&t.doc.nodeType,o=a?t.doc:JSON.toXML(t),s=a?t.map:this.search.map,l=a?t.src:t,u=Defiant.node[n?"selectSingleNode":"selectNodes"](o,e.xTransform()),c=[];for(n&&(u=[u]),i=u.length;i--;)switch(u[i].nodeType){case 2:case 3:c.unshift(u[i].nodeValue);break;default:r=+u[i].getAttribute("d:mi"),c.unshift(s[r-1])}return"development"===Defiant.env&&(this.trace=JSON.mtrace(l,c,u)),c}),JSON.mtrace||(JSON.mtrace=function(t,e,n){"use strict";for(var r,i,a,o,s,l=window,u=JSON.stringify,c=u(t,null,"\t").replace(/\t/g,""),d=[],h=0,f=n.length,p=!!f&&n[h].ownerDocument.documentElement,m=(this.search.map,0);h0?n[0]:null}return t.selectSingleNode(e)},Defiant.node.prettyPrint=function(t){var e,n,r=Defiant,i=r.tabsize,a=r.xml_decl.toLowerCase();r.is_ie?n=t.xml:(e=new XMLSerializer,n=e.serializeToString(t)),"development"!==r.env&&(n=n.replace(/ \w+\:d=".*?"| d\:\w+=".*?"/g,""));for(var o,s,l=n.trim().replace(/(>)\s*(<)(\/*)/g,"$1\n$2$3"),u=l.split("\n"),c=-1,d=0,h=u.length;d/g),s=null!==u[d].match(/<\/[\w\:]+>/g),null!==u[d].match(/<.*?\/>/g)&&(o=s=!0),o&&c++,u[d]=String().fill(c,"\t")+u[d],o&&s&&c--,!o&&s&&c--);return u.join("\n").replace(/\t/g,String().fill(i," "))},Defiant.node.toJSON=function(t,e){"use strict";var n=function(t){var e,r,i,a,o,s,l,u,c,d,h={},f=window;switch(t.nodeType){case 1:for(o=t.getAttribute("d:constr"),"Array"===o?h=[]:"String"===o&&""===t.textContent&&(h=""),e=t.attributes,u=0,c=e.length;u0)for(n in sr)r=sr[n],i=e[r],d(i)||(t[r]=i);return t}function f(e){h(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===lr&&(lr=!0,t.updateOffset(this),lr=!1)}function p(t){return t instanceof f||null!=t&&null!=t._isAMomentObject}function m(t){return t<0?Math.ceil(t):Math.floor(t)}function g(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=m(e)),n}function y(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;r0;){if(r=T(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&y(i,n,!0)>=e-1)break;e--}a++}return null}function T(t){var e=null;if(!fr[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=dr._abbr,require("./locale/"+t),M(e)}catch(t){}return fr[t]}function M(t,e){var n;return t&&(n=d(e)?A(t):L(t,e))&&(dr=n),dr._abbr}function L(t,e){return null!==e?(e.abbr=t,null!=fr[t]?(b("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),e=S(fr[t]._config,e)):null!=e.parentLocale&&(null!=fr[e.parentLocale]?e=S(fr[e.parentLocale]._config,e):b("parentLocaleUndefined","specified parentLocale is not defined yet")),fr[t]=new k(e),M(t),fr[t]):(delete fr[t],null)}function O(t,e){if(null!=e){var n;null!=fr[t]&&(e=S(fr[t]._config,e)),n=new k(e),n.parentLocale=fr[t],fr[t]=n,M(t)}else null!=fr[t]&&(null!=fr[t].parentLocale?fr[t]=fr[t].parentLocale:null!=fr[t]&&delete fr[t]);return fr[t]}function A(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return dr;if(!e(t)){if(n=T(t))return n;t=[t]}return C(t)}function P(){return cr(fr)}function R(t,e){var n=t.toLowerCase();pr[n]=pr[n+"s"]=pr[e]=t}function I(t){return"string"==typeof t?pr[t]||pr[t.toLowerCase()]:void 0}function N(t){var e,n,r={};for(n in t)i(t,n)&&(e=I(n))&&(r[e]=t[n]);return r}function j(e,n){return function(r){return null!=r?(Y(this,e,r),t.updateOffset(this,n),this):F(this,e)}}function F(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Y(t,e,n){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](n)}function V(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=I(t),x(this[t]))return this[t](e);return this}function W(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function H(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(vr[t]=i),e&&(vr[e[0]]=function(){return W(i.apply(this,arguments),e[1],e[2])}),n&&(vr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function U(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function z(t){var e,n,r=t.match(mr);for(e=0,n=r.length;e=0&&gr.test(t);)t=t.replace(gr,n),gr.lastIndex=0,r-=1;return t}function q(t,e,n){Nr[t]=x(e)?e:function(t,r){return t&&n?n:e}}function $(t,e){return i(Nr,t)?Nr[t](e._strict,e._locale):new RegExp(X(t))}function X(t){return K(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}function K(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function J(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(r=function(t,n){n[e]=g(t)}),n=0;n11?Yr:n[Vr]<1||n[Vr]>tt(n[Fr],n[Yr])?Vr:n[Wr]<0||n[Wr]>24||24===n[Wr]&&(0!==n[Hr]||0!==n[Ur]||0!==n[zr])?Wr:n[Hr]<0||n[Hr]>59?Hr:n[Ur]<0||n[Ur]>59?Ur:n[zr]<0||n[zr]>999?zr:-1,l(t)._overflowDayOfYear&&(eVr)&&(e=Vr),l(t)._overflowWeeks&&-1===e&&(e=Br),l(t)._overflowWeekday&&-1===e&&(e=Gr),l(t).overflow=e),t}function ht(t){var e,n,r,i,a,o,s=t._i,u=Qr.exec(s)||Zr.exec(s);if(u){for(l(t).iso=!0,e=0,n=ei.length;e=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function mt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function gt(t){return yt(t)?366:365}function yt(t){return t%4==0&&t%100!=0||t%400==0}function vt(){return yt(this.year())}function _t(t,e,n){var r=7+e-n;return-(7+mt(t,0,r).getUTCDay()-e)%7+r-1}function bt(t,e,n,r,i){var a,o,s=(7+n-r)%7,l=_t(t,r,i),u=1+7*(e-1)+s+l;return u<=0?(a=t-1,o=gt(a)+u):u>gt(t)?(a=t+1,o=u-gt(t)):(a=t,o=u),{year:a,dayOfYear:o}}function xt(t,e,n){var r,i,a=_t(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?(i=t.year()-1,r=o+Et(i,e,n)):o>Et(t.year(),e,n)?(r=o-Et(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function Et(t,e,n){var r=_t(t,e,n),i=_t(t+1,e,n);return(gt(t)-r+i)/7}function wt(t,e,n){return null!=t?t:null!=e?e:n}function St(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function kt(t){var e,n,r,i,a=[];if(!t._d){for(r=St(t),t._w&&null==t._a[Vr]&&null==t._a[Yr]&&Dt(t),t._dayOfYear&&(i=wt(t._a[Fr],r[Fr]),t._dayOfYear>gt(i)&&(l(t)._overflowDayOfYear=!0),n=mt(i,0,t._dayOfYear),t._a[Yr]=n.getUTCMonth(),t._a[Vr]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Wr]&&0===t._a[Hr]&&0===t._a[Ur]&&0===t._a[zr]&&(t._nextDay=!0,t._a[Wr]=0),t._d=(t._useUTC?mt:pt).apply(null,a),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Wr]=24)}}function Dt(t){var e,n,r,i,a,o,s,u;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(a=1,o=4,n=wt(e.GG,t._a[Fr],xt(It(),1,4).year),r=wt(e.W,1),((i=wt(e.E,1))<1||i>7)&&(u=!0)):(a=t._locale._week.dow,o=t._locale._week.doy,n=wt(e.gg,t._a[Fr],xt(It(),a,o).year),r=wt(e.w,1),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+a,(e.e<0||e.e>6)&&(u=!0)):i=a),r<1||r>Et(n,a,o)?l(t)._overflowWeeks=!0:null!=u?l(t)._overflowWeekday=!0:(s=bt(n,r,i,a,o),t._a[Fr]=s.year,t._dayOfYear=s.dayOfYear)}function Ct(e){if(e._f===t.ISO_8601)return void ht(e);e._a=[],l(e).empty=!0;var n,r,i,a,o,s=""+e._i,u=s.length,c=0;for(i=G(e._f,e._locale).match(mr)||[],n=0;n0&&l(e).unusedInput.push(o),s=s.slice(s.indexOf(r)+r.length),c+=r.length),vr[a]?(r?l(e).empty=!1:l(e).unusedTokens.push(a),Z(a,r,e)):e._strict&&!r&&l(e).unusedTokens.push(a);l(e).charsLeftOver=u-c,s.length>0&&l(e).unusedInput.push(s),!0===l(e).bigHour&&e._a[Wr]<=12&&e._a[Wr]>0&&(l(e).bigHour=void 0),l(e).parsedDateParts=e._a.slice(0),l(e).meridiem=e._meridiem,e._a[Wr]=Tt(e._locale,e._a[Wr],e._meridiem),kt(e),dt(e)}function Tt(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(r=t.isPM(n),r&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function Mt(t){var e,n,r,i,o;if(0===t._f.length)return l(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Qt(){if(!d(this._isDSTShifted))return this._isDSTShifted;var t={};if(h(t,this),t=At(t),t._a){var e=t._isUTC?o(t._a):It(t._a);this._isDSTShifted=this.isValid()&&y(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Zt(){return!!this.isValid()&&!this._isUTC}function te(){return!!this.isValid()&&this._isUTC}function ee(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function ne(t,e){var n,r,a,o=t,s=null;return Vt(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(s=ui.exec(t))?(n="-"===s[1]?-1:1,o={y:0,d:g(s[Vr])*n,h:g(s[Wr])*n,m:g(s[Hr])*n,s:g(s[Ur])*n,ms:g(s[zr])*n}):(s=ci.exec(t))?(n="-"===s[1]?-1:1,o={y:re(s[2],n),M:re(s[3],n),w:re(s[4],n),d:re(s[5],n),h:re(s[6],n),m:re(s[7],n),s:re(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(a=ae(It(o.from),It(o.to)),o={},o.ms=a.milliseconds,o.M=a.months),r=new Yt(o),Vt(t)&&i(t,"_locale")&&(r._locale=t._locale),r}function re(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function ie(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function ae(t,e){var n;return t.isValid()&&e.isValid()?(e=Ut(e,t),t.isBefore(e)?n=ie(t,e):(n=ie(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function oe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function se(t,e){return function(n,r){var i,a;return null===r||isNaN(+r)||(b(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),a=n,n=r,r=a),n="string"==typeof n?+n:n,i=ne(n,r),le(this,i,t),this}}function le(e,n,r,i){var a=n._milliseconds,o=oe(n._days),s=oe(n._months);e.isValid()&&(i=null==i||i,a&&e._d.setTime(e._d.valueOf()+a*r),o&&Y(e,"Date",F(e,"Date")+o*r),s&&at(e,F(e,"Month")+s*r),i&&t.updateOffset(e,o||s))}function ue(t,e){var n=t||It(),r=Ut(n,this).startOf("day"),i=this.diff(r,"days",!0),a=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse",o=e&&(x(e[a])?e[a]():e[a]);return this.format(o||this.localeData().calendar(a,this,It(n)))}function ce(){return new f(this)}function de(t,e){var n=p(t)?t:It(t);return!(!this.isValid()||!n.isValid())&&(e=I(d(e)?"millisecond":e),"millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()a&&(e=a),Ge.call(this,t,e,n,r,i))}function Ge(t,e,n,r,i){var a=bt(t,e,n,r,i),o=mt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function qe(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function $e(t){return xt(t,this._week.dow,this._week.doy).week}function Xe(){return this._week.dow}function Ke(){return this._week.doy}function Je(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Qe(t){var e=xt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ze(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function tn(t,n){return e(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(n)?"format":"standalone"][t.day()]}function en(t){return this._weekdaysShort[t.day()]}function nn(t){return this._weekdaysMin[t.day()]}function rn(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=o([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?(i=hr.call(this._weekdaysParse,s),-1!==i?i:null):"ddd"===e?(i=hr.call(this._shortWeekdaysParse,s),-1!==i?i:null):(i=hr.call(this._minWeekdaysParse,s),-1!==i?i:null):"dddd"===e?-1!==(i=hr.call(this._weekdaysParse,s))?i:-1!==(i=hr.call(this._shortWeekdaysParse,s))?i:(i=hr.call(this._minWeekdaysParse,s),-1!==i?i:null):"ddd"===e?-1!==(i=hr.call(this._shortWeekdaysParse,s))?i:-1!==(i=hr.call(this._weekdaysParse,s))?i:(i=hr.call(this._minWeekdaysParse,s),-1!==i?i:null):-1!==(i=hr.call(this._minWeekdaysParse,s))?i:-1!==(i=hr.call(this._weekdaysParse,s))?i:(i=hr.call(this._shortWeekdaysParse,s),-1!==i?i:null)}function an(t,e,n){var r,i,a;if(this._weekdaysParseExact)return rn.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=o([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function on(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ze(t,this.localeData()),this.add(t-e,"d")):e}function sn(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function ln(t){return this.isValid()?null==t?this.day()||7:this.day(this.day()%7?t:t-7):null!=t?this:NaN}function un(t){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||hn.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex}function cn(t){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||hn.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}function dn(t){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||hn.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}function hn(){function t(t,e){return e.length-t.length}var e,n,r,i,a,s=[],l=[],u=[],c=[];for(e=0;e<7;e++)n=o([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),s.push(r),l.push(i),u.push(a),c.push(r),c.push(i),c.push(a);for(s.sort(t),l.sort(t),u.sort(t),c.sort(t),e=0;e<7;e++)l[e]=K(l[e]),u[e]=K(u[e]),c[e]=K(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function fn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function pn(){return this.hours()%12||12}function mn(){return this.hours()||24}function gn(t,e){H(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function yn(t,e){return e._meridiemParse}function vn(t){return"p"===(t+"").toLowerCase().charAt(0)}function _n(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function bn(t,e){e[zr]=g(1e3*("0."+t))}function xn(){return this._isUTC?"UTC":""}function En(){return this._isUTC?"Coordinated Universal Time":""}function wn(t){return It(1e3*t)}function Sn(){return It.apply(null,arguments).parseZone()}function kn(t,e,n){var r=this._calendar[t];return x(r)?r.call(e,n):r}function Dn(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function Cn(){return this._invalidDate}function Tn(t){return this._ordinal.replace("%d",t)}function Mn(t){return t}function Ln(t,e,n,r){var i=this._relativeTime[n];return x(i)?i(t,e,n,r):i.replace(/%d/i,t)}function On(t,e){var n=this._relativeTime[t>0?"future":"past"];return x(n)?n(e):n.replace(/%s/i,e)}function An(t,e,n,r){var i=A(),a=o().set(r,e);return i[n](a,t)}function Pn(t,e,n){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return An(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=An(t,r,n,"month");return i}function Rn(t,e,n,r){"boolean"==typeof t?("number"==typeof e&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,"number"==typeof e&&(n=e,e=void 0),e=e||"");var i=A(),a=t?i._week.dow:0;if(null!=n)return An(e,(n+a)%7,r,"day");var o,s=[];for(o=0;o<7;o++)s[o]=An(e,(o+a)%7,r,"day");return s}function In(t,e){return Pn(t,e,"months")}function Nn(t,e){return Pn(t,e,"monthsShort")}function jn(t,e,n){return Rn(t,e,n,"weekdays")}function Fn(t,e,n){return Rn(t,e,n,"weekdaysShort")}function Yn(t,e,n){return Rn(t,e,n,"weekdaysMin")}function Vn(){var t=this._data;return this._milliseconds=Ii(this._milliseconds),this._days=Ii(this._days),this._months=Ii(this._months),t.milliseconds=Ii(t.milliseconds),t.seconds=Ii(t.seconds),t.minutes=Ii(t.minutes),t.hours=Ii(t.hours),t.months=Ii(t.months),t.years=Ii(t.years),this}function Wn(t,e,n,r){var i=ne(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Hn(t,e){return Wn(this,t,e,1)}function Un(t,e){return Wn(this,t,e,-1)}function zn(t){return t<0?Math.floor(t):Math.ceil(t)}function Bn(){var t,e,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*zn(qn(s)+o),o=0,s=0),l.milliseconds=a%1e3,t=m(a/1e3),l.seconds=t%60,e=m(t/60),l.minutes=e%60,n=m(e/60),l.hours=n%24,o+=m(n/24),i=m(Gn(o)),s+=i,o-=zn(qn(i)),r=m(s/12),s%=12,l.days=o,l.months=s,l.years=r,this}function Gn(t){return 4800*t/146097}function qn(t){return 146097*t/4800}function $n(t){var e,n,r=this._milliseconds;if("month"===(t=I(t))||"year"===t)return e=this._days+r/864e5,n=this._months+Gn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(qn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Xn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*g(this._months/12)}function Kn(t){return function(){return this.as(t)}}function Jn(t){return t=I(t),this[t+"s"]()}function Qn(t){return function(){return this._data[t]}}function Zn(){return m(this.days()/7)}function tr(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function er(t,e,n){var r=ne(t).abs(),i=Ji(r.as("s")),a=Ji(r.as("m")),o=Ji(r.as("h")),s=Ji(r.as("d")),l=Ji(r.as("M")),u=Ji(r.as("y")),c=i0,c[4]=n,tr.apply(null,c)}function nr(t,e){return void 0!==Qi[t]&&(void 0===e?Qi[t]:(Qi[t]=e,!0))}function rr(t){var e=this.localeData(),n=er(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function ir(){var t,e,n,r=Zi(this._milliseconds)/1e3,i=Zi(this._days),a=Zi(this._months);t=m(r/60),e=m(t/60),r%=60,t%=60,n=m(a/12),a%=12;var o=n,s=a,l=i,u=e,c=t,d=r,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(o?o+"Y":"")+(s?s+"M":"")+(l?l+"D":"")+(u||c||d?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(d?d+"S":""):"P0D"}var ar,or;or=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r68?1900:2e3)};var ii=j("FullYear",!0);t.ISO_8601=function(){};var ai=_("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=It.apply(null,arguments);return this.isValid()&&t.isValid()?tthis?this:t:c()}),si=function(){return Date.now?Date.now():+new Date};Wt("Z",":"),Wt("ZZ",""),q("Z",Pr),q("ZZ",Pr),J(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ht(Pr,t)});var li=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var ui=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,ci=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;ne.fn=Yt.prototype;var di=se(1,"add"),hi=se(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var fi=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ve("gggg","weekYear"),Ve("ggggg","weekYear"),Ve("GGGG","isoWeekYear"),Ve("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),q("G",Or),q("g",Or),q("GG",Sr,br),q("gg",Sr,br),q("GGGG",Tr,Er),q("gggg",Tr,Er),q("GGGGG",Mr,wr),q("ggggg",Mr,wr),Q(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=g(t)}),Q(["gg","GG"],function(e,n,r,i){n[i]=t.parseTwoDigitYear(e)}),H("Q",0,"Qo","quarter"),R("quarter","Q"),q("Q",_r),J("Q",function(t,e){e[Yr]=3*(g(t)-1)}),H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),q("w",Sr),q("ww",Sr,br),q("W",Sr),q("WW",Sr,br),Q(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=g(t)});var pi={dow:0,doy:6};H("D",["DD",2],"Do","date"),R("date","D"),q("D",Sr),q("DD",Sr,br),q("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),J(["D","DD"],Vr),J("Do",function(t,e){e[Vr]=g(t.match(Sr)[0],10)});var mi=j("Date",!0);H("d",0,"do","day"),H("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),H("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),H("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),q("d",Sr),q("e",Sr),q("E",Sr),q("dd",function(t,e){return e.weekdaysMinRegex(t)}),q("ddd",function(t,e){return e.weekdaysShortRegex(t)}),q("dddd",function(t,e){return e.weekdaysRegex(t)}),Q(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:l(n).invalidWeekday=t}),Q(["d","e","E"],function(t,e,n,r){e[r]=g(t)});var gi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),vi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),_i=Ir,bi=Ir,xi=Ir;H("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),q("DDD",Cr),q("DDDD",xr),J(["DDD","DDDD"],function(t,e,n){n._dayOfYear=g(t)}),H("H",["HH",2],0,"hour"),H("h",["hh",2],0,pn),H("k",["kk",2],0,mn),H("hmm",0,0,function(){return""+pn.apply(this)+W(this.minutes(),2)}),H("hmmss",0,0,function(){return""+pn.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),gn("a",!0),gn("A",!1),R("hour","h"),q("a",yn),q("A",yn),q("H",Sr),q("h",Sr),q("HH",Sr,br),q("hh",Sr,br),q("hmm",kr),q("hmmss",Dr),q("Hmm",kr),q("Hmmss",Dr),J(["H","HH"],Wr),J(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),J(["h","hh"],function(t,e,n){e[Wr]=g(t),l(n).bigHour=!0}),J("hmm",function(t,e,n){var r=t.length-2;e[Wr]=g(t.substr(0,r)),e[Hr]=g(t.substr(r)),l(n).bigHour=!0}),J("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[Wr]=g(t.substr(0,r)),e[Hr]=g(t.substr(r,2)),e[Ur]=g(t.substr(i)),l(n).bigHour=!0}),J("Hmm",function(t,e,n){var r=t.length-2;e[Wr]=g(t.substr(0,r)),e[Hr]=g(t.substr(r))}),J("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[Wr]=g(t.substr(0,r)),e[Hr]=g(t.substr(r,2)),e[Ur]=g(t.substr(i))});var Ei=/[ap]\.?m?\.?/i,wi=j("Hours",!0);H("m",["mm",2],0,"minute"),R("minute","m"),q("m",Sr),q("mm",Sr,br),J(["m","mm"],Hr);var Si=j("Minutes",!1);H("s",["ss",2],0,"second"),R("second","s"),q("s",Sr),q("ss",Sr,br),J(["s","ss"],Ur);var ki=j("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),q("S",Cr,_r),q("SS",Cr,br),q("SSS",Cr,xr);var Di;for(Di="SSSS";Di.length<=9;Di+="S")q(Di,Lr);for(Di="S";Di.length<=9;Di+="S")J(Di,bn);var Ci=j("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var Ti=f.prototype;Ti.add=di,Ti.calendar=ue,Ti.clone=ce,Ti.diff=ye,Ti.endOf=Me,Ti.format=xe,Ti.from=Ee,Ti.fromNow=we,Ti.to=Se,Ti.toNow=ke,Ti.get=V,Ti.invalidAt=Fe,Ti.isAfter=de,Ti.isBefore=he,Ti.isBetween=fe,Ti.isSame=pe,Ti.isSameOrAfter=me,Ti.isSameOrBefore=ge,Ti.isValid=Ne,Ti.lang=fi,Ti.locale=De,Ti.localeData=Ce,Ti.max=oi,Ti.min=ai,Ti.parsingFlags=je,Ti.set=V,Ti.startOf=Te,Ti.subtract=hi,Ti.toArray=Pe,Ti.toObject=Re,Ti.toDate=Ae,Ti.toISOString=be,Ti.toJSON=Ie,Ti.toString=_e,Ti.unix=Oe,Ti.valueOf=Le,Ti.creationData=Ye,Ti.year=ii,Ti.isLeapYear=vt,Ti.weekYear=We,Ti.isoWeekYear=He,Ti.quarter=Ti.quarters=qe,Ti.month=ot,Ti.daysInMonth=st,Ti.week=Ti.weeks=Je,Ti.isoWeek=Ti.isoWeeks=Qe,Ti.weeksInYear=ze,Ti.isoWeeksInYear=Ue,Ti.date=mi,Ti.day=Ti.days=on,Ti.weekday=sn,Ti.isoWeekday=ln,Ti.dayOfYear=fn,Ti.hour=Ti.hours=wi,Ti.minute=Ti.minutes=Si,Ti.second=Ti.seconds=ki,Ti.millisecond=Ti.milliseconds=Ci,Ti.utcOffset=Bt,Ti.utc=qt,Ti.local=$t,Ti.parseZone=Xt,Ti.hasAlignedHourOffset=Kt,Ti.isDST=Jt,Ti.isDSTShifted=Qt,Ti.isLocal=Zt,Ti.isUtcOffset=te,Ti.isUtc=ee,Ti.isUTC=ee,Ti.zoneAbbr=xn,Ti.zoneName=En,Ti.dates=_("dates accessor is deprecated. Use date instead.",mi),Ti.months=_("months accessor is deprecated. Use month instead",ot),Ti.years=_("years accessor is deprecated. Use year instead",ii),Ti.zone=_("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Gt);var Mi=Ti,Li={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Oi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ai=/\d{1,2}/,Pi={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ri=k.prototype;Ri._calendar=Li,Ri.calendar=kn,Ri._longDateFormat=Oi,Ri.longDateFormat=Dn,Ri._invalidDate="Invalid date",Ri.invalidDate=Cn,Ri._ordinal="%d",Ri.ordinal=Tn,Ri._ordinalParse=Ai,Ri.preparse=Mn,Ri.postformat=Mn,Ri._relativeTime=Pi,Ri.relativeTime=Ln,Ri.pastFuture=On,Ri.set=w,Ri.months=et,Ri._months=$r,Ri.monthsShort=nt,Ri._monthsShort=Xr,Ri.monthsParse=it,Ri._monthsRegex=Jr,Ri.monthsRegex=ut,Ri._monthsShortRegex=Kr,Ri.monthsShortRegex=lt,Ri.week=$e,Ri._week=pi,Ri.firstDayOfYear=Ke,Ri.firstDayOfWeek=Xe,Ri.weekdays=tn,Ri._weekdays=gi,Ri.weekdaysMin=nn,Ri._weekdaysMin=vi,Ri.weekdaysShort=en,Ri._weekdaysShort=yi,Ri.weekdaysParse=an,Ri._weekdaysRegex=_i,Ri.weekdaysRegex=un,Ri._weekdaysShortRegex=bi,Ri.weekdaysShortRegex=cn,Ri._weekdaysMinRegex=xi,Ri.weekdaysMinRegex=dn,Ri.isPM=vn,Ri._meridiemParse=Ei,Ri.meridiem=_n,M("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===g(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=_("moment.lang is deprecated. Use moment.locale instead.",M),t.langData=_("moment.langData is deprecated. Use moment.localeData instead.",A);var Ii=Math.abs,Ni=Kn("ms"),ji=Kn("s"),Fi=Kn("m"),Yi=Kn("h"),Vi=Kn("d"),Wi=Kn("w"),Hi=Kn("M"),Ui=Kn("y"),zi=Qn("milliseconds"),Bi=Qn("seconds"),Gi=Qn("minutes"),qi=Qn("hours"),$i=Qn("days"),Xi=Qn("months"),Ki=Qn("years"),Ji=Math.round,Qi={s:45,m:45,h:22,d:26,M:11},Zi=Math.abs,ta=Yt.prototype;return ta.abs=Vn,ta.add=Hn,ta.subtract=Un,ta.as=$n,ta.asMilliseconds=Ni,ta.asSeconds=ji,ta.asMinutes=Fi,ta.asHours=Yi,ta.asDays=Vi,ta.asWeeks=Wi,ta.asMonths=Hi,ta.asYears=Ui,ta.valueOf=Xn,ta._bubble=Bn,ta.get=Jn,ta.milliseconds=zi,ta.seconds=Bi,ta.minutes=Gi,ta.hours=qi,ta.days=$i,ta.weeks=Zn,ta.months=Xi,ta.years=Ki,ta.humanize=rr,ta.toISOString=ir,ta.toString=ir,ta.toJSON=ir,ta.locale=De,ta.localeData=Ce,ta.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ir),ta.lang=fi,H("X",0,0,"unix"),H("x",0,0,"valueOf"),q("x",Or),q("X",Rr),J("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),J("x",function(t,e,n){n._d=new Date(g(t))}),t.version="2.13.0",function(t){ar=t}(It),t.fn=Mi,t.min=jt,t.max=Ft,t.now=si,t.utc=o,t.unix=wn,t.months=In,t.isDate=n,t.locale=M,t.invalid=c,t.duration=ne,t.isMoment=p,t.weekdays=jn,t.parseZone=Sn,t.localeData=A,t.isDuration=Vt,t.monthsShort=Nn,t.weekdaysMin=Yn,t.defineLocale=L,t.updateLocale=O,t.locales=P,t.weekdaysShort=Fn,t.normalizeUnits=I,t.relativeTimeThreshold=nr,t.prototype=Mi,t}),function(t){function e(t,r){if(t=t||"",r=r||{},t instanceof e)return t;if(!(this instanceof e))return new e(t,r);var i=n(t);this._originalInput=t,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=V(100*this._a)/100,this._format=r.format||i.format,this._gradientType=r.gradientType,this._r<1&&(this._r=V(this._r)),this._g<1&&(this._g=V(this._g)),this._b<1&&(this._b=V(this._b)),this._ok=i.ok,this._tc_id=Y++}function n(t){var e={r:0,g:0,b:0},n=1,i=null,o=null,l=null,u=!1,c=!1;return"string"==typeof t&&(t=I(t)),"object"==typeof t&&(R(t.r)&&R(t.g)&&R(t.b)?(e=r(t.r,t.g,t.b),u=!0,c="%"===String(t.r).substr(-1)?"prgb":"rgb"):R(t.h)&&R(t.s)&&R(t.v)?(i=O(t.s),o=O(t.v),e=s(t.h,i,o),u=!0,c="hsv"):R(t.h)&&R(t.s)&&R(t.l)&&(i=O(t.s),l=O(t.l),e=a(t.h,i,l),u=!0,c="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=S(n),{ok:u,format:t.format||c,r:W(255,H(e.r,0)),g:W(255,H(e.g,0)),b:W(255,H(e.b,0)),a:n}}function r(t,e,n){return{r:255*k(t,255),g:255*k(e,255),b:255*k(n,255)}}function i(t,e,n){t=k(t,255),e=k(e,255),n=k(n,255);var r,i,a=H(t,e,n),o=W(t,e,n),s=(a+o)/2;if(a==o)r=i=0;else{var l=a-o;switch(i=s>.5?l/(2-a-o):l/(a+o),a){case t:r=(e-n)/l+(e1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var i,a,o;if(t=k(t,360),e=k(e,100),n=k(n,100),0===e)i=a=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;i=r(l,s,t+1/3),a=r(l,s,t),o=r(l,s,t-1/3)}return{r:255*i,g:255*a,b:255*o}}function o(t,e,n){t=k(t,255),e=k(e,255),n=k(n,255);var r,i,a=H(t,e,n),o=W(t,e,n),s=a,l=a-o;if(i=0===a?0:l/a,a==o)r=0;else{switch(a){case t:r=(e-n)/l+(e>1)+720)%360;--n;)i.h=(i.h+a)%360,o.push(e(i));return o}function w(t,n){n=n||6;for(var r=e(t).toHsv(),i=r.h,a=r.s,o=r.v,s=[],l=1/n;n--;)s.push(e({h:i,s:a,v:o})),o=(o+l)%1;return s}function S(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function k(e,n){T(e)&&(e="100%");var r=M(e);return e=W(n,H(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),t.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function D(t){return W(1,H(0,t))}function C(t){return parseInt(t,16)}function T(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)}function M(t){return"string"==typeof t&&-1!=t.indexOf("%")}function L(t){return 1==t.length?"0"+t:""+t}function O(t){return t<=1&&(t=100*t+"%"),t}function A(e){return t.round(255*parseFloat(e)).toString(16)}function P(t){return C(t)/255}function R(t){return!!G.CSS_UNIT.exec(t)}function I(t){t=t.replace(j,"").replace(F,"").toLowerCase();var e=!1;if(z[t])t=z[t],e=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=G.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=G.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=G.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=G.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=G.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=G.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=G.hex8.exec(t))?{r:C(n[1]),g:C(n[2]),b:C(n[3]),a:P(n[4]),format:e?"name":"hex8"}:(n=G.hex6.exec(t))?{r:C(n[1]),g:C(n[2]),b:C(n[3]),format:e?"name":"hex"}:(n=G.hex4.exec(t))?{r:C(n[1]+""+n[1]),g:C(n[2]+""+n[2]),b:C(n[3]+""+n[3]),a:P(n[4]+""+n[4]),format:e?"name":"hex8"}:!!(n=G.hex3.exec(t))&&{r:C(n[1]+""+n[1]),g:C(n[2]+""+n[2]),b:C(n[3]+""+n[3]),format:e?"name":"hex"}}function N(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:e,size:n}}var j=/^\s+/,F=/\s+$/,Y=0,V=t.round,W=t.min,H=t.max,U=t.random;e.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,n,r,i,a,o,s=this.toRgb();return e=s.r/255,n=s.g/255,r=s.b/255,i=e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4),a=n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4),o=r<=.03928?r/12.92:t.pow((r+.055)/1.055,2.4),.2126*i+.7152*a+.0722*o},setAlpha:function(t){return this._a=S(t),this._roundA=V(100*this._a)/100,this},toHsv:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=o(this._r,this._g,this._b),e=V(360*t.h),n=V(100*t.s),r=V(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=i(this._r,this._g,this._b),e=V(360*t.h),n=V(100*t.s),r=V(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return l(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return u(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:V(this._r),g:V(this._g),b:V(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+V(this._r)+", "+V(this._g)+", "+V(this._b)+")":"rgba("+V(this._r)+", "+V(this._g)+", "+V(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:V(100*k(this._r,255))+"%",g:V(100*k(this._g,255))+"%",b:V(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+V(100*k(this._r,255))+"%, "+V(100*k(this._g,255))+"%, "+V(100*k(this._b,255))+"%)":"rgba("+V(100*k(this._r,255))+"%, "+V(100*k(this._g,255))+"%, "+V(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(B[l(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var n="#"+c(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=e(t);r="#"+c(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return e(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(p,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(w,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(b,arguments)}},e.fromRatio=function(t,n){if("object"==typeof t){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]="a"===i?t[i]:O(t[i]));t=r}return e(t,n)},e.equals=function(t,n){return!(!t||!n)&&e(t).toRgbString()==e(n).toRgbString()},e.random=function(){return e.fromRatio({r:U(),g:U(),b:U()})},e.mix=function(t,n,r){r=0===r?0:r||50;var i=e(t).toRgb(),a=e(n).toRgb(),o=r/100;return e({r:(a.r-i.r)*o+i.r,g:(a.g-i.g)*o+i.g,b:(a.b-i.b)*o+i.b,a:(a.a-i.a)*o+i.a})},e.readability=function(n,r){var i=e(n),a=e(r);return(t.max(i.getLuminance(),a.getLuminance())+.05)/(t.min(i.getLuminance(),a.getLuminance())+.05)},e.isReadable=function(t,n,r){var i,a,o=e.readability(t,n);switch(a=!1,i=N(r),i.level+i.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},e.mostReadable=function(t,n,r){var i,a,o,s,l=null,u=0;r=r||{},a=r.includeFallbackColors,o=r.level,s=r.size;for(var c=0;cu&&(u=i,l=e(n[c]));return e.isReadable(t,l,{level:o,size:s})||!a?l:(r.includeFallbackColors=!1,e.mostReadable(t,["#fff","#000"],r))};var z=e.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",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:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=e.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(z),G=function(){var t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+e),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();"undefined"!=typeof module&&module.exports?module.exports=e:"function"==typeof define&&define.amd?define(function(){return e}):window.tinycolor=e}(Math),function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&"undefined"!=typeof exports?module.exports=e():t.Papa=e()}(this,function(){"use strict";function t(t,e){e=e||{};var n=e.dynamicTyping||!1;if(g(n)&&(e.dynamicTypingFunction=n,n={}),e.dynamicTyping=n,e.worker&&S.WORKERS_SUPPORTED){var s=u();return s.userStep=e.step,s.userChunk=e.chunk,s.userComplete=e.complete,s.userError=e.error,e.step=g(e.step),e.chunk=g(e.chunk),e.complete=g(e.complete),e.error=g(e.error),delete e.worker,void s.postMessage({input:t,config:e,workerId:s.id})}var l=null;return"string"==typeof t?l=e.download?new r(e):new a(e):!0===t.readable&&g(t.read)&&g(t.on)?l=new o(e):(v.File&&t instanceof File||t instanceof Object)&&(l=new i(e)),l.stream(t)}function e(t,e){function n(t){if("object"!=typeof t)return[];var e=[];for(var n in t)e.push(n);return e}function r(t,e){var n="";"string"==typeof t&&(t=JSON.parse(t)),"string"==typeof e&&(e=JSON.parse(e));var r=t instanceof Array&&t.length>0,a=!(e[0]instanceof Array);if(r&&s){for(var o=0;o0&&(n+=l),n+=i(t[o],o);e.length>0&&(n+=u)}for(var c=0;c0&&(n+=l);var f=r&&a?t[h]:h;n+=i(e[c][f],h)}c-1||" "===t.charAt(0)||" "===t.charAt(t.length-1)?c+t+c:t)}function a(t,e){for(var n=0;n-1)return!0;return!1}var o=!1,s=!0,l=",",u="\r\n",c='"';!function(){"object"==typeof e&&("string"==typeof e.delimiter&&1===e.delimiter.length&&-1===S.BAD_DELIMITERS.indexOf(e.delimiter)&&(l=e.delimiter),("boolean"==typeof e.quotes||e.quotes instanceof Array)&&(o=e.quotes),"string"==typeof e.newline&&(u=e.newline),"string"==typeof e.quoteChar&&(c=e.quoteChar),"boolean"==typeof e.header&&(s=e.header))}();var d=new RegExp(c,"g");if("string"==typeof t&&(t=JSON.parse(t)),t instanceof Array){if(!t.length||t[0]instanceof Array)return r(null,t);if("object"==typeof t[0])return r(n(t[0]),t)}else if("object"==typeof t)return"string"==typeof t.data&&(t.data=JSON.parse(t.data)),t.data instanceof Array&&(t.fields||(t.fields=t.meta&&t.meta.fields),t.fields||(t.fields=t.data[0]instanceof Array?t.fields:n(t.data[0])),t.data[0]instanceof Array||"object"==typeof t.data[0]||(t.data=[t.data])),r(t.fields||[],t.data||[]);throw"exception: Unable to serialize unrecognized input"}function n(t){function e(t){var e=p(t);e.chunkSize=parseInt(e.chunkSize),t.step||t.chunk||(e.chunkSize=null),this._handle=new s(e),this._handle.streamer=this,this._config=e}this._handle=null,this._paused=!1,this._finished=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},e.call(this,t),this.parseChunk=function(t){if(this.isFirstChunk&&g(this._config.beforeFirstChunk)){var e=this._config.beforeFirstChunk(t);void 0!==e&&(t=e)}this.isFirstChunk=!1;var n=this._partialLine+t;this._partialLine="";var r=this._handle.parse(n,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var i=r.meta.cursor;this._finished||(this._partialLine=n.substring(i-this._baseIndex),this._baseIndex=i),r&&r.data&&(this._rowCount+=r.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(b)v.postMessage({results:r,workerId:S.WORKER_ID,finished:a});else if(g(this._config.chunk)){if(this._config.chunk(r,this._handle),this._paused)return;r=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),!a||!g(this._config.complete)||r&&r.meta.aborted||this._config.complete(this._completeResults,this._input),a||r&&r.meta.paused||this._nextChunk(),r}},this._sendError=function(t){g(this._config.error)?this._config.error(t):b&&this._config.error&&v.postMessage({workerId:S.WORKER_ID,error:t,finished:!1})}}function r(t){function e(t){var e=t.getResponseHeader("Content-Range");return null===e?-1:parseInt(e.substr(e.lastIndexOf("/")+1))}t=t||{},t.chunkSize||(t.chunkSize=S.RemoteChunkSize),n.call(this,t);var r;this._nextChunk=_?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(t){this._input=t,this._nextChunk()},this._readChunk=function(){if(this._finished)return void this._chunkLoaded();if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),_||(r.onload=m(this._chunkLoaded,this),r.onerror=m(this._chunkError,this)),r.open("GET",this._input,!_),this._config.downloadRequestHeaders){var t=this._config.downloadRequestHeaders;for(var e in t)r.setRequestHeader(e,t[e])}if(this._config.chunkSize){var n=this._start+this._config.chunkSize-1;r.setRequestHeader("Range","bytes="+this._start+"-"+n),r.setRequestHeader("If-None-Match","webkit-no-cache")}try{r.send()}catch(t){this._chunkError(t.message)}_&&0===r.status?this._chunkError():this._start+=this._config.chunkSize},this._chunkLoaded=function(){if(4==r.readyState){if(r.status<200||r.status>=400)return void this._chunkError();this._finished=!this._config.chunkSize||this._start>e(r),this.parseChunk(r.responseText)}},this._chunkError=function(t){var e=r.statusText||t;this._sendError(e)}}function i(t){t=t||{},t.chunkSize||(t.chunkSize=S.LocalChunkSize),n.call(this,t);var e,r,i="undefined"!=typeof FileReader;this.stream=function(t){this._input=t,r=t.slice||t.webkitSlice||t.mozSlice,i?(e=new FileReader,e.onload=m(this._chunkLoaded,this),e.onerror=m(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(t.target.result)},this._chunkError=function(){this._sendError(e.error.message)}}function a(t){t=t||{},n.call(this,t);var e,r;this.stream=function(t){return e=t,r=t,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var t=this._config.chunkSize,e=t?r.substr(0,t):r;return r=t?r.substr(t):"",this._finished=!r,this.parseChunk(e)}}}function o(t){t=t||{},n.call(this,t);var e=[],r=!0;this.stream=function(t){this._input=t,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._nextChunk=function(){e.length?this.parseChunk(e.shift()):r=!0},this._streamData=m(function(t){try{e.push("string"==typeof t?t:t.toString(this._config.encoding)),r&&(r=!1,this.parseChunk(e.shift()))}catch(t){this._streamError(t)}},this),this._streamError=m(function(t){this._streamCleanUp(),this._sendError(t.message)},this),this._streamEnd=m(function(){this._streamCleanUp(),this._finished=!0,this._streamData("")},this),this._streamCleanUp=m(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function s(t){function e(){if(w&&m&&(d("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+S.DefaultDelimiter+"'"),m=!1),t.skipEmptyLines)for(var e=0;e=E.length?"__parsed_extra":E[r]),o=a(i,o),"__parsed_extra"===i?(n[i]=n[i]||[],n[i].push(o)):n[i]=o}w.data[e]=n,t.header&&(r>E.length?d("FieldMismatch","TooManyFields","Too many fields: expected "+E.length+" fields but parsed "+r,e):r1&&(d+=Math.abs(g-o),o=g):o=g}p.data.length>0&&(h/=p.data.length-f),(void 0===a||d1.99&&(a=d,i=c)}return t.delimiter=i,{successful:!!i,bestDelimiter:i}}function u(t){t=t.substr(0,1048576);var e=t.split("\r"),n=t.split("\n"),r=n.length>1&&n[0].length=e.length/2?"\r\n":"\r"}function c(t){return y.test(t)?parseFloat(t):t}function d(t,e,n,r){w.errors.push({type:t,code:e,message:n,row:r})}var h,f,m,y=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,v=this,_=0,b=!1,x=!1,E=[],w={data:[],errors:[],meta:{}};if(g(t.step)){var k=t.step;t.step=function(r){if(w=r,n())e();else{if(e(),0===w.data.length)return;_+=r.data.length,t.preview&&_>t.preview?f.abort():k(w,v)}}}this.parse=function(n,r,i){if(t.newline||(t.newline=u(n)),m=!1,t.delimiter)g(t.delimiter)&&(t.delimiter=t.delimiter(n),w.meta.delimiter=t.delimiter);else{var a=s(n,t.newline,t.skipEmptyLines);a.successful?t.delimiter=a.bestDelimiter:(m=!0,t.delimiter=S.DefaultDelimiter),w.meta.delimiter=t.delimiter}var o=p(t);return t.preview&&t.header&&o.preview++,h=n,f=new l(o),w=f.parse(h,r,i),e(),b?{meta:{paused:!0}}:w||{meta:{paused:!1}}},this.paused=function(){return b},this.pause=function(){b=!0,f.abort(),h=h.substr(f.getCharIndex())},this.resume=function(){b=!1,v.streamer.parseChunk(h)},this.aborted=function(){return x},this.abort=function(){x=!0,f.abort(),w.meta.aborted=!0,g(t.complete)&&t.complete(w),h=""}}function l(t){t=t||{};var e=t.delimiter,n=t.newline,r=t.comments,i=t.step,a=t.preview,o=t.fastMode,s=t.quoteChar||'"';if(("string"!=typeof e||S.BAD_DELIMITERS.indexOf(e)>-1)&&(e=","),r===e)throw"Comment character same as delimiter";!0===r?r="#":("string"!=typeof r||S.BAD_DELIMITERS.indexOf(r)>-1)&&(r=!1),"\n"!=n&&"\r"!=n&&"\r\n"!=n&&(n="\n");var l=0,u=!1;this.parse=function(t,c,d){function h(t){w.push(t),D=l}function f(e){return d?m():(void 0===e&&(e=t.substr(l)),k.push(e),l=v,h(k),E&&y(),m())}function p(e){l=e,h(k),k=[],L=t.indexOf(n,l)}function m(t){return{data:w,errors:S,meta:{delimiter:e,linebreak:n,aborted:u,truncated:!!t,cursor:D+(c||0)}}}function y(){i(m()),w=[],S=[]}if("string"!=typeof t)throw"Input must be a string";var v=t.length,_=e.length,b=n.length,x=r.length,E=g(i);l=0;var w=[],S=[],k=[],D=0;if(!t)return m();if(o||!1!==o&&-1===t.indexOf(s)){for(var C=t.split(n),T=0;T=a)return w=w.slice(0,a),m(!0)}}return m()}for(var M=t.indexOf(e,l),L=t.indexOf(n,l),O=new RegExp(s+s,"g");;)if(t[l]!==s)if(r&&0===k.length&&t.substr(l,x)===r){if(-1===L)return m();l=L+b,L=t.indexOf(n,l),M=t.indexOf(e,l)}else if(-1!==M&&(M=a)return m(!0)}else{var A=l;for(l++;;){var A=t.indexOf(s,A+1);if(-1===A)return d||S.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:l}),f();if(A===v-1){var P=t.substring(l,A).replace(O,s);return f(P)}if(t[A+1]!==s){if(t[A+1]===e){k.push(t.substring(l,A).replace(O,s)),l=A+1+_,M=t.indexOf(e,l),L=t.indexOf(n,l);break}if(t.substr(A+1,b)===n){if(k.push(t.substring(l,A).replace(O,s)),p(A+1+b),M=t.indexOf(e,l),E&&(y(),u))return m();if(a&&w.length>=a)return m(!0);break}S.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:w.length,index:l}),A++}else A++}}return f()},this.abort=function(){u=!0},this.getCharIndex=function(){return l}}function u(){if(!S.WORKERS_SUPPORTED)return!1;if(!x&&null===S.SCRIPT_PATH)throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");var t=S.SCRIPT_PATH||y;t+=(-1!==t.indexOf("?")?"&":"?")+"papaworker";var e=new v.Worker(t);return e.onmessage=c,e.id=w++,E[e.id]=e,e}function c(t){var e=t.data,n=E[e.workerId],r=!1;if(e.error)n.userError(e.error,e.file);else if(e.results&&e.results.data){var i=function(){r=!0,d(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},a={abort:i,pause:h,resume:h};if(g(n.userStep)){for(var o=0;oAxmTYklsjo190QW ',r=function(){this.fontFamily="",this.appended=!1,this.serif=void 0,this.sansSerif=void 0,this.parent=void 0,this.options={}};return r.prototype.getMeasurements=function(){return{sansSerif:{width:this.sansSerif.offsetWidth,height:this.sansSerif.offsetHeight},serif:{width:this.serif.offsetWidth,height:this.serif.offsetHeight}}},r.prototype.load=function(){function t(t){return e.concat(["font-weight:"+h.weight,"font-style:"+h.style]).concat("font-family:"+t).join(";")}function r(t,e,n){return Math.abs(t.width-e.offsetWidth)>n||Math.abs(t.height-e.offsetHeight)>n}function i(){return(new Date).getTime()-o.getTime()>h.timeout}var a,o=new Date,s=this,l=s.serif,u=s.sansSerif,c=s.parent,d=s.appended,h=s.options,f=h.reference,p=n.replace(/\%s/,t("sans-serif")),m=n.replace(/\%s/,t("serif"));c||(c=s.parent=h.window.document.createElement("div")),c.innerHTML=p+m,u=s.sansSerif=c.firstChild,l=s.serif=u.nextSibling,h.glyphs&&(u.innerHTML+=h.glyphs,l.innerHTML+=h.glyphs),function t(){f||(f=h.window.document.body),!d&&f&&(f.appendChild(c),d=s.appended=!0,a=s.getMeasurements(),u.style.fontFamily=s.fontFamily+", sans-serif",l.style.fontFamily=s.fontFamily+", serif"),d&&a&&(r(a.sansSerif,u,h.tolerance)||r(a.serif,l,h.tolerance))?h.success():i()?h.error():!d&&"requestAnimationFrame"in h.window?h.window.requestAnimationFrame(t):h.window.setTimeout(t,h.delay)}()},r.prototype.cleanFamilyName=function(t){return t.replace(/[\'\"]/g,"").toLowerCase()},r.prototype.cleanWeight=function(t){return""+({normal:"400",bold:"700"}[t]||t)},r.prototype.checkFontFaces=function(t){var e=this;e.options.window.document.fonts.forEach(function(n){e.cleanFamilyName(n.family)===e.cleanFamilyName(e.fontFamily)&&e.cleanWeight(n.weight)===e.cleanWeight(e.options.weight)&&n.style===e.options.style&&n.load().then(function(){e.options.success(n),e.options.window.clearTimeout(t)})})},r.prototype.init=function(e,n){var r;for(var i in t)n.hasOwnProperty(i)||(n[i]=t[i]);this.options=n,this.fontFamily=e,!n.glyphs&&"fonts"in n.window.document?(n.timeout&&(r=n.window.setTimeout(function(){n.error()},n.timeout)),this.checkFontFaces(r)):this.load()},function(t,e){var n=new r;return n.init(t,e),n}}),Ext.define("Datamatic.renderer.echarts.ECharts3",{defaultPadding:[0,0,0,0],defaultWidth:500,defaultHeight:500,requires:["Datamatic.renderer.echarts.ECharts3Themes","Datamatic.renderer.echarts.ECharts3GeneralProperties","Datamatic.renderer.echarts.ECharts3ThemeProperties","Datamatic.renderer.echarts.EChartsCustomProperties","Datamatic.renderer.echarts.EChartsNewProperties","Datamatic.renderer.echarts.EChartsFormatters","Datamatic.renderer.echarts.EChartsDataSources"],constructor:function(){this._generalProperties=new Datamatic.renderer.echarts.ECharts3GeneralProperties(this),
this._customProperties=new Datamatic.renderer.echarts.EChartsCustomProperties(this),this._newProperties=new Datamatic.renderer.echarts.EChartsNewProperties(this),this._themeProperties=new Datamatic.renderer.echarts.ECharts3ThemeProperties(this),this._formatters=new Datamatic.renderer.echarts.EChartsFormatters(this),this._dataSources=new Datamatic.renderer.echarts.EChartsDataSources(this),this._componentHandler=new Datamatic.renderer.echarts.components.ComponentHandler,this._observable=new Ext.util.Observable,this._observable.addEvents(["click","action"]),this._editing=!1},dispatchAction:function(t){this._observable.fireEvent("action",t)},on:function(){return this._observable.on.apply(this._observable,arguments)},setEditing:function(t){this._editing=t},_handleEditingOptions:function(t){t&&t.series&&t.series.forEach(function(t){t.roam&&(t.roam=!1)}),t.geo&&(t.geo.roam=!1)},getProperties:function(t){var e=this._themeProperties.getProperties().concat(this._generalProperties.getProperties());return t&&(e=e.concat(this._customProperties.getProperties(t)).concat(this._newProperties.getProperties(t)).concat(this._formatters.getProperties(t)).concat(this._dataSources.getDataSources(t))),e},getProperty:function(t,e){return this._customProperties.getProperty(t,e)},createProperty:function(t){return this._newProperties.createProperty(t)},createFormatter:function(t,e){return this._formatters.createFormatter(t,e)},createDataSource:function(t,e){return this._dataSources.createDataSource(t,e)},setSettings:function(t){return this._settings=t},getSettings:function(){return this._settings},getTheme:function(){return this._theme},getThemeColor:function(t){if(this._theme)return this._theme.color[t]},getStyleSheet:function(){return""},updatePosition:function(){$("#visualization-ct").css("top",this._settings.top+"px"),$("#visualization-ct").css("left",this._settings.left+"px")},getSize:function(){var t=this._settings;return[t.height-(t["padding-top"]+t["padding-bottom"]),t.width-(t["padding-left"]+t["padding-right"])]},setData:function(t){this._data=t},getDataContext:function(){return new Datamatic.renderer.echarts.data.DataContext(this._data)},getData:function(t){if(!this._data)return[];var e,n=t;return"string"==typeof t?e=[].slice.call(arguments,1):(e=[].slice.call(arguments,0),n=null),this._queryData(n,this._data.children,e)},_queryData:function(t,e,n){if(n.length>0)for(var r=0;r