var raygunFactory,raygunRumFactory,raygunJsUrlFactory;(function(n){function u(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function f(n){return typeof n=="undefined"}var t={},e=n.TraceKit,r=[].slice,i="?";t.noConflict=function(){return n.TraceKit=e,t};t.wrap=function(n){function i(){try{return n.apply(this,arguments)}catch(i){t.report(i);throw i;}}return i};t.report=function(){function l(n){y();f.push(n)}function a(n){for(var t=f.length-1;t>=0;--t)f[t]===n&&f.splice(t,1)}function o(n,i){var e=null,o;if(!i||t.collectWindowErrors){for(o in f)if(u(f,o))try{f[o].apply(null,[n].concat(r.call(arguments,2)))}catch(s){e=s}if(e)throw e;}}function v(n,r,u,f,h){var l=null,c;return(h?l=t.computeStackTrace(h):i?(t.computeStackTrace.augmentStackTraceWithInitialElement(i,r,u,n),l=i,i=null,e=null):(c={url:r,line:u,column:f},c.func=t.computeStackTrace.guessFunctionName(c.url,c.line),c.context=t.computeStackTrace.gatherContext(c.url,c.line),l={mode:"onerror",message:n,url:document.location.href,stack:[c],useragent:navigator.userAgent}),o(l,"from window.onerror"),s)?s.apply(this,arguments):!1}function y(){c!==!0&&(s=n.onerror,n.onerror=v,c=!0)}function h(u){var s=r.call(arguments,1),h,f;if(i){if(e===u)return;h=i;i=null;e=null;o.apply(null,[h,null].concat(s))}f=t.computeStackTrace(u);i=f;e=u;n.setTimeout(function(){e===u&&(i=null,e=null,o.apply(null,[f,null].concat(s)))},f.incomplete?2e3:0);throw u;}var f=[],e=null,i=null,s,c;return h.subscribe=l,h.unsubscribe=a,h}();t.computeStackTrace=function(){function b(i){if(typeof i!="string")return[];if(!t.remoteFetching)return"";try{var u=function(){try{return new n.XMLHttpRequest}catch(t){return new n.ActiveXObject("Microsoft.XMLHTTP")}},r=u();return r.open("GET",i,!1),r.send(""),r.responseText}catch(f){return""}}function o(n){if(!u(a,n)){var t="";n=n||"";n.indexOf&&n.indexOf(document.domain)!==-1&&(t=b(n));a[n]=t?t.split("\n"):[]}return a[n]}function e(n,t){var r="",s=o(n),e,u;if(!s.length)return i;for(u=0;u<10;++u)if(r=s[t-u]+r,!f(r)&&((e=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/.exec(r))||(e=/function ([^(]*)\(([^)]*)\)/.exec(r))))return e[1];return i}function s(n,i){var u=o(n),r;if(!u.length)return null;var e=[],s=Math.floor(t.linesOfContext/2),h=s+t.linesOfContext%2,c=Math.max(0,i-s-1),l=Math.min(u.length,i+h-1);for(i-=1,r=c;r<l;++r)f(u[r])||e.push(u[r]);return e.length>0?e:null}function c(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function y(n){return c(n).replace("<","(?:<|&lt;)").replace(">","(?:>|&gt;)").replace("&","(?:&|&amp;)").replace('"','(?:"|&quot;)').replace(/\s+/g,"\\s+")}function l(n,t){for(var i,r,u=0,f=t.length;u<f;++u)if((i=o(t[u])).length&&(i=i.join("\n"),r=n.exec(i)))return{url:t[u],line:i.substring(0,r.index).split("\n").length,column:r.index-i.lastIndexOf("\n",r.index)-1};return null}function v(n,t,i){var r=o(t),f=new RegExp("\\b"+c(n)+"\\b"),u;return(i-=1,r&&r.length>i&&(u=f.exec(r[i])))?u.index:null}function k(t){for(var h,v,p,w,e=[n.location.href],a=document.getElementsByTagName("script"),u,o=""+t,r,i,f,s=0;s<a.length;++s)h=a[s],h.src&&e.push(h.src);return((i=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(o))?(v=i[1]?"\\s+"+i[1]:"",p=i[2].split(",").join("\\s*,\\s*"),u=c(i[3]).replace(/;$/,";?"),r=new RegExp("function"+v+"\\s*\\(\\s*"+p+"\\s*\\)\\s*{\\s*"+u+"\\s*}")):r=new RegExp(c(o).replace(/\s+/g,"\\s+")),f=l(r,e))?f:(i=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(o))&&((w=i[1],u=y(i[2]),r=new RegExp("on"+w+"=[\\'\"]\\s*"+u+"\\s*[\\'\"]","i"),f=l(r,e[0]))||(r=new RegExp(u),f=l(r,e)))?f:null}function d(n){var f,c;if(!n.stack)return null;var o=n.stack.split("\n"),u=[],t,r,h=/^(.*) is undefined$/.exec(n.message);for(f=0,c=o.length;f<c;++f){if(t=/^\s*(.*?)(?:\((.*?)\))?@?((?:file|http|https|chrome):.*?):(\d+)(?::(\d+))?\s*$/i.exec(o[f]))r={url:t[3],func:t[1]||i,args:t[2]?t[2].split(","):"",line:+t[4],column:t[5]?+t[5]:null};else if(t=/^\s*at (.*?) ?\(?((?:file|http|https|chrome-extension):.*?):(\d+)(?::(\d+))?\)?\s*$/i.exec(o[f]))r={url:t[2],func:t[1]||i,line:+t[3],column:t[4]?+t[4]:null};else if(t=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i.exec(o[f]))r={url:t[2],func:t[1]||i,line:+t[3],column:t[4]?+t[4]:null};else continue;!r.func&&r.line&&(r.func=e(r.url,r.line));r.line&&(r.context=s(r.url,r.line));u.push(r)}return(u[0]&&u[0].line&&!u[0].column&&h?u[0].column=v(h[1],u[0].url,u[0].line):u[0].column||typeof n.columnNumber=="undefined"||(u[0].column=n.columnNumber+1),!u.length)?null:{mode:"stack",name:n.name,message:n.message,url:document.location.href,stack:u,useragent:navigator.userAgent}}function g(n){for(var t,u=n.stacktrace,f=u!==null?u.split("\n"):u,o=[],i,r=0,h=f.length;r<h;r+=2)if(i=/ line (\d+), column (\d+) in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\) in (.*):\s*$/i.exec(f[r])){if(t={line:+i[1],column:+i[2],func:i[3]||i[4],args:i[5]?i[5].split(","):[],url:i[6]},!t.func&&t.line&&(t.func=e(t.url,t.line)),t.line)try{t.context=s(t.url,t.line)}catch(c){}t.context||(t.context=[f[r+1]]);o.push(t)}return o.length?{mode:"stacktrace",name:n.name,message:n.message,url:document.location.href,stack:o,useragent:navigator.userAgent}:null}function nt(t){var h=t.message.split("\n"),i,g,w,b,a,tt;if(h.length<4)return null;var p=[],v=document.getElementsByTagName("script"),k=[],f,r,d,c;for(r in v)u(v,r)&&!v[r].src&&k.push(v[r]);for(r=2,d=h.length;r<d;r+=2){if(i=null,f=/^\s*Line (\d+) of linked script ((?:file|http|https)\S+)(?:: in function (\S+))?\s*$/i.exec(h[r]))i={url:f[2],func:f[3],line:+f[1]};else if(f=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|http|https)\S+)(?:: in function (\S+))?\s*$/i.exec(h[r]))i={url:f[3],func:f[4]},g=+f[1],w=k[f[2]-1],w&&(c=o(i.url),c&&(c=c.join("\n"),b=c.indexOf(w.innerText),b>=0&&(i.line=g+c.substring(0,b).split("\n").length)));else if(f=/^\s*Line (\d+) of function script\s*$/i.exec(h[r])){var nt=n.location.href.replace(/#.*$/,""),it=f[1],rt=new RegExp(y(h[r+1]));c=l(rt,[nt]);i={url:nt,line:c?c.line:it,func:""}}i&&(i.func||(i.func=e(i.url,i.line)),a=s(i.url,i.line),tt=a?a[Math.floor(a.length/2)]:null,i.context=a&&tt.replace(/^\s*/,"")===h[r+1].replace(/^\s*/,"")?a:[h[r+1]],p.push(i))}return p.length?{mode:"multiline",name:t.name,message:h[0],url:document.location.href,stack:p,useragent:navigator.userAgent}:null}function p(n,t,i,r){var u={url:t,line:i},f;if(u.url&&u.line){if(n.incomplete=!1,u.func||(u.func=e(u.url,u.line)),u.context||(u.context=s(u.url,u.line)),f=/ '([^']+)' /.exec(r),f&&(u.column=v(f[1],u.url,u.line)),n.stack.length>0&&n.stack[0].url===u.url){if(n.stack[0].line===u.line)return!1;if(!n.stack[0].line&&n.stack[0].func===u.func)return n.stack[0].line=u.line,n.stack[0].context=u.context,!1}return n.stack.unshift(u),n.partial=!0,!0}return n.incomplete=!0,!1}function w(n,u){for(var l,a,c=[],y={},b=!1,h,f,s,o=w.caller;o&&!b;o=o.caller)if(o!==r&&o!==t.report){if(f={url:null,func:i,line:null,column:null},o.name?f.func=o.name:(h=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i.exec(o.toString()))&&(f.func=h[1]),typeof f.func=="undefined")try{f.func=h.input.substring(0,h.input.indexOf("{"))}catch(d){}(s=k(o))&&(f.url=s.url,f.line=s.line,f.func===i&&(f.func=e(f.url,f.line)),l=/ '([^']+)' /.exec(n.message||n.description),l&&(f.column=v(l[1],s.url,s.line)));y[""+o]?b=!0:y[""+o]=!0;c.push(f)}return u&&c.splice(0,u),a={mode:"callers",name:n.name,message:n.message,url:document.location.href,stack:c,useragent:navigator.userAgent},p(a,n.sourceURL||n.fileName,n.line||n.lineNumber,n.message||n.description),a}function r(n,t){var i=null;t=t==null?0:+t;try{if(i=g(n),i)return i}catch(r){if(h)throw r;}try{if(i=d(n),i)return i}catch(r){if(h)throw r;}try{if(i=nt(n),i)return i}catch(r){if(h)throw r;}try{if(i=w(n,t+1),i)return i}catch(r){if(h)throw r;}return{mode:"failed"}}function tt(n){n=(n==null?0:+n)+1;try{throw new Error;}catch(t){return r(t,n+1)}}var h=!1,a={};return r.augmentStackTraceWithInitialElement=p,r.guessFunctionName=e,r.gatherContext=s,r.ofCaller=tt,r}();t.extendToAsynchronousCallbacks=function(){var i=function(i){var u=n[i];n[i]=function(){var n=r.call(arguments),i=n[0];return typeof i=="function"&&(n[0]=t.wrap(i)),u.apply?u.apply(this,n):u(n[0],n[1])}};i("setTimeout");i("setInterval")};t.remoteFetching||(t.remoteFetching=!0);t.collectWindowErrors||(t.collectWindowErrors=!0);(!t.linesOfContext||t.linesOfContext<1)&&(t.linesOfContext=11);n.TraceKit=t})(window),function(n,t){"use strict";var i,u,r;n&&n.event&&n.event.add&&(i=n.event.add,n.event.add=function(r,u,f,e,o){typeof f!="function"&&typeof f.handler!="function"&&i.call(this,r,u,f,e,o);var s;return f.handler?(s=f.handler,f.handler=t.wrap(f.handler)):(s=f,f=t.wrap(f)),f.guid=s.guid?s.guid:s.guid=n.guid++,i.call(this,r,u,f,e,o)},u=n.fn.ready,n.fn.ready=function(n){return u.call(this,t.wrap(n))},r=n.ajax,n.ajax=function(i,u){typeof i=="object"&&(u=i,i=undefined);u=u||{};for(var o=["complete","error","success"],f;f=o.pop();)n.isFunction(u[f])&&(u[f]=t.wrap(u[f]));try{return i?r.call(this,i,u):r.call(this,u)}catch(e){t.report(e);throw e;}})}(window.jQuery,window.TraceKit);raygunFactory=function(n,t,i){function ui(n){var t=n,i=n.split("//")[1];if(i){var e=i.indexOf("?"),r=i.toString().substring(0,e),u=r.split("/").slice(0,4).join("/"),f=r.substring(0,48);t=u.length<f.length?u:f;t!==r&&(t+="..")}return t}function pt(n,t,u,f){var e="AJAX Error: "+(t.statusText||"unknown")+" "+(u.type||"unknown")+" "+(ui(u.url)||"unknown");(!ht||t.getAllResponseHeaders())&&r.send(f||n.type,{status:t.status,statusText:t.statusText,type:u.type,url:u.url,ajaxErrorMessage:e,contentType:u.contentType,requestData:u.data&&u.data.slice?u.data.slice(0,10240):i,responseData:t.responseText&&t.responseText.slice?t.responseText.slice(0,10240):i,activeTarget:n.target&&n.target.activeElement&&n.target.activeElement.outerHTML&&n.target.activeElement.outerHTML.slice?n.target.activeElement.outerHTML.slice(0,10240):i})}function wt(){return l&&l!==""?!0:(u.log("Raygun API key has not been configured, make sure you call Raygun.init(yourApiKey)"),!1)}function bt(n,t){var i,r={};for(i in n)r[i]=n[i];for(i in t)r[i]=t[i];return r}function fi(n,t){return t!=null?n.concat(t):n}function kt(n,t){for(var i=0;i<n.length;i++)t.call(null,i,n[i])}function dt(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function ei(){return Math.floor(Math.random()*9007199254740992)}function w(){var t=document.documentElement,i=document.getElementsByTagName("body")[0],r=n.innerWidth||t.clientWidth||i.clientWidth,u=n.innerHeight||t.clientHeight||i.clientHeight;return{width:r,height:u}}function gt(n,t){var r=(new Date).toJSON(),i;try{i="raygunjs="+r+"="+ei();typeof localStorage[i]=="undefined"&&(localStorage[i]=JSON.stringify({url:n,data:t}))}catch(f){u.log("Raygun4JS: LocalStorage full, cannot save exception")}}function oi(){try{return"localStorage"in n&&n.localStorage!==null}catch(t){return!1}}function it(){var n,t;if(oi()&&localStorage&&localStorage.length>0)for(n in localStorage)if(n.substring(0,9)==="raygunjs=")try{t=JSON.parse(localStorage[n]);et(t.url,t.data);localStorage.removeItem(n)}catch(i){u.log("Raygun4JS: Unable to send saved error")}}function si(){if(!f&&!at){var t="raygun4js-userid",i=u.readCookie(t),n;i?n=i:(n=u.getUuid(),u.createCookie(t,n,744));r.setUser(n,!0,null,null,null,n)}}function rt(n,t){if(o)for(var i=0;i<o.length;i++)if(typeof o[i]=="object"&&typeof o[i].exec=="function"){if(o[i].exec(n)!==null)return"[removed by filter]"}else if(o[i]===n)return"[removed by filter]";return t}function ut(n,t){var u,i,r;if(n==null||Object.prototype.toString.call(n)!=="[object Object]")return n;u={};for(i in n)(r=n[i],r!=null)&&(Object.prototype.toString.call(r)==="[object Object]"?(t!=="Details"||i!=="Client")&&(u[i]=ut(rt(i,r),i)):Object.prototype.toString.call(r)!=="[object Function]"&&(typeof t!="undefined"||i!=="OccurredOn")&&(u[i]=rt(i,r)));return u}function ft(t,r){var ot=[],st={},b,ct,k,it,ft,h,at,c,s,l,o,et;if(lt){if(!t.stack||!t.stack.length){u.log("Raygun4JS: Cancelling send due to null stacktrace");return}var ht=u.parseUrl("domain"),p="Script error",s=t.message||r.status||p;if(s.substring(0,p.length)===p&&t.stack[0].url!==null&&t.stack[0].url.indexOf(ht)===-1&&(t.stack[0].line===0||t.stack[0].func==="?")){u.log("Raygun4JS: cancelling send due to third-party script error with no stacktrace and message");return}if(t.stack[0].url!==null&&t.stack[0].url.indexOf(ht)===-1){b=!1;for(ct in g)t.stack[0].url.indexOf(g[ct])>-1&&(b=!0);if(!b){u.log("Raygun4JS: cancelling send due to error on non-origin, non-whitelisted domain");return}}}if(v instanceof Array)for(k in v)if(v.hasOwnProperty(k)&&n.location.hostname&&n.location.hostname.match(v[k])){u.log("Raygun4JS: cancelling send as error originates from an excluded hostname");return}if(y instanceof Array)for(it in y)if(y.hasOwnProperty(it)&&navigator.userAgent.match(y[it])){u.log("Raygun4JS: cancelling send as error originates from an excluded user agent");return}t.stack&&t.stack.length&&kt(t.stack,function(n,t){ot.push({LineNumber:t.line,ColumnNumber:t.column,ClassName:"line "+t.line+", column "+t.column,FileName:t.url,MethodName:t.func||"[anonymous]"})});ft=u.parseUrl("?");ft.length>0&&kt(ft.split("&"),function(n,t){var i=t.split("="),r,u;i&&i.length===2&&(r=decodeURIComponent(i[0]),u=rt(r,i[1]),st[r]=u)});r===i&&(r={});dt(r.customData)&&(r.customData=typeof e=="function"?e():e);dt(r.tags)&&(r.tags=typeof a=="function"?a():a);h=n.screen||{width:w().width,height:w().height,colorDepth:8};at=r.customData&&r.customData.ajaxErrorMessage;c=tt==="customData"?ut(r.customData,"UserCustomData"):r.customData;try{JSON.stringify(c)}catch(vt){s="Cannot add custom data; may contain circular reference";c={error:s};u.log("Raygun4JS: "+s)}l=at||t.message||r.status||"Script error";l=l.substring(0,512);o={OccurredOn:new Date,Details:{Error:{ClassName:t.name,Message:l,StackTrace:ot},Environment:{UtcOffset:(new Date).getTimezoneOffset()/-60,"User-Language":navigator.userLanguage,"Document-Mode":document.documentMode,"Browser-Width":w().width,"Browser-Height":w().height,"Screen-Width":h.width,"Screen-Height":h.height,"Color-Depth":h.colorDepth,Browser:navigator.appCodeName,"Browser-Name":navigator.appName,"Browser-Version":navigator.appVersion,Platform:navigator.platform},Client:{Name:"raygun-js",Version:"2.0.3"},UserCustomData:c,Tags:r.tags,Request:{Url:[location.protocol,"//",location.host,location.pathname,location.hash].join(""),QueryString:st,Headers:{"User-Agent":navigator.userAgent,Referer:document.referrer,Host:document.domain}},Version:d||"Not supplied"}};o.Details.User=f;tt==="all"&&(o=ut(o));typeof nt=="function"?(et=nt(o),et&&ni(et)):ni(o)}function ni(n){if(wt()){u.log("Sending exception data to Raygun:",n);var t=p+"/entries?apikey="+encodeURIComponent(l);et(t,JSON.stringify(n))}}function hi(t,i){var r;return r=new n.XMLHttpRequest,"withCredentials"in r?r.open(t,i,!0):n.XDomainRequest&&(st&&(i=i.slice(6)),r=new n.XDomainRequest,r.open(t,i)),r.timeout=1e4,r}function et(t,i){var r=hi("POST",t,i);if("withCredentials"in r?(r.onreadystatechange=function(){r.readyState===4&&(r.status===202?it():b&&r.status!==403&&r.status!==400&&r.status!==429&&gt(t,i))},r.onload=function(){u.log("posted to Raygun")}):n.XDomainRequest&&(r.ontimeout=function(){b&&(u.log("Raygun: saved locally"),gt(t,i))},r.onload=function(){u.log("posted to Raygun");it()}),r.onerror=function(){u.log("failed to post to Raygun")},!r){u.log("CORS not supported");return}r.send(i)}var c=TraceKit,ti=n.Raygun,l,ot=!1,st=!1,ht=!1,ct=!1,b=!1,lt=!1,at=!1,k=!1,vt=!0,yt=!1,e={},a=[],f,d,o,g=[],nt,p="https://api.raygun.io",v=null,y=null,tt="customData",s=null,h,r={noConflict:function(){return n.Raygun=ti,r},constructNewRaygun:function(){var t=n.raygunFactory(n,n.jQuery);return n.raygunJsUrlFactory(n,t),t},init:function(u,o,a){if(l=u,c.remoteFetching=!1,typeof a!="undefined"&&(e=a),t&&(h=t(document)),o&&(st=o.allowInsecureSubmissions||!1,ht=o.ignoreAjaxAbort||!1,ct=o.ignoreAjaxError||!1,at=o.disableAnonymousUserTracking||!1,k=o.disableErrorTracking||!1,vt=o.disablePulse===i?!0:o.disablePulse,v=o.excludedHostnames||!1,y=o.excludedUserAgents||!1,o.apiUrl&&(p=o.apiUrl),typeof o.wrapAsynchronousCallbacks!="undefined"&&(yt=o.wrapAsynchronousCallbacks),o.debugMode&&(ot=o.debugMode),o.ignore3rdPartyErrors&&(lt=!0),o.apiEndpoint&&(p=o.apiEndpoint)),si(),r.RealUserMonitoring!==i&&!vt){var w=function(){s=new r.RealUserMonitoring(l,p,et,f,d);s.attach()};o&&o.from==="onLoad"?w():n.addEventListener?n.addEventListener("load",w):n.attachEvent("onload",w)}return it(),r},withCustomData:function(n){return e=n,r},withTags:function(n){return a=n,r},attach:function(){return!wt()||k?r:(n.RaygunObject&&n[n.RaygunObject]&&n[n.RaygunObject].q&&(n.onerror=null),c.report.subscribe(ft),yt&&c.extendToAsynchronousCallbacks(),h&&h.ajaxError&&!ct&&h.ajaxError(pt),r)},detach:function(){return c.report.unsubscribe(ft),h&&h.unbind("ajaxError",pt),r},send:function(n,t,i){if(k)return u.log("Error not sent due to disabled error tracking"),r;try{ft(c.computeStackTrace(n),{customData:typeof e=="function"?bt(e(),t):bt(e,t),tags:fi(a,i)})}catch(f){if(n!==f)throw f;}return r},setUser:function(n,t,u,e,o,h){return f={Identifier:n},typeof t=="boolean"&&(f.IsAnonymous=t),u&&(f.Email=u),e&&(f.FullName=e),o&&(f.FirstName=o),h&&(f.UUID=h),s!==i&&s!==null&&s.setUser(f),r},resetAnonymousUser:function(){u.clearCookie("raygun4js-userid")},setVersion:function(n){return d=n,r},saveIfOffline:function(n){return typeof n!="undefined"&&typeof n=="boolean"&&(b=n),r},filterSensitiveData:function(n){return o=n,r},setFilterScope:function(n){return(n==="customData"||n==="all")&&(tt=n),r},whitelistCrossOriginDomains:function(n){return g=n,r},onBeforeSend:function(n){return nt=n,r},endSession:function(){r.RealUserMonitoring!==i&&s!==i&&s.endSession()}},u=r._private=r._private||{},ii=r._seal=r._seal||function(){delete r._private;delete r._seal;delete r._unseal},ri=r._unseal=r._unseal||function(){r._private=u;r._seal=ii;r._unseal=ri};return u.getUuid=function(){function n(n){var t=(Math.random().toString(16)+"000000000").substr(2,8);return n?"-"+t.substr(0,4)+"-"+t.substr(4,4):t}return n()+n(!0)+n(!0)+n()},u.createCookie=function(n,t,i){var u,r;i?(r=new Date,r.setTime(r.getTime()+i*36e5),u="; expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+"; path=/"},u.readCookie=function(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)===" ";)t=t.substring(1,t.length);if(t.indexOf(r)===0)return t.substring(r.length,t.length)}return null},u.clearCookie=function(n){u.createCookie(n,"",-1)},u.log=function(t,i){n.console&&n.console.log&&ot&&(n.console.log(t),i&&n.console.log(i))},n.Raygun||(n.Raygun=r),Date.prototype.toISOString||function(){function n(n){var t=String(n);return t.length===1&&(t="0"+t),t}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+n(this.getUTCMonth()+1)+"-"+n(this.getUTCDate())+"T"+n(this.getUTCHours())+":"+n(this.getUTCMinutes())+":"+n(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(),Function.prototype.bind||(Function.prototype.bind=function(n){if(typeof this!="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var r=Array.prototype.slice.call(arguments,1),u=this,t=function(){},i=function(){return u.apply(this instanceof t&&n?this:n,r.concat(Array.prototype.slice.call(arguments)))};return t.prototype=this.prototype,i.prototype=new t,i}),r};raygunFactory(window,window.jQuery);raygunRumFactory=function(n,t,i){i.RealUserMonitoring=function(t,i,r,u,f){function p(n){var t=c(e.cookieName),r=t===null,u=typeof exisitingCookie=="string"&&t.length>0&&t.indexOf("timestamp")===-1,f=null,o,l,v,i;r||u||(o=new Date(h(t,"timestamp")),l=new Date(new Date-18e5),f=o<l);r||u||f?(e.sessionId=a(32),s(e.cookieName,e.sessionId),n(!0)):(v=c(e.cookieName),i=h(v,"id"),i==="undefined"?(e.sessionId=a(32),s(e.cookieName,e.sessionId),n(!0)):(e.sessionId=i,n(!1)))}function s(n,t,i){var u,f,r;i?(r=new Date,r.setTime(r.getTime()+i*36e5),u="; expires="+r.toGMTString()):u="";f=(new Date).toISOString();document.cookie=n+"=id|"+t+"&timestamp|"+f+u+"; path=/"}function h(n,t){var i=n.split(/[|&]/);return t==="id"?i[1]:t==="timestamp"?i[3]:void 0}function c(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)===" ";)t=t.substring(1,t.length);if(t.indexOf(r)===0)return t.substring(r.length,t.length)}return null}function w(){var t=c(e.cookieName),i=new Date(h(t,"timestamp")),r=new Date(new Date-18e5),n=i<r;n&&(e.sessionId=a(32));s(e.cookieName,e.sessionId);n&&e.pageLoaded(!0)}function v(n){return Math.min(n,3e5)}function y(n){for(var t in n)isNaN(n[t])&&typeof n[t]!="string"&&(n[t]=0);return n}function b(n,t){var i={du:n.duration,t:"p"};return i.a=t+n.fetchStart,n.domainLookupStart&&n.domainLookupStart>0&&(i.b=t+n.domainLookupStart-i.a),n.domainLookupEnd&&n.domainLookupEnd>0&&(i.c=t+n.domainLookupEnd-i.a),n.connectStart&&n.connectStart>0&&(i.d=t+n.connectStart-i.a),n.connectEnd&&n.connectEnd>0&&(i.e=t+n.connectEnd-i.a),n.responseStart&&n.responseStart>0&&(i.f=t+n.responseStart-i.a),n.responseEnd&&n.responseEnd>0&&(i.g=t+n.responseEnd-i.a),n.domLoading&&n.domLoading>0&&(i.h=t+n.domLoading-i.a),n.domInteractive&&n.domInteractive>0&&(i.i=t+n.domInteractive-i.a),n.domContentLoadedEventEnd&&n.domContentLoadedEventEnd>0&&(i.j=t+n.domContentLoadedEventEnd-i.a),n.domComplete&&n.domComplete>0&&(i.k=v(t+n.domComplete-i.a)),n.loadEventStart&&n.loadEventStart>0&&(i.l=t+n.loadEventStart-i.a),n.loadEventEnd&&n.loadEventEnd>0&&(i.m=t+n.loadEventEnd-i.a),n.secureConnectionStart&&n.secureConnectionStart>0&&(i.n=t+(n.secureConnectionStart-n.connectStart)-i.a),y(i)}function k(n,t){var i={du:v(n.duration).toFixed(2),t:n.initiatorType==="xmlhttprequest"?"x":n.duration===0?"e":"c",a:(t+n.fetchStart).toFixed(2)};return n.domainLookupStart&&n.domainLookupStart>0&&(i.b=t+n.domainLookupStart-i.a),n.domainLookupEnd&&n.domainLookupEnd>0&&(i.c=t+n.domainLookupEnd-i.a),n.connectStart&&n.connectStart>0&&(i.d=t+n.connectStart-i.a),n.connectEnd&&n.connectEnd>0&&(i.e=t+n.connectEnd-i.a),n.responseStart&&n.responseStart>0&&(i.f=t+n.responseStart-i.a),n.responseEnd&&n.responseEnd>0&&(i.g=t+n.responseEnd-i.a),n.secureConnectionStart&&n.secureConnectionStart>0&&(i.n=t+(n.secureConnectionStart-n.connectStart)-i.a),y(i)}function d(){return{url:n.location.protocol+"//"+n.location.host+n.location.pathname,userAgent:navigator.userAgent,timing:b(n.performance.timing,0),size:0}}function g(t){return{url:t.name.split("?")[0],timing:k(t,n.performance.timing.navigationStart),size:t.decodedBodySize||0}}function l(t){var r,u,i;if(n.performance!==undefined&&n.performance.getEntries)try{for(r=n.performance.getEntries(),u=e.offset;u<r.length;u++)(i=r[u].name.split("?")[0],i.indexOf(e.apiUrl)!==0)&&(i.indexOf("favicon.ico")>0||i.indexOf("about:blank")!==0&&(i[0]!=="j"||i.indexOf("avascript:")!==1)&&i.indexOf("chrome-extension://")!==0&&i.indexOf("res://")!==0&&i.indexOf("file://")!==0&&t.push(g(r[u])));e.offset=r.length}catch(f){}}function nt(){if(n.performance===undefined||isNaN(n.performance.timing.fetchStart))return null;var t=[];return t.push(d()),l(t),t}function a(n){return Math.round(Math.pow(36,n+1)-Math.random()*Math.pow(36,n)).toString(36).slice(1)}var e=this,o={};this.cookieName="raygun4js-sid";this.apiKey=t;this.apiUrl=i;this.makePostCorsRequest=r;this.sessionId=null;this.user=u;this.version=f;this.heartBeatInterval=null;this.offset=0;this.attach=function(){p(function(n){e.pageLoaded(n)});n.onbeforeunload=function(){var n=[],t;l(n);n.length>0&&(t={eventData:[{sessionId:e.sessionId,timestamp:(new Date).toISOString(),type:"web_request_timing",user:e.user,version:e.version||"Not supplied",device:navigator.userAgent,data:JSON.stringify(n)}]},e.makePostCorsRequest(e.apiUrl+"/events?apikey="+encodeURIComponent(e.apiKey),JSON.stringify(t)))};var t=function(){this.updateCookieTimestamp()}.bind(o),i=function(){document.visibilityState==="visible"&&this.updateCookieTimestamp()}.bind(o);n.addEventListener?(n.addEventListener("click",t),document.addEventListener("visibilitychange",i)):n.attachEvent&&document.attachEvent("onclick",t)};this.pageLoaded=function(n){if(n){var t={eventData:[{sessionId:e.sessionId,timestamp:(new Date).toISOString(),type:"session_start",user:e.user,version:e.version||"Not supplied",device:navigator.userAgent}]};e.makePostCorsRequest(e.apiUrl+"/events?apikey="+encodeURIComponent(e.apiKey),JSON.stringify(t))}e.sendPerformance();e.heartBeat()};this.setUser=function(n){e.user=n};this.endSession=function(){var n={eventData:[{sessionId:e.sessionId,timestamp:(new Date).toISOString(),type:"session_end"}]};e.makePostCorsRequest(e.apiUrl+"/events?apikey="+encodeURIComponent(e.apiKey),JSON.stringify(n))};this.heartBeat=function(){e.heartBeatInterval=setInterval(function(){var n=[],t;l(n);n.length>0&&(t={eventData:[{sessionId:e.sessionId,timestamp:(new Date).toISOString(),type:"web_request_timing",user:e.user,version:e.version||"Not supplied",device:navigator.userAgent,data:JSON.stringify(n)}]});t!==undefined&&e.makePostCorsRequest(e.apiUrl+"/events?apikey="+encodeURIComponent(e.apiKey),JSON.stringify(t))},3e4)};this.sendPerformance=function(){var n=nt(),t;n!==null&&(t={eventData:[{sessionId:e.sessionId,timestamp:(new Date).toISOString(),type:"web_request_timing",user:e.user,version:e.version||"Not supplied",device:navigator.userAgent,data:JSON.stringify(n)}]},e.makePostCorsRequest(e.apiUrl+"/events?apikey="+encodeURIComponent(e.apiKey),JSON.stringify(t)))};o.updateCookieTimestamp=w}};raygunRumFactory(window,window.jQuery,window.Raygun);raygunJsUrlFactory=function(n,t){t._private.parseUrl=function(t,i){function r(n){return!isNaN(parseFloat(n))&&isFinite(n)}return function(t,i){var e=i||n.location.toString(),u,o,s,f,a,v,y;if(t)t=t.toString();else return e;e.substring(0,2)==="//"?e="http:"+e:e.split("://").length===1&&(e="http://"+e);i=e.split("/");u={auth:""};o=i[2].split("@");o.length===1?o=o[0].split(":"):(u.auth=o[0],o=o[1].split(":"));u.protocol=i[0];u.hostname=o[0];u.port=o[1]||(u.protocol.split(":")[0].toLowerCase()==="https"?"443":"80");u.pathname=(i.length>3?"/":"")+i.slice(3,i.length).join("/").split("?")[0].split("#")[0];s=u.pathname;s.charAt(s.length-1)==="/"&&(s=s.substring(0,s.length-1));var l=u.hostname,h=l.split("."),c=s.split("/");if(t==="hostname")return l;if(t==="domain")return/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/.test(l)?l:h.slice(-2).join(".");if(t==="sub")return h.slice(0,h.length-2).join(".");if(t==="port")return u.port;if(t==="protocol")return u.protocol.split(":")[0];if(t==="auth")return u.auth;if(t==="user")return u.auth.split(":")[0];if(t==="pass")return u.auth.split(":")[1]||"";if(t==="path")return u.pathname;if(t.charAt(0)==="."){if(t=t.substring(1),r(t))return t=parseInt(t,10),h[t<0?h.length+t:t-1]||""}else{if(r(t))return t=parseInt(t,10),c[t<0?c.length+t:t]||"";if(t==="file")return c.slice(-1)[0];if(t==="filename")return c.slice(-1)[0].split(".")[0];if(t==="fileext")return c.slice(-1)[0].split(".")[1]||"";if(t.charAt(0)==="?"||t.charAt(0)==="#"){if(f=e,a=null,t.charAt(0)==="?"?f=(f.split("?")[1]||"").split("#")[0]:t.charAt(0)==="#"&&(f=f.split("#")[1]||""),!t.charAt(1))return f;for(t=t.substring(1),f=f.split("&"),v=0,y=f.length;v<y;v++)if(a=f[v].split("="),a[0]===t)return a[1]||"";return null}}return""}(t,i)}};raygunJsUrlFactory(window,window.Raygun);window.Raygun._seal(),function(n,t){var o,s,u,h,c,l,a,v,r,y,p,w,k,d,g,f,b,i,e;if(n.RaygunObject&&n[n.RaygunObject]){o=n[n.RaygunObject].o;for(g in o)if(f=o[g],f&&(b=f[0],i=f[1],b&&i))switch(b){case"apiKey":s=i;break;case"options":u=i;break;case"setUser":r=i;break;case"onBeforeSend":y=i;break;case"withCustomData":h=i;break;case"withTags":c=i;break;case"setVersion":l=i;break;case"filterSensitiveData":a=i;break;case"setFilterScope":v=i;break;case"whitelistCrossOriginDomains":w=i;break;case"saveIfOffline":p=i;break;case"attach":case"enableCrashReporting":k=i;break;case"enablePulse":d=i}if(h&&t.withCustomData(h),c&&t.withTags(c),l&&t.setVersion(l),a&&t.filterSensitiveData(a),v&&t.setFilterScope(v),r&&t.setUser(r.identifier,r.isAnonymous,r.email,r.fullName,r.firstName,r.uuid),y)t.onBeforeSend(y);typeof p=="boolean"&&t.saveIfOffline(p);w&&t.whitelistCrossOriginDomains(w);e=function(){var i,r;if(s&&(u||(u={}),d&&(u.disablePulse=!1),u.from="onLoad",t.init(s,u,null)),k){t.attach();i=n[n.RaygunObject].q;for(r in i)t.send(i[r].e,{handler:"From Raygun4JS snippet global error handler"})}};document.readyState==="complete"?e():n.addEventListener?n.addEventListener("load",e):n.attachEvent("onload",e)}}(window,window.Raygun),function(){function ti(t,i){if(t!==i){var f=t===null,e=t===n,r=t===t,o=i===null,s=i===n,u=i===i;if(t>i&&!o||!r||f&&!s&&u||e&&u)return 1;if(t<i&&!f||!u||o&&!e&&r||s&&r)return-1}return 0}function pi(n,t,i){for(var u=n.length,r=i?u:-1;i?r--:++r<u;)if(t(n[r],r,n))return r;return-1}function a(n,t,i){if(t!==t)return ki(n,i);for(var r=i-1,u=n.length;++r<u;)if(n[r]===t)return r;return-1}function wu(n){return typeof n=="function"||!1}function r(n){return n==null?"":n+""}function wi(n,t){for(var i=-1,r=n.length;++i<r&&t.indexOf(n.charAt(i))>-1;);return i}function bi(n,t){for(var i=n.length;i--&&t.indexOf(n.charAt(i))>-1;);return i}function bu(n,t){return ti(n.criteria,t.criteria)||n.index-t.index}function ku(n,t,i){for(var r=-1,e=n.criteria,o=t.criteria,s=e.length,h=i.length,u,f;++r<s;)if(u=ti(e[r],o[r]),u)return r>=h?u:(f=i[r],u*(f==="asc"||f===!0?1:-1));return n.index-t.index}function du(n){return hu[n]}function gu(n){return cu[n]}function nf(n,t,i){return t?n=au[n]:i&&(n=vi[n]),"\\"+n}function tf(n){return"\\"+vi[n]}function ki(n,t,i){for(var f=n.length,r=t+(i?0:-1),u;i?r--:++r<f;)if(u=n[r],u!==u)return r;return-1}function u(n){return!!n&&typeof n=="object"}function di(n){return n<=160&&n>=9&&n<=13||n==32||n==160||n==5760||n==6158||n>=8192&&(n<=8202||n==8232||n==8233||n==8239||n==8287||n==12288||n==65279)}function v(n,t){for(var i=-1,u=n.length,f=-1,r=[];++i<u;)n[i]===t&&(n[i]=lt,r[++f]=i);return r}function rf(n,t){for(var f,i=-1,o=n.length,s=-1,e=[],r,u;++i<o;)r=n[i],u=t?t(r,i,n):r,i&&f===u||(f=u,e[++s]=r);return e}function gi(n){for(var t=-1,i=n.length;++t<i&&di(n.charCodeAt(t)););return t}function nr(n){for(var t=n.length;t--&&di(n.charCodeAt(t)););return t}function uf(n){return lu[n]}function tr(rt){function ut(n){if(u(n)&&!ct(n)&&!(n instanceof ei)){if(n instanceof cf)return n;if(hu.call(n,"__chain__")&&hu.call(n,"__wrapped__"))return ga(n)}return new cf(n)}function oo(){}function cf(n,t,i){this.__wrapped__=n;this.__actions__=i||[];this.__chain__=!!t}function ei(n){this.__wrapped__=n;this.__actions__=[];this.__dir__=1;this.__filtered__=!1;this.__iteratees__=[];this.__takeCount__=ro;this.__views__=[]}function vw(){var n=new ei(this.__wrapped__);return n.__actions__=vu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=vu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=vu(this.__views__),n}function yw(){if(this.__filtered__){var n=new ei(this);n.__dir__=-1;n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function pw(){var n=this.__wrapped__.value(),e=this.__dir__,o=ct(n),k=e<0,r=o?n.length:0,s=gb(0,r,this.__views__),h=s.start,c=s.end,t=c-h,l=k?c:h-1,a=this.__iteratees__,d=a.length,v=0,y=yu(t,this.__takeCount__),u,f,i;if(!o||r<et||r==t&&y==t)return ll(n,this.__actions__);u=[];n:while(t--&&v<y){for(l+=e,f=-1,i=n[l];++f<d;){var p=a[f],g=p.iteratee,w=p.type,b=g(i);if(w==ui)i=b;else if(!b)if(w==or)continue n;else break n}u[v++]=i}return u}function we(){this.__data__={}}function ww(n){return this.has(n)&&delete this.__data__[n]}function bw(t){return t=="__proto__"?n:this.__data__[t]}function kw(n){return n!="__proto__"&&hu.call(this.__data__,n)}function dw(n,t){return n!="__proto__"&&(this.__data__[n]=t),this}function pc(n){var t=n?n.length:0;for(this.data={hash:lc(null),set:new oc};t--;)this.push(n[t])}function so(n,t){var i=n.data,r=typeof t=="string"||di(t)?i.set.has(t):i.hash[t];return r?0:-1}function gw(n){var t=this.data;typeof n=="string"||di(n)?t.set.add(n):t.hash[n]=!0}function nb(n,t){for(var i=-1,u=n.length,f=-1,e=t.length,r=yi(u+e);++i<u;)r[i]=n[i];while(++f<e)r[i++]=t[f];return r}function vu(n,t){var i=-1,r=n.length;for(t||(t=yi(r));++i<r;)t[i]=n[i];return t}function lf(n,t){for(var i=-1,r=n.length;++i<r;)if(t(n[i],i,n)===!1)break;return n}function tb(n,t){for(var i=n.length;i--;)if(t(n[i],i,n)===!1)break;return n}function wc(n,t){for(var i=-1,r=n.length;++i<r;)if(!t(n[i],i,n))return!1;return!0}function ib(n,t,i,r){for(var o=-1,h=n.length,u=r,s=u,f,e;++o<h;)f=n[o],e=+t(f),i(e,u)&&(u=e,s=f);return s}function cs(n,t){for(var i=-1,f=n.length,e=-1,u=[],r;++i<f;)r=n[i],t(r,i,n)&&(u[++e]=r);return u}function se(n,t){for(var i=-1,r=n.length,u=yi(r);++i<r;)u[i]=t(n[i],i,n);return u}function be(n,t){for(var i=-1,r=t.length,u=n.length;++i<r;)n[u+i]=t[i];return n}function bc(n,t,i,r){var u=-1,f=n.length;for(r&&f&&(i=n[++u]);++u<f;)i=t(i,n[u],u,n);return i}function rb(n,t,i,r){var u=n.length;for(r&&u&&(i=n[--u]);u--;)i=t(i,n[u],u,n);return i}function kc(n,t){for(var i=-1,r=n.length;++i<r;)if(t(n[i],i,n))return!0;return!1}function ub(n,t){for(var i=n.length,r=0;i--;)r+=+t(n[i])||0;return r}function fb(t,i){return t===n?i:t}function dc(t,i,r,u){return t===n||!hu.call(u,r)?i:t}function ls(t,i,r){for(var o=-1,s=au(i),h=s.length;++o<h;){var u=s[o],f=t[u],e=r(f,i[u],u,t,i);(e===e?e===f:f!==f)&&(f!==n||u in t)||(t[u]=e)}return t}function ke(n,t){return t==null?n:nl(t,au(t),n)}function gc(t,i){for(var u=-1,f=t==null,e=!f&&lu(t),h=e?t.length:0,o=i.length,s=yi(o),r;++u<o;)r=i[u],s[u]=e?bf(r,h)?t[r]:n:f?n:t[r];return s}function nl(n,t,i){var r,f,u;for(i||(i={}),r=-1,f=t.length;++r<f;)u=t[r],i[u]=n[u];return i}function ho(t,i,r){var u=typeof t;return u=="function"?i===n?t:ef(t,i,r):t==null?ee:u=="object"?ge(t):i===n?os(t):el(t,i)}function ie(i,r,u,f,e,o,h){var c,v,l,y,a;if(u&&(c=e?u(i,f,e):u(i)),c!==n)return c;if(!di(i))return i;if(v=ct(i),v){if(c=nk(i),!r)return vu(i,c)}else if(l=ff.call(i),y=l==st,l==s||l==b||y&&!e){if(c=tk(y?{}:i),!r)return ke(c,i)}else return t[l]?ik(i,l,r):e?i:{};for(o||(o=[]),h||(h=[]),a=o.length;a--;)if(o[a]==i)return h[a];return o.push(i),h.push(c),(v?lf:yf)(i,function(n,t){c[t]=ie(n,r,u,t,i,o,h)}),c}function tl(t,i,r){if(typeof t!="function")throw new of(f);return to(function(){t.apply(n,r)},i)}function de(n,t){var o=n?n.length:0,r=[],i,e;if(!o)return r;var s=-1,u=ce(),f=u===a,h=f&&t.length>=et?th(t):null,c=t.length;h&&(u=so,f=!1,t=h);n:while(++s<o)if(i=n[s],f&&i===i){for(e=c;e--;)if(t[e]===i)continue n;r.push(i)}else u(t,i,0)<0&&r.push(i);return r}function eb(n,t){var i=!0;return sf(n,function(n,r,u){return i=!!t(n,r,u)}),i}function ob(n,t,i,r){var u=r,f=u;return sf(n,function(n,e,o){var s=+t(n,e,o);(i(s,u)||s===r&&s===f)&&(u=s,f=n)}),f}function sb(t,i,r,u){var f=t.length;for(r=r==null?0:+r||0,r<0&&(r=-r>f?0:f+r),u=u===n||u>f?f:+u||0,u<0&&(u+=f),f=r>u?0:u>>>0,r>>>=0;r<f;)t[r++]=i;return t}function il(n,t){var i=[];return sf(n,function(n,r,u){t(n,r,u)&&i.push(n)}),i}function rl(n,t,i,r){var u;return i(n,function(n,i,f){if(t(n,i,f))return u=r?i:n,!1}),u}function pu(n,t,i,r){var e,o,f;for(r||(r=[]),e=-1,o=n.length;++e<o;)f=n[e],u(f)&&lu(f)&&(i||ct(f)||pf(f))?t?pu(f,t,i,r):be(r,f):i||(r[r.length]=f);return r}function ul(n,t){return lo(n,t,df)}function yf(n,t){return lo(n,t,au)}function vs(n,t){return as(n,t,au)}function ys(n,t){for(var r=-1,f=t.length,e=-1,u=[],i;++r<f;)i=t[r],fe(n[i])&&(u[++e]=i);return u}function re(t,i,r){if(t!=null){r!==n&&r in af(t)&&(i=[r]);for(var u=0,f=i.length;t!=null&&u<f;)t=t[i[u++]];return u&&u==f?t:n}}function ao(n,t,i,r,f,e){return n===t?!0:n==null||t==null||!di(n)&&!u(t)?n!==n&&t!==t:hb(n,t,ao,i,r,f,e)}function hb(n,t,i,r,u,f,e){var c=ct(n),y=ct(t),o=k,h=k,a,v,l,d;c||(o=ff.call(n),o==b?o=s:o!=s&&(c=ye(n)));y||(h=ff.call(t),h==b?h=s:h!=s&&(y=ye(t)));var p=o==s,g=h==s,w=o==h;if(w&&!(c||p))return kb(n,t,o);if(!u&&(a=p&&hu.call(n,"__wrapped__"),v=g&&hu.call(t,"__wrapped__"),a||v))return i(a?n.value():n,v?t.value():t,r,u,f,e);if(!w)return!1;for(f||(f=[]),e||(e=[]),l=f.length;l--;)if(f[l]==n)return e[l]==t;return f.push(n),e.push(t),d=(c?bb:db)(n,t,i,r,u,f,e),f.pop(),e.pop(),d}function fl(t,i,r){var f=i.length,h=f,c=!r,u,s;if(t==null)return!h;for(t=af(t);f--;)if(u=i[f],c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1;while(++f<h){u=i[f];var e=u[0],o=t[e],l=u[1];if(c&&u[2]){if(o===n&&!(e in t))return!1}else if(s=r?r(o,l,e):n,!(s===n?ao(l,o,r,!0):s))return!1}return!0}function ps(n,t){var r=-1,i=lu(n)?yi(n.length):[];return sf(n,function(n,u,f){i[++r]=t(n,u,f)}),i}function ge(t){var i=ya(t),r,u;return i.length==1&&i[0][2]?(r=i[0][0],u=i[0][1],function(t){return t==null?!1:t[r]===u&&(u!==n||r in af(t))}):function(n){return fl(n,i)}}function el(t,i){var r=ct(t),u=ue(t)&&pa(i),f=t+"";return t=kf(t),function(e){if(e==null)return!1;var o=f;if(e=af(e),(r||!u)&&!(o in e)){if(e=t.length==1?e:re(e,hf(t,0,-1)),e==null)return!1;o=no(t);e=af(e)}return e[o]===i?i!==n||o in e:ao(i,e[o],n,!0)}}function ol(t,i,r,f,e){if(!di(t))return t;var o=lu(i)&&(ct(i)||ye(i)),s=o?n:au(i);return lf(s||i,function(h,c){if(s&&(c=h,h=i[c]),u(h))f||(f=[]),e||(e=[]),cb(t,i,c,ol,r,f,e);else{var a=t[c],l=r?r(a,h,c,t,i):n,v=l===n;v&&(l=h);l===n&&(!o||c in t)||!v&&(l===l?l===a:a!==a)||(t[c]=l)}}),t}function cb(t,i,r,u,f,e,o){for(var l=e.length,h=i[r];l--;)if(e[l]==h){t[r]=o[l];return}var s=t[r],c=f?f(s,h,r,t,i):n,a=c===n;a&&(c=h,lu(h)&&(ct(h)||ye(h))?c=ct(s)?s:lu(s)?vu(s):[]:is(h)||pf(h)?c=pf(s)?tp(s):is(s)?s:{}:a=!1);e.push(h);o.push(c);a?t[r]=u(c,h,f,e,o):(c===c?c!==s:s===s)&&(t[r]=c)}function ws(t){return function(i){return i==null?n:i[t]}}function lb(n){var t=n+"";return n=kf(n),function(i){return re(i,n,t)}}function sl(n,t){for(var r=n?t.length:0,i,u;r--;)i=t[r],i!=u&&bf(i)&&(u=i,sc.call(n,i,1));return n}function bs(n,t){return n+te(vc()*(t-n+1))}function ab(n,t,i,r,u){return u(n,function(n,u,f){i=r?(r=!1,n):t(i,n,u,f)}),i}function hf(t,i,r){var f=-1,u=t.length,e;for(i=i==null?0:+i||0,i<0&&(i=-i>u?0:u+i),r=r===n||r>u?u:+r||0,r<0&&(r+=u),u=i>r?0:r-i>>>0,i>>>=0,e=yi(u);++f<u;)e[f]=t[f+i];return e}function vb(n,t){var i;return sf(n,function(n,r,u){return i=t(n,r,u),!i}),!!i}function hl(n,t){var i=n.length;for(n.sort(t);i--;)n[i]=n[i].value;return n}function cl(n,t,i){var u=vi(),f=-1,r;return t=se(t,function(n){return u(n)}),r=ps(n,function(n){var i=se(t,function(t){return t(n)});return{criteria:i,index:++f,value:n}}),hl(r,function(n,t){return ku(n,t,i)})}function yb(n,t){var i=0;return sf(n,function(n,r,u){i+=+t(n,r,u)||0}),i}function ds(n,t){var e=-1,o=ce(),l=n.length,s=o===a,h=s&&l>=et,i=h?th():null,f=[],r,u,c;i?(o=so,s=!1):(h=!1,i=t?[]:f);n:while(++e<l)if(r=n[e],u=t?t(r,e,n):r,s&&r===r){for(c=i.length;c--;)if(i[c]===u)continue n;t&&i.push(u);f.push(r)}else o(i,u,0)<0&&((t||h)&&i.push(u),f.push(r));return f}function gs(n,t){for(var i=-1,r=t.length,u=yi(r);++i<r;)u[i]=n[t[i]];return u}function vo(n,t,i,r){for(var f=n.length,u=r?f:-1;(r?u--:++u<f)&&t(n[u],u,n););return i?hf(n,r?0:u,r?u+1:f):hf(n,r?u+1:0,r?f:u)}function ll(n,t){var i=n,u,f,r;for(i instanceof ei&&(i=i.value()),u=-1,f=t.length;++u<f;)r=t[u],i=r.func.apply(r.thisArg,be([i],r.args));return i}function nh(n,t,i){var u=0,r=n?n.length:u,f,e;if(typeof t=="number"&&t===t&&r<=lw){while(u<r)f=u+r>>>1,e=n[f],(i?e<=t:e<t)&&e!==null?u=f+1:r=f;return r}return al(n,t,ee,i)}function al(t,i,r,u){var l;i=r(i);for(var o=0,e=t?t.length:0,a=i!==i,v=i===null,y=i===n;o<e;){var s=te((o+e)/2),f=r(t[s]),c=f!==n,h=f===f;l=a?h||u:v?h&&c&&(u||f!=null):y?h&&(u||c):f==null?!1:u?f<=i:f<i;l?o=s+1:e=s}return yu(e,cw)}function ef(t,i,r){if(typeof t!="function")return ee;if(i===n)return t;switch(r){case 1:return function(n){return t.call(i,n)};case 3:return function(n,r,u){return t.call(i,n,r,u)};case 4:return function(n,r,u,f){return t.call(i,n,r,u,f)};case 5:return function(n,r,u,f,e){return t.call(i,n,r,u,f,e)}}return function(){return t.apply(i,arguments)}}function vl(n){var t=new iw(n.byteLength),i=new hc(t);return i.set(new hc(n)),t}function yl(n,t,i){for(var e=i.length,r=-1,o=cu(n.length-e,0),u=-1,s=t.length,f=yi(s+o);++u<s;)f[u]=t[u];while(++r<e)f[i[r]]=n[r];while(o--)f[u++]=n[r++];return f}function pl(n,t,i){for(var o=-1,s=i.length,r=-1,h=cu(n.length-s,0),f=-1,c=t.length,u=yi(h+c),e;++r<h;)u[r]=n[r];for(e=r;++f<c;)u[e+f]=t[f];while(++o<s)u[e+i[o]]=n[r++];return u}function yo(n,t){return function(i,r,u){var e=t?t():{},f,s,o;if(r=vi(r,u,3),ct(i))for(f=-1,s=i.length;++f<s;)o=i[f],n(e,o,r(o,f,i),i);else sf(i,function(t,i,u){n(e,t,r(t,i,u),u)});return e}}function wl(t){return oi(function(i,r){var s=-1,u=i==null?0:r.length,f=u>2?r[u-2]:n,h=u>2?r[2]:n,e=u>1?r[u-1]:n,o;for(typeof f=="function"?(f=ef(f,e,5),u-=2):(f=typeof e=="function"?e:n,u-=f?1:0),h&&fi(r[0],r[1],h)&&(f=u<3?n:f,u=1);++s<u;)o=r[s],o&&t(i,o,f);return i})}function bl(n,t){return function(i,r){var f=i?le(i):0,u,e;if(!vf(f))return n(i,r);for(u=t?f:-1,e=af(i);t?u--:++u<f;)if(r(e[u],u,e)===!1)break;return i}}function kl(n){return function(t,i,r){for(var e=af(t),o=r(t),s=o.length,u=n?s:-1,f;n?u--:++u<s;)if(f=o[u],i(e[f],f,e)===!1)break;return t}}function pb(n,t){function i(){var u=this&&this!==h&&this instanceof i?r:n;return u.apply(t,arguments)}var r=wo(n);return i}function th(n){return lc&&oc?new pc(n):null}function po(n){return function(t){for(var i=-1,u=vp(fp(t)),f=u.length,r="";++i<f;)r=n(r,u[i],i);return r}}function wo(n){return function(){var t=arguments,i,r;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}return i=he(n.prototype),r=n.apply(i,t),di(r)?r:i}}function dl(t){function i(r,u,f){f&&fi(r,u,f)&&(u=n);var e=wf(r,t,n,n,n,n,n,u);return e.placeholder=i.placeholder,e}return i}function gl(t,i){return oi(function(r){var u=r[0];return u==null?u:(r.push(i),t.apply(n,r))})}function na(t,i){return function(r,u,f){if(f&&fi(r,u,f)&&(u=n),u=vi(u,f,3),u.length==1){r=ct(r)?r:oh(r);var e=ib(r,u,t,i);if(!(r.length&&e===i))return e}return ob(r,u,t,i)}}function ta(t,i){return function(r,u,f){if(u=vi(u,f,3),ct(r)){var e=pi(r,u,i);return e>-1?r[e]:n}return rl(r,u,t)}}function ia(n){return function(t,i,r){return(t&&t.length)?(i=vi(i,r,3),pi(t,i,n)):-1}}function ra(n){return function(t,i,r){return i=vi(i,r,3),rl(t,i,n,!0)}}function ua(t){return function(){for(var i,e=arguments.length,s=t?e:-1,a=0,h=yi(e),r,c,u;t?s--:++s<e;){if(r=h[a++]=arguments[s],typeof r!="function")throw new of(f);!i&&cf.prototype.thru&&ko(r)=="wrapper"&&(i=new cf([],!0))}for(s=i?-1:e;++s<e;)r=h[s],c=ko(r),u=c=="wrapper"?bo(r):n,i=u&&fh(u[0])&&u[1]==(l|p|o|ft)&&!u[4].length&&u[9]==1?i[ko(u[0])].apply(i,u[3]):r.length==1&&fh(r)?i[c]():i.thru(r);return function(){var u=arguments,n=u[0],t,r;if(i&&u.length==1&&ct(n)&&n.length>=et)return i.plant(n).value();for(t=0,r=e?h[t].apply(this,u):n;++t<e;)r=h[t].call(this,r);return r}}}function fa(t,i){return function(r,u,f){return typeof u=="function"&&f===n&&ct(r)?t(r,u):i(r,ef(u,f,3))}}function ea(t){return function(i,r,u){return(typeof r!="function"||u!==n)&&(r=ef(r,u,3)),t(i,r,df)}}function oa(t){return function(i,r,u){return(typeof r!="function"||u!==n)&&(r=ef(r,u,3)),t(i,r)}}function sa(n){return function(t,i,r){var u={};return i=vi(i,r,3),yf(t,function(t,r,f){var e=i(t,r,f);r=n?e:r;t=n?t:e;u[r]=t}),u}}function ha(n){return function(t,i,u){return t=r(t),(n?t:"")+aa(t,i,u)+(n?"":t)}}function ca(t){var i=oi(function(r,u){var f=v(u,i.placeholder);return wf(r,t,n,u,f)});return i}function la(t,i){return function(r,u,f,e){var o=arguments.length<3;return typeof u=="function"&&e===n&&ct(r)?t(r,u,f,o):ab(r,vi(u,e,4),f,o,i)}}function ih(t,i,r,u,f,s,c,a,b,k){function g(){for(var p=arguments.length,st=p,l=yi(p),ht,et,ct,ot,lt,at;st--;)l[st]=arguments[st];if(u&&(l=yl(l,u,f)),s&&(l=pl(l,s,c)),(d||ut)&&(ht=g.placeholder,et=v(l,ht),p-=et.length,p<k)){var vt=a?vu(a):n,yt=cu(k-p,0),pt=d?et:n,wt=d?n:et,bt=d?l:n,kt=d?n:l;return i|=d?o:w,i&=~(d?w:o),rt||(i&=~(e|y)),ct=[t,i,r,bt,pt,kt,wt,vt,b,yt],ot=ih.apply(n,ct),fh(t)&&eh(ot,ct),ot.placeholder=ht,ot}return lt=it?r:this,at=nt?lt[t]:t,a&&(l=uk(l,a)),tt&&b<l.length&&(l.length=b),this&&this!==h&&this instanceof g&&(at=ft||wo(t)),at.apply(lt,l)}var tt=i&l,it=i&e,nt=i&y,d=i&p,rt=i&ii,ut=i&ri,ft=nt?n:wo(t);return g}function aa(n,t,i){var u=n.length,r;return(t=+t,u>=t||!oe(t))?"":(r=t-u,i=i==null?" ":i+"",hp(i,io(r/i.length)).slice(0,r))}function wb(n,t,i,r){function u(){for(var a=-1,s=arguments.length,t=-1,c=r.length,e=yi(c+s),l;++t<c;)e[t]=r[t];while(s--)e[t++]=arguments[++a];return l=this&&this!==h&&this instanceof u?o:n,l.apply(f?i:this,e)}var f=t&e,o=wo(n);return u}function rh(t){var i=gf[t];return function(t,r){return(r=r===n?0:+r||0,r)?(r=uw(10,r),i(t*r)/r):i(t)}}function va(n){return function(t,i,r,u){var f=vi(r);return r==null&&f===ho?nh(t,i,n):al(t,i,f(r,u,1),n)}}function wf(t,i,r,u,s,h,c,l){var b=i&y,v,k,d,p,a,g,nt;if(!b&&typeof t!="function")throw new of(f);return v=u?u.length:0,v||(i&=~(o|w),u=s=n),v-=s?s.length:0,i&w&&(k=u,d=s,u=s=n),p=b?n:bo(t),a=[t,i,r,u,s,k,d,h,c,l],p&&(rk(a,p),i=a[1],l=a[9]),a[9]=l==null?b?0:t.length:cu(l-v,0)||0,g=i==e?pb(a[0],a[2]):i!=o&&i!=(e|o)||a[4].length?ih.apply(n,a):wb.apply(n,a),nt=p?ks:eh,nt(g,a)}function bb(t,i,r,u,f,e,o){var h=-1,l=t.length,a=i.length;if(l!=a&&!(f&&a>l))return!1;while(++h<l){var s=t[h],c=i[h],v=u?u(f?c:s,f?s:c,h):n;if(v!==n){if(v)continue;return!1}if(f){if(!kc(i,function(n){return s===n||r(s,n,u,f,e,o)}))return!1}else if(!(s===c||r(s,c,u,f,e,o)))return!1}return!0}function kb(n,t,i){switch(i){case d:case g:return+n==+t;case ot:return n.name==t.name&&n.message==t.message;case nt:return n!=+n?t!=+t:n==+t;case tt:case it:return n==t+""}return!1}function db(t,i,r,u,f,e,o){var v=au(t),y=v.length,k=au(i),d=k.length,h,s,a,c,l;if(y!=d&&!f)return!1;for(h=y;h--;)if(s=v[h],!(f?s in i:hu.call(i,s)))return!1;for(a=f;++h<y;){s=v[h];var p=t[s],w=i[s],b=u?u(f?w:p,f?p:w,s):n;if(!(b===n?r(p,w,u,f,e,o):b))return!1;a||(a=s=="constructor")}return!a&&(c=t.constructor,l=i.constructor,c!=l&&"constructor"in t&&"constructor"in i&&!(typeof c=="function"&&c instanceof c&&typeof l=="function"&&l instanceof l))?!1:!0}function vi(n,t,i){var r=ut.callback||es;return r=r===es?ho:r,i?r(n,t,i):r}function ko(n){for(var u=n.name+"",t=eo[u],f=t?t.length:0,i,r;f--;)if(i=t[f],r=i.func,r==null||r==n)return i.name;return u}function ce(n,t,i){var r=ut.indexOf||sh;return r=r===sh?a:r,n?r(n,t,i):r}function ya(n){for(var t=ip(n),i=t.length;i--;)t[i][2]=pa(t[i][1]);return t}function ae(t,i){var r=t==null?n:t[i];return by(r)?r:n}function gb(n,t,i){for(var f=-1,e=i.length,u,r;++f<e;){u=i[f];r=u.size;switch(u.type){case"drop":n+=r;break;case"dropRight":t-=r;break;case"take":t=yu(t,n+r);break;case"takeRight":n=cu(n,t-r)}}return{start:n,end:t}}function nk(n){var i=n.length,t=new n.constructor(i);return i&&typeof n[0]=="string"&&hu.call(n,"index")&&(t.index=n.index,t.input=n.input),t}function tk(n){var t=n.constructor;return typeof t=="function"&&t instanceof t||(t=ne),new t}function ik(n,t,i){var r=n.constructor,u,f;switch(t){case at:return vl(n);case d:case g:return new r(+n);case vt:case yt:case pt:case wt:case bt:case kt:case dt:case gt:case ni:return u=n.buffer,new r(i?vl(u):u,n.byteOffset,n.length);case nt:case it:return new r(n);case tt:f=new r(n.source,ai.exec(n));f.lastIndex=n.lastIndex}return f}function uh(t,i,r){t==null||ue(i,t)||(i=kf(i),t=i.length==1?t:re(t,hf(i,0,-1)),i=no(i));var u=t==null?t:t[i];return u==null?n:u.apply(t,r)}function lu(n){return n!=null&&vf(le(n))}function bf(n,t){return n=typeof n=="number"||ru.test(n)?+n:-1,t=t==null?yc:t,n>-1&&n%1==0&&n<t}function fi(n,t,i){var u,r;return di(i)?(u=typeof t,u=="number"?lu(i)&&bf(t,i.length):u=="string"&&t in i)?(r=i[t],n===n?n===r:r!==r):!1:!1}function ue(n,t){var i=typeof n,r;return i=="string"&&wr.test(n)||i=="number"?!0:ct(n)?!1:(r=!pr.test(n),r||t!=null&&n in af(t))}function fh(n){var r=ko(n),t=ut[r],i;return typeof t!="function"||!(r in ei.prototype)?!1:n===t?!0:(i=bo(t),!!i&&n===i[0])}function vf(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=yc}function pa(n){return n===n&&!di(n)}function rk(n,t){var f=n[1],u=t[1],o=f|u,s=o<l,h=u==l&&f==p||u==l&&f==ft&&n[7].length<=t[8]||u==(l|ft)&&f==p,i,r;return(s||h)?(u&e&&(n[2]=t[2],o|=f&e?0:ii),i=t[3],i&&(r=n[3],n[3]=r?yl(r,i,t[4]):vu(i),n[4]=r?v(n[3],lt):vu(t[4])),i=t[5],i&&(r=n[5],n[5]=r?pl(r,i,t[6]):vu(i),n[6]=r?v(n[5],lt):vu(t[6])),i=t[7],i&&(n[7]=vu(i)),u&l&&(n[8]=n[8]==null?t[8]:yu(n[8],t[8])),n[9]==null&&(n[9]=t[9]),n[0]=t[0],n[1]=o,n):n}function wa(t,i){return t===n?i:rs(t,i,wa)}function ba(n,t){var i;n=af(n);for(var r=-1,f=t.length,u={};++r<f;)i=t[r],i in n&&(u[i]=n[i]);return u}function ka(n,t){var i={};return ul(n,function(n,r,u){t(n,r,u)&&(i[r]=n)}),i}function uk(t,i){for(var f=t.length,r=yu(i.length,f),e=vu(t),u;r--;)u=i[r],t[r]=bf(u,f)?e[u]:n;return t}function da(n){for(var r=df(n),u=r.length,i=u&&n.length,o=!!i&&vf(i)&&(ct(n)||pf(n)),f=-1,e=[],t;++f<u;)t=r[f],(o&&bf(t,i)||hu.call(n,t))&&e.push(t);return e}function oh(n){return n==null?[]:lu(n)?di(n)?n:ne(n):fs(n)}function af(n){return di(n)?n:ne(n)}function kf(n){if(ct(n))return n;var t=[];return r(n).replace(br,function(n,i,r,u){t.push(r?u.replace(gr,"$1"):i||n)}),t}function ga(n){return n instanceof ei?n.clone():new cf(n.__wrapped__,n.__chain__,vu(n.__actions__))}function fk(n,t,i){t=(i?fi(n,t,i):t==null)?1:cu(te(t)||1,1);for(var r=0,u=n?n.length:0,e=-1,f=yi(io(u/t));r<u;)f[++e]=hf(n,r,r+=t);return f}function ek(n){for(var i=-1,u=n?n.length:0,f=-1,r=[],t;++i<u;)t=n[i],t&&(r[++f]=t);return r}function tv(n,t,i){var r=n?n.length:0;return r?((i?fi(n,t,i):t==null)&&(t=1),hf(n,t<0?0:t)):[]}function iv(n,t,i){var r=n?n.length:0;return r?((i?fi(n,t,i):t==null)&&(t=1),t=r-(+t||0),hf(n,0,t<0?0:t)):[]}function ok(n,t,i){return n&&n.length?vo(n,vi(t,i,3),!0,!0):[]}function sk(n,t,i){return n&&n.length?vo(n,vi(t,i,3),!0):[]}function hk(n,t,i,r){var u=n?n.length:0;return u?(i&&typeof i!="number"&&fi(n,t,i)&&(i=0,r=u),sb(n,t,i,r)):[]}function fv(t){return t?t[0]:n}function ck(n,t,i){var r=n?n.length:0;return i&&fi(n,t,i)&&(t=!1),r?pu(n,t):[]}function lk(n){var t=n?n.length:0;return t?pu(n,!0):[]}function sh(n,t,i){var u=n?n.length:0,r;if(!u)return-1;if(typeof i=="number")i=i<0?cu(u+i,0):i;else if(i)return(r=nh(n,t),r<u&&(t===t?t===n[r]:n[r]!==n[r]))?r:-1;return a(n,t,i||0)}function ak(n){return iv(n,1)}function no(t){var i=t?t.length:0;return i?t[i-1]:n}function vk(n,t,i){var u=n?n.length:0,r,f;if(!u)return-1;if(r=u,typeof i=="number")r=(i<0?cu(u+i,0):yu(i||0,u-1))+1;else if(i)return(r=nh(n,t,!0)-1,f=n[r],t===t?t===f:f!==f)?r:-1;if(t!==t)return ki(n,r,!0);while(r--)if(n[r]===t)return r;return-1}function yk(){var i=arguments,n=i[0],t,u;if(!(n&&n.length))return n;for(var r=0,f=ce(),e=i.length;++r<e;)for(t=0,u=i[r];(t=f(n,u,t))>-1;)sc.call(n,t,1);return n}function pk(n,t,i){var u=[],f;if(!(n&&n.length))return u;var r=-1,e=[],o=n.length;for(t=vi(t,i,3);++r<o;)f=n[r],t(f,r,n)&&(u.push(f),e.push(r));return sl(n,e),u}function sv(n){return tv(n,1)}function wk(n,t,i){var r=n?n.length:0;return r?(i&&typeof i!="number"&&fi(n,t,i)&&(t=0,i=r),hf(n,t,i)):[]}function bk(n,t,i){var r=n?n.length:0;return r?((i?fi(n,t,i):t==null)&&(t=1),hf(n,0,t<0?0:t)):[]}function kk(n,t,i){var r=n?n.length:0;return r?((i?fi(n,t,i):t==null)&&(t=1),t=r-(+t||0),hf(n,t<0?0:t)):[]}function dk(n,t,i){return n&&n.length?vo(n,vi(t,i,3),!1,!0):[]}function gk(n,t,i){return n&&n.length?vo(n,vi(t,i,3)):[]}function av(t,i,r,u){var e=t?t.length:0,f;return e?(i!=null&&typeof i!="boolean"&&(u=r,r=fi(t,i,u)?n:i,i=!1),f=vi(),r==null&&f===ho||(r=f(r,u,3)),i&&ce()===a?rf(t,r):ds(t,r)):[]}function hh(n){var i,t,r;if(!(n&&n.length))return[];for(i=-1,t=0,n=cs(n,function(n){if(lu(n))return t=cu(n.length,t),!0}),r=yi(t);++i<t;)r[i]=se(n,ws(i));return r}function vv(t,i,r){var f=t?t.length:0,u;return f?(u=hh(t),i==null)?u:(i=ef(i,r,4),se(u,function(t){return bc(t,i,n,!0)})):[]}function nd(){for(var i=-1,r=arguments.length,t,n;++i<r;)t=arguments[i],lu(t)&&(n=n?be(de(n,t),de(t,n)):t);return n?ds(n):[]}function wv(n,t){var r=-1,f=n?n.length:0,u={},i;for(!f||t||ct(n[0])||(t=[]);++r<f;)i=n[r],t?u[i]=t[r]:i&&(u[i[0]]=i[1]);return u}function kv(n){var t=ut(n);return t.__chain__=!0,t}function td(n,t,i){return t.call(i,n),n}function ch(n,t,i){return t.call(i,n)}function id(){return kv(this)}function rd(){return new cf(this.value(),this.__chain__)}function ud(n){for(var r,t=this,i,u;t instanceof oo;)i=ga(t),r?u.__wrapped__=i:r=i,u=i,t=t.__wrapped__;return u.__wrapped__=n,r}function fd(){var i=this.__wrapped__,r=function(n){return n.reverse()},t;return i instanceof ei?(t=i,this.__actions__.length&&(t=new ei(this)),t=t.reverse(),t.__actions__.push({func:ch,args:[r],thisArg:n}),new cf(t,this.__chain__)):this.thru(r)}function ed(){return this.value()+""}function od(){return ll(this.__wrapped__,this.__actions__)}function ty(t,i,r){var u=ct(t)?wc:eb;return r&&fi(t,i,r)&&(i=n),(typeof i!="function"||r!==n)&&(i=vi(i,r,3)),u(t,i)}function lh(n,t,i){var r=ct(n)?cs:il;return t=vi(t,i,3),r(n,t)}function sd(n,t){return go(n,ge(t))}function ah(n,t,i,r){var u=n?le(n):0;return vf(u)||(n=fs(n),u=n.length),i=typeof i!="number"||r&&fi(t,i,r)?0:i<0?cu(u+i,0):i||0,typeof n=="string"||!ct(n)&&kh(n)?i<=u&&n.indexOf(t,i)>-1:!!u&&ce(n,t,i)>-1}function vh(n,t,i){var r=ct(n)?se:ps;return t=vi(t,i,3),r(n,t)}function cd(n,t){return vh(n,os(t))}function ld(n,t,i){var r=ct(n)?cs:il;return t=vi(t,i,3),r(n,function(n,i,r){return!t(n,i,r)})}function ts(t,i,r){var f,o,s;if(r?fi(t,i,r):i==null)return t=oh(t),f=t.length,f>0?t[bs(0,f-1)]:n;var e=-1,u=np(t),f=u.length,h=f-1;for(i=yu(i<0?0:+i||0,f);++e<i;)o=bs(e,h),s=u[o],u[o]=u[e],u[e]=s;return u.length=i,u}function ad(n){return ts(n,ro)}function vd(n){var t=n?le(n):0;return vf(t)?t:au(n).length}function sy(t,i,r){var u=ct(t)?kc:vb;return r&&fi(t,i,r)&&(i=n),(typeof i!="function"||r!==n)&&(i=vi(i,r,3)),u(t,i)}function yd(t,i,r){var u,f;return t==null?[]:(r&&fi(t,i,r)&&(i=n),u=-1,i=vi(i,r,3),f=ps(t,function(n,t,r){return{criteria:i(n,t,r),index:++u,value:n}}),hl(f,bu))}function pd(t,i,r,u){return t==null?[]:(u&&fi(i,r,u)&&(r=n),ct(i)||(i=i==null?[]:[i]),ct(r)||(r=r==null?[]:[r]),cl(t,i,r))}function wd(n,t){return lh(n,ge(t))}function bd(n,t){if(typeof t!="function")if(typeof n=="function"){var i=n;n=t;t=i}else throw new of(f);return n=oe(n=+n)?n:0,function(){if(--n<1)return t.apply(this,arguments)}}function kd(t,i,r){return r&&fi(t,i,r)&&(i=n),i=t&&i==null?t.length:cu(+i||0,0),wf(t,l,n,n,n,n,i)}function cy(t,i){var r,u;if(typeof i!="function")if(typeof t=="function")u=t,t=i,i=u;else throw new of(f);return function(){return--t>0&&(r=i.apply(this,arguments)),t<=1&&(i=n),r}}function vy(t,i,r){function d(){u&&pe(u);e&&pe(e);c=0;e=u=p=n}function w(i,r){r&&pe(r);e=u=p=n;i&&(c=ve(),y=t.apply(s,o),u||e||(o=s=n))}function b(){var n=i-(ve()-h);n<=0||n>i?w(p,e):u=to(b,n)}function g(){w(a,u)}function k(){var w,f,r;return o=arguments,h=ve(),s=this,p=a&&(u||!v),l===!1?w=v&&!u:(e||v||(c=h),f=l-(h-c),r=f<=0||f>l,r?(e&&(e=pe(e)),c=h,y=t.apply(s,o)):e||(e=to(g,f))),r&&u?u=pe(u):u||i===l||(u=to(b,i)),w&&(r=!0,y=t.apply(s,o)),!r||u||e||(o=s=n),y}var o,e,y,h,s,u,p,c=0,l=!1,a=!0,v;if(typeof t!="function")throw new of(f);return i=i<0?0:+i||0,r===!0?(v=!0,a=!1):di(r)&&(v=!!r.leading,l="maxWait"in r&&cu(+r.maxWait||0,i),a="trailing"in r?!!r.trailing:a),k.cancel=d,k}function wh(n,t){if(typeof n!="function"||t&&typeof t!="function")throw new of(f);var i=function(){var r=arguments,u=t?t.apply(this,r):r[0],f=i.cache,e;return f.has(u)?f.get(u):(e=n.apply(this,r),i.cache=f.set(u,e),e)};return i.cache=new wh.Cache,i}function ug(n){if(typeof n!="function")throw new of(f);return function(){return!n.apply(this,arguments)}}function fg(n){return cy(2,n)}function oi(t,i){if(typeof t!="function")throw new of(f);return i=cu(i===n?t.length-1:+i||0,0),function(){for(var r=arguments,n=-1,e=cu(r.length-i,0),u=yi(e),f;++n<e;)u[n]=r[i+n];switch(i){case 0:return t.call(this,u);case 1:return t.call(this,r[0],u);case 2:return t.call(this,r[0],r[1],u)}for(f=yi(i+1),n=-1;++n<i;)f[n]=r[n];return f[i]=u,t.apply(this,f)}}function hg(n){if(typeof n!="function")throw new of(f);return function(t){return n.apply(this,t)}}function cg(n,t,i){var r=!0,u=!0;if(typeof n!="function")throw new of(f);return i===!1?r=!1:di(i)&&(r="leading"in i?!!i.leading:r,u="trailing"in i?!!i.trailing:u),vy(n,t,{leading:r,maxWait:+t,trailing:u})}function lg(t,i){return i=i==null?ee:i,wf(i,o,n,[t],[])}function ag(n,t,i,r){return t&&typeof t!="boolean"&&fi(n,t,i)?t=!1:typeof t=="function"&&(r=i,i=t,t=!1),typeof i=="function"?ie(n,t,ef(i,r,3)):ie(n,t)}function vg(n,t,i){return typeof t=="function"?ie(n,!0,ef(t,i,3)):ie(n,!0)}function py(n,t){return n>t}function yg(n,t){return n>=t}function pf(n){return u(n)&&lu(n)&&hu.call(n,"callee")&&!fw.call(n,"callee")}function pg(n){return n===!0||n===!1||u(n)&&ff.call(n)==d}function wg(n){return u(n)&&ff.call(n)==g}function bg(n){return!!n&&n.nodeType===1&&u(n)&&!is(n)}function kg(n){return n==null?!0:lu(n)&&(ct(n)||kh(n)||pf(n)||u(n)&&fe(n.splice))?!n.length:!au(n).length}function wy(t,i,r,u){r=typeof r=="function"?ef(r,u,3):n;var f=r?r(t,i):n;return f===n?ao(t,i,r):!!f}function bh(n){return u(n)&&typeof n.message=="string"&&ff.call(n)==ot}function dg(n){return typeof n=="number"&&oe(n)}function fe(n){return di(n)&&ff.call(n)==st}function di(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function gg(t,i,r,u){return r=typeof r=="function"?ef(r,u,3):n,fl(t,ya(i),r)}function nn(n){return ky(n)&&n!=+n}function by(n){return n==null?!1:fe(n)?tw.test(ec.call(n)):u(n)&&iu.test(n)}function tn(n){return n===null}function ky(n){return typeof n=="number"||u(n)&&ff.call(n)==nt}function is(t){var i,r;return!(u(t)&&ff.call(t)==s&&!pf(t))||!hu.call(t,"constructor")&&(i=t.constructor,typeof i=="function"&&!(i instanceof i))?!1:(ul(t,function(n,t){r=t}),r===n||hu.call(t,r))}function dy(n){return di(n)&&ff.call(n)==tt}function kh(n){return typeof n=="string"||u(n)&&ff.call(n)==it}function ye(n){return u(n)&&vf(n.length)&&!!i[ff.call(n)]}function rn(t){return t===n}function gy(n,t){return n<t}function un(n,t){return n<=t}function np(n){var t=n?le(n):0;return vf(t)?t?vu(n):[]:fs(n)}function tp(n){return nl(n,df(n))}function fn(t,i,r){var u=he(t);return r&&fi(t,i,r)&&(i=n),i?ke(u,i):u}function dh(n){return ys(n,df(n))}function yn(t,i,r){var u=t==null?n:re(t,kf(i),i+"");return u===n?r:u}function pn(n,t){if(n==null)return!1;var i=hu.call(n,t);if(!i&&!ue(t)){if(t=kf(t),n=t.length==1?n:re(n,hf(t,0,-1)),n==null)return!1;t=no(t);i=hu.call(n,t)}return i||vf(n.length)&&bf(t,n.length)&&(ct(n)||pf(n))}function wn(t,i,r){var f,e;r&&fi(t,i,r)&&(i=n);for(var o=-1,s=au(t),h=s.length,u={};++o<h;)f=s[o],e=t[f],i?hu.call(u,e)?u[e].push(f):u[e]=[f]:u[e]=f;return u}function df(n){var t,i;if(n==null)return[];di(n)||(n=ne(n));t=n.length;t=t&&vf(t)&&(ct(n)||pf(n))&&t||0;for(var f=n.constructor,r=-1,e=typeof f=="function"&&f.prototype===n,u=yi(t),o=t>0;++r<t;)u[r]=r+"";for(i in n)o&&bf(i,t)||i=="constructor"&&(e||!hu.call(n,i))||u.push(i);return u}function ip(n){var i;n=af(n);for(var t=-1,r=au(n),u=r.length,f=yi(u);++t<u;)i=r[t],f[t]=[i,n[i]];return f}function gn(t,i,r){var u=t==null?n:t[i];return u===n&&(t==null||ue(i,t)||(i=kf(i),t=i.length==1?t:re(t,hf(i,0,-1)),u=t==null?n:t[no(i)]),u=u===n?r:u),fe(u)?u.call(t):u}function ntt(n,t,i){var e,u;if(n==null)return n;e=t+"";t=n[e]!=null||ue(t,n)?[e]:kf(t);for(var f=-1,o=t.length,s=o-1,r=n;r!=null&&++f<o;)u=t[f],di(r)&&(f==s?r[u]=i:r[u]==null&&(r[u]=bf(t[f+1])?[]:{})),r=r[u];return n}function ttt(t,i,r,u){var e=ct(t)||ye(t),f;return i=vi(i,u,4),r==null&&(e||di(t)?(f=t.constructor,r=e?ct(t)?new f:[]:he(fe(f)?f.prototype:n)):r={}),(e?lf:yf)(t,function(n,t,u){return i(r,n,t,u)}),r}function fs(n){return gs(n,au(n))}function itt(n){return gs(n,df(n))}function rtt(t,i,r){return i=+i||0,r===n?(r=i,i=0):r=+r||0,t>=yu(i,r)&&t<cu(i,r)}function utt(t,i,r){var e,u,f;return(r&&fi(t,i,r)&&(i=r=n),e=t==null,u=i==null,r==null&&(u&&typeof t=="boolean"?(r=t,t=1):typeof i=="boolean"&&(r=i,u=!0)),e&&u&&(i=1,u=!1),t=+t||0,u?(i=t,t=0):i=+i||0,r||t%1||i%1)?(f=vc(),yu(t+f*(i-t+rw("1e-"+((f+"").length-1))),i)):bs(t,i)}function ftt(n){return n=r(n),n&&n.charAt(0).toUpperCase()+n.slice(1)}function fp(n){return n=r(n),n&&n.replace(uu,du).replace(dr,"")}function ett(t,i,u){t=r(t);i=i+"";var f=t.length;return u=u===n?f:yu(u<0?0:+u||0,f),u-=i.length,u>=0&&t.indexOf(i,u)==u}function ott(n){return n=r(n),n&&ar.test(n)?n.replace(hi,gu):n}function stt(n){return n=r(n),n&&kr.test(n)?n.replace(li,nf):n||"(?:)"}function htt(n,t,i){var u;if(n=r(n),t=+t,u=n.length,u>=t||!oe(t))return n;var f=(t-u)/2,e=te(f),o=io(f);return i=aa("",o,i),i.slice(0,e)+n+i}function ctt(n,t,i){return(i?fi(n,t,i):t==null)?t=0:t&&(t=+t),n=ap(n),sw(n,t||(tu.test(n)?16:10))}function hp(n,t){var i="";if(n=r(n),t=+t,t<1||!n||!oe(t))return i;do t%2&&(i+=n),t=te(t/2),n+=n;while(t);return i}function ltt(n,t,i){return n=r(n),i=i==null?0:yu(i<0?0:+i||0,n.length),n.lastIndexOf(t,i)==i}function att(t,i,u){var h=ut.templateSettings,o,e;u&&fi(t,i,u)&&(i=u=n);t=r(t);i=ls(ke({},u||i),h,dc);var c=ls(ke({},i.imports),h.imports,dc),l=au(c),p=gs(c,l),a,s,v=0,y=i.interpolate||ht,f="__p += '",w=ss((i.escape||ht).source+"|"+y.source+"|"+(y===ci?nu:ht).source+"|"+(i.evaluate||ht).source+"|$","g"),b="//# sourceURL="+("sourceURL"in i?i.sourceURL:"lodash.templateSources["+ ++su+"]")+"\n";if(t.replace(w,function(n,i,r,u,e,o){return r||(r=u),f+=t.slice(v,o).replace(fu,tf),i&&(a=!0,f+="' +\n__e("+i+") +\n'"),e&&(s=!0,f+="';\n"+e+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),v=o+n.length,n}),f+="';\n",o=i.variable,o||(f="with (obj) {\n"+f+"\n}\n"),f=(s?f.replace(sr,""):f).replace(hr,"$1").replace(cr,"$1;"),f="function("+(o||"obj")+") {\n"+(o?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}",e=gh(function(){return ic(l,b+"return "+f).apply(n,p)}),e.source=f,bh(e))throw e;return e}function ap(n,t,i){var u=n;return(n=r(n),!n)?n:(i?fi(u,t,i):t==null)?n.slice(gi(n),nr(n)+1):(t=t+"",n.slice(wi(n,t),bi(n,t)+1))}function vtt(n,t,i){var u=n;return(n=r(n),!n)?n:(i?fi(u,t,i):t==null)?n.slice(gi(n)):n.slice(wi(n,t+""))}function ytt(n,t,i){var u=n;return(n=r(n),!n)?n:(i?fi(u,t,i):t==null)?n.slice(0,nr(n)+1):n.slice(0,bi(n,t+"")+1)}function ptt(t,i,u){var h,s,f,e,o,a,c,v,l;if(u&&fi(t,i,u)&&(i=n),h=rr,s=ur,i!=null&&(di(i)?(f="separator"in i?i.separator:f,h="length"in i?+i.length||0:h,s="omission"in i?r(i.omission):s):h=+i||0),t=r(t),h>=t.length)return t;if(e=h-s.length,e<1)return s;if(o=t.slice(0,e),f==null)return o+s;if(dy(f)){if(t.slice(e).search(f)){for(v=t.slice(0,e),f.global||(f=ss(f.source,(ai.exec(f)||"")+"g")),f.lastIndex=0;a=f.exec(v);)c=a.index;o=o.slice(0,c==null?e:c)}}else t.indexOf(f,e)!=e&&(l=o.lastIndexOf(f),l>-1&&(o=o.slice(0,l)));return o+s}function wtt(n){return n=r(n),n&&lr.test(n)?n.replace(si,uf):n}function vp(t,i,u){return u&&fi(t,i,u)&&(i=n),t=r(t),t.match(i||eu)||[]}function es(t,i,r){return r&&fi(t,i,r)&&(i=n),u(t)?yp(t):ho(t,i)}function btt(n){return function(){return n}}function ee(n){return n}function yp(n){return ge(ie(n,!0))}function ktt(n,t){return el(n,ie(t,!0))}function nc(t,i,r){var f,s;if(r==null){var h=di(i),e=h?au(i):n,u=e&&e.length?ys(i,e):n;(u?u.length:h)||(u=!1,r=i,i=t,t=this)}u||(u=ys(i,au(i)));var o=!0,c=-1,l=fe(t),a=u.length;for(r===!1?o=!1:di(r)&&("chain"in r)&&(o=r.chain);++c<a;)f=u[c],s=i[f],t[f]=s,l&&(t.prototype[f]=function(n){return function(){var r=this.__chain__,i,u;return o||r?(i=t(this.__wrapped__),u=i.__actions__=vu(this.__actions__),u.push({func:n,args:arguments,thisArg:t}),i.__chain__=r,i):n.apply(t,be([this.value()],arguments))}}(s));return t}function dtt(){return h._=nw,this}function bp(){}function os(n){return ue(n)?ws(n):lb(n)}function gtt(n){return function(t){return re(n,kf(t),t+"")}}function nit(t,i,r){r&&fi(t,i,r)&&(i=r=n);t=+t||0;r=r==null?1:+r||0;i==null?(i=t,t=0):i=+i||0;for(var u=-1,f=cu(io((i-t)/(r||1)),0),e=yi(f);++u<f;)e[u]=t,t+=r;return e}function tit(n,t,i){if(n=te(n),n<1||!oe(n))return[];var r=-1,u=yi(yu(n,uo));for(t=ef(t,i,1);++r<n;)r<uo?u[r]=t(r):t(r);return u}function iit(n){var t=++gp;return r(n)+t}function rit(n,t){return(+n||0)+(+t||0)}function hit(t,i,r){return r&&fi(t,i,r)&&(i=n),i=vi(i,r,3),i.length==1?ub(ct(t)?t:oh(t),i):yb(t,i)}var aw,he,sf,co,lo,as,ks,bo,le,eh,nv,rv,uv,ev,ov,hv,cv,lv,yv,pv,bv,dv,gv,ny,go,iy,fy,ey,oy,ns,yh,hy,ve,yy,ct,rs,us,au,rp,up,ep,op,sp,cp,lp,gh,pp,wp;rt=rt?c.defaults(h.Object(),rt,c.pick(h,ou)):h;var yi=rt.Array,tc=rt.Date,kp=rt.Error,ic=rt.Function,gf=rt.Math,rc=rt.Number,ne=rt.Object,ss=rt.RegExp,uc=rt.String,of=rt.TypeError,fc=yi.prototype,hs=ne.prototype,dp=uc.prototype,ec=ic.prototype.toString,hu=hs.hasOwnProperty,gp=0,ff=hs.toString,nw=h._,tw=ss("^"+ec.call(hu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),iw=rt.ArrayBuffer,pe=rt.clearTimeout,rw=rt.parseFloat,uw=gf.pow,fw=hs.propertyIsEnumerable,oc=ae(rt,"Set"),to=rt.setTimeout,sc=fc.splice,hc=rt.Uint8Array,cc=ae(rt,"WeakMap"),io=gf.ceil,lc=ae(ne,"create"),te=gf.floor,ew=ae(yi,"isArray"),oe=rt.isFinite,ac=ae(ne,"keys"),cu=gf.max,yu=gf.min,ow=ae(tc,"now"),sw=rt.parseInt,vc=gf.random,hw=rc.NEGATIVE_INFINITY,ro=rc.POSITIVE_INFINITY,uo=4294967295,cw=uo-1,lw=uo>>>1,yc=9007199254740991,fo=cc&&new cc,eo={};aw=ut.support={};ut.templateSettings={escape:vr,evaluate:yr,interpolate:ci,variable:"",imports:{_:ut}};he=function(){function t(){}return function(i){if(di(i)){t.prototype=i;var r=new t;t.prototype=n}return r||{}}}();sf=bl(yf);co=bl(vs,!0);lo=kl();as=kl(!0);ks=fo?function(n,t){return fo.set(n,t),n}:ee;bo=fo?function(n){return fo.get(n)}:bp;le=ws("length");eh=function(){var n=0,t=0;return function(i,r){var u=ve(),f=er-(u-t);if(t=u,f>0){if(++n>=fr)return i}else n=0;return ks(i,r)}}();nv=oi(function(n,t){return u(n)&&lu(n)?de(n,pu(t,!1,!0)):[]});rv=ia();uv=ia(!0);ev=oi(function(n){for(var h=n.length,i=h,u=yi(l),f=ce(),v=f===a,e=[],t,s;i--;)t=n[i]=lu(t=n[i])?t:[],u[i]=v&&t.length>=120?th(i&&t):null;var o=n[0],c=-1,l=o?o.length:0,r=u[0];n:while(++c<l)if(t=o[c],(r?so(r,t):f(e,t,0))<0){for(i=h;--i;)if(s=u[i],(s?so(s,t):f(n[i],t,0))<0)continue n;r&&r.push(t);e.push(t)}return e});ov=oi(function(n,t){t=pu(t);var i=gc(n,t);return sl(n,t.sort(ti)),i});hv=va();cv=va(!0);lv=oi(function(n){return ds(pu(n,!1,!0))});yv=oi(function(n,t){return lu(n)?de(n,t):[]});pv=oi(hh);bv=oi(function(t){var i=t.length,u=i>2?t[i-2]:n,r=i>1?t[i-1]:n;return i>2&&typeof u=="function"?i-=2:(u=i>1&&typeof r=="function"?(--i,r):n,r=n),t.length=i,vv(t,u,r)});dv=oi(function(n){return n=pu(n),this.thru(function(t){return nb(ct(t)?t:[af(t)],n)})});gv=oi(function(n,t){return gc(n,pu(t))});ny=yo(function(n,t,i){hu.call(n,i)?++n[i]:n[i]=1});go=ta(sf);iy=ta(co,!0);var ry=fa(lf,sf),uy=fa(tb,co),hd=yo(function(n,t,i){hu.call(n,i)?n[i].push(t):n[i]=[t]});fy=yo(function(n,t,i){n[i]=t});ey=oi(function(t,i,r){var f=-1,e=typeof i=="function",o=ue(i),u=lu(t)?yi(t.length):[];return sf(t,function(t){var s=e?i:o&&t!=null?t[i]:n;u[++f]=s?s.apply(t,r):uh(t,i,r)}),u});oy=yo(function(n,t,i){n[i?0:1].push(t)},function(){return[[],[]]});ns=la(bc,sf);yh=la(rb,co);hy=oi(function(n,t){if(n==null)return[];var i=t[2];return i&&fi(t[0],t[1],i)&&(t.length=1),cl(n,pu(t),[])});ve=ow||function(){return(new tc).getTime()};var ly=oi(function(n,t,i){var r=e,u;return i.length&&(u=v(i,ly.placeholder),r|=o),wf(n,r,t,i,u)}),dd=oi(function(n,t){var i,u,r;for(t=t.length?pu(t):dh(n),i=-1,u=t.length;++i<u;)r=t[i],n[r]=wf(n[r],e,n);return n}),ay=oi(function(n,t,i){var r=e|y,u;return i.length&&(u=v(i,ay.placeholder),r|=o),wf(t,r,n,i,u)}),gd=dl(p),ng=dl(ri);var tg=oi(function(n,t){return tl(n,1,t)}),ig=oi(function(n,t,i){return tl(n,t,i)}),rg=ua(),ph=ua(!0);yy=oi(function(n,t){if(t=pu(t),typeof n!="function"||!wc(t,wu))throw new of(f);var i=t.length;return oi(function(r){for(var u=yu(r.length,i);u--;)r[u]=t[u](r[u]);return n.apply(this,r)})});var eg=ca(o),og=ca(w),sg=oi(function(t,i){return wf(t,ft,n,n,n,pu(i))});ct=ew||function(n){return u(n)&&vf(n.length)&&ff.call(n)==k};rs=wl(ol);us=wl(function(n,t,i){return i?ls(n,t,i):ke(n,t)});var en=gl(us,fb),on=gl(rs,wa),sn=ra(yf),hn=ra(vs),cn=ea(lo),ln=ea(as),an=oa(yf),vn=oa(vs);au=ac?function(t){var i=t==null?n:t.constructor;return typeof i=="function"&&i.prototype===t||typeof t!="function"&&lu(t)?da(t):di(t)?ac(t):[]}:da;var bn=sa(!0),kn=sa(),dn=oi(function(n,t){var t,i;return n==null?{}:typeof t[0]!="function"?(t=se(pu(t),uc),ba(n,de(df(n),t))):(i=ef(t[0],t[1],3),ka(n,function(n,t,r){return!i(n,t,r)}))});rp=oi(function(n,t){return n==null?{}:typeof t[0]=="function"?ka(n,ef(t[0],t[1],3)):ba(n,pu(t))});up=po(function(n,t,i){return t=t.toLowerCase(),n+(i?t.charAt(0).toUpperCase()+t.slice(1):t)});ep=po(function(n,t,i){return n+(i?"-":"")+t.toLowerCase()});op=ha();sp=ha(!0);cp=po(function(n,t,i){return n+(i?"_":"")+t.toLowerCase()});lp=po(function(n,t,i){return n+(i?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))});gh=oi(function(t,i){try{return t.apply(n,i)}catch(r){return bh(r)?r:new kp(r)}});pp=oi(function(n,t){return function(i){return uh(i,n,t)}});wp=oi(function(n,t){return function(i){return uh(n,i,t)}});var uit=rh("ceil"),fit=rh("floor"),eit=na(py,hw),oit=na(gy,ro),sit=rh("round");return ut.prototype=oo.prototype,cf.prototype=he(oo.prototype),cf.prototype.constructor=cf,ei.prototype=he(oo.prototype),ei.prototype.constructor=ei,we.prototype["delete"]=ww,we.prototype.get=bw,we.prototype.has=kw,we.prototype.set=dw,pc.prototype.push=gw,wh.Cache=we,ut.after=bd,ut.ary=kd,ut.assign=us,ut.at=gv,ut.before=cy,ut.bind=ly,ut.bindAll=dd,ut.bindKey=ay,ut.callback=es,ut.chain=kv,ut.chunk=fk,ut.compact=ek,ut.constant=btt,ut.countBy=ny,ut.create=fn,ut.curry=gd,ut.curryRight=ng,ut.debounce=vy,ut.defaults=en,ut.defaultsDeep=on,ut.defer=tg,ut.delay=ig,ut.difference=nv,ut.drop=tv,ut.dropRight=iv,ut.dropRightWhile=ok,ut.dropWhile=sk,ut.fill=hk,ut.filter=lh,ut.flatten=ck,ut.flattenDeep=lk,ut.flow=rg,ut.flowRight=ph,ut.forEach=ry,ut.forEachRight=uy,ut.forIn=cn,ut.forInRight=ln,ut.forOwn=an,ut.forOwnRight=vn,ut.functions=dh,ut.groupBy=hd,ut.indexBy=fy,ut.initial=ak,ut.intersection=ev,ut.invert=wn,ut.invoke=ey,ut.keys=au,ut.keysIn=df,ut.map=vh,ut.mapKeys=bn,ut.mapValues=kn,ut.matches=yp,ut.matchesProperty=ktt,ut.memoize=wh,ut.merge=rs,ut.method=pp,ut.methodOf=wp,ut.mixin=nc,ut.modArgs=yy,ut.negate=ug,ut.omit=dn,ut.once=fg,ut.pairs=ip,ut.partial=eg,ut.partialRight=og,ut.partition=oy,ut.pick=rp,ut.pluck=cd,ut.property=os,ut.propertyOf=gtt,ut.pull=yk,ut.pullAt=ov,ut.range=nit,ut.rearg=sg,ut.reject=ld,ut.remove=pk,ut.rest=sv,ut.restParam=oi,ut.set=ntt,ut.shuffle=ad,ut.slice=wk,ut.sortBy=yd,ut.sortByAll=hy,ut.sortByOrder=pd,ut.spread=hg,ut.take=bk,ut.takeRight=kk,ut.takeRightWhile=dk,ut.takeWhile=gk,ut.tap=td,ut.throttle=cg,ut.thru=ch,ut.times=tit,ut.toArray=np,ut.toPlainObject=tp,ut.transform=ttt,ut.union=lv,ut.uniq=av,ut.unzip=hh,ut.unzipWith=vv,ut.values=fs,ut.valuesIn=itt,ut.where=wd,ut.without=yv,ut.wrap=lg,ut.xor=nd,ut.zip=pv,ut.zipObject=wv,ut.zipWith=bv,ut.backflow=ph,ut.collect=vh,ut.compose=ph,ut.each=ry,ut.eachRight=uy,ut.extend=us,ut.iteratee=es,ut.methods=dh,ut.object=wv,ut.select=lh,ut.tail=sv,ut.unique=av,nc(ut,ut),ut.add=rit,ut.attempt=gh,ut.camelCase=up,ut.capitalize=ftt,ut.ceil=uit,ut.clone=ag,ut.cloneDeep=vg,ut.deburr=fp,ut.endsWith=ett,ut.escape=ott,ut.escapeRegExp=stt,ut.every=ty,ut.find=go,ut.findIndex=rv,ut.findKey=sn,ut.findLast=iy,ut.findLastIndex=uv,ut.findLastKey=hn,ut.findWhere=sd,ut.first=fv,ut.floor=fit,ut.get=yn,ut.gt=py,ut.gte=yg,ut.has=pn,ut.identity=ee,ut.includes=ah,ut.indexOf=sh,ut.inRange=rtt,ut.isArguments=pf,ut.isArray=ct,ut.isBoolean=pg,ut.isDate=wg,ut.isElement=bg,ut.isEmpty=kg,ut.isEqual=wy,ut.isError=bh,ut.isFinite=dg,ut.isFunction=fe,ut.isMatch=gg,ut.isNaN=nn,ut.isNative=by,ut.isNull=tn,ut.isNumber=ky,ut.isObject=di,ut.isPlainObject=is,ut.isRegExp=dy,ut.isString=kh,ut.isTypedArray=ye,ut.isUndefined=rn,ut.kebabCase=ep,ut.last=no,ut.lastIndexOf=vk,ut.lt=gy,ut.lte=un,ut.max=eit,ut.min=oit,ut.noConflict=dtt,ut.noop=bp,ut.now=ve,ut.pad=htt,ut.padLeft=op,ut.padRight=sp,ut.parseInt=ctt,ut.random=utt,ut.reduce=ns,ut.reduceRight=yh,ut.repeat=hp,ut.result=gn,ut.round=sit,ut.runInContext=tr,ut.size=vd,ut.snakeCase=cp,ut.some=sy,ut.sortedIndex=hv,ut.sortedLastIndex=cv,ut.startCase=lp,ut.startsWith=ltt,ut.sum=hit,ut.template=att,ut.trim=ap,ut.trimLeft=vtt,ut.trimRight=ytt,ut.trunc=ptt,ut.unescape=wtt,ut.uniqueId=iit,ut.words=vp,ut.all=ty,ut.any=sy,ut.contains=ah,ut.eq=wy,ut.detect=go,ut.foldl=ns,ut.foldr=yh,ut.head=fv,ut.include=ah,ut.inject=ns,nc(ut,function(){var n={};return yf(ut,function(t,i){ut.prototype[i]||(n[i]=t)}),n}(),!1),ut.sample=ts,ut.prototype.sample=function(n){return!this.__chain__&&n==null?ts(this.value()):this.thru(function(t){return ts(t,n)})},ut.VERSION=ir,lf(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){ut[n].placeholder=ut}),lf(["drop","take"],function(n,t){ei.prototype[n]=function(i){var u=this.__filtered__,r;return u&&!t?new ei(this):(i=i==null?1:cu(te(i)||0,0),r=this.clone(),u?r.__takeCount__=yu(r.__takeCount__,i):r.__views__.push({size:i,type:n+(r.__dir__<0?"Right":"")}),r)};ei.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),lf(["filter","map","takeWhile"],function(n,t){var i=t+1,r=i!=ui;ei.prototype[n]=function(n,t){var u=this.clone();return u.__iteratees__.push({iteratee:vi(n,t,1),type:i}),u.__filtered__=u.__filtered__||r,u}}),lf(["first","last"],function(n,t){var i="take"+(t?"Right":"");ei.prototype[n]=function(){return this[i](1).value()[0]}}),lf(["initial","rest"],function(n,t){var i="drop"+(t?"":"Right");ei.prototype[n]=function(){return this.__filtered__?new ei(this):this[i](1)}}),lf(["pluck","where"],function(n,t){var i=t?"filter":"map",r=t?ge:os;ei.prototype[n]=function(n){return this[i](r(n))}}),ei.prototype.compact=function(){return this.filter(ee)},ei.prototype.reject=function(n,t){return n=vi(n,t,1),this.filter(function(t){return!n(t)})},ei.prototype.slice=function(t,i){t=t==null?0:+t||0;var r=this;return r.__filtered__&&(t>0||i<0)?new ei(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),i!==n&&(i=+i||0,r=i<0?r.dropRight(-i):r.take(i-t)),r)},ei.prototype.takeRightWhile=function(n,t){return this.reverse().takeWhile(n,t).reverse()},ei.prototype.toArray=function(){return this.take(ro)},yf(ei.prototype,function(t,i){var f=/^(?:filter|map|reject)|While$/.test(i),r=/^(?:first|last)$/.test(i),u=ut[r?"take"+(i=="last"?"Right":""):i];u&&(ut.prototype[i]=function(){var e=r?[1]:arguments,o=this.__chain__,i=this.__wrapped__,p=!!this.__actions__.length,s=i instanceof ei,l=e[0],h=s||ct(i),c;h&&f&&typeof l=="function"&&l.length!=1&&(s=h=!1);var a=function(t){return r&&o?u(t,1)[0]:u.apply(n,be([t],e))},v={func:ch,args:[a],thisArg:n},y=s&&!p;return r&&!o?y?(i=i.clone(),i.__actions__.push(v),t.call(i)):u.call(n,this.value())[0]:!r&&h?(i=y?i:new ei(this),c=t.apply(i,e),c.__actions__.push(v),new cf(c,o)):this.thru(a)})}),lf(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(n){var t=(/^(?:replace|split)$/.test(n)?dp:fc)[n],i=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:join|pop|replace|shift)$/.test(n);ut.prototype[n]=function(){var n=arguments;return r&&!this.__chain__?t.apply(this.value(),n):this[i](function(i){return t.apply(i,n)})}}),yf(ei.prototype,function(n,t){var i=ut[t],r,u;i&&(r=i.name+"",u=eo[r]||(eo[r]=[]),u.push({name:t,func:i}))}),eo[ih(n,y).name]=[{name:"wrapper",func:n}],ei.prototype.clone=vw,ei.prototype.reverse=yw,ei.prototype.value=pw,ut.prototype.chain=id,ut.prototype.commit=rd,ut.prototype.concat=dv,ut.prototype.plant=ud,ut.prototype.reverse=fd,ut.prototype.toString=ed,ut.prototype.run=ut.prototype.toJSON=ut.prototype.valueOf=ut.prototype.value=od,ut.prototype.collect=ut.prototype.map,ut.prototype.head=ut.prototype.first,ut.prototype.select=ut.prototype.filter,ut.prototype.tail=ut.prototype.rest,ut}var n,ir="3.10.1",e=1,y=2,ii=4,p=8,ri=16,o=32,w=64,l=128,ft=256,rr=30,ur="...",fr=150,er=16,et=200,or=1,ui=2,f="Expected a function",lt="__lodash_placeholder__",b="[object Arguments]",k="[object Array]",d="[object Boolean]",g="[object Date]",ot="[object Error]",st="[object Function]",fi="[object Map]",nt="[object Number]",s="[object Object]",tt="[object RegExp]",ei="[object Set]",it="[object String]",oi="[object WeakMap]",at="[object ArrayBuffer]",vt="[object Float32Array]",yt="[object Float64Array]",pt="[object Int8Array]",wt="[object Int16Array]",bt="[object Int32Array]",kt="[object Uint8Array]",dt="[object Uint8ClampedArray]",gt="[object Uint16Array]",ni="[object Uint32Array]",sr=/\b__p \+= '';/g,hr=/\b(__p \+=) '' \+/g,cr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,si=/&(?:amp|lt|gt|quot|#39|#96);/g,hi=/[&<>"'`]/g,lr=RegExp(si.source),ar=RegExp(hi.source),vr=/<%-([\s\S]+?)%>/g,yr=/<%([\s\S]+?)%>/g,ci=/<%=([\s\S]+?)%>/g,pr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,wr=/^\w*$/,br=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,li=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,kr=RegExp(li.source),dr=/[\u0300-\u036f\ufe20-\ufe23]/g,gr=/\\(\\)?/g,nu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ai=/\w*$/,tu=/^0[xX]/,iu=/^\[object .+?Constructor\]$/,ru=/^\d+$/,uu=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,ht=/($^)/,fu=/['\n\r\u2028\u2029\\]/g,eu=function(){var n="[A-Z\\xc0-\\xd6\\xd8-\\xde]",t="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(n+"+(?="+n+t+")|"+n+"?"+t+"|"+n+"+|[0-9]+","g")}(),ou=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],su=-1,i={},t,c;i[vt]=i[yt]=i[pt]=i[wt]=i[bt]=i[kt]=i[dt]=i[gt]=i[ni]=!0;i[b]=i[k]=i[at]=i[d]=i[g]=i[ot]=i[st]=i[fi]=i[nt]=i[s]=i[tt]=i[ei]=i[it]=i[oi]=!1;t={};t[b]=t[k]=t[at]=t[d]=t[g]=t[vt]=t[yt]=t[pt]=t[wt]=t[bt]=t[nt]=t[s]=t[tt]=t[it]=t[kt]=t[dt]=t[gt]=t[ni]=!0;t[ot]=t[st]=t[fi]=t[ei]=t[oi]=!1;var hu={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},cu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},lu={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},ct={"function":!0,object:!0},au={"0":"x30","1":"x31","2":"x32","3":"x33","4":"x34","5":"x35","6":"x36","7":"x37","8":"x38","9":"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},vi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rt=ct[typeof exports]&&exports&&!exports.nodeType&&exports,ut=ct[typeof module]&&module&&!module.nodeType&&module,vu=rt&&ut&&typeof global=="object"&&global&&global.Object&&global,yu=ct[typeof self]&&self&&self.Object&&self,yi=ct[typeof window]&&window&&window.Object&&window,pu=ut&&ut.exports===rt&&rt,h=vu||yi!==(this&&this.window)&&yi||yu||this;c=tr();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(h._=c,define(function(){return c})):rt&&ut?pu?(ut.exports=c)._=c:rt._=c:h._=c}.call(this),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function i(){return ru.apply(null,arguments)}function eo(n){ru=n}function ui(n){return Object.prototype.toString.call(n)==="[object Array]"}function fi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function oo(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function ft(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function ei(n,t){for(var i in t)ft(t,i)&&(n[i]=t[i]);return ft(t,"toString")&&(n.toString=t.toString),ft(t,"valueOf")&&(n.valueOf=t.valueOf),n}function kt(n,t,i,r){return sf(n,t,i,r,!0).utc()}function so(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function e(n){return n._pf==null&&(n._pf=so()),n._pf}function uu(n){if(n._isValid==null){var t=e(n);n._isValid=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated;n._strict&&(n._isValid=n._isValid&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined)}return n._isValid}function fu(n){var t=kt(NaN);return n!=null?ei(e(t),n):e(t).userInvalidated=!0,t}function gi(n,t){var u,i,r;if(typeof t._isAMomentObject!="undefined"&&(n._isAMomentObject=t._isAMomentObject),typeof t._i!="undefined"&&(n._i=t._i),typeof t._f!="undefined"&&(n._f=t._f),typeof t._l!="undefined"&&(n._l=t._l),typeof t._strict!="undefined"&&(n._strict=t._strict),typeof t._tzm!="undefined"&&(n._tzm=t._tzm),typeof t._isUTC!="undefined"&&(n._isUTC=t._isUTC),typeof t._offset!="undefined"&&(n._offset=t._offset),typeof t._pf!="undefined"&&(n._pf=e(t)),typeof t._locale!="undefined"&&(n._locale=t._locale),di.length>0)for(u in di)i=di[u],r=t[i],typeof r!="undefined"&&(n[i]=r);return n}function dt(n){gi(this,n);this._d=new Date(n._d!=null?n._d.getTime():NaN);nr===!1&&(nr=!0,i.updateOffset(this),nr=!1)}function tt(n){return n instanceof dt||n!=null&&n._isAMomentObject!=null}function v(n){return n<0?Math.ceil(n):Math.floor(n)}function s(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=v(t)),i}function eu(n,t,i){for(var f=Math.min(n.length,t.length),e=Math.abs(n.length-t.length),u=0,r=0;r<f;r++)(i&&n[r]!==t[r]||!i&&s(n[r])!==s(t[r]))&&u++;return u+e}function ou(){}function su(n){return n?n.toLowerCase().replace("_","-"):n}function ho(n){for(var r=0,i,t,f,u;r<n.length;){for(u=su(n[r]).split("-"),i=u.length,t=su(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=hu(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&eu(u,t,!0)>=i-1)break;i--}r++}return null}function hu(n){var t=null;if(!et[n]&&typeof module!="undefined"&&module&&module.exports)try{t=oi._abbr;require("./locale/"+n);gt(t)}catch(i){}return et[n]}function gt(n,t){var i;return n&&(i=typeof t=="undefined"?ot(n):cu(n,t),i&&(oi=i)),oi._abbr}function cu(n,t){return t!==null?(t.abbr=n,et[n]=et[n]||new ou,et[n].set(t),gt(n),et[n]):(delete et[n],null)}function ot(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return oi;if(!ui(n)){if(t=hu(n),t)return t;n=[n]}return ho(n)}function l(n,t){var i=n.toLowerCase();ni[i]=ni[i+"s"]=ni[t]=n}function p(n){return typeof n=="string"?ni[n]||ni[n.toLowerCase()]:undefined}function lu(n){var r={},t;for(var i in n)ft(n,i)&&(t=p(i),t&&(r[t]=n[i]));return r}function pt(n,t){return function(r){return r!=null?(au(this,n,r),i.updateOffset(this,t),this):si(this,n)}}function si(n,t){return n._d["get"+(n._isUTC?"UTC":"")+t]()}function au(n,t,i){return n._d["set"+(n._isUTC?"UTC":"")+t](i)}function vu(n,t){var i;if(typeof n=="object")for(i in n)this.set(i,n[i]);else if(n=p(n),typeof this[n]=="function")return this[n](t);return this}function tr(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(wt[n]=u);t&&(wt[t[0]]=function(){return tr(u.apply(this,arguments),t[1],t[2])});i&&(wt[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function co(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function lo(n){for(var i=n.match(yu),t=0,r=i.length;t<r;t++)i[t]=wt[i[t]]?wt[i[t]]:co(i[t]);return function(u){var f="";for(t=0;t<r;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function rr(n,t){return n.isValid()?(t=pu(t,n.localeData()),ir[t]=ir[t]||lo(t),ir[t](n)):n.localeData().invalidDate()}function pu(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(hi.lastIndex=0;i>=0&&hi.test(n);)n=n.replace(hi,r),hi.lastIndex=0,i-=1;return n}function ao(n){return typeof n=="function"&&Object.prototype.toString.call(n)==="[object Function]"}function t(n,t,i){er[n]=ao(t)?t:function(n){return n&&i?i:t}}function vo(n,t){return ft(er,n)?er[n](t._strict,t._locale):new RegExp(yo(n))}function yo(n){return n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),typeof t=="number"&&(r=function(n,i){i[t]=s(n)}),i=0;i<n.length;i++)or[n[i]]=r}function ii(n,t){c(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function po(n,t,i){t!=null&&ft(or,n)&&or[n](t,i._a,i,n)}function sr(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function wo(n){return this._months[n.month()]}function bo(n){return this._monthsShort[n.month()]}function ko(n,t,i){var r,u,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=kt([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function gu(n,t){var i;return typeof t=="string"&&(t=n.localeData().monthsParse(t),typeof t!="number")?n:(i=Math.min(n.date(),sr(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n)}function nf(n){return n!=null?(gu(this,n),i.updateOffset(this,!0),this):si(this,"Month")}function go(){return sr(this.year(),this.month())}function hr(n){var i,t=n._a;return t&&e(n).overflow===-2&&(i=t[g]<0||t[g]>11?g:t[k]<1||t[k]>sr(t[b],t[g])?k:t[a]<0||t[a]>24||t[a]===24&&(t[st]!==0||t[ht]!==0||t[ct]!==0)?a:t[st]<0||t[st]>59?st:t[ht]<0||t[ht]>59?ht:t[ct]<0||t[ct]>999?ct:-1,e(n)._overflowDayOfYear&&(i<b||i>k)&&(i=k),e(n).overflow=i),n}function tf(n){i.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function w(n,t){var i=!0;return ei(function(){return i&&(tf(n+"\n"+(new Error).stack),i=!1),t.apply(this,arguments)},t)}function ns(n,t){cr[n]||(tf(t),cr[n]=!0)}function rf(n){var t,i,r=n._i,u=ts.exec(r);if(u){for(e(n).iso=!0,t=0,i=lr.length;t<i;t++)if(lr[t][1].exec(r)){n._f=lr[t][0];break}for(t=0,i=ar.length;t<i;t++)if(ar[t][1].exec(r)){n._f+=(u[6]||" ")+ar[t][0];break}r.match(yi)&&(n._f+="Z");wr(n)}else n._isValid=!1}function rs(n){var t=is.exec(n._i);if(t!==null){n._d=new Date(+t[1]);return}rf(n);n._isValid===!1&&(delete n._isValid,i.createFromInputFallback(n))}function us(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<1970&&o.setFullYear(n),o}function vr(n){var t=new Date(Date.UTC.apply(null,arguments));return n<1970&&t.setUTCFullYear(n),t}function uf(n){return ff(n)?366:365}function ff(n){return n%4==0&&n%100!=0||n%400==0}function fs(){return ff(this.year())}function lt(n,t,i){var f=i-t,r=i-n.day(),u;return r>f&&(r-=7),r<f-7&&(r+=7),u=o(n).add(r,"d"),{week:Math.ceil(u.dayOfYear()/7),year:u.year()}}function es(n){return lt(n,this._week.dow,this._week.doy).week}function os(){return this._week.dow}function ss(){return this._week.doy}function hs(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function cs(n){var t=lt(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function ls(n,t,i,r,u){var o=6+u-r,s=vr(n,0,1+o),e=s.getUTCDay(),f;return e<u&&(e+=7),i=i!=null?1*i:u,f=1+o+7*(t-1)-e+i,{year:f>0?n:n-1,dayOfYear:f>0?f:uf(n-1)+f}}function as(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function bt(n,t,i){return n!=null?n:t!=null?t:i}function vs(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function pr(n){var t,i,r=[],u,f;if(!n._d){for(u=vs(n),n._w&&n._a[k]==null&&n._a[g]==null&&ys(n),n._dayOfYear&&(f=bt(n._a[b],u[b]),n._dayOfYear>uf(f)&&(e(n)._overflowDayOfYear=!0),i=vr(f,0,n._dayOfYear),n._a[g]=i.getUTCMonth(),n._a[k]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=u[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[a]===24&&n._a[st]===0&&n._a[ht]===0&&n._a[ct]===0&&(n._nextDay=!0,n._a[a]=0);n._d=(n._useUTC?vr:us).apply(null,r);n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[a]=24)}}function ys(n){var t,e,u,r,i,f,s;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(i=1,f=4,e=bt(t.GG,n._a[b],lt(o(),1,4).year),u=bt(t.W,1),r=bt(t.E,1)):(i=n._locale._week.dow,f=n._locale._week.doy,e=bt(t.gg,n._a[b],lt(o(),i,f).year),u=bt(t.w,1),t.d!=null?(r=t.d,r<i&&++u):r=t.e!=null?t.e+i:i);s=ls(e,u,r,f,i);n._a[b]=s.year;n._dayOfYear=s.dayOfYear}function wr(n){if(n._f===i.ISO_8601){rf(n);return}n._a=[];e(n).empty=!0;for(var t=""+n._i,r,u,s,c=t.length,h=0,o=pu(n._f,n._locale).match(yu)||[],f=0;f<o.length;f++)u=o[f],r=(t.match(vo(u,n))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&e(n).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),h+=r.length),wt[u]?(r?e(n).empty=!1:e(n).unusedTokens.push(u),po(u,r,n)):n._strict&&!r&&e(n).unusedTokens.push(u);e(n).charsLeftOver=c-h;t.length>0&&e(n).unusedInput.push(t);e(n).bigHour===!0&&n._a[a]<=12&&n._a[a]>0&&(e(n).bigHour=undefined);n._a[a]=ps(n._locale,n._a[a],n._meridiem);pr(n);hr(n)}function ps(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function ws(n){var t,f,u,r,i;if(n._f.length===0){e(n).invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=gi({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[r],wr(t),uu(t))&&(i+=e(t).charsLeftOver,i+=e(t).unusedTokens.length*10,e(t).score=i,(u==null||i<u)&&(u=i,f=t));ei(n,f||t)}function bs(n){if(!n._d){var t=lu(n._i);n._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond];pr(n)}}function ks(n){var t=new dt(hr(of(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function of(n){var t=n._i,i=n._f;return(n._locale=n._locale||ot(n._l),t===null||i===undefined&&t==="")?fu({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),tt(t))?new dt(hr(t)):(ui(i)?ws(n):i?wr(n):fi(t)?n._d=t:ds(n),n)}function ds(n){var t=n._i;t===undefined?n._d=new Date:fi(t)?n._d=new Date(+t):typeof t=="string"?rs(n):ui(t)?(n._a=oo(t.slice(0),function(n){return parseInt(n,10)}),pr(n)):typeof t=="object"?bs(n):typeof t=="number"?n._d=new Date(t):i.createFromInputFallback(n)}function sf(n,t,i,r,u){var f={};return typeof i=="boolean"&&(r=i,i=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,ks(f)}function o(n,t,i,r){return sf(n,t,i,r,!1)}function lf(n,t){var r,i;if(t.length===1&&ui(t[0])&&(t=t[0]),!t.length)return o();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function gs(){var n=[].slice.call(arguments,0);return lf("isBefore",n)}function nh(){var n=[].slice.call(arguments,0);return lf("isAfter",n)}function pi(n){var t=lu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=ot();this._bubble()}function br(n){return n instanceof pi}function af(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+tr(~~(n/60),2)+t+tr(~~n%60,2)})}function kr(n){var i=(n||"").match(yi)||[],u=i[i.length-1]||[],t=(u+"").match(vf)||["-",0,0],r=+(t[1]*60)+s(t[2]);return t[0]==="+"?r:-r}function dr(n,t){var r,u;return t._isUTC?(r=t.clone(),u=(tt(n)||fi(n)?+n:+o(n))-+r,r._d.setTime(+r._d+u),i.updateOffset(r,!1),r):o(n).local()}function gr(n){return-Math.round(n._d.getTimezoneOffset()/15)*15}function th(n,t){var r=this._offset||0,u;return n!=null?(typeof n=="string"&&(n=kr(n)),Math.abs(n)<16&&(n=n*60),!this._isUTC&&t&&(u=gr(this)),this._offset=n,this._isUTC=!0,u!=null&&this.add(u,"m"),r!==n&&(!t||this._changeInProgress?df(this,it(n-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:gr(this)}function ih(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function rh(n){return this.utcOffset(0,n)}function uh(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(gr(this),"m")),this}function fh(){return this._tzm?this.utcOffset(this._tzm):typeof this._i=="string"&&this.utcOffset(kr(this._i)),this}function eh(n){return n=n?o(n).utcOffset():0,(this.utcOffset()-n)%60==0}function oh(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function sh(){var n,t;return typeof this._isDSTShifted!="undefined"?this._isDSTShifted:(n={},gi(n,this),n=of(n),n._a?(t=n._isUTC?kt(n._a):o(n._a),this._isDSTShifted=this.isValid()&&eu(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted)}function hh(){return!this._isUTC}function ch(){return this._isUTC}function yf(){return this._isUTC&&this._offset===0}function it(n,t){var i=n,r=null,u,f,e;return br(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:typeof n=="number"?(i={},t?i[t]=n:i.milliseconds=n):(r=pf.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:s(r[k])*u,h:s(r[a])*u,m:s(r[st])*u,s:s(r[ht])*u,ms:s(r[ct])*u}):(r=wf.exec(n))?(u=r[1]==="-"?-1:1,i={y:at(r[2],u),M:at(r[3],u),d:at(r[4],u),h:at(r[5],u),m:at(r[6],u),s:at(r[7],u),w:at(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(e=lh(o(i.from),o(i.to)),i={},i.ms=e.milliseconds,i.M=e.months),f=new pi(i),br(n)&&ft(n,"_locale")&&(f._locale=n._locale),f}function at(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function bf(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function lh(n,t){var i;return t=dr(t,n),n.isBefore(t)?i=bf(n,t):(i=bf(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i}function kf(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(ns(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),f=i,i=r,r=f),i=typeof i=="string"?+i:i,u=it(i,r),df(this,u,n),this}}function df(n,t,r,u){var o=t._milliseconds,f=t._days,e=t._months;u=u==null?!0:u;o&&n._d.setTime(+n._d+o*r);f&&au(n,"Date",si(n,"Date")+f*r);e&&gu(n,si(n,"Month")+e*r);u&&i.updateOffset(n,f||e)}function ah(n,t){var r=n||o(),f=dr(r,this).startOf("day"),i=this.diff(f,"days",!0),u=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse";return this.format(t&&t[u]||this.localeData().calendar(u,this,o(r)))}function vh(){return new dt(this)}function yh(n,t){var i;return t=p(typeof t!="undefined"?t:"millisecond"),t==="millisecond"?(n=tt(n)?n:o(n),+this>+n):(i=tt(n)?+n:+o(n),i<+this.clone().startOf(t))}function ph(n,t){var i;return t=p(typeof t!="undefined"?t:"millisecond"),t==="millisecond"?(n=tt(n)?n:o(n),+this<+n):(i=tt(n)?+n:+o(n),+this.clone().endOf(t)<i)}function wh(n,t,i){return this.isAfter(n,i)&&this.isBefore(t,i)}function bh(n,t){var i;return t=p(t||"millisecond"),t==="millisecond"?(n=tt(n)?n:o(n),+this==+n):(i=+o(n),+this.clone().startOf(t)<=i&&i<=+this.clone().endOf(t))}function kh(n,t,i){var f=dr(n,this),e=(f.utcOffset()-this.utcOffset())*6e4,u,r;return t=p(t),t==="year"||t==="month"||t==="quarter"?(r=dh(this,f),t==="quarter"?r=r/3:t==="year"&&(r=r/12)):(u=this-f,r=t==="second"?u/1e3:t==="minute"?u/6e4:t==="hour"?u/36e5:t==="day"?(u-e)/864e5:t==="week"?(u-e)/6048e5:u),i?r:v(r)}function dh(n,t){var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)}function gh(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function te(){var n=this.clone().utc();return 0<n.year()&&n.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():rr(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):rr(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function nc(n){var t=rr(this,n||i.defaultFormat);return this.localeData().postformat(t)}function tc(n,t){return this.isValid()?it({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ic(n){return this.from(o(),n)}function rc(n,t){return this.isValid()?it({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function uc(n){return this.to(o(),n)}function ie(n){var t;return n===undefined?this._locale._abbr:(t=ot(n),t!=null&&(this._locale=t),this)}function re(){return this._locale}function fc(n){n=p(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"&&this.weekday(0),n==="isoWeek"&&this.isoWeekday(1),n==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function ec(n){return(n=p(n),n===undefined||n==="millisecond")?this:this.startOf(n).add(1,n==="isoWeek"?"week":n).subtract(1,"ms")}function oc(){return+this._d-(this._offset||0)*6e4}function sc(){return Math.floor(+this/1e3)}function hc(){return this._offset?new Date(+this):this._d}function cc(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function lc(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function ac(){return uu(this)}function vc(){return ei({},e(this))}function yc(){return e(this).overflow}function wi(n,t){r(0,[n,n.length],0,t)}function ue(n,t,i){return lt(o([n,11,31+t-i]),t,i).week}function pc(n){var t=lt(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return n==null?t:this.add(n-t,"y")}function wc(n){var t=lt(this,1,4).year;return n==null?t:this.add(n-t,"y")}function bc(){return ue(this.year(),1,4)}function kc(){var n=this.localeData()._week;return ue(this.year(),n.dow,n.doy)}function dc(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function gc(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function nl(n){return this._weekdays[n.day()]}function tl(n){return this._weekdaysShort[n.day()]}function il(n){return this._weekdaysMin[n.day()]}function rl(n){var t,i,r;for(this._weekdaysParse=this._weekdaysParse||[],t=0;t<7;t++)if(this._weekdaysParse[t]||(i=o([2e3,1]).day(t),r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[t]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[t].test(n))return t}function ul(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=gc(n,this.localeData()),this.add(n-t,"d")):t}function fl(n){var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function el(n){return n==null?this.day()||7:this.day(this.day()%7?n:n-7)}function se(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function he(n,t){return t._meridiemParse}function ol(n){return(n+"").toLowerCase().charAt(0)==="p"}function sl(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function hl(n,t){t[ct]=s(("0."+n)*1e3)}function cl(){return this._isUTC?"UTC":""}function ll(){return this._isUTC?"Coordinated Universal Time":""}function al(n){return o(n*1e3)}function vl(){return o.apply(null,arguments).parseZone()}function yl(n,t,i){var r=this._calendar[n];return typeof r=="function"?r.call(t,i):r}function pl(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function wl(){return this._invalidDate}function bl(n){return this._ordinal.replace("%d",n)}function no(n){return n}function kl(n,t,i,r){var u=this._relativeTime[i];return typeof u=="function"?u(n,t,i,r):u.replace(/%d/i,n)}function dl(n,t){var i=this._relativeTime[n>0?"future":"past"];return typeof i=="function"?i(t):i.replace(/%s/i,t)}function gl(n){var t;for(var i in n)t=n[i],typeof t=="function"?this[i]=t:this["_"+i]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function io(n,t,i,r){var u=ot(),f=kt().set(r,t);return u[i](f,n)}function ri(n,t,i,r,u){if(typeof n=="number"&&(t=n,n=undefined),n=n||"",t!=null)return io(n,t,i,u);for(var e=[],f=0;f<r;f++)e[f]=io(n,f,i,u);return e}function na(n,t){return ri(n,t,"months",12,"month")}function ta(n,t){return ri(n,t,"monthsShort",12,"month")}function ia(n,t){return ri(n,t,"weekdays",7,"day")}function ra(n,t){return ri(n,t,"weekdaysShort",7,"day")}function ua(n,t){return ri(n,t,"weekdaysMin",7,"day")}function fa(){var n=this._data;return this._milliseconds=d(this._milliseconds),this._days=d(this._days),this._months=d(this._months),n.milliseconds=d(n.milliseconds),n.seconds=d(n.seconds),n.minutes=d(n.minutes),n.hours=d(n.hours),n.months=d(n.months),n.years=d(n.years),this}function ro(n,t,i,r){var u=it(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function ea(n,t){return ro(this,n,t,1)}function oa(n,t){return ro(this,n,t,-1)}function uo(n){return n<0?Math.floor(n):Math.ceil(n)}function sa(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=uo(iu(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=v(r/1e3),i.seconds=u%60,f=v(u/60),i.minutes=f%60,e=v(f/60),i.hours=e%24,n+=v(e/24),o=v(fo(n)),t+=o,n-=uo(iu(o)),s=v(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function fo(n){return n*4800/146097}function iu(n){return n*146097/4800}function ha(n){var t,r,i=this._milliseconds;if(n=p(n),n==="month"||n==="year")return t=this._days+i/864e5,r=this._months+fo(t),n==="month"?r:r/12;t=this._days+Math.round(iu(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}function ca(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+s(this._months/12)*31536e6}function ut(n){return function(){return this.as(n)}}function da(n){return n=p(n),this[n+"s"]()}function vt(n){return function(){return this._data[n]}}function ev(){return v(this.days()/7)}function ov(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function sv(n,t,i){var r=it(n).abs(),h=yt(r.as("s")),f=yt(r.as("m")),e=yt(r.as("h")),o=yt(r.as("d")),s=yt(r.as("M")),c=yt(r.as("y")),u=h<nt.s&&["s",h]||f===1&&["m"]||f<nt.m&&["mm",f]||e===1&&["h"]||e<nt.h&&["hh",e]||o===1&&["d"]||o<nt.d&&["dd",o]||s===1&&["M"]||s<nt.M&&["MM",s]||c===1&&["y"]||["yy",c];return u[2]=t,u[3]=+n>0,u[4]=i,ov.apply(null,u)}function hv(n,t){return nt[n]===undefined?!1:t===undefined?nt[n]:(nt[n]=t,!0)}function cv(n){var t=this.localeData(),i=sv(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function ki(){var t=bi(this._milliseconds)/1e3,a=bi(this._days),i=bi(this._months),n,e,o;n=v(t/60);e=v(n/60);t%=60;n%=60;o=v(i/12);i%=12;var s=o,h=i,c=a,r=e,u=n,f=t,l=this.asSeconds();return l?(l<0?"-":"")+"P"+(s?s+"Y":"")+(h?h+"M":"")+(c?c+"D":"")+(r||u||f?"T":"")+(r?r+"H":"")+(u?u+"M":"")+(f?f+"S":""):"P0D"}var ru,di=i.momentProperties=[],nr=!1,et={},oi,ni={},yu=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,hi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ir={},wt={},wu=/\d/,y=/\d\d/,bu=/\d{3}/,ur=/\d{4}/,ci=/[+-]?\d{6}/,h=/\d\d?/,li=/\d{1,3}/,fr=/\d{1,4}/,ai=/[+-]?\d{1,6}/,vi=/[+-]?\d+/,yi=/Z|[+-]\d\d:?\d\d/gi,ti=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,er={},or={},b=0,g=1,k=2,a=3,st=4,ht=5,ct=6,ku,du,cr,yr,ef,hf,cf,vf,pf,wf,gf,ne,nu,tu,fe,ee,oe,ce,le,ae,ve,rt,ye,n,pe,we,be,ke,de,ge,to,u,d,yt,nt,bi,f;r("M",["MM",2],"Mo",function(){return this.month()+1});r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});r("MMMM",0,0,function(n){return this.localeData().months(this,n)});l("month","M");t("M",h);t("MM",h,y);t("MMM",ti);t("MMMM",ti);c(["M","MM"],function(n,t){t[g]=s(n)-1});c(["MMM","MMMM"],function(n,t,i,r){var u=i._locale.monthsParse(n,r,i._strict);u!=null?t[g]=u:e(i).invalidMonth=n});ku="January_February_March_April_May_June_July_August_September_October_November_December".split("_");du="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");cr={};i.suppressDeprecationWarnings=!1;var ts=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ar=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],is=/^\/?Date\((\-?\d+)/i;for(i.createFromInputFallback=w("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),l("year","y"),t("Y",vi),t("YY",h,y),t("YYYY",fr,ur),t("YYYYY",ai,ci),t("YYYYYY",ai,ci),c(["YYYYY","YYYYYY"],b),c("YYYY",function(n,t){t[b]=n.length===2?i.parseTwoDigitYear(n):s(n)}),c("YY",function(n,t){t[b]=i.parseTwoDigitYear(n)}),i.parseTwoDigitYear=function(n){return s(n)+(s(n)>68?1900:2e3)},yr=pt("FullYear",!1),r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),l("week","w"),l("isoWeek","W"),t("w",h),t("ww",h,y),t("W",h),t("WW",h,y),ii(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=s(n)}),ef={dow:0,doy:6},r("DDD",["DDDD",3],"DDDo","dayOfYear"),l("dayOfYear","DDD"),t("DDD",li),t("DDDD",bu),c(["DDD","DDDD"],function(n,t,i){i._dayOfYear=s(n)}),i.ISO_8601=function(){},hf=w("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var n=o.apply(null,arguments);return n<this?this:n}),cf=w("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var n=o.apply(null,arguments);return n>this?this:n}),af("Z",":"),af("ZZ",""),t("Z",yi),t("ZZ",yi),c(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=kr(n)}),vf=/([\+\-]|\d\d)/gi,i.updateOffset=function(){},pf=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,wf=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,it.fn=pi.prototype,gf=kf(1,"add"),ne=kf(-1,"subtract"),i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",nu=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),wi("gggg","weekYear"),wi("ggggg","weekYear"),wi("GGGG","isoWeekYear"),wi("GGGGG","isoWeekYear"),l("weekYear","gg"),l("isoWeekYear","GG"),t("G",vi),t("g",vi),t("GG",h,y),t("gg",h,y),t("GGGG",fr,ur),t("gggg",fr,ur),t("GGGGG",ai,ci),t("ggggg",ai,ci),ii(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=s(n)}),ii(["gg","GG"],function(n,t,r,u){t[u]=i.parseTwoDigitYear(n)}),r("Q",0,0,"quarter"),l("quarter","Q"),t("Q",wu),c("Q",function(n,t){t[g]=(s(n)-1)*3}),r("D",["DD",2],"Do","date"),l("date","D"),t("D",h),t("DD",h,y),t("Do",function(n,t){return n?t._ordinalParse:t._ordinalParseLenient}),c(["D","DD"],k),c("Do",function(n,t){t[k]=s(n.match(h)[0],10)}),tu=pt("Date",!0),r("d",0,"do","day"),r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),l("day","d"),l("weekday","e"),l("isoWeekday","E"),t("d",h),t("e",h),t("E",h),t("dd",ti),t("ddd",ti),t("dddd",ti),ii(["dd","ddd","dddd"],function(n,t,i){var r=i._locale.weekdaysParse(n);r!=null?t.d=r:e(i).invalidWeekday=n}),ii(["d","e","E"],function(n,t,i,r){t[r]=s(n)}),fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ee="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),oe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),r("H",["HH",2],0,"hour"),r("h",["hh",2],0,function(){return this.hours()%12||12}),se("a",!0),se("A",!1),l("hour","h"),t("a",he),t("A",he),t("H",h),t("h",h),t("HH",h,y),t("hh",h,y),c(["H","HH"],a),c(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n}),c(["h","hh"],function(n,t,i){t[a]=s(n);e(i).bigHour=!0}),ce=/[ap]\.?m?\.?/i,le=pt("Hours",!0),r("m",["mm",2],0,"minute"),l("minute","m"),t("m",h),t("mm",h,y),c(["m","mm"],st),ae=pt("Minutes",!1),r("s",["ss",2],0,"second"),l("second","s"),t("s",h),t("ss",h,y),c(["s","ss"],ht),ve=pt("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),l("millisecond","ms"),t("S",li,wu),t("SS",li,y),t("SSS",li,bu),rt="SSSS";rt.length<=9;rt+="S")t(rt,/\d+/);for(rt="S";rt.length<=9;rt+="S")c(rt,hl);ye=pt("Milliseconds",!1);r("z",0,0,"zoneAbbr");r("zz",0,0,"zoneName");n=dt.prototype;n.add=gf;n.calendar=ah;n.clone=vh;n.diff=kh;n.endOf=ec;n.format=nc;n.from=tc;n.fromNow=ic;n.to=rc;n.toNow=uc;n.get=vu;n.invalidAt=yc;n.isAfter=yh;n.isBefore=ph;n.isBetween=wh;n.isSame=bh;n.isValid=ac;n.lang=nu;n.locale=ie;n.localeData=re;n.max=cf;n.min=hf;n.parsingFlags=vc;n.set=vu;n.startOf=fc;n.subtract=ne;n.toArray=cc;n.toObject=lc;n.toDate=hc;n.toISOString=te;n.toJSON=te;n.toString=gh;n.unix=sc;n.valueOf=oc;n.year=yr;n.isLeapYear=fs;n.weekYear=pc;n.isoWeekYear=wc;n.quarter=n.quarters=dc;n.month=nf;n.daysInMonth=go;n.week=n.weeks=hs;n.isoWeek=n.isoWeeks=cs;n.weeksInYear=kc;n.isoWeeksInYear=bc;n.date=tu;n.day=n.days=ul;n.weekday=fl;n.isoWeekday=el;n.dayOfYear=as;n.hour=n.hours=le;n.minute=n.minutes=ae;n.second=n.seconds=ve;n.millisecond=n.milliseconds=ye;n.utcOffset=th;n.utc=rh;n.local=uh;n.parseZone=fh;n.hasAlignedHourOffset=eh;n.isDST=oh;n.isDSTShifted=sh;n.isLocal=hh;n.isUtcOffset=ch;n.isUtc=yf;n.isUTC=yf;n.zoneAbbr=cl;n.zoneName=ll;n.dates=w("dates accessor is deprecated. Use date instead.",tu);n.months=w("months accessor is deprecated. Use month instead",nf);n.years=w("years accessor is deprecated. Use year instead",yr);n.zone=w("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",ih);pe=n;we={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};be={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"};ke="Invalid date";de="%d";ge=/\d{1,2}/;to={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"};u=ou.prototype;u._calendar=we;u.calendar=yl;u._longDateFormat=be;u.longDateFormat=pl;u._invalidDate=ke;u.invalidDate=wl;u._ordinal=de;u.ordinal=bl;u._ordinalParse=ge;u.preparse=no;u.postformat=no;u._relativeTime=to;u.relativeTime=kl;u.pastFuture=dl;u.set=gl;u.months=wo;u._months=ku;u.monthsShort=bo;u._monthsShort=du;u.monthsParse=ko;u.week=es;u._week=ef;u.firstDayOfYear=ss;u.firstDayOfWeek=os;u.weekdays=nl;u._weekdays=fe;u.weekdaysMin=il;u._weekdaysMin=oe;u.weekdaysShort=tl;u._weekdaysShort=ee;u.weekdaysParse=rl;u.isPM=ol;u._meridiemParse=ce;u.meridiem=sl;gt("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=s(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});i.lang=w("moment.lang is deprecated. Use moment.locale instead.",gt);i.langData=w("moment.langData is deprecated. Use moment.localeData instead.",ot);d=Math.abs;var la=ut("ms"),aa=ut("s"),va=ut("m"),ya=ut("h"),pa=ut("d"),wa=ut("w"),ba=ut("M"),ka=ut("y");var ga=vt("milliseconds"),nv=vt("seconds"),tv=vt("minutes"),iv=vt("hours"),rv=vt("days"),uv=vt("months"),fv=vt("years");return yt=Math.round,nt={s:45,m:45,h:22,d:26,M:11},bi=Math.abs,f=pi.prototype,f.abs=fa,f.add=ea,f.subtract=oa,f.as=ha,f.asMilliseconds=la,f.asSeconds=aa,f.asMinutes=va,f.asHours=ya,f.asDays=pa,f.asWeeks=wa,f.asMonths=ba,f.asYears=ka,f.valueOf=ca,f._bubble=sa,f.get=da,f.milliseconds=ga,f.seconds=nv,f.minutes=tv,f.hours=iv,f.days=rv,f.weeks=ev,f.months=uv,f.years=fv,f.humanize=cv,f.toISOString=ki,f.toString=ki,f.toJSON=ki,f.locale=ie,f.localeData=re,f.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ki),f.lang=nu,r("X",0,0,"unix"),r("x",0,0,"valueOf"),t("x",vi),t("X",/[+-]?\d+(\.\d{1,3})?/),c("X",function(n,t,i){i._d=new Date(parseFloat(n,10)*1e3)}),c("x",function(n,t,i){i._d=new Date(s(n))}),i.version="2.10.6",eo(o),i.fn=pe,i.min=gs,i.max=nh,i.utc=kt,i.unix=al,i.months=na,i.isDate=fi,i.locale=gt,i.invalid=fu,i.duration=it,i.isMoment=tt,i.weekdays=ia,i.parseZone=vl,i.localeData=ot,i.isDuration=br,i.monthsShort=ta,i.weekdaysMin=ua,i.defineLocale=cu,i.weekdaysShort=ra,i.normalizeUnits=p,i.relativeTimeThreshold=hv,i}),function(){function ui(n){return function(){return n}}function ur(n){var t="Array"===n&&e.isArray||function(t,i){return(i||yt.call(t))==="[object "+n+"]"};return ou[n]=t}function su(n,t){function i(i){return g(i)?yt.call(i)==="[object "+t+"]":typeof i===n}return ou[t]=i}function hu(n){n.SugarMethods||(gt(n,"SugarMethods",{}),t(n,!1,!0,{extend:function(i,r,u){t(n,!1!==u,r,i)},sugarRestore:function(){return pf(this,n,arguments,function(n,t,i){gt(n,t,i.method)})},sugarRevert:function(){return pf(this,n,arguments,function(n,t,i){i.existed?gt(n,t,i.original):delete n[t]})}}))}function t(n,t,i,r){var u=t?n.prototype:n;hu(n);k(r,function(r,f){var e=u[r],o=ft(u,r);y(i)&&e&&(f=us(e,f,i));!1===i&&e||gt(u,r,f);n.SugarMethods[r]={method:f,existed:o,original:e,instance:t}})}function st(n,i,r,u,f){var e={};u=c(u)?u.split(","):u;u.forEach(function(n,t){f(e,n,t)});t(n,i,r,e)}function pf(n,t,i,r){var f=0===i.length,e=l(i),u=!1;return k(t.SugarMethods,function(t,i){(f||-1!==e.indexOf(t))&&(u=!0,r(i.instance?n.prototype:n,t,i))}),u}function us(n,t,i){return function(){return i.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}}function gt(n,t,i){yf?s.defineProperty(n,t,{value:i,configurable:!0,enumerable:!1,writable:!0}):n[t]=i}function l(n,t,i){var r=[],u;for(i=i||0,u=n.length;i<u;i++)r.push(n[i]),t&&t.call(n,n[i],i);return r}function fr(n,t,i){var r=n[i||0];it(r)&&(n=r,i=0);l(n,t,i)}function vi(n){if(!n||!n.call)throw new TypeError("Callback is not callable");}function ut(n){return void 0!==n}function o(n){return void 0===n}function ft(n,t){return!!n&&go.call(n,t)}function g(n){return!!n&&("object"==typeof n||ns&&d(n))}function er(n){var t=typeof n;return null==n||"string"===t||"number"===t||"boolean"===t}function fi(n,t){t=t||yt.call(n);try{if(n&&n.constructor&&!ft(n,"constructor")&&!ft(n.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}return!!n&&"[object Object]"===t&&"hasOwnProperty"in n}function k(n,t){for(var i in n)if(ft(n,i)&&!1===t.call(n,i,n[i],n))break}function or(n,t){for(var i=0;i<n;i++)t(i)}function yi(n,t){return k(t,function(i){n[i]=t[i]}),n}function sr(n){if(er(n)&&(n=s(n)),ts&&c(n))for(var t=n,i=0,r;r=t.charAt(i);)t[i++]=r;return n}function ht(n){yi(this,sr(n))}function cr(n,t,i){var r=hr(10,ct(t||0));return i=i||pt,0>t&&(r=1/r),i(n*r)/r}function lr(){return"\t\n\x0b\f\r   ᠎             \u2028\u2029　﻿"}function ar(n,t){var i="";for(n=n.toString();0<t;)(t&1&&(i+=n),t>>=1)&&(n+=n);return i}function yu(n,t){var i,r;return i=n.replace(kf,function(n){return n=ei[n],n===pi&&(r=!0),n}),r?parseFloat(i):parseInt(i,t||10)}function p(n,t,i,r){return r=ct(n).toString(r||10),r=ar("0",t-r.replace(/\.\d+/,"").length)+r,(i||0>n)&&(r=(0>n?"-":"+")+r),r}function df(n){if(11<=n&&13>=n)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function wi(n,t){function i(n,i){(n||-1<t.indexOf(i))&&(r+=i)}var r="";return t=t||"",i(n.multiline,"m"),i(n.ignoreCase,"i"),i(n.global,"g"),i(n.u,"y"),r}function wt(n){return c(n)||(n=f(n)),n.replace(/([\\/\'*+?|()\[\]{}.^$])/g,"\\$1")}function r(n,t){return n["get"+(n._utc?"UTC":"")+t]()}function oi(n,t,i){return n["set"+(n._utc&&"ISOWeek"!=t?"UTC":"")+t](i)}function bi(n,t){var c=typeof n,r,u,e,o,h,i,l;if("string"===c)return n;if(e=yt.call(n),r=fi(n,e),u=it(n,e),null!=n&&r||u){if(t||(t=[]),1<t.length)for(i=t.length;i--;)if(t[i]===n)return"CYC";for(t.push(n),r=n.valueOf()+f(n.constructor),o=u?n:s.keys(n).sort(),i=0,l=o.length;i<l;i++)h=u?i:o[i],r+=h+bi(n[h],t);t.pop()}else r=-Infinity==1/n?"-0":f(n&&n.valueOf?n.valueOf():n);return c+e+r}function gf(n,t){return n===t?0!==n||1/n==1/t:vr(n)&&vr(t)?bi(n)===bi(t):!1}function vr(n){var t=yt.call(n);return is.test(t)||fi(n,t)}function ne(n,t,i){var r,f=n.length,e=t.length,u=!1!==t[e-1];return(e>(u?1:2))?(r=[],l(t,function(t){if(rs(t))return!1;r.push(te(n,f,t,u,i))}),r):te(n,f,t[0],u,i)}function te(n,t,i,r,u){return r&&(i%=t,0>i&&(i=t+i)),u?n.charAt(i):n[i]}function yr(n,t){st(t,!0,!1,n,function(n,t){n[t+("equal"===t?"s":"")]=function(){return s[t].apply(null,[this].concat(l(arguments)))}})}function ie(n,t,i,r){var f=n.length,u=-1==r,e=u?f-1:0;for(i=isNaN(i)?e:parseInt(i>>0),0>i&&(i=f+i),(!u&&0>i||u&&i>=f)&&(i=e);u&&0<=i||!u&&i<f;){if(n[i]===t)return i;i+=r}return-1}function re(n,t,i,r){var e=n.length,u=0,f=ut(i);if(vi(t),0!=e||f)f||(i=n[r?e-1:u],u++);else throw new TypeError("Reduce called on empty array with no initial value");for(;u<e;)f=r?e-u-1:u,f in n&&(i=t(i,n[f],f,n)),u++;return i}function pr(n){if(0===n.length)throw new TypeError("First argument must be defined");}function fs(n){return n=u(n),function(t){return n.test(t)}}function es(n){var t=n.getTime();return function(n){return!(!n||!n.getTime)&&n.getTime()===t}}function os(n){return function(t,i,r){return t===n||n.call(this,t,i,r)}}function ss(n){return function(t,i,r){return t===n||n.call(r,i,t,r)}}function hs(n,t){var i={};return function(r,u,f){var e;if(!g(r))return!1;for(e in n)if(i[e]=i[e]||si(n[e],t),!1===i[e].call(f,r[e],u,f))return!1;return!0}}function cs(n){return function(t){return t===n||gf(t,n)}}function si(n,t){if(!er(n)){if(d(n))return fs(n);if(rt(n))return es(n);if(y(n))return t?ss(n):os(n);if(fi(n))return hs(n,t)}return cs(n)}function bt(n,t,i,r){return t?t.apply?t.apply(i,r||[]):y(n[t])?n[t].call(n):n[t]:n}function at(n,t,i,r){var u=+n.length;for(0>i&&(i=n.length+i),i=isNaN(i)?0:i,!0===r&&(u+=i);i<u;){if(r=i%n.length,!(r in n)){ls(n,t,i);break}if(!1===t.call(n,n[r],r,n))break;i++}}function ls(n,t,i){var u=[];for(var r in n)r in n&&r>>>0==r&&4294967295!=r&&r>=i&&u.push(parseInt(r));u.sort().each(function(i){return t.call(n,n[i],i,n)})}function wr(n,t,i,r,u,f){var e,o,s;return 0<n.length&&(s=si(t),at(n,function(t,i){if(s.call(f,t,i,n))return e=t,o=i,!1},i,r)),u?o:e}function ue(n,t){var i=[],u={},r;return at(n,function(f,e){r=t?bt(f,t,n,[f,e,n]):f;oe(u,r)||i.push(f)}),i}function fe(n,t,i){var u=[],r={};return t.each(function(n){oe(r,n)}),n.each(function(n){var t=bi(n),e=!vr(n),f;if(ee(r,t,n,e)!==i){if(f=0,e)for(t=r[t];f<t.length;)t[f]===n?t.splice(f,1):f+=1;else delete r[t];u.push(n)}}),u}function wu(n,t,i){t=t||Infinity;i=i||0;var r=[];return at(n,function(n){it(n)&&i<t?r=r.concat(wu(n,t,i+1)):r.push(n)}),r}function bu(n){var t=[];return l(n,function(n){t=t.concat(n)}),t}function ee(n,t,i,r){var u=t in n;return r&&(n[t]||(n[t]=[]),u=-1!==n[t].indexOf(i)),u}function oe(n,t){var i=bi(t),r=!vr(t),u=ee(n,i,t,r);return r?n[i].push(t):n[i]=t,u}function br(n,t,i,r){var h,s,u,f=[],l="max"===i,a="min"===i,c=e.isArray(n);for(h in n)if(n.hasOwnProperty(h)){if(i=n[h],u=bt(i,t,n,c?[i,parseInt(h),n]:[]),o(u))throw new TypeError("Cannot compare with undefined");u===s?f.push(i):(o(s)||l&&u>s||a&&u<s)&&(f=[i],s=u)}return c||(f=wu(f,1)),r?f:f[0]}function se(n,t){var i,r,f,o,u=0,s=0;i=e[as];r=e[le];var h=e[ae],c=e[ce],l=e[ve];n=he(n,i,r);t=he(t,i,r);do i=n.charAt(u),f=h[i]||i,i=t.charAt(u),o=h[i]||i,i=f?c.indexOf(f):null,r=o?c.indexOf(o):null,-1===i||-1===r?(i=n.charCodeAt(u)||null,r=t.charCodeAt(u)||null,l&&(i>=lu&&i<=wf||i>=au&&i<=bf)&&(r>=lu&&r<=wf||r>=au&&r<=bf)&&(i=yu(n.slice(u)),r=yu(t.slice(u)))):(f=f!==n.charAt(u),o=o!==t.charAt(u),f!==o&&0===s&&(s=f-o)),u+=1;while(null!=i&&null!=r&&i===r);return i===r?s:i-r}function he(n,t,i){return c(n)||(n=f(n)),i&&(n=n.toLowerCase()),t&&(n=n.replace(t,"")),n}function ye(n,t){st(s,!1,!0,n,function(n,i){n[i]=function(n,r,u){var o=s.keys(sr(n)),f;return t||(f=si(r,!0)),u=e.prototype[i].call(o,function(i){var u=n[i];return t?bt(u,r,n,[i,u,n]):f(u,i,n)},u),it(u)&&(u=u.reduce(function(t,i){return t[i]=n[i],t},{})),u}});yr(n,ht)}function ge(n){yi(this,n);this.g=gu.concat()}function no(n,t,i){var e,r,u=t[0],f=t[1],o=t[2];return(t=n[i]||n.relative,y(t))?t.call(n,u,f,o,i):(r=n.units[8*(n.plural&&1<u?1:0)+f]||n.units[f],n.capitalizeUnit&&(r=ci(r)),e=n.modifiers.filter(function(n){return"sign"==n.name&&n.value==(0<o?1:-1)})[0],t.replace(/\{(.*?)\}/g,function(n,t){switch(t){case"num":return u;case"unit":return r;case"sign":return e.src}}))}function ys(n,t){return t=t||n.code,"en"===t||"en-US"===t?!0:n.variant}function ps(n,t){return t.replace(u(n.num,"g"),function(t){return to(n,t)||""})}function to(n,t){var i;return a(t)?t:t&&-1!==(i=n.numbers.indexOf(t))?(i+1)%10:1}function tt(n,t){var i;if(c(n)||(n=""),i=tf[n]||tf[n.slice(0,2)],!1===t&&!i)throw new TypeError("Invalid locale.");return i||kr}function ws(n,t){function o(n){var t=i[n];c(t)?i[n]=t.split(","):t||(i[n]=[])}function s(n,t){n=n.split("+").map(function(n){return n.replace(/(.+):(.+)$/,function(n,t,i){return i.split("|").map(function(n){return t+n}).join("|")})}).join("|");n.split("|").forEach(t)}function r(n,t,r){var u=[];i[n].forEach(function(n,i){t&&(n+="+"+n.slice(0,3));s(n,function(n,t){u[t*r+i]=n.toLowerCase()})});i[n]=u}function u(n,t,r){return n="\\d{"+n+","+t+"}",r&&(n+="|(?:"+di(i.numbers)+")+"),n}function f(n,t){i[n]=i[n]||t}var i,e;return i=new ge(t),o("modifiers"),"months weekdays units numbers articles tokens timeMarker ampm timeSuffixes dateParse timeParse".split(" ").forEach(o),e=!i.monthSuffix,r("months",e,12),r("weekdays",e,7),r("units",!1,8),r("numbers",!1,10),f("code",n),f("date",u(1,2,i.digitDate)),f("year","'\\d{2}|"+u(4,4)),f("num",function(){var n=["-?\\d+"].concat(i.articles);return i.numbers&&(n=n.concat(i.numbers)),di(n)}()),function(){var n=[];i.i={};i.modifiers.push({name:"day",src:"yesterday",value:-1});i.modifiers.push({name:"day",src:"today",value:0});i.modifiers.push({name:"day",src:"tomorrow",value:1});i.modifiers.forEach(function(t){var r=t.name;s(t.src,function(u){var f=i[r];i.i[u]=t;n.push({name:r,src:u,value:t.value});i[r]=f?f+"|"+u:u})});i.day+="|"+di(i.weekdays);i.modifiers=n}(),i.monthSuffix&&(i.month=u(1,2),i.months="1 2 3 4 5 6 7 8 9 10 11 12".split(" ").map(function(n){return n+i.monthSuffix})),i.full_month=u(1,2)+"|"+di(i.months),0<i.timeSuffixes.length&&i.addFormat(uf(i),!1,dr),i.addFormat("{day}",!0),i.addFormat("{month}"+(i.monthSuffix||"")),i.addFormat("{year}"+(i.yearSuffix||"")),i.timeParse.forEach(function(n){i.addFormat(n,!0)}),i.dateParse.forEach(function(n){i.addFormat(n)}),tf[n]=i}function nu(n,t,i,r){n.g.unshift({r:r,locale:n,q:u("^"+t+"$","i"),to:i})}function ci(n){return n.slice(0,1).toUpperCase()+n.slice(1)}function di(n){return n.filter(function(n){return!!n}).join("|")}function ti(){var n=i.SugarNewDate;return n?n():new i}function tu(n,t){var i;return g(n[0])?n:a(n[0])&&!a(n[1])?[n[0]]:c(n[0])&&t?[bs(n[0]),n[1]]:(i={},du.forEach(function(t,r){i[t.name]=n[r]}),[i])}function bs(n){var t,i={};return(n=n.match(/^(\d+)?\s?(\w+?)s?$/i))&&(o(t)&&(t=parseInt(n[1])||1),i[n[2].toLowerCase()]=t),i}function li(n,t,i){var r;for(o(i)&&(i=gr.length),t=t||0;t<i&&(r=gr[t],!1!==n(r.name,r,t));t++);}function ks(n,t){var r={},i,u;return t.forEach(function(t,f){i=n[f+1];o(i)||""===i||("year"===t&&(r.t=i.replace(/'/,"")),u=parseFloat(i.replace(/'/,"").replace(/,/,".")),r[t]=isNaN(u)?i.toLowerCase():u)}),r}function ds(n){return n=n.trim().replace(/^just (?=now)|\.+$/i,""),gs(n)}function gs(n){return n.replace(de,function(n,t,i){var u=0,r=1,f,e;return t?n:(i.split("").reverse().forEach(function(n){n=ku[n];var t=9<n;t?(f&&(u+=r),r*=n/(e||1),e=n):(!1===f&&(r*=10),u+=r*n);f=t}),f&&(u+=r),u)})}function io(n,t,u,f){function b(n){it.push(n)}function et(){it.forEach(function(n){n.call()})}function ot(){var n=o.getWeekday();o.setWeekday(7*(e.num-1)+(n>p?p+7:p))}function st(){var n=s.i[e.edge];li(function(n){if(ut(e[n]))return h=n,!1},4);"year"===h?e.e="month":("month"===h||"week"===h)&&(e.e="day");o[(0>n.value?"endOf":"beginningOf")+ci(h)]();-2===n.value&&o.reset()}function ht(){var n;li(function(t,i,r){if("day"===t&&(t="date"),ut(e[t])){if(r>=ft)return o.setTime(NaN),!1;n=n||{};n[t]=e[t];delete e[t]}});n&&b(function(){o.set(n,!0)})}var o,d,y,it,s,e,h,ft,p,w,l;return o=ti(),it=[],o.utc(f),rt(n)?o.utc(n.isUTC()).setTime(n.getTime()):a(n)?o.setTime(n):g(n)?(o.set(n,!0),e=n):c(n)&&(y=tt(t),n=ds(n),y&&k(y.o?[y.o].concat(y.g):y.g,function(i,u){var f=n.match(u.q);if(f)return(s=u.locale,e=ks(f,u.to),s.o=u,e.utc&&o.utc(),e.timestamp)?(e=e.timestamp,!1):(u.r&&!c(e.month)&&(c(e.date)||ys(y,t))&&(l=e.month,e.month=e.date,e.date=l),e.year&&2===e.t.length&&(e.year=100*pt(r(ti(),"FullYear")/100)-100*pt(e.year/100)+e.year),e.month&&(e.month=s.getMonth(e.month),e.shift&&!e.unit&&(e.unit=s.units[7])),e.weekday&&e.date?delete e.weekday:e.weekday&&(e.weekday=s.getWeekday(e.weekday),e.shift&&!e.unit&&(e.unit=s.units[5])),e.day&&(l=s.i[e.day])?(e.day=l.value,o.reset(),d=!0):e.day&&-1<(p=s.getWeekday(e.day))&&(delete e.day,e.num&&e.month?(b(ot),e.day=1):e.weekday=p),e.date&&!a(e.date)&&(e.date=ps(s,e.date)),e.ampm&&e.ampm===s.ampm[1]&&12>e.hour?e.hour+=12:e.ampm===s.ampm[0]&&12===e.hour&&(e.hour=0),("offset_hours"in e||"offset_minutes"in e)&&(o.utc(),e.offset_minutes=e.offset_minutes||0,e.offset_minutes+=60*e.offset_hours,"-"===e.offset_sign&&(e.offset_minutes*=-1),e.minute-=e.offset_minutes),e.unit&&(d=!0,w=to(s,e.num),ft=s.units.indexOf(e.unit)%8,h=v.units[ft],ht(),e.shift&&(w*=(l=s.i[e.shift])?l.value:0),e.sign&&(l=s.i[e.sign])&&(w*=l.value),ut(e.weekday)&&(o.set({weekday:e.weekday},!0),delete e.weekday),e[h]=(e[h]||0)+w),e.edge&&b(st),"-"===e.year_sign&&(e.year*=-1),li(function(n,t,i){t=e[n];var r=t%1;r&&(e[gr[i-1].name]=pt(r*("second"===n?1e3:60)),e[n]=nt(t))},1,4),!1)}),e?d?o.advance(e):(o._utc&&o.reset(),ru(o,e,!0,!1,u)):("now"!==n&&(o=new i(n)),f&&o.addMinutes(-o.getTimezoneOffset())),et(),o.utc(!1)),{c:o,set:e}}function ro(n){var t,i=ct(n),r=i,u=0;return li(function(n,f,e){t=nt(cr(i/f.b(),1));1<=t&&(r=t,u=e)},1),[r,u,n]}function uo(n){var t=ro(n.millisecondsFromNow());return(6===t[1]||5===t[1]&&4===t[0]&&n.daysFromNow()>=ti().daysInMonth())&&(t[0]=ct(n.monthsFromNow()),t[1]=6),t}function iu(n,t,i){function u(n,i){var u=r(n,"Month");return tt(i).months[u+12*t]}et(n,u,i);et(ci(n),u,i,1)}function et(n,t,i,r){h[n]=function(n,u){var f=t(n,u);return i&&(f=f.slice(0,i)),r&&(f=f.slice(0,r).toUpperCase()+f.slice(r)),f}}function ii(n,t,i){h[n]=t;h[n+n]=function(n,i){return p(t(n,i),2)};i&&(h[n+n+n]=function(n,i){return p(t(n,i),3)},h[n+n+n+n]=function(n,i){return p(t(n,i),4)})}function nh(n){var t=n.match(/(\{\w+\})|[^{}]+/g);nf[n]=t.map(function(n){return n.replace(/\{(\w+)\}/,function(t,i){return n=h[i]||i,i}),n})}function rf(n,t,i,r){var u,f,e;if(!n.isValid())return"Invalid Date";if(Date[t]?t=Date[t]:y(t)&&(u=uo(n),t=t.apply(n,u.concat(tt(r)))),!t&&i)return u=u||uo(n),0===u[1]&&(u[1]=1,u[0]=1),n=tt(r),no(n,u,0<u[2]?"future":"past");for(t=t||"long",("short"===t||"long"===t||"full"===t)&&(t=tt(r)[t]),nf[t]||nh(t),u="",t=nf[t],f=0,i=t.length;f<i;f++)e=t[f],u+=y(e)?e(n,r):e;return u}function fo(n,t,i,r,u){var f,e,o,c=0,s=0,h=0;return(f=io(t,i,null,u),0<r&&(s=h=r,e=!0),!f.c.isValid())?!1:(f.set&&f.set.e&&(hi.forEach(function(t){t.name===f.set.e&&(c=t.b(f.c,n-f.c)-1)}),t=ci(f.set.e),(f.set.edge||f.set.shift)&&f.c["beginningOf"+t](),"month"===f.set.e&&(o=f.c.clone()["endOf"+t]().getTime()),!e&&f.set.sign&&"millisecond"!=f.set.e&&(s=50,h=-50)),e=n.getTime(),t=f.c.getTime(),o=th(n,t,o||t+c),e>=t-s&&e<=o+h)}function th(n,t,u){return t=new i(t),n=new i(u).utc(n.isUTC()),23!==r(n,"Hours")&&(t=t.getTimezoneOffset(),n=n.getTimezoneOffset(),t!==n&&(u+=(n-t).minutes())),u}function ru(n,t,i,u,f){function h(n){return ut(t[n])?t[n]:t[n+"s"]}function e(n){return ut(h(n))}var c,s;if(a(t)&&u)t={milliseconds:t};else if(a(t))return n.setTime(t),n;ut(t.date)&&(t.day=t.date);li(function(r,u,f){var o="day"===r;if(e(r)||o&&e("weekday"))return t.e=r,c=+f,!1;!i||"week"===r||o&&e("week")||oi(n,u.method,o?1:0)});hi.forEach(function(i){var f=i.name,s;i=i.method;s=h(f);o(s)||(u?("week"===f&&(s=(t.day||0)+7*s,i="Date"),s=s*u+r(n,i)):"month"===f&&e("day")&&oi(n,"Date",15),oi(n,i,s),u&&"month"===f&&(f=s,0>f&&(f=f%12+12),f%12!=r(n,"Month")&&oi(n,"Date",0)))});u||e("day")||!e("weekday")||n.setWeekday(h("weekday"));n:{switch(f){case-1:s=n>ti();break n;case 1:s=n<ti();break n}s=void 0}return s&&li(function(t,i){if((i.k||"week"===t&&e("weekday"))&&!(e(t)||"day"===t&&e("weekday")))return n[i.j](f),!1},c+1),n}function uf(n,t){var r=vs,u={h:0,m:1,s:2},i;return n=n||v,r.replace(/{([a-z])}/g,function(r,f){var e=[],o="h"===f,s=o&&!t;return"t"===f?n.ampm.join("|"):(o&&e.push(":"),(i=n.timeSuffixes[u[f]])&&e.push(i+"\\s*"),0===e.length?"":"(?:"+e.join("|")+")"+(s?"":"?"))})}function kt(n,t,i){var r,u;return a(n[1])?r=tu(n)[0]:(r=n[0],u=n[1]),io(r,u,t,i).c}function ih(n,t){function e(){return pt(this*t)}function u(){return kt(arguments)[n.j](this)}function f(){return kt(arguments)[n.j](-this)}var r=n.name,i={};i[r]=e;i[r+"s"]=e;i[r+"Before"]=f;i[r+"sBefore"]=f;i[r+"Ago"]=f;i[r+"sAgo"]=f;i[r+"After"]=u;i[r+"sAfter"]=u;i[r+"FromNow"]=u;i[r+"sFromNow"]=u;w.extend(i)}function vt(n,t){this.start=ff(n);this.end=ff(t)}function ff(n){return rt(n)?new i(n.getTime()):null==n?n:rt(n)?n.getTime():n.valueOf()}function eo(n){return n=null==n?n:rt(n)?n.getTime():n.valueOf(),!!n||0===n}function rh(n,t){var e,u,o,f;return a(t)?new i(n.getTime()+t):(e=t[0],u=t[1],o=r(n,u),f=new i(n.getTime()),oi(f,u,o+e),f)}function uh(n,t){return f.fromCharCode(n.charCodeAt(0)+t)}function fh(n,t){return n+t}function ai(n,t,i,r,u){Infinity!==t&&(n.timers||(n.timers=[]),a(t)||(t=1),n.n=!1,n.timers.push(setTimeout(function(){n.n||i.apply(r,u||[])},t)))}function ef(n,t,i,r,u,f){var o=n.toFixed(20),e=o.search(/\./),o=o.search(/[1-9]/),e=e-o;return 0<e&&(e-=1),u=lt(cu(nt(e/3),!1===u?i.length:u),-r),r=i.charAt(u+r-1),-9>e&&(u=-3,t=ct(e)-9,r=i.slice(0,1)),i=f?hr(2,10*u):hr(10,3*u),cr(n/i,t||0).format()+r.trim()}function oo(n,t,i,r){var f,e,u;(e=t.match(/^(.+?)(\[.*\])$/))?(u=e[1],t=e[2].replace(/^\[|\]$/g,"").split("]["),t.forEach(function(t){f=!t||t.match(/^\d+$/);!u&&it(n)&&(u=n.length);ft(n,u)||(n[u]=f?[]:{});n=n[u];u=t}),!u&&f&&(u=n.length.toString()),oo(n,u,i,r)):n[t]=r&&"true"===i?!0:r&&"false"===i?!1:i}function so(n,t){var i;return it(t)||g(t)&&t.toString===yt?(i=[],k(t,function(t,r){n&&(t=n+"["+t+"]");i.push(so(t,r))}),i.join("&")):n?ho(n)+"="+(rt(t)?t.getTime():ho(t)):""}function ho(n){return n||!1===n||0===n?encodeURIComponent(n).replace(/%20/g,"+"):""}function co(n,t,i){var r,u=n instanceof ht?new ht:{};return k(n,function(n,e){r=!1;fr(t,function(t){(d(t)?t.test(n):g(t)?t[n]===e:n===f(t))&&(r=!0)},1);r===i&&(u[n]=e)}),u}function uu(n){if(n=+n,0>n||Infinity===n)throw new RangeError("Invalid number");return n}function fu(n,t){return ar(ut(t)?t:" ",n)}function lo(n,t,i,r,u){var f;if(n.length<=t)return n.toString();r=o(r)?"...":r;switch(i){case"left":return n=u?gi(n,t,!0):n.slice(n.length-t),r+n;case"middle":return i=ni(t/2),f=nt(t/2),t=u?gi(n,i):n.slice(0,i),n=u?gi(n,f,!0):n.slice(n.length-f),t+r+n;default:return t=u?gi(n,t):n.slice(0,t),t+r}}function gi(n,t,i){if(i)return gi(n.reverse(),t).reverse();i=u("(?=["+lr()+"])");var r=0;return n.split(i).filter(function(n){return r+=n.length,r<=t}).join("")}function ao(n,t,i){return c(t)&&(t=n.indexOf(t),-1===t&&(t=i?n.length:0)),t}function eu(n){var t=nr;n=t.indexOf(n);-1<n&&t.splice(n,1)}function yo(n,t,i){c(t)&&eu(t);eu(i);n.unshift({l:t,p:i})}function tr(n,t){return n==t||"all"==n||!n}function eh(n){return nr.some(function(t){return new u("\\b"+t+"$","i").test(n)})}function po(n,t){return n=c(n)?n.toString():"",n.isBlank()||eh(n)?n:wo(n,t?lf:af)}function wo(n,t){return k(t,function(t,i){if(n.match(i.l))return n=n.replace(i.l,i.p),!1}),n}function bo(n){return n.replace(/^\W*[a-z]/,function(n){return n.toUpperCase()})}function ko(n,t,i,r){ir||bh();var u=l(t).join(""),f=ir[r],u=u.replace(/all/,"").replace(/(\w)lphabet|umbers?|atakana|paces?|unctuation/g,"$1");return n.replace(i,function(n){return!f[n]||u&&!u.has(f[n].type)?n:f[n].to})}function bh(){var n;ir={zenkaku:{},hankaku:{}};sh.forEach(function(n){or(n.end-n.start+1,function(t){t+=n.start;dt(n.type,f.fromCharCode(t),f.fromCharCode(t+oh))})});wh.each(function(t,i){n=ph.charAt(i);dt("k",n,t);t.match(vh)&&dt("k",n+"ﾞ",t.shift(1));t.match(yh)&&dt("k",n+"ﾟ",t.shift(2))});ah.each(function(n,t){dt("p",lh.charAt(t),n)});dt("k","ｳﾞ","ヴ");dt("k","ｦﾞ","ヺ");dt("s"," ","　")}function dt(n,t,i){ir.zenkaku[t]={type:n,to:i};ir.hankaku[i]={type:n,to:t}}var s=Object,e=Array,u=RegExp,i=Date,f=String,w=Number,b=Math,rr="undefined"!=typeof global?global:this,yt=s.prototype.toString,go=s.prototype.hasOwnProperty,yf=s.defineProperty&&s.defineProperties,ns="function"==typeof u(),ts=!("0"in new f("a")),ou={},is=/^\[object Date|Array|String|Number|RegExp|Boolean|Arguments\]$/,ot="Boolean Number String Array Date RegExp Function".split(" "),rs=su("boolean",ot[0]),a=su("number",ot[1]),c=su("string",ot[2]),it=ur(ot[3]),rt=ur(ot[4]),d=ur(ot[5]),y=ur(ot[6]),pu,ki,of,sf,hf,cf;ht.prototype.constructor=s;var ct=b.abs,hr=b.pow,ni=b.ceil,nt=b.floor,pt=b.round,cu=b.min,lt=b.max;var lu=48,wf=57,au=65296,bf=65305,pi=".",vu="",ei={},kf;for(hu(s),k(ot,function(n,t){hu(rr[t])}),ki=0;9>=ki;ki++)pu=f.fromCharCode(ki+au),vu+=pu,ei[pu]=f.fromCharCode(ki+lu);ei[","]="";ei["．"]=pi;ei[pi]=pi;kf=u("["+vu+"．,"+pi+"]","g");t(s,!1,!1,{keys:function(n){var t=[];if(!g(n)&&!d(n)&&!y(n))throw new TypeError("Object required");return k(n,function(n){t.push(n)}),t}});t(e,!1,!1,{isArray:function(n){return it(n)}});t(e,!0,!1,{every:function(n,t){var r=this.length,i=0;for(pr(arguments);i<r;){if(i in this&&!n.call(t,this[i],i,this))return!1;i++}return!0},some:function(n,t){var r=this.length,i=0;for(pr(arguments);i<r;){if(i in this&&n.call(t,this[i],i,this))return!0;i++}return!1},map:function(n,t){t=arguments[1];var r=this.length,i=0,u=Array(r);for(pr(arguments);i<r;)i in this&&(u[i]=n.call(t,this[i],i,this)),i++;return u},filter:function(n){var r=arguments[1],u=this.length,t=0,i=[];for(pr(arguments);t<u;)t in this&&n.call(r,this[t],t,this)&&i.push(this[t]),t++;return i},indexOf:function(n,t){return c(this)?this.indexOf(n,t):ie(this,n,t,1)},lastIndexOf:function(n,t){return c(this)?this.lastIndexOf(n,t):ie(this,n,t,-1)},forEach:function(n,t){var r=this.length,i=0;for(vi(n);i<r;)i in this&&n.call(t,this[i],i,this),i++},reduce:function(n,t){return re(this,n,t)},reduceRight:function(n,t){return re(this,n,t,!0)}});t(Function,!0,!1,{bind:function(n){var t=this,r=l(arguments,null,1),i;if(!y(this))throw new TypeError("Function.prototype.bind called on a non-function");return i=function(){return t.apply(t.prototype&&this instanceof t?this:n,r.concat(l(arguments)))},i.prototype=this.prototype,i}});t(i,!1,!1,{now:function(){return(new i).getTime()}}),function(){var n=lr().match(/^\s+$/);try{f.prototype.trim.call([1])}catch(i){n=!1}t(f,!0,!n,{trim:function(){return this.toString().trimLeft().trimRight()},trimLeft:function(){return this.replace(u("^["+lr()+"]+"),"")},trimRight:function(){return this.replace(u("["+lr()+"]+$"),"")}})}(),function(){var n=new i(i.UTC(1999,11,31)),n=n.toISOString&&"1999-12-31T00:00:00.000Z"===n.toISOString();st(i,!0,!n,"toISOString,toJSON",function(n,t){n[t]=function(){return p(this.getUTCFullYear(),4)+"-"+p(this.getUTCMonth()+1,2)+"-"+p(this.getUTCDate(),2)+"T"+p(this.getUTCHours(),2)+":"+p(this.getUTCMinutes(),2)+":"+p(this.getUTCSeconds(),2)+"."+p(this.getUTCMilliseconds(),3)+"Z"}})}();"use strict";var ce="AlphanumericSortOrder",as="AlphanumericSortIgnore",le="AlphanumericSortIgnoreCase",ae="AlphanumericSortEquivalents",ve="AlphanumericSortNatural";t(e,!1,!0,{create:function(){var n=[];return l(arguments,function(t){(!er(t)&&"length"in t&&("[object Arguments]"===yt.call(t)||t.callee)||!er(t)&&"length"in t&&!c(t)&&!fi(t))&&(t=e.prototype.slice.call(t,0));n=n.concat(t)}),n}});t(e,!0,!1,{find:function(n,t){return vi(n),wr(this,n,0,!1,!1,t)},findIndex:function(n,t){var i;return vi(n),i=wr(this,n,0,!1,!0,t),o(i)?-1:i}});t(e,!0,!0,{findFrom:function(n,t,i){return wr(this,n,t,i)},findIndexFrom:function(n,t,i){return t=wr(this,n,t,i,!0),o(t)?-1:t},findAll:function(n,t,i){var r=[],u;return 0<this.length&&(u=si(n),at(this,function(n,t,i){u(n,t,i)&&r.push(n)},t,i)),r},count:function(n){return o(n)?this.length:this.findAll(n).length},removeAt:function(n,t){return o(n)?this:(o(t)&&(t=n),this.splice(n,t-n+1),this)},include:function(n,t){return this.clone().add(n,t)},exclude:function(){return e.prototype.remove.apply(this.clone(),arguments)},clone:function(){return yi([],this)},unique:function(n){return ue(this,n)},flatten:function(n){return wu(this,n)},union:function(){return ue(this.concat(bu(arguments)))},intersect:function(){return fe(this,bu(arguments),!1)},subtract:function(){return fe(this,bu(arguments),!0)},at:function(){return ne(this,arguments)},first:function(n){return o(n)?this[0]:(0>n&&(n=0),this.slice(0,n))},last:function(n){return o(n)?this[this.length-1]:this.slice(0>this.length-n?0:this.length-n)},from:function(n){return this.slice(n)},to:function(n){return o(n)&&(n=this.length),this.slice(0,n)},min:function(n,t){return br(this,n,"min",t)},max:function(n,t){return br(this,n,"max",t)},least:function(n,t){return br(this.groupBy.apply(this,[n]),"length","min",t)},most:function(n,t){return br(this.groupBy.apply(this,[n]),"length","max",t)},sum:function(n){return n=n?this.map(n):this,0<n.length?n.reduce(function(n,t){return n+t}):0},average:function(n){return n=n?this.map(n):this,0<n.length?n.sum()/n.length:0},inGroups:function(n,t){var u=1<arguments.length,f=this,r=[],i=ni(this.length/n);return or(n,function(n){n*=i;var e=f.slice(n,n+i);u&&e.length<i&&or(i-e.length,function(){e=e.add(t)});r.push(e)}),r},inGroupsOf:function(n,t){var r=[],u=this.length,f=this,i;return 0===u||0===n?f:(o(n)&&(n=1),o(t)&&(t=null),or(ni(u/n),function(u){for(i=f.slice(n*u,n*u+n);i.length<n;)i.push(t);r.push(i)}),r)},isEmpty:function(){return 0==this.compact().length},sortBy:function(n,t){var i=this.clone();return i.sort(function(r,u){var f,e;return f=bt(r,n,i,[r]),e=bt(u,n,i,[u]),(c(f)&&c(e)?se(f,e):f<e?-1:f>e?1:0)*(t?-1:1)}),i},randomize:function(){for(var n=this.concat(),t=n.length,i,r;t;)i=b.random()*t|0,r=n[--t],n[t]=n[i],n[i]=r;return n},zip:function(){var n=l(arguments);return this.map(function(t,i){return[t].concat(n.map(function(n){return i in n?n[i]:null}))})},sample:function(n){var t=this.randomize();return 0<arguments.length?t.slice(0,n):t[0]},each:function(n,t,i){return at(this,n,t,i),this},add:function(n,t){return(!a(w(t))||isNaN(t))&&(t=this.length),e.prototype.splice.apply(this,[t,0].concat(n)),this},remove:function(){var n=this;return l(arguments,function(t){var i=0;for(t=si(t);i<n.length;)t(n[i],i,n)?n.splice(i,1):i++}),n},compact:function(n){var t=[];return at(this,function(i){it(i)?t.push(i.compact()):n&&i?t.push(i):n||null==i||i.valueOf()!==i.valueOf()||t.push(i)}),t},groupBy:function(n,t){var u=this,i={},r;return at(u,function(t,f){r=bt(t,n,u,[t,f,u]);i[r]||(i[r]=[]);i[r].push(t)}),t&&k(i,t),i},none:function(){return!this.any.apply(this,arguments)}});t(e,!0,!0,{all:e.prototype.every,any:e.prototype.some,insert:e.prototype.add});t(s,!1,!0,{map:function(n,t){var u={},i,r;for(i in n)ft(n,i)&&(r=n[i],u[i]=bt(r,t,n,[i,r,n]));return u},reduce:function(n){var t=s.keys(sr(n)).map(function(t){return n[t]});return t.reduce.apply(t,l(arguments,null,1))},each:function(n,t){return vi(t),k(n,t),n},size:function(n){return s.keys(sr(n)).length}});var pe="any all none count find findAll isEmpty".split(" "),we="sum average min max least most".split(" "),be=["map","reduce","size"],ke=pe.concat(we).concat(be);(function(){function n(){var n=arguments;return 0<n.length&&!y(n[0])}var i=e.prototype.map;st(e,!0,n,"every,all,some,filter,any,none,find,findIndex",function(n,t){var i=e.prototype[t];n[t]=function(n){var t=si(n);return i.call(this,function(n,i){return t(n,i,this)})}});t(e,!0,n,{map:function(n){return i.call(this,function(t,i){return bt(t,n,this,[t,i,this])})}})})(),function(){e[ce]="AÁÀÂÃĄBCĆČÇDĎÐEÉÈĚÊËĘFGĞHıIÍÌİÎÏJKLŁMNŃŇÑOÓÒÔPQRŘSŚŠŞTŤUÚÙŮÛÜVWXYÝZŹŻŽÞÆŒØÕÅÄÖ".split("").map(function(n){return n+n.toLowerCase()}).join("");var n={};at("AÁÀÂÃÄ CÇ EÉÈÊË IÍÌİÎÏ OÓÒÔÕÖ Sß UÚÙÛÜ".split(" "),function(t){var i=t.charAt(0);at(t.slice(1).split(""),function(t){n[t]=i;n[t.toLowerCase()]=i.toLowerCase()})});e[ve]=!0;e[le]=!0;e[ae]=n}();ye(pe);ye(we,!0);yr(be,ht);e.AlphanumericSort=se;"use strict";var v,kr,dr="ampm hour minute second ampm utc offset_sign offset_hours offset_minutes ampm".split(" "),vs="({t})?\\s*(\\d{1,2}(?:[,.]\\d+)?)(?:{h}([0-5]\\d(?:[,.]\\d+)?)?{m}(?::?([0-5]\\d(?:[,.]\\d+)?){s})?\\s*(?:({t})|(Z)|(?:([+-])(\\d{2,2})(?::?(\\d{2,2}))?)?)?|\\s*({t}))",ku={},de,du,gr,gu=[],nf={},h={yyyy:function(n){return r(n,"FullYear")},yy:function(n){return r(n,"FullYear")%100},ord:function(n){return n=r(n,"Date"),n+df(n)},tz:function(n){return n.getUTCOffset()},isotz:function(n){return n.getUTCOffset(!0)},Z:function(n){return n.getUTCOffset()},ZZ:function(n){return n.getUTCOffset().replace(/(\d{2})$/,":$1")}},hi=[{name:"year",method:"FullYear",k:!0,b:function(n){return 864e5*(365+(n?n.isLeapYear()?1:0:.25))}},{name:"month",error:.919,method:"Month",k:!0,b:function(n,t){var r=30.4375,i;return n&&(i=n.daysInMonth(),t<=i.days()&&(r=i)),864e5*r}},{name:"week",method:"ISOWeek",b:ui(6048e5)},{name:"day",error:.958,method:"Date",k:!0,b:ui(864e5)},{name:"hour",method:"Hours",b:ui(36e5)},{name:"minute",method:"Minutes",b:ui(6e4)},{name:"second",method:"Seconds",b:ui(1e3)},{name:"millisecond",method:"Milliseconds",b:ui(1)}],tf={};ge.prototype={getMonth:function(n){return a(n)?n-1:this.months.indexOf(n)%12},getWeekday:function(n){return this.weekdays.indexOf(n)%7},addFormat:function(n,t,i,r,u){var e=i||[],f=this,o;n=n.replace(/\s+/g,"[,. ]*");n=n.replace(/\{([^,]+?)\}/g,function(n,t){var r,h,u,c=t.match(/\?$/),s,o;return u=t.match(/^(\d+)\??$/),s=t.match(/(\d)(?:-(\d))?/),o=t.replace(/[^a-z]+$/,""),u?r=f.tokens[u[1]]:f[o]?r=f[o]:f[o+"s"]&&(r=f[o+"s"],s&&(h=[],r.forEach(function(n,t){var i=t%(f.units?8:r.length);i>=s[1]&&i<=(s[2]||s[1])&&h.push(n)}),r=h),r=di(r)),u?u="(?:"+r+")":(i||e.push(o),u="("+r+")"),c&&(u+="?"),u});t?(t=uf(f,u),u=["t","[\\s\\u3000]"].concat(f.timeMarker),o=n.match(/\\d\{\d,\d\}\)+\??$/),nu(f,"(?:"+t+")[,\\s\\u3000]+?"+n,dr.concat(e),r),nu(f,n+"(?:[,\\s]*(?:"+u.join("|")+(o?"+":"*")+")"+t+")?",e.concat(dr),r)):nu(f,n,e,r)}};t(i,!1,!0,{create:function(){return kt(arguments)},past:function(){return kt(arguments,-1)},future:function(){return kt(arguments,1)},addLocale:function(n,t){return ws(n,t)},setLocale:function(n){var t=tt(n,!1);return kr=t,n&&n!=t.code&&(t.code=n),t},getLocale:function(n){return n?tt(n,!1):kr},addFormat:function(n,t,i){nu(tt(i),n,t)}});t(i,!0,!0,{set:function(){var n=tu(arguments);return ru(this,n[0],n[1])},setWeekday:function(n){if(!o(n))return oi(this,"Date",r(this,"Date")+n-r(this,"Day"))},setISOWeek:function(n){var t=r(this,"Day")||7;if(!o(n))return this.set({month:0,date:4}),this.set({weekday:1}),1<n&&this.addWeeks(n-1),1!==t&&this.advance({days:t-1}),this.getTime()},getISOWeek:function(){var n,t;return n=this.clone(),t=r(n,"Day")||7,n.addDays(4-t).reset(),1+nt(n.daysSince(n.clone().beginningOfYear())/7)},beginningOfISOWeek:function(){var n=this.getDay();return 0===n?n=-6:1!==n&&(n=1),this.setWeekday(n),this.reset()},endOfISOWeek:function(){return 0!==this.getDay()&&this.setWeekday(7),this.endOfDay()},getUTCOffset:function(n){var t=this._utc?0:this.getTimezoneOffset(),i=!0===n?":":"";return!t&&n?"Z":p(nt(-t/60),2,!0)+i+p(ct(t%60),2)},utc:function(n){return gt(this,"_utc",!0===n||0===arguments.length),this},isUTC:function(){return!!this._utc||0===this.getTimezoneOffset()},advance:function(){var n=tu(arguments,!0);return ru(this,n[0],n[1],1)},rewind:function(){var n=tu(arguments,!0);return ru(this,n[0],n[1],-1)},isValid:function(){return!isNaN(this.getTime())},isAfter:function(n,t){return this.getTime()>i.create(n).getTime()-(t||0)},isBefore:function(n,t){return this.getTime()<i.create(n).getTime()+(t||0)},isBetween:function(n,t,r){var f=this.getTime(),u;return n=i.create(n).getTime(),u=i.create(t).getTime(),t=cu(n,u),n=lt(n,u),r=r||0,t-r<f&&n+r>f},isLeapYear:function(){var n=r(this,"FullYear");return 0==n%4&&0!=n%100||0==n%400},daysInMonth:function(){return 32-r(new i(r(this,"FullYear"),r(this,"Month"),32),"Date")},format:function(n,t){return rf(this,n,!1,t)},relative:function(n,t){return c(n)&&(t=n,n=null),rf(this,n,!0,t)},is:function(n,t,i){var f,u;if(this.isValid()){if(c(n))switch(n=n.trim().toLowerCase(),u=this.clone().utc(i),!0){case"future"===n:return this.getTime()>ti().getTime();case"past"===n:return this.getTime()<ti().getTime();case"weekday"===n:return 0<r(u,"Day")&&6>r(u,"Day");case"weekend"===n:return 0===r(u,"Day")||6===r(u,"Day");case-1<(f=v.weekdays.indexOf(n)%7):return r(u,"Day")===f;case-1<(f=v.months.indexOf(n)%12):return r(u,"Month")===f}return fo(this,n,null,t,i)}},reset:function(n){var t={},i;return n=n||"hours","date"===n&&(n="days"),i=hi.some(function(t){return n===t.name||n===t.name+"s"}),t[n]=n.match(/^days?/)?1:0,i?this.set(t,!0):this},clone:function(){var n=new i(this.getTime());return n.utc(!!this._utc),n}});t(i,!0,!0,{iso:function(){return this.toISOString()},getWeekday:i.prototype.getDay,getUTCWeekday:i.prototype.getUTCDay});t(w,!0,!0,{duration:function(n){return n=tt(n),no(n,ro(this),"duration")}});v=kr=i.addLocale("en",{plural:!0,timeMarker:"at",ampm:"am,pm",months:"January,February,March,April,May,June,July,August,September,October,November,December",weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",units:"millisecond:|s,second:|s,minute:|s,hour:|s,day:|s,week:|s,month:|s,year:|s",numbers:"one,two,three,four,five,six,seven,eight,nine,ten",articles:"a,an,the",tokens:"the,st|nd|rd|th,of",short:"{Month} {d}, {yyyy}",long:"{Month} {d}, {yyyy} {h}:{mm}{tt}",full:"{Weekday} {Month} {d}, {yyyy} {h}:{mm}:{ss}{tt}",past:"{num} {unit} {sign}",future:"{num} {unit} {sign}",duration:"{num} {unit}",modifiers:[{name:"sign",src:"ago|before",value:-1},{name:"sign",src:"from now|after|from|in|later",value:1},{name:"edge",src:"last day",value:-2},{name:"edge",src:"end",value:-1},{name:"edge",src:"first day|beginning",value:1},{name:"shift",src:"last",value:-1},{name:"shift",src:"the|this",value:0},{name:"shift",src:"next",value:1}],dateParse:["{month} {year}","{shift} {unit=5-7}","{0?} {date}{1}","{0?} {edge} of {shift?} {unit=4-7?}{month?}{year?}"],timeParse:"{num} {unit} {sign};{sign} {num} {unit};{0} {num}{1} {day} of {month} {year?};{weekday?} {month} {date}{1?} {year?};{date} {month} {year};{date} {month};{shift} {weekday};{shift} week {weekday};{weekday} {2?} {shift} week;{num} {unit=4-5} {sign} {day};{0?} {date}{1} of {month};{0?}{month?} {date?}{1?} of {shift} {unit=6-7}".split(";")});gr=hi.concat().reverse();du=hi.concat();du.splice(2,1);st(i,!0,!0,hi,function(n,t,u){function h(n){n/=c;var i=n%1,r=t.error||.999;return i&&ct(i%1)>r&&(n=pt(n)),0>n?ni(n):nt(n)}var f=t.name,e=ci(f),c=t.b(),o,s;t.j="add"+e+"s";o=function(n,t){return h(this.getTime()-i.create(n,t).getTime())};s=function(n,t){return h(i.create(n,t).getTime()-this.getTime())};n[f+"sAgo"]=s;n[f+"sUntil"]=s;n[f+"sSince"]=o;n[f+"sFromNow"]=o;n[t.j]=function(n,t){var i={};return i[f]=n,this.advance(i,t)};ih(t,c);3>u&&["Last","This","Next"].forEach(function(t){n["is"+t+e]=function(){return fo(this,t+" "+f,"en")}});4>u&&(n["beginningOf"+e]=function(){var n={};switch(f){case"year":n.year=r(this,"FullYear");break;case"month":n.month=r(this,"Month");break;case"day":n.day=r(this,"Date");break;case"week":n.weekday=0}return this.set(n,!0)},n["endOf"+e]=function(){var n={hours:23,minutes:59,seconds:59,milliseconds:999};switch(f){case"year":n.month=11;n.day=31;break;case"month":n.day=this.daysInMonth();break;case"week":n.weekday=6}return this.set(n,!0)})});v.addFormat("([+-])?(\\d{4,4})[-.]?{full_month}[-.]?(\\d{1,2})?",!0,["year_sign","year","month","date"],!1,!0);v.addFormat("(\\d{1,2})[-.\\/]{full_month}(?:[-.\\/](\\d{2,4}))?",!0,["date","month","year"],!0);v.addFormat("{full_month}[-.](\\d{4,4})",!1,["month","year"]);v.addFormat("\\/Date\\((\\d+(?:[+-]\\d{4,4})?)\\)\\/",!1,["timestamp"]);v.addFormat(uf(v),!1,dr);gu=v.g.slice(0,7).reverse();v.g=v.g.slice(7).concat(gu);ii("f",function(n){return r(n,"Milliseconds")},!0);ii("s",function(n){return r(n,"Seconds")});ii("m",function(n){return r(n,"Minutes")});ii("h",function(n){return r(n,"Hours")%12||12});ii("H",function(n){return r(n,"Hours")});ii("d",function(n){return r(n,"Date")});ii("M",function(n){return r(n,"Month")+1}),function(){function n(n,t){var i=r(n,"Hours");return tt(t).ampm[nt(i/12)]||""}et("t",n,1);et("tt",n);et("T",n,1,1);et("TT",n,null,2)}(),function(){function n(n,t){var i=r(n,"Day");return tt(t).weekdays[i]}et("dow",n,3);et("Dow",n,3,1);et("weekday",n);et("Weekday",n,null,1)}();iu("mon",0,3);iu("month",0);iu("month2",1);iu("month3",2);h.ms=h.f;h.milliseconds=h.f;h.seconds=h.s;h.minutes=h.m;h.hours=h.h;h["24hr"]=h.H;h["12hr"]=h.h;h.date=h.d;h.day=h.d;h.year=h.yyyy;st(i,!0,!0,"short,long,full",function(n,t){n[t]=function(n){return rf(this,t,!1,n)}});"〇一二三四五六七八九十百千万".split("").forEach(function(n,t){9<t&&(t=hr(10,t-9));ku[n]=t});yi(ku,ei);de=u("([期週周])?([〇一二三四五六七八九十百千万"+vu+"]+)(?!昨)","g"),function(){var n=v.weekdays.slice(0,7),t=v.months.slice(0,12);st(i,!0,!0,"today yesterday tomorrow weekday weekend future past".split(" ").concat(n).concat(t),function(n,t){n["is"+ci(t)]=function(n){return this.is(t,0,n)}})}();i.utc||(i.utc={create:function(){return kt(arguments,0,!0)},past:function(){return kt(arguments,-1,!0)},future:function(){return kt(arguments,1,!0)}});t(i,!1,!0,{RFC1123:"{Dow}, {dd} {Mon} {yyyy} {HH}:{mm}:{ss} {tz}",RFC1036:"{Weekday}, {dd}-{Mon}-{yy} {HH}:{mm}:{ss} {tz}",ISO8601_DATE:"{yyyy}-{MM}-{dd}",ISO8601_DATETIME:"{yyyy}-{MM}-{dd}T{HH}:{mm}:{ss}.{fff}{isotz}"});vt.prototype.toString=function(){return this.isValid()?this.start+".."+this.end:"Invalid Range"};t(vt,!0,!0,{isValid:function(){return eo(this.start)&&eo(this.end)&&typeof this.start==typeof this.end},span:function(){return this.isValid()?ct((c(this.end)?this.end.charCodeAt(0):this.end)-(c(this.start)?this.start.charCodeAt(0):this.start))+1:NaN},contains:function(n){return null==n?!1:n.start&&n.end?n.start>=this.start&&n.start<=this.end&&n.end>=this.start&&n.end<=this.end:n>=this.start&&n<=this.end},every:function(n,t){var r,i=this.start,f=this.end,e=f<i,u=i,o=0,s=[];for(y(n)&&(t=n,n=null),n=n||1,a(i)?r=fh:c(i)?r=uh:rt(i)&&(r=n,a(r)?n=r:(i=r.toLowerCase().match(/^(\d+)?\s?(\w+?)s?$/i),r=parseInt(i[1])||1,i=i[2].slice(0,1).toUpperCase()+i[2].slice(1),i.match(/hour|minute|second/i)?i+="s":"Year"===i?i="FullYear":"Day"===i&&(i="Date"),n=[r,i]),r=rh),e&&0<n&&(n*=-1);e?u>=f:u<=f;)s.push(u),t&&t(u,o),u=r(u,n),o++;return s},union:function(n){return new vt(this.start<n.start?this.start:n.start,this.end>n.end?this.end:n.end)},intersect:function(n){return n.start>this.end||n.end<this.start?new vt(NaN,NaN):new vt(this.start>n.start?this.start:n.start,this.end<n.end?this.end:n.end)},clone:function(){return new vt(this.start,this.end)},clamp:function(n){var t=this.start,i=this.end,r=i<t?i:t,t=t>i?t:i;return ff(n<r?r:n>t?t:n)}});[w,f,i].forEach(function(n){t(n,!1,!0,{range:function(t,i){return n.create&&(t=n.create(t),i=n.create(i)),new vt(t,i)}})});t(w,!0,!0,{upto:function(n,t,i){return w.range(this,n).every(i,t)},clamp:function(n,t){return new vt(n,t).clamp(this)},cap:function(n){return this.clamp(void 0,n)}});t(w,!0,!0,{downto:w.prototype.upto});t(e,!1,function(n){return n instanceof vt},{create:function(n){return n.every()}});t(Function,!0,!0,{lazy:function(n,t,i){function o(){return r.length<i-(u&&t?1:0)&&r.push([this,arguments]),u||(u=!0,t?f():ai(o,e,f)),h}var c=this,r=[],u=!1,f,e,s,h;return n=n||1,i=i||Infinity,e=ni(n),s=pt(e/n)||1,f=function(){var n=r.length,t;if(0!=n){for(t=lt(n-s,0);n>t;)h=Function.prototype.apply.apply(c,r.shift()),n--;ai(o,e,function(){u=!1;f()})}},o},throttle:function(n){return this.lazy(n,!0,1)},debounce:function(n){function t(){t.cancel();ai(t,n,i,this,arguments)}var i=this;return t},delay:function(n){var t=l(arguments,null,1);return ai(this,n,this,this,t),this},every:function(n){function r(){t.apply(t,i);ai(t,n,r)}var t=this,i=arguments,i=1<i.length?l(i,null,1):[];return ai(t,n,r),t},cancel:function(){var n=this.timers,t;if(it(n))for(;t=n.shift();)clearTimeout(t);return this.n=!0,this},after:function(n){var t=this,i=0,r=[];if(a(n)){if(0===n)return t.call(),t}else n=1;return function(){var u;return r.push(l(arguments)),i++,i==n?(u=t.call(this,r),i=0,r=[],u):void 0}},once:function(){return this.throttle(Infinity,!0)},fill:function(){var n=this,t=l(arguments);return function(){var i=l(arguments);return t.forEach(function(n,t){(null!=n||t>=i.length)&&i.splice(t,0,n)}),n.apply(this,i)}}});t(w,!1,!0,{random:function(n,t){var i,r;return 1==arguments.length&&(t=n,n=0),i=cu(n||0,o(t)?1:t),r=lt(n||0,o(t)?1:t)+1,nt(b.random()*(r-i)+i)}});t(w,!0,!0,{log:function(n){return b.log(this)/(n?b.log(n):1)},abbr:function(n){return ef(this,n,"kmbt",0,4)},metric:function(n,t){return ef(this,n,"nμm kMGTPE",4,o(t)?1:t)},bytes:function(n,t){return ef(this,n,"kMGTPE",0,o(t)?4:t,!0)+"B"},isInteger:function(){return 0==this%1},isOdd:function(){return!isNaN(this)&&!this.isMultipleOf(2)},isEven:function(){return this.isMultipleOf(2)},isMultipleOf:function(n){return 0==this%n},format:function(n,t,i){var r,f,e,u="";for(o(t)&&(t=","),o(i)&&(i="."),r=(a(n)?cr(this,n||0).toFixed(lt(n,0)):this.toString()).replace(/^-/,"").split("."),f=r[0],e=r[1],r=f.length;0<r;r-=3)r<f.length&&(u=t+u),u=f.slice(lt(0,r-3),r)+u;return e&&(u+=i+ar("0",(n||0)-e.length)+e),(0>this?"-":"")+u},hex:function(n){return this.pad(n||1,!1,16)},times:function(n){if(n)for(var t=0;t<this;t++)n.call(this,t);return this.toNumber()},chr:function(){return f.fromCharCode(this)},pad:function(n,t,i){return p(this,n,t,i)},ordinalize:function(){var n=ct(this),n=parseInt(n.toString().slice(-2));return this+df(n)},toNumber:function(){return parseFloat(this,10)}}),function(){function n(n){return function(t){return t?cr(this,t,n):n(this)}}t(w,!0,!0,{ceil:n(ni),round:n(pt),floor:n(nt)});st(w,!0,!0,"abs,pow,sin,asin,cos,acos,tan,atan,exp,pow,sqrt",function(n,t){n[t]=function(n,i){return b[t](this,n,i)}})}();of=["isObject","isNaN"];sf="keys values select reject each merge clone equal watch tap has toQueryString".split(" ");t(s,!1,!0,{watch:function(n,t,i){if(yf){var r=n[t];s.defineProperty(n,t,{enumerable:!0,configurable:!0,get:function(){return r},set:function(u){r=i.call(n,t,r,u)}})}}});t(s,!1,function(){return 1<arguments.length},{keys:function(n,t){var i=s.keys(n);return i.forEach(function(i){t.call(n,i,n[i])}),i}});t(s,!1,!0,{isObject:function(n){return fi(n)},isNaN:function(n){return a(n)&&n.valueOf()!==n.valueOf()},equal:function(n,t){return gf(n,t)},extended:function(n){return new ht(n)},merge:function(n,t,r,f){var h,p,a,o,c,v,l;if(n&&"string"!=typeof t)for(h in t)if(ft(t,h)&&n){if(o=t[h],c=n[h],v=ut(c),p=g(o),a=g(c),l=v&&!1===f?c:o,v&&y(f)&&(l=f.call(t,h,c,o)),r&&(p||a))if(rt(o))l=new i(o.getTime());else if(d(o))l=new u(o.source,wi(o));else{a||(n[h]=e.isArray(o)?[]:{});s.merge(n[h],o,r,f);continue}n[h]=l}return n},values:function(n,t){var i=[];return k(n,function(r,u){i.push(u);t&&t.call(n,u)}),i},clone:function(n,t){var i;if(!g(n))return n;if(i=yt.call(n),rt(n,i)&&n.clone)return n.clone();if(rt(n,i)||d(n,i))return new n.constructor(n);if(n instanceof ht)i=new ht;else if(it(n,i))i=[];else if(fi(n,i))i={};else throw new TypeError("Clone must be a basic data type.");return s.merge(i,n,t)},fromQueryString:function(n,t){var i=s.extended();return n=n&&n.toString?n.toString():"",n.replace(/^.*?\?/,"").split("&").forEach(function(n){n=n.split("=");2===n.length&&oo(i,n[0],decodeURIComponent(n[1]),t)}),i},toQueryString:function(n,t){return so(t,n)},tap:function(n,t){var i=t;return y(t)||(i=function(){t&&n[t]()}),i.call(n,n),n},has:function(n,t){return ft(n,t)},select:function(n){return co(n,arguments,!0)},reject:function(n){return co(n,arguments,!1)}});st(s,!1,!0,ot,function(n,t){var i="is"+t;of.push(i);n[i]=ou[t]});t(s,!1,function(){return 0===arguments.length},{extend:function(){var n=of.concat(sf);"undefined"!=typeof ke&&(n=n.concat(ke));yr(n,s)}});yr(sf,ht);t(u,!1,!0,{escape:function(n){return wt(n)}});t(u,!0,!0,{getFlags:function(){return wi(this)},setFlags:function(n){return u(this.source,n)},addFlag:function(n){return this.setFlags(wi(this,n))},removeFlag:function(n){return this.setFlags(wi(this).replace(n,""))}});t(f,!0,!1,{repeat:function(n){return n=uu(n),ar(this,n)}});t(f,!0,function(n){return d(n)||2<arguments.length},{startsWith:function(n){var t=arguments,i=t[1],t=t[2],r=this;return i&&(r=r.slice(i)),o(t)&&(t=!0),i=d(n)?n.source.replace("^",""):wt(n),u("^"+i,t?"":"i").test(r)},endsWith:function(n){var t=arguments,i=t[1],t=t[2],r=this;return ut(i)&&(r=r.slice(0,i)),o(t)&&(t=!0),i=d(n)?n.source.replace("$",""):wt(n),u(i+"$",t?"":"i").test(r)}});t(f,!0,!0,{escapeRegExp:function(){return wt(this)},escapeURL:function(n){return n?encodeURIComponent(this):encodeURI(this)},unescapeURL:function(n){return n?decodeURI(this):decodeURIComponent(this)},escapeHTML:function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2f;")},unescapeHTML:function(){return this.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&#x2f;/g,"/").replace(/&amp;/g,"&")},encodeBase64:function(){return hf(unescape(encodeURIComponent(this)))},decodeBase64:function(){return decodeURIComponent(escape(cf(this)))},each:function(n,t){var i,r,f;if(y(n)?(t=n,n=/[\s\S]/g):n?c(n)?n=u(wt(n),"gi"):d(n)&&(n=u(n.source,wi(n,"g"))):n=/[\s\S]/g,i=this.match(n)||[],t)for(r=0,f=i.length;r<f;r++)i[r]=t.call(this,i[r],r,i)||i[r];return i},shift:function(n){var t="";return n=n||0,this.codes(function(i){t+=f.fromCharCode(i+n)}),t},codes:function(n){for(var r=[],i,t=0,u=this.length;t<u;t++)i=this.charCodeAt(t),r.push(i),n&&n.call(this,i,t);return r},chars:function(n){return this.each(n)},words:function(n){return this.trim().each(/\S+/g,n)},lines:function(n){return this.trim().each(/^.*$/gm,n)},paragraphs:function(n){var t=this.trim().split(/[\r\n]{2,}/);return t.map(function(t){if(n)var i=n.call(t);return i?i:t})},isBlank:function(){return 0===this.trim().length},has:function(n){return-1!==this.search(d(n)?n:wt(n))},add:function(n,t){return t=o(t)?this.length:t,this.slice(0,t)+n+this.slice(t)},remove:function(n){return this.replace(n,"")},reverse:function(){return this.split("").reverse().join("")},compact:function(){return this.trim().replace(/([\r\n\s\u3000])+/g,function(n,t){return"　"===t?t:" "})},at:function(){return ne(this,arguments,!0)},from:function(n){return this.slice(ao(this,n,!0))},to:function(n){return o(n)&&(n=this.length),this.slice(0,ao(this,n))},dasherize:function(){return this.underscore().replace(/_/g,"-")},underscore:function(){return this.replace(/[-\s]+/g,"_").replace(f.Inflector&&f.Inflector.acronymRegExp,function(n,t){return(0<t?"_":"")+n.toLowerCase()}).replace(/([A-Z\d]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase()},camelize:function(n){return this.underscore().replace(/(^|_)([^_]+)/g,function(t,i,r,u){return t=(t=f.Inflector)&&t.acronyms[r],t=c(t)?t:void 0,u=!1!==n||0<u,t?u?t:t.toLowerCase():u?r.capitalize():r})},spacify:function(){return this.underscore().replace(/_/g," ")},stripTags:function(){var n=this;return fr(0<arguments.length?arguments:[""],function(t){n=n.replace(u("<\/?"+wt(t)+"[^<>]*>","gi"),"")}),n},removeTags:function(){var n=this;return fr(0<arguments.length?arguments:["\\S+"],function(t){t=u("<("+t+")[^<>]*(?:\\/>|>.*?<\\/\\1>)","gi");n=n.replace(t,"")}),n},truncate:function(n,t,i){return lo(this,n,t,i)},truncateOnWord:function(n,t,i){return lo(this,n,t,i,!0)},pad:function(n,t){var i,r;return n=uu(n),i=lt(0,n-this.length)/2,r=nt(i),i=ni(i),fu(r,t)+this+fu(i,t)},padLeft:function(n,t){return n=uu(n),fu(lt(0,n-this.length),t)+this},padRight:function(n,t){return n=uu(n),this+fu(lt(0,n-this.length),t)},first:function(n){return o(n)&&(n=1),this.substr(0,n)},last:function(n){return o(n)&&(n=1),this.substr(0>this.length-n?0:this.length-n)},toNumber:function(n){return yu(this,n)},capitalize:function(n){var t;return this.toLowerCase().replace(n?/[^']/g:/^\S/,function(n){var i=n.toUpperCase(),r;return r=t?n:i,t=i!==n,r})},assign:function(){var n={};return fr(arguments,function(t,i){g(t)?yi(n,t):n[i+1]=t}),this.replace(/\{([^{]+?)\}/g,function(t,i){return ft(n,i)?n[i]:t})}});t(f,!0,!0,{insert:f.prototype.add}),function(n){if(rr.btoa)hf=rr.btoa,cf=rr.atob;else{var t=/[^A-Za-z0-9\+\/\=]/g;hf=function(t){var o="",i,r,u,h,s,f,e=0;do i=t.charCodeAt(e++),r=t.charCodeAt(e++),u=t.charCodeAt(e++),h=i>>2,i=(i&3)<<4|r>>4,s=(r&15)<<2|u>>6,f=u&63,isNaN(r)?s=f=64:isNaN(u)&&(f=64),o=o+n.charAt(h)+n.charAt(i)+n.charAt(s)+n.charAt(f);while(e<t.length);return o};cf=function(i){var e="",o,r,c,s,h,u=0;if(i.match(t))throw Error("String contains invalid base64 characters");i=i.replace(/[^A-Za-z0-9\+\/\=]/g,"");do o=n.indexOf(i.charAt(u++)),r=n.indexOf(i.charAt(u++)),s=n.indexOf(i.charAt(u++)),h=n.indexOf(i.charAt(u++)),o=o<<2|r>>4,r=(r&15)<<4|s>>2,c=(s&3)<<6|h,e+=f.fromCharCode(o),64!=s&&(e+=f.fromCharCode(r)),64!=h&&(e+=f.fromCharCode(c));while(u<i.length);return e}}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");"use strict";var lf=[],af=[],nr=[],vf=[],ri={},vo,n;n={acronym:function(t){ri[t.toLowerCase()]=t;t=s.keys(ri).map(function(n){return ri[n]});n.acronymRegExp=u(t.join("|"),"g")},plural:function(n,t){yo(lf,n,t)},singular:function(n,t){yo(af,n,t)},irregular:function(t,i){var h=t.first(),f=t.from(1),o=i.first(),r=i.from(1),e=o.toUpperCase(),s=o.toLowerCase(),c=h.toUpperCase(),l=h.toLowerCase();eu(t);eu(i);c==e?(n.plural(new u("({1}){2}$".assign(h,f),"i"),"$1"+r),n.plural(new u("({1}){2}$".assign(o,r),"i"),"$1"+r),n.singular(new u("({1}){2}$".assign(o,r),"i"),"$1"+f)):(n.plural(new u("{1}{2}$".assign(c,f)),e+r),n.plural(new u("{1}{2}$".assign(l,f)),s+r),n.plural(new u("{1}{2}$".assign(e,r)),e+r),n.plural(new u("{1}{2}$".assign(s,r)),s+r),n.singular(new u("{1}{2}$".assign(e,r)),c+f),n.singular(new u("{1}{2}$".assign(s,r)),l+f))},uncountable:function(n){var t=e.isArray(n)?n:l(arguments);nr=nr.concat(t)},human:function(n,t){vf.unshift({l:n,p:t})},clear:function(n){tr(n,"singulars")&&(af=[]);tr(n,"plurals")&&(lf=[]);tr(n,"uncountables")&&(nr=[]);tr(n,"humans")&&(vf=[]);tr(n,"acronyms")&&(ri={})}};vo="and or nor a an the so but to of at by from into on onto off out in over with for".split(" ");n.plural(/$/,"s");n.plural(/s$/gi,"s");n.plural(/(ax|test)is$/gi,"$1es");n.plural(/(octop|vir|fung|foc|radi|alumn)(i|us)$/gi,"$1i");n.plural(/(census|alias|status)$/gi,"$1es");n.plural(/(bu)s$/gi,"$1ses");n.plural(/(buffal|tomat)o$/gi,"$1oes");n.plural(/([ti])um$/gi,"$1a");n.plural(/([ti])a$/gi,"$1a");n.plural(/sis$/gi,"ses");n.plural(/f+e?$/gi,"ves");n.plural(/(cuff|roof)$/gi,"$1s");n.plural(/([ht]ive)$/gi,"$1s");n.plural(/([^aeiouy]o)$/gi,"$1es");n.plural(/([^aeiouy]|qu)y$/gi,"$1ies");n.plural(/(x|ch|ss|sh)$/gi,"$1es");n.plural(/(matr|vert|ind)(?:ix|ex)$/gi,"$1ices");n.plural(/([ml])ouse$/gi,"$1ice");n.plural(/([ml])ice$/gi,"$1ice");n.plural(/^(ox)$/gi,"$1en");n.plural(/^(oxen)$/gi,"$1");n.plural(/(quiz)$/gi,"$1zes");n.plural(/(phot|cant|hom|zer|pian|portic|pr|quart|kimon)o$/gi,"$1os");n.plural(/(craft)$/gi,"$1");n.plural(/([ft])[eo]{2}(th?)$/gi,"$1ee$2");n.singular(/s$/gi,"");n.singular(/([pst][aiu]s)$/gi,"$1");n.singular(/([aeiouy])ss$/gi,"$1ss");n.singular(/(n)ews$/gi,"$1ews");n.singular(/([ti])a$/gi,"$1um");n.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/gi,"$1$2sis");n.singular(/(^analy)ses$/gi,"$1sis");n.singular(/(i)(f|ves)$/i,"$1fe");n.singular(/([aeolr]f?)(f|ves)$/i,"$1f");n.singular(/([ht]ive)s$/gi,"$1");n.singular(/([^aeiouy]|qu)ies$/gi,"$1y");n.singular(/(s)eries$/gi,"$1eries");n.singular(/(m)ovies$/gi,"$1ovie");n.singular(/(x|ch|ss|sh)es$/gi,"$1");n.singular(/([ml])(ous|ic)e$/gi,"$1ouse");n.singular(/(bus)(es)?$/gi,"$1");n.singular(/(o)es$/gi,"$1");n.singular(/(shoe)s?$/gi,"$1");n.singular(/(cris|ax|test)[ie]s$/gi,"$1is");n.singular(/(octop|vir|fung|foc|radi|alumn)(i|us)$/gi,"$1us");n.singular(/(census|alias|status)(es)?$/gi,"$1");n.singular(/^(ox)(en)?/gi,"$1");n.singular(/(vert|ind)(ex|ices)$/gi,"$1ex");n.singular(/(matr)(ix|ices)$/gi,"$1ix");n.singular(/(quiz)(zes)?$/gi,"$1");n.singular(/(database)s?$/gi,"$1");n.singular(/ee(th?)$/gi,"oo$1");n.irregular("person","people");n.irregular("man","men");n.irregular("child","children");n.irregular("sex","sexes");n.irregular("move","moves");n.irregular("save","saves");n.irregular("cow","kine");n.irregular("goose","geese");n.irregular("zombie","zombies");n.uncountable("equipment information rice money species series fish sheep jeans".split(" "));t(f,!0,!0,{pluralize:function(){return po(this,!0)},singularize:function(){return po(this,!1)},humanize:function(){var n=wo(this,vf),t,n=n.replace(/_id$/g,""),n=n.replace(/(_)?([a-z\d]*)/gi,function(n,i,r){return t=ft(ri,r)?ri[r]:null,(i?" ":"")+(t||r.toLowerCase())});return bo(n)},titleize:function(){var r=/[.:;!]$/,n,t,i;return this.spacify().humanize().words(function(u,f,e){return n=r.test(u),i=0==f||f==e.length-1||n||t,t=n,i||-1===vo.indexOf(u)?bo(u):u}).join(" ")},parameterize:function(n){var t=this;return void 0===n&&(n="-"),t.normalize&&(t=t.normalize()),t=t.replace(/[^a-z0-9\-_]+/gi,n),n&&(t=t.replace(new u("^{sep}+|{sep}+$|({sep}){sep}+".assign({sep:wt(n)}),"g"),"$1")),encodeURI(t.toLowerCase())}});f.Inflector=n;f.Inflector.acronyms=ri;"use strict";var oh=65248,sh=[{type:"a",start:65,end:90},{type:"a",start:97,end:122},{type:"n",start:48,end:57},{type:"p",start:33,end:47},{type:"p",start:58,end:64},{type:"p",start:91,end:96},{type:"p",start:123,end:126}],ir,hh=/[\u0020-\u00A5]|[\uFF61-\uFF9F][\uff9e\uff9f]?/g,ch=/[\u3000-\u301C]|[\u301A-\u30FC]|[\uFF01-\uFF60]|[\uFFE0-\uFFE6]/g,lh="｡､｢｣¥¢£",ah="。、「」￥￠￡",vh=/[\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30cf\u30d2\u30d5\u30d8\u30db]/,yh=/[\u30cf\u30d2\u30d5\u30d8\u30db\u30f2]/,ph="ｱｲｳｴｵｧｨｩｪｫｶｷｸｹｺｻｼｽｾｿﾀﾁﾂｯﾃﾄﾅﾆﾇﾈﾉﾊﾋﾌﾍﾎﾏﾐﾑﾒﾓﾔｬﾕｭﾖｮﾗﾘﾙﾚﾛﾜｦﾝｰ･",wh="アイウエオァィゥェォカキクケコサシスセソタチツッテトナニヌネノハヒフヘホマミムメモヤャユュヨョラリルレロワヲンー・";t(f,!0,!0,{hankaku:function(){return ko(this,arguments,ch,"hankaku")},zenkaku:function(){return ko(this,arguments,hh,"zenkaku")},hiragana:function(n){var t=this;return!1!==n&&(t=t.zenkaku("k")),t.replace(/[\u30A1-\u30F6]/g,function(n){return n.shift(-96)})},katakana:function(){return this.replace(/[\u3041-\u3096]/g,function(n){return n.shift(96)})}});[{a:["Arabic"],source:"؀-ۿ"},{a:["Cyrillic"],source:"Ѐ-ӿ"},{a:["Devanagari"],source:"ऀ-ॿ"},{a:["Greek"],source:"Ͱ-Ͽ"},{a:["Hangul"],source:"가-힯ᄀ-ᇿ"},{a:["Han","Kanji"],source:"一-鿿豈-﫿"},{a:["Hebrew"],source:"֐-׿"},{a:["Hiragana"],source:"぀-ゟ・-ー"},{a:["Kana"],source:"぀-ヿ｡-ﾟ"},{a:["Katakana"],source:"゠-ヿ｡-ﾟ"},{a:["Latin"],source:"\x01--ÿĀ-ſƀ-ɏ"},{a:["Thai"],source:"฀-๿"}].forEach(function(n){var t=u("^["+n.source+"\\s]+$"),i=u("["+n.source+"]");n.a.forEach(function(n){gt(f.prototype,"is"+n,function(){return t.test(this.trim())});gt(f.prototype,"has"+n,function(){return i.test(this)})})});Date.addLocale("da",{plural:!0,months:"januar,februar,marts,april,maj,juni,juli,august,september,oktober,november,december",weekdays:"søndag|sondag,mandag,tirsdag,onsdag,torsdag,fredag,lørdag|lordag",units:"millisekund:|er,sekund:|er,minut:|ter,tim:e|er,dag:|e,ug:e|er|en,måned:|er|en+maaned:|er|en,år:||et+aar:||et",numbers:"en|et,to,tre,fire,fem,seks,syv,otte,ni,ti",tokens:"den,for",articles:"den",short:"d. {d}. {month} {yyyy}",long:"den {d}. {month} {yyyy} {H}:{mm}",full:"{Weekday} den {d}. {month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{sign} {num} {unit}",duration:"{num} {unit}",ampm:"am,pm",modifiers:[{name:"day",src:"forgårs|i forgårs|forgaars|i forgaars",value:-2},{name:"day",src:"i går|igår|i gaar|igaar",value:-1},{name:"day",src:"i dag|idag",value:0},{name:"day",src:"i morgen|imorgen",value:1},{name:"day",src:"over morgon|overmorgen|i over morgen|i overmorgen|iovermorgen",value:2},{name:"sign",src:"siden",value:-1},{name:"sign",src:"om",value:1},{name:"shift",src:"i sidste|sidste",value:-1},{name:"shift",src:"denne",value:0},{name:"shift",src:"næste|naeste",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{1?} {num} {unit} {sign}","{shift} {unit=5-7}"],timeParse:["{0?} {weekday?} {date?} {month} {year}","{date} {month}","{shift} {weekday}"]});Date.addLocale("de",{plural:!0,capitalizeUnit:!0,months:"Januar,Februar,März|Marz,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember",weekdays:"Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag",units:"Millisekunde:|n,Sekunde:|n,Minute:|n,Stunde:|n,Tag:|en,Woche:|n,Monat:|en,Jahr:|en",numbers:"ein:|e|er|en|em,zwei,drei,vier,fuenf,sechs,sieben,acht,neun,zehn",tokens:"der",short:"{d}. {Month} {yyyy}",long:"{d}. {Month} {yyyy} {H}:{mm}",full:"{Weekday} {d}. {Month} {yyyy} {H}:{mm}:{ss}",past:"{sign} {num} {unit}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"um",ampm:"am,pm",modifiers:[{name:"day",src:"vorgestern",value:-2},{name:"day",src:"gestern",value:-1},{name:"day",src:"heute",value:0},{name:"day",src:"morgen",value:1},{name:"day",src:"übermorgen|ubermorgen|uebermorgen",value:2},{name:"sign",src:"vor:|her",value:-1},{name:"sign",src:"in",value:1},{name:"shift",src:"letzte:|r|n|s",value:-1},{name:"shift",src:"nächste:|r|n|s+nachste:|r|n|s+naechste:|r|n|s+kommende:n|r",value:1}],dateParse:["{sign} {num} {unit}","{num} {unit} {sign}","{shift} {unit=5-7}"],timeParse:["{weekday?} {date?} {month} {year?}","{shift} {weekday}"]});Date.addLocale("es",{plural:!0,months:"enero,febrero,marzo,abril,mayo,junio,julio,agosto,septiembre,octubre,noviembre,diciembre",weekdays:"domingo,lunes,martes,miércoles|miercoles,jueves,viernes,sábado|sabado",units:"milisegundo:|s,segundo:|s,minuto:|s,hora:|s,día|días|dia|dias,semana:|s,mes:|es,año|años|ano|anos",numbers:"uno,dos,tres,cuatro,cinco,seis,siete,ocho,nueve,diez",tokens:"el,la,de",short:"{d} {month} {yyyy}",long:"{d} {month} {yyyy} {H}:{mm}",full:"{Weekday} {d} {month} {yyyy} {H}:{mm}:{ss}",past:"{sign} {num} {unit}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"a las",ampm:"am,pm",modifiers:[{name:"day",src:"anteayer",value:-2},{name:"day",src:"ayer",value:-1},{name:"day",src:"hoy",value:0},{name:"day",src:"mañana|manana",value:1},{name:"sign",src:"hace",value:-1},{name:"sign",src:"dentro de",value:1},{name:"shift",src:"pasad:o|a",value:-1},{name:"shift",src:"próximo|próxima|proximo|proxima",value:1}],dateParse:["{sign} {num} {unit}","{num} {unit} {sign}","{0?}{1?} {unit=5-7} {shift}","{0?}{1?} {shift} {unit=5-7}"],timeParse:["{shift} {weekday}","{weekday} {shift}","{date?} {2?} {month} {2?} {year?}"]});Date.addLocale("fi",{plural:!0,timeMarker:"kello",ampm:",",months:"tammikuu,helmikuu,maaliskuu,huhtikuu,toukokuu,kesäkuu,heinäkuu,elokuu,syyskuu,lokakuu,marraskuu,joulukuu",weekdays:"sunnuntai,maanantai,tiistai,keskiviikko,torstai,perjantai,lauantai",units:"millisekun:ti|tia|teja|tina|nin,sekun:ti|tia|teja|tina|nin,minuut:ti|tia|teja|tina|in,tun:ti|tia|teja|tina|nin,päiv:ä|ää|iä|änä|än,viik:ko|koa|koja|on|kona,kuukau:si|sia|tta|den|tena,vuo:si|sia|tta|den|tena",numbers:"yksi|ensimmäinen,kaksi|toinen,kolm:e|as,neljä:s,vii:si|des,kuu:si|des,seitsemä:n|s,kahdeksa:n|s,yhdeksä:n|s,kymmene:n|s",articles:"",optionals:"",short:"{d}. {month}ta {yyyy}",long:"{d}. {month}ta {yyyy} kello {H}.{mm}",full:"{Weekday}na {d}. {month}ta {yyyy} kello {H}.{mm}",relative:function(n,t,i,r){function u(i){return(1===n?"":n+" ")+f[8*i+t]}var f=this.units;switch(r){case"duration":return u(0);case"past":return u(1<n?1:0)+" sitten";case"future":return u(4)+" päästä"}},modifiers:[{name:"day",src:"toissa päivänä|toissa päiväistä",value:-2},{name:"day",src:"eilen|eilistä",value:-1},{name:"day",src:"tänään",value:0},{name:"day",src:"huomenna|huomista",value:1},{name:"day",src:"ylihuomenna|ylihuomista",value:2},{name:"sign",src:"sitten|aiemmin",value:-1},{name:"sign",src:"päästä|kuluttua|myöhemmin",value:1},{name:"edge",src:"viimeinen|viimeisenä",value:-2},{name:"edge",src:"lopussa",value:-1},{name:"edge",src:"ensimmäinen|ensimmäisenä",value:1},{name:"shift",src:"edellinen|edellisenä|edeltävä|edeltävänä|viime|toissa",value:-1},{name:"shift",src:"tänä|tämän",value:0},{name:"shift",src:"seuraava|seuraavana|tuleva|tulevana|ensi",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{num} {unit=4-5} {sign} {day}","{month} {year}","{shift} {unit=5-7}"],timeParse:"{0} {num}{1} {day} of {month} {year?};{weekday?} {month} {date}{1} {year?};{date} {month} {year};{shift} {weekday};{shift} week {weekday};{weekday} {2} {shift} week;{0} {date}{1} of {month};{0}{month?} {date?}{1} of {shift} {unit=6-7}".split(";")});Date.addLocale("fr",{plural:!0,months:"janvier,février|fevrier,mars,avril,mai,juin,juillet,août,septembre,octobre,novembre,décembre|decembre",weekdays:"dimanche,lundi,mardi,mercredi,jeudi,vendredi,samedi",units:"milliseconde:|s,seconde:|s,minute:|s,heure:|s,jour:|s,semaine:|s,mois,an:|s|née|nee",numbers:"un:|e,deux,trois,quatre,cinq,six,sept,huit,neuf,dix",tokens:"l'|la|le",short:"{d} {month} {yyyy}",long:"{d} {month} {yyyy} {H}:{mm}",full:"{Weekday} {d} {month} {yyyy} {H}:{mm}:{ss}",past:"{sign} {num} {unit}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"à",ampm:"am,pm",modifiers:[{name:"day",src:"hier",value:-1},{name:"day",src:"aujourd'hui",value:0},{name:"day",src:"demain",value:1},{name:"sign",src:"il y a",value:-1},{name:"sign",src:"dans|d'ici",value:1},{name:"shift",src:"derni:èr|er|ère|ere",value:-1},{name:"shift",src:"prochain:|e",value:1}],dateParse:["{sign} {num} {unit}","{sign} {num} {unit}","{0?} {unit=5-7} {shift}"],timeParse:["{weekday?} {0?} {date?} {month} {year?}","{0?} {weekday} {shift}"]});Date.addLocale("it",{plural:!0,months:"Gennaio,Febbraio,Marzo,Aprile,Maggio,Giugno,Luglio,Agosto,Settembre,Ottobre,Novembre,Dicembre",weekdays:"Domenica,Luned:ì|i,Marted:ì|i,Mercoled:ì|i,Gioved:ì|i,Venerd:ì|i,Sabato",units:"millisecond:o|i,second:o|i,minut:o|i,or:a|e,giorn:o|i,settiman:a|e,mes:e|i,ann:o|i",numbers:"un:|a|o|',due,tre,quattro,cinque,sei,sette,otto,nove,dieci",tokens:"l'|la|il",short:"{d} {Month} {yyyy}",long:"{d} {Month} {yyyy} {H}:{mm}",full:"{Weekday} {d} {Month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{num} {unit} {sign}",duration:"{num} {unit}",timeMarker:"alle",ampm:"am,pm",modifiers:[{name:"day",src:"ieri",value:-1},{name:"day",src:"oggi",value:0},{name:"day",src:"domani",value:1},{name:"day",src:"dopodomani",value:2},{name:"sign",src:"fa",value:-1},{name:"sign",src:"da adesso",value:1},{name:"shift",src:"scors:o|a",value:-1},{name:"shift",src:"prossim:o|a",value:1}],dateParse:["{num} {unit} {sign}","{0?} {unit=5-7} {shift}","{0?} {shift} {unit=5-7}"],timeParse:["{weekday?} {date?} {month} {year?}","{shift} {weekday}"]});Date.addLocale("ja",{monthSuffix:"月",weekdays:"日曜日,月曜日,火曜日,水曜日,木曜日,金曜日,土曜日",units:"ミリ秒,秒,分,時間,日,週間|週,ヶ月|ヵ月|月,年",short:"{yyyy}年{M}月{d}日",long:"{yyyy}年{M}月{d}日 {H}時{mm}分",full:"{yyyy}年{M}月{d}日 {Weekday} {H}時{mm}分{ss}秒",past:"{num}{unit}{sign}",future:"{num}{unit}{sign}",duration:"{num}{unit}",timeSuffixes:"時,分,秒",ampm:"午前,午後",modifiers:[{name:"day",src:"一昨日",value:-2},{name:"day",src:"昨日",value:-1},{name:"day",src:"今日",value:0},{name:"day",src:"明日",value:1},{name:"day",src:"明後日",value:2},{name:"sign",src:"前",value:-1},{name:"sign",src:"後",value:1},{name:"shift",src:"去|先",value:-1},{name:"shift",src:"来",value:1}],dateParse:["{num}{unit}{sign}"],timeParse:["{shift}{unit=5-7}{weekday?}","{year}年{month?}月?{date?}日?","{month}月{date?}日?","{date}日"]});Date.addLocale("ko",{digitDate:!0,monthSuffix:"월",weekdays:"일요일,월요일,화요일,수요일,목요일,금요일,토요일",units:"밀리초,초,분,시간,일,주,개월|달,년",numbers:"일|한,이,삼,사,오,육,칠,팔,구,십",short:"{yyyy}년{M}월{d}일",long:"{yyyy}년{M}월{d}일 {H}시{mm}분",full:"{yyyy}년{M}월{d}일 {Weekday} {H}시{mm}분{ss}초",past:"{num}{unit} {sign}",future:"{num}{unit} {sign}",duration:"{num}{unit}",timeSuffixes:"시,분,초",ampm:"오전,오후",modifiers:[{name:"day",src:"그저께",value:-2},{name:"day",src:"어제",value:-1},{name:"day",src:"오늘",value:0},{name:"day",src:"내일",value:1},{name:"day",src:"모레",value:2},{name:"sign",src:"전",value:-1},{name:"sign",src:"후",value:1},{name:"shift",src:"지난|작",value:-1},{name:"shift",src:"이번",value:0},{name:"shift",src:"다음|내",value:1}],dateParse:["{num}{unit} {sign}","{shift?} {unit=5-7}"],timeParse:["{shift} {unit=5?} {weekday}","{year}년{month?}월?{date?}일?","{month}월{date?}일?","{date}일"]});Date.addLocale("nl",{plural:!0,months:"januari,februari,maart,april,mei,juni,juli,augustus,september,oktober,november,december",weekdays:"zondag|zo,maandag|ma,dinsdag|di,woensdag|woe|wo,donderdag|do,vrijdag|vrij|vr,zaterdag|za",units:"milliseconde:|n,seconde:|n,minu:ut|ten,uur,dag:|en,we:ek|ken,maand:|en,jaar",numbers:"een,twee,drie,vier,vijf,zes,zeven,acht,negen",tokens:"",short:"{d} {Month} {yyyy}",long:"{d} {Month} {yyyy} {H}:{mm}",full:"{Weekday} {d} {Month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{num} {unit} {sign}",duration:"{num} {unit}",timeMarker:"'s|om",modifiers:[{name:"day",src:"gisteren",value:-1},{name:"day",src:"vandaag",value:0},{name:"day",src:"morgen",value:1},{name:"day",src:"overmorgen",value:2},{name:"sign",src:"geleden",value:-1},{name:"sign",src:"vanaf nu",value:1},{name:"shift",src:"laatste|vorige|afgelopen",value:-1},{name:"shift",src:"volgend:|e",value:1}],dateParse:["{num} {unit} {sign}","{0?} {unit=5-7} {shift}","{0?} {shift} {unit=5-7}"],timeParse:["{weekday?} {date?} {month} {year?}","{shift} {weekday}"]});Date.addLocale("pl",{plural:!0,months:"Styczeń|Stycznia,Luty|Lutego,Marzec|Marca,Kwiecień|Kwietnia,Maj|Maja,Czerwiec|Czerwca,Lipiec|Lipca,Sierpień|Sierpnia,Wrzesień|Września,Październik|Października,Listopad|Listopada,Grudzień|Grudnia",weekdays:"Niedziela|Niedzielę,Poniedziałek,Wtorek,Środ:a|ę,Czwartek,Piątek,Sobota|Sobotę",units:"milisekund:a|y|,sekund:a|y|,minut:a|y|,godzin:a|y|,dzień|dni,tydzień|tygodnie|tygodni,miesiące|miesiące|miesięcy,rok|lata|lat",numbers:"jeden|jedną,dwa|dwie,trzy,cztery,pięć,sześć,siedem,osiem,dziewięć,dziesięć",optionals:"w|we,roku",short:"{d} {Month} {yyyy}",long:"{d} {Month} {yyyy} {H}:{mm}",full:"{Weekday}, {d} {Month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"o",ampm:"am,pm",modifiers:[{name:"day",src:"przedwczoraj",value:-2},{name:"day",src:"wczoraj",value:-1},{name:"day",src:"dzisiaj|dziś",value:0},{name:"day",src:"jutro",value:1},{name:"day",src:"pojutrze",value:2},{name:"sign",src:"temu|przed",value:-1},{name:"sign",src:"za",value:1},{name:"shift",src:"zeszły|zeszła|ostatni|ostatnia",value:-1},{name:"shift",src:"następny|następna|następnego|przyszły|przyszła|przyszłego",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{month} {year}","{shift} {unit=5-7}","{0} {shift?} {weekday}"],timeParse:["{date} {month} {year?} {1}","{0} {shift?} {weekday}"]});Date.addLocale("pt",{plural:!0,months:"janeiro,fevereiro,março,abril,maio,junho,julho,agosto,setembro,outubro,novembro,dezembro",weekdays:"domingo,segunda-feira,terça-feira,quarta-feira,quinta-feira,sexta-feira,sábado|sabado",units:"milisegundo:|s,segundo:|s,minuto:|s,hora:|s,dia:|s,semana:|s,mês|mêses|mes|meses,ano:|s",numbers:"um,dois,três|tres,quatro,cinco,seis,sete,oito,nove,dez,uma,duas",tokens:"a,de",short:"{d} de {month} de {yyyy}",long:"{d} de {month} de {yyyy} {H}:{mm}",full:"{Weekday}, {d} de {month} de {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"às",ampm:"am,pm",modifiers:[{name:"day",src:"anteontem",value:-2},{name:"day",src:"ontem",value:-1},{name:"day",src:"hoje",value:0},{name:"day",src:"amanh:ã|a",value:1},{name:"sign",src:"atrás|atras|há|ha",value:-1},{name:"sign",src:"daqui a",value:1},{name:"shift",src:"passad:o|a",value:-1},{name:"shift",src:"próximo|próxima|proximo|proxima",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{0?} {unit=5-7} {shift}","{0?} {shift} {unit=5-7}"],timeParse:["{date?} {1?} {month} {1?} {year?}","{0?} {shift} {weekday}"]});Date.addLocale("ru",{months:"Январ:я|ь,Феврал:я|ь,Март:а|,Апрел:я|ь,Ма:я|й,Июн:я|ь,Июл:я|ь,Август:а|,Сентябр:я|ь,Октябр:я|ь,Ноябр:я|ь,Декабр:я|ь",weekdays:"Воскресенье,Понедельник,Вторник,Среда,Четверг,Пятница,Суббота",units:"миллисекунд:а|у|ы|,секунд:а|у|ы|,минут:а|у|ы|,час:||а|ов,день|день|дня|дней,недел:я|ю|и|ь|е,месяц:||а|ев|е,год|год|года|лет|году",numbers:"од:ин|ну,дв:а|е,три,четыре,пять,шесть,семь,восемь,девять,десять",tokens:"в|на,года",short:"{d} {month} {yyyy} года",long:"{d} {month} {yyyy} года {H}:{mm}",full:"{Weekday} {d} {month} {yyyy} года {H}:{mm}:{ss}",relative:function(n,t,i,r){i=n.toString().slice(-1);switch(!0){case 11<=n&&15>=n:i=3;break;case 1==i:i=1;break;case 2<=i&&4>=i:i=2;break;default:i=3}n=n+" "+this.units[8*i+t];switch(r){case"duration":return n;case"past":return n+" назад";case"future":return"через "+n}},timeMarker:"в",ampm:" утра, вечера",modifiers:[{name:"day",src:"позавчера",value:-2},{name:"day",src:"вчера",value:-1},{name:"day",src:"сегодня",value:0},{name:"day",src:"завтра",value:1},{name:"day",src:"послезавтра",value:2},{name:"sign",src:"назад",value:-1},{name:"sign",src:"через",value:1},{name:"shift",src:"прошл:ый|ой|ом",value:-1},{name:"shift",src:"следующ:ий|ей|ем",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{month} {year}","{0?} {shift} {unit=5-7}"],timeParse:["{date} {month} {year?} {1?}","{0?} {shift} {weekday}"]});Date.addLocale("sv",{plural:!0,months:"januari,februari,mars,april,maj,juni,juli,augusti,september,oktober,november,december",weekdays:"söndag|sondag,måndag:|en+mandag:|en,tisdag,onsdag,torsdag,fredag,lördag|lordag",units:"millisekund:|er,sekund:|er,minut:|er,timm:e|ar,dag:|ar,veck:a|or|an,månad:|er|en+manad:|er|en,år:||et+ar:||et",numbers:"en|ett,två|tva,tre,fyra,fem,sex,sju,åtta|atta,nio,tio",tokens:"den,för|for",articles:"den",short:"den {d} {month} {yyyy}",long:"den {d} {month} {yyyy} {H}:{mm}",full:"{Weekday} den {d} {month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{sign} {num} {unit}",duration:"{num} {unit}",ampm:"am,pm",modifiers:[{name:"day",src:"förrgår|i förrgår|iförrgår|forrgar|i forrgar|iforrgar",value:-2},{name:"day",src:"går|i går|igår|gar|i gar|igar",value:-1},{name:"day",src:"dag|i dag|idag",value:0},{name:"day",src:"morgon|i morgon|imorgon",value:1},{name:"day",src:"över morgon|övermorgon|i över morgon|i övermorgon|iövermorgon|over morgon|overmorgon|i over morgon|i overmorgon|iovermorgon",value:2},{name:"sign",src:"sedan|sen",value:-1},{name:"sign",src:"om",value:1},{name:"shift",src:"i förra|förra|i forra|forra",value:-1},{name:"shift",src:"denna",value:0},{name:"shift",src:"nästa|nasta",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{1?} {num} {unit} {sign}","{shift} {unit=5-7}"],timeParse:["{0?} {weekday?} {date?} {month} {year}","{date} {month}","{shift} {weekday}"]});Date.addLocale("zh-CN",{variant:!0,monthSuffix:"月",weekdays:"星期日|周日,星期一|周一,星期二|周二,星期三|周三,星期四|周四,星期五|周五,星期六|周六",units:"毫秒,秒钟,分钟,小时,天,个星期|周,个月,年",tokens:"日|号",short:"{yyyy}年{M}月{d}日",long:"{yyyy}年{M}月{d}日 {tt}{h}:{mm}",full:"{yyyy}年{M}月{d}日 {weekday} {tt}{h}:{mm}:{ss}",past:"{num}{unit}{sign}",future:"{num}{unit}{sign}",duration:"{num}{unit}",timeSuffixes:"点|时,分钟?,秒",ampm:"上午,下午",modifiers:[{name:"day",src:"前天",value:-2},{name:"day",src:"昨天",value:-1},{name:"day",src:"今天",value:0},{name:"day",src:"明天",value:1},{name:"day",src:"后天",value:2},{name:"sign",src:"前",value:-1},{name:"sign",src:"后",value:1},{name:"shift",src:"上|去",value:-1},{name:"shift",src:"这",value:0},{name:"shift",src:"下|明",value:1}],dateParse:["{num}{unit}{sign}","{shift}{unit=5-7}"],timeParse:["{shift}{weekday}","{year}年{month?}月?{date?}{0?}","{month}月{date?}{0?}","{date}[日号]"]});Date.addLocale("zh-TW",{monthSuffix:"月",weekdays:"星期日|週日,星期一|週一,星期二|週二,星期三|週三,星期四|週四,星期五|週五,星期六|週六",units:"毫秒,秒鐘,分鐘,小時,天,個星期|週,個月,年",tokens:"日|號",short:"{yyyy}年{M}月{d}日",long:"{yyyy}年{M}月{d}日 {tt}{h}:{mm}",full:"{yyyy}年{M}月{d}日 {Weekday} {tt}{h}:{mm}:{ss}",past:"{num}{unit}{sign}",future:"{num}{unit}{sign}",duration:"{num}{unit}",timeSuffixes:"點|時,分鐘?,秒",ampm:"上午,下午",modifiers:[{name:"day",src:"前天",value:-2},{name:"day",src:"昨天",value:-1},{name:"day",src:"今天",value:0},{name:"day",src:"明天",value:1},{name:"day",src:"後天",value:2},{name:"sign",src:"前",value:-1},{name:"sign",src:"後",value:1},{name:"shift",src:"上|去",value:-1},{name:"shift",src:"這",value:0},{name:"shift",src:"下|明",value:1}],dateParse:["{num}{unit}{sign}","{shift}{unit=5-7}"],timeParse:["{shift}{weekday}","{year}年{month?}月?{date?}{0?}","{month}月{date?}{0?}","{date}[日號]"]})}(),function(){"use strict";function n(t,r){function h(n,t){return function(){return n.apply(t,arguments)}}var o,f,e,u,s;if(r=r||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=r.touchBoundary||10,this.layer=t,this.tapDelay=r.tapDelay||200,this.tapTimeout=r.tapTimeout||700,!n.notNeeded(t)){for(f=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],e=this,u=0,s=f.length;u<s;u++)e[f[u]]=h(e[f[u]],e);i&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0));t.addEventListener("click",this.onClick,!0);t.addEventListener("touchstart",this.onTouchStart,!1);t.addEventListener("touchmove",this.onTouchMove,!1);t.addEventListener("touchend",this.onTouchEnd,!1);t.addEventListener("touchcancel",this.onTouchCancel,!1);Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(n,i,r){var u=Node.prototype.removeEventListener;n==="click"?u.call(t,n,i.hijacked||i,r):u.call(t,n,i,r)},t.addEventListener=function(n,i,r){var u=Node.prototype.addEventListener;n==="click"?u.call(t,n,i.hijacked||(i.hijacked=function(n){n.propagationStopped||i(n)}),r):u.call(t,n,i,r)});typeof t.onclick=="function"&&(o=t.onclick,t.addEventListener("click",function(n){o(n)},!1),t.onclick=null)}}var r=navigator.userAgent.indexOf("Windows Phone")>=0,i=navigator.userAgent.indexOf("Android")>0&&!r,t=/iP(ad|hone|od)/.test(navigator.userAgent)&&!r,u=t&&/OS 4_\d(_\d)?/.test(navigator.userAgent),f=t&&/OS [6-7]_\d/.test(navigator.userAgent),e=navigator.userAgent.indexOf("BB10")>0;n.prototype.needsClick=function(n){switch(n.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(n.disabled)return!0;break;case"input":if(t&&n.type==="file"||n.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(n.className)};n.prototype.needsFocus=function(n){switch(n.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!i;case"input":switch(n.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!n.disabled&&!n.readOnly;default:return/\bneedsfocus\b/.test(n.className)}};n.prototype.sendClick=function(n,t){var r,i;document.activeElement&&document.activeElement!==n&&document.activeElement.blur();i=t.changedTouches[0];r=document.createEvent("MouseEvents");r.initMouseEvent(this.determineEventType(n),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null);r.forwardedTouchEvent=!0;n.dispatchEvent(r)};n.prototype.determineEventType=function(n){return i&&n.tagName.toLowerCase()==="select"?"mousedown":"click"};n.prototype.focus=function(n){var i;t&&n.setSelectionRange&&n.type.indexOf("date")!==0&&n.type!=="time"&&n.type!=="month"?(i=n.value.length,n.setSelectionRange(i,i)):n.focus()};n.prototype.updateScrollParent=function(n){var i,t;if(i=n.fastClickScrollParent,!i||!i.contains(n)){t=n;do{if(t.scrollHeight>t.offsetHeight){i=t;n.fastClickScrollParent=t;break}t=t.parentElement}while(t)}i&&(i.fastClickLastScrollTop=i.scrollTop)};n.prototype.getTargetElementFromEventTarget=function(n){return n.nodeType===Node.TEXT_NODE?n.parentNode:n};n.prototype.onTouchStart=function(n){var r,i,f;if(n.targetTouches.length>1)return!0;if(r=this.getTargetElementFromEventTarget(n.target),i=n.targetTouches[0],t){if(f=window.getSelection(),f.rangeCount&&!f.isCollapsed)return!0;if(!u){if(i.identifier&&i.identifier===this.lastTouchIdentifier)return n.preventDefault(),!1;this.lastTouchIdentifier=i.identifier;this.updateScrollParent(r)}}return this.trackingClick=!0,this.trackingClickStart=n.timeStamp,this.targetElement=r,this.touchStartX=i.pageX,this.touchStartY=i.pageY,n.timeStamp-this.lastClickTime<this.tapDelay&&n.preventDefault(),!0};n.prototype.touchHasMoved=function(n){var t=n.changedTouches[0],i=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>i||Math.abs(t.pageY-this.touchStartY)>i?!0:!1};n.prototype.onTouchMove=function(n){return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(n.target)||this.touchHasMoved(n))&&(this.trackingClick=!1,this.targetElement=null),!0):!0};n.prototype.findControl=function(n){return n.control!==undefined?n.control:n.htmlFor?document.getElementById(n.htmlFor):n.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};n.prototype.onTouchEnd=function(n){var s,c,e,o,h,r=this.targetElement;if(!this.trackingClick)return!0;if(n.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(n.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=n.timeStamp,c=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,f&&(h=n.changedTouches[0],r=document.elementFromPoint(h.pageX-window.pageXOffset,h.pageY-window.pageYOffset)||r,r.fastClickScrollParent=this.targetElement.fastClickScrollParent),e=r.tagName.toLowerCase(),e==="label"){if(s=this.findControl(r),s){if(this.focus(r),i)return!1;r=s}}else if(this.needsFocus(r))return n.timeStamp-c>100||t&&window.top!==window&&e==="input"?(this.targetElement=null,!1):(this.focus(r),this.sendClick(r,n),t&&e==="select"||(this.targetElement=null,n.preventDefault()),!1);return t&&!u&&(o=r.fastClickScrollParent,o&&o.fastClickLastScrollTop!==o.scrollTop)?!0:(this.needsClick(r)||(n.preventDefault(),this.sendClick(r,n)),!1)};n.prototype.onTouchCancel=function(){this.trackingClick=!1;this.targetElement=null};n.prototype.onMouse=function(n){return this.targetElement?n.forwardedTouchEvent?!0:n.cancelable?!this.needsClick(this.targetElement)||this.cancelNextClick?(n.stopImmediatePropagation?n.stopImmediatePropagation():n.propagationStopped=!0,n.stopPropagation(),n.preventDefault(),!1):!0:!0:!0};n.prototype.onClick=function(n){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):n.target.type==="submit"&&n.detail===0?!0:(t=this.onMouse(n),t||(this.targetElement=null),t)};n.prototype.destroy=function(){var n=this.layer;i&&(n.removeEventListener("mouseover",this.onMouse,!0),n.removeEventListener("mousedown",this.onMouse,!0),n.removeEventListener("mouseup",this.onMouse,!0));n.removeEventListener("click",this.onClick,!0);n.removeEventListener("touchstart",this.onTouchStart,!1);n.removeEventListener("touchmove",this.onTouchMove,!1);n.removeEventListener("touchend",this.onTouchEnd,!1);n.removeEventListener("touchcancel",this.onTouchCancel,!1)};n.notNeeded=function(n){var t,r,u,f;if(typeof ontouchstart=="undefined")return!0;if(r=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],r)if(i){if(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||r>31&&document.documentElement.scrollWidth<=window.outerWidth))return!0}else return!0;return e&&(u=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),u[1]>=10&&u[2]>=3&&(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))?!0:n.style.msTouchAction==="none"||n.style.touchAction==="manipulation"?!0:(f=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],f>=27&&(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))?!0:n.style.touchAction==="none"||n.style.touchAction==="manipulation"?!0:!1};n.attach=function(t,i){return new n(t,i)};typeof define=="function"&&typeof define.amd=="object"&&define.amd?define(function(){return n}):typeof module!="undefined"&&module.exports?(module.exports=n.attach,module.exports.FastClick=n):window.FastClick=n}()