taiga-front-dist/dist/v-1463480691365/js/libs.js

26 lines
723 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

function hex_sha1(t){return binb2hex(core_sha1(str2binb(t),t.length*chrsz))}function b64_sha1(t){return binb2b64(core_sha1(str2binb(t),t.length*chrsz))}function str_sha1(t){return binb2str(core_sha1(str2binb(t),t.length*chrsz))}function hex_hmac_sha1(t,e){return binb2hex(core_hmac_sha1(t,e))}function b64_hmac_sha1(t,e){return binb2b64(core_hmac_sha1(t,e))}function str_hmac_sha1(t,e){return binb2str(core_hmac_sha1(t,e))}function sha1_vm_test(){return"a9993e364706816aba3e25717850c26c9cd0d89d"==hex_sha1("abc")}function core_sha1(t,e){t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e;for(var n=Array(80),r=1732584193,i=-271733879,o=-1732584194,a=271733878,s=-1009589776,u=0;u<t.length;u+=16){for(var l=r,c=i,f=o,h=a,p=s,d=0;80>d;d++){16>d?n[d]=t[u+d]:n[d]=rol(n[d-3]^n[d-8]^n[d-14]^n[d-16],1);var v=safe_add(safe_add(rol(r,5),sha1_ft(d,i,o,a)),safe_add(safe_add(s,n[d]),sha1_kt(d)));s=a,a=o,o=rol(i,30),i=r,r=v}r=safe_add(r,l),i=safe_add(i,c),o=safe_add(o,f),a=safe_add(a,h),s=safe_add(s,p)}return Array(r,i,o,a,s)}function sha1_ft(t,e,n,r){return 20>t?e&n|~e&r:40>t?e^n^r:60>t?e&n|e&r|n&r:e^n^r}function sha1_kt(t){return 20>t?1518500249:40>t?1859775393:60>t?-1894007588:-899497514}function core_hmac_sha1(t,e){var n=str2binb(t);n.length>16&&(n=core_sha1(n,t.length*chrsz));for(var r=Array(16),i=Array(16),o=0;16>o;o++)r[o]=909522486^n[o],i[o]=1549556828^n[o];var a=core_sha1(r.concat(str2binb(e)),512+e.length*chrsz);return core_sha1(i.concat(a),672)}function safe_add(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function rol(t,e){return t<<e|t>>>32-e}function str2binb(t){for(var e=Array(),n=(1<<chrsz)-1,r=0;r<t.length*chrsz;r+=chrsz)e[r>>5]|=(t.charCodeAt(r/chrsz)&n)<<32-chrsz-r%32;return e}function binb2str(t){for(var e="",n=(1<<chrsz)-1,r=0;r<32*t.length;r+=chrsz)e+=String.fromCharCode(t[r>>5]>>>32-chrsz-r%32&n);return e}function binb2hex(t){for(var e=hexcase?"0123456789ABCDEF":"0123456789abcdef",n="",r=0;r<4*t.length;r++)n+=e.charAt(t[r>>2]>>8*(3-r%4)+4&15)+e.charAt(t[r>>2]>>8*(3-r%4)&15);return n}function binb2b64(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",r=0;r<4*t.length;r+=3)for(var i=(t[r>>2]>>8*(3-r%4)&255)<<16|(t[r+1>>2]>>8*(3-(r+1)%4)&255)<<8|t[r+2>>2]>>8*(3-(r+2)%4)&255,o=0;4>o;o++)n+=8*r+6*o>32*t.length?b64pad:e.charAt(i>>6*(3-o)&63);return n}function murmurhash3_32_gc(t,e){var n,r,i,o,a,s,u,l;for(n=3&t.length,r=t.length-n,i=e,a=3432918353,s=461845907,l=0;r>l;)u=255&t.charCodeAt(l)|(255&t.charCodeAt(++l))<<8|(255&t.charCodeAt(++l))<<16|(255&t.charCodeAt(++l))<<24,++l,u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295,u=u<<15|u>>>17,u=(65535&u)*s+(((u>>>16)*s&65535)<<16)&4294967295,i^=u,i=i<<13|i>>>19,o=5*(65535&i)+((5*(i>>>16)&65535)<<16)&4294967295,i=(65535&o)+27492+(((o>>>16)+58964&65535)<<16);switch(u=0,n){case 3:u^=(255&t.charCodeAt(l+2))<<16;case 2:u^=(255&t.charCodeAt(l+1))<<8;case 1:u^=255&t.charCodeAt(l),u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295,u=u<<15|u>>>17,u=(65535&u)*s+(((u>>>16)*s&65535)<<16)&4294967295,i^=u}return i^=t.length,i^=i>>>16,i=2246822507*(65535&i)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(65535&i)+((3266489909*(i>>>16)&65535)<<16)&4294967295,i^=i>>>16,i>>>0}!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.Promise=t()}}(function(){var t,e,n;return function r(t,e,n){function i(a,s){if(!e[a]){if(!t[a]){var u="function"==typeof _dereq_&&_dereq_;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=e[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n?n:e)},c,c.exports,r,t,e,n)}return e[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(t,e,n){"use strict";e.exports=function(t){function e(t){var e=new n(t),r=e.promise();return e.setHowMany(1),e.setUnwrap(),e.init(),r}var n=t._SomePromiseArray;t.any=function(t){return e(t)},t.prototype.any=function(){return e(this)}}},{}],2:[function(t,e,n){"use strict";function r(){this._isTickUsed=!1,this._lateQueue=new c(16),this._normalQueue=new c(16),this._trampolineEnabled=!0;var t=this;this.drainQueues=function(){t._drainQueues()},this._schedule=l.isStatic?l(this.drainQueues):l}function i(t,e,n){this._lateQueue.push(t,e,n),this._queueTick()}function o(t,e,n){this._normalQueue.push(t,e,n),this._queueTick()}function a(t){this._normalQueue._pushOne(t),this._queueTick()}var s;try{throw new Error}catch(u){s=u}var l=t("./schedule.js"),c=t("./queue.js"),f=t("./util.js");r.prototype.disableTrampolineIfNecessary=function(){f.hasDevTools&&(this._trampolineEnabled=!1)},r.prototype.enableTrampoline=function(){this._trampolineEnabled||(this._trampolineEnabled=!0,this._schedule=function(t){setTimeout(t,0)})},r.prototype.haveItemsQueued=function(){return this._normalQueue.length()>0},r.prototype.throwLater=function(t,e){if(1===arguments.length&&(e=t,t=function(){throw e}),"undefined"!=typeof setTimeout)setTimeout(function(){t(e)},0);else try{this._schedule(function(){t(e)})}catch(n){throw new Error("No async scheduler available\n\n See http://goo.gl/m3OTXk\n")}},f.hasDevTools?(l.isStatic&&(l=function(t){setTimeout(t,0)}),r.prototype.invokeLater=function(t,e,n){this._trampolineEnabled?i.call(this,t,e,n):this._schedule(function(){setTimeout(function(){t.call(e,n)},100)})},r.prototype.invoke=function(t,e,n){this._trampolineEnabled?o.call(this,t,e,n):this._schedule(function(){t.call(e,n)})},r.prototype.settlePromises=function(t){this._trampolineEnabled?a.call(this,t):this._schedule(function(){t._settlePromises()})}):(r.prototype.invokeLater=i,r.prototype.invoke=o,r.prototype.settlePromises=a),r.prototype.invokeFirst=function(t,e,n){this._normalQueue.unshift(t,e,n),this._queueTick()},r.prototype._drainQueue=function(t){for(;t.length()>0;){var e=t.shift();if("function"==typeof e){var n=t.shift(),r=t.shift();e.call(n,r)}else e._settlePromises()}},r.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._drainQueue(this._lateQueue)},r.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},r.prototype._reset=function(){this._isTickUsed=!1},e.exports=new r,e.exports.firstLineError=s},{"./queue.js":28,"./schedule.js":31,"./util.js":38}],3:[function(t,e,n){"use strict";e.exports=function(t,e,n){var r=function(t,e){this._reject(e)},i=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(r,r,null,this,t)},o=function(t,e){this._isPending()&&this._resolveCallback(e.target)},a=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(r){var s=n(r),u=new t(e);u._propagateFrom(this,1);var l=this._target();if(u._setBoundTo(s),s instanceof t){var c={promiseRejectionQueued:!1,promise:u,target:l,bindingPromise:s};l._then(e,i,u._progress,u,c),s._then(o,a,u._progress,u,c)}else u._resolveCallback(l);return u},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=131072|this._bitField,this._boundTo=t):this._bitField=-131073&this._bitField},t.prototype._isBound=function(){return 131072===(131072&this._bitField)},t.bind=function(r,i){var o=n(r),a=new t(e);return a._setBoundTo(o),o instanceof t?o._then(function(){a._resolveCallback(i)},a._reject,a._progress,a,null):a._resolveCallback(i),a}}},{}],4:[function(t,e,n){"use strict";function r(){try{Promise===o&&(Promise=i)}catch(t){}return o}var i;"undefined"!=typeof Promise&&(i=Promise);var o=t("./promise.js")();o.noConflict=r,e.exports=o},{"./promise.js":23}],5:[function(t,e,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}e.exports=function(e){function n(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var i="Object "+s.classString(t)+" has no method '"+s.toString(n)+"'";throw new e.TypeError(i)}return r}function r(t){var e=this.pop(),r=n(t,e);return r.apply(t,this)}function i(t){return t[this]}function o(t){var e=+this;return 0>e&&(e=Math.max(0,e+t.length)),t[e]}var a,s=t("./util.js"),u=s.canEvaluate;s.isIdentifier;e.prototype.call=function(t){for(var e=arguments.length,n=new Array(e-1),i=1;e>i;++i)n[i-1]=arguments[i];return n.push(t),this._then(r,void 0,void 0,n,void 0)},e.prototype.get=function(t){var e,n="number"==typeof t;if(n)e=o;else if(u){var r=a(t);e=null!==r?r:i}else e=i;return this._then(e,void 0,void 0,t,void 0)}}},{"./util.js":38}],6:[function(t,e,n){"use strict";e.exports=function(e){var n=t("./errors.js"),r=t("./async.js"),i=n.CancellationError;e.prototype._cancel=function(t){if(!this.isCancellable())return this;for(var e,n=this;void 0!==(e=n._cancellationParent)&&e.isCancellable();)n=e;this._unsetCancellable(),n._target()._rejectCallback(t,!1,!0)},e.prototype.cancel=function(t){return this.isCancellable()?(void 0===t&&(t=new i),r.invokeLater(this._cancel,this,t),this):this},e.prototype.cancellable=function(){return this._cancellable()?this:(r.enableTrampoline(),this._setCancellable(),this._cancellationParent=void 0,this)},e.prototype.uncancellable=function(){var t=this.then();return t._unsetCancellable(),t},e.prototype.fork=function(t,e,n){var r=this._then(t,e,n,void 0,void 0);return r._setCancellable(),r._cancellationParent=void 0,r}}},{"./async.js":2,"./errors.js":13}],7:[function(t,e,n){"use strict";e.exports=function(){function e(t){this._parent=t;var n=this._length=1+(void 0===t?0:t._length);b(this,e),n>32&&this.uncycle()}function n(t,e){for(var n=0;n<e.length-1;++n)e[n].push("From previous event:"),e[n]=e[n].join("\n");return n<e.length&&(e[n]=e[n].join("\n")),t+"\n"+e.join("\n")}function r(t){for(var e=0;e<t.length;++e)(0===t[e].length||e+1<t.length&&t[e][0]===t[e+1][0])&&(t.splice(e,1),e--)}function i(t){for(var e=t[0],n=1;n<t.length;++n){for(var r=t[n],i=e.length-1,o=e[i],a=-1,s=r.length-1;s>=0;--s)if(r[s]===o){a=s;break}for(var s=a;s>=0;--s){var u=r[s];if(e[i]!==u)break;e.pop(),i--}e=r}}function o(t){for(var e=[],n=0;n<t.length;++n){var r=t[n],i=d.test(r)||" (No stack trace)"===r,o=i&&g(r);i&&!o&&(m&&" "!==r.charAt(0)&&(r=" "+r),e.push(r))}return e}function a(t){for(var e=t.stack.replace(/\s+$/g,"").split("\n"),n=0;n<e.length;++n){var r=e[n];if(" (No stack trace)"===r||d.test(r))break}return n>0&&(e=e.slice(n)),e}function s(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{e=t.toString();var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(e))try{var r=JSON.stringify(t);e=r}catch(i){}0===e.length&&(e="(empty array)")}return"(<"+u(e)+">, no stack trace)"}function u(t){var e=41;return t.length<e?t:t.substr(0,e-3)+"..."}function l(t){var e=t.match(y);return e?{fileName:e[1],line:parseInt(e[2],10)}:void 0}var c,f=t("./async.js"),h=t("./util.js"),p=/[\\\/]bluebird[\\\/]js[\\\/](main|debug|zalgo|instrumented)/,d=null,v=null,m=!1;h.inherits(e,Error),e.prototype.uncycle=function(){var t=this._length;if(!(2>t)){for(var e=[],n={},r=0,i=this;void 0!==i;++r)e.push(i),i=i._parent;t=this._length=r;for(var r=t-1;r>=0;--r){var o=e[r].stack;void 0===n[o]&&(n[o]=r)}for(var r=0;t>r;++r){var a=e[r].stack,s=n[a];if(void 0!==s&&s!==r){s>0&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var u=r>0?e[r-1]:this;t-1>s?(u._parent=e[s+1],u._parent.uncycle(),u._length=u._parent._length+1):(u._parent=void 0,u._length=1);for(var l=u._length+1,c=r-2;c>=0;--c)e[c]._length=l,l++;return}}}},e.prototype.parent=function(){return this._parent},e.prototype.hasParent=function(){return void 0!==this._parent},e.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var a=e.parseStackAndMessage(t),s=a.message,u=[a.stack],l=this;void 0!==l;)u.push(o(l.stack.split("\n"))),l=l._parent;i(u),r(u),h.notEnumerableProp(t,"stack",n(s,u)),h.notEnumerableProp(t,"__stackCleaned__",!0)}},e.parseStackAndMessage=function(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&e.length>0?a(t):[" (No stack trace)"],{message:n,stack:o(e)}},e.formatAndLogError=function(t,e){if("undefined"!=typeof console){var n;if("object"==typeof t||"function"==typeof t){var r=t.stack;n=e+v(r,t)}else n=e+String(t);"function"==typeof c?c(n):("function"==typeof console.log||"object"==typeof console.log)&&console.log(n)}},e.unhandledRejection=function(t){e.formatAndLogError(t,"^--- With additional stack trace: ")},e.isSupported=function(){return"function"==typeof b},e.fireRejectionEvent=function(t,n,r,i){var o=!1;try{"function"==typeof n&&(o=!0,"rejectionHandled"===t?n(i):n(r,i))}catch(a){f.throwLater(a)}var s=!1;try{s=w(t,r,i)}catch(a){s=!0,f.throwLater(a)}var u=!1;if(_)try{u=_(t.toLowerCase(),{reason:r,promise:i})}catch(a){u=!0,f.throwLater(a)}s||o||u||"unhandledRejection"!==t||e.formatAndLogError(r,"Unhandled rejection ")};var g=function(){return!1},y=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;e.setBounds=function(t,n){if(e.isSupported()){for(var r,i,o=t.stack.split("\n"),a=n.stack.split("\n"),s=-1,u=-1,c=0;c<o.length;++c){var f=l(o[c]);if(f){r=f.fileName,s=f.line;break}}for(var c=0;c<a.length;++c){var f=l(a[c]);if(f){i=f.fileName,u=f.line;break}}0>s||0>u||!r||!i||r!==i||s>=u||(g=function(t){if(p.test(t))return!0;var e=l(t);return e&&e.fileName===r&&s<=e.line&&e.line<=u?!0:!1})}};var _,b=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():s(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit=Error.stackTraceLimit+6,d=t,v=e;var n=Error.captureStackTrace;return g=function(t){return p.test(t)},function(t,e){Error.stackTraceLimit=Error.stackTraceLimit+6,n(t,e),Error.stackTraceLimit=Error.stackTraceLimit-6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return d=/@/,v=e,m=!0,function(t){t.stack=(new Error).stack};var i;try{throw new Error}catch(o){i="stack"in o}return"stack"in r||!i||"number"!=typeof Error.stackTraceLimit?(v=function(t,e){return"string"==typeof t?t:"object"!=typeof e&&"function"!=typeof e||void 0===e.name||void 0===e.message?s(e):e.toString()},null):(d=t,v=e,function(t){Error.stackTraceLimit=Error.stackTraceLimit+6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit=Error.stackTraceLimit-6})}([]),w=function(){if(h.isNode)return function(t,e,n){return"rejectionHandled"===t?process.emit(t,n):process.emit(t,e,n)};var t=!1,e=!0;try{var n=new self.CustomEvent("test");t=n instanceof CustomEvent}catch(r){}if(!t)try{var i=document.createEvent("CustomEvent");i.initCustomEvent("testingtheevent",!1,!0,{}),self.dispatchEvent(i)}catch(r){e=!1}e&&(_=function(e,n){var r;return t?r=new self.CustomEvent(e,{detail:n,bubbles:!1,cancelable:!0}):self.dispatchEvent&&(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,!1,!0,n)),r?!self.dispatchEvent(r):!1});var o={};return o.unhandledRejection="onunhandledRejection".toLowerCase(),o.rejectionHandled="onrejectionHandled".toLowerCase(),function(t,e,n){var r=o[t],i=self[r];return i?("rejectionHandled"===t?i.call(self,n):i.call(self,e,n),!0):!1}}();return"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(c=function(t){console.warn(t)},h.isNode&&process.stderr.isTTY?c=function(t){process.stderr.write(""+t+"\n")}:h.isNode||"string"!=typeof(new Error).stack||(c=function(t){console.warn("%c"+t,"color: red")})),e}},{"./async.js":2,"./util.js":38}],8:[function(t,e,n){"use strict";e.exports=function(e){function n(t,e,n){this._instances=t,this._callback=e,this._promise=n}function r(t,e){var n={},r=a(t).call(n,e);if(r===s)return r;var i=u(n);return i.length?(s.e=new l("Catch filter must inherit from Error or be a simple predicate function\n\n See http://goo.gl/o84o68\n"),s):r}var i=t("./util.js"),o=t("./errors.js"),a=i.tryCatch,s=i.errorObj,u=t("./es5.js").keys,l=o.TypeError;return n.prototype.doFilter=function(t){for(var n=this._callback,i=this._promise,o=i._boundValue(),u=0,l=this._instances.length;l>u;++u){var c=this._instances[u],f=c===Error||null!=c&&c.prototype instanceof Error;if(f&&t instanceof c){var h=a(n).call(o,t);return h===s?(e.e=h.e,e):h}if("function"==typeof c&&!f){var p=r(c,t);if(p===s){t=s.e;break}if(p){var h=a(n).call(o,t);return h===s?(e.e=h.e,e):h}}}return e.e=t,e},n}},{"./errors.js":13,"./es5.js":14,"./util.js":38}],9:[function(t,e,n){"use strict";e.exports=function(t,e,n){function r(){this._trace=new e(o())}function i(){return n()?new r:void 0}function o(){var t=a.length-1;return t>=0?a[t]:void 0}var a=[];return r.prototype._pushContext=function(){n()&&void 0!==this._trace&&a.push(this._trace)},r.prototype._popContext=function(){n()&&void 0!==this._trace&&a.pop()},t.prototype._peekContext=o,t.prototype._pushContext=r.prototype._pushContext,t.prototype._popContext=r.prototype._popContext,i}},{}],10:[function(t,e,n){"use strict";e.exports=function(e,n){var r,i,o=e._getDomain,a=t("./async.js"),s=t("./errors.js").Warning,u=t("./util.js"),l=u.canAttachTrace,c=u.isNode&&(!!process.env.BLUEBIRD_DEBUG||"development"===process.env.NODE_ENV);return u.isNode&&0==process.env.BLUEBIRD_DEBUG&&(c=!1),c&&a.disableTrampolineIfNecessary(),e.prototype._ignoreRejections=function(){this._unsetRejectionIsUnhandled(),this._bitField=16777216|this._bitField},e.prototype._ensurePossibleRejectionHandled=function(){0===(16777216&this._bitField)&&(this._setRejectionIsUnhandled(),a.invokeLater(this._notifyUnhandledRejection,this,void 0))},e.prototype._notifyUnhandledRejectionIsHandled=function(){n.fireRejectionEvent("rejectionHandled",r,void 0,this)},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._getCarriedStackTrace()||this._settledValue;this._setUnhandledRejectionIsNotified(),n.fireRejectionEvent("unhandledRejection",i,t,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=524288|this._bitField},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-524289&this._bitField},e.prototype._isUnhandledRejectionNotified=function(){return(524288&this._bitField)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=2097152|this._bitField},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-2097153&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(2097152&this._bitField)>0},e.prototype._setCarriedStackTrace=function(t){this._bitField=1048576|this._bitField,this._fulfillmentHandler0=t},e.prototype._isCarryingStackTrace=function(){return(1048576&this._bitField)>0},e.prototype._getCarriedStackTrace=function(){return this._isCarryingStackTrace()?this._fulfillmentHandler0:void 0},e.prototype._captureStackTrace=function(){return c&&(this._trace=new n(this._peekContext())),this},e.prototype._attachExtraTrace=function(t,e){if(c&&l(t)){var r=this._trace;if(void 0!==r&&e&&(r=r._parent),void 0!==r)r.attachExtraTrace(t);else if(!t.__stackCleaned__){var i=n.parseStackAndMessage(t);u.notEnumerableProp(t,"stack",i.message+"\n"+i.stack.join("\n")),u.notEnumerableProp(t,"__stackCleaned__",!0)}}},e.prototype._warn=function(t){var e=new s(t),r=this._peekContext();if(r)r.attachExtraTrace(e);else{var i=n.parseStackAndMessage(e);e.stack=i.message+"\n"+i.stack.join("\n")}n.formatAndLogError(e,"")},e.onPossiblyUnhandledRejection=function(t){var e=o();i="function"==typeof t?null===e?t:e.bind(t):void 0},e.onUnhandledRejectionHandled=function(t){var e=o();r="function"==typeof t?null===e?t:e.bind(t):void 0},e.longStackTraces=function(){if(a.haveItemsQueued()&&c===!1)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/DT1qyG\n");c=n.isSupported(),c&&a.disableTrampolineIfNecessary()},e.hasLongStackTraces=function(){return c&&n.isSupported()},n.isSupported()||(e.longStackTraces=function(){},c=!1),function(){return c}}},{"./async.js":2,"./errors.js":13,"./util.js":38}],11:[function(t,e,n){"use strict";var r=t("./util.js"),i=r.isPrimitive;e.exports=function(t){var e=function(){return this},n=function(){throw this},r=function(){},o=function(){throw void 0},a=function(t,e){return 1===e?function(){throw t}:2===e?function(){return t}:void 0};t.prototype["return"]=t.prototype.thenReturn=function(n){return void 0===n?this.then(r):i(n)?this._then(a(n,2),void 0,void 0,void 0,void 0):(n instanceof t&&n._ignoreRejections(),this._then(e,void 0,void 0,n,void 0))},t.prototype["throw"]=t.prototype.thenThrow=function(t){return void 0===t?this.then(o):i(t)?this._then(a(t,1),void 0,void 0,void 0,void 0):this._then(n,void 0,void 0,t,void 0)}}},{"./util.js":38}],12:[function(t,e,n){"use strict";e.exports=function(t,e){var n=t.reduce;t.prototype.each=function(t){return n(this,t,null,e)},t.each=function(t,r){return n(t,r,null,e)}}},{}],13:[function(t,e,n){"use strict";function r(t,e){function n(r){return this instanceof n?(f(this,"message","string"==typeof r?r:e),f(this,"name",t),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):new n(r)}return c(n,Error),n}function i(t){return this instanceof i?(f(this,"name","OperationalError"),f(this,"message",t),this.cause=t,this.isOperational=!0,void(t instanceof Error?(f(this,"message",t.message),f(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):new i(t)}var o,a,s=t("./es5.js"),u=s.freeze,l=t("./util.js"),c=l.inherits,f=l.notEnumerableProp,h=r("Warning","warning"),p=r("CancellationError","cancellation error"),d=r("TimeoutError","timeout error"),v=r("AggregateError","aggregate error");try{o=TypeError,a=RangeError}catch(m){o=r("TypeError","type error"),a=r("RangeError","range error")}for(var g="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),y=0;y<g.length;++y)"function"==typeof Array.prototype[g[y]]&&(v.prototype[g[y]]=Array.prototype[g[y]]);s.defineProperty(v.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),v.prototype.isOperational=!0;var _=0;v.prototype.toString=function(){var t=Array(4*_+1).join(" "),e="\n"+t+"AggregateError of:\n";_++,t=Array(4*_+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",i=r.split("\n"),o=0;o<i.length;++o)i[o]=t+i[o];r=i.join("\n"),e+=r+"\n"}return _--,e},c(i,Error);var b=Error.__BluebirdErrorTypes__;b||(b=u({CancellationError:p,TimeoutError:d,OperationalError:i,RejectionError:i,AggregateError:v}),f(Error,"__BluebirdErrorTypes__",b)),e.exports={Error:Error,TypeError:o,RangeError:a,CancellationError:b.CancellationError,OperationalError:b.OperationalError,TimeoutError:b.TimeoutError,AggregateError:b.AggregateError,Warning:h}},{"./es5.js":14,"./util.js":38}],14:[function(t,e,n){var r=function(){"use strict";return void 0===this}();if(r)e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!(n&&!n.writable&&!n.set)}};else{var i={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(t){var e=[];for(var n in t)i.call(t,n)&&e.push(n);return e},u=function(t,e){return{value:t[e]}},l=function(t,e,n){return t[e]=n.value,t},c=function(t){return t},f=function(t){try{return Object(t).constructor.prototype}catch(e){return a}},h=function(t){try{return"[object Array]"===o.call(t)}catch(e){return!1}};e.exports={isArray:h,keys:s,names:s,defineProperty:l,getDescriptor:u,freeze:c,getPrototypeOf:f,isES5:r,propertyIsWritable:function(){return!0}}}},{}],15:[function(t,e,n){"use strict";e.exports=function(t,e){var n=t.map;t.prototype.filter=function(t,r){return n(this,t,r,e)},t.filter=function(t,r,i){return n(t,r,i,e)}}},{}],16:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(){return this}function o(){throw this}function a(t){return function(){return t}}function s(t){return function(){throw t}}function u(t,e,n){var r;return r=h(e)?n?a(e):s(e):n?i:o,t._then(r,p,void 0,e,void 0)}function l(t){var i=this.promise,o=this.handler,a=i._isBound()?o.call(i._boundValue()):o();if(void 0!==a){var s=r(a,i);if(s instanceof e)return s=s._target(),u(s,t,i.isFulfilled())}return i.isRejected()?(n.e=t,n):t}function c(t){var n=this.promise,i=this.handler,o=n._isBound()?i.call(n._boundValue(),t):i(t);if(void 0!==o){var a=r(o,n);if(a instanceof e)return a=a._target(),u(a,t,!0)}return t}var f=t("./util.js"),h=f.isPrimitive,p=f.thrower;e.prototype._passThroughHandler=function(t,e){if("function"!=typeof t)return this.then();var n={promise:this,handler:t};return this._then(e?l:c,e?l:void 0,void 0,n,void 0)},e.prototype.lastly=e.prototype["finally"]=function(t){return this._passThroughHandler(t,!0)},e.prototype.tap=function(t){return this._passThroughHandler(t,!1)}}},{"./util.js":38}],17:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t,n,r){for(var o=0;o<n.length;++o){r._pushContext();var a=f(n[o])(t);if(r._popContext(),a===c){r._pushContext();var s=e.reject(c.e);return r._popContext(),s}var u=i(a,r);if(u instanceof e)return u}return null}function a(t,n,i,o){var a=this._promise=new e(r);a._captureStackTrace(),this._stack=o,this._generatorFunction=t,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof i?[i].concat(h):h}var s=t("./errors.js"),u=s.TypeError,l=t("./util.js"),c=l.errorObj,f=l.tryCatch,h=[];a.prototype.promise=function(){return this._promise},a.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._next(void 0)},a.prototype._continue=function(t){if(t===c)return this._promise._rejectCallback(t.e,!1,!0);var n=t.value;if(t.done===!0)this._promise._resolveCallback(n);else{var r=i(n,this._promise);if(!(r instanceof e)&&(r=o(r,this._yieldHandlers,this._promise),null===r))return void this._throw(new u("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/4Y4pDk\n\n".replace("%s",n)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));r._then(this._next,this._throw,void 0,this,null)}},a.prototype._throw=function(t){this._promise._attachExtraTrace(t),this._promise._pushContext();var e=f(this._generator["throw"]).call(this._generator,t);this._promise._popContext(),this._continue(e)},a.prototype._next=function(t){this._promise._pushContext();var e=f(this._generator.next).call(this._generator,t);this._promise._popContext(),this._continue(e)},e.coroutine=function(t,e){if("function"!=typeof t)throw new u("generatorFunction must be a function\n\n See http://goo.gl/6Vqhm0\n");var n=Object(e).yieldHandler,r=a,i=(new Error).stack;return function(){var e=t.apply(this,arguments),o=new r(void 0,void 0,n,i);return o._generator=e,o._next(void 0),o.promise()}},e.coroutine.addYieldHandler=function(t){if("function"!=typeof t)throw new u("fn must be a function\n\n See http://goo.gl/916lJJ\n");h.push(t)},e.spawn=function(t){if("function"!=typeof t)return n("generatorFunction must be a function\n\n See http://goo.gl/6Vqhm0\n");var r=new a(t,this),i=r.promise();return r._run(e.spawn),i}}},{"./errors.js":13,"./util.js":38}],18:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){var o=t("./util.js");o.canEvaluate,o.tryCatch,o.errorObj;e.join=function(){var t,e=arguments.length-1;if(e>0&&"function"==typeof arguments[e]){t=arguments[e];var r}for(var i=arguments.length,o=new Array(i),a=0;i>a;++a)o[a]=arguments[a];t&&o.pop();var r=new n(o).promise();return void 0!==t?r.spread(t):r}}},{"./util.js":38}],19:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){function a(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var i=l();this._callback=null===i?e:i.bind(e),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=n>=1?[]:v,c.invoke(s,this,void 0)}function s(){this._init$(void 0,-2)}function u(t,e,n,r){var i="object"==typeof n&&null!==n?n.concurrency:0;return i="number"==typeof i&&isFinite(i)&&i>=1?i:0,new a(t,e,i,r)}var l=e._getDomain,c=t("./async.js"),f=t("./util.js"),h=f.tryCatch,p=f.errorObj,d={},v=[];f.inherits(a,n),a.prototype._init=function(){},a.prototype._promiseFulfilled=function(t,n){var r=this._values,o=this.length(),a=this._preservedValues,s=this._limit;if(r[n]===d){if(r[n]=t,s>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return}else{if(s>=1&&this._inFlight>=s)return r[n]=t,void this._queue.push(n);null!==a&&(a[n]=t);var u=this._callback,l=this._promise._boundValue();this._promise._pushContext();var c=h(u).call(l,t,n,o);if(this._promise._popContext(),c===p)return this._reject(c.e);var f=i(c,this._promise);if(f instanceof e){if(f=f._target(),f._isPending())return s>=1&&this._inFlight++,r[n]=d,f._proxyPromiseArray(this,n);if(!f._isFulfilled())return this._reject(f._reason());c=f._value()}r[n]=c}var v=++this._totalResolved;v>=o&&(null!==a?this._filter(r,a):this._resolve(r))},a.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight<e;){if(this._isResolved())return;var r=t.pop();this._promiseFulfilled(n[r],r)}},a.prototype._filter=function(t,e){for(var n=e.length,r=new Array(n),i=0,o=0;n>o;++o)t[o]&&(r[i++]=e[o]);r.length=i,this._resolve(r)},a.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(t,e){return"function"!=typeof t?r("fn must be a function\n\n See http://goo.gl/916lJJ\n"):u(this,t,e,null).promise()},e.map=function(t,e,n,i){return"function"!=typeof e?r("fn must be a function\n\n See http://goo.gl/916lJJ\n"):u(t,e,n,i).promise()}}},{"./async.js":2,"./util.js":38}],20:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){var o=t("./util.js"),a=o.tryCatch;e.method=function(t){if("function"!=typeof t)throw new e.TypeError("fn must be a function\n\n See http://goo.gl/916lJJ\n");return function(){var r=new e(n);r._captureStackTrace(),r._pushContext();var i=a(t).apply(this,arguments);return r._popContext(),r._resolveFromSyncValue(i),r}},e.attempt=e["try"]=function(t,r,s){if("function"!=typeof t)return i("fn must be a function\n\n See http://goo.gl/916lJJ\n");var u=new e(n);u._captureStackTrace(),u._pushContext();var l=o.isArray(r)?a(t).apply(s,r):a(t).call(s,r);return u._popContext(),u._resolveFromSyncValue(l),u},e.prototype._resolveFromSyncValue=function(t){t===o.errorObj?this._rejectCallback(t.e,!1,!0):this._resolveCallback(t,!0)}}},{"./util.js":38}],21:[function(t,e,n){"use strict";e.exports=function(e){function n(t,e){var n=this;if(!o.isArray(t))return r.call(n,t,e);var i=s(e).apply(n._boundValue(),[null].concat(t));i===u&&a.throwLater(i.e)}function r(t,e){var n=this,r=n._boundValue(),i=void 0===t?s(e).call(r,null):s(e).call(r,null,t);i===u&&a.throwLater(i.e)}function i(t,e){var n=this;if(!t){var r=n._target(),i=r._getCarriedStackTrace();i.cause=t,t=i}var o=s(e).call(n._boundValue(),t);o===u&&a.throwLater(o.e)}var o=t("./util.js"),a=t("./async.js"),s=o.tryCatch,u=o.errorObj;e.prototype.asCallback=e.prototype.nodeify=function(t,e){if("function"==typeof t){var o=r;void 0!==e&&Object(e).spread&&(o=n),this._then(o,i,void 0,this,t)}return this}}},{"./async.js":2,"./util.js":38}],22:[function(t,e,n){"use strict";e.exports=function(e,n){var r=t("./util.js"),i=t("./async.js"),o=r.tryCatch,a=r.errorObj;e.prototype.progressed=function(t){return this._then(void 0,void 0,t,void 0,void 0)},e.prototype._progress=function(t){this._isFollowingOrFulfilledOrRejected()||this._target()._progressUnchecked(t)},e.prototype._progressHandlerAt=function(t){return 0===t?this._progressHandler0:this[(t<<2)+t-5+2]},e.prototype._doProgressWith=function(t){
var n=t.value,i=t.handler,s=t.promise,u=t.receiver,l=o(i).call(u,n);if(l===a){if(null!=l.e&&"StopProgressPropagation"!==l.e.name){var c=r.canAttachTrace(l.e)?l.e:new Error(r.toString(l.e));s._attachExtraTrace(c),s._progress(l.e)}}else l instanceof e?l._then(s._progress,null,null,s,void 0):s._progress(l)},e.prototype._progressUnchecked=function(t){for(var r=this._length(),o=this._progress,a=0;r>a;a++){var s=this._progressHandlerAt(a),u=this._promiseAt(a);if(u instanceof e)"function"==typeof s?i.invoke(this._doProgressWith,this,{handler:s,promise:u,receiver:this._receiverAt(a),value:t}):i.invoke(o,u,t);else{var l=this._receiverAt(a);"function"==typeof s?s.call(l,t,u):l instanceof n&&!l._isResolved()&&l._promiseProgressed(t,u)}}}}},{"./async.js":2,"./util.js":38}],23:[function(t,e,n){"use strict";e.exports=function(){function e(t){if("function"!=typeof t)throw new f("the promise constructor requires a resolver function\n\n See http://goo.gl/EC22Yn\n");if(this.constructor!==e)throw new f("the promise constructor cannot be invoked directly\n\n See http://goo.gl/KsIlge\n");this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._progressHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._settledValue=void 0,t!==h&&this._resolveFromResolver(t)}function n(t){var n=new e(h);n._fulfillmentHandler0=t,n._rejectionHandler0=t,n._progressHandler0=t,n._promise0=t,n._receiver0=t,n._settledValue=t}var r,i=function(){return new f("circular promise resolution chain\n\n See http://goo.gl/LhFpo0\n")},o=function(){return new e.PromiseInspection(this._target())},a=function(t){return e.reject(new f(t))},s=t("./util.js");r=s.isNode?function(){var t=process.domain;return void 0===t&&(t=null),t}:function(){return null},s.notEnumerableProp(e,"_getDomain",r);var u={},l=t("./async.js"),c=t("./errors.js"),f=e.TypeError=c.TypeError;e.RangeError=c.RangeError,e.CancellationError=c.CancellationError,e.TimeoutError=c.TimeoutError,e.OperationalError=c.OperationalError,e.RejectionError=c.OperationalError,e.AggregateError=c.AggregateError;var h=function(){},p={},d={e:null},v=t("./thenables.js")(e,h),m=t("./promise_array.js")(e,h,v,a),g=t("./captured_trace.js")(),y=t("./debuggability.js")(e,g),_=t("./context.js")(e,g,y),b=t("./catch_filter.js")(d),w=t("./promise_resolver.js"),x=w._nodebackForPromise,$=s.errorObj,k=s.tryCatch;return e.prototype.toString=function(){return"[object Promise]"},e.prototype.caught=e.prototype["catch"]=function(t){var n=arguments.length;if(n>1){var r,i=new Array(n-1),o=0;for(r=0;n-1>r;++r){var a=arguments[r];if("function"!=typeof a)return e.reject(new f("Catch filter must inherit from Error or be a simple predicate function\n\n See http://goo.gl/o84o68\n"));i[o++]=a}i.length=o,t=arguments[r];var s=new b(i,t,this);return this._then(void 0,s.doFilter,void 0,s,void 0)}return this._then(void 0,t,void 0,void 0,void 0)},e.prototype.reflect=function(){return this._then(o,o,void 0,this,void 0)},e.prototype.then=function(t,e,n){if(y()&&arguments.length>0&&"function"!=typeof t&&"function"!=typeof e){var r=".then() only accepts functions but was passed: "+s.classString(t);arguments.length>1&&(r+=", "+s.classString(e)),this._warn(r)}return this._then(t,e,n,void 0,void 0)},e.prototype.done=function(t,e,n){var r=this._then(t,e,n,void 0,void 0);r._setIsFinal()},e.prototype.spread=function(t,e){return this.all()._then(t,e,void 0,p,void 0)},e.prototype.isCancellable=function(){return!this.isResolved()&&this._cancellable()},e.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},e.prototype.all=function(){return new m(this).promise()},e.prototype.error=function(t){return this.caught(s.originatesFromRejection,t)},e.is=function(t){return t instanceof e},e.fromNode=function(t){var n=new e(h),r=k(t)(x(n));return r===$&&n._rejectCallback(r.e,!0,!0),n},e.all=function(t){return new m(t).promise()},e.defer=e.pending=function(){var t=new e(h);return new w(t)},e.cast=function(t){var n=v(t);if(!(n instanceof e)){var r=n;n=new e(h),n._fulfillUnchecked(r)}return n},e.resolve=e.fulfilled=e.cast,e.reject=e.rejected=function(t){var n=new e(h);return n._captureStackTrace(),n._rejectCallback(t,!0),n},e.setScheduler=function(t){if("function"!=typeof t)throw new f("fn must be a function\n\n See http://goo.gl/916lJJ\n");var e=l._schedule;return l._schedule=t,e},e.prototype._then=function(t,n,i,o,a){var s=void 0!==a,u=s?a:new e(h);s||(u._propagateFrom(this,5),u._captureStackTrace());var c=this._target();c!==this&&(void 0===o&&(o=this._boundTo),s||u._setIsMigrated());var f=c._addCallbacks(t,n,i,u,o,r());return c._isResolved()&&!c._isSettlePromisesQueued()&&l.invoke(c._settlePromiseAtPostResolution,c,f),u},e.prototype._settlePromiseAtPostResolution=function(t){this._isRejectionUnhandled()&&this._unsetRejectionIsUnhandled(),this._settlePromiseAt(t)},e.prototype._length=function(){return 131071&this._bitField},e.prototype._isFollowingOrFulfilledOrRejected=function(){return(939524096&this._bitField)>0},e.prototype._isFollowing=function(){return 536870912===(536870912&this._bitField)},e.prototype._setLength=function(t){this._bitField=-131072&this._bitField|131071&t},e.prototype._setFulfilled=function(){this._bitField=268435456|this._bitField},e.prototype._setRejected=function(){this._bitField=134217728|this._bitField},e.prototype._setFollowing=function(){this._bitField=536870912|this._bitField},e.prototype._setIsFinal=function(){this._bitField=33554432|this._bitField},e.prototype._isFinal=function(){return(33554432&this._bitField)>0},e.prototype._cancellable=function(){return(67108864&this._bitField)>0},e.prototype._setCancellable=function(){this._bitField=67108864|this._bitField},e.prototype._unsetCancellable=function(){this._bitField=-67108865&this._bitField},e.prototype._setIsMigrated=function(){this._bitField=4194304|this._bitField},e.prototype._unsetIsMigrated=function(){this._bitField=-4194305&this._bitField},e.prototype._isMigrated=function(){return(4194304&this._bitField)>0},e.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[5*t-5+4];return e===u?void 0:void 0===e&&this._isBound()?this._boundValue():e},e.prototype._promiseAt=function(t){return 0===t?this._promise0:this[5*t-5+3]},e.prototype._fulfillmentHandlerAt=function(t){return 0===t?this._fulfillmentHandler0:this[5*t-5+0]},e.prototype._rejectionHandlerAt=function(t){return 0===t?this._rejectionHandler0:this[5*t-5+1]},e.prototype._boundValue=function(){var t=this._boundTo;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t},e.prototype._migrateCallbacks=function(t,n){var r=t._fulfillmentHandlerAt(n),i=t._rejectionHandlerAt(n),o=t._progressHandlerAt(n),a=t._promiseAt(n),s=t._receiverAt(n);a instanceof e&&a._setIsMigrated(),void 0===s&&(s=u),this._addCallbacks(r,i,o,a,s,null)},e.prototype._addCallbacks=function(t,e,n,r,i,o){var a=this._length();if(a>=131066&&(a=0,this._setLength(0)),0===a)this._promise0=r,void 0!==i&&(this._receiver0=i),"function"!=typeof t||this._isCarryingStackTrace()||(this._fulfillmentHandler0=null===o?t:o.bind(t)),"function"==typeof e&&(this._rejectionHandler0=null===o?e:o.bind(e)),"function"==typeof n&&(this._progressHandler0=null===o?n:o.bind(n));else{var s=5*a-5;this[s+3]=r,this[s+4]=i,"function"==typeof t&&(this[s+0]=null===o?t:o.bind(t)),"function"==typeof e&&(this[s+1]=null===o?e:o.bind(e)),"function"==typeof n&&(this[s+2]=null===o?n:o.bind(n))}return this._setLength(a+1),a},e.prototype._setProxyHandlers=function(t,e){var n=this._length();if(n>=131066&&(n=0,this._setLength(0)),0===n)this._promise0=e,this._receiver0=t;else{var r=5*n-5;this[r+3]=e,this[r+4]=t}this._setLength(n+1)},e.prototype._proxyPromiseArray=function(t,e){this._setProxyHandlers(t,e)},e.prototype._resolveCallback=function(t,n){if(!this._isFollowingOrFulfilledOrRejected()){if(t===this)return this._rejectCallback(i(),!1,!0);var r=v(t,this);if(!(r instanceof e))return this._fulfill(t);var o=1|(n?4:0);this._propagateFrom(r,o);var a=r._target();if(a._isPending()){for(var s=this._length(),u=0;s>u;++u)a._migrateCallbacks(this,u);this._setFollowing(),this._setLength(0),this._setFollowee(a)}else a._isFulfilled()?this._fulfillUnchecked(a._value()):this._rejectUnchecked(a._reason(),a._getCarriedStackTrace())}},e.prototype._rejectCallback=function(t,e,n){n||s.markAsOriginatingFromRejection(t);var r=s.ensureErrorObject(t),i=r===t;this._attachExtraTrace(r,e?i:!1),this._reject(t,i?void 0:r)},e.prototype._resolveFromResolver=function(t){var e=this;this._captureStackTrace(),this._pushContext();var n=!0,r=k(t)(function(t){null!==e&&(e._resolveCallback(t),e=null)},function(t){null!==e&&(e._rejectCallback(t,n),e=null)});n=!1,this._popContext(),void 0!==r&&r===$&&null!==e&&(e._rejectCallback(r.e,!0,!0),e=null)},e.prototype._settlePromiseFromHandler=function(t,e,n,r){if(!r._isRejected()){r._pushContext();var o;if(o=e!==p||this._isRejected()?k(t).call(e,n):k(t).apply(this._boundValue(),n),r._popContext(),o===$||o===r||o===d){var a=o===r?i():o.e;r._rejectCallback(a,!1,!0)}else r._resolveCallback(o)}},e.prototype._target=function(){for(var t=this;t._isFollowing();)t=t._followee();return t},e.prototype._followee=function(){return this._rejectionHandler0},e.prototype._setFollowee=function(t){this._rejectionHandler0=t},e.prototype._cleanValues=function(){this._cancellable()&&(this._cancellationParent=void 0)},e.prototype._propagateFrom=function(t,e){(1&e)>0&&t._cancellable()&&(this._setCancellable(),this._cancellationParent=t),(4&e)>0&&t._isBound()&&this._setBoundTo(t._boundTo)},e.prototype._fulfill=function(t){this._isFollowingOrFulfilledOrRejected()||this._fulfillUnchecked(t)},e.prototype._reject=function(t,e){this._isFollowingOrFulfilledOrRejected()||this._rejectUnchecked(t,e)},e.prototype._settlePromiseAt=function(t){var n=this._promiseAt(t),r=n instanceof e;if(r&&n._isMigrated())return n._unsetIsMigrated(),l.invoke(this._settlePromiseAt,this,t);var i=this._isFulfilled()?this._fulfillmentHandlerAt(t):this._rejectionHandlerAt(t),o=this._isCarryingStackTrace()?this._getCarriedStackTrace():void 0,a=this._settledValue,s=this._receiverAt(t);this._clearCallbackDataAtIndex(t),"function"==typeof i?r?this._settlePromiseFromHandler(i,s,a,n):i.call(s,a,n):s instanceof m?s._isResolved()||(this._isFulfilled()?s._promiseFulfilled(a,n):s._promiseRejected(a,n)):r&&(this._isFulfilled()?n._fulfill(a):n._reject(a,o)),t>=4&&4===(31&t)&&l.invokeLater(this._setLength,this,0)},e.prototype._clearCallbackDataAtIndex=function(t){if(0===t)this._isCarryingStackTrace()||(this._fulfillmentHandler0=void 0),this._rejectionHandler0=this._progressHandler0=this._receiver0=this._promise0=void 0;else{var e=5*t-5;this[e+3]=this[e+4]=this[e+0]=this[e+1]=this[e+2]=void 0}},e.prototype._isSettlePromisesQueued=function(){return-1073741824===(-1073741824&this._bitField)},e.prototype._setSettlePromisesQueued=function(){this._bitField=-1073741824|this._bitField},e.prototype._unsetSettlePromisesQueued=function(){this._bitField=1073741823&this._bitField},e.prototype._queueSettlePromises=function(){l.settlePromises(this),this._setSettlePromisesQueued()},e.prototype._fulfillUnchecked=function(t){if(t===this){var e=i();return this._attachExtraTrace(e),this._rejectUnchecked(e,void 0)}this._setFulfilled(),this._settledValue=t,this._cleanValues(),this._length()>0&&this._queueSettlePromises()},e.prototype._rejectUncheckedCheckError=function(t){var e=s.ensureErrorObject(t);this._rejectUnchecked(t,e===t?void 0:e)},e.prototype._rejectUnchecked=function(t,e){if(t===this){var n=i();return this._attachExtraTrace(n),this._rejectUnchecked(n)}return this._setRejected(),this._settledValue=t,this._cleanValues(),this._isFinal()?void l.throwLater(function(t){throw"stack"in t&&l.invokeFirst(g.unhandledRejection,void 0,t),t},void 0===e?t:e):(void 0!==e&&e!==t&&this._setCarriedStackTrace(e),void(this._length()>0?this._queueSettlePromises():this._ensurePossibleRejectionHandled()))},e.prototype._settlePromises=function(){this._unsetSettlePromisesQueued();for(var t=this._length(),e=0;t>e;e++)this._settlePromiseAt(e)},s.notEnumerableProp(e,"_makeSelfResolutionError",i),t("./progress.js")(e,m),t("./method.js")(e,h,v,a),t("./bind.js")(e,h,v),t("./finally.js")(e,d,v),t("./direct_resolve.js")(e),t("./synchronous_inspection.js")(e),t("./join.js")(e,m,v,h),e.Promise=e,t("./map.js")(e,m,a,v,h),t("./cancel.js")(e),t("./using.js")(e,a,v,_),t("./generators.js")(e,a,h,v),t("./nodeify.js")(e),t("./call_get.js")(e),t("./props.js")(e,m,v,a),t("./race.js")(e,h,v,a),t("./reduce.js")(e,m,a,v,h),t("./settle.js")(e,m),t("./some.js")(e,m,a),t("./promisify.js")(e,h),t("./any.js")(e),t("./each.js")(e,h),t("./timers.js")(e,h),t("./filter.js")(e,h),s.toFastProperties(e),s.toFastProperties(e.prototype),n({a:1}),n({b:2}),n({c:3}),n(1),n(function(){}),n(void 0),n(!1),n(new e(h)),g.setBounds(l.firstLineError,s.lastLineError),e}},{"./any.js":1,"./async.js":2,"./bind.js":3,"./call_get.js":5,"./cancel.js":6,"./captured_trace.js":7,"./catch_filter.js":8,"./context.js":9,"./debuggability.js":10,"./direct_resolve.js":11,"./each.js":12,"./errors.js":13,"./filter.js":15,"./finally.js":16,"./generators.js":17,"./join.js":18,"./map.js":19,"./method.js":20,"./nodeify.js":21,"./progress.js":22,"./promise_array.js":24,"./promise_resolver.js":25,"./promisify.js":26,"./props.js":27,"./race.js":29,"./reduce.js":30,"./settle.js":32,"./some.js":33,"./synchronous_inspection.js":34,"./thenables.js":35,"./timers.js":36,"./using.js":37,"./util.js":38}],24:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t){switch(t){case-2:return[];case-3:return{}}}function a(t){var r,i=this._promise=new e(n);t instanceof e&&(r=t,i._propagateFrom(r,5)),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var s=t("./util.js"),u=s.isArray;return a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function l(t,n){var a=r(this._values,this._promise);if(a instanceof e){if(a=a._target(),this._values=a,!a._isFulfilled())return a._isPending()?void a._then(l,this._reject,void 0,this,n):void this._reject(a._reason());if(a=a._value(),!u(a)){var s=new e.TypeError("expecting an array, a promise or a thenable\n\n See http://goo.gl/s8MMhc\n");return void this.__hardReject__(s)}}else if(!u(a))return void this._promise._reject(i("expecting an array, a promise or a thenable\n\n See http://goo.gl/s8MMhc\n")._reason());if(0===a.length)return void(-5===n?this._resolveEmptyArray():this._resolve(o(n)));var c=this.getActualLength(a.length);this._length=c,this._values=this.shouldCopyValues()?new Array(c):this._values;for(var f=this._promise,h=0;c>h;++h){var p=this._isResolved(),d=r(a[h],f);d instanceof e?(d=d._target(),p?d._ignoreRejections():d._isPending()?d._proxyPromiseArray(this,h):d._isFulfilled()?this._promiseFulfilled(d._value(),h):this._promiseRejected(d._reason(),h)):p||this._promiseFulfilled(d,h)}},a.prototype._isResolved=function(){return null===this._values},a.prototype._resolve=function(t){this._values=null,this._promise._fulfill(t)},a.prototype.__hardReject__=a.prototype._reject=function(t){this._values=null,this._promise._rejectCallback(t,!1,!0)},a.prototype._promiseProgressed=function(t,e){this._promise._progress({index:e,value:t})},a.prototype._promiseFulfilled=function(t,e){this._values[e]=t;var n=++this._totalResolved;n>=this._length&&this._resolve(this._values)},a.prototype._promiseRejected=function(t,e){this._totalResolved++,this._reject(t)},a.prototype.shouldCopyValues=function(){return!0},a.prototype.getActualLength=function(t){return t},a}},{"./util.js":38}],25:[function(t,e,n){"use strict";function r(t){return t instanceof Error&&p.getPrototypeOf(t)===Error.prototype}function i(t){var e;if(r(t)){e=new f(t),e.name=t.name,e.message=t.message,e.stack=t.stack;for(var n=p.keys(t),i=0;i<n.length;++i){var o=n[i];d.test(o)||(e[o]=t[o])}return e}return s.markAsOriginatingFromRejection(t),t}function o(t){return function(e,n){if(null!==t){if(e){var r=i(u(e));t._attachExtraTrace(r),t._reject(r)}else if(arguments.length>2){for(var o=arguments.length,a=new Array(o-1),s=1;o>s;++s)a[s-1]=arguments[s];t._fulfill(a)}else t._fulfill(n);t=null}}}var a,s=t("./util.js"),u=s.maybeWrapAsError,l=t("./errors.js"),c=l.TimeoutError,f=l.OperationalError,h=s.haveGetters,p=t("./es5.js"),d=/^(?:name|message|stack|cause)$/;if(a=h?function(t){this.promise=t}:function(t){this.promise=t,this.asCallback=o(t),this.callback=this.asCallback},h){var v={get:function(){return o(this.promise)}};p.defineProperty(a.prototype,"asCallback",v),p.defineProperty(a.prototype,"callback",v)}a._nodebackForPromise=o,a.prototype.toString=function(){return"[object PromiseResolver]"},a.prototype.resolve=a.prototype.fulfill=function(t){if(!(this instanceof a))throw new TypeError("Illegal invocation, resolver resolve/reject must be called within a resolver context. Consider using the promise constructor instead.\n\n See http://goo.gl/sdkXL9\n");this.promise._resolveCallback(t)},a.prototype.reject=function(t){if(!(this instanceof a))throw new TypeError("Illegal invocation, resolver resolve/reject must be called within a resolver context. Consider using the promise constructor instead.\n\n See http://goo.gl/sdkXL9\n");this.promise._rejectCallback(t)},a.prototype.progress=function(t){if(!(this instanceof a))throw new TypeError("Illegal invocation, resolver resolve/reject must be called within a resolver context. Consider using the promise constructor instead.\n\n See http://goo.gl/sdkXL9\n");this.promise._progress(t)},a.prototype.cancel=function(t){this.promise.cancel(t)},a.prototype.timeout=function(){this.reject(new c("timeout"))},a.prototype.isResolved=function(){return this.promise.isResolved()},a.prototype.toJSON=function(){return this.promise.toJSON()},e.exports=a},{"./errors.js":13,"./es5.js":14,"./util.js":38}],26:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t){return!x.test(t)}function i(t){try{return t.__isPromisified__===!0}catch(e){return!1}}function o(t,e,n){var r=p.getDataPropertyOrDefault(t,e+n,b);return r?i(r):!1}function a(t,e,n){for(var r=0;r<t.length;r+=2){var i=t[r];if(n.test(i))for(var o=i.replace(n,""),a=0;a<t.length;a+=2)if(t[a]===o)throw new y("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/iWrZbw\n".replace("%s",e))}}function s(t,e,n,r){for(var s=p.inheritedDataKeys(t),u=[],l=0;l<s.length;++l){var c=s[l],f=t[c],h=r===$?!0:$(c,f,t);"function"!=typeof f||i(f)||o(t,c,e)||!r(c,f,t,h)||u.push(c,f)}return a(u,e,n),u}function u(t,r,i,o){function a(){var i=r;r===h&&(i=this);var o=new e(n);o._captureStackTrace();var a="string"==typeof u&&this!==s?this[u]:t,l=d(o);try{a.apply(i,v(arguments,l))}catch(c){o._rejectCallback(m(c),!0,!0)}return o}var s=function(){return this}(),u=t;return"string"==typeof u&&(t=o),p.notEnumerableProp(a,"__isPromisified__",!0),a}function l(t,e,n,r){for(var i=new RegExp(k(e)+"$"),o=s(t,e,i,n),a=0,u=o.length;u>a;a+=2){var l=o[a],c=o[a+1],f=l+e;if(r===S)t[f]=S(l,h,l,c,e);else{var d=r(c,function(){return S(l,h,l,c,e)});p.notEnumerableProp(d,"__isPromisified__",!0),t[f]=d}}return p.toFastProperties(t),t}function c(t,e){return S(t,e,void 0,t)}var f,h={},p=t("./util.js"),d=t("./promise_resolver.js")._nodebackForPromise,v=p.withAppended,m=p.maybeWrapAsError,g=p.canEvaluate,y=t("./errors").TypeError,_="Async",b={__isPromisified__:!0},w=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],x=new RegExp("^(?:"+w.join("|")+")$"),$=function(t){return p.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t},k=function(t){return t.replace(/([$])/,"\\$")},S=g?f:u;e.promisify=function(t,e){if("function"!=typeof t)throw new y("fn must be a function\n\n See http://goo.gl/916lJJ\n");if(i(t))return t;var n=c(t,arguments.length<2?h:e);return p.copyDescriptors(t,n,r),n},e.promisifyAll=function(t,e){if("function"!=typeof t&&"object"!=typeof t)throw new y("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/9ITlV0\n");e=Object(e);var n=e.suffix;"string"!=typeof n&&(n=_);var r=e.filter;"function"!=typeof r&&(r=$);var i=e.promisifier;if("function"!=typeof i&&(i=S),!p.isIdentifier(n))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/8FZo5V\n");for(var o=p.inheritedDataKeys(t),a=0;a<o.length;++a){var s=t[o[a]];"constructor"!==o[a]&&p.isClass(s)&&(l(s.prototype,n,r,i),l(s,n,r,i))}return l(t,n,r,i)}}},{"./errors":13,"./promise_resolver.js":25,"./util.js":38}],27:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t){for(var e=l.keys(t),n=e.length,r=new Array(2*n),i=0;n>i;++i){var o=e[i];r[i]=t[o],r[i+n]=o}this.constructor$(r)}function a(t){var n,a=r(t);return u(a)?(n=a instanceof e?a._then(e.props,void 0,void 0,void 0,void 0):new o(a).promise(),a instanceof e&&n._propagateFrom(a,4),n):i("cannot await properties of a non-object\n\n See http://goo.gl/OsFKC8\n")}var s=t("./util.js"),u=s.isObject,l=t("./es5.js");s.inherits(o,n),o.prototype._init=function(){this._init$(void 0,-3)},o.prototype._promiseFulfilled=function(t,e){this._values[e]=t;var n=++this._totalResolved;if(n>=this._length){for(var r={},i=this.length(),o=0,a=this.length();a>o;++o)r[this._values[o+i]]=this._values[o];this._resolve(r)}},o.prototype._promiseProgressed=function(t,e){this._promise._progress({key:this._values[e+this.length()],value:t})},o.prototype.shouldCopyValues=function(){return!1},o.prototype.getActualLength=function(t){return t>>1},e.prototype.props=function(){return a(this)},e.props=function(t){return a(t)}}},{"./es5.js":14,"./util.js":38}],28:[function(t,e,n){"use strict";function r(t,e,n,r,i){for(var o=0;i>o;++o)n[o+r]=t[o+e],t[o+e]=void 0}function i(t){this._capacity=t,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(t){return this._capacity<t},i.prototype._pushOne=function(t){var e=this.length();this._checkCapacity(e+1);var n=this._front+e&this._capacity-1;this[n]=t,this._length=e+1},i.prototype._unshiftOne=function(t){var e=this._capacity;this._checkCapacity(this.length()+1);var n=this._front,r=(n-1&e-1^e)-e;this[r]=t,this._front=r,this._length=this.length()+1},i.prototype.unshift=function(t,e,n){this._unshiftOne(n),this._unshiftOne(e),this._unshiftOne(t)},i.prototype.push=function(t,e,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(t),this._pushOne(e),void this._pushOne(n);var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=t,this[i+1&o]=e,this[i+2&o]=n,this._length=r},i.prototype.shift=function(){var t=this._front,e=this[t];return this[t]=void 0,this._front=t+1&this._capacity-1,this._length--,e},i.prototype.length=function(){return this._length},i.prototype._checkCapacity=function(t){this._capacity<t&&this._resizeTo(this._capacity<<1)},i.prototype._resizeTo=function(t){var e=this._capacity;this._capacity=t;var n=this._front,i=this._length,o=n+i&e-1;r(this,0,this,e,o)},e.exports=i},{}],29:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t,o){var u=r(t);if(u instanceof e)return s(u);if(!a(t))return i("expecting an array, a promise or a thenable\n\n See http://goo.gl/s8MMhc\n");var l=new e(n);void 0!==o&&l._propagateFrom(o,5);for(var c=l._fulfill,f=l._reject,h=0,p=t.length;p>h;++h){var d=t[h];(void 0!==d||h in t)&&e.cast(d)._then(c,f,void 0,l,null)}return l}var a=t("./util.js").isArray,s=function(t){return t.then(function(e){return o(e,t)})};e.race=function(t){return o(t,void 0)},e.prototype.race=function(){return o(this,void 0)}}},{"./util.js":38}],30:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){function a(t,n,r,a){this.constructor$(t),this._promise._captureStackTrace(),this._preservedValues=a===o?[]:null,this._zerothIsAccum=void 0===r,this._gotAccum=!1,this._reducingIndex=this._zerothIsAccum?1:0,this._valuesPhase=void 0;var u=i(r,this._promise),f=!1,h=u instanceof e;h&&(u=u._target(),u._isPending()?u._proxyPromiseArray(this,-1):u._isFulfilled()?(r=u._value(),this._gotAccum=!0):(this._reject(u._reason()),f=!0)),h||this._zerothIsAccum||(this._gotAccum=!0);var p=l();this._callback=null===p?n:p.bind(n),this._accum=r,f||c.invoke(s,this,void 0)}function s(){this._init$(void 0,-5)}function u(t,e,n,i){if("function"!=typeof e)return r("fn must be a function\n\n See http://goo.gl/916lJJ\n");var o=new a(t,e,n,i);return o.promise()}var l=e._getDomain,c=t("./async.js"),f=t("./util.js"),h=f.tryCatch,p=f.errorObj;f.inherits(a,n),a.prototype._init=function(){},a.prototype._resolveEmptyArray=function(){(this._gotAccum||this._zerothIsAccum)&&this._resolve(null!==this._preservedValues?[]:this._accum)},a.prototype._promiseFulfilled=function(t,n){var r=this._values;r[n]=t;var o,a=this.length(),s=this._preservedValues,u=null!==s,l=this._gotAccum,c=this._valuesPhase;if(!c)for(c=this._valuesPhase=new Array(a),o=0;a>o;++o)c[o]=0;if(o=c[n],0===n&&this._zerothIsAccum?(this._accum=t,this._gotAccum=l=!0,c[n]=0===o?1:2):-1===n?(this._accum=t,this._gotAccum=l=!0):0===o?c[n]=1:(c[n]=2,this._accum=t),l){for(var f,d=this._callback,v=this._promise._boundValue(),m=this._reducingIndex;a>m;++m)if(o=c[m],2!==o){if(1!==o)return;if(t=r[m],this._promise._pushContext(),u?(s.push(t),f=h(d).call(v,t,m,a)):f=h(d).call(v,this._accum,t,m,a),this._promise._popContext(),f===p)return this._reject(f.e);var g=i(f,this._promise);if(g instanceof e){if(g=g._target(),g._isPending())return c[m]=4,g._proxyPromiseArray(this,m);if(!g._isFulfilled())return this._reject(g._reason());f=g._value()}this._reducingIndex=m+1,this._accum=f}else this._reducingIndex=m+1;this._resolve(u?s:this._accum)}},e.prototype.reduce=function(t,e){return u(this,t,e,null)},e.reduce=function(t,e,n,r){return u(t,e,n,r)}}},{"./async.js":2,"./util.js":38}],31:[function(t,e,n){"use strict";var r,i=t("./util"),o=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/m3OTXk\n")};if(i.isNode&&"undefined"==typeof MutationObserver){var a=global.setImmediate,s=process.nextTick;r=i.isRecentNode?function(t){a.call(global,t)}:function(t){s.call(process,t)}}else"undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&window.navigator.standalone?r="undefined"!=typeof setImmediate?function(t){setImmediate(t)}:"undefined"!=typeof setTimeout?function(t){setTimeout(t,0)}:o:(r=function(t){var e=document.createElement("div"),n=new MutationObserver(t);return n.observe(e,{attributes:!0}),function(){e.classList.toggle("foo")}},r.isStatic=!0);e.exports=r},{"./util":38}],32:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t){this.constructor$(t)}var i=e.PromiseInspection,o=t("./util.js");o.inherits(r,n),r.prototype._promiseResolved=function(t,e){this._values[t]=e;var n=++this._totalResolved;n>=this._length&&this._resolve(this._values)},r.prototype._promiseFulfilled=function(t,e){var n=new i;n._bitField=268435456,n._settledValue=t,this._promiseResolved(e,n)},r.prototype._promiseRejected=function(t,e){var n=new i;n._bitField=134217728,n._settledValue=t,this._promiseResolved(e,n)},e.settle=function(t){return new r(t).promise()},e.prototype.settle=function(){return new r(this).promise()}}},{"./util.js":38}],33:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(t,e){if((0|e)!==e||0>e)return r("expecting a positive integer\n\n See http://goo.gl/1wAmHx\n");var n=new i(t),o=n.promise();return n.setHowMany(e),n.init(),o}var a=t("./util.js"),s=t("./errors.js").RangeError,u=t("./errors.js").AggregateError,l=a.isArray;a.inherits(i,n),i.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var t=l(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},i.prototype.init=function(){this._initialized=!0,this._init()},i.prototype.setUnwrap=function(){this._unwrap=!0},i.prototype.howMany=function(){return this._howMany},i.prototype.setHowMany=function(t){this._howMany=t},i.prototype._promiseFulfilled=function(t){this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values))},i.prototype._promiseRejected=function(t){if(this._addRejected(t),this.howMany()>this._canPossiblyFulfill()){for(var e=new u,n=this.length();n<this._values.length;++n)e.push(this._values[n]);this._reject(e)}},i.prototype._fulfilled=function(){return this._totalResolved},i.prototype._rejected=function(){return this._values.length-this.length()},i.prototype._addRejected=function(t){this._values.push(t)},i.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},i.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},i.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new s(e)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return o(t,e)},e.prototype.some=function(t){return o(this,t)},e._SomePromiseArray=i}},{"./errors.js":13,"./util.js":38}],34:[function(t,e,n){"use strict";e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValue=t._settledValue):(this._bitField=0,this._settledValue=void 0)}e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/hc1DLj\n");return this._settledValue},e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/hPuiwB\n");return this._settledValue},e.prototype.isFulfilled=t.prototype._isFulfilled=function(){return(268435456&this._bitField)>0},e.prototype.isRejected=t.prototype._isRejected=function(){return(134217728&this._bitField)>0},e.prototype.isPending=t.prototype._isPending=function(){return 0===(402653184&this._bitField)},e.prototype.isResolved=t.prototype._isResolved=function(){return(402653184&this._bitField)>0},t.prototype.isPending=function(){return this._target()._isPending()},t.prototype.isRejected=function(){return this._target()._isRejected()},t.prototype.isFulfilled=function(){return this._target()._isFulfilled()},t.prototype.isResolved=function(){return this._target()._isResolved()},t.prototype._value=function(){return this._settledValue},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue},t.prototype.value=function(){var t=this._target();if(!t.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/hc1DLj\n");return t._settledValue},t.prototype.reason=function(){var t=this._target();if(!t.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/hPuiwB\n");return t._unsetRejectionIsUnhandled(),t._settledValue},t.PromiseInspection=e}},{}],35:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t,r){if(l(t)){if(t instanceof e)return t;if(o(t)){var c=new e(n);return t._then(c._fulfillUnchecked,c._rejectUncheckedCheckError,c._progressUnchecked,c,null),c}var f=s.tryCatch(i)(t);if(f===u){r&&r._pushContext();var c=e.reject(f.e);return r&&r._popContext(),c}if("function"==typeof f)return a(t,f,r)}return t}function i(t){return t.then}function o(t){return c.call(t,"_promise0")}function a(t,r,i){function o(t){c&&(c._resolveCallback(t),c=null)}function a(t){c&&(c._rejectCallback(t,h,!0),c=null)}function l(t){c&&"function"==typeof c._progress&&c._progress(t)}var c=new e(n),f=c;i&&i._pushContext(),
c._captureStackTrace(),i&&i._popContext();var h=!0,p=s.tryCatch(r).call(t,o,a,l);return h=!1,c&&p===u&&(c._rejectCallback(p.e,!0,!0),c=null),f}var s=t("./util.js"),u=s.errorObj,l=s.isObject,c={}.hasOwnProperty;return r}},{"./util.js":38}],36:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t){var e=this;return e instanceof Number&&(e=+e),clearTimeout(e),t}function i(t){var e=this;throw e instanceof Number&&(e=+e),clearTimeout(e),t}var o=t("./util.js"),a=e.TimeoutError,s=function(t,e){if(t.isPending()){var n;!o.isPrimitive(e)&&e instanceof Error?n=e:("string"!=typeof e&&(e="operation timed out"),n=new a(e)),o.markAsOriginatingFromRejection(n),t._attachExtraTrace(n),t._cancel(n)}},u=function(t){return l(+this).thenReturn(t)},l=e.delay=function(t,r){if(void 0===r){r=t,t=void 0;var i=new e(n);return setTimeout(function(){i._fulfill()},r),i}return r=+r,e.resolve(t)._then(u,null,null,r,void 0)};e.prototype.delay=function(t){return l(this,t)},e.prototype.timeout=function(t,e){t=+t;var n=this.then().cancellable();n._cancellationParent=this;var o=setTimeout(function(){s(n,e)},t);return n._then(r,i,void 0,o,void 0)}}},{"./util.js":38}],37:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t){for(var n=t.length,r=0;n>r;++r){var i=t[r];if(i.isRejected())return e.reject(i.error());t[r]=i._settledValue}return t}function a(t){setTimeout(function(){throw t},0)}function s(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function u(t,n){function i(){if(o>=u)return l.resolve();var c=s(t[o++]);if(c instanceof e&&c._isDisposable()){try{c=r(c._getDisposer().tryDispose(n),t.promise)}catch(f){return a(f)}if(c instanceof e)return c._then(i,a,null,null,null)}i()}var o=0,u=t.length,l=e.defer();return i(),l.promise}function l(t){var e=new m;return e._settledValue=t,e._bitField=268435456,u(this,e).thenReturn(t)}function c(t){var e=new m;return e._settledValue=t,e._bitField=134217728,u(this,e).thenThrow(t)}function f(t,e,n){this._data=t,this._promise=e,this._context=n}function h(t,e,n){this.constructor$(t,e,n)}function p(t){return f.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}var d=t("./errors.js").TypeError,v=t("./util.js").inherits,m=e.PromiseInspection;f.prototype.data=function(){return this._data},f.prototype.promise=function(){return this._promise},f.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():null},f.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=null!==e?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},f.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},v(h,f),h.prototype.doDispose=function(t,e){var n=this.data();return n.call(t,t,e)},e.using=function(){var t=arguments.length;if(2>t)return n("you must pass at least 2 arguments to Promise.using");var i=arguments[t-1];if("function"!=typeof i)return n("fn must be a function\n\n See http://goo.gl/916lJJ\n");var a,s=!0;2===t&&Array.isArray(arguments[0])?(a=arguments[0],t=a.length,s=!1):(a=arguments,t--);for(var u=new Array(t),h=0;t>h;++h){var d=a[h];if(f.isDisposer(d)){var v=d;d=d.promise(),d._setDisposable(v)}else{var m=r(d);m instanceof e&&(d=m._then(p,null,null,{resources:u,index:h},void 0))}u[h]=d}var g=e.settle(u).then(o).then(function(t){g._pushContext();var e;try{e=s?i.apply(void 0,t):i.call(void 0,t)}finally{g._popContext()}return e})._then(l,c,void 0,u,void 0);return u.promise=g,g},e.prototype._setDisposable=function(t){this._bitField=262144|this._bitField,this._disposer=t},e.prototype._isDisposable=function(){return(262144&this._bitField)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=-262145&this._bitField,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new h(t,this,i());throw new d}}},{"./errors.js":13,"./util.js":38}],38:[function(t,e,n){"use strict";function r(){try{var t=C;return C=null,t.apply(this,arguments)}catch(e){return S.e=e,S}}function i(t){return C=t,r}function o(t){return null==t||t===!0||t===!1||"string"==typeof t||"number"==typeof t}function a(t){return!o(t)}function s(t){return o(t)?new Error(m(t)):t}function u(t,e){var n,r=t.length,i=new Array(r+1);for(n=0;r>n;++n)i[n]=t[n];return i[n]=e,i}function l(t,e,n){if(!x.isES5)return{}.hasOwnProperty.call(t,e)?t[e]:void 0;var r=Object.getOwnPropertyDescriptor(t,e);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function c(t,e,n){if(o(t))return t;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return x.defineProperty(t,e,r),t}function f(t){throw t}function h(t){try{if("function"==typeof t){var e=x.names(t.prototype),n=x.isES5&&e.length>1,r=e.length>0&&!(1===e.length&&"constructor"===e[0]),i=F.test(t+"")&&x.names(t).length>0;if(n||r||i)return!0}return!1}catch(o){return!1}}function p(t){function e(){}e.prototype=t;for(var n=8;n--;)new e;return t}function d(t){return j.test(t)}function v(t,e,n){for(var r=new Array(t),i=0;t>i;++i)r[i]=e+i+n;return r}function m(t){try{return t+""}catch(e){return"[no string representation]"}}function g(t){try{c(t,"isOperational",!0)}catch(e){}}function y(t){return null==t?!1:t instanceof Error.__BluebirdErrorTypes__.OperationalError||t.isOperational===!0}function _(t){return t instanceof Error&&x.propertyIsWritable(t,"stack")}function b(t){return{}.toString.call(t)}function w(t,e,n){for(var r=x.names(t),i=0;i<r.length;++i){var o=r[i];if(n(o))try{x.defineProperty(e,o,x.getDescriptor(t,o))}catch(a){}}}var x=t("./es5.js"),$="undefined"==typeof navigator,k=function(){try{var t={};return x.defineProperty(t,"f",{get:function(){return 3}}),3===t.f}catch(e){return!1}}(),S={e:{}},C,E=function(t,e){function n(){this.constructor=t,this.constructor$=e;for(var n in e.prototype)r.call(e.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=e.prototype[n])}var r={}.hasOwnProperty;return n.prototype=e.prototype,t.prototype=new n,t.prototype},T=function(){var t=[Array.prototype,Object.prototype,Function.prototype],e=function(e){for(var n=0;n<t.length;++n)if(t[n]===e)return!0;return!1};if(x.isES5){var n=Object.getOwnPropertyNames;return function(t){for(var r=[],i=Object.create(null);null!=t&&!e(t);){var o;try{o=n(t)}catch(a){return r}for(var s=0;s<o.length;++s){var u=o[s];if(!i[u]){i[u]=!0;var l=Object.getOwnPropertyDescriptor(t,u);null!=l&&null==l.get&&null==l.set&&r.push(u)}}t=x.getPrototypeOf(t)}return r}}var r={}.hasOwnProperty;return function(n){if(e(n))return[];var i=[];t:for(var o in n)if(r.call(n,o))i.push(o);else{for(var a=0;a<t.length;++a)if(r.call(t[a],o))continue t;i.push(o)}return i}}(),F=/this\s*\.\s*\S+\s*=/,j=/^[a-z$_][a-z$_0-9]*$/i,A=function(){return"stack"in new Error?function(t){return _(t)?t:new Error(m(t))}:function(t){if(_(t))return t;try{throw new Error(m(t))}catch(e){return e}}}(),D={isClass:h,isIdentifier:d,inheritedDataKeys:T,getDataPropertyOrDefault:l,thrower:f,isArray:x.isArray,haveGetters:k,notEnumerableProp:c,isPrimitive:o,isObject:a,canEvaluate:$,errorObj:S,tryCatch:i,inherits:E,withAppended:u,maybeWrapAsError:s,toFastProperties:p,filledRange:v,toString:m,canAttachTrace:_,ensureErrorObject:A,originatesFromRejection:y,markAsOriginatingFromRejection:g,classString:b,copyDescriptors:w,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:"undefined"!=typeof process&&"[object process]"===b(process).toLowerCase()};D.isRecentNode=D.isNode&&function(){var t=process.versions.node.split(".").map(Number);return 0===t[0]&&t[1]>10||t[0]>0}(),D.isNode&&D.toFastProperties(process);try{throw new Error}catch(M){D.lastLineError=M}e.exports=D},{"./es5.js":14}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise),function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e="length"in t&&t.length,n=Z.type(t);return"function"===n||Z.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function r(t,e,n){if(Z.isFunction(e))return Z.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return Z.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(st.test(e))return Z.filter(e,t,n);e=Z.filter(e,t)}return Z.grep(t,function(t){return B.call(e,t)>=0!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e=dt[t]={};return Z.each(t.match(pt)||[],function(t,n){e[n]=!0}),e}function a(){J.removeEventListener("DOMContentLoaded",a,!1),t.removeEventListener("load",a,!1),Z.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Z.expando+s.uid++}function u(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(bt,"-$1").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:_t.test(n)?Z.parseJSON(n):n}catch(i){}yt.set(t,e,n)}else n=void 0;return n}function l(){return!0}function c(){return!1}function f(){try{return J.activeElement}catch(t){}}function h(t,e){return Z.nodeName(t,"table")&&Z.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function p(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function d(t){var e=Pt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function v(t,e){for(var n=0,r=t.length;r>n;n++)gt.set(t[n],"globalEval",!e||gt.get(e[n],"globalEval"))}function m(t,e){var n,r,i,o,a,s,u,l;if(1===e.nodeType){if(gt.hasData(t)&&(o=gt.access(t),a=gt.set(e,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)Z.event.add(e,i,l[i][n])}yt.hasData(t)&&(s=yt.access(t),u=Z.extend({},s),yt.set(e,u))}}function g(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&Z.nodeName(t,e)?Z.merge([t],n):n}function y(t,e){var n=e.nodeName.toLowerCase();"input"===n&&kt.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function _(e,n){var r,i=Z(n.createElement(e)).appendTo(n.body),o=t.getDefaultComputedStyle&&(r=t.getDefaultComputedStyle(i[0]))?r.display:Z.css(i[0],"display");return i.detach(),o}function b(t){var e=J,n=zt[t];return n||(n=_(t,e),"none"!==n&&n||(Lt=(Lt||Z("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Lt[0].contentDocument,e.write(),e.close(),n=_(t,e),Lt.detach()),zt[t]=n),n}function w(t,e,n){var r,i,o,a,s=t.style;return n=n||Ut(t),n&&(a=n.getPropertyValue(e)||n[e]),n&&(""!==a||Z.contains(t.ownerDocument,t)||(a=Z.style(t,e)),Ht.test(a)&&qt.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function x(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function $(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=Gt.length;i--;)if(e=Gt[i]+n,e in t)return e;return r}function k(t,e,n){var r=Vt.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function S(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=Z.css(t,n+xt[o],!0,i)),r?("content"===n&&(a-=Z.css(t,"padding"+xt[o],!0,i)),"margin"!==n&&(a-=Z.css(t,"border"+xt[o]+"Width",!0,i))):(a+=Z.css(t,"padding"+xt[o],!0,i),"padding"!==n&&(a+=Z.css(t,"border"+xt[o]+"Width",!0,i)));return a}function C(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Ut(t),a="border-box"===Z.css(t,"boxSizing",!1,o);if(0>=i||null==i){if(i=w(t,e,o),(0>i||null==i)&&(i=t.style[e]),Ht.test(i))return i;r=a&&(X.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+S(t,e,n||(a?"border":"content"),r,o)+"px"}function E(t,e){for(var n,r,i,o=[],a=0,s=t.length;s>a;a++)r=t[a],r.style&&(o[a]=gt.get(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&$t(r)&&(o[a]=gt.access(r,"olddisplay",b(r.nodeName)))):(i=$t(r),"none"===n&&i||gt.set(r,"olddisplay",i?n:Z.css(r,"display"))));for(a=0;s>a;a++)r=t[a],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function T(t,e,n,r,i){return new T.prototype.init(t,e,n,r,i)}function F(){return setTimeout(function(){Xt=void 0}),Xt=Z.now()}function j(t,e){var n,r=0,i={height:t};for(e=e?1:0;4>r;r+=2-e)n=xt[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function A(t,e,n){for(var r,i=(ne[e]||[]).concat(ne["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,e,t))return r}function D(t,e,n){var r,i,o,a,s,u,l,c,f=this,h={},p=t.style,d=t.nodeType&&$t(t),v=gt.get(t,"fxshow");n.queue||(s=Z._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,Z.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=Z.css(t,"display"),c="none"===l?gt.get(t,"olddisplay")||b(t.nodeName):l,"inline"===c&&"none"===Z.css(t,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],Qt.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;d=!0}h[r]=v&&v[r]||Z.style(t,r)}else l=void 0;if(Z.isEmptyObject(h))"inline"===("none"===l?b(t.nodeName):l)&&(p.display=l);else{v?"hidden"in v&&(d=v.hidden):v=gt.access(t,"fxshow",{}),o&&(v.hidden=!d),d?Z(t).show():f.done(function(){Z(t).hide()}),f.done(function(){var e;gt.remove(t,"fxshow");for(e in h)Z.style(t,e,h[e])});for(r in h)a=A(d?v[r]:0,r,f),r in v||(v[r]=a.start,d&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function M(t,e){var n,r,i,o,a;for(n in t)if(r=Z.camelCase(n),i=e[r],o=t[n],Z.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),a=Z.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function O(t,e,n){var r,i,o=0,a=ee.length,s=Z.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=Xt||F(),n=Math.max(0,l.startTime+l.duration-e),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;u>a;a++)l.tweens[a].run(o);return s.notifyWith(t,[l,o,n]),1>o&&u?n:(s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:Z.extend({},e),opts:Z.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Xt||F(),duration:n.duration,tweens:[],createTween:function(e,n){var r=Z.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return e?s.resolveWith(t,[l,e]):s.rejectWith(t,[l,e]),this}}),c=l.props;for(M(c,l.opts.specialEasing);a>o;o++)if(r=ee[o].call(l,t,c,l.opts))return r;return Z.map(c,A,l),Z.isFunction(l.opts.start)&&l.opts.start.call(t,l),Z.fx.timer(Z.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function I(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(pt)||[];if(Z.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function P(t,e,n,r){function i(s){var u;return o[s]=!0,Z.each(t[s]||[],function(t,s){var l=s(e,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(e.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=t===_e;return i(e.dataTypes[0])||!o["*"]&&i("*")}function N(t,e){var n,r,i=Z.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&Z.extend(!0,t,r),t}function R(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}return o?(o!==u[0]&&u.unshift(o),n[o]):void 0}function L(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&t["throws"])e=a(e);else try{e=a(e)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function z(t,e,n,r){var i;if(Z.isArray(e))Z.each(e,function(e,i){n||ke.test(t)?r(t,i):z(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==Z.type(e))r(t,e);else for(i in e)z(t+"["+i+"]",e[i],n,r)}function q(t){return Z.isWindow(t)?t:9===t.nodeType&&t.defaultView}var H=[],U=H.slice,W=H.concat,V=H.push,B=H.indexOf,Y={},K=Y.toString,G=Y.hasOwnProperty,X={},J=t.document,Q="2.1.4",Z=function(t,e){return new Z.fn.init(t,e)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,et=/^-ms-/,nt=/-([\da-z])/gi,rt=function(t,e){return e.toUpperCase()};Z.fn=Z.prototype={jquery:Q,constructor:Z,selector:"",length:0,toArray:function(){return U.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:U.call(this)},pushStack:function(t){var e=Z.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return Z.each(this,t,e)},map:function(t){return this.pushStack(Z.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(U.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:V,sort:H.sort,splice:H.splice},Z.extend=Z.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||Z.isFunction(a)||(a={}),s===u&&(a=this,s--);u>s;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],r=t[e],a!==r&&(l&&r&&(Z.isPlainObject(r)||(i=Z.isArray(r)))?(i?(i=!1,o=n&&Z.isArray(n)?n:[]):o=n&&Z.isPlainObject(n)?n:{},a[e]=Z.extend(l,o,r)):void 0!==r&&(a[e]=r));return a},Z.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===Z.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!Z.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){return"object"!==Z.type(t)||t.nodeType||Z.isWindow(t)?!1:t.constructor&&!G.call(t.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?Y[K.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=Z.trim(t),t&&(1===t.indexOf("use strict")?(e=J.createElement("script"),e.text=t,J.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(et,"ms-").replace(nt,rt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,r){var i,o=0,a=t.length,s=n(t);if(r){if(s)for(;a>o&&(i=e.apply(t[o],r),i!==!1);o++);else for(o in t)if(i=e.apply(t[o],r),i===!1)break}else if(s)for(;a>o&&(i=e.call(t[o],o,t[o]),i!==!1);o++);else for(o in t)if(i=e.call(t[o],o,t[o]),i===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(tt,"")},makeArray:function(t,e){var r=e||[];return null!=t&&(n(Object(t))?Z.merge(r,"string"==typeof t?[t]:t):V.call(r,t)),r},inArray:function(t,e,n){return null==e?-1:B.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;n>r;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r,i=[],o=0,a=t.length,s=!n;a>o;o++)r=!e(t[o],o),r!==s&&i.push(t[o]);return i},map:function(t,e,r){var i,o=0,a=t.length,s=n(t),u=[];if(s)for(;a>o;o++)i=e(t[o],o,r),null!=i&&u.push(i);else for(o in t)i=e(t[o],o,r),null!=i&&u.push(i);return W.apply([],u)},guid:1,proxy:function(t,e){var n,r,i;return"string"==typeof e&&(n=t[e],e=t,t=n),Z.isFunction(t)?(r=U.call(arguments,2),i=function(){return t.apply(e||this,r.concat(U.call(arguments)))},i.guid=t.guid=t.guid||Z.guid++,i):void 0},now:Date.now,support:X}),Z.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){Y["[object "+e+"]"]=e.toLowerCase()});var it=function(t){function e(t,e,n,r){var i,o,a,s,u,l,f,p,d,v;if((e?e.ownerDocument||e:z)!==D&&A(e),e=e||D,n=n||[],s=e.nodeType,"string"!=typeof t||!t||1!==s&&9!==s&&11!==s)return n;if(!r&&O){if(11!==s&&(i=yt.exec(t)))if(a=i[1]){if(9===s){if(o=e.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&R(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return Q.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&w.getElementsByClassName)return Q.apply(n,e.getElementsByClassName(a)),n}if(w.qsa&&(!I||!I.test(t))){if(p=f=L,d=e,v=1!==s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(l=S(t),(f=e.getAttribute("id"))?p=f.replace(bt,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",u=l.length;u--;)l[u]=p+h(l[u]);d=_t.test(t)&&c(e.parentNode)||e,v=l.join(",")}if(v)try{return Q.apply(n,d.querySelectorAll(v)),n}catch(m){}finally{f||e.removeAttribute("id")}}}return E(t.replace(ut,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>x.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[L]=!0,t}function i(t){var e=D.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=t.length;r--;)x.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Y)-(~t.sourceIndex||Y);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function f(){}function h(t){for(var e=0,n=t.length,r="";n>e;e++)r+=t[e].value;return r}function p(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=H++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,l=[q,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(u=e[L]||(e[L]={}),(s=u[r])&&s[0]===q&&s[1]===o)return l[2]=s[2];if(u[r]=l,l[2]=t(e,n,a))return!0}}}function d(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function v(t,n,r){for(var i=0,o=n.length;o>i;i++)e(t,n[i],r);return r}function m(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;u>s;s++)(o=t[s])&&(!n||n(o,r,i))&&(a.push(o),l&&e.push(s));return a}function g(t,e,n,i,o,a){return i&&!i[L]&&(i=g(i)),o&&!o[L]&&(o=g(o,a)),r(function(r,a,s,u){var l,c,f,h=[],p=[],d=a.length,g=r||v(e||"*",s.nodeType?[s]:s,[]),y=!t||!r&&e?g:m(g,h,t,s,u),_=n?o||(r?t:d||i)?[]:a:y;if(n&&n(y,_,s,u),i)for(l=m(_,p),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(_[p[c]]=!(y[p[c]]=f));if(r){if(o||t){if(o){for(l=[],c=_.length;c--;)(f=_[c])&&l.push(y[c]=f);o(null,_=[],l,u)}for(c=_.length;c--;)(f=_[c])&&(l=o?tt(r,f):h[c])>-1&&(r[l]=!(a[l]=f))}}else _=m(_===a?_.splice(d,_.length):_),o?o(null,a,_,u):Q.apply(a,_)})}function y(t){for(var e,n,r,i=t.length,o=x.relative[t[0].type],a=o||x.relative[" "],s=o?1:0,u=p(function(t){return t===e},a,!0),l=p(function(t){return tt(e,t)>-1},a,!0),c=[function(t,n,r){var i=!o&&(r||n!==T)||((e=n).nodeType?u(t,n,r):l(t,n,r));return e=null,i}];i>s;s++)if(n=x.relative[t[s].type])c=[p(d(c),n)];else{if(n=x.filter[t[s].type].apply(null,t[s].matches),n[L]){for(r=++s;i>r&&!x.relative[t[r].type];r++);return g(s>1&&d(c),s>1&&h(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(ut,"$1"),n,r>s&&y(t.slice(s,r)),i>r&&y(t=t.slice(r)),i>r&&h(t))}c.push(n)}return d(c)}function _(t,n){var i=n.length>0,o=t.length>0,a=function(r,a,s,u,l){var c,f,h,p=0,d="0",v=r&&[],g=[],y=T,_=r||o&&x.find.TAG("*",l),b=q+=null==y?1:Math.random()||.1,w=_.length;for(l&&(T=a!==D&&a);d!==w&&null!=(c=_[d]);d++){if(o&&c){for(f=0;h=t[f++];)if(h(c,a,s)){u.push(c);break}l&&(q=b)}i&&((c=!h&&c)&&p--,r&&v.push(c))}if(p+=d,i&&d!==p){for(f=0;h=n[f++];)h(v,g,a,s);if(r){if(p>0)for(;d--;)v[d]||g[d]||(g[d]=X.call(u));g=m(g)}Q.apply(u,g),l&&!r&&g.length>0&&p+n.length>1&&e.uniqueSort(u)}return l&&(q=b,T=y),v};return i?r(a):a}var b,w,x,$,k,S,C,E,T,F,j,A,D,M,O,I,P,N,R,L="sizzle"+1*new Date,z=t.document,q=0,H=0,U=n(),W=n(),V=n(),B=function(t,e){return t===e&&(j=!0),0},Y=1<<31,K={}.hasOwnProperty,G=[],X=G.pop,J=G.push,Q=G.push,Z=G.slice,tt=function(t,e){for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it=rt.replace("w","w#"),ot="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",at=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),ut=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ft=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ht=new RegExp(at),pt=new RegExp("^"+it+"$"),dt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt.replace("w","w*")+")"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},vt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_t=/[+~]/,bt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),xt=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},$t=function(){A()};try{Q.apply(G=Z.call(z.childNodes),z.childNodes),G[z.childNodes.length].nodeType}catch(kt){Q={apply:G.length?function(t,e){J.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}w=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},A=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:z;return r!==D&&9===r.nodeType&&r.documentElement?(D=r,M=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",$t,!1):n.attachEvent&&n.attachEvent("onunload",$t)),O=!k(r),w.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=i(function(t){return t.appendChild(r.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=gt.test(r.getElementsByClassName),w.getById=i(function(t){return M.appendChild(t).id=L,!r.getElementsByName||!r.getElementsByName(L).length}),w.getById?(x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&O){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},x.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),x.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=w.getElementsByClassName&&function(t,e){return O?e.getElementsByClassName(t):void 0},P=[],I=[],(w.qsa=gt.test(r.querySelectorAll))&&(i(function(t){M.appendChild(t).innerHTML="<a id='"+L+"'></a><select id='"+L+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&I.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||I.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+L+"-]").length||I.push("~="),t.querySelectorAll(":checked").length||I.push(":checked"),t.querySelectorAll("a#"+L+"+*").length||I.push(".#.+[+~]")}),i(function(t){var e=r.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&I.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||I.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),I.push(",.*:")})),(w.matchesSelector=gt.test(N=M.matches||M.webkitMatchesSelector||M.mozMatchesSelector||M.oMatchesSelector||M.msMatchesSelector))&&i(function(t){w.disconnectedMatch=N.call(t,"div"),N.call(t,"[s!='']:x"),P.push("!=",at)}),I=I.length&&new RegExp(I.join("|")),P=P.length&&new RegExp(P.join("|")),e=gt.test(M.compareDocumentPosition),R=e||gt.test(M.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},B=e?function(t,e){if(t===e)return j=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===r||t.ownerDocument===z&&R(z,t)?-1:e===r||e.ownerDocument===z&&R(z,e)?1:F?tt(F,t)-tt(F,e):0:4&n?-1:1)}:function(t,e){if(t===e)return j=!0,0;var n,i=0,o=t.parentNode,s=e.parentNode,u=[t],l=[e];if(!o||!s)return t===r?-1:e===r?1:o?-1:s?1:F?tt(F,t)-tt(F,e):0;if(o===s)return a(t,e);for(n=t;n=n.parentNode;)u.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;u[i]===l[i];)i++;return i?a(u[i],l[i]):u[i]===z?-1:l[i]===z?1:0},r):D},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==D&&A(t),n=n.replace(ft,"='$1']"),w.matchesSelector&&O&&(!P||!P.test(n))&&(!I||!I.test(n)))try{var r=N.call(t,n);if(r||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return e(n,D,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==D&&A(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==D&&A(t);var n=x.attrHandle[e.toLowerCase()],r=n&&K.call(x.attrHandle,e.toLowerCase())?n(t,e,!O):void 0;return void 0!==r?r:w.attributes||!O?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){
throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(j=!w.detectDuplicates,F=!w.sortStable&&t.slice(0),t.sort(B),j){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return F=null,t},$=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=$(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=$(e);return n},x=e.selectors={cacheLength:50,createPseudo:r,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(wt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,xt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ht.test(n)&&(e=S(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=U[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&U(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:n?(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(st," ")+" ").indexOf(r)>-1:"|="===n?o===r||o.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,h,p,d,v=o!==a?"nextSibling":"previousSibling",m=e.parentNode,g=s&&e.nodeName.toLowerCase(),y=!u&&!s;if(m){if(o){for(;v;){for(f=e;f=f[v];)if(s?f.nodeName.toLowerCase()===g:1===f.nodeType)return!1;d=v="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?m.firstChild:m.lastChild],a&&y){for(c=m[L]||(m[L]={}),l=c[t]||[],p=l[0]===q&&l[1],h=l[0]===q&&l[2],f=p&&m.childNodes[p];f=++p&&f&&f[v]||(h=p=0)||d.pop();)if(1===f.nodeType&&++h&&f===e){c[t]=[q,p,h];break}}else if(y&&(l=(e[L]||(e[L]={}))[t])&&l[0]===q)h=l[1];else for(;(f=++p&&f&&f[v]||(h=p=0)||d.pop())&&((s?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++h||(y&&((f[L]||(f[L]={}))[t]=[q,h]),f!==e)););return h-=i,h===r||h%r===0&&h/r>=0}}},PSEUDO:function(t,n){var i,o=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[L]?o(n):o.length>1?(i=[t,t,"",n],x.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=tt(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=C(t.replace(ut,"$1"));return i[L]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(wt,xt),function(e){return(e.textContent||e.innerText||$(e)).indexOf(t)>-1}}),lang:r(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,xt).toLowerCase(),function(e){var n;do if(n=O?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===M},focus:function(t){return t===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return vt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[0>n?n+e:n]}),even:l(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var r=0>n?n+e:n;--r>=0;)t.push(r);return t}),gt:l(function(t,e,n){for(var r=0>n?n+e:n;++r<e;)t.push(r);return t})}},x.pseudos.nth=x.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=s(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=u(b);return f.prototype=x.filters=x.pseudos,x.setFilters=new f,S=e.tokenize=function(t,n){var r,i,o,a,s,u,l,c=W[t+" "];if(c)return n?0:c.slice(0);for(s=t,u=[],l=x.preFilter;s;){(!r||(i=lt.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=ct.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ut," ")}),s=s.slice(r.length));for(a in x.filter)!(i=dt[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?e.error(t):W(t,u).slice(0)},C=e.compile=function(t,e){var n,r=[],i=[],o=V[t+" "];if(!o){for(e||(e=S(t)),n=e.length;n--;)o=y(e[n]),o[L]?r.push(o):i.push(o);o=V(t,_(i,r)),o.selector=t}return o},E=e.select=function(t,e,n,r){var i,o,a,s,u,l="function"==typeof t&&t,f=!r&&S(t=l.selector||t);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===e.nodeType&&O&&x.relative[o[1].type]){if(e=(x.find.ID(a.matches[0].replace(wt,xt),e)||[])[0],!e)return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=dt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!x.relative[s=a.type]);)if((u=x.find[s])&&(r=u(a.matches[0].replace(wt,xt),_t.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&h(o),!t)return Q.apply(n,r),n;break}}return(l||C(t,f))(r,e,!O,n,_t.test(t)&&c(e.parentNode)||e),n},w.sortStable=L.split("").sort(B).join("")===L,w.detectDuplicates=!!j,A(),w.sortDetached=i(function(t){return 1&t.compareDocumentPosition(D.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var r;return n?void 0:t[e]===!0?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(t);Z.find=it,Z.expr=it.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=it.uniqueSort,Z.text=it.getText,Z.isXMLDoc=it.isXML,Z.contains=it.contains;var ot=Z.expr.match.needsContext,at=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,st=/^.[^:#\[\.,]*$/;Z.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?Z.find.matchesSelector(r,t)?[r]:[]:Z.find.matches(t,Z.grep(e,function(t){return 1===t.nodeType}))},Z.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(Z(t).filter(function(){for(e=0;n>e;e++)if(Z.contains(i[e],this))return!0}));for(e=0;n>e;e++)Z.find(t,i[e],r);return r=this.pushStack(n>1?Z.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(r(this,t||[],!1))},not:function(t){return this.pushStack(r(this,t||[],!0))},is:function(t){return!!r(this,"string"==typeof t&&ot.test(t)?Z(t):t||[],!1).length}});var ut,lt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=Z.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:lt.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||ut).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof Z?e[0]:e,Z.merge(this,Z.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:J,!0)),at.test(n[1])&&Z.isPlainObject(e))for(n in e)Z.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return r=J.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=J,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):Z.isFunction(t)?"undefined"!=typeof ut.ready?ut.ready(t):t(Z):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),Z.makeArray(t,this))};ct.prototype=Z.fn,ut=Z(J);var ft=/^(?:parents|prev(?:Until|All))/,ht={children:!0,contents:!0,next:!0,prev:!0};Z.extend({dir:function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&Z(t).is(n))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),Z.fn.extend({has:function(t){var e=Z(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(Z.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=ot.test(t)||"string"!=typeof t?Z(t,e||this.context):0;i>r;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&Z.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?Z.unique(o):o)},index:function(t){return t?"string"==typeof t?B.call(Z(t),this[0]):B.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(Z.unique(Z.merge(this.get(),Z(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Z.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Z.dir(t,"parentNode")},parentsUntil:function(t,e,n){return Z.dir(t,"parentNode",n)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return Z.dir(t,"nextSibling")},prevAll:function(t){return Z.dir(t,"previousSibling")},nextUntil:function(t,e,n){return Z.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return Z.dir(t,"previousSibling",n)},siblings:function(t){return Z.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return Z.sibling(t.firstChild)},contents:function(t){return t.contentDocument||Z.merge([],t.childNodes)}},function(t,e){Z.fn[t]=function(n,r){var i=Z.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Z.filter(r,i)),this.length>1&&(ht[t]||Z.unique(i),ft.test(t)&&i.reverse()),this.pushStack(i)}});var pt=/\S+/g,dt={};Z.Callbacks=function(t){t="string"==typeof t?dt[t]||o(t):Z.extend({},t);var e,n,r,i,a,s,u=[],l=!t.once&&[],c=function(o){for(e=t.memory&&o,n=!0,s=i||0,i=0,a=u.length,r=!0;u&&a>s;s++)if(u[s].apply(o[0],o[1])===!1&&t.stopOnFalse){e=!1;break}r=!1,u&&(l?l.length&&c(l.shift()):e?u=[]:f.disable())},f={add:function(){if(u){var n=u.length;!function o(e){Z.each(e,function(e,n){var r=Z.type(n);"function"===r?t.unique&&f.has(n)||u.push(n):n&&n.length&&"string"!==r&&o(n)})}(arguments),r?a=u.length:e&&(i=n,c(e))}return this},remove:function(){return u&&Z.each(arguments,function(t,e){for(var n;(n=Z.inArray(e,u,n))>-1;)u.splice(n,1),r&&(a>=n&&a--,s>=n&&s--)}),this},has:function(t){return t?Z.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],a=0,this},disable:function(){return u=l=e=void 0,this},disabled:function(){return!u},lock:function(){return l=void 0,e||f.disable(),this},locked:function(){return!l},fireWith:function(t,e){return!u||n&&!l||(e=e||[],e=[t,e.slice?e.slice():e],r?l.push(e):c(e)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!n}};return f},Z.extend({Deferred:function(t){var e=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return Z.Deferred(function(n){Z.each(e,function(e,o){var a=Z.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&Z.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?Z.extend(t,r):r}},i={};return r.pipe=r.then,Z.each(e,function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=U.call(arguments),a=o.length,s=1!==a||t&&Z.isFunction(t.promise)?a:0,u=1===s?t:Z.Deferred(),l=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?U.call(arguments):i,r===e?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);a>i;i++)o[i]&&Z.isFunction(o[i].promise)?o[i].promise().done(l(i,r,o)).fail(u.reject).progress(l(i,n,e)):--s;return s||u.resolveWith(r,o),u.promise()}});var vt;Z.fn.ready=function(t){return Z.ready.promise().done(t),this},Z.extend({isReady:!1,readyWait:1,holdReady:function(t){t?Z.readyWait++:Z.ready(!0)},ready:function(t){(t===!0?--Z.readyWait:Z.isReady)||(Z.isReady=!0,t!==!0&&--Z.readyWait>0||(vt.resolveWith(J,[Z]),Z.fn.triggerHandler&&(Z(J).triggerHandler("ready"),Z(J).off("ready"))))}}),Z.ready.promise=function(e){return vt||(vt=Z.Deferred(),"complete"===J.readyState?setTimeout(Z.ready):(J.addEventListener("DOMContentLoaded",a,!1),t.addEventListener("load",a,!1))),vt.promise(e)},Z.ready.promise();var mt=Z.access=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===Z.type(n)){i=!0;for(s in n)Z.access(t,e,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,Z.isFunction(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(Z(t),n)})),e))for(;u>s;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o};Z.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},s.uid=1,s.accepts=Z.acceptData,s.prototype={key:function(t){if(!s.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=s.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(r){e[this.expando]=n,Z.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var r,i=this.key(t),o=this.cache[i];if("string"==typeof e)o[e]=n;else if(Z.isEmptyObject(o))Z.extend(this.cache[i],e);else for(r in e)o[r]=e[r];return o},get:function(t,e){var n=this.cache[this.key(t)];return void 0===e?n:n[e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?(r=this.get(t,e),void 0!==r?r:this.get(t,Z.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=this.key(t),a=this.cache[o];if(void 0===e)this.cache[o]={};else{Z.isArray(e)?r=e.concat(e.map(Z.camelCase)):(i=Z.camelCase(e),e in a?r=[e,i]:(r=i,r=r in a?[r]:r.match(pt)||[])),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(t){return!Z.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var gt=new s,yt=new s,_t=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,bt=/([A-Z])/g;Z.extend({hasData:function(t){return yt.hasData(t)||gt.hasData(t)},data:function(t,e,n){return yt.access(t,e,n)},removeData:function(t,e){yt.remove(t,e)},_data:function(t,e,n){return gt.access(t,e,n)},_removeData:function(t,e){gt.remove(t,e)}}),Z.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=yt.get(o),1===o.nodeType&&!gt.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=Z.camelCase(r.slice(5)),u(o,r,i[r])));gt.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){yt.set(this,t)}):mt(this,function(e){var n,r=Z.camelCase(t);if(o&&void 0===e){if(n=yt.get(o,t),void 0!==n)return n;if(n=yt.get(o,r),void 0!==n)return n;if(n=u(o,r,void 0),void 0!==n)return n}else this.each(function(){var n=yt.get(this,r);yt.set(this,r,e),-1!==t.indexOf("-")&&void 0!==n&&yt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){yt.remove(this,t)})}}),Z.extend({queue:function(t,e,n){var r;return t?(e=(e||"fx")+"queue",r=gt.get(t,e),n&&(!r||Z.isArray(n)?r=gt.access(t,e,Z.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=Z.queue(t,e),r=n.length,i=n.shift(),o=Z._queueHooks(t,e),a=function(){Z.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return gt.get(t,n)||gt.access(t,n,{empty:Z.Callbacks("once memory").add(function(){gt.remove(t,[e+"queue",n])})})}}),Z.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?Z.queue(this[0],t):void 0===e?this:this.each(function(){var n=Z.queue(this,t,e);Z._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&Z.dequeue(this,t)})},dequeue:function(t){return this.each(function(){Z.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=Z.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)n=gt.get(o[a],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var wt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,xt=["Top","Right","Bottom","Left"],$t=function(t,e){return t=e||t,"none"===Z.css(t,"display")||!Z.contains(t.ownerDocument,t)},kt=/^(?:checkbox|radio)$/i;!function(){var t=J.createDocumentFragment(),e=t.appendChild(J.createElement("div")),n=J.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),X.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",X.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var St="undefined";X.focusinBubbles="onfocusin"in t;var Ct=/^key/,Et=/^(?:mouse|pointer|contextmenu)|click/,Tt=/^(?:focusinfocus|focusoutblur)$/,Ft=/^([^.]*)(?:\.(.+)|)$/;Z.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,p,d,v,m=gt.get(t);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=Z.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(e){return typeof Z!==St&&Z.event.triggered!==e.type?Z.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(pt)||[""],l=e.length;l--;)s=Ft.exec(e[l])||[],p=v=s[1],d=(s[2]||"").split(".").sort(),p&&(f=Z.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=Z.event.special[p]||{},c=Z.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Z.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=u[p])||(h=u[p]=[],h.delegateCount=0,f.setup&&f.setup.call(t,r,d,a)!==!1||t.addEventListener&&t.addEventListener(p,a,!1)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),Z.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,p,d,v,m=gt.hasData(t)&&gt.get(t);if(m&&(u=m.events)){for(e=(e||"").match(pt)||[""],l=e.length;l--;)if(s=Ft.exec(e[l])||[],p=v=s[1],d=(s[2]||"").split(".").sort(),p){for(f=Z.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,h=u[p]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));a&&!h.length&&(f.teardown&&f.teardown.call(t,d,m.handle)!==!1||Z.removeEvent(t,p,m.handle),delete u[p])}else for(p in u)Z.event.remove(t,p+e[l],n,r,!0);Z.isEmptyObject(u)&&(delete m.handle,gt.remove(t,"events"))}},trigger:function(e,n,r,i){var o,a,s,u,l,c,f,h=[r||J],p=G.call(e,"type")?e.type:e,d=G.call(e,"namespace")?e.namespace.split("."):[];if(a=s=r=r||J,3!==r.nodeType&&8!==r.nodeType&&!Tt.test(p+Z.event.triggered)&&(p.indexOf(".")>=0&&(d=p.split("."),p=d.shift(),d.sort()),l=p.indexOf(":")<0&&"on"+p,e=e[Z.expando]?e:new Z.Event(p,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=d.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:Z.makeArray(n,[e]),f=Z.event.special[p]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!Z.isWindow(r)){for(u=f.delegateType||p,Tt.test(u+p)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(r.ownerDocument||J)&&h.push(s.defaultView||s.parentWindow||t)}for(o=0;(a=h[o++])&&!e.isPropagationStopped();)e.type=o>1?u:f.bindType||p,c=(gt.get(a,"events")||{})[e.type]&&gt.get(a,"handle"),c&&c.apply(a,n),c=l&&a[l],c&&c.apply&&Z.acceptData(a)&&(e.result=c.apply(a,n),e.result===!1&&e.preventDefault());return e.type=p,i||e.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!Z.acceptData(r)||l&&Z.isFunction(r[p])&&!Z.isWindow(r)&&(s=r[l],s&&(r[l]=null),Z.event.triggered=p,r[p](),Z.event.triggered=void 0,s&&(r[l]=s)),e.result}},dispatch:function(t){t=Z.event.fix(t);var e,n,r,i,o,a=[],s=U.call(arguments),u=(gt.get(this,"events")||{})[t.type]||[],l=Z.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,t)!==!1){for(a=Z.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,r=((Z.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==t.type){for(r=[],n=0;s>n;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?Z(i,this).index(u)>=0:Z.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||J,r=n.documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[Z.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Et.test(i)?this.mouseHooks:Ct.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new Z.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=J),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==f()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===f()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&Z.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return Z.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=Z.extend(new Z.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?Z.event.trigger(i,null,e):Z.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},Z.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},Z.Event=function(t,e){return this instanceof Z.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?l:c):this.type=t,e&&Z.extend(this,e),this.timeStamp=t&&t.timeStamp||Z.now(),void(this[Z.expando]=!0)):new Z.Event(t,e)},Z.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=l,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=l,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=l,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},Z.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){Z.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return(!i||i!==r&&!Z.contains(r,i))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),X.focusinBubbles||Z.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){Z.event.simulate(e,t.target,Z.event.fix(t),!0)};Z.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=gt.access(r,e);i||r.addEventListener(t,n,!0),gt.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=gt.access(r,e)-1;i?gt.access(r,e,i):(r.removeEventListener(t,n,!0),gt.remove(r,e))}}}),Z.fn.extend({on:function(t,e,n,r,i){var o,a;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(a in t)this.on(a,e,n,t[a],i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&("string"==typeof e?(r=n,n=void 0):(r=n,n=e,e=void 0)),r===!1)r=c;else if(!r)return this;return 1===i&&(o=r,r=function(t){return Z().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=Z.guid++)),this.each(function(){Z.event.add(this,t,r,n,e)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,Z(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return(e===!1||"function"==typeof e)&&(n=e,e=void 0),n===!1&&(n=c),this.each(function(){Z.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){Z.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?Z.event.trigger(t,e,n,!0):void 0}});var jt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,At=/<([\w:]+)/,Dt=/<|&#?\w+;/,Mt=/<(?:script|style|link)/i,Ot=/checked\s*(?:[^=]|=\s*.checked.)/i,It=/^$|\/(?:java|ecma)script/i,Pt=/^true\/(.*)/,Nt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Rt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Rt.optgroup=Rt.option,Rt.tbody=Rt.tfoot=Rt.colgroup=Rt.caption=Rt.thead,Rt.th=Rt.td,Z.extend({clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),u=Z.contains(t.ownerDocument,t);if(!(X.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Z.isXMLDoc(t)))for(a=g(s),o=g(t),r=0,i=o.length;i>r;r++)y(o[r],a[r]);if(e)if(n)for(o=o||g(t),a=a||g(s),r=0,i=o.length;i>r;r++)m(o[r],a[r]);else m(t,s);return a=g(s,"script"),a.length>0&&v(a,!u&&g(t,"script")),s},buildFragment:function(t,e,n,r){for(var i,o,a,s,u,l,c=e.createDocumentFragment(),f=[],h=0,p=t.length;p>h;h++)if(i=t[h],i||0===i)if("object"===Z.type(i))Z.merge(f,i.nodeType?[i]:i);else if(Dt.test(i)){for(o=o||c.appendChild(e.createElement("div")),a=(At.exec(i)||["",""])[1].toLowerCase(),s=Rt[a]||Rt._default,o.innerHTML=s[1]+i.replace(jt,"<$1></$2>")+s[2],l=s[0];l--;)o=o.lastChild;Z.merge(f,o.childNodes),o=c.firstChild,o.textContent=""}else f.push(e.createTextNode(i));for(c.textContent="",h=0;i=f[h++];)if((!r||-1===Z.inArray(i,r))&&(u=Z.contains(i.ownerDocument,i),o=g(c.appendChild(i),"script"),u&&v(o),n))for(l=0;i=o[l++];)It.test(i.type||"")&&n.push(i);return c},cleanData:function(t){for(var e,n,r,i,o=Z.event.special,a=0;void 0!==(n=t[a]);a++){if(Z.acceptData(n)&&(i=n[gt.expando],i&&(e=gt.cache[i]))){if(e.events)for(r in e.events)o[r]?Z.event.remove(n,r):Z.removeEvent(n,r,e.handle);gt.cache[i]&&delete gt.cache[i]}delete yt.cache[n[yt.expando]]}}}),Z.fn.extend({text:function(t){return mt(this,function(t){return void 0===t?Z.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=h(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=h(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?Z.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||Z.cleanData(g(n)),n.parentNode&&(e&&Z.contains(n.ownerDocument,n)&&v(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Z.cleanData(g(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return Z.clone(this,t,e)})},html:function(t){return mt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Mt.test(t)&&!Rt[(At.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(jt,"<$1></$2>");try{for(;r>n;n++)e=this[n]||{},1===e.nodeType&&(Z.cleanData(g(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,Z.cleanData(g(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=W.apply([],t);var n,r,i,o,a,s,u=0,l=this.length,c=this,f=l-1,h=t[0],v=Z.isFunction(h);if(v||l>1&&"string"==typeof h&&!X.checkClone&&Ot.test(h))return this.each(function(n){var r=c.eq(n);v&&(t[0]=h.call(this,n,r.html())),r.domManip(t,e)});if(l&&(n=Z.buildFragment(t,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(i=Z.map(g(n,"script"),p),o=i.length;l>u;u++)a=n,u!==f&&(a=Z.clone(a,!0,!0),
o&&Z.merge(i,g(a,"script"))),e.call(this[u],a,u);if(o)for(s=i[i.length-1].ownerDocument,Z.map(i,d),u=0;o>u;u++)a=i[u],It.test(a.type||"")&&!gt.access(a,"globalEval")&&Z.contains(s,a)&&(a.src?Z._evalUrl&&Z._evalUrl(a.src):Z.globalEval(a.textContent.replace(Nt,"")))}return this}}),Z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){Z.fn[t]=function(t){for(var n,r=[],i=Z(t),o=i.length-1,a=0;o>=a;a++)n=a===o?this:this.clone(!0),Z(i[a])[e](n),V.apply(r,n.get());return this.pushStack(r)}});var Lt,zt={},qt=/^margin/,Ht=new RegExp("^("+wt+")(?!px)[a-z%]+$","i"),Ut=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)};!function(){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a.innerHTML="",i.appendChild(o);var e=t.getComputedStyle(a,null);n="1%"!==e.top,r="4px"===e.width,i.removeChild(o)}var n,r,i=J.documentElement,o=J.createElement("div"),a=J.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",X.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(a),t.getComputedStyle&&Z.extend(X,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==r&&e(),r},reliableMarginRight:function(){var e,n=a.appendChild(J.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",i.appendChild(o),e=!parseFloat(t.getComputedStyle(n,null).marginRight),i.removeChild(o),a.removeChild(n),e}}))}(),Z.swap=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=a[o];return i};var Wt=/^(none|table(?!-c[ea]).+)/,Vt=new RegExp("^("+wt+")(.*)$","i"),Bt=new RegExp("^([+-])=("+wt+")","i"),Yt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:"0",fontWeight:"400"},Gt=["Webkit","O","Moz","ms"];Z.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=w(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=Z.camelCase(e),u=t.style;return e=Z.cssProps[s]||(Z.cssProps[s]=$(u,s)),a=Z.cssHooks[e]||Z.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e]:(o=typeof n,"string"===o&&(i=Bt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(Z.css(t,e)),o="number"),null!=n&&n===n&&("number"!==o||Z.cssNumber[s]||(n+="px"),X.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u[e]=n)),void 0)}},css:function(t,e,n,r){var i,o,a,s=Z.camelCase(e);return e=Z.cssProps[s]||(Z.cssProps[s]=$(t.style,s)),a=Z.cssHooks[e]||Z.cssHooks[s],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=w(t,e,r)),"normal"===i&&e in Kt&&(i=Kt[e]),""===n||n?(o=parseFloat(i),n===!0||Z.isNumeric(o)?o||0:i):i}}),Z.each(["height","width"],function(t,e){Z.cssHooks[e]={get:function(t,n,r){return n?Wt.test(Z.css(t,"display"))&&0===t.offsetWidth?Z.swap(t,Yt,function(){return C(t,e,r)}):C(t,e,r):void 0},set:function(t,n,r){var i=r&&Ut(t);return k(t,n,r?S(t,e,r,"border-box"===Z.css(t,"boxSizing",!1,i),i):0)}}}),Z.cssHooks.marginRight=x(X.reliableMarginRight,function(t,e){return e?Z.swap(t,{display:"inline-block"},w,[t,"marginRight"]):void 0}),Z.each({margin:"",padding:"",border:"Width"},function(t,e){Z.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[t+xt[r]+e]=o[r]||o[r-2]||o[0];return i}},qt.test(t)||(Z.cssHooks[t+e].set=k)}),Z.fn.extend({css:function(t,e){return mt(this,function(t,e,n){var r,i,o={},a=0;if(Z.isArray(e)){for(r=Ut(t),i=e.length;i>a;a++)o[e[a]]=Z.css(t,e[a],!1,r);return o}return void 0!==n?Z.style(t,e,n):Z.css(t,e)},t,e,arguments.length>1)},show:function(){return E(this,!0)},hide:function(){return E(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){$t(this)?Z(this).show():Z(this).hide()})}}),Z.Tween=T,T.prototype={constructor:T,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Z.cssNumber[n]?"":"px")},cur:function(){var t=T.propHooks[this.prop];return t&&t.get?t.get(this):T.propHooks._default.get(this)},run:function(t){var e,n=T.propHooks[this.prop];return this.options.duration?this.pos=e=Z.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):T.propHooks._default.set(this),this}},T.prototype.init.prototype=T.prototype,T.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=Z.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){Z.fx.step[t.prop]?Z.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[Z.cssProps[t.prop]]||Z.cssHooks[t.prop])?Z.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},T.propHooks.scrollTop=T.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},Z.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},Z.fx=T.prototype.init,Z.fx.step={};var Xt,Jt,Qt=/^(?:toggle|show|hide)$/,Zt=new RegExp("^(?:([+-])=|)("+wt+")([a-z%]*)$","i"),te=/queueHooks$/,ee=[D],ne={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=Zt.exec(e),o=i&&i[3]||(Z.cssNumber[t]?"":"px"),a=(Z.cssNumber[t]||"px"!==o&&+r)&&Zt.exec(Z.css(n.elem,t)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,Z.style(n.elem,t,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};Z.Animation=Z.extend(O,{tweener:function(t,e){Z.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;i>r;r++)n=t[r],ne[n]=ne[n]||[],ne[n].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),Z.speed=function(t,e,n){var r=t&&"object"==typeof t?Z.extend({},t):{complete:n||!n&&e||Z.isFunction(t)&&t,duration:t,easing:n&&e||e&&!Z.isFunction(e)&&e};return r.duration=Z.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in Z.fx.speeds?Z.fx.speeds[r.duration]:Z.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){Z.isFunction(r.old)&&r.old.call(this),r.queue&&Z.dequeue(this,r.queue)},r},Z.fn.extend({fadeTo:function(t,e,n,r){return this.filter($t).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=Z.isEmptyObject(t),o=Z.speed(e,n,r),a=function(){var e=O(this,Z.extend({},t),o);(i||gt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=Z.timers,a=gt.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&te.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));(e||!n)&&Z.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=gt.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=Z.timers,a=r?r.length:0;for(n.finish=!0,Z.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;a>e;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),Z.each(["toggle","show","hide"],function(t,e){var n=Z.fn[e];Z.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(j(e,!0),t,r,i)}}),Z.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){Z.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),Z.timers=[],Z.fx.tick=function(){var t,e=0,n=Z.timers;for(Xt=Z.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||Z.fx.stop(),Xt=void 0},Z.fx.timer=function(t){Z.timers.push(t),t()?Z.fx.start():Z.timers.pop()},Z.fx.interval=13,Z.fx.start=function(){Jt||(Jt=setInterval(Z.fx.tick,Z.fx.interval))},Z.fx.stop=function(){clearInterval(Jt),Jt=null},Z.fx.speeds={slow:600,fast:200,_default:400},Z.fn.delay=function(t,e){return t=Z.fx?Z.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},function(){var t=J.createElement("input"),e=J.createElement("select"),n=e.appendChild(J.createElement("option"));t.type="checkbox",X.checkOn=""!==t.value,X.optSelected=n.selected,e.disabled=!0,X.optDisabled=!n.disabled,t=J.createElement("input"),t.value="t",t.type="radio",X.radioValue="t"===t.value}();var re,ie,oe=Z.expr.attrHandle;Z.fn.extend({attr:function(t,e){return mt(this,Z.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){Z.removeAttr(this,t)})}}),Z.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===St?Z.prop(t,e,n):(1===o&&Z.isXMLDoc(t)||(e=e.toLowerCase(),r=Z.attrHooks[e]||(Z.expr.match.bool.test(e)?ie:re)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=Z.find.attr(t,e),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void Z.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(pt);if(o&&1===t.nodeType)for(;n=o[i++];)r=Z.propFix[n]||n,Z.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!X.radioValue&&"radio"===e&&Z.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),ie={set:function(t,e,n){return e===!1?Z.removeAttr(t,n):t.setAttribute(n,n),n}},Z.each(Z.expr.match.bool.source.match(/\w+/g),function(t,e){var n=oe[e]||Z.find.attr;oe[e]=function(t,e,r){var i,o;return r||(o=oe[e],oe[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,oe[e]=o),i}});var ae=/^(?:input|select|textarea|button)$/i;Z.fn.extend({prop:function(t,e){return mt(this,Z.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[Z.propFix[t]||t]})}}),Z.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var r,i,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return o=1!==a||!Z.isXMLDoc(t),o&&(e=Z.propFix[e]||e,i=Z.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||ae.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),X.optSelected||(Z.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),Z.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Z.propFix[this.toLowerCase()]=this});var se=/[\t\r\n\f]/g;Z.fn.extend({addClass:function(t){var e,n,r,i,o,a,s="string"==typeof t&&t,u=0,l=this.length;if(Z.isFunction(t))return this.each(function(e){Z(this).addClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(pt)||[];l>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(se," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=Z.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,r,i,o,a,s=0===arguments.length||"string"==typeof t&&t,u=0,l=this.length;if(Z.isFunction(t))return this.each(function(e){Z(this).removeClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(pt)||[];l>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(se," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=t?Z.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):Z.isFunction(t)?this.each(function(n){Z(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,r=0,i=Z(this),o=t.match(pt)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(n===St||"boolean"===n)&&(this.className&&gt.set(this,"__className__",this.className),this.className=this.className||t===!1?"":gt.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(se," ").indexOf(e)>=0)return!0;return!1}});var ue=/\r/g;Z.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=Z.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,Z(this).val()):t,null==i?i="":"number"==typeof i?i+="":Z.isArray(i)&&(i=Z.map(i,function(t){return null==t?"":t+""})),e=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return e=Z.valHooks[i.type]||Z.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(ue,""):null==n?"":n)}}}),Z.extend({valHooks:{option:{get:function(t){var e=Z.find.attr(t,"value");return null!=e?e:Z.trim(Z.text(t))}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;s>u;u++)if(n=r[u],(n.selected||u===i)&&(X.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!Z.nodeName(n.parentNode,"optgroup"))){if(e=Z(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=Z.makeArray(e),a=i.length;a--;)r=i[a],(r.selected=Z.inArray(r.value,o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),Z.each(["radio","checkbox"],function(){Z.valHooks[this]={set:function(t,e){return Z.isArray(e)?t.checked=Z.inArray(Z(t).val(),e)>=0:void 0}},X.checkOn||(Z.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),Z.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){Z.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),Z.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var le=Z.now(),ce=/\?/;Z.parseJSON=function(t){return JSON.parse(t+"")},Z.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{n=new DOMParser,e=n.parseFromString(t,"text/xml")}catch(r){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&&Z.error("Invalid XML: "+t),e};var fe=/#.*$/,he=/([?&])_=[^&]*/,pe=/^(.*?):[ \t]*([^\r\n]*)$/gm,de=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ve=/^(?:GET|HEAD)$/,me=/^\/\//,ge=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ye={},_e={},be="*/".concat("*"),we=t.location.href,xe=ge.exec(we.toLowerCase())||[];Z.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we,type:"GET",isLocal:de.test(xe[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?N(N(t,Z.ajaxSettings),e):N(Z.ajaxSettings,t)},ajaxPrefilter:I(ye),ajaxTransport:I(_e),ajax:function(t,e){function n(t,e,n,a){var u,c,g,y,b,x=e;2!==_&&(_=2,s&&clearTimeout(s),r=void 0,o=a||"",w.readyState=t>0?4:0,u=t>=200&&300>t||304===t,n&&(y=R(f,w,n)),y=L(f,y,w,u),u?(f.ifModified&&(b=w.getResponseHeader("Last-Modified"),b&&(Z.lastModified[i]=b),b=w.getResponseHeader("etag"),b&&(Z.etag[i]=b)),204===t||"HEAD"===f.type?x="nocontent":304===t?x="notmodified":(x=y.state,c=y.data,g=y.error,u=!g)):(g=x,(t||!x)&&(x="error",0>t&&(t=0))),w.status=t,w.statusText=(e||x)+"",u?d.resolveWith(h,[c,x,w]):d.rejectWith(h,[w,x,g]),w.statusCode(m),m=void 0,l&&p.trigger(u?"ajaxSuccess":"ajaxError",[w,f,u?c:g]),v.fireWith(h,[w,x]),l&&(p.trigger("ajaxComplete",[w,f]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,u,l,c,f=Z.ajaxSetup({},e),h=f.context||f,p=f.context&&(h.nodeType||h.jquery)?Z(h):Z.event,d=Z.Deferred(),v=Z.Callbacks("once memory"),m=f.statusCode||{},g={},y={},_=0,b="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===_){if(!a)for(a={};e=pe.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===_?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return _||(t=y[n]=y[n]||t,g[t]=e),this},overrideMimeType:function(t){return _||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>_)for(e in t)m[e]=[m[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||b;return r&&r.abort(e),n(0,e),this}};if(d.promise(w).complete=v.add,w.success=w.done,w.error=w.fail,f.url=((t||f.url||we)+"").replace(fe,"").replace(me,xe[1]+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=Z.trim(f.dataType||"*").toLowerCase().match(pt)||[""],null==f.crossDomain&&(u=ge.exec(f.url.toLowerCase()),f.crossDomain=!(!u||u[1]===xe[1]&&u[2]===xe[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(xe[3]||("http:"===xe[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=Z.param(f.data,f.traditional)),P(ye,f,e,w),2===_)return w;l=Z.event&&f.global,l&&0===Z.active++&&Z.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ve.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(ce.test(i)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=he.test(i)?i.replace(he,"$1_="+le++):i+(ce.test(i)?"&":"?")+"_="+le++)),f.ifModified&&(Z.lastModified[i]&&w.setRequestHeader("If-Modified-Since",Z.lastModified[i]),Z.etag[i]&&w.setRequestHeader("If-None-Match",Z.etag[i])),(f.data&&f.hasContent&&f.contentType!==!1||e.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+be+"; q=0.01":""):f.accepts["*"]);for(c in f.headers)w.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(f.beforeSend.call(h,w,f)===!1||2===_))return w.abort();b="abort";for(c in{success:1,error:1,complete:1})w[c](f[c]);if(r=P(_e,f,e,w)){w.readyState=1,l&&p.trigger("ajaxSend",[w,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},f.timeout));try{_=1,r.send(g,n)}catch(x){if(!(2>_))throw x;n(-1,x)}}else n(-1,"No Transport");return w},getJSON:function(t,e,n){return Z.get(t,e,n,"json")},getScript:function(t,e){return Z.get(t,void 0,e,"script")}}),Z.each(["get","post"],function(t,e){Z[e]=function(t,n,r,i){return Z.isFunction(n)&&(i=i||r,r=n,n=void 0),Z.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),Z._evalUrl=function(t){return Z.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Z.fn.extend({wrapAll:function(t){var e;return Z.isFunction(t)?this.each(function(e){Z(this).wrapAll(t.call(this,e))}):(this[0]&&(e=Z(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return Z.isFunction(t)?this.each(function(e){Z(this).wrapInner(t.call(this,e))}):this.each(function(){var e=Z(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=Z.isFunction(t);return this.each(function(n){Z(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)}).end()}}),Z.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},Z.expr.filters.visible=function(t){return!Z.expr.filters.hidden(t)};var $e=/%20/g,ke=/\[\]$/,Se=/\r?\n/g,Ce=/^(?:submit|button|image|reset|file)$/i,Ee=/^(?:input|select|textarea|keygen)/i;Z.param=function(t,e){var n,r=[],i=function(t,e){e=Z.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(t)||t.jquery&&!Z.isPlainObject(t))Z.each(t,function(){i(this.name,this.value)});else for(n in t)z(n,t[n],e,i);return r.join("&").replace($e,"+")},Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Z.prop(this,"elements");return t?Z.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Z(this).is(":disabled")&&Ee.test(this.nodeName)&&!Ce.test(t)&&(this.checked||!kt.test(t))}).map(function(t,e){var n=Z(this).val();return null==n?null:Z.isArray(n)?Z.map(n,function(t){return{name:e.name,value:t.replace(Se,"\r\n")}}):{name:e.name,value:n.replace(Se,"\r\n")}}).get()}}),Z.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Te=0,Fe={},je={0:200,1223:204},Ae=Z.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Fe)Fe[t]()}),X.cors=!!Ae&&"withCredentials"in Ae,X.ajax=Ae=!!Ae,Z.ajaxTransport(function(t){var e;return X.cors||Ae&&!t.crossDomain?{send:function(n,r){var i,o=t.xhr(),a=++Te;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)o.setRequestHeader(i,n[i]);e=function(t){return function(){e&&(delete Fe[a],e=o.onload=o.onerror=null,"abort"===t?o.abort():"error"===t?r(o.status,o.statusText):r(je[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=e(),o.onerror=e("error"),e=Fe[a]=e("abort");try{o.send(t.hasContent&&t.data||null)}catch(s){if(e)throw s}},abort:function(){e&&e()}}:void 0}),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return Z.globalEval(t),t}}}),Z.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Z.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=Z("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),J.head.appendChild(e[0])},abort:function(){n&&n()}}}});var De=[],Me=/(=)\?(?=&|$)|\?\?/;Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=De.pop()||Z.expando+"_"+le++;return this[t]=!0,t}}),Z.ajaxPrefilter("json jsonp",function(e,n,r){var i,o,a,s=e.jsonp!==!1&&(Me.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Me.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=Z.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Me,"$1"+i):e.jsonp!==!1&&(e.url+=(ce.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||Z.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=t[i],t[i]=function(){a=arguments},r.always(function(){t[i]=o,e[i]&&(e.jsonpCallback=n.jsonpCallback,De.push(i)),a&&Z.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),Z.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||J;var r=at.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=Z.buildFragment([t],e,i),i&&i.length&&Z(i).remove(),Z.merge([],r.childNodes))};var Oe=Z.fn.load;Z.fn.load=function(t,e,n){if("string"!=typeof t&&Oe)return Oe.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return s>=0&&(r=Z.trim(t.slice(s)),t=t.slice(0,s)),Z.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&Z.ajax({url:t,type:i,dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?Z("<div>").append(Z.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},Z.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){Z.fn[e]=function(t){return this.on(e,t)}}),Z.expr.filters.animated=function(t){return Z.grep(Z.timers,function(e){return t===e.elem}).length};var Ie=t.document.documentElement;Z.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l,c=Z.css(t,"position"),f=Z(t),h={};"static"===c&&(t.style.position="relative"),s=f.offset(),o=Z.css(t,"top"),u=Z.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),Z.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+i),"using"in e?e.using.call(t,h):f.css(h)}},Z.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){Z.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return e=o.documentElement,Z.contains(e,r)?(typeof r.getBoundingClientRect!==St&&(i=r.getBoundingClientRect()),n=q(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===Z.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),Z.nodeName(t[0],"html")||(r=t.offset()),r.top+=Z.css(t[0],"borderTopWidth",!0),r.left+=Z.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-Z.css(n,"marginTop",!0),left:e.left-r.left-Z.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Ie;t&&!Z.nodeName(t,"html")&&"static"===Z.css(t,"position");)t=t.offsetParent;return t||Ie})}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r="pageYOffset"===n;Z.fn[e]=function(i){return mt(this,function(e,i,o){var a=q(e);return void 0===o?a?a[n]:e[i]:void(a?a.scrollTo(r?t.pageXOffset:o,r?o:t.pageYOffset):e[i]=o)},e,i,arguments.length,null)}}),Z.each(["top","left"],function(t,e){Z.cssHooks[e]=x(X.pixelPosition,function(t,n){return n?(n=w(t,e),Ht.test(n)?Z(t).position()[e]+"px":n):void 0})}),Z.each({Height:"height",Width:"width"},function(t,e){Z.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){Z.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return mt(this,function(e,n,r){var i;return Z.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?Z.css(e,n,a):Z.style(e,n,r,a)},e,o?r:void 0,o,null)}})}),Z.fn.size=function(){return this.length},Z.fn.andSelf=Z.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Z});var Pe=t.jQuery,Ne=t.$;return Z.noConflict=function(e){return t.$===Z&&(t.$=Ne),e&&t.jQuery===Z&&(t.jQuery=Pe),Z},typeof e===St&&(t.jQuery=t.$=Z),Z}),function(){function t(t,e){return t.set(e[0],e[1]),t}function e(t,e){return t.add(e),t}function n(t,e,n){var r=n?n.length:0;switch(r){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function r(t,e){for(var n=-1,r=t.length,i=-1,o=e.length,a=Array(r+o);++n<r;)a[n]=t[n];for(;++i<o;)a[n++]=e[i];return a}function i(t,e){for(var n=-1,r=t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function o(t,e){for(var n=t.length;n--&&e(t[n],n,t)!==!1;);return t}function a(t,e){for(var n=-1,r=t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function s(t,e){for(var n=-1,r=t.length,i=-1,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[++i]=a)}return o}function u(t,e){return!!t.length&&y(t,e,0)>-1}function l(t,e,n){for(var r=-1,i=t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function c(t,e){for(var n=-1,r=t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function f(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function h(t,e,n,r){var i=-1,o=t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function p(t,e,n,r){var i=t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function d(t,e){for(var n=-1,r=t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function v(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(s===V?a===a:n(a,s)))var s=a,u=o}return u}function m(t,e,n,r){var i;return n(t,function(t,n,o){return e(t,n,o)?(i=r?n:t,!1):void 0}),i}function g(t,e,n){for(var r=t.length,i=n?r:-1;n?i--:++i<r;)if(e(t[i],i,t))return i;return-1}function y(t,e,n){if(e!==e)return O(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function _(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function b(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function w(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);o!==V&&(n=n===V?o:n+o)}return n}function x(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function $(t,e){return c(e,function(e){return[e,t[e]]})}function k(t){return function(e){return t(e)}}function S(t,e){return c(e,function(e){return t[e]})}function C(t,e){for(var n=-1,r=t.length;++n<r&&y(e,t[n],0)>-1;);return n}function E(t,e){for(var n=t.length;n--&&y(e,t[n],0)>-1;);return n}function T(t){return t&&t.Object===Object?t:null}function F(t,e){if(t!==e){var n=null===t,r=t===V,i=t===t,o=null===e,a=e===V,s=e===e;if(t>e&&!o||!i||n&&!a&&s||r&&s)return 1;if(e>t&&!n||!s||o&&!r&&i||a&&i)return-1}return 0}function j(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var u=F(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}function A(t){return vn[t]}function D(t){return mn[t]}function M(t){return"\\"+_n[t]}function O(t,e,n){for(var r=t.length,i=e+(n?0:-1);n?i--:++i<r;){var o=t[i];if(o!==o)return i}return-1}function I(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function P(t,e){return t="number"==typeof t||be.test(t)?+t:-1,e=null==e?mt:e,t>-1&&t%1==0&&e>t}function N(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function R(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function L(t,e){for(var n=-1,r=t.length,i=-1,o=[];++n<r;)t[n]===e&&(t[n]=xt,o[++i]=n);return o}function z(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function q(t){if(!t||!sn.test(t))return t.length;for(var e=an.lastIndex=0;an.test(t);)e++;return e}function H(t){return t.match(an)}function U(t){return gn[t]}function W(T){function Nt(t){if($a(t)&&!tc(t)&&!(t instanceof Se)){if(t instanceof ke)return t;if(Su.call(t,"__wrapped__"))return wi(t)}return new ke(t)}function be(){}function ke(t,e){this.__wrapped__=t,
this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=V}function Se(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_t,this.__views__=[]}function Ce(){var t=new Se(this.__wrapped__);return t.__actions__=Cr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Cr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Cr(this.__views__),t}function Ee(){if(this.__filtered__){var t=new Se(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Te(){var t=this.__wrapped__.value(),e=this.__dir__,n=tc(t),r=0>e,i=n?t.length:0,o=ni(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,h=0,p=Ku(u,this.__takeCount__);if(!n||lt>i||i==u&&p==u)return mr(t,this.__actions__);var d=[];t:for(;u--&&p>h;){l+=e;for(var v=-1,m=t[l];++v<f;){var g=c[v],y=g.iteratee,_=g.type,b=y(m);if(_==ft)m=b;else if(!b){if(_==ct)continue t;break t}}d[h++]=m}return d}function Fe(){}function je(t,e){return De(t,e)&&delete t[e]}function Ae(t,e){if(el){var n=t[e];return n===dt?V:n}return Su.call(t,e)?t[e]:V}function De(t,e){return el?t[e]!==V:Su.call(t,e)}function Me(t,e,n){t[e]=el&&n===V?dt:n}function Oe(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ie(){this.__data__={hash:new Fe,map:Qu?new Qu:[],string:new Fe}}function Pe(t){var e=this.__data__;return ci(t)?je("string"==typeof t?e.string:e.hash,t):Qu?e.map["delete"](t):Ge(e.map,t)}function Ne(t){var e=this.__data__;return ci(t)?Ae("string"==typeof t?e.string:e.hash,t):Qu?e.map.get(t):Xe(e.map,t)}function Re(t){var e=this.__data__;return ci(t)?De("string"==typeof t?e.string:e.hash,t):Qu?e.map.has(t):Je(e.map,t)}function Le(t,e){var n=this.__data__;return ci(t)?Me("string"==typeof t?n.string:n.hash,t,e):Qu?n.map.set(t,e):Ze(n.map,t,e),this}function ze(t){var e=-1,n=t?t.length:0;for(this.__data__=new Oe;++e<n;)this.push(t[e])}function qe(t,e){var n=t.__data__;if(ci(e)){var r=n.__data__,i="string"==typeof e?r.string:r.hash;return i[e]===dt}return n.has(e)}function He(t){var e=this.__data__;if(ci(t)){var n=e.__data__,r="string"==typeof t?n.string:n.hash;r[t]=dt}else e.set(t,dt)}function Ue(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function We(){this.__data__={array:[],map:null}}function Ve(t){var e=this.__data__,n=e.array;return n?Ge(n,t):e.map["delete"](t)}function Be(t){var e=this.__data__,n=e.array;return n?Xe(n,t):e.map.get(t)}function Ye(t){var e=this.__data__,n=e.array;return n?Je(n,t):e.map.has(t)}function Ke(t,e){var n=this.__data__,r=n.array;r&&(r.length<lt-1?Ze(r,t,e):(n.array=null,n.map=new Oe(r)));var i=n.map;return i&&i.set(t,e),this}function Ge(t,e){var n=Qe(t,e);if(0>n)return!1;var r=t.length-1;return n==r?t.pop():qu.call(t,n,1),!0}function Xe(t,e){var n=Qe(t,e);return 0>n?V:t[n][1]}function Je(t,e){return Qe(t,e)>-1}function Qe(t,e){for(var n=t.length;n--;)if(oa(t[n][0],e))return n;return-1}function Ze(t,e,n){var r=Qe(t,e);0>r?t.push([e,n]):t[r][1]=n}function tn(t,e,n,r){return t===V||oa(t,$u[n])&&!Su.call(r,n)?e:t}function en(t,e,n){(n!==V&&!oa(t[e],n)||"number"==typeof e&&n===V&&!(e in t))&&(t[e]=n)}function nn(t,e,n){var r=t[e];(!oa(r,n)||oa(r,$u[e])&&!Su.call(t,e)||n===V&&!(e in t))&&(t[e]=n)}function rn(t,e){return t&&Er(e,as(e),t)}function an(t,e){for(var n=-1,r=null==t,i=e.length,o=Array(i);++n<i;)o[n]=r?V:ns(t,e[n]);return o}function vn(t,e,n){return t===t&&(n!==V&&(t=n>=t?t:n),e!==V&&(t=t>=e?t:e)),t}function mn(t,e,n,r,o,a){var s;if(n&&(s=o?n(t,r,o,a):n(t)),s!==V)return s;if(!xa(t))return t;var u=tc(t);if(u){if(s=ii(t),!e)return Cr(t,s)}else{var l=ei(t),c=l==Tt||l==Ft;if(l!=Dt&&l!=$t&&(!c||o))return dn[l]?ai(t,l,e):o?t:{};if(I(t))return o?t:{};if(s=oi(c?{}:t),!e)return Fr(t,rn(s,t))}a||(a=new Ue);var f=a.get(t);return f?f:(a.set(t,s),(u?i:En)(t,function(r,i){nn(s,i,mn(r,e,n,i,t,a))}),u?s:Fr(t,s))}function gn(t){var e=as(t),n=e.length;return function(r){if(null==r)return!n;for(var i=n;i--;){var o=e[i],a=t[o],s=r[o];if(s===V&&!(o in Object(r))||!a(s))return!1}return!0}}function yn(t,e,n){if("function"!=typeof t)throw new wu(pt);return zu(function(){t.apply(V,n)},e)}function _n(t,e,n,r){var i=-1,o=u,a=!0,s=t.length,f=[],h=e.length;if(!s)return f;n&&(e=c(e,k(n))),r?(o=l,a=!1):e.length>=lt&&(o=qe,a=!1,e=new ze(e));t:for(;++i<s;){var p=t[i],d=n?n(p):p;if(a&&d===d){for(var v=h;v--;)if(e[v]===d)continue t;f.push(p)}else o(e,d,r)||f.push(p)}return f}function xn(t,e){var n=!0;return cl(t,function(t,r,i){return n=!!e(t,r,i)}),n}function $n(t,e,n,r){var i=t.length;for(n=qa(n),0>n&&(n=-n>i?0:i+n),r=r===V||r>i?i:qa(r),0>r&&(r+=i),r=n>r?0:Ha(r);r>n;)t[n++]=e;return t}function kn(t,e){var n=[];return cl(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Sn(t,e,n,r){r||(r=[]);for(var i=-1,o=t.length;++i<o;){var a=t[i];ca(a)&&(n||tc(a)||ua(a))?e?Sn(a,e,n,r):f(r,a):n||(r[r.length]=a)}return r}function Cn(t,e){return null==t?t:hl(t,e,ss)}function En(t,e){return t&&hl(t,e,as)}function Tn(t,e){return t&&pl(t,e,as)}function An(t,e){return s(e,function(e){return _a(t[e])})}function Dn(t,e){e=li(e,t)?[e+""]:hr(e);for(var n=0,r=e.length;null!=t&&r>n;)t=t[e[n++]];return n&&n==r?t:V}function Mn(t,e){return Su.call(t,e)||"object"==typeof t&&e in t&&null===Pu(t)}function On(t,e){return e in Object(t)}function In(t,e,n){return t>=Ku(e,n)&&t<Yu(e,n)}function Pn(t,e,n){for(var r=n?l:u,i=t.length,o=i,a=Array(i),s=[];o--;){var f=t[o];o&&e&&(f=c(f,k(e))),a[o]=!n&&(e||f.length>=120)?new ze(o&&f):V}f=t[0];var h=-1,p=f.length,d=a[0];t:for(;++h<p;){var v=f[h],m=e?e(v):v;if(!(d?qe(d,m):r(s,m,n))){for(var o=i;--o;){var g=a[o];if(!(g?qe(g,m):r(t[o],m,n)))continue t}d&&d.push(m),s.push(v)}}return s}function Nn(t,e,r){li(e,t)||(e=hr(e),t=mi(t,e),e=Li(e));var i=null==t?t:t[e];return null==i?V:n(i,t,r)}function Rn(t,e,n,r,i){return t===e?!0:null==t||null==e||!xa(t)&&!$a(e)?t!==t&&e!==e:Ln(t,e,Rn,n,r,i)}function Ln(t,e,n,r,i,o){var a=tc(t),s=tc(e),u=kt,l=kt;a||(u=ei(t),u==$t?u=Dt:u!=Dt&&(a=Pa(t))),s||(l=ei(e),l==$t?l=Dt:l!=Dt&&(s=Pa(e)));var c=u==Dt&&!I(t),f=l==Dt&&!I(e),h=u==l;if(h&&!a&&!c)return Gr(t,e,u,n,r,i);var p=i&it;if(!p){var d=c&&Su.call(t,"__wrapped__"),v=f&&Su.call(e,"__wrapped__");if(d||v)return n(d?t.value():t,v?e.value():e,r,i,o)}return h?(o||(o=new Ue),(a?Kr:Xr)(t,e,n,r,i,o)):!1}function zn(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){s=n[i];var u=s[0],l=t[u],c=s[1];if(a&&s[2]){if(l===V&&!(u in t))return!1}else{var f=new Ue,h=r?r(l,c,u,t,e,f):V;if(!(h===V?Rn(c,l,r,rt|it,f):h))return!1}}return!0}function qn(t){var e=typeof t;return"function"==e?t:null==t?Gs:"object"==e?tc(t)?Bn(t[0],t[1]):Vn(t):ru(t)}function Hn(t){return Bu(Object(t))}function Un(t){t=null==t?t:Object(t);var e=[];for(var n in t)e.push(n);return e}function Wn(t,e){var n=-1,r=la(t)?Array(t.length):[];return cl(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Vn(t){var e=Zr(t);if(1==e.length&&e[0][2]){var n=e[0][0],r=e[0][1];return function(t){return null==t?!1:t[n]===r&&(r!==V||n in Object(t))}}return function(n){return n===t||zn(n,t,e)}}function Bn(t,e){return function(n){var r=ns(n,t);return r===V&&r===e?is(n,t):Rn(e,r,V,rt|it)}}function Yn(t,e,n,r,o){if(t!==e){var a=tc(e)||Pa(e)?V:ss(e);i(a||e,function(i,s){if(a&&(s=i,i=e[s]),xa(i))o||(o=new Ue),Kn(t,e,s,n,Yn,r,o);else{var u=r?r(t[s],i,s+"",t,e,o):V;u===V&&(u=i),en(t,s,u)}})}}function Kn(t,e,n,r,i,o,a){var s=t[n],u=e[n],l=a.get(u)||a.get(s);if(l)return void en(t,n,l);var c=o?o(s,u,n+"",t,e,a):V,f=c===V;f&&(c=u,tc(u)||Pa(u)?c=tc(s)?r?Cr(s):s:ca(s)?Cr(s):mn(u):Aa(u)||ua(u)?c=ua(s)?Wa(s):!xa(s)||r&&_a(s)?mn(u):r?mn(s):s:f=!1),a.set(u,c),f&&i(c,u,r,o,a),en(t,n,c)}function Gn(t,e,n){var r=-1,i=Qr();e=c(e.length?e:Array(1),function(t){return i(t)});var o=Wn(t,function(t,n,i){var o=c(e,function(e){return e(t)});return{criteria:o,index:++r,value:t}});return b(o,function(t,e){return j(t,e,n)})}function Xn(t,e){return t=Object(t),h(e,function(e,n){return n in t&&(e[n]=t[n]),e},{})}function Jn(t,e){var n={};return Cn(t,function(t,r){e(t,r)&&(n[r]=t)}),n}function Qn(t){return function(e){return null==e?V:e[t]}}function Zn(t){return function(e){return Dn(e,t)}}function tr(t,e){return er(t,e)}function er(t,e,n){var r=-1,i=e.length,o=t;for(n&&(o=c(t,function(t){return n(t)}));++r<i;)for(var a=0,s=e[r],u=n?n(s):s;(a=y(o,u,a))>-1;)o!==t&&qu.call(o,a,1),qu.call(t,a,1);return t}function nr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(r==n||i!=o){var o=i;if(P(i))qu.call(t,i,1);else if(li(i,t))delete t[i];else{var a=hr(i),s=mi(t,a);null!=s&&delete s[Li(a)]}}}return t}function rr(t,e){return t+Uu(Xu()*(e-t+1))}function ir(t,e,n,r){for(var i=-1,o=Yu(Hu((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a}function or(t,e,n,r){e=li(e,t)?[e+""]:hr(e);for(var i=-1,o=e.length,a=o-1,s=t;null!=s&&++i<o;){var u=e[i];if(xa(s)){var l=n;if(i!=a){var c=s[u];l=r?r(c,u,s):V,l===V&&(l=null==c?P(e[i+1])?[]:{}:c)}nn(s,u,l)}s=s[u]}return t}function ar(t,e,n){var r=-1,i=t.length;0>e&&(e=-e>i?0:i+e),n=n>i?i:n,0>n&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function sr(t,e){var n;return cl(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function ur(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e===e&&wt>=i){for(;i>r;){var o=r+i>>>1,a=t[o];(n?e>=a:e>a)&&null!==a?r=o+1:i=o}return i}return lr(t,e,Gs,n)}function lr(t,e,n,r){e=n(e);for(var i=0,o=t?t.length:0,a=e!==e,s=null===e,u=e===V;o>i;){var l=Uu((i+o)/2),c=n(t[l]),f=c!==V,h=c===c;if(a)var p=h||r;else p=s?h&&f&&(r||null!=c):u?h&&(r||f):null==c?!1:r?e>=c:e>c;p?i=l+1:o=l}return Ku(o,bt)}function cr(t){return fr(t)}function fr(t,e){for(var n=0,r=t.length,i=t[0],o=e?e(i):i,a=o,s=0,u=[i];++n<r;)i=t[n],o=e?e(i):i,oa(o,a)||(a=o,u[++s]=i);return u}function hr(t){return tc(t)?t:yi(t)}function pr(t,e,n){var r=-1,i=u,o=t.length,a=!0,s=[],c=s;if(n)a=!1,i=l;else if(o>=lt){var f=e?null:vl(t);if(f)return z(f);a=!1,i=qe,c=new ze}else c=e?[]:s;t:for(;++r<o;){var h=t[r],p=e?e(h):h;if(a&&p===p){for(var d=c.length;d--;)if(c[d]===p)continue t;e&&c.push(p),s.push(h)}else i(c,p,n)||(c!==s&&c.push(p),s.push(h))}return s}function dr(t,e){e=li(e,t)?[e+""]:hr(e),t=mi(t,e);var n=Li(e);return null!=t&&rs(t,n)?delete t[n]:!0}function vr(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ar(t,r?0:o,r?o+1:i):ar(t,r?o+1:0,r?i:o)}function mr(t,e){var n=t;return n instanceof Se&&(n=n.value()),h(e,function(t,e){return e.func.apply(e.thisArg,f([t],e.args))},n)}function gr(t,e,n){for(var r=-1,i=t.length;++r<i;)var o=o?f(_n(o,t[r],e,n),_n(t[r],o,e,n)):t[r];return o&&o.length?pr(o,e,n):[]}function yr(t){var e=t.constructor,n=new e(t.byteLength),r=new Mu(n);return r.set(new Mu(t)),n}function _r(e){var n=e.constructor;return h(R(e),t,new n)}function br(t){var e=t.constructor,n=new e(t.source,de.exec(t));return n.lastIndex=t.lastIndex,n}function wr(t){var n=t.constructor;return h(z(t),e,new n)}function xr(t){return Du?Object(al.call(t)):{}}function $r(t,e){var n=t.buffer,r=t.constructor;return new r(e?yr(n):n,t.byteOffset,t.length)}function kr(t,e,n){for(var r=n.length,i=-1,o=Yu(t.length-r,0),a=-1,s=e.length,u=Array(s+o);++a<s;)u[a]=e[a];for(;++i<r;)u[n[i]]=t[i];for(;o--;)u[a++]=t[i++];return u}function Sr(t,e,n){for(var r=-1,i=n.length,o=-1,a=Yu(t.length-i,0),s=-1,u=e.length,l=Array(a+u);++o<a;)l[o]=t[o];for(var c=o;++s<u;)l[c+s]=e[s];for(;++r<i;)l[c+n[r]]=t[o++];return l}function Cr(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Er(t,e,n){return Tr(t,e,n)}function Tr(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var a=e[i],s=r?r(n[a],t[a],a,n,t):t[a];nn(n,a,s)}return n}function Fr(t,e){return Er(t,yl(t),e)}function jr(t,e){return function(n,r){var i=e?e():{};if(r=Qr(r),tc(n))for(var o=-1,a=n.length;++o<a;){var s=n[o];t(i,s,r(s),n)}else cl(n,function(e,n,o){t(i,e,r(e),o)});return i}}function Ar(t){return Xo(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:V,a=i>2?n[2]:V;for(o="function"==typeof o?(i--,o):V,a&&ui(n[0],n[1],a)&&(o=3>i?V:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}function Dr(t,e){return function(n,r){if(null==n)return n;if(!la(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function Mr(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(n(o[u],u,o)===!1)break}return e}}function Or(t,e,n){function r(){var e=this&&this!==Fn&&this instanceof r?o:t;return e.apply(i?n:this,arguments)}var i=e&Y,o=Nr(t);return r}function Ir(t){return function(e){e=Ba(e);var n=sn.test(e)?H(e):V,r=n?n[0]:e.charAt(0),i=n?n.slice(1).join(""):e.slice(1);return r[t]()+i}}function Pr(t){return function(e){return h(Vs(Ss(e)),t,"")}}function Nr(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=ll(t.prototype),r=t.apply(n,e);return xa(r)?r:n}}function Rr(t,e,r){function i(){for(var a=arguments.length,s=a,u=Array(a),l=this&&this!==Fn&&this instanceof i?o:t,c=i.placeholder;s--;)u[s]=arguments[s];var f=3>a&&u[0]!==c&&u[a-1]!==c?[]:L(u,c);return a-=f.length,r>a?Vr(t,e,zr,c,V,u,f,V,V,r-a):n(l,this,u)}var o=Nr(t);return i}function Lr(t){return Xo(function(e){e=Sn(e);var n=e.length,r=n,i=ke.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new wu(pt);if(i&&!a&&"wrapper"==Jr(o))var a=new ke([],!0)}for(r=a?r:n;++r<n;){o=e[r];var s=Jr(o),u="wrapper"==s?ml(o):V;a=u&&fi(u[0])&&u[1]==(tt|X|Q|et)&&!u[4].length&&1==u[9]?a[Jr(u[0])].apply(a,u[3]):1==o.length&&fi(o)?a[s]():a.thru(o)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&tc(r)&&r.length>=lt)return a.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function zr(t,e,n,r,i,o,a,s,u,l){function c(){for(var y=arguments.length,_=y,b=Array(y);_--;)b[_]=arguments[_];if(r&&(b=kr(b,r,i)),o&&(b=Sr(b,o,a)),d||v){var w=c.placeholder,x=L(b,w);if(y-=x.length,l>y)return Vr(t,e,zr,w,n,b,x,s,u,l-y)}var $=h?n:this,k=p?$[t]:t;return s?b=gi(b,s):m&&b.length>1&&b.reverse(),f&&u<b.length&&(b.length=u),this&&this!==Fn&&this instanceof c&&(k=g||Nr(k)),k.apply($,b)}var f=e&tt,h=e&Y,p=e&K,d=e&X,v=e&J,m=e&nt,g=p?V:Nr(t);return c}function qr(t){return Xo(function(e){return e=c(Sn(e),Qr()),Xo(function(r){var i=this;return t(e,function(t){return n(t,i,r)})})})}function Hr(t,e,n){e=qa(e);var r=q(t);if(!e||r>=e)return"";var i=e-r;n=n===V?" ":n+"";var o=Ms(n,Hu(i/q(n)));return sn.test(n)?H(o).slice(0,i).join(""):o.slice(0,i)}function Ur(t,e,r,i){function o(){for(var e=-1,u=arguments.length,l=-1,c=i.length,f=Array(c+u),h=this&&this!==Fn&&this instanceof o?s:t;++l<c;)f[l]=i[l];for(;u--;)f[l++]=arguments[++e];return n(h,a?r:this,f)}var a=e&Y,s=Nr(t);return o}function Wr(t){return function(e,n,r){return r&&"number"!=typeof r&&ui(e,n,r)&&(n=r=V),e=Ua(e),e=e===e?e:0,n===V?(n=e,e=0):n=Ua(n)||0,r=r===V?n>e?1:-1:Ua(r)||0,ir(e,n,r,t)}}function Vr(t,e,n,r,i,o,a,s,u,l){var c=e&X,f=s?Cr(s):V,h=c?a:V,p=c?V:a,d=c?o:V,v=c?V:o;e|=c?Q:Z,e&=~(c?Z:Q),e&G||(e&=~(Y|K));var m=[t,e,i,d,h,v,p,f,u,l],g=n.apply(V,m);return fi(t)&&_l(g,m),g.placeholder=r,g}function Br(t){var e=_u[t];return function(t,n){if(t=Ua(t),n=qa(n)){var r=(Ba(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(Ba(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}function Yr(t,e,n,r,i,o,a,s){var u=e&K;if(!u&&"function"!=typeof t)throw new wu(pt);var l=r?r.length:0;if(l||(e&=~(Q|Z),r=i=V),a=a===V?a:Yu(qa(a),0),s=s===V?s:qa(s),l-=i?i.length:0,e&Z){var c=r,f=i;r=i=V}var h=u?V:ml(t),p=[t,e,n,r,i,c,f,o,a,s];if(h&&di(p,h),t=p[0],e=p[1],n=p[2],r=p[3],i=p[4],s=p[9]=null==p[9]?u?0:t.length:Yu(p[9]-l,0),!s&&e&(X|J)&&(e&=~(X|J)),e&&e!=Y)d=e==X||e==J?Rr(t,e,s):e!=Q&&e!=(Y|Q)||i.length?zr.apply(V,p):Ur(t,e,n,r);else var d=Or(t,e,n);var v=h?dl:_l;return v(d,p)}function Kr(t,e,n,r,i,o){var a=-1,s=i&it,u=i&rt,l=t.length,c=e.length;if(l!=c&&!(s&&c>l))return!1;var f=o.get(t);if(f)return f==e;var h=!0;for(o.set(t,e);++a<l;){var p=t[a],v=e[a];if(r)var m=s?r(v,p,a,e,t,o):r(p,v,a,t,e,o);if(m!==V){if(m)continue;h=!1;break}if(u){if(!d(e,function(t){return p===t||n(p,t,r,i,o)})){h=!1;break}}else if(p!==v&&!n(p,v,r,i,o)){h=!1;break}}return o["delete"](t),h}function Gr(t,e,n,r,i,o){switch(n){case Rt:return t.byteLength==e.byteLength&&r(new Mu(t),new Mu(e))?!0:!1;case St:case Ct:return+t==+e;case Et:return t.name==e.name&&t.message==e.message;case At:return t!=+t?e!=+e:t==+e;case Mt:case It:return t==e+"";case jt:var a=R;case Ot:var s=o&it;return a||(a=z),(s||t.size==e.size)&&r(a(t),a(e),i,o|rt);case Pt:return!!Du&&al.call(t)==al.call(e)}return!1}function Xr(t,e,n,r,i,o){var a=i&it,s=as(t),u=s.length,l=as(e),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var h=s[f];if(!(a?h in e:Mn(e,h)))return!1}var p=o.get(t);if(p)return p==e;var d=!0;o.set(t,e);for(var v=a;++f<u;){h=s[f];var m=t[h],g=e[h];if(r)var y=a?r(g,m,h,e,t,o):r(m,g,h,t,e,o);if(!(y===V?m===g||n(m,g,r,i,o):y)){d=!1;break}v||(v="constructor"==h)}if(d&&!v){var _=t.constructor,b=e.constructor;_!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o["delete"](t),d}function Jr(t){for(var e=t.name+"",n=ul[e],r=Su.call(ul,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Qr(){var t=Nt.iteratee||Xs;return t=t===Xs?qn:t,arguments.length?t(arguments[0],arguments[1]):t}function Zr(t){for(var e=vs(t),n=e.length;n--;)e[n][2]=pi(e[n][1]);return e}function ti(t,e){var n=null==t?V:t[e];return Ea(n)?n:V}function ei(t){return Tu.call(t)}function ni(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Ku(e,t+a);break;case"takeRight":t=Yu(t,e-a)}}return{start:t,end:e}}function ri(t,e,n){if(null==t)return!1;var r=n(t,e);return r||li(e)||(e=hr(e),t=mi(t,e),null!=t&&(e=Li(e),r=n(t,e))),r||wa(t&&t.length)&&P(e,t.length)&&(tc(t)||Oa(t)||ua(t))}function ii(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&Su.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function oi(t){var e=t.constructor;return ll(_a(e)?e.prototype:V)}function ai(t,e,n){var r=t.constructor;switch(e){case Rt:return yr(t);case St:case Ct:return new r(+t);case Lt:case zt:case qt:case Ht:case Ut:case Wt:case Vt:case Bt:case Yt:return $r(t,n);case jt:return _r(t);case At:case It:return new r(t);case Mt:return br(t);case Ot:return wr(t);case Pt:return xr(t)}}function si(t){var e=t?t.length:V;return wa(e)&&(tc(t)||Oa(t)||ua(t))?x(e,String):null}function ui(t,e,n){if(!xa(n))return!1;var r=typeof e;return("number"==r?la(n)&&P(e,n.length):"string"==r&&e in n)?oa(n[e],t):!1}function li(t,e){return"number"==typeof t?!0:!tc(t)&&(oe.test(t)||!ie.test(t)||null!=e&&t in Object(e))}function ci(t){var e=typeof t;return"number"==e||"boolean"==e||"string"==e&&"__proto__"!==t||null==t}function fi(t){var e=Jr(t),n=Nt[e];if("function"!=typeof n||!(e in Se.prototype))return!1;if(t===n)return!0;var r=ml(n);return!!r&&t===r[0]}function hi(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||$u;return t===n}function pi(t){return t===t&&!xa(t)}function di(t,e){var n=t[1],r=e[1],i=n|r,o=(Y|K|tt)>i,a=r==tt&&n==X||r==tt&&n==et&&t[7].length<=e[8]||r==(tt|et)&&e[7].length<=e[8]&&n==X;if(!o&&!a)return t;r&Y&&(t[2]=e[2],i|=n&Y?0:G);var s=e[3];if(s){var u=t[3];t[3]=u?kr(u,s,e[4]):Cr(s),t[4]=u?L(t[3],xt):Cr(e[4])}return s=e[5],s&&(u=t[5],t[5]=u?Sr(u,s,e[6]):Cr(s),t[6]=u?L(t[5],xt):Cr(e[6])),s=e[7],s&&(t[7]=Cr(s)),r&tt&&(t[8]=null==t[8]?e[8]:Ku(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function vi(t,e,n,r,i,o){return xa(t)&&xa(e)&&(o.set(e,t),Yn(t,e,V,vi,o)),t}function mi(t,e){return 1==e.length?t:ns(t,ar(e,0,-1))}function gi(t,e){for(var n=t.length,r=Ku(e.length,n),i=Cr(t);r--;){var o=e[r];t[r]=P(o,n)?i[o]:V}return t}function yi(t){var e=[];return Ba(t).replace(ae,function(t,n,r,i){e.push(r?i.replace(he,"$1"):n||t)}),e}function _i(t){return ca(t)?t:[]}function bi(t){return"function"==typeof t?t:Gs}function wi(t){if(t instanceof Se)return t.clone();var e=new ke(t.__wrapped__,t.__chain__);return e.__actions__=Cr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function xi(t,e){e=Yu(qa(e),0);var n=t?t.length:0;if(!n||1>e)return[];for(var r=0,i=-1,o=Array(Hu(n/e));n>r;)o[++i]=ar(t,r,r+=e);return o}function $i(t){for(var e=-1,n=t?t.length:0,r=-1,i=[];++e<n;){var o=t[e];o&&(i[++r]=o)}return i}function ki(t,e,n){var r=t?t.length:0;return r?(e=n||e===V?1:qa(e),ar(t,0>e?0:e,r)):[]}function Si(t,e,n){var r=t?t.length:0;return r?(e=n||e===V?1:qa(e),e=r-e,ar(t,0,0>e?0:e)):[]}function Ci(t,e){return t&&t.length?vr(t,Qr(e,3),!0,!0):[]}function Ei(t,e){return t&&t.length?vr(t,Qr(e,3),!0):[]}function Ti(t,e,n,r){var i=t?t.length:0;return i?(n&&"number"!=typeof n&&ui(t,e,n)&&(n=0,r=i),$n(t,e,n,r)):[]}function Fi(t,e){return t&&t.length?g(t,Qr(e,3)):-1}function ji(t,e){return t&&t.length?g(t,Qr(e,3),!0):-1}function Ai(t,e){var n=t?t.length:0;return n?Sn(c(t,Qr(e,3))):[]}function Di(t){var e=t?t.length:0;return e?Sn(t):[]}function Mi(t){var e=t?t.length:0;return e?Sn(t,!0):[]}function Oi(t){for(var e=-1,n=t?t.length:0,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r}function Ii(t){return t?t[0]:V}function Pi(t,e,n){var r=t?t.length:0;return r?(n=qa(n),0>n&&(n=Yu(r+n,0)),y(t,e,n)):-1}function Ni(t){return Si(t,1)}function Ri(t,e){return t?Vu.call(t,e):""}function Li(t){var e=t?t.length:0;return e?t[e-1]:V}function zi(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=r;if(n!==V&&(i=qa(n),i=(0>i?Yu(r+i,0):Ku(i,r-1))+1),e!==e)return O(t,i,!0);for(;i--;)if(t[i]===e)return i;return-1}function qi(t,e){return t&&t.length&&e&&e.length?tr(t,e):t}function Hi(t,e,n){return t&&t.length&&e&&e.length?er(t,e,Qr(n)):t}function Ui(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Qr(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return nr(t,i),n}function Wi(t){return t?Ju.call(t):t}function Vi(t,e,n){var r=t?t.length:0;return r?(n&&"number"!=typeof n&&ui(t,e,n)?(e=0,n=r):(e=null==e?0:qa(e),n=n===V?r:qa(n)),ar(t,e,n)):[]}function Bi(t,e){return ur(t,e)}function Yi(t,e,n){return lr(t,e,Qr(n))}function Ki(t,e){var n=t?t.length:0;if(n){var r=ur(t,e);if(n>r&&oa(t[r],e))return r}return-1}function Gi(t,e){return ur(t,e,!0)}function Xi(t,e,n){return lr(t,e,Qr(n),!0)}function Ji(t,e){var n=t?t.length:0;if(n){var r=ur(t,e,!0)-1;if(oa(t[r],e))return r}return-1}function Qi(t){return t&&t.length?cr(t):[]}function Zi(t,e){return t&&t.length?fr(t,Qr(e)):[]}function to(t){return ki(t,1)}function eo(t,e,n){return t&&t.length?(e=n||e===V?1:qa(e),ar(t,0,0>e?0:e)):[]}function no(t,e,n){var r=t?t.length:0;return r?(e=n||e===V?1:qa(e),e=r-e,ar(t,0>e?0:e,r)):[]}function ro(t,e){return t&&t.length?vr(t,Qr(e,3),!1,!0):[]}function io(t,e){return t&&t.length?vr(t,Qr(e,3)):[]}function oo(t){return t&&t.length?pr(t):[]}function ao(t,e){return t&&t.length?pr(t,Qr(e)):[]}function so(t,e){return t&&t.length?pr(t,V,e):[]}function uo(t){if(!t||!t.length)return[];var e=0;return t=s(t,function(t){return ca(t)?(e=Yu(t.length,e),!0):void 0}),x(e,function(e){return c(t,Qn(e))})}function lo(t,e){if(!t||!t.length)return[];var r=uo(t);return null==e?r:c(r,function(t){return n(e,V,t)})}function co(t,e){for(var n=-1,r=t?t.length:0,i=e?e.length:0,o={};++n<r;)or(o,t[n],i>n?e[n]:V);return o}function fo(t){var e=Nt(t);return e.__chain__=!0,e}function ho(t,e){return e(t),t}function po(t,e){return e(t)}function vo(){return fo(this)}function mo(){return new ke(this.value(),this.__chain__)}function go(t){return this.map(t).flatten()}function yo(){this.__values__===V&&(this.__values__=za(this.value()));var t=this.__index__>=this.__values__.length,e=t?V:this.__values__[this.__index__++];return{done:t,value:e}}function _o(){return this}function bo(t){for(var e,n=this;n instanceof be;){var r=wi(n);r.__index__=0,r.__values__=V,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e}function wo(){var t=this.__wrapped__;if(t instanceof Se){var e=t;return this.__actions__.length&&(e=new Se(this)),e=e.reverse(),e.__actions__.push({func:po,args:[Wi],thisArg:V}),new ke(e,this.__chain__)}return this.thru(Wi)}function xo(){return mr(this.__wrapped__,this.__actions__)}function $o(t,e,n){var r=tc(t)?a:xn;return n&&ui(t,e,n)&&(e=V),r(t,Qr(e,3))}function ko(t,e){var n=tc(t)?s:kn;return n(t,Qr(e,3))}function So(t,e){if(e=Qr(e,3),tc(t)){var n=g(t,e);return n>-1?t[n]:V}return m(t,e,cl)}function Co(t,e){if(e=Qr(e,3),tc(t)){var n=g(t,e,!0);return n>-1?t[n]:V}return m(t,e,fl)}function Eo(t,e){return"function"==typeof e&&tc(t)?i(t,e):cl(t,bi(e))}function To(t,e){return"function"==typeof e&&tc(t)?o(t,e):fl(t,bi(e))}function Fo(t,e,n,r){t=la(t)?t:_s(t),n=n&&!r?qa(n):0;var i=t.length;return 0>n&&(n=Yu(i+n,0)),Oa(t)?i>=n&&t.indexOf(e,n)>-1:!!i&&y(t,e,n)>-1}function jo(t,e){var n=tc(t)?c:Wn;return n(t,Qr(e,3))}function Ao(t,e,n,r){return null==t?[]:(tc(e)||(e=null==e?[]:[e]),n=r?V:n,tc(n)||(n=null==n?[]:[n]),Gn(t,e,n))}function Do(t,e,n){var r=tc(t)?h:_,i=arguments.length<3;return r(t,Qr(e,4),n,i,cl)}function Mo(t,e,n){var r=tc(t)?p:_,i=arguments.length<3;return r(t,Qr(e,4),n,i,fl)}function Oo(t,e){var n=tc(t)?s:kn;return e=Qr(e,3),n(t,function(t,n,r){return!e(t,n,r)})}function Io(t){var e=la(t)?t:_s(t),n=e.length;return n>0?e[rr(0,n-1)]:V}function Po(t,e){var n=-1,r=za(t),i=r.length,o=i-1;for(e=vn(qa(e),0,i);++n<e;){var a=rr(n,o),s=r[a];r[a]=r[n],r[n]=s}return r.length=e,r}function No(t){return Po(t,_t)}function Ro(t){if(null==t)return 0;if(la(t)){var e=t.length;return e&&Oa(t)?q(t):e}return as(t).length}function Lo(t,e,n){var r=tc(t)?d:sr;return n&&ui(t,e,n)&&(e=V),r(t,Qr(e,3))}function zo(t,e){if("function"!=typeof e)throw new wu(pt);return t=qa(t),function(){return--t<1?e.apply(this,arguments):void 0}}function qo(t,e,n){return e=n?V:e,e=t&&null==e?t.length:e,Yr(t,tt,V,V,V,V,e)}function Ho(t,e){var n;if("function"!=typeof e)throw new wu(pt);return t=qa(t),function(){return--t>0&&(n=e.apply(this,arguments)),1>=t&&(e=V),n}}function Uo(t,e,n){e=n?V:e;var r=Yr(t,X,V,V,V,V,V,e);return r.placeholder=Uo.placeholder,r}function Wo(t,e,n){e=n?V:e;var r=Yr(t,J,V,V,V,V,V,e);return r.placeholder=Wo.placeholder,r}function Vo(t,e,n){function r(){d&&Ou(d),c&&Ou(c),m=0,l=c=p=d=v=V}function i(e,n){n&&Ou(n),c=d=v=V,e&&(m=Vl(),f=t.apply(p,l),d||c||(l=p=V))}function o(){var t=e-(Vl()-h);0>=t||t>e?i(v,c):d=zu(o,t)}function a(){return(d&&v||c&&_)&&(f=t.apply(p,l)),r(),f}function s(){i(_,d)}function u(){if(l=arguments,h=Vl(),p=this,v=_&&(d||!g),y===!1)var n=g&&!d;else{c||g||(m=h);var r=y-(h-m),i=0>=r||r>y;i?(c&&(c=Ou(c)),m=h,f=t.apply(p,l)):c||(c=zu(s,r))}return i&&d?d=Ou(d):d||e===y||(d=zu(o,e)),n&&(i=!0,f=t.apply(p,l)),!i||d||c||(l=p=V),f}var l,c,f,h,p,d,v,m=0,g=!1,y=!1,_=!0;if("function"!=typeof t)throw new wu(pt);return e=Ua(e)||0,xa(n)&&(g=!!n.leading,y="maxWait"in n&&Yu(Ua(n.maxWait)||0,e),_="trailing"in n?!!n.trailing:_),u.cancel=r,u.flush=a,u}function Bo(t){return Yr(t,nt)}function Yo(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new wu(pt);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new Yo.Cache,n}function Ko(t){if("function"!=typeof t)throw new wu(pt);return function(){return!t.apply(this,arguments)}}function Go(t){return Ho(2,t)}function Xo(t,e){if("function"!=typeof t)throw new wu(pt);return e=Yu(e===V?t.length-1:qa(e),0),function(){for(var r=arguments,i=-1,o=Yu(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,r[0],a);case 2:return t.call(this,r[0],r[1],a)}var s=Array(e+1);for(i=-1;++i<e;)s[i]=r[i];return s[e]=a,n(t,this,s)}}function Jo(t){if("function"!=typeof t)throw new wu(pt);return function(e){return n(t,this,e)}}function Qo(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new wu(pt);return xa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Vo(t,e,{leading:r,maxWait:e,trailing:i})}function Zo(t){return qo(t,1)}function ta(t,e){return e=null==e?Gs:e,Jl(e,t)}function ea(t){return mn(t)}function na(t,e){return mn(t,!1,e)}function ra(t){return mn(t,!0)}function ia(t,e){return mn(t,!0,e)}function oa(t,e){return t===e||t!==t&&e!==e}function aa(t,e){return t>e}function sa(t,e){return t>=e}function ua(t){return ca(t)&&Su.call(t,"callee")&&(!Lu.call(t,"callee")||Tu.call(t)==$t)}function la(t){return null!=t&&!("function"==typeof t&&_a(t))&&wa(gl(t))}function ca(t){return $a(t)&&la(t)}function fa(t){return t===!0||t===!1||$a(t)&&Tu.call(t)==St}function ha(t){return $a(t)&&Tu.call(t)==Ct}function pa(t){return!!t&&1===t.nodeType&&$a(t)&&!Aa(t)}function da(t){return!$a(t)||_a(t.splice)?!Ro(t):!as(t).length}function va(t,e){return Rn(t,e)}function ma(t,e,n){n="function"==typeof n?n:V;var r=n?n(t,e):V;return r===V?Rn(t,e,n):!!r}function ga(t){return $a(t)&&"string"==typeof t.message&&Tu.call(t)==Et}function ya(t){return"number"==typeof t&&Wu(t)}function _a(t){var e=xa(t)?Tu.call(t):"";return e==Tt||e==Ft}function ba(t){return"number"==typeof t&&t==qa(t)}function wa(t){return"number"==typeof t&&t>-1&&t%1==0&&mt>=t}function xa(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function $a(t){return!!t&&"object"==typeof t}function ka(t,e){return t===e||zn(t,e,Zr(e))}function Sa(t,e,n){return n="function"==typeof n?n:V,zn(t,e,Zr(e),n)}function Ca(t){return ja(t)&&t!=+t}function Ea(t){return null==t?!1:_a(t)?ju.test(ku.call(t)):$a(t)&&(I(t)?ju:ye).test(t)}function Ta(t){return null===t}function Fa(t){return null==t}function ja(t){return"number"==typeof t||$a(t)&&Tu.call(t)==At}function Aa(t){if(!$a(t)||Tu.call(t)!=Dt||I(t))return!1;var e=$u;if("function"==typeof t.constructor&&(e=Pu(t)),null===e)return!0;var n=e.constructor;return"function"==typeof n&&n instanceof n&&ku.call(n)==Eu}function Da(t){return xa(t)&&Tu.call(t)==Mt}function Ma(t){return ba(t)&&t>=-mt&&mt>=t}function Oa(t){return"string"==typeof t||!tc(t)&&$a(t)&&Tu.call(t)==It}function Ia(t){return"symbol"==typeof t||$a(t)&&Tu.call(t)==Pt}function Pa(t){return $a(t)&&wa(t.length)&&!!pn[Tu.call(t)]}function Na(t){return t===V}function Ra(t,e){return e>t}function La(t,e){return e>=t}function za(t){if(!t)return[];if(la(t))return Oa(t)?H(t):Cr(t);if(Ru&&t[Ru])return N(t[Ru]());var e=ei(t),n=e==jt?R:e==Ot?z:_s;return n(t)}function qa(t){if(!t)return 0===t?t:0;if(t=Ua(t),t===vt||t===-vt){var e=0>t?-1:1;return e*gt}var n=t%1;return t===t?n?t-n:t:0}function Ha(t){return t?vn(qa(t),0,_t):0}function Ua(t){if(xa(t)){var e=_a(t.valueOf)?t.valueOf():t;t=xa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(le,"");var n=ge.test(t);return n||_e.test(t)?wn(t.slice(2),n?2:8):me.test(t)?yt:+t}function Wa(t){return Er(t,ss(t))}function Va(t){return vn(qa(t),-mt,mt)}function Ba(t){if("string"==typeof t)return t;if(null==t)return"";if(Ia(t))return Du?sl.call(t):"";var e=t+"";return"0"==e&&1/t==-vt?"-0":e}function Ya(t,e){var n=ll(t);return e?rn(n,e):n}function Ka(t,e){return m(t,Qr(e,3),En,!0)}function Ga(t,e){return m(t,Qr(e,3),Tn,!0)}function Xa(t,e){return null==t?t:hl(t,bi(e),ss)}function Ja(t,e){return null==t?t:pl(t,bi(e),ss)}function Qa(t,e){return t&&En(t,bi(e))}function Za(t,e){return t&&Tn(t,bi(e))}function ts(t){return null==t?[]:An(t,as(t))}function es(t){return null==t?[]:An(t,ss(t))}function ns(t,e,n){var r=null==t?V:Dn(t,e);return r===V?n:r}function rs(t,e){return ri(t,e,Mn)}function is(t,e){return ri(t,e,On)}function os(t,e,n){return h(as(t),function(r,i){var o=t[i];return e&&!n?Su.call(r,o)?r[o].push(i):r[o]=[i]:r[o]=i,r},{})}function as(t){var e=hi(t);if(!e&&!la(t))return Hn(t);
var n=si(t),r=!!n,i=n||[],o=i.length;for(var a in t)!Mn(t,a)||r&&("length"==a||P(a,o))||e&&"constructor"==a||i.push(a);return i}function ss(t){for(var e=-1,n=hi(t),r=Un(t),i=r.length,o=si(t),a=!!o,s=o||[],u=s.length;++e<i;){var l=r[e];a&&("length"==l||P(l,u))||"constructor"==l&&(n||!Su.call(t,l))||s.push(l)}return s}function us(t,e){var n={};return e=Qr(e,3),En(t,function(t,r,i){n[e(t,r,i)]=t}),n}function ls(t,e){var n={};return e=Qr(e,3),En(t,function(t,r,i){n[r]=e(t,r,i)}),n}function cs(t,e){return e=Qr(e,2),Jn(t,function(t,n){return!e(t,n)})}function fs(t,e){return null==t?{}:Jn(t,Qr(e,2))}function hs(t,e,n){if(li(e,t))r=null==t?V:t[e];else{e=hr(e);var r=ns(t,e);t=mi(t,e)}return r===V&&(r=n),_a(r)?r.call(t):r}function ps(t,e,n){return null==t?t:or(t,e,n)}function ds(t,e,n,r){return r="function"==typeof r?r:V,null==t?t:or(t,e,n,r)}function vs(t){return $(t,as(t))}function ms(t){return $(t,ss(t))}function gs(t,e,n){var r=tc(t)||Pa(t);if(e=Qr(e,4),null==n)if(r||xa(t)){var o=t.constructor;n=r?tc(t)?new o:[]:ll(_a(o)?o.prototype:V)}else n={};return(r?i:En)(t,function(t,r,i){return e(n,t,r,i)}),n}function ys(t,e){return null==t?!0:dr(t,e)}function _s(t){return t?S(t,as(t)):[]}function bs(t){return null==t?S(t,ss(t)):[]}function ws(t,e,n){return n===V&&(n=e,e=V),n!==V&&(n=Ua(n),n=n===n?n:0),e!==V&&(e=Ua(e),e=e===e?e:0),vn(Ua(t),e,n)}function xs(t,e,n){return e=Ua(e)||0,n===V?(n=e,e=0):n=Ua(n)||0,t=Ua(t),In(t,e,n)}function $s(t,e,n){if(n&&"boolean"!=typeof n&&ui(t,e,n)&&(e=n=V),n===V&&("boolean"==typeof e?(n=e,e=V):"boolean"==typeof t&&(n=t,t=V)),t===V&&e===V?(t=0,e=1):(t=Ua(t)||0,e===V?(e=t,t=0):e=Ua(e)||0),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Xu();return Ku(t+i*(e-t+bn("1e-"+((i+"").length-1))),e)}return rr(t,e)}function ks(t){return gc(Ba(t).toLowerCase())}function Ss(t){return t=Ba(t),t&&t.replace(we,A).replace(on,"")}function Cs(t,e,n){t=Ba(t),e="string"==typeof e?e:e+"";var r=t.length;return n=n===V?r:vn(qa(n),0,r),n-=e.length,n>=0&&t.indexOf(e,n)==n}function Es(t){return t=Ba(t),t&&te.test(t)?t.replace(Qt,D):t}function Ts(t){return t=Ba(t),t&&ue.test(t)?t.replace(se,"\\$&"):t}function Fs(t,e,n){t=Ba(t),e=qa(e);var r=q(t);if(!e||r>=e)return t;var i=(e-r)/2,o=Uu(i),a=Hu(i);return Hr("",o,n)+t+Hr("",a,n)}function js(t,e,n){return t=Ba(t),t+Hr(t,e,n)}function As(t,e,n){return t=Ba(t),Hr(t,e,n)+t}function Ds(t,e,n){return n||null==e?e=0:e&&(e=+e),t=Ba(t).replace(le,""),Gu(t,e||(ve.test(t)?16:10))}function Ms(t,e){t=Ba(t),e=qa(e);var n="";if(!t||1>e||e>mt)return n;do e%2&&(n+=t),e=Uu(e/2),t+=t;while(e);return n}function Os(){var t=arguments,e=Ba(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function Is(t,e,n){return Ba(t).split(e,n)}function Ps(t,e,n){return t=Ba(t),n=vn(qa(n),0,t.length),t.lastIndexOf(e,n)==n}function Ns(t,e,n){var r=Nt.templateSettings;n&&ui(t,e,n)&&(e=V),t=Ba(t),e=rc({},e,r,tn);var i,o,a=rc({},e.imports,r.imports,tn),s=as(a),u=S(a,s),l=0,c=e.interpolate||xe,f="__p += '",h=bu((e.escape||xe).source+"|"+c.source+"|"+(c===re?pe:xe).source+"|"+(e.evaluate||xe).source+"|$","g"),p="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++hn+"]")+"\n";t.replace(h,function(e,n,r,a,s,u){return r||(r=a),f+=t.slice(l,u).replace($e,M),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e}),f+="';\n";var d=e.variable;d||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(Kt,""):f).replace(Gt,"$1").replace(Xt,"$1;"),f="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=wc(function(){return Function(s,p+"return "+f).apply(V,u)});if(v.source=f,ga(v))throw v;return v}function Rs(t){return Ba(t).toLowerCase()}function Ls(t){return Ba(t).toUpperCase()}function zs(t,e,n){if(t=Ba(t),!t)return t;if(n||e===V)return t.replace(le,"");if(e+="",!e)return t;var r=H(t),i=H(e);return r.slice(C(r,i),E(r,i)+1).join("")}function qs(t,e,n){if(t=Ba(t),!t)return t;if(n||e===V)return t.replace(fe,"");if(e+="",!e)return t;var r=H(t);return r.slice(0,E(r,H(e))+1).join("")}function Hs(t,e,n){if(t=Ba(t),!t)return t;if(n||e===V)return t.replace(ce,"");if(e+="",!e)return t;var r=H(t);return r.slice(C(r,H(e))).join("")}function Us(t,e){var n=ot,r=at;if(xa(e)){var i="separator"in e?e.separator:i;n="length"in e?qa(e.length):n,r="omission"in e?Ba(e.omission):r}t=Ba(t);var o=t.length;if(sn.test(t)){var a=H(t);o=a.length}if(n>=o)return t;var s=n-q(r);if(1>s)return r;var u=a?a.slice(0,s).join(""):t.slice(0,s);if(i===V)return u+r;if(a&&(s+=u.length-s),Da(i)){if(t.slice(s).search(i)){var l,c=u;for(i.global||(i=bu(i.source,Ba(de.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;u=u.slice(0,f===V?s:f)}}else if(t.indexOf(i,s)!=s){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r}function Ws(t){return t=Ba(t),t&&Zt.test(t)?t.replace(Jt,U):t}function Vs(t,e,n){return t=Ba(t),e=n?V:e,e===V&&(e=cn.test(t)?ln:un),t.match(e)||[]}function Bs(t){var e=t?t.length:0,r=Qr();return t=e?c(t,function(t){if("function"!=typeof t[1])throw new wu(pt);return[r(t[0]),t[1]]}):[],Xo(function(r){for(var i=-1;++i<e;){var o=t[i];if(n(o[0],this,r))return n(o[1],this,r)}})}function Ys(t){return gn(mn(t,!0))}function Ks(t){return function(){return t}}function Gs(t){return t}function Xs(t){return $a(t)&&!tc(t)?Js(t):qn(t)}function Js(t){return Vn(mn(t,!0))}function Qs(t,e){return Bn(t,mn(e,!0))}function Zs(t,e,n){var r=as(e),o=An(e,r);null!=n||xa(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=An(e,as(e)));var a=xa(n)&&"chain"in n?n.chain:!0,s=_a(t);return i(o,function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__),i=n.__actions__=Cr(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,f([this.value()],arguments))})}),t}function tu(){return Fn._===this&&(Fn._=Fu),this}function eu(){}function nu(t){return t=qa(t),function(){return arguments[t]}}function ru(t){return li(t)?Qn(t):Zn(t)}function iu(t){return function(e){return null==t?V:Dn(t,e)}}function ou(t,e){if(t=qa(t),1>t||t>mt)return[];var n=_t,r=Ku(t,_t);e=bi(e),t-=_t;for(var i=x(r,e);++n<t;)e(n);return i}function au(t){return tc(t)?c(t,String):yi(t)}function su(t){var e=++Cu;return Ba(t)+e}function uu(t,e){var n;return t!==V&&(n=t),e!==V&&(n=n===V?e:n+e),n}function lu(t){return t&&t.length?v(t,Gs,aa):V}function cu(t,e){return t&&t.length?v(t,Qr(e),aa):V}function fu(t){return vu(t)/(t?t.length:0)}function hu(t){return t&&t.length?v(t,Gs,Ra):V}function pu(t,e){return t&&t.length?v(t,Qr(e),Ra):V}function du(t,e){var n;return t!==V&&(n=t),e!==V&&(n=n===V?e:n-e),n}function vu(t){return t&&t.length?w(t,Gs):V}function mu(t,e){return t&&t.length?w(t,Qr(e)):V}T=T?jn.defaults({},T,jn.pick(Fn,fn)):Fn;var gu=T.Date,yu=T.Error,_u=T.Math,bu=T.RegExp,wu=T.TypeError,xu=T.Array.prototype,$u=T.Object.prototype,ku=T.Function.prototype.toString,Su=$u.hasOwnProperty,Cu=0,Eu=ku.call(Object),Tu=$u.toString,Fu=Fn._,ju=bu("^"+ku.call(Su).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Au=T.Reflect,Du=T.Symbol,Mu=T.Uint8Array,Ou=T.clearTimeout,Iu=Au?Au.enumerate:V,Pu=Object.getPrototypeOf,Nu=Object.getOwnPropertySymbols,Ru="symbol"==typeof(Ru=Du&&Du.iterator)?Ru:V,Lu=$u.propertyIsEnumerable,zu=T.setTimeout,qu=xu.splice,Hu=_u.ceil,Uu=_u.floor,Wu=T.isFinite,Vu=xu.join,Bu=Object.keys,Yu=_u.max,Ku=_u.min,Gu=T.parseInt,Xu=_u.random,Ju=xu.reverse,Qu=ti(T,"Map"),Zu=ti(T,"Set"),tl=ti(T,"WeakMap"),el=ti(Object,"create"),nl=tl&&new tl,rl=Qu?ku.call(Qu):"",il=Zu?ku.call(Zu):"",ol=Du?Du.prototype:V,al=Du?ol.valueOf:V,sl=Du?ol.toString:V,ul={};Nt.templateSettings={escape:ee,evaluate:ne,interpolate:re,variable:"",imports:{_:Nt}};var ll=function(){function t(){}return function(e){if(xa(e)){t.prototype=e;var n=new t;t.prototype=V}return n||{}}}(),cl=Dr(En),fl=Dr(Tn,!0),hl=Mr(),pl=Mr(!0);Iu&&!Lu.call({valueOf:1},"valueOf")&&(Un=function(t){return N(Iu(t))});var dl=nl?function(t,e){return nl.set(t,e),t}:Gs,vl=Zu&&2===new Zu([1,2]).size?function(t){return new Zu(t)}:eu,ml=nl?function(t){return nl.get(t)}:eu,gl=Qn("length"),yl=Nu||function(){return[]};(Qu&&ei(new Qu)!=jt||Zu&&ei(new Zu)!=Ot)&&(ei=function(t){var e=Tu.call(t),n=e==Dt?t.constructor:null,r="function"==typeof n?ku.call(n):"";if(r){if(r==rl)return jt;if(r==il)return Ot}return e});var _l=function(){var t=0,e=0;return function(n,r){var i=Vl(),o=ut-(i-e);if(e=i,o>0){if(++t>=st)return n}else t=0;return dl(n,r)}}(),bl=Xo(function(t,e){return tc(t)||(t=null==t?[]:[Object(t)]),e=Sn(e),r(t,e)}),wl=Xo(function(t,e){return ca(t)?_n(t,Sn(e,!1,!0)):[]}),xl=Xo(function(t,e){var n=Li(e);return ca(n)&&(n=V),ca(t)?_n(t,Sn(e,!1,!0),Qr(n)):[]}),$l=Xo(function(t,e){var n=Li(e);return ca(n)&&(n=V),ca(t)?_n(t,Sn(e,!1,!0),V,n):[]}),kl=Xo(function(t){var e=c(t,_i);return e.length&&e[0]===t[0]?Pn(e):[]}),Sl=Xo(function(t){var e=Li(t),n=c(t,_i);return e===Li(n)?e=V:n.pop(),n.length&&n[0]===t[0]?Pn(n,Qr(e)):[]}),Cl=Xo(function(t){var e=Li(t),n=c(t,_i);return e===Li(n)?e=V:n.pop(),n.length&&n[0]===t[0]?Pn(n,V,e):[]}),El=Xo(qi),Tl=Xo(function(t,e){e=c(Sn(e),String);var n=an(t,e);return nr(t,e.sort(F)),n}),Fl=Xo(function(t){return pr(Sn(t,!1,!0))}),jl=Xo(function(t){var e=Li(t);return ca(e)&&(e=V),pr(Sn(t,!1,!0),Qr(e))}),Al=Xo(function(t){var e=Li(t);return ca(e)&&(e=V),pr(Sn(t,!1,!0),V,e)}),Dl=Xo(function(t,e){return ca(t)?_n(t,e):[]}),Ml=Xo(function(t){return gr(s(t,ca))}),Ol=Xo(function(t){var e=Li(t);return ca(e)&&(e=V),gr(s(t,ca),Qr(e))}),Il=Xo(function(t){var e=Li(t);return ca(e)&&(e=V),gr(s(t,ca),V,e)}),Pl=Xo(uo),Nl=Xo(function(t){var e=t.length,n=e>1?t[e-1]:V;return n="function"==typeof n?(t.pop(),n):V,lo(t,n)}),Rl=Xo(function(t){t=Sn(t);var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return an(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Se&&P(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:po,args:[i],thisArg:V}),new ke(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(V),t})):this.thru(i)}),Ll=jr(function(t,e,n){Su.call(t,n)?++t[n]:t[n]=1}),zl=jr(function(t,e,n){Su.call(t,n)?t[n].push(e):t[n]=[e]}),ql=Xo(function(t,e,r){var i=-1,o="function"==typeof e,a=li(e),s=la(t)?Array(t.length):[];return cl(t,function(t){var u=o?e:a&&null!=t?t[e]:V;s[++i]=u?n(u,t,r):Nn(t,e,r)}),s}),Hl=jr(function(t,e,n){t[n]=e}),Ul=jr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),Wl=Xo(function(t,e){if(null==t)return[];var n=e.length;return n>1&&ui(t,e[0],e[1])?e=[]:n>2&&ui(e[0],e[1],e[2])&&(e.length=1),Gn(t,Sn(e),[])}),Vl=gu.now,Bl=Xo(function(t,e,n){var r=Y;if(n.length){var i=L(n,Bl.placeholder);r|=Q}return Yr(t,r,e,n,i)}),Yl=Xo(function(t,e,n){var r=Y|K;if(n.length){var i=L(n,Yl.placeholder);r|=Q}return Yr(e,r,t,n,i)}),Kl=Xo(function(t,e){return yn(t,1,e)}),Gl=Xo(function(t,e,n){return yn(t,Ua(e)||0,n)}),Xl=Xo(function(t,e){e=c(Sn(e),Qr());var r=e.length;return Xo(function(i){for(var o=-1,a=Ku(i.length,r);++o<a;)i[o]=e[o].call(this,i[o]);return n(t,this,i)})}),Jl=Xo(function(t,e){var n=L(e,Jl.placeholder);return Yr(t,Q,V,e,n)}),Ql=Xo(function(t,e){var n=L(e,Ql.placeholder);return Yr(t,Z,V,e,n)}),Zl=Xo(function(t,e){return Yr(t,et,V,V,V,Sn(e))}),tc=Array.isArray,ec=Ar(function(t,e){Er(e,as(e),t)}),nc=Ar(function(t,e){Er(e,ss(e),t)}),rc=Ar(function(t,e,n,r){Tr(e,ss(e),t,r)}),ic=Ar(function(t,e,n,r){Tr(e,as(e),t,r)}),oc=Xo(function(t,e){return an(t,Sn(e))}),ac=Xo(function(t){return t.push(V,tn),n(rc,V,t)}),sc=Xo(function(t){return t.push(V,vi),n(cc,V,t)}),uc=Xo(Nn),lc=Ar(function(t,e,n){Yn(t,e,n)}),cc=Ar(function(t,e,n,r){Yn(t,e,n,r)}),fc=Xo(function(t,e){return null==t?{}:(e=c(Sn(e),String),Xn(t,_n(ss(t),e)))}),hc=Xo(function(t,e){return null==t?{}:Xn(t,Sn(e))}),pc=Pr(function(t,e,n){return e=e.toLowerCase(),t+(n?ks(e):e)}),dc=Pr(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),vc=Pr(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),mc=Ir("toLowerCase"),gc=Ir("toUpperCase"),yc=Pr(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),_c=Pr(function(t,e,n){return t+(n?" ":"")+ks(e)}),bc=Pr(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),wc=Xo(function(t,e){try{return n(t,V,e)}catch(r){return ga(r)?r:new yu(r)}}),xc=Xo(function(t,e){return i(Sn(e),function(e){t[e]=Bl(t[e],t)}),t}),$c=Lr(),kc=Lr(!0),Sc=Xo(function(t,e){return function(n){return Nn(n,t,e)}}),Cc=Xo(function(t,e){return function(n){return Nn(t,n,e)}}),Ec=qr(c),Tc=qr(a),Fc=qr(d),jc=Wr(),Ac=Wr(!0),Dc=Br("ceil"),Mc=Br("floor"),Oc=Br("round");return Nt.prototype=be.prototype,ke.prototype=ll(be.prototype),ke.prototype.constructor=ke,Se.prototype=ll(be.prototype),Se.prototype.constructor=Se,Fe.prototype=el?el(null):$u,Oe.prototype.clear=Ie,Oe.prototype["delete"]=Pe,Oe.prototype.get=Ne,Oe.prototype.has=Re,Oe.prototype.set=Le,ze.prototype.push=He,Ue.prototype.clear=We,Ue.prototype["delete"]=Ve,Ue.prototype.get=Be,Ue.prototype.has=Ye,Ue.prototype.set=Ke,Yo.Cache=Oe,Nt.after=zo,Nt.ary=qo,Nt.assign=ec,Nt.assignIn=nc,Nt.assignInWith=rc,Nt.assignWith=ic,Nt.at=oc,Nt.before=Ho,Nt.bind=Bl,Nt.bindAll=xc,Nt.bindKey=Yl,Nt.chain=fo,Nt.chunk=xi,Nt.compact=$i,Nt.concat=bl,Nt.cond=Bs,Nt.conforms=Ys,Nt.constant=Ks,Nt.countBy=Ll,Nt.create=Ya,Nt.curry=Uo,Nt.curryRight=Wo,Nt.debounce=Vo,Nt.defaults=ac,Nt.defaultsDeep=sc,Nt.defer=Kl,Nt.delay=Gl,Nt.difference=wl,Nt.differenceBy=xl,Nt.differenceWith=$l,Nt.drop=ki,Nt.dropRight=Si,Nt.dropRightWhile=Ci,Nt.dropWhile=Ei,Nt.fill=Ti,Nt.filter=ko,Nt.flatMap=Ai,Nt.flatten=Di,Nt.flattenDeep=Mi,Nt.flip=Bo,Nt.flow=$c,Nt.flowRight=kc,Nt.fromPairs=Oi,Nt.functions=ts,Nt.functionsIn=es,Nt.groupBy=zl,Nt.initial=Ni,Nt.intersection=kl,Nt.intersectionBy=Sl,Nt.intersectionWith=Cl,Nt.invert=os,Nt.invokeMap=ql,Nt.iteratee=Xs,Nt.keyBy=Hl,Nt.keys=as,Nt.keysIn=ss,Nt.map=jo,Nt.mapKeys=us,Nt.mapValues=ls,Nt.matches=Js,Nt.matchesProperty=Qs,Nt.memoize=Yo,Nt.merge=lc,Nt.mergeWith=cc,Nt.method=Sc,Nt.methodOf=Cc,Nt.mixin=Zs,Nt.negate=Ko,Nt.nthArg=nu,Nt.omit=fc,Nt.omitBy=cs,Nt.once=Go,Nt.orderBy=Ao,Nt.over=Ec,Nt.overArgs=Xl,Nt.overEvery=Tc,Nt.overSome=Fc,Nt.partial=Jl,Nt.partialRight=Ql,Nt.partition=Ul,Nt.pick=hc,Nt.pickBy=fs,Nt.property=ru,Nt.propertyOf=iu,Nt.pull=El,Nt.pullAll=qi,Nt.pullAllBy=Hi,Nt.pullAt=Tl,Nt.range=jc,Nt.rangeRight=Ac,Nt.rearg=Zl,Nt.reject=Oo,Nt.remove=Ui,Nt.rest=Xo,Nt.reverse=Wi,Nt.sampleSize=Po,Nt.set=ps,Nt.setWith=ds,Nt.shuffle=No,Nt.slice=Vi,Nt.sortBy=Wl,Nt.sortedUniq=Qi,Nt.sortedUniqBy=Zi,Nt.split=Is,Nt.spread=Jo,Nt.tail=to,Nt.take=eo,Nt.takeRight=no,Nt.takeRightWhile=ro,Nt.takeWhile=io,Nt.tap=ho,Nt.throttle=Qo,Nt.thru=po,Nt.toArray=za,Nt.toPairs=vs,Nt.toPairsIn=ms,Nt.toPath=au,Nt.toPlainObject=Wa,Nt.transform=gs,Nt.unary=Zo,Nt.union=Fl,Nt.unionBy=jl,Nt.unionWith=Al,Nt.uniq=oo,Nt.uniqBy=ao,Nt.uniqWith=so,Nt.unset=ys,Nt.unzip=uo,Nt.unzipWith=lo,Nt.values=_s,Nt.valuesIn=bs,Nt.without=Dl,Nt.words=Vs,Nt.wrap=ta,Nt.xor=Ml,Nt.xorBy=Ol,Nt.xorWith=Il,Nt.zip=Pl,Nt.zipObject=co,Nt.zipWith=Nl,Nt.extend=nc,Nt.extendWith=rc,Zs(Nt,Nt),Nt.add=uu,Nt.attempt=wc,Nt.camelCase=pc,Nt.capitalize=ks,Nt.ceil=Dc,Nt.clamp=ws,Nt.clone=ea,Nt.cloneDeep=ra,Nt.cloneDeepWith=ia,Nt.cloneWith=na,Nt.deburr=Ss,Nt.endsWith=Cs,Nt.eq=oa,Nt.escape=Es,Nt.escapeRegExp=Ts,Nt.every=$o,Nt.find=So,Nt.findIndex=Fi,Nt.findKey=Ka,Nt.findLast=Co,Nt.findLastIndex=ji,Nt.findLastKey=Ga,Nt.floor=Mc,Nt.forEach=Eo,Nt.forEachRight=To,Nt.forIn=Xa,Nt.forInRight=Ja,Nt.forOwn=Qa,Nt.forOwnRight=Za,Nt.get=ns,Nt.gt=aa,Nt.gte=sa,Nt.has=rs,Nt.hasIn=is,Nt.head=Ii,Nt.identity=Gs,Nt.includes=Fo,Nt.indexOf=Pi,Nt.inRange=xs,Nt.invoke=uc,Nt.isArguments=ua,Nt.isArray=tc,Nt.isArrayLike=la,Nt.isArrayLikeObject=ca,Nt.isBoolean=fa,Nt.isDate=ha,Nt.isElement=pa,Nt.isEmpty=da,Nt.isEqual=va,Nt.isEqualWith=ma,Nt.isError=ga,Nt.isFinite=ya,Nt.isFunction=_a,Nt.isInteger=ba,Nt.isLength=wa,Nt.isMatch=ka,Nt.isMatchWith=Sa,Nt.isNaN=Ca,Nt.isNative=Ea,Nt.isNil=Fa,Nt.isNull=Ta,Nt.isNumber=ja,Nt.isObject=xa,Nt.isObjectLike=$a,Nt.isPlainObject=Aa,Nt.isRegExp=Da,Nt.isSafeInteger=Ma,Nt.isString=Oa,Nt.isSymbol=Ia,Nt.isTypedArray=Pa,Nt.isUndefined=Na,Nt.join=Ri,Nt.kebabCase=dc,Nt.last=Li,Nt.lastIndexOf=zi,Nt.lowerCase=vc,Nt.lowerFirst=mc,Nt.lt=Ra,Nt.lte=La,Nt.max=lu,Nt.maxBy=cu,Nt.mean=fu,Nt.min=hu,Nt.minBy=pu,Nt.noConflict=tu,Nt.noop=eu,Nt.now=Vl,Nt.pad=Fs,Nt.padEnd=js,Nt.padStart=As,Nt.parseInt=Ds,Nt.random=$s,Nt.reduce=Do,Nt.reduceRight=Mo,Nt.repeat=Ms,Nt.replace=Os,Nt.result=hs,Nt.round=Oc,Nt.runInContext=W,Nt.sample=Io,Nt.size=Ro,Nt.snakeCase=yc,Nt.some=Lo,Nt.sortedIndex=Bi,Nt.sortedIndexBy=Yi,Nt.sortedIndexOf=Ki,Nt.sortedLastIndex=Gi,Nt.sortedLastIndexBy=Xi,Nt.sortedLastIndexOf=Ji,Nt.startCase=_c,Nt.startsWith=Ps,Nt.subtract=du,Nt.sum=vu,Nt.sumBy=mu,Nt.template=Ns,Nt.times=ou,Nt.toInteger=qa,Nt.toLength=Ha,Nt.toLower=Rs,Nt.toNumber=Ua,Nt.toSafeInteger=Va,Nt.toString=Ba,Nt.toUpper=Ls,Nt.trim=zs,Nt.trimEnd=qs,Nt.trimStart=Hs,Nt.truncate=Us,Nt.unescape=Ws,Nt.uniqueId=su,Nt.upperCase=bc,Nt.upperFirst=gc,Nt.each=Eo,Nt.eachRight=To,Nt.first=Ii,Zs(Nt,function(){var t={};return En(Nt,function(e,n){Su.call(Nt.prototype,n)||(t[n]=e)}),t}(),{chain:!1}),Nt.VERSION=B,i(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Nt[t].placeholder=Nt}),i(["drop","take"],function(t,e){Se.prototype[t]=function(n){var r=this.__filtered__;if(r&&!e)return new Se(this);n=n===V?1:Yu(qa(n),0);var i=this.clone();return r?i.__takeCount__=Ku(n,i.__takeCount__):i.__views__.push({size:Ku(n,_t),type:t+(i.__dir__<0?"Right":"")}),i},Se.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),i(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==ct||n==ht;Se.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Qr(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),i(["head","last"],function(t,e){var n="take"+(e?"Right":"");Se.prototype[t]=function(){return this[n](1).value()[0]}}),i(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Se.prototype[t]=function(){return this.__filtered__?new Se(this):this[n](1)}}),Se.prototype.compact=function(){return this.filter(Gs)},Se.prototype.find=function(t){return this.filter(t).head()},Se.prototype.findLast=function(t){return this.reverse().find(t)},Se.prototype.invokeMap=Xo(function(t,e){return"function"==typeof t?new Se(this):this.map(function(n){return Nn(n,t,e)})}),Se.prototype.reject=function(t){return t=Qr(t,3),this.filter(function(e){return!t(e)})},Se.prototype.slice=function(t,e){t=qa(t);var n=this;return n.__filtered__&&(t>0||0>e)?new Se(n):(0>t?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==V&&(e=qa(e),n=0>e?n.dropRight(-e):n.take(e-t)),n)},Se.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Se.prototype.toArray=function(){return this.take(_t)},En(Se.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Nt[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(Nt.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof Se,u=a[0],l=s||tc(e),c=function(t){var e=i.apply(Nt,f([t],a));return r&&h?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var h=this.__chain__,p=!!this.__actions__.length,d=o&&!h,v=s&&!p;if(!o&&l){e=v?e:new Se(this);var m=t.apply(e,a);return m.__actions__.push({func:po,args:[c],thisArg:V}),new ke(m,h)}return d&&v?t.apply(this,a):(m=this.thru(c),d?r?m.value()[0]:m.value():m)})}),i(["pop","push","shift","sort","splice","unshift"],function(t){var e=xu[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Nt.prototype[t]=function(){var t=arguments;return r&&!this.__chain__?e.apply(this.value(),t):this[n](function(n){return e.apply(n,t)})}}),En(Se.prototype,function(t,e){var n=Nt[e];if(n){var r=n.name+"",i=ul[r]||(ul[r]=[]);i.push({name:e,func:n})}}),ul[zr(V,K).name]=[{name:"wrapper",func:V}],Se.prototype.clone=Ce,Se.prototype.reverse=Ee,Se.prototype.value=Te,Nt.prototype.at=Rl,Nt.prototype.chain=vo,Nt.prototype.commit=mo,Nt.prototype.flatMap=go,Nt.prototype.next=yo,Nt.prototype.plant=bo,Nt.prototype.reverse=wo,Nt.prototype.toJSON=Nt.prototype.valueOf=Nt.prototype.value=xo,Ru&&(Nt.prototype[Ru]=_o),Nt}var V,B="4.0.1",Y=1,K=2,G=4,X=8,J=16,Q=32,Z=64,tt=128,et=256,nt=512,rt=1,it=2,ot=30,at="...",st=150,ut=16,lt=200,ct=1,ft=2,ht=3,pt="Expected a function",dt="__lodash_hash_undefined__",vt=1/0,mt=9007199254740991,gt=1.7976931348623157e308,yt=NaN,_t=4294967295,bt=_t-1,wt=_t>>>1,xt="__lodash_placeholder__",$t="[object Arguments]",kt="[object Array]",St="[object Boolean]",Ct="[object Date]",Et="[object Error]",Tt="[object Function]",Ft="[object GeneratorFunction]",jt="[object Map]",At="[object Number]",Dt="[object Object]",Mt="[object RegExp]",Ot="[object Set]",It="[object String]",Pt="[object Symbol]",Nt="[object WeakMap]",Rt="[object ArrayBuffer]",Lt="[object Float32Array]",zt="[object Float64Array]",qt="[object Int8Array]",Ht="[object Int16Array]",Ut="[object Int32Array]",Wt="[object Uint8Array]",Vt="[object Uint8ClampedArray]",Bt="[object Uint16Array]",Yt="[object Uint32Array]",Kt=/\b__p \+= '';/g,Gt=/\b(__p \+=) '' \+/g,Xt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jt=/&(?:amp|lt|gt|quot|#39|#96);/g,Qt=/[&<>"'`]/g,Zt=RegExp(Jt.source),te=RegExp(Qt.source),ee=/<%-([\s\S]+?)%>/g,ne=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oe=/^\w*$/,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,se=/[\\^$.*+?()[\]{}|]/g,ue=RegExp(se.source),le=/^\s+|\s+$/g,ce=/^\s+/,fe=/\s+$/,he=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,ve=/^0x/i,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,_e=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,xe=/($^)/,$e=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe23",Ce="\\u20d0-\\u20f0",Ee="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Fe="\\xac\\xb1\\xd7\\xf7",je="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ae="\\u2018\\u2019\\u201c\\u201d",De=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",Ie=Fe+je+Ae+De,Pe="["+ke+"]",Ne="["+Ie+"]",Re="["+Se+Ce+"]",Le="\\d+",ze="["+Ee+"]",qe="["+Te+"]",He="[^"+ke+Ie+Le+Ee+Te+Me+"]",Ue="\\ud83c[\\udffb-\\udfff]",We="(?:"+Re+"|"+Ue+")",Ve="[^"+ke+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ye="[\\ud800-\\udbff][\\udc00-\\udfff]",Ke="["+Me+"]",Ge="\\u200d",Xe="(?:"+qe+"|"+He+")",Je="(?:"+Ke+"|"+He+")",Qe=We+"?",Ze="["+Oe+"]?",tn="(?:"+Ge+"(?:"+[Ve,Be,Ye].join("|")+")"+Ze+Qe+")*",en=Ze+Qe+tn,nn="(?:"+[ze,Be,Ye].join("|")+")"+en,rn="(?:"+[Ve+Re+"?",Re,Be,Ye,Pe].join("|")+")",on=RegExp(Re,"g"),an=RegExp(Ue+"(?="+Ue+")|"+rn+en,"g"),sn=RegExp("["+Ge+ke+Se+Ce+Oe+"]"),un=/[a-zA-Z0-9]+/g,ln=RegExp([Ke+"?"+qe+"+(?="+[Ne,Ke,"$"].join("|")+")",Je+"+(?="+[Ne,Ke+Xe,"$"].join("|")+")",Ke+"?"+Xe+"+",Ke+"+",Le,nn].join("|"),"g"),cn=/[a-z][A-Z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fn=["Array","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hn=-1,pn={};pn[Lt]=pn[zt]=pn[qt]=pn[Ht]=pn[Ut]=pn[Wt]=pn[Vt]=pn[Bt]=pn[Yt]=!0,pn[$t]=pn[kt]=pn[Rt]=pn[St]=pn[Ct]=pn[Et]=pn[Tt]=pn[jt]=pn[At]=pn[Dt]=pn[Mt]=pn[Ot]=pn[It]=pn[Nt]=!1;var dn={};dn[$t]=dn[kt]=dn[Rt]=dn[St]=dn[Ct]=dn[Lt]=dn[zt]=dn[qt]=dn[Ht]=dn[Ut]=dn[jt]=dn[At]=dn[Dt]=dn[Mt]=dn[Ot]=dn[It]=dn[Pt]=dn[Wt]=dn[Vt]=dn[Bt]=dn[Yt]=!0,dn[Et]=dn[Tt]=dn[Nt]=!1;var vn={"À":"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"},mn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},gn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},yn={"function":!0,object:!0},_n={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bn=parseFloat,wn=parseInt,xn=yn[typeof exports]&&exports&&!exports.nodeType?exports:null,$n=yn[typeof module]&&module&&!module.nodeType?module:null,kn=T(xn&&$n&&"object"==typeof global&&global),Sn=T(yn[typeof self]&&self),Cn=T(yn[typeof window]&&window),En=$n&&$n.exports===xn?xn:null,Tn=T(yn[typeof this]&&this),Fn=kn||Cn!==(Tn&&Tn.window)&&Cn||Sn||Tn||Function("return this")(),jn=W();(Cn||Sn||{})._=jn,"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return jn}):xn&&$n?(En&&(($n.exports=jn)._=jn),xn._=jn):Fn._=jn}.call(this),function(t,e,n,r){function i(t){return String(t).replace(/[&<>"'\/]/g,function(t){return s[t]})}e||(e={},t?t[r]=e:n[r]=e);var o,a,s,u={},l={},c=/[[\]{}()*+?.\\|^$\-,&#\s]/g;s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},e.define=function(t){var e,n,r,s,f=[];for(e in t){r=t[e].codes;for(n in r)s=r[n],u[s]=e,u[i(s)]=e,0==n&&(l[s]=e)}for(s in u)f.push("("+s.replace(c,"\\$&")+")");a=new RegExp(f.join("|"),"g"),o=t},e.replace=function(t,n){return t.replace(a,function(t){var r=u[t];return(n||e.tpl)(r,t,o[r].title)})},e.toString=function(t){var n,r,i="";for(n in l)r=l[n],i+=(t||e.tpl)(r,n,o[r].title);return i},e.tpl=function(t,e,n){return'<span class="emoticon emoticon-'+t+'" title="'+n+'">'+e+"</span>"}}("undefined"!=typeof jQuery?jQuery:null,"undefined"!=typeof exports?exports:null,window,"emoticons"),function(t){function e(t,n){var r;if(t&&n&&(e.locale[t]=n),r=t=t||"en",n=n||e.locale[r=e.Utils.getFallbackLocale(t)],!n)throw new Error("Plural Function not found for locale: "+t);this.pluralFunc=n,this.locale=t,this.fallbackLocale=r}c=function(t){if(!t)throw new Error("MessageFormat: No data passed to function.")},n=function(t,e,n){if(isNaN(t[e]))throw new Error("MessageFormat: `"+e+"` isnt a number.");return t[e]-(n||0)},v=function(t,e){return c(t),t[e]},p=function(t,n,r,i,o){return c(t),t[n]in o?o[t[n]]:(n=e.locale[i](t[n]-r),n in o?o[n]:o.other)},s=function(t,e,n){return c(t),t[e]in n?n[t[e]]:n.other},e.locale={en:function(t){return 1===t?"one":"other"}},e.SafeString=function(t){this.string=t},e.SafeString.prototype.toString=function(){return this.string.toString()},e.Utils={numSub:function(t,e,n,r){var i=t.replace(/(^|[^\\])#/g,'$1"+n('+e+","+n+(r?","+r:"")+')+"');return i.replace(/^""\+/,"").replace(/\+""$/,"")},escapeExpression:function(t){var n={"\n":"\\n",'"':'\\"'},r=/[\n"]/g,i=/[\n"]/,o=function(t){return n[t]||"&amp;"};return t instanceof e.SafeString?t.toString():null===t||t===!1?"":i.test(t)?t.replace(r,o):t},getFallbackLocale:function(t){for(var n=t.indexOf("-")>=0?"-":"_";!e.locale.hasOwnProperty(t);)if(t=t.substring(0,t.lastIndexOf(n)),0===t.length)return null;return t}};var r=function(){function t(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E-\x1F\x80-\uFFFF]/g,escape)+'"'}var e={parse:function(e,n){function r(t){F>E||(E>F&&(F=E,j=[]),j.push(t))}function i(){var t,e;return e=E,t=o(),null!==t&&(t=function(t,e){return{type:"program",program:e}}(e,t)),null===t&&(E=e),t}function o(){var t,e,n,r,i;if(r=E,i=E,t=m(),null!==t){for(e=[],n=a();null!==n;)e.push(n),n=a();null!==e?t=[t,e]:(t=null,E=i)}else t=null,E=i;return null!==t&&(t=function(t,e,n){var r=[];e&&e.val&&r.push(e);for(var i in n)n.hasOwnProperty(i)&&r.push(n[i]);return{type:"messageFormatPattern",statements:r}}(r,t[0],t[1])),null===t&&(E=r),t}function a(){var t,n,i,o,a,u,l,c;return l=E,c=E,123===e.charCodeAt(E)?(t="{",E++):(t=null,0===T&&r('"{"')),null!==t?(n=x(),null!==n?(i=s(),null!==i?(o=x(),null!==o?(125===e.charCodeAt(E)?(a="}",E++):(a=null,0===T&&r('"}"')),null!==a?(u=m(),null!==u?t=[t,n,i,o,a,u]:(t=null,E=c)):(t=null,E=c)):(t=null,E=c)):(t=null,E=c)):(t=null,E=c)):(t=null,E=c),null!==t&&(t=function(t,e,n){var r=[];return e&&r.push(e),n&&n.val&&r.push(n),{type:"messageFormatPatternRight",statements:r}}(l,t[2],t[5])),null===t&&(E=l),t}function s(){var t,n,i,o,a,s;return o=E,a=E,t=g(),null!==t?(s=E,44===e.charCodeAt(E)?(n=",",E++):(n=null,0===T&&r('","')),null!==n?(i=u(),null!==i?n=[n,i]:(n=null,E=s)):(n=null,E=s),n=null!==n?n:"",null!==n?t=[t,n]:(t=null,E=a)):(t=null,E=a),null!==t&&(t=function(t,e,n){var r={type:"messageFormatElement",argumentIndex:e};return n&&n.length?r.elementFormat=n[1]:r.output=!0,r}(o,t[0],t[1])),null===t&&(E=o),t}function u(){var t,n,i,o,a,s,u,f,h;return f=E,h=E,t=x(),null!==t?("plural"===e.substr(E,6)?(n="plural",E+=6):(n=null,0===T&&r('"plural"')),null!==n?(i=x(),null!==i?(44===e.charCodeAt(E)?(o=",",E++):(o=null,0===T&&r('","')),null!==o?(a=x(),null!==a?(s=l(),null!==s?(u=x(),null!==u?t=[t,n,i,o,a,s,u]:(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h),null!==t&&(t=function(t,e,n){return{type:"elementFormat",key:e,val:n.val}}(f,t[1],t[5])),null===t&&(E=f),null===t&&(f=E,h=E,t=x(),null!==t?("select"===e.substr(E,6)?(n="select",E+=6):(n=null,0===T&&r('"select"')),null!==n?(i=x(),null!==i?(44===e.charCodeAt(E)?(o=",",E++):(o=null,0===T&&r('","')),null!==o?(a=x(),null!==a?(s=c(),null!==s?(u=x(),null!==u?t=[t,n,i,o,a,s,u]:(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h),null!==t&&(t=function(t,e,n){return{type:"elementFormat",key:e,val:n.val}}(f,t[1],t[5])),null===t&&(E=f)),t}function l(){var t,e;return e=E,t=f(),null!==t&&(t=function(t,e){return{type:"pluralStyle",val:e}}(e,t)),null===t&&(E=e),t}function c(){var t,e;return e=E,t=p(),null!==t&&(t=function(t,e){return{type:"selectStyle",val:e}}(e,t)),null===t&&(E=e),t}function f(){var t,e,n,r,i;if(r=E,i=E,t=h(),t=null!==t?t:"",null!==t){for(e=[],n=d();null!==n;)e.push(n),n=d();null!==e?t=[t,e]:(t=null,E=i)}else t=null,E=i;return null!==t&&(t=function(t,e,n){var r={type:"pluralFormatPattern",pluralForms:n};return e?r.offset=e:r.offset=0,r}(r,t[0],t[1])),null===t&&(E=r),t}function h(){var t,n,i,o,a,s,u,l,c;return l=E,c=E,t=x(),null!==t?("offset"===e.substr(E,6)?(n="offset",E+=6):(n=null,0===T&&r('"offset"')),null!==n?(i=x(),null!==i?(58===e.charCodeAt(E)?(o=":",E++):(o=null,0===T&&r('":"')),null!==o?(a=x(),null!==a?(s=b(),null!==s?(u=x(),null!==u?t=[t,n,i,o,a,s,u]:(t=null,E=c)):(t=null,E=c)):(t=null,E=c)):(t=null,E=c)):(t=null,E=c)):(t=null,E=c)):(t=null,E=c),null!==t&&(t=function(t,e){return e}(l,t[5])),null===t&&(E=l),t}function p(){var t,e,n;for(n=E,t=[],e=d();null!==e;)t.push(e),e=d();return null!==t&&(t=function(t,e){return{type:"selectFormatPattern",pluralForms:e}}(n,t)),null===t&&(E=n),t}function d(){var t,n,i,a,s,u,l,c,f,h;return f=E,h=E,t=x(),null!==t?(n=v(),null!==n?(i=x(),null!==i?(123===e.charCodeAt(E)?(a="{",E++):(a=null,0===T&&r('"{"')),null!==a?(s=x(),null!==s?(u=o(),null!==u?(l=x(),null!==l?(125===e.charCodeAt(E)?(c="}",E++):(c=null,0===T&&r('"}"')),null!==c?t=[t,n,i,a,s,u,l,c]:(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h)):(t=null,E=h),null!==t&&(t=function(t,e,n){return{type:"pluralForms",key:e,val:n}}(f,t[1],t[5])),null===t&&(E=f),t}function v(){var t,n,i,o;return i=E,t=g(),null!==t&&(t=function(t,e){return e}(i,t)),null===t&&(E=i),null===t&&(i=E,o=E,61===e.charCodeAt(E)?(t="=",E++):(t=null,0===T&&r('"="')),null!==t?(n=b(),null!==n?t=[t,n]:(t=null,E=o)):(t=null,E=o),null!==t&&(t=function(t,e){return e}(i,t[1])),null===t&&(E=i)),t}function m(){var t,e,n,r,i,o,a,s;if(o=E,a=E,t=x(),null!==t){for(e=[],s=E,n=x(),null!==n?(r=y(),
null!==r?(i=x(),null!==i?n=[n,r,i]:(n=null,E=s)):(n=null,E=s)):(n=null,E=s);null!==n;)e.push(n),s=E,n=x(),null!==n?(r=y(),null!==r?(i=x(),null!==i?n=[n,r,i]:(n=null,E=s)):(n=null,E=s)):(n=null,E=s);null!==e?t=[t,e]:(t=null,E=a)}else t=null,E=a;return null!==t&&(t=function(t,e,n){for(var r=[],i=0;i<n.length;++i)for(var o=0;o<n[i].length;++o)r.push(n[i][o]);return{type:"string",val:e+r.join("")}}(o,t[0],t[1])),null===t&&(E=o),t}function g(){var t,n,i,o,a,s;if(a=E,s=E,t=x(),null!==t)if(/^[0-9a-zA-Z$_]/.test(e.charAt(E))?(n=e.charAt(E),E++):(n=null,0===T&&r("[0-9a-zA-Z$_]")),null!==n){for(i=[],/^[^ \t\n\r,.+={}]/.test(e.charAt(E))?(o=e.charAt(E),E++):(o=null,0===T&&r("[^ \\t\\n\\r,.+={}]"));null!==o;)i.push(o),/^[^ \t\n\r,.+={}]/.test(e.charAt(E))?(o=e.charAt(E),E++):(o=null,0===T&&r("[^ \\t\\n\\r,.+={}]"));null!==i?(o=x(),null!==o?t=[t,n,i,o]:(t=null,E=s)):(t=null,E=s)}else t=null,E=s;else t=null,E=s;return null!==t&&(t=function(t,e,n){return e+(n?n.join(""):"")}(a,t[1],t[2])),null===t&&(E=a),t}function y(){var t,e,n;if(n=E,e=_(),null!==e)for(t=[];null!==e;)t.push(e),e=_();else t=null;return null!==t&&(t=function(t,e){return e.join("")}(n,t)),null===t&&(E=n),t}function _(){var t,n,i,o,a,s,u;return s=E,/^[^{}\\\0-\x1F \t\n\r]/.test(e.charAt(E))?(t=e.charAt(E),E++):(t=null,0===T&&r("[^{}\\\\\\0-\\x1F \\t\\n\\r]")),null!==t&&(t=function(t,e){return e}(s,t)),null===t&&(E=s),null===t&&(s=E,"\\#"===e.substr(E,2)?(t="\\#",E+=2):(t=null,0===T&&r('"\\\\#"')),null!==t&&(t=function(t){return"\\#"}(s)),null===t&&(E=s),null===t&&(s=E,"\\{"===e.substr(E,2)?(t="\\{",E+=2):(t=null,0===T&&r('"\\\\{"')),null!==t&&(t=function(t){return"{"}(s)),null===t&&(E=s),null===t&&(s=E,"\\}"===e.substr(E,2)?(t="\\}",E+=2):(t=null,0===T&&r('"\\\\}"')),null!==t&&(t=function(t){return"}"}(s)),null===t&&(E=s),null===t&&(s=E,u=E,"\\u"===e.substr(E,2)?(t="\\u",E+=2):(t=null,0===T&&r('"\\\\u"')),null!==t?(n=w(),null!==n?(i=w(),null!==i?(o=w(),null!==o?(a=w(),null!==a?t=[t,n,i,o,a]:(t=null,E=u)):(t=null,E=u)):(t=null,E=u)):(t=null,E=u)):(t=null,E=u),null!==t&&(t=function(t,e,n,r,i){return String.fromCharCode(parseInt("0x"+e+n+r+i))}(s,t[1],t[2],t[3],t[4])),null===t&&(E=s))))),t}function b(){var t,n,i;if(i=E,/^[0-9]/.test(e.charAt(E))?(n=e.charAt(E),E++):(n=null,0===T&&r("[0-9]")),null!==n)for(t=[];null!==n;)t.push(n),/^[0-9]/.test(e.charAt(E))?(n=e.charAt(E),E++):(n=null,0===T&&r("[0-9]"));else t=null;return null!==t&&(t=function(t,e){return parseInt(e.join(""),10)}(i,t)),null===t&&(E=i),t}function w(){var t;return/^[0-9a-fA-F]/.test(e.charAt(E))?(t=e.charAt(E),E++):(t=null,0===T&&r("[0-9a-fA-F]")),t}function x(){var t,e,n;for(T++,n=E,t=[],e=$();null!==e;)t.push(e),e=$();return null!==t&&(t=function(t,e){return e.join("")}(n,t)),null===t&&(E=n),T--,0===T&&null===t&&r("whitespace"),t}function $(){var t;return/^[ \t\n\r]/.test(e.charAt(E))?(t=e.charAt(E),E++):(t=null,0===T&&r("[ \\t\\n\\r]")),t}function k(t){t.sort();for(var e=null,n=[],r=0;r<t.length;r++)t[r]!==e&&(n.push(t[r]),e=t[r]);return n}function S(){for(var t=1,n=1,r=!1,i=0;i<Math.max(E,F);i++){var o=e.charAt(i);"\n"===o?(r||t++,n=1,r=!1):"\r"===o||"\u2028"===o||"\u2029"===o?(t++,n=1,r=!0):(n++,r=!1)}return{line:t,column:n}}var C={start:i,messageFormatPattern:o,messageFormatPatternRight:a,messageFormatElement:s,elementFormat:u,pluralStyle:l,selectStyle:c,pluralFormatPattern:f,offsetPattern:h,selectFormatPattern:p,pluralForms:d,stringKey:v,string:m,id:g,chars:y,"char":_,digits:b,hexDigit:w,_:x,whitespace:$};if(void 0!==n){if(void 0===C[n])throw new Error("Invalid rule name: "+t(n)+".")}else n="start";var E=0,T=0,F=0,j=[],A=C[n]();if(null===A||E!==e.length){var D=Math.max(E,F),M=D<e.length?e.charAt(D):null,O=S();throw new this.SyntaxError(k(j),M,D,O.line,O.column)}return A},toSource:function(){return this._source}};return e.SyntaxError=function(e,n,r,i,o){function a(e,n){var r,i;switch(e.length){case 0:r="end of input";break;case 1:r=e[0];break;default:r=e.slice(0,e.length-1).join(", ")+" or "+e[e.length-1]}return i=n?t(n):"end of input","Expected "+r+" but "+i+" found."}this.name="SyntaxError",this.expected=e,this.found=n,this.message=a(e,n),this.offset=r,this.line=i,this.column=o},e.SyntaxError.prototype=Error.prototype,e}();e.prototype.parse=function(){return r.parse.apply(r,arguments)},e.prototype.precompile=function(t){function n(t){var e=JSON.parse(JSON.stringify(t));return e.pf_count++,e}function r(t,a){a=a||{keys:{},offset:{}};var s,u,l=[];switch(t.type){case"program":return r(t.program);case"messageFormatPattern":for(s=0;s<t.statements.length;++s)l.push(r(t.statements[s],a));return u=l.join("+")||'""',a.pf_count?u:"function(d){return "+u+"}";case"messageFormatPatternRight":for(s=0;s<t.statements.length;++s)l.push(r(t.statements[s],a));return l.join("+");case"messageFormatElement":return a.pf_count=a.pf_count||0,t.output?'v(d,"'+t.argumentIndex+'")':(a.keys[a.pf_count]='"'+t.argumentIndex+'"',r(t.elementFormat,a));case"elementFormat":return"select"===t.key?"s(d,"+a.keys[a.pf_count]+","+r(t.val,a)+")":"plural"===t.key?(a.offset[a.pf_count||0]=t.val.offset||0,"p(d,"+a.keys[a.pf_count]+","+(a.offset[a.pf_count]||0)+',"'+i.fallbackLocale+'",'+r(t.val,a)+")"):"";case"pluralFormatPattern":for(a.pf_count=a.pf_count||0,o=!0,s=0;s<t.pluralForms.length;++s)"other"===t.pluralForms[s].key&&(o=!1),l.push('"'+t.pluralForms[s].key+'":'+r(t.pluralForms[s].val,n(a)));if(o)throw new Error("No 'other' form found in pluralFormatPattern "+a.pf_count);return"{"+l.join(",")+"}";case"selectFormatPattern":for(a.pf_count=a.pf_count||0,a.offset[a.pf_count]=0,o=!0,s=0;s<t.pluralForms.length;++s)"other"===t.pluralForms[s].key&&(o=!1),l.push('"'+t.pluralForms[s].key+'":'+r(t.pluralForms[s].val,n(a)));if(o)throw new Error("No 'other' form found in selectFormatPattern "+a.pf_count);return"{"+l.join(",")+"}";case"string":return u='"'+e.Utils.escapeExpression(t.val)+'"',a.pf_count&&(u=e.Utils.numSub(u,"d",a.keys[a.pf_count-1],a.offset[a.pf_count-1])),u;default:throw new Error("Bad AST type: "+t.type)}}var i=this,o=!1;return r(t)},e.prototype.compile=function(t){return new Function("MessageFormat","return "+this.precompile(this.parse(t)))(e)},"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=e),exports.MessageFormat=e):"function"==typeof define&&define.amd?define(function(){return e}):t.MessageFormat=e}(this),function(t,e,n){"use strict";function r(t,e){return e=e||Error,function(){var n,r,i=2,o=arguments,a=o[0],s="["+(t?t+":":"")+a+"] ",u=o[1];for(s+=u.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1),n=e+i;return n<o.length?_t(o[n]):t}),s+="\nhttp://errors.angularjs.org/1.4.7/"+(t?t+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent(_t(o[r]));return new e(s)}}function i(t){if(null==t||T(t))return!1;var e="length"in Object(t)&&t.length;return t.nodeType===Yr&&e?!0:$(t)||Rr(t)||0===e||"number"==typeof e&&e>0&&e-1 in t}function o(t,e,n){var r,a;if(t)if(C(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(Rr(t)||i(t)){var s="object"!=typeof t;for(r=0,a=t.length;a>r;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==o)t.forEach(e,n,t);else if(x(t))for(r in t)e.call(n,t[r],r,t);else if("function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else for(r in t)wr.call(t,r)&&e.call(n,t[r],r,t);return t}function a(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function s(t){return function(e,n){t(n,e)}}function u(){return++Pr}function l(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function c(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;o>i;++i){var a=e[i];if(w(a)||C(a))for(var s=Object.keys(a),u=0,f=s.length;f>u;u++){var h=s[u],p=a[h];n&&w(p)?S(p)?t[h]=new Date(p.valueOf()):E(p)?t[h]=new RegExp(p):(w(t[h])||(t[h]=Rr(p)?[]:{}),c(t[h],[p],!0)):t[h]=p}}return l(t,r),t}function f(t){return c(t,Fr.call(arguments,1),!1)}function h(t){return c(t,Fr.call(arguments,1),!0)}function p(t){return parseInt(t,10)}function d(t,e){return f(Object.create(t),e)}function v(){}function m(t){return t}function g(t){return function(){return t}}function y(t){return C(t.toString)&&t.toString!==Object.prototype.toString}function _(t){return"undefined"==typeof t}function b(t){return"undefined"!=typeof t}function w(t){return null!==t&&"object"==typeof t}function x(t){return null!==t&&"object"==typeof t&&!Mr(t)}function $(t){return"string"==typeof t}function k(t){return"number"==typeof t}function S(t){return"[object Date]"===Dr.call(t)}function C(t){return"function"==typeof t}function E(t){return"[object RegExp]"===Dr.call(t)}function T(t){return t&&t.window===t}function F(t){return t&&t.$evalAsync&&t.$watch}function j(t){return"[object File]"===Dr.call(t)}function A(t){return"[object FormData]"===Dr.call(t)}function D(t){return"[object Blob]"===Dr.call(t)}function M(t){return"boolean"==typeof t}function O(t){return t&&C(t.then)}function I(t){return Lr.test(Dr.call(t))}function P(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function N(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function R(t){return br(t.nodeName||t[0]&&t[0].nodeName)}function L(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function z(t,e,n,r){if(T(t)||F(t))throw Or("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(I(e))throw Or("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e){if(t===e)throw Or("cpi","Can't copy! Source and destination are identical.");n=n||[],r=r||[],w(t)&&(n.push(t),r.push(e));var i;if(Rr(t)){e.length=0;for(var a=0;a<t.length;a++)e.push(z(t[a],null,n,r))}else{var s=e.$$hashKey;if(Rr(e)?e.length=0:o(e,function(t,n){delete e[n]}),x(t))for(i in t)e[i]=z(t[i],null,n,r);else if(t&&"function"==typeof t.hasOwnProperty)for(i in t)t.hasOwnProperty(i)&&(e[i]=z(t[i],null,n,r));else for(i in t)wr.call(t,i)&&(e[i]=z(t[i],null,n,r));l(e,s)}}else if(e=t,w(t)){var u;if(n&&-1!==(u=n.indexOf(t)))return r[u];if(Rr(t))return z(t,[],n,r);if(I(t))e=new t.constructor(t);else if(S(t))e=new Date(t.getTime());else if(E(t))e=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]),e.lastIndex=t.lastIndex;else{if(!C(t.cloneNode)){var c=Object.create(Mr(t));return z(t,c,n,r)}e=t.cloneNode(!0)}r&&(n.push(t),r.push(e))}return e}function q(t,e){if(Rr(t)){e=e||[];for(var n=0,r=t.length;r>n;n++)e[n]=t[n]}else if(w(t)){e=e||{};for(var i in t)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(e[i]=t[i])}return e||t}function H(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var n,r,i,o=typeof t,a=typeof e;if(o==a&&"object"==o){if(!Rr(t)){if(S(t))return S(e)?H(t.getTime(),e.getTime()):!1;if(E(t))return E(e)?t.toString()==e.toString():!1;if(F(t)||F(e)||T(t)||T(e)||Rr(e)||S(e)||E(e))return!1;i=mt();for(r in t)if("$"!==r.charAt(0)&&!C(t[r])){if(!H(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&b(e[r])&&!C(e[r]))return!1;return!0}if(!Rr(e))return!1;if((n=t.length)==e.length){for(r=0;n>r;r++)if(!H(t[r],e[r]))return!1;return!0}}return!1}function U(t,e,n){return t.concat(Fr.call(e,n))}function W(t,e){return Fr.call(t,e||0)}function V(t,e){var n=arguments.length>2?W(arguments,2):[];return!C(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,U(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function B(t,r){var i=r;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=n:T(r)?i="$WINDOW":r&&e===r?i="$DOCUMENT":F(r)&&(i="$SCOPE"),i}function Y(t,e){return"undefined"==typeof t?n:(k(e)||(e=e?2:null),JSON.stringify(t,B,e))}function K(t){return $(t)?JSON.parse(t):t}function G(t,e){var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function X(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function J(t,e,n){n=n?-1:1;var r=G(e,t.getTimezoneOffset());return X(t,n*(r-t.getTimezoneOffset()))}function Q(t){t=Cr(t).clone();try{t.empty()}catch(e){}var n=Cr("<div>").append(t).html();try{return t[0].nodeType===Gr?br(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+br(e)})}catch(e){return br(n)}}function Z(t){try{return decodeURIComponent(t)}catch(e){}}function tt(t){var e={};return o((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),i=t.substring(n+1)),r=Z(r),b(r)&&(i=b(i)?Z(i):!0,wr.call(e,r)?Rr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function et(t){var e=[];return o(t,function(t,n){Rr(t)?o(t,function(t){e.push(rt(n,!0)+(t===!0?"":"="+rt(t,!0)))}):e.push(rt(n,!0)+(t===!0?"":"="+rt(t,!0)))}),e.length?e.join("&"):""}function nt(t){return rt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function rt(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function it(t,e){var n,r,i=Wr.length;for(r=0;i>r;++r)if(n=Wr[r]+e,$(n=t.getAttribute(n)))return n;return null}function ot(t,e){var n,r,i={};o(Wr,function(e){var i=e+"app";!n&&t.hasAttribute&&t.hasAttribute(i)&&(n=t,r=t.getAttribute(i))}),o(Wr,function(e){var i,o=e+"app";!n&&(i=t.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))}),n&&(i.strictDi=null!==it(n,"strict-di"),e(n,r?[r]:[],i))}function at(n,r,i){w(i)||(i={});var a={strictDi:!1};i=f(a,i);var s=function(){if(n=Cr(n),n.injector()){var t=n[0]===e?"document":Q(n);throw Or("btstrpd","App Already Bootstrapped with this Element '{0}'",t.replace(/</,"&lt;").replace(/>/,"&gt;"))}r=r||[],r.unshift(["$provide",function(t){t.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),r.unshift("ng");var o=Qt(r,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),o},u=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;return t&&u.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(u,"")),t&&!l.test(t.name)?s():(t.name=t.name.replace(l,""),Ir.resumeBootstrap=function(t){return o(t,function(t){r.push(t)}),s()},void(C(Ir.resumeDeferredBootstrap)&&Ir.resumeDeferredBootstrap()))}function st(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function ut(t){var e=Ir.element(t).injector();if(!e)throw Or("test","no injector found for element argument to getTestability");return e.get("$$testability")}function lt(t,e){return e=e||"_",t.replace(Vr,function(t,n){return(n?e:"")+t.toLowerCase()})}function ct(){var e;if(!Br){var r=Ur();Er=_(r)?t.jQuery:r?t[r]:n,Er&&Er.fn.on?(Cr=Er,f(Er.fn,{scope:pi.scope,isolateScope:pi.isolateScope,controller:pi.controller,injector:pi.injector,inheritedData:pi.inheritedData}),e=Er.cleanData,Er.cleanData=function(t){var n;if(Nr)Nr=!1;else for(var r,i=0;null!=(r=t[i]);i++)n=Er._data(r,"events"),n&&n.$destroy&&Er(r).triggerHandler("$destroy");e(t)}):Cr=Tt,Ir.element=Cr,Br=!0}}function ft(t,e,n){if(!t)throw Or("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ht(t,e,n){return n&&Rr(t)&&(t=t[t.length-1]),ft(C(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function pt(t,e){if("hasOwnProperty"===t)throw Or("badname","hasOwnProperty is not a valid {0} name",e)}function dt(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,a=i.length,s=0;a>s;s++)r=i[s],t&&(t=(o=t)[r]);return!n&&C(t)?V(o,t):t}function vt(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=Cr(Fr.call(t,0,i))),e.push(n));return e||t}function mt(){return Object.create(null)}function gt(t){function e(t,e,n){return t[e]||(t[e]=n())}var n=r("$injector"),i=r("ng"),o=e(t,"angular",Object);return o.$$minErr=o.$$minErr||r,e(o,"module",function(){var t={};return function(r,o,a){var s=function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)};return s(r,"module"),o&&t.hasOwnProperty(r)&&(t[r]=null),e(t,r,function(){function t(t,e,n,r){return r||(r=i),function(){return r[n||"push"]([t,e,arguments]),c}}function e(t,e){return function(n,o){return o&&C(o)&&(o.$$moduleName=r),i.push([t,e,arguments]),c}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var i=[],s=[],u=[],l=t("$injector","invoke","push",s),c={_invokeQueue:i,_configBlocks:s,_runBlocks:u,requires:o,name:r,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:e("$provide","decorator"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:l,run:function(t){return u.push(t),this}};return a&&l(a),c})}})}function yt(t){var e=[];return JSON.stringify(t,function(t,n){if(n=B(t,n),w(n)){if(e.indexOf(n)>=0)return"...";e.push(n)}return n})}function _t(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):_(t)?"undefined":"string"!=typeof t?yt(t):t}function bt(e){f(e,{bootstrap:at,copy:z,extend:f,merge:h,equals:H,element:Cr,forEach:o,injector:Qt,noop:v,bind:V,toJson:Y,fromJson:K,identity:m,isUndefined:_,isDefined:b,isString:$,isFunction:C,isObject:w,isNumber:k,isElement:P,isArray:Rr,version:Zr,isDate:S,lowercase:br,uppercase:xr,callbacks:{counter:0},getTestability:ut,$$minErr:r,$$csp:Hr,reloadWithDebugInfo:st}),(Tr=gt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:gn}),t.provider("$compile",ue).directive({a:po,input:Ao,textarea:Ao,form:_o,script:$a,select:Ca,style:Ta,option:Ea,ngBind:Oo,ngBindHtml:Po,ngBindTemplate:Io,ngClass:Ro,ngClassEven:zo,ngClassOdd:Lo,ngCloak:qo,ngController:Ho,ngForm:bo,ngHide:ga,ngIf:Vo,ngInclude:Bo,ngInit:Ko,ngNonBindable:ua,ngPluralize:ha,ngRepeat:pa,ngShow:ma,ngStyle:ya,ngSwitch:_a,ngSwitchWhen:ba,ngSwitchDefault:wa,ngOptions:fa,ngTransclude:xa,ngModel:oa,ngList:Go,ngChange:No,pattern:ja,ngPattern:ja,required:Fa,ngRequired:Fa,minlength:Da,ngMinlength:Da,maxlength:Aa,ngMaxlength:Aa,ngValue:Mo,ngModelOptions:sa}).directive({ngInclude:Yo}).directive(vo).directive(Uo),t.provider({$anchorScroll:Zt,$animate:Ti,$animateCss:Fi,$$animateQueue:Ei,$$AnimateRunner:Ci,$browser:oe,$cacheFactory:ae,$controller:pe,$document:de,$exceptionHandler:ve,$filter:An,$$forceReflow:Oi,$interpolate:Fe,$interval:je,$http:Se,$httpParamSerializer:ge,$httpParamSerializerJQLike:ye,$httpBackend:Ee,$xhrFactory:Ce,$location:We,$log:Ve,$parse:fn,$rootScope:mn,$q:hn,$$q:pn,$sce:wn,$sceDelegate:bn,$sniffer:xn,$templateCache:se,$templateRequest:$n,$$testability:kn,$timeout:Sn,$window:Tn,$$rAF:vn,$$jqLite:Yt,$$HashMap:gi,$$cookieReader:jn})}])}function wt(){return++ei}function xt(t){return t.replace(ii,function(t,e,n,r){return r?n.toUpperCase():n}).replace(oi,"Moz$1")}function $t(t){return!li.test(t)}function kt(t){var e=t.nodeType;return e===Yr||!e||e===Jr}function St(t){for(var e in ti[t.ng339])return!0;return!1}function Ct(t,e){var n,r,i,a,s=e.createDocumentFragment(),u=[];if($t(t))u.push(e.createTextNode(t));else{for(n=n||s.appendChild(e.createElement("div")),r=(ci.exec(t)||["",""])[1].toLowerCase(),i=hi[r]||hi._default,n.innerHTML=i[1]+t.replace(fi,"<$1></$2>")+i[2],a=i[0];a--;)n=n.lastChild;u=U(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",o(u,function(t){s.appendChild(t)}),s}function Et(t,n){n=n||e;var r;return(r=ui.exec(t))?[n.createElement(r[1])]:(r=Ct(t,n))?r.childNodes:[]}function Tt(t){if(t instanceof Tt)return t;var e;if($(t)&&(t=zr(t),e=!0),!(this instanceof Tt)){if(e&&"<"!=t.charAt(0))throw si("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Tt(t)}e?Rt(this,Et(t)):Rt(this,t)}function Ft(t){return t.cloneNode(!0)}function jt(t,e){if(e||Dt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;i>r;r++)Dt(n[r])}function At(t,e,n,r){if(b(r))throw si("offargs","jqLite#off() does not support the `selector` argument");var i=Mt(t),a=i&&i.events,s=i&&i.handle;if(s)if(e)o(e.split(" "),function(e){if(b(n)){var r=a[e];if(L(r||[],n),r&&r.length>0)return}ri(t,e,s),delete a[e]});else for(e in a)"$destroy"!==e&&ri(t,e,s),delete a[e]}function Dt(t,e){var r=t.ng339,i=r&&ti[r];if(i){if(e)return void delete i.data[e];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),At(t)),delete ti[r],t.ng339=n}}function Mt(t,e){var r=t.ng339,i=r&&ti[r];return e&&!i&&(t.ng339=r=wt(),i=ti[r]={events:{},data:{},handle:n}),i}function Ot(t,e,n){if(kt(t)){var r=b(n),i=!r&&e&&!w(e),o=!e,a=Mt(t,!i),s=a&&a.data;if(r)s[e]=n;else{if(o)return s;if(i)return s&&s[e];f(s,e)}}}function It(t,e){return t.getAttribute?(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1:!1}function Pt(t,e){e&&t.setAttribute&&o(e.split(" "),function(e){t.setAttribute("class",zr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+zr(e)+" "," ")))})}function Nt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(e.split(" "),function(t){t=zr(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",zr(n))}}function Rt(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;n>r;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Lt(t,e){return zt(t,"$"+(e||"ngController")+"Controller")}function zt(t,e,n){t.nodeType==Jr&&(t=t.documentElement);for(var r=Rr(e)?e:[e];t;){for(var i=0,o=r.length;o>i;i++)if(b(n=Cr.data(t,r[i])))return n;t=t.parentNode||t.nodeType===Qr&&t.host}}function qt(t){for(jt(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Ht(t,e){e||jt(t);var n=t.parentNode;n&&n.removeChild(t)}function Ut(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):Cr(n).on("load",e)}function Wt(t,e){var n=di[e.toLowerCase()];return n&&vi[R(t)]&&n}function Vt(t){return mi[t]}function Bt(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],o=i?i.length:0;if(o){if(_(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0},o>1&&(i=q(i));for(var s=0;o>s;s++)n.isImmediatePropagationStopped()||i[s].call(t,n)}};return n.elem=t,n}function Yt(){this.$get=function(){return f(Tt,{hasClass:function(t,e){return t.attr&&(t=t[0]),It(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),Nt(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Pt(t,e)}})}}function Kt(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||u)():r+":"+t}function Gt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}o(t,this.put,this)}function Xt(t){var e=t.toString().replace(wi,""),n=e.match(yi);return n?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Jt(t,e,n){var r,i,a,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw $(n)&&n||(n=t.name||Xt(t)),xi("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=t.toString().replace(wi,""),a=i.match(yi),o(a[1].split(_i),function(t){t.replace(bi,function(t,e,n){r.push(n)})})}t.$inject=r}}else Rr(t)?(s=t.length-1,ht(t[s],"fn"),r=t.slice(0,s)):ht(t,"fn",!0);return r}function Qt(t,e){function r(t){return function(e,n){return w(e)?void o(e,s(t)):t(e,n)}}function i(t,e){if(pt(t,"service"),(C(e)||Rr(e))&&(e=k.instantiate(e)),!e.$get)throw xi("pget","Provider '{0}' must define $get factory method.",t);return x[t+m]=e}function a(t,e){return function(){var n=E.invoke(e,this);if(_(n))throw xi("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function u(t,e,n){return i(t,{$get:n!==!1?a(t,e):e})}function l(t,e){return u(t,["$injector",function(t){return t.instantiate(e)}])}function c(t,e){return u(t,g(e),!1)}function f(t,e){pt(t,"constant"),x[t]=e,S[t]=e}function h(t,e){var n=k.get(t+m),r=n.$get;n.$get=function(){var t=E.invoke(r,n);return E.invoke(e,null,{$delegate:t})}}function p(t){ft(_(t)||Rr(t),"modulesToLoad","not an array");var e,n=[];return o(t,function(t){function r(t){var e,n;for(e=0,n=t.length;n>e;e++){var r=t[e],i=k.get(r[0]);i[r[1]].apply(i,r[2])}}if(!b.get(t)){b.put(t,!0);try{$(t)?(e=Tr(t),n=n.concat(p(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):C(t)?n.push(k.invoke(t)):Rr(t)?n.push(k.invoke(t)):ht(t,"module")}catch(i){throw Rr(t)&&(t=t[t.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),xi("modulerr","Failed to instantiate module {0} due to:\n{1}",t,i.stack||i.message||i)}}}),n}function d(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===v)throw xi("cdep","Circular dependency found: {0}",e+" <- "+y.join(" <- "));return t[e]}try{return y.unshift(e),t[e]=v,t[e]=n(e,r)}catch(i){throw t[e]===v&&delete t[e],i}finally{y.shift()}}function i(t,n,i,o){"string"==typeof i&&(o=i,i=null);var a,s,u,l=[],c=Qt.$$annotate(t,e,o);for(s=0,a=c.length;a>s;s++){if(u=c[s],"string"!=typeof u)throw xi("itkn","Incorrect injection token! Expected service name as string, got {0}",u);l.push(i&&i.hasOwnProperty(u)?i[u]:r(u,o))}return Rr(t)&&(t=t[a]),t.apply(n,l)}function o(t,e,n){var r=Object.create((Rr(t)?t[t.length-1]:t).prototype||null),o=i(t,r,e,n);return w(o)||C(o)?o:r}return{invoke:i,instantiate:o,get:r,annotate:Qt.$$annotate,has:function(e){return x.hasOwnProperty(e+m)||t.hasOwnProperty(e)}}}e=e===!0;var v={},m="Provider",y=[],b=new Gt([],!0),x={$provide:{provider:r(i),factory:r(u),service:r(l),value:r(c),constant:r(f),decorator:h}},k=x.$injector=d(x,function(t,e){throw Ir.isString(e)&&y.push(e),xi("unpr","Unknown provider: {0}",y.join(" <- "))}),S={},E=S.$injector=d(S,function(t,e){var r=k.get(t+m,e);return E.invoke(r.$get,r,n,t)});return o(p(t),function(t){t&&E.invoke(t)}),E}function Zt(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return Array.prototype.some.call(t,function(t){return"a"===R(t)?(e=t,!0):void 0}),e}function o(){var t=s.yOffset;if(C(t))t=t();else if(P(t)){var n=t[0],r=e.getComputedStyle(n);t="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else k(t)||(t=0);return t}function a(t){if(t){t.scrollIntoView();var n=o();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function s(t){t=$(t)?t:n.hash();var e;t?(e=u.getElementById(t))?a(e):(e=i(u.getElementsByName(t)))?a(e):"top"===t&&a(null):a(null)}var u=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){(t!==e||""!==t)&&Ut(function(){r.$evalAsync(s)})}),s}]}function te(t,e){return t||e?t?e?(Rr(t)&&(t=t.join(" ")),Rr(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function ee(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===ki)return n}}function ne(t){$(t)&&(t=t.split(" "));var e=mt();return o(t,function(t){t.length&&(e[t]=!0)}),e}function re(t){return w(t)?t:{}}function ie(t,e,n,r){function i(t){try{t.apply(null,W(arguments,1))}finally{if(y--,0===y)for(;b.length;)try{b.pop()()}catch(e){n.error(e)}}}function a(t){var e=t.indexOf("#");return-1===e?"":t.substr(e)}function s(){S=null,l(),c()}function u(){try{return p.state}catch(t){}}function l(){w=u(),w=_(w)?null:w,H(w,T)&&(w=T),T=w}function c(){($!==f.url()||x!==w)&&($=f.url(),x=w,o(C,function(t){t(f.url(),w)}))}var f=this,h=(e[0],t.location),p=t.history,d=t.setTimeout,m=t.clearTimeout,g={};f.isMock=!1;var y=0,b=[];f.$$completeOutstandingRequest=i,f.$$incOutstandingRequestCount=function(){y++},f.notifyWhenNoOutstandingRequests=function(t){0===y?t():b.push(t)};var w,x,$=h.href,k=e.find("base"),S=null;l(),x=w,f.url=function(e,n,i){if(_(i)&&(i=null),h!==t.location&&(h=t.location),p!==t.history&&(p=t.history),e){var o=x===i;if($===e&&(!r.history||o))return f;var s=$&&Ie($)===Ie(e);return $=e,x=i,!r.history||s&&o?((!s||S)&&(S=e),n?h.replace(e):s?h.hash=a(e):h.href=e,h.href!==e&&(S=e)):(p[n?"replaceState":"pushState"](i,"",e),l(),x=w),f}return S||h.href.replace(/%27/g,"'")},f.state=function(){return w};var C=[],E=!1,T=null;f.onUrlChange=function(e){return E||(r.history&&Cr(t).on("popstate",s),Cr(t).on("hashchange",s),E=!0),C.push(e),e},f.$$applicationDestroyed=function(){Cr(t).off("hashchange popstate",s)},f.$$checkUrlChange=c,f.baseHref=function(){var t=k.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},f.defer=function(t,e){var n;return y++,n=d(function(){delete g[n],i(t)},e||0),g[n]=!0,n},f.defer.cancel=function(t){return g[t]?(delete g[t],m(t),i(v),!0):!1}}function oe(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new ie(t,r,e,n)}]}function ae(){this.$get=function(){function t(t,n){function i(t){t!=h&&(p?p==t&&(p=t.n):p=t,o(t.n,t.p),o(t,h),h=t,h.n=null)}function o(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in e)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var a=0,s=f({},n,{id:t}),u={},l=n&&n.capacity||Number.MAX_VALUE,c={},h=null,p=null;return e[t]={put:function(t,e){if(!_(e)){if(l<Number.MAX_VALUE){var n=c[t]||(c[t]={key:t});i(n)}return t in u||a++,u[t]=e,a>l&&this.remove(p.key),e}},get:function(t){if(l<Number.MAX_VALUE){var e=c[t];if(!e)return;i(e)}return u[t]},remove:function(t){if(l<Number.MAX_VALUE){var e=c[t];if(!e)return;e==h&&(h=e.p),e==p&&(p=e.n),o(e.n,e.p),delete c[t]}delete u[t],a--},removeAll:function(){u={},a=0,c={},h=p=null},destroy:function(){u=null,s=null,c=null,delete e[t]},info:function(){return f({},s,{size:a})}}}var e={};return t.info=function(){var t={};return o(e,function(e,n){t[n]=e.info()}),t},t.get=function(t){return e[t]},t}}function se(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function ue(t,r){function i(t,e,n){var r=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,i={};return o(t,function(t,o){var a=t.match(r);if(!a)throw ji("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,o,t,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o}}),i}function a(t,e){var n={isolateScope:null,bindToController:null};if(w(t.scope)&&(t.bindToController===!0?(n.bindToController=i(t.scope,e,!0),n.isolateScope={}):n.isolateScope=i(t.scope,e,!1)),w(t.bindToController)&&(n.bindToController=i(t.bindToController,e,!0)),w(n.bindToController)){var r=t.controller,o=t.controllerAs;if(!r)throw ji("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);if(!he(r,o))throw ji("noident","Cannot bind to controller without identifier for directive '{0}'.",e)}return n}function u(t){var e=t.charAt(0);if(!e||e!==br(e))throw ji("baddir","Directive name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw ji("baddir","Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}var l={},c="Directive",h=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,p=/(([\w\-]+)(?:\:([^;]+))?;?)/,y=N("ngSrc,ngSrcset,src,srcset"),x=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,k=/^(on[a-z]+|formaction)$/;this.directive=function E(e,n){return pt(e,"directive"),$(e)?(u(e),ft(n,"directiveFactory"),l.hasOwnProperty(e)||(l[e]=[],t.factory(e+c,["$injector","$exceptionHandler",function(t,n){var r=[];return o(l[e],function(i,o){try{var s=t.invoke(i);C(s)?s={compile:g(s)}:!s.compile&&s.link&&(s.compile=g(s.link)),s.priority=s.priority||0,s.index=o,s.name=s.name||e,s.require=s.require||s.controller&&s.name,s.restrict=s.restrict||"EA";var u=s.$$bindings=a(s,s.name);
w(u.isolateScope)&&(s.$$isolateBindings=u.isolateScope),s.$$moduleName=i.$$moduleName,r.push(s)}catch(l){n(l)}}),r}])),l[e].push(n)):o(e,s(E)),this},this.aHrefSanitizationWhitelist=function(t){return b(t)?(r.aHrefSanitizationWhitelist(t),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return b(t)?(r.imgSrcSanitizationWhitelist(t),this):r.imgSrcSanitizationWhitelist()};var S=!0;this.debugInfoEnabled=function(t){return b(t)?(S=t,this):S},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(t,r,i,a,s,u,g,b,E,T,j){function A(t,e){try{t.addClass(e)}catch(n){}}function D(t,e,n,r,i){t instanceof Cr||(t=Cr(t)),o(t,function(e,n){e.nodeType==Gr&&e.nodeValue.match(/\S+/)&&(t[n]=Cr(e).wrap("<span></span>").parent()[0])});var a=O(t,e,t,n,r,i);D.$$addScopeClass(t);var s=null;return function(e,n,r){ft(e,"scope"),r=r||{};var i=r.parentBoundTranscludeFn,o=r.transcludeControllers,u=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),s||(s=M(u));var l;if(l="html"!==s?Cr(Z(s,Cr("<div>").append(t).html())):n?pi.clone.call(t):t,o)for(var c in o)l.data("$"+c+"Controller",o[c].instance);return D.$$addScopeInfo(l,e),n&&n(l,e),a&&a(e,l,l,i),l}}function M(t){var e=t&&t[0];return e&&"foreignobject"!==R(e)&&e.toString().match(/SVG/)?"svg":"html"}function O(t,e,r,i,o,a){function s(t,r,i,o){var a,s,u,l,c,f,h,p,m;if(d){var g=r.length;for(m=new Array(g),c=0;c<v.length;c+=3)h=v[c],m[h]=r[h]}else m=r;for(c=0,f=v.length;f>c;)if(u=m[v[c++]],a=v[c++],s=v[c++],a){if(a.scope){l=t.$new(),D.$$addScopeInfo(Cr(u),l);var y=a.$$destroyBindings;y&&(a.$$destroyBindings=null,l.$on("$destroyed",y))}else l=t;p=a.transcludeOnThisElement?I(t,a.transclude,o):!a.templateOnThisElement&&o?o:!o&&e?I(t,e):null,a(s,l,u,i,p,a)}else s&&s(t,u.childNodes,n,o)}for(var u,l,c,f,h,p,d,v=[],m=0;m<t.length;m++)u=new at,l=P(t[m],[],u,0===m?i:n,o),c=l.length?q(l,t[m],u,e,r,null,[],[],a):null,c&&c.scope&&D.$$addScopeClass(u.$$element),h=c&&c.terminal||!(f=t[m].childNodes)||!f.length?null:O(f,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:e),(c||h)&&(v.push(m,c,h),p=!0,d=d||c),a=null;return p?s:null}function I(t,e,n){var r=function(r,i,o,a,s){return r||(r=t.$new(!1,s),r.$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})};return r}function P(t,e,n,r,i){var o,a,s=t.nodeType,u=n.$attr;switch(s){case Yr:V(e,le(R(t)),"E",r,i);for(var l,c,f,d,v,m,g=t.attributes,y=0,_=g&&g.length;_>y;y++){var b=!1,x=!1;l=g[y],c=l.name,v=zr(l.value),d=le(c),(m=ht.test(d))&&(c=c.replace(Ai,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var k=d.replace(/(Start|End)$/,"");B(k)&&d===k+"Start"&&(b=c,x=c.substr(0,c.length-5)+"end",c=c.substr(0,c.length-6)),f=le(c.toLowerCase()),u[f]=c,(m||!n.hasOwnProperty(f))&&(n[f]=v,Wt(t,f)&&(n[f]=!0)),et(t,e,v,f,m),V(e,f,"A",r,i,b,x)}if(a=t.className,w(a)&&(a=a.animVal),$(a)&&""!==a)for(;o=p.exec(a);)f=le(o[2]),V(e,f,"C",r,i)&&(n[f]=zr(o[3])),a=a.substr(o.index+o[0].length);break;case Gr:if(11===Sr)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===Gr;)t.nodeValue=t.nodeValue+t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);J(e,t.nodeValue);break;case Xr:try{o=h.exec(t.nodeValue),o&&(f=le(o[1]),V(e,f,"M",r,i)&&(n[f]=zr(o[2])))}catch(S){}}return e.sort(G),e}function N(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw ji("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType==Yr&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0)}else r.push(t);return Cr(r)}function z(t,e,n){return function(r,i,o,a,s){return i=N(i[0],e,n),t(r,i,o,a,s)}}function q(t,r,o,a,s,l,c,f,h){function p(t,e,n,r){t&&(n&&(t=z(t,n,r)),t.require=g.require,t.directiveName=y,(j===g||g.$$isolateScope)&&(t=rt(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=z(e,n,r)),e.require=g.require,e.directiveName=y,(j===g||g.$$isolateScope)&&(e=rt(e,{isolateScope:!0})),f.push(e))}function d(t,e,n,r){var i;if($(e)){var o=e.match(x),a=e.substring(o[0].length),s=o[1]||o[3],u="?"===o[2];if("^^"===s?n=n.parent():(i=r&&r[a],i=i&&i.instance),!i){var l="$"+a+"Controller";i=s?n.inheritedData(l):n.data(l)}if(!i&&!u)throw ji("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,t)}else if(Rr(e)){i=[];for(var c=0,f=e.length;f>c;c++)i[c]=d(t,e[c],n,r)}return i||null}function v(t,e,n,r,i,o){var a=mt();for(var s in r){var l=r[s],c={$scope:l===j||l.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},f=l.controller;"@"==f&&(f=e[l.name]);var h=u(f,c,!0,l.controllerAs);a[l.name]=h,R||t.data("$"+l.name+"Controller",h.instance)}return a}function m(t,e,i,a,s,u){function l(t,e,r){var i;return F(t)||(r=e,e=t,t=n),R&&(i=_),r||(r=R?w.parent():w),s(t,e,i,r,M)}var h,p,m,g,y,_,b,w,x;if(r===i?(x=o,w=o.$$element):(w=Cr(i),x=new at(w,o)),j&&(y=e.$new(!0)),s&&(b=l,b.$$boundTransclude=s),T&&(_=v(w,x,b,T,y,e)),j&&(D.$$addScopeInfo(w,y,!0,!(A&&(A===j||A===j.$$originalDirective))),D.$$addScopeClass(w,!0),y.$$isolateBindings=j.$$isolateBindings,ot(e,x,y,y.$$isolateBindings,j,y)),_){var $,k,S=j||E;S&&_[S.name]&&($=S.$$bindings.bindToController,g=_[S.name],g&&g.identifier&&$&&(k=g,u.$$destroyBindings=ot(e,x,g.instance,$,S)));for(h in _){g=_[h];var C=g();C!==g.instance&&(g.instance=C,w.data("$"+h+"Controller",C),g===k&&(u.$$destroyBindings(),u.$$destroyBindings=ot(e,x,C,$,S)))}}for(h=0,p=c.length;p>h;h++)m=c[h],it(m,m.isolateScope?y:e,w,x,m.require&&d(m.directiveName,m.require,w,_),b);var M=e;for(j&&(j.template||null===j.templateUrl)&&(M=y),t&&t(M,i.childNodes,n,s),h=f.length-1;h>=0;h--)m=f[h],it(m,m.isolateScope?y:e,w,x,m.require&&d(m.directiveName,m.require,w,_),b)}h=h||{};for(var g,y,_,b,k,S=-Number.MAX_VALUE,E=h.newScopeDirective,T=h.controllerDirectives,j=h.newIsolateScopeDirective,A=h.templateDirective,M=h.nonTlbTranscludeDirective,O=!1,I=!1,R=h.hasElementTranscludeDirective,L=o.$$element=Cr(r),q=l,H=a,V=0,B=t.length;B>V;V++){g=t[V];var G=g.$$start,J=g.$$end;if(G&&(L=N(r,G,J)),_=n,S>g.priority)break;if((k=g.scope)&&(g.templateUrl||(w(k)?(X("new/isolated scope",j||E,g,L),j=g):X("new/isolated scope",j,g,L)),E=E||g),y=g.name,!g.templateUrl&&g.controller&&(k=g.controller,T=T||mt(),X("'"+y+"' controller",T[y],g,L),T[y]=g),(k=g.transclude)&&(O=!0,g.$$tlb||(X("transclusion",M,g,L),M=g),"element"==k?(R=!0,S=g.priority,_=L,L=o.$$element=Cr(e.createComment(" "+y+": "+o[y]+" ")),r=L[0],nt(s,W(_),r),H=D(_,a,S,q&&q.name,{nonTlbTranscludeDirective:M})):(_=Cr(Ft(r)).contents(),L.empty(),H=D(_,a))),g.template)if(I=!0,X("template",A,g,L),A=g,k=C(g.template)?g.template(L,o):g.template,k=ct(k),g.replace){if(q=g,_=$t(k)?[]:fe(Z(g.templateNamespace,zr(k))),r=_[0],1!=_.length||r.nodeType!==Yr)throw ji("tplrt","Template for directive '{0}' must have exactly one root element. {1}",y,"");nt(s,L,r);var tt={$attr:{}},et=P(r,[],tt),st=t.splice(V+1,t.length-(V+1));j&&U(et),t=t.concat(et).concat(st),Y(o,tt),B=t.length}else L.html(k);if(g.templateUrl)I=!0,X("template",A,g,L),A=g,g.replace&&(q=g),m=K(t.splice(V,t.length-V),L,o,s,O&&H,c,f,{controllerDirectives:T,newScopeDirective:E!==g&&E,newIsolateScopeDirective:j,templateDirective:A,nonTlbTranscludeDirective:M}),B=t.length;else if(g.compile)try{b=g.compile(L,o,H),C(b)?p(null,b,G,J):b&&p(b.pre,b.post,G,J)}catch(ut){i(ut,Q(L))}g.terminal&&(m.terminal=!0,S=Math.max(S,g.priority))}return m.scope=E&&E.scope===!0,m.transcludeOnThisElement=O,m.templateOnThisElement=I,m.transclude=H,h.hasElementTranscludeDirective=R,m}function U(t){for(var e=0,n=t.length;n>e;e++)t[e]=d(t[e],{$$isolateScope:!0})}function V(e,n,r,o,a,s,u){if(n===a)return null;var f=null;if(l.hasOwnProperty(n))for(var h,p=t.get(n+c),v=0,m=p.length;m>v;v++)try{h=p[v],(_(o)||o>h.priority)&&-1!=h.restrict.indexOf(r)&&(s&&(h=d(h,{$$start:s,$$end:u})),e.push(h),f=h)}catch(g){i(g)}return f}function B(e){if(l.hasOwnProperty(e))for(var n,r=t.get(e+c),i=0,o=r.length;o>i;i++)if(n=r[i],n.multiElement)return!0;return!1}function Y(t,e){var n=e.$attr,r=t.$attr,i=t.$$element;o(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),o(e,function(e,o){"class"==o?(A(i,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==o?(i.attr("style",i.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==o.charAt(0)||t.hasOwnProperty(o)||(t[o]=e,r[o]=n[o])})}function K(t,e,n,r,i,s,u,l){var c,f,h=[],p=e[0],v=t.shift(),m=d(v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),g=C(v.templateUrl)?v.templateUrl(e,n):v.templateUrl,y=v.templateNamespace;return e.empty(),a(g).then(function(a){var d,_,b,x;if(a=ct(a),v.replace){if(b=$t(a)?[]:fe(Z(y,zr(a))),d=b[0],1!=b.length||d.nodeType!==Yr)throw ji("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v.name,g);_={$attr:{}},nt(r,e,d);var $=P(d,[],_);w(v.scope)&&U($),t=$.concat(t),Y(n,_)}else d=p,e.html(a);for(t.unshift(m),c=q(t,d,n,i,e,v,s,u,l),o(r,function(t,n){t==d&&(r[n]=e[0])}),f=O(e[0].childNodes,i);h.length;){var k=h.shift(),S=h.shift(),C=h.shift(),E=h.shift(),T=e[0];if(!k.$$destroyed){if(S!==p){var F=S.className;l.hasElementTranscludeDirective&&v.replace||(T=Ft(d)),nt(C,Cr(S),T),A(Cr(T),F)}x=c.transcludeOnThisElement?I(k,c.transclude,E):E,c(f,k,T,r,x,c)}}h=null}),function(t,e,n,r,i){var o=i;e.$$destroyed||(h?h.push(e,n,r,o):(c.transcludeOnThisElement&&(o=I(e,c.transclude,i)),c(f,e,n,r,o,c)))}}function G(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function X(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw ji("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,Q(r))}function J(t,e){var n=r(e,!0);n&&t.push({priority:0,compile:function(t){var e=t.parent(),r=!!e.length;return r&&D.$$addBindingClass(e),function(t,e){var i=e.parent();r||D.$$addBindingClass(i),D.$$addBindingInfo(i,n.expressions),t.$watch(n,function(t){e[0].nodeValue=t})}}})}function Z(t,n){switch(t=br(t||"html")){case"svg":case"math":var r=e.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function tt(t,e){if("srcdoc"==e)return E.HTML;var n=R(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?E.RESOURCE_URL:void 0}function et(t,e,n,i,o){var a=tt(t,i);o=y[i]||o;var s=r(n,!0,a,o);if(s){if("multiple"===i&&"select"===R(t))throw ji("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Q(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){var l=u.$$observers||(u.$$observers=mt());if(k.test(i))throw ji("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=u[i];c!==n&&(s=c&&r(c,!0,a,o),n=c),s&&(u[i]=s(t),(l[i]||(l[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(s,function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function nt(t,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(t)for(i=0,o=t.length;o>i;i++)if(t[i]==a){t[i++]=r;for(var l=i,c=l+s-1,f=t.length;f>l;l++,c++)f>c?t[l]=t[c]:delete t[l];t.length-=s-1,t.context===a&&(t.context=r);break}u&&u.replaceChild(r,a);var h=e.createDocumentFragment();h.appendChild(a),Cr.hasData(a)&&(Cr(r).data(Cr(a).data()),Er?(Nr=!0,Er.cleanData([a])):delete Cr.cache[a[Cr.expando]]);for(var p=1,d=n.length;d>p;p++){var v=n[p];Cr(v).remove(),h.appendChild(v),delete n[p]}n[0]=r,n.length=1}function rt(t,e){return f(function(){return t.apply(null,arguments)},t,e)}function it(t,e,n,r,o,a){try{t(e,n,r,o,a)}catch(s){i(s,Q(n))}}function ot(t,e,n,i,a,u){var l;o(i,function(i,o){var u,c,f,h,p=i.attrName,d=i.optional,m=i.mode;switch(m){case"@":d||wr.call(e,p)||(n[o]=e[p]=void 0),e.$observe(p,function(t){$(t)&&(n[o]=t)}),e.$$observers[p].$$scope=t,$(e[p])&&(n[o]=r(e[p])(t));break;case"=":if(!wr.call(e,p)){if(d)break;e[p]=void 0}if(d&&!e[p])break;c=s(e[p]),h=c.literal?H:function(t,e){return t===e||t!==t&&e!==e},f=c.assign||function(){throw u=n[o]=c(t),ji("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",e[p],a.name)},u=n[o]=c(t);var g=function(e){return h(e,n[o])||(h(e,u)?f(t,e=n[o]):n[o]=e),u=e};g.$stateful=!0;var y;y=i.collection?t.$watchCollection(e[p],g):t.$watch(s(e[p],g),null,c.literal),l=l||[],l.push(y);break;case"&":if(c=e.hasOwnProperty(p)?s(e[p]):v,c===v&&d)break;n[o]=function(e){return c(t,e)}}});var c=l?function(){for(var t=0,e=l.length;e>t;++t)l[t]()}:v;return u&&c!==v?(u.$on("$destroy",c),v):c}var at=function(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;r>n;n++)i=o[n],this[i]=e[i]}else this.$attr={};this.$$element=t};at.prototype={$normalize:le,$addClass:function(t){t&&t.length>0&&T.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&T.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=ce(t,e);n&&n.length&&T.addClass(this.$$element,n);var r=ce(e,t);r&&r.length&&T.removeClass(this.$$element,r)},$set:function(t,e,n,r){var a,s=this.$$element[0],u=Wt(s,t),l=Vt(t),c=t;if(u?(this.$$element.prop(t,e),r=u):l&&(this[l]=e,c=l),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t],r||(this.$attr[t]=r=lt(t,"-"))),a=R(this.$$element),"a"===a&&"href"===t||"img"===a&&"src"===t)this[t]=e=j(e,"src"===t);else if("img"===a&&"srcset"===t){for(var f="",h=zr(e),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,d=/\s/.test(h)?p:/(,)/,v=h.split(d),m=Math.floor(v.length/2),g=0;m>g;g++){var y=2*g;f+=j(zr(v[y]),!0),f+=" "+zr(v[y+1])}var b=zr(v[2*g]).split(/\s/);f+=j(zr(b[0]),!0),2===b.length&&(f+=" "+zr(b[1])),this[t]=e=f}n!==!1&&(null===e||_(e)?this.$$element.removeAttr(r):this.$$element.attr(r,e));var w=this.$$observers;w&&o(w[c],function(t){try{t(e)}catch(n){i(n)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=mt()),i=r[t]||(r[t]=[]);return i.push(e),g.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||_(n[t])||e(n[t])}),function(){L(i,e)}}};var st=r.startSymbol(),ut=r.endSymbol(),ct="{{"==st||"}}"==ut?m:function(t){return t.replace(/\{\{/g,st).replace(/}}/g,ut)},ht=/^ngAttr[A-Z]/;return D.$$addBindingInfo=S?function(t,e){var n=t.data("$binding")||[];Rr(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:v,D.$$addBindingClass=S?function(t){A(t,"ng-binding")}:v,D.$$addScopeInfo=S?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:v,D.$$addScopeClass=S?function(t,e){A(t,e?"ng-isolate-scope":"ng-scope")}:v,D}]}function le(t){return xt(t.replace(Ai,""))}function ce(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue t;n+=(n.length>0?" ":"")+a}return n}function fe(t){t=Cr(t);var e=t.length;if(1>=e)return t;for(;e--;){var n=t[e];n.nodeType===Xr&&jr.call(t,e,1)}return t}function he(t,e){if(e&&$(e))return e;if($(t)){var n=Mi.exec(t);if(n)return n[3]}}function pe(){var t={},e=!1;this.register=function(e,n){pt(e,"controller"),w(e)?f(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(i,o){function a(t,e,n,i){if(!t||!w(t.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e);t.$scope[e]=n}return function(r,s,u,l){var c,h,p,d;if(u=u===!0,l&&$(l)&&(d=l),$(r)){if(h=r.match(Mi),!h)throw Di("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);p=h[1],d=d||h[3],r=t.hasOwnProperty(p)?t[p]:dt(s.$scope,p,!0)||(e?dt(o,p,!0):n),ht(r,p,!0)}if(u){var v=(Rr(r)?r[r.length-1]:r).prototype;c=Object.create(v||null),d&&a(s,d,c,p||r.name);var m;return m=f(function(){var t=i.invoke(r,c,s,p);return t!==c&&(w(t)||C(t))&&(c=t,d&&a(s,d,c,p||r.name)),c},{instance:c,identifier:d})}return c=i.instantiate(r,s,p),d&&a(s,d,c,p||r.name),c}}]}function de(){this.$get=["$window",function(t){return Cr(t.document)}]}function ve(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function me(t){return w(t)?S(t)?t.toISOString():Y(t):t}function ge(){this.$get=function(){return function(t){if(!t)return"";var e=[];return a(t,function(t,n){null===t||_(t)||(Rr(t)?o(t,function(t,r){e.push(rt(n)+"="+rt(me(t)))}):e.push(rt(n)+"="+rt(me(t))))}),e.join("&")}}}function ye(){this.$get=function(){return function(t){function e(t,r,i){null===t||_(t)||(Rr(t)?o(t,function(t,n){e(t,r+"["+(w(t)?n:"")+"]")}):w(t)&&!S(t)?a(t,function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))}):n.push(rt(r)+"="+rt(me(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function _e(t,e){if($(t)){var n=t.replace(Li,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(Ii)||be(n))&&(t=K(n))}}return t}function be(t){var e=t.match(Ni);return e&&Ri[e[0]].test(t)}function we(t){function e(t,e){t&&(r[t]=r[t]?r[t]+", "+e:e)}var n,r=mt();return $(t)?o(t.split("\n"),function(t){n=t.indexOf(":"),e(br(zr(t.substr(0,n))),zr(t.substr(n+1)))}):w(t)&&o(t,function(t,n){e(br(n),zr(t))}),r}function xe(t){var e;return function(n){if(e||(e=we(t)),n){var r=e[br(n)];return void 0===r&&(r=null),r}return e}}function $e(t,e,n,r){return C(r)?r(t,e,n):(o(r,function(r){t=r(t,e,n)}),t)}function ke(t){return t>=200&&300>t}function Se(){var t=this.defaults={transformResponse:[_e],transformRequest:[function(t){return!w(t)||j(t)||D(t)||A(t)?t:Y(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:q(Pi),put:q(Pi),patch:q(Pi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},e=!1;this.useApplyAsync=function(t){return b(t)?(e=!!t,this):e};var i=!0;this.useLegacyPromiseExtensions=function(t){return b(t)?(i=!!t,this):i};var a=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(s,u,l,c,h,p){function d(e){function a(t){var e=f({},t);return t.data?e.data=$e(t.data,t.headers,t.status,l.transformResponse):e.data=t.data,ke(t.status)?e:h.reject(e)}function s(t,e){var n,r={};return o(t,function(t,i){C(t)?(n=t(e),null!=n&&(r[i]=n)):r[i]=t}),r}function u(e){var n,r,i,o=t.headers,a=f({},e.headers);o=f({},o.common,o[br(e.method)]);t:for(n in o){r=br(n);for(i in a)if(br(i)===r)continue t;a[n]=o[n]}return s(a,q(e))}if(!Ir.isObject(e))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",e);var l=f({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);l.headers=u(e),l.method=xr(l.method),l.paramSerializer=$(l.paramSerializer)?p.get(l.paramSerializer):l.paramSerializer;var c=function(e){var r=e.headers,i=$e(e.data,xe(r),n,e.transformRequest);return _(i)&&o(r,function(t,e){"content-type"===br(e)&&delete r[e]}),_(e.withCredentials)&&!_(t.withCredentials)&&(e.withCredentials=t.withCredentials),g(e,i).then(a,a)},d=[c,n],v=h.when(l);for(o(k,function(t){(t.request||t.requestError)&&d.unshift(t.request,t.requestError),(t.response||t.responseError)&&d.push(t.response,t.responseError)});d.length;){var m=d.shift(),y=d.shift();v=v.then(m,y)}return i?(v.success=function(t){return ht(t,"fn"),v.then(function(e){t(e.data,e.status,e.headers,l)}),v},v.error=function(t){return ht(t,"fn"),v.then(null,function(e){t(e.data,e.status,e.headers,l)}),v}):(v.success=qi("success"),v.error=qi("error")),v}function v(t){o(arguments,function(t){d[t]=function(e,n){return d(f({},n||{},{method:t,url:e}))}})}function m(t){o(arguments,function(t){d[t]=function(e,n,r){return d(f({},r||{},{method:t,url:e,data:n}))}})}function g(r,i){function o(t,n,r,i){function o(){a(n,t,r,i)}p&&(ke(t)?p.put(k,[t,n,we(r),i]):p.remove(k)),e?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function a(t,e,n,i){e=e>=-1?e:0,(ke(e)?m.resolve:m.reject)({data:t,status:e,headers:xe(n),config:r,statusText:i})}function l(t){a(t.data,t.status,q(t.headers()),t.statusText)}function f(){var t=d.pendingRequests.indexOf(r);-1!==t&&d.pendingRequests.splice(t,1)}var p,v,m=h.defer(),g=m.promise,$=r.headers,k=y(r.url,r.paramSerializer(r.params));if(d.pendingRequests.push(r),g.then(f,f),!r.cache&&!t.cache||r.cache===!1||"GET"!==r.method&&"JSONP"!==r.method||(p=w(r.cache)?r.cache:w(t.cache)?t.cache:x),p&&(v=p.get(k),b(v)?O(v)?v.then(l,l):Rr(v)?a(v[1],v[0],q(v[2]),v[3]):a(v,200,{},"OK"):p.put(k,g)),_(v)){var S=En(r.url)?u()[r.xsrfCookieName||t.xsrfCookieName]:n;S&&($[r.xsrfHeaderName||t.xsrfHeaderName]=S),s(r.method,k,i,o,$,r.timeout,r.withCredentials,r.responseType)}return g}function y(t,e){return e.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+e),t}var x=l("$http");t.paramSerializer=$(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var k=[];return o(a,function(t){k.unshift($(t)?p.get(t):p.invoke(t))}),d.pendingRequests=[],v("get","delete","head","jsonp"),m("post","put","patch"),d.defaults=t,d}]}function Ce(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function Ee(){this.$get=["$browser","$window","$document","$xhrFactory",function(t,e,n,r){return Te(t,r,t.defer,e.angular.callbacks,n[0])}]}function Te(t,e,n,r,i){function a(t,e,n){var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=t,o.async=!0,a=function(t){ri(o,"load",a),ri(o,"error",a),i.body.removeChild(o),o=null;var s=-1,u="unknown";t&&("load"!==t.type||r[e].called||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&&n(s,u)},ni(o,"load",a),ni(o,"error",a),i.body.appendChild(o),a}return function(i,s,u,l,c,f,h,p){function d(){y&&y(),w&&w.abort()}function m(e,r,i,o,a){b(k)&&n.cancel(k),y=w=null,e(r,i,o,a),t.$$completeOutstandingRequest(v)}if(t.$$incOutstandingRequestCount(),s=s||t.url(),"jsonp"==br(i)){var g="_"+(r.counter++).toString(36);r[g]=function(t){r[g].data=t,r[g].called=!0};var y=a(s.replace("JSON_CALLBACK","angular.callbacks."+g),g,function(t,e){m(l,t,r[g].data,"",e),r[g]=v})}else{var w=e(i,s);w.open(i,s,!0),o(c,function(t,e){b(t)&&w.setRequestHeader(e,t)}),w.onload=function(){var t=w.statusText||"",e="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=e?200:"file"==Cn(s).protocol?404:0),m(l,n,e,w.getAllResponseHeaders(),t)};var x=function(){m(l,-1,null,null,"")};if(w.onerror=x,w.onabort=x,h&&(w.withCredentials=!0),p)try{w.responseType=p}catch($){if("json"!==p)throw $}w.send(_(u)?null:u)}if(f>0)var k=n(d,f);else O(f)&&f.then(d)}}function Fe(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(t){return"\\\\\\"+t}function a(n){return n.replace(h,t).replace(p,e)}function s(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=Y(t)}return t}function u(o,u,h,p){function d(t){try{return t=T(t),p&&!b(t)?t:s(t)}catch(e){r(Hi.interr(o,e))}}p=!!p;for(var v,m,g,y=0,w=[],x=[],$=o.length,k=[],S=[];$>y;){if(-1==(v=o.indexOf(t,y))||-1==(m=o.indexOf(e,v+l))){y!==$&&k.push(a(o.substring(y)));break}y!==v&&k.push(a(o.substring(y,v))),g=o.substring(v+l,m),w.push(g),x.push(n(g,d)),y=m+c,S.push(k.length),k.push("")}if(h&&k.length>1&&Hi.throwNoconcat(o),!u||w.length){var E=function(t){for(var e=0,n=w.length;n>e;e++){if(p&&_(t[e]))return;k[S[e]]=t[e]}return k.join("")},T=function(t){return h?i.getTrusted(h,t):i.valueOf(t)};return f(function(t){var e=0,n=w.length,i=new Array(n);try{for(;n>e;e++)i[e]=x[e](t);return E(i)}catch(a){r(Hi.interr(o,a))}},{exp:o,expressions:w,$$watchDelegate:function(t,e){var n;return t.$watchGroup(x,function(r,i){var o=E(r);C(e)&&e.call(this,o,r!==i?n:o,t),n=o})}})}}var l=t.length,c=e.length,h=new RegExp(t.replace(/./g,o),"g"),p=new RegExp(e.replace(/./g,o),"g");return u.startSymbol=function(){return t},u.endSymbol=function(){return e},u}]}function je(){this.$get=["$rootScope","$window","$q","$$q",function(t,e,n,r){function i(i,a,s,u){var l=arguments.length>4,c=l?W(arguments,4):[],f=e.setInterval,h=e.clearInterval,p=0,d=b(u)&&!u,v=(d?r:n).defer(),m=v.promise;return s=b(s)?s:0,m.then(null,null,l?function(){i.apply(null,c)}:i),m.$$intervalId=f(function(){v.notify(p++),s>0&&p>=s&&(v.resolve(p),h(m.$$intervalId),delete o[m.$$intervalId]),d||t.$apply()},a),o[m.$$intervalId]=v,m}var o={};return i.cancel=function(t){return t&&t.$$intervalId in o?(o[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete o[t.$$intervalId],!0):!1},i}]}function Ae(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=nt(e[n]);return e.join("/")}function De(t,e){var n=Cn(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=p(n.port)||Wi[n.protocol]||null}function Me(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=Cn(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=tt(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function Oe(t,e){return 0===e.indexOf(t)?e.substr(t.length):void 0}function Ie(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function Pe(t){return t.replace(/(#.+)|#$/,"$1")}function Ne(t){return t.substr(0,Ie(t).lastIndexOf("/")+1)}function Re(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Le(t,e,n){this.$$html5=!0,n=n||"",De(t,this),this.$$parse=function(t){var n=Oe(e,t);if(!$(n))throw Vi("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Me(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=et(this.$$search),n=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=Ae(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return b(o=Oe(t,r))?(a=o,s=b(o=Oe(n,o))?e+(Oe("/",o)||o):t+a):b(o=Oe(e,r))?s=e+o:e==r+"/"&&(s=e),s&&this.$$parse(s),!!s}}function ze(t,e,n){De(t,this),this.$$parse=function(r){function i(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}var o,a=Oe(t,r)||Oe(e,r);_(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",_(a)&&(t=r,this.replace())):(o=Oe(n,a),_(o)&&(o=a)),Me(o,this),this.$$path=i(this.$$path,o,t),this.$$compose()},this.$$compose=function(){var e=et(this.$$search),r=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=Ae(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return Ie(t)==Ie(e)?(this.$$parse(e),!0):!1}}function qe(t,e,n){this.$$html5=!0,ze.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return t==Ie(r)?o=r:(a=Oe(e,r))?o=t+n+a:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o},this.$$compose=function(){var e=et(this.$$search),r=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=Ae(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function He(t){return function(){return this[t]}}function Ue(t,e){return function(n){return _(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function We(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return b(e)?(t=e,this):t},this.html5Mode=function(t){return M(t)?(e.enabled=t,this):w(t)?(M(t.enabled)&&(e.enabled=t.enabled),M(t.requireBase)&&(e.requireBase=t.requireBase),M(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(t,e,n){var i=l.url(),o=l.$$state;try{r.url(t,e,n),l.$$state=r.state()}catch(a){throw l.url(i),l.$$state=o,a}}function u(t,e){n.$broadcast("$locationChangeSuccess",l.absUrl(),t,l.$$state,e)}var l,c,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw Vi("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=Re(p)+(h||"/"),c=i.history?Le:qe}else f=Ie(p),c=ze;var d=Ne(f);l=new c(f,d,"#"+t),l.$$parseLinkUrl(p,p),l.$$state=r.state();var v=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=Cr(t.target);"a"!==R(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var s=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");w(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=Cn(s.animVal).href),v.test(s)||!s||i.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(s,u)&&(t.preventDefault(),l.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),Pe(l.absUrl())!=Pe(p)&&r.url(l.absUrl(),!0);var m=!0;return r.onUrlChange(function(t,e){return _(Oe(d,t))?void(a.location.href=t):(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;l.$$parse(t),l.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,l.absUrl()===t&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(m=!1,u(i,o)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var t=Pe(r.url()),e=Pe(l.absUrl()),o=r.state(),a=l.$$replace,c=t!==e||l.$$html5&&i.history&&o!==l.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var e=l.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,l.$$state,o).defaultPrevented;l.absUrl()===e&&(r?(l.$$parse(t),l.$$state=o):(c&&s(e,a,o===l.$$state?null:l.$$state),u(t,o)))})),l.$$replace=!1}),l}]}function Ve(){var t=!0,e=this;this.debugEnabled=function(e){return b(e)?(t=e,this):t},this.$get=["$window",function(n){function r(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function i(t){var e=n.console||{},i=e[t]||e.log||v,a=!1;try{a=!!i.apply}catch(s){}return a?function(){var t=[];return o(arguments,function(e){t.push(r(e))}),i.apply(e,t)}:function(t,e){i(t,null==e?"":e)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function Be(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw Yi("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Ye(t,e){if(t+="",!$(t))throw Yi("iseccst","Cannot convert object to primitive value! Expression: {0}",e);return t}function Ke(t,e){if(t){if(t.constructor===t)throw Yi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw Yi("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw Yi("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw Yi("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function Ge(t,e){if(t){if(t.constructor===t)throw Yi("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===Ki||t===Gi||t===Xi)throw Yi("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function Xe(t,e){if(t&&(t===0..constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw Yi("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}function Je(t,e){return"undefined"!=typeof t?t:e}function Qe(t,e){return"undefined"==typeof t?e:"undefined"==typeof e?t:t+e}function Ze(t,e){var n=t(e);return!n.$stateful}function tn(t,e){var n,r;switch(t.type){case to.Program:n=!0,o(t.body,function(t){tn(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case to.Literal:t.constant=!0,t.toWatch=[];break;case to.UnaryExpression:tn(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case to.BinaryExpression:tn(t.left,e),tn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case to.LogicalExpression:tn(t.left,e),tn(t.right,e),t.constant=t.left.constant&&t.right.constant,
t.toWatch=t.constant?[]:[t];break;case to.ConditionalExpression:tn(t.test,e),tn(t.alternate,e),tn(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case to.Identifier:t.constant=!1,t.toWatch=[t];break;case to.MemberExpression:tn(t.object,e),t.computed&&tn(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case to.CallExpression:n=t.filter?Ze(e,t.callee.name):!1,r=[],o(t.arguments,function(t){tn(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&Ze(e,t.callee.name)?r:[t];break;case to.AssignmentExpression:tn(t.left,e),tn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case to.ArrayExpression:n=!0,r=[],o(t.elements,function(t){tn(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=r;break;case to.ObjectExpression:n=!0,r=[],o(t.properties,function(t){tn(t.value,e),n=n&&t.value.constant,t.value.constant||r.push.apply(r,t.value.toWatch)}),t.constant=n,t.toWatch=r;break;case to.ThisExpression:t.constant=!1,t.toWatch=[]}}function en(t){if(1==t.length){var e=t[0].expression,r=e.toWatch;return 1!==r.length?r:r[0]!==e?r:n}}function nn(t){return t.type===to.Identifier||t.type===to.MemberExpression}function rn(t){return 1===t.body.length&&nn(t.body[0].expression)?{type:to.AssignmentExpression,left:t.body[0].expression,right:{type:to.NGValueParameter},operator:"="}:void 0}function on(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===to.Literal||t.body[0].expression.type===to.ArrayExpression||t.body[0].expression.type===to.ObjectExpression)}function an(t){return t.constant}function sn(t,e){this.astBuilder=t,this.$filter=e}function un(t,e){this.astBuilder=t,this.$filter=e}function ln(t){return"constructor"==t}function cn(t){return C(t.valueOf)?t.valueOf():no.call(t)}function fn(){var t=mt(),e=mt();this.$get=["$filter",function(r){function i(t,e){return null==t||null==e?t===e:"object"==typeof t&&(t=cn(t),"object"==typeof t)?!1:t===e||t!==t&&e!==e}function a(t,e,r,o,a){var s,u=o.inputs;if(1===u.length){var l=i;return u=u[0],t.$watch(function(t){var e=u(t);return i(e,l)||(s=o(t,n,n,[e]),l=e&&cn(e)),s},e,r,a)}for(var c=[],f=[],h=0,p=u.length;p>h;h++)c[h]=i,f[h]=null;return t.$watch(function(t){for(var e=!1,r=0,a=u.length;a>r;r++){var l=u[r](t);(e||(e=!i(l,c[r])))&&(f[r]=l,c[r]=l&&cn(l))}return e&&(s=o(t,n,n,f)),s},e,r,a)}function s(t,e,n,r){var i,o;return i=t.$watch(function(t){return r(t)},function(t,n,r){o=t,C(e)&&e.apply(this,arguments),b(t)&&r.$$postDigest(function(){b(o)&&i()})},n)}function u(t,e,n,r){function i(t){var e=!0;return o(t,function(t){b(t)||(e=!1)}),e}var a,s;return a=t.$watch(function(t){return r(t)},function(t,n,r){s=t,C(e)&&e.call(this,t,n,r),i(t)&&r.$$postDigest(function(){i(s)&&a()})},n)}function l(t,e,n,r){var i;return i=t.$watch(function(t){return r(t)},function(t,n,r){C(e)&&e.apply(this,arguments),i()},n)}function c(t,e){if(!e)return t;var n=t.$$watchDelegate,r=n!==u&&n!==s,i=r?function(n,r,i,o){var a=t(n,r,i,o);return e(a,n,r)}:function(n,r,i,o){var a=t(n,r,i,o),s=e(a,n,r);return b(a)?s:a};return t.$$watchDelegate&&t.$$watchDelegate!==a?i.$$watchDelegate=t.$$watchDelegate:e.$stateful||(i.$$watchDelegate=a,i.inputs=t.inputs?t.inputs:[t]),i}var f=Hr().noUnsafeEval,h={csp:f,expensiveChecks:!1},p={csp:f,expensiveChecks:!0};return function(n,i,o){var f,d,m;switch(typeof n){case"string":n=n.trim(),m=n;var g=o?e:t;if(f=g[m],!f){":"===n.charAt(0)&&":"===n.charAt(1)&&(d=!0,n=n.substring(2));var y=o?p:h,_=new Zi(y),b=new eo(_,r,y);f=b.parse(n),f.constant?f.$$watchDelegate=l:d?f.$$watchDelegate=f.literal?u:s:f.inputs&&(f.$$watchDelegate=a),g[m]=f}return c(f,i);case"function":return c(n,i);default:return v}}}]}function hn(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return dn(function(e){t.$evalAsync(e)},e)}]}function pn(){this.$get=["$browser","$exceptionHandler",function(t,e){return dn(function(e){t.defer(e)},e)}]}function dn(t,e){function i(t,e,n){function r(e){return function(n){i||(i=!0,e.call(t,n))}}var i=!1;return[r(e),r(n)]}function a(){this.$$state={status:0}}function s(t,e){return function(n){e.call(t,n)}}function u(t){var r,i,o;o=t.pending,t.processScheduled=!1,t.pending=n;for(var a=0,s=o.length;s>a;++a){i=o[a][0],r=o[a][t.status];try{C(r)?i.resolve(r(t.value)):1===t.status?i.resolve(t.value):i.reject(t.value)}catch(u){i.reject(u),e(u)}}}function l(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t(function(){u(e)}))}function c(){this.promise=new a,this.resolve=s(this,this.resolve),this.reject=s(this,this.reject),this.notify=s(this,this.notify)}function h(t){var e=new c,n=0,r=Rr(t)?[]:{};return o(t,function(t,i){n++,y(t).then(function(t){r.hasOwnProperty(i)||(r[i]=t,--n||e.resolve(r))},function(t){r.hasOwnProperty(i)||e.reject(t)})}),0===n&&e.resolve(r),e.promise}var p=r("$q",TypeError),d=function(){return new c};f(a.prototype,{then:function(t,e,n){if(_(t)&&_(e)&&_(n))return this;var r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&l(this.$$state),r.promise},"catch":function(t){return this.then(null,t)},"finally":function(t,e){return this.then(function(e){return g(e,!0,t)},function(e){return g(e,!1,t)},e)}}),f(c.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(p("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){var n,r;r=i(this,this.$$resolve,this.$$reject);try{(w(t)||C(t))&&(n=t&&t.then),C(n)?(this.promise.$$state.status=-1,n.call(t,r[0],r[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,l(this.promise.$$state))}catch(o){r[1](o),e(o)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,l(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,i,o=0,a=r.length;a>o;o++){i=r[o][0],t=r[o][3];try{i.notify(C(t)?t(n):n)}catch(s){e(s)}}})}});var v=function(t){var e=new c;return e.reject(t),e.promise},m=function(t,e){var n=new c;return e?n.resolve(t):n.reject(t),n.promise},g=function(t,e,n){var r=null;try{C(n)&&(r=n())}catch(i){return m(i,!1)}return O(r)?r.then(function(){return m(t,e)},function(t){return m(t,!1)}):m(t,e)},y=function(t,e,n,r){var i=new c;return i.resolve(t),i.promise.then(e,n,r)},b=y,x=function $(t){function e(t){r.resolve(t)}function n(t){r.reject(t)}if(!C(t))throw p("norslvr","Expected resolverFn, got '{0}'",t);if(!(this instanceof $))return new $(t);var r=new c;return t(e,n),r.promise};return x.defer=d,x.reject=v,x.when=y,x.resolve=b,x.all=h,x}function vn(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function mn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null}return e.prototype=t,e}var e=10,n=r("$rootScope"),a=null,s=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,l,c,f){function h(t){t.currentScope.$$destroyed=!0}function p(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function d(t){if(k.$$phase)throw n("inprog","{0} already in progress",k.$$phase);k.$$phase=t}function m(){k.$$phase=null}function g(t,e){do t.$$watchersCount+=e;while(t=t.$parent)}function y(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function b(){}function x(){for(;T.length;)try{T.shift()()}catch(t){l(t)}s=null}function $(){null===s&&(s=f.defer(function(){k.$apply(x)}))}p.prototype={constructor:p,$new:function(e,n){var r;return n=n||this,e?(r=new p,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!=this)&&r.$on("$destroy",h),r},$watch:function(t,e,n,r){var i=c(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,s=o.$$watchers,u={fn:e,last:b,get:i,exp:r||t,eq:!!n};return a=null,C(e)||(u.fn=v),s||(s=o.$$watchers=[]),s.unshift(u),g(this,1),function(){L(s,u)>=0&&g(o,-1),a=null}},$watchGroup:function(t,e){function n(){u=!1,l?(l=!1,e(i,i,s)):e(i,r,s)}var r=new Array(t.length),i=new Array(t.length),a=[],s=this,u=!1,l=!0;if(!t.length){var c=!0;return s.$evalAsync(function(){c&&e(i,i,s)}),function(){c=!1}}return 1===t.length?this.$watch(t[0],function(t,n,o){i[0]=t,r[0]=n,e(i,t===n?i:r,o)}):(o(t,function(t,e){var o=s.$watch(t,function(t,o){i[e]=t,r[e]=o,u||(u=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(t,e){function n(t){o=t;var e,n,r,s,u;if(!_(o)){if(w(o))if(i(o)){a!==p&&(a=p,m=a.length=0,f++),e=o.length,m!==e&&(f++,a.length=m=e);for(var l=0;e>l;l++)u=a[l],s=o[l],r=u!==u&&s!==s,r||u===s||(f++,a[l]=s)}else{a!==d&&(a=d={},m=0,f++),e=0;for(n in o)wr.call(o,n)&&(e++,s=o[n],u=a[n],n in a?(r=u!==u&&s!==s,r||u===s||(f++,a[n]=s)):(m++,a[n]=s,f++));if(m>e){f++;for(n in a)wr.call(o,n)||(m--,delete a[n])}}else a!==o&&(a=o,f++);return f}}function r(){if(v?(v=!1,e(o,o,u)):e(o,s,u),l)if(w(o))if(i(o)){s=new Array(o.length);for(var t=0;t<o.length;t++)s[t]=o[t]}else{s={};for(var n in o)wr.call(o,n)&&(s[n]=o[n])}else s=o}n.$stateful=!0;var o,a,s,u=this,l=e.length>1,f=0,h=c(t,n),p=[],d={},v=!0,m=0;return this.$watch(h,r)},$digest:function(){var t,r,i,o,u,c,h,p,v,g,y=e,_=this,w=[];d("$digest"),f.$$checkUrlChange(),this===k&&null!==s&&(f.defer.cancel(s),x()),a=null;do{for(c=!1,p=_;S.length;){try{g=S.shift(),g.scope.$eval(g.expression,g.locals)}catch($){l($)}a=null}t:do{if(o=p.$$watchers)for(u=o.length;u--;)try{if(t=o[u])if((r=t.get(p))===(i=t.last)||(t.eq?H(r,i):"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))){if(t===a){c=!1;break t}}else c=!0,a=t,t.last=t.eq?z(r,null):r,t.fn(r,i===b?r:i,p),5>y&&(v=4-y,w[v]||(w[v]=[]),w[v].push({msg:C(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:r,oldVal:i}))}catch($){l($)}if(!(h=p.$$watchersCount&&p.$$childHead||p!==_&&p.$$nextSibling))for(;p!==_&&!(h=p.$$nextSibling);)p=p.$parent}while(p=h);if((c||S.length)&&!y--)throw m(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,w)}while(c||S.length);for(m();E.length;)try{E.shift()()}catch($){l($)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===k&&f.$$applicationDestroyed(),g(this,-this.$$watchersCount);for(var e in this.$$listenerCount)y(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=v,this.$on=this.$watch=this.$watchGroup=function(){return v},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}},$eval:function(t,e){return c(t)(this,e)},$evalAsync:function(t,e){k.$$phase||S.length||f.defer(function(){S.length&&k.$digest()}),S.push({scope:this,expression:t,locals:e})},$$postDigest:function(t){E.push(t)},$apply:function(t){try{d("$apply");try{return this.$eval(t)}finally{m()}}catch(e){l(e)}finally{try{k.$digest()}catch(e){throw l(e),e}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&T.push(e),$()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);-1!==r&&(n[r]=null,y(i,1,t))}},$emit:function(t,e){var n,r,i,o=[],a=this,s=!1,u={name:t,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=U([u],arguments,1);do{for(n=a.$$listeners[t]||o,u.currentScope=a,r=0,i=n.length;i>r;r++)if(n[r])try{n[r].apply(null,c)}catch(f){l(f)}else n.splice(r,1),r--,i--;if(s)return u.currentScope=null,u;a=a.$parent}while(a);return u.currentScope=null,u},$broadcast:function(t,e){var n=this,r=n,i=n,o={name:t,targetScope:n,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return o;for(var a,s,u,c=U([o],arguments,1);r=i;){for(o.currentScope=r,a=r.$$listeners[t]||[],s=0,u=a.length;u>s;s++)if(a[s])try{a[s].apply(null,c)}catch(f){l(f)}else a.splice(s,1),s--,u--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var k=new p,S=k.$$asyncQueue=[],E=k.$$postDigestQueue=[],T=k.$$applyAsyncQueue=[];return k}]}function gn(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return b(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return b(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return i=Cn(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function yn(t){if("self"===t)return t;if($(t)){if(t.indexOf("***")>-1)throw ro("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=qr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(E(t))return new RegExp("^"+t.source+"$");throw ro("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function _n(t){var e=[];return b(t)&&o(t,function(t){e.push(yn(t))}),e}function bn(){this.SCE_CONTEXTS=io;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=_n(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=_n(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?En(e):!!t.exec(e.href)}function i(n){var i,o,a=Cn(n.toString()),s=!1;for(i=0,o=t.length;o>i;i++)if(r(t[i],a)){s=!0;break}if(s)for(i=0,o=e.length;o>i;i++)if(r(e[i],a)){s=!1;break}return s}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}function a(t,e){var n=f.hasOwnProperty(t)?f[t]:null;if(!n)throw ro("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||_(e)||""===e)return e;if("string"!=typeof e)throw ro("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)}function s(t){return t instanceof c?t.$$unwrapTrustedValue():t}function u(t,e){if(null===e||_(e)||""===e)return e;var n=f.hasOwnProperty(t)?f[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===io.RESOURCE_URL){if(i(e))return e;throw ro("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",e.toString())}if(t===io.HTML)return l(e);throw ro("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(t){throw ro("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var c=o(),f={};return f[io.HTML]=o(c),f[io.CSS]=o(c),f[io.URL]=o(c),f[io.JS]=o(c),f[io.RESOURCE_URL]=o(f[io.URL]),{trustAs:a,getTrusted:u,valueOf:s}}]}function wn(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&8>Sr)throw ro("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=q(io);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=m),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:e(n,function(e){return r.getTrusted(t,e)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(io,function(t,e){var n=br(e);r[xt("parse_as_"+n)]=function(e){return i(t,e)},r[xt("get_trusted_"+n)]=function(e){return a(t,e)},r[xt("trust_as_"+n)]=function(e){return s(t,e)}}),r}]}function xn(){this.$get=["$window","$document",function(t,e){var n,r,i={},o=p((/android (\d+)/.exec(br((t.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((t.navigator||{}).userAgent),s=e[0]||{},u=/^(Moz|webkit|ms)(?=[A-Z])/,l=s.body&&s.body.style,c=!1,f=!1;if(l){for(var h in l)if(r=u.exec(h)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in l&&"webkit"),c=!!("transition"in l||n+"Transition"in l),f=!!("animation"in l||n+"Animation"in l),!o||c&&f||(c=$(l.webkitTransition),f=$(l.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||4>o||a),hasEvent:function(t){if("input"===t&&11>=Sr)return!1;if(_(i[t])){var e=s.createElement("div");i[t]="on"+t in e}return i[t]},csp:Hr(),vendorPrefix:n,transitions:c,animations:f,android:o}}]}function $n(){this.$get=["$templateCache","$http","$q","$sce",function(t,e,n,r){function i(o,a){function s(t){if(!a)throw ji("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,t.status,t.statusText);return n.reject(t)}i.totalPendingRequests++,$(o)&&t.get(o)||(o=r.getTrustedResourceUrl(o));var u=e.defaults&&e.defaults.transformResponse;Rr(u)?u=u.filter(function(t){return t!==_e}):u===_e&&(u=null);var l={cache:t,transformResponse:u};return e.get(o,l)["finally"](function(){i.totalPendingRequests--}).then(function(e){return t.put(o,e.data),e.data},s)}return i.totalPendingRequests=0,i}]}function kn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var r={};return r.findBindings=function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return o(r,function(t){var r=Ir.element(t).data("$binding");r&&o(r,function(r){if(n){var o=new RegExp("(^|\\s)"+qr(e)+"(\\s|\\||$)");o.test(r)&&i.push(t)}else-1!=r.indexOf(e)&&i.push(t)})}),i},r.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+e+'"]',s=t.querySelectorAll(a);if(s.length)return s}},r.getLocation=function(){return n.url()},r.setLocation=function(e){e!==n.url()&&(n.url(e),t.$digest())},r.whenStable=function(t){e.notifyWhenNoOutstandingRequests(t)},r}]}function Sn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){function o(o,s,u){C(o)||(u=s,s=o,o=v);var l,c=W(arguments,3),f=b(u)&&!u,h=(f?r:n).defer(),p=h.promise;return l=e.defer(function(){try{h.resolve(o.apply(null,c))}catch(e){h.reject(e),i(e)}finally{delete a[p.$$timeoutId]}f||t.$apply()},s),p.$$timeoutId=l,a[l]=h,p}var a={};return o.cancel=function(t){return t&&t.$$timeoutId in a?(a[t.$$timeoutId].reject("canceled"),delete a[t.$$timeoutId],e.defer.cancel(t.$$timeoutId)):!1},o}]}function Cn(t){var e=t;return Sr&&(oo.setAttribute("href",e),e=oo.href),oo.setAttribute("href",e),{href:oo.href,protocol:oo.protocol?oo.protocol.replace(/:$/,""):"",host:oo.host,search:oo.search?oo.search.replace(/^\?/,""):"",hash:oo.hash?oo.hash.replace(/^#/,""):"",hostname:oo.hostname,port:oo.port,pathname:"/"===oo.pathname.charAt(0)?oo.pathname:"/"+oo.pathname}}function En(t){var e=$(t)?Cn(t):t;return e.protocol===ao.protocol&&e.host===ao.host}function Tn(){this.$get=g(t)}function Fn(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var n=t[0]||{},r={},i="";return function(){var t,o,a,s,u,l=n.cookie||"";if(l!==i)for(i=l,t=i.split("; "),r={},a=0;a<t.length;a++)o=t[a],s=o.indexOf("="),s>0&&(u=e(o.substring(0,s)),_(r[u])&&(r[u]=e(o.substring(s+1))));return r}}function jn(){this.$get=Fn}function An(t){function e(r,i){if(w(r)){var a={};return o(r,function(t,n){a[n]=e(n,t)}),a}return t.factory(r+n,i)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",Pn),e("date",Gn),e("filter",Dn),e("json",Xn),e("limitTo",Jn),e("lowercase",fo),e("number",Nn),e("orderBy",Qn),e("uppercase",ho)}function Dn(){return function(t,e,n){if(!i(t)){if(null==t)return t;throw r("filter")("notarray","Expected array but received: {0}",t)}var o,a,s=In(e);switch(s){case"function":o=e;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=Mn(e,n,a);break;default:return t}return Array.prototype.filter.call(t,o)}}function Mn(t,e,n){var r,i=w(t)&&"$"in t;return e===!0?e=H:C(e)||(e=function(t,e){return _(t)?!1:null===t||null===e?t===e:w(e)||w(t)&&!y(t)?!1:(t=br(""+t),e=br(""+e),-1!==t.indexOf(e))}),r=function(r){return i&&!w(r)?On(r,t.$,e,!1):On(r,t,e,n)}}function On(t,e,n,r,i){var o=In(t),a=In(e);if("string"===a&&"!"===e.charAt(0))return!On(t,e.substring(1),n,r);if(Rr(t))return t.some(function(t){return On(t,e,n,r)});switch(o){case"object":var s;if(r){for(s in t)if("$"!==s.charAt(0)&&On(t[s],e,n,!0))return!0;return i?!1:On(t,e,n,!1)}if("object"===a){for(s in e){var u=e[s];if(!C(u)&&!_(u)){var l="$"===s,c=l?t:t[s];if(!On(c,u,n,l,l))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function In(t){return null===t?"null":typeof t}function Pn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return _(n)&&(n=e.CURRENCY_SYM),_(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Rn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Nn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Rn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Rn(t,e,n,r,i){if(w(t))return"";var o=0>t;t=Math.abs(t);var a=t===1/0;if(!a&&!isFinite(t))return"";var s=t+"",u="",l=!1,c=[];if(a&&(u="∞"),!a&&-1!==s.indexOf("e")){var f=s.match(/([\d\.]+)e(-?)(\d+)/);f&&"-"==f[2]&&f[3]>i+1?t=0:(u=s,l=!0)}if(a||l)i>0&&1>t&&(u=t.toFixed(i),t=parseFloat(u),u=u.replace(so,r));else{var h=(s.split(so)[1]||"").length;_(i)&&(i=Math.min(Math.max(e.minFrac,h),e.maxFrac)),t=+(Math.round(+(t.toString()+"e"+i)).toString()+"e"+-i);var p=(""+t).split(so),d=p[0];p=p[1]||"";var v,m=0,g=e.lgSize,y=e.gSize;if(d.length>=g+y)for(m=d.length-g,v=0;m>v;v++)(m-v)%y===0&&0!==v&&(u+=n),u+=d.charAt(v);for(v=m;v<d.length;v++)(d.length-v)%g===0&&0!==v&&(u+=n),u+=d.charAt(v);for(;p.length<i;)p+="0";i&&"0"!==i&&(u+=r+p.substr(0,i))}return 0===t&&(o=!1),c.push(o?e.negPre:e.posPre,u,o?e.negSuf:e.posSuf),c.join("")}function Ln(t,e,n){var r="";for(0>t&&(r="-",t=-t),t=""+t;t.length<e;)t="0"+t;return n&&(t=t.substr(t.length-e)),r+t}function zn(t,e,n,r){return n=n||0,function(i){var o=i["get"+t]();return(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),Ln(o,e,r)}}function qn(t,e){return function(n,r){var i=n["get"+t](),o=xr(e?"SHORT"+t:t);return r[o][i]}}function Hn(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=Ln(Math[r>0?"floor":"ceil"](r/60),2)+Ln(Math.abs(r%60),2)}function Un(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(4>=e?5:12)-e)}function Wn(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Vn(t){return function(e){var n=Un(e.getFullYear()),r=Wn(e),i=+r-+n,o=1+Math.round(i/6048e5);return Ln(o,t)}}function Bn(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function Yn(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function Kn(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function Gn(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,a=e[8]?r.setUTCFullYear:r.setFullYear,s=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=p(e[9]+e[10]),o=p(e[9]+e[11])),a.call(r,p(e[1]),p(e[2])-1,p(e[3]));var u=p(e[4]||0)-i,l=p(e[5]||0)-o,c=p(e[6]||0),f=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(r,u,l,c,f),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,u="",l=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,$(n)&&(n=co.test(n)?p(n):e(n)),k(n)&&(n=new Date(n)),!S(n)||!isFinite(n.getTime()))return n;for(;r;)s=lo.exec(r),s?(l=U(l,s,1),r=l.pop()):(l.push(r),r=null);var c=n.getTimezoneOffset();return i&&(c=G(i,n.getTimezoneOffset()),n=J(n,i,!0)),o(l,function(e){a=uo[e],u+=a?a(n,t.DATETIME_FORMATS,c):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function Xn(){return function(t,e){return _(e)&&(e=2),Y(t,e)}}function Jn(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):p(e),isNaN(e)?t:(k(t)&&(t=t.toString()),Rr(t)||$(t)?(n=!n||isNaN(n)?0:p(n),n=0>n&&n>=-t.length?t.length+n:n,e>=0?t.slice(n,n+e):0===n?t.slice(e,t.length):t.slice(Math.max(0,n+e),n)):t)}}function Qn(t){function e(e,n){return n=n?-1:1,e.map(function(e){var r=1,i=m;if(C(e))i=e;else if($(e)&&(("+"==e.charAt(0)||"-"==e.charAt(0))&&(r="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e),i.constant))){var o=i();i=function(t){return t[o]}}return{get:i,descending:r*n}})}function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function r(t,e){return"function"==typeof t.valueOf&&(t=t.valueOf(),n(t))?t:y(t)&&(t=t.toString(),n(t))?t:e}function o(t,e){var n=typeof t;return null===t?(n="string",t="null"):"string"===n?t=t.toLowerCase():"object"===n&&(t=r(t,e)),{value:t,type:n}}function a(t,e){var n=0;return t.type===e.type?t.value!==e.value&&(n=t.value<e.value?-1:1):n=t.type<e.type?-1:1,n}return function(t,n,r){function s(t,e){return{value:t,predicateValues:l.map(function(n){return o(n.get(t),e)})}}function u(t,e){for(var n=0,r=0,i=l.length;i>r&&!(n=a(t.predicateValues[r],e.predicateValues[r])*l[r].descending);++r);return n}if(!i(t))return t;Rr(n)||(n=[n]),0===n.length&&(n=["+"]);var l=e(n,r);l.push({get:function(){return{}},descending:r?-1:1});var c=Array.prototype.map.call(t,s);return c.sort(u),t=c.map(function(t){return t.value})}}function Zn(t){return C(t)&&(t={link:t}),t.restrict=t.restrict||"AC",g(t)}function tr(t,e){t.$name=e}function er(t,e,r,i,a){var s=this,u=[];s.$error={},s.$$success={},s.$pending=n,s.$name=a(e.name||e.ngForm||"")(r),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,s.$$parentForm=mo,s.$rollbackViewValue=function(){o(u,function(t){t.$rollbackViewValue()})},s.$commitViewValue=function(){o(u,function(t){t.$commitViewValue()})},s.$addControl=function(t){pt(t.$name,"input"),u.push(t),t.$name&&(s[t.$name]=t),t.$$parentForm=s},s.$$renameControl=function(t,e){var n=t.$name;s[n]===t&&delete s[n],s[e]=t,t.$name=e},s.$removeControl=function(t){t.$name&&s[t.$name]===t&&delete s[t.$name],o(s.$pending,function(e,n){s.$setValidity(n,null,t)}),o(s.$error,function(e,n){s.$setValidity(n,null,t)}),o(s.$$success,function(e,n){s.$setValidity(n,null,t)}),L(u,t),t.$$parentForm=mo},mr({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];if(r){var i=r.indexOf(n);-1===i&&r.push(n)}else t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(L(r,n),0===r.length&&delete t[e])},$animate:i}),s.$setDirty=function(){i.removeClass(t,Qo),i.addClass(t,Zo),s.$dirty=!0,s.$pristine=!1,s.$$parentForm.$setDirty()},s.$setPristine=function(){i.setClass(t,Qo,Zo+" "+go),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,o(u,function(t){t.$setPristine()})},s.$setUntouched=function(){o(u,function(t){t.$setUntouched()})},s.$setSubmitted=function(){i.addClass(t,go),s.$submitted=!0,s.$$parentForm.$setSubmitted()}}function nr(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function rr(t,e,n,r,i,o){ir(t,e,n,r,i,o),nr(r)}function ir(t,e,n,r,i,o){var a=br(e[0].type);if(!i.android){var s=!1;e.on("compositionstart",function(t){s=!0}),e.on("compositionend",function(){s=!1,u()})}var u=function(t){if(l&&(o.defer.cancel(l),l=null),!s){var i=e.val(),u=t&&t.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=zr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,u)}};if(i.hasEvent("input"))e.on("input",u);else{var l,c=function(t,e,n){l||(l=o.defer(function(){l=null,e&&e.value===n||u(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||e>15&&19>e||e>=37&&40>=e||c(t,this,this.value)}),i.hasEvent("paste")&&e.on("paste cut",c)}e.on("change",u),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function or(t,e){if(S(t))return t;if($(t)){Eo.lastIndex=0;var n=Eo.exec(t);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=Un(r),c=7*(i-1);return e&&(o=e.getHours(),a=e.getMinutes(),s=e.getSeconds(),u=e.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,s,u)}}return NaN}function ar(t,e){return function(n,r){var i,a;if(S(n))return n;if($(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),wo.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(t,n){n<e.length&&(a[e[n]]=+t)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function sr(t,e,r,i){return function(o,a,s,u,l,c,f){function h(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())}function p(t){return b(t)&&!S(t)?r(t)||n:t}ur(o,a,s,u),ir(o,a,s,u,l,c);var d,v=u&&u.$options&&u.$options.timezone;if(u.$$parserName=t,u.$parsers.push(function(t){if(u.$isEmpty(t))return null;if(e.test(t)){var i=r(t,d);return v&&(i=J(i,v)),i}return n}),u.$formatters.push(function(t){if(t&&!S(t))throw ra("datefmt","Expected `{0}` to be a date",t);return h(t)?(d=t,d&&v&&(d=J(d,v,!0)),f("date")(t,i,v)):(d=null,"")}),b(s.min)||s.ngMin){var m;u.$validators.min=function(t){return!h(t)||_(m)||r(t)>=m},s.$observe("min",function(t){m=p(t),u.$validate()})}if(b(s.max)||s.ngMax){var g;u.$validators.max=function(t){return!h(t)||_(g)||r(t)<=g},s.$observe("max",function(t){g=p(t),u.$validate()})}}}function ur(t,e,r,i){var o=e[0],a=i.$$hasNativeValidators=w(o.validity);a&&i.$parsers.push(function(t){var r=e.prop(_r)||{};return r.badInput&&!r.typeMismatch?n:t})}function lr(t,e,r,i,o,a){if(ur(t,e,r,i),ir(t,e,r,i,o,a),i.$$parserName="number",i.$parsers.push(function(t){return i.$isEmpty(t)?null:ko.test(t)?parseFloat(t):n}),i.$formatters.push(function(t){if(!i.$isEmpty(t)){if(!k(t))throw ra("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),b(r.min)||r.ngMin){var s;i.$validators.min=function(t){return i.$isEmpty(t)||_(s)||t>=s},r.$observe("min",function(t){b(t)&&!k(t)&&(t=parseFloat(t,10)),s=k(t)&&!isNaN(t)?t:n,i.$validate()})}if(b(r.max)||r.ngMax){var u;i.$validators.max=function(t){return i.$isEmpty(t)||_(u)||u>=t},r.$observe("max",function(t){b(t)&&!k(t)&&(t=parseFloat(t,10)),u=k(t)&&!isNaN(t)?t:n,i.$validate()})}}function cr(t,e,n,r,i,o){ir(t,e,n,r,i,o),nr(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||xo.test(n)}}function fr(t,e,n,r,i,o){ir(t,e,n,r,i,o),nr(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||$o.test(n)}}function hr(t,e,n,r){_(n.name)&&e.attr("name",u());var i=function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)};e.on("click",i),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function pr(t,e,n,r,i){var o;if(b(r)){if(o=t(r),!o.constant)throw ra("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);
return o(e)}return i}function dr(t,e,n,r,i,o,a,s){var u=pr(s,t,"ngTrueValue",n.ngTrueValue,!0),l=pr(s,t,"ngFalseValue",n.ngFalseValue,!1),c=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",c),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return t===!1},r.$formatters.push(function(t){return H(t,u)}),r.$parsers.push(function(t){return t?u:l})}function vr(t,e){return t="ngClass"+t,["$animate",function(n){function r(t,e){var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i==e[o])continue t;n.push(i)}return n}function i(t){var e=[];return Rr(t)?(o(t,function(t){e=e.concat(i(t))}),e):$(t)?t.split(" "):w(t)?(o(t,function(t,n){t&&(e=e.concat(n.split(" ")))}),e):t}return{restrict:"AC",link:function(a,s,u){function l(t){var e=f(t,1);u.$addClass(e)}function c(t){var e=f(t,-1);u.$removeClass(e)}function f(t,e){var n=s.data("$classCounts")||mt(),r=[];return o(t,function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&r.push(t))}),s.data("$classCounts",n),r.join(" ")}function h(t,e){var i=r(e,t),o=r(t,e);i=f(i,1),o=f(o,-1),i&&i.length&&n.addClass(s,i),o&&o.length&&n.removeClass(s,o)}function p(t){if(e===!0||a.$index%2===e){var n=i(t||[]);if(d){if(!H(t,d)){var r=i(d);h(r,n)}}else l(n)}d=q(t)}var d;a.$watch(u[t],p,!0),u.$observe("class",function(e){p(a.$eval(u[t]))}),"ngClass"!==t&&a.$watch("$index",function(n,r){var o=1&n;if(o!==(1&r)){var s=i(a.$eval(u[t]));o===e?l(s):c(s)}})}}}]}function mr(t){function e(t,e,u){_(e)?r("$pending",t,u):i("$pending",t,u),M(e)?e?(f(s.$error,t,u),c(s.$$success,t,u)):(c(s.$error,t,u),f(s.$$success,t,u)):(f(s.$error,t,u),f(s.$$success,t,u)),s.$pending?(o(na,!0),s.$valid=s.$invalid=n,a("",null)):(o(na,!1),s.$valid=gr(s.$error),s.$invalid=!s.$valid,a("",s.$valid));var l;l=s.$pending&&s.$pending[t]?n:s.$error[t]?!1:s.$$success[t]?!0:null,a(t,l),s.$$parentForm.$setValidity(t,l,s)}function r(t,e,n){s[t]||(s[t]={}),c(s[t],e,n)}function i(t,e,r){s[t]&&f(s[t],e,r),gr(s[t])&&(s[t]=n)}function o(t,e){e&&!l[t]?(h.addClass(u,t),l[t]=!0):!e&&l[t]&&(h.removeClass(u,t),l[t]=!1)}function a(t,e){t=t?"-"+lt(t,"-"):"",o(Xo+t,e===!0),o(Jo+t,e===!1)}var s=t.ctrl,u=t.$element,l={},c=t.set,f=t.unset,h=t.$animate;l[Jo]=!(l[Xo]=u.hasClass(Xo)),s.$setValidity=e}function gr(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var yr=/^\/(.+)\/([a-z]*)$/,_r="validity",br=function(t){return $(t)?t.toLowerCase():t},wr=Object.prototype.hasOwnProperty,xr=function(t){return $(t)?t.toUpperCase():t},$r=function(t){return $(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},kr=function(t){return $(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t};"i"!=="I".toLowerCase()&&(br=$r,xr=kr);var Sr,Cr,Er,Tr,Fr=[].slice,jr=[].splice,Ar=[].push,Dr=Object.prototype.toString,Mr=Object.getPrototypeOf,Or=r("ng"),Ir=t.angular||(t.angular={}),Pr=0;Sr=e.documentMode,v.$inject=[],m.$inject=[];var Nr,Rr=Array.isArray,Lr=/^\[object (Uint8(Clamped)?)|(Uint16)|(Uint32)|(Int8)|(Int16)|(Int32)|(Float(32)|(64))Array\]$/,zr=function(t){return $(t)?t.trim():t},qr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Hr=function(){function t(){try{return new Function(""),!1}catch(t){return!0}}if(!b(Hr.rules)){var n=e.querySelector("[ng-csp]")||e.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Hr.rules={noUnsafeEval:!r||-1!==r.indexOf("no-unsafe-eval"),noInlineStyle:!r||-1!==r.indexOf("no-inline-style")}}else Hr.rules={noUnsafeEval:t(),noInlineStyle:!1}}return Hr.rules},Ur=function(){if(b(Ur.name_))return Ur.name_;var t,n,r,i,o=Wr.length;for(n=0;o>n;++n)if(r=Wr[n],t=e.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return Ur.name_=i},Wr=["ng-","data-ng-","ng:","x-ng-"],Vr=/[A-Z]/g,Br=!1,Yr=1,Kr=2,Gr=3,Xr=8,Jr=9,Qr=11,Zr={full:"1.4.7",major:1,minor:4,dot:7,codeName:"dark-luminescence"};Tt.expando="ng339";var ti=Tt.cache={},ei=1,ni=function(t,e,n){t.addEventListener(e,n,!1)},ri=function(t,e,n){t.removeEventListener(e,n,!1)};Tt._data=function(t){return this.cache[t[this.expando]]||{}};var ii=/([\:\-\_]+(.))/g,oi=/^moz([A-Z])/,ai={mouseleave:"mouseout",mouseenter:"mouseover"},si=r("jqLite"),ui=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,li=/<|&#?\w+;/,ci=/<([\w:-]+)/,fi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,hi={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};hi.optgroup=hi.option,hi.tbody=hi.tfoot=hi.colgroup=hi.caption=hi.thead,hi.th=hi.td;var pi=Tt.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===e.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),Tt(t).on("load",r))},toString:function(){var t=[];return o(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return Cr(t>=0?this[t]:this[this.length+t])},length:0,push:Ar,sort:[].sort,splice:[].splice},di={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){di[br(t)]=t});var vi={};o("input,select,option,textarea,button,form,details".split(","),function(t){vi[t]=!0});var mi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:Ot,removeData:Dt,hasData:St},function(t,e){Tt[e]=t}),o({data:Ot,inheritedData:zt,scope:function(t){return Cr.data(t,"$scope")||zt(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Cr.data(t,"$isolateScope")||Cr.data(t,"$isolateScopeNoTemplate")},controller:Lt,injector:function(t){return zt(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:It,css:function(t,e,n){return e=xt(e),b(n)?void(t.style[e]=n):t.style[e]},attr:function(t,e,r){var i=t.nodeType;if(i!==Gr&&i!==Kr&&i!==Xr){var o=br(e);if(di[o]){if(!b(r))return t[e]||(t.attributes.getNamedItem(e)||v).specified?o:n;r?(t[e]=!0,t.setAttribute(e,o)):(t[e]=!1,t.removeAttribute(o))}else if(b(r))t.setAttribute(e,r);else if(t.getAttribute){var a=t.getAttribute(e,2);return null===a?n:a}}},prop:function(t,e,n){return b(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(_(e)){var n=t.nodeType;return n===Yr||n===Gr?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(_(e)){if(t.multiple&&"select"===R(t)){var n=[];return o(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){return _(e)?t.innerHTML:(jt(t,!0),void(t.innerHTML=e))},empty:qt},function(t,e){Tt.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==qt&&_(2==t.length&&t!==It&&t!==Lt?e:n)){if(w(e)){for(r=0;o>r;r++)if(t===Ot)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var a=t.$dv,s=_(a)?Math.min(o,1):o,u=0;s>u;u++){var l=t(this[u],e,n);a=a?a+l:l}return a}for(r=0;o>r;r++)t(this[r],e,n);return this}}),o({removeData:Dt,on:function Ma(t,e,n,r){if(b(r))throw si("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(kt(t)){var i=Mt(t,!0),o=i.events,a=i.handle;a||(a=i.handle=Bt(t,o));for(var s=e.indexOf(" ")>=0?e.split(" "):[e],u=s.length;u--;){e=s[u];var l=o[e];l||(o[e]=[],"mouseenter"===e||"mouseleave"===e?Ma(t,ai[e],function(t){var n=this,r=t.relatedTarget;(!r||r!==n&&!n.contains(r))&&a(t,e)}):"$destroy"!==e&&ni(t,e,a),l=o[e]),l.push(n)}}},off:At,one:function(t,e,n){t=Cr(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;jt(t),o(new Tt(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(t){var e=[];return o(t.childNodes,function(t){t.nodeType===Yr&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===Yr||n===Qr){e=new Tt(e);for(var r=0,i=e.length;i>r;r++){var o=e[r];t.appendChild(o)}}},prepend:function(t,e){if(t.nodeType===Yr){var n=t.firstChild;o(new Tt(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){e=Cr(e).eq(0).clone()[0];var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)},remove:Ht,detach:function(t){Ht(t,!0)},after:function(t,e){var n=t,r=t.parentNode;e=new Tt(e);for(var i=0,o=e.length;o>i;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Nt,removeClass:Pt,toggleClass:function(t,e,n){e&&o(e.split(" "),function(e){var r=n;_(r)&&(r=!It(t,e)),(r?Nt:Pt)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==Qr?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:Ft,triggerHandler:function(t,e,n){var r,i,a,s=e.type||e,u=Mt(t),l=u&&u.events,c=l&&l[s];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:v,type:s,target:t},e.type&&(r=f(r,e)),i=q(c),a=n?[r].concat(n):[r],o(i,function(e){r.isImmediatePropagationStopped()||e.apply(t,a)}))}},function(t,e){Tt.prototype[e]=function(e,n,r){for(var i,o=0,a=this.length;a>o;o++)_(i)?(i=t(this[o],e,n,r),b(i)&&(i=Cr(i))):Rt(i,t(this[o],e,n,r));return b(i)?i:this},Tt.prototype.bind=Tt.prototype.on,Tt.prototype.unbind=Tt.prototype.off}),Gt.prototype={put:function(t,e){this[Kt(t,this.nextUid)]=e},get:function(t){return this[Kt(t,this.nextUid)]},remove:function(t){var e=this[t=Kt(t,this.nextUid)];return delete this[t],e}};var gi=[function(){this.$get=[function(){return Gt}]}],yi=/^[^\(]*\(\s*([^\)]*)\)/m,_i=/,/,bi=/^\s*(_?)(\S+?)\1\s*$/,wi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,xi=r("$injector");Qt.$$annotate=Jt;var $i=r("$animate"),ki=1,Si="ng-animate",Ci=function(){this.$get=["$q","$$rAF",function(t,e){function n(){}return n.all=v,n.chain=v,n.prototype={end:v,cancel:v,resume:v,pause:v,complete:v,then:function(n,r){return t(function(t){e(function(){t()})}).then(n,r)}},n}]},Ei=function(){var t=new Gt,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(t,e,n){var r=!1;return e&&(e=$(e)?e.split(" "):Rr(e)?e:[],o(e,function(e){e&&(r=!0,t[e]=n)})),r}function a(){o(e,function(e){var n=t.get(e);if(n){var r=ne(e.attr("class")),i="",a="";o(n,function(t,e){var n=!!r[e];t!==n&&(t?i+=(i.length?" ":"")+e:a+=(a.length?" ":"")+e)}),o(e,function(t){i&&Nt(t,i),a&&Pt(t,a)}),t.remove(e)}}),e.length=0}function s(n,o,s){var u=t.get(n)||{},l=i(u,o,!0),c=i(u,s,!1);(l||c)&&(t.put(n,u),e.push(n),1===e.length&&r.$$postDigest(a))}return{enabled:v,on:v,off:v,pin:v,push:function(t,e,r,i){return i&&i(),r=r||{},r.from&&t.css(r.from),r.to&&t.css(r.to),(r.addClass||r.removeClass)&&s(t,r.addClass,r.removeClass),new n}}}]},Ti=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw $i("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null,this.$$classNameFilter)){var e=new RegExp("(\\s+|\\/)"+Si+"(\\s+|\\/)");if(e.test(this.$$classNameFilter.toString()))throw $i("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Si)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=ee(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(n,r,i,o){return r=r&&Cr(r),i=i&&Cr(i),r=r||i.parent(),e(n,r,i),t.push(n,"enter",re(o))},move:function(n,r,i,o){return r=r&&Cr(r),i=i&&Cr(i),r=r||i.parent(),e(n,r,i),t.push(n,"move",re(o))},leave:function(e,n){return t.push(e,"leave",re(n),function(){e.remove()})},addClass:function(e,n,r){return r=re(r),r.addClass=te(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return r=re(r),r.removeClass=te(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return i=re(i),i.addClass=te(i.addClass,n),i.removeClass=te(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return o=re(o),o.from=o.from?f(o.from,n):n,o.to=o.to?f(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=te(o.tempClasses,i),t.push(e,"animate",o)}}}]}],Fi=function(){this.$get=["$$rAF","$q",function(t,e){var n=function(){};return n.prototype={done:function(t){this.defer&&this.defer[t===!0?"reject":"resolve"]()},end:function(){this.done()},cancel:function(){this.done(!0)},getPromise:function(){return this.defer||(this.defer=e.defer()),this.defer.promise},then:function(t,e){return this.getPromise().then(t,e)},"catch":function(t){return this.getPromise()["catch"](t)},"finally":function(t){return this.getPromise()["finally"](t)}},function(e,r){function i(){return t(function(){o(),a||s.done(),a=!0}),s}function o(){r.addClass&&(e.addClass(r.addClass),r.addClass=null),r.removeClass&&(e.removeClass(r.removeClass),r.removeClass=null),r.to&&(e.css(r.to),r.to=null)}r.cleanupStyles&&(r.from=r.to=null),r.from&&(e.css(r.from),r.from=null);var a,s=new n;return{start:i,end:i}}}]},ji=r("$compile");ue.$inject=["$provide","$$sanitizeUriProvider"];var Ai=/^((?:x|data)[\:\-_])/i,Di=r("$controller"),Mi=/^(\S+)(\s+as\s+(\w+))?$/,Oi=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof Cr&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},Ii="application/json",Pi={"Content-Type":Ii+";charset=utf-8"},Ni=/^\[|^\{(?!\{)/,Ri={"[":/]$/,"{":/}$/},Li=/^\)\]\}',?\n/,zi=r("$http"),qi=function(t){return function(){throw zi("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",t)}},Hi=Ir.$interpolateMinErr=r("$interpolate");Hi.throwNoconcat=function(t){throw Hi("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",t)},Hi.interr=function(t,e){return Hi("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var Ui=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Wi={http:80,https:443,ftp:21},Vi=r("$location"),Bi={$$html5:!1,$$replace:!1,absUrl:He("$$absUrl"),url:function(t){if(_(t))return this.$$url;var e=Ui.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:He("$$protocol"),host:He("$$host"),port:He("$$port"),path:Ue("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if($(t)||k(t))t=t.toString(),this.$$search=tt(t);else{if(!w(t))throw Vi("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=z(t,{}),o(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:_(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Ue("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};o([qe,ze,Le],function(t){t.prototype=Object.create(Bi),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Le||!this.$$html5)throw Vi("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=_(e)?null:e,this}});var Yi=r("$parse"),Ki=Function.prototype.call,Gi=Function.prototype.apply,Xi=Function.prototype.bind,Ji=mt();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){Ji[t]=!0});var Qi={n:"\n",f:"\f",r:"\r",t:" ",v:" ","'":"'",'"':'"'},Zi=function(t){this.options=t};Zi.prototype={constructor:Zi,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(e))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=Ji[e],o=Ji[n],a=Ji[r];if(i||o||a){var s=a?r:o?n:e;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){var e=t||1;return this.index+e<this.text.length?this.text.charAt(this.index+e):!1},isNumber:function(t){return t>="0"&&"9">=t&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||" "===t||"\n"===t||" "===t||" "===t},isIdent:function(t){return t>="a"&&"z">=t||t>="A"&&"Z">=t||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=b(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw Yi("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=br(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){for(var t=this.index;this.index<this.text.length;){var e=this.text.charAt(this.index);if(!this.isIdent(e)&&!this.isNumber(e))break;this.index++}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{var s=Qi[o];n+=s||o}i=!1}else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var to=function(t,e){this.lexer=t,this.options=e};to.Program="Program",to.ExpressionStatement="ExpressionStatement",to.AssignmentExpression="AssignmentExpression",to.ConditionalExpression="ConditionalExpression",to.LogicalExpression="LogicalExpression",to.BinaryExpression="BinaryExpression",to.UnaryExpression="UnaryExpression",to.CallExpression="CallExpression",to.MemberExpression="MemberExpression",to.Identifier="Identifier",to.Literal="Literal",to.ArrayExpression="ArrayExpression",to.Property="Property",to.ObjectExpression="ObjectExpression",to.ThisExpression="ThisExpression",to.NGValueParameter="NGValueParameter",to.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:to.Program,body:t}},expressionStatement:function(){return{type:to.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t,e=this.expression();t=this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:to.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:to.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:to.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:to.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:to.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:to.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:to.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:to.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:to.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.constants.hasOwnProperty(this.peek().text)?t=z(this.constants[this.consume().text]):this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:to.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:to.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:to.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:to.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do t.push(this.expression());while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:to.Identifier,name:t.text}},constant:function(){return{type:to.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:to.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:to.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:to.ObjectExpression,properties:e}},throwError:function(t,e){throw Yi("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw Yi("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw Yi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],a=o.text;if(a===e||a===n||a===r||a===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return i?(this.tokens.shift(),i):!1},constants:{"true":{type:to.Literal,value:!0},"false":{type:to.Literal,value:!1},"null":{type:to.Literal,value:null},undefined:{type:to.Literal,value:n},"this":{type:to.ThisExpression}}},sn.prototype={compile:function(t,e){var r=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},tn(i,r.$filter);var a,s="";if(this.stage="assign",a=rn(i)){this.state.computing="assign";var u=this.nextId();this.recurse(a,u),this.return_(u),s="fn.assign="+this.generateFunction("assign","s,v,l")}var l=en(i.body);r.stage="inputs",o(l,function(t,e){var n="fn"+e;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(t,i),r.return_(i),r.state.inputs.push(n),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i);var c='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+s+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",c)(this.$filter,Be,Ke,Ge,Ye,Xe,Je,Qe,t);return this.state=this.stage=n,f.literal=on(i),f.constant=an(i),f},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return o(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return o(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,r,i,a,s){var u,l,c,f,h=this;if(i=i||v,!s&&b(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,r,i,a,!0));switch(t.type){case to.Program:o(t.body,function(e,r){h.recurse(e.expression,n,n,function(t){l=t}),r!==t.body.length-1?h.current().body.push(l,";"):h.return_(l)});break;case to.Literal:f=this.escape(t.value),this.assign(e,f),i(f);break;case to.UnaryExpression:this.recurse(t.argument,n,n,function(t){l=t}),f=t.operator+"("+this.ifDefined(l,0)+")",this.assign(e,f),i(f);break;case to.BinaryExpression:this.recurse(t.left,n,n,function(t){u=t}),this.recurse(t.right,n,n,function(t){l=t}),f="+"===t.operator?this.plus(u,l):"-"===t.operator?this.ifDefined(u,0)+t.operator+this.ifDefined(l,0):"("+u+")"+t.operator+"("+l+")",this.assign(e,f),i(f);break;case to.LogicalExpression:e=e||this.nextId(),h.recurse(t.left,e),h.if_("&&"===t.operator?e:h.not(e),h.lazyRecurse(t.right,e)),i(e);break;case to.ConditionalExpression:e=e||this.nextId(),h.recurse(t.test,e),h.if_(e,h.lazyRecurse(t.alternate,e),h.lazyRecurse(t.consequent,e)),i(e);break;case to.Identifier:e=e||this.nextId(),r&&(r.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),r.computed=!1,r.name=t.name),Be(t.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",t.name)),function(){h.if_("inputs"===h.stage||"s",function(){a&&1!==a&&h.if_(h.not(h.nonComputedMember("s",t.name)),h.lazyAssign(h.nonComputedMember("s",t.name),"{}")),h.assign(e,h.nonComputedMember("s",t.name))})},e&&h.lazyAssign(e,h.nonComputedMember("l",t.name))),(h.state.expensiveChecks||ln(t.name))&&h.addEnsureSafeObject(e),i(e);break;case to.MemberExpression:u=r&&(r.context=this.nextId())||this.nextId(),e=e||this.nextId(),h.recurse(t.object,u,n,function(){h.if_(h.notNull(u),function(){t.computed?(l=h.nextId(),h.recurse(t.property,l),h.getStringValue(l),h.addEnsureSafeMemberName(l),a&&1!==a&&h.if_(h.not(h.computedMember(u,l)),h.lazyAssign(h.computedMember(u,l),"{}")),f=h.ensureSafeObject(h.computedMember(u,l)),h.assign(e,f),r&&(r.computed=!0,r.name=l)):(Be(t.property.name),a&&1!==a&&h.if_(h.not(h.nonComputedMember(u,t.property.name)),h.lazyAssign(h.nonComputedMember(u,t.property.name),"{}")),f=h.nonComputedMember(u,t.property.name),(h.state.expensiveChecks||ln(t.property.name))&&(f=h.ensureSafeObject(f)),h.assign(e,f),r&&(r.computed=!1,r.name=t.property.name))},function(){h.assign(e,"undefined")}),i(e)},!!a);break;case to.CallExpression:e=e||this.nextId(),t.filter?(l=h.filter(t.callee.name),c=[],o(t.arguments,function(t){var e=h.nextId();h.recurse(t,e),c.push(e)}),f=l+"("+c.join(",")+")",h.assign(e,f),i(e)):(l=h.nextId(),u={},c=[],h.recurse(t.callee,l,u,function(){h.if_(h.notNull(l),function(){h.addEnsureSafeFunction(l),o(t.arguments,function(t){h.recurse(t,h.nextId(),n,function(t){c.push(h.ensureSafeObject(t))})}),u.name?(h.state.expensiveChecks||h.addEnsureSafeObject(u.context),f=h.member(u.context,u.name,u.computed)+"("+c.join(",")+")"):f=l+"("+c.join(",")+")",f=h.ensureSafeObject(f),h.assign(e,f)},function(){h.assign(e,"undefined")}),i(e)}));break;case to.AssignmentExpression:if(l=this.nextId(),u={},!nn(t.left))throw Yi("lval","Trying to assing a value to a non l-value");this.recurse(t.left,n,u,function(){h.if_(h.notNull(u.context),function(){h.recurse(t.right,l),h.addEnsureSafeObject(h.member(u.context,u.name,u.computed)),h.addEnsureSafeAssignContext(u.context),f=h.member(u.context,u.name,u.computed)+t.operator+l,h.assign(e,f),i(e||f)})},1);break;case to.ArrayExpression:c=[],o(t.elements,function(t){h.recurse(t,h.nextId(),n,function(t){c.push(t)})}),f="["+c.join(",")+"]",this.assign(e,f),i(f);break;case to.ObjectExpression:c=[],o(t.properties,function(t){h.recurse(t.value,h.nextId(),n,function(e){c.push(h.escape(t.key.type===to.Identifier?t.key.name:""+t.key.value)+":"+e)})}),f="{"+c.join(",")+"}",this.assign(e,f),i(f);break;case to.ThisExpression:this.assign(e,"s"),i("s");break;case to.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){return t?(this.current().body.push(t,"=",e,";"),t):void 0},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(t===!0)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return t+"."+e},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+",text)")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,o){var a=this;return function(){a.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if($(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";
if(k(t))return t.toString();if(t===!0)return"true";if(t===!1)return"false";if(null===t)return"null";if("undefined"==typeof t)return"undefined";throw Yi("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},un.prototype={compile:function(t,e){var n=this,r=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,tn(r,n.$filter);var i,a;(i=rn(r))&&(a=this.recurse(i));var s,u=en(r.body);u&&(s=[],o(u,function(t,e){var r=n.recurse(t);t.input=r,s.push(r),t.watchId=e}));var l=[];o(r.body,function(t){l.push(n.recurse(t.expression))});var c=0===r.body.length?function(){}:1===r.body.length?l[0]:function(t,e){var n;return o(l,function(r){n=r(t,e)}),n};return a&&(c.assign=function(t,e,n){return a(t,n,e)}),s&&(c.inputs=s),c.literal=on(r),c.constant=an(r),c},recurse:function(t,e,r){var i,a,s,u=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case to.Literal:return this.value(t.value,e);case to.UnaryExpression:return a=this.recurse(t.argument),this["unary"+t.operator](a,e);case to.BinaryExpression:return i=this.recurse(t.left),a=this.recurse(t.right),this["binary"+t.operator](i,a,e);case to.LogicalExpression:return i=this.recurse(t.left),a=this.recurse(t.right),this["binary"+t.operator](i,a,e);case to.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case to.Identifier:return Be(t.name,u.expression),u.identifier(t.name,u.expensiveChecks||ln(t.name),e,r,u.expression);case to.MemberExpression:return i=this.recurse(t.object,!1,!!r),t.computed||(Be(t.property.name,u.expression),a=t.property.name),t.computed&&(a=this.recurse(t.property)),t.computed?this.computedMember(i,a,e,r,u.expression):this.nonComputedMember(i,a,u.expensiveChecks,e,r,u.expression);case to.CallExpression:return s=[],o(t.arguments,function(t){s.push(u.recurse(t))}),t.filter&&(a=this.$filter(t.callee.name)),t.filter||(a=this.recurse(t.callee,!0)),t.filter?function(t,r,i,o){for(var u=[],l=0;l<s.length;++l)u.push(s[l](t,r,i,o));var c=a.apply(n,u,o);return e?{context:n,name:n,value:c}:c}:function(t,n,r,i){var o,l=a(t,n,r,i);if(null!=l.value){Ke(l.context,u.expression),Ge(l.value,u.expression);for(var c=[],f=0;f<s.length;++f)c.push(Ke(s[f](t,n,r,i),u.expression));o=Ke(l.value.apply(l.context,c),u.expression)}return e?{value:o}:o};case to.AssignmentExpression:return i=this.recurse(t.left,!0,1),a=this.recurse(t.right),function(t,n,r,o){var s=i(t,n,r,o),l=a(t,n,r,o);return Ke(s.value,u.expression),Xe(s.context),s.context[s.name]=l,e?{value:l}:l};case to.ArrayExpression:return s=[],o(t.elements,function(t){s.push(u.recurse(t))}),function(t,n,r,i){for(var o=[],a=0;a<s.length;++a)o.push(s[a](t,n,r,i));return e?{value:o}:o};case to.ObjectExpression:return s=[],o(t.properties,function(t){s.push({key:t.key.type===to.Identifier?t.key.name:""+t.key.value,value:u.recurse(t.value)})}),function(t,n,r,i){for(var o={},a=0;a<s.length;++a)o[s[a].key]=s[a].value(t,n,r,i);return e?{value:o}:o};case to.ThisExpression:return function(t){return e?{value:t}:t};case to.NGValueParameter:return function(t,n,r,i){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=b(a)?+a:0,e?{value:a}:a}},"unary-":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=b(a)?-a:0,e?{value:a}:a}},"unary!":function(t,e){return function(n,r,i,o){var a=!t(n,r,i,o);return e?{value:a}:a}},"binary+":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a),u=e(r,i,o,a),l=Qe(s,u);return n?{value:l}:l}},"binary-":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a),u=e(r,i,o,a),l=(b(s)?s:0)-(b(u)?u:0);return n?{value:l}:l}},"binary*":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)*e(r,i,o,a);return n?{value:s}:s}},"binary/":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)/e(r,i,o,a);return n?{value:s}:s}},"binary%":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)%e(r,i,o,a);return n?{value:s}:s}},"binary===":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)===e(r,i,o,a);return n?{value:s}:s}},"binary!==":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!==e(r,i,o,a);return n?{value:s}:s}},"binary==":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)==e(r,i,o,a);return n?{value:s}:s}},"binary!=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!=e(r,i,o,a);return n?{value:s}:s}},"binary<":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<e(r,i,o,a);return n?{value:s}:s}},"binary>":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>e(r,i,o,a);return n?{value:s}:s}},"binary<=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<=e(r,i,o,a);return n?{value:s}:s}},"binary>=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>=e(r,i,o,a);return n?{value:s}:s}},"binary&&":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)&&e(r,i,o,a);return n?{value:s}:s}},"binary||":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)||e(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(t,e,n,r){return function(i,o,a,s){var u=t(i,o,a,s)?e(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(t,e){return function(){return e?{context:n,name:n,value:t}:t}},identifier:function(t,e,r,i,o){return function(a,s,u,l){var c=s&&t in s?s:a;i&&1!==i&&c&&!c[t]&&(c[t]={});var f=c?c[t]:n;return e&&Ke(f,o),r?{context:c,name:t,value:f}:f}},computedMember:function(t,e,n,r,i){return function(o,a,s,u){var l,c,f=t(o,a,s,u);return null!=f&&(l=e(o,a,s,u),l=Ye(l),Be(l,i),r&&1!==r&&f&&!f[l]&&(f[l]={}),c=f[l],Ke(c,i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(t,e,r,i,o,a){return function(s,u,l,c){var f=t(s,u,l,c);o&&1!==o&&f&&!f[e]&&(f[e]={});var h=null!=f?f[e]:n;return(r||ln(e))&&Ke(h,a),i?{context:f,name:e,value:h}:h}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var eo=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new to(this.lexer),this.astCompiler=n.csp?new un(this.ast,e):new sn(this.ast,e)};eo.prototype={constructor:eo,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var no=(mt(),mt(),Object.prototype.valueOf),ro=r("$sce"),io={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ji=r("$compile"),oo=e.createElement("a"),ao=Cn(t.location.href);Fn.$inject=["$document"],An.$inject=["$provide"],Pn.$inject=["$locale"],Nn.$inject=["$locale"];var so=".",uo={yyyy:zn("FullYear",4),yy:zn("FullYear",2,0,!0),y:zn("FullYear",1),MMMM:qn("Month"),MMM:qn("Month",!0),MM:zn("Month",2,1),M:zn("Month",1,1),dd:zn("Date",2),d:zn("Date",1),HH:zn("Hours",2),H:zn("Hours",1),hh:zn("Hours",2,-12),h:zn("Hours",1,-12),mm:zn("Minutes",2),m:zn("Minutes",1),ss:zn("Seconds",2),s:zn("Seconds",1),sss:zn("Milliseconds",3),EEEE:qn("Day"),EEE:qn("Day",!0),a:Bn,Z:Hn,ww:Vn(2),w:Vn(1),G:Yn,GG:Yn,GGG:Yn,GGGG:Kn},lo=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,co=/^\-?\d+$/;Gn.$inject=["$locale"];var fo=g(br),ho=g(xr);Qn.$inject=["$parse"];var po=g({restrict:"E",compile:function(t,e){return e.href||e.xlinkHref?void 0:function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Dr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),vo={};o(di,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=le("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),vo[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(mi,function(t,e){vo[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(yr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),o(["src","srcset","href"],function(t){var e=le("ng-"+t);vo[e]=function(){return{priority:99,link:function(n,r,i){var o=t,a=t;"href"===t&&"[object SVGAnimatedString]"===Dr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(e,function(e){return e?(i.$set(a,e),void(Sr&&o&&r.prop(o,i[a]))):void("href"===t&&i.$set(a,null))})}}}});var mo={$addControl:v,$$renameControl:tr,$removeControl:v,$setValidity:v,$setDirty:v,$setPristine:v,$setSubmitted:v},go="ng-submitted";er.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var yo=function(t){return["$timeout","$parse",function(e,r){function i(t){return""===t?r('this[""]').assign:r(t).assign||v}var o={name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:er,compile:function(r,o){r.addClass(Qo).addClass(Xo);var a=o.name?"name":t&&o.ngForm?"ngForm":!1;return{pre:function(t,r,o,s){var u=s[0];if(!("action"in o)){var l=function(e){t.$apply(function(){u.$commitViewValue(),u.$setSubmitted()}),e.preventDefault()};ni(r[0],"submit",l),r.on("$destroy",function(){e(function(){ri(r[0],"submit",l)},0,!1)})}var c=s[1]||u.$$parentForm;c.$addControl(u);var h=a?i(u.$name):v;a&&(h(t,u),o.$observe(a,function(e){u.$name!==e&&(h(t,n),u.$$parentForm.$$renameControl(u,e),(h=i(u.$name))(t,u))})),r.on("$destroy",function(){u.$$parentForm.$removeControl(u),h(t,n),f(u,mo)})}}}};return o}]},_o=yo(),bo=yo(!0),wo=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,xo=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,$o=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,ko=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,So=/^(\d{4})-(\d{2})-(\d{2})$/,Co=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Eo=/^(\d{4})-W(\d\d)$/,To=/^(\d{4})-(\d\d)$/,Fo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,jo={text:rr,date:sr("date",So,ar(So,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":sr("datetimelocal",Co,ar(Co,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:sr("time",Fo,ar(Fo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:sr("week",Eo,or,"yyyy-Www"),month:sr("month",To,ar(To,["yyyy","MM"]),"yyyy-MM"),number:lr,url:cr,email:fr,radio:hr,checkbox:dr,hidden:v,button:v,submit:v,reset:v,file:v},Ao=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(jo[br(a.type)]||jo.text)(i,o,a,s[0],e,t,n,r)}}}}],Do=/^(true|false|\d+)$/,Mo=function(){return{restrict:"A",priority:100,compile:function(t,e){return Do.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Oo=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=_(t)?"":t})}}}}],Io=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=_(t)?"":t})}}}}],Po=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),a=e(i.ngBindHtml,function(t){return(t||"").toString()});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(a,function(){r.html(t.getTrustedHtml(o(e))||"")})}}}}],No=g({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),Ro=vr("",!0),Lo=vr("Odd",0),zo=vr("Even",1),qo=Zn({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),Ho=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Uo={},Wo={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=le("ng-"+t);Uo[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){a(e,{$event:n})};Wo[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var Vo=["$animate",function(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,l;n.$watch(i.ngIf,function(n){n?u||a(function(n,o){u=o,n[n.length++]=e.createComment(" end ngIf: "+i.ngIf+" "),s={clone:n},t.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=vt(s.clone),t.leave(l).then(function(){l=null}),s=null))})}}}],Bo=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ir.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,h,p,d=0,v=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).then(function(){h=null}),h=p,p=null)};r.$watch(o,function(o){var u=function(){!b(s)||s&&!r.$eval(s)||e()},h=++d;o?(t(o,!0).then(function(t){if(h===d){var e=r.$new();l.template=t;var s=c(e,function(t){v(),n.enter(t,null,i).then(u)});f=e,p=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){h===d&&(v(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(v(),l.template=null)})}}}}],Yo=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return/SVG/.test(r[0].toString())?(r.empty(),void t(Ct(o.template,e).childNodes)(n,function(t){r.append(t)},{futureParentElement:r})):(r.html(o.template),void t(r.contents())(n))}}}],Ko=Zn({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Go=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,r,i){var a=e.attr(r.$attr.ngList)||", ",s="false"!==r.ngTrim,u=s?zr(a):a,l=function(t){if(!_(t)){var e=[];return t&&o(t.split(u),function(t){t&&e.push(s?zr(t):t)}),e}};i.$parsers.push(l),i.$formatters.push(function(t){return Rr(t)?t.join(a):n}),i.$isEmpty=function(t){return!t||!t.length}}}},Xo="ng-valid",Jo="ng-invalid",Qo="ng-pristine",Zo="ng-dirty",ta="ng-untouched",ea="ng-touched",na="ng-pending",ra=r("ngModel"),ia=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,r,i,a,s,u,l,c,f){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=n,this.$name=f(r.name||"",!1)(t),this.$$parentForm=mo;var h,p=a(r.ngModel),d=p.assign,m=p,g=d,y=null,w=this;this.$$setOptions=function(t){if(w.$options=t,t&&t.getterSetter){var e=a(r.ngModel+"()"),n=a(r.ngModel+"($$$p)");m=function(t){var n=p(t);return C(n)&&(n=e(t)),n},g=function(t,e){C(p(t))?n(t,{$$$p:w.$modelValue}):d(t,w.$modelValue)}}else if(!p.assign)throw ra("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,Q(i))},this.$render=v,this.$isEmpty=function(t){return _(t)||""===t||null===t||t!==t};var x=0;mr({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:s}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,s.removeClass(i,Zo),s.addClass(i,Qo)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,s.removeClass(i,Qo),s.addClass(i,Zo),w.$$parentForm.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,s.setClass(i,ta,ea)},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,s.setClass(i,ea,ta)},this.$rollbackViewValue=function(){u.cancel(y),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!k(w.$modelValue)||!isNaN(w.$modelValue)){var t=w.$$lastCommittedViewValue,e=w.$$rawModelValue,r=w.$valid,i=w.$modelValue,o=w.$options&&w.$options.allowInvalid;w.$$runValidators(e,t,function(t){o||r===t||(w.$modelValue=t?e:n,w.$modelValue!==i&&w.$$writeModelToScope())})}},this.$$runValidators=function(t,e,r){function i(){var t=w.$$parserName||"parse";return _(h)?(u(t,null),!0):(h||(o(w.$validators,function(t,e){u(e,null)}),o(w.$asyncValidators,function(t,e){u(e,null)})),u(t,h),h)}function a(){var n=!0;return o(w.$validators,function(r,i){var o=r(t,e);n=n&&o,u(i,o)}),n?!0:(o(w.$asyncValidators,function(t,e){u(e,null)}),!1)}function s(){var r=[],i=!0;o(w.$asyncValidators,function(o,a){var s=o(t,e);if(!O(s))throw ra("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",s);u(a,n),r.push(s.then(function(){u(a,!0)},function(t){i=!1,u(a,!1)}))}),r.length?c.all(r).then(function(){l(i)},v):l(!0)}function u(t,e){f===x&&w.$setValidity(t,e)}function l(t){f===x&&r(t)}x++;var f=x;return i()&&a()?void s():void l(!1)},this.$commitViewValue=function(){var t=w.$viewValue;u.cancel(y),(w.$$lastCommittedViewValue!==t||""===t&&w.$$hasNativeValidators)&&(w.$$lastCommittedViewValue=t,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){w.$modelValue!==a&&w.$$writeModelToScope()}var r=w.$$lastCommittedViewValue,i=r;if(h=_(i)?n:!0)for(var o=0;o<w.$parsers.length;o++)if(i=w.$parsers[o](i),_(i)){h=!1;break}k(w.$modelValue)&&isNaN(w.$modelValue)&&(w.$modelValue=m(t));var a=w.$modelValue,s=w.$options&&w.$options.allowInvalid;w.$$rawModelValue=i,s&&(w.$modelValue=i,e()),w.$$runValidators(i,w.$$lastCommittedViewValue,function(t){s||(w.$modelValue=t?i:n,e())})},this.$$writeModelToScope=function(){g(t,w.$modelValue),o(w.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}})},this.$setViewValue=function(t,e){w.$viewValue=t,(!w.$options||w.$options.updateOnDefault)&&w.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,r=0,i=w.$options;i&&b(i.debounce)&&(n=i.debounce,k(n)?r=n:k(n[e])?r=n[e]:k(n["default"])&&(r=n["default"])),u.cancel(y),r?y=u(function(){w.$commitViewValue()},r):l.$$phase?w.$commitViewValue():t.$apply(function(){w.$commitViewValue()})},t.$watch(function(){var e=m(t);if(e!==w.$modelValue&&(w.$modelValue===w.$modelValue||e===e)){w.$modelValue=w.$$rawModelValue=e,h=n;for(var r=w.$formatters,i=r.length,o=e;i--;)o=r[i](o);w.$viewValue!==o&&(w.$viewValue=w.$$lastCommittedViewValue=o,w.$render(),w.$$runValidators(e,o,v))}return e})}],oa=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ia,priority:1,compile:function(e){return e.addClass(Qo).addClass(ta).addClass(Xo),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)}),t.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(e,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(n){o.$touched||(t.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))})}}}}}],aa=/(\s+|^)default(\s+|$)/,sa=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=z(t.$eval(e.ngModelOptions)),b(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=zr(this.$options.updateOn.replace(aa,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},ua=Zn({terminal:!0,priority:1e3}),la=r("ngOptions"),ca=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,fa=["$compile","$parse",function(t,n){function r(t,e,r){function o(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function a(t){var e;if(!l&&i(t))e=t;else{e=[];for(var n in t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n)}return e}var s=t.match(ca);if(!s)throw la("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Q(e));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],h=n(s[2]?s[1]:u),p=c&&n(c),d=p||h,v=f&&n(f),m=f?function(t,e){return v(r,e)}:function(t){return Kt(t)},g=function(t,e){return m(t,$(t,e))},y=n(s[2]||s[1]),_=n(s[3]||""),b=n(s[4]||""),w=n(s[8]),x={},$=l?function(t,e){return x[l]=e,x[u]=t,x}:function(t){return x[u]=t,x};return{trackBy:f,getTrackByValue:g,getWatchables:n(w,function(t){var e=[];t=t||[];for(var n=a(t),i=n.length,o=0;i>o;o++){var u=t===n?o:n[o],l=(t[u],$(t[u],u)),c=m(t[u],l);if(e.push(c),s[2]||s[1]){var f=y(r,l);e.push(f)}if(s[4]){var h=b(r,l);e.push(h)}}return e}),getOptions:function(){for(var t=[],e={},n=w(r)||[],i=a(n),s=i.length,u=0;s>u;u++){var l=n===i?u:i[u],c=n[l],h=$(c,l),p=d(r,h),v=m(p,h),x=y(r,h),k=_(r,h),S=b(r,h),C=new o(v,p,x,k,S);t.push(C),e[v]=C}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[g(t)]},getViewValueFromOption:function(t){return f?Ir.copy(t.viewValue):t.viewValue}}}}}var a=e.createElement("option"),s=e.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:function(e,n,i,u){function l(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),t.value!==e.value&&(e.value=t.selectValue)}function c(t,e,n,r){var i;return e&&br(e.nodeName)===n?i=e:(i=r.cloneNode(!1),e?t.insertBefore(i,e):t.appendChild(i)),i}function f(t){for(var e;t;)e=t.nextSibling,Ht(t),t=e}function h(t){var e=v&&v[0],n=x&&x[0];if(e||n)for(;t&&(t===e||t===n||e&&e.nodeType===Xr);)t=t.nextSibling;return t}function p(){var t=$&&m.readValue();$=k.getOptions();var e={},r=n[0].firstChild;if(w&&n.prepend(v),r=h(r),$.items.forEach(function(t){var i,o,u;t.group?(i=e[t.group],i||(o=c(n[0],r,"optgroup",s),r=o.nextSibling,o.label=t.group,i=e[t.group]={groupElement:o,currentOptionElement:o.firstChild}),u=c(i.groupElement,i.currentOptionElement,"option",a),l(t,u),i.currentOptionElement=u.nextSibling):(u=c(n[0],r,"option",a),l(t,u),r=u.nextSibling)}),Object.keys(e).forEach(function(t){f(e[t].currentOptionElement)}),f(r),d.$render(),!d.$isEmpty(t)){var i=m.readValue();(k.trackBy?H(t,i):t===i)||(d.$setViewValue(i),d.$render())}}var d=u[1];if(d){for(var v,m=u[0],g=i.multiple,y=0,_=n.children(),b=_.length;b>y;y++)if(""===_[y].value){v=_.eq(y);break}var w=!!v,x=Cr(a.cloneNode(!1));x.val("?");var $,k=r(i.ngOptions,n,e),S=function(){w||n.prepend(v),n.val(""),v.prop("selected",!0),v.attr("selected",!0)},C=function(){w||v.remove()},E=function(){n.prepend(x),n.val("?"),x.prop("selected",!0),x.attr("selected",!0)},T=function(){x.remove()};g?(d.$isEmpty=function(t){return!t||0===t.length},m.writeValue=function(t){$.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){var e=$.getOptionFromViewValue(t);e&&!e.disabled&&(e.element.selected=!0)})},m.readValue=function(){var t=n.val()||[],e=[];return o(t,function(t){var n=$.selectValueMap[t];n&&!n.disabled&&e.push($.getViewValueFromOption(n))}),e},k.trackBy&&e.$watchCollection(function(){return Rr(d.$viewValue)?d.$viewValue.map(function(t){return k.getTrackByValue(t)}):void 0},function(){d.$render()})):(m.writeValue=function(t){var e=$.getOptionFromViewValue(t);e&&!e.disabled?n[0].value!==e.selectValue&&(T(),C(),n[0].value=e.selectValue,e.element.selected=!0,e.element.setAttribute("selected","selected")):null===t||w?(T(),S()):(C(),E())},m.readValue=function(){var t=$.selectValueMap[n.val()];return t&&!t.disabled?(C(),T(),$.getViewValueFromOption(t)):null},k.trackBy&&e.$watch(function(){return k.getTrackByValue(d.$viewValue)},function(){d.$render()})),w?(v.remove(),t(v)(e),v.removeClass("ng-scope")):v=Cr(a.cloneNode(!1)),p(),e.$watchCollection(k.getWatchables,p)}}}}],ha=["$locale","$interpolate","$log",function(t,e,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function l(t){s.text(t||"")}var c,f=u.count,h=u.$attr.when&&s.attr(u.$attr.when),p=u.offset||0,d=a.$eval(h)||{},m={},g=e.startSymbol(),y=e.endSymbol(),b=g+f+"-"+p+y,w=Ir.noop;o(u,function(t,e){var n=i.exec(e);if(n){var r=(n[1]?"-":"")+br(n[2]);d[r]=s.attr(u.$attr[e])}}),o(d,function(t,n){m[n]=e(t.replace(r,b))}),a.$watch(f,function(e){var r=parseFloat(e),i=isNaN(r);if(i||r in d||(r=t.pluralCat(r-p)),r!==c&&!(i&&k(c)&&isNaN(c))){w();var o=m[r];_(o)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),w=v,l()):w=a.$watch(o,l),c=r}})}}}],pa=["$parse","$animate",function(t,a){var s="$$NG_REMOVED",u=r("ngRepeat"),l=function(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&e))},c=function(t){return t.clone[0]},f=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,h){var p=h.ngRepeat,d=e.createComment(" end ngRepeat: "+p+" "),v=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!v)throw u("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var m=v[1],g=v[2],y=v[3],_=v[4];if(v=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!v)throw u("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var b=v[3]||v[1],w=v[2];if(y&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(y)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(y)))throw u("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",y);var x,$,k,S,C={$id:Kt};return _?x=t(_):(k=function(t,e){return Kt(e)},S=function(t){return t}),function(t,e,r,h,v){x&&($=function(e,n,r){return w&&(C[w]=e),C[b]=n,C.$index=r,x(t,C)});var m=mt();t.$watchCollection(g,function(r){var h,g,_,x,C,E,T,F,j,A,D,M,O=e[0],I=mt();if(y&&(t[y]=r),i(r))j=r,F=$||k;else{F=$||S,j=[];for(var P in r)wr.call(r,P)&&"$"!==P.charAt(0)&&j.push(P)}for(x=j.length,D=new Array(x),h=0;x>h;h++)if(C=r===j?h:j[h],E=r[C],T=F(C,E,h),m[T])A=m[T],delete m[T],I[T]=A,D[h]=A;else{if(I[T])throw o(D,function(t){t&&t.scope&&(m[t.id]=t)}),u("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,T,E);D[h]={id:T,scope:n,clone:n},I[T]=!0}for(var N in m){if(A=m[N],M=vt(A.clone),a.leave(M),M[0].parentNode)for(h=0,g=M.length;g>h;h++)M[h][s]=!0;A.scope.$destroy()}for(h=0;x>h;h++)if(C=r===j?h:j[h],E=r[C],A=D[h],A.scope){_=O;do _=_.nextSibling;while(_&&_[s]);c(A)!=_&&a.move(vt(A.clone),null,Cr(O)),O=f(A),l(A.scope,h,b,E,w,C,x)}else v(function(t,e){A.scope=e;var n=d.cloneNode(!1);t[t.length++]=n,a.enter(t,null,Cr(O)),O=n,A.clone=t,I[A.id]=A,l(A.scope,h,b,E,w,C,x)});m=I})}}}}],da="ng-hide",va="ng-hide-animate",ma=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?"removeClass":"addClass"](n,da,{tempClasses:va})})}}}],ga=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?"addClass":"removeClass"](n,da,{tempClasses:va})})}}}],ya=Zn(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&o(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),_a=["$animate",function(t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,u=[],l=[],c=[],f=[],h=function(t,e){return function(){t.splice(e,1)}};n.$watch(s,function(n){var r,i;for(r=0,i=c.length;i>r;++r)t.cancel(c[r]);for(c.length=0,r=0,i=f.length;i>r;++r){var s=vt(l[r].clone);f[r].$destroy();var p=c[r]=t.leave(s);p.then(h(c,r))}l.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&o(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=e.createComment(" end ngSwitchWhen: ");var a={clone:r};l.push(a),t.enter(r,o.parent(),o)})})})}}}],ba=Zn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),wa=Zn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),xa=Zn({restrict:"EAC",link:function(t,e,n,i,o){if(!o)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Q(e));o(function(t){e.empty(),e.append(t)})}}),$a=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"==n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],ka={$setViewValue:v,$render:v},Sa=["$element","$scope","$attrs",function(t,r,i){var o=this,a=new Gt;o.ngModelCtrl=ka,o.unknownOption=Cr(e.createElement("option")),o.renderUnknownOption=function(e){var n="? "+Kt(e)+" ?";o.unknownOption.val(n),t.prepend(o.unknownOption),t.val(n)},r.$on("$destroy",function(){o.renderUnknownOption=v}),o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.readValue=function(){return o.removeUnknownOption(),t.val()},o.writeValue=function(e){o.hasOption(e)?(o.removeUnknownOption(),t.val(e),""===e&&o.emptyOption.prop("selected",!0)):null==e&&o.emptyOption?(o.removeUnknownOption(),t.val("")):o.renderUnknownOption(e)},o.addOption=function(t,e){pt(t,'"option value"'),""===t&&(o.emptyOption=e);var n=a.get(t)||0;a.put(t,n+1)},o.removeOption=function(t){var e=a.get(t);e&&(1===e?(a.remove(t),""===t&&(o.emptyOption=n)):a.put(t,e-1))},o.hasOption=function(t){return!!a.get(t)}}],Ca=function(){return{restrict:"E",require:["select","?ngModel"],controller:Sa,link:function(t,e,n,r){var i=r[1];if(i){var a=r[0];if(a.ngModelCtrl=i,i.$render=function(){a.writeValue(i.$viewValue)},e.on("change",function(){t.$apply(function(){i.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var t=[];return o(e.find("option"),function(e){e.selected&&t.push(e.value)}),t},a.writeValue=function(t){var n=new Gt(t);o(e.find("option"),function(t){t.selected=b(n.get(t.value))})};var s,u=NaN;t.$watch(function(){u!==i.$viewValue||H(s,i.$viewValue)||(s=q(i.$viewValue),i.$render()),u=i.$viewValue}),i.$isEmpty=function(t){return!t||0===t.length}}}}}},Ea=["$interpolate",function(t){function e(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}return{restrict:"E",priority:100,compile:function(n,r){if(b(r.value))var i=t(r.value,!0);else{var o=t(n.text(),!0);o||r.$set("value",n.text())}return function(t,n,r){function a(t){l.addOption(t,n),l.ngModelCtrl.$render(),e(n)}var s="$selectController",u=n.parent(),l=u.data(s)||u.parent().data(s);if(l&&l.ngModelCtrl){if(i){var c;r.$observe("value",function(t){b(c)&&l.removeOption(c),c=t,a(t)})}else o?t.$watch(o,function(t,e){r.$set("value",t),e!==t&&l.removeOption(e),a(t)}):a(r.value);n.on("$destroy",function(){l.removeOption(r.value),l.ngModelCtrl.$render()})}}}}}],Ta=g({restrict:"E",terminal:!1}),Fa=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},ja=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,i,o){if(o){var a,s=i.ngPattern||i.pattern;i.$observe("pattern",function(t){if($(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,t,Q(e));a=t||n,o.$validate()}),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||_(a)||a.test(e)}}}}},Aa=function(){return{restrict:"A",require:"?ngModel",
link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=p(t);i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return 0>i||r.$isEmpty(e)||e.length<=i}}}}},Da=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=p(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};return t.angular.bootstrap?void console.log("WARNING: Tried to load angular more than once."):(ct(),bt(Ir),Ir.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return-1==e?0:t.length-e-1}function r(t,r){var i=r;n===i&&(i=Math.min(e(t),3));var o=Math.pow(10,i),a=(t*o|0)%o;return{v:i,f:a}}var i={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",pluralCat:function(t,e){var n=0|t,o=r(t,e);return 1==n&&0==o.v?i.ONE:i.OTHER}})}]),void Cr(e).ready(function(){ot(e,at)}))}(window,document),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(t,e,n){"use strict";function r(){function t(t,n){return e.extend(Object.create(t),n)}function n(t,e){var n=e.caseInsensitiveMatch,r={originalPath:t,regexp:t},i=r.keys=[];return t=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(t,e,n,r){var o="?"===r?r:null,a="*"===r?r:null;return i.push({name:n,optional:!!o}),e=e||"",""+(o?"":e)+"(?:"+(o?e:"")+(a&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+t+"$",n?"i":""),r}var r={};this.when=function(t,i){var o=e.copy(i);if(e.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),e.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[t]=e.extend(o,t&&n(t,o)),t){var a="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/";r[a]=e.extend({redirectTo:t},n(a,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return"string"==typeof t&&(t={redirectTo:t}),this.when(null,t),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,o,a,s,l,c){function f(t,e){var n=e.keys,r={};if(!e.regexp)return null;var i=e.regexp.exec(t);if(!i)return null;for(var o=1,a=i.length;a>o;++o){var s=n[o-1],u=i[o];s&&u&&(r[s.name]=u)}return r}function h(t){var r=_.current;m=d(),g=m&&r&&m.$$route===r.$$route&&e.equals(m.pathParams,r.pathParams)&&!m.reloadOnSearch&&!y,g||!r&&!m||n.$broadcast("$routeChangeStart",m,r).defaultPrevented&&t&&t.preventDefault()}function p(){var t=_.current,r=m;g?(t.params=r.params,e.copy(t.params,o),n.$broadcast("$routeUpdate",t)):(r||t)&&(y=!1,_.current=r,r&&r.redirectTo&&(e.isString(r.redirectTo)?i.path(v(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),a.when(r).then(function(){if(r){var t,n,i=e.extend({},r.resolve);return e.forEach(i,function(t,n){i[n]=e.isString(t)?s.get(t):s.invoke(t,null,null,n)}),e.isDefined(t=r.template)?e.isFunction(t)&&(t=t(r.params)):e.isDefined(n=r.templateUrl)&&(e.isFunction(n)&&(n=n(r.params)),e.isDefined(n)&&(r.loadedTemplateUrl=c.valueOf(n),t=l(n))),e.isDefined(t)&&(i.$template=t),a.all(i)}}).then(function(i){r==_.current&&(r&&(r.locals=i,e.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,t))},function(e){r==_.current&&n.$broadcast("$routeChangeError",r,t,e)}))}function d(){var n,o;return e.forEach(r,function(r,a){!o&&(n=f(i.path(),r))&&(o=t(r,{params:e.extend({},i.search(),n),pathParams:n}),o.$$route=r)}),o||r[null]&&t(r[null],{params:{},pathParams:{}})}function v(t,n){var r=[];return e.forEach((t||"").split(":"),function(t,e){if(0===e)r.push(t);else{var i=t.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var m,g,y=!1,_={routes:r,reload:function(){y=!0,n.$evalAsync(function(){h(),p()})},updateParams:function(t){if(!this.current||!this.current.$$route)throw u("norout","Tried updating route when with no current route");t=e.extend({},this.current.params,t),i.path(v(this.current.$$route.originalPath,t)),i.search(t)}};return n.$on("$locationChangeStart",h),n.$on("$locationChangeSuccess",p),_}]}function i(){this.$get=function(){return{}}}function o(t,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,s,u){function l(){p&&(r.cancel(p),p=null),f&&(f.$destroy(),f=null),h&&(p=r.leave(h),p.then(function(){p=null}),h=null)}function c(){var a=t.current&&t.current.locals,s=a&&a.$template;if(e.isDefined(s)){var c=i.$new(),p=t.current,m=u(c,function(t){r.enter(t,null,h||o).then(function(){!e.isDefined(d)||d&&!i.$eval(d)||n()}),l()});h=m,f=p.scope=c,f.$emit("$viewContentLoaded"),f.$eval(v)}else l()}var f,h,p,d=a.autoscroll,v=a.onload||"";i.$on("$routeChangeSuccess",c),c()}}}function a(t,e,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,a=o.locals;i.html(a.$template);var s=t(i.contents());if(o.controller){a.$scope=r;var u=e(o.controller,a);o.controllerAs&&(r[o.controllerAs]=u),i.data("$ngControllerController",u),i.children().data("$ngControllerController",u)}s(r)}}}var s=e.module("ngRoute",["ng"]).provider("$route",r),u=e.$$minErr("ngRoute");s.provider("$routeParams",i),s.directive("ngView",o),s.directive("ngView",a),o.$inject=["$route","$anchorScroll","$animate"],a.$inject=["$compile","$controller","$route"]}(window,window.angular),function(t,e,n){"use strict";function r(){this.$get=["$$sanitizeUri",function(t){return function(e){var n=[];return a(e,l(n,function(e,n){return!/^unsafe/.test(t(e,n))})),n.join("")}}]}function i(t){var n=[],r=l(n,e.noop);return r.chars(t),n.join("")}function o(t,n){var r,i={},o=t.split(",");for(r=0;r<o.length;r++)i[n?e.lowercase(o[r]):o[r]]=!0;return i}function a(t,n){function r(t,r,o,a){if(r=e.lowercase(r),S[r])for(;_.last()&&C[_.last()];)i("",_.last());k[r]&&_.last()==r&&i("",r),a=w[r]||!!a,a||_.push(r);var u={};o.replace(p,function(t,e,n,r,i){var o=n||r||i||"";u[e]=s(o)}),n.start&&n.start(r,u,a)}function i(t,r){var i,o=0;if(r=e.lowercase(r))for(o=_.length-1;o>=0&&_[o]!=r;o--);if(o>=0){for(i=_.length-1;i>=o;i--)n.end&&n.end(_[i]);_.length=o}}"string"!=typeof t&&(t=null===t||"undefined"==typeof t?"":""+t);var o,a,u,l,_=[],b=t;for(_.last=function(){return _[_.length-1]};t;){if(l="",a=!0,_.last()&&T[_.last()]?(t=t.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+_.last()+"[^>]*>","i"),function(t,e){return e=e.replace(m,"$1").replace(y,"$1"),n.chars&&n.chars(s(e)),""}),i("",_.last())):(0===t.indexOf("<!--")?(o=t.indexOf("--",4),o>=0&&t.lastIndexOf("-->",o)===o&&(n.comment&&n.comment(t.substring(4,o)),t=t.substring(o+3),a=!1)):g.test(t)?(u=t.match(g),u&&(t=t.replace(u[0],""),a=!1)):v.test(t)?(u=t.match(h),u&&(t=t.substring(u[0].length),u[0].replace(h,i),a=!1)):d.test(t)&&(u=t.match(f),u?(u[4]&&(t=t.substring(u[0].length),u[0].replace(f,r)),a=!1):(l+="<",t=t.substring(1))),a&&(o=t.indexOf("<"),l+=0>o?t:t.substring(0,o),t=0>o?"":t.substring(o),n.chars&&n.chars(s(l)))),t==b)throw c("badparse","The sanitizer was unable to parse the following block of html: {0}",t);b=t}i()}function s(t){return t?(O.innerHTML=t.replace(/</g,"&lt;"),O.textContent):""}function u(t){return t.replace(/&/g,"&amp;").replace(_,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(n-56320)+65536)+";"}).replace(b,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function l(t,n){var r=!1,i=e.bind(t,t.push);return{start:function(t,o,a){t=e.lowercase(t),!r&&T[t]&&(r=t),r||F[t]!==!0||(i("<"),i(t),e.forEach(o,function(r,o){var a=e.lowercase(o),s="img"===t&&"src"===a||"background"===a;M[a]!==!0||j[a]===!0&&!n(r,s)||(i(" "),i(o),i('="'),i(u(r)),i('"'))}),i(a?"/>":">"))},end:function(t){t=e.lowercase(t),r||F[t]!==!0||(i("</"),i(t),i(">")),t==r&&(r=!1)},chars:function(t){r||i(u(t))}}}var c=e.$$minErr("$sanitize"),f=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,h=/^<\/\s*([\w:-]+)[^>]*>/,p=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,d=/^</,v=/^<\//,m=/<!--(.*?)-->/g,g=/<!DOCTYPE([^>]*?)>/i,y=/<!\[CDATA\[(.*?)]]>/g,_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/([^\#-~| |!])/g,w=o("area,br,col,hr,img,wbr"),x=o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$=o("rp,rt"),k=e.extend({},$,x),S=e.extend({},x,o("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),C=e.extend({},$,o("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),E=o("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),T=o("script,style"),F=e.extend({},w,S,C,k,E),j=o("background,cite,href,longdesc,src,usemap,xlink:href"),A=o("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),D=o("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),M=e.extend({},j,D,A),O=document.createElement("pre");e.module("ngSanitize",[]).provider("$sanitize",r),e.module("ngSanitize").filter("linky",["$sanitize",function(t){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i;return function(o,a){function s(t){t&&p.push(i(t))}function u(t,n){p.push("<a "),e.isDefined(a)&&p.push('target="',a,'" '),p.push('href="',t.replace(/"/g,"&quot;"),'">'),s(n),p.push("</a>")}if(!o)return o;for(var l,c,f,h=o,p=[];l=h.match(n);)c=l[0],l[2]||l[4]||(c=(l[3]?"http://":"mailto:")+c),f=l.index,s(h.substr(0,f)),u(c,l[0].replace(r,"")),h=h.substring(f+l[0].length);return s(h),t(p.join(""))}}])}(window,window.angular),function(t,e,n){"use strict";function r(t,e,n){if(!t)throw ngMinErr("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function i(t,e){return t||e?t?e?(H(t)&&(t=t.join(" ")),H(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function o(t){var e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}function a(t,e,n){var r="";return t=H(t)?t:t&&U(t)&&t.length?t.split(/\s+/):[],q(t,function(t,i){t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)}),r}function s(t,e){var n=t.indexOf(e);e>=0&&t.splice(n,1)}function u(t){if(t instanceof z)switch(t.length){case 0:return[];case 1:if(t[0].nodeType===G)return t;break;default:return z(l(t))}return t.nodeType===G?z(t):void 0}function l(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType==G)return n}}function c(t,e,n){q(e,function(e){t.addClass(e,n)})}function f(t,e,n){q(e,function(e){t.removeClass(e,n)})}function h(t){return function(e,n){n.addClass&&(c(t,e,n.addClass),n.addClass=null),n.removeClass&&(f(t,e,n.removeClass),n.removeClass=null)}}function p(t){if(t=t||{},!t.$$prepared){var e=t.domOperation||R;t.domOperation=function(){t.$$domOperationFired=!0,e(),e=R},t.$$prepared=!0}return t}function d(t,e){v(t,e),m(t,e)}function v(t,e){e.from&&(t.css(e.from),e.from=null)}function m(t,e){e.to&&(t.css(e.to),e.to=null)}function g(t,e,n){var r=(e.addClass||"")+" "+(n.addClass||""),i=(e.removeClass||"")+" "+(n.removeClass||""),o=y(t.attr("class"),r,i);n.preparationClasses&&(e.preparationClasses=S(n.preparationClasses,e.preparationClasses),delete n.preparationClasses);var a=e.domOperation!==R?e.domOperation:null;return L(e,n),a&&(e.domOperation=a),o.addClass?e.addClass=o.addClass:e.addClass=null,o.removeClass?e.removeClass=o.removeClass:e.removeClass=null,e}function y(t,e,n){function r(t){U(t)&&(t=t.split(" "));var e={};return q(t,function(t){t.length&&(e[t]=!0)}),e}var i=1,o=-1,a={};t=r(t),e=r(e),q(e,function(t,e){a[e]=i}),n=r(n),q(n,function(t,e){a[e]=a[e]===i?null:o});var s={addClass:"",removeClass:""};return q(a,function(e,n){var r,a;e===i?(r="addClass",a=!t[n]):e===o&&(r="removeClass",a=t[n]),a&&(s[r].length&&(s[r]+=" "),s[r]+=n)}),s}function _(t){return t instanceof e.element?t[0]:t}function b(t,e,n){var r="";e&&(r=a(e,Q,!0)),n.addClass&&(r=S(r,a(n.addClass,X))),n.removeClass&&(r=S(r,a(n.removeClass,J))),r.length&&(n.preparationClasses=r,t.addClass(r))}function w(t,e){e.preparationClasses&&(t.removeClass(e.preparationClasses),e.preparationClasses=null),e.activeClasses&&(t.removeClass(e.activeClasses),e.activeClasses=null)}function x(t,e){var n=e?"-"+e+"s":"";return k(t,[ht,n]),[ht,n]}function $(t,e){var n=e?"paused":"",r=P+ut;return k(t,[r,n]),[r,n]}function k(t,e){var n=e[0],r=e[1];t.style[n]=r}function S(t,e){return t?e?t+" "+e:t:e}function C(t){return[ft,t+"s"]}function E(t,e){var n=e?ct:ht;return[n,t+"s"]}function T(t,e,n){var r=Object.create(null),i=t.getComputedStyle(e)||{};return q(n,function(t,e){var n=i[t];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=F(n)),0===n&&(n=null),r[e]=n}}),r}function F(t){var e=0,n=t.split(/\s*,\s*/);return q(n,function(t){"s"==t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t}),e}function j(t){return 0===t||null!=t}function A(t,e){var n=O,r=t+"s";return e?n+=rt:r+=" linear all",[n,r]}function D(){var t=Object.create(null);return{flush:function(){t=Object.create(null)},count:function(e){var n=t[e];return n?n.total:0},get:function(e){var n=t[e];return n&&n.value},put:function(e,n){t[e]?t[e].total++:t[e]={total:1,value:n}}}}function M(t,e,n){q(n,function(n){t[n]=B(t[n])?t[n]:e.style.getPropertyValue(n)})}var O,I,P,N,R=e.noop,L=e.extend,z=e.element,q=e.forEach,H=e.isArray,U=e.isString,W=e.isObject,V=e.isUndefined,B=e.isDefined,Y=e.isFunction,K=e.isElement,G=1,X="-add",J="-remove",Q="ng-",Z="-active",tt="ng-animate",et="$$ngAnimateChildren",nt="";V(t.ontransitionend)&&B(t.onwebkittransitionend)?(nt="-webkit-",O="WebkitTransition",I="webkitTransitionEnd transitionend"):(O="transition",I="transitionend"),V(t.onanimationend)&&B(t.onwebkitanimationend)?(nt="-webkit-",P="WebkitAnimation",N="webkitAnimationEnd animationend"):(P="animation",N="animationend");var rt="Duration",it="Property",ot="Delay",at="TimingFunction",st="IterationCount",ut="PlayState",lt=9999,ct=P+ot,ft=P+rt,ht=O+ot,pt=O+rt,dt=["$$rAF",function(t){function e(t){r=r.concat(t),n()}function n(){if(r.length){for(var e=r.shift(),o=0;o<e.length;o++)e[o]();i||t(function(){i||n()})}}var r,i;return r=e.queue=[],e.waitUntilQuiet=function(e){i&&i(),i=t(function(){i=null,e(),n()})},e}],vt=[function(){return function(t,n,r){var i=r.ngAnimateChildren;e.isString(i)&&0===i.length?n.data(et,!0):r.$observe("ngAnimateChildren",function(t){t="on"===t||"true"===t,n.data(et,t)})}}],mt="$$animateCss",gt=1e3,yt=3,_t=1.5,bt={transitionDuration:pt,transitionDelay:ht,transitionProperty:O+it,animationDuration:ft,animationDelay:ct,animationIterationCount:P+st},wt={transitionDuration:pt,transitionDelay:ht,animationDuration:ft,animationDelay:ct},xt=["$animateProvider",function(t){var e=D(),n=D();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$animate",function(t,r,i,u,l,c,f,g){function y(t,e){var n="$$ngAnimateParentKey",r=t.parentNode,i=r[n]||(r[n]=++L);return i+"-"+t.getAttribute("class")+"-"+e}function b(n,r,i,o){var a=e.get(i);return a||(a=T(t,n,o),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1)),e.put(i,a),a}function w(i,o,s,u){var l;if(e.count(s)>0&&(l=n.get(s),!l)){var c=a(o,"-stagger");r.addClass(i,c),l=T(t,i,u),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,c),n.put(s,l)}return l||{}}function S(t){z.push(t),f.waitUntilQuiet(function(){e.flush(),n.flush();for(var t=l(),r=0;r<z.length;r++)z[r](t);z.length=0})}function F(t,e,n){var r=b(t,e,n,bt),i=r.animationDelay,o=r.transitionDelay;return r.maxDelay=i&&o?Math.max(i,o):i||o,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var D=h(r),L=0,z=[];return function(t,n){function l(){h()}function f(){h(!0)}function h(e){W||B&&V||(W=!0,V=!1,n.$$skipPreparationClasses||r.removeClass(t,pt),r.removeClass(t,vt),$(U,!1),x(U,!1),q(rt,function(t){U.style[t[0]]=""}),D(t,n),d(t,n),Object.keys(z).length&&q(z,function(t,e){t?U.style.setProperty(e,t):U.style.removeProperty(e)}),n.onDone&&n.onDone(),Y&&Y.complete(!e))}function b(t){Ot.blockTransition&&x(U,t),Ot.blockKeyframeAnimation&&$(U,!!t)}function T(){return Y=new i({end:l,cancel:f}),S(R),h(),{$$willAnimate:!1,start:function(){return Y},end:l}}function L(){function e(){if(!W){if(b(!1),q(rt,function(t){var e=t[0],n=t[1];U.style[e]=n}),D(t,n),r.addClass(t,vt),Ot.recalculateTimingStyles){if(dt=U.className+" "+pt,$t=y(U,dt),Dt=F(U,dt,$t),Mt=Dt.maxDelay,G=Math.max(Mt,0),et=Dt.maxDuration,0===et)return void h();Ot.hasTransitions=Dt.transitionDuration>0,Ot.hasAnimations=Dt.animationDuration>0}if(Ot.applyAnimationDelay&&(Mt="boolean"!=typeof n.delay&&j(n.delay)?parseFloat(n.delay):Mt,G=Math.max(Mt,0),Dt.animationDelay=Mt,It=E(Mt,!0),rt.push(It),U.style[It[0]]=It[1]),tt=G*gt,nt=et*gt,n.easing){var e,s=n.easing;Ot.hasTransitions&&(e=O+at,rt.push([e,s]),U.style[e]=s),Ot.hasAnimations&&(e=P+at,rt.push([e,s]),U.style[e]=s)}Dt.transitionDuration&&l.push(I),Dt.animationDuration&&l.push(N),a=Date.now();var c=tt+_t*nt,f=a+c,p=t.data(mt)||[],d=!0;if(p.length){var v=p[0];d=f>v.expectedEndTime,d?u.cancel(v.timer):p.push(h)}if(d){var g=u(i,c,!1);p[0]={timer:g,expectedEndTime:f},p.push(h),t.data(mt,p)}t.on(l.join(" "),o),n.to&&(n.cleanupStyles&&M(z,U,Object.keys(n.to)),m(t,n))}}function i(){var e=t.data(mt);if(e){for(var n=1;n<e.length;n++)e[n]();t.removeData(mt)}}function o(t){t.stopPropagation();var e=t.originalEvent||t,n=e.$manualTimeStamp||e.timeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(yt));Math.max(n-a,0)>=tt&&r>=et&&(B=!0,h())}if(!W){if(!U.parentNode)return void h();var a,l=[],c=function(t){if(B)V&&t&&(V=!1,h());else if(V=!t,Dt.animationDuration){var e=$(U,V);V?rt.push(e):s(rt,e)}},f=jt>0&&(Dt.transitionDuration&&0===kt.transitionDuration||Dt.animationDuration&&0===kt.animationDuration)&&Math.max(kt.animationDelay,kt.transitionDelay);f?u(e,Math.floor(f*jt*gt),!1):e(),K.resume=function(){c(!0)},K.pause=function(){c(!1)}}}var z={},U=_(t);if(!U||!U.parentNode||!g.enabled())return T();n=p(n);var W,V,B,Y,K,G,tt,et,nt,rt=[],ot=t.attr("class"),st=o(n);if(0===n.duration||!c.animations&&!c.transitions)return T();var ut=n.event&&H(n.event)?n.event.join(" "):n.event,ct=ut&&n.structural,ft="",ht="";ct?ft=a(ut,Q,!0):ut&&(ft=ut),n.addClass&&(ht+=a(n.addClass,X)),n.removeClass&&(ht.length&&(ht+=" "),ht+=a(n.removeClass,J)),n.applyClassesEarly&&ht.length&&D(t,n);var pt=[ft,ht].join(" ").trim(),dt=ot+" "+pt,vt=a(pt,Z),bt=st.to&&Object.keys(st.to).length>0,xt=(n.keyframeStyle||"").length>0;if(!xt&&!bt&&!pt)return T();var $t,kt;if(n.stagger>0){var St=parseFloat(n.stagger);kt={transitionDelay:St,animationDelay:St,transitionDuration:0,animationDuration:0}}else $t=y(U,dt),kt=w(U,pt,$t,wt);n.$$skipPreparationClasses||r.addClass(t,pt);var Ct;if(n.transitionStyle){var Et=[O,n.transitionStyle];k(U,Et),rt.push(Et)}if(n.duration>=0){Ct=U.style[O].length>0;var Tt=A(n.duration,Ct);k(U,Tt),rt.push(Tt)}if(n.keyframeStyle){var Ft=[P,n.keyframeStyle];k(U,Ft),rt.push(Ft)}var jt=kt?n.staggerIndex>=0?n.staggerIndex:e.count($t):0,At=0===jt;At&&!n.skipBlocking&&x(U,lt);var Dt=F(U,dt,$t),Mt=Dt.maxDelay;G=Math.max(Mt,0),et=Dt.maxDuration;var Ot={};if(Ot.hasTransitions=Dt.transitionDuration>0,Ot.hasAnimations=Dt.animationDuration>0,Ot.hasTransitionAll=Ot.hasTransitions&&"all"==Dt.transitionProperty,Ot.applyTransitionDuration=bt&&(Ot.hasTransitions&&!Ot.hasTransitionAll||Ot.hasAnimations&&!Ot.hasTransitions),Ot.applyAnimationDuration=n.duration&&Ot.hasAnimations,Ot.applyTransitionDelay=j(n.delay)&&(Ot.applyTransitionDuration||Ot.hasTransitions),Ot.applyAnimationDelay=j(n.delay)&&Ot.hasAnimations,Ot.recalculateTimingStyles=ht.length>0,(Ot.applyTransitionDuration||Ot.applyAnimationDuration)&&(et=n.duration?parseFloat(n.duration):et,Ot.applyTransitionDuration&&(Ot.hasTransitions=!0,Dt.transitionDuration=et,Ct=U.style[O+it].length>0,rt.push(A(et,Ct))),Ot.applyAnimationDuration&&(Ot.hasAnimations=!0,Dt.animationDuration=et,rt.push(C(et)))),0===et&&!Ot.recalculateTimingStyles)return T();if(null!=n.delay){var It=parseFloat(n.delay);Ot.applyTransitionDelay&&rt.push(E(It)),Ot.applyAnimationDelay&&rt.push(E(It,!0))}return null==n.duration&&Dt.transitionDuration>0&&(Ot.recalculateTimingStyles=Ot.recalculateTimingStyles||At),tt=G*gt,nt=et*gt,n.skipBlocking||(Ot.blockTransition=Dt.transitionDuration>0,Ot.blockKeyframeAnimation=Dt.animationDuration>0&&kt.animationDelay>0&&0===kt.animationDuration),n.from&&(n.cleanupStyles&&M(z,U,Object.keys(n.from)),v(t,n)),Ot.blockTransition||Ot.blockKeyframeAnimation?b(et):n.skipBlocking||x(U,!1),{$$willAnimate:!0,end:l,start:function(){return W?void 0:(K={end:l,cancel:f,resume:null,pause:null},Y=new i(K),S(L),Y)}}}}]}],$t=["$$animationProvider",function(t){function e(t){return t.parentNode&&11===t.parentNode.nodeType}t.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",o="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(t,a,s,u,l,c,f){function p(t){return t.replace(/\bng-\S+\b/g,"")}function d(t,e){return U(t)&&(t=t.split(" ")),U(e)&&(e=e.split(" ")),t.filter(function(t){return-1===e.indexOf(t)}).join(" ")}function v(e,a,u){function l(t){var e={},n=_(t).getBoundingClientRect();return q(["width","height","top","left"],function(t){var r=n[t];switch(t){case"top":r+=y.scrollTop;break;case"left":r+=y.scrollLeft}e[t]=Math.floor(r)+"px"}),e}function c(){var e=t(m,{addClass:i,delay:!0,from:l(a)});return e.$$willAnimate?e:null}function f(t){return t.attr("class")||""}function h(){var e=p(f(u)),n=d(e,g),r=d(g,e),a=t(m,{to:l(u),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function v(){m.remove(),a.removeClass(n),u.removeClass(n)}var m=z(_(a).cloneNode(!0)),g=p(f(m));a.addClass(n),u.addClass(n),m.addClass(r),w.append(m);var b,x=c();if(!x&&(b=h(),!b))return v();var $=x||b;return{start:function(){function t(){n&&n.end()}var e,n=$.start();return n.done(function(){return n=null,!b&&(b=h())?(n=b.start(),n.done(function(){n=null,v(),e.complete()}),n):(v(),void e.complete())}),e=new s({end:t,cancel:t})}}}function m(t,e,n,r){var i=g(t,R),o=g(e,R),a=[];return q(r,function(t){var e=t.out,r=t["in"],i=v(n,e,r);i&&a.push(i)}),i||o||0!==a.length?{start:function(){function t(){q(e,function(t){t.end()})}var e=[];i&&e.push(i.start()),o&&e.push(o.start()),q(a,function(t){e.push(t.start())});var n=new s({end:t,cancel:t});return s.all(e,function(t){n.complete(t)}),n}}:void 0}function g(e){var n=e.element,r=e.options||{};e.structural&&(r.event=e.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===e.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=S(r.event,r.preparationClasses));var i=t(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return R;var y=f[0].body,b=_(u),w=z(e(b)||y.contains(b)?b:y);h(c);return function(t){return t.from&&t.to?m(t.from,t.to,t.classes,t.anchors):g(t)}}]}],kt=["$animateProvider",function(t){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(e,n,r){function i(n){n=H(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=t.$$registeredAnimations[a];s&&!i[a]&&(r.push(e.get(s)),i[a]=!0)}return r}var o=h(r);return function(t,e,r,a){function s(){a.domOperation(),o(t,a)}function u(t,e,r,i,o){var a;switch(r){case"animate":a=[e,i.from,i.to,o];break;case"setClass":a=[e,v,m,o];break;case"addClass":a=[e,v,o];break;case"removeClass":a=[e,m,o];break;default:a=[e,o]}a.push(i);var s=t.apply(t,a);if(s)if(Y(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(Y(s))return s;return R}function l(t,e,r,i,o){var a=[];return q(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,l=function(t){a||(a=!0,(o||R)(t),i.complete(!t))};return i=new n({end:function(){l()},cancel:function(){l(!0)}}),o=u(s,t,e,r,function(t){var e=t===!1;l(e)}),i})}),a}function c(t,e,r,i,o){var a=l(t,e,r,i,o);if(0===a.length){var s,u;"beforeSetClass"===o?(s=l(t,"removeClass",r,i,"beforeRemoveClass"),u=l(t,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(s=l(t,"removeClass",r,i,"removeClass"),u=l(t,"addClass",r,i,"addClass")),s&&(a=a.concat(s)),u&&(a=a.concat(u))}if(0!==a.length)return function(t){var e=[];return a.length&&q(a,function(t){e.push(t())}),e.length?n.all(e,t):t(),function(t){q(e,function(e){t?e.cancel():e.end()})}}}3===arguments.length&&W(r)&&(a=r,r=null),a=p(a),r||(r=t.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var f,h,v=a.addClass,m=a.removeClass,g=i(r);if(g.length){var y,_;"leave"==e?(_="leave",y="afterLeave"):(_="before"+e.charAt(0).toUpperCase()+e.substr(1),y=e),"enter"!==e&&"move"!==e&&(f=c(t,e,a,g,_)),h=c(t,e,a,g,y)}return f||h?{start:function(){function e(e){u=!0,s(),d(t,a),l.complete(e)}function r(t){u||((i||R)(t),e(t))}var i,o=[];f&&o.push(function(t){i=f(t)}),o.length?o.push(function(t){s(),t(!0)}):s(),h&&o.push(function(t){i=h(t)});var u=!1,l=new n({end:function(){r()},cancel:function(){r(!0)}});return n.chain(o,e),l}}:void 0}}]}],St=["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){function n(e){var n=e.element,r=e.event,i=e.options,o=e.classes;return t(n,r,o,i)}return function(t){if(t.from&&t.to){var r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start:function(){function t(){return function(){q(o,function(t){t.end()})}}function n(t){a.complete(t)}var o=[];r&&o.push(r.start()),i&&o.push(i.start()),e.all(o,n);var a=new e({end:t(),cancel:t()});return a}}}return n(t)}}]}],Ct="data-ng-animate",Et="$ngAnimatePin",Tt=["$animateProvider",function(t){function e(t,e,n,r){return a[t].some(function(t){return t(e,n,r)})}function n(t,e){t=t||{};var n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}var i=1,o=2,a=this.rules={skip:[],cancel:[],join:[]};a.join.push(function(t,e,r){return!e.structural&&n(e.options)}),a.skip.push(function(t,e,r){return!e.structural&&!n(e.options)}),a.skip.push(function(t,e,n){return"leave"==n.event&&e.structural}),a.skip.push(function(t,e,n){return n.structural&&n.state===o&&!e.structural}),a.cancel.push(function(t,e,n){return n.structural&&e.structural}),a.cancel.push(function(t,e,n){return n.state===o&&e.structural}),a.cancel.push(function(t,e,n){var r=e.options,i=n.options;return r.addClass&&r.addClass===i.removeClass||r.removeClass&&r.removeClass===i.addClass}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(a,s,c,f,v,m,y,x,$,k){function S(){var t=!1;return function(e){t?e():s.$$postDigest(function(){t=!0,e()})}}function C(t,e){return g(t,e,{})}function E(t,e){var n=_(t),r=[],i=R[e];return i&&q(i,function(t){t.node.contains(n)&&r.push(t.callback)}),r}function T(t,r,l){function c(e,n,r,i){$(function(){var e=E(t,n);e.length&&a(function(){q(e,function(e){e(t,r,i)})})}),e.progress(n,r,i)}function f(e){w(t,l),J(t,l),d(t,l),l.domOperation(),x.complete(!e)}var h,v;t=u(t),t&&(h=_(t),v=t.parent()),l=p(l);var x=new y,$=S();if(H(l.addClass)&&(l.addClass=l.addClass.join(" ")),l.addClass&&!U(l.addClass)&&(l.addClass=null),H(l.removeClass)&&(l.removeClass=l.removeClass.join(" ")),l.removeClass&&!U(l.removeClass)&&(l.removeClass=null),l.from&&!W(l.from)&&(l.from=null),l.to&&!W(l.to)&&(l.to=null),!h)return f(),x;var k=[h.className,l.addClass,l.removeClass].join(" ");if(!X(k))return f(),x;var T=["enter","move","leave"].indexOf(r)>=0,A=!P||I.get(h),N=!A&&O.get(h)||{},R=!!N.state;if(A||R&&N.state==i||(A=!D(t,v,r)),A)return f(),x;T&&F(t);var L={structural:T,element:t,event:r,close:f,options:l,runner:x};if(R){var z=e("skip",t,L,N);if(z)return N.state===o?(f(),x):(g(t,N.options,l),N.runner);var V=e("cancel",t,L,N);if(V)if(N.state===o)N.runner.end();else{if(!N.structural)return g(t,N.options,L.options),N.runner;N.close()}else{var B=e("join",t,L,N);if(B){if(N.state!==o)return b(t,T?r:null,l),r=L.event=N.event,l=g(t,N.options,L.options),N.runner;C(t,l)}}}else C(t,l);var Y=L.structural;if(Y||(Y="animate"===L.event&&Object.keys(L.options.to||{}).length>0||n(L.options)),!Y)return f(),j(t),x;var K=(N.counter||0)+1;return L.counter=K,M(t,i,L),s.$$postDigest(function(){var e=O.get(h),i=!e;e=e||{};var a=t.parent()||[],s=a.length>0&&("animate"===e.event||e.structural||n(e.options));if(i||e.counter!==K||!s)return i&&(J(t,l),d(t,l)),(i||T&&e.event!==r)&&(l.domOperation(),x.end()),void(s||j(t));r=!e.structural&&n(e.options,!0)?"setClass":e.event,M(t,o);var u=m(t,r,e.options);u.done(function(e){f(!e);var n=O.get(h);n&&n.counter===K&&j(_(t)),c(x,r,"close",{})}),x.setHost(u),c(x,r,"start",{})}),x}function F(t){var e=_(t),n=e.querySelectorAll("["+Ct+"]");q(n,function(t){var e=parseInt(t.getAttribute(Ct)),n=O.get(t);switch(e){case o:n.runner.end();case i:n&&O.remove(t)}})}function j(t){var e=_(t);e.removeAttribute(Ct),O.remove(e)}function A(t,e){return _(t)===_(e)}function D(t,e,n){var r,i=z(f[0].body),o=A(t,i)||"HTML"===t[0].nodeName,a=A(t,c),s=!1,u=t.data(Et);for(u&&(e=u);e&&e.length;){a||(a=A(e,c));var l=e[0];if(l.nodeType!==G)break;var h=O.get(l)||{};if(s||(s=h.structural||I.get(l)),V(r)||r===!0){
var p=e.data(et);B(p)&&(r=p)}if(s&&r===!1)break;a||(a=A(e,c),a||(u=e.data(Et),u&&(e=u))),o||(o=A(e,i)),e=e.parent()}var d=!s||r;return d&&a&&o}function M(t,e,n){n=n||{},n.state=e;var r=_(t);r.setAttribute(Ct,e);var i=O.get(r),o=i?L(i,n):n;O.put(r,o)}var O=new v,I=new v,P=null,N=s.$watch(function(){return 0===x.totalPendingRequests},function(t){t&&(N(),s.$$postDigest(function(){s.$$postDigest(function(){null===P&&(P=!0)})}))}),R={},Y=t.classNameFilter(),X=Y?function(t){return Y.test(t)}:function(){return!0},J=h($);return{on:function(t,e,n){var r=l(e);R[t]=R[t]||[],R[t].push({node:r,callback:n})},off:function(t,e,n){function r(t,e,n){var r=l(e);return t.filter(function(t){var e=t.node===r&&(!n||t.callback===n);return!e})}var i=R[t];i&&(R[t]=1===arguments.length?null:r(i,e,n))},pin:function(t,e){r(K(t),"element","not an element"),r(K(e),"parentElement","not an element"),t.data(Et,e)},push:function(t,e,n,r){return n=n||{},n.domOperation=r,T(t,e,n)},enabled:function(t,e){var n=arguments.length;if(0===n)e=!!P;else{var r=K(t);if(r){var i=_(t),o=I.get(i);1===n?e=!o:(e=!!e,e?o&&I.remove(i):I.put(i,!0))}else e=P=!!t}return e}}}]}],Ft=["$$rAF",function(t){function e(e){n.push(e),n.length>1||t(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}var n=[];return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}],jt=["$q","$sniffer","$$animateAsyncRun",function(t,e,n){function r(t){this.setHost(t),this._doneCallbacks=[],this._runInAnimationFrame=n(),this._state=0}var i=0,o=1,a=2;return r.chain=function(t,e){function n(){return r===t.length?void e(!0):void t[r](function(t){return t===!1?void e(!1):(r++,void n())})}var r=0;n()},r.all=function(t,e){function n(n){i=i&&n,++r===t.length&&e(i)}var r=0,i=!0;q(t,function(t){t.done(n)})},r.prototype={setHost:function(t){this.host=t||{}},done:function(t){this._state===a?t():this._doneCallbacks.push(t)},progress:R,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){e===!1?n():t()})})}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},"catch":function(t){return this.getPromise()["catch"](t)},"finally":function(t){return this.getPromise()["finally"](t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;e._state===i&&(e._state=o,e._runInAnimationFrame(function(){e._resolve(t)}))},_resolve:function(t){this._state!==a&&(q(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=a)}},r}],At=["$animateProvider",function(t){function e(t,e){t.data(s,e)}function n(t){t.removeData(s)}function r(t){return t.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(t,s,u,l,c,f){function v(t){function e(t){if(t.processed)return t;t.processed=!0;var n=t.domNode,r=n.parentNode;o.put(n,t);for(var a;r;){if(a=o.get(r)){a.processed||(a=e(a));break}r=r.parentNode}return(a||i).children.push(t),t}function n(t){var e,n=[],r=[];for(e=0;e<t.children.length;e++)r.push(t.children[e]);var i=r.length,o=0,a=[];for(e=0;e<r.length;e++){var s=r[e];0>=i&&(i=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(t){o++,r.push(t)}),i--}return a.length&&n.push(a),n}var r,i={children:[]},o=new c;for(r=0;r<t.length;r++){var a=t[r];o.put(a.domNode,t[r]={domNode:a.domNode,fn:a.fn,children:[]})}for(r=0;r<t.length;r++)e(t[r]);return n(i)}var m=[],g=h(t);return function(c,h,y){function b(t){var e="["+o+"]",n=t.hasAttribute(o)?[t]:t.querySelectorAll(e),r=[];return q(n,function(t){var e=t.getAttribute(o);e&&e.length&&r.push(t)}),r}function w(t){var e=[],n={};q(t,function(t,r){var i=t.element,a=_(i),s=t.event,u=["enter","move"].indexOf(s)>=0,l=t.structural?b(a):[];if(l.length){var c=u?"to":"from";q(l,function(t){var e=t.getAttribute(o);n[e]=n[e]||{},n[e][c]={animationID:r,element:z(t)}})}else e.push(t)});var r={},i={};return q(n,function(n,o){var a=n.from,s=n.to;if(!a||!s){var u=a?a.animationID:s.animationID,l=u.toString();return void(r[l]||(r[l]=!0,e.push(t[u])))}var c=t[a.animationID],f=t[s.animationID],h=a.animationID.toString();if(!i[h]){var p=i[h]={structural:!0,beforeStart:function(){c.beforeStart(),f.beforeStart()},close:function(){c.close(),f.close()},classes:x(c.classes,f.classes),from:c,to:f,anchors:[]};p.classes.length?e.push(p):(e.push(c),e.push(f))}i[h].anchors.push({out:a.element,"in":s.element})}),e}function x(t,e){t=t.split(" "),e=e.split(" ");for(var n=[],r=0;r<t.length;r++){var i=t[r];if("ng-"!==i.substring(0,3))for(var o=0;o<e.length;o++)if(i===e[o]){n.push(i);break}}return n.join(" ")}function $(t){for(var e=a.length-1;e>=0;e--){var n=a[e];if(u.has(n)){var r=u.get(n),i=r(t);if(i)return i}}}function k(){c.addClass(tt),A&&t.addClass(c,A)}function S(t,e){function n(t){r(t).setHost(e)}t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element)}function C(){var t=r(c);!t||"leave"===h&&y.$$domOperationFired||t.end()}function E(e){c.off("$destroy",C),n(c),g(c,y),d(c,y),y.domOperation(),A&&t.removeClass(c,A),c.removeClass(tt),F.complete(!e)}y=p(y);var T=["enter","move","leave"].indexOf(h)>=0,F=new l({end:function(){E()},cancel:function(){E(!0)}});if(!a.length)return E(),F;e(c,F);var j=i(c.attr("class"),i(y.addClass,y.removeClass)),A=y.tempClasses;return A&&(j+=" "+A,y.tempClasses=null),m.push({element:c,classes:j,event:h,structural:T,options:y,beforeStart:k,close:E}),c.on("$destroy",C),m.length>1?F:(s.$$postDigest(function(){var t=[];q(m,function(e){r(e.element)?t.push(e):e.close()}),m.length=0;var e=w(t),n=[];q(e,function(t){n.push({domNode:_(t.from?t.from.element:t.element),fn:function(){t.beforeStart();var e,n=t.close,i=t.anchors?t.from.element||t.to.element:t.element;if(r(i)){var o=$(t);o&&(e=o.start)}if(e){var a=e();a.done(function(t){n(!t)}),S(t,a)}else n()}})}),f(v(n))}),F)}}]}];e.module("ngAnimate",[]).directive("ngAnimateChildren",vt).factory("$$rAFScheduler",dt).factory("$$AnimateRunner",jt).factory("$$animateAsyncRun",Ft).provider("$$animateQueue",Tt).provider("$$animation",At).provider("$animateCss",xt).provider("$$animateCssDriver",$t).provider("$$animateJs",kt).provider("$$animateJsDriver",St)}(window,window.angular),function(t,e,n){"use strict";function r(){function t(t,e,r,i){return function(o,s,u){var l=u.$normalize(e);!n[l]||a(s,r)||u[l]||o.$watch(u[t],function(t){t=i?!t:!!t,s.attr(e,t)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaMultiline:!0,ariaValue:!0,tabindex:!0,bindKeypress:!0,bindRoleForClick:!0};this.config=function(t){n=e.extend(n,t)},this.$get=function(){return{config:function(t){return n[t]},$$watchExpr:t}}}var i=e.module("ngAria",["ng"]).provider("$aria",r),o=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],a=function(t,e){return-1!==e.indexOf(t[0].nodeName)?!0:void 0};i.directive("ngShow",["$aria",function(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngModel",["$aria",function(t){function e(e,n,r){return t.config(n)&&!r.attr(e)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&"INPUT"!==e[0].nodeName}function r(t,e){var n=t.type,r=t.role;return"checkbox"===(n||r)||"menuitemcheckbox"===r?"checkbox":"radio"===(n||r)||"menuitemradio"===r?"radio":"range"===n||"progressbar"===r||"slider"===r?"range":"textbox"===(n||r)||"TEXTAREA"===e[0].nodeName?"multiline":""}return{restrict:"A",require:"?ngModel",priority:200,compile:function(i,o){var a=r(o,i);return{pre:function(t,e,n,r){"checkbox"===a&&"checkbox"!==n.type&&(r.$isEmpty=function(t){return t===!1})},post:function(r,i,o,s){function u(){return s.$modelValue}function l(){return f?(f=!1,function(t){var e=o.value==s.$viewValue;i.attr("aria-checked",e),i.attr("tabindex",0-!e)}):function(t){i.attr("aria-checked",o.value==s.$viewValue)}}function c(){i.attr("aria-checked",!s.$isEmpty(s.$viewValue))}var f=e("tabindex","tabindex",i);switch(a){case"radio":case"checkbox":n(a,i)&&i.attr("role",a),e("aria-checked","ariaChecked",i)&&r.$watch(u,"radio"===a?l():c),f&&i.attr("tabindex",0);break;case"range":if(n(a,i)&&i.attr("role","slider"),t.config("ariaValue")){var h=!i.attr("aria-valuemin")&&(o.hasOwnProperty("min")||o.hasOwnProperty("ngMin")),p=!i.attr("aria-valuemax")&&(o.hasOwnProperty("max")||o.hasOwnProperty("ngMax")),d=!i.attr("aria-valuenow");h&&o.$observe("min",function(t){i.attr("aria-valuemin",t)}),p&&o.$observe("max",function(t){i.attr("aria-valuemax",t)}),d&&r.$watch(u,function(t){i.attr("aria-valuenow",t)})}f&&i.attr("tabindex",0);break;case"multiline":e("aria-multiline","ariaMultiline",i)&&i.attr("aria-multiline",!0)}s.$validators.required&&e("aria-required","ariaRequired",i)&&r.$watch(function(){return s.$error.required},function(t){i.attr("aria-required",!!t)}),e("aria-invalid","ariaInvalid",i)&&r.$watch(function(){return s.$invalid},function(t){i.attr("aria-invalid",!!t)})}}}}}]).directive("ngDisabled",["$aria",function(t){return t.$$watchExpr("ngDisabled","aria-disabled",[])}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(t,e,n,r){e.attr("aria-live")||e.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(t,e){return{restrict:"A",compile:function(n,r){var i=e(r.ngClick,null,!0);return function(e,n,r){a(n,o)||(t.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),t.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),t.config("bindKeypress")&&!r.ngKeypress&&n.on("keypress",function(t){function n(){i(e,{$event:t})}var r=t.which||t.keyCode;(32===r||13===r)&&e.$apply(n)}))}}}}]).directive("ngDblclick",["$aria",function(t){return function(e,n,r){!t.config("tabindex")||n.attr("tabindex")||a(n,o)||n.attr("tabindex",0)}}])}(window,window.angular),function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof exports?module.exports=e():e()}(this,function(){function t(t){"use strict";var e=t.storageKey(),n=t.storage(),r=function(){var r=t.preferredLanguage();angular.isString(r)?t.use(r):n.put(e,t.use())};r.displayName="fallbackFromIncorrectStorageValue",n?n.get(e)?t.use(n.get(e))["catch"](r):r():angular.isString(t.preferredLanguage())&&t.use(t.preferredLanguage())}function e(){"use strict";var t,e,n=null,r=!1,i=!1;e={sanitize:function(t,e){return"text"===e&&(t=a(t)),t},escape:function(t,e){return"text"===e&&(t=o(t)),t},sanitizeParameters:function(t,e){return"params"===e&&(t=s(t,a)),t},escapeParameters:function(t,e){return"params"===e&&(t=s(t,o)),t}},e.escaped=e.escapeParameters,this.addStrategy=function(t,n){return e[t]=n,this},this.removeStrategy=function(t){return delete e[t],this},this.useStrategy=function(t){return r=!0,n=t,this},this.$get=["$injector","$log",function(o,a){var s={},u=function(t,n,r){return angular.forEach(r,function(r){if(angular.isFunction(r))t=r(t,n);else if(angular.isFunction(e[r]))t=e[r](t,n);else{if(!angular.isString(e[r]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'");if(!s[e[r]])try{s[e[r]]=o.get(e[r])}catch(i){throw s[e[r]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'")}t=s[e[r]](t,n)}}),t},l=function(){r||i||(a.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),i=!0)};return o.has("$sanitize")&&(t=o.get("$sanitize")),{useStrategy:function(t){return function(e){t.useStrategy(e)}}(this),sanitize:function(t,e,r){if(n||l(),arguments.length<3&&(r=n),!r)return t;var i=angular.isArray(r)?r:[r];return u(t,e,i)}}}];var o=function(t){var e=angular.element("<div></div>");return e.text(t),e.html()},a=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return t(e)},s=function(t,e){if(angular.isObject(t)){var n=angular.isArray(t)?[]:{};return angular.forEach(t,function(t,r){n[r]=s(t,e)}),n}return angular.isNumber(t)?t:e(t)}}function n(t,e,n,r){"use strict";var i,o,a,s,u,l,c,f,h,p,d,v,m,g,y,_={},b=[],w=t,x=[],$="translate-cloak",k=!1,S=!1,C=".",E=!1,T=0,F=!0,j="default",A={"default":function(t){return(t||"").split("-").join("_")},java:function(t){var e=(t||"").split("-").join("_"),n=e.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():e},bcp47:function(t){var e=(t||"").split("_").join("-"),n=e.split("-");return n.length>1?n[0].toLowerCase()+"-"+n[1].toUpperCase():e}},D="2.8.1",M=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var t,n,i=e.$get().navigator,o=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(t=0;t<i.languages.length;t++)if(n=i.languages[t],n&&n.length)return n;for(t=0;t<o.length;t++)if(n=i[o[t]],n&&n.length)return n;return null};M.displayName="angular-translate/service: getFirstBrowserLanguage";var O=function(){var t=M()||"";return A[j]&&(t=A[j](t)),t};O.displayName="angular-translate/service: getLocale";var I=function(t,e){for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n;return-1},P=function(){return this.toString().replace(/^\s+|\s+$/g,"")},N=function(t){for(var e=[],n=angular.lowercase(t),r=0,i=b.length;i>r;r++)e.push(angular.lowercase(b[r]));if(I(e,n)>-1)return t;if(o){var a;for(var s in o){var u=!1,l=Object.prototype.hasOwnProperty.call(o,s)&&angular.lowercase(s)===angular.lowercase(t);if("*"===s.slice(-1)&&(u=s.slice(0,-1)===t.slice(0,s.length-1)),(l||u)&&(a=o[s],I(e,angular.lowercase(a))>-1))return a}}if(t){var c=t.split("_");if(c.length>1&&I(e,angular.lowercase(c[0]))>-1)return c[0]}return t},R=function(t,e){if(!t&&!e)return _;if(t&&!e){if(angular.isString(t))return _[t]}else angular.isObject(_[t])||(_[t]={}),angular.extend(_[t],L(e));return this};this.translations=R,this.cloakClassName=function(t){return t?($=t,this):$},this.nestedObjectDelimeter=function(t){return t?(C=t,this):C};var L=function(t,e,n,r){var i,o,a,s;e||(e=[]),n||(n={});for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s=t[i],angular.isObject(s)?L(s,e.concat(i),n,i):(o=e.length?""+e.join(C)+C+i:i,e.length&&i===r&&(a=""+e.join(C),n[a]="@:"+o),n[o]=s));return n};L.displayName="flatObject",this.addInterpolation=function(t){return x.push(t),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(t){return p=t,this},this.useSanitizeValueStrategy=function(t){return n.useStrategy(t),this},this.preferredLanguage=function(t){return t?(z(t),this):i};var z=function(t){return t&&(i=t),i};this.translationNotFoundIndicator=function(t){return this.translationNotFoundIndicatorLeft(t),this.translationNotFoundIndicatorRight(t),this},this.translationNotFoundIndicatorLeft=function(t){return t?(m=t,this):m},this.translationNotFoundIndicatorRight=function(t){return t?(g=t,this):g},this.fallbackLanguage=function(t){return q(t),this};var q=function(t){return t?(angular.isString(t)?(s=!0,a=[t]):angular.isArray(t)&&(s=!1,a=t),angular.isString(i)&&I(a,i)<0&&a.push(i),this):s?a[0]:a};this.use=function(t){if(t){if(!_[t]&&!d)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+t+"'");return u=t,this}return u};var H=function(t){return t?(w=t,this):f?f+w:w};this.storageKey=H,this.useUrlLoader=function(t,e){return this.useLoader("$translateUrlLoader",angular.extend({url:t},e))},this.useStaticFilesLoader=function(t){return this.useLoader("$translateStaticFilesLoader",t)},this.useLoader=function(t,e){return d=t,v=e||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(t){return c=t,this},this.storagePrefix=function(t){return t?(f=t,this):t},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(t){return h=t,this},this.usePostCompiling=function(t){return k=!!t,this},this.forceAsyncReload=function(t){return S=!!t,this},this.uniformLanguageTag=function(t){return t?angular.isString(t)&&(t={standard:t}):t={},j=t.standard,this},this.determinePreferredLanguage=function(t){var e=t&&angular.isFunction(t)?t():O();return i=b.length?N(e):e,this},this.registerAvailableLanguageKeys=function(t,e){return t?(b=t,e&&(o=e),this):b},this.useLoaderCache=function(t){return t===!1?y=void 0:t===!0?y=!0:"undefined"==typeof t?y="$translationCache":t&&(y=t),this},this.directivePriority=function(t){return void 0===t?T:(T=t,this)},this.statefulFilter=function(t){return void 0===t?F:(F=t,this)},this.$get=["$log","$injector","$rootScope","$q",function(t,e,n,r){var o,f,b,j=e.get(p||"$translateDefaultInterpolation"),A=!1,M={},O={},U=function(t,e,n,s){if(angular.isArray(t)){var l=function(t){for(var i={},o=[],a=function(t){var o=r.defer(),a=function(e){i[t]=e,o.resolve([t,e])};return U(t,e,n,s).then(a,a),o.promise},u=0,l=t.length;l>u;u++)o.push(a(t[u]));return r.all(o).then(function(){return i})};return l(t)}var h=r.defer();t&&(t=P.apply(t));var p=function(){var t=i?O[i]:O[u];if(f=0,c&&!t){var e=o.get(w);if(t=O[e],a&&a.length){var n=I(a,e);f=0===n?1:0,I(a,i)<0&&a.push(i)}}return t}();if(p){var d=function(){nt(t,e,n,s).then(h.resolve,h.reject)};d.displayName="promiseResolved",p["finally"](d,h.reject)}else nt(t,e,n,s).then(h.resolve,h.reject);return h.promise},W=function(t){return m&&(t=[m,t].join(" ")),g&&(t=[t,g].join(" ")),t},V=function(t){u=t,c&&o.put(U.storageKey(),u),n.$emit("$translateChangeSuccess",{language:t}),j.setLocale(u);var e=function(t,e){M[e].setLocale(u)};e.displayName="eachInterpolatorLocaleSetter",angular.forEach(M,e),n.$emit("$translateChangeEnd",{language:t})},B=function(t){if(!t)throw"No language key specified for loading.";var i=r.defer();n.$emit("$translateLoadingStart",{language:t}),A=!0;var o=y;"string"==typeof o&&(o=e.get(o));var a=angular.extend({},v,{key:t,$http:angular.extend({},{cache:o},v.$http)}),s=function(e){var r={};n.$emit("$translateLoadingSuccess",{language:t}),angular.isArray(e)?angular.forEach(e,function(t){angular.extend(r,L(t))}):angular.extend(r,L(e)),A=!1,i.resolve({key:t,table:r}),n.$emit("$translateLoadingEnd",{language:t})};s.displayName="onLoaderSuccess";var u=function(t){n.$emit("$translateLoadingError",{language:t}),i.reject(t),n.$emit("$translateLoadingEnd",{language:t})};return u.displayName="onLoaderError",e.get(d)(a).then(s,u),i.promise};if(c&&(o=e.get(c),!o.get||!o.put))throw new Error("Couldn't use storage '"+c+"', missing get() or put() method!");if(x.length){var Y=function(t){var n=e.get(t);n.setLocale(i||u),M[n.getInterpolationIdentifier()]=n};Y.displayName="interpolationFactoryAdder",angular.forEach(x,Y)}var K=function(t){var e=r.defer();if(Object.prototype.hasOwnProperty.call(_,t))e.resolve(_[t]);else if(O[t]){var n=function(t){R(t.key,t.table),e.resolve(t.table)};n.displayName="translationTableResolver",O[t].then(n,e.reject)}else e.reject();return e.promise},G=function(t,e,n,i){var o=r.defer(),a=function(r){if(Object.prototype.hasOwnProperty.call(r,e)){i.setLocale(t);var a=r[e];"@:"===a.substr(0,2)?G(t,a.substr(2),n,i).then(o.resolve,o.reject):o.resolve(i.interpolate(r[e],n)),i.setLocale(u)}else o.reject()};return a.displayName="fallbackTranslationResolver",K(t).then(a,o.reject),o.promise},X=function(t,e,n,r){var i,o=_[t];if(o&&Object.prototype.hasOwnProperty.call(o,e)){if(r.setLocale(t),i=r.interpolate(o[e],n),"@:"===i.substr(0,2))return X(t,i.substr(2),n,r);r.setLocale(u)}return i},J=function(t,n){if(h){var r=e.get(h)(t,u,n);return void 0!==r?r:t}return t},Q=function(t,e,n,i,o){var s=r.defer();if(t<a.length){var u=a[t];G(u,e,n,i).then(s.resolve,function(){Q(t+1,e,n,i,o).then(s.resolve)})}else o?s.resolve(o):s.resolve(J(e,n));return s.promise},Z=function(t,e,n,r){var i;if(t<a.length){var o=a[t];i=X(o,e,n,r),i||(i=Z(t+1,e,n,r))}return i},tt=function(t,e,n,r){return Q(b>0?b:f,t,e,n,r)},et=function(t,e,n){return Z(b>0?b:f,t,e,n)},nt=function(t,e,n,i){var o=r.defer(),s=u?_[u]:_,l=n?M[n]:j;if(s&&Object.prototype.hasOwnProperty.call(s,t)){var c=s[t];"@:"===c.substr(0,2)?U(c.substr(2),e,n,i).then(o.resolve,o.reject):o.resolve(l.interpolate(c,e))}else{var f;h&&!A&&(f=J(t,e)),u&&a&&a.length?tt(t,e,l,i).then(function(t){o.resolve(t)},function(t){o.reject(W(t))}):h&&!A&&f?i?o.resolve(i):o.resolve(f):i?o.resolve(i):o.reject(W(t))}return o.promise},rt=function(t,e,n){var r,i=u?_[u]:_,o=j;if(M&&Object.prototype.hasOwnProperty.call(M,n)&&(o=M[n]),i&&Object.prototype.hasOwnProperty.call(i,t)){var s=i[t];r="@:"===s.substr(0,2)?rt(s.substr(2),e,n):o.interpolate(s,e)}else{var l;h&&!A&&(l=J(t,e)),u&&a&&a.length?(f=0,r=et(t,e,o)):r=h&&!A&&l?l:W(t)}return r},it=function(t){l===t&&(l=void 0),O[t]=void 0};U.preferredLanguage=function(t){return t&&z(t),i},U.cloakClassName=function(){return $},U.nestedObjectDelimeter=function(){return C},U.fallbackLanguage=function(t){if(void 0!==t&&null!==t){if(q(t),d&&a&&a.length)for(var e=0,n=a.length;n>e;e++)O[a[e]]||(O[a[e]]=B(a[e]));U.use(U.use())}return s?a[0]:a},U.useFallbackLanguage=function(t){if(void 0!==t&&null!==t)if(t){var e=I(a,t);e>-1&&(b=e)}else b=0},U.proposedLanguage=function(){return l},U.storage=function(){return o},U.use=function(t){if(!t)return u;var e=r.defer();n.$emit("$translateChangeStart",{language:t});var i=N(t);return i&&(t=i),!S&&_[t]||!d||O[t]?l===t&&O[t]?O[t].then(function(t){return e.resolve(t.key),t},function(t){return e.reject(t),r.reject(t)}):(e.resolve(t),V(t)):(l=t,O[t]=B(t).then(function(n){return R(n.key,n.table),e.resolve(n.key),l===t&&V(n.key),n},function(t){return n.$emit("$translateChangeError",{language:t}),e.reject(t),n.$emit("$translateChangeEnd",{language:t}),r.reject(t)}),O[t]["finally"](function(){it(t)})),e.promise},U.storageKey=function(){return H()},U.isPostCompilingEnabled=function(){return k},U.isForceAsyncReloadEnabled=function(){return S},U.refresh=function(t){function e(){o.resolve(),n.$emit("$translateRefreshEnd",{language:t})}function i(){o.reject(),n.$emit("$translateRefreshEnd",{language:t})}if(!d)throw new Error("Couldn't refresh translation table, no loader registered!");var o=r.defer();if(n.$emit("$translateRefreshStart",{language:t}),t)if(_[t]){var s=function(n){R(n.key,n.table),t===u&&V(u),e()};s.displayName="refreshPostProcessor",B(t).then(s,i)}else i();else{var l=[],c={};if(a&&a.length)for(var f=0,h=a.length;h>f;f++)l.push(B(a[f])),c[a[f]]=!0;u&&!c[u]&&l.push(B(u));var p=function(t){_={},angular.forEach(t,function(t){R(t.key,t.table)}),u&&V(u),e()};p.displayName="refreshPostProcessor",r.all(l).then(p,i)}return o.promise},U.instant=function(t,e,n){if(null===t||angular.isUndefined(t))return t;if(angular.isArray(t)){for(var r={},o=0,s=t.length;s>o;o++)r[t[o]]=U.instant(t[o],e,n);return r}if(angular.isString(t)&&t.length<1)return t;t&&(t=P.apply(t));var l,c=[];i&&c.push(i),u&&c.push(u),a&&a.length&&(c=c.concat(a));for(var f=0,p=c.length;p>f;f++){var d=c[f];if(_[d]&&("undefined"!=typeof _[d][t]?l=rt(t,e,n):(m||g)&&(l=W(t))),"undefined"!=typeof l)break}return l||""===l||(l=j.interpolate(t,e),h&&!A&&(l=J(t,e))),l},U.versionInfo=function(){return D},U.loaderCache=function(){return y},U.directivePriority=function(){return T},U.statefulFilter=function(){return F},U.isReady=function(){return E};var ot=r.defer();ot.promise.then(function(){E=!0}),U.onReady=function(t){var e=r.defer();return angular.isFunction(t)&&e.promise.then(t),E?e.resolve():ot.promise.then(e.resolve),e.promise};var at=n.$on("$translateReady",function(){ot.resolve(),at(),at=null}),st=n.$on("$translateChangeEnd",function(){ot.resolve(),st(),st=null});if(d){if(angular.equals(_,{})&&U.use()&&U.use(U.use()),a&&a.length)for(var ut=function(t){return R(t.key,t.table),n.$emit("$translateChangeEnd",{language:t.key}),t},lt=0,ct=a.length;ct>lt;lt++){var ft=a[lt];(S||!_[ft])&&(O[ft]=B(ft).then(ut))}}else n.$emit("$translateReady",{language:U.use()});return U}]}function r(t,e){"use strict";var n,r={},i="default";return r.setLocale=function(t){n=t},r.getInterpolationIdentifier=function(){return i},r.useSanitizeValueStrategy=function(t){return e.useStrategy(t),this},r.interpolate=function(n,r){r=r||{},r=e.sanitize(r,"params");var i=t(n)(r);return i=e.sanitize(i,"text")},r}function i(t,e,n,r,i,a){"use strict";var s=function(){return this.toString().replace(/^\s+|\s+$/g,"")};return{restrict:"AE",scope:!0,priority:t.directivePriority(),compile:function(e,u){var l=u.translateValues?u.translateValues:void 0,c=u.translateInterpolation?u.translateInterpolation:void 0,f=e[0].outerHTML.match(/translate-value-+/i),h="^(.*)("+n.startSymbol()+".*"+n.endSymbol()+")(.*)",p="^(.*)"+n.startSymbol()+"(.*)"+n.endSymbol()+"(.*)";return function(e,d,v){e.interpolateParams={},e.preText="",e.postText="",e.translateNamespace=o(e);var m={},g=function(t,n,r){if(n.translateValues&&angular.extend(t,i(n.translateValues)(e.$parent)),f)for(var o in r)if(Object.prototype.hasOwnProperty.call(n,o)&&"translateValue"===o.substr(0,14)&&"translateValues"!==o){var a=angular.lowercase(o.substr(14,1))+o.substr(15);t[a]=r[o]}},y=function(t){if(angular.isFunction(y._unwatchOld)&&(y._unwatchOld(),y._unwatchOld=void 0),angular.equals(t,"")||!angular.isDefined(t)){var r=s.apply(d.text()),i=r.match(h);if(angular.isArray(i)){e.preText=i[1],e.postText=i[3],m.translate=n(i[2])(e.$parent);var o=r.match(p);angular.isArray(o)&&o[2]&&o[2].length&&(y._unwatchOld=e.$watch(o[2],function(t){m.translate=t,k()}))}else m.translate=r}else m.translate=t;k()},_=function(t){v.$observe(t,function(e){m[t]=e,k()})};g(e.interpolateParams,v,u);var b=!0;v.$observe("translate",function(t){"undefined"==typeof t?y(""):""===t&&b||(m.translate=t,k()),b=!1});for(var w in v)v.hasOwnProperty(w)&&"translateAttr"===w.substr(0,13)&&_(w);if(v.$observe("translateDefault",function(t){e.defaultText=t}),l&&v.$observe("translateValues",function(t){t&&e.$parent.$watch(function(){angular.extend(e.interpolateParams,i(t)(e.$parent))})}),f){var x=function(t){v.$observe(t,function(n){var r=angular.lowercase(t.substr(14,1))+t.substr(15);e.interpolateParams[r]=n})};for(var $ in v)Object.prototype.hasOwnProperty.call(v,$)&&"translateValue"===$.substr(0,14)&&"translateValues"!==$&&x($)}var k=function(){for(var t in m)m.hasOwnProperty(t)&&void 0!==m[t]&&S(t,m[t],e,e.interpolateParams,e.defaultText,e.translateNamespace)},S=function(e,n,r,i,o,a){n?(a&&"."===n.charAt(0)&&(n=a+n),t(n,i,c,o).then(function(t){C(t,r,!0,e)},function(t){C(t,r,!1,e)})):C(n,r,!1,e)},C=function(e,n,i,o){if("translate"===o){i||"undefined"==typeof n.defaultText||(e=n.defaultText),d.empty().append(n.preText+e+n.postText);var a=t.isPostCompilingEnabled(),s="undefined"!=typeof u.translateCompile,l=s&&"false"!==u.translateCompile;(a&&!s||l)&&r(d.contents())(n)}else{i||"undefined"==typeof n.defaultText||(e=n.defaultText);var c=v.$attr[o];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),d.attr(c,e)}};(l||f||v.translateDefault)&&e.$watch("interpolateParams",k,!0);var E=a.$on("$translateChangeSuccess",k);d.text().length?y(v.translate?v.translate:""):v.translate&&y(v.translate),k(),e.$on("$destroy",E)}}}}function o(t){"use strict";return t.translateNamespace?t.translateNamespace:t.$parent?o(t.$parent):void 0}function a(t){"use strict";return{compile:function(e){var n=function(){e.addClass(t.cloakClassName())},r=function(){e.removeClass(t.cloakClassName())};return t.onReady(function(){r()}),n(),function(e,i,o){o.translateCloak&&o.translateCloak.length&&o.$observe("translateCloak",function(e){t(e).then(r,n)})}}}}function s(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(t,e,n){t.translateNamespace=o(t),t.translateNamespace&&"."===n.translateNamespace.charAt(0)?t.translateNamespace+=n.translateNamespace:t.translateNamespace=n.translateNamespace}}}}}function o(t){"use strict";return t.translateNamespace?t.translateNamespace:t.$parent?o(t.$parent):void 0}function u(t,e){"use strict";var n=function(n,r,i){return angular.isObject(r)||(r=t(r)(this)),e.instant(n,r,i)};return e.statefulFilter()&&(n.$stateful=!0),n}function l(t){"use strict";return t("translations")}return angular.module("pascalprecht.translate",["ng"]).run(t),t.$inject=["$translate"],t.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",e),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",n),n.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],n.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",r),r.$inject=["$interpolate","$translateSanitization"],r.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",i),i.$inject=["$translate","$q","$interpolate","$compile","$parse","$rootScope"],i.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateCloak",a),a.$inject=["$translate"],a.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",s),s.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").filter("translate",u),u.$inject=["$parse","$translate"],u.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",l),l.$inject=["$cacheFactory"],l.displayName="$translationCache","pascalprecht.translate"}),function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof exports?module.exports=e():e()}(this,function(){function t(){"use strict";function t(t,e){this.name=t,this.isActive=!0,this.tables={},this.priority=e||0}function e(t){return Object.prototype.hasOwnProperty.call(a,t)}function n(t){return angular.isString(t)&&""!==t}function r(t){if(!n(t))throw new TypeError("Invalid type of a first argument, a non-empty string expected.");return e(t)&&a[t].isActive}function i(t,e){for(var n in e)e[n]&&e[n].constructor&&e[n].constructor===Object?(t[n]=t[n]||{},i(t[n],e[n])):t[n]=e[n];return t}function o(){var t=[];for(var e in a)a[e].isActive&&t.push(a[e]);return t.sort(function(t,e){return t.priority-e.priority}),t}t.prototype.parseUrl=function(t,e){return angular.isFunction(t)?t(this.name,e):t.replace(/\{part\}/g,this.name).replace(/\{lang\}/g,e)},t.prototype.getTable=function(t,e,n,r,i,o){if(this.tables[t])return e.when(this.tables[t]);var a=this;return n(angular.extend({method:"GET",url:this.parseUrl(i,t)},r)).then(function(e){return a.tables[t]=e.data,e.data},function(){return o?o(a.name,t).then(function(e){return a.tables[t]=e,e},function(){return e.reject(a.name)}):e.reject(a.name)})};var a={};this.addPart=function(r,i){if(!n(r))throw new TypeError("Couldn't add part, part name has to be a string!");return e(r)||(a[r]=new t(r,i)),a[r].isActive=!0,this},this.setPart=function(r,i,o){if(!n(r))throw new TypeError("Couldn't set part.`lang` parameter has to be a string!");if(!n(i))throw new TypeError("Couldn't set part.`part` parameter has to be a string!");if("object"!=typeof o||null===o)throw new TypeError("Couldn't set part. `table` parameter has to be an object!");return e(i)||(a[i]=new t(i),a[i].isActive=!1),a[i].tables[r]=o,this},this.deletePart=function(t){if(!n(t))throw new TypeError("Couldn't delete part, first arg has to be string.");
return e(t)&&(a[t].isActive=!1),this},this.isPartAvailable=r,this.$get=["$rootScope","$injector","$q","$http",function(s,u,l,c){var f=function(t){if(!n(t.key))throw new TypeError("Unable to load data, a key is not a non-empty string.");if(!n(t.urlTemplate)&&!angular.isFunction(t.urlTemplate))throw new TypeError("Unable to load data, a urlTemplate is not a non-empty string or not a function.");var e=t.loadFailureHandler;if(void 0!==e){if(!angular.isString(e))throw new Error("Unable to load data, a loadFailureHandler is not a string.");e=u.get(e)}var r=[],a=l.defer(),s=o();return angular.forEach(s,function(n){r.push(n.getTable(t.key,l,c,t.$http,t.urlTemplate,e)),n.urlTemplate=t.urlTemplate}),l.all(r).then(function(){var e={};angular.forEach(s,function(n){i(e,n.tables[t.key])}),a.resolve(e)},function(){a.reject(t.key)}),a.promise};return f.addPart=function(r,i){if(!n(r))throw new TypeError("Couldn't add part, first arg has to be a string");return e(r)?a[r].isActive||(a[r].isActive=!0,s.$emit("$translatePartialLoaderStructureChanged",r)):(a[r]=new t(r,i),s.$emit("$translatePartialLoaderStructureChanged",r)),f},f.deletePart=function(t,r){if(!n(t))throw new TypeError("Couldn't delete part, first arg has to be string");if(void 0===r)r=!1;else if("boolean"!=typeof r)throw new TypeError("Invalid type of a second argument, a boolean expected.");if(e(t)){var i=a[t].isActive;if(r){var o=u.get("$translate"),l=o.loaderCache();"string"==typeof l&&(l=u.get(l)),"object"==typeof l&&angular.forEach(a[t].tables,function(e,n){l.remove(a[t].parseUrl(a[t].urlTemplate,n))}),delete a[t]}else a[t].isActive=!1;i&&s.$emit("$translatePartialLoaderStructureChanged",t)}return f},f.isPartLoaded=function(t,e){return angular.isDefined(a[t])&&angular.isDefined(a[t].tables[e])},f.getRegisteredParts=function(){var t=[];return angular.forEach(a,function(e){e.isActive&&t.push(e.name)}),t},f.isPartAvailable=r,f}]}return angular.module("pascalprecht.translate").provider("$translatePartialLoader",t),t.displayName="$translatePartialLoader","pascalprecht.translate"}),function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof exports?module.exports=e():e()}(this,function(){function t(t,e){"use strict";return function(n){if(!(n&&(angular.isArray(n.files)||angular.isString(n.prefix)&&angular.isString(n.suffix))))throw new Error("Couldn't load static files, no files and prefix or suffix specified!");n.files||(n.files=[{prefix:n.prefix,suffix:n.suffix}]);for(var r=function(r){if(!r||!angular.isString(r.prefix)||!angular.isString(r.suffix))throw new Error("Couldn't load static file, no prefix or suffix specified!");return e(angular.extend({url:[r.prefix,n.key,r.suffix].join(""),method:"GET",params:""},n.$http)).then(function(t){return t.data},function(){return t.reject(n.key)})},i=t.defer(),o=[],a=n.files.length,s=0;a>s;s++)o.push(r({prefix:n.files[s].prefix,key:n.key,suffix:n.files[s].suffix}));return t.all(o).then(function(t){for(var e=t.length,n={},r=0;e>r;r++)for(var o in t[r])n[o]=t[r][o];i.resolve(n)},function(t){i.reject(t)}),i.promise}}return angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",t),t.$inject=["$q","$http"],t.displayName="$translateStaticFilesLoader","pascalprecht.translate"}),function(t,e){"function"==typeof define&&define.amd?define(["messageformat"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("messageformat")):e(MessageFormat)}(this,function(t){function e(e,n,r){"use strict";var i={},o=n.get(r),a=new t("en"),s="messageformat";return o||(o=n(r)),o.put("en",a),i.setLocale=function(e){a=o.get(e),a||(a=new t(e),o.put(e,a))},i.getInterpolationIdentifier=function(){return s},i.useSanitizeValueStrategy=function(t){return e.useStrategy(t),this},i.interpolate=function(t,n){n=n||{},n=e.sanitize(n,"params");var r=o.get(t+angular.toJson(n));if(!r){for(var i in n)if(n.hasOwnProperty(i)){var s=parseInt(n[i],10);angular.isNumber(s)&&""+s===n[i]&&(n[i]=s)}r=a.compile(t)(n),r=e.sanitize(r,"text"),o.put(t+angular.toJson(n),r)}return r},i}return angular.module("pascalprecht.translate").constant("TRANSLATE_MF_INTERPOLATION_CACHE","$translateMessageFormatInterpolation").factory("$translateMessageFormatInterpolation",e),e.$inject=["$translateSanitization","$cacheFactory","TRANSLATE_MF_INTERPOLATION_CACHE"],e.displayName="$translateMessageFormatInterpolation","pascalprecht.translate"}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return On.apply(null,arguments)}function e(t){On=t}function n(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function i(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function s(t,e,n,r){return Tt(t,e,n,r,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function l(t){return null==t._pf&&(t._pf=u()),t._pf}function c(t){if(null==t._isValid){var e=l(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function f(t){var e=s(NaN);return null!=t?a(l(e),t):l(e).userInvalidated=!0,e}function h(t,e){var n,r,i;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=l(e)),"undefined"!=typeof e._locale&&(t._locale=e._locale),Pn.length>0)for(n in Pn)r=Pn[n],i=e[r],"undefined"!=typeof i&&(t[r]=i);return t}function p(e){h(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),Nn===!1&&(Nn=!0,t.updateOffset(this),Nn=!1)}function d(t){return t instanceof p||null!=t&&null!=t._isAMomentObject}function v(t){return 0>t?Math.ceil(t):Math.floor(t)}function m(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=v(e)),n}function g(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(r=0;i>r;r++)(n&&t[r]!==e[r]||!n&&m(t[r])!==m(e[r]))&&a++;return a+o}function y(){}function _(t){return t?t.toLowerCase().replace("_","-"):t}function b(t){for(var e,n,r,i,o=0;o<t.length;){for(i=_(t[o]).split("-"),e=i.length,n=_(t[o+1]),n=n?n.split("-"):null;e>0;){if(r=w(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&g(i,n,!0)>=e-1)break;e--}o++}return null}function w(t){var e=null;if(!Rn[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=In._abbr,require("./locale/"+t),x(e)}catch(n){}return Rn[t]}function x(t,e){var n;return t&&(n="undefined"==typeof e?k(t):$(t,e),n&&(In=n)),In._abbr}function $(t,e){return null!==e?(e.abbr=t,Rn[t]=Rn[t]||new y,Rn[t].set(e),x(t),Rn[t]):(delete Rn[t],null)}function k(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return In;if(!n(t)){if(e=w(t))return e;t=[t]}return b(t)}function S(t,e){var n=t.toLowerCase();Ln[n]=Ln[n+"s"]=Ln[e]=t}function C(t){return"string"==typeof t?Ln[t]||Ln[t.toLowerCase()]:void 0}function E(t){var e,n,r={};for(n in t)o(t,n)&&(e=C(n),e&&(r[e]=t[n]));return r}function T(e,n){return function(r){return null!=r?(j(this,e,r),t.updateOffset(this,n),this):F(this,e)}}function F(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function j(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function A(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=C(t),"function"==typeof this[t])return this[t](e);return this}function D(t,e,n){var r=""+Math.abs(t),i=e-r.length,o=t>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function M(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(Un[t]=i),e&&(Un[e[0]]=function(){return D(i.apply(this,arguments),e[1],e[2])}),n&&(Un[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function O(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function I(t){var e,n,r=t.match(zn);for(e=0,n=r.length;n>e;e++)Un[r[e]]?r[e]=Un[r[e]]:r[e]=O(r[e]);return function(i){var o="";for(e=0;n>e;e++)o+=r[e]instanceof Function?r[e].call(i,t):r[e];return o}}function P(t,e){return t.isValid()?(e=N(e,t.localeData()),Hn[e]=Hn[e]||I(e),Hn[e](t)):t.localeData().invalidDate()}function N(t,e){function n(t){return e.longDateFormat(t)||t}var r=5;for(qn.lastIndex=0;r>=0&&qn.test(t);)t=t.replace(qn,n),qn.lastIndex=0,r-=1;return t}function R(t){return"function"==typeof t&&"[object Function]"===Object.prototype.toString.call(t)}function L(t,e,n){ir[t]=R(e)?e:function(t){return t&&n?n:e}}function z(t,e){return o(ir,t)?ir[t](e._strict,e._locale):new RegExp(q(t))}function q(t){return t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function H(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(r=function(t,n){n[e]=m(t)}),n=0;n<t.length;n++)or[t[n]]=r}function U(t,e){H(t,function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)})}function W(t,e,n){null!=e&&o(or,t)&&or[t](e,n._a,n,t)}function V(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function B(t){return this._months[t.month()]}function Y(t){return this._monthsShort[t.month()]}function K(t,e,n){var r,i,o;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++){if(i=s([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function G(t,e){var n;return"string"==typeof e&&(e=t.localeData().monthsParse(e),"number"!=typeof e)?t:(n=Math.min(t.date(),V(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t)}function X(e){return null!=e?(G(this,e),t.updateOffset(this,!0),this):F(this,"Month")}function J(){return V(this.year(),this.month())}function Q(t){var e,n=t._a;return n&&-2===l(t).overflow&&(e=n[sr]<0||n[sr]>11?sr:n[ur]<1||n[ur]>V(n[ar],n[sr])?ur:n[lr]<0||n[lr]>24||24===n[lr]&&(0!==n[cr]||0!==n[fr]||0!==n[hr])?lr:n[cr]<0||n[cr]>59?cr:n[fr]<0||n[fr]>59?fr:n[hr]<0||n[hr]>999?hr:-1,l(t)._overflowDayOfYear&&(ar>e||e>ur)&&(e=ur),l(t).overflow=e),t}function Z(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function tt(t,e){var n=!0;return a(function(){return n&&(Z(t+"\n"+(new Error).stack),n=!1),e.apply(this,arguments)},e)}function et(t,e){vr[t]||(Z(e),vr[t]=!0)}function nt(t){var e,n,r=t._i,i=mr.exec(r);if(i){for(l(t).iso=!0,e=0,n=gr.length;n>e;e++)if(gr[e][1].exec(r)){t._f=gr[e][0];break}for(e=0,n=yr.length;n>e;e++)if(yr[e][1].exec(r)){t._f+=(i[6]||" ")+yr[e][0];break}r.match(er)&&(t._f+="Z"),wt(t)}else t._isValid=!1}function rt(e){var n=_r.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(nt(e),void(e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))))}function it(t,e,n,r,i,o,a){var s=new Date(t,e,n,r,i,o,a);return 1970>t&&s.setFullYear(t),s}function ot(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function at(t){return st(t)?366:365}function st(t){return t%4===0&&t%100!==0||t%400===0}function ut(){return st(this.year())}function lt(t,e,n){var r,i=n-e,o=n-t.day();return o>i&&(o-=7),i-7>o&&(o+=7),r=Ft(t).add(o,"d"),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function ct(t){return lt(t,this._week.dow,this._week.doy).week}function ft(){return this._week.dow}function ht(){return this._week.doy}function pt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function dt(t){var e=lt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function vt(t,e,n,r,i){var o,a=6+i-r,s=ot(t,0,1+a),u=s.getUTCDay();return i>u&&(u+=7),n=null!=n?1*n:i,o=1+a+7*(e-1)-u+n,{year:o>0?t:t-1,dayOfYear:o>0?o:at(t-1)+o}}function mt(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function gt(t,e,n){return null!=t?t:null!=e?e:n}function yt(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function _t(t){var e,n,r,i,o=[];if(!t._d){for(r=yt(t),t._w&&null==t._a[ur]&&null==t._a[sr]&&bt(t),t._dayOfYear&&(i=gt(t._a[ar],r[ar]),t._dayOfYear>at(i)&&(l(t)._overflowDayOfYear=!0),n=ot(i,0,t._dayOfYear),t._a[sr]=n.getUTCMonth(),t._a[ur]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;7>e;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[lr]&&0===t._a[cr]&&0===t._a[fr]&&0===t._a[hr]&&(t._nextDay=!0,t._a[lr]=0),t._d=(t._useUTC?ot:it).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[lr]=24)}}function bt(t){var e,n,r,i,o,a,s;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(o=1,a=4,n=gt(e.GG,t._a[ar],lt(Ft(),1,4).year),r=gt(e.W,1),i=gt(e.E,1)):(o=t._locale._week.dow,a=t._locale._week.doy,n=gt(e.gg,t._a[ar],lt(Ft(),o,a).year),r=gt(e.w,1),null!=e.d?(i=e.d,o>i&&++r):i=null!=e.e?e.e+o:o),s=vt(n,r,i,a,o),t._a[ar]=s.year,t._dayOfYear=s.dayOfYear}function wt(e){if(e._f===t.ISO_8601)return void nt(e);e._a=[],l(e).empty=!0;var n,r,i,o,a,s=""+e._i,u=s.length,c=0;for(i=N(e._f,e._locale).match(zn)||[],n=0;n<i.length;n++)o=i[n],r=(s.match(z(o,e))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&l(e).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),c+=r.length),Un[o]?(r?l(e).empty=!1:l(e).unusedTokens.push(o),W(o,r,e)):e._strict&&!r&&l(e).unusedTokens.push(o);l(e).charsLeftOver=u-c,s.length>0&&l(e).unusedInput.push(s),l(e).bigHour===!0&&e._a[lr]<=12&&e._a[lr]>0&&(l(e).bigHour=void 0),e._a[lr]=xt(e._locale,e._a[lr],e._meridiem),_t(e),Q(e)}function xt(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(r=t.isPM(n),r&&12>e&&(e+=12),r||12!==e||(e=0),e):e}function $t(t){var e,n,r,i,o;if(0===t._f.length)return l(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)o=0,e=h({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],wt(e),c(e)&&(o+=l(e).charsLeftOver,o+=10*l(e).unusedTokens.length,l(e).score=o,(null==r||r>o)&&(r=o,n=e));a(t,n||e)}function kt(t){if(!t._d){var e=E(t._i);t._a=[e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],_t(t)}}function St(t){var e=new p(Q(Ct(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Ct(t){var e=t._i,i=t._f;return t._locale=t._locale||k(t._l),null===e||void 0===i&&""===e?f({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),d(e)?new p(Q(e)):(n(i)?$t(t):i?wt(t):r(e)?t._d=e:Et(t),t))}function Et(e){var o=e._i;void 0===o?e._d=new Date:r(o)?e._d=new Date(+o):"string"==typeof o?rt(e):n(o)?(e._a=i(o.slice(0),function(t){return parseInt(t,10)}),_t(e)):"object"==typeof o?kt(e):"number"==typeof o?e._d=new Date(o):t.createFromInputFallback(e)}function Tt(t,e,n,r,i){var o={};return"boolean"==typeof n&&(r=n,n=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,St(o)}function Ft(t,e,n,r){return Tt(t,e,n,r,!1)}function jt(t,e){var r,i;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return Ft();for(r=e[0],i=1;i<e.length;++i)(!e[i].isValid()||e[i][t](r))&&(r=e[i]);return r}function At(){var t=[].slice.call(arguments,0);return jt("isBefore",t)}function Dt(){var t=[].slice.call(arguments,0);return jt("isAfter",t)}function Mt(t){var e=E(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||0,a=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*l+6e4*u+36e5*s,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=k(),this._bubble()}function Ot(t){return t instanceof Mt}function It(t,e){M(t,0,0,function(){var t=this.utcOffset(),n="+";return 0>t&&(t=-t,n="-"),n+D(~~(t/60),2)+e+D(~~t%60,2)})}function Pt(t){var e=(t||"").match(er)||[],n=e[e.length-1]||[],r=(n+"").match(kr)||["-",0,0],i=+(60*r[1])+m(r[2]);return"+"===r[0]?i:-i}function Nt(e,n){var i,o;return n._isUTC?(i=n.clone(),o=(d(e)||r(e)?+e:+Ft(e))-+i,i._d.setTime(+i._d+o),t.updateOffset(i,!1),i):Ft(e).local()}function Rt(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Lt(e,n){var r,i=this._offset||0;return null!=e?("string"==typeof e&&(e=Pt(e)),Math.abs(e)<16&&(e=60*e),!this._isUTC&&n&&(r=Rt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!n||this._changeInProgress?ee(this,Xt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Rt(this)}function zt(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function qt(t){return this.utcOffset(0,t)}function Ht(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Rt(this),"m")),this}function Ut(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Pt(this._i)),this}function Wt(t){return t=t?Ft(t).utcOffset():0,(this.utcOffset()-t)%60===0}function Vt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bt(){if("undefined"!=typeof this._isDSTShifted)return this._isDSTShifted;var t={};if(h(t,this),t=Ct(t),t._a){var e=t._isUTC?s(t._a):Ft(t._a);this._isDSTShifted=this.isValid()&&g(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Yt(){return!this._isUTC}function Kt(){return this._isUTC}function Gt(){return this._isUTC&&0===this._offset}function Xt(t,e){var n,r,i,a=t,s=null;return Ot(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(a={},e?a[e]=t:a.milliseconds=t):(s=Sr.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:m(s[ur])*n,h:m(s[lr])*n,m:m(s[cr])*n,s:m(s[fr])*n,ms:m(s[hr])*n}):(s=Cr.exec(t))?(n="-"===s[1]?-1:1,a={y:Jt(s[2],n),M:Jt(s[3],n),d:Jt(s[4],n),h:Jt(s[5],n),m:Jt(s[6],n),s:Jt(s[7],n),w:Jt(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Zt(Ft(a.from),Ft(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new Mt(a),Ot(t)&&o(t,"_locale")&&(r._locale=t._locale),r}function Jt(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Qt(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Zt(t,e){var n;return e=Nt(e,t),t.isBefore(e)?n=Qt(t,e):(n=Qt(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function te(t,e){return function(n,r){var i,o;return null===r||isNaN(+r)||(et(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Xt(n,r),ee(this,i,t),this}}function ee(e,n,r,i){var o=n._milliseconds,a=n._days,s=n._months;i=null==i?!0:i,o&&e._d.setTime(+e._d+o*r),a&&j(e,"Date",F(e,"Date")+a*r),s&&G(e,F(e,"Month")+s*r),i&&t.updateOffset(e,a||s)}function ne(t,e){var n=t||Ft(),r=Nt(n,this).startOf("day"),i=this.diff(r,"days",!0),o=-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse";return this.format(e&&e[o]||this.localeData().calendar(o,this,Ft(n)))}function re(){return new p(this)}function ie(t,e){var n;return e=C("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=d(t)?t:Ft(t),+this>+t):(n=d(t)?+t:+Ft(t),n<+this.clone().startOf(e))}function oe(t,e){var n;return e=C("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=d(t)?t:Ft(t),+t>+this):(n=d(t)?+t:+Ft(t),+this.clone().endOf(e)<n)}function ae(t,e,n){return this.isAfter(t,n)&&this.isBefore(e,n)}function se(t,e){var n;return e=C(e||"millisecond"),"millisecond"===e?(t=d(t)?t:Ft(t),+this===+t):(n=+Ft(t),+this.clone().startOf(e)<=n&&n<=+this.clone().endOf(e))}function ue(t,e,n){var r,i,o=Nt(t,this),a=6e4*(o.utcOffset()-this.utcOffset());return e=C(e),"year"===e||"month"===e||"quarter"===e?(i=le(this,o),"quarter"===e?i/=3:"year"===e&&(i/=12)):(r=this-o,i="second"===e?r/1e3:"minute"===e?r/6e4:"hour"===e?r/36e5:"day"===e?(r-a)/864e5:"week"===e?(r-a)/6048e5:r),n?i:v(i)}function le(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(i,"months");return 0>e-o?(n=t.clone().add(i-1,"months"),r=(e-o)/(o-n)):(n=t.clone().add(i+1,"months"),r=(e-o)/(n-o)),-(i+r)}function ce(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fe(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():P(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):P(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function he(e){var n=P(this,e||t.defaultFormat);return this.localeData().postformat(n)}function pe(t,e){return this.isValid()?Xt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function de(t){return this.from(Ft(),t)}function ve(t,e){return this.isValid()?Xt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function me(t){return this.to(Ft(),t)}function ge(t){var e;return void 0===t?this._locale._abbr:(e=k(t),null!=e&&(this._locale=e),this)}function ye(){return this._locale}function _e(t){switch(t=C(t)){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"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function be(t){return t=C(t),void 0===t||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")}function we(){return+this._d-6e4*(this._offset||0)}function xe(){return Math.floor(+this/1e3)}function $e(){return this._offset?new Date(+this):this._d}function ke(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Se(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Ce(){return c(this)}function Ee(){return a({},l(this))}function Te(){return l(this).overflow}function Fe(t,e){M(0,[t,t.length],0,e)}function je(t,e,n){return lt(Ft([t,11,31+e-n]),e,n).week}function Ae(t){var e=lt(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")}function De(t){var e=lt(this,1,4).year;return null==t?e:this.add(t-e,"y")}function Me(){return je(this.year(),1,4)}function Oe(){var t=this.localeData()._week;return je(this.year(),t.dow,t.doy)}function Ie(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Pe(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ne(t){return this._weekdays[t.day()]}function Re(t){return this._weekdaysShort[t.day()]}function Le(t){return this._weekdaysMin[t.day()]}function ze(t){var e,n,r;for(this._weekdaysParse=this._weekdaysParse||[],e=0;7>e;e++)if(this._weekdaysParse[e]||(n=Ft([2e3,1]).day(e),r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e}function qe(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Pe(t,this.localeData()),this.add(t-e,"d")):e}function He(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ue(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)}function We(t,e){M(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Ve(t,e){return e._meridiemParse}function Be(t){return"p"===(t+"").toLowerCase().charAt(0)}function Ye(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Ke(t,e){e[hr]=m(1e3*("0."+t))}function Ge(){return this._isUTC?"UTC":""}function Xe(){return this._isUTC?"Coordinated Universal Time":""}function Je(t){return Ft(1e3*t)}function Qe(){return Ft.apply(null,arguments).parseZone()}function Ze(t,e,n){var r=this._calendar[t];return"function"==typeof r?r.call(e,n):r}function tn(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function en(){return this._invalidDate}function nn(t){return this._ordinal.replace("%d",t)}function rn(t){return t}function on(t,e,n,r){var i=this._relativeTime[n];return"function"==typeof i?i(t,e,n,r):i.replace(/%d/i,t)}function an(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)}function sn(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function un(t,e,n,r){var i=k(),o=s().set(r,e);return i[n](o,t)}function ln(t,e,n,r,i){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return un(t,e,n,i);var o,a=[];for(o=0;r>o;o++)a[o]=un(t,o,n,i);return a}function cn(t,e){return ln(t,e,"months",12,"month")}function fn(t,e){return ln(t,e,"monthsShort",12,"month")}function hn(t,e){return ln(t,e,"weekdays",7,"day")}function pn(t,e){return ln(t,e,"weekdaysShort",7,"day")}function dn(t,e){return ln(t,e,"weekdaysMin",7,"day")}function vn(){var t=this._data;return this._milliseconds=Gr(this._milliseconds),this._days=Gr(this._days),this._months=Gr(this._months),t.milliseconds=Gr(t.milliseconds),t.seconds=Gr(t.seconds),t.minutes=Gr(t.minutes),t.hours=Gr(t.hours),t.months=Gr(t.months),t.years=Gr(t.years),this}function mn(t,e,n,r){var i=Xt(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function gn(t,e){return mn(this,t,e,1)}function yn(t,e){return mn(this,t,e,-1)}function _n(t){return 0>t?Math.floor(t):Math.ceil(t)}function bn(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||0>=o&&0>=a&&0>=s||(o+=864e5*_n(xn(s)+a),a=0,s=0),u.milliseconds=o%1e3,t=v(o/1e3),u.seconds=t%60,e=v(t/60),u.minutes=e%60,n=v(e/60),u.hours=n%24,a+=v(n/24),i=v(wn(a)),s+=i,a-=_n(xn(i)),r=v(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function wn(t){return 4800*t/146097}function xn(t){return 146097*t/4800}function $n(t){var e,n,r=this._milliseconds;if(t=C(t),"month"===t||"year"===t)return e=this._days+r/864e5,n=this._months+wn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(xn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function kn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12)}function Sn(t){return function(){return this.as(t)}}function Cn(t){return t=C(t),this[t+"s"]()}function En(t){return function(){return this._data[t]}}function Tn(){return v(this.days()/7)}function Fn(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function jn(t,e,n){var r=Xt(t).abs(),i=fi(r.as("s")),o=fi(r.as("m")),a=fi(r.as("h")),s=fi(r.as("d")),u=fi(r.as("M")),l=fi(r.as("y")),c=i<hi.s&&["s",i]||1===o&&["m"]||o<hi.m&&["mm",o]||1===a&&["h"]||a<hi.h&&["hh",a]||1===s&&["d"]||s<hi.d&&["dd",s]||1===u&&["M"]||u<hi.M&&["MM",u]||1===l&&["y"]||["yy",l];return c[2]=e,c[3]=+t>0,c[4]=n,Fn.apply(null,c)}function An(t,e){return void 0===hi[t]?!1:void 0===e?hi[t]:(hi[t]=e,!0)}function Dn(t){var e=this.localeData(),n=jn(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Mn(){var t,e,n,r=pi(this._milliseconds)/1e3,i=pi(this._days),o=pi(this._months);t=v(r/60),e=v(t/60),r%=60,t%=60,n=v(o/12),o%=12;var a=n,s=o,u=i,l=e,c=t,f=r,h=this.asSeconds();return h?(0>h?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||f?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(f?f+"S":""):"P0D"}var On,In,Pn=t.momentProperties=[],Nn=!1,Rn={},Ln={},zn=/(\[[^\[]*\])|(\\)?(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,qn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Hn={},Un={},Wn=/\d/,Vn=/\d\d/,Bn=/\d{3}/,Yn=/\d{4}/,Kn=/[+-]?\d{6}/,Gn=/\d\d?/,Xn=/\d{1,3}/,Jn=/\d{1,4}/,Qn=/[+-]?\d{1,6}/,Zn=/\d+/,tr=/[+-]?\d+/,er=/Z|[+-]\d\d:?\d\d/gi,nr=/[+-]?\d+(\.\d{1,3})?/,rr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ir={},or={},ar=0,sr=1,ur=2,lr=3,cr=4,fr=5,hr=6;M("M",["MM",2],"Mo",function(){return this.month()+1}),M("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),M("MMMM",0,0,function(t){return this.localeData().months(this,t)}),S("month","M"),L("M",Gn),L("MM",Gn,Vn),L("MMM",rr),L("MMMM",rr),H(["M","MM"],function(t,e){e[sr]=m(t)-1}),H(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[sr]=i:l(n).invalidMonth=t});var pr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),dr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),vr={};t.suppressDeprecationWarnings=!1;var mr=/^\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)?)?$/,gr=[["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}/]],yr=[["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/]],_r=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=tt("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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),M(0,["YY",2],0,function(){return this.year()%100}),M(0,["YYYY",4],0,"year"),M(0,["YYYYY",5],0,"year"),M(0,["YYYYYY",6,!0],0,"year"),S("year","y"),L("Y",tr),L("YY",Gn,Vn),L("YYYY",Jn,Yn),L("YYYYY",Qn,Kn),L("YYYYYY",Qn,Kn),H(["YYYYY","YYYYYY"],ar),H("YYYY",function(e,n){n[ar]=2===e.length?t.parseTwoDigitYear(e):m(e)}),H("YY",function(e,n){n[ar]=t.parseTwoDigitYear(e)}),t.parseTwoDigitYear=function(t){return m(t)+(m(t)>68?1900:2e3)};var br=T("FullYear",!1);M("w",["ww",2],"wo","week"),M("W",["WW",2],"Wo","isoWeek"),S("week","w"),S("isoWeek","W"),L("w",Gn),L("ww",Gn,Vn),L("W",Gn),L("WW",Gn,Vn),U(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=m(t)});var wr={dow:0,doy:6};M("DDD",["DDDD",3],"DDDo","dayOfYear"),S("dayOfYear","DDD"),L("DDD",Xn),L("DDDD",Bn),H(["DDD","DDDD"],function(t,e,n){n._dayOfYear=m(t)}),t.ISO_8601=function(){};var xr=tt("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Ft.apply(null,arguments);return this>t?this:t}),$r=tt("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){
var t=Ft.apply(null,arguments);return t>this?this:t});It("Z",":"),It("ZZ",""),L("Z",er),L("ZZ",er),H(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Pt(t)});var kr=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Sr=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Cr=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Xt.fn=Mt.prototype;var Er=te(1,"add"),Tr=te(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Fr=tt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});M(0,["gg",2],0,function(){return this.weekYear()%100}),M(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Fe("gggg","weekYear"),Fe("ggggg","weekYear"),Fe("GGGG","isoWeekYear"),Fe("GGGGG","isoWeekYear"),S("weekYear","gg"),S("isoWeekYear","GG"),L("G",tr),L("g",tr),L("GG",Gn,Vn),L("gg",Gn,Vn),L("GGGG",Jn,Yn),L("gggg",Jn,Yn),L("GGGGG",Qn,Kn),L("ggggg",Qn,Kn),U(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=m(t)}),U(["gg","GG"],function(e,n,r,i){n[i]=t.parseTwoDigitYear(e)}),M("Q",0,0,"quarter"),S("quarter","Q"),L("Q",Wn),H("Q",function(t,e){e[sr]=3*(m(t)-1)}),M("D",["DD",2],"Do","date"),S("date","D"),L("D",Gn),L("DD",Gn,Vn),L("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),H(["D","DD"],ur),H("Do",function(t,e){e[ur]=m(t.match(Gn)[0],10)});var jr=T("Date",!0);M("d",0,"do","day"),M("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),M("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),M("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),M("e",0,0,"weekday"),M("E",0,0,"isoWeekday"),S("day","d"),S("weekday","e"),S("isoWeekday","E"),L("d",Gn),L("e",Gn),L("E",Gn),L("dd",rr),L("ddd",rr),L("dddd",rr),U(["dd","ddd","dddd"],function(t,e,n){var r=n._locale.weekdaysParse(t);null!=r?e.d=r:l(n).invalidWeekday=t}),U(["d","e","E"],function(t,e,n,r){e[r]=m(t)});var Ar="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mr="Su_Mo_Tu_We_Th_Fr_Sa".split("_");M("H",["HH",2],0,"hour"),M("h",["hh",2],0,function(){return this.hours()%12||12}),We("a",!0),We("A",!1),S("hour","h"),L("a",Ve),L("A",Ve),L("H",Gn),L("h",Gn),L("HH",Gn,Vn),L("hh",Gn,Vn),H(["H","HH"],lr),H(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),H(["h","hh"],function(t,e,n){e[lr]=m(t),l(n).bigHour=!0});var Or=/[ap]\.?m?\.?/i,Ir=T("Hours",!0);M("m",["mm",2],0,"minute"),S("minute","m"),L("m",Gn),L("mm",Gn,Vn),H(["m","mm"],cr);var Pr=T("Minutes",!1);M("s",["ss",2],0,"second"),S("second","s"),L("s",Gn),L("ss",Gn,Vn),H(["s","ss"],fr);var Nr=T("Seconds",!1);M("S",0,0,function(){return~~(this.millisecond()/100)}),M(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),M(0,["SSS",3],0,"millisecond"),M(0,["SSSS",4],0,function(){return 10*this.millisecond()}),M(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),M(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),M(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),M(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),M(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),S("millisecond","ms"),L("S",Xn,Wn),L("SS",Xn,Vn),L("SSS",Xn,Bn);var Rr;for(Rr="SSSS";Rr.length<=9;Rr+="S")L(Rr,Zn);for(Rr="S";Rr.length<=9;Rr+="S")H(Rr,Ke);var Lr=T("Milliseconds",!1);M("z",0,0,"zoneAbbr"),M("zz",0,0,"zoneName");var zr=p.prototype;zr.add=Er,zr.calendar=ne,zr.clone=re,zr.diff=ue,zr.endOf=be,zr.format=he,zr.from=pe,zr.fromNow=de,zr.to=ve,zr.toNow=me,zr.get=A,zr.invalidAt=Te,zr.isAfter=ie,zr.isBefore=oe,zr.isBetween=ae,zr.isSame=se,zr.isValid=Ce,zr.lang=Fr,zr.locale=ge,zr.localeData=ye,zr.max=$r,zr.min=xr,zr.parsingFlags=Ee,zr.set=A,zr.startOf=_e,zr.subtract=Tr,zr.toArray=ke,zr.toObject=Se,zr.toDate=$e,zr.toISOString=fe,zr.toJSON=fe,zr.toString=ce,zr.unix=xe,zr.valueOf=we,zr.year=br,zr.isLeapYear=ut,zr.weekYear=Ae,zr.isoWeekYear=De,zr.quarter=zr.quarters=Ie,zr.month=X,zr.daysInMonth=J,zr.week=zr.weeks=pt,zr.isoWeek=zr.isoWeeks=dt,zr.weeksInYear=Oe,zr.isoWeeksInYear=Me,zr.date=jr,zr.day=zr.days=qe,zr.weekday=He,zr.isoWeekday=Ue,zr.dayOfYear=mt,zr.hour=zr.hours=Ir,zr.minute=zr.minutes=Pr,zr.second=zr.seconds=Nr,zr.millisecond=zr.milliseconds=Lr,zr.utcOffset=Lt,zr.utc=qt,zr.local=Ht,zr.parseZone=Ut,zr.hasAlignedHourOffset=Wt,zr.isDST=Vt,zr.isDSTShifted=Bt,zr.isLocal=Yt,zr.isUtcOffset=Kt,zr.isUtc=Gt,zr.isUTC=Gt,zr.zoneAbbr=Ge,zr.zoneName=Xe,zr.dates=tt("dates accessor is deprecated. Use date instead.",jr),zr.months=tt("months accessor is deprecated. Use month instead",X),zr.years=tt("years accessor is deprecated. Use year instead",br),zr.zone=tt("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",zt);var qr=zr,Hr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ur={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"},Wr="Invalid date",Vr="%d",Br=/\d{1,2}/,Yr={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"},Kr=y.prototype;Kr._calendar=Hr,Kr.calendar=Ze,Kr._longDateFormat=Ur,Kr.longDateFormat=tn,Kr._invalidDate=Wr,Kr.invalidDate=en,Kr._ordinal=Vr,Kr.ordinal=nn,Kr._ordinalParse=Br,Kr.preparse=rn,Kr.postformat=rn,Kr._relativeTime=Yr,Kr.relativeTime=on,Kr.pastFuture=an,Kr.set=sn,Kr.months=B,Kr._months=pr,Kr.monthsShort=Y,Kr._monthsShort=dr,Kr.monthsParse=K,Kr.week=ct,Kr._week=wr,Kr.firstDayOfYear=ht,Kr.firstDayOfWeek=ft,Kr.weekdays=Ne,Kr._weekdays=Ar,Kr.weekdaysMin=Le,Kr._weekdaysMin=Mr,Kr.weekdaysShort=Re,Kr._weekdaysShort=Dr,Kr.weekdaysParse=ze,Kr.isPM=Be,Kr._meridiemParse=Or,Kr.meridiem=Ye,x("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===m(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),t.lang=tt("moment.lang is deprecated. Use moment.locale instead.",x),t.langData=tt("moment.langData is deprecated. Use moment.localeData instead.",k);var Gr=Math.abs,Xr=Sn("ms"),Jr=Sn("s"),Qr=Sn("m"),Zr=Sn("h"),ti=Sn("d"),ei=Sn("w"),ni=Sn("M"),ri=Sn("y"),ii=En("milliseconds"),oi=En("seconds"),ai=En("minutes"),si=En("hours"),ui=En("days"),li=En("months"),ci=En("years"),fi=Math.round,hi={s:45,m:45,h:22,d:26,M:11},pi=Math.abs,di=Mt.prototype;di.abs=vn,di.add=gn,di.subtract=yn,di.as=$n,di.asMilliseconds=Xr,di.asSeconds=Jr,di.asMinutes=Qr,di.asHours=Zr,di.asDays=ti,di.asWeeks=ei,di.asMonths=ni,di.asYears=ri,di.valueOf=kn,di._bubble=bn,di.get=Cn,di.milliseconds=ii,di.seconds=oi,di.minutes=ai,di.hours=si,di.days=ui,di.weeks=Tn,di.months=li,di.years=ci,di.humanize=Dn,di.toISOString=Mn,di.toString=Mn,di.toJSON=Mn,di.locale=ge,di.localeData=ye,di.toIsoString=tt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mn),di.lang=Fr,M("X",0,0,"unix"),M("x",0,0,"valueOf"),L("x",tr),L("X",nr),H("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),H("x",function(t,e,n){n._d=new Date(m(t))}),t.version="2.10.6",e(Ft),t.fn=qr,t.min=At,t.max=Dt,t.utc=s,t.unix=Je,t.months=cn,t.isDate=r,t.locale=x,t.invalid=f,t.duration=Xt,t.isMoment=d,t.weekdays=hn,t.parseZone=Qe,t.localeData=k,t.isDuration=Ot,t.monthsShort=fn,t.weekdaysMin=dn,t.defineLocale=$,t.weekdaysShort=pn,t.normalizeUnits=C,t.relativeTimeThreshold=An;var vi=t;return vi}),function(){var t,e,n,r,o,a,s,u,l,c,f,h,p={}.hasOwnProperty,d=function(t,e){function n(){this.constructor=t}for(var r in e)p.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s={inputs:"input, textarea, select",excluded:"input[type=hidden], input[type=file], :disabled",focus:"first",validationMinlength:3,validateIfUnchanged:!1,interceptSubmit:!0,messages:{},validators:{},showErrors:!0,errorClass:"checksley-error",successClass:"checksley-ok",validatedClass:"checksley-validated",onlyOneErrorElement:!1,containerClass:"checksley-error-list",containerGlobalSearch:!1,containerPreferenceSelector:".errors-box",containerErrorsSelector:"li",errors:{classHandler:function(t,e){return t},container:function(t,e){return t.parent()},errorsWrapper:"<ul />",errorElem:"<li />"},listeners:{onFieldValidate:function(t,e){return!1},onFormSubmit:function(t,e,n){},onFieldError:function(t,e,n){},onFieldSuccess:function(t,e,n){}}},f={notnull:function(t){return t.length>0},notblank:function(t){return _.isString(t)&&""!==t.replace(/^\s+/g,"").replace(/\s+$/g,"")},required:function(t){var e,n,r;if(_.isArray(t)){for(n=0,r=t.length;r>n;n++)if(e=t[n],f.required(t[i]))return!0;return!1}return f.notnull(t)&&f.notblank(t)},type:function(t,e){var n;switch(n=null,e){case"number":n=/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/;break;case"digits":n=/^\d+$/;break;case"alphanum":n=/^\w+$/;break;case"email":n=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;break;case"url":/(https?|s?ftp|git)/i.test(t)||(t="http://"+t),n=/^(https?|s?ftp|git):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;break;case"urlstrict":n=/^(https?|s?ftp|git):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;break;case"dateIso":n=/^(\d{4})\D?(0[1-9]|1[0-2])\D?([12]\d|0[1-9]|3[01])$/;break;case"phone":n=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/}return n?n.test(t):!1},regexp:function(t,e,n){return new RegExp(e,n.options.regexpFlag||"").test(t)},minlength:function(t,e){return t.length>=e},maxlength:function(t,e){return t.length<=e},rangelength:function(t,e){return t.length>=e[0]&&t.length<=e[1]},min:function(t,e){return Number(t)>=e},max:function(t,e){return Number(t)<=e},range:function(t,e){return t>=e[0]&&t<=e[1]},equalto:function(t,e,n){return n.options.validateIfUnchanged=!0,t===$(e).val()},mincheck:function(t,e){return f.minlength(t,e)},maxcheck:function(t,e){return f.maxlength(t,e)},rangecheck:function(t,e){return f.rangelength(t,e)}},l={defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",urlstrict:"This value should be a valid url.",number:"This value should be a valid number.",digits:"This value should be digits.",dateIso:"This value should be a valid date (YYYY-MM-DD).",alphanum:"This value should be alphanumeric.",phone:"This value should be a valid phone number."},notnull:"This value should not be null.",notblank:"This value should not be blank.",required:"This value is required.",regexp:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or less.",rangelength:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or less.",rangecheck:"You must select between %s and %s choices.",equalto:"This value should be the same."},u=function(t,e){return _.isArray(e)||(e=[e]),t.indexOf("%s")>=0?t.replace(/%s/g,function(t){return String(e.shift())}):t.indexOf("%e")>=0?t.replace(/%e/g,function(t){return String($(e.shift()).val())}):t},c=function(t){return parseInt(t,10)},h=function(t){var e,i,a;if(e=$(this),!e.is("form, input, select, textarea"))throw"element is not a valid element for checksley";if(i=e.data("checksley"),(void 0===i||null===i)&&(a={},_.isPlainObject(t)&&(a=t),i=e.is("input[type=radio], input[type=checkbox]")?new r(e,t):e.is("input, select, textarea")?new n(e,t):new o(e,t)),!_.isString(t))return i;switch(t){case"validate":return i.validate();case"destroy":return i.destroy();case"reset":return i.reset()}},t=function(){function t(t){void 0===t?this.jq=window.jQuery||window.Zepto:this.jq=t,this.messages={"default":{defaultMessage:"Invalid"}},this.lang=this.detectLang()}return t.prototype.updateDefaults=function(t){return _.merge(s,t)},t.prototype.updateValidators=function(t){return _.extend(f,t)},t.prototype.updateMessages=function(t,e,n){return null==n&&(n=!1),void 0===this.messages[t]&&(this.messages[t]={}),n?this.messages[t]=e:_.merge(this.messages[t],e)},t.prototype.injectPlugin=function(){return this.jq.fn.checksley=h},t.prototype.setLang=function(t){return this.lang=t},t.prototype.detectLang=function(){return this.jq("html").attr("lang")||"default"},t.prototype.getMessage=function(t,e){var n;return void 0===e&&(e=this.lang),l=this.messages[e],void 0===l&&(l={}),n=l[t],void 0===n?"default"===e?this.getMessage("defaultMessage",e):this.getMessage(t,"default"):n},t}(),n=function(){function t(t,e){null==e&&(e={}),this.id=_.uniqueId("field-"),this.element=$(t),this.validatedOnce=!1,this.options=_.merge({},s,e),this.isRadioOrCheckbox=!1,this.validators=f,this.resetConstraints(),this.bindEvents(),this.bindData()}return t.prototype.bindData=function(){return this.element.data("checksley-field",this)},t.prototype.unbindData=function(){return this.element.data("checksley-field",null)},t.prototype.focus=function(){return this.element.focus()},t.prototype.eventValidate=function(t){var e,n;return e=this.element.data("trigger"),n=this.getValue(),("keyup"!==t.type||/keyup/i.test(e)||this.validatedOnce)&&("change"!==t.type||/change/i.test(e)||this.validatedOnce)?n.length<this.options.validationMinlength&&!this.validatedOnce?!0:this.validate():!0},t.prototype.unbindEvents=function(){return this.element.off("."+this.id)},t.prototype.bindEvents=function(){var t;return this.unbindEvents(),t=this.element.data("trigger"),_.isString(t)&&this.element.on(""+t+"."+this.id,_.bind(this.eventValidate,this)),this.element.is("select")&&"change"!==t&&this.element.on("change."+this.id,_.bind(this.eventValidate,this)),"keyup"!==t?this.element.on("keyup."+this.id,_.bind(this.eventValidate,this)):void 0},t.prototype.errorClassTarget=function(){return this.element},t.prototype.resetHtml5Constraints=function(){var t,e,n,r;if(this.element.prop("required")&&(this.required=!0),r=new RegExp(this.element.attr("type"),"i"),r.test("email url number range"))switch(n=this.element.attr("type")){case"range":if(e=this.element.attr("min"),t=this.element.attr("max"),e&&t)return this.constraints[n]={valid:!0,params:[c(e),c(t)],fn:this.validators[n]}}},t.prototype.resetConstraints=function(){var t,e,n,r;this.constraints={},this.valid=!0,this.required=!1,this.resetHtml5Constraints(),this.element.addClass("checksley-validated"),n=this.validators,r=[];for(t in n)e=n[t],void 0!==this.element.data(t)&&(this.constraints[t]={valid:!0,params:this.element.data(t),fn:e},"required"===t?r.push(this.required=!0):r.push(void 0));return r},t.prototype.hasConstraints=function(){return!_.isEmpty(this.constraints)},t.prototype.validate=function(t){return this.validatedOnce=!0,this.hasConstraints()?this.options.listeners.onFieldValidate(this.element,this)?(this.reset(),null):this.required||""!==this.getValue()?this.applyValidators(t):(this.reset(),null):null},t.prototype.applyValidators=function(t){var e,n,r,i,o,a;(void 0===t||null===t)&&(t=this.options.showErrors),i=this.getValue(),o=!0,n=this.options.listeners,t&&this.removeErrors(),a=this.constraints;for(r in a)e=a[r],e.valid=e.fn(this.getValue(),e.params,this),e.valid===!1?(o=!1,t&&this.manageError(r,e),n.onFieldError(this.element,e,this)):n.onFieldSuccess(this.element,e,this);return this.handleClasses(o),o},t.prototype.handleClasses=function(t){var e,n,r;switch(e=this.options.errors.classHandler(this.element,!1),n=this.options.errorClass,r=this.options.successClass,t){case null:return e.removeClass(n),e.removeClass(r);case!1:return e.removeClass(r),e.addClass(n);case!0:return e.removeClass(n),e.addClass(r)}},t.prototype.manageError=function(t,e){var n,r;return n=this.element.data(),r=void 0!==n.errorMessage?n.errorMessage:"type"===t?a.getMessage("type")[e.params]:a.getMessage(t),void 0===r&&(r=a.getMessage("default")),e.params&&(r=u(r,_.clone(e.params,!0))),this.addError(this.makeErrorElement(t,r))},t.prototype.setErrors=function(t){var e,n,r,i;for(this.removeErrors(),_.isArray(t)||(t=[t]),i=[],n=0,r=t.length;r>n;n++)e=t[n],i.push(this.addError(this.makeErrorElement("custom",e)));return i},t.prototype.makeErrorElement=function(t,e){var n;return n=$("<li />",{"class":"checksley-"+t}),n.html(e),n.addClass(t),n},t.prototype.addError=function(t){var e,n;return e=this.getErrorContainer(),n=this.options.containerErrorsSelector,this.options.onlyOneErrorElement&&e.find(n).length?void 0:e.append(t)},t.prototype.reset=function(){return this.handleClasses(null),this.resetConstraints(),this.removeErrors()},t.prototype.removeErrors=function(){return $("#"+this.errorContainerId()).remove()},t.prototype.getValue=function(){return this.element.val()},t.prototype.errorContainerId=function(){return"checksley-error-"+this.id},t.prototype.errorContainerClass=function(){return"checksley-error-list"},t.prototype.getErrorContainer=function(){var t,e,n,r,i;return n=$("#"+this.errorContainerId()),1===n.length?n:(r={"class":this.errorContainerClass(),id:this.errorContainerId()},n=$("<ul />",r),e=this.element.data("error-container"),void 0===e?(this.isRadioOrCheckbox?n.insertAfter(this.element.parent()):n.insertAfter(this.element),n):(t=this.options.errors.containerGlobalSearch?$(e):this.element.closest(e),i=this.options.errors.containerPreferenceSelector,1===t.find(i).length&&(t=t.find(i)),t.append(n),n))},t.prototype.destroy=function(){return this.unbindEvents(),this.removeErrors(),this.unbindData()},t.prototype.setForm=function(t){return this.form=t},t}(),r=function(t){function e(t,n){e.__super__.constructor.call(this,t,n),this.isRadioOrCheckbox=!0,this.isRadio=this.element.is("input[type=radio]"),this.isCheckbox=this.element.is("input[type=checkbox]")}return d(e,t),e.prototype.getSiblings=function(){var t;return t=this.element.data("group"),void 0===t?"input[name="+this.element.attr("name")+"]":'[data-group="'+t+'"]'},e.prototype.getValue=function(){var t,e,n,r,i;if(this.isRadio)return $(""+this.getSiblings()+":checked").val()||"";if(this.isCheckbox){for(e=[],i=$(""+this.getSiblings()+":checked"),n=0,r=i.length;r>n;n++)t=i[n],e.push($(t).val());return e}},e.prototype.unbindEvents=function(){var t,e,n,r,i;for(r=$(this.getSiblings()),i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push($(t).off("."+this.id));return i},e.prototype.bindEvents=function(){var t,e,n,r,i,o;for(this.unbindEvents(),e=this.element.data("trigger"),i=$(this.getSiblings()),o=[],n=0,r=i.length;r>n;n++)t=i[n],t=$(t),_.isString(e)&&t.on(""+e+"."+this.id,_.bind(this.eventValidate,this)),"change"!==e?o.push(t.on("change."+this.id,_.bind(this.eventValidate,this))):o.push(void 0);return o},e}(n),e=function(t){function e(t,n){e.__super__.constructor.call(this,t,n)}return d(e,t),e.prototype.getComponents=function(){var t,e,n,r,i;for(t=[],n=this.element.data("composed").split(","),r=0,i=n.length;i>r;r++)e=n[r],t.push(this.element.find("[name="+e+"]"));return t},e.prototype.getValue=function(){var t;return t=_.map(this.getComponents(),function(t){return t.val()}).join(this.element.data("composed-joiner")),this.element.val(t),t},e.prototype.unbindEvents=function(){var t,e,n,r,i;for(r=$(this.getComponents()),i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(t.off("."+this.id));return i},e.prototype.bindEvents=function(){var t,e,n,r,i,o;for(this.unbindEvents(),e=this.element.data("trigger"),i=$(this.getComponents()),o=[],n=0,r=i.length;r>n;n++)t=i[n],_.isString(e)&&t.on(""+e+"."+this.id,_.bind(this.eventValidate,this)),"change"!==e?o.push(t.on("change."+this.id,_.bind(this.eventValidate,this))):o.push(void 0);return o},e}(n),o=function(){function t(t,e){null==e&&(e={}),this.id=_.uniqueId("checksleyform-"),this.element=$(t),this.options=_.extend({},s,e),this.initialize()}return t.prototype.initialize=function(){return this.initializeFields(),this.bindEvents(),this.bindData()},t.prototype.bindData=function(){return this.element.data("checksley",this)},t.prototype.unbindData=function(){return this.element.data("checksley",null)},t.prototype.initializeFields=function(){var t,e,n,r,i,o,s,u,l,c,f;for(this.fields=[],this.fieldsByName={},l=this.element.find(this.options.inputs),i=0,s=l.length;s>i;i++)r=l[i],e=$(r),e.is(this.options.excluded)||(n=e.is("input[type=radio], input[type=checkbox]")?new a.FieldMultiple(r,this.options):new a.Field(r,this.options),n.setForm(this),this.fields.push(n),this.fieldsByName[e.attr("name")]=n);for(c=this.element.find("[data-composed]"),f=[],o=0,u=c.length;u>o;o++)t=c[o],n=new a.ComposedField(t,this.options),n.setForm(this),f.push(this.fields.push(n));return f},t.prototype.setErrors=function(t){var e,n,r,i;i=[];for(r in t)e=t[r],n=this.fieldsByName[r],n?i.push(n.setErrors(e)):i.push(void 0);return i},t.prototype.validate=function(){var t,e,n,r,i,o;for(n=!0,e=[],o=this.fields,r=0,i=o.length;i>r;r++)t=o[r],t.validate()===!1&&(n=!1,e.push(t));if(!n)switch(this.options.focus){case"first":e[0].focus();break;case"last":e[e.length].focus()}return n},t.prototype.bindEvents=function(){var t;return t=this,this.unbindEvents(),this.element.on("submit."+this.id,function(e){var n;return n=t.validate(),t.options.listeners.onFormSubmit(n,e,t),t.options.interceptSubmit&&!n?e.preventDefault():void 0})},t.prototype.unbindEvents=function(){return this.element.off("."+this.id)},t.prototype.removeErrors=function(){var t,e,n,r,i;for(r=this.fields,i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(t.reset());return i},t.prototype.destroy=function(){var t,e,n,r;for(this.unbindEvents(),this.unbindData(),r=this.fields,e=0,n=r.length;n>e;e++)t=r[e],t.destroy();return this.field=[]},t.prototype.reset=function(){var t,e,n,r,i;for(r=this.fields,i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(t.reset());return i},t}(),a=new t,a.updateMessages("default",l),a.injectPlugin(),a.Checksley=t,a.Form=o,a.Field=n,a.FieldMultiple=r,a.ComposedField=e,this.checksley=a}.call(this),function(t,e){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(r){}module.exports=e(n)}else"function"==typeof define&&define.amd?define(function(t){var r="moment";try{n=t(r)}catch(i){}return e(n)}):t.Pikaday=e(t.moment)}(this,function(t){"use strict";var e="function"==typeof t,n=!!window.addEventListener,r=window.document,i=window.setTimeout,o=function(t,e,r,i){n?t.addEventListener(e,r,!!i):t.attachEvent("on"+e,r)},a=function(t,e,r,i){n?t.removeEventListener(e,r,!!i):t.detachEvent("on"+e,r)},s=function(t,e,n){var i;r.createEvent?(i=r.createEvent("HTMLEvents"),i.initEvent(e,!0,!1),i=_(i,n),t.dispatchEvent(i)):r.createEventObject&&(i=r.createEventObject(),i=_(i,n),t.fireEvent("on"+e,i))},u=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},l=function(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")},c=function(t,e){l(t,e)||(t.className=""===t.className?e:t.className+" "+e)},f=function(t,e){t.className=u((" "+t.className+" ").replace(" "+e+" "," "))},h=function(t){return/Array/.test(Object.prototype.toString.call(t))},p=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},d=function(t){var e=t.getDay();return 0===e||6===e},v=function(t){return t%4===0&&t%100!==0||t%400===0},m=function(t,e){return[31,v(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},g=function(t){p(t)&&t.setHours(0,0,0,0)},y=function(t,e){return t.getTime()===e.getTime()},_=function(t,e,n){var r,i;for(r in e)i=void 0!==t[r],i&&"object"==typeof e[r]&&null!==e[r]&&void 0===e[r].nodeName?p(e[r])?n&&(t[r]=new Date(e[r].getTime())):h(e[r])?n&&(t[r]=e[r].slice(0)):t[r]=_({},e[r],n):(n||!i)&&(t[r]=e[r]);return t},b=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},w={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},x=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},$=function(t){if(t.isEmpty)return'<td class="is-empty"></td>';var e=[];return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&e.push("is-selected"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'"><button class="pika-button pika-day" type="button" data-pika-year="'+t.year+'" data-pika-month="'+t.month+'" data-pika-day="'+t.day+'">'+t.day+"</button></td>"},k=function(t,e,n){var r=new Date(n,0,1),i=Math.ceil(((new Date(n,e,t)-r)/864e5+r.getDay()+1)/7);return'<td class="pika-week">'+i+"</td>"},S=function(t,e){return"<tr>"+(e?t.reverse():t).join("")+"</tr>"},C=function(t){return"<tbody>"+t.join("")+"</tbody>"},E=function(t){var e,n=[];for(t.showWeekNumber&&n.push("<th></th>"),e=0;7>e;e++)n.push('<th scope="col"><abbr title="'+x(t,e)+'">'+x(t,e,!0)+"</abbr></th>");return"<thead>"+(t.isRTL?n.reverse():n).join("")+"</thead>"},T=function(t,e,n,r,i){var o,a,s,u,l,c=t._o,f=n===c.minYear,p=n===c.maxYear,d='<div class="pika-title">',v=!0,m=!0;for(s=[],o=0;12>o;o++)s.push('<option value="'+(n===i?o-e:12+o-e)+'"'+(o===r?" selected":"")+(f&&o<c.minMonth||p&&o>c.maxMonth?"disabled":"")+">"+c.i18n.months[o]+"</option>");for(u='<div class="pika-label">'+c.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+s.join("")+"</select></div>",h(c.yearRange)?(o=c.yearRange[0],a=c.yearRange[1]+1):(o=n-c.yearRange,a=1+n+c.yearRange),s=[];a>o&&o<=c.maxYear;o++)o>=c.minYear&&s.push('<option value="'+o+'"'+(o===n?" selected":"")+">"+o+"</option>");return l='<div class="pika-label">'+n+c.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+s.join("")+"</select></div>",d+=c.showMonthAfterYear?l+u:u+l,f&&(0===r||c.minMonth>=r)&&(v=!1),p&&(11===r||c.maxMonth<=r)&&(m=!1),0===e&&(d+='<button class="pika-prev'+(v?"":" is-disabled")+'" type="button">'+c.i18n.previousMonth+"</button>"),e===t._o.numberOfMonths-1&&(d+='<button class="pika-next'+(m?"":" is-disabled")+'" type="button">'+c.i18n.nextMonth+"</button>"),d+="</div>"},F=function(t,e){return'<table cellpadding="0" cellspacing="0" class="pika-table">'+E(t)+C(e)+"</table>"},j=function(a){var s=this,u=s.config(a);s._onMouseDown=function(t){if(s._v){t=t||window.event;var e=t.target||t.srcElement;if(e)if(l(e,"is-disabled")||(l(e,"pika-button")&&!l(e,"is-empty")?(s.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),u.bound&&i(function(){s.hide(),u.field&&u.field.blur()},100)):l(e,"pika-prev")?s.prevMonth():l(e,"pika-next")&&s.nextMonth()),l(e,"pika-select"))s._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}},s._onChange=function(t){t=t||window.event;var e=t.target||t.srcElement;e&&(l(e,"pika-select-month")?s.gotoMonth(e.value):l(e,"pika-select-year")&&s.gotoYear(e.value))},s._onInputChange=function(n){var r;n.firedBy!==s&&(e?(r=t(u.field.value,u.format),r=r&&r.isValid()?r.toDate():null):r=new Date(Date.parse(u.field.value)),p(r)&&s.setDate(r),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var t=r.activeElement;do if(l(t,"pika-single"))return;while(t=t.parentNode);s._c||(s._b=i(function(){s.hide()},50)),s._c=!1},s._onClick=function(t){t=t||window.event;var e=t.target||t.srcElement,r=e;if(e){!n&&l(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),o(e,"change",s._onChange)));do if(l(r,"pika-single")||r===u.trigger)return;while(r=r.parentNode);s._v&&e!==u.trigger&&r!==u.trigger&&s.hide()}},s.el=r.createElement("div"),s.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:""),o(s.el,"mousedown",s._onMouseDown,!0),o(s.el,"touchend",s._onMouseDown,!0),o(s.el,"change",s._onChange),u.field&&(u.container?u.container.appendChild(s.el):u.bound?r.body.appendChild(s.el):u.field.parentNode.insertBefore(s.el,u.field.nextSibling),o(u.field,"change",s._onInputChange),
u.defaultDate||(e&&u.field.value?u.defaultDate=t(u.field.value,u.format).toDate():u.defaultDate=new Date(Date.parse(u.field.value)),u.setDefaultDate=!0));var c=u.defaultDate;p(c)?u.setDefaultDate?s.setDate(c,!0):s.gotoDate(c):s.gotoDate(new Date),u.bound?(this.hide(),s.el.className+=" is-bound",o(u.trigger,"click",s._onInputClick),o(u.trigger,"focus",s._onInputFocus),o(u.trigger,"blur",s._onInputBlur)):this.show()};return j.prototype={config:function(t){this._o||(this._o=_({},w,!0));var e=_(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.theme="string"==typeof e.theme&&e.theme?e.theme:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field,e.disableWeekends=!!e.disableWeekends,e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,p(e.minDate)||(e.minDate=!1),p(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),h(e.yearRange)){var r=(new Date).getFullYear()-10;e.yearRange[0]=parseInt(e.yearRange[0],10)||r,e.yearRange[1]=parseInt(e.yearRange[1],10)||r}else e.yearRange=Math.abs(parseInt(e.yearRange,10))||w.yearRange,e.yearRange>100&&(e.yearRange=100);return e},toString:function(n){return p(this._d)?e?t(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,r){e&&t.isMoment(n)&&this.setDate(n.toDate(),r)},getDate:function(){return p(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this._o.field&&(this._o.field.value="",s(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),p(t)){var n=this._o.minDate,r=this._o.maxDate;p(n)&&n>t?t=n:p(r)&&t>r&&(t=r),this._d=new Date(t.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),s(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(p(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=t.getTime();r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1),e=i<n.getTime()||r.getTime()<i}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustCalendars:function(){this.calendars[0]=b(this.calendars[0]);for(var t=1;t<this._o.numberOfMonths;t++)this.calendars[t]=b({month:this.calendars[0].month+t,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())},setMinDate:function(t){g(t),this._o.minDate=t,this._o.minYear=t.getFullYear(),this._o.minMonth=t.getMonth(),this.draw()},setMaxDate:function(t){g(t),this._o.maxDate=t,this._o.maxYear=t.getFullYear(),this._o.maxMonth=t.getMonth(),this.draw()},setStartRange:function(t){this._o.startRange=t},setEndRange:function(t){this._o.endRange=t},draw:function(t){if(this._v||t){var e=this._o,n=e.minYear,r=e.maxYear,o=e.minMonth,a=e.maxMonth,s="";this._y<=n&&(this._y=n,!isNaN(o)&&this._m<o&&(this._m=o)),this._y>=r&&(this._y=r,!isNaN(a)&&this._m>a&&(this._m=a));for(var u=0;u<e.numberOfMonths;u++)s+='<div class="pika-lendar">'+T(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year)+this.render(this.calendars[u].year,this.calendars[u].month)+"</div>";if(this.el.innerHTML=s,e.bound&&"hidden"!==e.field.type&&i(function(){e.trigger.focus()},1),"function"==typeof this._o.onDraw){var l=this;i(function(){l._o.onDraw.call(l)},0)}}},adjustPosition:function(){var t,e,n,i,o,a,s,u,l,c;if(!this._o.container){if(this.el.style.position="absolute",t=this._o.trigger,e=t,n=this.el.offsetWidth,i=this.el.offsetHeight,o=window.innerWidth||r.documentElement.clientWidth,a=window.innerHeight||r.documentElement.clientHeight,s=window.pageYOffset||r.body.scrollTop||r.documentElement.scrollTop,"function"==typeof t.getBoundingClientRect)c=t.getBoundingClientRect(),u=c.left+window.pageXOffset,l=c.bottom+window.pageYOffset;else for(u=e.offsetLeft,l=e.offsetTop+e.offsetHeight;e=e.offsetParent;)u+=e.offsetLeft,l+=e.offsetTop;(this._o.reposition&&u+n>o||this._o.position.indexOf("right")>-1&&u-n+t.offsetWidth>0)&&(u=u-n+t.offsetWidth),(this._o.reposition&&l+i>a+s||this._o.position.indexOf("top")>-1&&l-i-t.offsetHeight>0)&&(l=l-i-t.offsetHeight),this.el.style.left=u+"px",this.el.style.top=l+"px"}},render:function(t,e){var n=this._o,r=new Date,i=m(t,e),o=new Date(t,e,1).getDay(),a=[],s=[];g(r),n.firstDay>0&&(o-=n.firstDay,0>o&&(o+=7));for(var u=i+o,l=u;l>7;)l-=7;u+=7-l;for(var c=0,f=0;u>c;c++){var h=new Date(t,e,1+(c-o)),v=p(this._d)?y(h,this._d):!1,_=y(h,r),b=o>c||c>=i+o,w=n.startRange&&y(n.startRange,h),x=n.endRange&&y(n.endRange,h),C=n.startRange&&n.endRange&&n.startRange<h&&h<n.endRange,E=n.minDate&&h<n.minDate||n.maxDate&&h>n.maxDate||n.disableWeekends&&d(h)||n.disableDayFn&&n.disableDayFn(h),T={day:1+(c-o),month:e,year:t,isSelected:v,isToday:_,isDisabled:E,isEmpty:b,isStartRange:w,isEndRange:x,isInRange:C};s.push($(T)),7===++f&&(n.showWeekNumber&&s.unshift(k(c-o,e,t)),a.push(S(s,n.isRTL)),s=[],f=0)}return F(n,a)},isVisible:function(){return this._v},show:function(){this._v||(f(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(o(r,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;t!==!1&&(this._o.bound&&a(r,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",c(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),this._o.field&&(a(this._o.field,"change",this._onInputChange),this._o.bound&&(a(this._o.trigger,"click",this._onInputClick),a(this._o.trigger,"focus",this._onInputFocus),a(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},j}),function(t){t.color={},t.color.make=function(e,n,r,i){var o={};return o.r=e||0,o.g=n||0,o.b=r||0,o.a=null!=i?i:1,o.add=function(t,e){for(var n=0;n<t.length;++n)o[t.charAt(n)]+=e;return o.normalize()},o.scale=function(t,e){for(var n=0;n<t.length;++n)o[t.charAt(n)]*=e;return o.normalize()},o.toString=function(){return o.a>=1?"rgb("+[o.r,o.g,o.b].join(",")+")":"rgba("+[o.r,o.g,o.b,o.a].join(",")+")"},o.normalize=function(){function t(t,e,n){return t>e?t:e>n?n:e}return o.r=t(0,parseInt(o.r),255),o.g=t(0,parseInt(o.g),255),o.b=t(0,parseInt(o.b),255),o.a=t(0,o.a,1),o},o.clone=function(){return t.color.make(o.r,o.b,o.g,o.a)},o.normalize()},t.color.extract=function(e,n){var r;do{if(r=e.css(n).toLowerCase(),""!=r&&"transparent"!=r)break;e=e.parent()}while(e.length&&!t.nodeName(e.get(0),"body"));return"rgba(0, 0, 0, 0)"==r&&(r="transparent"),t.color.parse(r)},t.color.parse=function(n){var r,i=t.color.make;if(r=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(n))return i(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10));if(r=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(n))return i(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10),parseFloat(r[4]));if(r=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(n))return i(2.55*parseFloat(r[1]),2.55*parseFloat(r[2]),2.55*parseFloat(r[3]));if(r=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(n))return i(2.55*parseFloat(r[1]),2.55*parseFloat(r[2]),2.55*parseFloat(r[3]),parseFloat(r[4]));if(r=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(n))return i(parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16));if(r=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(n))return i(parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16));var o=t.trim(n).toLowerCase();return"transparent"==o?i(255,255,255,0):(r=e[o]||[0,0,0],i(r[0],r[1],r[2]))};var e={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(t){function e(e,n){var r=n.children("."+e)[0];if(null==r&&(r=document.createElement("canvas"),r.className=e,t(r).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(n),!r.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");r=window.G_vmlCanvasManager.initElement(r)}this.element=r;var i=this.context=r.getContext("2d"),o=window.devicePixelRatio||1,a=i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1;this.pixelRatio=o/a,this.resize(n.width(),n.height()),this.textContainer=null,this.text={},this._textCache={}}function n(n,i,o,a){function s(t,e){e=[mt].concat(e);for(var n=0;n<t.length;++n)t[n].apply(this,e)}function u(){for(var n={Canvas:e},r=0;r<a.length;++r){var i=a[r];i.init(mt,n),i.options&&t.extend(!0,it,i.options)}}function l(e){t.extend(!0,it,e),e&&e.colors&&(it.colors=e.colors),null==it.xaxis.color&&(it.xaxis.color=t.color.parse(it.grid.color).scale("a",.22).toString()),null==it.yaxis.color&&(it.yaxis.color=t.color.parse(it.grid.color).scale("a",.22).toString()),null==it.xaxis.tickColor&&(it.xaxis.tickColor=it.grid.tickColor||it.xaxis.color),null==it.yaxis.tickColor&&(it.yaxis.tickColor=it.grid.tickColor||it.yaxis.color),null==it.grid.borderColor&&(it.grid.borderColor=it.grid.color),null==it.grid.tickColor&&(it.grid.tickColor=t.color.parse(it.grid.color).scale("a",.22).toString());var r,i,o,a=n.css("font-size"),u=a?+a.replace("px",""):13,l={style:n.css("font-style"),size:Math.round(.8*u),variant:n.css("font-variant"),weight:n.css("font-weight"),family:n.css("font-family")};for(o=it.xaxes.length||1,r=0;o>r;++r)i=it.xaxes[r],i&&!i.tickColor&&(i.tickColor=i.color),i=t.extend(!0,{},it.xaxis,i),it.xaxes[r]=i,i.font&&(i.font=t.extend({},l,i.font),i.font.color||(i.font.color=i.color),i.font.lineHeight||(i.font.lineHeight=Math.round(1.15*i.font.size)));for(o=it.yaxes.length||1,r=0;o>r;++r)i=it.yaxes[r],i&&!i.tickColor&&(i.tickColor=i.color),i=t.extend(!0,{},it.yaxis,i),it.yaxes[r]=i,i.font&&(i.font=t.extend({},l,i.font),i.font.color||(i.font.color=i.color),i.font.lineHeight||(i.font.lineHeight=Math.round(1.15*i.font.size)));for(it.xaxis.noTicks&&null==it.xaxis.ticks&&(it.xaxis.ticks=it.xaxis.noTicks),it.yaxis.noTicks&&null==it.yaxis.ticks&&(it.yaxis.ticks=it.yaxis.noTicks),it.x2axis&&(it.xaxes[1]=t.extend(!0,{},it.xaxis,it.x2axis),it.xaxes[1].position="top",null==it.x2axis.min&&(it.xaxes[1].min=null),null==it.x2axis.max&&(it.xaxes[1].max=null)),it.y2axis&&(it.yaxes[1]=t.extend(!0,{},it.yaxis,it.y2axis),it.yaxes[1].position="right",null==it.y2axis.min&&(it.yaxes[1].min=null),null==it.y2axis.max&&(it.yaxes[1].max=null)),it.grid.coloredAreas&&(it.grid.markings=it.grid.coloredAreas),it.grid.coloredAreasColor&&(it.grid.markingsColor=it.grid.coloredAreasColor),it.lines&&t.extend(!0,it.series.lines,it.lines),it.points&&t.extend(!0,it.series.points,it.points),it.bars&&t.extend(!0,it.series.bars,it.bars),null!=it.shadowSize&&(it.series.shadowSize=it.shadowSize),null!=it.highlightColor&&(it.series.highlightColor=it.highlightColor),r=0;r<it.xaxes.length;++r)m(ct,r+1).options=it.xaxes[r];for(r=0;r<it.yaxes.length;++r)m(ft,r+1).options=it.yaxes[r];for(var c in vt)it.hooks[c]&&it.hooks[c].length&&(vt[c]=vt[c].concat(it.hooks[c]));s(vt.processOptions,[it])}function c(t){rt=f(t),g(),y()}function f(e){for(var n=[],r=0;r<e.length;++r){var i=t.extend(!0,{},it.series);null!=e[r].data?(i.data=e[r].data,delete e[r].data,t.extend(!0,i,e[r]),e[r].data=i.data):i.data=e[r],n.push(i)}return n}function h(t,e){var n=t[e+"axis"];return"object"==typeof n&&(n=n.n),"number"!=typeof n&&(n=1),n}function p(){return t.grep(ct.concat(ft),function(t){return t})}function d(t){var e,n,r={};for(e=0;e<ct.length;++e)n=ct[e],n&&n.used&&(r["x"+n.n]=n.c2p(t.left));for(e=0;e<ft.length;++e)n=ft[e],n&&n.used&&(r["y"+n.n]=n.c2p(t.top));return void 0!==r.x1&&(r.x=r.x1),void 0!==r.y1&&(r.y=r.y1),r}function v(t){var e,n,r,i={};for(e=0;e<ct.length;++e)if(n=ct[e],n&&n.used&&(r="x"+n.n,null==t[r]&&1==n.n&&(r="x"),null!=t[r])){i.left=n.p2c(t[r]);break}for(e=0;e<ft.length;++e)if(n=ft[e],n&&n.used&&(r="y"+n.n,null==t[r]&&1==n.n&&(r="y"),null!=t[r])){i.top=n.p2c(t[r]);break}return i}function m(e,n){return e[n-1]||(e[n-1]={n:n,direction:e==ct?"x":"y",options:t.extend(!0,{},e==ct?it.xaxis:it.yaxis)}),e[n-1]}function g(){var e,n=rt.length,r=-1;for(e=0;e<rt.length;++e){var i=rt[e].color;null!=i&&(n--,"number"==typeof i&&i>r&&(r=i))}r>=n&&(n=r+1);var o,a=[],s=it.colors,u=s.length,l=0;for(e=0;n>e;e++)o=t.color.parse(s[e%u]||"#666"),e%u==0&&e&&(l=l>=0?.5>l?-l-.2:0:-l),a[e]=o.scale("rgb",1+l);var c,f=0;for(e=0;e<rt.length;++e){if(c=rt[e],null==c.color?(c.color=a[f].toString(),++f):"number"==typeof c.color&&(c.color=a[c.color].toString()),null==c.lines.show){var p,d=!0;for(p in c)if(c[p]&&c[p].show){d=!1;break}d&&(c.lines.show=!0)}null==c.lines.zero&&(c.lines.zero=!!c.lines.fill),c.xaxis=m(ct,h(c,"x")),c.yaxis=m(ft,h(c,"y"))}}function y(){function e(t,e,n){e<t.datamin&&e!=-y&&(t.datamin=e),n>t.datamax&&n!=y&&(t.datamax=n)}var n,r,i,o,a,u,l,c,f,h,d,v,m=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,y=Number.MAX_VALUE;for(t.each(p(),function(t,e){e.datamin=m,e.datamax=g,e.used=!1}),n=0;n<rt.length;++n)a=rt[n],a.datapoints={points:[]},s(vt.processRawData,[a,a.data,a.datapoints]);for(n=0;n<rt.length;++n){if(a=rt[n],d=a.data,v=a.datapoints.format,!v){if(v=[],v.push({x:!0,number:!0,required:!0}),v.push({y:!0,number:!0,required:!0}),a.bars.show||a.lines.show&&a.lines.fill){var _=!!(a.bars.show&&a.bars.zero||a.lines.show&&a.lines.zero);v.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:_}),a.bars.horizontal&&(delete v[v.length-1].y,v[v.length-1].x=!0)}a.datapoints.format=v}if(null==a.datapoints.pointsize){a.datapoints.pointsize=v.length,l=a.datapoints.pointsize,u=a.datapoints.points;var b=a.lines.show&&a.lines.steps;for(a.xaxis.used=a.yaxis.used=!0,r=i=0;r<d.length;++r,i+=l){h=d[r];var w=null==h;if(!w)for(o=0;l>o;++o)c=h[o],f=v[o],f&&(f.number&&null!=c&&(c=+c,isNaN(c)?c=null:c==1/0?c=y:c==-(1/0)&&(c=-y)),null==c&&(f.required&&(w=!0),null!=f.defaultValue&&(c=f.defaultValue))),u[i+o]=c;if(w)for(o=0;l>o;++o)c=u[i+o],null!=c&&(f=v[o],f.autoscale!==!1&&(f.x&&e(a.xaxis,c,c),f.y&&e(a.yaxis,c,c))),u[i+o]=null;else if(b&&i>0&&null!=u[i-l]&&u[i-l]!=u[i]&&u[i-l+1]!=u[i+1]){for(o=0;l>o;++o)u[i+l+o]=u[i+o];u[i+1]=u[i-l+1],i+=l}}}}for(n=0;n<rt.length;++n)a=rt[n],s(vt.processDatapoints,[a,a.datapoints]);for(n=0;n<rt.length;++n){a=rt[n],u=a.datapoints.points,l=a.datapoints.pointsize,v=a.datapoints.format;var x=m,$=m,k=g,S=g;for(r=0;r<u.length;r+=l)if(null!=u[r])for(o=0;l>o;++o)c=u[r+o],f=v[o],f&&f.autoscale!==!1&&c!=y&&c!=-y&&(f.x&&(x>c&&(x=c),c>k&&(k=c)),f.y&&($>c&&($=c),c>S&&(S=c)));if(a.bars.show){var C;switch(a.bars.align){case"left":C=0;break;case"right":C=-a.bars.barWidth;break;default:C=-a.bars.barWidth/2}a.bars.horizontal?($+=C,S+=C+a.bars.barWidth):(x+=C,k+=C+a.bars.barWidth)}e(a.xaxis,x,k),e(a.yaxis,$,S)}t.each(p(),function(t,e){e.datamin==m&&(e.datamin=null),e.datamax==g&&(e.datamax=null)})}function _(){n.css("padding",0).children().filter(function(){return!t(this).hasClass("flot-overlay")&&!t(this).hasClass("flot-base")}).remove(),"static"==n.css("position")&&n.css("position","relative"),ot=new e("flot-base",n),at=new e("flot-overlay",n),ut=ot.context,lt=at.context,st=t(at.element).unbind();var r=n.data("plot");r&&(r.shutdown(),at.clear()),n.data("plot",mt)}function b(){it.grid.hoverable&&(st.mousemove(V),st.bind("mouseleave",B)),it.grid.clickable&&st.click(Y),s(vt.bindEvents,[st])}function w(){yt&&clearTimeout(yt),st.unbind("mousemove",V),st.unbind("mouseleave",B),st.unbind("click",Y),s(vt.shutdown,[st])}function x(t){function e(t){return t}var n,r,i=t.options.transform||e,o=t.options.inverseTransform;"x"==t.direction?(n=t.scale=pt/Math.abs(i(t.max)-i(t.min)),r=Math.min(i(t.max),i(t.min))):(n=t.scale=dt/Math.abs(i(t.max)-i(t.min)),n=-n,r=Math.max(i(t.max),i(t.min))),i==e?t.p2c=function(t){return(t-r)*n}:t.p2c=function(t){return(i(t)-r)*n},o?t.c2p=function(t){return o(r+t/n)}:t.c2p=function(t){return r+t/n}}function $(t){for(var e=t.options,n=t.ticks||[],r=e.labelWidth||0,i=e.labelHeight||0,o=r||("x"==t.direction?Math.floor(ot.width/(n.length||1)):null),a=t.direction+"Axis "+t.direction+t.n+"Axis",s="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+a,u=e.font||"flot-tick-label tickLabel",l=0;l<n.length;++l){var c=n[l];if(c.label){var f=ot.getTextInfo(s,c.label,u,null,o);r=Math.max(r,f.width),i=Math.max(i,f.height)}}t.labelWidth=e.labelWidth||r,t.labelHeight=e.labelHeight||i}function k(e){var n=e.labelWidth,r=e.labelHeight,i=e.options.position,o="x"===e.direction,a=e.options.tickLength,s=it.grid.axisMargin,u=it.grid.labelMargin,l=!0,c=!0,f=!0,h=!1;t.each(o?ct:ft,function(t,n){n&&(n.show||n.reserveSpace)&&(n===e?h=!0:n.options.position===i&&(h?c=!1:l=!1),h||(f=!1))}),c&&(s=0),null==a&&(a=f?"full":5),isNaN(+a)||(u+=+a),o?(r+=u,"bottom"==i?(ht.bottom+=r+s,e.box={top:ot.height-ht.bottom,height:r}):(e.box={top:ht.top+s,height:r},ht.top+=r+s)):(n+=u,"left"==i?(e.box={left:ht.left+s,width:n},ht.left+=n+s):(ht.right+=n+s,e.box={left:ot.width-ht.right,width:n})),e.position=i,e.tickLength=a,e.box.padding=u,e.innermost=l}function S(t){"x"==t.direction?(t.box.left=ht.left-t.labelWidth/2,t.box.width=ot.width-ht.left-ht.right+t.labelWidth):(t.box.top=ht.top-t.labelHeight/2,t.box.height=ot.height-ht.bottom-ht.top+t.labelHeight)}function C(){var e,n=it.grid.minBorderMargin;if(null==n)for(n=0,e=0;e<rt.length;++e)n=Math.max(n,2*(rt[e].points.radius+rt[e].points.lineWidth/2));var r={left:n,right:n,top:n,bottom:n};t.each(p(),function(t,e){e.reserveSpace&&e.ticks&&e.ticks.length&&("x"===e.direction?(r.left=Math.max(r.left,e.labelWidth/2),r.right=Math.max(r.right,e.labelWidth/2)):(r.bottom=Math.max(r.bottom,e.labelHeight/2),r.top=Math.max(r.top,e.labelHeight/2)))}),ht.left=Math.ceil(Math.max(r.left,ht.left)),ht.right=Math.ceil(Math.max(r.right,ht.right)),ht.top=Math.ceil(Math.max(r.top,ht.top)),ht.bottom=Math.ceil(Math.max(r.bottom,ht.bottom))}function E(){var e,n=p(),r=it.grid.show;for(var i in ht){var o=it.grid.margin||0;ht[i]="number"==typeof o?o:o[i]||0}s(vt.processOffset,[ht]);for(var i in ht)"object"==typeof it.grid.borderWidth?ht[i]+=r?it.grid.borderWidth[i]:0:ht[i]+=r?it.grid.borderWidth:0;if(t.each(n,function(t,e){var n=e.options;e.show=null==n.show?e.used:n.show,e.reserveSpace=null==n.reserveSpace?e.show:n.reserveSpace,T(e)}),r){var a=t.grep(n,function(t){return t.show||t.reserveSpace});for(t.each(a,function(t,e){F(e),j(e),A(e,e.ticks),$(e)}),e=a.length-1;e>=0;--e)k(a[e]);C(),t.each(a,function(t,e){S(e)})}pt=ot.width-ht.left-ht.right,dt=ot.height-ht.bottom-ht.top,t.each(n,function(t,e){x(e)}),r&&P(),U()}function T(t){var e=t.options,n=+(null!=e.min?e.min:t.datamin),r=+(null!=e.max?e.max:t.datamax),i=r-n;if(0==i){var o=0==r?1:.01;null==e.min&&(n-=o),(null==e.max||null!=e.min)&&(r+=o)}else{var a=e.autoscaleMargin;null!=a&&(null==e.min&&(n-=i*a,0>n&&null!=t.datamin&&t.datamin>=0&&(n=0)),null==e.max&&(r+=i*a,r>0&&null!=t.datamax&&t.datamax<=0&&(r=0)))}t.min=n,t.max=r}function F(e){var n,i=e.options;n="number"==typeof i.ticks&&i.ticks>0?i.ticks:.3*Math.sqrt("x"==e.direction?ot.width:ot.height);var o=(e.max-e.min)/n,a=-Math.floor(Math.log(o)/Math.LN10),s=i.tickDecimals;null!=s&&a>s&&(a=s);var u,l=Math.pow(10,-a),c=o/l;if(1.5>c?u=1:3>c?(u=2,c>2.25&&(null==s||s>=a+1)&&(u=2.5,++a)):u=7.5>c?5:10,u*=l,null!=i.minTickSize&&u<i.minTickSize&&(u=i.minTickSize),e.delta=o,e.tickDecimals=Math.max(0,null!=s?s:a),e.tickSize=i.tickSize||u,"time"==i.mode&&!e.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");if(e.tickGenerator||(e.tickGenerator=function(t){var e,n=[],i=r(t.min,t.tickSize),o=0,a=Number.NaN;do e=a,a=i+o*t.tickSize,n.push(a),++o;while(a<t.max&&a!=e);return n},e.tickFormatter=function(t,e){var n=e.tickDecimals?Math.pow(10,e.tickDecimals):1,r=""+Math.round(t*n)/n;if(null!=e.tickDecimals){var i=r.indexOf("."),o=-1==i?0:r.length-i-1;if(o<e.tickDecimals)return(o?r:r+".")+(""+n).substr(1,e.tickDecimals-o)}return r}),t.isFunction(i.tickFormatter)&&(e.tickFormatter=function(t,e){return""+i.tickFormatter(t,e)}),null!=i.alignTicksWithAxis){var f=("x"==e.direction?ct:ft)[i.alignTicksWithAxis-1];if(f&&f.used&&f!=e){var h=e.tickGenerator(e);if(h.length>0&&(null==i.min&&(e.min=Math.min(e.min,h[0])),null==i.max&&h.length>1&&(e.max=Math.max(e.max,h[h.length-1]))),e.tickGenerator=function(t){var e,n,r=[];for(n=0;n<f.ticks.length;++n)e=(f.ticks[n].v-f.min)/(f.max-f.min),e=t.min+e*(t.max-t.min),r.push(e);return r},!e.mode&&null==i.tickDecimals){var p=Math.max(0,-Math.floor(Math.log(e.delta)/Math.LN10)+1),d=e.tickGenerator(e);d.length>1&&/\..*0$/.test((d[1]-d[0]).toFixed(p))||(e.tickDecimals=p)}}}}function j(e){var n=e.options.ticks,r=[];null==n||"number"==typeof n&&n>0?r=e.tickGenerator(e):n&&(r=t.isFunction(n)?n(e):n);var i,o;for(e.ticks=[],i=0;i<r.length;++i){var a=null,s=r[i];"object"==typeof s?(o=+s[0],s.length>1&&(a=s[1])):o=+s,null==a&&(a=e.tickFormatter(o,e)),isNaN(o)||e.ticks.push({v:o,label:a})}}function A(t,e){t.options.autoscaleMargin&&e.length>0&&(null==t.options.min&&(t.min=Math.min(t.min,e[0].v)),null==t.options.max&&e.length>1&&(t.max=Math.max(t.max,e[e.length-1].v)))}function D(){ot.clear(),s(vt.drawBackground,[ut]);var t=it.grid;t.show&&t.backgroundColor&&O(),t.show&&!t.aboveData&&I();for(var e=0;e<rt.length;++e)s(vt.drawSeries,[ut,rt[e]]),N(rt[e]);s(vt.draw,[ut]),t.show&&t.aboveData&&I(),ot.render(),G()}function M(t,e){for(var n,r,i,o,a=p(),s=0;s<a.length;++s)if(n=a[s],n.direction==e&&(o=e+n.n+"axis",t[o]||1!=n.n||(o=e+"axis"),t[o])){r=t[o].from,i=t[o].to;break}if(t[o]||(n="x"==e?ct[0]:ft[0],r=t[e+"1"],i=t[e+"2"]),null!=r&&null!=i&&r>i){var u=r;r=i,i=u}return{from:r,to:i,axis:n}}function O(){ut.save(),ut.translate(ht.left,ht.top),ut.fillStyle=nt(it.grid.backgroundColor,dt,0,"rgba(255, 255, 255, 0)"),ut.fillRect(0,0,pt,dt),ut.restore()}function I(){var e,n,r,i;ut.save(),ut.translate(ht.left,ht.top);var o=it.grid.markings;if(o)for(t.isFunction(o)&&(n=mt.getAxes(),n.xmin=n.xaxis.min,n.xmax=n.xaxis.max,n.ymin=n.yaxis.min,n.ymax=n.yaxis.max,o=o(n)),e=0;e<o.length;++e){var a=o[e],s=M(a,"x"),u=M(a,"y");if(null==s.from&&(s.from=s.axis.min),null==s.to&&(s.to=s.axis.max),null==u.from&&(u.from=u.axis.min),null==u.to&&(u.to=u.axis.max),!(s.to<s.axis.min||s.from>s.axis.max||u.to<u.axis.min||u.from>u.axis.max)){s.from=Math.max(s.from,s.axis.min),s.to=Math.min(s.to,s.axis.max),u.from=Math.max(u.from,u.axis.min),u.to=Math.min(u.to,u.axis.max);var l=s.from===s.to,c=u.from===u.to;if(!l||!c)if(s.from=Math.floor(s.axis.p2c(s.from)),s.to=Math.floor(s.axis.p2c(s.to)),u.from=Math.floor(u.axis.p2c(u.from)),u.to=Math.floor(u.axis.p2c(u.to)),l||c){var f=a.lineWidth||it.grid.markingsLineWidth,h=f%2?.5:0;ut.beginPath(),ut.strokeStyle=a.color||it.grid.markingsColor,ut.lineWidth=f,l?(ut.moveTo(s.to+h,u.from),ut.lineTo(s.to+h,u.to)):(ut.moveTo(s.from,u.to+h),ut.lineTo(s.to,u.to+h)),ut.stroke()}else ut.fillStyle=a.color||it.grid.markingsColor,ut.fillRect(s.from,u.to,s.to-s.from,u.from-u.to)}}n=p(),r=it.grid.borderWidth;for(var d=0;d<n.length;++d){var v,m,g,y,_=n[d],b=_.box,w=_.tickLength;if(_.show&&0!=_.ticks.length){for(ut.lineWidth=1,"x"==_.direction?(v=0,m="full"==w?"top"==_.position?0:dt:b.top-ht.top+("top"==_.position?b.height:0)):(m=0,v="full"==w?"left"==_.position?0:pt:b.left-ht.left+("left"==_.position?b.width:0)),_.innermost||(ut.strokeStyle=_.options.color,ut.beginPath(),g=y=0,"x"==_.direction?g=pt+1:y=dt+1,1==ut.lineWidth&&("x"==_.direction?m=Math.floor(m)+.5:v=Math.floor(v)+.5),ut.moveTo(v,m),ut.lineTo(v+g,m+y),ut.stroke()),ut.strokeStyle=_.options.tickColor,ut.beginPath(),e=0;e<_.ticks.length;++e){var x=_.ticks[e].v;g=y=0,isNaN(x)||x<_.min||x>_.max||"full"==w&&("object"==typeof r&&r[_.position]>0||r>0)&&(x==_.min||x==_.max)||("x"==_.direction?(v=_.p2c(x),y="full"==w?-dt:w,"top"==_.position&&(y=-y)):(m=_.p2c(x),g="full"==w?-pt:w,"left"==_.position&&(g=-g)),1==ut.lineWidth&&("x"==_.direction?v=Math.floor(v)+.5:m=Math.floor(m)+.5),ut.moveTo(v,m),ut.lineTo(v+g,m+y))}ut.stroke()}}r&&(i=it.grid.borderColor,"object"==typeof r||"object"==typeof i?("object"!=typeof r&&(r={top:r,right:r,bottom:r,left:r}),"object"!=typeof i&&(i={top:i,right:i,bottom:i,left:i}),r.top>0&&(ut.strokeStyle=i.top,ut.lineWidth=r.top,ut.beginPath(),ut.moveTo(0-r.left,0-r.top/2),ut.lineTo(pt,0-r.top/2),ut.stroke()),r.right>0&&(ut.strokeStyle=i.right,ut.lineWidth=r.right,ut.beginPath(),ut.moveTo(pt+r.right/2,0-r.top),ut.lineTo(pt+r.right/2,dt),ut.stroke()),r.bottom>0&&(ut.strokeStyle=i.bottom,ut.lineWidth=r.bottom,ut.beginPath(),ut.moveTo(pt+r.right,dt+r.bottom/2),ut.lineTo(0,dt+r.bottom/2),ut.stroke()),r.left>0&&(ut.strokeStyle=i.left,ut.lineWidth=r.left,ut.beginPath(),ut.moveTo(0-r.left/2,dt+r.bottom),ut.lineTo(0-r.left/2,0),ut.stroke())):(ut.lineWidth=r,ut.strokeStyle=it.grid.borderColor,ut.strokeRect(-r/2,-r/2,pt+r,dt+r))),ut.restore()}function P(){t.each(p(),function(t,e){var n,r,i,o,a,s=e.box,u=e.direction+"Axis "+e.direction+e.n+"Axis",l="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+u,c=e.options.font||"flot-tick-label tickLabel";if(ot.removeText(l),e.show&&0!=e.ticks.length)for(var f=0;f<e.ticks.length;++f)n=e.ticks[f],!n.label||n.v<e.min||n.v>e.max||("x"==e.direction?(o="center",r=ht.left+e.p2c(n.v),"bottom"==e.position?i=s.top+s.padding:(i=s.top+s.height-s.padding,a="bottom")):(a="middle",i=ht.top+e.p2c(n.v),"left"==e.position?(r=s.left+s.width-s.padding,o="right"):r=s.left+s.padding),ot.addText(l,r,i,n.label,c,null,null,o,a))})}function N(t){t.lines.show&&R(t),t.bars.show&&q(t),t.points.show&&L(t)}function R(t){function e(t,e,n,r,i){var o=t.points,a=t.pointsize,s=null,u=null;ut.beginPath();for(var l=a;l<o.length;l+=a){var c=o[l-a],f=o[l-a+1],h=o[l],p=o[l+1];if(null!=c&&null!=h){if(p>=f&&f<i.min){if(p<i.min)continue;c=(i.min-f)/(p-f)*(h-c)+c,f=i.min}else if(f>=p&&p<i.min){if(f<i.min)continue;h=(i.min-f)/(p-f)*(h-c)+c,p=i.min}if(f>=p&&f>i.max){if(p>i.max)continue;c=(i.max-f)/(p-f)*(h-c)+c,f=i.max}else if(p>=f&&p>i.max){if(f>i.max)continue;h=(i.max-f)/(p-f)*(h-c)+c,p=i.max}if(h>=c&&c<r.min){if(h<r.min)continue;f=(r.min-c)/(h-c)*(p-f)+f,c=r.min}else if(c>=h&&h<r.min){if(c<r.min)continue;p=(r.min-c)/(h-c)*(p-f)+f,h=r.min}if(c>=h&&c>r.max){if(h>r.max)continue;f=(r.max-c)/(h-c)*(p-f)+f,c=r.max}else if(h>=c&&h>r.max){if(c>r.max)continue;p=(r.max-c)/(h-c)*(p-f)+f,h=r.max}(c!=s||f!=u)&&ut.moveTo(r.p2c(c)+e,i.p2c(f)+n),s=h,u=p,ut.lineTo(r.p2c(h)+e,i.p2c(p)+n)}}ut.stroke()}function n(t,e,n){for(var r=t.points,i=t.pointsize,o=Math.min(Math.max(0,n.min),n.max),a=0,s=!1,u=1,l=0,c=0;;){if(i>0&&a>r.length+i)break;a+=i;var f=r[a-i],h=r[a-i+u],p=r[a],d=r[a+u];if(s){if(i>0&&null!=f&&null==p){c=a,i=-i,u=2;continue}if(0>i&&a==l+i){ut.fill(),s=!1,i=-i,u=1,a=l=c+i;continue}}if(null!=f&&null!=p){if(p>=f&&f<e.min){if(p<e.min)continue;h=(e.min-f)/(p-f)*(d-h)+h,f=e.min}else if(f>=p&&p<e.min){if(f<e.min)continue;d=(e.min-f)/(p-f)*(d-h)+h,p=e.min}if(f>=p&&f>e.max){if(p>e.max)continue;h=(e.max-f)/(p-f)*(d-h)+h,f=e.max}else if(p>=f&&p>e.max){if(f>e.max)continue;d=(e.max-f)/(p-f)*(d-h)+h,p=e.max}if(s||(ut.beginPath(),ut.moveTo(e.p2c(f),n.p2c(o)),s=!0),h>=n.max&&d>=n.max)ut.lineTo(e.p2c(f),n.p2c(n.max)),ut.lineTo(e.p2c(p),n.p2c(n.max));else if(h<=n.min&&d<=n.min)ut.lineTo(e.p2c(f),n.p2c(n.min)),ut.lineTo(e.p2c(p),n.p2c(n.min));else{var v=f,m=p;d>=h&&h<n.min&&d>=n.min?(f=(n.min-h)/(d-h)*(p-f)+f,h=n.min):h>=d&&d<n.min&&h>=n.min&&(p=(n.min-h)/(d-h)*(p-f)+f,d=n.min),h>=d&&h>n.max&&d<=n.max?(f=(n.max-h)/(d-h)*(p-f)+f,h=n.max):d>=h&&d>n.max&&h<=n.max&&(p=(n.max-h)/(d-h)*(p-f)+f,d=n.max),f!=v&&ut.lineTo(e.p2c(v),n.p2c(h)),ut.lineTo(e.p2c(f),n.p2c(h)),ut.lineTo(e.p2c(p),n.p2c(d)),p!=m&&(ut.lineTo(e.p2c(p),n.p2c(d)),ut.lineTo(e.p2c(m),n.p2c(d)))}}}}ut.save(),ut.translate(ht.left,ht.top),ut.lineJoin="round";var r=t.lines.lineWidth,i=t.shadowSize;if(r>0&&i>0){ut.lineWidth=i,ut.strokeStyle="rgba(0,0,0,0.1)";var o=Math.PI/18;e(t.datapoints,Math.sin(o)*(r/2+i/2),Math.cos(o)*(r/2+i/2),t.xaxis,t.yaxis),ut.lineWidth=i/2,e(t.datapoints,Math.sin(o)*(r/2+i/4),Math.cos(o)*(r/2+i/4),t.xaxis,t.yaxis)}ut.lineWidth=r,ut.strokeStyle=t.color;var a=H(t.lines,t.color,0,dt);a&&(ut.fillStyle=a,n(t.datapoints,t.xaxis,t.yaxis)),r>0&&e(t.datapoints,0,0,t.xaxis,t.yaxis),ut.restore()}function L(t){function e(t,e,n,r,i,o,a,s){for(var u=t.points,l=t.pointsize,c=0;c<u.length;c+=l){var f=u[c],h=u[c+1];null==f||f<o.min||f>o.max||h<a.min||h>a.max||(ut.beginPath(),f=o.p2c(f),h=a.p2c(h)+r,"circle"==s?ut.arc(f,h,e,0,i?Math.PI:2*Math.PI,!1):s(ut,f,h,e,i),ut.closePath(),n&&(ut.fillStyle=n,ut.fill()),ut.stroke())}}ut.save(),ut.translate(ht.left,ht.top);var n=t.points.lineWidth,r=t.shadowSize,i=t.points.radius,o=t.points.symbol;if(0==n&&(n=1e-4),n>0&&r>0){var a=r/2;ut.lineWidth=a,ut.strokeStyle="rgba(0,0,0,0.1)",e(t.datapoints,i,null,a+a/2,!0,t.xaxis,t.yaxis,o),ut.strokeStyle="rgba(0,0,0,0.2)",e(t.datapoints,i,null,a/2,!0,t.xaxis,t.yaxis,o)}ut.lineWidth=n,ut.strokeStyle=t.color,e(t.datapoints,i,H(t.points,t.color),0,!1,t.xaxis,t.yaxis,o),ut.restore()}function z(t,e,n,r,i,o,a,s,u,l,c){var f,h,p,d,v,m,g,y,_;l?(y=m=g=!0,v=!1,f=n,h=t,d=e+r,p=e+i,f>h&&(_=h,h=f,f=_,v=!0,m=!1)):(v=m=g=!0,y=!1,f=t+r,h=t+i,p=n,d=e,p>d&&(_=d,d=p,p=_,y=!0,g=!1)),h<a.min||f>a.max||d<s.min||p>s.max||(f<a.min&&(f=a.min,v=!1),h>a.max&&(h=a.max,m=!1),p<s.min&&(p=s.min,y=!1),d>s.max&&(d=s.max,g=!1),f=a.p2c(f),p=s.p2c(p),h=a.p2c(h),d=s.p2c(d),o&&(u.fillStyle=o(p,d),u.fillRect(f,d,h-f,p-d)),c>0&&(v||m||g||y)&&(u.beginPath(),u.moveTo(f,p),v?u.lineTo(f,d):u.moveTo(f,d),g?u.lineTo(h,d):u.moveTo(h,d),m?u.lineTo(h,p):u.moveTo(h,p),y?u.lineTo(f,p):u.moveTo(f,p),u.stroke()))}function q(t){function e(e,n,r,i,o,a){for(var s=e.points,u=e.pointsize,l=0;l<s.length;l+=u)null!=s[l]&&z(s[l],s[l+1],s[l+2],n,r,i,o,a,ut,t.bars.horizontal,t.bars.lineWidth)}ut.save(),ut.translate(ht.left,ht.top),ut.lineWidth=t.bars.lineWidth,ut.strokeStyle=t.color;var n;switch(t.bars.align){case"left":n=0;break;case"right":n=-t.bars.barWidth;break;default:n=-t.bars.barWidth/2}var r=t.bars.fill?function(e,n){return H(t.bars,t.color,e,n)}:null;e(t.datapoints,n,n+t.bars.barWidth,r,t.xaxis,t.yaxis),
ut.restore()}function H(e,n,r,i){var o=e.fill;if(!o)return null;if(e.fillColor)return nt(e.fillColor,r,i,n);var a=t.color.parse(n);return a.a="number"==typeof o?o:.4,a.normalize(),a.toString()}function U(){if(null!=it.legend.container?t(it.legend.container).html(""):n.find(".legend").remove(),it.legend.show){for(var e,r,i=[],o=[],a=!1,s=it.legend.labelFormatter,u=0;u<rt.length;++u)e=rt[u],e.label&&(r=s?s(e.label,e):e.label,r&&o.push({label:r,color:e.color}));if(it.legend.sorted)if(t.isFunction(it.legend.sorted))o.sort(it.legend.sorted);else if("reverse"==it.legend.sorted)o.reverse();else{var l="descending"!=it.legend.sorted;o.sort(function(t,e){return t.label==e.label?0:t.label<e.label!=l?1:-1})}for(var u=0;u<o.length;++u){var c=o[u];u%it.legend.noColumns==0&&(a&&i.push("</tr>"),i.push("<tr>"),a=!0),i.push('<td class="legendColorBox"><div style="border:1px solid '+it.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+c.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+c.label+"</td>")}if(a&&i.push("</tr>"),0!=i.length){var f='<table style="font-size:smaller;color:'+it.grid.color+'">'+i.join("")+"</table>";if(null!=it.legend.container)t(it.legend.container).html(f);else{var h="",p=it.legend.position,d=it.legend.margin;null==d[0]&&(d=[d,d]),"n"==p.charAt(0)?h+="top:"+(d[1]+ht.top)+"px;":"s"==p.charAt(0)&&(h+="bottom:"+(d[1]+ht.bottom)+"px;"),"e"==p.charAt(1)?h+="right:"+(d[0]+ht.right)+"px;":"w"==p.charAt(1)&&(h+="left:"+(d[0]+ht.left)+"px;");var v=t('<div class="legend">'+f.replace('style="','style="position:absolute;'+h+";")+"</div>").appendTo(n);if(0!=it.legend.backgroundOpacity){var m=it.legend.backgroundColor;null==m&&(m=it.grid.backgroundColor,m=m&&"string"==typeof m?t.color.parse(m):t.color.extract(v,"background-color"),m.a=1,m=m.toString());var g=v.children();t('<div style="position:absolute;width:'+g.width()+"px;height:"+g.height()+"px;"+h+"background-color:"+m+';"> </div>').prependTo(v).css("opacity",it.legend.backgroundOpacity)}}}}}function W(t,e,n){var r,i,o,a=it.grid.mouseActiveRadius,s=a*a+1,u=null;for(r=rt.length-1;r>=0;--r)if(n(rt[r])){var l=rt[r],c=l.xaxis,f=l.yaxis,h=l.datapoints.points,p=c.c2p(t),d=f.c2p(e),v=a/c.scale,m=a/f.scale;if(o=l.datapoints.pointsize,c.options.inverseTransform&&(v=Number.MAX_VALUE),f.options.inverseTransform&&(m=Number.MAX_VALUE),l.lines.show||l.points.show)for(i=0;i<h.length;i+=o){var g=h[i],y=h[i+1];if(null!=g&&!(g-p>v||-v>g-p||y-d>m||-m>y-d)){var _=Math.abs(c.p2c(g)-t),b=Math.abs(f.p2c(y)-e),w=_*_+b*b;s>w&&(s=w,u=[r,i/o])}}if(l.bars.show&&!u){var x,$;switch(l.bars.align){case"left":x=0;break;case"right":x=-l.bars.barWidth;break;default:x=-l.bars.barWidth/2}for($=x+l.bars.barWidth,i=0;i<h.length;i+=o){var g=h[i],y=h[i+1],k=h[i+2];null!=g&&(rt[r].bars.horizontal?p<=Math.max(k,g)&&p>=Math.min(k,g)&&d>=y+x&&y+$>=d:p>=g+x&&g+$>=p&&d>=Math.min(k,y)&&d<=Math.max(k,y))&&(u=[r,i/o])}}}return u?(r=u[0],i=u[1],o=rt[r].datapoints.pointsize,{datapoint:rt[r].datapoints.points.slice(i*o,(i+1)*o),dataIndex:i,series:rt[r],seriesIndex:r}):null}function V(t){it.grid.hoverable&&K("plothover",t,function(t){return 0!=t.hoverable})}function B(t){it.grid.hoverable&&K("plothover",t,function(t){return!1})}function Y(t){K("plotclick",t,function(t){return 0!=t.clickable})}function K(t,e,r){var i=st.offset(),o=e.pageX-i.left-ht.left,a=e.pageY-i.top-ht.top,s=d({left:o,top:a});s.pageX=e.pageX,s.pageY=e.pageY;var u=W(o,a,r);if(u&&(u.pageX=parseInt(u.series.xaxis.p2c(u.datapoint[0])+i.left+ht.left,10),u.pageY=parseInt(u.series.yaxis.p2c(u.datapoint[1])+i.top+ht.top,10)),it.grid.autoHighlight){for(var l=0;l<gt.length;++l){var c=gt[l];c.auto!=t||u&&c.series==u.series&&c.point[0]==u.datapoint[0]&&c.point[1]==u.datapoint[1]||Q(c.series,c.point)}u&&J(u.series,u.datapoint,t)}n.trigger(t,[s,u])}function G(){var t=it.interaction.redrawOverlayInterval;return-1==t?void X():void(yt||(yt=setTimeout(X,t)))}function X(){yt=null,lt.save(),at.clear(),lt.translate(ht.left,ht.top);var t,e;for(t=0;t<gt.length;++t)e=gt[t],e.series.bars.show?et(e.series,e.point):tt(e.series,e.point);lt.restore(),s(vt.drawOverlay,[lt])}function J(t,e,n){if("number"==typeof t&&(t=rt[t]),"number"==typeof e){var r=t.datapoints.pointsize;e=t.datapoints.points.slice(r*e,r*(e+1))}var i=Z(t,e);-1==i?(gt.push({series:t,point:e,auto:n}),G()):n||(gt[i].auto=!1)}function Q(t,e){if(null==t&&null==e)return gt=[],void G();if("number"==typeof t&&(t=rt[t]),"number"==typeof e){var n=t.datapoints.pointsize;e=t.datapoints.points.slice(n*e,n*(e+1))}var r=Z(t,e);-1!=r&&(gt.splice(r,1),G())}function Z(t,e){for(var n=0;n<gt.length;++n){var r=gt[n];if(r.series==t&&r.point[0]==e[0]&&r.point[1]==e[1])return n}return-1}function tt(e,n){var r=n[0],i=n[1],o=e.xaxis,a=e.yaxis,s="string"==typeof e.highlightColor?e.highlightColor:t.color.parse(e.color).scale("a",.5).toString();if(!(r<o.min||r>o.max||i<a.min||i>a.max)){var u=e.points.radius+e.points.lineWidth/2;lt.lineWidth=u,lt.strokeStyle=s;var l=1.5*u;r=o.p2c(r),i=a.p2c(i),lt.beginPath(),"circle"==e.points.symbol?lt.arc(r,i,l,0,2*Math.PI,!1):e.points.symbol(lt,r,i,l,!1),lt.closePath(),lt.stroke()}}function et(e,n){var r,i="string"==typeof e.highlightColor?e.highlightColor:t.color.parse(e.color).scale("a",.5).toString(),o=i;switch(e.bars.align){case"left":r=0;break;case"right":r=-e.bars.barWidth;break;default:r=-e.bars.barWidth/2}lt.lineWidth=e.bars.lineWidth,lt.strokeStyle=i,z(n[0],n[1],n[2]||0,r,r+e.bars.barWidth,function(){return o},e.xaxis,e.yaxis,lt,e.bars.horizontal,e.bars.lineWidth)}function nt(e,n,r,i){if("string"==typeof e)return e;for(var o=ut.createLinearGradient(0,r,0,n),a=0,s=e.colors.length;s>a;++a){var u=e.colors[a];if("string"!=typeof u){var l=t.color.parse(i);null!=u.brightness&&(l=l.scale("rgb",u.brightness)),null!=u.opacity&&(l.a*=u.opacity),u=l.toString()}o.addColorStop(a/(s-1),u)}return o}var rt=[],it={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},ot=null,at=null,st=null,ut=null,lt=null,ct=[],ft=[],ht={left:0,right:0,top:0,bottom:0},pt=0,dt=0,vt={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},mt=this;mt.setData=c,mt.setupGrid=E,mt.draw=D,mt.getPlaceholder=function(){return n},mt.getCanvas=function(){return ot.element},mt.getPlotOffset=function(){return ht},mt.width=function(){return pt},mt.height=function(){return dt},mt.offset=function(){var t=st.offset();return t.left+=ht.left,t.top+=ht.top,t},mt.getData=function(){return rt},mt.getAxes=function(){var e={};return t.each(ct.concat(ft),function(t,n){n&&(e[n.direction+(1!=n.n?n.n:"")+"axis"]=n)}),e},mt.getXAxes=function(){return ct},mt.getYAxes=function(){return ft},mt.c2p=d,mt.p2c=v,mt.getOptions=function(){return it},mt.highlight=J,mt.unhighlight=Q,mt.triggerRedrawOverlay=G,mt.pointOffset=function(t){return{left:parseInt(ct[h(t,"x")-1].p2c(+t.x)+ht.left,10),top:parseInt(ft[h(t,"y")-1].p2c(+t.y)+ht.top,10)}},mt.shutdown=w,mt.destroy=function(){w(),n.removeData("plot").empty(),rt=[],it=null,ot=null,at=null,st=null,ut=null,lt=null,ct=[],ft=[],vt=null,gt=[],mt=null},mt.resize=function(){var t=n.width(),e=n.height();ot.resize(t,e),at.resize(t,e)},mt.hooks=vt,u(mt),l(o),_(),c(i),E(),D(),b();var gt=[],yt=null}function r(t,e){return e*Math.floor(t/e)}var i=Object.prototype.hasOwnProperty;t.fn.detach||(t.fn.detach=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})}),e.prototype.resize=function(t,e){if(0>=t||0>=e)throw new Error("Invalid dimensions for plot, width = "+t+", height = "+e);var n=this.element,r=this.context,i=this.pixelRatio;this.width!=t&&(n.width=t*i,n.style.width=t+"px",this.width=t),this.height!=e&&(n.height=e*i,n.style.height=e+"px",this.height=e),r.restore(),r.save(),r.scale(i,i)},e.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},e.prototype.render=function(){var t=this._textCache;for(var e in t)if(i.call(t,e)){var n=this.getTextLayer(e),r=t[e];n.hide();for(var o in r)if(i.call(r,o)){var a=r[o];for(var s in a)if(i.call(a,s)){for(var u,l=a[s].positions,c=0;u=l[c];c++)u.active?u.rendered||(n.append(u.element),u.rendered=!0):(l.splice(c--,1),u.rendered&&u.element.detach());0==l.length&&delete a[s]}}n.show()}},e.prototype.getTextLayer=function(e){var n=this.text[e];return null==n&&(null==this.textContainer&&(this.textContainer=t("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),n=this.text[e]=t("<div></div>").addClass(e).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),n},e.prototype.getTextInfo=function(e,n,r,i,o){var a,s,u,l;if(n=""+n,a="object"==typeof r?r.style+" "+r.variant+" "+r.weight+" "+r.size+"px/"+r.lineHeight+"px "+r.family:r,s=this._textCache[e],null==s&&(s=this._textCache[e]={}),u=s[a],null==u&&(u=s[a]={}),l=u[n],null==l){var c=t("<div></div>").html(n).css({position:"absolute","max-width":o,top:-9999}).appendTo(this.getTextLayer(e));"object"==typeof r?c.css({font:a,color:r.color}):"string"==typeof r&&c.addClass(r),l=u[n]={width:c.outerWidth(!0),height:c.outerHeight(!0),element:c,positions:[]},c.detach()}return l},e.prototype.addText=function(t,e,n,r,i,o,a,s,u){var l=this.getTextInfo(t,r,i,o,a),c=l.positions;"center"==s?e-=l.width/2:"right"==s&&(e-=l.width),"middle"==u?n-=l.height/2:"bottom"==u&&(n-=l.height);for(var f,h=0;f=c[h];h++)if(f.x==e&&f.y==n)return void(f.active=!0);f={active:!0,rendered:!1,element:c.length?l.element.clone():l.element,x:e,y:n},c.push(f),f.element.css({top:Math.round(n),left:Math.round(e),"text-align":s})},e.prototype.removeText=function(t,e,n,r,o,a){if(null==r){var s=this._textCache[t];if(null!=s)for(var u in s)if(i.call(s,u)){var l=s[u];for(var c in l)if(i.call(l,c))for(var f,h=l[c].positions,p=0;f=h[p];p++)f.active=!1}}else for(var f,h=this.getTextInfo(t,r,o,a).positions,p=0;f=h[p];p++)f.x==e&&f.y==n&&(f.active=!1)},t.plot=function(e,r,i){var o=new n(t(e),r,i,t.plot.plugins);return o},t.plot.version="0.8.3",t.plot.plugins=[],t.fn.plot=function(e,n){return this.each(function(){t.plot(this,e,n)})}}(jQuery),function(t){function e(e){function i(e,n,r){$||($=!0,g=e.getCanvas(),y=t(g).parent(),_=e.getOptions(),e.setData(o(e.getData())))}function o(e){for(var n=0,r=0,i=0,o=_.series.pie.combine.color,a=[],s=0;s<e.length;++s){var u=e[s].data;t.isArray(u)&&1==u.length&&(u=u[0]),t.isArray(u)?!isNaN(parseFloat(u[1]))&&isFinite(u[1])?u[1]=+u[1]:u[1]=0:u=!isNaN(parseFloat(u))&&isFinite(u)?[1,+u]:[1,0],e[s].data=[u]}for(var s=0;s<e.length;++s)n+=e[s].data[0][1];for(var s=0;s<e.length;++s){var u=e[s].data[0][1];u/n<=_.series.pie.combine.threshold&&(r+=u,i++,o||(o=e[s].color))}for(var s=0;s<e.length;++s){var u=e[s].data[0][1];(2>i||u/n>_.series.pie.combine.threshold)&&a.push(t.extend(e[s],{data:[[1,u]],color:e[s].color,label:e[s].label,angle:u*Math.PI*2/n,percent:u/(n/100)}))}return i>1&&a.push({data:[[1,r]],color:o,label:_.series.pie.combine.label,angle:r*Math.PI*2/n,percent:r/(n/100)}),a}function a(e,i){function o(){k.clearRect(0,0,l,c),y.children().filter(".pieLabel, .pieLabelBackground").remove()}function a(){var t=_.series.pie.shadow.left,e=_.series.pie.shadow.top,n=10,r=_.series.pie.shadow.alpha,i=_.series.pie.radius>1?_.series.pie.radius:b*_.series.pie.radius;if(!(i>=l/2-t||i*_.series.pie.tilt>=c/2-e||n>=i)){k.save(),k.translate(t,e),k.globalAlpha=r,k.fillStyle="#000",k.translate(w,x),k.scale(1,_.series.pie.tilt);for(var o=1;n>=o;o++)k.beginPath(),k.arc(0,0,i,0,2*Math.PI,!1),k.fill(),i-=o;k.restore()}}function u(){function e(t,e,n){0>=t||isNaN(t)||(n?k.fillStyle=e:(k.strokeStyle=e,k.lineJoin="round"),k.beginPath(),Math.abs(t-2*Math.PI)>1e-9&&k.moveTo(0,0),k.arc(0,0,i,o,o+t/2,!1),k.arc(0,0,i,o+t/2,o+t,!1),k.closePath(),o+=t,n?k.fill():k.stroke())}function n(){function e(e,n,r){if(0==e.data[0][1])return!0;var o,a=_.legend.labelFormatter,s=_.series.pie.label.formatter;o=a?a(e.label,e):e.label,s&&(o=s(o,e));var u=(n+e.angle+n)/2,f=w+Math.round(Math.cos(u)*i),h=x+Math.round(Math.sin(u)*i)*_.series.pie.tilt,p="<span class='pieLabel' id='pieLabel"+r+"' style='position:absolute;top:"+h+"px;left:"+f+"px;'>"+o+"</span>";y.append(p);var d=y.children("#pieLabel"+r),v=h-d.height()/2,m=f-d.width()/2;if(d.css("top",v),d.css("left",m),0-v>0||0-m>0||c-(v+d.height())<0||l-(m+d.width())<0)return!1;if(0!=_.series.pie.label.background.opacity){var g=_.series.pie.label.background.color;null==g&&(g=e.color);var b="top:"+v+"px;left:"+m+"px;";t("<div class='pieLabelBackground' style='position:absolute;width:"+d.width()+"px;height:"+d.height()+"px;"+b+"background-color:"+g+";'></div>").css("opacity",_.series.pie.label.background.opacity).insertBefore(d)}return!0}for(var n=r,i=_.series.pie.label.radius>1?_.series.pie.label.radius:b*_.series.pie.label.radius,o=0;o<h.length;++o){if(h[o].percent>=100*_.series.pie.label.threshold&&!e(h[o],n,o))return!1;n+=h[o].angle}return!0}var r=Math.PI*_.series.pie.startAngle,i=_.series.pie.radius>1?_.series.pie.radius:b*_.series.pie.radius;k.save(),k.translate(w,x),k.scale(1,_.series.pie.tilt),k.save();for(var o=r,a=0;a<h.length;++a)h[a].startAngle=o,e(h[a].angle,h[a].color,!0);if(k.restore(),_.series.pie.stroke.width>0){k.save(),k.lineWidth=_.series.pie.stroke.width,o=r;for(var a=0;a<h.length;++a)e(h[a].angle,_.series.pie.stroke.color,!1);k.restore()}return s(k),k.restore(),_.series.pie.label.show?n():!0}if(y){var l=e.getPlaceholder().width(),c=e.getPlaceholder().height(),f=y.children().filter(".legend").children().width()||0;k=i,$=!1,b=Math.min(l,c/_.series.pie.tilt)/2,x=c/2+_.series.pie.offset.top,w=l/2,"auto"==_.series.pie.offset.left?(_.legend.position.match("w")?w+=f/2:w-=f/2,b>w?w=b:w>l-b&&(w=l-b)):w+=_.series.pie.offset.left;var h=e.getData(),p=0;do p>0&&(b*=r),p+=1,o(),_.series.pie.tilt<=.8&&a();while(!u()&&n>p);p>=n&&(o(),y.prepend("<div class='error'>Could not draw pie with labels contained inside canvas</div>")),e.setSeries&&e.insertLegend&&(e.setSeries(h),e.insertLegend())}}function s(t){if(_.series.pie.innerRadius>0){t.save();var e=_.series.pie.innerRadius>1?_.series.pie.innerRadius:b*_.series.pie.innerRadius;t.globalCompositeOperation="destination-out",t.beginPath(),t.fillStyle=_.series.pie.stroke.color,t.arc(0,0,e,0,2*Math.PI,!1),t.fill(),t.closePath(),t.restore(),t.save(),t.beginPath(),t.strokeStyle=_.series.pie.stroke.color,t.arc(0,0,e,0,2*Math.PI,!1),t.stroke(),t.closePath(),t.restore()}}function u(t,e){for(var n=!1,r=-1,i=t.length,o=i-1;++r<i;o=r)(t[r][1]<=e[1]&&e[1]<t[o][1]||t[o][1]<=e[1]&&e[1]<t[r][1])&&e[0]<(t[o][0]-t[r][0])*(e[1]-t[r][1])/(t[o][1]-t[r][1])+t[r][0]&&(n=!n);return n}function l(t,n){for(var r,i,o=e.getData(),a=e.getOptions(),s=a.series.pie.radius>1?a.series.pie.radius:b*a.series.pie.radius,l=0;l<o.length;++l){var c=o[l];if(c.pie.show){if(k.save(),k.beginPath(),k.moveTo(0,0),k.arc(0,0,s,c.startAngle,c.startAngle+c.angle/2,!1),k.arc(0,0,s,c.startAngle+c.angle/2,c.startAngle+c.angle,!1),k.closePath(),r=t-w,i=n-x,k.isPointInPath){if(k.isPointInPath(t-w,n-x))return k.restore(),{datapoint:[c.percent,c.data],dataIndex:0,series:c,seriesIndex:l}}else{var f=s*Math.cos(c.startAngle),h=s*Math.sin(c.startAngle),p=s*Math.cos(c.startAngle+c.angle/4),d=s*Math.sin(c.startAngle+c.angle/4),v=s*Math.cos(c.startAngle+c.angle/2),m=s*Math.sin(c.startAngle+c.angle/2),g=s*Math.cos(c.startAngle+c.angle/1.5),y=s*Math.sin(c.startAngle+c.angle/1.5),_=s*Math.cos(c.startAngle+c.angle),$=s*Math.sin(c.startAngle+c.angle),S=[[0,0],[f,h],[p,d],[v,m],[g,y],[_,$]],C=[r,i];if(u(S,C))return k.restore(),{datapoint:[c.percent,c.data],dataIndex:0,series:c,seriesIndex:l}}k.restore()}}return null}function c(t){h("plothover",t)}function f(t){h("plotclick",t)}function h(t,n){var r=e.offset(),i=parseInt(n.pageX-r.left),o=parseInt(n.pageY-r.top),a=l(i,o);if(_.grid.autoHighlight)for(var s=0;s<S.length;++s){var u=S[s];u.auto!=t||a&&u.series==a.series||d(u.series)}a&&p(a.series,t);var c={pageX:n.pageX,pageY:n.pageY};y.trigger(t,[c,a])}function p(t,n){var r=v(t);-1==r?(S.push({series:t,auto:n}),e.triggerRedrawOverlay()):n||(S[r].auto=!1)}function d(t){null==t&&(S=[],e.triggerRedrawOverlay());var n=v(t);-1!=n&&(S.splice(n,1),e.triggerRedrawOverlay())}function v(t){for(var e=0;e<S.length;++e){var n=S[e];if(n.series==t)return e}return-1}function m(t,e){function n(t){t.angle<=0||isNaN(t.angle)||(e.fillStyle="rgba(255, 255, 255, "+r.series.pie.highlight.opacity+")",e.beginPath(),Math.abs(t.angle-2*Math.PI)>1e-9&&e.moveTo(0,0),e.arc(0,0,i,t.startAngle,t.startAngle+t.angle/2,!1),e.arc(0,0,i,t.startAngle+t.angle/2,t.startAngle+t.angle,!1),e.closePath(),e.fill())}var r=t.getOptions(),i=r.series.pie.radius>1?r.series.pie.radius:b*r.series.pie.radius;e.save(),e.translate(w,x),e.scale(1,r.series.pie.tilt);for(var o=0;o<S.length;++o)n(S[o].series);s(e),e.restore()}var g=null,y=null,_=null,b=null,w=null,x=null,$=!1,k=null,S=[];e.hooks.processOptions.push(function(t,e){e.series.pie.show&&(e.grid.show=!1,"auto"==e.series.pie.label.show&&(e.legend.show?e.series.pie.label.show=!1:e.series.pie.label.show=!0),"auto"==e.series.pie.radius&&(e.series.pie.label.show?e.series.pie.radius=.75:e.series.pie.radius=1),e.series.pie.tilt>1?e.series.pie.tilt=1:e.series.pie.tilt<0&&(e.series.pie.tilt=0))}),e.hooks.bindEvents.push(function(t,e){var n=t.getOptions();n.series.pie.show&&(n.grid.hoverable&&e.unbind("mousemove").mousemove(c),n.grid.clickable&&e.unbind("click").click(f))}),e.hooks.processDatapoints.push(function(t,e,n,r){var o=t.getOptions();o.series.pie.show&&i(t,e,n,r)}),e.hooks.drawOverlay.push(function(t,e){var n=t.getOptions();n.series.pie.show&&m(t,e)}),e.hooks.draw.push(function(t,e){var n=t.getOptions();n.series.pie.show&&a(t,e)})}var n=10,r=.95,i={series:{pie:{show:!1,radius:"auto",innerRadius:0,startAngle:1.5,tilt:1,shadow:{left:5,top:15,alpha:.02},offset:{top:0,left:"auto"},stroke:{color:"#fff",width:1},label:{show:"auto",formatter:function(t,e){return"<div style='font-size:x-small;text-align:center;padding:2px;color:"+e.color+";'>"+t+"<br/>"+Math.round(e.percent)+"%</div>"},radius:1,background:{color:null,opacity:0},threshold:0},combine:{threshold:-1,color:null,label:"Other"},highlight:{opacity:.5}}}};t.plot.plugins.push({init:e,options:i,name:"pie",version:"1.1"})}(jQuery),function(t){function e(t,e){return e*Math.floor(t/e)}function n(t,e,n,r){if("function"==typeof t.strftime)return t.strftime(e);var i=function(t,e){return t=""+t,e=""+(null==e?"0":e),1==t.length?e+t:t},o=[],a=!1,s=t.getHours(),u=12>s;null==n&&(n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),null==r&&(r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]);var l;l=s>12?s-12:0==s?12:s;for(var c=0;c<e.length;++c){var f=e.charAt(c);if(a){switch(f){case"a":f=""+r[t.getDay()];break;case"b":f=""+n[t.getMonth()];break;case"d":f=i(t.getDate());break;case"e":f=i(t.getDate()," ");break;case"h":case"H":f=i(s);break;case"I":f=i(l);break;case"l":f=i(l," ");break;case"m":f=i(t.getMonth()+1);break;case"M":f=i(t.getMinutes());break;case"q":f=""+(Math.floor(t.getMonth()/3)+1);break;case"S":f=i(t.getSeconds());break;case"y":f=i(t.getFullYear()%100);break;case"Y":f=""+t.getFullYear();break;case"p":f=u?"am":"pm";break;case"P":f=u?"AM":"PM";break;case"w":f=""+t.getDay()}o.push(f),a=!1}else"%"==f?a=!0:o.push(f)}return o.join("")}function r(t){function e(t,e,n,r){t[e]=function(){return n[r].apply(n,arguments)}}var n={date:t};void 0!=t.strftime&&e(n,"strftime",t,"strftime"),e(n,"getTime",t,"getTime"),e(n,"setTime",t,"setTime");for(var r=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"],i=0;i<r.length;i++)e(n,"get"+r[i],t,"getUTC"+r[i]),e(n,"set"+r[i],t,"setUTC"+r[i]);return n}function i(t,e){if("browser"==e.timezone)return new Date(t);if(e.timezone&&"utc"!=e.timezone){if("undefined"!=typeof timezoneJS&&"undefined"!=typeof timezoneJS.Date){var n=new timezoneJS.Date;return n.setTimezone(e.timezone),n.setTime(t),n}return r(new Date(t))}return r(new Date(t))}function o(r){r.hooks.processOptions.push(function(r,o){t.each(r.getAxes(),function(t,r){var o=r.options;"time"==o.mode&&(r.tickGenerator=function(t){var n=[],r=i(t.min,o),a=0,u=o.tickSize&&"quarter"===o.tickSize[1]||o.minTickSize&&"quarter"===o.minTickSize[1]?c:l;null!=o.minTickSize&&(a="number"==typeof o.tickSize?o.tickSize:o.minTickSize[0]*s[o.minTickSize[1]]);for(var f=0;f<u.length-1&&!(t.delta<(u[f][0]*s[u[f][1]]+u[f+1][0]*s[u[f+1][1]])/2&&u[f][0]*s[u[f][1]]>=a);++f);var h=u[f][0],p=u[f][1];if("year"==p){if(null!=o.minTickSize&&"year"==o.minTickSize[1])h=Math.floor(o.minTickSize[0]);else{var d=Math.pow(10,Math.floor(Math.log(t.delta/s.year)/Math.LN10)),v=t.delta/s.year/d;h=1.5>v?1:3>v?2:7.5>v?5:10,h*=d}1>h&&(h=1)}t.tickSize=o.tickSize||[h,p];var m=t.tickSize[0];p=t.tickSize[1];var g=m*s[p];"second"==p?r.setSeconds(e(r.getSeconds(),m)):"minute"==p?r.setMinutes(e(r.getMinutes(),m)):"hour"==p?r.setHours(e(r.getHours(),m)):"month"==p?r.setMonth(e(r.getMonth(),m)):"quarter"==p?r.setMonth(3*e(r.getMonth()/3,m)):"year"==p&&r.setFullYear(e(r.getFullYear(),m)),r.setMilliseconds(0),g>=s.minute&&r.setSeconds(0),g>=s.hour&&r.setMinutes(0),g>=s.day&&r.setHours(0),g>=4*s.day&&r.setDate(1),g>=2*s.month&&r.setMonth(e(r.getMonth(),3)),g>=2*s.quarter&&r.setMonth(e(r.getMonth(),6)),g>=s.year&&r.setMonth(0);var y,_=0,b=Number.NaN;do if(y=b,b=r.getTime(),n.push(b),"month"==p||"quarter"==p)if(1>m){r.setDate(1);var w=r.getTime();r.setMonth(r.getMonth()+("quarter"==p?3:1));var x=r.getTime();r.setTime(b+_*s.hour+(x-w)*m),_=r.getHours(),r.setHours(0)}else r.setMonth(r.getMonth()+m*("quarter"==p?3:1));else"year"==p?r.setFullYear(r.getFullYear()+m):r.setTime(b+g);while(b<t.max&&b!=y);return n},r.tickFormatter=function(t,e){var r=i(t,e.options);if(null!=o.timeformat)return n(r,o.timeformat,o.monthNames,o.dayNames);var a,u=e.options.tickSize&&"quarter"==e.options.tickSize[1]||e.options.minTickSize&&"quarter"==e.options.minTickSize[1],l=e.tickSize[0]*s[e.tickSize[1]],c=e.max-e.min,f=o.twelveHourClock?" %p":"",h=o.twelveHourClock?"%I":"%H";a=l<s.minute?h+":%M:%S"+f:l<s.day?c<2*s.day?h+":%M"+f:"%b %d "+h+":%M"+f:l<s.month?"%b %d":u&&l<s.quarter||!u&&l<s.year?c<s.year?"%b":"%b %Y":u&&l<s.year?c<s.year?"Q%q":"Q%q %Y":"%Y";var p=n(r,a,o.monthNames,o.dayNames);return p})})})}var a={xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null}},s={second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,quarter:7776e6,year:525949.2*60*1e3},u=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]],l=u.concat([[3,"month"],[6,"month"],[1,"year"]]),c=u.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);t.plot.plugins.push({init:o,options:a,name:"time",version:"1.0"}),t.plot.formatDate=n,t.plot.dateGenerator=i}(jQuery),function(t){function e(){return!!document.createElement("canvas").getContext}function n(){if(!e())return!1;var t=document.createElement("canvas"),n=t.getContext("2d");return"function"==typeof n.fillText}function r(){var t=document.createElement("div");return"undefined"!=typeof t.style.MozTransition||"undefined"!=typeof t.style.OTransition||"undefined"!=typeof t.style.webkitTransition||"undefined"!=typeof t.style.transition}function i(t,e,n,r,i){this.axisName=t,this.position=e,this.padding=n,this.plot=r,this.opts=i,this.width=0,this.height=0}function o(t,e,n,r,o){i.prototype.constructor.call(this,t,e,n,r,o)}function a(t,e,n,r,o){i.prototype.constructor.call(this,t,e,n,r,o),this.elem=null}function s(t,e,n,r,i){a.prototype.constructor.call(this,t,e,n,r,i)}function u(t,e,n,r,i){s.prototype.constructor.call(this,t,e,n,r,i),this.requiresResize=!1}function l(e){e.hooks.processOptions.push(function(e,i){if(i.axisLabels.show){var l=!1,c={},f=2;e.hooks.draw.push(function(e,i){var h=!1;l?(l=!1,t.each(e.getAxes(),function(t,n){var r=n.options||e.getOptions()[t];r&&r.axisLabel&&n.show&&c[t].draw(n.box)})):(t.each(e.getAxes(),function(t,i){var l=i.options||e.getOptions()[t];if(t in c&&(i.labelHeight=i.labelHeight-c[t].height,i.labelWidth=i.labelWidth-c[t].width,l.labelHeight=i.labelHeight,l.labelWidth=i.labelWidth,c[t].cleanup(),delete c[t]),l&&l.axisLabel&&i.show){h=!0;var p=null;if(l.axisLabelUseHtml||"Microsoft Internet Explorer"!=navigator.appName)p=l.axisLabelUseHtml||!r()&&!n()&&!l.axisLabelUseCanvas?a:l.axisLabelUseCanvas||!r()?o:s;else{var d=navigator.userAgent,v=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=v.exec(d)&&(rv=parseFloat(RegExp.$1)),p=rv>=9&&!l.axisLabelUseCanvas&&!l.axisLabelUseHtml?s:l.axisLabelUseCanvas||l.axisLabelUseHtml?l.axisLabelUseCanvas?o:a:u}var m=void 0===l.axisLabelPadding?f:l.axisLabelPadding;c[t]=new p(t,i.position,m,e,l),c[t].calculateSize(),l.labelHeight=i.labelHeight+c[t].height,l.labelWidth=i.labelWidth+c[t].width}}),h&&(l=!0,e.setupGrid(),e.draw()))})}})}var c={axisLabels:{show:!0}};i.prototype.cleanup=function(){},o.prototype=new i,o.prototype.constructor=o,o.prototype.calculateSize=function(){this.opts.axisLabelFontSizePixels||(this.opts.axisLabelFontSizePixels=14),this.opts.axisLabelFontFamily||(this.opts.axisLabelFontFamily="sans-serif");this.opts.axisLabelFontSizePixels+this.padding,this.opts.axisLabelFontSizePixels+this.padding;"left"==this.position||"right"==this.position?(this.width=this.opts.axisLabelFontSizePixels+this.padding,this.height=0):(this.width=0,this.height=this.opts.axisLabelFontSizePixels+this.padding)},o.prototype.draw=function(t){this.opts.axisLabelColour||(this.opts.axisLabelColour="black");var e=this.plot.getCanvas().getContext("2d");e.save(),e.font=this.opts.axisLabelFontSizePixels+"px "+this.opts.axisLabelFontFamily,e.fillStyle=this.opts.axisLabelColour;var n,r,i=e.measureText(this.opts.axisLabel).width,o=this.opts.axisLabelFontSizePixels,a=0;"top"==this.position?(n=t.left+t.width/2-i/2,r=t.top+.72*o):"bottom"==this.position?(n=t.left+t.width/2-i/2,r=t.top+t.height-.72*o):"left"==this.position?(n=t.left+.72*o,r=t.height/2+t.top+i/2,a=-Math.PI/2):"right"==this.position&&(n=t.left+t.width-.72*o,r=t.height/2+t.top-i/2,a=Math.PI/2),e.translate(n,r),e.rotate(a),e.fillText(this.opts.axisLabel,0,0),e.restore()},a.prototype=new i,a.prototype.constructor=a,a.prototype.calculateSize=function(){var e=t('<div class="axisLabels" style="position:absolute;">'+this.opts.axisLabel+"</div>");this.plot.getPlaceholder().append(e),this.labelWidth=e.outerWidth(!0),this.labelHeight=e.outerHeight(!0),e.remove(),this.width=this.height=0,"left"==this.position||"right"==this.position?this.width=this.labelWidth+this.padding:this.height=this.labelHeight+this.padding},a.prototype.cleanup=function(){this.elem&&this.elem.remove()},a.prototype.draw=function(e){this.plot.getPlaceholder().find("#"+this.axisName+"Label").remove(),this.elem=t('<div id="'+this.axisName+'Label" " class="axisLabels" style="position:absolute;">'+this.opts.axisLabel+"</div>"),this.plot.getPlaceholder().append(this.elem),"top"==this.position?(this.elem.css("left",e.left+e.width/2-this.labelWidth/2+"px"),this.elem.css("top",e.top+"px")):"bottom"==this.position?(this.elem.css("left",e.left+e.width/2-this.labelWidth/2+"px"),this.elem.css("top",e.top+e.height-this.labelHeight+"px")):"left"==this.position?(this.elem.css("top",e.top+e.height/2-this.labelHeight/2+"px"),this.elem.css("left",e.left+"px")):"right"==this.position&&(this.elem.css("top",e.top+e.height/2-this.labelHeight/2+"px"),this.elem.css("left",e.left+e.width-this.labelWidth+"px"))},s.prototype=new a,s.prototype.constructor=s,s.prototype.calculateSize=function(){a.prototype.calculateSize.call(this),this.width=this.height=0,"left"==this.position||"right"==this.position?this.width=this.labelHeight+this.padding:this.height=this.labelHeight+this.padding},s.prototype.transforms=function(t,e,n){var r={"-moz-transform":"","-webkit-transform":"","-o-transform":"","-ms-transform":""};if(0!=e||0!=n){var i=" translate("+e+"px, "+n+"px)";r["-moz-transform"]+=i,r["-webkit-transform"]+=i,r["-o-transform"]+=i,r["-ms-transform"]+=i}if(0!=t){var o=" rotate("+t+"deg)";r["-moz-transform"]+=o,r["-webkit-transform"]+=o,r["-o-transform"]+=o,r["-ms-transform"]+=o}var a="top: 0; left: 0; ";for(var s in r)r[s]&&(a+=s+":"+r[s]+";");return a+=";"},s.prototype.calculateOffsets=function(t){var e={x:0,y:0,degrees:0};return"bottom"==this.position?(e.x=t.left+t.width/2-this.labelWidth/2,e.y=t.top+t.height-this.labelHeight):"top"==this.position?(e.x=t.left+t.width/2-this.labelWidth/2,e.y=t.top):"left"==this.position?(e.degrees=-90,e.x=t.left-this.labelWidth/2+this.labelHeight/2,e.y=t.height/2+t.top):"right"==this.position&&(e.degrees=90,e.x=t.left+t.width-this.labelWidth/2-this.labelHeight/2,e.y=t.height/2+t.top),e.x=Math.round(e.x),e.y=Math.round(e.y),e},s.prototype.draw=function(e){this.plot.getPlaceholder().find("."+this.axisName+"Label").remove();var n=this.calculateOffsets(e);this.elem=t('<div class="axisLabels '+this.axisName+'Label" style="position:absolute; '+this.transforms(n.degrees,n.x,n.y)+'">'+this.opts.axisLabel+"</div>"),this.plot.getPlaceholder().append(this.elem)},u.prototype=new s,u.prototype.constructor=u,u.prototype.transforms=function(t,e,n){var r="";if(0!=t){for(var i=t/90;0>i;)i+=4;r+=" filter: progid:DXImageTransform.Microsoft.BasicImage(rotation="+i+"); ",this.requiresResize="right"==this.position}return 0!=e&&(r+="left: "+e+"px; "),0!=n&&(r+="top: "+n+"px; "),r},u.prototype.calculateOffsets=function(t){var e=s.prototype.calculateOffsets.call(this,t);return"top"==this.position?e.y=t.top+1:"left"==this.position?(e.x=t.left,e.y=t.height/2+t.top-this.labelWidth/2):"right"==this.position&&(e.x=t.left+t.width-this.labelHeight,e.y=t.height/2+t.top-this.labelWidth/2),e},u.prototype.draw=function(t){s.prototype.draw.call(this,t),this.requiresResize&&(this.elem=this.plot.getPlaceholder().find("."+this.axisName+"Label"),this.elem.css("width",this.labelWidth),this.elem.css("height",this.labelHeight))},t.plot.plugins.push({init:l,options:c,name:"axisLabels",version:"2.0"})}(jQuery),function(t){var e={tooltip:{show:!1,cssClass:"flotTip",content:"%s | X: %x | Y: %y",xDateFormat:null,yDateFormat:null,monthNames:null,dayNames:null,shifts:{x:10,y:20},defaultTheme:!0,lines:!1,onHover:function(t,e){},$compat:!1}};e.tooltipOpts=e.tooltip;var n=function(t){this.tipPosition={x:0,y:0},this.init(t)};n.prototype.init=function(e){function n(t){var n={};n.x=t.pageX,n.y=t.pageY,e.setTooltipPosition(n)}function r(n,r,o){var a=function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))},s=function(t,e,n,r,i,o,s){if(!s||(s=function(t,e,n,r,i,o){if("undefined"!=typeof n)return{x:n,y:e};if("undefined"!=typeof r)return{x:t,y:r};var a,s=-1/((o-r)/(i-n));return{x:a=(i*(t*s-e+r)+n*(t*-s+e-o))/(s*(i-n)+r-o),y:s*a-s*t+e
}}(t,e,n,r,i,o),s.x>=Math.min(n,i)&&s.x<=Math.max(n,i)&&s.y>=Math.min(r,o)&&s.y<=Math.max(r,o))){var u=r-o,l=i-n,c=n*o-r*i;return Math.abs(u*t+l*e+c)/Math.sqrt(u*u+l*l)}var f=a(t,e,n,r),h=a(t,e,i,o);return f>h?h:f};if(o)e.showTooltip(o,r);else if(i.plotOptions.series.lines.show&&i.tooltipOptions.lines===!0){var u=i.plotOptions.grid.mouseActiveRadius,l={distance:u+1};t.each(e.getData(),function(t,n){for(var i=0,o=-1,u=1;u<n.data.length;u++)n.data[u-1][0]<=r.x&&n.data[u][0]>=r.x&&(i=u-1,o=u);if(-1===o)return void e.hideTooltip();var c={x:n.data[i][0],y:n.data[i][1]},f={x:n.data[o][0],y:n.data[o][1]},h=s(n.xaxis.p2c(r.x),n.yaxis.p2c(r.y),n.xaxis.p2c(c.x),n.yaxis.p2c(c.y),n.xaxis.p2c(f.x),n.yaxis.p2c(f.y),!1);if(h<l.distance){var p=a(c.x,c.y,r.x,r.y)<a(r.x,r.y,f.x,f.y)?i:o,d=(n.datapoints.pointsize,[r.x,c.y+(f.y-c.y)*((r.x-c.x)/(f.x-c.x))]),v={datapoint:d,dataIndex:p,series:n,seriesIndex:t};l={distance:h,item:v}}}),l.distance<u+1?e.showTooltip(l.item,r):e.hideTooltip()}else e.hideTooltip()}var i=this,o=t.plot.plugins.length;if(this.plotPlugins=[],o)for(var a=0;o>a;a++)this.plotPlugins.push(t.plot.plugins[a].name);e.hooks.bindEvents.push(function(e,o){if(i.plotOptions=e.getOptions(),"boolean"==typeof i.plotOptions.tooltip&&(i.plotOptions.tooltipOpts.show=i.plotOptions.tooltip,i.plotOptions.tooltip=i.plotOptions.tooltipOpts,delete i.plotOptions.tooltipOpts),i.plotOptions.tooltip.show!==!1&&"undefined"!=typeof i.plotOptions.tooltip.show){i.tooltipOptions=i.plotOptions.tooltip,i.tooltipOptions.$compat?(i.wfunc="width",i.hfunc="height"):(i.wfunc="innerWidth",i.hfunc="innerHeight");i.getDomElement();t(e.getPlaceholder()).bind("plothover",r),t(o).bind("mousemove",n)}}),e.hooks.shutdown.push(function(e,i){t(e.getPlaceholder()).unbind("plothover",r),t(i).unbind("mousemove",n)}),e.setTooltipPosition=function(e){var n=i.getDomElement(),r=n.outerWidth()+i.tooltipOptions.shifts.x,o=n.outerHeight()+i.tooltipOptions.shifts.y;e.x-t(window).scrollLeft()>t(window)[i.wfunc]()-r&&(e.x-=r),e.y-t(window).scrollTop()>t(window)[i.hfunc]()-o&&(e.y-=o),i.tipPosition.x=e.x,i.tipPosition.y=e.y},e.showTooltip=function(t,n){var r=i.getDomElement(),o=i.stringFormat(i.tooltipOptions.content,t);""!==o&&(r.html(o),e.setTooltipPosition({x:n.pageX,y:n.pageY}),r.css({left:i.tipPosition.x+i.tooltipOptions.shifts.x,top:i.tipPosition.y+i.tooltipOptions.shifts.y}).show(),"function"==typeof i.tooltipOptions.onHover&&i.tooltipOptions.onHover(t,r))},e.hideTooltip=function(){i.getDomElement().hide().html("")}},n.prototype.getDomElement=function(){var e=t("."+this.tooltipOptions.cssClass);return 0===e.length&&(e=t("<div />").addClass(this.tooltipOptions.cssClass),e.appendTo("body").hide().css({position:"absolute"}),this.tooltipOptions.defaultTheme&&e.css({background:"#fff","z-index":"1040",padding:"0.4em 0.6em","border-radius":"0.5em","font-size":"0.8em",border:"1px solid #111",display:"none","white-space":"nowrap"})),e},n.prototype.stringFormat=function(t,e){var n,r,i,o,a=/%p\.{0,1}(\d{0,})/,s=/%s/,u=/%c/,l=/%lx/,c=/%ly/,f=/%x\.{0,1}(\d{0,})/,h=/%y\.{0,1}(\d{0,})/,p="%x",d="%y",v="%ct";if("undefined"!=typeof e.series.threshold?(n=e.datapoint[0],r=e.datapoint[1],i=e.datapoint[2]):"undefined"!=typeof e.series.lines&&e.series.lines.steps?(n=e.series.datapoints.points[2*e.dataIndex],r=e.series.datapoints.points[2*e.dataIndex+1],i=""):(n=e.series.data[e.dataIndex][0],r=e.series.data[e.dataIndex][1],i=e.series.data[e.dataIndex][2]),null===e.series.label&&e.series.originSeries&&(e.series.label=e.series.originSeries.label),"function"==typeof t&&(t=t(e.series.label,n,r,e)),"boolean"==typeof t&&!t)return"";if("undefined"!=typeof e.series.percent?o=e.series.percent:"undefined"!=typeof e.series.percents&&(o=e.series.percents[e.dataIndex]),"number"==typeof o&&(t=this.adjustValPrecision(a,t,o)),t="undefined"!=typeof e.series.label?t.replace(s,e.series.label):t.replace(s,""),t="undefined"!=typeof e.series.color?t.replace(u,e.series.color):t.replace(u,""),t=this.hasAxisLabel("xaxis",e)?t.replace(l,e.series.xaxis.options.axisLabel):t.replace(l,""),t=this.hasAxisLabel("yaxis",e)?t.replace(c,e.series.yaxis.options.axisLabel):t.replace(c,""),this.isTimeMode("xaxis",e)&&this.isXDateFormat(e)&&(t=t.replace(f,this.timestampToDate(n,this.tooltipOptions.xDateFormat,e.series.xaxis.options))),this.isTimeMode("yaxis",e)&&this.isYDateFormat(e)&&(t=t.replace(h,this.timestampToDate(r,this.tooltipOptions.yDateFormat,e.series.yaxis.options))),"number"==typeof n&&(t=this.adjustValPrecision(f,t,n)),"number"==typeof r&&(t=this.adjustValPrecision(h,t,r)),"undefined"!=typeof e.series.xaxis.ticks){var m;m=this.hasRotatedXAxisTicks(e)?"rotatedTicks":"ticks";var g=e.dataIndex+e.seriesIndex;for(var y in e.series.xaxis[m])if(e.series.xaxis[m].hasOwnProperty(g)&&!this.isTimeMode("xaxis",e)){var _=this.isCategoriesMode("xaxis",e)?e.series.xaxis[m][g].label:e.series.xaxis[m][g].v;_===n&&(t=t.replace(f,e.series.xaxis[m][g].label))}}if("undefined"!=typeof e.series.yaxis.ticks)for(var y in e.series.yaxis.ticks)if(e.series.yaxis.ticks.hasOwnProperty(y)){var b=this.isCategoriesMode("yaxis",e)?e.series.yaxis.ticks[y].label:e.series.yaxis.ticks[y].v;b===r&&(t=t.replace(h,e.series.yaxis.ticks[y].label))}return"undefined"!=typeof e.series.xaxis.tickFormatter&&(t=t.replace(p,e.series.xaxis.tickFormatter(n,e.series.xaxis).replace(/\$/g,"$$"))),"undefined"!=typeof e.series.yaxis.tickFormatter&&(t=t.replace(d,e.series.yaxis.tickFormatter(r,e.series.yaxis).replace(/\$/g,"$$"))),i&&(t=t.replace(v,i)),t},n.prototype.isTimeMode=function(t,e){return"undefined"!=typeof e.series[t].options.mode&&"time"===e.series[t].options.mode},n.prototype.isXDateFormat=function(t){return"undefined"!=typeof this.tooltipOptions.xDateFormat&&null!==this.tooltipOptions.xDateFormat},n.prototype.isYDateFormat=function(t){return"undefined"!=typeof this.tooltipOptions.yDateFormat&&null!==this.tooltipOptions.yDateFormat},n.prototype.isCategoriesMode=function(t,e){return"undefined"!=typeof e.series[t].options.mode&&"categories"===e.series[t].options.mode},n.prototype.timestampToDate=function(e,n,r){var i=t.plot.dateGenerator(e,r);return t.plot.formatDate(i,n,this.tooltipOptions.monthNames,this.tooltipOptions.dayNames)},n.prototype.adjustValPrecision=function(t,e,n){var r,i=e.match(t);return null!==i&&""!==RegExp.$1&&(r=RegExp.$1,n=n.toFixed(r),e=e.replace(t,n)),e},n.prototype.hasAxisLabel=function(e,n){return-1!==t.inArray(this.plotPlugins,"axisLabels")&&"undefined"!=typeof n.series[e].options.axisLabel&&n.series[e].options.axisLabel.length>0},n.prototype.hasRotatedXAxisTicks=function(e){return-1!==t.inArray(this.plotPlugins,"tickRotor")&&"undefined"!=typeof e.series.xaxis.rotatedTicks};var r=function(t){new n(t)};t.plot.plugins.push({init:r,options:e,name:"tooltip",version:"0.8.5"})}(jQuery),function(t){if("function"==typeof define&&define.amd)define(["jquery"],t);else if("object"==typeof module&&module.exports){var e=require("jquery");module.exports=t(e)}else t(jQuery)}(function(t){if("undefined"==typeof t)throw new Error("jQuery.textcomplete requires jQuery");return+function(t){"use strict";var e=function(t){console.warn&&console.warn(t)},n=1;t.fn.textcomplete=function(r,i){var o=Array.prototype.slice.call(arguments);return this.each(function(){var a=this,s=t(this),u=s.data("textComplete");if(u||(i||(i={}),i._oid=n++,u=new t.fn.textcomplete.Completer(this,i),s.data("textComplete",u)),"string"==typeof r){if(!u)return;o.shift(),u[r].apply(u,o),"destroy"===r&&s.removeData("textComplete")}else t.each(r,function(n){t.each(["header","footer","placement","maxCount"],function(t){n[t]&&(u.option[t]=n[t],e(t+"as a strategy param is deprecated. Use option."),delete n[t])})}),u.register(t.fn.textcomplete.Strategy.parse(r,{el:a,$el:s}))})}}(t),+function(t){"use strict";function e(n,r){if(this.$el=t(n),this.id="textcomplete"+o++,this.strategies=[],this.views=[],this.option=t.extend({},e._getDefaults(),r),!this.$el.is("input[type=text]")&&!this.$el.is("textarea")&&!n.isContentEditable&&"true"!=n.contentEditable)throw new Error("textcomplete must be called on a Textarea or a ContentEditable.");if(n===document.activeElement)this.initialize();else{var i=this;this.$el.one("focus."+this.id,function(){i.initialize()})}}var n=function(t){var e,n;return function(){var r=Array.prototype.slice.call(arguments);if(e)return void(n=r);e=!0;var i=this;r.unshift(function o(){if(n){var r=n;n=void 0,r.unshift(o),t.apply(i,r)}else e=!1}),t.apply(this,r)}},r=function(t){return"[object String]"===Object.prototype.toString.call(t)},i=function(t){return"[object Function]"===Object.prototype.toString.call(t)},o=0;e._getDefaults=function(){return e.DEFAULTS||(e.DEFAULTS={appendTo:t("body"),zIndex:"100"}),e.DEFAULTS},t.extend(e.prototype,{id:null,option:null,strategies:null,adapter:null,dropdown:null,$el:null,initialize:function(){var e=this.$el.get(0);this.dropdown=new t.fn.textcomplete.Dropdown(e,this,this.option);var n,r;this.option.adapter?n=this.option.adapter:(r=this.$el.is("textarea")||this.$el.is("input[type=text]")?"number"==typeof e.selectionEnd?"Textarea":"IETextarea":"ContentEditable",n=t.fn.textcomplete[r]),this.adapter=new n(e,this,this.option)},destroy:function(){this.$el.off("."+this.id),this.adapter&&this.adapter.destroy(),this.dropdown&&this.dropdown.destroy(),this.$el=this.adapter=this.dropdown=null},trigger:function(t,e){this.dropdown||this.initialize(),null!=t||(t=this.adapter.getTextFromHeadToCaret());var n=this._extractSearchQuery(t);if(n.length){var r=n[1];if(e&&this._term===r)return;this._term=r,this._search.apply(this,n)}else this._term=null,this.dropdown.deactivate()},fire:function(t){var e=Array.prototype.slice.call(arguments,1);return this.$el.trigger(t,e),this},register:function(t){Array.prototype.push.apply(this.strategies,t)},select:function(t,e,n){this._term=null,this.adapter.select(t,e,n),this.fire("change").fire("textComplete:select",t,e),this.adapter.focus()},_clearAtNext:!0,_term:null,_extractSearchQuery:function(t){for(var e=0;e<this.strategies.length;e++){var n=this.strategies[e],o=n.context(t);if(o||""===o){var a=i(n.match)?n.match(t):n.match;r(o)&&(t=o);var s=t.match(a);if(s)return[n,s[n.index],s]}}return[]},_search:n(function(t,e,n,r){var i=this;e.search(n,function(r,o){i.dropdown.shown||i.dropdown.activate(),i._clearAtNext&&(i.dropdown.clear(),i._clearAtNext=!1),i.dropdown.setPosition(i.adapter.getCaretPosition()),i.dropdown.render(i._zip(r,e,n)),o||(t(),i._clearAtNext=!0)},r)}),_zip:function(e,n,r){return t.map(e,function(t){return{value:t,strategy:n,term:r}})}}),t.fn.textcomplete.Completer=e}(t),+function(t){"use strict";function e(n,r,o){this.$el=e.createElement(o),this.completer=r,this.id=r.id+"dropdown",this._data=[],this.$inputEl=t(n),this.option=o,o.listPosition&&(this.setPosition=o.listPosition),o.height&&this.$el.height(o.height);var a=this;t.each(["maxCount","placement","footer","header","noResultsMessage","className"],function(t,e){null!=o[e]&&(a[e]=o[e])}),this._bindEvents(n),i[this.id]=this}var n=t(window),r=function(t,e){var n,r,i=e.strategy.idProperty;for(n=0;n<t.length;n++)if(r=t[n],r.strategy===e.strategy)if(i){if(r.value[i]===e.value[i])return!0}else if(r.value===e.value)return!0;return!1},i={};t(document).on("click",function(e){var n=e.originalEvent&&e.originalEvent.keepTextCompleteDropdown;t.each(i,function(t,e){t!==n&&e.deactivate()})});var o={SKIP_DEFAULT:0,KEY_UP:1,KEY_DOWN:2,KEY_ENTER:3,KEY_PAGEUP:4,KEY_PAGEDOWN:5,KEY_ESCAPE:6};t.extend(e,{createElement:function(e){var n=e.appendTo;n instanceof t||(n=t(n));var r=t("<ul></ul>").addClass("dropdown-menu textcomplete-dropdown").attr("id","textcomplete-dropdown-"+e._oid).css({display:"none",left:0,position:"absolute",zIndex:e.zIndex}).appendTo(n);return r}}),t.extend(e.prototype,{$el:null,$inputEl:null,completer:null,footer:null,header:null,id:null,maxCount:10,placement:"",shown:!1,data:[],className:"",destroy:function(){this.deactivate(),this.$el.off("."+this.id),this.$inputEl.off("."+this.id),this.clear(),this.$el=this.$inputEl=this.completer=null,delete i[this.id]},render:function(e){var n=this._buildContents(e),r=t.map(this.data,function(t){return t.value});this.data.length?(this._renderHeader(r),this._renderFooter(r),n&&(this._renderContents(n),this._fitToBottom(),this._activateIndexedItem()),this._setScroll()):this.noResultsMessage?this._renderNoResultsMessage(r):this.shown&&this.deactivate()},setPosition:function(e){this.$el.css(this._applyPlacement(e));var n="absolute";return this.$inputEl.add(this.$inputEl.parents()).each(function(){return"absolute"===t(this).css("position")?!1:"fixed"===t(this).css("position")?(n="fixed",!1):void 0}),this.$el.css({position:n}),this},clear:function(){this.$el.html(""),this.data=[],this._index=0,this._$header=this._$footer=this._$noResultsMessage=null},activate:function(){return this.shown||(this.clear(),this.$el.show(),this.className&&this.$el.addClass(this.className),this.completer.fire("textComplete:show"),this.shown=!0),this},deactivate:function(){return this.shown&&(this.$el.hide(),this.className&&this.$el.removeClass(this.className),this.completer.fire("textComplete:hide"),this.shown=!1),this},isUp:function(t){return 38===t.keyCode||t.ctrlKey&&80===t.keyCode},isDown:function(t){return 40===t.keyCode||t.ctrlKey&&78===t.keyCode},isEnter:function(t){var e=t.ctrlKey||t.altKey||t.metaKey||t.shiftKey;return!e&&(13===t.keyCode||9===t.keyCode||this.option.completeOnSpace===!0&&32===t.keyCode)},isPageup:function(t){return 33===t.keyCode},isPagedown:function(t){return 34===t.keyCode},isEscape:function(t){return 27===t.keyCode},_data:null,_index:null,_$header:null,_$noResultsMessage:null,_$footer:null,_bindEvents:function(){this.$el.on("mousedown."+this.id,".textcomplete-item",t.proxy(this._onClick,this)),this.$el.on("touchstart."+this.id,".textcomplete-item",t.proxy(this._onClick,this)),this.$el.on("mouseover."+this.id,".textcomplete-item",t.proxy(this._onMouseover,this)),this.$inputEl.on("keydown."+this.id,t.proxy(this._onKeydown,this))},_onClick:function(e){var n=t(e.target);e.preventDefault(),e.originalEvent.keepTextCompleteDropdown=this.id,n.hasClass("textcomplete-item")||(n=n.closest(".textcomplete-item"));var r=this.data[parseInt(n.data("index"),10)];this.completer.select(r.value,r.strategy,e);var i=this;setTimeout(function(){i.deactivate(),"touchstart"===e.type&&i.$inputEl.focus()},0)},_onMouseover:function(e){var n=t(e.target);e.preventDefault(),n.hasClass("textcomplete-item")||(n=n.closest(".textcomplete-item")),this._index=parseInt(n.data("index"),10),this._activateIndexedItem()},_onKeydown:function(e){if(this.shown){var n;switch(t.isFunction(this.option.onKeydown)&&(n=this.option.onKeydown(e,o)),null==n&&(n=this._defaultKeydown(e)),n){case o.KEY_UP:e.preventDefault(),this._up();break;case o.KEY_DOWN:e.preventDefault(),this._down();break;case o.KEY_ENTER:e.preventDefault(),this._enter(e);break;case o.KEY_PAGEUP:e.preventDefault(),this._pageup();break;case o.KEY_PAGEDOWN:e.preventDefault(),this._pagedown();break;case o.KEY_ESCAPE:e.preventDefault(),this.deactivate()}}},_defaultKeydown:function(t){return this.isUp(t)?o.KEY_UP:this.isDown(t)?o.KEY_DOWN:this.isEnter(t)?o.KEY_ENTER:this.isPageup(t)?o.KEY_PAGEUP:this.isPagedown(t)?o.KEY_PAGEDOWN:this.isEscape(t)?o.KEY_ESCAPE:void 0},_up:function(){0===this._index?this._index=this.data.length-1:this._index-=1,this._activateIndexedItem(),this._setScroll()},_down:function(){this._index===this.data.length-1?this._index=0:this._index+=1,this._activateIndexedItem(),this._setScroll()},_enter:function(t){var e=this.data[parseInt(this._getActiveElement().data("index"),10)];this.completer.select(e.value,e.strategy,t),this.deactivate()},_pageup:function(){var e=0,n=this._getActiveElement().position().top-this.$el.innerHeight();this.$el.children().each(function(r){return t(this).position().top+t(this).outerHeight()>n?(e=r,!1):void 0}),this._index=e,this._activateIndexedItem(),this._setScroll()},_pagedown:function(){var e=this.data.length-1,n=this._getActiveElement().position().top+this.$el.innerHeight();this.$el.children().each(function(r){return t(this).position().top>n?(e=r,!1):void 0}),this._index=e,this._activateIndexedItem(),this._setScroll()},_activateIndexedItem:function(){this.$el.find(".textcomplete-item.active").removeClass("active"),this._getActiveElement().addClass("active")},_getActiveElement:function(){return this.$el.children(".textcomplete-item:nth("+this._index+")")},_setScroll:function(){var t=this._getActiveElement(),e=t.position().top,n=t.outerHeight(),r=this.$el.innerHeight(),i=this.$el.scrollTop();0===this._index||this._index==this.data.length-1||0>e?this.$el.scrollTop(e+i):e+n>r&&this.$el.scrollTop(e+n+i-r)},_buildContents:function(t){var e,n,i,o="";for(n=0;n<t.length&&this.data.length!==this.maxCount;n++)e=t[n],r(this.data,e)||(i=this.data.length,this.data.push(e),o+='<li class="textcomplete-item" data-index="'+i+'"><a>',o+=e.strategy.template(e.value,e.term),o+="</a></li>");return o},_renderHeader:function(e){if(this.header){this._$header||(this._$header=t('<li class="textcomplete-header"></li>').prependTo(this.$el));var n=t.isFunction(this.header)?this.header(e):this.header;this._$header.html(n)}},_renderFooter:function(e){if(this.footer){this._$footer||(this._$footer=t('<li class="textcomplete-footer"></li>').appendTo(this.$el));var n=t.isFunction(this.footer)?this.footer(e):this.footer;this._$footer.html(n)}},_renderNoResultsMessage:function(e){if(this.noResultsMessage){this._$noResultsMessage||(this._$noResultsMessage=t('<li class="textcomplete-no-results-message"></li>').appendTo(this.$el));var n=t.isFunction(this.noResultsMessage)?this.noResultsMessage(e):this.noResultsMessage;this._$noResultsMessage.html(n)}},_renderContents:function(t){this._$footer?this._$footer.before(t):this.$el.append(t)},_fitToBottom:function(){var t=n.scrollTop()+n.height(),e=this.$el.height();this.$el.position().top+e>t&&this.$el.offset({top:t-e})},_applyPlacement:function(t){return-1!==this.placement.indexOf("top")?t={top:"auto",bottom:this.$el.parent().height()-t.top+t.lineHeight,left:t.left}:(t.bottom="auto",delete t.lineHeight),-1!==this.placement.indexOf("absleft")?t.left=0:-1!==this.placement.indexOf("absright")&&(t.right=0,t.left="auto"),t}}),t.fn.textcomplete.Dropdown=e,t.extend(t.fn.textcomplete,o)}(t),+function(t){"use strict";function e(e){t.extend(this,e),this.cache&&(this.search=n(this.search))}var n=function(t){var e={};return function(n,r){e[n]?r(e[n]):t.call(this,n,function(t){e[n]=(e[n]||[]).concat(t),r.apply(null,arguments)})}};e.parse=function(n,r){return t.map(n,function(t){var n=new e(t);return n.el=r.el,n.$el=r.$el,n})},t.extend(e.prototype,{match:null,replace:null,search:null,cache:!1,context:function(){return!0},index:2,template:function(t){return t},idProperty:null}),t.fn.textcomplete.Strategy=e}(t),+function(t){"use strict";function e(){}var n=Date.now||function(){return(new Date).getTime()},r=function(t,e){var r,i,o,a,s,u=function(){var l=n()-a;e>l?r=setTimeout(u,e-l):(r=null,s=t.apply(o,i),o=i=null)};return function(){return o=this,i=arguments,a=n(),r||(r=setTimeout(u,e)),s}};t.extend(e.prototype,{id:null,completer:null,el:null,$el:null,option:null,initialize:function(e,n,i){this.el=e,this.$el=t(e),this.id=n.id+this.constructor.name,this.completer=n,this.option=i,this.option.debounce&&(this._onKeyup=r(this._onKeyup,this.option.debounce)),this._bindEvents()},destroy:function(){this.$el.off("."+this.id),this.$el=this.el=this.completer=null},select:function(){throw new Error("Not implemented")},getCaretPosition:function(){var t=this._getCaretRelativePosition(),e=this.$el.offset();return t.top+=e.top,t.left+=e.left,t},focus:function(){this.$el.focus()},_bindEvents:function(){this.$el.on("keyup."+this.id,t.proxy(this._onKeyup,this))},_onKeyup:function(t){this._skipSearch(t)||this.completer.trigger(this.getTextFromHeadToCaret(),!0)},_skipSearch:function(t){switch(t.keyCode){case 13:case 40:case 38:return!0}if(t.ctrlKey)switch(t.keyCode){case 78:case 80:return!0}}}),t.fn.textcomplete.Adapter=e}(t),+function(t){"use strict";function e(t,e,n){this.initialize(t,e,n)}e.DIV_PROPERTIES={left:-9999,position:"absolute",top:0,whiteSpace:"pre-wrap"},e.COPY_PROPERTIES=["border-width","font-family","font-size","font-style","font-variant","font-weight","height","letter-spacing","word-spacing","line-height","text-decoration","text-align","width","padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left","border-style","box-sizing","tab-size"],t.extend(e.prototype,t.fn.textcomplete.Adapter.prototype,{select:function(e,n,r){var i=this.getTextFromHeadToCaret(),o=this.el.value.substring(this.el.selectionEnd),a=n.replace(e,r);t.isArray(a)&&(o=a[1]+o,a=a[0]),i=i.replace(n.match,a),this.$el.val(i+o),this.el.selectionStart=this.el.selectionEnd=i.length},_getCaretRelativePosition:function(){var e=t("<div></div>").css(this._copyCss()).text(this.getTextFromHeadToCaret()),n=t("<span></span>").text(".").appendTo(e);this.$el.before(e);var r=n.position();return r.top+=n.height()-this.$el.scrollTop(),r.lineHeight=n.height(),e.remove(),r},_copyCss:function(){return t.extend({overflow:this.el.scrollHeight>this.el.offsetHeight?"scroll":"auto"},e.DIV_PROPERTIES,this._getStyles())},_getStyles:function(t){var n=t("<div></div>").css(["color"]).color;return"undefined"!=typeof n?function(){return this.$el.css(e.COPY_PROPERTIES)}:function(){var n=this.$el,r={};return t.each(e.COPY_PROPERTIES,function(t,e){r[e]=n.css(e)}),r}}(t),getTextFromHeadToCaret:function(){return this.el.value.substring(0,this.el.selectionEnd)}}),t.fn.textcomplete.Textarea=e}(t),+function(t){"use strict";function e(e,r,i){this.initialize(e,r,i),t("<span>"+n+"</span>").css({position:"absolute",top:-9999,left:-9999}).insertBefore(e)}var n="吶";t.extend(e.prototype,t.fn.textcomplete.Textarea.prototype,{select:function(e,n,r){var i=this.getTextFromHeadToCaret(),o=this.el.value.substring(i.length),a=n.replace(e,r);t.isArray(a)&&(o=a[1]+o,a=a[0]),i=i.replace(n.match,a),this.$el.val(i+o),this.el.focus();var s=this.el.createTextRange();s.collapse(!0),s.moveEnd("character",i.length),s.moveStart("character",i.length),s.select()},getTextFromHeadToCaret:function(){this.el.focus();var t=document.selection.createRange();t.moveStart("character",-this.el.value.length);var e=t.text.split(n);return 1===e.length?e[0]:e[1]}}),t.fn.textcomplete.IETextarea=e}(t),+function(t){"use strict";function e(t,e,n){this.initialize(t,e,n)}t.extend(e.prototype,t.fn.textcomplete.Adapter.prototype,{select:function(e,n,r){var i=this.getTextFromHeadToCaret(),o=window.getSelection(),a=o.getRangeAt(0),s=a.cloneRange();s.selectNodeContents(a.startContainer);var u=s.toString(),l=u.substring(a.startOffset),c=n.replace(e,r);t.isArray(c)&&(l=c[1]+l,c=c[0]),i=i.replace(n.match,c),a.selectNodeContents(a.startContainer),a.deleteContents();var f=document.createTextNode(i+l);a.insertNode(f),a.setStart(f,i.length),a.collapse(!0),o.removeAllRanges(),o.addRange(a)},_getCaretRelativePosition:function(){var e=window.getSelection().getRangeAt(0).cloneRange(),n=document.createElement("span");e.insertNode(n),e.selectNodeContents(n),e.deleteContents();var r=t(n),i=r.offset();return i.left-=this.$el.offset().left,i.top+=r.height()-this.$el.offset().top,i.lineHeight=r.height(),r.remove(),i},getTextFromHeadToCaret:function(){var t=window.getSelection().getRangeAt(0),e=t.cloneRange();return e.selectNodeContents(t.startContainer),e.toString().substring(0,t.startOffset)}}),t.fn.textcomplete.ContentEditable=e}(t),t}),function($){$.fn.markItUp=function(settings,extraSettings){var method,params,options,ctrlKey,shiftKey,altKey;ctrlKey=shiftKey=altKey=!1,"string"==typeof settings&&(method=settings,params=extraSettings),options={id:"",nameSpace:"",root:"",previewHandler:!1,previewInWindow:"",previewInElement:"",previewAutoRefresh:!0,previewPosition:"after",previewTemplatePath:"~/templates/preview.html",previewParser:!1,previewParserPath:"",previewParserVar:"data",resizeHandle:!0,beforeInsert:"",afterInsert:"",onEnter:{},onShiftEnter:{},onCtrlEnter:{},onTab:{},markupSet:[{}]},$.extend(options,settings,extraSettings),options.root||$("script").each(function(t,e){miuScript=$(e).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/),null!==miuScript&&(options.root=miuScript[1])});var uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},matched=uaMatch(navigator.userAgent),browser={};return matched.browser&&(browser[matched.browser]=!0,browser.version=matched.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0),this.each(function(){function localize(t,e){return e?t.replace(/("|')~\//g,"$1"+options.root):t.replace(/^~\//,options.root)}function init(){id="",nameSpace="",options.id?id='id="'+options.id+'"':$$.attr("id")&&(id='id="markItUp'+$$.attr("id").substr(0,1).toUpperCase()+$$.attr("id").substr(1)+'"'),options.nameSpace&&(nameSpace='class="'+options.nameSpace+'"'),$$.wrap("<div "+nameSpace+"></div>"),$$.wrap("<div "+id+' class="markItUp"></div>'),$$.wrap('<div class="markItUpContainer"></div>'),$$.addClass("markItUpEditor"),header=$('<div class="markItUpHeader"></div>').insertBefore($$),$(dropMenus(options.markupSet)).appendTo(header),footer=$('<div class="markItUpFooter"></div>').insertAfter($$),options.resizeHandle===!0&&browser.safari!==!0&&(resizeHandle=$('<div class="markItUpResizeHandle"></div>').insertAfter($$).bind("mousedown.markItUp",function(t){var e,n,r=$$.height(),i=t.clientY;e=function(t){return $$.css("height",Math.max(20,t.clientY+r-i)+"px"),!1},n=function(t){return $("html").unbind("mousemove.markItUp",e).unbind("mouseup.markItUp",n),!1},$("html").bind("mousemove.markItUp",e).bind("mouseup.markItUp",n)}),footer.append(resizeHandle)),$$.bind("keydown.markItUp",keyPressed).bind("keyup",keyPressed),$$.bind("insertion.markItUp",function(t,e){e.target!==!1&&get(),textarea===$.markItUp.focused&&markup(e)}),$$.bind("focus.markItUp",function(){$.markItUp.focused=this}),options.previewInElement&&refreshPreview()}function dropMenus(markupSet){var ul=$("<ul></ul>"),i=0;return $("li:hover > ul",ul).css("display","block"),$.each(markupSet,function(){var button=this,t="",title,li,j;if(title=button.key?(button.name||"")+" [Ctrl+"+button.key+"]":button.name||"",key=button.key?'accesskey="'+button.key+'"':"",button.separator)li=$('<li class="markItUpSeparator">'+(button.separator||"")+"</li>").appendTo(ul);else{for(i++,j=levels.length-1;j>=0;j--)t+=levels[j]+"-";li=$('<li class="markItUpButton markItUpButton'+t+i+" "+(button.className||"")+'"><a href="" '+key+' title="'+title+'">'+(button.name||"")+"</a></li>").bind("contextmenu.markItUp",function(){return!1}).bind("click.markItUp",function(t){t.preventDefault()}).bind("focusin.markItUp",function(){$$.focus()}).bind("mouseup",function(){return button.call&&eval(button.call)(),setTimeout(function(){markup(button)},1),!1}).bind("mouseenter.markItUp",function(){$("> ul",this).show(),$(document).one("click",function(){$("ul ul",header).hide()})}).bind("mouseleave.markItUp",function(){$("> ul",this).hide()}).appendTo(ul),button.dropMenu&&(levels.push(i),$(li).addClass("markItUpDropMenu").append(dropMenus(button.dropMenu)))}}),levels.pop(),ul}function magicMarkups(t){return t?(t=t.toString(),t=t.replace(/\(\!\(([\s\S]*?)\)\!\)/g,function(t,e){var n=e.split("|!|");return altKey===!0?void 0!==n[1]?n[1]:n[0]:void 0===n[1]?"":n[0]}),t=t.replace(/\[\!\[([\s\S]*?)\]\!\]/g,function(t,e){var n=e.split(":!:");return abort===!0?!1:(value=prompt(n[0],n[1]?n[1]:""),null===value&&(abort=!0),value)})):""}function prepare(t){return $.isFunction(t)&&(t=t(hash)),magicMarkups(t)}function build(t){var e=prepare(clicked.openWith),n=prepare(clicked.placeHolder),r=prepare(clicked.replaceWith),i=prepare(clicked.closeWith),o=prepare(clicked.openBlockWith),a=prepare(clicked.closeBlockWith),s=clicked.multiline;if(""!==r)block=e+r+i;else if(""===selection&&""!==n)block=e+n+i;else{t=t||selection;var u=[t],l=[];s===!0&&(u=t.split(/\r?\n/));for(var c=0;c<u.length;c++){line=u[c];var f;(f=line.match(/ *$/))?l.push(e+line.replace(/ *$/g,"")+i+f):l.push(e+line+i)}block=l.join("\n")}return block=o+block+a,{block:block,openBlockWith:o,openWith:e,replaceWith:r,placeHolder:n,closeWith:i,closeBlockWith:a}}function markup(t){var e,n,r,i;if(hash=clicked=t,get(),$.extend(hash,{line:"",root:options.root,textarea:textarea,selection:selection||"",caretPosition:caretPosition,ctrlKey:ctrlKey,shiftKey:shiftKey,altKey:altKey}),prepare(options.beforeInsert),prepare(clicked.beforeInsert),(ctrlKey===!0&&shiftKey===!0||t.multiline===!0)&&prepare(clicked.beforeMultiInsert),$.extend(hash,{line:1}),ctrlKey===!0&&shiftKey===!0){for(lines=selection.split(/\r?\n/),n=0,r=lines.length,i=0;r>i;i++)""!==$.trim(lines[i])?($.extend(hash,{line:++n,selection:lines[i]}),lines[i]=build(lines[i]).block):lines[i]="";string={block:lines.join("\n")},start=caretPosition,e=string.block.length+(browser.opera?r-1:0)}else ctrlKey===!0?(string=build(selection),start=caretPosition+string.openWith.length,e=string.block.length-string.openWith.length-string.closeWith.length,e-=string.block.match(/ $/)?1:0,e-=fixIeBug(string.block)):shiftKey===!0?(string=build(selection),start=caretPosition,e=string.block.length,e-=fixIeBug(string.block)):(string=build(selection),start=caretPosition+string.block.length,e=0,start-=fixIeBug(string.block));""===selection&&""===string.replaceWith&&(caretOffset+=fixOperaBug(string.block),start=caretPosition+string.openBlockWith.length+string.openWith.length,e=string.block.length-string.openBlockWith.length-string.openWith.length-string.closeWith.length-string.closeBlockWith.length,caretOffset=$$.val().substring(caretPosition,$$.val().length).length,caretOffset-=fixOperaBug($$.val().substring(0,caretPosition))),$.extend(hash,{caretPosition:caretPosition,scrollPosition:scrollPosition}),string.block!==selection&&abort===!1?(insert(string.block),set(start,e)):caretOffset=-1,get(),$.extend(hash,{line:"",selection:selection}),(ctrlKey===!0&&shiftKey===!0||t.multiline===!0)&&prepare(clicked.afterMultiInsert),prepare(clicked.afterInsert),prepare(options.afterInsert),previewWindow&&options.previewAutoRefresh&&refreshPreview(),shiftKey=altKey=ctrlKey=abort=!1}function fixOperaBug(t){return browser.opera?t.length-t.replace(/\n*/g,"").length:0}function fixIeBug(t){return browser.msie?t.length-t.replace(/\r*/g,"").length:0}function insert(t){if(document.selection){var e=document.selection.createRange();e.text=t}else textarea.value=textarea.value.substring(0,caretPosition)+t+textarea.value.substring(caretPosition+selection.length,textarea.value.length)}function set(t,e){if(textarea.createTextRange){if(browser.opera&&browser.version>=9.5&&0==e)return!1;range=textarea.createTextRange(),range.collapse(!0),range.moveStart("character",t),range.moveEnd("character",e),range.select()}else textarea.setSelectionRange&&textarea.setSelectionRange(t,t+e);textarea.scrollTop=scrollPosition,textarea.focus()}function get(){if(textarea.focus(),scrollPosition=textarea.scrollTop,document.selection)if(selection=document.selection.createRange().text,browser.msie){var t=document.selection.createRange(),e=t.duplicate();for(e.moveToElementText(textarea),caretPosition=-1;e.inRange(t);)e.moveStart("character"),caretPosition++}else caretPosition=textarea.selectionStart;else caretPosition=textarea.selectionStart,selection=textarea.value.substring(caretPosition,textarea.selectionEnd);return selection}function preview(){"function"==typeof options.previewHandler?previewWindow=!0:options.previewInElement?previewWindow=$(options.previewInElement):!previewWindow||previewWindow.closed?options.previewInWindow?(previewWindow=window.open("","preview",options.previewInWindow),$(window).unload(function(){previewWindow.close();
})):(iFrame=$('<iframe class="markItUpPreviewFrame"></iframe>'),"after"==options.previewPosition?iFrame.insertAfter(footer):iFrame.insertBefore(header),previewWindow=iFrame[iFrame.length-1].contentWindow||frame[iFrame.length-1]):altKey===!0&&(iFrame?iFrame.remove():previewWindow.close(),previewWindow=iFrame=!1),options.previewAutoRefresh||refreshPreview(),options.previewInWindow&&previewWindow.focus()}function refreshPreview(){renderPreview()}function renderPreview(){if(options.previewHandler&&"function"==typeof options.previewHandler)options.previewHandler($$.val());else if(options.previewParser&&"function"==typeof options.previewParser){var t=options.previewParser($$.val());writeInPreview(localize(t,1))}else""!==options.previewParserPath?$.ajax({type:"POST",dataType:"text",global:!1,url:options.previewParserPath,data:options.previewParserVar+"="+encodeURIComponent($$.val()),success:function(t){writeInPreview(localize(t,1))}}):template||$.ajax({url:options.previewTemplatePath,dataType:"text",global:!1,success:function(t){writeInPreview(localize(t,1).replace(/<!-- content -->/g,$$.val()))}});return!1}function writeInPreview(t){if(options.previewInElement)$(options.previewInElement).html(t);else if(previewWindow&&previewWindow.document){try{sp=previewWindow.document.documentElement.scrollTop}catch(e){sp=0}previewWindow.document.open(),previewWindow.document.write(t),previewWindow.document.close(),previewWindow.document.documentElement.scrollTop=sp}}function keyPressed(t){if(shiftKey=t.shiftKey,altKey=t.altKey,ctrlKey=t.altKey&&t.ctrlKey?!1:t.ctrlKey||t.metaKey,"keydown"===t.type){if(ctrlKey===!0&&(li=$('a[accesskey="'+(13==t.keyCode?"\\n":String.fromCharCode(t.keyCode))+'"]',header).parent("li"),0!==li.length))return ctrlKey=!1,setTimeout(function(){li.triggerHandler("mouseup")},1),!1;if(13===t.keyCode||10===t.keyCode)return ctrlKey===!0?(ctrlKey=!1,markup(options.onCtrlEnter),options.onCtrlEnter.keepDefault):shiftKey===!0?(shiftKey=!1,markup(options.onShiftEnter),options.onShiftEnter.keepDefault):(markup(options.onEnter),options.onEnter.keepDefault);if(9===t.keyCode)return 1==shiftKey||1==ctrlKey||1==altKey?!1:-1!==caretOffset?(get(),caretOffset=$$.val().length-caretOffset,set(caretOffset,0),caretOffset=-1,!1):(markup(options.onTab),options.onTab.keepDefault)}}function remove(){$$.unbind(".markItUp").removeClass("markItUpEditor"),$$.parent("div").parent("div.markItUp").parent("div").replaceWith($$),$$.data("markItUp",null)}var $$,textarea,levels,scrollPosition,caretPosition,caretOffset,clicked,hash,header,footer,previewWindow,template,iFrame,abort;if($$=$(this),textarea=this,levels=[],abort=!1,scrollPosition=caretPosition=0,caretOffset=-1,options.previewParserPath=localize(options.previewParserPath),options.previewTemplatePath=localize(options.previewTemplatePath),method)switch(method){case"remove":remove();break;case"insert":markup(params);break;default:$.error("Method "+method+" does not exist on jQuery.markItUp")}else init()})},$.fn.markItUpRemove=function(){return this.each(function(){$(this).markItUp("remove")})},$.markItUp=function(t){var e={target:!1};return $.extend(e,t),e.target?$(e.target).each(function(){$(this).focus(),$(this).trigger("insertion",[e])}):void $("textarea").trigger("insertion",[e])}}(jQuery),function(t,e){"use strict";function n(t,e){var n,r;e=e||{},t="raven"+t.substr(0,1).toUpperCase()+t.substr(1),document.createEvent?(n=document.createEvent("HTMLEvents"),n.initEvent(t,!0,!0)):(n=document.createEventObject(),n.eventType=t);for(r in e)f(e,r)&&(n[r]=e[r]);if(document.createEvent)document.dispatchEvent(n);else try{document.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(i){}}function r(t){this.name="RavenConfigError",this.message=t}function i(t){var e=X.exec(t),n={},i=7;try{for(;i--;)n[G[i]]=e[i]||""}catch(o){throw new r("Invalid DSN: "+t)}if(n.pass)throw new r("Do not specify your private key in the DSN!");return n}function o(t){return void 0===t}function a(t){return"function"==typeof t}function s(t){return"[object String]"===U.toString.call(t)}function u(t){return"object"==typeof t&&null!==t}function l(t){for(var e in t)return!1;return!0}function c(t){return u(t)&&"[object Error]"===U.toString.call(t)||t instanceof Error}function f(t,e){return U.hasOwnProperty.call(t,e)}function h(t,e){var n,r;if(o(t.length))for(n in t)f(t,n)&&e.call(null,n,t[n]);else if(r=t.length)for(n=0;r>n;n++)e.call(null,n,t[n])}function p(t,e){var r=[];t.stack&&t.stack.length&&h(t.stack,function(t,e){var n=d(e);n&&r.push(n)}),n("handle",{stackInfo:t,options:e}),m(t.name,t.message,t.url,t.lineno,r,e)}function d(t){if(t.url){var e,n={filename:t.url,lineno:t.line,colno:t.column,"function":t.func||"?"},r=v(t);if(r){var i=["pre_context","context_line","post_context"];for(e=3;e--;)n[i[e]]=r[e]}return n.in_app=!(q.includePaths.test&&!q.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n["function"])||/raven\.(min\.)?js$/.test(n.filename)),n}}function v(t){if(t.context&&q.fetchContext){for(var e=t.context,n=~~(e.length/2),r=e.length,i=!1;r--;)if(e[r].length>300){i=!0;break}if(i){if(o(t.column))return;return[[],e[n].substr(t.column,50),[]]}return[e.slice(0,n),e[n],e.slice(n+1)]}}function m(t,e,n,r,i,o){var a,s;q.ignoreErrors.test&&q.ignoreErrors.test(e)||(e+="",e=y(e,q.maxMessageLength),s=t+": "+e,s=y(s,q.maxMessageLength),i&&i.length?(n=i[0].filename||n,i.reverse(),a={frames:i}):n&&(a={frames:[{filename:n,lineno:r,in_app:!0}]}),q.ignoreUrls.test&&q.ignoreUrls.test(n)||(!q.whitelistUrls.test||q.whitelistUrls.test(n))&&w(g({exception:{type:t,value:e},stacktrace:a,culprit:n,message:s},o)))}function g(t,e){return e?(h(e,function(e,n){t[e]=n}),t):t}function y(t,e){return t.length<=e?t:t.substr(0,e)+"…"}function _(){return+new Date}function b(){if(document.location&&document.location.href){var t={headers:{"User-Agent":navigator.userAgent}};return t.url=document.location.href,document.referrer&&(t.headers.Referer=document.referrer),t}}function w(t){var e={project:R,logger:q.logger,platform:"javascript"},r=b();r&&(e.request=r),t=g(e,t),t.tags=g(g({},q.tags),t.tags),t.extra=g(g({},q.extra),t.extra),t.extra=g({"session:duration":_()-B},t.extra),l(t.tags)&&delete t.tags,P&&(t.user=P),q.release&&(t.release=q.release),a(q.dataCallback)&&(t=q.dataCallback(t)||t),t&&!l(t)&&(!a(q.shouldSendCallback)||q.shouldSendCallback(t))&&(O=t.event_id||(t.event_id=C()),E("debug","Raven about to send:",t),k()&&(q.transport||x)({url:I,auth:{sentry_version:"4",sentry_client:"raven-js/"+K.VERSION,sentry_key:N},data:t,options:q,onSuccess:function(){n("success",{data:t,src:I})},onError:function(){n("failure",{data:t,src:I})}}))}function x(t){t.auth.sentry_data=JSON.stringify(t.data);var e=$(),n=t.url+"?"+F(t.auth);(t.options.crossOrigin||""===t.options.crossOrigin)&&(e.crossOrigin=t.options.crossOrigin),e.onload=t.onSuccess,e.onerror=e.onabort=t.onError,e.src=n}function $(){return document.createElement("img")}function k(){return z?I?!0:(J||E("error","Error: Raven has not been configured."),J=!0,!1):!1}function S(t){for(var e,n=[],r=0,i=t.length;i>r;r++)e=t[r],s(e)?n.push(e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):e&&e.source&&n.push(e.source);return new RegExp(n.join("|"),"i")}function C(){var e=t.crypto||t.msCrypto;if(!o(e)&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0,n="x"==t?e:3&e|8;return n.toString(16)})}function E(t){V[t]&&K.debug&&V[t].apply(W,A.call(arguments,1))}function T(){var e=t.RavenConfig;e&&K.config(e.dsn,e.config).install()}function F(t){var e=[];return h(t,function(t,n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}),e.join("&")}var j={remoteFetching:!1,collectWindowErrors:!0,linesOfContext:7,debug:!1},A=[].slice,D="?";j.wrap=function(t){function e(){try{return t.apply(this,arguments)}catch(e){throw j.report(e),e}}return e},j.report=function(){function n(t){s(),d.push(t)}function r(t){for(var e=d.length-1;e>=0;--e)d[e]===t&&d.splice(e,1)}function i(){u(),d=[]}function o(t,e){var n=null;if(!e||j.collectWindowErrors){for(var r in d)if(f(d,r))try{d[r].apply(null,[t].concat(A.call(arguments,2)))}catch(i){n=i}if(n)throw n}}function a(t,e,n,r,i){var a=null;if(g)j.computeStackTrace.augmentStackTraceWithInitialElement(g,e,n,t),l();else if(i)a=j.computeStackTrace(i),o(a,!0);else{var s={url:e,line:n,column:r};s.func=j.computeStackTrace.guessFunctionName(s.url,s.line),s.context=j.computeStackTrace.gatherContext(s.url,s.line),a={message:t,url:document.location.href,stack:[s]},o(a,!0)}return h?h.apply(this,arguments):!1}function s(){p||(h=t.onerror,t.onerror=a,p=!0)}function u(){p&&(t.onerror=h,p=!1,h=e)}function l(){var t=g,e=v;v=null,g=null,m=null,o.apply(null,[t,!1].concat(e))}function c(e,n){var r=A.call(arguments,1);if(g){if(m===e)return;l()}var i=j.computeStackTrace(e);if(g=i,m=e,v=r,t.setTimeout(function(){m===e&&l()},i.incomplete?2e3:0),n!==!1)throw e}var h,p,d=[],v=null,m=null,g=null;return c.subscribe=n,c.unsubscribe=r,c.uninstall=i,c}(),j.computeStackTrace=function(){function e(e){if(!j.remoteFetching)return"";try{var n=function(){try{return new t.XMLHttpRequest}catch(e){return new t.ActiveXObject("Microsoft.XMLHTTP")}},r=n();return r.open("GET",e,!1),r.send(""),r.responseText}catch(i){return""}}function n(t){if(!s(t))return[];if(!f(_,t)){var n="",r="";try{r=document.domain}catch(i){}-1!==t.indexOf(r)&&(n=e(t)),_[t]=n?n.split("\n"):[]}return _[t]}function r(t,e){var r,i=/function ([^(]*)\(([^)]*)\)/,a=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,s="",u=10,l=n(t);if(!l.length)return D;for(var c=0;u>c;++c)if(s=l[e-c]+s,!o(s)){if(r=a.exec(s))return r[1];if(r=i.exec(s))return r[1]}return D}function i(t,e){var r=n(t);if(!r.length)return null;var i=[],a=Math.floor(j.linesOfContext/2),s=a+j.linesOfContext%2,u=Math.max(0,e-a-1),l=Math.min(r.length,e+s-1);e-=1;for(var c=u;l>c;++c)o(r[c])||i.push(r[c]);return i.length>0?i:null}function a(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function u(t){return a(t).replace("<","(?:<|&lt;)").replace(">","(?:>|&gt;)").replace("&","(?:&|&amp;)").replace('"','(?:"|&quot;)').replace(/\s+/g,"\\s+")}function l(t,e){for(var r,i,o=0,a=e.length;a>o;++o)if((r=n(e[o])).length&&(r=r.join("\n"),i=t.exec(r)))return{url:e[o],line:r.substring(0,i.index).split("\n").length,column:i.index-r.lastIndexOf("\n",i.index)-1};return null}function c(t,e,r){var i,o=n(e),s=new RegExp("\\b"+a(t)+"\\b");return r-=1,o&&o.length>r&&(i=s.exec(o[r]))?i.index:null}function h(e){for(var n,r,i,o,s=[t.location.href],c=document.getElementsByTagName("script"),f=""+e,h=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,p=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,d=0;d<c.length;++d){var v=c[d];v.src&&s.push(v.src)}if(i=h.exec(f)){var m=i[1]?"\\s+"+i[1]:"",g=i[2].split(",").join("\\s*,\\s*");n=a(i[3]).replace(/;$/,";?"),r=new RegExp("function"+m+"\\s*\\(\\s*"+g+"\\s*\\)\\s*{\\s*"+n+"\\s*}")}else r=new RegExp(a(f).replace(/\s+/g,"\\s+"));if(o=l(r,s))return o;if(i=p.exec(f)){var y=i[1];if(n=u(i[2]),r=new RegExp("on"+y+"=[\\'\"]\\s*"+n+"\\s*[\\'\"]","i"),o=l(r,s[0]))return o;if(r=new RegExp(n),o=l(r,s))return o}return null}function p(t){if(!o(t.stack)&&t.stack){for(var e,n,a=/^\s*at (.*?) ?\(?((?:(?:file|https?|chrome-extension):.*?)|<anonymous>):(\d+)(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?@((?:file|https?|chrome).*?):(\d+)(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l=t.stack.split("\n"),f=[],h=/^(.*) is undefined$/.exec(t.message),p=0,d=l.length;d>p;++p){if(e=s.exec(l[p]))n={url:e[3],func:e[1]||D,args:e[2]?e[2].split(","):"",line:+e[4],column:e[5]?+e[5]:null};else if(e=a.exec(l[p]))n={url:e[2],func:e[1]||D,line:+e[3],column:e[4]?+e[4]:null};else{if(!(e=u.exec(l[p])))continue;n={url:e[2],func:e[1]||D,line:+e[3],column:e[4]?+e[4]:null}}!n.func&&n.line&&(n.func=r(n.url,n.line)),n.line&&(n.context=i(n.url,n.line)),f.push(n)}return f.length?(f[0].line&&!f[0].column&&h?f[0].column=c(h[1],f[0].url,f[0].line):f[0].column||o(t.columnNumber)||(f[0].column=t.columnNumber+1),{name:t.name,message:t.message,url:document.location.href,stack:f}):null}}function d(t){var e=t.stacktrace;if(!o(t.stacktrace)&&t.stacktrace){for(var n,a=/ line (\d+), column (\d+) in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\) in (.*):\s*$/i,s=e.split("\n"),u=[],l=0,c=s.length;c>l;l+=2)if(n=a.exec(s[l])){var f={line:+n[1],column:+n[2],func:n[3]||n[4],args:n[5]?n[5].split(","):[],url:n[6]};if(!f.func&&f.line&&(f.func=r(f.url,f.line)),f.line)try{f.context=i(f.url,f.line)}catch(h){}f.context||(f.context=[s[l+1]]),u.push(f)}return u.length?{name:t.name,message:t.message,url:document.location.href,stack:u}:null}}function v(e){var o=e.message.split("\n");if(o.length<4)return null;var a,s,c,h,p=/^\s*Line (\d+) of linked script ((?:file|https?)\S+)(?:: in function (\S+))?\s*$/i,d=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?)\S+)(?:: in function (\S+))?\s*$/i,v=/^\s*Line (\d+) of function script\s*$/i,m=[],g=document.getElementsByTagName("script"),y=[];for(s in g)f(g,s)&&!g[s].src&&y.push(g[s]);for(s=2,c=o.length;c>s;s+=2){var _=null;if(a=p.exec(o[s]))_={url:a[2],func:a[3],line:+a[1]};else if(a=d.exec(o[s])){_={url:a[3],func:a[4]};var b=+a[1],w=y[a[2]-1];if(w&&(h=n(_.url))){h=h.join("\n");var x=h.indexOf(w.innerText);x>=0&&(_.line=b+h.substring(0,x).split("\n").length)}}else if(a=v.exec(o[s])){var $=t.location.href.replace(/#.*$/,""),k=a[1],S=new RegExp(u(o[s+1]));h=l(S,[$]),_={url:$,line:h?h.line:k,func:""}}if(_){_.func||(_.func=r(_.url,_.line));var C=i(_.url,_.line),E=C?C[Math.floor(C.length/2)]:null;C&&E.replace(/^\s*/,"")===o[s+1].replace(/^\s*/,"")?_.context=C:_.context=[o[s+1]],m.push(_)}}return m.length?{name:e.name,message:o[0],url:document.location.href,stack:m}:null}function m(t,e,n,o){var a={url:e,line:n};if(a.url&&a.line){t.incomplete=!1,a.func||(a.func=r(a.url,a.line)),a.context||(a.context=i(a.url,a.line));var s=/ '([^']+)' /.exec(o);if(s&&(a.column=c(s[1],a.url,a.line)),t.stack.length>0&&t.stack[0].url===a.url){if(t.stack[0].line===a.line)return!1;if(!t.stack[0].line&&t.stack[0].func===a.func)return t.stack[0].line=a.line,t.stack[0].context=a.context,!1}return t.stack.unshift(a),t.partial=!0,!0}return t.incomplete=!0,!1}function g(t,e){for(var n,i,o,a=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,s=[],u={},l=!1,f=g.caller;f&&!l;f=f.caller)if(f!==y&&f!==j.report){if(i={url:null,func:D,line:null,column:null},f.name?i.func=f.name:(n=a.exec(f.toString()))&&(i.func=n[1]),"undefined"==typeof i.func)try{i.func=n.input.substring(0,n.input.indexOf("{"))}catch(p){}if(o=h(f)){i.url=o.url,i.line=o.line,i.func===D&&(i.func=r(i.url,i.line));var d=/ '([^']+)' /.exec(t.message||t.description);d&&(i.column=c(d[1],o.url,o.line))}u[""+f]?l=!0:u[""+f]=!0,s.push(i)}e&&s.splice(0,e);var v={name:t.name,message:t.message,url:document.location.href,stack:s};return m(v,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),v}function y(t,e){var n=null;e=null==e?0:+e;try{if(n=d(t))return n}catch(r){if(j.debug)throw r}try{if(n=p(t))return n}catch(r){if(j.debug)throw r}try{if(n=v(t))return n}catch(r){if(j.debug)throw r}try{if(n=g(t,e+1))return n}catch(r){if(j.debug)throw r}return{name:t.name,message:t.message,url:document.location.href}}var _={};return y.augmentStackTraceWithInitialElement=m,y.computeStackTraceFromStackProp=p,y.guessFunctionName=r,y.gatherContext=i,y}();var M,O,I,P,N,R,L=t.Raven,z=!("object"!=typeof JSON||!JSON.stringify),q={logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],crossOrigin:"anonymous",collectWindowErrors:!0,tags:{},maxMessageLength:100,extra:{}},H=!1,U=Object.prototype,W=t.console||{},V={},B=_();for(var Y in W)V[Y]=W[Y];var K={VERSION:"1.1.22",debug:!0,noConflict:function(){return t.Raven=L,K},config:function(t,e){if(I)return E("error","Error: Raven has already been configured"),K;if(!t)return K;var n=i(t),r=n.path.lastIndexOf("/"),o=n.path.substr(1,r);return e&&h(e,function(t,e){q[t]=e}),q.ignoreErrors.push(/^Script error\.?$/),q.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),q.ignoreErrors=S(q.ignoreErrors),q.ignoreUrls=q.ignoreUrls.length?S(q.ignoreUrls):!1,q.whitelistUrls=q.whitelistUrls.length?S(q.whitelistUrls):!1,q.includePaths=S(q.includePaths),N=n.user,R=n.path.substr(r+1),I="//"+n.host+(n.port?":"+n.port:"")+"/"+o+"api/"+R+"/store/",n.protocol&&(I=n.protocol+":"+I),q.fetchContext&&(j.remoteFetching=!0),q.linesOfContext&&(j.linesOfContext=q.linesOfContext),j.collectWindowErrors=!!q.collectWindowErrors,K},install:function(){return k()&&!H&&(j.report.subscribe(p),H=!0),K},context:function(t,n,r){return a(t)&&(r=n||[],n=t,t=e),K.wrap(t,n).apply(this,r)},wrap:function(t,n){function r(){for(var e=[],r=arguments.length,i=!t||t&&t.deep!==!1;r--;)e[r]=i?K.wrap(t,arguments[r]):arguments[r];try{return n.apply(this,e)}catch(o){throw K.captureException(o,t),o}}if(o(n)&&!a(t))return t;if(a(t)&&(n=t,t=e),!a(n))return n;if(n.__raven__)return n;for(var i in n)f(n,i)&&(r[i]=n[i]);return r.__raven__=!0,r.__inner__=n,r},uninstall:function(){return j.report.uninstall(),H=!1,K},captureException:function(t,e){if(!c(t))return K.captureMessage(t,e);M=t;try{var n=j.computeStackTrace(t);p(n,e)}catch(r){if(t!==r)throw r}return K},captureMessage:function(t,e){return q.ignoreErrors.test&&q.ignoreErrors.test(t)?void 0:(w(g({message:t+""},e)),K)},setUserContext:function(t){return P=t,K},setExtraContext:function(t){return q.extra=t||{},K},setTagsContext:function(t){return q.tags=t||{},K},setReleaseContext:function(t){return q.release=t,K},setDataCallback:function(t){return q.dataCallback=t,K},setShouldSendCallback:function(t){return q.shouldSendCallback=t,K},lastException:function(){return M},lastEventId:function(){return O},isSetup:function(){return k()}};K.setUser=K.setUserContext;var G="source protocol user pass host port path".split(" "),X=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;r.prototype=new Error,r.prototype.constructor=r;var J;T(),"function"==typeof define&&define.amd?(t.Raven=K,define("raven",[],function(){return K})):"object"==typeof module?module.exports=K:"object"==typeof exports?exports=K:t.Raven=K}("undefined"!=typeof window?window:this),function(t,e){var n=function(e){(t.execScript||function(e){t.eval.call(t,e)})(e)},r=function(t,e){return t instanceof(e||Array)},i=document,o="getElementsByTagName",a="length",s="readyState",u="onreadystatechange",l=i[o]("script"),c=l[l[a]-1],f=c.innerHTML.replace(/^\s+|\s+$/g,"");if(!t.ljs){var h=c.src.match(/checkLoaded/)?1:0,p=i[o]("head")[0]||i.documentElement,d=function(t){var e={};return e.u=t.replace(/#(=)?([^#]*)?/g,function(t,n,r){return e[n?"f":"i"]=r,""}),e},v=function(t,e,n){var r,o=i.createElement(t);n&&(o[s]?o[u]=function(){("loaded"===o[s]||"complete"===o[s])&&(o[u]=null,n())}:o.onload=n);for(r in e)e[r]&&(o[r]=e[r]);p.appendChild(o)},m=function(t,e){if(this.aliases&&this.aliases[t]){var n=this.aliases[t].slice(0);return r(n)||(n=[n]),e&&n.push(e),this.load.apply(this,n)}if(r(t)){for(var i=t[a];i--;)this.load(t[i]);return e&&t.push(e),this.load.apply(this,t)}return t.match(/\.css\b/)?this.loadcss(t,e):this.loadjs(t,e)},g={},y={aliases:{},loadjs:function(t,n){var r=d(t);return t=r.u,g[t]===!0?(n&&n(),this):g[t]!==e?(n&&(g[t]=function(t,e){return function(){t&&t(),e&&e()}}(g[t],n)),this):(g[t]=function(e){return function(){g[t]=!0,e&&e()}}(n),n=function(){g[t]()},v("script",{type:"text/javascript",src:t,id:r.i,onerror:function(t){if(r.f){var e=t.currentTarget;e.parentNode.removeChild(e),v("script",{type:"text/javascript",src:r.f,id:r.i},n)}}},n),this)},loadcss:function(t,e){var n=d(t);return t=n.u,g[t]||v("link",{type:"text/css",rel:"stylesheet",href:t,id:n.i}),g[t]=!0,e&&e(),this},load:function(){var t=arguments,n=t[a];return 1===n&&r(t[0],Function)?(t[0](),this):(m.call(this,t[0],1>=n?e:function(){y.load.apply(y,[].slice.call(t,1))}),this)},addAliases:function(t){for(var e in t)this.aliases[e]=r(t[e])?t[e].slice(0):t[e];return this}};if(h){var _,b,w,x;for(_=0,b=l[a];b>_;_++)(x=l[_].getAttribute("src"))&&(g[x.replace(/#.*$/,"")]=!0);for(w=i[o]("link"),_=0,b=w[a];b>_;_++)("stylesheet"===w[_].rel||"text/css"===w[_].type)&&(g[w[_].getAttribute("href").replace(/#.*$/,"")]=!0)}t.ljs=y}f&&n(f)}(window),MessageFormat.locale.af=function(t){return 1===t?"one":"other"},MessageFormat.locale.am=function(t){return 0===t||1==t?"one":"other"},MessageFormat.locale.ar=function(t){return 0===t?"zero":1==t?"one":2==t?"two":t%100>=3&&10>=t%100&&t==Math.floor(t)?"few":t%100>=11&&99>=t%100&&t==Math.floor(t)?"many":"other"},MessageFormat.locale.bg=function(t){return 1===t?"one":"other"},MessageFormat.locale.bn=function(t){return 1===t?"one":"other"},MessageFormat.locale.br=function(t){return 0===t?"zero":1==t?"one":2==t?"two":3==t?"few":6==t?"many":"other"},MessageFormat.locale.ca=function(t){return 1===t?"one":"other"},MessageFormat.locale.cs=function(t){return 1==t?"one":2==t||3==t||4==t?"few":"other"},MessageFormat.locale.cy=function(t){return 0===t?"zero":1==t?"one":2==t?"two":3==t?"few":6==t?"many":"other"},MessageFormat.locale.da=function(t){return 1===t?"one":"other"},MessageFormat.locale.de=function(t){return 1===t?"one":"other"},MessageFormat.locale.el=function(t){return 1===t?"one":"other"},MessageFormat.locale.en=function(t){return 1===t?"one":"other"},MessageFormat.locale.es=function(t){return 1===t?"one":"other"},MessageFormat.locale.et=function(t){return 1===t?"one":"other"},MessageFormat.locale.eu=function(t){return 1===t?"one":"other"},MessageFormat.locale.fa=function(t){return"other"},MessageFormat.locale.fi=function(t){return 1===t?"one":"other"},MessageFormat.locale.fil=function(t){return 0===t||1==t?"one":"other"},MessageFormat.locale.fr=function(t){return 0===t||1==t?"one":"other"},MessageFormat.locale.ga=function(t){return 1==t?"one":2==t?"two":"other"},MessageFormat.locale.gl=function(t){return 1===t?"one":"other"},MessageFormat.locale.gsw=function(t){return 1===t?"one":"other"},MessageFormat.locale.gu=function(t){return 1===t?"one":"other"},MessageFormat.locale.he=function(t){return 1===t?"one":"other"},MessageFormat.locale.hi=function(t){return 0===t||1==t?"one":"other"},MessageFormat.locale.hr=function(t){return t%10==1&&t%100!=11?"one":t%10>=2&&4>=t%10&&(12>t%100||t%100>14)&&t==Math.floor(t)?"few":t%10===0||t%10>=5&&9>=t%10||t%100>=11&&14>=t%100&&t==Math.floor(t)?"many":"other"},MessageFormat.locale.hu=function(t){return"other"},MessageFormat.locale.id=function(t){return"other"},MessageFormat.locale["in"]=function(t){return"other"},MessageFormat.locale.is=function(t){return 1===t?"one":"other"},MessageFormat.locale.it=function(t){return 1===t?"one":"other"},MessageFormat.locale.iw=function(t){return 1===t?"one":"other"},MessageFormat.locale.ja=function(t){return"other"},MessageFormat.locale.kn=function(t){return"other"},MessageFormat.locale.ko=function(t){return"other"},MessageFormat.locale.lag=function(t){return 0===t?"zero":t>0&&2>t?"one":"other"},MessageFormat.locale.ln=function(t){return 0===t||1==t?"one":"other"},MessageFormat.locale.lt=function(t){return t%10==1&&(11>t%100||t%100>19)?"one":t%10>=2&&9>=t%10&&(11>t%100||t%100>19)&&t==Math.floor(t)?"few":"other"},MessageFormat.locale.lv=function(t){return 0===t?"zero":t%10==1&&t%100!=11?"one":"other"},MessageFormat.locale.mk=function(t){return t%10==1&&11!=t?"one":"other"},MessageFormat.locale.ml=function(t){return 1===t?"one":"other"},MessageFormat.locale.mo=function(t){return 1==t?"one":0===t||1!=t&&t%100>=1&&19>=t%100&&t==Math.floor(t)?"few":"other"},MessageFormat.locale.mr=function(t){return 1===t?"one":"other"},MessageFormat.locale.ms=function(t){return"other"},MessageFormat.locale.mt=function(t){return 1==t?"one":0===t||t%100>=2&&4>=t%100&&t==Math.floor(t)?"few":t%100>=11&&19>=t%100&&t==Math.floor(t)?"many":"other"},MessageFormat.locale.nl=function(t){return 1===t?"one":"other"},MessageFormat.locale.no=function(t){return 1===t?"one":"other"},MessageFormat.locale.or=function(t){return 1===t?"one":"other"},MessageFormat.locale.pl=function(t){return 1==t?"one":t%10>=2&&4>=t%10&&(12>t%100||t%100>14)&&t==Math.floor(t)?"few":t%10===0||1!=t&&t%10==1||(t%10>=5&&9>=t%10||t%100>=12&&14>=t%100)&&t==Math.floor(t)?"many":"other"},MessageFormat.locale.pt=function(t){return 1===t?"one":"other"},MessageFormat.locale.ro=function(t){return 1==t?"one":0===t||1!=t&&t%100>=1&&19>=t%100&&t==Math.floor(t)?"few":"other"},MessageFormat.locale.ru=function(t){return t%10==1&&t%100!=11?"one":t%10>=2&&4>=t%10&&(12>t%100||t%100>14)&&t==Math.floor(t)?"few":t%10===0||t%10>=5&&9>=t%10||t%100>=11&&14>=t%100&&t==Math.floor(t)?"many":"other"},MessageFormat.locale.shi=function(t){return t>=0&&1>=t?"one":t>=2&&10>=t&&t==Math.floor(t)?"few":"other"},MessageFormat.locale.sk=function(t){return 1==t?"one":2==t||3==t||4==t?"few":"other"},MessageFormat.locale.sl=function(t){return t%100==1?"one":t%100==2?"two":t%100==3||t%100==4?"few":"other"},MessageFormat.locale.sq=function(t){return 1===t?"one":"other"},MessageFormat.locale.sr=function(t){return t%10==1&&t%100!=11?"one":t%10>=2&&4>=t%10&&(12>t%100||t%100>14)&&t==Math.floor(t)?"few":t%10===0||t%10>=5&&9>=t%10||t%100>=11&&14>=t%100&&t==Math.floor(t)?"many":"other"},MessageFormat.locale.sv=function(t){return 1===t?"one":"other"},MessageFormat.locale.sw=function(t){return 1===t?"one":"other"},MessageFormat.locale.ta=function(t){return 1===t?"one":"other"},MessageFormat.locale.te=function(t){return 1===t?"one":"other"},MessageFormat.locale.th=function(t){return"other"},MessageFormat.locale.tl=function(t){return 0===t||1==t?"one":"other"},MessageFormat.locale.tr=function(t){return"other"},MessageFormat.locale.uk=function(t){return t%10==1&&t%100!=11?"one":t%10>=2&&4>=t%10&&(12>t%100||t%100>14)&&t==Math.floor(t)?"few":t%10===0||t%10>=5&&9>=t%10||t%100>=11&&14>=t%100&&t==Math.floor(t)?"many":"other"},MessageFormat.locale.ur=function(t){return 1===t?"one":"other"},MessageFormat.locale.vi=function(t){return"other"},MessageFormat.locale.zh=function(t){return"other"};var mod;mod=angular.module("infinite-scroll",[]),mod.value("THROTTLE_MILLISECONDS",null),mod.directive("infiniteScroll",["$rootScope","$window","$interval","THROTTLE_MILLISECONDS",function(t,e,n,r){return{scope:{infiniteScroll:"&",infiniteScrollContainer:"=",infiniteScrollDistance:"=",infiniteScrollDisabled:"=",infiniteScrollUseDocumentBottom:"=",infiniteScrollListenForEvent:"@"},link:function(i,o,a){var s,u,l,c,f,h,p,d,v,m,g,y,_,b,w,x,$,k;return k=angular.element(e),_=null,b=null,u=null,l=null,m=!0,$=!1,x=null,v=function(t){return t=t[0]||t,isNaN(t.offsetHeight)?t.document.documentElement.clientHeight:t.offsetHeight},g=function(t){return t[0].getBoundingClientRect&&!t.css("none")?t[0].getBoundingClientRect().top+y(t):void 0},y=function(t){return t=t[0]||t,isNaN(window.pageYOffset)?t.document.documentElement.scrollTop:t.ownerDocument.defaultView.pageYOffset},d=function(){var e,n,r,a,s;return l===k?(e=v(l)+y(l[0].document.documentElement),r=g(o)+v(o)):(e=v(l),n=0,void 0!==g(l)&&(n=g(l)),r=g(o)-n+v(o)),$&&(r=v((o[0].ownerDocument||o[0].document).documentElement)),a=r-e,s=a<=v(l)*_+1,s?(u=!0,b?i.$$phase||t.$$phase?i.infiniteScroll():i.$apply(i.infiniteScroll):void 0):u=!1},w=function(t,e){var r,i,o;return o=null,i=0,r=function(){var e;return i=(new Date).getTime(),n.cancel(o),o=null,t.call(),e=null},function(){var a,s;return a=(new Date).getTime(),s=e-(a-i),0>=s?(clearTimeout(o),n.cancel(o),o=null,i=a,t.call()):o?void 0:o=n(r,s,1)}},null!=r&&(d=w(d,r)),i.$on("$destroy",function(){return l.unbind("scroll",d),null!=x?(x(),x=null):void 0}),h=function(t){return _=parseFloat(t)||0},i.$watch("infiniteScrollDistance",h),h(i.infiniteScrollDistance),f=function(t){return b=!t,b&&u?(u=!1,d()):void 0},i.$watch("infiniteScrollDisabled",f),f(i.infiniteScrollDisabled),p=function(t){return $=t},i.$watch("infiniteScrollUseDocumentBottom",p),p(i.infiniteScrollUseDocumentBottom),s=function(t){return null!=l&&l.unbind("scroll",d),l=t,null!=t?l.bind("scroll",d):void 0},s(k),i.infiniteScrollListenForEvent&&(x=t.$on(i.infiniteScrollListenForEvent,d)),c=function(t){if(null!=t&&0!==t.length){if(t instanceof HTMLElement?t=angular.element(t):"function"==typeof t.append?t=angular.element(t[t.length-1]):"string"==typeof t&&(t=angular.element(document.querySelector(t))),null!=t)return s(t);throw new Exception("invalid infinite-scroll-container attribute.")}},i.$watch("infiniteScrollContainer",c),c(i.infiniteScrollContainer||[]),null!=a.infiniteScrollParent&&s(angular.element(o.parent())),null!=a.infiniteScrollImmediateCheck&&(m=i.$eval(a.infiniteScrollImmediateCheck)),n(function(){return m?d():void 0},0,1)}}}]),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Immutable=e()}(this,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:F(t)}function n(t){return a(t)?t:j(t)}function r(t){return s(t)?t:A(t)}function i(t){return o(t)&&!u(t)?t:D(t)}function o(t){return!(!t||!t[ln])}function a(t){return!(!t||!t[cn])}function s(t){return!(!t||!t[fn])}function u(t){return a(t)||s(t)}function l(t){return!(!t||!t[hn])}function c(t){return t.value=!1,t}function f(t){t&&(t.value=!0)}function h(){}function p(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;n>i;i++)r[i]=t[i+e];return r}function d(t){return void 0===t.size&&(t.size=t.__iterate(m)),t.size}function v(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return 0>e?d(t)+e:e}function m(){return!0}function g(t,e,n){return(0===t||void 0!==n&&-n>=t)&&(void 0===e||void 0!==n&&e>=n)}function y(t,e){return b(t,e,0)}function _(t,e){return b(t,e,e)}function b(t,e,n){return void 0===t?n:0>t?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function w(t){this.next=t}function x(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function $(){return{value:void 0,done:!0}}function k(t){return!!E(t)}function S(t){return t&&"function"==typeof t.next}function C(t){var e=E(t);return e&&e.call(t)}function E(t){var e=t&&($n&&t[$n]||t[kn]);return"function"==typeof e?e:void 0}function T(t){return t&&"number"==typeof t.length}function F(t){return null===t||void 0===t?R():o(t)?t.toSeq():q(t)}function j(t){return null===t||void 0===t?R().toKeyedSeq():o(t)?a(t)?t.toSeq():t.fromEntrySeq():L(t)}function A(t){return null===t||void 0===t?R():o(t)?a(t)?t.entrySeq():t.toIndexedSeq():z(t)}function D(t){return(null===t||void 0===t?R():o(t)?a(t)?t.entrySeq():t:z(t)).toSetSeq()}function M(t){this._array=t,this.size=t.length}function O(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function I(t){this._iterable=t,this.size=t.length||t.size}function P(t){this._iterator=t,this._iteratorCache=[]}function N(t){return!(!t||!t[Cn])}function R(){return En||(En=new M([]))}function L(t){var e=Array.isArray(t)?new M(t).fromEntrySeq():S(t)?new P(t).fromEntrySeq():k(t)?new I(t).fromEntrySeq():"object"==typeof t?new O(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function z(t){var e=H(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function q(t){var e=H(t)||"object"==typeof t&&new O(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function H(t){return T(t)?new M(t):S(t)?new P(t):k(t)?new I(t):void 0}function U(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,a=0;o>=a;a++){var s=i[n?o-a:a];if(e(s[1],r?s[0]:a,t)===!1)return a+1}return a}return t.__iterateUncached(e,n)}function W(t,e,n,r){
var i=t._cache;if(i){var o=i.length-1,a=0;return new w(function(){var t=i[n?o-a:a];return a++>o?$():x(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function V(t,e){return e?B(e,t,"",{"":t}):Y(t)}function B(t,e,n,r){return Array.isArray(e)?t.call(r,n,A(e).map(function(n,r){return B(t,n,r,e)})):K(e)?t.call(r,n,j(e).map(function(n,r){return B(t,n,r,e)})):e}function Y(t){return Array.isArray(t)?A(t).map(Y).toList():K(t)?j(t).map(Y).toMap():t}function K(t){return t&&(t.constructor===Object||void 0===t.constructor)}function G(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return"function"==typeof t.equals&&"function"==typeof e.equals&&t.equals(e)?!0:!1}function X(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||s(t)!==s(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(l(t)){var r=t.entries();return e.every(function(t,e){var i=r.next().value;return i&&G(i[1],t)&&(n||G(i[0],e))})&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var c=t;t=e,e=c}var f=!0,h=e.__iterate(function(e,r){return(n?t.has(e):i?G(e,t.get(r,gn)):G(t.get(r,gn),e))?void 0:(f=!1,!1)});return f&&t.size===h}function J(t,e){if(!(this instanceof J))return new J(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Tn)return Tn;Tn=this}}function Q(t,e){if(!t)throw new Error(e)}function Z(t,e,n){if(!(this instanceof Z))return new Z(t,e,n);if(Q(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),t>e&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(Fn)return Fn;Fn=this}}function tt(){throw TypeError("Abstract")}function et(){}function nt(){}function rt(){}function it(t){return t>>>1&1073741824|3221225471&t}function ot(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(t=t.valueOf(),t===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)t/=4294967295,n^=t;return it(n)}if("string"===e)return t.length>Nn?at(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return ut(t);if("function"==typeof t.toString)return st(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function at(t){var e=zn[t];return void 0===e&&(e=st(t),Ln===Rn&&(Ln=0,zn={}),Ln++,zn[t]=e),e}function st(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return it(e)}function ut(t){var e;if(On&&(e=jn.get(t),void 0!==e))return e;if(e=t[Pn],void 0!==e)return e;if(!Mn){if(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Pn],void 0!==e)return e;if(e=lt(t),void 0!==e)return e}if(e=++In,1073741824&In&&(In=0),On)jn.set(t,e);else{if(void 0!==Dn&&Dn(t)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Mn)Object.defineProperty(t,Pn,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Pn]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Pn]=e}}return e}function lt(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ct(t){Q(t!==1/0,"Cannot perform this action with an infinite size.")}function ft(t){return null===t||void 0===t?xt():ht(t)&&!l(t)?t:xt().withMutations(function(e){var r=n(t);ct(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function ht(t){return!(!t||!t[qn])}function pt(t,e){this.ownerID=t,this.entries=e}function dt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function vt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function mt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function gt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function yt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&bt(t._root)}function _t(t,e){return x(t,e[0],e[1])}function bt(t,e){return{node:t,index:0,__prev:e}}function wt(t,e,n,r){var i=Object.create(Hn);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function xt(){return Un||(Un=wt(0))}function $t(t,e,n){var r,i;if(t._root){var o=c(yn),a=c(_n);if(r=kt(t._root,t.__ownerID,0,void 0,e,n,o,a),!a.value)return t;i=t.size+(o.value?n===gn?-1:1:0)}else{if(n===gn)return t;i=1,r=new pt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?wt(i,r):xt()}function kt(t,e,n,r,i,o,a,s){return t?t.update(e,n,r,i,o,a,s):o===gn?t:(f(s),f(a),new gt(e,r,[i,o]))}function St(t){return t.constructor===gt||t.constructor===mt}function Ct(t,e,n,r,i){if(t.keyHash===r)return new mt(e,r,[t.entry,i]);var o,a=(0===n?t.keyHash:t.keyHash>>>n)&mn,s=(0===n?r:r>>>n)&mn,u=a===s?[Ct(t,e,n+dn,r,i)]:(o=new gt(e,r,i),s>a?[t,o]:[o,t]);return new dt(e,1<<a|1<<s,u)}function Et(t,e,n,r){t||(t=new h);for(var i=new gt(t,ot(n),[n,r]),o=0;o<e.length;o++){var a=e[o];i=i.update(t,0,void 0,a[0],a[1])}return i}function Tt(t,e,n,r){for(var i=0,o=0,a=new Array(n),s=0,u=1,l=e.length;l>s;s++,u<<=1){var c=e[s];void 0!==c&&s!==r&&(i|=u,a[o++]=c)}return new dt(t,i,a)}function Ft(t,e,n,r,i){for(var o=0,a=new Array(vn),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[o++]:void 0;return a[r]=i,new vt(t,o+1,a)}function jt(t,e,r){for(var i=[],a=0;a<r.length;a++){var s=r[a],u=n(s);o(s)||(u=u.map(function(t){return V(t)})),i.push(u)}return Mt(t,e,i)}function At(t,e,n){return t&&t.mergeDeep&&o(e)?t.mergeDeep(e):G(t,e)?t:e}function Dt(t){return function(e,n,r){if(e&&e.mergeDeepWith&&o(n))return e.mergeDeepWith(t,n);var i=t(e,n,r);return G(e,i)?e:i}}function Mt(t,e,n){return n=n.filter(function(t){return 0!==t.size}),0===n.length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,gn,function(t){return t===gn?n:e(t,n,r)})}:function(e,n){t.set(n,e)},i=0;i<n.length;i++)n[i].forEach(r)}):t.constructor(n[0])}function Ot(t,e,n,r){var i=t===gn,o=e.next();if(o.done){var a=i?n:t,s=r(a);return s===a?t:s}Q(i||t&&t.set,"invalid keyPath");var u=o.value,l=i?gn:t.get(u,gn),c=Ot(l,e,n,r);return c===l?t:c===gn?t.remove(u):(i?xt():t).set(u,c)}function It(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function Pt(t,e,n,r){var i=r?t:p(t);return i[e]=n,i}function Nt(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),a=0,s=0;i>s;s++)s===e?(o[s]=n,a=-1):o[s]=t[s+a];return o}function Rt(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),o=0,a=0;r>a;a++)a===e&&(o=1),i[a]=t[a+o];return i}function Lt(t){var e=Wt();if(null===t||void 0===t)return e;if(zt(t))return t;var n=r(t),i=n.size;return 0===i?e:(ct(i),i>0&&vn>i?Ut(0,i,dn,null,new qt(n.toArray())):e.withMutations(function(t){t.setSize(i),n.forEach(function(e,n){return t.set(n,e)})}))}function zt(t){return!(!t||!t[Yn])}function qt(t,e){this.array=t,this.ownerID=e}function Ht(t,e){function n(t,e,n){return 0===e?r(t,n):i(t,e,n)}function r(t,n){var r=n===s?u&&u.array:t&&t.array,i=n>o?0:o-n,l=a-n;return l>vn&&(l=vn),function(){if(i===l)return Xn;var t=e?--l:i++;return r&&r[t]}}function i(t,r,i){var s,u=t&&t.array,l=i>o?0:o-i>>r,c=(a-i>>r)+1;return c>vn&&(c=vn),function(){for(;;){if(s){var t=s();if(t!==Xn)return t;s=null}if(l===c)return Xn;var o=e?--c:l++;s=n(u&&u[o],r-dn,i+(o<<r))}}}var o=t._origin,a=t._capacity,s=Jt(a),u=t._tail;return n(t._root,t._level,0)}function Ut(t,e,n,r,i,o,a){var s=Object.create(Kn);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function Wt(){return Gn||(Gn=Ut(0,0,dn))}function Vt(t,e,n){if(e=v(t,e),e!==e)return t;if(e>=t.size||0>e)return t.withMutations(function(t){0>e?Gt(t,e).set(0,n):Gt(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,i=t._root,o=c(_n);return e>=Jt(t._capacity)?r=Bt(r,t.__ownerID,0,e,n,o):i=Bt(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):Ut(t._origin,t._capacity,t._level,i,r):t}function Bt(t,e,n,r,i,o){var a=r>>>n&mn,s=t&&a<t.array.length;if(!s&&void 0===i)return t;var u;if(n>0){var l=t&&t.array[a],c=Bt(l,e,n-dn,r,i,o);return c===l?t:(u=Yt(t,e),u.array[a]=c,u)}return s&&t.array[a]===i?t:(f(o),u=Yt(t,e),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function Yt(t,e){return e&&t&&e===t.ownerID?t:new qt(t?t.array.slice():[],e)}function Kt(t,e){if(e>=Jt(t._capacity))return t._tail;if(e<1<<t._level+dn){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&mn],r-=dn;return n}}function Gt(t,e,n){void 0!==e&&(e=0|e),void 0!==n&&(n=0|n);var r=t.__ownerID||new h,i=t._origin,o=t._capacity,a=i+e,s=void 0===n?o:0>n?o+n:i+n;if(a===i&&s===o)return t;if(a>=s)return t.clear();for(var u=t._level,l=t._root,c=0;0>a+c;)l=new qt(l&&l.array.length?[void 0,l]:[],r),u+=dn,c+=1<<u;c&&(a+=c,i+=c,s+=c,o+=c);for(var f=Jt(o),p=Jt(s);p>=1<<u+dn;)l=new qt(l&&l.array.length?[l]:[],r),u+=dn;var d=t._tail,v=f>p?Kt(t,s-1):p>f?new qt([],r):d;if(d&&p>f&&o>a&&d.array.length){l=Yt(l,r);for(var m=l,g=u;g>dn;g-=dn){var y=f>>>g&mn;m=m.array[y]=Yt(m.array[y],r)}m.array[f>>>dn&mn]=d}if(o>s&&(v=v&&v.removeAfter(r,0,s)),a>=p)a-=p,s-=p,u=dn,l=null,v=v&&v.removeBefore(r,0,a);else if(a>i||f>p){for(c=0;l;){var _=a>>>u&mn;if(_!==p>>>u&mn)break;_&&(c+=(1<<u)*_),u-=dn,l=l.array[_]}l&&a>i&&(l=l.removeBefore(r,u,a-c)),l&&f>p&&(l=l.removeAfter(r,u,p-c)),c&&(a-=c,s-=c)}return t.__ownerID?(t.size=s-a,t._origin=a,t._capacity=s,t._level=u,t._root=l,t._tail=v,t.__hash=void 0,t.__altered=!0,t):Ut(a,s,u,l,v)}function Xt(t,e,n){for(var i=[],a=0,s=0;s<n.length;s++){var u=n[s],l=r(u);l.size>a&&(a=l.size),o(u)||(l=l.map(function(t){return V(t)})),i.push(l)}return a>t.size&&(t=t.setSize(a)),Mt(t,e,i)}function Jt(t){return vn>t?0:t-1>>>dn<<dn}function Qt(t){return null===t||void 0===t?ee():Zt(t)?t:ee().withMutations(function(e){var r=n(t);ct(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function Zt(t){return ht(t)&&l(t)}function te(t,e,n,r){var i=Object.create(Qt.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function ee(){return Jn||(Jn=te(xt(),Wt()))}function ne(t,e,n){var r,i,o=t._map,a=t._list,s=o.get(e),u=void 0!==s;if(n===gn){if(!u)return t;a.size>=vn&&a.size>=2*o.size?(i=a.filter(function(t,e){return void 0!==t&&s!==e}),r=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=o,i=a.set(s,[e,n])}else r=o.set(e,a.size),i=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):te(r,i)}function re(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ae(t){this._iter=t,this.size=t.size}function se(t){var e=Te(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Fe,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return e(n,t,r)!==!1},n)},e.__iteratorUncached=function(e,n){if(e===xn){var r=t.__iterator(e,n);return new w(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===wn?bn:wn,n)},e}function ue(t,e,n){var r=Te(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,gn);return o===gn?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate(function(t,i,a){return r(e.call(n,t,i,a),i,o)!==!1},i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(xn,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return x(r,s,e.call(n,a[1],s,t),i)})},r}function le(t,e){var n=Te(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=Fe,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function ce(t,e,n,r){var i=Te(t);return r&&(i.has=function(r){var i=t.get(r,gn);return i!==gn&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,gn);return o!==gn&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate(function(t,o,u){return e.call(n,t,o,u)?(s++,i(t,r?o:s-1,a)):void 0},o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(xn,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(e.call(n,c,l,t))return x(i,r?l:s++,c,o)}})},i}function fe(t,e,n){var r=ft().asMutable();return t.__iterate(function(i,o){r.update(e.call(n,i,o,t),0,function(t){return t+1})}),r.asImmutable()}function he(t,e,n){var r=a(t),i=(l(t)?Qt():ft()).asMutable();t.__iterate(function(o,a){i.update(e.call(n,o,a,t),function(t){return t=t||[],t.push(r?[a,o]:o),t})});var o=Ee(t);return i.map(function(e){return ke(t,o(e))})}function pe(t,e,n,r){var i=t.size;if(void 0!==e&&(e=0|e),void 0!==n&&(n=0|n),g(e,n,i))return t;var o=y(e,i),a=_(n,i);if(o!==o||a!==a)return pe(t.toSeq().cacheResult(),e,n,r);var s,u=a-o;u===u&&(s=0>u?0:u);var l=Te(t);return l.size=0===s?s:t.size&&s||void 0,!r&&N(t)&&s>=0&&(l.get=function(e,n){return e=v(this,e),e>=0&&s>e?t.get(e+o,n):n}),l.__iterateUncached=function(e,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,u=!0,l=0;return t.__iterate(function(t,n){return u&&(u=a++<o)?void 0:(l++,e(t,r?n:l-1,i)!==!1&&l!==s)}),l},l.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);var i=0!==s&&t.__iterator(e,n),a=0,u=0;return new w(function(){for(;a++<o;)i.next();if(++u>s)return $();var t=i.next();return r||e===wn?t:e===bn?x(e,u-1,void 0,t):x(e,u-1,t.value[1],t)})},l}function de(t,e,n){var r=Te(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return t.__iterate(function(t,i,s){return e.call(n,t,i,s)&&++a&&r(t,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=t.__iterator(xn,i),s=!0;return new w(function(){if(!s)return $();var t=a.next();if(t.done)return t;var i=t.value,u=i[0],l=i[1];return e.call(n,l,u,o)?r===xn?t:x(r,u,l,t):(s=!1,$())})},r}function ve(t,e,n,r){var i=Te(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate(function(t,o,l){return s&&(s=e.call(n,t,o,l))?void 0:(u++,i(t,r?o:u-1,a))}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(xn,o),u=!0,l=0;return new w(function(){var t,o,c;do{if(t=s.next(),t.done)return r||i===wn?t:i===bn?x(i,l++,void 0,t):x(i,l++,t.value[1],t);var f=t.value;o=f[0],c=f[1],u&&(u=e.call(n,c,o,a))}while(u);return i===xn?t:x(i,o,c,t)})},i}function me(t,e){var r=a(t),i=[t].concat(e).map(function(t){return o(t)?r&&(t=n(t)):t=r?L(t):z(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var u=i[0];if(u===t||r&&a(u)||s(t)&&s(u))return u}var l=new M(i);return r?l=l.toKeyedSeq():s(t)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=i.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),l}function ge(t,e,n){var r=Te(t);return r.__iterateUncached=function(r,i){function a(t,l){var c=this;t.__iterate(function(t,i){return(!e||e>l)&&o(t)?a(t,l+1):r(t,n?i:s++,c)===!1&&(u=!0),!u},i)}var s=0,u=!1;return a(t,0),s},r.__iteratorUncached=function(r,i){var a=t.__iterator(r,i),s=[],u=0;return new w(function(){for(;a;){var t=a.next();if(t.done===!1){var l=t.value;if(r===xn&&(l=l[1]),e&&!(s.length<e)||!o(l))return n?t:x(r,u++,l,t);s.push(a),a=l.__iterator(r,i)}else a=s.pop()}return $()})},r}function ye(t,e,n){var r=Ee(t);return t.toSeq().map(function(i,o){return r(e.call(n,i,o,t))}).flatten(!0)}function _e(t,e){var n=Te(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return t.__iterate(function(t,r){return(!o||n(e,o++,i)!==!1)&&n(t,o++,i)!==!1},r),o},n.__iteratorUncached=function(n,r){var i,o=t.__iterator(wn,r),a=0;return new w(function(){return(!i||a%2)&&(i=o.next(),i.done)?i:a%2?x(n,a++,e):x(n,a++,i.value,i)})},n}function be(t,e,n){e||(e=je);var r=a(t),i=0,o=t.toSeq().map(function(e,r){return[r,e,i++,n?n(e,r,t):e]}).toArray();return o.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),r?j(o):s(t)?A(o):D(o)}function we(t,e,n){if(e||(e=je),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return xe(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return xe(e,t,n)?n:t})}function xe(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(void 0===n||null===n||n!==n)||r>0}function $e(t,n,r){var i=Te(t);return i.size=new M(r).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(wn,e),i=0;!(n=r.next()).done&&t(n.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=e(t),C(i?t.reverse():t)}),a=0,s=!1;return new w(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?$():x(t,a++,n.apply(null,e.map(function(t){return t.value})))})},i}function ke(t,e){return N(t)?e:t.constructor(e)}function Se(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ce(t){return ct(t.size),d(t)}function Ee(t){return a(t)?n:s(t)?r:i}function Te(t){return Object.create((a(t)?j:s(t)?A:D).prototype)}function Fe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):F.prototype.cacheResult.call(this)}function je(t,e){return t>e?1:e>t?-1:0}function Ae(t){var n=C(t);if(!n){if(!T(t))throw new TypeError("Expected iterable or array-like: "+t);n=C(e(t))}return n}function De(t,e){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(t);Ie(i,a),i.size=a.length,i._name=e,i._keys=a,i._defaultValues=t}this._map=ft(o)},i=r.prototype=Object.create(Qn);return i.constructor=r,r}function Me(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function Oe(t){return t._name||t.constructor.name||"Record"}function Ie(t,e){try{e.forEach(Pe.bind(void 0,t))}catch(n){}}function Pe(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Q(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Ne(t){return null===t||void 0===t?qe():Re(t)&&!l(t)?t:qe().withMutations(function(e){var n=i(t);ct(n.size),n.forEach(function(t){return e.add(t)})})}function Re(t){return!(!t||!t[Zn])}function Le(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function ze(t,e){var n=Object.create(tr);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function qe(){return er||(er=ze(xt()))}function He(t){return null===t||void 0===t?Ve():Ue(t)?t:Ve().withMutations(function(e){var n=i(t);ct(n.size),n.forEach(function(t){return e.add(t)})})}function Ue(t){return Re(t)&&l(t)}function We(t,e){var n=Object.create(nr);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Ve(){return rr||(rr=We(ee()))}function Be(t){return null===t||void 0===t?Ge():Ye(t)?t:Ge().unshiftAll(t)}function Ye(t){return!(!t||!t[ir])}function Ke(t,e,n,r){var i=Object.create(or);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Ge(){return ar||(ar=Ke(0))}function Xe(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function Je(t,e){return e}function Qe(t,e){return[e,t]}function Ze(t){return function(){return!t.apply(this,arguments)}}function tn(t){return function(){return-t.apply(this,arguments)}}function en(t){return"string"==typeof t?JSON.stringify(t):t}function nn(){return p(arguments)}function rn(t,e){return e>t?1:t>e?-1:0}function on(t){if(t.size===1/0)return 0;var e=l(t),n=a(t),r=e?1:0,i=t.__iterate(n?e?function(t,e){r=31*r+sn(ot(t),ot(e))|0}:function(t,e){r=r+sn(ot(t),ot(e))|0}:e?function(t){r=31*r+ot(t)|0}:function(t){r=r+ot(t)|0});return an(i,r)}function an(t,e){return e=An(e,3432918353),e=An(e<<15|e>>>-15,461845907),e=An(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=An(e^e>>>16,2246822507),e=An(e^e>>>13,3266489909),e=it(e^e>>>16)}function sn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var un=Array.prototype.slice;t(n,e),t(r,e),t(i,e),e.isIterable=o,e.isKeyed=a,e.isIndexed=s,e.isAssociative=u,e.isOrdered=l,e.Keyed=n,e.Indexed=r,e.Set=i;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",hn="@@__IMMUTABLE_ORDERED__@@",pn="delete",dn=5,vn=1<<dn,mn=vn-1,gn={},yn={value:!1},_n={value:!1},bn=0,wn=1,xn=2,$n="function"==typeof Symbol&&Symbol.iterator,kn="@@iterator",Sn=$n||kn;w.prototype.toString=function(){return"[Iterator]"},w.KEYS=bn,w.VALUES=wn,w.ENTRIES=xn,w.prototype.inspect=w.prototype.toSource=function(){return this.toString()},w.prototype[Sn]=function(){return this},t(F,e),F.of=function(){return F(arguments)},F.prototype.toSeq=function(){return this},F.prototype.toString=function(){return this.__toString("Seq {","}")},F.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},F.prototype.__iterate=function(t,e){return U(this,t,e,!0)},F.prototype.__iterator=function(t,e){return W(this,t,e,!0)},t(j,F),j.prototype.toKeyedSeq=function(){return this},t(A,F),A.of=function(){return A(arguments)},A.prototype.toIndexedSeq=function(){return this},A.prototype.toString=function(){return this.__toString("Seq [","]")},A.prototype.__iterate=function(t,e){return U(this,t,e,!1)},A.prototype.__iterator=function(t,e){return W(this,t,e,!1)},t(D,F),D.of=function(){return D(arguments)},D.prototype.toSetSeq=function(){return this},F.isSeq=N,F.Keyed=j,F.Set=D,F.Indexed=A;var Cn="@@__IMMUTABLE_SEQ__@@";F.prototype[Cn]=!0,t(M,A),M.prototype.get=function(t,e){return this.has(t)?this._array[v(this,t)]:e},M.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,i=0;r>=i;i++)if(t(n[e?r-i:i],i,this)===!1)return i+1;return i},M.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,i=0;return new w(function(){return i>r?$():x(t,i,n[e?r-i++:i++])})},t(O,j),O.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},O.prototype.has=function(t){return this._object.hasOwnProperty(t)},O.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;i>=o;o++){var a=r[e?i-o:o];if(t(n[a],a,this)===!1)return o+1}return o},O.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[e?i-o:o];return o++>i?$():x(t,a,n[a])})},O.prototype[hn]=!0,t(I,A),I.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,r=C(n),i=0;if(S(r))for(var o;!(o=r.next()).done&&t(o.value,i++,this)!==!1;);return i},I.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=C(n);if(!S(r))return new w($);var i=0;return new w(function(){var e=r.next();return e.done?e:x(t,i++,e.value)})},t(P,A),P.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(t(r[i],i++,this)===!1)return i;for(var o;!(o=n.next()).done;){var a=o.value;if(r[i]=a,t(a,i++,this)===!1)break}return i},P.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,i=0;return new w(function(){if(i>=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return x(t,i,r[i++])})};var En;t(J,A),J.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},J.prototype.get=function(t,e){return this.has(t)?this._value:e},J.prototype.includes=function(t){return G(this._value,t)},J.prototype.slice=function(t,e){var n=this.size;return g(t,e,n)?this:new J(this._value,_(e,n)-y(t,n))},J.prototype.reverse=function(){return this},J.prototype.indexOf=function(t){return G(this._value,t)?0:-1},J.prototype.lastIndexOf=function(t){return G(this._value,t)?this.size:-1},J.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(t(this._value,n,this)===!1)return n+1;return n},J.prototype.__iterator=function(t,e){var n=this,r=0;return new w(function(){return r<n.size?x(t,r++,n._value):$()})},J.prototype.equals=function(t){return t instanceof J?G(this._value,t._value):X(t)};var Tn;t(Z,A),Z.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Z.prototype.get=function(t,e){return this.has(t)?this._start+v(this,t)*this._step:e},Z.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},Z.prototype.slice=function(t,e){return g(t,e,this.size)?this:(t=y(t,this.size),e=_(e,this.size),t>=e?new Z(0,0):new Z(this.get(t,this._end),this.get(e,this._end),this._step))},Z.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},Z.prototype.lastIndexOf=function(t){return this.indexOf(t)},Z.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;n>=o;o++){if(t(i,o,this)===!1)return o+1;i+=e?-r:r}return o},Z.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;return new w(function(){var a=i;return i+=e?-r:r,o>n?$():x(t,o++,a)})},Z.prototype.equals=function(t){return t instanceof Z?this._start===t._start&&this._end===t._end&&this._step===t._step:X(this,t)};var Fn;t(tt,e),t(et,tt),t(nt,tt),t(rt,tt),tt.Keyed=et,tt.Indexed=nt,tt.Set=rt;var jn,An="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){t=0|t,e=0|e;var n=65535&t,r=65535&e;return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0},Dn=Object.isExtensible,Mn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),On="function"==typeof WeakMap;On&&(jn=new WeakMap);var In=0,Pn="__immutablehash__";"function"==typeof Symbol&&(Pn=Symbol(Pn));var Nn=16,Rn=255,Ln=0,zn={};t(ft,et),ft.prototype.toString=function(){return this.__toString("Map {","}")},ft.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ft.prototype.set=function(t,e){return $t(this,t,e)},ft.prototype.setIn=function(t,e){return this.updateIn(t,gn,function(){return e})},ft.prototype.remove=function(t){return $t(this,t,gn)},ft.prototype.deleteIn=function(t){return this.updateIn(t,function(){return gn})},ft.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},ft.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=Ot(this,Ae(t),e,n);return r===gn?void 0:r},ft.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):xt()},ft.prototype.merge=function(){return jt(this,void 0,arguments)},ft.prototype.mergeWith=function(t){var e=un.call(arguments,1);return jt(this,t,e)},ft.prototype.mergeIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,xt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ft.prototype.mergeDeep=function(){return jt(this,At,arguments)},ft.prototype.mergeDeepWith=function(t){var e=un.call(arguments,1);return jt(this,Dt(t),e)},ft.prototype.mergeDeepIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,xt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},ft.prototype.sort=function(t){return Qt(be(this,t))},ft.prototype.sortBy=function(t,e){return Qt(be(this,e,t))},ft.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},ft.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new h)},ft.prototype.asImmutable=function(){return this.__ensureOwner()},ft.prototype.wasAltered=function(){return this.__altered},ft.prototype.__iterator=function(t,e){return new yt(this,t,e)},ft.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},ft.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?wt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},ft.isMap=ht;var qn="@@__IMMUTABLE_MAP__@@",Hn=ft.prototype;Hn[qn]=!0,Hn[pn]=Hn.remove,Hn.removeIn=Hn.deleteIn,pt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;a>o;o++)if(G(n,i[o][0]))return i[o][1];return r},pt.prototype.update=function(t,e,n,r,i,o,a){for(var s=i===gn,u=this.entries,l=0,c=u.length;c>l&&!G(r,u[l][0]);l++);var h=c>l;if(h?u[l][1]===i:s)return this;if(f(a),(s||!h)&&f(o),!s||1!==u.length){if(!h&&!s&&u.length>=Wn)return Et(t,u,r,i);var d=t&&t===this.ownerID,v=d?u:p(u);return h?s?l===c-1?v.pop():v[l]=v.pop():v[l]=[r,i]:v.push([r,i]),d?(this.entries=v,this):new pt(t,v)}},dt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=1<<((0===t?e:e>>>t)&mn),o=this.bitmap;return 0===(o&i)?r:this.nodes[It(o&i-1)].get(t+dn,e,n,r)},dt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&mn,u=1<<s,l=this.bitmap,c=0!==(l&u);if(!c&&i===gn)return this;var f=It(l&u-1),h=this.nodes,p=c?h[f]:void 0,d=kt(p,t,e+dn,n,r,i,o,a);if(d===p)return this;if(!c&&d&&h.length>=Vn)return Ft(t,h,l,s,d);if(c&&!d&&2===h.length&&St(h[1^f]))return h[1^f];if(c&&d&&1===h.length&&St(d))return d;var v=t&&t===this.ownerID,m=c?d?l:l^u:l|u,g=c?d?Pt(h,f,d,v):Rt(h,f,v):Nt(h,f,d,v);return v?(this.bitmap=m,this.nodes=g,this):new dt(t,m,g)},vt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=(0===t?e:e>>>t)&mn,o=this.nodes[i];return o?o.get(t+dn,e,n,r):r},vt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&mn,u=i===gn,l=this.nodes,c=l[s];if(u&&!c)return this;var f=kt(c,t,e+dn,n,r,i,o,a);if(f===c)return this;var h=this.count;if(c){if(!f&&(h--,Bn>h))return Tt(t,l,h,s)}else h++;var p=t&&t===this.ownerID,d=Pt(l,s,f,p);return p?(this.count=h,this.nodes=d,this):new vt(t,h,d)},mt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;a>o;o++)if(G(n,i[o][0]))return i[o][1];return r},mt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=i===gn;if(n!==this.keyHash)return s?this:(f(a),f(o),Ct(this,t,e,n,[r,i]));for(var u=this.entries,l=0,c=u.length;c>l&&!G(r,u[l][0]);l++);var h=c>l;if(h?u[l][1]===i:s)return this;if(f(a),(s||!h)&&f(o),s&&2===c)return new gt(t,this.keyHash,u[1^l]);var d=t&&t===this.ownerID,v=d?u:p(u);return h?s?l===c-1?v.pop():v[l]=v.pop():v[l]=[r,i]:v.push([r,i]),d?(this.entries=v,this):new mt(t,this.keyHash,v)},gt.prototype.get=function(t,e,n,r){return G(n,this.entry[0])?this.entry[1]:r},gt.prototype.update=function(t,e,n,r,i,o,a){var s=i===gn,u=G(r,this.entry[0]);
return(u?i===this.entry[1]:s)?this:(f(a),s?void f(o):u?t&&t===this.ownerID?(this.entry[1]=i,this):new gt(t,this.keyHash,[r,i]):(f(o),Ct(this,t,e,ot(r),[r,i])))},pt.prototype.iterate=mt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,i=n.length-1;i>=r;r++)if(t(n[e?i-r:r])===!1)return!1},dt.prototype.iterate=vt.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,i=n.length-1;i>=r;r++){var o=n[e?i-r:r];if(o&&o.iterate(t,e)===!1)return!1}},gt.prototype.iterate=function(t,e){return t(this.entry)},t(yt,w),yt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,i=e.index++;if(r.entry){if(0===i)return _t(t,r.entry)}else if(r.entries){if(n=r.entries.length-1,n>=i)return _t(t,r.entries[this._reverse?n-i:i])}else if(n=r.nodes.length-1,n>=i){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return _t(t,o.entry);e=this._stack=bt(o,e)}continue}e=this._stack=this._stack.__prev}return $()};var Un,Wn=vn/4,Vn=vn/2,Bn=vn/4;t(Lt,nt),Lt.of=function(){return this(arguments)},Lt.prototype.toString=function(){return this.__toString("List [","]")},Lt.prototype.get=function(t,e){if(t=v(this,t),t>=0&&t<this.size){t+=this._origin;var n=Kt(this,t);return n&&n.array[t&mn]}return e},Lt.prototype.set=function(t,e){return Vt(this,t,e)},Lt.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Lt.prototype.insert=function(t,e){return this.splice(t,0,e)},Lt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=dn,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Wt()},Lt.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Gt(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},Lt.prototype.pop=function(){return Gt(this,0,-1)},Lt.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Gt(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},Lt.prototype.shift=function(){return Gt(this,1)},Lt.prototype.merge=function(){return Xt(this,void 0,arguments)},Lt.prototype.mergeWith=function(t){var e=un.call(arguments,1);return Xt(this,t,e)},Lt.prototype.mergeDeep=function(){return Xt(this,At,arguments)},Lt.prototype.mergeDeepWith=function(t){var e=un.call(arguments,1);return Xt(this,Dt(t),e)},Lt.prototype.setSize=function(t){return Gt(this,0,t)},Lt.prototype.slice=function(t,e){var n=this.size;return g(t,e,n)?this:Gt(this,y(t,n),_(e,n))},Lt.prototype.__iterator=function(t,e){var n=0,r=Ht(this,e);return new w(function(){var e=r();return e===Xn?$():x(t,n++,e)})},Lt.prototype.__iterate=function(t,e){for(var n,r=0,i=Ht(this,e);(n=i())!==Xn&&t(n,r++,this)!==!1;);return r},Lt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ut(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},Lt.isList=zt;var Yn="@@__IMMUTABLE_LIST__@@",Kn=Lt.prototype;Kn[Yn]=!0,Kn[pn]=Kn.remove,Kn.setIn=Hn.setIn,Kn.deleteIn=Kn.removeIn=Hn.removeIn,Kn.update=Hn.update,Kn.updateIn=Hn.updateIn,Kn.mergeIn=Hn.mergeIn,Kn.mergeDeepIn=Hn.mergeDeepIn,Kn.withMutations=Hn.withMutations,Kn.asMutable=Hn.asMutable,Kn.asImmutable=Hn.asImmutable,Kn.wasAltered=Hn.wasAltered,qt.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&mn;if(r>=this.array.length)return new qt([],t);var i,o=0===r;if(e>0){var a=this.array[r];if(i=a&&a.removeBefore(t,e-dn,n),i===a&&o)return this}if(o&&!i)return this;var s=Yt(this,t);if(!o)for(var u=0;r>u;u++)s.array[u]=void 0;return i&&(s.array[r]=i),s},qt.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r=n-1>>>e&mn;if(r>=this.array.length)return this;var i;if(e>0){var o=this.array[r];if(i=o&&o.removeAfter(t,e-dn,n),i===o&&r===this.array.length-1)return this}var a=Yt(this,t);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Gn,Xn={};t(Qt,ft),Qt.of=function(){return this(arguments)},Qt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qt.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Qt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},Qt.prototype.set=function(t,e){return ne(this,t,e)},Qt.prototype.remove=function(t){return ne(this,t,gn)},Qt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qt.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Qt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Qt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?te(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Qt.isOrderedMap=Zt,Qt.prototype[hn]=!0,Qt.prototype[pn]=Qt.prototype.remove;var Jn;t(re,j),re.prototype.get=function(t,e){return this._iter.get(t,e)},re.prototype.has=function(t){return this._iter.has(t)},re.prototype.valueSeq=function(){return this._iter.valueSeq()},re.prototype.reverse=function(){var t=this,e=le(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},re.prototype.map=function(t,e){var n=this,r=ue(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},re.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?Ce(this):0,function(i){return t(i,e?--n:n++,r)}),e)},re.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(wn,e),r=e?Ce(this):0;return new w(function(){var i=n.next();return i.done?i:x(t,e?--r:r++,i.value,i)})},re.prototype[hn]=!0,t(ie,A),ie.prototype.includes=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},ie.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e),r=0;return new w(function(){var e=n.next();return e.done?e:x(t,r++,e.value,e)})},t(oe,D),oe.prototype.has=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},oe.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e);return new w(function(){var e=n.next();return e.done?e:x(t,e.value,e.value,e)})},t(ae,j),ae.prototype.entrySeq=function(){return this._iter.toSeq()},ae.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Se(e);var r=o(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},ae.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e);return new w(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Se(r);var i=o(r);return x(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}})},ie.prototype.cacheResult=re.prototype.cacheResult=oe.prototype.cacheResult=ae.prototype.cacheResult=Fe,t(De,et),De.prototype.toString=function(){return this.__toString(Oe(this)+" {","}")},De.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},De.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},De.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Me(this,xt()))},De.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Oe(this));var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:Me(this,n)},De.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:Me(this,e)},De.prototype.wasAltered=function(){return this._map.wasAltered()},De.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},De.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},De.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Me(this,e,t):(this.__ownerID=t,this._map=e,this)};var Qn=De.prototype;Qn[pn]=Qn.remove,Qn.deleteIn=Qn.removeIn=Hn.removeIn,Qn.merge=Hn.merge,Qn.mergeWith=Hn.mergeWith,Qn.mergeIn=Hn.mergeIn,Qn.mergeDeep=Hn.mergeDeep,Qn.mergeDeepWith=Hn.mergeDeepWith,Qn.mergeDeepIn=Hn.mergeDeepIn,Qn.setIn=Hn.setIn,Qn.update=Hn.update,Qn.updateIn=Hn.updateIn,Qn.withMutations=Hn.withMutations,Qn.asMutable=Hn.asMutable,Qn.asImmutable=Hn.asImmutable,t(Ne,rt),Ne.of=function(){return this(arguments)},Ne.fromKeys=function(t){return this(n(t).keySeq())},Ne.prototype.toString=function(){return this.__toString("Set {","}")},Ne.prototype.has=function(t){return this._map.has(t)},Ne.prototype.add=function(t){return Le(this,this._map.set(t,!0))},Ne.prototype.remove=function(t){return Le(this,this._map.remove(t))},Ne.prototype.clear=function(){return Le(this,this._map.clear())},Ne.prototype.union=function(){var t=un.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Ne.prototype.intersect=function(){var t=un.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.every(function(t){return t.includes(e)})||n.remove(e)})})},Ne.prototype.subtract=function(){var t=un.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&n.remove(e)})})},Ne.prototype.merge=function(){return this.union.apply(this,arguments)},Ne.prototype.mergeWith=function(t){var e=un.call(arguments,1);return this.union.apply(this,e)},Ne.prototype.sort=function(t){return He(be(this,t))},Ne.prototype.sortBy=function(t,e){return He(be(this,e,t))},Ne.prototype.wasAltered=function(){return this._map.wasAltered()},Ne.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},Ne.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Ne.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Ne.isSet=Re;var Zn="@@__IMMUTABLE_SET__@@",tr=Ne.prototype;tr[Zn]=!0,tr[pn]=tr.remove,tr.mergeDeep=tr.merge,tr.mergeDeepWith=tr.mergeWith,tr.withMutations=Hn.withMutations,tr.asMutable=Hn.asMutable,tr.asImmutable=Hn.asImmutable,tr.__empty=qe,tr.__make=ze;var er;t(He,Ne),He.of=function(){return this(arguments)},He.fromKeys=function(t){return this(n(t).keySeq())},He.prototype.toString=function(){return this.__toString("OrderedSet {","}")},He.isOrderedSet=Ue;var nr=He.prototype;nr[hn]=!0,nr.__empty=Ve,nr.__make=We;var rr;t(Be,nt),Be.of=function(){return this(arguments)},Be.prototype.toString=function(){return this.__toString("Stack [","]")},Be.prototype.get=function(t,e){var n=this._head;for(t=v(this,t);n&&t--;)n=n.next;return n?n.value:e},Be.prototype.peek=function(){return this._head&&this._head.value},Be.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Ke(t,e)},Be.prototype.pushAll=function(t){if(t=r(t),0===t.size)return this;ct(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ke(e,n)},Be.prototype.pop=function(){return this.slice(1)},Be.prototype.unshift=function(){return this.push.apply(this,arguments)},Be.prototype.unshiftAll=function(t){return this.pushAll(t)},Be.prototype.shift=function(){return this.pop.apply(this,arguments)},Be.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Ge()},Be.prototype.slice=function(t,e){if(g(t,e,this.size))return this;var n=y(t,this.size),r=_(e,this.size);if(r!==this.size)return nt.prototype.slice.call(this,t,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ke(i,o)},Be.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ke(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Be.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&t(r.value,n++,this)!==!1;)r=r.next;return n},Be.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new w(function(){if(r){var e=r.value;return r=r.next,x(t,n++,e)}return $()})},Be.isStack=Ye;var ir="@@__IMMUTABLE_STACK__@@",or=Be.prototype;or[ir]=!0,or.withMutations=Hn.withMutations,or.asMutable=Hn.asMutable,or.asImmutable=Hn.asImmutable,or.wasAltered=Hn.wasAltered;var ar;e.Iterator=w,Xe(e,{toArray:function(){ct(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new ie(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new re(this,!0)},toMap:function(){return ft(this.toKeyedSeq())},toObject:function(){ct(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Qt(this.toKeyedSeq())},toOrderedSet:function(){return He(a(this)?this.valueSeq():this)},toSet:function(){return Ne(a(this)?this.valueSeq():this)},toSetSeq:function(){return new oe(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Be(a(this)?this.valueSeq():this)},toList:function(){return Lt(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var t=un.call(arguments,0);return ke(this,me(this,t))},includes:function(t){return this.some(function(e){return G(e,t)})},entries:function(){return this.__iterator(xn)},every:function(t,e){ct(this.size);var n=!0;return this.__iterate(function(r,i,o){return t.call(e,r,i,o)?void 0:(n=!1,!1)}),n},filter:function(t,e){return ke(this,ce(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},findEntry:function(t,e){var n;return this.__iterate(function(r,i,o){return t.call(e,r,i,o)?(n=[i,r],!1):void 0}),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return ct(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){ct(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!==r&&void 0!==r?r.toString():""}),e},keys:function(){return this.__iterator(bn)},map:function(t,e){return ke(this,ue(this,t,e))},reduce:function(t,e,n){ct(this.size);var r,i;return arguments.length<2?i=!0:r=e,this.__iterate(function(e,o,a){i?(i=!1,r=e):r=t.call(n,r,e,o,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return ke(this,le(this,!0))},slice:function(t,e){return ke(this,pe(this,t,e,!0))},some:function(t,e){return!this.every(Ze(t),e)},sort:function(t){return ke(this,be(this,t))},values:function(){return this.__iterator(wn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return d(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return fe(this,t,e)},equals:function(t){return X(this,t)},entrySeq:function(){var t=this;if(t._cache)return new M(t._cache);var e=t.toSeq().map(Qe).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Ze(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(m)},flatMap:function(t,e){return ke(this,ye(this,t,e))},flatten:function(t){return ke(this,ge(this,t,!0))},fromEntrySeq:function(){return new ae(this)},get:function(t,e){return this.find(function(e,n){return G(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,i=Ae(t);!(n=i.next()).done;){var o=n.value;if(r=r&&r.get?r.get(o,gn):gn,r===gn)return e}return r},groupBy:function(t,e){return he(this,t,e)},has:function(t){return this.get(t,gn)!==gn},hasIn:function(t){return this.getIn(t,gn)!==gn},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keySeq:function(){return this.toSeq().map(Je).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return we(this,t)},maxBy:function(t,e){return we(this,e,t)},min:function(t){return we(this,t?tn(t):rn)},minBy:function(t,e){return we(this,e?tn(e):rn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return ke(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return ke(this,ve(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Ze(t),e)},sortBy:function(t,e){return ke(this,be(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return ke(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return ke(this,de(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Ze(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var sr=e.prototype;sr[ln]=!0,sr[Sn]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=en,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,function(){try{Object.defineProperty(sr,"length",{get:function(){if(!e.noLengthWarning){var t;try{throw new Error}catch(n){t=n.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),Xe(n,{flip:function(){return ke(this,se(this))},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return G(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return G(e,t)})},mapEntries:function(t,e){var n=this,r=0;return ke(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return ke(this,this.toSeq().flip().map(function(r,i){return t.call(e,r,i,n)}).flip())}});var ur=n.prototype;ur[cn]=!0,ur[Sn]=sr.entries,ur.__toJS=sr.toObject,ur.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+en(t)},Xe(r,{toKeyedSeq:function(){return new re(this,!1)},filter:function(t,e){return ke(this,ce(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return ke(this,le(this,!1))},slice:function(t,e){return ke(this,pe(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=y(t,0>t?this.count():this.size);var r=this.slice(0,t);return ke(this,1===n?r:r.concat(p(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.toKeyedSeq().findLastKey(t,e);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(t){return ke(this,ge(this,t,!1))},get:function(t,e){return t=v(this,t),0>t||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return t=v(this,t),t>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return ke(this,_e(this,t))},interleave:function(){var t=[this].concat(p(arguments)),e=$e(this.toSeq(),A.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),ke(this,n)},last:function(){return this.get(-1)},skipWhile:function(t,e){return ke(this,ve(this,t,e,!1))},zip:function(){var t=[this].concat(p(arguments));return ke(this,$e(this,nn,t))},zipWith:function(t){var e=p(arguments);return e[0]=this,ke(this,$e(this,t,e))}}),r.prototype[fn]=!0,r.prototype[hn]=!0,Xe(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=sr.includes,Xe(j,n.prototype),Xe(A,r.prototype),Xe(D,i.prototype),Xe(et,n.prototype),Xe(nt,r.prototype),Xe(rt,i.prototype);var lr={Iterable:e,Seq:F,Collection:tt,Map:ft,OrderedMap:Qt,List:Lt,Stack:Be,Set:Ne,OrderedSet:He,Record:De,Range:Z,Repeat:J,is:G,fromJS:V};return lr}),function(t,e){"object"==typeof exports?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t)}(this,function(t){function e(t){this._targetElement=t,this._options={nextLabel:"Next &rarr;",prevLabel:"&larr; Back",skipLabel:"Skip",doneLabel:"Done",tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1}}function n(t){var e=[],n=this;if(this._options.steps)for(var i=0,u=this._options.steps.length;u>i;i++){var l=r(this._options.steps[i]);if(l.step=e.length+1,"string"==typeof l.element&&(l.element=document.querySelector(l.element)),"undefined"==typeof l.element||null==l.element){var c=document.querySelector(".introjsFloatingElement");null==c&&(c=document.createElement("div"),c.className="introjsFloatingElement",document.body.appendChild(c)),l.element=c,l.position="floating"}null!=l.element&&e.push(l)}else{var f=t.querySelectorAll("*[data-intro]");if(f.length<1)return!1;for(var i=0,h=f.length;h>i;i++){var d=f[i],v=parseInt(d.getAttribute("data-step"),10);v>0&&(e[v-1]={element:d,intro:d.getAttribute("data-intro"),step:parseInt(d.getAttribute("data-step"),10),tooltipClass:d.getAttribute("data-tooltipClass"),highlightClass:d.getAttribute("data-highlightClass"),position:d.getAttribute("data-position")||this._options.tooltipPosition})}for(var m=0,i=0,h=f.length;h>i;i++){var d=f[i];if(null==d.getAttribute("data-step")){for(;;){if("undefined"==typeof e[m])break;m++}e[m]={element:d,intro:d.getAttribute("data-intro"),step:m+1,tooltipClass:d.getAttribute("data-tooltipClass"),highlightClass:d.getAttribute("data-highlightClass"),position:d.getAttribute("data-position")||this._options.tooltipPosition}}}}for(var g=[],y=0;y<e.length;y++)e[y]&&g.push(e[y]);if(e=g,e.sort(function(t,e){return t.step-e.step}),n._introItems=e,_.call(n,t)){o.call(n);t.querySelector(".introjs-skipbutton"),t.querySelector(".introjs-nextbutton");n._onKeyDown=function(e){if(27===e.keyCode&&1==n._options.exitOnEsc)void 0!=n._introExitCallback&&n._introExitCallback.call(n),s.call(n,t);else if(37===e.keyCode)a.call(n);else if(39===e.keyCode)o.call(n);else if(13===e.keyCode){var r=e.target||e.srcElement;r&&r.className.indexOf("introjs-prevbutton")>0?a.call(n):r&&r.className.indexOf("introjs-skipbutton")>0?(n._introItems.length-1==n._currentStep&&"function"==typeof n._introCompleteCallback&&n._introCompleteCallback.call(n),void 0!=n._introExitCallback&&n._introExitCallback.call(n),s.call(n,t)):o.call(n),e.preventDefault?e.preventDefault():e.returnValue=!1}},n._onResize=function(t){p.call(n,document.querySelector(".introjs-helperLayer")),p.call(n,document.querySelector(".introjs-tooltipReferenceLayer"))},window.addEventListener?(this._options.keyboardNavigation&&window.addEventListener("keydown",n._onKeyDown,!0),window.addEventListener("resize",n._onResize,!0)):document.attachEvent&&(this._options.keyboardNavigation&&document.attachEvent("onkeydown",n._onKeyDown),document.attachEvent("onresize",n._onResize))}return!1}function r(t){if(null==t||"object"!=typeof t||"undefined"!=typeof t.nodeType)return t;var e={};for(var n in t)"undefined"!=typeof jQuery&&t[n]instanceof jQuery?e[n]=t[n]:e[n]=r(t[n]);return e}function i(t){this._currentStep=t-2,"undefined"!=typeof this._introItems&&o.call(this)}function o(){if(this._direction="forward","undefined"==typeof this._currentStep?this._currentStep=0:++this._currentStep,this._introItems.length<=this._currentStep)return"function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),void s.call(this,this._targetElement);var t=this._introItems[this._currentStep];"undefined"!=typeof this._introBeforeChangeCallback&&this._introBeforeChangeCallback.call(this,t.element),v.call(this,t)}function a(){if(this._direction="backward",0===this._currentStep)return!1;var t=this._introItems[--this._currentStep];"undefined"!=typeof this._introBeforeChangeCallback&&this._introBeforeChangeCallback.call(this,t.element),v.call(this,t)}function s(t){var e=t.querySelector(".introjs-overlay");if(null!=e){e.style.opacity=0,setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},500);var n=t.querySelector(".introjs-helperLayer");n&&n.parentNode.removeChild(n);var r=t.querySelector(".introjs-tooltipReferenceLayer");r&&r.parentNode.removeChild(r);var i=t.querySelector(".introjs-disableInteraction");i&&i.parentNode.removeChild(i);var o=document.querySelector(".introjsFloatingElement");o&&o.parentNode.removeChild(o);var a=document.querySelector(".introjs-showElement");a&&(a.className=a.className.replace(/introjs-[a-zA-Z]+/g,"").replace(/^\s+|\s+$/g,""));var s=document.querySelectorAll(".introjs-fixParent");if(s&&s.length>0)for(var u=s.length-1;u>=0;u--)s[u].className=s[u].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");window.removeEventListener?window.removeEventListener("keydown",this._onKeyDown,!0):document.detachEvent&&document.detachEvent("onkeydown",this._onKeyDown),this._currentStep=void 0}}function u(t,e,n,r){var i,o,a,s,u,h="";if(e.style.top=null,e.style.right=null,e.style.bottom=null,e.style.left=null,e.style.marginLeft=null,e.style.marginTop=null,n.style.display="inherit","undefined"!=typeof r&&null!=r&&(r.style.top=null,r.style.left=null),this._introItems[this._currentStep])switch(i=this._introItems[this._currentStep],h="string"==typeof i.tooltipClass?i.tooltipClass:this._options.tooltipClass,e.className=("introjs-tooltip "+h).replace(/^\s+|\s+$/g,""),u=this._introItems[this._currentStep].position,("auto"==u||"auto"==this._options.tooltipPosition)&&"floating"!=u&&(u=f.call(this,t,e,u)),a=b(t),o=b(e),s=g(),u){case"top":n.className="introjs-arrow bottom";var p=15;l(a,p,o,s,e),e.style.bottom=a.height+20+"px";break;case"right":e.style.left=a.width+20+"px",a.top+o.height>s.height?(n.className="introjs-arrow left-bottom",e.style.top="-"+(o.height-a.height-20)+"px"):n.className="introjs-arrow left";break;case"left":1==this._options.showStepNumbers&&(e.style.top="15px"),a.top+o.height>s.height?(e.style.top="-"+(o.height-a.height-20)+"px",n.className="introjs-arrow right-bottom"):n.className="introjs-arrow right",e.style.right=a.width+20+"px";break;case"floating":n.style.display="none",e.style.left="50%",e.style.top="50%",e.style.marginLeft="-"+o.width/2+"px",e.style.marginTop="-"+o.height/2+"px","undefined"!=typeof r&&null!=r&&(r.style.left="-"+(o.width/2+18)+"px",r.style.top="-"+(o.height/2+18)+"px");break;case"bottom-right-aligned":n.className="introjs-arrow top-right";var d=0;c(a,d,o,e),e.style.top=a.height+20+"px";break;case"bottom-middle-aligned":n.className="introjs-arrow top-middle";var v=a.width/2-o.width/2;c(a,v,o,e)&&(e.style.right=null,l(a,v,o,s,e)),e.style.top=a.height+20+"px";break;case"bottom-left-aligned":case"bottom":default:n.className="introjs-arrow top";var p=0;l(a,p,o,s,e),e.style.top=a.height+20+"px"}}function l(t,e,n,r,i){return t.left+e+n.width>r.width?(i.style.left=r.width-n.width-t.left+"px",!1):(i.style.left=e+"px",!0)}function c(t,e,n,r){return t.left+t.width-e-n.width<0?(r.style.left=-t.left+"px",!1):(r.style.right=e+"px",!0)}function f(t,e,n){var r=this._options.positionPrecedence.slice(),i=g(),o=b(e).height+10,a=b(e).width+20,s=b(t),u="floating";return s.left+a>i.width||s.left+s.width/2-a<0?(h(r,"bottom"),h(r,"top")):(s.height+s.top+o>i.height&&h(r,"bottom"),s.top-o<0&&h(r,"top")),s.width+s.left+a>i.width&&h(r,"right"),s.left-a<0&&h(r,"left"),r.length>0&&(u=r[0]),n&&"auto"!=n&&r.indexOf(n)>-1&&(u=n),u}function h(t,e){t.indexOf(e)>-1&&t.splice(t.indexOf(e),1)}function p(t){if(t){if(!this._introItems[this._currentStep])return;var e=this._introItems[this._currentStep],n=b(e.element),r=10;"floating"==e.position&&(r=0),t.setAttribute("style","width: "+(n.width+r)+"px; height:"+(n.height+r)+"px; top:"+(n.top-5)+"px;left: "+(n.left-5)+"px;")}}function d(){var t=document.querySelector(".introjs-disableInteraction");null===t&&(t=document.createElement("div"),t.className="introjs-disableInteraction",this._targetElement.appendChild(t)),p.call(this,t)}function v(t){"undefined"!=typeof this._introChangeCallback&&this._introChangeCallback.call(this,t.element);var e=this,n=document.querySelector(".introjs-helperLayer"),r=document.querySelector(".introjs-tooltipReferenceLayer"),i="introjs-helperLayer";b(t.element);if("string"==typeof t.highlightClass&&(i+=" "+t.highlightClass),"string"==typeof this._options.highlightClass&&(i+=" "+this._options.highlightClass),null!=n){var l=r.querySelector(".introjs-helperNumberLayer"),c=r.querySelector(".introjs-tooltiptext"),f=r.querySelector(".introjs-arrow"),h=r.querySelector(".introjs-tooltip"),v=r.querySelector(".introjs-skipbutton"),_=r.querySelector(".introjs-prevbutton"),x=r.querySelector(".introjs-nextbutton");if(n.className=i,h.style.opacity=0,h.style.display="none",null!=l){var $=this._introItems[t.step-2>=0?t.step-2:0];(null!=$&&"forward"==this._direction&&"floating"==$.position||"backward"==this._direction&&"floating"==t.position)&&(l.style.opacity=0)}p.call(e,n),p.call(e,r);var k=document.querySelectorAll(".introjs-fixParent");if(k&&k.length>0)for(var S=k.length-1;S>=0;S--)k[S].className=k[S].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");var C=document.querySelector(".introjs-showElement");C.className=C.className.replace(/introjs-[a-zA-Z]+/g,"").replace(/^\s+|\s+$/g,""),e._lastShowElementTimer&&clearTimeout(e._lastShowElementTimer),e._lastShowElementTimer=setTimeout(function(){null!=l&&(l.innerHTML=t.step),c.innerHTML=t.intro,h.style.display="block",u.call(e,t.element,h,f,l),r.querySelector(".introjs-bullets li > a.active").className="",r.querySelector('.introjs-bullets li > a[data-stepnumber="'+t.step+'"]').className="active",r.querySelector(".introjs-progress .introjs-progressbar").setAttribute("style","width:"+w.call(e)+"%;"),h.style.opacity=1,l&&(l.style.opacity=1),-1===x.tabIndex?v.focus():x.focus()},350)}else{var E=document.createElement("div"),T=document.createElement("div"),F=document.createElement("div"),j=document.createElement("div"),A=document.createElement("div"),D=document.createElement("div"),M=document.createElement("div"),O=document.createElement("div");
E.className=i,T.className="introjs-tooltipReferenceLayer",p.call(e,E),p.call(e,T),this._targetElement.appendChild(E),this._targetElement.appendChild(T),F.className="introjs-arrow",A.className="introjs-tooltiptext",A.innerHTML=t.intro,D.className="introjs-bullets",this._options.showBullets===!1&&(D.style.display="none");for(var I=document.createElement("ul"),S=0,P=this._introItems.length;P>S;S++){var N=document.createElement("li"),R=document.createElement("a");R.onclick=function(){e.goToStep(this.getAttribute("data-stepnumber"))},S===t.step-1&&(R.className="active"),R.href="javascript:void(0);",R.innerHTML="&nbsp;",R.setAttribute("data-stepnumber",this._introItems[S].step),N.appendChild(R),I.appendChild(N)}D.appendChild(I),M.className="introjs-progress",this._options.showProgress===!1&&(M.style.display="none");var L=document.createElement("div");if(L.className="introjs-progressbar",L.setAttribute("style","width:"+w.call(this)+"%;"),M.appendChild(L),O.className="introjs-tooltipbuttons",this._options.showButtons===!1&&(O.style.display="none"),j.className="introjs-tooltip",j.appendChild(A),j.appendChild(D),j.appendChild(M),1==this._options.showStepNumbers){var z=document.createElement("span");z.className="introjs-helperNumberLayer",z.innerHTML=t.step,T.appendChild(z)}j.appendChild(F),T.appendChild(j);var x=document.createElement("a");x.onclick=function(){e._introItems.length-1!=e._currentStep&&o.call(e)},x.href="javascript:void(0);",x.innerHTML=this._options.nextLabel;var _=document.createElement("a");_.onclick=function(){0!=e._currentStep&&a.call(e)},_.href="javascript:void(0);",_.innerHTML=this._options.prevLabel;var v=document.createElement("a");v.className="introjs-button introjs-skipbutton",v.href="javascript:void(0);",v.innerHTML=this._options.skipLabel,v.onclick=function(){e._introItems.length-1==e._currentStep&&"function"==typeof e._introCompleteCallback&&e._introCompleteCallback.call(e),e._introItems.length-1!=e._currentStep&&"function"==typeof e._introExitCallback&&e._introExitCallback.call(e),s.call(e,e._targetElement)},O.appendChild(v),this._introItems.length>1&&(O.appendChild(_),O.appendChild(x)),j.appendChild(O),u.call(e,t.element,j,F,z)}this._options.disableInteraction===!0&&d.call(e),_.removeAttribute("tabIndex"),x.removeAttribute("tabIndex"),0==this._currentStep&&this._introItems.length>1?(_.className="introjs-button introjs-prevbutton introjs-disabled",_.tabIndex="-1",x.className="introjs-button introjs-nextbutton",v.innerHTML=this._options.skipLabel):this._introItems.length-1==this._currentStep||1==this._introItems.length?(v.innerHTML=this._options.doneLabel,_.className="introjs-button introjs-prevbutton",x.className="introjs-button introjs-nextbutton introjs-disabled",x.tabIndex="-1"):(_.className="introjs-button introjs-prevbutton",x.className="introjs-button introjs-nextbutton",v.innerHTML=this._options.skipLabel),x.focus(),t.element.className+=" introjs-showElement";var q=m(t.element,"position");"absolute"!==q&&"relative"!==q&&(t.element.className+=" introjs-relativePosition");for(var H=t.element.parentNode;null!=H&&"body"!==H.tagName.toLowerCase();){var U=m(H,"z-index"),W=parseFloat(m(H,"opacity")),V=m(H,"transform")||m(H,"-webkit-transform")||m(H,"-moz-transform")||m(H,"-ms-transform")||m(H,"-o-transform");(/[0-9]+/.test(U)||1>W||"none"!==V&&void 0!==V)&&(H.className+=" introjs-fixParent"),H=H.parentNode}if(!y(t.element)&&this._options.scrollToElement===!0){var B=t.element.getBoundingClientRect(),Y=g().height,K=B.bottom-(B.bottom-B.top),G=B.bottom-Y;0>K||t.element.clientHeight>Y?window.scrollBy(0,K-30):window.scrollBy(0,G+100)}"undefined"!=typeof this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,t.element)}function m(t,e){var n="";return t.currentStyle?n=t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),n&&n.toLowerCase?n.toLowerCase():n}function g(){if(void 0!=window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function y(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom+80<=window.innerHeight&&e.right<=window.innerWidth}function _(t){var e=document.createElement("div"),n="",r=this;if(e.className="introjs-overlay","body"===t.tagName.toLowerCase())n+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",e.setAttribute("style",n);else{var i=b(t);i&&(n+="width: "+i.width+"px; height:"+i.height+"px; top:"+i.top+"px;left: "+i.left+"px;",e.setAttribute("style",n))}return t.appendChild(e),e.onclick=function(){1==r._options.exitOnOverlayClick&&(void 0!=r._introExitCallback&&r._introExitCallback.call(r),s.call(r,t))},setTimeout(function(){n+="opacity: "+r._options.overlayOpacity.toString()+";",e.setAttribute("style",n)},10),!0}function b(t){var e={};e.width=t.offsetWidth,e.height=t.offsetHeight;for(var n=0,r=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)n+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return e.top=r,e.left=n,e}function w(){var t=parseInt(this._currentStep+1,10);return t/this._introItems.length*100}function x(t,e){var n={};for(var r in t)n[r]=t[r];for(var r in e)n[r]=e[r];return n}var $="1.1.1",k=function(t){if("object"==typeof t)return new e(t);if("string"==typeof t){var n=document.querySelector(t);if(n)return new e(n);throw new Error("There is no element with given selector.")}return new e(document.body)};return k.version=$,k.fn=e.prototype={clone:function(){return new e(this)},setOption:function(t,e){return this._options[t]=e,this},setOptions:function(t){return this._options=x(this._options,t),this},start:function(){return n.call(this,this._targetElement),this},goToStep:function(t){return i.call(this,t),this},nextStep:function(){return o.call(this),this},previousStep:function(){return a.call(this),this},exit:function(){return s.call(this,this._targetElement),this},refresh:function(){return p.call(this,document.querySelector(".introjs-helperLayer")),p.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),this},onbeforechange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=t,this},onchange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=t,this},onafterchange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=t,this},oncomplete:function(t){if("function"!=typeof t)throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=t,this},onexit:function(t){if("function"!=typeof t)throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=t,this}},t.introJs=k,k}),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.dragula=t()}}(function(){return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){"use strict";function r(t){var e=a[t];return e?e.lastIndex=0:a[t]=e=new RegExp(s+t+u,"g"),e}function i(t,e){var n=t.className;n.length?r(e).test(n)||(t.className+=" "+e):t.className=e}function o(t,e){t.className=t.className.replace(r(e)," ").trim()}var a={},s="(?:^|\\s)",u="(?:\\s|$)";e.exports={add:i,rm:o}},{}],2:[function(t,e,n){(function(n){"use strict";function r(t,e){function n(t){return-1!==ct.containers.indexOf(t)||lt.isContainer(t)}function r(t){var e=t?"remove":"add";i($,e,"mousedown",S),i($,e,"mouseup",O)}function s(t){var e=t?"remove":"add";i($,e,"mousemove",C)}function v(t){var e=t?"remove":"add";b[e]($,"selectstart",k),b[e]($,"click",k)}function g(){r(!0),O({})}function k(t){st&&t.preventDefault()}function S(t){et=t.clientX,nt=t.clientY;var e=1!==o(t)||t.metaKey||t.ctrlKey;if(!e){var n=t.target,r=E(n);r&&(st=r,s(),"mousedown"===t.type&&(d(n)?n.focus():t.preventDefault()))}}function C(t){if(st){if(0===o(t))return void O({});if(void 0===t.clientX||t.clientX!==et||void 0===t.clientY||t.clientY!==nt){if(lt.ignoreInputTextSelection){var e=y("clientX",t),n=y("clientY",t),r=x.elementFromPoint(e,n);if(d(r))return}var i=st;s(!0),v(),D(),j(i);var u=a(Q);Z=y("pageX",t)-u.left,tt=y("pageY",t)-u.top,w.add(ot||Q,"gu-transit"),W(),q(t)}}}function E(t){if(!(ct.dragging&&X||n(t))){for(var e=t;p(t)&&n(p(t))===!1;){if(lt.invalid(t,e))return;if(t=p(t),!t)return}var r=p(t);if(r&&!lt.invalid(t,e)){var i=lt.moves(t,r,e,m(t));if(i)return{item:t,source:r}}}}function T(t){return!!E(t)}function F(t){var e=E(t);e&&j(e)}function j(t){K(t.item,t.source)&&(ot=t.item.cloneNode(!0),ct.emit("cloned",ot,t.item,"copy")),J=t.source,Q=t.item,rt=it=m(t.item),ct.dragging=!0,ct.emit("drag",Q,J)}function A(){return!1}function D(){if(ct.dragging){var t=ot||Q;I(t,p(t))}}function M(){st=!1,s(!0),v(!0)}function O(t){if(M(),ct.dragging){var e=ot||Q,n=y("clientX",t),r=y("clientY",t),i=u(X,n,r),o=z(i,n,r);o&&(ot&&lt.copySortSource||!ot||o!==J)?I(e,o):lt.removeOnSpill?P():N()}}function I(t,e){var n=p(t);ot&&lt.copySortSource&&e===J&&n.removeChild(Q),L(e)?ct.emit("cancel",t,J,J):ct.emit("drop",t,e,J,it),R()}function P(){if(ct.dragging){var t=ot||Q,e=p(t);e&&e.removeChild(t),ct.emit(ot?"cancel":"remove",t,e,J),R()}}function N(t){if(ct.dragging){var e=arguments.length>0?t:lt.revertOnSpill,n=ot||Q,r=p(n),i=L(r);i===!1&&e&&(ot?r.removeChild(ot):J.insertBefore(n,rt)),i||e?ct.emit("cancel",n,J,J):ct.emit("drop",n,r,J,it),R()}}function R(){var t=ot||Q;M(),V(),t&&w.rm(t,"gu-transit"),at&&clearTimeout(at),ct.dragging=!1,ut&&ct.emit("out",t,ut,J),ct.emit("dragend",t),J=Q=ot=rt=it=at=ut=null}function L(t,e){var n;return n=void 0!==e?e:X?it:m(ot||Q),t===J&&n===rt}function z(t,e,r){function i(){var i=n(o);if(i===!1)return!1;var a=B(o,t),s=Y(o,a,e,r),u=L(o,s);return u?!0:lt.accepts(Q,o,J,s)}for(var o=t;o&&!i();)o=p(o);return o}function q(t){function e(t){ct.emit(t,l,ut,J)}function n(){h&&e("over")}function r(){ut&&e("out")}if(X){t.preventDefault();var i=y("clientX",t),o=y("clientY",t),a=i-Z,s=o-tt;X.style.left=a+"px",X.style.top=s+"px";var l=ot||Q,c=u(X,i,o),f=z(c,i,o),h=null!==f&&f!==ut;(h||null===f)&&(r(),ut=f,n());var d=p(l);if(f===J&&ot&&!lt.copySortSource)return void(d&&d.removeChild(l));var v,g=B(f,c);if(null!==g)v=Y(f,g,i,o);else{if(lt.revertOnSpill!==!0||ot)return void(ot&&d&&d.removeChild(l));v=rt,f=J}(null===v&&h||v!==l&&v!==m(l))&&(it=v,f.insertBefore(l,v),ct.emit("shadow",l,f,J))}}function H(t){w.rm(t,"gu-hide")}function U(t){ct.dragging&&w.add(t,"gu-hide")}function W(){if(!X){var t=Q.getBoundingClientRect();X=Q.cloneNode(!0),X.style.width=f(t)+"px",X.style.height=h(t)+"px",w.rm(X,"gu-transit"),w.add(X,"gu-mirror"),lt.mirrorContainer.appendChild(X),i($,"add","mousemove",q),w.add(lt.mirrorContainer,"gu-unselectable"),ct.emit("cloned",X,Q,"mirror")}}function V(){X&&(w.rm(lt.mirrorContainer,"gu-unselectable"),i($,"remove","mousemove",q),p(X).removeChild(X),X=null)}function B(t,e){for(var n=e;n!==t&&p(n)!==t;)n=p(n);return n===$?null:n}function Y(t,e,n,r){function i(){var e,i,o,a=t.children.length;for(e=0;a>e;e++){if(i=t.children[e],o=i.getBoundingClientRect(),s&&o.left+o.width/2>n)return i;if(!s&&o.top+o.height/2>r)return i}return null}function o(){var t=e.getBoundingClientRect();return a(s?n>t.left+f(t)/2:r>t.top+h(t)/2)}function a(t){return t?m(e):e}var s="horizontal"===lt.direction,u=e!==t?o():i();return u}function K(t,e){return"boolean"==typeof lt.copy?lt.copy:lt.copy(t,e)}var G=arguments.length;1===G&&Array.isArray(t)===!1&&(e=t,t=[]);var X,J,Q,Z,tt,et,nt,rt,it,ot,at,st,ut=null,lt=e||{};void 0===lt.moves&&(lt.moves=c),void 0===lt.accepts&&(lt.accepts=c),void 0===lt.invalid&&(lt.invalid=A),void 0===lt.containers&&(lt.containers=t||[]),void 0===lt.isContainer&&(lt.isContainer=l),void 0===lt.copy&&(lt.copy=!1),void 0===lt.copySortSource&&(lt.copySortSource=!1),void 0===lt.revertOnSpill&&(lt.revertOnSpill=!1),void 0===lt.removeOnSpill&&(lt.removeOnSpill=!1),void 0===lt.direction&&(lt.direction="vertical"),void 0===lt.ignoreInputTextSelection&&(lt.ignoreInputTextSelection=!0),void 0===lt.mirrorContainer&&(lt.mirrorContainer=x.body);var ct=_({containers:lt.containers,start:F,end:D,cancel:N,remove:P,destroy:g,canMove:T,dragging:!1});return lt.removeOnSpill===!0&&ct.on("over",H).on("out",U),r(),ct}function i(t,e,r,i){var o={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},a={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},s={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};n.navigator.pointerEnabled?b[e](t,a[r],i):n.navigator.msPointerEnabled?b[e](t,s[r],i):(b[e](t,o[r],i),b[e](t,r,i))}function o(t){if(void 0!==t.touches)return t.touches.length;if(void 0!==t.which&&0!==t.which)return t.which;if(void 0!==t.buttons)return t.buttons;var e=t.button;return void 0!==e?1&e?1:2&e?3:4&e?2:0:void 0}function a(t){var e=t.getBoundingClientRect();return{left:e.left+s("scrollLeft","pageXOffset"),top:e.top+s("scrollTop","pageYOffset")}}function s(t,e){return"undefined"!=typeof n[e]?n[e]:$.clientHeight?$[t]:x.body[t]}function u(t,e,n){var r,i=t||{},o=i.className;return i.className+=" gu-hide",r=x.elementFromPoint(e,n),i.className=o,r}function l(){return!1}function c(){return!0}function f(t){return t.width||t.right-t.left}function h(t){return t.height||t.bottom-t.top}function p(t){return t.parentNode===x?null:t.parentNode}function d(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||v(t)}function v(t){return t?"false"===t.contentEditable?!1:"true"===t.contentEditable?!0:v(p(t)):!1}function m(t){function e(){var e=t;do e=e.nextSibling;while(e&&1!==e.nodeType);return e}return t.nextElementSibling||e()}function g(t){return t.targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t}function y(t,e){var n=g(e),r={pageX:"clientX",pageY:"clientY"};return t in r&&!(t in n)&&r[t]in n&&(t=r[t]),n[t]}var _=t("contra/emitter"),b=t("crossvent"),w=t("./classes"),x=document,$=x.documentElement;e.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":4,crossvent:8}],3:[function(t,e,n){"use strict";var r=t("ticky");e.exports=function(t,e,n){t&&r(function(){t.apply(n||null,e||[])})}},{ticky:6}],4:[function(t,e,n){"use strict";var r=t("atoa"),i=t("./debounce");e.exports=function(t,e){var n=e||{},o={};return void 0===t&&(t={}),t.on=function(e,n){return o[e]?o[e].push(n):o[e]=[n],t},t.once=function(e,n){return n._once=!0,t.on(e,n),t},t.off=function(e,n){var r=arguments.length;if(1===r)delete o[e];else if(0===r)o={};else{var i=o[e];if(!i)return t;i.splice(i.indexOf(n),1)}return t},t.emit=function(){var e=r(arguments);return t.emitterSnapshot(e.shift()).apply(this,e)},t.emitterSnapshot=function(e){var a=(o[e]||[]).slice(0);return function(){var o=r(arguments),s=this||t;if("error"===e&&n["throws"]!==!1&&!a.length)throw 1===o.length?o[0]:o;return a.forEach(function(r){n.async?i(r,o,s):r.apply(s,o),r._once&&t.off(e,r)}),t}},t}},{"./debounce":3,atoa:5}],5:[function(t,e,n){e.exports=function(t,e){return Array.prototype.slice.call(t,e)}},{}],6:[function(t,e,n){var r,i="function"==typeof setImmediate;r=i?function(t){setImmediate(t)}:function(t){setTimeout(t,0)},e.exports=r},{}],7:[function(t,e,n){(function(t){function n(){try{var t=new r("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(e){}return!1}var r=t.CustomEvent;e.exports=n()?r:"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(t,e,n){(function(n){"use strict";function r(t,e,n,r){return t.addEventListener(e,n,r)}function i(t,e,n){return t.attachEvent("on"+e,l(t,e,n))}function o(t,e,n,r){return t.removeEventListener(e,n,r)}function a(t,e,n){var r=c(t,e,n);return r?t.detachEvent("on"+e,r):void 0}function s(t,e,n){function r(){var t;return d.createEvent?(t=d.createEvent("Event"),t.initEvent(e,!0,!0)):d.createEventObject&&(t=d.createEventObject()),t}function i(){return new h(e,{detail:n})}var o=-1===p.indexOf(e)?i():r();t.dispatchEvent?t.dispatchEvent(o):t.fireEvent("on"+e,o)}function u(t,e,r){return function(e){var i=e||n.event;i.target=i.target||i.srcElement,i.preventDefault=i.preventDefault||function(){i.returnValue=!1},i.stopPropagation=i.stopPropagation||function(){i.cancelBubble=!0},i.which=i.which||i.keyCode,r.call(t,i)}}function l(t,e,n){var r=c(t,e,n)||u(t,e,n);return g.push({wrapper:r,element:t,type:e,fn:n}),r}function c(t,e,n){var r=f(t,e,n);if(r){var i=g[r].wrapper;return g.splice(r,1),i}}function f(t,e,n){var r,i;for(r=0;r<g.length;r++)if(i=g[r],i.element===t&&i.type===e&&i.fn===n)return r}var h=t("custom-event"),p=t("./eventmap"),d=n.document,v=r,m=o,g=[];n.addEventListener||(v=i,m=a),e.exports={add:v,remove:m,fabricate:s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":9,"custom-event":7}],9:[function(t,e,n){(function(t){"use strict";var n=[],r="",i=/^on/;for(r in t)i.test(r)&&n.push(r.slice(2));e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[2])(2)}),function(){function t(t){this.listeners={},this.__context=t||this}function n(t,e){function n(t,e,n){Object.defineProperty(t,e,{value:n,configurable:!0,writable:!1})}for(var r in e)n(this,r,e[r]);n(this,"x",t.x-e.left+1),n(this,"y",t.y-e.top+1),n(this,"north",(e.bottom-e.top)/2-this.y),n(this,"south",-(e.bottom-e.top)/2+this.y),n(this,"east",(e.right-e.left)/2-this.x),n(this,"west",-(e.right-e.left)/2+this.x)}function r(t){function r(t){y=Date.now(),u(t),f.down=!0,f.up=!1,f.current&&(f.origin=f.current,f.emitter.emit("down",f.current,m)),$=f.x,k=f.y}function o(t){u(t),f.emitter.emit("move",f.current,m),f.down&&f.current&&f.emitter.emit("stroke",f.current,m)}function a(t){return f.down=!1,f.up=!0,f.current&&f.emitter.emit("up",f.current,m),t.targetTouches&&!(f.y>k-C&&f.y<k+C&&f.x>$-C&&f.x<$+C||S)?(f.previous=null,f.origin=null,t.preventDefault(),!1):(S=!1,f.previous=null,void(f.origin=null))}function u(t){var e,r,o,a,s=null,u=null;if(t=t||window.event,a=t.target||t.srcElement,t.targetTouches?(t.pageX=t.targetTouches[0].clientX,t.pageY=t.targetTouches[0].clientY,t.clientX=t.targetTouches[0].clientX,t.clientY=t.targetTouches[0].clientY):null===t.pageX&&null!==t.clientX&&(e=t.target&&t.target.ownerDocument||document,r=e.documentElement,o=e.body,t.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),f.x&&f.y&&(t.pageX<f.x?b.h="left":t.pageX>f.x&&(b.h="right"),t.pageY<f.y?b.v="up":t.pageY>f.y&&(b.v="down"),w=f.x,x=f.y),_={},_.x=t.clientX,_.y=t.clientY,null===f.current||f.outside(f.current)){for(var l=0;l<h.length;l++)if(h[l]===a||f.inside(h[l])){s=h[l];break}u=f.current,s&&(f.previous=f.current,f.current=s)}v=f.current?i(f.current):null,m=v?new n(f,v):null,u&&(s||(f.current=null),f.emitter.emit("leave",u,m)),s&&f.emitter.emit("enter",f.current,m)}function l(t,e){for(var n=0;n<T[t].length;n++)if(T[t][n].callback===e)return void T[t].splice(n,1)}function c(t,e,n){"undefined"==typeof n&&(n=e,e=null),T[t].push({data:e,callback:n})}var f=this,h=[];"undefined"==typeof t.length&&(t=[t]);for(var p=0;p<t.length;p++)if(void 0!==t[p])if("string"==typeof t[p])try{h.push(document.querySelector(e))}catch(d){throw new Error(e+" is not a valid selector used by pointer.")}else h.push(t[p]);var v,m,g,y,_={},b={},w=-1,x=-1,$=-1,k=-1,S=!1,C=10,E=!1,T={hold:[]};this.emitter=new s(this),this.origin=null,this.current=null,this.previous=null,window.addEventListener("mousedown",r,!1),window.addEventListener("mousemove",o,!1),window.addEventListener("mouseup",a,!1),window.addEventListener("touchstart",r,!1),window.addEventListener("touchmove",o,!1),window.addEventListener("touchend",a,!1),window.addEventListener("scroll",function(t){S=!0,clearTimeout(E),E=setTimeout(function(){S=!1},100)}),Object.defineProperty(this,"speedX",{get:function(){var t=Date.now()/1e3,e=t-g,n=f.x-w;return g=t,Math.round(n/e)}}),Object.defineProperty(this,"speedY",{get:function(){var t=Date.now()/1e3,e=t-g,n=f.y-x;return g=t,Math.round(n/e)}}),Object.defineProperty(this,"x",{get:function(){return _.x}}),Object.defineProperty(this,"y",{get:function(){return _.y}}),Object.defineProperty(this,"h",{get:function(){return b.h}}),Object.defineProperty(this,"v",{get:function(){return b.v}}),this.emitter.on("up",function(t,e){if(y)for(var n=0;n<T.hold.length;n++)Date.now()>y+(T.hold[n].data||2e3)&&T.hold[n].callback.call(this,t,e);y=0}),this.on=function(t,e){return T[t]?(c(t,e,arguments[2]),this):(this.emitter.on(t,e),this)},this.off=function(t,e){return T[t]?(l(t,e),this):(this.emitter.off(t,e),this)},this.add=function(t){if("string"==typeof t)try{h.push(document.querySelector(e))}catch(n){throw new Error(e+" is not a valid selector, and can't be used add to pointer.")}else if(!t)throw new Error(e+" can not be added to pointer.");h.push(t)},this.destroy=function(){window.removeEventListener("mousedown",r,!1),window.removeEventListener("mousemove",o,!1),window.removeEventListener("mouseup",a,!1),window.removeEventListener("touchstart",r,!1),window.removeEventListener("touchmove",o,!1),window.removeEventListener("touchend",a,!1),h=null,f=null,_=null,b=null}}function i(t){return t===window?{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight,width:window.innerWidth,height:window.innerHeight}:t.getBoundingClientRect()}function o(t,e){return new a(t,e)}function a(t,e){function n(t,e,r){i.autoScroll()&&(i.scrollWhenOutside||!i.point.outside(t))&&(t===window?window.scrollTo(t.pageXOffset,t.pageYOffset+e):t.scrollTop=t.scrollTop+e,setTimeout(function(){i.point.y<r.top+i.margin?n(t,e,r):i.point.y>r.bottom-i.margin&&n(t,e,r)},i.interval))}function r(t,e,n){i.autoScroll()&&(i.scrollWhenOutside||!i.point.outside(t))&&(t===window?window.scrollTo(t.pageXOffset+e,t.pageYOffset):t.scrollLeft=t.scrollLeft+e,setTimeout(function(){i.point.x<n.left+i.margin?r(t,e,n):i.point.x>n.right-i.margin&&r(t,e,n)},i.interval))}var i=this,o=2;e=e||{},this.margin=e.margin||-1,this.scrolling=!1,this.scrollWhenOutside=e.scrollWhenOutside||!1,this.point=u(t),isNaN(e.pixels)||(o=e.pixels),"boolean"==typeof e.autoScroll?this.autoScroll=e.autoScroll?function(){return!0}:function(){return!1}:"undefined"==typeof e.autoScroll?this.autoScroll=function(){return!1}:"function"==typeof e.autoScroll&&(this.autoScroll=e.autoScroll),this.destroy=function(){this.point.destroy()},Object.defineProperties(this,{down:{get:function(){return i.point.down}},interval:{get:function(){return 1/o*1e3}},pixels:{set:function(t){o=t},get:function(){return o}}}),this.point.on("move",function(t,e){t&&i.autoScroll()&&(i.scrollWhenOutside||!this.outside(t))&&(i.point.y<e.top+i.margin?n(t,-1,e):i.point.y>e.bottom-i.margin&&n(t,1,e),i.point.x<e.left+i.margin?r(t,-1,e):i.point.x>e.right-i.margin&&r(t,1,e))})}t.prototype={constructor:t,on:function(t,e){return this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e),this},one:function(t,e){function n(){return e.apply(this,arguments),this.off(t,n),this}return this.on(t,n)},emit:function(t){if("undefined"==typeof this.listeners[t]||!this.listeners[t].length)return this;var e=Array.prototype.slice.call(arguments,1),n=this.listeners[t].length;do this.listeners[t][--n].apply(this.__context,e);while(n);return this},off:function(t,e){return void 0!==this.listeners[t]&&this.listeners[t].length?(this.listeners[t]=this.listeners[t].filter(function(t){return t!==e}),this):this},dispose:function(){for(var t in this)this[t]=null}};var s=t;Date.now||(Date.now=function(){return(new Date).getTime()}),r.prototype={constructor:r,inside:function(t){if(!t)throw new TypeError("Cannot be inside "+t);var e=i(t);return this.y>e.top&&this.y<e.bottom&&this.x>e.left&&this.x<e.right},outside:function(t){if(!t)throw new TypeError("Cannot be outside "+t);return!this.inside(t)}};var u=function(t){return new r(t)};window.autoScroll=o}(),function(){var t="ui-multisortable-multiple",e="main-drag-item",n=!1,r=function(){var t=(u.items.elm,u.items.container,u.items.shadow),e=t.position().left,n=t.position().top,r=t.outerHeight();_.forEach(u.items.draggingItems,function(t,i){var o=parseInt(t.data("dragMultipleIndex"),10),a=n+o*r;t.css({top:a,left:e})})},i=function(){n=!1,o();u.items.elm,u.items.container;return $(window).off("mousemove.dragmultiple"),u.items={},$("."+e).removeClass(e),$(".tg-backlog-us-mirror").remove(),$(".backlog-us-mirror").removeClass("backlog-us-mirror"),$(".tg-backlog-us-dragging").removeClass("tg-backlog-us-dragging").show(),$("."+t)},o=function(){var t=parseInt(u.items.elm.data("dragMultipleIndex"),10),e=[],n=[];_.forEach(u.items.draggedItemsOriginal,function(r){parseInt($(r).data("dragMultipleIndex"),10)>t?e.push(r):n.push(r)}),e.reverse(),_.forEach(e,function(t){$(t).insertAfter(u.items.elm)}),_.forEach(n,function(t){$(t).insertBefore(u.items.elm)})},a=function(e,n){var r=$(n).find("."+t);return $(e).hasClass(t)&&r.length>1?!0:!1},s=function(t){var e=[],n=[],r=!1;_.forEach(t,function(t,i){return 0===$(t).data("dragMultipleIndex")?void(r=!0):void(r?n.push(t):e.push(t))}),e.reverse(),_.forEach(n,function(t,e){$(t).data("dragMultipleIndex",e+1)}),_.forEach(e,function(t,e){$(t).data("dragMultipleIndex",-e-1)})},u={};u.prepare=function(r,i){n=!0;var o=$(i).find("."+t);$(r).data("dragmultiple:originalPosition",$(r).position()).data("dragMultipleActive",!0),u.items={},u.items.elm=$(r),u.items.container=$(i),u.items.elm.data("dragMultipleIndex",0),s(o),u.items.shadow=$(".gu-mirror"),u.items.elm.addClass(e),o=_.filter(o,function(t){return!$(t).hasClass(e)}),u.items.draggedItemsOriginal=o;var a=_.map(o,function(t){return clone=$(t).clone(!0),clone.addClass("backlog-us-mirror").addClass("tg-backlog-us-mirror").data("dragmultiple:originalPosition",$(t).position()).data("dragMultipleActive",!0).css({zIndex:"9999",opacity:"0.8",position:"fixed",width:u.items.elm.outerWidth(),height:u.items.elm.outerHeight()}),$(t).hide().addClass("tg-backlog-us-dragging"),clone});u.items.draggingItems=a,$(document.body).append(a)},u.start=function(t,e){a(t,e)&&$(window).on("mousemove.dragmultiple",function(){n||u.prepare(t,e),r()})},u.stop=function(){return n?i():[]},window.dragMultiple=u}(),function(){function t(){return++s}function e(e,n){var r=e&&e.$$hashKey;if(r)return"function"==typeof r&&(r=e.$$hashKey()),r;var i=typeof e;return r="function"==i||"object"==i&&null!==e?e.$$hashKey=i+":"+(n||t)():i+":"+e}function n(){return Object.create(null)}function r(t){if(null==t||i(t))return!1;var e=t.length;return t.nodeType===a&&e?!0:angular.isString(t)||angular.isArray(t)||0===e||"number"==typeof e&&e>0&&e-1 in t}function i(t){return t&&t.window===t}function o(t){var e=t[0],n=t[t.length-1],r=[e];do{if(e=e.nextSibling,!e)break;r.push(e)}while(e!==n);return u(r)}var a=1,s=0,u=(Array.isArray,$),l=["$parse","$animate",function(t,i){var a="$$NG_REMOVED",s=angular.$$minErr("ngRepeat"),l=function(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&e))},c=function(t){return t.clone[0]},f=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(h,p){var d=p.tgRepeat,v=document.createComment(" end ngRepeat: "+d+" "),m=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!m)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d);var g=m[1],y=m[2],_=m[3],b=m[4];if(m=g.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!m)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);var w=m[3]||m[1],x=m[2];if(_&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(_)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(_)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",_);var $,k,S,C,E={$id:e};return b?$=t(b):(S=function(t,n){return e(n)},C=function(t){return t}),function(t,e,h,p,m){$&&(k=function(e,n,r){return x&&(E[x]=e),E[w]=n,E.$index=r,$(t,E)});var g=n();t.$watch(y,function(h){var p=[];h&&h.toJS&&(p=h.toJS());var y,b,$,E,T,F,j,A,D,M,O,I,P=e[0],N=n();if(_&&(t[_]=h),r(p))D=p,A=k||S;else{A=k||C,D=[];for(var R in p)p.hasOwnProperty(R)&&"$"!==R.charAt(0)&&D.push(R)}for(E=D.length,O=new Array(E),y=0;E>y;y++)if(T=p===D?y:D[y],F=p[T],immutable_value=h.get(T),j=A(T,immutable_value,y),g[j])M=g[j],delete g[j],N[j]=M,O[y]=M;else{if(N[j])throw O.forEach(function(t){t&&t.scope&&(g[t.id]=t)}),s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,j,F);O[y]={id:j,scope:void 0,clone:void 0},N[j]=!0}for(var L in g){if(M=g[L],I=o(M.clone),i.leave(I),I[0].parentNode)for(y=0,b=I.length;b>y;y++)I[y][a]=!0;M.scope.$destroy()}for(y=0;E>y;y++)if(T=p===D?y:D[y],F=p[T],immutable_value=h.get(T),M=O[y],M.scope){$=P;do $=$.nextSibling;while($&&$[a]);c(M)!=$&&i.move(o(M.clone),null,u(P)),P=f(M),l(M.scope,y,w,immutable_value,x,T,E)}else m(function(t,e){M.scope=e;var n=v.cloneNode(!1);t[t.length++]=n,i.enter(t,null,u(P)),P=n,M.clone=t,N[M.id]=M,l(M.scope,y,w,immutable_value,x,T,E)});g=N})}}}}];angular.module("tgRepeat",[]).directive("tgRepeat",l)}();var hexcase=0,b64pad="",chrsz=8;!function(){function t(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}function e(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());"number"==typeof i?t[r]=parseInt(o):i===!1?t[r]=null!==o:i instanceof Function?t[r]=null:t[r]=o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}function n(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function r(t,e){return a.call((e||document).querySelectorAll(t))}function i(){r("input.awesomplete").forEach(function(t){new o(t)})}var o=function(t,r){var i=this;this.input=n(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),r=r||{},e(this,{minChars:2,maxItems:10,autoFirst:!1,data:o.DATA,filter:o.FILTER_CONTAINS,sort:o.SORT_BYLENGTH,item:o.ITEM,replace:o.REPLACE},r),this.index=-1,this.container=n.create("div",{className:"awesomplete",around:t}),this.ul=n.create("ul",{hidden:"hidden",inside:this.container}),this.status=n.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-relevant":"additions",inside:this.container}),n.bind(this.input,{input:this.evaluate.bind(this),
blur:this.close.bind(this),keydown:function(t){var e=t.keyCode;i.opened&&(13===e&&i.selected?(t.preventDefault(),i.select()):27===e?i.close():(38===e||40===e)&&(t.preventDefault(),i[38===e?"previous":"next"]()))}}),n.bind(this.input.form,{submit:this.close.bind(this)}),n.bind(this.ul,{mousedown:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),i.select(e,t.target))}}}),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||r.list||[],o.all.push(this)};o.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if(t=n(t),t&&t.children){var e=[];a.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return!this.ul.hasAttribute("hidden")},close:function(){this.ul.setAttribute("hidden",""),this.index=-1,n.fire(this.input,"awesomplete-close")},open:function(){this.ul.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this["goto"](0),n.fire(this.input,"awesomplete-open")},next:function(){var t=this.ul.children.length;this["goto"](this.index<t-1?this.index+1:-1)},previous:function(){var t=this.ul.children.length;this["goto"](this.selected?this.index-1:t-1)},"goto":function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.status.textContent=e[t].textContent,n.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e){if(t?this.index=n.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index],i=n.fire(this.input,"awesomplete-select",{text:r,origin:e||t});i&&(this.replace(r),this.close(),n.fire(this.input,"awesomplete-selectcomplete",{text:r}))}},evaluate:function(){var e=this,n=this.input.value;n.length>=this.minChars&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new t(e.data(r,n))}).filter(function(t){return e.filter(t,n)}).sort(this.sort).slice(0,this.maxItems),this.suggestions.forEach(function(t){e.ul.appendChild(e.item(t,n))}),0===this.ul.children.length?this.close():this.open()):this.close()}},o.all=[],o.FILTER_CONTAINS=function(t,e){return RegExp(n.regExpEscape(e.trim()),"i").test(t)},o.FILTER_STARTSWITH=function(t,e){return RegExp("^"+n.regExpEscape(e.trim()),"i").test(t)},o.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:e>t?-1:1},o.ITEM=function(t,e){var r=""===e?t:t.replace(RegExp(n.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return n.create("li",{innerHTML:r,"aria-selected":"false"})},o.REPLACE=function(t){this.input.value=t.value},o.DATA=function(t){return t},Object.defineProperty(t.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),t.prototype.toString=t.prototype.valueOf=function(){return""+this.label};var a=Array.prototype.slice;return n.create=function(t,e){var r=document.createElement(t);for(var i in e){var o=e[i];if("inside"===i)n(o).appendChild(r);else if("around"===i){var a=n(o);a.parentNode.insertBefore(r,a),r.appendChild(a)}else i in r?r[i]=o:r.setAttribute(i,o)}return r},n.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},n.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0);for(var i in n)r[i]=n[i];return t.dispatchEvent(r)},n.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},n.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof Document&&("loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i)),o.$=n,o.$$=r,"undefined"!=typeof self&&(self.Awesomplete=o),"object"==typeof module&&module.exports&&(module.exports=o),o}();
//# sourceMappingURL=maps/libs.js.map