This repository has been archived on 2022-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
-/Download/​​​ A Mathematical Curiosity_files/common-combined-2.js

7 lines
124 KiB
JavaScript
Raw Normal View History

2022-05-20 19:26:30 +00:00
function _typeof(n){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}(function(){var n=this,t=n._,r={},e=Array.prototype,u=Object.prototype,i=Function.prototype,o=e.push,a=e.slice,c=e.concat,l=u.toString,f=u.hasOwnProperty,s=e.forEach,p=e.map,h=e.reduce,v=e.reduceRight,y=e.filter,d=e.every,m=e.some,g=e.indexOf,b=e.lastIndexOf,_=Array.isArray,x=Object.keys,j=i.bind,w=function n(t){return t instanceof n?t:this instanceof n?void(this._wrapped=t):new n(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=w),exports._=w):n._=w,w.VERSION="1.4.4";var A=w.each=w.forEach=function(n,t,e){if(null!=n)if(s&&n.forEach===s)n.forEach(t,e);else if(n.length===+n.length){for(var u=0,i=n.length;i>u;u++)if(t.call(e,n[u],u,n)===r)return}else for(var o in n)if(w.has(n,o)&&t.call(e,n[o],o,n)===r)return};w.map=w.collect=function(n,t,r){var e=[];return null==n?e:p&&n.map===p?n.map(t,r):(A(n,function(n,u,i){e[e.length]=t.call(r,n,u,i)}),e)};var O="Reduce of empty array with no initial value";w.reduce=w.foldl=w.inject=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),h&&n.reduce===h)return e&&(t=w.bind(t,e)),u?n.reduce(t,r):n.reduce(t);if(A(n,function(n,i,o){u?r=t.call(e,r,n,i,o):(r=n,u=!0)}),!u)throw new TypeError(O);return r},w.reduceRight=w.foldr=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),v&&n.reduceRight===v)return e&&(t=w.bind(t,e)),u?n.reduceRight(t,r):n.reduceRight(t);var i=n.length;if(i!==+i){var o=w.keys(n);i=o.length}if(A(n,function(a,c,l){c=o?o[--i]:--i,u?r=t.call(e,r,n[c],c,l):(r=n[c],u=!0)}),!u)throw new TypeError(O);return r},w.find=w.detect=function(n,t,r){var e;return E(n,function(n,u,i){return t.call(r,n,u,i)?(e=n,!0):void 0}),e},w.filter=w.select=function(n,t,r){var e=[];return null==n?e:y&&n.filter===y?n.filter(t,r):(A(n,function(n,u,i){t.call(r,n,u,i)&&(e[e.length]=n)}),e)},w.reject=function(n,t,r){return w.filter(n,function(n,e,u){return!t.call(r,n,e,u)},r)},w.every=w.all=function(n,t,e){t||(t=w.identity);var u=!0;return null==n?u:d&&n.every===d?n.every(t,e):(A(n,function(n,i,o){return(u=u&&t.call(e,n,i,o))?void 0:r}),!!u)};var E=w.some=w.any=function(n,t,e){t||(t=w.identity);var u=!1;return null==n?u:m&&n.some===m?n.some(t,e):(A(n,function(n,i,o){return u||(u=t.call(e,n,i,o))?r:void 0}),!!u)};w.contains=w.include=function(n,t){return null!=n&&(g&&n.indexOf===g?-1!=n.indexOf(t):E(n,function(n){return n===t}))},w.invoke=function(n,t){var r=a.call(arguments,2),e=w.isFunction(t);return w.map(n,function(n){return(e?t:n[t]).apply(n,r)})},w.pluck=function(n,t){return w.map(n,function(n){return n[t]})},w.where=function(n,t,r){return w.isEmpty(t)?r?null:[]:w[r?"find":"filter"](n,function(n){for(var r in t)if(t[r]!==n[r])return!1;return!0})},w.findWhere=function(n,t){return w.where(n,t,!0)},w.max=function(n,t,r){if(!t&&w.isArray(n)&&n[0]===+n[0]&&65535>n.length)return Math.max.apply(Math,n);if(!t&&w.isEmpty(n))return-1/0;var e={computed:-1/0,value:-1/0};return A(n,function(n,u,i){var o=t?t.call(r,n,u,i):n;o>=e.computed&&(e={value:n,computed:o})}),e.value},w.min=function(n,t,r){if(!t&&w.isArray(n)&&n[0]===+n[0]&&65535>n.length)return Math.min.apply(Math,n);if(!t&&w.isEmpty(n))return 1/0;var e={computed:1/0,value:1/0};return A(n,function(n,u,i){var o=t?t.call(r,n,u,i):n;e.computed>o&&(e={value:n,computed:o})}),e.value},w.shuffle=function(n){var t,r=0,e=[];return A(n,function(n){t=w.random(r++),e[r-1]=e[t],e[t]=n}),e};var k=function(n){return w.isFunction(n)?n:function(t){return t[n]}};w.sortBy=function(n,t,r){var e=k(t);return w.pluck(w.map(n,function(n,t,u){return{value:n,index:t,criteria:e.call(r,n,t,u)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||void 0===r)return 1;if(e>r||void 0===e)return-1}return n.index<t.index?-1:1}),"value")};var F=function(n,t,r,e){var u={},i=k(t||w.identity);return A(n,function(t,o){var a=i.call(r,t,o,n);e(u,a,t)}),u};w.groupBy=function(n
;!function(e,n){"use strict";var r=n.prototype.trim,t=n.prototype.trimRight,u=n.prototype.trimLeft,l=function(e){return 1*e||0},i=function(e,n){if(n<1)return"";for(var r="";n>0;)1&n&&(r+=e),n>>=1,e+=e;return r},o=[].slice,a=function(e){return null==e?"\\s":e.source?e.source:"["+h.escapeRegExp(e)+"]"},c={lt:"<",gt:">",quot:'"',apos:"'",amp:"&"},s={};for(var f in c)s[c[f]]=f;var p=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}var r=i,t=function e(){return e.cache.hasOwnProperty(arguments[0])||(e.cache[arguments[0]]=e.parse(arguments[0])),e.format.call(null,e.cache[arguments[0]],arguments)};return t.format=function(t,u){var l,i,o,a,c,s,f,h=1,g=t.length,d="",m=[];for(i=0;i<g;i++)if("string"===(d=e(t[i])))m.push(t[i]);else if("array"===d){if((a=t[i])[2])for(l=u[h],o=0;o<a[2].length;o++){if(!l.hasOwnProperty(a[2][o]))throw new Error(p('[_.sprintf] property "%s" does not exist',a[2][o]));l=l[a[2][o]]}else l=a[1]?u[a[1]]:u[h++];if(/[^s]/.test(a[8])&&"number"!=e(l))throw new Error(p("[_.sprintf] expecting number but found %s",e(l)));switch(a[8]){case"b":l=l.toString(2);break;case"c":l=n.fromCharCode(l);break;case"d":l=parseInt(l,10);break;case"e":l=a[7]?l.toExponential(a[7]):l.toExponential();break;case"f":l=a[7]?parseFloat(l).toFixed(a[7]):parseFloat(l);break;case"o":l=l.toString(8);break;case"s":l=(l=n(l))&&a[7]?l.substring(0,a[7]):l;break;case"u":l=Math.abs(l);break;case"x":l=l.toString(16);break;case"X":l=l.toString(16).toUpperCase()}l=/[def]/.test(a[8])&&a[3]&&l>=0?"+"+l:l,s=a[4]?"0"==a[4]?"0":a[4].charAt(1):" ",f=a[6]-n(l).length,c=a[6]?r(s,f):"",m.push(a[5]?l+c:c+l)}return m.join("")},t.cache={},t.parse=function(e){for(var n=e,r=[],t=[],u=0;n;){if(null!==(r=/^[^\x25]+/.exec(n)))t.push(r[0]);else if(null!==(r=/^\x25{2}/.exec(n)))t.push("%");else{if(null===(r=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(n)))throw new Error("[_.sprintf] huh?");if(r[2]){u|=1;var l=[],i=r[2],o=[];if(null===(o=/^([a-z_][a-z_\d]*)/i.exec(i)))throw new Error("[_.sprintf] huh?");for(l.push(o[1]);""!==(i=i.substring(o[0].length));)if(null!==(o=/^\.([a-z_][a-z_\d]*)/i.exec(i)))l.push(o[1]);else{if(null===(o=/^\[(\d+)\]/.exec(i)))throw new Error("[_.sprintf] huh?");l.push(o[1])}r[2]=l}else u|=2;if(3===u)throw new Error("[_.sprintf] mixing positional and named placeholders is not (yet) supported");t.push(r)}n=n.substring(r[0].length)}return t},t}(),h={VERSION:"2.3.0",isBlank:function(e){return null==e&&(e=""),/^\s*$/.test(e)},stripTags:function(e){return null==e?"":n(e).replace(/<\/?[^>]+>/g,"")},capitalize:function(e){return(e=null==e?"":n(e)).charAt(0).toUpperCase()+e.slice(1)},chop:function(e,r){return null==e?[]:(e=n(e),(r=~~r)>0?e.match(new RegExp(".{1,"+r+"}","g")):[e])},clean:function(e){return h.strip(e).replace(/\s+/g," ")},count:function(e,r){return null==e||null==r?0:n(e).split(r).length-1},chars:function(e){return null==e?[]:n(e).split("")},swapCase:function(e){return null==e?"":n(e).replace(/\S/g,function(e){return e===e.toUpperCase()?e.toLowerCase():e.toUpperCase()})},escapeHTML:function(e){return null==e?"":n(e).replace(/[&<>"']/g,function(e){return"&"+s[e]+";"})},unescapeHTML:function(e){return null==e?"":n(e).replace(/\&([^;]+);/g,function(e,r){var t;return r in c?c[r]:(t=r.match(/^#x([\da-fA-F]+)$/))?n.fromCharCode(parseInt(t[1],16)):(t=r.match(/^#(\d+)$/))?n.fromCharCode(~~t[1]):e})},escapeRegExp:function(e){return null==e?"":n(e).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")},splice:function(e,n,r,t){var u=h.chars(e);return u.splice(~~n,~~r,t),u.join("")},insert:function(e,n,r){return h.splice(e,n,0,r)},include:function(e,r){return""===r||null!=e&&-1!==n(e).indexOf(r)},join:function(){var e=o.call(arguments),n=e.shift();return null==n&&(n=""),e.join(n)},lines:function(e){return null==e?[]:n(e).split("\n")},reverse:function(e){return h.chars(e).reverse().join("")},startsWith:function(e,r){return""===r||null!=e&&null!=r&&(e=n(e),r=n(r),e.length>=r.length&&e.slice(0,r.length)===r)},endsWith:function(e,r){return""===r||null!=e&&null!=r&&(e=n(e),
;function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(i,n,s){t.Backbone=e(t,s,i,n)});else if("undefined"!=typeof exports){var i=require("underscore");e(t,exports,i)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,i,n){var s=t.Backbone,r=[],o=r.slice;e.VERSION="1.1.2",e.$=n,e.noConflict=function(){return t.Backbone=s,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,i){return u(this,"on",t,[e,i])&&e?(this._events||(this._events={}),(this._events[t]||(this._events[t]=[])).push({callback:e,context:i,ctx:i||this}),this):this},once:function(t,e,n){if(!u(this,"once",t,[e,n])||!e)return this;var s=this,r=i.once(function(){s.off(t,r),e.apply(this,arguments)});return r._callback=e,this.on(t,r,n)},off:function(t,e,n){var s,r,o,a,h,c,l,f;if(!this._events||!u(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events=void 0,this;for(h=0,c=(a=t?[t]:i.keys(this._events)).length;h<c;h++)if(t=a[h],o=this._events[t]){if(this._events[t]=s=[],e||n)for(l=0,f=o.length;l<f;l++)r=o[l],(e&&e!==r.callback&&e!==r.callback._callback||n&&n!==r.context)&&s.push(r);s.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=o.call(arguments,1);if(!u(this,"trigger",t,e))return this;var i=this._events[t],n=this._events.all;return i&&c(i,e),n&&c(n,arguments),this},stopListening:function(t,e,n){var s=this._listeningTo;if(!s)return this;var r=!e&&!n;for(var o in n||"object"!==_typeof(e)||(n=this),t&&((s={})[t._listenId]=t),s)(t=s[o]).off(e,n,this),(r||i.isEmpty(t._events))&&delete this._listeningTo[o];return this}},h=/\s+/,u=function(t,e,i,n){if(!i)return!0;if("object"===_typeof(i)){for(var s in i)t[e].apply(t,[s,i[s]].concat(n));return!1}if(h.test(i)){for(var r=i.split(h),o=0,a=r.length;o<a;o++)t[e].apply(t,[r[o]].concat(n));return!1}return!0},c=function(t,e){var i,n=-1,s=t.length,r=e[0],o=e[1],a=e[2];switch(e.length){case 0:for(;++n<s;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r);return;case 2:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,o);return;case 3:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,o,a);return;default:for(;++n<s;)(i=t[n]).callback.apply(i.ctx,e);return}};i.each({listenTo:"on",listenToOnce:"once"},function(t,e){a[e]=function(e,n,s){return(this._listeningTo||(this._listeningTo={}))[e._listenId||(e._listenId=i.uniqueId("l"))]=e,s||"object"!==_typeof(n)||(s=this),e[t](n,s,this),this}}),a.bind=a.on,a.unbind=a.off,i.extend(e,a);var l=e.Model=function(t,e){var n=t||{};e||(e={}),this.cid=i.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{}),n=i.defaults({},n,i.result(this,"defaults")),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};i.extend(l.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,n){var s,r,o,a,h,u,c,l;if(null==t)return this;if("object"===_typeof(t)?(r=t,n=e):(r={})[t]=e,n||(n={}),!this._validate(r,n))return!1;for(s in o=n.unset,h=n.silent,a=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=i.clone(this.attributes),this.changed={}),l=this.attributes,c=this._previousAttributes,this.idAttribute in r&&(this.id=r[this.idAttribute]),r)e=r[s],i.isEqual(l[s],e)||a.push(s),i.isEqual(c[s],e)?delete this.changed[s]:this.changed[s]=e,o?delete l[s]:l[s]=e;if(!h){a.length&&(this._pending=n);for(var f=0,d=a.length;f<d;f++)this.trigger("change:"+a[f],this,l[a[f]],n)}if(u)return this;if(!h)for(;this._pending;)n=this._pending,this._pending
;function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=e():t.Handlebars=e()}(this,function(){var t=function(){"use strict";function t(t){return s[t]}var e={},s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i=/[&<>"'`]/g,n=/[&<>"'`]/;e.extend=function(t){for(var e=1;e<arguments.length;e++)for(var s in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],s)&&(t[s]=arguments[e][s]);return t};var r,a=Object.prototype.toString;e.toString=a,(r=function(t){return"function"==typeof t})(/x/)&&(r=function(t){return"function"==typeof t&&"[object Function]"===a.call(t)}),e.isFunction=r;var o=Array.isArray||function(t){return!(!t||"object"!=_typeof(t))&&"[object Array]"===a.call(t)};return e.isArray=o,e.indexOf=function(t,e){for(var s=0,i=t.length;i>s;s++)if(t[s]===e)return s;return-1},e.escapeExpression=function(e){return e&&e.toHTML?e.toHTML():null==e?"":e?(e=""+e,n.test(e)?e.replace(i,t):e):e+""},e.isEmpty=function(t){return!t&&0!==t||!(!o(t)||0!==t.length)},e.blockParams=function(t,e){return t.path=e,t},e.appendContextPath=function(t,e){return(t?t+".":"")+e},e}(),e=function(){"use strict";function t(t,s){var i,n,r=s&&s.loc;r&&(t+=" - "+(i=r.start.line)+":"+(n=r.start.column));for(var a=Error.prototype.constructor.call(this,t),o=0;o<e.length;o++)this[e[o]]=a[e[o]];r&&(this.lineNumber=i,this.column=n)}var e=["description","fileName","lineNumber","message","name","number","stack"];return t.prototype=new Error,t}(),s=function(t,e){"use strict";function s(t,e){this.helpers=t||{},this.partials=e||{},function(t){t.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new r("Missing helper: '"+arguments[arguments.length-1].name+"'")}),t.registerHelper("blockHelperMissing",function(e,s){var i=s.inverse,r=s.fn;if(!0===e)return r(this);if(!1===e||null==e)return i(this);if(a(e))return e.length>0?(s.ids&&(s.ids=[s.name]),t.helpers.each(e,s)):i(this);if(s.data&&s.ids){var o=u(s.data);o.contextPath=n.appendContextPath(s.data.contextPath,s.name),s={data:o}}return r(e,s)}),t.registerHelper("each",function(t,e){function s(e,s,r){i&&(i.key=e,i.index=s,i.first=0===s,i.last=!!r,h&&(i.contextPath=h+e)),f+=c(t[e],{data:i,blockParams:n.blockParams([t[e],e],[h+e,null])})}if(!e)throw new r("Must pass iterator to #each");var i,h,c=e.fn,p=e.inverse,l=0,f="";if(e.data&&e.ids&&(h=n.appendContextPath(e.data.contextPath,e.ids[0])+"."),o(t)&&(t=t.call(this)),e.data&&(i=u(e.data)),t&&"object"==_typeof(t))if(a(t))for(var m=t.length;m>l;l++)s(l,l,l===t.length-1);else{var d;for(var g in t)t.hasOwnProperty(g)&&(d&&s(d,l-1),d=g,l++);d&&s(d,l-1,!0)}return 0===l&&(f=p(this)),f}),t.registerHelper("if",function(t,e){return o(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||n.isEmpty(t)?e.inverse(this):e.fn(this)}),t.registerHelper("unless",function(e,s){return t.helpers.if.call(this,e,{fn:s.inverse,inverse:s.fn,hash:s.hash})}),t.registerHelper("with",function(t,e){o(t)&&(t=t.call(this));var s=e.fn;if(n.isEmpty(t))return e.inverse(this);if(e.data&&e.ids){var i=u(e.data);i.contextPath=n.appendContextPath(e.data.contextPath,e.ids[0]),e={data:i}}return s(t,e)}),t.registerHelper("log",function(e,s){var i=s.data&&null!=s.data.level?parseInt(s.data.level,10):1;t.log(i,e)}),t.registerHelper("lookup",function(t,e){return t&&t[e]})}(this)}var i={},n=t,r=e;i.VERSION="3.0.0";i.COMPILER_REVISION=6;i.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};var a=n.isArray,o=n.isFunction,h=n.toString,c="[object Object]";i.HandlebarsEnvironment=s,s.prototype={constructor:s,logger:p,log:l,registerHelper:function(t,e){if(h.call(t)===c){if(e)throw new r("Arg not supported with multiple helpers");n.extend(this.helpers,t)}else this.helpers[t
;!function(e){function t(t){var n=t||window.event,i=[].slice.call(arguments,1),l=0,s=0,o=0;return(t=e.event.fix(n)).type="mousewheel",n.wheelDelta&&(l=n.wheelDelta/120),n.detail&&(l=-n.detail/3),o=l,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(o=0,s=-1*l),void 0!==n.wheelDeltaY&&(o=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(s=-1*n.wheelDeltaX/120),i.unshift(t,l,s,o),(e.event.dispatch||e.event.handle).apply(this,i)}var n=["DOMMouseScroll","mousewheel"];if(e.event.fixHooks)for(var i=n.length;i;)e.event.fixHooks[n[--i]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=n.length;e;)this.addEventListener(n[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=n.length;e;)this.removeEventListener(n[--e],t,!1);else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery);
;function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}(function(t){function e(t,e){return function(n){return u(t.call(this,n),e)}}function n(t,e){return function(n){return this.lang().ordinal(t.call(this,n),e)}}function s(){}function r(t){w(t),a(this,t)}function i(t){var e=l(t),n=e.year||0,s=e.month||0,r=e.week||0,i=e.day||0,a=e.hour||0,o=e.minute||0,u=e.second||0,h=e.millisecond||0;this._input=t,this._milliseconds=+h+1e3*u+6e4*o+36e5*a,this._days=+i+7*r,this._months=+s+12*n,this._data={},this._bubble()}function a(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return e.hasOwnProperty("toString")&&(t.toString=e.toString),e.hasOwnProperty("valueOf")&&(t.valueOf=e.valueOf),t}function o(t){return 0>t?Math.ceil(t):Math.floor(t)}function u(t,e){for(var n=t+"";n.length<e;)n="0"+n;return n}function h(t,e,n,s){var r,i,a=e._milliseconds,o=e._days,u=e._months;a&&t._d.setTime(+t._d+a*n),(o||u)&&(r=t.minute(),i=t.hour()),o&&t.date(t.date()+o*n),u&&t.month(t.month()+u*n),a&&!s&&N.updateOffset(t),(o||u)&&(t.minute(r),t.hour(i))}function d(t){return"[object Array]"===Object.prototype.toString.call(t)}function f(t,e,n){var s,r=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),a=0;for(s=0;r>s;s++)(n&&t[s]!==e[s]||!n&&m(t[s])!==m(e[s]))&&a++;return a+i}function c(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=Dt[t]||Yt[e]||e}return t}function l(t){var e,n,s={};for(n in t)t.hasOwnProperty(n)&&((e=c(n))&&(s[e]=t[n]));return s}function _(e){var n,s;if(0===e.indexOf("week"))n=7,s="day";else{if(0!==e.indexOf("month"))return;n=12,s="month"}N[e]=function(r,i){var a,o,u=N.fn._lang[e],h=[];if("number"==typeof r&&(i=r,r=t),o=function(t){var e=N().utc().set(s,t);return u.call(N.fn._lang,e,r||"")},null!=i)return o(i);for(a=0;n>a;a++)h.push(o(a));return h}}function m(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function y(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function p(t){return g(t)?366:365}function g(t){return 0==t%4&&0!=t%100||0==t%400}function w(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[J]<0||t._a[J]>11?J:t._a[j]<1||t._a[j]>y(t._a[V],t._a[J])?j:t._a[X]<0||t._a[X]>23?X:t._a[R]<0||t._a[R]>59?R:t._a[q]<0||t._a[q]>59?q:t._a[B]<0||t._a[B]>999?B:-1,t._pf._overflowDayOfYear&&(V>e||e>j)&&(e=j),t._pf.overflow=e)}function M(t){t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function D(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function Y(t){return t?t.toLowerCase().replace("_","-"):t}function k(t){var e,n,s,r,i=0,a=function(t){if(!K[t]&&Q)try{require("./lang/"+t)}catch(e){}return K[t]};if(!t)return N.fn._lang;if(!d(t)){if(n=a(t))return n;t=[t]}for(;i<t.length;){for(e=(r=Y(t[i]).split("-")).length,s=(s=Y(t[i+1]))?s.split("-"):null;e>0;){if(n=a(r.slice(0,e).join("-")))return n;if(s&&s.length>=e&&f(r,s,!0)>=e-1)break;e--}i++}return N.fn._lang}function v(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function b(t,e){return t.isValid()?(e=S(e,t.lang()),kt[e]||(kt[e]=function(t){var e,n,s=t.match(st);for(e=0,n=s.length;n>e;e++)s[e]=St[s[e]]?St[s[e]]:v(s[e]);return function(r){var i="";for(e=0;n>e;e++)i+=s[e]instanceof Function?s[e].call(r,t):s[e];return i}}(e)),kt[e](t)):t.lang().invalidDate()}function S(t,e){function n(t){return e.longDateFormat(t)||t}var s=5;for(rt.lastIndex=0;s>=0&&rt.test(t);)t=t.replace(rt,n),rt.lastIndex=0,s-=1;return t}function T(t,e){switch(t){case"DDDD":return ot;case"YYYY":case"GGGG":case"gggg":return ut;case"YYYYY":case"GGGGG":case"ggggg":return ht;case"S":case"SS":case"SSS":case"DDD":return at;case"MMM":case"MMMM
;_.mixin(_.str.exports());